faker3/jd_super_zzj.js
2024-06-28 15:38:28 +08:00

12 lines
36 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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

/*
超级抓抓机
cron:15 3,15 * * * jd_super_zzj.js
*/
const $ = new Env('超级抓抓机')
var il='jsjiami.com.v7';const ll1lI=iii1II;function iii1II(_0x139029,_0x2b5500){const _0x566779=Iii11l();return iii1II=function(_0x126c12,_0x2c641a){_0x126c12=_0x126c12-0x156;let _0x7f9676=_0x566779[_0x126c12];if(iii1II['ZqfRfW']===undefined){var _0x5db071=function(_0x1cd231){const _0x4494e1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x6a1ac='',_0x308a98='';for(let _0x435330=0x0,_0x281411,_0x5ed3a2,_0x3ef599=0x0;_0x5ed3a2=_0x1cd231['charAt'](_0x3ef599++);~_0x5ed3a2&&(_0x281411=_0x435330%0x4?_0x281411*0x40+_0x5ed3a2:_0x5ed3a2,_0x435330++%0x4)?_0x6a1ac+=String['fromCharCode'](0xff&_0x281411>>(-0x2*_0x435330&0x6)):0x0){_0x5ed3a2=_0x4494e1['indexOf'](_0x5ed3a2);}for(let _0x12f970=0x0,_0x2ed77d=_0x6a1ac['length'];_0x12f970<_0x2ed77d;_0x12f970++){_0x308a98+='%'+('00'+_0x6a1ac['charCodeAt'](_0x12f970)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x308a98);};const _0x364b52=function(_0x53e7ba,_0x27c12d){let _0x5800cc=[],_0x4f7f96=0x0,_0x3a65e2,_0x3658bc='';_0x53e7ba=_0x5db071(_0x53e7ba);let _0xda80e7;for(_0xda80e7=0x0;_0xda80e7<0x100;_0xda80e7++){_0x5800cc[_0xda80e7]=_0xda80e7;}for(_0xda80e7=0x0;_0xda80e7<0x100;_0xda80e7++){_0x4f7f96=(_0x4f7f96+_0x5800cc[_0xda80e7]+_0x27c12d['charCodeAt'](_0xda80e7%_0x27c12d['length']))%0x100,_0x3a65e2=_0x5800cc[_0xda80e7],_0x5800cc[_0xda80e7]=_0x5800cc[_0x4f7f96],_0x5800cc[_0x4f7f96]=_0x3a65e2;}_0xda80e7=0x0,_0x4f7f96=0x0;for(let _0x25dd6d=0x0;_0x25dd6d<_0x53e7ba['length'];_0x25dd6d++){_0xda80e7=(_0xda80e7+0x1)%0x100,_0x4f7f96=(_0x4f7f96+_0x5800cc[_0xda80e7])%0x100,_0x3a65e2=_0x5800cc[_0xda80e7],_0x5800cc[_0xda80e7]=_0x5800cc[_0x4f7f96],_0x5800cc[_0x4f7f96]=_0x3a65e2,_0x3658bc+=String['fromCharCode'](_0x53e7ba['charCodeAt'](_0x25dd6d)^_0x5800cc[(_0x5800cc[_0xda80e7]+_0x5800cc[_0x4f7f96])%0x100]);}return _0x3658bc;};iii1II['NMhouv']=_0x364b52,_0x139029=arguments,iii1II['ZqfRfW']=!![];}const _0x3965fd=_0x566779[0x0],_0x18a40a=_0x126c12+_0x3965fd,_0x1a7ed5=_0x139029[_0x18a40a];return!_0x1a7ed5?(iii1II['iULibU']===undefined&&(iii1II['iULibU']=!![]),_0x7f9676=iii1II['NMhouv'](_0x7f9676,_0x2c641a),_0x139029[_0x18a40a]=_0x7f9676):_0x7f9676=_0x1a7ed5,_0x7f9676;},iii1II(_0x139029,_0x2b5500);}(function(lilii,l1iiI,ll1li,Illl1I,lliiiI,lilil,ll1ll){return lilii=lilii>>0x2,lilil='hs',ll1ll='hs',function(Illl11,ii1lI,I1ilIl,I11iII,I1ilIi){const liliI=iii1II;I11iII='tfi',lilil=I11iII+lilil,I1ilIi='up',ll1ll+=I1ilIi,lilil=I1ilIl(lilil),ll1ll=I1ilIl(ll1ll),I1ilIl=0x0;const IiiiI=Illl11();while(!![]&&--Illl1I+ii1lI){try{I11iII=parseInt(liliI(0x199,'EiBg'))/0x1+parseInt(liliI(0x24e,'DG^w'))/0x2*(-parseInt(liliI(0x23d,'oa@X'))/0x3)+parseInt(liliI(0x1d1,'DG^w'))/0x4*(parseInt(liliI(0x208,'DgR1'))/0x5)+parseInt(liliI(0x23f,'1@b5'))/0x6*(parseInt(liliI(0x192,'IWhz'))/0x7)+-parseInt(liliI(0x1e0,'!cLz'))/0x8+-parseInt(liliI(0x1f6,'dSox'))/0x9+parseInt(liliI(0x259,'64r4'))/0xa*(-parseInt(liliI(0x1e6,']wLU'))/0xb);}catch(llIlli){I11iII=I1ilIl;}finally{I1ilIi=IiiiI[lilil]();if(lilii<=Illl1I)I1ilIl?lliiiI?I11iII=I1ilIi:lliiiI=I1ilIi:I1ilIl=I1ilIi;else{if(I1ilIl==lliiiI['replace'](/[OAkFtJMYWLlUChVeETyg=]/g,'')){if(I11iII===ii1lI){IiiiI['un'+lilil](I1ilIi);break;}IiiiI[ll1ll](I1ilIi);}}}}}(ll1li,l1iiI,function(llIlll,lliii1,Iiii1,lIIili,IiiIil,IiiIii,IIlll){return lliii1='\x73\x70\x6c\x69\x74',llIlll=arguments[0x0],llIlll=llIlll[lliii1](''),Iiii1=`\x72\x65\x76\x65\x72\x73\x65`,llIlll=llIlll[Iiii1]('\x76'),lIIili=`\x6a\x6f\x69\x6e`,(0x16b7b9,llIlll[lIIili](''));});}(0x314,0x772b2,Iii11l,0xc7),Iii11l)&&(il=0x1fc3);function Iii11l(){const I11iIi=(function(){return[...[il,'khyejAVstTjgiFJaEOUmYCiJ.kcOoLm.gvOeW7Ml==','gIZcK8oiW5qaW6bWW5tcTWvaW6S','W63dNeC','W7eCW6NcICkE','W6ZdGeC','WQ/cM8okW6KJW6XZn8o2W6iZWQ3dNJ7cOrVcQtT3','xvddNJit','W7JdV8kZqq','edFcM8ovW7eb','WPldP8oFWPS','WRtcRmoig8k4W7pcGSo+','iSoQhMWJFSoEsmopgW','z0BdKqpcJSoMWRZcOa','WPvqWP/dSCkT','wfhdNq','zeZdOCor','WQ7cT8ojnmkIW7pcGG','W55uW5xdLCoF','WOJdKSoLbSop','W5rWWQSYg8otsG','b0LTWQnupa','a8kBFmkQE8oEW45DyNa','qLdcOmownW','W7ulhmkoWRC','WQpcGComW7ytW7G','nI7cTf0qW7q','WReIWRXD','WQH0WQxdSa','W65/DmkFwG','WQq7BW','5OMm5OIi5P6W','WRNcMCo+nr8','W4b+WRyplmovv1LSuq','xafb','x8kTcMOVuCoca8o4dtWXWPxcVmo2wa','5BE85A6K5OQI','WRRcN8o9bsb/WRddHvu8W5BcIxuJW4qKW6hcOG17','e8koWQVcOSoVW4hcHvddGeVdUwNdSSkAWORcMGK7mCoi','yfBcRa','WRJcNSoQhJDrWRFdL0K','uGBdUCo3vq','WO7dSCoIW7ui','W4GYpxFdJq','WPJcKSoDdSkK','WQOBq1VdJW','W7WRW5dcGSkJWP0','W4uvW6/cLCkc','qXTfW47dP8o7W7m','W48oW5i0W5zxW47cQCoT','WQZdR8oRW44QW5a','W7yQW53cImk/WP7cRCo4','FvJdOcZcSq','yGZcPhbeemkx','W6jcWOuGlG','lZVcO1e0W6n5WQCNW6m','8yQRSdi','5OoY5zEy6iYj5B2Z77+q','WP/cPCoSh8k5','raDsW4hdPW','WP7dUSoO','WRlcHuhdNCkeAaZdO8k6WQxdQCk7l1/cHSoxAuRdR8oJEmoDvmo5dCk4W4/cLW','pmkwC8k/ASo1','WRxcTSoFb8k+WQ3dImkIDSk3c8oLbaGoWOOonSo1wtpdNhq4hqVcLSoyWPhcP1OXovzKqWFcMXP7W4bUW6Gzxgy','qIDcW6RdTG','W7hdRCkG','WP9uWRCXWReoWOqNW7fGWO7dUZhdU8kVWOJdS8o0WRqKDCkqx8k7CwhcSG','yeBdVCoSWPa','WOddGSo+WPfY','WOulWP80WOTeESkj','WQdcJ8o9b3rxWRldMeyR','p8kmW47dGN4','W7f1W6aEntRcMqddGmkhW4i','8kIRSCoX','yG7dUuzcn8kDu8oufYvICJuQWRtcT8o6D8oNoSokWO3cKCo4W6NcJgr7WQddRfm','fXVcQCovW6W','W70RW5hcImkVWPVcPG','mCktWQ/cOSoZW4VcHeddGeO','yhddPqlcRW','WRS+FbDSpW','rWtcKhfG','cLv5WO9bimorcKpcMxujW5RcNa','W7LNWQJcNviPhxddRmoVWOPab2SjeCokWQ7dS8o9','WOpdOmoQlSovemoHWPxdICkesHNcObVcR8oUW6JdNcNcPG','WODwW6S0WRmPWQe1W65c','nmksACk5','WQZdR8o4W5mXW4qHW6FcMG','WORdSCkcWPDrWPPiW4vbWOOaWOqGkCoGWQ7cQmouhsDFW51uzmo2WRFcUCkl','W5iFW4u5W6PvW4RcOmoIu3fYaSkUWQW','W743W43cJCkTWPtcPCoUuNLyWP/dRhq','EeRdPmktb0u','WPFdVmoFWPzkWO1gW5LbWQak','W7BcQZ58g1O','W68fd8kS','vmkZigXqWPO0W5e5jYmuWQW','Bf/dJ8kc','zGlcSa','WRCSuSkbaW','rqddQCo+','WRn6WQS','W5FcUJDH','a8kiWR3cUCoXW6BcHKhdI03dLMVdQ8kw','WR0DWOK1WQrcCG','dSkuWQK','W5azWPz5','vWTsW6xcT8o7W7q'],...(function(){return[...['C8kpzv3cUv1aWQ/cVq','W4T0WQu','WRm6zHe','x0ldMIdcRa','oIJcO18R','W4ldQgqb','WRKYCrTwnSoviG','prNcGvBdG8kZWRtcVmkGdCkZW40','AKNdHG4','WO7dVCol','WQXWWRJdH8kkdSkty8kQ','WP/cP8otW4OZ','W6VdV8kUva','d8kiWQK','W58XivVdMq','rbJdVSoRCq','dIlcL8om','W5ulWPfXW5XZWOHSsmo0WPjqr8oEWR/cTCkQuX/dNW','cslcJmozW5uwW5b4W4/cUa','nZNdV1q2W4rCWRu4W4hcGYJdGLdcMMiqlCo0WRVdTCoLfSkUW6iXWOLp','sGddQG','gr9ZW5TdW6aW','BXxcOW','ytVcS3HM','eXL6','WRSJW77dLHnrhMVdKCoAWRju','W4XGWOtcOgK','W60trW','Ex7cG8oxva','W519W6RdOmo+WQhcJ8oKFLK','5B2b5AwX5yU15yQ3WO4','5yYP5yo95lUm5yU0WQ0','WRjMWQS','es5kW5D7','W4P1gSo9wSoumEw/H+wKIooaPEs4I+s4JUI0UUwnMG','W6afda','cmkKW5BdO2u','W6tdNCk+rSod','W6elgW','W5CxWOz9','W7ZdKLO','bZvKW5XJ','W4yDWPv5W4L5WPzDx8oWWQm','W6qevgtcN2BcIJLV','5P+R55+M5As05yIu77YE772f','WRqMWQjiFYZcMaRdGCkrW7RcJZW','W7VdH8kqWQ5JWQLYa8oKW4iPWQG','W5b4WO4Vea','WQpdUSoaomoL','WRmQuSkuh8kAFG','vuVcUSoGdW','CSkcBw7cKfjpWRZcQq','W53cJCoHWQJdH0RdVYG','wrq8W5qsEmkjiNJcHMeOW5K','WQbHWOJcPG','WQG8hSkZh8kQESk0WQH2W4H+C8oFcH1NW6zCudTrW5hcPZlcI8kbW54','WRqzWO4N','5Okp5zso6iYB5B2K77YK','txFcGmoQoW','W5qzWO45W5DKW4BcVmo/Dv1XcCk5WPxcNMvay8oHFM7cGstdHgxcHmkPW7CGFmkQ','W7C7vSodna','WQBdUSo9W70t','W7LBra','WRLmyutcVxBcMJO','WQeSq8k+f8kqDSkIWQ1bW7n7CCoimYjOWQvttq','W7OKnLddGNL9WRu','xN/cJ8o4kW','WRdcP8oybmkSW7dcGG','WRVdUSo+W5S','cSkEWQ/cTmoZW7RcMa','WPBdJComWPpdP2S','BfdcOCoV','W5tcVdrMjG','WPTyW60HWRSOWPW6W69o','WQlcMSoeW753W79Vf8oRW78/WQy','WOZcSIhdNG','WR0LW7JdL2ynhvZdNmoh','W5SFW5qrW5DxW47cOCohqLnPe8k4','iHNcSCkxW4ldIc0RW6NdJCouCNO','WOZcIXVdLSkX','4P+EWOFOHk3MNBNOVz3OOlNPGkZLIQ/KUB/PLQ7OR43cRW','W5ddVCoRWOThW71aW7ryWOiyW5SwhCoTW6/cLmonpWLMW7jPvmoAWOdcOCk0','WOCKBxldQa','WQNcQ8oFg8kO','WQyyeCoDl8o4W4JcMIlcImoC','WO3cP8oEnde','WQ9tvwlcL17cGgzyFMtdMSkmpI9jW6m4W6pdMWj8ba','WOhdNmouWPS','4P+qWR7MN63OG53MR6ZNOANLP7xNKAxcHa','WQ7dLmojW5mo','5Q+O6lwm5y6C6BIy5yYm772r6lE16l6shW','qbTvW4u','4P2ccoIgQoADG+I8Q+IJJUMcNUwlO+s5VUMvK+ISHCkW','h8kKW4W','WOK0WQGMcSojs1nIuq','yWpcS0DvlmkA','W7NdPSkZ','W4SVpW','cINcTeixW7fqWQm','W5BdVxS','W7JdH8kFWQLUWQOYo8oqW7OcWOldGa','yuRdNSkoj08','W5i0W5/cQ8ko','W7iLDxpcUq','WQbZeSojBs7cGWX9cmowWQ/dTmovW7XBW5frW7RcR8ooW6VdKrNcJ0eluIdcTtNcOSkO','WPdcRSoOjSkl'],...(function(){return['W6NdRmkC','WQ/cOY3dTmkH','nSkwt8kiEG','W7iiuN/cKfxcMI9Z','lCovoW','W5xcKEw+IUwLSEwhMUMbI+s7MUEzUEwjIUwiQCk7mbS','WRVcQ8oha8kOW6u','WQT6WPJcS8kNW43cMmo/hmk0eCksnNKakSk6WRihstddTXH/oSkvWRddI8kWWRZdI8o3xIVdHmo8W7BdK8kIW5fZW7JdLmktWOeCFbBdR3JdJIuSuMSFWOvQW4lcO8kJj8kMyCoTsIBcOSkuW4dcN8o0rwC','tGddOmo+hwtcO8oVW7jayMW','imozorJdOcGyW6ddOq','wuFdUYqyWRldPmoc','6l6V5RgI5lIq5AAq5Aws776a6i++5B2S77+356I25RkG','tKqKWO8wWRK8WO7cJb/dH8ka','W4HFW5xdJmoX','WPeWF8kZoq','WOVcVsJdNSkD','ErNcPuTdbmkvrSog','FvJcSa','WQ/cTmoaW78','iSkgC8kDCmo5','tSk9W57dNxy','d0D+WOC','BMRcV8o1oa','5RA35yUc5yso5yYQ77+HnxiHeCk3W6pdS8oWh8kKW70OeNpdNmkxWQtdV8oiW6TeWOVcOuldNSkyctjBAmojwgLbW4OVW4D5ot7cRtaormo2oI1tW5iVn8k7W50rW69mkmkLWQxcOmohnJ5iW69zkWaMWP/dNSoMusZcRsG','W7yZcSovyIFcSZC','yehdKqtcTCoJWRtcTG','EKpdRmoaWOW','WQzMfSoTmt7cLG','WQpcICk2eZzIWR/dGLSnW5JcHM44W7GYW47dOG5SWOTBrmojiN5CzSoBW6pcJ28','WReQvCkLcCk3DCkZWQzhW4zXAmoenGTiWQzCvG','W6pdKLiNW7q8bCoRWPZdHupdHSkSWP3dGCogACkGWPPf','4P6hW4RMNRlNNPlORQ7MSBtdVG','aXnvW5CiFSksxW','WOu+DcbQ','p8kIBmk6zW','W44rh1JdMW','WRFdSCogWOpdNG','WR4aWQXpqq','WQLGtmobAXNcGWT/jmoxW6ZdSCouW5LgWPTFW6JcO8oyW7BcJqhcT0ervW','hJbrW4b4','WRZcSSoBg8kKW7tcHSo5FSkOdmoKeqStWPLxEmo8w27dKJuKcGNcH8kyWPpcQ0O9mG','WOaXzgC','AoEyLEwkG+AFME++Ja','WP5sW4GYWPe3W68','WQDVWPJcOG','WQXGWQ7dH8kkbCkD','cCohoL8h','B1VdGqBcNmoS','W6NdKa7cJCkbAZNdU8oKWO7dV8kneXJcQSovofldN8oQq8o/EmoXnCkWWPG','WRhcRCom','oLhdVmkBfXJcJq1TW4PaW7bpW4ddI8omWO/dTmoNx8oZymonDr41ACkg','W4tdPCo5c8oAmCo3WPVdJ8k+ur/cKrVcJSo4W5ddONRcPKuQi2RdKY7dSa','W7jDWR3cNhm','WPryW7qLWRi/WPe9W7vnWQFdUZ/dRG','W7bjv8ko','wbPsW53dSCkYWQ/dJSo9W4e+W6i+WRRdPmkSW4FcOmkyW5XuWQldQW','W6BdHSkXASoc','W4mzWOTS','W6ddGKa0W78rgmoBWPZdG0pdJmk0','WQBcK8ozbcPtWQRdGG','WQCCWOmbWOO','WPmWWRbBqYNcHIS','W7Dhr8kk','WRSCrupdSG','WRqMWQfBDbZcGIpdGCkw','WRlcIXhcQ8kRCt3dOCo3','nmkWW47dQL4','W6GJW7NcS8oDe8kkrmkRWRNdUG','WP/dPSoO','WP9dW60LWQ1GW4P7W7TtWOJcUtpcP8kpWP/cU8k5WQ0OnSkAv8kDzgRcQefEWQyBWRJcMCknjgtdMYJdSmouWPVdQmozW6VdVCov','W6r3WQpcIf8i','W7W/mLddQvT/WRqrW6q','WO7cVcS','fCoJc38','gmkZW5FdL3iqbW','W7dcQI9xpL/cVq','W6xdK8kdqCo9','W7BLT67LRjtMIPhdJG','bUIUMoAZJ+wMQUI0LsFINzFcRG','WQSWWRi','WPxdSmoHcCoT','WOldMmouWRlcSx3dOG','WRrlfs7cS1/cNrfFqq','W7PnrSklrmooW73cOcBcLmokamo4W6Dh','WQr7fG','D17cRW','bSkAWRRcSq','WOFdQSoy','W5WJiuVdON95WRyn','hdVcISokW5KXW61PW54','WRTlWQNcGSkv','WQBcMSoo','WOrhW4SwWPq','W4ahW7eLWRGWWRqB','tmkSW47dRgezeCoQuXqOeGFdUYPIDCkGs8k+xmkYWRqjCKRdVW','Cmkozr7dOYuCWQlcU8o5WQuIWRW','WOLNWQxcOmkB','WRS0Dq','w37cPCo4cG','W51HWQJcNwubhMe','W6z7WQ7cHgubhMe','cdBcM8okW4eSW7PTW57cQYDnW6VdUa/cKmoqlSkqWRO','WPauxqrk','WQP7WR/dOCkriSkxzCkKWRldHG','c8kpWQVcVCoFW6W'];}())];}())];}());Iii11l=function(){return I11iIi;};return Iii11l();};const jdCookie=require(ll1lI(0x1f0,'W9fj')),notify=require('./utils/Rebels_sendJDNotify'),common=require(ll1lI(0x1e8,'DG^w')),{H5st}=require(ll1lI(0x286,'83kI')),isNotify=![];let waitTimes=0x3e8,cookie='';$['ShareCodes']=[],$[ll1lI(0x180,'w$B5')]=[];const cookiesArr=Object['keys'](jdCookie)[ll1lI(0x1b8,'GDBF')](li1Ii=>jdCookie[li1Ii])[ll1lI(0x202,'NC!D')](Iliiii=>Iliiii);!cookiesArr[0x0]&&($['msg']($['name'],'【提示】请先获取Cookie'),process['exit'](0x1));!(async()=>{const l1iii=ll1lI,i1illI={'RFDhu':l1iii(0x213,'GDBF'),'bOKLq':function(i1IIl,I1lll1){return i1IIl+I1lll1;},'zWWpL':function(i1IIi,IIII1I){return i1IIi(IIII1I);},'EPvyi':l1iii(0x182,'SkZ4'),'DAtkE':function(Iii111){return Iii111();},'MlCQF':function(l1l1II,Iil1I1){return l1l1II*Iil1I1;},'cnlkn':function(Ii1iII,l1i11I){return Ii1iII<l1i11I;},'HneRO':function(II11II,Ii1iI1){return II11II+Ii1iI1;},'ZQQqH':function(lilIli,Iliili){return lilIli(Iliili);}};console['log'](i1illI[l1iii(0x1d4,'ok(o')]),notify[l1iii(0x156,'bCx$')]({'title':$[l1iii(0x1dd,'Sjdq')]});for(let Iliill=0x0;Iliill<cookiesArr['length'];Iliill++){$[l1iii(0x216,'!cLz')]=i1illI[l1iii(0x290,'tP)5')](Iliill,0x1),cookie=cookiesArr[Iliill],common[l1iii(0x19c,'1@b5')](cookie),$[l1iii(0x239,'8x[$')]=i1illI[l1iii(0x280,']wLU')](decodeURIComponent,common['getCookieValue'](cookie,i1illI[l1iii(0x28f,'NC!D')])),$['UA']=common[l1iii(0x28e,'hM7v')]($[l1iii(0x16d,'ppq8')]),$[l1iii(0x1d5,'NC!D')]=notify['create']($[l1iii(0x20b,'Sjdq')],$['UserName']),$[l1iii(0x215,'EiBg')]='',$['retryTimes']=0x0,console[l1iii(0x1aa,'DgR1')]('\x0a******开始【京东账号'+$['index']+'】'+($[l1iii(0x198,'7O65')]||$['UserName'])+'******\x0a'),await i1illI['DAtkE'](Main),common[l1iii(0x263,'1@b5')]();if($['runEnd'])break;await $[l1iii(0x1d9,'Js51')](parseInt(i1illI[l1iii(0x1ae,'Js51')](i1illI[l1iii(0x1fb,'NC!D')](waitTimes,0x1),0x5dc),0xa));}console['log'](l1iii(0x201,'xB]O'));for(let IIII11=0x0;i1illI['cnlkn'](IIII11,cookiesArr['length']);IIII11++){$[l1iii(0x26a,'lXA0')]=i1illI['HneRO'](IIII11,0x1),cookie=cookiesArr[IIII11],common['setCookie'](cookie),$[l1iii(0x1d3,'hM7v')]=i1illI[l1iii(0x157,'bCx$')](decodeURIComponent,common['getCookieValue'](cookie,i1illI[l1iii(0x16f,'aV(^')])),$['UA']=common[l1iii(0x24c,'rIHU')]($[l1iii(0x1f4,'li%i')]),$['message']=notify['create']($['index'],$['UserName']),$[l1iii(0x260,'%mY%')]='',$[l1iii(0x23c,'8x[$')]=0x0,console['log'](l1iii(0x1b4,'TjXN')+$[l1iii(0x20b,'Sjdq')]+'】'+($['nickName']||$[l1iii(0x25f,'%mY%')])+l1iii(0x227,'RdJI')),await Help(),common[l1iii(0x183,'FSdq')]();if($[l1iii(0x20f,'XvLH')])break;await $[l1iii(0x273,'!cLz')](parseInt(waitTimes*0x1+0x5dc,0xa));}isNotify&&notify[l1iii(0x284,'W9fj')]()&&(notify[l1iii(0x186,'I95]')]('\x0a'),await notify[l1iii(0x26d,'FSdq')]());})()['catch'](i1illi=>$[ll1lI(0x278,'qKt2')](i1illi))[ll1lI(0x1a7,'DgR1')](()=>$['done']());async function Main(){const IIlli=ll1lI,i1illl={'bStef':function(I1llil,I1llii){return I1llil===I1llii;},'bPRbL':IIlli(0x174,'bCx$'),'yawGL':function(lilIll,l1i111){return lilIll(l1i111);},'JDXwj':'queryInteractiveInfo','JiIcO':IIlli(0x282,'xB]O'),'JESuH':'积分兑换','nyKvd':function(iliII1,II11I1){return iliII1<II11I1;},'wsbVs':function(Iii11I,Iil1II){return Iii11I!=Iil1II;},'MpaOD':function(iIIl1I,I1iIli,lI1Ill){return iIIl1I(I1iIli,lI1Ill);},'QoOdI':function(lI1Ili,IliilI){return lI1Ili+IliilI;},'sHMTL':function(i1II1,iIIl11){return i1II1*iIIl11;},'MiGSM':function(l1l1I1,I1iIll){return l1l1I1*I1iIll;},'yMDar':function(I1lliI,llIllI){return I1lliI>llIllI;},'RLfyZ':IIlli(0x218,'o$ln'),'kVLHw':function(I1ilI1,iillll,lIIilI){return I1ilI1(iillll,lIIilI);},'EYGbg':function(II1li1,l1lIlI){return II1li1+l1lIlI;},'oQqby':function(IiiIl1,lIIil1){return IiiIl1(lIIil1);},'WGnhT':function(IIli1,II1liI){return IIli1+II1liI;},'qOCiQ':function(IlI1i1,l1lIl1){return IlI1i1*l1lIl1;}};try{const IiiIlI=await common['getLoginStatus'](cookie);if(!IiiIlI&&i1illl[IIlli(0x212,'ok(o')](typeof IiiIlI,i1illl[IIlli(0x16c,'FSdq')])){console[IIlli(0x251,'Js51')]('账号无效');return;}$['queryInteractiveInfo']='',await i1illl[IIlli(0x27b,'GDBF')](sendRequest,i1illl['JDXwj']);if($[IIlli(0x261,'bKz9')]){let Iilli1=$[IIlli(0x17b,'rIHU')]['hasRisk']||![];if(Iilli1){console['log'](IIlli(0x1ec,'GDBF'));return;}else{for(let I1l1Il of $[IIlli(0x17a,'%mY%')][IIlli(0x179,'qKt2')]){if(I1l1Il[IIlli(0x18d,'[w0&')][IIlli(0x15b,'bCx$')](i1illl[IIlli(0x25c,'7Wpr')])){$['lotterynum']=I1l1Il[IIlli(0x1a3,'RdJI')]-I1l1Il[IIlli(0x265,'bKz9')];continue;}if(I1l1Il['assignmentName']['includes'](i1illl[IIlli(0x271,'1@b5')]))continue;if(I1l1Il['assignmentType']===0x2){$[IIlli(0x175,'[w0&')][IIlli(0x1ed,'#gJF')](I1l1Il[IIlli(0x253,'FSdq')][I1l1Il[IIlli(0x1a8,'rS[J')][IIlli(0x1bd,'DG^w')]]['itemId']||'');continue;}if(I1l1Il[IIlli(0x231,'64r4')]){console['log'](I1l1Il['assignmentName']+IIlli(0x249,'nWEY'));continue;}$['title']=I1l1Il[IIlli(0x181,'bCx$')];let llIll1=I1l1Il[IIlli(0x1d2,'TjXN')];$[IIlli(0x20e,'dSox')]=I1l1Il[IIlli(0x269,'dSox')];let Illl1l=[];JSON['stringify'](I1l1Il[IIlli(0x250,'tNhO')])!=='{}'&&(Illl1l=I1l1Il[IIlli(0x1f2,'[sKd')][I1l1Il[IIlli(0x1ef,'aV(^')][IIlli(0x255,'bKz9')]]);for(j=0x0;i1illl['nyKvd'](j,llIll1);j++){$[IIlli(0x26c,'bKz9')]='';if(i1illl[IIlli(0x189,'TjXN')](Illl1l[IIlli(0x177,'7O65')],0x0)){if(Illl1l[j][IIlli(0x15a,'xB]O')]==0x2)continue;$[IIlli(0x1e5,'NC!D')]=Illl1l[j][IIlli(0x28c,'D8kE')]||Illl1l[j][IIlli(0x16b,'!cLz')];if($['title']==0x174f0f54c2)continue;$[IIlli(0x184,'ie90')]=Illl1l[j][IIlli(0x27d,'li%i')],$['waitDuration']=Illl1l[j]['waitDuration']||0x0;}console[IIlli(0x193,'W9fj')](IIlli(0x1b1,')ydB')+$[IIlli(0x163,'#gJF')]),await sendRequest(IIlli(0x22c,'oa@X')),await $[IIlli(0x27f,'1@b5')](i1illl[IIlli(0x1fd,'Sjdq')](parseInt,i1illl['QoOdI'](i1illl[IIlli(0x23b,'tP)5')](waitTimes,0x1)+$['waitDuration']*0x3e8,0x1f4),0xa)),await i1illl[IIlli(0x27b,'GDBF')](sendRequest,IIlli(0x1a5,'li%i')),await $[IIlli(0x27e,'8x[$')](parseInt(i1illl[IIlli(0x20a,'TjXN')](i1illl[IIlli(0x178,'rS[J')](waitTimes,0x1),0x1f4),0xa));}await $[IIlli(0x1d9,'Js51')](i1illl[IIlli(0x1f8,'bCx$')](parseInt,i1illl[IIlli(0x1c2,'rIHU')](waitTimes*0x1,0x1f4),0xa));}if(i1illl[IIlli(0x248,'[sKd')]($['lotterynum'],0x0)){console[IIlli(0x1ad,'DG^w')]('\x0a每天5次抽奖机会去抽奖');while($[IIlli(0x1db,'64r4')]--){await i1illl[IIlli(0x1cf,'xB]O')](sendRequest,i1illl[IIlli(0x220,'d]q9')]),await $[IIlli(0x235,'RdJI')](i1illl['kVLHw'](parseInt,i1illl[IIlli(0x15e,'W9fj')](i1illl[IIlli(0x275,'nWEY')](waitTimes,0x1),0x5dc),0xa));}}await i1illl[IIlli(0x21e,'XvLH')](sendRequest,IIlli(0x206,'lXA0')),await $['wait'](parseInt(i1illl[IIlli(0x25e,'ok(o')](i1illl[IIlli(0x1eb,'xB]O')](waitTimes,0x1),0x3e8),0xa));}}}catch(Illl1i){console[IIlli(0x25d,'7O65')](IIlli(0x1e2,')ydB')+Illl1i);}}async function Help(){const l1iil=ll1lI,lIIiil={'knUQq':function(l1lIii,I11iI1){return l1lIii===I11iI1;},'NikFi':l1iil(0x246,'aV(^'),'zXvJM':l1iil(0x289,'[w0&'),'xEEAA':function(l1lIil,IiiIli,iillli){return l1lIil(IiiIli,iillli);},'rIdGt':function(I1l1Ii,I1i11i){return I1l1Ii(I1i11i);},'sKUTK':function(I1i11l,llIlii){return I1i11l+llIlii;},'zGjZc':function(llIlil,IIlil){return llIlil*IIlil;},'BgGht':function(ilI1lI,IiiIll){return ilI1lI>IiiIll;}};try{const IIlii=await common[l1iil(0x1df,'w$B5')](cookie);if(!IIlii&&lIIiil['knUQq'](typeof IIlii,lIIiil[l1iil(0x27a,'ok(o')])){console[l1iil(0x281,'tP)5')]('账号无效');return;}$[l1iil(0x277,'W9fj')]=![],$['queryInteractiveInfo']='',await sendRequest(lIIiil[l1iil(0x234,'[sKd')]),await $['wait'](lIIiil[l1iil(0x22a,'83kI')](parseInt,waitTimes*0x1+0x1f4,0xa));if($['queryInteractiveInfo']){let IlI1il=$[l1iil(0x288,'o$ln')][l1iil(0x15d,'rS[J')]||![];if(IlI1il){console[l1iil(0x281,'tP)5')]('此账号黑号,跳过~');return;}else{if($[l1iil(0x243,'hM7v')][l1iil(0x242,'%mY%')]>0x0)for(let IilliI of $[l1iil(0x175,'[w0&')]){$[l1iil(0x27c,'dSox')]=IilliI,console[l1iil(0x285,'#gJF')](l1iil(0x1b0,'IWhz')+$[l1iil(0x1f7,'SkZ4')]+']'),await lIIiil[l1iil(0x168,'#gJF')](sendRequest,'Help');if($['skipRun'])break;await $[l1iil(0x1a2,'bKz9')](lIIiil[l1iil(0x256,'7Wpr')](parseInt,lIIiil['sKUTK'](lIIiil[l1iil(0x276,'rIHU')](waitTimes,0x1),0x9c4),0xa));}}if(lIIiil[l1iil(0x162,'NC!D')]($[l1iil(0x24f,']wLU')][l1iil(0x166,'XvLH')],0x0))for(let IlI1ii of $['needRemoveCodes']){$[l1iil(0x279,'XvLH')]['includes'](IlI1ii)&&$[l1iil(0x26f,'83kI')][l1iil(0x1d8,'d]q9')]($['ShareCodes'][l1iil(0x1f1,'rS[J')](IlI1ii),0x1);}}}catch(lIIiii){console[l1iil(0x22d,'NC!D')](l1iil(0x1ee,'EiBg')+lIIiii);}}async function handleResponse(iI1lli,ll1iI){const ii1l1=ll1lI,iI1lll={'wcLmY':'queryInteractiveInfo','aFLzW':function(l1lIll,I1l1II){return l1lIll===I1l1II;},'URzQi':ii1l1(0x222,'tNhO'),'rsfBF':function(IIli1I,I1i11I){return IIli1I===I1i11I;},'XVyEa':ii1l1(0x225,'tP)5'),'feRPd':function(llIliI,I1l1I1){return llIliI===I1l1I1;},'umNho':'myAssets'};try{switch(iI1lli){case iI1lll[ii1l1(0x1c1,'W9fj')]:if(iI1lll['aFLzW'](ll1iI[ii1l1(0x18a,'D8kE')],'0')&&iI1lll[ii1l1(0x223,'DgR1')](ll1iI[ii1l1(0x1c3,'TjXN')],'0'))$[ii1l1(0x21a,')ydB')]=ll1iI;else ll1iI['msg']?console[ii1l1(0x18f,'[w0&')](ll1iI[ii1l1(0x240,'rIHU')]):console[ii1l1(0x25d,'7O65')]('❓'+iI1lli+'\x20'+JSON[ii1l1(0x28b,'o$ln')](ll1iI));break;case ii1l1(0x16a,'64r4'):if(ll1iI[ii1l1(0x1b9,'RdJI')]===0x0){}else ll1iI[ii1l1(0x1d0,']wLU')]?console['log'](ll1iI[ii1l1(0x19f,'[w0&')]):console[ii1l1(0x244,'Sjdq')]('❓'+iI1lli+'\x20'+JSON[ii1l1(0x17e,'xB]O')](ll1iI));break;case iI1lll[ii1l1(0x19d,'dSox')]:case'hc.doTaskColorJsf.exchangePrizes':if(iI1lll[ii1l1(0x283,'o$ln')](ll1iI[ii1l1(0x1c8,'7Wpr')],0x0)&&iI1lll[ii1l1(0x21f,'hM7v')](ll1iI[ii1l1(0x228,'7Wpr')][ii1l1(0x274,'NC!D')],'0')){if(ll1iI[ii1l1(0x211,'qKt2')]['rewardsDetail']){let I1i111=ll1iI['data'][ii1l1(0x1bc,'RdJI')]||0x0;switch(I1i111){case 0x1:console[ii1l1(0x22d,'NC!D')](ii1l1(0x161,'bCx$')+ll1iI['data']['rewardsDetail']+'金币');break;case 0x3:console[ii1l1(0x266,'oa@X')](ii1l1(0x1cb,'FSdq')+ll1iI['data'][ii1l1(0x236,')ydB')]+'京豆');break;default:console[ii1l1(0x251,'Js51')](ii1l1(0x1be,'tNhO')+JSON[ii1l1(0x1ff,'DG^w')](ll1iI[ii1l1(0x1e9,'d]q9')])+'');break;}}else console[ii1l1(0x1b5,'GDBF')](ii1l1(0x207,'DgR1'));}else{if(ll1iI[ii1l1(0x1e9,'d]q9')]&&ll1iI['data']['msg'])console[ii1l1(0x1aa,'DgR1')]('失败:'+ll1iI[ii1l1(0x232,']wLU')]['msg']);else ll1iI['msg']?console['log'](ll1iI['msg']):console[ii1l1(0x188,'rS[J')]('❓'+iI1lli+'\x20'+JSON[ii1l1(0x159,'w$B5')](ll1iI));}break;case iI1lll['XVyEa']:if(ll1iI[ii1l1(0x23a,']wLU')]===0x0&&iI1lll[ii1l1(0x1fe,'XvLH')](ll1iI[ii1l1(0x187,'SkZ4')][ii1l1(0x229,'1@b5')],'0'))console[ii1l1(0x19b,'FSdq')]('助力成功\x20✔获得'+ll1iI[ii1l1(0x26b,'[sKd')][ii1l1(0x1bf,'8x[$')]+'金币');else{if(ll1iI[ii1l1(0x194,'7O65')]&&ll1iI[ii1l1(0x190,'RdJI')]['msg']){if(ll1iI[ii1l1(0x17d,'XvLH')]['msg'][ii1l1(0x26e,'NC!D')]('上限'))console[ii1l1(0x200,'IWhz')](ll1iI[ii1l1(0x1ca,'ppq8')][ii1l1(0x240,'rIHU')]),$['skipRun']=!![];else{if(ll1iI[ii1l1(0x245,'83kI')][ii1l1(0x24b,'8x[$')][ii1l1(0x270,'EiBg')]('已经做'))console[ii1l1(0x257,'dSox')](ll1iI['data'][ii1l1(0x1b2,'1@b5')]);else ll1iI[ii1l1(0x1d6,'xB]O')][ii1l1(0x268,'oa@X')][ii1l1(0x26e,'NC!D')](ii1l1(0x287,'EiBg'))?(console[ii1l1(0x257,'dSox')](ll1iI['data'][ii1l1(0x240,'rIHU')]),$['needRemoveCodes']['push']($['itemId'])):console[ii1l1(0x1a6,'D8kE')](ll1iI[ii1l1(0x252,'[w0&')]['msg']);}}else ll1iI[ii1l1(0x1d0,']wLU')]?console['log'](ll1iI[ii1l1(0x169,'[sKd')]):console[ii1l1(0x18b,'1@b5')]('❓'+iI1lli+'\x20'+JSON[ii1l1(0x20c,'rS[J')](ll1iI));}break;case iI1lll['umNho']:if(ll1iI[ii1l1(0x185,'GDBF')]===0x0)console[ii1l1(0x164,'rIHU')](ii1l1(0x226,'[w0&')+(ll1iI[ii1l1(0x19a,'EiBg')]?.['myGold']?.[ii1l1(0x1ba,')ydB')]||0x0)+'金币');else ll1iI['msg']?console[ii1l1(0x272,'lXA0')](ll1iI['msg']):console[ii1l1(0x28a,'ok(o')]('❓'+iI1lli+'\x20'+JSON[ii1l1(0x254,'hM7v')](ll1iI));break;}}catch(ilI1li){console['log'](ii1l1(0x1ea,'[sKd')+iI1lli+'\x20请求响应\x20'+(ilI1li['message']||ilI1li));}}async function sendRequest(IIliI){const lIIill=ll1lI,ilI1ll={'YrqpQ':lIIill(0x197,')ydB'),'spRCJ':lIIill(0x219,'TjXN'),'OpeeV':lIIill(0x1ce,'tNhO'),'Kcowt':lIIill(0x25a,'aV(^'),'cjMSJ':lIIill(0x1e3,'FSdq'),'oeLpg':lIIill(0x165,'oa@X'),'nXWmT':lIIill(0x1fc,'NC!D'),'QjhOW':'hc.doTaskColorJsf.validOpen','xCyfL':lIIill(0x210,'aV(^'),'RefPr':'home-channel','zOpsX':lIIill(0x17f,'FSdq'),'DrIOB':lIIill(0x237,'o$ln'),'FMFCh':lIIill(0x1fa,'tNhO'),'wdyGO':'gzip,\x20deflate,\x20br','apVOh':'zh-cn','kVdZK':lIIill(0x16e,'o$ln'),'bwspA':lIIill(0x224,'NC!D'),'rxnXr':lIIill(0x233,'#gJF'),'GOOtR':'https://prodev.m.jd.com/','eCMMb':lIIill(0x21c,'qKt2'),'ANKze':function(lliil1,IIllI){return lliil1===IIllI;},'sYUeG':lIIill(0x1f3,'GDBF'),'pfryU':'Content-Type','VvbTf':function(lliilI,lili1){return lliilI<lili1;},'KqqiZ':function(ll1l1,IllIIi,IllIIl){return ll1l1(IllIIi,IllIIl);},'NlvQI':function(IiiIi1,l1ii1){return IiiIi1>=l1ii1;}};if($['runEnd'])return;let Iillii='',IlI1iI=null,Iillil=null,l1lIli=ilI1ll[lIIill(0x1c4,'ok(o')],lIIiiI={},II1lil={};switch(IIliI){case ilI1ll[lIIill(0x258,'64r4')]:II1lil={'appId':ilI1ll[lIIill(0x1e4,'tP)5')],'functionId':ilI1ll[lIIill(0x15c,'EiBg')],'appid':lIIill(0x1dc,'dSox'),'body':{'encryptProjectId':ilI1ll['Kcowt'],'sourceCode':lIIill(0x205,'IWhz'),'ext':{'needNum':0xa,'rewardEncryptAssignmentId':ilI1ll['cjMSJ'],'assistEncryptAssignmentId':ilI1ll['oeLpg'],'assistInfoFlag':0x4,'assistNum':0x5}},'version':ilI1ll[lIIill(0x176,'EiBg')],'ua':$['UA'],'t':!![]},lIIiiI=await H5st['getH5st'](II1lil),Iillii='https://api.m.jd.com/client.action?functionId='+IIliI,IlI1iI=lIIiiI['paramsData'];break;case ilI1ll[lIIill(0x28d,'xB]O')]:II1lil={'appId':ilI1ll[lIIill(0x1b7,'[sKd')],'functionId':ilI1ll[lIIill(0x195,'EiBg')],'appid':ilI1ll[lIIill(0x21d,'7O65')],'body':{'actionType':0x2},'version':lIIill(0x1f5,'Sjdq'),'ua':$['UA'],'t':!![]},lIIiiI=await H5st[lIIill(0x24d,'d]q9')](II1lil),Iillii=lIIill(0x167,'NC!D')+IIliI,IlI1iI=lIIiiI[lIIill(0x17c,'64r4')];break;case ilI1ll['zOpsX']:II1lil={'appId':ilI1ll['xCyfL'],'functionId':lIIill(0x1c9,'TjXN'),'appid':ilI1ll['RefPr'],'body':{'encryptAssignmentId':$['eAid'],'encryptProjectId':ilI1ll['Kcowt'],'itemId':$[lIIill(0x27c,'dSox')]||''},'version':ilI1ll[lIIill(0x267,'bCx$')],'ua':$['UA'],'t':!![]},lIIiiI=await H5st[lIIill(0x217,'tNhO')](II1lil),Iillii=lIIill(0x241,'64r4')+IIliI,IlI1iI=lIIiiI[lIIill(0x1a4,'bKz9')];break;case lIIill(0x18c,'ie90'):II1lil={'appId':ilI1ll['xCyfL'],'functionId':ilI1ll[lIIill(0x230,'%mY%')],'appid':ilI1ll['RefPr'],'body':{'encryptAssignmentId':ilI1ll['oeLpg'],'encryptProjectId':ilI1ll[lIIill(0x1da,'ie90')],'itemId':$[lIIill(0x264,'[w0&')]},'version':ilI1ll[lIIill(0x1b3,'DgR1')],'ua':$['UA'],'t':!![]},lIIiiI=await H5st['getH5st'](II1lil),Iillii=lIIill(0x203,'7Wpr'),IlI1iI=lIIiiI['paramsData'];break;case ilI1ll['DrIOB']:II1lil={'appId':ilI1ll[lIIill(0x1bb,'DgR1')],'functionId':ilI1ll[lIIill(0x1ac,'%mY%')],'appid':ilI1ll['RefPr'],'body':{'encryptProjectId':'6pvWvhxzcHzeEiWsqP5oKgUbHEy'},'version':ilI1ll[lIIill(0x173,'bKz9')],'ua':$['UA'],'t':!![]},lIIiiI=await H5st[lIIill(0x191,'#gJF')](II1lil),Iillii='https://api.m.jd.com/client.action?functionId='+IIliI,IlI1iI=lIIiiI[lIIill(0x15f,'li%i')];break;case lIIill(0x172,'rS[J'):II1lil={'appId':ilI1ll[lIIill(0x221,'8x[$')],'functionId':lIIill(0x1cd,'w$B5'),'appid':lIIill(0x204,'D8kE'),'body':{'encryptAssignmentId':lIIill(0x22e,'SkZ4'),'encryptProjectId':lIIill(0x22f,'rIHU')},'version':ilI1ll[lIIill(0x1e1,'Sjdq')],'ua':$['UA'],'t':!![]},lIIiiI=await H5st['getH5st'](II1lil),Iillii='https://api.m.jd.com/client.action?functionId='+IIliI,IlI1iI=lIIiiI[lIIill(0x1af,'nWEY')];break;default:console[lIIill(0x251,'Js51')](lIIill(0x21b,'o$ln')+IIliI);return;}const IIli1l={};IlI1iI&&Object[lIIill(0x22b,'EiBg')](IlI1iI,IIli1l);Iillil&&Object['assign'](Iillil,IIli1l);const II1lii={'url':Iillii,'method':l1lIli,'headers':{'Accept':ilI1ll[lIIill(0x1e7,'o$ln')],'Accept-Encoding':ilI1ll[lIIill(0x238,'ppq8')],'Accept-Language':ilI1ll['apVOh'],'Connection':ilI1ll[lIIill(0x1a9,'rS[J')],'Content-Type':ilI1ll[lIIill(0x1a1,'D8kE')],'Cookie':cookie,'Origin':ilI1ll[lIIill(0x1b6,'aV(^')],'Referer':ilI1ll[lIIill(0x262,'7O65')],'x-rp-client':ilI1ll[lIIill(0x209,'nWEY')],'User-Agent':$['UA']},'params':Iillil,'data':IlI1iI,'timeout':0x7530};ilI1ll[lIIill(0x1cc,'ok(o')](l1lIli,ilI1ll[lIIill(0x1f9,'DG^w')])&&(delete II1lii[lIIill(0x232,']wLU')],delete II1lii[lIIill(0x1d7,'[w0&')][ilI1ll[lIIill(0x1a0,'hM7v')]]);const lIIii1=0x1;let ll1i1=0x0,IIli1i=null,I1iIi1=![];while(ilI1ll['VvbTf'](ll1i1,lIIii1)){ll1i1>0x0&&await $[lIIill(0x19e,'[sKd')](0x3e8);const ii1ll=await common['request'](II1lii);if(!ii1ll[lIIill(0x158,'#gJF')]){IIli1i=lIIill(0x171,'li%i')+IIliI+lIIill(0x24a,'D8kE')+ii1ll[lIIill(0x196,'li%i')],ll1i1++;continue;}if(!ii1ll['data']){IIli1i=lIIill(0x160,'7O65')+IIliI+'\x20请求失败\x20➜\x20无响应数据',ll1i1++;continue;}await ilI1ll['KqqiZ'](handleResponse,IIliI,ii1ll[lIIill(0x19a,'EiBg')]),I1iIi1=![];break;}ilI1ll[lIIill(0x23e,'aV(^')](ll1i1,lIIii1)&&(console['log'](IIli1i),I1iIi1&&($[lIIill(0x247,'ie90')]=!![],$['message']&&$[lIIill(0x18e,'ppq8')][lIIill(0x20d,'Js51')](IIli1i)));}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) }