mirror of https://github.com/KingRan/KR.git
14 lines
46 KiB
JavaScript
14 lines
46 KiB
JavaScript
/*
|
||
东东农场快速浇水
|
||
环境变量:FRUIT_PLANT_LEVEL // 自动种植的作物等级(正整数),默认为2
|
||
FRUIT_WATERING_NOTIFY // 是否推送通知(true/false),默认不推送
|
||
|
||
每月或每周只能领2次红包,由于常规浇水太慢,脚本优先使用快速浇水卡
|
||
|
||
*/
|
||
|
||
const $ = new Env('东东农场快速浇水')
|
||
var version_='jsjiami.com.v7';const li1i11lI=iIi111iI;(function(i11il1Ii,llIi1il1,l1iI1lli,ii1IIli1,iIIlIiIi,l1lllIl1,liI1Ili1){return i11il1Ii=i11il1Ii>>0x1,l1lllIl1='hs',liI1Ili1='hs',function(iII1l11i,liiilIIl,lIiiiIiI,i1Ili,II11Ii){const l1i1IIi1=iIi111iI;i1Ili='tfi',l1lllIl1=i1Ili+l1lllIl1,II11Ii='up',liI1Ili1+=II11Ii,l1lllIl1=lIiiiIiI(l1lllIl1),liI1Ili1=lIiiiIiI(liI1Ili1),lIiiiIiI=0x0;const IillIl=iII1l11i();while(!![]&&--ii1IIli1+liiilIIl){try{i1Ili=-parseInt(l1i1IIi1(0x2b5,'HsC3'))/0x1*(parseInt(l1i1IIi1(0x1ed,'(M67'))/0x2)+-parseInt(l1i1IIi1(0x195,'z1U*'))/0x3+parseInt(l1i1IIi1(0x19e,'Zvej'))/0x4*(-parseInt(l1i1IIi1(0x2f0,'iN7%'))/0x5)+parseInt(l1i1IIi1(0x293,'HsC3'))/0x6+-parseInt(l1i1IIi1(0x2bb,']0%C'))/0x7+parseInt(l1i1IIi1(0x2a7,'Zvej'))/0x8*(-parseInt(l1i1IIi1(0x19a,'rZu^'))/0x9)+parseInt(l1i1IIi1(0x1f0,'vc[['))/0xa;}catch(l1iii111){i1Ili=lIiiiIiI;}finally{II11Ii=IillIl[l1lllIl1]();if(i11il1Ii<=ii1IIli1)lIiiiIiI?iIIlIiIi?i1Ili=II11Ii:iIIlIiIi=II11Ii:lIiiiIiI=II11Ii;else{if(lIiiiIiI==iIIlIiIi['replace'](/[BWSGMptNHIPJfEedrTuk=]/g,'')){if(i1Ili===liiilIIl){IillIl['un'+l1lllIl1](II11Ii);break;}IillIl[liI1Ili1](II11Ii);}}}}}(l1iI1lli,llIi1il1,function(IIllI11l,iliIi1l,liiiI1Il,iliIillI,l1Illi1I,l11iIlil,iII1IlI1){return iliIi1l='\x73\x70\x6c\x69\x74',IIllI11l=arguments[0x0],IIllI11l=IIllI11l[iliIi1l](''),liiiI1Il=`\x72\x65\x76\x65\x72\x73\x65`,IIllI11l=IIllI11l[liiiI1Il]('\x76'),iliIillI=`\x6a\x6f\x69\x6e`,(0x14489d,IIllI11l[iliIillI](''));});}(0x182,0x7a531,IIil1lII,0xc3),IIil1lII)&&(version_=li1i11lI(0x321,'SwE#'));const lIliIili=require('./jdCookie'),lI1lII1l=require(li1i11lI(0x1b6,'DE7L')),llli1=require(li1i11lI(0x200,'9rYE')),iI11lIIl=require(li1i11lI(0x1c2,'cYxp')),llli1ill=process[li1i11lI(0x1d5,'ES2)')]['FRUIT_PLANT_LEVEL']||'2',lilll11I=process[li1i11lI(0x2b3,'HJJC')][li1i11lI(0x24f,'FpRF')]===li1i11lI(0x235,'Ym2A');let IIllIlil='';const i1I11I1=Object['keys'](lIliIili)[li1i11lI(0x2b0,'ERWe')](lll1liI1=>lIliIili[lll1liI1])[li1i11lI(0x22e,')]ZW')](lI11llIl=>lI11llIl);!i1I11I1[0x0]&&($[li1i11lI(0x256,'4aWB')]($[li1i11lI(0x273,'7@id')],li1i11lI(0x2d5,'C3nz')),process['exit'](0x1));function IIil1lII(){const l1i11I1i=(function(){return[...[version_,'GMjEPsrtjBfiHamMikIS.cNIoTuPmt.evkpW7GdJ==','W4DajxXY','WRHNWP4','W4/cHCkabmkg','44kI5O6Y56Ey44g66kYG5ys46i+z5y+kxbS4aN/cMG','fYCyW5BcIW','i1xcGXa','W6fdW6OLWPZdNmo9W7hcONxcRa','lM7cRrldKG','W4eTgKFcJmoNW40C','vgrMk1tcIgTomCo3s8oiW6eY','atddR8kbWRFdVcVdVZr4WRC8W43dOq','atCJxq3dLZKxe8oIFmorW5i+','WQRdNtGjiq','nHFdVW3cVxRcRX/cVa','bmolg3BdOa','AID3W4O+WQi','W7ldKWyOsa','xCkhBSoEWRNcJmogWOWxEmoUcSkVWQ0','5PYP5Qow57I75PYd5lQn77+b5AsI5yIC','WPlWP62977MK','dmklfCkNWRG','5BYI5yQO5BA96l+X5yI36Ag+5y+l5lID6zMY772x6l2v5lQk5Q+i5PA06zwP5yEt6AkI5y+v5zoiWP4','W5beiW','kdyGW4hcQSkpWOH2WRKFdW','cmkhbsTS','xCoXrCkzWPa','qSoxlxyZ','qXldRSkjW5neW5/dU8k9WQPxvCoHWRdcHSosW6ubtW','z8kNWOxdO8ovqG','WR4xWRfZ','5PwB6i6k5AA56lEzWP0','W4bai2PLogGOW4LiiW','AtTxW58OvqpcVZpcS8oo','gmkVcGddHCo6pwRcMa','pSkRW5xcKmkq','vg5Mo0/cHMDcfCows8owW7arW4pdOCoTW4VcLZiRWPWT','o8oXka','kcaGW4H/','W6K0WPJcL8kh','AGbzW4Ot','WQdXG6oVWOO','xwb/dq','W6eOvmokcW','W59oowHvc2i','ie3cRrtdOSkvW63dTSoImmkurSoG','5PU+5PEr5Roi5P6c5y6V5lYN6ycM5OMB776s6k6R5OQ45BYl5lII5lUlWO8lWOtMO6hMNPC','n8kSF0LvBJVdLSoIote','mSkgrf5q','55Uo5yMy5yA+5P+55RcK5RQlW7u','thRcQa','gCoCfmoiaW','d8kOj8ouW5u','vgFcQSkvvrhcSmoJEwm','WRVdIYKhgmkNp37dQmklDW','W7ZdQSoHWRdcNSkiCtG','W6pdNrpdNmoReN84','WOBdJ8o2W6O','WQtcIvb3gf7cVmkhfmo9W67dJSoEWQ0oW4hdHqOEt14','kJNdG8kkWPS','5Q295P2Q5OU05Q6K5zk/5y6A6ikt6AkAlEATLEE7TEwnRo+8MUExJUs4JUw7MUIKToA2NUAWJ+wMIoAfNE++OEIfNUACSos9JEwgU+s9S+EvH+w8OUMbJ+A1PUAXTowpJW','W6BcRSkeW69L','8kc9HxdML4pOJAJMIBVLIPdVVA3OJBdLVie','hmkKp8kCWRWosa7cQmoYWRxdPSockvuTr8oFWO3cHSkY','WRRWTBo8','WR1TWP0','qYFdVfJcRa','CedcN8k6xa','lmkIBa','WRldMbmBda','FqZdThhcQ1uav0VcO2i','W6L3cW','kZGhW5dcQSk0WOnI','5yUp5AAn5y6r5yAF5zY95PEY5O2w5B6H5BQGW6Ou6k+K55Qq5B2a5lMH5lMjWR5qWQRMN6FNNk7LHl/LNPhLIjFOGApMM5ZLKyJMRldLUiTo','kIX0W5OIW60','WRZdQCo9WQdcPmou','W6tXHOod','WRCzWP57W64','omkmCw5Y','W6ddMqxcHmob','jCoPW6e','bCkxoIO','W4z+xYpdRG','W5hcJSkHW5hcO1C','WPLyWR/cMmoJ','eYBdVSk/WPxdOGhdSbvOWOqTW4S','W6VcKraSEhldN1e/WP4eBCkioSoXW6FcRsSRW6ZcL2/dGmo4tN1nbJpcNYGCWO3dGbvEamoclb92k8o0W4jGeq','c1tdPSkvW45pW47dTG','W6tdL8o0WP19W7mv','5P2e6kAt6zsO','z2dcICkezW','duNcLX/dOq','mZGZ','WPq8zvFdSmoLWPSTWQy','kSoei8oop8oFEhG','WPb8hx/cL8oXW4m3','W7LIyf5L','fCkJt2fG','ouBcIXddHmkEW5ddUCoOgSkOrSoHrZ0','odD9W4ScW7hdPGTpdW','gqNdIJJcLG','l8k6pr3dMq','W6xcHbCOscNcGHO','WRWJW5fzAa','icP/','W7zShSofa0CVnYG','atRdR8koWRFdRJldVGLkWRK6W77dS3ZdQG','emoqgNpdP8ovW7ZdJ8kMW5FcJmkOW7RcS8oPW73dSZldRwdcQW','b8k0hW','umoJyH3dManeWQ7dL8kHfSoiW6S','dmoEmCknW6BdMW','WPRdObafiq','5B+46ykN5RwA5Rod5y65W70','bCkKFmozWQpcR8k0WQW','W6tdHmo3','y8o1trRdGW','aSk1haZdKW','W7ldNqJdHq','WPJdM8oOW6C','W5NcQmkp','bCkxkIPtWPDPDK4EW7ZdRW8LW6q','WOagWO5EW6a','rmo2CH/dMa','W6/dJWVdMmodexb5WOS1WPGKcqS','chTV','cmk0fuFdGCo0oMVcHCoiW6tcSgVcOvRdHmkxW7ddK0BcRG','WQqzWQH3W4xdLmoCW6lcLL3cMq','ASoeiCoth8ovi2dcKSoe','WPnzWRBdHtG','cmkTjmkqWQ05AHlcSSo6WRi','W6RdNCoJWOS','WR4PW6a','amoVphtdVq','W7hcHaO4zcu','WRNdIY4LlW','DUs4REs7OowgGUwDUSkgd8oZW44v5PYo6k+P6k255Rkv5AE/6lw+W7tIGj3VUB3IGiVVU5y','kh1Phs0','E8k8WR3dLSooxG','otFdTavtWQjdWQj1W4BcRSkCW7u','W4yqWOCoWOmFgN1ZmtKmzmkyW7K','jmoxW41YWOG'],...(function(){return[...['zM/cQ1i','itddQJZcVW','lSkSzKK','W6xdNCoG','W7tcSruoqG','mCoTo2NdH8oRW4ZdQ8kZW6xcV8ktW5dcSSozW4hdUGFdLKVcOmoWWR4','W67dPmoMWQxcSCkSBtLMWRJdTG','W45XiCoOhW','WOnTc3pcQSo6W6y3W6ZdPXCMmG','WOzah1np','vsq+D13cGCkx','mI4xW4xcQSk5WQrRWQOCkqxcRa','W4ZcISkaW6Hs','beNcQ082','WQ7dLwRcObVdSq','W7BdPmo1','WQquW7DlxW','WQpdLwVcQq','pIC9WORcTCoZWODHW6iqfa0','WQNdQmoYW4fX','drHgWPOxW5FcImkxp2GmW4m7lvTsWP5FWR88WQG','mwDTkYFdL8opWP0','WPZdGCoDW6znW7GL','i8oXkKJdVSoZW6JdR8kaW7BcJmkeW4C','772f6l2D5BIG','W7q7WPmEWO8','ouBcIXddLCkFW4hdQSoJjG','W4/dUbJdV8oP','6lAV5y2f5PwN5PAM','8kc/V3dLVQBLIPlNPQBMPilNM6xdP+kcIW','cbfBWP49W5ZcQCkx','5PIh5PwC5Rgv5PYT5y2n5l+N6ycq5OQ+77+K6k6T5OQM5BYk5lUt5lIGWRJcQetMOP/MNA8','W7tcHJxdUuO','kCoIgmkZW6a','F8kwACkvqCkdkMFcISkiiSogW7u','AszgW5SbFGJcQcBcRq','W6/cIGm','WOeBqgVdPa','W5PejhX2dwG','W5NWL4kkoa','kSkHrSoKWO4','DWldOq','WR5EpKBcPW','ws7dIf/cSa','5Bs16l2F5yIp6Aky5y6T5lIX6zQR77+K6k6m6l2E5lQD5QY95Pwh6zsR5yEf6AcM5y2H','ACovEmkdWQ0','WQhcGe1ZlKJcNSkAk8oRW7i','W6ZdK8oHW5CT','A2hcOLi','WRbHWORdTbHeWP5s','kLJcSItdHXnruxlcQeyXW5C','hJ/dMqhcHa','CSkUAHKq','W4udWPyoWQuJgN1Rasq','W4rPm1tdHmofWQuAWOS','osVdSWRcMG','WRFdPSoBd8ob','W67dKSoKWO3dLCoBhG','jSkSEufYtZVdL8ohjYO','adtdQCkGWPhdTstdVG','aNv6ncddMmoeWPC','vhDUAaW','W7hdJGtdLmoNeNWLWO8J','zSkPWPi','WQxdRdCJaW','jZO8W5lcNq','WPZdNmof','iCoYW7jAWP1uCg0lnSoXWO41WR1Uv31agspdJCkbW7JdRqJcMCkKWRFcIZddR14Ba8om','FCkqz8kqq8o8uwhcVmk+aq','vwbGbxlcIwzi','W4SpWQmfWRm','qVc7KQa','W7ZdU8oeWQBcMq','i2xdHmkzW7m','W6ZcK2LyESoLA2JdQmkqBLW6','W65gEKjb','WPm5C3/dL8oUWO8L','5lUO5yIz5OM66kk75B+A5BUL772o6kYx5QkY5PYI5OU/6kkt5PsB5BYf','W5BdKCk7WOFdSG','5B6o5yUN5Ro65P2J5y6I56sz5Qwx55Qi5Rkm5P2L77Yq5y+X6iki5P2J5P2s5BA96AgO5y6/5lMn5Q2V57MT5y2H6l295yUq5lUp5lU06zMO772Y','WQiNW7vWyG','wa7dRSomWOq','cZddQmk+WRNdVcC','fc1vW6mw','iXNdGqRcHq','cCkpkmktWPS','WPJdH2pcVJddTCkcaW','lM7dRG','W73WVAc1','WRhdHtW','WPxdNeVcGs8','cCoqlCkgW5RdJ8kAW44asCox','bSoZaCo0pW','wmo+j8keW5RdVmoTWRL7W53cMSknza','W6RdNGVdLmobca','CtTe','WRVdIYKhbmk6pgm','WR/dLCo0WQBdKG','AKxcTeqI','BCkPWPddI8oRvtlcPmoUkuFcKmovWQNdR8kxWPO','44g+5O6G56st44oI6k6d5yE66i245yYUe2mqW649oG','pZ7cS2i2W6SAWOi','bttdT8kHWR3dVG','W4e5mxdcQG','wdToW5Gj','W5qdWPagWP4Echm','DpcXKRO','u2xcO8kzza','wSo/lG','oXBdTs/cP3C','mmk/yLzcCdVdK8oYoq','WPtdJg3cQry','bCkxkIPbWPfZFLeZW7FdRG','oKZdU8ktW68','W5ZcGmkQ','W4/dPmoxWP3cJW','pSkXotJdQa','WQRcMhX/cv/cSSkghCo2W4/dRCoc','p2FcQrNdOY/cKCkJFmkCEG','5Rgl5RI45lMD6lwg','WO3dVWSGaq','W5LBreifW5D+jqBdQ8khxNVcNgS','h8kPhqZdV8oYig3cJCoIW6tcSJFcP1m','aCohW6DlWPW','oNVcJKSl','WOtdI8o1W6HbW7u','W6JdKbddQmok','oJZdTqrwWQDcWR9uW7FcL8k9W5G','c1ZdUSkrW6HuW47dOmkcWRyx','e8kJnW','WRutW49cra','gv/cMeOPW5fk','WOntW5aTWO01iKXl','uxjOb0i','oSoTka','AJvkW4O','WR4PW6bgDCoW','hCkkka','hHfBWOar','qSo/CZZdOrTGWQRdPmkYjCoFW7X1ACkcWRTPWQzj','k1xcNbJdMCkFW4ldTW','WRHQWQNcNCoG'],...(function(){return['o8onoKNdHq','W43KU6/KUztLHjZLNivcWPm6WRKj5P6X6k+P6k665RcK5AAD6lsdcEkcHU+6T+kdSo+7Pq','gSk0pCkdWRC','xCoSha/dIa','cmkIE8ox','mKZcRsddUq','W74NW5m','WQ3dJrK/oa','WQhdRSohWRxdGq','iCoJo1/dGCoyW47dVCkhW77cQG','eCkLmSoXWQpdOSkJWQeMW6ZcLmklvL8YpLammG','mrldQsxcMNhcUXC','mGVdSJW','772f562957Mj','sJ1hW4Ka','WRtdHcGpp8kG','jsTRW4S1W6S','otyMW4NcJCkUWOH3WPWbfa','W5qdWPeFWPqrhhG','W7hdHmoOWPHS','5BYI5yQO5RoU5P2g56Ek5QE15PAT55Qt5Rcw5P+h776E5Bkx6k6O6iAO5yI156At5QsP5AsY6lEk77+S6k2g5OQz5B6K5lMj5lQHwe3cQEAkVowkQUwZP+ISGq','W5Hax198W4b+mtRdUmkC','vJzeWPKEW7/cJq','5BAn5l6Z55w45BYE6yoa5RsS5Rc75yYa77+l5yU/5l6F','5BsI5lYj55E05B+96yk25REw5Rkg5y+M77+O5yMt5l65','jxZdQCkDW48','WOC5B3BdSCoT','x251luNcLq','FgfcWOCN','BWldLwJcJe8lqG','5P+f5Qcx5yYk6iUj5lIW772q5AAI5yMG','WOnxW5ujW6e','WRT1WQRcVSoQ','W5hcQmkgW7O','bCocnCkcW67dKCkwWPiZvmovuCkFW7m','WRpcLLDDla','bt8xW5xcRW','kSoUW6LdWO0lgc0fiSoRW6y3W6fcuIfojcVcKq','W7FdKSogWQFcLW','cvT9kH8','5B6M5yIv5RkG5PYB56wt5QAn5Pwz55Uo5RoR5P2M77Yi5BAB6isZ5yQD56w95QAb56YA57QZ','k0hcGbBdPmkyW4VdTSono++/Na','jLb8edO','oXZdVa','W5hdRZhdLmoi','cIqXW5BcLSk8WObG','lxtcVHhdSZlcKCkJs8kx','WRpcK1P7ke/cMSkChG','WRnWowtcPG','5lIV5lU55P2P5yU95zMJ6l6C5zIU5Pso5OYW5lUu56Ix','cCoemCkiW7VdLCkqW5izx+++OG','WQhcGe1ZmLxcNCkh','cVcqGk/VV7tKV6hNIy7LTzNMIOlNHy3VV40','A2tdRHFdLW','W6n5hSobiuuWnd0UB8kNpN5FWO7dQG','hmk6daZdMCopmx/cLmolW74','W6JVVRJLT7tMTOVMSyO','WO/dMmoO','WPK3zLFdRmoY','lgexWOz9jvNcRIJcRCo8rSkq','WRH1b17cMG','WQpdNwxcPZddTCkcaW','oSkaeSkaWR4','ru3cU8kIFW','kvxcSsRdHHmorLdcI0Gt','dSkQwCoMWQS','W6hcGe9UeL/dHSkFe8kS','BmkNWPBdPCoirttcRSoSoehcJmouWQFdSSkEWRVcGmkW','W40EBhJdTmonWQS','W4aaWRO7WRK','iCofof3dLq','5yMH5AE65y+Q5yAc5z265PEm5O2b5B6W5BQMCmol6k+855U15B6c5lMI5lMhWPvraUAFKUEFKUwfUUwDMEwkLoIdS+AzSUwqR+AUIUw7OqS','l3WOWP8L','5BEP5lYs55AU5B+36yoH5RwH5Rgr5y2e77Yx5yQ45l2u','5BAz5RAC5RgmwmkBW7RVVzJLIAxKVRG','h8kXiIVdVq','W6VcIGO7ssNcNW','6lwM5yY65PER5PwK','W49/wsFdQW','CKD7jN8','WQC1W6jXsSo7E8ocW6RcOMz2WPG','5P+65Qge5B6B6iM85lME776x5Asu5yIG','WOrXWP/cHmo8zmoxAq','WQpdQmobnSoG','aH9o','WOuCWP1hW6O','W4lcGmkFW7HT','z8kNWOu','g8ouiSomja','W6VdPSo2WO1W','vCoXDq7dUaK','WO/dKKtcVJC','uCoJnSkaWReiEWJcQmo4W6NdI8oFphy4FCkhWQZcLW','5B6Q5yU/5Rcs5P2S5y2z56Ee5QEK55U45RcH5P69772V5yYB6icW5P+B5PYZ5BEJ6Agf5y6g5lIL5QYv57M75yY16l675yMb5lUu5lIo6zQn77Yq','aSkxcrZdNW','vSoExXRdGa','E+s7UEs5K+whK+wCVCocpvzYeUADT+ITQoIUIUAWGowMRoI1UWtIGl/VU6dIG5ZVUR4','EJTxW60WCqRcVWdcO8owwmkXWO1Yv1rQeH83WPpcTW','W5josG','W7nZgvHZ','wmkaASoFWRG','WPP4axxcQSo3','5lIy5yIw5OUO6kkO5B6r5BMC77+p6kYN5Qcm5P+K5OUM6kkz5PEx5B+V','cmkCnJyQWRvqoKy/WRldGJv4W7aZhNdcNa','WPKomxP5cxKYW5nkEmo5cmonsmkuWQVcNI0UusaM','DglcQCkywq','W6j3gmoVaLu2pJ8/ACk7p3bcWOFdIWmA','qSo/CZZdOrTGWQRdPmkYjCoFW7X1ACkcWRTPWQzju8o2WQi','kSoPW6HEWOSakW','5Rg55RUa5lUJ6lEg','n8kBx3HT','W7hdJSorWP3cLa','h8kYfqW','k/cUGR/cPa','p2FcQrNdVZlcKSk+','i8kxwSoCWRW','WQhcKJRdRwOlW5yjWRKYoW','WPafW4Lasq','WQ7cRMW','WR7dIZCgkmkX','otyMW4NcKCkZWOTQ','WRDNWP3dSG','WRxdNI8ApSoUDspdMCkjCtayytaRW4akbIpdOaFcR8kjlmkqtfu5W69gW6ZdKCotmSoBWOzIWQdcT0/cQSkkW6RdPSoJ','oJKI','WRa8W4RcPre','c23cLZxdRa','jSoJpuNdLG','mmoJpvFdUSoKW43dOq','WQVcJLG','mmoSW7vpWOm','4OobWORLTQNMIBRNH5i','W6xcHbyXxJVcLqWoWPWc','WP/cMtldIuS','kSojpSomba','W59vi39Kucj0W59fjCo4fmknqCoWWOxcTgW5vYS','amoRhCoghq','WPxdNCou','W7xdMqGOqW7cKmklmmodW5JdHG','WRjPWOVdUJ5FWPzj'];}())];}())];}());IIil1lII=function(){return l1i11I1i;};return IIil1lII();};!(async()=>{const IIiiIiiI=li1i11lI,lIlli1={'GuFtw':IIiiIiiI(0x220,'z*0c'),'XjzIt':function(I11lIIiI,liil1I1){return I11lIIiI<liil1I1;},'aUClK':function(iiiI1Ill,i1I111ii){return iiiI1Ill===i1I111ii;},'wGwgf':IIiiIiiI(0x26a,']0%C'),'EomfM':'6|3|7|4|2|0|1|5','vCqtl':function(illIIli,l1i1Iil){return illIIli(l1i1Iil);},'xAzBU':IIiiIiiI(0x26d,'ERWe'),'EmVvx':function(iii1liIl,I1li11lI){return iii1liIl!==I1li11lI;},'WqsoR':IIiiIiiI(0x301,'DE7L')};iI11lIIl[IIiiIiiI(0x252,'SwE#')]({'title':$[IIiiIiiI(0x20e,'vc[[')]}),console[IIiiIiiI(0x22b,'(&Fl')](lIlli1[IIiiIiiI(0x23e,'aWIS')]);for(let ll1l1I1=0x0;lIlli1[IIiiIiiI(0x1de,'pS(L')](ll1l1I1,i1I11I1[IIiiIiiI(0x2de,'06RL')]);ll1l1I1++){if(lIlli1['aUClK'](lIlli1[IIiiIiiI(0x1a0,'FpRF')],lIlli1[IIiiIiiI(0x1b0,'%DYS')])){if(i1I11I1[ll1l1I1]){const iI1IiIIl=lIlli1[IIiiIiiI(0x2d9,'z1U*')][IIiiIiiI(0x2dc,'aWIS')]('|');let Il1iIi1l=0x0;while(!![]){switch(iI1IiIIl[Il1iIi1l++]){case'0':$['UA']=llli1['genUA']($[IIiiIiiI(0x286,']L$r')]);continue;case'1':console['log']('\x0a******开始【京东账号'+$['index']+'】'+($[IIiiIiiI(0x255,'GX$i')]||$[IIiiIiiI(0x1ac,'zP0y')])+'******\x0a');continue;case'2':$[IIiiIiiI(0x2c3,'ye!g')]=iI11lIIl['create']($[IIiiIiiI(0x258,'UZ#V')],$[IIiiIiiI(0x2c7,'azor')]);continue;case'3':$[IIiiIiiI(0x32c,'ES2)')]=lIlli1[IIiiIiiI(0x272,'06RL')](decodeURIComponent,llli1[IIiiIiiI(0x1ee,'vc[[')](IIllIlil,lIlli1[IIiiIiiI(0x232,'7@id')]));continue;case'4':$[IIiiIiiI(0x197,'azor')]='';continue;case'5':await IlIlIIIl();continue;case'6':IIllIlil=i1I11I1[ll1l1I1];continue;case'7':$['index']=ll1l1I1+0x1;continue;}break;}}}else lIIill1I[IIiiIiiI(0x280,'NYSm')](IIiiIiiI(0x317,'cv0A')+iiIIIiI1+IIiiIiiI(0x2db,'rmhi'));}if(lilll11I&&iI11lIIl['getMessage']()){if(lIlli1[IIiiIiiI(0x32f,'(M67')](lIlli1[IIiiIiiI(0x2e2,'9rYE')],lIlli1[IIiiIiiI(0x1b2,'HsC3')]))return Ii1l1iI1[IIiiIiiI(0x2f2,'DE7L')](IIiiIiiI(0x330,'#a(Q')),![];else iI11lIIl[IIiiIiiI(0x279,'(M67')](iI11lIIl[IIiiIiiI(0x1c6,'60cg')]),await iI11lIIl[IIiiIiiI(0x25a,'j#Cn')]();}})()['catch'](IIlllii=>$['logErr'](IIlllii))['finally'](()=>$[li1i11lI(0x320,'%DYS')]());async function IlIlIIIl(){const ill1iII1=li1i11lI,lII1li11={'sAbDb':ill1iII1(0x300,'pS(L'),'rKOrw':function(Iil1ll1i,Iii1ilI){return Iil1ll1i==Iii1ilI;},'egFTF':ill1iII1(0x2cf,'(XaQ'),'vhgBY':function(IllIlili,IIIiiilI){return IllIlili*IIIiiilI;},'Silpn':function(iIl1I1i,l11IlI1i){return iIl1I1i/l11IlI1i;},'sGERg':function(I1i11l1,lIiiIIll){return I1i11l1/lIiiIIll;},'wwccl':function(IIiilliI,I1111ili){return IIiilliI(I1111ili);},'mYTcJ':function(lii1li,IiiiII){return lii1li!==IiiiII;},'LlXGC':ill1iII1(0x231,'cv0A'),'jwPHX':function(l1lIIlIl,lil1IiII){return l1lIIlIl===lil1IiII;},'mlqYh':'mVUFF','uLTcy':function(I1iIliI1,IIilII){return I1iIliI1*IIilII;},'zCGIT':function(Illill,iI1I1lll){return Illill/ iI1I1lll;},'TOLkW':function(iIi1l1i,llil1lIi){return iIi1l1i/llil1lIi;},'PUPJL':'GEhme','neVZo':function(i11lI1ll){return i11lI1ll();},'NzQpE':ill1iII1(0x2e0,'azor'),'BYHQR':function(li111lI1){return li111lI1();},'LNLek':function(Ilil1i,i11lIIil){return Ilil1i===i11lIIil;},'sNXuU':function(i1lllill,iiii11Il){return i1lllill+iiii11Il;},'FJrUK':ill1iII1(0x1f8,'z*0c'),'BfBrI':function(I1iIl1lI,lIlI1IIi){return I1iIl1lI<lIlI1IIi;},'pgBUu':function(l1IIllII,liilllIl){return l1IIllII>=liilllIl;},'lcNfM':function(lIili11i,iI111l){return lIili11i>iI111l;},'gOYeF':ill1iII1(0x29e,'rmhi'),'NThjw':function(IiiIil1,iI1lIil){return IiiIil1(iI1lIil);},'DRNWd':function(iI1I1iIi,lll1iIl){return iI1I1iIi(lll1iIl);},'vRpHX':function(lii1i1ii,I1liIiii){return lii1i1ii/I1liIiii;},'Rlutu':function(li1Il1I,I1ilil1i){return li1Il1I===I1ilil1i;},'nXhBI':'GyJNz','kADnf':ill1iII1(0x196,'(M67'),'FSGXo':function(IIl1IiI,I111iIII){return IIl1IiI===I111iIII;},'tjZBV':function(liI1i111,l1lIl1I){return liI1i111!==l1lIl1I;},'XJzDR':ill1iII1(0x2ec,'60cg'),'FYquX':'❌\x20浇水异常,可能触发风控,请稍后再试~','ILBIW':ill1iII1(0x2c4,')]ZW'),'JVPWI':function(IllIiIil){return IllIiIil();},'lmtZK':function(II1IIlIl){return II1IIlIl();},'orHqA':ill1iII1(0x199,'aWIS'),'mOusv':'bDfdM','ZhCqw':'ziVlm','UyEku':function(i1II1ill,lii1iili){return i1II1ill===lii1iili;},'mFwgD':function(iiiillil,iIIIl1ii){return iiiillil===iIIIl1ii;},'vCxfD':function(llIilI1i,lillilli){return llIilI1i(lillilli);},'BJLDt':function(iillI11l,ll1llii){return iillI11l===ll1llii;},'AlYVc':function(l1i1lIli,I1iIii11){return l1i1lIli!==I1iIii11;},'tCAyz':ill1iII1(0x322,'pOfj'),'HlulS':'BQpfZ','bszoy':function(lIIlliii,iII11IiI){return lIIlliii(iII11IiI);},'xyAXt':ill1iII1(0x1fe,'rmhi'),'PpRHI':function(iiil1l,Il1II1li){return iiil1l(Il1II1li);},'ymAnd':function(l1iIiIll,lIIilIi1){return l1iIiIll>=lIIilIi1;}};let IlI1lIIl=![];try{const i1Ill1lI=await llli1[ill1iII1(0x1ef,'ye!g')](IIllIlil);if(!i1Ill1lI&&typeof i1Ill1lI!==undefined){if(lII1li11['mYTcJ'](lII1li11['LlXGC'],lII1li11[ill1iII1(0x21f,'ye!g')]))l1I1iIi1[ill1iII1(0x2f2,'DE7L')](ill1iII1(0x313,'Ym2A'));else{console[ill1iII1(0x2d0,'z1U*')](ill1iII1(0x1a7,'7@id'));return;}}await illIIlli();if($[ill1iII1(0x332,'pOfj')]?.[ill1iII1(0x1dd,'#a(Q')]){if(lII1li11['jwPHX'](lII1li11['mlqYh'],lII1li11[ill1iII1(0x2ef,'(XaQ')])){if($[ill1iII1(0x2bd,'Zvej')]?.['treeState']===0x2||lII1li11[ill1iII1(0x31f,'zP0y')]($[ill1iII1(0x1e4,'IlrT')]?.[ill1iII1(0x32e,'pOfj')],0x3)){await i1Illli();return;}else{if(lII1li11['jwPHX']($['farmInfo']?.['treeState'],0x1))console[ill1iII1(0x24c,')]ZW')]('当前种植:'+$[ill1iII1(0x2ac,'ye!g')]?.[ill1iII1(0x2ab,'7@id')]?.[ill1iII1(0x1ea,'4muz')]+'(等级'+$[ill1iII1(0x21c,'(XaQ')]?.[ill1iII1(0x2f1,'9rYE')]?.['prizeLevel']+',进度'+lII1li11[ill1iII1(0x2b9,'4aWB')](lII1li11['zCGIT']($[ill1iII1(0x2d1,']0%C')]?.[ill1iII1(0x22a,'rZu^')]?.[ill1iII1(0x294,'z1U*')],$[ill1iII1(0x2ad,']L$r')]?.['farmUserPro']?.[ill1iII1(0x26f,'z*0c')]),0x64)['toFixed'](0x2)+ill1iII1(0x192,'azor')+$[ill1iII1(0x1d2,'ES2)')]?.[ill1iII1(0x2ab,'7@id')]?.['treeEnergy']/0xa+'次还需'+lII1li11[ill1iII1(0x23f,'Ybkv')]($['farmInfo']?.[ill1iII1(0x21a,']0%C')]?.[ill1iII1(0x25c,'Ym2A')]-$[ill1iII1(0x2fd,'4muz')]?.[ill1iII1(0x2e7,'Ybkv')]?.[ill1iII1(0x247,')]ZW')],0xa)+'次)');else $[ill1iII1(0x30a,'06RL')]?.['treeState']===0x0&&(lII1li11[ill1iII1(0x2e9,']0%C')]===lII1li11[ill1iII1(0x227,'aWIS')]?await lII1li11['neVZo'](Il11lIlI):I1lI1i1I[ill1iII1(0x240,'ES2)')]('果树结果了,奖励'+Illiilii['gotStageAwardForFarmRes'][ill1iII1(0x241,'Zvej')]+ill1iII1(0x230,'#a(Q')));}}else return!![];}else{if('Tayle'!==lII1li11[ill1iII1(0x248,'06RL')]){console['log'](ill1iII1(0x1a1,'LD*3')+JSON['stringify']($[ill1iII1(0x243,'(M67')]));return;}else liI1lill=IIiIii11['waterResult'][ill1iII1(0x262,'cv0A')];}let IlIll11=$[ill1iII1(0x28f,'C3nz')]?.[ill1iII1(0x29f,'pOfj')]?.['totalEnergy'];console[ill1iII1(0x250,'UZ#V')](ill1iII1(0x215,'aWIS')+IlIll11+ill1iII1(0x2c9,'NYSm')),await lII1li11[ill1iII1(0x307,'KTe(')](l1iIl1Il);const {fastCard:i1lIlill,doubleCard:l1I1iI1,beanCard:llIliiIi,signCard:lII1llI1}=$[ill1iII1(0x27c,'ES2)')];console[ill1iII1(0x1da,'pOfj')](ill1iII1(0x254,'rmhi')+(lII1li11[ill1iII1(0x1e1,'HsC3')](i1lIlill,-0x1)?ill1iII1(0x23d,'C3nz'):lII1li11[ill1iII1(0x1b9,'bX72')](i1lIlill,lII1li11[ill1iII1(0x2ed,'LD*3')]))+'\x0a');if(lII1li11[ill1iII1(0x1b5,'azor')](IlIll11,0xa)){console[ill1iII1(0x267,'gLos')](ill1iII1(0x2e8,'DE7L'));return;}if(lII1li11['pgBUu'](IlIll11,0x64)&&lII1li11['lcNfM']($[ill1iII1(0x211,'4muz')][ill1iII1(0x24a,'#a(Q')],0x0)){if(lII1li11['gOYeF']==='QHwsa')II11iIi1=iii1I1Il[ill1iII1(0x1d8,'FpRF')](I1iIiIl1);else{let iIi1lIi1=lII1li11['lcNfM'](lII1li11[ill1iII1(0x2a9,'HJJC')](parseInt,IlIll11/0x64),$['myCardInfoRes'][ill1iII1(0x311,'z*0c')])?$[ill1iII1(0x2e6,'pOfj')]['fastCard']:lII1li11[ill1iII1(0x1bd,'cYxp')](parseInt,lII1li11[ill1iII1(0x281,'gLos')](IlIll11,0x64));for(let iiIIiI1i=0x0;lII1li11['BfBrI'](iiIIiI1i,iIi1lIi1);iiIIiI1i++){if(lII1li11['Rlutu'](lII1li11[ill1iII1(0x2a8,'06RL')],lII1li11['kADnf']))lIilllIl['log']('果树发芽了,奖励'+iilIi1I['gotStageAwardForFarmRes'][ill1iII1(0x1f2,'06RL')]+ill1iII1(0x298,'su95'));else{await lI1Ii1I1(ill1iII1(0x21b,'NYSm'));if(lII1li11['FSGXo']($[ill1iII1(0x251,'bX72')][ill1iII1(0x2a1,'iN7%')],'0')){IlIll11-=0x64;if($[ill1iII1(0x239,'ye!g')][ill1iII1(0x2e1,'Ym2A')]){IlI1lIIl=!![],console['log'](ill1iII1(0x316,'DE7L')+IlIll11+ill1iII1(0x333,'9rYE'));break;}else console[ill1iII1(0x295,'#a(Q')](ill1iII1(0x1a3,'rZu^')+IlIll11+ill1iII1(0x2b8,'bX72'));await $[ill1iII1(0x2f8,'z1U*')](0x1f4);}else{if(lII1li11[ill1iII1(0x1a5,'UZ#V')](lII1li11[ill1iII1(0x226,'rZu^')],ill1iII1(0x318,'9rYE')))i1Ililli[ill1iII1(0x1b1,'ERWe')](lII1li11['sAbDb']),IIIilI11[ill1iII1(0x1e6,'IlrT')](ili1I1l(Ilil1l1l)),IIli111[ill1iII1(0x24c,')]ZW')](ill1iII1(0x328,'4muz')+lIl1II1),iIIl1iII['logErr'](i1iI11II);else{console[ill1iII1(0x2ca,']0%C')](''+JSON['stringify']($[ill1iII1(0x288,'FpRF')])),console['log'](lII1li11['FYquX']);break;}}}}if(IlI1lIIl){if(lII1li11[ill1iII1(0x292,'SwE#')](lII1li11[ill1iII1(0x2a4,'06RL')],ill1iII1(0x2cb,'azor'))){await lII1li11[ill1iII1(0x2cd,'HsC3')](illIIlli),await lII1li11['lmtZK'](i1Illli);return;}else{if(lII1li11[ill1iII1(0x214,'7@id')](typeof IlilIl1['parse'](ilI1lilI),lII1li11[ill1iII1(0x19b,'GX$i')]))return!![];}}}}if(lII1li11[ill1iII1(0x306,']0%C')](IlIll11,0xa)){if(lII1li11[ill1iII1(0x2c5,'06RL')](ill1iII1(0x1ec,'Ybkv'),lII1li11[ill1iII1(0x229,']0%C')])){do{if(lII1li11[ill1iII1(0x2e4,'4aWB')](lII1li11[ill1iII1(0x2ff,'FpRF')],lII1li11[ill1iII1(0x326,']L$r')])){await llIIi();$['waterResult']['totalEnergy']&&(IlIll11=$[ill1iII1(0x308,'FpRF')][ill1iII1(0x205,'z1U*')]);if($['waterResult']['code']==='0'){if($['waterResult'][ill1iII1(0x23b,'9rYE')]){if(lII1li11[ill1iII1(0x325,'NYSm')](lII1li11[ill1iII1(0x323,'ES2)')],ill1iII1(0x2ba,'9rYE'))){IlI1lIIl=!![],console[ill1iII1(0x234,'60cg')]('已浇水10g,剩余'+$['waterResult']['totalEnergy']+'g💧(作物已成熟)');break;}else Ii1l11l1[ill1iII1(0x193,'KTe(')]('当前没有种植新的水果,指定的等级'+i1i1liil+ill1iII1(0x290,'(XaQ'));}else{if(lII1li11['UyEku']($[ill1iII1(0x204,'cYxp')][ill1iII1(0x2a6,'z*0c')],0x0)&&lII1li11['mFwgD']($['waterResult'][ill1iII1(0x2af,'(XaQ')],0xa))await lII1li11[ill1iII1(0x2c6,'DE7L')](lI1IlII,'1'),lII1li11['FSGXo']($['gotStageAwardForFarmRes'][ill1iII1(0x266,'faqi')],'0')&&console[ill1iII1(0x267,'gLos')](ill1iII1(0x31d,'Ybkv')+$[ill1iII1(0x1bb,'z1U*')]['addEnergy']+ill1iII1(0x20d,'pS(L'));else{if(lII1li11['BJLDt']($['waterResult']['waterStatus'],0x1))lII1li11[ill1iII1(0x299,'GX$i')](lII1li11[ill1iII1(0x296,'Zvej')],lII1li11['HlulS'])?(await lII1li11[ill1iII1(0x2f6,'vc[[')](lI1IlII,'2'),$[ill1iII1(0x1c5,'bX72')][ill1iII1(0x303,'GX$i')]==='0'&&(lII1li11[ill1iII1(0x1c9,'4aWB')]===lII1li11['xyAXt']?console[ill1iII1(0x2f7,'FpRF')](ill1iII1(0x1ab,'ye!g')+$[ill1iII1(0x276,'FpRF')][ill1iII1(0x1f2,'06RL')]+ill1iII1(0x1cb,')]ZW')):Ii11li1I['log']('当前种植:'+II1I1I1l['farmInfo']?.['farmUserPro']?.[ill1iII1(0x202,'cv0A')]+ill1iII1(0x30c,'4muz')+Ill11i1I[ill1iII1(0x2fd,'4muz')]?.['farmUserPro']?.[ill1iII1(0x2df,'7@id')]+ill1iII1(0x289,'60cg')+lII1li11['vhgBY'](lII1li11['Silpn'](lII1lIl[ill1iII1(0x242,'HsC3')]?.[ill1iII1(0x1ce,'pS(L')]?.[ill1iII1(0x32d,'Ybkv')],IIIllIi1[ill1iII1(0x1cc,'Ybkv')]?.['farmUserPro']?.[ill1iII1(0x246,'4muz')]),0x64)[ill1iII1(0x287,'j#Cn')](0x2)+'%,已浇水'+lII1li11[ill1iII1(0x1f9,'DE7L')](iIl11Iii['farmInfo']?.[ill1iII1(0x310,'ES2)')]?.[ill1iII1(0x219,'aWIS')],0xa)+'次还需'+lII1li11[ill1iII1(0x221,'%DYS')](lII1Il1I[ill1iII1(0x243,'(M67')]?.['farmUserPro']?.[ill1iII1(0x2eb,'UZ#V')]-iI11IliI[ill1iII1(0x2b6,'vc[[')]?.[ill1iII1(0x29f,'pOfj')]?.[ill1iII1(0x28b,'4muz')],0xa)+'次)'))):lII1li11[ill1iII1(0x1f1,']0%C')](l1l1lll,lii11il);else lII1li11[ill1iII1(0x217,'HsC3')]($['waterResult']['waterStatus'],0x2)&&(await lII1li11[ill1iII1(0x25d,'cv0A')](lI1IlII,'3'),$['gotStageAwardForFarmRes']['code']==='0'&&console['log'](ill1iII1(0x1f7,'%DYS')+$['gotStageAwardForFarmRes']['addEnergy']+ill1iII1(0x224,']0%C')));}console[ill1iII1(0x260,']L$r')](ill1iII1(0x1a4,'UZ#V')+$[ill1iII1(0x1fc,'ES2)')][ill1iII1(0x277,'NYSm')]+'g💧');}await $[ill1iII1(0x259,'(XaQ')](0x1f4);}else{console[ill1iII1(0x1ae,'C3nz')](''+JSON['stringify']($[ill1iII1(0x336,'UZ#V')])),console[ill1iII1(0x216,'aWIS')](lII1li11[ill1iII1(0x28a,'z*0c')]);break;}}else iIlI1IIi[ill1iII1(0x209,'FpRF')](llilIII[ill1iII1(0x202,'cv0A')],ill1iII1(0x1e8,'z*0c')),Il1lil1I[ill1iII1(0x30b,'06RL')](0x1);}while(lII1li11[ill1iII1(0x2b7,'z*0c')](IlIll11,0xa));if(IlI1lIIl){await lII1li11['lmtZK'](illIIlli),await lII1li11[ill1iII1(0x24b,'gLos')](i1Illli);return;}}else{i1I1llll[ill1iII1(0x32a,'06RL')](ill1iII1(0x22d,'gLos')+lli1l11I['stringify'](IilllI1l['farmInfo']));return;}}}catch(IliiI1ll){'ILDkA'==='VMHsa'?(l1111111[ill1iII1(0x274,'faqi')](ill1iII1(0x1c0,'KTe(')),l1IIl1i1[ill1iII1(0x2f9,'gLos')](l1I1IiII)):(console[ill1iII1(0x1b1,'ERWe')](ill1iII1(0x2be,'rmhi')),$['logErr'](IliiI1ll));}}async function Il11lIlI(){const iIi1IlI1=li1i11lI,lliIl1Il={'kJvTO':iIi1IlI1(0x26b,'LD*3'),'AFiND':function(llliil11,lliiiiI1){return llliil11(lliiiiI1);},'UjAQC':function(iliIiI1I,lliil1li){return iliIiI1I===lliil1li;},'mQKXf':function(lIllllII,IIIlII1I){return lIllllII*IIIlII1I;},'wVTTJ':function(lllIIl1,lI1l1lI){return lllIIl1(lI1l1lI);},'xFlIN':function(Il1iiIli,lI1iiI1l){return Il1iiIli*lI1iiI1l;}},iiill111=$[iIi1IlI1(0x2da,'z*0c')]?.[iIi1IlI1(0x335,'(&Fl')];if(iiill111){if(lliIl1Il[iIi1IlI1(0x2e5,'UZ#V')](iIi1IlI1(0x29c,'rZu^'),iIi1IlI1(0x1cf,'gLos'))){const iililiIi=$['farmInfo']?.[iIi1IlI1(0x2d4,'ERWe')][llli1ill];if(iililiIi&&iililiIi[iIi1IlI1(0x1bf,'(M67')]){const IllIiI=iililiIi[Math['floor'](lliIl1Il[iIi1IlI1(0x270,'60cg')](Math[iIi1IlI1(0x319,'Zvej')](),iililiIi[iIi1IlI1(0x2ee,'j#Cn')]))];await lliIl1Il[iIi1IlI1(0x1c8,'7@id')](iIii1il,IllIiI['type']),lliIl1Il[iIi1IlI1(0x1af,'cv0A')](lliIl1Il[iIi1IlI1(0x2b1,']0%C')]($[iIi1IlI1(0x223,'DE7L')][iIi1IlI1(0x1d3,'IlrT')],0x1),0x0)?console[iIi1IlI1(0x2f2,'DE7L')](iIi1IlI1(0x327,'Zvej')+llli1ill+'的'+$[iIi1IlI1(0x285,'C3nz')][iIi1IlI1(0x2cc,'SwE#')][iIi1IlI1(0x202,'cv0A')]+'\x0a'):console[iIi1IlI1(0x32a,'06RL')]('当前没有种植新的水果,尝试自动种植失败,请打开京东APP手动尝试');}else console['log']('当前没有种植新的水果,指定的等级'+llli1ill+iIi1IlI1(0x212,'LD*3'));}else iIIIliII?(Ill1li1l[iIi1IlI1(0x25b,'%DYS')](lliIl1Il[iIi1IlI1(0x304,'Ybkv')]),iilIIil[iIi1IlI1(0x22b,'(&Fl')](lliIl1Il[iIi1IlI1(0x284,'j#Cn')](IlilIIIl,iIiIIII)),IlIl1lii[iIi1IlI1(0x29a,'rZu^')]('functionId:'+illII1il),l1lill1I[iIi1IlI1(0x194,'Zvej')](IIIIil1I)):lliIl1Il[iIi1IlI1(0x1a9,'vc[[')](ll1I1li1,iIlIllI1)&&(i11IIllI=lIIl1I1i[iIi1IlI1(0x1e5,'cYxp')](llIIIliI));}else console[iIi1IlI1(0x2f2,'DE7L')](iIi1IlI1(0x2c0,']0%C'));}async function i1Illli(){const i1Ii1iii=li1i11lI,iiiI1={'KiMDr':function(i111Iiii,iilIllII){return i111Iiii(iilIllII);},'HptNX':function(lIIiiiI){return lIIiiiI();},'yMhwY':function(II11iIii){return II11iIii();},'xxWQv':function(iilIII1i){return iilIII1i();},'WRBBU':function(llliiIll,I1IiIlI){return llliiIll!==I1IiIlI;},'afupM':'gomBe','gxwgW':i1Ii1iii(0x2b2,'ES2)')},ii11l11I=$[i1Ii1iii(0x1d9,'FpRF')]?.[i1Ii1iii(0x314,'su95')]?.['name'];console[i1Ii1iii(0x295,'#a(Q')](i1Ii1iii(0x28e,'DE7L')+ii11l11I+i1Ii1iii(0x1dc,']0%C')),await iiiI1['HptNX'](Il111i11);const liIliil=$[i1Ii1iii(0x1c4,'(&Fl')]?.['hongbaoResult'],ilI1li11=liIliil?.['resultCode'];if(liIliil&&ilI1li11)switch(ilI1li11){case 0xc8:const iIlll111=liIliil?.[i1Ii1iii(0x210,'cYxp')]?.[i1Ii1iii(0x2a2,'IlrT')],l1iiIIli=liIliil?.[i1Ii1iii(0x1a6,'#a(Q')]?.[i1Ii1iii(0x2f4,'LD*3')];console[i1Ii1iii(0x1bc,'su95')](i1Ii1iii(0x222,'DE7L')+iIlll111+'元红包🧧(将在\x20'+$[i1Ii1iii(0x1ca,'UZ#V')](i1Ii1iii(0x1c1,'Ym2A'),l1iiIIli)+'\x20过期)'),$[i1Ii1iii(0x297,'cYxp')][i1Ii1iii(0x30f,')]ZW')]('收获成功,获得'+iIlll111+'红包🧧'),await iiiI1[i1Ii1iii(0x27d,'%DYS')](illIIlli),await iiiI1[i1Ii1iii(0x27e,'LD*3')](Il11lIlI);break;case 0x199:console[i1Ii1iii(0x1e2,'HJJC')](i1Ii1iii(0x1fa,'Ym2A')),$[i1Ii1iii(0x23c,'faqi')][i1Ii1iii(0x30e,']0%C')](i1Ii1iii(0x29d,'pOfj'));break;default:console[i1Ii1iii(0x234,'60cg')]('收获失败,未知状态\x20'+JSON[i1Ii1iii(0x206,'UZ#V')](liIliil));break;}else iiiI1['WRBBU'](iiiI1[i1Ii1iii(0x25e,'bX72')],iiiI1['gxwgW'])?console[i1Ii1iii(0x2fa,'Ym2A')](i1Ii1iii(0x203,'9rYE')+JSON['stringify']($['gotCouponForFarmRes'])):Ill1il1i=i1Ii1iii(0x1d4,']0%C')+iiIi1ii1+i1Ii1iii(0x22f,'NYSm')+iiiI1[i1Ii1iii(0x278,'(&Fl')](l1IliII,ll1ll1ll['stringify'](IiIIIlIl))+i1Ii1iii(0x263,'HsC3');}async function l1iIl1Il(){const i1lIi1I1=li1i11lI,llIlI1i={'TwfhI':function(IIiliI1i,Il1IiiIi,ilII1I){return IIiliI1i(Il1IiiIi,ilII1I);}},i1lliiIi=arguments[i1lIi1I1(0x2d7,'ye!g')][i1lIi1I1(0x21d,'j#Cn')][i1lIi1I1(0x22c,'ES2)')]();$['myCardInfoRes']=await llIlI1i[i1lIi1I1(0x1c3,'aWIS')](lli11lIi,i1lliiIi,{'version':0x5,'channel':0x1});}async function lI1Ii1I1(lIIiil1I){const lliIIi1I=li1i11lI,lIillII1={'JDyNK':function(IlIill1i,IlIIilIi,IIl11I1){return IlIill1i(IlIIilIi,IIl11I1);}},iiIlIIil=arguments['callee'][lliIIi1I(0x271,'iN7%')]['toString']();$[lliIIi1I(0x1aa,'gLos')]=await lIillII1[lliIIi1I(0x28c,'(XaQ')](lli11lIi,iiIlIIil,{'cardType':lIIiil1I});}async function llIIi(){const ii1Iili1=li1i11lI;$[ii1Iili1(0x213,'7@id')]={};const l1iIi1l1=arguments[ii1Iili1(0x27f,'azor')]['name']['toString']();$[ii1Iili1(0x265,'DE7L')]=await lli11lIi(l1iIi1l1);}function iIi111iI(_0x516004,_0x186b7b){const _0x40158a=IIil1lII();return iIi111iI=function(_0x30df33,_0x2ac386){_0x30df33=_0x30df33-0x192;let _0x2529b5=_0x40158a[_0x30df33];if(iIi111iI['CpFIkC']===undefined){var _0x4c3561=function(_0xe99f2b){const _0x49b039='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x430693='',_0x488fca='';for(let _0x9ed7ef=0x0,_0x395c80,_0x143af5,_0x54b73a=0x0;_0x143af5=_0xe99f2b['charAt'](_0x54b73a++);~_0x143af5&&(_0x395c80=_0x9ed7ef%0x4?_0x395c80*0x40+_0x143af5:_0x143af5,_0x9ed7ef++%0x4)?_0x430693+=String['fromCharCode'](0xff&_0x395c80>>(-0x2*_0x9ed7ef&0x6)):0x0){_0x143af5=_0x49b039['indexOf'](_0x143af5);}for(let _0x561a55=0x0,_0xbb5af4=_0x430693['length'];_0x561a55<_0xbb5af4;_0x561a55++){_0x488fca+='%'+('00'+_0x430693['charCodeAt'](_0x561a55)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x488fca);};const _0x2b9c93=function(_0x108319,_0x2b2525){let _0x14266c=[],_0x46700b=0x0,_0x27d6b6,_0x1cbc53='';_0x108319=_0x4c3561(_0x108319);let _0x15cd8f;for(_0x15cd8f=0x0;_0x15cd8f<0x100;_0x15cd8f++){_0x14266c[_0x15cd8f]=_0x15cd8f;}for(_0x15cd8f=0x0;_0x15cd8f<0x100;_0x15cd8f++){_0x46700b=(_0x46700b+_0x14266c[_0x15cd8f]+_0x2b2525['charCodeAt'](_0x15cd8f%_0x2b2525['length']))%0x100,_0x27d6b6=_0x14266c[_0x15cd8f],_0x14266c[_0x15cd8f]=_0x14266c[_0x46700b],_0x14266c[_0x46700b]=_0x27d6b6;}_0x15cd8f=0x0,_0x46700b=0x0;for(let _0x5bc0fc=0x0;_0x5bc0fc<_0x108319['length'];_0x5bc0fc++){_0x15cd8f=(_0x15cd8f+0x1)%0x100,_0x46700b=(_0x46700b+_0x14266c[_0x15cd8f])%0x100,_0x27d6b6=_0x14266c[_0x15cd8f],_0x14266c[_0x15cd8f]=_0x14266c[_0x46700b],_0x14266c[_0x46700b]=_0x27d6b6,_0x1cbc53+=String['fromCharCode'](_0x108319['charCodeAt'](_0x5bc0fc)^_0x14266c[(_0x14266c[_0x15cd8f]+_0x14266c[_0x46700b])%0x100]);}return _0x1cbc53;};iIi111iI['UNlsQk']=_0x2b9c93,_0x516004=arguments,iIi111iI['CpFIkC']=!![];}const _0x515241=_0x40158a[0x0],_0x1e349e=_0x30df33+_0x515241,_0x2170ef=_0x516004[_0x1e349e];return!_0x2170ef?(iIi111iI['KScAKA']===undefined&&(iIi111iI['KScAKA']=!![]),_0x2529b5=iIi111iI['UNlsQk'](_0x2529b5,_0x2ac386),_0x516004[_0x1e349e]=_0x2529b5):_0x2529b5=_0x2170ef,_0x2529b5;},iIi111iI(_0x516004,_0x186b7b);}async function lI1IlII(liil11lI){const lllIlI=li1i11lI,lliiiIi={'EtrjW':function(lIllilI1,i1I1Ii1l,li1IIi1i){return lIllilI1(i1I1Ii1l,li1IIi1i);},'LiaDD':lllIlI(0x2fc,'bX72')};$[lllIlI(0x208,'vc[[')]=await lliiiIi['EtrjW'](lli11lIi,lliiiIi[lllIlI(0x26c,']L$r')],{'type':liil11lI});}async function illIIlli(){const ilI1IiII=li1i11lI,lIII1Ii1={'yjsem':ilI1IiII(0x27b,']L$r'),'bKrsF':function(liiil1I1,ililiI11){return liiil1I1+ililiI11;},'tKtQu':function(I111IIII,I11IIi){return I111IIII*I11IIi;},'GCMlL':function(I1iliill,liIIlli1,i1lII1l1){return I1iliill(liIIlli1,i1lII1l1);},'Ugfrh':ilI1IiII(0x2dd,'GX$i')},i1iI1i=arguments[ilI1IiII(0x1d1,']0%C')][ilI1IiII(0x20e,'vc[[')][ilI1IiII(0x31c,'rZu^')]();let lIi1ill1=lIII1Ii1[ilI1IiII(0x1db,'60cg')]+Math['floor'](Math[ilI1IiII(0x269,'#a(Q')]()*0x383+0x64),lIIIl11i=ilI1IiII(0x237,'KTe(')+Math[ilI1IiII(0x1df,'HsC3')](lIII1Ii1[ilI1IiII(0x2d3,'iN7%')](lIII1Ii1['tKtQu'](Math[ilI1IiII(0x319,'Zvej')](),0x383),0x64));$[ilI1IiII(0x28f,'C3nz')]=await lIII1Ii1[ilI1IiII(0x244,'su95')](lli11lIi,i1iI1i,{'babelChannel':lIII1Ii1['Ugfrh'],'sid':'','un_area':'','version':0x19,'channel':0x1,'lat':lIIIl11i,'lng':lIi1ill1});}async function Il111i11(){const IiiIiIli=li1i11lI,lIilI1I1={'wTztW':function(l1Ill,iiii11i1,lllii1I1){return l1Ill(iiii11i1,lllii1I1);},'leGiE':IiiIiIli(0x24e,'ye!g')},i11iiII={'version':0xb,'channel':0x3,'babelChannel':0x0};$[IiiIiIli(0x19d,'ERWe')]=await lIilI1I1[IiiIiIli(0x20c,'z1U*')](lli11lIi,lIilI1I1['leGiE'],i11iiII);}async function iIii1il(Iilil1i){const II11Iiii=li1i11lI,IIII1lI={'VDJxl':'choiceGoodsForFarm'},iiIIiI11={'imageUrl':'','nickName':'','shareCode':'','goodsType':Iilil1i,'type':'0','version':0xb,'channel':0x3,'babelChannel':0x0};$[II11Iiii(0x324,'60cg')]=await lli11lIi(IIII1lI['VDJxl'],iiIIiI11);}async function ll1llli(I1IllilI,II11I1I1={}){const llIli1ii=li1i11lI,i1i1iIli={'ZZrSV':llIli1ii(0x1d0,'pOfj'),'cQaEa':'10.2.0','TSPej':llIli1ii(0x2e3,'j#Cn'),'ELBua':llIli1ii(0x283,'ES2)'),'HpLrS':llIli1ii(0x1e0,'cYxp'),'bTqcl':llIli1ii(0x2ea,'su95'),'iLqut':llIli1ii(0x309,'GX$i'),'RkLAZ':'https://carry.m.jd.com/','IZwbG':llIli1ii(0x261,'UZ#V')};let l1III1i='';const IlliIl1I=ilIIlI1l[I1IllilI];if(!IlliIl1I)l1III1i=llIli1ii(0x23a,'#a(Q')+I1IllilI+llIli1ii(0x1f4,')]ZW')+encodeURIComponent(JSON[llIli1ii(0x24d,'(&Fl')](II11I1I1))+llIli1ii(0x19c,'pOfj');else{const Iliili11=await lI1lII1l[llIli1ii(0x2aa,'4aWB')]({'appId':IlliIl1I,'appid':llIli1ii(0x2c8,'Ybkv'),'body':II11I1I1,'client':i1i1iIli[llIli1ii(0x1ad,'HJJC')],'clientVersion':i1i1iIli['cQaEa'],'functionId':I1IllilI,'cookie':IIllIlil,'ua':$['UA'],'version':i1i1iIli[llIli1ii(0x32b,'(XaQ')],'t':!![]});l1III1i=llIli1ii(0x2b4,'60cg')+Iliili11[llIli1ii(0x1b4,'bX72')];}return{'url':l1III1i,'headers':{'Host':i1i1iIli[llIli1ii(0x198,'DE7L')],'Accept':llIli1ii(0x305,'IlrT'),'Origin':i1i1iIli[llIli1ii(0x1e9,'ES2)')],'Accept-Encoding':i1i1iIli[llIli1ii(0x1b3,'faqi')],'User-Agent':$['UA'],'Accept-Language':i1i1iIli[llIli1ii(0x1b8,'UZ#V')],'Referer':i1i1iIli[llIli1ii(0x1d7,'Ybkv')],'x-requested-with':i1i1iIli['IZwbG'],'Cookie':IIllIlil},'timeout':0x2710};}function lli11lIi(Ili1Il11,l1IlIIi={},lI1I11l=0x3e8){const lIlII1i1=li1i11lI,liililil={'wTqRI':function(ll1lii1I,iii1llIl){return ll1lii1I===iii1llIl;},'jiUGE':lIlII1i1(0x1fd,'Ym2A'),'HCQTy':lIlII1i1(0x1ba,'Ym2A'),'Moeiw':function(IlIii11l,IlliIII1){return IlIii11l(IlliIII1);},'HZEnQ':function(lillIi1,IIlIl1I1){return lillIi1!==IIlIl1I1;},'ihSkR':'WidwD','GQORO':'oUfIC','PgWph':function(liIl1lII,Ili1I11l,Ii1li1I1){return liIl1lII(Ili1I11l,Ii1li1I1);}};return new Promise(I1l1iil1=>{const lIIililI=lIlII1i1,lIili111={'VmsNN':function(iII111,IlIii1il){const liliIi1I=iIi111iI;return liililil[liliIi1I(0x275,'#a(Q')](iII111,IlIii1il);},'xvovp':lIIililI(0x329,']L$r'),'ZBIVa':'GRORJ','gUHAC':liililil['jiUGE'],'FeJuV':liililil[lIIililI(0x29b,'(M67')],'uiYZt':function(liIlI111,ll111IIi){return liililil['Moeiw'](liIlI111,ll111IIi);},'ThsVI':function(Il1IIill,ii1I1IIl){const IiI1lIil=lIIililI;return liililil[IiI1lIil(0x1cd,'GX$i')](Il1IIill,ii1I1IIl);},'GJKol':liililil[lIIililI(0x2fe,'zP0y')]};liililil[lIIililI(0x238,'zP0y')](lIIililI(0x19f,'z*0c'),liililil[lIIililI(0x264,'IlrT')])?liililil[lIIililI(0x2bc,'su95')](setTimeout,async()=>{const IlI1I1il=lIIililI;$[IlI1I1il(0x1fb,'cYxp')](await ll1llli(Ili1Il11,l1IlIIi),(IlliIIi1,ii1illil,llI1il1i)=>{const il1IIlil=IlI1I1il;try{if(lIili111[il1IIlil(0x268,'FpRF')](lIili111[il1IIlil(0x312,'faqi')],'UvimG'))il111I[il1IIlil(0x228,'7@id')](il1IIlil(0x1b7,'HJJC'));else{if(IlliIIi1){if(lIili111['ZBIVa']===lIili111[il1IIlil(0x2f3,'gLos')])return lll11iIl[il1IIlil(0x225,'zP0y')](llIilIlI),![];else console['log'](lIili111[il1IIlil(0x257,'bX72')]),console[il1IIlil(0x274,'faqi')](lIili111['uiYZt'](String,IlliIIi1)),console['log'](il1IIlil(0x331,'SwE#')+Ili1Il11),$[il1IIlil(0x31a,'vc[[')](IlliIIi1);}else llII1IIi(llI1il1i)&&(llI1il1i=JSON[il1IIlil(0x2c1,'gLos')](llI1il1i));}}catch(Iilil11l){if(lIili111['ThsVI'](il1IIlil(0x30d,'z1U*'),lIili111[il1IIlil(0x253,']0%C')])){IiiI1lli['log'](il1IIlil(0x1c7,'4muz'));return;}else $[il1IIlil(0x201,'ERWe')](Iilil11l,ii1illil);}finally{I1l1iil1(llI1il1i);}});},lI1I11l):liiIi111[lIIililI(0x225,'zP0y')]('当前没有种植新的水果,已自动种植等级'+iIli1iii+'的'+iiiiI[lIIililI(0x21e,'pOfj')][lIIililI(0x310,'ES2)')][lIIililI(0x282,'azor')]+'\x0a');});}function llII1IIi(I1l1iiIi){const IIIIIiI=li1i11lI,iIi1iiIi={'DaEtr':function(IiIiii1I,III1I1iI){return IiIiii1I==III1I1iI;},'UnDMG':'object','FFPCC':function(ii111I1l,IIiII1I1){return ii111I1l!==IIiII1I1;},'uqwET':'RITLS'};if(!I1l1iiIi)return console[IIIIIiI(0x267,'gLos')]('京东服务器返回数据为空'),![];try{if(iIi1iiIi[IIIIIiI(0x249,'UZ#V')](typeof JSON[IIIIIiI(0x2fb,'C3nz')](I1l1iiIi),iIi1iiIi[IIIIIiI(0x245,'7@id')])){if(iIi1iiIi['FFPCC'](iIi1iiIi['uqwET'],IIIIIiI(0x1f3,'FpRF'))){I111llI[IIIIIiI(0x240,'ES2)')](IIIIIiI(0x28d,'faqi'));return;}else return!![];}}catch(iIIlliI){return console[IIIIIiI(0x260,']L$r')](iIIlliI),![];}}const ilIIlI1l={'initForFarm':li1i11lI(0x27a,'su95'),'taskInitForFarm':'fcb5a','browseAdTaskForFarm':li1i11lI(0x2c2,'9rYE'),'firstWaterTaskForFarm':li1i11lI(0x2ae,']L$r'),'waterFriendGotAwardForFarm':li1i11lI(0x20f,'(&Fl'),'ddnc_getTreasureBoxAward':li1i11lI(0x302,'UZ#V'),'totalWaterTaskForFarm':'102f5','gotThreeMealForFarm':'57b30','waterGoodForFarm':li1i11lI(0x236,'(M67'),'choiceGoodsForFarm':li1i11lI(0x2bf,'KTe('),'gotCouponForFarm':'b1515','gotStageAwardForFarm':'81591','followVenderForBrand':li1i11lI(0x1be,'SwE#'),'gotWaterGoalTaskForFarm':li1i11lI(0x1a2,')]ZW'),'gotNewUserTaskForFarm':li1i11lI(0x218,'GX$i'),'orderTaskGotWaterForFarm':li1i11lI(0x233,'(XaQ'),'clockInForFarm':li1i11lI(0x1ff,'Ym2A'),'clockInFollowForFarm':li1i11lI(0x2d8,'Zvej'),'waterFriendForFarm':li1i11lI(0x1e7,'HJJC'),'awardFirstFriendForFarm':li1i11lI(0x1a8,'(M67'),'awardInviteFriendForFarm':li1i11lI(0x334,'Ybkv'),'awardCallOrInviteFriendForFarm':'b0b03','userMyCardForFarm':li1i11lI(0x20b,'zP0y'),'getCallUserCardForFarm':li1i11lI(0x2a5,'7@id'),'deleteFriendForFarm':li1i11lI(0x2a0,'faqi'),'gotLowFreqWaterForFarm':'8172b','getFullCollectionReward':li1i11lI(0x207,'ERWe'),'getOrderPayLotteryWater':'ef089','receiveStageEnergy':'15507','exchangeGood':li1i11lI(0x1f5,'pOfj'),'farmAssistInit':li1i11lI(0x291,'azor'),'myCardInfoForFarm':li1i11lI(0x31e,'z*0c'),'gotPopFirstPurchaseTaskForFarm':li1i11lI(0x1d6,'IlrT'),'limitWaterInitForFarm':li1i11lI(0x2d2,'4aWB'),'ddnc_surpriseModal':'e81c1','friendInitForFarm':li1i11lI(0x31b,'z1U*'),'clockInInitForFarm':'08dc3','guideTaskAward':'59bc4','signForFarm':'32b94','gotNewUserTaskForFarm':li1i11lI(0x20a,')]ZW')};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)}
|