/*
粉丝福利

入口：微信公众号粉丝福利

只兑换京豆奖励，不兑换其他奖品

cron:40 0,18 * * *

*/

const $ = new Env('公众号粉丝福利')
var iｉl='jsjiami.com.v7';const IIli11=iii1II;if(function(II1lil,IIli1l,II1lii,lIIii1,ll1i1,IIli1i,I1iIi1){return II1lil=II1lil>>0x2,IIli1i='hs',I1iIi1='hs',function(lliil1,IIllI,lliilI,lili1,ll1l1){const ll1ii=iii1II;lili1='tfi',IIli1i=lili1+IIli1i,ll1l1='up',I1iIi1+=ll1l1,IIli1i=lliilI(IIli1i),I1iIi1=lliilI(I1iIi1),lliilI=0x0;const IllIIi=lliil1();while(!![]&&--lIIii1+IIllI){try{lili1=-parseInt(ll1ii(0x1b1,'rSHC'))/0x1*(parseInt(ll1ii(0x1cc,'zT15'))/0x2)+parseInt(ll1ii(0x22c,'&CXu'))/0x3*(parseInt(ll1ii(0x173,'PiwY'))/0x4)+-parseInt(ll1ii(0x1a0,'aLvS'))/0x5+parseInt(ll1ii(0x17d,'wAoh'))/0x6*(-parseInt(ll1ii(0x164,'5jS%'))/0x7)+-parseInt(ll1ii(0x232,'bRuJ'))/0x8*(parseInt(ll1ii(0x1d0,'Rrz^'))/0x9)+parseInt(ll1ii(0x1ec,'wAoh'))/0xa+parseInt(ll1ii(0x1f5,'pHnu'))/0xb;}catch(IllIIl){lili1=lliilI;}finally{ll1l1=IllIIi[IIli1i]();if(II1lil<=lIIii1)lliilI?ll1i1?lili1=ll1l1:ll1i1=ll1l1:lliilI=ll1l1;else{if(lliilI==ll1i1['replace'](/[pkgQTJGeYlLXPutRKqV=]/g,'')){if(lili1===IIllI){IllIIi['un'+IIli1i](ll1l1);break;}IllIIi[I1iIi1](ll1l1);}}}}}(II1lii,IIli1l,function(IiiIi1,l1ii1,ii1ll,IliI1l,lliiil,lliiii,IliI1i){return l1ii1='\x73\x70\x6c\x69\x74',IiiIi1=arguments[0x0],IiiIi1=IiiIi1[l1ii1](''),ii1ll=`\x72\x65\x76\x65\x72\x73\x65`,IiiIi1=IiiIi1[ii1ll]('\x76'),IliI1l=`\x6a\x6f\x69\x6e`,(0x16a77b,IiiIi1[IliI1l](''));});}(0x328,0xa64ea,Iii11l,0xcc),Iii11l){}const notify=require(IIli11(0x1b2,'#7K8')),jdCookie=require(IIli11(0x1d9,'PKfH')),common=require('./utils/Rebels_jdCommon'),{H5st}=require('./utils/Rebels_H'),isNotify=![];let waitTimes=0x7d0,cookie='';const cookiesArr=Object[IIli11(0x223,'#7K8')](jdCookie)[IIli11(0x1c4,'zT15')](i1ilil=>jdCookie[i1ilil])[IIli11(0x14c,'Ml$2')](lilIii=>lilIii);!cookiesArr[0x0]&&($[IIli11(0x1dd,'nJ(e')]($[IIli11(0x195,'jlAx')],IIli11(0x15c,'%xG@')),process[IIli11(0x183,'OCC5')](0x1));!(async()=>{const IllIII=IIli11,i1ill1={'TOdEP':function(iIIl1l,llIli1){return iIIl1l<llIli1;},'TeCef':function(iliIII,iIIl1i){return iliIII+iIIl1i;},'jKXGn':function(I1lllI,ill111){return I1lllI(ill111);},'ymuts':IllIII(0x19f,'w&0Y'),'bPWYp':function(Iliil1){return Iliil1();},'FgrGe':function(i1III,Ii1iIi,iliIIl){return i1III(Ii1iIi,iliIIl);},'qRBrx':function(Ii1iIl,iliIIi){return Ii1iIl*iliIIi;}};console['log'](IllIII(0x228,'&[Lp')),notify[IllIII(0x230,'h%x1')]({'title':$['name']});for(let ill11I=0x0;i1ill1[IllIII(0x1af,'ms*d')](ill11I,cookiesArr[IllIII(0x227,'nJ(e')]);ill11I++){$['index']=i1ill1[IllIII(0x1d3,'gdwb')](ill11I,0x1),cookie=cookiesArr[ill11I],common[IllIII(0x168,'&Fax')](cookie),$[IllIII(0x212,'gdwb')]=i1ill1[IllIII(0x1e9,'0L4@')](decodeURIComponent,common[IllIII(0x14a,'PKfH')](cookie,i1ill1['ymuts'])),$['UA']=common[IllIII(0x1fa,'rSHC')]($[IllIII(0x1e1,'@H%P')]),$[IllIII(0x1ce,'VzBu')]=notify[IllIII(0x1fb,'z%H$')]($['index'],$[IllIII(0x1da,'D!sW')]),$['nickName']='',console[IllIII(0x21e,'Qj@b')](IllIII(0x19a,'PiwY')+$['index']+'】'+($[IllIII(0x1ef,'Rrz^')]||$[IllIII(0x18e,'m*cx')])+IllIII(0x177,'[HAf')),await i1ill1['bPWYp'](Main),common['unsetCookie']();if($[IllIII(0x1c0,'h%x1')])break;await $[IllIII(0x1e2,'CZFJ')](i1ill1[IllIII(0x1b9,'ThXg')](parseInt,i1ill1[IllIII(0x1ea,'ThXg')](waitTimes,0x1)+0x64,0xa));}isNotify&&notify[IllIII(0x18b,'ms*d')]()&&(notify['appendContent']('\x0a'),await notify[IllIII(0x214,'D!sW')]());})()[IIli11(0x1a1,'TFac')](Iliiil=>$['logErr'](Iliiil))[IIli11(0x22e,'hY^n')](()=>$['done']());function iii1II(_0x11a87e,_0x531d45){const _0x35b637=Iii11l();return iii1II=function(_0x14ce72,_0x4564b6){_0x14ce72=_0x14ce72-0x146;let _0x1fef53=_0x35b637[_0x14ce72];if(iii1II['ATviHi']===undefined){var _0x416967=function(_0x352c1e){const _0x35fc5a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xca6d0e='',_0x1a62f0='';for(let _0x50b286=0x0,_0x5af3e4,_0x6490d3,_0x97e984=0x0;_0x6490d3=_0x352c1e['charAt'](_0x97e984++);~_0x6490d3&&(_0x5af3e4=_0x50b286%0x4?_0x5af3e4*0x40+_0x6490d3:_0x6490d3,_0x50b286++%0x4)?_0xca6d0e+=String['fromCharCode'](0xff&_0x5af3e4>>(-0x2*_0x50b286&0x6)):0x0){_0x6490d3=_0x35fc5a['indexOf'](_0x6490d3);}for(let _0x15ddf2=0x0,_0x3e8a0a=_0xca6d0e['length'];_0x15ddf2<_0x3e8a0a;_0x15ddf2++){_0x1a62f0+='%'+('00'+_0xca6d0e['charCodeAt'](_0x15ddf2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1a62f0);};const _0x423c88=function(_0x594278,_0x3600d5){let _0x20f7d3=[],_0x338ebf=0x0,_0x52a1cb,_0x4acf3f='';_0x594278=_0x416967(_0x594278);let _0x612780;for(_0x612780=0x0;_0x612780<0x100;_0x612780++){_0x20f7d3[_0x612780]=_0x612780;}for(_0x612780=0x0;_0x612780<0x100;_0x612780++){_0x338ebf=(_0x338ebf+_0x20f7d3[_0x612780]+_0x3600d5['charCodeAt'](_0x612780%_0x3600d5['length']))%0x100,_0x52a1cb=_0x20f7d3[_0x612780],_0x20f7d3[_0x612780]=_0x20f7d3[_0x338ebf],_0x20f7d3[_0x338ebf]=_0x52a1cb;}_0x612780=0x0,_0x338ebf=0x0;for(let _0x3824f3=0x0;_0x3824f3<_0x594278['length'];_0x3824f3++){_0x612780=(_0x612780+0x1)%0x100,_0x338ebf=(_0x338ebf+_0x20f7d3[_0x612780])%0x100,_0x52a1cb=_0x20f7d3[_0x612780],_0x20f7d3[_0x612780]=_0x20f7d3[_0x338ebf],_0x20f7d3[_0x338ebf]=_0x52a1cb,_0x4acf3f+=String['fromCharCode'](_0x594278['charCodeAt'](_0x3824f3)^_0x20f7d3[(_0x20f7d3[_0x612780]+_0x20f7d3[_0x338ebf])%0x100]);}return _0x4acf3f;};iii1II['DXjQyG']=_0x423c88,_0x11a87e=arguments,iii1II['ATviHi']=!![];}const _0x246cbb=_0x35b637[0x0],_0x5f2fd2=_0x14ce72+_0x246cbb,_0x45838b=_0x11a87e[_0x5f2fd2];return!_0x45838b?(iii1II['yrHKjx']===undefined&&(iii1II['yrHKjx']=!![]),_0x1fef53=iii1II['DXjQyG'](_0x1fef53,_0x4564b6),_0x11a87e[_0x5f2fd2]=_0x1fef53):_0x1fef53=_0x45838b,_0x1fef53;},iii1II(_0x11a87e,_0x531d45);}function Iii11l(){const lilii=(function(){return[...[iｉl,'XtjTLsjptiRQXamik.eJcGYoqpmu.lvKP7RggVLk==','jdNdQvJdTa','owtcHgddKmocza','W7ZdL8kSea','WOXdWO5qW4qAW7G','FvS6WOFdHhdcQq','kgVdGCk5ne3cSG','q8k9WP3cMmkx','Bd/dQKpdN8kE','fJ/dQX/cMXhdQG','qmkMdCkpWROTW7C','WQldNI/dVMhdQ3dcKCk6kt9znSkNa8k6WQddG8k8xg8','sbxdKa','W5FcGr9ZW4G','bZlcI8kmWOtcSMRdJmkEWQldOCoW','EmkMWRtcVqG','W5X+WQC','acFdLg/dGq','FKqMWRFdGNJcRmkKrZ9fo8kksa','F1BdJmoA','nslcPMiAW7m','W53cKSoyWQqcFmo7','W7PQxq','mmkTWRSVh8o5vSkluchcUCoy','mCoKWQDPWRdcSW','5B2C5yUh5PYY','qbz7W5PYW5GGWQKYWRVdO8kXqmkAW7pcHfxdRSoIhSkqW5ezmCoMW4hdGYC','W5Gdt8kyW5lcUmkza8oy','W6ZcU8kFWRRcMSoLW4BcKCoRvw3dUSoeFLDtp2FcPI1Zq8oDW6tcUeZdH8ob','W4dcMeJdJCoYWQyiWOaZW5NdUwmFWQ97WPRcImo2WQxcUZ7dJCoQb8ozW4HxcG','A0qLWPxdN3pcK8k0uGW','W4vqBYSC','pHhcJ8kcu8kqW4hcMJ/dOmobsSo4WOvyrG','W6ddJCk4','4PYbuUIhToAFGoI/GUIIR+MdTEwlG+s7NUMwL+ITGYu','jmouW6PPmqtdMa','44gI5O6f56A944gO6k+J5ywW6i6c5y+qW6lcHKqkWOf7','5PYS5BUA5A6d','A3ZdVYnjWRtcJmo8WODoW6lcRCol','B3u4aa','bJZdSXvX','hZ/cJ8k6WQy','CCkpWOJcHSkxW7ldK8kzWQlcKLRcNc1wiSkjWRuGW7ywEG','jGFcJhKW','kSksjY/dJWpcNuhcSW','iSkrkSkfWRW','ze3dLCopzCoCWPldRIhdScldTCo3DConcSkTz8kOag/dKWRcJJxdQSoyW4NdILu1WPq7me/dOZLIWRlcQvdcJgtcQHy','eZ/dUqJcNWtdVa','W7FcNs5DW5FcICoDssG','dHlcHCk/ffBdNCoclr8ekSkpWOC/t8o/','hKJdPmktoq','DYhdONpdHG','aCkMcSkoWRW','BuG/WPhdNG','DKC0WP3dJN7cPSkHyWPhomkkq8kZW6FcMdRcL0tcQINdMmoH','W5xcK8ozWR13','5lMb5yQ2WOq','C8ojAZFcH8kbbh1nW59htmkAW55/W6nGW5hcINezW6LkgCkcW5lcLMm','77Yd6z2q6ksf','lSkEpwZdK8oFu0z2W51Mz8k7','ASosCY3dHsdcGG','hY7dM2JdLSohkmo2fSkWpSkFWRldTCokWPSOWRquaJylWPK+W5ripxy','WOGMW68TWPTuWR3cSJrzWO/cU8kX','W4dcRNdcQSoHoCol','l+ITVEAXUEwNU+I2QCkg4PYiWQS','W6aJbCoqqa','W5qncf/cVW','zSobBXxcLW','W4ePlv3cGcyrW4S3W5mJDq','t2VcVKVdIcFdG8owWP/dTJu','ESk+eWuUuG','iYtcO3GlW5hdJSo/WO9tW63cHSobW6FdKCo9la','ymk/fcSiuMi','WRldRmonW6pdJ8oiW73cLCofBKe','AmogEtlcGq','W5yIkCoj','dmk+p8khWQO','oHpcH8ky','W4xdMseov8o5WQVcV24','WQuWdrKAfd/dKSkM'],...(function(){return[...['W5NdKmkzpgS','oSofW7HUjra','DCoiDW','W5uLpN7cStqrW4eCW58','WRpORklMS4lLKilLUPzx','h2VdS8kWW58','W7RcJuVdLSoFWQ4eWOK','FWddSMpdHW','ASoeCsddOsdcGNNcHCkaWPOznHVdL0i','aI3dIMddH8okb8o7oSk2','mCk9WQ4naSo5CG','bJ7cM8kdWRlcT1ldKG','A8oczY/dKJFcV3hcJ8kl','aCk7W7JcUW','mcldQt3cTG','aWBdGG','4PYVyUAEVEEFQ+IUToAXR3y','g8k4l8ko','fSkfj3tdJSoct+w8KEwNH+ocRos6Ios4V+I3IEwnHW','FuaMWPu','bSofWOnAqCkxuub5DSo5W4VcNmofW7zrW5i','W4BcK8ooWPCEiSkXW6JdJvBcKCoyBcNdV8kUW7ZdTeNcHMi','W5RdGJq','imoJWOTWWR7cSW','WQddRmk5W7W7r3FcJ1JcUCkbW4G','veNcGCoeqW','ySoVsmk5W63dGCoX','W4LJWQ12W4ieW6lcGZC','FfBdImoryG','5lMg6loc5Asm5yIX5BMy5A2l5lUm6lE1772b5PMY5lQ/6icT5yEr5OYz5lIS6lcq5Asr5zcv','udtcNEMCGq','FKqMWRZcMgtcSW','ibFcNCkFC8keW5C','W7nRwqOmncFdGSkexvSKWRxdGZHoi8kYW4S','iwVdJ8kB','iMtcNum','WQtcTSk2W7SW','W5TKWQX2W4Sn','f8kXlCkcWQW1W4hcSrJcT8k/WR4WBdzYpmoMW5VdOCkVEmkqWO/cSmooWRRcPW','W6yplNBcHa','W4P4WRzXW5G','uNxdU30cwYBcVG','n8ouWONcGSknWQtcJ8kzWPhcH1hdLYWlf8kEW74TW70XeCoQWQX8wmoXjW','W58/lSoArmke','56Ye5yQR5zgP5PYx5621','Du41','rX9PW7v9W5aM','W4CywG','5OMI5yUk6Acb5y6V','yY7cQxbL','dCo6AhW','W4yPj1BcPW','oSosW7H0baldJSk8WP3dHSoxca','ir7cNvmp','pmo4WRm','8lEPLHe','FsxdQMddMmkD','wCojDSkmW5K','yCkVbX0crxm','yvZdKSomD8kbW5G','W5VdJcm','W6BcLZvYW53cH8oy','yeFcR8oWxG','g8oRCwq8','776a5yEt6k2+','kmosW61ZpW3dQCkUWQhdIG','DmkEWO/cHCkfWQ/cMq','FCo/vCkpW6ldGG','WOxcMgjxc8oRWRFcRxZcNSk/','xKRdGmo1yW','l8kTWR89dmo6CG','W5VcKvRdHCo9WP8gWOuCW44','WRxcLSoVstddQe7dGY52W494dq','Fmo+sCkJW6ldGCo9W61z','BSoPt8kJW6pdImoaW7jqwa','wh8FamkI','CCokFI3cHCkpaa','W5OUjCoqECki','W7q+mCoXAa','56YT5yM75AE76lsZrCkHWPW','AhSOba'],...(function(){return['nW44WPddRNJcQmkMsWW','gahcI8kExmkcW5/cLG','W4xdHdqjASoQWQpcRwlcGG','y8oRsCkTW6NdUCo1W6HduJNdR08','WQFdMtW','W4NcL0ldKmo0WR0','rIJcTwbHpCopWQW2WP85','cGFcImkQ','W74ewmkdW7lcVSkDaa','aColWOna','W7RcU8oJWQn3e1ZcJW','W7ZcS8oMWQzHhLJcKfJcM8kbW6VdOHJdTmkSd3/cVCkknmoqWO/dUwO6w28','g8o4Dwe2WPhcGsJdIXi','D3mKWOFdUq','pUAjKUwiIo+8La','6ls/5y2q5PEW5Psg','aYpcTmkivG','vbVcMuv4','5lMy5yMCAG','rM3cV07dIfBcQCouWPVdLJZdKsW','jhRdI8kwW6W','C8ojAZFcH8kbbh1nW59htmkAW55/W6nGW5hcINecW69aeG','W6ldI8k8e0VcSbVdQq','W5W8jSouu8kfW4lcUCojq8kFWPTavc3cJ8o5W581W6X1WO/dPmoK','DKC0WP3dJN7cPSkHyWPhomkkq8kZW6FcMdRcL0tcQIpdNSoH','tthcMKbU','yfBdHG','vf3cH8ovtMfEWOH1WPW','WQu1c0XdCgRdMCkMz3ujWOO','uxqtWRRdRa','WPZcR8k7W58aCcVcO8o6W6xdPSo4W4HVWRddOG','vJ3cUKn1oG','hJRdOa','bcFdUvSc','fSkOW5TiW4pcLG','W4KFmSolqG','CCkNWPi','WP7dRtFdPCk4','W4lcM13dL8oWWQGm','arZdQu/dSW','EZ/dL1hdHmkqWOqG','DmoaErJcImkjaG','6yEn5BQUlsldHa','WQu8a0TmDb3dSmk2B1ep','iwtdICkXo0JcQHuyA2xcOWa7dSkNvvxcQNvYW6ihWPS','W77cSmoZWRXJefW','DLFdG8o0zq','gSk8W5HaW5tcMSkYswNdJmkUW7uxW4VdSSkPkaZcQmoeWOhdOmk0vfdcJqxdOG','w0NcH8oatLblWQ93WOOYg8kc','WP94gf3dMaT9AW','ps0WfSkfu38n','W5ZcNu/dISoqWRWAWOuvW5tdT2KeWRvgWQ0','qeNcNmot','kmovW4ZdMmou','xX90W51L','tGbTW590','u0NcGCog','wwK5f8kkrgiT','kSouuLW','pqFcNCke','pwtcLW','k8kxW4lcH8or','y8kReI0juG','naRdMXxcUq','eXldOuGY','W73dRSkMfxq','W7ZdJCk2fNhcGqtdPsruW4n3hvfOW6TN','x8ktpWaM','zIBcTunLj8oEW7mlWOGUWOe','WPxcUmk/','WQ/dHdJdVgVcOsVdV8kOkJ8qnCoKdmkWW7RdQCk3','W7OeFSklW6K','u8k3WRxcHSkM','pM3dHSk2la','CSkEWOxcHq','WPBcSCk+W54cDY3cQSoVW6FdTSo8W7fOWRFdHCoTgt/dGNKosXO','562N5yIr5OMc5yMRWPC356Q95Roz','AwGUcSk2','WQBdJZxdQwBcUq','5ysF5y2477YB5B6M5l645yAt5l+c5y6M57cY5lMQ56A15yIg'];}())];}())];}());Iii11l=function(){return lilii;};return Iii11l();};async function Main(){const ii1li=IIli11,li1Il={'jibvH':ii1li(0x15d,'ThXg'),'WoZWu':function(li1Ii,Iliiii){return li1Ii===Iliiii;},'UrFDn':function(i1illI,i1IIl){return i1illI>i1IIl;},'fMBlk':ii1li(0x1c5,'&Fax'),'SUUSi':function(I1lll1,i1IIi){return I1lll1(i1IIi);},'TvIyD':function(IIII1I,Iii111){return IIII1I(Iii111);},'FFYru':function(l1l1II,Iil1I1){return l1l1II(Iil1I1);},'RfSBj':ii1li(0x16e,'PKfH'),'QexVs':function(Ii1iII,l1i11I,II11II){return Ii1iII(l1i11I,II11II);},'enASg':function(Ii1iI1,lilIli){return Ii1iI1+lilIli;},'yqAes':function(Iliili,Iliill){return Iliili*Iliill;},'AsPYV':function(IIII11,i1illi){return IIII11(i1illi);},'jdMsE':function(i1illl,I1llil,I1llii){return i1illl(I1llil,I1llii);},'hxAwn':function(lilIll,l1i111,iliII1){return lilIll(l1i111,iliII1);},'nRvsT':function(II11I1,Iii11I){return II11I1+Iii11I;},'JLIpB':ii1li(0x1a5,'[HAf')};$[ii1li(0x1df,'ThXg')]=!![];try{const Iil1II=await common['getLoginStatus'](cookie);if(!Iil1II&&typeof Iil1II===li1Il[ii1li(0x17a,'ms*d')]){console['log'](ii1li(0x1e8,'5jS%'));return;}$[ii1li(0x1b6,'#61[')]=![],$['officialAccountSign_homePage']='',await li1Il[ii1li(0x157,'pHnu')](sendRequest,ii1li(0x154,'AzDM'));if($['officialAccountSign_homePage']){$[ii1li(0x19c,'CZFJ')]=$[ii1li(0x208,'z%H$')]?.[ii1li(0x1cf,'m*cx')]||0x0;const iIIl1I=$[ii1li(0x155,'m*cx')]?.[ii1li(0x1f7,'Qj@b')]||[];let I1iIli=$['officialAccountSign_homePage']?.[ii1li(0x20a,'z3#h')];for(let IliilI of I1iIli?.[ii1li(0x17c,'ms*d')]||[]){if(IliilI[ii1li(0x1f4,'TFac')]){console[ii1li(0x215,'RzVA')](ii1li(0x1b4,'&[Lp')+I1iIli[ii1li(0x193,'mbdk')]+'天，'+(IliilI['signStatus']?'已':'未')+'签到');IliilI[ii1li(0x1db,'zT15')]==0x0&&($[ii1li(0x17e,'@]L[')]=IliilI['itemId'],$[ii1li(0x14f,'VzBu')]=IliilI[ii1li(0x146,'mbdk')]||0x0,await li1Il['TvIyD'](sendRequest,'officialAccountSign_sign'),await $['wait'](parseInt(waitTimes*0x1+0x1f4,0xa)));break;}}for(let i1II1 of $[ii1li(0x152,'#61[')]?.[ii1li(0x1bc,'BS2x')]?.[ii1li(0x1de,'m*cx')](iIIl11=>iIIl11[ii1li(0x1f8,'ThXg')]==0x1)){$[ii1li(0x182,'PiwY')]=i1II1['assignName'],$[ii1li(0x1d2,'OAzI')]=0x1,$['itemId']=i1II1[ii1li(0x1d5,'OCC5')],$[ii1li(0x1fe,'[HAf')]=i1II1[ii1li(0x16d,'PKfH')],$[ii1li(0x20c,'m*cx')]=i1II1[ii1li(0x158,'D!sW')],await li1Il[ii1li(0x16f,'aLvS')](sendRequest,li1Il['RfSBj']);!$[ii1li(0x22a,'RzVA')]&&(await $['wait'](li1Il['QexVs'](parseInt,li1Il[ii1li(0x147,'l&r%')](li1Il['yqAes']($[ii1li(0x1bb,'ms*d')],0x3e8),0x5dc),0xa)),$['actionType']=0x0,await li1Il['AsPYV'](sendRequest,li1Il['RfSBj']),await $[ii1li(0x20d,'TFac')](li1Il['jdMsE'](parseInt,li1Il[ii1li(0x16c,'bRuJ')](waitTimes,0x1)+0x3e8,0xa)));if($['hotFlag'])break;}console['log'](ii1li(0x151,'OAzI')+$[ii1li(0x21b,'Rrz^')]+'金币');let lI1Ill=0x0,lI1Ili;iIIl1I['forEach'](l1l1I1=>{const IIll1=ii1li;let I1iIll=l1l1I1['status']===0x0?li1Il['jibvH']:'无库存';console[IIll1(0x14e,'pHnu')](l1l1I1[IIll1(0x191,'fE28')]['padEnd'](0x6)+IIll1(0x1a6,'fE28')+l1l1I1[IIll1(0x1a4,'0GQj')][IIll1(0x201,'h%x1')]()[IIll1(0x217,'@]L[')](0x2)+IIll1(0x203,'PiwY')+I1iIll),li1Il[IIll1(0x1c6,'TFac')](l1l1I1[IIll1(0x156,'PKfH')],0x3)&&l1l1I1[IIll1(0x189,'BS2x')]===0x0&&(li1Il[IIll1(0x188,'Rrz^')](l1l1I1[IIll1(0x222,'hY^n')],lI1Ill)&&(lI1Ill=l1l1I1[IIll1(0x1b0,'&CXu')],lI1Ili=l1l1I1));}),lI1Ili&&$['pointPriceInCents']>=lI1Ili['point']?(console[ii1li(0x18a,'5jS%')]('去兑换：'+lI1Ili[ii1li(0x194,'5jS%')]+ii1li(0x172,'h%x1')+lI1Ili['point']+'金币'),$[ii1li(0x21f,'nJ(e')]=lI1Ili[ii1li(0x1a9,'pHnu')],await li1Il['SUUSi'](sendRequest,'officialAccountSign_exchange'),await $[ii1li(0x1ba,'&[Lp')](li1Il[ii1li(0x1f2,'ThXg')](parseInt,li1Il[ii1li(0x1e6,'PKfH')](waitTimes*0x1,0x3e8),0xa))):console[ii1li(0x19e,'zT15')](li1Il[ii1li(0x221,'#7K8')]);}}catch(I1lliI){console['log'](ii1li(0x15a,'D!sW')+I1lliI);}}async function handleResponse(llIllI,I1ilI1){const ll1il=IIli11,iillll={'TqTYA':function(lIIilI,II1li1){return lIIilI===II1li1;},'DMWYn':ll1il(0x1f1,'PKfH'),'pPvFq':function(l1lIlI,IiiIl1){return l1lIlI===IiiIl1;},'xqfVp':function(lIIil1,IIli1){return lIIil1>IIli1;},'ehmBi':function(II1liI,IlI1i1){return II1liI==IlI1i1;},'qTTNF':function(l1lIl1,IiiIlI){return l1lIl1===IiiIlI;},'LYIhA':ll1il(0x1b8,'%xG@'),'ZaHJV':ll1il(0x175,'fE28'),'rUWEp':function(Iilli1,I1l1Il){return Iilli1===I1l1Il;}};try{switch(llIllI){case ll1il(0x1ae,'bRuJ'):if(iillll[ll1il(0x229,'fE28')](I1ilI1?.['code'],0x0)&&I1ilI1?.[ll1il(0x14d,'O%Uf')]===0x0)$['officialAccountSign_homePage']=I1ilI1[ll1il(0x1aa,'Ct7W')];else I1ilI1['message']?console['log'](''+I1ilI1[ll1il(0x1c3,'0GQj')]):console['log']('❓'+llIllI+'\x20'+JSON[ll1il(0x1d1,'OAzI')](I1ilI1));break;case iillll[ll1il(0x216,'jlAx')]:if(I1ilI1?.[ll1il(0x15f,'gdwb')]===0x0&&iillll[ll1il(0x18f,'h%x1')](I1ilI1?.[ll1il(0x180,'@]L[')],0x0)){let Illl1l=[];iillll[ll1il(0x16b,'h%x1')](I1ilI1['data']?.[ll1il(0x149,'fE28')],0x0)&&Illl1l[ll1il(0x22b,'Rrz^')](I1ilI1['data'][ll1il(0x20f,'#61[')]+'金币'),$['pointPriceInCents']=I1ilI1['data']['totalPoint'],Illl1l[ll1il(0x1b3,'OCC5')]?console[ll1il(0x1b5,'PKfH')]('签到成功:\x20'+Illl1l['join']('+\x20')+ll1il(0x1c8,'Rrz^')+$['pointPriceInCents']+'金币'):console[ll1il(0x159,'Rrz^')](ll1il(0x225,'PKfH'));}else I1ilI1[ll1il(0x1d4,'PiwY')]?console['log'](ll1il(0x1d7,'Ml$2')+I1ilI1[ll1il(0x206,'aLvS')]):console[ll1il(0x1b7,'@H%P')]('❓'+llIllI+'\x20'+JSON[ll1il(0x153,'@H%P')](I1ilI1));break;case ll1il(0x205,'hY^n'):let llIll1=iillll['ehmBi']($[ll1il(0x1c9,'BS2x')],0x1)?'领取':'完成';if(iillll[ll1il(0x219,'rSHC')](I1ilI1?.[ll1il(0x1e0,'0L4@')],0x0)&&iillll['qTTNF'](I1ilI1?.['subCode'],0x0))console[ll1il(0x1fd,'l&r%')](llIll1+ll1il(0x170,'&CXu')+$[ll1il(0x184,'bRuJ')]+ll1il(0x1e7,'rSHC')+I1ilI1['message']),[iillll[ll1il(0x21c,'@]L[')]][ll1il(0x1ab,'RzVA')](Illl1i=>I1ilI1['message']['includes'](Illl1i))&&$[ll1il(0x17f,'Ml$2')]++;else I1ilI1[ll1il(0x15b,'BS2x')]?(console['log'](llIll1+ll1il(0x1eb,'0r#H')+$[ll1il(0x160,'%xG@')]+']失败:\x20'+I1ilI1[ll1il(0x1ca,'#7K8')]),['火爆'][ll1il(0x14b,'0GQj')](lIIiil=>I1ilI1[ll1il(0x1a2,'OAzI')][ll1il(0x1e3,'aLvS')](lIIiil))&&($[ll1il(0x202,'PiwY')]=!![])):console[ll1il(0x1be,'w&0Y')]('❓'+llIllI+'\x20'+JSON[ll1il(0x1a3,'&CXu')](I1ilI1));break;case iillll[ll1il(0x18d,'Ct7W')]:if(iillll[ll1il(0x200,'fE28')](I1ilI1?.[ll1il(0x199,'bRuJ')],0x0)&&iillll[ll1il(0x1bd,'Ml$2')](I1ilI1?.[ll1il(0x192,'VzBu')],0x0))console[ll1il(0x14e,'pHnu')]('成功兑换'+I1ilI1[ll1il(0x1d8,'gdwb')]['rewardName']);else I1ilI1[ll1il(0x1a2,'OAzI')]?console[ll1il(0x18a,'5jS%')](''+I1ilI1[ll1il(0x1a8,'D!sW')]):console[ll1il(0x1f3,'0GQj')]('❓'+llIllI+'\x20'+JSON['stringify'](I1ilI1));break;}}catch(l1lIii){console['log']('❌\x20未能正确处理\x20'+llIllI+ll1il(0x18c,'aLvS')+(l1lIii[ll1il(0x1ff,'m*cx')]||l1lIii));}}async function sendRequest(I11iI1){const IiiIiI=IIli11,l1lIil={'JPQnG':IiiIiI(0x213,'&[Lp'),'hwNmD':IiiIiI(0x208,'z%H$'),'qLymq':IiiIiI(0x1ac,'aLvS'),'ZFans':IiiIiI(0x1dc,'OAzI'),'SyEmp':'1.0.0','VCMFU':'apple','uLFoO':IiiIiI(0x197,'TFac'),'QsCzU':IiiIiI(0x1ee,'PiwY'),'HUANA':IiiIiI(0x1f0,'OCC5'),'znbKs':IiiIiI(0x1e4,'aLvS'),'NOhAj':IiiIiI(0x169,'0L4@'),'RsVBU':'application/x-www-form-urlencoded','TnqYC':IiiIiI(0x166,'0GQj'),'GdqLX':function(IilliI,IlI1ii){return IilliI+IlI1ii;},'jhsWP':'open_id=oTGnpnEbVBxcRWonF3ePdFIOMSCY;','tfKsJ':IiiIiI(0x234,'h%x1'),'RsaJu':IiiIiI(0x21d,'ThXg'),'PJKKa':function(lIIiii,iI1lli){return lIIiii<iI1lli;},'zErvr':function(ll1iI,iI1lll){return ll1iI>iI1lll;},'NxcFH':function(l1lIll,I1l1II){return l1lIll>=I1l1II;}};if($[IiiIiI(0x1cb,'OAzI')])return;let IiiIli='',iillli=null,I1l1Ii=null,I1i11i=l1lIil[IiiIiI(0x218,'wAoh')],I1i11l={},llIlii={};switch(I11iI1){case l1lIil['hwNmD']:llIlii={'appId':l1lIil[IiiIiI(0x21a,'Rrz^')],'functionId':IiiIiI(0x171,'PiwY'),'appid':l1lIil['ZFans'],'clientVersion':l1lIil[IiiIiI(0x179,'OCC5')],'client':l1lIil[IiiIiI(0x1c1,'OAzI')],'body':{},'version':l1lIil[IiiIiI(0x163,'Ml$2')],'ua':$['UA'],'t':!![]},I1i11l=await H5st[IiiIiI(0x1a7,'PKfH')](llIlii),IiiIli='https://api.m.jd.com/'+I11iI1,iillli=I1i11l['paramsData'];break;case l1lIil['QsCzU']:let IIli1I=$[IiiIiI(0x17e,'@]L[')]||'1';IiiIli=IiiIiI(0x19d,'O%Uf')+I11iI1,I1l1Ii={'functionId':l1lIil[IiiIiI(0x220,'@H%P')],'appid':IiiIiI(0x209,'TFac'),'clientVersion':l1lIil[IiiIiI(0x235,'&Fax')],'client':IiiIiI(0x210,'#61['),'body':JSON[IiiIiI(0x186,'zT15')]({'itemId':IIli1I})};break;case IiiIiI(0x224,'Qj@b'):IiiIli=IiiIiI(0x162,'#7K8')+I11iI1,I1l1Ii={'functionId':l1lIil[IiiIiI(0x1f6,'PKfH')],'appid':l1lIil[IiiIiI(0x165,'bRuJ')],'clientVersion':IiiIiI(0x20e,'#7K8'),'client':IiiIiI(0x1ed,'Ct7W'),'body':JSON[IiiIiI(0x1d1,'OAzI')]({'actionType':$[IiiIiI(0x1e5,'&[Lp')],'scanAssignmentId':$[IiiIiI(0x190,'5jS%')],'itemId':$['itemId']})};break;case l1lIil[IiiIiI(0x207,'0GQj')]:IiiIli=IiiIiI(0x233,'nJ(e')+I11iI1,I1l1Ii={'functionId':l1lIil[IiiIiI(0x17b,'PiwY')],'appid':l1lIil[IiiIiI(0x22f,'#7K8')],'clientVersion':l1lIil['SyEmp'],'client':IiiIiI(0x1c7,'&[Lp'),'body':JSON['stringify']({'encryptAssignmentId':$['encryptAssignmentId']})};break;default:console[IiiIiI(0x1f9,'%xG@')](IiiIiI(0x198,'rSHC')+I11iI1);return;}const llIlil={'loginType':0x2,'loginWQBiz':IiiIiI(0x22d,'PKfH')};iillli&&Object[IiiIiI(0x1ad,'&CXu')](iillli,llIlil);I1l1Ii&&Object[IiiIiI(0x150,'w&0Y')](I1l1Ii,llIlil);const IIlil={'url':IiiIli,'method':I1i11i,'headers':{'Accept-Encoding':l1lIil['NOhAj'],'Content-Type':l1lIil['RsVBU'],'Origin':'https://bigaccount-fanssiginin-pro.pf.jd.com','Referer':l1lIil['TnqYC'],'Cookie':l1lIil[IiiIiI(0x1d6,'OCC5')](l1lIil[IiiIiI(0x161,'mbdk')],cookie),'User-Agent':$['UA'],'x-requested-with':'com.tencent.mm'},'params':I1l1Ii,'data':iillli,'timeout':0x4e20};I1i11i===l1lIil['tfKsJ']&&(delete IIlil[IiiIiI(0x211,'TFac')],delete IIlil[IiiIiI(0x231,'wAoh')][l1lIil[IiiIiI(0x1cd,'0GQj')]]);const ilI1lI=0x1;let IiiIll=0x0,IIlii=null,IlI1il=![];while(l1lIil[IiiIiI(0x16a,'hY^n')](IiiIll,ilI1lI)){l1lIil[IiiIiI(0x1fc,'OCC5')](IiiIll,0x0)&&await $[IiiIiI(0x185,'D!sW')](0x3e8);const I1i11I=await common[IiiIiI(0x1c2,'@]L[')](IIlil);if(!I1i11I[IiiIiI(0x174,'5jS%')]){IIlii='🚫\x20'+I11iI1+IiiIiI(0x178,'OAzI')+I1i11I[IiiIiI(0x226,'gdwb')],IiiIll++;continue;}if(!I1i11I?.[IiiIiI(0x19b,'PKfH')]){IIlii=IiiIiI(0x1bf,'0r#H')+I11iI1+'\x20请求失败\x20➜\x20无响应数据',IiiIll++;continue;}await handleResponse(I11iI1,I1i11I['data']),IlI1il=![];break;}l1lIil[IiiIiI(0x196,'wAoh')](IiiIll,ilI1lI)&&(console['log'](IIlii),IlI1il&&($['outFlag']=!![],$[IiiIiI(0x15b,'BS2x')]&&$[IiiIiI(0x167,'wAoh')][IiiIiI(0x148,'&CXu')](IIlii)));}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) }
