yunlin 1.0.29 → 1.0.30

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/func.js CHANGED
@@ -1 +1 @@
1
- function a0_0x269e(){const _0x709b04=['map','adultnum','strLx','baseprice','includes','vip','tax','7fwnqeR','childprice','adult','附加行程','1329304gvxRbf','num','totaltax','tip','service','elder','unitprice','優惠券','length','airtax','people','base','other','會員減免','nRs','insure','\x20*\x20','tipuser','遊客優惠','其他費用','list','rylx','tipday','childnum','兒童[占床]','basechildprice','price','fJcbzlsjUnit','424vjEiDx','point','unit','filter','會員充值','51cujzvf','adultprice','baseadultprice','trip','totalprice','viprecharge','8946gYYUMz','push','機場稅','split','name','減免費用','10RUoarm','38930fCXuUk','promotion','vipdiscounted','money','3382WDgWck','coupon','人員費用','2100786SzFKnP','27604489UYdTuT','3649539pdSMdc','reduction','保險費用'];a0_0x269e=function(){return _0x709b04;};return a0_0x269e();}function a0_0xb2ee(_0x2bdf2b,_0x5d9262){const _0x269ecb=a0_0x269e();return a0_0xb2ee=function(_0xb2eec4,_0x908d9d){_0xb2eec4=_0xb2eec4-0xb4;let _0x2bfb36=_0x269ecb[_0xb2eec4];return _0x2bfb36;},a0_0xb2ee(_0x2bdf2b,_0x5d9262);}const a0_0x50b3b5=a0_0xb2ee;(function(_0x3c6840,_0x40081b){const _0x3c0acd=a0_0xb2ee,_0x1cf0e1=_0x3c6840();while(!![]){try{const _0x528a05=parseInt(_0x3c0acd(0xd0))/0x1*(-parseInt(_0x3c0acd(0xe1))/0x2)+-parseInt(_0x3c0acd(0xe6))/0x3+-parseInt(_0x3c0acd(0xf4))/0x4*(parseInt(_0x3c0acd(0xdc))/0x5)+parseInt(_0x3c0acd(0xe4))/0x6*(parseInt(_0x3c0acd(0xf0))/0x7)+-parseInt(_0x3c0acd(0xcb))/0x8*(-parseInt(_0x3c0acd(0xd6))/0x9)+-parseInt(_0x3c0acd(0xdd))/0xa+parseInt(_0x3c0acd(0xe5))/0xb;if(_0x528a05===_0x40081b)break;else _0x1cf0e1['push'](_0x1cf0e1['shift']());}catch(_0x522bcc){_0x1cf0e1['push'](_0x1cf0e1['shift']());}}}(a0_0x269e,0xe5bd5));function handleCosting(_0x203baa,_0x1344c1='',_0x2b646a='-',_0x3bb936={'people':a0_0x50b3b5(0xe3),'service':'附加服務','trip':a0_0x50b3b5(0xf3),'other':a0_0x50b3b5(0xc2),'reduction':a0_0x50b3b5(0xdb),'totalprice':'總計','airtax':a0_0x50b3b5(0xd8)},_0x3a87ae={'adult':'成人','child':'兒童','childusebed':a0_0x50b3b5(0xc7),'infant':'嬰兒','half':'拼房','tip':'小費','elder':a0_0x50b3b5(0xc1),'vip':a0_0x50b3b5(0xbc),'promotion':'促銷','insure':a0_0x50b3b5(0xe8),'coupon':a0_0x50b3b5(0xb6),'point':'積分','tax':'稅金','viprecharge':a0_0x50b3b5(0xcf),'r':'人','t':'天'}){const _0x5d2f5e=a0_0x50b3b5;let _0x2f5e08=[];const _0x48351d=_0x5d2f5e(0xbf),_0x32b2a9=_0x203baa[_0x5d2f5e(0xce)](_0x215d50=>_0x215d50[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xba));if(_0x32b2a9[_0x5d2f5e(0xb7)]){let _0x9e5f14={'title':_0x3bb936[_0x5d2f5e(0xb9)],'type':_0x5d2f5e(0xba),'list':[]};_0x32b2a9['map'](_0xe68038=>{const _0x3ff6a7=_0x5d2f5e;_0x9e5f14[_0x3ff6a7(0xc3)][_0x3ff6a7(0xd7)]({'title':_0x3a87ae[_0xe68038['strJgbm']],'info':_0x1344c1+_0xe68038['fLsjUnit']+_0x48351d+_0xe68038[_0x3ff6a7(0xbd)],'nRs':_0xe68038[_0x3ff6a7(0xbd)],'unit':_0xe68038['fLsjUnit'],'cb':_0xe68038[_0x3ff6a7(0xca)],'type':_0x3ff6a7(0xba)});}),_0x2f5e08['push'](_0x9e5f14);}const _0xbf36cb=_0x203baa['filter'](_0x29075d=>_0x29075d[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xf8));if(_0xbf36cb['length']){let _0x13779a={'title':_0x3bb936[_0x5d2f5e(0xf8)],'type':_0x5d2f5e(0xf8),'list':[]};_0xbf36cb['map'](_0x428069=>{const _0x3b1aff=_0x5d2f5e;_0x13779a[_0x3b1aff(0xc3)][_0x3b1aff(0xd7)]({'title':_0x428069['name']+('['+_0x428069['itemname']+']'),'info':_0x1344c1+_0x428069[_0x3b1aff(0xb5)]+_0x48351d+_0x428069[_0x3b1aff(0xf5)],'nRs':_0x428069['num'],'unit':_0x428069[_0x3b1aff(0xb5)],'cb':_0x428069[_0x3b1aff(0xec)],'type':_0x3b1aff(0xf8)});}),_0x2f5e08['push'](_0x13779a);}const _0xf6999b=_0x203baa[_0x5d2f5e(0xce)](_0x5e2e72=>_0x5e2e72['strLx']=='trip');if(_0xf6999b[_0x5d2f5e(0xb7)]){let _0x2d3260={'title':_0x3bb936['trip'],'type':_0x5d2f5e(0xd3),'list':[]};_0xf6999b[_0x5d2f5e(0xe9)](_0x3996a1=>{const _0x3fb34c=_0x5d2f5e;_0x3996a1[_0x3fb34c(0xea)]!='0'&&_0x2d3260[_0x3fb34c(0xc3)]['push']({'title':_0x3996a1['name']+('['+_0x3a87ae[_0x3fb34c(0xf2)]+']'),'info':_0x1344c1+_0x3996a1['adultprice']+_0x48351d+_0x3996a1[_0x3fb34c(0xea)],'nRs':_0x3996a1[_0x3fb34c(0xea)],'unit':_0x3996a1[_0x3fb34c(0xd1)],'cb':_0x3996a1[_0x3fb34c(0xd2)],'type':_0x3fb34c(0xd3)}),_0x3996a1[_0x3fb34c(0xc6)]!='0'&&_0x2d3260[_0x3fb34c(0xc3)][_0x3fb34c(0xd7)]({'title':_0x3996a1[_0x3fb34c(0xda)]+('['+_0x3a87ae['child']+']'),'info':_0x1344c1+_0x3996a1['childprice']+_0x48351d+_0x3996a1['childnum'],'nRs':_0x3996a1[_0x3fb34c(0xc6)],'unit':_0x3996a1[_0x3fb34c(0xf1)],'cb':_0x3996a1[_0x3fb34c(0xc8)],'type':_0x3fb34c(0xd3)});}),_0x2f5e08[_0x5d2f5e(0xd7)](_0x2d3260);}let _0x2c7e20=[];const _0x5e1220=_0x203baa[_0x5d2f5e(0xce)](_0x4944ea=>_0x4944ea[_0x5d2f5e(0xeb)]=='elder');_0x5e1220[_0x5d2f5e(0xb7)]&&_0x5e1220[_0x5d2f5e(0xe9)](_0x1bd2fd=>{const _0xf13721=_0x5d2f5e,_0x326286=_0x1bd2fd[_0xf13721(0xda)][_0xf13721(0xd9)]('|')||[''];_0x2c7e20[_0xf13721(0xd7)]({'title':_0x3a87ae[_0xf13721(0xb4)]+('['+_0x326286[0x0]+']'),'info':_0x1344c1+_0x2b646a+_0x1bd2fd[_0xf13721(0xe0)],'unit':_0x1bd2fd[_0xf13721(0xe0)],'cb':_0x1bd2fd[_0xf13721(0xe0)],'type':_0xf13721(0xb4)});});const _0x2dea66=_0x203baa[_0x5d2f5e(0xce)](_0x468c0c=>_0x468c0c[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xdf));_0x2dea66[_0x5d2f5e(0xb7)]&&_0x2dea66['map'](_0x453b81=>{const _0x14b13e=_0x5d2f5e;_0x2c7e20['push']({'title':_0x3a87ae[_0x14b13e(0xee)]+('['+_0x453b81[_0x14b13e(0xda)]+']'),'info':_0x1344c1+_0x2b646a+_0x453b81['money'],'unit':_0x453b81['money'],'cb':_0x453b81[_0x14b13e(0xe0)],'type':_0x14b13e(0xee)});});const _0x2d0b83=_0x203baa[_0x5d2f5e(0xce)](_0x3e56d8=>_0x3e56d8['strLx']==_0x5d2f5e(0xde));_0x2d0b83[_0x5d2f5e(0xb7)]&&_0x2d0b83['map'](_0x230a3d=>{const _0x432496=_0x5d2f5e;_0x2c7e20[_0x432496(0xd7)]({'title':_0x3a87ae[_0x432496(0xde)],'info':_0x1344c1+_0x2b646a+_0x230a3d[_0x432496(0xe0)],'unit':_0x230a3d[_0x432496(0xe0)],'cb':_0x230a3d['money'],'type':_0x432496(0xde)});});_0x2c7e20[_0x5d2f5e(0xb7)]&&_0x2f5e08['push']({'title':_0x3bb936[_0x5d2f5e(0xe7)],'type':_0x5d2f5e(0xe7),'list':_0x2c7e20});const _0x2fe1b4=_0x203baa[_0x5d2f5e(0xce)](_0x13dc1a=>_0x13dc1a['strLx']=='airtax');if(_0x2fe1b4[_0x5d2f5e(0xb7)]){let _0x234351={'title':_0x3bb936[_0x5d2f5e(0xb8)],'type':_0x5d2f5e(0xb8),'list':[]};_0x2fe1b4[_0x5d2f5e(0xe9)](_0x5736f6=>{const _0x1ff27=_0x5d2f5e;_0x234351['list'][_0x1ff27(0xd7)]({'title':_0x3a87ae[_0x5736f6[_0x1ff27(0xc4)]],'info':_0x1344c1+_0x5736f6[_0x1ff27(0xb5)]+_0x48351d+_0x5736f6['sl'],'nRs':_0x5736f6['sl'],'unit':_0x5736f6[_0x1ff27(0xb5)],'cb':_0x5736f6['unitpricewb'],'type':_0x5736f6[_0x1ff27(0xc4)]});}),_0x2f5e08[_0x5d2f5e(0xd7)](_0x234351);}const _0xe7cac0=[_0x5d2f5e(0xba),_0x5d2f5e(0xf8),'trip',_0x5d2f5e(0xb4),'vipdiscounted',_0x5d2f5e(0xde),'airtax'],_0x3013d9=_0x203baa[_0x5d2f5e(0xce)](_0x28b071=>!_0xe7cac0[_0x5d2f5e(0xed)](_0x28b071[_0x5d2f5e(0xeb)]));let _0x2d1c18={'title':_0x3bb936[_0x5d2f5e(0xbb)],'type':_0x5d2f5e(0xbb),'list':[]};for(var _0x428208=0x0;_0x428208<_0x3013d9['length'];_0x428208++){const _0x482415=_0x3013d9[_0x428208];_0x482415[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xd5)&&_0x2d1c18['list'][_0x5d2f5e(0xd7)]({'title':_0x3a87ae[_0x5d2f5e(0xd5)]+('['+_0x482415[_0x5d2f5e(0xda)]+']'),'info':_0x1344c1+_0x482415['money'],'unit':_0x482415[_0x5d2f5e(0xe0)],'type':_0x482415[_0x5d2f5e(0xeb)]}),_0x482415[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xbe)&&_0x2d1c18[_0x5d2f5e(0xc3)]['push']({'title':_0x3a87ae[_0x5d2f5e(0xbe)]+('['+_0x482415[_0x5d2f5e(0xda)]+']'),'info':_0x1344c1+_0x482415['unit']+_0x48351d+_0x482415['users']+_0x3a87ae['r'],'nRs':_0x482415['users'],'unit':_0x482415['unit'],'cb':_0x482415[_0x5d2f5e(0xcd)],'type':_0x5d2f5e(0xbe)}),(_0x482415[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xe2)||_0x482415[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xcc))&&_0x2d1c18[_0x5d2f5e(0xc3)][_0x5d2f5e(0xd7)]({'title':_0x3a87ae[_0x482415[_0x5d2f5e(0xeb)]],'info':_0x1344c1+_0x2b646a+_0x482415[_0x5d2f5e(0xe0)],'unit':_0x482415[_0x5d2f5e(0xe0)],'type':_0x482415[_0x5d2f5e(0xeb)]}),_0x482415[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xf7)&&_0x2d1c18[_0x5d2f5e(0xc3)][_0x5d2f5e(0xd7)]({'title':_0x3a87ae[_0x482415['strLx']],'info':_0x1344c1+_0x482415[_0x5d2f5e(0xf7)]+_0x48351d+_0x482415['tipuser']+_0x3a87ae['r']+_0x48351d+_0x482415[_0x5d2f5e(0xc5)]+_0x3a87ae['t'],'nRs':_0x482415[_0x5d2f5e(0xc0)],'count':_0x482415[_0x5d2f5e(0xc5)],'unit':_0x482415['tip'],'type':_0x482415[_0x5d2f5e(0xeb)]}),_0x482415[_0x5d2f5e(0xeb)]==_0x5d2f5e(0xef)&&_0x2d1c18['list'][_0x5d2f5e(0xd7)]({'title':_0x3a87ae[_0x482415[_0x5d2f5e(0xeb)]],'info':_0x1344c1+_0x482415[_0x5d2f5e(0xf6)],'unit':_0x482415['totaltax'],'type':_0x482415['strLx']});}_0x2d1c18[_0x5d2f5e(0xc3)][_0x5d2f5e(0xb7)]&&_0x2f5e08[_0x5d2f5e(0xd7)](_0x2d1c18);const _0x1049bc=_0x203baa['filter'](_0x35e7a1=>_0x35e7a1[_0x5d2f5e(0xeb)]=='totalprice');return _0x1049bc[_0x5d2f5e(0xb7)]&&_0x2f5e08[_0x5d2f5e(0xd7)]({'title':_0x3bb936[_0x5d2f5e(0xd4)],'type':'totalprice','list':[{'title':_0x3bb936[_0x5d2f5e(0xd4)],'info':_0x1344c1+_0x1049bc[0x0][_0x5d2f5e(0xc9)]}]}),_0x2f5e08;}export default{'handleCosting':handleCosting};
1
+ const a0_0x1b3cfe=a0_0x21c1;(function(_0x4f69fa,_0x1b9f33){const _0x2a9a31=a0_0x21c1,_0x53e7a3=_0x4f69fa();while(!![]){try{const _0x4fd22c=parseInt(_0x2a9a31(0xd0))/0x1+parseInt(_0x2a9a31(0xd9))/0x2+-parseInt(_0x2a9a31(0xf7))/0x3+parseInt(_0x2a9a31(0xe5))/0x4+-parseInt(_0x2a9a31(0x101))/0x5*(-parseInt(_0x2a9a31(0x103))/0x6)+-parseInt(_0x2a9a31(0xd6))/0x7*(-parseInt(_0x2a9a31(0xef))/0x8)+-parseInt(_0x2a9a31(0xee))/0x9;if(_0x4fd22c===_0x1b9f33)break;else _0x53e7a3['push'](_0x53e7a3['shift']());}catch(_0x2303d1){_0x53e7a3['push'](_0x53e7a3['shift']());}}}(a0_0x1579,0xc8011));function a0_0x1579(){const _0x4f7a56=['tipuser','其他費用','unit','tip','childprice','service','filter','保險費用','basechildprice','insure','984196ojZGMZ','unitprice','strLx','viprecharge','兒童[占床]','附加行程','減免費用','baseprice','money','29528730AiLMAY','9832quxGKc','fJcbzlsjUnit','name','push','other','promotion','vipdiscounted','fLsjUnit','1086636MTVMQH','reduction','adultprice','price','point','itemname','vip','totaltax','map','人員費用','5pZcLPP','airtax','3041238NwfFGg','people','機場稅','nRs','list','trip','users','length','base','遊客優惠','unitpricewb','childnum','\x20*\x20','adultnum','1322686JouoVZ','rylx','num','child','totalprice','tipday','5509UKKhio','會員充值','優惠券','2839136odUVxW','elder'];a0_0x1579=function(){return _0x4f7a56;};return a0_0x1579();}function handleCosting(_0x5847c9,_0x4296f3='',_0x144553='-',_0x8a64c9={'people':a0_0x1b3cfe(0x100),'service':'附加服務','trip':a0_0x1b3cfe(0xea),'other':a0_0x1b3cfe(0xdc),'reduction':a0_0x1b3cfe(0xeb),'totalprice':'總計','airtax':a0_0x1b3cfe(0x105)},_0x167b5a={'adult':'成人','child':'兒童','childusebed':a0_0x1b3cfe(0xe9),'infant':'嬰兒','half':'拼房','tip':'小費','elder':a0_0x1b3cfe(0xcb),'vip':'會員減免','promotion':'促銷','insure':a0_0x1b3cfe(0xe2),'coupon':a0_0x1b3cfe(0xd8),'point':'積分','tax':'稅金','viprecharge':a0_0x1b3cfe(0xd7),'r':'人','t':'天'}){const _0x4660aa=a0_0x1b3cfe;let _0xcade4c=[];const _0x15cbb7=_0x4660aa(0xce),_0x4c4a98=_0x5847c9[_0x4660aa(0xe1)](_0x270f0b=>_0x270f0b[_0x4660aa(0xe7)]=='base');if(_0x4c4a98[_0x4660aa(0xc9)]){let _0x2382f1={'title':_0x8a64c9[_0x4660aa(0x104)],'type':_0x4660aa(0xca),'list':[]};_0x4c4a98[_0x4660aa(0xff)](_0x415671=>{const _0x43a654=_0x4660aa;_0x2382f1[_0x43a654(0x107)]['push']({'title':_0x167b5a[_0x415671['strJgbm']],'info':_0x4296f3+_0x415671['fLsjUnit']+_0x15cbb7+_0x415671[_0x43a654(0x106)],'nRs':_0x415671['nRs'],'unit':_0x415671[_0x43a654(0xf6)],'cb':_0x415671[_0x43a654(0xf0)],'type':_0x43a654(0xca)});}),_0xcade4c['push'](_0x2382f1);}const _0x2fa7ce=_0x5847c9[_0x4660aa(0xe1)](_0x3bc9e3=>_0x3bc9e3[_0x4660aa(0xe7)]=='service');if(_0x2fa7ce['length']){let _0x4d1cea={'title':_0x8a64c9['service'],'type':'service','list':[]};_0x2fa7ce[_0x4660aa(0xff)](_0x619e22=>{const _0x1b30c8=_0x4660aa;_0x4d1cea['list'][_0x1b30c8(0xf2)]({'title':_0x619e22[_0x1b30c8(0xf1)]+('['+_0x619e22[_0x1b30c8(0xfc)]+']'),'info':_0x4296f3+_0x619e22[_0x1b30c8(0xe6)]+_0x15cbb7+_0x619e22['num'],'nRs':_0x619e22[_0x1b30c8(0xd2)],'unit':_0x619e22[_0x1b30c8(0xe6)],'cb':_0x619e22[_0x1b30c8(0xec)],'type':_0x1b30c8(0xe0)});}),_0xcade4c['push'](_0x4d1cea);}const _0xf3818f=_0x5847c9[_0x4660aa(0xe1)](_0x5a37a5=>_0x5a37a5[_0x4660aa(0xe7)]==_0x4660aa(0x108));if(_0xf3818f['length']){let _0x416477={'title':_0x8a64c9[_0x4660aa(0x108)],'type':_0x4660aa(0x108),'list':[]};_0xf3818f[_0x4660aa(0xff)](_0x1faffd=>{const _0x15d172=_0x4660aa;_0x1faffd[_0x15d172(0xcf)]!='0'&&_0x416477[_0x15d172(0x107)]['push']({'title':_0x1faffd[_0x15d172(0xf1)]+('['+_0x167b5a['adult']+']'),'info':_0x4296f3+_0x1faffd[_0x15d172(0xf9)]+_0x15cbb7+_0x1faffd[_0x15d172(0xcf)],'nRs':_0x1faffd[_0x15d172(0xcf)],'unit':_0x1faffd['adultprice'],'cb':_0x1faffd['baseadultprice'],'type':_0x15d172(0x108)}),_0x1faffd[_0x15d172(0xcd)]!='0'&&_0x416477[_0x15d172(0x107)][_0x15d172(0xf2)]({'title':_0x1faffd[_0x15d172(0xf1)]+('['+_0x167b5a[_0x15d172(0xd3)]+']'),'info':_0x4296f3+_0x1faffd[_0x15d172(0xdf)]+_0x15cbb7+_0x1faffd[_0x15d172(0xcd)],'nRs':_0x1faffd['childnum'],'unit':_0x1faffd['childprice'],'cb':_0x1faffd[_0x15d172(0xe3)],'type':_0x15d172(0x108)});}),_0xcade4c[_0x4660aa(0xf2)](_0x416477);}let _0x48b3d2=[];const _0x1b55ab=_0x5847c9[_0x4660aa(0xe1)](_0x8e440d=>_0x8e440d[_0x4660aa(0xe7)]=='elder');_0x1b55ab[_0x4660aa(0xc9)]&&_0x1b55ab[_0x4660aa(0xff)](_0x4e0439=>{const _0x324941=_0x4660aa,_0x53e22e=_0x4e0439[_0x324941(0xf1)]['split']('|')||[''];_0x48b3d2[_0x324941(0xf2)]({'title':_0x167b5a[_0x324941(0xda)]+('['+_0x53e22e[0x0]+']'),'info':_0x4296f3+_0x144553+_0x4e0439[_0x324941(0xed)],'unit':_0x4e0439[_0x324941(0xed)],'cb':_0x4e0439[_0x324941(0xed)],'type':'elder'});});const _0x3ad8ec=_0x5847c9[_0x4660aa(0xe1)](_0x48dcf5=>_0x48dcf5['strLx']==_0x4660aa(0xf5));_0x3ad8ec[_0x4660aa(0xc9)]&&_0x3ad8ec[_0x4660aa(0xff)](_0x11d3d5=>{const _0x2af805=_0x4660aa;_0x48b3d2[_0x2af805(0xf2)]({'title':_0x167b5a[_0x2af805(0xfd)]+('['+_0x11d3d5[_0x2af805(0xf1)]+']'),'info':_0x4296f3+_0x144553+_0x11d3d5['money'],'unit':_0x11d3d5['money'],'cb':_0x11d3d5['money'],'type':'vip'});});const _0xbcadf1=_0x5847c9['filter'](_0x58f5d8=>_0x58f5d8[_0x4660aa(0xe7)]==_0x4660aa(0xf4));_0xbcadf1[_0x4660aa(0xc9)]&&_0xbcadf1['map'](_0x39d7c7=>{const _0x1fcc25=_0x4660aa;_0x48b3d2[_0x1fcc25(0xf2)]({'title':_0x167b5a['promotion'],'info':_0x4296f3+_0x144553+_0x39d7c7['money'],'unit':_0x39d7c7['money'],'cb':_0x39d7c7[_0x1fcc25(0xed)],'type':_0x1fcc25(0xf4)});});_0x48b3d2[_0x4660aa(0xc9)]&&_0xcade4c[_0x4660aa(0xf2)]({'title':_0x8a64c9[_0x4660aa(0xf8)],'type':_0x4660aa(0xf8),'list':_0x48b3d2});const _0x356fc2=_0x5847c9[_0x4660aa(0xe1)](_0x228fdc=>_0x228fdc[_0x4660aa(0xe7)]==_0x4660aa(0x102));if(_0x356fc2['length']){let _0xec2ac4={'title':_0x8a64c9[_0x4660aa(0x102)],'type':_0x4660aa(0x102),'list':[]};_0x356fc2[_0x4660aa(0xff)](_0x4b8b7b=>{const _0x3fe617=_0x4660aa;_0xec2ac4[_0x3fe617(0x107)][_0x3fe617(0xf2)]({'title':_0x167b5a[_0x4b8b7b['rylx']],'info':_0x4296f3+_0x4b8b7b[_0x3fe617(0xe6)]+_0x15cbb7+_0x4b8b7b['sl'],'nRs':_0x4b8b7b['sl'],'unit':_0x4b8b7b[_0x3fe617(0xe6)],'cb':_0x4b8b7b[_0x3fe617(0xcc)],'type':_0x4b8b7b[_0x3fe617(0xd1)]});}),_0xcade4c[_0x4660aa(0xf2)](_0xec2ac4);}const _0x23dbf3=[_0x4660aa(0xca),_0x4660aa(0xe0),_0x4660aa(0x108),_0x4660aa(0xda),_0x4660aa(0xf5),_0x4660aa(0xf4),_0x4660aa(0x102)],_0x266ded=_0x5847c9[_0x4660aa(0xe1)](_0x3ef3f4=>!_0x23dbf3['includes'](_0x3ef3f4[_0x4660aa(0xe7)]));let _0x4a7aa2={'title':_0x8a64c9[_0x4660aa(0xf3)],'type':'other','list':[]};for(var _0x21a39b=0x0;_0x21a39b<_0x266ded[_0x4660aa(0xc9)];_0x21a39b++){const _0x186f2b=_0x266ded[_0x21a39b];_0x186f2b[_0x4660aa(0xe7)]==_0x4660aa(0xe8)&&_0x4a7aa2[_0x4660aa(0x107)][_0x4660aa(0xf2)]({'title':_0x167b5a[_0x4660aa(0xe8)]+('['+_0x186f2b[_0x4660aa(0xf1)]+']'),'info':_0x4296f3+_0x186f2b[_0x4660aa(0xed)],'unit':_0x186f2b[_0x4660aa(0xed)],'type':_0x186f2b['strLx']}),_0x186f2b[_0x4660aa(0xe7)]==_0x4660aa(0xe4)&&_0x4a7aa2['list'][_0x4660aa(0xf2)]({'title':_0x167b5a[_0x4660aa(0xe4)]+('['+_0x186f2b[_0x4660aa(0xf1)]+']'),'info':_0x4296f3+_0x186f2b[_0x4660aa(0xdd)]+_0x15cbb7+_0x186f2b[_0x4660aa(0x109)]+_0x167b5a['r'],'nRs':_0x186f2b[_0x4660aa(0x109)],'unit':_0x186f2b[_0x4660aa(0xdd)],'cb':_0x186f2b[_0x4660aa(0xdd)],'type':_0x4660aa(0xe4)}),(_0x186f2b[_0x4660aa(0xe7)]=='coupon'||_0x186f2b[_0x4660aa(0xe7)]==_0x4660aa(0xfb))&&_0x4a7aa2[_0x4660aa(0x107)][_0x4660aa(0xf2)]({'title':_0x167b5a[_0x186f2b['strLx']],'info':_0x4296f3+_0x144553+_0x186f2b[_0x4660aa(0xed)],'unit':_0x186f2b[_0x4660aa(0xed)],'type':_0x186f2b[_0x4660aa(0xe7)]}),_0x186f2b[_0x4660aa(0xe7)]==_0x4660aa(0xde)&&_0x4a7aa2['list'][_0x4660aa(0xf2)]({'title':_0x167b5a[_0x186f2b[_0x4660aa(0xe7)]],'info':_0x4296f3+_0x186f2b[_0x4660aa(0xde)]+_0x15cbb7+_0x186f2b[_0x4660aa(0xdb)]+_0x167b5a['r']+_0x15cbb7+_0x186f2b[_0x4660aa(0xd5)]+_0x167b5a['t'],'nRs':_0x186f2b['tipuser'],'count':_0x186f2b[_0x4660aa(0xd5)],'unit':_0x186f2b[_0x4660aa(0xde)],'type':_0x186f2b[_0x4660aa(0xe7)]}),_0x186f2b[_0x4660aa(0xe7)]=='tax'&&_0x4a7aa2[_0x4660aa(0x107)][_0x4660aa(0xf2)]({'title':_0x167b5a[_0x186f2b['strLx']],'info':_0x4296f3+_0x186f2b[_0x4660aa(0xfe)],'unit':_0x186f2b['totaltax'],'type':_0x186f2b[_0x4660aa(0xe7)]});}_0x4a7aa2['list']['length']&&_0xcade4c[_0x4660aa(0xf2)](_0x4a7aa2);const _0x1c95c8=_0x5847c9[_0x4660aa(0xe1)](_0x3542f4=>_0x3542f4[_0x4660aa(0xe7)]==_0x4660aa(0xd4));return _0x1c95c8['length']&&_0xcade4c['push']({'title':_0x8a64c9[_0x4660aa(0xd4)],'type':'totalprice','list':[{'title':_0x8a64c9[_0x4660aa(0xd4)],'info':_0x4296f3+_0x1c95c8[0x0][_0x4660aa(0xfa)]}]}),_0xcade4c;}function a0_0x21c1(_0x8f09d3,_0x3fc339){const _0x1579b3=a0_0x1579();return a0_0x21c1=function(_0x21c1df,_0xa195a0){_0x21c1df=_0x21c1df-0xc9;let _0x25341e=_0x1579b3[_0x21c1df];return _0x25341e;},a0_0x21c1(_0x8f09d3,_0x3fc339);}export default{'handleCosting':handleCosting};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- function a1_0x2ee9(_0x450015,_0xaa5658){var _0x57f04b=a1_0x57f0();return a1_0x2ee9=function(_0x2ee98e,_0x17be28){_0x2ee98e=_0x2ee98e-0xf7;var _0xf01451=_0x57f04b[_0x2ee98e];return _0xf01451;},a1_0x2ee9(_0x450015,_0xaa5658);}(function(_0x268aa5,_0x3c437f){var _0x3abb38=a1_0x2ee9,_0x5f3e0e=_0x268aa5();while(!![]){try{var _0x490555=-parseInt(_0x3abb38(0xfb))/0x1*(parseInt(_0x3abb38(0xf8))/0x2)+parseInt(_0x3abb38(0xf9))/0x3+-parseInt(_0x3abb38(0xf7))/0x4*(-parseInt(_0x3abb38(0xff))/0x5)+-parseInt(_0x3abb38(0x100))/0x6*(-parseInt(_0x3abb38(0xfe))/0x7)+parseInt(_0x3abb38(0xfc))/0x8*(-parseInt(_0x3abb38(0xfa))/0x9)+parseInt(_0x3abb38(0x101))/0xa*(parseInt(_0x3abb38(0xfd))/0xb)+-parseInt(_0x3abb38(0x102))/0xc;if(_0x490555===_0x3c437f)break;else _0x5f3e0e['push'](_0x5f3e0e['shift']());}catch(_0x2eb8fa){_0x5f3e0e['push'](_0x5f3e0e['shift']());}}}(a1_0x57f0,0xa5573));import a1_0x157d82 from'./utils';function a1_0x57f0(){var _0x257274=['231749GQbLjg','5roGrKg','156oZxbxN','570OZEyzL','11958768GnivJv','4475796zOOIHC','2nEQEJv','2053275RxSWIU','3601359wJCljS','977635VZBcxx','8lzuPJC','74767JrpFKf'];a1_0x57f0=function(){return _0x257274;};return a1_0x57f0();}import a1_0x310122 from'./func';import a1_0x1fbdd0 from'./test';import a1_0x5f5967 from'./room';export default{'test':a1_0x1fbdd0,'utils':a1_0x157d82,'func':a1_0x310122,'room':a1_0x5f5967};
1
+ (function(_0x10c383,_0x175bd5){var _0x2feaec=a1_0x20bb,_0x5f38ea=_0x10c383();while(!![]){try{var _0x7f147e=parseInt(_0x2feaec(0x12d))/0x1+-parseInt(_0x2feaec(0x128))/0x2*(-parseInt(_0x2feaec(0x125))/0x3)+parseInt(_0x2feaec(0x123))/0x4*(parseInt(_0x2feaec(0x129))/0x5)+-parseInt(_0x2feaec(0x127))/0x6*(parseInt(_0x2feaec(0x12c))/0x7)+parseInt(_0x2feaec(0x122))/0x8*(-parseInt(_0x2feaec(0x124))/0x9)+-parseInt(_0x2feaec(0x126))/0xa+-parseInt(_0x2feaec(0x12a))/0xb*(parseInt(_0x2feaec(0x12b))/0xc);if(_0x7f147e===_0x175bd5)break;else _0x5f38ea['push'](_0x5f38ea['shift']());}catch(_0x146c3e){_0x5f38ea['push'](_0x5f38ea['shift']());}}}(a1_0x5a12,0xcc536));function a1_0x20bb(_0x437b97,_0x111150){var _0x5a1240=a1_0x5a12();return a1_0x20bb=function(_0x20bb08,_0x35351b){_0x20bb08=_0x20bb08-0x122;var _0x269285=_0x5a1240[_0x20bb08];return _0x269285;},a1_0x20bb(_0x437b97,_0x111150);}import a1_0x188e4d from'./utils';import a1_0x5a9d06 from'./func';function a1_0x5a12(){var _0x4de215=['9565836CTiAuo','16mOrUKi','2545480ImkbKc','11RYMjtI','12329808xqlFrk','7bTInoU','1524773dvASLC','16vqRnKO','12wkwtIx','2209041PHSvHO','620751JoxsyX','7577910EzKrnP'];a1_0x5a12=function(){return _0x4de215;};return a1_0x5a12();}import a1_0x41c944 from'./test';import a1_0x571caa from'./room';export default{'test':a1_0x41c944,'utils':a1_0x188e4d,'func':a1_0x5a9d06,'room':a1_0x571caa};
package/dist/room.js CHANGED
@@ -1 +1 @@
1
- function a2_0x36a5(){const _0x460ae8=['4605181IudNnA','max','strCode','isalotment','find','isArray','filter','infantnum','forEach','push','90JstYSJ','childrennum','half','some','1464CYaDFF','4440mlcWmm','931392ISnRGW','list','2708847tWFKMW','73879aNglEJ','282AHosDH','2157178krkojT','133930USJkSa','infant','child','adultnum','nMaxIn','length','map'];a2_0x36a5=function(){return _0x460ae8;};return a2_0x36a5();}(function(_0x15b398,_0x4787bf){const _0x8c9345=a2_0x4eba,_0xe9e023=_0x15b398();while(!![]){try{const _0xec41a6=-parseInt(_0x8c9345(0x201))/0x1+parseInt(_0x8c9345(0x203))/0x2+parseInt(_0x8c9345(0x1fc))/0x3*(parseInt(_0x8c9345(0x1fd))/0x4)+-parseInt(_0x8c9345(0x204))/0x5*(-parseInt(_0x8c9345(0x202))/0x6)+parseInt(_0x8c9345(0x1ee))/0x7+parseInt(_0x8c9345(0x1fe))/0x8+-parseInt(_0x8c9345(0x200))/0x9*(parseInt(_0x8c9345(0x1f8))/0xa);if(_0xec41a6===_0x4787bf)break;else _0xe9e023['push'](_0xe9e023['shift']());}catch(_0x279f93){_0xe9e023['push'](_0xe9e023['shift']());}}}(a2_0x36a5,0xd4988));function getRoomCount(_0x54015c,_0x362269){const _0x17481c=a2_0x4eba;!Array[_0x17481c(0x1f3)](_0x54015c)&&(_0x54015c=[_0x54015c]);let _0x510f17=[];return _0x54015c[_0x17481c(0x1f6)](_0x2572be=>{const _0x224885=_0x17481c;let _0x26291d=![];if(!_0x2572be[_0x224885(0x1f1)]){let _0x1dc697=_0x2572be[_0x224885(0x1ea)];(_0x2572be['childusebed']||!_0x362269[_0x224885(0x1e9)])&&(_0x1dc697+=_0x2572be[_0x224885(0x1f9)]);const _0x4a325b=_0x362269[_0x224885(0x1ff)][_0x224885(0x1f2)](_0x302d4d=>Number(_0x302d4d['strCode'])===_0x1dc697);if(!_0x4a325b)_0x26291d=!![];else{let _0x5738a1=_0x2572be['adultnum']+_0x2572be['childrennum']+_0x2572be[_0x224885(0x1f5)];_0x5738a1>_0x4a325b[_0x224885(0x1eb)]&&(_0x26291d=!![]);}}_0x510f17[_0x224885(0x1f7)](_0x26291d);}),Array[_0x17481c(0x1f3)](_0x54015c)&&_0x54015c[_0x17481c(0x1ec)]===0x1?_0x510f17[0x0]:_0x510f17;}function getRoomConfig(_0x1b7bf8){const _0x4bddd9=a2_0x4eba;let _0x272f6f=_0x1b7bf8[_0x4bddd9(0x1fb)](_0x19b94b=>_0x19b94b[_0x4bddd9(0x1f0)]==='childusebed'),_0x463586=_0x1b7bf8[_0x4bddd9(0x1fb)](_0x38e177=>_0x38e177[_0x4bddd9(0x1f0)]===_0x4bddd9(0x1fa));const _0x833ba6=_0x1b7bf8['some'](_0x290f8c=>_0x290f8c[_0x4bddd9(0x1f0)]===_0x4bddd9(0x205)),_0x3605b7=_0x1b7bf8[_0x4bddd9(0x1fb)](_0x39a120=>_0x39a120[_0x4bddd9(0x1f0)]===_0x4bddd9(0x1e9)),_0x48c674=_0x1b7bf8['map'](_0x58bbc9=>{const _0x5c54fd=_0x4bddd9;return{'strCode':_0x58bbc9[_0x5c54fd(0x1f0)],'nMaxIn':_0x58bbc9['nMaxIn']};});if(_0x463586){const _0x4311ec=_0x1b7bf8['some'](_0x3ba505=>_0x3ba505[_0x4bddd9(0x1f0)]=='2');_0x463586=_0x463586&&_0x4311ec;}if(_0x272f6f)_0x272f6f=_0x272f6f&&_0x3605b7;return{'childusebed':_0x272f6f,'half':_0x463586,'infant':_0x833ba6,'child':_0x3605b7,'list':_0x48c674};}function isRoomPiece(_0x25e588,_0x2488b4){const _0x5d9e16=a2_0x4eba;return _0x2488b4&&_0x25e588['adultnum']===0x1&&_0x25e588[_0x5d9e16(0x1f9)]===0x0&&_0x25e588[_0x5d9e16(0x1f5)]===0x0;}function getRoomItemRange(_0x1cffeb,_0x422427,_0x1a41b1={'child':'兒童','infant':'嬰兒'}){const _0x2651a2=a2_0x4eba;if(!_0x422427[_0x2651a2(0x1ec)])return{'list':[],'yelist':[]};const _0x2e64e4=Math[_0x2651a2(0x1ef)](..._0x422427[_0x2651a2(0x1ed)](_0xdaec1d=>Number(_0xdaec1d[_0x2651a2(0x1eb)]))),_0x2be40e=_0x2e64e4-_0x1cffeb[_0x2651a2(0x1ea)]-_0x1cffeb['infantnum'];let _0x2cf226=_0x2e64e4-_0x1cffeb['adultnum']-_0x1cffeb[_0x2651a2(0x1f9)];if(_0x2cf226>0x2)_0x2cf226=0x2;const _0x4566ee=(_0x1df90d,_0x1fc168)=>{const _0x18ad45=_0x2651a2,_0x318f81=[];_0x318f81[_0x18ad45(0x1f7)]({'value':0x0,'text':'0\x20'+_0x1fc168});for(let _0x2c9415=0x0;_0x2c9415<_0x1df90d;_0x2c9415++){_0x318f81['push']({'value':_0x2c9415+0x1,'text':_0x2c9415+0x1+'\x20'+_0x1fc168});}return _0x318f81;};return{'list':_0x4566ee(_0x2be40e,_0x1a41b1['child']),'yelist':_0x4566ee(_0x2cf226,_0x1a41b1[_0x2651a2(0x205)])};}function getAdultRange(_0x19fe72,_0x2f78d5='成人'){const _0x4219b2=a2_0x4eba;let _0x2ffc0b=Math[_0x4219b2(0x1ef)](..._0x19fe72['map'](_0x457f07=>Number(_0x457f07[_0x4219b2(0x1f0)]))[_0x4219b2(0x1f4)](_0x54f4b1=>!isNaN(_0x54f4b1)));if(!_0x2ffc0b)_0x2ffc0b=0x4;let _0x26cac3=[];for(var _0x46938d=0x1;_0x46938d<_0x2ffc0b+0x1;_0x46938d++){_0x26cac3[_0x4219b2(0x1f7)]({'value':_0x46938d,'text':_0x46938d+'\x20'+_0x2f78d5});}return _0x26cac3;}function a2_0x4eba(_0x527a5e,_0x41a692){const _0x36a52f=a2_0x36a5();return a2_0x4eba=function(_0x4ebaa2,_0x266e1b){_0x4ebaa2=_0x4ebaa2-0x1e9;let _0xdf51b1=_0x36a52f[_0x4ebaa2];return _0xdf51b1;},a2_0x4eba(_0x527a5e,_0x41a692);}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
1
+ function a2_0x246e(_0x139d78,_0x14ebd5){const _0x201ce7=a2_0x201c();return a2_0x246e=function(_0x246ecb,_0x475c55){_0x246ecb=_0x246ecb-0x1e7;let _0xec27e3=_0x201ce7[_0x246ecb];return _0xec27e3;},a2_0x246e(_0x139d78,_0x14ebd5);}(function(_0x1df78d,_0x9f254e){const _0x514a4b=a2_0x246e,_0x1c2e54=_0x1df78d();while(!![]){try{const _0x5f510f=parseInt(_0x514a4b(0x1fc))/0x1+parseInt(_0x514a4b(0x1ed))/0x2+-parseInt(_0x514a4b(0x1fd))/0x3+-parseInt(_0x514a4b(0x1f3))/0x4+-parseInt(_0x514a4b(0x1e8))/0x5+parseInt(_0x514a4b(0x1ee))/0x6*(-parseInt(_0x514a4b(0x1f1))/0x7)+parseInt(_0x514a4b(0x1fb))/0x8;if(_0x5f510f===_0x9f254e)break;else _0x1c2e54['push'](_0x1c2e54['shift']());}catch(_0x358c0f){_0x1c2e54['push'](_0x1c2e54['shift']());}}}(a2_0x201c,0x78141));function getRoomCount(_0x205a56,_0x39c8e0){const _0x1a2724=a2_0x246e,_0x243b4c=Array[_0x1a2724(0x1f8)](_0x205a56);if(!_0x243b4c)_0x205a56=[_0x205a56];let _0x54076c=[];return _0x205a56['forEach'](_0x1be2d5=>{const _0x295797=_0x1a2724;let _0x11ccdf=![];if(!_0x1be2d5[_0x295797(0x1f0)]){let _0x1a1098=_0x1be2d5['adultnum'];if(_0x1be2d5['childusebed']||!_0x39c8e0[_0x295797(0x1e9)])_0x1a1098+=_0x1be2d5[_0x295797(0x1f5)];const _0x441d85=_0x39c8e0[_0x295797(0x1f9)][_0x295797(0x1f2)](_0x563e4e=>Number(_0x563e4e[_0x295797(0x1ff)])===_0x1a1098);if(!_0x441d85)_0x11ccdf=!![];else{let _0x252eaa=_0x1be2d5[_0x295797(0x1ea)]+_0x1be2d5['childrennum']+_0x1be2d5[_0x295797(0x1ef)];_0x252eaa>_0x441d85['nMaxIn']&&(_0x11ccdf=!![]);}}_0x54076c['push'](_0x11ccdf);}),_0x243b4c?_0x54076c:_0x54076c[0x0];}function getRoomConfig(_0x45ed5f){const _0x407612=a2_0x246e;let _0x53b913=_0x45ed5f[_0x407612(0x200)](_0x5cb85e=>_0x5cb85e['strCode']===_0x407612(0x1eb)),_0x199fd5=_0x45ed5f[_0x407612(0x200)](_0x393505=>_0x393505[_0x407612(0x1ff)]===_0x407612(0x1f6));const _0x4d941b=_0x45ed5f[_0x407612(0x200)](_0x49ef55=>_0x49ef55[_0x407612(0x1ff)]===_0x407612(0x201)),_0x13b95=_0x45ed5f[_0x407612(0x200)](_0x1d4b15=>_0x1d4b15[_0x407612(0x1ff)]===_0x407612(0x1e9)),_0x5363a7=_0x45ed5f[_0x407612(0x1fe)](_0x476a62=>{const _0x42e258=_0x407612;return{'strCode':_0x476a62['strCode'],'nMaxIn':_0x476a62[_0x42e258(0x1fa)]};});if(_0x199fd5){const _0x513e8a=_0x45ed5f[_0x407612(0x200)](_0x58b220=>_0x58b220[_0x407612(0x1ff)]=='2');_0x199fd5=_0x199fd5&&_0x513e8a;}if(_0x53b913)_0x53b913=_0x53b913&&_0x13b95;return{'childusebed':_0x53b913,'half':_0x199fd5,'infant':_0x4d941b,'child':_0x13b95,'list':_0x5363a7};}function a2_0x201c(){const _0x39da99=['19211816PQUPAU','297469SYUeFY','2382333EqEzEI','map','strCode','some','infant','push','2215245eBdvAT','child','adultnum','childusebed','length','412276BDsjFP','2946wcKNBx','infantnum','isalotment','12740eGivMa','find','1129852JPKOVk','max','childrennum','half','filter','isArray','list','nMaxIn'];a2_0x201c=function(){return _0x39da99;};return a2_0x201c();}function isRoomPiece(_0x5a9390,_0x272ad3){const _0x314704=a2_0x246e;return _0x272ad3&&_0x5a9390['adultnum']===0x1&&_0x5a9390['childrennum']===0x0&&_0x5a9390[_0x314704(0x1ef)]===0x0;}function getRoomItemRange(_0x62c9df,_0x3e6773,_0x53007e={'child':'兒童','infant':'嬰兒'}){const _0x28bc35=a2_0x246e;if(!_0x3e6773[_0x28bc35(0x1ec)])return{'list':[],'yelist':[]};const _0x520351=Math[_0x28bc35(0x1f4)](..._0x3e6773[_0x28bc35(0x1fe)](_0x10dda3=>Number(_0x10dda3[_0x28bc35(0x1fa)]))),_0x1e5342=_0x520351-_0x62c9df[_0x28bc35(0x1ea)]-_0x62c9df[_0x28bc35(0x1ef)];let _0x1ce45c=_0x520351-_0x62c9df['adultnum']-_0x62c9df[_0x28bc35(0x1f5)];if(_0x1ce45c>0x2)_0x1ce45c=0x2;const _0x2e4776=(_0x276359,_0x5821ae)=>{const _0x10e40e=[];_0x10e40e['push']({'value':0x0,'text':'0\x20'+_0x5821ae});for(let _0x4633af=0x0;_0x4633af<_0x276359;_0x4633af++){_0x10e40e['push']({'value':_0x4633af+0x1,'text':_0x4633af+0x1+'\x20'+_0x5821ae});}return _0x10e40e;};return{'list':_0x2e4776(_0x1e5342,_0x53007e[_0x28bc35(0x1e9)]),'yelist':_0x2e4776(_0x1ce45c,_0x53007e['infant'])};}function getAdultRange(_0x532540,_0xfed35c='成人'){const _0x28e036=a2_0x246e;let _0x4659cd=Math[_0x28e036(0x1f4)](..._0x532540[_0x28e036(0x1fe)](_0x2309aa=>Number(_0x2309aa[_0x28e036(0x1ff)]))[_0x28e036(0x1f7)](_0x3d1cd6=>!isNaN(_0x3d1cd6)));if(!_0x4659cd)_0x4659cd=0x4;let _0x13b8f6=[];for(var _0x3630ac=0x1;_0x3630ac<_0x4659cd+0x1;_0x3630ac++){_0x13b8f6[_0x28e036(0x1e7)]({'value':_0x3630ac,'text':_0x3630ac+'\x20'+_0xfed35c});}return _0x13b8f6;}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount};
package/dist/test.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4b70fa,_0x5337ec){const _0x56d2a0=a3_0x4850,_0x37b983=_0x4b70fa();while(!![]){try{const _0x1f0e2d=parseInt(_0x56d2a0(0x9f))/0x1*(-parseInt(_0x56d2a0(0x95))/0x2)+parseInt(_0x56d2a0(0xa8))/0x3*(parseInt(_0x56d2a0(0xab))/0x4)+-parseInt(_0x56d2a0(0xa4))/0x5+parseInt(_0x56d2a0(0x99))/0x6*(parseInt(_0x56d2a0(0xa9))/0x7)+parseInt(_0x56d2a0(0x9e))/0x8*(-parseInt(_0x56d2a0(0x97))/0x9)+-parseInt(_0x56d2a0(0xb1))/0xa*(parseInt(_0x56d2a0(0xa7))/0xb)+parseInt(_0x56d2a0(0xaf))/0xc;if(_0x1f0e2d===_0x5337ec)break;else _0x37b983['push'](_0x37b983['shift']());}catch(_0xb49bfa){_0x37b983['push'](_0x37b983['shift']());}}}(a3_0x3b5d,0xa5858));function email(_0x1ef8d2){const _0xd913f1=a3_0x4850;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0xd913f1(0x9b)](_0x1ef8d2);}function mobile(_0x501654){return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/['test'](_0x501654);}function isValidPhoneNumber(_0x2952a7){const _0x205506=a3_0x4850;if(_0x2952a7[_0x205506(0x9d)]('-')){const [_0x1540c5,_0x831d5a]=_0x2952a7[_0x205506(0x9a)]('-');if(_0x1540c5==='86')return/^\d{11}$/[_0x205506(0x9b)](_0x831d5a)&&_0x831d5a['startsWith']('1');else return _0x1540c5===_0x205506(0xa3)?/^\d{8}$/[_0x205506(0x9b)](_0x831d5a)&&['5','6','9','8'][_0x205506(0x9d)](_0x831d5a[_0x205506(0xa5)](0x0)):/^\d+$/[_0x205506(0x9b)](_0x831d5a);}else return/^\d+$/['test'](_0x2952a7);}function url(_0x3fa306){const _0x398b6a=a3_0x4850;return/^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x398b6a(0x9b)](_0x3fa306);}function date(_0x5c1e8d){const _0x2a4920=a3_0x4850;if(!_0x5c1e8d)return![];if(number(_0x5c1e8d))_0x5c1e8d=+_0x5c1e8d;return!/Invalid|NaN/['test'](new Date(_0x5c1e8d)[_0x2a4920(0x90)]());}function dateISO(_0x161637){const _0x5e1d79=a3_0x4850;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x5e1d79(0x9b)](_0x161637);}function isNumber(_0x473678){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/['test'](_0x473678);}function isString(_0x2b7b42){const _0xa55e80=a3_0x4850;return typeof _0x2b7b42===_0xa55e80(0xb0);}function digits(_0x4ca52b){return/^\d+$/['test'](_0x4ca52b);}function a3_0x4850(_0x1ef413,_0x3968aa){const _0x3b5db3=a3_0x3b5d();return a3_0x4850=function(_0x485010,_0x76e164){_0x485010=_0x485010-0x8f;let _0xb74d8d=_0x3b5db3[_0x485010];return _0xb74d8d;},a3_0x4850(_0x1ef413,_0x3968aa);}function idCard(_0x190e51){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/['test'](_0x190e51);}function carNo(_0x46a865){const _0x31cad1=a3_0x4850,_0x1f32cf=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x4c5482=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x46a865[_0x31cad1(0x93)]===0x7)return _0x4c5482[_0x31cad1(0x9b)](_0x46a865);if(_0x46a865['length']===0x8)return _0x1f32cf[_0x31cad1(0x9b)](_0x46a865);return![];}function amount(_0x52a2d8){const _0x343bdc=a3_0x4850;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x343bdc(0x9b)](_0x52a2d8);}function chinese(_0x1ee65c){const _0x184b88=a3_0x4850,_0x5c3def=/^[\u4e00-\u9fa5]+$/gi;return _0x5c3def[_0x184b88(0x9b)](_0x1ee65c);}function letter(_0x4573fc){const _0x2808d7=a3_0x4850;return/^[a-zA-Z]*$/[_0x2808d7(0x9b)](_0x4573fc);}function enOrNum(_0x1183d7){const _0x16b745=a3_0x4850,_0x30a02a=/^[0-9a-zA-Z]*$/g;return _0x30a02a[_0x16b745(0x9b)](_0x1183d7);}function contains(_0x1eb10f,_0x880e1e){const _0x1a8f57=a3_0x4850;return _0x1eb10f[_0x1a8f57(0xaa)](_0x880e1e)>=0x0;}function range(_0x536edf,_0x84620b){return _0x536edf>=_0x84620b[0x0]&&_0x536edf<=_0x84620b[0x1];}function rangeLength(_0x21fea9,_0x10f0cd){const _0x5095ac=a3_0x4850;return _0x21fea9['length']>=_0x10f0cd[0x0]&&_0x21fea9[_0x5095ac(0x93)]<=_0x10f0cd[0x1];}function landline(_0xf5349c){const _0x28476c=a3_0x4850,_0x407c1e=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x407c1e[_0x28476c(0x9b)](_0xf5349c);}function empty(_0x1c457f){const _0x25e47b=a3_0x4850;switch(typeof _0x1c457f){case _0x25e47b(0x9c):return!![];case _0x25e47b(0xb0):if(_0x1c457f[_0x25e47b(0x8f)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x25e47b(0x93)]==0x0)return!![];break;case'boolean':if(!_0x1c457f)return!![];break;case _0x25e47b(0xac):if(_0x1c457f===0x0||isNaN(_0x1c457f))return!![];break;case'object':if(_0x1c457f===null||_0x1c457f[_0x25e47b(0x93)]===0x0)return!![];for(const _0x123456 in _0x1c457f){return![];}return!![];}return![];}function jsonString(_0x35e06e){const _0x227cb9=a3_0x4850;if(typeof _0x35e06e===_0x227cb9(0xb0))try{const _0x315335=JSON[_0x227cb9(0xa0)](_0x35e06e);if(typeof _0x315335===_0x227cb9(0x94)&&_0x315335)return!![];return![];}catch(_0x2f7d28){return![];}return![];}function array(_0xc14df8){const _0xe1ce7e=a3_0x4850;if(typeof Array['isArray']===_0xe1ce7e(0x98))return Array[_0xe1ce7e(0xa6)](_0xc14df8);return Object['prototype'][_0xe1ce7e(0x90)]['call'](_0xc14df8)===_0xe1ce7e(0xa1);}function object(_0x5607c7){const _0x3ab47f=a3_0x4850;return Object[_0x3ab47f(0xa2)][_0x3ab47f(0x90)]['call'](_0x5607c7)===_0x3ab47f(0x92);}function code(_0x3f63cf,_0x89e425=0x6){const _0x14df89=a3_0x4850;return new RegExp(_0x14df89(0x91)+_0x89e425+'}$')[_0x14df89(0x9b)](_0x3f63cf);}function func(_0x368e66){const _0x1d84aa=a3_0x4850;return typeof _0x368e66===_0x1d84aa(0x98);}function a3_0x3b5d(){const _0x5ce478=['852','3809470KrseNt','charAt','isArray','77VbAvgd','3813330eJmuEV','8869889FvYtGR','indexOf','4QGxxkc','number','call','[object\x20RegExp]','15817704bXFipC','string','1289390SSmDfL','replace','toString','^\x5cd{','[object\x20Object]','length','object','6RGNVXf','catch','10342791WBbPIF','function','6iZuhdL','split','test','undefined','includes','8dAZPKc','121579ZqUzoR','parse','[object\x20Array]','prototype'];a3_0x3b5d=function(){return _0x5ce478;};return a3_0x3b5d();}function promise(_0x5e0182){const _0x40496e=a3_0x4850;return object(_0x5e0182)&&func(_0x5e0182['then'])&&func(_0x5e0182[_0x40496e(0x96)]);}function image(_0x1fe4a7){const _0xd7442d=a3_0x4850,_0x3cd258=_0x1fe4a7[_0xd7442d(0x9a)]('?')[0x0],_0x1d4513=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x1d4513['test'](_0x3cd258);}function video(_0x2ed911){const _0x43b223=a3_0x4850,_0x332843=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x332843[_0x43b223(0x9b)](_0x2ed911);}function regExp(_0x50976c){const _0x50254d=a3_0x4850;return _0x50976c&&Object[_0x50254d(0xa2)][_0x50254d(0x90)][_0x50254d(0xad)](_0x50976c)===_0x50254d(0xae);}function isNumeric(_0x3843dc,_0x9fc33e=0x0){const _0x76dd5b=a3_0x4850;if(typeof _0x3843dc===_0x76dd5b(0xac))_0x3843dc=_0x3843dc['toString']();if(typeof _0x3843dc!==_0x76dd5b(0xb0))return![];switch(_0x9fc33e){case 0x1:return/^\d+(\.\d+)?$/[_0x76dd5b(0x9b)](_0x3843dc);case 0x2:return/^-\d+(\.\d+)?$/[_0x76dd5b(0x9b)](_0x3843dc);case 0x3:return/^-?\d+$/[_0x76dd5b(0x9b)](_0x3843dc);case 0x4:return/^\d+$/['test'](_0x3843dc);case 0x5:return/^-\d+$/[_0x76dd5b(0x9b)](_0x3843dc);default:return/^-?\d*\.?\d*$/['test'](_0x3843dc)&&!_0x3843dc['startsWith']('.')&&!_0x3843dc['includes']('--');}}export default{'isNumeric':isNumeric,'email':email,'mobile':mobile,'url':url,'date':date,'dateISO':dateISO,'isNumber':isNumber,'digits':digits,'idCard':idCard,'carNo':carNo,'amount':amount,'chinese':chinese,'letter':letter,'enOrNum':enOrNum,'contains':contains,'range':range,'rangeLength':rangeLength,'empty':empty,'jsonString':jsonString,'landline':landline,'object':object,'array':array,'code':code,'func':func,'promise':promise,'video':video,'image':image,'regExp':regExp,'isString':isString,'isValidPhoneNumber':isValidPhoneNumber};
1
+ (function(_0x31a2da,_0x3ce898){const _0x4128ac=a3_0x2efd,_0x29220b=_0x31a2da();while(!![]){try{const _0x3d40ed=-parseInt(_0x4128ac(0xa1))/0x1+parseInt(_0x4128ac(0x9a))/0x2*(parseInt(_0x4128ac(0xa3))/0x3)+parseInt(_0x4128ac(0x8b))/0x4*(-parseInt(_0x4128ac(0x99))/0x5)+parseInt(_0x4128ac(0x8e))/0x6*(-parseInt(_0x4128ac(0x8c))/0x7)+-parseInt(_0x4128ac(0x87))/0x8+-parseInt(_0x4128ac(0x86))/0x9*(parseInt(_0x4128ac(0xa2))/0xa)+parseInt(_0x4128ac(0x8a))/0xb;if(_0x3d40ed===_0x3ce898)break;else _0x29220b['push'](_0x29220b['shift']());}catch(_0x320a22){_0x29220b['push'](_0x29220b['shift']());}}}(a3_0x3a01,0x3fcdf));function email(_0x3b32b2){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/['test'](_0x3b32b2);}function mobile(_0x2d9ea7){const _0x131bed=a3_0x2efd;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x131bed(0x9b)](_0x2d9ea7);}function isValidPhoneNumber(_0x3b5709){const _0x26b71c=a3_0x2efd;if(_0x3b5709[_0x26b71c(0x90)]('-')){const [_0x26e4f5,_0x22b7f0]=_0x3b5709[_0x26b71c(0x98)]('-');if(_0x26e4f5==='86')return/^\d{11}$/[_0x26b71c(0x9b)](_0x22b7f0)&&_0x22b7f0[_0x26b71c(0xa6)]('1');else return _0x26e4f5===_0x26b71c(0x89)?/^\d{8}$/[_0x26b71c(0x9b)](_0x22b7f0)&&['5','6','9','8'][_0x26b71c(0x90)](_0x22b7f0[_0x26b71c(0x96)](0x0)):/^\d+$/[_0x26b71c(0x9b)](_0x22b7f0);}else return/^\d+$/[_0x26b71c(0x9b)](_0x3b5709);}function url(_0x2a8de2){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'](_0x2a8de2);}function a3_0x3a01(){const _0xcae0ef=['308410ODyqwN','789PjsrAN','undefined','call','startsWith','then','object','9xhHIug','2931416QRGAIX','number','852','10456237WxCiOR','178212hMFZcF','1209509YRZCfJ','length','12YwNZKQ','^\x5cd{','includes','catch','[object\x20Array]','toString','isArray','[object\x20RegExp]','charAt','function','split','10zLWrBs','3490cxNbTs','test','string','prototype','[object\x20Object]','boolean','parse','316211JbJsfQ'];a3_0x3a01=function(){return _0xcae0ef;};return a3_0x3a01();}function date(_0x422fc1){const _0xc5e61a=a3_0x2efd;if(!_0x422fc1)return![];if(number(_0x422fc1))_0x422fc1=+_0x422fc1;return!/Invalid|NaN/[_0xc5e61a(0x9b)](new Date(_0x422fc1)[_0xc5e61a(0x93)]());}function dateISO(_0x23a3a4){const _0x22af5f=a3_0x2efd;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x22af5f(0x9b)](_0x23a3a4);}function isNumber(_0x18b42f){const _0x47a764=a3_0x2efd;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x47a764(0x9b)](_0x18b42f);}function isString(_0x1bc845){const _0x3ff238=a3_0x2efd;return typeof _0x1bc845===_0x3ff238(0x9c);}function digits(_0x4ed8c6){const _0x23f877=a3_0x2efd;return/^\d+$/[_0x23f877(0x9b)](_0x4ed8c6);}function idCard(_0x3601c6){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'](_0x3601c6);}function carNo(_0x16c6c0){const _0xfa8812=a3_0x2efd,_0x5b3e6b=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x4e6ebb=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x16c6c0['length']===0x7)return _0x4e6ebb['test'](_0x16c6c0);if(_0x16c6c0[_0xfa8812(0x8d)]===0x8)return _0x5b3e6b[_0xfa8812(0x9b)](_0x16c6c0);return![];}function amount(_0x9f3f51){const _0x1f3ce3=a3_0x2efd;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x1f3ce3(0x9b)](_0x9f3f51);}function chinese(_0x45e86e){const _0x4cae48=/^[\u4e00-\u9fa5]+$/gi;return _0x4cae48['test'](_0x45e86e);}function letter(_0x30c1e1){const _0x3f4508=a3_0x2efd;return/^[a-zA-Z]*$/[_0x3f4508(0x9b)](_0x30c1e1);}function enOrNum(_0x2acd59){const _0xc637b9=a3_0x2efd,_0x37ca61=/^[0-9a-zA-Z]*$/g;return _0x37ca61[_0xc637b9(0x9b)](_0x2acd59);}function contains(_0x27f76a,_0x397f25){return _0x27f76a['indexOf'](_0x397f25)>=0x0;}function range(_0x184474,_0xc8e31){return _0x184474>=_0xc8e31[0x0]&&_0x184474<=_0xc8e31[0x1];}function rangeLength(_0x521d14,_0x3de914){const _0x43e54d=a3_0x2efd;return _0x521d14[_0x43e54d(0x8d)]>=_0x3de914[0x0]&&_0x521d14[_0x43e54d(0x8d)]<=_0x3de914[0x1];}function landline(_0x4497d7){const _0x52dd30=a3_0x2efd,_0x352a73=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x352a73[_0x52dd30(0x9b)](_0x4497d7);}function empty(_0x1e8ab6){const _0x5f42a9=a3_0x2efd;switch(typeof _0x1e8ab6){case _0x5f42a9(0xa4):return!![];case _0x5f42a9(0x9c):if(_0x1e8ab6['replace'](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x5f42a9(0x8d)]==0x0)return!![];break;case _0x5f42a9(0x9f):if(!_0x1e8ab6)return!![];break;case'number':if(_0x1e8ab6===0x0||isNaN(_0x1e8ab6))return!![];break;case _0x5f42a9(0xa8):if(_0x1e8ab6===null||_0x1e8ab6[_0x5f42a9(0x8d)]===0x0)return!![];for(const _0x2b48eb in _0x1e8ab6){return![];}return!![];}return![];}function a3_0x2efd(_0x2433ce,_0x545229){const _0x3a0155=a3_0x3a01();return a3_0x2efd=function(_0x2efde8,_0x2f149e){_0x2efde8=_0x2efde8-0x86;let _0x33753a=_0x3a0155[_0x2efde8];return _0x33753a;},a3_0x2efd(_0x2433ce,_0x545229);}function jsonString(_0x29883a){const _0x20fda0=a3_0x2efd;if(typeof _0x29883a===_0x20fda0(0x9c))try{const _0x26b32e=JSON[_0x20fda0(0xa0)](_0x29883a);if(typeof _0x26b32e==='object'&&_0x26b32e)return!![];return![];}catch(_0x3c13f5){return![];}return![];}function array(_0x5d17fc){const _0x127aad=a3_0x2efd;if(typeof Array['isArray']===_0x127aad(0x97))return Array[_0x127aad(0x94)](_0x5d17fc);return Object['prototype'][_0x127aad(0x93)][_0x127aad(0xa5)](_0x5d17fc)===_0x127aad(0x92);}function object(_0x4c2251){const _0x18f0c9=a3_0x2efd;return Object['prototype'][_0x18f0c9(0x93)]['call'](_0x4c2251)===_0x18f0c9(0x9e);}function code(_0x106c7a,_0x53d029=0x6){const _0x5a5338=a3_0x2efd;return new RegExp(_0x5a5338(0x8f)+_0x53d029+'}$')[_0x5a5338(0x9b)](_0x106c7a);}function func(_0x4f31c9){return typeof _0x4f31c9==='function';}function promise(_0xd920a0){const _0x452ec8=a3_0x2efd;return object(_0xd920a0)&&func(_0xd920a0[_0x452ec8(0xa7)])&&func(_0xd920a0[_0x452ec8(0x91)]);}function image(_0x59cfc8){const _0x15f5bf=a3_0x2efd,_0x2d099b=_0x59cfc8[_0x15f5bf(0x98)]('?')[0x0],_0x2e0043=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x2e0043[_0x15f5bf(0x9b)](_0x2d099b);}function video(_0x2f1f8c){const _0x99acac=a3_0x2efd,_0x45777e=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x45777e[_0x99acac(0x9b)](_0x2f1f8c);}function regExp(_0x46ddb6){const _0x382d8b=a3_0x2efd;return _0x46ddb6&&Object[_0x382d8b(0x9d)]['toString']['call'](_0x46ddb6)===_0x382d8b(0x95);}function isNumeric(_0x1f9313,_0x2258d9=0x0){const _0x30b84f=a3_0x2efd;if(typeof _0x1f9313===_0x30b84f(0x88))_0x1f9313=_0x1f9313[_0x30b84f(0x93)]();if(typeof _0x1f9313!==_0x30b84f(0x9c))return![];switch(_0x2258d9){case 0x1:return/^\d+(\.\d+)?$/[_0x30b84f(0x9b)](_0x1f9313);case 0x2:return/^-\d+(\.\d+)?$/['test'](_0x1f9313);case 0x3:return/^-?\d+$/[_0x30b84f(0x9b)](_0x1f9313);case 0x4:return/^\d+$/[_0x30b84f(0x9b)](_0x1f9313);case 0x5:return/^-\d+$/['test'](_0x1f9313);default:return/^-?\d*\.?\d*$/['test'](_0x1f9313)&&!_0x1f9313[_0x30b84f(0xa6)]('.')&&!_0x1f9313[_0x30b84f(0x90)]('--');}}export default{'isNumeric':isNumeric,'email':email,'mobile':mobile,'url':url,'date':date,'dateISO':dateISO,'isNumber':isNumber,'digits':digits,'idCard':idCard,'carNo':carNo,'amount':amount,'chinese':chinese,'letter':letter,'enOrNum':enOrNum,'contains':contains,'range':range,'rangeLength':rangeLength,'empty':empty,'jsonString':jsonString,'landline':landline,'object':object,'array':array,'code':code,'func':func,'promise':promise,'video':video,'image':image,'regExp':regExp,'isString':isString,'isValidPhoneNumber':isValidPhoneNumber};
package/dist/utils.js CHANGED
@@ -1 +1 @@
1
- const a4_0x34d13b=a4_0x36cb;function a4_0x36cb(_0x5d46f9,_0x2c0376){const _0x1d80e2=a4_0x1d80();return a4_0x36cb=function(_0x36cbff,_0x5a29c3){_0x36cbff=_0x36cbff-0x108;let _0x1b0268=_0x1d80e2[_0x36cbff];return _0x1b0268;},a4_0x36cb(_0x5d46f9,_0x2c0376);}function a4_0x1d80(){const _0x57879d=['getMonth','12039oqBTwN','setHours','substring','prototype','round','string','includes','379480zZtcuQ','call','setDate','value','hasOwnProperty','2373TDkodb','push','replace','1880188LmcoMY','toString','trim','parse','join','fjbh','error','surname','6XopkxI','object','12576tXaFTG','match','split','number','getTime','stringify','find','length','14LtKxUd','24860tXHigT','getDate','getFullYear','function','2425851abOQjZ','除数不能为0','padStart','code','floor','slice','20bxNPyB','390YOSyhZ','isArray','givenName','map','2342875KBJspk'];a4_0x1d80=function(){return _0x57879d;};return a4_0x1d80();}(function(_0x47e7df,_0x1bfaa3){const _0x3b639f=a4_0x36cb,_0x5f26e7=_0x47e7df();while(!![]){try{const _0x3bb970=-parseInt(_0x3b639f(0x12e))/0x1*(parseInt(_0x3b639f(0x11c))/0x2)+parseInt(_0x3b639f(0x122))/0x3+-parseInt(_0x3b639f(0x131))/0x4+parseInt(_0x3b639f(0x120))/0x5*(-parseInt(_0x3b639f(0x139))/0x6)+parseInt(_0x3b639f(0x110))/0x7*(-parseInt(_0x3b639f(0x129))/0x8)+parseInt(_0x3b639f(0x115))/0x9*(-parseInt(_0x3b639f(0x11b))/0xa)+parseInt(_0x3b639f(0x111))/0xb*(parseInt(_0x3b639f(0x108))/0xc);if(_0x3bb970===_0x1bfaa3)break;else _0x5f26e7['push'](_0x5f26e7['shift']());}catch(_0x2c85f5){_0x5f26e7['push'](_0x5f26e7['shift']());}}}(a4_0x1d80,0x52524));function fmtNum(_0xa7a34c){const _0xcde8d9=a4_0x36cb;if(_0xa7a34c==0x0)return'0';if(!_0xa7a34c)return'';let _0x20f096=typeof _0xa7a34c===_0xcde8d9(0x127)?parseFloat(_0xa7a34c):_0xa7a34c;if(isNaN(_0x20f096))return'';return _0x20f096['toLocaleString']('en-US',{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x4a316f,_0x135a30=![]){const _0x57c92c=a4_0x36cb;let _0x43c534={'surname':'','givenName':''};if(_0x135a30){const _0x56d058=_0x4a316f[_0x57c92c(0x128)](',')?_0x4a316f['split'](','):_0x4a316f[_0x57c92c(0x10a)](/\s+/);_0x56d058[_0x57c92c(0x10f)]>=0x2&&(_0x43c534[_0x57c92c(0x138)]=_0x56d058[0x0][_0x57c92c(0x133)](),_0x43c534[_0x57c92c(0x11e)]=_0x56d058[0x1]['trim']());}else{const _0x37c385=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x2a155f=0x0;_0x2a155f<_0x37c385[_0x57c92c(0x10f)];_0x2a155f++){const _0x29189c=_0x37c385[_0x2a155f];if(_0x4a316f['startsWith'](_0x29189c))return _0x43c534[_0x57c92c(0x138)]=_0x29189c,_0x43c534[_0x57c92c(0x11e)]=_0x4a316f[_0x57c92c(0x124)](_0x29189c['length'])[_0x57c92c(0x133)](),_0x43c534;}const _0x28397b=_0x4a316f[_0x57c92c(0x10a)]('\x20');if(_0x28397b[_0x57c92c(0x10f)]===0x1){const _0xe40bd4=_0x4a316f[_0x57c92c(0x109)](/[\u4e00-\u9fa5]/);_0x43c534[_0x57c92c(0x138)]=_0xe40bd4?_0xe40bd4[0x0]:'',_0x43c534[_0x57c92c(0x11e)]=_0x4a316f[_0x57c92c(0x130)](_0x43c534[_0x57c92c(0x138)],'')[_0x57c92c(0x133)]();}else _0x43c534[_0x57c92c(0x138)]=_0x28397b[0x0],_0x43c534[_0x57c92c(0x11e)]=_0x28397b[_0x57c92c(0x11a)](0x1)['join']('\x20');}return _0x43c534;}function modifyKeys(_0x2ca15a,_0x2a48e5={'strCode':a4_0x34d13b(0x118),'strFjbh':a4_0x34d13b(0x136),'strGuid':a4_0x34d13b(0x12c),'strValue':'label'}){const _0x1d4411=a4_0x34d13b;if(!_0x2ca15a['length']||_0x2ca15a===null)return[];const _0x5f2c2a=_0x2ca15a[_0x1d4411(0x11f)](_0x3d9cfc=>{const _0x254290=_0x1d4411,_0x1d6581={};for(const _0x523229 in _0x3d9cfc){_0x2a48e5[_0x254290(0x12d)](_0x523229)?_0x1d6581[_0x2a48e5[_0x523229]]=_0x3d9cfc[_0x523229]:_0x1d6581[_0x523229]=_0x3d9cfc[_0x523229];}return _0x1d6581;});return _0x5f2c2a;}function sliceArray(_0x1355c1,_0x5da15e,_0xa6e234){const _0x558f27=a4_0x34d13b;if(_0x5da15e<=0x0)return console[_0x558f27(0x137)]('Quantity\x20should\x20be\x20greater\x20than\x200.'),[];return _0xa6e234?_0x1355c1[_0x558f27(0x11a)](0x0,_0x5da15e):_0x1355c1['slice'](-_0x5da15e);}function findDataByData(_0xb8d2fb,_0x1975ca,_0x33d54d){const _0x33bd09=a4_0x34d13b,_0x412653=_0xb8d2fb[_0x33bd09(0x10e)](_0x3850c2=>_0x3850c2[_0x33d54d]===_0x1975ca);return _0x412653||null;}function splitArray(_0x35bdcb,_0x2a00e1){const _0x4220de=a4_0x34d13b,_0x12d817=[];for(let _0x36c08d=0x0;_0x36c08d<_0x35bdcb[_0x4220de(0x10f)];_0x36c08d+=_0x2a00e1){_0x12d817[_0x4220de(0x12f)](_0x35bdcb['slice'](_0x36c08d,_0x36c08d+_0x2a00e1));}return _0x12d817;}function getProxyType(_0x2ac899){const _0x4f55d2=a4_0x34d13b;return Object[_0x4f55d2(0x125)]['toString'][_0x4f55d2(0x12a)](_0x2ac899)[_0x4f55d2(0x11a)](0x8,-0x1);}let timeout=null;function debounce(_0xdb3ce5,_0xec6dd6=0x1f4,_0x5eba54=![]){const _0xa1b8b4=a4_0x34d13b;if(timeout!==null)clearTimeout(timeout);if(_0x5eba54){const _0x4001aa=!timeout;timeout=setTimeout(()=>{timeout=null;},_0xec6dd6);if(_0x4001aa)typeof _0xdb3ce5===_0xa1b8b4(0x114)&&_0xdb3ce5();}else timeout=setTimeout(()=>{const _0x3334f8=_0xa1b8b4;typeof _0xdb3ce5===_0x3334f8(0x114)&&_0xdb3ce5();},_0xec6dd6);}function matchKeyValueInArray(_0x2f21f2,_0x4d9445,_0x338560){const _0x5c9a41=a4_0x34d13b;for(let _0x3df277=0x0;_0x3df277<_0x2f21f2[_0x5c9a41(0x10f)];_0x3df277++){if(_0x2f21f2[_0x3df277][_0x4d9445]===_0x338560)return!![];}return![];}function urlEncode(_0x10acd5={}){const _0x3111ec=a4_0x34d13b,_0x1899de=[];for(const _0x33b5a2 in _0x10acd5){const _0x282826=_0x10acd5[_0x33b5a2];if(!_0x282826)continue;isArray(_0x282826)?_0x282826['forEach'](_0x49fc4a=>{_0x1899de['push'](_0x33b5a2+'='+_0x49fc4a);}):_0x1899de[_0x3111ec(0x12f)](_0x33b5a2+'='+_0x282826);}return _0x1899de[_0x3111ec(0x135)]('&');}function compareDates(_0x3b6b07,_0x14de9f){const _0x5abba4=a4_0x34d13b;_0x3b6b07=new Date(_0x3b6b07);!_0x14de9f?_0x14de9f=new Date():_0x14de9f=new Date(_0x14de9f);_0x3b6b07[_0x5abba4(0x123)](0x0,0x0,0x0,0x0),_0x14de9f['setHours'](0x0,0x0,0x0,0x0);var _0x133d07=_0x3b6b07['getTime'](),_0x1d5a5d=_0x14de9f[_0x5abba4(0x10c)]();if(_0x133d07<_0x1d5a5d)return-0x1;else return _0x133d07>_0x1d5a5d?0x1:0x0;}function getDaysBetween(_0x44117a,_0x5b4ace){const _0x27faed=a4_0x34d13b,_0x5e397e=new Date(_0x44117a),_0x4f0f9e=new Date(_0x5b4ace),_0x3e79cd=Math['abs'](_0x5e397e[_0x27faed(0x10c)]()-_0x4f0f9e[_0x27faed(0x10c)]()),_0x610c92=Math[_0x27faed(0x119)](_0x3e79cd/(0x3e8*0x3c*0x3c*0x18));return _0x610c92+0x1;}function chineseNumeral(_0x8799b2){const _0x1b19c2=a4_0x34d13b,_0x18e847=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x25ecf9=['','拾','佰','仟'],_0xccfd5d=['','万','亿','兆'];let _0x322da3=Math[_0x1b19c2(0x119)](_0x8799b2),_0x20a998=Math['round']((_0x8799b2-_0x322da3)*0x64),_0x4ad3c7='';for(let _0x290bdc=0x0;_0x322da3>0x0;_0x290bdc++){let _0x2c4912='',_0x3a5d67=_0x322da3%0x2710;_0x322da3=Math['floor'](_0x322da3/0x2710);for(let _0x2c6f84=0x0;_0x3a5d67>0x0;_0x2c6f84++){let _0x521600=_0x3a5d67%0xa;_0x2c4912=(_0x521600?_0x18e847[_0x521600]+_0x25ecf9[_0x2c6f84]:'')+_0x2c4912,_0x3a5d67=Math[_0x1b19c2(0x119)](_0x3a5d67/0xa);}_0x4ad3c7=_0x2c4912+(_0x2c4912?_0xccfd5d[_0x290bdc]:_0xccfd5d[_0x290bdc]&&!_0x4ad3c7[_0x1b19c2(0x128)]('零')?'零':'')+_0x4ad3c7;}_0x4ad3c7+=_0x4ad3c7?'元':'零元';if(_0x20a998>0x0){let _0x2a1207=Math['floor'](_0x20a998/0xa),_0x3bf7fe=_0x20a998%0xa;_0x4ad3c7+=(_0x2a1207?_0x18e847[_0x2a1207]+'角':'')+(_0x3bf7fe?_0x18e847[_0x3bf7fe]+'分':'');}else _0x4ad3c7+='整';return _0x4ad3c7['replace'](/零{2,}/g,'零')['replace'](/零元/,'元');}function getMonthDate(_0x3a916a){const _0x3145c3=a4_0x34d13b;(!_0x3a916a||_0x3a916a[_0x3145c3(0x133)]()==='')&&(_0x3a916a=new Date()['getFullYear']()+'-'+(new Date()[_0x3145c3(0x121)]()+0x1));let _0x2abc2d=[],[_0x337b4a,_0x38dec0]=_0x3a916a[_0x3145c3(0x10a)]('-')[_0x3145c3(0x11f)](Number),_0x13d56c=new Date(_0x337b4a,_0x38dec0,0x0),_0xd97670=_0x13d56c[_0x3145c3(0x112)]();for(let _0xfca34e=0x1;_0xfca34e<=_0xd97670;_0xfca34e++){let _0x370566=_0xfca34e<0xa?'0'+_0xfca34e:''+_0xfca34e,_0x49368f=_0x38dec0<0xa?'0'+_0x38dec0:''+_0x38dec0;_0x2abc2d[_0x3145c3(0x12f)]({'date':_0x337b4a+'-'+_0x49368f+'-'+_0x370566,'disable':!![]});}return _0x2abc2d;}function getToday(_0x2fceba){const _0x483e4f=a4_0x34d13b;var _0x2eba64=new Date(),_0xac921a=String(_0x2eba64[_0x483e4f(0x112)]())[_0x483e4f(0x117)](0x2,'0'),_0x11c7e5=String(_0x2eba64[_0x483e4f(0x121)]()+0x1)[_0x483e4f(0x117)](0x2,'0'),_0x1a54ad=_0x2eba64['getFullYear']();return _0x2eba64=_0x1a54ad+'-'+_0x11c7e5+'-'+_0xac921a,_0x2eba64;}function resetObject(_0x2a07be){const _0x1ff0b3=a4_0x34d13b;let _0x5bfee1=JSON[_0x1ff0b3(0x134)](JSON[_0x1ff0b3(0x10d)](_0x2a07be));for(const _0x20de1b in _0x5bfee1){if(typeof _0x5bfee1[_0x20de1b]===_0x1ff0b3(0x10b))_0x5bfee1[_0x20de1b]=0x0;else{if(typeof _0x5bfee1[_0x20de1b]==='boolean')_0x5bfee1[_0x20de1b]=![];else{if(Array[_0x1ff0b3(0x11d)](_0x5bfee1[_0x20de1b]))_0x5bfee1[_0x20de1b]=[];else typeof _0x5bfee1[_0x20de1b]===_0x1ff0b3(0x13a)&&_0x5bfee1[_0x20de1b]!==null?resetObject(_0x5bfee1[_0x20de1b]):_0x5bfee1[_0x20de1b]='';}}}return _0x5bfee1;}function preciseOperation(_0x37c7d8,_0x399c03,_0x52c398,_0x307d0f=0xf4240){const _0x55de33=a4_0x34d13b;if(isNaN(_0x37c7d8)||isNaN(_0x399c03))return NaN;if(!isFinite(_0x37c7d8)||!isFinite(_0x399c03))return NaN;let _0x44816c=BigInt(Math[_0x55de33(0x126)](_0x37c7d8*_0x307d0f)),_0x8ad1da=BigInt(Math[_0x55de33(0x126)](_0x399c03*_0x307d0f)),_0x1eb479;switch(_0x52c398){case 0x1:_0x1eb479=_0x44816c+_0x8ad1da;break;case 0x2:_0x1eb479=_0x44816c-_0x8ad1da;break;case 0x3:_0x1eb479=_0x44816c*_0x8ad1da;break;case 0x4:if(_0x8ad1da===0x0n)throw new Error(_0x55de33(0x116));_0x1eb479=_0x44816c/_0x8ad1da;break;default:throw new Error('无效的操作符,操作符应为1、2、3或4');}return Number(_0x1eb479)/_0x307d0f;}function preciseSum(_0x5324c3){const _0x40d343=a4_0x34d13b;let _0x50767d=0x0;for(const _0x47fdba of _0x5324c3){let _0x5d382c=0x0;if(typeof _0x47fdba===_0x40d343(0x127)){const _0x53e9cc=parseFloat(_0x47fdba);!isNaN(_0x53e9cc)&&(_0x5d382c=_0x53e9cc);}else typeof _0x47fdba==='number'&&(_0x5d382c=_0x47fdba);_0x50767d=preciseOperation(_0x50767d,_0x5d382c,0x1);}return _0x50767d;}function getRelativeDate(_0x52d808,_0x1456eb=0x0){const _0x521523=a4_0x34d13b,_0x194bbb=new Date(_0x52d808);_0x194bbb[_0x521523(0x12b)](_0x194bbb[_0x521523(0x112)]()+_0x1456eb);const _0x598ff6=_0x194bbb[_0x521523(0x113)](),_0x43b389=(_0x194bbb[_0x521523(0x121)]()+0x1)[_0x521523(0x132)]()[_0x521523(0x117)](0x2,'0'),_0x567d71=_0x194bbb[_0x521523(0x112)]()[_0x521523(0x132)]()[_0x521523(0x117)](0x2,'0');return _0x598ff6+'-'+_0x43b389+'-'+_0x567d71;}function validateFields(_0x2d576e,_0x3db861,_0x2e4bdc=''){for(let _0x499f9c of _0x3db861){if(_0x2d576e[_0x499f9c]===_0x2e4bdc)return!![];}return![];}function mergeObjects(_0x58091a,_0x4c492e){const _0x282e4d=a4_0x34d13b;for(const _0xbc8d0a in _0x58091a){_0x4c492e[_0x282e4d(0x12d)](_0xbc8d0a)&&(_0x58091a[_0xbc8d0a]=_0x4c492e[_0xbc8d0a]);}return _0x58091a;}export default{'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'matchKeyValueInArray':matchKeyValueInArray,'urlEncode':urlEncode,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
1
+ const a4_0x1ce016=a4_0x58c5;(function(_0x485f44,_0x37e6b3){const _0x1ad7c0=a4_0x58c5,_0x2ae301=_0x485f44();while(!![]){try{const _0x4051d0=-parseInt(_0x1ad7c0(0xf9))/0x1+parseInt(_0x1ad7c0(0x11b))/0x2*(-parseInt(_0x1ad7c0(0xf4))/0x3)+parseInt(_0x1ad7c0(0x103))/0x4*(-parseInt(_0x1ad7c0(0x10d))/0x5)+parseInt(_0x1ad7c0(0x122))/0x6+parseInt(_0x1ad7c0(0x10a))/0x7*(-parseInt(_0x1ad7c0(0x10e))/0x8)+-parseInt(_0x1ad7c0(0x10b))/0x9*(parseInt(_0x1ad7c0(0x112))/0xa)+parseInt(_0x1ad7c0(0x106))/0xb;if(_0x4051d0===_0x37e6b3)break;else _0x2ae301['push'](_0x2ae301['shift']());}catch(_0x41ac6f){_0x2ae301['push'](_0x2ae301['shift']());}}}(a4_0x18a7,0xee70c));function fmtNum(_0x1522cf){const _0x28ba86=a4_0x58c5;if(_0x1522cf==0x0)return'0';if(!_0x1522cf)return'';let _0xca46d=typeof _0x1522cf===_0x28ba86(0x108)?parseFloat(_0x1522cf):_0x1522cf;if(isNaN(_0xca46d))return'';return _0xca46d[_0x28ba86(0x128)](_0x28ba86(0x126),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function splitName(_0x361cc3,_0xccaef1=![]){const _0x114010=a4_0x58c5;let _0x32bd1e={'surname':'','givenName':''};if(_0xccaef1){const _0x2a0498=_0x361cc3[_0x114010(0x116)](',')?_0x361cc3[_0x114010(0x11c)](','):_0x361cc3['split'](/\s+/);_0x2a0498[_0x114010(0xf3)]>=0x2&&(_0x32bd1e[_0x114010(0xf8)]=_0x2a0498[0x0][_0x114010(0xf6)](),_0x32bd1e['givenName']=_0x2a0498[0x1][_0x114010(0xf6)]());}else{const _0x12ee88=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x5e3a2d=0x0;_0x5e3a2d<_0x12ee88[_0x114010(0xf3)];_0x5e3a2d++){const _0x3fd102=_0x12ee88[_0x5e3a2d];if(_0x361cc3[_0x114010(0xfc)](_0x3fd102))return _0x32bd1e['surname']=_0x3fd102,_0x32bd1e['givenName']=_0x361cc3[_0x114010(0x124)](_0x3fd102['length'])['trim'](),_0x32bd1e;}const _0x3e3c9f=_0x361cc3['split']('\x20');if(_0x3e3c9f['length']===0x1){const _0x7b8c7a=_0x361cc3[_0x114010(0x120)](/[\u4e00-\u9fa5]/);_0x32bd1e[_0x114010(0xf8)]=_0x7b8c7a?_0x7b8c7a[0x0]:'',_0x32bd1e[_0x114010(0x123)]=_0x361cc3[_0x114010(0x115)](_0x32bd1e[_0x114010(0xf8)],'')['trim']();}else _0x32bd1e['surname']=_0x3e3c9f[0x0],_0x32bd1e['givenName']=_0x3e3c9f[_0x114010(0x118)](0x1)[_0x114010(0x119)]('\x20');}return _0x32bd1e;}function modifyKeys(_0x4210ff,_0x2f943f={'strCode':a4_0x1ce016(0x11f),'strFjbh':a4_0x1ce016(0xfd),'strGuid':a4_0x1ce016(0xf7),'strValue':a4_0x1ce016(0x109)}){const _0x2060b4=a4_0x1ce016;if(!_0x4210ff[_0x2060b4(0xf3)]||_0x4210ff===null)return[];const _0x4cec7f=_0x4210ff[_0x2060b4(0x11a)](_0x441fc0=>{const _0x1d90ac={};for(const _0x96d1a4 in _0x441fc0){_0x2f943f['hasOwnProperty'](_0x96d1a4)?_0x1d90ac[_0x2f943f[_0x96d1a4]]=_0x441fc0[_0x96d1a4]:_0x1d90ac[_0x96d1a4]=_0x441fc0[_0x96d1a4];}return _0x1d90ac;});return _0x4cec7f;}function sliceArray(_0x163400,_0x491783,_0x150c0b){const _0x7969=a4_0x1ce016;if(_0x491783<=0x0)return console[_0x7969(0x10f)](_0x7969(0x125)),[];return _0x150c0b?_0x163400[_0x7969(0x118)](0x0,_0x491783):_0x163400[_0x7969(0x118)](-_0x491783);}function findDataByData(_0x20743a,_0x63ce12,_0x2d1199){const _0x2a9610=a4_0x1ce016,_0x36f4bb=_0x20743a[_0x2a9610(0x110)](_0x381e48=>_0x381e48[_0x2d1199]===_0x63ce12);return _0x36f4bb||null;}function splitArray(_0x101d51,_0x32ccaa){const _0x446b6f=a4_0x1ce016,_0x28e1ce=[];for(let _0x2a41fb=0x0;_0x2a41fb<_0x101d51[_0x446b6f(0xf3)];_0x2a41fb+=_0x32ccaa){_0x28e1ce[_0x446b6f(0x127)](_0x101d51[_0x446b6f(0x118)](_0x2a41fb,_0x2a41fb+_0x32ccaa));}return _0x28e1ce;}function getProxyType(_0x5af452){const _0x5340ee=a4_0x1ce016;return Object[_0x5340ee(0x101)]['toString'][_0x5340ee(0xfb)](_0x5af452)[_0x5340ee(0x118)](0x8,-0x1);}let timeout=null;function debounce(_0x4b8c10,_0x205c9e=0x1f4,_0x5df112=![]){const _0x168a70=a4_0x1ce016;if(timeout!==null)clearTimeout(timeout);if(_0x5df112){const _0x190fb6=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x205c9e);if(_0x190fb6)typeof _0x4b8c10===_0x168a70(0xfa)&&_0x4b8c10();}else timeout=setTimeout(()=>{const _0x5ff321=_0x168a70;typeof _0x4b8c10===_0x5ff321(0xfa)&&_0x4b8c10();},_0x205c9e);}function matchKeyValueInArray(_0x3109d9,_0x29479d,_0x180e0d){const _0x48effd=a4_0x1ce016;for(let _0x186f48=0x0;_0x186f48<_0x3109d9[_0x48effd(0xf3)];_0x186f48++){if(_0x3109d9[_0x186f48][_0x29479d]===_0x180e0d)return!![];}return![];}function urlEncode(_0x2edbd7={}){const _0x481b9b=a4_0x1ce016,_0x4a2401=[];for(const _0x51a41f in _0x2edbd7){const _0xffadf1=_0x2edbd7[_0x51a41f];if(!_0xffadf1)continue;isArray(_0xffadf1)?_0xffadf1[_0x481b9b(0x129)](_0x4b2cac=>{const _0x337861=_0x481b9b;_0x4a2401[_0x337861(0x127)](_0x51a41f+'='+_0x4b2cac);}):_0x4a2401[_0x481b9b(0x127)](_0x51a41f+'='+_0xffadf1);}return _0x4a2401[_0x481b9b(0x119)]('&');}function compareDates(_0x43e312,_0x254311){const _0x485831=a4_0x1ce016;_0x43e312=new Date(_0x43e312);!_0x254311?_0x254311=new Date():_0x254311=new Date(_0x254311);_0x43e312[_0x485831(0x11d)](0x0,0x0,0x0,0x0),_0x254311['setHours'](0x0,0x0,0x0,0x0);var _0x3cd99e=_0x43e312[_0x485831(0x111)](),_0x13120a=_0x254311[_0x485831(0x111)]();if(_0x3cd99e<_0x13120a)return-0x1;else return _0x3cd99e>_0x13120a?0x1:0x0;}function getDaysBetween(_0x49fd0f,_0x32a2ba){const _0x2455ca=a4_0x1ce016,_0x38d69c=new Date(_0x49fd0f),_0xb2af1=new Date(_0x32a2ba),_0x9a3aea=Math[_0x2455ca(0xf5)](_0x38d69c[_0x2455ca(0x111)]()-_0xb2af1['getTime']()),_0x2c11b2=Math[_0x2455ca(0x114)](_0x9a3aea/(0x3e8*0x3c*0x3c*0x18));return _0x2c11b2+0x1;}function chineseNumeral(_0x3c2960){const _0x1fa990=a4_0x1ce016,_0x100cdd=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x4d2341=['','拾','佰','仟'],_0x2b7f05=['','万','亿','兆'];let _0x3e44e7=Math[_0x1fa990(0x114)](_0x3c2960),_0x330ab5=Math[_0x1fa990(0x117)]((_0x3c2960-_0x3e44e7)*0x64),_0x7f7b18='';for(let _0x198b00=0x0;_0x3e44e7>0x0;_0x198b00++){let _0x204573='',_0x1a72b0=_0x3e44e7%0x2710;_0x3e44e7=Math['floor'](_0x3e44e7/0x2710);for(let _0x37e90c=0x0;_0x1a72b0>0x0;_0x37e90c++){let _0x4f3ffa=_0x1a72b0%0xa;_0x204573=(_0x4f3ffa?_0x100cdd[_0x4f3ffa]+_0x4d2341[_0x37e90c]:'')+_0x204573,_0x1a72b0=Math['floor'](_0x1a72b0/0xa);}_0x7f7b18=_0x204573+(_0x204573?_0x2b7f05[_0x198b00]:_0x2b7f05[_0x198b00]&&!_0x7f7b18[_0x1fa990(0x116)]('零')?'零':'')+_0x7f7b18;}_0x7f7b18+=_0x7f7b18?'元':'零元';if(_0x330ab5>0x0){let _0x5cb7e1=Math['floor'](_0x330ab5/0xa),_0xc88f69=_0x330ab5%0xa;_0x7f7b18+=(_0x5cb7e1?_0x100cdd[_0x5cb7e1]+'角':'')+(_0xc88f69?_0x100cdd[_0xc88f69]+'分':'');}else _0x7f7b18+='整';return _0x7f7b18[_0x1fa990(0x115)](/零{2,}/g,'零')[_0x1fa990(0x115)](/零元/,'元');}function getMonthDate(_0x765a67){const _0x56f503=a4_0x1ce016;(!_0x765a67||_0x765a67[_0x56f503(0xf6)]()==='')&&(_0x765a67=new Date()[_0x56f503(0xf2)]()+'-'+(new Date()[_0x56f503(0x102)]()+0x1));let _0x530541=[],[_0x5072c7,_0x56c76a]=_0x765a67[_0x56f503(0x11c)]('-')[_0x56f503(0x11a)](Number),_0x4a3ac1=new Date(_0x5072c7,_0x56c76a,0x0),_0x288c7d=_0x4a3ac1['getDate']();for(let _0x5e5184=0x1;_0x5e5184<=_0x288c7d;_0x5e5184++){let _0x1b3d50=_0x5e5184<0xa?'0'+_0x5e5184:''+_0x5e5184,_0x372d2c=_0x56c76a<0xa?'0'+_0x56c76a:''+_0x56c76a;_0x530541[_0x56f503(0x127)]({'date':_0x5072c7+'-'+_0x372d2c+'-'+_0x1b3d50,'disable':!![]});}return _0x530541;}function getToday(_0x27fe1e){const _0x474eb5=a4_0x1ce016;var _0x135191=new Date(),_0x46b7aa=String(_0x135191[_0x474eb5(0x105)]())[_0x474eb5(0x100)](0x2,'0'),_0x21a6e6=String(_0x135191['getMonth']()+0x1)[_0x474eb5(0x100)](0x2,'0'),_0x218f62=_0x135191['getFullYear']();return _0x135191=_0x218f62+'-'+_0x21a6e6+'-'+_0x46b7aa,_0x135191;}function a4_0x58c5(_0x4f0ca5,_0x4d6d35){const _0x18a731=a4_0x18a7();return a4_0x58c5=function(_0x58c539,_0x125fea){_0x58c539=_0x58c539-0xf2;let _0x533c5c=_0x18a731[_0x58c539];return _0x533c5c;},a4_0x58c5(_0x4f0ca5,_0x4d6d35);}function resetObject(_0x18f4a6){const _0x4c4f4e=a4_0x1ce016;let _0x3d0727=JSON[_0x4c4f4e(0x11e)](JSON[_0x4c4f4e(0x121)](_0x18f4a6));for(const _0x1c4de3 in _0x3d0727){if(typeof _0x3d0727[_0x1c4de3]===_0x4c4f4e(0x107))_0x3d0727[_0x1c4de3]=0x0;else{if(typeof _0x3d0727[_0x1c4de3]===_0x4c4f4e(0x113))_0x3d0727[_0x1c4de3]=![];else{if(Array[_0x4c4f4e(0xff)](_0x3d0727[_0x1c4de3]))_0x3d0727[_0x1c4de3]=[];else typeof _0x3d0727[_0x1c4de3]==='object'&&_0x3d0727[_0x1c4de3]!==null?resetObject(_0x3d0727[_0x1c4de3]):_0x3d0727[_0x1c4de3]='';}}}return _0x3d0727;}function preciseOperation(_0x14f4de,_0x1f06dd,_0x321d32,_0x2784fd=0xf4240){const _0x7cad6c=a4_0x1ce016;if(isNaN(_0x14f4de)||isNaN(_0x1f06dd))return NaN;if(!isFinite(_0x14f4de)||!isFinite(_0x1f06dd))return NaN;let _0x3ab224=BigInt(Math[_0x7cad6c(0x117)](_0x14f4de*_0x2784fd)),_0x2a6aeb=BigInt(Math['round'](_0x1f06dd*_0x2784fd)),_0x5f2b0c;switch(_0x321d32){case 0x1:_0x5f2b0c=_0x3ab224+_0x2a6aeb;break;case 0x2:_0x5f2b0c=_0x3ab224-_0x2a6aeb;break;case 0x3:_0x5f2b0c=_0x3ab224*_0x2a6aeb;break;case 0x4:if(_0x2a6aeb===0x0n)throw new Error('除数不能为0');_0x5f2b0c=_0x3ab224/_0x2a6aeb;break;default:throw new Error(_0x7cad6c(0x10c));}return Number(_0x5f2b0c)/_0x2784fd;}function preciseSum(_0x1641d4){const _0x4161fa=a4_0x1ce016;let _0x2c5239=0x0;for(const _0x43677c of _0x1641d4){let _0x5cab0e=0x0;if(typeof _0x43677c===_0x4161fa(0x108)){const _0x6aa51d=parseFloat(_0x43677c);!isNaN(_0x6aa51d)&&(_0x5cab0e=_0x6aa51d);}else typeof _0x43677c==='number'&&(_0x5cab0e=_0x43677c);_0x2c5239=preciseOperation(_0x2c5239,_0x5cab0e,0x1);}return _0x2c5239;}function getRelativeDate(_0x3cba4c,_0x1eb7e2=0x0){const _0x55ddf7=a4_0x1ce016,_0x5579b5=new Date(_0x3cba4c);_0x5579b5['setDate'](_0x5579b5[_0x55ddf7(0x105)]()+_0x1eb7e2);const _0x1c7fe2=_0x5579b5[_0x55ddf7(0xf2)](),_0x557ad8=(_0x5579b5[_0x55ddf7(0x102)]()+0x1)[_0x55ddf7(0xfe)]()[_0x55ddf7(0x100)](0x2,'0'),_0x3241c4=_0x5579b5[_0x55ddf7(0x105)]()['toString']()[_0x55ddf7(0x100)](0x2,'0');return _0x1c7fe2+'-'+_0x557ad8+'-'+_0x3241c4;}function a4_0x18a7(){const _0x1b2f60=['3089300EhKMrn','3489656eemdXG','error','find','getTime','10bUaIiV','boolean','floor','replace','includes','round','slice','join','map','751844eooZlX','split','setHours','parse','code','match','stringify','396600rCumus','givenName','substring','Quantity\x20should\x20be\x20greater\x20than\x200.','en-US','push','toLocaleString','forEach','getFullYear','length','6xWPffR','abs','trim','value','surname','658865xakXzD','function','call','startsWith','fjbh','toString','isArray','padStart','prototype','getMonth','12dTbIeH','hasOwnProperty','getDate','56564321lKkipn','number','string','label','7NtSqXm','4780467heFmvf','无效的操作符,操作符应为1、2、3或4'];a4_0x18a7=function(){return _0x1b2f60;};return a4_0x18a7();}function validateFields(_0x330001,_0x1771a1,_0x23b298=''){for(let _0x20bf98 of _0x1771a1){if(_0x330001[_0x20bf98]===_0x23b298)return!![];}return![];}function mergeObjects(_0x56be58,_0x24ed7b){const _0x407726=a4_0x1ce016;for(const _0x23110b in _0x56be58){_0x24ed7b[_0x407726(0x104)](_0x23110b)&&(_0x56be58[_0x23110b]=_0x24ed7b[_0x23110b]);}return _0x56be58;}export default{'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'matchKeyValueInArray':matchKeyValueInArray,'urlEncode':urlEncode,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yunlin",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "exports": {