faker3/jd_liveLottery.js
2024-08-26 15:45:34 +08:00

27 lines
44 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
活动名称:京东直播互动抽奖
活动链接https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=<直播间id>
环境变量jd_liveLottery_ids // 直播间id多个用英文逗号分割
jd_liveLottery_threads // 控制并发线程数正整数默认1最大5
jd_liveLottery_interval // 自定义运行间隔时长整数单位毫秒默认500
jd_liveLottery_notify // 是否推送通知true/false默认不推送
jd_liveLottery_pinFilter // 账号pin过滤多个用@进行分割
高并发脚本,谨慎使用并发
活动限制IP严重建议使用代理
黑号会持续擦肩,同一直播间活动请勿连续抽奖,以直播间悬浮标识为准
7 7 7 7 *
*/
const $ = new Env('直播互动抽奖')
const jdCookie = require('./jdCookie')
const common = require('./function/jdCommon')
const notify = require('./function/sendJDNotify')
var il='jsjiami.com.v7';const lll1l1Ii=i11Iill;(function(ii11I1lI,liIilIii,llill1ii,Iil1iI1l,iIiiIl1i,Il1i1iIl,lIil1II1){return ii11I1lI=ii11I1lI>>0x4,Il1i1iIl='hs',lIil1II1='hs',function(IIIi11il,iI11Il1l,ilIi11ll,l1lIlIii,Ii1il1ll){const i111l11l=i11Iill;l1lIlIii='tfi',Il1i1iIl=l1lIlIii+Il1i1iIl,Ii1il1ll='up',lIil1II1+=Ii1il1ll,Il1i1iIl=ilIi11ll(Il1i1iIl),lIil1II1=ilIi11ll(lIil1II1),ilIi11ll=0x0;const i11IiiI=IIIi11il();while(!![]&&--Iil1iI1l+iI11Il1l){try{l1lIlIii=-parseInt(i111l11l(0x2e6,'@kyU'))/0x1+-parseInt(i111l11l(0x168,'I[(m'))/0x2*(parseInt(i111l11l(0x1d4,'nUwX'))/0x3)+-parseInt(i111l11l(0x17b,'1i(d'))/0x4+parseInt(i111l11l(0x334,'76gE'))/0x5+-parseInt(i111l11l(0x181,'v!FK'))/0x6+parseInt(i111l11l(0x167,'MZWt'))/0x7+-parseInt(i111l11l(0x255,'QrZ7'))/0x8*(-parseInt(i111l11l(0x272,'tJ!l'))/0x9);}catch(liIlIiiI){l1lIlIii=ilIi11ll;}finally{Ii1il1ll=i11IiiI[Il1i1iIl]();if(ii11I1lI<=Iil1iI1l)ilIi11ll?iIiiIl1i?l1lIlIii=Ii1il1ll:iIiiIl1i=Ii1il1ll:ilIi11ll=Ii1il1ll;else{if(ilIi11ll==iIiiIl1i['replace'](/[wnTJEgObBPSeAIQyWXYh=]/g,'')){if(l1lIlIii===iI11Il1l){i11IiiI['un'+Il1i1iIl](Ii1il1ll);break;}i11IiiI[lIil1II1](Ii1il1ll);}}}}}(llill1ii,liIilIii,function(IliI11Il,iI1IiIi,l1ll1,I1liiI,ilI1i1II,i1IiliI1,iIlI1lll){return iI1IiIi='\x73\x70\x6c\x69\x74',IliI11Il=arguments[0x0],IliI11Il=IliI11Il[iI1IiIi](''),l1ll1=`\x72\x65\x76\x65\x72\x73\x65`,IliI11Il=IliI11Il[l1ll1]('\x76'),I1liiI=`\x6a\x6f\x69\x6e`,(0x17eaa1,IliI11Il[I1liiI](''));});}(0xca0,0xec2d5,lIlIilll,0xcc),lIlIilll)&&(il=lIlIilll);const liveIdList=(process[lll1l1Ii(0x2a5,'[]1p')][lll1l1Ii(0x1d1,'&l(2')]||'')[lll1l1Ii(0x24d,'8Vqj')](',')[lll1l1Ii(0x19a,'f@gc')](ll1illI=>ll1illI[lll1l1Ii(0x236,'QuUW')]())[lll1l1Ii(0x297,'nUwX')](Boolean);let taskThreads=process[lll1l1Ii(0x2f7,'n5iW')][lll1l1Ii(0x303,'AS!P')]||'1';const runInterval=process[lll1l1Ii(0x2a5,'[]1p')][lll1l1Ii(0x15f,'QuUW')]||lll1l1Ii(0x328,'x%x%'),isNotify=(process[lll1l1Ii(0x161,'FJTq')][lll1l1Ii(0x179,'8jh%')]||process[lll1l1Ii(0x1bf,'tJ!l')][lll1l1Ii(0x16f,'0FcH')])===lll1l1Ii(0x1b5,'jn4h'),pinFilter=(process[lll1l1Ii(0x32f,'X6N3')][lll1l1Ii(0x2a1,'8jh%')]||'')[lll1l1Ii(0x166,'n5iW')]('@');let cookiesArr=Object[lll1l1Ii(0x241,']Tkg')](jdCookie)[lll1l1Ii(0x286,'8Vqj')](ll11l1=>jdCookie[ll11l1])[lll1l1Ii(0x2dd,'&l(2')](ll1IlIiI=>ll1IlIiI);!cookiesArr[0x0]&&($[lll1l1Ii(0x213,'QrZ7')]($[lll1l1Ii(0x19e,'tl5J')],lll1l1Ii(0x24c,'jn4h')),process[lll1l1Ii(0x278,'tl5J')](0x1));!(async()=>{const illIIlil=lll1l1Ii,lI1IIIii={'MWYNj':illIIlil(0x2be,'QrZ7'),'FRelx':illIIlil(0x219,'76gE')};notify[illIIlil(0x23b,'f@gc')]({'title':$[illIIlil(0x32c,'8jh%')]}),await Main(),isNotify&&notify[illIIlil(0x244,'jSGA')]()&&(lI1IIIii[illIIlil(0x22b,'Sa0R')]===lI1IIIii[illIIlil(0x247,'1d$6')]?(Iililill=IlIiIlii[illIIlil(0x1fd,'0FcH')]((II11iI1,lIll1Il1)=>!i1lIlii[illIIlil(0x140,'8Vqj')][illIIlil(0x1f2,'s*fj')](lIll1Il1+0x1)),I11Ili1i[illIIlil(0x1d3,'QuUW')]=[]):await notify[illIIlil(0x1b9,'[]1p')]());})()[lll1l1Ii(0x211,'3j0N')](l1IiiiiI=>$[lll1l1Ii(0x308,'FJTq')](l1IiiiiI))[lll1l1Ii(0x2fc,'76gE')](()=>$[lll1l1Ii(0x227,'XR$q')]());function i11Iill(_0xe2f912,_0x55bed6){const _0x329970=lIlIilll();return i11Iill=function(_0x456c2c,_0x279170){_0x456c2c=_0x456c2c-0x137;let _0x22c7f5=_0x329970[_0x456c2c];if(i11Iill['LnlrsG']===undefined){var _0x48ba82=function(_0x5485a5){const _0x233f25='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2389b0='',_0x1353ea='';for(let _0x33fc7b=0x0,_0x2a6081,_0x5c383f,_0xbc4373=0x0;_0x5c383f=_0x5485a5['charAt'](_0xbc4373++);~_0x5c383f&&(_0x2a6081=_0x33fc7b%0x4?_0x2a6081*0x40+_0x5c383f:_0x5c383f,_0x33fc7b++%0x4)?_0x2389b0+=String['fromCharCode'](0xff&_0x2a6081>>(-0x2*_0x33fc7b&0x6)):0x0){_0x5c383f=_0x233f25['indexOf'](_0x5c383f);}for(let _0x429a3b=0x0,_0x21d4f5=_0x2389b0['length'];_0x429a3b<_0x21d4f5;_0x429a3b++){_0x1353ea+='%'+('00'+_0x2389b0['charCodeAt'](_0x429a3b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1353ea);};const _0x161faf=function(_0x444793,_0x54b293){let _0x25b6b4=[],_0x9b7993=0x0,_0x10bf5a,_0x330073='';_0x444793=_0x48ba82(_0x444793);let _0x1753fc;for(_0x1753fc=0x0;_0x1753fc<0x100;_0x1753fc++){_0x25b6b4[_0x1753fc]=_0x1753fc;}for(_0x1753fc=0x0;_0x1753fc<0x100;_0x1753fc++){_0x9b7993=(_0x9b7993+_0x25b6b4[_0x1753fc]+_0x54b293['charCodeAt'](_0x1753fc%_0x54b293['length']))%0x100,_0x10bf5a=_0x25b6b4[_0x1753fc],_0x25b6b4[_0x1753fc]=_0x25b6b4[_0x9b7993],_0x25b6b4[_0x9b7993]=_0x10bf5a;}_0x1753fc=0x0,_0x9b7993=0x0;for(let _0x234288=0x0;_0x234288<_0x444793['length'];_0x234288++){_0x1753fc=(_0x1753fc+0x1)%0x100,_0x9b7993=(_0x9b7993+_0x25b6b4[_0x1753fc])%0x100,_0x10bf5a=_0x25b6b4[_0x1753fc],_0x25b6b4[_0x1753fc]=_0x25b6b4[_0x9b7993],_0x25b6b4[_0x9b7993]=_0x10bf5a,_0x330073+=String['fromCharCode'](_0x444793['charCodeAt'](_0x234288)^_0x25b6b4[(_0x25b6b4[_0x1753fc]+_0x25b6b4[_0x9b7993])%0x100]);}return _0x330073;};i11Iill['xUhNEu']=_0x161faf,_0xe2f912=arguments,i11Iill['LnlrsG']=!![];}const _0x4aebe4=_0x329970[0x0],_0x3b612a=_0x456c2c+_0x4aebe4,_0x28f67c=_0xe2f912[_0x3b612a];return!_0x28f67c?(i11Iill['SWGlwF']===undefined&&(i11Iill['SWGlwF']=!![]),_0x22c7f5=i11Iill['xUhNEu'](_0x22c7f5,_0x279170),_0xe2f912[_0x3b612a]=_0x22c7f5):_0x22c7f5=_0x28f67c,_0x22c7f5;},i11Iill(_0xe2f912,_0x55bed6);}async function Main(){const lil1l11I=lll1l1Ii,illiIIl={'FOWEl':lil1l11I(0x2e3,'@rrx'),'oaXDy':function(IiIIlIli,IIllii1i){return IiIIlIli(IIllii1i);},'iiuwE':function(I1ilI111,iiIl1lIl){return I1ilI111>=iiIl1lIl;},'Yftje':lil1l11I(0x317,'JP2T'),'cJXEm':lil1l11I(0x2bc,'8YWq'),'rOVhn':lil1l11I(0x2fe,'p3c3'),'QSXOr':function(ll1i1Ili,lIi1IiiI){return ll1i1Ili===lIi1IiiI;},'ottmG':lil1l11I(0x1ce,'n5iW'),'vxeVy':lil1l11I(0x193,'SkLv'),'WLSWg':function(I11IlIii,IIll1lI1){return I11IlIii!==IIll1lI1;},'rFqJn':lil1l11I(0x307,'p3c3'),'mxlFW':function(IlIii,liIIliI1){return IlIii>liIIliI1;},'RmfXf':function(l111iI1l,iiIIlllI){return l111iI1l!==iiIIlllI;},'KGAym':lil1l11I(0x2c7,'QrZ7'),'sWgMF':lil1l11I(0x185,'Cdi!'),'hJAzQ':lil1l11I(0x206,'QrZ7'),'GXVIm':lil1l11I(0x31f,'4yKq'),'FFkyI':function(II1iil1I,liIiIi1i){return II1iil1I!==liIiIi1i;},'AJYwq':lil1l11I(0x1a0,'x%x%'),'Zqwcb':function(iIIIi11l,ll1Ili){return iIIIi11l<ll1Ili;},'RhBqj':lil1l11I(0x187,'eWB!'),'cnlpx':function(II1,I1iii1il){return II1-I1iii1il;},'EmXKT':lil1l11I(0x276,'FJTq')};try{if(illiIIl[lil1l11I(0x325,'s*fj')]!==lil1l11I(0x156,'8Vqj')){iiiii1il[lil1l11I(0x251,'tLnY')](illiIIl[lil1l11I(0x31a,'8Vqj')]),i1lIi11[lil1l11I(0x2b1,'I[(m')](ilii111[lil1l11I(0x1a5,'r5qA')]()),l1IiilIi[lil1l11I(0x2c9,'s*fj')][lil1l11I(0x1cd,'nUwX')](II1i1II);return;}else{if(illiIIl[lil1l11I(0x13c,'Uq#T')](liveIdList[lil1l11I(0x138,'1gvy')],0x0)){if(illiIIl[lil1l11I(0x18c,'MZWt')](illiIIl[lil1l11I(0x30a,'X6N3')],illiIIl[lil1l11I(0x270,'jn4h')]))try{const Il1liIIl=illiIIl[lil1l11I(0x1aa,'Uq#T')](illIiIII,I1i11iI);illiIIl[lil1l11I(0x1f9,'1i(d')](Il1liIIl,0x0)&&(ili1iIi1[lil1l11I(0x2b9,'p3c3')]=Il1liIIl);}catch{iiiIIii[lil1l11I(0x335,'vM2P')](illiIIl[lil1l11I(0x320,'D5Hw')]);}else{console[lil1l11I(0x19c,'8YWq')](lil1l11I(0x145,'f@gc'));return;}}const l1liiIl=[...new Set(liveIdList)];try{if(illiIIl[lil1l11I(0x144,'1i(d')](illiIIl[lil1l11I(0x332,'31D*')],lil1l11I(0x2c0,'jn4h'))){const lIlIIi1=parseInt(taskThreads);illiIIl[lil1l11I(0x240,'tLnY')](lIlIIi1,0x0)&&illiIIl[lil1l11I(0x1be,'SkLv')](lIlIIi1,0x1)&&(illiIIl[lil1l11I(0x237,'SkLv')](illiIIl[lil1l11I(0x1e1,'nUwX')],illiIIl[lil1l11I(0x21e,'31D*')])?taskThreads=lIlIIi1:(delete I11lIiIi[lil1l11I(0x2e5,'EhBo')],delete IIiIlIll[lil1l11I(0x1cf,'f@gc')][lil1l11I(0x280,'4yKq')]));}else IIIIIIi1[lil1l11I(0x29d,'v!FK')](lil1l11I(0x22f,'@)dY'));}catch{taskThreads=0x1;}taskThreads=Math[lil1l11I(0x148,'Uq#T')](taskThreads,0x5),$[lil1l11I(0x309,'76gE')]=null;if(runInterval){if(illiIIl[lil1l11I(0x316,'v!FK')](lil1l11I(0x2db,'eWB!'),illiIIl[lil1l11I(0x25c,'MZWt')])){I1liiIli[lil1l11I(0x232,'nUwX')]=!![],iiIll1ii[lil1l11I(0x1e3,'s*fj')](lil1l11I(0x1d9,'D5Hw')+liiIiIi[lil1l11I(0x300,'eWB!')]),i111iilI[lil1l11I(0x23d,'EhBo')](lil1l11I(0x1c1,'jSGA')+iil1lI1i);if(![0x3,0xd][lil1l11I(0x262,'MZWt')](lIlI1l1)){iilI11Ii[lil1l11I(0x29d,'v!FK')](illiIIl[lil1l11I(0x26a,'76gE')]),I1Ii1l1l[lil1l11I(0x1e4,'3j0N')]=!![];return;}iI11llil[lil1l11I(0x2af,'0FcH')]('');}else try{const II1iili=parseInt(runInterval);II1iili>=0x0&&(illiIIl[lil1l11I(0x1b0,'^[$]')]!==lil1l11I(0x1e8,'Cdi!')?Ii1111i[lil1l11I(0x335,'vM2P')](IiIi1lIi+lil1l11I(0x223,'I[(m')):$[lil1l11I(0x149,'QuUW')]=II1iili);}catch{console[lil1l11I(0x279,'JP2T')](lil1l11I(0x1b2,'jSGA'));}}l1liiIl[lil1l11I(0x20e,'p3c3')]>0x1&&(illiIIl[lil1l11I(0x17d,'I[(m')](lil1l11I(0x1ef,'MZWt'),illiIIl[lil1l11I(0x30c,'x%x%')])?console[lil1l11I(0x289,'jn4h')](lil1l11I(0x1ba,'tLnY')+l1liiIl[lil1l11I(0x1a4,'Sa0R')]+lil1l11I(0x201,'nUwX')):(delete iIiIIlIi[lil1l11I(0x27f,'0FcH')],delete l11liIIl[lil1l11I(0x1c7,'[!ij')][lil1l11I(0x157,'1gvy')]));const Ii1II11=lil1l11I(0x2fd,'1i(d')+common[lil1l11I(0x21a,'v!FK')](0xd,lil1l11I(0x1cc,'@)dY'));$['UA']=common[lil1l11I(0x282,'jn4h')](Ii1II11),$[lil1l11I(0x174,'f@gc')]=common[lil1l11I(0x1c5,'r5qA')](Ii1II11),$[lil1l11I(0x1bb,'@)dY')]=common[lil1l11I(0x1fe,'v!FK')]();for(let lillI1l=0x0;illiIIl[lil1l11I(0x1f4,'JP2T')](lillI1l,l1liiIl[lil1l11I(0x32a,'eWB!')]);lillI1l++){$[lil1l11I(0x230,'^[$]')]=[],$[lil1l11I(0x217,'8YWq')]=l1liiIl[lillI1l],$[lil1l11I(0x1b8,'MZWt')]=lil1l11I(0x18b,'Uq#T')+$[lil1l11I(0x186,'8Vqj')],$[lil1l11I(0x2b5,'I[(m')]='',await illiIIl[lil1l11I(0x2a4,'jSGA')](sendRequest,illiIIl[lil1l11I(0x1c2,'jSGA')]);if(!$[lil1l11I(0x177,'&l(2')]){console[lil1l11I(0x2d1,'Uq#T')]('【'+$[lil1l11I(0x233,'s*fj')]+lil1l11I(0x1f6,'tLnY'));continue;}await common[lil1l11I(0x31e,'FJTq')](taskThreads,cookiesArr,taskFnc),$[lil1l11I(0x2aa,'p3c3')]=![],$[lil1l11I(0x1cb,'@rrx')]=![],lillI1l!==illiIIl[lil1l11I(0x2a8,'76gE')](l1liiIl[lil1l11I(0x14a,'nUwX')],0x1)&&console[lil1l11I(0x252,'1d$6')](''),$[lil1l11I(0x2c9,'s*fj')][lil1l11I(0x1d7,'@kyU')]>0x0&&(lil1l11I(0x276,'FJTq')===illiIIl[lil1l11I(0x1fa,'s*fj')]?(cookiesArr=cookiesArr[lil1l11I(0x298,'MZWt')]((I1IliI1i,l1Ii1iiI)=>!$[lil1l11I(0x140,'8Vqj')][lil1l11I(0x327,'XR$q')](l1Ii1iiI+0x1)),$[lil1l11I(0x238,'f@gc')]=[]):(ll11liII[lil1l11I(0x289,'jn4h')](''+lii11l1I+l1i1li1i),li1i1Iil[lil1l11I(0x2c5,'vM2P')](li1lII11)));}}}catch(l1lIilIi){console[lil1l11I(0x1a9,'tJ!l')](lil1l11I(0x159,'XR$q')+l1lIilIi);}}async function taskFnc(liiiiiIl,ll1liiIi){const Ill1IIII=lll1l1Ii,Ili1lI1i={'qCLRg':Ill1IIII(0x137,'31D*'),'KkMyF':Ill1IIII(0x31c,'76gE'),'fCSBm':Ill1IIII(0x195,'1i(d'),'NhkMA':function(liIl1il,il11ilI){return liIl1il===il11ilI;},'hzeqm':Ill1IIII(0x20c,'FJTq'),'NsOfi':function(iI1I1ilI,Ii1i1Iii){return iI1I1ilI===Ii1i1Iii;},'IBaRn':Ill1IIII(0x2d4,'1i(d'),'mDUaB':function(IlIlIIlI,Il1lIl11){return IlIlIIlI===Il1lIl11;},'smjAH':Ill1IIII(0x2b4,'[]1p'),'cBkzQ':Ill1IIII(0x268,'f@gc'),'dDpnE':function(iIIlIIIl,ilIiilII){return iIIlIIIl===ilIiilII;},'XiVEX':Ill1IIII(0x162,'EhBo'),'QTwFv':Ill1IIII(0x2eb,'n5iW'),'WyIyH':Ill1IIII(0x321,'jn4h'),'dqNPG':Ill1IIII(0x204,'jSGA'),'WXEbF':Ill1IIII(0x154,'QrZ7'),'TcuEm':function(iII1iilI,liIIii1I){return iII1iilI===liIIii1I;},'PFQjI':Ill1IIII(0x1dc,'@rrx'),'mHmNz':Ill1IIII(0x141,'Uq#T'),'UhGXl':Ill1IIII(0x1e6,'FJTq'),'LjeKd':Ill1IIII(0x1a2,'D5Hw'),'sBAWz':Ill1IIII(0x1a7,'@rrx'),'wYGlg':Ill1IIII(0x160,'jn4h'),'EaLKT':Ill1IIII(0x2d7,'[!ij'),'Cibad':Ill1IIII(0x302,'&l(2'),'fqfNu':Ill1IIII(0x2e8,'v!FK'),'JFQtX':Ill1IIII(0x200,'8YWq'),'igHcw':Ill1IIII(0x23a,'[]1p'),'DZBwA':Ill1IIII(0x19b,'&l(2'),'QwBqr':Ill1IIII(0x314,'4yKq'),'MesOp':Ill1IIII(0x1f8,'^[$]'),'OBgdm':Ill1IIII(0x23f,'s*fj'),'QnePV':function(lll1I1II,lII1Ii1){return lll1I1II!==lII1Ii1;},'frcDU':Ill1IIII(0x318,'eWB!'),'EgiKW':function(llII1l1l,lI1ii1ll,lllliI1){return llII1l1l(lI1ii1ll,lllliI1);},'xubpE':function(lIlIIiII,illl1I1l){return lIlIIiII(illl1I1l);},'DdrKs':Ill1IIII(0x30f,'Uq#T'),'DBcha':Ill1IIII(0x234,'n5iW'),'OIiPX':function(iIII1,iIII11il){return iIII1(iIII11il);}};if($[Ill1IIII(0x16e,'D5Hw')])return{'runEnd':!![]};const I11Iil1I=Ili1lI1i[Ill1IIII(0x281,'D5Hw')](decodeURIComponent,common[Ill1IIII(0x25f,'tl5J')](liiiiiIl,Ill1IIII(0x1ee,'tLnY'))),iIIliIii=Ill1IIII(0x1d5,'1gvy')+ll1liiIi+'】'+I11Iil1I+'',l1iiiill=notify[Ill1IIII(0x2de,'@)dY')](ll1liiIi,I11Iil1I);if(pinFilter[Ill1IIII(0x138,'1gvy')]>0x0&&(pinFilter[Ill1IIII(0x1c4,'X6N3')](I11Iil1I)||pinFilter[Ill1IIII(0x1e0,'1gvy')](encodeURIComponent(I11Iil1I)))){l1iiiill[Ill1IIII(0x256,'8Vqj')](Ili1lI1i[Ill1IIII(0x190,'nUwX')]),console[Ill1IIII(0x252,'1d$6')](l1iiiill[Ill1IIII(0x15c,'MZWt')]()),$[Ill1IIII(0x1d3,'QuUW')][Ill1IIII(0x27b,'jSGA')](ll1liiIi);return;}const iI1ll1li=await common[Ill1IIII(0x2c4,'8YWq')](liiiiiIl);if(!iI1ll1li&&typeof iI1ll1li===Ili1lI1i[Ill1IIII(0x1ca,'QuUW')]){console[Ill1IIII(0x2ff,'XR$q')](iIIliIii+Ill1IIII(0x29a,'SkLv')),l1iiiill[Ill1IIII(0x13b,'8jh%')](Ill1IIII(0x224,'3j0N')),$[Ill1IIII(0x257,'FJTq')][Ill1IIII(0x1d6,'Uq#T')](ll1liiIi);return;}const i1i1IiI=common[Ill1IIII(0x192,'^[$]')](I11Iil1I),Il1I1Iil=common[Ill1IIII(0x258,'31D*')](I11Iil1I),iiIilI1=common[Ill1IIII(0x2ea,'x%x%')]();if($[Ill1IIII(0x16e,'D5Hw')])return{'runEnd':!![]};let lilliill='';await Ili1lI1i[Ill1IIII(0x1db,'4yKq')](iii1IIIi,Ili1lI1i[Ill1IIII(0x2b3,'f@gc')]);if($[Ill1IIII(0x24a,'SkLv')])return{'runEnd':!![]};if($[Ill1IIII(0x249,'Uq#T')])await $[Ill1IIII(0x1c6,'p3c3')]($[Ill1IIII(0x2b9,'p3c3')]);await iii1IIIi(Ill1IIII(0x142,'s*fj'));if($[Ill1IIII(0x14b,'0FcH')])await $[Ill1IIII(0x235,'@)dY')]($[Ill1IIII(0x259,'n5iW')]);function l111lI1(l1i1II1l,iI1llIiI){const IiIi1IiI=Ill1IIII;if(IiIi1IiI(0x151,'I[(m')!==Ili1lI1i[IiIi1IiI(0x2dc,'XR$q')])iiI1I1l1[IiIi1IiI(0x1e7,'x%x%')](I1il111l),IiIlilII&&(lI1i1IIi[IiIi1IiI(0x21d,'8YWq')]=!![],iiiIlll[IiIi1IiI(0x14e,'@rrx')]&&iill1liI[IiIi1IiI(0x1af,'I[(m')][IiIi1IiI(0x306,'[!ij')](I11Ii1iI));else try{switch(l1i1II1l){case Ili1lI1i[IiIi1IiI(0x290,'I[(m')]:if(iI1llIiI[IiIi1IiI(0x254,'^[$]')]==='0'&&Ili1lI1i[IiIi1IiI(0x2f6,'76gE')](iI1llIiI[IiIi1IiI(0x1bd,'[!ij')],'0')&&iI1llIiI[IiIi1IiI(0x264,'XR$q')]){const IlI1liI1=iI1llIiI[IiIi1IiI(0x323,'^[$]')]?.[IiIi1IiI(0x1da,'8jh%')]||{},lIIilI1l=IlI1liI1?.[IiIi1IiI(0x18d,'76gE')]||'',Ii1lllIl=IlI1liI1?.[IiIi1IiI(0x28a,'D5Hw')]||IlI1liI1?.[IiIi1IiI(0x1b6,'EhBo')]||0x0;let lI1l11li='';switch(lIIilI1l){case 0x3:case 0xd:lI1l11li=Ii1lllIl+'京豆',lilliill=Ii1lllIl+IiIi1IiI(0x260,'Uq#T');break;case 0x8:lI1l11li=Ili1lI1i[IiIi1IiI(0x315,'8YWq')],lilliill=IiIi1IiI(0x15a,'FJTq');break;default:lI1l11li=IiIi1IiI(0x304,'JP2T')+lIIilI1l+')',lilliill=IiIi1IiI(0x269,'I[(m')+lIIilI1l+')';}if(!$[IiIi1IiI(0x214,'I[(m')]){if(IiIi1IiI(0x330,'p3c3')===IiIi1IiI(0x31b,'SkLv')){$[IiIi1IiI(0x2cd,'jSGA')]=!![],console[IiIi1IiI(0x2ce,'n5iW')](IiIi1IiI(0x228,'3j0N')+$[IiIi1IiI(0x14c,'XR$q')]),console[IiIi1IiI(0x2f1,'[]1p')](IiIi1IiI(0x1d2,'eWB!')+lI1l11li);if(![0x3,0xd][IiIi1IiI(0x205,'JP2T')](lIIilI1l)){if(Ili1lI1i[IiIi1IiI(0x1de,'0FcH')](IiIi1IiI(0x2da,'r5qA'),Ili1lI1i[IiIi1IiI(0x198,'RsdS')])){console[IiIi1IiI(0x1ae,'1gvy')](IiIi1IiI(0x22e,'Uq#T')),$[IiIi1IiI(0x171,'EhBo')]=!![];return;}else iIiiilii[IiIi1IiI(0x15d,'FJTq')]('');}console[IiIi1IiI(0x2f9,'D5Hw')]('');}else{IliI1iiI[IiIi1IiI(0x322,'^[$]')](lllI1III+IiIi1IiI(0x27e,'jSGA')),I1Illi1i[IiIi1IiI(0x18f,'jn4h')](IiIi1IiI(0x18a,'n5iW')),l1lIl11i[IiIi1IiI(0x1d0,'n5iW')][IiIi1IiI(0x245,'eWB!')](i1Ili1i);return;}}}else Ili1lI1i[IiIi1IiI(0x28b,'@)dY')](Ili1lI1i[IiIi1IiI(0x27c,'JP2T')],IiIi1IiI(0x248,'1gvy'))?console[IiIi1IiI(0x2ed,'[!ij')](iIIliIii+IiIi1IiI(0x158,'D5Hw')):llIlI1lI=IiIi1IiI(0x26c,'QrZ7');break;case Ili1lI1i[IiIi1IiI(0x1ff,'76gE')]:if(Ili1lI1i[IiIi1IiI(0x1b4,'8jh%')](iI1llIiI[IiIi1IiI(0x143,'4yKq')],'0')&&iI1llIiI[IiIi1IiI(0x2e1,'XR$q')]==='0'&&iI1llIiI[IiIi1IiI(0x27f,'0FcH')]){if(iI1llIiI[IiIi1IiI(0x20a,'v!FK')]?.[IiIi1IiI(0x208,'@)dY')][IiIi1IiI(0x2a9,'EhBo')]('中奖'))Ili1lI1i[IiIi1IiI(0x253,'SkLv')](Ili1lI1i[IiIi1IiI(0x338,'@kyU')],Ili1lI1i[IiIi1IiI(0x30b,'AS!P')])?li1llI[IiIi1IiI(0x1ae,'1gvy')](IiIi1IiI(0x209,'0FcH')+lIliiili+IiIi1IiI(0x25a,'[]1p')+(Illl1IiI[IiIi1IiI(0x266,'[]1p')]||ll1lIIIl)):(console[IiIi1IiI(0x275,'X6N3')](''+iIIliIii+lilliill),l1iiiill[IiIi1IiI(0x2a2,'QrZ7')](lilliill));else{const li1111i1=iI1llIiI[IiIi1IiI(0x323,'^[$]')]?.[IiIi1IiI(0x150,'@rrx')]||'';let liil1lIi=li1111i1;li1111i1===IiIi1IiI(0x218,'eWB!')?(console[IiIi1IiI(0x2b1,'I[(m')](iIIliIii+IiIi1IiI(0x2d6,'Uq#T')),l1iiiill[IiIi1IiI(0x30d,'r5qA')](Ili1lI1i[IiIi1IiI(0x21c,'eWB!')])):Ili1lI1i[IiIi1IiI(0x2f5,'eWB!')]!==Ili1lI1i[IiIi1IiI(0x1c8,'Cdi!')]?(l1I1Ilii[IiIi1IiI(0x284,'@rrx')](i1iliil[IiIi1IiI(0x146,'JP2T')],Ili1lI1i[IiIi1IiI(0x28f,'4yKq')]),i11IlIi1[IiIi1IiI(0x24f,'jSGA')](0x1)):(li1111i1[IiIi1IiI(0x327,'XR$q')]('等级')&&(IiIi1IiI(0x29c,'s*fj')===Ili1lI1i[IiIi1IiI(0x172,'Sa0R')]?liil1lIi=IiIi1IiI(0x2fb,'&l(2'):IIil1ll1[IiIi1IiI(0x1e3,'s*fj')](IiIi1IiI(0x274,'MZWt')+iil1Ii+IiIi1IiI(0x13f,'jn4h')+(il1llIl1[IiIi1IiI(0x14e,'@rrx')]||Iil111Il))),console[IiIi1IiI(0x29f,'nUwX')](''+iIIliIii+liil1lIi));}}else console[IiIi1IiI(0x322,'^[$]')](iIIliIii+IiIi1IiI(0x267,'AS!P'));break;}}catch(ilIllI1i){IiIi1IiI(0x170,'I[(m')===IiIi1IiI(0x277,'jSGA')?console[IiIi1IiI(0x252,'1d$6')](IiIi1IiI(0x291,'1i(d')+l1i1II1l+IiIi1IiI(0x301,'x%x%')+(ilIllI1i[IiIi1IiI(0x19f,'RsdS')]||ilIllI1i)):(ii1l11I[IiIi1IiI(0x279,'JP2T')](Ii1li1ii),IIill11i&&(lIil1l11[IiIi1IiI(0x311,'RsdS')]=!![]));}}async function iii1IIIi(l1iI1I1l){const l11l1lIi=Ill1IIII;if(l11l1lIi(0x2c1,'Uq#T')===Ili1lI1i[l11l1lIi(0x196,'&l(2')])llI1li1l=ll1Ii1ii;else{if($[l11l1lIi(0x189,'4yKq')])return;let i1IIll='',l1lIi111=null,l111iIi=null,IlIIIi1I=Ili1lI1i[l11l1lIi(0x2ef,'f@gc')],iiii11={};switch(l1iI1I1l){case l11l1lIi(0x30e,'&l(2'):i1IIll=Ili1lI1i[l11l1lIi(0x23e,']Tkg')],iiii11={'lotteryId':''[l11l1lIi(0x2a7,'p3c3')]($[l11l1lIi(0x27a,'FJTq')]||''),'pageId':l11l1lIi(0x226,'eWB!'),'shared':'1','liveId':''[l11l1lIi(0x176,'@kyU')]($[l11l1lIi(0x2a3,'4yKq')]||'')},l111iIi={'functionId':l11l1lIi(0x1f5,'tl5J')},l1lIi111=common[l11l1lIi(0x184,'r5qA')](await common[l11l1lIi(0x271,'tJ!l')](Ili1lI1i[l11l1lIi(0x26b,'XR$q')],iiii11));break;case Ili1lI1i[l11l1lIi(0x2a0,'@)dY')]:i1IIll=Ili1lI1i[l11l1lIi(0x1e2,'SkLv')],iiii11={'liveId':''[l11l1lIi(0x147,'Cdi!')]($[l11l1lIi(0x188,'JP2T')]||''),'pageId':Ili1lI1i[l11l1lIi(0x2c3,'MZWt')],'fansLevel':0x1,'eid':'','lotteryId':''[l11l1lIi(0x2cf,'3j0N')]($[l11l1lIi(0x331,'EhBo')]||''),'plus':0x1,'token':'','nickName':encodeURIComponent(I11Iil1I)},l111iIi={'functionId':Ili1lI1i[l11l1lIi(0x163,'@rrx')]},l1lIi111=common[l11l1lIi(0x273,']Tkg')](await common[l11l1lIi(0x2ae,'@rrx')](Ili1lI1i[l11l1lIi(0x31d,'JP2T')],iiii11));break;default:console[l11l1lIi(0x17f,'MZWt')](l11l1lIi(0x2c6,'f@gc')+l1iI1I1l);return;}const lI11Ill={'url':i1IIll,'method':IlIIIi1I,'headers':{'Accept':Ili1lI1i[l11l1lIi(0x2bf,'31D*')],'Accept-Encoding':l11l1lIi(0x243,'8YWq'),'Accept-Language':Ili1lI1i[l11l1lIi(0x2b6,'^[$]')],'Connection':Ili1lI1i[l11l1lIi(0x319,'r5qA')],'Content-Type':Ili1lI1i[l11l1lIi(0x2df,'MZWt')],'Cookie':liiiiiIl,'J-E-H':iiIilI1,'J-E-C':Il1I1Iil,'Sec-Fetch-Dest':l11l1lIi(0x17a,'eWB!'),'Sec-Fetch-Mode':Ili1lI1i[l11l1lIi(0x1b7,'tJ!l')],'Sec-Fetch-Site':l11l1lIi(0x32d,'Sa0R'),'User-Agent':i1i1IiI,'x-referer-package':l11l1lIi(0x16b,'1d$6'),'x-rp-client':Ili1lI1i[l11l1lIi(0x1dd,'8YWq')]},'params':l111iIi,'data':l1lIi111,'timeout':0x7530};if(IlIIIi1I===Ili1lI1i[l11l1lIi(0x202,'D5Hw')]){if(Ili1lI1i[l11l1lIi(0x14d,'D5Hw')](l11l1lIi(0x2d3,'76gE'),l11l1lIi(0x26f,'f@gc')))delete lI11Ill[l11l1lIi(0x180,'jSGA')],delete lI11Ill[l11l1lIi(0x261,'Uq#T')][Ili1lI1i[l11l1lIi(0x1e5,'D5Hw')]];else{const IlIIi11l=lili11l1[l11l1lIi(0x1ad,'&l(2')]?.[l11l1lIi(0x2fa,'I[(m')]||'';let lIIi1I1I=IlIIi11l;Ili1lI1i[l11l1lIi(0x1c9,'eWB!')](IlIIi11l,Ili1lI1i[l11l1lIi(0x164,'vM2P')])?(lilIlil1[l11l1lIi(0x1a8,'eWB!')](l11i1ll1+l11l1lIi(0x246,'8jh%')),Iii1IiiI[l11l1lIi(0x2f2,'tl5J')](l11l1lIi(0x1ac,'eWB!'))):(IlIIi11l[l11l1lIi(0x25d,'AS!P')]('等级')&&(lIIi1I1I=Ili1lI1i[l11l1lIi(0x175,'r5qA')]),IilIIl1l[l11l1lIi(0x2ff,'XR$q')](''+lI1l1IIi+lIIi1I1I));}}const IIi1l1iI=0x1;let iiiIli1=0x0,lIIIIIiI=null,IIil1l11=![];while(iiiIli1<IIi1l1iI){const ili1iI1i=await common[l11l1lIi(0x310,'31D*')](lI11Ill);if(!ili1iI1i[l11l1lIi(0x183,'^[$]')]){lIIIIIiI=l11l1lIi(0x337,'JP2T')+l1iI1I1l+l11l1lIi(0x15e,'AS!P')+ili1iI1i[l11l1lIi(0x191,'@)dY')],iiiIli1++;continue;}if(!ili1iI1i[l11l1lIi(0x326,'8jh%')]){lIIIIIiI=l11l1lIi(0x1ed,'X6N3')+l1iI1I1l+l11l1lIi(0x2bb,'tLnY'),iiiIli1++;continue;}Ili1lI1i[l11l1lIi(0x263,'nUwX')](l111lI1,l1iI1I1l,ili1iI1i[l11l1lIi(0x292,'vM2P')]),IIil1l11=![];break;}iiiIli1>=IIi1l1iI&&(console[l11l1lIi(0x1fb,'&l(2')](lIIIIIiI),IIil1l11&&($[l11l1lIi(0x22a,'@)dY')]=!![]));}}}async function handleResponse(l1ii1I1,iilI1l11){const li1lI11i=lll1l1Ii,lili111={'zyIWd':function(lI11l1il,llIIIi11){return lI11l1il!==llIIIi11;},'KjFUb':li1lI11i(0x194,'r5qA'),'JlrJJ':function(Il1Iilii,lIi1i1ii){return Il1Iilii===lIi1i1ii;},'fRKkk':li1lI11i(0x1f1,'JP2T'),'MyXma':li1lI11i(0x296,'Uq#T'),'QAZLv':li1lI11i(0x199,'1i(d')};try{switch(l1ii1I1){case lili111[li1lI11i(0x16a,'SkLv')]:if(lili111[li1lI11i(0x294,'4yKq')](iilI1l11[li1lI11i(0x250,'1d$6')],'0')&&iilI1l11[li1lI11i(0x27d,'8YWq')]==='0'&&iilI1l11[li1lI11i(0x182,'r5qA')]){if(lili111[li1lI11i(0x2e9,'3j0N')](li1lI11i(0x225,'p3c3'),li1lI11i(0x24b,'nUwX'))){const iIII11iI=iilI1l11[li1lI11i(0x22c,'[]1p')]?.[li1lI11i(0x2f0,'vM2P')]||[];for(const I1i1i111 of iIII11iI){if(li1lI11i(0x32b,'3j0N')!==li1lI11i(0x2f8,'8YWq')){const {type:ll111111,data:Il1lIlI,actionType:ll1Illl}=I1i1i111;switch(ll111111){case lili111[li1lI11i(0x22d,'8jh%')]:case li1lI11i(0x21f,'f@gc'):break;case li1lI11i(0x26d,'3j0N'):switch(ll1Illl){case 0x3:$[li1lI11i(0x1ea,'31D*')]=Il1lIlI[li1lI11i(0x2d9,'8YWq')],$[li1lI11i(0x1ec,'Cdi!')]=Il1lIlI[li1lI11i(0x336,'@kyU')];break;default:console[li1lI11i(0x13d,'r5qA')](lili111[li1lI11i(0x165,'@rrx')]);break;}break;}}else{const Il1ili1I=ii1iilII(l1lIi);Il1ili1I>0x0&&lili111[li1lI11i(0x242,'p3c3')](Il1ili1I,0x1)&&(iIii1ill=Il1ili1I);}}}else lill11iI[li1lI11i(0x24e,'tJ!l')]=!![];}else console[li1lI11i(0x289,'jn4h')](li1lI11i(0x1f3,'RsdS'));break;}}catch(lIli1iIi){lili111[li1lI11i(0x1a1,'@)dY')]===li1lI11i(0x2ec,'0FcH')?i1I1Iiil[li1lI11i(0x289,'jn4h')](li1lI11i(0x20b,'QrZ7')):console[li1lI11i(0x293,'AS!P')](li1lI11i(0x2ac,'jn4h')+l1ii1I1+li1lI11i(0x25b,'1d$6')+(lIli1iIi[li1lI11i(0x1b3,'SkLv')]||lIli1iIi));}}async function sendRequest(IIiiilIi){const l1il1iI=lll1l1Ii,lIi1Iili={'cpnGs':l1il1iI(0x18e,'X6N3'),'zBOck':l1il1iI(0x1f7,'8jh%'),'clntF':l1il1iI(0x2c8,'f@gc'),'skPlN':l1il1iI(0x2a6,'1i(d'),'whrIh':l1il1iI(0x2f4,'31D*'),'GcVEz':l1il1iI(0x285,'8YWq'),'mqJEE':l1il1iI(0x152,'x%x%'),'mYvea':l1il1iI(0x283,'31D*'),'AdbYN':l1il1iI(0x2ee,'^[$]'),'bdKib':l1il1iI(0x197,'nUwX'),'wOslg':function(i1iil1ii,Il1I1Ii){return i1iil1ii<Il1I1Ii;},'FuhAw':function(ilIII1,lIiIillI){return ilIII1===lIiIillI;},'IpkPD':l1il1iI(0x2cb,'vM2P'),'gdKWW':l1il1iI(0x295,'JP2T'),'FBJGV':l1il1iI(0x23c,'f@gc'),'svsiv':function(IliilIl1,Illil1i){return IliilIl1>=Illil1i;},'AryLR':l1il1iI(0x1df,'&l(2'),'mIiig':l1il1iI(0x153,'jSGA')};if($[l1il1iI(0x14f,'8jh%')]||$[l1il1iI(0x2cc,'jn4h')])return;let lIllI1I1='',lilI1I=null,I1II1iI1=null,iiilii1l=lIi1Iili[l1il1iI(0x29b,'EhBo')],I1ll1l1={};switch(IIiiilIi){case l1il1iI(0x2d8,'31D*'):lIllI1I1=l1il1iI(0x2ad,'X6N3'),I1ll1l1={'pageId':l1il1iI(0x324,'JP2T'),'liveId':''[l1il1iI(0x305,'AS!P')]($[l1il1iI(0x16c,'RsdS')]||'')},I1II1iI1={'functionId':l1il1iI(0x312,'I[(m')},lilI1I=common[l1il1iI(0x2f3,'8YWq')](await common[l1il1iI(0x2e2,'f@gc')](lIi1Iili[l1il1iI(0x265,'[]1p')],I1ll1l1));break;default:console[l1il1iI(0x293,'AS!P')](l1il1iI(0x1d8,'D5Hw')+IIiiilIi);return;}const IililIiI={'url':lIllI1I1,'method':iiilii1l,'headers':{'Accept':l1il1iI(0x1bc,'3j0N'),'Accept-Encoding':lIi1Iili[l1il1iI(0x287,'@)dY')],'Accept-Language':lIi1Iili[l1il1iI(0x212,'3j0N')],'Connection':lIi1Iili[l1il1iI(0x231,'8YWq')],'Content-Type':l1il1iI(0x155,'3j0N'),'J-E-H':$[l1il1iI(0x216,'SkLv')],'J-E-C':$[l1il1iI(0x15b,'8YWq')],'Host':lIi1Iili[l1il1iI(0x222,'D5Hw')],'Origin':lIi1Iili[l1il1iI(0x169,'x%x%')],'Sec-Fetch-Dest':l1il1iI(0x239,'1gvy'),'Sec-Fetch-Mode':l1il1iI(0x2e7,'tLnY'),'Sec-Fetch-Site':lIi1Iili[l1il1iI(0x139,'76gE')],'User-Agent':$['UA'],'Cookie':cookiesArr[0x0]},'params':I1II1iI1,'data':lilI1I,'timeout':0x7530};iiilii1l===l1il1iI(0x2c2,'p3c3')&&(lIi1Iili[l1il1iI(0x220,'76gE')]===l1il1iI(0x20f,'Sa0R')?(delete IililIiI[l1il1iI(0x2ca,'31D*')],delete IililIiI[l1il1iI(0x2d0,'tl5J')][l1il1iI(0x21b,'v!FK')]):(iiII1i1i[l1il1iI(0x299,'8Vqj')](i11liil+l1il1iI(0x1eb,'76gE')),lil1i1II[l1il1iI(0x29e,'^[$]')](l1il1iI(0x178,'QuUW'))));const ll1l1111=0x1;let liiilIII=0x0,i1li11II=null,I1lI11lI=![];while(lIi1Iili[l1il1iI(0x207,'@rrx')](liiilIII,ll1l1111)){if(lIi1Iili[l1il1iI(0x1f0,'QrZ7')](l1il1iI(0x2e0,'3j0N'),lIi1Iili[l1il1iI(0x2e4,']Tkg')])){i1I1lI1I[l1il1iI(0x1a8,'eWB!')](l1il1iI(0x13a,'0FcH')),Iilil1lI[l1il1iI(0x2d5,'tJ!l')]=!![];return;}else{liiilIII>0x0&&await $[l1il1iI(0x2d2,'0FcH')](0x3e8);const llil11ll=await common[l1il1iI(0x1fc,'XR$q')](IililIiI);if(!llil11ll[l1il1iI(0x2b2,'vM2P')]){if(lIi1Iili[l1il1iI(0x173,'AS!P')](lIi1Iili[l1il1iI(0x16d,'tJ!l')],lIi1Iili[l1il1iI(0x2ab,'^[$]')])){I11IiI1[l1il1iI(0x279,'JP2T')](lIi1Iili[l1il1iI(0x1e9,'D5Hw')]);return;}else{i1li11II=l1il1iI(0x28c,'31D*')+IIiiilIi+l1il1iI(0x17e,'eWB!')+llil11ll[l1il1iI(0x329,'1d$6')],liiilIII++;llil11ll[l1il1iI(0x2b0,'X6N3')]&&llil11ll[l1il1iI(0x221,'31D*')]===0x193&&($[l1il1iI(0x32e,'jSGA')]=!![]);continue;}}if(!llil11ll[l1il1iI(0x1a3,'eWB!')]){i1li11II=l1il1iI(0x19d,'3j0N')+IIiiilIi+l1il1iI(0x26e,'^[$]'),liiilIII++;continue;}await handleResponse(IIiiilIi,llil11ll[l1il1iI(0x25e,'1gvy')]),I1lI11lI=![];break;}}lIi1Iili[l1il1iI(0x1b1,'3j0N')](liiilIII,ll1l1111)&&(lIi1Iili[l1il1iI(0x229,'@)dY')]===lIi1Iili[l1il1iI(0x288,'nUwX')]?(console[l1il1iI(0x1a6,'RsdS')](i1li11II),I1lI11lI&&(lIi1Iili[l1il1iI(0x28e,'1i(d')]!==l1il1iI(0x1c3,'EhBo')?(iII1lIl1[l1il1iI(0x2cc,'jn4h')]=!![],Iil1II1l[l1il1iI(0x19f,'RsdS')]&&I11lIiIl[l1il1iI(0x13e,'@)dY')][l1il1iI(0x2bd,'s*fj')](ilil1lli)):($[l1il1iI(0x2ba,'v!FK')]=!![],$[l1il1iI(0x28d,'EhBo')]&&$[l1il1iI(0x333,'jSGA')][l1il1iI(0x1ab,'8YWq')](i1li11II)))):ilI11l1i=0x1);}function lIlIilll(){const llI1111I=(function(){return[...[il,'nJEjeIWsAjwiamgYiQ.ScbomP.OBvES7yewEJhTX==','WRDLW4NcRG','ACkMW4FdGSo2sW','4P2CW7hMNk/NNORORjFMSBpcPa','55UK5Pg86zEXjSkK77YR','oSk8BSofeI/dKCk4WQDtcwjJW5yMutVdKHq','WQZcQCk9gIm','5AsJ5zcy5lQC5Ocx5PoZ6ig96icX6l++5lUJ','W6DYWQHCFG','j13dI8kllW','W7mTW7LPWR4','imopW5tcNZhdLCo3uG','c8oAjmk0mG','W7mtoCorAG','wSomrW','W5lcHcymjmk8','DSkJzIVcTq','hGxcTCkNBa','W6BdHG8','xCk6qMBdRq','C8kHAYJcKW','fcdcHCk/WQhcTanEW5K','56UP5Rgo8jsYKq','tCkEAfZdTK3cLCkRWOS','8j2APWO','WOFcNJRcPCkjWOO','p8kifmo8vG','kCkYkCksoW','WOSNvSk1W78tW7KtW6D5g1SjWQXbamkAWOSs','x8onq8oCW4CFCIa','6iYm5yYi5REy5yUR5l+b5Ok05Asl6lAd','WRi7uSkjW68','WQlcMmounbO2WOjrW7/cSmowB0xdUeVdVmk/W64kvmoq','44oM5REr5yUn5lUy5A645z+m5OUm6i235y+E5RAT5yUG5l6J5Ocy5As76lsn','bSkCsCoL','W4pcOdVdNZJdPb/dMmkG','WQS4W4ddSIe','C8ooEmo7W6y','W7iOW4S','W5BdOSo6oIfOrG','d0FdQmkziW4','WP7cHSkfiSklWR4','W7ayrupdVq','W5b/W7zBBX5IW592WRCHWPFcHmkPiSo1WOldTmkMW5WVpW5YsbbPDSomW7yvWQddRmooW5RdPrxcRaTSWRKuaSkuW4K','yos6T+A1NUwjPvu','x8ktyGVcJq','qSkmWO/cHreXE8kKDSoeWPFcVmk+','zCoBxCkvCa','WOeKrSkgW7GsW7G/','imkIdmkcka','aSkwW6hdK3i','w8kiFHiyWRj6W4ayrgG','4PYLdUAERUIaKoASPEEGKUwNSEEsPCor','WP3cGSkfcq','4PUpW6FOHQVLRyNKUixOV7hOO4lPLQZPMlFMLRRPL4ROR4pNVRZPLkdORAK','5l2Q5OkS5yUg','WQ90WPSmW53cVmkyW5ldTCoIW5iJnsW','ExBdHfzSoq','WO7dGCkkWQyn','gColz2pdQxhcTSkN','W4pcKdWQiG','W5FcMtOaiG','aSk0jG','W5qoW57dScCCuLJcGN7cUZxcVHZdUq','r8oSWQdcIIhdO3XonmkNBCoM','W4Ouma','W4z+WQ12rXq','5Aww5zc75lQZ5OkA5PoG6io66ice6l6j5lQD','W7qoE3ldQG','WP7cHSkFoSkVWPJdTKWtD1KUha7dKG','WRRcJmkFhmkRWPJdPG4Qxv05','v8kdW7rltG','W4vIWQ9vyHf2','cXJcLSkgWOi','W6rxomoEAmkCW77dSSkbmmoxW7hdQCoakqldNq','W7e+zvddJG','cZVcKmk/WRhcTq','FCkGtYRcPq','5P6w556k5OIq5AE254UJ5Og0','6lAg5yYg5PAO5Psb','uMBdM0vp','tmktW4TxwqfNixy','W4ddQmoLkG','55Mu5PgC6zA8aa7VV4i','AmkFCd84','rSkyFtugWRDj','WPRdJ8kKWO8W','WR5AxNK','mmkbuCoAha','5z2e5zYU5RAb5yMU5lM06lwI5lQmWPq','6i6E5yY75RsY5yUB5l6l5Ok55AsF6lAm','W4tcQI3dPf7cR0lcMCoMW6HbW5ZcQCk+WRldO8kHCYXUwa','W610WO1wDa','kmo8fSkDlCk1DLKot2/dOmkhfSkq','wSokvSovW7SF','WOJcOe/dP314Aa','xSkmyaC','kSkaWOddPW','W5i8hSoEDG','W7HxpmowzCkDW6hdVmkacSo4W7hdSSoFjrxdRCo3emogDa','lmomW4FcHZ0','WRfEt2JcNmkgW7hcIWRdQW','W7vDn8ouxSkF','W71Ak8o0Da','aCkvW4q','W7SqAZNcMG','CCoMDa','WPRcKGNcK8k3','W6m3uX0','B2RdO2z8','W41TWRjJiLb1WPDtWPv7WPldNmk0lSk3WPu','tCoPESkrqmoBW77cQe1F','CmkpW45A','56IS5Roh8jMWMq','W57cH8k6iI0','bmolW6/cKa4','WRbXW5pcSI3dMMFcJW','W7iKfSodFIG','b8oOfmk5ca','44g95O2B56wC44o26kYq5ysN6i6S5yYdWP7cLsTiw1e','cmokW5ddLvy','W4PlW5juW4Dwgq','t8o0z8kO','W7VcUSk7kW','WPhcGX0','W7tcUSk4','W6qvcmoOvq','W4NcOcZdPq','xCoZimkFh3JdMZe','hCotW4q','hcNcM8k3FdNdQgNdIKuUEWSilSoAa8oOxqHn','hYRcHCkbWOhcHq','WP3cRKNdV0XWA8kB','W7ROR4ZMSAJLK5xLUkxdHW','WRJORklMSP3LKOpLU4et','omkrhCo+zG','WPddR8oTWP3cQCo3CKu','lCoaW4pcKG','WQNcLmoweJK2WP1mW7/cLmoou1hdSW','5lMR6lgw8lgZSa','WQ91W5VcOHZdGxK','oCk1p8oOqNtcSGy','bCo6dmkgca','W4ddPSo/lG','WRLxrgZdTW','WRDEwwVdKmkaW7G','5P+t552K5OIZ5AAN54MQ5Oks','W5jaomof','5P6w556k5AE75zgHFq','W7aqDNZdGq','W5pdNSomiYm','5l215zkF56Yi57M05lMb6lAs','W47cLd8wk8k2jCoixX7dI3RcOmkVk8k3iJJdRJ0mW6hdJq','WORORlJMSiRLPRhOTkNdQUkES8ow5PwW5zga5BQw5PEd5O6O','W4zae8oeyW','g8oZa8kXWP4','W4jBW5jbW4jqea','WPqnWPeGWPKgt8okF8kHA39yW68','W7KNtXZcMCkGW4PVWQ1EW63cJmket8kUdCoLWPhdNG','4PYCW7VMNBBOGBNMRztNOB7LP5pNKBpdPG','zgnn','oqFcHSk7vG','ymokz8kzBW','WQVcIColjq','WOqLqG','hIpcISkNsY7dVe/dMa','wSo5FCk0','WPSNt8kRW4u','W5LIWRLqyrr0','6lsm5y275PEU5PAu','du/dSmkm','WQdcJ8k6pH7cU8k2dgXTW59M'],...(function(){return[...['AmkKzX/cPq','cSoUcmkYWQy','edVcHCk7WRFdVfu4W5WNob9MuSo4W4NcGCkFd0C','gmkQW7u','W4fYWR5JiXf9WPTdWPW','fSoBW4W','wSkgwr8K','aCoVhmkbdq','aCoKaq','C8k+Cb/cJ1/dHZ/dVSolWP7cLxy7ra','rmkPxbiO','8kgBPmor','amkFW5ddQ8oRp8oK','WQ8yW5ZdRam','WPlcO8kygbW','W5OSW77dOJG','4P6oCEAEN+IbUoASH+EJPowNG+EqO8oj','qdldGY0','WPxdRSoP','WQNcJmkMade','WQC4yCkfW5K','5P+T55+15RAb5yMU54Up5OkY','jSo0cCk5oSkU','nSkYmmoWuMi','f8ovW5S','6lAM5y6M5PAy5PEo','f8k4W6ZdU8oH','CSoRAmoCW7m','WPxcJmkw','W4pcOtVdPx7cVG','lmoYaG','sSkVyGK7','pmk3rCoDhIVdJCkMWQ1qhhv1W6SCvtpdLt7cQKWsWOSo','bSkPmSk2pLu','WO/cICkIlZlcSq','rCoTvSkyxa','WR9vxa','WQuRW5ZdTuJcQSkJqmkpW5BdISo1DmkpcmoMW5S','DNZdHfj5jq','W7a0qKNdLa','bmkuW4ddTmo/pmoKBG','FxldMwfQomosWQxcP8onamoLW6xdK8kb','W6ZcJqldH1O','4PYHWQVMNyZOGjRMROtNOihLPj/NK5pdVq','yhHEd8oeWOxdPIZdRsm0zColfCkhWRnYWRxdP2FdUdHdnIRdGSoyWPScamokg8kWsW','eSk8W6BdRhZcS1m','buhdOW','E3Hlc8ocW4W','W5aaW4O','vYBdLc/dRre6','W7bXcSoWwG','WPDrCNVdUW','W5aaW5NdLdahrwxcPW','W6dcIrNdTfq','bCkqfmkaWOPjjYpcKmkgFCk5kG','W4BdMvFdOmovW5pdR8kMFSoEbcSw','yNldG0vmomorWRq','WPBcLSkflSkIWPFdTq','W5FORj3MSkFLP6tOT4xdHokDHSoG5PEO5zgB5BUC5PsY5OYz','5zYP5zYP5REG5yQ75lId6lAH5lQxWOW','umokwa','n8kTgmkgdq','hJ7cL8kfWRe','c8oscSkpWOq','WRD1W6JcPcm','uLBdVG','fCk6emopyW','W41YWQ9FyrD4WPXMWO17WPldJmoR','tt3dHcNdUHy','4P+AeUADS+EDL+IVGoAYUSkS','pCkba8k6lW','W7PBl8oxDSkBW7JdUSkabSopW6FdI8knEey','wmogrCouW6aEEJZcLCk7s8kVmb/dUCoVW5xdNxvnWPC','hc7cHCkQ','vWxdOGRdMa','aSo+eSkHWOSoFa','qSoTFCkmv8obW6pcVwTzf1/cNrRcLG','WOBcOeC','W4pcNIyQk8kS','WQBcLmodntmRWOu','WQT/W50','hK/dRCkz','W7e5v3hdTG','WPmuW5tdVci','W5DlW4HxW4vt','56Q95Rce8lgXRG','W5PNmcLuWQ/cNtiJ','osZcHCkIWRlcRW5U','W4z4WQ9NAWjOWRTr','WRiIzLtcKq','t8kFW7bJyG','W6/dRmognGi','W7GUW4bkWORdVW','sSkFBbiEWRm','fmkbhSoZDG','W5BcTcqfpW','W5FdSSoPdcT/vW','W7fxlCoHxSkFW6i','5BAh6k2N57+86lwm6l+s6lYe6kgX5B2Q5yIO6lEq5y+w','W4eIqt7cPa','cCkBW5FdUq','n8o2WPVcKmk2fgGmW73dQq8M','WPtcHrFcPG','W5pdJmoB','W6RcNtOdaa','W63dJbXZqSoe','WQ/cP0JdH0e','pvRdVCkzmW','W7PHiq','W5NcRIxdPshcPv3cN8o3W6rS','W5Pypmo5uW','ttddMcldIraSWOm','WRzutq','WQFcN8orncqT','W5TIWR5HDYnLWObCWPD9WRldLSoxBmk/WOldUCo/','aIFdNmkdWQxcQaK6W74zAKa2tCk+WO3dISkstwNcL2JdR37cJ8kzW5HvfdBcQWxdVSo3W6bAj3T1WQHjj8kIWOJcHq','zmklW7nIqq','W50YrxtdRq','WO/cOvy','W65eWQT0Eq','Fmk+yG','W44kW5RdGsCrAexcT3hcQG','5l6e5zcF56+L57Qz5lUI6ls+','W7uZqfJdGg7dMW','WQG1W6O','v1NdQfPo','W4JdQmoS','BmktW4TxtZC','WQRORz7MSkRLK7tLUPpcRa','W7iUW5PBWQVdV8oiWPtdK8obW48aacLUxgBcGbtcTW','WPpdPCorWP3cTCoLCNRdMmoreSo/WRjqW7xdNSo2WPxdUmolW65u','5P+c556V5AwZ5zcRWQu','WPRdRSoGWPlcVCoN','W7bNpG','DhJdPx9Z','hIpcMCkwxc4','W6q7r03dUgVdJ1u','z3HEeSoW','WQJdLCo5WRFcQG','W4VdOZfoDG','WOOjDeJcPCku','W5iOW5HkWORdV8oq','5Bs16k6U57+u6ls16l6+6l2J6kgg5B655yUw6lAH5y+A','cIRcGmk+WQhcTq4','W5tcQ8kxbuZcUL0','W5agW5VdHrqwsexcTxtcUWxcHKpcOSo9','qmoHWQdcHYpdRaLSnmkbz8ofAG','WOdcJ8kMoq','W4jTWR5IyW','WQ7cR8kIp8kP','4PMiAUIhJ+wTSos7HoI+PUIJKEMwUoMyG+AxRUMuH+IUJUE8GUMxGEIVSq','q8kvW5ngyZ18y0/dOsdcSq','WOOat07cOa','pCo1W6VdUu4','W5OZfSo3qW','W4CtDNZdPW','WQSJr8klW6K','espcKmkWEJ3dTM0','WPxcPCkqaYW','sCk3CqxcHq','56Ix5RkF8kAXJW','W4BcOc8','W47cRJZdOq','WQqJu8kpW5iKW7iJW7O','rmoSDSoyW5W','mSkYBSoq','W43dQCoOiZf/v2e','WR/cMvG','W73cP8kTisC','BmkFW5nvCJS','W4NcUb4leW','omkYD8ou','WQtdUCkqWQr3W5WuBYpcLqm'],...(function(){return['w8o5A8kUv8orW4JcU1Hveq','BwjC','t3hdHebl','aCkvW5FdRmoVkSo4vmo/','cGNcGmkbWQO','r8oPFCkVrmopW6G','WQjPhaZcMtxcL1zEkKTAvW','sdZdKa','y8kIW4FdLSoorL8EW4a','8ywBOqu','xCkQW7/dOmoA','44gO5O6F56El44oA6kYZ5yAo6i+n5y+bW744pLPIgq','jCoeW5NcLdddMq','W5i+tgddOG','5z+Q5zYq5RA/5yMf5lMl6lAT5lMZW50','mmk6yG','WPzdW6lcIqS','WO8iya','rmkiEGalWRfl','tEITVoAWPowqQUw5S08','fCoFW5NdMhbSiSk6rmo2WPdcMmk3WQldINtcUtddVrtdNG','5l+D5zgi56+Z57MH5lM06lsa','CSorqCoh','WOdcJ8kWlW','WPuDW6BdKGm','4PI2eUIURUwhUUwUREs6SEw9IEIKKUEzSUEpGowGUownHUMfKUwsUUwhGEI+OoIJQoIgG+ADMa','WOyRsmkp','smkqAeZdM1W','WQP5W5q','kCktWOddVSk/pmoSW68','lmo4c8kQk8k0','hK/dRCkzeHxcMmog','W4JdRSo9kG1/','qCk/yd/cTG','gmk8W6hdJhtcS1G','jmkMDmo0gtK','b8k8W6xdNMFcSgLqeCkAra','W6GMW7xdPr4','W6VdMqexASkIWQiHW6FdQ33cUW','r8oav8kRrG','k8kpcCk/dq','W4hcGtGLi8k7j8ouwqpdUJhcUCoWk8kFoxRdVcyBW77cMxFdLWrjoeRdQwBcRCkv','oCoWW77dL3q','cSooW5NcHYhdN8oMdf/cL8oYWPO','5PY655Y05Rs+5yUh54Mw5OcW','4P+OWQFOHPhMNApOVPtOOzFPGBxLIklKUzVPLzVORO3cHq','5l2Q5OkS5yUg8yUNV++5KW','W6bsWPG','n8k+kmonwxZcVHVcO8kEhmkIW697gSkW','hIpcMq','W5NORBBMS4ZLP4dOT7NcS+kEIXy','nmkwWRBdPSkci8oKW4BcRmk5lKO7xaGsq8oAW6juW7FcHuG','aCoIemkcWQSaB8kHWRJcId1Zu1RdJCozWR48WRaAoG','fYlcIa','amkpW5hdQSoD','nSkWW7ddNNe','DbxdPIBdGq','omkGW4RdKNq','WPNcV0ZdOMW','y8oOAmk0dYldPWxcTCkfbSk1W64','WO5FWPVcLwfmbeVcJvBcQJxcGq','W6FdSb5CzG','W4S7pSotCG','W7VcUSkYygyfgmomW50nW709bmkMymotWO3cT8o3','W5FcT8kvjMNcVW','W4jAW61fW7W','ySkKAYRcJLu','a0RdM8kblWRcKmoVWP7dUZBdKmo6W6jlWPxdIKddTbldMG','W7yPW4tdPr8','h8kpW43dNCoKpa','WOddGmk4WQmC','WR/dTmoMWRdcQW','W5X3gG','WO4VAMpcRq','zSkSW4FdHSoJvW','W7iOW5HkWORdV8oqWQRdUW','56IK5RoM8ywaOG','pmk3rCoDhIVdJCkMWQ1qhhv1W6SCsZxdJXhcPvK','zCkxW41gFW','W7DPWOFcVvlcSSoZCmk4W43dRCoJAq','W4RcGSkiaCkMWQxdUG','W7OPW4BdMrW','ioISJEAZV+wKG+I0O3pINPrU','pmk0oW','tSoTESk9','W4ddLCocuCo9W47cPLi6C2KxeW','WOCgC0W','W5NcUIVdO2NcUvW','WPisyL/cRSkZW6vHW6aUW7JcVXffWOBcSWxdHN8','Fmk3v0FdMW','f8otW4RdMwTT','qCkzW4LBCdP8nW','WOqJu8kpW4qs','WPhcLCk6dXxcSq','6lEm5yY45PEa5PEd','WQ9KW47cTGRcIsxdHCoZWRidtSkwn8oYhaWxDSo2whBcTbBcTsaACmkjW55GWRNdG8kuWOCmDcGbkqm/kZZcRCo4cb58oJVdGCk8WPFdGLKsx2VdH8orW5aMuCk0cG','aCkibmolrq','W6e/wvJdNMBdTKLybW','4PQOloIVNEweT+wSREs7TUw8JoIMGUEyIoEpVowJNUwoK+MfQEwqTEwfOoI8H+IGKoIhJoAEPa','c8oIhG','bmo5f8kgla','tmkFEXWy','W43cQIBdLu0','W4iBd8o/uG','WQieC0tcOCkjW6vQ','WO4+W4hdSqhdUmk+','W4SVW6TMWOm','gCoeeSkQca','W7lcNmkceu4','WOSxW6FdKWa','W7Ttkq','W783W5XsWOBdRSoiWPFdTSobW5vBhxzGFsdcNupdQSoUWObXWRSHu8ooWPD5CthdKmoo','W4z4WRW','8lEzMMG','WQdcKmopna','W5BcU8kqmehcVf8','W77dPIjSrq','EmkSuZ8C','qmkEvJS','zmkBW4Lt','WRVdVCktWQyUW5S','WOqcC2tcUCkmW7H9W6WdW7dcHqPVWORcRq','W5FcSCke','hCkTW6BdJ2BdRHiwbmkgsmkjF8o4W4f3gmo4qfpdGCoCb8koW5vchmkKWO3cMCk7WP5TWR8','BmkvW5O','W4LrW4e','WQHXW6lcGGa','W4X+WQm','56M65RoU8lccMG','W7OMW5HF','jCooW5a','W5ekW57dKZqswq','W63cLX7dIwe','W5pcHZSGpa','4PQkWQZOH6tLRyBKUAZOVBJOO4hPLl3PMR7ML4ZPLjZORQJNVP3PLAxORjy','W600c8o1CsVdSW','gmk7CCo8nG','gCo5e8kc','h8kFW5tdUCo4pmoxFmo3W4RdHW','W7rjW6rJW5K','mCk4kmoTqxNcOWZcK8kVhW','WQPowxa','8yk8HKxLHQtORyhdHa','y8kOqq','WORdNMi','W6v7ja9KWPNcLW','W5CDk8orDW','W4bqW5a','sN/dH8o+W7ddV0jWW7mCnhHA','5Rsr5yIK5Awy5zcD77Y/','EmoKtmkTtW','amk2W7RdR8oP','ywjje8ocW5VcRha','WOqcC2FcKSkJ','yNldG0u','W75RjYHUWO/cGq','t8kosh/dVq','vmkzW4H3AW','gSkWWORdOSkk','b8kSW7ZdUNVcSa','gCoCo0bEW6myWP5uewZcINyRkCkWhCkupYiWC8kYW5OzimoyW6hdQ3VcLCk3zSkBtba','mmoOfSkL','WPlcOe3dGea','W75xomowuSkkW78','WOtcQKxdR0P8A8krWRuVyCkxW5SkdmoizXTjWQuG','W7qJW7nsWOBdU8omWQ/dSmoAW48rfYjiyZpdGW','5Rs75yMs5AER5zoZ77YC','mmkxWOZdRSk5mmoSW6xcTCkOguaMtJ4EzmoaW6ndW7K','C8o8hmkKn8kpCa','44gz6lAh5y2a'];}())];}())];}());lIlIilll=function(){return llI1111I;};return lIlIilll();};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)}