yunlin 1.0.24 → 1.0.25

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/README.md CHANGED
@@ -1 +1 @@
1
- 现在是测试
1
+ 常用函数
package/dist/func.js CHANGED
@@ -1 +1 @@
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};
1
+ function a0_0x42ad(_0x394cd3,_0x1e9b23){const _0x3f46dc=a0_0x3f46();return a0_0x42ad=function(_0x42ad04,_0x48c296){_0x42ad04=_0x42ad04-0x83;let _0x714434=_0x3f46dc[_0x42ad04];return _0x714434;},a0_0x42ad(_0x394cd3,_0x1e9b23);}const a0_0x2b9945=a0_0x42ad;(function(_0x56f208,_0x5cff5c){const _0x394067=a0_0x42ad,_0x323c22=_0x56f208();while(!![]){try{const _0x1eb97a=parseInt(_0x394067(0x9f))/0x1+parseInt(_0x394067(0x96))/0x2+parseInt(_0x394067(0x8e))/0x3*(-parseInt(_0x394067(0x87))/0x4)+-parseInt(_0x394067(0xb5))/0x5*(-parseInt(_0x394067(0xb9))/0x6)+-parseInt(_0x394067(0x92))/0x7+-parseInt(_0x394067(0xad))/0x8*(-parseInt(_0x394067(0xb4))/0x9)+-parseInt(_0x394067(0x8d))/0xa;if(_0x1eb97a===_0x5cff5c)break;else _0x323c22['push'](_0x323c22['shift']());}catch(_0xaba529){_0x323c22['push'](_0x323c22['shift']());}}}(a0_0x3f46,0xaf4a6));function handleCosting(_0x35fd37,_0xe69db1='',_0x20826f='-',_0xa4ca5b={'people':a0_0x2b9945(0xc3),'service':a0_0x2b9945(0x8b),'trip':a0_0x2b9945(0x9c),'other':'其他費用','reduction':a0_0x2b9945(0xbb),'totalprice':'總計','airtax':a0_0x2b9945(0x8f)},_0x23f507={'adult':'成人','child':'兒童','childusebed':a0_0x2b9945(0x9a),'infant':'嬰兒','half':'拼房','tip':'小費','elder':a0_0x2b9945(0x89),'vip':a0_0x2b9945(0x91),'promotion':'促銷','insure':a0_0x2b9945(0xa6),'coupon':a0_0x2b9945(0xa8),'point':'積分','tax':'稅金','viprecharge':a0_0x2b9945(0xac),'r':'人','t':'天'}){const _0x500d28=a0_0x2b9945;let _0x154211=[];const _0x46e12e=_0x500d28(0x9b),_0x561393=_0x35fd37[_0x500d28(0x8c)](_0x2c0640=>_0x2c0640[_0x500d28(0x97)]==_0x500d28(0x94));if(_0x561393[_0x500d28(0xa3)]){let _0x46f1d4={'title':_0xa4ca5b[_0x500d28(0xba)],'type':_0x500d28(0x94),'list':[]};_0x561393[_0x500d28(0x98)](_0x158b79=>{const _0x5c3caf=_0x500d28;_0x46f1d4['list']['push']({'title':_0x23f507[_0x158b79['strJgbm']],'info':_0xe69db1+_0x158b79['fLsjUnit']+_0x46e12e+_0x158b79[_0x5c3caf(0xa2)],'nRs':_0x158b79[_0x5c3caf(0xa2)],'unit':_0x158b79[_0x5c3caf(0xa0)],'cb':_0x158b79[_0x5c3caf(0x9e)],'type':_0x5c3caf(0x94)});}),_0x154211['push'](_0x46f1d4);}const _0x409ffd=_0x35fd37[_0x500d28(0x8c)](_0x354642=>_0x354642['strLx']==_0x500d28(0xb3));if(_0x409ffd[_0x500d28(0xa3)]){let _0x3a6c76={'title':_0xa4ca5b[_0x500d28(0xb3)],'type':_0x500d28(0xb3),'list':[]};_0x409ffd[_0x500d28(0x98)](_0x4c9439=>{const _0x5a53ce=_0x500d28;_0x3a6c76[_0x5a53ce(0xa4)][_0x5a53ce(0x95)]({'title':_0x4c9439['name']+('['+_0x4c9439[_0x5a53ce(0x9d)]+']'),'info':_0xe69db1+_0x4c9439[_0x5a53ce(0xaf)]+_0x46e12e+_0x4c9439['num'],'nRs':_0x4c9439[_0x5a53ce(0xb0)],'unit':_0x4c9439[_0x5a53ce(0xaf)],'cb':_0x4c9439[_0x5a53ce(0xa9)],'type':_0x5a53ce(0xb3)});}),_0x154211['push'](_0x3a6c76);}const _0x45eec2=_0x35fd37[_0x500d28(0x8c)](_0x378c51=>_0x378c51[_0x500d28(0x97)]==_0x500d28(0xc4));if(_0x45eec2[_0x500d28(0xa3)]){let _0x370457={'title':_0xa4ca5b[_0x500d28(0xc4)],'type':_0x500d28(0xc4),'list':[]};_0x45eec2['map'](_0x1fb2fb=>{const _0x4b2ffe=_0x500d28;_0x1fb2fb['adultnum']!='0'&&_0x370457[_0x4b2ffe(0xa4)][_0x4b2ffe(0x95)]({'title':_0x1fb2fb[_0x4b2ffe(0x90)]+('['+_0x23f507[_0x4b2ffe(0xa7)]+']'),'info':_0xe69db1+_0x1fb2fb[_0x4b2ffe(0xb7)]+_0x46e12e+_0x1fb2fb[_0x4b2ffe(0xb2)],'nRs':_0x1fb2fb[_0x4b2ffe(0xb2)],'unit':_0x1fb2fb['adultprice'],'cb':_0x1fb2fb['baseadultprice'],'type':_0x4b2ffe(0xc4)}),_0x1fb2fb[_0x4b2ffe(0xbf)]!='0'&&_0x370457[_0x4b2ffe(0xa4)][_0x4b2ffe(0x95)]({'title':_0x1fb2fb[_0x4b2ffe(0x90)]+('['+_0x23f507[_0x4b2ffe(0x8a)]+']'),'info':_0xe69db1+_0x1fb2fb[_0x4b2ffe(0xb8)]+_0x46e12e+_0x1fb2fb['childnum'],'nRs':_0x1fb2fb[_0x4b2ffe(0xbf)],'unit':_0x1fb2fb['childprice'],'cb':_0x1fb2fb['basechildprice'],'type':'trip'});}),_0x154211['push'](_0x370457);}let _0x84df7b=[];const _0x564a26=_0x35fd37[_0x500d28(0x8c)](_0x510943=>_0x510943[_0x500d28(0x97)]==_0x500d28(0x85));_0x564a26[_0x500d28(0xa3)]&&_0x564a26['map'](_0x4be8dd=>{const _0x1d918f=_0x500d28,_0x5f032a=_0x4be8dd['name'][_0x1d918f(0xc1)]('|')||[''];_0x84df7b[_0x1d918f(0x95)]({'title':_0x23f507[_0x1d918f(0x85)]+('['+_0x5f032a[0x0]+']'),'info':_0xe69db1+_0x20826f+_0x4be8dd[_0x1d918f(0xc0)],'unit':_0x4be8dd[_0x1d918f(0xc0)],'cb':_0x4be8dd['money'],'type':_0x1d918f(0x85)});});const _0x470fa6=_0x35fd37[_0x500d28(0x8c)](_0x491f38=>_0x491f38[_0x500d28(0x97)]=='vipdiscounted');_0x470fa6['length']&&_0x470fa6[_0x500d28(0x98)](_0x406fc7=>{const _0x28824f=_0x500d28;_0x84df7b[_0x28824f(0x95)]({'title':_0x23f507[_0x28824f(0xaa)]+('['+_0x406fc7[_0x28824f(0x90)]+']'),'info':_0xe69db1+_0x20826f+_0x406fc7[_0x28824f(0xc0)],'unit':_0x406fc7['money'],'cb':_0x406fc7[_0x28824f(0xc0)],'type':_0x28824f(0xaa)});});const _0x55b8c3=_0x35fd37['filter'](_0x4a89b4=>_0x4a89b4[_0x500d28(0x97)]==_0x500d28(0xae));_0x55b8c3[_0x500d28(0xa3)]&&_0x55b8c3[_0x500d28(0x98)](_0x257864=>{const _0x46e4f2=_0x500d28;_0x84df7b[_0x46e4f2(0x95)]({'title':_0x23f507[_0x46e4f2(0xae)],'info':_0xe69db1+_0x20826f+_0x257864[_0x46e4f2(0xc0)],'unit':_0x257864[_0x46e4f2(0xc0)],'cb':_0x257864['money'],'type':_0x46e4f2(0xae)});});_0x84df7b[_0x500d28(0xa3)]&&_0x154211[_0x500d28(0x95)]({'title':_0xa4ca5b['reduction'],'type':_0x500d28(0x83),'list':_0x84df7b});const _0x4db216=_0x35fd37['filter'](_0x4d6811=>_0x4d6811['strLx']=='airtax');if(_0x4db216[_0x500d28(0xa3)]){let _0x2bad69={'title':_0xa4ca5b[_0x500d28(0x88)],'type':_0x500d28(0x88),'list':[]};_0x4db216[_0x500d28(0x98)](_0x308d0e=>{const _0x3ca0c9=_0x500d28;_0x2bad69[_0x3ca0c9(0xa4)]['push']({'title':_0x23f507[_0x308d0e[_0x3ca0c9(0xc5)]],'info':_0xe69db1+_0x308d0e[_0x3ca0c9(0xaf)]+_0x46e12e+_0x308d0e['sl'],'nRs':_0x308d0e['sl'],'unit':_0x308d0e[_0x3ca0c9(0xaf)],'cb':_0x308d0e['unitpricewb'],'type':_0x308d0e[_0x3ca0c9(0xc5)]});}),_0x154211[_0x500d28(0x95)](_0x2bad69);}const _0x104151=[_0x500d28(0x94),'service',_0x500d28(0xc4),_0x500d28(0x85),'vipdiscounted',_0x500d28(0xae),_0x500d28(0x88)],_0x564f17=_0x35fd37[_0x500d28(0x8c)](_0xf9ca23=>!_0x104151[_0x500d28(0xbe)](_0xf9ca23[_0x500d28(0x97)]));let _0x1ca402={'title':_0xa4ca5b[_0x500d28(0xb1)],'type':_0x500d28(0xb1),'list':[]};for(var _0x5a7b3f=0x0;_0x5a7b3f<_0x564f17[_0x500d28(0xa3)];_0x5a7b3f++){const _0x3ca5d7=_0x564f17[_0x5a7b3f];_0x3ca5d7['strLx']==_0x500d28(0xbc)&&_0x1ca402[_0x500d28(0xa4)][_0x500d28(0x95)]({'title':_0x23f507[_0x500d28(0xbc)]+('['+_0x3ca5d7[_0x500d28(0x90)]+']'),'info':_0xe69db1+_0x3ca5d7[_0x500d28(0xc0)],'unit':_0x3ca5d7[_0x500d28(0xc0)],'type':_0x3ca5d7[_0x500d28(0x97)]}),_0x3ca5d7[_0x500d28(0x97)]==_0x500d28(0x84)&&_0x1ca402[_0x500d28(0xa4)]['push']({'title':_0x23f507[_0x500d28(0x84)]+('['+_0x3ca5d7[_0x500d28(0x90)]+']'),'info':_0xe69db1+_0x3ca5d7[_0x500d28(0xa1)]+_0x46e12e+_0x3ca5d7[_0x500d28(0xa5)]+_0x23f507['r'],'nRs':_0x3ca5d7[_0x500d28(0xa5)],'unit':_0x3ca5d7['unit'],'cb':_0x3ca5d7[_0x500d28(0xa1)],'type':_0x500d28(0x84)}),(_0x3ca5d7[_0x500d28(0x97)]==_0x500d28(0xc2)||_0x3ca5d7[_0x500d28(0x97)]==_0x500d28(0x86))&&_0x1ca402['list'][_0x500d28(0x95)]({'title':_0x23f507[_0x3ca5d7[_0x500d28(0x97)]],'info':_0xe69db1+_0x20826f+_0x3ca5d7[_0x500d28(0xc0)],'unit':_0x3ca5d7['money'],'type':_0x3ca5d7[_0x500d28(0x97)]}),_0x3ca5d7[_0x500d28(0x97)]==_0x500d28(0x99)&&_0x1ca402[_0x500d28(0xa4)][_0x500d28(0x95)]({'title':_0x23f507[_0x3ca5d7[_0x500d28(0x97)]],'info':_0xe69db1+_0x3ca5d7[_0x500d28(0x99)]+_0x46e12e+_0x3ca5d7[_0x500d28(0x93)]+_0x23f507['r']+_0x46e12e+_0x3ca5d7['tipday']+_0x23f507['t'],'nRs':_0x3ca5d7[_0x500d28(0x93)],'count':_0x3ca5d7[_0x500d28(0xab)],'unit':_0x3ca5d7[_0x500d28(0x99)],'type':_0x3ca5d7['strLx']}),_0x3ca5d7[_0x500d28(0x97)]==_0x500d28(0xb6)&&_0x1ca402[_0x500d28(0xa4)][_0x500d28(0x95)]({'title':_0x23f507[_0x3ca5d7[_0x500d28(0x97)]],'info':_0xe69db1+_0x3ca5d7['totaltax'],'unit':_0x3ca5d7['totaltax'],'type':_0x3ca5d7[_0x500d28(0x97)]});}_0x1ca402[_0x500d28(0xa4)][_0x500d28(0xa3)]&&_0x154211[_0x500d28(0x95)](_0x1ca402);const _0x3fd644=_0x35fd37[_0x500d28(0x8c)](_0x36c58d=>_0x36c58d[_0x500d28(0x97)]==_0x500d28(0xbd));return _0x3fd644[_0x500d28(0xa3)]&&_0x154211[_0x500d28(0x95)]({'title':_0xa4ca5b['totalprice'],'type':'totalprice','list':[{'title':_0xa4ca5b[_0x500d28(0xbd)],'info':_0xe69db1+_0x3fd644[0x0]['price']}]}),_0x154211;}function a0_0x3f46(){const _0x12eeed=['411zFLQvS','機場稅','name','會員減免','9170364KPUrax','tipuser','base','push','674072eVPvGn','strLx','map','tip','兒童[占床]','\x20*\x20','附加行程','itemname','fJcbzlsjUnit','548139mVAPMq','fLsjUnit','unit','nRs','length','list','users','保險費用','adult','優惠券','baseprice','vip','tipday','會員充值','5354632NkCyCx','promotion','unitprice','num','other','adultnum','service','18CUyYdB','12165pyQclr','tax','adultprice','childprice','3024uYWgiX','people','減免費用','viprecharge','totalprice','includes','childnum','money','split','coupon','人員費用','trip','rylx','reduction','insure','elder','point','5116tfNuZQ','airtax','遊客優惠','child','附加服務','filter','12468000ooVtmt'];a0_0x3f46=function(){return _0x12eeed;};return a0_0x3f46();}export default{'handleCosting':handleCosting};
package/dist/index.js CHANGED
@@ -1 +1 @@
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};
1
+ (function(_0x1d3b97,_0x1bd68){var _0x1774af=a1_0x28e4,_0x4fa6be=_0x1d3b97();while(!![]){try{var _0x4cd4c5=-parseInt(_0x1774af(0x15a))/0x1*(parseInt(_0x1774af(0x15c))/0x2)+-parseInt(_0x1774af(0x156))/0x3*(-parseInt(_0x1774af(0x154))/0x4)+-parseInt(_0x1774af(0x158))/0x5+parseInt(_0x1774af(0x155))/0x6*(parseInt(_0x1774af(0x157))/0x7)+parseInt(_0x1774af(0x15b))/0x8+-parseInt(_0x1774af(0x15d))/0x9+-parseInt(_0x1774af(0x159))/0xa;if(_0x4cd4c5===_0x1bd68)break;else _0x4fa6be['push'](_0x4fa6be['shift']());}catch(_0x2e015e){_0x4fa6be['push'](_0x4fa6be['shift']());}}}(a1_0x1919,0x77445));import a1_0x2a3622 from'./utils';import a1_0x1c29aa from'./func';function a1_0x28e4(_0x5ce514,_0x1efa37){var _0x1919d0=a1_0x1919();return a1_0x28e4=function(_0x28e4e1,_0x10457e){_0x28e4e1=_0x28e4e1-0x154;var _0xe89f7d=_0x1919d0[_0x28e4e1];return _0xe89f7d;},a1_0x28e4(_0x5ce514,_0x1efa37);}function a1_0x1919(){var _0x37cbf=['4HPNgZU','6wkvZFB','1895001wjCGPa','3265577IiCNIc','629580jmLBot','4465870hiAmUr','7621AfvwHK','7171440ORlazU','48eTBgvg','6756156cvDbGt'];a1_0x1919=function(){return _0x37cbf;};return a1_0x1919();}import a1_0x164507 from'./test';export default{'test':a1_0x164507,'utils':a1_0x2a3622,'func':a1_0x1c29aa};
package/dist/test.js CHANGED
@@ -1 +1 @@
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};
1
+ function a2_0x35ca(){const _0x870e3e=['charAt','^\x5cd{','catch','2319560RRCChs','159566YQBzOq','7277454JvhkyH','split','10yyGHvT','includes','string','indexOf','parse','isArray','test','9545608bPFAde','replace','number','[object\x20Object]','toString','startsWith','undefined','function','4263309kshjUR','949347GagnEV','call','length','480wGOIDM','object','74gjRmxY','61911uvlOaa','prototype','[object\x20RegExp]','852','7WpNDso','5jaburD'];a2_0x35ca=function(){return _0x870e3e;};return a2_0x35ca();}(function(_0x5b7500,_0x176799){const _0x5f0df3=a2_0x1dd9,_0x56f797=_0x5b7500();while(!![]){try{const _0x1227ed=parseInt(_0x5f0df3(0x141))/0x1+parseInt(_0x5f0df3(0x146))/0x2*(-parseInt(_0x5f0df3(0x147))/0x3)+-parseInt(_0x5f0df3(0x150))/0x4*(-parseInt(_0x5f0df3(0x14c))/0x5)+parseInt(_0x5f0df3(0x152))/0x6+parseInt(_0x5f0df3(0x14b))/0x7*(-parseInt(_0x5f0df3(0x138))/0x8)+parseInt(_0x5f0df3(0x140))/0x9*(parseInt(_0x5f0df3(0x154))/0xa)+-parseInt(_0x5f0df3(0x151))/0xb*(parseInt(_0x5f0df3(0x144))/0xc);if(_0x1227ed===_0x176799)break;else _0x56f797['push'](_0x56f797['shift']());}catch(_0x499ae4){_0x56f797['push'](_0x56f797['shift']());}}}(a2_0x35ca,0xa5bb5));function email(_0x426eeb){const _0x1fce60=a2_0x1dd9;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x1fce60(0x137)](_0x426eeb);}function mobile(_0x1a6968){const _0x423ba9=a2_0x1dd9;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x423ba9(0x137)](_0x1a6968);}function isValidPhoneNumber(_0x51a6ed){const _0x3e5787=a2_0x1dd9;if(_0x51a6ed['includes']('-')){const [_0x2658a8,_0x1f5411]=_0x51a6ed[_0x3e5787(0x153)]('-');if(_0x2658a8==='86')return/^\d{11}$/[_0x3e5787(0x137)](_0x1f5411)&&_0x1f5411[_0x3e5787(0x13d)]('1');else return _0x2658a8===_0x3e5787(0x14a)?/^\d{8}$/['test'](_0x1f5411)&&['5','6','9','8'][_0x3e5787(0x155)](_0x1f5411[_0x3e5787(0x14d)](0x0)):/^\d+$/[_0x3e5787(0x137)](_0x1f5411);}else return/^\d+$/[_0x3e5787(0x137)](_0x51a6ed);}function url(_0x4a0d0f){const _0x5ebcda=a2_0x1dd9;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x5ebcda(0x137)](_0x4a0d0f);}function date(_0x67e66a){const _0x451f02=a2_0x1dd9;if(!_0x67e66a)return![];if(number(_0x67e66a))_0x67e66a=+_0x67e66a;return!/Invalid|NaN/[_0x451f02(0x137)](new Date(_0x67e66a)[_0x451f02(0x13c)]());}function dateISO(_0x4924bb){const _0x336fff=a2_0x1dd9;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x336fff(0x137)](_0x4924bb);}function isNumber(_0x3e1b41){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/['test'](_0x3e1b41);}function isString(_0x3396ee){const _0x1cfc4e=a2_0x1dd9;return typeof _0x3396ee===_0x1cfc4e(0x156);}function digits(_0x1076b9){return/^\d+$/['test'](_0x1076b9);}function idCard(_0x587e4f){const _0x4bf7e2=a2_0x1dd9;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)$/[_0x4bf7e2(0x137)](_0x587e4f);}function carNo(_0x33b98e){const _0x105b28=a2_0x1dd9,_0x3de053=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x4d073c=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x33b98e[_0x105b28(0x143)]===0x7)return _0x4d073c[_0x105b28(0x137)](_0x33b98e);if(_0x33b98e['length']===0x8)return _0x3de053[_0x105b28(0x137)](_0x33b98e);return![];}function amount(_0x110ffa){const _0xffbf9=a2_0x1dd9;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0xffbf9(0x137)](_0x110ffa);}function a2_0x1dd9(_0x471a11,_0x30665a){const _0x35caa2=a2_0x35ca();return a2_0x1dd9=function(_0x1dd9e2,_0x300083){_0x1dd9e2=_0x1dd9e2-0x135;let _0x2bc216=_0x35caa2[_0x1dd9e2];return _0x2bc216;},a2_0x1dd9(_0x471a11,_0x30665a);}function chinese(_0x188941){const _0x46f94a=a2_0x1dd9,_0x1e5b07=/^[\u4e00-\u9fa5]+$/gi;return _0x1e5b07[_0x46f94a(0x137)](_0x188941);}function letter(_0x283b24){return/^[a-zA-Z]*$/['test'](_0x283b24);}function enOrNum(_0x34a4ee){const _0x8ac29a=a2_0x1dd9,_0x14a821=/^[0-9a-zA-Z]*$/g;return _0x14a821[_0x8ac29a(0x137)](_0x34a4ee);}function contains(_0x21235a,_0x2fc83f){const _0x706c4e=a2_0x1dd9;return _0x21235a[_0x706c4e(0x157)](_0x2fc83f)>=0x0;}function range(_0x2013cd,_0x28adac){return _0x2013cd>=_0x28adac[0x0]&&_0x2013cd<=_0x28adac[0x1];}function rangeLength(_0x4d6156,_0x684ea7){const _0x255019=a2_0x1dd9;return _0x4d6156[_0x255019(0x143)]>=_0x684ea7[0x0]&&_0x4d6156[_0x255019(0x143)]<=_0x684ea7[0x1];}function landline(_0x599878){const _0x1c0c6e=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x1c0c6e['test'](_0x599878);}function empty(_0x2c30b9){const _0x42874a=a2_0x1dd9;switch(typeof _0x2c30b9){case _0x42874a(0x13e):return!![];case _0x42874a(0x156):if(_0x2c30b9[_0x42874a(0x139)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x42874a(0x143)]==0x0)return!![];break;case'boolean':if(!_0x2c30b9)return!![];break;case _0x42874a(0x13a):if(_0x2c30b9===0x0||isNaN(_0x2c30b9))return!![];break;case'object':if(_0x2c30b9===null||_0x2c30b9[_0x42874a(0x143)]===0x0)return!![];for(const _0x347bc3 in _0x2c30b9){return![];}return!![];}return![];}function jsonString(_0x437a4f){const _0x2488e9=a2_0x1dd9;if(typeof _0x437a4f==='string')try{const _0x3827d1=JSON[_0x2488e9(0x135)](_0x437a4f);if(typeof _0x3827d1===_0x2488e9(0x145)&&_0x3827d1)return!![];return![];}catch(_0x1ec993){return![];}return![];}function array(_0x17bc9a){const _0x4b5c74=a2_0x1dd9;if(typeof Array['isArray']==='function')return Array[_0x4b5c74(0x136)](_0x17bc9a);return Object[_0x4b5c74(0x148)][_0x4b5c74(0x13c)]['call'](_0x17bc9a)==='[object\x20Array]';}function object(_0x1697bf){const _0x33bd04=a2_0x1dd9;return Object[_0x33bd04(0x148)][_0x33bd04(0x13c)][_0x33bd04(0x142)](_0x1697bf)===_0x33bd04(0x13b);}function code(_0x31762d,_0x15577f=0x6){const _0x247beb=a2_0x1dd9;return new RegExp(_0x247beb(0x14e)+_0x15577f+'}$')[_0x247beb(0x137)](_0x31762d);}function func(_0x4510ea){const _0xd27425=a2_0x1dd9;return typeof _0x4510ea===_0xd27425(0x13f);}function promise(_0x59a276){const _0x3f8f47=a2_0x1dd9;return object(_0x59a276)&&func(_0x59a276['then'])&&func(_0x59a276[_0x3f8f47(0x14f)]);}function image(_0x550aa3){const _0x4344d1=a2_0x1dd9,_0x23f93c=_0x550aa3[_0x4344d1(0x153)]('?')[0x0],_0x18a9b3=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x18a9b3[_0x4344d1(0x137)](_0x23f93c);}function video(_0x137213){const _0x40faea=a2_0x1dd9,_0x5ce389=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x5ce389[_0x40faea(0x137)](_0x137213);}function regExp(_0x5ae634){const _0x2643f1=a2_0x1dd9;return _0x5ae634&&Object[_0x2643f1(0x148)][_0x2643f1(0x13c)][_0x2643f1(0x142)](_0x5ae634)===_0x2643f1(0x149);}function isNumeric(_0x16d4be,_0x83aed2=0x0){const _0x182931=a2_0x1dd9;if(typeof _0x16d4be===_0x182931(0x13a))_0x16d4be=_0x16d4be[_0x182931(0x13c)]();if(typeof _0x16d4be!==_0x182931(0x156))return![];switch(_0x83aed2){case 0x1:return/^\d+(\.\d+)?$/[_0x182931(0x137)](_0x16d4be);case 0x2:return/^-\d+(\.\d+)?$/[_0x182931(0x137)](_0x16d4be);case 0x3:return/^-?\d+$/[_0x182931(0x137)](_0x16d4be);case 0x4:return/^\d+$/[_0x182931(0x137)](_0x16d4be);case 0x5:return/^-\d+$/[_0x182931(0x137)](_0x16d4be);default:return/^-?\d*\.?\d*$/[_0x182931(0x137)](_0x16d4be)&&!_0x16d4be[_0x182931(0x13d)]('.')&&!_0x16d4be['includes']('--');}}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_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};
1
+ const a3_0x56ef6a=a3_0x1062;(function(_0x5476c0,_0x5793ef){const _0x1c41a2=a3_0x1062,_0x1c5c35=_0x5476c0();while(!![]){try{const _0x4812e7=parseInt(_0x1c41a2(0x1c3))/0x1+parseInt(_0x1c41a2(0x1cc))/0x2+-parseInt(_0x1c41a2(0x1ba))/0x3+parseInt(_0x1c41a2(0x1c7))/0x4*(parseInt(_0x1c41a2(0x1be))/0x5)+-parseInt(_0x1c41a2(0x1d9))/0x6+-parseInt(_0x1c41a2(0x1bc))/0x7+-parseInt(_0x1c41a2(0x1b0))/0x8;if(_0x4812e7===_0x5793ef)break;else _0x1c5c35['push'](_0x1c5c35['shift']());}catch(_0x1b348a){_0x1c5c35['push'](_0x1c5c35['shift']());}}}(a3_0x499e,0x3666d));function fmtNum(_0x3d6a2d){const _0x56d84a=a3_0x1062;if(_0x3d6a2d==0x0)return'0';if(!_0x3d6a2d)return'';let _0x18c2e3=typeof _0x3d6a2d===_0x56d84a(0x1b6)?parseFloat(_0x3d6a2d):_0x3d6a2d;if(isNaN(_0x18c2e3))return'';return _0x18c2e3[_0x56d84a(0x1d6)](_0x56d84a(0x1c8),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x2f776a,_0xa1c63e=![]){const _0x5ecf97=a3_0x1062;let _0x25ba34={'surname':'','givenName':''};if(_0xa1c63e){const _0x323279=_0x2f776a[_0x5ecf97(0x1ce)](',')?_0x2f776a['split'](','):_0x2f776a[_0x5ecf97(0x1d3)](/\s+/);_0x323279[_0x5ecf97(0x1c5)]>=0x2&&(_0x25ba34['surname']=_0x323279[0x0][_0x5ecf97(0x1d0)](),_0x25ba34['givenName']=_0x323279[0x1]['trim']());}else{const _0x43636a=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x2a6f7b=0x0;_0x2a6f7b<_0x43636a[_0x5ecf97(0x1c5)];_0x2a6f7b++){const _0x351c36=_0x43636a[_0x2a6f7b];if(_0x2f776a[_0x5ecf97(0x1dd)](_0x351c36))return _0x25ba34[_0x5ecf97(0x1b9)]=_0x351c36,_0x25ba34[_0x5ecf97(0x1cf)]=_0x2f776a[_0x5ecf97(0x1d1)](_0x351c36[_0x5ecf97(0x1c5)])['trim'](),_0x25ba34;}const _0x5da35d=_0x2f776a[_0x5ecf97(0x1d3)]('\x20');if(_0x5da35d[_0x5ecf97(0x1c5)]===0x1){const _0x3edcc9=_0x2f776a[_0x5ecf97(0x1de)](/[\u4e00-\u9fa5]/);_0x25ba34[_0x5ecf97(0x1b9)]=_0x3edcc9?_0x3edcc9[0x0]:'',_0x25ba34['givenName']=_0x2f776a['replace'](_0x25ba34[_0x5ecf97(0x1b9)],'')[_0x5ecf97(0x1d0)]();}else _0x25ba34[_0x5ecf97(0x1b9)]=_0x5da35d[0x0],_0x25ba34['givenName']=_0x5da35d[_0x5ecf97(0x1cd)](0x1)[_0x5ecf97(0x1d2)]('\x20');}return _0x25ba34;}function modifyKeys(_0x2776aa,_0x45b168={'strCode':a3_0x56ef6a(0x1db),'strFjbh':'fjbh','strGuid':a3_0x56ef6a(0x1b7),'strValue':a3_0x56ef6a(0x1cb)}){const _0x2046b0=a3_0x56ef6a;if(!_0x2776aa[_0x2046b0(0x1c5)]||_0x2776aa===null)return[];const _0x55d3ab=_0x2776aa[_0x2046b0(0x1d4)](_0x1a89a2=>{const _0x38fe1c={};for(const _0x6de608 in _0x1a89a2){_0x45b168['hasOwnProperty'](_0x6de608)?_0x38fe1c[_0x45b168[_0x6de608]]=_0x1a89a2[_0x6de608]:_0x38fe1c[_0x6de608]=_0x1a89a2[_0x6de608];}return _0x38fe1c;});return _0x55d3ab;}function sliceArray(_0x211394,_0x4b4beb,_0x56bdb4){const _0x20ca91=a3_0x56ef6a;if(_0x4b4beb<=0x0)return console[_0x20ca91(0x1b8)](_0x20ca91(0x1bb)),[];return _0x56bdb4?_0x211394[_0x20ca91(0x1cd)](0x0,_0x4b4beb):_0x211394['slice'](-_0x4b4beb);}function findDataByData(_0x50c74e,_0xc47c4e,_0x57955e){const _0x55f856=a3_0x56ef6a,_0xfd77f5=_0x50c74e[_0x55f856(0x1c2)](_0x46a78a=>_0x46a78a[_0x57955e]===_0xc47c4e);return _0xfd77f5||null;}function splitArray(_0x5f27be,_0x468154){const _0x53074b=a3_0x56ef6a,_0x527c36=[];for(let _0x25aeb3=0x0;_0x25aeb3<_0x5f27be['length'];_0x25aeb3+=_0x468154){_0x527c36[_0x53074b(0x1da)](_0x5f27be['slice'](_0x25aeb3,_0x25aeb3+_0x468154));}return _0x527c36;}function getProxyType(_0x265f5b){const _0xca35a1=a3_0x56ef6a;return Object[_0xca35a1(0x1b3)][_0xca35a1(0x1b4)]['call'](_0x265f5b)[_0xca35a1(0x1cd)](0x8,-0x1);}let timeout=null;function a3_0x1062(_0x2598d6,_0x25cf42){const _0x499e6c=a3_0x499e();return a3_0x1062=function(_0x10628d,_0x4d76f8){_0x10628d=_0x10628d-0x1af;let _0x7fdbcb=_0x499e6c[_0x10628d];return _0x7fdbcb;},a3_0x1062(_0x2598d6,_0x25cf42);}function debounce(_0x514ce7,_0x118f2f=0x1f4,_0x312571=![]){const _0x271c21=a3_0x56ef6a;if(timeout!==null)clearTimeout(timeout);if(_0x312571){const _0x5cab60=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x118f2f);if(_0x5cab60)typeof _0x514ce7===_0x271c21(0x1d8)&&_0x514ce7();}else timeout=setTimeout(()=>{const _0x43753d=_0x271c21;typeof _0x514ce7===_0x43753d(0x1d8)&&_0x514ce7();},_0x118f2f);}function matchKeyValueInArray(_0x1681e0,_0x4cdb42,_0x477d9c){const _0x5c1693=a3_0x56ef6a;for(let _0x11a745=0x0;_0x11a745<_0x1681e0[_0x5c1693(0x1c5)];_0x11a745++){if(_0x1681e0[_0x11a745][_0x4cdb42]===_0x477d9c)return!![];}return![];}function urlEncode(_0x2acd18={}){const _0x2a308b=a3_0x56ef6a,_0x2fc0ff=[];for(const _0x365891 in _0x2acd18){const _0x30bc41=_0x2acd18[_0x365891];if(!_0x30bc41)continue;isArray(_0x30bc41)?_0x30bc41['forEach'](_0x389c03=>{_0x2fc0ff['push'](_0x365891+'='+_0x389c03);}):_0x2fc0ff[_0x2a308b(0x1da)](_0x365891+'='+_0x30bc41);}return _0x2fc0ff[_0x2a308b(0x1d2)]('&');}function compareDates(_0x3b3907,_0x37b4f3){const _0x20371d=a3_0x56ef6a;_0x3b3907=new Date(_0x3b3907);!_0x37b4f3?_0x37b4f3=new Date():_0x37b4f3=new Date(_0x37b4f3);_0x3b3907['setHours'](0x0,0x0,0x0,0x0),_0x37b4f3['setHours'](0x0,0x0,0x0,0x0);var _0x25366b=_0x3b3907[_0x20371d(0x1c1)](),_0x4f1a0f=_0x37b4f3[_0x20371d(0x1c1)]();if(_0x25366b<_0x4f1a0f)return-0x1;else return _0x25366b>_0x4f1a0f?0x1:0x0;}function getDaysBetween(_0x54d158,_0x549a79){const _0x3f2ef7=a3_0x56ef6a,_0x502ed3=new Date(_0x54d158),_0x3fcdcb=new Date(_0x549a79),_0x20fc25=Math['abs'](_0x502ed3[_0x3f2ef7(0x1c1)]()-_0x3fcdcb[_0x3f2ef7(0x1c1)]()),_0xdb5f3b=Math[_0x3f2ef7(0x1b2)](_0x20fc25/(0x3e8*0x3c*0x3c*0x18));return _0xdb5f3b+0x1;}function chineseNumeral(_0x2ef754){const _0x50acb0=a3_0x56ef6a,_0x2ec5f6=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x57a4cf=['','拾','佰','仟'],_0x4dbc8b=['','万','亿','兆'];let _0x4000d0=Math[_0x50acb0(0x1b2)](_0x2ef754),_0x2b21aa=Math[_0x50acb0(0x1c0)]((_0x2ef754-_0x4000d0)*0x64),_0x16c3ca='';for(let _0x43dc85=0x0;_0x4000d0>0x0;_0x43dc85++){let _0x3272e9='',_0x4575db=_0x4000d0%0x2710;_0x4000d0=Math[_0x50acb0(0x1b2)](_0x4000d0/0x2710);for(let _0x5a1faa=0x0;_0x4575db>0x0;_0x5a1faa++){let _0x39c143=_0x4575db%0xa;_0x3272e9=(_0x39c143?_0x2ec5f6[_0x39c143]+_0x57a4cf[_0x5a1faa]:'')+_0x3272e9,_0x4575db=Math[_0x50acb0(0x1b2)](_0x4575db/0xa);}_0x16c3ca=_0x3272e9+(_0x3272e9?_0x4dbc8b[_0x43dc85]:_0x4dbc8b[_0x43dc85]&&!_0x16c3ca[_0x50acb0(0x1ce)]('零')?'零':'')+_0x16c3ca;}_0x16c3ca+=_0x16c3ca?'元':'零元';if(_0x2b21aa>0x0){let _0x1ec9eb=Math[_0x50acb0(0x1b2)](_0x2b21aa/0xa),_0xd43d1b=_0x2b21aa%0xa;_0x16c3ca+=(_0x1ec9eb?_0x2ec5f6[_0x1ec9eb]+'角':'')+(_0xd43d1b?_0x2ec5f6[_0xd43d1b]+'分':'');}else _0x16c3ca+='整';return _0x16c3ca[_0x50acb0(0x1af)](/零{2,}/g,'零')[_0x50acb0(0x1af)](/零元/,'元');}function getMonthDate(_0x45b547){const _0x125ec6=a3_0x56ef6a;(!_0x45b547||_0x45b547[_0x125ec6(0x1d0)]()==='')&&(_0x45b547=new Date()[_0x125ec6(0x1dc)]()+'-'+(new Date()[_0x125ec6(0x1c9)]()+0x1));let _0x52e44d=[],[_0xb5af56,_0x5743aa]=_0x45b547[_0x125ec6(0x1d3)]('-')[_0x125ec6(0x1d4)](Number),_0x7bb2e=new Date(_0xb5af56,_0x5743aa,0x0),_0x34fc08=_0x7bb2e[_0x125ec6(0x1c4)]();for(let _0x3b3168=0x1;_0x3b3168<=_0x34fc08;_0x3b3168++){let _0x381fc7=_0x3b3168<0xa?'0'+_0x3b3168:''+_0x3b3168,_0x2120e6=_0x5743aa<0xa?'0'+_0x5743aa:''+_0x5743aa;_0x52e44d[_0x125ec6(0x1da)]({'date':_0xb5af56+'-'+_0x2120e6+'-'+_0x381fc7,'disable':!![]});}return _0x52e44d;}function getToday(_0x24302c){const _0x3a6362=a3_0x56ef6a;var _0x39684d=new Date(),_0x3e133d=String(_0x39684d['getDate']())[_0x3a6362(0x1bd)](0x2,'0'),_0x3ddf83=String(_0x39684d['getMonth']()+0x1)[_0x3a6362(0x1bd)](0x2,'0'),_0x5aa242=_0x39684d[_0x3a6362(0x1dc)]();return _0x39684d=_0x5aa242+'-'+_0x3ddf83+'-'+_0x3e133d,_0x39684d;}function resetObject(_0x4c03a1){const _0x5d28da=a3_0x56ef6a;let _0x53e26e=JSON[_0x5d28da(0x1d5)](JSON['stringify'](_0x4c03a1));for(const _0x4e25dd in _0x53e26e){if(typeof _0x53e26e[_0x4e25dd]==='number')_0x53e26e[_0x4e25dd]=0x0;else{if(typeof _0x53e26e[_0x4e25dd]===_0x5d28da(0x1ca))_0x53e26e[_0x4e25dd]=![];else{if(Array[_0x5d28da(0x1c6)](_0x53e26e[_0x4e25dd]))_0x53e26e[_0x4e25dd]=[];else typeof _0x53e26e[_0x4e25dd]===_0x5d28da(0x1bf)&&_0x53e26e[_0x4e25dd]!==null?resetObject(_0x53e26e[_0x4e25dd]):_0x53e26e[_0x4e25dd]='';}}}return _0x53e26e;}function preciseOperation(_0x44ce6a,_0x358748,_0x2bee74,_0x1e8b4b=0xf4240){const _0x1e7c52=a3_0x56ef6a;if(isNaN(_0x44ce6a)||isNaN(_0x358748))return NaN;if(!isFinite(_0x44ce6a)||!isFinite(_0x358748))return NaN;let _0xf137c0=BigInt(Math[_0x1e7c52(0x1c0)](_0x44ce6a*_0x1e8b4b)),_0xb4089=BigInt(Math['round'](_0x358748*_0x1e8b4b)),_0x8c5fcc;switch(_0x2bee74){case 0x1:_0x8c5fcc=_0xf137c0+_0xb4089;break;case 0x2:_0x8c5fcc=_0xf137c0-_0xb4089;break;case 0x3:_0x8c5fcc=_0xf137c0*_0xb4089;break;case 0x4:if(_0xb4089===0x0n)throw new Error(_0x1e7c52(0x1b5));_0x8c5fcc=_0xf137c0/_0xb4089;break;default:throw new Error('无效的操作符,操作符应为1、2、3或4');}return Number(_0x8c5fcc)/_0x1e8b4b;}function preciseSum(_0x44725b){const _0x98e59d=a3_0x56ef6a;let _0x46b2a9=0x0;for(const _0x311325 of _0x44725b){let _0x2f90d0=0x0;if(typeof _0x311325===_0x98e59d(0x1b6)){const _0x4f5af2=parseFloat(_0x311325);!isNaN(_0x4f5af2)&&(_0x2f90d0=_0x4f5af2);}else typeof _0x311325===_0x98e59d(0x1b1)&&(_0x2f90d0=_0x311325);_0x46b2a9=preciseOperation(_0x46b2a9,_0x2f90d0,0x1);}return _0x46b2a9;}function getRelativeDate(_0x131edd,_0x3a425d=0x0){const _0x315e28=a3_0x56ef6a,_0x14b183=new Date(_0x131edd);_0x14b183['setDate'](_0x14b183['getDate']()+_0x3a425d);const _0x327da0=_0x14b183[_0x315e28(0x1dc)](),_0x139b5e=(_0x14b183[_0x315e28(0x1c9)]()+0x1)[_0x315e28(0x1b4)]()[_0x315e28(0x1bd)](0x2,'0'),_0x4b229d=_0x14b183[_0x315e28(0x1c4)]()[_0x315e28(0x1b4)]()[_0x315e28(0x1bd)](0x2,'0');return _0x327da0+'-'+_0x139b5e+'-'+_0x4b229d;}function a3_0x499e(){const _0x41f199=['1831616XZzRXK','number','floor','prototype','toString','除数不能为0','string','value','error','surname','447066rbXDSI','Quantity\x20should\x20be\x20greater\x20than\x200.','1833755ENNaLs','padStart','590xwjVkf','object','round','getTime','find','428039BCdAsz','getDate','length','isArray','7604EVAdDE','en-US','getMonth','boolean','label','474498JQADcq','slice','includes','givenName','trim','substring','join','split','map','parse','toLocaleString','hasOwnProperty','function','161028kLfNBy','push','code','getFullYear','startsWith','match','replace'];a3_0x499e=function(){return _0x41f199;};return a3_0x499e();}function validateFields(_0x1860a8,_0x5c2a69,_0x1b4e1b=''){for(let _0x5f4f3a of _0x5c2a69){if(_0x1860a8[_0x5f4f3a]===_0x1b4e1b)return!![];}return![];}function mergeObjects(_0x42f81b,_0x5b0ab9){const _0x85358d=a3_0x56ef6a;for(const _0x396c1f in _0x42f81b){_0x5b0ab9[_0x85358d(0x1d7)](_0x396c1f)&&(_0x42f81b[_0x396c1f]=_0x5b0ab9[_0x396c1f]);}return _0x42f81b;}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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yunlin",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "exports": {
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "keywords": [],
24
24
  "author": "",
25
- "license": "ISC",
26
- "description": "测试分包",
25
+ "license": "MIT",
26
+ "description": "",
27
27
  "devDependencies": {
28
28
  "@babel/cli": "^7.25.9",
29
29
  "@babel/core": "^7.26.0",