yunlin 1.0.23 → 1.0.24
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/func.js +1 -1
- package/dist/index.js +1 -1
- package/dist/test.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +2 -2
package/dist/func.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x1432(){const _0xc1d7ad=['fLsjUnit','優惠券','vip','filter','5981286ZyqEmr','fJcbzlsjUnit','兒童[占床]','306508ElruxO','includes','split','promotion','point','651700RKxAWr','tip','vipdiscounted','遊客優惠','child','adultnum','2553357RLqqNx','coupon','childnum','base','adultprice','childprice','tipday','unitprice','reduction','money','users','6048603OlUQdh','7UGpgMF','其他費用','\x20*\x20','list','附加行程','tipuser','num','10sRHYPh','totaltax','strLx','tax','會員減免','1110428OazYWr','trip','nRs','unit','4862264IsXihi','strJgbm','rylx','service','10fNYVzy','other','airtax','map','totalprice','insure','push','name','basechildprice','elder','減免費用','length'];a0_0x1432=function(){return _0xc1d7ad;};return a0_0x1432();}const a0_0x36bdf8=a0_0x5a12;function a0_0x5a12(_0x23cb85,_0x4824af){const _0x14324d=a0_0x1432();return a0_0x5a12=function(_0x5a12e8,_0x33a0ad){_0x5a12e8=_0x5a12e8-0x198;let _0x2e47e0=_0x14324d[_0x5a12e8];return _0x2e47e0;},a0_0x5a12(_0x23cb85,_0x4824af);}(function(_0x19b813,_0x18e0c2){const _0x4e6b03=a0_0x5a12,_0x556149=_0x19b813();while(!![]){try{const _0x410608=-parseInt(_0x4e6b03(0x1aa))/0x1+parseInt(_0x4e6b03(0x1c5))/0x2+-parseInt(_0x4e6b03(0x1d0))/0x3+parseInt(_0x4e6b03(0x1ca))/0x4*(parseInt(_0x4e6b03(0x1a5))/0x5)+parseInt(_0x4e6b03(0x1c2))/0x6*(parseInt(_0x4e6b03(0x19e))/0x7)+parseInt(_0x4e6b03(0x1ae))/0x8+parseInt(_0x4e6b03(0x19d))/0x9*(parseInt(_0x4e6b03(0x1b2))/0xa);if(_0x410608===_0x18e0c2)break;else _0x556149['push'](_0x556149['shift']());}catch(_0x2b45be){_0x556149['push'](_0x556149['shift']());}}}(a0_0x1432,0xc1eb0));function handleCosting(_0x4ae98e,_0x44b409='',_0x433d08='-',_0x36690f={'people':'人員費用','service':'附加服務','trip':a0_0x36bdf8(0x1a2),'other':a0_0x36bdf8(0x19f),'reduction':a0_0x36bdf8(0x1bc),'totalprice':'總計','airtax':'機場稅'},_0x29aa2f={'adult':'成人','child':'兒童','childusebed':a0_0x36bdf8(0x1c4),'infant':'嬰兒','half':'拼房','tip':'小費','elder':a0_0x36bdf8(0x1cd),'vip':a0_0x36bdf8(0x1a9),'promotion':'促銷','insure':'保險費用','coupon':a0_0x36bdf8(0x1bf),'point':'積分','tax':'稅金','viprecharge':'會員充值','r':'人','t':'天'}){const _0x784303=a0_0x36bdf8;let _0x4ca53c=[];const _0x3f3453=_0x784303(0x1a0),_0x258cd9=_0x4ae98e[_0x784303(0x1c1)](_0x24b3fa=>_0x24b3fa[_0x784303(0x1a7)]==_0x784303(0x1d3));if(_0x258cd9[_0x784303(0x1bd)]){let _0x2b2b96={'title':_0x36690f['people'],'type':_0x784303(0x1d3),'list':[]};_0x258cd9[_0x784303(0x1b5)](_0x2e5f81=>{const _0x2dd0f5=_0x784303;_0x2b2b96[_0x2dd0f5(0x1a1)]['push']({'title':_0x29aa2f[_0x2e5f81[_0x2dd0f5(0x1af)]],'info':_0x44b409+_0x2e5f81['fLsjUnit']+_0x3f3453+_0x2e5f81[_0x2dd0f5(0x1ac)],'nRs':_0x2e5f81[_0x2dd0f5(0x1ac)],'unit':_0x2e5f81[_0x2dd0f5(0x1be)],'cb':_0x2e5f81[_0x2dd0f5(0x1c3)],'type':_0x2dd0f5(0x1d3)});}),_0x4ca53c[_0x784303(0x1b8)](_0x2b2b96);}const _0x1824b5=_0x4ae98e[_0x784303(0x1c1)](_0x2f2928=>_0x2f2928['strLx']=='service');if(_0x1824b5[_0x784303(0x1bd)]){let _0x49c369={'title':_0x36690f['service'],'type':_0x784303(0x1b1),'list':[]};_0x1824b5[_0x784303(0x1b5)](_0x87ce5e=>{const _0x3db3d2=_0x784303;_0x49c369[_0x3db3d2(0x1a1)]['push']({'title':_0x87ce5e['name']+('['+_0x87ce5e['itemname']+']'),'info':_0x44b409+_0x87ce5e['unitprice']+_0x3f3453+_0x87ce5e[_0x3db3d2(0x1a4)],'nRs':_0x87ce5e['num'],'unit':_0x87ce5e[_0x3db3d2(0x199)],'cb':_0x87ce5e['baseprice'],'type':_0x3db3d2(0x1b1)});}),_0x4ca53c[_0x784303(0x1b8)](_0x49c369);}const _0x162bdf=_0x4ae98e['filter'](_0x1f1c85=>_0x1f1c85[_0x784303(0x1a7)]=='trip');if(_0x162bdf[_0x784303(0x1bd)]){let _0x50147b={'title':_0x36690f[_0x784303(0x1ab)],'type':'trip','list':[]};_0x162bdf[_0x784303(0x1b5)](_0x12848f=>{const _0x5a1b48=_0x784303;_0x12848f[_0x5a1b48(0x1cf)]!='0'&&_0x50147b['list'][_0x5a1b48(0x1b8)]({'title':_0x12848f[_0x5a1b48(0x1b9)]+('['+_0x29aa2f['adult']+']'),'info':_0x44b409+_0x12848f['adultprice']+_0x3f3453+_0x12848f[_0x5a1b48(0x1cf)],'nRs':_0x12848f[_0x5a1b48(0x1cf)],'unit':_0x12848f[_0x5a1b48(0x1d4)],'cb':_0x12848f['baseadultprice'],'type':_0x5a1b48(0x1ab)}),_0x12848f[_0x5a1b48(0x1d2)]!='0'&&_0x50147b['list'][_0x5a1b48(0x1b8)]({'title':_0x12848f['name']+('['+_0x29aa2f[_0x5a1b48(0x1ce)]+']'),'info':_0x44b409+_0x12848f[_0x5a1b48(0x1d5)]+_0x3f3453+_0x12848f[_0x5a1b48(0x1d2)],'nRs':_0x12848f['childnum'],'unit':_0x12848f['childprice'],'cb':_0x12848f[_0x5a1b48(0x1ba)],'type':_0x5a1b48(0x1ab)});}),_0x4ca53c['push'](_0x50147b);}let _0x5971b5=[];const _0x251362=_0x4ae98e[_0x784303(0x1c1)](_0x359537=>_0x359537[_0x784303(0x1a7)]==_0x784303(0x1bb));_0x251362[_0x784303(0x1bd)]&&_0x251362[_0x784303(0x1b5)](_0x38c8b1=>{const _0x3532e2=_0x784303,_0xf0d804=_0x38c8b1[_0x3532e2(0x1b9)][_0x3532e2(0x1c7)]('|')||[''];_0x5971b5['push']({'title':_0x29aa2f[_0x3532e2(0x1bb)]+('['+_0xf0d804[0x0]+']'),'info':_0x44b409+_0x433d08+_0x38c8b1[_0x3532e2(0x19b)],'unit':_0x38c8b1[_0x3532e2(0x19b)],'cb':_0x38c8b1[_0x3532e2(0x19b)],'type':'elder'});});const _0x1dbbce=_0x4ae98e[_0x784303(0x1c1)](_0x233a54=>_0x233a54[_0x784303(0x1a7)]=='vipdiscounted');_0x1dbbce[_0x784303(0x1bd)]&&_0x1dbbce[_0x784303(0x1b5)](_0x3018ac=>{const _0x481001=_0x784303;_0x5971b5['push']({'title':_0x29aa2f['vip']+('['+_0x3018ac[_0x481001(0x1b9)]+']'),'info':_0x44b409+_0x433d08+_0x3018ac[_0x481001(0x19b)],'unit':_0x3018ac[_0x481001(0x19b)],'cb':_0x3018ac['money'],'type':_0x481001(0x1c0)});});const _0x1ffb82=_0x4ae98e['filter'](_0x45ef5d=>_0x45ef5d[_0x784303(0x1a7)]==_0x784303(0x1c8));_0x1ffb82[_0x784303(0x1bd)]&&_0x1ffb82[_0x784303(0x1b5)](_0x1ab528=>{const _0x188d42=_0x784303;_0x5971b5[_0x188d42(0x1b8)]({'title':_0x29aa2f['promotion'],'info':_0x44b409+_0x433d08+_0x1ab528[_0x188d42(0x19b)],'unit':_0x1ab528[_0x188d42(0x19b)],'cb':_0x1ab528[_0x188d42(0x19b)],'type':_0x188d42(0x1c8)});});_0x5971b5['length']&&_0x4ca53c[_0x784303(0x1b8)]({'title':_0x36690f['reduction'],'type':_0x784303(0x19a),'list':_0x5971b5});const _0x173620=_0x4ae98e['filter'](_0x2a86b9=>_0x2a86b9['strLx']=='airtax');if(_0x173620[_0x784303(0x1bd)]){let _0xf063c0={'title':_0x36690f['airtax'],'type':_0x784303(0x1b4),'list':[]};_0x173620[_0x784303(0x1b5)](_0x3adf75=>{const _0x47ec09=_0x784303;_0xf063c0[_0x47ec09(0x1a1)][_0x47ec09(0x1b8)]({'title':_0x29aa2f[_0x3adf75[_0x47ec09(0x1b0)]],'info':_0x44b409+_0x3adf75[_0x47ec09(0x199)]+_0x3f3453+_0x3adf75['sl'],'nRs':_0x3adf75['sl'],'unit':_0x3adf75[_0x47ec09(0x199)],'cb':_0x3adf75['unitpricewb'],'type':_0x3adf75[_0x47ec09(0x1b0)]});}),_0x4ca53c['push'](_0xf063c0);}const _0x349a3c=[_0x784303(0x1d3),_0x784303(0x1b1),_0x784303(0x1ab),'elder',_0x784303(0x1cc),_0x784303(0x1c8),_0x784303(0x1b4)],_0x270eca=_0x4ae98e[_0x784303(0x1c1)](_0x12763b=>!_0x349a3c[_0x784303(0x1c6)](_0x12763b[_0x784303(0x1a7)]));let _0x16f76b={'title':_0x36690f[_0x784303(0x1b3)],'type':_0x784303(0x1b3),'list':[]};for(var _0x487ccc=0x0;_0x487ccc<_0x270eca[_0x784303(0x1bd)];_0x487ccc++){const _0x39610c=_0x270eca[_0x487ccc];_0x39610c[_0x784303(0x1a7)]=='viprecharge'&&_0x16f76b[_0x784303(0x1a1)][_0x784303(0x1b8)]({'title':_0x29aa2f['viprecharge']+('['+_0x39610c[_0x784303(0x1b9)]+']'),'info':_0x44b409+_0x39610c[_0x784303(0x19b)],'unit':_0x39610c[_0x784303(0x19b)],'type':_0x39610c['strLx']}),_0x39610c[_0x784303(0x1a7)]==_0x784303(0x1b7)&&_0x16f76b['list'][_0x784303(0x1b8)]({'title':_0x29aa2f[_0x784303(0x1b7)]+('['+_0x39610c[_0x784303(0x1b9)]+']'),'info':_0x44b409+_0x39610c[_0x784303(0x1ad)]+_0x3f3453+_0x39610c[_0x784303(0x19c)]+_0x29aa2f['r'],'nRs':_0x39610c['users'],'unit':_0x39610c[_0x784303(0x1ad)],'cb':_0x39610c['unit'],'type':_0x784303(0x1b7)}),(_0x39610c[_0x784303(0x1a7)]==_0x784303(0x1d1)||_0x39610c[_0x784303(0x1a7)]==_0x784303(0x1c9))&&_0x16f76b[_0x784303(0x1a1)][_0x784303(0x1b8)]({'title':_0x29aa2f[_0x39610c[_0x784303(0x1a7)]],'info':_0x44b409+_0x433d08+_0x39610c[_0x784303(0x19b)],'unit':_0x39610c[_0x784303(0x19b)],'type':_0x39610c[_0x784303(0x1a7)]}),_0x39610c[_0x784303(0x1a7)]==_0x784303(0x1cb)&&_0x16f76b['list']['push']({'title':_0x29aa2f[_0x39610c[_0x784303(0x1a7)]],'info':_0x44b409+_0x39610c[_0x784303(0x1cb)]+_0x3f3453+_0x39610c[_0x784303(0x1a3)]+_0x29aa2f['r']+_0x3f3453+_0x39610c[_0x784303(0x198)]+_0x29aa2f['t'],'nRs':_0x39610c['tipuser'],'count':_0x39610c[_0x784303(0x198)],'unit':_0x39610c[_0x784303(0x1cb)],'type':_0x39610c[_0x784303(0x1a7)]}),_0x39610c[_0x784303(0x1a7)]==_0x784303(0x1a8)&&_0x16f76b[_0x784303(0x1a1)][_0x784303(0x1b8)]({'title':_0x29aa2f[_0x39610c[_0x784303(0x1a7)]],'info':_0x44b409+_0x39610c[_0x784303(0x1a6)],'unit':_0x39610c['totaltax'],'type':_0x39610c['strLx']});}_0x16f76b[_0x784303(0x1a1)][_0x784303(0x1bd)]&&_0x4ca53c[_0x784303(0x1b8)](_0x16f76b);const _0x59f996=_0x4ae98e[_0x784303(0x1c1)](_0x27c94f=>_0x27c94f[_0x784303(0x1a7)]==_0x784303(0x1b6));return _0x59f996[_0x784303(0x1bd)]&&_0x4ca53c[_0x784303(0x1b8)]({'title':_0x36690f[_0x784303(0x1b6)],'type':_0x784303(0x1b6),'list':[{'title':_0x36690f[_0x784303(0x1b6)],'info':_0x44b409+_0x59f996[0x0]['price']}]}),_0x4ca53c;}export default{'handleCosting':handleCosting};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x50955e,_0x5eb6ee){var _0x3e6b54=a1_0x1c47,_0x1b2dd0=_0x50955e();while(!![]){try{var _0x8ed9e1=-parseInt(_0x3e6b54(0x7d))/0x1*(parseInt(_0x3e6b54(0x7b))/0x2)+parseInt(_0x3e6b54(0x7a))/0x3+-parseInt(_0x3e6b54(0x75))/0x4+parseInt(_0x3e6b54(0x77))/0x5+parseInt(_0x3e6b54(0x76))/0x6+parseInt(_0x3e6b54(0x79))/0x7*(-parseInt(_0x3e6b54(0x7e))/0x8)+-parseInt(_0x3e6b54(0x7c))/0x9*(-parseInt(_0x3e6b54(0x78))/0xa);if(_0x8ed9e1===_0x5eb6ee)break;else _0x1b2dd0['push'](_0x1b2dd0['shift']());}catch(_0x2d9a97){_0x1b2dd0['push'](_0x1b2dd0['shift']());}}}(a1_0x1f5e,0xe9bc2));import a1_0x3b4140 from'./utils';function a1_0x1c47(_0x45c0c0,_0x155cc9){var _0x1f5edf=a1_0x1f5e();return a1_0x1c47=function(_0x1c47a9,_0x40e9c4){_0x1c47a9=_0x1c47a9-0x75;var _0x189275=_0x1f5edf[_0x1c47a9];return _0x189275;},a1_0x1c47(_0x45c0c0,_0x155cc9);}import a1_0x9f1f91 from'./func';import a1_0x1c9d1a from'./test';function a1_0x1f5e(){var _0x55f310=['710VHfrxj','3010DzWHmd','2059563cIQcyL','604612eNmjHR','140013iEAIpX','2PxtsnN','31600hBZAdR','3512904sZfbDA','6391158PBOZCC','6412275XUqGNq'];a1_0x1f5e=function(){return _0x55f310;};return a1_0x1f5e();}export default{'test':a1_0x1c9d1a,'utils':a1_0x3b4140,'func':a1_0x9f1f91};
|
package/dist/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x251313,_0xbadc13){const _0x3553e0=a2_0x419c,_0x3bc9ba=_0x251313();while(!![]){try{const _0x1e127d=-parseInt(_0x3553e0(0x91))/0x1*(-parseInt(_0x3553e0(0xa7))/0x2)+-parseInt(_0x3553e0(0x90))/0x3+-parseInt(_0x3553e0(0xa4))/0x4+-parseInt(_0x3553e0(0xa8))/0x5*(parseInt(_0x3553e0(0x93))/0x6)+-parseInt(_0x3553e0(0x8f))/0x7*(-parseInt(_0x3553e0(0xa1))/0x8)+-parseInt(_0x3553e0(0xaa))/0x9+parseInt(_0x3553e0(0x9c))/0xa;if(_0x1e127d===_0xbadc13)break;else _0x3bc9ba['push'](_0x3bc9ba['shift']());}catch(_0xff2e4b){_0x3bc9ba['push'](_0x3bc9ba['shift']());}}}(a2_0x5902,0xabc68));function email(_0x1e51fc){const _0x5796e4=a2_0x419c;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x5796e4(0x97)](_0x1e51fc);}function mobile(_0x33cbcf){return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/['test'](_0x33cbcf);}function isValidPhoneNumber(_0x2de068){const _0x401363=a2_0x419c;if(_0x2de068[_0x401363(0x8a)]('-')){const [_0x97e6e0,_0x3176ae]=_0x2de068[_0x401363(0x96)]('-');if(_0x97e6e0==='86')return/^\d{11}$/['test'](_0x3176ae)&&_0x3176ae['startsWith']('1');else return _0x97e6e0===_0x401363(0x99)?/^\d{8}$/[_0x401363(0x97)](_0x3176ae)&&['5','6','9','8'][_0x401363(0x8a)](_0x3176ae[_0x401363(0x9d)](0x0)):/^\d+$/[_0x401363(0x97)](_0x3176ae);}else return/^\d+$/[_0x401363(0x97)](_0x2de068);}function url(_0x1270af){const _0x163b94=a2_0x419c;return/^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x163b94(0x97)](_0x1270af);}function date(_0x407e5c){const _0x398c16=a2_0x419c;if(!_0x407e5c)return![];if(number(_0x407e5c))_0x407e5c=+_0x407e5c;return!/Invalid|NaN/['test'](new Date(_0x407e5c)[_0x398c16(0x95)]());}function dateISO(_0x2294c6){const _0x2b7efb=a2_0x419c;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x2b7efb(0x97)](_0x2294c6);}function isNumber(_0x53dd17){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/['test'](_0x53dd17);}function isString(_0x59e5ec){return typeof _0x59e5ec==='string';}function digits(_0x40e111){const _0x3c866f=a2_0x419c;return/^\d+$/[_0x3c866f(0x97)](_0x40e111);}function idCard(_0x3553d8){const _0x45ccfe=a2_0x419c;return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/[_0x45ccfe(0x97)](_0x3553d8);}function carNo(_0x25722d){const _0x58d45a=a2_0x419c,_0x16d5f6=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x323cef=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x25722d[_0x58d45a(0xab)]===0x7)return _0x323cef['test'](_0x25722d);if(_0x25722d[_0x58d45a(0xab)]===0x8)return _0x16d5f6[_0x58d45a(0x97)](_0x25722d);return![];}function amount(_0x231e30){const _0x5e7ca7=a2_0x419c;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x5e7ca7(0x97)](_0x231e30);}function chinese(_0x26f3db){const _0x14dcfe=a2_0x419c,_0x386fe9=/^[\u4e00-\u9fa5]+$/gi;return _0x386fe9[_0x14dcfe(0x97)](_0x26f3db);}function letter(_0x139e8e){const _0x266d36=a2_0x419c;return/^[a-zA-Z]*$/[_0x266d36(0x97)](_0x139e8e);}function enOrNum(_0x33c8d4){const _0x5845c7=a2_0x419c,_0x4c20c8=/^[0-9a-zA-Z]*$/g;return _0x4c20c8[_0x5845c7(0x97)](_0x33c8d4);}function contains(_0xb898ed,_0x19a504){const _0x15aaa5=a2_0x419c;return _0xb898ed[_0x15aaa5(0x92)](_0x19a504)>=0x0;}function range(_0x9e9087,_0xd5cfef){return _0x9e9087>=_0xd5cfef[0x0]&&_0x9e9087<=_0xd5cfef[0x1];}function rangeLength(_0x468f51,_0x218dbd){const _0x33f97d=a2_0x419c;return _0x468f51[_0x33f97d(0xab)]>=_0x218dbd[0x0]&&_0x468f51['length']<=_0x218dbd[0x1];}function landline(_0x1796f0){const _0x537aac=a2_0x419c,_0x6814f8=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x6814f8[_0x537aac(0x97)](_0x1796f0);}function empty(_0x3d763f){const _0x3650d5=a2_0x419c;switch(typeof _0x3d763f){case _0x3650d5(0xac):return!![];case _0x3650d5(0x8d):if(_0x3d763f[_0x3650d5(0xa3)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x3650d5(0xab)]==0x0)return!![];break;case _0x3650d5(0x9f):if(!_0x3d763f)return!![];break;case _0x3650d5(0x98):if(_0x3d763f===0x0||isNaN(_0x3d763f))return!![];break;case _0x3650d5(0x9b):if(_0x3d763f===null||_0x3d763f[_0x3650d5(0xab)]===0x0)return!![];for(const _0x594956 in _0x3d763f){return![];}return!![];}return![];}function jsonString(_0x51f3ba){const _0x5d4491=a2_0x419c;if(typeof _0x51f3ba===_0x5d4491(0x8d))try{const _0x2147f8=JSON[_0x5d4491(0xa6)](_0x51f3ba);if(typeof _0x2147f8==='object'&&_0x2147f8)return!![];return![];}catch(_0x1bd350){return![];}return![];}function a2_0x419c(_0x35c4cd,_0x1582f3){const _0x5902fb=a2_0x5902();return a2_0x419c=function(_0x419c90,_0x2dc6db){_0x419c90=_0x419c90-0x8a;let _0x1a35c4=_0x5902fb[_0x419c90];return _0x1a35c4;},a2_0x419c(_0x35c4cd,_0x1582f3);}function array(_0x290bf7){const _0x2e843a=a2_0x419c;if(typeof Array[_0x2e843a(0x9e)]===_0x2e843a(0x94))return Array[_0x2e843a(0x9e)](_0x290bf7);return Object[_0x2e843a(0x8e)][_0x2e843a(0x95)][_0x2e843a(0xa0)](_0x290bf7)===_0x2e843a(0xa9);}function object(_0xcaa84e){const _0x2a53af=a2_0x419c;return Object[_0x2a53af(0x8e)]['toString'][_0x2a53af(0xa0)](_0xcaa84e)===_0x2a53af(0xa5);}function code(_0x42983a,_0x3b0a90=0x6){const _0x4cc312=a2_0x419c;return new RegExp(_0x4cc312(0xa2)+_0x3b0a90+'}$')[_0x4cc312(0x97)](_0x42983a);}function func(_0x2f45f4){const _0xcb0b01=a2_0x419c;return typeof _0x2f45f4===_0xcb0b01(0x94);}function promise(_0x38a45a){const _0x327ab8=a2_0x419c;return object(_0x38a45a)&&func(_0x38a45a[_0x327ab8(0x9a)])&&func(_0x38a45a['catch']);}function image(_0x26994c){const _0x464fb4=a2_0x419c,_0x30a84a=_0x26994c[_0x464fb4(0x96)]('?')[0x0],_0x26c35d=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x26c35d[_0x464fb4(0x97)](_0x30a84a);}function video(_0x102889){const _0x3c4efe=a2_0x419c,_0x167f0e=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x167f0e[_0x3c4efe(0x97)](_0x102889);}function regExp(_0x45261b){const _0x4cd2ef=a2_0x419c;return _0x45261b&&Object[_0x4cd2ef(0x8e)][_0x4cd2ef(0x95)]['call'](_0x45261b)===_0x4cd2ef(0x8c);}function isNumeric(_0x416fcc,_0xb88091=0x0){const _0x364921=a2_0x419c;if(typeof _0x416fcc==='number')_0x416fcc=_0x416fcc[_0x364921(0x95)]();if(typeof _0x416fcc!==_0x364921(0x8d))return![];switch(_0xb88091){case 0x1:return/^\d+(\.\d+)?$/[_0x364921(0x97)](_0x416fcc);case 0x2:return/^-\d+(\.\d+)?$/['test'](_0x416fcc);case 0x3:return/^-?\d+$/[_0x364921(0x97)](_0x416fcc);case 0x4:return/^\d+$/['test'](_0x416fcc);case 0x5:return/^-\d+$/[_0x364921(0x97)](_0x416fcc);default:return/^-?\d*\.?\d*$/[_0x364921(0x97)](_0x416fcc)&&!_0x416fcc[_0x364921(0x8b)]('.')&&!_0x416fcc[_0x364921(0x8a)]('--');}}function a2_0x5902(){const _0x3de38d=['object','26735150WYeeYp','charAt','isArray','boolean','call','72iBtBDY','^\x5cd{','replace','3923624Fqgyiq','[object\x20Object]','parse','998xsSAhi','2165mIopBd','[object\x20Array]','7861833mJGhVi','length','undefined','includes','startsWith','[object\x20RegExp]','string','prototype','284641KvIOWL','1982073KvkaGF','787wTOUHD','indexOf','2958qSAAIr','function','toString','split','test','number','852','then'];a2_0x5902=function(){return _0x3de38d;};return a2_0x5902();}export default{'isNumeric':isNumeric,'email':email,'mobile':mobile,'url':url,'date':date,'dateISO':dateISO,'isNumber':isNumber,'digits':digits,'idCard':idCard,'carNo':carNo,'amount':amount,'chinese':chinese,'letter':letter,'enOrNum':enOrNum,'contains':contains,'range':range,'rangeLength':rangeLength,'empty':empty,'jsonString':jsonString,'landline':landline,'object':object,'array':array,'code':code,'func':func,'promise':promise,'video':video,'image':image,'regExp':regExp,'isString':isString,'isValidPhoneNumber':isValidPhoneNumber};
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x2c4ed4=a3_0x3e84;(function(_0x46f1e6,_0x4b2df8){const _0x419cde=a3_0x3e84,_0x12f1ec=_0x46f1e6();while(!![]){try{const _0x35b680=-parseInt(_0x419cde(0xf8))/0x1+parseInt(_0x419cde(0xe5))/0x2+parseInt(_0x419cde(0x103))/0x3*(-parseInt(_0x419cde(0xfa))/0x4)+-parseInt(_0x419cde(0xe3))/0x5+-parseInt(_0x419cde(0xea))/0x6+-parseInt(_0x419cde(0xda))/0x7*(parseInt(_0x419cde(0xd6))/0x8)+-parseInt(_0x419cde(0xf7))/0x9*(-parseInt(_0x419cde(0xfd))/0xa);if(_0x35b680===_0x4b2df8)break;else _0x12f1ec['push'](_0x12f1ec['shift']());}catch(_0x5c2de){_0x12f1ec['push'](_0x12f1ec['shift']());}}}(a3_0x2109,0x5f0ed));function fmtNum(_0x240475){const _0x3eaf65=a3_0x3e84;if(_0x240475==0x0)return'0';if(!_0x240475)return'';let _0x4d666e=typeof _0x240475===_0x3eaf65(0xfb)?parseFloat(_0x240475):_0x240475;if(isNaN(_0x4d666e))return'';return _0x4d666e['toLocaleString']('en-US',{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x324091,_0x55a641=![]){const _0x1133e1=a3_0x3e84;let _0x475e09={'surname':'','givenName':''};if(_0x55a641){const _0x1c2b43=_0x324091[_0x1133e1(0xdb)](',')?_0x324091[_0x1133e1(0x104)](','):_0x324091[_0x1133e1(0x104)](/\s+/);_0x1c2b43[_0x1133e1(0xf2)]>=0x2&&(_0x475e09[_0x1133e1(0xde)]=_0x1c2b43[0x0]['trim'](),_0x475e09[_0x1133e1(0xee)]=_0x1c2b43[0x1][_0x1133e1(0xef)]());}else{const _0x53b2a8=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x3095bb=0x0;_0x3095bb<_0x53b2a8[_0x1133e1(0xf2)];_0x3095bb++){const _0x1ac9f6=_0x53b2a8[_0x3095bb];if(_0x324091[_0x1133e1(0xf1)](_0x1ac9f6))return _0x475e09[_0x1133e1(0xde)]=_0x1ac9f6,_0x475e09[_0x1133e1(0xee)]=_0x324091['substring'](_0x1ac9f6[_0x1133e1(0xf2)])[_0x1133e1(0xef)](),_0x475e09;}const _0x26cc77=_0x324091[_0x1133e1(0x104)]('\x20');if(_0x26cc77[_0x1133e1(0xf2)]===0x1){const _0x5aa328=_0x324091[_0x1133e1(0xf0)](/[\u4e00-\u9fa5]/);_0x475e09[_0x1133e1(0xde)]=_0x5aa328?_0x5aa328[0x0]:'',_0x475e09[_0x1133e1(0xee)]=_0x324091[_0x1133e1(0xdc)](_0x475e09['surname'],'')['trim']();}else _0x475e09[_0x1133e1(0xde)]=_0x26cc77[0x0],_0x475e09[_0x1133e1(0xee)]=_0x26cc77['slice'](0x1)[_0x1133e1(0xff)]('\x20');}return _0x475e09;}function modifyKeys(_0xd11f2f,_0x20b3e8={'strCode':a3_0x2c4ed4(0xdd),'strFjbh':'fjbh','strGuid':'value','strValue':a3_0x2c4ed4(0xf4)}){const _0x2cf035=a3_0x2c4ed4;if(!_0xd11f2f[_0x2cf035(0xf2)]||_0xd11f2f===null)return[];const _0x447e87=_0xd11f2f[_0x2cf035(0xfe)](_0x1b172d=>{const _0x2d807e=_0x2cf035,_0x2600bb={};for(const _0x254bce in _0x1b172d){_0x20b3e8[_0x2d807e(0xe1)](_0x254bce)?_0x2600bb[_0x20b3e8[_0x254bce]]=_0x1b172d[_0x254bce]:_0x2600bb[_0x254bce]=_0x1b172d[_0x254bce];}return _0x2600bb;});return _0x447e87;}function sliceArray(_0xa7cab1,_0xf43547,_0x5744ac){const _0x3462be=a3_0x2c4ed4;if(_0xf43547<=0x0)return console[_0x3462be(0xf6)](_0x3462be(0xeb)),[];return _0x5744ac?_0xa7cab1[_0x3462be(0xe2)](0x0,_0xf43547):_0xa7cab1[_0x3462be(0xe2)](-_0xf43547);}function findDataByData(_0x44061c,_0x11308b,_0x11e923){const _0x47c223=a3_0x2c4ed4,_0x60d52e=_0x44061c[_0x47c223(0x105)](_0x515007=>_0x515007[_0x11e923]===_0x11308b);return _0x60d52e||null;}function splitArray(_0x58301f,_0x38bb9b){const _0x88bba2=a3_0x2c4ed4,_0x4dd7f8=[];for(let _0x549337=0x0;_0x549337<_0x58301f['length'];_0x549337+=_0x38bb9b){_0x4dd7f8['push'](_0x58301f[_0x88bba2(0xe2)](_0x549337,_0x549337+_0x38bb9b));}return _0x4dd7f8;}function getProxyType(_0x3ec29d){const _0x4b00a7=a3_0x2c4ed4;return Object[_0x4b00a7(0xf5)]['toString'][_0x4b00a7(0x106)](_0x3ec29d)[_0x4b00a7(0xe2)](0x8,-0x1);}let timeout=null;function debounce(_0x29fef6,_0xa72e62=0x1f4,_0x23e334=![]){const _0x9b2ffa=a3_0x2c4ed4;if(timeout!==null)clearTimeout(timeout);if(_0x23e334){const _0xd066ca=!timeout;timeout=setTimeout(()=>{timeout=null;},_0xa72e62);if(_0xd066ca)typeof _0x29fef6===_0x9b2ffa(0xd7)&&_0x29fef6();}else timeout=setTimeout(()=>{const _0x4802d4=_0x9b2ffa;typeof _0x29fef6===_0x4802d4(0xd7)&&_0x29fef6();},_0xa72e62);}function matchKeyValueInArray(_0x12352c,_0x1d1388,_0x481f26){const _0x20be79=a3_0x2c4ed4;for(let _0xf9dd9f=0x0;_0xf9dd9f<_0x12352c[_0x20be79(0xf2)];_0xf9dd9f++){if(_0x12352c[_0xf9dd9f][_0x1d1388]===_0x481f26)return!![];}return![];}function urlEncode(_0x239472={}){const _0x3acfd3=a3_0x2c4ed4,_0x5a1268=[];for(const _0x27681c in _0x239472){const _0x178012=_0x239472[_0x27681c];if(!_0x178012)continue;isArray(_0x178012)?_0x178012[_0x3acfd3(0xe6)](_0x7dfeb7=>{const _0x5077ef=_0x3acfd3;_0x5a1268[_0x5077ef(0xe9)](_0x27681c+'='+_0x7dfeb7);}):_0x5a1268[_0x3acfd3(0xe9)](_0x27681c+'='+_0x178012);}return _0x5a1268[_0x3acfd3(0xff)]('&');}function compareDates(_0x2b0277,_0x24de26){const _0x3380ad=a3_0x2c4ed4;_0x2b0277=new Date(_0x2b0277);!_0x24de26?_0x24de26=new Date():_0x24de26=new Date(_0x24de26);_0x2b0277['setHours'](0x0,0x0,0x0,0x0),_0x24de26['setHours'](0x0,0x0,0x0,0x0);var _0x2d40a4=_0x2b0277['getTime'](),_0x1139e9=_0x24de26[_0x3380ad(0xd8)]();if(_0x2d40a4<_0x1139e9)return-0x1;else return _0x2d40a4>_0x1139e9?0x1:0x0;}function getDaysBetween(_0x377de2,_0x540f0a){const _0x2bcb52=a3_0x2c4ed4,_0x400be4=new Date(_0x377de2),_0x18d620=new Date(_0x540f0a),_0x4f6046=Math[_0x2bcb52(0xdf)](_0x400be4[_0x2bcb52(0xd8)]()-_0x18d620[_0x2bcb52(0xd8)]()),_0x316088=Math[_0x2bcb52(0xd5)](_0x4f6046/(0x3e8*0x3c*0x3c*0x18));return _0x316088+0x1;}function chineseNumeral(_0x889546){const _0xfaea00=a3_0x2c4ed4,_0xb2612e=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x48712c=['','拾','佰','仟'],_0x2a2e6a=['','万','亿','兆'];let _0x5c518b=Math['floor'](_0x889546),_0x1f10b7=Math['round']((_0x889546-_0x5c518b)*0x64),_0x43d1d8='';for(let _0xe14aec=0x0;_0x5c518b>0x0;_0xe14aec++){let _0xca6bc0='',_0x3cbd8d=_0x5c518b%0x2710;_0x5c518b=Math[_0xfaea00(0xd5)](_0x5c518b/0x2710);for(let _0xb2cce6=0x0;_0x3cbd8d>0x0;_0xb2cce6++){let _0x2d7e2a=_0x3cbd8d%0xa;_0xca6bc0=(_0x2d7e2a?_0xb2612e[_0x2d7e2a]+_0x48712c[_0xb2cce6]:'')+_0xca6bc0,_0x3cbd8d=Math[_0xfaea00(0xd5)](_0x3cbd8d/0xa);}_0x43d1d8=_0xca6bc0+(_0xca6bc0?_0x2a2e6a[_0xe14aec]:_0x2a2e6a[_0xe14aec]&&!_0x43d1d8[_0xfaea00(0xdb)]('零')?'零':'')+_0x43d1d8;}_0x43d1d8+=_0x43d1d8?'元':'零元';if(_0x1f10b7>0x0){let _0x15271a=Math[_0xfaea00(0xd5)](_0x1f10b7/0xa),_0x93194f=_0x1f10b7%0xa;_0x43d1d8+=(_0x15271a?_0xb2612e[_0x15271a]+'角':'')+(_0x93194f?_0xb2612e[_0x93194f]+'分':'');}else _0x43d1d8+='整';return _0x43d1d8[_0xfaea00(0xdc)](/零{2,}/g,'零')[_0xfaea00(0xdc)](/零元/,'元');}function getMonthDate(_0x3c7566){const _0x391001=a3_0x2c4ed4;(!_0x3c7566||_0x3c7566[_0x391001(0xef)]()==='')&&(_0x3c7566=new Date()[_0x391001(0xed)]()+'-'+(new Date()[_0x391001(0xf9)]()+0x1));let _0x5e5474=[],[_0x37f5f6,_0x461445]=_0x3c7566['split']('-')[_0x391001(0xfe)](Number),_0x5bd6d3=new Date(_0x37f5f6,_0x461445,0x0),_0x19eb65=_0x5bd6d3['getDate']();for(let _0x4516de=0x1;_0x4516de<=_0x19eb65;_0x4516de++){let _0x4a4b2b=_0x4516de<0xa?'0'+_0x4516de:''+_0x4516de,_0x492184=_0x461445<0xa?'0'+_0x461445:''+_0x461445;_0x5e5474[_0x391001(0xe9)]({'date':_0x37f5f6+'-'+_0x492184+'-'+_0x4a4b2b,'disable':!![]});}return _0x5e5474;}function getToday(_0x543083){const _0x4eb1f7=a3_0x2c4ed4;var _0x1d9b1a=new Date(),_0x517a38=String(_0x1d9b1a[_0x4eb1f7(0xec)]())[_0x4eb1f7(0xd9)](0x2,'0'),_0x431e66=String(_0x1d9b1a['getMonth']()+0x1)['padStart'](0x2,'0'),_0x21471d=_0x1d9b1a[_0x4eb1f7(0xed)]();return _0x1d9b1a=_0x21471d+'-'+_0x431e66+'-'+_0x517a38,_0x1d9b1a;}function resetObject(_0x2a755f){const _0x367ad5=a3_0x2c4ed4;let _0xb45e08=JSON[_0x367ad5(0xe8)](JSON[_0x367ad5(0xe0)](_0x2a755f));for(const _0x5421b8 in _0xb45e08){if(typeof _0xb45e08[_0x5421b8]===_0x367ad5(0xe4))_0xb45e08[_0x5421b8]=0x0;else{if(typeof _0xb45e08[_0x5421b8]==='boolean')_0xb45e08[_0x5421b8]=![];else{if(Array[_0x367ad5(0x101)](_0xb45e08[_0x5421b8]))_0xb45e08[_0x5421b8]=[];else typeof _0xb45e08[_0x5421b8]===_0x367ad5(0x102)&&_0xb45e08[_0x5421b8]!==null?resetObject(_0xb45e08[_0x5421b8]):_0xb45e08[_0x5421b8]='';}}}return _0xb45e08;}function a3_0x2109(){const _0x113956=['forEach','round','parse','push','2326986eQtvNk','Quantity\x20should\x20be\x20greater\x20than\x200.','getDate','getFullYear','givenName','trim','match','startsWith','length','除数不能为0','label','prototype','error','13347Lzvpxn','705628Awxwfz','getMonth','4UaryNs','string','toString','16440UrXUVf','map','join','setDate','isArray','object','992811dZaUVv','split','find','call','floor','2512632RwzQhC','function','getTime','padStart','14DmTaEk','includes','replace','code','surname','abs','stringify','hasOwnProperty','slice','3232615TJFwmd','number','1300764HIpWKF'];a3_0x2109=function(){return _0x113956;};return a3_0x2109();}function preciseOperation(_0x474907,_0x1402b9,_0x50fe77,_0x5020ac=0xf4240){const _0x2f4f44=a3_0x2c4ed4;if(isNaN(_0x474907)||isNaN(_0x1402b9))return NaN;if(!isFinite(_0x474907)||!isFinite(_0x1402b9))return NaN;let _0x31fed7=BigInt(Math[_0x2f4f44(0xe7)](_0x474907*_0x5020ac)),_0x392b0a=BigInt(Math[_0x2f4f44(0xe7)](_0x1402b9*_0x5020ac)),_0xd20b0b;switch(_0x50fe77){case 0x1:_0xd20b0b=_0x31fed7+_0x392b0a;break;case 0x2:_0xd20b0b=_0x31fed7-_0x392b0a;break;case 0x3:_0xd20b0b=_0x31fed7*_0x392b0a;break;case 0x4:if(_0x392b0a===0x0n)throw new Error(_0x2f4f44(0xf3));_0xd20b0b=_0x31fed7/_0x392b0a;break;default:throw new Error('无效的操作符,操作符应为1、2、3或4');}return Number(_0xd20b0b)/_0x5020ac;}function preciseSum(_0x5bdf90){const _0x4d17a3=a3_0x2c4ed4;let _0xf7e807=0x0;for(const _0x214ea9 of _0x5bdf90){let _0x2e172d=0x0;if(typeof _0x214ea9==='string'){const _0x3e89d4=parseFloat(_0x214ea9);!isNaN(_0x3e89d4)&&(_0x2e172d=_0x3e89d4);}else typeof _0x214ea9===_0x4d17a3(0xe4)&&(_0x2e172d=_0x214ea9);_0xf7e807=preciseOperation(_0xf7e807,_0x2e172d,0x1);}return _0xf7e807;}function getRelativeDate(_0x249249,_0x21448e=0x0){const _0x3ac052=a3_0x2c4ed4,_0x38046f=new Date(_0x249249);_0x38046f[_0x3ac052(0x100)](_0x38046f['getDate']()+_0x21448e);const _0x3386a1=_0x38046f[_0x3ac052(0xed)](),_0x16f931=(_0x38046f[_0x3ac052(0xf9)]()+0x1)[_0x3ac052(0xfc)]()[_0x3ac052(0xd9)](0x2,'0'),_0x13a9f5=_0x38046f[_0x3ac052(0xec)]()['toString']()[_0x3ac052(0xd9)](0x2,'0');return _0x3386a1+'-'+_0x16f931+'-'+_0x13a9f5;}function validateFields(_0x1178ec,_0xd9cb59,_0x1f6bd8=''){for(let _0x276ecb of _0xd9cb59){if(_0x1178ec[_0x276ecb]===_0x1f6bd8)return!![];}return![];}function a3_0x3e84(_0x45f5d3,_0x50258d){const _0x210905=a3_0x2109();return a3_0x3e84=function(_0x3e846c,_0x1f06d8){_0x3e846c=_0x3e846c-0xd5;let _0x1747ec=_0x210905[_0x3e846c];return _0x1747ec;},a3_0x3e84(_0x45f5d3,_0x50258d);}function mergeObjects(_0x27cfa3,_0x253bd6){const _0x15efd1=a3_0x2c4ed4;for(const _0x513a12 in _0x27cfa3){_0x253bd6[_0x15efd1(0xe1)](_0x513a12)&&(_0x27cfa3[_0x513a12]=_0x253bd6[_0x513a12]);}return _0x27cfa3;}export default{'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'matchKeyValueInArray':matchKeyValueInArray,'urlEncode':urlEncode,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
|
|
1
|
+
const a3_0x584a50=a3_0x31ad;(function(_0x584d42,_0x32b1b9){const _0x40d424=a3_0x31ad,_0x57b283=_0x584d42();while(!![]){try{const _0x26ba01=-parseInt(_0x40d424(0x159))/0x1+-parseInt(_0x40d424(0x137))/0x2*(parseInt(_0x40d424(0x154))/0x3)+parseInt(_0x40d424(0x155))/0x4+parseInt(_0x40d424(0x15b))/0x5*(-parseInt(_0x40d424(0x130))/0x6)+-parseInt(_0x40d424(0x156))/0x7*(-parseInt(_0x40d424(0x161))/0x8)+parseInt(_0x40d424(0x153))/0x9*(-parseInt(_0x40d424(0x138))/0xa)+parseInt(_0x40d424(0x14b))/0xb;if(_0x26ba01===_0x32b1b9)break;else _0x57b283['push'](_0x57b283['shift']());}catch(_0x5f4f4a){_0x57b283['push'](_0x57b283['shift']());}}}(a3_0x243c,0xc7d20));function fmtNum(_0xefc63c){const _0xd30052=a3_0x31ad;if(_0xefc63c==0x0)return'0';if(!_0xefc63c)return'';let _0xff07a1=typeof _0xefc63c===_0xd30052(0x160)?parseFloat(_0xefc63c):_0xefc63c;if(isNaN(_0xff07a1))return'';return _0xff07a1[_0xd30052(0x147)](_0xd30052(0x134),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x23ac9a,_0x4c0305=![]){const _0x118076=a3_0x31ad;let _0x1f7707={'surname':'','givenName':''};if(_0x4c0305){const _0x1b0144=_0x23ac9a['includes'](',')?_0x23ac9a[_0x118076(0x135)](','):_0x23ac9a[_0x118076(0x135)](/\s+/);_0x1b0144['length']>=0x2&&(_0x1f7707[_0x118076(0x13d)]=_0x1b0144[0x0][_0x118076(0x15a)](),_0x1f7707[_0x118076(0x14d)]=_0x1b0144[0x1][_0x118076(0x15a)]());}else{const _0x280baa=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x1a5f92=0x0;_0x1a5f92<_0x280baa[_0x118076(0x144)];_0x1a5f92++){const _0x2ce5c6=_0x280baa[_0x1a5f92];if(_0x23ac9a[_0x118076(0x13f)](_0x2ce5c6))return _0x1f7707[_0x118076(0x13d)]=_0x2ce5c6,_0x1f7707[_0x118076(0x14d)]=_0x23ac9a['substring'](_0x2ce5c6[_0x118076(0x144)])[_0x118076(0x15a)](),_0x1f7707;}const _0x302f2b=_0x23ac9a[_0x118076(0x135)]('\x20');if(_0x302f2b[_0x118076(0x144)]===0x1){const _0x3bf53f=_0x23ac9a[_0x118076(0x14c)](/[\u4e00-\u9fa5]/);_0x1f7707[_0x118076(0x13d)]=_0x3bf53f?_0x3bf53f[0x0]:'',_0x1f7707['givenName']=_0x23ac9a[_0x118076(0x13a)](_0x1f7707[_0x118076(0x13d)],'')[_0x118076(0x15a)]();}else _0x1f7707[_0x118076(0x13d)]=_0x302f2b[0x0],_0x1f7707['givenName']=_0x302f2b['slice'](0x1)['join']('\x20');}return _0x1f7707;}function modifyKeys(_0x2c2996,_0x4fd224={'strCode':a3_0x584a50(0x142),'strFjbh':a3_0x584a50(0x13c),'strGuid':a3_0x584a50(0x13b),'strValue':'label'}){const _0x2a3d49=a3_0x584a50;if(!_0x2c2996[_0x2a3d49(0x144)]||_0x2c2996===null)return[];const _0x380283=_0x2c2996['map'](_0x41663c=>{const _0x484807=_0x2a3d49,_0x34c00a={};for(const _0x2cb9e8 in _0x41663c){_0x4fd224[_0x484807(0x132)](_0x2cb9e8)?_0x34c00a[_0x4fd224[_0x2cb9e8]]=_0x41663c[_0x2cb9e8]:_0x34c00a[_0x2cb9e8]=_0x41663c[_0x2cb9e8];}return _0x34c00a;});return _0x380283;}function sliceArray(_0xbf5733,_0x3972fb,_0x3744f7){const _0x1e31d4=a3_0x584a50;if(_0x3972fb<=0x0)return console[_0x1e31d4(0x149)](_0x1e31d4(0x15d)),[];return _0x3744f7?_0xbf5733['slice'](0x0,_0x3972fb):_0xbf5733[_0x1e31d4(0x15f)](-_0x3972fb);}function a3_0x31ad(_0x2d4403,_0x1ab293){const _0x243c56=a3_0x243c();return a3_0x31ad=function(_0x31ad3b,_0x384246){_0x31ad3b=_0x31ad3b-0x130;let _0x13a8c7=_0x243c56[_0x31ad3b];return _0x13a8c7;},a3_0x31ad(_0x2d4403,_0x1ab293);}function findDataByData(_0x4d7a3b,_0x389ef2,_0x45652f){const _0x3ed28a=_0x4d7a3b['find'](_0x48c33e=>_0x48c33e[_0x45652f]===_0x389ef2);return _0x3ed28a||null;}function splitArray(_0x4be38a,_0x4d9a0b){const _0x469c92=a3_0x584a50,_0xd7c021=[];for(let _0x109fc1=0x0;_0x109fc1<_0x4be38a[_0x469c92(0x144)];_0x109fc1+=_0x4d9a0b){_0xd7c021['push'](_0x4be38a['slice'](_0x109fc1,_0x109fc1+_0x4d9a0b));}return _0xd7c021;}function getProxyType(_0x3afe89){const _0x41ece2=a3_0x584a50;return Object['prototype'][_0x41ece2(0x140)]['call'](_0x3afe89)[_0x41ece2(0x15f)](0x8,-0x1);}let timeout=null;function debounce(_0x2423f9,_0x983378=0x1f4,_0x419f98=![]){const _0x4fef8a=a3_0x584a50;if(timeout!==null)clearTimeout(timeout);if(_0x419f98){const _0x2e42f6=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x983378);if(_0x2e42f6)typeof _0x2423f9===_0x4fef8a(0x15e)&&_0x2423f9();}else timeout=setTimeout(()=>{const _0x3a578d=_0x4fef8a;typeof _0x2423f9===_0x3a578d(0x15e)&&_0x2423f9();},_0x983378);}function a3_0x243c(){const _0x4ac74c=['9NBSyvB','2155044VdmKKh','21mZeLXo','setDate','无效的操作符,操作符应为1、2、3或4','706636yCglji','trim','91975SgJrtl','push','Quantity\x20should\x20be\x20greater\x20than\x200.','function','slice','string','2774480aQdkwr','318PYZjmD','padStart','hasOwnProperty','getFullYear','en-US','split','includes','877274NyqoSn','3590ZCpfHU','map','replace','value','fjbh','surname','forEach','startsWith','toString','round','code','getDate','length','setHours','getMonth','toLocaleString','floor','error','boolean','41983854eRhmey','match','givenName','getTime','number','stringify','parse','abs','39609xGlvBR'];a3_0x243c=function(){return _0x4ac74c;};return a3_0x243c();}function matchKeyValueInArray(_0x3f4b6e,_0x11f9ac,_0x4adfac){for(let _0x320596=0x0;_0x320596<_0x3f4b6e['length'];_0x320596++){if(_0x3f4b6e[_0x320596][_0x11f9ac]===_0x4adfac)return!![];}return![];}function urlEncode(_0x484895={}){const _0xa8fd32=a3_0x584a50,_0x835873=[];for(const _0x9b3a6a in _0x484895){const _0xea0f2f=_0x484895[_0x9b3a6a];if(!_0xea0f2f)continue;isArray(_0xea0f2f)?_0xea0f2f[_0xa8fd32(0x13e)](_0x3da007=>{const _0x2c23bc=_0xa8fd32;_0x835873[_0x2c23bc(0x15c)](_0x9b3a6a+'='+_0x3da007);}):_0x835873[_0xa8fd32(0x15c)](_0x9b3a6a+'='+_0xea0f2f);}return _0x835873['join']('&');}function compareDates(_0x1b794f,_0x3a912f){const _0x38b298=a3_0x584a50;_0x1b794f=new Date(_0x1b794f);!_0x3a912f?_0x3a912f=new Date():_0x3a912f=new Date(_0x3a912f);_0x1b794f[_0x38b298(0x145)](0x0,0x0,0x0,0x0),_0x3a912f['setHours'](0x0,0x0,0x0,0x0);var _0x122ee1=_0x1b794f[_0x38b298(0x14e)](),_0x1fe579=_0x3a912f[_0x38b298(0x14e)]();if(_0x122ee1<_0x1fe579)return-0x1;else return _0x122ee1>_0x1fe579?0x1:0x0;}function getDaysBetween(_0x30f860,_0x5ec0b6){const _0x52367b=a3_0x584a50,_0x4227cf=new Date(_0x30f860),_0x315cd8=new Date(_0x5ec0b6),_0x3c662c=Math[_0x52367b(0x152)](_0x4227cf[_0x52367b(0x14e)]()-_0x315cd8[_0x52367b(0x14e)]()),_0x224c5c=Math[_0x52367b(0x148)](_0x3c662c/(0x3e8*0x3c*0x3c*0x18));return _0x224c5c+0x1;}function chineseNumeral(_0x44079e){const _0x1637f1=a3_0x584a50,_0x388ca1=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x5198c2=['','拾','佰','仟'],_0x4b4953=['','万','亿','兆'];let _0x2d0a81=Math[_0x1637f1(0x148)](_0x44079e),_0x5325a6=Math[_0x1637f1(0x141)]((_0x44079e-_0x2d0a81)*0x64),_0x1de271='';for(let _0x4ec769=0x0;_0x2d0a81>0x0;_0x4ec769++){let _0xae5059='',_0x40337f=_0x2d0a81%0x2710;_0x2d0a81=Math[_0x1637f1(0x148)](_0x2d0a81/0x2710);for(let _0x58b5ba=0x0;_0x40337f>0x0;_0x58b5ba++){let _0x1ba991=_0x40337f%0xa;_0xae5059=(_0x1ba991?_0x388ca1[_0x1ba991]+_0x5198c2[_0x58b5ba]:'')+_0xae5059,_0x40337f=Math[_0x1637f1(0x148)](_0x40337f/0xa);}_0x1de271=_0xae5059+(_0xae5059?_0x4b4953[_0x4ec769]:_0x4b4953[_0x4ec769]&&!_0x1de271[_0x1637f1(0x136)]('零')?'零':'')+_0x1de271;}_0x1de271+=_0x1de271?'元':'零元';if(_0x5325a6>0x0){let _0x2b0aad=Math[_0x1637f1(0x148)](_0x5325a6/0xa),_0x5af2a3=_0x5325a6%0xa;_0x1de271+=(_0x2b0aad?_0x388ca1[_0x2b0aad]+'角':'')+(_0x5af2a3?_0x388ca1[_0x5af2a3]+'分':'');}else _0x1de271+='整';return _0x1de271[_0x1637f1(0x13a)](/零{2,}/g,'零')[_0x1637f1(0x13a)](/零元/,'元');}function getMonthDate(_0x4b3b31){const _0x5a31dc=a3_0x584a50;(!_0x4b3b31||_0x4b3b31['trim']()==='')&&(_0x4b3b31=new Date()['getFullYear']()+'-'+(new Date()[_0x5a31dc(0x146)]()+0x1));let _0x5cbb83=[],[_0x10c217,_0xcd80b8]=_0x4b3b31[_0x5a31dc(0x135)]('-')[_0x5a31dc(0x139)](Number),_0x27cf2f=new Date(_0x10c217,_0xcd80b8,0x0),_0x3c3b64=_0x27cf2f[_0x5a31dc(0x143)]();for(let _0x3de246=0x1;_0x3de246<=_0x3c3b64;_0x3de246++){let _0xac65b=_0x3de246<0xa?'0'+_0x3de246:''+_0x3de246,_0x33e603=_0xcd80b8<0xa?'0'+_0xcd80b8:''+_0xcd80b8;_0x5cbb83['push']({'date':_0x10c217+'-'+_0x33e603+'-'+_0xac65b,'disable':!![]});}return _0x5cbb83;}function getToday(_0x572b62){const _0x34f1ec=a3_0x584a50;var _0x458034=new Date(),_0x597662=String(_0x458034['getDate']())[_0x34f1ec(0x131)](0x2,'0'),_0x1bf01f=String(_0x458034['getMonth']()+0x1)[_0x34f1ec(0x131)](0x2,'0'),_0x2d6c61=_0x458034[_0x34f1ec(0x133)]();return _0x458034=_0x2d6c61+'-'+_0x1bf01f+'-'+_0x597662,_0x458034;}function resetObject(_0x23c072){const _0x33e360=a3_0x584a50;let _0x463ff9=JSON[_0x33e360(0x151)](JSON[_0x33e360(0x150)](_0x23c072));for(const _0x535378 in _0x463ff9){if(typeof _0x463ff9[_0x535378]===_0x33e360(0x14f))_0x463ff9[_0x535378]=0x0;else{if(typeof _0x463ff9[_0x535378]===_0x33e360(0x14a))_0x463ff9[_0x535378]=![];else{if(Array['isArray'](_0x463ff9[_0x535378]))_0x463ff9[_0x535378]=[];else typeof _0x463ff9[_0x535378]==='object'&&_0x463ff9[_0x535378]!==null?resetObject(_0x463ff9[_0x535378]):_0x463ff9[_0x535378]='';}}}return _0x463ff9;}function preciseOperation(_0x21ca0d,_0x3fd73c,_0x50ff7b,_0x5608ff=0xf4240){const _0x593e65=a3_0x584a50;if(isNaN(_0x21ca0d)||isNaN(_0x3fd73c))return NaN;if(!isFinite(_0x21ca0d)||!isFinite(_0x3fd73c))return NaN;let _0x1afa86=BigInt(Math[_0x593e65(0x141)](_0x21ca0d*_0x5608ff)),_0x101b7b=BigInt(Math[_0x593e65(0x141)](_0x3fd73c*_0x5608ff)),_0x5d2f13;switch(_0x50ff7b){case 0x1:_0x5d2f13=_0x1afa86+_0x101b7b;break;case 0x2:_0x5d2f13=_0x1afa86-_0x101b7b;break;case 0x3:_0x5d2f13=_0x1afa86*_0x101b7b;break;case 0x4:if(_0x101b7b===0x0n)throw new Error('除数不能为0');_0x5d2f13=_0x1afa86/_0x101b7b;break;default:throw new Error(_0x593e65(0x158));}return Number(_0x5d2f13)/_0x5608ff;}function preciseSum(_0x56f517){const _0x2b8f79=a3_0x584a50;let _0x557609=0x0;for(const _0xc6de78 of _0x56f517){let _0x52311d=0x0;if(typeof _0xc6de78===_0x2b8f79(0x160)){const _0x2f97c8=parseFloat(_0xc6de78);!isNaN(_0x2f97c8)&&(_0x52311d=_0x2f97c8);}else typeof _0xc6de78===_0x2b8f79(0x14f)&&(_0x52311d=_0xc6de78);_0x557609=preciseOperation(_0x557609,_0x52311d,0x1);}return _0x557609;}function getRelativeDate(_0x51b3eb,_0x1f0f99=0x0){const _0x129504=a3_0x584a50,_0x24f38e=new Date(_0x51b3eb);_0x24f38e[_0x129504(0x157)](_0x24f38e[_0x129504(0x143)]()+_0x1f0f99);const _0x20384a=_0x24f38e[_0x129504(0x133)](),_0x5a8ef0=(_0x24f38e['getMonth']()+0x1)[_0x129504(0x140)]()[_0x129504(0x131)](0x2,'0'),_0x1612ef=_0x24f38e[_0x129504(0x143)]()[_0x129504(0x140)]()[_0x129504(0x131)](0x2,'0');return _0x20384a+'-'+_0x5a8ef0+'-'+_0x1612ef;}function validateFields(_0x3ed5a7,_0x2907c6,_0x2e1e6d=''){for(let _0x5bb654 of _0x2907c6){if(_0x3ed5a7[_0x5bb654]===_0x2e1e6d)return!![];}return![];}function mergeObjects(_0x1d4b4a,_0x1d838c){const _0x51b23a=a3_0x584a50;for(const _0x9040cd in _0x1d4b4a){_0x1d838c[_0x51b23a(0x132)](_0x9040cd)&&(_0x1d4b4a[_0x9040cd]=_0x1d838c[_0x9040cd]);}return _0x1d4b4a;}export default{'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'matchKeyValueInArray':matchKeyValueInArray,'urlEncode':urlEncode,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
|
package/package.json
CHANGED