diff --git a/jd_supermarket_draw.js b/jd_supermarket_draw.js new file mode 100644 index 0000000..27c2641 --- /dev/null +++ b/jd_supermarket_draw.js @@ -0,0 +1,15 @@ +/* +活动名称:超市卡抽奖 +环境变量:jd_supermarket_threads // 控制并发线程数(正整数),默认1,最大3,尽量使用默认值,否则请开启代理运行 + jd_supermarket_interval // 自定义运行间隔时长(整数,单位毫秒),默认1000 + jd_supermarket_notify // 是否推送通知(true/false),默认不推送 + jd_supermarket_pinFilter // 账号pin过滤,多个用@进行分割 + +cron:1 1 1 1 * + +*/ + +const $ = new Env('超市卡抽奖') +const _0x3e14cf=_0x53f7;(function(_0x39d003,_0x5c2d7f){const _0x479951=_0x53f7,_0x4558f1=_0x39d003();while(!![]){try{const _0x5b98d7=-parseInt(_0x479951(0xe6,'VkgU'))/0x1*(parseInt(_0x479951(0xec,'sGnG'))/0x2)+parseInt(_0x479951(0x10b,'cdx5'))/0x3*(-parseInt(_0x479951(0x19e,'[UiV'))/0x4)+-parseInt(_0x479951(0x8a,'J[qY'))/0x5*(parseInt(_0x479951(0xb3,'0m4u'))/0x6)+-parseInt(_0x479951(0x76,'xq%K'))/0x7*(-parseInt(_0x479951(0xab,'dHLd'))/0x8)+parseInt(_0x479951(0x78,'0m4u'))/0x9*(-parseInt(_0x479951(0xc1,'500v'))/0xa)+parseInt(_0x479951(0xb4,'Lvd^'))/0xb*(parseInt(_0x479951(0x147,'$q30'))/0xc)+-parseInt(_0x479951(0x198,'6GjZ'))/0xd*(-parseInt(_0x479951(0xe2,'OHgZ'))/0xe);if(_0x5b98d7===_0x5c2d7f)break;else _0x4558f1['push'](_0x4558f1['shift']());}catch(_0xeaea3e){_0x4558f1['push'](_0x4558f1['shift']());}}}(_0x4e82,0xb6ccd));const jdCookie=require('./jdCookie'),notify=require(_0x3e14cf(0xc8,'J[qY')),common=require(_0x3e14cf(0xe8,'ST%N')),{H5st}=require(_0x3e14cf(0x110,'6GjZ'));console[_0x3e14cf(0x16c,'Ai#X')](''),console['log'](_0x3e14cf(0x74,'&hzA')+$['name']+_0x3e14cf(0x146,'Q2to')),console[_0x3e14cf(0x109,'VkgU')](_0x3e14cf(0x183,'zju4')),console[_0x3e14cf(0xda,'ST%N')](_0x3e14cf(0x107,'1c]M')),console[_0x3e14cf(0x130,'yBjC')](_0x3e14cf(0x7f,'oIWm')),console[_0x3e14cf(0x10f,'zju4')]('jd_supermarket_pinFilter\x20//\x20账号pin过滤,多个用@进行分割'),console['log']('=========='+$['name']+'提示结束=========='),console[_0x3e14cf(0x109,'VkgU')]('');function _0x4e82(){const _0x53af2e=['j2ZcKq','e8orW7S','pSoWW7bpW655zSkmFSkBW6LDW7BdOSorWOFdSCoiyx/cGSkjnCo+hUAyNUwrG+McI+EFRSoeW5jalSoyW7jLWOddSaldLCkn772K6BUf6k+J5lMn5O6f6yoi','W7pcSqrBWRO+W5q','WPXmbLvZW4O','ACk0W5BdJW','Cv/dPdZdJSoTWQqjW4fyh8o7WObvW7XDW6lcNqDtnCkMWQ4ftg4TtSorjmkxWPbXa0ddVCo3WQjxW4ddG3CExuBdUZtdV8oqW67cULivW7lcKcj3W4XQBvBcHCk5wmk1EmkVWR51WRSKW7K','W7VdRY/cHeNdKCo+WQ/cMSolW7Oc','tIPLW4vgDSkEAmk9W6NdQmo2j1BdSa','mSotWRbcAKLUiNGTsmkvW7eix8kBsCoqlG','rSkKWO/cISkYza','EKRdPc/dLq','a8kcEYe','uCkzW7qsg8kgCa8','W6NdQWNcJftdNCotWQZcLW','WOv7DJ/dHbtcGmo/WRpcTG','WRtcHXz9WQOrW47dRq','4P+5WRxOHAJMNRNOV7pOOjRPGRZLIOdKUyJPL5xORkTf','W5mInw4','emkczJq','qcFdMty','jCkPWRDYj8oBW4HO','lZ8kW4pdUa','WQxcLbDBWO0p','kd45emo1iG','jh7cMZ4','6lEk5BMq5y6T5OQH5AAUWRa','F0ldVdJdMmkL','BCkHW43dKSkmlfKoba','yXeFoq','WQZdS14','kaagW7G','m3BcJXSuWODEaw1UECkGWPFdGSocWOtdPWldOw83','W4GykwNdJ8kSWOzRW4ZcNbRcPCouW5CKW7/dH8klW4K','6lwy5BUu5y+05OM65AsxWP0','WO3dS0nQWQJdG8kFW6HKWQhcQCoflSo9W6OcWQi+usK/W6ldQKOAW4NcUSkzESkIuvZdUXJcN8oWe8ocWPq+BMPjWRz2BaLyvmkYW5ZdJ8o8F8kUW5rLW4pdLtRdHHBdLCkXffNdKSoEW6RcUJBdOsrTdNefWQ/dKCkfs8oAtmoeaSkWWPZcH3HZWO1DqcpcPsTKkNb9W7PXWR18EIiabmkdhX3cP8kTv8oVcSosmdSCW4JcLv0dzxvFW7iYi8kVWOhdP8oQr8khWQddT8oGm8kyW4/dHSoHwmkaW5RcSmoImapcQavSW5lcVW','W5nAWO7cP8oEcvVdPq','WRdcS8oMWRqGWQhdHW','W7NdSb/cGa','W5ratCktl8orcqy','zZTXmSkjDaJcSSkUo1a','iHGFz2FcLa','W4qioG','Fw4BW6/dUSkgja','W6NdUmkI','bYu2sLZcPJq','x8kAbmk1FCkiW7ymWOjHWRZcICky','EfncWQeksb3cRCoZv8ozW6iMW6TKWRBcH8kvWRe','qcddGYtdHfldNSooW6W','WQ3cLqi','44cK6lE35yYw','W5frWPtcUa','W7xcRGO2W7pcMSomWOizW5RdRmkXsG','fCoRtq','W7dcH3dcTIVdGtGMhWKDBW','W7hcRqa0W73dI8kwWQ8lW47dQa','nx3cTW','wmk+WOy','wmk0WO/cQmkOAa','jCkOWQC','W4q2mwRdRcNcPSoFWPpcGuJcU8o+y8kJWQqDW4C','WRddLJddSN/cGX8Dmq','WQtcHXf3','WQBdKJFdPG','ECkWW4VdS8oxoeq','DSkdWQ7cMmkprCo2','xmkLWPxcV8oMl8kgW4lcVfVcLJj4WPNcM8oIBNGGqxHls8o/qYrMWQnApmoutu8KW50FWP7cISo0W7pcR8kyWRzqqhrK','W4Ppr8kl','c8oBw3ZcHSouxq4','n3O7qCoFrahcQCkF','p8kZWQz3pmoyW4r9rW','imkIWRP5jSox','qcddGYtdHexdImoqW69tWOldOdO1BG','WQXRi2i','WQdcP0FdI8oJqmoeW5zIW5fNWPmpkmkvW5/cNGtdVmktDY0FaW','s8kdW64TcSkYENNcK0FdNx4ZjmkYBqv7yxa0WO0umcOdWQ0','og8TyCoIDq3cTCkch2iupNaTWO7cRrtcO8ofWQC','ggZcJG','W6NdQGVcGeJdTSoFWQVcICoFW7yMBmkZtSolqdNcSW10WQC','W58zsSooBq','W54AnhtdRCkSWP9NW5O','z8kSW5yNWQ06W7BdV8kpeSkoW6pdJmoubG','hCodtK/dUx/cPW','xmkLWPxcV8kVoSkgWO7cSK/cMJiNWOldHSk/EsjHvc5qfmo8','iwSHCq','BSkdAG','cSozq0K','CCkPaSoeWOi','wUwSLoAiUU+/QEwoQoAjSEwNQW','ECkQW4e','4P+SW6dMNBVOG4tMRRZNOzpLPPhNKkddHW','hSkGWRe','C+IUUEAXTowqKUw6HSoZ','xd3dJq','CbeclmkqBq5K','gCoCvSo0p8oo','ESkJcW','x8kzB0NcUSok','a8oxxq','px7cUCkSW4GjtSo3W44','AKreWQesrGdcOSoV','tZRdJ2pdPc0yW75Zgq','d8o5q8kre8kLW5dcUG','WQ3cPMZdU8o5x8okW41QW6z0WPqFoq','eCkrybJcUSoF','WOBdGHpdMgCaWPe','W7SQCa','hN3dNYRdIgRdLmkrW5TFWOFdIZCRvhJcOuuGWOZcTCoRW6S','4PMVjoIgREwUNEs5V+I9HEIJNEMvN+MAKoAvSUMwMoIVJUE8H+MwMoITUG','FmkTW5iYWQXmWRZcSCkjf8kcWOxdJSkxcxBdMaxdNmkYaa5GbG','owRcLtG6WPBcRW','vSkagr7cQd7cPWpcQ2rfva','WRpdQuLMWRBdO8kBWQy2W7RdVmkPACoGW44pWR8P','EebfWOWtDqJcT8o9','D8k6W4W','utbY','W55bsSkA','xdXHW4Lcu8kpymk/W6/dKSoojfRdOvKUW5dcUW','fCoQemoBB8o1WPfpkmoAufBcV0W','WQ/cSwRdTCoLvW','W4HrWPZcVSoohKO','W7VdNSkNAa3cOmoZvSk5WPm2W6P8W4q9W7a9W5q8n0DFkhBdO8o6WPXqW5fVmW','WQ/cS8oLWQiGWRi','W4aIkhVdIGZcRSoB','ewVcLtRdIG8VW40','eCoSt8kidSkO','kdFcUftdJCkyW5a','pg/cUSkWW4mDuW','Ar3cRa','W5tdTGBdVfu/WO/dMCkRWR/cMZ/cIXj0hCoRW43cPq','pmkYWQD2','r8kKWOlcRmk5C8oA','W54TiMpdQWhcPSon','WQTLm2y','WPHwmtBdTrv+WQiSia','ew3cNW','h8k8WRe','Cbecla','WQvGghrdW6xdTmozACoLWPuBdmo1W4RdK8oYW7FdGseEueZdKCo0WOVcLoIhQ+wTKEs6J+I8V+IJP+MwI+MzNUAwN+MvHU+8QoM7UUITVqxcNCkgWRq','WOfzidVdRqjFWRa','W5NdUHu','8lg6N8on','WOWwhComA8kajZHSW73cUL0','xVc6KyWC6l2l6kgf57Uq5P2Igq','W5PlwSkYp8oghXrtW5O','DcfvW4a','WQBcRh8','WO7dRYrnWRzrW6yjWRxcGmofCMzRW5a8','iMxcRa','e8kSWQiFBmoHW69dy8kzW7RdNdaHWOBdVNhcHNu','lCosrSky','umkeDgO','u8kfFMJcVmojsXq','wt5HW4e','j3NcISk3W5qpxG','W740ax95W6ZdOSoc','W7tcNuVdNmodmmoWWRNcHe/cT8o0','W5KjnhRdNmkgWP1MW4W','oCoNW4G','WQNcIaz6WOSmW5VdUW','nmogWPbVEfzhoh8y','WOveja','BentWRO/tG3cOq','wokCHaO','WQvGghrdW6xdTmozACoLWPuBdmo1W4RdJSo0W7hdGtimqG','bmkwyt0','WQtdVu1I','W5LpwSkE','FMFdVstdImkpW63cSuiqpa','g8o3tSka','hSoQcSoWDmo6','Dv9r','WQhcLrz/WPKg','WP3MIOZLIQyJ4P+bWO8','5lYA5Ocm5yI1','WQJcGWrYWPSAW40','WR9WghDFW7S','5ysx6lsr5BQT5y2D','kr4oDMddI0quvaddSxy7BSobc8ouvLSjcxZdRa','DMqi','WOrsltddRa4','EfVdHc3dJSk8W4DpW4jE','lquD','WRxdNaJcImkjsSo/WPdcQL7cKmoAWRtdUSokWOpdMSkf','DvvyWQ8isq','W6ZdRSkMW7rWW7pdQCk4jIOSWRO','pYfr','EcBcM3BcICkLW7C','ggdcNtddNq','5lQ15yQR5AE66lEG776Q5Rop5PYU6iYM5y2H5yQO5lMn5yUqW7qd','fmoMha','wwqbW5pcQSkBjh3dJumYkG','k8kIWQbtn8omW556wCkr','aCo6fmoYCSoEWP1ahmoBvgRcPviN','AX8m','W40Akwe','isKLoSoYlq','WQ7dLI3dOgFcNW','W5pdVaO','W5tdPGhdVeq4','WQnRia','5y+A6ysJ6k+55PUEW4uiWQPFc8kfgICbW4S','A8kghSouhmkfWRpcSCkUFe8','dmocW7G1fSk6Bcu','jtGJhSo3i00yqdBcT3pcGZ7dGmoHySk2WRW','WRpcKXvZWOWKW5VdQq1SW5mJWRr1W5vWWRDrWRtcHfz4','5l2n5Ogw5yU8jW','AbNcUSk2W6zP','DutdTW','tSkkBM/cHCoeqW4LWO9Jqmo7WQ4','WRNcT8oHWQy','ESk0W4VdMG','FK7dPatcImkKW78','pxpcPaK','W4ZcRZy','kdqW','rmo/WRivlG','nxVcVqevWQrpaq','BMOCW4ZcICkCpJNdQLiNkW','WQxcNGXI','W6lORytMSihLPRBOTlBdL+kFJK4','oMuV','ncTcWPnZWQCzW4ddKWKGW4dcHmkWBKeNWQBdTa','D8kFAmkIWR5AW7SowCop','DILnW5v7W6y','W4Wjl03dISkI','zCkGbCoYWQy','CmkWW5RdN8kWlL0hcZXcy0ngrmk9WRddQIbRhW','lSosxmkhzCkvWP/cQ8kqzuRcNa','uCk/WPC','F8kLW6VdMSkrihqnctHOya','EKtdVI/dQCk2W7Hn','DSkHW4VdI8krCr9hhcLOiKedr8k8W5FdPYTJscfiW6C','FvfcWQLCrqBcOCoL','WQZdLIBdO0hcKJ8biaGCySoPWRm/W7dcKCkTWQZcTCoc','lSobwSkj','WQ/dHGS','xCkAWQ9Rv8oSEHpcSu7dS2W','5Rs85yUy5As95zkz77+E','jNdcKq','nCoKW5X4W7rDySknEa','sJ58W5rGu8kwBa','WOLhmbpdTZjBWRaZ','bSkwFbdcP8oC','FuRdPc0','WQjLnW','fmoMcSo2Bmo+WOe','kaqmB2FcLdLEvWFdSMy','cCotwwtcQx/cOa','W5JdPHu','DmkXW6ddImkxo1uAedHZz0LzCSk2WPBdSc1OhG','pN7cHtamWO3cS8k6W7/cTwaJWRe','n3O4ACozCWhcRSkDfu9uktyZWPZcK1FcOCopWQ1QamksWRWltY/dPSkCvmk+WRa','q8k+umkMmSkLWPvJlCoMq0C','WOfyma','wdpdMq7dK2/dICokW4HzWPhdPZu+za','W4epkxddISo/W50TW4JcNYZdU8ovWPG6W73cHSkAW4VdHSoyWOnZWQO','jN87Bq','vZFdNHldGhldGSonW717WPxdNG09EwhcRgKH','l8kOWRP4o8oy','E3SFW4VcPSkwmstdSfuSymoZamo7WPv9fCkrW7rNWQLFpsWCW4dcM8o8wCobzhW','kmogqCkPqSkf','WQdcP0FdI8oJqmoeW5zIW5fNWPmpkmkvW5VcNXJdN8kBFYPAxSkVW6dMJAtLIjFLUQxLJkpNU7NNQkVMLPxVVAlPUlpOR4BcPU+9VUACP+wLM0NdQG','oSoNzmou','vSkoC2pcVCof','5A+Q54Qk77Yi','ntTyWRXMWROtW50','vsTHW5bhamoujSk7W6ZdPmkqjrxdV1TVW4hcUxHzWQeSWO0','F8kIcmo0WRVcL3O','W5pcTcnqWRfAW7XaWP4','jMS6zmoDyYtcU8kagW','Fw4BW67cOCkzot7dVhKTiCoTfSo6WO8','WQxdHHZcIa','fCoQemoByCoMWP1sd8oVqvlcNfOWWPLtgmoM','W4HrWP3cP8okdLS','4PYgp+AFNoEEVUIUQoAYP8o8','WOddPJtcOCk0uCof','W7ZdTHxcJeNdKSo0WQ/cI8oo','amkcyt7cNCobW4eG','n2CNCmoEza','aCkJWR8vFW','EmkPcCo1WPhcVxenDmkzBtVcHxpcJmo6iCk5W7dcGCon','5REM5yM+5BwN57Ii57Qs5P6z5lIKWOS','WPhdSwuiW60kW7HKWRhcRCovCG','bmobW7qSdCkQ','WQ7dNcq','wCkeEwe','FJhdGq','W51rWPNcG8kEhKO','luldLYRdSmk5W7K','Cb3cP8k6W4z4W4Gf','u8k0WPxcG8k9DmomW5lcP37cG2WCW4NdNSkOpI5G','fmo3tq','FejeWQCo','W6NcV8osWQemWQJdKa','aSk9WR8mF8omW75zzq','WQFcN8k8uWBdGSkLia','pN7cHtawWOVcR8kOW5NcQa','i8oOWOlcHSoFDG1vqgq','W7BdMmkHvq3dVq','cITcW4PfDmkO','ibOjqNZcPqPitW','W7pcGxhcSYxdGgvzhXWBymovWQ4','W4ddO8kuvG','6lsK5yYB5PET5PAy','W4NcRYi','ymk6WPG'];_0x4e82=function(){return _0x53af2e;};return _0x4e82();}let linkId,taskThreads=process[_0x3e14cf(0xca,'OHgZ')][_0x3e14cf(0x121,'1c]M')]||'1';const runInterval=process[_0x3e14cf(0x162,'ax)G')]['jd_supermarket_interval']||_0x3e14cf(0x9c,'qw3C'),isNotify=(process['env'][_0x3e14cf(0x177,'&hzA')]||process['env'][_0x3e14cf(0x9d,'v]0]')])===_0x3e14cf(0x168,'$q30'),pinFilter=(process['env'][_0x3e14cf(0xc7,'zju4')]||'')['split']('@'),maxThreads=0x3;let shareCodes=[],needRemoveCodes=[],hasGetBasicInfo=![],cookiesArr=Object[_0x3e14cf(0xb0,'$a1h')](jdCookie)[_0x3e14cf(0x172,'1c]M')](_0x3b2595=>jdCookie[_0x3b2595])[_0x3e14cf(0x15d,'0MGg')](_0x2d0b4b=>_0x2d0b4b);!cookiesArr[0x0]&&($['msg']($[_0x3e14cf(0x96,'Ai#X')],'【提示】请先获取Cookie'),process[_0x3e14cf(0x158,'0a!p')](0x1));!(async()=>{const _0x345203=_0x3e14cf;notify[_0x345203(0x180,'ib$H')]({'title':$['name']}),await Main(),isNotify&¬ify[_0x345203(0x10d,'cdx5')]()&&await notify[_0x345203(0x122,'tvV2')]();})()[_0x3e14cf(0x88,'[UiV')](_0x370215=>$['logErr'](_0x370215))[_0x3e14cf(0x173,'p1in')](()=>$[_0x3e14cf(0xd3,'sGnG')]());async function Main(){const _0x1544f1=_0x3e14cf;try{authorCodeList=await jsonurl(_0x1544f1(0xbf,'ax)G'));if(authorCodeList&&authorCodeList[_0x1544f1(0x185,'500v')]>0x0)for(let _0x2509da=0x0;_0x2509da0x0&&_0x33a968!==0x1&&(taskThreads=_0x33a968);}catch{taskThreads=0x1;}taskThreads=Math['min'](taskThreads,maxThreads),$['waitTime']=null;if(runInterval)try{const _0x2a40ad=parseInt(runInterval);_0x2a40ad>=0x0&&($['waitTime']=_0x2a40ad);}catch{console[_0x1544f1(0xdd,']yXu')](_0x1544f1(0xe9,'1c]M'));}$[_0x1544f1(0x196,']yXu')]=[],await common[_0x1544f1(0x164,'[UiV')](taskThreads,cookiesArr,taskFnc),$[_0x1544f1(0x17c,'ST%N')]=![],$[_0x1544f1(0x170,'tvV2')]=![];$[_0x1544f1(0x167,'0m4u')][_0x1544f1(0x95,'C19x')]>0x0&&(cookiesArr=cookiesArr[_0x1544f1(0x98,'[UiV')]((_0x2dd312,_0x4516b2)=>!$[_0x1544f1(0x160,'&hzA')][_0x1544f1(0xa1,'$a1h')](_0x4516b2+0x1)),$['needRemoveCookieIndex']=[]);const _0x5ece63=notify[_0x1544f1(0x13d,'ib$H')]();_0x5ece63&&console[_0x1544f1(0xd2,'Q2to')](_0x1544f1(0x10c,'oIWm')+_0x5ece63[_0x1544f1(0x18f,'$a1h')](/:/g,_0x1544f1(0x120,'nTEX')));}catch(_0x1b0c98){console[_0x1544f1(0xb5,'v]0]')](_0x1544f1(0x8e,'VkgU')+_0x1b0c98);}}function _0x53f7(_0x480654,_0x3855e1){const _0x4e820a=_0x4e82();return _0x53f7=function(_0x53f784,_0x54e610){_0x53f784=_0x53f784-0x73;let _0x374f81=_0x4e820a[_0x53f784];if(_0x53f7['etusOi']===undefined){var _0x40bca5=function(_0x2d0b4b){const _0x370215='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5ece63='',_0x2509da='';for(let _0x33a968=0x0,_0x2a40ad,_0x2dd312,_0x4516b2=0x0;_0x2dd312=_0x2d0b4b['charAt'](_0x4516b2++);~_0x2dd312&&(_0x2a40ad=_0x33a968%0x4?_0x2a40ad*0x40+_0x2dd312:_0x2dd312,_0x33a968++%0x4)?_0x5ece63+=String['fromCharCode'](0xff&_0x2a40ad>>(-0x2*_0x33a968&0x6)):0x0){_0x2dd312=_0x370215['indexOf'](_0x2dd312);}for(let _0x1b0c98=0x0,_0x42b409=_0x5ece63['length'];_0x1b0c98<_0x42b409;_0x1b0c98++){_0x2509da+='%'+('00'+_0x5ece63['charCodeAt'](_0x1b0c98)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2509da);};const _0x3b2595=function(_0x287e09,_0x111f37){let _0x5d2126=[],_0x1b8744=0x0,_0x56a887,_0x3ac944='';_0x287e09=_0x40bca5(_0x287e09);let _0x3adad8;for(_0x3adad8=0x0;_0x3adad8<0x100;_0x3adad8++){_0x5d2126[_0x3adad8]=_0x3adad8;}for(_0x3adad8=0x0;_0x3adad8<0x100;_0x3adad8++){_0x1b8744=(_0x1b8744+_0x5d2126[_0x3adad8]+_0x111f37['charCodeAt'](_0x3adad8%_0x111f37['length']))%0x100,_0x56a887=_0x5d2126[_0x3adad8],_0x5d2126[_0x3adad8]=_0x5d2126[_0x1b8744],_0x5d2126[_0x1b8744]=_0x56a887;}_0x3adad8=0x0,_0x1b8744=0x0;for(let _0x38bc69=0x0;_0x38bc69<_0x287e09['length'];_0x38bc69++){_0x3adad8=(_0x3adad8+0x1)%0x100,_0x1b8744=(_0x1b8744+_0x5d2126[_0x3adad8])%0x100,_0x56a887=_0x5d2126[_0x3adad8],_0x5d2126[_0x3adad8]=_0x5d2126[_0x1b8744],_0x5d2126[_0x1b8744]=_0x56a887,_0x3ac944+=String['fromCharCode'](_0x287e09['charCodeAt'](_0x38bc69)^_0x5d2126[(_0x5d2126[_0x3adad8]+_0x5d2126[_0x1b8744])%0x100]);}return _0x3ac944;};_0x53f7['daIpne']=_0x3b2595,_0x480654=arguments,_0x53f7['etusOi']=!![];}const _0x2ca8e6=_0x4e820a[0x0],_0x1295ea=_0x53f784+_0x2ca8e6,_0x1ff9be=_0x480654[_0x1295ea];return!_0x1ff9be?(_0x53f7['BbhQnu']===undefined&&(_0x53f7['BbhQnu']=!![]),_0x374f81=_0x53f7['daIpne'](_0x374f81,_0x54e610),_0x480654[_0x1295ea]=_0x374f81):_0x374f81=_0x1ff9be,_0x374f81;},_0x53f7(_0x480654,_0x3855e1);}async function taskFnc(_0x42b409,_0x287e09){const _0x4f967a=_0x3e14cf;if($[_0x4f967a(0x87,'ax)G')])return{'runEnd':!![]};const _0x111f37=decodeURIComponent(common[_0x4f967a(0xe4,'zju4')](_0x42b409,_0x4f967a(0x12d,'1c]M')));function _0x5d2126(_0x583084,_0x1c81bc){const _0xcb8f67=_0x4f967a;if(_0x583084[_0xcb8f67(0xc4,'ib$H')]<=0x4)return _0x583084;else{const _0x7e7b52=_0x583084[_0xcb8f67(0x195,'n#jF')](0x0,0x2),_0x3dd3f4=_0x583084[_0xcb8f67(0x15f,']yXu')](-0x2),_0x259416=Math[_0xcb8f67(0xfd,'e5X2')](_0x1c81bc-_0x7e7b52[_0xcb8f67(0xb7,'ax)G')]-_0x3dd3f4[_0xcb8f67(0x131,')fqL')],0x0),_0x36fb49='*'[_0xcb8f67(0xf7,'1f@6')](_0x259416);return _0x7e7b52+_0x36fb49+_0x3dd3f4;}}const _0x1b8744=decodeURIComponent(_0x111f37),_0x56a887=_0x5d2126(_0x1b8744,0x6),_0x3ac944=_0x4f967a(0xaf,'ax)G')+_0x287e09+'】'+_0x56a887+':',_0x3adad8=notify[_0x4f967a(0xa6,'[%HF')](_0x287e09,_0x111f37);if(pinFilter[_0x4f967a(0x142,'0m4u')]>0x0&&(pinFilter['includes'](_0x111f37)||pinFilter['includes'](encodeURIComponent(_0x111f37)))){_0x3adad8[_0x4f967a(0x143,'VkgU')]('已设置跳过运行当前账号'),console[_0x4f967a(0x111,'QC)L')](_0x3adad8[_0x4f967a(0x18c,'yBjC')]()),$['needRemoveCookieIndex']['push'](_0x287e09);return;}const _0x38bc69=await common[_0x4f967a(0xf3,'p1in')](_0x42b409);if(!_0x38bc69&&typeof _0x38bc69==='boolean'){console[_0x4f967a(0x1a1,'nTEX')](_0x3ac944+_0x4f967a(0x7a,'Q2to')),_0x3adad8[_0x4f967a(0x13b,'p1in')]('账号无效'),$[_0x4f967a(0xc9,'oPSj')][_0x4f967a(0xff,'ib$H')](_0x287e09);return;}const _0x4a3851=common[_0x4f967a(0xd4,']yXu')](_0x111f37);let _0xcceff8=![],_0x172f82=![],_0xc4de36=0x0,_0x1188ec,_0x56a845,_0x3131f6,_0x276f91,_0x5a4a94,_0x4457b6;await _0x1c8701('superLeagueHome'),await $[_0x4f967a(0x82,'&hzA')](parseInt($[_0x4f967a(0x16e,'xq%K')]*0x1+0x1f4,0xa));if($['runEnd']||_0xcceff8)return;if(_0x1188ec){_0xc4de36=_0x1188ec['remainTimes'];if(!hasGetBasicInfo&&_0x1188ec['prizeItems']){hasGetBasicInfo=!![];const _0x20e15d=_0x1188ec['prizeItems'][_0x4f967a(0xdf,'sGnG')](_0x38ed4b=>_0x38ed4b[_0x4f967a(0x11a,'ExGB')]),_0x411d29=_0x20e15d[_0x4f967a(0x114,'500v')](',');console['log'](_0x4f967a(0x16b,'1trL')+_0x411d29+'\x0a');}await _0x1c8701(_0x4f967a(0x132,'[UiV'));let _0x380692=![];if(_0x5a4a94&&Array[_0x4f967a(0x117,'QC)L')](_0x5a4a94))for(let _0x20af43=0x0;_0x20af43<_0x5a4a94['length'];_0x20af43++){_0x56a845=_0x5a4a94[_0x20af43],_0x3131f6=_0x56a845['taskSourceUrl'];const _0xea8889=_0x56a845[_0x4f967a(0x157,'yBjC')],_0x110192=_0x56a845['taskShowTitle'],_0x2b76db=_0x56a845[_0x4f967a(0x14e,'500v')],_0x2eff1c=_0x56a845['taskDoTimes'],_0x52f085=_0x56a845[_0x4f967a(0x19f,'e5X2')];if(!_0xea8889&&(_0x52f085[_0x4f967a(0x115,'500v')](_0x4f967a(0xbe,'ax)G'))||_0x52f085['includes'](_0x4f967a(0xaa,'[%HF')))){_0x52f085[_0x4f967a(0x108,')fqL')](_0x4f967a(0x191,'wo[9'))&&(await _0x1c8701('userFollow'),await $[_0x4f967a(0x82,'&hzA')](parseInt(0x1f4)));if(_0x3131f6)for(let _0x2b54cb=_0x2eff1c;_0x2b54cb<_0x2b76db;_0x2b54cb++){_0x380692=!![],await _0x1c8701(_0x4f967a(0xc2,'oPSj')),await $['wait'](parseInt($['waitTime']*0x1+0x5dc,0xa));}else for(let _0x27c751=0x0;_0x27c751<0x1;_0x27c751++){_0x380692=!![],await _0x1c8701(_0x4f967a(0x84,'XcmR'));const _0x329241=_0x4457b6?.[_0x4f967a(0x161,'$q30')]||[],_0x577e87=_0x4457b6?.[_0x4f967a(0xdc,'dHLd')]?.[_0x4f967a(0x192,'XcmR')];for(let _0x21f04a=0x0;_0x21f04a<_0x577e87;_0x21f04a++){const _0x1b1b17=_0x329241[_0x21f04a];_0x1b1b17?(_0x52f085[_0x4f967a(0x101,'ir^c')]('FOLLOW_')?_0x3131f6=_0x1b1b17['itemName']:_0x3131f6=_0x1b1b17[_0x4f967a(0xfa,'nTEX')],_0x276f91=_0x1b1b17[_0x4f967a(0x73,'Ai#X')],await _0x1c8701(_0x4f967a(0x16f,')fqL')),await $[_0x4f967a(0xd1,'oPSj')](parseInt($[_0x4f967a(0xe3,'nTEX')]*0x1+0x5dc,0xa))):console[_0x4f967a(0xf0,'xq%K')](_0x3ac944+_0x4f967a(0x13a,'QC)L'));}}}else{if(!_0xea8889&&_0x52f085['includes'](_0x4f967a(0x79,'LwJ*')))for(let _0x2b32cf=_0x2eff1c;_0x2b32cf<_0x2b76db;_0x2b32cf++){_0x380692=!![],await _0x1c8701(_0x4f967a(0x16d,'oIWm')),await $[_0x4f967a(0x106,'1trL')](parseInt(Math['random']()*0x5dc+0x5dc,0xa));}else{if(!_0xea8889&&_0x52f085[_0x4f967a(0x101,'ir^c')](_0x4f967a(0x81,'1c]M')))for(let _0x459f1b=_0x2eff1c;_0x459f1b<_0x2b76db;_0x459f1b++){_0x380692=!![];let _0x5e664c=_0x1188ec[_0x4f967a(0x11f,'qw3C')];if(!shareCodes[_0x4f967a(0xa4,'cdx5')](_0x5e664c)){shareCodes[_0x4f967a(0x91,'ST%N')](_0x5e664c);if(shareCodes[_0x4f967a(0x14c,'e5X2')]>=0x3)for(let _0x4c99fa of shareCodes){inviteCode=_0x4c99fa,await _0x1c8701('superLeagueHome_assist');if(_0x172f82)break;await $[_0x4f967a(0x113,'$q30')](parseInt($[_0x4f967a(0xcd,'ExGB')]*0x1+0x9c4,0xa));}}}}}}if(needRemoveCodes[_0x4f967a(0x127,'p1in')]>0x0)for(let _0x1ff6e1 of needRemoveCodes){shareCodes[_0x4f967a(0x148,'J[qY')](_0x1ff6e1)&&shareCodes['splice'](shareCodes[_0x4f967a(0x189,']yXu')](_0x1ff6e1),0x1);}if(_0xc4de36>0x0)while(_0xc4de36--){await _0x1c8701(_0x4f967a(0x134,'wo[9')),await $[_0x4f967a(0xc0,'cdx5')](parseInt($[_0x4f967a(0xdb,'1trL')]*0x1+0x5dc,0xa));}}if($['runEnd'])return{'runEnd':!![]};await $[_0x4f967a(0x113,'$q30')](parseInt($[_0x4f967a(0xf8,'ir^c')]*0x1+0x1f4,0xa));async function _0x39c59b(_0x26c40b,_0x415214){const _0xc4cb24=_0x4f967a;try{switch(_0x26c40b){case _0xc4cb24(0x13e,'p1in'):if(_0x415214[_0xc4cb24(0x18d,'wo[9')]==0x0&&_0x415214[_0xc4cb24(0x100,'ax)G')])_0x1188ec=_0x415214['data'];else{if(_0x415214['errMsg'])console[_0xc4cb24(0x154,'C19x')](''+_0x3ac944+_0x415214[_0xc4cb24(0x94,'0a!p')]);else _0x415214[_0xc4cb24(0x176,'VkgU')]?['结束',_0xc4cb24(0x166,'qw3C')]['some'](_0x41ccea=>_0x415214[_0xc4cb24(0xb2,'nTEX')][_0xc4cb24(0x11c,'0a!p')](_0x41ccea))?(console['log'](_0x3ac944+_0xc4cb24(0x197,'1f@6')),$[_0xc4cb24(0x182,'$q30')]=!![]):console[_0xc4cb24(0xda,'ST%N')](''+_0x3ac944+_0x415214['msg']):console[_0xc4cb24(0x15a,'oPSj')]('❓'+_0x26c40b+'\x20'+JSON['stringify'](_0x415214));}break;case _0xc4cb24(0x14a,'0a!p'):if(_0x415214['code']==0x0&&_0x415214[_0xc4cb24(0xcf,'sGnG')]){const _0x5c64dd=_0x415214['data'][_0xc4cb24(0x174,'[%HF')];if(_0x5c64dd===0x0)console[_0xc4cb24(0x13f,'1trL')](_0x3ac944+'助力['+inviteCode['substring'](0x0,0xa)+_0xc4cb24(0x12a,'Lvd^'));else{if(_0x5c64dd===0x18a8a){}else{if(_0x5c64dd===0x18a89)_0x172f82=!![];else{if(_0x5c64dd===null)needRemoveCodes[_0xc4cb24(0x17e,'oPSj')](inviteCode);else{}}}}}else{if(_0x415214['errMsg'])console[_0xc4cb24(0x1a1,'nTEX')](''+_0x3ac944+_0x415214[_0xc4cb24(0xf4,'zju4')]);else _0x415214[_0xc4cb24(0x11e,')fqL')]?console[_0xc4cb24(0xb6,'ax)G')](''+_0x3ac944+_0x415214['msg']):console['log']('❓'+_0x26c40b+'\x20'+JSON[_0xc4cb24(0xc3,'ib$H')](_0x415214));}break;case _0xc4cb24(0xed,'Lvd^'):if(_0x415214[_0xc4cb24(0xf1,'cdx5')]==0x0&&_0x415214['success']){const _0x28bf91={0x0:'空气',0x1:_0x6eabe6=>_0x6eabe6?.['data']?.[_0xc4cb24(0xf9,'OHgZ')]+'('+_0x6eabe6?.[_0xc4cb24(0x10e,'0MGg')]?.[_0xc4cb24(0x1a4,'n#jF')]+_0xc4cb24(0x14b,'AIV!'),0x2:_0x5908f0=>(_0x5908f0?.[_0xc4cb24(0x152,'v]0]')]?.[_0xc4cb24(0x194,'oPSj')]||'0')+'红包',0x3:_0x829832=>_0x829832?.[_0xc4cb24(0x150,'&hzA')]?.['prizeConfigName']||'京豆',0x5:_0x5aeba1=>_0xc4cb24(0x186,'tvV2')+_0x5aeba1?.['data']?.[_0xc4cb24(0xc5,'ST%N')],0x16:_0x4bdcf9=>_0x4bdcf9?.[_0xc4cb24(0x8f,'ir^c')]?.[_0xc4cb24(0x199,'J[qY')]+_0xc4cb24(0x12e,'oIWm')},_0x2796fc=_0x28bf91[_0x415214?.[_0xc4cb24(0x9a,'1trL')]?.['prizeType']]||_0x415214?.[_0xc4cb24(0x124,'cdx5')]?.[_0xc4cb24(0xad,'ST%N')]+'-'+_0x415214?.[_0xc4cb24(0xbc,'0m4u')]?.['prizeConfigName'];if(typeof _0x2796fc===_0xc4cb24(0x187,'uOyi'))console[_0xc4cb24(0x153,'6GjZ')](''+_0x3ac944+_0x2796fc(_0x415214)),_0x2796fc(_0x415214)!=='空气'&&!_0x2796fc(_0x415214)[_0xc4cb24(0x92,'ib$H')](_0xc4cb24(0x12b,'Q2to'))&&_0x3adad8['insert'](_0x2796fc(_0x415214));else{if(_0x415214?.[_0xc4cb24(0x116,'xq%K')]?.['prizeType']===0x1)console[_0xc4cb24(0x130,'yBjC')](''+_0x3ac944+_0x415214?.[_0xc4cb24(0x102,'1c]M')]?.[_0xc4cb24(0x156,'v]0]')]+'('+_0x415214?.['data']?.['prizeDesc']+'优惠券)');else _0x415214[_0xc4cb24(0x7d,'Ai#X')]?console[_0xc4cb24(0x14d,'[UiV')](''+_0x3ac944+_0x415214['msg']):console['log'](''+_0x3ac944+_0x2796fc);}}else _0x415214['errMsg']?console['log'](''+_0x3ac944+_0x415214[_0xc4cb24(0x141,'C19x')]):console[_0xc4cb24(0x128,'qw3C')]('❓'+_0x26c40b+'\x20'+JSON[_0xc4cb24(0x99,'&hzA')](_0x415214));break;case _0xc4cb24(0x11d,'AIV!'):if(_0x415214[_0xc4cb24(0x126,'nTEX')]==0x0)_0x5a4a94=_0x415214?.[_0xc4cb24(0xbb,'0a!p')];else{if(_0x415214['errMsg'])console[_0xc4cb24(0x19a,'0m4u')](''+_0x3ac944+_0x415214[_0xc4cb24(0xe5,'tvV2')]);else _0x415214[_0xc4cb24(0x105,'n#jF')]?console[_0xc4cb24(0x154,'C19x')](''+_0x3ac944+_0x415214[_0xc4cb24(0xa7,'ExGB')]):console[_0xc4cb24(0x104,'OHgZ')]('❓'+_0x26c40b+'\x20'+JSON[_0xc4cb24(0x8b,'XcmR')](_0x415214));}break;case _0xc4cb24(0x163,'&hzA'):if(_0x415214[_0xc4cb24(0xa3,'XcmR')]==0x0)_0x4457b6=_0x415214?.[_0xc4cb24(0x140,'ExGB')];else{if(_0x415214[_0xc4cb24(0x75,'LwJ*')])console[_0xc4cb24(0xf0,'xq%K')](''+_0x3ac944+_0x415214[_0xc4cb24(0xde,'500v')]);else _0x415214[_0xc4cb24(0xae,'0a!p')]?console[_0xc4cb24(0x137,'uOyi')](''+_0x3ac944+_0x415214['msg']):console['log']('❓'+_0x26c40b+'\x20'+JSON[_0xc4cb24(0x18a,'6GjZ')](_0x415214));}break;case _0xc4cb24(0xee,'qw3C'):if(_0x415214[_0xc4cb24(0xc6,'1c]M')]==0x0)_0xc4de36++,console[_0xc4cb24(0x1a1,'nTEX')](_0x3ac944+'\x22'+_0x56a845[_0xc4cb24(0x178,'Ai#X')]+_0xc4cb24(0xd5,'nTEX')+_0xc4de36+'次');else{if(_0x415214[_0xc4cb24(0x15e,'ExGB')])console['log'](''+_0x3ac944+_0x415214[_0xc4cb24(0x15e,'ExGB')]);else _0x415214[_0xc4cb24(0x11b,'oIWm')]?console[_0xc4cb24(0x10f,'zju4')](''+_0x3ac944+_0x415214[_0xc4cb24(0xd6,'sxta')]):console[_0xc4cb24(0x16c,'Ai#X')]('❓'+_0x26c40b+'\x20'+JSON[_0xc4cb24(0xe1,'qw3C')](_0x415214));}break;case _0xc4cb24(0x15c,'Q2to'):if(_0x415214[_0xc4cb24(0x19b,'500v')]==='0'){}else _0x415214['resultMsg']?console[_0xc4cb24(0x9b,'Lvd^')](''+_0x3ac944+_0x415214[_0xc4cb24(0xba,'0m4u')]):console[_0xc4cb24(0x133,'[%HF')]('❓'+_0x26c40b+'\x20'+JSON[_0xc4cb24(0xe0,'QC)L')](_0x415214));break;}}catch(_0x90dacf){console[_0xc4cb24(0xd8,'n#jF')](_0xc4cb24(0xd7,'6GjZ')+_0x26c40b+_0xc4cb24(0xd9,'uOyi')+(_0x90dacf[_0xc4cb24(0xa2,'1f@6')]||_0x90dacf));}}async function _0x1c8701(_0x2172a7){const _0x4b4481=_0x4f967a;if($['runEnd'])return;let _0x18d705='',_0x132a96=null,_0x6b907a=null,_0x52a2db=_0x4b4481(0x184,'dHLd'),_0x30ddb5={},_0x1338be={};switch(_0x2172a7){case _0x4b4481(0x85,'xq%K'):_0x1338be={'appId':'b7d17','functionId':_0x2172a7,'appid':_0x4b4481(0xf2,'xq%K'),'clientVersion':common[_0x4b4481(0x1a0,'ax)G')](),'client':_0x4b4481(0xb8,'ib$H'),'body':{'linkId':linkId,'taskId':'','inviter':'','inJdApp':!![]},'version':'4.7','ua':_0x4a3851,'t':!![]},_0x30ddb5=await H5st[_0x4b4481(0xbd,'&hzA')](_0x1338be),_0x18d705='https://api.m.jd.com/api',_0x132a96=_0x30ddb5['paramsData'];break;case _0x4b4481(0xcb,'XcmR'):_0x1338be={'appId':_0x4b4481(0xcc,'cdx5'),'functionId':_0x4b4481(0xce,'sxta'),'appid':_0x4b4481(0x149,'C19x'),'clientVersion':common[_0x4b4481(0x15b,'uOyi')](),'client':'ios','body':{'linkId':linkId,'taskId':_0x56a845['id'],'inviter':inviteCode,'inJdApp':!![]},'version':_0x4b4481(0x7c,'oIWm'),'ua':_0x4a3851,'t':!![]},_0x30ddb5=await H5st[_0x4b4481(0xa8,'yBjC')](_0x1338be),_0x18d705=_0x4b4481(0x17d,'ExGB'),_0x132a96=_0x30ddb5[_0x4b4481(0x103,')fqL')];break;case _0x4b4481(0xb9,'ir^c'):_0x1338be={'appId':_0x4b4481(0x155,'n#jF'),'functionId':_0x2172a7,'appid':_0x4b4481(0x112,'n#jF'),'clientVersion':common['getLatestAppVersion'](),'client':_0x4b4481(0x17b,')fqL'),'body':{'linkId':linkId},'version':_0x4b4481(0xa9,'1f@6'),'ua':_0x4a3851,'t':!![]},_0x30ddb5=await H5st[_0x4b4481(0xfb,'%oBx')](_0x1338be),_0x18d705=_0x4b4481(0x165,'&hzA'),_0x132a96=_0x30ddb5['paramsData'];break;case'apTaskList':_0x1338be={'appId':'c06b7','functionId':_0x2172a7,'appid':_0x4b4481(0xac,'qw3C'),'clientVersion':common[_0x4b4481(0x17f,'ST%N')](),'client':_0x4b4481(0x169,'wo[9'),'body':{'linkId':linkId},'version':_0x4b4481(0x19c,'Ai#X'),'ua':_0x4a3851,'t':!![]},_0x30ddb5=await H5st[_0x4b4481(0x19d,'$a1h')](_0x1338be),_0x18d705=_0x4b4481(0x188,'xq%K'),_0x132a96=_0x30ddb5['paramsData'];break;case'apTaskDetail':_0x1338be={'appId':_0x4b4481(0x139,'OHgZ'),'functionId':_0x2172a7,'appid':_0x4b4481(0xfe,'VkgU'),'clientVersion':common[_0x4b4481(0x18e,'p1in')](),'client':_0x4b4481(0xef,'&hzA'),'body':{'taskType':_0x56a845[_0x4b4481(0x193,'tvV2')],'taskId':_0x56a845['id'],'channel':0x4,'checkVersion':!![],'linkId':linkId},'version':'4.7','ua':_0x4a3851,'t':!![]},_0x30ddb5=await H5st[_0x4b4481(0x175,'sGnG')](_0x1338be),_0x18d705=_0x4b4481(0xd0,'ax)G'),_0x132a96=_0x30ddb5[_0x4b4481(0x18b,'oPSj')];break;case _0x4b4481(0x77,'[%HF'):_0x1338be={'appId':_0x4b4481(0x93,'yBjC'),'functionId':_0x2172a7,'appid':_0x4b4481(0x9e,'ExGB'),'clientVersion':common[_0x4b4481(0x86,'AIV!')](),'client':_0x4b4481(0x7b,'6GjZ'),'body':{'taskType':_0x56a845[_0x4b4481(0x8d,'0a!p')],'taskId':_0x56a845['id'],'channel':0x4,'checkVersion':!![],'linkId':linkId,'itemId':_0x3131f6,'taskInsert':_0x276f91},'version':_0x4b4481(0xe7,'1c]M'),'ua':_0x4a3851,'t':!![]},_0x30ddb5=await H5st[_0x4b4481(0x151,'[UiV')](_0x1338be),_0x18d705=_0x4b4481(0xea,'sxta'),_0x132a96=_0x30ddb5['paramsData'];break;case'userFollow':_0x18d705=_0x4b4481(0xf6,'LwJ*'),_0x132a96={'functionId':_0x2172a7,'body':JSON['stringify']({'pin':encodeURIComponent(_0x111f37),'type':'0','businessId':0x1,'themeId':0x70,'babelChannel':'ttt9','isJdApp':'1','isWx':'0'}),'rfs':0x0,'appid':'jd-super-market','client':'m','t':Date['now']()};break;default:console[_0x4b4481(0x145,'1c]M')](_0x4b4481(0x190,'Ai#X')+_0x2172a7);return;}const _0x3e10e3={};_0x132a96&&Object[_0x4b4481(0x129,'0a!p')](_0x132a96,_0x3e10e3);_0x6b907a&&Object[_0x4b4481(0x144,'VkgU')](_0x6b907a,_0x3e10e3);const _0x4c0487={'url':_0x18d705,'method':_0x52a2db,'headers':{'origin':_0x4b4481(0x12f,'[%HF'),'Referer':_0x4b4481(0x83,'[UiV'),'User-Agent':_0x4a3851,'Cookie':_0x42b409,'content-type':_0x4b4481(0x179,'oPSj'),'accept':_0x4b4481(0x181,'yBjC')},'params':_0x6b907a,'data':_0x132a96,'timeout':0x7530};_0x52a2db==='GET'&&(delete _0x4c0487[_0x4b4481(0x14f,'1f@6')],delete _0x4c0487[_0x4b4481(0x12c,'0a!p')][_0x4b4481(0x13c,'yBjC')]);const _0x15495a=0x1;let _0xd3e32c=0x0,_0x114a9a=null;while(_0xd3e32c<_0x15495a){_0xd3e32c>0x0&&await $[_0x4b4481(0x89,'tvV2')](0x3e8);const _0x434358=await common[_0x4b4481(0xf5,'$a1h')](_0x4c0487);if(!_0x434358[_0x4b4481(0xeb,'Ai#X')]){_0x114a9a=_0x4b4481(0x10a,'$a1h')+_0x2172a7+_0x4b4481(0x159,'0m4u')+_0x434358[_0x4b4481(0x1a2,'qw3C')],_0xd3e32c++;continue;}if(!_0x434358[_0x4b4481(0x171,'[UiV')]){_0x114a9a=_0x4b4481(0x10a,'$a1h')+_0x2172a7+'\x20请求失败\x20➜\x20无响应数据',_0xd3e32c++;continue;}await _0x39c59b(_0x2172a7,_0x434358[_0x4b4481(0x90,'tvV2')]);break;}_0xd3e32c>=_0x15495a&&console[_0x4b4481(0xda,'ST%N')](_0x114a9a);}}async function jsonurl(_0x4eb51b){const _0xd771a1=_0x3e14cf,_0xdac032=await common[_0xd771a1(0xfc,'QC)L')]({'url':_0x4eb51b,'method':_0xd771a1(0x7e,'oIWm'),'headers':{'User-Agent':_0xd771a1(0xa0,'Lvd^')},'proxy':null,'debug':![],'timeout':0x7530}),_0x3de9f0=_0xdac032[_0xd771a1(0x123,'Lvd^')];return _0x3de9f0;} +// 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)}