mat-date 1.9.20 → 1.9.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/DateUtil.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x39759e={};a0_0x39759e['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x39759e),exports['MDateUtil']=void 0x0;const a0_0x2b9bec=require('@js-temporal/polyfill'),a0_0x2d036e=(_0x249551,_0xb0536f=0x2)=>_0x249551['toString']()['padStart'](_0xb0536f,'0');function a0_0x77811f(_0x10e528,_0x2523d1){try{return _0x10e528();}catch(_0x488004){if(_0x2523d1)return _0x2523d1;throw new Error('UNKNOWN');}}function a0_0x5f1b17(_0x5f2798,_0x3a0d66){try{if(_0x5f2798 instanceof Date)return a0_0x2b9bec['Temporal']['Instant']['fromEpochMilliseconds'](_0x5f2798['getTime']())['toZonedDateTimeISO'](_0x3a0d66)['epochMilliseconds'];if(typeof _0x5f2798==='number')return _0x5f2798;if(typeof _0x5f2798==='string')return a0_0x2b9bec['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x5f2798)['getTime']())['toZonedDateTimeISO'](_0x3a0d66)['epochMilliseconds'];if(_0x5f2798 instanceof a0_0x22ddb2)return _0x5f2798['toTime']();if(_0x5f2798['idkey']==='MDateUtil')return _0x5f2798['toTime']();return 0x0;}catch(_0x2281f8){throw new Error('ERROR');}}function a0_0x298a0d(_0x313074){function _0x2fce1d(_0x1cc348){const _0x509aa6={};return _0x509aa6['weekday']=_0x1cc348,a0_0x77811f(()=>new Intl['DateTimeFormat'](_0x313074['localCode'],_0x509aa6)['format'](a0_0x5f1b17(_0x313074,_0x313074['zone'])),'');}function _0x325456(){return _0x2fce1d('long');}function _0x15cf74(){return _0x2fce1d('short');}function _0x10e531(){return _0x2fce1d('narrow');}const _0x221ab6={};return _0x221ab6['ln']=_0x325456,_0x221ab6['sh']=_0x15cf74,_0x221ab6['nr']=_0x10e531,_0x221ab6;}function a0_0x4dfee0(_0x5ea45e){let _0x470553=undefined,_0x33b1d2=undefined,_0x1c2355=undefined,_0x515a2e=undefined;try{const _0x23a0db=(_0x5ea45e||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x470553=_0x23a0db['length']>=0x1?Number(_0x23a0db[0x0]):undefined,_0x33b1d2=_0x23a0db['length']>=0x2?Number(_0x23a0db[0x1]):undefined,_0x1c2355=_0x23a0db['length']>=0x3?Number(_0x23a0db[0x2]):undefined;}catch(_0x50ebfd){}try{let _0x28faf7=_0x5ea45e||'',_0x2a1522=/\.\d{3}/g,_0x15fb1b=_0x28faf7['match'](_0x2a1522)[0x0]['split']('.')['filter'](_0xe13420=>Boolean(_0xe13420));_0x515a2e=_0x15fb1b['length']>=0x1?Number(_0x15fb1b[0x0]):undefined;}catch(_0x9643a4){}const _0x2ddef5={};return _0x2ddef5['h']=_0x470553,_0x2ddef5['m']=_0x33b1d2,_0x2ddef5['s']=_0x1c2355,_0x2ddef5['ms']=_0x515a2e,_0x2ddef5;}let a0_0x30cdbf=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x4d1b2e=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];function a0_0x14fea8(_0x1285b7){return Number(Number(NaN)['toFixed'](0x0))||0x0;}class a0_0x22ddb2{['val'];['_code']=Intl['NumberFormat']()['resolvedOptions']()['locale'];['_zone']=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];['dyfrmt']=a0_0x298a0d(this);get['localCode'](){return this['_code'];}get['zone'](){return this['_zone'];}['with'](_0x5e69af){this['val']=this['val']['with']({'year':_0x5e69af['getFullYear'](),'month':_0x5e69af['getMonth']()+0x1,'day':_0x5e69af['getDate'](),'hour':_0x5e69af['getHours'](),'minute':_0x5e69af['getMinutes'](),'second':_0x5e69af['getSeconds'](),'millisecond':_0x5e69af['getMilliseconds']()});}['init'](){const _0x1ed92c=new Date();return this['val']=a0_0x2b9bec['Temporal']['Instant']['from'](_0x1ed92c['toISOString']())['toZonedDateTimeISO'](this['zone']),this['dyfrmt']=a0_0x298a0d(this),this;}['toString'](){return'---';}static['new'](){return new a0_0x22ddb2()['setCode'](a0_0x30cdbf)['setZone'](a0_0x4d1b2e)['init']();}static['setCode'](_0x51bb25){return a0_0x30cdbf=_0x51bb25,this;}static['setZone'](_0xcd986b){return a0_0x4d1b2e=_0xcd986b,this;}static['seperator'](){return a0_0x77811f(()=>new Date()['toLocaleDateString'](a0_0x30cdbf)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x77811f(()=>a0_0x22ddb2['new']()['setTime'](this['toTime']()));}['setCode'](_0x1731fa){return this['_code']=_0x1731fa,this;}['setZone'](_0x3f8f55){return this['_zone']=_0x3f8f55,this;}['seperator'](){return a0_0x77811f(()=>new Date()['toLocaleDateString'](this['_code'])['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x77811f(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x122011=this['_code']){return a0_0x77811f(()=>{return new Intl['Locale'](_0x122011)?.['timeZones']||[];},null);}['region'](_0x1750c3=this['_code']){return a0_0x77811f(()=>{return new Intl['Locale'](_0x1750c3)['region'];},null);}['year'](){return this['val']['year'];}['month'](){return this['val']['month'];}['monthUtc'](){return this['val']['month']-0x1;}['day'](){return this['val']['day'];}['hours'](){return this['val']['hour'];}['min'](){return this['val']['minute'];}['sec'](){return this['val']['second'];}['msec'](){return this['val']['millisecond'];}['dayOfWeek'](){const _0x3735aa=this['val']['dayOfWeek'];return _0x3735aa?_0x3735aa:0x7;}['dayOfWeekUtc'](){return this['val']['dayOfWeek']-0x1;}['setYear'](_0x439aa5){return this['val']=this['val']['with']({'year':a0_0x14fea8(_0x439aa5)}),this;}['setMonth'](_0x43f502){return this['val']=this['val']['with']({'month':a0_0x14fea8(_0x43f502)}),this;}['setMonthUtc'](_0x402e98){return this['val']=this['val']['with']({'month':a0_0x14fea8(_0x402e98)+0x1}),this;}['setDay'](_0x5d1d1d){return this['val']=this['val']['with']({'day':a0_0x14fea8(_0x5d1d1d)}),this;}['setHour'](_0x32af70){return this['val']=this['val']['with']({'hour':a0_0x14fea8(_0x32af70)}),this;}['startOfHours'](){return this['setMin'](0x0),this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfHours'](){return this['setMin'](0x3b),this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setMin'](_0x33d482){return this['val']=this['val']['with']({'minute':a0_0x14fea8(_0x33d482)}),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x576397){return this['val']=this['val']['with']({'second':a0_0x14fea8(_0x576397)}),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x5bf57f){return this['val']=this['val']['with']({'millisecond':a0_0x14fea8(_0x5bf57f)}),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x3271aa){const _0x474c41=_0x3271aa?new Date(_0x3271aa?.['replace']('T','\x20')):new Date();return this['val']=a0_0x2b9bec['Temporal']['Instant']['from'](_0x474c41['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x2a8a6e){return this['val']=a0_0x2b9bec['Temporal']['Instant']['fromEpochMilliseconds'](_0x2a8a6e||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x5e2daa){return this['setIsoDate'](_0x5e2daa?.['toISOString']()),this;}['setDateInputValue'](_0x51342){const _0x5c55e5=_0x51342?new Date(_0x51342?.['replace']('T','\x20')):new Date();return _0x5c55e5['getTime']()&&(this['val']=a0_0x2b9bec['Temporal']['Instant']['from'](_0x5c55e5?.['toISOString']())['toZonedDateTimeISO'](this['zone']),this['with'](_0x5c55e5)),this;}['setVal'](_0x31b8ae){return a0_0x77811f(()=>{return a0_0x22ddb2['new']()['setTime'](a0_0x5f1b17(_0x31b8ae,this['zone']));});}['toIsoDate'](){const _0x3759c6={};return _0x3759c6['fractionalSecondDigits']=0x3,this['val']['toInstant']()['toString'](_0x3759c6);}['toIsoDateZone'](){return this['val']['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this['val']['epochMilliseconds'];}['toDate'](){return new Date(this['val']['toInstant']()['epochMilliseconds']);}['toDateMounthInput'](){return this['year']()+'-'+a0_0x2d036e(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x2d036e(this['month']())+'-'+a0_0x2d036e(this['day']());}['toTimeInput'](_0x38748a=!![]){const _0x493e17=[];return _0x493e17['push'](a0_0x2d036e(this['hours']())),_0x493e17['push'](a0_0x2d036e(this['min']())),_0x38748a&&_0x493e17['push'](a0_0x2d036e(this['sec']())),_0x493e17['join'](':');}['toDateTimeInput'](_0x232ebe=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x232ebe);}['toAs'](){return this['val']['toInstant']()['toString']();}['strDate'](){const _0x5eb306={};return _0x5eb306['month']='2-digit',_0x5eb306['day']='2-digit',_0x5eb306['year']='numeric',this['val']['toLocaleString'](this['_code'],_0x5eb306);}['strTime'](){return a0_0x2d036e(this['hours']())+':'+a0_0x2d036e(this['min']())+':'+a0_0x2d036e(this['sec']());}['strHHmm'](){return a0_0x2d036e(this['hours']())+':'+a0_0x2d036e(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x456bf7){return this['val']['toLocaleString'](this['_code'],_0x456bf7);}['strYears'](){return this['val']['year']['toString']();}['strMounth'](){return a0_0x2d036e(this['month'](),0x2);}['strDay'](){return a0_0x2d036e(this['day'](),0x2);}['strHour'](){return a0_0x2d036e(this['hours'](),0x2);}['strMin'](){return a0_0x2d036e(this['min'](),0x2);}['strSec'](){return a0_0x2d036e(this['sec'](),0x2);}['strMsec'](){return a0_0x2d036e(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x28544a){return this['addHours'](Number(_0x28544a)*0x18),this;}['addHours'](_0x37f5ef){return this['addMins'](Number(_0x37f5ef)*0x3c),this;}['addMins'](_0x7dc1ff){return this['addSecs'](Number(_0x7dc1ff)*0x3c),this;}['addSecs'](_0x49a5d5){return this['addMilliseconds'](Number(_0x49a5d5)*0x3e8),this;}['addMilliseconds'](_0x501768){return this['val']=this['val']['add']({'milliseconds':a0_0x14fea8(_0x501768)}),this;}['startOfDay'](){return this['setHour'](0x0),this['startOfHours'](),this;}['cpyByStartOfDay'](){return this['cpy']()['startOfDay']();}['endOfDay'](){return this['setHour'](0x17),this['endOfHours'](),this;}['cpyByEndOfDay'](){return this['cpy']()['endOfDay']();}['startOfWeek'](){return this['addDay'](-this['dayOfWeek']()+0x1);}['cpyStartOfWeek'](){return this['cpy']()['addDay'](-this['dayOfWeek']()+0x1);}['endOfWeek'](){return this['startOfWeek']()['addDay'](0x6);}['cpyEndOfWeek'](){return this['cpyStartOfWeek']()['addDay'](0x6);}['startOfMonth'](){return this['setDay'](0x1),this['startOfDay'](),this;}['cpyByStartOfMonth'](){return this['cpy']()['startOfMonth']();}['endOfMonth'](){return this['setTime'](this['val']['epochMilliseconds'])['startOfMonth']()['setMonth'](this['month']()+0x1)['startOfMonth']()['addDay'](-0x1)['endOfDay'](),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0x297e69){return a0_0x77811f(()=>{return this['cpy']()['toTime']()===a0_0x5f1b17(_0x297e69,this['zone']);});}['gt'](_0x3cd2db){return a0_0x77811f(()=>{return this['cpy']()['toTime']()>a0_0x5f1b17(_0x3cd2db,this['zone']);});}['gte'](_0x4f797f){return a0_0x77811f(()=>{return this['cpy']()['toTime']()>=a0_0x5f1b17(_0x4f797f,this['zone']);});}['lt'](_0x4bbae1){return a0_0x77811f(()=>{return this['cpy']()['toTime']()<a0_0x5f1b17(_0x4bbae1,this['zone']);});}['lte'](_0x3f1191){return a0_0x77811f(()=>{return this['cpy']()['toTime']()<=a0_0x5f1b17(_0x3f1191,this['zone']);});}['btw'](_0x113fb3,_0x5df044){return a0_0x77811f(()=>{const _0x401a0b=a0_0x5f1b17(_0x113fb3,this['zone']),_0x2f4761=a0_0x5f1b17(_0x5df044,this['zone']),_0x10174f=this['cpy']()['toTime']();return _0x401a0b<_0x10174f&&_0x10174f<_0x2f4761;});}['btweq'](_0x1da9b1,_0x321717){return a0_0x77811f(()=>{const _0x1f36a7=a0_0x5f1b17(_0x1da9b1,this['zone']),_0xff62f4=a0_0x5f1b17(_0x321717,this['zone']),_0x3967c7=this['cpy']()['toTime']();return _0x1f36a7<=_0x3967c7&&_0x3967c7<=_0xff62f4;});}['btwEqStart'](_0x4e6b9c,_0x3fe8ed){return a0_0x77811f(()=>{const _0x544cde=a0_0x5f1b17(_0x4e6b9c,this['zone']),_0xeba749=a0_0x5f1b17(_0x3fe8ed,this['zone']),_0x3ce729=this['cpy']()['toTime']();return _0x544cde<=_0x3ce729&&_0x3ce729<_0xeba749;});}['btwEqEnd'](_0x4f4f08,_0x31924b){return a0_0x77811f(()=>{const _0x2ebff7=a0_0x5f1b17(_0x4f4f08,this['zone']),_0x1dde92=a0_0x5f1b17(_0x31924b,this['zone']),_0xaafff6=this['cpy']()['toTime']();return _0x2ebff7<_0xaafff6&&_0xaafff6<=_0x1dde92;});}static['diffDays'](_0x5166b1,_0x41e902,_0x5d58d6){return a0_0x77811f(()=>{const _0x2c19f4=a0_0x5f1b17(_0x5166b1,a0_0x4d1b2e),_0x4353a2=a0_0x5f1b17(_0x41e902,a0_0x4d1b2e);return _0x5d58d6?Math['abs'](_0x2c19f4-_0x4353a2)/0x36ee80/0x18:(_0x2c19f4-_0x4353a2)/0x36ee80/0x18;});}static['diffHours'](_0x38fc90,_0x239cd3,_0x149e38){return a0_0x77811f(()=>{const _0x11bd98=a0_0x5f1b17(_0x38fc90,a0_0x4d1b2e),_0x489c4f=a0_0x5f1b17(_0x239cd3,a0_0x4d1b2e);return _0x149e38?Math['abs'](_0x11bd98-_0x489c4f)/0x36ee80:(_0x11bd98-_0x489c4f)/0x36ee80;});}static['diffMins'](_0x5ba7f0,_0x52a10b,_0x57116f){return a0_0x77811f(()=>{const _0x15ccca=a0_0x5f1b17(_0x5ba7f0,a0_0x4d1b2e),_0x43f6f6=a0_0x5f1b17(_0x52a10b,a0_0x4d1b2e);return _0x57116f?Math['abs'](_0x15ccca-_0x43f6f6)/0x3e8/0x3c:(_0x15ccca-_0x43f6f6)/0x3e8/0x3c;});}static['diffSecs'](_0x220b62,_0x506e5b,_0x148b28){return a0_0x77811f(()=>{const _0x39c4b3=a0_0x5f1b17(_0x220b62,a0_0x4d1b2e),_0x566dbd=a0_0x5f1b17(_0x506e5b,a0_0x4d1b2e);return _0x148b28?Math['abs'](_0x39c4b3-_0x566dbd)/0x3e8:(_0x39c4b3-_0x566dbd)/0x3e8;});}static['divideTime'](_0x1fd3c5){return a0_0x77811f(()=>a0_0x4dfee0(_0x1fd3c5));}}exports['MDateUtil']=a0_0x22ddb2;const a0_0x4dfdd7={};a0_0x4dfdd7['value']='MDateUtil',a0_0x4dfdd7['writable']=![],a0_0x4dfdd7['enumerable']=!![],a0_0x4dfdd7['configurable']=![],Object['defineProperty'](a0_0x22ddb2['prototype'],'idkey',a0_0x4dfdd7);
1
+ 'use strict';const a0_0x19d4fa={};a0_0x19d4fa['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x19d4fa),exports['MDateUtil']=void 0x0;const a0_0x430bd9=require('@js-temporal/polyfill'),a0_0x493a10=(_0x51dfe0,_0x2c8784=0x2)=>_0x51dfe0['toString']()['padStart'](_0x2c8784,'0');function a0_0x58a89f(_0x3bd41f,_0x45b239){try{return _0x3bd41f();}catch(_0x112669){if(_0x45b239)return _0x45b239;throw new Error('UNKNOWN');}}function a0_0x254bb6(_0x75572c,_0x45b3fe){try{if(_0x75572c instanceof Date)return a0_0x430bd9['Temporal']['Instant']['fromEpochMilliseconds'](_0x75572c['getTime']())['toZonedDateTimeISO'](_0x45b3fe)['epochMilliseconds'];if(typeof _0x75572c==='number')return _0x75572c;if(typeof _0x75572c==='string')return a0_0x430bd9['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x75572c)['getTime']())['toZonedDateTimeISO'](_0x45b3fe)['epochMilliseconds'];if(_0x75572c instanceof a0_0x20e8d4)return _0x75572c['toTime']();if(_0x75572c['idkey']==='MDateUtil')return _0x75572c['toTime']();return 0x0;}catch(_0xb00162){throw new Error('ERROR');}}function a0_0x66c813(_0x44474e){function _0x278ec3(_0x57ca42){const _0x20b86a={};return _0x20b86a['weekday']=_0x57ca42,a0_0x58a89f(()=>new Intl['DateTimeFormat'](_0x44474e['localCode'],_0x20b86a)['format'](a0_0x254bb6(_0x44474e,_0x44474e['zone'])),'');}function _0x482375(){return _0x278ec3('long');}function _0x342d39(){return _0x278ec3('short');}function _0x2745a8(){return _0x278ec3('narrow');}const _0x3f13e7={};return _0x3f13e7['ln']=_0x482375,_0x3f13e7['sh']=_0x342d39,_0x3f13e7['nr']=_0x2745a8,_0x3f13e7;}function a0_0x22ac94(_0x6b8393){let _0x34445b=undefined,_0x1d369f=undefined,_0x5efb2b=undefined,_0x49f701=undefined;try{const _0x20a91d=(_0x6b8393||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x34445b=_0x20a91d['length']>=0x1?Number(_0x20a91d[0x0]):undefined,_0x1d369f=_0x20a91d['length']>=0x2?Number(_0x20a91d[0x1]):undefined,_0x5efb2b=_0x20a91d['length']>=0x3?Number(_0x20a91d[0x2]):undefined;}catch(_0x3e4e5a){}try{let _0x20dfca=_0x6b8393||'',_0x22277e=/\.\d{3}/g,_0x18ff65=_0x20dfca['match'](_0x22277e)[0x0]['split']('.')['filter'](_0x2974ee=>Boolean(_0x2974ee));_0x49f701=_0x18ff65['length']>=0x1?Number(_0x18ff65[0x0]):undefined;}catch(_0x7ed2cf){}const _0x15bb07={};return _0x15bb07['h']=_0x34445b,_0x15bb07['m']=_0x1d369f,_0x15bb07['s']=_0x5efb2b,_0x15bb07['ms']=_0x49f701,_0x15bb07;}let a0_0x4f3ecc=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x156f51=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];function a0_0x52aebd(_0x31048a){return Number(Number(NaN)['toFixed'](0x0))||0x0;}class a0_0x20e8d4{['val'];['_code']=Intl['NumberFormat']()['resolvedOptions']()['locale'];['_zone']=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];['dyfrmt']=a0_0x66c813(this);get['localCode'](){return this['_code'];}get['zone'](){return this['_zone'];}['with'](_0x533ab9){this['val']=this['val']['with']({'year':_0x533ab9['getFullYear'](),'month':_0x533ab9['getMonth']()+0x1,'day':_0x533ab9['getDate'](),'hour':_0x533ab9['getHours'](),'minute':_0x533ab9['getMinutes'](),'second':_0x533ab9['getSeconds'](),'millisecond':_0x533ab9['getMilliseconds']()});}['init'](){const _0x308c26=new Date();return this['val']=a0_0x430bd9['Temporal']['Instant']['from'](_0x308c26['toISOString']())['toZonedDateTimeISO'](this['zone']),this['dyfrmt']=a0_0x66c813(this),this;}['toString'](){return'---';}static['new'](){return new a0_0x20e8d4()['setCode'](a0_0x4f3ecc)['setZone'](a0_0x156f51)['init']();}static['setCode'](_0x4c5a8c){return a0_0x4f3ecc=_0x4c5a8c,this;}static['setZone'](_0x46f11f){return a0_0x156f51=_0x46f11f,this;}static['seperator'](){return a0_0x58a89f(()=>new Date()['toLocaleDateString'](a0_0x4f3ecc)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x58a89f(()=>a0_0x20e8d4['new']()['setTime'](this['toTime']()));}['setCode'](_0x5f3a2c){return this['_code']=_0x5f3a2c,this;}['setZone'](_0x4a1ba3){return this['_zone']=_0x4a1ba3,this;}['seperator'](){return a0_0x58a89f(()=>new Date()['toLocaleDateString'](this['_code'])['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x58a89f(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x1f55b2=this['_code']){return a0_0x58a89f(()=>{return new Intl['Locale'](_0x1f55b2)?.['timeZones']||[];},null);}['region'](_0x184294=this['_code']){return a0_0x58a89f(()=>{return new Intl['Locale'](_0x184294)['region'];},null);}['year'](){return this['val']['year'];}['month'](){return this['val']['month'];}['monthUtc'](){return this['val']['month']-0x1;}['day'](){return this['val']['day'];}['hours'](){return this['val']['hour'];}['min'](){return this['val']['minute'];}['sec'](){return this['val']['second'];}['msec'](){return this['val']['millisecond'];}['dayOfWeek'](){const _0x8f286a=this['val']['dayOfWeek'];return _0x8f286a?_0x8f286a:0x7;}['dayOfWeekUtc'](){return this['val']['dayOfWeek']-0x1;}['setYear'](_0x3d7978){return this['val']=this['val']['with']({'year':a0_0x52aebd(_0x3d7978)}),this;}['setMonth'](_0x9c4437){return this['val']=this['val']['with']({'month':a0_0x52aebd(_0x9c4437)}),this;}['setMonthUtc'](_0x1adf0a){return this['val']=this['val']['with']({'month':a0_0x52aebd(_0x1adf0a)+0x1}),this;}['setDay'](_0x195fcf){return this['val']=this['val']['with']({'day':a0_0x52aebd(_0x195fcf)}),this;}['setHour'](_0x4e2122){return this['val']=this['val']['with']({'hour':a0_0x52aebd(_0x4e2122)}),this;}['startOfHours'](){return this['setMin'](0x0),this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfHours'](){return this['setMin'](0x3b),this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setMin'](_0x380bf1){return this['val']=this['val']['with']({'minute':a0_0x52aebd(_0x380bf1)}),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x312a67){return this['val']=this['val']['with']({'second':a0_0x52aebd(_0x312a67)}),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x5651ee){return this['val']=this['val']['with']({'millisecond':a0_0x52aebd(_0x5651ee)}),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x444752){const _0x390f81=_0x444752?new Date(_0x444752?.['replace']('T','\x20')):new Date();return this['val']=a0_0x430bd9['Temporal']['Instant']['from'](_0x390f81['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x3d0ecf){return this['val']=a0_0x430bd9['Temporal']['Instant']['fromEpochMilliseconds'](_0x3d0ecf||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x3754dd){return this['setIsoDate'](_0x3754dd?.['toISOString']()),this;}['setDateInputValue'](_0x15dcd1){const _0x3814c2=_0x15dcd1?new Date(_0x15dcd1?.['replace']('T','\x20')):new Date();return _0x3814c2['getTime']()&&(this['val']=a0_0x430bd9['Temporal']['Instant']['from'](_0x3814c2?.['toISOString']())['toZonedDateTimeISO'](this['zone']),this['with'](_0x3814c2)),this;}['setVal'](_0x136845){return a0_0x58a89f(()=>{return a0_0x20e8d4['new']()['setTime'](a0_0x254bb6(_0x136845,this['zone']));});}['toIsoDate'](){const _0x5342a9={};return _0x5342a9['fractionalSecondDigits']=0x3,this['val']['toInstant']()['toString'](_0x5342a9);}['toIsoDateZone'](){return this['val']['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this['val']['epochMilliseconds'];}['toDate'](){return new Date(this['val']['toInstant']()['epochMilliseconds']);}['toDateMounthInput'](){return this['year']()+'-'+a0_0x493a10(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x493a10(this['month']())+'-'+a0_0x493a10(this['day']());}['toTimeInput'](_0x5e2795=!![]){const _0x493758=[];return _0x493758['push'](a0_0x493a10(this['hours']())),_0x493758['push'](a0_0x493a10(this['min']())),_0x5e2795&&_0x493758['push'](a0_0x493a10(this['sec']())),_0x493758['join'](':');}['toDateTimeInput'](_0x2ed6b4=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x2ed6b4);}['toAs'](){return this['val']['toInstant']()['toString']();}['strDate'](){const _0x3cbcc9={};return _0x3cbcc9['month']='2-digit',_0x3cbcc9['day']='2-digit',_0x3cbcc9['year']='numeric',this['val']['toLocaleString'](this['_code'],_0x3cbcc9);}['strTime'](){return a0_0x493a10(this['hours']())+':'+a0_0x493a10(this['min']())+':'+a0_0x493a10(this['sec']());}['strHHmm'](){return a0_0x493a10(this['hours']())+':'+a0_0x493a10(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x45b3fc){return this['val']['toLocaleString'](this['_code'],_0x45b3fc);}['strYears'](){return this['val']['year']['toString']();}['strMounth'](){return a0_0x493a10(this['month'](),0x2);}['strDay'](){return a0_0x493a10(this['day'](),0x2);}['strHour'](){return a0_0x493a10(this['hours'](),0x2);}['strMin'](){return a0_0x493a10(this['min'](),0x2);}['strSec'](){return a0_0x493a10(this['sec'](),0x2);}['strMsec'](){return a0_0x493a10(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x4bf3e9){return this['addHours'](Number(_0x4bf3e9)*0x18),this;}['addHours'](_0xdf897e){return this['addMins'](Number(_0xdf897e)*0x3c),this;}['addMins'](_0x4628ae){return this['addSecs'](Number(_0x4628ae)*0x3c),this;}['addSecs'](_0x5dfbb3){return this['addMilliseconds'](Number(_0x5dfbb3)*0x3e8),this;}['addMilliseconds'](_0x3049cd){return this['val']=this['val']['add']({'milliseconds':a0_0x52aebd(_0x3049cd)}),this;}['startOfDay'](){return this['setHour'](0x0),this['startOfHours'](),this;}['cpyByStartOfDay'](){return this['cpy']()['startOfDay']();}['endOfDay'](){return this['setHour'](0x17),this['endOfHours'](),this;}['cpyByEndOfDay'](){return this['cpy']()['endOfDay']();}['startOfWeek'](){return this['addDay'](-this['dayOfWeek']()+0x1);}['cpyStartOfWeek'](){return this['cpy']()['addDay'](-this['dayOfWeek']()+0x1);}['endOfWeek'](){return this['startOfWeek']()['addDay'](0x6);}['cpyEndOfWeek'](){return this['cpyStartOfWeek']()['addDay'](0x6);}['startOfMonth'](){return this['setDay'](0x1),this['startOfDay'](),this;}['cpyByStartOfMonth'](){return this['cpy']()['startOfMonth']();}['endOfMonth'](){return this['setTime'](this['val']['epochMilliseconds'])['startOfMonth']()['setMonth'](this['month']()+0x1)['startOfMonth']()['addDay'](-0x1)['endOfDay'](),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0x2b042d){return a0_0x58a89f(()=>{return this['cpy']()['toTime']()===a0_0x254bb6(_0x2b042d,this['zone']);});}['gt'](_0x1a1fd6){return a0_0x58a89f(()=>{return this['cpy']()['toTime']()>a0_0x254bb6(_0x1a1fd6,this['zone']);});}['gte'](_0x1daec0){return a0_0x58a89f(()=>{return this['cpy']()['toTime']()>=a0_0x254bb6(_0x1daec0,this['zone']);});}['lt'](_0x5f3a06){return a0_0x58a89f(()=>{return this['cpy']()['toTime']()<a0_0x254bb6(_0x5f3a06,this['zone']);});}['lte'](_0x16344a){return a0_0x58a89f(()=>{return this['cpy']()['toTime']()<=a0_0x254bb6(_0x16344a,this['zone']);});}['btw'](_0x133416,_0x13714e){return a0_0x58a89f(()=>{const _0x20f085=a0_0x254bb6(_0x133416,this['zone']),_0xe44d4f=a0_0x254bb6(_0x13714e,this['zone']),_0x4ac52d=this['cpy']()['toTime']();return _0x20f085<_0x4ac52d&&_0x4ac52d<_0xe44d4f;});}['btweq'](_0x575466,_0x55b33f){return a0_0x58a89f(()=>{const _0x122bfe=a0_0x254bb6(_0x575466,this['zone']),_0x259b9d=a0_0x254bb6(_0x55b33f,this['zone']),_0x270383=this['cpy']()['toTime']();return _0x122bfe<=_0x270383&&_0x270383<=_0x259b9d;});}['btwEqStart'](_0x650f,_0x277c43){return a0_0x58a89f(()=>{const _0x4705dc=a0_0x254bb6(_0x650f,this['zone']),_0x108ad2=a0_0x254bb6(_0x277c43,this['zone']),_0x1191c9=this['cpy']()['toTime']();return _0x4705dc<=_0x1191c9&&_0x1191c9<_0x108ad2;});}['btwEqEnd'](_0x588a77,_0x34274a){return a0_0x58a89f(()=>{const _0x3b6555=a0_0x254bb6(_0x588a77,this['zone']),_0x1eecad=a0_0x254bb6(_0x34274a,this['zone']),_0x2b844f=this['cpy']()['toTime']();return _0x3b6555<_0x2b844f&&_0x2b844f<=_0x1eecad;});}static['diffDays'](_0x59eb62,_0x5ec4f4,_0x165d30){return a0_0x58a89f(()=>{const _0xce6cf4=a0_0x254bb6(_0x59eb62,a0_0x156f51),_0x19a38b=a0_0x254bb6(_0x5ec4f4,a0_0x156f51);return _0x165d30?Math['abs'](_0xce6cf4-_0x19a38b)/0x36ee80/0x18:(_0xce6cf4-_0x19a38b)/0x36ee80/0x18;});}static['diffHours'](_0x41721d,_0x1292f3,_0x2d5e35){return a0_0x58a89f(()=>{const _0x8bc3a8=a0_0x254bb6(_0x41721d,a0_0x156f51),_0x3467e5=a0_0x254bb6(_0x1292f3,a0_0x156f51);return _0x2d5e35?Math['abs'](_0x8bc3a8-_0x3467e5)/0x36ee80:(_0x8bc3a8-_0x3467e5)/0x36ee80;});}static['diffMins'](_0x29c92d,_0x49606a,_0x5dea2e){return a0_0x58a89f(()=>{const _0x36d41d=a0_0x254bb6(_0x29c92d,a0_0x156f51),_0x1714d2=a0_0x254bb6(_0x49606a,a0_0x156f51);return _0x5dea2e?Math['abs'](_0x36d41d-_0x1714d2)/0x3e8/0x3c:(_0x36d41d-_0x1714d2)/0x3e8/0x3c;});}static['diffSecs'](_0x5a2288,_0x31d364,_0x24fb5a){return a0_0x58a89f(()=>{const _0xd5b5b9=a0_0x254bb6(_0x5a2288,a0_0x156f51),_0x3b5660=a0_0x254bb6(_0x31d364,a0_0x156f51);return _0x24fb5a?Math['abs'](_0xd5b5b9-_0x3b5660)/0x3e8:(_0xd5b5b9-_0x3b5660)/0x3e8;});}static['divideTime'](_0x6f4d5c){return a0_0x58a89f(()=>a0_0x22ac94(_0x6f4d5c));}}exports['MDateUtil']=a0_0x20e8d4;const a0_0xd137a0={};a0_0xd137a0['value']='MDateUtil',a0_0xd137a0['writable']=![],a0_0xd137a0['enumerable']=!![],a0_0xd137a0['configurable']=![],Object['defineProperty'](a0_0x20e8d4['prototype'],'idkey',a0_0xd137a0);
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x12f63a=this&&this['__createBinding']||(Object['create']?function(_0x45c52f,_0x1fad48,_0x117577,_0x238cab){if(_0x238cab===undefined)_0x238cab=_0x117577;var _0x18525c=Object['getOwnPropertyDescriptor'](_0x1fad48,_0x117577);if(!_0x18525c||('get'in _0x18525c?!_0x1fad48['__esModule']:_0x18525c['writable']||_0x18525c['configurable'])){var _0x342bbe={};_0x342bbe['enumerable']=!![],_0x342bbe['get']=function(){return _0x1fad48[_0x117577];},_0x18525c=_0x342bbe;}Object['defineProperty'](_0x45c52f,_0x238cab,_0x18525c);}:function(_0x37669c,_0x29296d,_0x165aba,_0x132d03){if(_0x132d03===undefined)_0x132d03=_0x165aba;_0x37669c[_0x132d03]=_0x29296d[_0x165aba];}),a0_0x59f996=this&&this['__exportStar']||function(_0xf3781,_0x1c9a75){for(var _0x56e8d5 in _0xf3781)if(_0x56e8d5!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x1c9a75,_0x56e8d5))a0_0x12f63a(_0x1c9a75,_0xf3781,_0x56e8d5);},a0_0x574e69={};a0_0x574e69['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x574e69),a0_0x59f996(require('./DateUtil'),exports);
1
+ 'use strict';var a0_0x47639c=this&&this['__createBinding']||(Object['create']?function(_0x1d2706,_0x599099,_0x56dbef,_0xca2141){if(_0xca2141===undefined)_0xca2141=_0x56dbef;var _0x3f14ff=Object['getOwnPropertyDescriptor'](_0x599099,_0x56dbef);if(!_0x3f14ff||('get'in _0x3f14ff?!_0x599099['__esModule']:_0x3f14ff['writable']||_0x3f14ff['configurable'])){var _0x5a7520={};_0x5a7520['enumerable']=!![],_0x5a7520['get']=function(){return _0x599099[_0x56dbef];},_0x3f14ff=_0x5a7520;}Object['defineProperty'](_0x1d2706,_0xca2141,_0x3f14ff);}:function(_0x2ed6ef,_0x1f8274,_0xf60a1a,_0x1e03f1){if(_0x1e03f1===undefined)_0x1e03f1=_0xf60a1a;_0x2ed6ef[_0x1e03f1]=_0x1f8274[_0xf60a1a];}),a0_0x179688=this&&this['__exportStar']||function(_0xaf368a,_0x1bfbdf){for(var _0x5de147 in _0xaf368a)if(_0x5de147!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x1bfbdf,_0x5de147))a0_0x47639c(_0x1bfbdf,_0xaf368a,_0x5de147);},a0_0x458dbd={};a0_0x458dbd['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x458dbd),a0_0x179688(require('./DateUtil'),exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mat-date",
3
- "version": "1.9.20",
3
+ "version": "1.9.30",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",