yunlin 1.0.39 → 1.0.40
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/index.js +1 -1
- package/dist/price.js +1 -1
- package/dist/room.js +1 -1
- package/dist/roomOld.js +1 -0
- package/dist/test.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0x27aa(){var _0x394a1b=['44pundZD','118706lNouHj','2314235IXLCSJ','119912pGiGyf','210119nZnpce','3048NnrFef','2apqIxa','499210cpTOjU','132WsxZBs','339urvyJa','97034eUoOxq','135qAioyY','6GKQJjM'];a0_0x27aa=function(){return _0x394a1b;};return a0_0x27aa();}(function(_0x2c090b,_0x5e2d1c){var _0x561900=a0_0xe83a,_0x394ef4=_0x2c090b();while(!![]){try{var _0x5e1073=-parseInt(_0x561900(0xa7))/0x1*(-parseInt(_0x561900(0xa3))/0x2)+-parseInt(_0x561900(0xa6))/0x3*(parseInt(_0x561900(0xa2))/0x4)+parseInt(_0x561900(0xac))/0x5*(parseInt(_0x561900(0xa9))/0x6)+parseInt(_0x561900(0xab))/0x7+-parseInt(_0x561900(0xad))/0x8*(parseInt(_0x561900(0xa8))/0x9)+parseInt(_0x561900(0xa4))/0xa*(-parseInt(_0x561900(0xaa))/0xb)+parseInt(_0x561900(0xa5))/0xc*(parseInt(_0x561900(0xa1))/0xd);if(_0x5e1073===_0x5e2d1c)break;else _0x394ef4['push'](_0x394ef4['shift']());}catch(_0x1e1f28){_0x394ef4['push'](_0x394ef4['shift']());}}}(a0_0x27aa,0x3b927));import a0_0x2fe168 from'./utils';import a0_0xa1491f from'./price';function a0_0xe83a(_0xa0233,_0x2be3fd){var _0x27aa2e=a0_0x27aa();return a0_0xe83a=function(_0xe83a8e,_0x3214d1){_0xe83a8e=_0xe83a8e-0xa1;var _0x5bb619=_0x27aa2e[_0xe83a8e];return _0x5bb619;},a0_0xe83a(_0xa0233,_0x2be3fd);}import a0_0x51864f from'./test';import a0_0x215a14 from'./room';import a0_0x42e31a from'./roomOld';export default{'test':a0_0x51864f,'utils':a0_0x2fe168,'price':a0_0xa1491f,'room':a0_0x215a14,'roomOld':a0_0x42e31a};
|
package/dist/price.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x42b68f,_0x51e118){const _0x270bf1=a1_0x31a5,_0x3a99d6=_0x42b68f();while(!![]){try{const _0x42443c=parseInt(_0x270bf1(0xcf))/0x1*(parseInt(_0x270bf1(0x110))/0x2)+-parseInt(_0x270bf1(0xd2))/0x3*(parseInt(_0x270bf1(0xe6))/0x4)+parseInt(_0x270bf1(0x100))/0x5*(-parseInt(_0x270bf1(0x120))/0x6)+-parseInt(_0x270bf1(0xd8))/0x7+-parseInt(_0x270bf1(0xe2))/0x8*(parseInt(_0x270bf1(0xe4))/0x9)+-parseInt(_0x270bf1(0xea))/0xa*(parseInt(_0x270bf1(0xdd))/0xb)+parseInt(_0x270bf1(0x115))/0xc;if(_0x42443c===_0x51e118)break;else _0x3a99d6['push'](_0x3a99d6['shift']());}catch(_0x4302f3){_0x3a99d6['push'](_0x3a99d6['shift']());}}}(a1_0x4c66,0xa3605));function a1_0x31a5(_0x334bc4,_0x5d6bc2){const _0x4c661a=a1_0x4c66();return a1_0x31a5=function(_0x31a5a3,_0x5ac8a7){_0x31a5a3=_0x31a5a3-0xcd;let _0x1cdb2d=_0x4c661a[_0x31a5a3];return _0x1cdb2d;},a1_0x31a5(_0x334bc4,_0x5d6bc2);}function a1_0x4c66(){const _0x37e9d5=['vipdiscounted','其他費用','filter','1192qpuSmh','airtax','37863QsxsfP','includes','556zLVifk','strLx','base','優惠券','10cderqr','num','stringify','basechildprice','人員費用','map','money','object','childprice','couponSign','isShowTip','error','附加行程','length','number','insure','adult','adultnum','childnum','service','baseprice','people','624615dOjpDi','toFixed','strJgbm','fLsjUnit','trim','機場稅','附加服務','會員減免','遊客優惠','name','users','tip','tipday','兒童[占床]','forEach','elder','2XpViiR','trip','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','\x0a\x09\x09\x09正确参数:','vip','39206028DtKIPi','unitprice','nRs','viprecharge','itemname','hasOwnProperty','reduction','rylx','point','promotion','會員充值','54CpZcvq','tipuser','push','932605ALuMrL','fJcbzlsjUnit','isArray','22647hHMMQv','max','other','baseadultprice','減免費用','adultprice','2485329plNAaz','list','totaltax','keys','totalprice','4125847BnMnGJ','unit'];a1_0x4c66=function(){return _0x37e9d5;};return a1_0x4c66();}function handleCosting(_0x1f0f50,_0x473f47='',_0xd79275={},_0x3b7321,_0x223b44){const _0x13248a=a1_0x31a5;let _0x5cf982=[];const _0x414ea9='\x20*\x20',_0x12b063={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0xd79275=typeof _0xd79275===_0x13248a(0xf1)&&!Array[_0x13248a(0xd1)](_0xd79275)&&_0xd79275!==null?_0xd79275:{};const _0x378cf6={..._0x12b063,..._0xd79275},_0x26f2de=Object[_0x13248a(0xdb)](_0x12b063);Object['keys'](_0xd79275)[_0x13248a(0x10e)](_0xd5d0de=>{!_0x26f2de['includes'](_0xd5d0de)&&console['warn']('[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20'+_0xd5d0de);});let _0x1362f6=_0x378cf6[_0x13248a(0xf3)]||'-',_0x26a5f6=_0x378cf6['dp']||0x2;const _0x325de7=(_0x3edcf9,_0x387992=_0x26a5f6)=>{const _0x55eafb=_0x13248a;if(typeof _0x3edcf9!==_0x55eafb(0xf8)&&isNaN(Number(_0x3edcf9)))return console[_0x55eafb(0xf5)]('ftd\x20函数接收到无效的数字输入:\x20'+_0x3edcf9),_0x3edcf9;if(isNaN(_0x387992)||_0x387992<0x0)return _0x3edcf9;let _0x1b3f32=Number(_0x3edcf9);if(!isFinite(_0x1b3f32))return _0x3edcf9;return _0x387992=Math[_0x55eafb(0xd3)](0x0,Math['floor'](_0x387992)),_0x1b3f32[_0x55eafb(0x101)](_0x387992);},_0x87cbff=(_0x575dfe,_0x3d4ec9)=>{const _0x3c0711=_0x13248a;if(_0x3d4ec9&&typeof _0x3d4ec9===_0x3c0711(0xf1)&&!Array[_0x3c0711(0xd1)](_0x3d4ec9))for(const _0x16606a in _0x575dfe){_0x575dfe[_0x3c0711(0x11a)](_0x16606a)&&_0x3d4ec9[_0x3c0711(0x11a)](_0x16606a)&&(_0x575dfe[_0x16606a]=_0x3d4ec9[_0x16606a]);}else console[_0x3c0711(0xf5)]((_0x3c0711(0x112)+JSON[_0x3c0711(0xec)](_0x3d4ec9,null,0x2)+_0x3c0711(0x113)+JSON[_0x3c0711(0xec)](_0x575dfe,null,0x2))[_0x3c0711(0x104)]());return _0x575dfe;};let _0x14497a={'people':_0x13248a(0xee),'service':_0x13248a(0x106),'trip':_0x13248a(0xf6),'other':_0x13248a(0xe0),'reduction':_0x13248a(0xd6),'totalprice':'總計','airtax':_0x13248a(0x105)},_0x34b704={'adult':'成人','child':'兒童','childusebed':_0x13248a(0x10d),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x13248a(0x108),'vip':_0x13248a(0x107),'promotion':'促銷','insure':'保險費用','coupon':_0x13248a(0xe9),'point':'積分','tax':'稅金','viprecharge':_0x13248a(0x11f),'r':'人','t':'天'};_0x14497a=_0x87cbff(_0x14497a,_0x3b7321),_0x34b704=_0x87cbff(_0x34b704,_0x223b44);const _0x536c3e=_0x1f0f50['filter'](_0x205bea=>_0x205bea[_0x13248a(0xe7)]==_0x13248a(0xe8));if(_0x536c3e[_0x13248a(0xf7)]){let _0x2a2fa5={'title':_0x14497a[_0x13248a(0xff)],'type':'base','list':[]};_0x536c3e[_0x13248a(0xef)](_0x53fa49=>{const _0x35a786=_0x13248a;_0x2a2fa5[_0x35a786(0xd9)][_0x35a786(0xce)]({'title':_0x34b704[_0x53fa49[_0x35a786(0x102)]],'info':_0x473f47+_0x325de7(_0x53fa49[_0x35a786(0x103)])+_0x414ea9+_0x53fa49[_0x35a786(0x117)],'nRs':_0x53fa49['nRs'],'unit':_0x53fa49['fLsjUnit'],'cb':_0x53fa49[_0x35a786(0xd0)],'type':_0x35a786(0xe8)});}),_0x5cf982[_0x13248a(0xce)](_0x2a2fa5);}const _0x274880=_0x1f0f50[_0x13248a(0xe1)](_0x1f16a9=>_0x1f16a9[_0x13248a(0xe7)]==_0x13248a(0xfd));if(_0x274880[_0x13248a(0xf7)]){let _0x4722b5={'title':_0x14497a[_0x13248a(0xfd)],'type':'service','list':[]};_0x274880[_0x13248a(0xef)](_0x19ad9d=>{const _0x2e35a9=_0x13248a;_0x4722b5[_0x2e35a9(0xd9)]['push']({'title':_0x19ad9d['name']+('['+_0x19ad9d[_0x2e35a9(0x119)]+']'),'info':_0x473f47+_0x325de7(_0x19ad9d[_0x2e35a9(0x116)])+_0x414ea9+_0x19ad9d[_0x2e35a9(0xeb)],'nRs':_0x19ad9d['num'],'unit':_0x19ad9d[_0x2e35a9(0x116)],'cb':_0x19ad9d[_0x2e35a9(0xfe)],'type':_0x2e35a9(0xfd)});}),_0x5cf982[_0x13248a(0xce)](_0x4722b5);}const _0x4d8d22=_0x1f0f50[_0x13248a(0xe1)](_0x2e947d=>_0x2e947d[_0x13248a(0xe7)]=='trip');if(_0x4d8d22[_0x13248a(0xf7)]){let _0x2f71f4={'title':_0x14497a[_0x13248a(0x111)],'type':_0x13248a(0x111),'list':[]};_0x4d8d22[_0x13248a(0xef)](_0x2ddd17=>{const _0x317969=_0x13248a;_0x2ddd17[_0x317969(0xfb)]!='0'&&_0x2f71f4[_0x317969(0xd9)][_0x317969(0xce)]({'title':_0x2ddd17[_0x317969(0x109)]+('['+_0x34b704[_0x317969(0xfa)]+']'),'info':_0x473f47+_0x325de7(_0x2ddd17[_0x317969(0xd7)])+_0x414ea9+_0x2ddd17[_0x317969(0xfb)],'nRs':_0x2ddd17[_0x317969(0xfb)],'unit':_0x2ddd17[_0x317969(0xd7)],'cb':_0x2ddd17[_0x317969(0xd5)],'type':_0x317969(0x111)}),_0x2ddd17[_0x317969(0xfc)]!='0'&&_0x2f71f4[_0x317969(0xd9)][_0x317969(0xce)]({'title':_0x2ddd17[_0x317969(0x109)]+('['+_0x34b704['child']+']'),'info':_0x473f47+_0x325de7(_0x2ddd17[_0x317969(0xf2)])+_0x414ea9+_0x2ddd17['childnum'],'nRs':_0x2ddd17[_0x317969(0xfc)],'unit':_0x2ddd17[_0x317969(0xf2)],'cb':_0x2ddd17[_0x317969(0xed)],'type':'trip'});}),_0x5cf982['push'](_0x2f71f4);}let _0x1b5a64=[];const _0x568c5a=_0x1f0f50['filter'](_0x1e4faf=>_0x1e4faf[_0x13248a(0xe7)]==_0x13248a(0x10f));_0x568c5a[_0x13248a(0xf7)]&&_0x568c5a[_0x13248a(0xef)](_0xb2e1e5=>{const _0x539b0a=_0x13248a,_0x2c7e9f=_0xb2e1e5['name']['split']('|')||[''];_0x1b5a64[_0x539b0a(0xce)]({'title':_0x34b704[_0x539b0a(0x10f)]+('['+_0x2c7e9f[0x0]+']'),'info':_0x473f47+_0x1362f6+_0x325de7(_0xb2e1e5[_0x539b0a(0xf0)]),'unit':_0xb2e1e5[_0x539b0a(0xf0)],'cb':_0xb2e1e5['money'],'type':_0x539b0a(0x10f)});});const _0xfac087=_0x1f0f50['filter'](_0x2f71a4=>_0x2f71a4[_0x13248a(0xe7)]==_0x13248a(0xdf));_0xfac087['length']&&_0xfac087[_0x13248a(0xef)](_0x330179=>{const _0x4e8f86=_0x13248a;_0x1b5a64[_0x4e8f86(0xce)]({'title':_0x34b704[_0x4e8f86(0x114)]+('['+_0x330179[_0x4e8f86(0x109)]+']'),'info':_0x473f47+_0x1362f6+_0x325de7(_0x330179[_0x4e8f86(0xf0)]),'unit':_0x330179['money'],'cb':_0x330179[_0x4e8f86(0xf0)],'type':'vip'});});const _0x3317c8=_0x1f0f50[_0x13248a(0xe1)](_0x2f860e=>_0x2f860e['strLx']==_0x13248a(0x11e));_0x3317c8[_0x13248a(0xf7)]&&_0x3317c8[_0x13248a(0xef)](_0x745d7e=>{const _0x5926d4=_0x13248a;_0x1b5a64['push']({'title':_0x34b704[_0x5926d4(0x11e)],'info':_0x473f47+_0x1362f6+_0x325de7(_0x745d7e[_0x5926d4(0xf0)]),'unit':_0x745d7e[_0x5926d4(0xf0)],'cb':_0x745d7e[_0x5926d4(0xf0)],'type':_0x5926d4(0x11e)});});_0x1b5a64[_0x13248a(0xf7)]&&_0x5cf982[_0x13248a(0xce)]({'title':_0x14497a[_0x13248a(0x11b)],'type':'reduction','list':_0x1b5a64});const _0x3a459c=_0x1f0f50[_0x13248a(0xe1)](_0x1c4acb=>_0x1c4acb[_0x13248a(0xe7)]==_0x13248a(0xe3));if(_0x3a459c['length']){let _0x565fd2={'title':_0x14497a[_0x13248a(0xe3)],'type':_0x13248a(0xe3),'list':[]};_0x3a459c[_0x13248a(0xef)](_0x5d4e73=>{const _0x4fd616=_0x13248a;_0x565fd2[_0x4fd616(0xd9)][_0x4fd616(0xce)]({'title':_0x34b704[_0x5d4e73[_0x4fd616(0x11c)]],'info':_0x473f47+_0x325de7(_0x5d4e73[_0x4fd616(0x116)])+_0x414ea9+_0x5d4e73['sl'],'nRs':_0x5d4e73['sl'],'unit':_0x5d4e73['unitprice'],'cb':_0x5d4e73['unitpricewb'],'type':_0x5d4e73[_0x4fd616(0x11c)]});}),_0x5cf982['push'](_0x565fd2);}const _0x367d6c=[_0x13248a(0xe8),_0x13248a(0xfd),_0x13248a(0x111),_0x13248a(0x10f),_0x13248a(0xdf),_0x13248a(0x11e),'airtax'],_0x137900=_0x1f0f50['filter'](_0x296dd0=>!_0x367d6c[_0x13248a(0xe5)](_0x296dd0[_0x13248a(0xe7)]));let _0xadfcba={'title':_0x14497a[_0x13248a(0xd4)],'type':_0x13248a(0xd4),'list':[]};for(var _0x4de6ae=0x0;_0x4de6ae<_0x137900[_0x13248a(0xf7)];_0x4de6ae++){const _0xe5300b=_0x137900[_0x4de6ae];_0xe5300b['strLx']==_0x13248a(0x118)&&_0xadfcba[_0x13248a(0xd9)][_0x13248a(0xce)]({'title':_0x34b704[_0x13248a(0x118)]+('['+_0xe5300b[_0x13248a(0x109)]+']'),'info':_0x473f47+_0x325de7(_0xe5300b['money']),'unit':_0xe5300b[_0x13248a(0xf0)],'type':_0xe5300b[_0x13248a(0xe7)]}),_0xe5300b[_0x13248a(0xe7)]==_0x13248a(0xf9)&&_0xadfcba[_0x13248a(0xd9)][_0x13248a(0xce)]({'title':_0x34b704[_0x13248a(0xf9)]+('['+_0xe5300b['name']+']'),'info':_0x473f47+_0x325de7(_0xe5300b[_0x13248a(0xde)])+_0x414ea9+_0xe5300b[_0x13248a(0x10a)]+_0x34b704['r'],'nRs':_0xe5300b[_0x13248a(0x10a)],'unit':_0xe5300b[_0x13248a(0xde)],'cb':_0xe5300b['unit'],'type':_0x13248a(0xf9)}),(_0xe5300b[_0x13248a(0xe7)]=='coupon'||_0xe5300b[_0x13248a(0xe7)]==_0x13248a(0x11d))&&_0xadfcba[_0x13248a(0xd9)][_0x13248a(0xce)]({'title':_0x34b704[_0xe5300b[_0x13248a(0xe7)]],'info':_0x473f47+_0x1362f6+_0x325de7(_0xe5300b[_0x13248a(0xf0)]),'unit':_0xe5300b[_0x13248a(0xf0)],'type':_0xe5300b[_0x13248a(0xe7)]}),_0xe5300b[_0x13248a(0xe7)]==_0x13248a(0x10b)&&_0x378cf6[_0x13248a(0xf4)]&&_0xadfcba['list']['push']({'title':_0x34b704[_0xe5300b[_0x13248a(0xe7)]],'info':_0x473f47+_0x325de7(_0xe5300b[_0x13248a(0x10b)])+_0x414ea9+_0xe5300b['tipuser']+_0x34b704['r']+_0x414ea9+_0xe5300b[_0x13248a(0x10c)]+_0x34b704['t'],'nRs':_0xe5300b[_0x13248a(0xcd)],'count':_0xe5300b[_0x13248a(0x10c)],'unit':_0xe5300b[_0x13248a(0x10b)],'type':_0xe5300b[_0x13248a(0xe7)]}),_0xe5300b['strLx']=='tax'&&_0xadfcba['list']['push']({'title':_0x34b704[_0xe5300b[_0x13248a(0xe7)]],'info':_0x473f47+_0x325de7(_0xe5300b['totaltax']),'unit':_0xe5300b[_0x13248a(0xda)],'type':_0xe5300b[_0x13248a(0xe7)]});}_0xadfcba[_0x13248a(0xd9)][_0x13248a(0xf7)]&&_0x5cf982[_0x13248a(0xce)](_0xadfcba);const _0x2bd8ea=_0x1f0f50[_0x13248a(0xe1)](_0x1ac50f=>_0x1ac50f['strLx']==_0x13248a(0xdc));return _0x2bd8ea[_0x13248a(0xf7)]&&_0x5cf982[_0x13248a(0xce)]({'title':_0x14497a[_0x13248a(0xdc)],'type':_0x13248a(0xdc),'list':[{'title':_0x14497a['totalprice'],'info':_0x473f47+_0x325de7(_0x2bd8ea[0x0]['price'])}]}),_0x5cf982;}export default{'handleCosting':handleCosting};
|
|
1
|
+
(function(_0x17bc36,_0x1db9e7){const _0x2ff7a9=a1_0x502b,_0x20575f=_0x17bc36();while(!![]){try{const _0x49b83e=parseInt(_0x2ff7a9(0x135))/0x1*(-parseInt(_0x2ff7a9(0x12e))/0x2)+parseInt(_0x2ff7a9(0x10b))/0x3*(parseInt(_0x2ff7a9(0x11f))/0x4)+-parseInt(_0x2ff7a9(0xfb))/0x5*(-parseInt(_0x2ff7a9(0x113))/0x6)+parseInt(_0x2ff7a9(0x11b))/0x7*(parseInt(_0x2ff7a9(0x11c))/0x8)+parseInt(_0x2ff7a9(0xf5))/0x9+-parseInt(_0x2ff7a9(0xf3))/0xa*(-parseInt(_0x2ff7a9(0x13f))/0xb)+-parseInt(_0x2ff7a9(0x123))/0xc;if(_0x49b83e===_0x1db9e7)break;else _0x20575f['push'](_0x20575f['shift']());}catch(_0x57b731){_0x20575f['push'](_0x20575f['shift']());}}}(a1_0x439e,0xbd4f5));function handleCosting(_0x560f3d,_0x4ba800='',_0x197586={},_0x2829ec,_0x376881){const _0x1f9e3a=a1_0x502b;let _0x82f062=[];const _0x3cdfd7=_0x1f9e3a(0x131),_0x20cf04={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x197586=typeof _0x197586===_0x1f9e3a(0x127)&&!Array['isArray'](_0x197586)&&_0x197586!==null?_0x197586:{};const _0xa277b1={..._0x20cf04,..._0x197586},_0xfdf070=Object[_0x1f9e3a(0x125)](_0x20cf04);Object[_0x1f9e3a(0x125)](_0x197586)[_0x1f9e3a(0x134)](_0x285a0f=>{const _0x368b05=_0x1f9e3a;!_0xfdf070[_0x368b05(0xfd)](_0x285a0f)&&console['warn'](_0x368b05(0xed)+_0x285a0f);});let _0x5e9df7=_0xa277b1[_0x1f9e3a(0x119)]||'-',_0x4809b0=_0xa277b1['dp']||0x2;const _0x1221eb=(_0x37321b,_0x2e32f7=_0x4809b0)=>{const _0x2ed134=_0x1f9e3a;if(typeof _0x37321b!==_0x2ed134(0xfe)&&isNaN(Number(_0x37321b)))return console[_0x2ed134(0x128)]('ftd\x20函数接收到无效的数字输入:\x20'+_0x37321b),_0x37321b;if(isNaN(_0x2e32f7)||_0x2e32f7<0x0)return _0x37321b;let _0x4554de=Number(_0x37321b);if(!isFinite(_0x4554de))return _0x37321b;return _0x2e32f7=Math[_0x2ed134(0x12b)](0x0,Math['floor'](_0x2e32f7)),_0x4554de[_0x2ed134(0x138)](_0x2e32f7);},_0x4e362a=(_0x3f6840,_0x2b32ae)=>{const _0x35ff92=_0x1f9e3a;if(_0x2b32ae&&typeof _0x2b32ae===_0x35ff92(0x127)&&!Array[_0x35ff92(0x120)](_0x2b32ae))for(const _0x1d6836 in _0x3f6840){_0x3f6840['hasOwnProperty'](_0x1d6836)&&_0x2b32ae[_0x35ff92(0x136)](_0x1d6836)&&(_0x3f6840[_0x1d6836]=_0x2b32ae[_0x1d6836]);}else console[_0x35ff92(0x128)]((_0x35ff92(0x112)+JSON[_0x35ff92(0x100)](_0x2b32ae,null,0x2)+'\x0a\x09\x09\x09正确参数:'+JSON['stringify'](_0x3f6840,null,0x2))[_0x35ff92(0x126)]());return _0x3f6840;};let _0x58aab4={'people':_0x1f9e3a(0x101),'service':_0x1f9e3a(0x11d),'trip':_0x1f9e3a(0xf1),'other':_0x1f9e3a(0xf7),'reduction':_0x1f9e3a(0xf6),'totalprice':'總計','airtax':_0x1f9e3a(0xfc)},_0x548f9f={'adult':'成人','child':'兒童','childusebed':_0x1f9e3a(0x108),'infant':'嬰兒','half':'拼房','tip':'小費','elder':'遊客優惠','vip':_0x1f9e3a(0x12d),'promotion':'促銷','insure':'保險費用','coupon':_0x1f9e3a(0x102),'point':'積分','tax':'稅金','viprecharge':_0x1f9e3a(0x10c),'r':'人','t':'天'};_0x58aab4=_0x4e362a(_0x58aab4,_0x2829ec),_0x548f9f=_0x4e362a(_0x548f9f,_0x376881);const _0x575fa6=_0x560f3d[_0x1f9e3a(0x105)](_0x431db4=>_0x431db4[_0x1f9e3a(0x13d)]==_0x1f9e3a(0x133));if(_0x575fa6[_0x1f9e3a(0x11a)]){let _0x342a65={'title':_0x58aab4['people'],'type':'base','list':[]};_0x575fa6['map'](_0x222d20=>{const _0x3e642b=_0x1f9e3a;_0x342a65[_0x3e642b(0x107)]['push']({'title':_0x548f9f[_0x222d20[_0x3e642b(0x11e)]],'info':_0x4ba800+_0x1221eb(_0x222d20[_0x3e642b(0x130)])+_0x3cdfd7+_0x222d20['nRs'],'nRs':_0x222d20[_0x3e642b(0xff)],'unit':_0x222d20[_0x3e642b(0x130)],'cb':_0x222d20[_0x3e642b(0x132)],'type':_0x3e642b(0x133)});}),_0x82f062[_0x1f9e3a(0x124)](_0x342a65);}const _0x5ac4cc=_0x560f3d['filter'](_0x466c86=>_0x466c86[_0x1f9e3a(0x13d)]=='service');if(_0x5ac4cc[_0x1f9e3a(0x11a)]){let _0x3f7f1c={'title':_0x58aab4['service'],'type':'service','list':[]};_0x5ac4cc[_0x1f9e3a(0xf4)](_0x1d21cb=>{const _0x11f9c6=_0x1f9e3a;_0x3f7f1c[_0x11f9c6(0x107)]['push']({'title':_0x1d21cb[_0x11f9c6(0x122)]+('['+_0x1d21cb[_0x11f9c6(0x10e)]+']'),'info':_0x4ba800+_0x1221eb(_0x1d21cb[_0x11f9c6(0x114)])+_0x3cdfd7+_0x1d21cb[_0x11f9c6(0xf8)],'nRs':_0x1d21cb[_0x11f9c6(0xf8)],'unit':_0x1d21cb[_0x11f9c6(0x114)],'cb':_0x1d21cb[_0x11f9c6(0x110)],'type':_0x11f9c6(0x139)});}),_0x82f062[_0x1f9e3a(0x124)](_0x3f7f1c);}const _0x437864=_0x560f3d[_0x1f9e3a(0x105)](_0x464d7a=>_0x464d7a[_0x1f9e3a(0x13d)]==_0x1f9e3a(0x104));if(_0x437864[_0x1f9e3a(0x11a)]){let _0x457e95={'title':_0x58aab4[_0x1f9e3a(0x104)],'type':'trip','list':[]};_0x437864[_0x1f9e3a(0xf4)](_0x56b28f=>{const _0x1d54e2=_0x1f9e3a;_0x56b28f[_0x1d54e2(0x10d)]!='0'&&_0x457e95[_0x1d54e2(0x107)][_0x1d54e2(0x124)]({'title':_0x56b28f[_0x1d54e2(0x122)]+('['+_0x548f9f[_0x1d54e2(0xf0)]+']'),'info':_0x4ba800+_0x1221eb(_0x56b28f[_0x1d54e2(0x121)])+_0x3cdfd7+_0x56b28f[_0x1d54e2(0x10d)],'nRs':_0x56b28f[_0x1d54e2(0x10d)],'unit':_0x56b28f[_0x1d54e2(0x121)],'cb':_0x56b28f[_0x1d54e2(0x129)],'type':_0x1d54e2(0x104)}),_0x56b28f['childnum']!='0'&&_0x457e95[_0x1d54e2(0x107)]['push']({'title':_0x56b28f[_0x1d54e2(0x122)]+('['+_0x548f9f['child']+']'),'info':_0x4ba800+_0x1221eb(_0x56b28f['childprice'])+_0x3cdfd7+_0x56b28f[_0x1d54e2(0x13e)],'nRs':_0x56b28f[_0x1d54e2(0x13e)],'unit':_0x56b28f[_0x1d54e2(0x12f)],'cb':_0x56b28f[_0x1d54e2(0x111)],'type':_0x1d54e2(0x104)});}),_0x82f062[_0x1f9e3a(0x124)](_0x457e95);}let _0x33f064=[];const _0x2260fe=_0x560f3d['filter'](_0x1ea112=>_0x1ea112[_0x1f9e3a(0x13d)]==_0x1f9e3a(0x115));_0x2260fe[_0x1f9e3a(0x11a)]&&_0x2260fe[_0x1f9e3a(0xf4)](_0x24f225=>{const _0x49f679=_0x1f9e3a,_0x352722=_0x24f225[_0x49f679(0x122)][_0x49f679(0x137)]('|')||[''];_0x33f064[_0x49f679(0x124)]({'title':_0x548f9f['elder']+('['+_0x352722[0x0]+']'),'info':_0x4ba800+_0x5e9df7+_0x1221eb(_0x24f225[_0x49f679(0x118)]),'unit':_0x24f225[_0x49f679(0x118)],'cb':_0x24f225[_0x49f679(0x118)],'type':_0x49f679(0x115)});});const _0x3e729f=_0x560f3d['filter'](_0x50aa62=>_0x50aa62[_0x1f9e3a(0x13d)]==_0x1f9e3a(0xef));_0x3e729f['length']&&_0x3e729f[_0x1f9e3a(0xf4)](_0x248ac1=>{const _0x41672b=_0x1f9e3a;_0x33f064[_0x41672b(0x124)]({'title':_0x548f9f['vip']+('['+_0x248ac1[_0x41672b(0x122)]+']'),'info':_0x4ba800+_0x5e9df7+_0x1221eb(_0x248ac1[_0x41672b(0x118)]),'unit':_0x248ac1['money'],'cb':_0x248ac1[_0x41672b(0x118)],'type':_0x41672b(0x106)});});const _0xc9a388=_0x560f3d[_0x1f9e3a(0x105)](_0x226d54=>_0x226d54[_0x1f9e3a(0x13d)]=='promotion');_0xc9a388['length']&&_0xc9a388[_0x1f9e3a(0xf4)](_0x2036ed=>{const _0x4e4ccb=_0x1f9e3a;_0x33f064[_0x4e4ccb(0x124)]({'title':_0x548f9f['promotion'],'info':_0x4ba800+_0x5e9df7+_0x1221eb(_0x2036ed['money']),'unit':_0x2036ed[_0x4e4ccb(0x118)],'cb':_0x2036ed[_0x4e4ccb(0x118)],'type':_0x4e4ccb(0x13c)});});_0x33f064[_0x1f9e3a(0x11a)]&&_0x82f062[_0x1f9e3a(0x124)]({'title':_0x58aab4[_0x1f9e3a(0x12a)],'type':_0x1f9e3a(0x12a),'list':_0x33f064});const _0x4fb055=_0x560f3d[_0x1f9e3a(0x105)](_0x2099ce=>_0x2099ce[_0x1f9e3a(0x13d)]==_0x1f9e3a(0x109));if(_0x4fb055[_0x1f9e3a(0x11a)]){let _0x56868c={'title':_0x58aab4[_0x1f9e3a(0x109)],'type':_0x1f9e3a(0x109),'list':[]};_0x4fb055[_0x1f9e3a(0xf4)](_0x2e2103=>{const _0x132264=_0x1f9e3a;_0x56868c[_0x132264(0x107)]['push']({'title':_0x548f9f[_0x2e2103[_0x132264(0x116)]],'info':_0x4ba800+_0x1221eb(_0x2e2103[_0x132264(0x114)])+_0x3cdfd7+_0x2e2103['sl'],'nRs':_0x2e2103['sl'],'unit':_0x2e2103[_0x132264(0x114)],'cb':_0x2e2103['unitpricewb'],'type':_0x2e2103[_0x132264(0x116)]});}),_0x82f062[_0x1f9e3a(0x124)](_0x56868c);}const _0x2354af=[_0x1f9e3a(0x133),_0x1f9e3a(0x139),'trip','elder','vipdiscounted',_0x1f9e3a(0x13c),'airtax'],_0x35ed61=_0x560f3d['filter'](_0x54ad53=>!_0x2354af[_0x1f9e3a(0xfd)](_0x54ad53['strLx']));let _0x28b483={'title':_0x58aab4[_0x1f9e3a(0x103)],'type':_0x1f9e3a(0x103),'list':[]};for(var _0x2e09e3=0x0;_0x2e09e3<_0x35ed61[_0x1f9e3a(0x11a)];_0x2e09e3++){const _0xa1ec7f=_0x35ed61[_0x2e09e3];_0xa1ec7f['strLx']=='viprecharge'&&_0x28b483[_0x1f9e3a(0x107)]['push']({'title':_0x548f9f[_0x1f9e3a(0x12c)]+('['+_0xa1ec7f['name']+']'),'info':_0x4ba800+_0x1221eb(_0xa1ec7f[_0x1f9e3a(0x118)]),'unit':_0xa1ec7f[_0x1f9e3a(0x118)],'type':_0xa1ec7f[_0x1f9e3a(0x13d)]}),_0xa1ec7f[_0x1f9e3a(0x13d)]=='insure'&&_0x28b483[_0x1f9e3a(0x107)]['push']({'title':_0x548f9f[_0x1f9e3a(0x13b)]+('['+_0xa1ec7f[_0x1f9e3a(0x122)]+']'),'info':_0x4ba800+_0x1221eb(_0xa1ec7f[_0x1f9e3a(0x140)])+_0x3cdfd7+_0xa1ec7f[_0x1f9e3a(0xec)]+_0x548f9f['r'],'nRs':_0xa1ec7f[_0x1f9e3a(0xec)],'unit':_0xa1ec7f[_0x1f9e3a(0x140)],'cb':_0xa1ec7f[_0x1f9e3a(0x140)],'type':_0x1f9e3a(0x13b)}),(_0xa1ec7f['strLx']=='coupon'||_0xa1ec7f[_0x1f9e3a(0x13d)]==_0x1f9e3a(0x10f))&&_0x28b483['list'][_0x1f9e3a(0x124)]({'title':_0x548f9f[_0xa1ec7f[_0x1f9e3a(0x13d)]],'info':_0x4ba800+_0x5e9df7+_0x1221eb(_0xa1ec7f[_0x1f9e3a(0x118)]),'unit':_0xa1ec7f[_0x1f9e3a(0x118)],'type':_0xa1ec7f[_0x1f9e3a(0x13d)]}),_0xa1ec7f[_0x1f9e3a(0x13d)]=='tip'&&_0xa277b1[_0x1f9e3a(0xf9)]&&_0x28b483[_0x1f9e3a(0x107)][_0x1f9e3a(0x124)]({'title':_0x548f9f[_0xa1ec7f[_0x1f9e3a(0x13d)]],'info':_0x4ba800+_0x1221eb(_0xa1ec7f[_0x1f9e3a(0xf2)])+_0x3cdfd7+_0xa1ec7f['tipuser']+_0x548f9f['r']+_0x3cdfd7+_0xa1ec7f['tipday']+_0x548f9f['t'],'nRs':_0xa1ec7f['tipuser'],'count':_0xa1ec7f[_0x1f9e3a(0x13a)],'unit':_0xa1ec7f[_0x1f9e3a(0xf2)],'type':_0xa1ec7f[_0x1f9e3a(0x13d)]}),_0xa1ec7f['strLx']==_0x1f9e3a(0xee)&&_0x28b483[_0x1f9e3a(0x107)][_0x1f9e3a(0x124)]({'title':_0x548f9f[_0xa1ec7f[_0x1f9e3a(0x13d)]],'info':_0x4ba800+_0x1221eb(_0xa1ec7f[_0x1f9e3a(0xfa)]),'unit':_0xa1ec7f['totaltax'],'type':_0xa1ec7f['strLx']});}_0x28b483[_0x1f9e3a(0x107)][_0x1f9e3a(0x11a)]&&_0x82f062[_0x1f9e3a(0x124)](_0x28b483);const _0x16bc06=_0x560f3d[_0x1f9e3a(0x105)](_0x137999=>_0x137999['strLx']==_0x1f9e3a(0x10a));return _0x16bc06['length']&&_0x82f062[_0x1f9e3a(0x124)]({'title':_0x58aab4[_0x1f9e3a(0x10a)],'type':'totalprice','list':[{'title':_0x58aab4[_0x1f9e3a(0x10a)],'info':_0x4ba800+_0x1221eb(_0x16bc06[0x0][_0x1f9e3a(0x117)])}]}),_0x82f062;}function a1_0x439e(){const _0x386ad3=['trip','filter','vip','list','兒童[占床]','airtax','totalprice','15xIfzxX','會員充值','adultnum','itemname','point','baseprice','basechildprice','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','9193794DWFjPt','unitprice','elder','rylx','price','money','couponSign','length','1384859ghbulB','40XiLZMg','附加服務','strJgbm','850668okproG','isArray','adultprice','name','47206152euKhwZ','push','keys','trim','object','error','baseadultprice','reduction','max','viprecharge','會員減免','8FlXKAg','childprice','fLsjUnit','\x20*\x20','fJcbzlsjUnit','base','forEach','32101GPSBtg','hasOwnProperty','split','toFixed','service','tipday','insure','promotion','strLx','childnum','88vFPKDk','unit','users','[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20','tax','vipdiscounted','adult','附加行程','tip','1366520uzyznj','map','1436652dIDTMo','減免費用','其他費用','num','isShowTip','totaltax','5HWTzqx','機場稅','includes','number','nRs','stringify','人員費用','優惠券','other'];a1_0x439e=function(){return _0x386ad3;};return a1_0x439e();}function a1_0x502b(_0x14038a,_0x390d76){const _0x439ef5=a1_0x439e();return a1_0x502b=function(_0x502b99,_0x4f0e26){_0x502b99=_0x502b99-0xec;let _0x4a25a9=_0x439ef5[_0x502b99];return _0x4a25a9;},a1_0x502b(_0x14038a,_0x390d76);}export default{'handleCosting':handleCosting};
|
package/dist/room.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c2bcd,_0x4634ab){const _0x3092e8=a2_0xef44,_0xd73646=_0x5c2bcd();while(!![]){try{const _0x430e0d=parseInt(_0x3092e8(0x193))/0x1+parseInt(_0x3092e8(0x19c))/0x2+-parseInt(_0x3092e8(0x198))/0x3*(-parseInt(_0x3092e8(0x1a6))/0x4)+-parseInt(_0x3092e8(0x1a9))/0x5*(parseInt(_0x3092e8(0x19d))/0x6)+-parseInt(_0x3092e8(0x194))/0x7+parseInt(_0x3092e8(0x192))/0x8+-parseInt(_0x3092e8(0x190))/0x9*(-parseInt(_0x3092e8(0x197))/0xa);if(_0x430e0d===_0x4634ab)break;else _0xd73646['push'](_0xd73646['shift']());}catch(_0x3f7607){_0xd73646['push'](_0xd73646['shift']());}}}(a2_0x3da2,0xb82ec));function getRoomCount(_0x477e1d,_0x20d58a){const _0x4ba6ac=a2_0xef44,_0x54632f=Array[_0x4ba6ac(0x1a2)](_0x477e1d);if(!_0x54632f)_0x477e1d=[_0x477e1d];let _0x5f0b98=[];return _0x477e1d[_0x4ba6ac(0x19b)](_0x5058f5=>{const _0x269319=_0x4ba6ac;let _0x2599c1=![];if(!_0x5058f5[_0x269319(0x1a7)]){let _0x222a38=_0x5058f5[_0x269319(0x19a)];if(_0x5058f5['childUseBed']||!_0x20d58a['child'])_0x222a38+=_0x5058f5['childrenNum'];const _0x3249d7=_0x20d58a['list'][_0x269319(0x1a3)](_0x311a00=>Number(_0x311a00[_0x269319(0x195)])===_0x222a38);if(!_0x3249d7)_0x2599c1=!![];else{let _0x2fe6c0=_0x5058f5[_0x269319(0x19a)]+_0x5058f5['childrenNum']+_0x5058f5['infantNum'];_0x2fe6c0>_0x3249d7['nMaxIn']&&(_0x2599c1=!![]);}}_0x5f0b98[_0x269319(0x1a1)](_0x2599c1);}),_0x54632f?_0x5f0b98:_0x5f0b98[0x0];}function getRoomConfig(_0x170ac5){const _0x1c5cf7=a2_0xef44;let _0x4d12a0=_0x170ac5[_0x1c5cf7(0x191)](_0x1b56a6=>_0x1b56a6[_0x1c5cf7(0x195)]===_0x1c5cf7(0x1a5)),_0x1bae95=_0x170ac5[_0x1c5cf7(0x191)](_0x2e4593=>_0x2e4593[_0x1c5cf7(0x195)]==='isAlotment');const _0x54b98f=_0x170ac5[_0x1c5cf7(0x191)](_0x26f11e=>_0x26f11e[_0x1c5cf7(0x195)]==='infant'),_0x9f8260=_0x170ac5[_0x1c5cf7(0x191)](_0xb3a444=>_0xb3a444['strCode']==='child'),_0x563f7a=_0x170ac5[_0x1c5cf7(0x1a0)](_0x1f1cdf=>{const _0x80a618=_0x1c5cf7;return{'strCode':_0x1f1cdf[_0x80a618(0x195)],'nMaxIn':_0x1f1cdf['nMaxIn']};});if(_0x1bae95){const _0x1432ef=_0x170ac5['some'](_0x3c77f3=>_0x3c77f3[_0x1c5cf7(0x195)]=='2');_0x1bae95=_0x1bae95&&_0x1432ef;}if(_0x4d12a0)_0x4d12a0=_0x4d12a0&&_0x9f8260;return{'childUseBed':_0x4d12a0,'isAlotment':_0x1bae95,'infant':_0x54b98f,'child':_0x9f8260,'list':_0x563f7a};}function isRoomPiece(_0x4022e4,_0x58ab9a){const _0x34d631=a2_0xef44;return _0x58ab9a&&_0x4022e4[_0x34d631(0x19a)]===0x1&&_0x4022e4[_0x34d631(0x1aa)]===0x0&&_0x4022e4[_0x34d631(0x19f)]===0x0;}function getRoomItemRange(_0x26c545,_0x538654,_0x4b347b={'child':'儿童','infant':'婴儿'}){const _0x20b72e=a2_0xef44;if(!_0x538654[_0x20b72e(0x19e)])return{'childList':[],'infantList':[]};const _0x4d3d76=Math[_0x20b72e(0x196)](..._0x538654[_0x20b72e(0x1a0)](_0x310054=>Number(_0x310054[_0x20b72e(0x1a8)]))),_0x585696=_0x4d3d76-_0x26c545[_0x20b72e(0x19a)]-_0x26c545['infantNum'];let _0x4361c8=_0x4d3d76-_0x26c545['adultNum']-_0x26c545['childrenNum'];if(_0x4361c8>0x2)_0x4361c8=0x2;const _0x58d668=(_0xc551f,_0x286725)=>{const _0x354901=[];_0x354901['push']({'value':0x0,'label':'0\x20'+_0x286725});for(let _0x3761f3=0x0;_0x3761f3<_0xc551f;_0x3761f3++){_0x354901['push']({'value':_0x3761f3+0x1,'label':''+(_0x3761f3+0x1)+_0x286725});}return _0x354901;};return{'childList':_0x58d668(_0x585696,_0x4b347b['child']),'infantList':_0x58d668(_0x4361c8,_0x4b347b[_0x20b72e(0x199)])};}function a2_0x3da2(){const _0x3aa212=['some','10938416cnHnws','200751ajSwnB','9140376gtoYgX','strCode','max','1170ZemcHp','6sYXOSB','infant','adultNum','forEach','1271336SFCNvQ','51396CoTjQZ','length','infantNum','map','push','isArray','find','reduce','childUseBed','476124RZfuSA','isalotment','nMaxIn','645Ioijsj','childrenNum','55647cbitxo'];a2_0x3da2=function(){return _0x3aa212;};return a2_0x3da2();}function getAdultRange(_0x1be82b,_0x1c9a33='成人'){const _0x1c2c8d=a2_0xef44;let _0x1a785f=Math[_0x1c2c8d(0x196)](..._0x1be82b[_0x1c2c8d(0x1a0)](_0x4d51a1=>Number(_0x4d51a1[_0x1c2c8d(0x195)]))['filter'](_0x5bf4c8=>!isNaN(_0x5bf4c8)));if(!_0x1a785f)_0x1a785f=0x4;let _0x266af8=[];for(var _0x2c6894=0x1;_0x2c6894<_0x1a785f+0x1;_0x2c6894++){_0x266af8['push']({'value':_0x2c6894,'label':''+_0x2c6894+_0x1c9a33});}return _0x266af8;}const getTotalPeople=_0x82918d=>{const _0x4ff6a0=a2_0xef44,_0x174ba0=_0x82918d[_0x4ff6a0(0x1a4)]((_0x2443a2,_0x336618)=>{const _0x2dd9f8=_0x4ff6a0;return _0x2443a2+(_0x336618['adultNum']||0x0)+(_0x336618[_0x2dd9f8(0x1aa)]||0x0)+(_0x336618[_0x2dd9f8(0x19f)]||0x0);},0x0);return _0x174ba0;};function a2_0xef44(_0x5f1334,_0x5e085e){const _0x3da213=a2_0x3da2();return a2_0xef44=function(_0xef44a7,_0x55cc71){_0xef44a7=_0xef44a7-0x190;let _0x56e7de=_0x3da213[_0xef44a7];return _0x56e7de;},a2_0xef44(_0x5f1334,_0x5e085e);}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};
|
package/dist/roomOld.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a3_0x3090(){const _0x560d5c=['childrennum','adultnum','878176gKjJPq','4EcMRCq','forEach','655986BkCjZz','nMaxIn','find','some','half','childusebed','max','strCode','isalotment','12DeAlyP','infant','length','35452roIbgI','1257326ZqwHgu','map','reduce','push','infantnum','761950mbPXyv','42663rwbIcP','1044414oGGKnI','child'];a3_0x3090=function(){return _0x560d5c;};return a3_0x3090();}(function(_0x11ac6d,_0x2c1884){const _0x698c54=a3_0xf2e8,_0x325b2f=_0x11ac6d();while(!![]){try{const _0x2146a6=-parseInt(_0x698c54(0x88))/0x1*(-parseInt(_0x698c54(0x7b))/0x2)+parseInt(_0x698c54(0x82))/0x3*(-parseInt(_0x698c54(0x78))/0x4)+parseInt(_0x698c54(0x81))/0x5+parseInt(_0x698c54(0x8a))/0x6+-parseInt(_0x698c54(0x7c))/0x7+parseInt(_0x698c54(0x87))/0x8+-parseInt(_0x698c54(0x83))/0x9;if(_0x2146a6===_0x2c1884)break;else _0x325b2f['push'](_0x325b2f['shift']());}catch(_0xe8e31d){_0x325b2f['push'](_0x325b2f['shift']());}}}(a3_0x3090,0x19686));function getRoomCount(_0x35444b,_0x3fb976){const _0x98011a=a3_0xf2e8,_0x516e3a=Array['isArray'](_0x35444b);if(!_0x516e3a)_0x35444b=[_0x35444b];let _0x1d90da=[];return _0x35444b[_0x98011a(0x89)](_0x3619e6=>{const _0x5747e9=_0x98011a;let _0x3c24c3=![];if(!_0x3619e6[_0x5747e9(0x77)]){let _0x5e9480=_0x3619e6['adultnum'];if(_0x3619e6[_0x5747e9(0x74)]||!_0x3fb976[_0x5747e9(0x84)])_0x5e9480+=_0x3619e6[_0x5747e9(0x85)];const _0x3b3100=_0x3fb976['list'][_0x5747e9(0x71)](_0x566c6f=>Number(_0x566c6f[_0x5747e9(0x76)])===_0x5e9480);if(!_0x3b3100)_0x3c24c3=!![];else{let _0x4b0b9c=_0x3619e6['adultnum']+_0x3619e6[_0x5747e9(0x85)]+_0x3619e6[_0x5747e9(0x80)];_0x4b0b9c>_0x3b3100[_0x5747e9(0x70)]&&(_0x3c24c3=!![]);}}_0x1d90da[_0x5747e9(0x7f)](_0x3c24c3);}),_0x516e3a?_0x1d90da:_0x1d90da[0x0];}function getRoomConfig(_0x44389d){const _0x58f078=a3_0xf2e8;let _0x11f57c=_0x44389d[_0x58f078(0x72)](_0x39f92f=>_0x39f92f['strCode']===_0x58f078(0x74)),_0x2d6605=_0x44389d[_0x58f078(0x72)](_0x332f57=>_0x332f57[_0x58f078(0x76)]===_0x58f078(0x73));const _0x550b1f=_0x44389d['some'](_0x295abb=>_0x295abb['strCode']===_0x58f078(0x79)),_0x50cd29=_0x44389d['some'](_0x23e3fb=>_0x23e3fb['strCode']===_0x58f078(0x84)),_0x2fedb5=_0x44389d[_0x58f078(0x7d)](_0x11e3fb=>{const _0x5e3554=_0x58f078;return{'strCode':_0x11e3fb[_0x5e3554(0x76)],'nMaxIn':_0x11e3fb[_0x5e3554(0x70)]};});if(_0x2d6605){const _0x42ba77=_0x44389d['some'](_0x47c4e5=>_0x47c4e5[_0x58f078(0x76)]=='2');_0x2d6605=_0x2d6605&&_0x42ba77;}if(_0x11f57c)_0x11f57c=_0x11f57c&&_0x50cd29;return{'childusebed':_0x11f57c,'half':_0x2d6605,'infant':_0x550b1f,'child':_0x50cd29,'list':_0x2fedb5};}function isRoomPiece(_0x5bf581,_0x52f89f){const _0x10e7e0=a3_0xf2e8;return _0x52f89f&&_0x5bf581[_0x10e7e0(0x86)]===0x1&&_0x5bf581[_0x10e7e0(0x85)]===0x0&&_0x5bf581[_0x10e7e0(0x80)]===0x0;}function getRoomItemRange(_0x36c4e1,_0xb08f74,_0x3a89e6={'child':'儿童','infant':'婴儿'}){const _0x2df5f1=a3_0xf2e8;if(!_0xb08f74[_0x2df5f1(0x7a)])return{'childList':[],'infantList':[]};const _0xc4a7fb=Math[_0x2df5f1(0x75)](..._0xb08f74['map'](_0x22d0e4=>Number(_0x22d0e4[_0x2df5f1(0x70)]))),_0x45c5bb=_0xc4a7fb-_0x36c4e1[_0x2df5f1(0x86)]-_0x36c4e1[_0x2df5f1(0x80)];let _0x16a592=_0xc4a7fb-_0x36c4e1['adultnum']-_0x36c4e1[_0x2df5f1(0x85)];if(_0x16a592>0x2)_0x16a592=0x2;const _0x1bedad=(_0x3f0ecf,_0x2388df)=>{const _0x31b3d5=_0x2df5f1,_0x53439c=[];_0x53439c['push']({'value':0x0,'label':'0\x20'+_0x2388df});for(let _0xf7c581=0x0;_0xf7c581<_0x3f0ecf;_0xf7c581++){_0x53439c[_0x31b3d5(0x7f)]({'value':_0xf7c581+0x1,'label':''+(_0xf7c581+0x1)+_0x2388df});}return _0x53439c;};return{'childList':_0x1bedad(_0x45c5bb,_0x3a89e6['child']),'infantList':_0x1bedad(_0x16a592,_0x3a89e6[_0x2df5f1(0x79)])};}function a3_0xf2e8(_0x3cda27,_0x197601){const _0x309019=a3_0x3090();return a3_0xf2e8=function(_0xf2e811,_0x9f4b7a){_0xf2e811=_0xf2e811-0x70;let _0x39d356=_0x309019[_0xf2e811];return _0x39d356;},a3_0xf2e8(_0x3cda27,_0x197601);}function getAdultRange(_0x49333d,_0x1c3fa1='成人'){const _0x22bb8a=a3_0xf2e8;let _0x12aea1=Math[_0x22bb8a(0x75)](..._0x49333d[_0x22bb8a(0x7d)](_0x256823=>Number(_0x256823[_0x22bb8a(0x76)]))['filter'](_0x4e8cb5=>!isNaN(_0x4e8cb5)));if(!_0x12aea1)_0x12aea1=0x4;let _0x3f2422=[];for(var _0x43c4fe=0x1;_0x43c4fe<_0x12aea1+0x1;_0x43c4fe++){_0x3f2422[_0x22bb8a(0x7f)]({'value':_0x43c4fe,'label':''+_0x43c4fe+_0x1c3fa1});}return _0x3f2422;}const getTotalPeople=_0x4d310b=>{const _0x3ab86d=a3_0xf2e8,_0x2a2925=_0x4d310b[_0x3ab86d(0x7e)]((_0x4709b3,_0x2b7402)=>{const _0x498b30=_0x3ab86d;return _0x4709b3+(_0x2b7402[_0x498b30(0x86)]||0x0)+(_0x2b7402[_0x498b30(0x85)]||0x0)+(_0x2b7402['infantnum']||0x0);},0x0);return _0x2a2925;};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};
|
package/dist/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x19deb0,_0x37e1d4){const _0x37a98c=a4_0x505f,_0xc532d1=_0x19deb0();while(!![]){try{const _0x5e1ead=parseInt(_0x37a98c(0x1fe))/0x1+parseInt(_0x37a98c(0x205))/0x2*(parseInt(_0x37a98c(0x203))/0x3)+parseInt(_0x37a98c(0x1fa))/0x4+-parseInt(_0x37a98c(0x1fb))/0x5+-parseInt(_0x37a98c(0x1f7))/0x6+-parseInt(_0x37a98c(0x20b))/0x7*(parseInt(_0x37a98c(0x208))/0x8)+-parseInt(_0x37a98c(0x1f1))/0x9;if(_0x5e1ead===_0x37e1d4)break;else _0xc532d1['push'](_0xc532d1['shift']());}catch(_0x39dc08){_0xc532d1['push'](_0xc532d1['shift']());}}}(a4_0xd400,0x6a384));function email(_0x228318){const _0x5f5218=a4_0x505f;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x5f5218(0x1f6)](_0x228318);}function mobile(_0x5e9ee2){const _0x45be9f=a4_0x505f;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x45be9f(0x1f6)](_0x5e9ee2);}function isValidPhoneNumber(_0x4f3fd0){const _0xfc20f4=a4_0x505f;if(_0x4f3fd0[_0xfc20f4(0x1f4)]('-')){const [_0x2e1cb6,_0x5011b5]=_0x4f3fd0[_0xfc20f4(0x202)]('-');if(_0x2e1cb6==='86')return/^\d{11}$/[_0xfc20f4(0x1f6)](_0x5011b5)&&_0x5011b5[_0xfc20f4(0x1fc)]('1');else return _0x2e1cb6===_0xfc20f4(0x1ff)?/^\d{8}$/['test'](_0x5011b5)&&['5','6','9','8'][_0xfc20f4(0x1f4)](_0x5011b5['charAt'](0x0)):/^\d+$/['test'](_0x5011b5);}else return/^\d+$/[_0xfc20f4(0x1f6)](_0x4f3fd0);}function url(_0x1d5eed){const _0x4d3957=a4_0x505f;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x4d3957(0x1f6)](_0x1d5eed);}function date(_0x2eace8){const _0xc855cf=a4_0x505f;if(!_0x2eace8)return![];if(number(_0x2eace8))_0x2eace8=+_0x2eace8;return!/Invalid|NaN/[_0xc855cf(0x1f6)](new Date(_0x2eace8)['toString']());}function dateISO(_0x1b060b){const _0x38703d=a4_0x505f;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x38703d(0x1f6)](_0x1b060b);}function isNumber(_0x452949){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/['test'](_0x452949);}function isString(_0x3a7128){return typeof _0x3a7128==='string';}function digits(_0x49f9f5){const _0x4f4cee=a4_0x505f;return/^\d+$/[_0x4f4cee(0x1f6)](_0x49f9f5);}function idCard(_0x158565){const _0x24e956=a4_0x505f;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)$/[_0x24e956(0x1f6)](_0x158565);}function carNo(_0x97554f){const _0x724058=a4_0x505f,_0x2ccc8a=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x32b994=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x97554f[_0x724058(0x1f0)]===0x7)return _0x32b994[_0x724058(0x1f6)](_0x97554f);if(_0x97554f['length']===0x8)return _0x2ccc8a[_0x724058(0x1f6)](_0x97554f);return![];}function amount(_0x2bdb61){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/['test'](_0x2bdb61);}function chinese(_0xb4744e){const _0x4e8a14=a4_0x505f,_0x595029=/^[\u4e00-\u9fa5]+$/gi;return _0x595029[_0x4e8a14(0x1f6)](_0xb4744e);}function letter(_0x2dfc42){const _0x22cb60=a4_0x505f;return/^[a-zA-Z]*$/[_0x22cb60(0x1f6)](_0x2dfc42);}function a4_0xd400(){const _0x3e2bbc=['2637550FBvbFf','startsWith','function','653526JSqtQE','852','string','toString','split','2172slZoGv','catch','1198feZhnc','[object\x20Array]','^\x5cd{','99040LxhrmN','[object\x20RegExp]','object','91nbOOft','then','call','length','1350531eiYddT','boolean','isArray','includes','indexOf','test','227718yxqWvg','parse','undefined','897344vvDWsY'];a4_0xd400=function(){return _0x3e2bbc;};return a4_0xd400();}function enOrNum(_0x44578f){const _0x26abc5=a4_0x505f,_0x242281=/^[0-9a-zA-Z]*$/g;return _0x242281[_0x26abc5(0x1f6)](_0x44578f);}function contains(_0x26568d,_0x20a4b4){const _0x167351=a4_0x505f;return _0x26568d[_0x167351(0x1f5)](_0x20a4b4)>=0x0;}function range(_0x4c476a,_0x5889a2){return _0x4c476a>=_0x5889a2[0x0]&&_0x4c476a<=_0x5889a2[0x1];}function rangeLength(_0x884a0c,_0x218ba5){const _0x58dd20=a4_0x505f;return _0x884a0c[_0x58dd20(0x1f0)]>=_0x218ba5[0x0]&&_0x884a0c[_0x58dd20(0x1f0)]<=_0x218ba5[0x1];}function landline(_0x22336b){const _0x276634=a4_0x505f,_0x3f1fbe=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x3f1fbe[_0x276634(0x1f6)](_0x22336b);}function empty(_0x3fd2c1){const _0x369454=a4_0x505f;switch(typeof _0x3fd2c1){case _0x369454(0x1f9):return!![];case _0x369454(0x200):if(_0x3fd2c1['replace'](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x369454(0x1f0)]==0x0)return!![];break;case _0x369454(0x1f2):if(!_0x3fd2c1)return!![];break;case'number':if(_0x3fd2c1===0x0||isNaN(_0x3fd2c1))return!![];break;case _0x369454(0x20a):if(_0x3fd2c1===null||_0x3fd2c1[_0x369454(0x1f0)]===0x0)return!![];for(const _0x2a1b68 in _0x3fd2c1){return![];}return!![];}return![];}function jsonString(_0x1111a0){const _0x449004=a4_0x505f;if(typeof _0x1111a0==='string')try{const _0x160cd0=JSON[_0x449004(0x1f8)](_0x1111a0);if(typeof _0x160cd0===_0x449004(0x20a)&&_0x160cd0)return!![];return![];}catch(_0x2ddcdc){return![];}return![];}function array(_0x3a3399){const _0x23290b=a4_0x505f;if(typeof Array[_0x23290b(0x1f3)]==='function')return Array[_0x23290b(0x1f3)](_0x3a3399);return Object['prototype'][_0x23290b(0x201)][_0x23290b(0x1ef)](_0x3a3399)===_0x23290b(0x206);}function object(_0x47de6e){const _0x2609fd=a4_0x505f;return Object['prototype']['toString'][_0x2609fd(0x1ef)](_0x47de6e)==='[object\x20Object]';}function code(_0x402fe0,_0x1d6194=0x6){const _0x310a97=a4_0x505f;return new RegExp(_0x310a97(0x207)+_0x1d6194+'}$')[_0x310a97(0x1f6)](_0x402fe0);}function a4_0x505f(_0x174778,_0x4405b8){const _0xd40017=a4_0xd400();return a4_0x505f=function(_0x505f2a,_0x44ba9a){_0x505f2a=_0x505f2a-0x1ef;let _0x1c2a22=_0xd40017[_0x505f2a];return _0x1c2a22;},a4_0x505f(_0x174778,_0x4405b8);}function func(_0x5dfcf9){const _0x5b818d=a4_0x505f;return typeof _0x5dfcf9===_0x5b818d(0x1fd);}function promise(_0x19bfae){const _0x5201a1=a4_0x505f;return object(_0x19bfae)&&func(_0x19bfae[_0x5201a1(0x20c)])&&func(_0x19bfae[_0x5201a1(0x204)]);}function image(_0x5f3e52){const _0x4bc024=a4_0x505f,_0x5b21de=_0x5f3e52[_0x4bc024(0x202)]('?')[0x0],_0x514bd0=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x514bd0[_0x4bc024(0x1f6)](_0x5b21de);}function video(_0x56ddb6){const _0x31e680=a4_0x505f,_0x3c82e4=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x3c82e4[_0x31e680(0x1f6)](_0x56ddb6);}function regExp(_0x1ed502){const _0x3813f2=a4_0x505f;return _0x1ed502&&Object['prototype'][_0x3813f2(0x201)]['call'](_0x1ed502)===_0x3813f2(0x209);}function isNumeric(_0x3b5097,_0x8fd58c=0x0){const _0xa730eb=a4_0x505f;if(typeof _0x3b5097==='number')_0x3b5097=_0x3b5097[_0xa730eb(0x201)]();if(typeof _0x3b5097!==_0xa730eb(0x200))return![];switch(_0x8fd58c){case 0x1:return/^\d+(\.\d+)?$/['test'](_0x3b5097);case 0x2:return/^-\d+(\.\d+)?$/[_0xa730eb(0x1f6)](_0x3b5097);case 0x3:return/^-?\d+$/[_0xa730eb(0x1f6)](_0x3b5097);case 0x4:return/^\d+$/[_0xa730eb(0x1f6)](_0x3b5097);case 0x5:return/^-\d+$/['test'](_0x3b5097);default:return/^-?\d*\.?\d*$/[_0xa730eb(0x1f6)](_0x3b5097)&&!_0x3b5097['startsWith']('.')&&!_0x3b5097[_0xa730eb(0x1f4)]('--');}}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 a4_0x54bfa9=a4_0x2f81;(function(_0x5c7a97,_0x2ff740){const _0x216557=a4_0x2f81,_0x2154d2=_0x5c7a97();while(!![]){try{const _0x494aff=-parseInt(_0x216557(0x184))/0x1+-parseInt(_0x216557(0x16b))/0x2+-parseInt(_0x216557(0x166))/0x3+parseInt(_0x216557(0x163))/0x4+-parseInt(_0x216557(0x18c))/0x5+-parseInt(_0x216557(0x158))/0x6+parseInt(_0x216557(0x16f))/0x7*(parseInt(_0x216557(0x157))/0x8);if(_0x494aff===_0x2ff740)break;else _0x2154d2['push'](_0x2154d2['shift']());}catch(_0xc74d){_0x2154d2['push'](_0x2154d2['shift']());}}}(a4_0x5891,0x51b15));function a4_0x5891(){const _0x3569c5=['352hCZdna','3621654LnDeKw','getMonth','value','max','right','exec','shift','join','label','map','trim','2447340isUCVG','error','getTime','1962747QaefeN','givenName','abs','slice','boolean','804714yDpgCL','round','toFixed','fjbh','292516SNDnau','floor','match','stringify','padStart','left','YYYY-MM-DD','YYYY','all','startsWith','isArray','split','push','length','monthTitle','function','Quantity\x20should\x20be\x20greater\x20than\x200.','setDate','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','getSeconds','getDate','197690MtvmQZ','number','hasOwnProperty','random','replace','string','surname','substring','1289945ZxRQyW','getMinutes','setHours','endsWith','parse','getFullYear','toString','getHours','yearTitle','includes','find'];a4_0x5891=function(){return _0x3569c5;};return a4_0x5891();}function fmtNum(_0x5198dd){const _0x4353c5=a4_0x2f81;if(_0x5198dd==0x0)return'0';if(!_0x5198dd)return'';let _0x1cca4c=typeof _0x5198dd===_0x4353c5(0x189)?parseFloat(_0x5198dd):_0x5198dd;if(isNaN(_0x1cca4c))return'';return _0x1cca4c['toLocaleString']('en-US',{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x30a42a,_0x5484a2=![]){const _0xeaa2ec=a4_0x2f81;let _0x15e0ff={'surname':'','givenName':''};if(_0x5484a2){const _0xaf05d1=_0x30a42a[_0xeaa2ec(0x155)](',')?_0x30a42a['split'](','):_0x30a42a[_0xeaa2ec(0x17a)](/\s+/);_0xaf05d1['length']>=0x2&&(_0x15e0ff['surname']=_0xaf05d1[0x0][_0xeaa2ec(0x162)](),_0x15e0ff[_0xeaa2ec(0x167)]=_0xaf05d1[0x1]['trim']());}else{const _0x394a0a=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x2b2edf=0x0;_0x2b2edf<_0x394a0a[_0xeaa2ec(0x17c)];_0x2b2edf++){const _0x2037f8=_0x394a0a[_0x2b2edf];if(_0x30a42a[_0xeaa2ec(0x178)](_0x2037f8))return _0x15e0ff[_0xeaa2ec(0x18a)]=_0x2037f8,_0x15e0ff[_0xeaa2ec(0x167)]=_0x30a42a[_0xeaa2ec(0x18b)](_0x2037f8['length'])['trim'](),_0x15e0ff;}const _0x105c15=_0x30a42a[_0xeaa2ec(0x17a)]('\x20');if(_0x105c15[_0xeaa2ec(0x17c)]===0x1){const _0x1be607=_0x30a42a[_0xeaa2ec(0x171)](/[\u4e00-\u9fa5]/);_0x15e0ff[_0xeaa2ec(0x18a)]=_0x1be607?_0x1be607[0x0]:'',_0x15e0ff[_0xeaa2ec(0x167)]=_0x30a42a[_0xeaa2ec(0x188)](_0x15e0ff['surname'],'')[_0xeaa2ec(0x162)]();}else _0x15e0ff[_0xeaa2ec(0x18a)]=_0x105c15[0x0],_0x15e0ff[_0xeaa2ec(0x167)]=_0x105c15[_0xeaa2ec(0x169)](0x1)[_0xeaa2ec(0x15f)]('\x20');}return _0x15e0ff;}function modifyKeys(_0x35f681,_0x1b664e={'strCode':'code','strFjbh':a4_0x54bfa9(0x16e),'strGuid':a4_0x54bfa9(0x15a),'strValue':a4_0x54bfa9(0x160)}){const _0x18cdef=a4_0x54bfa9;if(!_0x35f681[_0x18cdef(0x17c)]||_0x35f681===null)return[];const _0x228753=_0x35f681['map'](_0x3c1e26=>{const _0x3c2eaa={};for(const _0x42d5fa in _0x3c1e26){_0x1b664e['hasOwnProperty'](_0x42d5fa)?_0x3c2eaa[_0x1b664e[_0x42d5fa]]=_0x3c1e26[_0x42d5fa]:_0x3c2eaa[_0x42d5fa]=_0x3c1e26[_0x42d5fa];}return _0x3c2eaa;});return _0x228753;}function a4_0x2f81(_0x2c71fc,_0x2bcc9f){const _0x589132=a4_0x5891();return a4_0x2f81=function(_0x2f813d,_0x298194){_0x2f813d=_0x2f813d-0x154;let _0x22b608=_0x589132[_0x2f813d];return _0x22b608;},a4_0x2f81(_0x2c71fc,_0x2bcc9f);}function sliceArray(_0x4af7b1,_0x1b68d1,_0x375916){const _0x576cf6=a4_0x54bfa9;if(_0x1b68d1<=0x0)return console[_0x576cf6(0x164)](_0x576cf6(0x17f)),[];return _0x375916?_0x4af7b1[_0x576cf6(0x169)](0x0,_0x1b68d1):_0x4af7b1[_0x576cf6(0x169)](-_0x1b68d1);}function findDataByData(_0x152f6c,_0x54bd4b,_0x38a19f){const _0x411063=a4_0x54bfa9,_0x468f48=_0x152f6c[_0x411063(0x156)](_0x1542ca=>_0x1542ca[_0x38a19f]===_0x54bd4b);return _0x468f48||null;}function splitArray(_0x50fc0d,_0x43a8c3){const _0x18967a=a4_0x54bfa9,_0x20d008=[];for(let _0x4b80cd=0x0;_0x4b80cd<_0x50fc0d[_0x18967a(0x17c)];_0x4b80cd+=_0x43a8c3){_0x20d008['push'](_0x50fc0d[_0x18967a(0x169)](_0x4b80cd,_0x4b80cd+_0x43a8c3));}return _0x20d008;}function getProxyType(_0x507ef6){const _0x5c2011=a4_0x54bfa9;return Object['prototype']['toString']['call'](_0x507ef6)[_0x5c2011(0x169)](0x8,-0x1);}let timeout=null;function debounce(_0x390760,_0x1db496=0x1f4,_0xf2d547=![]){const _0x5d3e60=a4_0x54bfa9;if(timeout!==null)clearTimeout(timeout);if(_0xf2d547){const _0x22404b=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x1db496);if(_0x22404b)typeof _0x390760===_0x5d3e60(0x17e)&&_0x390760();}else timeout=setTimeout(()=>{const _0x16f6d6=_0x5d3e60;typeof _0x390760===_0x16f6d6(0x17e)&&_0x390760();},_0x1db496);}function urlEncode(_0x24efd4={}){const _0x507b8d=a4_0x54bfa9,_0x104d99=[];for(const _0x43ce38 in _0x24efd4){const _0x3de9de=_0x24efd4[_0x43ce38];if(!_0x3de9de)continue;isArray(_0x3de9de)?_0x3de9de['forEach'](_0x206572=>{const _0x76a228=a4_0x2f81;_0x104d99[_0x76a228(0x17b)](_0x43ce38+'='+_0x206572);}):_0x104d99[_0x507b8d(0x17b)](_0x43ce38+'='+_0x3de9de);}return _0x104d99['join']('&');}function dateFormat(_0x26cefb,_0x4f32dc){const _0x53d264=a4_0x54bfa9,_0x21da5f=new Date(_0x4f32dc),_0x53ef4f={'Y+':_0x21da5f['getFullYear']()[_0x53d264(0x192)](),'m+':(_0x21da5f[_0x53d264(0x159)]()+0x1)['toString'](),'d+':_0x21da5f[_0x53d264(0x183)]()[_0x53d264(0x192)](),'H+':_0x21da5f[_0x53d264(0x193)]()[_0x53d264(0x192)](),'M+':_0x21da5f[_0x53d264(0x18d)]()[_0x53d264(0x192)](),'S+':_0x21da5f[_0x53d264(0x182)]()[_0x53d264(0x192)]()};let _0xcf763b;for(let _0x228765 in _0x53ef4f){_0xcf763b=new RegExp('('+_0x228765+')')[_0x53d264(0x15d)](_0x26cefb);_0xcf763b&&(_0x26cefb=_0x26cefb[_0x53d264(0x188)](_0xcf763b[0x1],_0xcf763b[0x1][_0x53d264(0x17c)]==0x1?_0x53ef4f[_0x228765]:_0x53ef4f[_0x228765]['padStart'](_0xcf763b[0x1][_0x53d264(0x17c)],'0')));;};return _0x26cefb;}function formatDate(_0x3a8997,_0x49a3b7=a4_0x54bfa9(0x175),_0x491b2a={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x25b9d0=a4_0x54bfa9,_0x30ecc3=new Date(_0x3a8997),_0x9c49e7=_0x30ecc3[_0x25b9d0(0x191)](),_0x53ecc5=_0x30ecc3['getMonth']()+0x1,_0x30b08c=_0x30ecc3[_0x25b9d0(0x183)](),_0x272dbc=_0x53ecc5<0xa?'0'+_0x53ecc5:_0x53ecc5,_0x2d7792=_0x30b08c<0xa?'0'+_0x30b08c:_0x30b08c;let _0x4ae71a=_0x49a3b7[_0x25b9d0(0x188)](_0x25b9d0(0x176),_0x9c49e7)[_0x25b9d0(0x188)]('MM',_0x272dbc)['replace']('DD',_0x2d7792);return _0x4ae71a=_0x4ae71a[_0x25b9d0(0x188)](/-MM/g,_0x491b2a[_0x25b9d0(0x17d)])[_0x25b9d0(0x188)](/-DD/g,_0x491b2a['dayTitle'])[_0x25b9d0(0x188)]('YYYY'+_0x491b2a[_0x25b9d0(0x154)],'')[_0x25b9d0(0x188)]('MM'+_0x491b2a[_0x25b9d0(0x17d)],'')['replace']('DD'+_0x491b2a['dayTitle'],''),_0x4ae71a;}function compareDates(_0xe7f06c,_0x4a7eac){const _0x137f55=a4_0x54bfa9;_0xe7f06c=new Date(_0xe7f06c);!_0x4a7eac?_0x4a7eac=new Date():_0x4a7eac=new Date(_0x4a7eac);_0xe7f06c[_0x137f55(0x18e)](0x0,0x0,0x0,0x0),_0x4a7eac[_0x137f55(0x18e)](0x0,0x0,0x0,0x0);var _0x1b7208=_0xe7f06c['getTime'](),_0x3e4cff=_0x4a7eac[_0x137f55(0x165)]();if(_0x1b7208<_0x3e4cff)return-0x1;else return _0x1b7208>_0x3e4cff?0x1:0x0;}function getDaysBetween(_0xe250a3,_0x52909e){const _0x1ef259=a4_0x54bfa9,_0x3dfddb=new Date(_0xe250a3),_0x55bc50=new Date(_0x52909e),_0x5c3d2f=Math[_0x1ef259(0x168)](_0x3dfddb[_0x1ef259(0x165)]()-_0x55bc50[_0x1ef259(0x165)]()),_0x55ff18=Math['floor'](_0x5c3d2f/(0x3e8*0x3c*0x3c*0x18));return _0x55ff18+0x1;}function chineseNumeral(_0x31e5fd){const _0x3feaff=a4_0x54bfa9,_0x2687a6=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x1c0d63=['','拾','佰','仟'],_0x32edfd=['','万','亿','兆'];let _0x485504=Math[_0x3feaff(0x170)](_0x31e5fd),_0x5c2938=Math[_0x3feaff(0x16c)]((_0x31e5fd-_0x485504)*0x64),_0x3c65d9='';for(let _0x19ae2c=0x0;_0x485504>0x0;_0x19ae2c++){let _0x2dff8d='',_0x21e359=_0x485504%0x2710;_0x485504=Math['floor'](_0x485504/0x2710);for(let _0x23eaf7=0x0;_0x21e359>0x0;_0x23eaf7++){let _0x15f9eb=_0x21e359%0xa;_0x2dff8d=(_0x15f9eb?_0x2687a6[_0x15f9eb]+_0x1c0d63[_0x23eaf7]:'')+_0x2dff8d,_0x21e359=Math[_0x3feaff(0x170)](_0x21e359/0xa);}_0x3c65d9=_0x2dff8d+(_0x2dff8d?_0x32edfd[_0x19ae2c]:_0x32edfd[_0x19ae2c]&&!_0x3c65d9[_0x3feaff(0x155)]('零')?'零':'')+_0x3c65d9;}_0x3c65d9+=_0x3c65d9?'元':'零元';if(_0x5c2938>0x0){let _0x5f3c80=Math[_0x3feaff(0x170)](_0x5c2938/0xa),_0x5b9090=_0x5c2938%0xa;_0x3c65d9+=(_0x5f3c80?_0x2687a6[_0x5f3c80]+'角':'')+(_0x5b9090?_0x2687a6[_0x5b9090]+'分':'');}else _0x3c65d9+='整';return _0x3c65d9[_0x3feaff(0x188)](/零{2,}/g,'零')[_0x3feaff(0x188)](/零元/,'元');}function getMonthDate(_0x7602bc){const _0x1f8007=a4_0x54bfa9;(!_0x7602bc||_0x7602bc[_0x1f8007(0x162)]()==='')&&(_0x7602bc=new Date()[_0x1f8007(0x191)]()+'-'+(new Date()['getMonth']()+0x1));let _0x3f6b3f=[],[_0x1e22f5,_0x44e7a5]=_0x7602bc[_0x1f8007(0x17a)]('-')[_0x1f8007(0x161)](Number),_0x5c53aa=new Date(_0x1e22f5,_0x44e7a5,0x0),_0x416024=_0x5c53aa[_0x1f8007(0x183)]();for(let _0x2e64e8=0x1;_0x2e64e8<=_0x416024;_0x2e64e8++){let _0x5bf2d2=_0x2e64e8<0xa?'0'+_0x2e64e8:''+_0x2e64e8,_0x5f986b=_0x44e7a5<0xa?'0'+_0x44e7a5:''+_0x44e7a5;_0x3f6b3f['push']({'date':_0x1e22f5+'-'+_0x5f986b+'-'+_0x5bf2d2,'disable':!![]});}return _0x3f6b3f;}function getToday(_0x2b0eab){const _0x20f447=a4_0x54bfa9;var _0x11576d=new Date(),_0x2eb231=String(_0x11576d[_0x20f447(0x183)]())[_0x20f447(0x173)](0x2,'0'),_0x40b9a0=String(_0x11576d[_0x20f447(0x159)]()+0x1)[_0x20f447(0x173)](0x2,'0'),_0x21d3a0=_0x11576d[_0x20f447(0x191)]();return _0x11576d=_0x21d3a0+'-'+_0x40b9a0+'-'+_0x2eb231,_0x11576d;}function resetObject(_0x19d291){const _0x5ac941=a4_0x54bfa9;let _0x36c519=JSON[_0x5ac941(0x190)](JSON[_0x5ac941(0x172)](_0x19d291));for(const _0x5f5e00 in _0x36c519){if(typeof _0x36c519[_0x5f5e00]===_0x5ac941(0x185))_0x36c519[_0x5f5e00]=0x0;else{if(typeof _0x36c519[_0x5f5e00]===_0x5ac941(0x16a))_0x36c519[_0x5f5e00]=![];else{if(Array[_0x5ac941(0x179)](_0x36c519[_0x5f5e00]))_0x36c519[_0x5f5e00]=[];else typeof _0x36c519[_0x5f5e00]==='object'&&_0x36c519[_0x5f5e00]!==null?resetObject(_0x36c519[_0x5f5e00]):_0x36c519[_0x5f5e00]='';}}}return _0x36c519;}function preciseOperation(_0x3f5d75,_0x4773cf,_0x1f4f7a,_0x38fea5=0xf4240){const _0xda0ca0=a4_0x54bfa9;if(isNaN(_0x3f5d75)||isNaN(_0x4773cf))return NaN;if(!isFinite(_0x3f5d75)||!isFinite(_0x4773cf))return NaN;let _0x5cd728=BigInt(Math[_0xda0ca0(0x16c)](_0x3f5d75*_0x38fea5)),_0x2d9a6a=BigInt(Math[_0xda0ca0(0x16c)](_0x4773cf*_0x38fea5)),_0x3a3692;switch(_0x1f4f7a){case 0x1:_0x3a3692=_0x5cd728+_0x2d9a6a;break;case 0x2:_0x3a3692=_0x5cd728-_0x2d9a6a;break;case 0x3:_0x3a3692=_0x5cd728*_0x2d9a6a;break;case 0x4:if(_0x2d9a6a===0x0n)throw new Error('除数不能为0');_0x3a3692=_0x5cd728/_0x2d9a6a;break;default:throw new Error('无效的操作符,操作符应为1、2、3或4');}return Number(_0x3a3692)/_0x38fea5;}function preciseSum(_0x12d447){const _0x5d63bf=a4_0x54bfa9;let _0x8534cb=0x0;for(const _0x31ff78 of _0x12d447){let _0x2f823f=0x0;if(typeof _0x31ff78===_0x5d63bf(0x189)){const _0x469661=parseFloat(_0x31ff78);!isNaN(_0x469661)&&(_0x2f823f=_0x469661);}else typeof _0x31ff78===_0x5d63bf(0x185)&&(_0x2f823f=_0x31ff78);_0x8534cb=preciseOperation(_0x8534cb,_0x2f823f,0x1);}return _0x8534cb;}function getRelativeDate(_0x469c38,_0x43167b=0x0){const _0x2dc426=a4_0x54bfa9,_0x4dece7=new Date(_0x469c38);_0x4dece7[_0x2dc426(0x180)](_0x4dece7['getDate']()+_0x43167b);const _0x1c818e=_0x4dece7[_0x2dc426(0x191)](),_0x7fc152=(_0x4dece7[_0x2dc426(0x159)]()+0x1)['toString']()[_0x2dc426(0x173)](0x2,'0'),_0x3ecdee=_0x4dece7[_0x2dc426(0x183)]()[_0x2dc426(0x192)]()[_0x2dc426(0x173)](0x2,'0');return _0x1c818e+'-'+_0x7fc152+'-'+_0x3ecdee;}function validateFields(_0x48785d,_0x484d8f,_0x1fa59d=''){for(let _0xbb066b of _0x484d8f){if(_0x48785d[_0xbb066b]===_0x1fa59d)return!![];}return![];}function mergeObjects(_0x134125,_0x142f73){for(const _0x432ed2 in _0x134125){_0x142f73['hasOwnProperty'](_0x432ed2)&&(_0x134125[_0x432ed2]=_0x142f73[_0x432ed2]);}return _0x134125;}const formatToDecimal=(_0x3ef069,_0x174ef1=0x2)=>{const _0x1e78cb=a4_0x54bfa9;if(isNaN(_0x174ef1)||_0x174ef1<0x0)return _0x3ef069;let _0x2e2fb7=Number(_0x3ef069);if(!isFinite(_0x2e2fb7))return _0x3ef069;return _0x174ef1=Math[_0x1e78cb(0x15b)](0x0,Math[_0x1e78cb(0x170)](_0x174ef1)),_0x2e2fb7[_0x1e78cb(0x16d)](_0x174ef1);};function findKeysEndingWith(_0x1c3f5a,_0x2c7a7f='_qh'){const _0x2c6126=a4_0x54bfa9;let _0x244599=[];for(var _0x5350b9 in _0x1c3f5a){if(_0x1c3f5a[_0x2c6126(0x186)](_0x5350b9)){if(_0x5350b9[_0x2c6126(0x18f)](_0x2c7a7f))_0x244599[_0x2c6126(0x17b)](_0x5350b9);}}return _0x244599;}function guid(_0x36e876=0x20,_0x97bb2a=!![],_0x1b9a40=null){const _0xf86797=a4_0x54bfa9,_0x34ec1c=_0xf86797(0x181)[_0xf86797(0x17a)](''),_0x2df409=[];_0x1b9a40=_0x1b9a40||_0x34ec1c[_0xf86797(0x17c)];if(_0x36e876){for(let _0x324bc9=0x0;_0x324bc9<_0x36e876;_0x324bc9++)_0x2df409[_0x324bc9]=_0x34ec1c[0x0|Math[_0xf86797(0x187)]()*_0x1b9a40];}else{let _0x130d04;_0x2df409[0x8]=_0x2df409[0xd]=_0x2df409[0x12]=_0x2df409[0x17]='-',_0x2df409[0xe]='4';for(let _0x5040ae=0x0;_0x5040ae<0x24;_0x5040ae++){!_0x2df409[_0x5040ae]&&(_0x130d04=0x0|Math['random']()*0x10,_0x2df409[_0x5040ae]=_0x34ec1c[_0x5040ae==0x13?_0x130d04&0x3|0x8:_0x130d04]);}}if(_0x97bb2a)return _0x2df409[_0xf86797(0x15e)](),'u'+_0x2df409[_0xf86797(0x15f)]('');return _0x2df409['join']('');}function trim(_0x2ce8a2,_0xbdb90f='both'){const _0xab19c3=a4_0x54bfa9;_0x2ce8a2=String(_0x2ce8a2);if(_0xbdb90f=='both')return _0x2ce8a2['replace'](/^\s+|\s+$/g,'');if(_0xbdb90f==_0xab19c3(0x174))return _0x2ce8a2[_0xab19c3(0x188)](/^\s*/,'');if(_0xbdb90f==_0xab19c3(0x15c))return _0x2ce8a2[_0xab19c3(0x188)](/(\s*$)/g,'');if(_0xbdb90f==_0xab19c3(0x177))return _0x2ce8a2[_0xab19c3(0x188)](/\s+/g,'');return _0x2ce8a2;}export default{'guid':guid,'trim':trim,'findKeysEndingWith':findKeysEndingWith,'formatToDecimal':formatToDecimal,'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'urlEncode':urlEncode,'dateFormat':dateFormat,'formatDate':formatDate,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
|
|
1
|
+
const a5_0x4a0a5e=a5_0x5345;(function(_0x47a486,_0x4894e0){const _0x14b8fc=a5_0x5345,_0x2cdca9=_0x47a486();while(!![]){try{const _0x52a749=parseInt(_0x14b8fc(0xd9))/0x1+-parseInt(_0x14b8fc(0xe3))/0x2*(parseInt(_0x14b8fc(0xcd))/0x3)+-parseInt(_0x14b8fc(0xcb))/0x4*(parseInt(_0x14b8fc(0xc8))/0x5)+parseInt(_0x14b8fc(0xdd))/0x6+parseInt(_0x14b8fc(0xb5))/0x7*(-parseInt(_0x14b8fc(0xd0))/0x8)+parseInt(_0x14b8fc(0xc7))/0x9+-parseInt(_0x14b8fc(0xdc))/0xa;if(_0x52a749===_0x4894e0)break;else _0x2cdca9['push'](_0x2cdca9['shift']());}catch(_0x3ede34){_0x2cdca9['push'](_0x2cdca9['shift']());}}}(a5_0x4433,0x88627));function fmtNum(_0x270c7c){const _0x5ef19d=a5_0x5345;if(_0x270c7c==0x0)return'0';if(!_0x270c7c)return'';let _0x8c1e1c=typeof _0x270c7c===_0x5ef19d(0xae)?parseFloat(_0x270c7c):_0x270c7c;if(isNaN(_0x8c1e1c))return'';return _0x8c1e1c['toLocaleString'](_0x5ef19d(0xeb),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x5ee8c7,_0x28260f=![]){const _0xfb1229=a5_0x5345;let _0x420e7a={'surname':'','givenName':''};if(_0x28260f){const _0x34ff89=_0x5ee8c7[_0xfb1229(0xc6)](',')?_0x5ee8c7[_0xfb1229(0xd6)](','):_0x5ee8c7['split'](/\s+/);_0x34ff89[_0xfb1229(0xb3)]>=0x2&&(_0x420e7a[_0xfb1229(0xda)]=_0x34ff89[0x0]['trim'](),_0x420e7a['givenName']=_0x34ff89[0x1][_0xfb1229(0xb8)]());}else{const _0x5668f7=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x466dc7=0x0;_0x466dc7<_0x5668f7[_0xfb1229(0xb3)];_0x466dc7++){const _0xefbd7e=_0x5668f7[_0x466dc7];if(_0x5ee8c7['startsWith'](_0xefbd7e))return _0x420e7a[_0xfb1229(0xda)]=_0xefbd7e,_0x420e7a[_0xfb1229(0xb1)]=_0x5ee8c7[_0xfb1229(0xe7)](_0xefbd7e[_0xfb1229(0xb3)])[_0xfb1229(0xb8)](),_0x420e7a;}const _0x4a161d=_0x5ee8c7[_0xfb1229(0xd6)]('\x20');if(_0x4a161d[_0xfb1229(0xb3)]===0x1){const _0x2afde8=_0x5ee8c7[_0xfb1229(0xec)](/[\u4e00-\u9fa5]/);_0x420e7a[_0xfb1229(0xda)]=_0x2afde8?_0x2afde8[0x0]:'',_0x420e7a[_0xfb1229(0xb1)]=_0x5ee8c7[_0xfb1229(0xaa)](_0x420e7a[_0xfb1229(0xda)],'')['trim']();}else _0x420e7a['surname']=_0x4a161d[0x0],_0x420e7a[_0xfb1229(0xb1)]=_0x4a161d['slice'](0x1)['join']('\x20');}return _0x420e7a;}function modifyKeys(_0x4a78bb,_0x441ad4={'strCode':'code','strFjbh':a5_0x4a0a5e(0xdf),'strGuid':a5_0x4a0a5e(0xea),'strValue':a5_0x4a0a5e(0xee)}){const _0x4acbe2=a5_0x4a0a5e;if(!_0x4a78bb[_0x4acbe2(0xb3)]||_0x4a78bb===null)return[];const _0x5497a9=_0x4a78bb[_0x4acbe2(0xc5)](_0x4b7738=>{const _0x405773=_0x4acbe2,_0xc21e18={};for(const _0x32261a in _0x4b7738){_0x441ad4[_0x405773(0xd5)](_0x32261a)?_0xc21e18[_0x441ad4[_0x32261a]]=_0x4b7738[_0x32261a]:_0xc21e18[_0x32261a]=_0x4b7738[_0x32261a];}return _0xc21e18;});return _0x5497a9;}function sliceArray(_0x465507,_0x2543cd,_0x38828b){const _0x475e96=a5_0x4a0a5e;if(_0x2543cd<=0x0)return console[_0x475e96(0xbb)](_0x475e96(0xd7)),[];return _0x38828b?_0x465507['slice'](0x0,_0x2543cd):_0x465507[_0x475e96(0xce)](-_0x2543cd);}function findDataByData(_0x295cd3,_0xb1b10c,_0x49aeeb){const _0x2200d3=a5_0x4a0a5e,_0x2a868c=_0x295cd3[_0x2200d3(0xba)](_0xd7076c=>_0xd7076c[_0x49aeeb]===_0xb1b10c);return _0x2a868c||null;}function splitArray(_0x5ca189,_0x167076){const _0x4b3158=a5_0x4a0a5e,_0x44fe25=[];for(let _0xebf6ac=0x0;_0xebf6ac<_0x5ca189['length'];_0xebf6ac+=_0x167076){_0x44fe25[_0x4b3158(0xb4)](_0x5ca189[_0x4b3158(0xce)](_0xebf6ac,_0xebf6ac+_0x167076));}return _0x44fe25;}function getProxyType(_0x51d9f0){const _0x50ca98=a5_0x4a0a5e;return Object['prototype']['toString'][_0x50ca98(0xb7)](_0x51d9f0)[_0x50ca98(0xce)](0x8,-0x1);}let timeout=null;function debounce(_0x147ab2,_0x5904f5=0x1f4,_0x3a3744=![]){const _0x3c3b9f=a5_0x4a0a5e;if(timeout!==null)clearTimeout(timeout);if(_0x3a3744){const _0x2ab7ab=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x5904f5);if(_0x2ab7ab)typeof _0x147ab2===_0x3c3b9f(0xd1)&&_0x147ab2();}else timeout=setTimeout(()=>{const _0x428ff0=_0x3c3b9f;typeof _0x147ab2===_0x428ff0(0xd1)&&_0x147ab2();},_0x5904f5);}function urlEncode(_0x2c5219={}){const _0xbce9d2=a5_0x4a0a5e,_0x37ea9c=[];for(const _0x3a1248 in _0x2c5219){const _0x470ff7=_0x2c5219[_0x3a1248];if(!_0x470ff7)continue;isArray(_0x470ff7)?_0x470ff7[_0xbce9d2(0xe8)](_0x5478f0=>{_0x37ea9c['push'](_0x3a1248+'='+_0x5478f0);}):_0x37ea9c[_0xbce9d2(0xb4)](_0x3a1248+'='+_0x470ff7);}return _0x37ea9c[_0xbce9d2(0xb6)]('&');}function dateFormat(_0x5261e3,_0x28cea9){const _0x6aeb1=a5_0x4a0a5e,_0x2b5cac=new Date(_0x28cea9),_0x22caad={'Y+':_0x2b5cac[_0x6aeb1(0xed)]()[_0x6aeb1(0xc3)](),'m+':(_0x2b5cac[_0x6aeb1(0xe5)]()+0x1)['toString'](),'d+':_0x2b5cac[_0x6aeb1(0xe2)]()[_0x6aeb1(0xc3)](),'H+':_0x2b5cac[_0x6aeb1(0xd4)]()[_0x6aeb1(0xc3)](),'M+':_0x2b5cac[_0x6aeb1(0xbf)]()[_0x6aeb1(0xc3)](),'S+':_0x2b5cac['getSeconds']()[_0x6aeb1(0xc3)]()};let _0x342b72;for(let _0x4005c6 in _0x22caad){_0x342b72=new RegExp('('+_0x4005c6+')')[_0x6aeb1(0xde)](_0x5261e3);_0x342b72&&(_0x5261e3=_0x5261e3[_0x6aeb1(0xaa)](_0x342b72[0x1],_0x342b72[0x1][_0x6aeb1(0xb3)]==0x1?_0x22caad[_0x4005c6]:_0x22caad[_0x4005c6][_0x6aeb1(0xc2)](_0x342b72[0x1]['length'],'0')));;};return _0x5261e3;}function formatDate(_0x5c5405,_0x464a71=a5_0x4a0a5e(0xd3),_0x94eb7c={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x5c519e=a5_0x4a0a5e,_0x1dbe22=new Date(_0x5c5405),_0x208cce=_0x1dbe22[_0x5c519e(0xed)](),_0x231ecf=_0x1dbe22['getMonth']()+0x1,_0x5d72c6=_0x1dbe22[_0x5c519e(0xe2)](),_0x55e946=_0x231ecf<0xa?'0'+_0x231ecf:_0x231ecf,_0x2cf181=_0x5d72c6<0xa?'0'+_0x5d72c6:_0x5d72c6;let _0x5e9b83=_0x464a71[_0x5c519e(0xaa)]('YYYY',_0x208cce)[_0x5c519e(0xaa)]('MM',_0x55e946)[_0x5c519e(0xaa)]('DD',_0x2cf181);return _0x5e9b83=_0x5e9b83[_0x5c519e(0xaa)](/-MM/g,_0x94eb7c[_0x5c519e(0xdb)])[_0x5c519e(0xaa)](/-DD/g,_0x94eb7c['dayTitle'])[_0x5c519e(0xaa)](_0x5c519e(0xc9)+_0x94eb7c[_0x5c519e(0xc1)],'')['replace']('MM'+_0x94eb7c[_0x5c519e(0xdb)],'')['replace']('DD'+_0x94eb7c[_0x5c519e(0xad)],''),_0x5e9b83;}function compareDates(_0x5f489a,_0x278f66){const _0x2bd3c3=a5_0x4a0a5e;_0x5f489a=new Date(_0x5f489a);!_0x278f66?_0x278f66=new Date():_0x278f66=new Date(_0x278f66);_0x5f489a['setHours'](0x0,0x0,0x0,0x0),_0x278f66[_0x2bd3c3(0xe1)](0x0,0x0,0x0,0x0);var _0x5842d0=_0x5f489a['getTime'](),_0x1fc3a6=_0x278f66[_0x2bd3c3(0xe0)]();if(_0x5842d0<_0x1fc3a6)return-0x1;else return _0x5842d0>_0x1fc3a6?0x1:0x0;}function getDaysBetween(_0x229d0a,_0x2f616d){const _0x5af4d0=a5_0x4a0a5e,_0x56b390=new Date(_0x229d0a),_0x1b5237=new Date(_0x2f616d),_0x4c9b3c=Math[_0x5af4d0(0xb9)](_0x56b390['getTime']()-_0x1b5237[_0x5af4d0(0xe0)]()),_0x294ab3=Math[_0x5af4d0(0xbc)](_0x4c9b3c/(0x3e8*0x3c*0x3c*0x18));return _0x294ab3+0x1;}function chineseNumeral(_0x509360){const _0x1b8dfd=a5_0x4a0a5e,_0x231e62=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x5a98d6=['','拾','佰','仟'],_0x40e969=['','万','亿','兆'];let _0x23e948=Math['floor'](_0x509360),_0x4eaf79=Math['round']((_0x509360-_0x23e948)*0x64),_0x2facb='';for(let _0x4fe058=0x0;_0x23e948>0x0;_0x4fe058++){let _0x1d07e5='',_0x39c128=_0x23e948%0x2710;_0x23e948=Math[_0x1b8dfd(0xbc)](_0x23e948/0x2710);for(let _0x341ce5=0x0;_0x39c128>0x0;_0x341ce5++){let _0x5c85b8=_0x39c128%0xa;_0x1d07e5=(_0x5c85b8?_0x231e62[_0x5c85b8]+_0x5a98d6[_0x341ce5]:'')+_0x1d07e5,_0x39c128=Math[_0x1b8dfd(0xbc)](_0x39c128/0xa);}_0x2facb=_0x1d07e5+(_0x1d07e5?_0x40e969[_0x4fe058]:_0x40e969[_0x4fe058]&&!_0x2facb[_0x1b8dfd(0xc6)]('零')?'零':'')+_0x2facb;}_0x2facb+=_0x2facb?'元':'零元';if(_0x4eaf79>0x0){let _0x27389b=Math['floor'](_0x4eaf79/0xa),_0x471539=_0x4eaf79%0xa;_0x2facb+=(_0x27389b?_0x231e62[_0x27389b]+'角':'')+(_0x471539?_0x231e62[_0x471539]+'分':'');}else _0x2facb+='整';return _0x2facb[_0x1b8dfd(0xaa)](/零{2,}/g,'零')[_0x1b8dfd(0xaa)](/零元/,'元');}function getMonthDate(_0x4387b6){const _0x1646e0=a5_0x4a0a5e;(!_0x4387b6||_0x4387b6[_0x1646e0(0xb8)]()==='')&&(_0x4387b6=new Date()[_0x1646e0(0xed)]()+'-'+(new Date()[_0x1646e0(0xe5)]()+0x1));let _0x1f3052=[],[_0x3e5289,_0x41f6d1]=_0x4387b6[_0x1646e0(0xd6)]('-')[_0x1646e0(0xc5)](Number),_0x4c1649=new Date(_0x3e5289,_0x41f6d1,0x0),_0xbcf5eb=_0x4c1649['getDate']();for(let _0xe28d0c=0x1;_0xe28d0c<=_0xbcf5eb;_0xe28d0c++){let _0x36d815=_0xe28d0c<0xa?'0'+_0xe28d0c:''+_0xe28d0c,_0x3cd798=_0x41f6d1<0xa?'0'+_0x41f6d1:''+_0x41f6d1;_0x1f3052[_0x1646e0(0xb4)]({'date':_0x3e5289+'-'+_0x3cd798+'-'+_0x36d815,'disable':!![]});}return _0x1f3052;}function a5_0x5345(_0x10a79a,_0x1591e1){const _0x443332=a5_0x4433();return a5_0x5345=function(_0x534598,_0x29a6c8){_0x534598=_0x534598-0xaa;let _0x37a988=_0x443332[_0x534598];return _0x37a988;},a5_0x5345(_0x10a79a,_0x1591e1);}function getToday(_0x10b08d){const _0x540101=a5_0x4a0a5e;var _0x1665fa=new Date(),_0x335235=String(_0x1665fa[_0x540101(0xe2)]())[_0x540101(0xc2)](0x2,'0'),_0x3619aa=String(_0x1665fa[_0x540101(0xe5)]()+0x1)['padStart'](0x2,'0'),_0x49ca30=_0x1665fa['getFullYear']();return _0x1665fa=_0x49ca30+'-'+_0x3619aa+'-'+_0x335235,_0x1665fa;}function resetObject(_0x2b6e91){const _0x39b24c=a5_0x4a0a5e;let _0x543731=JSON[_0x39b24c(0xc0)](JSON[_0x39b24c(0xe4)](_0x2b6e91));for(const _0x416f19 in _0x543731){if(typeof _0x543731[_0x416f19]===_0x39b24c(0xb0))_0x543731[_0x416f19]=0x0;else{if(typeof _0x543731[_0x416f19]===_0x39b24c(0xc4))_0x543731[_0x416f19]=![];else{if(Array[_0x39b24c(0xbe)](_0x543731[_0x416f19]))_0x543731[_0x416f19]=[];else typeof _0x543731[_0x416f19]===_0x39b24c(0xca)&&_0x543731[_0x416f19]!==null?resetObject(_0x543731[_0x416f19]):_0x543731[_0x416f19]='';}}}return _0x543731;}function preciseOperation(_0x5d83f6,_0x21e2b9,_0x53c168,_0x4affca=0xf4240){const _0x2a3aa4=a5_0x4a0a5e;if(isNaN(_0x5d83f6)||isNaN(_0x21e2b9))return NaN;if(!isFinite(_0x5d83f6)||!isFinite(_0x21e2b9))return NaN;let _0x5661ca=BigInt(Math[_0x2a3aa4(0xef)](_0x5d83f6*_0x4affca)),_0x3882b3=BigInt(Math[_0x2a3aa4(0xef)](_0x21e2b9*_0x4affca)),_0x4350d5;switch(_0x53c168){case 0x1:_0x4350d5=_0x5661ca+_0x3882b3;break;case 0x2:_0x4350d5=_0x5661ca-_0x3882b3;break;case 0x3:_0x4350d5=_0x5661ca*_0x3882b3;break;case 0x4:if(_0x3882b3===0x0n)throw new Error(_0x2a3aa4(0xd8));_0x4350d5=_0x5661ca/_0x3882b3;break;default:throw new Error(_0x2a3aa4(0xe9));}return Number(_0x4350d5)/_0x4affca;}function preciseSum(_0x239973){const _0x1c9481=a5_0x4a0a5e;let _0x4c75b0=0x0;for(const _0x5d1d69 of _0x239973){let _0x4b0a06=0x0;if(typeof _0x5d1d69==='string'){const _0x2118e4=parseFloat(_0x5d1d69);!isNaN(_0x2118e4)&&(_0x4b0a06=_0x2118e4);}else typeof _0x5d1d69===_0x1c9481(0xb0)&&(_0x4b0a06=_0x5d1d69);_0x4c75b0=preciseOperation(_0x4c75b0,_0x4b0a06,0x1);}return _0x4c75b0;}function getRelativeDate(_0x20ee2a,_0x14602c=0x0){const _0x28c226=a5_0x4a0a5e,_0x4e765a=new Date(_0x20ee2a);_0x4e765a[_0x28c226(0xac)](_0x4e765a[_0x28c226(0xe2)]()+_0x14602c);const _0x2133f6=_0x4e765a['getFullYear'](),_0x497d50=(_0x4e765a[_0x28c226(0xe5)]()+0x1)[_0x28c226(0xc3)]()[_0x28c226(0xc2)](0x2,'0'),_0x6c6b62=_0x4e765a[_0x28c226(0xe2)]()['toString']()[_0x28c226(0xc2)](0x2,'0');return _0x2133f6+'-'+_0x497d50+'-'+_0x6c6b62;}function validateFields(_0x2b5a44,_0x129dfc,_0x5c2df1=''){for(let _0x347869 of _0x129dfc){if(_0x2b5a44[_0x347869]===_0x5c2df1)return!![];}return![];}function mergeObjects(_0x213a40,_0x681a2){const _0x368a1d=a5_0x4a0a5e;for(const _0xc09374 in _0x213a40){_0x681a2[_0x368a1d(0xd5)](_0xc09374)&&(_0x213a40[_0xc09374]=_0x681a2[_0xc09374]);}return _0x213a40;}const formatToDecimal=(_0x5a6684,_0x402f9d=0x2)=>{const _0x3f9aff=a5_0x4a0a5e;if(isNaN(_0x402f9d)||_0x402f9d<0x0)return _0x5a6684;let _0x2fc692=Number(_0x5a6684);if(!isFinite(_0x2fc692))return _0x5a6684;return _0x402f9d=Math[_0x3f9aff(0xaf)](0x0,Math[_0x3f9aff(0xbc)](_0x402f9d)),_0x2fc692[_0x3f9aff(0xbd)](_0x402f9d);};function findKeysEndingWith(_0x3c6315,_0x12faf7=a5_0x4a0a5e(0xcf)){const _0x160811=a5_0x4a0a5e;let _0xc76fb2=[];for(var _0x163a9a in _0x3c6315){if(_0x3c6315[_0x160811(0xd5)](_0x163a9a)){if(_0x163a9a[_0x160811(0xe6)](_0x12faf7))_0xc76fb2[_0x160811(0xb4)](_0x163a9a);}}return _0xc76fb2;}function guid(_0x1713d7=0x20,_0x30bf64=!![],_0xc5fe67=null){const _0x1dd1e0=a5_0x4a0a5e,_0x50c662=_0x1dd1e0(0xd2)['split'](''),_0x550c20=[];_0xc5fe67=_0xc5fe67||_0x50c662[_0x1dd1e0(0xb3)];if(_0x1713d7){for(let _0x20b027=0x0;_0x20b027<_0x1713d7;_0x20b027++)_0x550c20[_0x20b027]=_0x50c662[0x0|Math[_0x1dd1e0(0xcc)]()*_0xc5fe67];}else{let _0x476c89;_0x550c20[0x8]=_0x550c20[0xd]=_0x550c20[0x12]=_0x550c20[0x17]='-',_0x550c20[0xe]='4';for(let _0x106ace=0x0;_0x106ace<0x24;_0x106ace++){!_0x550c20[_0x106ace]&&(_0x476c89=0x0|Math['random']()*0x10,_0x550c20[_0x106ace]=_0x50c662[_0x106ace==0x13?_0x476c89&0x3|0x8:_0x476c89]);}}if(_0x30bf64)return _0x550c20[_0x1dd1e0(0xab)](),'u'+_0x550c20[_0x1dd1e0(0xb6)]('');return _0x550c20[_0x1dd1e0(0xb6)]('');}function a5_0x4433(){const _0x18b8f1=['YYYY','object','698396NEMXZj','random','906QsFWBk','slice','_qh','600680qAEgzI','function','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','YYYY-MM-DD','getHours','hasOwnProperty','split','Quantity\x20should\x20be\x20greater\x20than\x200.','除数不能为0','743503clumVD','surname','monthTitle','2725540vyKzGh','6549144veJJEH','exec','fjbh','getTime','setHours','getDate','2082WYfzts','stringify','getMonth','endsWith','substring','forEach','无效的操作符,操作符应为1、2、3或4','value','en-US','match','getFullYear','label','round','replace','shift','setDate','dayTitle','string','max','number','givenName','both','length','push','84oOjTsF','join','call','trim','abs','find','error','floor','toFixed','isArray','getMinutes','parse','yearTitle','padStart','toString','boolean','map','includes','3475431izHpWX','5YuHJfH'];a5_0x4433=function(){return _0x18b8f1;};return a5_0x4433();}function trim(_0x404d23,_0x5c6175=a5_0x4a0a5e(0xb2)){const _0x2cd746=a5_0x4a0a5e;_0x404d23=String(_0x404d23);if(_0x5c6175==_0x2cd746(0xb2))return _0x404d23[_0x2cd746(0xaa)](/^\s+|\s+$/g,'');if(_0x5c6175=='left')return _0x404d23[_0x2cd746(0xaa)](/^\s*/,'');if(_0x5c6175=='right')return _0x404d23[_0x2cd746(0xaa)](/(\s*$)/g,'');if(_0x5c6175=='all')return _0x404d23[_0x2cd746(0xaa)](/\s+/g,'');return _0x404d23;}export default{'guid':guid,'trim':trim,'findKeysEndingWith':findKeysEndingWith,'formatToDecimal':formatToDecimal,'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'urlEncode':urlEncode,'dateFormat':dateFormat,'formatDate':formatDate,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
|