mirror of https://github.com/KingRan/KR.git
24 lines
39 KiB
JavaScript
24 lines
39 KiB
JavaScript
/*
|
||
变量:
|
||
JD_PROXY_OPEN // 代理启用变量,默认不开启(true/false)
|
||
JD_PROXY_TUNNRL // 代理池代理地址变量,默认不开启,仅支持代理池模式(auto-proxy-pool),格式为:http://ip:port
|
||
JD_PROXY_URL // API代理地址变量,默认不开启,仅支持 数据格式:txt;提取数量:每次一个,格式为:http://api.xxx.xxx
|
||
JD_NO_PROXY // 禁止走代理,默认 127.0.0.1,*.baidu.com 需要自行修改
|
||
根据自行需要设定,脚本定时每25分钟自动执行一次
|
||
|
||
9.16更新:不再读取缓存,运行一次写入一次
|
||
9.18更新:优化若干
|
||
|
||
cron:5/25 * * * *
|
||
============Quantumultx===============
|
||
[task_local]
|
||
#代理缓存Token
|
||
5/25 * * * * jd_token.js, tag=代理缓存Token, enabled=true
|
||
|
||
*/
|
||
|
||
const $ = new Env('代理缓存Token');
|
||
var version_='jsjiami.com.v7';const I11iIli1=IIIi1111;(function(lilIII,ll11ii1I,Ii11I1l,i1ii11l,ilI11,II111ll,lIiliiIi){return lilIII=lilIII>>0x2,II111ll='hs',lIiliiIi='hs',function(Ii1IIIIi,l1il1llI,IiIii11,ii11IIiI,iIII1ili){const I1I1lII1=IIIi1111;ii11IIiI='tfi',II111ll=ii11IIiI+II111ll,iIII1ili='up',lIiliiIi+=iIII1ili,II111ll=IiIii11(II111ll),lIiliiIi=IiIii11(lIiliiIi),IiIii11=0x0;const i1llIlii=Ii1IIIIi();while(!![]&&--i1ii11l+l1il1llI){try{ii11IIiI=-parseInt(I1I1lII1(0x1b7,'LghT'))/0x1*(-parseInt(I1I1lII1(0x170,'pK24'))/0x2)+parseInt(I1I1lII1(0x1ce,'&Ay('))/0x3*(-parseInt(I1I1lII1(0x17c,'m]6L'))/0x4)+-parseInt(I1I1lII1(0x23b,'VGB]'))/0x5*(parseInt(I1I1lII1(0x16d,']we)'))/0x6)+parseInt(I1I1lII1(0x1fe,'z%T@'))/0x7*(parseInt(I1I1lII1(0x168,'f#j4'))/0x8)+parseInt(I1I1lII1(0x1cd,'8B2k'))/0x9+-parseInt(I1I1lII1(0x1f3,'DnQj'))/0xa*(-parseInt(I1I1lII1(0x26a,'^ue@'))/0xb)+-parseInt(I1I1lII1(0x256,'Qv]^'))/0xc;}catch(lll1lIii){ii11IIiI=IiIii11;}finally{iIII1ili=i1llIlii[II111ll]();if(lilIII<=i1ii11l)IiIii11?ilI11?ii11IIiI=iIII1ili:ilI11=iIII1ili:IiIii11=iIII1ili;else{if(IiIii11==ilI11['replace'](/[hrukMntqfBUPTlwDLXV=]/g,'')){if(ii11IIiI===l1il1llI){i1llIlii['un'+II111ll](iIII1ili);break;}i1llIlii[lIiliiIi](iIII1ili);}}}}}(Ii11I1l,ll11ii1I,function(ililIl1I,IIilIi11,Ili1ilI,iIl1il1l,II1i1111,i1ii1I1,Il1l1ll){return IIilIi11='\x73\x70\x6c\x69\x74',ililIl1I=arguments[0x0],ililIl1I=ililIl1I[IIilIi11](''),Ili1ilI=`\x72\x65\x76\x65\x72\x73\x65`,ililIl1I=ililIl1I[Ili1ilI]('\x76'),iIl1il1l=`\x6a\x6f\x69\x6e`,(0x13ec6b,ililIl1I[iIl1il1l](''));});}(0x328,0x234d4,ii1lllii,0xcc),ii1lllii)&&(version_=ii1lllii);const iiIiI1lI=$[I11iIli1(0x266,'LghT')]()?require('./jdCookie.js'):'',liiIll1=$[I11iIli1(0x15c,'@VQ3')]()?require(I11iIli1(0x1b0,'pK24')):'',iIlI1Il=require(I11iIli1(0x224,'G0@4')),IlIiiI1I=require('./function/cache/index'),l1iiiI11=require(I11iIli1(0x251,'5sz5')),IlliIi1I=require(I11iIli1(0x1c5,'$WjR')),lI11lIl1=process['env'][I11iIli1(0x19e,'2@u9')]||'25';let lili=parseInt(lI11lIl1)*0x3c*0x3e8;const ilIIil=new IlIiiI1I(lili,__dirname+'/function/cache/token.json'),III11i1=[I11iIli1(0x1c7,'pK24'),I11iIli1(0x232,'H[8T')],IlliIllI=III11i1[IIi1liIi(0x0,III11i1['length'])],I11I1l1=IlliIllI,illllll=process[I11iIli1(0x244,'H]Zk')][I11iIli1(0x1c3,'^8Q#')]||'';let ilIiil=I11iIli1(0x205,']we)');const IIliIili=process[I11iIli1(0x169,'m]6L')][I11iIli1(0x238,'^8Q#')]===I11iIli1(0x14e,'^ue@'),I1l11ii1=process[I11iIli1(0x1df,'H[8T')][I11iIli1(0x26d,'0z4n')],l11l1I11=process['env'][I11iIli1(0x15e,'G0@4')],I1il1Il1=process[I11iIli1(0x1f2,'KlEe')][I11iIli1(0x1da,'pK24')]||'127.0.0.1,*.baidu.com';let lIIIlIIi='',iil1iliI=0x0;const IliiilIl=IlliIi1I[I11iIli1(0x17b,'2@u9')](illllll);$[I11iIli1(0x150,'^ue@')]=IliiilIl?.[I11iIli1(0x1ba,'dUT@')];function IIIi1111(_0x451829,_0x1f15f4){const _0x1da448=ii1lllii();return IIIi1111=function(_0x4d340c,_0x34ae90){_0x4d340c=_0x4d340c-0x13e;let _0x4ad8d9=_0x1da448[_0x4d340c];if(IIIi1111['IRmuUg']===undefined){var _0x22060e=function(_0x56f551){const _0x594416='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2aa6b1='',_0x5291f1='';for(let _0x15f8b5=0x0,_0x5ec205,_0x321059,_0x50936a=0x0;_0x321059=_0x56f551['charAt'](_0x50936a++);~_0x321059&&(_0x5ec205=_0x15f8b5%0x4?_0x5ec205*0x40+_0x321059:_0x321059,_0x15f8b5++%0x4)?_0x2aa6b1+=String['fromCharCode'](0xff&_0x5ec205>>(-0x2*_0x15f8b5&0x6)):0x0){_0x321059=_0x594416['indexOf'](_0x321059);}for(let _0x2b1812=0x0,_0x53f9c8=_0x2aa6b1['length'];_0x2b1812<_0x53f9c8;_0x2b1812++){_0x5291f1+='%'+('00'+_0x2aa6b1['charCodeAt'](_0x2b1812)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5291f1);};const _0x394355=function(_0x1f38de,_0x40c8b0){let _0x57cdb0=[],_0x41dc39=0x0,_0x2530e3,_0x1cf343='';_0x1f38de=_0x22060e(_0x1f38de);let _0x1d7637;for(_0x1d7637=0x0;_0x1d7637<0x100;_0x1d7637++){_0x57cdb0[_0x1d7637]=_0x1d7637;}for(_0x1d7637=0x0;_0x1d7637<0x100;_0x1d7637++){_0x41dc39=(_0x41dc39+_0x57cdb0[_0x1d7637]+_0x40c8b0['charCodeAt'](_0x1d7637%_0x40c8b0['length']))%0x100,_0x2530e3=_0x57cdb0[_0x1d7637],_0x57cdb0[_0x1d7637]=_0x57cdb0[_0x41dc39],_0x57cdb0[_0x41dc39]=_0x2530e3;}_0x1d7637=0x0,_0x41dc39=0x0;for(let _0x3f99d9=0x0;_0x3f99d9<_0x1f38de['length'];_0x3f99d9++){_0x1d7637=(_0x1d7637+0x1)%0x100,_0x41dc39=(_0x41dc39+_0x57cdb0[_0x1d7637])%0x100,_0x2530e3=_0x57cdb0[_0x1d7637],_0x57cdb0[_0x1d7637]=_0x57cdb0[_0x41dc39],_0x57cdb0[_0x41dc39]=_0x2530e3,_0x1cf343+=String['fromCharCode'](_0x1f38de['charCodeAt'](_0x3f99d9)^_0x57cdb0[(_0x57cdb0[_0x1d7637]+_0x57cdb0[_0x41dc39])%0x100]);}return _0x1cf343;};IIIi1111['cMxPoL']=_0x394355,_0x451829=arguments,IIIi1111['IRmuUg']=!![];}const _0x1b6c27=_0x1da448[0x0],_0xdfb133=_0x4d340c+_0x1b6c27,_0x1d319d=_0x451829[_0xdfb133];return!_0x1d319d?(IIIi1111['NDVgdd']===undefined&&(IIIi1111['NDVgdd']=!![]),_0x4ad8d9=IIIi1111['cMxPoL'](_0x4ad8d9,_0x34ae90),_0x451829[_0xdfb133]=_0x4ad8d9):_0x4ad8d9=_0x1d319d,_0x4ad8d9;},IIIi1111(_0x451829,_0x1f15f4);}let IIlIllli=![];if(IIliIili){IIlIllli=!![],require('global-agent/bootstrap');if(l11l1I11){console['log'](I11iIli1(0x230,']we)')),console[I11iIli1(0x245,'YXBE')](I11iIli1(0x18c,'psba')+l11l1I11+'\x0a');let iIi1I1II=/[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/g;global[I11iIli1(0x24a,']we)')][I11iIli1(0x19f,'QU99')]=iIi1I1II['exec'](l11l1I11)[0x0]+','+($['hostname']||'192.168.2.2')+','+I1il1Il1;}else{if(I1l11ii1)global[I11iIli1(0x228,'!2$F')]['HTTP_PROXY']=I1l11ii1,global['GLOBAL_AGENT'][I11iIli1(0x161,'YXBE')]=($[I11iIli1(0x259,']jBS')]||I11iIli1(0x1bc,'8B2k'))+','+I1il1Il1,console['log']('☑️\x20代理池代理已开启:'),console[I11iIli1(0x1d2,'17dG')](I11iIli1(0x1f0,'4Wys')+global[I11iIli1(0x228,'!2$F')]['HTTP_PROXY']+'\x0a');else{const iii1111l=I11iIli1(0x18f,'G0@4')[I11iIli1(0x239,'4RB!')]('|');let liiIlI1I=0x0;while(!![]){switch(iii1111l[liiIlI1I++]){case'0':return;case'1':console[I11iIli1(0x175,'mnic')](I11iIli1(0x24b,'!2$F'));continue;case'2':console[I11iIli1(0x1e1,'!2$F')]('⚠\x20请知晓代理地址仅支持代理池模式(auto-proxy-pool)\x0a');continue;case'3':console[I11iIli1(0x263,'^8Q#')](I11iIli1(0x192,'*wtN'));continue;case'4':console[I11iIli1(0x1e2,'9d#g')]('⚠\x20API地址变量:export\x20JD_PROXY_URL=\x27http://api.xxx.xxx\x27\x0a');continue;}break;}}}}else{console[I11iIli1(0x19a,'DnQj')](I11iIli1(0x22e,'ikG8')),console[I11iIli1(0x176,'$WjR')](I11iIli1(0x25b,'XRF7'));return;}console[I11iIli1(0x1c9,'z%T@')](I11iIli1(0x219,'P[rJ')+lI11lIl1+'\x20分钟\x0a');let IilIlIi1=[],iIllll='';function ii1lllii(){const l11ii11I=(function(){return[...[version_,'hUTDjslrnjtViBLMamLkif.qclowm.lvr7MPkXuh==','xd3cPmkm','rCojs8khzqdcMCkoW4RcPCoaWRxcTrK','CCoUoCkFvIhcSSo6','pqCSWRJcPq','ybqdWOhcLmosW67cS3FdJ8kcWOpcTJzjW5PMCSkZsxKB','wSkRW5tcMW','DEASNEMgREIULa','pmkjW67dGYu','W6hcGvVdM8kr','W5SYDa7cRu9tW7G','cLpcNq','WPxdJ1W','8ysBQvSyku7cPM3MSzFMNA/MIytLI4JOJApLJQlVV67NRRak','4PI+BUs7NUEqMEAXHownKUMfRU+/VCoEW47cNcZdJCoMWQK/cSk4W5XrW5iYF8oShmkoWQJdN8oJiuZdIHtcM8kNzupcPd7cPmoMgCkTW6yXwmo+','FCkYhSoaiuldLa','44gf5O+S56wA44gq6k2K5ywr6i645yYCW7ldUb9XW6xdUmkr55Mb5O2+5l+g55wcl37cGeRcJ0/NM4pKURBKU5/NRj7LIB3OJyVLJOi','iSo7mYZdUK52WP0','W6pcQZBdLuBdV8oyWP8mWQ/dGW','W5e8FhzL','4PM0WQlcG8k8fEwDMowFHEwmIUMfMo++RSk9W7HGWRXFW7D7jWlcVhpdVLFcISkVWQFdV1y5ibDCW6T8WRBcPenJWRVdQmo2B1NcVcGFz8oLWOXrW7u','x8oHW40','4PM0WQlORlxNNiNMMi/KUOVNKOpLN6lLN5FKUBhML7FMJOhKU7pNK5xMSy3MQQlLVzrfj8kwv8odnCkIWOtcL8osFvHTx1VdSYhdJa','jGtdOG','A8oXCG','WRNdMLNcRb0','lNHjF8k/W5uBW4y','WQLZnaSw','W7ldM8o3xmkaF8oaW74mWOC','DCoxW4ldUSknW6OqW7i','wqVdMa3cSshcLWdcVgy','44gB5OYX56wd44k36k6H5ywL6iYZ5yYaW4RcQY3dLexcKSkW55Ix5OYQ5lYJ55EIhCobW4NdQCkLW4tNMlFKUkJKUzlNRyNLIldOJ6dLJ5O','WPPTpuldNHJcI8oOor7dSf0','khhcPhNcSH/cGqxcN0uaW7q','WORcQbOR','W6mlWOevWQ0','aJ/dKCocW4tdJSk9W4vusq','eca/WOG','DSo3kCk4Aa','W4dcQ8opzfi','WRXQhcOp','cfhcHfNcKJ/dSYxcV2uGW5qsWONcKI3cKYRdR1JdM8kI','W7xdSCkM','W5NcMvddQSk8','pcqeWO3cTq','8jcGPCkr','4PMB77UJWQ3KUApNKA3LNkJLNzFKUQtVVBm','k3jztG','cgfammoy','W6XDqhZcRcJdOmovtG','8ysORx0OgSofcSkT5Roz5P+b5OIf5yIp6i2P5y2877+F562ppa','WRTaEqNcQa','4PMsjEs7VEErLUAXGEwmOUMeN++/NCoRxSkdWP8eq3ZcPqaxWPjQWRK2ebLsC8kqW6RcLCkFC8oYzCoQtcRcT08qWO/dOeZcKM3dRSoWha','dvlcJ0i','kxdcGbNdT8kMW6rZWRKxraS','CGq1W6tcNa','WPbGFZ4','W7iRu3HqW6i','WRfofq','B1PRDfGgW6RdVmoHW6e','u8k8W5y','AXrCW73dPG','WQjwW6n/tG','lSoxW592W5WUESoRW6ZdHbPxW6q','t8oYW6/dISkPW7WQW5TZhcZdVbZcLhJdJ8oY','gsenfKaiW6VdVa','8kseKmoV6yAw6k2J5AAx5yg05lI/6icd6kAX5yA5772t6yck5BoO5OYP5lQL5PAZ55IrWOaI5zkZ776d','CmoHW4uQW5TygaXW','xSk8W7tcQXu','nfmLeSoa','BmoKnSkRqW','WONdIuLDaG','WOH2xNFcIq1DW6NdR359Aq','W5pdN8oKyCkg','4PUY77IVWPZdIK/dHUwDQEwFTUs5S+ErVUw1MUw8NUwtRo++Ua','W6hdVCknW5Wy','bLuvdCoG','aHzvW7NcOW','WQDtqHBcIq','kfjQc8o1','WOHPCGRcTW','za8q','W7ZcVhdcIb7dRCorWROvWOxdOCoB','pmkMpSoigG','k3PbhCoWWQFcOw/cIIWGuG','dLfYDCkrW6W2W7tcIfBdVSkv','WR7dV2ZcVJC','W6tdI8k0pLRcNSkP','W7lcPSogyLRdVSkXW4a','W53cOWWBhLxcKG','8yQyQCoIWOS5hmorWR3dVmorWRBcOfhcG2tORBtMSjNLPzZOTApdG+kEV8km6ls+5yYL5Psw5PAW','FmoQmmkRuG','dutcPXZdNgfkW5e','WP5goty/','eKm4WPlcK8kVWQJdSCk0W7uR','WO9QvJ4','cfpcVr7dL8kjW5m','DSk+WRezWR4','jCkYWROXtCoYW6rp','WQfpaIWNW6e3WPO','ocNdItxcS8k/WO0MaeddMSkV','WQLvW4L2BKiadXVdQ8kQBmkt','W7tcKaFcP8kl'],...(function(){return[...['kCkXCZJdQdmyW7C3gCkpWO7cP8kEW4JcNmk0nSo1','WONdLuHm','WRRdP3FcNuRcPSkWWRqrWOxcQComiSkOxfCmeCkMW7WKk8owWOlcLwZdJCkZfG','WO1bW5hdRG','FqOM','BCozW4pdVCkgW54pW7S','mCkOjNVdHciLW5O8eq','WQTXdbOT','euO+WOJcLSkUWQBcQmomWPLZs2u','rxvNWO7cU0RdMtml','wGRdNa7dI2BcHcBcIeuSW7m','tSkcW5ZcRX8','fcm6WPy','m8kOlq','W5BdOmoe','FY8kd8oLWPe/W7FcL3JdV8k3','fL/cTrZdH3nKW5VdKvW','8k25H8kTW6CoBepdSqjwmSo3WO0qtEITJEAZOEwKNEI3Mx3INRlcKvJdGIldOvmtWQLSWQvcW6aoWRFcSa','kb3dG8k+dG','W5iZWOW7WRq','imkgW6NdKY4','WPJdL1ZcOZ/dLSopWOCUWRtdNG','W6RdRSkTW78J','i8oQisJdOfniWP3cJCogfrBdHG','DWWVW6BcMfGt','EZ/cH8kHyG','W6NdKCk2','iZJdPmknf8oyfsHMW5O','W5uqWQO','jCobW7C','W5elWRKoWO3dVh10W6tdImopymkuWPFdU8oQW6RdOHajWOTmgKbbWR9WEgbOgmoWbCksaNtdSmompmoNW5RcIaRcG0BdRc/cTKPhW4xdKIBdHCodDSkutYa','Fdq0WQVcSq','tqeEWQhcKq','c8o7W77cK10','WOzoW4O','a1lcJa','WP3dGu9f','gha6fSoP','v8k7W5FcIsm','4PIm77UciEw/N+wkPUAGT+A1OowkI+w2N+w8U+wrJUs5O+EqIo++Oos/T+ACJEwJU+whREs6SoEqMowFH+wDJUwnMEMhQG','f1lcGwhcOmocW6VcJmkWWOrSW4e','j8kohG','BHCIWRtcQq','4PUf77QnW6lKUi/NKzRLNzJLN4xKU6JVVO0','dHtdLCk+','WOPUkW','dSoQWOddIbFcNs/dRSk+W6O','psKzWPFcMG','W4xdP8k2fG8','W5yAAu97W5RdS8kOW6pdRW','rXvKW5K','xgz0W4xdHWlcVfrmFq','k2rPtCkB','phhcQq','WRnwzJFcRW','eWRdOq','bej6l8klW4tdKq','j1D2WR/dGqu8kK0OyZC','4PQR77QaWOpKU6/NK5NLNj/LN5lKUOVVVy4','8j6iNCkqW67cJColnSoXrZamWOGyWPzN6k255Ro85AwE6lA8W4i','W7iHwG','W4G6WR0yWOW','W7RcU8oVrKO','W67dTCkKotO','i8kvdCowjrFcQ8o5W4xcVIBdHr3dMSotWPddUxlcOYddMmobW7pcJCokW4BdOgbuBZO','BCoDWOO2C8kOaNi','jNhcRGldHa','vIKoW4xcTxG1kvigyHu','tJpcSSkgqa','nmkpWOlcP8ozWOLAWRaEE1a','8yo6RJ43rmkoWOtcQmoLq8kDW5a3zXxMJyRLJQFOVPZLMjZLVlRLU45o4P+vzG','WR/dSNFcJHG','WOXiW5RdOeC','W57dRSoxBq','CSkiWOuVWOX0iG','aLpcQa','W4dcJ1tdJ8kT','WOfPpHC7W48cWQy','W6ddKmkN','mqiZiq','vs16W6JdOa','jwbbkmoD','D8khW6xcQbNcGZpdHSkOW50','i1FcTXBdSq','4PMF77IuixbjWPtdGmog57+v5AYq5Pwd6zEfWOC','me4siSo8FwO','ksvOW5pcHW','f8krfMeI','WP7dHu9acmkEW4K','W4FdKSkNjaC','nSkhWQ0eqG','xmo1fCk+va','WRNcJZGpdW','WR3dSCk0WQm+dSoWWQhdTmovWQZdR2i','kb3dGIlcUW','WRPobG','CmkiWO4','gIm5','ur95W4ZdJCo3W6pcUG','W74ZWOi8WR/cIG0AW4ldVCoOgG','WOTuW4JdU2ZcTxBcMCoYhCojCmoTW49eW5XUWQyVW54GWOu','8kQGOCoP5BAZ6k+z5y2k5P675zYA576N5A+qW6xdOHddKCkIWQe','W4xcNCoQu2u','gv9pFCkf'],...(function(){return['oSkKWQ4','4PUmfUAJJUA0Low/OUwkPUARN+w8OEAFP+w9QEwrGEs7PEEqQE+9NUwnMEwWMUMdK+whLa','oCkXifeIjq','4PMA77UUwCoNbMtLNRtLNPBKUyRNK4lLTRdLVR/LKipVV60','hCkLWPSxvW','W6tdI8k0pLRcNSkPWPldQCo5WQ0grmknW7bZWOJcVqBdICkUkadcSwi','WQDjAaNcTMXVW5q','pCkJWQ0wya','rI8OWQhcTCkNWPNdHq','eSoroINdHa','4PUm77IUuUs7O+EsMEwDPowELos6K++9Pa','WQLvW4L1DuOwcq/dTSk7ECku','oM1rxSkK','W4pdImkHaGu','ymoJEqnUEmkQW7ddV8oLW4VcMa','WPNMRz7PHidORQS','8lI5Gb3MNlpLNjtNVPNLR7NcS8ouW53cIs3MIQ/LIi3cS38','rSouyGBdPW','EmkFW77cUGFcNZ7dImk3W4ePW7e','8kcRJSkMemkxWOFcHGGSymo6W5SicxJORQ7MS4tPLkVORBBcMokCSCos56665zc/6i2l5y2v5AE06lAl','jv85d8ox','WRfQCtTiWP/cMSkdWRW','WQVdP0/cLdi','W7SGsW','u8ooaq','W6lcN3NdH8kV','c8keaCoJgq','W7ZcUKFdPSk5','W60sWQWOWOG','dmkTnSoKf2hdM8kxW67cGqZdQW','4PIz77MWW63LVk3LIRpMOiBMTjNLIAVLTBFLVRJLKONKUQ3NK7/VVRxKV5FMNQtLOQ/LHjJKUPZNKAlLNPtLNA/LJQ7PH6y','f8kKiCo7ja','khjTuepcJq','W7pcHCo7F14','WQb1W5HJvq','W485WPWkWOS','WOldOMFdUCkfWPrFW5icvu7dQ3ZdI8ouu8odhtrW','WOH0W69w','WPBdINdcIHe','zZmcW73cOW','rWhcQmk+yG','WQVcRSo3WQbGjmodW6ZcGmoHW7ldUmkK','WOHgW79qW4/dSgP1WRFcLSku','WPPXAIaBW5xdVW','w8oHW5K1W5XCbIm','tHT6','4PUpv+w8OEwsTEs4QoEtOowoT+MgM+++TCoIztjhA8kubdRcKt7cOfVcLM8+WQy4ySkTWRK7xstdPSkzW5bcxIC','AmoNBaJdSq','WOz/W6a','WOT+W6jJs2qP','8kQkL0aMW7zTw8kLW7RdSH46W43dJCos6k2c5Rkz5AAi6lwpqEkEJCoc5O6w5yYO6l+65zQz5lIG56Q5','oWe1','W53dQSoxAmk+w8oZ','W5BdOSoXzSk6','WO9+W7e','8kIGSwO','l8ocW7/cIgK','WOxcTZuJiKa','W40qWQyBWPa','i8o4aZhdLW','8kQaOM4','mfroW4pcRCkPWPJdHwtdPG','DbBcN8kXyfjoW5C','j2tcRH3dOW','gLRcKxpcS8obW6ZcLmkOWPv3W5S+zJ8','WQJcNqGRjW','umopf8kcFG','WRvoaxtdStxcUCom','4PMb77IrW67KU4dNK6FMS67KUzFNK4VLTixLV4hLKi3VVO8','WO/cQXqNl0a','WO9pW5S','W63cVxpdNSkz','WPFdJ1DldSkdW4y','zmoXEZVdOYiyW4SQgW','W5ZcONldUa','xYOEW5FcPNSYmq','WR7dVgq','WR3cHSoYyfhcH8k+W5FcQCo5W7q','ixXLf8oE','8kwRH8kqWROTW7WtcfxdPKpdKhDNW7lLN4FLPzhNK6/ORiRMSApML6BPGAxLIQRKU5xPLixORRm','k8ktcCoXja','W6VdMSk0kGhdHCoN','zSonjZRdOK9v','xCk8W5xcGq','W63cQwtdUSkV','WP91kq','FbicWPq','pCkGoKzSySoF','ya8eWOxcICkjWQZdUq','WRhdVgFcIa','xmooaSkQ','o8k4WQ4','awNcVGVdLa','WPrPCt9t','WOFdV3BcQry','W6KBWRWpds9KEUw9KowLSUodU+s6Kos7HUI1SowmOq','Db0KW6q','jNjrg8o0WQNcQ2K','EaJcRSkHyG','khPTv0m','fHBdIbJcLSkw','jKGbnCoMAKZcPCo1W7i','WPDLlvddJrVcJmoWiq7dReu'];}())];}())];}());ii1lllii=function(){return l11ii11I;};return ii1lllii();};if($['isNode']()){Object[I11iIli1(0x252,'^8Q#')](iiIiI1lI)[I11iIli1(0x1be,'6no7')](iI1I1ilI=>{const liil1l1=I11iIli1;IilIlIi1[liil1l1(0x1c6,'&Mnm')](iiIiI1lI[iI1I1ilI]);});if(process[I11iIli1(0x25d,'^8Q#')][I11iIli1(0x26b,'nBZ%')]&&process[I11iIli1(0x1e7,'fEL(')][I11iIli1(0x159,'ikG8')]===I11iIli1(0x15b,'P[rJ'))console[I11iIli1(0x1d3,'ozyF')]=()=>{};}else IilIlIi1=[$[I11iIli1(0x261,'ozyF')](I11iIli1(0x1b6,'MV1H')),$[I11iIli1(0x21d,'&Mnm')](I11iIli1(0x242,'*wtN')),...jsonParse($[I11iIli1(0x149,'H[8T')](I11iIli1(0x1a1,']jBS'))||'[]')[I11iIli1(0x25a,'8B2k')](lIiIli1I=>lIiIli1I[I11iIli1(0x272,'LghT')])][I11iIli1(0x24d,'P[rJ')](iIiI1iIl=>!!iIiI1iIl);allMessage='',message='',!(async()=>{const lI1iilIl=I11iIli1,lliI1l={'SiuLs':lI1iilIl(0x17d,']we)'),'BLRvm':'https://bean.m.jd.com/','jjdSE':function(ilIII1ll,I11I1IIi){return ilIII1ll<I11I1IIi;},'UluDf':function(iliIiiI1,lll1i1l){return iliIiiI1(lll1i1l);},'MJkHo':function(liIl111,li1l1I1I){return liIl111+li1l1I1I;},'qbfma':function(IiIll11l,l1Il1il1){return IiIll11l!==l1Il1il1;},'lloSG':function(iiliiiI1,lII11iI){return iiliiiI1==lII11iI;},'vFQtu':function(i1lIiiII,iI1ii1il){return i1lIiiII%iI1ii1il;},'MLZWz':function(IliiIlII){return IliiIlII();},'KKrWH':function(Iilil11i,lIlIi1I){return Iilil11i+lIlIi1I;},'vMqvt':function(ll1liI,iliIIl1i){return ll1liI+iliIIl1i;}};if(!IilIlIi1[0x0]){$[lI1iilIl(0x22d,'PPNI')]($[lI1iilIl(0x1c8,'fEL(')],lliI1l[lI1iilIl(0x1aa,'p7a!')],lliI1l[lI1iilIl(0x24e,'MV1H')],{'open-url':lliI1l[lI1iilIl(0x231,'ak1t')]});return;}for(let il1II1I=0x0;lliI1l[lI1iilIl(0x1d9,'psba')](il1II1I,IilIlIi1['length']);il1II1I++){iIllll=IilIlIi1[il1II1I],iIllll&&($['UserName']=lliI1l[lI1iilIl(0x156,'pK24')](decodeURIComponent,iIllll[lI1iilIl(0x1ab,'XRF7')](/pt_pin=([^; ]+)(?=;?)/)&&iIllll[lI1iilIl(0x20c,'pK24')](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[lI1iilIl(0x21f,'ak1t')]=lliI1l[lI1iilIl(0x146,'ikG8')](il1II1I,0x1),message='',$[lI1iilIl(0x196,'*wtN')]=0x0,$[lI1iilIl(0x25e,'^8Q#')]=![],$[lI1iilIl(0x212,'KlEe')]='',console['log'](lI1iilIl(0x157,'^8Q#')+$[lI1iilIl(0x1c4,'Wn#]')]+'】'+($['nickName']||$['UserName'])+lI1iilIl(0x1f8,'&Ay(')),l11l1I11&&(lliI1l[lI1iilIl(0x185,'MV1H')]('zVylf',lI1iilIl(0x268,'5$S7'))?(lliI1l[lI1iilIl(0x1b4,'pK24')](lliI1l[lI1iilIl(0x250,'!2$F')](iil1iliI,0x14),0x0)&&(await lliI1l[lI1iilIl(0x167,'5sz5')](IliI111i),global[lI1iilIl(0x23f,'DnQj')][lI1iilIl(0x17a,'ozyF')]=lliI1l[lI1iilIl(0x162,'&Ay(')](lI1iilIl(0x258,'*wtN'),lIIIlIIi)),console[lI1iilIl(0x213,'H[8T')](lliI1l['vMqvt'](lI1iilIl(0x269,'VGB]'),lIIIlIIi)),iil1iliI++):III11IiI[lI1iilIl(0x183,'&Ay(')]=!![]),await lliI1l[lI1iilIl(0x1ea,'p7a!')](I1ilIIi1));}})()[I11iIli1(0x1b1,'17dG')](ililll1l=>$['logErr'](ililll1l))[I11iIli1(0x1dd,'z%T@')](()=>$[I11iIli1(0x1f7,'8B2k')]());async function I1ilIIi1(){const liiI1lI1=I11iIli1,IllI11Ii={'Fsiwc':function(ll1llIi1,iiliIl11){return ll1llIi1(iiliIl11);},'BUntF':liiI1lI1(0x187,'m]6L'),'HNirx':'☑️\x20API地址代理已开启:','tTCZV':function(li1il1ii,l1i11ii){return li1il1ii+l1i11ii;},'aoESS':function(II1IIiil,IIliIil){return II1IIiil+IIliIil;},'ETUcp':'☑️\x20代理地址为:','onqMz':liiI1lI1(0x257,'!2$F'),'piryk':liiI1lI1(0x271,'0z4n'),'BEXWt':liiI1lI1(0x1ec,'5sz5'),'vecCN':'⚠\x20请知晓代理地址仅支持代理池模式(auto-proxy-pool)\x0a','npcMX':'⚠\x20代理池变量:export\x20JD_PROXY_TUNNRL=\x27http://ip:port\x27','IhVJL':'⚠\x20API地址变量:export\x20JD_PROXY_URL=\x27http://api.xxx.xxx\x27\x0a','fwUEN':liiI1lI1(0x1d7,'M4tU'),'IVOwl':function(lI1iillI,l11i1){return lI1iillI==l11i1;},'HckPV':function(i1III1li,llI1l1Ii){return i1III1li==llI1l1Ii;},'cTsqP':'DsOXE','NUuOm':liiI1lI1(0x1fd,'ikG8'),'CZzjv':function(Il11iII1,Il1I1Ii){return Il11iII1+Il1I1Ii;},'HgOeX':liiI1lI1(0x264,'17dG'),'ZPQnK':function(lii1Iill,ii1lilII,Il1IilII){return lii1Iill(ii1lilII,Il1IilII);},'AprRr':function(IilIIlll,Iil1li1I,lIllli1I){return IilIIlll(Iil1li1I,lIllli1I);},'AdevD':function(llIl111l,iiIIlill){return llIl111l===iiIIlill;},'JhZbX':liiI1lI1(0x211,'5sz5'),'nIDNR':function(Iiili1I,ii11II1){return Iiili1I!==ii11II1;},'mUDDh':liiI1lI1(0x204,'H[8T')};try{let ii1IllII='';$[liiI1lI1(0x214,'QU99')]=![],$['nologin']=![],ii1IllII=await i1I1IIi(iIllll,ilIiil);if(!ii1IllII&&!$[liiI1lI1(0x140,'&Mnm')])for(let i111IIl=0x0;i111IIl<0x14;i111IIl++){if(l11l1I11){if(IllI11Ii[liiI1lI1(0x1ef,'^ue@')]!==liiI1lI1(0x19c,'^8Q#')){if(IllI11Ii[liiI1lI1(0x216,'ikG8')](i111IIl,0x4)||IllI11Ii[liiI1lI1(0x184,'YXBE')](i111IIl,0x8)||IllI11Ii[liiI1lI1(0x24c,'17dG')](i111IIl,0xc)||i111IIl==0x10||IllI11Ii['HckPV'](i111IIl,0x14)){if(IllI11Ii[liiI1lI1(0x220,'YXBE')]===liiI1lI1(0x18e,'ikG8')){IiliIilI=!![],IllI11Ii[liiI1lI1(0x179,'KlEe')](i1Il11I,IllI11Ii[liiI1lI1(0x1e6,'9d#g')]);if(ll1III1){l1iIlil1[liiI1lI1(0x144,'pK24')](IllI11Ii['HNirx']),IIi1llIi['log'](IllI11Ii[liiI1lI1(0x22b,'MV1H')](IllI11Ii[liiI1lI1(0x1a2,'DnQj')](IllI11Ii['ETUcp'],liI1i1l),'\x0a'));let lIiIllIl=/[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/g;l1lilI[liiI1lI1(0x17f,'m]6L')][liiI1lI1(0x233,'f#j4')]=lIiIllIl['exec'](Ili1llI1)[0x0]+','+(IlIiIlI1[liiI1lI1(0x1ca,'2@u9')]||IllI11Ii[liiI1lI1(0x26f,'YXBE')])+','+lIIl1III;}else{if(ii1ll1ll)l1lIIl1[liiI1lI1(0x194,'6no7')]['HTTP_PROXY']=lIIIIil,IIiIliIl[liiI1lI1(0x1c2,'@VQ3')][liiI1lI1(0x143,'z%T@')]=(lil11iIi['hostname']||'192.168.2.2')+','+iIllI1ll,lllliIiI['log'](IllI11Ii[liiI1lI1(0x1a5,'&Mnm')]),lIiiiIIl[liiI1lI1(0x1c9,'z%T@')](IllI11Ii[liiI1lI1(0x148,'17dG')](IllI11Ii[liiI1lI1(0x1e4,'^ue@')](IllI11Ii['ETUcp'],iIli1IIi[liiI1lI1(0x1b3,'4RB!')][liiI1lI1(0x1e0,'M4tU')]),'\x0a'));else{III111i[liiI1lI1(0x1ee,']we)')](IllI11Ii[liiI1lI1(0x21c,'VGB]')]),il1iI11[liiI1lI1(0x13e,'fEL(')](IllI11Ii[liiI1lI1(0x166,'psba')]),Ill1Il1['log'](IllI11Ii['npcMX']),iiIIllIi['log'](IllI11Ii['IhVJL']);return;}}}else console[liiI1lI1(0x173,']jBS')](liiI1lI1(0x1a0,'6no7')),await IliI111i(),global['GLOBAL_AGENT'][liiI1lI1(0x1f6,'H]Zk')]=IllI11Ii[liiI1lI1(0x1ae,'f#j4')](IllI11Ii[liiI1lI1(0x1ac,'f#j4')],lIIIlIIi),iil1iliI=0x0;}console[liiI1lI1(0x1e8,'m]6L')](IllI11Ii['CZzjv'](IllI11Ii['HgOeX'],lIIIlIIi)),console[liiI1lI1(0x188,'Qv]^')](liiI1lI1(0x16b,'LghT')+IllI11Ii[liiI1lI1(0x1a3,'p7a!')](i111IIl,0x1)+liiI1lI1(0x165,'p7a!')),ii1IllII=await IllI11Ii[liiI1lI1(0x1fb,'f#j4')](i1I1IIi,iIllll,ilIiil),ii1IllII&&($[liiI1lI1(0x180,'LghT')]=!![]),iil1iliI++;}else li1IilI1['flag']=!![];}else{if(I1l11ii1){console[liiI1lI1(0x1d2,'17dG')](liiI1lI1(0x190,'KlEe')+IllI11Ii[liiI1lI1(0x207,'dUT@')](i111IIl,0x1)+liiI1lI1(0x23c,'!2$F')),ii1IllII=await IllI11Ii[liiI1lI1(0x13f,'5sz5')](i1I1IIi,iIllll,ilIiil);if(ii1IllII){if(IllI11Ii[liiI1lI1(0x14c,'5sz5')](IllI11Ii[liiI1lI1(0x18a,'&Ay(')],liiI1lI1(0x1d8,'!2$F')))return I11lI1il[liiI1lI1(0x265,'9d#g')](iIIilIi1['random']()*(lilIiii-iIIliil))+lI11il11;else $[liiI1lI1(0x1bd,'f#j4')]=!![];}}}if($['flag'])break;}}catch(Ili1lI1i){IllI11Ii['nIDNR'](liiI1lI1(0x234,'ak1t'),IllI11Ii['mUDDh'])?iIlll1II['log']('🚫\x20getToken\x20API接口返回异常\x20➜\x20'+lllIiII['stringify'](i11lliii)):console[liiI1lI1(0x225,'&cFL')](Ili1lI1i);}}function lllllIIi(l11i1lil='',l1liIi1){const iIiil1i=I11iIli1,l1ii11ll={'DqQfX':'☑️\x20代理池代理已开启:','CdNFr':function(lI1III1l,iiII){return lI1III1l+iiII;},'PwFjR':iIiil1i(0x1ff,'ozyF'),'MkxMG':iIiil1i(0x23a,'H[8T')};let IlI1Iii=l1liIi1[iIiil1i(0x164,'DnQj')](l11i1lil);if(IlI1Iii&&IlI1Iii[iIiil1i(0x22f,'VGB]')]>0x0){if(l1ii11ll[iIiil1i(0x218,'6no7')]!==l1ii11ll['MkxMG'])llii111l[iIiil1i(0x1b2,'ikG8')]['HTTP_PROXY']=iiIliil1,IiiI1I11[iIiil1i(0x208,'z%T@')][iIiil1i(0x1c1,'KlEe')]=(IIlIl1l['hostname']||iIiil1i(0x20a,'2@u9'))+','+II1lili1,iII1III[iIiil1i(0x226,'&Ay(')](l1ii11ll[iIiil1i(0x1cc,'KlEe')]),i1i1l11i[iIiil1i(0x1fa,'0z4n')](l1ii11ll[iIiil1i(0x24f,'^8Q#')](l1ii11ll[iIiil1i(0x248,'5sz5')]+IillII1i[iIiil1i(0x23f,'DnQj')][iIiil1i(0x17a,'ozyF')],'\x0a'));else return IlI1Iii[0x0]['trim']();}return'';}function lI11I1ii(ilIIIlI,IiII111){const iliiI111=I11iIli1,lIiIliII={'lmRje':function(lliII11I,l1lili11){return lliII11I<=l1lili11;}};let li1i1l1I=new Date()[iliiI111(0x178,'4RB!')]();if(li1i1l1I>=0x0&&lIiIliII[iliiI111(0x262,'ozyF')](li1i1l1I,0x17))return ilIIIlI;return ilIIIlI+'_'+IiII111;}function IIi1liIi(iIil1liI,l1I1il){const l1llI1I=I11iIli1,Ili1iI={'ZtLkS':function(II1lIlIi,Il11llIl){return II1lIlIi+Il11llIl;},'EmGTG':function(ilIII1iI,iI11I1Il){return ilIII1iI*iI11I1Il;}};return Ili1iI[l1llI1I(0x181,'!2$F')](Math[l1llI1I(0x155,'*wtN')](Ili1iI[l1llI1I(0x1de,'nBZ%')](Math['random'](),l1I1il-iIil1liI)),iIil1liI);}async function i1I1IIi(il1lIi1I,iI11lI1l){const IIIiiIii=I11iIli1,liiiii1l={'vVCzW':function(IilIliii,Ilil11l){return IilIliii!==Ilil11l;},'jYXYU':IIIiiIii(0x1b9,'YXBE'),'vWpTB':'HTlaY','qQmWY':function(IiiIIIlI,ii1IiIl){return IiiIIIlI+ii1IiIl;},'jrAac':IIIiiIii(0x145,'H[8T'),'wYpYC':IIIiiIii(0x16e,'p7a!'),'SEPdG':function(IIilll11,i111illI){return IIilll11===i111illI;},'hhfqe':'AJwKa','cSoMG':'0|4|1|2|3|5','UKCCI':function(l1il1IiI){return l1il1IiI();},'wZwBW':'😤\x20更换新的IP,重试中','nZbIM':function(I11lilli,I11llil){return I11lilli+I11llil;},'RFNPL':IIIiiIii(0x18b,'DnQj'),'FRIIL':function(IiIII11l,i1I111il,i1i11IIl){return IiIII11l(i1I111il,i1i11IIl);},'XbrGU':IIIiiIii(0x1b5,'H[8T'),'VtfYu':function(iiIlii1,IilIi111){return iiIlii1>IilIi111;},'idyjl':'2|3|0|1|4','KrFOy':IIIiiIii(0x172,'4Wys'),'NRxKD':IIIiiIii(0x174,'4Wys'),'byTzK':function(i11l1l1l,iIIililI,ilIll1il){return i11l1l1l(iIIililI,ilIll1il);},'zIEuN':function(lllliI1i,ilIi1Ii1,IIlI1iIl){return lllliI1i(ilIi1Ii1,IIlI1iIl);},'PBrJU':function(Ii11IIII,I1IIlIiI,iIIlI1l){return Ii11IIII(I1IIlIiI,iIIlI1l);},'oyyEw':function(il1iIiII,iiliiI1i){return il1iIiII===iiliiI1i;},'qEpfr':IIIiiIii(0x1a7,'ozyF'),'Kmgjg':IIIiiIii(0x1e3,'!2$F'),'KeGxw':IIIiiIii(0x1a6,'f#j4'),'OrAiA':'JD4iPhone/167650\x20(iPhone;\x20iOS\x2013.7;\x20Scale/3.00)','xcLJO':IIIiiIii(0x160,'YXBE'),'pcYND':'gzip,\x20deflate,\x20br','ohfkX':function(lI1Ili1I,l1iIl1i1){return lI1Ili1I===l1iIl1i1;},'yShKG':function(l1l1Ilii,ll1Il1Il){return l1l1Ilii===ll1Il1Il;},'TCKHk':IIIiiIii(0x189,'5sz5'),'XxpQT':function(iiIiiII,ii1iilI1){return iiIiiII===ii1iilI1;},'dBjcf':IIIiiIii(0x253,'pK24'),'WxDUI':function(lI111II,liliiiII){return lI111II!==liliiiII;}};async function Ii1illlI(IIlI1l11){const i11i1I1I=IIIiiIii;if(liiiii1l[i11i1I1I(0x254,'z%T@')](liiiii1l[i11i1I1I(0x1bf,'&cFL')],liiiii1l[i11i1I1I(0x215,'8B2k')]))return new Promise(illi11ll=>setTimeout(illi11ll,IIlI1l11));else IlIliIi1[i11i1I1I(0x201,'H]Zk')](iIilIIil);}let Il1IlI1l=liiiii1l[IIIiiIii(0x1f9,'4RB!')](lllllIIi,il1lIi1I,/(?<=pt_pin=)([^;]+)/);if(Il1IlI1l){let Ilil1i1l=liiiii1l['zIEuN'](lI11I1ii,Il1IlI1l,iI11lI1l);token='';if(token===''){let IlilIl11=await liiiii1l[IIIiiIii(0x22c,'4RB!')](l1iiiI11,IIIiiIii(0x222,'4Wys'),{'url':iI11lI1l,'id':''});if(IlilIl11){if(IIIiiIii(0x26c,'dUT@')===IIIiiIii(0x236,'5$S7'))try{if(illllll)body=IlilIl11[IIIiiIii(0x1e9,'&Mnm')][IIIiiIii(0x141,'$WjR')];else{if(liiiii1l[IIIiiIii(0x25c,'$WjR')](liiiii1l[IIIiiIii(0x202,'!2$F')],IIIiiIii(0x186,'KlEe'))){iIl1IIi[IIIiiIii(0x210,'6no7')](IIIiiIii(0x1a8,'fEL(')),ll1l1iIi[IIIiiIii(0x153,'PPNI')](liiiii1l[IIIiiIii(0x1d0,'DnQj')](IIIiiIii(0x237,'G0@4')+iiIiI1Ii,'\x0a'));let lillllil=/[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/g;I1I1Ili1['GLOBAL_AGENT'][IIIiiIii(0x235,'^ue@')]=lillllil['exec'](illIIIii)[0x0]+','+(Il1i1lII[IIIiiIii(0x270,'G0@4')]||liiiii1l['jrAac'])+','+lIIil1;}else body=IlilIl11['body'];}const IlilIiI=await iIlI1Il[IIIiiIii(0x142,'5sz5')](liiiii1l[IIIiiIii(0x21e,'H[8T')],{'headers':{'Host':liiiii1l[IIIiiIii(0x1f4,'&Ay(')],'Content-Type':'application/x-www-form-urlencoded','Cookie':il1lIi1I,'User-Agent':liiiii1l[IIIiiIii(0x171,'H]Zk')],'Accept-Language':liiiii1l[IIIiiIii(0x1a9,'Qv]^')],'Accept-Encoding':liiiii1l[IIIiiIii(0x241,'p7a!')]},'body':body,'timeout':0x7530})[IIIiiIii(0x195,'z%T@')](async i1liI1lI=>{const llIIiiiI=IIIiiIii,iiIIll1I={'ArsiF':liiiii1l['wYpYC']};if(i1liI1lI['response']){console[llIIiiiI(0x1af,'^ue@')](llIIiiiI(0x1d6,'psba')+(i1liI1lI['response'][llIIiiiI(0x15d,'p7a!')]||'')+'\x20('+(i1liI1lI[llIIiiiI(0x227,'8B2k')][llIIiiiI(0x1dc,'5$S7')]||'')+')');if(i1liI1lI[llIIiiiI(0x16f,'5$S7')][llIIiiiI(0x1d5,'dUT@')]==0x193){if(l11l1I11){if(liiiii1l[llIIiiiI(0x1a4,'YXBE')](llIIiiiI(0x23e,'$WjR'),liiiii1l[llIIiiiI(0x1eb,'DnQj')])){const llllllIi=liiiii1l['cSoMG'][llIIiiiI(0x1db,'Qv]^')]('|');let Ii1II1I=0x0;while(!![]){switch(llllllIi[Ii1II1I++]){case'0':await liiiii1l[llIIiiiI(0x221,'LghT')](IliI111i);continue;case'1':console['log'](liiiii1l['wZwBW']);continue;case'2':console[llIIiiiI(0x176,'$WjR')](liiiii1l['nZbIM'](liiiii1l[llIIiiiI(0x191,'f#j4')],lIIIlIIi));continue;case'3':token=await liiiii1l[llIIiiiI(0x21b,'XRF7')](i1I1IIi,il1lIi1I,iI11lI1l);continue;case'4':global[llIIiiiI(0x17e,'G0@4')][llIIiiiI(0x182,'mnic')]=liiiii1l['nZbIM'](liiiii1l['XbrGU'],lIIIlIIi);continue;case'5':iil1iliI=0x0;continue;}break;}}else{liIll1['msg'](i1l1I1l['name'],iiIIll1I['ArsiF'],llIIiiiI(0x229,'fEL('),{'open-url':llIIiiiI(0x163,'^ue@')});return;}}}}else i1liI1lI[llIIiiiI(0x1c0,'PPNI')][llIIiiiI(0x18d,'4RB!')]?console[llIIiiiI(0x198,'G0@4')](llIIiiiI(0x200,'2@u9')+(i1liI1lI['response'][llIIiiiI(0x193,'m]6L')]||'')+'\x0a'):console[llIIiiiI(0x260,'QU99')](llIIiiiI(0x200,'2@u9')+(i1liI1lI||'')+'\x0a');});if(IlilIiI&&liiiii1l[IIIiiIii(0x20d,'fEL(')](typeof IlilIiI,'object')){if(IlilIiI[IIIiiIii(0x1d1,'&Ay(')]){let lIlllIIi=JSON[IIIiiIii(0x209,'nBZ%')](IlilIiI[IIIiiIii(0x15f,'nBZ%')]);if(lIlllIIi[IIIiiIii(0x151,'pK24')]==='0'){if(liiiii1l[IIIiiIii(0x255,'nBZ%')](IIIiiIii(0x1f5,'H[8T'),liiiii1l[IIIiiIii(0x247,'17dG')]))return new iiliIii(ll11Iiil=>lII1Ii1I(ll11Iiil,Illiilil));else token=lIlllIIi[IIIiiIii(0x267,'!2$F')],console['log'](IIIiiIii(0x23d,'H]Zk')+token),ilIIil[IIIiiIii(0x14d,'KlEe')](Ilil1i1l,token,lili);}else{if(liiiii1l['oyyEw'](lIlllIIi[IIIiiIii(0x152,'YXBE')],'3')&&liiiii1l['XxpQT'](lIlllIIi[IIIiiIii(0x21a,'p7a!')],0x108))console[IIIiiIii(0x1af,'^ue@')](IIIiiIii(0x1b8,'4Wys')),$[IIIiiIii(0x20f,'&cFL')]=!![];else{if(IIIiiIii(0x26e,'LghT')===liiiii1l[IIIiiIii(0x154,'dUT@')])console['log'](IIIiiIii(0x20b,'*wtN')+JSON['stringify'](lIlllIIi));else{let i1lIl111=llil1li[IIIiiIii(0x158,'z%T@')](lIilllll);if(i1lIl111&&liiiii1l['VtfYu'](i1lIl111[IIIiiIii(0x197,'H]Zk')],0x0))return i1lIl111[0x0]['trim']();return'';}}}}else{if(liiiii1l['oyyEw']('JVlRj','JAbab')){const iIlili1=liiiii1l['idyjl']['split']('|');let iI11l11=0x0;while(!![]){switch(iIlili1[iI11l11++]){case'0':ll1liI1I[IIIiiIii(0x1fc,'@VQ3')](IIIiiIii(0x16c,'H]Zk'));continue;case'1':Ii1i1lII[IIIiiIii(0x173,']jBS')](liiiii1l[IIIiiIii(0x203,'MV1H')]);continue;case'2':liii1ili[IIIiiIii(0x13e,'fEL(')]('⚠️\x20当前检测到已开启代理,但未填写代理地址变量');continue;case'3':il1l1i1l['log'](liiiii1l[IIIiiIii(0x246,'5sz5')]);continue;case'4':return;}break;}}else console[IIIiiIii(0x16a,'&Mnm')](IIIiiIii(0x25f,'p7a!'));}}}catch(ili1i1lI){liiiii1l[IIIiiIii(0x223,'@VQ3')](IIIiiIii(0x19b,'8B2k'),IIIiiIii(0x243,'pK24'))?console['log'](IIIiiIii(0x147,'M4tU')):liI1iIii[IIIiiIii(0x173,']jBS')]('🚫\x20getToken\x20API请求失败\x20➜\x20接口返回为空');}else IiIll1l1[IIIiiIii(0x213,'H[8T')]('🚫\x20getToken\x20API在处理请求时遇到了错误');}else console['log'](IIIiiIii(0x240,'@VQ3'));}else console['log'](IIIiiIii(0x22a,'PPNI'));}return token;}function IliI111i(){const l1l1lll=I11iIli1,liI1111i={'wqsin':function(IIl1Iii1,llliIIIl){return IIl1Iii1+llliIIIl;},'kIZAm':function(Ii1iiiIl,lill1lil){return Ii1iiiIl===lill1lil;},'DDuWg':l1l1lll(0x1e5,'^ue@')};return new Promise(async lIlil11i=>{const iliiiIi={'FZnTG':function(lIlII1li,iliIiiII){return liI1111i['wqsin'](lIlII1li,iliIiiII);},'DddTD':function(IIIllliI,illIiilI){const ii1IilIl=IIIi1111;return liI1111i[ii1IilIl(0x177,'pK24')](IIIllliI,illIiilI);},'TmaVv':liI1111i['DDuWg'],'ZXnho':'JIkbz','qFdJJ':function(lIiiiiil){return lIiiiiil();}};$['get']({'url':l11l1I11,'timeout':{'request':0x1388}},(IliI1l1l,I11lIi1l)=>{const i11IIi1=IIIi1111;if(I11lIi1l)try{let Il1iI1lI=/((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}:[1-9]\d*/g,lII1Ill1=Il1iI1lI[i11IIi1(0x1f1,'M4tU')](I11lIi1l[i11IIi1(0x14b,'DnQj')]);lIIIlIIi=lII1Ill1[0x0],global[i11IIi1(0x1ed,'0z4n')][i11IIi1(0x217,'DnQj')]=iliiiIi[i11IIi1(0x15a,'nBZ%')](i11IIi1(0x14f,'VGB]'),lIIIlIIi);}catch(lllIIili){}finally{iliiiIi[i11IIi1(0x1ad,'ikG8')](iliiiIi[i11IIi1(0x249,'!2$F')],iliiiIi['ZXnho'])?ili1lIi1=llilliii[i11IIi1(0x20e,'ozyF')]['convertUrl']:iliiiIi[i11IIi1(0x1bb,'KlEe')](lIlil11i);}});});}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) }
|