forked from WLZJ/KR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jd_beanSign.js
13 lines (12 loc) · 28.5 KB
/
jd_beanSign.js
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
领京豆签到
cron:15 0,16 * * *
============Quantumultx===============
[task_local]
#领京豆签到
15 0,16 * * * jd_beanSign.js, tag=领京豆签到, enabled=true
*/
const $ = new Env('领京豆签到');
var version_='jsjiami.com.v7';const iliII1ii=Illiil1I;(function(IllIIli,IllllIil,lIIIIIll,lII11il1,il1Ili1I,I1iiI11I,I1iiI1lI){return IllIIli=IllIIli>>0x7,I1iiI11I='hs',I1iiI1lI='hs',function(illlIill,liII1lii,lIiiI1Il,I11iIIll,iIliII1i){const i11l1i1i=Illiil1I;I11iIIll='tfi',I1iiI11I=I11iIIll+I1iiI11I,iIliII1i='up',I1iiI1lI+=iIliII1i,I1iiI11I=lIiiI1Il(I1iiI11I),I1iiI1lI=lIiiI1Il(I1iiI1lI),lIiiI1Il=0x0;const lllIiI1l=illlIill();while(!![]&&--lII11il1+liII1lii){try{I11iIIll=-parseInt(i11l1i1i(0x112,'DPbH'))/0x1*(-parseInt(i11l1i1i(0x1a0,')Q7O'))/0x2)+parseInt(i11l1i1i(0x1a9,'rBU['))/0x3+-parseInt(i11l1i1i(0x19d,'GJIT'))/0x4+parseInt(i11l1i1i(0x123,'&Drb'))/0x5+-parseInt(i11l1i1i(0x196,'di&N'))/0x6*(parseInt(i11l1i1i(0x188,')Q7O'))/0x7)+-parseInt(i11l1i1i(0x108,')Q7O'))/0x8+-parseInt(i11l1i1i(0x14f,'AebC'))/0x9*(-parseInt(i11l1i1i(0x14c,'@u7K'))/0xa);}catch(IlII11li){I11iIIll=lIiiI1Il;}finally{iIliII1i=lllIiI1l[I1iiI11I]();if(IllIIli<=lII11il1)lIiiI1Il?il1Ili1I?I11iIIll=iIliII1i:il1Ili1I=iIliII1i:lIiiI1Il=iIliII1i;else{if(lIiiI1Il==il1Ili1I['replace'](/[ULKkRYGHxbTOlIMQPu=]/g,'')){if(I11iIIll===liII1lii){lllIiI1l['un'+I1iiI11I](iIliII1i);break;}lllIiI1l[I1iiI1lI](iIliII1i);}}}}}(lIIIIIll,IllllIil,function(I1iiil1I,IilIIil1,I1IlIII,I1I1Ii1I,lI11iii1,i1Iil1I,llII11i){return IilIIil1='\x73\x70\x6c\x69\x74',I1iiil1I=arguments[0x0],I1iiil1I=I1iiil1I[IilIIil1](''),I1IlIII=`\x72\x65\x76\x65\x72\x73\x65`,I1iiil1I=I1iiil1I[I1IlIII]('\x76'),I1I1Ii1I=`\x6a\x6f\x69\x6e`,(0x13b97b,I1iiil1I[I1I1Ii1I](''));});}(0x5e80,0xb1be4,Il1IllIi,0xbf),Il1IllIi)&&(version_=Il1IllIi);const liIillll=$['isNode']()?require(iliII1ii(0x158,')Q7O')):'',iI1lIIi=$[iliII1ii(0x16e,'v7Gb')]()?require('./jdCookie.js'):'',lI1iiIil=require('./function/krgetToken'),IiIlii11=require('./function/krgetSign'),I1l1iI1i=require(iliII1ii(0x18e,'OgB@')),IiI1i1=process[iliII1ii(0x12a,'rBU[')][iliII1ii(0x1a6,'2QXD')]||'';let i1llII=Ii11IlIi(0x28,iliII1ii(0xfe,'AebC')),I1liIll1=[],IiiiIIIl='';if($[iliII1ii(0x199,'O[Q9')]()){Object[iliII1ii(0x15c,'#CJg')](iI1lIIi)[iliII1ii(0x130,'v7Gb')](i1ii11i1=>{const li1IiI1I=iliII1ii;I1liIll1[li1IiI1I(0x164,'M42@')](iI1lIIi[i1ii11i1]);});if(process[iliII1ii(0x1ab,'&Drb')][iliII1ii(0x156,')Q7O')]&&process['env']['JD_DEBUG']==='false')console[iliII1ii(0x13d,')Q7O')]=()=>{};}else I1liIll1=[$[iliII1ii(0x179,'o2v$')]('CookieJD'),$[iliII1ii(0x165,'JAbf')](iliII1ii(0x125,'%eY1')),...iIlllIIi($['getdata'](iliII1ii(0x152,'iWvG'))||'[]')['map'](llI1I1I=>llI1I1I[iliII1ii(0x10e,'W94L')])][iliII1ii(0x157,'O[Q9')](lii1=>!!lii1);let i1i1liii='';const Ilil1lIl=iliII1ii(0x119,'x3$x');!(async()=>{const liII1iIi=iliII1ii,il1iIi1l={'JaFBq':function(iil1lIil,I11Ill1l){return iil1lIil*I11Ill1l;},'rJZyQ':liII1iIi(0x11f,'%eY1'),'WgoUo':'https://bean.m.jd.com/bean/signIndex.action','ExNbb':liII1iIi(0x172,'^qto'),'FsbKu':'❖\x20kr提醒您...\x0a❖\x20请使用本地IP环境...\x0a❖\x20否则不会完成签到...\x0a','rSCTf':function(liliIilI,IlI1I11l){return liliIilI<IlI1I11l;},'jjpiw':function(l11I1Il,liil){return l11I1Il===liil;},'pIrEd':liII1iIi(0x110,'1J#6'),'XkwWa':function(illlii1I,IIllIiIi){return illlii1I(IIllIiIi);},'eQbqy':function(IiIi1l1l,ili1I1iI){return IiIi1l1l!==ili1I1iI;},'TCLqt':'AtEPo','WWBKf':function(ll1I1l1I){return ll1I1l1I();}};if(!I1liIll1[0x0]){$[liII1iIi(0x1bd,'v7Gb')]($[liII1iIi(0x143,'M42@')],il1iIi1l[liII1iIi(0x1b2,'rBU[')],il1iIi1l[liII1iIi(0x173,'%eY1')],{'open-url':liII1iIi(0x16c,'T!Ot')});return;}console[liII1iIi(0x1ac,'o2v$')](il1iIi1l[liII1iIi(0x117,'2QXD')]),console[liII1iIi(0x161,'%eY1')](il1iIi1l['FsbKu']);for(let lllli1II=0x0;il1iIi1l['rSCTf'](lllli1II,I1liIll1[liII1iIi(0x1a1,'44W1')]);lllli1II++){if(I1liIll1[lllli1II]){if(il1iIi1l['jjpiw'](il1iIi1l[liII1iIi(0x1a3,'86a4')],il1iIi1l['pIrEd'])){IiiiIIIl=I1liIll1[lllli1II],$[liII1iIi(0x15a,'Kg$P')]=il1iIi1l['XkwWa'](decodeURIComponent,IiiiIIIl[liII1iIi(0x167,'t%tN')](/pt_pin=([^; ]+)(?=;?)/)&&IiiiIIIl['match'](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[liII1iIi(0x124,'m4Pw')]=lllli1II+0x1,$[liII1iIi(0x1a7,'o2v$')]=!![],$[liII1iIi(0x122,'iWvG')]='',message='',console['log'](liII1iIi(0x187,')Q7O')+$['index']+'】'+($['nickName']||$[liII1iIi(0x190,'DPbH')])+'*********\x0a');if(!$['isLogin']){if(il1iIi1l[liII1iIi(0x17a,'#iXK')](liII1iIi(0x105,'Xmx2'),il1iIi1l[liII1iIi(0x162,'YekN')]))IlIllIIi+=II1ililI[l1lIiil[liII1iIi(0x193,'m4Pw')](il1iIi1l[liII1iIi(0x17e,'d*H)')](llIilIl[liII1iIi(0x14b,')Q7O')](),ilI1Iiii[liII1iIi(0x189,'rBU[')]))];else{$[liII1iIi(0x10d,'7NGO')]($[liII1iIi(0x143,'M42@')],'【提示】cookie已失效',liII1iIi(0x15b,'86a4')+$[liII1iIi(0x113,'T!Ot')]+'\x20'+($['nickName']||$[liII1iIi(0x142,'%eY1')])+liII1iIi(0x11b,'1J#6'),{'open-url':liII1iIi(0x19c,'XkBm')});$[liII1iIi(0x16a,'ux63')]()&&await liIillll[liII1iIi(0x11c,'TV@4')]($['name']+'cookie已失效\x20-\x20'+$[liII1iIi(0x142,'%eY1')],liII1iIi(0x116,'44W1')+$['index']+'\x20'+$['UserName']+'\x0a请重新登录获取cookie');continue;}}$['UA']=await il1iIi1l[liII1iIi(0x147,'jBoR')](I11i1I1),await il1iIi1l['WWBKf'](I1lill1i),await $[liII1iIi(0x139,'TV@4')](0x5dc);}else{let Iil11iIi=IIll11il?.[liII1iIi(0x145,'2QXD')]?.['dailyAward']||lI11liII?.[liII1iIi(0x18f,'OgB@')]?.[liII1iIi(0x174,'2QXD')]||l1Iiili?.[liII1iIi(0x10f,'jBoR')]?.['newUserAward'];i1i1Iili[liII1iIi(0x153,'AebC')](''+(Iil11iIi?.[liII1iIi(0x13e,'2QXD')]||'')+(Iil11iIi?.[liII1iIi(0x194,'di&N')]||'')+Iil11iIi?.['beanAward']?.['beanCount']+'京豆');}}}if(i1i1liii){if($[liII1iIi(0x198,'lW9V')]())await liIillll[liII1iIi(0x18c,'%eY1')](''+$[liII1iIi(0x1b4,'DPbH')],''+i1i1liii);$[liII1iIi(0x18d,'%eY1')]($[liII1iIi(0x144,'6e)M')],'',i1i1liii);}})()[iliII1ii(0x1b8,'rBU[')](li1i1I1=>{const Iill1111=iliII1ii;$['log']('','❌\x20'+$[Iill1111(0x183,'m4Pw')]+Iill1111(0x13f,'v7Gb')+li1i1I1+'!','');})[iliII1ii(0x19e,'di&N')](()=>{const IliI11lI=iliII1ii;$[IliI11lI(0x13c,'@u7K')]();});async function I1lill1i(){const i11iliil=iliII1ii,iIl1lIii={'kJsig':function(l1iiIiI){return l1iiIiI();}};await iIl1lIii[i11iliil(0x14e,'2QXD')](iIi1li11),await $[i11iliil(0x148,'*p3]')](0x1f4);}function lIl1I11i(I1iiiIl,IlIIi11l={}){const iIIIllil=iliII1ii,ilIlliil={'WKIDA':function(iI1IiIii,l1II11ii){return iI1IiIii===l1II11ii;},'FkaDy':iIIIllil(0x18b,'7NGO'),'ZLXqc':function(lillIlll,Ilii1IiI){return lillIlll(Ilii1IiI);},'cWVHa':function(llll1ll,Iil1Iill){return llll1ll+Iil1Iill;},'hmXhF':function(l1l1li,il1l1III){return l1l1li+il1l1III;}};let liIllI1I=[],li11llli=IlIIi11l[iIIIllil(0x1a4,'quLG')]||'&',i11II1i=Object[iIIIllil(0x18a,'AebC')](I1iiiIl);if(IlIIi11l['sort'])i11II1i=i11II1i['sort']();for(let iiIilli1 of i11II1i){let l1l1liIl=I1iiiIl[iiIilli1];if(l1l1liIl&&ilIlliil[iIIIllil(0x182,'o2v$')](typeof l1l1liIl,ilIlliil['FkaDy']))l1l1liIl=JSON['stringify'](l1l1liIl);if(l1l1liIl&&IlIIi11l[iIIIllil(0x19f,'7NGO')])l1l1liIl=ilIlliil[iIIIllil(0x1b6,'JAbf')](encodeURIComponent,l1l1liIl);liIllI1I[iIIIllil(0x127,'di&N')](ilIlliil[iIIIllil(0x131,'8sCO')](ilIlliil[iIIIllil(0x186,'6e)M')](iiIilli1,'='),l1l1liIl));}return liIllI1I[iIIIllil(0x1af,'GJIT')](li11llli);}async function iIi1li11(){const ilII1lll=iliII1ii,IilliIiI={'wkZHy':function(I1I1iliI,llIiIII1){return I1I1iliI!==llIiIII1;},'TqiXK':ilII1lll(0x192,'#iXK'),'MyoXY':function(iIIl11I,I1I1liII){return iIIl11I!==I1I1liII;},'WEHho':ilII1lll(0x15e,'9*SM'),'NDbBY':function(Il1i11il,iIIiI1I){return Il1i11il==iIIiI1I;},'KEGvg':'ELODD','UNnBE':ilII1lll(0x103,'Xmx2'),'dfunM':ilII1lll(0x181,'%eY1'),'JYJxk':ilII1lll(0x16f,'8sCO'),'unZMe':ilII1lll(0x1ba,'Kg$P'),'TdOuS':ilII1lll(0x1bb,'HS@b'),'oqAHA':function(iII1iil,lil111l1){return iII1iil*lil111l1;}},il1IiiIl='{\x22fp\x22:\x22-1\x22,\x22shshshfp\x22:\x22-1\x22,\x22shshshfpa\x22:\x22-1\x22,\x22referUrl\x22:\x22-1\x22,\x22userAgent\x22:\x22-1\x22,\x22jda\x22:\x22-1\x22,\x22rnVersion\x22:\x223.9\x22}',lilil1Il={'fp':'-1','shshshfp':'-1','shshshfpa':'-1','referUrl':'-1','userAgent':'-1','jda':'-1','rnVersion':IilliIiI[ilII1lll(0x17f,'O[Q9')]};let i11ii1l1={'url':Ilil1lIl+ilII1lll(0x170,'DPbH')+JSON[ilII1lll(0x171,'JAbf')](lilil1Il)+'&appid=ld&client=apple&clientVersion=12.0.1&uuid='+i1llII+'&openudid='+i1llII+'&loginType=2&jsonp=jsonp_1693243123839_76958','headers':{'Host':IilliIiI['dfunM'],'Accept':IilliIiI['JYJxk'],'Cookie':IiiiIIIl+'__jd_ref_cls=JingDou_SceneHome_SignIn;','User-Agent':$['UA'],'Accept-Language':IilliIiI['unZMe'],'Accept-Encoding':IilliIiI[ilII1lll(0x191,'jBoR')],'Referer':ilII1lll(0x1a5,'Xmx2')},'timeout':IilliIiI[ilII1lll(0x133,'lW9V')](0xa,0x3e8)};return new Promise(IIl1Iill=>{const lli11il1=ilII1lll,lIlIlI1I={'jtpOw':function(lI1iliil,lI111lI){return IilliIiI['wkZHy'](lI1iliil,lI111lI);},'orxTf':IilliIiI[lli11il1(0x15d,'%eY1')],'rsPoD':function(l1lllII1,lIl1Ill){const llIlll1I=lli11il1;return IilliIiI[llIlll1I(0x1a8,'M)xf')](l1lllII1,lIl1Ill);},'xCcsx':IilliIiI[lli11il1(0x195,'#CJg')],'UKaOj':function(illl1ilI,II11iiI1){const IIIlIili=lli11il1;return IilliIiI[IIIlIili(0x17d,'9*SM')](illl1ilI,II11iiI1);},'ZmTdG':IilliIiI[lli11il1(0x151,'ux63')],'TOIkI':function(l1ll1ll){return l1ll1ll();}};$[lli11il1(0x12b,'s6%q')](i11ii1l1,(lIi111,IiiiiIiI,IIIiiil1)=>{const l1liI11=lli11il1;try{if(lIi111){if(lIlIlI1I[l1liI11(0x19a,'GJIT')](lIlIlI1I[l1liI11(0x115,'2QXD')],l1liI11(0x15f,'M42@')))try{return i1lIlIi1['parse'](lIIlIlIl);}catch(I11lIiIi){return liIlili1['log'](I11lIiIi),l1li11I1[l1liI11(0x1aa,'XkBm')](iIIilIl1[l1liI11(0x143,'M42@')],'',l1liI11(0x1bc,'86a4')),[];}else $[l1liI11(0x1be,'W94L')](lIi111);}else{if(lIlIlI1I[l1liI11(0x1b7,'GJIT')](lIlIlI1I['xCcsx'],lIlIlI1I[l1liI11(0x121,'m4Pw')]))i1liIl1l[l1liI11(0x1b3,'#iXK')]('','❌\x20'+il1iiII1[l1liI11(0x126,'W94L')]+l1liI11(0x12f,'Kg$P')+I1l1iil+'!','');else{IIIiiil1=IIIiiil1&&IIIiiil1[l1liI11(0x14d,'GJIT')](/jsonp_.*?\((.*?)\);/)&&IIIiiil1[l1liI11(0x12e,'Xmx2')](/jsonp_.*?\((.*?)\);/)[0x1]||IIIiiil1,IIIiiil1=JSON[l1liI11(0x107,'O[Q9')](IIIiiil1);if(lIlIlI1I[l1liI11(0x1b1,'TV@4')](IIIiiil1[l1liI11(0x17c,'YekN')],0x0)&&!IIIiiil1?.[l1liI11(0x154,'Cndu')]){if(IIIiiil1?.[l1liI11(0x102,'HS@b')]?.['newUserAward']){if(lIlIlI1I[l1liI11(0x1ae,'t%tN')](lIlIlI1I[l1liI11(0x1b5,'&Drb')],'ELODD'))return IlIilii1[l1liI11(0x163,'8sCO')](IiIiII1l);else console[l1liI11(0x155,'T!Ot')](''+(IIIiiil1?.['data']?.['newUserAward']?.['title']||'')+(IIIiiil1?.[l1liI11(0x140,'#iXK')]?.[l1liI11(0x160,'#CJg')]?.['subTitle']||'')+IIIiiil1?.[l1liI11(0x109,'iWvG')]?.[l1liI11(0x137,'&Drb')]?.[l1liI11(0x19b,'AebC')][0x1]?.['beanCount']+'京豆');}else{let l1Iiiili=IIIiiil1?.[l1liI11(0x102,'HS@b')]?.[l1liI11(0x1ad,'JAbf')]||IIIiiil1?.['data']?.[l1liI11(0x128,'Kg$P')]||IIIiiil1?.[l1liI11(0x12c,'&Drb')]?.[l1liI11(0x100,'W94L')];console[l1liI11(0x16d,'JAbf')](''+(l1Iiiili?.[l1liI11(0x141,'Cndu')]||'')+(l1Iiiili?.[l1liI11(0x11e,'JAbf')]||'')+l1Iiiili?.['beanAward']?.[l1liI11(0x11d,'d*H)')]+'京豆');}}else lIlIlI1I['UKaOj'](IIIiiil1['code'],0x3)?console[l1liI11(0x16d,'JAbf')]('签到失败,'+IIIiiil1?.[l1liI11(0x111,'x3$x')]):console[l1liI11(0x134,'ux63')](l1liI11(0x185,'o2v$')+IIIiiil1?.[l1liI11(0x13a,'t%tN')]+':'+IIIiiil1?.['errorMessage']);}}}catch(ll1ii1lI){$[l1liI11(0x106,'#CJg')](ll1ii1lI);}finally{lIlIlI1I['TOIkI'](IIl1Iill);}});});}function Il1IllIi(){const iiIi1ill=(function(){return[...[version_,'uMbjLQsKjRiTlaIkmYiM.PHUcuoLxmGbk.OvQ7PM==','WOCcWRxcOG4','cCoBkfC','jrzIW6pcRmojca','amoFW6vce8kEe8k4W7hcTCkmWRhdJdbfWRpcU18mrKlcTmo0ACoWW43dNSo1WO42WRpdGwfBgdbrW6hdG8kMWPdcGSo7v8oUWP3cNmo6lXyDWRWqW406WRlcL0PkrmkbWQK','cSkFWRZcGCke','W6NdQ07cQabJW54TxG','pMDbfq','s8kIqMClfW','WOHyW5rbwa','zmo1rmoiE3RdPSk+tdtdKmo8FCoju2hdNrZdGaVdQmowtfqAW4RcO8k1f1tcRwxcLmoGWPLcWPTgWQTufqxcMG','lHXX','W6XfW6xdHNZcQG','W51mW60','W7JdKvlcSsytprDkW5hdSvRdLCoTAv/dKCktaCkkW6pcR8ktWRS','mqDKW67cO8oAaaZcMq','4P27WOJMT6xLIQlLH7RLJkFVVRy1f8k46AEp6AkhW5pPO7RKU7tOSQ3cToESKowjGmoq','WR7dRtpdUcO','otqeWRBdMLBdQNTvbmoXWQDJWQhdJW','lvrkdCom','WQ1OW4fnsW','aSkqpCo6WPyyW6BdIq','x8ohWQTKW7S','pCkbqCkRqSkFWPi','wCkaWQj3WR8','WPe3W43cGCo5','WRTBlCo1','WQq5WP1SW4C','WPVcUdZcVWe','WONcNc5BFG','WRPlWPTXnW','WOJdUJxcGYJcVapcKKxcNSoOcq','dCkVFmklyG','W6hdV8o6zq','W7zcW5NdGhBcQmoxW41J','56YK5yUu5Ase6lEQdW','WQPbW7HgDW','W6PCW6ldSrhcImkU5BYJ5AwU44cA5lUs5lQj6lws5yY8','W5nhW7JdQq3cL8k9t8omyGVdGGC','WQFcJv/cLSoYgq','vuSwW68','WOOGsfWpfG','WPRdRZldIqVdVr3cNW3cHa','WOtdUtS','W69bW5bHk8kdWO3dLfWQnSkkW4DNW4HWWQNcMCoe','WQupW4j1','WPldHelcRqSgor0','W4GiWQyVeq','xSk2WOHwWQ4','W6NdSSo4B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OJ7/LJ4i','WOpdGKKZW4RdIq','W7FdNCo0CXS'],...(function(){return['WRy7W7BcJSogW5yuvG','v0eCW6JdRmohW4VdU3m/WQPLbq','W6BdSmoZzrS','WQRdPtpdHIZdTYpcSLK','gmkEa8oR','qmkBWQqz','A8oIW4Hzhc4ZW5xcRaqMW7qZkSoV','W6ldRCoW','WQ7cHKC','dmoKWRC','aHLCWRG','W5xcSa3cGv7cQa','emkRyCkCEG','jmkT5AAx6lsivgdLJ5NLMzZdOL0','W6nzW5NdRhNcRmow','WPq0WPhcMqO','W6yvWPOwbG','WO8wpmkhW6a','tSk+AW','W6pdU8o5zXFdGG','W6JdNeBdMdHQWQafrqNdNmksWQZdR0K4AmkpW4WwBLHLe8kKW5e','cb1FWOZcQ8kqWONdRxWAWRXh','WQ3dN8kVrq','W5hcPrBcNa','aSkmWRRcJCkEW7hdV8kuCW','WOpdVLCtW4K','WQFdKCkSrq','WOWzWQ8','lJiEWQ7dLG','WQKw5AAA6lAmoCoV5yYH5zMliaS','wmkWWRrN','w8kKxCompG','WRZdUtNdNWVdSWtcKW','f8opnLO','WQXnW41l','pJOEWQm','tSkJBwKJ','W4S7WQSrja','W67dIKRdNG','W6FdRe7dHubyW4qpASkuBW','WQa5W4brhW','WPixWQBcV1tdJW','W7xcI8o2gaKPW4vZW6uZWP8','oCoVc8o3qa','mrezWQVdLa','dbHCWQVdVrflW64DiW','WP9/W6GCpIlcNdBdMSkZ','ACkus34i','WPS9W7RcJSoHW5ikECkP','uKei','sSk/w8opkCkwWPz4AW','ymoUvW','WQOYWPFcN37dOmorza','WRRcUYXTxSoO','W45zWRVcVLxdHSoktmoryXJdRa','WQryf8o5WOZdMqldKG','xCo+W4nFoYeRW5K','5lU05lIj6lsi5y6p','W4yPWQzx','WR3dUZxdTq4','WRGjWQ9/W7C','g8oje2/cKG','W4mPWQHXaY/cMbZdMCkKWRhcRa','WOxdPtS','WOX3bCoHWPa'];}())];}())];}());Il1IllIi=function(){return iiIi1ill;};return Il1IllIi();}function Illiil1I(_0x4cc3eb,_0x279d51){const _0x425257=Il1IllIi();return Illiil1I=function(_0x3034db,_0x42f6bb){_0x3034db=_0x3034db-0xfe;let _0x3e3189=_0x425257[_0x3034db];if(Illiil1I['EhiXcm']===undefined){var _0x1d5480=function(_0x5aac29){const _0x3a5567='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xc0e93c='',_0x2e9c5b='';for(let _0x4f73ea=0x0,_0x115d6c,_0x4aa130,_0x44996a=0x0;_0x4aa130=_0x5aac29['charAt'](_0x44996a++);~_0x4aa130&&(_0x115d6c=_0x4f73ea%0x4?_0x115d6c*0x40+_0x4aa130:_0x4aa130,_0x4f73ea++%0x4)?_0xc0e93c+=String['fromCharCode'](0xff&_0x115d6c>>(-0x2*_0x4f73ea&0x6)):0x0){_0x4aa130=_0x3a5567['indexOf'](_0x4aa130);}for(let _0x258e2e=0x0,_0x48944f=_0xc0e93c['length'];_0x258e2e<_0x48944f;_0x258e2e++){_0x2e9c5b+='%'+('00'+_0xc0e93c['charCodeAt'](_0x258e2e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2e9c5b);};const _0x54170f=function(_0x494544,_0x40105b){let _0x34c8a0=[],_0x2089bd=0x0,_0x505157,_0x147a11='';_0x494544=_0x1d5480(_0x494544);let _0x446362;for(_0x446362=0x0;_0x446362<0x100;_0x446362++){_0x34c8a0[_0x446362]=_0x446362;}for(_0x446362=0x0;_0x446362<0x100;_0x446362++){_0x2089bd=(_0x2089bd+_0x34c8a0[_0x446362]+_0x40105b['charCodeAt'](_0x446362%_0x40105b['length']))%0x100,_0x505157=_0x34c8a0[_0x446362],_0x34c8a0[_0x446362]=_0x34c8a0[_0x2089bd],_0x34c8a0[_0x2089bd]=_0x505157;}_0x446362=0x0,_0x2089bd=0x0;for(let _0x44c67a=0x0;_0x44c67a<_0x494544['length'];_0x44c67a++){_0x446362=(_0x446362+0x1)%0x100,_0x2089bd=(_0x2089bd+_0x34c8a0[_0x446362])%0x100,_0x505157=_0x34c8a0[_0x446362],_0x34c8a0[_0x446362]=_0x34c8a0[_0x2089bd],_0x34c8a0[_0x2089bd]=_0x505157,_0x147a11+=String['fromCharCode'](_0x494544['charCodeAt'](_0x44c67a)^_0x34c8a0[(_0x34c8a0[_0x446362]+_0x34c8a0[_0x2089bd])%0x100]);}return _0x147a11;};Illiil1I['nKbmkc']=_0x54170f,_0x4cc3eb=arguments,Illiil1I['EhiXcm']=!![];}const _0x15ce4f=_0x425257[0x0],_0x155f1c=_0x3034db+_0x15ce4f,_0x1b0576=_0x4cc3eb[_0x155f1c];return!_0x1b0576?(Illiil1I['lZJqaC']===undefined&&(Illiil1I['lZJqaC']=!![]),_0x3e3189=Illiil1I['nKbmkc'](_0x3e3189,_0x42f6bb),_0x4cc3eb[_0x155f1c]=_0x3e3189):_0x3e3189=_0x1b0576,_0x3e3189;},Illiil1I(_0x4cc3eb,_0x279d51);};async function I11i1I1(){const liiiiIlI=iliII1ii,llIlilIl={'lraaL':liiiiIlI(0x166,'di&N'),'uAduT':function(iI1Il1l,l1iIIi){return iI1Il1l*l1iIIi;},'lYpGw':function(i11i1ii,IIIlIl1l){return i11i1ii+IIIlIl1l;},'oDacz':liiiiIlI(0x1a2,'86a4'),'xbiow':'1.0.3','Jttoi':'com.360buy.jdmobile'};for(var ilIliil='',Ii1Il1iI=llIlilIl[liiiiIlI(0x146,'ux63')],iIIlIII=0x0;iIIlIII<0x10;iIIlIII++){var ll1I1ii1=Math[liiiiIlI(0x178,'^qto')](llIlilIl[liiiiIlI(0x175,'86a4')](Math['random'](),Ii1Il1iI[liiiiIlI(0x135,'m4Pw')]-0x1));ilIliil+=Ii1Il1iI[liiiiIlI(0x1b0,'s6%q')](ll1I1ii1,llIlilIl[liiiiIlI(0x13b,'HS@b')](ll1I1ii1,0x1));}return i1llII=Buffer[liiiiIlI(0x169,'86a4')](ilIliil,liiiiIlI(0x11a,'d*H)'))[liiiiIlI(0x177,'W94L')]('base64'),ep=encodeURIComponent(JSON[liiiiIlI(0x184,'v7Gb')]({'hdid':llIlilIl[liiiiIlI(0x176,'6e)M')],'ts':new Date()[liiiiIlI(0xff,'&Drb')](),'ridx':-0x1,'cipher':{'sv':liiiiIlI(0x159,'A#8Q'),'ud':i1llII,'iad':''},'ciphertype':0x5,'version':llIlilIl['xbiow'],'appname':llIlilIl[liiiiIlI(0x16b,'6e)M')]})),liiiiIlI(0x118,'XkBm')+ep+liiiiIlI(0x10a,'M42@');}function Ii11IlIi(ii1IIIi,iiiiIill=iliII1ii(0x136,'*p3]')){const III1ii1i=iliII1ii,iil1ll={'aWvEZ':function(I1lilil,i1Il1ll1){return I1lilil!==i1Il1ll1;},'vLzJr':'kuWce','prIXE':function(IIIIllI,i1Ii1liI){return IIIIllI*i1Ii1liI;}};let Ilii1ilI='';for(let Ii11lI1=0x0;Ii11lI1<ii1IIIi;Ii11lI1++){iil1ll[III1ii1i(0x14a,'OgB@')](iil1ll[III1ii1i(0x180,'1J#6')],iil1ll[III1ii1i(0x101,'t%tN')])?i1iil1['log'](III1ii1i(0x10b,'A#8Q')+lillIiI1?.['errorCode']+':'+IiIii1l?.['errorMessage']):Ilii1ilI+=iiiiIill[Math[III1ii1i(0x197,'7NGO')](iil1ll[III1ii1i(0x114,'6e)M')](Math['random'](),iiiiIill[III1ii1i(0x120,'HS@b')]))];}return Ilii1ilI;}function iIlllIIi(lI1I1l1){const I1111ill=iliII1ii,iillllIl={'tpYwR':function(IIi1l1II,IiiiiiIi){return IIi1l1II==IiiiiiIi;},'zysLD':I1111ill(0x12d,'TV@4'),'IeXdq':'请勿随意在BoxJs输入框修改内容\x0a建议通过脚本去获取cookie'};if(iillllIl[I1111ill(0x104,'M)xf')](typeof lI1I1l1,iillllIl[I1111ill(0x132,'jBoR')]))try{return JSON['parse'](lI1I1l1);}catch(iIIIIl11){return console[I1111ill(0x1bf,'v7Gb')](iIIIIl11),$[I1111ill(0x129,'m4Pw')]($[I1111ill(0x138,'@u7K')],'',iillllIl[I1111ill(0x17b,'iWvG')]),[];}}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)}