KR/jd_gacj.js

13 lines
28 KiB
JavaScript

/*
国安抽奖(一次性)
cron:15 0 12-13 8 *
============Quantumultx===============
[task_local]
#国安抽奖
15 0 12-13 8 * jd_gacj.js, tag=国安抽奖, enabled=true
*/
const $ = new Env('国安抽奖一次性');
var version_='jsjiami.com.v7';function Iii11l(){const iii1ii=(function(){return[version_,'JrbjhLsDTbjdliCaCmViTR.fDcwxyogmXJ.dv7Ht==','W4SnwqjJ','BCksxcbDFGZcMSkCbtThh3CLEwfHcCo4nSocwCo1zCo9rCkzW6fJW53cVIzHW6hcSbHHfYCfg8oW','WOPNmanTWOBdMW','B8ouigzP','iCoLW4G','WQG1eCksW4u','WPVcO8kpCCkxi2FcO8oHyee7ExGFkchdKmonFeBdSqVcRX0UW45CW508WOjAW4ddV8ktBLVcS8kJW67dNGFdKq','WOGibSkCDW','CH8Hc8oy','5yYL5lQ55OUV5AAW','smo6dCo5W4C','p8oxW4lcHuZcO8o7mexdHmo5WRaB','WQFcQmkH','WPZdG8oormo3','nEIVT+MgGoAwOUEzIUw+TEImQowpT8kEWPNcVHG2E2ldU8oNW6jjW48lA8opchDBzKrsqSkSmu8QW7hdVhaFWQFcGmotzmoVpCktcmkeW5qqAmkjWPG','p1ldT0dcMJj/vW','tIf+','CSkour1V','i8onWPJdLZRdU8o1fMldOSk9WRi','tdO1A8oZe8oWaa','5lUH5lQw6lAj5y+y','ndPFW7O','wwddI8ohtW','tSoJDui9W7ZcS8kc','bcnyW7XC','pmoeWPS','lSoLW4Tk','iSoeWPBdMSkDWRvtW5RcTcNcJCkXwq','o8keWPC','W4akAGD6','A8khrtu','EfveW7irWO/dJG','a1NdOSkwCG','WO5IW7ldTSod','W4GZW6FdS2K','qq3dUa','W71FwSk0WPfUbbC','iSocWPBdMCkCWR89W6/cLa/cUSkh','W7NdPH/dGmoQF3VdVKmFfmks','zmktW5FcRSoj','E1rvW5GuWOK','44cv5OY256ss44gb6k+z5ysm6i6u5y2J5lMs5lM86lw85y+E5lIXEwr8BIypWP3NMQ/MJyJKVytNLRHkW7WiWPpdJgxNMlFKUzVKUztNRBVLIRtOJB/LJ6a','W7tdVSolhSkOWQpdNCkYqq','W7tdUre','xSo4y04xW74','aSkX5Awz6lAeWOtcKEwpVowAT8koWPq','WOSrkCkZEa','l8oczmkF','WQiaaCkwWQT7iYtdQa','yIaZA8kp','mKhcImknW7VcNL8','FCk6ACkbja','tMHiW7/dRa','mSkfWOy','WQXHWR/cICko','DuqsvNtcOSokzG','lamdWOrfW5VcLdNdR25QWPVdHW','saZdQq','EUIVP+MeQUAvI+EAKEw/N+InMUwpPIRdS8oOWO7dLCkB','z2LFW6f1i8k5WOC','e3/cG8kE','d8oWW4T7kW','hh/cGa','sSkUW6PrwSo+a8ktWRnrW5S0qbNcUmosdCkLkY8TW4VcKHHxd8oUW7m6pLWJBhfkAKzpbGjWWRhdMtJdO25Xh8kjmCkZxhW4WO3dUZ13EGT6W6BcT8kvW5SMW57dQ8kBcCkHFt3cHSo/','j8kmdCkiWO4','WOdcN8kzWRFcNd7cV8oO','pr/cVNq','WQNcPdFcNCojj3ddJG','EdyL','WOijbSkC','Bv9yW5m+WOpdKJBdULS','DSkswJLai0RdK8kh','WROPiCko','wsKDemoBW47cISoUdq'].concat((function(){return['WOpcSmkDW50GWO3dGCoui8kjF8kKWPGImbtcUSotFG/dTmoesKv9jCkGBIRcGSocW54Uzgu','C8ktlmkGWQWNlaLTs8k8W5DXhgi6dW16Ch1qWP3dPCkSDCkGf8o2CYpdKveCWOZdQaldOuBdNqZdGYr4o8k0W4FcJHfTW77dVuePW4FdUWu/WOb6lJWXWOq7W4ZdIGfAWQ/dIeRcGw4+W5LHBaXyWRlcVu1DW43cKXxcLSorW4pdVCkxW6bBW6lcP8kDkSklE2a2W4C9C8kNWPFcILFdPSoGqMuVemktWRvrW5rCWOlcQHq3sCoiW5tcMciUWR9BkCkZW4BdVNPkW51sW63cM8o6xvddJ8k8dSk7lq7cTcWAyHddMSoZWQRcG3vhW4BdTxrdWPb/ztxcKmk9W64zWOz+W5FcQqRcRbKvWRVcMvxdQ8k9gq','FhrF','h8oAWRidoG','WP5DWR3cS8ki','WP/dGSkOWRDZC8oa','WQq1mCknW6efCtS','g8kMWQWshSk/ymoDWRTH','c2KZySop','tgLmW4hdHSoBW448','W43dRSkIWPi','h244ECoh','WOf7jq','CSoJW6LtxCoWamkZWQm','W7ZdTWlcJW','WQ9FWOxcUCkWumoAhmk8','W5bzvSk0WRzQiZy','W77dRSotfmk5WPq','zIK7mmoy','xCoCa8olW6m','44gC5OYL56wJ44oF6kY45ysB6i+Y5y6W5lQV5lIE6lE+5yYD5lIccN0WfIH6g+EBRUAoGos+H+EwHCknD8kNsmoqFEEBG+s4Hos5SoESMEwkNUImS+woVq','WOdcSSkvzCkQDJZdPCoLFa','uweGDW','W7xcVCkZWP3cUGJcG8oaW57dIColWQm9bCkUWQTKWPvZpSkTEmkvW4zFa8oLW7FcUCoMWQ1cycvoWRNdK8offY3dU8ofW4DcW5WojZrqW4XjdCoyvCo+WQhdSCkTW7yLxutcRCkgW6ddNuGsD1qhfYNcHKFdOCopW6S4dcjlWPZcL8opswdcVCoEtmkSrmo6rmkLfGdcJSoeW5iBaSo/zXj0i8kWWQj/pmkpc1a3WQq2rYtdR0zJnHrmW7L3mgRdHmkcrXFcVh97l1ddGSkPW5VcPSkrm8onCwBdGMixWRe','DSkkW43cNmkgWQWdW5RcSsZcLmkrwSkrW48sfG','W6DZW68CWR0','twuGC1JcJSolsmo5WPtcUq','dquyy8omwSktW6XXl8o0','wCoaz2OS','W7VdRCo+W4ddQqVcP8oHW5pdKSoG','nfdcOCkkW5m','WRvyWRNcV8k6uG','qd19uG','WQLhyXDp','W6CUsq','mMldImk6vCkI','oCoyWRa8dCkXWRq','BLTeW4qv','eNSpFSoofW','tSocy2u9','x8oTW6TD','iSomWPRdLZJdTCkGpK/dImkVWO4o','WQL9W4m','ySkmW5RcIghcQ8o9pvu','W7PKW4O4WPFdP8oayCkgW5HtWRj3e1WmomofW591W7qmW5FcP8k5W4T+gCoGjCkBkmoXELinWR4tm8oZWRrkFa','xG4Dq8oz','vmoKW6rrzW','nCkeWQyTW5u','rI0m','W6vXW5C8','xg8JFftcG8oRtSoM','jhCdqCkvDSkiWRG','j3X3aCoUn8oBWORdQxdcVvZcQq','WQtcPCkAtCka','W6L9tmkzWOG','vSkiW7lcS24','c2FcL8k1W7G','WONcV8owsCkfDZVcOCoasXSKAIq','gCk8s1COW6JcRSkW','WRTLWPtcImkZ','wXinwCkC','W4tdV8oCa8kuWOhdN8kZ','WQ05jSkcW44qFq','rdDTuYiMbq','WP8Vn8kuW6efCtS','y8kzW45MxmoRWObHuCkNW77cSq','emkqg05PnJTgxSkUa8ku','WQiOjSkwW5XEm3fyW5bpwh80W6hdRSkRdrTh','44cR5OYn56sl44g4hmkyxtm+cEw3JEwLLoAuMq','qCkEymka','W71xvmk6','W7DxtCk+','fMKX','d8kbWQKbW4W','W57dImkTWQPn','xslcGq'].concat((function(){return['ENvgW5JdOCoF','WRrFWOpcOmkTdCkCvCk1W4aLW7TsB30DfwKOWQRcUmoHEmoThSoTWOHvAmooyNrylJRcV8k2WOLdpLjLW4Hlomo0WRGvd1NdTmoxAhhdId5xWQxdUSk9mSoIWR7dHhtdICkJW5r+hCoUA3i9','xXtcQWRcKWreDSkVyq','WRtdNSkgW5Wi','qmoTzuqr','WQBcTmkH','EZCUmCoS','WOhcKmk4sCk8','dtv9jatdL8o+BmoAWRlcOaq','WOi0aSkiW4q','ECkmW5ZcKxZdTSk7De3dKCk+W7qfWQRdGCkOWPhcKvVcLftdQXy8','WRO9imkvW4O','W6VcI8ojxmo/W4fPW6hcR8ojWRJdQ0HxW7ZcV8keWOm','6kYY5yMB6zIG5OsM5z65W6bYW7dcISou6lYe5yEL5Qg85l+E5PAG5ywo5A2iW6JLU4/ORP7PG4dOVzlOH5NMN7RLJzpOJPJLJ4X6WRhcGCo8bmkX','hwKTySop','sCoRaCorWONcKqCYW5ldMmolu8o9DSkZdCoc','ENvnW5BdJmoFW5a6','WQ19W6RdN8oGW5i','FrqmsSo2','qCkhuavm','imoEWO87','WQBdLCoRzCoj','W5WvvWHO','l8oyzmkd','W6NdUSkvWRf0','pSokWPe2','xCoqde4','5Asn6lw+qW','EsOL','WQpcQmkiWPZcVrK','W75/W5K','W4BdHSoynmkX','WQ/dGCkKW4Wf','WRVdQ8kCW64w','f2CM','yZZdSCkLymk2W4K5','WRvnCcv0WOe','W4etW7K','W6nzsSkR','iSkunmkR','WOijdmkxAKThuKG','kvFcQCkdW7xcMwxdNmkFW5pdPq','amkmwCoEWOhcMdffcW','F8oRmSosW6e','WOGQgmkfW7K','tgygyxq','5lQg5lME6lwn5y+5','W7ldGCk3WRrh','nHKkESowb8o05B6I5AEz44gT5lIx5lUh6lE45y6L','FYNdVK/cIG','oSklWPuT','hNOZFSoymCoWmeC','W7ZdRCoCF8ogW5vz','WQmYnSkdW5C','imo5W4G','wKjgW7xdUW','ng3dN8k2wq','st1Wwq','W5K9E35lWRldPCoVaZW','feVcSCktW5y','EdRdHvpcNa','fNSM','a8kef8kEWP8','WOpdLSoFFmoC','CGewvmkn','W7hdPtJcGCoJna','WODtWRq','ufXh','p13cQSkh','WOJdP8kcW5W','ENVdRmoxqq','aglcJ8kyWOS','WPpdT8kiW4C','5AER6lsknG'];}()));}()));}());Iii11l=function(){return iii1ii;};return Iii11l();}function iii1II(_0x4223fa,_0x29f07d){const _0x35a818=Iii11l();return iii1II=function(_0x191f6a,_0x14fd3c){_0x191f6a=_0x191f6a-0x69;let _0x357482=_0x35a818[_0x191f6a];if(iii1II['SQXOtN']===undefined){var _0x148ea1=function(_0x577806){const _0x3274a9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x13e040='',_0xa942b7='';for(let _0x57ceac=0x0,_0x141c43,_0x2d5343,_0x36a6e6=0x0;_0x2d5343=_0x577806['charAt'](_0x36a6e6++);~_0x2d5343&&(_0x141c43=_0x57ceac%0x4?_0x141c43*0x40+_0x2d5343:_0x2d5343,_0x57ceac++%0x4)?_0x13e040+=String['fromCharCode'](0xff&_0x141c43>>(-0x2*_0x57ceac&0x6)):0x0){_0x2d5343=_0x3274a9['indexOf'](_0x2d5343);}for(let _0x59a23a=0x0,_0x3c647f=_0x13e040['length'];_0x59a23a<_0x3c647f;_0x59a23a++){_0xa942b7+='%'+('00'+_0x13e040['charCodeAt'](_0x59a23a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xa942b7);};const _0x87727c=function(_0x1d770a,_0x54a71d){let _0x5c3297=[],_0x1533e7=0x0,_0x417a45,_0x585644='';_0x1d770a=_0x148ea1(_0x1d770a);let _0x27ddce;for(_0x27ddce=0x0;_0x27ddce<0x100;_0x27ddce++){_0x5c3297[_0x27ddce]=_0x27ddce;}for(_0x27ddce=0x0;_0x27ddce<0x100;_0x27ddce++){_0x1533e7=(_0x1533e7+_0x5c3297[_0x27ddce]+_0x54a71d['charCodeAt'](_0x27ddce%_0x54a71d['length']))%0x100,_0x417a45=_0x5c3297[_0x27ddce],_0x5c3297[_0x27ddce]=_0x5c3297[_0x1533e7],_0x5c3297[_0x1533e7]=_0x417a45;}_0x27ddce=0x0,_0x1533e7=0x0;for(let _0x3786b0=0x0;_0x3786b0<_0x1d770a['length'];_0x3786b0++){_0x27ddce=(_0x27ddce+0x1)%0x100,_0x1533e7=(_0x1533e7+_0x5c3297[_0x27ddce])%0x100,_0x417a45=_0x5c3297[_0x27ddce],_0x5c3297[_0x27ddce]=_0x5c3297[_0x1533e7],_0x5c3297[_0x1533e7]=_0x417a45,_0x585644+=String['fromCharCode'](_0x1d770a['charCodeAt'](_0x3786b0)^_0x5c3297[(_0x5c3297[_0x27ddce]+_0x5c3297[_0x1533e7])%0x100]);}return _0x585644;};iii1II['Ojeywe']=_0x87727c,_0x4223fa=arguments,iii1II['SQXOtN']=!![];}const _0x1cf5d5=_0x35a818[0x0],_0x5f504d=_0x191f6a+_0x1cf5d5,_0x5bd0a1=_0x4223fa[_0x5f504d];return!_0x5bd0a1?(iii1II['zDYIJk']===undefined&&(iii1II['zDYIJk']=!![]),_0x357482=iii1II['Ojeywe'](_0x357482,_0x14fd3c),_0x4223fa[_0x5f504d]=_0x357482):_0x357482=_0x5bd0a1,_0x357482;},iii1II(_0x4223fa,_0x29f07d);};const lIli1l=iii1II;(function(lIli1I,II1il,lllI11,I1lIll,I1lIli,II1ii,IIIIII){return lIli1I=lIli1I>>0x2,II1ii='hs',IIIIII='hs',function(lillII,ii1ilI,lI1ll1,iIiI1,liil1I){const llI1II=iii1II;iIiI1='tfi',II1ii=iIiI1+II1ii,liil1I='up',IIIIII+=liil1I,II1ii=lI1ll1(II1ii),IIIIII=lI1ll1(IIIIII),lI1ll1=0x0;const i11ii1=lillII();while(!![]&&--I1lIll+ii1ilI){try{iIiI1=parseInt(llI1II(0xa3,'aZN3'))/0x1*(parseInt(llI1II(0xbb,'aOs*'))/0x2)+parseInt(llI1II(0x79,'pu[&'))/0x3*(-parseInt(llI1II(0xd1,'89vS'))/0x4)+parseInt(llI1II(0x10d,'5IeH'))/0x5*(parseInt(llI1II(0x84,'FT]D'))/0x6)+parseInt(llI1II(0xc7,']EYq'))/0x7+-parseInt(llI1II(0x8f,'vb1u'))/0x8*(-parseInt(llI1II(0xec,'%Q%g'))/0x9)+parseInt(llI1II(0x114,'TZ8G'))/0xa*(parseInt(llI1II(0x146,']EYq'))/0xb)+-parseInt(llI1II(0x8c,'jtMt'))/0xc;}catch(IlIliI){iIiI1=lI1ll1;}finally{liil1I=i11ii1[II1ii]();if(lIli1I<=I1lIll)lI1ll1?I1lIli?iIiI1=liil1I:I1lIli=liil1I:lI1ll1=liil1I;else{if(lI1ll1==I1lIli['replace'](/[wbrdtVgLhTxJfXHCDlRy=]/g,'')){if(iIiI1===ii1ilI){i11ii1['un'+II1ii](liil1I);break;}i11ii1[IIIIII](liil1I);}}}}}(lllI11,II1il,function(l1iII1,iiill1,lIli1i,IIIII1,I1lIlI,ii1ill,II1iI){return iiill1='\x73\x70\x6c\x69\x74',l1iII1=arguments[0x0],l1iII1=l1iII1[iiill1](''),lIli1i='\x72\x65\x76\x65\x72\x73\x65',l1iII1=l1iII1[lIli1i]('\x76'),IIIII1='\x6a\x6f\x69\x6e',(0x138eb5,l1iII1[IIIII1](''));});}(0x2f8,0x6fda1,Iii11l,0xc0),Iii11l)&&(version_=Iii11l);const IiI11=$[lIli1l(0x107,'aOs*')]()?require(lIli1l(0xe0,'zU3#')):'',lli=$[lIli1l(0xc4,'&A1t')]()?require(lIli1l(0x13f,']EYq')):'',liIlI=require('./function/krgetToken'),lll=require(lIli1l(0xf6,')9Ha'));let llli1=[],iIli1i='';if($[lIli1l(0x12b,'TiXD')]()){Object[lIli1l(0xa8,'aZN3')](lli)[lIli1l(0x73,'jtMt')](iil1iI=>{const lillIi=lIli1l;llli1[lillIi(0x83,'PLH)')](lli[iil1iI]);});if(process[lIli1l(0x8d,'kxcl')][lIli1l(0x95,'aOs*')]&&process[lIli1l(0xa0,'2A[7')]['JD_DEBUG']===lIli1l(0xf8,'&A1t'))console[lIli1l(0x10c,'&A1t')]=()=>{};}else llli1=[$[lIli1l(0xdc,'YeV@')](lIli1l(0xae,'FT]D')),$['getdata'](lIli1l(0xab,'j3zW')),...liiIIl($[lIli1l(0xdd,'%)NQ')]('CookiesJD')||'[]')[lIli1l(0xe6,'&A1t')](IlIllI=>IlIllI[lIli1l(0xea,'2A[7')])]['filter'](il1i1I=>!!il1i1I);let iI1lii='';const IilIii=lIli1l(0xf4,']EYq');!(async()=>{const illIi1=lIli1l,lI1li1={'OyuqJ':function(iI11II,iIII1I){return iI11II==iIII1I;},'BzOOr':function(ilil1i,IlIIi){return ilil1i(IlIIi);},'WraLd':function(IiI1l,illlII){return IiI1l+illlII;},'zVdAl':illIi1(0xb2,'Ru9c'),'OqNPP':illIi1(0x135,'%4n2'),'xCvKi':function(iIII11,IiI1i){return iIII11===IiI1i;},'HhPnk':'eWuUr','UXZnQ':illIi1(0x91,'S3^R'),'kQyTb':function(llll1,lil11l){return llll1(lil11l);},'cqDLX':function(i1i1Il,I1lIl1){return i1i1Il!==I1lIl1;},'Txsgp':illIi1(0xcc,'j3zW'),'sMkjF':function(lil11i,IlIIl){return lil11i(IlIIl);},'LLwhF':function(lI1liI){return lI1liI();},'ArEUH':function(i1i1Ii,lllii){return i1i1Ii===lllii;},'QzZsD':illIi1(0xb7,'YrL]')};if(!llli1[0x0]){$[illIi1(0x140,'aOs*')]($[illIi1(0x103,'!8dZ')],lI1li1['zVdAl'],lI1li1[illIi1(0x102,'aZN3')],{'open-url':lI1li1[illIi1(0x128,'Ru9c')]});return;}for(let iI11Ii=0x0;iI11Ii<llli1['length'];iI11Ii++){if(llli1[iI11Ii]){if(lI1li1[illIi1(0xe8,'aZN3')](lI1li1[illIi1(0xf3,'YeV@')],lI1li1[illIi1(0x126,'kxcl')]))i1II1[illIi1(0x6d,'!8dZ')](iIIl11);else{iIli1i=llli1[iI11Ii],$['UserName']=lI1li1['kQyTb'](decodeURIComponent,iIli1i['match'](/pt_pin=([^; ]+)(?=;?)/)&&iIli1i[illIi1(0xee,'G6Os')](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[illIi1(0x11f,'YeV@')]=lI1li1[illIi1(0x88,'2A[7')](iI11Ii,0x1),$[illIi1(0xc2,'!8dZ')]=!![],$[illIi1(0x78,'FT]D')]='',message='',console['log'](illIi1(0x11a,'x&5%')+$['index']+'】'+($['nickName']||$[illIi1(0xde,'YeV@')])+illIi1(0xa5,'j3zW'));if(!$[illIi1(0x86,'yLT$')]){if(lI1li1[illIi1(0xff,')9Ha')](lI1li1[illIi1(0x6c,'vb1u')],'Oftpz')){$[illIi1(0x98,'89vS')]($[illIi1(0xe4,'FT]D')],illIi1(0xe2,'nPf%'),illIi1(0x148,'S3^R')+$['index']+'\x20'+($[illIi1(0xa4,'YeV@')]||$[illIi1(0x143,'%Q%g')])+illIi1(0x142,')C8n'),{'open-url':lI1li1[illIi1(0xa1,'!8dZ')]});$[illIi1(0xfb,'1%FI')]()&&await IiI11[illIi1(0x9a,'jtMt')]($[illIi1(0xc6,'j3zW')]+'cookie已失效\x20-\x20'+$[illIi1(0xdb,'1#w1')],illIi1(0x118,'(DKz')+$[illIi1(0x13b,'2BiU')]+'\x20'+$['UserName']+illIi1(0x8e,'v$*3'));continue;}else{Illl1l=Illl1i[illIi1(0xf5,'YeV@')](lIIiil);if(lI1li1[illIi1(0x125,'yLT$')](l1lIii['code'],0x0)&&!I11iI1?.[illIi1(0x9d,'5mMn')])IIlil[illIi1(0x12d,'x&5%')](''+(ilI1lI?.[illIi1(0x69,'vb1u')]?.['codeDesc']||'空气'));else iillli[illIi1(0x6e,'S3^R')]==0x3?IiiIll['log']('失败,'+IIlii?.[illIi1(0xc0,'z7Ms')]):IlI1il['log'](illIi1(0x133,'EN@W')+IilliI?.[illIi1(0x104,'zU3#')]+':'+IlI1ii?.[illIi1(0x127,'&A1t')]);}}$['UA']=await lI1li1[illIi1(0xb1,'BPY4')](lll,$[illIi1(0xa7,'2A[7')]),await lI1li1[illIi1(0xed,'MLn[')](iI1lil),await $[illIi1(0xcf,'YrL]')](0x5dc);}}}if(iI1lii){if(lI1li1['ArEUH'](lI1li1[illIi1(0x115,'BPY4')],lI1li1['QzZsD'])){if($[illIi1(0xbd,'s2z$')]())await IiI11[illIi1(0xb3,'v)c4')](''+$[illIi1(0x72,'%4n2')],''+iI1lii);$[illIi1(0xaa,'Tjus')]($['name'],'',iI1lii);}else{let iIII1i=[],iil1i1=li1I1[illIi1(0x112,'2BiU')]||'&',il1i11=i1ilil['keys'](lilIii);if(i1ill1['sort'])il1i11=il1i11['sort']();for(let IlIll1 of il1i11){let IlIII=Ii1iIi[IlIll1];if(IlIII&&typeof IlIII==='object')IlIII=iliIIl[illIi1(0xc9,']EYq')](IlIII);if(IlIII&&Ii1iIl['encode'])IlIII=lI1li1['BzOOr'](iliIIi,IlIII);iIII1i[illIi1(0xfe,'!8dZ')](lI1li1['WraLd'](lI1li1[illIi1(0xd3,'v)c4')](IlIll1,'='),IlIII));}return iIII1i['join'](iil1i1);}}})()[lIli1l(0x122,'5IeH')](ilil1l=>{const ii1ili=lIli1l;$[ii1ili(0x89,'dWg5')]('','❌\x20'+$[ii1ili(0xe3,'GUK(')]+ii1ili(0x81,'BPY4')+ilil1l+'!','');})['finally'](()=>{$['done']();});async function iI1lil(){const liil1i=lIli1l,illlIi={'prhca':function(I1lIii){return I1lIii();}};await illlIi[liil1i(0x131,'v$*3')](iIli1l),await $['wait'](0x1f4);}function l1lIi1(IiI1I,illlIl={}){const lI1lil=lIli1l,i11ill={'PcVFw':function(IIIl1i,liiII1){return IIIl1i===liiII1;},'cNrBD':lI1lil(0x10e,'EN@W'),'ZrTOq':function(IIIl1l,lllll){return IIIl1l(lllll);}};let IIIIIi=[],IIIIIl=illlIl[lI1lil(0xd0,')C8n')]||'&',I1lIil=Object['keys'](IiI1I);if(illlIl['sort'])I1lIil=I1lIil['sort']();for(let i11ili of I1lIil){let iil1l1=IiI1I[i11ili];if(iil1l1&&i11ill['PcVFw'](typeof iil1l1,i11ill[lI1lil(0xc5,'G6Os')]))iil1l1=JSON[lI1lil(0xad,'s2z$')](iil1l1);if(iil1l1&&illlIl[lI1lil(0x7c,'jtMt')])iil1l1=i11ill[lI1lil(0xb0,'5mMn')](encodeURIComponent,iil1l1);IIIIIi[lI1lil(0x9c,'YeV@')](i11ili+'='+iil1l1);}return IIIIIi[lI1lil(0x123,'%)NQ')](IIIIIl);}async function iIli1l(){const i1l1iI=lIli1l,lllli={'BvJcV':function(lllill,ill11l){return lllill!==ill11l;},'PUSWd':'byUWs','biCtj':i1l1iI(0x12a,'89vS'),'DVXXv':function(I1lIiI,lllili){return I1lIiI==lllili;},'dexlF':function(IliiiI,Ill11){return IliiiI>Ill11;},'CMsWl':function(liiIII){return liiIII();},'GpZRa':function(li1i11,iI11I1){return li1i11==iI11I1;},'weqYT':i1l1iI(0x75,'1%FI'),'vuWzi':i1l1iI(0x145,'%4n2'),'WSUxK':function(il1i1l){return il1i1l();},'obehO':i1l1iI(0x93,'j3zW'),'CymZX':'api.m.jd.com','RKarG':i1l1iI(0x12c,'PEgc'),'DaxUb':'zh-Hans-CN;q=1','ClxWq':'https://prodev.m.jd.com/mall/active/pfjXxW8D225iDAA7tQQmhY3aTeJ/index.html','mawcd':function(IlIlll,IIIl1I){return IlIlll*IIIl1I;}},iiili1=lllli[i1l1iI(0xbc,'yLT$')];let ill11i={'url':IilIii+i1l1iI(0x9f,'Ru9c'),'headers':{'Host':lllli[i1l1iI(0x10b,'MLn[')],'Accept':lllli[i1l1iI(0x11b,'kxcl')],'Cookie':iIli1i,'User-Agent':$['UA'],'Accept-Language':lllli[i1l1iI(0xfd,'%4n2')],'Accept-Encoding':i1l1iI(0xb6,'pu[&'),'Referer':lllli['ClxWq']},'timeout':lllli['mawcd'](0xa,0x3e8)};return new Promise(async iil1ii=>{const liil1l=i1l1iI;$[liil1l(0x101,'PLH)')](ill11i,async(IlIlli,il1i1i,lil111)=>{const lI1lii=liil1l;try{if(IlIlli)$['log'](IlIlli);else{if(lllli[lI1lii(0xa2,'s2z$')](lllli[lI1lii(0xd6,'yLT$')],lllli[lI1lii(0x139,'YeV@')])){lil111=JSON[lI1lii(0xa6,'&A1t')](lil111);if(lllli['DVXXv'](lil111['code'],0x0)&&!lil111?.[lI1lii(0x11d,'&A1t')]){console[lI1lii(0x77,'kxcl')](lI1lii(0x13d,'YeV@')+(lil111?.[lI1lii(0xe5,'FT]D')]?.[lI1lii(0xb8,')C8n')]||0x0)+'次');let i11ilI=lil111?.['data']?.[lI1lii(0x113,'yLT$')];while(lllli['dexlF'](i11ilI--,0x0)){await lllli['CMsWl'](i1i1II),await $['wait'](0x1f4);}}else lllli[lI1lii(0xd5,']EYq')](lil111[lI1lii(0xbe,'%)NQ')],0x3)?console[lI1lii(0x10f,'PEgc')](lI1lii(0x133,'EN@W')+lil111?.[lI1lii(0x127,'&A1t')]):lllli[lI1lii(0x116,'YeV@')](lllli[lI1lii(0x85,'89vS')],lllli['vuWzi'])?console[lI1lii(0x7f,'TiXD')]('失败,'+lil111?.['code']+':'+lil111?.['msg']):IIli1I[lI1lii(0x106,'89vS')](lI1lii(0x105,'5mMn')+I1i11I?.[lI1lii(0x127,'&A1t')]);}else ll1iI[lI1lii(0x138,'S3^R')](''+(iI1lll?.[lI1lii(0xac,'TiXD')]?.[lI1lii(0x6b,'G6Os')]||'空气'));}}catch(lllil1){$['log'](lllil1);}finally{lllli[lI1lii(0x10a,'MLn[')](iil1ii);}});});}async function i1i1II(){const Iiili1=lIli1l,iil1il={'kyTFA':'false','gmaDc':function(ii1iiI,lllilI){return ii1iiI!==lllilI;},'tOwrb':Iiili1(0x82,'2BiU'),'QkHMn':function(ilil11,illlI1){return ilil11==illlI1;},'zKuFW':function(IIIl11,I1lIi1){return IIIl11===I1lIi1;},'APwOQ':Iiili1(0x141,')9Ha'),'REddL':Iiili1(0xa9,'&A1t'),'njTtx':function(liiIIi,lil11I){return liiIIi!==lil11I;},'tLvMU':Iiili1(0x71,'z7Ms'),'fkeXb':function(Iliii1){return Iliii1();},'TJlUc':Iiili1(0xf7,')9Ha'),'WJaEk':Iiili1(0x7d,'%4n2'),'QecZD':Iiili1(0xca,'YrL]'),'rGCHX':function(iIiIi,iil1ll){return iIiIi===iil1ll;},'shyWX':Iiili1(0x8a,'s2z$'),'vTyKO':Iiili1(0x9e,'MLn['),'CXoFs':Iiili1(0x7a,'TiXD'),'NDNtq':'*/*','txLRw':Iiili1(0xd7,'v)c4'),'ucsBc':Iiili1(0xeb,'s2z$'),'gNcXm':function(iiilil,iil1li){return iiilil*iil1li;}},ilil1I=iil1il['vTyKO'];let i11il1={'url':IilIii+Iiili1(0xb5,'aOs*'),'headers':{'Host':iil1il[Iiili1(0x121,'2A[7')],'Accept':iil1il[Iiili1(0x13c,'5mMn')],'Cookie':iIli1i,'Origin':Iiili1(0xe1,'YeV@'),'User-Agent':$['UA'],'Accept-Language':iil1il['txLRw'],'Accept-Encoding':Iiili1(0xf9,'BPY4'),'Referer':iil1il[Iiili1(0x7b,'pu[&')]},'timeout':iil1il[Iiili1(0xd9,'s2z$')](0xa,0x3e8)};return new Promise(lillIl=>{const Iil1l1=Iiili1,iIiIl={'SzUck':iil1il[Iil1l1(0x119,'aZN3')],'WVgDz':iil1il[Iil1l1(0x109,'1#w1')],'NWOkG':iil1il['QecZD']};if(iil1il[Iil1l1(0xf1,'v)c4')](iil1il[Iil1l1(0xbf,'EN@W')],Iil1l1(0x129,')9Ha'))){if(typeof lliil1==Iil1l1(0x80,'G6Os'))try{return lliiil['parse'](lliiii);}catch(li1i1i){return IllIII[Iil1l1(0xce,'(DKz')](li1i1i),ii1li[Iil1l1(0x140,'aOs*')](IIll1[Iil1l1(0x111,'Ru9c')],'',iIiIl[Iil1l1(0x6a,'XgA&')]),[];}}else $[Iil1l1(0x110,'FT]D')](i11il1,(IlIli1,illIiI,lI1lli)=>{const i1i11I=Iil1l1,Ill1l={'VHyEZ':function(llI1Il,ii1iii){return llI1Il===ii1iii;},'GlANE':iil1il[i1i11I(0x94,'Ru9c')]};try{if(IlIli1)'OtVXz'!=='OtVXz'?IiilIl[i1i11I(0x92,'v$*3')]('','❌\x20'+iii1Ii[i1i11I(0xb4,')C8n')]+',\x20失败!\x20原因:\x20'+iii1Il+'!',''):$[i1i11I(0xef,'aOs*')](IlIli1);else{if(iil1il['gmaDc']('nqvUP',iil1il['tOwrb'])){lI1lli=JSON[i1i11I(0x130,'XgA&')](lI1lli);if(iil1il[i1i11I(0x137,'zU3#')](lI1lli[i1i11I(0x99,'2BiU')],0x0)&&!lI1lli?.[i1i11I(0x7e,'1#w1')])console['log'](''+(lI1lli?.[i1i11I(0x11c,'dWg5')]?.[i1i11I(0xfa,'2A[7')]||'空气'));else{if(iil1il[i1i11I(0xe7,'dWg5')](lI1lli[i1i11I(0x90,'v$*3')],0x3)){if(iil1il[i1i11I(0xd4,'FT]D')](iil1il[i1i11I(0x134,'z7Ms')],iil1il[i1i11I(0x87,'GUK(')])){I1iIil['msg'](lI1Iil['name'],iIiIl[i1i11I(0xfc,'(DKz')],iIiIl[i1i11I(0xda,'89vS')],{'open-url':i1i11I(0x13a,'v)c4')});return;}else console['log']('失败,'+lI1lli?.[i1i11I(0x120,'S3^R')]);}else console[i1i11I(0xe9,'*D6)')](i1i11I(0x105,'5mMn')+lI1lli?.['code']+':'+lI1lli?.[i1i11I(0xc8,'1%FI')]);}}else i1lI[i1i11I(0x12e,'yLT$')]();}}catch(lllI1l){$[i1i11I(0x108,'YrL]')](lllI1l);}finally{if(iil1il['njTtx'](iil1il[i1i11I(0xba,'G6Os')],iil1il[i1i11I(0xcb,'(DKz')])){IiilI1[i1i11I(0x132,'MLn[')](IIII1l)[i1i11I(0x136,'Tjus')](llI1Ii=>{IlI11['push'](iIIIIl[llI1Ii]);});if(IlI1I[i1i11I(0x70,'dWg5')][i1i11I(0x8b,')C8n')]&&Ill1l[i1i11I(0x100,'z7Ms')](II11Ii['env']['JD_DEBUG'],Ill1l[i1i11I(0xf0,'5mMn')]))II11Il['log']=()=>{};}else iil1il[i1i11I(0x13e,'BPY4')](lillIl);}});});}function liiIIl(lllI1i){const il1iIl=lIli1l,li1i1l={'ZKbYP':il1iIl(0xaf,'1#w1'),'eOySW':function(II1i1,lI1lll){return II1i1(lI1lll);},'sgSiK':function(iIiII,iil1lI){return iIiII+iil1lI;},'EilEZ':function(iiiliI,li1i1I){return iiiliI+li1i1I;},'LUBfn':function(illIii,ii1il1){return illIii==ii1il1;},'knGaw':il1iIl(0x80,'G6Os'),'ujmLa':'dgMbQ','TUICC':il1iIl(0x117,')C8n')};if(li1i1l['LUBfn'](typeof lllI1i,li1i1l[il1iIl(0xcd,'dWg5')]))try{if(li1i1l['ujmLa']===li1i1l[il1iIl(0x74,'5IeH')]){let illIil=Iil1I1[Ii1iII];if(illIil&&typeof illIil===li1i1l['ZKbYP'])illIil=l1i11I[il1iIl(0x9b,'%4n2')](illIil);if(illIil&&II11II[il1iIl(0xc1,'5IeH')])illIil=li1i1l[il1iIl(0x76,'PEgc')](Ii1iI1,illIil);lilIli[il1iIl(0x12f,'MLn[')](li1i1l['sgSiK'](li1i1l['EilEZ'](Iliili,'='),illIil));}else return JSON[il1iIl(0xc3,'jtMt')](lllI1i);}catch(Ill1I){return console['log'](Ill1I),$[il1iIl(0x144,'%)NQ')]($[il1iIl(0x96,'C1Rm')],'','请勿随意在BoxJs输入框修改内容\x0a建议通过脚本去获取cookie'),[];}}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)}