mat-date 1.8.15 → 1.8.17

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_0x421fd6={};a0_0x421fd6['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x421fd6),exports['MDateUtil']=void 0x0;const a0_0x3dde86=require('@js-temporal/polyfill'),a0_0x4ac4e5=(_0x4cb310,_0x581fdf=0x2)=>_0x4cb310['toString']()['padStart'](_0x581fdf,'0');function a0_0x4d5383(_0x2c0395,_0x5ec784){try{return _0x2c0395();}catch(_0x1c12b7){if(_0x5ec784)return _0x5ec784;throw new Error('UNKNOWN');}}function a0_0x384524(_0x499734,_0x400f76){try{if(_0x499734 instanceof Date)return a0_0x3dde86['Temporal']['Instant']['fromEpochMilliseconds'](_0x499734['getTime']())['toZonedDateTimeISO'](_0x400f76)['epochMilliseconds'];if(typeof _0x499734==='number')return _0x499734;if(typeof _0x499734==='string')return a0_0x3dde86['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x499734)['getTime']())['toZonedDateTimeISO'](_0x400f76)['epochMilliseconds'];if(_0x499734 instanceof a0_0x5efa80)return _0x499734['toTime']();if(_0x499734['idkey']==='mdateutil')return _0x499734['toTime']();return 0x0;}catch(_0x3676c7){throw new Error('ERROR');}}function a0_0x2b32af(_0xb7f294){function _0x778a10(_0x248085){const _0x3feefe={};return _0x3feefe['weekday']=_0x248085,a0_0x4d5383(()=>new Intl['DateTimeFormat'](_0xb7f294['localCode'],_0x3feefe)['format'](a0_0x384524(_0xb7f294,_0xb7f294['zone'])),'');}function _0x433410(){return _0x778a10('long');}function _0x581ca2(){return _0x778a10('short');}function _0x306b38(){return _0x778a10('narrow');}const _0x5844de={};return _0x5844de['ln']=_0x433410,_0x5844de['sh']=_0x581ca2,_0x5844de['nr']=_0x306b38,_0x5844de;}function a0_0x482409(_0x51faf8){let _0x191a69=undefined,_0x33b8c4=undefined,_0x4d5436=undefined,_0x2c9127=undefined;try{const _0x1c9980=(_0x51faf8||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x191a69=_0x1c9980['length']>=0x1?Number(_0x1c9980[0x0]):undefined,_0x33b8c4=_0x1c9980['length']>=0x2?Number(_0x1c9980[0x1]):undefined,_0x4d5436=_0x1c9980['length']>=0x3?Number(_0x1c9980[0x2]):undefined;}catch(_0x101236){}try{let _0x12942d=_0x51faf8||'',_0x267be5=/\.\d{3}/g,_0x52dbeb=_0x12942d['match'](_0x267be5)[0x0]['split']('.')['filter'](_0x1f0ed1=>Boolean(_0x1f0ed1));_0x2c9127=_0x52dbeb['length']>=0x1?Number(_0x52dbeb[0x0]):undefined;}catch(_0x59a906){}const _0x589202={};return _0x589202['h']=_0x191a69,_0x589202['m']=_0x33b8c4,_0x589202['s']=_0x4d5436,_0x589202['ms']=_0x2c9127,_0x589202;}let a0_0x237021=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x4ddca1=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];class a0_0x5efa80{['val'];['code']=Intl['NumberFormat']()['resolvedOptions']()['locale'];['_zone']=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];['dyfrmt']=a0_0x2b32af(this);get['localCode'](){return this['code'];}get['zone'](){return this['_zone'];}['init'](){return this['val']=a0_0x3dde86['Temporal']['Instant']['fromEpochMilliseconds'](new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this['dyfrmt']=a0_0x2b32af(this),this;}['toString'](){return'TEST';}static['new'](){return new a0_0x5efa80()['setCode'](a0_0x237021)['setZone'](a0_0x4ddca1)['init']();}static['setCode'](_0x238e75){return a0_0x237021=_0x238e75,this;}static['setZone'](_0x13d43b){return a0_0x4ddca1=_0x13d43b,this;}static['seperator'](){return a0_0x4d5383(()=>new Date()['toLocaleDateString'](a0_0x237021)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x4d5383(()=>a0_0x5efa80['new']()['setTime'](this['toTime']()));}['setCode'](_0x3047f5){return this['code']=_0x3047f5,this;}['setZone'](_0x117c07){return this['_zone']=_0x117c07,this;}['seperator'](){return a0_0x4d5383(()=>new Date()['toLocaleDateString'](this['code'])['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x4d5383(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x24cba9=this['code']){return a0_0x4d5383(()=>{return new Intl['Locale'](_0x24cba9)?.['timeZones']||[];},null);}['region'](_0x16584a=this['code']){return a0_0x4d5383(()=>{return new Intl['Locale'](_0x16584a)['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 _0x59a12b=this['val']['dayOfWeek'];return _0x59a12b?_0x59a12b:0x7;}['dayOfWeekUtc'](){return this['val']['dayOfWeek']-0x1;}['setYear'](_0x34a1d4){const _0x4c1fa4={};return _0x4c1fa4['year']=_0x34a1d4,this['val']=this['val']['with'](_0x4c1fa4),this;}['setMonth'](_0x2b3f5a){const _0x246035={};return _0x246035['month']=_0x2b3f5a,this['val']=this['val']['with'](_0x246035),this;}['setMonthUtc'](_0x1c6e17){const _0x51c2ed={};return _0x51c2ed['month']=_0x1c6e17+0x1,this['val']=this['val']['with'](_0x51c2ed),this;}['setDay'](_0x9e27a7){const _0x3853ed={};return _0x3853ed['day']=_0x9e27a7,this['val']=this['val']['with'](_0x3853ed),this;}['setHour'](_0x51ce42){const _0x17ad4f={};return _0x17ad4f['hour']=_0x51ce42,this['val']=this['val']['with'](_0x17ad4f),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'](_0x2778bd){const _0x509bcd={};return _0x509bcd['minute']=_0x2778bd,this['val']=this['val']['with'](_0x509bcd),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x5a325f){const _0xf342e6={};return _0xf342e6['second']=_0x5a325f,this['val']=this['val']['with'](_0xf342e6),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x1b37e4){const _0x4a960e={};return _0x4a960e['millisecond']=_0x1b37e4,this['val']=this['val']['with'](_0x4a960e),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x383b4a){return this['val']=a0_0x3dde86['Temporal']['Instant']['from'](_0x383b4a||new Date()['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x4feb42){return this['val']=a0_0x3dde86['Temporal']['Instant']['fromEpochMilliseconds'](_0x4feb42||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x28e415){return this['setIsoDate'](_0x28e415?.['toISOString']()),this;}['setDateInputValue'](_0x31db12){return this['val']=a0_0x3dde86['Temporal']['Instant']['from'](new Date(_0x31db12?.['replace']('T','\x20'))['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setVal'](_0x487f2a){return a0_0x4d5383(()=>{return a0_0x5efa80['new']()['setTime'](a0_0x384524(_0x487f2a,this['zone']));});}['toIsoDate'](){return this['val']['toString']()['substring'](0x0,0x17)+'Z';}['toIsoDateZone'](){return this['val']['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this['val']['epochMilliseconds'];}['toDate'](){return this['val'];}['toDateMounthInput'](){return this['year']()+'-'+a0_0x4ac4e5(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x4ac4e5(this['month']())+'-'+a0_0x4ac4e5(this['day']());}['toTimeInput'](_0x496968=!![]){const _0x3f859f=[];return _0x3f859f['push'](a0_0x4ac4e5(this['hours']())),_0x3f859f['push'](a0_0x4ac4e5(this['min']())),_0x496968&&_0x3f859f['push'](a0_0x4ac4e5(this['sec']())),_0x3f859f['join'](':');}['toDateTimeInput'](_0x4a095e=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x4a095e);}['strDate'](){const _0x4ce5a3={};return _0x4ce5a3['month']='2-digit',_0x4ce5a3['day']='2-digit',_0x4ce5a3['year']='numeric',this['val']['toLocaleString'](this['code'],_0x4ce5a3);}['strTime'](){return a0_0x4ac4e5(this['hours']())+':'+a0_0x4ac4e5(this['min']())+':'+a0_0x4ac4e5(this['sec']());}['strHHmm'](){return a0_0x4ac4e5(this['hours']())+':'+a0_0x4ac4e5(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x132f8b){return this['val']['toLocaleString'](this['code'],_0x132f8b);}['strYears'](){return this['val']['year']['toString']();}['strMounth'](){return a0_0x4ac4e5(this['month'](),0x2);}['strDay'](){return a0_0x4ac4e5(this['day'](),0x2);}['strHour'](){return a0_0x4ac4e5(this['hours'](),0x2);}['strMin'](){return a0_0x4ac4e5(this['min'](),0x2);}['strSec'](){return a0_0x4ac4e5(this['sec'](),0x2);}['strMsec'](){return a0_0x4ac4e5(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x5d29e9){const _0x17c254={};return _0x17c254['days']=_0x5d29e9,this['val']=this['val']['add'](_0x17c254),this;}['addHours'](_0x293a57){const _0x42caef={};return _0x42caef['hours']=_0x293a57,this['val']=this['val']['add'](_0x42caef),this;}['addMins'](_0x374e26){const _0x1b422d={};return _0x1b422d['minutes']=_0x374e26,this['val']=this['val']['add'](_0x1b422d),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'](_0x3ea349){return a0_0x4d5383(()=>{return this['cpy']()['toTime']()===a0_0x384524(_0x3ea349,this['zone']);});}['gt'](_0x28432a){return a0_0x4d5383(()=>{return this['cpy']()['toTime']()>a0_0x384524(_0x28432a,this['zone']);});}['gte'](_0x389a6a){return a0_0x4d5383(()=>{return this['cpy']()['toTime']()>=a0_0x384524(_0x389a6a,this['zone']);});}['lt'](_0x5c1a68){return a0_0x4d5383(()=>{return this['cpy']()['toTime']()<a0_0x384524(_0x5c1a68,this['zone']);});}['lte'](_0x597c7f){return a0_0x4d5383(()=>{return this['cpy']()['toTime']()<=a0_0x384524(_0x597c7f,this['zone']);});}['btw'](_0x11feed,_0x116caa){return a0_0x4d5383(()=>{const _0x1a72b5=a0_0x384524(_0x11feed,this['zone']),_0x190140=a0_0x384524(_0x116caa,this['zone']),_0x4893fe=this['cpy']()['toTime']();return _0x1a72b5<_0x4893fe&&_0x4893fe<_0x190140;});}['btweq'](_0x3e310c,_0x363a36){return a0_0x4d5383(()=>{const _0xc93de2=a0_0x384524(_0x3e310c,this['zone']),_0x3c669a=a0_0x384524(_0x363a36,this['zone']),_0x395ca8=this['cpy']()['toTime']();return _0xc93de2<=_0x395ca8&&_0x395ca8<=_0x3c669a;});}['btwEqStart'](_0x2686d2,_0x355619){return a0_0x4d5383(()=>{const _0x365515=a0_0x384524(_0x2686d2,this['zone']),_0x4eb66a=a0_0x384524(_0x355619,this['zone']),_0xb931f8=this['cpy']()['toTime']();return _0x365515<=_0xb931f8&&_0xb931f8<_0x4eb66a;});}['btwEqEnd'](_0x275e36,_0x35acfd){return a0_0x4d5383(()=>{const _0x1c4dad=a0_0x384524(_0x275e36,this['zone']),_0x1cc205=a0_0x384524(_0x35acfd,this['zone']),_0x15839a=this['cpy']()['toTime']();return _0x1c4dad<_0x15839a&&_0x15839a<=_0x1cc205;});}static['diffDays'](_0x49fb72,_0x22bd53,_0x40ebce){return a0_0x4d5383(()=>{const _0x4d4601=a0_0x384524(_0x49fb72,a0_0x4ddca1),_0x2168a1=a0_0x384524(_0x22bd53,a0_0x4ddca1);return _0x40ebce?Math['abs'](_0x4d4601-_0x2168a1)/0x36ee80/0x18:(_0x4d4601-_0x2168a1)/0x36ee80/0x18;});}static['diffHours'](_0x354777,_0x1cf732,_0x4c9b7d){return a0_0x4d5383(()=>{const _0x2a26d1=a0_0x384524(_0x354777,a0_0x4ddca1),_0x7af122=a0_0x384524(_0x1cf732,a0_0x4ddca1);return _0x4c9b7d?Math['abs'](_0x2a26d1-_0x7af122)/0x36ee80:(_0x2a26d1-_0x7af122)/0x36ee80;});}static['diffMins'](_0x585db4,_0x58e571,_0x247e5d){return a0_0x4d5383(()=>{const _0x2b0f90=a0_0x384524(_0x585db4,a0_0x4ddca1),_0x55552c=a0_0x384524(_0x58e571,a0_0x4ddca1);return _0x247e5d?Math['abs'](_0x2b0f90-_0x55552c)/0x3e8/0x3c:(_0x2b0f90-_0x55552c)/0x3e8/0x3c;});}static['diffSecs'](_0x32d6e0,_0x2589a3,_0x3553a2){return a0_0x4d5383(()=>{const _0x28ae13=a0_0x384524(_0x32d6e0,a0_0x4ddca1),_0x4a0c86=a0_0x384524(_0x2589a3,a0_0x4ddca1);return _0x3553a2?Math['abs'](_0x28ae13-_0x4a0c86)/0x3e8:(_0x28ae13-_0x4a0c86)/0x3e8;});}static['divideTime'](_0x5f5969){return a0_0x4d5383(()=>a0_0x482409(_0x5f5969));}}exports['MDateUtil']=a0_0x5efa80;const a0_0x62132b={};a0_0x62132b['value']='mdateutil',a0_0x62132b['writable']=![],a0_0x62132b['enumerable']=!![],a0_0x62132b['configurable']=![],Object['defineProperty'](a0_0x5efa80['prototype'],'idkey',a0_0x62132b);
1
+ 'use strict';const a0_0x43c826={};a0_0x43c826['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x43c826),exports['MDateUtil']=void 0x0;const a0_0x3bb990=require('@js-temporal/polyfill'),a0_0x1ee0ad=(_0x58b873,_0x11553a=0x2)=>_0x58b873['toString']()['padStart'](_0x11553a,'0');function a0_0x4b7070(_0x2989e8,_0xe95ae2){try{return _0x2989e8();}catch(_0x3de977){if(_0xe95ae2)return _0xe95ae2;throw new Error('UNKNOWN');}}function a0_0xaa8d36(_0x104a68,_0x4654d1){try{if(_0x104a68 instanceof Date)return a0_0x3bb990['Temporal']['Instant']['fromEpochMilliseconds'](_0x104a68['getTime']())['toZonedDateTimeISO'](_0x4654d1)['epochMilliseconds'];if(typeof _0x104a68==='number')return _0x104a68;if(typeof _0x104a68==='string')return a0_0x3bb990['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x104a68)['getTime']())['toZonedDateTimeISO'](_0x4654d1)['epochMilliseconds'];if(_0x104a68 instanceof a0_0x342409)return _0x104a68['toTime']();if(_0x104a68['idkey']==='mdateutil')return _0x104a68['toTime']();return 0x0;}catch(_0x1f6822){throw new Error('ERROR');}}function a0_0xf00a23(_0xa5671d){function _0x16e02f(_0x4edf0a){const _0x224c12={};return _0x224c12['weekday']=_0x4edf0a,a0_0x4b7070(()=>new Intl['DateTimeFormat'](_0xa5671d['localCode'],_0x224c12)['format'](a0_0xaa8d36(_0xa5671d,_0xa5671d['zone'])),'');}function _0x5ebd2a(){return _0x16e02f('long');}function _0x524221(){return _0x16e02f('short');}function _0x18a35e(){return _0x16e02f('narrow');}const _0x2849f0={};return _0x2849f0['ln']=_0x5ebd2a,_0x2849f0['sh']=_0x524221,_0x2849f0['nr']=_0x18a35e,_0x2849f0;}function a0_0x2b7828(_0x3018c4){let _0x40efd1=undefined,_0x28b1f9=undefined,_0x13d1dc=undefined,_0x3898d5=undefined;try{const _0x488006=(_0x3018c4||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x40efd1=_0x488006['length']>=0x1?Number(_0x488006[0x0]):undefined,_0x28b1f9=_0x488006['length']>=0x2?Number(_0x488006[0x1]):undefined,_0x13d1dc=_0x488006['length']>=0x3?Number(_0x488006[0x2]):undefined;}catch(_0x14423f){}try{let _0x4f81ed=_0x3018c4||'',_0x49cb08=/\.\d{3}/g,_0x533b61=_0x4f81ed['match'](_0x49cb08)[0x0]['split']('.')['filter'](_0x423225=>Boolean(_0x423225));_0x3898d5=_0x533b61['length']>=0x1?Number(_0x533b61[0x0]):undefined;}catch(_0xeb86d9){}const _0x353da8={};return _0x353da8['h']=_0x40efd1,_0x353da8['m']=_0x28b1f9,_0x353da8['s']=_0x13d1dc,_0x353da8['ms']=_0x3898d5,_0x353da8;}let a0_0x1eac19=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x4a637f=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];class a0_0x342409{['val'];['code']=Intl['NumberFormat']()['resolvedOptions']()['locale'];['_zone']=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];['dyfrmt']=a0_0xf00a23(this);get['localCode'](){return this['code'];}get['zone'](){return this['_zone'];}['init'](){return this['val']=a0_0x3bb990['Temporal']['Instant']['fromEpochMilliseconds'](new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this['dyfrmt']=a0_0xf00a23(this),this;}['toString'](){return'TEST';}static['new'](){return new a0_0x342409()['setCode'](a0_0x1eac19)['setZone'](a0_0x4a637f)['init']();}static['setCode'](_0x803b28){return a0_0x1eac19=_0x803b28,this;}static['setZone'](_0x378394){return a0_0x4a637f=_0x378394,this;}static['seperator'](){return a0_0x4b7070(()=>new Date()['toLocaleDateString'](a0_0x1eac19)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x4b7070(()=>a0_0x342409['new']()['setTime'](this['toTime']()));}['setCode'](_0x40deb4){return this['code']=_0x40deb4,this;}['setZone'](_0x22242e){return this['_zone']=_0x22242e,this;}['seperator'](){return a0_0x4b7070(()=>new Date()['toLocaleDateString'](this['code'])['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x4b7070(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x1dcd16=this['code']){return a0_0x4b7070(()=>{return new Intl['Locale'](_0x1dcd16)?.['timeZones']||[];},null);}['region'](_0x45916d=this['code']){return a0_0x4b7070(()=>{return new Intl['Locale'](_0x45916d)['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 _0x37f599=this['val']['dayOfWeek'];return _0x37f599?_0x37f599:0x7;}['dayOfWeekUtc'](){return this['val']['dayOfWeek']-0x1;}['setYear'](_0x468545){const _0x5d90ae={};return _0x5d90ae['year']=_0x468545,this['val']=this['val']['with'](_0x5d90ae),this;}['setMonth'](_0x4f6042){const _0x1940cd={};return _0x1940cd['month']=_0x4f6042,this['val']=this['val']['with'](_0x1940cd),this;}['setMonthUtc'](_0x4fbcd7){const _0x7b0f94={};return _0x7b0f94['month']=_0x4fbcd7+0x1,this['val']=this['val']['with'](_0x7b0f94),this;}['setDay'](_0x3d4d5f){const _0x23e6be={};return _0x23e6be['day']=_0x3d4d5f,this['val']=this['val']['with'](_0x23e6be),this;}['setHour'](_0x4f0e66){const _0x5810e9={};return _0x5810e9['hour']=_0x4f0e66,this['val']=this['val']['with'](_0x5810e9),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'](_0x378edb){const _0x438e20={};return _0x438e20['minute']=_0x378edb,this['val']=this['val']['with'](_0x438e20),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x51210d){const _0x3f7422={};return _0x3f7422['second']=_0x51210d,this['val']=this['val']['with'](_0x3f7422),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x48630e){const _0x28285c={};return _0x28285c['millisecond']=_0x48630e,this['val']=this['val']['with'](_0x28285c),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x779547){return this['val']=a0_0x3bb990['Temporal']['Instant']['from'](_0x779547||new Date()['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x2030aa){return this['val']=a0_0x3bb990['Temporal']['Instant']['fromEpochMilliseconds'](_0x2030aa||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x43e93c){return this['setIsoDate'](_0x43e93c?.['toISOString']()),this;}['setDateInputValue'](_0x4d2240){return this['val']=a0_0x3bb990['Temporal']['Instant']['from'](new Date(_0x4d2240?.['replace']('T','\x20'))['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setVal'](_0x4c58e9){return a0_0x4b7070(()=>{return a0_0x342409['new']()['setTime'](a0_0xaa8d36(_0x4c58e9,this['zone']));});}['toIsoDate'](){return this['val']['toString']()['substring'](0x0,0x17)+'Z';}['toIsoDateZone'](){return this['val']['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this['val']['epochMilliseconds'];}['toDate'](){return this['val'];}['toDateMounthInput'](){return this['year']()+'-'+a0_0x1ee0ad(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x1ee0ad(this['month']())+'-'+a0_0x1ee0ad(this['day']());}['toTimeInput'](_0x1d4445=!![]){const _0x278d00=[];return _0x278d00['push'](a0_0x1ee0ad(this['hours']())),_0x278d00['push'](a0_0x1ee0ad(this['min']())),_0x1d4445&&_0x278d00['push'](a0_0x1ee0ad(this['sec']())),_0x278d00['join'](':');}['toDateTimeInput'](_0x593bea=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x593bea);}['strDate'](){const _0x3420db={};return _0x3420db['month']='2-digit',_0x3420db['day']='2-digit',_0x3420db['year']='numeric',this['val']['toLocaleString'](this['code'],_0x3420db);}['strTime'](){return a0_0x1ee0ad(this['hours']())+':'+a0_0x1ee0ad(this['min']())+':'+a0_0x1ee0ad(this['sec']());}['strHHmm'](){return a0_0x1ee0ad(this['hours']())+':'+a0_0x1ee0ad(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x5500ca){return this['val']['toLocaleString'](this['code'],_0x5500ca);}['strYears'](){return this['val']['year']['toString']();}['strMounth'](){return a0_0x1ee0ad(this['month'](),0x2);}['strDay'](){return a0_0x1ee0ad(this['day'](),0x2);}['strHour'](){return a0_0x1ee0ad(this['hours'](),0x2);}['strMin'](){return a0_0x1ee0ad(this['min'](),0x2);}['strSec'](){return a0_0x1ee0ad(this['sec'](),0x2);}['strMsec'](){return a0_0x1ee0ad(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x4514c4){const _0x54039d={};return _0x54039d['days']=_0x4514c4,this['val']=this['val']['add'](_0x54039d),this;}['addHours'](_0x381918){const _0x191765={};return _0x191765['hours']=_0x381918,this['val']=this['val']['add'](_0x191765),this;}['addMins'](_0x552fdb){const _0x4dab43={};return _0x4dab43['minutes']=_0x552fdb,this['val']=this['val']['add'](_0x4dab43),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'](_0x174d9c){return a0_0x4b7070(()=>{return this['cpy']()['toTime']()===a0_0xaa8d36(_0x174d9c,this['zone']);});}['gt'](_0xb2d0c3){return a0_0x4b7070(()=>{return this['cpy']()['toTime']()>a0_0xaa8d36(_0xb2d0c3,this['zone']);});}['gte'](_0x572694){return a0_0x4b7070(()=>{return this['cpy']()['toTime']()>=a0_0xaa8d36(_0x572694,this['zone']);});}['lt'](_0x50e638){return a0_0x4b7070(()=>{return this['cpy']()['toTime']()<a0_0xaa8d36(_0x50e638,this['zone']);});}['lte'](_0x40cf82){return a0_0x4b7070(()=>{return this['cpy']()['toTime']()<=a0_0xaa8d36(_0x40cf82,this['zone']);});}['btw'](_0x300263,_0x4cd469){return a0_0x4b7070(()=>{const _0xe33ee7=a0_0xaa8d36(_0x300263,this['zone']),_0x3c4abc=a0_0xaa8d36(_0x4cd469,this['zone']),_0x76c55c=this['cpy']()['toTime']();return _0xe33ee7<_0x76c55c&&_0x76c55c<_0x3c4abc;});}['btweq'](_0x92fe56,_0x3f6f9b){return a0_0x4b7070(()=>{const _0x1c4cf8=a0_0xaa8d36(_0x92fe56,this['zone']),_0x2297cb=a0_0xaa8d36(_0x3f6f9b,this['zone']),_0x39c3b4=this['cpy']()['toTime']();return _0x1c4cf8<=_0x39c3b4&&_0x39c3b4<=_0x2297cb;});}['btwEqStart'](_0x1229bf,_0x281fe9){return a0_0x4b7070(()=>{const _0x382973=a0_0xaa8d36(_0x1229bf,this['zone']),_0x1fce9b=a0_0xaa8d36(_0x281fe9,this['zone']),_0x33b06b=this['cpy']()['toTime']();return _0x382973<=_0x33b06b&&_0x33b06b<_0x1fce9b;});}['btwEqEnd'](_0x262269,_0x59113e){return a0_0x4b7070(()=>{const _0x5677a9=a0_0xaa8d36(_0x262269,this['zone']),_0x53b266=a0_0xaa8d36(_0x59113e,this['zone']),_0x1939c1=this['cpy']()['toTime']();return _0x5677a9<_0x1939c1&&_0x1939c1<=_0x53b266;});}static['diffDays'](_0x31f49f,_0x22e148,_0x54e82d){return a0_0x4b7070(()=>{const _0xa87350=a0_0xaa8d36(_0x31f49f,a0_0x4a637f),_0x2b1992=a0_0xaa8d36(_0x22e148,a0_0x4a637f);return _0x54e82d?Math['abs'](_0xa87350-_0x2b1992)/0x36ee80/0x18:(_0xa87350-_0x2b1992)/0x36ee80/0x18;});}static['diffHours'](_0x3c2854,_0x29d08b,_0x173b40){return a0_0x4b7070(()=>{const _0x569d25=a0_0xaa8d36(_0x3c2854,a0_0x4a637f),_0x1b07cb=a0_0xaa8d36(_0x29d08b,a0_0x4a637f);return _0x173b40?Math['abs'](_0x569d25-_0x1b07cb)/0x36ee80:(_0x569d25-_0x1b07cb)/0x36ee80;});}static['diffMins'](_0x22bbf7,_0x2bc965,_0x3634c2){return a0_0x4b7070(()=>{const _0x5778b0=a0_0xaa8d36(_0x22bbf7,a0_0x4a637f),_0x95d728=a0_0xaa8d36(_0x2bc965,a0_0x4a637f);return _0x3634c2?Math['abs'](_0x5778b0-_0x95d728)/0x3e8/0x3c:(_0x5778b0-_0x95d728)/0x3e8/0x3c;});}static['diffSecs'](_0x20cf41,_0x38cb5b,_0x4a5448){return a0_0x4b7070(()=>{const _0x2fecd6=a0_0xaa8d36(_0x20cf41,a0_0x4a637f),_0x3b224b=a0_0xaa8d36(_0x38cb5b,a0_0x4a637f);return _0x4a5448?Math['abs'](_0x2fecd6-_0x3b224b)/0x3e8:(_0x2fecd6-_0x3b224b)/0x3e8;});}static['divideTime'](_0x28ca3e){return a0_0x4b7070(()=>a0_0x2b7828(_0x28ca3e));}}exports['MDateUtil']=a0_0x342409;const a0_0x5d6bc2={};a0_0x5d6bc2['value']='mdateutil',a0_0x5d6bc2['writable']=![],a0_0x5d6bc2['enumerable']=!![],a0_0x5d6bc2['configurable']=![],Object['defineProperty'](a0_0x342409['prototype'],'idkey',a0_0x5d6bc2);
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x56d975=this&&this['__createBinding']||(Object['create']?function(_0x1e25d4,_0x50cb1f,_0x271d72,_0x303e0d){if(_0x303e0d===undefined)_0x303e0d=_0x271d72;var _0x1e226c=Object['getOwnPropertyDescriptor'](_0x50cb1f,_0x271d72);if(!_0x1e226c||('get'in _0x1e226c?!_0x50cb1f['__esModule']:_0x1e226c['writable']||_0x1e226c['configurable'])){var _0x18b014={};_0x18b014['enumerable']=!![],_0x18b014['get']=function(){return _0x50cb1f[_0x271d72];},_0x1e226c=_0x18b014;}Object['defineProperty'](_0x1e25d4,_0x303e0d,_0x1e226c);}:function(_0xb701b8,_0x48d22b,_0x890116,_0x5254e9){if(_0x5254e9===undefined)_0x5254e9=_0x890116;_0xb701b8[_0x5254e9]=_0x48d22b[_0x890116];}),a0_0x5306c0=this&&this['__exportStar']||function(_0x58abcb,_0x2aea17){for(var _0x435133 in _0x58abcb)if(_0x435133!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x2aea17,_0x435133))a0_0x56d975(_0x2aea17,_0x58abcb,_0x435133);},a0_0xed00fa={};a0_0xed00fa['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0xed00fa),a0_0x5306c0(require('./DateUtil'),exports);
1
+ 'use strict';var a0_0x4e4e1a=this&&this['__createBinding']||(Object['create']?function(_0x4f2f8b,_0x422f6c,_0x4f1d62,_0x29210c){if(_0x29210c===undefined)_0x29210c=_0x4f1d62;var _0x34ec41=Object['getOwnPropertyDescriptor'](_0x422f6c,_0x4f1d62);if(!_0x34ec41||('get'in _0x34ec41?!_0x422f6c['__esModule']:_0x34ec41['writable']||_0x34ec41['configurable'])){var _0x1d91dd={};_0x1d91dd['enumerable']=!![],_0x1d91dd['get']=function(){return _0x422f6c[_0x4f1d62];},_0x34ec41=_0x1d91dd;}Object['defineProperty'](_0x4f2f8b,_0x29210c,_0x34ec41);}:function(_0x212c2e,_0x6d9299,_0x36297e,_0x3f72a1){if(_0x3f72a1===undefined)_0x3f72a1=_0x36297e;_0x212c2e[_0x3f72a1]=_0x6d9299[_0x36297e];}),a0_0x47a624=this&&this['__exportStar']||function(_0x551856,_0x2cbd38){for(var _0x2b6b8d in _0x551856)if(_0x2b6b8d!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x2cbd38,_0x2b6b8d))a0_0x4e4e1a(_0x2cbd38,_0x551856,_0x2b6b8d);},a0_0x12b3eb={};a0_0x12b3eb['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x12b3eb),a0_0x47a624(require('./DateUtil'),exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mat-date",
3
- "version": "1.8.15",
3
+ "version": "1.8.17",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",