-
Notifications
You must be signed in to change notification settings - Fork 486
/
jd_fz_draw.js
10 lines (8 loc) · 37.8 KB
/
jd_fz_draw.js
1
2
3
4
5
6
7
8
9
10
/*
服装抽奖
cron "1 1 1 1 *" script-path=jd_fz_draw.js, tag=服装抽奖
*/
const $ = new Env('服装抽奖');
var iil='jsjiami.com.v7';const l1iIII=iii1II;function iii1II(_0x5088c3,_0x2968a4){const _0xf8c0eb=Iii11l();return iii1II=function(_0x4a5e21,_0x1fb884){_0x4a5e21=_0x4a5e21-0x70;let _0xe607ca=_0xf8c0eb[_0x4a5e21];if(iii1II['OrXBBs']===undefined){var _0x120129=function(_0x14b528){const _0x271a7e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3d6385='',_0xe3e347='';for(let _0xd6c5e0=0x0,_0x5bc9e2,_0x18c995,_0x58b4fa=0x0;_0x18c995=_0x14b528['charAt'](_0x58b4fa++);~_0x18c995&&(_0x5bc9e2=_0xd6c5e0%0x4?_0x5bc9e2*0x40+_0x18c995:_0x18c995,_0xd6c5e0++%0x4)?_0x3d6385+=String['fromCharCode'](0xff&_0x5bc9e2>>(-0x2*_0xd6c5e0&0x6)):0x0){_0x18c995=_0x271a7e['indexOf'](_0x18c995);}for(let _0x195b74=0x0,_0xe1eea=_0x3d6385['length'];_0x195b74<_0xe1eea;_0x195b74++){_0xe3e347+='%'+('00'+_0x3d6385['charCodeAt'](_0x195b74)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xe3e347);};const _0xcba6a4=function(_0x1dc5b2,_0x3c3d65){let _0x5962e9=[],_0x24239a=0x0,_0x33436b,_0x578e71='';_0x1dc5b2=_0x120129(_0x1dc5b2);let _0x574ec0;for(_0x574ec0=0x0;_0x574ec0<0x100;_0x574ec0++){_0x5962e9[_0x574ec0]=_0x574ec0;}for(_0x574ec0=0x0;_0x574ec0<0x100;_0x574ec0++){_0x24239a=(_0x24239a+_0x5962e9[_0x574ec0]+_0x3c3d65['charCodeAt'](_0x574ec0%_0x3c3d65['length']))%0x100,_0x33436b=_0x5962e9[_0x574ec0],_0x5962e9[_0x574ec0]=_0x5962e9[_0x24239a],_0x5962e9[_0x24239a]=_0x33436b;}_0x574ec0=0x0,_0x24239a=0x0;for(let _0x280f4c=0x0;_0x280f4c<_0x1dc5b2['length'];_0x280f4c++){_0x574ec0=(_0x574ec0+0x1)%0x100,_0x24239a=(_0x24239a+_0x5962e9[_0x574ec0])%0x100,_0x33436b=_0x5962e9[_0x574ec0],_0x5962e9[_0x574ec0]=_0x5962e9[_0x24239a],_0x5962e9[_0x24239a]=_0x33436b,_0x578e71+=String['fromCharCode'](_0x1dc5b2['charCodeAt'](_0x280f4c)^_0x5962e9[(_0x5962e9[_0x574ec0]+_0x5962e9[_0x24239a])%0x100]);}return _0x578e71;};iii1II['NsfgpU']=_0xcba6a4,_0x5088c3=arguments,iii1II['OrXBBs']=!![];}const _0x61cc85=_0xf8c0eb[0x0],_0x548d7d=_0x4a5e21+_0x61cc85,_0x47b081=_0x5088c3[_0x548d7d];return!_0x47b081?(iii1II['tzXHrv']===undefined&&(iii1II['tzXHrv']=!![]),_0xe607ca=iii1II['NsfgpU'](_0xe607ca,_0x1fb884),_0x5088c3[_0x548d7d]=_0xe607ca):_0xe607ca=_0x47b081,_0xe607ca;},iii1II(_0x5088c3,_0x2968a4);}(function(lllI1i,li1i1l,II1i1,lI1lll,iIiII,iil1lI,iiiliI){return lllI1i=lllI1i>>0x8,iil1lI='hs',iiiliI='hs',function(li1i1I,illIii,ii1il1,lI1llI,illIil){const l1l111=iii1II;lI1llI='tfi',iil1lI=lI1llI+iil1lI,illIil='up',iiiliI+=illIil,iil1lI=ii1il1(iil1lI),iiiliI=ii1il1(iiiliI),ii1il1=0x0;const Ill1I=li1i1I();while(!![]&&--lI1lll+illIii){try{lI1llI=parseInt(l1l111(0xd4,'S4Vx'))/0x1+-parseInt(l1l111(0x95,'zok['))/0x2+-parseInt(l1l111(0x1b1,'S4Vx'))/0x3+parseInt(l1l111(0x89,'%6GG'))/0x4*(-parseInt(l1l111(0x8b,'^USJ'))/0x5)+-parseInt(l1l111(0x150,'jCY0'))/0x6+-parseInt(l1l111(0x16f,'gKB7'))/0x7*(parseInt(l1l111(0xfa,'p#gK'))/0x8)+-parseInt(l1l111(0xb7,'6Yt@'))/0x9*(-parseInt(l1l111(0x16c,'%6GG'))/0xa);}catch(i11iiI){lI1llI=ii1il1;}finally{illIil=Ill1I[iil1lI]();if(lllI1i<=lI1lll)ii1il1?iIiII?lI1llI=illIil:iIiII=illIil:ii1il1=illIil;else{if(ii1il1==iIiII['replace'](/[AOFLKNxkrSlRfTQMwyedu=]/g,'')){if(lI1llI===illIii){Ill1I['un'+iil1lI](illIil);break;}Ill1I[iiiliI](illIil);}}}}}(II1i1,li1i1l,function(lIli11,lllI1I,lillI1,IlIlii,i1l1i1,liil11,iiillI){return lllI1I='\x73\x70\x6c\x69\x74',lIli11=arguments[0x0],lIli11=lIli11[lllI1I](''),lillI1=`\x72\x65\x76\x65\x72\x73\x65`,lIli11=lIli11[lillI1]('\x76'),IlIlii=`\x6a\x6f\x69\x6e`,(0x1649ff,lIli11[IlIlii](''));});}(0xc800,0x6bee7,Iii11l,0xca),Iii11l)&&(iil=Iii11l);function Iii11l(){const lllI11=(function(){return[...[iil,'KjRLsjyfNidalmiKQ.MxcAormu.v7OFFTQwSAAek==','nmoKWRhcQtW','WPFdTCkZya','nxRdTCoPWPeatSogW7Du','W5NcU8o/WPXgW5dcUSk8','eg5PW4/dJ8oZW4BcNCkxpSo8WQ4','W5dcM8kkWR/dL0dcQdLafmopWPq','W4hcM8krW41t','fmonWRFcPt41','ifFcIILCWRO','rY/dNSoy','gr3dTCkzW7RcVmouxW','F8ouWPKHv8k2','dxqFW5q','W7mHW7/cS8kv','xqBcTmkCWR1+','j2DHkSoqC8kvECoDjCkTseikC8k4lGi','Ag3dGcNdHYy9W6xcPevXW5ZdRWZdRa','yCkLaWRcTW','hg94W6ZdVG','W4JcRqyHgSkxW60','5P2Y6kY25lMW5yMX5Asy6lAsW78','sayjW7ldHq','WPZdRtfpvSocWRW1WR50xuXw','dtFdOmkUW4y','WQxdJmkeqLvwtSkKWOBcRCogWRiNW4pcTCoTEmo1imkbjSo7WQH5WRiSW5PSWRfZW456W6i','lCoHWO0uFmkgza','WOJORyBMSzBLPjtOTltdLokEPYe','W7yGW6/cOSkiwWhcR8oTf13cOSouW7edASkugW','W6NdQgrGyW','gCoFWPJcRZO','WQddNCkatW','WQlcTdNcOmotymknW6O6WR7cOa','WPZdRtfpvSofWQyWWOL4FfjF','EJPLAMbAfa','W4HxWQyNW4RcRW','k8k2ffRdR2jvWRqoqNb+WQ7cVq','rq49WRS6qM/dP8k2W4e','yeBdSSowW4SF','lCk2cua','W5TAW5KGW60','WPpcUNRcOfFcOdbP','hmo5BcDws8kbW5BdLq','ohbHf8o6','hSoksH1s','6l2J5yA86Aws6AoI5Asi6lwuqa','W7aTg8kvWOu','xqaP','ihqpW71PW6fXW6i','WPVcO1JcOvi','WP3dRrPoAW','srhdQxJdRCkl','WOW8W5pcN8kgWRL2md3cG3jjDCkHW6eaW6tdJSo2WPddL2hdOfi','W51RW7GqW5O','6lAE5yYU5PsK5PEF','5OIq5AEE5AsW6lwdsG','EdRcRSojfdm','5lIF5yUP5AAw6lEk77+55RcI5P2q6i6O5y6k5yUd5lUG5yUguCol','gmocW5O0zG','WR3dL8karxy','W4vKW4/dVsRcKSkFW7fElSo4Emowwq','ow/dKSo7WOmmzW','dqZdPmkZW5a','W67dH8k+W4DTe8k0','W7iubSkLWP5VW6PzW5tdKa','wq3dQfddQSkVWPPPWQKFW40','WPJdMmkWW7Pz','5y6u5ykIWQ0','WR4LWQJcPN8','W64UW6JcVCk5uaJcHW','WOFdVSofuSouhcNcLCk8W7i0jCkpWRq','ESoeWQZdRG','WOpdNILIAG','W7PgWPmZW60','AvVdPW','F8ouWPKdvG','W5lcTSkTW7K','CvxdS8oWW6WbrSkR','WRpcNvW','WQRdImk2W49h','W6XLW6nsW5VdISk+W6rC','cCoOsY1XsCkXW5/dHmktWPOe','ySosWPFcKmo9','CIeyW7q','5AsY5y6w5AYA5lUv776U5lQV5PA35OUl5P+l5lUx5yQ36ygV5Bw857QU5AYf5OQV77Yx','W4VcTHOnbCkC','AfRdHSonW7y','WQRcMh0TWP8','W4xdVhuwfCksW64JW5GjarRcSXJdJXXbrX4/WOitWQ7cMW','W5NcQCkqW7zkgIJdPmoJW6bNWP0','W4pcVSkXWOtdLW','6l+35ysg6Asn6Aga5AAV6lEjW5K','ovVdK8oFWOu','d1WxW7Hv','W7ywimkjWP5J','5P6U6k+Q5lUU5yU/5AAe6lsKW4a','WQ/cK0KhWPT2DrVdHKi','W4BdHHf0aG','W69YW75RW5hdOCkWW75A','CvxdS8oWW74rwmkNW4hcOJP2','pLNcKdLwWQxdKSkCW6XGWRKecCoH','44ci5O+p56At44gc6k2v5ysT6i+L5y2DWOfdECo5W6Ce','W7lcPSo5WP1AW5a','WRaYW77cPmk0','ph7dLCo4WPfrlCkaW7rsWQddHCoLz8kvj0RdUSkQkHNcHmoj','W5tcMCkSWPpdL0W','dCoGcWW','W7HLW6nzWOhdLSkH','WO/dQ8oNg2SDaq','d8oVW4StzW','yCkxW7K2n8k4fCoI','W6CfiCkVWRL9W5zv','EJJcN8ojeZ3cOCovCmo0gKq','DuhdS8oZ','oYpdTmkNW5u','x8kkW6qapCkrhCoHda','p2LMnCoHAmkywmoz','W6VcUSkIW7fG','W5ZdMwWnmG','W5pdGLFdISkZ','W5SbW57cGSkx','jmoPBgZdK07cPCk9W4LEEMe'],...(function(){return[...['EmkYeJpcKa','j37dGmo8WPCy','W7LMW7LNW64','W57cSrSO','fCoohdhcNa','q1xdJSoDW5O','W4pdGqTHma','EJOGB8kbomozvCoVjCkqqe8','WPldTI5gsG','W7BdQgC','FCkBW7tdQsC','W74kfmksWQm','WOFdVSow','WPhdJ8krxhjuqSk1','rq49WRSNrwJdRSkH','zSoNWQBcLCoIea/cNY0yW7mZ','WPJdHaPQAW','W4hdP2y','DGpcVSkgWPK','kGJdVSkDW64','5P2/6k6T5lMG5yM35AEC6lsmva','dCoKW60VsG8VWQeKaLBcMG','W4v8WO0MW7e','WPq6W47cLCkqW4OTEJhcGa','WQldOmoUWRqE','BCoEWQhdQhu+aW','W4tdNNm','W5tcTSkWW6nCaXxdJmo2W6jMWPGah8k+WQ3cLIK','W77dPNtdUa','eSkDgeJdPa','vYfw','W5xcT8kcW4f3','zrKGWR4X','mEIUUEAWVUwMOoI2H8oL4P2ygoAwNowsN+w6RUAuMEAoIG','W6mwo8k+WOHnW5jvW4RdLW','v8kQW7qGtWKUWQm+dW','nmkjWP4ytCk9ymocW6vqW7r5k8kNW4TlwmkZESoqW53dItZdP8oXW4jz','W57cSmk8','rSkxW74','trpdJ1tdRCkhWRfJWRyxW4ez','vHL4wHO','dmojWQRcQrKYvmoascRcJSkGWPO','WONdVbzfDSobWP8RWPLP','AdPEWQ0viuifW41icru','WRRdR8k2W5LCiW','W7/dTxldLmkuCW','WRRcGeKRWOvI','W7bDW7WHW43cHSkUlCoEW7ToW6BdNmkK','jLFcLYz6WRNdMmk6W7z1','W53dUMGCaW','W7ZdJw/cQbnsWRJcISoZWOu','WPeVWO7cIwVdHW','WQ3dOCkRW5r8kSkWA33cUW','8jsPK8kT','5A6j5OIK5lM75yI65AAj6lwDgG','W6/dNg/cIHC','C8oJWQJcO8oa','wJ5LWRW5bMeyW4PzeGG','xCohWOhcRmoJ','dmo5AY0','5A+K5OQi5lUK5yUT5AsZ6lshW5K','WOJdVSovqW','WP/dRsTq','WOq8WO7cPxxdK8oIWQbpcG','p8k3geddNW','ySkUtmo6yghcLcSCca','W5RcPrSRiSkcW6rp','AWD6WRuM','emonWRJcPI8VuG','B8o6WQ/dOeq','W6JcS8oTWO4gFCoZsKZcImomkNe','WRhdP2xcMGnOWQe','sahcTCk5','hxfjW5RdMCoQW7VcTCkcpmo9WQVcJmkQW67cMWhcGG','Fmk/ptJcNG','W4vOW4VdSsdcKSkwWObjcCoECmoe','FSohWP8n','Er3dG8kkW7/cPCoF','WOpdGSopiKO','5PQA5PY16iYE5y6f5OQY5yU6','iahdTW','W73dH1iY','vCk1W5S0ca','q8kxW7KopCkTbCopaCkSW6yOWOf/','WRVdHCofm0SN','WPa8WOJcPq','WQ43WRpcNL4','xYHoWOa1WR8OW4HSWOmXs8oj','WQRdHSkoW69+','BCkPqCo/zM3cVZ0','W4ldGHfFx8k1WQC','F3RdNr/dGXe3W7JcTM1MW6ldMatdU8omF8opW7O','c37cKs5u','W5BcJSkQWPpdGvJcNZ1tea','ttLtDr0','dSoKW7CW','AWVdIKddMW','W43dUNNcMra','Et5LqW','WQ/cH0Go','W4xdVhuwfCksW64JW4Klb1dcU0dcIXvbtHv8W44DWRpdNqJdMSkpW4jpW4NcKCk8sCkwW6TLqHtdQYOUsSogWPPMWQvAW77dK8koW6aLc8kdm8oXjmk6ngdcSCozWPvsmxSNW5xcKCkQxSoXmu0Y','Ec1JBYzo','zCkWBmo7zW','qaZdVa','sY9dWRWNhMKqW41m','kNHMgSoAvCknr8ox','lr7dOmkhW53cVSoytIVcVmoNf8kii8ojxWXehYGsW6ldM8oAFSkyxsJcQCkEpxX+','W7tcVCk7WOtdRG','FYyM','DSk+ptG','nSkUW4hdJCkJsxldIJW8W58AgSkj','W4NdIajsgmk0','4P2DBUIfPUAEVEI9SUIIIEMcG+wiIos7UUMvI+IVLwm','W6mfimkLWOb3W6jrW5pdHq','W4b0WQy9W54','vGO6WPWswhNdSCkWW7rwvSkOlhRdNCopgSoN','wmo0WQq7D8kuta','wrS6WQaafJpcRCkLW4vpcmktz2ldISkifSoMW6SUd8k+sq','bmoKeIxcKCkEWOhdG1biWOVcM8oCvHtdQCk8fSoV','d2SiW7vPW5j5W79e','W49rW64ZW7e','ph/dUCocW6eSxa','ySkifINcGq'],...(function(){return['W4ZdUfuhfCodWO1LW4Onava','k8k8dKNdVNG','W4JdUNmRfCop','W4NcVZvvxW','W4VdPLFdQCkt','fCojWQK','W6O9W7lcRmki','fgXpW6pdJ8o/','W5fVW6nDW5VdGSk8W6m','axddSSocWRm','W5lcHmk6WRS','W4RdOhSKka','BSohWPGhBCkLDSkaW7TCW6vO','D8oLWPVcJSo0mJ/cNZqk','WR3dVCoCoNW','WO/dSmofrW','CSoeWQu','c2KjW7X1W6e','W7RdJxlcPZvr','rGddQghdHa','5A225OUe5lUI5yMT5Ast6lEHEq','WOGNW4a','FZf7AaW','W6ZdOeJcHcm','yLhdTmoxW5Kmu8k9W4BcIY9IBb/cKSkMW44hpG','D0hdRSoEW5yC','WONdV8oBBmoO','EJaGB8kaoCkUzCoilmkhBW','6l+Q5ysk6AEy6AkL5Awc6lsjma','d2SVW5b1W61uW6vCWRa','W4ZcUmk3W7XTcbZdPa','ogxdHG','C8o2WOhcN8ofaJVcNW','5OIf5AAp5AE16lAYfq','qtldQwldUq','W51xWR0qW5W','d2SVW5b1W61CW6LBWQuHta','qW4GWRqCqq','ggPyW4pdTCo8','6log6lgQ5y2L5lUH','W6/dVuDkFq','pLpcIIPhWR8','ALhdMsNdQG','zCkCmdZcSq','DhddJG','CmoAWPBcUmoW','d8ojWRdcTG','W7/cHmoPWPf/','W6i3aSkgWQy','iahdPmkFW5hcR8oaDYpcSmoHuCkEA8o2rXym','vqFcOq','FIpdL8oBtW','kNHbp8ogASkGxCopmG','W7NdQ1KsfG','wtddThJdMG','FSk2W44kgW','5P+96k+95lMs5yUY5AAt6lwaFG','dmoIW5SmDq','EMNdHGVdRW','rYJdHmokza','WQVcG0WsWOy','W7VcU8oS','jSkPne/dUxTOWPisqNDX','awXuW5tdMCoBW63cLSkfnSoYWOZcG8kIW4m','qr0NWQOw','hvFcRGtcPSouW41wWRmDW6edW68','ASokWRhdOemIbConjmk9aSk8hW','WP3MIANLP53OJAFLVR7cJCoZWOK','6lsH5y2G5Pss5PA8','5yYZ5yo2pa','W7dcSSkUWPVdLG','ACoiWO8bDq','chixW4vJW7q','vGO6WPWCs3xdRmkxW4fhuSkloG','WQNcT3/cQNS','saBcR8kRWQS','tmkxW6KF','WQxdI8om','6l6j5ywt6AwY6Ac45Asc6lEYWOC','W6tdG3S','ASokWRhdOfyKhSownmkWmSkQ','W4RcPrWH','5yYN5ygOWQG','4P2xAoAFOEIbLEASG+EGUowNQEEsUIm','m0BcScXaWRZdP8k2W7D1','ASokWRhdOfqIjmowkSk9ja','W4ZdNK13yG','W4fkWRm','gCoyWO3cOZK2zCoxxY7cSSk+','s8orWOivzW','W67cLSoEbbyFjq','oa/dO8kaW6FcSSomschcTSoCsSkC','jSohntRcGq','bx9oW4xdTCo2W7hcNCkrkW','iMzXo8on','W53dN3NcSrrDWQBcIG','WQ3dTmkcW6HK','lNPNe8ogzG','xbxcSSkW','W4/cTdWHbCkqW5HdCw0','g0XUW6/dTa','vbVcOq','WONdVdfGASo+WRiXWOe','ymoaWQe1tG','fConWQRcSsS6ra','44g45O2i56sL44gD6k+15ywQ6i2c5y2SW7pcNCkCaZOS','W5xdLqXTd8ksWQRdHYG','WQNdMCkhxv1ssG','WQeTW6lcJCkW','W6FcPSoIWQPmW6pcQSkIgq','va0RWRmq','5A695OM/5lQ15yMXx+AkKEwLIUAUO+AwTo++RW','WOddRmkZW51m','w8kzW74rhSk2eSoLgSkLW60V','e1tcKbvx','aNqC','W4ddQ0Oiea','W4ZdPHjWeG','vsBcGCoVmG','W73cSaCWkCk3W7TEDNZdMSo8'];}())];}())];}());Iii11l=function(){return lllI11;};return Iii11l();};const jdCookie=require(l1iIII(0x1cd,'&mtE')),notify=require(l1iIII(0x1ce,'rX(7')),common=require('./utils/Rebels_jdCommon'),{H5st}=require('./utils/Rebels_H'),isNotify=![];let linkId='_J3DU5wIUFv6eTjV8KMtNg',cookie='';const cookiesArr=Object['keys'](jdCookie)[l1iIII(0xbe,'bXgD')](IiIl=>jdCookie[IiIl])[l1iIII(0x101,'zok[')](IiIi=>IiIi);!cookiesArr[0x0]&&($[l1iIII(0xeb,'aR^N')]($['name'],l1iIII(0x122,'ZOcs')),process['exit'](0x1));!(async()=>{const llI1I1=l1iIII,iI1ll1={'uSoMD':function(IlI1Il,l1il1l){return IlI1Il<l1il1l;},'GMZfJ':llI1I1(0x90,']20!'),'LGcTd':llI1I1(0xc2,'93Y6'),'anUAB':function(liIil,IllI1I){return liIil+IllI1I;},'uaXjn':function(liIii,II1ll1){return liIii(II1ll1);},'AevTv':function(IlI1Ii){return IlI1Ii();}};notify[llI1I1(0x1d6,'gKB7')]({'title':$['name']});for(let i11I1I=0x0;iI1ll1[llI1I1(0xef,'p#gK')](i11I1I,cookiesArr[llI1I1(0xe2,'U050')]);i11I1I++){if(iI1ll1['GMZfJ']!==iI1ll1['LGcTd']){$[llI1I1(0x88,'hMIZ')]=iI1ll1['anUAB'](i11I1I,0x1),cookie=cookiesArr[i11I1I],common[llI1I1(0x180,'6TIB')](cookie),$[llI1I1(0x118,'P(DU')]=iI1ll1[llI1I1(0x162,'KF1l')](decodeURIComponent,common['getCookieValue'](cookie,'pt_pin')),$['UA']=common['genUA']($[llI1I1(0x13b,'^USJ')]),$['message']=notify[llI1I1(0x168,'dir8')]($[llI1I1(0x117,'S4Vx')],$['UserName']),$['nickName']='',console[llI1I1(0xf6,'TbGb')]('\x0a******开始【京东账号'+$[llI1I1(0x88,'hMIZ')]+'】'+($['nickName']||$[llI1I1(0x1b7,'hmgl')])+llI1I1(0x113,'hmgl')),await iI1ll1['AevTv'](Main),common[llI1I1(0x171,'p#gK')]();if($[llI1I1(0xd2,'6Yt@')])break;await $['wait'](0x3e8);}else iii1Ii[llI1I1(0x15f,'c0as')](llI1I1(0xae,'$d$w')+iii1Il);}isNotify&¬ify[llI1I1(0x9b,'fUXn')]()&&(notify['appendContent']('\x0a'),await notify[llI1I1(0xa1,'5HQr')]());})()[l1iIII(0x191,'etA8')](ll1=>$[l1iIII(0xad,'etA8')](ll1))[l1iIII(0x144,'cqN8')](()=>$[l1iIII(0x177,'IYOu')]());async function Main(){const IlIlil=l1iIII,iI1llI={'mnFVN':IlIlil(0x169,'ni*3'),'zzlbO':'太厉害了,今日所有任务都已经完成!','TwsMh':function(IllI11,l1llIi){return IllI11!==l1llIi;},'QwiyC':'tqwtp','mQrWg':function(II1llI,i11I11){return II1llI(i11I11);},'jRSAH':IlIlil(0xea,'^USJ'),'TcXtp':function(l1llIl,ii1I1l){return l1llIl===ii1I1l;},'ouflw':function(ii1I1i,llI){return ii1I1i===llI;},'UDxfn':'IXJUk','hyWNt':IlIlil(0x174,'%6GG'),'hYYLH':IlIlil(0x8d,'M[m2'),'xQlGr':IlIlil(0xed,'S4Vx'),'KFixO':function(llliI,iI1li1){return llliI<iI1li1;},'QtdtB':IlIlil(0x1a4,'S4Vx'),'sjWkp':IlIlil(0x17d,'6Yt@'),'CTqYT':IlIlil(0x151,'KF1l'),'RErIM':'taskDoTimes','PIKhl':IlIlil(0x193,'6Yt@'),'NnJGR':IlIlil(0xb2,'rX(7'),'vOzXl':IlIlil(0x120,'rX(7'),'mqEBB':function(lllii1,liIli,liIll){return lllii1(liIli,liIll);},'ttZWQ':function(IilIi1,iI1liI){return IilIi1*iI1liI;},'qQmkT':function(l1lIiI,llliiI){return l1lIiI<llliiI;},'eEedl':function(IilIiI,i1i1I1){return IilIiI(i1i1I1);},'gpsIM':'apsDoTask','UPThi':function(IlII1,IiI11){return IlII1+IiI11;},'rLDkk':IlIlil(0x132,'hmgl'),'ujFKi':function(lli,liIlI){return lli!==liIlI;},'QNCpC':function(lll,llli1){return lll(llli1);},'wYOtg':function(iIli1i,iI1lii){return iIli1i+iI1lii;},'bvoXM':IlIlil(0x19c,'cIJL'),'ANETz':function(IilIii,iI1lil){return IilIii(iI1lil);},'TvnnB':IlIlil(0x181,'ZOcs'),'qVXQY':IlIlil(0x19d,'&mtE'),'qXZZb':function(l1lIi1,iIli1l){return l1lIi1!==iIli1l;},'QaWpt':function(i1i1II,liiIIl){return i1i1II(liiIIl);},'BhUze':function(iil1iI,IlIllI,il1i1I){return iil1iI(IlIllI,il1i1I);},'Ylkby':function(lI1li1,iI11II){return lI1li1>iI11II;},'kRkFo':'lotteryMachineDraw','WwIbo':function(iIII1I,ilil1i){return iIII1I+ilil1i;},'IEWST':IlIlil(0x1aa,'hMIZ'),'ZjOZF':function(IlIIi,IiI1l){return IlIIi!==IiI1l;},'IHVkN':IlIlil(0x15e,'ee$x'),'TzYKA':IlIlil(0x1af,'6Yt@')},llliii=await common[IlIlil(0x102,'c0as')](cookie);if(!llliii&&typeof llliii==='boolean'){if(iI1llI['TwsMh'](iI1llI[IlIlil(0x112,'rX(7')],IlIlil(0xf5,'5HQr')))i1iliI['log'](iI1llI[IlIlil(0x1c9,'cPvm')]);else{console[IlIlil(0x110,'mzd]')](IlIlil(0xfd,'$P*&'));return;}}try{$[IlIlil(0xc1,'6TIB')]=![],$[IlIlil(0x130,'cqN8')]=![],$[IlIlil(0x1d9,'@ntp')]=0x0,$[IlIlil(0xf9,'c0as')]=[],await iI1llI[IlIlil(0xdb,'p#gK')](sendRequest,iI1llI[IlIlil(0x11d,'t6KC')]);if($[IlIlil(0x160,'zok[')]){if(iI1llI[IlIlil(0xee,'pg)0')]($[IlIlil(0x13e,'*xci')],0x1)&&$[IlIlil(0x1c1,'ni*3')]){if(iI1llI['ouflw'](iI1llI[IlIlil(0x1c7,'T#*5')],iI1llI['hyWNt']))i1l1li['prizeItems']=i1ilii?.['data']?.['prizeItems'],iIIII1[IlIlil(0x91,']20!')]=i1l1ll?.[IlIlil(0x1c6,'jCY0')]?.['remainTimes'],I1iIiI[IlIlil(0x134,'TbGb')]=!![];else{let lil11l='';for(let i1i1Il=0x0;i1i1Il<$['prizeItems'][IlIlil(0xba,'T#*5')];i1i1Il++){const I1lIl1=$['prizeItems'][i1i1Il],lil11i=I1lIl1[IlIlil(0x1a3,']20!')]||iI1llI[IlIlil(0x1c0,'mzd]')];lil11l+='\x20\x20'+lil11i+'\x0a';}console[IlIlil(0xc9,'IYOu')]($['name']+'活动奖品:\x0a'+lil11l);}}$[IlIlil(0x10d,'U050')]='',await iI1llI['mQrWg'](sendRequest,iI1llI['xQlGr']);let iIII11=![],IiI1i=$[IlIlil(0x1d4,'KF1l')]||[];for(let IlIIl=0x0;iI1llI['KFixO'](IlIIl,IiI1i['length']);IlIIl++){$['taskTitle']=IiI1i[IlIIl][iI1llI['QtdtB']],$[IlIlil(0x77,'[rbG')]=IiI1i[IlIIl]['id'],$[IlIlil(0xd9,'$P*&')]=IiI1i[IlIIl][iI1llI['sjWkp']],$[IlIlil(0x114,'^USJ')]=IiI1i[IlIIl][iI1llI['CTqYT']],$[IlIlil(0x10e,'IYOu')]=IiI1i[IlIIl][iI1llI['RErIM']],$[IlIlil(0x1bf,'&mtE')]=IiI1i[IlIIl][iI1llI[IlIlil(0x81,'[rbG')]],$[IlIlil(0x147,'KF1l')]=IiI1i[IlIIl]['taskShowTitle'];if(!$[IlIlil(0x12a,']20!')]&&$[IlIlil(0xd7,'cPvm')]['includes'](iI1llI[IlIlil(0x12f,'dir8')])){if(iI1llI[IlIlil(0x1ae,'Lqmc')]!=='QghWO'){if($[IlIlil(0x1d3,'bXgD')])for(let lI1liI=0x0;iI1llI[IlIlil(0x1d2,'*rh9')](lI1liI,0x1);lI1liI++){iIII11=!![],console[IlIlil(0x1bb,'pg)0')]('去做\x20'+$[IlIlil(0x1b8,'c0as')]),await iI1llI[IlIlil(0x18c,'93Y6')](sendRequest,IlIlil(0xa7,'S4Vx')),await $['wait'](iI1llI['mqEBB'](parseInt,iI1llI[IlIlil(0x142,'hMIZ')](Math['random'](),0x5dc)+0x5dc,0xa));}else for(let i1i1Ii=0x0;iI1llI[IlIlil(0x1a6,'pg)0')](i1i1Ii,0x1);i1i1Ii++){iIII11=!![],console[IlIlil(0x17a,'6Yt@')](IlIlil(0x173,']20!')+$[IlIlil(0x15a,'ZOcs')]),$[IlIlil(0xdd,'zok[')]='',await iI1llI[IlIlil(0x182,'$P*&')](sendRequest,IlIlil(0xf7,'T#*5'));const lllii=$[IlIlil(0x135,'t6KC')]?.['taskItemList']||[],iI11Ii=$[IlIlil(0x189,'cPvm')]?.[IlIlil(0x1ab,'93Y6')]?.[IlIlil(0x7f,')YJ6')];for(let iIII1l=0x0;iI1llI[IlIlil(0x83,'IYOu')](iIII1l,iI11Ii);iIII1l++){const lllil=lllii[iIII1l];lllil?($[IlIlil(0xfb,'IYOu')]=lllil[IlIlil(0xdf,'t6KC')],$[IlIlil(0x116,'t6KC')]=lllil[IlIlil(0x155,'c0as')],await iI1llI[IlIlil(0xb0,'mzd]')](sendRequest,iI1llI['gpsIM']),await $[IlIlil(0xe7,'bXgD')](parseInt(iI1llI['UPThi'](iI1llI['ttZWQ'](Math[IlIlil(0xde,'c0as')](),0x5dc),0x5dc),0xa))):console[IlIlil(0xf6,'TbGb')](iI1llI[IlIlil(0x186,'6Yt@')]);}}}else lilIiI['log'](IlIlil(0xfc,'TbGb')+i1l1I[IlIlil(0x104,'aR^N')][IlIlil(0x17c,'cPvm')](',\x20')+']');}else{if(!$[IlIlil(0x109,'IYOu')]&&$[IlIlil(0x175,'*xci')][IlIlil(0x159,'ToqE')](iI1llI['rLDkk']))for(let iIII1i=0x0;iIII1i<0x1;iIII1i++){iI1llI['ujFKi']('eJuto','eJuto')?i1IIi[IlIlil(0x1c4,'zP4u')]('查询任务失败,'+(IIII1I?.[IlIlil(0x71,'%6GG')]||'')):(iIII11=!![],console['log'](IlIlil(0x10b,'@ntp')+$['taskShowTitle']),await iI1llI[IlIlil(0xf0,']20!')](sendRequest,iI1llI[IlIlil(0x75,'P(DU')]),await $[IlIlil(0x9d,'&mtE')](iI1llI[IlIlil(0x143,'t6KC')](parseInt,iI1llI[IlIlil(0xb8,'hMIZ')](iI1llI[IlIlil(0x119,'gKB7')](Math[IlIlil(0xcb,'P(DU')](),0x5dc),0x5dc),0xa)));}else{if(!$['taskFinished']&&$[IlIlil(0x19f,'ee$x')][IlIlil(0x97,')YJ6')](iI1llI[IlIlil(0xf3,'M[m2')])){if(iI1llI[IlIlil(0x187,'5HQr')](IlIlil(0x161,'ToqE'),IlIlil(0x14e,'bXgD')))I1llii[IlIlil(0x11e,'aR^N')](IlIlil(0x145,'TbGb')+(lilIll?.[IlIlil(0xca,'zok[')]||''));else for(let IlIll1=0x0;IlIll1<0x1;IlIll1++){iIII11=!![],console[IlIlil(0x108,'P(DU')](IlIlil(0xfe,'P(DU')+$['taskTitle']),$[IlIlil(0x136,'fUXn')]='',await iI1llI[IlIlil(0x1a8,'*xci')](sendRequest,iI1llI[IlIlil(0x1ca,'c0as')]);const IlIII=$['apTaskDetail']?.[IlIlil(0xc5,'rX(7')]||[],ilil1l=$[IlIlil(0x189,'cPvm')]?.['status']?.['finishNeed'];for(let illlIi=0x0;illlIi<ilil1l;illlIi++){if(iI1llI['TwsMh'](iI1llI['qVXQY'],'aMKjz')){const I1lIii=IlIII[illlIi];I1lIii?iI1llI['qXZZb']('xpTsK',IlIlil(0x100,'rX(7'))?($[IlIlil(0x151,'KF1l')]=I1lIii['itemId'],$[IlIlil(0x70,'P(DU')]=I1lIii[IlIlil(0x1da,'U050')],await iI1llI[IlIlil(0xbd,'jCY0')](sendRequest,iI1llI['gpsIM']),await $['wait'](iI1llI['BhUze'](parseInt,iI1llI['ttZWQ'](Math[IlIlil(0x92,'cIJL')](),0x5dc)+0x5dc,0xa))):IllII1['log'](iI1llI[IlIlil(0x1b2,'KF1l')]):console['log'](iI1llI[IlIlil(0x1b5,'ee$x')]);}else Iii11I['lotteryChances']++,Iil1II[IlIlil(0x1b3,'jCY0')](IlIlil(0x128,'c0as')+iIIl1I['lotteryChances']);}}}}}}!iIII11&&console['log'](IlIlil(0x184,'M[m2'));if(iI1llI[IlIlil(0x129,'gKB7')]($[IlIlil(0x194,'U050')],0x0)){for(let i11ill=0x0;i11ill<$['lotteryChances'];i11ill++){await sendRequest(iI1llI[IlIlil(0x178,'KF1l')]),await $['wait'](iI1llI['BhUze'](parseInt,iI1llI['WwIbo'](iI1llI[IlIlil(0x76,'$P*&')](Math[IlIlil(0x139,'U050')](),0x3e8),0x3e8),0xa));}$[IlIlil(0xbf,'*xci')][IlIlil(0x138,'bXgD')]&&(iI1llI['ujFKi'](iI1llI[IlIlil(0x1a7,'jCY0')],IlIlil(0x12d,'pg)0'))?IlI1i1={...l1lIl1,...IiiIlI}:console['log']('\x0a抽奖获得:\x20['+$['prize'][IlIlil(0x157,'T#*5')](',\x20')+']'));}}}catch(IIIIIl){if(iI1llI[IlIlil(0x94,'%6GG')](iI1llI['IHVkN'],iI1llI[IlIlil(0x197,'ni*3')]))console[IlIlil(0x17e,'5HQr')]('❌\x20脚本运行遇到了错误\x0a'+IIIIIl);else{IiilI1[IlIlil(0x8e,'^USJ')](IlIlil(0x166,'cPvm'));return;}}}async function handleResponse(IIIl1i,liiII1){const lIli1I=l1iIII,IIIl1l={'Jfdun':lIli1I(0x195,'M[m2'),'ozRLf':'lotteryMachineHome','bnjJY':function(lllll,i11ili){return lllll==i11ili;},'QJuFR':lIli1I(0x78,'$P*&'),'xnxnU':lIli1I(0x115,'Lqmc'),'LLhkv':'lotteryMachineDraw','YHucg':function(iil1l1,lllli){return iil1l1==lllli;},'AbtXd':function(iiili1,ill11i){return iiili1==ill11i;},'rUoZs':lIli1I(0xd6,'zok['),'zOTan':function(lllill,ill11l){return lllill===ill11l;},'sxtIO':lIli1I(0xc4,'pg)0'),'eLGNV':function(I1lIiI,lllili){return I1lIiI==lllili;},'jcsTZ':lIli1I(0x11f,'KF1l'),'FpXbi':function(IliiiI,Ill11){return IliiiI==Ill11;},'yBUZj':lIli1I(0x96,'gKB7'),'WcGYT':'TdvEo'};try{switch(IIIl1i){case IIIl1l['ozRLf']:if(IIIl1l[lIli1I(0xd3,'eIAo')](liiII1[lIli1I(0xab,'hMIZ')],0x0))IIIl1l['QJuFR']!==IIIl1l[lIli1I(0x7e,'T#*5')]?($[lIli1I(0xc6,'$P*&')]=liiII1?.[lIli1I(0xa0,'*rh9')]?.[lIli1I(0x1cc,'ee$x')],$[lIli1I(0x176,'eIAo')]=liiII1?.[lIli1I(0x79,'ZOcs')]?.['remainTimes'],$[lIli1I(0x19e,']20!')]=!![]):Iil1I1['log']('查询任务失败,'+(Ii1iII?.[lIli1I(0x156,'6Yt@')]||''));else liiII1[lIli1I(0xc3,'fUXn')]==0x192?console[lIli1I(0x8e,'^USJ')](lIli1I(0xd5,'c0as')+(liiII1?.[lIli1I(0xa3,'*rh9')]||'')):console['log'](lIli1I(0x18b,'p#gK')+(liiII1?.[lIli1I(0x185,'cqN8')]||''));break;case IIIl1l[lIli1I(0x131,'bXgD')]:if(IIIl1l[lIli1I(0x146,'$d$w')](liiII1[lIli1I(0x7b,'eIAo')],0x0))switch(liiII1?.[lIli1I(0x11b,'aR^N')]?.[lIli1I(0x123,'etA8')]){case 0x0:$['prize'][lIli1I(0x86,'aR^N')]('空气');break;case 0x1:$[lIli1I(0xf4,'ntWp')][lIli1I(0x1ad,'cqN8')](''+liiII1?.[lIli1I(0x8a,'rX(7')]?.[lIli1I(0x192,'6TIB')]);break;case 0x2:$['prize']['push'](liiII1?.[lIli1I(0xc8,'eIAo')]?.['amount']+'红包');break;case 0x3:$['prize'][lIli1I(0x13a,'ntWp')](''+liiII1?.[lIli1I(0x11b,'aR^N')]?.[lIli1I(0xf8,'t6KC')]);break;case 0x11:$[lIli1I(0x1db,'pg)0')]['push'](lIli1I(0xe0,'ni*3'));break;case null:$['prize'][lIli1I(0x1a1,'6Yt@')]('空气');break;default:$[lIli1I(0xdc,'mzd]')]['push'](liiII1?.['data']?.[lIli1I(0x126,'TbGb')]+'-'+liiII1?.[lIli1I(0x10a,'cqN8')]?.[lIli1I(0x141,'M[m2')]);return;}else IIIl1l[lIli1I(0x16e,'^USJ')](liiII1[lIli1I(0x7b,'eIAo')],0x192)?console[lIli1I(0xd8,'93Y6')]('抽奖失败,'+(liiII1?.[lIli1I(0x1d8,'5HQr')]||'')):lIli1I(0xe6,'$P*&')===lIli1I(0x1a2,'^USJ')?(console[lIli1I(0x1b6,'eIAo')](lIli1I(0x167,'pg)0')+(liiII1?.[lIli1I(0x18e,'ee$x')]||'')),$['Stop_Lottery']=!![]):lI1Ili[lIli1I(0x12c,'zok[')](lIli1I(0x74,'6Yt@')+(IliilI?.[lIli1I(0x185,'cqN8')]||''));break;case IIIl1l[lIli1I(0x18a,'fUXn')]:if(liiII1['code']==0x0)IIIl1l['zOTan'](lIli1I(0x15c,'ZOcs'),'vRUQP')?$[lIli1I(0x170,'ee$x')]=liiII1?.['data']:(lilIl1['msg'](i1l1ii[lIli1I(0x19a,'Lqmc')],IIIl1l[lIli1I(0x8c,'cIJL')]),i1l1['exit'](0x1));else IIIl1l[lIli1I(0x9a,'U050')](liiII1[lIli1I(0x7b,'eIAo')],0x192)?console['log'](lIli1I(0xf1,'M[m2')+(liiII1?.[lIli1I(0x153,'mzd]')]||'')):IIIl1l['sxtIO']===IIIl1l[lIli1I(0x15b,'S4Vx')]?console['log']('查询任务失败,'+(liiII1?.[lIli1I(0xbb,'pg)0')]||'')):lilIii[lIli1I(0x1c4,'zP4u')](lIli1I(0x107,'U050')+(i1ill1?.[lIli1I(0x13c,'rX(7')]||''));break;case lIli1I(0x1d1,'p#gK'):if(IIIl1l[lIli1I(0xcf,'*rh9')](liiII1[lIli1I(0x183,'$d$w')],0x0))$[lIli1I(0x1b9,'$P*&')]=liiII1?.[lIli1I(0x93,'%6GG')];else IIIl1l['eLGNV'](liiII1[lIli1I(0x105,']20!')],0x192)?console[lIli1I(0x1c8,'[rbG')]('查询任务失败,'+(liiII1?.['errMsg']||'')):console[lIli1I(0xe5,'M[m2')](lIli1I(0x18f,'S4Vx')+(liiII1?.[lIli1I(0x11a,'S4Vx')]||''));break;case IIIl1l[lIli1I(0xcc,'p#gK')]:if(IIIl1l['FpXbi'](liiII1[lIli1I(0xc3,'fUXn')],0x0))$[lIli1I(0x91,']20!')]++,console[lIli1I(0x106,'cIJL')]('完成任务,抽奖次数:'+$[lIli1I(0x154,'T#*5')]);else IIIl1l[lIli1I(0x12b,'U050')](liiII1[lIli1I(0x13d,'zok[')],0x192)?console[lIli1I(0xa5,'p#gK')](lIli1I(0x7a,'ZOcs')+(liiII1?.[lIli1I(0x1d7,'jCY0')]||'')):IIIl1l['zOTan'](IIIl1l[lIli1I(0x137,'cPvm')],IIIl1l[lIli1I(0x179,'mzd]')])?(iliIIi['log']('抽奖失败,'+(ill11I?.[lIli1I(0x196,'TbGb')]||'')),Iliiil[lIli1I(0x1d5,'[rbG')]=!![]):console['log']('完成任务失败,'+(liiII1?.[lIli1I(0xc0,'t6KC')]||''));break;}}catch(IIIl1I){console[lIli1I(0xce,'ni*3')](lIli1I(0x10c,'dir8')+IIIl1i+'\x20请求响应\x20'+(IIIl1I[lIli1I(0x16d,'93Y6')]||IIIl1I));}}async function sendRequest(iil1ii){const II1il=l1iIII,IlIlli={'EVeZJ':II1il(0xbc,'pg)0'),'sHnpr':II1il(0x1c5,'cPvm'),'AYpEr':'activities_platform','ScffY':II1il(0x1d0,']20!'),'GhQuE':'https://api.m.jd.com/api','IyzkN':II1il(0x14c,'*xci'),'ffnvZ':'4.3','tYwmX':II1il(0x1b4,'IYOu'),'cnXFA':II1il(0x133,'93Y6'),'qSPBK':II1il(0x111,'bXgD'),'hPbAV':II1il(0xb5,'zok['),'KGukW':II1il(0x1c2,'TbGb'),'dLTGy':function(illlI1,IIIl11){return illlI1===IIIl11;},'GLSol':II1il(0x125,'ni*3'),'aGDpj':II1il(0x198,'93Y6'),'iAwgx':II1il(0xa2,'pg)0'),'StAPJ':II1il(0xa8,'^USJ'),'yktkJ':function(I1lIi1,liiIIi){return I1lIi1===liiIIi;},'aGlIS':'GET','pHHNn':'Content-Type','ugEHy':function(lil11I,Iliii1){return lil11I<Iliii1;},'NwxWW':function(iIiIi,iil1ll){return iIiIi>iil1ll;},'ftEuF':II1il(0x172,'gKB7'),'rNpzH':II1il(0x9c,'*rh9'),'awNht':function(iiilil,iil1li,lillIl){return iiilil(iil1li,lillIl);},'pMiaW':'doYRs'};if($['runEnd'])return;let il1i1i='',lil111=null,i11ilI=null,ii1ii1=II1il(0x8f,'pg)0'),llllI={},lllil1={};switch(iil1ii){case II1il(0x87,'t6KC'):lllil1={'appId':IlIlli[II1il(0xa9,'fUXn')],'functionId':IlIlli[II1il(0x17f,'gKB7')],'appid':IlIlli[II1il(0x14d,'zP4u')],'clientVersion':common[II1il(0xb4,'Lqmc')](),'client':IlIlli['ScffY'],'body':{'linkId':linkId,'taskId':'','inviter':''},'version':II1il(0xaa,'S4Vx'),'ua':$['UA'],'t':!![]},llllI=await H5st[II1il(0x19b,'6TIB')](lllil1),il1i1i=IlIlli[II1il(0x9e,'p#gK')],lil111=llllI[II1il(0xaf,'ee$x')];break;case IlIlli[II1il(0xec,'ntWp')]:lllil1={'appId':IlIlli[II1il(0x9f,'P(DU')],'functionId':II1il(0x140,'S4Vx'),'appid':IlIlli[II1il(0xff,'fUXn')],'clientVersion':common[II1il(0xb1,'c0as')](),'client':IlIlli[II1il(0x1a5,'cPvm')],'body':{'linkId':linkId},'version':IlIlli[II1il(0x1ac,'6TIB')],'ua':$['UA'],'t':!![]},llllI=await H5st[II1il(0x98,'etA8')](lllil1),il1i1i=II1il(0x188,'pg)0'),lil111=llllI[II1il(0x7d,'%6GG')];break;case II1il(0x11c,'cqN8'):lllil1={'appId':IlIlli[II1il(0xc7,'cIJL')],'functionId':IlIlli['cnXFA'],'appid':IlIlli[II1il(0x165,'@ntp')],'clientVersion':common[II1il(0x99,'M[m2')](),'client':'ios','body':{'linkId':linkId},'version':IlIlli[II1il(0x1b0,'etA8')],'ua':$['UA'],'t':!![]},llllI=await H5st['getH5st'](lllil1),il1i1i=IlIlli[II1il(0x158,'@ntp')],lil111=llllI[II1il(0xa6,'[rbG')];break;case IlIlli['qSPBK']:lllil1={'appId':II1il(0x127,'c0as'),'functionId':IlIlli[II1il(0xe9,'ee$x')],'appid':IlIlli['AYpEr'],'clientVersion':common['getLatestAppVersion'](),'client':IlIlli[II1il(0x103,'ToqE')],'body':{'taskType':$[II1il(0x80,'cqN8')],'taskId':$[II1il(0x1a0,'dir8')],'channel':0x4,'checkVersion':!![],'linkId':linkId},'version':IlIlli['ffnvZ'],'ua':$['UA'],'t':!![]},llllI=await H5st[II1il(0x152,'*rh9')](lllil1),il1i1i=II1il(0x164,'ni*3'),lil111=llllI[II1il(0x190,'5HQr')];break;case IlIlli['hPbAV']:lllil1={'appId':IlIlli['KGukW'],'functionId':IlIlli[II1il(0xe8,'TbGb')],'appid':IlIlli[II1il(0x148,'^USJ')],'clientVersion':common[II1il(0xd1,'6Yt@')](),'client':IlIlli[II1il(0xb6,'@ntp')],'body':{'taskType':$[II1il(0x17d,'6Yt@')],'taskId':$[II1il(0xb9,'pg)0')],'channel':0x4,'checkVersion':!![],'linkId':linkId,'itemId':$[II1il(0x151,'KF1l')],'taskInsert':$[II1il(0x72,'gKB7')]},'version':IlIlli[II1il(0x1bd,'^USJ')],'ua':$['UA'],'t':!![]},llllI=await H5st['getH5st'](lllil1),il1i1i=II1il(0xb3,'c0as'),lil111=llllI['paramsData'];break;default:console['log']('❌\x20未知请求\x20'+iil1ii);return;}const iil1il={};lil111&&(lil111={...lil111,...iil1il});i11ilI&&(IlIlli[II1il(0xd0,'P(DU')](IlIlli[II1il(0xe1,'zP4u')],IlIlli['GLSol'])?i11ilI={...i11ilI,...iil1il}:Iliil1[II1il(0x110,'mzd]')](II1il(0xda,'cPvm')+(i1III?.[II1il(0x199,'fUXn')]||'')));const ilil1I={'url':il1i1i,'method':ii1ii1,'headers':{'origin':IlIlli[II1il(0x16a,'&mtE')],'Referer':IlIlli[II1il(0x12e,'etA8')],'User-Agent':$['UA'],'Cookie':cookie,'content-type':IlIlli['StAPJ'],'accept':II1il(0x149,'hmgl')},'params':i11ilI,'data':lil111,'timeout':0x7530};IlIlli[II1il(0x16b,'hmgl')](ii1ii1,IlIlli[II1il(0x18d,'zok[')])&&(delete ilil1I[II1il(0x14f,'hmgl')],delete ilil1I[II1il(0x82,'bXgD')][IlIlli[II1il(0x1ba,'KF1l')]]);const i11il1=0x1;let ii1iiI=0x0,lllilI=null,ilil11=![];while(IlIlli[II1il(0xf2,'&mtE')](ii1iiI,i11il1)){IlIlli[II1il(0x1bc,'aR^N')](ii1iiI,0x0)&&await $[II1il(0x7c,'KF1l')](0x3e8);const iiilii=await common['request'](ilil1I);if(!iiilii[II1il(0x1c3,'IYOu')]){if('AXhEl'===IlIlli['ftEuF']){lllilI=II1il(0x73,']20!')+iil1ii+II1il(0x14b,'zP4u')+iiilii[II1il(0x17b,'rX(7')],ii1iiI++;continue;}else IIII11['log'](II1il(0x1be,'*xci')+(i1illi?.[II1il(0x163,'p#gK')]||''));}if(!iiilii?.['data']){if(IlIlli[II1il(0xe3,'M[m2')]===IlIlli['rNpzH']){lllilI='🚫\x20'+iil1ii+II1il(0x1cb,'$d$w'),ii1iiI++;continue;}else l1l1I1['log'](II1il(0xcd,'ToqE')+(I1iIll?.[II1il(0x13f,'aR^N')]||''));}IlIlli[II1il(0xa4,')YJ6')](handleResponse,iil1ii,iiilii['data']),ilil11=![];break;}ii1iiI>=i11il1&&(console[II1il(0x1b3,'jCY0')](lllilI),ilil11&&(II1il(0x10f,'zP4u')!==IlIlli[II1il(0xe4,'hMIZ')]?iliIII['log'](II1il(0x15d,'cPvm')+(iIIl1i?.[II1il(0x196,'TbGb')]||'')):($['outFlag']=!![],$[II1il(0x124,'hmgl')]&&$[II1il(0x121,'bXgD')][II1il(0x1cf,'cPvm')](lllilI))));}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) }