-
Notifications
You must be signed in to change notification settings - Fork 488
/
jd_fansDraw.js
21 lines (15 loc) · 37.7 KB
/
jd_fansDraw.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
粉丝福利红包
活动链接:https://wqs.jd.com/sns/202109/22/fansactiveall/index.html?qwer=<活动id>
环境变量:jd_fansDraw_activityUrl // 活动链接
jd_fansDraw_Notify // 是否推送通知(true/false),默认不推送
注:活动非百分百中奖,请勿重复运行
7 7 7 7 * jd_fansDraw.js
*/
const $ = new Env('粉丝福利红包')
const jdCookie = require('./jdCookie')
const common = require('./function/jdCommon')
const notify = require('./function/sendJDNotify')
var version_='jsjiami.com.v7';const iIlliIIl=Il11I1i1;(function(iii1l1l1,I1lilllI,iIlil1li,llii1iI,li11lli,I11I111I,iIIiil1i){return iii1l1l1=iii1l1l1>>0x1,I11I111I='hs',iIIiil1i='hs',function(iI11illi,i1l1ilI,i1iiI1ii,i1i1ii11,IilIlI1){const I11i11Ii=Il11I1i1;i1i1ii11='tfi',I11I111I=i1i1ii11+I11I111I,IilIlI1='up',iIIiil1i+=IilIlI1,I11I111I=i1iiI1ii(I11I111I),iIIiil1i=i1iiI1ii(iIIiil1i),i1iiI1ii=0x0;const l11iII1=iI11illi();while(!![]&&--llii1iI+i1l1ilI){try{i1i1ii11=parseInt(I11i11Ii(0x2a1,'0%QM'))/0x1*(parseInt(I11i11Ii(0x2c4,'f[bz'))/0x2)+parseInt(I11i11Ii(0x291,'F%1n'))/0x3*(parseInt(I11i11Ii(0x2b8,'F%1n'))/0x4)+-parseInt(I11i11Ii(0x245,'(Y1*'))/0x5+-parseInt(I11i11Ii(0x293,'0tfd'))/0x6+-parseInt(I11i11Ii(0x1e2,'@x^3'))/0x7+-parseInt(I11i11Ii(0x2a6,'F%1n'))/0x8*(parseInt(I11i11Ii(0x26e,'@x^3'))/0x9)+parseInt(I11i11Ii(0x286,'f[bz'))/0xa*(parseInt(I11i11Ii(0x277,'p^yu'))/0xb);}catch(I111ilii){i1i1ii11=i1iiI1ii;}finally{IilIlI1=l11iII1[I11I111I]();if(iii1l1l1<=llii1iI)i1iiI1ii?li11lli?i1i1ii11=IilIlI1:li11lli=IilIlI1:i1iiI1ii=IilIlI1;else{if(i1iiI1ii==li11lli['replace'](/[QdONtYqBlSDJHPnKe=]/g,'')){if(i1i1ii11===i1l1ilI){l11iII1['un'+I11I111I](IilIlI1);break;}l11iII1[iIIiil1i](IilIlI1);}}}}}(iIlil1li,I1lilllI,function(iI1llii,IIIII1i,II1iIII,i1l1Iii,II11IlIl,llIIIii1,iliI111l){return IIIII1i='\x73\x70\x6c\x69\x74',iI1llii=arguments[0x0],iI1llii=iI1llii[IIIII1i](''),II1iIII=`\x72\x65\x76\x65\x72\x73\x65`,iI1llii=iI1llii[II1iIII]('\x76'),i1l1Iii=`\x6a\x6f\x69\x6e`,(0x13d639,iI1llii[i1l1Iii](''));});}(0x178,0xa9c18,lI1Ill1,0xbe),lI1Ill1)&&(version_=lI1Ill1);function Il11I1i1(_0x1080fc,_0xfc7b3a){const _0x4d3f3c=lI1Ill1();return Il11I1i1=function(_0x326bb4,_0x49a075){_0x326bb4=_0x326bb4-0x161;let _0x1a2182=_0x4d3f3c[_0x326bb4];if(Il11I1i1['zxlRdV']===undefined){var _0x4201ce=function(_0x30f833){const _0x3a861f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x7ac962='',_0x544932='';for(let _0x7ec41=0x0,_0x2ac998,_0x58310c,_0x3b8044=0x0;_0x58310c=_0x30f833['charAt'](_0x3b8044++);~_0x58310c&&(_0x2ac998=_0x7ec41%0x4?_0x2ac998*0x40+_0x58310c:_0x58310c,_0x7ec41++%0x4)?_0x7ac962+=String['fromCharCode'](0xff&_0x2ac998>>(-0x2*_0x7ec41&0x6)):0x0){_0x58310c=_0x3a861f['indexOf'](_0x58310c);}for(let _0x56ce60=0x0,_0x481ad2=_0x7ac962['length'];_0x56ce60<_0x481ad2;_0x56ce60++){_0x544932+='%'+('00'+_0x7ac962['charCodeAt'](_0x56ce60)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x544932);};const _0x25cdd0=function(_0x310d80,_0xa74bc4){let _0x32b575=[],_0x547acc=0x0,_0x3256b4,_0xac5894='';_0x310d80=_0x4201ce(_0x310d80);let _0x4c7e8a;for(_0x4c7e8a=0x0;_0x4c7e8a<0x100;_0x4c7e8a++){_0x32b575[_0x4c7e8a]=_0x4c7e8a;}for(_0x4c7e8a=0x0;_0x4c7e8a<0x100;_0x4c7e8a++){_0x547acc=(_0x547acc+_0x32b575[_0x4c7e8a]+_0xa74bc4['charCodeAt'](_0x4c7e8a%_0xa74bc4['length']))%0x100,_0x3256b4=_0x32b575[_0x4c7e8a],_0x32b575[_0x4c7e8a]=_0x32b575[_0x547acc],_0x32b575[_0x547acc]=_0x3256b4;}_0x4c7e8a=0x0,_0x547acc=0x0;for(let _0x3a6654=0x0;_0x3a6654<_0x310d80['length'];_0x3a6654++){_0x4c7e8a=(_0x4c7e8a+0x1)%0x100,_0x547acc=(_0x547acc+_0x32b575[_0x4c7e8a])%0x100,_0x3256b4=_0x32b575[_0x4c7e8a],_0x32b575[_0x4c7e8a]=_0x32b575[_0x547acc],_0x32b575[_0x547acc]=_0x3256b4,_0xac5894+=String['fromCharCode'](_0x310d80['charCodeAt'](_0x3a6654)^_0x32b575[(_0x32b575[_0x4c7e8a]+_0x32b575[_0x547acc])%0x100]);}return _0xac5894;};Il11I1i1['EEdRdA']=_0x25cdd0,_0x1080fc=arguments,Il11I1i1['zxlRdV']=!![];}const _0x36a4aa=_0x4d3f3c[0x0],_0xbbd137=_0x326bb4+_0x36a4aa,_0x46aa60=_0x1080fc[_0xbbd137];return!_0x46aa60?(Il11I1i1['spmZVt']===undefined&&(Il11I1i1['spmZVt']=!![]),_0x1a2182=Il11I1i1['EEdRdA'](_0x1a2182,_0x49a075),_0x1080fc[_0xbbd137]=_0x1a2182):_0x1a2182=_0x46aa60,_0x1a2182;},Il11I1i1(_0x1080fc,_0xfc7b3a);}const activityUrl=process[iIlliIIl(0x2b0,'0%QM')][iIlliIIl(0x2ab,'(8]2')]||'',isNotify=process[iIlliIIl(0x2bb,'0tfd')][iIlliIIl(0x229,'CK$L')]===iIlliIIl(0x2b4,'F%1n'),appCode=iIlliIIl(0x241,'N[D]');let cookie='';function lI1Ill1(){const lIl11lI=(function(){return[...[version_,'HOQjtqsQPjelitSalmYNiD.KPcdHoBdlmeH.nJv7==','dCk2W5tcJsK','rSklx8krxa','W4y9W4xdJa5Yg8kol3HNo1hcHdyeWOu','WObbWQhdJW','fuddOgXe','WPJcTsiByq','WQJcJ1nngLFcVG','W7RdLdzYW54','oSk/bmoSDCoF','cmoFlSoJEa','W4tcIstcVmkY','EGuNWRxdGG','W48wW7O','W4fTWQ8','WQjlsCkQdmkRjG','nGBcNLpcUmkMWRVcOmo+hCkEW4O5WQO','W47cNtdcVmkY','aZxdTJdcRW','emkLW4NcLcq','W7JdLSofFsvcWO4','xSoYxMtdN1O','i8ofaCoNzq','W4pdT8opauy','W7CVW4vXDW','doodRUA2I+wlIUwMKEwrU+odGW','WR/cGG19nrZcOCofW642iSoRWRtdHujAkCksWRq','WRzIbrdcJCkzaG','xcTB','nmk1gCo5FCoFWPq','WQX/xSkZna','kHX3ofi','WOXbWQ/dGsNdV8oF','WOr+d8oOWRS','W5qiW7vbyq','WOXofmkQW6i','laldVIVcLW','dKNdPxjZ','4PMzoEIUI+wgIUwSI+s7R+w9UEILNUEzSUEpIowJKUwnSoMgU+wtTUwgK+I8REIJUUIhLUADRG','W6OlW4LGFq','bIRcJhJcRW','WObpW53cTSoEBCoC','W6ldGYZcTCoQ','6lA15y2q5PAr5PwD','rmkyz8kSaCo/oUw9OEwNK+ocQos7HUs5S+I3S+wpVa','W5mwW53dKuK','W7TFz8kxWQ/cLG','WO5CW7BcRCoA','4PUIeoITUUwHQ+wgP+AHSEw8QoASTEEGJEEAMoMsMUAoMa','WPhdS8kLW6OT','W4z2oSk3WRVdVwW','5lQS5lMF5P2g5yM55zU96lYd5zU556M45PsX5O+F','W5tdSdLCW4S','WRrwW5VcRCoU','WQldVH3dSHRdTa','4PIbz+ITM+wJL+wgU+AHRUw9SoAUIoEGP+EAKowpNUMgGa','tmo9WOZdGW/dJSoqrCo9uq','WRzzhGNcPCkjkg3cVuW','W5xdLSo4jxG','W5xdG8ovEJu','qSket8kxta','CWCEWOZdHa','fJ9Nd3C','u8knW5uqWONdM8k/ga','fSkoW5/cPJK','WP0wy8oXmq','umorWRG','WObfW5NcO8kHA8oBkeW','b8kfW7xcGHq','WODmxSkOpW','WQPgraS1W5NdKa','WQnbxq','WRS0xmobma','W4u+W4NdVwC','W6xdGCoFDce','bJX6','ymozW7PIgW','W7LGWOZdVuu','W7ZdNuVcUh4','WOFcQG0ftW','vmkOW50KWOK','y8omW7jkoG','W43dMmozbv8','WQfbf8k6aSk+ma','dCkLW4/cHcK','W40wW6O','jSogoCo2wmoVp05VW4LebCkXjCkTWOtdHSo6F8kUkCokWPT8tSkhWQBdSu50W6ldV8o9WR3cJSkvE8ouw2e','W6ZdRmoUW7ddVW','W7j7oSkcWQW','r8kfta','bmkvW4NcPXO','WReHFCofnW','5BsR5OQq6l+Q','W6xdOmoIW6pdPI3cKW','W5SaW4ddRxq','W4FdNSoofxe','WObxW6y','5RsB5yQE5As35zkt77+7','gG3cQH3cSLVdNSoSWQtcS8k8FdvpWPtdTgtcJX0','WP94eSkXW7ddLSomWOdcKHuWW58','uCo8xfFdMG','W79eDmkIWQ7dNSkLWOS9oSobt8oVW4jpWQamaCk0','cLuW','WPBdQ8kWW6yV','WQuenSoHW6xdK8oLW60TaSoEkG','4P65WQROT6lLJBlMLQFML7S','DSkFW4qkWQNdM8k/ga','kCk/wCk6cq','WR17W7tcVCo2','gJ3dGsRcUG','iCkHwq','sInrWQ0m','CCo3WPP0CG','tmolWQX5','ddPL','8lgqUctNQOxMSli','W7/dIby','A8kBW4mrWQBdNCk3','sKRcRq','wcnaWRuSq1W','WOdcUsNcK8o7W7Sfua','gGldOJ3cTW','WOdcOLDYoa','EM0wb8o/','W4JdNM/cUL8','lmkGdSoRAmoDWRjur8o3W4H7qW','W5ZdSmoOaLu','WOySASoZW5/cSdRcGmkJdKaTlq','WOtdG8kMW6id','FSkztSkaESkDWPKd','WP5bW4FcTCoTF8ox','W4a0W49JtG','hSk2W5JcLJJdVq'],...(function(){return[...['W5VdMSosawaH','EHy9WPtdSa','W7RdIxZcIfC','DNKhjmogsMa','W7xcNdhcHCk2Bcu4E8o8W7JcJaddQSk2WPnbwmozq8oZWPVdVH4sDSktW5VcLCkvWO7cNYNdUCoDW6tdRLpcO2lcHJq','ufOonCkiW4DBW5xcKMOagqBdNuu','W5LYna','DCkvW5KsWPxdJ8k8','WP/dHmkaW68a','W47cTXNcISk2','tSk/W58MWRe','ymo5W6zBiH/dH38','W5H8iW','k8kVumkammoUewFdTfhdVYu','BcWS','W5pJGl3MTjBLI5pLNzFLN6ZJGQ8','nqT/W7pdPW','F8ofW7K','acxcGuBcSq','W6tdHSotFd16WOOioWldOqVdKmo4m8kOWPfmz8oPW5a','W4tdLmovfKy8WRS','W6/cJmkkWQqG','WQLMcW','W7ZcIZhcNmkZp35UqSo0','W7qYW4Lswq','WOLdW5hcPCoh','r8ooW4LToW','W7Lzy8k5WPpcHCoNW4e','W6WoW6NdMu8','W5JcIYH3tW','W7JcQGy','WRdcMKrFd1xcMmocWQ0kjSoRWRm','WPJdR8k3W7yMW5tdIW','FmkArSkEtG','FtTLWOqW','8joWTrNNQzVMSRK','xmoKW6Dmfa','irhcG2RcSG','pqZcJvxcPCk7','WQLmxWGc','bWv6lhi','mr53mum','WObJW6FcTSoN','v1CMhSki','nCk/dCopBSok','WP9mWQhdPty','W7RcO8kHWOddJa','WQ0eCmoyla','WPtcMxnveG','W5tdI8oTwZNcQSkvWOuTsYVcMCk8ctxdI2NcRh/dMW','WQtcU8kYWQBcHwVcQCotkCkiWOvz','W5NdQSopmvu','W7FdGmokDJ8','lwSpW6tcSq','W7ZdQbZdSGJcOmooWQhdSmkO','6AcX5y2P5OQS5yU5','W7XCmmkGWOi','W556sCkZWQO','eqzuy8osWPK/W4ZdUhOlDG','nJP/W6NdUeD7W7pdMSkq','8lIDOwu','ahCXg+ISLUAZQ+wLHoI2NE++SoIVT+AIPoAFKUE8ToI1NEMhPEIVOa','jKhdQKLM','WR7cS0pcOmoYWRW0WQDpW7BdU8o5B8kDW50','W5ldUrlcK8ot','W4KDW4j1vxa/WQfUWR4sBmkGA1Kgkmkz','W63cK8kdWOCE','WOnQaWRcPq','vmoPW7DagHFdNMpcG8k5ja','WPxcJLL4aq','WOnfW4BcTCoP','WO8QzSoLdG','W7VdRSo4W6ddLt/cMa','WROJW5FdRgnGretdOG','W6T7WQhdHeW','W5VdVKdcL1W','W73dNCo0fLa','vmoWW7f4ga','6lwg5y6s5PwN5Psw','r0imomks','W77cTHXFyq','W6xdKmoDsXa','W5hcQ8kXWPBdVKxdMW','kmoBnq','W7tdGGvyW73dG2lcSbKp','W5xdTxFcJeFcO2u','W4ddI8oLvGm','C8o6qmkGnSksW7S','w8kyqSkiuq','WOPbW7hdVCkAW6VcOxukxG','W5NdOaC','WR9Cu8kJca','W4tdGHjfW5K','W68ygKTuWP7cJG8OgCkpWRW3','imoBlSoTzCk0Fqq','FCo0CvpdLW','W7xcI8kAWQZdUW','xSoYxG','gs/dRIJcJq','h8kLW57cNaNdTSoY','bWddQqVcVq','As0VWR3dRq','W5myW69GuuS+WOK','WP1QW5hcRmol','W5pdKmosaW','WRxcHNf9cG','W57dJmoqcxmGWRS','rSoAW7fafHVdRN/cPCkO','vConWRn+Emk3WQi','DaxcUJanFXCvc0Orrmo1','WRpcNdGY','5lU95lM/5P+N5yQX5zQ/6lYD5zIo56QZ5PER5OYL','WQ3cJZWTrW','WQyenmoHW63dKSoTW60ilmoReq','kSolkmohBG','WObhCSkRfW','Bh4Ig8kT','W6pcHdBcUCkx','svGcpSkuW40qW4S','r8kprCkvqmku','8lU8RLhPOPpLJy7MIQdLIO4','W4JcG8kxWQtdJa','fINdSJ/cMW','WOhcICojEGJcHmkbWPi','W4BdMmocW53dLG','W77cSaXKxW','W5BdKmo0','W6bUnSk1WQFdQw/cRW','mSk1d8o6mCozWP1sx8oM','AIzAWPGt','W6ymW57dV3u','W6SDW4Lera','W6NcObZcQmkGWQ51','W6/dJWFdVaG'],...(function(){return['WOqPz8o0W5NcVMxcG8kIhNyF','W5hdMSo4rrdcOSkcWOGrtYi','W7beBCk4WQ4','d8oyimomsq','WOjpWQVdRX7dOW','lmorWPO','xSopW7LVaa','gSonWRX0CCk7WRPIgCo+ogpcLJRcO3mFDvxdI8kRW5JcTJJdG34aWRxcRSkSx8kLndpcKaW','W5FdNmo4','WQZdKxtdGCkgaeXbw8oj','tfKg','W5BdV8oFvq0','qmkpuSkb','WRXfu8kPp8k5lq','DSkmW5KyWQi','mSkhjSoRAG','WPv2gW','W71ip8k+WQ8','W7hdGCoxErTeWOGFjH3dSHRdGCoWlSk3WOXFDmoI','44gb5O6Z56Eq44cb6kYG5yAb6i2N5yYFW5GKWPddJsxcQG','W5VdSCo1DGS','WPnphqpcIq','W64xvSoHgfLsqw/dRKFcNdj9WOZdVX8','sY1pWRWV','WOtcV1xdGCkSWP0FASoLaCoZeW','W4VcR8kfWQNdTG','W5BdI8oJqHlcJSkyWPu','fgFdV0zT','CYGIWQJdH8kIsq','5RAd5yI45ywH5yYC77Y8','W7ddOSo5W6ddGa','jfNdTq','WQ5ntSkWg8kLn1fmW4e','WP9LWQldVYe','W7NcKsdcTmka','WQFcH8kapxWsWOqIkcldUYu','4P+Tz+I2IUwnI+AxGUAuMG','WQigmCoHW6/dL8k+W6CTgCobemoa','rHBdPdVcKHldKSoLW6xdHSoVncqvWOBcOJhdJ0dcMb9J','tmoFWQ1IEG','W6tdHSotFd16WP8oiHVdTG3dKmo0kmk7WPfqymoYW44','qHTBWRyc','uSoFWRj0','hLCwW4JcKq','bJXUnv56','W7fzz8k+WOG','amk8WRiAxK3cNLNcSCkzo8kloa','WRJcHtWJ','W6FdLIVcGCoy','WOW3ASoElW','pSk1hSoFBSouWQfAw8oIW4bWq8kLFa','W4FcUSo9WRb2WOddUSokn8kSbmoU','W7NcRadcTCk1WRq','W6ddTWn8W6ldLvxcTa0j','uIntWRuG','WOpdOSksW64b','WQBcGSkezqD0WOCpiq','WR9FqHutW6NdKcG','W7dcJtBcHSkKmw8','bfmtW6BcTG','p8oagCoOwG','W7FdRZFdVr/cP8ojWPZdI8kTW4ddUSo3r3D8fmkIh8k/WRFdQSk+','W4WMW5JdN0O','ySoDW7T6','BSkAW7SdWOO','esbNm0jxbmkRWQulW6JcOCkZW549c3ZdPqdcN0S','WPddPmkY','WPz5WRtdGGC','duFdR1rC','WPJcIJC/tG','W6hdGCodAW','WRTJlmkrW7y','W7VdUmoS','W43dHWRcHSok','WQdcHCo/BsbZWRSL','WQHuu8kPqCoSj01JW4NdQmoIWR3dG8oQrJm','gIJdTbdcLa','W7jEDG','W7hdKmovnwC','WORcG2Hmaq','W57dUxW','WP5uAYe+','W5BdNmoid2iGWQhdTHqy','W6ZcNsdcH8k8cwT0F8o5W6hcJH3dOCo1WO4aqmoCh8oP','cmo8kSoPCq','W6ZcPHZcVCkPWQX4','WOtcVYxcPSoXW6iIFq','k8oZamooEa','eIFcG3FcTq','W7CcW4BdRwG','5lQQ5lUI5P695yUd5zQV6l2U5zIm56Ih5PEH5O6E','W6hdSwxcTLe','xu4SiSor','eHpcJNlcTa','eMxdVev7','tCkYsmkCra','6AoM5y6d5AsZ6lwK','pqZcJq','zmoBWRbIe2JdSWhdMG','W7FcQGzKqG','W7GZW7VdKNC','WRr9W4hcK8o5','WPVdHSkWW4Go','5y+A6ig35P6P5OQu5lMb','WQLSaGFcQ8ke','W63dUqhdOrS','e8kTW67cMbG','WQzMaHtcUSkcga','WPhcVIyNBG','WQ0XrmoDmG','W5eFW4FdJ3q','tsnKWPia','5lIn5lMB5P6H5yID5zMk6l6g5zQH56Qr5Ps55O26','W7RcSdlcPSkG','W61RWOtdQeO','W7LMWRRdT0LF','wSoxWQC','W5dcOCkL','WQxcUSkYWQFcGMddHCoxbmkmWRLHgG','WPpdO8k8','W5FdLCoCtG0','WOBcPuLMeW','5BEs57U55y6J5lMC6lYM5lIVcW','D3mt','WQnadSocWRa4W7hcU8oBjSklWQldJa','ySkRsmkvxW','WOTDW7u','WRpcI0D/cq','DCkoW5WlWRm','EmopW7T4wIFdVaFdGCo3','zXecWPFdVG'];}())];}())];}());lI1Ill1=function(){return lIl11lI;};return lI1Ill1();};const cookiesArr=Object[iIlliIIl(0x27a,'na0#')](jdCookie)[iIlliIIl(0x1f4,'@x^3')](i1llIlI=>jdCookie[i1llIlI])[iIlliIIl(0x29a,'6FuE')](l1iiIIl1=>l1iiIIl1);!cookiesArr[0x0]&&($[iIlliIIl(0x2b6,'uN9u')]($[iIlliIIl(0x167,'X48B')],iIlliIIl(0x281,'kmv^')),process[iIlliIIl(0x29d,'yKZa')](0x1));!(async()=>{const I1lll111=iIlliIIl,l11lIIiI={'TVXbC':function(iIliiiIi,iili1i1){return iIliiiIi===iili1i1;},'cPqnS':I1lll111(0x262,'XaSE'),'hapkI':I1lll111(0x212,']mNe'),'ezYVS':I1lll111(0x189,'wdh9'),'zFlmW':I1lll111(0x193,'hGa1'),'IrTsI':I1lll111(0x2ea,'bIp&'),'Cpdbc':I1lll111(0x2ad,'7JA%'),'kHyZm':I1lll111(0x19a,'OD]L'),'GZopo':function(i11iil1i,liI1iIli){return i11iil1i+liI1iIli;},'hdKaM':I1lll111(0x28b,'EB)T'),'FoiSs':function(iiIII11I,iIi1IiII){return iiIII11I<iIi1IiII;},'mwLaN':I1lll111(0x227,'vQMx'),'kJbQu':function(iIl1IilI){return iIl1IilI();},'sqCww':function(IilliII,Iiii1i){return IilliII+Iiii1i;},'GYuUu':function(i1iI11lI,i1iilI11){return i1iI11lI(i1iilI11);},'HAoDv':I1lll111(0x2e1,'qCGQ')};if(!activityUrl){if(l11lIIiI[I1lll111(0x17b,'CK$L')](l11lIIiI[I1lll111(0x175,'XaSE')],l11lIIiI[I1lll111(0x2a4,'O7q&')]))IiiiiIIl[I1lll111(0x1f9,'7JA%')](I1lll111(0x2c8,'vkqk')),ilIiiill[I1lll111(0x18c,']mNe')]=!![];else{console[I1lll111(0x1fe,'M%$U')](l11lIIiI[I1lll111(0x19e,'M8bD')]);return;}}const IIlIiiiI=common[I1lll111(0x24e,'CK$L')](activityUrl);if(!IIlIiiiI){console[I1lll111(0x170,'CK$L')](l11lIIiI[I1lll111(0x16f,'oUhe')]);return;}$[I1lll111(0x22c,'iIVN')]=activityUrl;const Il1Il11I=IIlIiiiI[I1lll111(0x1cd,'vkqk')];if(!Il1Il11I[I1lll111(0x25e,'P(4O')](l11lIIiI[I1lll111(0x18a,'CK$L')])){$[I1lll111(0x21e,'(8]2')]=common[I1lll111(0x2a0,'XQNt')](activityUrl,l11lIIiI[I1lll111(0x2cb,'kmv^')]);if(!$[I1lll111(0x28e,'d5qF')]){console[I1lll111(0x27e,'wdh9')](l11lIIiI[I1lll111(0x282,'M8bD')]);return;}}notify[I1lll111(0x16c,'XQNt')]({'title':$[I1lll111(0x298,'MX2x')]}),console[I1lll111(0x1c9,'*^Kc')](l11lIIiI[I1lll111(0x235,'7JA%')](l11lIIiI[I1lll111(0x2ae,'vkqk')],activityUrl));for(let lIlI1lil=0x0;l11lIIiI[I1lll111(0x2bc,'L!#u')](lIlI1lil,cookiesArr[I1lll111(0x1e8,'L!#u')]);lIlI1lil++){const I11I11il=l11lIIiI[I1lll111(0x179,'Rpo!')][I1lll111(0x161,'vkqk')]('|');let IlillliI=0x0;while(!![]){switch(I11I11il[IlillliI++]){case'0':$[I1lll111(0x246,'Rpo!')]='';continue;case'1':cookie=cookiesArr[lIlI1lil];continue;case'2':console[I1lll111(0x27e,'wdh9')](I1lll111(0x18f,'Rpo!')+$[I1lll111(0x24d,'oUhe')]+'】'+($[I1lll111(0x203,'0tfd')]||$[I1lll111(0x1a2,'vkqk')])+I1lll111(0x23f,'XQNt'));continue;case'3':await l11lIIiI[I1lll111(0x1a3,'EbHn')](Main);continue;case'4':$[I1lll111(0x22a,'wVZ)')]=l11lIIiI[I1lll111(0x265,'*A!3')](lIlI1lil,0x1);continue;case'5':$['UA']=common[I1lll111(0x24c,'XaSE')]($[I1lll111(0x267,'@x^3')]);continue;case'6':$[I1lll111(0x2a8,'p^yu')]=notify[I1lll111(0x1e7,'EbHn')]($[I1lll111(0x192,'N[D]')],$[I1lll111(0x1e4,'na0#')]);continue;case'7':$[I1lll111(0x1f3,'iIVN')]=l11lIIiI[I1lll111(0x2d3,']mNe')](decodeURIComponent,common[I1lll111(0x173,'kmv^')](cookie,l11lIIiI[I1lll111(0x1f2,'vkqk')]));continue;}break;}}isNotify&¬ify[I1lll111(0x23c,'XUwI')]()&&(notify[I1lll111(0x1e0,'XQNt')](l11lIIiI[I1lll111(0x22f,'gHHm')](notify[I1lll111(0x2d9,'M%$U')],I1lll111(0x1f7,'(Y1*')+$[I1lll111(0x26f,'M8bD')])),await notify[I1lll111(0x1d4,'MX2x')]());})()[iIlliIIl(0x1ca,'0%QM')](IlIIi1li=>$[iIlliIIl(0x272,'X48B')](IlIIi1li))[iIlliIIl(0x2c3,'vQMx')](()=>$[iIlliIIl(0x250,'L!#u')]());async function Main(){const i1iII11i=iIlliIIl,IIIlllI1={'waGLi':function(li1liI1i,IIIIIiI1){return li1liI1i(IIIIIiI1);},'yJivq':function(liIlli1i){return liIlli1i();},'YaaIw':function(I11iI1II,liiIll1I){return I11iI1II===liiIll1I;},'xYxhk':i1iII11i(0x1e9,'oUhe'),'LHCIL':function(illIlili,I1lI1ili){return illIlili!==I1lI1ili;},'Ewbhl':i1iII11i(0x1e1,'L!#u'),'iKDeR':i1iII11i(0x1f0,'0%QM'),'vagAr':i1iII11i(0x296,'F%1n'),'swSLI':function(IllIl1il,i1iI11){return IllIl1il(i1iI11);},'VWrFS':i1iII11i(0x2c1,'p^yu'),'RYKqG':i1iII11i(0x219,'M8bD'),'Lgyuk':function(iIill11,ilIl11iI){return iIill11(ilIl11iI);},'tMUAS':i1iII11i(0x1c6,'wdh9')};$[i1iII11i(0x195,'@x^3')]=![],await IIIlllI1[i1iII11i(0x24a,'XaSE')](getLoginStatus);if($[i1iII11i(0x1a9,'(Y1*')])return;if($[i1iII11i(0x1ff,'p^yu')]){if(IIIlllI1[i1iII11i(0x16e,'p^yu')](IIIlllI1[i1iII11i(0x297,'O7q&')],IIIlllI1[i1iII11i(0x2b1,'X48B')])){if(IIIlllI1[i1iII11i(0x2c9,'EB)T')]($[i1iII11i(0x19f,'na0#')],0x1)){if(IIIlllI1[i1iII11i(0x25c,'P(4O')](IIIlllI1[i1iII11i(0x2b3,'yKZa')],IIIlllI1[i1iII11i(0x25d,'vQMx')]))await IIIlllI1[i1iII11i(0x287,'GB^]')](sendRequest,IIIlllI1[i1iII11i(0x2ed,'bux(')]);else{const IIllllIi=/(\w+)\(([\s\S]*?)\);/,IiIIlil=ll1Iiili[i1iII11i(0x2ac,'OD]L')](IIllllIi);IiIIlil&&(i1iii1ii=i1I11I1l[i1iII11i(0x295,'MX2x')](IiIIlil[0x2]));}}await IIIlllI1[i1iII11i(0x238,'*A!3')](sendRequest,IIIlllI1[i1iII11i(0x289,'hGa1')]);if($[i1iII11i(0x1fc,'L!#u')])return;await IIIlllI1[i1iII11i(0x213,'P(4O')](sendRequest,IIIlllI1[i1iII11i(0x29e,'f[bz')]);}else IIIlllI1[i1iII11i(0x2dd,'O7q&')](IIliI1i1,lIIliIl1);}else await IIIlllI1[i1iII11i(0x187,'XaSE')](sendRequest,IIIlllI1[i1iII11i(0x261,'GB^]')]);}async function sendRequest(Iii1I1iI){const l1iII11i=iIlliIIl,li111iIl={'zgecK':function(iIlI111l,lI1Iii1I){return iIlI111l===lI1Iii1I;},'SuuIw':l1iII11i(0x292,'OD]L'),'vhVkF':l1iII11i(0x236,'XaSE'),'pXksV':l1iII11i(0x2ce,'6FuE'),'glPbk':l1iII11i(0x1a8,'d5qF'),'dyeAE':function(i1liiil,IlIlIl11){return i1liiil!==IlIlIl11;},'xHjvU':l1iII11i(0x1c1,'OD]L'),'JIuyi':function(iI1I11ll,i1IIIil1){return iI1I11ll(i1IIIil1);},'LCspL':l1iII11i(0x2af,'6FuE'),'ZIfuT':l1iII11i(0x1fb,'F%1n'),'zXCdi':l1iII11i(0x2e8,'P(4O'),'RVmFN':l1iII11i(0x1bf,'(Y1*'),'JbHpD':l1iII11i(0x280,'F%1n'),'WIfhx':l1iII11i(0x186,'wdh9'),'VEjQJ':l1iII11i(0x1d6,'EB)T'),'BYxwq':l1iII11i(0x1f5,'46te'),'HdTWp':function(iiIII,iiliIlil){return iiIII<iiliIlil;},'Meggw':l1iII11i(0x2a3,'XUwI'),'gXwSe':function(iIi11lI,lI1IlI1){return iIi11lI!=lI1IlI1;},'LyhrM':function(li1IlIll,iI1l1lII){return li1IlIll-iI1l1lII;},'GfiEE':function(i1l1iill,il1IiIi1){return i1l1iill+il1IiIi1;},'zAHuX':l1iII11i(0x260,'XUwI'),'GWHIS':l1iII11i(0x21f,'L!#u'),'BzPSg':l1iII11i(0x2d5,'iIVN'),'DxkVs':l1iII11i(0x2cc,'hGa1'),'xmAmK':l1iII11i(0x1c7,'AlPu'),'etyMM':l1iII11i(0x285,'O7q&'),'figlU':l1iII11i(0x1d9,'XaSE'),'qlmOZ':l1iII11i(0x166,'OD]L'),'nUsWA':l1iII11i(0x1c5,'XaSE'),'gRIOk':l1iII11i(0x1a6,']mNe'),'cQdjY':l1iII11i(0x1b6,'d5qF'),'zXFtF':l1iII11i(0x2a2,'vQMx'),'HUlyF':l1iII11i(0x162,'7JA%'),'tHsgR':l1iII11i(0x2d0,'7JA%'),'QsSki':l1iII11i(0x1c8,'0tfd')},liIilIi={'url':l1iII11i(0x1b9,'Rpo!')+Iii1I1iI+l1iII11i(0x199,'(8]2')+($[l1iII11i(0x2c0,'L!#u')]||'')+l1iII11i(0x294,'XaSE')+($[l1iII11i(0x1da,'O7q&')]||'')+l1iII11i(0x171,'N[D]')+Date[l1iII11i(0x1b8,'CK$L')]()+l1iII11i(0x275,'MX2x')+Iii1I1iI+l1iII11i(0x284,'gHHm')+appCode,'headers':{'Accept':li111iIl[l1iII11i(0x29b,'0tfd')],'Accept-Encoding':li111iIl[l1iII11i(0x215,'X48B')],'Accept-Language':li111iIl[l1iII11i(0x21b,'L!#u')],'Sec-Fetch-Site':li111iIl[l1iII11i(0x163,'oUhe')],'Sec-Fetch-Mode':li111iIl[l1iII11i(0x181,'d5qF')],'Sec-Fetch-Dest':li111iIl[l1iII11i(0x1d0,'XaSE')],'Connection':li111iIl[l1iII11i(0x27f,'@x^3')],'Cookie':cookie,'Host':li111iIl[l1iII11i(0x17a,'L!#u')],'Referer':li111iIl[l1iII11i(0x218,'bux(')],'User-Agent':$['UA']}};return new Promise(async lI1iiIil=>{const l1I=l1iII11i,ii1111Il={'biDCl':function(liI1liIl,Iii1lll){const l1ii11ii=Il11I1i1;return li111iIl[l1ii11ii(0x1dc,'XaSE')](liI1liIl,Iii1lll);},'YtWnU':li111iIl[l1I(0x174,'p^yu')],'TdWeL':li111iIl[l1I(0x2a5,'0%QM')],'OiHrz':li111iIl[l1I(0x2dc,'OD]L')],'sDUTQ':li111iIl[l1I(0x2e6,'M8bD')],'rQqmk':function(iIili11i,IiIIl1Ii){const IIlliiiI=l1I;return li111iIl[IIlliiiI(0x1ac,'OD]L')](iIili11i,IiIIl1Ii);},'yQtPV':li111iIl[l1I(0x2b7,'f[bz')],'GyFZY':function(IlIIl1Il,illIlIll){const llIlllIi=l1I;return li111iIl[llIlllIi(0x182,'6FuE')](IlIIl1Il,illIlIll);},'Fcojz':li111iIl[l1I(0x2da,'yKZa')],'QKupx':li111iIl[l1I(0x1cf,'N[D]')],'vjeNL':function(liIlIiii,lilllli1){const llII1lI1=l1I;return li111iIl[llII1lI1(0x1b5,'L!#u')](liIlIiii,lilllli1);},'IJIaw':li111iIl[l1I(0x24f,'N[D]')],'UfjdP':li111iIl[l1I(0x1b3,'vkqk')],'kWLav':li111iIl[l1I(0x234,'L!#u')],'pNkEy':function(i1ilIIi1,iII11iIl){const llliI1ll=l1I;return li111iIl[llliI1ll(0x1ba,'uN9u')](i1ilIIi1,iII11iIl);},'FmceS':li111iIl[l1I(0x18b,'kmv^')],'qrTnq':li111iIl[l1I(0x2c7,'OD]L')],'zMsNh':li111iIl[l1I(0x1ea,'EB)T')],'WKTAm':function(llI1ii1i,lII1IlIi){const l1illl=l1I;return li111iIl[l1illl(0x201,']mNe')](llI1ii1i,lII1IlIi);},'FRXuv':function(I11lll1I,il1I1ilI){const liiIIlll=l1I;return li111iIl[liiIIlll(0x26b,'CK$L')](I11lll1I,il1I1ilI);},'UiQgv':li111iIl[l1I(0x274,'7JA%')],'qIbgD':function(I1I1lli,ilIIi1li){const iIII1Il1=l1I;return li111iIl[iIII1Il1(0x2df,'p^yu')](I1I1lli,ilIIi1li);},'COiXh':function(I1IiIlil,lii1111I){const I1i11ll=l1I;return li111iIl[I1i11ll(0x188,'hGa1')](I1IiIlil,lii1111I);},'KQXAk':function(II1I,Ii11Iill){const I1i1111I=l1I;return li111iIl[I1i1111I(0x1bb,'@x^3')](II1I,Ii11Iill);},'OwbTb':li111iIl[l1I(0x1a7,'EbHn')],'rDogv':li111iIl[l1I(0x197,'XUwI')],'eAMHS':li111iIl[l1I(0x2b5,'wdh9')],'fFSyk':function(I11iI1li,Iil1IllI){const lIlII1Ii=l1I;return li111iIl[lIlII1Ii(0x25a,'Rpo!')](I11iI1li,Iil1IllI);},'dyaoj':li111iIl[l1I(0x1f1,'vQMx')]};li111iIl[l1I(0x290,'p^yu')](li111iIl[l1I(0x299,'*^Kc')],li111iIl[l1I(0x217,'gHHm')])?$[l1I(0x276,'M8bD')](liIilIi,(i1i1llii,ll1ill,ililIiI)=>{const iilll11l=l1I,ii1iiii={'CDigb':ii1111Il[iilll11l(0x2bd,'bux(')]};if(ii1111Il[iilll11l(0x2a9,'*^Kc')](ii1111Il[iilll11l(0x1a0,'oUhe')],ii1111Il[iilll11l(0x1ab,'gHHm')]))try{if(ii1111Il[iilll11l(0x190,'OD]L')](ii1111Il[iilll11l(0x1bd,'EbHn')],ii1111Il[iilll11l(0x1be,'gHHm')]))try{IIlili1l=Iili1IiI[iilll11l(0x1d2,'O7q&')](lil1i1I1),ii1111Il[iilll11l(0x232,'qCGQ')](lll1Il1l[iilll11l(0x252,'L!#u')],'0')&&(IIlI1i1I[iilll11l(0x1f6,'oUhe')](ii1111Il[iilll11l(0x2d2,'OD]L')]),I1Ii1ii[iilll11l(0x16a,'bux(')][iilll11l(0x17f,'O7q&')](ii1111Il[iilll11l(0x202,'7JA%')]),i1lIIIl1[iilll11l(0x17e,'M%$U')]=!![]);}catch{iI1llIi1[iilll11l(0x249,'AlPu')](iilll11l(0x257,'kmv^')),ilIiI1I1[iilll11l(0x27b,'d5qF')]=!![];}else{if(i1i1llii)console[iilll11l(0x1a5,'MX2x')](ii1111Il[iilll11l(0x20a,'O7q&')](String,i1i1llii));else{const Iili1ilI=ii1111Il[iilll11l(0x21c,'M8bD')](handleResponseData,ililIiI);if(Iili1ilI)switch(Iii1I1iI){case ii1111Il[iilll11l(0x22b,'M%$U')]:$[iilll11l(0x24b,'EbHn')]=Iili1ilI[iilll11l(0x183,'X48B')],$[iilll11l(0x288,'M8bD')]=Iili1ilI[iilll11l(0x2a7,'(Y1*')];break;case ii1111Il[iilll11l(0x211,'6FuE')]:ii1111Il[iilll11l(0x1a1,'6FuE')](Iili1ilI[iilll11l(0x28c,'uN9u')],0x1)&&(console[iilll11l(0x1d1,'46te')](ii1111Il[iilll11l(0x221,'0tfd')]),$[iilll11l(0x1e5,']mNe')][iilll11l(0x2be,'EB)T')](ii1111Il[iilll11l(0x1a4,'gHHm')]),$[iilll11l(0x18c,']mNe')]=!![]);break;case ii1111Il[iilll11l(0x27d,'XQNt')]:if(ii1111Il[iilll11l(0x19d,'L!#u')](Iili1ilI[iilll11l(0x206,'vQMx')],0x0)){if(Iili1ilI?.[iilll11l(0x240,'na0#')]?.[iilll11l(0x19c,'M%$U')])console[iilll11l(0x278,'P(4O')](iilll11l(0x224,'p^yu')+Iili1ilI[iilll11l(0x1ad,'F%1n')][iilll11l(0x223,'s30q')]),$[iilll11l(0x23a,'GB^]')][iilll11l(0x266,'M8bD')](Iili1ilI[iilll11l(0x20d,'kmv^')][iilll11l(0x253,'iIVN')]);else Iili1ilI?.[iilll11l(0x27c,'vkqk')]?ii1111Il[iilll11l(0x1df,'EB)T')](ii1111Il[iilll11l(0x216,'GB^]')],ii1111Il[iilll11l(0x16d,'Rpo!')])?console[iilll11l(0x1d5,'6FuE')](Iili1ilI?.[iilll11l(0x258,'yKZa')]):IIII11iI[iilll11l(0x191,'0tfd')](i1i1lI,ili1Ili1):(console[iilll11l(0x1bc,'na0#')](ii1111Il[iilll11l(0x2aa,'Rpo!')]),$[iilll11l(0x1d8,'vkqk')][iilll11l(0x2be,'EB)T')]('空气'));}else console[iilll11l(0x242,'f[bz')](ii1111Il[iilll11l(0x25b,'d5qF')]),$[iilll11l(0x1eb,'M[[g')][iilll11l(0x2e2,'MX2x')](ii1111Il[iilll11l(0x247,'AlPu')]);break;case ii1111Il[iilll11l(0x2ba,'XaSE')]:if(Iili1ilI[iilll11l(0x1b0,'qCGQ')]){if(ii1111Il[iilll11l(0x200,'CK$L')]($[iilll11l(0x20c,'iIVN')],0x1)){let i1I11IIi='';for(let lli1l1iI=0x0;ii1111Il[iilll11l(0x2ca,'M[[g')](lli1l1iI,Iili1ilI[iilll11l(0x2d7,'(8]2')][iilll11l(0x25f,'na0#')]);lli1l1iI++){const ii1Iil=Iili1ilI[iilll11l(0x23e,'M8bD')][lli1l1iI][ii1111Il[iilll11l(0x239,'M8bD')]];ii1111Il[iilll11l(0x1e3,'0%QM')](lli1l1iI,ii1111Il[iilll11l(0x2e7,'bux(')](Iili1ilI[iilll11l(0x164,'EbHn')][iilll11l(0x2d6,'M%$U')],0x1))?i1I11IIi+=ii1Iil+',':i1I11IIi+=''+ii1Iil;}console[iilll11l(0x1aa,'d5qF')](iilll11l(0x1c4,'P(4O')+i1I11IIi+'\x0a'),notify[iilll11l(0x207,'bux(')](ii1111Il[iilll11l(0x21d,'*^Kc')](notify[iilll11l(0x26c,'vQMx')],iilll11l(0x17c,'vkqk')+i1I11IIi));}console[iilll11l(0x1ee,'@x^3')](ii1111Il[iilll11l(0x2b2,'hGa1')]),$[iilll11l(0x23d,'EB)T')][iilll11l(0x28d,'hGa1')](ii1111Il[iilll11l(0x26d,'(8]2')]);}else console[iilll11l(0x1d7,'XUwI')](ii1111Il[iilll11l(0x2db,'gHHm')]),$[iilll11l(0x208,'0%QM')][iilll11l(0x1ae,'6FuE')](ii1111Il[iilll11l(0x2c5,'Rpo!')]);break;}else console[iilll11l(0x2ec,'N[D]')](ililIiI);}}}catch(l11iil11){$[iilll11l(0x214,'XQNt')](l11iil11,ll1ill);}finally{if(ii1111Il[iilll11l(0x279,'M8bD')](ii1111Il[iilll11l(0x194,'0%QM')],ii1111Il[iilll11l(0x2e0,'qCGQ')])){let l1Ii1ilI=null;try{const lIIiIIlI=/(\w+)\(([\s\S]*?)\);/,l1ililiI=ilIIiil1[iilll11l(0x165,'na0#')](lIIiIIlI);l1ililiI&&(l1Ii1ilI=l1i1II1[iilll11l(0x1c2,'L!#u')](l1ililiI[0x2]));}catch(i1IliIi){Illii1ll[iilll11l(0x2e9,'M[[g')](i1IliIi);}return l1Ii1ilI;}else ii1111Il[iilll11l(0x2bf,'(Y1*')](lI1iiIil,ililIiI);}else llIillll[iilll11l(0x1c9,'*^Kc')](ii1iiii[iilll11l(0x2c6,'kmv^')]),i1IiIiI1[iilll11l(0x230,'uN9u')][iilll11l(0x1ae,'6FuE')](ii1iiii[iilll11l(0x184,'bIp&')]);}):i1lii1I1=illIl1li[l1I(0x1b7,'EbHn')](li1I1ii[0x2]);});}function handleResponseData(i1ilil1l){const illIii1i=iIlliIIl;let IIiIllli=null;try{const l1I1iII=/(\w+)\(([\s\S]*?)\);/,iiIlIi1I=i1ilil1l[illIii1i(0x176,'EbHn')](l1I1iII);iiIlIi1I&&(IIiIllli=JSON[illIii1i(0x1f8,'s30q')](iiIlIi1I[0x2]));}catch(ll111i){console[illIii1i(0x1fe,'M%$U')](ll111i);}return IIiIllli;}function getLoginStatus(){const l1IIiII1=iIlliIIl,IiI1liil={'EHwLC':function(IiilIi1l,il1llli1){return IiilIi1l===il1llli1;},'Wpmlz':l1IIiII1(0x1cc,'0%QM'),'dqgIX':l1IIiII1(0x18e,'XUwI'),'IAcgk':function(lilll,Iil1IIli){return lilll!==Iil1IIli;},'PdyFz':l1IIiII1(0x26a,'OD]L'),'gPxmI':function(iilliIi1,l1i1111l){return iilliIi1(l1i1111l);},'DMOGX':function(I1ili11l,lii1I1l){return I1ili11l===lii1I1l;},'VFqcV':l1IIiII1(0x1de,'M[[g'),'gtmjs':l1IIiII1(0x29f,'gHHm'),'FNgoZ':function(ll11ilii,li1iIIil){return ll11ilii===li1iIIil;},'PSINb':function(l111l1Il,IIlIIliI){return l111l1Il!==IIlIIliI;},'ZWXRm':l1IIiII1(0x1e6,'CK$L'),'cnDhz':l1IIiII1(0x271,'Rpo!'),'MIEem':l1IIiII1(0x185,'CK$L'),'isGgF':function(li11i1i1){return li11i1i1();},'plQCq':l1IIiII1(0x20b,'AlPu'),'zkIwj':function(iIiI1i1I,II11Iiii){return iIiI1i1I===II11Iiii;},'IEXId':l1IIiII1(0x1fa,'kmv^'),'UJgdg':l1IIiII1(0x1fd,'wVZ)'),'niSoT':l1IIiII1(0x273,'vkqk'),'WLLEu':l1IIiII1(0x2b9,'d5qF'),'SdIeL':l1IIiII1(0x17d,'bux('),'qEnUM':l1IIiII1(0x268,'XQNt'),'WecPA':l1IIiII1(0x1ed,'P(4O')};return new Promise(async llIl1iII=>{const liI1iliI=l1IIiII1,I1lill1I={'fXcnp':IiI1liil[liI1iliI(0x251,'bux(')]};if(IiI1liil[liI1iliI(0x2d1,'*A!3')](IiI1liil[liI1iliI(0x248,'GB^]')],IiI1liil[liI1iliI(0x205,'*A!3')]))Il11I1I1[liI1iliI(0x178,'AlPu')](i11IiIil,ilIii1i1);else{const lI1i1IlI={'url':liI1iliI(0x1ec,'p^yu'),'headers':{'Accept':IiI1liil[liI1iliI(0x2d8,'EbHn')],'Accept-Encoding':IiI1liil[liI1iliI(0x18d,'f[bz')],'Accept-Language':IiI1liil[liI1iliI(0x198,'N[D]')],'Connection':IiI1liil[liI1iliI(0x28f,'X48B')],'Cookie':cookie,'Host':IiI1liil[liI1iliI(0x244,'XUwI')],'User-Agent':$['UA']}};$[liI1iliI(0x1c3,'N[D]')](lI1i1IlI,(llIIIlIl,Ii11iiIi,i11ilIlI)=>{const Iil1i111=liI1iliI,i1II11i={'gvrcL':function(Ill1lll,ll1I1lIl){const i11li1l=Il11I1i1;return IiI1liil[i11li1l(0x169,'yKZa')](Ill1lll,ll1I1lIl);},'nLtMI':IiI1liil[Iil1i111(0x209,'na0#')],'USyKw':IiI1liil[Iil1i111(0x226,'hGa1')]};try{if(IiI1liil[Iil1i111(0x220,'@x^3')](IiI1liil[Iil1i111(0x269,'O7q&')],IiI1liil[Iil1i111(0x22d,'bux(')]))I1Il1i1i=IIi1llI1[Iil1i111(0x22e,']mNe')](ilIli1l),i1II11i[Iil1i111(0x228,'f[bz')](II1IllII[Iil1i111(0x254,'MX2x')],'0')&&(Iii1111[Iil1i111(0x27e,'wdh9')](i1II11i[Iil1i111(0x2d4,'0%QM')]),illiIll1[Iil1i111(0x180,'XQNt')][Iil1i111(0x2e2,'MX2x')](i1II11i[Iil1i111(0x1af,'iIVN')]),iII1lIi1[Iil1i111(0x1c0,'uN9u')]=!![]);else{if(llIIIlIl)console[Iil1i111(0x27e,'wdh9')](IiI1liil[Iil1i111(0x210,'6FuE')](String,llIIIlIl)),console[Iil1i111(0x1bc,'na0#')]($[Iil1i111(0x256,'yKZa')]+Iil1i111(0x225,'P(4O'));else{if(IiI1liil[Iil1i111(0x1b1,'EB)T')](IiI1liil[Iil1i111(0x283,'M%$U')],IiI1liil[Iil1i111(0x1b4,'iIVN')])){if(i11ilIlI){if(IiI1liil[Iil1i111(0x2eb,'na0#')](IiI1liil[Iil1i111(0x270,'0tfd')],IiI1liil[Iil1i111(0x237,'P(4O')]))iiIil1il[Iil1i111(0x2cf,'kmv^')](IlilI1I);else try{i11ilIlI=JSON[Iil1i111(0x20f,'(Y1*')](i11ilIlI),IiI1liil[Iil1i111(0x2c2,'Rpo!')](i11ilIlI[Iil1i111(0x254,'MX2x')],'0')&&(console[Iil1i111(0x242,'f[bz')](IiI1liil[Iil1i111(0x168,'hGa1')]),$[Iil1i111(0x177,'F%1n')][Iil1i111(0x23b,'Rpo!')](IiI1liil[Iil1i111(0x1ce,'46te')]),$[Iil1i111(0x28a,'oUhe')]=!![]);}catch{IiI1liil[Iil1i111(0x264,'uN9u')](IiI1liil[Iil1i111(0x1b2,'yKZa')],IiI1liil[Iil1i111(0x233,'EB)T')])?(console[Iil1i111(0x27e,'wdh9')](Iil1i111(0x2de,'OD]L')),$[Iil1i111(0x1ef,'vkqk')]=!![]):iI1IillI[Iil1i111(0x1fe,'M%$U')](IillilII?.[Iil1i111(0x243,'d5qF')]);}}else IiI1liil[Iil1i111(0x1dd,'bux(')](IiI1liil[Iil1i111(0x1d3,'MX2x')],IiI1liil[Iil1i111(0x204,'OD]L')])?(console[Iil1i111(0x249,'AlPu')](Iil1i111(0x196,'oUhe')),$[Iil1i111(0x1c0,'uN9u')]=!![]):lliiIllI[Iil1i111(0x2e3,'GB^]')](illil1ll);}else i11lIli1[Iil1i111(0x1d7,'XUwI')](I1lill1I[Iil1i111(0x2cd,'na0#')]),l1iiiil[Iil1i111(0x172,'d5qF')][Iil1i111(0x2e5,'0%QM')]('空气');}}}catch(lll11I1i){$[Iil1i111(0x20e,'kmv^')](lll11I1i,Ii11iiIi);}finally{IiI1liil[Iil1i111(0x16b,'XUwI')](llIl1iII);}});}});}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) }