yunlin 1.0.33 → 1.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,4 @@
1
1
  # Yunlin
2
- > 一个常用工具类
3
2
 
4
3
  [![npm version](https://badge.fury.io/js/yunlin.svg)](https://badge.fury.io/js/yunlin)
5
4
 
@@ -25,7 +24,3 @@ console.log('哎哟嚯', yl.func.handleCosting());
25
24
  console.log('分割姓名:', yl.utils.splitName('端木百惠慧')); // 输出: { surname: "端木", givenName: "百惠慧" }
26
25
  ```
27
26
 
28
- ## 贡献
29
-
30
- 欢迎提交问题和贡献代码!请查看 [贡献指南](CONTRIBUTING.md)。
31
-
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x1b91bf,_0x56333a){var _0x5104af=a0_0x16f6,_0x3c97d9=_0x1b91bf();while(!![]){try{var _0x259fa1=-parseInt(_0x5104af(0x19c))/0x1+-parseInt(_0x5104af(0x197))/0x2*(parseInt(_0x5104af(0x19e))/0x3)+parseInt(_0x5104af(0x19f))/0x4+-parseInt(_0x5104af(0x199))/0x5*(-parseInt(_0x5104af(0x198))/0x6)+-parseInt(_0x5104af(0x19d))/0x7+-parseInt(_0x5104af(0x19b))/0x8*(-parseInt(_0x5104af(0x196))/0x9)+parseInt(_0x5104af(0x19a))/0xa;if(_0x259fa1===_0x56333a)break;else _0x3c97d9['push'](_0x3c97d9['shift']());}catch(_0x27b7c4){_0x3c97d9['push'](_0x3c97d9['shift']());}}}(a0_0x2a00,0xa78b9));import a0_0x41127a from'./utils';import a0_0x5ecf40 from'./price';import a0_0x22a810 from'./test';function a0_0x2a00(){var _0x390312=['17942eQPXGk','2375238WcWLeO','10fnwjlK','20593530MqwIoy','104cKhIoG','1068943qQXgmU','7720398sWpmTB','63fayWGq','596276koBqoN','32085VltgdS'];a0_0x2a00=function(){return _0x390312;};return a0_0x2a00();}function a0_0x16f6(_0xf17963,_0x3ac5da){var _0x2a00a3=a0_0x2a00();return a0_0x16f6=function(_0x16f615,_0x2f75a4){_0x16f615=_0x16f615-0x196;var _0x286f84=_0x2a00a3[_0x16f615];return _0x286f84;},a0_0x16f6(_0xf17963,_0x3ac5da);}import a0_0x3a416e from'./room';export default{'test':a0_0x22a810,'utils':a0_0x41127a,'price':a0_0x5ecf40,'room':a0_0x3a416e};
1
+ (function(_0x2cb0ad,_0x4cfb7b){var _0x26e53d=a0_0x567b,_0x3498a5=_0x2cb0ad();while(!![]){try{var _0x46672c=-parseInt(_0x26e53d(0xc6))/0x1*(-parseInt(_0x26e53d(0xc7))/0x2)+-parseInt(_0x26e53d(0xc5))/0x3+parseInt(_0x26e53d(0xca))/0x4*(-parseInt(_0x26e53d(0xcc))/0x5)+parseInt(_0x26e53d(0xcb))/0x6+parseInt(_0x26e53d(0xc9))/0x7+parseInt(_0x26e53d(0xc4))/0x8+parseInt(_0x26e53d(0xc8))/0x9;if(_0x46672c===_0x4cfb7b)break;else _0x3498a5['push'](_0x3498a5['shift']());}catch(_0x4b4304){_0x3498a5['push'](_0x3498a5['shift']());}}}(a0_0x4ff1,0x55d9b));function a0_0x567b(_0x575bbf,_0x4e728c){var _0x4ff1cf=a0_0x4ff1();return a0_0x567b=function(_0x567b4c,_0x563bb2){_0x567b4c=_0x567b4c-0xc4;var _0x3630ec=_0x4ff1cf[_0x567b4c];return _0x3630ec;},a0_0x567b(_0x575bbf,_0x4e728c);}import a0_0x2492bc from'./utils';import a0_0xce7a59 from'./price';function a0_0x4ff1(){var _0x555087=['24520aqvCBr','1421532hUXVQg','385hwgwxS','1674512BzEBkq','1025934UWVPFt','148166ZShYIB','2cHQxBk','3055824gxTnxt','1621851dDEbrD'];a0_0x4ff1=function(){return _0x555087;};return a0_0x4ff1();}import a0_0x3ceef5 from'./test';import a0_0x15259c from'./room';export default{'test':a0_0x3ceef5,'utils':a0_0x2492bc,'price':a0_0xce7a59,'room':a0_0x15259c};
package/dist/price.js CHANGED
@@ -1 +1 @@
1
- const a1_0x1c31c6=a1_0x1b67;function a1_0x1b67(_0x5c93ce,_0x2f9ae0){const _0x818d55=a1_0x818d();return a1_0x1b67=function(_0x1b6721,_0x3fdbeb){_0x1b6721=_0x1b6721-0x16e;let _0x293447=_0x818d55[_0x1b6721];return _0x293447;},a1_0x1b67(_0x5c93ce,_0x2f9ae0);}function a1_0x818d(){const _0x42af5d=['遊客優惠','baseprice','users','map','減免費用','6THHiIT','404mwEyiT','unit','trip','39382KobHaB','coupon','附加服務','baseadultprice','\x20*\x20','other','totalprice','length','會員減免','childnum','6JTjhRL','209429iTYYoQ','strLx','childprice','push','floor','num','name','includes','adultprice','680895EQXMKh','service','tip','16896685PDghfz','elder','384AOWyZY','vipdiscounted','itemname','1929ODKONv','child','adult','vip','totaltax','優惠券','tipuser','552KkrSyF','reduction','promotion','insure','unitprice','rylx','adultnum','20duPezB','unitpricewb','split','41997RDjFSC','附加行程','money','viprecharge','機場稅','list','strJgbm','toFixed','point','fLsjUnit','保險費用','base','nRs','basechildprice','filter','tipday','3044455CmUrol','airtax','price'];a1_0x818d=function(){return _0x42af5d;};return a1_0x818d();}(function(_0x4eb925,_0x109367){const _0x3d9525=a1_0x1b67,_0x18d35c=_0x4eb925();while(!![]){try{const _0x1f22d1=-parseInt(_0x3d9525(0x186))/0x1*(parseInt(_0x3d9525(0x1ac))/0x2)+-parseInt(_0x3d9525(0x175))/0x3*(-parseInt(_0x3d9525(0x19f))/0x4)+parseInt(_0x3d9525(0x196))/0x5*(parseInt(_0x3d9525(0x19e))/0x6)+parseInt(_0x3d9525(0x1a2))/0x7*(parseInt(_0x3d9525(0x172))/0x8)+-parseInt(_0x3d9525(0x1b6))/0x9*(-parseInt(_0x3d9525(0x183))/0xa)+parseInt(_0x3d9525(0x1ad))/0xb*(parseInt(_0x3d9525(0x17c))/0xc)+-parseInt(_0x3d9525(0x170))/0xd;if(_0x1f22d1===_0x109367)break;else _0x18d35c['push'](_0x18d35c['shift']());}catch(_0xd82df1){_0x18d35c['push'](_0x18d35c['shift']());}}}(a1_0x818d,0x851e2));function handleCosting(_0x26753e,_0x14c54b='',_0x256fa8='-',_0x3a7743=0x2,_0x4482b2={'people':'人員費用','service':a1_0x1c31c6(0x1a4),'trip':a1_0x1c31c6(0x187),'other':'其他費用','reduction':a1_0x1c31c6(0x19d),'totalprice':'總計','airtax':a1_0x1c31c6(0x18a)},_0x33e9cb={'adult':'成人','child':'兒童','childusebed':'兒童[占床]','infant':'嬰兒','half':'拼房','tip':'小費','elder':a1_0x1c31c6(0x199),'vip':a1_0x1c31c6(0x1aa),'promotion':'促銷','insure':a1_0x1c31c6(0x190),'coupon':a1_0x1c31c6(0x17a),'point':'積分','tax':'稅金','viprecharge':'會員充值','r':'人','t':'天'}){const _0x125ebb=a1_0x1c31c6;let _0x4dc32a=[];const _0x386ca1=_0x125ebb(0x1a6),_0x37a16c=(_0x421b20,_0xe64ead=_0x3a7743)=>{const _0x595715=_0x125ebb;if(_0x421b20==null||isNaN(_0xe64ead)||_0xe64ead<0x0)return'';let _0x5155c7=Number(_0x421b20);if(!isFinite(_0x5155c7))return'';return _0xe64ead=Math['max'](0x0,Math[_0x595715(0x1b1)](_0xe64ead)),_0x5155c7[_0x595715(0x18d)](_0xe64ead);},_0x7d894e=_0x26753e[_0x125ebb(0x194)](_0x565086=>_0x565086[_0x125ebb(0x1ae)]=='base');if(_0x7d894e['length']){let _0x1a1a70={'title':_0x4482b2['people'],'type':_0x125ebb(0x191),'list':[]};_0x7d894e['map'](_0x4b608b=>{const _0x30668c=_0x125ebb;_0x1a1a70[_0x30668c(0x18b)][_0x30668c(0x1b0)]({'title':_0x33e9cb[_0x4b608b[_0x30668c(0x18c)]],'info':_0x14c54b+_0x4b608b[_0x30668c(0x18f)]+_0x386ca1+_0x4b608b[_0x30668c(0x192)],'nRs':_0x4b608b[_0x30668c(0x192)],'unit':_0x4b608b[_0x30668c(0x18f)],'cb':_0x4b608b['fJcbzlsjUnit'],'type':_0x30668c(0x191)});}),_0x4dc32a[_0x125ebb(0x1b0)](_0x1a1a70);}const _0x5a8c93=_0x26753e[_0x125ebb(0x194)](_0x5053c9=>_0x5053c9['strLx']==_0x125ebb(0x16e));if(_0x5a8c93[_0x125ebb(0x1a9)]){let _0x56e36e={'title':_0x4482b2[_0x125ebb(0x16e)],'type':_0x125ebb(0x16e),'list':[]};_0x5a8c93[_0x125ebb(0x19c)](_0x33273f=>{const _0x131324=_0x125ebb;_0x56e36e[_0x131324(0x18b)][_0x131324(0x1b0)]({'title':_0x33273f[_0x131324(0x1b3)]+('['+_0x33273f[_0x131324(0x174)]+']'),'info':_0x14c54b+_0x33273f[_0x131324(0x180)]+_0x386ca1+_0x33273f[_0x131324(0x1b2)],'nRs':_0x33273f[_0x131324(0x1b2)],'unit':_0x33273f[_0x131324(0x180)],'cb':_0x33273f[_0x131324(0x19a)],'type':'service'});}),_0x4dc32a[_0x125ebb(0x1b0)](_0x56e36e);}const _0xd96de2=_0x26753e[_0x125ebb(0x194)](_0x7f6adf=>_0x7f6adf[_0x125ebb(0x1ae)]==_0x125ebb(0x1a1));if(_0xd96de2[_0x125ebb(0x1a9)]){let _0x93d916={'title':_0x4482b2['trip'],'type':'trip','list':[]};_0xd96de2[_0x125ebb(0x19c)](_0x563132=>{const _0x51adcc=_0x125ebb;_0x563132[_0x51adcc(0x182)]!='0'&&_0x93d916[_0x51adcc(0x18b)][_0x51adcc(0x1b0)]({'title':_0x563132[_0x51adcc(0x1b3)]+('['+_0x33e9cb[_0x51adcc(0x177)]+']'),'info':_0x14c54b+_0x563132[_0x51adcc(0x1b5)]+_0x386ca1+_0x563132['adultnum'],'nRs':_0x563132[_0x51adcc(0x182)],'unit':_0x563132['adultprice'],'cb':_0x563132[_0x51adcc(0x1a5)],'type':_0x51adcc(0x1a1)}),_0x563132[_0x51adcc(0x1ab)]!='0'&&_0x93d916[_0x51adcc(0x18b)][_0x51adcc(0x1b0)]({'title':_0x563132[_0x51adcc(0x1b3)]+('['+_0x33e9cb[_0x51adcc(0x176)]+']'),'info':_0x14c54b+_0x563132['childprice']+_0x386ca1+_0x563132['childnum'],'nRs':_0x563132['childnum'],'unit':_0x563132[_0x51adcc(0x1af)],'cb':_0x563132[_0x51adcc(0x193)],'type':_0x51adcc(0x1a1)});}),_0x4dc32a['push'](_0x93d916);}let _0x2852bb=[];const _0x2a1ef9=_0x26753e[_0x125ebb(0x194)](_0x412434=>_0x412434['strLx']==_0x125ebb(0x171));_0x2a1ef9[_0x125ebb(0x1a9)]&&_0x2a1ef9[_0x125ebb(0x19c)](_0x4a8530=>{const _0x1b827f=_0x125ebb,_0x39c77f=_0x4a8530[_0x1b827f(0x1b3)][_0x1b827f(0x185)]('|')||[''];_0x2852bb['push']({'title':_0x33e9cb[_0x1b827f(0x171)]+('['+_0x39c77f[0x0]+']'),'info':_0x14c54b+_0x256fa8+_0x4a8530['money'],'unit':_0x4a8530[_0x1b827f(0x188)],'cb':_0x4a8530[_0x1b827f(0x188)],'type':_0x1b827f(0x171)});});const _0x782fa4=_0x26753e[_0x125ebb(0x194)](_0x57f731=>_0x57f731[_0x125ebb(0x1ae)]==_0x125ebb(0x173));_0x782fa4[_0x125ebb(0x1a9)]&&_0x782fa4[_0x125ebb(0x19c)](_0x39a48b=>{const _0x38061e=_0x125ebb;_0x2852bb[_0x38061e(0x1b0)]({'title':_0x33e9cb[_0x38061e(0x178)]+('['+_0x39a48b[_0x38061e(0x1b3)]+']'),'info':_0x14c54b+_0x256fa8+_0x39a48b[_0x38061e(0x188)],'unit':_0x39a48b[_0x38061e(0x188)],'cb':_0x39a48b[_0x38061e(0x188)],'type':_0x38061e(0x178)});});const _0x462a37=_0x26753e[_0x125ebb(0x194)](_0x14e90d=>_0x14e90d[_0x125ebb(0x1ae)]==_0x125ebb(0x17e));_0x462a37[_0x125ebb(0x1a9)]&&_0x462a37[_0x125ebb(0x19c)](_0x1dc264=>{const _0x3ecd12=_0x125ebb;_0x2852bb['push']({'title':_0x33e9cb[_0x3ecd12(0x17e)],'info':_0x14c54b+_0x256fa8+_0x1dc264[_0x3ecd12(0x188)],'unit':_0x1dc264[_0x3ecd12(0x188)],'cb':_0x1dc264['money'],'type':'promotion'});});_0x2852bb[_0x125ebb(0x1a9)]&&_0x4dc32a[_0x125ebb(0x1b0)]({'title':_0x4482b2[_0x125ebb(0x17d)],'type':_0x125ebb(0x17d),'list':_0x2852bb});const _0x4b735b=_0x26753e[_0x125ebb(0x194)](_0x397a2c=>_0x397a2c[_0x125ebb(0x1ae)]==_0x125ebb(0x197));if(_0x4b735b[_0x125ebb(0x1a9)]){let _0x403a45={'title':_0x4482b2[_0x125ebb(0x197)],'type':'airtax','list':[]};_0x4b735b[_0x125ebb(0x19c)](_0x20f362=>{const _0x38a30e=_0x125ebb;_0x403a45[_0x38a30e(0x18b)]['push']({'title':_0x33e9cb[_0x20f362['rylx']],'info':_0x14c54b+_0x20f362['unitprice']+_0x386ca1+_0x20f362['sl'],'nRs':_0x20f362['sl'],'unit':_0x20f362[_0x38a30e(0x180)],'cb':_0x20f362[_0x38a30e(0x184)],'type':_0x20f362[_0x38a30e(0x181)]});}),_0x4dc32a['push'](_0x403a45);}const _0x245691=[_0x125ebb(0x191),_0x125ebb(0x16e),_0x125ebb(0x1a1),_0x125ebb(0x171),'vipdiscounted',_0x125ebb(0x17e),_0x125ebb(0x197)],_0x37d20a=_0x26753e[_0x125ebb(0x194)](_0x3e6f90=>!_0x245691[_0x125ebb(0x1b4)](_0x3e6f90[_0x125ebb(0x1ae)]));let _0x3a8d2e={'title':_0x4482b2['other'],'type':_0x125ebb(0x1a7),'list':[]};for(var _0x9940d5=0x0;_0x9940d5<_0x37d20a[_0x125ebb(0x1a9)];_0x9940d5++){const _0x5d7931=_0x37d20a[_0x9940d5];_0x5d7931[_0x125ebb(0x1ae)]==_0x125ebb(0x189)&&_0x3a8d2e['list'][_0x125ebb(0x1b0)]({'title':_0x33e9cb['viprecharge']+('['+_0x5d7931[_0x125ebb(0x1b3)]+']'),'info':_0x14c54b+_0x5d7931[_0x125ebb(0x188)],'unit':_0x5d7931['money'],'type':_0x5d7931[_0x125ebb(0x1ae)]}),_0x5d7931['strLx']==_0x125ebb(0x17f)&&_0x3a8d2e[_0x125ebb(0x18b)]['push']({'title':_0x33e9cb['insure']+('['+_0x5d7931[_0x125ebb(0x1b3)]+']'),'info':_0x14c54b+_0x5d7931[_0x125ebb(0x1a0)]+_0x386ca1+_0x5d7931[_0x125ebb(0x19b)]+_0x33e9cb['r'],'nRs':_0x5d7931['users'],'unit':_0x5d7931['unit'],'cb':_0x5d7931[_0x125ebb(0x1a0)],'type':_0x125ebb(0x17f)}),(_0x5d7931[_0x125ebb(0x1ae)]==_0x125ebb(0x1a3)||_0x5d7931['strLx']==_0x125ebb(0x18e))&&_0x3a8d2e['list'][_0x125ebb(0x1b0)]({'title':_0x33e9cb[_0x5d7931[_0x125ebb(0x1ae)]],'info':_0x14c54b+_0x256fa8+_0x37a16c(_0x5d7931[_0x125ebb(0x188)],_0x3a7743),'unit':_0x5d7931[_0x125ebb(0x188)],'type':_0x5d7931['strLx']}),_0x5d7931[_0x125ebb(0x1ae)]=='tip'&&_0x3a8d2e[_0x125ebb(0x18b)][_0x125ebb(0x1b0)]({'title':_0x33e9cb[_0x5d7931[_0x125ebb(0x1ae)]],'info':_0x14c54b+_0x5d7931['tip']+_0x386ca1+_0x5d7931[_0x125ebb(0x17b)]+_0x33e9cb['r']+_0x386ca1+_0x5d7931[_0x125ebb(0x195)]+_0x33e9cb['t'],'nRs':_0x5d7931[_0x125ebb(0x17b)],'count':_0x5d7931[_0x125ebb(0x195)],'unit':_0x5d7931[_0x125ebb(0x16f)],'type':_0x5d7931[_0x125ebb(0x1ae)]}),_0x5d7931['strLx']=='tax'&&_0x3a8d2e['list'][_0x125ebb(0x1b0)]({'title':_0x33e9cb[_0x5d7931[_0x125ebb(0x1ae)]],'info':_0x14c54b+_0x37a16c(_0x5d7931[_0x125ebb(0x179)],_0x3a7743),'unit':_0x5d7931[_0x125ebb(0x179)],'type':_0x5d7931[_0x125ebb(0x1ae)]});}_0x3a8d2e['list'][_0x125ebb(0x1a9)]&&_0x4dc32a[_0x125ebb(0x1b0)](_0x3a8d2e);const _0x286e14=_0x26753e[_0x125ebb(0x194)](_0x36d653=>_0x36d653[_0x125ebb(0x1ae)]=='totalprice');return _0x286e14['length']&&_0x4dc32a[_0x125ebb(0x1b0)]({'title':_0x4482b2['totalprice'],'type':_0x125ebb(0x1a8),'list':[{'title':_0x4482b2['totalprice'],'info':_0x14c54b+_0x286e14[0x0][_0x125ebb(0x198)]}]}),_0x4dc32a;}export default{'handleCosting':handleCosting};
1
+ function a1_0x5e55(_0x33fe03,_0x19f6e6){const _0xb46edf=a1_0xb46e();return a1_0x5e55=function(_0x5e55a4,_0x36d4bd){_0x5e55a4=_0x5e55a4-0x94;let _0xee6051=_0xb46edf[_0x5e55a4];return _0xee6051;},a1_0x5e55(_0x33fe03,_0x19f6e6);}(function(_0xfaf121,_0x2963a5){const _0x5c4a5a=a1_0x5e55,_0x168c35=_0xfaf121();while(!![]){try{const _0x5d19d1=-parseInt(_0x5c4a5a(0xb4))/0x1+-parseInt(_0x5c4a5a(0xc3))/0x2*(-parseInt(_0x5c4a5a(0xc7))/0x3)+parseInt(_0x5c4a5a(0xdd))/0x4+parseInt(_0x5c4a5a(0xc9))/0x5+parseInt(_0x5c4a5a(0xa4))/0x6+parseInt(_0x5c4a5a(0x98))/0x7*(-parseInt(_0x5c4a5a(0x99))/0x8)+-parseInt(_0x5c4a5a(0xc0))/0x9;if(_0x5d19d1===_0x2963a5)break;else _0x168c35['push'](_0x168c35['shift']());}catch(_0x21f0fc){_0x168c35['push'](_0x168c35['shift']());}}}(a1_0xb46e,0x6fe3f));function handleCosting(_0x515e62,_0x502a2c='',_0x5ddf79={},_0x599768,_0x3e4617){const _0x198d36=a1_0x5e55;let _0xee4308=[];const _0x3ac77a=_0x198d36(0xd6),_0x4b7f9c={'couponSign':'-','dp':0x2};_0x5ddf79=typeof _0x5ddf79==='object'&&!Array[_0x198d36(0xaa)](_0x5ddf79)&&_0x5ddf79!==null?_0x5ddf79:{};const _0x4ac54e={..._0x4b7f9c,..._0x5ddf79},_0x545585=Object['keys'](_0x4b7f9c);Object[_0x198d36(0x9b)](_0x5ddf79)['forEach'](_0x3125c5=>{const _0xaae2e1=_0x198d36;!_0x545585[_0xaae2e1(0xd2)](_0x3125c5)&&console['warn']('[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20'+_0x3125c5);});let _0x224f47=_0x4ac54e[_0x198d36(0xbc)]||'-',_0x58c43a=_0x4ac54e['dp']||0x2;const _0x25c111=(_0x3f7127,_0x4dd52f=_0x58c43a)=>{const _0x41c3d7=_0x198d36;if(typeof _0x3f7127!==_0x41c3d7(0xb1)&&isNaN(Number(_0x3f7127)))return console[_0x41c3d7(0xd8)](_0x41c3d7(0xc5)+_0x3f7127),_0x3f7127;if(isNaN(_0x4dd52f)||_0x4dd52f<0x0)return _0x3f7127;let _0x5d8f20=Number(_0x3f7127);if(!isFinite(_0x5d8f20))return _0x3f7127;return _0x4dd52f=Math[_0x41c3d7(0xbb)](0x0,Math[_0x41c3d7(0xd7)](_0x4dd52f)),_0x5d8f20[_0x41c3d7(0xb2)](_0x4dd52f);},_0x142cac=(_0x14f7c9,_0x5276b9)=>{const _0x99d34d=_0x198d36;if(_0x5276b9&&typeof _0x5276b9===_0x99d34d(0x97)&&!Array[_0x99d34d(0xaa)](_0x5276b9))for(const _0x3df4ef in _0x14f7c9){_0x14f7c9[_0x99d34d(0xdc)](_0x3df4ef)&&_0x5276b9[_0x99d34d(0xdc)](_0x3df4ef)&&(_0x14f7c9[_0x3df4ef]=_0x5276b9[_0x3df4ef]);}else console[_0x99d34d(0xd8)]((_0x99d34d(0x9d)+JSON[_0x99d34d(0xa7)](_0x5276b9,null,0x2)+'\x0a\x09\x09\x09正确参数:'+JSON[_0x99d34d(0xa7)](_0x14f7c9,null,0x2))[_0x99d34d(0xb9)]());return _0x14f7c9;};let _0x175696={'people':'人員費用','service':_0x198d36(0xb8),'trip':_0x198d36(0xa5),'other':_0x198d36(0xb3),'reduction':'減免費用','totalprice':'總計','airtax':'機場稅'},_0x9b8c4c={'adult':'成人','child':'兒童','childusebed':_0x198d36(0x94),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x198d36(0xcc),'vip':'會員減免','promotion':'促銷','insure':'保險費用','coupon':_0x198d36(0xe0),'point':'積分','tax':'稅金','viprecharge':_0x198d36(0xa6),'r':'人','t':'天'};_0x175696=_0x142cac(_0x175696,_0x599768),_0x9b8c4c=_0x142cac(_0x9b8c4c,_0x3e4617);const _0xe4eba9=_0x515e62[_0x198d36(0x9f)](_0x3f96ca=>_0x3f96ca[_0x198d36(0xb0)]==_0x198d36(0xd3));if(_0xe4eba9['length']){let _0x3d6806={'title':_0x175696[_0x198d36(0xc2)],'type':_0x198d36(0xd3),'list':[]};_0xe4eba9[_0x198d36(0xcd)](_0x4cdf57=>{const _0x17f928=_0x198d36;_0x3d6806[_0x17f928(0xbf)][_0x17f928(0xac)]({'title':_0x9b8c4c[_0x4cdf57[_0x17f928(0x9a)]],'info':_0x502a2c+_0x25c111(_0x4cdf57[_0x17f928(0xdf)])+_0x3ac77a+_0x4cdf57['nRs'],'nRs':_0x4cdf57[_0x17f928(0x9e)],'unit':_0x4cdf57[_0x17f928(0xdf)],'cb':_0x4cdf57[_0x17f928(0xa1)],'type':_0x17f928(0xd3)});}),_0xee4308[_0x198d36(0xac)](_0x3d6806);}const _0x23e264=_0x515e62['filter'](_0xf5686d=>_0xf5686d[_0x198d36(0xb0)]=='service');if(_0x23e264['length']){let _0x55cd6b={'title':_0x175696['service'],'type':_0x198d36(0xa9),'list':[]};_0x23e264['map'](_0x1089f9=>{const _0xfa405c=_0x198d36;_0x55cd6b[_0xfa405c(0xbf)]['push']({'title':_0x1089f9[_0xfa405c(0xbe)]+('['+_0x1089f9[_0xfa405c(0xba)]+']'),'info':_0x502a2c+_0x25c111(_0x1089f9[_0xfa405c(0xb7)])+_0x3ac77a+_0x1089f9[_0xfa405c(0xd4)],'nRs':_0x1089f9['num'],'unit':_0x1089f9[_0xfa405c(0xb7)],'cb':_0x1089f9[_0xfa405c(0xc1)],'type':_0xfa405c(0xa9)});}),_0xee4308[_0x198d36(0xac)](_0x55cd6b);}const _0x176a74=_0x515e62[_0x198d36(0x9f)](_0x16901e=>_0x16901e[_0x198d36(0xb0)]=='trip');if(_0x176a74[_0x198d36(0xc8)]){let _0x1c9e21={'title':_0x175696[_0x198d36(0xa2)],'type':'trip','list':[]};_0x176a74[_0x198d36(0xcd)](_0x481407=>{const _0x14db0c=_0x198d36;_0x481407['adultnum']!='0'&&_0x1c9e21[_0x14db0c(0xbf)][_0x14db0c(0xac)]({'title':_0x481407[_0x14db0c(0xbe)]+('['+_0x9b8c4c[_0x14db0c(0xde)]+']'),'info':_0x502a2c+_0x25c111(_0x481407[_0x14db0c(0xdb)])+_0x3ac77a+_0x481407[_0x14db0c(0xda)],'nRs':_0x481407[_0x14db0c(0xda)],'unit':_0x481407[_0x14db0c(0xdb)],'cb':_0x481407[_0x14db0c(0xa8)],'type':_0x14db0c(0xa2)}),_0x481407['childnum']!='0'&&_0x1c9e21['list'][_0x14db0c(0xac)]({'title':_0x481407[_0x14db0c(0xbe)]+('['+_0x9b8c4c[_0x14db0c(0xc4)]+']'),'info':_0x502a2c+_0x25c111(_0x481407[_0x14db0c(0xd5)])+_0x3ac77a+_0x481407['childnum'],'nRs':_0x481407[_0x14db0c(0xb5)],'unit':_0x481407[_0x14db0c(0xd5)],'cb':_0x481407['basechildprice'],'type':_0x14db0c(0xa2)});}),_0xee4308[_0x198d36(0xac)](_0x1c9e21);}let _0x52db64=[];const _0x58c8bb=_0x515e62[_0x198d36(0x9f)](_0x10a922=>_0x10a922['strLx']==_0x198d36(0xad));_0x58c8bb[_0x198d36(0xc8)]&&_0x58c8bb[_0x198d36(0xcd)](_0x1d0112=>{const _0xe60a3f=_0x198d36,_0xa608e2=_0x1d0112[_0xe60a3f(0xbe)]['split']('|')||[''];_0x52db64[_0xe60a3f(0xac)]({'title':_0x9b8c4c[_0xe60a3f(0xad)]+('['+_0xa608e2[0x0]+']'),'info':_0x502a2c+_0x224f47+_0x25c111(_0x1d0112[_0xe60a3f(0x96)]),'unit':_0x1d0112[_0xe60a3f(0x96)],'cb':_0x1d0112[_0xe60a3f(0x96)],'type':_0xe60a3f(0xad)});});const _0x1ce210=_0x515e62[_0x198d36(0x9f)](_0x4b5b7f=>_0x4b5b7f[_0x198d36(0xb0)]=='vipdiscounted');_0x1ce210['length']&&_0x1ce210[_0x198d36(0xcd)](_0x21a820=>{const _0x159f52=_0x198d36;_0x52db64[_0x159f52(0xac)]({'title':_0x9b8c4c[_0x159f52(0xab)]+('['+_0x21a820['name']+']'),'info':_0x502a2c+_0x224f47+_0x25c111(_0x21a820['money']),'unit':_0x21a820[_0x159f52(0x96)],'cb':_0x21a820['money'],'type':_0x159f52(0xab)});});const _0x3f638b=_0x515e62[_0x198d36(0x9f)](_0x1acf54=>_0x1acf54['strLx']==_0x198d36(0xcf));_0x3f638b[_0x198d36(0xc8)]&&_0x3f638b['map'](_0xa97744=>{const _0xe51681=_0x198d36;_0x52db64[_0xe51681(0xac)]({'title':_0x9b8c4c[_0xe51681(0xcf)],'info':_0x502a2c+_0x224f47+_0x25c111(_0xa97744[_0xe51681(0x96)]),'unit':_0xa97744[_0xe51681(0x96)],'cb':_0xa97744[_0xe51681(0x96)],'type':_0xe51681(0xcf)});});_0x52db64[_0x198d36(0xc8)]&&_0xee4308[_0x198d36(0xac)]({'title':_0x175696[_0x198d36(0xbd)],'type':'reduction','list':_0x52db64});const _0x1c6fb5=_0x515e62['filter'](_0x100c49=>_0x100c49[_0x198d36(0xb0)]==_0x198d36(0xd1));if(_0x1c6fb5['length']){let _0x88f392={'title':_0x175696[_0x198d36(0xd1)],'type':_0x198d36(0xd1),'list':[]};_0x1c6fb5['map'](_0x5e8116=>{const _0x5808ad=_0x198d36;_0x88f392[_0x5808ad(0xbf)]['push']({'title':_0x9b8c4c[_0x5e8116[_0x5808ad(0xcb)]],'info':_0x502a2c+_0x25c111(_0x5e8116['unitprice'])+_0x3ac77a+_0x5e8116['sl'],'nRs':_0x5e8116['sl'],'unit':_0x5e8116[_0x5808ad(0xb7)],'cb':_0x5e8116[_0x5808ad(0x95)],'type':_0x5e8116[_0x5808ad(0xcb)]});}),_0xee4308[_0x198d36(0xac)](_0x88f392);}const _0x5a089a=['base','service',_0x198d36(0xa2),'elder','vipdiscounted',_0x198d36(0xcf),_0x198d36(0xd1)],_0x130674=_0x515e62[_0x198d36(0x9f)](_0x29a130=>!_0x5a089a[_0x198d36(0xd2)](_0x29a130[_0x198d36(0xb0)]));let _0x236a05={'title':_0x175696[_0x198d36(0xd9)],'type':_0x198d36(0xd9),'list':[]};for(var _0x354ee7=0x0;_0x354ee7<_0x130674[_0x198d36(0xc8)];_0x354ee7++){const _0x559e93=_0x130674[_0x354ee7];_0x559e93[_0x198d36(0xb0)]==_0x198d36(0xa3)&&_0x236a05[_0x198d36(0xbf)]['push']({'title':_0x9b8c4c[_0x198d36(0xa3)]+('['+_0x559e93[_0x198d36(0xbe)]+']'),'info':_0x502a2c+_0x25c111(_0x559e93['money']),'unit':_0x559e93['money'],'type':_0x559e93[_0x198d36(0xb0)]}),_0x559e93[_0x198d36(0xb0)]==_0x198d36(0xb6)&&_0x236a05[_0x198d36(0xbf)]['push']({'title':_0x9b8c4c['insure']+('['+_0x559e93['name']+']'),'info':_0x502a2c+_0x25c111(_0x559e93[_0x198d36(0xaf)])+_0x3ac77a+_0x559e93[_0x198d36(0xc6)]+_0x9b8c4c['r'],'nRs':_0x559e93['users'],'unit':_0x559e93[_0x198d36(0xaf)],'cb':_0x559e93['unit'],'type':'insure'}),(_0x559e93[_0x198d36(0xb0)]==_0x198d36(0xa0)||_0x559e93['strLx']=='point')&&_0x236a05[_0x198d36(0xbf)][_0x198d36(0xac)]({'title':_0x9b8c4c[_0x559e93['strLx']],'info':_0x502a2c+_0x224f47+_0x25c111(_0x559e93['money']),'unit':_0x559e93[_0x198d36(0x96)],'type':_0x559e93[_0x198d36(0xb0)]}),_0x559e93[_0x198d36(0xb0)]==_0x198d36(0x9c)&&_0x236a05[_0x198d36(0xbf)][_0x198d36(0xac)]({'title':_0x9b8c4c[_0x559e93['strLx']],'info':_0x502a2c+_0x25c111(_0x559e93['tip'])+_0x3ac77a+_0x559e93['tipuser']+_0x9b8c4c['r']+_0x3ac77a+_0x559e93[_0x198d36(0xca)]+_0x9b8c4c['t'],'nRs':_0x559e93['tipuser'],'count':_0x559e93[_0x198d36(0xca)],'unit':_0x559e93['tip'],'type':_0x559e93[_0x198d36(0xb0)]}),_0x559e93['strLx']=='tax'&&_0x236a05['list'][_0x198d36(0xac)]({'title':_0x9b8c4c[_0x559e93[_0x198d36(0xb0)]],'info':_0x502a2c+_0x25c111(_0x559e93['totaltax']),'unit':_0x559e93[_0x198d36(0xd0)],'type':_0x559e93[_0x198d36(0xb0)]});}_0x236a05[_0x198d36(0xbf)]['length']&&_0xee4308[_0x198d36(0xac)](_0x236a05);const _0x22ac5e=_0x515e62[_0x198d36(0x9f)](_0x19b824=>_0x19b824[_0x198d36(0xb0)]=='totalprice');return _0x22ac5e[_0x198d36(0xc8)]&&_0xee4308['push']({'title':_0x175696[_0x198d36(0xce)],'type':_0x198d36(0xce),'list':[{'title':_0x175696[_0x198d36(0xce)],'info':_0x502a2c+_0x25c111(_0x22ac5e[0x0][_0x198d36(0xae)])}]}),_0xee4308;}function a1_0xb46e(){const _0x124227=['name','list','5614470dzVAeT','baseprice','people','2qiLRbV','child','ftd\x20函数接收到无效的数字输入:\x20','users','750087AFRznL','length','159860ppeNJB','tipday','rylx','遊客優惠','map','totalprice','promotion','totaltax','airtax','includes','base','num','childprice','\x20*\x20','floor','error','other','adultnum','adultprice','hasOwnProperty','1989788saRYQC','adult','fLsjUnit','優惠券','兒童[占床]','unitpricewb','money','object','353752kFLfFe','56iIeBsR','strJgbm','keys','tip','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','nRs','filter','coupon','fJcbzlsjUnit','trip','viprecharge','4253604AMCPNL','附加行程','會員充值','stringify','baseadultprice','service','isArray','vip','push','elder','price','unit','strLx','number','toFixed','其他費用','52497DzSWkV','childnum','insure','unitprice','附加服務','trim','itemname','max','couponSign','reduction'];a1_0xb46e=function(){return _0x124227;};return a1_0xb46e();}export default{'handleCosting':handleCosting};
package/dist/room.js CHANGED
@@ -1 +1 @@
1
- (function(_0x588f2,_0xa83c81){const _0x1a106c=a2_0xcd06,_0x2a57b6=_0x588f2();while(!![]){try{const _0x207cf8=-parseInt(_0x1a106c(0x1df))/0x1+parseInt(_0x1a106c(0x1d2))/0x2*(parseInt(_0x1a106c(0x1d9))/0x3)+-parseInt(_0x1a106c(0x1e1))/0x4*(parseInt(_0x1a106c(0x1db))/0x5)+-parseInt(_0x1a106c(0x1d3))/0x6*(-parseInt(_0x1a106c(0x1dd))/0x7)+-parseInt(_0x1a106c(0x1e7))/0x8+-parseInt(_0x1a106c(0x1da))/0x9*(parseInt(_0x1a106c(0x1e8))/0xa)+parseInt(_0x1a106c(0x1d5))/0xb;if(_0x207cf8===_0xa83c81)break;else _0x2a57b6['push'](_0x2a57b6['shift']());}catch(_0x56be51){_0x2a57b6['push'](_0x2a57b6['shift']());}}}(a2_0x575e,0xb0797));function getRoomCount(_0x4472ea,_0x265a9d){const _0x505a78=a2_0xcd06,_0x2a2700=Array[_0x505a78(0x1d7)](_0x4472ea);if(!_0x2a2700)_0x4472ea=[_0x4472ea];let _0x380f59=[];return _0x4472ea[_0x505a78(0x1d8)](_0x4cb313=>{const _0x4f0a40=_0x505a78;let _0x21bf93=![];if(!_0x4cb313['isalotment']){let _0x5dbff6=_0x4cb313[_0x4f0a40(0x1ea)];if(_0x4cb313['childusebed']||!_0x265a9d[_0x4f0a40(0x1de)])_0x5dbff6+=_0x4cb313[_0x4f0a40(0x1eb)];const _0x37625e=_0x265a9d[_0x4f0a40(0x1e0)][_0x4f0a40(0x1e4)](_0x30f105=>Number(_0x30f105[_0x4f0a40(0x1e6)])===_0x5dbff6);if(!_0x37625e)_0x21bf93=!![];else{let _0x349701=_0x4cb313[_0x4f0a40(0x1ea)]+_0x4cb313[_0x4f0a40(0x1eb)]+_0x4cb313['infantnum'];_0x349701>_0x37625e[_0x4f0a40(0x1e3)]&&(_0x21bf93=!![]);}}_0x380f59['push'](_0x21bf93);}),_0x2a2700?_0x380f59:_0x380f59[0x0];}function getRoomConfig(_0xf0f132){const _0xade03a=a2_0xcd06;let _0xa1ac94=_0xf0f132[_0xade03a(0x1d4)](_0x49aeaa=>_0x49aeaa[_0xade03a(0x1e6)]==='childusebed'),_0x216a4c=_0xf0f132[_0xade03a(0x1d4)](_0x1dc7cb=>_0x1dc7cb[_0xade03a(0x1e6)]==='half');const _0x218da1=_0xf0f132[_0xade03a(0x1d4)](_0xf8ca48=>_0xf8ca48['strCode']===_0xade03a(0x1e9)),_0x5813c0=_0xf0f132[_0xade03a(0x1d4)](_0x21c45e=>_0x21c45e[_0xade03a(0x1e6)]===_0xade03a(0x1de)),_0x441f5a=_0xf0f132[_0xade03a(0x1e5)](_0x254478=>{const _0x1fad18=_0xade03a;return{'strCode':_0x254478[_0x1fad18(0x1e6)],'nMaxIn':_0x254478[_0x1fad18(0x1e3)]};});if(_0x216a4c){const _0x3b9081=_0xf0f132[_0xade03a(0x1d4)](_0x536506=>_0x536506[_0xade03a(0x1e6)]=='2');_0x216a4c=_0x216a4c&&_0x3b9081;}if(_0xa1ac94)_0xa1ac94=_0xa1ac94&&_0x5813c0;return{'childusebed':_0xa1ac94,'half':_0x216a4c,'infant':_0x218da1,'child':_0x5813c0,'list':_0x441f5a};}function isRoomPiece(_0x5061bc,_0x40c5e4){const _0x34884b=a2_0xcd06;return _0x40c5e4&&_0x5061bc[_0x34884b(0x1ea)]===0x1&&_0x5061bc['childrennum']===0x0&&_0x5061bc[_0x34884b(0x1e2)]===0x0;}function getRoomItemRange(_0x3fc22d,_0x4802ed,_0x44d40b={'child':'兒童','infant':'嬰兒'}){const _0x136d9b=a2_0xcd06;if(!_0x4802ed['length'])return{'list':[],'yelist':[]};const _0x39307b=Math[_0x136d9b(0x1d6)](..._0x4802ed[_0x136d9b(0x1e5)](_0x2e9d84=>Number(_0x2e9d84[_0x136d9b(0x1e3)]))),_0x1b8be6=_0x39307b-_0x3fc22d[_0x136d9b(0x1ea)]-_0x3fc22d[_0x136d9b(0x1e2)];let _0x326897=_0x39307b-_0x3fc22d[_0x136d9b(0x1ea)]-_0x3fc22d['childrennum'];if(_0x326897>0x2)_0x326897=0x2;const _0x1be742=(_0x39c0c1,_0x3f0fb3)=>{const _0x332ee8=[];_0x332ee8['push']({'value':0x0,'text':'0\x20'+_0x3f0fb3});for(let _0x5c964c=0x0;_0x5c964c<_0x39c0c1;_0x5c964c++){_0x332ee8['push']({'value':_0x5c964c+0x1,'text':_0x5c964c+0x1+'\x20'+_0x3f0fb3});}return _0x332ee8;};return{'list':_0x1be742(_0x1b8be6,_0x44d40b[_0x136d9b(0x1de)]),'yelist':_0x1be742(_0x326897,_0x44d40b[_0x136d9b(0x1e9)])};}function a2_0xcd06(_0x53eac4,_0x511cf5){const _0x575ee3=a2_0x575e();return a2_0xcd06=function(_0xcd065c,_0x316341){_0xcd065c=_0xcd065c-0x1d2;let _0x45aa63=_0x575ee3[_0xcd065c];return _0x45aa63;},a2_0xcd06(_0x53eac4,_0x511cf5);}function getAdultRange(_0x161b25,_0x110ccb='成人'){const _0x222335=a2_0xcd06;let _0x53f685=Math['max'](..._0x161b25['map'](_0x59b837=>Number(_0x59b837[_0x222335(0x1e6)]))[_0x222335(0x1dc)](_0xe166c=>!isNaN(_0xe166c)));if(!_0x53f685)_0x53f685=0x4;let _0x4f369a=[];for(var _0x46bbc5=0x1;_0x46bbc5<_0x53f685+0x1;_0x46bbc5++){_0x4f369a['push']({'value':_0x46bbc5,'text':_0x46bbc5+'\x20'+_0x110ccb});}return _0x4f369a;}function a2_0x575e(){const _0x13e02c=['filter','1474634yKLMVC','child','410864tzCyou','list','68zBciry','infantnum','nMaxIn','find','map','strCode','5106264IBOzdz','50290bVaJAu','infant','adultnum','childrennum','162826UrVCLF','6WCgUZH','some','31121695BQJVUh','max','isArray','forEach','3iyrlpD','2367KPObMx','7855VSUJkp'];a2_0x575e=function(){return _0x13e02c;};return a2_0x575e();}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
1
+ (function(_0x5bbb86,_0x215680){const _0x9c3777=a2_0x4c6d,_0x4dae73=_0x5bbb86();while(!![]){try{const _0x12d249=parseInt(_0x9c3777(0x196))/0x1+-parseInt(_0x9c3777(0x19c))/0x2*(parseInt(_0x9c3777(0x195))/0x3)+parseInt(_0x9c3777(0x19b))/0x4+-parseInt(_0x9c3777(0x192))/0x5+parseInt(_0x9c3777(0x193))/0x6*(-parseInt(_0x9c3777(0x1a5))/0x7)+-parseInt(_0x9c3777(0x1a1))/0x8*(-parseInt(_0x9c3777(0x1a0))/0x9)+parseInt(_0x9c3777(0x199))/0xa;if(_0x12d249===_0x215680)break;else _0x4dae73['push'](_0x4dae73['shift']());}catch(_0x4df483){_0x4dae73['push'](_0x4dae73['shift']());}}}(a2_0x5934,0x33947));function a2_0x4c6d(_0x3625d1,_0x512b5b){const _0x593428=a2_0x5934();return a2_0x4c6d=function(_0x4c6df9,_0x31e90c){_0x4c6df9=_0x4c6df9-0x191;let _0x251004=_0x593428[_0x4c6df9];return _0x251004;},a2_0x4c6d(_0x3625d1,_0x512b5b);}function getRoomCount(_0x451fc6,_0xa9ab78){const _0x31cb0e=a2_0x4c6d,_0xae4b43=Array['isArray'](_0x451fc6);if(!_0xae4b43)_0x451fc6=[_0x451fc6];let _0x250291=[];return _0x451fc6[_0x31cb0e(0x1a3)](_0x4dee30=>{const _0x6d59a1=_0x31cb0e;let _0x13c1bb=![];if(!_0x4dee30[_0x6d59a1(0x1ac)]){let _0x4f47b7=_0x4dee30[_0x6d59a1(0x19d)];if(_0x4dee30[_0x6d59a1(0x1a9)]||!_0xa9ab78[_0x6d59a1(0x1a8)])_0x4f47b7+=_0x4dee30[_0x6d59a1(0x191)];const _0x836a1c=_0xa9ab78[_0x6d59a1(0x198)][_0x6d59a1(0x1a6)](_0x43ef96=>Number(_0x43ef96['strCode'])===_0x4f47b7);if(!_0x836a1c)_0x13c1bb=!![];else{let _0x52098a=_0x4dee30['adultnum']+_0x4dee30[_0x6d59a1(0x191)]+_0x4dee30[_0x6d59a1(0x1aa)];_0x52098a>_0x836a1c[_0x6d59a1(0x19a)]&&(_0x13c1bb=!![]);}}_0x250291[_0x6d59a1(0x19f)](_0x13c1bb);}),_0xae4b43?_0x250291:_0x250291[0x0];}function getRoomConfig(_0x3b543b){const _0x55f214=a2_0x4c6d;let _0x43c38f=_0x3b543b[_0x55f214(0x1a4)](_0xf6f776=>_0xf6f776['strCode']==='childusebed'),_0x2ea568=_0x3b543b[_0x55f214(0x1a4)](_0x1faf6c=>_0x1faf6c[_0x55f214(0x19e)]==='half');const _0x21dbd8=_0x3b543b['some'](_0x2346a2=>_0x2346a2[_0x55f214(0x19e)]==='infant'),_0x4357fd=_0x3b543b[_0x55f214(0x1a4)](_0x1101bb=>_0x1101bb['strCode']===_0x55f214(0x1a8)),_0x223619=_0x3b543b['map'](_0x21516d=>{const _0x3ddd6b=_0x55f214;return{'strCode':_0x21516d[_0x3ddd6b(0x19e)],'nMaxIn':_0x21516d[_0x3ddd6b(0x19a)]};});if(_0x2ea568){const _0x2d6c7f=_0x3b543b[_0x55f214(0x1a4)](_0x1aea60=>_0x1aea60[_0x55f214(0x19e)]=='2');_0x2ea568=_0x2ea568&&_0x2d6c7f;}if(_0x43c38f)_0x43c38f=_0x43c38f&&_0x4357fd;return{'childusebed':_0x43c38f,'half':_0x2ea568,'infant':_0x21dbd8,'child':_0x4357fd,'list':_0x223619};}function isRoomPiece(_0x179015,_0x38eac4){const _0x5bfb9b=a2_0x4c6d;return _0x38eac4&&_0x179015[_0x5bfb9b(0x19d)]===0x1&&_0x179015[_0x5bfb9b(0x191)]===0x0&&_0x179015[_0x5bfb9b(0x1aa)]===0x0;}function a2_0x5934(){const _0x48cb4a=['4904620hWZVFD','nMaxIn','707428fPSVvr','2ztcaja','adultnum','strCode','push','9xPHYkG','1121448HWMkBM','max','forEach','some','18613rGDLcG','find','map','child','childusebed','infantnum','infant','isalotment','childrennum','1216210pvQBWf','654qZpakq','filter','587409esOkre','132647xZgIDu','length','list'];a2_0x5934=function(){return _0x48cb4a;};return a2_0x5934();}function getRoomItemRange(_0x2fc832,_0xe37222,_0x3ac0ab={'child':'兒童','infant':'嬰兒'}){const _0x173e18=a2_0x4c6d;if(!_0xe37222[_0x173e18(0x197)])return{'list':[],'yelist':[]};const _0x3f104c=Math[_0x173e18(0x1a2)](..._0xe37222[_0x173e18(0x1a7)](_0x5607d8=>Number(_0x5607d8[_0x173e18(0x19a)]))),_0x2857c9=_0x3f104c-_0x2fc832[_0x173e18(0x19d)]-_0x2fc832[_0x173e18(0x1aa)];let _0x3b54c8=_0x3f104c-_0x2fc832['adultnum']-_0x2fc832[_0x173e18(0x191)];if(_0x3b54c8>0x2)_0x3b54c8=0x2;const _0x9044d7=(_0x20fc93,_0x3018a6)=>{const _0x1c4a9a=_0x173e18,_0x5d1609=[];_0x5d1609[_0x1c4a9a(0x19f)]({'value':0x0,'text':'0\x20'+_0x3018a6});for(let _0x4703ab=0x0;_0x4703ab<_0x20fc93;_0x4703ab++){_0x5d1609[_0x1c4a9a(0x19f)]({'value':_0x4703ab+0x1,'text':_0x4703ab+0x1+'\x20'+_0x3018a6});}return _0x5d1609;};return{'list':_0x9044d7(_0x2857c9,_0x3ac0ab[_0x173e18(0x1a8)]),'yelist':_0x9044d7(_0x3b54c8,_0x3ac0ab[_0x173e18(0x1ab)])};}function getAdultRange(_0x4d2ca9,_0x4c8d25='成人'){const _0x5e0196=a2_0x4c6d;let _0x6fabcd=Math[_0x5e0196(0x1a2)](..._0x4d2ca9[_0x5e0196(0x1a7)](_0x54a16f=>Number(_0x54a16f[_0x5e0196(0x19e)]))[_0x5e0196(0x194)](_0x4cb1a0=>!isNaN(_0x4cb1a0)));if(!_0x6fabcd)_0x6fabcd=0x4;let _0x2b5678=[];for(var _0xe5bfa4=0x1;_0xe5bfa4<_0x6fabcd+0x1;_0xe5bfa4++){_0x2b5678[_0x5e0196(0x19f)]({'value':_0xe5bfa4,'text':_0xe5bfa4+'\x20'+_0x4c8d25});}return _0x2b5678;}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
package/dist/test.js CHANGED
@@ -1 +1 @@
1
- (function(_0x1d01cc,_0x127a9f){const _0x4ee3e1=a3_0x59b2,_0x4976e2=_0x1d01cc();while(!![]){try{const _0x3a8542=-parseInt(_0x4ee3e1(0x151))/0x1*(parseInt(_0x4ee3e1(0x15b))/0x2)+parseInt(_0x4ee3e1(0x15a))/0x3*(parseInt(_0x4ee3e1(0x161))/0x4)+-parseInt(_0x4ee3e1(0x15c))/0x5*(-parseInt(_0x4ee3e1(0x152))/0x6)+parseInt(_0x4ee3e1(0x154))/0x7+parseInt(_0x4ee3e1(0x15f))/0x8*(-parseInt(_0x4ee3e1(0x163))/0x9)+parseInt(_0x4ee3e1(0x170))/0xa*(-parseInt(_0x4ee3e1(0x165))/0xb)+parseInt(_0x4ee3e1(0x169))/0xc;if(_0x3a8542===_0x127a9f)break;else _0x4976e2['push'](_0x4976e2['shift']());}catch(_0x3d1f9f){_0x4976e2['push'](_0x4976e2['shift']());}}}(a3_0x4fbf,0xc4632));function email(_0xdc8642){const _0x2d6e86=a3_0x59b2;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x2d6e86(0x172)](_0xdc8642);}function mobile(_0x59cfc1){const _0x2c9b89=a3_0x59b2;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x2c9b89(0x172)](_0x59cfc1);}function isValidPhoneNumber(_0x66b566){const _0x59e5cb=a3_0x59b2;if(_0x66b566[_0x59e5cb(0x16c)]('-')){const [_0x3e3472,_0x4c197a]=_0x66b566['split']('-');if(_0x3e3472==='86')return/^\d{11}$/[_0x59e5cb(0x172)](_0x4c197a)&&_0x4c197a[_0x59e5cb(0x171)]('1');else return _0x3e3472===_0x59e5cb(0x15e)?/^\d{8}$/['test'](_0x4c197a)&&['5','6','9','8']['includes'](_0x4c197a['charAt'](0x0)):/^\d+$/['test'](_0x4c197a);}else return/^\d+$/[_0x59e5cb(0x172)](_0x66b566);}function url(_0x36bd27){const _0x562c54=a3_0x59b2;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x562c54(0x172)](_0x36bd27);}function date(_0x14e36a){const _0x4a2f23=a3_0x59b2;if(!_0x14e36a)return![];if(number(_0x14e36a))_0x14e36a=+_0x14e36a;return!/Invalid|NaN/[_0x4a2f23(0x172)](new Date(_0x14e36a)['toString']());}function dateISO(_0x29960f){const _0x3f977d=a3_0x59b2;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x3f977d(0x172)](_0x29960f);}function a3_0x59b2(_0x5e3094,_0x155255){const _0x4fbf36=a3_0x4fbf();return a3_0x59b2=function(_0x59b266,_0x176ec3){_0x59b266=_0x59b266-0x151;let _0x35c531=_0x4fbf36[_0x59b266];return _0x35c531;},a3_0x59b2(_0x5e3094,_0x155255);}function isNumber(_0x5e6e99){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/['test'](_0x5e6e99);}function isString(_0x102df7){const _0x11a9e9=a3_0x59b2;return typeof _0x102df7===_0x11a9e9(0x162);}function digits(_0x67f7c1){const _0x5b3f80=a3_0x59b2;return/^\d+$/[_0x5b3f80(0x172)](_0x67f7c1);}function idCard(_0x2296d0){const _0x37da6d=a3_0x59b2;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)$/[_0x37da6d(0x172)](_0x2296d0);}function carNo(_0x17bf0d){const _0x4d18ee=a3_0x59b2,_0x2bfaaf=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x32ecd2=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x17bf0d[_0x4d18ee(0x166)]===0x7)return _0x32ecd2[_0x4d18ee(0x172)](_0x17bf0d);if(_0x17bf0d[_0x4d18ee(0x166)]===0x8)return _0x2bfaaf[_0x4d18ee(0x172)](_0x17bf0d);return![];}function a3_0x4fbf(){const _0x32f8a9=['object','852','198744IOUOSr','[object\x20RegExp]','16XBVeai','string','369HGdlbY','undefined','1501841qskrVe','length','prototype','then','9547044JwLCEj','^\x5cd{','function','includes','toString','split','replace','10gWlbkB','startsWith','test','231rGGqnn','66LQVDmi','boolean','398566KTpEcx','isArray','call','number','parse','[object\x20Array]','418083qSUqRy','4768YjVshM','500105ioepuP'];a3_0x4fbf=function(){return _0x32f8a9;};return a3_0x4fbf();}function amount(_0xeb9f43){const _0xd94ba6=a3_0x59b2;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0xd94ba6(0x172)](_0xeb9f43);}function chinese(_0xec2313){const _0x11cd90=a3_0x59b2,_0x49ac1e=/^[\u4e00-\u9fa5]+$/gi;return _0x49ac1e[_0x11cd90(0x172)](_0xec2313);}function letter(_0x297f02){const _0x2c26eb=a3_0x59b2;return/^[a-zA-Z]*$/[_0x2c26eb(0x172)](_0x297f02);}function enOrNum(_0x20718e){const _0x4c9707=a3_0x59b2,_0x46eda0=/^[0-9a-zA-Z]*$/g;return _0x46eda0[_0x4c9707(0x172)](_0x20718e);}function contains(_0x45e98a,_0x317663){return _0x45e98a['indexOf'](_0x317663)>=0x0;}function range(_0x5e4762,_0x3217d6){return _0x5e4762>=_0x3217d6[0x0]&&_0x5e4762<=_0x3217d6[0x1];}function rangeLength(_0x2d57b7,_0x4ec26d){const _0x363d93=a3_0x59b2;return _0x2d57b7[_0x363d93(0x166)]>=_0x4ec26d[0x0]&&_0x2d57b7['length']<=_0x4ec26d[0x1];}function landline(_0x252517){const _0x29e142=a3_0x59b2,_0x4321e8=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x4321e8[_0x29e142(0x172)](_0x252517);}function empty(_0x732f){const _0x1cb041=a3_0x59b2;switch(typeof _0x732f){case _0x1cb041(0x164):return!![];case _0x1cb041(0x162):if(_0x732f[_0x1cb041(0x16f)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x1cb041(0x166)]==0x0)return!![];break;case _0x1cb041(0x153):if(!_0x732f)return!![];break;case _0x1cb041(0x157):if(_0x732f===0x0||isNaN(_0x732f))return!![];break;case _0x1cb041(0x15d):if(_0x732f===null||_0x732f[_0x1cb041(0x166)]===0x0)return!![];for(const _0x43e18d in _0x732f){return![];}return!![];}return![];}function jsonString(_0x2bc519){const _0x58b499=a3_0x59b2;if(typeof _0x2bc519==='string')try{const _0x4e5320=JSON[_0x58b499(0x158)](_0x2bc519);if(typeof _0x4e5320==='object'&&_0x4e5320)return!![];return![];}catch(_0x410bcf){return![];}return![];}function array(_0x3c1027){const _0x1d7381=a3_0x59b2;if(typeof Array[_0x1d7381(0x155)]==='function')return Array[_0x1d7381(0x155)](_0x3c1027);return Object[_0x1d7381(0x167)]['toString']['call'](_0x3c1027)===_0x1d7381(0x159);}function object(_0x13b179){const _0x3e0670=a3_0x59b2;return Object[_0x3e0670(0x167)][_0x3e0670(0x16d)][_0x3e0670(0x156)](_0x13b179)==='[object\x20Object]';}function code(_0x151d97,_0x2368c5=0x6){const _0x38772f=a3_0x59b2;return new RegExp(_0x38772f(0x16a)+_0x2368c5+'}$')[_0x38772f(0x172)](_0x151d97);}function func(_0x30b002){const _0x4e3510=a3_0x59b2;return typeof _0x30b002===_0x4e3510(0x16b);}function promise(_0x5332cf){const _0x388d8e=a3_0x59b2;return object(_0x5332cf)&&func(_0x5332cf[_0x388d8e(0x168)])&&func(_0x5332cf['catch']);}function image(_0x502b9b){const _0x5ab166=a3_0x59b2,_0x2bd325=_0x502b9b[_0x5ab166(0x16e)]('?')[0x0],_0x4545da=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x4545da[_0x5ab166(0x172)](_0x2bd325);}function video(_0x2335e3){const _0x588dd6=a3_0x59b2,_0x3e6e10=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x3e6e10[_0x588dd6(0x172)](_0x2335e3);}function regExp(_0x30c39c){const _0x2982f6=a3_0x59b2;return _0x30c39c&&Object[_0x2982f6(0x167)][_0x2982f6(0x16d)][_0x2982f6(0x156)](_0x30c39c)===_0x2982f6(0x160);}function isNumeric(_0x1758dc,_0xbc4ea7=0x0){const _0x3a8435=a3_0x59b2;if(typeof _0x1758dc==='number')_0x1758dc=_0x1758dc['toString']();if(typeof _0x1758dc!==_0x3a8435(0x162))return![];switch(_0xbc4ea7){case 0x1:return/^\d+(\.\d+)?$/['test'](_0x1758dc);case 0x2:return/^-\d+(\.\d+)?$/[_0x3a8435(0x172)](_0x1758dc);case 0x3:return/^-?\d+$/[_0x3a8435(0x172)](_0x1758dc);case 0x4:return/^\d+$/[_0x3a8435(0x172)](_0x1758dc);case 0x5:return/^-\d+$/[_0x3a8435(0x172)](_0x1758dc);default:return/^-?\d*\.?\d*$/[_0x3a8435(0x172)](_0x1758dc)&&!_0x1758dc['startsWith']('.')&&!_0x1758dc[_0x3a8435(0x16c)]('--');}}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(_0x2ab14f,_0x3f2f7a){const _0xdf1e88=a3_0x2fbc,_0x3f850d=_0x2ab14f();while(!![]){try{const _0xbaa4cd=parseInt(_0xdf1e88(0x18d))/0x1+parseInt(_0xdf1e88(0x196))/0x2*(-parseInt(_0xdf1e88(0x1a3))/0x3)+parseInt(_0xdf1e88(0x191))/0x4+-parseInt(_0xdf1e88(0x19a))/0x5*(parseInt(_0xdf1e88(0x198))/0x6)+-parseInt(_0xdf1e88(0x1a1))/0x7*(-parseInt(_0xdf1e88(0x194))/0x8)+-parseInt(_0xdf1e88(0x18f))/0x9*(-parseInt(_0xdf1e88(0x19f))/0xa)+-parseInt(_0xdf1e88(0x1a8))/0xb*(parseInt(_0xdf1e88(0x19d))/0xc);if(_0xbaa4cd===_0x3f2f7a)break;else _0x3f850d['push'](_0x3f850d['shift']());}catch(_0x34c22c){_0x3f850d['push'](_0x3f850d['shift']());}}}(a3_0x40d3,0x78947));function email(_0x1da835){const _0x4ac1f1=a3_0x2fbc;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x4ac1f1(0x1a2)](_0x1da835);}function a3_0x2fbc(_0x365bfd,_0x4cf16b){const _0x40d3d4=a3_0x40d3();return a3_0x2fbc=function(_0x2fbca5,_0x383c9a){_0x2fbca5=_0x2fbca5-0x188;let _0x158946=_0x40d3d4[_0x2fbca5];return _0x158946;},a3_0x2fbc(_0x365bfd,_0x4cf16b);}function mobile(_0x5e736b){const _0x214cdd=a3_0x2fbc;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x214cdd(0x1a2)](_0x5e736b);}function isValidPhoneNumber(_0x2a7b2c){const _0x281cbd=a3_0x2fbc;if(_0x2a7b2c[_0x281cbd(0x1a6)]('-')){const [_0x9d7d7b,_0x34907a]=_0x2a7b2c[_0x281cbd(0x18b)]('-');if(_0x9d7d7b==='86')return/^\d{11}$/[_0x281cbd(0x1a2)](_0x34907a)&&_0x34907a['startsWith']('1');else return _0x9d7d7b===_0x281cbd(0x1a9)?/^\d{8}$/[_0x281cbd(0x1a2)](_0x34907a)&&['5','6','9','8'][_0x281cbd(0x1a6)](_0x34907a[_0x281cbd(0x190)](0x0)):/^\d+$/['test'](_0x34907a);}else return/^\d+$/[_0x281cbd(0x1a2)](_0x2a7b2c);}function url(_0x2fbcf3){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'](_0x2fbcf3);}function date(_0x1760ad){if(!_0x1760ad)return![];if(number(_0x1760ad))_0x1760ad=+_0x1760ad;return!/Invalid|NaN/['test'](new Date(_0x1760ad)['toString']());}function dateISO(_0x340342){const _0xe137ea=a3_0x2fbc;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0xe137ea(0x1a2)](_0x340342);}function isNumber(_0x366500){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/['test'](_0x366500);}function isString(_0xa3c5e4){const _0x226cbc=a3_0x2fbc;return typeof _0xa3c5e4===_0x226cbc(0x18a);}function digits(_0x12e583){return/^\d+$/['test'](_0x12e583);}function idCard(_0xa3cc24){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'](_0xa3cc24);}function carNo(_0x1e98c1){const _0x109a8b=a3_0x2fbc,_0x4754e9=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x14c29a=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x1e98c1[_0x109a8b(0x188)]===0x7)return _0x14c29a['test'](_0x1e98c1);if(_0x1e98c1[_0x109a8b(0x188)]===0x8)return _0x4754e9['test'](_0x1e98c1);return![];}function amount(_0x1cb990){const _0x2c645d=a3_0x2fbc;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x2c645d(0x1a2)](_0x1cb990);}function chinese(_0x3502b9){const _0x323b5=a3_0x2fbc,_0x28c391=/^[\u4e00-\u9fa5]+$/gi;return _0x28c391[_0x323b5(0x1a2)](_0x3502b9);}function letter(_0x4a0f71){const _0x5bc559=a3_0x2fbc;return/^[a-zA-Z]*$/[_0x5bc559(0x1a2)](_0x4a0f71);}function enOrNum(_0x53af40){const _0x522e86=a3_0x2fbc,_0x14767e=/^[0-9a-zA-Z]*$/g;return _0x14767e[_0x522e86(0x1a2)](_0x53af40);}function contains(_0x563df5,_0x26c5e9){const _0x122b03=a3_0x2fbc;return _0x563df5[_0x122b03(0x189)](_0x26c5e9)>=0x0;}function range(_0x525aa2,_0x1cd296){return _0x525aa2>=_0x1cd296[0x0]&&_0x525aa2<=_0x1cd296[0x1];}function rangeLength(_0x3f24bc,_0x1afa24){const _0x25b189=a3_0x2fbc;return _0x3f24bc['length']>=_0x1afa24[0x0]&&_0x3f24bc[_0x25b189(0x188)]<=_0x1afa24[0x1];}function landline(_0x550e2e){const _0x14c872=a3_0x2fbc,_0x222a76=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x222a76[_0x14c872(0x1a2)](_0x550e2e);}function empty(_0x2f63f6){const _0x46b88b=a3_0x2fbc;switch(typeof _0x2f63f6){case _0x46b88b(0x195):return!![];case _0x46b88b(0x18a):if(_0x2f63f6['replace'](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x46b88b(0x188)]==0x0)return!![];break;case _0x46b88b(0x1a0):if(!_0x2f63f6)return!![];break;case _0x46b88b(0x19c):if(_0x2f63f6===0x0||isNaN(_0x2f63f6))return!![];break;case _0x46b88b(0x18e):if(_0x2f63f6===null||_0x2f63f6[_0x46b88b(0x188)]===0x0)return!![];for(const _0x2fc493 in _0x2f63f6){return![];}return!![];}return![];}function jsonString(_0x42f410){const _0xb0c90f=a3_0x2fbc;if(typeof _0x42f410===_0xb0c90f(0x18a))try{const _0x156764=JSON[_0xb0c90f(0x199)](_0x42f410);if(typeof _0x156764===_0xb0c90f(0x18e)&&_0x156764)return!![];return![];}catch(_0x134717){return![];}return![];}function array(_0x47c25f){const _0x20b368=a3_0x2fbc;if(typeof Array[_0x20b368(0x1a5)]===_0x20b368(0x193))return Array[_0x20b368(0x1a5)](_0x47c25f);return Object[_0x20b368(0x1a7)][_0x20b368(0x192)]['call'](_0x47c25f)===_0x20b368(0x19e);}function object(_0x263c2e){const _0x5b47d4=a3_0x2fbc;return Object['prototype'][_0x5b47d4(0x192)][_0x5b47d4(0x19b)](_0x263c2e)==='[object\x20Object]';}function code(_0xcad5fb,_0x14419a=0x6){const _0x2bfea1=a3_0x2fbc;return new RegExp(_0x2bfea1(0x197)+_0x14419a+'}$')[_0x2bfea1(0x1a2)](_0xcad5fb);}function func(_0xb05b27){const _0x2cfbbb=a3_0x2fbc;return typeof _0xb05b27===_0x2cfbbb(0x193);}function promise(_0x6be65f){const _0x3e6776=a3_0x2fbc;return object(_0x6be65f)&&func(_0x6be65f['then'])&&func(_0x6be65f[_0x3e6776(0x1a4)]);}function image(_0x12489b){const _0x5617ea=a3_0x2fbc,_0x631c8c=_0x12489b['split']('?')[0x0],_0x3bd053=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x3bd053[_0x5617ea(0x1a2)](_0x631c8c);}function a3_0x40d3(){const _0x3d230a=['2055OoiVZy','catch','isArray','includes','prototype','10099529dTGvUR','852','length','indexOf','string','split','[object\x20RegExp]','558721VRjOLs','object','18bqZrPy','charAt','4256lfLnXs','toString','function','996688JfJosn','undefined','1468mpxixT','^\x5cd{','150fsloal','parse','5195UOksgX','call','number','12BRQQwM','[object\x20Array]','2544560hfQwJq','boolean','49jpZOYz','test'];a3_0x40d3=function(){return _0x3d230a;};return a3_0x40d3();}function video(_0x1f17fd){const _0x54a4f4=a3_0x2fbc,_0xcf1377=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0xcf1377[_0x54a4f4(0x1a2)](_0x1f17fd);}function regExp(_0x228d91){const _0x3340e3=a3_0x2fbc;return _0x228d91&&Object[_0x3340e3(0x1a7)][_0x3340e3(0x192)]['call'](_0x228d91)===_0x3340e3(0x18c);}function isNumeric(_0x45a3aa,_0x12ebaa=0x0){const _0x3549e6=a3_0x2fbc;if(typeof _0x45a3aa===_0x3549e6(0x19c))_0x45a3aa=_0x45a3aa['toString']();if(typeof _0x45a3aa!==_0x3549e6(0x18a))return![];switch(_0x12ebaa){case 0x1:return/^\d+(\.\d+)?$/['test'](_0x45a3aa);case 0x2:return/^-\d+(\.\d+)?$/['test'](_0x45a3aa);case 0x3:return/^-?\d+$/[_0x3549e6(0x1a2)](_0x45a3aa);case 0x4:return/^\d+$/['test'](_0x45a3aa);case 0x5:return/^-\d+$/[_0x3549e6(0x1a2)](_0x45a3aa);default:return/^-?\d*\.?\d*$/[_0x3549e6(0x1a2)](_0x45a3aa)&&!_0x45a3aa['startsWith']('.')&&!_0x45a3aa['includes']('--');}}export default{'isNumeric':isNumeric,'email':email,'mobile':mobile,'url':url,'date':date,'dateISO':dateISO,'isNumber':isNumber,'digits':digits,'idCard':idCard,'carNo':carNo,'amount':amount,'chinese':chinese,'letter':letter,'enOrNum':enOrNum,'contains':contains,'range':range,'rangeLength':rangeLength,'empty':empty,'jsonString':jsonString,'landline':landline,'object':object,'array':array,'code':code,'func':func,'promise':promise,'video':video,'image':image,'regExp':regExp,'isString':isString,'isValidPhoneNumber':isValidPhoneNumber};
package/dist/utils.js CHANGED
@@ -1 +1 @@
1
- const a4_0x3aed35=a4_0x391d;(function(_0x40dc3e,_0x4a5999){const _0x1729c8=a4_0x391d,_0x123a90=_0x40dc3e();while(!![]){try{const _0x48af87=-parseInt(_0x1729c8(0x16d))/0x1*(parseInt(_0x1729c8(0x17b))/0x2)+parseInt(_0x1729c8(0x16a))/0x3*(parseInt(_0x1729c8(0x15f))/0x4)+-parseInt(_0x1729c8(0x157))/0x5*(-parseInt(_0x1729c8(0x164))/0x6)+parseInt(_0x1729c8(0x18a))/0x7+-parseInt(_0x1729c8(0x186))/0x8*(-parseInt(_0x1729c8(0x171))/0x9)+parseInt(_0x1729c8(0x173))/0xa+parseInt(_0x1729c8(0x16b))/0xb*(-parseInt(_0x1729c8(0x18c))/0xc);if(_0x48af87===_0x4a5999)break;else _0x123a90['push'](_0x123a90['shift']());}catch(_0x4419fd){_0x123a90['push'](_0x123a90['shift']());}}}(a4_0x3b20,0x49f1d));function fmtNum(_0x2b834c){const _0xeb952f=a4_0x391d;if(_0x2b834c==0x0)return'0';if(!_0x2b834c)return'';let _0x3ebdd8=typeof _0x2b834c==='string'?parseFloat(_0x2b834c):_0x2b834c;if(isNaN(_0x3ebdd8))return'';return _0x3ebdd8[_0xeb952f(0x177)](_0xeb952f(0x174),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x3b7f39,_0x4f61ff=![]){const _0x24549b=a4_0x391d;let _0x395573={'surname':'','givenName':''};if(_0x4f61ff){const _0x4564cf=_0x3b7f39['includes'](',')?_0x3b7f39[_0x24549b(0x182)](','):_0x3b7f39[_0x24549b(0x182)](/\s+/);_0x4564cf[_0x24549b(0x18d)]>=0x2&&(_0x395573[_0x24549b(0x172)]=_0x4564cf[0x0][_0x24549b(0x16e)](),_0x395573[_0x24549b(0x17c)]=_0x4564cf[0x1]['trim']());}else{const _0x287c52=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x68ae3f=0x0;_0x68ae3f<_0x287c52[_0x24549b(0x18d)];_0x68ae3f++){const _0x5409af=_0x287c52[_0x68ae3f];if(_0x3b7f39[_0x24549b(0x158)](_0x5409af))return _0x395573[_0x24549b(0x172)]=_0x5409af,_0x395573[_0x24549b(0x17c)]=_0x3b7f39[_0x24549b(0x17a)](_0x5409af[_0x24549b(0x18d)])[_0x24549b(0x16e)](),_0x395573;}const _0x379a2a=_0x3b7f39[_0x24549b(0x182)]('\x20');if(_0x379a2a['length']===0x1){const _0x5bda10=_0x3b7f39[_0x24549b(0x165)](/[\u4e00-\u9fa5]/);_0x395573[_0x24549b(0x172)]=_0x5bda10?_0x5bda10[0x0]:'',_0x395573[_0x24549b(0x17c)]=_0x3b7f39['replace'](_0x395573[_0x24549b(0x172)],'')['trim']();}else _0x395573[_0x24549b(0x172)]=_0x379a2a[0x0],_0x395573['givenName']=_0x379a2a[_0x24549b(0x161)](0x1)[_0x24549b(0x175)]('\x20');}return _0x395573;}function modifyKeys(_0x1d93e7,_0x2ca1fc={'strCode':a4_0x3aed35(0x188),'strFjbh':a4_0x3aed35(0x183),'strGuid':a4_0x3aed35(0x167),'strValue':'label'}){if(!_0x1d93e7['length']||_0x1d93e7===null)return[];const _0x53a809=_0x1d93e7['map'](_0x5f1e20=>{const _0x2bb037=a4_0x391d,_0x5634e5={};for(const _0x25083a in _0x5f1e20){_0x2ca1fc[_0x2bb037(0x185)](_0x25083a)?_0x5634e5[_0x2ca1fc[_0x25083a]]=_0x5f1e20[_0x25083a]:_0x5634e5[_0x25083a]=_0x5f1e20[_0x25083a];}return _0x5634e5;});return _0x53a809;}function sliceArray(_0x197a5f,_0x292610,_0x2c08a7){const _0x7fbeb6=a4_0x3aed35;if(_0x292610<=0x0)return console[_0x7fbeb6(0x17f)](_0x7fbeb6(0x178)),[];return _0x2c08a7?_0x197a5f[_0x7fbeb6(0x161)](0x0,_0x292610):_0x197a5f['slice'](-_0x292610);}function findDataByData(_0x386cf1,_0x2a532a,_0x553e76){const _0xa7fc6e=_0x386cf1['find'](_0x1c9f95=>_0x1c9f95[_0x553e76]===_0x2a532a);return _0xa7fc6e||null;}function splitArray(_0x49715b,_0x537eef){const _0x19814a=a4_0x3aed35,_0x3c1c37=[];for(let _0xbbf795=0x0;_0xbbf795<_0x49715b[_0x19814a(0x18d)];_0xbbf795+=_0x537eef){_0x3c1c37[_0x19814a(0x180)](_0x49715b[_0x19814a(0x161)](_0xbbf795,_0xbbf795+_0x537eef));}return _0x3c1c37;}function a4_0x3b20(){const _0x5603f4=['function','error','push','setDate','split','fjbh','stringify','hasOwnProperty','130944nKPxoN','number','code','object','3557176jenTYZ','prototype','84kXYZcR','length','max','2947565BUWdVX','startsWith','includes','string','abs','replace','forEach','除数不能为0','229724pocatH','padStart','slice','getFullYear','toFixed','6DGONXQ','match','_qh','value','getTime','无效的操作符,操作符应为1、2、3或4','3YrSkQA','1778601udzbcf','floor','2NyOxYV','trim','isArray','setHours','180RGRuhs','surname','1804800XLnznD','en-US','join','parse','toLocaleString','Quantity\x20should\x20be\x20greater\x20than\x200.','getDate','substring','228238GhjoOD','givenName','getMonth'];a4_0x3b20=function(){return _0x5603f4;};return a4_0x3b20();}function getProxyType(_0x1b254d){const _0x574c3c=a4_0x3aed35;return Object[_0x574c3c(0x18b)]['toString']['call'](_0x1b254d)[_0x574c3c(0x161)](0x8,-0x1);}let timeout=null;function debounce(_0x824e1f,_0x587e72=0x1f4,_0x168913=![]){const _0xf77ab4=a4_0x3aed35;if(timeout!==null)clearTimeout(timeout);if(_0x168913){const _0x4bf936=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x587e72);if(_0x4bf936)typeof _0x824e1f===_0xf77ab4(0x17e)&&_0x824e1f();}else timeout=setTimeout(()=>{typeof _0x824e1f==='function'&&_0x824e1f();},_0x587e72);}function urlEncode(_0x51d923={}){const _0x11192c=a4_0x3aed35,_0x474860=[];for(const _0x52e14d in _0x51d923){const _0x50001b=_0x51d923[_0x52e14d];if(!_0x50001b)continue;isArray(_0x50001b)?_0x50001b[_0x11192c(0x15d)](_0x3b12e8=>{const _0x2ca760=_0x11192c;_0x474860[_0x2ca760(0x180)](_0x52e14d+'='+_0x3b12e8);}):_0x474860['push'](_0x52e14d+'='+_0x50001b);}return _0x474860['join']('&');}function compareDates(_0x2757c1,_0x5ca936){const _0x1e4fb0=a4_0x3aed35;_0x2757c1=new Date(_0x2757c1);!_0x5ca936?_0x5ca936=new Date():_0x5ca936=new Date(_0x5ca936);_0x2757c1[_0x1e4fb0(0x170)](0x0,0x0,0x0,0x0),_0x5ca936['setHours'](0x0,0x0,0x0,0x0);var _0x5b081e=_0x2757c1[_0x1e4fb0(0x168)](),_0x42e380=_0x5ca936['getTime']();if(_0x5b081e<_0x42e380)return-0x1;else return _0x5b081e>_0x42e380?0x1:0x0;}function getDaysBetween(_0x501649,_0x1de4ea){const _0xd08c0f=a4_0x3aed35,_0xd4cd5b=new Date(_0x501649),_0x40ab2a=new Date(_0x1de4ea),_0x541066=Math[_0xd08c0f(0x15b)](_0xd4cd5b[_0xd08c0f(0x168)]()-_0x40ab2a['getTime']()),_0x2d0e3=Math[_0xd08c0f(0x16c)](_0x541066/(0x3e8*0x3c*0x3c*0x18));return _0x2d0e3+0x1;}function chineseNumeral(_0x2c1945){const _0x569c53=a4_0x3aed35,_0x37920a=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x153ecb=['','拾','佰','仟'],_0x1f659c=['','万','亿','兆'];let _0x43f642=Math[_0x569c53(0x16c)](_0x2c1945),_0x3ecd8b=Math['round']((_0x2c1945-_0x43f642)*0x64),_0x2cbc66='';for(let _0x489b61=0x0;_0x43f642>0x0;_0x489b61++){let _0x45e86b='',_0xf5d067=_0x43f642%0x2710;_0x43f642=Math[_0x569c53(0x16c)](_0x43f642/0x2710);for(let _0x124ce3=0x0;_0xf5d067>0x0;_0x124ce3++){let _0x2f0b1d=_0xf5d067%0xa;_0x45e86b=(_0x2f0b1d?_0x37920a[_0x2f0b1d]+_0x153ecb[_0x124ce3]:'')+_0x45e86b,_0xf5d067=Math['floor'](_0xf5d067/0xa);}_0x2cbc66=_0x45e86b+(_0x45e86b?_0x1f659c[_0x489b61]:_0x1f659c[_0x489b61]&&!_0x2cbc66[_0x569c53(0x159)]('零')?'零':'')+_0x2cbc66;}_0x2cbc66+=_0x2cbc66?'元':'零元';if(_0x3ecd8b>0x0){let _0x304218=Math[_0x569c53(0x16c)](_0x3ecd8b/0xa),_0x5b2dbd=_0x3ecd8b%0xa;_0x2cbc66+=(_0x304218?_0x37920a[_0x304218]+'角':'')+(_0x5b2dbd?_0x37920a[_0x5b2dbd]+'分':'');}else _0x2cbc66+='整';return _0x2cbc66[_0x569c53(0x15c)](/零{2,}/g,'零')[_0x569c53(0x15c)](/零元/,'元');}function getMonthDate(_0x7ac1f8){const _0x4030f0=a4_0x3aed35;(!_0x7ac1f8||_0x7ac1f8[_0x4030f0(0x16e)]()==='')&&(_0x7ac1f8=new Date()[_0x4030f0(0x162)]()+'-'+(new Date()[_0x4030f0(0x17d)]()+0x1));let _0xf133b5=[],[_0x1a475f,_0x1c94f7]=_0x7ac1f8['split']('-')['map'](Number),_0x16edab=new Date(_0x1a475f,_0x1c94f7,0x0),_0x316130=_0x16edab[_0x4030f0(0x179)]();for(let _0x1209e5=0x1;_0x1209e5<=_0x316130;_0x1209e5++){let _0x2b9dd1=_0x1209e5<0xa?'0'+_0x1209e5:''+_0x1209e5,_0x1c0d04=_0x1c94f7<0xa?'0'+_0x1c94f7:''+_0x1c94f7;_0xf133b5[_0x4030f0(0x180)]({'date':_0x1a475f+'-'+_0x1c0d04+'-'+_0x2b9dd1,'disable':!![]});}return _0xf133b5;}function getToday(_0x16970a){const _0x1a8e0f=a4_0x3aed35;var _0x3d665=new Date(),_0x57140d=String(_0x3d665['getDate']())[_0x1a8e0f(0x160)](0x2,'0'),_0x51743a=String(_0x3d665['getMonth']()+0x1)[_0x1a8e0f(0x160)](0x2,'0'),_0x41eaef=_0x3d665['getFullYear']();return _0x3d665=_0x41eaef+'-'+_0x51743a+'-'+_0x57140d,_0x3d665;}function resetObject(_0x10e9c5){const _0xe5c2a9=a4_0x3aed35;let _0x16ef2c=JSON[_0xe5c2a9(0x176)](JSON[_0xe5c2a9(0x184)](_0x10e9c5));for(const _0x305262 in _0x16ef2c){if(typeof _0x16ef2c[_0x305262]===_0xe5c2a9(0x187))_0x16ef2c[_0x305262]=0x0;else{if(typeof _0x16ef2c[_0x305262]==='boolean')_0x16ef2c[_0x305262]=![];else{if(Array[_0xe5c2a9(0x16f)](_0x16ef2c[_0x305262]))_0x16ef2c[_0x305262]=[];else typeof _0x16ef2c[_0x305262]===_0xe5c2a9(0x189)&&_0x16ef2c[_0x305262]!==null?resetObject(_0x16ef2c[_0x305262]):_0x16ef2c[_0x305262]='';}}}return _0x16ef2c;}function preciseOperation(_0x182f4e,_0x434fb2,_0x507dd9,_0x101c9e=0xf4240){const _0x584faa=a4_0x3aed35;if(isNaN(_0x182f4e)||isNaN(_0x434fb2))return NaN;if(!isFinite(_0x182f4e)||!isFinite(_0x434fb2))return NaN;let _0xd9488c=BigInt(Math['round'](_0x182f4e*_0x101c9e)),_0x352e6f=BigInt(Math['round'](_0x434fb2*_0x101c9e)),_0x374bce;switch(_0x507dd9){case 0x1:_0x374bce=_0xd9488c+_0x352e6f;break;case 0x2:_0x374bce=_0xd9488c-_0x352e6f;break;case 0x3:_0x374bce=_0xd9488c*_0x352e6f;break;case 0x4:if(_0x352e6f===0x0n)throw new Error(_0x584faa(0x15e));_0x374bce=_0xd9488c/_0x352e6f;break;default:throw new Error(_0x584faa(0x169));}return Number(_0x374bce)/_0x101c9e;}function preciseSum(_0x247012){const _0x3578ee=a4_0x3aed35;let _0x3c45cc=0x0;for(const _0x31b91e of _0x247012){let _0x31b510=0x0;if(typeof _0x31b91e===_0x3578ee(0x15a)){const _0x56d5aa=parseFloat(_0x31b91e);!isNaN(_0x56d5aa)&&(_0x31b510=_0x56d5aa);}else typeof _0x31b91e===_0x3578ee(0x187)&&(_0x31b510=_0x31b91e);_0x3c45cc=preciseOperation(_0x3c45cc,_0x31b510,0x1);}return _0x3c45cc;}function getRelativeDate(_0x48fdd2,_0x4dc922=0x0){const _0x3f2828=a4_0x3aed35,_0x45fc0a=new Date(_0x48fdd2);_0x45fc0a[_0x3f2828(0x181)](_0x45fc0a[_0x3f2828(0x179)]()+_0x4dc922);const _0x41a5f9=_0x45fc0a[_0x3f2828(0x162)](),_0x339ddc=(_0x45fc0a[_0x3f2828(0x17d)]()+0x1)['toString']()[_0x3f2828(0x160)](0x2,'0'),_0x328b86=_0x45fc0a[_0x3f2828(0x179)]()['toString']()[_0x3f2828(0x160)](0x2,'0');return _0x41a5f9+'-'+_0x339ddc+'-'+_0x328b86;}function validateFields(_0x1ba2d3,_0x266f4f,_0x1dc6b0=''){for(let _0x2ae30e of _0x266f4f){if(_0x1ba2d3[_0x2ae30e]===_0x1dc6b0)return!![];}return![];}function mergeObjects(_0x15b299,_0x4fa9fd){for(const _0x4d4de9 in _0x15b299){_0x4fa9fd['hasOwnProperty'](_0x4d4de9)&&(_0x15b299[_0x4d4de9]=_0x4fa9fd[_0x4d4de9]);}return _0x15b299;}const formatToDecimal=(_0x42ad8b,_0x509016=0x2)=>{const _0x14ee45=a4_0x3aed35;if(_0x42ad8b==null||isNaN(_0x509016)||_0x509016<0x0)return'';let _0x578265=Number(_0x42ad8b);if(!isFinite(_0x578265))return'';return _0x509016=Math[_0x14ee45(0x156)](0x0,Math['floor'](_0x509016)),_0x578265[_0x14ee45(0x163)](_0x509016);};function a4_0x391d(_0x50f311,_0x1eac9f){const _0x3b2075=a4_0x3b20();return a4_0x391d=function(_0x391d2d,_0x442376){_0x391d2d=_0x391d2d-0x156;let _0x1cdcf5=_0x3b2075[_0x391d2d];return _0x1cdcf5;},a4_0x391d(_0x50f311,_0x1eac9f);}function findKeysEndingWith(_0x440384,_0x56871a=a4_0x3aed35(0x166)){let _0x16b652=[];for(var _0x1ea86a in _0x440384){if(_0x440384['hasOwnProperty'](_0x1ea86a)){if(_0x1ea86a['endsWith'](_0x56871a))_0x16b652['push'](_0x1ea86a);}}return _0x16b652;}export default{'findKeysEndingWith':findKeysEndingWith,'formatToDecimal':formatToDecimal,'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};
1
+ const a4_0x4d6713=a4_0x285a;function a4_0x3273(){const _0xe6ed6b=['value','setDate','function','getFullYear','label','substring','split','both','string','3579012XvRoGb','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','getDate','除数不能为0','surname','trim','en-US','call','Quantity\x20should\x20be\x20greater\x20than\x200.','isArray','abs','49YrkJbt','object','length','getTime','endsWith','givenName','slice','1811032HLlCSB','78984TGKFyR','round','error','find','toLocaleString','parse','replace','22029lVaeCX','2243060ikIzhe','map','_qh','forEach','无效的操作符,操作符应为1、2、3或4','getMonth','fjbh','toString','join','padStart','toFixed','setHours','52872RmIbdP','push','floor','code','match','number','right','hasOwnProperty','78333oXzbzv','includes'];a4_0x3273=function(){return _0xe6ed6b;};return a4_0x3273();}(function(_0x3b0d56,_0x105113){const _0x317637=a4_0x285a,_0x172766=_0x3b0d56();while(!![]){try{const _0x1319fa=-parseInt(_0x317637(0x125))/0x1+parseInt(_0x317637(0x11e))/0x2+parseInt(_0x317637(0x13a))/0x3+parseInt(_0x317637(0x11d))/0x4+parseInt(_0x317637(0x126))/0x5+-parseInt(_0x317637(0x145))/0x6+-parseInt(_0x317637(0x116))/0x7*(parseInt(_0x317637(0x132))/0x8);if(_0x1319fa===_0x105113)break;else _0x172766['push'](_0x172766['shift']());}catch(_0x9e29c3){_0x172766['push'](_0x172766['shift']());}}}(a4_0x3273,0x49c63));function fmtNum(_0x3791cb){const _0x59587e=a4_0x285a;if(_0x3791cb==0x0)return'0';if(!_0x3791cb)return'';let _0x12ad3e=typeof _0x3791cb===_0x59587e(0x144)?parseFloat(_0x3791cb):_0x3791cb;if(isNaN(_0x12ad3e))return'';return _0x12ad3e[_0x59587e(0x122)](_0x59587e(0x14b),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x517301,_0x5f4ac3=![]){const _0x2b9153=a4_0x285a;let _0x2a98a1={'surname':'','givenName':''};if(_0x5f4ac3){const _0x31d9cb=_0x517301[_0x2b9153(0x13b)](',')?_0x517301['split'](','):_0x517301[_0x2b9153(0x142)](/\s+/);_0x31d9cb[_0x2b9153(0x118)]>=0x2&&(_0x2a98a1['surname']=_0x31d9cb[0x0][_0x2b9153(0x14a)](),_0x2a98a1['givenName']=_0x31d9cb[0x1][_0x2b9153(0x14a)]());}else{const _0x5e6fb3=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x1391c5=0x0;_0x1391c5<_0x5e6fb3[_0x2b9153(0x118)];_0x1391c5++){const _0x22b302=_0x5e6fb3[_0x1391c5];if(_0x517301['startsWith'](_0x22b302))return _0x2a98a1[_0x2b9153(0x149)]=_0x22b302,_0x2a98a1[_0x2b9153(0x11b)]=_0x517301[_0x2b9153(0x141)](_0x22b302[_0x2b9153(0x118)])[_0x2b9153(0x14a)](),_0x2a98a1;}const _0x98c356=_0x517301[_0x2b9153(0x142)]('\x20');if(_0x98c356[_0x2b9153(0x118)]===0x1){const _0x205ded=_0x517301[_0x2b9153(0x136)](/[\u4e00-\u9fa5]/);_0x2a98a1[_0x2b9153(0x149)]=_0x205ded?_0x205ded[0x0]:'',_0x2a98a1['givenName']=_0x517301[_0x2b9153(0x124)](_0x2a98a1[_0x2b9153(0x149)],'')[_0x2b9153(0x14a)]();}else _0x2a98a1[_0x2b9153(0x149)]=_0x98c356[0x0],_0x2a98a1[_0x2b9153(0x11b)]=_0x98c356[_0x2b9153(0x11c)](0x1)['join']('\x20');}return _0x2a98a1;}function modifyKeys(_0x586bb1,_0x20d6a7={'strCode':a4_0x4d6713(0x135),'strFjbh':a4_0x4d6713(0x12c),'strGuid':a4_0x4d6713(0x13c),'strValue':a4_0x4d6713(0x140)}){const _0x4fc26f=a4_0x4d6713;if(!_0x586bb1[_0x4fc26f(0x118)]||_0x586bb1===null)return[];const _0x14dd01=_0x586bb1[_0x4fc26f(0x127)](_0x514533=>{const _0x10a83c={};for(const _0x42f38c in _0x514533){_0x20d6a7['hasOwnProperty'](_0x42f38c)?_0x10a83c[_0x20d6a7[_0x42f38c]]=_0x514533[_0x42f38c]:_0x10a83c[_0x42f38c]=_0x514533[_0x42f38c];}return _0x10a83c;});return _0x14dd01;}function sliceArray(_0x47c93b,_0x4dc12e,_0x4412ef){const _0x37deb1=a4_0x4d6713;if(_0x4dc12e<=0x0)return console[_0x37deb1(0x120)](_0x37deb1(0x14d)),[];return _0x4412ef?_0x47c93b[_0x37deb1(0x11c)](0x0,_0x4dc12e):_0x47c93b[_0x37deb1(0x11c)](-_0x4dc12e);}function findDataByData(_0x346170,_0x15784b,_0x465f8f){const _0x31cada=a4_0x4d6713,_0x5d97ac=_0x346170[_0x31cada(0x121)](_0x3450cd=>_0x3450cd[_0x465f8f]===_0x15784b);return _0x5d97ac||null;}function splitArray(_0x53800b,_0xb58611){const _0x1ef52c=a4_0x4d6713,_0x4289df=[];for(let _0x3dcebb=0x0;_0x3dcebb<_0x53800b[_0x1ef52c(0x118)];_0x3dcebb+=_0xb58611){_0x4289df['push'](_0x53800b['slice'](_0x3dcebb,_0x3dcebb+_0xb58611));}return _0x4289df;}function getProxyType(_0x2bc5ac){const _0x491c64=a4_0x4d6713;return Object['prototype'][_0x491c64(0x12d)][_0x491c64(0x14c)](_0x2bc5ac)[_0x491c64(0x11c)](0x8,-0x1);}let timeout=null;function debounce(_0x460843,_0x55d933=0x1f4,_0x25a226=![]){const _0x28747d=a4_0x4d6713;if(timeout!==null)clearTimeout(timeout);if(_0x25a226){const _0x350304=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x55d933);if(_0x350304)typeof _0x460843===_0x28747d(0x13e)&&_0x460843();}else timeout=setTimeout(()=>{const _0x58b29c=_0x28747d;typeof _0x460843===_0x58b29c(0x13e)&&_0x460843();},_0x55d933);}function urlEncode(_0x1b0898={}){const _0x56524a=a4_0x4d6713,_0x31ba7b=[];for(const _0x1f1f4c in _0x1b0898){const _0x6fcedf=_0x1b0898[_0x1f1f4c];if(!_0x6fcedf)continue;isArray(_0x6fcedf)?_0x6fcedf[_0x56524a(0x129)](_0x4650bc=>{_0x31ba7b['push'](_0x1f1f4c+'='+_0x4650bc);}):_0x31ba7b['push'](_0x1f1f4c+'='+_0x6fcedf);}return _0x31ba7b[_0x56524a(0x12e)]('&');}function compareDates(_0x4a2e94,_0x2a969f){const _0x434b0b=a4_0x4d6713;_0x4a2e94=new Date(_0x4a2e94);!_0x2a969f?_0x2a969f=new Date():_0x2a969f=new Date(_0x2a969f);_0x4a2e94[_0x434b0b(0x131)](0x0,0x0,0x0,0x0),_0x2a969f[_0x434b0b(0x131)](0x0,0x0,0x0,0x0);var _0x418b95=_0x4a2e94[_0x434b0b(0x119)](),_0x20d4e2=_0x2a969f[_0x434b0b(0x119)]();if(_0x418b95<_0x20d4e2)return-0x1;else return _0x418b95>_0x20d4e2?0x1:0x0;}function getDaysBetween(_0x532c35,_0x92fbb3){const _0x44949e=a4_0x4d6713,_0x1f203a=new Date(_0x532c35),_0x1f13f2=new Date(_0x92fbb3),_0x25ee74=Math[_0x44949e(0x14f)](_0x1f203a[_0x44949e(0x119)]()-_0x1f13f2[_0x44949e(0x119)]()),_0x22b1af=Math[_0x44949e(0x134)](_0x25ee74/(0x3e8*0x3c*0x3c*0x18));return _0x22b1af+0x1;}function chineseNumeral(_0x45f8be){const _0x39ad93=a4_0x4d6713,_0x410205=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x475b25=['','拾','佰','仟'],_0x502d75=['','万','亿','兆'];let _0x53f01c=Math[_0x39ad93(0x134)](_0x45f8be),_0x56a61c=Math[_0x39ad93(0x11f)]((_0x45f8be-_0x53f01c)*0x64),_0xf57d71='';for(let _0x4dbbe1=0x0;_0x53f01c>0x0;_0x4dbbe1++){let _0x11c286='',_0x44934c=_0x53f01c%0x2710;_0x53f01c=Math[_0x39ad93(0x134)](_0x53f01c/0x2710);for(let _0x141caf=0x0;_0x44934c>0x0;_0x141caf++){let _0x16462b=_0x44934c%0xa;_0x11c286=(_0x16462b?_0x410205[_0x16462b]+_0x475b25[_0x141caf]:'')+_0x11c286,_0x44934c=Math[_0x39ad93(0x134)](_0x44934c/0xa);}_0xf57d71=_0x11c286+(_0x11c286?_0x502d75[_0x4dbbe1]:_0x502d75[_0x4dbbe1]&&!_0xf57d71[_0x39ad93(0x13b)]('零')?'零':'')+_0xf57d71;}_0xf57d71+=_0xf57d71?'元':'零元';if(_0x56a61c>0x0){let _0x27f4b0=Math[_0x39ad93(0x134)](_0x56a61c/0xa),_0x2b350f=_0x56a61c%0xa;_0xf57d71+=(_0x27f4b0?_0x410205[_0x27f4b0]+'角':'')+(_0x2b350f?_0x410205[_0x2b350f]+'分':'');}else _0xf57d71+='整';return _0xf57d71[_0x39ad93(0x124)](/零{2,}/g,'零')[_0x39ad93(0x124)](/零元/,'元');}function getMonthDate(_0xc6258c){const _0x3a3f6e=a4_0x4d6713;(!_0xc6258c||_0xc6258c['trim']()==='')&&(_0xc6258c=new Date()[_0x3a3f6e(0x13f)]()+'-'+(new Date()[_0x3a3f6e(0x12b)]()+0x1));let _0x68fdaf=[],[_0x4ee647,_0x2999b1]=_0xc6258c[_0x3a3f6e(0x142)]('-')[_0x3a3f6e(0x127)](Number),_0x2093b8=new Date(_0x4ee647,_0x2999b1,0x0),_0x341810=_0x2093b8[_0x3a3f6e(0x147)]();for(let _0x5e00e9=0x1;_0x5e00e9<=_0x341810;_0x5e00e9++){let _0xcd726e=_0x5e00e9<0xa?'0'+_0x5e00e9:''+_0x5e00e9,_0x250953=_0x2999b1<0xa?'0'+_0x2999b1:''+_0x2999b1;_0x68fdaf[_0x3a3f6e(0x133)]({'date':_0x4ee647+'-'+_0x250953+'-'+_0xcd726e,'disable':!![]});}return _0x68fdaf;}function getToday(_0x107049){const _0x1875e9=a4_0x4d6713;var _0x454e77=new Date(),_0x4f9804=String(_0x454e77[_0x1875e9(0x147)]())[_0x1875e9(0x12f)](0x2,'0'),_0x25c516=String(_0x454e77[_0x1875e9(0x12b)]()+0x1)[_0x1875e9(0x12f)](0x2,'0'),_0x533588=_0x454e77[_0x1875e9(0x13f)]();return _0x454e77=_0x533588+'-'+_0x25c516+'-'+_0x4f9804,_0x454e77;}function resetObject(_0x216733){const _0x21349d=a4_0x4d6713;let _0x195758=JSON[_0x21349d(0x123)](JSON['stringify'](_0x216733));for(const _0x288d1a in _0x195758){if(typeof _0x195758[_0x288d1a]===_0x21349d(0x137))_0x195758[_0x288d1a]=0x0;else{if(typeof _0x195758[_0x288d1a]==='boolean')_0x195758[_0x288d1a]=![];else{if(Array[_0x21349d(0x14e)](_0x195758[_0x288d1a]))_0x195758[_0x288d1a]=[];else typeof _0x195758[_0x288d1a]===_0x21349d(0x117)&&_0x195758[_0x288d1a]!==null?resetObject(_0x195758[_0x288d1a]):_0x195758[_0x288d1a]='';}}}return _0x195758;}function a4_0x285a(_0x2f0006,_0x288fe4){const _0x3273d7=a4_0x3273();return a4_0x285a=function(_0x285ae8,_0x174e92){_0x285ae8=_0x285ae8-0x116;let _0x5541ed=_0x3273d7[_0x285ae8];return _0x5541ed;},a4_0x285a(_0x2f0006,_0x288fe4);}function preciseOperation(_0x2b1210,_0x9ed985,_0x1dfefc,_0x1d675b=0xf4240){const _0x2e1b96=a4_0x4d6713;if(isNaN(_0x2b1210)||isNaN(_0x9ed985))return NaN;if(!isFinite(_0x2b1210)||!isFinite(_0x9ed985))return NaN;let _0x14da26=BigInt(Math[_0x2e1b96(0x11f)](_0x2b1210*_0x1d675b)),_0x2ce4b8=BigInt(Math[_0x2e1b96(0x11f)](_0x9ed985*_0x1d675b)),_0x5a9bbe;switch(_0x1dfefc){case 0x1:_0x5a9bbe=_0x14da26+_0x2ce4b8;break;case 0x2:_0x5a9bbe=_0x14da26-_0x2ce4b8;break;case 0x3:_0x5a9bbe=_0x14da26*_0x2ce4b8;break;case 0x4:if(_0x2ce4b8===0x0n)throw new Error(_0x2e1b96(0x148));_0x5a9bbe=_0x14da26/_0x2ce4b8;break;default:throw new Error(_0x2e1b96(0x12a));}return Number(_0x5a9bbe)/_0x1d675b;}function preciseSum(_0x2b24c6){const _0x302bb4=a4_0x4d6713;let _0x1f5428=0x0;for(const _0x48e575 of _0x2b24c6){let _0x1dec94=0x0;if(typeof _0x48e575===_0x302bb4(0x144)){const _0x467a77=parseFloat(_0x48e575);!isNaN(_0x467a77)&&(_0x1dec94=_0x467a77);}else typeof _0x48e575===_0x302bb4(0x137)&&(_0x1dec94=_0x48e575);_0x1f5428=preciseOperation(_0x1f5428,_0x1dec94,0x1);}return _0x1f5428;}function getRelativeDate(_0x33985c,_0x124569=0x0){const _0x1aba15=a4_0x4d6713,_0x298ce0=new Date(_0x33985c);_0x298ce0[_0x1aba15(0x13d)](_0x298ce0['getDate']()+_0x124569);const _0x1c07ea=_0x298ce0[_0x1aba15(0x13f)](),_0x4a6849=(_0x298ce0[_0x1aba15(0x12b)]()+0x1)['toString']()[_0x1aba15(0x12f)](0x2,'0'),_0x366dd1=_0x298ce0[_0x1aba15(0x147)]()[_0x1aba15(0x12d)]()[_0x1aba15(0x12f)](0x2,'0');return _0x1c07ea+'-'+_0x4a6849+'-'+_0x366dd1;}function validateFields(_0x44105d,_0x2f5dd3,_0x52f35b=''){for(let _0x4d02a8 of _0x2f5dd3){if(_0x44105d[_0x4d02a8]===_0x52f35b)return!![];}return![];}function mergeObjects(_0x477392,_0x18b205){const _0xa85a6a=a4_0x4d6713;for(const _0x2640ee in _0x477392){_0x18b205[_0xa85a6a(0x139)](_0x2640ee)&&(_0x477392[_0x2640ee]=_0x18b205[_0x2640ee]);}return _0x477392;}const formatToDecimal=(_0x5efffc,_0x2d4dae=0x2)=>{const _0x39af52=a4_0x4d6713;if(isNaN(_0x2d4dae)||_0x2d4dae<0x0)return _0x5efffc;let _0x3576b8=Number(_0x5efffc);if(!isFinite(_0x3576b8))return _0x5efffc;return _0x2d4dae=Math['max'](0x0,Math[_0x39af52(0x134)](_0x2d4dae)),_0x3576b8[_0x39af52(0x130)](_0x2d4dae);};function findKeysEndingWith(_0x54554c,_0x1230fe=a4_0x4d6713(0x128)){const _0x4c8436=a4_0x4d6713;let _0x5f19ff=[];for(var _0x7a042c in _0x54554c){if(_0x54554c[_0x4c8436(0x139)](_0x7a042c)){if(_0x7a042c[_0x4c8436(0x11a)](_0x1230fe))_0x5f19ff[_0x4c8436(0x133)](_0x7a042c);}}return _0x5f19ff;}function guid(_0x97446e=0x20,_0x10d74c=!![],_0x53a45a=null){const _0x6ccfd0=a4_0x4d6713,_0x250ab1=_0x6ccfd0(0x146)[_0x6ccfd0(0x142)](''),_0x46cb61=[];_0x53a45a=_0x53a45a||_0x250ab1[_0x6ccfd0(0x118)];if(_0x97446e){for(let _0x37af29=0x0;_0x37af29<_0x97446e;_0x37af29++)_0x46cb61[_0x37af29]=_0x250ab1[0x0|Math['random']()*_0x53a45a];}else{let _0x39c22a;_0x46cb61[0x8]=_0x46cb61[0xd]=_0x46cb61[0x12]=_0x46cb61[0x17]='-',_0x46cb61[0xe]='4';for(let _0x42436e=0x0;_0x42436e<0x24;_0x42436e++){!_0x46cb61[_0x42436e]&&(_0x39c22a=0x0|Math['random']()*0x10,_0x46cb61[_0x42436e]=_0x250ab1[_0x42436e==0x13?_0x39c22a&0x3|0x8:_0x39c22a]);}}if(_0x10d74c)return _0x46cb61['shift'](),'u'+_0x46cb61['join']('');return _0x46cb61[_0x6ccfd0(0x12e)]('');}function trim(_0x348822,_0x325284='both'){const _0x57bb66=a4_0x4d6713;_0x348822=String(_0x348822);if(_0x325284==_0x57bb66(0x143))return _0x348822[_0x57bb66(0x124)](/^\s+|\s+$/g,'');if(_0x325284=='left')return _0x348822[_0x57bb66(0x124)](/^\s*/,'');if(_0x325284==_0x57bb66(0x138))return _0x348822[_0x57bb66(0x124)](/(\s*$)/g,'');if(_0x325284=='all')return _0x348822['replace'](/\s+/g,'');return _0x348822;}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,'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.33",
3
+ "version": "1.0.35",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "exports": {