-
Notifications
You must be signed in to change notification settings - Fork 530
/
jd_clothing_draw.js
10 lines (8 loc) · 39.1 KB
/
jd_clothing_draw.js
1
2
3
4
5
6
7
8
9
10
/*
服装抽奖
cron "1 1 1 1 *" script-path=jd_clothing_draw.js, tag=服装抽奖
*/
const $ = new Env('服装抽奖')
var iil='jsjiami.com.v7';const iIiI1=iii1II;function Iii11l(){const IIIII1=(function(){return[...[iil,'MjrrsHfjDJMiPEaJCYmWiR.ScolmFM.v7IpCffqk==','zH57f8kvDq','BWVcMCoL','W6v4pConqhVdL8opW5dcSd7dQvpdGSo4gG','W7dcT03cJCkZ','5OQp5AsS5AEC6lAmW6C','5Aw35y6j5A+C5lQ777695lI65Pwd5OIr5P2/5lUp5yMi6ykI5BEB57Qr5AYu5OQo7768','W7JdPMGSaSo/','6lsL5y6T5Pw45Pwg','W4RcLIKibg3dGIuxsmk8ASk8sCkHwwquDW','ESkiWP7cLmkQELH9gsbTW5W','q8kqW6FdLSol','W5NcQ25/Eq','WQddUCkhW605','WOlcPmkwWOZdGvqsrZNdTYq3','WQa0zG','W7xdHhhdJMHw','x2vEfSoLjsHQW5tdIa','Bh/dN03cOq','W7JcL0dcISkv','kYJdKda','WOTHxrnW','hd3dIYhdKmkIW4jbWRXSo8kH','W6BcQ1jOzq','WRD5qtj0WR43xv3dPSoJsa','u8kyW6ldLSoF','W7BcJsO','WP9stmoYnq','WQJdQmkrW5q','A2xdG1tcL8kqtHO','rZzspq','hmoqha','WP02WRRdTa','W5/cNKf4ya','Dq9beSkjC8oetLRdOSoqWO8','W6FcP1dcSa','WPNdHKmsDMxdJuuBWRHcw8k+WQ0','W5NcLdmfhwK','W67dVw0IaSojWP0Gfq','5A+H5OMd5lM+5yQZ5Aw26lwrtG','p8kGCmkiA1P2','rJnb','hqxcOSoHgq','w8kIW5NdH8oq','5A2V5OUe5lI55yMm5AAd6lsAEG','WPhcSudcKg/cHNhcSghcR8ovCG','4P68WRNMNk7OG4BMR4BNOyBLP7BNK7ZcVG','amoneGhcHa','C2yLthxdOmk9','tsXjg8og','pM8lwa','vHVcMCoi','WPNcNCo+W4jW','xZNcQ8otja','WPhcMmo2W69j','W47dVSkn','hsBdTNO','qmkgWPNcS8kmAvr+','dcpdKxm0hY4CW7ZcSa','o2NcRt8om8kBW7FdLSovW5C','WPXKWOK','bmoEcbdcSMBdRL3dUwyOW7pdOG','wZvvha','lIqom8k7pq','DwVdMG','pZpcQCod','A8krWOtcIW','jsNcS8of','FSkPtq','WOhdIeqnqhJdGxqqWRX5sSk3','EbbY','l+ACH+wiLUEkRUAdUEAULow4N++9UoA2OowkIEIoOownMEAjQowlTq','W7pcJs13W6xcQWngWOpcHSo5W6nlWRuoWRuSW4S','nxqBtCklW5/cItizumkmCrTRWQ/cP8kepSkVxNZdRW5WyCkKWPJcM8o9cmoPW6dcK8oSW57dVCoaW6VdIh0fvSk5pW','W6/cKdb5W6u','5P6i6k6X5lM+5yQZ5Aw26lwrtG','WQONhmoywNZdOmkfW7BcTdxdOa','W6VcGYPOW5pcTG95WOhcGmoeW7Hj','CSkvW43dOSo3uCkd','zWxcIG','yWFcUSomd2RdGbtcLb/cU8kIWP9k','ENO/A3xdRCkJ','ydxdVgS','BCkcDCkRw35LWR/cRMyOmvFdQZrEwINdKa','yb3cUSo+bNNdNG','WR3cLCoU','jZmso8k9','W7pdKgZdOfjBrwvu','W4pdO8oYpve','WPpcPSkRWPFdL3yIrYddPq','W5JcRmoeWPqk','EqXY','lf3cVSo4sW','cIu9tSkMELn3W53dMCkgtvq','WQddPSkrW4eMmhSOW67dGmkCcmojW53cRYTvWOi','W74hEK7cImodW6u','FhXtnmos','WRNdMmkzvSkK','CXPHp8kBBmoTvf3dL8ojWPVcS8o5W67cIKq6fG','Dq9Mn8kvtmoPvei','W7RcT1dcQ8ktvN4','W5dcHSop','W7hdTXFdKWBdUNxcKNRcKSobtW','W7xcLKVcJCk+','WRTNWQHsAq','W73cNu15BG','WO7cTCkY','WPpdVMPCW4K','W5ZdMCo3wa','dcpdTLyOiamgW6q','EbbHb8kFASoXzehdT8oxWOJcGmoV','W5hcRri7aG','W6hdUr7dLtS','otpcTmoznCofW4ddGvOrW43dPgKKW7ldQCkdWRu','WRyVD1BcPq','W7pdQNCRbSoQWP0','mJmjlSkQ','Dq9beSkjC8omqL3dT8oqWOC','x+ADKEwjOEEiM+AbKEw+TEw6GE++GoIVJoAISUADGoE/NoE7M+AzRUwsNoAVPEw7LSoA','l2GRu8oogSojc3xdOCkTsq','WQBcSCkWWPxdNa','W6lcPSkqW4eQlNfkW53dHSkwbmolW4VcTcPrWPVcRSo2pqrmd1NcKCk1','amoneGhcHf3dOL/dVW','uu7dVHyl','W4/cPuzcDa','W4XJWQVdSru','WO/cU8kL','jt3cSSompCoeW73dRu8t','iYBdKcxdQSkCW5r2WQbOj8k7W7v2','WRD5qtj7WRKQuvZdUG'],...(function(){return[...['W4yVW7aaW5pdP8ox','WPtcTCkRWPK','W7RcSY4rWO8cW5JLV7RLPzxJGQ/KUPJKUlBOT5RLJye','W7ZdOSoDzmks','WRLuWPzjvW','W4WzW6qiW4KRWR0M','WPD+WObYAu3dVSkxy1a','f8oAdZpdLhRdRW','rMxdK30','5P+r6kY45lM65yIp5AAj6lsJW7a','xa1tmSkQBCoU','W5RdLCoJa10IWODWvmoRrrtdReRcHWtdGCk1WRy','swxdKa','6lYx5yES6AwZ6Aoa5AwY6lwNlG','W4RcHqKaaw/dUIubtW','Ad/dOx0','AHRcNCoOa8otW4FcVSkmoYyLBY/dQ8opbIX3W5VcGvfScaubWP/dLbLBWRxdS8oy','WRD5qtjHWR82q3RdP8oYqmoj','imkXE8o8gCodwG','W7BdQMu8aSo/WOS','W4G9W6OPW7y','ibRcR8ojfa','WP8pueBcGG','6lEQ5y2+5Psf5PE9','laSzhSkc','WPVdJNrkW68','W4NcR8ohWPW/','WRJdQmkwW54xo3ia','juSKrmoklmk8A2JdGCoUWO7cJG','WPLJWPPRAr/cN8oDDKyMW6ije8kshNmKASkeWRddRCkL','WQmJpmojwI3cI8opW6pcPtxcOLlcN8onnKtdGCo0lWldUmoAgW','W5RdHSodc1GGWR9WqSoS','zSkizG','iMxcSW','4P2NyoACJoIcIEAVL+EJSUwKGoEtTsK','8kslUmkL','aSofiHtcQW','bSoToIlcPW','rmkOW6JdLmoDt8kOB1BcTG','WP/dSmkoya','WOD3xSoLla','oYJdLZRdI8kbW7LCWQvSoG','oapdGINdVa','WP3dT8krACkv','yb5MgmkPD8o9vuRdS8oSWPNcIq','W5FdMCoW','iJRdGW','xbVcGmom','vt7cJSkdcfpdOmot','W6JcNd4Uea','iZe0nCk8pLDTWQSFW67cGW','AhNdJYmQsCoOW6/dT8k9','Cmk1tSo4','it3cS8oga8oyW4ZdVLGxW7ddV2S','C8kjW5ddI8ou','WRZdU8kmW48Mc3yaW6ldKa','W6pcRZWxmW','zuafu8ofW7hdM8kHw8kfWQ0O','F8k1tq','x2vEfSoLjsbMW5pdNCkQAa','kweCvSo1WP/dSJGBuCkA','uXxdKvH0','y8kUDCoTmSo9','WOFcU8kSWOG','WQONo8o9rKpdHCktW6K','WQVdS8klz8k+','5AYB5OUc5lUy5yM5W57MIOZLPy3MRRlMLkNVVyq','bCorcb7cLuRdTeddSwOy','WRZdQmkxW5qUmuyeW7VdGG','W4SFW7q','DHb6h8kFECoM','5PQN5PYG6iYa5y+o5OUO5yMO','hSoEfH4','5RsW5yUc5AA75zgf772WWRO','owVcVCoy','DZVdQ2vQlCkgW6hdPq','DEIUQ+AYGUwrOow7Hmkx','W7ZdMCo9sCkdC8kdW6xcPCkTj8ke','44cm5O+d56wR44cB6k+U5yEj6i2T5y+aW4yrWOfJWQGK','ndxcRCo4jW','WP9BW6O','W603rY1BWRSQg3ZdQ8oKsCoaWRbrWQ4niSoGb8ofumoZ','W7ZMNlhLIONNIkhMGyZMRjFLUPxVVk7MTBRLIQtOJQ/LJ6FMIlxLIki','W5lcLvlcNCk9','F2vnbmoL','WQjOzJHbWRWvxv3dUG','WQe4AMhcPCoFW4/cNCkxW7S','WO7cG8kGvCkrDmkeWPhcNG','W4u5W5K','W6VdLhhdRhjA','WQ5Rvq','5OQj5AAm5AAW6lAlWPq','AWNcUSoz','x8kUDmkmsW','acddOG','it3cS8ogbmoEW43dOf4','W7ldG8o/p3i','W4pdUHldLdu','l0yPDSo5','WQb/xd5E','W6ZcONfeAW','WQKLrKxcQa','W4VdTX3dJHddKG','WOlcPmkwWOZdGvqAsZ7dOG','WOxdNeqo','WPNdJfKbz38','W4tcIMv6wW','Bb7cNSospa','5lUQ5yQa5Awh6lsD776p5Rc55P686i2/5y++5yUD5lIZ5yUTAZK','WRnQwYnxWOmGreS','FX3cVCoq','WRi8BuFcLmofW4JcKmkv','W5hdL8o+wa','EK9jpmot','WONcPmoBW6XRdG','5PYJ6k6/5lUL5yQn5AEX6lAjWPa','WR/cGIRcUJzfwhnNWQPY','W53cHL9Sza','W7VcGY1I','psZdItddPSkaW7LCWQvSoG','W4tcKq9sjIlcHM89WPHnumkU','WO/dSmkjASk1dmobs8otlSohWQfc','W5VcHZqBf03dGIKFsa','5Rs75yUL5Bsz57I+57Qv5P2T','Ba/cMCoic8oeW4pcUCkrftH6qwFdRSolgg5/','sGXQmCoW','poIVPoAWK+wKU+I0VmkH4P2gnUAvPEwsS+w5UUAvUoAoRW','WPnaWOrpxa','sJRcS8k7bq','WPZdTMm','WQ99xd5gWR8'],...(function(){return['W4hdSZ3dKr8','5RAf5yMp5Aw95zoo77YwiG','W77cGs1QW7BcSa5IWOFcLSooW7PjWReYWRWUW5ZdQa','mXtcMSoVmG','z0jmi8oc','WRDGW4r0ca','W4ldG8oUjfW','WRxdTmkUt8kV','WOFdIfKcFhO','hComha','WPzxAYXX','WP3dVhDiW4rpWPC','WOhdIeqnwNNdH2mbWQ0','WPjeW5LEa8oVWQ/cItBdUCkAW68','FIhcLSooiW','nJZdNr/dUa','BZxdRhPBnSklW47dQmoGW5j1FZe','vqNdOxapgZS','W57dHSohxmkvDSkZWQ3cHCk1pSkn','W7FdSb3dKrFdL3FcGW','ncZcLmomi8oCW7xdPuGg','ng4lwmoj','zf0JB1i','WPNdUSkaW4Cni28a','ngRcOd0hFmogW7RdUSoLW5DtAW','5PYE6k2Z5lIb5yQG5AEx6lwgWPG','BuFdUwhcLW','zYJcN8k5C0hdUq','W77cKG1IW7pcSJ5UWPBcHmo4W6y','WRyVD1BcPCoIW53cKCkv','W4Clh8kHEKBdLuWayhfC','W5uPW7uCW4ddVCoxumoalI/cQCoAbmoeESkmW6JcPq','W5NcI8onWPSy','W5ddPSo6W57cHa89DcldJISF','44kU5OY356sr44cE6k+75ywG6i6O5yYVtCkJyConxmod','W5JcGd4cf3FdHq','CY/dQ2y','W6/cKdb5W6xcKa5UWO/cLG','yu3dQc4f','5OQ95AsB5AEA6lEuAG','W5/dL8oJcW','6lot6lc15yYS5lIv','WPxcS0dcKgdcJI7cKxtcK8oyC8oi','y0ayxmoSW7u','hZldQ3yOgq','WP/dVCkkW4uCdM0rW7VdHSkgga','W5CLW6uq','WObXW7D7mW','WPbNWP1FDxhdKCkbBq','dcpdKxm0hYyqW7VcPxJdPa','oMVcP8ohrmoAew4YhZfj','6l255ysv6Asr6Acw5AA26lwVW7W','DWyro8kEbwu','WRNdNxKqFq','xWNcIG','W43cNdmiawZdUcKxxW','5P266kYa5lQI5yQI5AAX6lE8vG','WQddPSkrW4eMmhSMW6FdGSkAaSocW4S','mM/cQ2zjlCkbW5tdRW','uCo5FG','WPZdNvilwNm','W6tdNNVdRG','5OMX5AEF5AEu6lAqBW','lI4h','W47dRb8','q8k7W6JdMG','mJlcL2HTemkM','W4aRW7iEW6ldRCotxa','W4BdOGZdGG','hSoiftlcRq','n8o6lW','5y6m5yokjG','5PQA5PYY6iYk5y6u5OMx5yQL','WOGYAMdcR8olW5xcKG','W7pcJt4','W4RcRXz2W6i','W4SEW6qpW7iUWRuW','BclcJa','W7FdOwa9hW','yxldTW','W5pdMCo0','5y+U5ycgW6a','W7BcJdPVW7xcVr94','W4hcTwFcVCku','zM/cICoypSo6W5/dJW','BIPVdq','WOXFW60hW4qLWR8OW7BdUq','wSoJyq','zSkiDCktx3H5WO/cSKy2iMtdVq','r8kWWPRcQCk2','ymkiWOdcMG','hshdRgGInW0BW6NcRxBdHSocumk8','qvZdJq8F','W7VcVuq','WQ4ViCon','W5RdHSodc1GGWR9WqSoSCWa','WQldQmkiW5a','E3NcK2JcV8oAWPPbWRjSdmkrW4u','Fu4r','iYBdGW','ksdcHxzYd8kEW6FdJCkDWPBcJHK','hmopgspcMW','rddcRmoipq','qw4/BSoj','CYJdSxrB','Fc/cIxf+','vr/cMCoLWQOxpCoLWPOCWPauW6BcRspdOmkRtmk2','ldVdGtddU8kl','5P+X6k6D5lUU5yUs5AEl6ls9WQq','AaxcG8oIa8ox','lItdIYtdOCkA','rYvie8oaW7q','W4NdNMVdH2LvwgC','W6BdGuVdQNvzDwXfWP9WWPa','bmoEcbdcTwddR0pdVW','m8oqfq/cHgFdRWldJNOnW6q','atZdOG','W7hdJc7dMGm','dMpcS3bW','WP7ORjdMSANLK4lLUPGi','WOpdVhb4W4PhWPNcK8o7','8koyLfS','W7mGW6uzW7C','WQ4PALZcS8kwWPpdK8krW64eWOicWPJcHftdKvrYrmoscmkjWOO','B8kzWP3cK8kkBvXKpczWWOFcMmoeBmkUW5NdNSkqj8kwWQn9tMSXW5DmW6rDx8opW44','eG4PaSkf','o2Oxz8o2','W6VdJSordhW'];}())];}())];}());Iii11l=function(){return IIIII1;};return Iii11l();};(function(i11iiI,lIli11,lllI1I,lillI1,IlIlii,i1l1i1,liil11){return i11iiI=i11iiI>>0x2,i1l1i1='hs',liil11='hs',function(iiillI,l1l111,l1iIII,llI1I1,IlIlil){const lI1ll1=iii1II;llI1I1='tfi',i1l1i1=llI1I1+i1l1i1,IlIlil='up',liil11+=IlIlil,i1l1i1=l1iIII(i1l1i1),liil11=l1iIII(liil11),l1iIII=0x0;const lIli1I=iiillI();while(!![]&&--lillI1+l1l111){try{llI1I1=parseInt(lI1ll1(0x1e7,'c3F('))/0x1+-parseInt(lI1ll1(0x266,'hzAR'))/0x2*(-parseInt(lI1ll1(0x204,'qbTB'))/0x3)+parseInt(lI1ll1(0x26a,'Ala('))/0x4+-parseInt(lI1ll1(0x198,'4CgG'))/0x5*(-parseInt(lI1ll1(0x20e,'Rk8)'))/0x6)+parseInt(lI1ll1(0x2d6,'gNVf'))/0x7*(parseInt(lI1ll1(0x1cf,'G@)p'))/0x8)+-parseInt(lI1ll1(0x2af,'lf)T'))/0x9*(-parseInt(lI1ll1(0x296,'Yp#w'))/0xa)+parseInt(lI1ll1(0x2c9,'gPJ2'))/0xb*(-parseInt(lI1ll1(0x28d,'lf)T'))/0xc);}catch(II1il){llI1I1=l1iIII;}finally{IlIlil=lIli1I[i1l1i1]();if(i11iiI<=lillI1)l1iIII?IlIlii?llI1I1=IlIlil:IlIlii=IlIlil:l1iIII=IlIlil;else{if(l1iIII==IlIlii['replace'](/[YCkSMRrlpIHfEDFPWJq=]/g,'')){if(llI1I1===l1l111){lIli1I['un'+i1l1i1](IlIlil);break;}lIli1I[liil11](IlIlil);}}}}}(lllI1I,lIli11,function(lllI11,I1lIll,I1lIli,II1ii,IIIIII,lillII,ii1ilI){return I1lIll='\x73\x70\x6c\x69\x74',lllI11=arguments[0x0],lllI11=lllI11[I1lIll](''),I1lIli=`\x72\x65\x76\x65\x72\x73\x65`,lllI11=lllI11[I1lIli]('\x76'),II1ii=`\x6a\x6f\x69\x6e`,(0x16e7e6,lllI11[II1ii](''));});}(0x308,0x486e4,Iii11l,0xc4),Iii11l)&&(iil=0x3bab);const jdCookie=require(iIiI1(0x2cb,'P1(u')),notify=require(iIiI1(0x1e9,'N)xr')),common=require(iIiI1(0x243,'s952')),{H5st}=require(iIiI1(0x2f7,'B2@0')),isNotify=![];let linkId='',cookie='';const cookiesArr=Object[iIiI1(0x201,'lf)T')](jdCookie)[iIiI1(0x1da,'Yp#w')](II1llI=>jdCookie[II1llI])[iIiI1(0x177,'F#&J')](i11I11=>i11I11);!cookiesArr[0x0]&&($['msg']($[iIiI1(0x262,'2!aX')],iIiI1(0x240,'%tF7')),process[iIiI1(0x2d3,'B2@0')](0x1));!(async()=>{const liil1I=iIiI1,l1llIl={'aimUw':liil1I(0x297,'tStS'),'PxFfW':function(ii1I1l,ii1I1i){return ii1I1l(ii1I1i);},'zXOZp':function(llI,llliI){return llI!==llliI;},'gBcxg':liil1I(0x1b7,'Cv##'),'NWcUx':function(iI1li1,lllii1,liIli){return iI1li1(lllii1,liIli);},'dEllq':function(liIll,IilIi1){return liIll<IilIi1;},'ApGss':function(iI1liI,l1lIiI){return iI1liI===l1lIiI;},'HyoJB':liil1I(0x2d1,'()Pd'),'qIOkQ':liil1I(0x230,'qbTB'),'IuhUY':liil1I(0x1a5,'Gw&x')};authorCodeList=await l1llIl[liil1I(0x2f4,'r7RP')](getAuthorCodeList,liil1I(0x1b9,'[ql*'));authorCodeList?l1llIl['zXOZp']('bPJmf','bPJmf')?(lilIl1['msg'](i1l1ii[liil1I(0x2d5,'N)xr')],l1llIl[liil1I(0x241,'gPJ2')]),i1l1[liil1I(0x1b2,'T2zf')](0x1)):(console['log'](l1llIl[liil1I(0x189,'xY5e')]),linkId=authorCodeList[l1llIl['NWcUx'](random,0x0,authorCodeList[liil1I(0x2e4,'R4VR')])]):console['log']('\x0a服务状态异常,请检查网络是否正常\x0a');if(!linkId)return;notify[liil1I(0x2e2,'GErZ')]({'title':$[liil1I(0x221,']38l')]});for(let IilIiI=0x0;l1llIl[liil1I(0x1ca,'WI)y')](IilIiI,cookiesArr[liil1I(0x1af,'Vw1B')]);IilIiI++){if(l1llIl[liil1I(0x246,'XPBA')](l1llIl[liil1I(0x185,'s952')],liil1I(0x1eb,'()Pd')))Ii1iIl['log']('进入首页失败,'+(iliIIi?.['msg']||''));else{$[liil1I(0x28a,'[ql*')]=IilIiI+0x1,cookie=cookiesArr[IilIiI],common[liil1I(0x2ed,'#9U]')](cookie),$['UserName']=decodeURIComponent(common['getCookieValue'](cookie,l1llIl['qIOkQ'])),$['UA']=common[liil1I(0x2f8,'YC$G')]($[liil1I(0x222,'1VjZ')]),$['message']=notify[liil1I(0x2e0,'gNVf')]($['index'],$[liil1I(0x28c,'N)xr')]),$[liil1I(0x1f7,'P1(u')]='',console[liil1I(0x1b6,'Rk8)')](liil1I(0x1f4,'#9U]')+$[liil1I(0x2c3,'F#&J')]+'】'+($['nickName']||$[liil1I(0x288,'Gf#]')])+liil1I(0x2b7,'()Pd')),await Main(),common[liil1I(0x235,'W(Ki')]();if($['runEnd'])break;await $['wait'](0x3e8);}}isNotify&¬ify[liil1I(0x248,'G@)p')]()&&(l1llIl[liil1I(0x1df,'Bb(S')](l1llIl[liil1I(0x252,'r7RP')],l1llIl[liil1I(0x182,'Cv##')])?I1lliI['log'](liil1I(0x2ad,'CBdQ')+(llIllI?.[liil1I(0x27e,'W(Ki')]||'')):(notify['appendContent']('\x0a'),await notify[liil1I(0x1b3,'gPJ2')]()));})()[iIiI1(0x267,'tStS')](IiI11=>$['logErr'](IiI11))[iIiI1(0x1c1,'%tF7')](()=>$[iIiI1(0x231,'Yp#w')]());async function Main(){const i11ii1=iIiI1,lli={'tpOHU':i11ii1(0x23f,'2!aX'),'KXbpW':function(lll,llli1){return lll(llli1);},'cMDZn':i11ii1(0x1b8,'CBdQ'),'nJyJM':function(iIli1i,iI1lii){return iIli1i===iI1lii;},'HZavA':function(IilIii,iI1lil){return IilIii===iI1lil;},'ayjwl':'oRtya','cgngl':function(l1lIi1,iIli1l){return l1lIi1<iIli1l;},'kHLwW':i11ii1(0x2bd,'()Pd'),'HCxRM':i11ii1(0x259,'Yp#w'),'NeTNI':i11ii1(0x2e7,'W(Ki'),'jMmJq':i11ii1(0x21e,'Rk8)'),'UOYuC':'taskFinished','bnFPe':i11ii1(0x2ba,'W(Ki'),'uFodD':'apsDoTask','Czfvb':function(i1i1II,liiIIl){return i1i1II!==liiIIl;},'kJloW':'aLLED','DZCKE':i11ii1(0x28b,'%tF7'),'yuyNw':function(iil1iI,IlIllI,il1i1I){return iil1iI(IlIllI,il1i1I);},'CGKHi':function(lI1li1,iI11II){return lI1li1*iI11II;},'EGqEO':i11ii1(0x208,'G@)p'),'fjxZG':'iXZvT','YFWpH':function(iIII1I,ilil1i){return iIII1I*ilil1i;},'zmNuW':i11ii1(0x1d7,'YC$G'),'pphtn':'apTaskDetail','zbmeN':'FEyxV','gtsVV':'JenXH','ddGYi':function(IlIIi,IiI1l,illlII){return IlIIi(IiI1l,illlII);},'fVtpS':function(iIII11,IiI1i){return iIII11+IiI1i;},'OShPv':'任务失败,没有获取到任务ID','GSQel':function(llll1,lil11l){return llll1>lil11l;},'vRAYF':function(i1i1Il,I1lIl1){return i1i1Il+I1lIl1;},'kYKUp':function(lil11i,IlIIl){return lil11i===IlIIl;},'BTPaM':'ANSSM'},liIlI=await common['getLoginStatus'](cookie);if(!liIlI&&typeof liIlI===i11ii1(0x238,'Rk8)')){console[i11ii1(0x2d2,'YC$G')](i11ii1(0x209,'N)xr'));return;}try{$[i11ii1(0x2e5,'hzAR')]=![],$[i11ii1(0x2a2,'N)xr')]=![],$[i11ii1(0x2cd,'4CgG')]=0x0,$['prize']=[],await lli[i11ii1(0x2db,'Gw&x')](sendRequest,lli[i11ii1(0x1a4,'Y!0p')]);if($['runEnd'])return;if($[i11ii1(0x2be,'G@)p')]){if(lli['nJyJM']('sEzDC',i11ii1(0x2a4,'Gb2L'))){if($[i11ii1(0x18b,'N(pP')]===0x1&&$['prizeItems']){if(lli[i11ii1(0x22a,'Bb(S')](lli[i11ii1(0x191,'tStS')],lli[i11ii1(0x253,'Gf#]')])){let lllii='';for(let iI11Ii=0x0;lli[i11ii1(0x255,'s952')](iI11Ii,$['prizeItems'][i11ii1(0x25b,'Ala(')]);iI11Ii++){const iIII1l=$[i11ii1(0x26c,'Bb(S')][iI11Ii],lllil=iIII1l['prizeName']||lli[i11ii1(0x1a6,'Y!0p')];lllii+='\x20\x20'+lllil+'\x0a';}console['log']($[i11ii1(0x2cf,'T2zf')]+i11ii1(0x23b,'GErZ')+lllii);}else i1IIl[i11ii1(0x18f,'W(Ki')](i11ii1(0x1ff,'N)xr')+(I1lll1?.[i11ii1(0x1b4,'qbTB')]||''));}$[i11ii1(0x200,'Bb(S')]='',await sendRequest(lli[i11ii1(0x1f6,'5)s2')]);let lI1liI=![],i1i1Ii=$[i11ii1(0x181,'XPBA')]||[];for(let iIII1i=0x0;iIII1i<i1i1Ii[i11ii1(0x274,'s952')];iIII1i++){$[i11ii1(0x1c7,'hzAR')]=i1i1Ii[iIII1i][lli[i11ii1(0x27c,'$4Nu')]],$[i11ii1(0x2d4,'r7RP')]=i1i1Ii[iIII1i]['id'],$['taskType']=i1i1Ii[iIII1i]['taskType'],$[i11ii1(0x227,'gPJ2')]=i1i1Ii[iIII1i][lli[i11ii1(0x206,'P1(u')]],$[i11ii1(0x21b,'gNVf')]=i1i1Ii[iIII1i][i11ii1(0x22e,'[ql*')],$['taskFinished']=i1i1Ii[iIII1i][lli[i11ii1(0x27f,'s952')]],$[i11ii1(0x203,'s952')]=i1i1Ii[iIII1i]['taskShowTitle'];if(!$[i11ii1(0x188,'s952')]&&$['taskType'][i11ii1(0x2c1,'P1(u')](i11ii1(0x1fc,'c3F('))){if($[i11ii1(0x26b,'$4Nu')])for(let iil1i1=0x0;iil1i1<0x1;iil1i1++){lli['bnFPe']!==lli['bnFPe']?Iii111[i11ii1(0x242,'Gb2L')](i11ii1(0x2b3,'N)xr')+(l1l1II?.[i11ii1(0x2ab,']38l')]||'')):(lI1liI=!![],console['log'](i11ii1(0x2c6,'gPJ2')+$[i11ii1(0x23d,'lf)T')]),await sendRequest(lli[i11ii1(0x207,'gPJ2')]),await $[i11ii1(0x1f3,'Yp#w')](parseInt(Math[i11ii1(0x2f5,'Rk8)')]()*0x5dc+0x5dc,0xa)));}else for(let IlIll1=0x0;IlIll1<0x1;IlIll1++){lI1liI=!![],console[i11ii1(0x273,'#9U]')]('去做\x20'+$[i11ii1(0x251,'gPJ2')]),$[i11ii1(0x2e6,'hzAR')]='',await sendRequest(i11ii1(0x291,'CBdQ'));const IlIII=$[i11ii1(0x224,'Vw1B')]?.[i11ii1(0x17a,'T2zf')]||[],ilil1l=$['apTaskDetail']?.[i11ii1(0x264,'Y!0p')]?.[i11ii1(0x2ac,'Bb(S')];for(let illlIi=0x0;illlIi<ilil1l;illlIi++){if(lli[i11ii1(0x1e0,'Gf#]')](i11ii1(0x26f,'R4VR'),lli['kJloW']))II11II[i11ii1(0x273,'#9U]')](i11ii1(0x29c,'1VjZ')+(Ii1iI1?.['msg']||'')),lilIli[i11ii1(0x186,'gNVf')]=!![];else{const IiI1I=IlIII[illlIi];IiI1I?i11ii1(0x17c,'tStS')===lli[i11ii1(0x263,'XPBA')]?i1II1[i11ii1(0x2d7,'Qf$!')](i11ii1(0x28e,'$4Nu')+(iIIl11?.['msg']||'')):($[i11ii1(0x1ad,'W(Ki')]=IiI1I[i11ii1(0x2b1,'Ala(')],$[i11ii1(0x281,'Ala(')]=IiI1I['taskInsert'],await sendRequest(i11ii1(0x232,'B2@0')),await $[i11ii1(0x2b6,'xY5e')](lli[i11ii1(0x27b,'r7RP')](parseInt,lli['CGKHi'](Math[i11ii1(0x27d,'Ala(')](),0x5dc)+0x5dc,0xa))):console[i11ii1(0x213,'%2$8')](i11ii1(0x25e,'Qf$!'));}}}}else{if(!$['taskFinished']&&$['taskType']['includes'](i11ii1(0x18e,'Rk8)'))){if(lli[i11ii1(0x1d9,'tStS')](lli['EGqEO'],lli[i11ii1(0x245,'YC$G')]))iIIl1i[i11ii1(0x218,'xY5e')]=I1lllI?.['data']?.[i11ii1(0x29a,'CBdQ')],ill111[i11ii1(0x2ae,'N)xr')]=Iliil1?.[i11ii1(0x29d,'r7RP')]?.['remainTimes'],i1III[i11ii1(0x18d,'Cv##')]=!![];else for(let IIIIIi=0x0;IIIIIi<0x1;IIIIIi++){'iXZvT'===lli[i11ii1(0x2f3,'[ql*')]?(lI1liI=!![],console[i11ii1(0x1bf,'GErZ')]('去做\x20'+$['taskShowTitle']),await sendRequest(lli[i11ii1(0x20c,'WI)y')]),await $[i11ii1(0x23c,'%2$8')](lli[i11ii1(0x284,'gNVf')](parseInt,lli['YFWpH'](Math[i11ii1(0x2a0,'Qf$!')](),0x5dc)+0x5dc,0xa))):l1lIii['log'](i11ii1(0x214,'R4VR')+I11iI1+i11ii1(0x23e,'gPJ2')+(l1lIil['message']||IiiIli));}}else{if(!$[i11ii1(0x22b,'Qf$!')]&&$[i11ii1(0x20d,'N)xr')][i11ii1(0x2c7,'CBdQ')](i11ii1(0x1be,'xY5e'))){if(lli[i11ii1(0x25c,'tStS')]==='CKYNo')II1li1[i11ii1(0x1de,'Rk8)')]++,l1lIlI[i11ii1(0x22c,'qbTB')](i11ii1(0x234,'YC$G')+IiiIl1[i11ii1(0x1c0,'Gw&x')]);else for(let IIIl1i=0x0;lli[i11ii1(0x1db,'#9U]')](IIIl1i,0x1);IIIl1i++){if('gBWev'!==i11ii1(0x24f,'4CgG')){lI1liI=!![],console[i11ii1(0x1ee,'Yp#w')](i11ii1(0x2bc,'hWt8')+$[i11ii1(0x261,'G@)p')]),$[i11ii1(0x282,'Gb2L')]='',await sendRequest(lli['pphtn']);const liiII1=$[i11ii1(0x22d,'XPBA')]?.[i11ii1(0x2a7,'%2$8')]||[],IIIl1l=$[i11ii1(0x17e,'Yp#w')]?.['status']?.[i11ii1(0x1f8,'5)s2')];for(let lllll=0x0;lli['cgngl'](lllll,IIIl1l);lllll++){if(lli[i11ii1(0x20a,'Vw1B')](lli['zbmeN'],'cHwTR'))I1llii['log']('查询任务失败,'+(lilIll?.[i11ii1(0x250,'n68j')]||''));else{const iil1l1=liiII1[lllll];iil1l1?lli[i11ii1(0x25d,'GErZ')]===lli['gtsVV']?($[i11ii1(0x1b5,'Ala(')]=iil1l1[i11ii1(0x258,'Gf#]')],$['taskInsert']=iil1l1['taskInsert'],await sendRequest(i11ii1(0x1dd,'n68j')),await $['wait'](lli['ddGYi'](parseInt,lli['fVtpS'](Math[i11ii1(0x195,'Bb(S')]()*0x5dc,0x5dc),0xa))):I1iIli[i11ii1(0x287,'2!aX')]=lI1Ill?.[i11ii1(0x219,'$4Nu')]:console['log'](lli['OShPv']);}}}else IIllI[i11ii1(0x1a0,'%tF7')]=!![],lliilI[i11ii1(0x1e3,'F#&J')]&&IllIIi[i11ii1(0x1d4,'YC$G')][i11ii1(0x17f,'G@)p')](IllIIl);}}}}}!lI1liI&&console[i11ii1(0x2c2,'1VjZ')](i11ii1(0x176,'[ql*'));if(lli[i11ii1(0x228,'xY5e')]($[i11ii1(0x2cd,'4CgG')],0x0)){for(let ill11i=0x0;ill11i<$[i11ii1(0x194,'Ala(')];ill11i++){await sendRequest('lotteryMachineDraw'),await $['wait'](parseInt(lli[i11ii1(0x217,'W(Ki')](Math[i11ii1(0x2a1,'n68j')]()*0x3e8,0x3e8),0xa));}if($[i11ii1(0x1e4,'Vw1B')]['length']){if(lli['kYKUp'](lli['BTPaM'],'ANSSM'))console['log']('\x0a抽奖获得:\x20['+$['prize'][i11ii1(0x1b1,'gPJ2')](',\x20')+']');else{const ill11l=lI1Iil[i11ii1(0x26c,'Bb(S')][lilIiI],I1lIiI=ill11l['prizeName']||i11ii1(0x239,'Cv##');i1l1I+='\x20\x20'+I1lIiI+'\x0a';}}}}else delete iI1lli['data'],delete ll1iI[i11ii1(0x205,'F#&J')][lli['tpOHU']];}}catch(IliiiI){console['log']('❌\x20脚本运行遇到了错误\x0a'+IliiiI);}}function iii1II(_0x54970e,_0x34a496){const _0xb6ab51=Iii11l();return iii1II=function(_0x21874f,_0x3c8019){_0x21874f=_0x21874f-0x175;let _0x2710fc=_0xb6ab51[_0x21874f];if(iii1II['otMiwZ']===undefined){var _0x5998cd=function(_0x1ef499){const _0xfd9375='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x526338='',_0x4adb37='';for(let _0x3b70a2=0x0,_0x3525dd,_0x353ce8,_0x5d67d9=0x0;_0x353ce8=_0x1ef499['charAt'](_0x5d67d9++);~_0x353ce8&&(_0x3525dd=_0x3b70a2%0x4?_0x3525dd*0x40+_0x353ce8:_0x353ce8,_0x3b70a2++%0x4)?_0x526338+=String['fromCharCode'](0xff&_0x3525dd>>(-0x2*_0x3b70a2&0x6)):0x0){_0x353ce8=_0xfd9375['indexOf'](_0x353ce8);}for(let _0x2e2fbb=0x0,_0xbbe57e=_0x526338['length'];_0x2e2fbb<_0xbbe57e;_0x2e2fbb++){_0x4adb37+='%'+('00'+_0x526338['charCodeAt'](_0x2e2fbb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4adb37);};const _0x1887cc=function(_0x1065fd,_0x18622c){let _0xdd3d5c=[],_0x48d4e5=0x0,_0x2f5832,_0x3d9c19='';_0x1065fd=_0x5998cd(_0x1065fd);let _0x4b9837;for(_0x4b9837=0x0;_0x4b9837<0x100;_0x4b9837++){_0xdd3d5c[_0x4b9837]=_0x4b9837;}for(_0x4b9837=0x0;_0x4b9837<0x100;_0x4b9837++){_0x48d4e5=(_0x48d4e5+_0xdd3d5c[_0x4b9837]+_0x18622c['charCodeAt'](_0x4b9837%_0x18622c['length']))%0x100,_0x2f5832=_0xdd3d5c[_0x4b9837],_0xdd3d5c[_0x4b9837]=_0xdd3d5c[_0x48d4e5],_0xdd3d5c[_0x48d4e5]=_0x2f5832;}_0x4b9837=0x0,_0x48d4e5=0x0;for(let _0x294214=0x0;_0x294214<_0x1065fd['length'];_0x294214++){_0x4b9837=(_0x4b9837+0x1)%0x100,_0x48d4e5=(_0x48d4e5+_0xdd3d5c[_0x4b9837])%0x100,_0x2f5832=_0xdd3d5c[_0x4b9837],_0xdd3d5c[_0x4b9837]=_0xdd3d5c[_0x48d4e5],_0xdd3d5c[_0x48d4e5]=_0x2f5832,_0x3d9c19+=String['fromCharCode'](_0x1065fd['charCodeAt'](_0x294214)^_0xdd3d5c[(_0xdd3d5c[_0x4b9837]+_0xdd3d5c[_0x48d4e5])%0x100]);}return _0x3d9c19;};iii1II['ndUZhz']=_0x1887cc,_0x54970e=arguments,iii1II['otMiwZ']=!![];}const _0x4a8d32=_0xb6ab51[0x0],_0x4c4868=_0x21874f+_0x4a8d32,_0x38cfa6=_0x54970e[_0x4c4868];return!_0x38cfa6?(iii1II['FzyMBd']===undefined&&(iii1II['FzyMBd']=!![]),_0x2710fc=iii1II['ndUZhz'](_0x2710fc,_0x3c8019),_0x54970e[_0x4c4868]=_0x2710fc):_0x2710fc=_0x38cfa6,_0x2710fc;},iii1II(_0x54970e,_0x34a496);}async function handleResponse(Ill11,liiIII){const IlIliI=iIiI1,li1i11={'laeDP':IlIliI(0x1e6,'gPJ2'),'HMNyo':function(iI11I1,il1i1l){return iI11I1==il1i1l;},'rzYoJ':IlIliI(0x1ce,'N)xr'),'XLygi':function(IlIlll,IIIl1I){return IlIlll===IIIl1I;},'yUUlB':'bURTA','oEcRg':IlIliI(0x254,'[ql*'),'IYwVU':function(iil1ii,IlIlli){return iil1ii===IlIlli;},'lpbXz':IlIliI(0x278,'gPJ2'),'PbqfX':IlIliI(0x1e5,'Rk8)'),'GjdlA':function(il1i1i,lil111){return il1i1i==lil111;},'xUeWz':IlIliI(0x17b,'xY5e'),'CTNYt':'ZQmOZ'};try{switch(Ill11){case IlIliI(0x1e1,'gPJ2'):if(li1i11[IlIliI(0x28f,'Cv##')](liiIII[IlIliI(0x2a3,'s^Zr')],0x0))$['prizeItems']=liiIII?.['data']?.['prizeItems'],$[IlIliI(0x285,'lf)T')]=liiIII?.['data']?.[IlIliI(0x269,'gNVf')],$[IlIliI(0x1a9,'T2zf')]=!![];else{if(liiIII['code']==0x192)console[IlIliI(0x2bf,'CBdQ')]('进入首页失败,'+(liiIII?.[IlIliI(0x1cb,'Rk8)')]||''));else liiIII[IlIliI(0x2b2,'hzAR')]==0xc?($['runEnd']=!![],console[IlIliI(0x2d2,'YC$G')](IlIliI(0x26d,'1VjZ'))):console[IlIliI(0x21f,'r7RP')](IlIliI(0x2a8,'P1(u')+(liiIII?.['msg']||''));}break;case li1i11[IlIliI(0x216,'W(Ki')]:if(liiIII[IlIliI(0x1c2,'lf)T')]==0x0)switch(liiIII?.[IlIliI(0x2b9,'Gf#]')]?.[IlIliI(0x25f,'s952')]){case 0x0:$[IlIliI(0x2dd,'lf)T')][IlIliI(0x1ae,'R4VR')]('空气');break;case 0x1:$[IlIliI(0x19f,'W(Ki')][IlIliI(0x260,'Gw&x')](''+liiIII?.[IlIliI(0x184,'gNVf')]?.[IlIliI(0x196,'F#&J')]);break;case 0x2:$['prize'][IlIliI(0x193,'YC$G')](liiIII?.['data']?.[IlIliI(0x2e3,'gNVf')]+'红包');break;case 0x3:$[IlIliI(0x1e2,'G@)p')][IlIliI(0x299,'lf)T')](''+liiIII?.[IlIliI(0x2b9,'Gf#]')]?.['prizeConfigName']);break;case 0x11:$[IlIliI(0x19f,'W(Ki')][IlIliI(0x2ca,'c3F(')](IlIliI(0x29e,'5)s2'));break;case null:$['prize'][IlIliI(0x25a,'Ala(')]('空气');break;default:$[IlIliI(0x1ba,'CBdQ')][IlIliI(0x1a8,'n68j')](liiIII?.['data']?.[IlIliI(0x1ea,'W(Ki')]+'-'+liiIII?.[IlIliI(0x190,'J)Jn')]?.[IlIliI(0x2d0,'n68j')]);return;}else{if(liiIII[IlIliI(0x226,'qbTB')]==0x192)console[IlIliI(0x2b4,'Vw1B')](IlIliI(0x24d,'xY5e')+(liiIII?.['msg']||''));else{if(li1i11[IlIliI(0x187,'tStS')](IlIliI(0x223,'Bb(S'),li1i11[IlIliI(0x29b,'()Pd')])){iii1I1[IlIliI(0x1fe,'Cv##')](IlIliI(0x178,'lf)T'));return;}else console['log'](IlIliI(0x175,']38l')+(liiIII?.[IlIliI(0x1b0,'()Pd')]||'')),$[IlIliI(0x1d6,'Gf#]')]=!![];}}break;case IlIliI(0x289,'gPJ2'):if(liiIII[IlIliI(0x1a2,'[ql*')]==0x0)li1i11[IlIliI(0x183,'YC$G')]==='rFFKH'?$[IlIliI(0x1aa,'n68j')]=liiIII?.['data']:IIII11[IlIliI(0x211,'r7RP')]=i1illi?.[IlIliI(0x24e,'Gw&x')];else liiIII['code']==0x192?li1i11['IYwVU'](li1i11[IlIliI(0x2da,'W(Ki')],li1i11[IlIliI(0x17d,'N)xr')])?console[IlIliI(0x242,'Gb2L')](IlIliI(0x2e1,'Rk8)')+(liiIII?.[IlIliI(0x220,'gNVf')]||'')):I1i11l={...llIlii,...llIlil}:IlIliI(0x272,'1VjZ')===IlIliI(0x283,'Gw&x')?IIlii={...IlI1il,...IilliI}:console['log'](IlIliI(0x1bb,'n68j')+(liiIII?.[IlIliI(0x1ac,'5)s2')]||''));break;case li1i11[IlIliI(0x233,'$4Nu')]:if(li1i11['HMNyo'](liiIII[IlIliI(0x1fa,'Cv##')],0x0))$[IlIliI(0x2a6,'n68j')]=liiIII?.['data'];else liiIII[IlIliI(0x2a3,'s^Zr')]==0x192?console[IlIliI(0x2c5,'2!aX')](IlIliI(0x265,'G@)p')+(liiIII?.[IlIliI(0x199,'R4VR')]||'')):console[IlIliI(0x2b4,'Vw1B')](IlIliI(0x1fb,'xY5e')+(liiIII?.['msg']||''));break;case'apsDoTask':if(liiIII['code']==0x0)$[IlIliI(0x1f0,'gNVf')]++,console[IlIliI(0x2d8,'gNVf')]('完成任务,抽奖次数:'+$[IlIliI(0x285,'lf)T')]);else li1i11[IlIliI(0x2ef,'s^Zr')](liiIII[IlIliI(0x1dc,'2!aX')],0x192)?li1i11[IlIliI(0x2ce,'T2zf')](li1i11[IlIliI(0x1c8,'r7RP')],IlIliI(0x21c,'gNVf'))?console['log'](IlIliI(0x197,'n68j')+(liiIII?.[IlIliI(0x2cc,'hWt8')]||'')):lilIlI[IlIliI(0x1ee,'Yp#w')](li1i11['laeDP']):li1i11[IlIliI(0x1f5,'2!aX')]!==IlIliI(0x19a,'gPJ2')?console[IlIliI(0x1d5,'WI)y')](IlIliI(0x19c,'Yp#w')+(liiIII?.[IlIliI(0x24c,'s952')]||'')):(IlI1I['log'](IlIliI(0x244,'N(pP')),II11Ii=II11Il[IlI11(0x0,iIIIIl[IlIliI(0x24b,'hzAR')])]);break;}}catch(i11il1){console['log'](IlIliI(0x19e,'#9U]')+Ill11+IlIliI(0x2ec,'tStS')+(i11il1[IlIliI(0x280,'#9U]')]||i11il1));}}async function sendRequest(ii1iiI){const l1iII1=iIiI1,lllilI={'qBmMx':function(iIiIl,iiilii){return iIiIl<iiilii;},'doidj':'暂未获取成功','qKvra':'POST','ffkhs':'lotteryMachineHome','oxXih':l1iII1(0x1a7,'Y!0p'),'UMOub':l1iII1(0x2f0,'G@)p'),'JpFIs':'lotteryMachineDraw','VgDef':l1iII1(0x2de,'()Pd'),'REZKg':l1iII1(0x277,'CBdQ'),'POIVJ':l1iII1(0x18a,'CBdQ'),'YWFTT':l1iII1(0x247,'s952'),'srqUH':l1iII1(0x2eb,'n68j'),'OJADA':l1iII1(0x1d3,'Rk8)'),'BIcWB':l1iII1(0x1ed,'J)Jn'),'Eerxn':l1iII1(0x20f,'5)s2'),'LtNvn':'https://prodev.m.jd.com/mall/active/2iAtHEAYAEDiQy6RyH7wNCsiMPr3/index.html','mOPox':l1iII1(0x202,'GErZ'),'vonqb':l1iII1(0x1cc,'%2$8'),'SOVyZ':function(li1i1i,IlIli1){return li1i1i===IlIli1;},'DTIKx':l1iII1(0x20b,'#9U]'),'BiYCD':l1iII1(0x275,'Gf#]')};if($[l1iII1(0x180,'hzAR')])return;let ilil11='',illlI1=null,IIIl11=null,I1lIi1=lllilI[l1iII1(0x21a,'N(pP')],liiIIi={},lil11I={};switch(ii1iiI){case lllilI['ffkhs']:lil11I={'appId':'d7439','functionId':lllilI[l1iII1(0x21d,'$4Nu')],'appid':l1iII1(0x294,'s^Zr'),'clientVersion':common[l1iII1(0x1d2,'Rk8)')](),'client':l1iII1(0x237,'P1(u'),'body':{'linkId':linkId,'taskId':'','inviter':''},'version':lllilI[l1iII1(0x19b,'xY5e')],'ua':$['UA'],'t':!![]},liiIIi=await H5st['getH5st'](lil11I),ilil11=lllilI['UMOub'],illlI1=liiIIi[l1iII1(0x236,'N)xr')];break;case lllilI[l1iII1(0x1d8,'5)s2')]:lil11I={'appId':lllilI[l1iII1(0x2c8,'YC$G')],'functionId':lllilI['JpFIs'],'appid':lllilI[l1iII1(0x256,'tStS')],'clientVersion':common[l1iII1(0x1c3,'4CgG')](),'client':lllilI[l1iII1(0x2dc,'Qf$!')],'body':{'linkId':linkId},'version':lllilI[l1iII1(0x257,'G@)p')],'ua':$['UA'],'t':!![]},liiIIi=await H5st[l1iII1(0x1f9,'W(Ki')](lil11I),ilil11=lllilI[l1iII1(0x2c0,'CBdQ')],illlI1=liiIIi[l1iII1(0x1ef,'gPJ2')];break;case lllilI[l1iII1(0x279,'XPBA')]:lil11I={'appId':lllilI['srqUH'],'functionId':lllilI['YWFTT'],'appid':l1iII1(0x179,'Bb(S'),'clientVersion':common['getLatestAppVersion'](),'client':lllilI[l1iII1(0x2f2,'Vw1B')],'body':{'linkId':linkId},'version':l1iII1(0x24a,'5)s2'),'ua':$['UA'],'t':!![]},liiIIi=await H5st['getH5st'](lil11I),ilil11=lllilI['UMOub'],illlI1=liiIIi['paramsData'];break;case'apTaskDetail':lil11I={'appId':l1iII1(0x295,'WI)y'),'functionId':l1iII1(0x1bc,'B2@0'),'appid':l1iII1(0x1fd,'r7RP'),'clientVersion':common[l1iII1(0x26e,'GErZ')](),'client':lllilI['POIVJ'],'body':{'taskType':$[l1iII1(0x2b8,'s^Zr')],'taskId':$['apTaskListid'],'channel':0x4,'checkVersion':!![],'linkId':linkId},'version':'4.7','ua':$['UA'],'t':!![]},liiIIi=await H5st[l1iII1(0x290,'1VjZ')](lil11I),ilil11=l1iII1(0x210,'B2@0'),illlI1=liiIIi[l1iII1(0x225,'()Pd')];break;case lllilI['OJADA']:lil11I={'appId':lllilI[l1iII1(0x1d1,'$4Nu')],'functionId':l1iII1(0x2a5,'5)s2'),'appid':'activities_platform','clientVersion':common[l1iII1(0x2df,']38l')](),'client':lllilI[l1iII1(0x22f,'lf)T')],'body':{'taskType':$['taskType'],'taskId':$[l1iII1(0x192,'Rk8)')],'channel':0x4,'checkVersion':!![],'linkId':linkId,'itemId':$[l1iII1(0x1bd,'CBdQ')],'taskInsert':$[l1iII1(0x1f1,'s952')]},'version':l1iII1(0x2c4,'gPJ2'),'ua':$['UA'],'t':!![]},liiIIi=await H5st[l1iII1(0x290,'1VjZ')](lil11I),ilil11='https://api.m.jd.com/api',illlI1=liiIIi[l1iII1(0x236,'N)xr')];break;default:console[l1iII1(0x2e9,'n68j')]('❌\x20未知请求\x20'+ii1iiI);return;}const Iliii1={};illlI1&&(illlI1={...illlI1,...Iliii1});IIIl11&&(IIIl11={...IIIl11,...Iliii1});const iIiIi={'url':ilil11,'method':I1lIi1,'headers':{'origin':lllilI[l1iII1(0x1e8,'Yp#w')],'Referer':lllilI[l1iII1(0x2aa,'Ala(')],'User-Agent':$['UA'],'Cookie':cookie,'content-type':lllilI['mOPox'],'accept':l1iII1(0x2f1,'T2zf')},'params':IIIl11,'data':illlI1,'timeout':0x7530};I1lIi1===l1iII1(0x1c5,'Y!0p')&&(l1iII1(0x271,'5)s2')!==lllilI['vonqb']?II1liI[l1iII1(0x213,'%2$8')]('完成任务失败,'+(IlI1i1?.['msg']||'')):(delete iIiIi[l1iII1(0x2f6,'GErZ')],delete iIiIi['headers'][l1iII1(0x2e8,'W(Ki')]));const iil1ll=0x1;let iiilil=0x0,iil1li=null,lillIl=![];while(lllilI[l1iII1(0x1ec,'tStS')](iiilil,iil1ll)){iiilil>0x0&&await $['wait'](0x3e8);const lI1lli=await common[l1iII1(0x1f2,'s^Zr')](iIiIi);if(!lI1lli[l1iII1(0x298,'Bb(S')]){if(lllilI[l1iII1(0x2ea,'Gf#]')](lllilI[l1iII1(0x27a,'Gb2L')],lllilI[l1iII1(0x1d0,'XPBA')])){let llI1Il='';for(let ii1iii=0x0;lllilI['qBmMx'](ii1iii,lI1Iii[l1iII1(0x1c9,'Yp#w')]['length']);ii1iii++){const i11iil=li1II[l1iII1(0x229,'N)xr')][ii1iii],Ill1i=i11iil[l1iII1(0x292,'G@)p')]||lllilI['doidj'];llI1Il+='\x20\x20'+Ill1i+'\x0a';}IiilII[l1iII1(0x212,'4CgG')](IliI1I[l1iII1(0x23a,'W(Ki')]+l1iII1(0x276,'tStS')+llI1Il);}else{iil1li=l1iII1(0x2ee,'W(Ki')+ii1iiI+'\x20请求失败\x20➜\x20'+lI1lli[l1iII1(0x1c6,'Vw1B')],iiilil++;continue;}}if(!lI1lli?.[l1iII1(0x1a3,']38l')]){iil1li=l1iII1(0x215,'n68j')+ii1iiI+l1iII1(0x270,'%tF7'),iiilil++;continue;}handleResponse(ii1iiI,lI1lli[l1iII1(0x268,'CBdQ')]),lillIl=![];break;}iiilil>=iil1ll&&(console[l1iII1(0x2b5,'Gf#]')](iil1li),lillIl&&($[l1iII1(0x1c4,'Gw&x')]=!![],$[l1iII1(0x280,'#9U]')]&&$['message'][l1iII1(0x2b0,'hWt8')](iil1li)));}async function getAuthorCodeList(ii1iil){const iiill1=iIiI1,lllI1l=await common['request']({'url':ii1iil,'method':iiill1(0x2bb,'W(Ki'),'headers':{'User-Agent':'Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2013_2_3\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Version/13.0.3\x20Mobile/15E148\x20Safari/604.1\x20Edg/87.0.4280.88'},'proxy':null,'debug':![],'timeout':0x7530}),i11iii=lllI1l[iiill1(0x18c,'N)xr')];return i11iii;}function random(llI1Ii,lllI1i){const lIli1i=iIiI1;return Math[lIli1i(0x1a1,'R4VR')](Math['random']()*(lllI1i-llI1Ii))+llI1Ii;}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) }