-
Notifications
You must be signed in to change notification settings - Fork 52
/
jd_shop_lottery.js
25 lines (18 loc) · 36.6 KB
/
jd_shop_lottery.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
活动名称:店铺刮刮乐(刮一刮)
活动链接:https://shop.m.jd.com/shop/lottery?shopId=<店铺id>&venderId=<商家id>
环境变量:jd_shopLottery_venderIds // 商家id,多个用英文逗号分割
jd_shopLottery_threads // 控制并发线程数(正整数),默认1
jd_shopLottery_interval // 自定义运行间隔时长(整数,单位毫秒),默认500
jd_shopLottery_notify // 是否推送通知(true/false),默认不推送
注:高并发脚本,每个店铺活动每天只能参与一次,访问活动需要同时包含店铺id和商家id
每个店铺活动每天只能参与一次
7 7 7 7 *
*/
const $ = new Env('店铺刮刮乐(刮一刮)')
const jdCookie = require('./jdCookie')
const common = require('./function/jdCommon')
const notify = require('./function/sendJDNotify')
var iil='jsjiami.com.v7';const l1il1ii1=I1llli1i;(function(ii1iiIII,IlIli1lI,iliI1il,lllii1l,lii1lI1,i1li1Iii,IliI1111){return ii1iiIII=ii1iiIII>>0x3,i1li1Iii='hs',IliI1111='hs',function(i1IIiI1I,IiI1Ill,i11lii11,lli1IIIi,liiIi1ll){const IIIi1lII=I1llli1i;lli1IIIi='tfi',i1li1Iii=lli1IIIi+i1li1Iii,liiIi1ll='up',IliI1111+=liiIi1ll,i1li1Iii=i11lii11(i1li1Iii),IliI1111=i11lii11(IliI1111),i11lii11=0x0;const iilli1I1=i1IIiI1I();while(!![]&&--lllii1l+IiI1Ill){try{lli1IIIi=parseInt(IIIi1lII(0x296,'xnkD'))/0x1+parseInt(IIIi1lII(0x2c0,'I2k!'))/0x2*(parseInt(IIIi1lII(0x241,'3hIp'))/0x3)+parseInt(IIIi1lII(0x1fc,'3CST'))/0x4+-parseInt(IIIi1lII(0x21d,'WchR'))/0x5*(-parseInt(IIIi1lII(0x2e4,'moXt'))/0x6)+parseInt(IIIi1lII(0x2a4,'xnkD'))/0x7*(parseInt(IIIi1lII(0x1aa,'D@!o'))/0x8)+-parseInt(IIIi1lII(0x1d4,'3hIp'))/0x9+-parseInt(IIIi1lII(0x25b,'82dZ'))/0xa;}catch(iIiiIllI){lli1IIIi=i11lii11;}finally{liiIi1ll=iilli1I1[i1li1Iii]();if(ii1iiIII<=lllii1l)i11lii11?lii1lI1?lli1IIIi=liiIi1ll:lii1lI1=liiIi1ll:i11lii11=liiIi1ll;else{if(i11lii11==lii1lI1['replace'](/[YebgIJMVfuGHAyWdSTKC=]/g,'')){if(lli1IIIi===IiI1Ill){iilli1I1['un'+i1li1Iii](liiIi1ll);break;}iilli1I1[IliI1111](liiIi1ll);}}}}}(iliI1il,IlIli1lI,function(iillIli1,i1iiiIll,l1l111Ii,iI1iliIl,illlllI1,IlI1iiI,iIIii1I){return i1iiiIll='\x73\x70\x6c\x69\x74',iillIli1=arguments[0x0],iillIli1=iillIli1[i1iiiIll](''),l1l111Ii=`\x72\x65\x76\x65\x72\x73\x65`,iillIli1=iillIli1[l1l111Ii]('\x76'),iI1iliIl=`\x6a\x6f\x69\x6e`,(0x16264c,iillIli1[iI1iliIl](''));});}(0x5e8,0xe69c3,lIiII,0xbf),lIiII)&&(iil=0x1aad);function lIiII(){const i1il1Ii=(function(){return[...[iil,'gSYjyGIsjKigeaCmMuiy.cJodgTmfVW.ev7HbAuM==','W49nCW','WOldH8omW6jR','m8ogW5SbWOe','cIddHHJcPcm','vfRcPSoiW7hdIG','lmohAsPi','W5VdTNZcJ3SXuM0','tCkCWQ7cQ8kK','CtGjW5q','W7m3WOvVwCk9W6igsSojB8kYW4qe','8jAkINy','mdWvfLfEwSoIrSkAvuC','WRtdS8ozWRldTa','5z2p5zYo5RA45yQW5lQc6lwg5lICW7S','WQXxWOtdHq4','kYvxW43dV8opW7hdVSopWOj0','W5lcQmo8W4RdRa','BcGcW4FcGa','vKGXCW','s2jHW6FcKG','n8ohWOeaW6tdHmktW5vzW6q','WQvdW5rXW6e','fdJdK8kBbJRdS8k/meHx','y2hdNtXWW49kDa','hYJdQSoaWR1R','h2JcPmoyoCosWQlcGq','jvTjW4mC','W6xdMNJcHwO','W7/cKCobWRZcKq','WPxcOmoJWRm5EbvK','5y2C5lQJ5AsG6lw9','bmoQhxFdLW','tYZdKmkSWQ4gWP0','zHuZW4BcIa','vgBdK0pcLa','ELVcSq','DdWDW4i','g8oQBK/dRMS','WOrBWORdKW','W7NdVgVcJ1S','cWq1eMz6A8otvCkRBLZcK8kTWRC','44cj5O+856EX44ky6k6l5yA36i6D5y62b3VcNmkkWQdcVW','emoKWPq8W54','WRpdTmklW4rwmSkSWQiLcmoYW5zVgmkI','yqtdLCk1WPC','cmoixSkDWPC','tN5HW4pcOCkI','WOmGdmkSeN/dVhBdMmohW5vsWOTFW6/cGNhcKdxcN0u','dMy+fCkTe8oTcSkwWRjWWQZcP8kRnfBcOSot','W6WfW5zzW7S','W6FcHCo4W4tdLCoZW5ddPa','sEs4P+A3SEwiLfy','fSoMw8kDWOlcTSkGmLxcHCoQdMZdMmkFW7u3W7eBW4qiW57cSCo9W6tcUSoQfCo9ASk6WQ9uW7a','WRFcTxz3WQa','6i+u5y6Z5Rw95yUQ5l+15Og85As06lAc','4P+NW7VMNPNNNiVORi7MS4m5','aCoPhwO','WQLTW5i6hCoRWRDf','bqNdTs5g','rhHQ','WQZdHCoJW59mW4VdPG','WRCug8k5EG','56QX5Rkb8yYYKa','wJZdISk6WQKf','g07cQmoXfq','WQ3dJSoXW55BW40','emoZavZdQCoE','FCowdxT0','xCoHmg0','mrldMrxcRa','c2S/aCkxamouhG','WPhcQmoTWQK','W7JORyFMS5xLP6xOTPWY4P6TD+AwRowsR+w7GoAuPUAnQG','WRikomkAtq','WOVdM8o5WRddOa','fCoYigBdMq','WOmRoSkX','WQddM8oJWQxdGq','WQddHSoOW6H9','5y+85lUI5AEZ6lEN','xcGQW7tcPW','DupcRa','4PYWhUIeVEAENUI+V+IGU+MdUUwkTUs4H+MxRUIUPSks','W7VcJmo7W6tdIq','suq4ESkQra','44gt6iYw5y6V5Rs+5yIP5l6X5Ocu5AwE6lE5','WOqUamkOhG','W6BcGCo/W5tdPmoOW7tdPq','WQJdPmkeWPpdJq','mSosWPfxW60','6i6F5y+b5Rs25yIF5lYL5Ok/5AwO6lAK','fgeIoSogxmkTvmo5','tmoRj31wW4u','CSk4mmkVWPpcPSkfya','WO4jW4nSaW','DSkOmmkoWPJcSa','W7vWW6bChYCjW4K','vfqZB8kNFXXkmCoRW5xdIfldHCoAWRO4sCkJ','56UQ5RoW8lUaMa','CZWkW5BcUCoB','p8oDW606WR8','WRhdKmkyyLa','tthdJCkl','5l2H5OkH5yQ+8lkuIE+4LG','gmknW7OMsG','W4SLa8kgDbi','eCoQWOPpW4O','dmojW7ebW4S','ocxcOcldRuRdRSkbWR8eW44','uLn3DceNmmkFqmkMsxtcTSkS','W7VORAlMSRRLKzNLURb7','eCoMEa','qNLNW6xcPW','WRCjdCkxzW','vSk1WPhcP8k+','W48VbCkNyXiM','k8opgMNdTdqEha','g1TtW7GQpW','Cc/dP8kZWOu','iCoQW7ObW7P3WPNdIG','W7ldGNy','WOzKWPFdGba','vvnYDYiLpCoQEmk8sg3cNW','z1jMW6/cRG','WPhcQmoTWQKKFX5U','WQqfeSkpoa','W5FdVSk2W65ii0f/qmkbhSk7aG','c19oW4y7hSoqW6m','rvRcPmoDW4K','W4NdHxGXW4i','WPRdMmkTWR/dPW','uvddU2NcPW'],...(function(){return[...['WPznWPVdKX4','rmk5WRBcUSkI','Amk4mmkSWOlcVa','WRjMW4iJbmo7','dSo3W6a8','eZ3dGGNcGG','WQuVW5XTmdG','mCo1uwRdTW','W6NdJhGS','WOTBWOK','fmoZW7O7WOJcHGO','WOWQjq','W7FdNKiXW5xcHq','fs7dOq','o1ZcPmo9oG','W63dHx4VW6lcMwNdHt3cOfW','su/dGx7cMW','6lwW5y285PwZ5Ps9','u8kWxI/cSSkopvSxW7aTEmk/Ca','aCo9W705WPe','BCkZbSk4WRS','44c05BQ26zkS5OIl5REL5yQe5lML5A2G5z2W','WORcPSoJ','aqpdOIX0','rLldR2VcSa','WRatc8kxkq','5BIW6zkWlCkh77YC','WR9zW6r2W47dTmoUW6ZdN2hcQZNdLvhcVwG','coIUVUAZPUwNJUI3OKhINA8d','ccSZk1S','5lIb5PwW5Bs85y+65lI46l2i','WP3dPCkbWOldP3/dKwK','WONcSCoqWRi5','WQXSW5y','WPJcQx9TWQi','WOlcQ3rfWRW','WOHHW7PnW6i','CJm3W4BcQq','WQNcPLrhWPW','idpdUGXo','BuhcJSoRmG','5lQw5Pwo5Bs55y+D5lQg6l6p','jCofW7eYW6a','WRFdHCoJWPldLxnw','W7ddJhW9','s2BdGx/cUG','emoZqSki','W43dLxmpW58','WOJcI0jlWPBdTG','WPbvWOFdGIjNjmoz','kmkfWOu','CwldIMpcTLa','WQJcMh99WP4','WQTgWOBdKHK','cM84eCkMg8oWhW','WRjLWOtdUdS','W7iXW54qpCoiWOj1','pMe/eCkxhmoPv8kDWRHPWQ4','W5JdLbOkW4xcSSkwA8k8csRdLLm','prpdJaFcNa','oSoaBMNdOa','44kp5BI66zoR5OMo5RAj5yMd5lIn5A+Z5z2H','oSoKW7q','WRHvW7bS','EdWkW6tcJa','nSoBWOGRW5JdHq','kN3cRSo3pW','WRxdPmoWW61N','WRBdTmki','s8ozWQDCjSkGW7tcPv3cMmkSW4a','5BUR6zoe56Ei5yQ08ks/Qo+6SG','AmkWd8kiWPe','o8ooWR9vW40l','zSkYmCkNWPpcTCkI','sxr5W57cSSk5lCo4W5RcMCkG','EL7cRSoOcmkA','c8kBW6Sp','WPO1nCkPnW','etVdMZJcUdm','WQakhSkyCq','kmolWOGjW4ldIq','hs7dQmor','CvBcMmofW6W','W4RdGuBcRhG','dSoCfKZdNW','y8k4kSkyWP/cS8kItueKW58','WOdcOufwWOq','WOVcJfG','WRhdNSo0WRJdJhzuja','bSolCN7dLa','pv1DW7e5','WPRdQSkaW5BdGCk5lmogf07dKLZcNG','CvhcOSowW7rzzLRdNXK','WR/dP8kNvq','mGZdQCk8wq','WOPvWPRdLr4','zLeYvSk9','WPxcVmoNWR4vzqa','WPH6W7fkW6C','WO7dLCorWRpdKG','W4BcSCoGWPNcNq','asxdMYLd','W7JcHCoIW6ddS8oZW5pdTuifWPtdQCo3sG0','WQNdK8oL','6ls/5y+B5PsR5PEb','WPrBWOpdKW','rx1EW4dcOa','hu5xW54gfmoCW7ldQmkyj8k3ufWJW54qWQBdImo2W7xcPg3dMmkBWP9gj8okW7NdRCoYAW','D8k6e8kPWPq','fN9iW584','WQedW7vEiq','4PQHnUIfV+wUIEs6LUI/RUIJI+MuK+MzMoAwKoMxG+ITRoE8LEMuN+IURW','iZJdQav/W5LEAa','dWOH','W7K7W6uXeCo2WPDe','WPSXpCkAfhq','WPtcVmoQWPGECG','Cf3cUmo6W71gBa','zehcUmoEW79o','FCkCWQBcICkZ','WOlcJuK','4PQgd+ISV+whHEwSHEs7P+w/IUIMUUEAUEEpVEwGVUwpI+MgRUwsOoweUEI/OoIHJEIgJUAFKq','DwC4z8kM','CZyd','W5hdT3VcHG','rhjJW5dcSmk4','44cU5OY856E444ot6kYN5yEF6i2T5y+wg8o9WRlcOxTL','vSk2vI/cSSkjutuQW4qhBW','hG3dRCkWFG','n8oJg3RdVq','d3S/imkCfG','vuFcP8o6W4/dNgzvsrVdMq','mmkcW6q/vW','WQhdU8kKALu'],...(function(){return['8jc4Pxq','WQNdSmklW6filW','oCotWQjR','qxLUW5VcSCk0pmoY','WQ4akCkNfq','msyfnvK','mSojpe0','sru0W5JcHG','4PQ2foIeVowSGEs7MoI/UUIHMEMxJ+MyRoAwIUMvKUITOoE/N+MwUEIUJG','44gT6lsO5y6M','AmkYoq','fmoJax3dOSoiqqC','fmo0kupdOW','ewe2','bSkGW5CzxG','WR7dMCoV','wWFdHSk4WOK','n8kdW57dLCoJtmo1W7xcU3BcSvmHmJuWWPKuWPumWRBdHMJdNg9MWRK/WQHoWPRcOCotWO/dPrFdLSkUWQ/dGhDwWRxdKSoR','d8k/zZacWONcPCkxWP/cKmkrW5ZdGa','W5PWz8oMsYlcVaRdLCoDW4HXWR9L','WPBdR8kPW7zu','A3ldIMdcT1hdT8kRWQmsW4JcTWL/hY7cRmkFsCoJDG','WQbvW61/W7VdVW','kmoAAW','WQhdKSoWW5rB','WONcH1PSWPRdO8oa','WRnZW50/ha','qvjSW43cPq','W5xdVwVcOge6xhFdUMWwf8ohW5y','kMLu','W4eidSkTuq','lCoKW6iMWQq','oSokdxtdUq','xokEOGC','qNnsW4tcRmk/kConW6dcN8k4j8oyW64/gSkreSohWP7dQSoC','ANfpW5VcGG','WQ7dLCo5WRddNgb4mW','W44KW7q','5lUv6loq8l2bVG','BhFdPq','ASk8m8kU','WQtcHCoPWQCD','WQPzW69SW6RdPq','psldQa','gulcPmoAnG','t21KW4FdQmoWpCoKW6NcH8kTnSopWRTadmkl','W7ZcI8o2','8kwFOCoQ5yEn6k+9WOa','effa','zfhcP8oUW7rzyq','CwpdPNS','fLP4W4ehgmonW4RdRSkdpCo9wGGlW4ajW7/dI8oRW7hcQcW','dmohW40AWOy','W5aUW6bRW5ddTa','uSoHmW','eSo9sa','WReHW5T/dtywW58','lCoDWQCCW4tdGmkD','WPxcUCoOWRqe','cHyvk3n9','W6ZcN8ojWPBcLG','imoEtGTP','B8k4WQzeWPXQWP3dICkgvua','zxFdOxi','W6aohSk7Aq','nuLHW7Oc','caaJmJLYACooySkT','WR5GWONdNWq','oSklW4qWzW','mmoeWQW','csddJs/cSXtdVGtcVSo/W6VdLxO7W4BdKmovx8ke','dSoPca','d2SIemkEbG','WQBdPSoXW6Pd','WRTrW6PSW5VdVSo3W6a','BdelW4BcNCobWQNdRmkoWRCG','p8o8W78UWPa','WRVdKmkmDuW','kbVdUCk6rmokgbqYx8kAWQdcIG','yfhcUmo/W7ryxf8','gCo3w8kHWP7dQ8oMC2FcGCoIvhtcHq','6lw25y6M5PwV5PsJ','WO5AWO3dMGnQlmop','W4pdNg3cTua','WRLpW6yHlq','W4hdQhpcINO','W7VcJ8oxW7NdQa','W4ddVwZcLMiH','nxLwW7Oj','ugVdIW','dCoea3/dQG','vv7cRSo7W5i','ibtcN8oUbCkgBXi','WOFdR8ki','WPLFW4H+W6S','CKpdR8odWPi','z3xcJCoBW6C','g8oHW70IW4u','dmo3xmkyWP3dUa','iCoof2BdLteiba','qI3dU8kmWQ8oWOnVWPRdPLvaWPKZWPP1WO/dLtNdMdtcKt8q','p8kEWP3dMmoSrG','WRlcRSolWRyt','W6O8emkNqa','WRZdOSoKWPhdTq','mrmejxO','44ok5BIc6zcc5OQc5RsF5yUZ5lUp5A6o5z2m','WP5MWQ3dKdm','WQFdOCkxufq','WPtdICohW4Lp','4P6kyoAEMoIdTUASUUEGSEwLV+EsVfK','cSoxW445WQ4','WQOVW5u','WQGGoSk4na','WR7dLmo3W5vI','e8oUDeK','5zYX5z6M5RsK5yMl5lId6lAe5lQXya','pIFdJ8oJWP4','W5aRdCk3uGK4nq','WQSQW6f8pq','WOdcQNdcPvSsz10','DvxcOSo4W7K','W4JcTmoEW4ddISk3kCowg0xcR2hcRKDbESowW4qi','W5hcVSouW6BdUq','WQbFW6q','dwZcVSoD','fqaOjNfHtmod','W60UW6LKW5C','Ff7cSComW4W','t8kLk8k4WRW','iCo2c1ldPa','WQ40W4z7kMvuWPukWQxdMCooWQ7cTmk9W6SFFM/dM8oYW6uzW5tcLCoDWRvjqcLdAhhdMCoHd8kCW74wgsBcSqbF','a8o3WRCgW7K'];}())];}())];}());lIiII=function(){return i1il1Ii;};return lIiII();};function I1llli1i(_0xb97ef9,_0x3ac852){const _0x167bf2=lIiII();return I1llli1i=function(_0x17698d,_0x2d3a8d){_0x17698d=_0x17698d-0x15d;let _0x250bc9=_0x167bf2[_0x17698d];if(I1llli1i['YlJJuc']===undefined){var _0x59e738=function(_0x1caed4){const _0x19b087='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x487f1e='',_0x4f260c='';for(let _0xb6a634=0x0,_0x535a2d,_0x14f240,_0x473ebf=0x0;_0x14f240=_0x1caed4['charAt'](_0x473ebf++);~_0x14f240&&(_0x535a2d=_0xb6a634%0x4?_0x535a2d*0x40+_0x14f240:_0x14f240,_0xb6a634++%0x4)?_0x487f1e+=String['fromCharCode'](0xff&_0x535a2d>>(-0x2*_0xb6a634&0x6)):0x0){_0x14f240=_0x19b087['indexOf'](_0x14f240);}for(let _0x4b1c16=0x0,_0x29db49=_0x487f1e['length'];_0x4b1c16<_0x29db49;_0x4b1c16++){_0x4f260c+='%'+('00'+_0x487f1e['charCodeAt'](_0x4b1c16)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4f260c);};const _0x2e9890=function(_0x322f82,_0x12c28b){let _0x67f7bb=[],_0x2ccd2b=0x0,_0x11e648,_0xd15911='';_0x322f82=_0x59e738(_0x322f82);let _0x1f29f0;for(_0x1f29f0=0x0;_0x1f29f0<0x100;_0x1f29f0++){_0x67f7bb[_0x1f29f0]=_0x1f29f0;}for(_0x1f29f0=0x0;_0x1f29f0<0x100;_0x1f29f0++){_0x2ccd2b=(_0x2ccd2b+_0x67f7bb[_0x1f29f0]+_0x12c28b['charCodeAt'](_0x1f29f0%_0x12c28b['length']))%0x100,_0x11e648=_0x67f7bb[_0x1f29f0],_0x67f7bb[_0x1f29f0]=_0x67f7bb[_0x2ccd2b],_0x67f7bb[_0x2ccd2b]=_0x11e648;}_0x1f29f0=0x0,_0x2ccd2b=0x0;for(let _0x105e93=0x0;_0x105e93<_0x322f82['length'];_0x105e93++){_0x1f29f0=(_0x1f29f0+0x1)%0x100,_0x2ccd2b=(_0x2ccd2b+_0x67f7bb[_0x1f29f0])%0x100,_0x11e648=_0x67f7bb[_0x1f29f0],_0x67f7bb[_0x1f29f0]=_0x67f7bb[_0x2ccd2b],_0x67f7bb[_0x2ccd2b]=_0x11e648,_0xd15911+=String['fromCharCode'](_0x322f82['charCodeAt'](_0x105e93)^_0x67f7bb[(_0x67f7bb[_0x1f29f0]+_0x67f7bb[_0x2ccd2b])%0x100]);}return _0xd15911;};I1llli1i['HXUMWl']=_0x2e9890,_0xb97ef9=arguments,I1llli1i['YlJJuc']=!![];}const _0x10668d=_0x167bf2[0x0],_0x19b7c4=_0x17698d+_0x10668d,_0x3a73cb=_0xb97ef9[_0x19b7c4];return!_0x3a73cb?(I1llli1i['qTmARg']===undefined&&(I1llli1i['qTmARg']=!![]),_0x250bc9=I1llli1i['HXUMWl'](_0x250bc9,_0x2d3a8d),_0xb97ef9[_0x19b7c4]=_0x250bc9):_0x250bc9=_0x3a73cb,_0x250bc9;},I1llli1i(_0xb97ef9,_0x3ac852);}const venderIdList=(process[l1il1ii1(0x25f,'ZAOo')][l1il1ii1(0x2ac,'69mm')]||'')[l1il1ii1(0x2d4,'D58m')](',')[l1il1ii1(0x206,'Jc#x')](lIIIIIll=>lIIIIIll[l1il1ii1(0x21f,'rtWl')]())[l1il1ii1(0x2e5,'ia3M')](Boolean);let taskThreads=process[l1il1ii1(0x219,'3CST')][l1il1ii1(0x26a,'Ka[Z')]||'1';const runInterval=process[l1il1ii1(0x1cd,'82dZ')][l1il1ii1(0x27b,'m2Hb')]||l1il1ii1(0x265,'x9!9'),isNotify=(process[l1il1ii1(0x1f4,'yl2R')][l1il1ii1(0x25d,'D@!o')]||process[l1il1ii1(0x1f4,'yl2R')][l1il1ii1(0x16d,'82dZ')])===l1il1ii1(0x20e,'VQ5a'),cookiesArr=Object[l1il1ii1(0x162,'x9!9')](jdCookie)[l1il1ii1(0x26f,'D@!o')](IIIiilli=>jdCookie[IIIiilli])[l1il1ii1(0x16c,'Ka[Z')](il1Ilii=>il1Ilii);!cookiesArr[0x0]&&($[l1il1ii1(0x229,'m^)d')]($[l1il1ii1(0x270,'bVzM')],l1il1ii1(0x167,'xnkD')),process[l1il1ii1(0x1a4,'69mm')](0x1));!(async()=>{const i1Ill1I=l1il1ii1,iiiil1II={'qyueh':i1Ill1I(0x2da,')yiy'),'gCGUx':function(Iiil11i1){return Iiil11i1();},'qXBYe':function(lll1111I,lII1111l){return lll1111I===lII1111l;},'ltYhb':i1Ill1I(0x1c3,'D58m'),'WhaDY':i1Ill1I(0x2c8,'bbMc')};notify[i1Ill1I(0x1c8,'Wqz)')]({'title':$[i1Ill1I(0x1ee,'Swc3')]}),await iiiil1II[i1Ill1I(0x230,'Wqz)')](Main),isNotify&¬ify[i1Ill1I(0x21e,'A^lf')]()&&(iiiil1II[i1Ill1I(0x1c0,'Uk&i')](iiiil1II[i1Ill1I(0x2b4,'rtWl')],iiiil1II[i1Ill1I(0x187,'h**c')])?(lililli1[i1Ill1I(0x1b6,'Swc3')](iiiil1II[i1Ill1I(0x1c2,'8jYo')]),ililI1ii[i1Ill1I(0x238,'A^lf')]=!![]):await notify[i1Ill1I(0x27a,'D@!o')]());})()[l1il1ii1(0x2c1,'A^lf')](Ilil111l=>$[l1il1ii1(0x1a7,'I1)W')](Ilil111l))[l1il1ii1(0x237,'A^lf')](()=>$[l1il1ii1(0x213,'ia3M')]());async function Main(){const iIIlI11=l1il1ii1,lIiIlill={'astVE':function(lI1i111I,IIiI1l1I){return lI1i111I===IIiI1l1I;},'iEaza':iIIlI11(0x23b,'bbMc'),'DQyUm':function(i1Iiliil,iliilii){return i1Iiliil===iliilii;},'YWXHS':iIIlI11(0x1e2,'ulT$'),'WSYcX':function(iiIIlIii,l1iiIIii){return iiIIlIii(l1iiIIii);},'culPV':function(ll1111Il,li1iil1l){return ll1111Il>li1iil1l;},'HYTmD':function(I1lil1,iiiIIIiI){return I1lil1!==iiiIIIiI;},'fBjnW':function(IillIiil,llII1i){return IillIiil(llII1i);},'GfIWF':function(Il1iII,I1IiIili){return Il1iII>=I1IiIili;},'VLPiK':iIIlI11(0x250,'A^lf'),'FgNYB':function(iiIl11,iiIIl1II){return iiIl11<iiIIl1II;},'IwFHm':iIIlI11(0x2dc,'x9!9'),'tmEbN':function(iI11II1i,lI1IilIl){return iI11II1i!==lI1IilIl;},'HIqgZ':function(ii1lIl,Ii1IlIl){return ii1lIl-Ii1IlIl;}};try{if(lIiIlill[iIIlI11(0x2d2,'ZAOo')](venderIdList[iIIlI11(0x1c4,'bVzM')],0x0)){console[iIIlI11(0x2a5,'Uk&i')](lIiIlill[iIIlI11(0x263,'Ka[Z')]);return;}const i1iil11l=[...new Set(venderIdList)];try{if(lIiIlill[iIIlI11(0x1e6,')yiy')](lIiIlill[iIIlI11(0x1db,'82dZ')],lIiIlill[iIIlI11(0x173,'3CST')])){const Ii111I1I=lIiIlill[iIIlI11(0x189,'mG*w')](parseInt,taskThreads);lIiIlill[iIIlI11(0x1be,'bbMc')](Ii111I1I,0x0)&&lIiIlill[iIIlI11(0x1d2,'D@!o')](Ii111I1I,0x1)&&(taskThreads=Ii111I1I);}else li1IIIIl=[];}catch{taskThreads=0x1;}$[iIIlI11(0x2be,'I1)W')]=null;if(runInterval)try{const lIlII111=lIiIlill[iIIlI11(0x266,'I1)W')](parseInt,runInterval);lIiIlill[iIIlI11(0x2bd,'ia3M')](lIlII111,0x0)&&($[iIIlI11(0x1b5,'Qum[')]=lIlII111);}catch{console[iIIlI11(0x23a,'3CST')](lIiIlill[iIIlI11(0x24f,'x9!9')]);}$[iIIlI11(0x1d1,'Swc3')]=![];lIiIlill[iIIlI11(0x2e0,'Ka[Z')](i1iil11l[iIIlI11(0x192,'wsPJ')],0x1)&&(console[iIIlI11(0x26d,'FW2B')](iIIlI11(0x277,'@nYq')+i1iil11l[iIIlI11(0x1a1,'x9!9')]+iIIlI11(0x171,'@nYq')),$[iIIlI11(0x293,'x9!9')]=!![]);for(let i1ll1I11=0x0;lIiIlill[iIIlI11(0x2ce,'m^)d')](i1ll1I11,i1iil11l[iIIlI11(0x25e,')yiy')]);i1ll1I11++){const iI1I1Ili=lIiIlill[iIIlI11(0x289,'m2Hb')][iIIlI11(0x262,'TXbU')]('|');let II11ilI=0x0;while(!![]){switch(iI1I1Ili[II11ilI++]){case'0':lIiIlill[iIIlI11(0x1ea,'xnkD')](i1ll1I11,lIiIlill[iIIlI11(0x19c,'Wqz)')](i1iil11l[iIIlI11(0x23f,'Ka[Z')],0x1))&&console[iIIlI11(0x233,'mr1d')]('\x0a');continue;case'1':$[iIIlI11(0x166,'mr1d')]=![];continue;case'2':await common[iIIlI11(0x2ab,'mG*w')](taskThreads,cookiesArr,taskFnc);continue;case'3':$[iIIlI11(0x20c,'Ka[Z')]=iIIlI11(0x2cb,'Wqz)')+$[iIIlI11(0x297,'A^lf')];continue;case'4':$[iIIlI11(0x2c6,'mr1d')]=i1iil11l[i1ll1I11];continue;case'5':$[iIIlI11(0x2d0,'N[6q')]=![];continue;}break;}}}catch(l1I1I1li){console[iIIlI11(0x1cb,'8jYo')](iIIlI11(0x190,'m2Hb')+l1I1I1li);}}async function taskFnc(l1iiI1i1,l1iIiI1I){const IIiI1lii=l1il1ii1,i11II1Il={'CpdKc':function(ill1llll,iIlIilll){return ill1llll(iIlIilll);},'dRsEL':function(IliIIIii,illliIli){return IliIIIii>illliIli;},'mjSwd':function(Iii1il11,IiI1II){return Iii1il11!==IiI1II;},'IGqHf':IIiI1lii(0x22a,'xnkD'),'Lrhdo':function(ilIlIi1l,ilIIiiIi){return ilIlIi1l>=ilIIiiIi;},'RCCwM':IIiI1lii(0x231,'D@!o'),'khjTH':IIiI1lii(0x1fb,'1[@S'),'zEVZf':IIiI1lii(0x240,'D58m'),'sqfvM':IIiI1lii(0x1dd,')yiy'),'TJrRh':function(l1I1ii1i,lilllI11){return l1I1ii1i===lilllI11;},'WBgfd':function(ii111III,iliIiiI){return ii111III>iliIiiI;},'jnjRc':IIiI1lii(0x243,'3hIp'),'PFnzx':function(lI1l1IIl,i1llliiI){return lI1l1IIl===i1llliiI;},'sNbGN':IIiI1lii(0x2d9,'klT3'),'yLWwE':function(i1Ili1ll,lI1iII1l){return i1Ili1ll===lI1iII1l;},'nCoiw':IIiI1lii(0x16f,'FW2B'),'xYYOv':IIiI1lii(0x242,'tX^H'),'MAAPB':IIiI1lii(0x1df,'mr1d'),'CXYsN':IIiI1lii(0x2bc,'I2k!'),'CdkuO':function(iiliilIl,ilIil1ii){return iiliilIl!==ilIil1ii;},'pOnfj':IIiI1lii(0x2a9,'Qum['),'pEBMz':IIiI1lii(0x21c,'m2Hb'),'qDrVN':IIiI1lii(0x217,'bVzM'),'pbugx':IIiI1lii(0x2d8,'mr1d'),'xktqx':function(Iii1II1l,IlIliii1){return Iii1II1l!==IlIliii1;},'BLmzm':IIiI1lii(0x2ae,'ulT$'),'FzQBm':IIiI1lii(0x17e,'@nYq'),'GDzxo':IIiI1lii(0x2df,'wsPJ'),'MvtdF':function(lIillI11,IIiIIIl){return lIillI11||IIiIIIl;},'Kcjsx':IIiI1lii(0x17c,'rtWl'),'UQjNM':IIiI1lii(0x2ba,'m^)d'),'vZqpf':IIiI1lii(0x165,'I2k!'),'UXzEp':function(i1IIi1ii,IiIIliI1){return i1IIi1ii===IiIIliI1;},'IMqJP':IIiI1lii(0x1e4,'3CST'),'yRCfE':IIiI1lii(0x1fd,'N[6q'),'Yenqs':function(lllI11I1,Iii11I){return lllI11I1!==Iii11I;},'UUWBr':IIiI1lii(0x256,'VQ5a'),'MOnAz':IIiI1lii(0x2a6,')yiy'),'SkndY':IIiI1lii(0x1a5,'ia3M'),'GYQhO':function(ii1l111I,lIlI1ill){return ii1l111I===lIlI1ill;},'Oezzk':IIiI1lii(0x2b7,'4X6i'),'kkFIi':function(ii11illi,iI1l11I1){return ii11illi===iI1l11I1;},'RkTIs':IIiI1lii(0x1ef,'D@!o'),'gddLY':IIiI1lii(0x294,'4X6i'),'JPRIh':IIiI1lii(0x24e,'3hIp'),'RvBgn':IIiI1lii(0x172,'U9XY'),'QtTBu':IIiI1lii(0x16e,'1[@S'),'VeFgk':IIiI1lii(0x2cd,'h**c'),'ZBbte':IIiI1lii(0x275,'Ka[Z'),'AdigN':IIiI1lii(0x259,'yl2R'),'RQnAf':IIiI1lii(0x28a,'mr1d'),'TrknM':IIiI1lii(0x22d,'m2Hb'),'YTgir':IIiI1lii(0x2a7,'y^s7'),'KxusJ':IIiI1lii(0x176,'3hIp'),'aPyvf':IIiI1lii(0x2e3,'tX^H'),'Whiip':IIiI1lii(0x2c2,'WchR'),'nyZHe':IIiI1lii(0x199,'1[@S'),'XfCLB':function(iIiIl11l,lllIl1I){return iIiIl11l===lllIl1I;},'jAomW':IIiI1lii(0x2a1,'y^s7'),'lZyUX':IIiI1lii(0x1b0,'D58m'),'inXsM':IIiI1lii(0x26b,'Ka[Z'),'MzQbp':function(I1IillII,l1ii1iII){return I1IillII<l1ii1iII;},'bFsQj':function(Iii1iIiI,II1l1l1l,lIl1iii1){return Iii1iIiI(II1l1l1l,lIl1iii1);},'EbZZt':function(li1l1II,l1Ii1II){return li1l1II>=l1Ii1II;},'AZEVx':IIiI1lii(0x18e,'x9!9'),'PiErf':IIiI1lii(0x1f5,'D@!o'),'lmQCg':IIiI1lii(0x20b,'bVzM'),'OkzUD':function(Iil111Il,liiiI1Il){return Iil111Il===liiiI1Il;},'VUPFb':IIiI1lii(0x22e,'bVzM'),'UpFPK':IIiI1lii(0x1e5,'3CST'),'QRmGB':function(i1iI11ll,lIilIIIl){return i1iI11ll(lIilIIIl);},'EhGFe':function(li1IIiII,III1iil){return li1IIiII(III1iil);},'uQDRo':function(l11I1iil,I1I1Ilil){return l11I1iil===I1I1Ilil;},'WyPHs':function(ll1iII1l,iIIi1I1l){return ll1iII1l!==iIIi1I1l;},'FKdrV':IIiI1lii(0x1f1,'Swc3')};if($[IIiI1lii(0x236,'ulT$')])return{'runEnd':!![]};const lIl1il11=i11II1Il[IIiI1lii(0x204,'@nYq')](decodeURIComponent,common[IIiI1lii(0x264,'I2k!')](l1iiI1i1,i11II1Il[IIiI1lii(0x2b5,'m^)d')])),l1iiii1i=IIiI1lii(0x251,'1[@S')+l1iIiI1I+'】'+lIl1il11+':'+($[IIiI1lii(0x245,'bbMc')]?$[IIiI1lii(0x297,'A^lf')]+IIiI1lii(0x269,'m2Hb'):''),I1liI1II=notify[IIiI1lii(0x20d,'xnkD')](l1iIiI1I,lIl1il11),i1iIiIi1=await common[IIiI1lii(0x298,'U9XY')](l1iiI1i1);if(!i1iIiIi1&&i11II1Il[IIiI1lii(0x2e9,'WchR')](typeof i1iIiIi1,i11II1Il[IIiI1lii(0x209,'bVzM')])){console[IIiI1lii(0x26d,'FW2B')](l1iiii1i+IIiI1lii(0x1d3,'Qum[')),I1liI1II[IIiI1lii(0x257,'klT3')](i11II1Il[IIiI1lii(0x183,'N[6q')]);return;}const ililIl1I=common[IIiI1lii(0x202,'x9!9')](lIl1il11),iIi1llI1=common[IIiI1lii(0x20a,'s(BH')](lIl1il11),lilIIlil=common[IIiI1lii(0x1b3,'m2Hb')]();if($[IIiI1lii(0x235,'82dZ')])return{'runEnd':!![]};if(!$[IIiI1lii(0x228,'PIZ&')]){if(i11II1Il[IIiI1lii(0x246,'VQ5a')](i11II1Il[IIiI1lii(0x254,'mG*w')],i11II1Il[IIiI1lii(0x160,'D@!o')]))liIii11I=!![];else{$[IIiI1lii(0x169,'Jc#x')]=!![],await i11II1Il[IIiI1lii(0x1d9,'moXt')](iIlIliI,i11II1Il[IIiI1lii(0x20f,'82dZ')]);if($[IIiI1lii(0x17d,'69mm')])return{'runEnd':!![]};if($[IIiI1lii(0x280,'Wqz)')])await $[IIiI1lii(0x1c6,'4X6i')]($[IIiI1lii(0x170,'PIZ&')]);}}let iI1IIiiI;await i11II1Il[IIiI1lii(0x211,'h**c')](iIlIliI,i11II1Il[IIiI1lii(0x21b,'zqvU')]);if($[IIiI1lii(0x1f3,'8jYo')])await $[IIiI1lii(0x185,'ulT$')]($[IIiI1lii(0x292,')yiy')]);if(i11II1Il[IIiI1lii(0x27c,'4X6i')](iI1IIiiI,0x2))console[IIiI1lii(0x26d,'FW2B')](l1iiii1i+IIiI1lii(0x1e0,'rtWl'));else{if(i11II1Il[IIiI1lii(0x214,'bbMc')](i11II1Il[IIiI1lii(0x1a2,'4X6i')],i11II1Il[IIiI1lii(0x15d,'mG*w')]))l1lii1iI[IIiI1lii(0x1f3,'8jYo')]=IilIlii;else{await i11II1Il[IIiI1lii(0x239,'D58m')](iIlIliI,i11II1Il[IIiI1lii(0x1da,'D@!o')]);if($[IIiI1lii(0x1ba,'ulT$')])await $[IIiI1lii(0x1ca,'Swc3')]($[IIiI1lii(0x1f8,'1[@S')]);}}function l1ilil1i(Il1ili11,Ii1l1il){const liii1i=IIiI1lii,Il11illl={'OEkXj':i11II1Il[liii1i(0x191,'PIZ&')],'dfjST':i11II1Il[liii1i(0x1a3,'rtWl')]};try{switch(Il1ili11){case i11II1Il[liii1i(0x2a3,'bbMc')]:if(i11II1Il[liii1i(0x224,')yiy')](Ii1l1il[liii1i(0x164,'8jYo')],'0')&&Ii1l1il[liii1i(0x29f,'I2k!')]){let {awardDescription:lIi1Ii1i}=Ii1l1il[liii1i(0x2aa,'U9XY')];if(lIi1Ii1i&&Array[liii1i(0x281,'l6RY')](lIi1Ii1i)&&i11II1Il[liii1i(0x2e8,'I2k!')](lIi1Ii1i[liii1i(0x163,'zqvU')],0x0)){if(i11II1Il[liii1i(0x226,'WchR')](i11II1Il[liii1i(0x1ae,'Ka[Z')],i11II1Il[liii1i(0x247,'rtWl')])){const lI1i1ili=i11II1Il[liii1i(0x222,'wsPJ')](i1l1Il1i,l1l1il1);i11II1Il[liii1i(0x2b0,'klT3')](lI1i1ili,0x0)&&i11II1Il[liii1i(0x1e7,'x9!9')](lI1i1ili,0x1)&&(lIiiI1II=lI1i1ili);}else lIi1Ii1i=lIi1Ii1i[liii1i(0x272,')yiy')](iI1lI1ii=>iI1lI1ii!=='');}else i11II1Il[liii1i(0x23c,'wsPJ')](i11II1Il[liii1i(0x258,'69mm')],i11II1Il[liii1i(0x1ec,'Qum[')])?lIi1Ii1i=[]:(delete IIlllIIl[liii1i(0x2bb,'zqvU')],delete i1illii[liii1i(0x1b1,'I1)W')][Il11illl[liii1i(0x1b9,'Ka[Z')]]);if(i11II1Il[liii1i(0x29c,'TXbU')](lIi1Ii1i[liii1i(0x212,'l6RY')],0x0)){console[liii1i(0x161,'A^lf')]('【'+$[liii1i(0x253,'3hIp')]+liii1i(0x1d7,'wsPJ')),$[liii1i(0x19d,'bVzM')]=!![];return;}console[liii1i(0x18f,'xnkD')](liii1i(0x1dc,'I1)W')+$[liii1i(0x195,'PIZ&')]);let il11l11I=![];for(const lIi111I1 of lIi1Ii1i){!lIi111I1[liii1i(0x24b,'Ka[Z')]('券')&&(i11II1Il[liii1i(0x22c,'Ka[Z')](i11II1Il[liii1i(0x218,'3CST')],i11II1Il[liii1i(0x215,'I2k!')])?il11l11I=!![]:Il1IIi1I[liii1i(0x27e,'0)71')](liIi1Ii+liii1i(0x2eb,'Swc3'))),console[liii1i(0x276,'PIZ&')](lIi111I1);}!il11l11I&&(i11II1Il[liii1i(0x2bf,'Wqz)')](i11II1Il[liii1i(0x1bb,'82dZ')],i11II1Il[liii1i(0x1a8,'s(BH')])?l1l1Il=iI1l1l1l:(console[liii1i(0x28d,'s(BH')](i11II1Il[liii1i(0x181,'0)71')]),$[liii1i(0x2ad,'yl2R')]=!![])),console[liii1i(0x278,'m2Hb')]('');}else{if(i11II1Il[liii1i(0x196,'Uk&i')](i11II1Il[liii1i(0x274,'@nYq')],i11II1Il[liii1i(0x295,'rtWl')])){console[liii1i(0x28f,'3hIp')]('【'+$[liii1i(0x19b,'bVzM')]+liii1i(0x193,'mG*w')),$[liii1i(0x2d1,'bbMc')]=!![];return;}else{Iillll1[liii1i(0x255,'1[@S')](iI1ilIlI+liii1i(0x299,'moXt')),IiiI1ii[liii1i(0x1ad,'zqvU')](i11II1Il[liii1i(0x2a0,'m2Hb')]);return;}}break;case i11II1Il[liii1i(0x205,'m^)d')]:if(i11II1Il[liii1i(0x1c1,'D@!o')](Ii1l1il,i11II1Il[liii1i(0x1e9,'moXt')])){if(i11II1Il[liii1i(0x18b,'klT3')](i11II1Il[liii1i(0x2dd,'PIZ&')],i11II1Il[liii1i(0x271,'ulT$')])){lil11lII[liii1i(0x23d,'x9!9')]('【'+IiiiillI[liii1i(0x184,'1[@S')]+liii1i(0x1ff,'Swc3')),I1iil111[liii1i(0x180,'3hIp')]=!![];return;}else{console[liii1i(0x1cf,'ia3M')]('【'+$[liii1i(0x2e6,'@nYq')]+liii1i(0x2b2,'Jc#x')),$[liii1i(0x244,'1[@S')]=!![];return;}}i11II1Il[liii1i(0x15f,'x9!9')](Ii1l1il[liii1i(0x23e,'I2k!')],'0')&&Ii1l1il[liii1i(0x1c5,'TXbU')]?i11II1Il[liii1i(0x285,'ZAOo')](i11II1Il[liii1i(0x1c9,'zqvU')],i11II1Il[liii1i(0x1f6,'3CST')])?lI1ilIIi=IIl111il[liii1i(0x1f2,'3CST')](IIliI1li=>IIliI1li!==''):iI1IIiiI=Ii1l1il[liii1i(0x19a,'0)71')]?.[liii1i(0x2ea,'ulT$')]?.[liii1i(0x1ce,'Swc3')]:console[liii1i(0x2c4,')yiy')](l1iiii1i+liii1i(0x198,'Ka[Z'));break;case i11II1Il[liii1i(0x284,'WchR')]:if(i11II1Il[liii1i(0x168,'l6RY')](Ii1l1il[liii1i(0x182,'0)71')],'0')&&Ii1l1il[liii1i(0x27d,'FW2B')]){const IiI1iII=Ii1l1il[liii1i(0x290,'1[@S')][liii1i(0x2e2,')yiy')];let IIl1Il1l=Ii1l1il[liii1i(0x249,'Jc#x')]?.[liii1i(0x2e1,'l6RY')]?.[liii1i(0x2d5,'x9!9')]||'';if(i11II1Il[liii1i(0x2af,'I1)W')](!IiI1iII,!IIl1Il1l)){console[liii1i(0x179,'Ka[Z')](l1iiii1i+liii1i(0x1a0,'PIZ&')),I1liI1II[liii1i(0x210,'N[6q')](i11II1Il[liii1i(0x2db,'8jYo')]);return;}IIl1Il1l[liii1i(0x1b2,'mG*w')](':')&&(IIl1Il1l=IIl1Il1l[liii1i(0x282,'ulT$')](':')[0x1]);let ll1Ii1I1='';while(!ll1Ii1I1){if(i11II1Il[liii1i(0x1d5,'4X6i')](i11II1Il[liii1i(0x1f9,'8jYo')],i11II1Il[liii1i(0x16b,'U9XY')])){if(['京豆','积分'][liii1i(0x22b,'8jYo')](ililliI=>IIl1Il1l[liii1i(0x21a,'klT3')](ililliI))){if(/\d/[liii1i(0x201,')yiy')](IIl1Il1l)){if(i11II1Il[liii1i(0x178,'moXt')](i11II1Il[liii1i(0x16a,'69mm')],i11II1Il[liii1i(0x2b3,'8jYo')]))try{const iIiIIIl=i11II1Il[liii1i(0x2ca,'3hIp')](i1IlIlil,iliII1i);i11II1Il[liii1i(0x1f7,'8jYo')](iIiIIIl,0x0)&&(I1l1lll[liii1i(0x1bd,'m2Hb')]=iIiIIIl);}catch{Ii1I1I[liii1i(0x252,'bVzM')](i11II1Il[liii1i(0x24d,'mr1d')]);}else{const ll1IIli1=IIl1Il1l[liii1i(0x221,'8jYo')](/\d+/g)[liii1i(0x18a,'82dZ')]('');if(IIl1Il1l[liii1i(0x177,'TXbU')]('京豆'))i11II1Il[liii1i(0x2e7,'m2Hb')](i11II1Il[liii1i(0x220,'tX^H')],i11II1Il[liii1i(0x1fe,'zqvU')])?ll1Ii1I1=ll1IIli1+liii1i(0x26e,'4X6i'):iiiIiI1I=il1lI11I[liii1i(0x27d,'FW2B')]?.[liii1i(0x232,'moXt')]?.[liii1i(0x283,'mr1d')];else IIl1Il1l[liii1i(0x29a,'8jYo')]('积分')&&(ll1Ii1I1=ll1IIli1+liii1i(0x208,'m2Hb'));break;}}}else{if(IIl1Il1l[liii1i(0x2d3,'I2k!')]('券')){ll1Ii1I1=i11II1Il[liii1i(0x188,'klT3')];break;}}ll1Ii1I1=IIl1Il1l;break;}else Ii1llI1[liii1i(0x2b8,'Wqz)')](i11IiIi1+liii1i(0x1eb,'s(BH'));}console[liii1i(0x1d8,'ulT$')](''+l1iiii1i+ll1Ii1I1),I1liI1II[liii1i(0x17f,'m^)d')](ll1Ii1I1);}else console[liii1i(0x27e,'0)71')](l1iiii1i+liii1i(0x18d,'D58m'));break;}}catch(Il1iilll){i11II1Il[liii1i(0x2cc,'l6RY')](i11II1Il[liii1i(0x2c7,'FW2B')],i11II1Il[liii1i(0x2a2,'mG*w')])?console[liii1i(0x1cb,'8jYo')](liii1i(0x2b6,'Wqz)')+Il1ili11+liii1i(0x1ac,'Jc#x')+(Il1iilll[liii1i(0x1cc,'4X6i')]||Il1iilll)):(IIIii1lI[liii1i(0x273,'moXt')](i1i1lllI[liii1i(0x1f0,'U9XY')],Il11illl[liii1i(0x18c,'m^)d')]),l1iliiIl[liii1i(0x24a,'s(BH')](0x1));}}async function iIlIliI(Il1ii1i){const iIlII1ii=IIiI1lii;if(i11II1Il[iIlII1ii(0x29e,'PIZ&')](i11II1Il[iIlII1ii(0x1af,'h**c')],i11II1Il[iIlII1ii(0x1a6,'VQ5a')]))!iI1Il11I[iIlII1ii(0x29a,'8jYo')]('券')&&(l1i1l1l=!![]),II11ll1i[iIlII1ii(0x1e3,'TXbU')](Ii1Ilili);else{if($[iIlII1ii(0x203,'l6RY')])return;let II1llill='',iI11ilIl=null,i11i11ll=null,IiIlIIIi=i11II1Il[iIlII1ii(0x2cf,'4X6i')],i1li1lI={};switch(Il1ii1i){case i11II1Il[iIlII1ii(0x2de,'x9!9')]:case i11II1Il[iIlII1ii(0x29b,'I2k!')]:II1llill=i11II1Il[iIlII1ii(0x17b,'h**c')],i1li1lI={'vendorId':$[iIlII1ii(0x26c,'klT3')]},i11i11ll={'functionId':Il1ii1i},iI11ilIl=common[iIlII1ii(0x28e,'N[6q')](await common[iIlII1ii(0x15e,'69mm')](Il1ii1i,i1li1lI));break;case i11II1Il[iIlII1ii(0x24c,'82dZ')]:II1llill=i11II1Il[iIlII1ii(0x2b1,'mr1d')],i1li1lI={'vendorId':$[iIlII1ii(0x1e1,'Uk&i')],'sourceRpc':i11II1Il[iIlII1ii(0x227,'moXt')]},i11i11ll={'functionId':i11II1Il[iIlII1ii(0x1e8,'3CST')]},iI11ilIl=common[iIlII1ii(0x19f,'wsPJ')](await common[iIlII1ii(0x261,'3CST')](i11II1Il[iIlII1ii(0x288,'I1)W')],i1li1lI));break;default:console[iIlII1ii(0x1d8,'ulT$')](iIlII1ii(0x175,'WchR')+Il1ii1i);return;}const iilIiiIl={'url':II1llill,'method':IiIlIIIi,'headers':{'Accept':i11II1Il[iIlII1ii(0x225,'klT3')],'Accept-Encoding':i11II1Il[iIlII1ii(0x1a9,'Qum[')],'Accept-Language':i11II1Il[iIlII1ii(0x2b9,'82dZ')],'Connection':i11II1Il[iIlII1ii(0x1d0,'@nYq')],'Content-Type':i11II1Il[iIlII1ii(0x267,'4X6i')],'Cookie':l1iiI1i1,'J-E-H':lilIIlil,'J-E-C':iIi1llI1,'Sec-Fetch-Dest':i11II1Il[iIlII1ii(0x28b,'8jYo')],'Sec-Fetch-Mode':i11II1Il[iIlII1ii(0x2c9,'bVzM')],'Sec-Fetch-Site':i11II1Il[iIlII1ii(0x1b7,'8jYo')],'User-Agent':ililIl1I,'x-referer-package':i11II1Il[iIlII1ii(0x1bf,'Swc3')],'x-rp-client':i11II1Il[iIlII1ii(0x197,'s(BH')]},'params':i11i11ll,'data':iI11ilIl,'timeout':0x7530};i11II1Il[iIlII1ii(0x1b4,'69mm')](IiIlIIIi,i11II1Il[iIlII1ii(0x22f,'m2Hb')])&&(i11II1Il[iIlII1ii(0x268,'mG*w')](i11II1Il[iIlII1ii(0x216,'3hIp')],i11II1Il[iIlII1ii(0x1d6,'bVzM')])?(delete iilIiiIl[iIlII1ii(0x2bb,'zqvU')],delete iilIiiIl[iIlII1ii(0x17a,'m^)d')][i11II1Il[iIlII1ii(0x1c7,'N[6q')]]):I1lIiIl[iIlII1ii(0x27f,'U9XY')](l11I11Ii+iIlII1ii(0x174,'mr1d')));const IIiI1i=0x1;let li11lll=0x0,IiilIi=null,IiiiiIii=![];while(i11II1Il[iIlII1ii(0x25c,'Jc#x')](li11lll,IIiI1i)){const illiiiIl=await common[iIlII1ii(0x279,'A^lf')](iilIiiIl);if(!illiiiIl[iIlII1ii(0x223,'ulT$')]){IiilIi=iIlII1ii(0x2d7,'wsPJ')+Il1ii1i+iIlII1ii(0x1de,'69mm')+illiiiIl[iIlII1ii(0x260,'m^)d')],li11lll++;continue;}if(!illiiiIl[iIlII1ii(0x287,'D@!o')]){IiilIi=iIlII1ii(0x248,'0)71')+Il1ii1i+iIlII1ii(0x186,'klT3'),li11lll++;continue;}i11II1Il[iIlII1ii(0x291,'m^)d')](l1ilil1i,Il1ii1i,illiiiIl[iIlII1ii(0x2c5,'@nYq')]),IiiiiIii=![];break;}i11II1Il[iIlII1ii(0x28c,'VQ5a')](li11lll,IIiI1i)&&(i11II1Il[iIlII1ii(0x194,'82dZ')](i11II1Il[iIlII1ii(0x2a8,'bbMc')],i11II1Il[iIlII1ii(0x2c3,'PIZ&')])?liIlIl1=liI1Ii1l[iIlII1ii(0x29d,'I2k!')](':')[0x1]:(console[iIlII1ii(0x200,'Qum[')](IiilIi),IiiiiIii&&($[iIlII1ii(0x1ed,'klT3')]=!![])));}}}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)}