!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["assets/utils/date.js"]=t():e["assets/utils/date.js"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="../es",t(t.s=693)}({693:function(e,t,n){"use strict";function r(e,t,n,r){var u={year:"(Y+)",month:"(M+)",date:"(D+)",hour:"(h+)",minute:"(m+)",second:"(s+)",quarter:"(q+)",millisecond:"(S)"};if(new RegExp(u[e],r).test(t)){var i="year"===e?n.toString().substr(4-RegExp.$1.length):1===RegExp.$1.length?n:o(n);t=t.replace(RegExp.$1,i)}return t}function o(e){return("00"+e).substr((""+e).length)}function u(e,t){var n={year:{value:e.getFullYear(),regExpAttributes:"i"},month:{value:e.getMonth()+1},date:{value:e.getDate(),regExpAttributes:"i"},hour:{value:e.getHours(),regExpAttributes:"i"},minute:{value:e.getMinutes()},second:{value:e.getSeconds()},quarter:{value:Math.floor((e.getMonth()+3)/3),regExpAttributes:"i"},millisecond:{value:e.getMilliseconds()}};for(var o in n)t=r(o,t,n[o].value,n[o].regExpAttributes);return t}function i(e){var t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return+new Date(t+"/"+n+"/"+r+" 00:00:00")}function a(e,t){return Math.floor((i(e)-i(t))/l)}function f(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function s(e,t){var n=30;return[1,3,5,7,8,10,12].indexOf(e)>-1?n=31:2===e&&(n=t&&t%400&&(t%4||!(t%100))?28:29),n}function c(e,t){var n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));for(var r in n)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?n[r]:("00"+n[r]).substr((""+n[r]).length)));return t}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"DAY_TIMESTAMP",function(){return l}),n.d(t,"HOUR_TIMESTAMP",function(){return g}),n.d(t,"MINUTE_TIMESTAMP",function(){return d}),n.d(t,"pad",function(){return o}),n.d(t,"format",function(){return c}),n.d(t,"formatType",function(){return r}),n.d(t,"formatDate",function(){return u}),n.d(t,"getZeroStamp",function(){return i}),n.d(t,"getDayDiff",function(){return a}),n.d(t,"getNow",function(){return f}),n.d(t,"computeNatureMaxDay",function(){return s});var l=864e5,g=36e5,d=6e4}})});