mirror of https://github.com/6dylan6/jdpro.git
7 lines
35 KiB
JavaScript
7 lines
35 KiB
JavaScript
/*
|
|
21 9-12 * * * jd_mkhby.js
|
|
*/
|
|
const $ = new Env('超市下雪本');
|
|
var _0xodf='jsjiami.com.v7';const _0x323492=_0x21ff;if(function(_0x5bdd66,_0xf63096,_0x33e1b3,_0x14e5c7,_0x68b81e,_0x1471fc,_0x4b5caf){return _0x5bdd66=_0x5bdd66>>0x3,_0x1471fc='hs',_0x4b5caf='hs',function(_0x29c3b2,_0x13e845,_0x59533c,_0x35e354,_0xcc3a67){const _0x41d89e=_0x21ff;_0x35e354='tfi',_0x1471fc=_0x35e354+_0x1471fc,_0xcc3a67='up',_0x4b5caf+=_0xcc3a67,_0x1471fc=_0x59533c(_0x1471fc),_0x4b5caf=_0x59533c(_0x4b5caf),_0x59533c=0x0;const _0x2fd684=_0x29c3b2();while(!![]&&--_0x14e5c7+_0x13e845){try{_0x35e354=parseInt(_0x41d89e(0x272,'BH6K'))/0x1*(-parseInt(_0x41d89e(0x309,'gqXf'))/0x2)+-parseInt(_0x41d89e(0x1f1,'m(O['))/0x3*(-parseInt(_0x41d89e(0x1f6,'tcA@'))/0x4)+parseInt(_0x41d89e(0x2a0,'AbZX'))/0x5+-parseInt(_0x41d89e(0x24f,'$hVR'))/0x6*(parseInt(_0x41d89e(0x255,'LK@P'))/0x7)+parseInt(_0x41d89e(0x2ab,'Drg6'))/0x8+-parseInt(_0x41d89e(0x2b1,']5y('))/0x9+parseInt(_0x41d89e(0x26a,'LK@P'))/0xa*(parseInt(_0x41d89e(0x2b3,'m(O['))/0xb);}catch(_0x4347c7){_0x35e354=_0x59533c;}finally{_0xcc3a67=_0x2fd684[_0x1471fc]();if(_0x5bdd66<=_0x14e5c7)_0x59533c?_0x68b81e?_0x35e354=_0xcc3a67:_0x68b81e=_0xcc3a67:_0x59533c=_0xcc3a67;else{if(_0x59533c==_0x68b81e['replace'](/[XkfhWuPRIeJBLMlAwCQV=]/g,'')){if(_0x35e354===_0x13e845){_0x2fd684['un'+_0x1471fc](_0xcc3a67);break;}_0x2fd684[_0x4b5caf](_0xcc3a67);}}}}}(_0x33e1b3,_0xf63096,function(_0x552b89,_0x99b51d,_0xdd93ab,_0x375fa3,_0x385c4f,_0x3ae90c,_0x5a8d9e){return _0x99b51d='\x73\x70\x6c\x69\x74',_0x552b89=arguments[0x0],_0x552b89=_0x552b89[_0x99b51d](''),_0xdd93ab=`\x72\x65\x76\x65\x72\x73\x65`,_0x552b89=_0x552b89[_0xdd93ab]('\x76'),_0x375fa3=`\x6a\x6f\x69\x6e`,(0x14fe3d,_0x552b89[_0x375fa3](''));});}(0x630,0xcbce5,_0x3abb,0xc8),_0x3abb){}const _0x1e9641=$[_0x323492(0x274,']0Re')]()?require(_0x323492(0x303,'cE3U')):'',_0x3ab28f=$[_0x323492(0x2bc,'Af*b')]()?require(_0x323492(0x2c4,'cE3U')):'',_0x400a0b=require(_0x323492(0x267,'nS3J'));let _0x19f109=!![],_0x391a5a=[],_0x318b6d='',_0x523308='';if($[_0x323492(0x262,'1do4')]()){Object[_0x323492(0x26f,'V)$D')](_0x3ab28f)[_0x323492(0x23b,'1do4')](_0x271658=>{const _0x1db011=_0x323492;_0x391a5a[_0x1db011(0x25b,'no]s')](_0x3ab28f[_0x271658]);});if(process[_0x323492(0x2e5,'sAQf')][_0x323492(0x238,'LK@P')]&&process[_0x323492(0x232,']clw')][_0x323492(0x248,'@kgV')]===_0x323492(0x2d8,'^4(D'))console[_0x323492(0x25f,']clw')]=()=>{};}else _0x391a5a=[$[_0x323492(0x1fa,'JBWr')](_0x323492(0x301,'WoeL')),$[_0x323492(0x202,'%9M(')](_0x323492(0x242,'^4(D')),..._0x249725($[_0x323492(0x308,'23&z')](_0x323492(0x26b,'Gyu]'))||'[]')[_0x323492(0x29f,']5y(')](_0x3beffb=>_0x3beffb[_0x323492(0x2a1,'gFTM')])][_0x323492(0x2b9,'J!f8')](_0x12317a=>!!_0x12317a);!(async()=>{const _0x17dc73=_0x323492,_0x571292={'XUQHD':_0x17dc73(0x2ad,'gFTM'),'ePIit':function(_0x2c6d1d,_0x3b372a){return _0x2c6d1d===_0x3b372a;},'ojQFG':_0x17dc73(0x2cf,'b&@*'),'zHWmQ':_0x17dc73(0x2ed,'ET2D'),'KxhEq':_0x17dc73(0x217,'%9M('),'RDtLJ':_0x17dc73(0x285,'J!f8'),'EUOJu':function(_0x2e563d,_0x237c4c){return _0x2e563d<_0x237c4c;},'FYRKA':function(_0x5fe0cf,_0x52f3ed){return _0x5fe0cf(_0x52f3ed);},'WxivI':function(_0x363ccf,_0x3669be){return _0x363ccf+_0x3669be;},'Hmfte':function(_0x3d2228){return _0x3d2228();},'SKbmf':_0x17dc73(0x233,'@kgV'),'UChka':function(_0x362a4f){return _0x362a4f();}};if(!_0x391a5a[0x0]){if(_0x571292[_0x17dc73(0x23e,'3kQ[')](_0x571292[_0x17dc73(0x1f2,'Gyu]')],_0x571292[_0x17dc73(0x206,'sAQf')]))return _0x5c57da[_0x17dc73(0x234,'tcA@')](_0x398ec7),_0x14d458[_0x17dc73(0x2a2,'nezx')](_0x3ed7c9[_0x17dc73(0x294,'UZ0g')],'',_0x571292[_0x17dc73(0x307,'m(O[')]),[];else{$[_0x17dc73(0x304,'23&z')]($[_0x17dc73(0x28e,'&eC9')],_0x571292[_0x17dc73(0x30a,'JBWr')],_0x571292[_0x17dc73(0x2fe,'wPOb')],{'open-url':_0x571292[_0x17dc73(0x2bd,'tcA@')]});return;}}for(let _0x17a7a3=0x0;_0x571292[_0x17dc73(0x225,'V)$D')](_0x17a7a3,_0x391a5a[_0x17dc73(0x2d4,'&eC9')]);_0x17a7a3++){if(_0x391a5a[_0x17a7a3]){_0x318b6d=_0x391a5a[_0x17a7a3],$[_0x17dc73(0x27e,'lJ##')]=_0x571292[_0x17dc73(0x291,'JBWr')](decodeURIComponent,_0x318b6d[_0x17dc73(0x282,'V)$D')](/pt_pin=([^; ]+)(?=;?)/)&&_0x318b6d[_0x17dc73(0x250,'23&z')](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[_0x17dc73(0x251,']0Re')]=_0x571292[_0x17dc73(0x23f,'&eC9')](_0x17a7a3,0x1),$[_0x17dc73(0x219,'EB27')]=!![],$[_0x17dc73(0x30e,'%w2p')]='',$['UA']=_0x400a0b[_0x17dc73(0x297,'3)K6')]?_0x400a0b[_0x17dc73(0x306,'1do4')]():_0x400a0b[_0x17dc73(0x29b,'V@VS')],await _0x571292[_0x17dc73(0x2a3,'23&z')](_0x15024e),console[_0x17dc73(0x240,'@Qp^')](_0x17dc73(0x2e8,'&eC9')+$[_0x17dc73(0x1fc,'^zD&')]+'】'+($[_0x17dc73(0x209,'!N*i')]||$[_0x17dc73(0x2e3,'%9M(')])+_0x17dc73(0x290,']5y('));if(!$[_0x17dc73(0x215,'J!f8')]){if(_0x571292[_0x17dc73(0x2b5,'@Qp^')](_0x571292[_0x17dc73(0x243,'%9M(')],_0x571292[_0x17dc73(0x227,'EB27')])){$[_0x17dc73(0x29a,'Gyu]')]($[_0x17dc73(0x2e9,'wPOb')],_0x17dc73(0x268,']0Re'),_0x17dc73(0x2a6,'%w2p')+$[_0x17dc73(0x2ae,'$hVR')]+'\x20'+($[_0x17dc73(0x236,'^4(D')]||$[_0x17dc73(0x292,']clw')])+_0x17dc73(0x253,'EB27'),{'open-url':_0x571292[_0x17dc73(0x2c5,'X&1L')]});$[_0x17dc73(0x23c,'LK@P')]()&&await _0x1e9641[_0x17dc73(0x1f8,'UZ0g')]($[_0x17dc73(0x223,'WoeL')]+_0x17dc73(0x1ff,'AbZX')+$[_0x17dc73(0x230,'BH6K')],_0x17dc73(0x2da,'3kQ[')+$[_0x17dc73(0x2b6,'3kQ[')]+'\x20'+$[_0x17dc73(0x247,'^4(D')]+_0x17dc73(0x280,'%9M('));continue;}else{const _0x5f09a3=_0xd325a[_0x17dc73(0x258,'!N*i')](_0x14f41b,arguments);return _0x2bffd6=null,_0x5f09a3;}}await _0x571292[_0x17dc73(0x252,'@Qp^')](_0x5a1980),await $[_0x17dc73(0x29e,'#5^r')](0x7d0);}}})()[_0x323492(0x203,'&eC9')](_0x50e933=>{const _0x5696dd=_0x323492;$[_0x5696dd(0x2f2,'%9M(')]('','❌\x20'+$[_0x5696dd(0x25c,'b&@*')]+_0x5696dd(0x264,'b&@*')+_0x50e933+'!','');})[_0x323492(0x300,'1do4')](()=>{const _0x4fbfd5=_0x323492;$[_0x4fbfd5(0x20c,'&eC9')]();});function _0x21ff(_0x147c41,_0x3c34cc){const _0x7e7253=_0x3abb();return _0x21ff=function(_0x510f09,_0x3c98a3){_0x510f09=_0x510f09-0x1ed;let _0x3abbde=_0x7e7253[_0x510f09];if(_0x21ff['mLjwZg']===undefined){var _0x21ff78=function(_0x9c4b88){const _0x14439c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4de99f='',_0x248644='',_0x15f43c=_0x4de99f+_0x21ff78;for(let _0x34ddcc=0x0,_0x28d959,_0x56ee39,_0x28bcc2=0x0;_0x56ee39=_0x9c4b88['charAt'](_0x28bcc2++);~_0x56ee39&&(_0x28d959=_0x34ddcc%0x4?_0x28d959*0x40+_0x56ee39:_0x56ee39,_0x34ddcc++%0x4)?_0x4de99f+=_0x15f43c['charCodeAt'](_0x28bcc2+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x28d959>>(-0x2*_0x34ddcc&0x6)):_0x34ddcc:0x0){_0x56ee39=_0x14439c['indexOf'](_0x56ee39);}for(let _0x4fec24=0x0,_0x5a6a1b=_0x4de99f['length'];_0x4fec24<_0x5a6a1b;_0x4fec24++){_0x248644+='%'+('00'+_0x4de99f['charCodeAt'](_0x4fec24)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x248644);};const _0x1dee0f=function(_0xb4b7c8,_0x3cd6b2){let _0xc92ef9=[],_0xddb812=0x0,_0x467766,_0x3309a3='';_0xb4b7c8=_0x21ff78(_0xb4b7c8);let _0x76a497;for(_0x76a497=0x0;_0x76a497<0x100;_0x76a497++){_0xc92ef9[_0x76a497]=_0x76a497;}for(_0x76a497=0x0;_0x76a497<0x100;_0x76a497++){_0xddb812=(_0xddb812+_0xc92ef9[_0x76a497]+_0x3cd6b2['charCodeAt'](_0x76a497%_0x3cd6b2['length']))%0x100,_0x467766=_0xc92ef9[_0x76a497],_0xc92ef9[_0x76a497]=_0xc92ef9[_0xddb812],_0xc92ef9[_0xddb812]=_0x467766;}_0x76a497=0x0,_0xddb812=0x0;for(let _0x18058f=0x0;_0x18058f<_0xb4b7c8['length'];_0x18058f++){_0x76a497=(_0x76a497+0x1)%0x100,_0xddb812=(_0xddb812+_0xc92ef9[_0x76a497])%0x100,_0x467766=_0xc92ef9[_0x76a497],_0xc92ef9[_0x76a497]=_0xc92ef9[_0xddb812],_0xc92ef9[_0xddb812]=_0x467766,_0x3309a3+=String['fromCharCode'](_0xb4b7c8['charCodeAt'](_0x18058f)^_0xc92ef9[(_0xc92ef9[_0x76a497]+_0xc92ef9[_0xddb812])%0x100]);}return _0x3309a3;};_0x21ff['pysTnd']=_0x1dee0f,_0x147c41=arguments,_0x21ff['mLjwZg']=!![];}const _0x89b00=_0x7e7253[0x0],_0x485e9a=_0x510f09+_0x89b00,_0x50def3=_0x147c41[_0x485e9a];if(!_0x50def3){if(_0x21ff['kzzlXB']===undefined){const _0x497d75=function(_0x12b327){this['gXTbDm']=_0x12b327,this['rTjfmb']=[0x1,0x0,0x0],this['hjLIwj']=function(){return'newState';},this['gBBTsV']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['WXTPiU']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x497d75['prototype']['OzWMNl']=function(){const _0x2502d2=new RegExp(this['gBBTsV']+this['WXTPiU']),_0x5dc112=_0x2502d2['test'](this['hjLIwj']['toString']())?--this['rTjfmb'][0x1]:--this['rTjfmb'][0x0];return this['vIYqaU'](_0x5dc112);},_0x497d75['prototype']['vIYqaU']=function(_0x291f87){if(!Boolean(~_0x291f87))return _0x291f87;return this['mKjsLL'](this['gXTbDm']);},_0x497d75['prototype']['mKjsLL']=function(_0x12fc5e){for(let _0x6f95b7=0x0,_0x3df1fb=this['rTjfmb']['length'];_0x6f95b7<_0x3df1fb;_0x6f95b7++){this['rTjfmb']['push'](Math['round'](Math['random']())),_0x3df1fb=this['rTjfmb']['length'];}return _0x12fc5e(this['rTjfmb'][0x0]);},new _0x497d75(_0x21ff)['OzWMNl'](),_0x21ff['kzzlXB']=!![];}_0x3abbde=_0x21ff['pysTnd'](_0x3abbde,_0x3c98a3),_0x147c41[_0x485e9a]=_0x3abbde;}else _0x3abbde=_0x50def3;return _0x3abbde;},_0x21ff(_0x147c41,_0x3c34cc);}function _0x3abb(){const _0x4c5c6c=(function(){return[...[_0xodf,'PjRBsAwJjifamkkMihAC.XcwVoeImQ.Lvl7uLeBW==','eCkqW4dcOSoFW4r0WPLSW47cLmovWRyC','6k+P5yUj6zUx5OwO5z2ngCoXWRaQiUI/NUwhQoAIREs9GoAxTowgTUwVJbVLU5dORR/PGQ7OV4/OH6tMNzRLJRROJktLJAiTWRy4FCoIW6G','W6OQWRldMs0','zCoxmwJcLmoYfa','W4ZcOSoWWOKXW6fQkSkwWOhdQmo/','W7/cG2b+W4VcPmkvWR7dIXZdJxhcRmof','rMm7h8kw','gNNdMSksWRldOmoDW7ddJqj0qa','xmoEAhzT','W7NcU8k8WQJcSG','W7ZcHYhcJZW','W6ZdMd/dHSkRbsGu','dSkdW6eIza','ASonmxpcLSoP','F1jUr004W67cL8oNWQvQWO3dVIxdSSkveSozhSka','DmkpEefB','zdVcIHf4W4a','ChndsZy','W7hdVYJdKmkC','k8krprKsW6SvAb1BW4xcPa','a8kAu8k2iG','WR4XWQXMW6S','WQdcSrS','W4ldLJBdPmk8','nCkMqmotomk2W63cO8ornZBdOCkH','nZC5ALy','CvCmWPmq','WQ/dGt1IWP7cSSojW6/cKJhdK1q','pmkeW6rRW6K','jHuObq81W7pcImo1W4KxWQ3cLGW','cCkyW4K7za','vhyjl8k0','WPhdHSke','u8ohWPxdOSkeWPq','WPhdHSkeWQlcHs8','xMvPrNO','W4nsWP14W48','W454WP5/W54','hSkOW7HdW4XQW5S6emk9WQdcVLS6W4dcUmkAb2S','oIVdRSkOdW','EGpcUMJdQmo5','CfC1aG','W4FcVCkBW5n2W7qdBmoYWRtdHW','qqBcIHrT','WO7dUHZdK8kU','W5DcW7CliW','5lI55lU16lwJ5yYD','sK7cSmoxCCovWOJdQmkzmmkF','oa84qsq','WOBdUH3dHq','W7BcVCkmWQxcRW','vY/cHert','nIFcHeBORAVMS5pLPjFOTAtVVjhORjdMOi7MNOJNVBVOTPhPH6pORQG','WRmhv8kmfq','W6VdJCojWPxdIW','W7HGW6mppSkTCvq','WP1Ipa','p8kTWO8','DgjTqsS','W6H6WPbOW5K','heZdVIxcTSk7dow9GEwNLUodT+s5OUs5SEI0JowoIq','nCkRW6e0','vWNcVHDM','zfiOadu','WOPrp8oVWOi','W61gWP9/W4a','WPCYWPDZW7VcOqpcQSkpdaX6WRFdPq/cNIFdH8oL','WO3dImkrWPtcKG','WPtdQCkKW59NWRXI','W6eOWP0WimksiHhcL8oEoSkE','W4f8W6e','6kY55yMo6zUB5Owd5z+BW57dJmoZW7yH6lYV5ywC5QkB5l2F5Psu5ywe5A2doow4VoITUoMaLoI/KUIfSEACIEwmJUImGowpSHDbW7tdUSotWP8','W6dcLYusWRpcUJldSYdcIX1TW5JdNmk5W6lcOaFcT8okWONdSmotW53dSmoiWPvOAJNcP8oiW54vlCoLWQJdJbpdGKhdHgqBWOmsW6jEdYZcPCk7W7pdIaHRWOdcOSoJlhRdOu9xWOlcT8oAW6z6WQzmFX7cOmkjhmoGcKRcP8oTW7ddVmoSW6O/g8ojtHddP8oNW6VcMConBqfEW5pcSCokybHdtwpcRKr3CaLxlhzmfSkro8ktj8oNW7hcK8kqFh5LWRpdS8k+WPJdRqJdHJOBWQPGudFdMWzNASowqSkWECkqrmksmGhcIqbdW55/WQDWW4ZcQCkTumkUWPNdRConD8kUW47dHwVdT8kMWQJdUWmUf8osWOuxWQf2','W7DsW6araq','W7xdHaS','tMathW','Amo9bwlcPa','5lQm5lID6lwy5y6n','WP3dQZxdISk5','W5tcUSk/W5fo','D8ohzKu','5lUA5lUa6lAQ5y+e','cCkoW7GDFW','Ag7cRmkojexdI8kuWPm','DqddRc5ykCoI','W6v+b3rEfmkuWOa','xCkqv1zg','nCkMwCosfCk9W4ZcP8omo37dSG','W5LTW4O','bSkavCkPlW','rIJdKa55','CXtcS8oJW4C','W5n7W5NdQSoykCkx','m0D5WRCgWPOoW53dVX8','AatcMeHt','ymoloG','wqRcPwNdHa'],...(function(){return[...['WPLamsLM','WPpdGmkaWOZcUtW4WQS','uHCFafZcN8kUA8k8WQi','WQNdMbGdWOS','WPLvh8o8WPy','WPNdS8kyW7Ds','WOtcTsJdR8o2','5lM65lM35PYr5yMO5zI/6k+M6zwf5PA55O6O5lIb56MY772J6k+15Qg+5P6c6iwu6lUP6k+P5AAK57+y57Q85OkS5yEY','hNtdLCkCW7NcLCoYW7RdNG0','ebxdLCkJba','FJVcImogW5S','ACkOW5mvW70','tmoqw0XV','eamhmYThza1Nla','utddHHHf','bCk5W6jxW7e/WOb8hSoX','gSk9W4m0vG','rbNcHgLdoSkE','WQFdGHGJWPtdTCon','W6hcJtuhWRG','yCoWWPJdNCkP','C0eAdaq','be1hxe/cU+w0LEwKIEAwTCo4chO','W6JdLH7dGCk8','jJ3dVCkpmG','W4P2W7izeCk4Fq','DqFcOgZdTa','g8kVW6S','h8kVW6bCW5G5WPO','imklWQ4fWOG','daabsxShhW','mSk3WO0yWQRcI8kiWOVdVSkxWOdcNHqBWP5vWOVdQSoBW6O','W7BdNG/dMCkxdsSw','WQ7cJHRdLCoy','W4v+dhO','CGNcUMO','WQKkcW','W6XJlLzy','WQ9dW6X5zW','ACohEvnc','nSkSWP4','W7FdTSo4WOJdQG','qCkYxG','BSokrfbE','zCoxewJcLmoYfa','z0DOrfS','44k95O+d56A844gS6k6h5yAe6i6R5y+N5lUb5lQ96lEA5y6j5lQ/WR4eWP/cUmkGEZdNMjZMJAxKVjBNLzTajb5EW6hcH+EyGos7U+s5NEEUPowkLUImQowoPG','CWuNW7Oh','jxpdLrGtW5tcPW','D3xcUq','s8kmW6KEW6e','DmovBa','WPZdIcugWPi','W5HgW4mwpW','W7hdNmowWRpdOq','CSo6rSoyhmkWW6W','WPhdTCkVW7vYWQC','W5xcT8kCW5Hk','W4HWbxO','W5RcRSktWRFcSW','EhivWOGH','W6i0WQBdKdZdRbL9W5dcGhxdHGvoWQmsWPhdKCo3W4imy8kBWOBcNMfRrCkSk37dKMm','h0VdUXOs','bam9sMu','WQeOx8kybq','WQtdG+wLOoI1H8oHWQdLJOlLMlX7W5S','n8kLW6S','aJeLu1S','rGpcUKpdQq','5lQ35lQv5PYN5yIw5zIt6k2M6zwS5PA45O+w5lMO56MI776h6kYL5Qoo5P2n6iwH6lQn6k6J5Asl576L57Ic5Oox5ys/','nZhdOCkelq','WPNcRrNdL8ozaqmL','WQHIeGTK','WPJdTmk+','WOSSWPvRW4e','tLHq','sCorWRJdV8kaWPuS','WOBdSHpdI8kfwCokWOK','A8oOwmoehG','WRTjbc5utCkBvW','FHlcOh/dR8kRcw5TWOVcOqPdeaaqaNiMWQbkeM3cK8kcWR0IWPBcVmokkdzHr8keWRO+EmoHW73dNNi','WPJdRqhdQ8kH','DqBdSaPvjSoZ','WPH+fqv1AG','CvqYaGyV','W7dcUqZcGZa','qr7cVxNdLq','W7dcHmks','WOjOoHHYzW','WQVdTb/dI8kIxCoTWQGx','W75yW6qqfG','FaVdQcPxmq','tYBcICoAW4y','jSoZW6NcVNmNsW','WR3dQbxdKSkfwCokWOK','WRucWRXhW43dMxNdGG','lWfOuteCW5VcJGig','jSoZW4NcVNmNsW','W7/cUGhcOJa'],...(function(){return['WQxcSbJdGmoV','WRKjvSkRjq','W6dcO8k2W5Hf','WRrZW6ldVrRdVbzeW5m','W5L/W5NdRCor','WQbUW5f7CW','W4NcQmkDWQRcPW','rUIVT+MfLoAxH+EyJ+w/QoInVUwnKSkqpqpcIuRcIxVdRSk8WQ1WzKDaWO5mWRJdS3bOWRO5WP9joCkoWPxdK8kuy8k+DCkCjWpdKe8pmetdTXTedq','FsNcTG15','W4q8B1GJySkLqaVdLSkE','xcJcVxxdSW','jfldPdVdI8ocAYXwWO4','W7NdHXZdNSkG','sKndDW8UbK9nnCotErjUWOVcSCoZcKy8','qHNdSInw','WOXmj8or','EuD3uG','W7TYW5ZdQmoH','W5NcSrOtWRC','WPhdTCkV','k2NdLtGm','tuyOWReX','EHRdJcbqia','W4RcU8kwW4TmW6CBAG','oWBLPkVOTjiFiUwnNUwzMmk1WRa','WRJcSs/dKCoLcqaN','FMuqWRi5','W6TkoxbNW4BdT8o8W5Oca0JcVW','44oz5O+q56Ap44cpAmouzLpdLCks5BEJ5AAl5PwV','qCoYk2xcPa','W4a9BfPRsmkPzcJdLa','pbddQ8kokSoDWPddSSkh','W6auWQxdRXG','qxeoe8k1WQybW7ZdNSk4W7TlWQDhWOnYufJdS8ktrSkQfmogjalcUSk7zmoqW57dVhVcKCoyE8kyE3rnW4fxwmoJW7xdINRcG8odWOWivrtdTSowWOZdMZFdLbRcPmozW5pcTX9YWQCxdduUzfFdRmocWRy5ASodWRNdVSkgtxKtWR7cO2dcISkIvSoIW7K6xWSEz8oNW6G7W7pdIJ8','hCkNW4yCBW','vKiJWRe','WP3dJJxdI8ke','tmoVzLn2','W73dQuZcK8odjYSgl1K','a8kSW4DgW7e','WQbZW7TXB8oE','D3ulnSky','W4DHghno','CLK/','wviko8kq','zCkZW44XW6O','W5ldQ8osWO/dVG','WO8jieHR','WRldTSk5W5zy','rv8ZWPe3','tmovBLjPWRO2wq','F8oql27cNCo8','WQFOR6tPHyVML43NMiVLVPNOJQVLJ6CoW47cKXxdLSk4','xsVcTb1w','ueyUWQe8','eSknWPWjWRC','ASo9WRLPubi3r1/cQa','zmoqkxFcGmkHvqxcMSoHdbqAdmonBCkwxCk5W4bLseLREcPMC8k2WOm3kSopySo+WO7dU8kSWODApqtcUG','W6j2W6xdUmo+','Emk3WRhcKfS9sYrD','W5PDWOTUW5i','vCkEy0DN','W4vEWRn/W4u','vCo9bx3cVa','C0u/','WOD5W6nDFq','EaFcUwO','W4ztWP4','W6tcM35MW5NcTSkjWQhcLLG','zsxcOKzJ','WQJdQCkTW4joWRrHfG','ytpcPmoIW6W','gmk9W6fw','WP57fcvD','tatcOMFdJq','W7hcK8kNW6fp','FmoSxG','gmk1W69yW7eXWPLW','eGZdOW','EmkoFgvbywdcM8oyW4C','WPb9kWz4BmkVzdJdKmkxW4hdPYvMkvJcImkpWRRdQsuAWOxcNvVcPHu5kSkOuCoG','t8o0quPR','WQekDCk9','WQpdKcq','vruEdHpdRSkPBmkkWRLDla','FvK3daW+','pSkfyG','W7XZW4VdUSoC','DLzZgvmSWQVdNmkHW7mRWO0','lxddQr4qWOdcVSoSWQ9Zfmkru8kFl8k1W4xcQMD0qahcJv/dO8k5BIxdPxldLL4YWOZcJ8kvWOHKWPb/W6G+bSoBruq/u8o2e0u8kHTTW44TWOxdVKu5ivGaWQv5F8ohW5ZdVSofWQDhD2pcVCkpW4SUWOxcKhhdGKu0ESktomonCrZdMCoIiCkqWQ8RW5NcKJSGdMVcIa','5lMr5lQ16lEf5yYq','tGpcJCozW4S','CqpcOa','WPVdIZ4HWQS','uXtcUNXU','mmoWWOLMWPRdJCksAmkXWR17W5dcKr0'];}())];}())];}());_0x3abb=function(){return _0x4c5c6c;};return _0x3abb();};async function _0x5a1980(){const _0x148d42=_0x323492,_0x58cee8={'BYDWq':function(_0x7d1afc,_0xfb089e){return _0x7d1afc==_0xfb089e;},'LNNjq':_0x148d42(0x23d,'gFTM'),'VRJjL':function(_0x347b32,_0x3fdce4){return _0x347b32!==_0x3fdce4;},'hMjCw':_0x148d42(0x295,'LK@P'),'diPGR':_0x148d42(0x2de,'@Qp^'),'FEfvu':function(_0x39de65,_0x4a5c97){return _0x39de65!==_0x4a5c97;},'mwBka':_0x148d42(0x2f5,'%9M('),'ARlMN':_0x148d42(0x2d9,'%9M('),'TPatK':function(_0x514de5,_0xd76fe5){return _0x514de5!==_0xd76fe5;},'JNizo':_0x148d42(0x218,'gqXf'),'dYXeW':_0x148d42(0x201,'Gyu]'),'LpVQD':function(_0x5c0a0b,_0x199884){return _0x5c0a0b===_0x199884;},'uUEkO':_0x148d42(0x2ec,'no]s'),'eBorH':function(_0x506170,_0x34e76b){return _0x506170==_0x34e76b;},'YoIau':function(_0x21a676,_0x1d2101){return _0x21a676(_0x1d2101);},'cPsSM':function(_0x11c22f){return _0x11c22f();},'VUZFW':_0x148d42(0x2c7,']5y('),'upEjr':_0x148d42(0x2d2,'UZ0g'),'UImsQ':_0x148d42(0x226,'$hVR')};let _0x4b4ce5={'url':_0x148d42(0x2f4,'^zD&'),'headers':{'Host':_0x58cee8[_0x148d42(0x2e6,'tcA@')],'Origin':_0x58cee8[_0x148d42(0x2fa,'^4(D')],'Content-Type':_0x58cee8[_0x148d42(0x271,'lJ##')],'User-Agent':$['UA'],'Cookie':_0x318b6d}};return new Promise(async _0x38e584=>{const _0x162fee=_0x148d42,_0x49d23c={'yStAA':function(_0x369aa1){const _0x2cd87d=_0x21ff;return _0x58cee8[_0x2cd87d(0x26c,'$hVR')](_0x369aa1);},'NyVCv':_0x58cee8[_0x162fee(0x2e6,'tcA@')],'gBhuG':_0x58cee8[_0x162fee(0x2fa,'^4(D')],'wlOpy':_0x58cee8[_0x162fee(0x2b8,'wPOb')]};$[_0x162fee(0x298,'cE3U')](_0x4b4ce5,async(_0x520b8b,_0x57b38c,_0x3b875b)=>{const _0x2830fb=_0x162fee,_0xc4d66b={'dDgbi':function(_0x9417d0,_0x59cfcf){const _0x2357e3=_0x21ff;return _0x58cee8[_0x2357e3(0x1f7,'1do4')](_0x9417d0,_0x59cfcf);},'PenLu':_0x58cee8[_0x2830fb(0x2d7,'Af*b')]};if(_0x58cee8[_0x2830fb(0x29d,'lJ##')](_0x58cee8[_0x2830fb(0x30d,'LK@P')],_0x58cee8[_0x2830fb(0x1ee,']clw')]))try{if(_0x58cee8[_0x2830fb(0x224,'@Qp^')](_0x58cee8[_0x2830fb(0x1fe,'gFTM')],_0x58cee8[_0x2830fb(0x1fd,'7vYu')])){if(_0x520b8b)_0x58cee8[_0x2830fb(0x2dc,'0zUG')](_0x58cee8[_0x2830fb(0x256,'&eC9')],_0x58cee8[_0x2830fb(0x2f8,'J!f8')])?(console[_0x2830fb(0x2c2,'BH6K')](''+JSON[_0x2830fb(0x2ff,'m1yP')](_0x520b8b)),console[_0x2830fb(0x2e4,'LK@P')](_0x2830fb(0x2e0,'&eC9'))):_0x49d23c[_0x2830fb(0x278,'kIpe')](_0x453bf1);else{if(_0x58cee8[_0x2830fb(0x2c6,'V)$D')](_0x58cee8[_0x2830fb(0x21e,'%9M(')],_0x58cee8[_0x2830fb(0x270,'^4(D')])){console[_0x2830fb(0x21a,'m1yP')](_0x3b875b),_0x3b875b=JSON[_0x2830fb(0x288,'ET2D')](_0x3b875b);if(_0x58cee8[_0x2830fb(0x2a7,'m(O[')](_0x3b875b[_0x2830fb(0x20b,'WoeL')],0x0)){}else console[_0x2830fb(0x211,'sAQf')](_0x3b875b[_0x2830fb(0x28c,'gFTM')]);}else try{if(_0xc4d66b[_0x2830fb(0x2d1,'ET2D')](typeof _0x16c276[_0x2830fb(0x2e2,'vy&l')](_0xb671ef),_0xc4d66b[_0x2830fb(0x22d,'&eC9')]))return!![];}catch(_0x43965d){return _0x19d637[_0x2830fb(0x277,'gFTM')](_0x43965d),_0x2d9ce6[_0x2830fb(0x213,'V@VS')](_0x2830fb(0x1f0,'#5^r')),![];}}}else return _0x4ae46a[_0x2830fb(0x200,'!N*i')](_0x4a7cda);}catch(_0x4f7c30){$[_0x2830fb(0x221,']clw')](_0x4f7c30,_0x57b38c);}finally{_0x58cee8[_0x2830fb(0x231,'LK@P')](_0x38e584,_0x3b875b);}else return{'url':_0x2830fb(0x259,'tcA@'),'body':_0x2830fb(0x2a5,'EB27'),'headers':{'Host':_0x49d23c[_0x2830fb(0x28d,']0Re')],'Origin':_0x49d23c[_0x2830fb(0x22c,'X&1L')],'Content-Type':_0x49d23c[_0x2830fb(0x214,'lJ##')],'User-Agent':_0x107de9['UA'],'Cookie':_0xe699a4}};});});}function _0x3f9c60(){const _0x58adba=_0x323492,_0xcc92={'jpmUO':_0x58adba(0x2a4,'b&@*'),'bPfpO':_0x58adba(0x2ee,'@kgV'),'BFiun':_0x58adba(0x29c,'LK@P')};return{'url':_0x58adba(0x208,'sAQf'),'body':_0x58adba(0x26d,'kIpe'),'headers':{'Host':_0xcc92[_0x58adba(0x21f,'vy&l')],'Origin':_0xcc92[_0x58adba(0x20a,'BH6K')],'Content-Type':_0xcc92[_0x58adba(0x2e7,'ET2D')],'User-Agent':$['UA'],'Cookie':_0x318b6d}};}function _0x15024e(){const _0x5e7bb1=_0x323492,_0x52da19={'fbEeG':function(_0xa0e610,_0x4db887){return _0xa0e610===_0x4db887;},'tStIq':_0x5e7bb1(0x286,'23&z'),'CBJpm':function(_0x1cbdb2,_0x4c853d){return _0x1cbdb2===_0x4c853d;},'iHDbE':function(_0x29cd3b,_0x56eb36){return _0x29cd3b===_0x56eb36;},'xCZpy':function(_0x551e03){return _0x551e03();},'jSDHt':function(_0x5e4ee5,_0x4263f6){return _0x5e4ee5!==_0x4263f6;},'ZAziz':_0x5e7bb1(0x1f4,'Drg6'),'dgkqE':_0x5e7bb1(0x2cb,'kIpe'),'RREjQ':_0x5e7bb1(0x239,'&eC9'),'PlVsE':_0x5e7bb1(0x2ba,'b&@*')};return new Promise(_0x4a338d=>{const _0x102f0f=_0x5e7bb1,_0x42e856={'DqCxG':function(_0x36182f,_0x4a107b){const _0x2a1fad=_0x21ff;return _0x52da19[_0x2a1fad(0x2b2,'kIpe')](_0x36182f,_0x4a107b);},'giLOx':_0x52da19[_0x102f0f(0x2df,'JBWr')],'IGiiP':function(_0x5ecec3,_0x21da7b){const _0x1cb864=_0x102f0f;return _0x52da19[_0x1cb864(0x266,'V)$D')](_0x5ecec3,_0x21da7b);},'zdpgP':function(_0x1b44bf,_0x3a2892){const _0x464567=_0x102f0f;return _0x52da19[_0x464567(0x2be,'!N*i')](_0x1b44bf,_0x3a2892);},'fCYgl':function(_0x57ee87){const _0x2b678d=_0x102f0f;return _0x52da19[_0x2b678d(0x289,'V@VS')](_0x57ee87);}};if(_0x52da19[_0x102f0f(0x24b,'3kQ[')](_0x52da19[_0x102f0f(0x2ea,'Af*b')],_0x52da19[_0x102f0f(0x245,'m(O[')])){const _0x136274={'url':_0x52da19[_0x102f0f(0x2ca,'wPOb')],'headers':{'Cookie':_0x318b6d,'referer':_0x52da19[_0x102f0f(0x2c0,'nezx')],'User-Agent':$['UA']},'timeout':0x2710};$[_0x102f0f(0x2a8,'&eC9')](_0x136274,(_0xa9ac51,_0x1f587c,_0x153248)=>{const _0x1efe3e=_0x102f0f;try{if(_0x153248){if(_0x42e856[_0x1efe3e(0x24e,'3)K6')](_0x42e856[_0x1efe3e(0x260,'EB27')],_0x42e856[_0x1efe3e(0x310,']5y(')])){_0x153248=JSON[_0x1efe3e(0x2ef,'%w2p')](_0x153248);if(_0x42e856[_0x1efe3e(0x27a,'vy&l')](_0x153248[_0x1efe3e(0x2f0,']clw')],'1')){}else _0x42e856[_0x1efe3e(0x2eb,'gFTM')](_0x153248[_0x1efe3e(0x2f0,']clw')],'0')&&($[_0x1efe3e(0x235,'7vYu')]=![]);}else _0x39da35[_0x1efe3e(0x211,'sAQf')]('','❌\x20'+_0x1b6947[_0x1efe3e(0x2d5,'gFTM')]+_0x1efe3e(0x22a,'^zD&')+_0x32406d+'!','');}}catch(_0x3b180b){console[_0x1efe3e(0x22b,'wPOb')](_0x3b180b);}finally{_0x42e856[_0x1efe3e(0x20f,']0Re')](_0x4a338d);}});}else _0x1eb825[_0x102f0f(0x20d,'nS3J')](_0x102f0f(0x2fd,'UZ0g')+_0x2b0e25[_0x102f0f(0x24c,'BH6K')]+_0x5d05fe[_0x102f0f(0x299,'UZ0g')]+'\x0a'+_0x1d4133);});}function _0x598d91(){const _0x479010=_0x323492,_0x2cd3d2={'lZCnD':function(_0x55b882,_0x505113){return _0x55b882!==_0x505113;},'phJqL':_0x479010(0x281,'Af*b'),'RyqJa':function(_0x1e8d77){return _0x1e8d77();}};return new Promise(_0x29f8c6=>{const _0x53df14=_0x479010;_0x2cd3d2[_0x53df14(0x212,'vy&l')](_0x2cd3d2[_0x53df14(0x2aa,'JBWr')],_0x2cd3d2[_0x53df14(0x2fb,'3)K6')])?_0x437b29[_0x53df14(0x207,'X&1L')]=![]:(!_0x19f109?$[_0x53df14(0x204,'UZ0g')]($[_0x53df14(0x2fc,'lJ##')],'',''+_0x523308):$[_0x53df14(0x213,'V@VS')](_0x53df14(0x2f9,'kIpe')+$[_0x53df14(0x2d0,'ET2D')]+$[_0x53df14(0x263,'3)K6')]+'\x0a'+_0x523308),_0x2cd3d2[_0x53df14(0x21d,']5y(')](_0x29f8c6));});}function _0x3639c1(_0x435936){const _0x4b1e25=_0x323492,_0x6178b5={'JrFIo':function(_0x48eb68,_0x205266){return _0x48eb68===_0x205266;},'elKEB':function(_0x1e246a,_0xda6291){return _0x1e246a!==_0xda6291;},'AwOec':_0x4b1e25(0x275,'kIpe'),'JORJJ':function(_0x20f432,_0xda5c65){return _0x20f432==_0xda5c65;},'ExcVJ':_0x4b1e25(0x244,'1do4'),'ZaZVe':_0x4b1e25(0x25e,'^zD&')};try{if(_0x6178b5[_0x4b1e25(0x2e1,'#5^r')](_0x6178b5[_0x4b1e25(0x2c1,'@kgV')],_0x6178b5[_0x4b1e25(0x1f9,'wPOb')]))_0x384d6d[_0x4b1e25(0x2ce,'%w2p')](_0x2dfe16,_0x1a5682);else{if(_0x6178b5[_0x4b1e25(0x21b,'Drg6')](typeof JSON[_0x4b1e25(0x237,'cE3U')](_0x435936),_0x6178b5[_0x4b1e25(0x2b4,'lJ##')]))return!![];}}catch(_0x44d018){if(_0x6178b5[_0x4b1e25(0x1ed,'no]s')](_0x6178b5[_0x4b1e25(0x2c3,'!N*i')],_0x6178b5[_0x4b1e25(0x2c3,'!N*i')])){if(_0x5dbf0f){_0x42d006=_0x583c5c[_0x4b1e25(0x261,'V)$D')](_0x1c005d);if(_0x6178b5[_0x4b1e25(0x20e,'WoeL')](_0x44cca1[_0x4b1e25(0x205,'UZ0g')],'1')){}else _0x6178b5[_0x4b1e25(0x293,'m(O[')](_0x4e3530[_0x4b1e25(0x246,'JaL]')],'0')&&(_0x5ef29d[_0x4b1e25(0x1fb,']5y(')]=![]);}}else return console[_0x4b1e25(0x28f,'ET2D')](_0x44d018),console[_0x4b1e25(0x213,'V@VS')](_0x4b1e25(0x22e,'cE3U')),![];}}function _0x249725(_0x345689){const _0x3a4473=_0x323492,_0x21c3f3={'OlqfX':function(_0x4100c7,_0x2d430d){return _0x4100c7!==_0x2d430d;},'wCCQR':_0x3a4473(0x2c8,'UZ0g'),'xxiSc':_0x3a4473(0x279,'Drg6'),'UvPlH':_0x3a4473(0x2f3,']5y('),'qeixH':_0x3a4473(0x26e,'wPOb'),'ETjML':_0x3a4473(0x23a,'^4(D'),'HNean':_0x3a4473(0x2f1,']0Re'),'obJbr':function(_0x354197,_0x502d8c){return _0x354197===_0x502d8c;},'pMnaX':function(_0x52c83b,_0x1016f7,_0x44a6ec){return _0x52c83b(_0x1016f7,_0x44a6ec);},'Qpplb':function(_0xb1f58c){return _0xb1f58c();},'upKuN':function(_0x2d44b3,_0x65a8c){return _0x2d44b3==_0x65a8c;},'ZbvhQ':_0x3a4473(0x27f,'J!f8'),'UzjmX':_0x3a4473(0x27b,'nS3J')},_0x1cd066=(function(){const _0x1684e3=_0x3a4473,_0x5440e5={'MVvbW':function(_0x291745,_0x22c4a5){const _0x64e047=_0x21ff;return _0x21c3f3[_0x64e047(0x27c,']clw')](_0x291745,_0x22c4a5);},'YYXzO':_0x21c3f3[_0x1684e3(0x229,'#5^r')],'HkTJa':_0x21c3f3[_0x1684e3(0x27d,'V)$D')]};let _0x50fca8=!![];return function(_0x1122f2,_0x1c7553){const _0x53408a=_0x50fca8?function(){const _0x3235bb=_0x21ff;if(_0x1c7553){if(_0x5440e5[_0x3235bb(0x269,'J!f8')](_0x5440e5[_0x3235bb(0x28b,'J!f8')],_0x5440e5[_0x3235bb(0x1ef,'BH6K')])){const _0x4aa207=_0x1c7553[_0x3235bb(0x276,'WoeL')](_0x1122f2,arguments);return _0x1c7553=null,_0x4aa207;}else{const _0x3871c5=_0x391ba8?function(){const _0x37125f=_0x3235bb;if(_0x5367e9){const _0x5fd51a=_0xbb3bf6[_0x37125f(0x228,'X&1L')](_0x4036a4,arguments);return _0x45c1bc=null,_0x5fd51a;}}:function(){};return _0xe3c9db=![],_0x3871c5;}}}:function(){};return _0x50fca8=![],_0x53408a;};}()),_0x5312b0=_0x21c3f3[_0x3a4473(0x302,'V@VS')](_0x1cd066,this,function(){const _0x375b30=_0x3a4473,_0x147e30={'YRAvE':_0x21c3f3[_0x375b30(0x305,'nezx')]};if(_0x21c3f3[_0x375b30(0x30c,'&eC9')](_0x21c3f3[_0x375b30(0x222,'3)K6')],_0x21c3f3[_0x375b30(0x2d3,'Gyu]')]))return _0x5312b0[_0x375b30(0x265,'BH6K')]()[_0x375b30(0x241,'LK@P')](_0x21c3f3[_0x375b30(0x283,'sAQf')])[_0x375b30(0x2b7,'!N*i')]()[_0x375b30(0x2d6,'3)K6')](_0x5312b0)[_0x375b30(0x2cd,'7vYu')](_0x21c3f3[_0x375b30(0x22f,'Gyu]')]);else try{return _0x1c7348[_0x375b30(0x254,'Af*b')](_0x124fa4);}catch(_0x28b0be){return _0x32c50a[_0x375b30(0x30b,'J!f8')](_0x28b0be),_0x46aa92[_0x375b30(0x2f6,'!N*i')](_0x21e73a[_0x375b30(0x2f7,'kIpe')],'',_0x147e30[_0x375b30(0x2bb,'V@VS')]),[];}});_0x21c3f3[_0x3a4473(0x25a,'1do4')](_0x5312b0);if(_0x21c3f3[_0x3a4473(0x273,'UZ0g')](typeof _0x345689,_0x21c3f3[_0x3a4473(0x296,'&eC9')])){if(_0x21c3f3[_0x3a4473(0x25d,'23&z')](_0x21c3f3[_0x3a4473(0x1f3,'m(O[')],_0x21c3f3[_0x3a4473(0x2a9,']5y(')])){_0x4a62ec=_0x551358[_0x3a4473(0x216,'b&@*')](_0x80c623);if(_0x21c3f3[_0x3a4473(0x28a,'ET2D')](_0x375978[_0x3a4473(0x2af,'J!f8')],'1')){}else _0x21c3f3[_0x3a4473(0x24d,'#5^r')](_0x510a91[_0x3a4473(0x220,'cE3U')],'0')&&(_0x5c4ac1[_0x3a4473(0x24a,'JaL]')]=![]);}else try{return JSON[_0x3a4473(0x210,'lJ##')](_0x345689);}catch(_0x469d55){return console[_0x3a4473(0x2cc,'%w2p')](_0x469d55),$[_0x3a4473(0x21c,'lJ##')]($[_0x3a4473(0x2dd,'^4(D')],'',_0x21c3f3[_0x3a4473(0x1f5,'lJ##')]),[];}}}var version_ = 'jsjiami.com.v7';
|
|
// prettier-ignore
|
|
function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); class s { constructor(t) { this.env = t } send(t, e = "GET") { t = "string" == typeof t ? { url: t } : t; let s = this.get; return "POST" === e && (s = this.post), new Promise((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } get(t) { return this.send.call(this.env, t) } post(t) { return this.send.call(this.env, t, "POST") } } return new class { constructor(t, e) { this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { try { if (t.headers["set-cookie"]) { const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); s && this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar } } catch (t) { this.logErr(t) } }).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) })) } post(t, e = (() => { })) { if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.post(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) }); else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t)); else if (this.isNode()) { this.initGotEnv(t); const { url: s, ...i } = t; this.got.post(s, i).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) }) } } time(t, e = null) { const s = e ? new Date(e) : new Date; let i = { "M+": s.getMonth() + 1, "d+": s.getDate(), "H+": s.getHours(), "m+": s.getMinutes(), "s+": s.getSeconds(), "q+": Math.floor((s.getMonth() + 3) / 3), S: s.getMilliseconds() }; /(y+)/.test(t) && (t = t.replace(RegExp.$1, (s.getFullYear() + "").substr(4 - RegExp.$1.length))); for (let e in i) new RegExp("(" + e + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? i[e] : ("00" + i[e]).substr(("" + i[e]).length))); return t } msg(e = t, s = "", i = "", r) { const o = t => { if (!t) return t; if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { "open-url": t } : this.isSurge() ? { url: t } : void 0; if ("object" == typeof t) { if (this.isLoon()) { let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"]; return { openUrl: e, mediaUrl: s } } if (this.isQuanX()) { let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl; return { "open-url": e, "media-url": s } } if (this.isSurge()) { let e = t.url || t.openUrl || t["open-url"]; return { url: e } } } }; if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) { let t = ["", "==============📣系统通知📣=============="]; t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t) } } log(...t) { t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) } logErr(t, e) { const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); s ? this.log("", `❗️${this.name}, 错误!`, t.stack) : this.log("", `❗️${this.name}, 错误!`, t) } wait(t) { return new Promise(e => setTimeout(e, t)) } done(t = {}) { const e = (new Date).getTime(), s = (e - this.startTime) / 1e3; this.log("", `🔔${this.name}, 结束! 🕛 ${s} 秒`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) } |