yunlin 1.0.56 → 1.0.57

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 a0_0x1b4c(){var _0x36101b=['12929913SdlHza','4068TcCQdu','31XHGaVD','4499625wyfwcw','2839365hEJOdB','8557928WbIRdf','4TOhVYG','10115BiuIEX','12750lwuPFN','3800AKodez','21769dCkzJV'];a0_0x1b4c=function(){return _0x36101b;};return a0_0x1b4c();}(function(_0x2a14d2,_0x33c6e3){var _0x3c5629=a0_0x9eec,_0x2ebc4d=_0x2a14d2();while(!![]){try{var _0x20fd9b=parseInt(_0x3c5629(0x117))/0x1*(-parseInt(_0x3c5629(0x113))/0x2)+parseInt(_0x3c5629(0x118))/0x3+-parseInt(_0x3c5629(0x110))/0x4*(-parseInt(_0x3c5629(0x119))/0x5)+parseInt(_0x3c5629(0x116))/0x6*(parseInt(_0x3c5629(0x111))/0x7)+-parseInt(_0x3c5629(0x10f))/0x8+parseInt(_0x3c5629(0x115))/0x9+parseInt(_0x3c5629(0x112))/0xa*(-parseInt(_0x3c5629(0x114))/0xb);if(_0x20fd9b===_0x33c6e3)break;else _0x2ebc4d['push'](_0x2ebc4d['shift']());}catch(_0x59e46d){_0x2ebc4d['push'](_0x2ebc4d['shift']());}}}(a0_0x1b4c,0xcb2f9));import a0_0x1953c0 from'./utils';import a0_0x262a67 from'./price';import a0_0x4a8323 from'./test';import a0_0x207750 from'./room';function a0_0x9eec(_0x469326,_0x1446b7){var _0x1b4cb1=a0_0x1b4c();return a0_0x9eec=function(_0x9eec92,_0x38dc8d){_0x9eec92=_0x9eec92-0x10f;var _0x2c00dc=_0x1b4cb1[_0x9eec92];return _0x2c00dc;},a0_0x9eec(_0x469326,_0x1446b7);}import a0_0x46023e from'./roomOld';import a0_0x21464a from'./system';export default{'test':a0_0x4a8323,'utils':a0_0x1953c0,'price':a0_0x262a67,'room':a0_0x207750,'roomOld':a0_0x46023e,'system':a0_0x21464a};
1
+ (function(_0x1b8199,_0x5e5fd4){var _0x57dde1=a0_0x42e1,_0x13c987=_0x1b8199();while(!![]){try{var _0x209ab4=parseInt(_0x57dde1(0xbf))/0x1*(-parseInt(_0x57dde1(0xb7))/0x2)+-parseInt(_0x57dde1(0xbd))/0x3*(parseInt(_0x57dde1(0xb6))/0x4)+-parseInt(_0x57dde1(0xc0))/0x5*(parseInt(_0x57dde1(0xb8))/0x6)+parseInt(_0x57dde1(0xb4))/0x7*(parseInt(_0x57dde1(0xb5))/0x8)+-parseInt(_0x57dde1(0xba))/0x9*(parseInt(_0x57dde1(0xbe))/0xa)+parseInt(_0x57dde1(0xb9))/0xb+parseInt(_0x57dde1(0xbb))/0xc*(parseInt(_0x57dde1(0xbc))/0xd);if(_0x209ab4===_0x5e5fd4)break;else _0x13c987['push'](_0x13c987['shift']());}catch(_0x193431){_0x13c987['push'](_0x13c987['shift']());}}}(a0_0x45bf,0x42924));import a0_0x142edb from'./utils';import a0_0x1c21ed from'./price';import a0_0xa52460 from'./test';function a0_0x42e1(_0xfbee3e,_0x4f9898){var _0x45bfbc=a0_0x45bf();return a0_0x42e1=function(_0x42e173,_0x5be64b){_0x42e173=_0x42e173-0xb4;var _0x272a86=_0x45bfbc[_0x42e173];return _0x272a86;},a0_0x42e1(_0xfbee3e,_0x4f9898);}import a0_0x52edf0 from'./room';import a0_0x6f320 from'./roomOld';import a0_0x410b51 from'./system';function a0_0x45bf(){var _0xd78be3=['16NcbGhW','708368AIzMFR','558370PBbIrv','2851656hwlTXv','608729hMiJxE','9TBGvff','6972lWniSB','28093QrkZPT','6Boofvw','842830AusBSD','1skXjjZ','5jXOjGb','541534YXkeKt'];a0_0x45bf=function(){return _0xd78be3;};return a0_0x45bf();}export default{'test':a0_0xa52460,'utils':a0_0x142edb,'price':a0_0x1c21ed,'room':a0_0x52edf0,'roomOld':a0_0x6f320,'system':a0_0x410b51};
package/dist/price.js CHANGED
@@ -1 +1 @@
1
- (function(_0x436898,_0x1d78b5){const _0x30c3e3=a1_0x164c,_0x33856a=_0x436898();while(!![]){try{const _0x406bc8=-parseInt(_0x30c3e3(0x1ea))/0x1+-parseInt(_0x30c3e3(0x1f8))/0x2*(parseInt(_0x30c3e3(0x1bf))/0x3)+parseInt(_0x30c3e3(0x1ca))/0x4*(parseInt(_0x30c3e3(0x1c9))/0x5)+parseInt(_0x30c3e3(0x1df))/0x6*(parseInt(_0x30c3e3(0x1c7))/0x7)+-parseInt(_0x30c3e3(0x1d4))/0x8*(parseInt(_0x30c3e3(0x1e0))/0x9)+parseInt(_0x30c3e3(0x1e1))/0xa*(parseInt(_0x30c3e3(0x1ad))/0xb)+parseInt(_0x30c3e3(0x197))/0xc;if(_0x406bc8===_0x1d78b5)break;else _0x33856a['push'](_0x33856a['shift']());}catch(_0x313011){_0x33856a['push'](_0x33856a['shift']());}}}(a1_0x4db9,0xbdc65));function a1_0x164c(_0x2ebdd1,_0x1db8ca){const _0x4db9f5=a1_0x4db9();return a1_0x164c=function(_0x164ca1,_0x418be6){_0x164ca1=_0x164ca1-0x197;let _0x3d3de3=_0x4db9f5[_0x164ca1];return _0x3d3de3;},a1_0x164c(_0x2ebdd1,_0x1db8ca);}function handleCosting(_0x2301b0,_0x5d3677='',_0x58cc50={},_0x2a90a0,_0x2a98a3){const _0x4e6121=a1_0x164c;let _0x281d9f=[];const _0x56da1c=_0x4e6121(0x1dd),_0x417c35={'couponSign':'-','dp':0x2,'isShowTip':!![],'category':_0x4e6121(0x1b6),'travelDays':0x2};_0x58cc50=typeof _0x58cc50===_0x4e6121(0x1ec)&&!Array[_0x4e6121(0x1b7)](_0x58cc50)&&_0x58cc50!==null?_0x58cc50:{};const _0x28f891={..._0x417c35,..._0x58cc50},_0x434d3c=Object[_0x4e6121(0x1f6)](_0x417c35);Object[_0x4e6121(0x1f6)](_0x58cc50)['forEach'](_0x5b10e6=>{const _0x3b5df3=_0x4e6121;!_0x434d3c['includes'](_0x5b10e6)&&console[_0x3b5df3(0x1cc)]('[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20'+_0x5b10e6);});let _0x5f49ff=_0x28f891['couponSign']||'-',_0x2c9955=_0x28f891['dp']||0x2;const _0x4ce98c=(_0x7830f,_0x52e77d=_0x2c9955)=>{const _0x11ad39=_0x4e6121;if(typeof _0x7830f!==_0x11ad39(0x1a9)&&isNaN(Number(_0x7830f)))return console[_0x11ad39(0x1e5)](_0x11ad39(0x1ae)+_0x7830f),_0x7830f;if(isNaN(_0x52e77d)||_0x52e77d<0x0)return _0x7830f;let _0x26bded=Number(_0x7830f);if(!isFinite(_0x26bded))return _0x7830f;return _0x52e77d=Math[_0x11ad39(0x19b)](0x0,Math[_0x11ad39(0x1f1)](_0x52e77d)),_0x26bded[_0x11ad39(0x1c6)](_0x52e77d);},_0x2aee5a=(_0xa21ca9,_0x154f27)=>{const _0x1b694c=_0x4e6121;if(_0x154f27&&typeof _0x154f27===_0x1b694c(0x1ec)&&!Array[_0x1b694c(0x1b7)](_0x154f27))for(const _0x1e083a in _0xa21ca9){_0xa21ca9[_0x1b694c(0x1f4)](_0x1e083a)&&_0x154f27['hasOwnProperty'](_0x1e083a)&&(_0xa21ca9[_0x1e083a]=_0x154f27[_0x1e083a]);}else console[_0x1b694c(0x1e5)]((_0x1b694c(0x1b1)+JSON[_0x1b694c(0x1ba)](_0x154f27,null,0x2)+_0x1b694c(0x1cb)+JSON[_0x1b694c(0x1ba)](_0xa21ca9,null,0x2))['trim']());return _0xa21ca9;};let _0x393d7f={'people':_0x4e6121(0x1f5),'service':_0x4e6121(0x1da),'trip':_0x4e6121(0x1bb),'other':'其他費用','reduction':_0x4e6121(0x1d8),'totalprice':'總計','airtax':_0x4e6121(0x1a5)},_0x2b96a1={'adult':'成人','child':'兒童','childusebed':'兒童[占床]','infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x4e6121(0x1aa),'vip':'會員減免','promotion':'促銷','insure':_0x4e6121(0x1c1),'coupon':_0x4e6121(0x1d2),'point':'積分','tax':'稅金','viprecharge':_0x4e6121(0x1f2),'changeprice':'调价','commission':'返点','r':'人','t':'天'};_0x393d7f=_0x2aee5a(_0x393d7f,_0x2a90a0),_0x2b96a1=_0x2aee5a(_0x2b96a1,_0x2a98a3);const _0x19c6f7=_0x2301b0[_0x4e6121(0x1d9)](_0x455309=>_0x455309[_0x4e6121(0x19e)]==_0x4e6121(0x1cd));if(_0x19c6f7[_0x4e6121(0x1a6)]){let _0x2fb8db={'title':_0x393d7f[_0x4e6121(0x1c2)],'type':'base','list':[]},_0xf0c363=![];const _0x298cce=parseInt(_0x28f891[_0x4e6121(0x1d0)],0xa);(_0x28f891[_0x4e6121(0x1de)]==_0x4e6121(0x1b6)||_0x28f891[_0x4e6121(0x1de)]==_0x4e6121(0x1d5))&&!isNaN(_0x298cce)&&_0x298cce>0x1&&(_0xf0c363=!![]),_0x19c6f7[_0x4e6121(0x1bd)](_0x3aad3c=>{const _0x210253=_0x4e6121;let _0x4204ef=_0x3aad3c[_0x210253(0x199)];if(_0x28f891[_0x210253(0x1de)]==_0x210253(0x1e6)&&_0x3aad3c[_0x210253(0x1dc)])_0x4204ef=_0x3aad3c[_0x210253(0x199)]+'\x20['+_0x3aad3c[_0x210253(0x1dc)]+']';_0xf0c363&&((_0x3aad3c[_0x210253(0x1e3)]==_0x210253(0x1eb)||_0x3aad3c[_0x210253(0x1e3)]==_0x210253(0x1a2)||_0x3aad3c[_0x210253(0x1e3)]==_0x210253(0x1e7)||_0x3aad3c['strJgbm']==_0x210253(0x1d6))&&(_0x4204ef=_0x3aad3c[_0x210253(0x199)]+'\x20['+_0x2b96a1[_0x3aad3c[_0x210253(0x1e3)]]+']')),_0x2fb8db[_0x210253(0x1e2)][_0x210253(0x1c4)]({'title':_0x2b96a1[_0x3aad3c[_0x210253(0x1e3)]],'subTitle':_0x4204ef,'date':_0x3aad3c[_0x210253(0x1dc)],'info':_0x5d3677+_0x4ce98c(_0x3aad3c[_0x210253(0x1b3)])+_0x56da1c+_0x3aad3c['nRs'],'nRs':_0x3aad3c['nRs'],'unit':_0x3aad3c[_0x210253(0x1b3)],'cb':_0x3aad3c[_0x210253(0x1ac)],'type':_0x210253(0x1cd)});}),_0x281d9f[_0x4e6121(0x1c4)](_0x2fb8db);}const _0x58ecaf=_0x2301b0[_0x4e6121(0x1d9)](_0x52d3df=>_0x52d3df[_0x4e6121(0x19e)]==_0x4e6121(0x1db));if(_0x58ecaf['length']){let _0x5bb1ee={'title':_0x393d7f[_0x4e6121(0x1db)],'type':_0x4e6121(0x1db),'list':[]};_0x58ecaf['map'](_0x1a7ccf=>{const _0xbb0e9b=_0x4e6121;_0x5bb1ee[_0xbb0e9b(0x1e2)][_0xbb0e9b(0x1c4)]({'title':_0x1a7ccf[_0xbb0e9b(0x1b0)]+('['+_0x1a7ccf[_0xbb0e9b(0x1ce)]+']'),'info':_0x5d3677+_0x4ce98c(_0x1a7ccf['unitprice'])+_0x56da1c+_0x1a7ccf[_0xbb0e9b(0x1af)],'nRs':_0x1a7ccf[_0xbb0e9b(0x1af)],'unit':_0x1a7ccf[_0xbb0e9b(0x1e9)],'cb':_0x1a7ccf[_0xbb0e9b(0x19c)],'type':'service'});}),_0x281d9f[_0x4e6121(0x1c4)](_0x5bb1ee);}const _0x4c14d3=_0x2301b0['filter'](_0x224f17=>_0x224f17[_0x4e6121(0x19e)]=='trip');if(_0x4c14d3[_0x4e6121(0x1a6)]){let _0x2c9aeb={'title':_0x393d7f[_0x4e6121(0x1a7)],'type':_0x4e6121(0x1a7),'list':[]};_0x4c14d3['map'](_0x5c63e1=>{const _0x2e607c=_0x4e6121;_0x5c63e1['adultnum']!='0'&&_0x2c9aeb[_0x2e607c(0x1e2)][_0x2e607c(0x1c4)]({'title':_0x5c63e1[_0x2e607c(0x1b0)]+('['+_0x2b96a1['adult']+']'),'info':_0x5d3677+_0x4ce98c(_0x5c63e1[_0x2e607c(0x1f7)])+_0x56da1c+_0x5c63e1[_0x2e607c(0x1f3)],'nRs':_0x5c63e1[_0x2e607c(0x1f3)],'unit':_0x5c63e1[_0x2e607c(0x1f7)],'cb':_0x5c63e1[_0x2e607c(0x1ef)],'type':'trip'}),_0x5c63e1[_0x2e607c(0x1be)]!='0'&&_0x2c9aeb[_0x2e607c(0x1e2)][_0x2e607c(0x1c4)]({'title':_0x5c63e1[_0x2e607c(0x1b0)]+('['+_0x2b96a1['child']+']'),'info':_0x5d3677+_0x4ce98c(_0x5c63e1[_0x2e607c(0x1a3)])+_0x56da1c+_0x5c63e1[_0x2e607c(0x1be)],'nRs':_0x5c63e1[_0x2e607c(0x1be)],'unit':_0x5c63e1[_0x2e607c(0x1a3)],'cb':_0x5c63e1[_0x2e607c(0x19a)],'type':_0x2e607c(0x1a7)});}),_0x281d9f[_0x4e6121(0x1c4)](_0x2c9aeb);}let _0x261df3=[];const _0x237411=_0x2301b0[_0x4e6121(0x1d9)](_0x28718a=>_0x28718a[_0x4e6121(0x19e)]=='elder');_0x237411[_0x4e6121(0x1a6)]&&_0x237411['map'](_0x7c9300=>{const _0x596b37=_0x4e6121,_0x12ec5e=_0x7c9300[_0x596b37(0x1b0)]['split']('|')||[''];_0x261df3[_0x596b37(0x1c4)]({'title':_0x2b96a1[_0x596b37(0x1ee)]+('['+_0x12ec5e[0x0]+']'),'info':_0x5d3677+_0x5f49ff+_0x4ce98c(_0x7c9300[_0x596b37(0x1f0)]),'unit':_0x7c9300[_0x596b37(0x1f0)],'cb':_0x7c9300[_0x596b37(0x1f0)],'type':_0x596b37(0x1ee)});});const _0x203e3d=_0x2301b0[_0x4e6121(0x1d9)](_0x583504=>_0x583504[_0x4e6121(0x19e)]==_0x4e6121(0x198));_0x203e3d[_0x4e6121(0x1a6)]&&_0x203e3d[_0x4e6121(0x1bd)](_0x3aa34d=>{const _0x74b509=_0x4e6121;_0x261df3[_0x74b509(0x1c4)]({'title':_0x2b96a1[_0x74b509(0x1e4)]+('['+_0x3aa34d['name']+']'),'info':_0x5d3677+_0x5f49ff+_0x4ce98c(_0x3aa34d[_0x74b509(0x1f0)]),'unit':_0x3aa34d[_0x74b509(0x1f0)],'cb':_0x3aa34d['money'],'type':'vip'});});const _0x48e86b=_0x2301b0['filter'](_0x1dceb4=>_0x1dceb4[_0x4e6121(0x19e)]=='promotion');_0x48e86b[_0x4e6121(0x1a6)]&&_0x48e86b[_0x4e6121(0x1bd)](_0x3cae21=>{const _0x3345cd=_0x4e6121;_0x261df3[_0x3345cd(0x1c4)]({'title':_0x2b96a1[_0x3345cd(0x19d)],'info':_0x5d3677+_0x5f49ff+_0x4ce98c(_0x3cae21[_0x3345cd(0x1f0)]),'unit':_0x3cae21['money'],'cb':_0x3cae21[_0x3345cd(0x1f0)],'type':'promotion'});});_0x261df3[_0x4e6121(0x1a6)]&&_0x281d9f['push']({'title':_0x393d7f[_0x4e6121(0x1a8)],'type':_0x4e6121(0x1a8),'list':_0x261df3});const _0xccea1b=_0x2301b0[_0x4e6121(0x1d9)](_0x557b22=>_0x557b22[_0x4e6121(0x19e)]==_0x4e6121(0x1d1));if(_0xccea1b[_0x4e6121(0x1a6)]){let _0x1a1727={'title':_0x393d7f[_0x4e6121(0x1d1)],'type':_0x4e6121(0x1d1),'list':[]};_0xccea1b[_0x4e6121(0x1bd)](_0x544cb9=>{const _0x54a81c=_0x4e6121;_0x1a1727[_0x54a81c(0x1e2)]['push']({'title':_0x2b96a1[_0x544cb9[_0x54a81c(0x1a1)]],'info':_0x5d3677+_0x4ce98c(_0x544cb9[_0x54a81c(0x1e9)])+_0x56da1c+_0x544cb9['sl'],'nRs':_0x544cb9['sl'],'unit':_0x544cb9[_0x54a81c(0x1e9)],'cb':_0x544cb9['unitpricewb'],'type':_0x544cb9[_0x54a81c(0x1a1)]});}),_0x281d9f[_0x4e6121(0x1c4)](_0x1a1727);}const _0x51270b=[_0x4e6121(0x1cd),_0x4e6121(0x1db),_0x4e6121(0x1a7),_0x4e6121(0x1ee),'vipdiscounted',_0x4e6121(0x19d),_0x4e6121(0x1d1)],_0x216cdb=_0x2301b0[_0x4e6121(0x1d9)](_0x4b6e29=>!_0x51270b[_0x4e6121(0x1ed)](_0x4b6e29['strLx']));let _0x1353ab={'title':_0x393d7f[_0x4e6121(0x1ab)],'type':_0x4e6121(0x1ab),'list':[]};for(var _0x1fde8c=0x0;_0x1fde8c<_0x216cdb[_0x4e6121(0x1a6)];_0x1fde8c++){const _0x58513c=_0x216cdb[_0x1fde8c];_0x58513c[_0x4e6121(0x19e)]==_0x4e6121(0x1e8)&&_0x1353ab['list'][_0x4e6121(0x1c4)]({'title':_0x2b96a1[_0x4e6121(0x1e8)]+('['+_0x58513c['name']+']'),'info':_0x5d3677+_0x4ce98c(_0x58513c['money']),'unit':_0x58513c[_0x4e6121(0x1f0)],'type':_0x58513c[_0x4e6121(0x19e)]}),_0x58513c[_0x4e6121(0x19e)]==_0x4e6121(0x1c8)&&_0x1353ab['list'][_0x4e6121(0x1c4)]({'title':_0x2b96a1[_0x4e6121(0x1c8)]+('['+_0x58513c[_0x4e6121(0x1b0)]+']'),'info':_0x5d3677+_0x4ce98c(_0x58513c[_0x4e6121(0x1c0)])+_0x56da1c+_0x58513c[_0x4e6121(0x19f)]+_0x2b96a1['r'],'nRs':_0x58513c['users'],'unit':_0x58513c['unit'],'cb':_0x58513c['unit'],'type':'insure'}),(_0x58513c['strLx']==_0x4e6121(0x1bc)||_0x58513c[_0x4e6121(0x19e)]==_0x4e6121(0x1a4))&&_0x1353ab[_0x4e6121(0x1e2)][_0x4e6121(0x1c4)]({'title':_0x58513c[_0x4e6121(0x1d3)]||_0x2b96a1[_0x58513c['strLx']],'info':_0x5d3677+_0x5f49ff+_0x4ce98c(_0x58513c[_0x4e6121(0x1f0)]),'unit':_0x58513c[_0x4e6121(0x1f0)],'cb':_0x58513c[_0x4e6121(0x1a0)]||0x0,'type':_0x58513c['strLx']}),_0x58513c[_0x4e6121(0x19e)]==_0x4e6121(0x1b2)&&_0x28f891['isShowTip']&&_0x1353ab[_0x4e6121(0x1e2)][_0x4e6121(0x1c4)]({'title':_0x2b96a1[_0x58513c['strLx']],'info':_0x5d3677+_0x4ce98c(_0x58513c['tip'])+_0x56da1c+_0x58513c[_0x4e6121(0x1d7)]+_0x2b96a1['r']+_0x56da1c+_0x58513c[_0x4e6121(0x1c3)]+_0x2b96a1['t'],'nRs':_0x58513c[_0x4e6121(0x1d7)],'count':_0x58513c[_0x4e6121(0x1c3)],'unit':_0x58513c['tip'],'type':_0x58513c['strLx']}),_0x58513c['strLx']==_0x4e6121(0x1b5)&&_0x1353ab[_0x4e6121(0x1e2)][_0x4e6121(0x1c4)]({'title':_0x2b96a1[_0x4e6121(0x1b5)],'info':_0x5d3677+_0x4ce98c(_0x58513c[_0x4e6121(0x1b9)]),'unit':_0x58513c[_0x4e6121(0x1b9)],'type':_0x58513c['strLx']}),_0x58513c[_0x4e6121(0x19e)]==_0x4e6121(0x1b4)&&_0x1353ab[_0x4e6121(0x1e2)][_0x4e6121(0x1c4)]({'title':_0x2b96a1[_0x4e6121(0x1b4)],'info':_0x5d3677+_0x4ce98c(_0x58513c['price']),'unit':_0x58513c[_0x4e6121(0x1b9)],'type':_0x58513c[_0x4e6121(0x19e)]}),_0x58513c[_0x4e6121(0x19e)]==_0x4e6121(0x1cf)&&_0x1353ab['list']['push']({'title':_0x2b96a1[_0x58513c[_0x4e6121(0x19e)]],'info':_0x5d3677+_0x4ce98c(_0x58513c[_0x4e6121(0x1b8)]),'unit':_0x58513c['totaltax'],'type':_0x58513c[_0x4e6121(0x19e)]});}_0x1353ab[_0x4e6121(0x1e2)][_0x4e6121(0x1a6)]&&_0x281d9f[_0x4e6121(0x1c4)](_0x1353ab);const _0x1f9bd4=_0x2301b0[_0x4e6121(0x1d9)](_0x19bd51=>_0x19bd51[_0x4e6121(0x19e)]==_0x4e6121(0x1c5));return _0x1f9bd4[_0x4e6121(0x1a6)]&&_0x281d9f[_0x4e6121(0x1c4)]({'title':_0x393d7f[_0x4e6121(0x1c5)],'type':_0x4e6121(0x1c5),'list':[{'title':_0x393d7f[_0x4e6121(0x1c5)],'info':_0x5d3677+_0x4ce98c(_0x1f9bd4[0x0]['price'])}]}),_0x281d9f;}export default{'handleCosting':handleCosting};function a1_0x4db9(){const _0x472a69=['totalprice','toFixed','7RucAap','insure','3745gTcvcS','2144ggVQoT','\x0a\x09\x09\x09正确参数:','warn','base','itemname','tax','travelDays','airtax','優惠券','couponmc','12334232BcOreL','cruise','infant','tipuser','減免費用','filter','附加服務','service','dtRq','\x20*\x20','category','33426DdUgpa','9BquSXM','26770pNkaZS','list','strJgbm','vip','error','Hotel01','child','viprecharge','unitprice','1499285CiaieI','adult','object','includes','elder','baseadultprice','money','floor','會員充值','adultnum','hasOwnProperty','人員費用','keys','adultunitprice','4DvRcIA','34770012uFksHj','vipdiscounted','strJglxtxt','basechildprice','max','baseprice','promotion','strLx','users','points','rylx','childusebed','childunitprice','point','機場稅','length','trip','reduction','number','遊客優惠','other','fJcbzlsjUnit','2321IkYrZQ','ftd\x20函数接收到无效的数字输入:\x20','num','name','yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:','tip','fLsjUnit','commission','changeprice','50258004','isArray','totaltax','price','stringify','附加行程','coupon','map','childnum','76503tRWrIC','unit','保險費用','people','tipday','push'];a1_0x4db9=function(){return _0x472a69;};return a1_0x4db9();}
1
+ function a1_0x2f2b(){const _0x52dae0=['users','toFixed','object','num','max','ftd\x20函数接收到无效的数字输入:\x20','2526460umpzfe','50258004','keys','\x20*\x20','strJglxtxt','1301902JjRRzr','push','itemname','promotion','list','elder','其他費用','保險費用','vip','changeprice','5370894cqUfuB','childunitprice','map','tip','childusebed','travelDays','372592rUpLIZ','cruise','遊客優惠','50FSiDCo','name','people','會員充值','726192eNfENw','basechildprice','dtRq','isArray','12THfkFb','兒童[占床]','totalprice','strJgbm','baseprice','base','adultnum','fLsjUnit','price','totaltax','infant','2yJjqKh','trim','優惠券','附加服務','includes','childnum','commission','service','會員減免','機場稅','adultunitprice','child','other','error','reduction','\x0a\x09\x09\x09正确参数:','stringify','insure','1298160SRFeFE','tipday','baseadultprice','category','viprecharge','points','money','vipdiscounted','length','unitprice','couponSign','trip','tipuser','Hotel01','adult','couponmc','airtax','floor','5jmKlNJ','nRs','rylx','96581fAWyeA','coupon','strLx','filter','hasOwnProperty'];a1_0x2f2b=function(){return _0x52dae0;};return a1_0x2f2b();}function a1_0x240b(_0x52a5d3,_0x29ebeb){const _0x2f2be5=a1_0x2f2b();return a1_0x240b=function(_0x240b6c,_0x56c958){_0x240b6c=_0x240b6c-0xce;let _0x2eb18a=_0x2f2be5[_0x240b6c];return _0x2eb18a;},a1_0x240b(_0x52a5d3,_0x29ebeb);}(function(_0x36a047,_0x25244d){const _0x592634=a1_0x240b,_0x600a06=_0x36a047();while(!![]){try{const _0x5a3db1=parseInt(_0x592634(0xf3))/0x1*(parseInt(_0x592634(0x129))/0x2)+parseInt(_0x592634(0x11a))/0x3+parseInt(_0x592634(0xfe))/0x4*(parseInt(_0x592634(0xf0))/0x5)+parseInt(_0x592634(0x11e))/0x6*(-parseInt(_0x592634(0x103))/0x7)+parseInt(_0x592634(0xde))/0x8+-parseInt(_0x592634(0x10d))/0x9+parseInt(_0x592634(0x116))/0xa*(parseInt(_0x592634(0x113))/0xb);if(_0x5a3db1===_0x25244d)break;else _0x600a06['push'](_0x600a06['shift']());}catch(_0x47c578){_0x600a06['push'](_0x600a06['shift']());}}}(a1_0x2f2b,0x51560));function handleCosting(_0x27e370,_0x297be2='',_0xff9e7d={},_0x23398d,_0x5bb091){const _0x31574b=a1_0x240b;let _0x13a625=[];const _0x56f456=_0x31574b(0x101),_0x418ba8={'couponSign':'-','dp':0x2,'isShowTip':!![],'category':_0x31574b(0xff),'travelDays':0x2};_0xff9e7d=typeof _0xff9e7d===_0x31574b(0xfa)&&!Array[_0x31574b(0x11d)](_0xff9e7d)&&_0xff9e7d!==null?_0xff9e7d:{};const _0xb1b497={..._0x418ba8,..._0xff9e7d},_0x51fb90=Object[_0x31574b(0x100)](_0x418ba8);Object['keys'](_0xff9e7d)['forEach'](_0x416ad9=>{const _0x9db353=_0x31574b;!_0x51fb90[_0x9db353(0xd0)](_0x416ad9)&&console['warn']('[yunlin\x20warn]\x20handleCosting:传入的\x20expand\x20参数中包含未知键名:\x20'+_0x416ad9);});let _0x4d1aab=_0xb1b497[_0x31574b(0xe8)]||'-',_0x2ea247=_0xb1b497['dp']||0x2;const _0x5368fa=(_0x432fd,_0x11a4d7=_0x2ea247)=>{const _0x1d48dc=_0x31574b;if(typeof _0x432fd!=='number'&&isNaN(Number(_0x432fd)))return console[_0x1d48dc(0xd9)](_0x1d48dc(0xfd)+_0x432fd),_0x432fd;if(isNaN(_0x11a4d7)||_0x11a4d7<0x0)return _0x432fd;let _0x4d85ba=Number(_0x432fd);if(!isFinite(_0x4d85ba))return _0x432fd;return _0x11a4d7=Math[_0x1d48dc(0xfc)](0x0,Math[_0x1d48dc(0xef)](_0x11a4d7)),_0x4d85ba[_0x1d48dc(0xf9)](_0x11a4d7);},_0x136bc7=(_0x4798bb,_0x345406)=>{const _0x4be980=_0x31574b;if(_0x345406&&typeof _0x345406===_0x4be980(0xfa)&&!Array[_0x4be980(0x11d)](_0x345406))for(const _0x3dbda8 in _0x4798bb){_0x4798bb['hasOwnProperty'](_0x3dbda8)&&_0x345406[_0x4be980(0xf7)](_0x3dbda8)&&(_0x4798bb[_0x3dbda8]=_0x345406[_0x3dbda8]);}else console[_0x4be980(0xd9)](('yunlin:\x20handleCosting函数提交参数错误。\x0a\x09\x09\x09错误参数:'+JSON['stringify'](_0x345406,null,0x2)+_0x4be980(0xdb)+JSON[_0x4be980(0xdc)](_0x4798bb,null,0x2))[_0x4be980(0x12a)]());return _0x4798bb;};let _0x2976c5={'people':'人員費用','service':_0x31574b(0xcf),'trip':'附加行程','other':_0x31574b(0x109),'reduction':'減免費用','totalprice':'總計','airtax':_0x31574b(0xd5)},_0x238fee={'adult':'成人','child':'兒童','childusebed':_0x31574b(0x11f),'infant':'嬰兒','half':'拼房','tip':'小費','elder':_0x31574b(0x115),'vip':_0x31574b(0xd4),'promotion':'促銷','insure':_0x31574b(0x10a),'coupon':_0x31574b(0xce),'point':'積分','tax':'稅金','viprecharge':_0x31574b(0x119),'changeprice':'调价','commission':'返点','r':'人','t':'天'};_0x2976c5=_0x136bc7(_0x2976c5,_0x23398d),_0x238fee=_0x136bc7(_0x238fee,_0x5bb091);const _0x3049fc=_0x27e370[_0x31574b(0xf6)](_0x1320c1=>_0x1320c1[_0x31574b(0xf5)]==_0x31574b(0x123));if(_0x3049fc[_0x31574b(0xe6)]){let _0x2a9fb4={'title':_0x2976c5[_0x31574b(0x118)],'type':_0x31574b(0x123),'list':[]},_0x101471=![];const _0x5ce144=parseInt(_0xb1b497[_0x31574b(0x112)],0xa);(_0xb1b497[_0x31574b(0xe1)]==_0x31574b(0xff)||_0xb1b497[_0x31574b(0xe1)]==_0x31574b(0x114))&&!isNaN(_0x5ce144)&&_0x5ce144>0x1&&(_0x101471=!![]),_0x3049fc[_0x31574b(0x10f)](_0x4fe02d=>{const _0x27dc9f=_0x31574b;let _0x470d86=_0x4fe02d[_0x27dc9f(0x102)];if(_0xb1b497['category']==_0x27dc9f(0xeb)&&_0x4fe02d[_0x27dc9f(0x11c)])_0x470d86=_0x4fe02d[_0x27dc9f(0x102)]+'\x20['+_0x4fe02d[_0x27dc9f(0x11c)]+']';_0x101471&&((_0x4fe02d[_0x27dc9f(0x121)]==_0x27dc9f(0xec)||_0x4fe02d[_0x27dc9f(0x121)]==_0x27dc9f(0x111)||_0x4fe02d[_0x27dc9f(0x121)]=='child'||_0x4fe02d[_0x27dc9f(0x121)]==_0x27dc9f(0x128))&&(_0x470d86=_0x4fe02d[_0x27dc9f(0x102)]+'\x20['+_0x238fee[_0x4fe02d['strJgbm']]+']')),_0x2a9fb4[_0x27dc9f(0x107)]['push']({'title':_0x238fee[_0x4fe02d[_0x27dc9f(0x121)]],'subTitle':_0x470d86,'date':_0x4fe02d['dtRq'],'info':_0x297be2+_0x5368fa(_0x4fe02d[_0x27dc9f(0x125)])+_0x56f456+_0x4fe02d[_0x27dc9f(0xf1)],'nRs':_0x4fe02d[_0x27dc9f(0xf1)],'unit':_0x4fe02d[_0x27dc9f(0x125)],'cb':_0x4fe02d['fJcbzlsjUnit'],'type':'base'});}),_0x13a625[_0x31574b(0x104)](_0x2a9fb4);}const _0x51a06d=_0x27e370[_0x31574b(0xf6)](_0x3e3fb9=>_0x3e3fb9[_0x31574b(0xf5)]==_0x31574b(0xd3));if(_0x51a06d[_0x31574b(0xe6)]){let _0x207e8b={'title':_0x2976c5[_0x31574b(0xd3)],'type':'service','list':[]};_0x51a06d[_0x31574b(0x10f)](_0xf3f0fd=>{const _0x12d7fd=_0x31574b;_0x207e8b[_0x12d7fd(0x107)][_0x12d7fd(0x104)]({'title':_0xf3f0fd['name']+('['+_0xf3f0fd[_0x12d7fd(0x105)]+']'),'info':_0x297be2+_0x5368fa(_0xf3f0fd[_0x12d7fd(0xe7)])+_0x56f456+_0xf3f0fd[_0x12d7fd(0xfb)],'nRs':_0xf3f0fd[_0x12d7fd(0xfb)],'unit':_0xf3f0fd[_0x12d7fd(0xe7)],'cb':_0xf3f0fd[_0x12d7fd(0x122)],'type':_0x12d7fd(0xd3)});}),_0x13a625[_0x31574b(0x104)](_0x207e8b);}const _0x23cd45=_0x27e370[_0x31574b(0xf6)](_0xa02ce9=>_0xa02ce9['strLx']=='trip');if(_0x23cd45[_0x31574b(0xe6)]){let _0x15892e={'title':_0x2976c5[_0x31574b(0xe9)],'type':'trip','list':[]};_0x23cd45[_0x31574b(0x10f)](_0x2f40e1=>{const _0x253095=_0x31574b;_0x2f40e1[_0x253095(0x124)]!='0'&&_0x15892e['list']['push']({'title':_0x2f40e1['name']+('['+_0x238fee[_0x253095(0xec)]+']'),'info':_0x297be2+_0x5368fa(_0x2f40e1[_0x253095(0xd6)])+_0x56f456+_0x2f40e1[_0x253095(0x124)],'nRs':_0x2f40e1['adultnum'],'unit':_0x2f40e1[_0x253095(0xd6)],'cb':_0x2f40e1[_0x253095(0xe0)],'type':_0x253095(0xe9)}),_0x2f40e1['childnum']!='0'&&_0x15892e[_0x253095(0x107)][_0x253095(0x104)]({'title':_0x2f40e1[_0x253095(0x117)]+('['+_0x238fee[_0x253095(0xd7)]+']'),'info':_0x297be2+_0x5368fa(_0x2f40e1['childunitprice'])+_0x56f456+_0x2f40e1['childnum'],'nRs':_0x2f40e1[_0x253095(0xd1)],'unit':_0x2f40e1[_0x253095(0x10e)],'cb':_0x2f40e1[_0x253095(0x11b)],'type':'trip'});}),_0x13a625[_0x31574b(0x104)](_0x15892e);}let _0x4c50b2=[];const _0x359d1b=_0x27e370[_0x31574b(0xf6)](_0x6d0a24=>_0x6d0a24[_0x31574b(0xf5)]==_0x31574b(0x108));_0x359d1b[_0x31574b(0xe6)]&&_0x359d1b[_0x31574b(0x10f)](_0x26d02d=>{const _0x481e90=_0x31574b,_0x3b1353=_0x26d02d[_0x481e90(0x117)]['split']('|')||[''];_0x4c50b2['push']({'title':_0x238fee[_0x481e90(0x108)]+('['+_0x3b1353[0x0]+']'),'info':_0x297be2+_0x4d1aab+_0x5368fa(_0x26d02d[_0x481e90(0xe4)]),'unit':_0x26d02d[_0x481e90(0xe4)],'cb':_0x26d02d[_0x481e90(0xe4)],'type':_0x481e90(0x108)});});const _0x208d73=_0x27e370[_0x31574b(0xf6)](_0x32958f=>_0x32958f['strLx']=='vipdiscounted');_0x208d73['length']&&_0x208d73[_0x31574b(0x10f)](_0x1a3f56=>{const _0x10a28d=_0x31574b;_0x4c50b2[_0x10a28d(0x104)]({'title':_0x238fee[_0x10a28d(0x10b)]+('['+_0x1a3f56['name']+']'),'info':_0x297be2+_0x4d1aab+_0x5368fa(_0x1a3f56['money']),'unit':_0x1a3f56[_0x10a28d(0xe4)],'cb':_0x1a3f56[_0x10a28d(0xe4)],'type':_0x10a28d(0x10b)});});const _0x14d7b8=_0x27e370[_0x31574b(0xf6)](_0x175028=>_0x175028[_0x31574b(0xf5)]=='promotion');_0x14d7b8[_0x31574b(0xe6)]&&_0x14d7b8[_0x31574b(0x10f)](_0x42012f=>{const _0x815277=_0x31574b;_0x4c50b2[_0x815277(0x104)]({'title':_0x238fee[_0x815277(0x106)],'info':_0x297be2+_0x4d1aab+_0x5368fa(_0x42012f['money']),'unit':_0x42012f[_0x815277(0xe4)],'cb':_0x42012f[_0x815277(0xe4)],'type':_0x815277(0x106)});});_0x4c50b2['length']&&_0x13a625[_0x31574b(0x104)]({'title':_0x2976c5[_0x31574b(0xda)],'type':_0x31574b(0xda),'list':_0x4c50b2});const _0x9dfb21=_0x27e370[_0x31574b(0xf6)](_0xd76688=>_0xd76688['strLx']==_0x31574b(0xee));if(_0x9dfb21[_0x31574b(0xe6)]){let _0x54b694={'title':_0x2976c5['airtax'],'type':'airtax','list':[]};_0x9dfb21[_0x31574b(0x10f)](_0xbdb133=>{const _0x9c54cd=_0x31574b;_0x54b694['list'][_0x9c54cd(0x104)]({'title':_0x238fee[_0xbdb133[_0x9c54cd(0xf2)]],'info':_0x297be2+_0x5368fa(_0xbdb133[_0x9c54cd(0xe7)])+_0x56f456+_0xbdb133['sl'],'nRs':_0xbdb133['sl'],'unit':_0xbdb133['unitprice'],'cb':_0xbdb133['unitpricewb'],'type':_0xbdb133[_0x9c54cd(0xf2)]});}),_0x13a625['push'](_0x54b694);}const _0x4e94c4=[_0x31574b(0x123),_0x31574b(0xd3),_0x31574b(0xe9),'elder',_0x31574b(0xe5),_0x31574b(0x106),_0x31574b(0xee)],_0x3d77c3=_0x27e370[_0x31574b(0xf6)](_0x5bb31e=>!_0x4e94c4[_0x31574b(0xd0)](_0x5bb31e[_0x31574b(0xf5)]));let _0x190617={'title':_0x2976c5[_0x31574b(0xd8)],'type':'other','list':[]};for(var _0x119780=0x0;_0x119780<_0x3d77c3['length'];_0x119780++){const _0x4d0845=_0x3d77c3[_0x119780];_0x4d0845[_0x31574b(0xf5)]==_0x31574b(0xe2)&&_0x190617[_0x31574b(0x107)]['push']({'title':_0x238fee[_0x31574b(0xe2)]+('['+_0x4d0845[_0x31574b(0x117)]+']'),'info':_0x297be2+_0x5368fa(_0x4d0845['money']),'unit':_0x4d0845['money'],'type':_0x4d0845[_0x31574b(0xf5)]}),_0x4d0845['strLx']=='insure'&&_0x190617[_0x31574b(0x107)]['push']({'title':_0x238fee[_0x31574b(0xdd)]+('['+_0x4d0845[_0x31574b(0x117)]+']'),'info':_0x297be2+_0x5368fa(_0x4d0845['unit'])+_0x56f456+_0x4d0845['users']+_0x238fee['r'],'nRs':_0x4d0845[_0x31574b(0xf8)],'unit':_0x4d0845['unit'],'cb':_0x4d0845['unit'],'type':_0x31574b(0xdd)}),(_0x4d0845[_0x31574b(0xf5)]==_0x31574b(0xf4)||_0x4d0845[_0x31574b(0xf5)]=='point')&&_0x190617[_0x31574b(0x107)]['push']({'title':_0x4d0845[_0x31574b(0xed)]||_0x238fee[_0x4d0845[_0x31574b(0xf5)]],'info':_0x297be2+_0x4d1aab+_0x5368fa(_0x4d0845['money']),'unit':_0x4d0845[_0x31574b(0xe4)],'cb':_0x4d0845[_0x31574b(0xe3)]||0x0,'type':_0x4d0845[_0x31574b(0xf5)]}),_0x4d0845[_0x31574b(0xf5)]==_0x31574b(0x110)&&_0xb1b497['isShowTip']&&_0x190617[_0x31574b(0x107)][_0x31574b(0x104)]({'title':_0x238fee[_0x4d0845[_0x31574b(0xf5)]],'info':_0x297be2+_0x5368fa(_0x4d0845['tip'])+_0x56f456+_0x4d0845[_0x31574b(0xea)]+_0x238fee['r']+_0x56f456+_0x4d0845['tipday']+_0x238fee['t'],'nRs':_0x4d0845[_0x31574b(0xea)],'count':_0x4d0845[_0x31574b(0xdf)],'unit':_0x4d0845['tip'],'type':_0x4d0845[_0x31574b(0xf5)]}),_0x4d0845[_0x31574b(0xf5)]==_0x31574b(0x10c)&&_0x190617['list'][_0x31574b(0x104)]({'title':_0x238fee[_0x31574b(0x10c)],'info':_0x297be2+_0x5368fa(_0x4d0845[_0x31574b(0x126)]),'unit':_0x4d0845[_0x31574b(0x126)],'type':_0x4d0845[_0x31574b(0xf5)]}),_0x4d0845[_0x31574b(0xf5)]=='commission'&&_0x190617[_0x31574b(0x107)][_0x31574b(0x104)]({'title':_0x238fee[_0x31574b(0xd2)],'info':_0x297be2+_0x5368fa(_0x4d0845['price']),'unit':_0x4d0845[_0x31574b(0x126)],'type':_0x4d0845[_0x31574b(0xf5)]}),_0x4d0845['strLx']=='tax'&&_0x190617[_0x31574b(0x107)][_0x31574b(0x104)]({'title':_0x238fee[_0x4d0845['strLx']],'info':_0x297be2+_0x5368fa(_0x4d0845[_0x31574b(0x127)]),'unit':_0x4d0845[_0x31574b(0x127)],'type':_0x4d0845['strLx']});}_0x190617['list'][_0x31574b(0xe6)]&&_0x13a625[_0x31574b(0x104)](_0x190617);const _0x5d70bd=_0x27e370[_0x31574b(0xf6)](_0x1ba1b3=>_0x1ba1b3[_0x31574b(0xf5)]==_0x31574b(0x120));return _0x5d70bd['length']&&_0x13a625[_0x31574b(0x104)]({'title':_0x2976c5[_0x31574b(0x120)],'type':_0x31574b(0x120),'list':[{'title':_0x2976c5['totalprice'],'info':_0x297be2+_0x5368fa(_0x5d70bd[0x0][_0x31574b(0x126)])}]}),_0x13a625;}export default{'handleCosting':handleCosting};
package/dist/room.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4d1edd,_0x589d33){const _0x8d19da=a2_0x4401,_0xd15510=_0x4d1edd();while(!![]){try{const _0x1fcd09=-parseInt(_0x8d19da(0xe7))/0x1*(-parseInt(_0x8d19da(0xf4))/0x2)+-parseInt(_0x8d19da(0xf2))/0x3+-parseInt(_0x8d19da(0xf3))/0x4*(parseInt(_0x8d19da(0xde))/0x5)+parseInt(_0x8d19da(0xe9))/0x6+parseInt(_0x8d19da(0xed))/0x7+parseInt(_0x8d19da(0xe6))/0x8*(-parseInt(_0x8d19da(0xe3))/0x9)+parseInt(_0x8d19da(0xef))/0xa;if(_0x1fcd09===_0x589d33)break;else _0xd15510['push'](_0xd15510['shift']());}catch(_0x14f6b2){_0xd15510['push'](_0xd15510['shift']());}}}(a2_0x3807,0xb764b));function a2_0x3807(){const _0x4577bb=['4337760vpLIGI','find','infantNum','some','1775319JEpTCf','nMaxIn','18176380FGXYCl','d9319e13-3211-4958-ba32-d66aeac35d31','push','456747EYIxCh','57192GRFKwq','36icvGqQ','forEach','childUseBed','adultNum','520IDfWFB','max','filter','strCode','infant','17001TdsKQH','child','childrenNum','6184jXKVqK','58689ufJsYb','map'];a2_0x3807=function(){return _0x4577bb;};return a2_0x3807();}function getRoomCount(_0x1a26c3,_0x3f658a){const _0x4bbb12=a2_0x4401,_0x5cf560=Array['isArray'](_0x1a26c3);if(!_0x5cf560)_0x1a26c3=[_0x1a26c3];let _0x282bed=[];return _0x1a26c3[_0x4bbb12(0xf5)](_0x414a48=>{const _0x3ed945=_0x4bbb12;let _0x25b826=![];if(!_0x414a48['isalotment']){let _0x432d8d=_0x414a48[_0x3ed945(0xdd)];if(_0x414a48[_0x3ed945(0xdc)]||!_0x3f658a[_0x3ed945(0xe4)])_0x432d8d+=_0x414a48[_0x3ed945(0xe5)];const _0x1717cd=_0x3f658a['list'][_0x3ed945(0xea)](_0x29860a=>Number(_0x29860a['strCode'])===_0x432d8d);if(!_0x1717cd)_0x25b826=!![];else{let _0x475a84=_0x414a48[_0x3ed945(0xdd)]+_0x414a48[_0x3ed945(0xe5)]+_0x414a48[_0x3ed945(0xeb)];_0x475a84>_0x1717cd[_0x3ed945(0xee)]&&(_0x25b826=!![]);}}_0x282bed[_0x3ed945(0xf1)](_0x25b826);}),_0x5cf560?_0x282bed:_0x282bed[0x0];}function getRoomConfig(_0x322c4c){const _0x5b5bae=a2_0x4401;let _0x1911f1=_0x322c4c['some'](_0x3baf95=>_0x3baf95[_0x5b5bae(0xe1)]==='childUseBed'),_0x4b041c=_0x322c4c[_0x5b5bae(0xec)](_0x3623ec=>_0x3623ec[_0x5b5bae(0xe1)]==='isAlotment');const _0x51513f=_0x322c4c[_0x5b5bae(0xec)](_0x47f9af=>_0x47f9af[_0x5b5bae(0xe1)]==='infant'),_0x20eb7e=_0x322c4c[_0x5b5bae(0xec)](_0x4f66bc=>_0x4f66bc['strCode']===_0x5b5bae(0xe4)),_0x44a514=_0x322c4c[_0x5b5bae(0xe8)](_0x5d5a42=>{const _0x26da82=_0x5b5bae;return{'strCode':_0x5d5a42[_0x26da82(0xe1)],'nMaxIn':_0x5d5a42[_0x26da82(0xee)]};});if(_0x4b041c){const _0x1beae9=_0x322c4c[_0x5b5bae(0xec)](_0x164a99=>_0x164a99['strCode']=='2');_0x4b041c=_0x4b041c&&_0x1beae9;}if(_0x1911f1)_0x1911f1=_0x1911f1&&_0x20eb7e;return{'childUseBed':_0x1911f1,'isAlotment':_0x4b041c,'infant':_0x51513f,'child':_0x20eb7e,'list':_0x44a514};}function isRoomPiece(_0x572cf0,_0x2e3183){const _0x5d1b02=a2_0x4401;return _0x2e3183&&_0x572cf0['adultNum']===0x1&&_0x572cf0[_0x5d1b02(0xe5)]===0x0&&_0x572cf0[_0x5d1b02(0xeb)]===0x0;}function getRoomItemRange(_0x47c74e,_0x1e20f9,_0x560e05={'child':'儿童','infant':'婴儿'}){const _0x45bd42=a2_0x4401;if(!_0x1e20f9['length'])return{'childList':[],'infantList':[]};const _0x1a7491=Math[_0x45bd42(0xdf)](..._0x1e20f9[_0x45bd42(0xe8)](_0x5e0fdf=>Number(_0x5e0fdf['nMaxIn']))),_0x4365b9=_0x1a7491-_0x47c74e[_0x45bd42(0xdd)]-_0x47c74e['infantNum'];let _0x1ad531=_0x1a7491-_0x47c74e['adultNum']-_0x47c74e[_0x45bd42(0xe5)];if(_0x1ad531>0x2)_0x1ad531=0x2;const _0x5f0163=(_0x430a29,_0x3d394a)=>{const _0x3ef30b=_0x45bd42,_0x182762=[];_0x182762[_0x3ef30b(0xf1)]({'value':0x0,'label':'0\x20'+_0x3d394a});for(let _0x1c99a3=0x0;_0x1c99a3<_0x430a29;_0x1c99a3++){_0x182762[_0x3ef30b(0xf1)]({'value':_0x1c99a3+0x1,'label':''+(_0x1c99a3+0x1)+_0x3d394a});}return _0x182762;};return{'childList':_0x5f0163(_0x4365b9,_0x560e05[_0x45bd42(0xe4)]),'infantList':_0x5f0163(_0x1ad531,_0x560e05[_0x45bd42(0xe2)])};}function getAdultRange(_0x3e10d8,_0x5420de='成人'){const _0x2bb922=a2_0x4401;let _0x2b6c93=Math[_0x2bb922(0xdf)](..._0x3e10d8[_0x2bb922(0xe8)](_0x309c5e=>Number(_0x309c5e['strCode']))[_0x2bb922(0xe0)](_0x474726=>!isNaN(_0x474726)));if(!_0x2b6c93)_0x2b6c93=0x4;let _0x15ba76=[];for(var _0x411be8=0x1;_0x411be8<_0x2b6c93+0x1;_0x411be8++){_0x15ba76[_0x2bb922(0xf1)]({'value':_0x411be8,'label':''+_0x411be8+_0x5420de});}return _0x15ba76;}function a2_0x4401(_0x4e822e,_0x4782d8){const _0x380797=a2_0x3807();return a2_0x4401=function(_0x440186,_0x1fa532){_0x440186=_0x440186-0xdc;let _0x2e2d47=_0x380797[_0x440186];return _0x2e2d47;},a2_0x4401(_0x4e822e,_0x4782d8);}const getTotalPeople=_0x4292ad=>{const _0x14d983=_0x4292ad['reduce']((_0x43ea84,_0x131167)=>{const _0x31fa1b=a2_0x4401;return _0x43ea84+(_0x131167[_0x31fa1b(0xdd)]||0x0)+(_0x131167[_0x31fa1b(0xe5)]||0x0)+(_0x131167[_0x31fa1b(0xeb)]||0x0);},0x0);return _0x14d983;},getRoomType=(_0x28e6da,_0x1eb106)=>{const _0x5de6db=a2_0x4401;if(_0x28e6da==='type'||_0x28e6da===_0x5de6db(0xf0)||_0x1eb106===0x1||_0x1eb106==='1')return![];return!![];};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople,'getRoomType':getRoomType};
1
+ (function(_0x1a2a06,_0x59c577){const _0x3f2611=a2_0x497c,_0x382754=_0x1a2a06();while(!![]){try{const _0x2f8c7b=-parseInt(_0x3f2611(0x168))/0x1*(parseInt(_0x3f2611(0x15d))/0x2)+-parseInt(_0x3f2611(0x165))/0x3+-parseInt(_0x3f2611(0x15a))/0x4*(-parseInt(_0x3f2611(0x157))/0x5)+-parseInt(_0x3f2611(0x163))/0x6+-parseInt(_0x3f2611(0x164))/0x7+parseInt(_0x3f2611(0x155))/0x8+-parseInt(_0x3f2611(0x159))/0x9*(-parseInt(_0x3f2611(0x16a))/0xa);if(_0x2f8c7b===_0x59c577)break;else _0x382754['push'](_0x382754['shift']());}catch(_0x191df0){_0x382754['push'](_0x382754['shift']());}}}(a2_0x416c,0x51832));function getRoomCount(_0x18c0ac,_0x314e17){const _0x511d57=a2_0x497c,_0x4d7f82=Array['isArray'](_0x18c0ac);if(!_0x4d7f82)_0x18c0ac=[_0x18c0ac];let _0x4c68a5=[];return _0x18c0ac[_0x511d57(0x15e)](_0x379425=>{const _0x4ea9f7=_0x511d57;let _0x4e5154=![];if(!_0x379425[_0x4ea9f7(0x167)]){let _0x19baa6=_0x379425['adultNum'];if(_0x379425[_0x4ea9f7(0x166)]||!_0x314e17[_0x4ea9f7(0x14f)])_0x19baa6+=_0x379425[_0x4ea9f7(0x169)];const _0x5e47ea=_0x314e17[_0x4ea9f7(0x154)][_0x4ea9f7(0x153)](_0xd18774=>Number(_0xd18774['strCode'])===_0x19baa6);if(!_0x5e47ea)_0x4e5154=!![];else{let _0x3cb407=_0x379425[_0x4ea9f7(0x15f)]+_0x379425['childrenNum']+_0x379425['infantNum'];_0x3cb407>_0x5e47ea[_0x4ea9f7(0x156)]&&(_0x4e5154=!![]);}}_0x4c68a5[_0x4ea9f7(0x150)](_0x4e5154);}),_0x4d7f82?_0x4c68a5:_0x4c68a5[0x0];}function getRoomConfig(_0x19fe62){const _0x376b1d=a2_0x497c;let _0x4021c2=_0x19fe62[_0x376b1d(0x15c)](_0x5f2c6a=>_0x5f2c6a[_0x376b1d(0x14e)]===_0x376b1d(0x166)),_0x4d210f=_0x19fe62[_0x376b1d(0x15c)](_0x5b4d6c=>_0x5b4d6c['strCode']==='isAlotment');const _0x2d4803=_0x19fe62['some'](_0x19c9e5=>_0x19c9e5[_0x376b1d(0x14e)]===_0x376b1d(0x152)),_0x2b1f38=_0x19fe62['some'](_0x4e5895=>_0x4e5895[_0x376b1d(0x14e)]===_0x376b1d(0x14f)),_0x787934=_0x19fe62[_0x376b1d(0x162)](_0x6128f2=>{const _0x1466f4=_0x376b1d;return{'strCode':_0x6128f2[_0x1466f4(0x14e)],'nMaxIn':_0x6128f2[_0x1466f4(0x156)]};});if(_0x4d210f){const _0x53a426=_0x19fe62[_0x376b1d(0x15c)](_0x36c1a1=>_0x36c1a1['strCode']=='2');_0x4d210f=_0x4d210f&&_0x53a426;}if(_0x4021c2)_0x4021c2=_0x4021c2&&_0x2b1f38;return{'childUseBed':_0x4021c2,'isAlotment':_0x4d210f,'infant':_0x2d4803,'child':_0x2b1f38,'list':_0x787934};}function isRoomPiece(_0x4c4edb,_0x87fa66){const _0x195b77=a2_0x497c;return _0x87fa66&&_0x4c4edb[_0x195b77(0x15f)]===0x1&&_0x4c4edb['childrenNum']===0x0&&_0x4c4edb[_0x195b77(0x160)]===0x0;}function getRoomItemRange(_0x2d114c,_0x27cb93,_0x270a47={'child':'儿童','infant':'婴儿'}){const _0x3913e8=a2_0x497c;if(!_0x27cb93[_0x3913e8(0x161)])return{'childList':[],'infantList':[]};const _0x2ac8a9=Math[_0x3913e8(0x151)](..._0x27cb93['map'](_0x1f0e26=>Number(_0x1f0e26[_0x3913e8(0x156)]))),_0x1ebb06=_0x2ac8a9-_0x2d114c['adultNum']-_0x2d114c[_0x3913e8(0x160)];let _0x2832ca=_0x2ac8a9-_0x2d114c[_0x3913e8(0x15f)]-_0x2d114c[_0x3913e8(0x169)];if(_0x2832ca>0x2)_0x2832ca=0x2;const _0x81f06c=(_0x18f20c,_0xbc5d09)=>{const _0x4a1a68=_0x3913e8,_0x4b40fb=[];_0x4b40fb[_0x4a1a68(0x150)]({'value':0x0,'label':'0\x20'+_0xbc5d09});for(let _0x99784a=0x0;_0x99784a<_0x18f20c;_0x99784a++){_0x4b40fb[_0x4a1a68(0x150)]({'value':_0x99784a+0x1,'label':''+(_0x99784a+0x1)+_0xbc5d09});}return _0x4b40fb;};return{'childList':_0x81f06c(_0x1ebb06,_0x270a47[_0x3913e8(0x14f)]),'infantList':_0x81f06c(_0x2832ca,_0x270a47['infant'])};}function getAdultRange(_0x4bd5ee,_0x3e5f5f='成人'){const _0x567127=a2_0x497c;let _0x49bda6=Math[_0x567127(0x151)](..._0x4bd5ee[_0x567127(0x162)](_0x50a8e6=>Number(_0x50a8e6[_0x567127(0x14e)]))[_0x567127(0x15b)](_0x52cb05=>!isNaN(_0x52cb05)));if(!_0x49bda6)_0x49bda6=0x4;let _0x2054bd=[];for(var _0x206900=0x1;_0x206900<_0x49bda6+0x1;_0x206900++){_0x2054bd[_0x567127(0x150)]({'value':_0x206900,'label':''+_0x206900+_0x3e5f5f});}return _0x2054bd;}function a2_0x497c(_0x441a40,_0x4ec76e){const _0x416cad=a2_0x416c();return a2_0x497c=function(_0x497cb7,_0x24400d){_0x497cb7=_0x497cb7-0x14e;let _0x35228d=_0x416cad[_0x497cb7];return _0x35228d;},a2_0x497c(_0x441a40,_0x4ec76e);}const getTotalPeople=_0x13f216=>{const _0xb36150=a2_0x497c,_0x5bd088=_0x13f216[_0xb36150(0x158)]((_0xadd087,_0x5b3d58)=>{const _0x312cf2=_0xb36150;return _0xadd087+(_0x5b3d58[_0x312cf2(0x15f)]||0x0)+(_0x5b3d58[_0x312cf2(0x169)]||0x0)+(_0x5b3d58[_0x312cf2(0x160)]||0x0);},0x0);return _0x5bd088;},getRoomType=(_0x4bc578,_0x322cb0)=>{if(_0x4bc578==='type'||_0x4bc578==='d9319e13-3211-4958-ba32-d66aeac35d31'||_0x322cb0===0x1||_0x322cb0==='1')return![];return!![];};function a2_0x416c(){const _0x13a739=['filter','some','12dnxIBB','forEach','adultNum','infantNum','length','map','2840310sleplm','357665OJZEzb','796020BFNwpx','childUseBed','isalotment','91451efRWZF','childrenNum','20wIahhH','strCode','child','push','max','infant','find','list','3636608FaekKm','nMaxIn','414345gHymSA','reduce','4734387vqvcOu','8OYfnRG'];a2_0x416c=function(){return _0x13a739;};return a2_0x416c();}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(_0x24b78f,_0x4c201f){const _0xa4055a=a3_0x4cc1,_0x4ad0f6=_0x24b78f();while(!![]){try{const _0xc21784=parseInt(_0xa4055a(0x150))/0x1*(-parseInt(_0xa4055a(0x158))/0x2)+parseInt(_0xa4055a(0x15e))/0x3*(-parseInt(_0xa4055a(0x16a))/0x4)+-parseInt(_0xa4055a(0x169))/0x5+-parseInt(_0xa4055a(0x15d))/0x6+-parseInt(_0xa4055a(0x160))/0x7+-parseInt(_0xa4055a(0x161))/0x8*(-parseInt(_0xa4055a(0x168))/0x9)+parseInt(_0xa4055a(0x162))/0xa;if(_0xc21784===_0x4c201f)break;else _0x4ad0f6['push'](_0x4ad0f6['shift']());}catch(_0x195f55){_0x4ad0f6['push'](_0x4ad0f6['shift']());}}}(a3_0x245b,0x63ed4));function a3_0x245b(){const _0x131041=['48QOnVKi','11176420ikLHrF','infant','push','strCode','adultnum','isArray','688968NxfsGC','182465PrelLg','2028496guStZn','list','240823pQFQvG','some','infantnum','childusebed','max','isalotment','childrennum','child','2gMYbsY','reduce','nMaxIn','half','map','1964502UijAjM','3PrIkGS','find','390579thdkhe'];a3_0x245b=function(){return _0x131041;};return a3_0x245b();}function getRoomCount(_0x14aad,_0xea3baf){const _0x1d66b5=a3_0x4cc1,_0x5a8f64=Array[_0x1d66b5(0x167)](_0x14aad);if(!_0x5a8f64)_0x14aad=[_0x14aad];let _0xb99dfb=[];return _0x14aad['forEach'](_0x499024=>{const _0x5e1b28=_0x1d66b5;let _0x3a197f=![];if(!_0x499024[_0x5e1b28(0x155)]){let _0x2f2f6d=_0x499024['adultnum'];if(_0x499024['childusebed']||!_0xea3baf[_0x5e1b28(0x157)])_0x2f2f6d+=_0x499024['childrennum'];const _0x6a3e35=_0xea3baf[_0x5e1b28(0x14f)][_0x5e1b28(0x15f)](_0xe42fb6=>Number(_0xe42fb6['strCode'])===_0x2f2f6d);if(!_0x6a3e35)_0x3a197f=!![];else{let _0x238c17=_0x499024['adultnum']+_0x499024[_0x5e1b28(0x156)]+_0x499024[_0x5e1b28(0x152)];_0x238c17>_0x6a3e35[_0x5e1b28(0x15a)]&&(_0x3a197f=!![]);}}_0xb99dfb[_0x5e1b28(0x164)](_0x3a197f);}),_0x5a8f64?_0xb99dfb:_0xb99dfb[0x0];}function getRoomConfig(_0x344f99){const _0x47a86f=a3_0x4cc1;let _0x268fd8=_0x344f99[_0x47a86f(0x151)](_0x53bd20=>_0x53bd20['strCode']===_0x47a86f(0x153)),_0x45c583=_0x344f99[_0x47a86f(0x151)](_0x2e8e1a=>_0x2e8e1a[_0x47a86f(0x165)]===_0x47a86f(0x15b));const _0x3b8fda=_0x344f99[_0x47a86f(0x151)](_0x386c09=>_0x386c09['strCode']===_0x47a86f(0x163)),_0x367c86=_0x344f99[_0x47a86f(0x151)](_0x350154=>_0x350154['strCode']===_0x47a86f(0x157)),_0x5304ea=_0x344f99[_0x47a86f(0x15c)](_0x12e7b9=>{const _0x5355c9=_0x47a86f;return{'strCode':_0x12e7b9[_0x5355c9(0x165)],'nMaxIn':_0x12e7b9[_0x5355c9(0x15a)]};});if(_0x45c583){const _0x16c504=_0x344f99[_0x47a86f(0x151)](_0x2b51d5=>_0x2b51d5[_0x47a86f(0x165)]=='2');_0x45c583=_0x45c583&&_0x16c504;}if(_0x268fd8)_0x268fd8=_0x268fd8&&_0x367c86;return{'childusebed':_0x268fd8,'half':_0x45c583,'infant':_0x3b8fda,'child':_0x367c86,'list':_0x5304ea};}function a3_0x4cc1(_0x3e9008,_0x59f72a){const _0x245b89=a3_0x245b();return a3_0x4cc1=function(_0x4cc1d1,_0x20e5e8){_0x4cc1d1=_0x4cc1d1-0x14f;let _0xb8eefd=_0x245b89[_0x4cc1d1];return _0xb8eefd;},a3_0x4cc1(_0x3e9008,_0x59f72a);}function isRoomPiece(_0x4a11ec,_0x476c52){const _0x5dd413=a3_0x4cc1;return _0x476c52&&_0x4a11ec['adultnum']===0x1&&_0x4a11ec['childrennum']===0x0&&_0x4a11ec[_0x5dd413(0x152)]===0x0;}function getRoomItemRange(_0x1d7f5f,_0x3e1a6b,_0x14894a={'child':'儿童','infant':'婴儿'}){const _0x20facd=a3_0x4cc1;if(!_0x3e1a6b['length'])return{'childList':[],'infantList':[]};const _0x4c77b1=Math['max'](..._0x3e1a6b['map'](_0x1902c7=>Number(_0x1902c7['nMaxIn']))),_0x4b3c64=_0x4c77b1-_0x1d7f5f[_0x20facd(0x166)]-_0x1d7f5f[_0x20facd(0x152)];let _0x2022d2=_0x4c77b1-_0x1d7f5f[_0x20facd(0x166)]-_0x1d7f5f[_0x20facd(0x156)];if(_0x2022d2>0x2)_0x2022d2=0x2;const _0x281a11=(_0x4ec93f,_0x267d3)=>{const _0x34b114=_0x20facd,_0x17ee52=[];_0x17ee52['push']({'value':0x0,'label':'0\x20'+_0x267d3});for(let _0x345509=0x0;_0x345509<_0x4ec93f;_0x345509++){_0x17ee52[_0x34b114(0x164)]({'value':_0x345509+0x1,'label':''+(_0x345509+0x1)+_0x267d3});}return _0x17ee52;};return{'childList':_0x281a11(_0x4b3c64,_0x14894a['child']),'infantList':_0x281a11(_0x2022d2,_0x14894a[_0x20facd(0x163)])};}function getAdultRange(_0x3466e1,_0x5880e3='成人'){const _0x40d4f8=a3_0x4cc1;let _0x667845=Math[_0x40d4f8(0x154)](..._0x3466e1[_0x40d4f8(0x15c)](_0x3f3c25=>Number(_0x3f3c25[_0x40d4f8(0x165)]))['filter'](_0x39db44=>!isNaN(_0x39db44)));if(!_0x667845)_0x667845=0x4;let _0x4c5dab=[];for(var _0x5d1168=0x1;_0x5d1168<_0x667845+0x1;_0x5d1168++){_0x4c5dab['push']({'value':_0x5d1168,'label':''+_0x5d1168+_0x5880e3});}return _0x4c5dab;}const getTotalPeople=_0x391636=>{const _0x248c9a=a3_0x4cc1,_0xafb8e1=_0x391636[_0x248c9a(0x159)]((_0x3cec2b,_0x2761bc)=>{const _0x36643b=_0x248c9a;return _0x3cec2b+(_0x2761bc[_0x36643b(0x166)]||0x0)+(_0x2761bc['childrennum']||0x0)+(_0x2761bc[_0x36643b(0x152)]||0x0);},0x0);return _0xafb8e1;};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};
1
+ (function(_0x4108b9,_0x4ddb00){const _0x5ca5f1=a3_0x43a4,_0x3503fd=_0x4108b9();while(!![]){try{const _0x561d33=-parseInt(_0x5ca5f1(0xfe))/0x1*(parseInt(_0x5ca5f1(0xfb))/0x2)+-parseInt(_0x5ca5f1(0xe5))/0x3+-parseInt(_0x5ca5f1(0xe6))/0x4*(-parseInt(_0x5ca5f1(0xf4))/0x5)+parseInt(_0x5ca5f1(0xeb))/0x6+parseInt(_0x5ca5f1(0xf9))/0x7+parseInt(_0x5ca5f1(0xe3))/0x8*(parseInt(_0x5ca5f1(0xf1))/0x9)+-parseInt(_0x5ca5f1(0xf2))/0xa;if(_0x561d33===_0x4ddb00)break;else _0x3503fd['push'](_0x3503fd['shift']());}catch(_0x1e8213){_0x3503fd['push'](_0x3503fd['shift']());}}}(a3_0x111a,0x6ae5a));function getRoomCount(_0x3983d4,_0x263b2d){const _0x33f441=a3_0x43a4,_0x535a00=Array[_0x33f441(0xe7)](_0x3983d4);if(!_0x535a00)_0x3983d4=[_0x3983d4];let _0x2a0513=[];return _0x3983d4[_0x33f441(0xf6)](_0x9626cc=>{const _0x42243a=_0x33f441;let _0x61fa37=![];if(!_0x9626cc[_0x42243a(0xfc)]){let _0x5bd709=_0x9626cc['adultnum'];if(_0x9626cc[_0x42243a(0xf7)]||!_0x263b2d[_0x42243a(0xe2)])_0x5bd709+=_0x9626cc[_0x42243a(0xf8)];const _0x1c12a1=_0x263b2d['list']['find'](_0x44c4c8=>Number(_0x44c4c8[_0x42243a(0xf0)])===_0x5bd709);if(!_0x1c12a1)_0x61fa37=!![];else{let _0x13ad2b=_0x9626cc['adultnum']+_0x9626cc[_0x42243a(0xf8)]+_0x9626cc[_0x42243a(0xee)];_0x13ad2b>_0x1c12a1[_0x42243a(0xe9)]&&(_0x61fa37=!![]);}}_0x2a0513[_0x42243a(0xe4)](_0x61fa37);}),_0x535a00?_0x2a0513:_0x2a0513[0x0];}function getRoomConfig(_0x4d5f35){const _0x35b61e=a3_0x43a4;let _0x317893=_0x4d5f35[_0x35b61e(0xe8)](_0xe0c716=>_0xe0c716[_0x35b61e(0xf0)]==='childusebed'),_0x48c355=_0x4d5f35[_0x35b61e(0xe8)](_0x28cd33=>_0x28cd33[_0x35b61e(0xf0)]===_0x35b61e(0xed));const _0x25ee4b=_0x4d5f35['some'](_0x4af0ab=>_0x4af0ab[_0x35b61e(0xf0)]===_0x35b61e(0xea)),_0x5be7e0=_0x4d5f35[_0x35b61e(0xe8)](_0x7ffa06=>_0x7ffa06['strCode']===_0x35b61e(0xe2)),_0x2592c7=_0x4d5f35[_0x35b61e(0xef)](_0x2eae0d=>{const _0x2042b0=_0x35b61e;return{'strCode':_0x2eae0d[_0x2042b0(0xf0)],'nMaxIn':_0x2eae0d['nMaxIn']};});if(_0x48c355){const _0x17c37d=_0x4d5f35[_0x35b61e(0xe8)](_0x366f63=>_0x366f63[_0x35b61e(0xf0)]=='2');_0x48c355=_0x48c355&&_0x17c37d;}if(_0x317893)_0x317893=_0x317893&&_0x5be7e0;return{'childusebed':_0x317893,'half':_0x48c355,'infant':_0x25ee4b,'child':_0x5be7e0,'list':_0x2592c7};}function isRoomPiece(_0x5901d2,_0x4c8cc9){const _0x25c62f=a3_0x43a4;return _0x4c8cc9&&_0x5901d2['adultnum']===0x1&&_0x5901d2[_0x25c62f(0xf8)]===0x0&&_0x5901d2[_0x25c62f(0xee)]===0x0;}function getRoomItemRange(_0x5d9947,_0x6dd225,_0x32daa8={'child':'儿童','infant':'婴儿'}){const _0x281e6f=a3_0x43a4;if(!_0x6dd225[_0x281e6f(0xfa)])return{'childList':[],'infantList':[]};const _0x126c8d=Math[_0x281e6f(0xf5)](..._0x6dd225['map'](_0x298ce9=>Number(_0x298ce9[_0x281e6f(0xe9)]))),_0x135482=_0x126c8d-_0x5d9947[_0x281e6f(0xfd)]-_0x5d9947['infantnum'];let _0x5352ec=_0x126c8d-_0x5d9947[_0x281e6f(0xfd)]-_0x5d9947[_0x281e6f(0xf8)];if(_0x5352ec>0x2)_0x5352ec=0x2;const _0x17d2eb=(_0x919728,_0x379ced)=>{const _0x3f4e3f=_0x281e6f,_0xfb1b13=[];_0xfb1b13[_0x3f4e3f(0xe4)]({'value':0x0,'label':'0\x20'+_0x379ced});for(let _0x23a8a8=0x0;_0x23a8a8<_0x919728;_0x23a8a8++){_0xfb1b13['push']({'value':_0x23a8a8+0x1,'label':''+(_0x23a8a8+0x1)+_0x379ced});}return _0xfb1b13;};return{'childList':_0x17d2eb(_0x135482,_0x32daa8[_0x281e6f(0xe2)]),'infantList':_0x17d2eb(_0x5352ec,_0x32daa8[_0x281e6f(0xea)])};}function getAdultRange(_0x2a68dc,_0x303d67='成人'){const _0x47ff66=a3_0x43a4;let _0x2c7fed=Math[_0x47ff66(0xf5)](..._0x2a68dc[_0x47ff66(0xef)](_0x3ba5d2=>Number(_0x3ba5d2[_0x47ff66(0xf0)]))[_0x47ff66(0xf3)](_0xfa5edd=>!isNaN(_0xfa5edd)));if(!_0x2c7fed)_0x2c7fed=0x4;let _0xee7c5b=[];for(var _0x28040d=0x1;_0x28040d<_0x2c7fed+0x1;_0x28040d++){_0xee7c5b[_0x47ff66(0xe4)]({'value':_0x28040d,'label':''+_0x28040d+_0x303d67});}return _0xee7c5b;}const getTotalPeople=_0x247a97=>{const _0x973f4=a3_0x43a4,_0x15110e=_0x247a97[_0x973f4(0xec)]((_0x467b14,_0x5b12cb)=>{const _0x38e531=_0x973f4;return _0x467b14+(_0x5b12cb[_0x38e531(0xfd)]||0x0)+(_0x5b12cb[_0x38e531(0xf8)]||0x0)+(_0x5b12cb[_0x38e531(0xee)]||0x0);},0x0);return _0x15110e;};export default{'getAdultRange':getAdultRange,'getRoomItemRange':getRoomItemRange,'getRoomConfig':getRoomConfig,'isRoomPiece':isRoomPiece,'getRoomCount':getRoomCount,'getTotalPeople':getTotalPeople};function a3_0x43a4(_0x317207,_0x54c61e){const _0x111a98=a3_0x111a();return a3_0x43a4=function(_0x43a45d,_0x55f6ef){_0x43a45d=_0x43a45d-0xe2;let _0xf43f0f=_0x111a98[_0x43a45d];return _0xf43f0f;},a3_0x43a4(_0x317207,_0x54c61e);}function a3_0x111a(){const _0x3456ba=['length','886GTUTZm','isalotment','adultnum','179HEYbzW','child','8YaHXfT','push','1479777kODMfr','959492PkFMOI','isArray','some','nMaxIn','infant','3546006WOdZJH','reduce','half','infantnum','map','strCode','7339950VDKKkB','9234200sYaQAC','filter','5ktXGFc','max','forEach','childusebed','childrennum','2011814RVhpty'];a3_0x111a=function(){return _0x3456ba;};return a3_0x111a();}
package/dist/system.js CHANGED
@@ -1 +1 @@
1
- function a4_0x127e(){const _0xf6e17=['strlxfs','strxs','strlxdh','planeticket','strlastname','strxm','cruise','4140pETgSU','filter','493161VTQqrP','9423790mKGRGP','50258004','visa','strzjhm','18xACndh','21320eSErcI','join','name','strhzbh','strdhhm','phone','Hotel01','strggtxz','605627cxznPj','firstName','strhxz','lastName','strmz','1494894KXpZkQ','2204958ffjkdu','885iZMyOx','strsfzh','2016zBTisb'];a4_0x127e=function(){return _0xf6e17;};return a4_0x127e();}(function(_0x5243d4,_0x277d5a){const _0x4e6a9e=a4_0x2882,_0x1ed29d=_0x5243d4();while(!![]){try{const _0x92650c=-parseInt(_0x4e6a9e(0xa4))/0x1+-parseInt(_0x4e6a9e(0x88))/0x2+parseInt(_0x4e6a9e(0x96))/0x3+-parseInt(_0x4e6a9e(0x94))/0x4*(-parseInt(_0x4e6a9e(0x8a))/0x5)+parseInt(_0x4e6a9e(0x89))/0x6+-parseInt(_0x4e6a9e(0x8c))/0x7*(parseInt(_0x4e6a9e(0x9c))/0x8)+-parseInt(_0x4e6a9e(0x9b))/0x9*(-parseInt(_0x4e6a9e(0x97))/0xa);if(_0x92650c===_0x277d5a)break;else _0x1ed29d['push'](_0x1ed29d['shift']());}catch(_0x235139){_0x1ed29d['push'](_0x1ed29d['shift']());}}}(a4_0x127e,0x75007));function a4_0x2882(_0x4fcd14,_0x1b3b18){const _0x127e9f=a4_0x127e();return a4_0x2882=function(_0x2882f3,_0x4c1e9a){_0x2882f3=_0x2882f3-0x85;let _0x324eb9=_0x127e9f[_0x2882f3];return _0x324eb9;},a4_0x2882(_0x4fcd14,_0x1b3b18);}function getCategories(_0x48566c){const _0x537eb0=a4_0x2882;if(!_0x48566c)return 0x0;if(_0x48566c===_0x537eb0(0x98))return 0x0;if(_0x48566c==='124866006')return 0x1;if(_0x48566c===_0x537eb0(0xa2))return 0x2;if(_0x48566c===_0x537eb0(0x99))return 0x3;if(_0x48566c===_0x537eb0(0x90))return 0x4;if(_0x48566c==='cd')return 0x5;if(_0x48566c===_0x537eb0(0x93))return 0x6;return 0x0;}function getDocInfo(_0x3bbfd3,_0xb13bae='idNumber',_0x374a5b=![]){const _0x1729e8=a4_0x2882;let _0xfa5e34=_0x374a5b?'\x20':'';if(_0xb13bae==='idNumber')return _0x3bbfd3[_0x1729e8(0x8b)]||_0x3bbfd3[_0x1729e8(0x9f)]||_0x3bbfd3[_0x1729e8(0x85)]||_0x3bbfd3[_0x1729e8(0xa3)]||_0x3bbfd3[_0x1729e8(0x9a)]||'';if(_0xb13bae===_0x1729e8(0x9e)){if(_0x3bbfd3[_0x1729e8(0x92)])return _0x3bbfd3['strxm'];const _0x5324d6=_0x3bbfd3['strfirstname']||_0x3bbfd3[_0x1729e8(0xa5)]||_0x3bbfd3[_0x1729e8(0x8e)]||'',_0x205722=_0x3bbfd3[_0x1729e8(0x91)]||_0x3bbfd3[_0x1729e8(0x86)]||_0x3bbfd3[_0x1729e8(0x87)]||'';return[_0x5324d6,_0x205722][_0x1729e8(0x95)](Boolean)[_0x1729e8(0x9d)](_0xfa5e34)['trim']()||'';}if(_0xb13bae===_0x1729e8(0xa1))return _0x3bbfd3[_0x1729e8(0x8f)]||_0x3bbfd3[_0x1729e8(0x8d)]||_0x3bbfd3[_0x1729e8(0xa0)]||'';return'';}export default{'getDocInfo':getDocInfo,'getCategories':getCategories};
1
+ const a4_0x38e882=a4_0x2bcf;function a4_0x5f4e(){const _0x5a4917=['574oQHotB','strlxdh','visa','trim','451910Luqlqt','strmz','Hotel01','2546408QPbULL','strzjhm','strhxz','firstName','50258004','8oLGlzK','542045zKCznn','strfirstname','1768359LXmuIO','strxs','124866006','strxm','strhzbh','strsfzh','idNumber','7781985WaczWH','strlastname','name','154hfDiru','12xXMlSf','150HNXxaC','filter','planeticket','807790QlyivW','join','strggtxz'];a4_0x5f4e=function(){return _0x5a4917;};return a4_0x5f4e();}(function(_0x3dd04d,_0x42d2f7){const _0x3d16dc=a4_0x2bcf,_0x1819fe=_0x3dd04d();while(!![]){try{const _0x3c200d=parseInt(_0x3d16dc(0x195))/0x1*(-parseInt(_0x3d16dc(0x19b))/0x2)+-parseInt(_0x3d16dc(0x189))/0x3+-parseInt(_0x3d16dc(0x1a2))/0x4+-parseInt(_0x3d16dc(0x198))/0x5*(-parseInt(_0x3d16dc(0x194))/0x6)+-parseInt(_0x3d16dc(0x187))/0x7+parseInt(_0x3d16dc(0x186))/0x8*(parseInt(_0x3d16dc(0x190))/0x9)+parseInt(_0x3d16dc(0x19f))/0xa*(parseInt(_0x3d16dc(0x193))/0xb);if(_0x3c200d===_0x42d2f7)break;else _0x1819fe['push'](_0x1819fe['shift']());}catch(_0x438712){_0x1819fe['push'](_0x1819fe['shift']());}}}(a4_0x5f4e,0x73b3b));function a4_0x2bcf(_0x227010,_0x14e318){const _0x5f4e18=a4_0x5f4e();return a4_0x2bcf=function(_0x2bcf50,_0xa1fc02){_0x2bcf50=_0x2bcf50-0x182;let _0x2f1082=_0x5f4e18[_0x2bcf50];return _0x2f1082;},a4_0x2bcf(_0x227010,_0x14e318);}function getCategories(_0x382d58){const _0x15087d=a4_0x2bcf;if(!_0x382d58)return 0x0;if(_0x382d58===_0x15087d(0x185))return 0x0;if(_0x382d58===_0x15087d(0x18b))return 0x1;if(_0x382d58===_0x15087d(0x1a1))return 0x2;if(_0x382d58===_0x15087d(0x19d))return 0x3;if(_0x382d58===_0x15087d(0x197))return 0x4;if(_0x382d58==='cd')return 0x5;if(_0x382d58==='cruise')return 0x6;return 0x0;}function getDocInfo(_0xc79c2a,_0x2ac1c9=a4_0x38e882(0x18f),_0x5c7df6=![]){const _0x4fc959=a4_0x38e882;let _0x188205=_0x5c7df6?'\x20':'';if(_0x2ac1c9===_0x4fc959(0x18f))return _0xc79c2a[_0x4fc959(0x18e)]||_0xc79c2a[_0x4fc959(0x18d)]||_0xc79c2a[_0x4fc959(0x183)]||_0xc79c2a[_0x4fc959(0x19a)]||_0xc79c2a[_0x4fc959(0x182)]||'';if(_0x2ac1c9===_0x4fc959(0x192)){if(_0xc79c2a[_0x4fc959(0x18c)])return _0xc79c2a[_0x4fc959(0x18c)];const _0x2c88dc=_0xc79c2a[_0x4fc959(0x188)]||_0xc79c2a[_0x4fc959(0x184)]||_0xc79c2a[_0x4fc959(0x18a)]||'',_0x2ae3ac=_0xc79c2a[_0x4fc959(0x191)]||_0xc79c2a['lastName']||_0xc79c2a[_0x4fc959(0x1a0)]||'';return[_0x2c88dc,_0x2ae3ac][_0x4fc959(0x196)](Boolean)[_0x4fc959(0x199)](_0x188205)[_0x4fc959(0x19e)]()||'';}if(_0x2ac1c9==='phone')return _0xc79c2a[_0x4fc959(0x19c)]||_0xc79c2a['strlxfs']||_0xc79c2a['strdhhm']||'';return'';}export default{'getDocInfo':getDocInfo,'getCategories':getCategories};
package/dist/test.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3c458e,_0x20f979){const _0x32b7cb=a5_0x21cc,_0x1488ea=_0x3c458e();while(!![]){try{const _0x2a6980=-parseInt(_0x32b7cb(0x11b))/0x1+-parseInt(_0x32b7cb(0x108))/0x2+parseInt(_0x32b7cb(0x11d))/0x3+-parseInt(_0x32b7cb(0x104))/0x4*(-parseInt(_0x32b7cb(0x106))/0x5)+parseInt(_0x32b7cb(0x114))/0x6*(parseInt(_0x32b7cb(0x113))/0x7)+parseInt(_0x32b7cb(0x112))/0x8*(parseInt(_0x32b7cb(0x10a))/0x9)+parseInt(_0x32b7cb(0x107))/0xa*(-parseInt(_0x32b7cb(0x101))/0xb);if(_0x2a6980===_0x20f979)break;else _0x1488ea['push'](_0x1488ea['shift']());}catch(_0x539523){_0x1488ea['push'](_0x1488ea['shift']());}}}(a5_0x8456,0x68ed8));function email(_0x1b59e8){const _0x7c4e19=a5_0x21cc;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x7c4e19(0x10d)](_0x1b59e8);}function mobile(_0x1ccbbc){return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/['test'](_0x1ccbbc);}function a5_0x21cc(_0x341a3e,_0x4fe94a){const _0x8456ec=a5_0x8456();return a5_0x21cc=function(_0x21ccdc,_0x11d593){_0x21ccdc=_0x21ccdc-0x100;let _0x2c28d7=_0x8456ec[_0x21ccdc];return _0x2c28d7;},a5_0x21cc(_0x341a3e,_0x4fe94a);}function isValidPhoneNumber(_0x2251ee){const _0x2300a7=a5_0x21cc;if(_0x2251ee[_0x2300a7(0x115)]('-')){const [_0x129d8c,_0x476d06]=_0x2251ee['split']('-');if(_0x129d8c==='86')return/^\d{11}$/['test'](_0x476d06)&&_0x476d06[_0x2300a7(0x120)]('1');else return _0x129d8c===_0x2300a7(0x111)?/^\d{8}$/[_0x2300a7(0x10d)](_0x476d06)&&['5','6','9','8'][_0x2300a7(0x115)](_0x476d06[_0x2300a7(0x11f)](0x0)):/^\d+$/[_0x2300a7(0x10d)](_0x476d06);}else return/^\d+$/[_0x2300a7(0x10d)](_0x2251ee);}function url(_0x2faf4f){const _0x981592=a5_0x21cc;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_!~*'().;?:@&=+$,%#-]+)+\/?)$/[_0x981592(0x10d)](_0x2faf4f);}function date(_0x59de51){const _0x3c1735=a5_0x21cc;if(!_0x59de51)return![];if(number(_0x59de51))_0x59de51=+_0x59de51;return!/Invalid|NaN/[_0x3c1735(0x10d)](new Date(_0x59de51)[_0x3c1735(0x110)]());}function dateISO(_0x255a3a){const _0x565fe8=a5_0x21cc;return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/[_0x565fe8(0x10d)](_0x255a3a);}function isNumber(_0x3e0243){const _0x3348a0=a5_0x21cc;return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/[_0x3348a0(0x10d)](_0x3e0243);}function a5_0x8456(){const _0x507b01=['^\x5cd{','[object\x20RegExp]','function','isArray','634521wfEyYL','object','2469954GGazpp','number','charAt','startsWith','undefined','boolean','parse','prototype','10820139jWtmTt','call','[object\x20Object]','12OzMfjq','string','1009335YilzIS','10bYmOzb','1317818qknzoO','catch','272457OTqgBA','length','then','test','split','replace','toString','852','120veTIdF','443611LWKJXJ','78gkSwCX','includes','indexOf'];a5_0x8456=function(){return _0x507b01;};return a5_0x8456();}function isString(_0x573bbc){const _0x76d5b6=a5_0x21cc;return typeof _0x573bbc===_0x76d5b6(0x105);}function digits(_0x233d5c){return/^\d+$/['test'](_0x233d5c);}function idCard(_0x556e6d){const _0x434ed4=a5_0x21cc,_0x12d101=/^[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)$/,_0x2a3c3a=/^[A-Z]{1,2}\d{6}\(?[0-9A]\)?$/;return _0x12d101[_0x434ed4(0x10d)](_0x556e6d)||_0x2a3c3a['test'](_0x556e6d);}function carNo(_0x4a031a){const _0x3f40df=a5_0x21cc,_0x1a54be=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x4c211f=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x4a031a['length']===0x7)return _0x4c211f['test'](_0x4a031a);if(_0x4a031a[_0x3f40df(0x10b)]===0x8)return _0x1a54be[_0x3f40df(0x10d)](_0x4a031a);return![];}function amount(_0x57785c){const _0x48d7b8=a5_0x21cc;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x48d7b8(0x10d)](_0x57785c);}function chinese(_0x59e167){const _0x2acf38=a5_0x21cc,_0x2386e0=/^[\u4e00-\u9fa5]+$/gi;return _0x2386e0[_0x2acf38(0x10d)](_0x59e167);}function letter(_0x253678){const _0x1d2237=a5_0x21cc;return/^[a-zA-Z]*$/[_0x1d2237(0x10d)](_0x253678);}function enOrNum(_0x266b2a){const _0x27c512=a5_0x21cc,_0x12f74f=/^[0-9a-zA-Z]*$/g;return _0x12f74f[_0x27c512(0x10d)](_0x266b2a);}function contains(_0x80d9a2,_0x302d86){const _0x497e0f=a5_0x21cc;return _0x80d9a2[_0x497e0f(0x116)](_0x302d86)>=0x0;}function range(_0x276df8,_0x5666c8){return _0x276df8>=_0x5666c8[0x0]&&_0x276df8<=_0x5666c8[0x1];}function rangeLength(_0x5c4e54,_0x47a34b){const _0x193ed6=a5_0x21cc;return _0x5c4e54['length']>=_0x47a34b[0x0]&&_0x5c4e54[_0x193ed6(0x10b)]<=_0x47a34b[0x1];}function landline(_0xe183f5){const _0x56d845=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x56d845['test'](_0xe183f5);}function empty(_0x6b6930){const _0x62625b=a5_0x21cc;switch(typeof _0x6b6930){case _0x62625b(0x121):return!![];case _0x62625b(0x105):if(_0x6b6930[_0x62625b(0x10f)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')['length']==0x0)return!![];break;case _0x62625b(0x122):if(!_0x6b6930)return!![];break;case _0x62625b(0x11e):if(_0x6b6930===0x0||isNaN(_0x6b6930))return!![];break;case _0x62625b(0x11c):if(_0x6b6930===null||_0x6b6930[_0x62625b(0x10b)]===0x0)return!![];for(const _0x5e53a0 in _0x6b6930){return![];}return!![];}return![];}function jsonString(_0x1b1a95){const _0x39e730=a5_0x21cc;if(typeof _0x1b1a95===_0x39e730(0x105))try{const _0x4c7620=JSON[_0x39e730(0x123)](_0x1b1a95);if(typeof _0x4c7620===_0x39e730(0x11c)&&_0x4c7620)return!![];return![];}catch(_0x1d972b){return![];}return![];}function array(_0x569f02){const _0x31f3a7=a5_0x21cc;if(typeof Array['isArray']===_0x31f3a7(0x119))return Array[_0x31f3a7(0x11a)](_0x569f02);return Object[_0x31f3a7(0x100)]['toString'][_0x31f3a7(0x102)](_0x569f02)==='[object\x20Array]';}function object(_0x42cab3){const _0x5d6ede=a5_0x21cc;return Object['prototype'][_0x5d6ede(0x110)]['call'](_0x42cab3)===_0x5d6ede(0x103);}function code(_0x2afe2b,_0x5707c9=0x6){const _0x864804=a5_0x21cc;return new RegExp(_0x864804(0x117)+_0x5707c9+'}$')['test'](_0x2afe2b);}function func(_0x3d2512){const _0x2e94c3=a5_0x21cc;return typeof _0x3d2512===_0x2e94c3(0x119);}function promise(_0x51531e){const _0x25418f=a5_0x21cc;return object(_0x51531e)&&func(_0x51531e[_0x25418f(0x10c)])&&func(_0x51531e[_0x25418f(0x109)]);}function image(_0x321f9b){const _0x3ef066=a5_0x21cc,_0x57fd0c=_0x321f9b[_0x3ef066(0x10e)]('?')[0x0],_0x18ad8a=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x18ad8a[_0x3ef066(0x10d)](_0x57fd0c);}function video(_0x29d7ae){const _0x3ed9f8=a5_0x21cc,_0x857e84=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x857e84[_0x3ed9f8(0x10d)](_0x29d7ae);}function regExp(_0x31e3a1){const _0x2749d6=a5_0x21cc;return _0x31e3a1&&Object['prototype']['toString'][_0x2749d6(0x102)](_0x31e3a1)===_0x2749d6(0x118);}function isNumeric(_0x2d3129,_0x10d065=0x0){const _0x116c29=a5_0x21cc;if(typeof _0x2d3129===_0x116c29(0x11e))_0x2d3129=_0x2d3129['toString']();if(typeof _0x2d3129!=='string')return![];switch(_0x10d065){case 0x1:return/^\d+(\.\d+)?$/[_0x116c29(0x10d)](_0x2d3129);case 0x2:return/^-\d+(\.\d+)?$/[_0x116c29(0x10d)](_0x2d3129);case 0x3:return/^-?\d+$/[_0x116c29(0x10d)](_0x2d3129);case 0x4:return/^\d+$/[_0x116c29(0x10d)](_0x2d3129);case 0x5:return/^-\d+$/[_0x116c29(0x10d)](_0x2d3129);default:return/^-?\d*\.?\d*$/[_0x116c29(0x10d)](_0x2d3129)&&!_0x2d3129[_0x116c29(0x120)]('.')&&!_0x2d3129[_0x116c29(0x115)]('--');}}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(_0x7ceda0,_0x2714ed){const _0x476ebd=a5_0x57fe,_0x4dfe5f=_0x7ceda0();while(!![]){try{const _0x18e5fe=parseInt(_0x476ebd(0x1e5))/0x1*(-parseInt(_0x476ebd(0x1d6))/0x2)+-parseInt(_0x476ebd(0x1c7))/0x3*(parseInt(_0x476ebd(0x1c4))/0x4)+-parseInt(_0x476ebd(0x1cf))/0x5*(-parseInt(_0x476ebd(0x1dd))/0x6)+parseInt(_0x476ebd(0x1e4))/0x7+-parseInt(_0x476ebd(0x1cd))/0x8+-parseInt(_0x476ebd(0x1c9))/0x9+parseInt(_0x476ebd(0x1dc))/0xa;if(_0x18e5fe===_0x2714ed)break;else _0x4dfe5f['push'](_0x4dfe5f['shift']());}catch(_0x51a1e9){_0x4dfe5f['push'](_0x4dfe5f['shift']());}}}(a5_0x113c,0x1ac0d));function email(_0xf54d27){const _0x46c08f=a5_0x57fe;return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/[_0x46c08f(0x1d0)](_0xf54d27);}function mobile(_0x55bad0){return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/['test'](_0x55bad0);}function isValidPhoneNumber(_0x52bbd0){const _0x5e46a5=a5_0x57fe;if(_0x52bbd0['includes']('-')){const [_0x3880a5,_0x4c39a3]=_0x52bbd0[_0x5e46a5(0x1ce)]('-');if(_0x3880a5==='86')return/^\d{11}$/['test'](_0x4c39a3)&&_0x4c39a3[_0x5e46a5(0x1de)]('1');else return _0x3880a5==='852'?/^\d{8}$/[_0x5e46a5(0x1d0)](_0x4c39a3)&&['5','6','9','8']['includes'](_0x4c39a3[_0x5e46a5(0x1c6)](0x0)):/^\d+$/['test'](_0x4c39a3);}else return/^\d+$/['test'](_0x52bbd0);}function url(_0x1d36cd){return/^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/['test'](_0x1d36cd);}function date(_0x2e3524){const _0x5158dd=a5_0x57fe;if(!_0x2e3524)return![];if(number(_0x2e3524))_0x2e3524=+_0x2e3524;return!/Invalid|NaN/[_0x5158dd(0x1d0)](new Date(_0x2e3524)['toString']());}function dateISO(_0x345d3f){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/['test'](_0x345d3f);}function isNumber(_0x13b292){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/['test'](_0x13b292);}function isString(_0xc1e968){const _0x4c54d5=a5_0x57fe;return typeof _0xc1e968===_0x4c54d5(0x1c3);}function digits(_0x52f487){const _0x3c091c=a5_0x57fe;return/^\d+$/[_0x3c091c(0x1d0)](_0x52f487);}function idCard(_0x447e1){const _0x535724=a5_0x57fe,_0x5b1650=/^[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)$/,_0x4660c7=/^[A-Z]{1,2}\d{6}\(?[0-9A]\)?$/;return _0x5b1650[_0x535724(0x1d0)](_0x447e1)||_0x4660c7['test'](_0x447e1);}function carNo(_0x799b81){const _0x213867=a5_0x57fe,_0x215f5b=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,_0x52dc9c=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;if(_0x799b81[_0x213867(0x1d8)]===0x7)return _0x52dc9c[_0x213867(0x1d0)](_0x799b81);if(_0x799b81[_0x213867(0x1d8)]===0x8)return _0x215f5b['test'](_0x799b81);return![];}function amount(_0x3af782){const _0x5366d5=a5_0x57fe;return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/[_0x5366d5(0x1d0)](_0x3af782);}function chinese(_0x426332){const _0x30ebb8=a5_0x57fe,_0x68fce8=/^[\u4e00-\u9fa5]+$/gi;return _0x68fce8[_0x30ebb8(0x1d0)](_0x426332);}function letter(_0x5753e2){const _0x3b9c3b=a5_0x57fe;return/^[a-zA-Z]*$/[_0x3b9c3b(0x1d0)](_0x5753e2);}function enOrNum(_0x398800){const _0x14712c=a5_0x57fe,_0x5198f0=/^[0-9a-zA-Z]*$/g;return _0x5198f0[_0x14712c(0x1d0)](_0x398800);}function contains(_0x2e918d,_0x7ecf0d){const _0x3a2abd=a5_0x57fe;return _0x2e918d[_0x3a2abd(0x1cb)](_0x7ecf0d)>=0x0;}function range(_0x329c18,_0x159156){return _0x329c18>=_0x159156[0x0]&&_0x329c18<=_0x159156[0x1];}function rangeLength(_0x458fa6,_0xc51445){const _0x4ddade=a5_0x57fe;return _0x458fa6['length']>=_0xc51445[0x0]&&_0x458fa6[_0x4ddade(0x1d8)]<=_0xc51445[0x1];}function landline(_0x26be8e){const _0x2a7ee1=a5_0x57fe,_0x7ff7f7=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return _0x7ff7f7[_0x2a7ee1(0x1d0)](_0x26be8e);}function empty(_0x2a15d0){const _0x2676a9=a5_0x57fe;switch(typeof _0x2a15d0){case _0x2676a9(0x1e0):return!![];case _0x2676a9(0x1c3):if(_0x2a15d0[_0x2676a9(0x1e1)](/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,'')[_0x2676a9(0x1d8)]==0x0)return!![];break;case _0x2676a9(0x1cc):if(!_0x2a15d0)return!![];break;case _0x2676a9(0x1df):if(_0x2a15d0===0x0||isNaN(_0x2a15d0))return!![];break;case _0x2676a9(0x1c8):if(_0x2a15d0===null||_0x2a15d0[_0x2676a9(0x1d8)]===0x0)return!![];for(const _0x5ae06b in _0x2a15d0){return![];}return!![];}return![];}function jsonString(_0x1f1fed){const _0x47ed65=a5_0x57fe;if(typeof _0x1f1fed==='string')try{const _0x52b3fb=JSON[_0x47ed65(0x1e2)](_0x1f1fed);if(typeof _0x52b3fb===_0x47ed65(0x1c8)&&_0x52b3fb)return!![];return![];}catch(_0x744360){return![];}return![];}function array(_0x4b5a2b){const _0x1ba1d2=a5_0x57fe;if(typeof Array[_0x1ba1d2(0x1d3)]==='function')return Array[_0x1ba1d2(0x1d3)](_0x4b5a2b);return Object['prototype'][_0x1ba1d2(0x1d4)][_0x1ba1d2(0x1d7)](_0x4b5a2b)===_0x1ba1d2(0x1d5);}function a5_0x113c(){const _0x4449f0=['488070utPWOl','startsWith','number','undefined','replace','parse','[object\x20RegExp]','1465982GPGrUJ','17HwJIZG','string','68636DgFsMG','prototype','charAt','21fjBVXR','object','250596hUdPvF','^\x5cd{','indexOf','boolean','1291432YGLpzR','split','5EYceuc','test','[object\x20Object]','function','isArray','toString','[object\x20Array]','1426MoDdlM','call','length','includes','then','catch','1403170xlykax'];a5_0x113c=function(){return _0x4449f0;};return a5_0x113c();}function object(_0x275c93){const _0xd80a63=a5_0x57fe;return Object[_0xd80a63(0x1c5)][_0xd80a63(0x1d4)][_0xd80a63(0x1d7)](_0x275c93)===_0xd80a63(0x1d1);}function code(_0x29ddd4,_0x838885=0x6){const _0xd78ea7=a5_0x57fe;return new RegExp(_0xd78ea7(0x1ca)+_0x838885+'}$')[_0xd78ea7(0x1d0)](_0x29ddd4);}function func(_0x2d3a7a){const _0x57dde2=a5_0x57fe;return typeof _0x2d3a7a===_0x57dde2(0x1d2);}function promise(_0x485018){const _0x564761=a5_0x57fe;return object(_0x485018)&&func(_0x485018[_0x564761(0x1da)])&&func(_0x485018[_0x564761(0x1db)]);}function image(_0x225b0b){const _0x36bf30=a5_0x57fe,_0x4c9020=_0x225b0b[_0x36bf30(0x1ce)]('?')[0x0],_0x4fbae0=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return _0x4fbae0[_0x36bf30(0x1d0)](_0x4c9020);}function video(_0x196afb){const _0x2655fd=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return _0x2655fd['test'](_0x196afb);}function regExp(_0x57f14c){const _0x5a71cd=a5_0x57fe;return _0x57f14c&&Object[_0x5a71cd(0x1c5)][_0x5a71cd(0x1d4)][_0x5a71cd(0x1d7)](_0x57f14c)===_0x5a71cd(0x1e3);}function a5_0x57fe(_0x59517d,_0x151391){const _0x113ca2=a5_0x113c();return a5_0x57fe=function(_0x57fe7f,_0x43c291){_0x57fe7f=_0x57fe7f-0x1c3;let _0x1bf02e=_0x113ca2[_0x57fe7f];return _0x1bf02e;},a5_0x57fe(_0x59517d,_0x151391);}function isNumeric(_0x41fdd7,_0x43f724=0x0){const _0x5a55ad=a5_0x57fe;if(typeof _0x41fdd7===_0x5a55ad(0x1df))_0x41fdd7=_0x41fdd7[_0x5a55ad(0x1d4)]();if(typeof _0x41fdd7!=='string')return![];switch(_0x43f724){case 0x1:return/^\d+(\.\d+)?$/['test'](_0x41fdd7);case 0x2:return/^-\d+(\.\d+)?$/['test'](_0x41fdd7);case 0x3:return/^-?\d+$/[_0x5a55ad(0x1d0)](_0x41fdd7);case 0x4:return/^\d+$/['test'](_0x41fdd7);case 0x5:return/^-\d+$/[_0x5a55ad(0x1d0)](_0x41fdd7);default:return/^-?\d*\.?\d*$/['test'](_0x41fdd7)&&!_0x41fdd7[_0x5a55ad(0x1de)]('.')&&!_0x41fdd7[_0x5a55ad(0x1d9)]('--');}}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_0x2fa53e=a6_0x2a06;(function(_0x974706,_0x47a499){const _0x188347=a6_0x2a06,_0x3ebdac=_0x974706();while(!![]){try{const _0x37b720=-parseInt(_0x188347(0x101))/0x1+parseInt(_0x188347(0xd3))/0x2*(parseInt(_0x188347(0xfd))/0x3)+parseInt(_0x188347(0xc8))/0x4*(-parseInt(_0x188347(0x10a))/0x5)+-parseInt(_0x188347(0x126))/0x6+-parseInt(_0x188347(0x118))/0x7*(parseInt(_0x188347(0xf5))/0x8)+parseInt(_0x188347(0x117))/0x9*(parseInt(_0x188347(0xdf))/0xa)+-parseInt(_0x188347(0x11f))/0xb*(-parseInt(_0x188347(0x112))/0xc);if(_0x37b720===_0x47a499)break;else _0x3ebdac['push'](_0x3ebdac['shift']());}catch(_0x30e68c){_0x3ebdac['push'](_0x3ebdac['shift']());}}}(a6_0x1f28,0xba82c));function fmtNum(_0x27f1c6,_0x30bbad=!![]){const _0x2a2412=a6_0x2a06;if(_0x27f1c6==0x0)return _0x30bbad?_0x2a2412(0x111):'0';if(!_0x27f1c6)return'';let _0x342c17=typeof _0x27f1c6===_0x2a2412(0xfa)?parseFloat(_0x27f1c6):_0x27f1c6;if(isNaN(_0x342c17))return'';return _0x342c17[_0x2a2412(0x123)](_0x2a2412(0xc4),{'minimumFractionDigits':_0x30bbad?0x2:0x0,'maximumFractionDigits':_0x30bbad?0x2:0x0});}function splitName(_0x5c9780,_0x24a7ad=![]){const _0x32349b=a6_0x2a06;let _0x2265ed={'surname':'','givenName':''};if(_0x24a7ad){const _0x54e07c=_0x5c9780[_0x32349b(0xcc)](',')?_0x5c9780[_0x32349b(0x110)](','):_0x5c9780[_0x32349b(0x110)](/\s+/);_0x54e07c['length']>=0x2&&(_0x2265ed[_0x32349b(0xf7)]=_0x54e07c[0x0]['trim'](),_0x2265ed['givenName']=_0x54e07c[0x1][_0x32349b(0xe4)]());}else{const _0x59bfff=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x1aab8b=0x0;_0x1aab8b<_0x59bfff[_0x32349b(0xe3)];_0x1aab8b++){const _0x5d287d=_0x59bfff[_0x1aab8b];if(_0x5c9780['startsWith'](_0x5d287d))return _0x2265ed[_0x32349b(0xf7)]=_0x5d287d,_0x2265ed['givenName']=_0x5c9780['substring'](_0x5d287d['length'])[_0x32349b(0xe4)](),_0x2265ed;}const _0x4477ca=_0x5c9780[_0x32349b(0x110)]('\x20');if(_0x4477ca['length']===0x1){const _0x2e7f48=_0x5c9780[_0x32349b(0xf4)](/[\u4e00-\u9fa5]/);_0x2265ed[_0x32349b(0xf7)]=_0x2e7f48?_0x2e7f48[0x0]:'',_0x2265ed[_0x32349b(0xe1)]=_0x5c9780[_0x32349b(0xcf)](_0x2265ed[_0x32349b(0xf7)],'')['trim']();}else _0x2265ed[_0x32349b(0xf7)]=_0x4477ca[0x0],_0x2265ed['givenName']=_0x4477ca[_0x32349b(0xd2)](0x1)[_0x32349b(0x107)]('\x20');}return _0x2265ed;}function timeFormat(_0x393e20=null,_0x4a84e4='yyyy-mm-dd'){const _0x18b922=a6_0x2a06;let _0x511f85;if(!_0x393e20)_0x511f85=new Date();else{if(/^\d{10}$/[_0x18b922(0x11a)](_0x393e20?.[_0x18b922(0xee)]()[_0x18b922(0xe4)]()))_0x511f85=new Date(_0x393e20*0x3e8);else{if(typeof _0x393e20===_0x18b922(0xfa)&&/^\d+$/[_0x18b922(0x11a)](_0x393e20[_0x18b922(0xe4)]()))_0x511f85=new Date(Number(_0x393e20));else typeof _0x393e20===_0x18b922(0xfa)&&_0x393e20[_0x18b922(0xcc)]('-')&&!_0x393e20['includes']('T')?_0x511f85=new Date(_0x393e20[_0x18b922(0xcf)](/-/g,'/')):_0x511f85=new Date(_0x393e20);}}const _0x42a41e={'y':_0x511f85[_0x18b922(0xde)]()[_0x18b922(0xee)](),'m':(_0x511f85[_0x18b922(0x109)]()+0x1)['toString']()[_0x18b922(0xed)](0x2,'0'),'d':_0x511f85[_0x18b922(0xec)]()[_0x18b922(0xee)]()[_0x18b922(0xed)](0x2,'0'),'h':_0x511f85[_0x18b922(0xe6)]()['toString']()[_0x18b922(0xed)](0x2,'0'),'M':_0x511f85[_0x18b922(0xf1)]()[_0x18b922(0xee)]()[_0x18b922(0xed)](0x2,'0'),'s':_0x511f85[_0x18b922(0xf9)]()[_0x18b922(0xee)]()[_0x18b922(0xed)](0x2,'0')};for(const _0x3f8beb in _0x42a41e){const [_0x301ed7]=new RegExp(_0x3f8beb+'+')[_0x18b922(0x11e)](_0x4a84e4)||[];if(_0x301ed7){const _0x5f0ee6=_0x3f8beb==='y'&&_0x301ed7[_0x18b922(0xe3)]===0x2?0x2:0x0;_0x4a84e4=_0x4a84e4[_0x18b922(0xcf)](_0x301ed7,_0x42a41e[_0x3f8beb][_0x18b922(0xd2)](_0x5f0ee6));}}return _0x4a84e4;}function a6_0x2a06(_0x4782a5,_0x3ef65d){const _0x1f28e9=a6_0x1f28();return a6_0x2a06=function(_0x2a0635,_0x2240ad){_0x2a0635=_0x2a0635-0xc4;let _0xb1a720=_0x1f28e9[_0x2a0635];return _0xb1a720;},a6_0x2a06(_0x4782a5,_0x3ef65d);}function handleOCRData(_0x3f4fd4,_0x3ce1cf){const _0x3d4626=a6_0x2a06,_0x1900ae=_0x3774ea=>{const _0x5be04e=a6_0x2a06,_0x4f8699=_0x3774ea[_0x5be04e(0xdd)](0x0,0x4),_0x30c73f=_0x3774ea[_0x5be04e(0xdd)](0x4,0x6),_0x351905=_0x3774ea[_0x5be04e(0xdd)](0x6,0x8);return _0x4f8699+'-'+_0x30c73f+'-'+_0x351905;};let _0x3eb826={'name':'','englishName':'','sex':'','surname':'','givenName':'','surnameEn':'','givenNameEn':'','expDate':'','birthDate':'','nationality':'','number':''};if(_0x3f4fd4===0x0||_0x3f4fd4===0x1||_0x3f4fd4===0x2){if(_0x3ce1cf[_0x3d4626(0x10d)]==='M')_0x3eb826[_0x3d4626(0xff)]='男';else _0x3eb826[_0x3d4626(0xff)]='女';}debugger;_0x3f4fd4===0x0&&(_0x3eb826[_0x3d4626(0xc6)]=_0x3ce1cf[_0x3d4626(0xfe)],_0x3eb826[_0x3d4626(0xf7)]=_0x3ce1cf[_0x3d4626(0xd6)],_0x3eb826[_0x3d4626(0xe1)]=_0x3ce1cf[_0x3d4626(0xeb)],_0x3eb826['expDate']=_0x3ce1cf[_0x3d4626(0xe8)],_0x3eb826[_0x3d4626(0xfb)]=_0x3ce1cf[_0x3d4626(0x11d)],_0x3eb826[_0x3d4626(0xd9)]=_0x3ce1cf[_0x3d4626(0x105)],_0x3eb826['number']=_0x3ce1cf[_0x3d4626(0x115)]);if(_0x3f4fd4===0x1){_0x3eb826['name']=_0x3ce1cf[_0x3d4626(0xfe)],_0x3eb826['surname']=_0x3ce1cf[_0x3d4626(0xf3)],_0x3eb826['givenName']=_0x3ce1cf['GivenName'],_0x3eb826['expDate']=_0x3ce1cf[_0x3d4626(0x108)],_0x3eb826[_0x3d4626(0xfb)]=_0x3ce1cf[_0x3d4626(0x121)],_0x3eb826[_0x3d4626(0xd9)]=_0x3ce1cf[_0x3d4626(0x105)],_0x3eb826[_0x3d4626(0x103)]=_0x3ce1cf['ID'];if(!_0x3ce1cf['Surname']&&!_0x3ce1cf[_0x3d4626(0xe5)]){const _0x5ce8fa=splitName(_0x3ce1cf['Name']);_0x3eb826['surname']=_0x5ce8fa[_0x3d4626(0xf7)],_0x3eb826[_0x3d4626(0xe1)]=_0x5ce8fa[_0x3d4626(0xe1)];}if(!_0x3ce1cf[_0x3d4626(0xf2)])_0x3eb826[_0x3d4626(0x10c)]=_0x3ce1cf['Name'];}_0x3f4fd4===0x2&&(_0x3eb826[_0x3d4626(0xc6)]=_0x3ce1cf[_0x3d4626(0xef)],_0x3eb826['englishName']=_0x3ce1cf[_0x3d4626(0xce)],_0x3eb826['birthDate']=_0x3ce1cf['Birthday'],_0x3eb826['number']=_0x3ce1cf[_0x3d4626(0xe7)]);_0x3f4fd4===0x3&&(_0x3eb826[_0x3d4626(0xc6)]=_0x3ce1cf[_0x3d4626(0xfe)],_0x3eb826[_0x3d4626(0xff)]=_0x3ce1cf[_0x3d4626(0x10d)],_0x3eb826[_0x3d4626(0xc9)]=_0x3ce1cf[_0x3d4626(0xf6)],_0x3eb826[_0x3d4626(0xfb)]=_0x3ce1cf['Birth'],_0x3eb826[_0x3d4626(0x103)]=_0x3ce1cf[_0x3d4626(0xe7)]);_0x3f4fd4===0x4&&(_0x3eb826[_0x3d4626(0xc6)]=_0x3ce1cf[_0x3d4626(0xfe)],_0x3eb826[_0x3d4626(0x10c)]=_0x3ce1cf[_0x3d4626(0xf2)],_0x3eb826[_0x3d4626(0xff)]=_0x3ce1cf[_0x3d4626(0x10d)],_0x3eb826[_0x3d4626(0xc9)]=_0x3ce1cf[_0x3d4626(0xf6)],_0x3eb826[_0x3d4626(0xfb)]=_0x3ce1cf[_0x3d4626(0xf8)],_0x3eb826[_0x3d4626(0x103)]=_0x3ce1cf[_0x3d4626(0x122)]);_0x3f4fd4===0x5&&(_0x3eb826[_0x3d4626(0xc6)]=_0x3ce1cf['Name'],_0x3eb826[_0x3d4626(0x10c)]=_0x3ce1cf[_0x3d4626(0xf2)],_0x3eb826[_0x3d4626(0xff)]=_0x3ce1cf['Sex'],_0x3eb826['expDate']=_0x3ce1cf[_0x3d4626(0xf6)],_0x3eb826['birthDate']=_0x3ce1cf[_0x3d4626(0xf8)],_0x3eb826['number']=_0x3ce1cf[_0x3d4626(0x122)]);if(_0x3f4fd4===0x2||_0x3f4fd4===0x3||_0x3f4fd4===0x4||_0x3f4fd4===0x5){const _0xc180a7=splitName(_0x3eb826[_0x3d4626(0xc6)]);_0x3eb826[_0x3d4626(0xf7)]=_0xc180a7[_0x3d4626(0xf7)],_0x3eb826['givenName']=_0xc180a7[_0x3d4626(0xe1)];}if(_0x3f4fd4===0x2||_0x3f4fd4===0x4||_0x3f4fd4===0x5){const _0x564645=splitName(_0x3eb826[_0x3d4626(0x10c)],!![]);_0x3eb826[_0x3d4626(0xe9)]=_0x564645['surname'],_0x3eb826['givenNameEn']=_0x564645[_0x3d4626(0xe1)];}if(_0x3f4fd4===0x0||_0x3f4fd4===0x1){if(_0x3eb826[_0x3d4626(0xfb)]!=='')_0x3eb826[_0x3d4626(0xfb)]=_0x1900ae(_0x3eb826[_0x3d4626(0xfb)]);if(_0x3eb826['expDate']!=='')_0x3eb826[_0x3d4626(0xc9)]=_0x1900ae(_0x3eb826[_0x3d4626(0xc9)]);}if(_0x3f4fd4===0x2||_0x3f4fd4===0x3){if(_0x3eb826[_0x3d4626(0xfb)]!=='')_0x3eb826['birthDate']=timeFormat(_0x3eb826[_0x3d4626(0xfb)]);if(_0x3eb826[_0x3d4626(0xc9)]!=='')_0x3eb826[_0x3d4626(0xc9)]=timeFormat(_0x3eb826[_0x3d4626(0xc9)]);}if(_0x3f4fd4===0x4||_0x3f4fd4===0x5){if(_0x3eb826[_0x3d4626(0xfb)]!=='')_0x3eb826['birthDate']=timeFormat(_0x3eb826[_0x3d4626(0xfb)]);if(_0x3eb826[_0x3d4626(0xc9)]!==''){let _0x4c66b0=_0x3eb826[_0x3d4626(0xc9)][_0x3d4626(0x110)]('-');_0x3eb826[_0x3d4626(0xc9)]=timeFormat(_0x4c66b0[0x1]);}}return{'type':_0x3f4fd4,'data':_0x3eb826};}function modifyKeys(_0x21a381,_0x5a8f1a={'strCode':a6_0x2fa53e(0xdb),'strFjbh':a6_0x2fa53e(0x11c),'strGuid':'value','strValue':a6_0x2fa53e(0x102)}){const _0x1a9316=a6_0x2fa53e;if(!_0x21a381[_0x1a9316(0xe3)]||_0x21a381===null)return[];const _0xa5f501=_0x21a381['map'](_0x3b8c6c=>{const _0x211b07=_0x1a9316,_0x1cde95={};for(const _0x7ee2a8 in _0x3b8c6c){_0x5a8f1a[_0x211b07(0x119)](_0x7ee2a8)?_0x1cde95[_0x5a8f1a[_0x7ee2a8]]=_0x3b8c6c[_0x7ee2a8]:_0x1cde95[_0x7ee2a8]=_0x3b8c6c[_0x7ee2a8];}return _0x1cde95;});return _0xa5f501;}function sliceArray(_0x2b3c80,_0x3b304d,_0x4ba6cf){const _0x8aaae=a6_0x2fa53e;if(_0x3b304d<=0x0)return console['error'](_0x8aaae(0xdc)),[];return _0x4ba6cf?_0x2b3c80['slice'](0x0,_0x3b304d):_0x2b3c80[_0x8aaae(0xd2)](-_0x3b304d);}function findDataByData(_0x3fd643,_0x29f3ff,_0x54ccdd){const _0x58119a=_0x3fd643['find'](_0x198f87=>_0x198f87[_0x54ccdd]===_0x29f3ff);return _0x58119a||null;}function splitArray(_0xa903d3,_0x26b175){const _0x3850ac=a6_0x2fa53e,_0x33b624=[];for(let _0x1471e9=0x0;_0x1471e9<_0xa903d3['length'];_0x1471e9+=_0x26b175){_0x33b624['push'](_0xa903d3[_0x3850ac(0xd2)](_0x1471e9,_0x1471e9+_0x26b175));}return _0x33b624;}function getProxyType(_0x29ef43){const _0x2c1046=a6_0x2fa53e;return Object[_0x2c1046(0xd8)][_0x2c1046(0xee)][_0x2c1046(0x124)](_0x29ef43)[_0x2c1046(0xd2)](0x8,-0x1);}let timeout=null;function debounce(_0x4720f5,_0xbba387=0x1f4,_0x580ea6=![]){if(timeout!==null)clearTimeout(timeout);if(_0x580ea6){const _0x5a7141=!timeout;timeout=setTimeout(()=>{timeout=null;},_0xbba387);if(_0x5a7141)typeof _0x4720f5==='function'&&_0x4720f5();}else timeout=setTimeout(()=>{const _0x57151f=a6_0x2a06;typeof _0x4720f5===_0x57151f(0xcb)&&_0x4720f5();},_0xbba387);}function urlEncode(_0x2e22d0={}){const _0x4f2458=a6_0x2fa53e,_0x1980fd=[];for(const _0x4f4c02 in _0x2e22d0){const _0x390cd5=_0x2e22d0[_0x4f4c02];if(!_0x390cd5)continue;isArray(_0x390cd5)?_0x390cd5[_0x4f2458(0x113)](_0x8a9a7b=>{_0x1980fd['push'](_0x4f4c02+'='+_0x8a9a7b);}):_0x1980fd['push'](_0x4f4c02+'='+_0x390cd5);}return _0x1980fd[_0x4f2458(0x107)]('&');}function dateFormat(_0x8cbd12,_0xc54ddc){const _0x4cd184=a6_0x2fa53e,_0x1ad515=new Date(_0xc54ddc),_0x1a096c={'Y+':_0x1ad515[_0x4cd184(0xde)]()['toString'](),'m+':(_0x1ad515[_0x4cd184(0x109)]()+0x1)[_0x4cd184(0xee)](),'d+':_0x1ad515['getDate']()['toString'](),'H+':_0x1ad515['getHours']()[_0x4cd184(0xee)](),'M+':_0x1ad515[_0x4cd184(0xf1)]()[_0x4cd184(0xee)](),'S+':_0x1ad515['getSeconds']()[_0x4cd184(0xee)]()};let _0x4a304c;for(let _0x25323f in _0x1a096c){_0x4a304c=new RegExp('('+_0x25323f+')')['exec'](_0x8cbd12);_0x4a304c&&(_0x8cbd12=_0x8cbd12[_0x4cd184(0xcf)](_0x4a304c[0x1],_0x4a304c[0x1][_0x4cd184(0xe3)]==0x1?_0x1a096c[_0x25323f]:_0x1a096c[_0x25323f]['padStart'](_0x4a304c[0x1][_0x4cd184(0xe3)],'0')));;};return _0x8cbd12;}function formatDate(_0x33bac9,_0x38bb12=a6_0x2fa53e(0xea),_0x35d9be={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x31a268=a6_0x2fa53e,_0x1c853f=new Date(_0x33bac9),_0x207fab=_0x1c853f[_0x31a268(0xde)](),_0x35b159=_0x1c853f['getMonth']()+0x1,_0xa56c5d=_0x1c853f[_0x31a268(0xec)](),_0x54a84f=_0x35b159<0xa?'0'+_0x35b159:_0x35b159,_0x46ce21=_0xa56c5d<0xa?'0'+_0xa56c5d:_0xa56c5d;let _0xf2c953=_0x38bb12[_0x31a268(0xcf)](_0x31a268(0xd1),_0x207fab)['replace']('MM',_0x54a84f)[_0x31a268(0xcf)]('DD',_0x46ce21);return _0xf2c953=_0xf2c953[_0x31a268(0xcf)](/-MM/g,_0x35d9be['monthTitle'])['replace'](/-DD/g,_0x35d9be['dayTitle'])[_0x31a268(0xcf)]('YYYY'+_0x35d9be['yearTitle'],'')[_0x31a268(0xcf)]('MM'+_0x35d9be[_0x31a268(0xc7)],'')['replace']('DD'+_0x35d9be[_0x31a268(0xc5)],''),_0xf2c953;}function compareDates(_0x388e94,_0x371f43){const _0x581d25=a6_0x2fa53e;_0x388e94=new Date(_0x388e94);!_0x371f43?_0x371f43=new Date():_0x371f43=new Date(_0x371f43);_0x388e94[_0x581d25(0x10f)](0x0,0x0,0x0,0x0),_0x371f43['setHours'](0x0,0x0,0x0,0x0);var _0x216326=_0x388e94[_0x581d25(0x106)](),_0x2dcd1f=_0x371f43[_0x581d25(0x106)]();if(_0x216326<_0x2dcd1f)return-0x1;else return _0x216326>_0x2dcd1f?0x1:0x0;}function getDaysBetween(_0x5cb60e,_0x25d9e8){const _0x2521bd=a6_0x2fa53e,_0x3e4b05=new Date(_0x5cb60e),_0x5ad0ac=new Date(_0x25d9e8),_0x5ea2c2=Math[_0x2521bd(0x10b)](_0x3e4b05['getTime']()-_0x5ad0ac[_0x2521bd(0x106)]()),_0x1c4f20=Math[_0x2521bd(0x125)](_0x5ea2c2/(0x3e8*0x3c*0x3c*0x18));return _0x1c4f20+0x1;}function chineseNumeral(_0xaeadbe){const _0x3b1051=a6_0x2fa53e,_0x5c6097=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x247b56=['','拾','佰','仟'],_0x2eb7ca=['','万','亿','兆'];let _0x5f46b5=Math[_0x3b1051(0x125)](_0xaeadbe),_0x281351=Math[_0x3b1051(0x100)]((_0xaeadbe-_0x5f46b5)*0x64),_0x2e7f26='';for(let _0xbeb2a=0x0;_0x5f46b5>0x0;_0xbeb2a++){let _0x3b06df='',_0x57f60b=_0x5f46b5%0x2710;_0x5f46b5=Math[_0x3b1051(0x125)](_0x5f46b5/0x2710);for(let _0xb88cfe=0x0;_0x57f60b>0x0;_0xb88cfe++){let _0x21d6ae=_0x57f60b%0xa;_0x3b06df=(_0x21d6ae?_0x5c6097[_0x21d6ae]+_0x247b56[_0xb88cfe]:'')+_0x3b06df,_0x57f60b=Math[_0x3b1051(0x125)](_0x57f60b/0xa);}_0x2e7f26=_0x3b06df+(_0x3b06df?_0x2eb7ca[_0xbeb2a]:_0x2eb7ca[_0xbeb2a]&&!_0x2e7f26[_0x3b1051(0xcc)]('零')?'零':'')+_0x2e7f26;}_0x2e7f26+=_0x2e7f26?'元':'零元';if(_0x281351>0x0){let _0x77c533=Math[_0x3b1051(0x125)](_0x281351/0xa),_0x2cf2b4=_0x281351%0xa;_0x2e7f26+=(_0x77c533?_0x5c6097[_0x77c533]+'角':'')+(_0x2cf2b4?_0x5c6097[_0x2cf2b4]+'分':'');}else _0x2e7f26+='整';return _0x2e7f26[_0x3b1051(0xcf)](/零{2,}/g,'零')[_0x3b1051(0xcf)](/零元/,'元');}function getMonthDate(_0x29c63d){const _0x57d419=a6_0x2fa53e;(!_0x29c63d||_0x29c63d[_0x57d419(0xe4)]()==='')&&(_0x29c63d=new Date()['getFullYear']()+'-'+(new Date()[_0x57d419(0x109)]()+0x1));let _0x4e5c73=[],[_0x22afd3,_0x2a061f]=_0x29c63d[_0x57d419(0x110)]('-')[_0x57d419(0x10e)](Number),_0x10ec1c=new Date(_0x22afd3,_0x2a061f,0x0),_0x22b846=_0x10ec1c[_0x57d419(0xec)]();for(let _0x229197=0x1;_0x229197<=_0x22b846;_0x229197++){let _0x3131a7=_0x229197<0xa?'0'+_0x229197:''+_0x229197,_0x40a2a2=_0x2a061f<0xa?'0'+_0x2a061f:''+_0x2a061f;_0x4e5c73[_0x57d419(0x104)]({'date':_0x22afd3+'-'+_0x40a2a2+'-'+_0x3131a7,'disable':!![]});}return _0x4e5c73;}function getToday(_0x364c2f){const _0x478d45=a6_0x2fa53e;var _0x1498d8=new Date(),_0x4ef66f=String(_0x1498d8[_0x478d45(0xec)]())[_0x478d45(0xed)](0x2,'0'),_0x4ff957=String(_0x1498d8[_0x478d45(0x109)]()+0x1)['padStart'](0x2,'0'),_0x3cd431=_0x1498d8['getFullYear']();return _0x1498d8=_0x3cd431+'-'+_0x4ff957+'-'+_0x4ef66f,_0x1498d8;}function a6_0x1f28(){const _0x5c113a=['17178bcSiSO','hasOwnProperty','test','all','fjbh','BirthDate','exec','2834051HvbOMv','both','DateOfBirth','Number','toLocaleString','call','floor','6538794LelTgR','en-US','dayTitle','name','monthTitle','20jAFYGe','expDate','shift','function','includes','right','EnName','replace','max','YYYY','slice','2pgTrbs','object','isArray','FamilyName','除数不能为0','prototype','nationality','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','code','Quantity\x20should\x20be\x20greater\x20than\x200.','substring','getFullYear','3980bMgukZ','left','givenName','toFixed','length','trim','GivenName','getHours','IdNum','ExpiryDate','surnameEn','YYYY-MM-DD','FirstName','getDate','padStart','toString','CnName','无效的操作符,操作符应为1、2、3或4','getMinutes','EnglishName','Surname','match','480BqqeKs','ValidDate','surname','Birthday','getSeconds','string','birthDate','setDate','4122549PkzcSU','Name','sex','round','1449668nmblLk','label','number','push','Nationality','getTime','join','DateOfExpiration','getMonth','895145QuaZwq','abs','englishName','Sex','map','setHours','split','0.00','84eMvEJp','forEach','endsWith','PassportNo','parse','26415eSgHEF'];a6_0x1f28=function(){return _0x5c113a;};return a6_0x1f28();}function resetObject(_0x4c04a9){const _0x510608=a6_0x2fa53e;let _0x13163f=JSON[_0x510608(0x116)](JSON['stringify'](_0x4c04a9));for(const _0x3ad7cf in _0x13163f){if(typeof _0x13163f[_0x3ad7cf]===_0x510608(0x103))_0x13163f[_0x3ad7cf]=0x0;else{if(typeof _0x13163f[_0x3ad7cf]==='boolean')_0x13163f[_0x3ad7cf]=![];else{if(Array[_0x510608(0xd5)](_0x13163f[_0x3ad7cf]))_0x13163f[_0x3ad7cf]=[];else typeof _0x13163f[_0x3ad7cf]===_0x510608(0xd4)&&_0x13163f[_0x3ad7cf]!==null?resetObject(_0x13163f[_0x3ad7cf]):_0x13163f[_0x3ad7cf]='';}}}return _0x13163f;}function preciseOperation(_0x22ce78,_0x53aca6,_0x35e5c2,_0x54955f=0xf4240){const _0x115d8a=a6_0x2fa53e;if(isNaN(_0x22ce78)||isNaN(_0x53aca6))return NaN;if(!isFinite(_0x22ce78)||!isFinite(_0x53aca6))return NaN;let _0x145de0=BigInt(Math[_0x115d8a(0x100)](_0x22ce78*_0x54955f)),_0x3bbf8b=BigInt(Math[_0x115d8a(0x100)](_0x53aca6*_0x54955f)),_0x153943;switch(_0x35e5c2){case 0x1:_0x153943=_0x145de0+_0x3bbf8b;break;case 0x2:_0x153943=_0x145de0-_0x3bbf8b;break;case 0x3:_0x153943=_0x145de0*_0x3bbf8b;break;case 0x4:if(_0x3bbf8b===0x0n)throw new Error(_0x115d8a(0xd7));_0x153943=_0x145de0/_0x3bbf8b;break;default:throw new Error(_0x115d8a(0xf0));}return Number(_0x153943)/_0x54955f;}function preciseSum(_0x26a4db){const _0x4f1a27=a6_0x2fa53e;let _0x543b9a=0x0;for(const _0xc2938e of _0x26a4db){let _0x30346e=0x0;if(typeof _0xc2938e==='string'){const _0x3f1eac=parseFloat(_0xc2938e);!isNaN(_0x3f1eac)&&(_0x30346e=_0x3f1eac);}else typeof _0xc2938e===_0x4f1a27(0x103)&&(_0x30346e=_0xc2938e);_0x543b9a=preciseOperation(_0x543b9a,_0x30346e,0x1);}return _0x543b9a;}function getRelativeDate(_0x57a861,_0x13d85d=0x0){const _0x3ffa5d=a6_0x2fa53e,_0x13b124=new Date(_0x57a861);_0x13b124[_0x3ffa5d(0xfc)](_0x13b124['getDate']()+_0x13d85d);const _0x4fd1bb=_0x13b124[_0x3ffa5d(0xde)](),_0x1a54b1=(_0x13b124[_0x3ffa5d(0x109)]()+0x1)[_0x3ffa5d(0xee)]()[_0x3ffa5d(0xed)](0x2,'0'),_0x3e4521=_0x13b124[_0x3ffa5d(0xec)]()[_0x3ffa5d(0xee)]()['padStart'](0x2,'0');return _0x4fd1bb+'-'+_0x1a54b1+'-'+_0x3e4521;}function validateFields(_0x3c83ba,_0x4b1ec1,_0xaf86ae=''){for(let _0x8213dd of _0x4b1ec1){if(_0x3c83ba[_0x8213dd]===_0xaf86ae)return!![];}return![];}function mergeObjects(_0x249f45,_0x9b674b){const _0x1e3eeb=a6_0x2fa53e;for(const _0x1bc40f in _0x249f45){_0x9b674b[_0x1e3eeb(0x119)](_0x1bc40f)&&(_0x249f45[_0x1bc40f]=_0x9b674b[_0x1bc40f]);}return _0x249f45;}const formatToDecimal=(_0x35fb3a,_0x33ffc3=0x2)=>{const _0x3c768c=a6_0x2fa53e;if(isNaN(_0x33ffc3)||_0x33ffc3<0x0)return _0x35fb3a;let _0x20f987=Number(_0x35fb3a);if(!isFinite(_0x20f987))return _0x35fb3a;return _0x33ffc3=Math[_0x3c768c(0xd0)](0x0,Math[_0x3c768c(0x125)](_0x33ffc3)),_0x20f987[_0x3c768c(0xe2)](_0x33ffc3);};function findKeysEndingWith(_0x4cded7,_0xb1f232='_qh'){const _0x4e5809=a6_0x2fa53e;let _0x482e0b=[];for(var _0x22c92c in _0x4cded7){if(_0x4cded7['hasOwnProperty'](_0x22c92c)){if(_0x22c92c[_0x4e5809(0x114)](_0xb1f232))_0x482e0b[_0x4e5809(0x104)](_0x22c92c);}}return _0x482e0b;}function guid(_0x9bc6ef=0x20,_0x42ed35=!![],_0x20ef26=null){const _0x24b6a8=a6_0x2fa53e,_0x28a277=_0x24b6a8(0xda)[_0x24b6a8(0x110)](''),_0x24e0c5=[];_0x20ef26=_0x20ef26||_0x28a277[_0x24b6a8(0xe3)];if(_0x9bc6ef){for(let _0x465c26=0x0;_0x465c26<_0x9bc6ef;_0x465c26++)_0x24e0c5[_0x465c26]=_0x28a277[0x0|Math['random']()*_0x20ef26];}else{let _0x2962f2;_0x24e0c5[0x8]=_0x24e0c5[0xd]=_0x24e0c5[0x12]=_0x24e0c5[0x17]='-',_0x24e0c5[0xe]='4';for(let _0x29c9e6=0x0;_0x29c9e6<0x24;_0x29c9e6++){!_0x24e0c5[_0x29c9e6]&&(_0x2962f2=0x0|Math['random']()*0x10,_0x24e0c5[_0x29c9e6]=_0x28a277[_0x29c9e6==0x13?_0x2962f2&0x3|0x8:_0x2962f2]);}}if(_0x42ed35)return _0x24e0c5[_0x24b6a8(0xca)](),'u'+_0x24e0c5[_0x24b6a8(0x107)]('');return _0x24e0c5[_0x24b6a8(0x107)]('');}function trim(_0x515f25,_0x1bebac=a6_0x2fa53e(0x120)){const _0x5b8cb4=a6_0x2fa53e;_0x515f25=String(_0x515f25);if(_0x1bebac==_0x5b8cb4(0x120))return _0x515f25[_0x5b8cb4(0xcf)](/^\s+|\s+$/g,'');if(_0x1bebac==_0x5b8cb4(0xe0))return _0x515f25[_0x5b8cb4(0xcf)](/^\s*/,'');if(_0x1bebac==_0x5b8cb4(0xcd))return _0x515f25[_0x5b8cb4(0xcf)](/(\s*$)/g,'');if(_0x1bebac==_0x5b8cb4(0x11b))return _0x515f25[_0x5b8cb4(0xcf)](/\s+/g,'');return _0x515f25;}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_0x2dc0b1=a6_0x5879;(function(_0x21112b,_0x29603c){const _0x5b5862=a6_0x5879,_0x4822b8=_0x21112b();while(!![]){try{const _0xcd8521=parseInt(_0x5b5862(0x146))/0x1*(parseInt(_0x5b5862(0x138))/0x2)+parseInt(_0x5b5862(0x155))/0x3*(parseInt(_0x5b5862(0x129))/0x4)+-parseInt(_0x5b5862(0x164))/0x5*(-parseInt(_0x5b5862(0x165))/0x6)+parseInt(_0x5b5862(0x177))/0x7*(parseInt(_0x5b5862(0x158))/0x8)+parseInt(_0x5b5862(0x16d))/0x9+parseInt(_0x5b5862(0x13c))/0xa*(parseInt(_0x5b5862(0x123))/0xb)+-parseInt(_0x5b5862(0x12a))/0xc*(parseInt(_0x5b5862(0x133))/0xd);if(_0xcd8521===_0x29603c)break;else _0x4822b8['push'](_0x4822b8['shift']());}catch(_0x2d667e){_0x4822b8['push'](_0x4822b8['shift']());}}}(a6_0x2059,0xe7107));function fmtNum(_0xf5ab20,_0x1ff077=!![]){const _0x1d130e=a6_0x5879;if(_0xf5ab20==0x0)return _0x1ff077?_0x1d130e(0x15b):'0';if(!_0xf5ab20)return'';let _0x52b7ef=typeof _0xf5ab20===_0x1d130e(0x14e)?parseFloat(_0xf5ab20):_0xf5ab20;if(isNaN(_0x52b7ef))return'';let [_0xcaad3b,_0x82543f]=_0x52b7ef[_0x1d130e(0x14d)]()['split']('.');_0xcaad3b=_0xcaad3b[_0x1d130e(0x12d)](/\B(?=(\d{3})+(?!\d))/g,',');if(_0x82543f!==undefined){_0x82543f=_0x82543f['substring'](0x0,0x2);while(_0x82543f['length']<0x2){_0x82543f+='0';}return _0xcaad3b+'.'+_0x82543f;}else{if(_0x1ff077)return _0xcaad3b+'.00';}return _0xcaad3b;}function splitName(_0xa6c7a3,_0x3d84b2=![]){const _0x5924a7=a6_0x5879;let _0x2d245f={'surname':'','givenName':''};if(_0x3d84b2){const _0x21b1d2=_0xa6c7a3[_0x5924a7(0x147)](',')?_0xa6c7a3[_0x5924a7(0x179)](','):_0xa6c7a3[_0x5924a7(0x179)](/\s+/);_0x21b1d2[_0x5924a7(0x141)]>=0x2&&(_0x2d245f[_0x5924a7(0x121)]=_0x21b1d2[0x0]['trim'](),_0x2d245f['givenName']=_0x21b1d2[0x1]['trim']());}else{const _0x4e9804=['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫','宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','司徒','鲜于','司空','闾丘','子车','亓官','司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹谷','轩辕','令狐','段干','百里','呼延','东郭','南门','羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左丘','公伯','西门','公祖','第五','公乘','贯丘','公皙','南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师','吴铭','歐陽','太史','端木','上官','司馬','東方','獨孤','南宮','萬俟','聞人','夏侯','諸葛','尉遲','公羊','赫連','澹臺','皇甫','宗政','濮陽','公冶','太叔','申屠','公孫','慕容','仲孫','鐘離','長孫','宇文','司徒','鮮於','司空','閭丘','子車','亓官','司寇','巫馬','公西','顓孫','壤駟','公良','漆雕','樂正','宰父','穀梁','拓跋','夾谷','軒轅','令狐','段幹','百里','呼延','東郭','南門','羊舌','微生','公戶','公玉','公儀','梁丘','公仲','公上','公門','公山','公堅','左丘','公伯','西門','公祖','第五','公乘','貫丘','公皙','南榮','東里','東宮','仲長','子書','子桑','即墨','達奚','褚師','吳銘'];for(let _0x5c1b64=0x0;_0x5c1b64<_0x4e9804[_0x5924a7(0x141)];_0x5c1b64++){const _0x85449e=_0x4e9804[_0x5c1b64];if(_0xa6c7a3['startsWith'](_0x85449e))return _0x2d245f[_0x5924a7(0x121)]=_0x85449e,_0x2d245f[_0x5924a7(0x130)]=_0xa6c7a3[_0x5924a7(0x134)](_0x85449e['length'])[_0x5924a7(0x171)](),_0x2d245f;}const _0x548eda=_0xa6c7a3[_0x5924a7(0x179)]('\x20');if(_0x548eda[_0x5924a7(0x141)]===0x1){const _0xa46bc0=_0xa6c7a3[_0x5924a7(0x15c)](/[\u4e00-\u9fa5]/);_0x2d245f[_0x5924a7(0x121)]=_0xa46bc0?_0xa46bc0[0x0]:'',_0x2d245f[_0x5924a7(0x130)]=_0xa6c7a3[_0x5924a7(0x12d)](_0x2d245f[_0x5924a7(0x121)],'')[_0x5924a7(0x171)]();}else _0x2d245f['surname']=_0x548eda[0x0],_0x2d245f['givenName']=_0x548eda[_0x5924a7(0x11f)](0x1)[_0x5924a7(0x168)]('\x20');}return _0x2d245f;}function a6_0x5879(_0x524a09,_0x11b133){const _0x205946=a6_0x2059();return a6_0x5879=function(_0x58797c,_0x2c7e43){_0x58797c=_0x58797c-0x11b;let _0x5d5a=_0x205946[_0x58797c];return _0x5d5a;},a6_0x5879(_0x524a09,_0x11b133);}function timeFormat(_0x4bafea=null,_0xde390f='yyyy-mm-dd'){const _0x129548=a6_0x5879;let _0x539188;if(!_0x4bafea)_0x539188=new Date();else{if(/^\d{10}$/[_0x129548(0x172)](_0x4bafea?.[_0x129548(0x14d)]()[_0x129548(0x171)]()))_0x539188=new Date(_0x4bafea*0x3e8);else{if(typeof _0x4bafea==='string'&&/^\d+$/[_0x129548(0x172)](_0x4bafea[_0x129548(0x171)]()))_0x539188=new Date(Number(_0x4bafea));else typeof _0x4bafea==='string'&&_0x4bafea['includes']('-')&&!_0x4bafea[_0x129548(0x147)]('T')?_0x539188=new Date(_0x4bafea[_0x129548(0x12d)](/-/g,'/')):_0x539188=new Date(_0x4bafea);}}const _0x4957d3={'y':_0x539188[_0x129548(0x16b)]()['toString'](),'m':(_0x539188[_0x129548(0x11c)]()+0x1)['toString']()[_0x129548(0x151)](0x2,'0'),'d':_0x539188[_0x129548(0x15e)]()[_0x129548(0x14d)]()[_0x129548(0x151)](0x2,'0'),'h':_0x539188[_0x129548(0x161)]()[_0x129548(0x14d)]()['padStart'](0x2,'0'),'M':_0x539188[_0x129548(0x159)]()[_0x129548(0x14d)]()[_0x129548(0x151)](0x2,'0'),'s':_0x539188[_0x129548(0x156)]()[_0x129548(0x14d)]()['padStart'](0x2,'0')};for(const _0x4fbdae in _0x4957d3){const [_0x4d80ec]=new RegExp(_0x4fbdae+'+')[_0x129548(0x14a)](_0xde390f)||[];if(_0x4d80ec){const _0x340962=_0x4fbdae==='y'&&_0x4d80ec[_0x129548(0x141)]===0x2?0x2:0x0;_0xde390f=_0xde390f[_0x129548(0x12d)](_0x4d80ec,_0x4957d3[_0x4fbdae][_0x129548(0x11f)](_0x340962));}}return _0xde390f;}function handleOCRData(_0x40f0ed,_0x1a4b1d){const _0x5d4e67=a6_0x5879,_0x2a81ac=_0x334574=>{const _0x5e92e5=a6_0x5879,_0xebc0c5=_0x334574['substring'](0x0,0x4),_0x27b036=_0x334574[_0x5e92e5(0x134)](0x4,0x6),_0x506f0b=_0x334574[_0x5e92e5(0x134)](0x6,0x8);return _0xebc0c5+'-'+_0x27b036+'-'+_0x506f0b;};let _0x25ebd4={'name':'','englishName':'','sex':'','surname':'','givenName':'','surnameEn':'','givenNameEn':'','expDate':'','birthDate':'','nationality':'','number':''};if(_0x40f0ed===0x0||_0x40f0ed===0x1||_0x40f0ed===0x2){if(_0x1a4b1d[_0x5d4e67(0x13b)]==='M')_0x25ebd4[_0x5d4e67(0x143)]='男';else _0x25ebd4[_0x5d4e67(0x143)]='女';}debugger;_0x40f0ed===0x0&&(_0x25ebd4[_0x5d4e67(0x16a)]=_0x1a4b1d[_0x5d4e67(0x167)],_0x25ebd4['surname']=_0x1a4b1d[_0x5d4e67(0x173)],_0x25ebd4[_0x5d4e67(0x130)]=_0x1a4b1d[_0x5d4e67(0x128)],_0x25ebd4['expDate']=_0x1a4b1d[_0x5d4e67(0x13d)],_0x25ebd4[_0x5d4e67(0x139)]=_0x1a4b1d[_0x5d4e67(0x144)],_0x25ebd4[_0x5d4e67(0x142)]=_0x1a4b1d[_0x5d4e67(0x175)],_0x25ebd4[_0x5d4e67(0x120)]=_0x1a4b1d[_0x5d4e67(0x16e)]);if(_0x40f0ed===0x1){_0x25ebd4[_0x5d4e67(0x16a)]=_0x1a4b1d[_0x5d4e67(0x167)],_0x25ebd4[_0x5d4e67(0x121)]=_0x1a4b1d[_0x5d4e67(0x16c)],_0x25ebd4['givenName']=_0x1a4b1d[_0x5d4e67(0x13a)],_0x25ebd4[_0x5d4e67(0x176)]=_0x1a4b1d['DateOfExpiration'],_0x25ebd4['birthDate']=_0x1a4b1d[_0x5d4e67(0x17a)],_0x25ebd4[_0x5d4e67(0x142)]=_0x1a4b1d['Nationality'],_0x25ebd4[_0x5d4e67(0x120)]=_0x1a4b1d['ID'];if(!_0x1a4b1d[_0x5d4e67(0x16c)]&&!_0x1a4b1d[_0x5d4e67(0x13a)]){const _0x44bc8a=splitName(_0x1a4b1d[_0x5d4e67(0x167)]);_0x25ebd4[_0x5d4e67(0x121)]=_0x44bc8a[_0x5d4e67(0x121)],_0x25ebd4[_0x5d4e67(0x130)]=_0x44bc8a[_0x5d4e67(0x130)];}if(!_0x1a4b1d[_0x5d4e67(0x178)])_0x25ebd4[_0x5d4e67(0x125)]=_0x1a4b1d[_0x5d4e67(0x167)];}_0x40f0ed===0x2&&(_0x25ebd4['name']=_0x1a4b1d[_0x5d4e67(0x11e)],_0x25ebd4[_0x5d4e67(0x125)]=_0x1a4b1d[_0x5d4e67(0x12e)],_0x25ebd4[_0x5d4e67(0x139)]=_0x1a4b1d['Birthday'],_0x25ebd4[_0x5d4e67(0x120)]=_0x1a4b1d[_0x5d4e67(0x160)]);_0x40f0ed===0x3&&(_0x25ebd4['name']=_0x1a4b1d[_0x5d4e67(0x167)],_0x25ebd4[_0x5d4e67(0x143)]=_0x1a4b1d[_0x5d4e67(0x13b)],_0x25ebd4[_0x5d4e67(0x176)]=_0x1a4b1d[_0x5d4e67(0x12c)],_0x25ebd4[_0x5d4e67(0x139)]=_0x1a4b1d[_0x5d4e67(0x157)],_0x25ebd4[_0x5d4e67(0x120)]=_0x1a4b1d['IdNum']);_0x40f0ed===0x4&&(_0x25ebd4[_0x5d4e67(0x16a)]=_0x1a4b1d[_0x5d4e67(0x167)],_0x25ebd4[_0x5d4e67(0x125)]=_0x1a4b1d[_0x5d4e67(0x178)],_0x25ebd4[_0x5d4e67(0x143)]=_0x1a4b1d[_0x5d4e67(0x13b)],_0x25ebd4['expDate']=_0x1a4b1d[_0x5d4e67(0x12c)],_0x25ebd4[_0x5d4e67(0x139)]=_0x1a4b1d['Birthday'],_0x25ebd4['number']=_0x1a4b1d['Number']);_0x40f0ed===0x5&&(_0x25ebd4['name']=_0x1a4b1d[_0x5d4e67(0x167)],_0x25ebd4[_0x5d4e67(0x125)]=_0x1a4b1d[_0x5d4e67(0x178)],_0x25ebd4[_0x5d4e67(0x143)]=_0x1a4b1d['Sex'],_0x25ebd4[_0x5d4e67(0x176)]=_0x1a4b1d[_0x5d4e67(0x12c)],_0x25ebd4[_0x5d4e67(0x139)]=_0x1a4b1d[_0x5d4e67(0x16f)],_0x25ebd4[_0x5d4e67(0x120)]=_0x1a4b1d[_0x5d4e67(0x14b)]);if(_0x40f0ed===0x2||_0x40f0ed===0x3||_0x40f0ed===0x4||_0x40f0ed===0x5){const _0x567f5f=splitName(_0x25ebd4[_0x5d4e67(0x16a)]);_0x25ebd4['surname']=_0x567f5f[_0x5d4e67(0x121)],_0x25ebd4['givenName']=_0x567f5f[_0x5d4e67(0x130)];}if(_0x40f0ed===0x2||_0x40f0ed===0x4||_0x40f0ed===0x5){const _0x10546c=splitName(_0x25ebd4[_0x5d4e67(0x125)],!![]);_0x25ebd4['surnameEn']=_0x10546c['surname'],_0x25ebd4[_0x5d4e67(0x169)]=_0x10546c['givenName'];}if(_0x40f0ed===0x0||_0x40f0ed===0x1){if(_0x25ebd4[_0x5d4e67(0x139)]!=='')_0x25ebd4[_0x5d4e67(0x139)]=_0x2a81ac(_0x25ebd4['birthDate']);if(_0x25ebd4['expDate']!=='')_0x25ebd4[_0x5d4e67(0x176)]=_0x2a81ac(_0x25ebd4[_0x5d4e67(0x176)]);}if(_0x40f0ed===0x2||_0x40f0ed===0x3){if(_0x25ebd4[_0x5d4e67(0x139)]!=='')_0x25ebd4[_0x5d4e67(0x139)]=timeFormat(_0x25ebd4[_0x5d4e67(0x139)]);if(_0x25ebd4['expDate']!=='')_0x25ebd4[_0x5d4e67(0x176)]=timeFormat(_0x25ebd4[_0x5d4e67(0x176)]);}if(_0x40f0ed===0x4||_0x40f0ed===0x5){if(_0x25ebd4['birthDate']!=='')_0x25ebd4['birthDate']=timeFormat(_0x25ebd4[_0x5d4e67(0x139)]);if(_0x25ebd4[_0x5d4e67(0x176)]!==''){let _0x22f10b=_0x25ebd4[_0x5d4e67(0x176)][_0x5d4e67(0x179)]('-');_0x25ebd4[_0x5d4e67(0x176)]=timeFormat(_0x22f10b[0x1]);}}return{'type':_0x40f0ed,'data':_0x25ebd4};}function modifyKeys(_0x1d313d,_0x18bae8={'strCode':a6_0x2dc0b1(0x15d),'strFjbh':a6_0x2dc0b1(0x127),'strGuid':'value','strValue':a6_0x2dc0b1(0x11b)}){const _0x559541=a6_0x2dc0b1;if(!_0x1d313d['length']||_0x1d313d===null)return[];const _0x1aa0d2=_0x1d313d[_0x559541(0x122)](_0x55778e=>{const _0x28940a=_0x559541,_0x4d12a0={};for(const _0x3c1bfe in _0x55778e){_0x18bae8[_0x28940a(0x131)](_0x3c1bfe)?_0x4d12a0[_0x18bae8[_0x3c1bfe]]=_0x55778e[_0x3c1bfe]:_0x4d12a0[_0x3c1bfe]=_0x55778e[_0x3c1bfe];}return _0x4d12a0;});return _0x1aa0d2;}function sliceArray(_0x8f603b,_0x53673f,_0x4d3bc8){const _0x2be901=a6_0x2dc0b1;if(_0x53673f<=0x0)return console[_0x2be901(0x14c)](_0x2be901(0x150)),[];return _0x4d3bc8?_0x8f603b[_0x2be901(0x11f)](0x0,_0x53673f):_0x8f603b[_0x2be901(0x11f)](-_0x53673f);}function findDataByData(_0x1efb37,_0x32fe72,_0x392655){const _0x350981=a6_0x2dc0b1,_0x24e322=_0x1efb37[_0x350981(0x137)](_0x4a817d=>_0x4a817d[_0x392655]===_0x32fe72);return _0x24e322||null;}function splitArray(_0x1bdf4d,_0x552381){const _0x21dfd5=a6_0x2dc0b1,_0x4ab23e=[];for(let _0x1d6619=0x0;_0x1d6619<_0x1bdf4d[_0x21dfd5(0x141)];_0x1d6619+=_0x552381){_0x4ab23e['push'](_0x1bdf4d[_0x21dfd5(0x11f)](_0x1d6619,_0x1d6619+_0x552381));}return _0x4ab23e;}function getProxyType(_0x37a59a){const _0x19fc6c=a6_0x2dc0b1;return Object[_0x19fc6c(0x149)][_0x19fc6c(0x14d)][_0x19fc6c(0x124)](_0x37a59a)['slice'](0x8,-0x1);}let timeout=null;function debounce(_0x58672c,_0x470481=0x1f4,_0x344a40=![]){const _0x166a6e=a6_0x2dc0b1;if(timeout!==null)clearTimeout(timeout);if(_0x344a40){const _0x2d74a3=!timeout;timeout=setTimeout(()=>{timeout=null;},_0x470481);if(_0x2d74a3)typeof _0x58672c===_0x166a6e(0x145)&&_0x58672c();}else timeout=setTimeout(()=>{typeof _0x58672c==='function'&&_0x58672c();},_0x470481);}function urlEncode(_0x3b6ed3={}){const _0x5ec7ac=a6_0x2dc0b1,_0x50b335=[];for(const _0x15c95a in _0x3b6ed3){const _0x6ab6b7=_0x3b6ed3[_0x15c95a];if(!_0x6ab6b7)continue;isArray(_0x6ab6b7)?_0x6ab6b7['forEach'](_0x332982=>{const _0x855bc0=a6_0x5879;_0x50b335[_0x855bc0(0x152)](_0x15c95a+'='+_0x332982);}):_0x50b335[_0x5ec7ac(0x152)](_0x15c95a+'='+_0x6ab6b7);}return _0x50b335['join']('&');}function dateFormat(_0x5dda3c,_0x1fbcaf){const _0xb9ec6c=a6_0x2dc0b1,_0x18f78c=new Date(_0x1fbcaf),_0x2d2c73={'Y+':_0x18f78c['getFullYear']()[_0xb9ec6c(0x14d)](),'m+':(_0x18f78c[_0xb9ec6c(0x11c)]()+0x1)[_0xb9ec6c(0x14d)](),'d+':_0x18f78c[_0xb9ec6c(0x15e)]()[_0xb9ec6c(0x14d)](),'H+':_0x18f78c['getHours']()[_0xb9ec6c(0x14d)](),'M+':_0x18f78c['getMinutes']()[_0xb9ec6c(0x14d)](),'S+':_0x18f78c[_0xb9ec6c(0x156)]()[_0xb9ec6c(0x14d)]()};let _0xec480d;for(let _0x437284 in _0x2d2c73){_0xec480d=new RegExp('('+_0x437284+')')[_0xb9ec6c(0x14a)](_0x5dda3c);_0xec480d&&(_0x5dda3c=_0x5dda3c[_0xb9ec6c(0x12d)](_0xec480d[0x1],_0xec480d[0x1][_0xb9ec6c(0x141)]==0x1?_0x2d2c73[_0x437284]:_0x2d2c73[_0x437284][_0xb9ec6c(0x151)](_0xec480d[0x1]['length'],'0')));;};return _0x5dda3c;}function formatDate(_0x529724,_0x5c6d2d='YYYY-MM-DD',_0x5297e9={'yearTitle':'年','monthTitle':'月','dayTitle':'日'}){const _0x2c9f1d=a6_0x2dc0b1,_0x4d4003=new Date(_0x529724),_0x278b63=_0x4d4003[_0x2c9f1d(0x16b)](),_0x4c004a=_0x4d4003[_0x2c9f1d(0x11c)]()+0x1,_0x57b0ee=_0x4d4003['getDate'](),_0x4b8021=_0x4c004a<0xa?'0'+_0x4c004a:_0x4c004a,_0x58d891=_0x57b0ee<0xa?'0'+_0x57b0ee:_0x57b0ee;let _0x3a0e90=_0x5c6d2d[_0x2c9f1d(0x12d)](_0x2c9f1d(0x13f),_0x278b63)[_0x2c9f1d(0x12d)]('MM',_0x4b8021)[_0x2c9f1d(0x12d)]('DD',_0x58d891);return _0x3a0e90=_0x3a0e90[_0x2c9f1d(0x12d)](/-MM/g,_0x5297e9[_0x2c9f1d(0x136)])[_0x2c9f1d(0x12d)](/-DD/g,_0x5297e9[_0x2c9f1d(0x154)])[_0x2c9f1d(0x12d)](_0x2c9f1d(0x13f)+_0x5297e9[_0x2c9f1d(0x15f)],'')[_0x2c9f1d(0x12d)]('MM'+_0x5297e9[_0x2c9f1d(0x136)],'')[_0x2c9f1d(0x12d)]('DD'+_0x5297e9['dayTitle'],''),_0x3a0e90;}function compareDates(_0x197d3d,_0x29a689){const _0x24b041=a6_0x2dc0b1;_0x197d3d=new Date(_0x197d3d);!_0x29a689?_0x29a689=new Date():_0x29a689=new Date(_0x29a689);_0x197d3d['setHours'](0x0,0x0,0x0,0x0),_0x29a689['setHours'](0x0,0x0,0x0,0x0);var _0x172bf7=_0x197d3d[_0x24b041(0x132)](),_0x35d994=_0x29a689[_0x24b041(0x132)]();if(_0x172bf7<_0x35d994)return-0x1;else return _0x172bf7>_0x35d994?0x1:0x0;}function getDaysBetween(_0x42504e,_0x426d9b){const _0x200be1=a6_0x2dc0b1,_0x159f6e=new Date(_0x42504e),_0x5eb645=new Date(_0x426d9b),_0x3359c0=Math['abs'](_0x159f6e[_0x200be1(0x132)]()-_0x5eb645[_0x200be1(0x132)]()),_0x29bfd8=Math[_0x200be1(0x163)](_0x3359c0/(0x3e8*0x3c*0x3c*0x18));return _0x29bfd8+0x1;}function chineseNumeral(_0x4aaf20){const _0x3af120=a6_0x2dc0b1,_0x51757c=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],_0x872172=['','拾','佰','仟'],_0x574532=['','万','亿','兆'];let _0xda6d82=Math['floor'](_0x4aaf20),_0x57fa91=Math[_0x3af120(0x166)]((_0x4aaf20-_0xda6d82)*0x64),_0x59e0bb='';for(let _0x794fff=0x0;_0xda6d82>0x0;_0x794fff++){let _0x552d3f='',_0x5dd51e=_0xda6d82%0x2710;_0xda6d82=Math[_0x3af120(0x163)](_0xda6d82/0x2710);for(let _0x48aacb=0x0;_0x5dd51e>0x0;_0x48aacb++){let _0x21d787=_0x5dd51e%0xa;_0x552d3f=(_0x21d787?_0x51757c[_0x21d787]+_0x872172[_0x48aacb]:'')+_0x552d3f,_0x5dd51e=Math[_0x3af120(0x163)](_0x5dd51e/0xa);}_0x59e0bb=_0x552d3f+(_0x552d3f?_0x574532[_0x794fff]:_0x574532[_0x794fff]&&!_0x59e0bb['includes']('零')?'零':'')+_0x59e0bb;}_0x59e0bb+=_0x59e0bb?'元':'零元';if(_0x57fa91>0x0){let _0x41efeb=Math[_0x3af120(0x163)](_0x57fa91/0xa),_0x52d0e3=_0x57fa91%0xa;_0x59e0bb+=(_0x41efeb?_0x51757c[_0x41efeb]+'角':'')+(_0x52d0e3?_0x51757c[_0x52d0e3]+'分':'');}else _0x59e0bb+='整';return _0x59e0bb[_0x3af120(0x12d)](/零{2,}/g,'零')[_0x3af120(0x12d)](/零元/,'元');}function getMonthDate(_0x35bce9){const _0x4e6541=a6_0x2dc0b1;(!_0x35bce9||_0x35bce9['trim']()==='')&&(_0x35bce9=new Date()[_0x4e6541(0x16b)]()+'-'+(new Date()[_0x4e6541(0x11c)]()+0x1));let _0x4bd943=[],[_0x920877,_0x3c8a6d]=_0x35bce9[_0x4e6541(0x179)]('-')['map'](Number),_0x38d32e=new Date(_0x920877,_0x3c8a6d,0x0),_0x344b76=_0x38d32e[_0x4e6541(0x15e)]();for(let _0x406b4d=0x1;_0x406b4d<=_0x344b76;_0x406b4d++){let _0x3f59c4=_0x406b4d<0xa?'0'+_0x406b4d:''+_0x406b4d,_0x1f1906=_0x3c8a6d<0xa?'0'+_0x3c8a6d:''+_0x3c8a6d;_0x4bd943[_0x4e6541(0x152)]({'date':_0x920877+'-'+_0x1f1906+'-'+_0x3f59c4,'disable':!![]});}return _0x4bd943;}function getToday(_0x2e7a82){const _0x3b443a=a6_0x2dc0b1;var _0x5d05a4=new Date(),_0x454362=String(_0x5d05a4[_0x3b443a(0x15e)]())[_0x3b443a(0x151)](0x2,'0'),_0x37b615=String(_0x5d05a4[_0x3b443a(0x11c)]()+0x1)[_0x3b443a(0x151)](0x2,'0'),_0x59ea83=_0x5d05a4[_0x3b443a(0x16b)]();return _0x5d05a4=_0x59ea83+'-'+_0x37b615+'-'+_0x454362,_0x5d05a4;}function resetObject(_0x407bff){const _0x3658fe=a6_0x2dc0b1;let _0x5e6deb=JSON[_0x3658fe(0x148)](JSON['stringify'](_0x407bff));for(const _0x1fd35f in _0x5e6deb){if(typeof _0x5e6deb[_0x1fd35f]===_0x3658fe(0x120))_0x5e6deb[_0x1fd35f]=0x0;else{if(typeof _0x5e6deb[_0x1fd35f]===_0x3658fe(0x12f))_0x5e6deb[_0x1fd35f]=![];else{if(Array[_0x3658fe(0x174)](_0x5e6deb[_0x1fd35f]))_0x5e6deb[_0x1fd35f]=[];else typeof _0x5e6deb[_0x1fd35f]===_0x3658fe(0x13e)&&_0x5e6deb[_0x1fd35f]!==null?resetObject(_0x5e6deb[_0x1fd35f]):_0x5e6deb[_0x1fd35f]='';}}}return _0x5e6deb;}function a6_0x2059(){const _0x2bd337=['1520352fnXVuH','PassportNo','Birthday','除数不能为0','trim','test','FamilyName','isArray','Nationality','expDate','12162927NHorJW','EnglishName','split','DateOfBirth','label','getMonth','setDate','CnName','slice','number','surname','map','209tXIriP','call','englishName','max','fjbh','FirstName','4UDujuv','17929368BiPPkw','0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz','ValidDate','replace','EnName','boolean','givenName','hasOwnProperty','getTime','26wGteEy','substring','left','monthTitle','find','220gmMiVB','birthDate','GivenName','Sex','65270oIBBmx','ExpiryDate','object','YYYY','both','length','nationality','sex','BirthDate','function','1079JFuFUN','includes','parse','prototype','exec','Number','error','toString','string','shift','Quantity\x20should\x20be\x20greater\x20than\x200.','padStart','push','toFixed','dayTitle','691923fUfyXv','getSeconds','Birth','8gdpVxp','getMinutes','random','0.00','match','code','getDate','yearTitle','IdNum','getHours','right','floor','5kPhwwb','9329004QLchyb','round','Name','join','givenNameEn','name','getFullYear','Surname'];a6_0x2059=function(){return _0x2bd337;};return a6_0x2059();}function preciseOperation(_0x586df2,_0x10b17b,_0x4b2729,_0x3157b3=0xf4240){const _0x66afd9=a6_0x2dc0b1;if(isNaN(_0x586df2)||isNaN(_0x10b17b))return NaN;if(!isFinite(_0x586df2)||!isFinite(_0x10b17b))return NaN;let _0x29b0a9=BigInt(Math[_0x66afd9(0x166)](_0x586df2*_0x3157b3)),_0x39d48a=BigInt(Math[_0x66afd9(0x166)](_0x10b17b*_0x3157b3)),_0x5507e9;switch(_0x4b2729){case 0x1:_0x5507e9=_0x29b0a9+_0x39d48a;break;case 0x2:_0x5507e9=_0x29b0a9-_0x39d48a;break;case 0x3:_0x5507e9=_0x29b0a9*_0x39d48a;break;case 0x4:if(_0x39d48a===0x0n)throw new Error(_0x66afd9(0x170));_0x5507e9=_0x29b0a9/_0x39d48a;break;default:throw new Error('无效的操作符,操作符应为1、2、3或4');}return Number(_0x5507e9)/_0x3157b3;}function preciseSum(_0x88ebc8){const _0x4b5a7c=a6_0x2dc0b1;let _0x2c5b5a=0x0;for(const _0x1fc67e of _0x88ebc8){let _0xd7119a=0x0;if(typeof _0x1fc67e==='string'){const _0x464e99=parseFloat(_0x1fc67e);!isNaN(_0x464e99)&&(_0xd7119a=_0x464e99);}else typeof _0x1fc67e===_0x4b5a7c(0x120)&&(_0xd7119a=_0x1fc67e);_0x2c5b5a=preciseOperation(_0x2c5b5a,_0xd7119a,0x1);}return _0x2c5b5a;}function getRelativeDate(_0x430f93,_0x3230bc=0x0){const _0x31c47a=a6_0x2dc0b1,_0x1b976d=new Date(_0x430f93);_0x1b976d[_0x31c47a(0x11d)](_0x1b976d[_0x31c47a(0x15e)]()+_0x3230bc);const _0x477304=_0x1b976d[_0x31c47a(0x16b)](),_0x3f7754=(_0x1b976d[_0x31c47a(0x11c)]()+0x1)['toString']()[_0x31c47a(0x151)](0x2,'0'),_0x9faf97=_0x1b976d[_0x31c47a(0x15e)]()[_0x31c47a(0x14d)]()[_0x31c47a(0x151)](0x2,'0');return _0x477304+'-'+_0x3f7754+'-'+_0x9faf97;}function validateFields(_0x17aa95,_0xb0011f,_0x5df424=''){for(let _0x197f1f of _0xb0011f){if(_0x17aa95[_0x197f1f]===_0x5df424)return!![];}return![];}function mergeObjects(_0x4f740e,_0x4735cd){const _0x35d5da=a6_0x2dc0b1;for(const _0x53ae98 in _0x4f740e){_0x4735cd[_0x35d5da(0x131)](_0x53ae98)&&(_0x4f740e[_0x53ae98]=_0x4735cd[_0x53ae98]);}return _0x4f740e;}const formatToDecimal=(_0x53e38f,_0x3e310e=0x2)=>{const _0xc86dd2=a6_0x2dc0b1;if(isNaN(_0x3e310e)||_0x3e310e<0x0)return _0x53e38f;let _0x439a33=Number(_0x53e38f);if(!isFinite(_0x439a33))return _0x53e38f;return _0x3e310e=Math[_0xc86dd2(0x126)](0x0,Math[_0xc86dd2(0x163)](_0x3e310e)),_0x439a33[_0xc86dd2(0x153)](_0x3e310e);};function findKeysEndingWith(_0xb6a3a0,_0x158e68='_qh'){const _0x557c7b=a6_0x2dc0b1;let _0x2827b8=[];for(var _0x15118e in _0xb6a3a0){if(_0xb6a3a0[_0x557c7b(0x131)](_0x15118e)){if(_0x15118e['endsWith'](_0x158e68))_0x2827b8[_0x557c7b(0x152)](_0x15118e);}}return _0x2827b8;}function guid(_0x2758ff=0x20,_0x5060ee=!![],_0x47284c=null){const _0x241d39=a6_0x2dc0b1,_0x108cbb=_0x241d39(0x12b)[_0x241d39(0x179)](''),_0x4ceaf1=[];_0x47284c=_0x47284c||_0x108cbb[_0x241d39(0x141)];if(_0x2758ff){for(let _0x3323c3=0x0;_0x3323c3<_0x2758ff;_0x3323c3++)_0x4ceaf1[_0x3323c3]=_0x108cbb[0x0|Math[_0x241d39(0x15a)]()*_0x47284c];}else{let _0x21ced9;_0x4ceaf1[0x8]=_0x4ceaf1[0xd]=_0x4ceaf1[0x12]=_0x4ceaf1[0x17]='-',_0x4ceaf1[0xe]='4';for(let _0x4233ff=0x0;_0x4233ff<0x24;_0x4233ff++){!_0x4ceaf1[_0x4233ff]&&(_0x21ced9=0x0|Math[_0x241d39(0x15a)]()*0x10,_0x4ceaf1[_0x4233ff]=_0x108cbb[_0x4233ff==0x13?_0x21ced9&0x3|0x8:_0x21ced9]);}}if(_0x5060ee)return _0x4ceaf1[_0x241d39(0x14f)](),'u'+_0x4ceaf1['join']('');return _0x4ceaf1[_0x241d39(0x168)]('');}function trim(_0x46fa5a,_0x26c744=a6_0x2dc0b1(0x140)){const _0x102437=a6_0x2dc0b1;_0x46fa5a=String(_0x46fa5a);if(_0x26c744==_0x102437(0x140))return _0x46fa5a['replace'](/^\s+|\s+$/g,'');if(_0x26c744==_0x102437(0x135))return _0x46fa5a['replace'](/^\s*/,'');if(_0x26c744==_0x102437(0x162))return _0x46fa5a[_0x102437(0x12d)](/(\s*$)/g,'');if(_0x26c744=='all')return _0x46fa5a[_0x102437(0x12d)](/\s+/g,'');return _0x46fa5a;}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.56",
3
+ "version": "1.0.57",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "exports": {