yunlin 1.0.52 → 1.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x296436,_0x4f90e5){var _0xb94203=a0_0x4747,_0x175fe2=_0x296436();while(!![]){try{var _0x2fe06f=-parseInt(_0xb94203(0x11f))/0x1+parseInt(_0xb94203(0x117))/0x2*(parseInt(_0xb94203(0x118))/0x3)+-parseInt(_0xb94203(0x11a))/0x4*(parseInt(_0xb94203(0x11d))/0x5)+parseInt(_0xb94203(0x11c))/0x6+parseInt(_0xb94203(0x119))/0x7+-parseInt(_0xb94203(0x11b))/0x8+-parseInt(_0xb94203(0x116))/0x9*(-parseInt(_0xb94203(0x11e))/0xa);if(_0x2fe06f===_0x4f90e5)break;else _0x175fe2['push'](_0x175fe2['shift']());}catch(_0x12a941){_0x175fe2['push'](_0x175fe2['shift']());}}}(a0_0xc546,0xc1c98));import a0_0x1a32ff from'./utils';function a0_0xc546(){var _0x4a2abc=['4961922brdowV','15jPfnkb','10uzpiPL','1322014BvIgri','19503513omfMTU','274sJbjeR','19758FqXhxt','4687214wGslPc','1335716sJaurj','11587000QlNqHh'];a0_0xc546=function(){return _0x4a2abc;};return a0_0xc546();}import a0_0x41aea3 from'./price';import a0_0x28ad04 from'./test';function a0_0x4747(_0x229490,_0xc4b61f){var _0xc54626=a0_0xc546();return a0_0x4747=function(_0x474794,_0x4e802b){_0x474794=_0x474794-0x116;var _0x36cbdf=_0xc54626[_0x474794];return _0x36cbdf;},a0_0x4747(_0x229490,_0xc4b61f);}import a0_0x4d447e from'./room';import a0_0x27f036 from'./roomOld';import a0_0x2e4214 from'./system';export default{'test':a0_0x28ad04,'utils':a0_0x1a32ff,'price':a0_0x41aea3,'room':a0_0x4d447e,'roomOld':a0_0x27f036,'system':a0_0x2e4214};
1
+ (function(_0x441392,_0x5d7626){var _0x161c60=a0_0x3090,_0x14110d=_0x441392();while(!![]){try{var _0x32ed20=-parseInt(_0x161c60(0x108))/0x1+parseInt(_0x161c60(0x102))/0x2*(-parseInt(_0x161c60(0x104))/0x3)+parseInt(_0x161c60(0x10b))/0x4*(parseInt(_0x161c60(0x105))/0x5)+-parseInt(_0x161c60(0x106))/0x6*(-parseInt(_0x161c60(0x107))/0x7)+parseInt(_0x161c60(0x10a))/0x8+parseInt(_0x161c60(0x109))/0x9+-parseInt(_0x161c60(0x103))/0xa;if(_0x32ed20===_0x5d7626)break;else _0x14110d['push'](_0x14110d['shift']());}catch(_0x413423){_0x14110d['push'](_0x14110d['shift']());}}}(a0_0x4b48,0xbd815));function a0_0x3090(_0x3b3b26,_0xb4f9c1){var _0x4b48ba=a0_0x4b48();return a0_0x3090=function(_0x30907c,_0x44f205){_0x30907c=_0x30907c-0x102;var _0x2e7c4b=_0x4b48ba[_0x30907c];return _0x2e7c4b;},a0_0x3090(_0x3b3b26,_0xb4f9c1);}import a0_0x2a4cf3 from'./utils';import a0_0x337814 from'./price';import a0_0xefa585 from'./test';function a0_0x4b48(){var _0x1f1151=['15406970KioTtU','57yEgTuk','1740qIeiGW','2466DgepzM','12579owdrYO','1030420AHeqUa','13683978kyBgsV','9495904CILUzH','912oVchyy','18738yFiFNd'];a0_0x4b48=function(){return _0x1f1151;};return a0_0x4b48();}import a0_0x333476 from'./room';import a0_0x4315fb from'./roomOld';import a0_0x33e8d9 from'./system';export default{'test':a0_0xefa585,'utils':a0_0x2a4cf3,'price':a0_0x337814,'room':a0_0x333476,'roomOld':a0_0x4315fb,'system':a0_0x33e8d9};
package/dist/price.js CHANGED
@@ -1 +1 @@
1
- (function(_0x467607,_0xe385a1){const _0x4d139e=a1_0x3730,_0x11b655=_0x467607();while(!![]){try{const _0x1892c4=-parseInt(_0x4d139e(0xfb))/0x1*(parseInt(_0x4d139e(0x111))/0x2)+parseInt(_0x4d139e(0xcb))/0x3*(parseInt(_0x4d139e(0x103))/0x4)+-parseInt(_0x4d139e(0xff))/0x5*(-parseInt(_0x4d139e(0x112))/0x6)+parseInt(_0x4d139e(0x106))/0x7*(parseInt(_0x4d139e(0xd6))/0x8)+-parseInt(_0x4d139e(0xd5))/0x9*(parseInt(_0x4d139e(0x109))/0xa)+parseInt(_0x4d139e(0x10e))/0xb*(parseInt(_0x4d139e(0x10b))/0xc)+-parseInt(_0x4d139e(0xcd))/0xd*(parseInt(_0x4d139e(0xcc))/0xe);if(_0x1892c4===_0xe385a1)break;else _0x11b655['push'](_0x11b655['shift']());}catch(_0x10c965){_0x11b655['push'](_0x11b655['shift']());}}}(a1_0x5ed9,0xbbc5c));function handleCosting(_0x3b12b0,_0x51e2bb='',_0x4c01da={},_0x1bc278,_0x1ae422){const _0x1dfa57=a1_0x3730;let _0x2a1068=[];const _0x541466=_0x1dfa57(0xc4),_0x3d9e5c={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x4c01da=typeof _0x4c01da===_0x1dfa57(0xe8)&&!Array['isArray'](_0x4c01da)&&_0x4c01da!==null?_0x4c01da:{};const _0x46b5cb={..._0x3d9e5c,..._0x4c01da},_0x3c152f=Object[_0x1dfa57(0xd1)](_0x3d9e5c);Object['keys'](_0x4c01da)[_0x1dfa57(0xc8)](_0x5f4b54=>{const _0x53663b=_0x1dfa57;!_0x3c152f[_0x53663b(0xf4)](_0x5f4b54)&&console[_0x53663b(0xc3)](_0x53663b(0xd0)+_0x5f4b54);});let _0x325507=_0x46b5cb[_0x1dfa57(0x108)]||'-',_0x4a7a5a=_0x46b5cb['dp']||0x2;const _0x2ff0c8=(_0x61f7a7,_0x794f5e=_0x4a7a5a)=>{const _0x13b651=_0x1dfa57;if(typeof _0x61f7a7!=='number'&&isNaN(Number(_0x61f7a7)))return console[_0x13b651(0xea)](_0x13b651(0xe7)+_0x61f7a7),_0x61f7a7;if(isNaN(_0x794f5e)||_0x794f5e<0x0)return _0x61f7a7;let _0x5eac3c=Number(_0x61f7a7);if(!isFinite(_0x5eac3c))return _0x61f7a7;return _0x794f5e=Math['max'](0x0,Math[_0x13b651(0x114)](_0x794f5e)),_0x5eac3c[_0x13b651(0xfe)](_0x794f5e);},_0xf2fc4e=(_0xce0b02,_0x527f45)=>{const _0x1e7190=_0x1dfa57;if(_0x527f45&&typeof _0x527f45==='object'&&!Array[_0x1e7190(0x11d)](_0x527f45))for(const _0x549efd in _0xce0b02){_0xce0b02[_0x1e7190(0xe5)](_0x549efd)&&_0x527f45[_0x1e7190(0xe5)](_0x549efd)&&(_0xce0b02[_0x549efd]=_0x527f45[_0x549efd]);}else console[_0x1e7190(0xea)](('yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:'+JSON[_0x1e7190(0xd7)](_0x527f45,null,0x2)+_0x1e7190(0x119)+JSON[_0x1e7190(0xd7)](_0xce0b02,null,0x2))[_0x1e7190(0xf9)]());return _0xce0b02;};let _0x52e8fa={'people':_0x1dfa57(0xd9),'service':_0x1dfa57(0xd4),'trip':_0x1dfa57(0xeb),'other':_0x1dfa57(0x104),'reduction':_0x1dfa57(0xf5),'totalprice':'總計','airtax':_0x1dfa57(0xc7)},_0x185b4f={'adult':'成人','child':'兒童','childusebed':_0x1dfa57(0xd2),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x1dfa57(0xc1),'vip':_0x1dfa57(0x101),'promotion':'促銷','insure':_0x1dfa57(0x11a),'coupon':'優惠券','point':'積分','tax':'稅金','viprecharge':_0x1dfa57(0xf2),'changeprice':'调价','commission':'返点','r':'人','t':'天'};_0x52e8fa=_0xf2fc4e(_0x52e8fa,_0x1bc278),_0x185b4f=_0xf2fc4e(_0x185b4f,_0x1ae422);const _0x570ee6=_0x3b12b0[_0x1dfa57(0xee)](_0x3bec65=>_0x3bec65['strLx']=='base');if(_0x570ee6[_0x1dfa57(0xe0)]){let _0x4ce375={'title':_0x52e8fa[_0x1dfa57(0xf3)],'type':'base','list':[]};_0x570ee6['map'](_0x2a798a=>{const _0x415459=_0x1dfa57;_0x4ce375['list'][_0x415459(0x11e)]({'title':_0x185b4f[_0x2a798a['strJgbm']],'subTitle':_0x2a798a[_0x415459(0xf8)],'date':_0x2a798a[_0x415459(0xfc)],'info':_0x51e2bb+_0x2ff0c8(_0x2a798a[_0x415459(0x107)])+_0x541466+_0x2a798a[_0x415459(0xe6)],'nRs':_0x2a798a[_0x415459(0xe6)],'unit':_0x2a798a[_0x415459(0x107)],'cb':_0x2a798a[_0x415459(0xc0)],'type':_0x415459(0xc2)});}),_0x2a1068['push'](_0x4ce375);}const _0x4e3c5c=_0x3b12b0[_0x1dfa57(0xee)](_0x506486=>_0x506486[_0x1dfa57(0xca)]==_0x1dfa57(0xed));if(_0x4e3c5c[_0x1dfa57(0xe0)]){let _0x59d4e6={'title':_0x52e8fa[_0x1dfa57(0xed)],'type':_0x1dfa57(0xed),'list':[]};_0x4e3c5c[_0x1dfa57(0xe1)](_0x8a7b30=>{const _0x120564=_0x1dfa57;_0x59d4e6['list'][_0x120564(0x11e)]({'title':_0x8a7b30[_0x120564(0x115)]+('['+_0x8a7b30[_0x120564(0x11b)]+']'),'info':_0x51e2bb+_0x2ff0c8(_0x8a7b30[_0x120564(0x110)])+_0x541466+_0x8a7b30[_0x120564(0x117)],'nRs':_0x8a7b30[_0x120564(0x117)],'unit':_0x8a7b30[_0x120564(0x110)],'cb':_0x8a7b30[_0x120564(0xe9)],'type':'service'});}),_0x2a1068[_0x1dfa57(0x11e)](_0x59d4e6);}const _0x3c82bf=_0x3b12b0[_0x1dfa57(0xee)](_0x122914=>_0x122914[_0x1dfa57(0xca)]==_0x1dfa57(0x10c));if(_0x3c82bf[_0x1dfa57(0xe0)]){let _0x4b31e3={'title':_0x52e8fa[_0x1dfa57(0x10c)],'type':_0x1dfa57(0x10c),'list':[]};_0x3c82bf[_0x1dfa57(0xe1)](_0x376a18=>{const _0x3f0c6e=_0x1dfa57;_0x376a18[_0x3f0c6e(0x116)]!='0'&&_0x4b31e3[_0x3f0c6e(0xef)][_0x3f0c6e(0x11e)]({'title':_0x376a18['name']+('['+_0x185b4f['adult']+']'),'info':_0x51e2bb+_0x2ff0c8(_0x376a18[_0x3f0c6e(0xc5)])+_0x541466+_0x376a18[_0x3f0c6e(0x116)],'nRs':_0x376a18['adultnum'],'unit':_0x376a18[_0x3f0c6e(0xc5)],'cb':_0x376a18[_0x3f0c6e(0xda)],'type':_0x3f0c6e(0x10c)}),_0x376a18[_0x3f0c6e(0xce)]!='0'&&_0x4b31e3[_0x3f0c6e(0xef)][_0x3f0c6e(0x11e)]({'title':_0x376a18[_0x3f0c6e(0x115)]+('['+_0x185b4f[_0x3f0c6e(0xfa)]+']'),'info':_0x51e2bb+_0x2ff0c8(_0x376a18[_0x3f0c6e(0x113)])+_0x541466+_0x376a18['childnum'],'nRs':_0x376a18[_0x3f0c6e(0xce)],'unit':_0x376a18[_0x3f0c6e(0x113)],'cb':_0x376a18[_0x3f0c6e(0xf1)],'type':_0x3f0c6e(0x10c)});}),_0x2a1068[_0x1dfa57(0x11e)](_0x4b31e3);}let _0x564089=[];const _0x46b70c=_0x3b12b0[_0x1dfa57(0xee)](_0x580296=>_0x580296['strLx']==_0x1dfa57(0x10f));_0x46b70c[_0x1dfa57(0xe0)]&&_0x46b70c[_0x1dfa57(0xe1)](_0x57c2fe=>{const _0x4876e1=_0x1dfa57,_0x55cfd3=_0x57c2fe[_0x4876e1(0x115)]['split']('|')||[''];_0x564089[_0x4876e1(0x11e)]({'title':_0x185b4f[_0x4876e1(0x10f)]+('['+_0x55cfd3[0x0]+']'),'info':_0x51e2bb+_0x325507+_0x2ff0c8(_0x57c2fe[_0x4876e1(0xd3)]),'unit':_0x57c2fe['money'],'cb':_0x57c2fe[_0x4876e1(0xd3)],'type':_0x4876e1(0x10f)});});const _0x16d904=_0x3b12b0[_0x1dfa57(0xee)](_0x590408=>_0x590408[_0x1dfa57(0xca)]==_0x1dfa57(0xe3));_0x16d904[_0x1dfa57(0xe0)]&&_0x16d904['map'](_0x2841a5=>{const _0xcfc3f6=_0x1dfa57;_0x564089[_0xcfc3f6(0x11e)]({'title':_0x185b4f[_0xcfc3f6(0x105)]+('['+_0x2841a5['name']+']'),'info':_0x51e2bb+_0x325507+_0x2ff0c8(_0x2841a5[_0xcfc3f6(0xd3)]),'unit':_0x2841a5['money'],'cb':_0x2841a5[_0xcfc3f6(0xd3)],'type':_0xcfc3f6(0x105)});});const _0x1a41a3=_0x3b12b0['filter'](_0x100ca7=>_0x100ca7[_0x1dfa57(0xca)]==_0x1dfa57(0xf0));_0x1a41a3[_0x1dfa57(0xe0)]&&_0x1a41a3['map'](_0x5e142e=>{const _0x2d07bb=_0x1dfa57;_0x564089[_0x2d07bb(0x11e)]({'title':_0x185b4f['promotion'],'info':_0x51e2bb+_0x325507+_0x2ff0c8(_0x5e142e[_0x2d07bb(0xd3)]),'unit':_0x5e142e[_0x2d07bb(0xd3)],'cb':_0x5e142e[_0x2d07bb(0xd3)],'type':_0x2d07bb(0xf0)});});_0x564089[_0x1dfa57(0xe0)]&&_0x2a1068[_0x1dfa57(0x11e)]({'title':_0x52e8fa[_0x1dfa57(0xd8)],'type':_0x1dfa57(0xd8),'list':_0x564089});const _0x486ca6=_0x3b12b0[_0x1dfa57(0xee)](_0x4d3ee1=>_0x4d3ee1[_0x1dfa57(0xca)]==_0x1dfa57(0x102));if(_0x486ca6[_0x1dfa57(0xe0)]){let _0x160a3c={'title':_0x52e8fa[_0x1dfa57(0x102)],'type':_0x1dfa57(0x102),'list':[]};_0x486ca6[_0x1dfa57(0xe1)](_0x3ad104=>{const _0x526186=_0x1dfa57;_0x160a3c[_0x526186(0xef)][_0x526186(0x11e)]({'title':_0x185b4f[_0x3ad104['rylx']],'info':_0x51e2bb+_0x2ff0c8(_0x3ad104['unitprice'])+_0x541466+_0x3ad104['sl'],'nRs':_0x3ad104['sl'],'unit':_0x3ad104[_0x526186(0x110)],'cb':_0x3ad104[_0x526186(0xec)],'type':_0x3ad104[_0x526186(0xde)]});}),_0x2a1068[_0x1dfa57(0x11e)](_0x160a3c);}const _0xf7a8a8=[_0x1dfa57(0xc2),'service',_0x1dfa57(0x10c),_0x1dfa57(0x10f),'vipdiscounted',_0x1dfa57(0xf0),_0x1dfa57(0x102)],_0x4c0f5b=_0x3b12b0[_0x1dfa57(0xee)](_0x5eec36=>!_0xf7a8a8[_0x1dfa57(0xf4)](_0x5eec36['strLx']));let _0x3dbd02={'title':_0x52e8fa[_0x1dfa57(0xfd)],'type':_0x1dfa57(0xfd),'list':[]};for(var _0x1f97a7=0x0;_0x1f97a7<_0x4c0f5b['length'];_0x1f97a7++){const _0x174d82=_0x4c0f5b[_0x1f97a7];_0x174d82['strLx']==_0x1dfa57(0xdd)&&_0x3dbd02[_0x1dfa57(0xef)]['push']({'title':_0x185b4f[_0x1dfa57(0xdd)]+('['+_0x174d82[_0x1dfa57(0x115)]+']'),'info':_0x51e2bb+_0x2ff0c8(_0x174d82[_0x1dfa57(0xd3)]),'unit':_0x174d82['money'],'type':_0x174d82['strLx']}),_0x174d82[_0x1dfa57(0xca)]==_0x1dfa57(0xdf)&&_0x3dbd02[_0x1dfa57(0xef)][_0x1dfa57(0x11e)]({'title':_0x185b4f[_0x1dfa57(0xdf)]+('['+_0x174d82[_0x1dfa57(0x115)]+']'),'info':_0x51e2bb+_0x2ff0c8(_0x174d82[_0x1dfa57(0xdb)])+_0x541466+_0x174d82[_0x1dfa57(0xdc)]+_0x185b4f['r'],'nRs':_0x174d82[_0x1dfa57(0xdc)],'unit':_0x174d82[_0x1dfa57(0xdb)],'cb':_0x174d82[_0x1dfa57(0xdb)],'type':_0x1dfa57(0xdf)}),(_0x174d82[_0x1dfa57(0xca)]=='coupon'||_0x174d82[_0x1dfa57(0xca)]==_0x1dfa57(0xc6))&&_0x3dbd02[_0x1dfa57(0xef)][_0x1dfa57(0x11e)]({'title':_0x174d82['couponmc']||_0x185b4f[_0x174d82['strLx']],'info':_0x51e2bb+_0x325507+_0x2ff0c8(_0x174d82[_0x1dfa57(0xd3)]),'unit':_0x174d82[_0x1dfa57(0xd3)],'cb':_0x174d82[_0x1dfa57(0xe2)]||0x0,'type':_0x174d82['strLx']}),_0x174d82[_0x1dfa57(0xca)]=='tip'&&_0x46b5cb[_0x1dfa57(0x100)]&&_0x3dbd02[_0x1dfa57(0xef)][_0x1dfa57(0x11e)]({'title':_0x185b4f[_0x174d82[_0x1dfa57(0xca)]],'info':_0x51e2bb+_0x2ff0c8(_0x174d82['tip'])+_0x541466+_0x174d82[_0x1dfa57(0x118)]+_0x185b4f['r']+_0x541466+_0x174d82[_0x1dfa57(0xe4)]+_0x185b4f['t'],'nRs':_0x174d82[_0x1dfa57(0x118)],'count':_0x174d82[_0x1dfa57(0xe4)],'unit':_0x174d82[_0x1dfa57(0x10d)],'type':_0x174d82['strLx']}),_0x174d82[_0x1dfa57(0xca)]==_0x1dfa57(0xc9)&&_0x3dbd02['list'][_0x1dfa57(0x11e)]({'title':_0x185b4f[_0x1dfa57(0xc9)],'info':_0x51e2bb+_0x2ff0c8(_0x174d82[_0x1dfa57(0x11c)]),'unit':_0x174d82['price'],'type':_0x174d82[_0x1dfa57(0xca)]}),_0x174d82[_0x1dfa57(0xca)]==_0x1dfa57(0xf6)&&_0x3dbd02[_0x1dfa57(0xef)][_0x1dfa57(0x11e)]({'title':_0x185b4f[_0x1dfa57(0xf6)],'info':_0x51e2bb+_0x2ff0c8(_0x174d82[_0x1dfa57(0x11c)]),'unit':_0x174d82['price'],'type':_0x174d82['strLx']}),_0x174d82[_0x1dfa57(0xca)]==_0x1dfa57(0x10a)&&_0x3dbd02[_0x1dfa57(0xef)][_0x1dfa57(0x11e)]({'title':_0x185b4f[_0x174d82[_0x1dfa57(0xca)]],'info':_0x51e2bb+_0x2ff0c8(_0x174d82[_0x1dfa57(0xf7)]),'unit':_0x174d82[_0x1dfa57(0xf7)],'type':_0x174d82[_0x1dfa57(0xca)]});}_0x3dbd02[_0x1dfa57(0xef)][_0x1dfa57(0xe0)]&&_0x2a1068[_0x1dfa57(0x11e)](_0x3dbd02);const _0x432b29=_0x3b12b0[_0x1dfa57(0xee)](_0x1f50d7=>_0x1f50d7['strLx']==_0x1dfa57(0xcf));return _0x432b29[_0x1dfa57(0xe0)]&&_0x2a1068[_0x1dfa57(0x11e)]({'title':_0x52e8fa['totalprice'],'type':'totalprice','list':[{'title':_0x52e8fa['totalprice'],'info':_0x51e2bb+_0x2ff0c8(_0x432b29[0x0][_0x1dfa57(0x11c)])}]}),_0x2a1068;}export default{'handleCosting':handleCosting};function a1_0x3730(_0x350a6c,_0x3e6803){const _0x5ed9ae=a1_0x5ed9();return a1_0x3730=function(_0x3730e3,_0x204131){_0x3730e3=_0x3730e3-0xc0;let _0x4f6f2c=_0x5ed9ae[_0x3730e3];return _0x4f6f2c;},a1_0x3730(_0x350a6c,_0x3e6803);}function a1_0x5ed9(){const _0x58f08a=['附加行程','unitpricewb','service','filter','list','promotion','basechildprice','會員充值','people','includes','減免費用','commission','totaltax','strJglxtxt','trim','child','127817hpXWEw','dtRq','other','toFixed','1417195MynWJp','isShowTip','會員減免','airtax','140VbtlIp','其他費用','vip','1658167ENDEBE','fLsjUnit','couponSign','2884110cqGSex','tax','78564rNvYNN','trip','tip','1969ujfTEx','elder','unitprice','4viLrGL','18VMggIt','childunitprice','floor','name','adultnum','num','tipuser','\x0a\x09\x09\x09正确参数:','保險費用','itemname','price','isArray','push','fJcbzlsjUnit','遊客優惠','base','warn','\x20*\x20','adultunitprice','point','機場稅','forEach','changeprice','strLx','3759aZBqZE','22363432oyxpbY','13UBeZvA','childnum','totalprice','[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20','keys','兒童[占床]','money','附加服務','27nplBEA','48POpbRD','stringify','reduction','人員費用','baseadultprice','unit','users','viprecharge','rylx','insure','length','map','points','vipdiscounted','tipday','hasOwnProperty','nRs','ftd\x20函数接收到无效的数字输入:\x20','object','baseprice','error'];a1_0x5ed9=function(){return _0x58f08a;};return a1_0x5ed9();}
1
+ (function(_0x17c6f6,_0x2c2d51){const _0x5c1a14=a1_0x385a,_0x4c5473=_0x17c6f6();while(!![]){try{const _0x236b65=-parseInt(_0x5c1a14(0x1b6))/0x1+parseInt(_0x5c1a14(0x1ab))/0x2+parseInt(_0x5c1a14(0x18d))/0x3+parseInt(_0x5c1a14(0x1a2))/0x4*(-parseInt(_0x5c1a14(0x1d7))/0x5)+parseInt(_0x5c1a14(0x1d6))/0x6+-parseInt(_0x5c1a14(0x1da))/0x7+parseInt(_0x5c1a14(0x1e0))/0x8*(parseInt(_0x5c1a14(0x19c))/0x9);if(_0x236b65===_0x2c2d51)break;else _0x4c5473['push'](_0x4c5473['shift']());}catch(_0xff664a){_0x4c5473['push'](_0x4c5473['shift']());}}}(a1_0xc3ed,0x5158f));function handleCosting(_0x255b17,_0xf2df8='',_0x2c1c69={},_0x3173c2,_0x220ff6){const _0x1c9eb3=a1_0x385a;let _0x484fd7=[];const _0x55e5f1=_0x1c9eb3(0x1c7),_0x4dc2c2={'couponSign':'-','dp':0x2,'isShowTip':!![],'category':_0x1c9eb3(0x1b3),'travelDays':0x2};_0x2c1c69=typeof _0x2c1c69==='object'&&!Array[_0x1c9eb3(0x1d4)](_0x2c1c69)&&_0x2c1c69!==null?_0x2c1c69:{};const _0x290020={..._0x4dc2c2,..._0x2c1c69},_0x7f26d7=Object[_0x1c9eb3(0x1d3)](_0x4dc2c2);Object[_0x1c9eb3(0x1d3)](_0x2c1c69)[_0x1c9eb3(0x192)](_0x42d5e2=>{const _0x5a8ff0=_0x1c9eb3;!_0x7f26d7[_0x5a8ff0(0x1c9)](_0x42d5e2)&&console[_0x5a8ff0(0x1a7)](_0x5a8ff0(0x1d5)+_0x42d5e2);});let _0x5199c8=_0x290020[_0x1c9eb3(0x1ac)]||'-',_0x281a77=_0x290020['dp']||0x2;const _0x1e7723=(_0x4b56d3,_0x293b6c=_0x281a77)=>{const _0x2d6f48=_0x1c9eb3;if(typeof _0x4b56d3!=='number'&&isNaN(Number(_0x4b56d3)))return console[_0x2d6f48(0x1b2)](_0x2d6f48(0x1b4)+_0x4b56d3),_0x4b56d3;if(isNaN(_0x293b6c)||_0x293b6c<0x0)return _0x4b56d3;let _0x5554be=Number(_0x4b56d3);if(!isFinite(_0x5554be))return _0x4b56d3;return _0x293b6c=Math['max'](0x0,Math['floor'](_0x293b6c)),_0x5554be[_0x2d6f48(0x1ba)](_0x293b6c);},_0x5bcf9a=(_0x3ffc9d,_0x27d097)=>{const _0x1d48b8=_0x1c9eb3;if(_0x27d097&&typeof _0x27d097===_0x1d48b8(0x1e3)&&!Array[_0x1d48b8(0x1d4)](_0x27d097))for(const _0x2567c0 in _0x3ffc9d){_0x3ffc9d[_0x1d48b8(0x1cc)](_0x2567c0)&&_0x27d097['hasOwnProperty'](_0x2567c0)&&(_0x3ffc9d[_0x2567c0]=_0x27d097[_0x2567c0]);}else console['error']((_0x1d48b8(0x1d9)+JSON[_0x1d48b8(0x1c0)](_0x27d097,null,0x2)+_0x1d48b8(0x1dc)+JSON[_0x1d48b8(0x1c0)](_0x3ffc9d,null,0x2))['trim']());return _0x3ffc9d;};let _0x4bbc57={'people':_0x1c9eb3(0x198),'service':_0x1c9eb3(0x1dd),'trip':_0x1c9eb3(0x1d2),'other':'其他費用','reduction':_0x1c9eb3(0x1a9),'totalprice':'總計','airtax':_0x1c9eb3(0x1b8)},_0x7908bb={'adult':'成人','child':'兒童','childusebed':_0x1c9eb3(0x196),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x1c9eb3(0x19b),'vip':_0x1c9eb3(0x19f),'promotion':'促銷','insure':_0x1c9eb3(0x1df),'coupon':_0x1c9eb3(0x1db),'point':'積分','tax':'稅金','viprecharge':_0x1c9eb3(0x18e),'changeprice':'调价','commission':'返点','r':'人','t':'天'};_0x4bbc57=_0x5bcf9a(_0x4bbc57,_0x3173c2),_0x7908bb=_0x5bcf9a(_0x7908bb,_0x220ff6);const _0x2600f1=_0x255b17[_0x1c9eb3(0x1bc)](_0x39a219=>_0x39a219['strLx']==_0x1c9eb3(0x1cf));if(_0x2600f1[_0x1c9eb3(0x1de)]){let _0x11f67d={'title':_0x4bbc57['people'],'type':_0x1c9eb3(0x1cf),'list':[]},_0x48f9a4=![];const _0x4a57cb=parseInt(_0x290020['travelDays'],0xa);_0x290020[_0x1c9eb3(0x1d1)]==_0x1c9eb3(0x1b3)&&!isNaN(_0x4a57cb)&&_0x4a57cb>0x1&&(_0x48f9a4=!![]),_0x2600f1[_0x1c9eb3(0x1a8)](_0xab0a12=>{const _0xd91c73=_0x1c9eb3;let _0x4a151d=_0xab0a12['strJglxtxt'];if(_0xab0a12[_0xd91c73(0x1c8)])_0x4a151d=_0xab0a12[_0xd91c73(0x1bb)]+'\x20['+_0xab0a12['dtRq']+']';_0x48f9a4&&((_0xab0a12[_0xd91c73(0x1e4)]==_0xd91c73(0x195)||_0xab0a12[_0xd91c73(0x1e4)]==_0xd91c73(0x1ad)||_0xab0a12[_0xd91c73(0x1e4)]==_0xd91c73(0x1e2))&&(_0x4a151d=_0xab0a12[_0xd91c73(0x1bb)]+'\x20['+_0x7908bb[_0xab0a12[_0xd91c73(0x1e4)]]+']')),_0x11f67d[_0xd91c73(0x199)][_0xd91c73(0x1b0)]({'title':_0x7908bb[_0xab0a12[_0xd91c73(0x1e4)]],'subTitle':_0x4a151d,'date':_0xab0a12['dtRq'],'info':_0xf2df8+_0x1e7723(_0xab0a12[_0xd91c73(0x1bd)])+_0x55e5f1+_0xab0a12['nRs'],'nRs':_0xab0a12[_0xd91c73(0x19e)],'unit':_0xab0a12[_0xd91c73(0x1bd)],'cb':_0xab0a12[_0xd91c73(0x194)],'type':_0xd91c73(0x1cf)});}),_0x484fd7[_0x1c9eb3(0x1b0)](_0x11f67d);}const _0x346ca7=_0x255b17['filter'](_0x8209e=>_0x8209e[_0x1c9eb3(0x1ae)]==_0x1c9eb3(0x1a4));if(_0x346ca7[_0x1c9eb3(0x1de)]){let _0x4b9828={'title':_0x4bbc57[_0x1c9eb3(0x1a4)],'type':_0x1c9eb3(0x1a4),'list':[]};_0x346ca7[_0x1c9eb3(0x1a8)](_0x8b0422=>{const _0x278bbd=_0x1c9eb3;_0x4b9828[_0x278bbd(0x199)][_0x278bbd(0x1b0)]({'title':_0x8b0422[_0x278bbd(0x1c6)]+('['+_0x8b0422['itemname']+']'),'info':_0xf2df8+_0x1e7723(_0x8b0422['unitprice'])+_0x55e5f1+_0x8b0422[_0x278bbd(0x1d0)],'nRs':_0x8b0422[_0x278bbd(0x1d0)],'unit':_0x8b0422[_0x278bbd(0x1be)],'cb':_0x8b0422[_0x278bbd(0x193)],'type':_0x278bbd(0x1a4)});}),_0x484fd7['push'](_0x4b9828);}const _0xee131e=_0x255b17[_0x1c9eb3(0x1bc)](_0x4ba818=>_0x4ba818[_0x1c9eb3(0x1ae)]==_0x1c9eb3(0x18f));if(_0xee131e['length']){let _0x1663c7={'title':_0x4bbc57['trip'],'type':'trip','list':[]};_0xee131e[_0x1c9eb3(0x1a8)](_0x241ce4=>{const _0x589ae6=_0x1c9eb3;_0x241ce4[_0x589ae6(0x1cb)]!='0'&&_0x1663c7[_0x589ae6(0x199)][_0x589ae6(0x1b0)]({'title':_0x241ce4['name']+('['+_0x7908bb[_0x589ae6(0x1a6)]+']'),'info':_0xf2df8+_0x1e7723(_0x241ce4[_0x589ae6(0x1c1)])+_0x55e5f1+_0x241ce4[_0x589ae6(0x1cb)],'nRs':_0x241ce4[_0x589ae6(0x1cb)],'unit':_0x241ce4[_0x589ae6(0x1c1)],'cb':_0x241ce4[_0x589ae6(0x1af)],'type':_0x589ae6(0x18f)}),_0x241ce4['childnum']!='0'&&_0x1663c7[_0x589ae6(0x199)]['push']({'title':_0x241ce4['name']+('['+_0x7908bb[_0x589ae6(0x1ad)]+']'),'info':_0xf2df8+_0x1e7723(_0x241ce4['childunitprice'])+_0x55e5f1+_0x241ce4[_0x589ae6(0x18c)],'nRs':_0x241ce4[_0x589ae6(0x18c)],'unit':_0x241ce4[_0x589ae6(0x1b9)],'cb':_0x241ce4['basechildprice'],'type':_0x589ae6(0x18f)});}),_0x484fd7[_0x1c9eb3(0x1b0)](_0x1663c7);}let _0x19844b=[];const _0x1363b0=_0x255b17[_0x1c9eb3(0x1bc)](_0x31605d=>_0x31605d[_0x1c9eb3(0x1ae)]==_0x1c9eb3(0x1cd));_0x1363b0[_0x1c9eb3(0x1de)]&&_0x1363b0['map'](_0x3060ea=>{const _0x3d061f=_0x1c9eb3,_0x597d84=_0x3060ea[_0x3d061f(0x1c6)][_0x3d061f(0x1b5)]('|')||[''];_0x19844b[_0x3d061f(0x1b0)]({'title':_0x7908bb['elder']+('['+_0x597d84[0x0]+']'),'info':_0xf2df8+_0x5199c8+_0x1e7723(_0x3060ea[_0x3d061f(0x1c4)]),'unit':_0x3060ea['money'],'cb':_0x3060ea['money'],'type':_0x3d061f(0x1cd)});});const _0xd443f=_0x255b17[_0x1c9eb3(0x1bc)](_0x18b911=>_0x18b911[_0x1c9eb3(0x1ae)]==_0x1c9eb3(0x18a));_0xd443f[_0x1c9eb3(0x1de)]&&_0xd443f[_0x1c9eb3(0x1a8)](_0x2c5b5a=>{const _0x181fd9=_0x1c9eb3;_0x19844b[_0x181fd9(0x1b0)]({'title':_0x7908bb['vip']+('['+_0x2c5b5a[_0x181fd9(0x1c6)]+']'),'info':_0xf2df8+_0x5199c8+_0x1e7723(_0x2c5b5a[_0x181fd9(0x1c4)]),'unit':_0x2c5b5a[_0x181fd9(0x1c4)],'cb':_0x2c5b5a[_0x181fd9(0x1c4)],'type':_0x181fd9(0x1a5)});});const _0x3b5a83=_0x255b17['filter'](_0x10b79f=>_0x10b79f[_0x1c9eb3(0x1ae)]==_0x1c9eb3(0x1b7));_0x3b5a83['length']&&_0x3b5a83[_0x1c9eb3(0x1a8)](_0x5d4293=>{const _0x22536a=_0x1c9eb3;_0x19844b[_0x22536a(0x1b0)]({'title':_0x7908bb[_0x22536a(0x1b7)],'info':_0xf2df8+_0x5199c8+_0x1e7723(_0x5d4293[_0x22536a(0x1c4)]),'unit':_0x5d4293['money'],'cb':_0x5d4293[_0x22536a(0x1c4)],'type':'promotion'});});_0x19844b[_0x1c9eb3(0x1de)]&&_0x484fd7[_0x1c9eb3(0x1b0)]({'title':_0x4bbc57['reduction'],'type':_0x1c9eb3(0x197),'list':_0x19844b});const _0x427ef6=_0x255b17[_0x1c9eb3(0x1bc)](_0x30e89f=>_0x30e89f[_0x1c9eb3(0x1ae)]==_0x1c9eb3(0x1ce));if(_0x427ef6['length']){let _0x3c03f7={'title':_0x4bbc57[_0x1c9eb3(0x1ce)],'type':_0x1c9eb3(0x1ce),'list':[]};_0x427ef6[_0x1c9eb3(0x1a8)](_0x9bc80=>{const _0x67556b=_0x1c9eb3;_0x3c03f7[_0x67556b(0x199)][_0x67556b(0x1b0)]({'title':_0x7908bb[_0x9bc80[_0x67556b(0x1a3)]],'info':_0xf2df8+_0x1e7723(_0x9bc80[_0x67556b(0x1be)])+_0x55e5f1+_0x9bc80['sl'],'nRs':_0x9bc80['sl'],'unit':_0x9bc80[_0x67556b(0x1be)],'cb':_0x9bc80[_0x67556b(0x1ca)],'type':_0x9bc80[_0x67556b(0x1a3)]});}),_0x484fd7[_0x1c9eb3(0x1b0)](_0x3c03f7);}const _0x28c7d9=[_0x1c9eb3(0x1cf),'service',_0x1c9eb3(0x18f),_0x1c9eb3(0x1cd),'vipdiscounted',_0x1c9eb3(0x1b7),_0x1c9eb3(0x1ce)],_0x2163f3=_0x255b17[_0x1c9eb3(0x1bc)](_0xc590f4=>!_0x28c7d9['includes'](_0xc590f4[_0x1c9eb3(0x1ae)]));let _0xc24997={'title':_0x4bbc57[_0x1c9eb3(0x1b1)],'type':_0x1c9eb3(0x1b1),'list':[]};for(var _0xe3b041=0x0;_0xe3b041<_0x2163f3['length'];_0xe3b041++){const _0x417fc2=_0x2163f3[_0xe3b041];_0x417fc2[_0x1c9eb3(0x1ae)]==_0x1c9eb3(0x1e6)&&_0xc24997[_0x1c9eb3(0x199)][_0x1c9eb3(0x1b0)]({'title':_0x7908bb['viprecharge']+('['+_0x417fc2[_0x1c9eb3(0x1c6)]+']'),'info':_0xf2df8+_0x1e7723(_0x417fc2[_0x1c9eb3(0x1c4)]),'unit':_0x417fc2[_0x1c9eb3(0x1c4)],'type':_0x417fc2['strLx']}),_0x417fc2['strLx']==_0x1c9eb3(0x1a1)&&_0xc24997[_0x1c9eb3(0x199)][_0x1c9eb3(0x1b0)]({'title':_0x7908bb[_0x1c9eb3(0x1a1)]+('['+_0x417fc2[_0x1c9eb3(0x1c6)]+']'),'info':_0xf2df8+_0x1e7723(_0x417fc2[_0x1c9eb3(0x1c5)])+_0x55e5f1+_0x417fc2[_0x1c9eb3(0x1c2)]+_0x7908bb['r'],'nRs':_0x417fc2[_0x1c9eb3(0x1c2)],'unit':_0x417fc2[_0x1c9eb3(0x1c5)],'cb':_0x417fc2['unit'],'type':'insure'}),(_0x417fc2[_0x1c9eb3(0x1ae)]==_0x1c9eb3(0x1c3)||_0x417fc2[_0x1c9eb3(0x1ae)]==_0x1c9eb3(0x1aa))&&_0xc24997[_0x1c9eb3(0x199)]['push']({'title':_0x417fc2[_0x1c9eb3(0x19a)]||_0x7908bb[_0x417fc2['strLx']],'info':_0xf2df8+_0x5199c8+_0x1e7723(_0x417fc2[_0x1c9eb3(0x1c4)]),'unit':_0x417fc2[_0x1c9eb3(0x1c4)],'cb':_0x417fc2[_0x1c9eb3(0x1bf)]||0x0,'type':_0x417fc2[_0x1c9eb3(0x1ae)]}),_0x417fc2['strLx']=='tip'&&_0x290020[_0x1c9eb3(0x1e7)]&&_0xc24997['list'][_0x1c9eb3(0x1b0)]({'title':_0x7908bb[_0x417fc2[_0x1c9eb3(0x1ae)]],'info':_0xf2df8+_0x1e7723(_0x417fc2[_0x1c9eb3(0x19d)])+_0x55e5f1+_0x417fc2['tipuser']+_0x7908bb['r']+_0x55e5f1+_0x417fc2[_0x1c9eb3(0x190)]+_0x7908bb['t'],'nRs':_0x417fc2[_0x1c9eb3(0x1e5)],'count':_0x417fc2['tipday'],'unit':_0x417fc2[_0x1c9eb3(0x19d)],'type':_0x417fc2['strLx']}),_0x417fc2[_0x1c9eb3(0x1ae)]==_0x1c9eb3(0x1e1)&&_0xc24997[_0x1c9eb3(0x199)][_0x1c9eb3(0x1b0)]({'title':_0x7908bb[_0x1c9eb3(0x1e1)],'info':_0xf2df8+_0x1e7723(_0x417fc2[_0x1c9eb3(0x1d8)]),'unit':_0x417fc2['price'],'type':_0x417fc2['strLx']}),_0x417fc2[_0x1c9eb3(0x1ae)]==_0x1c9eb3(0x191)&&_0xc24997[_0x1c9eb3(0x199)]['push']({'title':_0x7908bb[_0x1c9eb3(0x191)],'info':_0xf2df8+_0x1e7723(_0x417fc2[_0x1c9eb3(0x1d8)]),'unit':_0x417fc2[_0x1c9eb3(0x1d8)],'type':_0x417fc2['strLx']}),_0x417fc2[_0x1c9eb3(0x1ae)]=='tax'&&_0xc24997[_0x1c9eb3(0x199)][_0x1c9eb3(0x1b0)]({'title':_0x7908bb[_0x417fc2[_0x1c9eb3(0x1ae)]],'info':_0xf2df8+_0x1e7723(_0x417fc2[_0x1c9eb3(0x18b)]),'unit':_0x417fc2[_0x1c9eb3(0x18b)],'type':_0x417fc2[_0x1c9eb3(0x1ae)]});}_0xc24997['list'][_0x1c9eb3(0x1de)]&&_0x484fd7[_0x1c9eb3(0x1b0)](_0xc24997);const _0x2d8d4f=_0x255b17['filter'](_0x20af75=>_0x20af75[_0x1c9eb3(0x1ae)]==_0x1c9eb3(0x1a0));return _0x2d8d4f['length']&&_0x484fd7[_0x1c9eb3(0x1b0)]({'title':_0x4bbc57[_0x1c9eb3(0x1a0)],'type':_0x1c9eb3(0x1a0),'list':[{'title':_0x4bbc57[_0x1c9eb3(0x1a0)],'info':_0xf2df8+_0x1e7723(_0x2d8d4f[0x0][_0x1c9eb3(0x1d8)])}]}),_0x484fd7;}export default{'handleCosting':handleCosting};function a1_0x385a(_0x4a9777,_0x11c009){const _0xc3ed20=a1_0xc3ed();return a1_0x385a=function(_0x385a6a,_0x49d2a9){_0x385a6a=_0x385a6a-0x18a;let _0x2bca90=_0xc3ed20[_0x385a6a];return _0x2bca90;},a1_0x385a(_0x4a9777,_0x11c009);}function a1_0xc3ed(){const _0x183a14=['stringify','adultunitprice','users','coupon','money','unit','name','\x20*\x20','dtRq','includes','unitpricewb','adultnum','hasOwnProperty','elder','airtax','base','num','category','附加行程','keys','isArray','[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20','878352gKZAJE','295535KUhVTU','price','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','1257914OklSeJ','優惠券','\x0a\x09\x09\x09正确参数:','附加服務','length','保險費用','4378984GcLwPC','changeprice','infant','object','strJgbm','tipuser','viprecharge','isShowTip','vipdiscounted','totaltax','childnum','852255AKDtPk','會員充值','trip','tipday','commission','forEach','baseprice','fJcbzlsjUnit','childusebed','兒童[占床]','reduction','人員費用','list','couponmc','遊客優惠','9VDbTuM','tip','nRs','會員減免','totalprice','insure','44VWZpHj','rylx','service','vip','adult','warn','map','減免費用','point','614396NRHAto','couponSign','child','strLx','baseadultprice','push','other','error','50258004','ftd\x20函数接收到无效的数字输入:\x20','split','121970loZisu','promotion','機場稅','childunitprice','toFixed','strJglxtxt','filter','fLsjUnit','unitprice','points'];a1_0xc3ed=function(){return _0x183a14;};return a1_0xc3ed();}
package/dist/room.js CHANGED
@@ -1 +1 @@
1
- (function(_0x37125a,_0x294dba){const _0xcd036e=a2_0x35b2,_0x347421=_0x37125a();while(!![]){try{const _0x3a9a2a=-parseInt(_0xcd036e(0x170))/0x1+-parseInt(_0xcd036e(0x176))/0x2*(-parseInt(_0xcd036e(0x173))/0x3)+-parseInt(_0xcd036e(0x172))/0x4+parseInt(_0xcd036e(0x160))/0x5+-parseInt(_0xcd036e(0x161))/0x6+-parseInt(_0xcd036e(0x178))/0x7+parseInt(_0xcd036e(0x16e))/0x8;if(_0x3a9a2a===_0x294dba)break;else _0x347421['push'](_0x347421['shift']());}catch(_0x443888){_0x347421['push'](_0x347421['shift']());}}}(a2_0x3b4b,0xdaca2));function a2_0x3b4b(){const _0x4515fb=['1894qeNkqC','isalotment','7733880AgexAi','some','isArray','isAlotment','forEach','4996780LYAdYP','2145792BYrDsD','push','map','infant','adultNum','filter','list','nMaxIn','max','strCode','childrenNum','find','infantNum','17090792AqeyEh','length','1241839fntZAB','child','5213124mUWGRv','5601BSwoxg','d9319e13-3211-4958-ba32-d66aeac35d31','childUseBed'];a2_0x3b4b=function(){return _0x4515fb;};return a2_0x3b4b();}function getRoomCount(_0x2b9147,_0x1d1fb8){const _0x1420af=a2_0x35b2,_0x302b4d=Array[_0x1420af(0x17a)](_0x2b9147);if(!_0x302b4d)_0x2b9147=[_0x2b9147];let _0x14f679=[];return _0x2b9147[_0x1420af(0x15f)](_0x3cc0fe=>{const _0x17ca69=_0x1420af;let _0x2e57d2=![];if(!_0x3cc0fe[_0x17ca69(0x177)]){let _0x49ec70=_0x3cc0fe[_0x17ca69(0x165)];if(_0x3cc0fe[_0x17ca69(0x175)]||!_0x1d1fb8[_0x17ca69(0x171)])_0x49ec70+=_0x3cc0fe[_0x17ca69(0x16b)];const _0x87c2fc=_0x1d1fb8[_0x17ca69(0x167)][_0x17ca69(0x16c)](_0x3db587=>Number(_0x3db587[_0x17ca69(0x16a)])===_0x49ec70);if(!_0x87c2fc)_0x2e57d2=!![];else{let _0x4f9fc5=_0x3cc0fe[_0x17ca69(0x165)]+_0x3cc0fe[_0x17ca69(0x16b)]+_0x3cc0fe[_0x17ca69(0x16d)];_0x4f9fc5>_0x87c2fc['nMaxIn']&&(_0x2e57d2=!![]);}}_0x14f679[_0x17ca69(0x162)](_0x2e57d2);}),_0x302b4d?_0x14f679:_0x14f679[0x0];}function getRoomConfig(_0x4471ab){const _0x29f2b6=a2_0x35b2;let _0x557b07=_0x4471ab[_0x29f2b6(0x179)](_0x408ac6=>_0x408ac6[_0x29f2b6(0x16a)]===_0x29f2b6(0x175)),_0x38f33d=_0x4471ab['some'](_0x5877dc=>_0x5877dc[_0x29f2b6(0x16a)]===_0x29f2b6(0x17b));const _0x506b33=_0x4471ab[_0x29f2b6(0x179)](_0xe99949=>_0xe99949['strCode']===_0x29f2b6(0x164)),_0x177a28=_0x4471ab['some'](_0x55dd2a=>_0x55dd2a[_0x29f2b6(0x16a)]===_0x29f2b6(0x171)),_0xc362e1=_0x4471ab['map'](_0x376157=>{const _0x1e2a41=_0x29f2b6;return{'strCode':_0x376157[_0x1e2a41(0x16a)],'nMaxIn':_0x376157[_0x1e2a41(0x168)]};});if(_0x38f33d){const _0x2073d8=_0x4471ab[_0x29f2b6(0x179)](_0x5396dc=>_0x5396dc[_0x29f2b6(0x16a)]=='2');_0x38f33d=_0x38f33d&&_0x2073d8;}if(_0x557b07)_0x557b07=_0x557b07&&_0x177a28;return{'childUseBed':_0x557b07,'isAlotment':_0x38f33d,'infant':_0x506b33,'child':_0x177a28,'list':_0xc362e1};}function isRoomPiece(_0x19ce05,_0x1d2e35){const _0xa85b24=a2_0x35b2;return _0x1d2e35&&_0x19ce05[_0xa85b24(0x165)]===0x1&&_0x19ce05[_0xa85b24(0x16b)]===0x0&&_0x19ce05[_0xa85b24(0x16d)]===0x0;}function getRoomItemRange(_0x32d870,_0x2eb3a4,_0x227c2d={'child':'儿童','infant':'婴儿'}){const _0x55e542=a2_0x35b2;if(!_0x2eb3a4[_0x55e542(0x16f)])return{'childList':[],'infantList':[]};const _0x4dd28d=Math[_0x55e542(0x169)](..._0x2eb3a4[_0x55e542(0x163)](_0x300c46=>Number(_0x300c46['nMaxIn']))),_0x4f9c7b=_0x4dd28d-_0x32d870[_0x55e542(0x165)]-_0x32d870[_0x55e542(0x16d)];let _0x2a71f9=_0x4dd28d-_0x32d870['adultNum']-_0x32d870[_0x55e542(0x16b)];if(_0x2a71f9>0x2)_0x2a71f9=0x2;const _0x234e4d=(_0x4d72ef,_0x2b56c4)=>{const _0x16c38a=_0x55e542,_0x68650e=[];_0x68650e[_0x16c38a(0x162)]({'value':0x0,'label':'0\x20'+_0x2b56c4});for(let _0x51a75c=0x0;_0x51a75c<_0x4d72ef;_0x51a75c++){_0x68650e[_0x16c38a(0x162)]({'value':_0x51a75c+0x1,'label':''+(_0x51a75c+0x1)+_0x2b56c4});}return _0x68650e;};return{'childList':_0x234e4d(_0x4f9c7b,_0x227c2d[_0x55e542(0x171)]),'infantList':_0x234e4d(_0x2a71f9,_0x227c2d[_0x55e542(0x164)])};}function getAdultRange(_0x107312,_0x391897='成人'){const _0x39a1cf=a2_0x35b2;let _0x29ce2f=Math[_0x39a1cf(0x169)](..._0x107312[_0x39a1cf(0x163)](_0xf8bd5b=>Number(_0xf8bd5b[_0x39a1cf(0x16a)]))[_0x39a1cf(0x166)](_0x41282a=>!isNaN(_0x41282a)));if(!_0x29ce2f)_0x29ce2f=0x4;let _0x1b203b=[];for(var _0x1f0cb0=0x1;_0x1f0cb0<_0x29ce2f+0x1;_0x1f0cb0++){_0x1b203b[_0x39a1cf(0x162)]({'value':_0x1f0cb0,'label':''+_0x1f0cb0+_0x391897});}return _0x1b203b;}const getTotalPeople=_0x5979ce=>{const _0x262f56=_0x5979ce['reduce']((_0xe0ae54,_0x3d56c1)=>{const _0x4e1a04=a2_0x35b2;return _0xe0ae54+(_0x3d56c1[_0x4e1a04(0x165)]||0x0)+(_0x3d56c1[_0x4e1a04(0x16b)]||0x0)+(_0x3d56c1[_0x4e1a04(0x16d)]||0x0);},0x0);return _0x262f56;},getRoomType=(_0x198d46,_0x29386b)=>{const _0xf32bc6=a2_0x35b2;if(_0x198d46==='type'||_0x198d46===_0xf32bc6(0x174)||_0x29386b===0x1||_0x29386b==='1')return![];return!![];};function a2_0x35b2(_0x4bc964,_0x3732cd){const _0x3b4bd1=a2_0x3b4b();return a2_0x35b2=function(_0x35b223,_0x347e0d){_0x35b223=_0x35b223-0x15f;let _0x35862b=_0x3b4bd1[_0x35b223];return _0x35862b;},a2_0x35b2(_0x4bc964,_0x3732cd);}export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople,'getRoomType':getRoomType};
1
+ (function(_0x50e20f,_0x5272db){const _0x2c9732=a2_0x28fd,_0x1b0ddf=_0x50e20f();while(!![]){try{const _0x2435e4=-parseInt(_0x2c9732(0x9b))/0x1*(-parseInt(_0x2c9732(0x92))/0x2)+-parseInt(_0x2c9732(0x90))/0x3+-parseInt(_0x2c9732(0x82))/0x4*(-parseInt(_0x2c9732(0x80))/0x5)+parseInt(_0x2c9732(0x8b))/0x6+parseInt(_0x2c9732(0x8d))/0x7+-parseInt(_0x2c9732(0x86))/0x8*(-parseInt(_0x2c9732(0x9e))/0x9)+-parseInt(_0x2c9732(0x97))/0xa;if(_0x2435e4===_0x5272db)break;else _0x1b0ddf['push'](_0x1b0ddf['shift']());}catch(_0x3e38da){_0x1b0ddf['push'](_0x1b0ddf['shift']());}}}(a2_0x1428,0x8eb72));function getRoomCount(_0x15f6e8,_0x5580bf){const _0x46341a=a2_0x28fd,_0x52aa49=Array[_0x46341a(0x8f)](_0x15f6e8);if(!_0x52aa49)_0x15f6e8=[_0x15f6e8];let _0x1f0385=[];return _0x15f6e8[_0x46341a(0x8a)](_0xe00152=>{const _0x2d2589=_0x46341a;let _0x17e318=![];if(!_0xe00152[_0x2d2589(0x98)]){let _0x3cd950=_0xe00152[_0x2d2589(0x91)];if(_0xe00152[_0x2d2589(0x9c)]||!_0x5580bf[_0x2d2589(0x8c)])_0x3cd950+=_0xe00152[_0x2d2589(0x9d)];const _0x38967f=_0x5580bf[_0x2d2589(0x83)][_0x2d2589(0x88)](_0x44e2a7=>Number(_0x44e2a7[_0x2d2589(0x9f)])===_0x3cd950);if(!_0x38967f)_0x17e318=!![];else{let _0xa51e3f=_0xe00152[_0x2d2589(0x91)]+_0xe00152[_0x2d2589(0x9d)]+_0xe00152[_0x2d2589(0x84)];_0xa51e3f>_0x38967f['nMaxIn']&&(_0x17e318=!![]);}}_0x1f0385['push'](_0x17e318);}),_0x52aa49?_0x1f0385:_0x1f0385[0x0];}function getRoomConfig(_0x52cbcc){const _0x5d8a4b=a2_0x28fd;let _0x2d9bfb=_0x52cbcc[_0x5d8a4b(0x96)](_0x12b3b5=>_0x12b3b5[_0x5d8a4b(0x9f)]===_0x5d8a4b(0x9c)),_0x35359c=_0x52cbcc[_0x5d8a4b(0x96)](_0x3e7958=>_0x3e7958[_0x5d8a4b(0x9f)]===_0x5d8a4b(0x93));const _0x183436=_0x52cbcc['some'](_0x49ac53=>_0x49ac53[_0x5d8a4b(0x9f)]==='infant'),_0x3e2eec=_0x52cbcc[_0x5d8a4b(0x96)](_0x1fc558=>_0x1fc558['strCode']==='child'),_0x27e2df=_0x52cbcc[_0x5d8a4b(0x99)](_0x5628eb=>{const _0x4a105c=_0x5d8a4b;return{'strCode':_0x5628eb[_0x4a105c(0x9f)],'nMaxIn':_0x5628eb[_0x4a105c(0x94)]};});if(_0x35359c){const _0x56cba8=_0x52cbcc['some'](_0x30d319=>_0x30d319[_0x5d8a4b(0x9f)]=='2');_0x35359c=_0x35359c&&_0x56cba8;}if(_0x2d9bfb)_0x2d9bfb=_0x2d9bfb&&_0x3e2eec;return{'childUseBed':_0x2d9bfb,'isAlotment':_0x35359c,'infant':_0x183436,'child':_0x3e2eec,'list':_0x27e2df};}function isRoomPiece(_0xab0625,_0xd5e218){const _0x48a175=a2_0x28fd;return _0xd5e218&&_0xab0625['adultNum']===0x1&&_0xab0625[_0x48a175(0x9d)]===0x0&&_0xab0625[_0x48a175(0x84)]===0x0;}function a2_0x1428(){const _0x4cf96e=['53184lUSmwl','d9319e13-3211-4958-ba32-d66aeac35d31','find','push','forEach','2525058ClSXCx','child','129703wiKgXa','max','isArray','626718msVHTq','adultNum','772066jYXVGD','isAlotment','nMaxIn','length','some','9559130FBCuGD','isalotment','map','filter','1sKLBPX','childUseBed','childrenNum','909PJCJHG','strCode','631320iXHTgG','infant','8QjEoVe','list','infantNum','reduce'];a2_0x1428=function(){return _0x4cf96e;};return a2_0x1428();}function a2_0x28fd(_0x5dadb7,_0x5a10f3){const _0x142863=a2_0x1428();return a2_0x28fd=function(_0x28fd95,_0x2910f8){_0x28fd95=_0x28fd95-0x80;let _0x5e0cd1=_0x142863[_0x28fd95];return _0x5e0cd1;},a2_0x28fd(_0x5dadb7,_0x5a10f3);}function getRoomItemRange(_0x525bed,_0x49f076,_0x4774d9={'child':'儿童','infant':'婴儿'}){const _0x248d79=a2_0x28fd;if(!_0x49f076[_0x248d79(0x95)])return{'childList':[],'infantList':[]};const _0x5d8f50=Math['max'](..._0x49f076[_0x248d79(0x99)](_0x2e1655=>Number(_0x2e1655[_0x248d79(0x94)]))),_0x2d88f0=_0x5d8f50-_0x525bed[_0x248d79(0x91)]-_0x525bed[_0x248d79(0x84)];let _0xfec44e=_0x5d8f50-_0x525bed[_0x248d79(0x91)]-_0x525bed[_0x248d79(0x9d)];if(_0xfec44e>0x2)_0xfec44e=0x2;const _0x491288=(_0x269a3b,_0x159b6c)=>{const _0x5733a4=_0x248d79,_0x2502da=[];_0x2502da[_0x5733a4(0x89)]({'value':0x0,'label':'0\x20'+_0x159b6c});for(let _0x5711c8=0x0;_0x5711c8<_0x269a3b;_0x5711c8++){_0x2502da[_0x5733a4(0x89)]({'value':_0x5711c8+0x1,'label':''+(_0x5711c8+0x1)+_0x159b6c});}return _0x2502da;};return{'childList':_0x491288(_0x2d88f0,_0x4774d9[_0x248d79(0x8c)]),'infantList':_0x491288(_0xfec44e,_0x4774d9[_0x248d79(0x81)])};}function getAdultRange(_0xc01176,_0x232e5c='成人'){const _0x15cedf=a2_0x28fd;let _0x2caf9a=Math[_0x15cedf(0x8e)](..._0xc01176[_0x15cedf(0x99)](_0x49d715=>Number(_0x49d715[_0x15cedf(0x9f)]))[_0x15cedf(0x9a)](_0x1b67ee=>!isNaN(_0x1b67ee)));if(!_0x2caf9a)_0x2caf9a=0x4;let _0xc0be96=[];for(var _0x16d077=0x1;_0x16d077<_0x2caf9a+0x1;_0x16d077++){_0xc0be96[_0x15cedf(0x89)]({'value':_0x16d077,'label':''+_0x16d077+_0x232e5c});}return _0xc0be96;}const getTotalPeople=_0x1f511d=>{const _0x206aa4=a2_0x28fd,_0x3954e8=_0x1f511d[_0x206aa4(0x85)]((_0x39915e,_0xfe9a79)=>{const _0x24c5d3=_0x206aa4;return _0x39915e+(_0xfe9a79['adultNum']||0x0)+(_0xfe9a79[_0x24c5d3(0x9d)]||0x0)+(_0xfe9a79[_0x24c5d3(0x84)]||0x0);},0x0);return _0x3954e8;},getRoomType=(_0x2fd79c,_0x3b363a)=>{const _0x21d16a=a2_0x28fd;if(_0x2fd79c==='type'||_0x2fd79c===_0x21d16a(0x87)||_0x3b363a===0x1||_0x3b363a==='1')return![];return!![];};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople,'getRoomType':getRoomType};
package/dist/roomOld.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2c8d58,_0x1899f3){const _0xc9a850=a3_0x119e,_0x271dbd=_0x2c8d58();while(!![]){try{const _0x2bad7c=parseInt(_0xc9a850(0x86))/0x1+parseInt(_0xc9a850(0x91))/0x2+-parseInt(_0xc9a850(0x80))/0x3+parseInt(_0xc9a850(0x7b))/0x4*(-parseInt(_0xc9a850(0x7f))/0x5)+parseInt(_0xc9a850(0x79))/0x6+-parseInt(_0xc9a850(0x8b))/0x7+parseInt(_0xc9a850(0x78))/0x8;if(_0x2bad7c===_0x1899f3)break;else _0x271dbd['push'](_0x271dbd['shift']());}catch(_0x42d23c){_0x271dbd['push'](_0x271dbd['shift']());}}}(a3_0x4a6e,0xec252));function getRoomCount(_0x11431d,_0x2d4d3a){const _0x5907f2=a3_0x119e,_0x3ec1c1=Array[_0x5907f2(0x8f)](_0x11431d);if(!_0x3ec1c1)_0x11431d=[_0x11431d];let _0x5d837e=[];return _0x11431d['forEach'](_0x1a52b1=>{const _0x1812ef=_0x5907f2;let _0x29e6e1=![];if(!_0x1a52b1[_0x1812ef(0x8d)]){let _0x3e8b4b=_0x1a52b1[_0x1812ef(0x84)];if(_0x1a52b1[_0x1812ef(0x85)]||!_0x2d4d3a[_0x1812ef(0x8a)])_0x3e8b4b+=_0x1a52b1[_0x1812ef(0x90)];const _0x14a782=_0x2d4d3a[_0x1812ef(0x7e)][_0x1812ef(0x81)](_0x174ae6=>Number(_0x174ae6[_0x1812ef(0x7c)])===_0x3e8b4b);if(!_0x14a782)_0x29e6e1=!![];else{let _0x5b59f1=_0x1a52b1[_0x1812ef(0x84)]+_0x1a52b1[_0x1812ef(0x90)]+_0x1a52b1[_0x1812ef(0x88)];_0x5b59f1>_0x14a782['nMaxIn']&&(_0x29e6e1=!![]);}}_0x5d837e[_0x1812ef(0x7a)](_0x29e6e1);}),_0x3ec1c1?_0x5d837e:_0x5d837e[0x0];}function getRoomConfig(_0x3021f1){const _0x357237=a3_0x119e;let _0x1360b7=_0x3021f1[_0x357237(0x87)](_0x577e00=>_0x577e00['strCode']==='childusebed'),_0x195fc4=_0x3021f1[_0x357237(0x87)](_0x26c61a=>_0x26c61a['strCode']===_0x357237(0x83));const _0x29c0e6=_0x3021f1[_0x357237(0x87)](_0x5ce3a0=>_0x5ce3a0['strCode']==='infant'),_0x4ee3bb=_0x3021f1['some'](_0x55112b=>_0x55112b['strCode']===_0x357237(0x8a)),_0x42cd06=_0x3021f1[_0x357237(0x7d)](_0x5d94f0=>{const _0x96e73a=_0x357237;return{'strCode':_0x5d94f0[_0x96e73a(0x7c)],'nMaxIn':_0x5d94f0[_0x96e73a(0x8e)]};});if(_0x195fc4){const _0x28c3c7=_0x3021f1[_0x357237(0x87)](_0x214d98=>_0x214d98[_0x357237(0x7c)]=='2');_0x195fc4=_0x195fc4&&_0x28c3c7;}if(_0x1360b7)_0x1360b7=_0x1360b7&&_0x4ee3bb;return{'childusebed':_0x1360b7,'half':_0x195fc4,'infant':_0x29c0e6,'child':_0x4ee3bb,'list':_0x42cd06};}function a3_0x119e(_0x415e04,_0x4a87cf){const _0x4a6e9d=a3_0x4a6e();return a3_0x119e=function(_0x119eca,_0x499dce){_0x119eca=_0x119eca-0x78;let _0x59265c=_0x4a6e9d[_0x119eca];return _0x59265c;},a3_0x119e(_0x415e04,_0x4a87cf);}function a3_0x4a6e(){const _0x23fcdf=['map','list','460NDDvHJ','4255995bHTjMF','find','infant','half','adultnum','childusebed','1404920McUkZy','some','infantnum','filter','child','1952769pHpThr','max','isalotment','nMaxIn','isArray','childrennum','1571910gQQWQI','446872WqQaXH','3977760oQrXQm','push','10644BcJAok','strCode'];a3_0x4a6e=function(){return _0x23fcdf;};return a3_0x4a6e();}function isRoomPiece(_0x2311ab,_0x5ba5ef){const _0x52cbfc=a3_0x119e;return _0x5ba5ef&&_0x2311ab[_0x52cbfc(0x84)]===0x1&&_0x2311ab[_0x52cbfc(0x90)]===0x0&&_0x2311ab[_0x52cbfc(0x88)]===0x0;}function getRoomItemRange(_0x579f78,_0x54ec23,_0x3cbe30={'child':'儿童','infant':'婴儿'}){const _0x183920=a3_0x119e;if(!_0x54ec23['length'])return{'childList':[],'infantList':[]};const _0x11f023=Math[_0x183920(0x8c)](..._0x54ec23[_0x183920(0x7d)](_0x1953a4=>Number(_0x1953a4[_0x183920(0x8e)]))),_0x103860=_0x11f023-_0x579f78[_0x183920(0x84)]-_0x579f78[_0x183920(0x88)];let _0x3092a6=_0x11f023-_0x579f78[_0x183920(0x84)]-_0x579f78[_0x183920(0x90)];if(_0x3092a6>0x2)_0x3092a6=0x2;const _0x3f3642=(_0x5d9ceb,_0x21dac4)=>{const _0x579246=_0x183920,_0x3ffa32=[];_0x3ffa32[_0x579246(0x7a)]({'value':0x0,'label':'0\x20'+_0x21dac4});for(let _0x478072=0x0;_0x478072<_0x5d9ceb;_0x478072++){_0x3ffa32[_0x579246(0x7a)]({'value':_0x478072+0x1,'label':''+(_0x478072+0x1)+_0x21dac4});}return _0x3ffa32;};return{'childList':_0x3f3642(_0x103860,_0x3cbe30[_0x183920(0x8a)]),'infantList':_0x3f3642(_0x3092a6,_0x3cbe30[_0x183920(0x82)])};}function getAdultRange(_0x18e4ef,_0x516947='成人'){const _0x440015=a3_0x119e;let _0x2d95d4=Math['max'](..._0x18e4ef[_0x440015(0x7d)](_0x12c33d=>Number(_0x12c33d[_0x440015(0x7c)]))[_0x440015(0x89)](_0x195dd8=>!isNaN(_0x195dd8)));if(!_0x2d95d4)_0x2d95d4=0x4;let _0x2404b2=[];for(var _0x5038c8=0x1;_0x5038c8<_0x2d95d4+0x1;_0x5038c8++){_0x2404b2[_0x440015(0x7a)]({'value':_0x5038c8,'label':''+_0x5038c8+_0x516947});}return _0x2404b2;}const getTotalPeople=_0x5924af=>{const _0x5b46e0=_0x5924af['reduce']((_0x4955e6,_0x36cdc1)=>{const _0x4d0979=a3_0x119e;return _0x4955e6+(_0x36cdc1[_0x4d0979(0x84)]||0x0)+(_0x36cdc1[_0x4d0979(0x90)]||0x0)+(_0x36cdc1[_0x4d0979(0x88)]||0x0);},0x0);return _0x5b46e0;};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};
1
+ function a3_0x1ade(){const _0x5c28e4=['614616gXXKCU','forEach','infantnum','push','949432chTmkC','isArray','child','135765sInqxh','nMaxIn','adultnum','infant','find','childrennum','max','half','some','5163066slOkYX','1066107gTRbAf','isalotment','map','length','filter','strCode','150790cfSAiU','15KqCEnb','597996pizSmH','4cYzAaM','childusebed','list'];a3_0x1ade=function(){return _0x5c28e4;};return a3_0x1ade();}(function(_0x4185fe,_0x371449){const _0x8a1822=a3_0x38b9,_0x56677e=_0x4185fe();while(!![]){try{const _0x571d07=parseInt(_0x8a1822(0xfd))/0x1+parseInt(_0x8a1822(0xff))/0x2+parseInt(_0x8a1822(0x10a))/0x3*(parseInt(_0x8a1822(0x100))/0x4)+-parseInt(_0x8a1822(0xfe))/0x5*(-parseInt(_0x8a1822(0x103))/0x6)+-parseInt(_0x8a1822(0xf7))/0x7+parseInt(_0x8a1822(0x107))/0x8+-parseInt(_0x8a1822(0xf6))/0x9;if(_0x571d07===_0x371449)break;else _0x56677e['push'](_0x56677e['shift']());}catch(_0x13d65d){_0x56677e['push'](_0x56677e['shift']());}}}(a3_0x1ade,0x2f9ef));function getRoomCount(_0x4edc37,_0x20c1a3){const _0x348530=a3_0x38b9,_0x5980d3=Array[_0x348530(0x108)](_0x4edc37);if(!_0x5980d3)_0x4edc37=[_0x4edc37];let _0x311cc6=[];return _0x4edc37[_0x348530(0x104)](_0x296bec=>{const _0x400b34=_0x348530;let _0x3f1e51=![];if(!_0x296bec[_0x400b34(0xf8)]){let _0x20f08b=_0x296bec[_0x400b34(0x10c)];if(_0x296bec[_0x400b34(0x101)]||!_0x20c1a3['child'])_0x20f08b+=_0x296bec[_0x400b34(0x10f)];const _0x9b4f75=_0x20c1a3[_0x400b34(0x102)][_0x400b34(0x10e)](_0x208521=>Number(_0x208521['strCode'])===_0x20f08b);if(!_0x9b4f75)_0x3f1e51=!![];else{let _0x2bc7e3=_0x296bec[_0x400b34(0x10c)]+_0x296bec['childrennum']+_0x296bec[_0x400b34(0x105)];_0x2bc7e3>_0x9b4f75['nMaxIn']&&(_0x3f1e51=!![]);}}_0x311cc6[_0x400b34(0x106)](_0x3f1e51);}),_0x5980d3?_0x311cc6:_0x311cc6[0x0];}function getRoomConfig(_0x582212){const _0x14def3=a3_0x38b9;let _0x804c52=_0x582212[_0x14def3(0x112)](_0x440111=>_0x440111[_0x14def3(0xfc)]===_0x14def3(0x101)),_0x2d6b5f=_0x582212[_0x14def3(0x112)](_0x110750=>_0x110750[_0x14def3(0xfc)]===_0x14def3(0x111));const _0x3627a9=_0x582212[_0x14def3(0x112)](_0xf7d9af=>_0xf7d9af[_0x14def3(0xfc)]===_0x14def3(0x10d)),_0x4267d6=_0x582212[_0x14def3(0x112)](_0x4b9095=>_0x4b9095['strCode']===_0x14def3(0x109)),_0x42841=_0x582212[_0x14def3(0xf9)](_0x118685=>{const _0x2e1fbf=_0x14def3;return{'strCode':_0x118685[_0x2e1fbf(0xfc)],'nMaxIn':_0x118685[_0x2e1fbf(0x10b)]};});if(_0x2d6b5f){const _0x597c36=_0x582212[_0x14def3(0x112)](_0x48c44b=>_0x48c44b[_0x14def3(0xfc)]=='2');_0x2d6b5f=_0x2d6b5f&&_0x597c36;}if(_0x804c52)_0x804c52=_0x804c52&&_0x4267d6;return{'childusebed':_0x804c52,'half':_0x2d6b5f,'infant':_0x3627a9,'child':_0x4267d6,'list':_0x42841};}function isRoomPiece(_0xc5cb16,_0x3dab1b){const _0x4fb633=a3_0x38b9;return _0x3dab1b&&_0xc5cb16[_0x4fb633(0x10c)]===0x1&&_0xc5cb16['childrennum']===0x0&&_0xc5cb16['infantnum']===0x0;}function getRoomItemRange(_0x16ba17,_0x550553,_0xea2e2d={'child':'儿童','infant':'婴儿'}){const _0x7c53f2=a3_0x38b9;if(!_0x550553[_0x7c53f2(0xfa)])return{'childList':[],'infantList':[]};const _0x1246aa=Math['max'](..._0x550553[_0x7c53f2(0xf9)](_0x5cb294=>Number(_0x5cb294[_0x7c53f2(0x10b)]))),_0x253718=_0x1246aa-_0x16ba17[_0x7c53f2(0x10c)]-_0x16ba17[_0x7c53f2(0x105)];let _0xcf0f8=_0x1246aa-_0x16ba17['adultnum']-_0x16ba17[_0x7c53f2(0x10f)];if(_0xcf0f8>0x2)_0xcf0f8=0x2;const _0x58faa6=(_0xeeae18,_0x207cf2)=>{const _0x14ed2b=_0x7c53f2,_0x9357f6=[];_0x9357f6[_0x14ed2b(0x106)]({'value':0x0,'label':'0\x20'+_0x207cf2});for(let _0x48f52b=0x0;_0x48f52b<_0xeeae18;_0x48f52b++){_0x9357f6['push']({'value':_0x48f52b+0x1,'label':''+(_0x48f52b+0x1)+_0x207cf2});}return _0x9357f6;};return{'childList':_0x58faa6(_0x253718,_0xea2e2d[_0x7c53f2(0x109)]),'infantList':_0x58faa6(_0xcf0f8,_0xea2e2d[_0x7c53f2(0x10d)])};}function a3_0x38b9(_0x53dfea,_0x2c267a){const _0x1aded8=a3_0x1ade();return a3_0x38b9=function(_0x38b94d,_0x42b8b0){_0x38b94d=_0x38b94d-0xf6;let _0x51ec9c=_0x1aded8[_0x38b94d];return _0x51ec9c;},a3_0x38b9(_0x53dfea,_0x2c267a);}function getAdultRange(_0x22a7ac,_0x2b5560='成人'){const _0x53b413=a3_0x38b9;let _0x56b166=Math[_0x53b413(0x110)](..._0x22a7ac[_0x53b413(0xf9)](_0x23fa79=>Number(_0x23fa79[_0x53b413(0xfc)]))[_0x53b413(0xfb)](_0x4d0620=>!isNaN(_0x4d0620)));if(!_0x56b166)_0x56b166=0x4;let _0x14f458=[];for(var _0x46e6f8=0x1;_0x46e6f8<_0x56b166+0x1;_0x46e6f8++){_0x14f458[_0x53b413(0x106)]({'value':_0x46e6f8,'label':''+_0x46e6f8+_0x2b5560});}return _0x14f458;}const getTotalPeople=_0x1ec57e=>{const _0x370eed=_0x1ec57e['reduce']((_0x462876,_0xeb87b0)=>{const _0x5cc741=a3_0x38b9;return _0x462876+(_0xeb87b0['adultnum']||0x0)+(_0xeb87b0['childrennum']||0x0)+(_0xeb87b0[_0x5cc741(0x105)]||0x0);},0x0);return _0x370eed;};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};
package/dist/system.js CHANGED
@@ -1 +1 @@
1
- const a4_0x409871=a4_0x5295;(function(_0x27b04b,_0x283fda){const _0x348456=a4_0x5295,_0x20fccc=_0x27b04b();while(!![]){try{const _0x3662fd=parseInt(_0x348456(0x143))/0x1+parseInt(_0x348456(0x140))/0x2+parseInt(_0x348456(0x13f))/0x3+parseInt(_0x348456(0x12e))/0x4*(-parseInt(_0x348456(0x139))/0x5)+-parseInt(_0x348456(0x134))/0x6+-parseInt(_0x348456(0x13a))/0x7*(-parseInt(_0x348456(0x130))/0x8)+-parseInt(_0x348456(0x13d))/0x9;if(_0x3662fd===_0x283fda)break;else _0x20fccc['push'](_0x20fccc['shift']());}catch(_0x2834ee){_0x20fccc['push'](_0x20fccc['shift']());}}}(a4_0x631e,0xeed4a));function getDocInfo(_0x24d77d,_0x2a1fd7=a4_0x409871(0x144),_0x3c9661=![]){const _0x5a4eec=a4_0x409871;let _0x27a375=_0x3c9661?'\x20':'';if(_0x2a1fd7==='idNumber')return _0x24d77d[_0x5a4eec(0x132)]||_0x24d77d[_0x5a4eec(0x13b)]||_0x24d77d[_0x5a4eec(0x142)]||_0x24d77d['strggtxz']||_0x24d77d[_0x5a4eec(0x135)]||'';if(_0x2a1fd7==='name'){if(_0x24d77d[_0x5a4eec(0x138)])return _0x24d77d[_0x5a4eec(0x138)];const _0x17f909=_0x24d77d[_0x5a4eec(0x133)]||_0x24d77d['firstName']||_0x24d77d['strxs']||'',_0x24c021=_0x24d77d[_0x5a4eec(0x145)]||_0x24d77d['lastName']||_0x24d77d[_0x5a4eec(0x141)]||'';return[_0x17f909,_0x24c021][_0x5a4eec(0x12f)](Boolean)[_0x5a4eec(0x13e)](_0x27a375)[_0x5a4eec(0x136)]()||'';}if(_0x2a1fd7===_0x5a4eec(0x13c))return _0x24d77d[_0x5a4eec(0x131)]||_0x24d77d[_0x5a4eec(0x137)]||_0x24d77d['strdhhm']||'';return'';}function a4_0x5295(_0xb854c,_0x387397){const _0x631ea6=a4_0x631e();return a4_0x5295=function(_0x529579,_0x309c9d){_0x529579=_0x529579-0x12e;let _0x51bd1a=_0x631ea6[_0x529579];return _0x51bd1a;},a4_0x5295(_0xb854c,_0x387397);}function a4_0x631e(){const _0x2e0993=['3052612aEtzba','strmz','strhxz','595947ZzKZcU','idNumber','strlastname','4268SvuwDL','filter','3855248ZdHWVp','strlxdh','strsfzh','strfirstname','1244484VYRAod','strzjhm','trim','strlxfs','strxm','4215lHaSuv','21tyvJJx','strhzbh','phone','17174637HRxzsm','join','1276401BjxSxh'];a4_0x631e=function(){return _0x2e0993;};return a4_0x631e();}export default{'getDocInfo':getDocInfo};
1
+ const a4_0x2f2a6e=a4_0x3b7d;(function(_0x58b28f,_0x2420a6){const _0xa901ae=a4_0x3b7d,_0x3f2338=_0x58b28f();while(!![]){try{const _0x1812dd=parseInt(_0xa901ae(0x209))/0x1*(-parseInt(_0xa901ae(0x1f7))/0x2)+parseInt(_0xa901ae(0x207))/0x3+parseInt(_0xa901ae(0x205))/0x4*(parseInt(_0xa901ae(0x1f2))/0x5)+parseInt(_0xa901ae(0x1fe))/0x6+-parseInt(_0xa901ae(0x204))/0x7+parseInt(_0xa901ae(0x201))/0x8*(-parseInt(_0xa901ae(0x200))/0x9)+parseInt(_0xa901ae(0x20a))/0xa;if(_0x1812dd===_0x2420a6)break;else _0x3f2338['push'](_0x3f2338['shift']());}catch(_0x238d4c){_0x3f2338['push'](_0x3f2338['shift']());}}}(a4_0x21c4,0x5a0c5));function getDocInfo(_0x18ee55,_0x5b7b11=a4_0x2f2a6e(0x208),_0x26f616=![]){const _0x2acd5f=a4_0x2f2a6e;let _0x55fe06=_0x26f616?'\x20':'';if(_0x5b7b11==='idNumber')return _0x18ee55[_0x2acd5f(0x202)]||_0x18ee55['strhzbh']||_0x18ee55[_0x2acd5f(0x1f3)]||_0x18ee55[_0x2acd5f(0x20b)]||_0x18ee55[_0x2acd5f(0x206)]||'';if(_0x5b7b11===_0x2acd5f(0x1f1)){if(_0x18ee55[_0x2acd5f(0x1fc)])return _0x18ee55[_0x2acd5f(0x1fc)];const _0x207a13=_0x18ee55[_0x2acd5f(0x1f4)]||_0x18ee55[_0x2acd5f(0x1f5)]||_0x18ee55['strxs']||'',_0x2c7086=_0x18ee55['strlastname']||_0x18ee55[_0x2acd5f(0x1fb)]||_0x18ee55[_0x2acd5f(0x1f6)]||'';return[_0x207a13,_0x2c7086][_0x2acd5f(0x1f9)](Boolean)[_0x2acd5f(0x1f8)](_0x55fe06)[_0x2acd5f(0x203)]()||'';}if(_0x5b7b11===_0x2acd5f(0x20c))return _0x18ee55[_0x2acd5f(0x1fd)]||_0x18ee55[_0x2acd5f(0x1ff)]||_0x18ee55[_0x2acd5f(0x1fa)]||'';return'';}function a4_0x3b7d(_0x3a3e29,_0x31e399){const _0x21c43a=a4_0x21c4();return a4_0x3b7d=function(_0x3b7d43,_0x58e0e9){_0x3b7d43=_0x3b7d43-0x1f1;let _0x34aeda=_0x21c43a[_0x3b7d43];return _0x34aeda;},a4_0x3b7d(_0x3a3e29,_0x31e399);}export default{'getDocInfo':getDocInfo};function a4_0x21c4(){const _0x6ead10=['122680FYHxps','strhxz','strfirstname','firstName','strmz','4mwbGOA','join','filter','strdhhm','lastName','strxm','strlxdh','1452582gqCuAy','strlxfs','9IlEEIo','5519112WqgVKV','strsfzh','trim','1031464ADaVXV','104vaWXfA','strzjhm','788451Kygfle','idNumber','130717cTmCab','3246620tcpeLE','strggtxz','phone','name'];a4_0x21c4=function(){return _0x6ead10;};return a4_0x21c4();}
package/dist/test.js CHANGED
@@ -1 +1 @@
1
- function a5_0x2510(_0x5277f1,_0x541e52){const _0x5df0a1=a5_0x5df0();return a5_0x2510=function(_0x251012,_0x33cf63){_0x251012=_0x251012-0x10c;let _0x55262f=_0x5df0a1[_0x251012];return _0x55262f;},a5_0x2510(_0x5277f1,_0x541e52);}(function(_0x198d09,_0x47bcc8){const _0x38e7e3=a5_0x2510,_0x127fee=_0x198d09();while(!![]){try{const _0x235fbb=parseInt(_0x38e7e3(0x114))/0x1+parseInt(_0x38e7e3(0x12a))/0x2+-parseInt(_0x38e7e3(0x115))/0x3+-parseInt(_0x38e7e3(0x125))/0x4+parseInt(_0x38e7e3(0x118))/0x5*(parseInt(_0x38e7e3(0x121))/0x6)+-parseInt(_0x38e7e3(0x113))/0x7+-parseInt(_0x38e7e3(0x11a))/0x8;if(_0x235fbb===_0x47bcc8)break;else _0x127fee['push'](_0x127fee['shift']());}catch(_0x5a75f1){_0x127fee['push'](_0x127fee['shift']());}}}(a5_0x5df0,0x53635));function email(_0x303ec8){const _0x5802af=a5_0x2510;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x5802af(0x11f)](_0x303ec8);}function mobile(_0x173a73){const _0x4dc092=a5_0x2510;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x4dc092(0x11f)](_0x173a73);}function isValidPhoneNumber(_0x4a8f27){const _0x4dfffe=a5_0x2510;if(_0x4a8f27[_0x4dfffe(0x129)]('-')){const [_0x56760d,_0x4081cd]=_0x4a8f27[_0x4dfffe(0x11b)]('-');if(_0x56760d==='86')return/^\d{11}$/[_0x4dfffe(0x11f)](_0x4081cd)&&_0x4081cd[_0x4dfffe(0x119)]('1');else return _0x56760d==='852'?/^\d{8}$/['test'](_0x4081cd)&&['5','6','9','8'][_0x4dfffe(0x129)](_0x4081cd[_0x4dfffe(0x11d)](0x0)):/^\d+$/[_0x4dfffe(0x11f)](_0x4081cd);}else return/^\d+$/[_0x4dfffe(0x11f)](_0x4a8f27);}function url(_0x47446a){const _0x137417=a5_0x2510;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x137417(0x11f)](_0x47446a);}function a5_0x5df0(){const _0x2aa88e=['422084Jbjvah','boolean','[object\x20Array]','toString','[object\x20Object]','parse','length','prototype','function','4089253dMdjuN','558436aRtLWk','59715aRxmhR','^\x5cd{','indexOf','35VSqUYj','startsWith','768432GcsRXi','split','number','charAt','then','test','[object\x20RegExp]','422130OpEAht','replace','isArray','string','881072RSaNMp','catch','object','call','includes'];a5_0x5df0=function(){return _0x2aa88e;};return a5_0x5df0();}function date(_0x2fe2b9){const _0x15b09b=a5_0x2510;if(!_0x2fe2b9)return![];if(number(_0x2fe2b9))_0x2fe2b9=+_0x2fe2b9;return!/Invalid|NaN/[_0x15b09b(0x11f)](new Date(_0x2fe2b9)[_0x15b09b(0x10d)]());}function dateISO(_0x1bfa88){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/['test'](_0x1bfa88);}function isNumber(_0x2a44a6){const _0x555b99=a5_0x2510;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x555b99(0x11f)](_0x2a44a6);}function isString(_0x554fd0){const _0x40ab00=a5_0x2510;return typeof _0x554fd0===_0x40ab00(0x124);}function digits(_0x4c6094){const _0x49820a=a5_0x2510;return/^\d+$/[_0x49820a(0x11f)](_0x4c6094);}function idCard(_0x14bd37){const _0x2cca4e=a5_0x2510,_0x3a02f3=/^[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)$/,_0x5ca7c9=/^[A-Z]{1,2}\d{6}\(?[0-9A]\)?$/;return _0x3a02f3[_0x2cca4e(0x11f)](_0x14bd37)||_0x5ca7c9['test'](_0x14bd37);}function carNo(_0x474ccf){const _0x177101=a5_0x2510,_0x72eeb8=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x54f9d6=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x474ccf[_0x177101(0x110)]===0x7)return _0x54f9d6['test'](_0x474ccf);if(_0x474ccf[_0x177101(0x110)]===0x8)return _0x72eeb8[_0x177101(0x11f)](_0x474ccf);return![];}function amount(_0x37917d){const _0x2a0dd=a5_0x2510;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x2a0dd(0x11f)](_0x37917d);}function chinese(_0x5cd6d0){const _0x4de905=/^[\u4e00-\u9fa5]+$/gi;return _0x4de905['test'](_0x5cd6d0);}function letter(_0x1d00b2){const _0x319ee3=a5_0x2510;return/^[a-zA-Z]*$/[_0x319ee3(0x11f)](_0x1d00b2);}function enOrNum(_0xee1e2c){const _0x45d593=a5_0x2510,_0x31b890=/^[0-9a-zA-Z]*$/g;return _0x31b890[_0x45d593(0x11f)](_0xee1e2c);}function contains(_0x21b80f,_0x1a21f3){const _0x2280c6=a5_0x2510;return _0x21b80f[_0x2280c6(0x117)](_0x1a21f3)>=0x0;}function range(_0x46158f,_0x2fe98d){return _0x46158f>=_0x2fe98d[0x0]&&_0x46158f<=_0x2fe98d[0x1];}function rangeLength(_0x2c57cd,_0x1859d3){const _0x221268=a5_0x2510;return _0x2c57cd[_0x221268(0x110)]>=_0x1859d3[0x0]&&_0x2c57cd['length']<=_0x1859d3[0x1];}function landline(_0x13de19){const _0x56f8bc=a5_0x2510,_0x4bae28=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x4bae28[_0x56f8bc(0x11f)](_0x13de19);}function empty(_0x2968cb){const _0x299bbe=a5_0x2510;switch(typeof _0x2968cb){case'undefined':return!![];case'string':if(_0x2968cb[_0x299bbe(0x122)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x299bbe(0x110)]==0x0)return!![];break;case _0x299bbe(0x12b):if(!_0x2968cb)return!![];break;case _0x299bbe(0x11c):if(_0x2968cb===0x0||isNaN(_0x2968cb))return!![];break;case _0x299bbe(0x127):if(_0x2968cb===null||_0x2968cb[_0x299bbe(0x110)]===0x0)return!![];for(const _0x44b52b in _0x2968cb){return![];}return!![];}return![];}function jsonString(_0x262667){const _0x131e9c=a5_0x2510;if(typeof _0x262667===_0x131e9c(0x124))try{const _0x577627=JSON[_0x131e9c(0x10f)](_0x262667);if(typeof _0x577627===_0x131e9c(0x127)&&_0x577627)return!![];return![];}catch(_0x4e648a){return![];}return![];}function array(_0x26b9ec){const _0x3f96c8=a5_0x2510;if(typeof Array[_0x3f96c8(0x123)]===_0x3f96c8(0x112))return Array[_0x3f96c8(0x123)](_0x26b9ec);return Object[_0x3f96c8(0x111)][_0x3f96c8(0x10d)]['call'](_0x26b9ec)===_0x3f96c8(0x10c);}function object(_0x4a6a1c){const _0x4c9b6a=a5_0x2510;return Object['prototype'][_0x4c9b6a(0x10d)][_0x4c9b6a(0x128)](_0x4a6a1c)===_0x4c9b6a(0x10e);}function code(_0x17de09,_0x130e8a=0x6){const _0x45b719=a5_0x2510;return new RegExp(_0x45b719(0x116)+_0x130e8a+'}$')[_0x45b719(0x11f)](_0x17de09);}function func(_0x4f4598){return typeof _0x4f4598==='function';}function promise(_0x567c72){const _0x7e0c96=a5_0x2510;return object(_0x567c72)&&func(_0x567c72[_0x7e0c96(0x11e)])&&func(_0x567c72[_0x7e0c96(0x126)]);}function image(_0x48d0d7){const _0x57189f=a5_0x2510,_0x54cdd5=_0x48d0d7[_0x57189f(0x11b)]('?')[0x0],_0x2b8f96=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x2b8f96[_0x57189f(0x11f)](_0x54cdd5);}function video(_0xb9f175){const _0x171fd2=a5_0x2510,_0x5a4af6=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x5a4af6[_0x171fd2(0x11f)](_0xb9f175);}function regExp(_0xd0b31d){const _0x331a62=a5_0x2510;return _0xd0b31d&&Object[_0x331a62(0x111)][_0x331a62(0x10d)][_0x331a62(0x128)](_0xd0b31d)===_0x331a62(0x120);}function isNumeric(_0x2bbf7d,_0x359d91=0x0){const _0x49c23b=a5_0x2510;if(typeof _0x2bbf7d===_0x49c23b(0x11c))_0x2bbf7d=_0x2bbf7d[_0x49c23b(0x10d)]();if(typeof _0x2bbf7d!=='string')return![];switch(_0x359d91){case 0x1:return/^\d+(\.\d+)?$/['test'](_0x2bbf7d);case 0x2:return/^-\d+(\.\d+)?$/['test'](_0x2bbf7d);case 0x3:return/^-?\d+$/[_0x49c23b(0x11f)](_0x2bbf7d);case 0x4:return/^\d+$/[_0x49c23b(0x11f)](_0x2bbf7d);case 0x5:return/^-\d+$/['test'](_0x2bbf7d);default:return/^-?\d*\.?\d*$/[_0x49c23b(0x11f)](_0x2bbf7d)&&!_0x2bbf7d[_0x49c23b(0x119)]('.')&&!_0x2bbf7d[_0x49c23b(0x129)]('--');}}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(_0x2be38b,_0x10508a){const _0x54bb54=a5_0x36b5,_0x23d072=_0x2be38b();while(!![]){try{const _0x3316f0=parseInt(_0x54bb54(0x1f1))/0x1*(-parseInt(_0x54bb54(0x1f0))/0x2)+parseInt(_0x54bb54(0x1ec))/0x3+parseInt(_0x54bb54(0x1d9))/0x4*(parseInt(_0x54bb54(0x1e7))/0x5)+parseInt(_0x54bb54(0x1e4))/0x6*(parseInt(_0x54bb54(0x1e5))/0x7)+-parseInt(_0x54bb54(0x1db))/0x8*(parseInt(_0x54bb54(0x1d8))/0x9)+-parseInt(_0x54bb54(0x1e6))/0xa+parseInt(_0x54bb54(0x1e2))/0xb;if(_0x3316f0===_0x10508a)break;else _0x23d072['push'](_0x23d072['shift']());}catch(_0x2c6e0e){_0x23d072['push'](_0x23d072['shift']());}}}(a5_0x5b5a,0xaae56));function email(_0x4dfb8b){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/['test'](_0x4dfb8b);}function a5_0x36b5(_0x1ea39e,_0x207b56){const _0x5b5ae5=a5_0x5b5a();return a5_0x36b5=function(_0x36b57a,_0x24047d){_0x36b57a=_0x36b57a-0x1d6;let _0x51bacc=_0x5b5ae5[_0x36b57a];return _0x51bacc;},a5_0x36b5(_0x1ea39e,_0x207b56);}function mobile(_0x49f1d0){const _0x49858a=a5_0x36b5;return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/[_0x49858a(0x1eb)](_0x49f1d0);}function isValidPhoneNumber(_0x560bb8){const _0x8cce83=a5_0x36b5;if(_0x560bb8[_0x8cce83(0x1e0)]('-')){const [_0x53b212,_0x9d7e4c]=_0x560bb8[_0x8cce83(0x1d6)]('-');if(_0x53b212==='86')return/^\d{11}$/['test'](_0x9d7e4c)&&_0x9d7e4c['startsWith']('1');else return _0x53b212===_0x8cce83(0x1e1)?/^\d{8}$/[_0x8cce83(0x1eb)](_0x9d7e4c)&&['5','6','9','8'][_0x8cce83(0x1e0)](_0x9d7e4c['charAt'](0x0)):/^\d+$/['test'](_0x9d7e4c);}else return/^\d+$/[_0x8cce83(0x1eb)](_0x560bb8);}function url(_0x55d6e4){const _0x125025=a5_0x36b5;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x125025(0x1eb)](_0x55d6e4);}function date(_0x3192e1){const _0x3b2f52=a5_0x36b5;if(!_0x3192e1)return![];if(number(_0x3192e1))_0x3192e1=+_0x3192e1;return!/Invalid|NaN/['test'](new Date(_0x3192e1)[_0x3b2f52(0x1f5)]());}function dateISO(_0x40348c){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/['test'](_0x40348c);}function isNumber(_0x4eee8a){const _0x330315=a5_0x36b5;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x330315(0x1eb)](_0x4eee8a);}function isString(_0x3fb3ba){const _0xeb437c=a5_0x36b5;return typeof _0x3fb3ba===_0xeb437c(0x1f4);}function digits(_0x358a6f){return/^\d+$/['test'](_0x358a6f);}function idCard(_0xf80c47){const _0x217b7a=a5_0x36b5,_0x6b2cc8=/^[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)$/,_0x45c8bf=/^[A-Z]{1,2}\d{6}\(?[0-9A]\)?$/;return _0x6b2cc8[_0x217b7a(0x1eb)](_0xf80c47)||_0x45c8bf[_0x217b7a(0x1eb)](_0xf80c47);}function carNo(_0x415710){const _0x359c17=a5_0x36b5,_0x6f02a7=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x4be3b9=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x415710['length']===0x7)return _0x4be3b9[_0x359c17(0x1eb)](_0x415710);if(_0x415710[_0x359c17(0x1e9)]===0x8)return _0x6f02a7['test'](_0x415710);return![];}function amount(_0x1c3075){const _0x30dd43=a5_0x36b5;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x30dd43(0x1eb)](_0x1c3075);}function chinese(_0x24151f){const _0x3edf13=a5_0x36b5,_0x3d800d=/^[\u4e00-\u9fa5]+$/gi;return _0x3d800d[_0x3edf13(0x1eb)](_0x24151f);}function letter(_0x31afff){const _0x9f7f=a5_0x36b5;return/^[a-zA-Z]*$/[_0x9f7f(0x1eb)](_0x31afff);}function a5_0x5b5a(){const _0x2aa191=['44VxOSUZ','object','24MJQNwm','[object\x20Object]','number','startsWith','^\x5cd{','includes','852','26067305KjXZrj','call','41694bOhGAH','742cbkkYa','2910110QXgxhB','79745lftzEb','catch','length','replace','test','596202fxKkrt','isArray','then','[object\x20Array]','177062ffSDrM','13lztkhu','boolean','function','string','toString','split','prototype','4015854cgGiGR'];a5_0x5b5a=function(){return _0x2aa191;};return a5_0x5b5a();}function enOrNum(_0x2d8206){const _0x262d5a=/^[0-9a-zA-Z]*$/g;return _0x262d5a['test'](_0x2d8206);}function contains(_0x1bd64c,_0x47842b){return _0x1bd64c['indexOf'](_0x47842b)>=0x0;}function range(_0x49fbd4,_0x56fc98){return _0x49fbd4>=_0x56fc98[0x0]&&_0x49fbd4<=_0x56fc98[0x1];}function rangeLength(_0x18315e,_0x365170){const _0x28e32c=a5_0x36b5;return _0x18315e[_0x28e32c(0x1e9)]>=_0x365170[0x0]&&_0x18315e[_0x28e32c(0x1e9)]<=_0x365170[0x1];}function landline(_0x32e15a){const _0x11272a=a5_0x36b5,_0x543c57=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x543c57[_0x11272a(0x1eb)](_0x32e15a);}function empty(_0x5712ae){const _0xa32456=a5_0x36b5;switch(typeof _0x5712ae){case'undefined':return!![];case _0xa32456(0x1f4):if(_0x5712ae[_0xa32456(0x1ea)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')['length']==0x0)return!![];break;case _0xa32456(0x1f2):if(!_0x5712ae)return!![];break;case _0xa32456(0x1dd):if(_0x5712ae===0x0||isNaN(_0x5712ae))return!![];break;case'object':if(_0x5712ae===null||_0x5712ae['length']===0x0)return!![];for(const _0x40a6a4 in _0x5712ae){return![];}return!![];}return![];}function jsonString(_0x19b4e4){const _0x5db4f8=a5_0x36b5;if(typeof _0x19b4e4==='string')try{const _0x27a060=JSON['parse'](_0x19b4e4);if(typeof _0x27a060===_0x5db4f8(0x1da)&&_0x27a060)return!![];return![];}catch(_0x2973db){return![];}return![];}function array(_0x279f6e){const _0x3b4213=a5_0x36b5;if(typeof Array[_0x3b4213(0x1ed)]===_0x3b4213(0x1f3))return Array['isArray'](_0x279f6e);return Object[_0x3b4213(0x1d7)][_0x3b4213(0x1f5)]['call'](_0x279f6e)===_0x3b4213(0x1ef);}function object(_0x249463){const _0x4e48a1=a5_0x36b5;return Object[_0x4e48a1(0x1d7)][_0x4e48a1(0x1f5)][_0x4e48a1(0x1e3)](_0x249463)===_0x4e48a1(0x1dc);}function code(_0xbfe976,_0x4386d8=0x6){const _0x11e9d9=a5_0x36b5;return new RegExp(_0x11e9d9(0x1df)+_0x4386d8+'}$')[_0x11e9d9(0x1eb)](_0xbfe976);}function func(_0x47e558){const _0x22dbe5=a5_0x36b5;return typeof _0x47e558===_0x22dbe5(0x1f3);}function promise(_0x59f767){const _0x2b770a=a5_0x36b5;return object(_0x59f767)&&func(_0x59f767[_0x2b770a(0x1ee)])&&func(_0x59f767[_0x2b770a(0x1e8)]);}function image(_0x49c75c){const _0x52b96d=a5_0x36b5,_0x20f40c=_0x49c75c[_0x52b96d(0x1d6)]('?')[0x0],_0x526ab1=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x526ab1[_0x52b96d(0x1eb)](_0x20f40c);}function video(_0x3057aa){const _0xe79d06=a5_0x36b5,_0x213593=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x213593[_0xe79d06(0x1eb)](_0x3057aa);}function regExp(_0xbe3302){const _0x31ce9b=a5_0x36b5;return _0xbe3302&&Object['prototype'][_0x31ce9b(0x1f5)][_0x31ce9b(0x1e3)](_0xbe3302)==='[object\x20RegExp]';}function isNumeric(_0x5ad461,_0x4c3e0e=0x0){const _0x328115=a5_0x36b5;if(typeof _0x5ad461==='number')_0x5ad461=_0x5ad461[_0x328115(0x1f5)]();if(typeof _0x5ad461!==_0x328115(0x1f4))return![];switch(_0x4c3e0e){case 0x1:return/^\d+(\.\d+)?$/[_0x328115(0x1eb)](_0x5ad461);case 0x2:return/^-\d+(\.\d+)?$/[_0x328115(0x1eb)](_0x5ad461);case 0x3:return/^-?\d+$/['test'](_0x5ad461);case 0x4:return/^\d+$/[_0x328115(0x1eb)](_0x5ad461);case 0x5:return/^-\d+$/[_0x328115(0x1eb)](_0x5ad461);default:return/^-?\d*\.?\d*$/['test'](_0x5ad461)&&!_0x5ad461[_0x328115(0x1de)]('.')&&!_0x5ad461['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 a6_0xbb5ae3=a6_0x3a95;(function(_0x3d3060,_0x20074c){const _0x3c88bc=a6_0x3a95,_0x16c803=_0x3d3060();while(!![]){try{const _0x2fe438=-parseInt(_0x3c88bc(0x134))/0x1*(-parseInt(_0x3c88bc(0x18d))/0x2)+-parseInt(_0x3c88bc(0x145))/0x3*(-parseInt(_0x3c88bc(0x13d))/0x4)+-parseInt(_0x3c88bc(0x173))/0x5*(-parseInt(_0x3c88bc(0x146))/0x6)+parseInt(_0x3c88bc(0x13f))/0x7*(-parseInt(_0x3c88bc(0x142))/0x8)+-parseInt(_0x3c88bc(0x15d))/0x9*(-parseInt(_0x3c88bc(0x169))/0xa)+-parseInt(_0x3c88bc(0x130))/0xb+-parseInt(_0x3c88bc(0x14b))/0xc;if(_0x2fe438===_0x20074c)break;else _0x16c803['push'](_0x16c803['shift']());}catch(_0x1db4fe){_0x16c803['push'](_0x16c803['shift']());}}}(a6_0x54e5,0xe7c04));function fmtNum(_0x4a5b0e,_0x490fd1=!![]){const _0x1101d2=a6_0x3a95;if(_0x4a5b0e==0x0)return _0x490fd1?'0.00':'0';if(!_0x4a5b0e)return'';let _0x45f3df=typeof _0x4a5b0e===_0x1101d2(0x131)?parseFloat(_0x4a5b0e):_0x4a5b0e;if(isNaN(_0x45f3df))return'';return _0x45f3df[_0x1101d2(0x177)]('en-US',{'minimumFractionDigits':_0x490fd1?0x2:0x0,'maximumFractionDigits':_0x490fd1?0x2:0x0});}function splitName(_0x1fdc87,_0x2b91e3=![]){const _0x3b8711=a6_0x3a95;let _0x7490b5={'surname':'','givenName':''};if(_0x2b91e3){const _0x599130=_0x1fdc87['includes'](',')?_0x1fdc87['split'](','):_0x1fdc87[_0x3b8711(0x16d)](/\s+/);_0x599130[_0x3b8711(0x157)]>=0x2&&(_0x7490b5[_0x3b8711(0x140)]=_0x599130[0x0][_0x3b8711(0x180)](),_0x7490b5[_0x3b8711(0x17b)]=_0x599130[0x1][_0x3b8711(0x180)]());}else{const _0x5a2579=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x2d6db9=0x0;_0x2d6db9<_0x5a2579[_0x3b8711(0x157)];_0x2d6db9++){const _0x46b30e=_0x5a2579[_0x2d6db9];if(_0x1fdc87['startsWith'](_0x46b30e))return _0x7490b5[_0x3b8711(0x140)]=_0x46b30e,_0x7490b5[_0x3b8711(0x17b)]=_0x1fdc87[_0x3b8711(0x160)](_0x46b30e['length'])['trim'](),_0x7490b5;}const _0x210024=_0x1fdc87[_0x3b8711(0x16d)]('\x20');if(_0x210024[_0x3b8711(0x157)]===0x1){const _0x425168=_0x1fdc87[_0x3b8711(0x147)](/[\u4e00-\u9fa5]/);_0x7490b5['surname']=_0x425168?_0x425168[0x0]:'',_0x7490b5[_0x3b8711(0x17b)]=_0x1fdc87[_0x3b8711(0x186)](_0x7490b5[_0x3b8711(0x140)],'')[_0x3b8711(0x180)]();}else _0x7490b5['surname']=_0x210024[0x0],_0x7490b5[_0x3b8711(0x17b)]=_0x210024[_0x3b8711(0x182)](0x1)[_0x3b8711(0x166)]('\x20');}return _0x7490b5;}function a6_0x54e5(){const _0x3f1ff2=['slice','dayTitle','无效的操作符,操作符应为1、2、3或4','Nationality','replace','exec','random','nationality','YYYY','forEach','DateOfBirth','157996KltOyK','yyyy-mm-dd','Name','stringify','EnName','parse','padStart','4458641VpQWnG','string','englishName','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','10fXjYwp','setDate','getMonth','hasOwnProperty','includes','EnglishName','find','getFullYear','number','12pUTKlY','Birthday','2766337NRGjNf','surname','round','16ZXzVVn','GivenName','PassportNo','1894191GQawBa','36FSmgGX','match','IdNum','getHours','abs','36453420LZiANr','fjbh','max','givenNameEn','test','sex','除数不能为0','toString','getTime','DateOfExpiration','birthDate','prototype','length','BirthDate','toFixed','endsWith','expDate','Sex','2470401kSjOVe','push','getMinutes','substring','Birth','map','FamilyName','isArray','surnameEn','join','monthTitle','Quantity\x20should\x20be\x20greater\x20than\x200.','50wKtRCA','Surname','name','floor','split','_qh','function','getDate','ExpiryDate','error','938445uUQhVb','label','code','Number','toLocaleString','ValidDate','call','getSeconds','givenName','both','all','value','right','trim','boolean'];a6_0x54e5=function(){return _0x3f1ff2;};return a6_0x54e5();}function timeFormat(_0x12292a=null,_0x4c1a95=a6_0xbb5ae3(0x18e)){const _0x4c7e7d=a6_0xbb5ae3;let _0x2fbae3;if(!_0x12292a)_0x2fbae3=new Date();else{if(/^\d{10}$/[_0x4c7e7d(0x14f)](_0x12292a?.[_0x4c7e7d(0x152)]()[_0x4c7e7d(0x180)]()))_0x2fbae3=new Date(_0x12292a*0x3e8);else{if(typeof _0x12292a===_0x4c7e7d(0x131)&&/^\d+$/[_0x4c7e7d(0x14f)](_0x12292a[_0x4c7e7d(0x180)]()))_0x2fbae3=new Date(Number(_0x12292a));else typeof _0x12292a==='string'&&_0x12292a[_0x4c7e7d(0x138)]('-')&&!_0x12292a[_0x4c7e7d(0x138)]('T')?_0x2fbae3=new Date(_0x12292a[_0x4c7e7d(0x186)](/-/g,'/')):_0x2fbae3=new Date(_0x12292a);}}const _0x4c202c={'y':_0x2fbae3[_0x4c7e7d(0x13b)]()[_0x4c7e7d(0x152)](),'m':(_0x2fbae3['getMonth']()+0x1)[_0x4c7e7d(0x152)]()[_0x4c7e7d(0x12f)](0x2,'0'),'d':_0x2fbae3['getDate']()['toString']()[_0x4c7e7d(0x12f)](0x2,'0'),'h':_0x2fbae3[_0x4c7e7d(0x149)]()[_0x4c7e7d(0x152)]()[_0x4c7e7d(0x12f)](0x2,'0'),'M':_0x2fbae3['getMinutes']()['toString']()['padStart'](0x2,'0'),'s':_0x2fbae3[_0x4c7e7d(0x17a)]()[_0x4c7e7d(0x152)]()[_0x4c7e7d(0x12f)](0x2,'0')};for(const _0x497e14 in _0x4c202c){const [_0x365f3e]=new RegExp(_0x497e14+'+')[_0x4c7e7d(0x187)](_0x4c1a95)||[];if(_0x365f3e){const _0x49922c=_0x497e14==='y'&&_0x365f3e[_0x4c7e7d(0x157)]===0x2?0x2:0x0;_0x4c1a95=_0x4c1a95['replace'](_0x365f3e,_0x4c202c[_0x497e14][_0x4c7e7d(0x182)](_0x49922c));}}return _0x4c1a95;}function handleOCRData(_0x2c9405,_0x5255df){const _0x1902fe=a6_0xbb5ae3,_0x31b2b0=_0x38b983=>{const _0x3d8052=a6_0x3a95,_0x2e946e=_0x38b983[_0x3d8052(0x160)](0x0,0x4),_0x3b6da6=_0x38b983[_0x3d8052(0x160)](0x4,0x6),_0x1a21ed=_0x38b983['substring'](0x6,0x8);return _0x2e946e+'-'+_0x3b6da6+'-'+_0x1a21ed;};let _0x520ac8={'name':'','englishName':'','sex':'','surname':'','givenName':'','surnameEn':'','givenNameEn':'','expDate':'','birthDate':'','nationality':'','number':''};if(_0x2c9405===0x0||_0x2c9405===0x1||_0x2c9405===0x2){if(_0x5255df[_0x1902fe(0x15c)]==='M')_0x520ac8['sex']='男';else _0x520ac8[_0x1902fe(0x150)]='女';}debugger;_0x2c9405===0x0&&(_0x520ac8[_0x1902fe(0x16b)]=_0x5255df[_0x1902fe(0x18f)],_0x520ac8[_0x1902fe(0x140)]=_0x5255df[_0x1902fe(0x163)],_0x520ac8['givenName']=_0x5255df['FirstName'],_0x520ac8[_0x1902fe(0x15b)]=_0x5255df[_0x1902fe(0x171)],_0x520ac8[_0x1902fe(0x155)]=_0x5255df[_0x1902fe(0x158)],_0x520ac8[_0x1902fe(0x189)]=_0x5255df['Nationality'],_0x520ac8[_0x1902fe(0x13c)]=_0x5255df[_0x1902fe(0x144)]);if(_0x2c9405===0x1){_0x520ac8[_0x1902fe(0x16b)]=_0x5255df['Name'],_0x520ac8[_0x1902fe(0x140)]=_0x5255df[_0x1902fe(0x16a)],_0x520ac8[_0x1902fe(0x17b)]=_0x5255df[_0x1902fe(0x143)],_0x520ac8[_0x1902fe(0x15b)]=_0x5255df[_0x1902fe(0x154)],_0x520ac8[_0x1902fe(0x155)]=_0x5255df[_0x1902fe(0x18c)],_0x520ac8[_0x1902fe(0x189)]=_0x5255df[_0x1902fe(0x185)],_0x520ac8[_0x1902fe(0x13c)]=_0x5255df['ID'];if(!_0x5255df[_0x1902fe(0x16a)]&&!_0x5255df[_0x1902fe(0x143)]){const _0x46b5af=splitName(_0x5255df[_0x1902fe(0x18f)]);_0x520ac8[_0x1902fe(0x140)]=_0x46b5af[_0x1902fe(0x140)],_0x520ac8[_0x1902fe(0x17b)]=_0x46b5af[_0x1902fe(0x17b)];}if(!_0x5255df[_0x1902fe(0x139)])_0x520ac8[_0x1902fe(0x132)]=_0x5255df['Name'];}_0x2c9405===0x2&&(_0x520ac8[_0x1902fe(0x16b)]=_0x5255df['CnName'],_0x520ac8['englishName']=_0x5255df[_0x1902fe(0x12d)],_0x520ac8['birthDate']=_0x5255df[_0x1902fe(0x13e)],_0x520ac8[_0x1902fe(0x13c)]=_0x5255df['IdNum']);_0x2c9405===0x3&&(_0x520ac8[_0x1902fe(0x16b)]=_0x5255df[_0x1902fe(0x18f)],_0x520ac8['sex']=_0x5255df[_0x1902fe(0x15c)],_0x520ac8[_0x1902fe(0x15b)]=_0x5255df[_0x1902fe(0x178)],_0x520ac8[_0x1902fe(0x155)]=_0x5255df[_0x1902fe(0x161)],_0x520ac8[_0x1902fe(0x13c)]=_0x5255df[_0x1902fe(0x148)]);_0x2c9405===0x4&&(_0x520ac8[_0x1902fe(0x16b)]=_0x5255df[_0x1902fe(0x18f)],_0x520ac8['englishName']=_0x5255df[_0x1902fe(0x139)],_0x520ac8[_0x1902fe(0x150)]=_0x5255df[_0x1902fe(0x15c)],_0x520ac8[_0x1902fe(0x15b)]=_0x5255df[_0x1902fe(0x178)],_0x520ac8[_0x1902fe(0x155)]=_0x5255df[_0x1902fe(0x13e)],_0x520ac8[_0x1902fe(0x13c)]=_0x5255df[_0x1902fe(0x176)]);_0x2c9405===0x5&&(_0x520ac8[_0x1902fe(0x16b)]=_0x5255df['Name'],_0x520ac8[_0x1902fe(0x132)]=_0x5255df['EnglishName'],_0x520ac8['sex']=_0x5255df[_0x1902fe(0x15c)],_0x520ac8[_0x1902fe(0x15b)]=_0x5255df[_0x1902fe(0x178)],_0x520ac8[_0x1902fe(0x155)]=_0x5255df[_0x1902fe(0x13e)],_0x520ac8[_0x1902fe(0x13c)]=_0x5255df['Number']);if(_0x2c9405===0x2||_0x2c9405===0x3||_0x2c9405===0x4||_0x2c9405===0x5){const _0x2ec692=splitName(_0x520ac8[_0x1902fe(0x16b)]);_0x520ac8[_0x1902fe(0x140)]=_0x2ec692[_0x1902fe(0x140)],_0x520ac8['givenName']=_0x2ec692['givenName'];}if(_0x2c9405===0x2||_0x2c9405===0x4||_0x2c9405===0x5){const _0x16aeda=splitName(_0x520ac8[_0x1902fe(0x132)],!![]);_0x520ac8[_0x1902fe(0x165)]=_0x16aeda[_0x1902fe(0x140)],_0x520ac8[_0x1902fe(0x14e)]=_0x16aeda['givenName'];}if(_0x2c9405===0x0||_0x2c9405===0x1){if(_0x520ac8['birthDate']!=='')_0x520ac8[_0x1902fe(0x155)]=_0x31b2b0(_0x520ac8[_0x1902fe(0x155)]);if(_0x520ac8[_0x1902fe(0x15b)]!=='')_0x520ac8[_0x1902fe(0x15b)]=_0x31b2b0(_0x520ac8[_0x1902fe(0x15b)]);}if(_0x2c9405===0x2||_0x2c9405===0x3){if(_0x520ac8[_0x1902fe(0x155)]!=='')_0x520ac8[_0x1902fe(0x155)]=timeFormat(_0x520ac8[_0x1902fe(0x155)]);if(_0x520ac8['expDate']!=='')_0x520ac8['expDate']=timeFormat(_0x520ac8[_0x1902fe(0x15b)]);}if(_0x2c9405===0x4||_0x2c9405===0x5){if(_0x520ac8[_0x1902fe(0x155)]!=='')_0x520ac8[_0x1902fe(0x155)]=timeFormat(_0x520ac8['birthDate']);if(_0x520ac8[_0x1902fe(0x15b)]!==''){let _0x3b3a78=_0x520ac8[_0x1902fe(0x15b)][_0x1902fe(0x16d)]('-');_0x520ac8[_0x1902fe(0x15b)]=timeFormat(_0x3b3a78[0x1]);}}return{'type':_0x2c9405,'data':_0x520ac8};}function modifyKeys(_0x39e80f,_0x3d2fa1={'strCode':a6_0xbb5ae3(0x175),'strFjbh':a6_0xbb5ae3(0x14c),'strGuid':a6_0xbb5ae3(0x17e),'strValue':a6_0xbb5ae3(0x174)}){const _0x4f95b1=a6_0xbb5ae3;if(!_0x39e80f[_0x4f95b1(0x157)]||_0x39e80f===null)return[];const _0x160a9b=_0x39e80f[_0x4f95b1(0x162)](_0x137646=>{const _0x16fde7=_0x4f95b1,_0x1cb232={};for(const _0x417f44 in _0x137646){_0x3d2fa1[_0x16fde7(0x137)](_0x417f44)?_0x1cb232[_0x3d2fa1[_0x417f44]]=_0x137646[_0x417f44]:_0x1cb232[_0x417f44]=_0x137646[_0x417f44];}return _0x1cb232;});return _0x160a9b;}function sliceArray(_0x536ed7,_0x4aa856,_0x12ca69){const _0x37064f=a6_0xbb5ae3;if(_0x4aa856<=0x0)return console[_0x37064f(0x172)](_0x37064f(0x168)),[];return _0x12ca69?_0x536ed7[_0x37064f(0x182)](0x0,_0x4aa856):_0x536ed7['slice'](-_0x4aa856);}function findDataByData(_0x1c54b1,_0x46edd7,_0x5bb478){const _0x4237e3=a6_0xbb5ae3,_0x587c94=_0x1c54b1[_0x4237e3(0x13a)](_0x4319a8=>_0x4319a8[_0x5bb478]===_0x46edd7);return _0x587c94||null;}function splitArray(_0x2e6942,_0x37856b){const _0x1d3fe6=a6_0xbb5ae3,_0x12553c=[];for(let _0x45f7ec=0x0;_0x45f7ec<_0x2e6942['length'];_0x45f7ec+=_0x37856b){_0x12553c[_0x1d3fe6(0x15e)](_0x2e6942[_0x1d3fe6(0x182)](_0x45f7ec,_0x45f7ec+_0x37856b));}return _0x12553c;}function getProxyType(_0x41dbda){const _0x4cef38=a6_0xbb5ae3;return Object[_0x4cef38(0x156)][_0x4cef38(0x152)][_0x4cef38(0x179)](_0x41dbda)['slice'](0x8,-0x1);}let timeout=null;function debounce(_0x58de47,_0x5e78b4=0x1f4,_0x412930=![]){const _0xc7f99a=a6_0xbb5ae3;if(timeout!==null)clearTimeout(timeout);if(_0x412930){const _0x4cb463=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x5e78b4);if(_0x4cb463)typeof _0x58de47===_0xc7f99a(0x16f)&&_0x58de47();}else timeout=setTimeout(()=>{const _0x2c0f67=_0xc7f99a;typeof _0x58de47===_0x2c0f67(0x16f)&&_0x58de47();},_0x5e78b4);}function urlEncode(_0x21cebe={}){const _0x26f91a=a6_0xbb5ae3,_0x59fc07=[];for(const _0x25cd97 in _0x21cebe){const _0x49fef7=_0x21cebe[_0x25cd97];if(!_0x49fef7)continue;isArray(_0x49fef7)?_0x49fef7[_0x26f91a(0x18b)](_0x4aaf64=>{_0x59fc07['push'](_0x25cd97+'='+_0x4aaf64);}):_0x59fc07['push'](_0x25cd97+'='+_0x49fef7);}return _0x59fc07[_0x26f91a(0x166)]('&');}function dateFormat(_0x2733c5,_0x2d5dd5){const _0x3055a7=a6_0xbb5ae3,_0x1108c3=new Date(_0x2d5dd5),_0x1ecc4c={'Y+':_0x1108c3[_0x3055a7(0x13b)]()['toString'](),'m+':(_0x1108c3[_0x3055a7(0x136)]()+0x1)[_0x3055a7(0x152)](),'d+':_0x1108c3[_0x3055a7(0x170)]()[_0x3055a7(0x152)](),'H+':_0x1108c3[_0x3055a7(0x149)]()[_0x3055a7(0x152)](),'M+':_0x1108c3[_0x3055a7(0x15f)]()[_0x3055a7(0x152)](),'S+':_0x1108c3[_0x3055a7(0x17a)]()[_0x3055a7(0x152)]()};let _0x32bf8e;for(let _0x443a01 in _0x1ecc4c){_0x32bf8e=new RegExp('('+_0x443a01+')')[_0x3055a7(0x187)](_0x2733c5);_0x32bf8e&&(_0x2733c5=_0x2733c5[_0x3055a7(0x186)](_0x32bf8e[0x1],_0x32bf8e[0x1]['length']==0x1?_0x1ecc4c[_0x443a01]:_0x1ecc4c[_0x443a01][_0x3055a7(0x12f)](_0x32bf8e[0x1]['length'],'0')));;};return _0x2733c5;}function formatDate(_0x42295c,_0x57223e='YYYY-MM-DD',_0x456523={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x19411f=a6_0xbb5ae3,_0x3ec125=new Date(_0x42295c),_0x1dcd86=_0x3ec125[_0x19411f(0x13b)](),_0x38fa70=_0x3ec125[_0x19411f(0x136)]()+0x1,_0x25d960=_0x3ec125['getDate'](),_0x4edbe7=_0x38fa70<0xa?'0'+_0x38fa70:_0x38fa70,_0x3efe31=_0x25d960<0xa?'0'+_0x25d960:_0x25d960;let _0x3a8d02=_0x57223e[_0x19411f(0x186)]('YYYY',_0x1dcd86)[_0x19411f(0x186)]('MM',_0x4edbe7)[_0x19411f(0x186)]('DD',_0x3efe31);return _0x3a8d02=_0x3a8d02[_0x19411f(0x186)](/-MM/g,_0x456523[_0x19411f(0x167)])['replace'](/-DD/g,_0x456523[_0x19411f(0x183)])['replace'](_0x19411f(0x18a)+_0x456523['yearTitle'],'')[_0x19411f(0x186)]('MM'+_0x456523[_0x19411f(0x167)],'')[_0x19411f(0x186)]('DD'+_0x456523['dayTitle'],''),_0x3a8d02;}function compareDates(_0x10003a,_0x5f7c9b){const _0x493b21=a6_0xbb5ae3;_0x10003a=new Date(_0x10003a);!_0x5f7c9b?_0x5f7c9b=new Date():_0x5f7c9b=new Date(_0x5f7c9b);_0x10003a['setHours'](0x0,0x0,0x0,0x0),_0x5f7c9b['setHours'](0x0,0x0,0x0,0x0);var _0x4d7891=_0x10003a[_0x493b21(0x153)](),_0x8b190=_0x5f7c9b[_0x493b21(0x153)]();if(_0x4d7891<_0x8b190)return-0x1;else return _0x4d7891>_0x8b190?0x1:0x0;}function getDaysBetween(_0x19c73c,_0x49834c){const _0x332096=a6_0xbb5ae3,_0x4a64f0=new Date(_0x19c73c),_0x4adb43=new Date(_0x49834c),_0x33a9cc=Math[_0x332096(0x14a)](_0x4a64f0['getTime']()-_0x4adb43[_0x332096(0x153)]()),_0x4560a7=Math['floor'](_0x33a9cc/(0x3e8*0x3c*0x3c*0x18));return _0x4560a7+0x1;}function chineseNumeral(_0x1f9231){const _0x30775d=a6_0xbb5ae3,_0x5c5b55=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x1912bf=['','拾','佰','仟'],_0x1907de=['','万','亿','兆'];let _0x317608=Math[_0x30775d(0x16c)](_0x1f9231),_0x1b15fd=Math[_0x30775d(0x141)]((_0x1f9231-_0x317608)*0x64),_0x221c1f='';for(let _0x42ecf8=0x0;_0x317608>0x0;_0x42ecf8++){let _0x30f0a1='',_0x3891cd=_0x317608%0x2710;_0x317608=Math[_0x30775d(0x16c)](_0x317608/0x2710);for(let _0x2356fd=0x0;_0x3891cd>0x0;_0x2356fd++){let _0x5a608b=_0x3891cd%0xa;_0x30f0a1=(_0x5a608b?_0x5c5b55[_0x5a608b]+_0x1912bf[_0x2356fd]:'')+_0x30f0a1,_0x3891cd=Math[_0x30775d(0x16c)](_0x3891cd/0xa);}_0x221c1f=_0x30f0a1+(_0x30f0a1?_0x1907de[_0x42ecf8]:_0x1907de[_0x42ecf8]&&!_0x221c1f[_0x30775d(0x138)]('零')?'零':'')+_0x221c1f;}_0x221c1f+=_0x221c1f?'元':'零元';if(_0x1b15fd>0x0){let _0x7e1c47=Math['floor'](_0x1b15fd/0xa),_0x23268e=_0x1b15fd%0xa;_0x221c1f+=(_0x7e1c47?_0x5c5b55[_0x7e1c47]+'角':'')+(_0x23268e?_0x5c5b55[_0x23268e]+'分':'');}else _0x221c1f+='整';return _0x221c1f['replace'](/零{2,}/g,'零')['replace'](/零元/,'元');}function getMonthDate(_0x26fa4f){const _0x320634=a6_0xbb5ae3;(!_0x26fa4f||_0x26fa4f[_0x320634(0x180)]()==='')&&(_0x26fa4f=new Date()['getFullYear']()+'-'+(new Date()[_0x320634(0x136)]()+0x1));let _0x3fc3f2=[],[_0xd755ca,_0x31c809]=_0x26fa4f[_0x320634(0x16d)]('-')[_0x320634(0x162)](Number),_0x47526b=new Date(_0xd755ca,_0x31c809,0x0),_0x99d3ca=_0x47526b[_0x320634(0x170)]();for(let _0x507d41=0x1;_0x507d41<=_0x99d3ca;_0x507d41++){let _0x5c481c=_0x507d41<0xa?'0'+_0x507d41:''+_0x507d41,_0x5cdcb5=_0x31c809<0xa?'0'+_0x31c809:''+_0x31c809;_0x3fc3f2[_0x320634(0x15e)]({'date':_0xd755ca+'-'+_0x5cdcb5+'-'+_0x5c481c,'disable':!![]});}return _0x3fc3f2;}function getToday(_0x5edc7f){const _0x15a410=a6_0xbb5ae3;var _0x50fbc0=new Date(),_0x22d6c8=String(_0x50fbc0[_0x15a410(0x170)]())[_0x15a410(0x12f)](0x2,'0'),_0x4802d3=String(_0x50fbc0[_0x15a410(0x136)]()+0x1)[_0x15a410(0x12f)](0x2,'0'),_0x3ab582=_0x50fbc0[_0x15a410(0x13b)]();return _0x50fbc0=_0x3ab582+'-'+_0x4802d3+'-'+_0x22d6c8,_0x50fbc0;}function resetObject(_0x17ab0c){const _0x34bf31=a6_0xbb5ae3;let _0x7bd48b=JSON[_0x34bf31(0x12e)](JSON[_0x34bf31(0x12c)](_0x17ab0c));for(const _0x59fd75 in _0x7bd48b){if(typeof _0x7bd48b[_0x59fd75]===_0x34bf31(0x13c))_0x7bd48b[_0x59fd75]=0x0;else{if(typeof _0x7bd48b[_0x59fd75]===_0x34bf31(0x181))_0x7bd48b[_0x59fd75]=![];else{if(Array[_0x34bf31(0x164)](_0x7bd48b[_0x59fd75]))_0x7bd48b[_0x59fd75]=[];else typeof _0x7bd48b[_0x59fd75]==='object'&&_0x7bd48b[_0x59fd75]!==null?resetObject(_0x7bd48b[_0x59fd75]):_0x7bd48b[_0x59fd75]='';}}}return _0x7bd48b;}function preciseOperation(_0x5ccd14,_0x5a09fd,_0x3f6348,_0x58b1d8=0xf4240){const _0x54d8f8=a6_0xbb5ae3;if(isNaN(_0x5ccd14)||isNaN(_0x5a09fd))return NaN;if(!isFinite(_0x5ccd14)||!isFinite(_0x5a09fd))return NaN;let _0x114fee=BigInt(Math[_0x54d8f8(0x141)](_0x5ccd14*_0x58b1d8)),_0x3c6293=BigInt(Math[_0x54d8f8(0x141)](_0x5a09fd*_0x58b1d8)),_0x31c0dd;switch(_0x3f6348){case 0x1:_0x31c0dd=_0x114fee+_0x3c6293;break;case 0x2:_0x31c0dd=_0x114fee-_0x3c6293;break;case 0x3:_0x31c0dd=_0x114fee*_0x3c6293;break;case 0x4:if(_0x3c6293===0x0n)throw new Error(_0x54d8f8(0x151));_0x31c0dd=_0x114fee/_0x3c6293;break;default:throw new Error(_0x54d8f8(0x184));}return Number(_0x31c0dd)/_0x58b1d8;}function a6_0x3a95(_0x477506,_0x2bacd0){const _0x54e546=a6_0x54e5();return a6_0x3a95=function(_0x3a95d6,_0x491841){_0x3a95d6=_0x3a95d6-0x12c;let _0x2c6bca=_0x54e546[_0x3a95d6];return _0x2c6bca;},a6_0x3a95(_0x477506,_0x2bacd0);}function preciseSum(_0x12830c){const _0x491b4c=a6_0xbb5ae3;let _0x247011=0x0;for(const _0x3a93b9 of _0x12830c){let _0x1ae7c0=0x0;if(typeof _0x3a93b9===_0x491b4c(0x131)){const _0x24c6b6=parseFloat(_0x3a93b9);!isNaN(_0x24c6b6)&&(_0x1ae7c0=_0x24c6b6);}else typeof _0x3a93b9==='number'&&(_0x1ae7c0=_0x3a93b9);_0x247011=preciseOperation(_0x247011,_0x1ae7c0,0x1);}return _0x247011;}function getRelativeDate(_0x49664f,_0x681fb1=0x0){const _0x8f14c6=a6_0xbb5ae3,_0x5de71f=new Date(_0x49664f);_0x5de71f[_0x8f14c6(0x135)](_0x5de71f[_0x8f14c6(0x170)]()+_0x681fb1);const _0x330404=_0x5de71f[_0x8f14c6(0x13b)](),_0x529e3d=(_0x5de71f['getMonth']()+0x1)[_0x8f14c6(0x152)]()[_0x8f14c6(0x12f)](0x2,'0'),_0x274f86=_0x5de71f[_0x8f14c6(0x170)]()[_0x8f14c6(0x152)]()[_0x8f14c6(0x12f)](0x2,'0');return _0x330404+'-'+_0x529e3d+'-'+_0x274f86;}function validateFields(_0x3791a1,_0x5ba409,_0xdfede0=''){for(let _0x3157a7 of _0x5ba409){if(_0x3791a1[_0x3157a7]===_0xdfede0)return!![];}return![];}function mergeObjects(_0xb643d7,_0x33e495){const _0x6b1c96=a6_0xbb5ae3;for(const _0x2396ed in _0xb643d7){_0x33e495[_0x6b1c96(0x137)](_0x2396ed)&&(_0xb643d7[_0x2396ed]=_0x33e495[_0x2396ed]);}return _0xb643d7;}const formatToDecimal=(_0x26db1f,_0xabcda3=0x2)=>{const _0x1e5b28=a6_0xbb5ae3;if(isNaN(_0xabcda3)||_0xabcda3<0x0)return _0x26db1f;let _0x494195=Number(_0x26db1f);if(!isFinite(_0x494195))return _0x26db1f;return _0xabcda3=Math[_0x1e5b28(0x14d)](0x0,Math['floor'](_0xabcda3)),_0x494195[_0x1e5b28(0x159)](_0xabcda3);};function findKeysEndingWith(_0x5ed84d,_0x3b68b2=a6_0xbb5ae3(0x16e)){const _0x42dd0a=a6_0xbb5ae3;let _0x3bd04c=[];for(var _0x2d978c in _0x5ed84d){if(_0x5ed84d['hasOwnProperty'](_0x2d978c)){if(_0x2d978c[_0x42dd0a(0x15a)](_0x3b68b2))_0x3bd04c[_0x42dd0a(0x15e)](_0x2d978c);}}return _0x3bd04c;}function guid(_0x3b4313=0x20,_0x32569c=!![],_0x109767=null){const _0x406e9c=a6_0xbb5ae3,_0x395b5d=_0x406e9c(0x133)[_0x406e9c(0x16d)](''),_0x4a4dde=[];_0x109767=_0x109767||_0x395b5d[_0x406e9c(0x157)];if(_0x3b4313){for(let _0x4e59ef=0x0;_0x4e59ef<_0x3b4313;_0x4e59ef++)_0x4a4dde[_0x4e59ef]=_0x395b5d[0x0|Math[_0x406e9c(0x188)]()*_0x109767];}else{let _0x30f3f7;_0x4a4dde[0x8]=_0x4a4dde[0xd]=_0x4a4dde[0x12]=_0x4a4dde[0x17]='-',_0x4a4dde[0xe]='4';for(let _0x5209e8=0x0;_0x5209e8<0x24;_0x5209e8++){!_0x4a4dde[_0x5209e8]&&(_0x30f3f7=0x0|Math[_0x406e9c(0x188)]()*0x10,_0x4a4dde[_0x5209e8]=_0x395b5d[_0x5209e8==0x13?_0x30f3f7&0x3|0x8:_0x30f3f7]);}}if(_0x32569c)return _0x4a4dde['shift'](),'u'+_0x4a4dde[_0x406e9c(0x166)]('');return _0x4a4dde[_0x406e9c(0x166)]('');}function trim(_0x12c5a3,_0x41f5e3='both'){const _0x367e38=a6_0xbb5ae3;_0x12c5a3=String(_0x12c5a3);if(_0x41f5e3==_0x367e38(0x17c))return _0x12c5a3[_0x367e38(0x186)](/^\s+|\s+$/g,'');if(_0x41f5e3=='left')return _0x12c5a3[_0x367e38(0x186)](/^\s*/,'');if(_0x41f5e3==_0x367e38(0x17f))return _0x12c5a3[_0x367e38(0x186)](/(\s*$)/g,'');if(_0x41f5e3==_0x367e38(0x17d))return _0x12c5a3['replace'](/\s+/g,'');return _0x12c5a3;}export default{'handleOCRData':handleOCRData,'timeFormat':timeFormat,'guid':guid,'trim':trim,'findKeysEndingWith':findKeysEndingWith,'formatToDecimal':formatToDecimal,'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'urlEncode':urlEncode,'dateFormat':dateFormat,'formatDate':formatDate,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
1
+ const a6_0x501f4a=a6_0x59b1;function a6_0x59b1(_0x555a1d,_0x3a452e){const _0x4d1293=a6_0x4d12();return a6_0x59b1=function(_0x59b199,_0x274774){_0x59b199=_0x59b199-0xf2;let _0x464503=_0x4d1293[_0x59b199];return _0x464503;},a6_0x59b1(_0x555a1d,_0x3a452e);}(function(_0x72c8b7,_0x30274f){const _0x111d11=a6_0x59b1,_0x54274c=_0x72c8b7();while(!![]){try{const _0x46e0dc=parseInt(_0x111d11(0x110))/0x1+-parseInt(_0x111d11(0x126))/0x2+-parseInt(_0x111d11(0x107))/0x3+parseInt(_0x111d11(0xf6))/0x4*(-parseInt(_0x111d11(0x117))/0x5)+-parseInt(_0x111d11(0x115))/0x6+-parseInt(_0x111d11(0x10e))/0x7+parseInt(_0x111d11(0x141))/0x8;if(_0x46e0dc===_0x30274f)break;else _0x54274c['push'](_0x54274c['shift']());}catch(_0x42cc1a){_0x54274c['push'](_0x54274c['shift']());}}}(a6_0x4d12,0x7ddf8));function fmtNum(_0x13c34e,_0x22f46f=!![]){const _0x1a1225=a6_0x59b1;if(_0x13c34e==0x0)return _0x22f46f?'0.00':'0';if(!_0x13c34e)return'';let _0x516cee=typeof _0x13c34e===_0x1a1225(0x13d)?parseFloat(_0x13c34e):_0x13c34e;if(isNaN(_0x516cee))return'';return _0x516cee[_0x1a1225(0xf4)](_0x1a1225(0x118),{'minimumFractionDigits':_0x22f46f?0x2:0x0,'maximumFractionDigits':_0x22f46f?0x2:0x0});}function splitName(_0x253bbb,_0x2203de=![]){const _0x1299ac=a6_0x59b1;let _0x5d97ce={'surname':'','givenName':''};if(_0x2203de){const _0x596332=_0x253bbb[_0x1299ac(0xf3)](',')?_0x253bbb[_0x1299ac(0x129)](','):_0x253bbb['split'](/\s+/);_0x596332[_0x1299ac(0x109)]>=0x2&&(_0x5d97ce[_0x1299ac(0x119)]=_0x596332[0x0][_0x1299ac(0x137)](),_0x5d97ce[_0x1299ac(0x142)]=_0x596332[0x1][_0x1299ac(0x137)]());}else{const _0x2f9f20=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x21ea50=0x0;_0x21ea50<_0x2f9f20[_0x1299ac(0x109)];_0x21ea50++){const _0x47efd0=_0x2f9f20[_0x21ea50];if(_0x253bbb[_0x1299ac(0xf7)](_0x47efd0))return _0x5d97ce[_0x1299ac(0x119)]=_0x47efd0,_0x5d97ce[_0x1299ac(0x142)]=_0x253bbb[_0x1299ac(0x145)](_0x47efd0[_0x1299ac(0x109)])[_0x1299ac(0x137)](),_0x5d97ce;}const _0x3d6b52=_0x253bbb[_0x1299ac(0x129)]('\x20');if(_0x3d6b52[_0x1299ac(0x109)]===0x1){const _0x41f910=_0x253bbb[_0x1299ac(0x143)](/[\u4e00-\u9fa5]/);_0x5d97ce[_0x1299ac(0x119)]=_0x41f910?_0x41f910[0x0]:'',_0x5d97ce[_0x1299ac(0x142)]=_0x253bbb[_0x1299ac(0x146)](_0x5d97ce[_0x1299ac(0x119)],'')[_0x1299ac(0x137)]();}else _0x5d97ce[_0x1299ac(0x119)]=_0x3d6b52[0x0],_0x5d97ce['givenName']=_0x3d6b52[_0x1299ac(0x12e)](0x1)[_0x1299ac(0x122)]('\x20');}return _0x5d97ce;}function timeFormat(_0x2df57f=null,_0x6ea0ed=a6_0x501f4a(0xf8)){const _0x1f7da1=a6_0x501f4a;let _0x3e5793;if(!_0x2df57f)_0x3e5793=new Date();else{if(/^\d{10}$/[_0x1f7da1(0x121)](_0x2df57f?.[_0x1f7da1(0x100)]()[_0x1f7da1(0x137)]()))_0x3e5793=new Date(_0x2df57f*0x3e8);else{if(typeof _0x2df57f==='string'&&/^\d+$/['test'](_0x2df57f[_0x1f7da1(0x137)]()))_0x3e5793=new Date(Number(_0x2df57f));else typeof _0x2df57f==='string'&&_0x2df57f[_0x1f7da1(0xf3)]('-')&&!_0x2df57f[_0x1f7da1(0xf3)]('T')?_0x3e5793=new Date(_0x2df57f[_0x1f7da1(0x146)](/-/g,'/')):_0x3e5793=new Date(_0x2df57f);}}const _0x16383a={'y':_0x3e5793[_0x1f7da1(0x139)]()[_0x1f7da1(0x100)](),'m':(_0x3e5793['getMonth']()+0x1)[_0x1f7da1(0x100)]()[_0x1f7da1(0x131)](0x2,'0'),'d':_0x3e5793[_0x1f7da1(0x10c)]()[_0x1f7da1(0x100)]()[_0x1f7da1(0x131)](0x2,'0'),'h':_0x3e5793[_0x1f7da1(0x136)]()[_0x1f7da1(0x100)]()[_0x1f7da1(0x131)](0x2,'0'),'M':_0x3e5793[_0x1f7da1(0x14f)]()[_0x1f7da1(0x100)]()[_0x1f7da1(0x131)](0x2,'0'),'s':_0x3e5793[_0x1f7da1(0xfd)]()[_0x1f7da1(0x100)]()[_0x1f7da1(0x131)](0x2,'0')};for(const _0x431c43 in _0x16383a){const [_0x56015a]=new RegExp(_0x431c43+'+')['exec'](_0x6ea0ed)||[];if(_0x56015a){const _0x436f4e=_0x431c43==='y'&&_0x56015a[_0x1f7da1(0x109)]===0x2?0x2:0x0;_0x6ea0ed=_0x6ea0ed[_0x1f7da1(0x146)](_0x56015a,_0x16383a[_0x431c43][_0x1f7da1(0x12e)](_0x436f4e));}}return _0x6ea0ed;}function handleOCRData(_0x52f825,_0x18d000){const _0x4c8d6c=a6_0x501f4a,_0x41a12e=_0x5c8e43=>{const _0x76a7ef=a6_0x59b1,_0x39bb49=_0x5c8e43[_0x76a7ef(0x145)](0x0,0x4),_0x823f69=_0x5c8e43[_0x76a7ef(0x145)](0x4,0x6),_0x230857=_0x5c8e43['substring'](0x6,0x8);return _0x39bb49+'-'+_0x823f69+'-'+_0x230857;};let _0x190360={'name':'','englishName':'','sex':'','surname':'','givenName':'','surnameEn':'','givenNameEn':'','expDate':'','birthDate':'','nationality':'','number':''};if(_0x52f825===0x0||_0x52f825===0x1||_0x52f825===0x2){if(_0x18d000[_0x4c8d6c(0x101)]==='M')_0x190360[_0x4c8d6c(0x127)]='男';else _0x190360[_0x4c8d6c(0x127)]='女';}debugger;_0x52f825===0x0&&(_0x190360[_0x4c8d6c(0x144)]=_0x18d000[_0x4c8d6c(0x132)],_0x190360['surname']=_0x18d000[_0x4c8d6c(0x13e)],_0x190360['givenName']=_0x18d000[_0x4c8d6c(0x114)],_0x190360['expDate']=_0x18d000['ExpiryDate'],_0x190360[_0x4c8d6c(0x14d)]=_0x18d000[_0x4c8d6c(0x13b)],_0x190360['nationality']=_0x18d000['Nationality'],_0x190360[_0x4c8d6c(0x11e)]=_0x18d000[_0x4c8d6c(0x125)]);if(_0x52f825===0x1){_0x190360[_0x4c8d6c(0x144)]=_0x18d000[_0x4c8d6c(0x132)],_0x190360['surname']=_0x18d000[_0x4c8d6c(0x103)],_0x190360[_0x4c8d6c(0x142)]=_0x18d000['GivenName'],_0x190360[_0x4c8d6c(0x147)]=_0x18d000[_0x4c8d6c(0xf2)],_0x190360['birthDate']=_0x18d000[_0x4c8d6c(0x105)],_0x190360[_0x4c8d6c(0x14c)]=_0x18d000['Nationality'],_0x190360[_0x4c8d6c(0x11e)]=_0x18d000['ID'];if(!_0x18d000[_0x4c8d6c(0x103)]&&!_0x18d000['GivenName']){const _0x2fe5ca=splitName(_0x18d000[_0x4c8d6c(0x132)]);_0x190360[_0x4c8d6c(0x119)]=_0x2fe5ca['surname'],_0x190360[_0x4c8d6c(0x142)]=_0x2fe5ca[_0x4c8d6c(0x142)];}if(!_0x18d000[_0x4c8d6c(0x10d)])_0x190360[_0x4c8d6c(0x10a)]=_0x18d000['Name'];}_0x52f825===0x2&&(_0x190360[_0x4c8d6c(0x144)]=_0x18d000['CnName'],_0x190360[_0x4c8d6c(0x10a)]=_0x18d000[_0x4c8d6c(0x148)],_0x190360[_0x4c8d6c(0x14d)]=_0x18d000[_0x4c8d6c(0x133)],_0x190360[_0x4c8d6c(0x11e)]=_0x18d000['IdNum']);_0x52f825===0x3&&(_0x190360[_0x4c8d6c(0x144)]=_0x18d000['Name'],_0x190360[_0x4c8d6c(0x127)]=_0x18d000['Sex'],_0x190360['expDate']=_0x18d000[_0x4c8d6c(0x135)],_0x190360[_0x4c8d6c(0x14d)]=_0x18d000[_0x4c8d6c(0x11b)],_0x190360['number']=_0x18d000['IdNum']);_0x52f825===0x4&&(_0x190360[_0x4c8d6c(0x144)]=_0x18d000[_0x4c8d6c(0x132)],_0x190360[_0x4c8d6c(0x10a)]=_0x18d000[_0x4c8d6c(0x10d)],_0x190360['sex']=_0x18d000[_0x4c8d6c(0x101)],_0x190360['expDate']=_0x18d000[_0x4c8d6c(0x135)],_0x190360[_0x4c8d6c(0x14d)]=_0x18d000[_0x4c8d6c(0x133)],_0x190360[_0x4c8d6c(0x11e)]=_0x18d000[_0x4c8d6c(0x111)]);_0x52f825===0x5&&(_0x190360[_0x4c8d6c(0x144)]=_0x18d000['Name'],_0x190360['englishName']=_0x18d000['EnglishName'],_0x190360[_0x4c8d6c(0x127)]=_0x18d000[_0x4c8d6c(0x101)],_0x190360[_0x4c8d6c(0x147)]=_0x18d000[_0x4c8d6c(0x135)],_0x190360[_0x4c8d6c(0x14d)]=_0x18d000[_0x4c8d6c(0x133)],_0x190360['number']=_0x18d000[_0x4c8d6c(0x111)]);if(_0x52f825===0x2||_0x52f825===0x3||_0x52f825===0x4||_0x52f825===0x5){const _0x48ea16=splitName(_0x190360[_0x4c8d6c(0x144)]);_0x190360['surname']=_0x48ea16['surname'],_0x190360[_0x4c8d6c(0x142)]=_0x48ea16[_0x4c8d6c(0x142)];}if(_0x52f825===0x2||_0x52f825===0x4||_0x52f825===0x5){const _0x5fb622=splitName(_0x190360[_0x4c8d6c(0x10a)],!![]);_0x190360[_0x4c8d6c(0x13f)]=_0x5fb622[_0x4c8d6c(0x119)],_0x190360[_0x4c8d6c(0x12d)]=_0x5fb622[_0x4c8d6c(0x142)];}if(_0x52f825===0x0||_0x52f825===0x1){if(_0x190360[_0x4c8d6c(0x14d)]!=='')_0x190360['birthDate']=_0x41a12e(_0x190360['birthDate']);if(_0x190360['expDate']!=='')_0x190360['expDate']=_0x41a12e(_0x190360[_0x4c8d6c(0x147)]);}if(_0x52f825===0x2||_0x52f825===0x3){if(_0x190360[_0x4c8d6c(0x14d)]!=='')_0x190360['birthDate']=timeFormat(_0x190360['birthDate']);if(_0x190360[_0x4c8d6c(0x147)]!=='')_0x190360['expDate']=timeFormat(_0x190360[_0x4c8d6c(0x147)]);}if(_0x52f825===0x4||_0x52f825===0x5){if(_0x190360[_0x4c8d6c(0x14d)]!=='')_0x190360[_0x4c8d6c(0x14d)]=timeFormat(_0x190360['birthDate']);if(_0x190360[_0x4c8d6c(0x147)]!==''){let _0x397185=_0x190360['expDate'][_0x4c8d6c(0x129)]('-');_0x190360[_0x4c8d6c(0x147)]=timeFormat(_0x397185[0x1]);}}return{'type':_0x52f825,'data':_0x190360};}function modifyKeys(_0x400a68,_0x2ab940={'strCode':a6_0x501f4a(0x104),'strFjbh':a6_0x501f4a(0x10f),'strGuid':a6_0x501f4a(0xff),'strValue':a6_0x501f4a(0x11d)}){const _0x372d29=a6_0x501f4a;if(!_0x400a68['length']||_0x400a68===null)return[];const _0x432acb=_0x400a68[_0x372d29(0x14a)](_0x437e63=>{const _0x96f9b7={};for(const _0x418823 in _0x437e63){_0x2ab940['hasOwnProperty'](_0x418823)?_0x96f9b7[_0x2ab940[_0x418823]]=_0x437e63[_0x418823]:_0x96f9b7[_0x418823]=_0x437e63[_0x418823];}return _0x96f9b7;});return _0x432acb;}function sliceArray(_0x135ceb,_0x48e466,_0x44883e){const _0x269975=a6_0x501f4a;if(_0x48e466<=0x0)return console['error'](_0x269975(0x123)),[];return _0x44883e?_0x135ceb[_0x269975(0x12e)](0x0,_0x48e466):_0x135ceb[_0x269975(0x12e)](-_0x48e466);}function findDataByData(_0x826691,_0x33e78e,_0x268897){const _0x1d13ce=a6_0x501f4a,_0x1d8b4b=_0x826691[_0x1d13ce(0x12f)](_0x8c8798=>_0x8c8798[_0x268897]===_0x33e78e);return _0x1d8b4b||null;}function splitArray(_0x31f0fd,_0xefef93){const _0x6126f=a6_0x501f4a,_0x21959e=[];for(let _0x5fc962=0x0;_0x5fc962<_0x31f0fd[_0x6126f(0x109)];_0x5fc962+=_0xefef93){_0x21959e['push'](_0x31f0fd['slice'](_0x5fc962,_0x5fc962+_0xefef93));}return _0x21959e;}function getProxyType(_0x57ec22){const _0xcf8dde=a6_0x501f4a;return Object[_0xcf8dde(0x106)][_0xcf8dde(0x100)][_0xcf8dde(0x11f)](_0x57ec22)['slice'](0x8,-0x1);}let timeout=null;function debounce(_0x11062e,_0x362c1c=0x1f4,_0x1f1851=![]){const _0x5a9501=a6_0x501f4a;if(timeout!==null)clearTimeout(timeout);if(_0x1f1851){const _0x5a1d13=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x362c1c);if(_0x5a1d13)typeof _0x11062e===_0x5a9501(0x12b)&&_0x11062e();}else timeout=setTimeout(()=>{typeof _0x11062e==='function'&&_0x11062e();},_0x362c1c);}function urlEncode(_0x33d724={}){const _0x2f7bad=[];for(const _0x157e1e in _0x33d724){const _0x1efbed=_0x33d724[_0x157e1e];if(!_0x1efbed)continue;isArray(_0x1efbed)?_0x1efbed['forEach'](_0x498772=>{const _0x47058b=a6_0x59b1;_0x2f7bad[_0x47058b(0x112)](_0x157e1e+'='+_0x498772);}):_0x2f7bad['push'](_0x157e1e+'='+_0x1efbed);}return _0x2f7bad['join']('&');}function dateFormat(_0x486552,_0x156b11){const _0x44545c=a6_0x501f4a,_0x2b14cd=new Date(_0x156b11),_0x47902b={'Y+':_0x2b14cd[_0x44545c(0x139)]()[_0x44545c(0x100)](),'m+':(_0x2b14cd[_0x44545c(0xfe)]()+0x1)[_0x44545c(0x100)](),'d+':_0x2b14cd[_0x44545c(0x10c)]()[_0x44545c(0x100)](),'H+':_0x2b14cd['getHours']()[_0x44545c(0x100)](),'M+':_0x2b14cd[_0x44545c(0x14f)]()[_0x44545c(0x100)](),'S+':_0x2b14cd[_0x44545c(0xfd)]()[_0x44545c(0x100)]()};let _0x344592;for(let _0xb46dfb in _0x47902b){_0x344592=new RegExp('('+_0xb46dfb+')')[_0x44545c(0xfa)](_0x486552);_0x344592&&(_0x486552=_0x486552[_0x44545c(0x146)](_0x344592[0x1],_0x344592[0x1][_0x44545c(0x109)]==0x1?_0x47902b[_0xb46dfb]:_0x47902b[_0xb46dfb][_0x44545c(0x131)](_0x344592[0x1][_0x44545c(0x109)],'0')));;};return _0x486552;}function formatDate(_0xe8896e,_0x4237ef=a6_0x501f4a(0x120),_0x4f0c94={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x27fdd2=a6_0x501f4a,_0x4d128e=new Date(_0xe8896e),_0xdba52b=_0x4d128e[_0x27fdd2(0x139)](),_0x47c117=_0x4d128e['getMonth']()+0x1,_0x462e71=_0x4d128e[_0x27fdd2(0x10c)](),_0x240a1d=_0x47c117<0xa?'0'+_0x47c117:_0x47c117,_0x372623=_0x462e71<0xa?'0'+_0x462e71:_0x462e71;let _0x2b1933=_0x4237ef['replace']('YYYY',_0xdba52b)['replace']('MM',_0x240a1d)['replace']('DD',_0x372623);return _0x2b1933=_0x2b1933['replace'](/-MM/g,_0x4f0c94['monthTitle'])['replace'](/-DD/g,_0x4f0c94['dayTitle'])['replace'](_0x27fdd2(0x102)+_0x4f0c94['yearTitle'],'')[_0x27fdd2(0x146)]('MM'+_0x4f0c94[_0x27fdd2(0x128)],'')[_0x27fdd2(0x146)]('DD'+_0x4f0c94[_0x27fdd2(0x149)],''),_0x2b1933;}function compareDates(_0x10f5cc,_0x1aaef4){const _0x4face5=a6_0x501f4a;_0x10f5cc=new Date(_0x10f5cc);!_0x1aaef4?_0x1aaef4=new Date():_0x1aaef4=new Date(_0x1aaef4);_0x10f5cc[_0x4face5(0x11c)](0x0,0x0,0x0,0x0),_0x1aaef4[_0x4face5(0x11c)](0x0,0x0,0x0,0x0);var _0xf7e578=_0x10f5cc[_0x4face5(0xf9)](),_0x56b5cd=_0x1aaef4['getTime']();if(_0xf7e578<_0x56b5cd)return-0x1;else return _0xf7e578>_0x56b5cd?0x1:0x0;}function getDaysBetween(_0x4d3041,_0x38c268){const _0x240e34=a6_0x501f4a,_0x339248=new Date(_0x4d3041),_0x2f81aa=new Date(_0x38c268),_0x2daf35=Math['abs'](_0x339248[_0x240e34(0xf9)]()-_0x2f81aa[_0x240e34(0xf9)]()),_0x322306=Math[_0x240e34(0x113)](_0x2daf35/(0x3e8*0x3c*0x3c*0x18));return _0x322306+0x1;}function chineseNumeral(_0x56ff04){const _0x5a2392=a6_0x501f4a,_0x2c5cab=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x140300=['','拾','佰','仟'],_0x1795bb=['','万','亿','兆'];let _0x3e73c4=Math[_0x5a2392(0x113)](_0x56ff04),_0x550b00=Math[_0x5a2392(0xfc)]((_0x56ff04-_0x3e73c4)*0x64),_0x3270e6='';for(let _0x343ac0=0x0;_0x3e73c4>0x0;_0x343ac0++){let _0x3a9406='',_0x2bc1bf=_0x3e73c4%0x2710;_0x3e73c4=Math['floor'](_0x3e73c4/0x2710);for(let _0x4af1b1=0x0;_0x2bc1bf>0x0;_0x4af1b1++){let _0x1a809e=_0x2bc1bf%0xa;_0x3a9406=(_0x1a809e?_0x2c5cab[_0x1a809e]+_0x140300[_0x4af1b1]:'')+_0x3a9406,_0x2bc1bf=Math[_0x5a2392(0x113)](_0x2bc1bf/0xa);}_0x3270e6=_0x3a9406+(_0x3a9406?_0x1795bb[_0x343ac0]:_0x1795bb[_0x343ac0]&&!_0x3270e6[_0x5a2392(0xf3)]('零')?'零':'')+_0x3270e6;}_0x3270e6+=_0x3270e6?'元':'零元';if(_0x550b00>0x0){let _0x5d722f=Math[_0x5a2392(0x113)](_0x550b00/0xa),_0x6b66c6=_0x550b00%0xa;_0x3270e6+=(_0x5d722f?_0x2c5cab[_0x5d722f]+'角':'')+(_0x6b66c6?_0x2c5cab[_0x6b66c6]+'分':'');}else _0x3270e6+='整';return _0x3270e6['replace'](/零{2,}/g,'零')[_0x5a2392(0x146)](/零元/,'元');}function getMonthDate(_0x16cdbd){const _0x20d079=a6_0x501f4a;(!_0x16cdbd||_0x16cdbd[_0x20d079(0x137)]()==='')&&(_0x16cdbd=new Date()[_0x20d079(0x139)]()+'-'+(new Date()[_0x20d079(0xfe)]()+0x1));let _0x1ce7cd=[],[_0x46e574,_0x2c1ed1]=_0x16cdbd[_0x20d079(0x129)]('-')[_0x20d079(0x14a)](Number),_0x102678=new Date(_0x46e574,_0x2c1ed1,0x0),_0xffc8a=_0x102678[_0x20d079(0x10c)]();for(let _0x9b84b3=0x1;_0x9b84b3<=_0xffc8a;_0x9b84b3++){let _0x1760d5=_0x9b84b3<0xa?'0'+_0x9b84b3:''+_0x9b84b3,_0x54e8c6=_0x2c1ed1<0xa?'0'+_0x2c1ed1:''+_0x2c1ed1;_0x1ce7cd['push']({'date':_0x46e574+'-'+_0x54e8c6+'-'+_0x1760d5,'disable':!![]});}return _0x1ce7cd;}function getToday(_0xded4ab){const _0x817cc1=a6_0x501f4a;var _0x26eb87=new Date(),_0xef8c0=String(_0x26eb87[_0x817cc1(0x10c)]())[_0x817cc1(0x131)](0x2,'0'),_0x36d857=String(_0x26eb87[_0x817cc1(0xfe)]()+0x1)[_0x817cc1(0x131)](0x2,'0'),_0x259680=_0x26eb87[_0x817cc1(0x139)]();return _0x26eb87=_0x259680+'-'+_0x36d857+'-'+_0xef8c0,_0x26eb87;}function resetObject(_0x58766a){const _0x498869=a6_0x501f4a;let _0x41ce0e=JSON[_0x498869(0x14e)](JSON['stringify'](_0x58766a));for(const _0x3d9f3d in _0x41ce0e){if(typeof _0x41ce0e[_0x3d9f3d]===_0x498869(0x11e))_0x41ce0e[_0x3d9f3d]=0x0;else{if(typeof _0x41ce0e[_0x3d9f3d]===_0x498869(0x134))_0x41ce0e[_0x3d9f3d]=![];else{if(Array[_0x498869(0x140)](_0x41ce0e[_0x3d9f3d]))_0x41ce0e[_0x3d9f3d]=[];else typeof _0x41ce0e[_0x3d9f3d]==='object'&&_0x41ce0e[_0x3d9f3d]!==null?resetObject(_0x41ce0e[_0x3d9f3d]):_0x41ce0e[_0x3d9f3d]='';}}}return _0x41ce0e;}function preciseOperation(_0x1debf7,_0x58805e,_0x2c0a4f,_0x4961dc=0xf4240){const _0x3c8b2e=a6_0x501f4a;if(isNaN(_0x1debf7)||isNaN(_0x58805e))return NaN;if(!isFinite(_0x1debf7)||!isFinite(_0x58805e))return NaN;let _0x44f60c=BigInt(Math[_0x3c8b2e(0xfc)](_0x1debf7*_0x4961dc)),_0x2b304a=BigInt(Math[_0x3c8b2e(0xfc)](_0x58805e*_0x4961dc)),_0x2fd8cd;switch(_0x2c0a4f){case 0x1:_0x2fd8cd=_0x44f60c+_0x2b304a;break;case 0x2:_0x2fd8cd=_0x44f60c-_0x2b304a;break;case 0x3:_0x2fd8cd=_0x44f60c*_0x2b304a;break;case 0x4:if(_0x2b304a===0x0n)throw new Error(_0x3c8b2e(0xfb));_0x2fd8cd=_0x44f60c/_0x2b304a;break;default:throw new Error(_0x3c8b2e(0x138));}return Number(_0x2fd8cd)/_0x4961dc;}function preciseSum(_0x1bec1f){const _0x4cf6dd=a6_0x501f4a;let _0x33bdb1=0x0;for(const _0x566be2 of _0x1bec1f){let _0x3b20b6=0x0;if(typeof _0x566be2===_0x4cf6dd(0x13d)){const _0x5be0bc=parseFloat(_0x566be2);!isNaN(_0x5be0bc)&&(_0x3b20b6=_0x5be0bc);}else typeof _0x566be2===_0x4cf6dd(0x11e)&&(_0x3b20b6=_0x566be2);_0x33bdb1=preciseOperation(_0x33bdb1,_0x3b20b6,0x1);}return _0x33bdb1;}function getRelativeDate(_0x13abe0,_0x4f564c=0x0){const _0x13aa09=a6_0x501f4a,_0x58279f=new Date(_0x13abe0);_0x58279f[_0x13aa09(0xf5)](_0x58279f[_0x13aa09(0x10c)]()+_0x4f564c);const _0x4dc2e7=_0x58279f['getFullYear'](),_0x129cb5=(_0x58279f[_0x13aa09(0xfe)]()+0x1)[_0x13aa09(0x100)]()[_0x13aa09(0x131)](0x2,'0'),_0x4bc40a=_0x58279f[_0x13aa09(0x10c)]()['toString']()[_0x13aa09(0x131)](0x2,'0');return _0x4dc2e7+'-'+_0x129cb5+'-'+_0x4bc40a;}function validateFields(_0x33b943,_0x4b0d28,_0x147eb5=''){for(let _0x340281 of _0x4b0d28){if(_0x33b943[_0x340281]===_0x147eb5)return!![];}return![];}function mergeObjects(_0x58a354,_0x51a6bb){const _0xd2b550=a6_0x501f4a;for(const _0x21653c in _0x58a354){_0x51a6bb[_0xd2b550(0x130)](_0x21653c)&&(_0x58a354[_0x21653c]=_0x51a6bb[_0x21653c]);}return _0x58a354;}const formatToDecimal=(_0x11060c,_0xc7c4df=0x2)=>{const _0x59db60=a6_0x501f4a;if(isNaN(_0xc7c4df)||_0xc7c4df<0x0)return _0x11060c;let _0x471668=Number(_0x11060c);if(!isFinite(_0x471668))return _0x11060c;return _0xc7c4df=Math['max'](0x0,Math['floor'](_0xc7c4df)),_0x471668[_0x59db60(0x10b)](_0xc7c4df);};function findKeysEndingWith(_0x4dde7e,_0x28379d=a6_0x501f4a(0x12c)){const _0x2b4fa2=a6_0x501f4a;let _0xfc77df=[];for(var _0x5668f0 in _0x4dde7e){if(_0x4dde7e[_0x2b4fa2(0x130)](_0x5668f0)){if(_0x5668f0[_0x2b4fa2(0x12a)](_0x28379d))_0xfc77df[_0x2b4fa2(0x112)](_0x5668f0);}}return _0xfc77df;}function guid(_0x44234c=0x20,_0x435649=!![],_0x410fad=null){const _0x4ec10a=a6_0x501f4a,_0x15ce8e=_0x4ec10a(0x108)[_0x4ec10a(0x129)](''),_0x4589f2=[];_0x410fad=_0x410fad||_0x15ce8e[_0x4ec10a(0x109)];if(_0x44234c){for(let _0x3dda36=0x0;_0x3dda36<_0x44234c;_0x3dda36++)_0x4589f2[_0x3dda36]=_0x15ce8e[0x0|Math[_0x4ec10a(0x13a)]()*_0x410fad];}else{let _0x19adb4;_0x4589f2[0x8]=_0x4589f2[0xd]=_0x4589f2[0x12]=_0x4589f2[0x17]='-',_0x4589f2[0xe]='4';for(let _0x4659bc=0x0;_0x4659bc<0x24;_0x4659bc++){!_0x4589f2[_0x4659bc]&&(_0x19adb4=0x0|Math[_0x4ec10a(0x13a)]()*0x10,_0x4589f2[_0x4659bc]=_0x15ce8e[_0x4659bc==0x13?_0x19adb4&0x3|0x8:_0x19adb4]);}}if(_0x435649)return _0x4589f2[_0x4ec10a(0x11a)](),'u'+_0x4589f2[_0x4ec10a(0x122)]('');return _0x4589f2[_0x4ec10a(0x122)]('');}function trim(_0x34836a,_0x375fc9=a6_0x501f4a(0x124)){const _0x337213=a6_0x501f4a;_0x34836a=String(_0x34836a);if(_0x375fc9==_0x337213(0x124))return _0x34836a[_0x337213(0x146)](/^\s+|\s+$/g,'');if(_0x375fc9==_0x337213(0x116))return _0x34836a[_0x337213(0x146)](/^\s*/,'');if(_0x375fc9==_0x337213(0x13c))return _0x34836a[_0x337213(0x146)](/(\s*$)/g,'');if(_0x375fc9==_0x337213(0x14b))return _0x34836a[_0x337213(0x146)](/\s+/g,'');return _0x34836a;}function a6_0x4d12(){const _0x1c9c93=['hasOwnProperty','padStart','Name','Birthday','boolean','ValidDate','getHours','trim','无效的操作符,操作符应为1、2、3或4','getFullYear','random','BirthDate','right','string','FamilyName','surnameEn','isArray','24024424WjqtLC','givenName','match','name','substring','replace','expDate','EnName','dayTitle','map','all','nationality','birthDate','parse','getMinutes','DateOfExpiration','includes','toLocaleString','setDate','256fWwGdl','startsWith','yyyy-mm-dd','getTime','exec','除数不能为0','round','getSeconds','getMonth','value','toString','Sex','YYYY','Surname','code','DateOfBirth','prototype','2114838hTeZFj','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','length','englishName','toFixed','getDate','EnglishName','4600498DJWnZI','fjbh','869647DYizOP','Number','push','floor','FirstName','5398560wdkNuc','left','27080qdFnuI','en-US','surname','shift','Birth','setHours','label','number','call','YYYY-MM-DD','test','join','Quantity\x20should\x20be\x20greater\x20than\x200.','both','PassportNo','1497160pyizve','sex','monthTitle','split','endsWith','function','_qh','givenNameEn','slice','find'];a6_0x4d12=function(){return _0x1c9c93;};return a6_0x4d12();}export default{'handleOCRData':handleOCRData,'timeFormat':timeFormat,'guid':guid,'trim':trim,'findKeysEndingWith':findKeysEndingWith,'formatToDecimal':formatToDecimal,'fmtNum':fmtNum,'splitName':splitName,'preciseSum':preciseSum,'modifyKeys':modifyKeys,'sliceArray':sliceArray,'findDataByData':findDataByData,'splitArray':splitArray,'getProxyType':getProxyType,'debounce':debounce,'urlEncode':urlEncode,'dateFormat':dateFormat,'formatDate':formatDate,'compareDates':compareDates,'getDaysBetween':getDaysBetween,'chineseNumeral':chineseNumeral,'getMonthDate':getMonthDate,'getToday':getToday,'resetObject':resetObject,'preciseOperation':preciseOperation,'getRelativeDate':getRelativeDate,'validateFields':validateFields,'mergeObjects':mergeObjects};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yunlin",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "exports": {