yunlin 1.0.36 → 1.0.38

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(_0xff44f1,_0x5b172a){var _0x1ca6dd=a0_0xcc4d,_0x231ce1=_0xff44f1();while(!![]){try{var _0x2eb77a=-parseInt(_0x1ca6dd(0x178))/0x1+parseInt(_0x1ca6dd(0x177))/0x2+-parseInt(_0x1ca6dd(0x17c))/0x3+-parseInt(_0x1ca6dd(0x179))/0x4*(-parseInt(_0x1ca6dd(0x17b))/0x5)+parseInt(_0x1ca6dd(0x176))/0x6*(parseInt(_0x1ca6dd(0x17a))/0x7)+parseInt(_0x1ca6dd(0x17e))/0x8+parseInt(_0x1ca6dd(0x17d))/0x9;if(_0x2eb77a===_0x5b172a)break;else _0x231ce1['push'](_0x231ce1['shift']());}catch(_0x30e476){_0x231ce1['push'](_0x231ce1['shift']());}}}(a0_0x3cfc,0x9be09));import a0_0x1a46b3 from'./utils';function a0_0xcc4d(_0x39b35f,_0x3a7ccf){var _0x3cfcd4=a0_0x3cfc();return a0_0xcc4d=function(_0xcc4d64,_0xb57b3d){_0xcc4d64=_0xcc4d64-0x176;var _0x4c6a6e=_0x3cfcd4[_0xcc4d64];return _0x4c6a6e;},a0_0xcc4d(_0x39b35f,_0x3a7ccf);}import a0_0x5113cf from'./price';import a0_0x16b2b8 from'./test';import a0_0x24baaa from'./room';function a0_0x3cfc(){var _0x4a49ba=['2173914CjwyGs','5765724GBCNKR','1092536OVYFoI','21636tKAlHz','598622aGtryk','1189885dNiHkI','104lDeKMr','1120AefphT','172985xXUjAx'];a0_0x3cfc=function(){return _0x4a49ba;};return a0_0x3cfc();}export default{'test':a0_0x16b2b8,'utils':a0_0x1a46b3,'price':a0_0x5113cf,'room':a0_0x24baaa};
1
+ function a0_0xc1d7(){var _0x1c182d=['17109gSzGkY','12SPgYOf','2126064yHZWXd','8048344yGLNAm','4972445jqgFsC','28mZXydc','1FyEEZX','6SXCAnA','416726DbrWOP','32220jXBmCB','5910xYEsiN','27661502mSKYHW'];a0_0xc1d7=function(){return _0x1c182d;};return a0_0xc1d7();}(function(_0x4a8e9a,_0x5ac8ab){var _0x54078a=a0_0x198c,_0x378ef7=_0x4a8e9a();while(!![]){try{var _0x11f7c1=-parseInt(_0x54078a(0x196))/0x1*(-parseInt(_0x54078a(0x198))/0x2)+parseInt(_0x54078a(0x197))/0x3*(-parseInt(_0x54078a(0x192))/0x4)+-parseInt(_0x54078a(0x194))/0x5+-parseInt(_0x54078a(0x18d))/0x6*(-parseInt(_0x54078a(0x195))/0x7)+parseInt(_0x54078a(0x193))/0x8+parseInt(_0x54078a(0x190))/0x9*(-parseInt(_0x54078a(0x18e))/0xa)+parseInt(_0x54078a(0x18f))/0xb*(parseInt(_0x54078a(0x191))/0xc);if(_0x11f7c1===_0x5ac8ab)break;else _0x378ef7['push'](_0x378ef7['shift']());}catch(_0x3ccb3d){_0x378ef7['push'](_0x378ef7['shift']());}}}(a0_0xc1d7,0x8b0d4));function a0_0x198c(_0x5570e0,_0x42306f){var _0xc1d736=a0_0xc1d7();return a0_0x198c=function(_0x198c8a,_0x2f2c35){_0x198c8a=_0x198c8a-0x18d;var _0x454ebb=_0xc1d736[_0x198c8a];return _0x454ebb;},a0_0x198c(_0x5570e0,_0x42306f);}import a0_0x871ca1 from'./utils';import a0_0x3b7e14 from'./price';import a0_0x4eadb4 from'./test';import a0_0x4376fc from'./room';export default{'test':a0_0x4eadb4,'utils':a0_0x871ca1,'price':a0_0x3b7e14,'room':a0_0x4376fc};
package/dist/price.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3aa503,_0x5d75b4){const _0x2c219d=a1_0x48fb,_0x27cfc4=_0x3aa503();while(!![]){try{const _0x21810d=-parseInt(_0x2c219d(0x19b))/0x1+parseInt(_0x2c219d(0x190))/0x2+-parseInt(_0x2c219d(0x1bd))/0x3+-parseInt(_0x2c219d(0x18d))/0x4*(-parseInt(_0x2c219d(0x191))/0x5)+-parseInt(_0x2c219d(0x1a6))/0x6*(-parseInt(_0x2c219d(0x183))/0x7)+parseInt(_0x2c219d(0x19e))/0x8+-parseInt(_0x2c219d(0x187))/0x9;if(_0x21810d===_0x5d75b4)break;else _0x27cfc4['push'](_0x27cfc4['shift']());}catch(_0x260246){_0x27cfc4['push'](_0x27cfc4['shift']());}}}(a1_0x55bc,0x95109));function a1_0x48fb(_0x230c45,_0x5f4d35){const _0x55bc2f=a1_0x55bc();return a1_0x48fb=function(_0x48fbe3,_0x1dd2c9){_0x48fbe3=_0x48fbe3-0x175;let _0x2b4841=_0x55bc2f[_0x48fbe3];return _0x2b4841;},a1_0x48fb(_0x230c45,_0x5f4d35);}function handleCosting(_0x4fc607,_0x8dad94='',_0x2713d2={},_0x42f083,_0x2f4901){const _0x2166e2=a1_0x48fb;let _0x3452cd=[];const _0x2b4cbd=_0x2166e2(0x17b),_0x272a8a={'couponSign':'-','dp':0x2};_0x2713d2=typeof _0x2713d2===_0x2166e2(0x178)&&!Array[_0x2166e2(0x18b)](_0x2713d2)&&_0x2713d2!==null?_0x2713d2:{};const _0x4916bc={..._0x272a8a,..._0x2713d2},_0x2bf40a=Object[_0x2166e2(0x185)](_0x272a8a);Object[_0x2166e2(0x185)](_0x2713d2)[_0x2166e2(0x175)](_0x94f66=>{const _0x346703=_0x2166e2;!_0x2bf40a['includes'](_0x94f66)&&console[_0x346703(0x179)]('[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20'+_0x94f66);});let _0x2507e5=_0x4916bc[_0x2166e2(0x19f)]||'-',_0x127fcb=_0x4916bc['dp']||0x2;const _0xf1d592=(_0x117ec4,_0x2d13c9=_0x127fcb)=>{const _0x1c429e=_0x2166e2;if(typeof _0x117ec4!==_0x1c429e(0x1c2)&&isNaN(Number(_0x117ec4)))return console[_0x1c429e(0x1be)](_0x1c429e(0x184)+_0x117ec4),_0x117ec4;if(isNaN(_0x2d13c9)||_0x2d13c9<0x0)return _0x117ec4;let _0x330c9c=Number(_0x117ec4);if(!isFinite(_0x330c9c))return _0x117ec4;return _0x2d13c9=Math[_0x1c429e(0x194)](0x0,Math[_0x1c429e(0x18c)](_0x2d13c9)),_0x330c9c[_0x1c429e(0x186)](_0x2d13c9);},_0x593227=(_0x143f3b,_0x1de126)=>{const _0x15aedf=_0x2166e2;if(_0x1de126&&typeof _0x1de126===_0x15aedf(0x178)&&!Array[_0x15aedf(0x18b)](_0x1de126))for(const _0x2d1952 in _0x143f3b){_0x143f3b[_0x15aedf(0x1b2)](_0x2d1952)&&_0x1de126[_0x15aedf(0x1b2)](_0x2d1952)&&(_0x143f3b[_0x2d1952]=_0x1de126[_0x2d1952]);}else console[_0x15aedf(0x1be)](('yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:'+JSON[_0x15aedf(0x1ae)](_0x1de126,null,0x2)+_0x15aedf(0x182)+JSON[_0x15aedf(0x1ae)](_0x143f3b,null,0x2))[_0x15aedf(0x176)]());return _0x143f3b;};let _0x21f9fc={'people':_0x2166e2(0x19c),'service':_0x2166e2(0x177),'trip':_0x2166e2(0x17f),'other':'其他費用','reduction':_0x2166e2(0x197),'totalprice':'總計','airtax':_0x2166e2(0x1bb)},_0x24cce6={'adult':'成人','child':'兒童','childusebed':_0x2166e2(0x19d),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x2166e2(0x18e),'vip':'會員減免','promotion':'促銷','insure':'保險費用','coupon':_0x2166e2(0x1a5),'point':'積分','tax':'稅金','viprecharge':_0x2166e2(0x1b8),'r':'人','t':'天'};_0x21f9fc=_0x593227(_0x21f9fc,_0x42f083),_0x24cce6=_0x593227(_0x24cce6,_0x2f4901);const _0x248f5=_0x4fc607[_0x2166e2(0x1c3)](_0x36ad2c=>_0x36ad2c[_0x2166e2(0x1ba)]==_0x2166e2(0x1a8));if(_0x248f5[_0x2166e2(0x1b4)]){let _0x212ec2={'title':_0x21f9fc['people'],'type':_0x2166e2(0x1a8),'list':[]};_0x248f5['map'](_0x51fad9=>{const _0xaf9545=_0x2166e2;_0x212ec2[_0xaf9545(0x17d)][_0xaf9545(0x1a3)]({'title':_0x24cce6[_0x51fad9[_0xaf9545(0x1c1)]],'info':_0x8dad94+_0xf1d592(_0x51fad9[_0xaf9545(0x193)])+_0x2b4cbd+_0x51fad9[_0xaf9545(0x1b7)],'nRs':_0x51fad9[_0xaf9545(0x1b7)],'unit':_0x51fad9['fLsjUnit'],'cb':_0x51fad9[_0xaf9545(0x1b0)],'type':'base'});}),_0x3452cd['push'](_0x212ec2);}const _0x3b79d4=_0x4fc607['filter'](_0x72ffc1=>_0x72ffc1['strLx']==_0x2166e2(0x1b6));if(_0x3b79d4[_0x2166e2(0x1b4)]){let _0x1db8c5={'title':_0x21f9fc[_0x2166e2(0x1b6)],'type':_0x2166e2(0x1b6),'list':[]};_0x3b79d4[_0x2166e2(0x189)](_0x475096=>{const _0x3ce36e=_0x2166e2;_0x1db8c5['list'][_0x3ce36e(0x1a3)]({'title':_0x475096[_0x3ce36e(0x1bc)]+('['+_0x475096[_0x3ce36e(0x1bf)]+']'),'info':_0x8dad94+_0xf1d592(_0x475096[_0x3ce36e(0x1a2)])+_0x2b4cbd+_0x475096['num'],'nRs':_0x475096[_0x3ce36e(0x188)],'unit':_0x475096[_0x3ce36e(0x1a2)],'cb':_0x475096['baseprice'],'type':_0x3ce36e(0x1b6)});}),_0x3452cd['push'](_0x1db8c5);}const _0xceb8bc=_0x4fc607[_0x2166e2(0x1c3)](_0x5db410=>_0x5db410['strLx']==_0x2166e2(0x1b5));if(_0xceb8bc[_0x2166e2(0x1b4)]){let _0x23ca01={'title':_0x21f9fc[_0x2166e2(0x1b5)],'type':_0x2166e2(0x1b5),'list':[]};_0xceb8bc['map'](_0x314fa3=>{const _0x43af5d=_0x2166e2;_0x314fa3[_0x43af5d(0x1ad)]!='0'&&_0x23ca01[_0x43af5d(0x17d)]['push']({'title':_0x314fa3[_0x43af5d(0x1bc)]+('['+_0x24cce6[_0x43af5d(0x1a1)]+']'),'info':_0x8dad94+_0xf1d592(_0x314fa3['adultprice'])+_0x2b4cbd+_0x314fa3[_0x43af5d(0x1ad)],'nRs':_0x314fa3['adultnum'],'unit':_0x314fa3[_0x43af5d(0x192)],'cb':_0x314fa3[_0x43af5d(0x1af)],'type':_0x43af5d(0x1b5)}),_0x314fa3[_0x43af5d(0x1b9)]!='0'&&_0x23ca01['list'][_0x43af5d(0x1a3)]({'title':_0x314fa3['name']+('['+_0x24cce6[_0x43af5d(0x196)]+']'),'info':_0x8dad94+_0xf1d592(_0x314fa3[_0x43af5d(0x198)])+_0x2b4cbd+_0x314fa3[_0x43af5d(0x1b9)],'nRs':_0x314fa3[_0x43af5d(0x1b9)],'unit':_0x314fa3[_0x43af5d(0x198)],'cb':_0x314fa3['basechildprice'],'type':_0x43af5d(0x1b5)});}),_0x3452cd[_0x2166e2(0x1a3)](_0x23ca01);}let _0xd32b57=[];const _0x12bbd8=_0x4fc607[_0x2166e2(0x1c3)](_0x12cb13=>_0x12cb13[_0x2166e2(0x1ba)]==_0x2166e2(0x1b1));_0x12bbd8[_0x2166e2(0x1b4)]&&_0x12bbd8[_0x2166e2(0x189)](_0x8a5dc4=>{const _0x22462d=_0x2166e2,_0x438202=_0x8a5dc4[_0x22462d(0x1bc)][_0x22462d(0x1ac)]('|')||[''];_0xd32b57[_0x22462d(0x1a3)]({'title':_0x24cce6[_0x22462d(0x1b1)]+('['+_0x438202[0x0]+']'),'info':_0x8dad94+_0x2507e5+_0xf1d592(_0x8a5dc4['money']),'unit':_0x8a5dc4[_0x22462d(0x181)],'cb':_0x8a5dc4[_0x22462d(0x181)],'type':'elder'});});const _0x3637d0=_0x4fc607[_0x2166e2(0x1c3)](_0x37a3b5=>_0x37a3b5[_0x2166e2(0x1ba)]=='vipdiscounted');_0x3637d0[_0x2166e2(0x1b4)]&&_0x3637d0[_0x2166e2(0x189)](_0x3d2b38=>{const _0x2cbfaf=_0x2166e2;_0xd32b57[_0x2cbfaf(0x1a3)]({'title':_0x24cce6[_0x2cbfaf(0x18a)]+('['+_0x3d2b38[_0x2cbfaf(0x1bc)]+']'),'info':_0x8dad94+_0x2507e5+_0xf1d592(_0x3d2b38['money']),'unit':_0x3d2b38[_0x2cbfaf(0x181)],'cb':_0x3d2b38[_0x2cbfaf(0x181)],'type':_0x2cbfaf(0x18a)});});const _0x1bf7fb=_0x4fc607[_0x2166e2(0x1c3)](_0xf15dd0=>_0xf15dd0['strLx']==_0x2166e2(0x195));_0x1bf7fb['length']&&_0x1bf7fb[_0x2166e2(0x189)](_0x1ede1b=>{const _0x183d3e=_0x2166e2;_0xd32b57[_0x183d3e(0x1a3)]({'title':_0x24cce6[_0x183d3e(0x195)],'info':_0x8dad94+_0x2507e5+_0xf1d592(_0x1ede1b[_0x183d3e(0x181)]),'unit':_0x1ede1b[_0x183d3e(0x181)],'cb':_0x1ede1b[_0x183d3e(0x181)],'type':_0x183d3e(0x195)});});_0xd32b57[_0x2166e2(0x1b4)]&&_0x3452cd[_0x2166e2(0x1a3)]({'title':_0x21f9fc[_0x2166e2(0x1aa)],'type':'reduction','list':_0xd32b57});const _0xa8a70=_0x4fc607[_0x2166e2(0x1c3)](_0x981b13=>_0x981b13['strLx']=='airtax');if(_0xa8a70[_0x2166e2(0x1b4)]){let _0x4968c0={'title':_0x21f9fc[_0x2166e2(0x17e)],'type':_0x2166e2(0x17e),'list':[]};_0xa8a70[_0x2166e2(0x189)](_0x5293ff=>{const _0xeeddb3=_0x2166e2;_0x4968c0[_0xeeddb3(0x17d)][_0xeeddb3(0x1a3)]({'title':_0x24cce6[_0x5293ff[_0xeeddb3(0x1a9)]],'info':_0x8dad94+_0xf1d592(_0x5293ff[_0xeeddb3(0x1a2)])+_0x2b4cbd+_0x5293ff['sl'],'nRs':_0x5293ff['sl'],'unit':_0x5293ff[_0xeeddb3(0x1a2)],'cb':_0x5293ff['unitpricewb'],'type':_0x5293ff[_0xeeddb3(0x1a9)]});}),_0x3452cd[_0x2166e2(0x1a3)](_0x4968c0);}const _0x3bbb61=[_0x2166e2(0x1a8),'service','trip',_0x2166e2(0x1b1),'vipdiscounted','promotion',_0x2166e2(0x17e)],_0x5db973=_0x4fc607[_0x2166e2(0x1c3)](_0x3f04d9=>!_0x3bbb61[_0x2166e2(0x1a0)](_0x3f04d9[_0x2166e2(0x1ba)]));let _0x42be8f={'title':_0x21f9fc[_0x2166e2(0x1c0)],'type':_0x2166e2(0x1c0),'list':[]};for(var _0x1c9b05=0x0;_0x1c9b05<_0x5db973['length'];_0x1c9b05++){const _0xb37333=_0x5db973[_0x1c9b05];_0xb37333['strLx']==_0x2166e2(0x1ab)&&_0x42be8f[_0x2166e2(0x17d)][_0x2166e2(0x1a3)]({'title':_0x24cce6[_0x2166e2(0x1ab)]+('['+_0xb37333[_0x2166e2(0x1bc)]+']'),'info':_0x8dad94+_0xf1d592(_0xb37333[_0x2166e2(0x181)]),'unit':_0xb37333[_0x2166e2(0x181)],'type':_0xb37333[_0x2166e2(0x1ba)]}),_0xb37333[_0x2166e2(0x1ba)]==_0x2166e2(0x1b3)&&_0x42be8f[_0x2166e2(0x17d)][_0x2166e2(0x1a3)]({'title':_0x24cce6[_0x2166e2(0x1b3)]+('['+_0xb37333['name']+']'),'info':_0x8dad94+_0xf1d592(_0xb37333['unit'])+_0x2b4cbd+_0xb37333[_0x2166e2(0x17c)]+_0x24cce6['r'],'nRs':_0xb37333[_0x2166e2(0x17c)],'unit':_0xb37333[_0x2166e2(0x17a)],'cb':_0xb37333[_0x2166e2(0x17a)],'type':'insure'}),(_0xb37333[_0x2166e2(0x1ba)]==_0x2166e2(0x1a7)||_0xb37333[_0x2166e2(0x1ba)]=='point')&&_0x42be8f[_0x2166e2(0x17d)][_0x2166e2(0x1a3)]({'title':_0x24cce6[_0xb37333['strLx']],'info':_0x8dad94+_0x2507e5+_0xf1d592(_0xb37333[_0x2166e2(0x181)]),'unit':_0xb37333['money'],'type':_0xb37333[_0x2166e2(0x1ba)]}),_0xb37333['strLx']=='tip'&&_0x42be8f[_0x2166e2(0x17d)][_0x2166e2(0x1a3)]({'title':_0x24cce6[_0xb37333[_0x2166e2(0x1ba)]],'info':_0x8dad94+_0xf1d592(_0xb37333[_0x2166e2(0x19a)])+_0x2b4cbd+_0xb37333['tipuser']+_0x24cce6['r']+_0x2b4cbd+_0xb37333[_0x2166e2(0x199)]+_0x24cce6['t'],'nRs':_0xb37333[_0x2166e2(0x1a4)],'count':_0xb37333['tipday'],'unit':_0xb37333[_0x2166e2(0x19a)],'type':_0xb37333[_0x2166e2(0x1ba)]}),_0xb37333[_0x2166e2(0x1ba)]=='tax'&&_0x42be8f[_0x2166e2(0x17d)]['push']({'title':_0x24cce6[_0xb37333[_0x2166e2(0x1ba)]],'info':_0x8dad94+_0xf1d592(_0xb37333[_0x2166e2(0x180)]),'unit':_0xb37333[_0x2166e2(0x180)],'type':_0xb37333['strLx']});}_0x42be8f['list'][_0x2166e2(0x1b4)]&&_0x3452cd['push'](_0x42be8f);const _0x405073=_0x4fc607['filter'](_0x34aa7c=>_0x34aa7c[_0x2166e2(0x1ba)]=='totalprice');return _0x405073[_0x2166e2(0x1b4)]&&_0x3452cd[_0x2166e2(0x1a3)]({'title':_0x21f9fc['totalprice'],'type':_0x2166e2(0x18f),'list':[{'title':_0x21f9fc[_0x2166e2(0x18f)],'info':_0x8dad94+_0xf1d592(_0x405073[0x0]['price'])}]}),_0x3452cd;}export default{'handleCosting':handleCosting};function a1_0x55bc(){const _0x4ae16f=['totaltax','money','\x0a\x09\x09\x09正确参数:','28oBDfyP','ftd\x20函数接收到无效的数字输入:\x20','keys','toFixed','16044930GgZLRU','num','map','vip','isArray','floor','167644TuexYx','遊客優惠','totalprice','565780wCNXDL','135PgZZhk','adultprice','fLsjUnit','max','promotion','child','減免費用','childprice','tipday','tip','578271HToLcq','人員費用','兒童[占床]','7193384qsjDJr','couponSign','includes','adult','unitprice','push','tipuser','優惠券','1689678QExTnh','coupon','base','rylx','reduction','viprecharge','split','adultnum','stringify','baseadultprice','fJcbzlsjUnit','elder','hasOwnProperty','insure','length','trip','service','nRs','會員充值','childnum','strLx','機場稅','name','1405506yTthFX','error','itemname','other','strJgbm','number','filter','forEach','trim','附加服務','object','warn','unit','\x20*\x20','users','list','airtax','附加行程'];a1_0x55bc=function(){return _0x4ae16f;};return a1_0x55bc();}
1
+ function a1_0xebd9(_0x5663cc,_0x133f58){const _0x1298f0=a1_0x1298();return a1_0xebd9=function(_0xebd910,_0x1a0eb2){_0xebd910=_0xebd910-0x10a;let _0x157f2f=_0x1298f0[_0xebd910];return _0x157f2f;},a1_0xebd9(_0x5663cc,_0x133f58);}function a1_0x1298(){const _0xfa37b7=['base','\x20*\x20','adult','name','附加服務','rylx','keys','max','money','childprice','isArray','childnum','length','push','2106816pLAXrm','adultnum','service','warn','兒童[占床]','filter','error','tax','10201873Wcnhhz','500625bfPamm','8XyZYvd','239346dmdhtk','totaltax','child','stringify','adultprice','8qEqfce','elder','price','vipdiscounted','people','trip','unitpricewb','vip','isShowTip','other','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','reduction','保險費用','[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20','forEach','fLsjUnit','split','人員費用','list','tip','552707wKoOFA','airtax','includes','users','機場稅','50BEVpqz','tipday','2810486IcUwck','附加行程','\x0a\x09\x09\x09正确参数:','會員充值','1000530ODublX','遊客優惠','unitprice','map','24OTURDs','tipuser','basechildprice','promotion','hasOwnProperty','unit','ftd\x20函数接收到无效的数字输入:\x20','point','viprecharge','strLx','2uxAieI','優惠券','object','coupon','floor','totalprice','toFixed','nRs','couponSign'];a1_0x1298=function(){return _0xfa37b7;};return a1_0x1298();}(function(_0x8d5fa7,_0x5cd032){const _0x3692b7=a1_0xebd9,_0x5d6840=_0x8d5fa7();while(!![]){try{const _0xab20d9=-parseInt(_0x3692b7(0x113))/0x1*(parseInt(_0x3692b7(0x12c))/0x2)+-parseInt(_0x3692b7(0x14c))/0x3*(parseInt(_0x3692b7(0x153))/0x4)+parseInt(_0x3692b7(0x11e))/0x5+-parseInt(_0x3692b7(0x143))/0x6+-parseInt(_0x3692b7(0x11a))/0x7*(parseInt(_0x3692b7(0x14d))/0x8)+parseInt(_0x3692b7(0x14e))/0x9*(parseInt(_0x3692b7(0x118))/0xa)+parseInt(_0x3692b7(0x14b))/0xb*(parseInt(_0x3692b7(0x122))/0xc);if(_0xab20d9===_0x5cd032)break;else _0x5d6840['push'](_0x5d6840['shift']());}catch(_0x8e0f84){_0x5d6840['push'](_0x5d6840['shift']());}}}(a1_0x1298,0x86007));function handleCosting(_0x4b985f,_0x29e86c='',_0x87855f={},_0x281aad,_0x5e6746){const _0x224018=a1_0xebd9;let _0x3c7c65=[];const _0x41f050=_0x224018(0x136),_0x326768={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x87855f=typeof _0x87855f==='object'&&!Array[_0x224018(0x13f)](_0x87855f)&&_0x87855f!==null?_0x87855f:{};const _0x28694e={..._0x326768,..._0x87855f},_0x1d4b1f=Object[_0x224018(0x13b)](_0x326768);Object['keys'](_0x87855f)[_0x224018(0x10d)](_0xb5d212=>{const _0x28b583=_0x224018;!_0x1d4b1f['includes'](_0xb5d212)&&console[_0x28b583(0x146)](_0x28b583(0x10c)+_0xb5d212);});let _0x3929ce=_0x28694e[_0x224018(0x134)]||'-',_0x551917=_0x28694e['dp']||0x2;const _0x307a36=(_0x296a6b,_0x3efc2a=_0x551917)=>{const _0x2bb634=_0x224018;if(typeof _0x296a6b!=='number'&&isNaN(Number(_0x296a6b)))return console[_0x2bb634(0x149)](_0x2bb634(0x128)+_0x296a6b),_0x296a6b;if(isNaN(_0x3efc2a)||_0x3efc2a<0x0)return _0x296a6b;let _0x227b01=Number(_0x296a6b);if(!isFinite(_0x227b01))return _0x296a6b;return _0x3efc2a=Math[_0x2bb634(0x13c)](0x0,Math[_0x2bb634(0x130)](_0x3efc2a)),_0x227b01[_0x2bb634(0x132)](_0x3efc2a);},_0x4c1c1d=(_0xf8ae37,_0x30adc8)=>{const _0x216b3b=_0x224018;if(_0x30adc8&&typeof _0x30adc8===_0x216b3b(0x12e)&&!Array[_0x216b3b(0x13f)](_0x30adc8))for(const _0x575c14 in _0xf8ae37){_0xf8ae37[_0x216b3b(0x126)](_0x575c14)&&_0x30adc8[_0x216b3b(0x126)](_0x575c14)&&(_0xf8ae37[_0x575c14]=_0x30adc8[_0x575c14]);}else console[_0x216b3b(0x149)]((_0x216b3b(0x15d)+JSON['stringify'](_0x30adc8,null,0x2)+_0x216b3b(0x11c)+JSON[_0x216b3b(0x151)](_0xf8ae37,null,0x2))['trim']());return _0xf8ae37;};let _0x28fd7c={'people':_0x224018(0x110),'service':_0x224018(0x139),'trip':_0x224018(0x11b),'other':'其他費用','reduction':'減免費用','totalprice':'總計','airtax':_0x224018(0x117)},_0x37a3ba={'adult':'成人','child':'兒童','childusebed':_0x224018(0x147),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x224018(0x11f),'vip':'會員減免','promotion':'促銷','insure':_0x224018(0x10b),'coupon':_0x224018(0x12d),'point':'積分','tax':'稅金','viprecharge':_0x224018(0x11d),'r':'人','t':'天'};_0x28fd7c=_0x4c1c1d(_0x28fd7c,_0x281aad),_0x37a3ba=_0x4c1c1d(_0x37a3ba,_0x5e6746);const _0x405f05=_0x4b985f[_0x224018(0x148)](_0x2637f5=>_0x2637f5['strLx']==_0x224018(0x135));if(_0x405f05['length']){let _0x3c6225={'title':_0x28fd7c[_0x224018(0x157)],'type':'base','list':[]};_0x405f05[_0x224018(0x121)](_0x501d21=>{const _0x2272c7=_0x224018;_0x3c6225['list'][_0x2272c7(0x142)]({'title':_0x37a3ba[_0x501d21['strJgbm']],'info':_0x29e86c+_0x307a36(_0x501d21[_0x2272c7(0x10e)])+_0x41f050+_0x501d21[_0x2272c7(0x133)],'nRs':_0x501d21[_0x2272c7(0x133)],'unit':_0x501d21[_0x2272c7(0x10e)],'cb':_0x501d21['fJcbzlsjUnit'],'type':_0x2272c7(0x135)});}),_0x3c7c65['push'](_0x3c6225);}const _0x38daef=_0x4b985f[_0x224018(0x148)](_0x22e731=>_0x22e731[_0x224018(0x12b)]=='service');if(_0x38daef[_0x224018(0x141)]){let _0x50c8af={'title':_0x28fd7c[_0x224018(0x145)],'type':_0x224018(0x145),'list':[]};_0x38daef[_0x224018(0x121)](_0x326ed7=>{const _0x702213=_0x224018;_0x50c8af[_0x702213(0x111)][_0x702213(0x142)]({'title':_0x326ed7[_0x702213(0x138)]+('['+_0x326ed7['itemname']+']'),'info':_0x29e86c+_0x307a36(_0x326ed7[_0x702213(0x120)])+_0x41f050+_0x326ed7['num'],'nRs':_0x326ed7['num'],'unit':_0x326ed7[_0x702213(0x120)],'cb':_0x326ed7['baseprice'],'type':'service'});}),_0x3c7c65[_0x224018(0x142)](_0x50c8af);}const _0x291acb=_0x4b985f[_0x224018(0x148)](_0x4424da=>_0x4424da[_0x224018(0x12b)]==_0x224018(0x158));if(_0x291acb[_0x224018(0x141)]){let _0x158887={'title':_0x28fd7c[_0x224018(0x158)],'type':_0x224018(0x158),'list':[]};_0x291acb['map'](_0x4e6435=>{const _0x5b7c72=_0x224018;_0x4e6435['adultnum']!='0'&&_0x158887['list'][_0x5b7c72(0x142)]({'title':_0x4e6435[_0x5b7c72(0x138)]+('['+_0x37a3ba[_0x5b7c72(0x137)]+']'),'info':_0x29e86c+_0x307a36(_0x4e6435[_0x5b7c72(0x152)])+_0x41f050+_0x4e6435[_0x5b7c72(0x144)],'nRs':_0x4e6435[_0x5b7c72(0x144)],'unit':_0x4e6435[_0x5b7c72(0x152)],'cb':_0x4e6435['baseadultprice'],'type':_0x5b7c72(0x158)}),_0x4e6435[_0x5b7c72(0x140)]!='0'&&_0x158887[_0x5b7c72(0x111)][_0x5b7c72(0x142)]({'title':_0x4e6435[_0x5b7c72(0x138)]+('['+_0x37a3ba[_0x5b7c72(0x150)]+']'),'info':_0x29e86c+_0x307a36(_0x4e6435[_0x5b7c72(0x13e)])+_0x41f050+_0x4e6435[_0x5b7c72(0x140)],'nRs':_0x4e6435['childnum'],'unit':_0x4e6435['childprice'],'cb':_0x4e6435[_0x5b7c72(0x124)],'type':_0x5b7c72(0x158)});}),_0x3c7c65[_0x224018(0x142)](_0x158887);}let _0x75c0e0=[];const _0x7fe6b4=_0x4b985f[_0x224018(0x148)](_0x228308=>_0x228308[_0x224018(0x12b)]=='elder');_0x7fe6b4['length']&&_0x7fe6b4['map'](_0x4e82e6=>{const _0x698a9a=_0x224018,_0x564da7=_0x4e82e6[_0x698a9a(0x138)][_0x698a9a(0x10f)]('|')||[''];_0x75c0e0[_0x698a9a(0x142)]({'title':_0x37a3ba[_0x698a9a(0x154)]+('['+_0x564da7[0x0]+']'),'info':_0x29e86c+_0x3929ce+_0x307a36(_0x4e82e6['money']),'unit':_0x4e82e6['money'],'cb':_0x4e82e6[_0x698a9a(0x13d)],'type':_0x698a9a(0x154)});});const _0x4818d3=_0x4b985f[_0x224018(0x148)](_0x380475=>_0x380475['strLx']==_0x224018(0x156));_0x4818d3[_0x224018(0x141)]&&_0x4818d3[_0x224018(0x121)](_0x109b27=>{const _0x5ecaaf=_0x224018;_0x75c0e0[_0x5ecaaf(0x142)]({'title':_0x37a3ba['vip']+('['+_0x109b27[_0x5ecaaf(0x138)]+']'),'info':_0x29e86c+_0x3929ce+_0x307a36(_0x109b27[_0x5ecaaf(0x13d)]),'unit':_0x109b27[_0x5ecaaf(0x13d)],'cb':_0x109b27[_0x5ecaaf(0x13d)],'type':_0x5ecaaf(0x15a)});});const _0xc6e2bf=_0x4b985f[_0x224018(0x148)](_0x12c017=>_0x12c017[_0x224018(0x12b)]==_0x224018(0x125));_0xc6e2bf[_0x224018(0x141)]&&_0xc6e2bf[_0x224018(0x121)](_0x24eae8=>{const _0x59e515=_0x224018;_0x75c0e0[_0x59e515(0x142)]({'title':_0x37a3ba[_0x59e515(0x125)],'info':_0x29e86c+_0x3929ce+_0x307a36(_0x24eae8[_0x59e515(0x13d)]),'unit':_0x24eae8[_0x59e515(0x13d)],'cb':_0x24eae8[_0x59e515(0x13d)],'type':_0x59e515(0x125)});});_0x75c0e0[_0x224018(0x141)]&&_0x3c7c65[_0x224018(0x142)]({'title':_0x28fd7c['reduction'],'type':_0x224018(0x10a),'list':_0x75c0e0});const _0x4fe258=_0x4b985f[_0x224018(0x148)](_0x403f45=>_0x403f45[_0x224018(0x12b)]==_0x224018(0x114));if(_0x4fe258[_0x224018(0x141)]){let _0x415688={'title':_0x28fd7c[_0x224018(0x114)],'type':_0x224018(0x114),'list':[]};_0x4fe258[_0x224018(0x121)](_0x20b1f9=>{const _0x193eb6=_0x224018;_0x415688['list'][_0x193eb6(0x142)]({'title':_0x37a3ba[_0x20b1f9[_0x193eb6(0x13a)]],'info':_0x29e86c+_0x307a36(_0x20b1f9[_0x193eb6(0x120)])+_0x41f050+_0x20b1f9['sl'],'nRs':_0x20b1f9['sl'],'unit':_0x20b1f9[_0x193eb6(0x120)],'cb':_0x20b1f9[_0x193eb6(0x159)],'type':_0x20b1f9[_0x193eb6(0x13a)]});}),_0x3c7c65[_0x224018(0x142)](_0x415688);}const _0x22fda3=[_0x224018(0x135),_0x224018(0x145),_0x224018(0x158),_0x224018(0x154),_0x224018(0x156),_0x224018(0x125),_0x224018(0x114)],_0x2c18b6=_0x4b985f['filter'](_0x1ba656=>!_0x22fda3[_0x224018(0x115)](_0x1ba656[_0x224018(0x12b)]));let _0x2c988d={'title':_0x28fd7c[_0x224018(0x15c)],'type':_0x224018(0x15c),'list':[]};for(var _0x3d1104=0x0;_0x3d1104<_0x2c18b6['length'];_0x3d1104++){const _0x5cde47=_0x2c18b6[_0x3d1104];_0x5cde47[_0x224018(0x12b)]==_0x224018(0x12a)&&_0x2c988d['list'][_0x224018(0x142)]({'title':_0x37a3ba['viprecharge']+('['+_0x5cde47[_0x224018(0x138)]+']'),'info':_0x29e86c+_0x307a36(_0x5cde47[_0x224018(0x13d)]),'unit':_0x5cde47[_0x224018(0x13d)],'type':_0x5cde47[_0x224018(0x12b)]}),_0x5cde47[_0x224018(0x12b)]=='insure'&&_0x2c988d[_0x224018(0x111)][_0x224018(0x142)]({'title':_0x37a3ba['insure']+('['+_0x5cde47[_0x224018(0x138)]+']'),'info':_0x29e86c+_0x307a36(_0x5cde47[_0x224018(0x127)])+_0x41f050+_0x5cde47[_0x224018(0x116)]+_0x37a3ba['r'],'nRs':_0x5cde47[_0x224018(0x116)],'unit':_0x5cde47[_0x224018(0x127)],'cb':_0x5cde47[_0x224018(0x127)],'type':'insure'}),(_0x5cde47[_0x224018(0x12b)]==_0x224018(0x12f)||_0x5cde47[_0x224018(0x12b)]==_0x224018(0x129))&&_0x2c988d[_0x224018(0x111)][_0x224018(0x142)]({'title':_0x37a3ba[_0x5cde47['strLx']],'info':_0x29e86c+_0x3929ce+_0x307a36(_0x5cde47[_0x224018(0x13d)]),'unit':_0x5cde47[_0x224018(0x13d)],'type':_0x5cde47[_0x224018(0x12b)]}),_0x5cde47[_0x224018(0x12b)]==_0x224018(0x112)&&_0x28694e[_0x224018(0x15b)]&&_0x2c988d[_0x224018(0x111)]['push']({'title':_0x37a3ba[_0x5cde47[_0x224018(0x12b)]],'info':_0x29e86c+_0x307a36(_0x5cde47['tip'])+_0x41f050+_0x5cde47[_0x224018(0x123)]+_0x37a3ba['r']+_0x41f050+_0x5cde47[_0x224018(0x119)]+_0x37a3ba['t'],'nRs':_0x5cde47[_0x224018(0x123)],'count':_0x5cde47['tipday'],'unit':_0x5cde47['tip'],'type':_0x5cde47[_0x224018(0x12b)]}),_0x5cde47[_0x224018(0x12b)]==_0x224018(0x14a)&&_0x2c988d[_0x224018(0x111)]['push']({'title':_0x37a3ba[_0x5cde47['strLx']],'info':_0x29e86c+_0x307a36(_0x5cde47[_0x224018(0x14f)]),'unit':_0x5cde47['totaltax'],'type':_0x5cde47[_0x224018(0x12b)]});}_0x2c988d[_0x224018(0x111)][_0x224018(0x141)]&&_0x3c7c65[_0x224018(0x142)](_0x2c988d);const _0x29db38=_0x4b985f['filter'](_0x242584=>_0x242584[_0x224018(0x12b)]==_0x224018(0x131));return _0x29db38[_0x224018(0x141)]&&_0x3c7c65[_0x224018(0x142)]({'title':_0x28fd7c['totalprice'],'type':_0x224018(0x131),'list':[{'title':_0x28fd7c[_0x224018(0x131)],'info':_0x29e86c+_0x307a36(_0x29db38[0x0][_0x224018(0x155)])}]}),_0x3c7c65;}export default{'handleCosting':handleCosting};
package/dist/room.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5249d2,_0x27ee9a){const _0x48043c=a2_0x3334,_0x6ee360=_0x5249d2();while(!![]){try{const _0x330ea9=parseInt(_0x48043c(0x105))/0x1*(-parseInt(_0x48043c(0x109))/0x2)+parseInt(_0x48043c(0x120))/0x3*(-parseInt(_0x48043c(0x114))/0x4)+parseInt(_0x48043c(0x108))/0x5+-parseInt(_0x48043c(0x116))/0x6*(parseInt(_0x48043c(0x113))/0x7)+parseInt(_0x48043c(0x11e))/0x8+-parseInt(_0x48043c(0x107))/0x9+-parseInt(_0x48043c(0x121))/0xa*(-parseInt(_0x48043c(0x11d))/0xb);if(_0x330ea9===_0x27ee9a)break;else _0x6ee360['push'](_0x6ee360['shift']());}catch(_0x5494bd){_0x6ee360['push'](_0x6ee360['shift']());}}}(a2_0x51eb,0x2f5c6));function getRoomCount(_0x31ebea,_0xcfa9f0){const _0x3a523f=a2_0x3334,_0x3693f1=Array[_0x3a523f(0x115)](_0x31ebea);if(!_0x3693f1)_0x31ebea=[_0x31ebea];let _0x407899=[];return _0x31ebea[_0x3a523f(0x10c)](_0x1bc361=>{const _0x34e809=_0x3a523f;let _0x44e4a9=![];if(!_0x1bc361[_0x34e809(0x118)]){let _0x5d7652=_0x1bc361[_0x34e809(0x10a)];if(_0x1bc361[_0x34e809(0x11b)]||!_0xcfa9f0[_0x34e809(0x122)])_0x5d7652+=_0x1bc361[_0x34e809(0x110)];const _0x104bb0=_0xcfa9f0[_0x34e809(0x11a)]['find'](_0x1c3e4d=>Number(_0x1c3e4d[_0x34e809(0x10e)])===_0x5d7652);if(!_0x104bb0)_0x44e4a9=!![];else{let _0x5c32b3=_0x1bc361[_0x34e809(0x10a)]+_0x1bc361[_0x34e809(0x110)]+_0x1bc361['infantnum'];_0x5c32b3>_0x104bb0[_0x34e809(0x111)]&&(_0x44e4a9=!![]);}}_0x407899[_0x34e809(0x10b)](_0x44e4a9);}),_0x3693f1?_0x407899:_0x407899[0x0];}function getRoomConfig(_0x2640ab){const _0x3b30b2=a2_0x3334;let _0x119996=_0x2640ab[_0x3b30b2(0x106)](_0x30dd3c=>_0x30dd3c[_0x3b30b2(0x10e)]===_0x3b30b2(0x11b)),_0x270aab=_0x2640ab[_0x3b30b2(0x106)](_0x4b79fd=>_0x4b79fd[_0x3b30b2(0x10e)]===_0x3b30b2(0x119));const _0x24fb42=_0x2640ab['some'](_0x273589=>_0x273589[_0x3b30b2(0x10e)]===_0x3b30b2(0x10d)),_0x2a3df2=_0x2640ab['some'](_0x5a9397=>_0x5a9397[_0x3b30b2(0x10e)]===_0x3b30b2(0x122)),_0xbc998c=_0x2640ab[_0x3b30b2(0x117)](_0x38cfd3=>{const _0x145246=_0x3b30b2;return{'strCode':_0x38cfd3[_0x145246(0x10e)],'nMaxIn':_0x38cfd3[_0x145246(0x111)]};});if(_0x270aab){const _0x48daba=_0x2640ab[_0x3b30b2(0x106)](_0x5d7b27=>_0x5d7b27['strCode']=='2');_0x270aab=_0x270aab&&_0x48daba;}if(_0x119996)_0x119996=_0x119996&&_0x2a3df2;return{'childusebed':_0x119996,'half':_0x270aab,'infant':_0x24fb42,'child':_0x2a3df2,'list':_0xbc998c};}function a2_0x51eb(){const _0x155335=['max','23518AmjLEf','2820032nwjwQj','filter','3jWoOSa','2850jMgknl','child','409QkYKYw','some','136476tytlbC','513240NjzSYq','1214QKpKdy','adultnum','push','forEach','infant','strCode','length','childrennum','nMaxIn','infantnum','154091evbxwI','1019428gHlHUm','isArray','96yNdLej','map','isalotment','half','list','childusebed'];a2_0x51eb=function(){return _0x155335;};return a2_0x51eb();}function isRoomPiece(_0x4975a7,_0x20bca9){const _0x470c27=a2_0x3334;return _0x20bca9&&_0x4975a7[_0x470c27(0x10a)]===0x1&&_0x4975a7[_0x470c27(0x110)]===0x0&&_0x4975a7[_0x470c27(0x112)]===0x0;}function getRoomItemRange(_0x231511,_0x3fac4d,_0x54e84e={'child':'兒童','infant':'嬰兒'}){const _0x18351b=a2_0x3334;if(!_0x3fac4d[_0x18351b(0x10f)])return{'list':[],'yelist':[]};const _0xd93e44=Math[_0x18351b(0x11c)](..._0x3fac4d[_0x18351b(0x117)](_0x5e2b30=>Number(_0x5e2b30['nMaxIn']))),_0x4382fa=_0xd93e44-_0x231511[_0x18351b(0x10a)]-_0x231511['infantnum'];let _0x3d550c=_0xd93e44-_0x231511[_0x18351b(0x10a)]-_0x231511[_0x18351b(0x110)];if(_0x3d550c>0x2)_0x3d550c=0x2;const _0x169df1=(_0x2689df,_0x118307)=>{const _0x228682=_0x18351b,_0x3df840=[];_0x3df840[_0x228682(0x10b)]({'value':0x0,'text':'0\x20'+_0x118307});for(let _0x4d02e3=0x0;_0x4d02e3<_0x2689df;_0x4d02e3++){_0x3df840['push']({'value':_0x4d02e3+0x1,'text':_0x4d02e3+0x1+'\x20'+_0x118307});}return _0x3df840;};return{'list':_0x169df1(_0x4382fa,_0x54e84e[_0x18351b(0x122)]),'yelist':_0x169df1(_0x3d550c,_0x54e84e['infant'])};}function a2_0x3334(_0x495e92,_0x55cf14){const _0x51eb16=a2_0x51eb();return a2_0x3334=function(_0x33345b,_0x2cdc58){_0x33345b=_0x33345b-0x105;let _0x247d98=_0x51eb16[_0x33345b];return _0x247d98;},a2_0x3334(_0x495e92,_0x55cf14);}function getAdultRange(_0x1526c3,_0x16e154='成人'){const _0x5ec510=a2_0x3334;let _0x5f2e20=Math[_0x5ec510(0x11c)](..._0x1526c3[_0x5ec510(0x117)](_0x95806f=>Number(_0x95806f['strCode']))[_0x5ec510(0x11f)](_0x4e3018=>!isNaN(_0x4e3018)));if(!_0x5f2e20)_0x5f2e20=0x4;let _0x415861=[];for(var _0x2c1fe8=0x1;_0x2c1fe8<_0x5f2e20+0x1;_0x2c1fe8++){_0x415861['push']({'value':_0x2c1fe8,'text':_0x2c1fe8+'\x20'+_0x16e154});}return _0x415861;}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
1
+ (function(_0x43f1ea,_0x5ee67b){const _0x32df37=a2_0x5051,_0x439693=_0x43f1ea();while(!![]){try{const _0x174e91=-parseInt(_0x32df37(0x13a))/0x1*(parseInt(_0x32df37(0x140))/0x2)+parseInt(_0x32df37(0x139))/0x3*(parseInt(_0x32df37(0x125))/0x4)+parseInt(_0x32df37(0x137))/0x5*(-parseInt(_0x32df37(0x144))/0x6)+-parseInt(_0x32df37(0x13c))/0x7*(parseInt(_0x32df37(0x126))/0x8)+parseInt(_0x32df37(0x13b))/0x9*(-parseInt(_0x32df37(0x12c))/0xa)+parseInt(_0x32df37(0x13e))/0xb*(-parseInt(_0x32df37(0x12b))/0xc)+parseInt(_0x32df37(0x12a))/0xd*(parseInt(_0x32df37(0x13d))/0xe);if(_0x174e91===_0x5ee67b)break;else _0x439693['push'](_0x439693['shift']());}catch(_0x2aa54a){_0x439693['push'](_0x439693['shift']());}}}(a2_0x5d8c,0x264df));function getRoomCount(_0x5358f8,_0x3c9645){const _0x29bf87=a2_0x5051,_0x1bd339=Array[_0x29bf87(0x132)](_0x5358f8);if(!_0x1bd339)_0x5358f8=[_0x5358f8];let _0x3e1a0a=[];return _0x5358f8[_0x29bf87(0x141)](_0x2c544e=>{const _0x66f973=_0x29bf87;let _0x4db9ba=![];if(!_0x2c544e[_0x66f973(0x124)]){let _0x327ef6=_0x2c544e[_0x66f973(0x136)];if(_0x2c544e['childusebed']||!_0x3c9645[_0x66f973(0x12e)])_0x327ef6+=_0x2c544e[_0x66f973(0x133)];const _0x2d28fa=_0x3c9645[_0x66f973(0x12f)]['find'](_0xa5d6cf=>Number(_0xa5d6cf['strCode'])===_0x327ef6);if(!_0x2d28fa)_0x4db9ba=!![];else{let _0x1bf970=_0x2c544e['adultnum']+_0x2c544e[_0x66f973(0x133)]+_0x2c544e[_0x66f973(0x128)];_0x1bf970>_0x2d28fa[_0x66f973(0x135)]&&(_0x4db9ba=!![]);}}_0x3e1a0a[_0x66f973(0x143)](_0x4db9ba);}),_0x1bd339?_0x3e1a0a:_0x3e1a0a[0x0];}function getRoomConfig(_0x53f895){const _0x5d9260=a2_0x5051;let _0x20b328=_0x53f895[_0x5d9260(0x130)](_0x26dd30=>_0x26dd30[_0x5d9260(0x129)]===_0x5d9260(0x13f)),_0x16045e=_0x53f895[_0x5d9260(0x130)](_0x32e3f1=>_0x32e3f1['strCode']===_0x5d9260(0x127));const _0x33d1ed=_0x53f895['some'](_0x431146=>_0x431146[_0x5d9260(0x129)]===_0x5d9260(0x138)),_0x1bd8e0=_0x53f895[_0x5d9260(0x130)](_0x525f9f=>_0x525f9f[_0x5d9260(0x129)]===_0x5d9260(0x12e)),_0x1e87e8=_0x53f895['map'](_0x56e20c=>{const _0x6f1867=_0x5d9260;return{'strCode':_0x56e20c[_0x6f1867(0x129)],'nMaxIn':_0x56e20c[_0x6f1867(0x135)]};});if(_0x16045e){const _0x47d965=_0x53f895[_0x5d9260(0x130)](_0x1106d6=>_0x1106d6[_0x5d9260(0x129)]=='2');_0x16045e=_0x16045e&&_0x47d965;}if(_0x20b328)_0x20b328=_0x20b328&&_0x1bd8e0;return{'childusebed':_0x20b328,'half':_0x16045e,'infant':_0x33d1ed,'child':_0x1bd8e0,'list':_0x1e87e8};}function a2_0x5051(_0x54766e,_0x1435ee){const _0x5d8c8f=a2_0x5d8c();return a2_0x5051=function(_0x505178,_0x3ca494){_0x505178=_0x505178-0x124;let _0x4f63c8=_0x5d8c8f[_0x505178];return _0x4f63c8;},a2_0x5051(_0x54766e,_0x1435ee);}function isRoomPiece(_0x57eafe,_0x2fc1a5){const _0x485ad5=a2_0x5051;return _0x2fc1a5&&_0x57eafe[_0x485ad5(0x136)]===0x1&&_0x57eafe[_0x485ad5(0x133)]===0x0&&_0x57eafe[_0x485ad5(0x128)]===0x0;}function getRoomItemRange(_0x597ab0,_0x367b29,_0x2c2f9f={'child':'兒童','infant':'嬰兒'}){const _0x15e8a2=a2_0x5051;if(!_0x367b29[_0x15e8a2(0x142)])return{'childList':[],'infantList':[]};const _0x3a9fac=Math['max'](..._0x367b29[_0x15e8a2(0x134)](_0x408461=>Number(_0x408461['nMaxIn']))),_0x5e7cd2=_0x3a9fac-_0x597ab0[_0x15e8a2(0x136)]-_0x597ab0[_0x15e8a2(0x128)];let _0x1a89f6=_0x3a9fac-_0x597ab0[_0x15e8a2(0x136)]-_0x597ab0[_0x15e8a2(0x133)];if(_0x1a89f6>0x2)_0x1a89f6=0x2;const _0x1366eb=(_0x2ecfa0,_0x22c3a3)=>{const _0x40f950=_0x15e8a2,_0x18e5bd=[];_0x18e5bd[_0x40f950(0x143)]({'value':0x0,'text':'0\x20'+_0x22c3a3});for(let _0x2b65e5=0x0;_0x2b65e5<_0x2ecfa0;_0x2b65e5++){_0x18e5bd[_0x40f950(0x143)]({'value':_0x2b65e5+0x1,'text':_0x2b65e5+0x1+'\x20'+_0x22c3a3});}return _0x18e5bd;};return{'childList':_0x1366eb(_0x5e7cd2,_0x2c2f9f[_0x15e8a2(0x12e)]),'infantList':_0x1366eb(_0x1a89f6,_0x2c2f9f[_0x15e8a2(0x138)])};}function a2_0x5d8c(){const _0x5e9774=['map','nMaxIn','adultnum','73410EkAeBa','infant','3qvqchR','15524jYAgZu','27ssAlXT','8981cEOmxV','59402CwQcxG','11WirpSn','childusebed','36sRMjzW','forEach','length','push','48jrPxMm','isalotment','23176RfEgBg','336bbTFeq','half','infantnum','strCode','3133xVGTsJ','2903772ZvqiQL','595690nTtaHu','filter','child','list','some','max','isArray','childrennum'];a2_0x5d8c=function(){return _0x5e9774;};return a2_0x5d8c();}function getAdultRange(_0x55d496,_0x541d37='成人'){const _0x5cee7d=a2_0x5051;let _0x47a65f=Math[_0x5cee7d(0x131)](..._0x55d496['map'](_0xe837f0=>Number(_0xe837f0['strCode']))[_0x5cee7d(0x12d)](_0x367a15=>!isNaN(_0x367a15)));if(!_0x47a65f)_0x47a65f=0x4;let _0x33c6c5=[];for(var _0x4d93ab=0x1;_0x4d93ab<_0x47a65f+0x1;_0x4d93ab++){_0x33c6c5[_0x5cee7d(0x143)]({'value':_0x4d93ab,'text':_0x4d93ab+'\x20'+_0x541d37});}return _0x33c6c5;}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
package/dist/test.js CHANGED
@@ -1 +1 @@
1
- (function(_0x370fa3,_0x51f4d6){const _0x51071f=a3_0x2e73,_0x54f2b7=_0x370fa3();while(!![]){try{const _0x41c488=-parseInt(_0x51071f(0x77))/0x1+-parseInt(_0x51071f(0x97))/0x2*(parseInt(_0x51071f(0x79))/0x3)+-parseInt(_0x51071f(0x8c))/0x4*(parseInt(_0x51071f(0x87))/0x5)+-parseInt(_0x51071f(0x8a))/0x6+-parseInt(_0x51071f(0x83))/0x7*(-parseInt(_0x51071f(0x92))/0x8)+parseInt(_0x51071f(0x86))/0x9+parseInt(_0x51071f(0x89))/0xa*(parseInt(_0x51071f(0x8d))/0xb);if(_0x41c488===_0x51f4d6)break;else _0x54f2b7['push'](_0x54f2b7['shift']());}catch(_0x1094a5){_0x54f2b7['push'](_0x54f2b7['shift']());}}}(a3_0x29fe,0x538a7));function email(_0x133120){const _0x45c54a=a3_0x2e73;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x45c54a(0x80)](_0x133120);}function a3_0x2e73(_0x52a47e,_0x30d5ae){const _0x29fea7=a3_0x29fe();return a3_0x2e73=function(_0x2e7357,_0x5ebd0a){_0x2e7357=_0x2e7357-0x76;let _0xd2b65c=_0x29fea7[_0x2e7357];return _0xd2b65c;},a3_0x2e73(_0x52a47e,_0x30d5ae);}function mobile(_0x3de062){const _0x1fa0fe=a3_0x2e73;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x1fa0fe(0x80)](_0x3de062);}function isValidPhoneNumber(_0x5c7743){const _0x4fefd5=a3_0x2e73;if(_0x5c7743[_0x4fefd5(0x94)]('-')){const [_0x27bce8,_0x28bba0]=_0x5c7743[_0x4fefd5(0x8e)]('-');if(_0x27bce8==='86')return/^\d{11}$/[_0x4fefd5(0x80)](_0x28bba0)&&_0x28bba0[_0x4fefd5(0x7e)]('1');else return _0x27bce8==='852'?/^\d{8}$/['test'](_0x28bba0)&&['5','6','9','8'][_0x4fefd5(0x94)](_0x28bba0[_0x4fefd5(0x88)](0x0)):/^\d+$/[_0x4fefd5(0x80)](_0x28bba0);}else return/^\d+$/[_0x4fefd5(0x80)](_0x5c7743);}function url(_0x393342){const _0x4ee758=a3_0x2e73;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x4ee758(0x80)](_0x393342);}function date(_0x399bfe){const _0x40394e=a3_0x2e73;if(!_0x399bfe)return![];if(number(_0x399bfe))_0x399bfe=+_0x399bfe;return!/Invalid|NaN/['test'](new Date(_0x399bfe)[_0x40394e(0x81)]());}function dateISO(_0x35bfb6){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/['test'](_0x35bfb6);}function isNumber(_0x2cbaad){const _0x206f2e=a3_0x2e73;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x206f2e(0x80)](_0x2cbaad);}function isString(_0x2839fc){const _0xf70dbe=a3_0x2e73;return typeof _0x2839fc===_0xf70dbe(0x7d);}function digits(_0xd3cdc4){const _0x2dd2cb=a3_0x2e73;return/^\d+$/[_0x2dd2cb(0x80)](_0xd3cdc4);}function idCard(_0x535541){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'](_0x535541);}function carNo(_0x148d06){const _0x2421b0=a3_0x2e73,_0x4c125b=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x259f92=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x148d06[_0x2421b0(0x8b)]===0x7)return _0x259f92['test'](_0x148d06);if(_0x148d06[_0x2421b0(0x8b)]===0x8)return _0x4c125b[_0x2421b0(0x80)](_0x148d06);return![];}function amount(_0x4ec42f){const _0x3465b0=a3_0x2e73;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x3465b0(0x80)](_0x4ec42f);}function a3_0x29fe(){const _0x5987b7=['string','startsWith','number','test','toString','parse','21jauqvK','[object\x20Array]','prototype','50562ljpcQl','892140hIezPK','charAt','149360HFkCTU','2733354CfVjAj','length','4mHnAJv','1122BMPhfE','split','undefined','[object\x20Object]','indexOf','589240GPfzNM','call','includes','object','then','1008vXtrEQ','function','220997abNwQy','isArray','3291OwYHnZ','^\x5cd{','boolean','catch'];a3_0x29fe=function(){return _0x5987b7;};return a3_0x29fe();}function chinese(_0x4c8f2f){const _0x5edc37=a3_0x2e73,_0x40b6e9=/^[\u4e00-\u9fa5]+$/gi;return _0x40b6e9[_0x5edc37(0x80)](_0x4c8f2f);}function letter(_0x15dce0){const _0x1a0ed6=a3_0x2e73;return/^[a-zA-Z]*$/[_0x1a0ed6(0x80)](_0x15dce0);}function enOrNum(_0x46ddf9){const _0x2d592b=/^[0-9a-zA-Z]*$/g;return _0x2d592b['test'](_0x46ddf9);}function contains(_0x15a374,_0x3c4565){const _0x5cec4b=a3_0x2e73;return _0x15a374[_0x5cec4b(0x91)](_0x3c4565)>=0x0;}function range(_0x432e67,_0x5c3888){return _0x432e67>=_0x5c3888[0x0]&&_0x432e67<=_0x5c3888[0x1];}function rangeLength(_0x5be0fb,_0x58b8ef){const _0x2db09a=a3_0x2e73;return _0x5be0fb['length']>=_0x58b8ef[0x0]&&_0x5be0fb[_0x2db09a(0x8b)]<=_0x58b8ef[0x1];}function landline(_0x8dc6ce){const _0x96f519=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x96f519['test'](_0x8dc6ce);}function empty(_0xbd4ed0){const _0x289034=a3_0x2e73;switch(typeof _0xbd4ed0){case _0x289034(0x8f):return!![];case _0x289034(0x7d):if(_0xbd4ed0['replace'](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')['length']==0x0)return!![];break;case _0x289034(0x7b):if(!_0xbd4ed0)return!![];break;case _0x289034(0x7f):if(_0xbd4ed0===0x0||isNaN(_0xbd4ed0))return!![];break;case _0x289034(0x95):if(_0xbd4ed0===null||_0xbd4ed0[_0x289034(0x8b)]===0x0)return!![];for(const _0x195fdf in _0xbd4ed0){return![];}return!![];}return![];}function jsonString(_0x1c4e19){const _0x2e46d9=a3_0x2e73;if(typeof _0x1c4e19===_0x2e46d9(0x7d))try{const _0xcb663c=JSON[_0x2e46d9(0x82)](_0x1c4e19);if(typeof _0xcb663c===_0x2e46d9(0x95)&&_0xcb663c)return!![];return![];}catch(_0x41a296){return![];}return![];}function array(_0x164576){const _0x1e6651=a3_0x2e73;if(typeof Array['isArray']===_0x1e6651(0x76))return Array[_0x1e6651(0x78)](_0x164576);return Object[_0x1e6651(0x85)][_0x1e6651(0x81)]['call'](_0x164576)===_0x1e6651(0x84);}function object(_0x36bb25){const _0x230379=a3_0x2e73;return Object['prototype'][_0x230379(0x81)][_0x230379(0x93)](_0x36bb25)===_0x230379(0x90);}function code(_0x40fa24,_0x167bce=0x6){const _0x381f1d=a3_0x2e73;return new RegExp(_0x381f1d(0x7a)+_0x167bce+'}$')[_0x381f1d(0x80)](_0x40fa24);}function func(_0x2fd4cd){return typeof _0x2fd4cd==='function';}function promise(_0x381fe1){const _0x2754d0=a3_0x2e73;return object(_0x381fe1)&&func(_0x381fe1[_0x2754d0(0x96)])&&func(_0x381fe1[_0x2754d0(0x7c)]);}function image(_0x4ed577){const _0x32e0f2=a3_0x2e73,_0x23af36=_0x4ed577[_0x32e0f2(0x8e)]('?')[0x0],_0x11836b=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x11836b[_0x32e0f2(0x80)](_0x23af36);}function video(_0x178d08){const _0x55eb29=a3_0x2e73,_0x12c978=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x12c978[_0x55eb29(0x80)](_0x178d08);}function regExp(_0x2fd03d){const _0x3860aa=a3_0x2e73;return _0x2fd03d&&Object[_0x3860aa(0x85)][_0x3860aa(0x81)][_0x3860aa(0x93)](_0x2fd03d)==='[object\x20RegExp]';}function isNumeric(_0x422b85,_0x48e896=0x0){const _0x283396=a3_0x2e73;if(typeof _0x422b85===_0x283396(0x7f))_0x422b85=_0x422b85[_0x283396(0x81)]();if(typeof _0x422b85!=='string')return![];switch(_0x48e896){case 0x1:return/^\d+(\.\d+)?$/['test'](_0x422b85);case 0x2:return/^-\d+(\.\d+)?$/[_0x283396(0x80)](_0x422b85);case 0x3:return/^-?\d+$/[_0x283396(0x80)](_0x422b85);case 0x4:return/^\d+$/['test'](_0x422b85);case 0x5:return/^-\d+$/['test'](_0x422b85);default:return/^-?\d*\.?\d*$/[_0x283396(0x80)](_0x422b85)&&!_0x422b85[_0x283396(0x7e)]('.')&&!_0x422b85[_0x283396(0x94)]('--');}}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(_0x203877,_0x146eb3){const _0x5e633e=a3_0x5cb3,_0x181541=_0x203877();while(!![]){try{const _0x19b7d0=-parseInt(_0x5e633e(0x108))/0x1+parseInt(_0x5e633e(0x102))/0x2+-parseInt(_0x5e633e(0x115))/0x3+parseInt(_0x5e633e(0xf9))/0x4*(-parseInt(_0x5e633e(0x10e))/0x5)+-parseInt(_0x5e633e(0x10b))/0x6*(-parseInt(_0x5e633e(0xfc))/0x7)+parseInt(_0x5e633e(0x101))/0x8*(parseInt(_0x5e633e(0xf7))/0x9)+-parseInt(_0x5e633e(0x114))/0xa*(parseInt(_0x5e633e(0xfa))/0xb);if(_0x19b7d0===_0x146eb3)break;else _0x181541['push'](_0x181541['shift']());}catch(_0x5f2ac8){_0x181541['push'](_0x181541['shift']());}}}(a3_0x5af5,0x89bbe));function email(_0x4ad840){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/['test'](_0x4ad840);}function mobile(_0x4ebff0){const _0x51981e=a3_0x5cb3;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x51981e(0xf8)](_0x4ebff0);}function isValidPhoneNumber(_0x44eb22){const _0x5ee896=a3_0x5cb3;if(_0x44eb22[_0x5ee896(0x112)]('-')){const [_0x27e7c7,_0x3f42cc]=_0x44eb22[_0x5ee896(0xf5)]('-');if(_0x27e7c7==='86')return/^\d{11}$/['test'](_0x3f42cc)&&_0x3f42cc[_0x5ee896(0x107)]('1');else return _0x27e7c7===_0x5ee896(0x105)?/^\d{8}$/[_0x5ee896(0xf8)](_0x3f42cc)&&['5','6','9','8'][_0x5ee896(0x112)](_0x3f42cc[_0x5ee896(0x104)](0x0)):/^\d+$/[_0x5ee896(0xf8)](_0x3f42cc);}else return/^\d+$/[_0x5ee896(0xf8)](_0x44eb22);}function url(_0x5dbc12){const _0x4517fb=a3_0x5cb3;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x4517fb(0xf8)](_0x5dbc12);}function a3_0x5af5(){const _0x2bc251=['18MPWqQg','test','2675716yubiFf','7117MpOzWR','isArray','357jvPApE','[object\x20RegExp]','length','string','parse','2917976SXdPTw','1051630vIrrwZ','number','charAt','852','indexOf','startsWith','186078DRsroE','function','^\x5cd{','115212ImbMeP','[object\x20Object]','replace','5yvAnuY','[object\x20Array]','toString','object','includes','undefined','3030mEJEeN','1858215jEBlVo','prototype','split','call'];a3_0x5af5=function(){return _0x2bc251;};return a3_0x5af5();}function date(_0x30da88){const _0x1544f4=a3_0x5cb3;if(!_0x30da88)return![];if(number(_0x30da88))_0x30da88=+_0x30da88;return!/Invalid|NaN/[_0x1544f4(0xf8)](new Date(_0x30da88)['toString']());}function dateISO(_0x2c348b){const _0x109b1a=a3_0x5cb3;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x109b1a(0xf8)](_0x2c348b);}function isNumber(_0x4c3a13){const _0x56a7d3=a3_0x5cb3;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x56a7d3(0xf8)](_0x4c3a13);}function isString(_0xda3b23){const _0x1c6bdc=a3_0x5cb3;return typeof _0xda3b23===_0x1c6bdc(0xff);}function digits(_0x14f1da){const _0x42d928=a3_0x5cb3;return/^\d+$/[_0x42d928(0xf8)](_0x14f1da);}function idCard(_0x440e5d){const _0x23383b=a3_0x5cb3;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)$/[_0x23383b(0xf8)](_0x440e5d);}function carNo(_0x1a7a0c){const _0x2dc1e4=a3_0x5cb3,_0x47f754=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x57498f=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x1a7a0c['length']===0x7)return _0x57498f[_0x2dc1e4(0xf8)](_0x1a7a0c);if(_0x1a7a0c[_0x2dc1e4(0xfe)]===0x8)return _0x47f754[_0x2dc1e4(0xf8)](_0x1a7a0c);return![];}function amount(_0x4165ad){const _0x4dd381=a3_0x5cb3;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x4dd381(0xf8)](_0x4165ad);}function chinese(_0x177fda){const _0x90f1b8=a3_0x5cb3,_0x5024cd=/^[\u4e00-\u9fa5]+$/gi;return _0x5024cd[_0x90f1b8(0xf8)](_0x177fda);}function letter(_0x30adbb){return/^[a-zA-Z]*$/['test'](_0x30adbb);}function a3_0x5cb3(_0x4dd89d,_0x14ad3b){const _0x5af525=a3_0x5af5();return a3_0x5cb3=function(_0x5cb336,_0x514b53){_0x5cb336=_0x5cb336-0xf5;let _0x48cee3=_0x5af525[_0x5cb336];return _0x48cee3;},a3_0x5cb3(_0x4dd89d,_0x14ad3b);}function enOrNum(_0x19afbe){const _0x4a63da=/^[0-9a-zA-Z]*$/g;return _0x4a63da['test'](_0x19afbe);}function contains(_0x346be5,_0x5bbd47){const _0x3a4a5f=a3_0x5cb3;return _0x346be5[_0x3a4a5f(0x106)](_0x5bbd47)>=0x0;}function range(_0x155b61,_0x4e7b21){return _0x155b61>=_0x4e7b21[0x0]&&_0x155b61<=_0x4e7b21[0x1];}function rangeLength(_0x384e56,_0xe59a17){const _0x437b69=a3_0x5cb3;return _0x384e56[_0x437b69(0xfe)]>=_0xe59a17[0x0]&&_0x384e56[_0x437b69(0xfe)]<=_0xe59a17[0x1];}function landline(_0x1673e0){const _0x120f2b=a3_0x5cb3,_0x4cf7cf=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x4cf7cf[_0x120f2b(0xf8)](_0x1673e0);}function empty(_0x2925c2){const _0x393853=a3_0x5cb3;switch(typeof _0x2925c2){case _0x393853(0x113):return!![];case'string':if(_0x2925c2[_0x393853(0x10d)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x393853(0xfe)]==0x0)return!![];break;case'boolean':if(!_0x2925c2)return!![];break;case _0x393853(0x103):if(_0x2925c2===0x0||isNaN(_0x2925c2))return!![];break;case _0x393853(0x111):if(_0x2925c2===null||_0x2925c2[_0x393853(0xfe)]===0x0)return!![];for(const _0x50cf68 in _0x2925c2){return![];}return!![];}return![];}function jsonString(_0x4f1bee){const _0x131753=a3_0x5cb3;if(typeof _0x4f1bee===_0x131753(0xff))try{const _0x2ee709=JSON[_0x131753(0x100)](_0x4f1bee);if(typeof _0x2ee709===_0x131753(0x111)&&_0x2ee709)return!![];return![];}catch(_0x37bdb4){return![];}return![];}function array(_0x12259c){const _0x337716=a3_0x5cb3;if(typeof Array[_0x337716(0xfb)]===_0x337716(0x109))return Array['isArray'](_0x12259c);return Object['prototype'][_0x337716(0x110)][_0x337716(0xf6)](_0x12259c)===_0x337716(0x10f);}function object(_0x37b84a){const _0x34c824=a3_0x5cb3;return Object['prototype'][_0x34c824(0x110)][_0x34c824(0xf6)](_0x37b84a)===_0x34c824(0x10c);}function code(_0x357046,_0x52abc0=0x6){const _0x13ff2a=a3_0x5cb3;return new RegExp(_0x13ff2a(0x10a)+_0x52abc0+'}$')[_0x13ff2a(0xf8)](_0x357046);}function func(_0x2918c7){const _0x3593b9=a3_0x5cb3;return typeof _0x2918c7===_0x3593b9(0x109);}function promise(_0xe9bb9d){return object(_0xe9bb9d)&&func(_0xe9bb9d['then'])&&func(_0xe9bb9d['catch']);}function image(_0x5daad7){const _0x256e69=a3_0x5cb3,_0x1a98c2=_0x5daad7['split']('?')[0x0],_0x431bc5=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x431bc5[_0x256e69(0xf8)](_0x1a98c2);}function video(_0x21b4fa){const _0x28ef3f=a3_0x5cb3,_0x349ada=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x349ada[_0x28ef3f(0xf8)](_0x21b4fa);}function regExp(_0x1c9ee2){const _0x1af0b6=a3_0x5cb3;return _0x1c9ee2&&Object[_0x1af0b6(0x116)][_0x1af0b6(0x110)][_0x1af0b6(0xf6)](_0x1c9ee2)===_0x1af0b6(0xfd);}function isNumeric(_0x4eb3a0,_0x2549d6=0x0){const _0x124cbe=a3_0x5cb3;if(typeof _0x4eb3a0===_0x124cbe(0x103))_0x4eb3a0=_0x4eb3a0[_0x124cbe(0x110)]();if(typeof _0x4eb3a0!==_0x124cbe(0xff))return![];switch(_0x2549d6){case 0x1:return/^\d+(\.\d+)?$/[_0x124cbe(0xf8)](_0x4eb3a0);case 0x2:return/^-\d+(\.\d+)?$/[_0x124cbe(0xf8)](_0x4eb3a0);case 0x3:return/^-?\d+$/[_0x124cbe(0xf8)](_0x4eb3a0);case 0x4:return/^\d+$/[_0x124cbe(0xf8)](_0x4eb3a0);case 0x5:return/^-\d+$/[_0x124cbe(0xf8)](_0x4eb3a0);default:return/^-?\d*\.?\d*$/[_0x124cbe(0xf8)](_0x4eb3a0)&&!_0x4eb3a0[_0x124cbe(0x107)]('.')&&!_0x4eb3a0[_0x124cbe(0x112)]('--');}}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_0x2d371c=a4_0x116d;(function(_0x402a17,_0x5b9cd4){const _0x36b746=a4_0x116d,_0x4ca3b0=_0x402a17();while(!![]){try{const _0x43e087=-parseInt(_0x36b746(0x172))/0x1+-parseInt(_0x36b746(0x171))/0x2*(parseInt(_0x36b746(0x173))/0x3)+-parseInt(_0x36b746(0x18c))/0x4+-parseInt(_0x36b746(0x164))/0x5+parseInt(_0x36b746(0x18f))/0x6+-parseInt(_0x36b746(0x189))/0x7*(parseInt(_0x36b746(0x169))/0x8)+parseInt(_0x36b746(0x16e))/0x9*(parseInt(_0x36b746(0x15d))/0xa);if(_0x43e087===_0x5b9cd4)break;else _0x4ca3b0['push'](_0x4ca3b0['shift']());}catch(_0x35f3de){_0x4ca3b0['push'](_0x4ca3b0['shift']());}}}(a4_0x2754,0xc5147));function fmtNum(_0x498f30){const _0x7ca6a=a4_0x116d;if(_0x498f30==0x0)return'0';if(!_0x498f30)return'';let _0x348579=typeof _0x498f30===_0x7ca6a(0x184)?parseFloat(_0x498f30):_0x498f30;if(isNaN(_0x348579))return'';return _0x348579['toLocaleString'](_0x7ca6a(0x170),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x53eb52,_0x2bc1f6=![]){const _0x4c48dc=a4_0x116d;let _0x1962a3={'surname':'','givenName':''};if(_0x2bc1f6){const _0x41a0ca=_0x53eb52[_0x4c48dc(0x179)](',')?_0x53eb52[_0x4c48dc(0x16f)](','):_0x53eb52[_0x4c48dc(0x16f)](/\s+/);_0x41a0ca[_0x4c48dc(0x190)]>=0x2&&(_0x1962a3['surname']=_0x41a0ca[0x0][_0x4c48dc(0x188)](),_0x1962a3[_0x4c48dc(0x174)]=_0x41a0ca[0x1][_0x4c48dc(0x188)]());}else{const _0x4cc18c=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x382aa8=0x0;_0x382aa8<_0x4cc18c[_0x4c48dc(0x190)];_0x382aa8++){const _0x370ed8=_0x4cc18c[_0x382aa8];if(_0x53eb52[_0x4c48dc(0x17b)](_0x370ed8))return _0x1962a3[_0x4c48dc(0x16a)]=_0x370ed8,_0x1962a3['givenName']=_0x53eb52[_0x4c48dc(0x15a)](_0x370ed8[_0x4c48dc(0x190)])[_0x4c48dc(0x188)](),_0x1962a3;}const _0x3129ec=_0x53eb52[_0x4c48dc(0x16f)]('\x20');if(_0x3129ec['length']===0x1){const _0x3a0928=_0x53eb52[_0x4c48dc(0x162)](/[\u4e00-\u9fa5]/);_0x1962a3[_0x4c48dc(0x16a)]=_0x3a0928?_0x3a0928[0x0]:'',_0x1962a3['givenName']=_0x53eb52[_0x4c48dc(0x168)](_0x1962a3[_0x4c48dc(0x16a)],'')[_0x4c48dc(0x188)]();}else _0x1962a3['surname']=_0x3129ec[0x0],_0x1962a3['givenName']=_0x3129ec[_0x4c48dc(0x17d)](0x1)[_0x4c48dc(0x16d)]('\x20');}return _0x1962a3;}function modifyKeys(_0x101ed7,_0x324032={'strCode':'code','strFjbh':a4_0x2d371c(0x163),'strGuid':a4_0x2d371c(0x157),'strValue':a4_0x2d371c(0x18a)}){const _0x3134f0=a4_0x2d371c;if(!_0x101ed7[_0x3134f0(0x190)]||_0x101ed7===null)return[];const _0x205473=_0x101ed7[_0x3134f0(0x178)](_0xfd4c10=>{const _0x2e6db3=_0x3134f0,_0x4f1e6d={};for(const _0x3e549d in _0xfd4c10){_0x324032[_0x2e6db3(0x176)](_0x3e549d)?_0x4f1e6d[_0x324032[_0x3e549d]]=_0xfd4c10[_0x3e549d]:_0x4f1e6d[_0x3e549d]=_0xfd4c10[_0x3e549d];}return _0x4f1e6d;});return _0x205473;}function sliceArray(_0x58621b,_0x322900,_0x286ee2){const _0x553e6c=a4_0x2d371c;if(_0x322900<=0x0)return console[_0x553e6c(0x15f)](_0x553e6c(0x17c)),[];return _0x286ee2?_0x58621b[_0x553e6c(0x17d)](0x0,_0x322900):_0x58621b[_0x553e6c(0x17d)](-_0x322900);}function findDataByData(_0x5a6abc,_0x20b2fa,_0x3187a5){const _0x4bc759=a4_0x2d371c,_0x113d85=_0x5a6abc[_0x4bc759(0x18b)](_0x33288c=>_0x33288c[_0x3187a5]===_0x20b2fa);return _0x113d85||null;}function splitArray(_0x14fae8,_0x4b0d9c){const _0x2c2119=a4_0x2d371c,_0x3e8ca9=[];for(let _0x30867d=0x0;_0x30867d<_0x14fae8[_0x2c2119(0x190)];_0x30867d+=_0x4b0d9c){_0x3e8ca9[_0x2c2119(0x175)](_0x14fae8[_0x2c2119(0x17d)](_0x30867d,_0x30867d+_0x4b0d9c));}return _0x3e8ca9;}function getProxyType(_0xfab32e){const _0xad6661=a4_0x2d371c;return Object[_0xad6661(0x159)][_0xad6661(0x160)][_0xad6661(0x185)](_0xfab32e)[_0xad6661(0x17d)](0x8,-0x1);}let timeout=null;function debounce(_0x3e4ecf,_0x1ce0e6=0x1f4,_0x5c6af1=![]){const _0x19b3b6=a4_0x2d371c;if(timeout!==null)clearTimeout(timeout);if(_0x5c6af1){const _0x35d378=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x1ce0e6);if(_0x35d378)typeof _0x3e4ecf===_0x19b3b6(0x18d)&&_0x3e4ecf();}else timeout=setTimeout(()=>{const _0x30c4ba=_0x19b3b6;typeof _0x3e4ecf===_0x30c4ba(0x18d)&&_0x3e4ecf();},_0x1ce0e6);}function urlEncode(_0x47e321={}){const _0xc30eb3=a4_0x2d371c,_0x566a61=[];for(const _0x44d96f in _0x47e321){const _0x568ab3=_0x47e321[_0x44d96f];if(!_0x568ab3)continue;isArray(_0x568ab3)?_0x568ab3[_0xc30eb3(0x161)](_0x116df5=>{const _0x5b017d=_0xc30eb3;_0x566a61[_0x5b017d(0x175)](_0x44d96f+'='+_0x116df5);}):_0x566a61['push'](_0x44d96f+'='+_0x568ab3);}return _0x566a61[_0xc30eb3(0x16d)]('&');}function a4_0x116d(_0x3cbc43,_0x34a96c){const _0x275424=a4_0x2754();return a4_0x116d=function(_0x116dc5,_0xee62dd){_0x116dc5=_0x116dc5-0x150;let _0x52127a=_0x275424[_0x116dc5];return _0x52127a;},a4_0x116d(_0x3cbc43,_0x34a96c);}function dateFormat(_0x2c3c7f,_0x4488b7){const _0x240a63=a4_0x2d371c,_0xcf2806=new Date(_0x4488b7),_0x24ba40={'Y+':_0xcf2806[_0x240a63(0x167)]()[_0x240a63(0x160)](),'m+':(_0xcf2806[_0x240a63(0x183)]()+0x1)[_0x240a63(0x160)](),'d+':_0xcf2806[_0x240a63(0x15c)]()[_0x240a63(0x160)](),'H+':_0xcf2806['getHours']()[_0x240a63(0x160)](),'M+':_0xcf2806['getMinutes']()[_0x240a63(0x160)](),'S+':_0xcf2806[_0x240a63(0x158)]()[_0x240a63(0x160)]()};let _0x1abd0d;for(let _0x1cac34 in _0x24ba40){_0x1abd0d=new RegExp('('+_0x1cac34+')')[_0x240a63(0x153)](_0x2c3c7f);_0x1abd0d&&(_0x2c3c7f=_0x2c3c7f[_0x240a63(0x168)](_0x1abd0d[0x1],_0x1abd0d[0x1][_0x240a63(0x190)]==0x1?_0x24ba40[_0x1cac34]:_0x24ba40[_0x1cac34]['padStart'](_0x1abd0d[0x1][_0x240a63(0x190)],'0')));;};return _0x2c3c7f;}function formatDate(_0x5068be,_0x5d8e76='YYYY-MM-DD',_0x4a83eb={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x5a9138=a4_0x2d371c,_0x10185c=new Date(_0x5068be),_0x4995bf=_0x10185c[_0x5a9138(0x167)](),_0x316068=_0x10185c['getMonth']()+0x1,_0x4c2743=_0x10185c[_0x5a9138(0x15c)](),_0x1fff0b=_0x316068<0xa?'0'+_0x316068:_0x316068,_0x438902=_0x4c2743<0xa?'0'+_0x4c2743:_0x4c2743;let _0x4cb5ff=_0x5d8e76[_0x5a9138(0x168)](_0x5a9138(0x154),_0x4995bf)[_0x5a9138(0x168)]('MM',_0x1fff0b)['replace']('DD',_0x438902);return _0x4cb5ff=_0x4cb5ff[_0x5a9138(0x168)](/-MM/g,_0x4a83eb[_0x5a9138(0x17a)])[_0x5a9138(0x168)](/-DD/g,_0x4a83eb['dayTitle'])[_0x5a9138(0x168)]('YYYY'+_0x4a83eb[_0x5a9138(0x151)],'')[_0x5a9138(0x168)]('MM'+_0x4a83eb[_0x5a9138(0x17a)],'')[_0x5a9138(0x168)]('DD'+_0x4a83eb['dayTitle'],''),_0x4cb5ff;}function compareDates(_0x4c4525,_0x3606fd){const _0x2b84e4=a4_0x2d371c;_0x4c4525=new Date(_0x4c4525);!_0x3606fd?_0x3606fd=new Date():_0x3606fd=new Date(_0x3606fd);_0x4c4525['setHours'](0x0,0x0,0x0,0x0),_0x3606fd[_0x2b84e4(0x182)](0x0,0x0,0x0,0x0);var _0x1c53aa=_0x4c4525['getTime'](),_0x930553=_0x3606fd[_0x2b84e4(0x16b)]();if(_0x1c53aa<_0x930553)return-0x1;else return _0x1c53aa>_0x930553?0x1:0x0;}function getDaysBetween(_0x37ae6d,_0xee3057){const _0x56e4fb=a4_0x2d371c,_0x479845=new Date(_0x37ae6d),_0x19a749=new Date(_0xee3057),_0x576f70=Math['abs'](_0x479845[_0x56e4fb(0x16b)]()-_0x19a749[_0x56e4fb(0x16b)]()),_0x568441=Math[_0x56e4fb(0x187)](_0x576f70/(0x3e8*0x3c*0x3c*0x18));return _0x568441+0x1;}function chineseNumeral(_0x216c94){const _0x1d41d7=a4_0x2d371c,_0x590680=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x4f9b70=['','拾','佰','仟'],_0x3815e=['','万','亿','兆'];let _0xeeff8f=Math[_0x1d41d7(0x187)](_0x216c94),_0x53183b=Math[_0x1d41d7(0x17f)]((_0x216c94-_0xeeff8f)*0x64),_0x3e8991='';for(let _0x232d85=0x0;_0xeeff8f>0x0;_0x232d85++){let _0x57c8c8='',_0x25408a=_0xeeff8f%0x2710;_0xeeff8f=Math[_0x1d41d7(0x187)](_0xeeff8f/0x2710);for(let _0x1ce047=0x0;_0x25408a>0x0;_0x1ce047++){let _0x3a646c=_0x25408a%0xa;_0x57c8c8=(_0x3a646c?_0x590680[_0x3a646c]+_0x4f9b70[_0x1ce047]:'')+_0x57c8c8,_0x25408a=Math[_0x1d41d7(0x187)](_0x25408a/0xa);}_0x3e8991=_0x57c8c8+(_0x57c8c8?_0x3815e[_0x232d85]:_0x3815e[_0x232d85]&&!_0x3e8991['includes']('零')?'零':'')+_0x3e8991;}_0x3e8991+=_0x3e8991?'元':'零元';if(_0x53183b>0x0){let _0x5cd802=Math[_0x1d41d7(0x187)](_0x53183b/0xa),_0x360714=_0x53183b%0xa;_0x3e8991+=(_0x5cd802?_0x590680[_0x5cd802]+'角':'')+(_0x360714?_0x590680[_0x360714]+'分':'');}else _0x3e8991+='整';return _0x3e8991[_0x1d41d7(0x168)](/零{2,}/g,'零')[_0x1d41d7(0x168)](/零元/,'元');}function getMonthDate(_0x9b1f77){const _0x292cd6=a4_0x2d371c;(!_0x9b1f77||_0x9b1f77[_0x292cd6(0x188)]()==='')&&(_0x9b1f77=new Date()[_0x292cd6(0x167)]()+'-'+(new Date()[_0x292cd6(0x183)]()+0x1));let _0x5223a0=[],[_0xf8a5c9,_0x1ce7c6]=_0x9b1f77[_0x292cd6(0x16f)]('-')[_0x292cd6(0x178)](Number),_0x39cdaf=new Date(_0xf8a5c9,_0x1ce7c6,0x0),_0x204eb8=_0x39cdaf[_0x292cd6(0x15c)]();for(let _0x577d03=0x1;_0x577d03<=_0x204eb8;_0x577d03++){let _0x4888d8=_0x577d03<0xa?'0'+_0x577d03:''+_0x577d03,_0x4516ff=_0x1ce7c6<0xa?'0'+_0x1ce7c6:''+_0x1ce7c6;_0x5223a0[_0x292cd6(0x175)]({'date':_0xf8a5c9+'-'+_0x4516ff+'-'+_0x4888d8,'disable':!![]});}return _0x5223a0;}function a4_0x2754(){const _0x4ae44a=['Quantity\x20should\x20be\x20greater\x20than\x200.','slice','shift','round','isArray','max','setHours','getMonth','string','call','setDate','floor','trim','1603wfRjId','label','find','5518004VFOnXK','function','除数不能为0','974496IcGHot','length','_qh','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','yearTitle','right','exec','YYYY','number','toFixed','value','getSeconds','prototype','substring','both','getDate','4088740bFsOpn','random','error','toString','forEach','match','fjbh','7217035tcpHlT','stringify','object','getFullYear','replace','19344fdvPuW','surname','getTime','padStart','join','135IfgmeA','split','en-US','2LDKYwl','919142whZbcL','3577545nEZusU','givenName','push','hasOwnProperty','endsWith','map','includes','monthTitle','startsWith'];a4_0x2754=function(){return _0x4ae44a;};return a4_0x2754();}function getToday(_0x33fc44){const _0x3d1d44=a4_0x2d371c;var _0xb1dbaa=new Date(),_0x330109=String(_0xb1dbaa[_0x3d1d44(0x15c)]())[_0x3d1d44(0x16c)](0x2,'0'),_0x4614c2=String(_0xb1dbaa[_0x3d1d44(0x183)]()+0x1)[_0x3d1d44(0x16c)](0x2,'0'),_0x2c67c1=_0xb1dbaa[_0x3d1d44(0x167)]();return _0xb1dbaa=_0x2c67c1+'-'+_0x4614c2+'-'+_0x330109,_0xb1dbaa;}function resetObject(_0x45da8f){const _0x20bfea=a4_0x2d371c;let _0x1ffc8e=JSON['parse'](JSON[_0x20bfea(0x165)](_0x45da8f));for(const _0xbadfce in _0x1ffc8e){if(typeof _0x1ffc8e[_0xbadfce]===_0x20bfea(0x155))_0x1ffc8e[_0xbadfce]=0x0;else{if(typeof _0x1ffc8e[_0xbadfce]==='boolean')_0x1ffc8e[_0xbadfce]=![];else{if(Array[_0x20bfea(0x180)](_0x1ffc8e[_0xbadfce]))_0x1ffc8e[_0xbadfce]=[];else typeof _0x1ffc8e[_0xbadfce]===_0x20bfea(0x166)&&_0x1ffc8e[_0xbadfce]!==null?resetObject(_0x1ffc8e[_0xbadfce]):_0x1ffc8e[_0xbadfce]='';}}}return _0x1ffc8e;}function preciseOperation(_0xb14ce3,_0x1769b4,_0x6a6be9,_0x3811c7=0xf4240){const _0x70e2e6=a4_0x2d371c;if(isNaN(_0xb14ce3)||isNaN(_0x1769b4))return NaN;if(!isFinite(_0xb14ce3)||!isFinite(_0x1769b4))return NaN;let _0xa493bd=BigInt(Math[_0x70e2e6(0x17f)](_0xb14ce3*_0x3811c7)),_0x43c341=BigInt(Math[_0x70e2e6(0x17f)](_0x1769b4*_0x3811c7)),_0x32b42c;switch(_0x6a6be9){case 0x1:_0x32b42c=_0xa493bd+_0x43c341;break;case 0x2:_0x32b42c=_0xa493bd-_0x43c341;break;case 0x3:_0x32b42c=_0xa493bd*_0x43c341;break;case 0x4:if(_0x43c341===0x0n)throw new Error(_0x70e2e6(0x18e));_0x32b42c=_0xa493bd/_0x43c341;break;default:throw new Error('无效的操作符,操作符应为1、2、3或4');}return Number(_0x32b42c)/_0x3811c7;}function preciseSum(_0x3cec5e){const _0x5da7c7=a4_0x2d371c;let _0x7e9f2f=0x0;for(const _0x55f992 of _0x3cec5e){let _0x3226d2=0x0;if(typeof _0x55f992==='string'){const _0x48f47a=parseFloat(_0x55f992);!isNaN(_0x48f47a)&&(_0x3226d2=_0x48f47a);}else typeof _0x55f992===_0x5da7c7(0x155)&&(_0x3226d2=_0x55f992);_0x7e9f2f=preciseOperation(_0x7e9f2f,_0x3226d2,0x1);}return _0x7e9f2f;}function getRelativeDate(_0x1f2db4,_0x58106f=0x0){const _0x1631d1=a4_0x2d371c,_0x517808=new Date(_0x1f2db4);_0x517808[_0x1631d1(0x186)](_0x517808[_0x1631d1(0x15c)]()+_0x58106f);const _0x27bcd5=_0x517808[_0x1631d1(0x167)](),_0x5ac993=(_0x517808[_0x1631d1(0x183)]()+0x1)['toString']()[_0x1631d1(0x16c)](0x2,'0'),_0x1acaba=_0x517808[_0x1631d1(0x15c)]()[_0x1631d1(0x160)]()[_0x1631d1(0x16c)](0x2,'0');return _0x27bcd5+'-'+_0x5ac993+'-'+_0x1acaba;}function validateFields(_0x2351a1,_0x438c74,_0x122f00=''){for(let _0x122535 of _0x438c74){if(_0x2351a1[_0x122535]===_0x122f00)return!![];}return![];}function mergeObjects(_0x1c46d2,_0x3ccea8){const _0x2fe06a=a4_0x2d371c;for(const _0x5711ec in _0x1c46d2){_0x3ccea8[_0x2fe06a(0x176)](_0x5711ec)&&(_0x1c46d2[_0x5711ec]=_0x3ccea8[_0x5711ec]);}return _0x1c46d2;}const formatToDecimal=(_0x3639a4,_0x3a8452=0x2)=>{const _0x41e70e=a4_0x2d371c;if(isNaN(_0x3a8452)||_0x3a8452<0x0)return _0x3639a4;let _0x2e7902=Number(_0x3639a4);if(!isFinite(_0x2e7902))return _0x3639a4;return _0x3a8452=Math[_0x41e70e(0x181)](0x0,Math[_0x41e70e(0x187)](_0x3a8452)),_0x2e7902[_0x41e70e(0x156)](_0x3a8452);};function findKeysEndingWith(_0x5964f8,_0x172bd4=a4_0x2d371c(0x191)){const _0xa90e9c=a4_0x2d371c;let _0x244d1b=[];for(var _0x939038 in _0x5964f8){if(_0x5964f8['hasOwnProperty'](_0x939038)){if(_0x939038[_0xa90e9c(0x177)](_0x172bd4))_0x244d1b[_0xa90e9c(0x175)](_0x939038);}}return _0x244d1b;}function guid(_0x10664b=0x20,_0x3209be=!![],_0x5306d4=null){const _0x3fc371=a4_0x2d371c,_0x24abf5=_0x3fc371(0x150)[_0x3fc371(0x16f)](''),_0x26504b=[];_0x5306d4=_0x5306d4||_0x24abf5[_0x3fc371(0x190)];if(_0x10664b){for(let _0x443bee=0x0;_0x443bee<_0x10664b;_0x443bee++)_0x26504b[_0x443bee]=_0x24abf5[0x0|Math[_0x3fc371(0x15e)]()*_0x5306d4];}else{let _0x3e172e;_0x26504b[0x8]=_0x26504b[0xd]=_0x26504b[0x12]=_0x26504b[0x17]='-',_0x26504b[0xe]='4';for(let _0x2788b7=0x0;_0x2788b7<0x24;_0x2788b7++){!_0x26504b[_0x2788b7]&&(_0x3e172e=0x0|Math['random']()*0x10,_0x26504b[_0x2788b7]=_0x24abf5[_0x2788b7==0x13?_0x3e172e&0x3|0x8:_0x3e172e]);}}if(_0x3209be)return _0x26504b[_0x3fc371(0x17e)](),'u'+_0x26504b[_0x3fc371(0x16d)]('');return _0x26504b['join']('');}function trim(_0x15d6c6,_0xf18a19=a4_0x2d371c(0x15b)){const _0x125415=a4_0x2d371c;_0x15d6c6=String(_0x15d6c6);if(_0xf18a19==_0x125415(0x15b))return _0x15d6c6[_0x125415(0x168)](/^\s+|\s+$/g,'');if(_0xf18a19=='left')return _0x15d6c6[_0x125415(0x168)](/^\s*/,'');if(_0xf18a19==_0x125415(0x152))return _0x15d6c6[_0x125415(0x168)](/(\s*$)/g,'');if(_0xf18a19=='all')return _0x15d6c6[_0x125415(0x168)](/\s+/g,'');return _0x15d6c6;}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 a4_0x3438a6=a4_0x4f7a;(function(_0x5a91aa,_0x225f34){const _0x4da4ab=a4_0x4f7a,_0x34b529=_0x5a91aa();while(!![]){try{const _0x38d0de=-parseInt(_0x4da4ab(0x1f1))/0x1*(-parseInt(_0x4da4ab(0x1fb))/0x2)+-parseInt(_0x4da4ab(0x20f))/0x3+-parseInt(_0x4da4ab(0x1ff))/0x4+-parseInt(_0x4da4ab(0x21e))/0x5*(-parseInt(_0x4da4ab(0x1e7))/0x6)+parseInt(_0x4da4ab(0x1f8))/0x7*(-parseInt(_0x4da4ab(0x211))/0x8)+-parseInt(_0x4da4ab(0x1f7))/0x9+parseInt(_0x4da4ab(0x21a))/0xa*(parseInt(_0x4da4ab(0x203))/0xb);if(_0x38d0de===_0x225f34)break;else _0x34b529['push'](_0x34b529['shift']());}catch(_0x32d192){_0x34b529['push'](_0x34b529['shift']());}}}(a4_0x116c,0xb5571));function fmtNum(_0x261d45){const _0x28244f=a4_0x4f7a;if(_0x261d45==0x0)return'0';if(!_0x261d45)return'';let _0x1bc0c3=typeof _0x261d45===_0x28244f(0x209)?parseFloat(_0x261d45):_0x261d45;if(isNaN(_0x1bc0c3))return'';return _0x1bc0c3['toLocaleString']('en-US',{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function a4_0x116c(){const _0x20b8c5=['substring','getTime','getHours','375976cKLQgJ','random','number','_qh','abs','split','9348849KxxWGU','707OtfuZs','includes','getSeconds','2rKXcdb','length','YYYY','padStart','201688cwkjwP','surname','push','prototype','7843QJDwIB','exec','dayTitle','YYYY-MM-DD','shift','fjbh','string','trim','floor','both','getFullYear','function','987756sIfHlI','slice','88904NzKzHe','givenName','toString','toFixed','map','error','join','round','call','28350xYLtog','boolean','hasOwnProperty','value','10BBcSpD','match','stringify','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','getDate','getMonth','replace','无效的操作符,操作符应为1、2、3或4','object','2658858CGxTbZ','setDate','isArray','Quantity\x20should\x20be\x20greater\x20than\x200.','left','label','forEach'];a4_0x116c=function(){return _0x20b8c5;};return a4_0x116c();}function splitName(_0x47b8a0,_0x221561=![]){const _0x1e9ed9=a4_0x4f7a;let _0xfb86a0={'surname':'','givenName':''};if(_0x221561){const _0x3ba229=_0x47b8a0[_0x1e9ed9(0x1f9)](',')?_0x47b8a0[_0x1e9ed9(0x1f6)](','):_0x47b8a0[_0x1e9ed9(0x1f6)](/\s+/);_0x3ba229[_0x1e9ed9(0x1fc)]>=0x2&&(_0xfb86a0[_0x1e9ed9(0x200)]=_0x3ba229[0x0]['trim'](),_0xfb86a0[_0x1e9ed9(0x212)]=_0x3ba229[0x1][_0x1e9ed9(0x20a)]());}else{const _0x4351b1=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x53c1f2=0x0;_0x53c1f2<_0x4351b1[_0x1e9ed9(0x1fc)];_0x53c1f2++){const _0x128a4e=_0x4351b1[_0x53c1f2];if(_0x47b8a0['startsWith'](_0x128a4e))return _0xfb86a0[_0x1e9ed9(0x200)]=_0x128a4e,_0xfb86a0[_0x1e9ed9(0x212)]=_0x47b8a0[_0x1e9ed9(0x1ee)](_0x128a4e[_0x1e9ed9(0x1fc)])[_0x1e9ed9(0x20a)](),_0xfb86a0;}const _0x323b7d=_0x47b8a0[_0x1e9ed9(0x1f6)]('\x20');if(_0x323b7d['length']===0x1){const _0x422ca5=_0x47b8a0[_0x1e9ed9(0x21f)](/[\u4e00-\u9fa5]/);_0xfb86a0[_0x1e9ed9(0x200)]=_0x422ca5?_0x422ca5[0x0]:'',_0xfb86a0[_0x1e9ed9(0x212)]=_0x47b8a0[_0x1e9ed9(0x1e4)](_0xfb86a0['surname'],'')[_0x1e9ed9(0x20a)]();}else _0xfb86a0[_0x1e9ed9(0x200)]=_0x323b7d[0x0],_0xfb86a0[_0x1e9ed9(0x212)]=_0x323b7d[_0x1e9ed9(0x210)](0x1)[_0x1e9ed9(0x217)]('\x20');}return _0xfb86a0;}function modifyKeys(_0x11b6ec,_0x26b420={'strCode':'code','strFjbh':a4_0x3438a6(0x208),'strGuid':a4_0x3438a6(0x21d),'strValue':a4_0x3438a6(0x1ec)}){const _0x39e5ca=a4_0x3438a6;if(!_0x11b6ec['length']||_0x11b6ec===null)return[];const _0x33ee5c=_0x11b6ec[_0x39e5ca(0x215)](_0x5b3f5d=>{const _0x2f1098=_0x39e5ca,_0x51e2af={};for(const _0x2f0d36 in _0x5b3f5d){_0x26b420[_0x2f1098(0x21c)](_0x2f0d36)?_0x51e2af[_0x26b420[_0x2f0d36]]=_0x5b3f5d[_0x2f0d36]:_0x51e2af[_0x2f0d36]=_0x5b3f5d[_0x2f0d36];}return _0x51e2af;});return _0x33ee5c;}function sliceArray(_0x3f65fc,_0x35d5aa,_0x45ac22){const _0x1568ae=a4_0x3438a6;if(_0x35d5aa<=0x0)return console[_0x1568ae(0x216)](_0x1568ae(0x1ea)),[];return _0x45ac22?_0x3f65fc[_0x1568ae(0x210)](0x0,_0x35d5aa):_0x3f65fc[_0x1568ae(0x210)](-_0x35d5aa);}function findDataByData(_0x377bda,_0x56a2cb,_0x34d43c){const _0x2d476c=_0x377bda['find'](_0x3dcc6a=>_0x3dcc6a[_0x34d43c]===_0x56a2cb);return _0x2d476c||null;}function splitArray(_0x4cbfba,_0xe08f9e){const _0x29a5d8=a4_0x3438a6,_0x2c77a5=[];for(let _0x58ba05=0x0;_0x58ba05<_0x4cbfba['length'];_0x58ba05+=_0xe08f9e){_0x2c77a5[_0x29a5d8(0x201)](_0x4cbfba[_0x29a5d8(0x210)](_0x58ba05,_0x58ba05+_0xe08f9e));}return _0x2c77a5;}function a4_0x4f7a(_0x5e6aca,_0x4ee837){const _0x116cac=a4_0x116c();return a4_0x4f7a=function(_0x4f7abc,_0x2ffccc){_0x4f7abc=_0x4f7abc-0x1e3;let _0x2d52e6=_0x116cac[_0x4f7abc];return _0x2d52e6;},a4_0x4f7a(_0x5e6aca,_0x4ee837);}function getProxyType(_0x469dab){const _0x1b1724=a4_0x3438a6;return Object[_0x1b1724(0x202)][_0x1b1724(0x213)][_0x1b1724(0x219)](_0x469dab)['slice'](0x8,-0x1);}let timeout=null;function debounce(_0x5d7830,_0x5ded2b=0x1f4,_0x326c06=![]){const _0x49ab18=a4_0x3438a6;if(timeout!==null)clearTimeout(timeout);if(_0x326c06){const _0x4fc1fc=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x5ded2b);if(_0x4fc1fc)typeof _0x5d7830===_0x49ab18(0x20e)&&_0x5d7830();}else timeout=setTimeout(()=>{typeof _0x5d7830==='function'&&_0x5d7830();},_0x5ded2b);}function urlEncode(_0x1bbef7={}){const _0x12376f=a4_0x3438a6,_0x5f3660=[];for(const _0x28f22e in _0x1bbef7){const _0x172c04=_0x1bbef7[_0x28f22e];if(!_0x172c04)continue;isArray(_0x172c04)?_0x172c04[_0x12376f(0x1ed)](_0x3a60ba=>{const _0x1c3d28=_0x12376f;_0x5f3660[_0x1c3d28(0x201)](_0x28f22e+'='+_0x3a60ba);}):_0x5f3660[_0x12376f(0x201)](_0x28f22e+'='+_0x172c04);}return _0x5f3660[_0x12376f(0x217)]('&');}function dateFormat(_0x4c7954,_0x1ae153){const _0x5c6bde=a4_0x3438a6,_0x34988b=new Date(_0x1ae153),_0x34e7a1={'Y+':_0x34988b[_0x5c6bde(0x20d)]()[_0x5c6bde(0x213)](),'m+':(_0x34988b['getMonth']()+0x1)[_0x5c6bde(0x213)](),'d+':_0x34988b[_0x5c6bde(0x222)]()[_0x5c6bde(0x213)](),'H+':_0x34988b[_0x5c6bde(0x1f0)]()[_0x5c6bde(0x213)](),'M+':_0x34988b['getMinutes']()[_0x5c6bde(0x213)](),'S+':_0x34988b[_0x5c6bde(0x1fa)]()[_0x5c6bde(0x213)]()};let _0x2a88e7;for(let _0xbefd9c in _0x34e7a1){_0x2a88e7=new RegExp('('+_0xbefd9c+')')[_0x5c6bde(0x204)](_0x4c7954);_0x2a88e7&&(_0x4c7954=_0x4c7954[_0x5c6bde(0x1e4)](_0x2a88e7[0x1],_0x2a88e7[0x1]['length']==0x1?_0x34e7a1[_0xbefd9c]:_0x34e7a1[_0xbefd9c][_0x5c6bde(0x1fe)](_0x2a88e7[0x1][_0x5c6bde(0x1fc)],'0')));;};return _0x4c7954;}function formatDate(_0x4c8194,_0x229a2f=a4_0x3438a6(0x206),_0x551a52={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x1184fe=a4_0x3438a6,_0x1c5c7a=new Date(_0x4c8194),_0x183206=_0x1c5c7a[_0x1184fe(0x20d)](),_0x12f166=_0x1c5c7a[_0x1184fe(0x1e3)]()+0x1,_0x385f62=_0x1c5c7a[_0x1184fe(0x222)](),_0x495dff=_0x12f166<0xa?'0'+_0x12f166:_0x12f166,_0x4fdaa4=_0x385f62<0xa?'0'+_0x385f62:_0x385f62;let _0x3f6835=_0x229a2f[_0x1184fe(0x1e4)](_0x1184fe(0x1fd),_0x183206)['replace']('MM',_0x495dff)[_0x1184fe(0x1e4)]('DD',_0x4fdaa4);return _0x3f6835=_0x3f6835[_0x1184fe(0x1e4)](/-MM/g,_0x551a52['monthTitle'])[_0x1184fe(0x1e4)](/-DD/g,_0x551a52[_0x1184fe(0x205)])[_0x1184fe(0x1e4)](_0x1184fe(0x1fd)+_0x551a52['yearTitle'],'')['replace']('MM'+_0x551a52['monthTitle'],'')[_0x1184fe(0x1e4)]('DD'+_0x551a52[_0x1184fe(0x205)],''),_0x3f6835;}function compareDates(_0x18c1e1,_0x5d42f6){const _0x354e99=a4_0x3438a6;_0x18c1e1=new Date(_0x18c1e1);!_0x5d42f6?_0x5d42f6=new Date():_0x5d42f6=new Date(_0x5d42f6);_0x18c1e1['setHours'](0x0,0x0,0x0,0x0),_0x5d42f6['setHours'](0x0,0x0,0x0,0x0);var _0x500a9c=_0x18c1e1[_0x354e99(0x1ef)](),_0x11b8bf=_0x5d42f6[_0x354e99(0x1ef)]();if(_0x500a9c<_0x11b8bf)return-0x1;else return _0x500a9c>_0x11b8bf?0x1:0x0;}function getDaysBetween(_0x464327,_0x13eeeb){const _0x4db88d=a4_0x3438a6,_0x2fd842=new Date(_0x464327),_0x1b40f2=new Date(_0x13eeeb),_0x45e819=Math[_0x4db88d(0x1f5)](_0x2fd842['getTime']()-_0x1b40f2[_0x4db88d(0x1ef)]()),_0x5a2af3=Math[_0x4db88d(0x20b)](_0x45e819/(0x3e8*0x3c*0x3c*0x18));return _0x5a2af3+0x1;}function chineseNumeral(_0x34271f){const _0x407c21=a4_0x3438a6,_0x28080c=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x3bb920=['','拾','佰','仟'],_0x1f544c=['','万','亿','兆'];let _0x1d0122=Math[_0x407c21(0x20b)](_0x34271f),_0x347df7=Math[_0x407c21(0x218)]((_0x34271f-_0x1d0122)*0x64),_0x144dfd='';for(let _0x3791fc=0x0;_0x1d0122>0x0;_0x3791fc++){let _0xd6c257='',_0x2b6ad8=_0x1d0122%0x2710;_0x1d0122=Math[_0x407c21(0x20b)](_0x1d0122/0x2710);for(let _0x303d4c=0x0;_0x2b6ad8>0x0;_0x303d4c++){let _0x594aec=_0x2b6ad8%0xa;_0xd6c257=(_0x594aec?_0x28080c[_0x594aec]+_0x3bb920[_0x303d4c]:'')+_0xd6c257,_0x2b6ad8=Math[_0x407c21(0x20b)](_0x2b6ad8/0xa);}_0x144dfd=_0xd6c257+(_0xd6c257?_0x1f544c[_0x3791fc]:_0x1f544c[_0x3791fc]&&!_0x144dfd['includes']('零')?'零':'')+_0x144dfd;}_0x144dfd+=_0x144dfd?'元':'零元';if(_0x347df7>0x0){let _0x3197e3=Math[_0x407c21(0x20b)](_0x347df7/0xa),_0x55b835=_0x347df7%0xa;_0x144dfd+=(_0x3197e3?_0x28080c[_0x3197e3]+'角':'')+(_0x55b835?_0x28080c[_0x55b835]+'分':'');}else _0x144dfd+='整';return _0x144dfd['replace'](/零{2,}/g,'零')[_0x407c21(0x1e4)](/零元/,'元');}function getMonthDate(_0x50f9ea){const _0x3bf6af=a4_0x3438a6;(!_0x50f9ea||_0x50f9ea[_0x3bf6af(0x20a)]()==='')&&(_0x50f9ea=new Date()[_0x3bf6af(0x20d)]()+'-'+(new Date()[_0x3bf6af(0x1e3)]()+0x1));let _0x26f0ec=[],[_0x146555,_0x17179]=_0x50f9ea['split']('-')[_0x3bf6af(0x215)](Number),_0x185265=new Date(_0x146555,_0x17179,0x0),_0x6001bc=_0x185265[_0x3bf6af(0x222)]();for(let _0xff49ec=0x1;_0xff49ec<=_0x6001bc;_0xff49ec++){let _0x50cf74=_0xff49ec<0xa?'0'+_0xff49ec:''+_0xff49ec,_0x57dde9=_0x17179<0xa?'0'+_0x17179:''+_0x17179;_0x26f0ec[_0x3bf6af(0x201)]({'date':_0x146555+'-'+_0x57dde9+'-'+_0x50cf74,'disable':!![]});}return _0x26f0ec;}function getToday(_0x47fdde){const _0x4d9edc=a4_0x3438a6;var _0x1fd17f=new Date(),_0x28df3f=String(_0x1fd17f[_0x4d9edc(0x222)]())['padStart'](0x2,'0'),_0x261ae7=String(_0x1fd17f[_0x4d9edc(0x1e3)]()+0x1)['padStart'](0x2,'0'),_0x1efd89=_0x1fd17f[_0x4d9edc(0x20d)]();return _0x1fd17f=_0x1efd89+'-'+_0x261ae7+'-'+_0x28df3f,_0x1fd17f;}function resetObject(_0x2d5c02){const _0x150f6a=a4_0x3438a6;let _0x2016ec=JSON['parse'](JSON[_0x150f6a(0x220)](_0x2d5c02));for(const _0x35bcec in _0x2016ec){if(typeof _0x2016ec[_0x35bcec]===_0x150f6a(0x1f3))_0x2016ec[_0x35bcec]=0x0;else{if(typeof _0x2016ec[_0x35bcec]===_0x150f6a(0x21b))_0x2016ec[_0x35bcec]=![];else{if(Array[_0x150f6a(0x1e9)](_0x2016ec[_0x35bcec]))_0x2016ec[_0x35bcec]=[];else typeof _0x2016ec[_0x35bcec]===_0x150f6a(0x1e6)&&_0x2016ec[_0x35bcec]!==null?resetObject(_0x2016ec[_0x35bcec]):_0x2016ec[_0x35bcec]='';}}}return _0x2016ec;}function preciseOperation(_0x587947,_0x5590b4,_0x340699,_0x561b31=0xf4240){const _0x21bc17=a4_0x3438a6;if(isNaN(_0x587947)||isNaN(_0x5590b4))return NaN;if(!isFinite(_0x587947)||!isFinite(_0x5590b4))return NaN;let _0x539990=BigInt(Math[_0x21bc17(0x218)](_0x587947*_0x561b31)),_0xf6c76a=BigInt(Math['round'](_0x5590b4*_0x561b31)),_0x1522c3;switch(_0x340699){case 0x1:_0x1522c3=_0x539990+_0xf6c76a;break;case 0x2:_0x1522c3=_0x539990-_0xf6c76a;break;case 0x3:_0x1522c3=_0x539990*_0xf6c76a;break;case 0x4:if(_0xf6c76a===0x0n)throw new Error('除数不能为0');_0x1522c3=_0x539990/_0xf6c76a;break;default:throw new Error(_0x21bc17(0x1e5));}return Number(_0x1522c3)/_0x561b31;}function preciseSum(_0x224cbe){const _0x35a712=a4_0x3438a6;let _0x3deed6=0x0;for(const _0x424fd1 of _0x224cbe){let _0x45017d=0x0;if(typeof _0x424fd1===_0x35a712(0x209)){const _0x11d9a3=parseFloat(_0x424fd1);!isNaN(_0x11d9a3)&&(_0x45017d=_0x11d9a3);}else typeof _0x424fd1==='number'&&(_0x45017d=_0x424fd1);_0x3deed6=preciseOperation(_0x3deed6,_0x45017d,0x1);}return _0x3deed6;}function getRelativeDate(_0x4809bb,_0x1cfc86=0x0){const _0x243a0a=a4_0x3438a6,_0x36573b=new Date(_0x4809bb);_0x36573b[_0x243a0a(0x1e8)](_0x36573b['getDate']()+_0x1cfc86);const _0x2361bb=_0x36573b[_0x243a0a(0x20d)](),_0x44b77d=(_0x36573b[_0x243a0a(0x1e3)]()+0x1)[_0x243a0a(0x213)]()[_0x243a0a(0x1fe)](0x2,'0'),_0x33f75c=_0x36573b[_0x243a0a(0x222)]()[_0x243a0a(0x213)]()['padStart'](0x2,'0');return _0x2361bb+'-'+_0x44b77d+'-'+_0x33f75c;}function validateFields(_0x26e2e5,_0x489c09,_0x311883=''){for(let _0x3f45bb of _0x489c09){if(_0x26e2e5[_0x3f45bb]===_0x311883)return!![];}return![];}function mergeObjects(_0x3ff724,_0x5e4ae7){const _0x2c70fe=a4_0x3438a6;for(const _0x2beebd in _0x3ff724){_0x5e4ae7[_0x2c70fe(0x21c)](_0x2beebd)&&(_0x3ff724[_0x2beebd]=_0x5e4ae7[_0x2beebd]);}return _0x3ff724;}const formatToDecimal=(_0x13f697,_0x471fd0=0x2)=>{const _0x2b2494=a4_0x3438a6;if(isNaN(_0x471fd0)||_0x471fd0<0x0)return _0x13f697;let _0x136ef0=Number(_0x13f697);if(!isFinite(_0x136ef0))return _0x13f697;return _0x471fd0=Math['max'](0x0,Math[_0x2b2494(0x20b)](_0x471fd0)),_0x136ef0[_0x2b2494(0x214)](_0x471fd0);};function findKeysEndingWith(_0x47e20c,_0x5b9175=a4_0x3438a6(0x1f4)){const _0x45e0af=a4_0x3438a6;let _0x406204=[];for(var _0x65a2fa in _0x47e20c){if(_0x47e20c[_0x45e0af(0x21c)](_0x65a2fa)){if(_0x65a2fa['endsWith'](_0x5b9175))_0x406204[_0x45e0af(0x201)](_0x65a2fa);}}return _0x406204;}function guid(_0x15391a=0x20,_0x4fb588=!![],_0x2fd26a=null){const _0x2ae41d=a4_0x3438a6,_0x2b414b=_0x2ae41d(0x221)['split'](''),_0x2bfa27=[];_0x2fd26a=_0x2fd26a||_0x2b414b[_0x2ae41d(0x1fc)];if(_0x15391a){for(let _0x32caa6=0x0;_0x32caa6<_0x15391a;_0x32caa6++)_0x2bfa27[_0x32caa6]=_0x2b414b[0x0|Math[_0x2ae41d(0x1f2)]()*_0x2fd26a];}else{let _0xd98251;_0x2bfa27[0x8]=_0x2bfa27[0xd]=_0x2bfa27[0x12]=_0x2bfa27[0x17]='-',_0x2bfa27[0xe]='4';for(let _0x2a3230=0x0;_0x2a3230<0x24;_0x2a3230++){!_0x2bfa27[_0x2a3230]&&(_0xd98251=0x0|Math[_0x2ae41d(0x1f2)]()*0x10,_0x2bfa27[_0x2a3230]=_0x2b414b[_0x2a3230==0x13?_0xd98251&0x3|0x8:_0xd98251]);}}if(_0x4fb588)return _0x2bfa27[_0x2ae41d(0x207)](),'u'+_0x2bfa27['join']('');return _0x2bfa27['join']('');}function trim(_0xdd0d36,_0x52a5b4=a4_0x3438a6(0x20c)){const _0x1858fe=a4_0x3438a6;_0xdd0d36=String(_0xdd0d36);if(_0x52a5b4=='both')return _0xdd0d36[_0x1858fe(0x1e4)](/^\s+|\s+$/g,'');if(_0x52a5b4==_0x1858fe(0x1eb))return _0xdd0d36[_0x1858fe(0x1e4)](/^\s*/,'');if(_0x52a5b4=='right')return _0xdd0d36[_0x1858fe(0x1e4)](/(\s*$)/g,'');if(_0x52a5b4=='all')return _0xdd0d36[_0x1858fe(0x1e4)](/\s+/g,'');return _0xdd0d36;}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};
package/package.json CHANGED
@@ -1,19 +1,26 @@
1
1
  {
2
2
  "name": "yunlin",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "exports": {
7
7
  ".": {
8
8
  "require": "./dist/index.js",
9
9
  "import": "./dist/index.js"
10
- }
10
+ },
11
+ "./*": "./*"
11
12
  },
12
13
  "files": [
13
14
  "dist"
14
15
  ],
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
15
19
  "type": "module",
16
20
  "scripts": {
21
+ "patch": "npm version patch",
22
+ "minor": "npm version minor",
23
+ "major": "npm version major",
17
24
  "test": "echo \"Error: no test specified\" && exit 1",
18
25
  "clean": "rimraf dist || rm -rf dist",
19
26
  "build:babel": "npm run clean && babel src --out-dir dist",