yunlin 1.0.29 → 1.0.31

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 CHANGED
@@ -1 +1 @@
1
- function a1_0x2ee9(_0x450015,_0xaa5658){var _0x57f04b=a1_0x57f0();return a1_0x2ee9=function(_0x2ee98e,_0x17be28){_0x2ee98e=_0x2ee98e-0xf7;var _0xf01451=_0x57f04b[_0x2ee98e];return _0xf01451;},a1_0x2ee9(_0x450015,_0xaa5658);}(function(_0x268aa5,_0x3c437f){var _0x3abb38=a1_0x2ee9,_0x5f3e0e=_0x268aa5();while(!![]){try{var _0x490555=-parseInt(_0x3abb38(0xfb))/0x1*(parseInt(_0x3abb38(0xf8))/0x2)+parseInt(_0x3abb38(0xf9))/0x3+-parseInt(_0x3abb38(0xf7))/0x4*(-parseInt(_0x3abb38(0xff))/0x5)+-parseInt(_0x3abb38(0x100))/0x6*(-parseInt(_0x3abb38(0xfe))/0x7)+parseInt(_0x3abb38(0xfc))/0x8*(-parseInt(_0x3abb38(0xfa))/0x9)+parseInt(_0x3abb38(0x101))/0xa*(parseInt(_0x3abb38(0xfd))/0xb)+-parseInt(_0x3abb38(0x102))/0xc;if(_0x490555===_0x3c437f)break;else _0x5f3e0e['push'](_0x5f3e0e['shift']());}catch(_0x2eb8fa){_0x5f3e0e['push'](_0x5f3e0e['shift']());}}}(a1_0x57f0,0xa5573));import a1_0x157d82 from'./utils';function a1_0x57f0(){var _0x257274=['231749GQbLjg','5roGrKg','156oZxbxN','570OZEyzL','11958768GnivJv','4475796zOOIHC','2nEQEJv','2053275RxSWIU','3601359wJCljS','977635VZBcxx','8lzuPJC','74767JrpFKf'];a1_0x57f0=function(){return _0x257274;};return a1_0x57f0();}import a1_0x310122 from'./func';import a1_0x1fbdd0 from'./test';import a1_0x5f5967 from'./room';export default{'test':a1_0x1fbdd0,'utils':a1_0x157d82,'func':a1_0x310122,'room':a1_0x5f5967};
1
+ (function(_0x5307eb,_0x38f305){var _0x543684=a0_0xc605,_0x41d7dc=_0x5307eb();while(!![]){try{var _0x250ee0=parseInt(_0x543684(0x8b))/0x1+-parseInt(_0x543684(0x85))/0x2+parseInt(_0x543684(0x86))/0x3+-parseInt(_0x543684(0x83))/0x4*(-parseInt(_0x543684(0x84))/0x5)+parseInt(_0x543684(0x87))/0x6*(-parseInt(_0x543684(0x82))/0x7)+parseInt(_0x543684(0x88))/0x8*(-parseInt(_0x543684(0x81))/0x9)+parseInt(_0x543684(0x89))/0xa*(-parseInt(_0x543684(0x8a))/0xb);if(_0x250ee0===_0x38f305)break;else _0x41d7dc['push'](_0x41d7dc['shift']());}catch(_0x5da411){_0x41d7dc['push'](_0x41d7dc['shift']());}}}(a0_0x12c1,0x7e6a1));import a0_0x53234b from'./utils';import a0_0x246047 from'./price';function a0_0x12c1(){var _0xa7e00b=['10uSxGKu','66055qobQjM','629370bCITbK','2979TVHjsZ','469Vhvnzm','55376AaFAzu','275UcTKMg','363748zeQeFg','2455083MUnjNd','58668tkiATy','20504CtmjcP'];a0_0x12c1=function(){return _0xa7e00b;};return a0_0x12c1();}function a0_0xc605(_0x8b191f,_0x1762ee){var _0x12c13b=a0_0x12c1();return a0_0xc605=function(_0xc6054c,_0x1e0f51){_0xc6054c=_0xc6054c-0x81;var _0x1c865d=_0x12c13b[_0xc6054c];return _0x1c865d;},a0_0xc605(_0x8b191f,_0x1762ee);}import a0_0x3fee7b from'./test';import a0_0x5804fd from'./room';export default{'test':a0_0x3fee7b,'utils':a0_0x53234b,'price':a0_0x246047,'room':a0_0x5804fd};
package/dist/price.js ADDED
@@ -0,0 +1 @@
1
+ const a1_0x1a1a80=a1_0x35f4;(function(_0x3d2da9,_0x310cd2){const _0x265caf=a1_0x35f4,_0x27d37d=_0x3d2da9();while(!![]){try{const _0x147ee1=parseInt(_0x265caf(0x14c))/0x1+-parseInt(_0x265caf(0x158))/0x2+parseInt(_0x265caf(0x159))/0x3+parseInt(_0x265caf(0x142))/0x4+parseInt(_0x265caf(0x12e))/0x5*(parseInt(_0x265caf(0x157))/0x6)+parseInt(_0x265caf(0x15c))/0x7*(parseInt(_0x265caf(0x14e))/0x8)+-parseInt(_0x265caf(0x15f))/0x9*(parseInt(_0x265caf(0x12d))/0xa);if(_0x147ee1===_0x310cd2)break;else _0x27d37d['push'](_0x27d37d['shift']());}catch(_0xb28735){_0x27d37d['push'](_0x27d37d['shift']());}}}(a1_0x471d,0x3412c));function handleCosting(_0x537c94,_0x7a796d='',_0x425ef2='-',_0x12bc2d={'people':a1_0x1a1a80(0x12b),'service':'附加服務','trip':a1_0x1a1a80(0x13c),'other':a1_0x1a1a80(0x140),'reduction':a1_0x1a1a80(0x14b),'totalprice':'總計','airtax':a1_0x1a1a80(0x131)},_0x3a4a0d={'adult':'成人','child':'兒童','childusebed':'兒童[占床]','infant':'嬰兒','half':'拼房','tip':'小費','elder':'遊客優惠','vip':a1_0x1a1a80(0x162),'promotion':'促銷','insure':'保險費用','coupon':a1_0x1a1a80(0x146),'point':'積分','tax':'稅金','viprecharge':a1_0x1a1a80(0x137),'r':'人','t':'天'}){const _0x52edf7=a1_0x1a1a80;let _0x4f1065=[];const _0x1c8d04='\x20*\x20',_0x875e65=_0x537c94[_0x52edf7(0x152)](_0x256a6b=>_0x256a6b['strLx']=='base');if(_0x875e65[_0x52edf7(0x151)]){let _0x55b014={'title':_0x12bc2d[_0x52edf7(0x165)],'type':_0x52edf7(0x145),'list':[]};_0x875e65[_0x52edf7(0x13e)](_0x38b55d=>{const _0x36d753=_0x52edf7;_0x55b014['list'][_0x36d753(0x12f)]({'title':_0x3a4a0d[_0x38b55d[_0x36d753(0x148)]],'info':_0x7a796d+_0x38b55d[_0x36d753(0x160)]+_0x1c8d04+_0x38b55d[_0x36d753(0x130)],'nRs':_0x38b55d[_0x36d753(0x130)],'unit':_0x38b55d[_0x36d753(0x160)],'cb':_0x38b55d[_0x36d753(0x12c)],'type':'base'});}),_0x4f1065[_0x52edf7(0x12f)](_0x55b014);}const _0x254a6e=_0x537c94[_0x52edf7(0x152)](_0x4643af=>_0x4643af[_0x52edf7(0x138)]=='service');if(_0x254a6e[_0x52edf7(0x151)]){let _0x5bacdb={'title':_0x12bc2d[_0x52edf7(0x141)],'type':'service','list':[]};_0x254a6e['map'](_0x5c3160=>{const _0x13a524=_0x52edf7;_0x5bacdb[_0x13a524(0x14d)]['push']({'title':_0x5c3160[_0x13a524(0x13f)]+('['+_0x5c3160['itemname']+']'),'info':_0x7a796d+_0x5c3160[_0x13a524(0x133)]+_0x1c8d04+_0x5c3160['num'],'nRs':_0x5c3160[_0x13a524(0x150)],'unit':_0x5c3160[_0x13a524(0x133)],'cb':_0x5c3160['baseprice'],'type':'service'});}),_0x4f1065[_0x52edf7(0x12f)](_0x5bacdb);}const _0x500705=_0x537c94['filter'](_0x270141=>_0x270141['strLx']==_0x52edf7(0x139));if(_0x500705[_0x52edf7(0x151)]){let _0x252f16={'title':_0x12bc2d[_0x52edf7(0x139)],'type':_0x52edf7(0x139),'list':[]};_0x500705[_0x52edf7(0x13e)](_0xc03bfb=>{const _0x302756=_0x52edf7;_0xc03bfb['adultnum']!='0'&&_0x252f16[_0x302756(0x14d)][_0x302756(0x12f)]({'title':_0xc03bfb[_0x302756(0x13f)]+('['+_0x3a4a0d[_0x302756(0x164)]+']'),'info':_0x7a796d+_0xc03bfb[_0x302756(0x15d)]+_0x1c8d04+_0xc03bfb['adultnum'],'nRs':_0xc03bfb[_0x302756(0x136)],'unit':_0xc03bfb[_0x302756(0x15d)],'cb':_0xc03bfb[_0x302756(0x132)],'type':'trip'}),_0xc03bfb[_0x302756(0x166)]!='0'&&_0x252f16[_0x302756(0x14d)][_0x302756(0x12f)]({'title':_0xc03bfb[_0x302756(0x13f)]+('['+_0x3a4a0d[_0x302756(0x144)]+']'),'info':_0x7a796d+_0xc03bfb[_0x302756(0x13d)]+_0x1c8d04+_0xc03bfb[_0x302756(0x166)],'nRs':_0xc03bfb['childnum'],'unit':_0xc03bfb[_0x302756(0x13d)],'cb':_0xc03bfb['basechildprice'],'type':'trip'});}),_0x4f1065[_0x52edf7(0x12f)](_0x252f16);}let _0x401023=[];const _0x260168=_0x537c94[_0x52edf7(0x152)](_0x280d14=>_0x280d14[_0x52edf7(0x138)]=='elder');_0x260168[_0x52edf7(0x151)]&&_0x260168['map'](_0x5a2cd8=>{const _0x304f24=_0x52edf7,_0x36cf30=_0x5a2cd8[_0x304f24(0x13f)][_0x304f24(0x14f)]('|')||[''];_0x401023[_0x304f24(0x12f)]({'title':_0x3a4a0d[_0x304f24(0x14a)]+('['+_0x36cf30[0x0]+']'),'info':_0x7a796d+_0x425ef2+_0x5a2cd8['money'],'unit':_0x5a2cd8[_0x304f24(0x149)],'cb':_0x5a2cd8[_0x304f24(0x149)],'type':_0x304f24(0x14a)});});const _0x4ef73c=_0x537c94['filter'](_0xec3b2b=>_0xec3b2b[_0x52edf7(0x138)]==_0x52edf7(0x15b));_0x4ef73c[_0x52edf7(0x151)]&&_0x4ef73c[_0x52edf7(0x13e)](_0x266330=>{const _0xabc7ef=_0x52edf7;_0x401023[_0xabc7ef(0x12f)]({'title':_0x3a4a0d[_0xabc7ef(0x15a)]+('['+_0x266330[_0xabc7ef(0x13f)]+']'),'info':_0x7a796d+_0x425ef2+_0x266330[_0xabc7ef(0x149)],'unit':_0x266330[_0xabc7ef(0x149)],'cb':_0x266330[_0xabc7ef(0x149)],'type':'vip'});});const _0x1ec54b=_0x537c94[_0x52edf7(0x152)](_0x13b2e9=>_0x13b2e9[_0x52edf7(0x138)]=='promotion');_0x1ec54b[_0x52edf7(0x151)]&&_0x1ec54b[_0x52edf7(0x13e)](_0x287adc=>{const _0x3a7beb=_0x52edf7;_0x401023[_0x3a7beb(0x12f)]({'title':_0x3a4a0d[_0x3a7beb(0x156)],'info':_0x7a796d+_0x425ef2+_0x287adc[_0x3a7beb(0x149)],'unit':_0x287adc[_0x3a7beb(0x149)],'cb':_0x287adc[_0x3a7beb(0x149)],'type':'promotion'});});_0x401023['length']&&_0x4f1065[_0x52edf7(0x12f)]({'title':_0x12bc2d['reduction'],'type':'reduction','list':_0x401023});const _0x2075e2=_0x537c94[_0x52edf7(0x152)](_0x2dfb2f=>_0x2dfb2f[_0x52edf7(0x138)]==_0x52edf7(0x147));if(_0x2075e2['length']){let _0x4e71d5={'title':_0x12bc2d['airtax'],'type':_0x52edf7(0x147),'list':[]};_0x2075e2[_0x52edf7(0x13e)](_0x22a6da=>{const _0x4ffa35=_0x52edf7;_0x4e71d5[_0x4ffa35(0x14d)][_0x4ffa35(0x12f)]({'title':_0x3a4a0d[_0x22a6da[_0x4ffa35(0x154)]],'info':_0x7a796d+_0x22a6da['unitprice']+_0x1c8d04+_0x22a6da['sl'],'nRs':_0x22a6da['sl'],'unit':_0x22a6da['unitprice'],'cb':_0x22a6da[_0x4ffa35(0x13b)],'type':_0x22a6da[_0x4ffa35(0x154)]});}),_0x4f1065[_0x52edf7(0x12f)](_0x4e71d5);}const _0x30c7f2=[_0x52edf7(0x145),'service',_0x52edf7(0x139),_0x52edf7(0x14a),_0x52edf7(0x15b),'promotion','airtax'],_0x49bf5d=_0x537c94[_0x52edf7(0x152)](_0x47a7c9=>!_0x30c7f2[_0x52edf7(0x134)](_0x47a7c9['strLx']));let _0x21d480={'title':_0x12bc2d[_0x52edf7(0x135)],'type':_0x52edf7(0x135),'list':[]};for(var _0x4ec39f=0x0;_0x4ec39f<_0x49bf5d['length'];_0x4ec39f++){const _0x5432a2=_0x49bf5d[_0x4ec39f];_0x5432a2[_0x52edf7(0x138)]==_0x52edf7(0x169)&&_0x21d480[_0x52edf7(0x14d)]['push']({'title':_0x3a4a0d[_0x52edf7(0x169)]+('['+_0x5432a2[_0x52edf7(0x13f)]+']'),'info':_0x7a796d+_0x5432a2[_0x52edf7(0x149)],'unit':_0x5432a2[_0x52edf7(0x149)],'type':_0x5432a2[_0x52edf7(0x138)]}),_0x5432a2[_0x52edf7(0x138)]==_0x52edf7(0x163)&&_0x21d480['list'][_0x52edf7(0x12f)]({'title':_0x3a4a0d['insure']+('['+_0x5432a2[_0x52edf7(0x13f)]+']'),'info':_0x7a796d+_0x5432a2[_0x52edf7(0x15e)]+_0x1c8d04+_0x5432a2['users']+_0x3a4a0d['r'],'nRs':_0x5432a2['users'],'unit':_0x5432a2[_0x52edf7(0x15e)],'cb':_0x5432a2[_0x52edf7(0x15e)],'type':_0x52edf7(0x163)}),(_0x5432a2[_0x52edf7(0x138)]==_0x52edf7(0x161)||_0x5432a2[_0x52edf7(0x138)]=='point')&&_0x21d480['list'][_0x52edf7(0x12f)]({'title':_0x3a4a0d[_0x5432a2[_0x52edf7(0x138)]],'info':_0x7a796d+_0x425ef2+_0x5432a2[_0x52edf7(0x149)],'unit':_0x5432a2[_0x52edf7(0x149)],'type':_0x5432a2[_0x52edf7(0x138)]}),_0x5432a2[_0x52edf7(0x138)]==_0x52edf7(0x153)&&_0x21d480[_0x52edf7(0x14d)][_0x52edf7(0x12f)]({'title':_0x3a4a0d[_0x5432a2[_0x52edf7(0x138)]],'info':_0x7a796d+_0x5432a2[_0x52edf7(0x153)]+_0x1c8d04+_0x5432a2[_0x52edf7(0x12a)]+_0x3a4a0d['r']+_0x1c8d04+_0x5432a2['tipday']+_0x3a4a0d['t'],'nRs':_0x5432a2['tipuser'],'count':_0x5432a2[_0x52edf7(0x168)],'unit':_0x5432a2[_0x52edf7(0x153)],'type':_0x5432a2[_0x52edf7(0x138)]}),_0x5432a2[_0x52edf7(0x138)]==_0x52edf7(0x13a)&&_0x21d480['list']['push']({'title':_0x3a4a0d[_0x5432a2[_0x52edf7(0x138)]],'info':_0x7a796d+_0x5432a2['totaltax'],'unit':_0x5432a2[_0x52edf7(0x155)],'type':_0x5432a2[_0x52edf7(0x138)]});}_0x21d480['list'][_0x52edf7(0x151)]&&_0x4f1065[_0x52edf7(0x12f)](_0x21d480);const _0xee25d0=_0x537c94[_0x52edf7(0x152)](_0x3bb26a=>_0x3bb26a['strLx']==_0x52edf7(0x143));return _0xee25d0['length']&&_0x4f1065[_0x52edf7(0x12f)]({'title':_0x12bc2d[_0x52edf7(0x143)],'type':_0x52edf7(0x143),'list':[{'title':_0x12bc2d[_0x52edf7(0x143)],'info':_0x7a796d+_0xee25d0[0x0][_0x52edf7(0x167)]}]}),_0x4f1065;}function a1_0x35f4(_0xd71cc3,_0x275bb9){const _0x471d3f=a1_0x471d();return a1_0x35f4=function(_0x35f470,_0x16ca3c){_0x35f470=_0x35f470-0x12a;let _0x4541c3=_0x471d3f[_0x35f470];return _0x4541c3;},a1_0x35f4(_0xd71cc3,_0x275bb9);}export default{'handleCosting':handleCosting};function a1_0x471d(){const _0x473a9f=['price','tipday','viprecharge','tipuser','人員費用','fJcbzlsjUnit','10ehAgpm','5Brmvwx','push','nRs','機場稅','baseadultprice','unitprice','includes','other','adultnum','會員充值','strLx','trip','tax','unitpricewb','附加行程','childprice','map','name','其他費用','service','88624iIcINA','totalprice','child','base','優惠券','airtax','strJgbm','money','elder','減免費用','317634SJtrMX','list','248Pckwaq','split','num','length','filter','tip','rylx','totaltax','promotion','2461902slloki','446620BgfZjx','426543DqbyMk','vip','vipdiscounted','54453FfDVaL','adultprice','unit','6271515FYyyAh','fLsjUnit','coupon','會員減免','insure','adult','people','childnum'];a1_0x471d=function(){return _0x473a9f;};return a1_0x471d();}
package/dist/room.js CHANGED
@@ -1 +1 @@
1
- function a2_0x36a5(){const _0x460ae8=['4605181IudNnA','max','strCode','isalotment','find','isArray','filter','infantnum','forEach','push','90JstYSJ','childrennum','half','some','1464CYaDFF','4440mlcWmm','931392ISnRGW','list','2708847tWFKMW','73879aNglEJ','282AHosDH','2157178krkojT','133930USJkSa','infant','child','adultnum','nMaxIn','length','map'];a2_0x36a5=function(){return _0x460ae8;};return a2_0x36a5();}(function(_0x15b398,_0x4787bf){const _0x8c9345=a2_0x4eba,_0xe9e023=_0x15b398();while(!![]){try{const _0xec41a6=-parseInt(_0x8c9345(0x201))/0x1+parseInt(_0x8c9345(0x203))/0x2+parseInt(_0x8c9345(0x1fc))/0x3*(parseInt(_0x8c9345(0x1fd))/0x4)+-parseInt(_0x8c9345(0x204))/0x5*(-parseInt(_0x8c9345(0x202))/0x6)+parseInt(_0x8c9345(0x1ee))/0x7+parseInt(_0x8c9345(0x1fe))/0x8+-parseInt(_0x8c9345(0x200))/0x9*(parseInt(_0x8c9345(0x1f8))/0xa);if(_0xec41a6===_0x4787bf)break;else _0xe9e023['push'](_0xe9e023['shift']());}catch(_0x279f93){_0xe9e023['push'](_0xe9e023['shift']());}}}(a2_0x36a5,0xd4988));function getRoomCount(_0x54015c,_0x362269){const _0x17481c=a2_0x4eba;!Array[_0x17481c(0x1f3)](_0x54015c)&&(_0x54015c=[_0x54015c]);let _0x510f17=[];return _0x54015c[_0x17481c(0x1f6)](_0x2572be=>{const _0x224885=_0x17481c;let _0x26291d=![];if(!_0x2572be[_0x224885(0x1f1)]){let _0x1dc697=_0x2572be[_0x224885(0x1ea)];(_0x2572be['childusebed']||!_0x362269[_0x224885(0x1e9)])&&(_0x1dc697+=_0x2572be[_0x224885(0x1f9)]);const _0x4a325b=_0x362269[_0x224885(0x1ff)][_0x224885(0x1f2)](_0x302d4d=>Number(_0x302d4d['strCode'])===_0x1dc697);if(!_0x4a325b)_0x26291d=!![];else{let _0x5738a1=_0x2572be['adultnum']+_0x2572be['childrennum']+_0x2572be[_0x224885(0x1f5)];_0x5738a1>_0x4a325b[_0x224885(0x1eb)]&&(_0x26291d=!![]);}}_0x510f17[_0x224885(0x1f7)](_0x26291d);}),Array[_0x17481c(0x1f3)](_0x54015c)&&_0x54015c[_0x17481c(0x1ec)]===0x1?_0x510f17[0x0]:_0x510f17;}function getRoomConfig(_0x1b7bf8){const _0x4bddd9=a2_0x4eba;let _0x272f6f=_0x1b7bf8[_0x4bddd9(0x1fb)](_0x19b94b=>_0x19b94b[_0x4bddd9(0x1f0)]==='childusebed'),_0x463586=_0x1b7bf8[_0x4bddd9(0x1fb)](_0x38e177=>_0x38e177[_0x4bddd9(0x1f0)]===_0x4bddd9(0x1fa));const _0x833ba6=_0x1b7bf8['some'](_0x290f8c=>_0x290f8c[_0x4bddd9(0x1f0)]===_0x4bddd9(0x205)),_0x3605b7=_0x1b7bf8[_0x4bddd9(0x1fb)](_0x39a120=>_0x39a120[_0x4bddd9(0x1f0)]===_0x4bddd9(0x1e9)),_0x48c674=_0x1b7bf8['map'](_0x58bbc9=>{const _0x5c54fd=_0x4bddd9;return{'strCode':_0x58bbc9[_0x5c54fd(0x1f0)],'nMaxIn':_0x58bbc9['nMaxIn']};});if(_0x463586){const _0x4311ec=_0x1b7bf8['some'](_0x3ba505=>_0x3ba505[_0x4bddd9(0x1f0)]=='2');_0x463586=_0x463586&&_0x4311ec;}if(_0x272f6f)_0x272f6f=_0x272f6f&&_0x3605b7;return{'childusebed':_0x272f6f,'half':_0x463586,'infant':_0x833ba6,'child':_0x3605b7,'list':_0x48c674};}function isRoomPiece(_0x25e588,_0x2488b4){const _0x5d9e16=a2_0x4eba;return _0x2488b4&&_0x25e588['adultnum']===0x1&&_0x25e588[_0x5d9e16(0x1f9)]===0x0&&_0x25e588[_0x5d9e16(0x1f5)]===0x0;}function getRoomItemRange(_0x1cffeb,_0x422427,_0x1a41b1={'child':'兒童','infant':'嬰兒'}){const _0x2651a2=a2_0x4eba;if(!_0x422427[_0x2651a2(0x1ec)])return{'list':[],'yelist':[]};const _0x2e64e4=Math[_0x2651a2(0x1ef)](..._0x422427[_0x2651a2(0x1ed)](_0xdaec1d=>Number(_0xdaec1d[_0x2651a2(0x1eb)]))),_0x2be40e=_0x2e64e4-_0x1cffeb[_0x2651a2(0x1ea)]-_0x1cffeb['infantnum'];let _0x2cf226=_0x2e64e4-_0x1cffeb['adultnum']-_0x1cffeb[_0x2651a2(0x1f9)];if(_0x2cf226>0x2)_0x2cf226=0x2;const _0x4566ee=(_0x1df90d,_0x1fc168)=>{const _0x18ad45=_0x2651a2,_0x318f81=[];_0x318f81[_0x18ad45(0x1f7)]({'value':0x0,'text':'0\x20'+_0x1fc168});for(let _0x2c9415=0x0;_0x2c9415<_0x1df90d;_0x2c9415++){_0x318f81['push']({'value':_0x2c9415+0x1,'text':_0x2c9415+0x1+'\x20'+_0x1fc168});}return _0x318f81;};return{'list':_0x4566ee(_0x2be40e,_0x1a41b1['child']),'yelist':_0x4566ee(_0x2cf226,_0x1a41b1[_0x2651a2(0x205)])};}function getAdultRange(_0x19fe72,_0x2f78d5='成人'){const _0x4219b2=a2_0x4eba;let _0x2ffc0b=Math[_0x4219b2(0x1ef)](..._0x19fe72['map'](_0x457f07=>Number(_0x457f07[_0x4219b2(0x1f0)]))[_0x4219b2(0x1f4)](_0x54f4b1=>!isNaN(_0x54f4b1)));if(!_0x2ffc0b)_0x2ffc0b=0x4;let _0x26cac3=[];for(var _0x46938d=0x1;_0x46938d<_0x2ffc0b+0x1;_0x46938d++){_0x26cac3[_0x4219b2(0x1f7)]({'value':_0x46938d,'text':_0x46938d+'\x20'+_0x2f78d5});}return _0x26cac3;}function a2_0x4eba(_0x527a5e,_0x41a692){const _0x36a52f=a2_0x36a5();return a2_0x4eba=function(_0x4ebaa2,_0x266e1b){_0x4ebaa2=_0x4ebaa2-0x1e9;let _0xdf51b1=_0x36a52f[_0x4ebaa2];return _0xdf51b1;},a2_0x4eba(_0x527a5e,_0x41a692);}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
1
+ (function(_0x4199da,_0x3061d3){const _0x53a439=a2_0x3900,_0x2e1300=_0x4199da();while(!![]){try{const _0x200b82=parseInt(_0x53a439(0x1a4))/0x1+-parseInt(_0x53a439(0x1aa))/0x2+parseInt(_0x53a439(0x19b))/0x3*(-parseInt(_0x53a439(0x1a1))/0x4)+-parseInt(_0x53a439(0x1a8))/0x5*(parseInt(_0x53a439(0x192))/0x6)+parseInt(_0x53a439(0x194))/0x7*(-parseInt(_0x53a439(0x1a9))/0x8)+parseInt(_0x53a439(0x190))/0x9*(parseInt(_0x53a439(0x18f))/0xa)+parseInt(_0x53a439(0x193))/0xb*(parseInt(_0x53a439(0x19a))/0xc);if(_0x200b82===_0x3061d3)break;else _0x2e1300['push'](_0x2e1300['shift']());}catch(_0x199014){_0x2e1300['push'](_0x2e1300['shift']());}}}(a2_0x2334,0x9b591));function getRoomCount(_0x24839d,_0x202bbd){const _0x1ad731=a2_0x3900,_0x1b7856=Array['isArray'](_0x24839d);if(!_0x1b7856)_0x24839d=[_0x24839d];let _0x642ace=[];return _0x24839d[_0x1ad731(0x197)](_0x36f96d=>{const _0x54dc4d=_0x1ad731;let _0x1852f4=![];if(!_0x36f96d[_0x54dc4d(0x1a5)]){let _0x59499b=_0x36f96d['adultnum'];if(_0x36f96d['childusebed']||!_0x202bbd[_0x54dc4d(0x19d)])_0x59499b+=_0x36f96d[_0x54dc4d(0x1a7)];const _0x4335e5=_0x202bbd[_0x54dc4d(0x1a3)][_0x54dc4d(0x1ac)](_0x4b9fff=>Number(_0x4b9fff[_0x54dc4d(0x1a0)])===_0x59499b);if(!_0x4335e5)_0x1852f4=!![];else{let _0x100e7a=_0x36f96d[_0x54dc4d(0x198)]+_0x36f96d['childrennum']+_0x36f96d[_0x54dc4d(0x1a2)];_0x100e7a>_0x4335e5['nMaxIn']&&(_0x1852f4=!![]);}}_0x642ace['push'](_0x1852f4);}),_0x1b7856?_0x642ace:_0x642ace[0x0];}function a2_0x3900(_0x3f9ccb,_0x2e6e0c){const _0x233436=a2_0x2334();return a2_0x3900=function(_0x3900ec,_0xb82a53){_0x3900ec=_0x3900ec-0x18f;let _0x5a14ec=_0x233436[_0x3900ec];return _0x5a14ec;},a2_0x3900(_0x3f9ccb,_0x2e6e0c);}function getRoomConfig(_0x51eab8){const _0x3cff35=a2_0x3900;let _0x1478b7=_0x51eab8[_0x3cff35(0x199)](_0x4fde7=>_0x4fde7[_0x3cff35(0x1a0)]===_0x3cff35(0x19e)),_0x26a3ca=_0x51eab8[_0x3cff35(0x199)](_0xfaf42e=>_0xfaf42e[_0x3cff35(0x1a0)]===_0x3cff35(0x1ab));const _0x9643a6=_0x51eab8['some'](_0x53c180=>_0x53c180['strCode']==='infant'),_0x351736=_0x51eab8[_0x3cff35(0x199)](_0x1c2f6e=>_0x1c2f6e[_0x3cff35(0x1a0)]===_0x3cff35(0x19d)),_0x3d8dd3=_0x51eab8[_0x3cff35(0x19c)](_0x9c9071=>{const _0x1cfdb5=_0x3cff35;return{'strCode':_0x9c9071[_0x1cfdb5(0x1a0)],'nMaxIn':_0x9c9071[_0x1cfdb5(0x196)]};});if(_0x26a3ca){const _0xd596d7=_0x51eab8[_0x3cff35(0x199)](_0x222abb=>_0x222abb[_0x3cff35(0x1a0)]=='2');_0x26a3ca=_0x26a3ca&&_0xd596d7;}if(_0x1478b7)_0x1478b7=_0x1478b7&&_0x351736;return{'childusebed':_0x1478b7,'half':_0x26a3ca,'infant':_0x9643a6,'child':_0x351736,'list':_0x3d8dd3};}function isRoomPiece(_0x3a40ac,_0x229936){const _0x81871d=a2_0x3900;return _0x229936&&_0x3a40ac[_0x81871d(0x198)]===0x1&&_0x3a40ac[_0x81871d(0x1a7)]===0x0&&_0x3a40ac[_0x81871d(0x1a2)]===0x0;}function a2_0x2334(){const _0x335493=['9179489oIIFnq','4094034eYxWfw','push','nMaxIn','forEach','adultnum','some','36lZORnE','1414563mVDkVz','map','child','childusebed','infant','strCode','4JCDEvE','infantnum','list','154409erpeKf','isalotment','filter','childrennum','5tLcoBW','8UvaOin','1066968FCwEGv','half','find','70wHgdYX','370413QJNPxA','max','4318998gCmeoE'];a2_0x2334=function(){return _0x335493;};return a2_0x2334();}function getRoomItemRange(_0x30c6a2,_0x34e88d,_0x29d75d={'child':'兒童','infant':'嬰兒'}){const _0x101e57=a2_0x3900;if(!_0x34e88d['length'])return{'list':[],'yelist':[]};const _0x4f1ee0=Math['max'](..._0x34e88d[_0x101e57(0x19c)](_0x1fe5b8=>Number(_0x1fe5b8[_0x101e57(0x196)]))),_0x3b5dd2=_0x4f1ee0-_0x30c6a2[_0x101e57(0x198)]-_0x30c6a2[_0x101e57(0x1a2)];let _0x2038c0=_0x4f1ee0-_0x30c6a2[_0x101e57(0x198)]-_0x30c6a2[_0x101e57(0x1a7)];if(_0x2038c0>0x2)_0x2038c0=0x2;const _0x4e1a63=(_0x524fb9,_0x43f633)=>{const _0x203f7e=_0x101e57,_0xdd271c=[];_0xdd271c['push']({'value':0x0,'text':'0\x20'+_0x43f633});for(let _0x3c87ba=0x0;_0x3c87ba<_0x524fb9;_0x3c87ba++){_0xdd271c[_0x203f7e(0x195)]({'value':_0x3c87ba+0x1,'text':_0x3c87ba+0x1+'\x20'+_0x43f633});}return _0xdd271c;};return{'list':_0x4e1a63(_0x3b5dd2,_0x29d75d['child']),'yelist':_0x4e1a63(_0x2038c0,_0x29d75d[_0x101e57(0x19f)])};}function getAdultRange(_0x33b1d1,_0x1ebb33='成人'){const _0xecdd44=a2_0x3900;let _0xaf9393=Math[_0xecdd44(0x191)](..._0x33b1d1[_0xecdd44(0x19c)](_0x494b00=>Number(_0x494b00[_0xecdd44(0x1a0)]))[_0xecdd44(0x1a6)](_0x88c62b=>!isNaN(_0x88c62b)));if(!_0xaf9393)_0xaf9393=0x4;let _0x401d61=[];for(var _0x1f2132=0x1;_0x1f2132<_0xaf9393+0x1;_0x1f2132++){_0x401d61[_0xecdd44(0x195)]({'value':_0x1f2132,'text':_0x1f2132+'\x20'+_0x1ebb33});}return _0x401d61;}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
package/dist/test.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4b70fa,_0x5337ec){const _0x56d2a0=a3_0x4850,_0x37b983=_0x4b70fa();while(!![]){try{const _0x1f0e2d=parseInt(_0x56d2a0(0x9f))/0x1*(-parseInt(_0x56d2a0(0x95))/0x2)+parseInt(_0x56d2a0(0xa8))/0x3*(parseInt(_0x56d2a0(0xab))/0x4)+-parseInt(_0x56d2a0(0xa4))/0x5+parseInt(_0x56d2a0(0x99))/0x6*(parseInt(_0x56d2a0(0xa9))/0x7)+parseInt(_0x56d2a0(0x9e))/0x8*(-parseInt(_0x56d2a0(0x97))/0x9)+-parseInt(_0x56d2a0(0xb1))/0xa*(parseInt(_0x56d2a0(0xa7))/0xb)+parseInt(_0x56d2a0(0xaf))/0xc;if(_0x1f0e2d===_0x5337ec)break;else _0x37b983['push'](_0x37b983['shift']());}catch(_0xb49bfa){_0x37b983['push'](_0x37b983['shift']());}}}(a3_0x3b5d,0xa5858));function email(_0x1ef8d2){const _0xd913f1=a3_0x4850;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0xd913f1(0x9b)](_0x1ef8d2);}function mobile(_0x501654){return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/['test'](_0x501654);}function isValidPhoneNumber(_0x2952a7){const _0x205506=a3_0x4850;if(_0x2952a7[_0x205506(0x9d)]('-')){const [_0x1540c5,_0x831d5a]=_0x2952a7[_0x205506(0x9a)]('-');if(_0x1540c5==='86')return/^\d{11}$/[_0x205506(0x9b)](_0x831d5a)&&_0x831d5a['startsWith']('1');else return _0x1540c5===_0x205506(0xa3)?/^\d{8}$/[_0x205506(0x9b)](_0x831d5a)&&['5','6','9','8'][_0x205506(0x9d)](_0x831d5a[_0x205506(0xa5)](0x0)):/^\d+$/[_0x205506(0x9b)](_0x831d5a);}else return/^\d+$/['test'](_0x2952a7);}function url(_0x3fa306){const _0x398b6a=a3_0x4850;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x398b6a(0x9b)](_0x3fa306);}function date(_0x5c1e8d){const _0x2a4920=a3_0x4850;if(!_0x5c1e8d)return![];if(number(_0x5c1e8d))_0x5c1e8d=+_0x5c1e8d;return!/Invalid|NaN/['test'](new Date(_0x5c1e8d)[_0x2a4920(0x90)]());}function dateISO(_0x161637){const _0x5e1d79=a3_0x4850;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x5e1d79(0x9b)](_0x161637);}function isNumber(_0x473678){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/['test'](_0x473678);}function isString(_0x2b7b42){const _0xa55e80=a3_0x4850;return typeof _0x2b7b42===_0xa55e80(0xb0);}function digits(_0x4ca52b){return/^\d+$/['test'](_0x4ca52b);}function a3_0x4850(_0x1ef413,_0x3968aa){const _0x3b5db3=a3_0x3b5d();return a3_0x4850=function(_0x485010,_0x76e164){_0x485010=_0x485010-0x8f;let _0xb74d8d=_0x3b5db3[_0x485010];return _0xb74d8d;},a3_0x4850(_0x1ef413,_0x3968aa);}function idCard(_0x190e51){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)$/['test'](_0x190e51);}function carNo(_0x46a865){const _0x31cad1=a3_0x4850,_0x1f32cf=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x4c5482=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x46a865[_0x31cad1(0x93)]===0x7)return _0x4c5482[_0x31cad1(0x9b)](_0x46a865);if(_0x46a865['length']===0x8)return _0x1f32cf[_0x31cad1(0x9b)](_0x46a865);return![];}function amount(_0x52a2d8){const _0x343bdc=a3_0x4850;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x343bdc(0x9b)](_0x52a2d8);}function chinese(_0x1ee65c){const _0x184b88=a3_0x4850,_0x5c3def=/^[\u4e00-\u9fa5]+$/gi;return _0x5c3def[_0x184b88(0x9b)](_0x1ee65c);}function letter(_0x4573fc){const _0x2808d7=a3_0x4850;return/^[a-zA-Z]*$/[_0x2808d7(0x9b)](_0x4573fc);}function enOrNum(_0x1183d7){const _0x16b745=a3_0x4850,_0x30a02a=/^[0-9a-zA-Z]*$/g;return _0x30a02a[_0x16b745(0x9b)](_0x1183d7);}function contains(_0x1eb10f,_0x880e1e){const _0x1a8f57=a3_0x4850;return _0x1eb10f[_0x1a8f57(0xaa)](_0x880e1e)>=0x0;}function range(_0x536edf,_0x84620b){return _0x536edf>=_0x84620b[0x0]&&_0x536edf<=_0x84620b[0x1];}function rangeLength(_0x21fea9,_0x10f0cd){const _0x5095ac=a3_0x4850;return _0x21fea9['length']>=_0x10f0cd[0x0]&&_0x21fea9[_0x5095ac(0x93)]<=_0x10f0cd[0x1];}function landline(_0xf5349c){const _0x28476c=a3_0x4850,_0x407c1e=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x407c1e[_0x28476c(0x9b)](_0xf5349c);}function empty(_0x1c457f){const _0x25e47b=a3_0x4850;switch(typeof _0x1c457f){case _0x25e47b(0x9c):return!![];case _0x25e47b(0xb0):if(_0x1c457f[_0x25e47b(0x8f)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x25e47b(0x93)]==0x0)return!![];break;case'boolean':if(!_0x1c457f)return!![];break;case _0x25e47b(0xac):if(_0x1c457f===0x0||isNaN(_0x1c457f))return!![];break;case'object':if(_0x1c457f===null||_0x1c457f[_0x25e47b(0x93)]===0x0)return!![];for(const _0x123456 in _0x1c457f){return![];}return!![];}return![];}function jsonString(_0x35e06e){const _0x227cb9=a3_0x4850;if(typeof _0x35e06e===_0x227cb9(0xb0))try{const _0x315335=JSON[_0x227cb9(0xa0)](_0x35e06e);if(typeof _0x315335===_0x227cb9(0x94)&&_0x315335)return!![];return![];}catch(_0x2f7d28){return![];}return![];}function array(_0xc14df8){const _0xe1ce7e=a3_0x4850;if(typeof Array['isArray']===_0xe1ce7e(0x98))return Array[_0xe1ce7e(0xa6)](_0xc14df8);return Object['prototype'][_0xe1ce7e(0x90)]['call'](_0xc14df8)===_0xe1ce7e(0xa1);}function object(_0x5607c7){const _0x3ab47f=a3_0x4850;return Object[_0x3ab47f(0xa2)][_0x3ab47f(0x90)]['call'](_0x5607c7)===_0x3ab47f(0x92);}function code(_0x3f63cf,_0x89e425=0x6){const _0x14df89=a3_0x4850;return new RegExp(_0x14df89(0x91)+_0x89e425+'}$')[_0x14df89(0x9b)](_0x3f63cf);}function func(_0x368e66){const _0x1d84aa=a3_0x4850;return typeof _0x368e66===_0x1d84aa(0x98);}function a3_0x3b5d(){const _0x5ce478=['852','3809470KrseNt','charAt','isArray','77VbAvgd','3813330eJmuEV','8869889FvYtGR','indexOf','4QGxxkc','number','call','[object\x20RegExp]','15817704bXFipC','string','1289390SSmDfL','replace','toString','^\x5cd{','[object\x20Object]','length','object','6RGNVXf','catch','10342791WBbPIF','function','6iZuhdL','split','test','undefined','includes','8dAZPKc','121579ZqUzoR','parse','[object\x20Array]','prototype'];a3_0x3b5d=function(){return _0x5ce478;};return a3_0x3b5d();}function promise(_0x5e0182){const _0x40496e=a3_0x4850;return object(_0x5e0182)&&func(_0x5e0182['then'])&&func(_0x5e0182[_0x40496e(0x96)]);}function image(_0x1fe4a7){const _0xd7442d=a3_0x4850,_0x3cd258=_0x1fe4a7[_0xd7442d(0x9a)]('?')[0x0],_0x1d4513=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x1d4513['test'](_0x3cd258);}function video(_0x2ed911){const _0x43b223=a3_0x4850,_0x332843=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x332843[_0x43b223(0x9b)](_0x2ed911);}function regExp(_0x50976c){const _0x50254d=a3_0x4850;return _0x50976c&&Object[_0x50254d(0xa2)][_0x50254d(0x90)][_0x50254d(0xad)](_0x50976c)===_0x50254d(0xae);}function isNumeric(_0x3843dc,_0x9fc33e=0x0){const _0x76dd5b=a3_0x4850;if(typeof _0x3843dc===_0x76dd5b(0xac))_0x3843dc=_0x3843dc['toString']();if(typeof _0x3843dc!==_0x76dd5b(0xb0))return![];switch(_0x9fc33e){case 0x1:return/^\d+(\.\d+)?$/[_0x76dd5b(0x9b)](_0x3843dc);case 0x2:return/^-\d+(\.\d+)?$/[_0x76dd5b(0x9b)](_0x3843dc);case 0x3:return/^-?\d+$/[_0x76dd5b(0x9b)](_0x3843dc);case 0x4:return/^\d+$/['test'](_0x3843dc);case 0x5:return/^-\d+$/[_0x76dd5b(0x9b)](_0x3843dc);default:return/^-?\d*\.?\d*$/['test'](_0x3843dc)&&!_0x3843dc['startsWith']('.')&&!_0x3843dc['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};
1
+ (function(_0xfb9939,_0x13f596){const _0x1490eb=a3_0x11ee,_0x49f962=_0xfb9939();while(!![]){try{const _0x190a32=-parseInt(_0x1490eb(0x92))/0x1+parseInt(_0x1490eb(0x84))/0x2+parseInt(_0x1490eb(0x8a))/0x3*(parseInt(_0x1490eb(0x90))/0x4)+parseInt(_0x1490eb(0x8b))/0x5+parseInt(_0x1490eb(0x94))/0x6+parseInt(_0x1490eb(0x85))/0x7*(parseInt(_0x1490eb(0x8e))/0x8)+parseInt(_0x1490eb(0x93))/0x9*(-parseInt(_0x1490eb(0x9a))/0xa);if(_0x190a32===_0x13f596)break;else _0x49f962['push'](_0x49f962['shift']());}catch(_0x133aea){_0x49f962['push'](_0x49f962['shift']());}}}(a3_0x8e8e,0x3e675));function email(_0x30332d){const _0x4c4322=a3_0x11ee;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x4c4322(0x8d)](_0x30332d);}function mobile(_0x2e4ba6){return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/['test'](_0x2e4ba6);}function isValidPhoneNumber(_0x1626b6){const _0x9a5a20=a3_0x11ee;if(_0x1626b6['includes']('-')){const [_0x34429f,_0x952b36]=_0x1626b6['split']('-');if(_0x34429f==='86')return/^\d{11}$/[_0x9a5a20(0x8d)](_0x952b36)&&_0x952b36['startsWith']('1');else return _0x34429f===_0x9a5a20(0x91)?/^\d{8}$/[_0x9a5a20(0x8d)](_0x952b36)&&['5','6','9','8']['includes'](_0x952b36[_0x9a5a20(0x82)](0x0)):/^\d+$/[_0x9a5a20(0x8d)](_0x952b36);}else return/^\d+$/[_0x9a5a20(0x8d)](_0x1626b6);}function url(_0x1de984){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_!~*'().;?:@&=+$,%#-]+)+\/?)$/['test'](_0x1de984);}function a3_0x8e8e(){const _0x2d3ae3=['undefined','[object\x20RegExp]','indexOf','boolean','charAt','split','526036bEEWip','120029wKBaPM','[object\x20Object]','[object\x20Array]','prototype','object','54600UWObqe','2375150cAMCpt','isArray','test','88UAfGfI','toString','52riMcvv','852','250729vDoKXy','6249303rPXcMc','224616tOeCKR','call','startsWith','then','function','^\x5cd{','10sjGfof','string','length','includes','number'];a3_0x8e8e=function(){return _0x2d3ae3;};return a3_0x8e8e();}function date(_0x2b6130){const _0xc0d363=a3_0x11ee;if(!_0x2b6130)return![];if(number(_0x2b6130))_0x2b6130=+_0x2b6130;return!/Invalid|NaN/['test'](new Date(_0x2b6130)[_0xc0d363(0x8f)]());}function dateISO(_0x4a485b){const _0x3c7235=a3_0x11ee;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x3c7235(0x8d)](_0x4a485b);}function isNumber(_0x221508){const _0x7e2058=a3_0x11ee;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x7e2058(0x8d)](_0x221508);}function isString(_0x2e5eb7){const _0x4fc13c=a3_0x11ee;return typeof _0x2e5eb7===_0x4fc13c(0x9b);}function digits(_0x453d46){const _0x3ea45f=a3_0x11ee;return/^\d+$/[_0x3ea45f(0x8d)](_0x453d46);}function idCard(_0x10e41f){const _0x52a43d=a3_0x11ee;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)$/[_0x52a43d(0x8d)](_0x10e41f);}function carNo(_0x51ecb3){const _0x144340=a3_0x11ee,_0x249fe7=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x2ae9ff=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x51ecb3[_0x144340(0x9c)]===0x7)return _0x2ae9ff[_0x144340(0x8d)](_0x51ecb3);if(_0x51ecb3[_0x144340(0x9c)]===0x8)return _0x249fe7[_0x144340(0x8d)](_0x51ecb3);return![];}function amount(_0x5da113){const _0x1c62a9=a3_0x11ee;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x1c62a9(0x8d)](_0x5da113);}function chinese(_0x521ed8){const _0x1bc6da=/^[\u4e00-\u9fa5]+$/gi;return _0x1bc6da['test'](_0x521ed8);}function letter(_0x347e85){return/^[a-zA-Z]*$/['test'](_0x347e85);}function enOrNum(_0x2e759c){const _0xcffca8=a3_0x11ee,_0x125804=/^[0-9a-zA-Z]*$/g;return _0x125804[_0xcffca8(0x8d)](_0x2e759c);}function contains(_0x313cb2,_0x25325e){const _0x36d9a9=a3_0x11ee;return _0x313cb2[_0x36d9a9(0x80)](_0x25325e)>=0x0;}function range(_0x789c9e,_0x5d9dfd){return _0x789c9e>=_0x5d9dfd[0x0]&&_0x789c9e<=_0x5d9dfd[0x1];}function rangeLength(_0x4072cc,_0x5d0b6d){const _0x112cb1=a3_0x11ee;return _0x4072cc[_0x112cb1(0x9c)]>=_0x5d0b6d[0x0]&&_0x4072cc[_0x112cb1(0x9c)]<=_0x5d0b6d[0x1];}function landline(_0x154e76){const _0x2dd6d4=a3_0x11ee,_0x3cc47d=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x3cc47d[_0x2dd6d4(0x8d)](_0x154e76);}function empty(_0x33d93a){const _0x49ae3b=a3_0x11ee;switch(typeof _0x33d93a){case _0x49ae3b(0x7e):return!![];case'string':if(_0x33d93a['replace'](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x49ae3b(0x9c)]==0x0)return!![];break;case _0x49ae3b(0x81):if(!_0x33d93a)return!![];break;case _0x49ae3b(0x7d):if(_0x33d93a===0x0||isNaN(_0x33d93a))return!![];break;case _0x49ae3b(0x89):if(_0x33d93a===null||_0x33d93a[_0x49ae3b(0x9c)]===0x0)return!![];for(const _0x25b4eb in _0x33d93a){return![];}return!![];}return![];}function jsonString(_0x4080dc){const _0x1793ff=a3_0x11ee;if(typeof _0x4080dc===_0x1793ff(0x9b))try{const _0x54fb38=JSON['parse'](_0x4080dc);if(typeof _0x54fb38==='object'&&_0x54fb38)return!![];return![];}catch(_0x242f23){return![];}return![];}function array(_0x4b68a2){const _0x269862=a3_0x11ee;if(typeof Array[_0x269862(0x8c)]===_0x269862(0x98))return Array[_0x269862(0x8c)](_0x4b68a2);return Object[_0x269862(0x88)][_0x269862(0x8f)][_0x269862(0x95)](_0x4b68a2)===_0x269862(0x87);}function object(_0x16e600){const _0x1be3d9=a3_0x11ee;return Object[_0x1be3d9(0x88)][_0x1be3d9(0x8f)][_0x1be3d9(0x95)](_0x16e600)===_0x1be3d9(0x86);}function code(_0x321d99,_0x5611e6=0x6){const _0xcbb98a=a3_0x11ee;return new RegExp(_0xcbb98a(0x99)+_0x5611e6+'}$')[_0xcbb98a(0x8d)](_0x321d99);}function func(_0x19ff97){const _0x2735a2=a3_0x11ee;return typeof _0x19ff97===_0x2735a2(0x98);}function a3_0x11ee(_0x21bca7,_0x4e000e){const _0x8e8e3f=a3_0x8e8e();return a3_0x11ee=function(_0x11eea7,_0x6d4f45){_0x11eea7=_0x11eea7-0x7c;let _0x37aa0f=_0x8e8e3f[_0x11eea7];return _0x37aa0f;},a3_0x11ee(_0x21bca7,_0x4e000e);}function promise(_0x303b5d){const _0x3b947c=a3_0x11ee;return object(_0x303b5d)&&func(_0x303b5d[_0x3b947c(0x97)])&&func(_0x303b5d['catch']);}function image(_0x2209bd){const _0x2c5372=a3_0x11ee,_0x19848c=_0x2209bd[_0x2c5372(0x83)]('?')[0x0],_0x1d3593=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x1d3593[_0x2c5372(0x8d)](_0x19848c);}function video(_0x331bd4){const _0x4724f6=a3_0x11ee,_0x31268f=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x31268f[_0x4724f6(0x8d)](_0x331bd4);}function regExp(_0x7ed89f){const _0x174623=a3_0x11ee;return _0x7ed89f&&Object['prototype'][_0x174623(0x8f)][_0x174623(0x95)](_0x7ed89f)===_0x174623(0x7f);}function isNumeric(_0x3ca6ec,_0x1e7f17=0x0){const _0x3e4116=a3_0x11ee;if(typeof _0x3ca6ec==='number')_0x3ca6ec=_0x3ca6ec[_0x3e4116(0x8f)]();if(typeof _0x3ca6ec!==_0x3e4116(0x9b))return![];switch(_0x1e7f17){case 0x1:return/^\d+(\.\d+)?$/[_0x3e4116(0x8d)](_0x3ca6ec);case 0x2:return/^-\d+(\.\d+)?$/[_0x3e4116(0x8d)](_0x3ca6ec);case 0x3:return/^-?\d+$/[_0x3e4116(0x8d)](_0x3ca6ec);case 0x4:return/^\d+$/[_0x3e4116(0x8d)](_0x3ca6ec);case 0x5:return/^-\d+$/[_0x3e4116(0x8d)](_0x3ca6ec);default:return/^-?\d*\.?\d*$/[_0x3e4116(0x8d)](_0x3ca6ec)&&!_0x3ca6ec[_0x3e4116(0x96)]('.')&&!_0x3ca6ec[_0x3e4116(0x7c)]('--');}}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_0x34d13b=a4_0x36cb;function a4_0x36cb(_0x5d46f9,_0x2c0376){const _0x1d80e2=a4_0x1d80();return a4_0x36cb=function(_0x36cbff,_0x5a29c3){_0x36cbff=_0x36cbff-0x108;let _0x1b0268=_0x1d80e2[_0x36cbff];return _0x1b0268;},a4_0x36cb(_0x5d46f9,_0x2c0376);}function a4_0x1d80(){const _0x57879d=['getMonth','12039oqBTwN','setHours','substring','prototype','round','string','includes','379480zZtcuQ','call','setDate','value','hasOwnProperty','2373TDkodb','push','replace','1880188LmcoMY','toString','trim','parse','join','fjbh','error','surname','6XopkxI','object','12576tXaFTG','match','split','number','getTime','stringify','find','length','14LtKxUd','24860tXHigT','getDate','getFullYear','function','2425851abOQjZ','除数不能为0','padStart','code','floor','slice','20bxNPyB','390YOSyhZ','isArray','givenName','map','2342875KBJspk'];a4_0x1d80=function(){return _0x57879d;};return a4_0x1d80();}(function(_0x47e7df,_0x1bfaa3){const _0x3b639f=a4_0x36cb,_0x5f26e7=_0x47e7df();while(!![]){try{const _0x3bb970=-parseInt(_0x3b639f(0x12e))/0x1*(parseInt(_0x3b639f(0x11c))/0x2)+parseInt(_0x3b639f(0x122))/0x3+-parseInt(_0x3b639f(0x131))/0x4+parseInt(_0x3b639f(0x120))/0x5*(-parseInt(_0x3b639f(0x139))/0x6)+parseInt(_0x3b639f(0x110))/0x7*(-parseInt(_0x3b639f(0x129))/0x8)+parseInt(_0x3b639f(0x115))/0x9*(-parseInt(_0x3b639f(0x11b))/0xa)+parseInt(_0x3b639f(0x111))/0xb*(parseInt(_0x3b639f(0x108))/0xc);if(_0x3bb970===_0x1bfaa3)break;else _0x5f26e7['push'](_0x5f26e7['shift']());}catch(_0x2c85f5){_0x5f26e7['push'](_0x5f26e7['shift']());}}}(a4_0x1d80,0x52524));function fmtNum(_0xa7a34c){const _0xcde8d9=a4_0x36cb;if(_0xa7a34c==0x0)return'0';if(!_0xa7a34c)return'';let _0x20f096=typeof _0xa7a34c===_0xcde8d9(0x127)?parseFloat(_0xa7a34c):_0xa7a34c;if(isNaN(_0x20f096))return'';return _0x20f096['toLocaleString']('en-US',{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x4a316f,_0x135a30=![]){const _0x57c92c=a4_0x36cb;let _0x43c534={'surname':'','givenName':''};if(_0x135a30){const _0x56d058=_0x4a316f[_0x57c92c(0x128)](',')?_0x4a316f['split'](','):_0x4a316f[_0x57c92c(0x10a)](/\s+/);_0x56d058[_0x57c92c(0x10f)]>=0x2&&(_0x43c534[_0x57c92c(0x138)]=_0x56d058[0x0][_0x57c92c(0x133)](),_0x43c534[_0x57c92c(0x11e)]=_0x56d058[0x1]['trim']());}else{const _0x37c385=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x2a155f=0x0;_0x2a155f<_0x37c385[_0x57c92c(0x10f)];_0x2a155f++){const _0x29189c=_0x37c385[_0x2a155f];if(_0x4a316f['startsWith'](_0x29189c))return _0x43c534[_0x57c92c(0x138)]=_0x29189c,_0x43c534[_0x57c92c(0x11e)]=_0x4a316f[_0x57c92c(0x124)](_0x29189c['length'])[_0x57c92c(0x133)](),_0x43c534;}const _0x28397b=_0x4a316f[_0x57c92c(0x10a)]('\x20');if(_0x28397b[_0x57c92c(0x10f)]===0x1){const _0xe40bd4=_0x4a316f[_0x57c92c(0x109)](/[\u4e00-\u9fa5]/);_0x43c534[_0x57c92c(0x138)]=_0xe40bd4?_0xe40bd4[0x0]:'',_0x43c534[_0x57c92c(0x11e)]=_0x4a316f[_0x57c92c(0x130)](_0x43c534[_0x57c92c(0x138)],'')[_0x57c92c(0x133)]();}else _0x43c534[_0x57c92c(0x138)]=_0x28397b[0x0],_0x43c534[_0x57c92c(0x11e)]=_0x28397b[_0x57c92c(0x11a)](0x1)['join']('\x20');}return _0x43c534;}function modifyKeys(_0x2ca15a,_0x2a48e5={'strCode':a4_0x34d13b(0x118),'strFjbh':a4_0x34d13b(0x136),'strGuid':a4_0x34d13b(0x12c),'strValue':'label'}){const _0x1d4411=a4_0x34d13b;if(!_0x2ca15a['length']||_0x2ca15a===null)return[];const _0x5f2c2a=_0x2ca15a[_0x1d4411(0x11f)](_0x3d9cfc=>{const _0x254290=_0x1d4411,_0x1d6581={};for(const _0x523229 in _0x3d9cfc){_0x2a48e5[_0x254290(0x12d)](_0x523229)?_0x1d6581[_0x2a48e5[_0x523229]]=_0x3d9cfc[_0x523229]:_0x1d6581[_0x523229]=_0x3d9cfc[_0x523229];}return _0x1d6581;});return _0x5f2c2a;}function sliceArray(_0x1355c1,_0x5da15e,_0xa6e234){const _0x558f27=a4_0x34d13b;if(_0x5da15e<=0x0)return console[_0x558f27(0x137)]('Quantity\x20should\x20be\x20greater\x20than\x200.'),[];return _0xa6e234?_0x1355c1[_0x558f27(0x11a)](0x0,_0x5da15e):_0x1355c1['slice'](-_0x5da15e);}function findDataByData(_0xb8d2fb,_0x1975ca,_0x33d54d){const _0x33bd09=a4_0x34d13b,_0x412653=_0xb8d2fb[_0x33bd09(0x10e)](_0x3850c2=>_0x3850c2[_0x33d54d]===_0x1975ca);return _0x412653||null;}function splitArray(_0x35bdcb,_0x2a00e1){const _0x4220de=a4_0x34d13b,_0x12d817=[];for(let _0x36c08d=0x0;_0x36c08d<_0x35bdcb[_0x4220de(0x10f)];_0x36c08d+=_0x2a00e1){_0x12d817[_0x4220de(0x12f)](_0x35bdcb['slice'](_0x36c08d,_0x36c08d+_0x2a00e1));}return _0x12d817;}function getProxyType(_0x2ac899){const _0x4f55d2=a4_0x34d13b;return Object[_0x4f55d2(0x125)]['toString'][_0x4f55d2(0x12a)](_0x2ac899)[_0x4f55d2(0x11a)](0x8,-0x1);}let timeout=null;function debounce(_0xdb3ce5,_0xec6dd6=0x1f4,_0x5eba54=![]){const _0xa1b8b4=a4_0x34d13b;if(timeout!==null)clearTimeout(timeout);if(_0x5eba54){const _0x4001aa=!timeout;timeout=setTimeout(()=>{timeout=null;},_0xec6dd6);if(_0x4001aa)typeof _0xdb3ce5===_0xa1b8b4(0x114)&&_0xdb3ce5();}else timeout=setTimeout(()=>{const _0x3334f8=_0xa1b8b4;typeof _0xdb3ce5===_0x3334f8(0x114)&&_0xdb3ce5();},_0xec6dd6);}function matchKeyValueInArray(_0x2f21f2,_0x4d9445,_0x338560){const _0x5c9a41=a4_0x34d13b;for(let _0x3df277=0x0;_0x3df277<_0x2f21f2[_0x5c9a41(0x10f)];_0x3df277++){if(_0x2f21f2[_0x3df277][_0x4d9445]===_0x338560)return!![];}return![];}function urlEncode(_0x10acd5={}){const _0x3111ec=a4_0x34d13b,_0x1899de=[];for(const _0x33b5a2 in _0x10acd5){const _0x282826=_0x10acd5[_0x33b5a2];if(!_0x282826)continue;isArray(_0x282826)?_0x282826['forEach'](_0x49fc4a=>{_0x1899de['push'](_0x33b5a2+'='+_0x49fc4a);}):_0x1899de[_0x3111ec(0x12f)](_0x33b5a2+'='+_0x282826);}return _0x1899de[_0x3111ec(0x135)]('&');}function compareDates(_0x3b6b07,_0x14de9f){const _0x5abba4=a4_0x34d13b;_0x3b6b07=new Date(_0x3b6b07);!_0x14de9f?_0x14de9f=new Date():_0x14de9f=new Date(_0x14de9f);_0x3b6b07[_0x5abba4(0x123)](0x0,0x0,0x0,0x0),_0x14de9f['setHours'](0x0,0x0,0x0,0x0);var _0x133d07=_0x3b6b07['getTime'](),_0x1d5a5d=_0x14de9f[_0x5abba4(0x10c)]();if(_0x133d07<_0x1d5a5d)return-0x1;else return _0x133d07>_0x1d5a5d?0x1:0x0;}function getDaysBetween(_0x44117a,_0x5b4ace){const _0x27faed=a4_0x34d13b,_0x5e397e=new Date(_0x44117a),_0x4f0f9e=new Date(_0x5b4ace),_0x3e79cd=Math['abs'](_0x5e397e[_0x27faed(0x10c)]()-_0x4f0f9e[_0x27faed(0x10c)]()),_0x610c92=Math[_0x27faed(0x119)](_0x3e79cd/(0x3e8*0x3c*0x3c*0x18));return _0x610c92+0x1;}function chineseNumeral(_0x8799b2){const _0x1b19c2=a4_0x34d13b,_0x18e847=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x25ecf9=['','拾','佰','仟'],_0xccfd5d=['','万','亿','兆'];let _0x322da3=Math[_0x1b19c2(0x119)](_0x8799b2),_0x20a998=Math['round']((_0x8799b2-_0x322da3)*0x64),_0x4ad3c7='';for(let _0x290bdc=0x0;_0x322da3>0x0;_0x290bdc++){let _0x2c4912='',_0x3a5d67=_0x322da3%0x2710;_0x322da3=Math['floor'](_0x322da3/0x2710);for(let _0x2c6f84=0x0;_0x3a5d67>0x0;_0x2c6f84++){let _0x521600=_0x3a5d67%0xa;_0x2c4912=(_0x521600?_0x18e847[_0x521600]+_0x25ecf9[_0x2c6f84]:'')+_0x2c4912,_0x3a5d67=Math[_0x1b19c2(0x119)](_0x3a5d67/0xa);}_0x4ad3c7=_0x2c4912+(_0x2c4912?_0xccfd5d[_0x290bdc]:_0xccfd5d[_0x290bdc]&&!_0x4ad3c7[_0x1b19c2(0x128)]('零')?'零':'')+_0x4ad3c7;}_0x4ad3c7+=_0x4ad3c7?'元':'零元';if(_0x20a998>0x0){let _0x2a1207=Math['floor'](_0x20a998/0xa),_0x3bf7fe=_0x20a998%0xa;_0x4ad3c7+=(_0x2a1207?_0x18e847[_0x2a1207]+'角':'')+(_0x3bf7fe?_0x18e847[_0x3bf7fe]+'分':'');}else _0x4ad3c7+='整';return _0x4ad3c7['replace'](/零{2,}/g,'零')['replace'](/零元/,'元');}function getMonthDate(_0x3a916a){const _0x3145c3=a4_0x34d13b;(!_0x3a916a||_0x3a916a[_0x3145c3(0x133)]()==='')&&(_0x3a916a=new Date()['getFullYear']()+'-'+(new Date()[_0x3145c3(0x121)]()+0x1));let _0x2abc2d=[],[_0x337b4a,_0x38dec0]=_0x3a916a[_0x3145c3(0x10a)]('-')[_0x3145c3(0x11f)](Number),_0x13d56c=new Date(_0x337b4a,_0x38dec0,0x0),_0xd97670=_0x13d56c[_0x3145c3(0x112)]();for(let _0xfca34e=0x1;_0xfca34e<=_0xd97670;_0xfca34e++){let _0x370566=_0xfca34e<0xa?'0'+_0xfca34e:''+_0xfca34e,_0x49368f=_0x38dec0<0xa?'0'+_0x38dec0:''+_0x38dec0;_0x2abc2d[_0x3145c3(0x12f)]({'date':_0x337b4a+'-'+_0x49368f+'-'+_0x370566,'disable':!![]});}return _0x2abc2d;}function getToday(_0x2fceba){const _0x483e4f=a4_0x34d13b;var _0x2eba64=new Date(),_0xac921a=String(_0x2eba64[_0x483e4f(0x112)]())[_0x483e4f(0x117)](0x2,'0'),_0x11c7e5=String(_0x2eba64[_0x483e4f(0x121)]()+0x1)[_0x483e4f(0x117)](0x2,'0'),_0x1a54ad=_0x2eba64['getFullYear']();return _0x2eba64=_0x1a54ad+'-'+_0x11c7e5+'-'+_0xac921a,_0x2eba64;}function resetObject(_0x2a07be){const _0x1ff0b3=a4_0x34d13b;let _0x5bfee1=JSON[_0x1ff0b3(0x134)](JSON[_0x1ff0b3(0x10d)](_0x2a07be));for(const _0x20de1b in _0x5bfee1){if(typeof _0x5bfee1[_0x20de1b]===_0x1ff0b3(0x10b))_0x5bfee1[_0x20de1b]=0x0;else{if(typeof _0x5bfee1[_0x20de1b]==='boolean')_0x5bfee1[_0x20de1b]=![];else{if(Array[_0x1ff0b3(0x11d)](_0x5bfee1[_0x20de1b]))_0x5bfee1[_0x20de1b]=[];else typeof _0x5bfee1[_0x20de1b]===_0x1ff0b3(0x13a)&&_0x5bfee1[_0x20de1b]!==null?resetObject(_0x5bfee1[_0x20de1b]):_0x5bfee1[_0x20de1b]='';}}}return _0x5bfee1;}function preciseOperation(_0x37c7d8,_0x399c03,_0x52c398,_0x307d0f=0xf4240){const _0x55de33=a4_0x34d13b;if(isNaN(_0x37c7d8)||isNaN(_0x399c03))return NaN;if(!isFinite(_0x37c7d8)||!isFinite(_0x399c03))return NaN;let _0x44816c=BigInt(Math[_0x55de33(0x126)](_0x37c7d8*_0x307d0f)),_0x8ad1da=BigInt(Math[_0x55de33(0x126)](_0x399c03*_0x307d0f)),_0x1eb479;switch(_0x52c398){case 0x1:_0x1eb479=_0x44816c+_0x8ad1da;break;case 0x2:_0x1eb479=_0x44816c-_0x8ad1da;break;case 0x3:_0x1eb479=_0x44816c*_0x8ad1da;break;case 0x4:if(_0x8ad1da===0x0n)throw new Error(_0x55de33(0x116));_0x1eb479=_0x44816c/_0x8ad1da;break;default:throw new Error('无效的操作符,操作符应为1、2、3或4');}return Number(_0x1eb479)/_0x307d0f;}function preciseSum(_0x5324c3){const _0x40d343=a4_0x34d13b;let _0x50767d=0x0;for(const _0x47fdba of _0x5324c3){let _0x5d382c=0x0;if(typeof _0x47fdba===_0x40d343(0x127)){const _0x53e9cc=parseFloat(_0x47fdba);!isNaN(_0x53e9cc)&&(_0x5d382c=_0x53e9cc);}else typeof _0x47fdba==='number'&&(_0x5d382c=_0x47fdba);_0x50767d=preciseOperation(_0x50767d,_0x5d382c,0x1);}return _0x50767d;}function getRelativeDate(_0x52d808,_0x1456eb=0x0){const _0x521523=a4_0x34d13b,_0x194bbb=new Date(_0x52d808);_0x194bbb[_0x521523(0x12b)](_0x194bbb[_0x521523(0x112)]()+_0x1456eb);const _0x598ff6=_0x194bbb[_0x521523(0x113)](),_0x43b389=(_0x194bbb[_0x521523(0x121)]()+0x1)[_0x521523(0x132)]()[_0x521523(0x117)](0x2,'0'),_0x567d71=_0x194bbb[_0x521523(0x112)]()[_0x521523(0x132)]()[_0x521523(0x117)](0x2,'0');return _0x598ff6+'-'+_0x43b389+'-'+_0x567d71;}function validateFields(_0x2d576e,_0x3db861,_0x2e4bdc=''){for(let _0x499f9c of _0x3db861){if(_0x2d576e[_0x499f9c]===_0x2e4bdc)return!![];}return![];}function mergeObjects(_0x58091a,_0x4c492e){const _0x282e4d=a4_0x34d13b;for(const _0xbc8d0a in _0x58091a){_0x4c492e[_0x282e4d(0x12d)](_0xbc8d0a)&&(_0x58091a[_0xbc8d0a]=_0x4c492e[_0xbc8d0a]);}return _0x58091a;}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 a4_0x56987c=a4_0x3c82;(function(_0xc2bb8f,_0x1e051c){const _0x2a6193=a4_0x3c82,_0x190876=_0xc2bb8f();while(!![]){try{const _0x3fdcc4=parseInt(_0x2a6193(0x1ea))/0x1*(-parseInt(_0x2a6193(0x1f4))/0x2)+parseInt(_0x2a6193(0x1e1))/0x3*(parseInt(_0x2a6193(0x1d9))/0x4)+parseInt(_0x2a6193(0x1ef))/0x5+parseInt(_0x2a6193(0x1e9))/0x6+-parseInt(_0x2a6193(0x1d3))/0x7*(parseInt(_0x2a6193(0x1d0))/0x8)+parseInt(_0x2a6193(0x1de))/0x9+-parseInt(_0x2a6193(0x1f6))/0xa;if(_0x3fdcc4===_0x1e051c)break;else _0x190876['push'](_0x190876['shift']());}catch(_0x101064){_0x190876['push'](_0x190876['shift']());}}}(a4_0x4b73,0xa7afe));function fmtNum(_0x4aa812){const _0x25d35c=a4_0x3c82;if(_0x4aa812==0x0)return'0';if(!_0x4aa812)return'';let _0x594906=typeof _0x4aa812===_0x25d35c(0x1eb)?parseFloat(_0x4aa812):_0x4aa812;if(isNaN(_0x594906))return'';return _0x594906[_0x25d35c(0x1e0)]('en-US',{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x20e7f6,_0x51c5ce=![]){const _0x4e5719=a4_0x3c82;let _0x83e720={'surname':'','givenName':''};if(_0x51c5ce){const _0x5ce332=_0x20e7f6['includes'](',')?_0x20e7f6['split'](','):_0x20e7f6['split'](/\s+/);_0x5ce332['length']>=0x2&&(_0x83e720['surname']=_0x5ce332[0x0]['trim'](),_0x83e720['givenName']=_0x5ce332[0x1][_0x4e5719(0x1f2)]());}else{const _0x5c7a7d=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x1782bb=0x0;_0x1782bb<_0x5c7a7d['length'];_0x1782bb++){const _0x42bcc2=_0x5c7a7d[_0x1782bb];if(_0x20e7f6[_0x4e5719(0x1e5)](_0x42bcc2))return _0x83e720['surname']=_0x42bcc2,_0x83e720[_0x4e5719(0x1d2)]=_0x20e7f6[_0x4e5719(0x1d5)](_0x42bcc2[_0x4e5719(0x1da)])[_0x4e5719(0x1f2)](),_0x83e720;}const _0x3c7480=_0x20e7f6[_0x4e5719(0x1f3)]('\x20');if(_0x3c7480[_0x4e5719(0x1da)]===0x1){const _0x3bc074=_0x20e7f6[_0x4e5719(0x1e8)](/[\u4e00-\u9fa5]/);_0x83e720[_0x4e5719(0x1d8)]=_0x3bc074?_0x3bc074[0x0]:'',_0x83e720['givenName']=_0x20e7f6[_0x4e5719(0x1d4)](_0x83e720[_0x4e5719(0x1d8)],'')[_0x4e5719(0x1f2)]();}else _0x83e720[_0x4e5719(0x1d8)]=_0x3c7480[0x0],_0x83e720['givenName']=_0x3c7480[_0x4e5719(0x1d1)](0x1)['join']('\x20');}return _0x83e720;}function modifyKeys(_0x10ac71,_0x479866={'strCode':a4_0x56987c(0x1df),'strFjbh':a4_0x56987c(0x1ce),'strGuid':a4_0x56987c(0x1cf),'strValue':a4_0x56987c(0x1e2)}){const _0x4cda48=a4_0x56987c;if(!_0x10ac71['length']||_0x10ac71===null)return[];const _0x4a9566=_0x10ac71[_0x4cda48(0x1dc)](_0x4e5cd=>{const _0x5650b1=_0x4cda48,_0x1d816d={};for(const _0x61e0d5 in _0x4e5cd){_0x479866[_0x5650b1(0x1f9)](_0x61e0d5)?_0x1d816d[_0x479866[_0x61e0d5]]=_0x4e5cd[_0x61e0d5]:_0x1d816d[_0x61e0d5]=_0x4e5cd[_0x61e0d5];}return _0x1d816d;});return _0x4a9566;}function sliceArray(_0x3ba014,_0x3f9f12,_0xce4e2c){const _0x513dec=a4_0x56987c;if(_0x3f9f12<=0x0)return console['error'](_0x513dec(0x1ee)),[];return _0xce4e2c?_0x3ba014['slice'](0x0,_0x3f9f12):_0x3ba014[_0x513dec(0x1d1)](-_0x3f9f12);}function findDataByData(_0x41461f,_0x658c0,_0x3ff6fb){const _0x5b52c6=_0x41461f['find'](_0x553f40=>_0x553f40[_0x3ff6fb]===_0x658c0);return _0x5b52c6||null;}function splitArray(_0x236b8d,_0x2b045d){const _0x20aad2=a4_0x56987c,_0x4304b1=[];for(let _0xa59f6=0x0;_0xa59f6<_0x236b8d[_0x20aad2(0x1da)];_0xa59f6+=_0x2b045d){_0x4304b1[_0x20aad2(0x1f7)](_0x236b8d['slice'](_0xa59f6,_0xa59f6+_0x2b045d));}return _0x4304b1;}function getProxyType(_0x5d5edf){const _0x36c55c=a4_0x56987c;return Object['prototype'][_0x36c55c(0x1cc)]['call'](_0x5d5edf)[_0x36c55c(0x1d1)](0x8,-0x1);}function a4_0x4b73(){const _0x5dd270=['trim','split','5342YBLMXI','stringify','14246920eeopJx','push','function','hasOwnProperty','round','padStart','除数不能为0','includes','toString','boolean','fjbh','value','72HzmPpj','slice','givenName','589806OimLhM','replace','substring','getTime','无效的操作符,操作符应为1、2、3或4','surname','12CPuPuz','length','setHours','map','forEach','10420452BjYPHS','code','toLocaleString','693054dztTWl','label','isArray','getDate','startsWith','getMonth','setDate','match','3985890PGxtzx','74PiepnK','string','floor','abs','Quantity\x20should\x20be\x20greater\x20than\x200.','2761585wXgogR','number','getFullYear'];a4_0x4b73=function(){return _0x5dd270;};return a4_0x4b73();}let timeout=null;function debounce(_0x508d8d,_0xd996e8=0x1f4,_0xdc9a12=![]){if(timeout!==null)clearTimeout(timeout);if(_0xdc9a12){const _0x1e493b=!timeout;timeout=setTimeout(()=>{timeout=null;},_0xd996e8);if(_0x1e493b)typeof _0x508d8d==='function'&&_0x508d8d();}else timeout=setTimeout(()=>{const _0x25ffe8=a4_0x3c82;typeof _0x508d8d===_0x25ffe8(0x1f8)&&_0x508d8d();},_0xd996e8);}function urlEncode(_0x3255aa={}){const _0x109234=a4_0x56987c,_0x1c0cb0=[];for(const _0x233d59 in _0x3255aa){const _0x3f2b67=_0x3255aa[_0x233d59];if(!_0x3f2b67)continue;isArray(_0x3f2b67)?_0x3f2b67[_0x109234(0x1dd)](_0x3f99da=>{const _0x53b001=_0x109234;_0x1c0cb0[_0x53b001(0x1f7)](_0x233d59+'='+_0x3f99da);}):_0x1c0cb0[_0x109234(0x1f7)](_0x233d59+'='+_0x3f2b67);}return _0x1c0cb0['join']('&');}function a4_0x3c82(_0x2f6635,_0x475def){const _0x4b73b3=a4_0x4b73();return a4_0x3c82=function(_0x3c8291,_0x241d7a){_0x3c8291=_0x3c8291-0x1c9;let _0x5ec959=_0x4b73b3[_0x3c8291];return _0x5ec959;},a4_0x3c82(_0x2f6635,_0x475def);}function compareDates(_0x4ecd05,_0x416766){const _0x4ce346=a4_0x56987c;_0x4ecd05=new Date(_0x4ecd05);!_0x416766?_0x416766=new Date():_0x416766=new Date(_0x416766);_0x4ecd05[_0x4ce346(0x1db)](0x0,0x0,0x0,0x0),_0x416766[_0x4ce346(0x1db)](0x0,0x0,0x0,0x0);var _0x12f2c5=_0x4ecd05[_0x4ce346(0x1d6)](),_0xfb118=_0x416766[_0x4ce346(0x1d6)]();if(_0x12f2c5<_0xfb118)return-0x1;else return _0x12f2c5>_0xfb118?0x1:0x0;}function getDaysBetween(_0x172348,_0x1acc6d){const _0x5f11cf=a4_0x56987c,_0x3276e8=new Date(_0x172348),_0xa92636=new Date(_0x1acc6d),_0x424b2b=Math[_0x5f11cf(0x1ed)](_0x3276e8[_0x5f11cf(0x1d6)]()-_0xa92636[_0x5f11cf(0x1d6)]()),_0x2af9f2=Math[_0x5f11cf(0x1ec)](_0x424b2b/(0x3e8*0x3c*0x3c*0x18));return _0x2af9f2+0x1;}function chineseNumeral(_0x2356c1){const _0x533e18=a4_0x56987c,_0x4297a2=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x5d1382=['','拾','佰','仟'],_0x119508=['','万','亿','兆'];let _0x32b399=Math[_0x533e18(0x1ec)](_0x2356c1),_0x3aa1c9=Math[_0x533e18(0x1fa)]((_0x2356c1-_0x32b399)*0x64),_0x2695b2='';for(let _0x439007=0x0;_0x32b399>0x0;_0x439007++){let _0x5f5d4c='',_0x1d74fb=_0x32b399%0x2710;_0x32b399=Math[_0x533e18(0x1ec)](_0x32b399/0x2710);for(let _0x273595=0x0;_0x1d74fb>0x0;_0x273595++){let _0x2d20a9=_0x1d74fb%0xa;_0x5f5d4c=(_0x2d20a9?_0x4297a2[_0x2d20a9]+_0x5d1382[_0x273595]:'')+_0x5f5d4c,_0x1d74fb=Math[_0x533e18(0x1ec)](_0x1d74fb/0xa);}_0x2695b2=_0x5f5d4c+(_0x5f5d4c?_0x119508[_0x439007]:_0x119508[_0x439007]&&!_0x2695b2[_0x533e18(0x1cb)]('零')?'零':'')+_0x2695b2;}_0x2695b2+=_0x2695b2?'元':'零元';if(_0x3aa1c9>0x0){let _0x48c156=Math[_0x533e18(0x1ec)](_0x3aa1c9/0xa),_0x5723d4=_0x3aa1c9%0xa;_0x2695b2+=(_0x48c156?_0x4297a2[_0x48c156]+'角':'')+(_0x5723d4?_0x4297a2[_0x5723d4]+'分':'');}else _0x2695b2+='整';return _0x2695b2[_0x533e18(0x1d4)](/零{2,}/g,'零')[_0x533e18(0x1d4)](/零元/,'元');}function getMonthDate(_0x232e5d){const _0x24ed38=a4_0x56987c;(!_0x232e5d||_0x232e5d[_0x24ed38(0x1f2)]()==='')&&(_0x232e5d=new Date()[_0x24ed38(0x1f1)]()+'-'+(new Date()[_0x24ed38(0x1e6)]()+0x1));let _0x2821a8=[],[_0x4cf3b1,_0x6025ab]=_0x232e5d[_0x24ed38(0x1f3)]('-')[_0x24ed38(0x1dc)](Number),_0x3d5b24=new Date(_0x4cf3b1,_0x6025ab,0x0),_0x9ac21b=_0x3d5b24[_0x24ed38(0x1e4)]();for(let _0x418072=0x1;_0x418072<=_0x9ac21b;_0x418072++){let _0x286c06=_0x418072<0xa?'0'+_0x418072:''+_0x418072,_0x3b5acc=_0x6025ab<0xa?'0'+_0x6025ab:''+_0x6025ab;_0x2821a8[_0x24ed38(0x1f7)]({'date':_0x4cf3b1+'-'+_0x3b5acc+'-'+_0x286c06,'disable':!![]});}return _0x2821a8;}function getToday(_0x5b28a7){const _0x14fbae=a4_0x56987c;var _0x36db38=new Date(),_0x575bc1=String(_0x36db38[_0x14fbae(0x1e4)]())[_0x14fbae(0x1c9)](0x2,'0'),_0xc8ccdc=String(_0x36db38['getMonth']()+0x1)[_0x14fbae(0x1c9)](0x2,'0'),_0xc951de=_0x36db38[_0x14fbae(0x1f1)]();return _0x36db38=_0xc951de+'-'+_0xc8ccdc+'-'+_0x575bc1,_0x36db38;}function resetObject(_0x275152){const _0x352296=a4_0x56987c;let _0x1279cf=JSON['parse'](JSON[_0x352296(0x1f5)](_0x275152));for(const _0x276222 in _0x1279cf){if(typeof _0x1279cf[_0x276222]===_0x352296(0x1f0))_0x1279cf[_0x276222]=0x0;else{if(typeof _0x1279cf[_0x276222]===_0x352296(0x1cd))_0x1279cf[_0x276222]=![];else{if(Array[_0x352296(0x1e3)](_0x1279cf[_0x276222]))_0x1279cf[_0x276222]=[];else typeof _0x1279cf[_0x276222]==='object'&&_0x1279cf[_0x276222]!==null?resetObject(_0x1279cf[_0x276222]):_0x1279cf[_0x276222]='';}}}return _0x1279cf;}function preciseOperation(_0x389d63,_0x585baa,_0x927f03,_0x5e0a1c=0xf4240){const _0x5ab8e6=a4_0x56987c;if(isNaN(_0x389d63)||isNaN(_0x585baa))return NaN;if(!isFinite(_0x389d63)||!isFinite(_0x585baa))return NaN;let _0x4f9d31=BigInt(Math[_0x5ab8e6(0x1fa)](_0x389d63*_0x5e0a1c)),_0x1cc99b=BigInt(Math[_0x5ab8e6(0x1fa)](_0x585baa*_0x5e0a1c)),_0x38c6fe;switch(_0x927f03){case 0x1:_0x38c6fe=_0x4f9d31+_0x1cc99b;break;case 0x2:_0x38c6fe=_0x4f9d31-_0x1cc99b;break;case 0x3:_0x38c6fe=_0x4f9d31*_0x1cc99b;break;case 0x4:if(_0x1cc99b===0x0n)throw new Error(_0x5ab8e6(0x1ca));_0x38c6fe=_0x4f9d31/_0x1cc99b;break;default:throw new Error(_0x5ab8e6(0x1d7));}return Number(_0x38c6fe)/_0x5e0a1c;}function preciseSum(_0x4702de){const _0x4ef186=a4_0x56987c;let _0x347843=0x0;for(const _0xeba46e of _0x4702de){let _0x4f639b=0x0;if(typeof _0xeba46e===_0x4ef186(0x1eb)){const _0x4e2378=parseFloat(_0xeba46e);!isNaN(_0x4e2378)&&(_0x4f639b=_0x4e2378);}else typeof _0xeba46e===_0x4ef186(0x1f0)&&(_0x4f639b=_0xeba46e);_0x347843=preciseOperation(_0x347843,_0x4f639b,0x1);}return _0x347843;}function getRelativeDate(_0x497340,_0x1d2c62=0x0){const _0x168b11=a4_0x56987c,_0x3fdff5=new Date(_0x497340);_0x3fdff5[_0x168b11(0x1e7)](_0x3fdff5[_0x168b11(0x1e4)]()+_0x1d2c62);const _0x55754d=_0x3fdff5[_0x168b11(0x1f1)](),_0x3e2438=(_0x3fdff5[_0x168b11(0x1e6)]()+0x1)[_0x168b11(0x1cc)]()[_0x168b11(0x1c9)](0x2,'0'),_0xf6cfa1=_0x3fdff5[_0x168b11(0x1e4)]()[_0x168b11(0x1cc)]()[_0x168b11(0x1c9)](0x2,'0');return _0x55754d+'-'+_0x3e2438+'-'+_0xf6cfa1;}function validateFields(_0x4a4fe7,_0x1c468d,_0xf7719=''){for(let _0x60cc33 of _0x1c468d){if(_0x4a4fe7[_0x60cc33]===_0xf7719)return!![];}return![];}function mergeObjects(_0x4c87c4,_0x440e84){const _0x34aaeb=a4_0x56987c;for(const _0xbb5633 in _0x4c87c4){_0x440e84[_0x34aaeb(0x1f9)](_0xbb5633)&&(_0x4c87c4[_0xbb5633]=_0x440e84[_0xbb5633]);}return _0x4c87c4;}export default{'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'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.29",
3
+ "version": "1.0.31",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "exports": {
package/dist/func.js DELETED
@@ -1 +0,0 @@
1
- function a0_0x269e(){const _0x709b04=['map','adultnum','strLx','baseprice','includes','vip','tax','7fwnqeR','childprice','adult','附加行程','1329304gvxRbf','num','totaltax','tip','service','elder','unitprice','優惠券','length','airtax','people','base','other','會員減免','nRs','insure','\x20*\x20','tipuser','遊客優惠','其他費用','list','rylx','tipday','childnum','兒童[占床]','basechildprice','price','fJcbzlsjUnit','424vjEiDx','point','unit','filter','會員充值','51cujzvf','adultprice','baseadultprice','trip','totalprice','viprecharge','8946gYYUMz','push','機場稅','split','name','減免費用','10RUoarm','38930fCXuUk','promotion','vipdiscounted','money','3382WDgWck','coupon','人員費用','2100786SzFKnP','27604489UYdTuT','3649539pdSMdc','reduction','保險費用'];a0_0x269e=function(){return _0x709b04;};return a0_0x269e();}function a0_0xb2ee(_0x2bdf2b,_0x5d9262){const _0x269ecb=a0_0x269e();return a0_0xb2ee=function(_0xb2eec4,_0x908d9d){_0xb2eec4=_0xb2eec4-0xb4;let _0x2bfb36=_0x269ecb[_0xb2eec4];return _0x2bfb36;},a0_0xb2ee(_0x2bdf2b,_0x5d9262);}const a0_0x50b3b5=a0_0xb2ee;(function(_0x3c6840,_0x40081b){const _0x3c0acd=a0_0xb2ee,_0x1cf0e1=_0x3c6840();while(!![]){try{const _0x528a05=parseInt(_0x3c0acd(0xd0))/0x1*(-parseInt(_0x3c0acd(0xe1))/0x2)+-parseInt(_0x3c0acd(0xe6))/0x3+-parseInt(_0x3c0acd(0xf4))/0x4*(parseInt(_0x3c0acd(0xdc))/0x5)+parseInt(_0x3c0acd(0xe4))/0x6*(parseInt(_0x3c0acd(0xf0))/0x7)+-parseInt(_0x3c0acd(0xcb))/0x8*(-parseInt(_0x3c0acd(0xd6))/0x9)+-parseInt(_0x3c0acd(0xdd))/0xa+parseInt(_0x3c0acd(0xe5))/0xb;if(_0x528a05===_0x40081b)break;else _0x1cf0e1['push'](_0x1cf0e1['shift']());}catch(_0x522bcc){_0x1cf0e1['push'](_0x1cf0e1['shift']());}}}(a0_0x269e,0xe5bd5));function handleCosting(_0x203baa,_0x1344c1='',_0x2b646a='-',_0x3bb936={'people':a0_0x50b3b5(0xe3),'service':'附加服務','trip':a0_0x50b3b5(0xf3),'other':a0_0x50b3b5(0xc2),'reduction':a0_0x50b3b5(0xdb),'totalprice':'總計','airtax':a0_0x50b3b5(0xd8)},_0x3a87ae={'adult':'成人','child':'兒童','childusebed':a0_0x50b3b5(0xc7),'infant':'嬰兒','half':'拼房','tip':'小費','elder':a0_0x50b3b5(0xc1),'vip':a0_0x50b3b5(0xbc),'promotion':'促銷','insure':a0_0x50b3b5(0xe8),'coupon':a0_0x50b3b5(0xb6),'point':'積分','tax':'稅金','viprecharge':a0_0x50b3b5(0xcf),'r':'人','t':'天'}){const _0x5d2f5e=a0_0x50b3b5;let _0x2f5e08=[];const _0x48351d=_0x5d2f5e(0xbf),_0x32b2a9=_0x203baa[_0x5d2f5e(0xce)](_0x215d50=>_0x215d50[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xba));if(_0x32b2a9[_0x5d2f5e(0xb7)]){let _0x9e5f14={'title':_0x3bb936[_0x5d2f5e(0xb9)],'type':_0x5d2f5e(0xba),'list':[]};_0x32b2a9['map'](_0xe68038=>{const _0x3ff6a7=_0x5d2f5e;_0x9e5f14[_0x3ff6a7(0xc3)][_0x3ff6a7(0xd7)]({'title':_0x3a87ae[_0xe68038['strJgbm']],'info':_0x1344c1+_0xe68038['fLsjUnit']+_0x48351d+_0xe68038[_0x3ff6a7(0xbd)],'nRs':_0xe68038[_0x3ff6a7(0xbd)],'unit':_0xe68038['fLsjUnit'],'cb':_0xe68038[_0x3ff6a7(0xca)],'type':_0x3ff6a7(0xba)});}),_0x2f5e08['push'](_0x9e5f14);}const _0xbf36cb=_0x203baa['filter'](_0x29075d=>_0x29075d[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xf8));if(_0xbf36cb['length']){let _0x13779a={'title':_0x3bb936[_0x5d2f5e(0xf8)],'type':_0x5d2f5e(0xf8),'list':[]};_0xbf36cb['map'](_0x428069=>{const _0x3b1aff=_0x5d2f5e;_0x13779a[_0x3b1aff(0xc3)][_0x3b1aff(0xd7)]({'title':_0x428069['name']+('['+_0x428069['itemname']+']'),'info':_0x1344c1+_0x428069[_0x3b1aff(0xb5)]+_0x48351d+_0x428069[_0x3b1aff(0xf5)],'nRs':_0x428069['num'],'unit':_0x428069[_0x3b1aff(0xb5)],'cb':_0x428069[_0x3b1aff(0xec)],'type':_0x3b1aff(0xf8)});}),_0x2f5e08['push'](_0x13779a);}const _0xf6999b=_0x203baa[_0x5d2f5e(0xce)](_0x5e2e72=>_0x5e2e72['strLx']=='trip');if(_0xf6999b[_0x5d2f5e(0xb7)]){let _0x2d3260={'title':_0x3bb936['trip'],'type':_0x5d2f5e(0xd3),'list':[]};_0xf6999b[_0x5d2f5e(0xe9)](_0x3996a1=>{const _0x3fb34c=_0x5d2f5e;_0x3996a1[_0x3fb34c(0xea)]!='0'&&_0x2d3260[_0x3fb34c(0xc3)]['push']({'title':_0x3996a1['name']+('['+_0x3a87ae[_0x3fb34c(0xf2)]+']'),'info':_0x1344c1+_0x3996a1['adultprice']+_0x48351d+_0x3996a1[_0x3fb34c(0xea)],'nRs':_0x3996a1[_0x3fb34c(0xea)],'unit':_0x3996a1[_0x3fb34c(0xd1)],'cb':_0x3996a1[_0x3fb34c(0xd2)],'type':_0x3fb34c(0xd3)}),_0x3996a1[_0x3fb34c(0xc6)]!='0'&&_0x2d3260[_0x3fb34c(0xc3)][_0x3fb34c(0xd7)]({'title':_0x3996a1[_0x3fb34c(0xda)]+('['+_0x3a87ae['child']+']'),'info':_0x1344c1+_0x3996a1['childprice']+_0x48351d+_0x3996a1['childnum'],'nRs':_0x3996a1[_0x3fb34c(0xc6)],'unit':_0x3996a1[_0x3fb34c(0xf1)],'cb':_0x3996a1[_0x3fb34c(0xc8)],'type':_0x3fb34c(0xd3)});}),_0x2f5e08[_0x5d2f5e(0xd7)](_0x2d3260);}let _0x2c7e20=[];const _0x5e1220=_0x203baa[_0x5d2f5e(0xce)](_0x4944ea=>_0x4944ea[_0x5d2f5e(0xeb)]=='elder');_0x5e1220[_0x5d2f5e(0xb7)]&&_0x5e1220[_0x5d2f5e(0xe9)](_0x1bd2fd=>{const _0xf13721=_0x5d2f5e,_0x326286=_0x1bd2fd[_0xf13721(0xda)][_0xf13721(0xd9)]('|')||[''];_0x2c7e20[_0xf13721(0xd7)]({'title':_0x3a87ae[_0xf13721(0xb4)]+('['+_0x326286[0x0]+']'),'info':_0x1344c1+_0x2b646a+_0x1bd2fd[_0xf13721(0xe0)],'unit':_0x1bd2fd[_0xf13721(0xe0)],'cb':_0x1bd2fd[_0xf13721(0xe0)],'type':_0xf13721(0xb4)});});const _0x2dea66=_0x203baa[_0x5d2f5e(0xce)](_0x468c0c=>_0x468c0c[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xdf));_0x2dea66[_0x5d2f5e(0xb7)]&&_0x2dea66['map'](_0x453b81=>{const _0x14b13e=_0x5d2f5e;_0x2c7e20['push']({'title':_0x3a87ae[_0x14b13e(0xee)]+('['+_0x453b81[_0x14b13e(0xda)]+']'),'info':_0x1344c1+_0x2b646a+_0x453b81['money'],'unit':_0x453b81['money'],'cb':_0x453b81[_0x14b13e(0xe0)],'type':_0x14b13e(0xee)});});const _0x2d0b83=_0x203baa[_0x5d2f5e(0xce)](_0x3e56d8=>_0x3e56d8['strLx']==_0x5d2f5e(0xde));_0x2d0b83[_0x5d2f5e(0xb7)]&&_0x2d0b83['map'](_0x230a3d=>{const _0x432496=_0x5d2f5e;_0x2c7e20[_0x432496(0xd7)]({'title':_0x3a87ae[_0x432496(0xde)],'info':_0x1344c1+_0x2b646a+_0x230a3d[_0x432496(0xe0)],'unit':_0x230a3d[_0x432496(0xe0)],'cb':_0x230a3d['money'],'type':_0x432496(0xde)});});_0x2c7e20[_0x5d2f5e(0xb7)]&&_0x2f5e08['push']({'title':_0x3bb936[_0x5d2f5e(0xe7)],'type':_0x5d2f5e(0xe7),'list':_0x2c7e20});const _0x2fe1b4=_0x203baa[_0x5d2f5e(0xce)](_0x13dc1a=>_0x13dc1a['strLx']=='airtax');if(_0x2fe1b4[_0x5d2f5e(0xb7)]){let _0x234351={'title':_0x3bb936[_0x5d2f5e(0xb8)],'type':_0x5d2f5e(0xb8),'list':[]};_0x2fe1b4[_0x5d2f5e(0xe9)](_0x5736f6=>{const _0x1ff27=_0x5d2f5e;_0x234351['list'][_0x1ff27(0xd7)]({'title':_0x3a87ae[_0x5736f6[_0x1ff27(0xc4)]],'info':_0x1344c1+_0x5736f6[_0x1ff27(0xb5)]+_0x48351d+_0x5736f6['sl'],'nRs':_0x5736f6['sl'],'unit':_0x5736f6[_0x1ff27(0xb5)],'cb':_0x5736f6['unitpricewb'],'type':_0x5736f6[_0x1ff27(0xc4)]});}),_0x2f5e08[_0x5d2f5e(0xd7)](_0x234351);}const _0xe7cac0=[_0x5d2f5e(0xba),_0x5d2f5e(0xf8),'trip',_0x5d2f5e(0xb4),'vipdiscounted',_0x5d2f5e(0xde),'airtax'],_0x3013d9=_0x203baa[_0x5d2f5e(0xce)](_0x28b071=>!_0xe7cac0[_0x5d2f5e(0xed)](_0x28b071[_0x5d2f5e(0xeb)]));let _0x2d1c18={'title':_0x3bb936[_0x5d2f5e(0xbb)],'type':_0x5d2f5e(0xbb),'list':[]};for(var _0x428208=0x0;_0x428208<_0x3013d9['length'];_0x428208++){const _0x482415=_0x3013d9[_0x428208];_0x482415[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xd5)&&_0x2d1c18['list'][_0x5d2f5e(0xd7)]({'title':_0x3a87ae[_0x5d2f5e(0xd5)]+('['+_0x482415[_0x5d2f5e(0xda)]+']'),'info':_0x1344c1+_0x482415['money'],'unit':_0x482415[_0x5d2f5e(0xe0)],'type':_0x482415[_0x5d2f5e(0xeb)]}),_0x482415[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xbe)&&_0x2d1c18[_0x5d2f5e(0xc3)]['push']({'title':_0x3a87ae[_0x5d2f5e(0xbe)]+('['+_0x482415[_0x5d2f5e(0xda)]+']'),'info':_0x1344c1+_0x482415['unit']+_0x48351d+_0x482415['users']+_0x3a87ae['r'],'nRs':_0x482415['users'],'unit':_0x482415['unit'],'cb':_0x482415[_0x5d2f5e(0xcd)],'type':_0x5d2f5e(0xbe)}),(_0x482415[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xe2)||_0x482415[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xcc))&&_0x2d1c18[_0x5d2f5e(0xc3)][_0x5d2f5e(0xd7)]({'title':_0x3a87ae[_0x482415[_0x5d2f5e(0xeb)]],'info':_0x1344c1+_0x2b646a+_0x482415[_0x5d2f5e(0xe0)],'unit':_0x482415[_0x5d2f5e(0xe0)],'type':_0x482415[_0x5d2f5e(0xeb)]}),_0x482415[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xf7)&&_0x2d1c18[_0x5d2f5e(0xc3)][_0x5d2f5e(0xd7)]({'title':_0x3a87ae[_0x482415['strLx']],'info':_0x1344c1+_0x482415[_0x5d2f5e(0xf7)]+_0x48351d+_0x482415['tipuser']+_0x3a87ae['r']+_0x48351d+_0x482415[_0x5d2f5e(0xc5)]+_0x3a87ae['t'],'nRs':_0x482415[_0x5d2f5e(0xc0)],'count':_0x482415[_0x5d2f5e(0xc5)],'unit':_0x482415['tip'],'type':_0x482415[_0x5d2f5e(0xeb)]}),_0x482415[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xef)&&_0x2d1c18['list'][_0x5d2f5e(0xd7)]({'title':_0x3a87ae[_0x482415[_0x5d2f5e(0xeb)]],'info':_0x1344c1+_0x482415[_0x5d2f5e(0xf6)],'unit':_0x482415['totaltax'],'type':_0x482415['strLx']});}_0x2d1c18[_0x5d2f5e(0xc3)][_0x5d2f5e(0xb7)]&&_0x2f5e08[_0x5d2f5e(0xd7)](_0x2d1c18);const _0x1049bc=_0x203baa['filter'](_0x35e7a1=>_0x35e7a1[_0x5d2f5e(0xeb)]=='totalprice');return _0x1049bc[_0x5d2f5e(0xb7)]&&_0x2f5e08[_0x5d2f5e(0xd7)]({'title':_0x3bb936[_0x5d2f5e(0xd4)],'type':'totalprice','list':[{'title':_0x3bb936[_0x5d2f5e(0xd4)],'info':_0x1344c1+_0x1049bc[0x0][_0x5d2f5e(0xc9)]}]}),_0x2f5e08;}export default{'handleCosting':handleCosting};