forked from shufflewzc/faker3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjd_daily_bean.js
13 lines (9 loc) · 41.7 KB
/
jd_daily_bean.js
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
轻松赚豆
jd_daily_bean_wait 任务间隔,默认 5 秒
cron "31 5,18 * * *" script-path=jd_daily_bean.js, tag=轻松赚豆
*/
const $ = new Env('轻松赚豆')
var iil='jsjiami.com.v7';const iliIil=iii1II;(function(IIii1l,I1iIII,liiI11,ililI1,IIii1i,i1ili,Iiill1){return IIii1l=IIii1l>>0x7,i1ili='hs',Iiill1='hs',function(I1iII1,lilII1,iill1,iii1l1,IIliIl){const II11i1=iii1II;iii1l1='tfi',i1ili=iii1l1+i1ili,IIliIl='up',Iiill1+=IIliIl,i1ili=iill1(i1ili),Iiill1=iill1(Iiill1),iill1=0x0;const II11ll=I1iII1();while(!![]&&--ililI1+lilII1){try{iii1l1=-parseInt(II11i1(0x1aa,'pcwX'))/0x1+-parseInt(II11i1(0x1ad,'aRo7'))/0x2*(parseInt(II11i1(0x258,'dxXS'))/0x3)+-parseInt(II11i1(0x29b,'JA!j'))/0x4*(-parseInt(II11i1(0x182,'l&l7'))/0x5)+-parseInt(II11i1(0x1cf,')cqb'))/0x6*(parseInt(II11i1(0x1cc,'9phJ'))/0x7)+parseInt(II11i1(0x271,'N!0X'))/0x8+parseInt(II11i1(0x18d,'tWpK'))/0x9*(-parseInt(II11i1(0x2af,'9phJ'))/0xa)+-parseInt(II11i1(0x26f,'Tp01'))/0xb*(-parseInt(II11i1(0x1e4,'aRo7'))/0xc);}catch(liiI1I){iii1l1=iill1;}finally{IIliIl=II11ll[i1ili]();if(IIii1l<=ililI1)iill1?IIii1i?iii1l1=IIliIl:IIii1i=IIliIl:iill1=IIliIl;else{if(iill1==IIii1i['replace'](/[lRbnpTINgHCUkdyuwOKM=]/g,'')){if(iii1l1===lilII1){II11ll['un'+i1ili](IIliIl);break;}II11ll[Iiill1](IIliIl);}}}}}(liiI11,I1iIII,function(ililII,lI1II1,i1ilII,iIIii1,IllIi1,lilIII,Ii1ilI){return lI1II1='\x73\x70\x6c\x69\x74',ililII=arguments[0x0],ililII=ililII[lI1II1](''),i1ilII=`\x72\x65\x76\x65\x72\x73\x65`,ililII=ililII[i1ilII]('\x76'),iIIii1=`\x6a\x6f\x69\x6e`,(0x169795,ililII[iIIii1](''));});}(0x6480,0x8be42,Iii11l,0xcb),Iii11l)&&(iil=0x4bdf);const jdCookie=require('./jdCookie'),notify=require(iliIil(0x1f6,'dxXS')),common=require(iliIil(0x1d8,'z17P')),{H5st,jsTk}=require(iliIil(0x1e5,'PWQI')),isNotify=![],floorToken=iliIil(0x2bd,'N!0X'),task_map={'taskReceive':'领取任务','taskFinish':iliIil(0x250,'i]Lm'),'taskReward':iliIil(0x154,'y$rx')},qszdwait=process[iliIil(0x21a,'lS(S')][iliIil(0x2be,'PWQI')]||'5';function iii1II(_0x5355c0,_0x1cb15e){const _0x4f8fa9=Iii11l();return iii1II=function(_0x364ad1,_0x4efb2c){_0x364ad1=_0x364ad1-0x146;let _0x16b41c=_0x4f8fa9[_0x364ad1];if(iii1II['ElTSCj']===undefined){var _0x31bac3=function(_0x5284d6){const _0x4ebf5d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x78f51f='',_0x55fce9='';for(let _0x55770b=0x0,_0x3fcbf3,_0x24fd70,_0x3793cd=0x0;_0x24fd70=_0x5284d6['charAt'](_0x3793cd++);~_0x24fd70&&(_0x3fcbf3=_0x55770b%0x4?_0x3fcbf3*0x40+_0x24fd70:_0x24fd70,_0x55770b++%0x4)?_0x78f51f+=String['fromCharCode'](0xff&_0x3fcbf3>>(-0x2*_0x55770b&0x6)):0x0){_0x24fd70=_0x4ebf5d['indexOf'](_0x24fd70);}for(let _0x133a19=0x0,_0x1352c9=_0x78f51f['length'];_0x133a19<_0x1352c9;_0x133a19++){_0x55fce9+='%'+('00'+_0x78f51f['charCodeAt'](_0x133a19)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x55fce9);};const _0x2af080=function(_0x47aeec,_0x1f21fc){let _0x26ca76=[],_0x2208f6=0x0,_0x50d264,_0x1ffb95='';_0x47aeec=_0x31bac3(_0x47aeec);let _0x3e8d3a;for(_0x3e8d3a=0x0;_0x3e8d3a<0x100;_0x3e8d3a++){_0x26ca76[_0x3e8d3a]=_0x3e8d3a;}for(_0x3e8d3a=0x0;_0x3e8d3a<0x100;_0x3e8d3a++){_0x2208f6=(_0x2208f6+_0x26ca76[_0x3e8d3a]+_0x1f21fc['charCodeAt'](_0x3e8d3a%_0x1f21fc['length']))%0x100,_0x50d264=_0x26ca76[_0x3e8d3a],_0x26ca76[_0x3e8d3a]=_0x26ca76[_0x2208f6],_0x26ca76[_0x2208f6]=_0x50d264;}_0x3e8d3a=0x0,_0x2208f6=0x0;for(let _0x50eff2=0x0;_0x50eff2<_0x47aeec['length'];_0x50eff2++){_0x3e8d3a=(_0x3e8d3a+0x1)%0x100,_0x2208f6=(_0x2208f6+_0x26ca76[_0x3e8d3a])%0x100,_0x50d264=_0x26ca76[_0x3e8d3a],_0x26ca76[_0x3e8d3a]=_0x26ca76[_0x2208f6],_0x26ca76[_0x2208f6]=_0x50d264,_0x1ffb95+=String['fromCharCode'](_0x47aeec['charCodeAt'](_0x50eff2)^_0x26ca76[(_0x26ca76[_0x3e8d3a]+_0x26ca76[_0x2208f6])%0x100]);}return _0x1ffb95;};iii1II['oYpNId']=_0x2af080,_0x5355c0=arguments,iii1II['ElTSCj']=!![];}const _0x501098=_0x4f8fa9[0x0],_0xe8ee4d=_0x364ad1+_0x501098,_0x1f7df9=_0x5355c0[_0xe8ee4d];return!_0x1f7df9?(iii1II['JcFkzA']===undefined&&(iii1II['JcFkzA']=!![]),_0x16b41c=iii1II['oYpNId'](_0x16b41c,_0x4efb2c),_0x5355c0[_0xe8ee4d]=_0x16b41c):_0x16b41c=_0x1f7df9,_0x16b41c;},iii1II(_0x5355c0,_0x1cb15e);}let waitTimes=parseInt(qszdwait)*0x3e8,cookie='';const cookiesArr=Object[iliIil(0x1ce,'P7Jm')](jdCookie)[iliIil(0x20d,'tCJ1')](liiIIl=>jdCookie[liiIIl])[iliIil(0x2ac,'5tgI')](iil1iI=>iil1iI);!cookiesArr[0x0]&&($[iliIil(0x14a,'KR%#')]($[iliIil(0x20f,'tCJ1')],iliIil(0x1c9,'lS(S')),process[iliIil(0x197,'zV@U')](0x1));!(async()=>{const iliIii=iliIil,IlIllI={'wfNRh':iliIii(0x15f,'3$R%'),'BRorh':function(il1i1I,lI1li1){return il1i1I<lI1li1;},'VFJff':function(iI11II,iIII1I){return iI11II!==iIII1I;},'fDAfE':'zoPUo','zqDfs':iliIii(0x180,'*RaB'),'CpZuI':function(ilil1i,IlIIi){return ilil1i+IlIIi;},'qhjZO':function(IiI1l,illlII){return IiI1l(illlII);},'RMZxW':iliIii(0x29f,'tCJ1'),'vvbdw':function(iIII11){return iIII11();},'mNCKm':function(IiI1i,llll1,lil11l){return IiI1i(llll1,lil11l);},'DxCMN':function(i1i1Il,I1lIl1){return i1i1Il+I1lIl1;}};console[iliIii(0x14d,'0Fn0')](iliIii(0x288,'D#f0')),notify[iliIii(0x2a9,'*Ggg')]({'title':$[iliIii(0x1f5,'Iq[h')]});for(let lil11i=0x0;IlIllI['BRorh'](lil11i,cookiesArr[iliIii(0x25b,'4%5g')]);lil11i++){if(IlIllI[iliIii(0x2d1,'maF6')](IlIllI[iliIii(0x16f,'SnRR')],IlIllI[iliIii(0x19e,'pcwX')])){$[iliIii(0x28f,'uqmq')]=IlIllI[iliIii(0x15e,'SnRR')](lil11i,0x1),cookie=cookiesArr[lil11i],common[iliIii(0x1c0,'PI%a')](cookie),$[iliIii(0x240,'NV[u')]=IlIllI[iliIii(0x1c3,'maF6')](decodeURIComponent,common[iliIii(0x203,'NV[u')](cookie,IlIllI[iliIii(0x1bd,'qaWY')])),$['UA']=common[iliIii(0x1df,'N!0X')]($['UserName']),$[iliIii(0x18e,'4%5g')]=notify[iliIii(0x2c0,'*RaB')]($[iliIii(0x1a3,'yvLL')],$[iliIii(0x1e8,'maF6')]),$[iliIii(0x146,')&]W')]='',console[iliIii(0x1a0,'i]Lm')]('\x0a******开始【京东账号'+$[iliIii(0x297,'P7Jm')]+'】'+($['nickName']||$['UserName'])+'******\x0a'),await IlIllI['vvbdw'](Main),common['unsetCookie']();if($['runEnd'])break;await $['wait'](IlIllI[iliIii(0x18a,'QwhO')](parseInt,IlIllI[iliIii(0x270,'l&l7')](0x7d0,0x64),0xa));}else delete I1l1Il['data'],delete llIll1[iliIii(0x19c,'*Ggg')][IlIllI[iliIii(0x215,'NV[u')]];}isNotify&¬ify['getMessage']()&&(notify[iliIii(0x1a4,'uqmq')]('\x0a'),await notify[iliIii(0x1d5,'KR%#')]());})()[iliIil(0x175,'PI%a')](lI1liI=>$[iliIil(0x213,'l&l7')](lI1liI))[iliIil(0x291,'y$rx')](()=>$['done']());function Iii11l(){const Ill11i=(function(){return[...[iil,'HydTjNsuOjkiCaNCmUliMRK.NcobpmI.wdvnC7gR==','W4FcRmokWQu','BHZdGu1k','wWZdJhne','WQ1Om14mW57cJq','oqSFkmk9','m3tcLKOWW4JdPHhdVSoWEmknW70','hq8ZWOBdOW','44gb5O+C56wo44cL6k2R5yE06i2j5y+6crD2W5TcaG','p20zuq','jmkrWRvcW5a','W6aWymkgW5/cL11L','4P+QzoACOoIdO+AVJEEHK+wLJUEtU8kx','qGldUw0','W6ddUmkoWQCpWOdcN2RcLmkSWROX','qCkks8kdjmo2rSk9WRrRvw3cQgO','W6NdPSoVBwHuW4JcTeFcKapcUIK','WQFcNJiyW7a','W5dcS8onW5BcIa','fatcH3uiWOCY','w8kwvSkm','bY4DdCkYdahdPComwW','WQpdLmoZWRNdIW','amkYWP99W7RcRmkqbvK7wMv6g3ilmSoaW6tdVSk3oSkG','W6tcTSkAW4Wn','rqJdPW','W5ldK3una3um','W5iLExxdQfqKWPtdHb8','WQ3dUCopW4lcTq','W6iQW6FcKCoLfmoNWPuJ','W6VcICk2W4aU','W67cNSk3W6iCxxrxW4jyW5z7','vtNcPCkqWPG','grtcKL0QWPm4','W6VcICkSW50avvHTW4veW6T9bSkQqG','nW5XW6xdLmkYvmoR','W64InvKeW5xcM0FdT0FcKK8BcmoXAa','seP8W7ZdOW','pdBcT18n','sGFdJMvlW53cOCkV','WR7cUSk4msWJWP/cMwi','W53cPHxdISoICCohuCo9','wqbMWR8z','erVcJ2TQW5i7WPBcHxxcOSo/W6/cHSkIW6VdPW','mh4tECo9W4W','W5ldK3unwwSDWRK9WOLlWRPnWRTa','EXtcImk7WQtcKCoLkXixWQpdNSovhW','tbTdWP0uFCo0fmk4','WQ1Uamot','t8kcuCkf','W4ORBq','iwSRv8o0W53cKeiVfeBdGeOaWOOaWPKFWOnS','gadcI34','DMW8WPddU8oJwG0OWR5tl8ongtaLW4fVl8kqW4GbWPddGCkREJG','WPVcPXRcGra','WQtdSSobW6/cLvFcGq','W6RcGmk3W7ODFfXnW4u','WQVcOSk2kISu','n1/cHZJdS8oLW5pdMmoVuGu','le/cIZpdOW','W49uW57cOmkqDIlcJ8oCW57cU8oGsW','W4dcNZ/dMCoi','DWddN2D2WOBdO8oLW5SeAmo6WRy0DmkYW6vBfWRcSSkrW6VdHSo9wcm7DvX9iW','pSk9WO5JW7e','WQpcRSomW7nsW4u','fSk8WPDhWPi','n8kBWQPKW5fsW7hdN8oXWRJdV8osW6el','W4FcOSoFW7lcHSo/WPG','rgzukemFy8o9WQq','WPZdTSovWOxdLZC','WOPvnqLW','WP/cP8oIWQTPW5ZdHv/cNCoJ','feHAlCkz','t3ftW5pdTW','WQVcMbVcHcPNr8kPWQtdNMRcGLHgnCoGW5xdMSosWQtcOrJcO8otW5FdRuVcN1VdJmoOlKe','xtNcKmkVWPu','W68EW7y','W7pdRYhdVSki','W6WEW6VcSa','WOXQymkEW58','haJcIhWeWPC+WP3cTxy','z8ogxmkD','pwNcNNGXW58','W64vW4pcSSke','j8kyWPb1W5y','uqhcOY7dJW','6ls55y6d5Pwl5PwF','oMNOJzhLV4O','yIBcJtJdLa','ngic','W4lcLmk6W68l','W7pdGfieuW','bCkkWRDTWRaJjCk8i8kXzMC','WPHBb8oOAq','WOxcR0dcICoAaMmXW7JdR3r4pG','WOJcTc8NW5mLbq','W5yJvx3dHLWKWPpdKHVdQSoHwmkYpdNcLItcUCol','oxqQW5tcPG','e3jRb8kTqmot','W4GUExZdUG','W6aCC1NdRq','C8oiuCkm','FhtcNMS','WQPQE8k6W6tcShO','WQFcRSonW7K','W4xdUfGxyG','W6/cHmk5W6CUta','W4NcR8onW7pcPSoS','ASo3rCkOiq','WPRdTSoiWORdQJ/dSSorxLO','W7bkh1/cHa','WO1cjGHmW43cMW','DW3dM3nmW5/cO8kK','WOLRmcD4','WQZcVtyHW6u','WQlcVbasWONcTSkTWQBdMq','h8kBWRr8WRf9wCoNkmkHCxhcQCkcWO3cGItdRMhdPuvKW6ldQrnMomkWWRmhW7mJWQK','eCoMW6meDq','jw0hx8ooW5NcNuKJdNW','WOpdSSoiWPldMt3dOa','WQNcN8ooW5nB','mHNcGx8h','kuZcGx4f','W6X6W4BcH8kHqWtcQCoIW7tcGCo5BCowW5XMWR8MzrNdTcWHEd/cNf3cNq','WPtcQ8o/WRf7W5pdTa','WQRdSSoj','BhtcMwe','bCknWRTvW7bCW7FdKW','W5NcT8oaW6JcKW','W7z0W7FcICknuGdcTCovW7G','W4xcQae','W6BcRSobW6JcK8o9WPK','WONcTdiZW4yQ','WO1Jbs57','WQ1UECkVW5G'],...(function(){return[...['WQ1wmY5A','CxrdW6xdOW','lepcMYi1WORcVSkyW5GlqCoq','W5NcOdNdImojA8obASo4o8oFDmkyBSo1W7b/g1rnrCo2rvejb2pdSa','tCodW6xdHCkXWO45','W55rW7xcM8kT','WOnHeLGM','WRRcJZtcIYTLsmkZWQJdNvVdNuemj8oiW4BcLSoaWQO','5A6t5OML5lIh5yM7','WQL1h8oMva','W5C+W5FcJSoA','WPlcN8oU','WR/dJCoeW7BcGq','gI0bWRtdMq','m2pcMfmnW5JdMW','dZmiWOVdSq','BGueWPldNmoywq','W4dcOSoAWQe','fSkeWQjOWQy','umo0W7tcPttcGa','W4iLFN/dVvi/WO/dLbldTSo+xCkW','cqK7imkN','W5uVy27dVeGK','n2/cLuKMW58','bmkeWQL8WPaYga','BXlcO8k5WP/cN8o+nXqEWR/dGCoqhqRcScrOW6lcJW','ymoPrNC8WQtcJCkFn2XPW6DAoG','4P6uW7BMN73NNRVORQNMSkxdNG','sx/cQvRcKa','W7BORkRMSkhLKRtLUzJdUa','pXJcTvK/','WOLlkaLW','hmkgWPbLWQC','ymoYWQzMW7tcQCkn','a8omW78TAa','W44wW6VcVmkuhHO','W4BcQmol','Av1NW4ZdPSk7Ca','4P2igoIeJUAEK+I9L+IIKoMbKUwkUEs6MUMvQUITR8ki','j8kqbCoDDSkGWO/cHSovrd1EWQK','fx7cUNan','WRNdMSoVWQfFcW9PW41fW4D6aG','WO1vkbfXW53cPKeWWRxcR8kumW','W656ehJcNqBdTND8zSkH','jmkFWQ1mW7TtW7NdV8oW','W6a9tvddNG','tZ7dH2RdOa','W64qW6e','WP/dI8ojW4xcUW','DZddPNno','vIhdNunb','Dmo2W6FdKSkL','BSo5r3yoWQRcJW','W5BcT3isWOi','WR3cTSoRWQzB','WPTgna1hW5BcLwKZ','W7ZcI8khW7yhwvnxW4fBW59ecCkRsmoAC8kAtwS','W654hMBcJHddRa','zcZcLYJdNWG7','W6C6W4JcTSkA','o8kMWOX2W7W','W5BdUKGtB8oLWOe','zI7cUttdLa8QBCkwBCkKt8oDW4NcIYbXWR7cKSoNfM/cMYRcNLVdJe8','s8otDNa9','6z2w5BIT5A2u5PItW6KRaE+9PUISREs8RUEuIUAEJUwEP+wUHEwTNUAlOEs5HoEqH8ov','W7JdSfuuA8oSWPadW7BcTmoWW4K','yxVcJMZcQh9xgq','WPlcSduG','W4ZcNSoRW7xcGa','W792fNJcJW3dRuXMvmkVW6aCbW','DSoRqSkOpW','hSkbWQrPWRO','WR9OAG','W4ZcRSocW6dcI8o0WOq','bGBcUxiOWOy6WOhcGNRcT8ouW6pdHmo2W6ZdP8kqCqFdJe7dJCkGW6PyW6DZ','W7NcIdxdTq','fgz7d8kAvSoxW5FcMMy','W6a0uNhdOG','l0hcJHFdTW','qaNdPhVdVW','CCoxrCkflmo7W5FcM8oErbKiWOVdLCkmnSkgvXpdKCkXW6JdQ8oZiCogomkJFCk7WOqDW50','WRZdHCo1WRJdNG','gmokW60lwKlcUq','aCkydmoSW703B8oqtW','W4tcKMya','t8kcuCkfnCo8uSkHWOvRywpcVMS','W792fNJcLqVdPfe','W7ilW5NcPCkjfq','jwNcKLGT','CXVdJa','xH1wWRKBAG','WQhcHY0bWR8','yIJcLtBdSXuPCmk7z8kJza','W77dVtldK8kS','W73cM8kEW6m9','W4hcKw0kWRRcHmk7sqa','WQtcRSoxW6y','WQNcHWxcJIPJ','ehK3qmoM','WO7cR8oLWRy','W4aTzMRdI08','WRVcPCo4W6fV','E8oFvSoRW5u','W6WXrCkZW5dcV0fJ','W5RcRGhdJ8oUCq','WPRdTSoiWOO','W51QW4JcRCkU','WP53dSodxW','wW5fWPuPDCoOamkIlmknlmkPpq','5lUe5yUoAUEUIUwjIKFLPQZOTzFdU2K','WPxcOCoR','WQPODCkKW7/cQW','xfpcQhlcIq','W4/dVKGlsmoRWOPhW5hcPq','W43cOSoyW43cImo/WPtdTCk0WOScueNdMa','BahdIhrGW4/cVW','WOhcScG1W6eTfspcVaxdH8kzBmoC','WR7dM8oTWQCjcWOjWOLrWRqnuCoHgCkXDmkFfgHoW5ddPv7cSrigyHpcJSkCW50Bv8k8W5K','WQPPh0KmW5dcHbhdUKdcLuSzjmozqCkxW7K','xSo0W7VcRbpcGmoqFa7dGh48WPjp','W5BdHgqKqMm','W5JdKNKcCq','v1fNg1u','gSoiW4GEBq','WRrUbmoc','tW5dWPuxACoze8k1ka','FCoeWQTIW7O','WRXJbSoiBmkBpmkfyq','dK/cLrtdGq','W6RcOmkVW5qv','WRRcSGq','j8kJWQPJWRa','5P6O55Ie5B+t','l0rReCkh','W6RcHCkG','CmoMqKqL'],...(function(){return['gSk7WQDkW5q','stldOxfJ','WPBcUJuKW6a3dG','W4pcGI7dJCov','W6X6W4BcJCkNvG/cTCoMW7VcQSowzCoFW41CWQKHCbS','W7eUW6dcSSopf8oHWOGMW6BcUsxcSZr+','jSkDWPTqW5G','nCk0WPPdW7e','avrFl8ky','WPFcP8oVWQLuW5xdVf8','WQPRpqrZ','W63dM8k7WQvB','WQ5GE8k+','rSkqqG','f316fmk9','WPzgjmoUsSkacCkWu8knW7XQW5lcU8ou','WRtcUCkW','p8klWQPHW5jCW70','W7SVW6ZcVCoN','W5FcRmodWQu','kfNcHW','WOtORltMS6ZLP7hOTRJcQokELmov','W4FdG28awgi','6AcS5yYr5AE65yIW','W5NdMwy','E3ZcIM7cNhHgi8k+','kwVcG006','W4hcPCo+WRNdPq','hhWrxCoT','W7BORkRMSkhLPyJOT6NdUokDKSop5PwD5zoT5BUb5Ps35O2s','WRNcPSoqW7v9W5pcJfBcQ8kO','nmkFWQPg','nfhcVZxdMSoNW4NdV8oKwdxcNCk1W5eMAxRdTSo9WP0','WPL/m8osvW','i2HMemkTxCouWPVcVhTjW6a','ivDy','WPRcU8o+WRbjW53dTLtcRmo7zmkvBCku','eGdcKNO','4PYSj+ACOUIcMEAUQ+EHNEwMPoEsSmoi','W5dcJCocWQpdTa','gIyAhG','W67dO8oLgHigWORcM0u','WRhdVmohW7C','xSodxCoeW4qYFSov','pCkBWQ1uW59AW78','CCkLr8k1eG','WP3dVSoCWO/dStq','W7TuW5JcQmkI','mMu9rCog','BNZcLq','WRXlkmobwW','WQpcRSomW7nsW4xcQvNcICkM','uCoeuSoCW5qK','w8otWQ1iW6y','FqFcK8kTWOtcM8oembWx','tCoOWPH7W4dcQCkereGRsNn5gG','WO3dTSopWOldKa','DfLMW57dQSkV','FSoKzCkTcG','WRlcVbCyWP/cT8k7WP3dNKuwkfJdQG','WRVcUbakWQ3cV8kR','WRldVmoDW6G','WPBdNCodWQldVG','W4miW5FcLSkb','wvRcNgNcJG','EKLhoeK','bmkgWQDIWOeYbmk7lCk3','W5ldPhKnrq','W610kh/cSHhdP0XZy8k6W4WEgSkIgmolqmkqW7W2y8khW6xdUNZdU8kz','zdxdJG0lW6ldLYldO8o2','WQFcLG0mWR4','WRdcOmoAW7C','WQJcSCkiptygWPdcG2BcJYNcJH3cMNhdVvZcVHtcHW','WQpcQmoQW7nmW53cOvhcJSkZWQCX','ESoOW53cJda','BSojW5RdMCk3WOaY','WRVcImohWRbJ','bSoXW40JuG','zKP7W4JdTmk5xmoNEHZdLSon','jw0hxW','W7FcRCkwWRddHGxdMCotWRRcSmo8W7uL','uCo0W6NcSshcJ8oA','ndVcOhyp','tb/dTe7dPIWwW7hcP8kvF8o9','W6dcUfy','bmkgWQDIWPeZf8k8n8k2','W44zW6ZcK8ko','WP3dUmowWOq','nw0avq','5Aw75y6f5A+h5lQY776q5lM25PsB5OMS5P2d5lQd5yQ46ygn5BEz57QO5A2J5OMp77+8','WOPFlHi','WOxcQWJcNqW','W6RcGmk3W7OD','jrtcTgSf','Ea14WP0c','WQlcJqRcJcz2vq','omkuWPHuW64','W6zSW53cImk8','W5TLjfFcUq','CXRcMW','csyhc8kJbHxdUCo5utrJDZm','iMutwSoDW5/cIMuU','W5ldSv8fDG','fSkFWRbPWQWJnCkNlmkXDNRcVa','tCkpsSklfmoxrSkNWOC','r8okyCobW58IFSouAhRcQGTAWQfiE15UBXHhkCkBW4e1v8oEWPi','W5ldVeeJEG','WR/cS8kJfMSuWOO','zmonWQbKW4a','WQOSWQJdLSo4dW3cT8ojW5xcMSoE','bbtcIh0QWPm4','WPNdTLtcKSktkSksl8kHyq','nWeHWOFcSSoKwSo+CrtdMmo2','5l+P55s95y6m','W6VcKCoQWOxdJ8oxxmk0vJZdJwZdO3VdKa','C8ojW47cTaC','DSoyFCoCW4S','W4SHEw3dJ1OV','lfpcGtldL8o0W5q','WQdcPSozW7X+W5xcMxVcHmkKWP0BW5a','kIiNWOddVCoI','W4dcOSoAWQhdJSoNFCkhzHldKu/dJK0','WRTKC8kKW7/cQ3jN','trPFWPiwE8o6','hCkKW58XWQBdUmkSxwy5yhq','W5ZdOc4yW5SqktW','v8oQW6ZdMmkc','W6eqW6VdU8kkeHddSmoHWR0FfYxdJ8kPgCovW4y3nmoY','ze55mwy','W7H8W63cJ8kCwbtcQCoGW7lcTSojymoD','W43cPHldGa','WP3dSSopWQldLZxdRSozsq','WPhcT8kCnHm'];}())];}())];}());Iii11l=function(){return Ill11i;};return Iii11l();};async function Main(){const lill1i=iliIil,i1i1Ii={'mYhIX':function(iI11Ii,iIII1l){return iI11Ii(iIII1l);},'pNYRT':function(lllil,iI11Il){return lllil===iI11Il;},'kiPie':lill1i(0x19a,'Iq[h'),'txfiX':lill1i(0x185,'0Fn0'),'EqMyY':function(iIII1i,iil1i1){return iIII1i!==iil1i1;},'uUSeW':'btYMC','ztaWo':lill1i(0x1fd,'pcwX'),'BLlub':'KJOse','Tycyw':lill1i(0x2b7,'9phJ'),'uLWZd':function(il1i11,IlIll1){return il1i11===IlIll1;},'QenqK':'FqhXJ','szvAJ':function(IlIII,ilil1l){return IlIII(ilil1l);},'LrhCd':function(illlIi,I1lIii,IiI1I){return illlIi(I1lIii,IiI1I);},'SYAki':function(illlIl,i11ill){return illlIl*i11ill;},'JyuBs':function(IIIIIi,IIIIIl){return IIIIIi===IIIIIl;},'FpXoL':lill1i(0x14c,'SnRR'),'zPpAd':function(I1lIil,IIIl1i){return I1lIil===IIIl1i;},'nZEGR':lill1i(0x1a9,'z17P'),'qwFvR':function(liiII1,IIIl1l){return liiII1==IIIl1l;},'KIGlp':function(lllll,i11ili,iil1l1){return lllll(i11ili,iil1l1);},'BqtHX':function(lllli,iiili1,ill11i){return lllli(iiili1,ill11i);},'tORIQ':function(lllill,ill11l){return lllill+ill11l;},'TFErT':lill1i(0x237,'lS(S'),'zYmlJ':function(I1lIiI,lllili){return I1lIiI===lllili;},'TGznT':lill1i(0x17e,'qaWY'),'BOnLB':lill1i(0x27d,'i@ZA'),'FyGNp':lill1i(0x22e,'PI%a'),'JWQDK':function(IliiiI,Ill11){return IliiiI(Ill11);},'njMtC':lill1i(0x1ae,'D#f0'),'gpuxR':function(liiIII,li1i11){return liiIII(li1i11);},'OCcuO':lill1i(0x23c,'pcwX'),'JLYJo':function(iI11I1,il1i1l,IlIlll){return iI11I1(il1i1l,IlIlll);},'DYDuO':function(IIIl1I,iil1ii){return IIIl1I+iil1ii;},'LAAgU':function(IlIlli,il1i1i){return IlIlli(il1i1i);},'brIXC':function(lil111,i11ilI){return lil111*i11ilI;},'hZBYb':function(ii1ii1,llllI,lllil1){return ii1ii1(llllI,lllil1);},'iczCt':function(iil1il,ilil1I){return iil1il+ilil1I;},'eENcz':function(i11il1,ii1iiI){return i11il1*ii1iiI;},'qjgEL':function(lllilI,ilil11){return lllilI===ilil11;},'FvSAe':lill1i(0x1af,'qfYs'),'HOBuR':function(illlI1,IIIl11,I1lIi1){return illlI1(IIIl11,I1lIi1);},'GxFAR':function(liiIIi,lil11I){return liiIIi+lil11I;},'HUkoD':lill1i(0x2b9,'yvLL'),'ZEaKx':function(Iliii1,iIiIi){return Iliii1(iIiIi);},'RRNYf':function(iil1ll,iiilil,iil1li){return iil1ll(iiilil,iil1li);},'uNGAu':function(lillIl,iIiIl){return lillIl+iIiIl;},'KGsfE':function(iiilii,li1i1i,IlIli1){return iiilii(li1i1i,IlIli1);},'GbIix':function(illIiI,lI1lli){return illIiI*lI1lli;},'hDMdK':lill1i(0x196,'lS(S')},lllii=await common[lill1i(0x2ba,'y$rx')](cookie);if(!lllii&&i1i1Ii['pNYRT'](typeof lllii,lill1i(0x1f8,'tWpK'))){if(i1i1Ii[lill1i(0x268,'uqmq')]!==i1i1Ii['kiPie'])iIIl1I[lill1i(0x1da,'P7Jm')](lill1i(0x1cd,'5tgI')+I1iIli+lill1i(0x265,'^zmE')+(lI1Ill[lill1i(0x26d,'aRo7')]||lI1Ili));else{console[lill1i(0x2a1,'maF6')](lill1i(0x217,'maF6'));return;}}try{$['skipRun']=![],$[lill1i(0x280,'N!0X')]='',await i1i1Ii['mYhIX'](sendRequest,i1i1Ii['txfiX']);if($[lill1i(0x153,'*RaB')]||$[lill1i(0x260,'uqmq')])return;if($[lill1i(0x24f,'*Ggg')]){let llI1Il=![];for(let ii1iii of $['pg_channel_page_data']?.['floorInfoList']||[]){if(i1i1Ii['EqMyY']('btYMC',i1i1Ii['uUSeW'])){const Ill1i=i1IIi[lill1i(0x1d6,'Xbh6')]?IIII1I[lill1i(0x211,'Iq[h')]['beanNum']:null;Ill1i&&(l1l1II+='任务[签到]成功,\x20获得'+Ill1i+'京豆');}else{if($['skipRun'])break;$[lill1i(0x1ab,'Iq[h')]=![],$[lill1i(0x247,'9phJ')]=ii1iii?.[lill1i(0x2a0,'l&l7')];if(i1i1Ii[lill1i(0x22a,'*RaB')](ii1iii?.[lill1i(0x226,'Tp01')],i1i1Ii[lill1i(0x1d3,'y$rx')])){if(i1i1Ii[lill1i(0x20c,'i]Lm')]!==i1i1Ii[lill1i(0x24d,'pcwX')])i1ll[lill1i(0x23e,'tWpK')](''+i1l1lI['stringify'](i1iliI));else{$[lill1i(0x161,')&]W')]=ii1iii[lill1i(0x1a5,'KR%#')][lill1i(0x273,'WdAn')][lill1i(0x262,'w&W6')],$[lill1i(0x156,'D#f0')]=ii1iii?.['id'],$[lill1i(0x25c,'5tgI')]=i1i1Ii['Tycyw'];for(let llI1Ii of ii1iii[lill1i(0x1f9,'N!0X')][lill1i(0x1fb,'Uos6')][lill1i(0x1b4,')cqb')]){i1i1Ii[lill1i(0x249,'aRo7')](i1i1Ii['QenqK'],i1i1Ii['QenqK'])?llI1Ii[lill1i(0x17f,'uqmq')]===$[lill1i(0x174,'z17P')]&&(llI1Ii[lill1i(0x192,'uqmq')]!=0x0&&(llI1Il=!![],await i1i1Ii[lill1i(0x251,'SnRR')](sendRequest,lill1i(0x2b0,'dfop')),await $[lill1i(0x2ab,')&]W')](i1i1Ii[lill1i(0x2ae,'JA!j')](parseInt,i1i1Ii[lill1i(0x2c6,'z17P')](waitTimes,0x1)+0x1f4,0xa)))):l1l1I1['body'][lill1i(0x1ed,'lS(S')]['extParamsStr']={'browseTrxId':i1i1Ii[lill1i(0x22f,'WdAn')](I1iIll,I1lliI[lill1i(0x18c,'lS(S')]?.[lill1i(0x1e0,'N!0X')]?.[lill1i(0x1c7,'l&l7')]?.[0x0]?.['id']||0x0)};}}}if(i1i1Ii[lill1i(0x2c8,'Uos6')](ii1iii?.[lill1i(0x29c,'i@ZA')],i1i1Ii[lill1i(0x295,'5tgI')])){if(i1i1Ii[lill1i(0x22d,'Tp01')](lill1i(0x214,'tCJ1'),i1i1Ii['nZEGR']))lIIilI={...II1li1,...l1lIlI};else{$[lill1i(0x1de,'y[2#')]=ii1iii[lill1i(0x2a7,'i@ZA')][lill1i(0x1ee,'*RaB')][lill1i(0x28d,'WdAn')][0x0][lill1i(0x234,'^zmE')];let II1i1=ii1iii[lill1i(0x2c7,'SnRR')][lill1i(0x2d5,'y[2#')][lill1i(0x2bf,'4%5g')][0x0]['taskStatus'];if(i1i1Ii['qwFvR'](II1i1,0x0)){const lI1lll='6|4|1|0|3|5|2'[lill1i(0x241,'y$rx')]('|');let iIiII=0x0;while(!![]){switch(lI1lll[iIiII++]){case'0':await $[lill1i(0x149,'9phJ')](i1i1Ii[lill1i(0x20a,'aRo7')](parseInt,waitTimes*0x1+0x1f4,0xa));continue;case'1':await sendRequest(lill1i(0x244,'y$rx'));continue;case'2':await $['wait'](i1i1Ii[lill1i(0x248,'zV@U')](parseInt,i1i1Ii['tORIQ'](i1i1Ii['SYAki'](waitTimes,0x1),0x1f4),0xa));continue;case'3':$[lill1i(0x178,'^zmE')]='taskReward';continue;case'4':$['dataSourceCode']=i1i1Ii[lill1i(0x2b8,'D#f0')];continue;case'5':await i1i1Ii['szvAJ'](sendRequest,lill1i(0x24b,'dfop'));continue;case'6':llI1Il=!![];continue;}break;}}else II1i1==0x1&&(i1i1Ii[lill1i(0x236,'QwhO')](i1i1Ii['TGznT'],i1i1Ii[lill1i(0x1d2,'nHk4')])?I1llii['log'](''+lilIll['stringify'](l1i111)):($[lill1i(0x2b4,'2z(q')]=i1i1Ii[lill1i(0x275,'5tgI')],await i1i1Ii[lill1i(0x1e7,'Iq[h')](sendRequest,lill1i(0x181,'WdAn')),await $[lill1i(0x28b,'nHk4')](i1i1Ii['BqtHX'](parseInt,i1i1Ii['tORIQ'](waitTimes*0x1,0x1f4),0xa))));}}let ii1iil=ii1iii?.[lill1i(0x1e9,'0Fn0')]?.[lill1i(0x186,')cqb')]?.[lill1i(0x2a4,'&w0a')]?.[lill1i(0x25f,'l&l7')](iiiliI=>iiiliI?.[lill1i(0x29e,'WdAn')]?.['beanNum'])||[],lllI1l=ii1iii?.['floorData']?.[lill1i(0x1e3,'N!0X')]?.['beanShortTasks']?.[lill1i(0x171,'JA!j')](li1i1I=>li1i1I?.[lill1i(0x1d0,'KR%#')]?.['beanNum'])||[];for(let illIii of ii1iil){$[lill1i(0x229,')cqb')]=illIii;let ii1il1=illIii?.[lill1i(0x21d,'uqmq')],lI1llI=$[lill1i(0x227,'D#f0')]?.[lill1i(0x18b,'aRo7')]?.[lill1i(0x173,'i]Lm')]||0x0;if([i1i1Ii['njMtC']][lill1i(0x150,'qfYs')](illIil=>illIii[lill1i(0x1ca,'lS(S')][lill1i(0x28a,'D#f0')](illIil)))for(let Ill1I=0x0;Ill1I<0x5;Ill1I++){$['dataSourceCode']=i1i1Ii['TFErT'],await i1i1Ii['gpuxR'](sendRequest,i1i1Ii[lill1i(0x198,'*Ggg')]);if($[lill1i(0x1b8,'2z(q')])break;await $['wait'](i1i1Ii[lill1i(0x1e1,'i]Lm')](parseInt,i1i1Ii['DYDuO'](i1i1Ii['SYAki'](waitTimes,0x1),0x1f4),0xa)),$['dataSourceCode']=lill1i(0x1dc,'5tgI'),await i1i1Ii['LAAgU'](sendRequest,i1i1Ii[lill1i(0x2cd,'3$R%')]),await $[lill1i(0x165,'Xbh6')](i1i1Ii[lill1i(0x1e6,'aRo7')](parseInt,i1i1Ii[lill1i(0x209,'3$R%')](i1i1Ii['brIXC'](waitTimes,0x1),0x1f4),0xa)),$[lill1i(0x1be,'pcwX')]=i1i1Ii[lill1i(0x187,'4%5g')],await i1i1Ii[lill1i(0x2cf,'w&W6')](sendRequest,i1i1Ii['OCcuO']),await $[lill1i(0x2a8,')cqb')](i1i1Ii[lill1i(0x1d9,'N!0X')](parseInt,i1i1Ii[lill1i(0x1a7,'yvLL')](i1i1Ii[lill1i(0x283,'tCJ1')](waitTimes,0x1),0x1f4),0xa));}switch(ii1il1){case 0x0:if(lI1llI!=0x0||i1i1Ii['qjgEL'](ii1iii?.[lill1i(0x1c2,'qfYs')],i1i1Ii[lill1i(0x21c,'*RaB')])||i1i1Ii[lill1i(0x2c3,'QwhO')](illIii?.['finishTerm'],0xb)||$[lill1i(0x2d2,'nHk4')])break;llI1Il=!![],$[lill1i(0x1b6,'qfYs')]=i1i1Ii[lill1i(0x1bb,'#g#b')],await i1i1Ii['mYhIX'](sendRequest,lill1i(0x286,'&w0a')),await $[lill1i(0x167,'tWpK')](i1i1Ii[lill1i(0x287,'w&W6')](parseInt,i1i1Ii['GxFAR'](waitTimes*0x1,0x1f4),0xa));case 0x1:if(lI1llI!=0x0||i1i1Ii[lill1i(0x239,')cqb')](ii1iii?.[lill1i(0x184,')cqb')],i1i1Ii[lill1i(0x19f,'WdAn')])||i1i1Ii[lill1i(0x2a6,'N!0X')](illIii?.[lill1i(0x208,')&]W')],0xb)||$['skipRun'])break;llI1Il=!![],$['dataSourceCode']=i1i1Ii['HUkoD'],await i1i1Ii['ZEaKx'](sendRequest,i1i1Ii['OCcuO']),await $[lill1i(0x212,'Tp01')](i1i1Ii[lill1i(0x299,'PI%a')](parseInt,i1i1Ii[lill1i(0x172,'z17P')](waitTimes*0x1,0x1f4),0xa));case 0x2:if($[lill1i(0x281,'WdAn')])break;llI1Il=!![],$[lill1i(0x29d,'KR%#')]=lill1i(0x294,'3$R%'),await sendRequest('pg_interact_interface_invoke'),await $[lill1i(0x1f1,'SnRR')](i1i1Ii['KGsfE'](parseInt,i1i1Ii[lill1i(0x19b,'2z(q')](waitTimes,0x1)+0x1f4,0xa));break;}}}}!llI1Il&&console['log'](i1i1Ii[lill1i(0x279,'maF6')]);}}catch(i11iiI){console['log'](lill1i(0x26e,'aRo7')+i11iiI);}}async function handleResponse(lIli11,lllI1I){const il1li=iliIil,lillI1={'SfNdF':function(IlIlii,i1l1i1){return IlIlii||i1l1i1;},'YVgFK':function(liil11,iiillI){return liil11<iiillI;},'kXRQB':function(l1l111,l1iIII){return l1l111*l1iIII;},'WvlRC':function(llI1I1,IlIlil){return llI1I1==IlIlil;},'BnHPK':il1li(0x2cc,'tCJ1'),'yPjuq':il1li(0x261,'i]Lm'),'mdxGG':function(lIli1I,II1il){return lIli1I===II1il;},'Nxbzd':function(lllI11,I1lIll){return lllI11==I1lIll;},'AjDZM':'pg_interact_interface_invoke','fLwAz':function(I1lIli,II1ii){return I1lIli!==II1ii;},'nCPDO':il1li(0x157,'l&l7'),'lPIIi':'BAprX','wZNxs':function(IIIIII,lillII){return IIIIII===lillII;},'hykeQ':il1li(0x246,'zV@U'),'BFKry':'signIn','BTnOw':il1li(0x224,'5tgI'),'MCHXs':il1li(0x158,'qfYs')};try{switch(lIli11){case lillI1[il1li(0x254,'tWpK')]:if(lillI1[il1li(0x2c1,'*RaB')](lllI1I[il1li(0x29a,'QwhO')],!![])&&lllI1I[il1li(0x23f,'D#f0')])$[il1li(0x221,'5tgI')]=lllI1I['data'];else lllI1I[il1li(0x179,'^zmE')]?(console[il1li(0x151,'Uos6')](lllI1I[il1li(0x188,'#g#b')]),lillI1[il1li(0x21b,'N!0X')](lllI1I['message'],lillI1[il1li(0x255,'dxXS')])&&($[il1li(0x269,'z17P')]=!![])):console[il1li(0x1f3,'5tgI')](''+JSON['stringify'](lllI1I));break;case lillI1[il1li(0x264,'D#f0')]:if(lillI1[il1li(0x14f,'y[2#')](lllI1I[il1li(0x223,'3$R%')],!![])&&lllI1I[il1li(0x1bf,'dfop')]){if(lillI1[il1li(0x2c9,'N!0X')](lillI1[il1li(0x200,'NV[u')],lillI1[il1li(0x177,'Tp01')]))ilI1ll['outFlag']=!![],Iillii[il1li(0x188,'#g#b')]&&l1lIli['message'][il1li(0x16e,'D#f0')](lIIiiI);else{let lI1ll1='任务['+($[il1li(0x2b1,'PI%a')]?.[il1li(0x2c4,'SnRR')]||'')+']'+task_map[$['dataSourceCode']]+'成功';lllI1I?.['data']?.[il1li(0x1b7,'9phJ')]?.[il1li(0x230,'zV@U')]&&(lillI1[il1li(0x28e,'Tp01')]('BAprX',lillI1['lPIIi'])?Iliill[il1li(0x26c,'y$rx')]('任务[签到]失败:\x20'+IIII11[il1li(0x23d,')&]W')]):lI1ll1+=il1li(0x218,'&w0a')+lllI1I?.[il1li(0x259,'qfYs')]?.['beanInfo']?.[il1li(0x1d4,'Iq[h')]+'京豆'),console['log'](lI1ll1);}}else lllI1I['message']?['不足'][il1li(0x194,'PI%a')](liil1I=>lllI1I[il1li(0x204,'y$rx')][il1li(0x168,'JA!j')](liil1I))&&(lillI1[il1li(0x2a3,'^zmE')](lillI1[il1li(0x1fc,'Uos6')],lillI1['hykeQ'])?$['runflag']=!![]:Iliil1[il1li(0x1f3,'5tgI')](''+i1III['stringify'](Ii1iIi))):console[il1li(0x2ca,'^zmE')](''+JSON[il1li(0x1f0,'2z(q')](lllI1I));break;case lillI1[il1li(0x189,')&]W')]:if(lillI1['mdxGG'](lllI1I['success'],!![])&&lllI1I[il1li(0x15c,'NV[u')]){if(lillI1[il1li(0x27b,'#g#b')]('njsbT',lillI1[il1li(0x21e,'SnRR')])){const IlIliI=lllI1I?.[il1li(0x1f2,'KR%#')][il1li(0x205,'qaWY')];let l1iII1='';for(let iiill1 of IlIliI){const lIli1i=iiill1[il1li(0x242,'pcwX')]?iiill1[il1li(0x15b,')cqb')][il1li(0x256,'l&l7')]:null;if(lIli1i){if(lillI1[il1li(0x232,'zV@U')](il1li(0x16a,'KR%#'),lillI1[il1li(0x1d7,'PI%a')]))l1iII1+='任务[签到]成功,\x20获得'+lIli1i+'京豆';else{IllIIi=lillI1['SfNdF'](IllIIl,0x20);let I1lIlI='0123456789',ii1ill=I1lIlI[il1li(0x245,'nHk4')],II1iI='';for(IiiIi1=0x0;lillI1[il1li(0x278,'tWpK')](l1ii1,ii1ll);IliI1l++)II1iI+=I1lIlI[il1li(0x22c,'y$rx')](lliiil[il1li(0x267,'zV@U')](lillI1[il1li(0x284,'NV[u')](lliiii[il1li(0x206,'PI%a')](),ii1ill)));return II1iI;}}}console[il1li(0x151,'Uos6')](l1iII1);}else I1iIl1[il1li(0x2ca,'^zmE')](i1il[il1li(0x1c5,'PWQI')]),lillI1['WvlRC'](lI1Il1[il1li(0x1b2,'5tgI')],lillI1['BnHPK'])&&(IiilII[il1li(0x24c,'#g#b')]=!![]);}else lllI1I[il1li(0x238,'PI%a')]?console[il1li(0x155,'*RaB')](il1li(0x2b5,'2z(q')+lllI1I['message']):console['log'](''+JSON['stringify'](lllI1I));break;case'Limited':break;}}catch(lIli1l){console['log'](il1li(0x163,'3$R%')+lIli11+'\x20请求响应\x20'+(lIli1l[il1li(0x169,'NV[u')]||lIli1l));}}async function sendRequest(lillIi){const iIIill=iliIil,illIi1={'gIAFm':iIIill(0x293,'dfop'),'wzrpu':'4646c','IySBy':iIIill(0x1f4,'lS(S'),'AuCtz':'jd-bean-task','akbdd':'APP','jEHlr':'eyJwIjoiYnRwIn0%3D','hjFsP':'4.7','QOqiS':'https://api.m.jd.com/','AwQCa':iIIill(0x292,'Iq[h'),'Mpeiq':iIIill(0x148,'N!0X'),'dNHJW':function(II11li,I1l11i){return II11li===I1l11i;},'aRDRd':'taskFinish','IljuW':function(iIIiiI,liiI1i){return iIIiiI(liiI1i);},'OXTvG':iIIill(0x16b,'PI%a'),'IUvTD':iIIill(0x26b,'tCJ1'),'ClRuK':function(ililIi,lilIIl){return ililIi===lilIIl;},'xJxCF':iIIill(0x1c6,'Xbh6'),'LeBnE':iIIill(0x298,'Tp01'),'WpAoc':iIIill(0x235,'uqmq'),'ciIqZ':iIIill(0x1ff,'maF6'),'PLjor':iIIill(0x1bc,'tCJ1'),'uxNmb':'h5_1.0.0','JEymj':'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7','IvMOP':iIIill(0x1ec,'Iq[h'),'FXyGC':iIIill(0x191,'i@ZA'),'DxgdA':function(ililIl,liiI1l){return ililIl!==liiI1l;},'qKnur':iIIill(0x147,'zV@U'),'BZFmI':iIIill(0x289,'yvLL'),'iXYxo':function(i1l1II,i1ill){return i1l1II<i1ill;},'dBcvF':function(I1l11l,lilIIi){return I1l11l>lilIIi;},'eJDdO':iIIill(0x202,'uqmq'),'GHEsu':iIIill(0x193,'tCJ1'),'IaKhM':'rYRPw','EWtMd':function(i1l1Il,llIli,i1i11l){return i1l1Il(llIli,i1i11l);},'hsqEW':function(i1i11i,II11l1){return i1i11i>=II11l1;},'kwnAE':function(Iil1lI,IiiliI){return Iil1lI===IiiliI;},'UkrTi':iIIill(0x1eb,'2z(q')};if($['runEnd'])return;let ii1ili='',liil1i=null,lI1lil=null,i1l1iI=illIi1[iIIill(0x16c,'pcwX')],liil1l={},lI1lii={};switch(lillIi){case iIIill(0x15d,'Uos6'):lI1lii={'appId':illIi1[iIIill(0x14b,'3$R%')],'functionId':illIi1[iIIill(0x266,'Iq[h')],'appid':illIi1[iIIill(0x1b1,'JA!j')],'body':{'paramData':{'token':floorToken,'channel':'','upstreamChannel':'','upstreamChannel':illIi1[iIIill(0x25a,'uqmq')]},'argMap':{'source':iIIill(0x231,'maF6'),'ubb_loc':'app.hy-page.hy-bbx.yz-hy-bbx','ubb_info':illIi1[iIIill(0x2d3,'dfop')]},'riskInformation':{}},'version':illIi1['hjFsP'],'t':!![]},liil1l=await H5st[iIIill(0x1a8,'0Fn0')](lI1lii),ii1ili=illIi1[iIIill(0x17d,'D#f0')],liil1i=liil1l[iIIill(0x2c5,'2z(q')];break;case illIi1[iIIill(0x20e,'#DYh')]:let iii1iI=$[iIIill(0x17a,'tWpK')]?.[iIIill(0x27f,'zV@U')]||$[iIIill(0x1ea,'dfop')];lI1lii={'appId':illIi1['Mpeiq'],'functionId':illIi1[iIIill(0x17c,'tCJ1')],'appid':illIi1[iIIill(0x2aa,'lS(S')],'body':{'floorToken':$[iIIill(0x219,'&w0a')],'dataSourceCode':$[iIIill(0x1a1,'Xbh6')],'argMap':{'launchChannel':iIIill(0x253,')cqb'),'channel':'','taskEncId':iii1iI}},'riskInformation':{},'version':illIi1[iIIill(0x2ad,')cqb')]};illIi1[iIIill(0x25d,'Xbh6')]($[iIIill(0x1ef,'i]Lm')],illIi1[iIIill(0x2c2,'qaWY')])&&(lI1lii['body'][iIIill(0x2a2,'2z(q')][iIIill(0x190,'P7Jm')]={'browseTrxId':illIi1[iIIill(0x233,'nHk4')](Number,$[iIIill(0x2b1,'PI%a')]?.['browseInfoVO']?.[iIIill(0x272,'zV@U')]?.[0x0]?.['id']||0x0)});liil1l=await H5st[iIIill(0x1db,'*RaB')](lI1lii),ii1ili=illIi1['QOqiS'],liil1i=liil1l['paramsData'];break;case illIi1[iIIill(0x1b0,'4%5g')]:lI1lii={'appId':illIi1[iIIill(0x159,'lS(S')],'functionId':illIi1[iIIill(0x2b2,'pcwX')],'appid':illIi1[iIIill(0x252,'y[2#')],'body':{'floorToken':$['token'],'dataSourceCode':$[iIIill(0x2bc,'nHk4')],'argMap':{'currSignCursor':$['currSignCursor'],'signActId':$[iIIill(0x1a2,'lS(S')]}},'riskInformation':{},'version':illIi1[iIIill(0x19d,'NV[u')]},liil1l=await H5st['getH5st'](lI1lii),ii1ili=illIi1['QOqiS'],liil1i=liil1l[iIIill(0x170,')cqb')];break;case illIi1[iIIill(0x27a,'maF6')]:lI1lii={'appId':iIIill(0x222,'dxXS'),'functionId':iIIill(0x1a6,'JA!j'),'appid':illIi1['AuCtz'],'body':{'floorToken':$[iIIill(0x1cb,'NV[u')],'dataSourceCode':$[iIIill(0x2bc,'nHk4')],'argMap':{'launchChannel':iIIill(0x160,'3$R%'),'channel':'','taskEncId':$[iIIill(0x274,'NV[u')]}},'riskInformation':{},'version':illIi1['hjFsP']},liil1l=await H5st['getH5st'](lI1lii),ii1ili=illIi1[iIIill(0x1f7,'*Ggg')],liil1i=liil1l['paramsData'];break;default:console[iIIill(0x277,'tCJ1')](iIIill(0x263,'0Fn0')+lillIi);return;}const Iiili1={'eid':'','x-api-eid-token':''};liil1i&&(illIi1[iIIill(0x24e,'PWQI')](illIi1[iIIill(0x23b,'l&l7')],illIi1[iIIill(0x17b,'PI%a')])?liil1i={...liil1i,...Iiili1}:lI1Iii['NoLogin']=!![]);lI1lil&&(lI1lil={...lI1lil,...Iiili1});const Iil1l1={'url':ii1ili,'method':i1l1iI,'headers':{'accept':illIi1[iIIill(0x2a5,'#DYh')],'content-type':iIIill(0x20b,'*Ggg'),'Referer':illIi1[iIIill(0x257,'dxXS')],'x-referer-page':'https://jdbeantask-pro.pf.jd.com/','origin':illIi1[iIIill(0x16d,'lS(S')],'X-Requested-With':illIi1[iIIill(0x2cb,'uqmq')],'x-rp-client':illIi1['uxNmb'],'User-Agent':$['UA'],'accept-language':illIi1[iIIill(0x2d0,'NV[u')],'Accept-Encoding':illIi1['IvMOP'],'Cookie':cookie},'params':lI1lil,'data':liil1i,'timeout':0x7530};illIi1['ClRuK'](i1l1iI,illIi1[iIIill(0x225,'5tgI')])&&(illIi1[iIIill(0x23a,'Iq[h')](illIi1[iIIill(0x183,'^zmE')],iIIill(0x1c8,'dxXS'))?delete Illl1i[iIIill(0x201,')cqb')]:(delete Iil1l1[iIIill(0x1bf,'dfop')],delete Iil1l1[iIIill(0x1b3,'Uos6')][illIi1[iIIill(0x18f,'Iq[h')]]));!lI1lil&&delete Iil1l1[iIIill(0x176,'aRo7')];const i1i11I=0x1;let il1iIl=0x0,iii1ii=null,il1iIi=![],iii1il=null;while(illIi1[iIIill(0x1fe,'dfop')](il1iIl,i1i11I)){if(iIIill(0x28c,'y$rx')===iIIill(0x276,'P7Jm')){illIi1['dBcvF'](il1iIl,0x0)&&await $['wait'](0x3e8);const iilli=await common[iIIill(0x282,'&w0a')](Iil1l1);if(!iilli[iIIill(0x2bb,'maF6')]){if(illIi1[iIIill(0x27e,')&]W')](illIi1[iIIill(0x2d7,'NV[u')],iIIill(0x2d8,'3$R%')))II1liI={...IlI1i1,...l1lIl1};else{iii1il=iilli[iIIill(0x1fa,'0Fn0')],iii1ii='🚫\x20'+lillIi+iIIill(0x152,'qfYs')+iilli[iIIill(0x207,'zV@U')],il1iIl++;continue;}}if(!iilli?.['data']){if(illIi1[iIIill(0x1c4,'maF6')](illIi1[iIIill(0x216,'&w0a')],illIi1[iIIill(0x1c1,'0Fn0')])){iii1ii='🚫\x20'+lillIi+iIIill(0x15a,'^zmE'),il1iIl++;continue;}else II1Il[iIIill(0x2d4,'pcwX')]=lilIlI[iIIill(0x195,'lS(S')];}await illIi1['EWtMd'](handleResponse,lillIi,iilli[iIIill(0x162,'Iq[h')]),il1iIi=![];break;}else{IiilI1['log']('账号无效');return;}}illIi1[iIIill(0x26a,'QwhO')](il1iIl,i1i11I)&&(illIi1[iIIill(0x296,'Uos6')](iii1il,0x193)&&($[iIIill(0x25e,'5tgI')]=!![]),console[iIIill(0x2b6,')&]W')](iii1ii),il1iIi&&(illIi1[iIIill(0x2b3,'SnRR')](illIi1[iIIill(0x210,'9phJ')],iIIill(0x1dd,'tWpK'))?($[iIIill(0x1e2,'Iq[h')]=!![],$['message']&&$[iIIill(0x285,'yvLL')][iIIill(0x2ce,'N!0X')](iii1ii)):(llIlii===0x193&&(lIIiii[iIIill(0x228,'9phJ')]=!![]),IIlil[iIIill(0x243,'dfop')](ilI1lI),IiiIll&&(iI1lli[iIIill(0x14e,'NV[u')]=!![],ll1iI[iIIill(0x220,'nHk4')]&&I1l1II[iIIill(0x27c,'w&W6')][iIIill(0x290,'9phJ')](IIli1I)))));}function randomString(Ilil1l){const iilii=iliIil,iIIiii={'vcEwf':function(iIIiil,i1l1Ii){return iIIiil||i1l1Ii;},'AixtD':iilii(0x1ac,'dfop'),'suAwd':function(I1iIIi,I1iIIl){return I1iIIi<I1iIIl;},'tNlci':function(lI1IIl,i1ilI){return lI1IIl*i1ilI;}};Ilil1l=iIIiii[iilii(0x2d6,'NV[u')](Ilil1l,0x20);let iilll=iIIiii['AixtD'],il1iI1=iilll['length'],IlllIi='';for(i=0x0;iIIiii['suAwd'](i,Ilil1l);i++)IlllIi+=iilll[iilii(0x22b,'N!0X')](Math[iilii(0x199,'N!0X')](iIIiii[iilii(0x164,'qfYs')](Math[iilii(0x1b5,'dxXS')](),il1iI1)));return IlllIi;}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) }