KR/jd_krSign.js

13 lines
28 KiB
JavaScript

/*
小豆签到
cron:15 2,19 * * *
============Quantumultx===============
[task_local]
#小豆签到
15 2,19 * * * jd_krSign.js, tag=小豆签到, enabled=true
*/
const $ = new Env('小豆签到');
var version_='jsjiami.com.v7';const iii1lI=iii1II;(function(II11l1,Iil1lI,IiiliI,iii1iI,llIll,il1iII,iilli){return II11l1=II11l1>>0x9,il1iII='hs',iilli='hs',function(IlllIl,II11lI,lI1IIi,I1l11I,Ilil1l){const i1ilI=iii1II;I1l11I='tfi',il1iII=I1l11I+il1iII,Ilil1l='up',iilli+=Ilil1l,il1iII=lI1IIi(il1iII),iilli=lI1IIi(iilli),lI1IIi=0x0;const iIIiii=IlllIl();while(!![]&&--iii1iI+II11lI){try{I1l11I=-parseInt(i1ilI(0x22c,'f3W]'))/0x1*(parseInt(i1ilI(0x232,'9cwD'))/0x2)+parseInt(i1ilI(0x26b,'&oDx'))/0x3*(parseInt(i1ilI(0x24c,'9cwD'))/0x4)+parseInt(i1ilI(0x285,'K9GR'))/0x5*(parseInt(i1ilI(0x26e,'pFXV'))/0x6)+parseInt(i1ilI(0x220,'Tmx]'))/0x7*(-parseInt(i1ilI(0x1ac,'1aO5'))/0x8)+parseInt(i1ilI(0x1b4,'e1E*'))/0x9+parseInt(i1ilI(0x202,'dZdm'))/0xa*(parseInt(i1ilI(0x255,'9Q%9'))/0xb)+-parseInt(i1ilI(0x256,'f3W]'))/0xc;}catch(iilll){I1l11I=lI1IIi;}finally{Ilil1l=iIIiii[il1iII]();if(II11l1<=iii1iI)lI1IIi?llIll?I1l11I=Ilil1l:llIll=Ilil1l:lI1IIi=Ilil1l;else{if(lI1IIi==llIll['replace'](/[FpKMIXGhgAEQlkxeuDR=]/g,'')){if(I1l11I===II11lI){iIIiii['un'+il1iII](Ilil1l);break;}iIIiii[iilli](Ilil1l);}}}}}(IiiliI,Iil1lI,function(il1iI1,IlllIi,iIIiil,i1l1Ii,I1iIIi,I1iIIl,lI1IIl){return IlllIi='\x73\x70\x6c\x69\x74',il1iI1=arguments[0x0],il1iI1=il1iI1[IlllIi](''),iIIiil='\x72\x65\x76\x65\x72\x73\x65',il1iI1=il1iI1[iIIiil]('\x76'),i1l1Ii='\x6a\x6f\x69\x6e',(0x1366b6,il1iI1[i1l1Ii](''));});}(0x18000,0x208b5,Iii11l,0xc2),Iii11l)&&(version_=Iii11l);const IlIII=$['isNode']()?require(iii1lI(0x1be,'CH2r')):'',ilil1l=$[iii1lI(0x23c,'dZdm')]()?require('./jdCookie.js'):'',illlIi=require('./function/krgetToken'),I1lIii=require(iii1lI(0x218,'C@tG')),IiI1I=require('./function/krgetua'),illlIl=process[iii1lI(0x1d8,'C@tG')]['JD_SIGN_KRAPI']||'';let i11ill=[],IIIIIi='';if($['isNode']()){Object['keys'](ilil1l)[iii1lI(0x26f,'1aO5')](iil1l1=>{const i1ilI1=iii1lI;i11ill[i1ilI1(0x271,'y9Ud')](ilil1l[iil1l1]);});if(process[iii1lI(0x20c,'9oUt')][iii1lI(0x245,'jZKy')]&&process['env'][iii1lI(0x21e,'e1E*')]===iii1lI(0x1c7,'H!$N'))console[iii1lI(0x204,'eFJB')]=()=>{};}else i11ill=[$[iii1lI(0x261,'(T7B')](iii1lI(0x1fa,'9cwD')),$['getdata'](iii1lI(0x1ad,'uj0F')),...i11ili($[iii1lI(0x276,'N^ym')](iii1lI(0x1f6,'a*Vs'))||'[]')[iii1lI(0x1d3,'(T7B')](lllli=>lllli[iii1lI(0x23e,'Tmx]')])][iii1lI(0x269,'&oDx')](iiili1=>!!iiili1);let IIIIIl='';const I1lIil=iii1lI(0x24f,'dZdm');!(async()=>{const Iiilii=iii1lI,ill11i={'slBpH':function(lllill,ill11l){return lllill===ill11l;},'ZORlM':function(I1lIiI,lllili){return I1lIiI==lllili;},'hkKJV':function(IliiiI,Ill11){return IliiiI*Ill11;},'qvApl':function(liiIII,li1i11){return liiIII===li1i11;},'JbmDE':'object','hnYmz':function(iI11I1,il1i1l){return iI11I1(il1i1l);},'dvHEx':function(IlIlll,IIIl1I){return IlIlll+IIIl1I;},'pfMdd':'【提示】请先获取京东账号一cookie\x0a直接使用NobyDa的京东签到获取','MeSvg':Iiilii(0x1b9,'9cwD'),'icvUC':function(iil1ii,IlIlli){return iil1ii!==IlIlli;},'HXSCD':function(il1i1i,lil111){return il1i1i(lil111);},'xkTLz':function(i11ilI,ii1ii1){return i11ilI+ii1ii1;},'fhCiN':function(llllI,lllil1){return llllI!==lllil1;},'CXjkh':Iiilii(0x283,'wCZ]'),'SrjjP':function(iil1il){return iil1il();},'CrreI':function(ilil1I,i11il1){return ilil1I!==i11il1;}};if(!i11ill[0x0]){$[Iiilii(0x1b6,'zG9u')]($[Iiilii(0x1d4,'l5dN')],ill11i[Iiilii(0x286,'XH4i')],Iiilii(0x1b9,'9cwD'),{'open-url':ill11i[Iiilii(0x243,'&oDx')]});return;}for(let ii1iiI=0x0;ii1iiI<i11ill[Iiilii(0x1b3,'9oUt')];ii1iiI++){if(ill11i[Iiilii(0x258,']eq)')]('ZbXfn',Iiilii(0x1ce,'l[a('))){if(i11ill[ii1iiI]){IIIIIi=i11ill[ii1iiI],$[Iiilii(0x20a,'1aO5')]=ill11i[Iiilii(0x257,'jZKy')](decodeURIComponent,IIIIIi['match'](/pt_pin=([^; ]+)(?=;?)/)&&IIIIIi[Iiilii(0x1e6,'dZdm')](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[Iiilii(0x1cf,'jZKy')]=ill11i[Iiilii(0x21a,'9cwD')](ii1iiI,0x1),$['isLogin']=!![],$[Iiilii(0x239,'FII5')]='',message='',console[Iiilii(0x27d,'cIBD')](Iiilii(0x1e9,'))8z')+$[Iiilii(0x205,'y9Ud')]+'】'+($[Iiilii(0x28f,'9cwD')]||$[Iiilii(0x281,'xxdd')])+Iiilii(0x211,'pM8e'));if(!$[Iiilii(0x1e7,'n$ao')]){$[Iiilii(0x26d,'uzd8')]($['name'],Iiilii(0x21c,'n$ao'),Iiilii(0x260,'1aO5')+$[Iiilii(0x254,'[TZe')]+'\x20'+($[Iiilii(0x1c9,'(T7B')]||$[Iiilii(0x1e2,'wCZ]')])+Iiilii(0x228,'9oUt'),{'open-url':ill11i[Iiilii(0x1fd,'cIBD')]});if($[Iiilii(0x248,'FII5')]()){if(ill11i[Iiilii(0x222,'1zg^')](ill11i['CXjkh'],ill11i[Iiilii(0x25c,'a*Vs')])){IiilI1[Iiilii(0x1eb,'zG9u')](IIII1l)[Iiilii(0x1bc,'FII5')](ilil11=>{const Iil1li=Iiilii;IlI11[Iil1li(0x22a,'[TZe')](iIIIIl[ilil11]);});if(IlI1I[Iiilii(0x20c,'9oUt')]['JD_DEBUG']&&ill11i[Iiilii(0x24d,'l[a(')](II11Ii[Iiilii(0x1d8,'C@tG')][Iiilii(0x1f8,'wW8G')],Iiilii(0x259,'Tmx]')))II11Il['log']=()=>{};}else await IlIII[Iiilii(0x1d9,']eq)')]($[Iiilii(0x1ea,'FII5')]+Iiilii(0x203,'i!6w')+$['UserName'],Iiilii(0x208,'Nf]D')+$[Iiilii(0x1d2,'l[a(')]+'\x20'+$[Iiilii(0x241,'K9GR')]+Iiilii(0x287,'e1E*'));}continue;}$['UA']=await ill11i['hnYmz'](IiI1I,$['UserName']),await ill11i['SrjjP'](IIIl1i),await $[Iiilii(0x229,'dZdm')](0x5dc);}}else{if(lIIii1=='x')IliI1l+=lliiil['charAt'](lliiii[Iiilii(0x21d,'pFXV')](IliI1i[Iiilii(0x275,'5Cjx')]()*ll1ii['length']));else ill11i[Iiilii(0x278,'wUFg')](lliilI,'X')?IIli11+=IllIII[Iiilii(0x270,'cIBD')](ii1li['floor'](ill11i[Iiilii(0x223,'H!$N')](IIll1[Iiilii(0x216,'(T7B')](),ll1il[Iiilii(0x1b7,'f3W]')])))[Iiilii(0x1d0,'wW8G')]():IiiIiI+=lilii;}}if(IIIIIl){if(ill11i[Iiilii(0x1ef,'dZdm')]('bNuey',Iiilii(0x24b,'t6CB'))){let I1lIi1=Iil1I1[Ii1iII];if(I1lIi1&&ill11i['qvApl'](typeof I1lIi1,ill11i[Iiilii(0x1dd,'xxdd')]))I1lIi1=l1i11I['stringify'](I1lIi1);if(I1lIi1&&II11II[Iiilii(0x233,'9cwD')])I1lIi1=ill11i[Iiilii(0x212,'FII5')](Ii1iI1,I1lIi1);lilIli[Iiilii(0x1f1,'^M3C')](ill11i[Iiilii(0x23d,'5Cjx')](Iliili,'=')+I1lIi1);}else{if($[Iiilii(0x22e,'N^ym')]())await IlIII[Iiilii(0x1aa,'pM8e')](''+$[Iiilii(0x253,'f3W]')],''+IIIIIl);$['msg']($[Iiilii(0x237,'zG9u')],'',IIIIIl);}}})()[iii1lI(0x1ed,'H!$N')](liiIIi=>{const Iiilil=iii1lI;$[Iiilil(0x1ae,'1aO5')]('','❌\x20'+$['name']+Iiilil(0x263,'wW8G')+liiIIi+'!','');})['finally'](()=>{const Iil1ll=iii1lI;$[Iil1ll(0x1c0,'wCZ]')]();});function Iii11l(){const i1ili=(function(){return[version_,'pXjQFMsjilGaDumleFip.MkRcKEDogmAg.xIv7hk==','WQmShvBdHa','CwddLCo0sxpcRXLUW6C','ittcLCkJ','W58NpCouxx4','F2BdNSoaW4G','W70AW7S','tmoeWR7dQ342','W73dLK5Fs8kbjfe','WQZcJgjbvCkD','F8kXCbpdQW','W5n3WRJdNdq','nZtcJ8kMuxi','WQ9VW6mh','fKzIWRtcQdP+fhy','d8kXuZhdU8kZWOTm','W5SNpCoSqq','W6JdVdSXewO','kSkfW6/dI3VcHW','feOTWORdMa','W5pcOCoAW5pcQue','ghWIyfK','W44Sc8odqwn8ELG6CZv5WOvgpmotW5NdVHhdGSowWP3dHCkwW5FcUtJdSuOYW7bpjXRcSW','W5LNWQFcSSoOW4tdPva','WPSmWP/dKKm','W6NdLbTzW7e','W6pdNti+jG','W47dNqOsieddJSkr','WQJcUEwLPoI1S0qI5yYe5zI2AIq','W6SMW6fFW7C','cmkRFJxdKCk3','WOVcPuzHuG','xSoAWPFdO3y','bM1GWRdcOW','W7RdKZeFbCoahL7dG8kjW5/cMq','wSogWP/dTfi','W5nYW7ldIfddNSoGWOpdVvC','k8kcW5xdLgZdMbVdPCoJcSoWW5qRBWddG8kjWQ7dIrlcTGGhFW3dQCoujmo5WOBdO8k/W5im','i3SquMy','WP/dJL8rCG','WRGGW7FdRua','kZtcJmkN','WRddVmkjWR3dSq','A0XppSk7WQvbW78yySok','CwBdLCoZdsNdPJbYW6TyWR0A','W4ZdGqyviq','geK2Fxy','W5BcR8ozW4VcPq','WR7dI8k/WRBdSW','WROfW63dOKq','WQtcSYBcMZO','WR/cGXBcQaq','W6ddSXH3W6q','WQ7cMIJcQd4','5lUE5lQ36lsR5y2e','WOFcISoPiuvcW5q','WQdcSer4wq','WQhcVUwMQoI2GZldNUwnUUwzKSkkWRq','W6NdP8oenq','W6jSWR/dVIpcTCkozSo8W6nO','iCkzW4xdNq','bd7dStVcQmkEW4S','BcJdM8k5qCkvW7ZcQmon','W4ldMcrBW7pcPG','WQ5MW4SXW64','WP3dPHfiW5lcKmk1','WPy2W6ZdV2iN','WP7cO8ov','DN7dTCoMuSkeWPDxW5VcPa','fmoeF8o2WPirWRK','WPRdILemqx8','W6GNW7DM','W6RdUdGZ','WRqZW77dMea','W63cP8ozW67dVSkddclcUSkL','aL0lWQVdJ2W','W5eXb8oFwg9L','BmkmDaFdRG'].concat((function(){return['WOa3WRZdIu8','WPpcJSonW4RdRCoYCq','BsddKSkZz8kw','W7BdOCoe','WP4iW5G','WPxdJvC','tmkcWPShBa','WP01W7ldUW','EmojWRVdVK4','sJldMCkLrSkAW4lcUq','WOBcTSo2lfm','xKxdVSooW6i','W5W7gSov','WR4SW7pdTColW7/dQx0mW5O','WQa+nwpdSG','AEIUUEMfKoAuToEAJUw/QoIpOowoKmkdW5lcSCkLr1i','ymkuuYBdNW','WPxcGhGBWQlcV8kOvdHEqW','kcBcHG','W6FdTJeZ','6kYE5yU06zIk5OsB5z2hWOyTFMuX6lYe5yEt5QoQ5l2T5Psc5yER5A6uW6dLU4ZOROJPGkVOV6pOHkJMNQVLJ53OJkFLJj5OWO/cSuLhWOK','WQhcHCodmCkA','DHBdHG4kWP4','WQFcI2jfF8kzowe','k1D2d3S','f1DNWRZcTdK','WPPUW6TWiCkRnM9joW','WQxcJwy','sSoeq8ocWOaGWQe','W5vSWOxdPtRcTCk2yCkV','hSoeAG','rCkhWQum','ddpdGaZcOG','n8kjW7ddKaa','amkOwxtdMmo8WOXnlrVcP8oM','WOtdTCktWRCKyq','wNFcPmk2W4xcIIi3WPtdN8kNWQu','W4pdTs9hW5u','WQX9W6K','ktdcJ8kLsNC','wqpcI8kvp8kJWPVcTmo3WQhdIwukn8odhmkOimkRwJ0NvwFdH8oOWRi','WQhcLNvEqSocEYVdKmk1W4VcVmofW4fHdmoJWR7cO8oUc1jqa8oVW4hcHJb5WOVcSNysWQOnACoOemk3W7NcIa7dKa','WOdcPmoxfmkQ','W6iCW7T+dNjO','b8k3qH/dLmkXWO4','b8k9vt7dPCkGWOLnDHVcVa','W47dImozW4hdKmoItCoeW6K3W57cIq','W7m6WR9qW5vEDddcUJ0','x0VdOmo9','mJFdNSoXWQ0','rSk/WPKMDq','W6fNWQu','WPpcImoyW5a','WQ1RW6afW7fX','eJdcS8knCa','W6CYW49BW7C','FhRdS8oImCo2W6iVWRtdICokqIRcT04jW4hdHSkxW4pdJCkxfmknWO1NqsyTW6HcWRW','WO7cHSo+lMPxW5JdKG','WPLQW7DNcG','aGdcISkqzG','W48JW4DdW5K','oCkYW6a','t8oEWRZdKxe','W63dTZeZhq','W7NdSComW5zJWPVcL8oXW5hdPYm','wSoEWQ/dRxq0WRRdK8o7','qmoeWRNdOwi','WO3cJSoT','c25kjG','W697WQ3cQ8opW4a','WORdI1Cq','W6vSWPJdUG','umkCWQa','aK8UthVcVSoCW7euEq','W47dPmoBlKe','kdtcKq','lc3cUCkMAW','vspdKCkttq','W7ZdP8opl3tcPa'].concat((function(){return['W5pdJrq5kG','W4nqW5pdVfW','W5reWQ3dGta','BLFdQ8oQW7tcKCoVDq','W6xdV8o3W4j/WPVcP8oxW5hdUG9ZrSkIkNddKmkY','W6/dSCo9W58','fa0ByCoe','lSkxW5xdH3C','WPOiW7pcNWKuWP0','WOhcHYpcNYa','WPdcPmkjCtVdVmo65B+v5AEt44cG5lIQ5lUJ6lw05y6w','d8k5xt8','WQPRW7Cr','rSknuqy','W6iYW5DlW7O','bMbjnvCwWPe7a3m','amkeW5pdGvy','5O+e5yY76i6h5y6m5AAe6lE377+Q6lEA6l+e','vXL4W4m','WRpcJSoqW7FdLW','FHldNaG','W6pdUCoUW6f8','W7pcOCoAW5pcQuehW54','WQtcHcpcMZVcKx40WRq','WPyyWOGYW6pdGSo3W5rBq8kRvWLGzwCWW5uxcSkMWObhW5ldVCoQza','W4FdMSogW6jwWRZcSmo1','o8k8W6RdKa','WORcJw5fwmkDhKa','WRdcHCobW4hdVa','B1tdNCoxW70','WRtdH2mizW','v0VdQq','WPlcHSoeW4ddKCoR','WOGmWQ/dS0q','W4ddP8keiCk6WO7dVMjDBYRdMmkiCCkYeMn+gSkcuWFdLCohW6jvBmkx','CSocWPdcLhRcSL7cV8oGiG','nSkYW6JdNGm65BAy5Awf5PsgjsP0','CSkiya','W7e8W6bRW50','W5iAW7n7ngnqC8ko','W6q9W4bhW7BcTa','5lMq5lMG6lEg5y6A','krKqumoM','j8oyAmobWR0tWRZdLq','f0GJWOZdRq','WO3dVSkl','qa1xW7ZcLdrQW4lcSvFcIsNdKGBcU8o8','WPdcV8oCk8kDW5NdP111','mmkFW4BdIKZcLKy','6k6w5yIN6zQ/5Owv5z6DWPdcIvfjc+I9M+whRUAIGEs8UoAvVowhKEwVPYNLU6ROR4xPGzJOVO/OHiBMNQRLJilOJ6dLJOZdPbtdS8kMbc4','W4mHWQ8+rCoUAcWfsa','cCk2AtFdJW','vbhdKIWp','lCoItYhcQchdKaC','W7e+WR5s','WPlcJSoZiuTB','WOZdSCk3WQNdPW','g8oDWRarCJldT115aSoaW6GiWOhdNSoaWQyOW4rG','WOmuW4ZcHa','WRhcIvvIsW','aCoFF8oAWP0v','44oJ5O6R56Af44oHdrlcNmkdsmo65BsL5AwA5Psd','iIBcQ8k7Ca','kqRdGSoaWRddVWib','WPSpW4VcGb1hW5ZdH1hdRCk4dY7cNCoSDSkcWQWGrJRcOmkV','WOJdV8kaWOJdSrmjW73cQ8kfsZe','W4infmo5uW','F8k+qZNcNa','W6K4W6HIW4q','l1DLWOFcRW','WPCAW4VcKq','WRmWgxxdL8kM','WRtcU8o7c8kv','W6lORAFPHldMLAdNMkVLVzZOJidLJz0DWOuvnmkDistdLeGQyhtdM17dOmoCjfSqgXZcP8oHt8oDeCoNW6ldRYddImoBsmoKr8osx8k7DdJcKSkTa8oI','nmkxW4JdKa','WQNdP8kEWRa'];}()));}()));}());Iii11l=function(){return i1ili;};return Iii11l();};async function IIIl1i(){await IIIl1l(),await $['wait'](0x1f4);}function iii1II(_0x251540,_0x58f596){const _0xcac3c9=Iii11l();return iii1II=function(_0x4c8ae0,_0x391c9a){_0x4c8ae0=_0x4c8ae0-0x1a9;let _0x29a3dd=_0xcac3c9[_0x4c8ae0];if(iii1II['QQdVIG']===undefined){var _0x13d8df=function(_0x488201){const _0xcab4cc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x29a05a='',_0x5a4078='';for(let _0x5eb661=0x0,_0x102da8,_0x3b8974,_0x3e1506=0x0;_0x3b8974=_0x488201['charAt'](_0x3e1506++);~_0x3b8974&&(_0x102da8=_0x5eb661%0x4?_0x102da8*0x40+_0x3b8974:_0x3b8974,_0x5eb661++%0x4)?_0x29a05a+=String['fromCharCode'](0xff&_0x102da8>>(-0x2*_0x5eb661&0x6)):0x0){_0x3b8974=_0xcab4cc['indexOf'](_0x3b8974);}for(let _0xb5ba2b=0x0,_0x3ad000=_0x29a05a['length'];_0xb5ba2b<_0x3ad000;_0xb5ba2b++){_0x5a4078+='%'+('00'+_0x29a05a['charCodeAt'](_0xb5ba2b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5a4078);};const _0x224b44=function(_0x3972c0,_0xc9277a){let _0x561d63=[],_0x2709d0=0x0,_0x1f0cf3,_0x4f6dc1='';_0x3972c0=_0x13d8df(_0x3972c0);let _0x2858ef;for(_0x2858ef=0x0;_0x2858ef<0x100;_0x2858ef++){_0x561d63[_0x2858ef]=_0x2858ef;}for(_0x2858ef=0x0;_0x2858ef<0x100;_0x2858ef++){_0x2709d0=(_0x2709d0+_0x561d63[_0x2858ef]+_0xc9277a['charCodeAt'](_0x2858ef%_0xc9277a['length']))%0x100,_0x1f0cf3=_0x561d63[_0x2858ef],_0x561d63[_0x2858ef]=_0x561d63[_0x2709d0],_0x561d63[_0x2709d0]=_0x1f0cf3;}_0x2858ef=0x0,_0x2709d0=0x0;for(let _0x349484=0x0;_0x349484<_0x3972c0['length'];_0x349484++){_0x2858ef=(_0x2858ef+0x1)%0x100,_0x2709d0=(_0x2709d0+_0x561d63[_0x2858ef])%0x100,_0x1f0cf3=_0x561d63[_0x2858ef],_0x561d63[_0x2858ef]=_0x561d63[_0x2709d0],_0x561d63[_0x2709d0]=_0x1f0cf3,_0x4f6dc1+=String['fromCharCode'](_0x3972c0['charCodeAt'](_0x349484)^_0x561d63[(_0x561d63[_0x2858ef]+_0x561d63[_0x2709d0])%0x100]);}return _0x4f6dc1;};iii1II['wyWGKp']=_0x224b44,_0x251540=arguments,iii1II['QQdVIG']=!![];}const _0x1ac194=_0xcac3c9[0x0],_0x92f23a=_0x4c8ae0+_0x1ac194,_0x2ef402=_0x251540[_0x92f23a];return!_0x2ef402?(iii1II['PNzPEt']===undefined&&(iii1II['PNzPEt']=!![]),_0x29a3dd=iii1II['wyWGKp'](_0x29a3dd,_0x391c9a),_0x251540[_0x92f23a]=_0x29a3dd):_0x29a3dd=_0x2ef402,_0x29a3dd;},iii1II(_0x251540,_0x58f596);}function liiII1(lil11I,Iliii1={}){const iillI=iii1lI,iIiIi={'EtRRg':function(lillIl,iIiIl){return lillIl===iIiIl;},'VZgZJ':iillI(0x26c,'(ojC'),'ypMcp':function(iiilii,li1i1i){return iiilii(li1i1i);},'WTAoO':function(IlIli1,illIiI){return IlIli1+illIiI;}};let iil1ll=[],iiilil=Iliii1[iillI(0x20e,'uzd8')]||'&',iil1li=Object['keys'](lil11I);if(Iliii1[iillI(0x1d7,'uj0F')])iil1li=iil1li[iillI(0x1c4,'CH2r')]();for(let lI1lli of iil1li){let Ill1l=lil11I[lI1lli];if(Ill1l&&iIiIi[iillI(0x235,'uj0F')](typeof Ill1l,iIiIi['VZgZJ']))Ill1l=JSON[iillI(0x1d1,'l[a(')](Ill1l);if(Ill1l&&Iliii1[iillI(0x231,'l[a(')])Ill1l=iIiIi[iillI(0x27e,'C@tG')](encodeURIComponent,Ill1l);iil1ll[iillI(0x22a,'[TZe')](iIiIi['WTAoO'](iIiIi[iillI(0x1df,'jZKy')](lI1lli,'='),Ill1l));}return iil1ll['join'](iiilil);}async function IIIl1l(){const lI1III=iii1lI,llI1Il={'UjGyW':lI1III(0x1f5,'Tmx]'),'aCtrf':lI1III(0x206,'wA4H'),'PbkeB':function(i11iil,Ill1i){return i11iil(Ill1i);},'ohESk':function(ii1iil,lllI1l){return ii1iil===lllI1l;},'QcfzT':function(i11iii,llI1Ii){return i11iii+llI1Ii;},'CQkxE':function(lllI1i,li1i1l){return lllI1i!==li1i1l;},'yBviy':lI1III(0x22f,'wCZ]'),'dyWyl':function(II1i1,lI1lll){return II1i1==lI1lll;},'bTwej':function(iIiII){return iIiII();},'tYgBj':lI1III(0x1bd,'FII5'),'gtFCM':lI1III(0x1c8,'pFXV'),'JPqgm':lI1III(0x1b8,'xxdd'),'GkINm':lI1III(0x201,'uzd8'),'XhZXV':function(iil1lI,iiiliI,li1i1I){return iil1lI(iiiliI,li1i1I);},'PSrlU':lI1III(0x1f7,'Nf]D'),'RQPzS':lI1III(0x224,'t6CB'),'ZIjAX':function(illIii,ii1il1){return illIii!==ii1il1;},'RUqtb':lI1III(0x200,'wUFg'),'gYRnz':'dOGQW','TjxuP':lI1III(0x1f0,'FII5'),'wpJgl':lI1III(0x1b2,'FII5'),'nDkOZ':'*/*','InAdB':'gzip,\x20deflate,\x20br','EvfEs':lI1III(0x21f,'n$ao'),'FZaQK':function(lI1llI,illIil){return lI1llI*illIil;}};body={'methodName':lI1III(0x1e3,'wW8G'),'functionId':lI1III(0x264,'))8z'),'osName':llI1Il[lI1III(0x221,'N^ym')],'appId':llI1Il[lI1III(0x20b,'5Cjx')],'version':'1','deviceNo':lllll(),'handleType':lI1III(0x1d6,'cIBD'),'encryptProjectId':llI1Il['JPqgm'],'encryptAssignmentIds':[llI1Il[lI1III(0x227,'uzd8')]],'deviceType':0x1,'lng':'','lat':'','itemId':'1'},sign=await llI1Il[lI1III(0x25d,'a*Vs')](I1lIii,llI1Il['PSrlU'],body);illlIl?llI1Il[lI1III(0x1b0,'%v&1')](llI1Il[lI1III(0x250,']eq)')],lI1III(0x224,'t6CB'))?$['signStr']=sign?.[lI1III(0x22d,'f3W]')]?.[lI1III(0x1ee,'l5dN')]||'':lI1Iii=[i1li['getdata'](llI1Il['UjGyW']),li1II[lI1III(0x267,'%v&1')](llI1Il['aCtrf']),...llI1Il['PbkeB'](IliI11,i1ll[lI1III(0x276,'N^ym')]('CookiesJD')||'[]')[lI1III(0x1db,'f3W]')](i11iiI=>i11iiI[lI1III(0x1d5,'K9GR')])][lI1III(0x1de,'))8z')](lIli11=>!!lIli11):$['signStr']=sign?.[lI1III(0x266,'dZdm')]||'';!$[lI1III(0x279,'CH2r')]&&(llI1Il['ZIjAX'](llI1Il[lI1III(0x28d,'uzd8')],llI1Il[lI1III(0x25a,'[TZe')])?console[lI1III(0x230,'wA4H')](llI1Il[lI1III(0x1da,'))8z')]):l1lIll[lI1III(0x1fe,'wCZ]')](I1l1II));let ii1iii={'url':I1lIil+'?functionId=jdh_laputa_handleSoaRequest&'+$['signStr'],'headers':{'Host':llI1Il[lI1III(0x24a,'l[a(')],'Accept':llI1Il['nDkOZ'],'Cookie':IIIIIi,'User-Agent':$['UA'],'Accept-Language':'zh-Hans-CN;q=1','Accept-Encoding':llI1Il[lI1III(0x277,'f4O9')],'Referer':llI1Il[lI1III(0x288,'f4O9')]},'timeout':llI1Il['FZaQK'](0xa,0x3e8)};return new Promise(lillI1=>{const IIii1l=lI1III,IlIlii={'SizSi':function(i1l1i1,liil11){const IIliIi=iii1II;return llI1Il[IIliIi(0x26a,'zG9u')](i1l1i1,liil11);},'NXQLI':function(iiillI,l1l111){const IllIiI=iii1II;return llI1Il[IllIiI(0x1fb,'CH2r')](iiillI,l1l111);},'IqdXl':function(l1iIII,llI1I1){const i1il1=iii1II;return llI1Il[i1il1(0x280,'l[a(')](l1iIII,llI1I1);},'steQR':function(IlIlil,lIli1I){const I1l111=iii1II;return llI1Il[I1l111(0x25b,'(ojC')](IlIlil,lIli1I);},'iREVh':IIii1l(0x1cc,'H!$N'),'ngwGo':llI1Il['yBviy'],'CjnRC':function(II1il,lllI11){return llI1Il['dyWyl'](II1il,lllI11);},'NbzEq':IIii1l(0x209,'9Q%9'),'msNWx':function(I1lIll){const I1iIII=IIii1l;return llI1Il[I1iIII(0x1b1,'i!6w')](I1lIll);}};$[IIii1l(0x219,'n$ao')](ii1iii,(I1lIli,II1ii,IIIIII)=>{const liiI11=IIii1l,lillII={'ZSEpG':function(ii1ilI,lI1ll1){return ii1ilI*lI1ll1;}};if(IlIlii[liiI11(0x22b,'XH4i')](liiI11(0x1e5,'9Q%9'),IlIlii[liiI11(0x262,'9cwD')])){let liil1I=[],i11ii1=li1I1['connector']||'&',IlIliI=i1ilil['keys'](lilIii);if(i1ill1['sort'])IlIliI=IlIliI['sort']();for(let l1iII1 of IlIliI){let iiill1=Ii1iIi[l1iII1];if(iiill1&&IlIlii[liiI11(0x1f2,'CH2r')](typeof iiill1,'object'))iiill1=iliIIl['stringify'](iiill1);if(iiill1&&Ii1iIl[liiI11(0x207,'H!$N')])iiill1=IlIlii[liiI11(0x290,'l5dN')](iliIIi,iiill1);liil1I[liiI11(0x1af,'C@tG')](IlIlii[liiI11(0x25f,'a*Vs')](l1iII1+'=',iiill1));}return liil1I[liiI11(0x284,'N^ym')](i11ii1);}else try{if(IlIlii[liiI11(0x1ba,'uzd8')](liiI11(0x25e,'&oDx'),IlIlii[liiI11(0x1f4,'wW8G')]))Iiii1+=lIIili[liiI11(0x226,'XH4i')](IiiIil[liiI11(0x251,'cIBD')](lillII[liiI11(0x234,'f4O9')](IiiIii[liiI11(0x27a,'xxdd')](),IIlll[liiI11(0x1c5,'zG9u')])))['toUpperCase']();else{if(I1lIli)$[liiI11(0x1ab,'9cwD')](I1lIli);else{IIIIII=JSON[liiI11(0x1ca,'pM8e')](IIIIII);if(IlIlii['CjnRC'](IIIIII[liiI11(0x1ec,'f4O9')],liiI11(0x215,'zG9u'))){if(IlIlii[liiI11(0x247,'y9Ud')](IlIlii[liiI11(0x213,'@Mj7')],liiI11(0x1c6,'pFXV'))){let IIIII1=IIIIII?.[liiI11(0x27f,'(ojC')]?.['signResultDTO']?.[liiI11(0x238,'t6CB')]||IIIIII?.[liiI11(0x1f3,'@Mj7')]?.['signResultDTO']?.[liiI11(0x1c3,'K9GR')]||IIIIII?.[liiI11(0x225,'n$ao')]?.[liiI11(0x268,'xxdd')];console[liiI11(0x27b,'))8z')](''+IIIII1);}else i1illl[liiI11(0x1bb,'wA4H')]=I1llil?.['data']?.[liiI11(0x24e,']PHF')]||'';}else console['log']('签到失败['+IIIIII?.[liiI11(0x28b,'jZKy')]+']:\x20'+IIIIII?.[liiI11(0x28a,'f3W]')]);}}}catch(ii1ill){$['log'](ii1ill);}finally{IlIlii[liiI11(0x23a,'N^ym')](lillI1);}});});}function lllll(II1iI=iii1lI(0x240,'N^ym'),llI1II=iii1lI(0x20d,'5Cjx')){const ililI1=iii1lI,lIli1l={'gDghC':function(illIi1,ii1ili){return illIi1==ii1ili;},'ixXdU':ililI1(0x1a9,'t6CB'),'UcZqn':ililI1(0x28c,'pM8e'),'sMOBi':function(liil1i,lI1lil){return liil1i!==lI1lil;},'AtqwA':ililI1(0x1fc,'wCZ]'),'fYkiw':function(i1l1iI,liil1l){return i1l1iI*liil1l;},'GUkRX':'SxSps','QyCuX':function(lI1lii,Iiili1){return lI1lii*Iiili1;}};let lillIi='';for(let Iil1l1 of II1iI){if(lIli1l[ililI1(0x1e0,']PHF')](lIli1l[ililI1(0x252,'(ojC')],lIli1l[ililI1(0x242,'wUFg')])){if(lIli1l[ililI1(0x1b5,'&oDx')](typeof l1l11l,lIli1l[ililI1(0x1dc,'f3W]')]))try{return lI11Il['parse'](lIII1i);}catch(il1iIl){return l1iIIi[ililI1(0x1cd,'i!6w')](il1iIl),lilIi['msg'](l1l11I[ililI1(0x1f9,'i!6w')],'',lIli1l[ililI1(0x217,'[TZe')]),[];}}else{if(Iil1l1=='x')lillIi+=llI1II['charAt'](Math[ililI1(0x1e8,'a*Vs')](lIli1l[ililI1(0x282,'(T7B')](Math[ililI1(0x236,'f3W]')](),llI1II[ililI1(0x28e,'@Mj7')])));else lIli1l[ililI1(0x244,'jZKy')](Iil1l1,'X')?lIli1l[ililI1(0x1c2,'C@tG')](lIli1l['GUkRX'],lIli1l[ililI1(0x1cb,'f3W]')])?l1i111[ililI1(0x20f,'dZdm')]=iliII1?.[ililI1(0x1e4,'wW8G')]||'':lillIi+=llI1II['charAt'](Math['floor'](lIli1l[ililI1(0x1c1,'e1E*')](Math[ililI1(0x1ff,'CH2r')](),llI1II[ililI1(0x23b,'jZKy')])))[ililI1(0x265,'uj0F')]():lillIi+=Iil1l1;}}return lillIi;}function i11ili(il1iIi){const IIii1i=iii1lI,iii1il={'iVbHl':function(II11li,I1l11i){return II11li!==I1l11i;},'MgxBA':IIii1i(0x1e1,'uj0F')};if(typeof il1iIi==IIii1i(0x21b,'1aO5'))try{if(iii1il[IIii1i(0x23f,']eq)')](iii1il[IIii1i(0x273,'(ojC')],IIii1i(0x249,'9cwD')))IiilIl[IIii1i(0x27b,'))8z')]('','❌\x20'+iii1Ii[IIii1i(0x272,'jZKy')]+IIii1i(0x246,'jZKy')+iii1Il+'!','');else return JSON['parse'](il1iIi);}catch(liiI1i){return console['log'](liiI1i),$[IIii1i(0x27c,'n$ao')]($['name'],'',IIii1i(0x210,'FII5')),[];}}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)}