yunlin 1.0.51 → 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 +1 -1
- package/dist/price.js +1 -1
- package/dist/room.js +1 -1
- package/dist/roomOld.js +1 -1
- package/dist/system.js +1 -1
- package/dist/test.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
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 a1_0x2b9f(_0x403b5e,_0x2e4d29){const _0x1702bc=a1_0x1702();return a1_0x2b9f=function(_0x2b9ffd,_0x52bfce){_0x2b9ffd=_0x2b9ffd-0x1b5;let _0x15be51=_0x1702bc[_0x2b9ffd];return _0x15be51;},a1_0x2b9f(_0x403b5e,_0x2e4d29);}(function(_0x5c96b4,_0x1ef2ef){const _0x3c9ba2=a1_0x2b9f,_0x22fc6f=_0x5c96b4();while(!![]){try{const _0x145267=parseInt(_0x3c9ba2(0x1ce))/0x1*(-parseInt(_0x3c9ba2(0x1dd))/0x2)+-parseInt(_0x3c9ba2(0x1be))/0x3+-parseInt(_0x3c9ba2(0x1e7))/0x4+parseInt(_0x3c9ba2(0x1fe))/0x5+parseInt(_0x3c9ba2(0x1eb))/0x6+-parseInt(_0x3c9ba2(0x1f8))/0x7*(parseInt(_0x3c9ba2(0x1d0))/0x8)+-parseInt(_0x3c9ba2(0x1ee))/0x9*(-parseInt(_0x3c9ba2(0x1d8))/0xa);if(_0x145267===_0x1ef2ef)break;else _0x22fc6f['push'](_0x22fc6f['shift']());}catch(_0x58335a){_0x22fc6f['push'](_0x22fc6f['shift']());}}}(a1_0x1702,0x54ffd));function handleCosting(_0x5c949b,_0x14ecad='',_0x5195d7={},_0x6c40c8,_0x28ab3b){const _0x534ea8=a1_0x2b9f;let _0x41ca45=[];const _0x10e981=_0x534ea8(0x1c5),_0x1db623={'couponSign':'-','dp':0x2,'isShowTip':!![]};_0x5195d7=typeof _0x5195d7==='object'&&!Array[_0x534ea8(0x1fd)](_0x5195d7)&&_0x5195d7!==null?_0x5195d7:{};const _0x2aaf55={..._0x1db623,..._0x5195d7},_0x3cdae3=Object['keys'](_0x1db623);Object[_0x534ea8(0x200)](_0x5195d7)[_0x534ea8(0x1d4)](_0x54802c=>{const _0x17f9b6=_0x534ea8;!_0x3cdae3[_0x17f9b6(0x1f0)](_0x54802c)&&console[_0x17f9b6(0x209)](_0x17f9b6(0x1c3)+_0x54802c);});let _0x4cdde0=_0x2aaf55[_0x534ea8(0x206)]||'-',_0xe11919=_0x2aaf55['dp']||0x2;const _0x54f416=(_0x3d02fa,_0x18e481=_0xe11919)=>{const _0x2dff4c=_0x534ea8;if(typeof _0x3d02fa!==_0x2dff4c(0x1e4)&&isNaN(Number(_0x3d02fa)))return console[_0x2dff4c(0x1bf)](_0x2dff4c(0x1cc)+_0x3d02fa),_0x3d02fa;if(isNaN(_0x18e481)||_0x18e481<0x0)return _0x3d02fa;let _0x21be7f=Number(_0x3d02fa);if(!isFinite(_0x21be7f))return _0x3d02fa;return _0x18e481=Math[_0x2dff4c(0x1bd)](0x0,Math[_0x2dff4c(0x1d7)](_0x18e481)),_0x21be7f[_0x2dff4c(0x1f5)](_0x18e481);},_0x134673=(_0x130bf5,_0x55281c)=>{const _0x4c6e51=_0x534ea8;if(_0x55281c&&typeof _0x55281c===_0x4c6e51(0x1c2)&&!Array[_0x4c6e51(0x1fd)](_0x55281c))for(const _0xfb8f9 in _0x130bf5){_0x130bf5[_0x4c6e51(0x1e3)](_0xfb8f9)&&_0x55281c[_0x4c6e51(0x1e3)](_0xfb8f9)&&(_0x130bf5[_0xfb8f9]=_0x55281c[_0xfb8f9]);}else console['error'](('yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:'+JSON[_0x4c6e51(0x1ff)](_0x55281c,null,0x2)+_0x4c6e51(0x1bb)+JSON['stringify'](_0x130bf5,null,0x2))[_0x4c6e51(0x1d5)]());return _0x130bf5;};let _0x59b398={'people':_0x534ea8(0x1d1),'service':_0x534ea8(0x1e8),'trip':_0x534ea8(0x1f1),'other':_0x534ea8(0x1b5),'reduction':_0x534ea8(0x20b),'totalprice':'總計','airtax':_0x534ea8(0x1c6)},_0x5aad3a={'adult':'成人','child':'兒童','childusebed':'兒童[占床]','infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x534ea8(0x1c4),'vip':_0x534ea8(0x207),'promotion':'促銷','insure':_0x534ea8(0x1ed),'coupon':'優惠券','point':'積分','tax':'稅金','viprecharge':_0x534ea8(0x1db),'changeprice':'调价','commission':'返点','r':'人','t':'天'};_0x59b398=_0x134673(_0x59b398,_0x6c40c8),_0x5aad3a=_0x134673(_0x5aad3a,_0x28ab3b);const _0xcf38cd=_0x5c949b['filter'](_0x4a9fe7=>_0x4a9fe7[_0x534ea8(0x203)]==_0x534ea8(0x1d9));if(_0xcf38cd[_0x534ea8(0x1e5)]){let _0x2c03d4={'title':_0x59b398[_0x534ea8(0x1c1)],'type':_0x534ea8(0x1d9),'list':[]};_0xcf38cd[_0x534ea8(0x1f7)](_0x4b3889=>{const _0x2ebd83=_0x534ea8;_0x2c03d4[_0x2ebd83(0x1cf)][_0x2ebd83(0x205)]({'title':_0x5aad3a[_0x4b3889[_0x2ebd83(0x1ef)]],'subTitle':_0x4b3889['strJglxtxt'],'info':_0x14ecad+_0x54f416(_0x4b3889['fLsjUnit'])+_0x10e981+_0x4b3889['nRs'],'nRs':_0x4b3889[_0x2ebd83(0x1ba)],'unit':_0x4b3889['fLsjUnit'],'cb':_0x4b3889[_0x2ebd83(0x1c7)],'type':_0x2ebd83(0x1d9)});}),_0x41ca45[_0x534ea8(0x205)](_0x2c03d4);}const _0x1e6b4e=_0x5c949b['filter'](_0x2c9017=>_0x2c9017[_0x534ea8(0x203)]==_0x534ea8(0x1fa));if(_0x1e6b4e[_0x534ea8(0x1e5)]){let _0x135c58={'title':_0x59b398[_0x534ea8(0x1fa)],'type':_0x534ea8(0x1fa),'list':[]};_0x1e6b4e[_0x534ea8(0x1f7)](_0xe65249=>{const _0x590144=_0x534ea8;_0x135c58['list']['push']({'title':_0xe65249['name']+('['+_0xe65249[_0x590144(0x1cb)]+']'),'info':_0x14ecad+_0x54f416(_0xe65249['unitprice'])+_0x10e981+_0xe65249[_0x590144(0x1b7)],'nRs':_0xe65249[_0x590144(0x1b7)],'unit':_0xe65249[_0x590144(0x204)],'cb':_0xe65249['baseprice'],'type':'service'});}),_0x41ca45[_0x534ea8(0x205)](_0x135c58);}const _0x1ccbc0=_0x5c949b['filter'](_0x4696c7=>_0x4696c7['strLx']=='trip');if(_0x1ccbc0['length']){let _0x24c8ed={'title':_0x59b398[_0x534ea8(0x1da)],'type':'trip','list':[]};_0x1ccbc0[_0x534ea8(0x1f7)](_0x25f852=>{const _0x4a3fca=_0x534ea8;_0x25f852[_0x4a3fca(0x1cd)]!='0'&&_0x24c8ed['list'][_0x4a3fca(0x205)]({'title':_0x25f852[_0x4a3fca(0x1ea)]+('['+_0x5aad3a['adult']+']'),'info':_0x14ecad+_0x54f416(_0x25f852[_0x4a3fca(0x1e6)])+_0x10e981+_0x25f852[_0x4a3fca(0x1cd)],'nRs':_0x25f852[_0x4a3fca(0x1cd)],'unit':_0x25f852[_0x4a3fca(0x1e6)],'cb':_0x25f852['baseadultprice'],'type':_0x4a3fca(0x1da)}),_0x25f852[_0x4a3fca(0x1fc)]!='0'&&_0x24c8ed['list'][_0x4a3fca(0x205)]({'title':_0x25f852[_0x4a3fca(0x1ea)]+('['+_0x5aad3a[_0x4a3fca(0x1f4)]+']'),'info':_0x14ecad+_0x54f416(_0x25f852[_0x4a3fca(0x202)])+_0x10e981+_0x25f852[_0x4a3fca(0x1fc)],'nRs':_0x25f852[_0x4a3fca(0x1fc)],'unit':_0x25f852[_0x4a3fca(0x202)],'cb':_0x25f852[_0x4a3fca(0x1c8)],'type':_0x4a3fca(0x1da)});}),_0x41ca45[_0x534ea8(0x205)](_0x24c8ed);}let _0x547c6f=[];const _0x2091c6=_0x5c949b['filter'](_0x53d3f0=>_0x53d3f0['strLx']=='elder');_0x2091c6['length']&&_0x2091c6[_0x534ea8(0x1f7)](_0x242a38=>{const _0x2123b5=_0x534ea8,_0x2be893=_0x242a38[_0x2123b5(0x1ea)][_0x2123b5(0x1d6)]('|')||[''];_0x547c6f[_0x2123b5(0x205)]({'title':_0x5aad3a['elder']+('['+_0x2be893[0x0]+']'),'info':_0x14ecad+_0x4cdde0+_0x54f416(_0x242a38[_0x2123b5(0x1f3)]),'unit':_0x242a38[_0x2123b5(0x1f3)],'cb':_0x242a38['money'],'type':'elder'});});const _0x1e9162=_0x5c949b[_0x534ea8(0x208)](_0x4b8e36=>_0x4b8e36[_0x534ea8(0x203)]==_0x534ea8(0x1dc));_0x1e9162['length']&&_0x1e9162[_0x534ea8(0x1f7)](_0x3abdfd=>{const _0x58dfd9=_0x534ea8;_0x547c6f[_0x58dfd9(0x205)]({'title':_0x5aad3a[_0x58dfd9(0x1de)]+('['+_0x3abdfd[_0x58dfd9(0x1ea)]+']'),'info':_0x14ecad+_0x4cdde0+_0x54f416(_0x3abdfd['money']),'unit':_0x3abdfd['money'],'cb':_0x3abdfd[_0x58dfd9(0x1f3)],'type':_0x58dfd9(0x1de)});});const _0x2e51d2=_0x5c949b[_0x534ea8(0x208)](_0x72916c=>_0x72916c[_0x534ea8(0x203)]==_0x534ea8(0x1d3));_0x2e51d2[_0x534ea8(0x1e5)]&&_0x2e51d2[_0x534ea8(0x1f7)](_0x3b13fd=>{const _0x504711=_0x534ea8;_0x547c6f[_0x504711(0x205)]({'title':_0x5aad3a[_0x504711(0x1d3)],'info':_0x14ecad+_0x4cdde0+_0x54f416(_0x3b13fd[_0x504711(0x1f3)]),'unit':_0x3b13fd[_0x504711(0x1f3)],'cb':_0x3b13fd[_0x504711(0x1f3)],'type':_0x504711(0x1d3)});});_0x547c6f[_0x534ea8(0x1e5)]&&_0x41ca45[_0x534ea8(0x205)]({'title':_0x59b398[_0x534ea8(0x1ec)],'type':_0x534ea8(0x1ec),'list':_0x547c6f});const _0x2d42a6=_0x5c949b[_0x534ea8(0x208)](_0x37255b=>_0x37255b[_0x534ea8(0x203)]==_0x534ea8(0x1e1));if(_0x2d42a6[_0x534ea8(0x1e5)]){let _0x40ed1e={'title':_0x59b398[_0x534ea8(0x1e1)],'type':_0x534ea8(0x1e1),'list':[]};_0x2d42a6['map'](_0x8d79ed=>{const _0x1a2bbb=_0x534ea8;_0x40ed1e[_0x1a2bbb(0x1cf)][_0x1a2bbb(0x205)]({'title':_0x5aad3a[_0x8d79ed[_0x1a2bbb(0x1b8)]],'info':_0x14ecad+_0x54f416(_0x8d79ed['unitprice'])+_0x10e981+_0x8d79ed['sl'],'nRs':_0x8d79ed['sl'],'unit':_0x8d79ed['unitprice'],'cb':_0x8d79ed['unitpricewb'],'type':_0x8d79ed[_0x1a2bbb(0x1b8)]});}),_0x41ca45[_0x534ea8(0x205)](_0x40ed1e);}const _0x4cfc96=[_0x534ea8(0x1d9),_0x534ea8(0x1fa),_0x534ea8(0x1da),'elder',_0x534ea8(0x1dc),'promotion',_0x534ea8(0x1e1)],_0x3a41b6=_0x5c949b[_0x534ea8(0x208)](_0x2a23d6=>!_0x4cfc96[_0x534ea8(0x1f0)](_0x2a23d6[_0x534ea8(0x203)]));let _0x5639f9={'title':_0x59b398[_0x534ea8(0x1b6)],'type':_0x534ea8(0x1b6),'list':[]};for(var _0x385db4=0x0;_0x385db4<_0x3a41b6[_0x534ea8(0x1e5)];_0x385db4++){const _0xdaa422=_0x3a41b6[_0x385db4];_0xdaa422['strLx']==_0x534ea8(0x1f2)&&_0x5639f9['list'][_0x534ea8(0x205)]({'title':_0x5aad3a[_0x534ea8(0x1f2)]+('['+_0xdaa422['name']+']'),'info':_0x14ecad+_0x54f416(_0xdaa422[_0x534ea8(0x1f3)]),'unit':_0xdaa422[_0x534ea8(0x1f3)],'type':_0xdaa422[_0x534ea8(0x203)]}),_0xdaa422[_0x534ea8(0x203)]==_0x534ea8(0x20a)&&_0x5639f9['list']['push']({'title':_0x5aad3a[_0x534ea8(0x20a)]+('['+_0xdaa422[_0x534ea8(0x1ea)]+']'),'info':_0x14ecad+_0x54f416(_0xdaa422[_0x534ea8(0x1d2)])+_0x10e981+_0xdaa422['users']+_0x5aad3a['r'],'nRs':_0xdaa422[_0x534ea8(0x201)],'unit':_0xdaa422['unit'],'cb':_0xdaa422[_0x534ea8(0x1d2)],'type':_0x534ea8(0x20a)}),(_0xdaa422['strLx']==_0x534ea8(0x1fb)||_0xdaa422['strLx']==_0x534ea8(0x1f6))&&_0x5639f9[_0x534ea8(0x1cf)][_0x534ea8(0x205)]({'title':_0xdaa422['couponmc']||_0x5aad3a[_0xdaa422[_0x534ea8(0x203)]],'info':_0x14ecad+_0x4cdde0+_0x54f416(_0xdaa422['money']),'unit':_0xdaa422[_0x534ea8(0x1f3)],'cb':_0xdaa422[_0x534ea8(0x1e9)]||0x0,'type':_0xdaa422[_0x534ea8(0x203)]}),_0xdaa422[_0x534ea8(0x203)]==_0x534ea8(0x1ca)&&_0x2aaf55[_0x534ea8(0x1c9)]&&_0x5639f9[_0x534ea8(0x1cf)][_0x534ea8(0x205)]({'title':_0x5aad3a[_0xdaa422[_0x534ea8(0x203)]],'info':_0x14ecad+_0x54f416(_0xdaa422[_0x534ea8(0x1ca)])+_0x10e981+_0xdaa422[_0x534ea8(0x1bc)]+_0x5aad3a['r']+_0x10e981+_0xdaa422['tipday']+_0x5aad3a['t'],'nRs':_0xdaa422[_0x534ea8(0x1bc)],'count':_0xdaa422['tipday'],'unit':_0xdaa422[_0x534ea8(0x1ca)],'type':_0xdaa422['strLx']}),_0xdaa422[_0x534ea8(0x203)]==_0x534ea8(0x1c0)&&_0x5639f9[_0x534ea8(0x1cf)]['push']({'title':_0x5aad3a['changeprice'],'info':_0x14ecad+_0x54f416(_0xdaa422[_0x534ea8(0x1df)]),'unit':_0xdaa422[_0x534ea8(0x1df)],'type':_0xdaa422[_0x534ea8(0x203)]}),_0xdaa422[_0x534ea8(0x203)]==_0x534ea8(0x1b9)&&_0x5639f9['list'][_0x534ea8(0x205)]({'title':_0x5aad3a[_0x534ea8(0x1b9)],'info':_0x14ecad+_0x54f416(_0xdaa422['price']),'unit':_0xdaa422[_0x534ea8(0x1df)],'type':_0xdaa422[_0x534ea8(0x203)]}),_0xdaa422['strLx']==_0x534ea8(0x1f9)&&_0x5639f9[_0x534ea8(0x1cf)][_0x534ea8(0x205)]({'title':_0x5aad3a[_0xdaa422[_0x534ea8(0x203)]],'info':_0x14ecad+_0x54f416(_0xdaa422[_0x534ea8(0x1e0)]),'unit':_0xdaa422[_0x534ea8(0x1e0)],'type':_0xdaa422[_0x534ea8(0x203)]});}_0x5639f9[_0x534ea8(0x1cf)][_0x534ea8(0x1e5)]&&_0x41ca45[_0x534ea8(0x205)](_0x5639f9);const _0x3b7959=_0x5c949b[_0x534ea8(0x208)](_0x56b43c=>_0x56b43c['strLx']==_0x534ea8(0x1e2));return _0x3b7959[_0x534ea8(0x1e5)]&&_0x41ca45[_0x534ea8(0x205)]({'title':_0x59b398[_0x534ea8(0x1e2)],'type':_0x534ea8(0x1e2),'list':[{'title':_0x59b398[_0x534ea8(0x1e2)],'info':_0x14ecad+_0x54f416(_0x3b7959[0x0][_0x534ea8(0x1df)])}]}),_0x41ca45;}function a1_0x1702(){const _0x1de4f1=['money','child','toFixed','point','map','1757anDfNF','tax','service','coupon','childnum','isArray','2635230RPJLiu','stringify','keys','users','childunitprice','strLx','unitprice','push','couponSign','會員減免','filter','warn','insure','減免費用','其他費用','other','num','rylx','commission','nRs','\x0a\x09\x09\x09正确参数:','tipuser','max','443400yhLFeV','error','changeprice','people','object','[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20','遊客優惠','\x20*\x20','機場稅','fJcbzlsjUnit','basechildprice','isShowTip','tip','itemname','ftd\x20函数接收到无效的数字输入:\x20','adultnum','2dhHZIb','list','17584glVhJm','人員費用','unit','promotion','forEach','trim','split','floor','8854310ytElBc','base','trip','會員充值','vipdiscounted','206556CwwyEJ','vip','price','totaltax','airtax','totalprice','hasOwnProperty','number','length','adultunitprice','2030748frtHmk','附加服務','points','name','2096526VcyxvB','reduction','保險費用','9QwFXlG','strJgbm','includes','附加行程','viprecharge'];a1_0x1702=function(){return _0x1de4f1;};return a1_0x1702();}export default{'handleCosting':handleCosting};
|
|
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(
|
|
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(
|
|
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
|
|
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(
|
|
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_0x4444e4=a6_0x4650;(function(_0x2144b9,_0x540000){const _0xa5bf7f=a6_0x4650,_0x1872c5=_0x2144b9();while(!![]){try{const _0x7016d=parseInt(_0xa5bf7f(0xcc))/0x1+-parseInt(_0xa5bf7f(0xad))/0x2*(-parseInt(_0xa5bf7f(0xf2))/0x3)+-parseInt(_0xa5bf7f(0xea))/0x4*(-parseInt(_0xa5bf7f(0xeb))/0x5)+-parseInt(_0xa5bf7f(0xe4))/0x6*(-parseInt(_0xa5bf7f(0xb9))/0x7)+parseInt(_0xa5bf7f(0xcf))/0x8*(-parseInt(_0xa5bf7f(0xef))/0x9)+parseInt(_0xa5bf7f(0xf5))/0xa+-parseInt(_0xa5bf7f(0xc2))/0xb;if(_0x7016d===_0x540000)break;else _0x1872c5['push'](_0x1872c5['shift']());}catch(_0xa28ee8){_0x1872c5['push'](_0x1872c5['shift']());}}}(a6_0x55cd,0xb4f4b));function fmtNum(_0x2e9df6,_0x46a773=!![]){const _0x301639=a6_0x4650;if(_0x2e9df6==0x0)return _0x46a773?'0.00':'0';if(!_0x2e9df6)return'';let _0xd4454a=typeof _0x2e9df6===_0x301639(0xb5)?parseFloat(_0x2e9df6):_0x2e9df6;if(isNaN(_0xd4454a))return'';return _0xd4454a[_0x301639(0xc4)]('en-US',{'minimumFractionDigits':_0x46a773?0x2:0x0,'maximumFractionDigits':_0x46a773?0x2:0x0});}function splitName(_0x93c7e8,_0x3b43ff=![]){const _0x1c90d8=a6_0x4650;let _0x26f1f9={'surname':'','givenName':''};if(_0x3b43ff){const _0x493ac6=_0x93c7e8[_0x1c90d8(0xa4)](',')?_0x93c7e8['split'](','):_0x93c7e8[_0x1c90d8(0xa9)](/\s+/);_0x493ac6[_0x1c90d8(0xa1)]>=0x2&&(_0x26f1f9['surname']=_0x493ac6[0x0][_0x1c90d8(0xe6)](),_0x26f1f9[_0x1c90d8(0xf0)]=_0x493ac6[0x1]['trim']());}else{const _0xb14547=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x579439=0x0;_0x579439<_0xb14547[_0x1c90d8(0xa1)];_0x579439++){const _0x408664=_0xb14547[_0x579439];if(_0x93c7e8[_0x1c90d8(0xec)](_0x408664))return _0x26f1f9['surname']=_0x408664,_0x26f1f9[_0x1c90d8(0xf0)]=_0x93c7e8['substring'](_0x408664[_0x1c90d8(0xa1)])[_0x1c90d8(0xe6)](),_0x26f1f9;}const _0x428c9f=_0x93c7e8[_0x1c90d8(0xa9)]('\x20');if(_0x428c9f[_0x1c90d8(0xa1)]===0x1){const _0x2a4f83=_0x93c7e8[_0x1c90d8(0xd7)](/[\u4e00-\u9fa5]/);_0x26f1f9[_0x1c90d8(0xb7)]=_0x2a4f83?_0x2a4f83[0x0]:'',_0x26f1f9[_0x1c90d8(0xf0)]=_0x93c7e8[_0x1c90d8(0xd4)](_0x26f1f9[_0x1c90d8(0xb7)],'')[_0x1c90d8(0xe6)]();}else _0x26f1f9['surname']=_0x428c9f[0x0],_0x26f1f9[_0x1c90d8(0xf0)]=_0x428c9f[_0x1c90d8(0xa8)](0x1)[_0x1c90d8(0xc6)]('\x20');}return _0x26f1f9;}function timeFormat(_0x326116=null,_0x2834f9=a6_0x4444e4(0x9b)){const _0x5430af=a6_0x4444e4;let _0x3e6cbf;if(!_0x326116)_0x3e6cbf=new Date();else{if(/^\d{10}$/[_0x5430af(0xce)](_0x326116?.[_0x5430af(0xdb)]()[_0x5430af(0xe6)]()))_0x3e6cbf=new Date(_0x326116*0x3e8);else{if(typeof _0x326116==='string'&&/^\d+$/['test'](_0x326116[_0x5430af(0xe6)]()))_0x3e6cbf=new Date(Number(_0x326116));else typeof _0x326116===_0x5430af(0xb5)&&_0x326116[_0x5430af(0xa4)]('-')&&!_0x326116['includes']('T')?_0x3e6cbf=new Date(_0x326116[_0x5430af(0xd4)](/-/g,'/')):_0x3e6cbf=new Date(_0x326116);}}const _0x2f732c={'y':_0x3e6cbf[_0x5430af(0xe8)]()[_0x5430af(0xdb)](),'m':(_0x3e6cbf[_0x5430af(0xd9)]()+0x1)[_0x5430af(0xdb)]()[_0x5430af(0xcd)](0x2,'0'),'d':_0x3e6cbf[_0x5430af(0xee)]()['toString']()[_0x5430af(0xcd)](0x2,'0'),'h':_0x3e6cbf['getHours']()[_0x5430af(0xdb)]()[_0x5430af(0xcd)](0x2,'0'),'M':_0x3e6cbf[_0x5430af(0xbc)]()[_0x5430af(0xdb)]()[_0x5430af(0xcd)](0x2,'0'),'s':_0x3e6cbf[_0x5430af(0xa3)]()[_0x5430af(0xdb)]()[_0x5430af(0xcd)](0x2,'0')};for(const _0x5a58e7 in _0x2f732c){const [_0x57abac]=new RegExp(_0x5a58e7+'+')[_0x5430af(0xd6)](_0x2834f9)||[];if(_0x57abac){const _0x53e6bc=_0x5a58e7==='y'&&_0x57abac[_0x5430af(0xa1)]===0x2?0x2:0x0;_0x2834f9=_0x2834f9['replace'](_0x57abac,_0x2f732c[_0x5a58e7][_0x5430af(0xa8)](_0x53e6bc));}}return _0x2834f9;}function handleOCRData(_0x594315,_0x27636c){const _0x57bc3d=a6_0x4444e4,_0x3599fb=_0x2514f5=>{const _0x15bce2=a6_0x4650,_0xd297f5=_0x2514f5[_0x15bce2(0xbb)](0x0,0x4),_0x2955d1=_0x2514f5['substring'](0x4,0x6),_0x460129=_0x2514f5[_0x15bce2(0xbb)](0x6,0x8);return _0xd297f5+'-'+_0x2955d1+'-'+_0x460129;};let _0x17d8cc={'name':'','englishName':'','sex':'','surname':'','givenName':'','surnameEn':'','givenNameEn':'','expDate':'','birthDate':'','nationality':'','number':''};if(_0x594315===0x0||_0x594315===0x1||_0x594315===0x2){if(_0x27636c['Sex']==='M')_0x17d8cc[_0x57bc3d(0xd0)]='男';else _0x17d8cc[_0x57bc3d(0xd0)]='女';}debugger;_0x594315===0x0&&(_0x17d8cc['name']=_0x27636c[_0x57bc3d(0xd3)],_0x17d8cc[_0x57bc3d(0xb7)]=_0x27636c['FamilyName'],_0x17d8cc[_0x57bc3d(0xf0)]=_0x27636c[_0x57bc3d(0xe0)],_0x17d8cc[_0x57bc3d(0xf4)]=_0x27636c[_0x57bc3d(0x9e)],_0x17d8cc[_0x57bc3d(0x96)]=_0x27636c['BirthDate'],_0x17d8cc[_0x57bc3d(0xca)]=_0x27636c[_0x57bc3d(0xa6)],_0x17d8cc['number']=_0x27636c['PassportNo']);if(_0x594315===0x1){_0x17d8cc[_0x57bc3d(0x9c)]=_0x27636c[_0x57bc3d(0xd3)],_0x17d8cc[_0x57bc3d(0xb7)]=_0x27636c[_0x57bc3d(0xcb)],_0x17d8cc['givenName']=_0x27636c[_0x57bc3d(0xc9)],_0x17d8cc[_0x57bc3d(0xf4)]=_0x27636c[_0x57bc3d(0xb4)],_0x17d8cc[_0x57bc3d(0x96)]=_0x27636c[_0x57bc3d(0xd5)],_0x17d8cc[_0x57bc3d(0xca)]=_0x27636c['Nationality'],_0x17d8cc['number']=_0x27636c['ID'];if(!_0x27636c['Surname']&&!_0x27636c['GivenName']){const _0x6f946a=splitName(_0x27636c['Name']);_0x17d8cc[_0x57bc3d(0xb7)]=_0x6f946a['surname'],_0x17d8cc[_0x57bc3d(0xf0)]=_0x6f946a[_0x57bc3d(0xf0)];}if(!_0x27636c[_0x57bc3d(0xae)])_0x17d8cc[_0x57bc3d(0xe2)]=_0x27636c[_0x57bc3d(0xd3)];}_0x594315===0x2&&(_0x17d8cc[_0x57bc3d(0x9c)]=_0x27636c[_0x57bc3d(0xa2)],_0x17d8cc[_0x57bc3d(0xe2)]=_0x27636c[_0x57bc3d(0xb2)],_0x17d8cc[_0x57bc3d(0x96)]=_0x27636c[_0x57bc3d(0xba)],_0x17d8cc[_0x57bc3d(0xa7)]=_0x27636c[_0x57bc3d(0xd1)]);_0x594315===0x3&&(_0x17d8cc[_0x57bc3d(0x9c)]=_0x27636c[_0x57bc3d(0xd3)],_0x17d8cc[_0x57bc3d(0xd0)]=_0x27636c[_0x57bc3d(0xbf)],_0x17d8cc[_0x57bc3d(0xf4)]=_0x27636c[_0x57bc3d(0xe3)],_0x17d8cc[_0x57bc3d(0x96)]=_0x27636c[_0x57bc3d(0xe7)],_0x17d8cc[_0x57bc3d(0xa7)]=_0x27636c[_0x57bc3d(0xd1)]);_0x594315===0x4&&(_0x17d8cc[_0x57bc3d(0x9c)]=_0x27636c[_0x57bc3d(0xd3)],_0x17d8cc[_0x57bc3d(0xe2)]=_0x27636c['EnglishName'],_0x17d8cc[_0x57bc3d(0xd0)]=_0x27636c[_0x57bc3d(0xbf)],_0x17d8cc[_0x57bc3d(0xf4)]=_0x27636c[_0x57bc3d(0xe3)],_0x17d8cc[_0x57bc3d(0x96)]=_0x27636c['Birthday'],_0x17d8cc[_0x57bc3d(0xa7)]=_0x27636c[_0x57bc3d(0xc3)]);_0x594315===0x5&&(_0x17d8cc['name']=_0x27636c['Name'],_0x17d8cc['englishName']=_0x27636c['EnglishName'],_0x17d8cc[_0x57bc3d(0xd0)]=_0x27636c['Sex'],_0x17d8cc[_0x57bc3d(0xf4)]=_0x27636c[_0x57bc3d(0xe3)],_0x17d8cc['birthDate']=_0x27636c[_0x57bc3d(0xba)],_0x17d8cc[_0x57bc3d(0xa7)]=_0x27636c['Number']);if(_0x594315===0x2||_0x594315===0x3||_0x594315===0x4||_0x594315===0x5){const _0x84a35=splitName(_0x17d8cc[_0x57bc3d(0x9c)]);_0x17d8cc['surname']=_0x84a35[_0x57bc3d(0xb7)],_0x17d8cc['givenName']=_0x84a35[_0x57bc3d(0xf0)];}if(_0x594315===0x2||_0x594315===0x4||_0x594315===0x5){const _0x113c6e=splitName(_0x17d8cc[_0x57bc3d(0xe2)],!![]);_0x17d8cc['surnameEn']=_0x113c6e['surname'],_0x17d8cc[_0x57bc3d(0x9d)]=_0x113c6e[_0x57bc3d(0xf0)];}if(_0x594315===0x0||_0x594315===0x1){if(_0x17d8cc['birthDate']!=='')_0x17d8cc['birthDate']=_0x3599fb(_0x17d8cc[_0x57bc3d(0x96)]);if(_0x17d8cc[_0x57bc3d(0xf4)]!=='')_0x17d8cc['expDate']=_0x3599fb(_0x17d8cc['expDate']);}if(_0x594315===0x2||_0x594315===0x3){if(_0x17d8cc[_0x57bc3d(0x96)]!=='')_0x17d8cc[_0x57bc3d(0x96)]=timeFormat(_0x17d8cc[_0x57bc3d(0x96)]);if(_0x17d8cc[_0x57bc3d(0xf4)]!=='')_0x17d8cc[_0x57bc3d(0xf4)]=timeFormat(_0x17d8cc[_0x57bc3d(0xf4)]);}if(_0x594315===0x4||_0x594315===0x5){if(_0x17d8cc['birthDate']!=='')_0x17d8cc[_0x57bc3d(0x96)]=timeFormat(_0x17d8cc['birthDate']);if(_0x17d8cc[_0x57bc3d(0xf4)]!==''){let _0x2fd2ac=_0x17d8cc[_0x57bc3d(0xf4)]['split']('-');_0x17d8cc[_0x57bc3d(0xf4)]=timeFormat(_0x2fd2ac[0x1]);}}return{'type':_0x594315,'data':_0x17d8cc};}function modifyKeys(_0x17ebe,_0x412d38={'strCode':a6_0x4444e4(0xaa),'strFjbh':'fjbh','strGuid':a6_0x4444e4(0xc7),'strValue':a6_0x4444e4(0xe9)}){const _0x2c237d=a6_0x4444e4;if(!_0x17ebe['length']||_0x17ebe===null)return[];const _0x4d15fd=_0x17ebe[_0x2c237d(0xda)](_0x44ce61=>{const _0x2f9063=_0x2c237d,_0x54fd0c={};for(const _0x171081 in _0x44ce61){_0x412d38[_0x2f9063(0x9a)](_0x171081)?_0x54fd0c[_0x412d38[_0x171081]]=_0x44ce61[_0x171081]:_0x54fd0c[_0x171081]=_0x44ce61[_0x171081];}return _0x54fd0c;});return _0x4d15fd;}function sliceArray(_0x38faf0,_0x35c27e,_0x30df98){const _0x1b9113=a6_0x4444e4;if(_0x35c27e<=0x0)return console[_0x1b9113(0xb8)](_0x1b9113(0xed)),[];return _0x30df98?_0x38faf0['slice'](0x0,_0x35c27e):_0x38faf0[_0x1b9113(0xa8)](-_0x35c27e);}function findDataByData(_0x4d6095,_0x427a4b,_0x5e026a){const _0x4995b2=_0x4d6095['find'](_0x41e5c=>_0x41e5c[_0x5e026a]===_0x427a4b);return _0x4995b2||null;}function splitArray(_0x11ba06,_0x9bdcd0){const _0x5992dd=a6_0x4444e4,_0x35d961=[];for(let _0x2fb4c5=0x0;_0x2fb4c5<_0x11ba06[_0x5992dd(0xa1)];_0x2fb4c5+=_0x9bdcd0){_0x35d961[_0x5992dd(0x97)](_0x11ba06[_0x5992dd(0xa8)](_0x2fb4c5,_0x2fb4c5+_0x9bdcd0));}return _0x35d961;}function getProxyType(_0x3fdbd0){const _0x28d255=a6_0x4444e4;return Object[_0x28d255(0xdf)][_0x28d255(0xdb)][_0x28d255(0xb6)](_0x3fdbd0)['slice'](0x8,-0x1);}let timeout=null;function debounce(_0x56bd84,_0x22c05c=0x1f4,_0x135dd1=![]){if(timeout!==null)clearTimeout(timeout);if(_0x135dd1){const _0x130653=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x22c05c);if(_0x130653)typeof _0x56bd84==='function'&&_0x56bd84();}else timeout=setTimeout(()=>{typeof _0x56bd84==='function'&&_0x56bd84();},_0x22c05c);}function urlEncode(_0x17ddc3={}){const _0x4ee39e=a6_0x4444e4,_0xe4b50b=[];for(const _0x88ffc9 in _0x17ddc3){const _0x728e6c=_0x17ddc3[_0x88ffc9];if(!_0x728e6c)continue;isArray(_0x728e6c)?_0x728e6c[_0x4ee39e(0xdc)](_0x112a25=>{const _0x5ed8c6=_0x4ee39e;_0xe4b50b[_0x5ed8c6(0x97)](_0x88ffc9+'='+_0x112a25);}):_0xe4b50b[_0x4ee39e(0x97)](_0x88ffc9+'='+_0x728e6c);}return _0xe4b50b[_0x4ee39e(0xc6)]('&');}function dateFormat(_0x11290e,_0x312d8a){const _0x204189=a6_0x4444e4,_0x4e7f21=new Date(_0x312d8a),_0x20c6ff={'Y+':_0x4e7f21['getFullYear']()[_0x204189(0xdb)](),'m+':(_0x4e7f21[_0x204189(0xd9)]()+0x1)[_0x204189(0xdb)](),'d+':_0x4e7f21['getDate']()['toString'](),'H+':_0x4e7f21[_0x204189(0xf1)]()[_0x204189(0xdb)](),'M+':_0x4e7f21[_0x204189(0xbc)]()[_0x204189(0xdb)](),'S+':_0x4e7f21['getSeconds']()[_0x204189(0xdb)]()};let _0x295462;for(let _0x3e416c in _0x20c6ff){_0x295462=new RegExp('('+_0x3e416c+')')['exec'](_0x11290e);_0x295462&&(_0x11290e=_0x11290e['replace'](_0x295462[0x1],_0x295462[0x1][_0x204189(0xa1)]==0x1?_0x20c6ff[_0x3e416c]:_0x20c6ff[_0x3e416c][_0x204189(0xcd)](_0x295462[0x1]['length'],'0')));;};return _0x11290e;}function formatDate(_0x2e6458,_0x95a39d='YYYY-MM-DD',_0xf55cbd={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x3ce335=a6_0x4444e4,_0x5459d5=new Date(_0x2e6458),_0x71253e=_0x5459d5[_0x3ce335(0xe8)](),_0x2885a4=_0x5459d5[_0x3ce335(0xd9)]()+0x1,_0x725601=_0x5459d5[_0x3ce335(0xee)](),_0x40c532=_0x2885a4<0xa?'0'+_0x2885a4:_0x2885a4,_0x50ba3e=_0x725601<0xa?'0'+_0x725601:_0x725601;let _0x28fc6e=_0x95a39d[_0x3ce335(0xd4)]('YYYY',_0x71253e)[_0x3ce335(0xd4)]('MM',_0x40c532)[_0x3ce335(0xd4)]('DD',_0x50ba3e);return _0x28fc6e=_0x28fc6e[_0x3ce335(0xd4)](/-MM/g,_0xf55cbd['monthTitle'])['replace'](/-DD/g,_0xf55cbd[_0x3ce335(0xe1)])[_0x3ce335(0xd4)](_0x3ce335(0xc1)+_0xf55cbd[_0x3ce335(0xc5)],'')[_0x3ce335(0xd4)]('MM'+_0xf55cbd[_0x3ce335(0xde)],'')[_0x3ce335(0xd4)]('DD'+_0xf55cbd['dayTitle'],''),_0x28fc6e;}function compareDates(_0xed36e8,_0x420dc6){const _0x2473e7=a6_0x4444e4;_0xed36e8=new Date(_0xed36e8);!_0x420dc6?_0x420dc6=new Date():_0x420dc6=new Date(_0x420dc6);_0xed36e8['setHours'](0x0,0x0,0x0,0x0),_0x420dc6['setHours'](0x0,0x0,0x0,0x0);var _0x4def39=_0xed36e8['getTime'](),_0x1cdc49=_0x420dc6[_0x2473e7(0xdd)]();if(_0x4def39<_0x1cdc49)return-0x1;else return _0x4def39>_0x1cdc49?0x1:0x0;}function getDaysBetween(_0x5512d1,_0x29830e){const _0x40a086=a6_0x4444e4,_0x502d61=new Date(_0x5512d1),_0x5005ae=new Date(_0x29830e),_0x3ac766=Math['abs'](_0x502d61[_0x40a086(0xdd)]()-_0x5005ae[_0x40a086(0xdd)]()),_0x4ee8da=Math[_0x40a086(0xb3)](_0x3ac766/(0x3e8*0x3c*0x3c*0x18));return _0x4ee8da+0x1;}function chineseNumeral(_0x23d96c){const _0x390f54=a6_0x4444e4,_0x2de6f5=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x4e8aae=['','拾','佰','仟'],_0x5352e2=['','万','亿','兆'];let _0x1120fb=Math['floor'](_0x23d96c),_0x26977d=Math[_0x390f54(0xd2)]((_0x23d96c-_0x1120fb)*0x64),_0x33880e='';for(let _0x5c1597=0x0;_0x1120fb>0x0;_0x5c1597++){let _0x44778c='',_0x5c3b34=_0x1120fb%0x2710;_0x1120fb=Math[_0x390f54(0xb3)](_0x1120fb/0x2710);for(let _0xe444fa=0x0;_0x5c3b34>0x0;_0xe444fa++){let _0xecdb8=_0x5c3b34%0xa;_0x44778c=(_0xecdb8?_0x2de6f5[_0xecdb8]+_0x4e8aae[_0xe444fa]:'')+_0x44778c,_0x5c3b34=Math[_0x390f54(0xb3)](_0x5c3b34/0xa);}_0x33880e=_0x44778c+(_0x44778c?_0x5352e2[_0x5c1597]:_0x5352e2[_0x5c1597]&&!_0x33880e[_0x390f54(0xa4)]('零')?'零':'')+_0x33880e;}_0x33880e+=_0x33880e?'元':'零元';if(_0x26977d>0x0){let _0x268c9a=Math[_0x390f54(0xb3)](_0x26977d/0xa),_0x23e5b4=_0x26977d%0xa;_0x33880e+=(_0x268c9a?_0x2de6f5[_0x268c9a]+'角':'')+(_0x23e5b4?_0x2de6f5[_0x23e5b4]+'分':'');}else _0x33880e+='整';return _0x33880e['replace'](/零{2,}/g,'零')[_0x390f54(0xd4)](/零元/,'元');}function getMonthDate(_0x289be9){const _0x302a97=a6_0x4444e4;(!_0x289be9||_0x289be9['trim']()==='')&&(_0x289be9=new Date()['getFullYear']()+'-'+(new Date()[_0x302a97(0xd9)]()+0x1));let _0x5258c3=[],[_0x377d7e,_0x41ba5e]=_0x289be9[_0x302a97(0xa9)]('-')[_0x302a97(0xda)](Number),_0x4f010f=new Date(_0x377d7e,_0x41ba5e,0x0),_0x7229e6=_0x4f010f[_0x302a97(0xee)]();for(let _0x4b83d5=0x1;_0x4b83d5<=_0x7229e6;_0x4b83d5++){let _0x55ea3e=_0x4b83d5<0xa?'0'+_0x4b83d5:''+_0x4b83d5,_0x1f92dc=_0x41ba5e<0xa?'0'+_0x41ba5e:''+_0x41ba5e;_0x5258c3[_0x302a97(0x97)]({'date':_0x377d7e+'-'+_0x1f92dc+'-'+_0x55ea3e,'disable':!![]});}return _0x5258c3;}function getToday(_0x3e055d){const _0x2a7764=a6_0x4444e4;var _0x16d943=new Date(),_0x148b62=String(_0x16d943[_0x2a7764(0xee)]())[_0x2a7764(0xcd)](0x2,'0'),_0x2bcae8=String(_0x16d943[_0x2a7764(0xd9)]()+0x1)['padStart'](0x2,'0'),_0x45cc1e=_0x16d943[_0x2a7764(0xe8)]();return _0x16d943=_0x45cc1e+'-'+_0x2bcae8+'-'+_0x148b62,_0x16d943;}function resetObject(_0x3b336c){const _0x1c16a9=a6_0x4444e4;let _0xedf6c3=JSON[_0x1c16a9(0x98)](JSON[_0x1c16a9(0x9f)](_0x3b336c));for(const _0x158b3f in _0xedf6c3){if(typeof _0xedf6c3[_0x158b3f]===_0x1c16a9(0xa7))_0xedf6c3[_0x158b3f]=0x0;else{if(typeof _0xedf6c3[_0x158b3f]===_0x1c16a9(0xac))_0xedf6c3[_0x158b3f]=![];else{if(Array[_0x1c16a9(0xb0)](_0xedf6c3[_0x158b3f]))_0xedf6c3[_0x158b3f]=[];else typeof _0xedf6c3[_0x158b3f]===_0x1c16a9(0xbe)&&_0xedf6c3[_0x158b3f]!==null?resetObject(_0xedf6c3[_0x158b3f]):_0xedf6c3[_0x158b3f]='';}}}return _0xedf6c3;}function preciseOperation(_0x2a8709,_0x5a60d5,_0x7e46f,_0x3274c1=0xf4240){const _0x48742a=a6_0x4444e4;if(isNaN(_0x2a8709)||isNaN(_0x5a60d5))return NaN;if(!isFinite(_0x2a8709)||!isFinite(_0x5a60d5))return NaN;let _0x4ac479=BigInt(Math[_0x48742a(0xd2)](_0x2a8709*_0x3274c1)),_0xc4f215=BigInt(Math[_0x48742a(0xd2)](_0x5a60d5*_0x3274c1)),_0x2a44ea;switch(_0x7e46f){case 0x1:_0x2a44ea=_0x4ac479+_0xc4f215;break;case 0x2:_0x2a44ea=_0x4ac479-_0xc4f215;break;case 0x3:_0x2a44ea=_0x4ac479*_0xc4f215;break;case 0x4:if(_0xc4f215===0x0n)throw new Error(_0x48742a(0xab));_0x2a44ea=_0x4ac479/_0xc4f215;break;default:throw new Error(_0x48742a(0xa5));}return Number(_0x2a44ea)/_0x3274c1;}function a6_0x4650(_0x341052,_0x5afe6d){const _0x55cd60=a6_0x55cd();return a6_0x4650=function(_0x465022,_0x773d9f){_0x465022=_0x465022-0x96;let _0x2117ab=_0x55cd60[_0x465022];return _0x2117ab;},a6_0x4650(_0x341052,_0x5afe6d);}function preciseSum(_0x14954a){const _0x46944d=a6_0x4444e4;let _0x32f459=0x0;for(const _0x1dd3c5 of _0x14954a){let _0x37935f=0x0;if(typeof _0x1dd3c5===_0x46944d(0xb5)){const _0x36e682=parseFloat(_0x1dd3c5);!isNaN(_0x36e682)&&(_0x37935f=_0x36e682);}else typeof _0x1dd3c5===_0x46944d(0xa7)&&(_0x37935f=_0x1dd3c5);_0x32f459=preciseOperation(_0x32f459,_0x37935f,0x1);}return _0x32f459;}function getRelativeDate(_0x12d2df,_0x419623=0x0){const _0x3828e6=a6_0x4444e4,_0x248cc5=new Date(_0x12d2df);_0x248cc5[_0x3828e6(0xe5)](_0x248cc5[_0x3828e6(0xee)]()+_0x419623);const _0x308baf=_0x248cc5[_0x3828e6(0xe8)](),_0x3d4c03=(_0x248cc5[_0x3828e6(0xd9)]()+0x1)[_0x3828e6(0xdb)]()[_0x3828e6(0xcd)](0x2,'0'),_0x1f08dc=_0x248cc5[_0x3828e6(0xee)]()['toString']()[_0x3828e6(0xcd)](0x2,'0');return _0x308baf+'-'+_0x3d4c03+'-'+_0x1f08dc;}function validateFields(_0x10a54e,_0x4a1b8b,_0x5665c6=''){for(let _0x5f0352 of _0x4a1b8b){if(_0x10a54e[_0x5f0352]===_0x5665c6)return!![];}return![];}function mergeObjects(_0x141aa6,_0x3fea04){const _0x184546=a6_0x4444e4;for(const _0x2f020a in _0x141aa6){_0x3fea04[_0x184546(0x9a)](_0x2f020a)&&(_0x141aa6[_0x2f020a]=_0x3fea04[_0x2f020a]);}return _0x141aa6;}const formatToDecimal=(_0x273c00,_0xf16ce7=0x2)=>{const _0x328ea4=a6_0x4444e4;if(isNaN(_0xf16ce7)||_0xf16ce7<0x0)return _0x273c00;let _0x343daf=Number(_0x273c00);if(!isFinite(_0x343daf))return _0x273c00;return _0xf16ce7=Math[_0x328ea4(0xd8)](0x0,Math['floor'](_0xf16ce7)),_0x343daf[_0x328ea4(0xb1)](_0xf16ce7);};function findKeysEndingWith(_0x51f9e6,_0x59d82a=a6_0x4444e4(0xf3)){const _0x351835=a6_0x4444e4;let _0x4cfe97=[];for(var _0x10edf in _0x51f9e6){if(_0x51f9e6['hasOwnProperty'](_0x10edf)){if(_0x10edf[_0x351835(0x99)](_0x59d82a))_0x4cfe97['push'](_0x10edf);}}return _0x4cfe97;}function guid(_0x3e173b=0x20,_0xce55d2=!![],_0x3328eb=null){const _0x4d4bb5=a6_0x4444e4,_0x57f5de=_0x4d4bb5(0xaf)[_0x4d4bb5(0xa9)](''),_0x5cc995=[];_0x3328eb=_0x3328eb||_0x57f5de['length'];if(_0x3e173b){for(let _0x42e97a=0x0;_0x42e97a<_0x3e173b;_0x42e97a++)_0x5cc995[_0x42e97a]=_0x57f5de[0x0|Math[_0x4d4bb5(0xc8)]()*_0x3328eb];}else{let _0x2247f6;_0x5cc995[0x8]=_0x5cc995[0xd]=_0x5cc995[0x12]=_0x5cc995[0x17]='-',_0x5cc995[0xe]='4';for(let _0x5a066e=0x0;_0x5a066e<0x24;_0x5a066e++){!_0x5cc995[_0x5a066e]&&(_0x2247f6=0x0|Math[_0x4d4bb5(0xc8)]()*0x10,_0x5cc995[_0x5a066e]=_0x57f5de[_0x5a066e==0x13?_0x2247f6&0x3|0x8:_0x2247f6]);}}if(_0xce55d2)return _0x5cc995[_0x4d4bb5(0xc0)](),'u'+_0x5cc995[_0x4d4bb5(0xc6)]('');return _0x5cc995[_0x4d4bb5(0xc6)]('');}function a6_0x55cd(){const _0x7f2a91=['Quantity\x20should\x20be\x20greater\x20than\x200.','getDate','630AYIQOy','givenName','getHours','897jYsspm','_qh','expDate','14672240AIsfLf','birthDate','push','parse','endsWith','hasOwnProperty','yyyy-mm-dd','name','givenNameEn','ExpiryDate','stringify','left','length','CnName','getSeconds','includes','无效的操作符,操作符应为1、2、3或4','Nationality','number','slice','split','code','除数不能为0','boolean','918rJzFDg','EnglishName','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','isArray','toFixed','EnName','floor','DateOfExpiration','string','call','surname','error','1590337fyokRF','Birthday','substring','getMinutes','both','object','Sex','shift','YYYY','18128429uHIobv','Number','toLocaleString','yearTitle','join','value','random','GivenName','nationality','Surname','140319HvxOwG','padStart','test','4256zBgLUC','sex','IdNum','round','Name','replace','DateOfBirth','exec','match','max','getMonth','map','toString','forEach','getTime','monthTitle','prototype','FirstName','dayTitle','englishName','ValidDate','6bRzhVj','setDate','trim','Birth','getFullYear','label','5036XuIRLw','1805SfbxCs','startsWith'];a6_0x55cd=function(){return _0x7f2a91;};return a6_0x55cd();}function trim(_0xc5836,_0x295f29=a6_0x4444e4(0xbd)){const _0x1ff19f=a6_0x4444e4;_0xc5836=String(_0xc5836);if(_0x295f29=='both')return _0xc5836[_0x1ff19f(0xd4)](/^\s+|\s+$/g,'');if(_0x295f29==_0x1ff19f(0xa0))return _0xc5836[_0x1ff19f(0xd4)](/^\s*/,'');if(_0x295f29=='right')return _0xc5836[_0x1ff19f(0xd4)](/(\s*$)/g,'');if(_0x295f29=='all')return _0xc5836['replace'](/\s+/g,'');return _0xc5836;}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};
|