KR/jd_gacj.js

13 lines
27 KiB
JavaScript

/*
国安抽奖
cron:31 12 17-19 8 *
============Quantumultx===============
[task_local]
#国安抽奖
31 12 17-19 8 * jd_gacj.js, tag=国安抽奖, enabled=true
*/
const $ = new Env('国安抽奖');
var version_='jsjiami.com.v7';const IIIII1=iii1II;function Iii11l(){const il1iIi=(function(){return[version_,'dYjpIsBjeuiKdaJAmHFiC.ThcwoPmuhX.dYvM7GI==','W4RcI8o+za3dPvNcV8k+ymkJ','ja/dIIaaW63cHLBcLmosFW','bmokW4amgSk0W4xcTmky','WP4NjCklW7S','grDeAHupkCkA','oIG4hgZcNmo2W5i','wqBdPcWN','WQ8UWPT/Aa','WOfYW5rvrq','WP7cJY1v','W5HDya','EbhdVcWJjmk1Fe0','W6blyIVcHW','W6hdU8kuiq','WOq9m8khW60kyb/cHW','WQebWP81WOC','WReMAqbTfwlcLSo6nMO','WQr5W4WkWQ9KWR4','m1K1W4RdM8oABmo7W6bAW7RdOMvEhc3dT8k+WO7cPsNdJLpcSSoycweRWRG6lCkhW6hdNmo8ASkMW5RdMMqItI4','zCk7WPxcV8oWWR5sW7OZWQGXCq','WPRdMCoPzmkViCksW6pdJ2a/WP7cVSkjW50IW4VcTmk7WQKyWPzjhSkvW4VdGSkBWPXQkeq0W7tdKSoLygmkW7NcUSonWPDdWQtcMbWfoCogpfLJmmk4xdrxxmoMW559WQC6ASklgmohWOHDWQlcScpdVCoTpxi6W6HpW6tdNCo0hYhdI23dS23cNmonWPBcIxebbSomdSkQW73dQv3dNKqPAw7dHmozzGZcL3/cJmoIWQlcTmkkWQv6BY/dH0JcLmolAmoWB3RcGbFdPtj9W54Wlmofi8oqWOLVW67dNM/dLCoDW4ddKqvfjh3cOCk4WP3cVbyJW5imW6dcRrzMWPtdN8kJo10OgSkAWOVdPCkPWPJcQ0yXW4iyW6TAW49jWOa','W6dcMmk8WRnyWPhcImosWOiFbbqwiSoAj8kvo2xcP0tcL1rnW43cSSouWRtdISojW6mkW699WPRdGmodwCkcsdddKCouW6VdUMCWBdniW79xWR14WPL5W5TTWP3dQu0kWRtcUCo6wGOUCCo1cv/dIrTivmkGESoXvCogFSo4pCkMtLtcICoBrx/dOMFcSa3dRSkUWPn0WRSpWQ3cJCkAlCk2f0q3mMVcV2BdQ8knwCopq8kmwrfMWQDqWQ4it8oca8oJW40xmsWPW5/cOmotFSoDW5iyF8khW5pdUYBcKe/cQgW','5Aw96lwbdq','Bmofv8oRwa','WRdcMCkpWOrU','WRuDguG','W6lcKIbq','WPVcQ8kKWPHY','kG7cH8k6WRPlW5NLV47LPiJJGPBKUz/KURJOTjJLJ6W','jCoMW6NdSCk5','cmk9cK9l','E8o2WO8','EuVcSh9xW7e','aZq6','W5LrW4HTyM9DAhu','WRxcHmoRhCor','aXbWsra','W6SwWR3cUColcdiCpxe5W7C','sCkUWOXp','W73cMJNdS8oi','W6BdKmoZyCkLmmkXW4G','W6/cHYddSCoX','nmoNxmk3ka','WPNcRsJcHMtdL8kDfG','nfDR','WRhcJCk/W5VdTge','W7feDd3cGG','gmoJW7y','kCkjySo4q8kVWO4xtmocWQWs','W7OyW5FcUq','W64ZW5/cIq0','W7vJW7KS','wqFdRSoA','m2/cRmkMsL/cNCkmWQddIsNcPmo0ECkioSoMWOyfW7ZdIaKjBSo3W6jSFxBdSmoQWOpdNeKmACkIWQ3cJSknhmk/utVcKGVdIKVcKLWWW7VcHI0YpK4qWRzLlCo8sXLDW4FdVqewW7xdGmohgSkD','W6JcVHLBW7O','W59rqqRcVa','W4z5DCoAWRrAms3cKGdcUmoHFW','WQetWOW','WRZcKCkNWRnEWOBcLCosWP4','W7RcMZdcMhuZW6egAJ8','cCkgjhrS','pGfmEtiaemkwmCk5sq','rSkNf2BdO8omW7ddMdq','WQjQjG','AJ7dN8oaoa','WRVcP8k9W4WqW5Hc'].concat((function(){return['n8oJrmkI','WOXxW6hdUSk1wc4+','W7JdU8kqma','WPxdImkTe3C','jtD5yda','rxf3raJdL8kXWP3dRa0','pvz6','qX3dTmoC','vv7cKCoKsa','f8k9keVdQSowW6e','W6FcLZ3cL3u9W7Gk','cCoGWOToWQihWRybWP1UhfBdMq','WPWaWO9PFq','5As66lwaWQi','W4DABGVcUW','WPPQjmkkW4GWW6NdPW','WRCteW','r8k9m1hdSq','WRhcGCkqW4Ks','o8oJsCk1aSkxoa','aIG6','tmoiWO3cP3q','eHBcLmkHWQbqWOlcICkRW6ZcKCoX','xCkvWPi','W6f7pL0zih3cHa','gSk2dKZdHwpcNc/dU0z+AuG','W4JcRaBdUCoD','l0VcSSkXyq','6k6S5yUs6zUo5OA15z6aWQiSWQZdIeZOViJLH6NMOi3KV53MLiVLH4lLRkRcMUw4L+ITPoMbNUI8PUIeQ+AFU+wmGUIpKowoMdVcVJiOWQFdQG','s8kGWOy','W43dGx4','WOqvWOLQAZmycgNcSSkbW5NcPCo3W4ldOqBdVfTH','ouHLWOldUMPxWQ/cHNv8lG','WRJcLCk0W7/dJq','WQRcTfK0','kuZcRSkWCa','W6JdQmowr8kv','rCoTxG','WOddIeW','W6tcRI0','WRnkW5HVeYldVSktW7m/W4VdHmooWPmCjZy','DvZcLCog','WRWghv3dUwf7amkRW6LoWRhcVchdHxCe','p8oPwCk0','WRbxW4RdP8kFxa','WRFcTSou','WQVcTSoaW4e','W4T5h8kydW','WOKBWQTQqa','44kF5O2k56Ed44gv6k6y5yA+6i2+5y6A5lUt5lMy6lsx5y2n5lQZWPtdTSodW75gsCo855I05O+P5lYy55s6WQNdJvPLvNhNMO3KUBJKUiZNRz7LIj3OJ6JLJ54','kgdcM0v+W7pcSW','tXVdS8otaMLL','puP+W4pdPqDsWQ/dJq','WO8mWQ0NWRK','WRhcJmkKWPfm','tK3dJSo7W54aWP7cQW','W71UW5mXWOK','p0iVW58','nuqIW5hdPSkblSkX','C8o8rrqPqNRcGmojW6GoWPnS','WONcRZzmWPC','fSo/W7xdHq','WRlcO8oOWOpcGNNLTlFLPB7MLPjbWQ1H','W7DbjmkTW4S2W7u','WOdcK28dW48','W6ldGxBdU8k2zMldHM8','faTrEra','sSk8WOy'].concat((function(){return['WPJcMmoPWPZcGG','zSowEmkZqmoLWQOCfSoiWQug','x8ojW7lcPt4','e3qlW5pdKG','W77cNZFcIa','W7hdI8o+WORcQLyvacNcRCol','WOmdWPD/E30','bY8PhLhdH8k0WPJcPgiRyNNdOCozWQimW6iNWROfjHZdTarOWPFdJdBcGqZcVNhdH8oMdtNdMe/cSwj+wq','WRBcTMdcVeVdMmkdxSkCzvldV8kLja','v8oxWOFcH1y','WQhcLSkIW5NdS2m','W7xcLJPvW4tdTSo1WOxcHSoQ','yfNcJgnw','WRyeWRSJWPy','oCoOxSk+b8kg','tmkQWPHz','nCo1CCk+bmkknW','WRXrW5b5Da','W67cKdTAW6i','W73dV8kujqBcMmkDjriHqG','zCoAsZpcPW','5yYG5lU85OU85AAU','rr3dUG','5lUd5lMh6lw75y6z','kavvEq','W6RdQ8kgWOFdUSkddW8Fya','WQ0hWOONWRS','W7PJW7O','WRhcR18WW77cJSkvWO3dKLdcJCo3DahdKCoijmk8W5JcP8kBiI/cSKzNWQNdM8kXWPW4WPhcVeXMW7RcRSoqxIzzW5STmNJdPqxcSSoHa8oFWPOzzmkzW44qWPNcGmkqySknW57cPq1hWPXgxw3dNJtcUCk5','WOJcS8kWW6W/','W7xcNd1IW68','W6/cNZlcJ14','WPJcTCo1W4tdRG','WR1fW7ddQq','W6dcKdRcMum','o8oZA8kObW','WQbdW7zOwG','W4NdKmo7','WQJcRaHpWR0','qCohDZZcUW','BCkNWOtcGeXczcO4zHtcV8oNubipjCkqWOmIW5S5oCkqWO9LWRHlW7zax8kodcnuWQ1bWPldI2Srd8kCC8kMsCozlSoDudtcMmkKWQBdHSk6eCkUWOLtW7pcLSoJxeL+FmkzwSkvW4NdVtjZCq','sfFcJNf4','44kX5O2+56sJ44kbWRXSr8oPnmkB5Bw65AwJ5PEp','5AAZ6lsXDG','DLFcJfvsW7FcQG','WPngW4ddSmkJ','W7xdU3ZdICkD','WPPlW6VdO8ksxdareq','iaTg','WOVcO1isW6e','WOe4b1RcHG','W73dRNNdGb3cGCoij8kZyJhdISo7','pHFcMgvDW7FcTK/cG8oAhSowW4xdKCozWRaMW40','m8oGW4JdRCkfW69xW5G','bmk6px1C','WRFcVmoDW5ldJmkA','WRJcKCoGW7RdU2GkxcZcS8ksl8o6sW','5lQf5lMU6lA75y2f','WRlcO8oJWO0','BGVdUa','W7VdMhxdNSky','WQG7Ca','WQfrW7ddM8ki','W77cGrfsW6G','adK3c0hcIq','WPfIW5P3AW','WOhcNCoJWOFcQa'];}()));}()));}());Iii11l=function(){return il1iIi;};return Iii11l();};(function(iiillI,l1l111,l1iIII,llI1I1,IlIlil,lIli1I,II1il){return iiillI=iiillI>>0x9,lIli1I='hs',II1il='hs',function(lllI11,I1lIll,I1lIli,II1ii,IIIIII){const lIli1i=iii1II;II1ii='tfi',lIli1I=II1ii+lIli1I,IIIIII='up',II1il+=IIIIII,lIli1I=I1lIli(lIli1I),II1il=I1lIli(II1il),I1lIli=0x0;const lillII=lllI11();while(!![]&&--llI1I1+I1lIll){try{II1ii=-parseInt(lIli1i(0x103,'y7wx'))/0x1*(parseInt(lIli1i(0x102,'xIrS'))/0x2)+parseInt(lIli1i(0x14a,'ZIHl'))/0x3+-parseInt(lIli1i(0xc8,'fXJj'))/0x4*(parseInt(lIli1i(0x114,'f0X*'))/0x5)+-parseInt(lIli1i(0x105,'4ON4'))/0x6+parseInt(lIli1i(0x12a,'iGkE'))/0x7*(-parseInt(lIli1i(0x166,'UPnq'))/0x8)+-parseInt(lIli1i(0xf3,'UPnq'))/0x9+parseInt(lIli1i(0x14d,'LCg$'))/0xa;}catch(ii1ilI){II1ii=I1lIli;}finally{IIIIII=lillII[lIli1I]();if(iiillI<=llI1I1)I1lIli?IlIlil?II1ii=IIIIII:IlIlil=IIIIII:I1lIli=IIIIII;else{if(I1lIli==IlIlil['replace'](/[pJBXPeuKHIAYTwdhMCFG=]/g,'')){if(II1ii===I1lIll){lillII['un'+lIli1I](IIIIII);break;}lillII[II1il](IIIIII);}}}}}(l1iIII,l1l111,function(lI1ll1,iIiI1,liil1I,i11ii1,IlIliI,l1iII1,iiill1){return iIiI1='\x73\x70\x6c\x69\x74',lI1ll1=arguments[0x0],lI1ll1=lI1ll1[iIiI1](''),liil1I='\x72\x65\x76\x65\x72\x73\x65',lI1ll1=lI1ll1[liil1I]('\x76'),i11ii1='\x6a\x6f\x69\x6e',(0x139c84,lI1ll1[i11ii1](''));});}(0x18e00,0x1bd80,Iii11l,0xc9),Iii11l)&&(version_=Iii11l);const IilIi1=$[IIIII1(0x112,'UPnq')]()?require(IIIII1(0x122,'XVau')):'',iI1liI=$[IIIII1(0x160,'uu%d')]()?require(IIIII1(0x13f,'%C9b')):'',l1lIiI=require('./function/krgetToken'),llliiI=require(IIIII1(0xe3,'UPnq'));let IilIiI=[],i1i1I1='';if($['isNode']()){Object[IIIII1(0x187,'%C9b')](iI1liI)[IIIII1(0xdb,'UPnq')](iI1lii=>{IilIiI['push'](iI1liI[iI1lii]);});if(process[IIIII1(0xea,'*#6m')]['JD_DEBUG']&&process[IIIII1(0x13a,'l7s[')]['JD_DEBUG']===IIIII1(0xce,'1XAS'))console[IIIII1(0xdf,'dY1d')]=()=>{};}else IilIiI=[$['getdata'](IIIII1(0x11a,'lw5]')),$[IIIII1(0x147,'BHm]')](IIIII1(0x175,'$!AY')),...iIli1i($[IIIII1(0x133,'pYKO')](IIIII1(0xde,'uu%d'))||'[]')['map'](IilIii=>IilIii[IIIII1(0x182,'t3wr')])]['filter'](iI1lil=>!!iI1lil);let IlII1='';const IiI11='https://api.m.jd.com/api';!(async()=>{const I1lIlI=IIIII1,l1lIi1={'uiEyx':function(iIli1l){return iIli1l();},'AXMZb':function(i1i1II,liiIIl){return i1i1II<liiIIl;},'LXrGS':function(iil1iI,IlIllI){return iil1iI!==IlIllI;},'Rcjij':I1lIlI(0x137,'*Gqb'),'zJeUJ':function(il1i1I,lI1li1){return il1i1I(lI1li1);},'AqLAG':function(iI11II,iIII1I){return iI11II+iIII1I;},'TqyDN':I1lIlI(0x104,'tBf%'),'NNlPP':function(ilil1i,IlIIi){return ilil1i(IlIIi);},'buJYw':function(IiI1l){return IiI1l();},'nMMjp':I1lIlI(0xe1,'*LZq'),'xzyXP':I1lIlI(0x164,'f0X*')};if(!IilIiI[0x0]){$[I1lIlI(0x148,'vE%S')]($[I1lIlI(0xff,'1n9t')],I1lIlI(0x165,'1n9t'),I1lIlI(0x17f,'vE%S'),{'open-url':'https://bean.m.jd.com/bean/signIndex.action'});return;}for(let illlII=0x0;l1lIi1[I1lIlI(0x163,'a%Yt')](illlII,IilIiI[I1lIlI(0xe6,'fXJj')]);illlII++){if(l1lIi1[I1lIlI(0x18c,'LCg$')](l1lIi1[I1lIlI(0xf8,'*#6m')],I1lIlI(0xe5,'2(Qf'))){if(IilIiI[illlII]){i1i1I1=IilIiI[illlII],$[I1lIlI(0xf7,'vE%S')]=l1lIi1[I1lIlI(0x124,'8dRc')](decodeURIComponent,i1i1I1[I1lIlI(0x101,'H*E0')](/pt_pin=([^; ]+)(?=;?)/)&&i1i1I1['match'](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[I1lIlI(0xd1,'1XAS')]=l1lIi1[I1lIlI(0x14e,'q7[t')](illlII,0x1),$[I1lIlI(0x188,'BHm]')]=!![],$[I1lIlI(0x13e,'1XAS')]='',message='',console[I1lIlI(0x152,'$!AY')](I1lIlI(0x10e,'ZIHl')+$['index']+'】'+($[I1lIlI(0x16b,'ZIHl')]||$['UserName'])+I1lIlI(0x139,'vE%S'));if(!$['isLogin']){$[I1lIlI(0x121,'xg]i')]($[I1lIlI(0x123,'8dRc')],I1lIlI(0xd9,'$!AY'),I1lIlI(0x18f,'vE%S')+$[I1lIlI(0xf5,'iGkE')]+'\x20'+($[I1lIlI(0x16e,'tBf%')]||$[I1lIlI(0xf6,'dY1d')])+'\x0a请重新登录获取\x0ahttps://bean.m.jd.com/bean/signIndex.action',{'open-url':l1lIi1[I1lIlI(0xcc,'pYKO')]});$['isNode']()&&await IilIi1[I1lIlI(0x183,'51EW')]($['name']+I1lIlI(0x172,'8^SY')+$[I1lIlI(0x143,'(Dcv')],I1lIlI(0xe8,'N#Yx')+$['index']+'\x20'+$[I1lIlI(0x11d,'b&a%')]+'\x0a请重新登录获取cookie');continue;}$['UA']=await l1lIi1['NNlPP'](llliiI,$[I1lIlI(0x135,'uu%d')]),await l1lIi1[I1lIlI(0x145,'0Uzi')](lli),await $[I1lIlI(0x136,'1n9t')](0x5dc);}}else l1lIi1[I1lIlI(0x10f,'4ON4')](I1iIll);}if(IlII1){if(l1lIi1[I1lIlI(0x128,'51EW')]===l1lIi1['xzyXP'])iIIl1I['log']('失败,'+I1iIli?.[I1lIlI(0x125,'y7wx')]+':'+lI1Ill?.[I1lIlI(0x111,'m[j8')]);else{if($[I1lIlI(0x112,'UPnq')]())await IilIi1[I1lIlI(0x12d,'1XAS')](''+$[I1lIlI(0x118,'%C9b')],''+IlII1);$[I1lIlI(0x15b,'q7[t')]($['name'],'',IlII1);}}})()['catch'](llll1=>{const ii1ill=IIIII1;$[ii1ill(0x14b,'h]Wh')]('','❌\x20'+$['name']+',\x20失败!\x20原因:\x20'+llll1+'!','');})[IIIII1(0x167,'N#Yx')](()=>{const II1iI=IIIII1;$[II1iI(0x16d,'tBf%')]();});function iii1II(_0x432b79,_0x269c9f){const _0xba43b7=Iii11l();return iii1II=function(_0x41afb7,_0x19416e){_0x41afb7=_0x41afb7-0xc8;let _0x49f02d=_0xba43b7[_0x41afb7];if(iii1II['DGorKq']===undefined){var _0x13f04e=function(_0x3ae638){const _0x342626='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x55c89c='',_0x2ea925='';for(let _0x557d0d=0x0,_0x8f3688,_0x543da6,_0x8c185a=0x0;_0x543da6=_0x3ae638['charAt'](_0x8c185a++);~_0x543da6&&(_0x8f3688=_0x557d0d%0x4?_0x8f3688*0x40+_0x543da6:_0x543da6,_0x557d0d++%0x4)?_0x55c89c+=String['fromCharCode'](0xff&_0x8f3688>>(-0x2*_0x557d0d&0x6)):0x0){_0x543da6=_0x342626['indexOf'](_0x543da6);}for(let _0x2841e6=0x0,_0xc05a9=_0x55c89c['length'];_0x2841e6<_0xc05a9;_0x2841e6++){_0x2ea925+='%'+('00'+_0x55c89c['charCodeAt'](_0x2841e6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2ea925);};const _0x4ecda7=function(_0x93b90,_0x3652c3){let _0xe47210=[],_0x4007a3=0x0,_0x29371f,_0x6766da='';_0x93b90=_0x13f04e(_0x93b90);let _0x2a14d0;for(_0x2a14d0=0x0;_0x2a14d0<0x100;_0x2a14d0++){_0xe47210[_0x2a14d0]=_0x2a14d0;}for(_0x2a14d0=0x0;_0x2a14d0<0x100;_0x2a14d0++){_0x4007a3=(_0x4007a3+_0xe47210[_0x2a14d0]+_0x3652c3['charCodeAt'](_0x2a14d0%_0x3652c3['length']))%0x100,_0x29371f=_0xe47210[_0x2a14d0],_0xe47210[_0x2a14d0]=_0xe47210[_0x4007a3],_0xe47210[_0x4007a3]=_0x29371f;}_0x2a14d0=0x0,_0x4007a3=0x0;for(let _0x2be533=0x0;_0x2be533<_0x93b90['length'];_0x2be533++){_0x2a14d0=(_0x2a14d0+0x1)%0x100,_0x4007a3=(_0x4007a3+_0xe47210[_0x2a14d0])%0x100,_0x29371f=_0xe47210[_0x2a14d0],_0xe47210[_0x2a14d0]=_0xe47210[_0x4007a3],_0xe47210[_0x4007a3]=_0x29371f,_0x6766da+=String['fromCharCode'](_0x93b90['charCodeAt'](_0x2be533)^_0xe47210[(_0xe47210[_0x2a14d0]+_0xe47210[_0x4007a3])%0x100]);}return _0x6766da;};iii1II['nNtMlp']=_0x4ecda7,_0x432b79=arguments,iii1II['DGorKq']=!![];}const _0x1ce598=_0xba43b7[0x0],_0x468b8e=_0x41afb7+_0x1ce598,_0x448a4a=_0x432b79[_0x468b8e];return!_0x448a4a?(iii1II['axSuRP']===undefined&&(iii1II['axSuRP']=!![]),_0x49f02d=iii1II['nNtMlp'](_0x49f02d,_0x19416e),_0x432b79[_0x468b8e]=_0x49f02d):_0x49f02d=_0x448a4a,_0x49f02d;},iii1II(_0x432b79,_0x269c9f);}async function lli(){await lll(),await $['wait'](0x1f4);}function liIlI(lil11l,i1i1Il={}){const llI1II=IIIII1,I1lIl1={'hcokh':llI1II(0xef,'vE%S'),'MOgDF':function(i1i1Ii,lllii){return i1i1Ii+lllii;},'agaqT':function(iI11Ii,iIII1l){return iI11Ii+iIII1l;}};let lil11i=[],IlIIl=i1i1Il[llI1II(0x130,'0Uzi')]||'&',lI1liI=Object['keys'](lil11l);if(i1i1Il['sort'])lI1liI=lI1liI[llI1II(0xfb,')XaT')]();for(let lllil of lI1liI){let iI11Il=lil11l[lllil];if(iI11Il&&typeof iI11Il===I1lIl1[llI1II(0x18a,'51EW')])iI11Il=JSON[llI1II(0x100,'iGkE')](iI11Il);if(iI11Il&&i1i1Il['encode'])iI11Il=encodeURIComponent(iI11Il);lil11i[llI1II(0x15d,'q8Zw')](I1lIl1['MOgDF'](I1lIl1[llI1II(0xc9,'H*E0')](lllil,'='),iI11Il));}return lil11i['join'](IlIIl);}async function lll(){const lIli1l=IIIII1,iIII1i={'YHDCB':'object','tPjgX':function(IlIll1,IlIII){return IlIll1+IlIII;},'iSXxk':function(ilil1l,illlIi){return ilil1l!==illlIi;},'PwwJs':lIli1l(0xf0,'kg1y'),'diLEk':lIli1l(0xd7,'m[j8'),'MerNi':lIli1l(0x154,'l7s['),'guVyd':lIli1l(0xec,'xIrS'),'qehzK':lIli1l(0xe7,'t3wr'),'ZvlNG':lIli1l(0xcb,'Dl7H'),'xPqgT':function(I1lIii,IiI1I){return I1lIii*IiI1I;}},iil1i1=iIII1i['diLEk'];let il1i11={'url':IiI11+lIli1l(0x106,'lw5]'),'headers':{'Host':iIII1i['MerNi'],'Accept':iIII1i[lIli1l(0xd2,'BHm]')],'Cookie':i1i1I1,'User-Agent':$['UA'],'Accept-Language':iIII1i['qehzK'],'Accept-Encoding':lIli1l(0x15c,'kg1y'),'Referer':iIII1i[lIli1l(0xeb,'$!AY')]},'timeout':iIII1i['xPqgT'](0xa,0x3e8)};return new Promise(async illlIl=>{const lillIi=lIli1l,i11ill={'qYwpu':function(IIIIIi,IIIIIl){return IIIIIi===IIIIIl;},'CLBrV':iIII1i[lillIi(0x174,'Dl7H')],'kbNxJ':function(I1lIil,IIIl1i){return I1lIil(IIIl1i);},'INVXt':function(liiII1,IIIl1l){const illIi1=lillIi;return iIII1i[illIi1(0x14f,'O^#5')](liiII1,IIIl1l);},'xutSs':function(lllll,i11ili){const ii1ili=lillIi;return iIII1i[ii1ili(0x138,'dY1d')](lllll,i11ili);},'UBeJz':iIII1i[lillIi(0x13c,'q8Zw')],'ARont':function(iil1l1){return iil1l1();},'TyeWN':function(lllli){return lllli();}};$['post'](il1i11,async(iiili1,ill11i,lllill)=>{const liil1i=lillIi;try{if(iiili1)$[liil1i(0x151,'%C9b')](iiili1);else{if(i11ill[liil1i(0xed,'uu%d')](i11ill['UBeJz'],i11ill[liil1i(0xfa,'kg1y')])){let I1lIiI=Iil1I1[Ii1iII];if(I1lIiI&&i11ill['qYwpu'](typeof I1lIiI,i11ill[liil1i(0x132,'N#Yx')]))I1lIiI=l1i11I[liil1i(0xfd,'*#6m')](I1lIiI);if(I1lIiI&&II11II[liil1i(0x186,'BHm]')])I1lIiI=i11ill[liil1i(0x16c,'y7wx')](Ii1iI1,I1lIiI);lilIli['push'](i11ill[liil1i(0x12e,'2(Qf')](Iliili+'=',I1lIiI));}else{lllill=JSON[liil1i(0x17a,'C#e(')](lllill);if(lllill[liil1i(0x171,'xg]i')]==0x0&&!lllill?.['errorCode']){console[liil1i(0x11e,'l7s[')](liil1i(0x18d,'(Dcv')+(lllill?.[liil1i(0x10c,'51EW')]?.[liil1i(0x18b,'1n9t')]||0x0)+'次');let lllili=lllill?.[liil1i(0xd0,'uu%d')]?.[liil1i(0x12f,'dY1d')];while(lllili-->0x0){await i11ill[liil1i(0x181,'m[j8')](llli1),await $[liil1i(0x17c,'1XAS')](0x1f4);}}else lllill[liil1i(0x125,'y7wx')]==0x3?console[liil1i(0x159,'LCg$')]('失败,'+lllill?.['msg']):console[liil1i(0x113,'vE%S')](liil1i(0xda,'xIrS')+lllill?.['code']+':'+lllill?.[liil1i(0x177,'%C9b')]);}}}catch(IliiiI){$[liil1i(0xca,'y7wx')](IliiiI);}finally{i11ill[liil1i(0xfe,'tu@H')](illlIl);}});});}async function llli1(){const lI1lil=IIIII1,Ill11={'DUmEI':function(iI11I1,il1i1l){return iI11I1===il1i1l;},'nrmLw':function(IlIlll,IIIl1I){return IlIlll(IIIl1I);},'CDTqt':function(iil1ii,IlIlli){return iil1ii===IlIlli;},'HuxcS':function(il1i1i,lil111){return il1i1i==lil111;},'tGsKR':function(i11ilI,ii1ii1){return i11ilI!==ii1ii1;},'EkerF':lI1lil(0x146,'pYKO'),'KIimh':function(llllI,lllil1){return llllI===lllil1;},'ZMeNV':lI1lil(0x178,'8^SY'),'hENHO':lI1lil(0x170,')XaT'),'VASEp':lI1lil(0x179,'XVau'),'ZOUjI':'*/*','jdqsQ':lI1lil(0x153,'f0X*'),'GjtGo':lI1lil(0x180,'b&a%'),'shiwr':lI1lil(0x127,'O^#5')},liiIII='{\x22linkId\x22:\x22VqqTtZSSCVyyDOECMSHwug\x22}';let li1i11={'url':IiI11+lI1lil(0x107,'zz^J'),'headers':{'Host':Ill11['VASEp'],'Accept':Ill11['ZOUjI'],'Cookie':i1i1I1,'Origin':Ill11['jdqsQ'],'User-Agent':$['UA'],'Accept-Language':Ill11['GjtGo'],'Accept-Encoding':lI1lil(0x15e,'*LZq'),'Referer':Ill11[lI1lil(0x142,'tu@H')]},'timeout':0xa*0x3e8};return new Promise(iil1il=>{const lI1lii=lI1lil,ilil1I={'PQdoC':function(i11il1,ii1iiI){const i1l1iI=iii1II;return Ill11[i1l1iI(0x10d,'zz^J')](i11il1,ii1iiI);},'zdPuy':function(lllilI,ilil11){const liil1l=iii1II;return Ill11[liil1l(0x16a,'zz^J')](lllilI,ilil11);},'kcFvu':function(illlI1,IIIl11){return illlI1+IIIl11;},'XopaK':function(I1lIi1,liiIIi){return Ill11['CDTqt'](I1lIi1,liiIIi);},'CxqoK':lI1lii(0x158,'lw5]'),'iFZjC':lI1lii(0x10a,'zz^J'),'xrEcb':function(lil11I,Iliii1){return Ill11['HuxcS'](lil11I,Iliii1);},'COfep':lI1lii(0x169,'H*E0'),'CTEMP':function(iIiIi,iil1ll){const Iiili1=lI1lii;return Ill11[Iiili1(0x110,'2(Qf')](iIiIi,iil1ll);},'asNlv':function(iiilil,iil1li){const Iil1l1=lI1lii;return Ill11[Iil1l1(0x119,'q7[t')](iiilil,iil1li);},'RxyRl':Ill11['EkerF'],'JbDxX':lI1lii(0x120,'tu@H'),'HYJiz':function(lillIl,iIiIl){const i1i11I=lI1lii;return Ill11[i1i11I(0x115,'38o*')](lillIl,iIiIl);},'zlyMW':Ill11[lI1lii(0x149,'m[j8')],'fZjIk':lI1lii(0x157,'O^#5'),'tsGwe':Ill11[lI1lii(0xd6,'LCg$')],'KwFjQ':function(iiilii){return iiilii();}};$[lI1lii(0x162,'fXJj')](li1i11,(li1i1i,IlIli1,illIiI)=>{const il1iIl=lI1lii;try{if(li1i1i)$['log'](li1i1i);else{if(ilil1I[il1iIl(0x176,'dY1d')](ilil1I['CxqoK'],ilil1I['iFZjC']))ll1iI[il1iIl(0xd4,'lw5]')](''+(iI1lll?.[il1iIl(0x190,'dY1d')]?.[il1iIl(0xe4,'4ON4')]||'空气'));else{illIiI=JSON['parse'](illIiI);if(ilil1I[il1iIl(0xee,'51EW')](illIiI[il1iIl(0x15f,'BHm]')],0x0)&&!illIiI?.[il1iIl(0x168,'l7s[')])ilil1I[il1iIl(0xf9,'f0X*')]!==il1iIl(0xcf,'fXJj')?II1Ii['push'](i1ii[I1iIl1]):console[il1iIl(0x161,'fXJj')](''+(illIiI?.['data']?.[il1iIl(0x14c,'xIrS')]||'空气'));else{if(ilil1I['CTEMP'](illIiI[il1iIl(0xe9,'8^SY')],0x3)){if(ilil1I['asNlv'](ilil1I[il1iIl(0xe0,'Dl7H')],ilil1I[il1iIl(0xdc,'uu%d')]))console['log'](il1iIl(0x141,'*#6m')+illIiI?.[il1iIl(0x131,'(Dcv')]);else return IIlll[il1iIl(0x184,'UPnq')](liliI);}else{if(ilil1I[il1iIl(0x17b,'tBf%')](ilil1I[il1iIl(0x155,'t3wr')],'cYZiW')){let i11iil=[],Ill1i=li1I1[il1iIl(0x12c,'zz^J')]||'&',ii1iil=i1ilil[il1iIl(0x134,'BHm]')](lilIii);if(i1ill1['sort'])ii1iil=ii1iil[il1iIl(0x156,'Dl7H')]();for(let lllI1l of ii1iil){let i11iii=Ii1iIi[lllI1l];if(i11iii&&ilil1I[il1iIl(0xf1,'8^SY')](typeof i11iii,il1iIl(0x17e,'f0X*')))i11iii=iliIIl['stringify'](i11iii);if(i11iii&&Ii1iIl['encode'])i11iii=ilil1I[il1iIl(0x185,'H*E0')](iliIIi,i11iii);i11iil[il1iIl(0x126,'N#Yx')](ilil1I[il1iIl(0x129,'tu@H')](ilil1I[il1iIl(0x109,'XVau')](lllI1l,'='),i11iii));}return i11iil[il1iIl(0x13b,'N#Yx')](Ill1i);}else console[il1iIl(0x18e,'N#Yx')]('失败,'+illIiI?.['code']+':'+illIiI?.[il1iIl(0x12b,'H*E0')]);}}}}}catch(llI1Ii){ilil1I[il1iIl(0xd8,'UPnq')](ilil1I[il1iIl(0x11b,'q7[t')],ilil1I['fZjIk'])?$[il1iIl(0x144,'*LZq')](llI1Ii):ilI1li['log']('失败,'+IIliI?.['code']+':'+ilI1ll?.[il1iIl(0x177,'%C9b')]);}finally{ilil1I['tsGwe']===ilil1I[il1iIl(0xd3,'kg1y')]?ilil1I['KwFjQ'](iil1il):i1illl[il1iIl(0xdf,'dY1d')](I1llil);}});});}function iIli1i(II1i1){const iii1ii=IIIII1,lI1lll={'ELWnb':function(iIiII,iil1lI){return iIiII==iil1lI;},'soiSe':function(iiiliI,li1i1I){return iiiliI!==li1i1I;},'haafK':iii1ii(0xdd,'$!AY'),'OtQQK':iii1ii(0x150,'tBf%')};if(lI1lll[iii1ii(0xd5,')XaT')](typeof II1i1,iii1ii(0x11f,'t3wr'))){if(lI1lll[iii1ii(0xcd,'51EW')](lI1lll[iii1ii(0x189,'kg1y')],lI1lll[iii1ii(0x11c,'BHm]')]))IIli1I[iii1ii(0xfc,'tu@H')](iii1ii(0x108,'dY1d')+I1i11I?.['msg']);else try{return JSON[iii1ii(0x140,'f0X*')](II1i1);}catch(ii1il1){return console['log'](ii1il1),$[iii1ii(0x15a,'pk#R')]($[iii1ii(0x10b,'*LZq')],'',lI1lll[iii1ii(0x116,'dY1d')]),[];}}}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)}