mirror of https://github.com/KingRan/KR.git
23 lines
62 KiB
JavaScript
23 lines
62 KiB
JavaScript
/*
|
||
活动名称:邀请好友入会得好礼
|
||
活动链接:https://prodev.m.jd.com/mall/active/dVF7gQUVKyUcuSsVhuya5d2XD4F/index.html?code=<活动id>
|
||
环境变量:jd_prodev_actCode // 活动ID
|
||
jd_prodev_invitePin // 需要助力的默认用户名,不填默认CK1
|
||
jd_prodev_Address // 用户登记收货地址,按照顺序依次填写 收件人@手机号@省份@城市@区县@详细地址,多个用管道符分开
|
||
jd_prodev_needPhysicalPrize // 是否领取实物奖品(true/false),默认领取(只会助力到需要领取奖品的档位)
|
||
|
||
开卡邀请类活动,奖品自动过滤优惠券,自动助力并领取奖品,仅助力一个账号
|
||
|
||
cron:1 1 1 1 *
|
||
============Quantumultx===============
|
||
[task_local]
|
||
#邀请好友入会得好礼
|
||
1 1 1 1 * jd_prodev.js, tag=邀请好友入会得好礼, enabled=true
|
||
|
||
*/
|
||
|
||
const $ = new Env('邀请好友入会得好礼')
|
||
var version_='jsjiami.com.v7';const Illlll=iii1II;(function(li1I,IIliil,ll1liI,lI1iiI,i11lII,iIIlli,ll1li1){return li1I=li1I>>0x4,iIIlli='hs',ll1li1='hs',function(iIIlll,I1iiiI,iiI1il,iiI1ii,I1iii1){const IIlilI=iii1II;iiI1ii='tfi',iIIlli=iiI1ii+iIIlli,I1iii1='up',ll1li1+=I1iii1,iIIlli=iiI1il(iIIlli),ll1li1=iiI1il(ll1li1),iiI1il=0x0;const lilii1=iIIlll();while(!![]&&--lI1iiI+I1iiiI){try{iiI1ii=parseInt(IIlilI(0x18f,'J8yv'))/0x1+parseInt(IIlilI(0xf6,'E2Pp'))/0x2+parseInt(IIlilI(0x268,'$mE]'))/0x3+parseInt(IIlilI(0x13c,'6&5A'))/0x4*(-parseInt(IIlilI(0x1ab,'G2@i'))/0x5)+-parseInt(IIlilI(0xd9,')!QI'))/0x6+-parseInt(IIlilI(0x2de,')4%R'))/0x7*(-parseInt(IIlilI(0x2a4,'cklr'))/0x8)+parseInt(IIlilI(0x2c5,'LfAQ'))/0x9;}catch(iIiii1){iiI1ii=iiI1il;}finally{I1iii1=lilii1[iIIlli]();if(li1I<=lI1iiI)iiI1il?i11lII?iiI1ii=I1iii1:i11lII=I1iii1:iiI1il=I1iii1;else{if(iiI1il==i11lII['replace'](/[EGgnFQIAOXMlkBNrtYhJ=]/g,'')){if(iiI1ii===I1iiiI){lilii1['un'+iIIlli](I1iii1);break;}lilii1[ll1li1](I1iii1);}}}}}(ll1liI,IIliil,function(ll1lil,IIlil1,I1Illl,ll1lii,li11,ilIlI1,I1Illi){return IIlil1='\x73\x70\x6c\x69\x74',ll1lil=arguments[0x0],ll1lil=ll1lil[IIlil1](''),I1Illl='\x72\x65\x76\x65\x72\x73\x65',ll1lil=ll1lil[I1Illl]('\x76'),ll1lii='\x6a\x6f\x69\x6e',(0x13849c,ll1lil[ll1lii](''));});}(0xcb0,0x572d4,Iii11l,0xcd),Iii11l)&&(version_=Iii11l);const ii1iI=require(Illlll(0x332,'1iQK')),IIIil=require(Illlll(0x225,'FnPa')),IIIii=require('./function/sendJDNotify'),iI111i=process[Illlll(0x32b,'oxHv')]['jd_prodev_actCode']||'';let I1I1l1=process['env'][Illlll(0x239,'R@[C')]||'';function iii1II(_0x5865d5,_0x1f98f4){const _0x2d7edb=Iii11l();return iii1II=function(_0x1a4b1f,_0x5cdcb8){_0x1a4b1f=_0x1a4b1f-0xca;let _0x4ba578=_0x2d7edb[_0x1a4b1f];if(iii1II['oXIAdz']===undefined){var _0x536b85=function(_0x29afe5){const _0x433b91='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xf6522f='',_0x20e1a1='';for(let _0x2d6256=0x0,_0x58af88,_0x336cf1,_0x239c27=0x0;_0x336cf1=_0x29afe5['charAt'](_0x239c27++);~_0x336cf1&&(_0x58af88=_0x2d6256%0x4?_0x58af88*0x40+_0x336cf1:_0x336cf1,_0x2d6256++%0x4)?_0xf6522f+=String['fromCharCode'](0xff&_0x58af88>>(-0x2*_0x2d6256&0x6)):0x0){_0x336cf1=_0x433b91['indexOf'](_0x336cf1);}for(let _0x546d20=0x0,_0x5e6045=_0xf6522f['length'];_0x546d20<_0x5e6045;_0x546d20++){_0x20e1a1+='%'+('00'+_0xf6522f['charCodeAt'](_0x546d20)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x20e1a1);};const _0x42cb12=function(_0x18f39b,_0xd3bcc5){let _0x1ada83=[],_0x1f50c2=0x0,_0x318848,_0x258344='';_0x18f39b=_0x536b85(_0x18f39b);let _0x43af24;for(_0x43af24=0x0;_0x43af24<0x100;_0x43af24++){_0x1ada83[_0x43af24]=_0x43af24;}for(_0x43af24=0x0;_0x43af24<0x100;_0x43af24++){_0x1f50c2=(_0x1f50c2+_0x1ada83[_0x43af24]+_0xd3bcc5['charCodeAt'](_0x43af24%_0xd3bcc5['length']))%0x100,_0x318848=_0x1ada83[_0x43af24],_0x1ada83[_0x43af24]=_0x1ada83[_0x1f50c2],_0x1ada83[_0x1f50c2]=_0x318848;}_0x43af24=0x0,_0x1f50c2=0x0;for(let _0x5df920=0x0;_0x5df920<_0x18f39b['length'];_0x5df920++){_0x43af24=(_0x43af24+0x1)%0x100,_0x1f50c2=(_0x1f50c2+_0x1ada83[_0x43af24])%0x100,_0x318848=_0x1ada83[_0x43af24],_0x1ada83[_0x43af24]=_0x1ada83[_0x1f50c2],_0x1ada83[_0x1f50c2]=_0x318848,_0x258344+=String['fromCharCode'](_0x18f39b['charCodeAt'](_0x5df920)^_0x1ada83[(_0x1ada83[_0x43af24]+_0x1ada83[_0x1f50c2])%0x100]);}return _0x258344;};iii1II['aaoElQ']=_0x42cb12,_0x5865d5=arguments,iii1II['oXIAdz']=!![];}const _0x552263=_0x2d7edb[0x0],_0x128494=_0x1a4b1f+_0x552263,_0xe915f0=_0x5865d5[_0x128494];return!_0xe915f0?(iii1II['EQUqNs']===undefined&&(iii1II['EQUqNs']=!![]),_0x4ba578=iii1II['aaoElQ'](_0x4ba578,_0x5cdcb8),_0x5865d5[_0x128494]=_0x4ba578):_0x4ba578=_0xe915f0,_0x4ba578;},iii1II(_0x5865d5,_0x1f98f4);}const iI111l=process[Illlll(0x141,'$mE]')]['jd_prodev_Notify']===Illlll(0x1b2,'vcbB'),i1lIii=process[Illlll(0x262,'4y28')][Illlll(0x19d,'#c&5')]!==Illlll(0x111,'eh!6');function Iii11l(){const iliiI1=(function(){return[version_,'EAOjYsJjAGiQalmXik.rBtcMGom.AvnI7NAlFhgO==','vSolerVcKa','WQNdPSkApCkB','WRFdISoSWQjc','WRCAiSoLrW','W7hcNmkZqrJcJaRcUCodWPXQW5/cQG','5yM75yEs5BQc6zg05l2A5zga5OI55yQN','W6bIW4jTEG','zSo6sCkNhG','cqzzW585','wSkPWRiFW48','qeFdGrLD','ymo0Amkmm8kNEW','a3OSWRVcTSk0pCoMWRpdRCoorW','W6BcP35BnshdI+w9TEwNK+ocR+s5Oos5VoI1RowoTW','6Acx5y6D5AwB6lsD','W6BcTcq','ygtdRrLwAa','cHXDW7OLfSkjW6yNCq3dOq','y+AYRUADIoMFI+ILSowTNEAjMEEySUMbGEITS+s5J+wkG+++GUEzOEAoL+wmIEMGK+wMMowrOmo6','kwntlSkBcG','ymo0DSkDn8kYxcVdQt4CWO1aW4bqkmoGW5y','pmoPxNzC','WOHlzConW4tdVCkqWQVcIa','W5NdReFdGtldVCo2','wSkdmSkQWP4q','jxtcVda','W45DWRFdKmo6','W5jzW47dNxq','5P6l5B2k5AAT','W4njW5b1BCovAf7cRW','WQJdMSkgdmkt','W40Laq','bsJdUdCI','W6NcSZ8cx0JcOSoT','FCkLW4j0sSoYkvS','6zQb5PYl5OQL5yYM5yQf55Mz5PAY6lAw5z6z5z2q5l2y5Ogr5QoP5B6b5A6l5zY76zw16kYW77+45y2b5Pwi5lUj6io95lU156UF772Z','WRHpDmoGcCosWPSRWPdcHqBdOX3dTCo6xCo6W5bfW4q8uq7dGa','gCosCu10W4tcSa','WRxdNuddVbC','o8kXW6SOWQn+W4tdHLi','wmoBiLiLW4VdSmoxWRu','W6NcSZGluG','W6KKhhvl','xLhcNCovWOS','iHxdRa','y8oDaH/cL8oEbZtdQSoWBSokg3a','imk7WRBdUJW','cmkUu8owfG','W7zQW4RdJfu','zd7dRW','W5BcNSo7i8o8sfpdHSk3WQ3cVSkAWRjKaWjoca','tCozB8o4W5ezbCkoWODTemkH','ihnVDLrLsmof','EKVdKqvw','zuyXW63cHq','6lAE5y245PY65BYh6AoB5y2p55Ix5AEH5zgC','lSkpWQtdHqe','W7hdL8oohfHzW4bpWO7dTrBcOG','WQFcRa7cISoy','WOaZqgVdNce','W7hdJCokaLjzW5L9WPNdRJ/cS0JdUq','v8oLwmkqxG','sNKLW4RcUmoQa1S','Bmk/WQO7W6vpWPddIrhdOmkllG','d0iTWPJcSW','W5NcQ8kDWODYWRddO2hdK8oRW4jGW7WiW7WwqNJdTG','eCkemmkSWOjFfSkBWR9mjmkgrKJdU1hcTYebWQGsW5e','WPZdKwamCSkJWPy','kfDTWP7dLSkPW63dNSohwCoDaW','WOJdTCkO','W6BdMNuPvCkcWRDLWP/dTmoZWOO','p8kCWOhdJaj3WOBdHmowCCotWOW','zCoOW4/dGaO','WOC8xMS','tSoDuSkznG','WP4IaG','zCoWW6CqkG','WQVdU34vtG','DNBdIb12','W7ldJmovbwTzW6r2WPi','WROCsutcJb1mW60JWPNdM1i','WOaOeSobveVdRuzgbmka','5AAR5zgZ6Aks5y6z5AsS6lEI77+P','WO1kDa','WPKtW7hcJmkJcYZdKgGakSoB','5yQl5yQM5OQM5yUPf+kDUq','DCoWu8kpCW','W5XMW4m','WPqKhq','WQqmwvtcIaLA','WPFdUCospxO','uuNdHb9zgY3dK8k+','W5FdH2VdNmoBsa','FN7dPa','6Akz5y+C5OMq5yIN','WORdS8k+dG','WRZcLbb5yY9A','W5NdRvKhqW','5yUN5yQk5OUv5yUCn+kEPa','WR7cLbfhtq','WQfciSkpW6u','gL4rWOZcOG','q8kPWR49W5u','oxrPAfDHsmocW5yKACk0W77cLq','oGjYW5uR','pqRdPYWr','lrZcJWZcN2SO','uK3cI8oFWOhdNCoBs8oukxy0','qSownW/cJG','e8kuW4NdSajlzfa','BmkeWQGxW6y','WRaOD0VdIa','W5HsW4HzD8ou','oqJdHY4V','WObgz8oNW5/dVmk7','WP7dPL3dTdtdRCo2W6FdTmkAFSoIBSocla','fHFdHI0P','maZcJXC','zmkOWRu2W7jWWRFdIaVdR8klgbGmW6BcIK9KW60mWOJcHW','n8kZlSk8WQa','gaPkW7a2dmkoW5WBCaldOCoYW4m','WO7dHMyMC8kGWPRcOW4','eGXBW6LTbmkwW4W+yq','W55cWRFdNSoIxs/dQgu/kmoU','fG5PW74V','oCkCWPBdGGrF','W5lcLCoGkmoTx1/dGCkZ','W47dHwFdPre','WP3dRmk8aSkU','W5tdOfq','WRnEvSoalW','4PQYmEITToweLowUOUs5HEw+LoIKQ+EBREEpHEwHO+wnJEMeJ+wrLEwhUEI+HUIIIUIfJUADNq','5yIb5ysV5BUX6zoJ5lYB5zoP5OI45yIh','kCkBWPddGbvjWPddTmokzCoAWP0','WOddRmk1dmka','w8o1W7K','W77dN1aayq','W7tdNumLrW','gbfwW7WX','WQhcRZxcUmooi8koW4i','W7tcNCk+qrhdJNpcLSoKWPTP','ACoDbs/cMCowcq','bowLP+wtMEw0GUwhNEMaTEwnLEwSVE++PEs4M+AUMoAxL+EbRoAFQ+wtTg0','zCkIWR8','pq/dQcyaW4VcGJeLgYtdJG','ESkKW4bJuG','wxawW47cGq','WQpcLbrRCcXRWO/cKGq','W5FdL3ldUmohsmkHnYnKW7u','WOe5f8ojseJdKe9l','h8kWymoNk3GKW7K','iX/dUdyeW5/cLa','W5hdOuxdQYNdVmodW57dSW','WPJdIN07','WRpdVSoxm3O','nSkbWPq','WOldRdKu','5Rwr5yIp5Awe5zoV5lIC566r5zol5yoK5AE56k2C5AYb5OQI5Bs/6AcH6l+m','6zI35P615OQo5y2u5yMT55ID5PAL6lAq5z6T5z605l6I5OkR5Qcn5B655A2j5z++6zsu6k6777205y+b5PE+5lQU6lAI5OUq6l2p5AwH77YH','W7BdH8oodNPoW7zTWPxdSGVcGu7dU8kUW6xdUSoOWQipWQJdOa','CtWxqCoFrmkg','WOhdQdKtENNcOWDXW5hcQYePnb3cMt9b','WPVdNMi+sW','W7ddVSoBWQlOR4lMSOJLPAdOTAFVV6hORzNMO57MN5BNViZOTk7PHANOR5a','5Bst5y+05A6F','nNnqcCkqhmooB8oUcmkLWOH/WQrFi0pdPG','W5BdMwZdQCoNwCkC','WQVdGMBdPG','j1XSD1W','dWldOrCQ','FSoKEmkCn8kZBrRdRYuvWRG','W5LUW4/dU3i','CM8ZW4VcL8oScW','D2pdStnkqttdMrOlWOFdSa','cqHmW6OL','smobuSkimq','WRddG8oOe0ddKHdcUSklWQfDWOhcS27cRG','WOmOxN7dQtddJfyNWQePW5O','ESopW5SGW5JdHCoAW6XihmkI','WPFdQmogjhm','5lIN5A+95z6r','W4TeW5j1B8ozuLlcLYGj','W7XcWRtdUSod','W5lcPCk0WQyz','WQ7dGNZdQG','W5hcJSo7mCoEx2xdPmkSWQRcO8k+','WQZcPc8','hfz2ygS','6AkX5y2m5AAV6lw+772w','WOaGbmozFa','FCk/W498uW','eSkammkR','W6BJGP3LI73LI6RLPyNLIRRJG7a','WO7dVCkoWPOCWPldGsFdNSoQ','FmojvCkQfq','n3LA','W7KQgxBcG8k1pNFcVHm7WPVdTSonrSkoW7mUzq','W40Vch51W5K','fEA0SEwlQowNRUwqT+s6HUETIowqTUwdPEwNRUISMEwSQ++8J+s4NEI1Los5U8o/','WR7cQZdcVa','W6RcTSkcWPCD','DMqZW53cHmo/','5Aw85zgK6Ac/5y2W5Awk6lsl77Yn','C8oRW5i1nq','CmkHWPeSW4C','WQvBb8kuW73cQdO','kgjpaSkBcCoLE8o+','WP8Ocmocq13dU1TBc8klW4iQw1XKWQr9chRdVW0','W4qNpK3cLq','W5SVdfhcPa','yL5/','kbBdPcOx','FNtdRtTmza','W5DQW4JdQ3VdMSku','WRBdUKuTrW','WRpdKNNdVG5TreS','5yIs5yMG5BwK5RQG','WRJdI8o/WPTgW7b+BCkmW553htddR8ooyCoaW7dcH8odattdGCohWRNdTeH1xIaByaddS8oPbCoPW5JcOCkLWR3cHvu2W79hiSovjXRdHafyWPGpWOFcOYhcNSoqWPuAW404WOddT8kjWRuUqu8','W4JdL2JdU8oqxSkWmsvPW7NdKLlcPmo3WPSYWR4IwCop','x8o7W6qpdG','5PY46i6M5BYu','AmoWASkUia'].concat((function(){return['5RAE5yIA5ywG5y26776V','WO3dQtadENJcKInx','WQpcLbrRCcXXWPFcJWq','kbldPICY','cHLsW7a0','yxRdQIXQEt8','WQldPeldVXm','6zQN5P+S5OIA5y+q5yI055Ix5PwY6lsz5z6I5z605l+w5Oc25QoB5B6E5A2r5z2b6zst6k2h77+E5yYw5PEf5lMb6lwK5OUY6l+p5AwV772/','WOzaz8oPW5xdQ8kTWR/cGHa','W5NcPWy6uG','DSongbNcLSov','W6FdIMeRqSkvWOvuWOldOmoK','W7/dUv7dKqS','jWpcLq/dKIWPWPtcSSobW5tcJ8oSW4tdHmkcrq','6i+l5yY35RwM5yMM5lYg5Ogc5AwL6lEm','WPhdNxm','WQRJG4lLV6tLPlxMLQNPLiNJGR8','WPVdT8k0m8kT','5l2c5Oco5yUl','WQBdMSoLWO9qWRGyjG','j3/cTIzLW5u','WRSCrglcHWO','CM8TW5RcK8o5leZdG8o9W4ddT2PIW7BcICoir8kzlCktWQC','i38yWQtcGa','C8okjbxcJW','WOldS8k3lSkOW5e','i31Vo8kH','W7JdGCovo1y','WQ4ptKBcQa','mwf3Axa','kbZcKa/cRgK6WPdcPSoj','6iYI5y255RsT5yUI5l+r5OkE5AE16lsd','WP/dVtGyAW','WRtdQ0q6DG','WOaZv2VdLG','rCkZW5r1zCo0iq','W4NcMSo4jCo2vW','WPb5uIWWWOeCW7y7W5amdXu','W7pcQd8nt1/cTa','jXtdQcKqW5ZcLae','D8onft/cNCochX7dOmotyCos','WQnpCSo5fmkpW51IWPK','cfOcWQtcSG','gaRdQayg','c0uGWRNcQW','b8ocyv1WW5dcPG','dbPBW6SobmkxW4a','kxnkcSkhcSoFACoMeSk3WRO','ig9Hyx8','sKj8WOxdMq','WQ7cSddcUmkSDSkhW5tdI8oCpCo1ASo3c8kQmG','hmkWBCoeahu5W5jHW5vD','WPhdOgxdPte','dSkum8klWOLj','A8oina/cIG','6zMY5P6i5OQP5y6z5yIT55Md5PEf6lEI5z2h5zYy5lYI5OgS5lIF56M877YB6k6M5Q+N56kQ5l+R55AvWP8sW5/cSSoh56636ykd56+f5lMo55sQ5lIA5yQe5yUI5AAj5lU05PwR6lES5z6V5zYZ772B','xSoIW402eq','zCoBaJxcJSoygctdMSouyW','W6BcMaOlzG','pEocIUA2PEwlS+wKIowsPUobU+McK+ISSG','g8kSBSo8iNW9W4XMW5fuFq','WQlcHabPzZTmWRxcJrtcLxq','f8k/WPtdLXG','kSk0hmkfWO8','W5lcRJSPqG','WPNdM3ZdPHy','xt14W77dICkJbmo3WOddLmoK','W6BcRXKPEG','W6q7dLNcKSk1d0FcTWa8WPFdVSom','W4pJG5RMTAlLIAdLNRdLNjBJG7i','W6S8aNfT','WROzrK7cNq','6zMJ5P635OUP5y6N5yIV55Qp5PEx6lws5zYO5z+/5lYT5Ocp5Qg25B2p5AYv5z+q6zwb6k+l772t5y+W5PEO5lM86ioK5lQr56ML7763','tfitW4JcNq','k8oIB8kEnCkLiW','W6hcUtGCt1/cTmosW6tcTCk1','W7VdJNSV','WRDtgSkNW4dcUte','fqRcMq3cSg0GWPq','m3DojCkqc8oOxSoRb8kRWQr5WRrFme3dUvC','W4NcVmkxWPSTWOK','E8k4WRyrW7LM','W4ZcMruTEW','WQVdOSodpw0','o8knWOFdIGztWPFdJSo2zmovWP1lWPC','dMvygCk7d8oHEa','BgapW7RcOq','c8odDLX0W4tcSmoNW63cKCoV','5yUZ5yM15Bsb5RMc','WOq4qh3dJZldNq','E8oEW54OW4tdHSoYW7Hd','W4L/W6JdUN4','fqzz','WRFcKa95zW','zwCAW63cTW','wCooW5ddLILBEq','6zIE5P2X5OUx5y+U5yUw55Mu5PwS6lst5z+I5zYY5l6Z5Okz5lQP56Ut77YA6kYl5Q+556c65l2/55svkefwW7qf562j6yka562X5lUn55sa5lIY5yIK5yMi5AwA5lMc5PAi6lAM5z+H5z2C772x','W6hdRSosowW','W54Sd2dcLW','WRRcOtdcUmosi8kn','Bh4YW5hcMmoSb1JdKW','44oX5RsE5yQ75BIZ6zgk44kj','WOtdRSounwu','WOSxuNZdTa','umoOFmk0Aq','r3OzW7dcLW','W7pdHM4','5lMS5lQZ5P6k5yUv5zMb6l2O5zUG56QT5PEv5O6L','rCo/W6K6lamRyCk3tfy','faXnW6OHaSkF','5Bwk5PQG5lYP5zoA5PA95Rgm5yI65yIS','pvBcJqPz','WPaOAulcHG','z19RWPxdH8kP','r1pdGa','cbL1W5ms','WQNdPLldVYG','AuTXWOdcMCo9W6ddLmopFmoysSkWWQldS3eE','wLRcISodWPldT8oB','tmoeFuP0WOO','W7NdHSoYhNS','DUAXGoADLoMFJUILPUwUOEAjHoEzREMbLUIVLEs6UowjOE+8O+EBJUAmREwoNUMHUowKMEwsTSk/','W5pcP8khWP06WO7dNq/dMmo6WOXC','WOSEmSorDq','WOq4xMZdIYFdUNq8WQy0W77dRuJcPmkErae','h8kOD8o1cq','zmofW4S','W6ZcSJS','Ewm4','WQLiAmotlW','md/cJYxcRa','W5b6W5BdQf3dMmkfrxSeWP3dTa','WRPuACo+n8knW5LMWOxcHtRdSXFdSW','WPtdNNSKvq','w8o/W7a8kG8','W4/cSmoLj8ou','WO7dImkMECoVE3xdKmkhWOO','xCo0DmkBaq','W47dKCoghLfDW5L6','omkHWOBdGb4','WOVcSZxcJCog','Amo/Bq','WOtdS8k5bCkxW4zvWQJcOHNcJSkIvYC','WR4TBudcKW','W5ddQL/dSHpdRmo+W4q','WQvyimkXW5C','WP4Oc8ohuKC','WQFdISoPiwG','qSoRW7ddNc8','W4ZdNghdVmony8ku','W5BcKSo4cCo8vMhdUSkRWQ7cQG','WOyaF0RcOq','ySordG','WPH3zSokW74','WRFdMhi','WQ7cRXJcSCoR','W4rcWQZdJ8ocxaVdVxyV','W4/dH2JdQCoYsCkgeZ5UW6tdVq','WRTva8kgW4RcRXz4a8kffhiUASkRB8khgG','WPKuW7dcH8oMEbJdUf0c','CvZcRSo1WQO','WQvfdCkhW4RcRIC','WQnacSkfW5VcUbDLbmkFfL05','W7ZdH8onowPvW5a','z20vW43cGW','pSk9WOhdOcO','WRpdKmoLWP9qWQqL','5lQ0o+oaIoEINUISKEMbNEITS+ocOa','WQhdJmoZn0BdMfS','W7ZdSCo5fgS','WObvy8oiW5NdU8k/WQRcJbO+k8k3W7yDBG','5B6b6Ac+5y6G','W59sWQpdNmo1sG/dN2S+m8oP','W6RcSJuaz0NcQSo8W6JcTmksWRRcOf8','jXtdVsWrW53cOrSK','W4JdTCk+hCkZW5DDWPRcRGxdOa','WRldMxBdOJv8teS','W7HQWPddLCov','WOdcQXdcHmoh','rmoct8kngq','lY7cRr7cHG','bgOYWRJcKmk2la','wCoqW5RdHr5Dzhq7WR9gWRy','W7W+iN/cIa','W4vjWRBdLSoKxcZdTwO','eSoZvgj2','W5NdMmo0bu8','FfrVWPhdH8k5W5ddImozDq','WQugtq','wLRcLmosWPBdOSo8sSoojNyqWQDEWRbYWO4B','WRjEz8o5fmk8W51PWOu','pY1wW5mW','W7FdJCoe','WR1ACa','fCkpoCkRWP8','s8kFWQSdW6C','DwuPW5BcU8oUa1ZdJ8oHW7tdHwXG','Cmo+dXFcGq','5PsK6ls25z6Z5zYC55Md6k685AwG6lAp','uSoLuCkYhs0litVdKG','WQddJCoIWPfqWPKLi8kkW4S','pN5ZDxTJqa','a251DKS','ECk5WOCKW75S','W4FdMemYqW','umoUumkNsa','WQjED8oXcmkmW6DWWO/cLai','WR0ae8ogvW','WQ7dMb0BFa','WQ7dNSoMbe4','C+MINEwpLUwLKowtMY4pWORcMxWqW4O','4P6/l+wiKUwiG+AiIUwiOU+/VEw9HUwjHow2N+wjJUwiIUs5NoAuJo+/IG','WOXnD8owW6e','WR5vaSkuW6hcQdL5','WO4hDNVdTG','WQuLvgVdNa','WODJCCo7kG','4PYmW63LIBhLI4/MIOFLIP3VV7NLV6NLIk/LTBpLIyxLI5dKU4pMLiRVVPK','bgOSWQNcLmkJc8oeWQJdQSotzmoNW6DbW4BdNmkGW5FdRCk9rG','eatcJKedtIRdM8k/W7RcOHK','zhXPWPVdPW','CmozitRcIq','ixf8o8kY','5RAB5yM65AAY5zc/5lMs56+B5zkM5ycd5AEk6kYX5A24'].concat((function(){return['fNxcSqTo','W6m+bh3cImk0','4P2EnUwkLowlSoAlPEwlSE++Gow9JUwlIUw2LowjQ+wjKUs6PUAwOo+8Lq','lbBcMW','WQhcGWXUzZ5+WPlcHHpcNNpdPq','haNdRain','WR7dVZmusq','W57cLCoG','WQJdOCoodN0','W6RcUqmEwepcO8o7W7VcMCkVWQVcQKVdQ34jiSkPa8ouW7iXWQ7dOSklea','6lAh5y695PAg5Pwr','mbBcJWS','6i2B5y2B5RwV5yUz5l++5OgK5AEq6lwq','WQFdTCocaxe','hdFdUtCF','Dmozbc/cNq','E3/dOdbnAdtdMq','DxRdTYzT','W4JdVvRdUdJdISoNW5BdUSkr','WO/dOJOfEMxcLq','wmkrkX5gW7/cP8oEW4/cIG','W7tdP8oUgNa','W5bGW5ldTLFdMmkCD2WFWRtdPCkjda','bqNdGmkaWQtdMmoAtCoSia','W7tcGCoNgCo4','BSodW5q','6AoV5y+z5AwW6lEU','smoaetNcIG','AmoDgdVcJmoz','WRVcRY7cQCoYmSkIW4pdN8orjq','W5hdGhddVa','WQxcPt4','5AEw5zcC6AoA5y645OI65yQZW6FINPS','WRJcNWDVEG','bf7cIq9y','5yQb5yMn5Bwv5RUN','W4WVfwPGW5zn','ESk8WO45W6u','W4NcNSoHimoRxKldGmk/WRFcRmkO','FhddRJK','n0JcLqfX','avvKzeG','WOzZqCoLW7K','kaJdJGi1','WRTzamkSW4RcSsreh8kgaa','gmk3CmoPf20','W6icomkNtSoAW5PQWPJcNIpdPq','W5hcI8oeiSoq','WPTnpSoSW5hdTSkTW7pcSczRDCoGWRrEimkmW7NcQ8oQkSkJe8k8W5unaq','pCkGkComzSo1kg7cUgK','W7ZdGxiVsa','FhJdOdD2BtZdJW','r03cKmokWPBdG8okwCoalq','W7S+b0JcOCk1lMtcObSOWPm','gEkcLbq','vgLHWRpdJW','rCo/W6K6lam5z8kKwvPP','oMznb8kCdCoTACoUcCkSW6z2WQnGla','z8oOW7q7W48','WOpdTCk+i8k/W49iWOtcSGBcRG','W4fcWQ3dNCo1sZ7dRM0LoSoCWPeKW4pcRmkVWOu','cmkRjmkSWQy','6zMU5PYF5OQU5y2Y5yQa55IC5PEO6lE55z+v5zY15l6X5OgR5QoH5B6k5AYQ5zYO6zEW6k24776o5y295Psj5lQv6ikF5lQ756QF77YQ','WRzsEa','5lML5lUw5P2u5yMP5zUO6l6c5zI956Ul5PED5O+E','FmoadItcGmojfcxdT8oED8oEfM3cJNRdP3H6W5a1','WQmQs13cVG','cmk4bSo0bNG2lXZdUmooWQ4','g8o/xhTw','d8kupSkTWOjEj8kQWRLxlCk0','qmoqW5tdLJXly2CMWQnsWQC','WRFdMSoLWR50','5yMW5yEA5BIC6zcr5lYV5zks5OMb5yUD','W6ZdG8okga','W7JdINSOvCkdWOzuWPNdR8o6WR8vaCo1rcHD','W5ddH2ZdVq','ig9YB3rJtmogW4O','jHdcHa','W5i/bxPKW4jBW5SYW7iXcW','prhdOJu3W43cNW','WOuYva','C3xdNXn7','W5VJG6hNURdMNzxML7tPLRZJGk4','AxxdPXrT','dCoczG','5BwN57MG5PI55l2q5zgO5lM377+i5PEg5RcL5yIO5yIg5AAd5y695zktW5S','44oT5B+H5yMz6yop6k+Q44ow','WOG5v3ZdIYBdI0O8WRSN','4P+SFEwkMUwkLEAkVUwlIU++Tow9LEwiMow0UUwlUUwiPos4ToAvJo+/RG','WOddOJm','DmoZDSkHwq','W7JdSMZdU8k5ymoxW77dQCo9eCoODW','WQ/dGf0nBG','bSoiDq','5AA35zoK6Akv5y2Y5AAb6lA977+e','FCoRis3cQW','cMOxWPVcPa','gN8TWQlcHq','t1tdMd5sedtdU8kYW77cMW','W5lcVSkOWQOD','WRLvDSo5dSknW7PXWO0','WRnchmklW53cKdf5gCkkffy','5yUq5yUY5BEm5RM4','5lIw5lIt5P625yI55zMY6l2P5zIV56MV5Pw55OYd','fdpdJcOd','zf5XWP7dUmk4W6NdK8omySoQsSk6W74','C8kFWOaJW7y','W5dcS8kwWO06','WONdOYi','W4NdNwi','WQNdGexdLGy','WRBdKMBdVsf/ta','xSkXW6Hdqa','p3rN','ebPsW7yNdmku','5Awj5zol6Aog5y2U5AEh6lAU7720','FeRcLSoGWOm','yCo+Fa','owj1W4VcGSk2sfhdMSo2W4NdMgCTWQJdJmkNxmkAlCkdW78','WPevl8onAq','gSkim8kVWOTblq','WRZdKmoS','iX/dPICaW4RcSWaJac3dU8kZxqVdRdvy','W73dTMBdJSo7','5Rsc5yIO5AwI5zcd5lI9562Q5zgV5ych5AsW6kYj5AYh','dZ3dJti1','Cmo+W6OnW40','WQtcRZtcQSoLjmkHW4pdHmoEo8oaBmkVE8kPj8ob','rSokW54','W7tdI3i4vCkcWRC','W6BcSCkMWRan','wmoqW5FdOXvk','p3DjcG','W5hcSmodaSo8','WQrNh8kZW7K','evKKWQZcNq','gmoczu9JW5pcKmoFW6xcLSoUW4C','5yIm5yIP5OIv5yIgWPxINkK','nxj4','W4TeW5jFDSouqW','dmooAG','W7FcLXm3jc1wWPldNW','5BAB6i645B+w','WR3dMSo4WPHuWQ00','WQhcVI3cUmoZBmomWP7dNCocm8oLASkTbCkLBSooedKlosBcPSodw3SgFXRdISkCt8kfpCoOmSk6CblcSfBcVJ4FgMfYWQq/DSoemK3dGc0tW6tdGmkyCaWBx8kNbmk5ixK0W6pdLYLUWPxdTCoJW5ZcK8kL','W74uzSoLfmklW4bTWO/cMuBdRrZdGmk7xCk5W5vp','qSoIC8k5jW','jXtdRYaD','y8ooW5JdQHC','w1dcNG','WO/cQq7cJCoz','W6FcNmkkWRiL','emkooG','DSohD8kKqq','uCk3WQ0KW4a','xhpdUZH6','r8kyW4PTAG','umo/W7aokW4o','W67cRcGxrG','W43cT8kjWPW6WO/dRd7dNSoHWOvUW51aW6ipmwxdS8oSW4pdLW','WORdN8oVoxa','WR7dKmo8','W4JdL3BdQSous8kx','mWNcKbBcIG','ACorgbtcNCoDhbpdUSolFa','WRRdM8ouWPThWQu1j8kBW7f3xsVcQmoqymk+W7RcHG','WOG+r03dGthdNq','W5RcUSojWRy+WPpdNwhdOSoCW5LzWOKdWR1BhwxcQmoqW6tcICkdW6hcKIzd','WQtcMGDsDq','W73dJ8ohgMK','44gq5BYQ5yQX6yo/6kYj44cD','gaPkW7a2dmkoW5WDDG8','WQS7mCo2rW','iX/dPICaW4RcSWaJac3dSmk/qdxdGdDqpSopW4y','WQRdQKSowCkdWQhcGcql','W5FcLmoX','Bx8UW73cMmoV','gCosCu10W4tcSmoOW6VcL8o1W4a','4P6uA+wlG+wkO+AlTUwjJ++9LUw9P+wkN+w2GowlU+wjREs4QEAxME+8Ja','qe/dHWvu','jNrgr0G','WQxdLmkbcCka','5RAU5yIh5BEK57Qz5P2V','W5VdVvBdOYNdVa','g3OVWO7cN8k1','gfP0dCkr','WRlcMGTJEG','6zQq5PYW5OU95y2U5yUg55Ip5Pwy6lsz5z6A5z+t5l2g5OoE5Qc/5BYF5A+D5z+v6zAy6k+g77+N5y6g5PAx5lUp6igT5lIq56Ui77+p','WR/dSK3dLI4','6k+/5yEI5AY25lIi54Yf5AcI5y2d6ywrgG3cQsNcRJHnt8osfSoLWRvjWO7cOoEwJEs4Q+ISQUE/GEwSU+EiIUEYVowMNUwqNoEBK+EuQUAiP+AxMoI0MowCVUwCVUs9T+AaJd3LJyNPH6FMO6RLVzBVVztMLRNKUOlKUjqL5OUR5P655yYncUECJos6MCkp5z+15BQVWRVLJlFLJ4uA6k2k57QK5z2L5z+C77+K6zYn5OYq54E/6AoG5BI+5l2f5Q+d5AoG5ywk77255Ask5lUo55s/566R6yg756YC5yQT5B6v','bSkTu8oGja','W5hcKmkIWRaR','W7JcIrOItq','z0j1WOBdGW','W7NcSCkYWOqk','wLRcLmosWPBdOSo8sSoojNyyWQPCWOLNWOWSgcb+lSoL','lrxdPsmmW58','WRRdLghdJs98ta','WRRdKmoIWOv4WQ88imkiW5XnrZlcSq','4P+Mb+I2GowpQ+AxUEAxUa','WOtdQCk9g8kDW4zmWPRcTqlcP8kZ','W4ddM3xdJJO','5Rsm5yQx5BoJ5P6A5B+Z5AwB','cWXjW7GYaCkUW4O8zq8','hCkfoCk8WOjEj8kLWR9rnW','yMpdQIzDxYxdIW4p','W7ddGwa','W5RcLt4cBq','lrZcKr3cM34pWOpcVCodW5lcSSoNWP7cJCkuuHnlsr8drG','W4bcWQ7dMmoKuq','5RIE6AsY5O2o56wH772e6lwb5y6DiUAFJow+QoMIQEwpJoEzL+wKQ+wrJ++8V+ITJUwpI+ElPEI+UUIJMoIfHEACRoMHJEwpSEwqM8kU','W4L6W5JdU3/dJSkcvMyyWONdPq','pmkPlSomA8o2kHBdHb02WQvB','5lU0wUkcN2u','r8oaW4RdLrPjCG','W7ddNwqLqSk8WQfvWOpdOmo6WPS','W7m5c3pcNG','W6NdG8ohahG','WOBdVCo9p3O','W4foWQ7dT8o1vqZdKNeMlG','WRNdKCo4WO5hWR4'];}()));}()));}());Iii11l=function(){return iliiI1;};return Iii11l();};let III11i='';const i1lIil=Object[Illlll(0x28a,'B!H&')](ii1iI)[Illlll(0x175,'FnPa')](IIIli=>ii1iI[IIIli])['filter'](ii1i1=>ii1i1);!i1lIil[0x0]&&($['msg']($['name'],'【提示】请先获取Cookie'),process[Illlll(0x30a,'aqS1')](0x1));!(async()=>{const Illlli=Illlll,Iiii={'rmayZ':function(llIl11,IIIll){return llIl11(IIIll);},'sQPGS':function(I1I1il,l1llii){return I1I1il===l1llii;},'xkRPT':'❌\x20账号无效','DASAL':Illlli(0x19e,')!QI'),'opBSr':function(liII1,I1I1ii){return liII1+I1I1ii;},'FnASv':Illlli(0x18d,'KG6T'),'npegZ':function(l1llil,IIIlIi){return l1llil!==IIIlIi;},'OGCfq':'KhLba','asRWk':Illlli(0x2f4,'iFlD'),'uxVDE':function(llIl1I,i1lIl1){return llIl1I+i1lIl1;},'iTSfF':function(liIli1,IIIlIl){return liIli1<IIIlIl;},'ogWgo':Illlli(0x14f,'oxHv'),'jKUCe':Illlli(0xcb,'E2Pp'),'oerMO':function(IIIlI,IiiI){return IIIlI+IiiI;},'RrgeV':Illlli(0x1d5,'7Ci@'),'bJarZ':Illlli(0x1c5,'$mE]'),'dSrCZ':function(iIi1i){return iIi1i();},'XDcWN':'hUCgr','JTQGP':function(l1iIll,l1iIli){return l1iIll+l1iIli;},'shNUx':function(iIi1l,i1lIlI){return iIi1l+i1lIlI;},'QHieL':Illlli(0x1f7,'1iQK'),'FFVgI':Illlli(0x168,'1k!X'),'YACeo':function(l1lliI,I1I1iI,IIIlII){return l1lliI(I1I1iI,IIIlII);},'UlTus':Illlli(0x14d,'JyL&')};if(!iI111i){if(Iiii['npegZ']('sTUqC',Iiii[Illlli(0x22d,'r4ua')])){console[Illlli(0x20d,'R@[C')](Iiii['asRWk']);return;}else iil1il[Illlli(0x14e,'$xo*')](Iiii[Illlli(0x32e,'v[EM')](ilil1I,i11il1)),ii1iiI['log'](lllilI[Illlli(0x100,'4y28')]+'\x20API请求失败,请检查网路重试');}$[Illlli(0x259,'$xo*')]=iI111i,$['helpNums']=0x0,$['successCount']=0x0,$[Illlli(0x26f,'LfAQ')]=0x0,$[Illlli(0x1eb,'d#Fw')]={},$['rewardArray']=[],$[Illlli(0x326,'33rD')]=Illlli(0x224,'oxHv')+$[Illlli(0x2e3,'JyL&')],IIIii[Illlli(0x258,'2rU9')]({'title':$[Illlli(0x2ba,'d#Fw')]}),console[Illlli(0x133,'#c&5')](Iiii['uxVDE'](Illlli(0x34f,'vcbB'),$[Illlli(0xed,'7Ci@')]));for(let ili1Il=0x0;Iiii['iTSfF'](ili1Il,i1lIil[Illlli(0x13a,'ZT)%')]);ili1Il++){if(Iiii[Illlli(0x2ed,'NjW6')]===Iiii[Illlli(0x219,'6&5A')]){l1l111=l1iIII['parse'](llI1I1);if(Iiii[Illlli(0x2d6,'E2Pp')](IlIlil['islogin'],'0')){I1lIli[Illlli(0x214,')4%R')](Iiii[Illlli(0xce,'^PW5')]),II1ii[Illlli(0x169,'E2Pp')][Illlli(0x11e,'4y28')](Iiii[Illlli(0x11a,'hxG4')]);if(!IIIIII)lillII['skipRun']=!![];}}else{III11i=i1lIil[ili1Il],$[Illlli(0x1c6,'4y28')]=ili1Il+0x1,$[Illlli(0x307,'u$ZM')]='',$[Illlli(0x13e,'OI22')]=decodeURIComponent(IIIil[Illlli(0x29e,'7Ci@')](III11i,'pt_pin')),$['UA']=IIIil[Illlli(0x147,'hxG4')]($[Illlli(0x109,'^PW5')]),$[Illlli(0x329,'$xo*')]=Iiii[Illlli(0x2d4,'eh!6')]('16',IIIil[Illlli(0x157,'OI22')](Iiii[Illlli(0x302,'6d1M')],Iiii[Illlli(0xe0,'E2Pp')])),$[Illlli(0x10d,'d#Fw')]=IIIii[Illlli(0x24b,'b]M5')]($[Illlli(0xd6,'d#Fw')],$['UserName']),console['log'](Illlli(0x27e,'Z$Jg')+$[Illlli(0x176,'cklr')]+'】'+($['nickName']||$[Illlli(0x2af,'[*%A')])+Illlli(0x311,'^PW5')),await Iiii[Illlli(0x159,'29[@')](III11l);if($['runEnd'])break;}}if($[Illlli(0x35a,'4y28')][Illlli(0x1b0,'7Ci@')]>0x0&&!$[Illlli(0x137,'a0qz')]){if(Iiii[Illlli(0x2f7,'#v3P')](Iiii[Illlli(0x20f,'vcbB')],Iiii['XDcWN']))lllii1['runEnd']=!![];else{if(Iiii['iTSfF']($[Illlli(0x282,'NjW6')],$[Illlli(0xe7,'u$ZM')]))return;for(let ll11I=0x0;ll11I<0x1;ll11I++){III11i=i1lIil[ll11I],$[Illlli(0x29a,'#c&5')]=Iiii['JTQGP'](ll11I,0x1),$['nickName']='',$[Illlli(0x109,'^PW5')]=decodeURIComponent(IIIil['getCookieValue'](III11i,Illlli(0x17f,'KG6T'))),$['UA']=IIIil[Illlli(0x1db,'R@[C')]($['UserName']),$[Illlli(0x1df,'vcbB')]=Iiii[Illlli(0x145,'T)s2')]('16',IIIil[Illlli(0x231,'ZT)%')](Iiii[Illlli(0x19a,'Z$Jg')],Iiii[Illlli(0x11b,'d#Fw')])),$[Illlli(0x31d,'[*%A')]=IIIii[Illlli(0x2ee,'29[@')]($[Illlli(0x29c,'G2@i')],$[Illlli(0x293,'6d1M')]),console['log']('\x0a******开始【京东账号'+$[Illlli(0x1b5,'eh!6')]+'】'+($[Illlli(0x1c7,'iFlD')]||$[Illlli(0x102,'1k!X')])+Illlli(0x186,'SFO4'));let iIi1I=0x0;for(const liIIl of $[Illlli(0x120,'ZT)%')]){if(Iiii['sQPGS'](Iiii[Illlli(0x1e5,'J8yv')],Iiii[Illlli(0x28f,'#v3P')]))lIII11[Illlli(0x267,'a0qz')]+=0x1,IiilI['log'](Iiii['opBSr'](Iiii[Illlli(0x2dd,'7Ci@')],ii1I11['successCount'])),liIi1['message'][Illlli(0x134,'[*%A')](Illlli(0x21d,'vcbB'));else{$['prizeStage']+=0x1,await Iiii[Illlli(0x124,'OvlW')](llIl1l,Illlli(0x257,'G2@i'),encodeURIComponent(JSON[Illlli(0x2cc,'J8yv')]({'code':$[Illlli(0x21f,'33rD')],'stage':liIIl}))+Illlli(0xfe,'$mE]')+liIIl),iIi1I+=0x1;if(iIi1I<0x3)await $[Illlli(0x338,'oxHv')](0x1388);}}}}}iI111l&&IIIii[Illlli(0x357,'JyL&')]()&&(Iiii[Illlli(0x30b,'hxG4')](Iiii[Illlli(0x341,'[U0F')],Illlli(0x179,'7Ci@'))?il1i1i():(IIIii['updateContent'](Iiii[Illlli(0xea,'7Ci@')](IIIii[Illlli(0x1a7,'Z$Jg')],Illlli(0xf9,'oxHv')+$[Illlli(0x23f,'NjW6')])),await IIIii[Illlli(0x2e6,'1k!X')]()));})()[Illlll(0x31c,'a0qz')](IilllI=>$[Illlll(0xcd,'#v3P')](IilllI))[Illlll(0x20c,'cklr')](()=>$[Illlll(0x2d0,'#v3P')]());async function III11l(){const llli1l=Illlll,iI1lIi={'gfdaA':'4|3|2|1|0','XmMhL':'加入店铺会员失败','zSzgT':llli1l(0x309,'b]M5'),'IaILG':function(l1lllI,llliIi){return l1lllI+llliIi;},'ccvWI':llli1l(0x196,'^PW5'),'gZWCL':'助力成功\x20✅','nqtyl':function(i1lIli,i1lIll){return i1lIli===i1lIll;},'KRsrG':llli1l(0x2ff,'AXEi'),'TMPjE':function(ll11ii,liIlii){return ll11ii!==liIlii;},'frEGP':function(llii1l,liIlil){return llii1l===liIlil;},'HcmZL':llli1l(0x25b,'33rD'),'RjXtY':'账号无效','fAKue':llli1l(0x1fa,'NjW6'),'gZEuX':function(llii1i){return llii1i();},'dEXXn':function(ll11il,iI1lIl){return ll11il!==iI1lIl;},'JphMY':'QjfuF','ySWqS':function(iiIiII,Iili,iIi11){return iiIiII(Iili,iIi11);},'OMvfq':function(Iil1,ll11lI){return Iil1(ll11lI);},'MQgth':llli1l(0x2b2,'1iQK'),'xgUuu':llli1l(0x361,'29[@'),'nqapg':function(llliI1,liIII){return llliI1!==liIII;},'XzupW':llli1l(0x279,'NjW6'),'KHQbZ':function(llii11,Iillli){return llii11==Iillli;},'eaqQr':'进行中','ilokH':function(ll11l1,ll111){return ll11l1==ll111;},'sjOBW':llli1l(0x222,'E2Pp'),'oNmkn':llli1l(0x315,'JyL&'),'Zczur':'未知状态','QiMvD':'bnaJb','rSjIj':function(llliII,iiIiIl){return llliII===iiIiIl;},'wrLkJ':function(IlI1l1,liIliI){return IlI1l1===liIliI;},'FcWEY':llli1l(0x1ee,'r4ua'),'FcBNR':function(llii1I,iiIiIi){return llii1I+iiIiIi;},'qXNUG':function(l1lll1,IilI){return l1lll1===IilI;},'axheq':llli1l(0x24a,'4y28'),'zgFav':'myytv','BylEF':llli1l(0x299,'#a20'),'uoFAR':llli1l(0x25e,'G2@i'),'QmZDd':'3|0|1|2|4','zLqUs':llli1l(0x2a1,'a0qz'),'AeKRa':'\x0a活动奖品不符合偏好设定或已领过,不跑了~','qcxan':llli1l(0x30e,'#a20'),'gVRAI':llli1l(0x337,'[*%A'),'hVuEn':llli1l(0x193,'1iQK'),'uqxby':llli1l(0x24e,'eh!6'),'JEdqc':'memberBringFirstInvite','ZXvgz':function(liIlli,lil11){return liIlli&&lil11;},'pFsZR':'tJybA','vgOED':function(Iillll,lllI1){return Iillll===lllI1;},'MHYyV':llli1l(0x283,'E2Pp'),'wrRIw':llli1l(0x2a8,'b]M5'),'njUrW':function(III11I,Ilii1){return III11I<Ilii1;},'NbxdB':function(ll11i1,ili1I1,Iill){return ll11i1(ili1I1,Iill);},'bzwoj':llli1l(0x241,'2rU9'),'Ihlwj':function(ili1II,liIllI){return ili1II(liIllI);},'rWqWV':'\x0a加入店铺会员失败','LpgMC':function(ll11i,iI1lI1){return ll11i<iI1lI1;},'xHWPz':function(I1I1li,l1i11,IlI1li){return I1I1li(l1i11,IlI1li);},'sqVmr':function(IlI1ll,ll11l){return IlI1ll(ll11l);},'AxjRO':function(III111,liIll1){return III111===liIll1;},'SXSpk':llli1l(0x123,'B!H&'),'ZXyCz':llli1l(0x17e,'SFO4'),'EGtux':function(l1llli,iI1lII){return l1llli>=iI1lII;},'Jvdhl':'YVBBH','RrIBs':'YsDok'};$[llli1l(0x317,'vcbB')]=![],await iI1lIi[llli1l(0x18a,'d#Fw')](Iiil);if($[llli1l(0x227,'2rU9')]===0x1){if($['skipRun']){if(iI1lIi[llli1l(0x250,'$xo*')](iI1lIi['JphMY'],iI1lIi[llli1l(0x234,'hxG4')])){const I1I1ll=iI1lIi[llli1l(0xd0,'OvlW')][llli1l(0x1f5,'E2Pp')]('|');let lil1i=0x0;while(!![]){switch(I1I1ll[lil1i++]){case'0':return;case'1':IlI1iI['jumpGetPrize']=!![];continue;case'2':Iillii['runEnd']=!![];continue;case'3':ilI1ll['message']['fix'](iI1lIi[llli1l(0x2e5,'2rU9')]);continue;case'4':IIliI[llli1l(0x110,'NjW6')]('\x0a加入店铺会员失败');continue;}break;}}else{if(!I1I1l1)$[llli1l(0x281,'iFlD')]=!![];return;}}await iI1lIi[llli1l(0x1f3,'7Ci@')](llIl1l,llli1l(0x2a3,'6&5A'),iI1lIi[llli1l(0x32c,'SFO4')](encodeURIComponent,JSON[llli1l(0xdd,'FnPa')]({'code':$[llli1l(0x259,'$xo*')],'pageNum':0x1,'invitePin':''}))+llli1l(0x2e4,'b]M5')+Date['now']());if(!$[llli1l(0x1de,'4y28')]){if(iI1lIi[llli1l(0x1bf,'2rU9')](llli1l(0x32f,'6d1M'),'UihzW')){console[llli1l(0x2c4,'JyL&')](llli1l(0x35d,'cklr')),$[llli1l(0x2d1,'eh!6')]['fix'](llli1l(0xd3,'4y28')),$['runEnd']=!![];return;}else lil[llli1l(0x138,'FnPa')]=!![],IllI1l[llli1l(0x2f8,'ZT)%')]('加入店铺会员成功'),i11I1i['includes'](iI1lIi['zSzgT'])&&(II1lli[llli1l(0x2f6,'29[@')]+=0x1,ii1I1I[llli1l(0x2ce,'iFlD')](iI1lIi[llli1l(0x166,'oxHv')](iI1lIi[llli1l(0xcf,'OI22')],IiIl[llli1l(0x1e2,')!QI')])),IiIi[llli1l(0x308,'2rU9')][llli1l(0x220,'#a20')](iI1lIi['gZWCL']));}$['memberBringActPage']['nickname']&&$['message'][llli1l(0xf8,'[U0F')]();$[llli1l(0x362,'R@[C')]=$[llli1l(0x285,'$mE]')]['venderId'],$[llli1l(0x1d9,'cklr')]=$[llli1l(0x130,'d#Fw')][llli1l(0x2c1,'OvlW')];let ll11iI=llli1l(0x119,'JyL&')+($['memberBringActPage'][llli1l(0x2a5,'SFO4')]||'未知')+llli1l(0x35f,'1iQK')+$['time']('yyyy-MM-dd\x20HH:mm:ss',$[llli1l(0x1d0,'LfAQ')][llli1l(0x172,'FnPa')])+llli1l(0x1e6,'eh!6')+$['time'](iI1lIi[llli1l(0xf2,'29[@')],$[llli1l(0x130,'d#Fw')]['endTime']);$['memberBringActPage']?.['helpReward']?.['rewardName']&&(ll11iI+=llli1l(0x331,'Z$Jg')+($[llli1l(0x171,'G2@i')][llli1l(0x150,'LfAQ')][llli1l(0x351,'eh!6')]['includes']('券')?iI1lIi[llli1l(0x158,'[*%A')]:$['memberBringActPage'][llli1l(0xd2,'1k!X')]['rewardName'])+'('+$[llli1l(0x213,'oxHv')]['helpReward']?.[llli1l(0x25f,'NjW6')]+'份)');let l1i1I=![];for(const IIIIli of $[llli1l(0x285,'$mE]')]['rewards']){if(iI1lIi[llli1l(0x185,'hxG4')](iI1lIi[llli1l(0x22e,'KG6T')],iI1lIi['XzupW']))iii1ii();else{ll11iI+=llli1l(0xef,'ZT)%')+IIIIli[llli1l(0x28e,'33rD')]+llli1l(0x269,'2rU9')+IIIIli['rewardName']+llli1l(0x1ca,'r4ua')+IIIIli[llli1l(0x305,'vcbB')]+'/'+IIIIli[llli1l(0x2c2,'v[EM')]+'('+(iI1lIi[llli1l(0x249,'#v3P')](0x0,IIIIli['rewardStatus'])?llli1l(0x34d,'iFlD'):0x1==IIIIli[llli1l(0x1ba,'6&5A')]?iI1lIi[llli1l(0x34e,'$mE]')]:iI1lIi[llli1l(0x347,'aqS1')](0x2,IIIIli['rewardStatus'])?llli1l(0x15f,'7Ci@'):iI1lIi[llli1l(0x139,'aqS1')](0x3,IIIIli[llli1l(0x21c,'#a20')])?iI1lIi[llli1l(0x10a,'[*%A')]:iI1lIi[llli1l(0x1e7,'J8yv')](0x4,IIIIli[llli1l(0xe3,'^PW5')])?iI1lIi[llli1l(0x230,'6d1M')]:iI1lIi['Zczur'])+')';if(IIIIli[llli1l(0x182,'FnPa')]<=0x0){if(iI1lIi['TMPjE'](iI1lIi['QiMvD'],'ufBLL'))continue;else{if(iI1lIi['nqtyl'](iIli1I[Iiil1],'')){l1iIIl['log'](llli1l(0xfc,'Z$Jg'));return;}}}else l1i1I=!![];if(iI1lIi['rSjIj'](IIIIli[llli1l(0x2ec,'LfAQ')],0x3)&&!I1I1l1)continue;else{if(iI1lIi[llli1l(0x2e2,'2rU9')](IIIIli[llli1l(0x16f,'AXEi')],0x2))continue;else{if(iI1lIi[llli1l(0x2d5,'T)s2')](IIIIli[llli1l(0x304,'eh!6')],0x3)&&!i1lIii)continue;else $[llli1l(0x1b1,'oxHv')]['push'](IIIIli['stage']),iI1lIi['rSjIj']($[llli1l(0x1c0,'T)s2')],0x0)&&($[llli1l(0x1f6,'J8yv')]=IIIIli['inviteNum']);}}IIIIli[llli1l(0x1cc,'ZT)%')]!==0x2?iI1lIi[llli1l(0x154,'G2@i')]!==iI1lIi[llli1l(0x22a,'oxHv')]?l11i11[llli1l(0x132,'4$0)')]('请先定义环境变量\x20prodevAddress\x20用于设置实物类奖品的用户收货地址信息\x0a变量格式:收件人@手机号@省份@城市@区县@详细地址,需按照顺序依次填写,多个用管道符分开'):$['helpNums']=IIIIli[llli1l(0x1f8,'FnPa')]:($['hasNeedClaimedPrize']=TextTrackCueList,I1I1l1&&($[llli1l(0x189,'T)s2')]=IIIIli['inviteNum']));}}console[llli1l(0x2c4,'JyL&')](ll11iI),IIIii[llli1l(0x156,'T)s2')](iI1lIi[llli1l(0x216,'1iQK')](IIIii[llli1l(0x15a,'R@[C')],'\x0a'+ll11iI));if(iI1lIi[llli1l(0x333,'$mE]')]($[llli1l(0x152,'T)s2')][llli1l(0x2e9,'NjW6')],0x2)){console[llli1l(0x20d,'R@[C')]('\x0a活动已结束'),$[llli1l(0x17d,'SFO4')]['fix'](iI1lIi[llli1l(0x2fb,'NjW6')]),$['runEnd']=!![],$[llli1l(0xf0,'u$ZM')]=!![];return;}else{if($[llli1l(0x213,'oxHv')][llli1l(0x108,'29[@')]===0x0){if(iI1lIi[llli1l(0x131,'u$ZM')](iI1lIi['zgFav'],llli1l(0x11c,'r4ua'))){II11II[llli1l(0x133,'#c&5')](iI1lIi[llli1l(0x2e8,'cklr')]),Ii1iI1['message'][llli1l(0x14c,'7Ci@')]('奖品已发完'),lilIli['runEnd']=!![],Iliili['jumpGetPrize']=!![];return;}else{const illlii=iI1lIi[llli1l(0x140,'oxHv')][llli1l(0x353,'NjW6')]('|');let I1lIIi=0x0;while(!![]){switch(illlii[I1lIIi++]){case'0':$['message'][llli1l(0x2b6,'#v3P')](iI1lIi[llli1l(0x248,'SFO4')]);continue;case'1':return;case'2':console['log']('\x0a活动尚未开始');continue;case'3':$[llli1l(0x1c9,'[U0F')]=!![];continue;case'4':$[llli1l(0x195,'[U0F')]=!![];continue;}break;}}}else{if(!l1i1I){const l1i1i=iI1lIi['QmZDd']['split']('|');let I1iI1i=0x0;while(!![]){switch(l1i1i[I1iI1i++]){case'0':$[llli1l(0x223,'R@[C')][llli1l(0x2c9,'v[EM')]('奖品已发完');continue;case'1':$[llli1l(0x217,')4%R')]=!![];continue;case'2':$[llli1l(0x32a,'6&5A')]=!![];continue;case'3':console[llli1l(0x243,'6&5A')](iI1lIi[llli1l(0x291,'2rU9')]);continue;case'4':return;}break;}}}}if($[llli1l(0x323,'4$0)')]['length']===0x0){if(iI1lIi[llli1l(0x1d8,'#a20')](iI1lIi[llli1l(0x115,'OI22')],iI1lIi[llli1l(0x2a7,'[*%A')])){!I1I1l1?(console['log'](iI1lIi['AeKRa']),$[llli1l(0x308,'2rU9')][llli1l(0x2c8,'a0qz')](iI1lIi['qcxan'])):(console['log'](iI1lIi[llli1l(0x1be,'JyL&')]),$[llli1l(0x121,'NjW6')]['fix'](iI1lIi[llli1l(0x28c,'a0qz')]));$[llli1l(0xe9,'cklr')]=!![],$[llli1l(0x1da,')4%R')]=!![];return;}else{IiiIii=IIlll[llli1l(0x2da,'2rU9')]('@');if(iI1lIi[llli1l(0x165,'LfAQ')](liliI[llli1l(0x146,'v[EM')],0x8)){l1iil['log']('随机抽取到的收货地址信息格式存在错误(参数不足或过多)');return;}for(const I1iI1l of[0x0,0x1,0x2,0x3,0x4,0x5,0x6]){if(iI1lIi['frEGP'](I11iIi[I1iI1l],'')){I11iIl[llli1l(0x343,'AXEi')](llli1l(0x1d2,'JyL&'));return;}}}}if(!I1I1l1){if(iI1lIi[llli1l(0xf7,'#c&5')](iI1lIi['uqxby'],iI1lIi['uqxby'])){await iI1lIi[llli1l(0x355,'$xo*')](llIl1l,iI1lIi[llli1l(0x277,'33rD')],iI1lIi[llli1l(0x2b9,')4%R')](encodeURIComponent,JSON[llli1l(0x2ea,'aqS1')]({'code':$[llli1l(0x288,'b]M5')],'fp':'','eid':''}))+llli1l(0x221,'eh!6'));if(!$[llli1l(0x233,'1iQK')][llli1l(0xda,'#c&5')]){const Iliil='0|1|2|3|4'['split']('|');let I1lIIl=0x0;while(!![]){switch(Iliil[I1lIIl++]){case'0':console[llli1l(0x290,')!QI')]('\x0a'+$[llli1l(0x18e,'E2Pp')]['errorMessage']);continue;case'1':$[llli1l(0x2db,'1k!X')]['fix']($[llli1l(0x310,'OI22')]['errorMessage']);continue;case'2':$[llli1l(0x2e1,'33rD')]=!![];continue;case'3':$[llli1l(0x151,'vcbB')]=!![];continue;case'4':return;}break;}}const illlil=!!$[llli1l(0x312,'Z$Jg')]?.[llli1l(0x215,'4y28')]?.[llli1l(0xe2,'NjW6')];if(iI1lIi['ZXvgz'](!illlil,i1lIii)){iI1lIi[llli1l(0x1a1,'hxG4')](llIl1i);if(!$[llli1l(0x10b,'#a20')]?.[llli1l(0x350,'Z$Jg')]){if(iI1lIi[llli1l(0x232,'#c&5')](llli1l(0x1d1,'cklr'),iI1lIi[llli1l(0x136,'1k!X')])){$[llli1l(0x27d,'E2Pp')]=!![];return;}else{ii1ill[llli1l(0x300,'KG6T')]('京东服务器返回空数据');if(!II1iI)llI1II[llli1l(0x117,'oxHv')]=!![];}}await iI1lIi[llli1l(0x12f,'v[EM')](IiiII,llli1l(0x340,'v[EM'),$[llli1l(0xff,'#c&5')]),await $[llli1l(0x1dd,'OI22')](0x3e8);}if(iI1lIi[llli1l(0x204,'6d1M')]($['helpNums'],0x0)){console[llli1l(0x2ce,'iFlD')](llli1l(0x1ea,'aqS1')+$[llli1l(0x2c1,'OvlW')]+'人'),console[llli1l(0x29d,'2rU9')](iI1lIi['MHYyV']),$[llli1l(0x105,'KG6T')]=!![];return;}else console[llli1l(0x170,'OvlW')]('【当前邀请】'+$[llli1l(0x301,'2rU9')]+llli1l(0x15b,'AXEi')+$[llli1l(0x144,'b]M5')]+'人');}else{const lil1I=llli1l(0x298,'KG6T')[llli1l(0xfb,'OvlW')]('|');let l1l1Ii=0x0;while(!![]){switch(lil1I[l1l1Ii++]){case'0':return;case'1':llIll1[llli1l(0x25c,'#v3P')]=!![];continue;case'2':IlI1i1['log']('\x0a'+l1lIl1[llli1l(0xca,'[*%A')]['errorMessage']);continue;case'3':IiiIlI['message']['fix'](Iilli1['memberBringFirstInvite'][llli1l(0x2b0,'KG6T')]);continue;case'4':I1l1Il[llli1l(0x284,'^PW5')]=!![];continue;}break;}}}else $[llli1l(0x335,'[U0F')]&&(console['log'](llli1l(0x266,'ZT)%')),$[llli1l(0x10d,'d#Fw')][llli1l(0x1c1,'u$ZM')](iI1lIi[llli1l(0xcc,'7Ci@')]));$['joinMemberStop']=![];if(!I1I1l1){I1I1l1=$['UserName'];for(let IIIIlI=0x0;iI1lIi[llli1l(0x297,'$xo*')](IIIIlI,0x3);IIIIlI++){await iI1lIi[llli1l(0x22f,'iFlD')](llIl1l,iI1lIi[llli1l(0x27b,'J8yv')],''+iI1lIi['Ihlwj'](encodeURIComponent,JSON[llli1l(0x118,'[*%A')]({'code':$[llli1l(0x15c,'hxG4')]})));if($[llli1l(0x1aa,'a0qz')])break;}if(!$[llli1l(0x2d8,'SFO4')]){console['log'](iI1lIi[llli1l(0x21a,'T)s2')]),$[llli1l(0x203,'$xo*')][llli1l(0x280,'#c&5')](iI1lIi['XmMhL']),$[llli1l(0x244,'[*%A')]=!![],$[llli1l(0x2aa,'OI22')]=!![];return;}}else{for(let l1i11l=0x0;iI1lIi[llli1l(0x2c7,'r4ua')](l1i11l,0x3);l1i11l++){await iI1lIi['xHWPz'](llIl1l,iI1lIi[llli1l(0x28b,'LfAQ')],iI1lIi[llli1l(0x1b9,'KG6T')](encodeURIComponent,JSON[llli1l(0x33f,'^PW5')]({'code':$[llli1l(0x2b4,'aqS1')],'invitePin':I1I1l1}))+llli1l(0x163,'#v3P')+I1I1l1);if($[llli1l(0x178,'[*%A')])break;}$[llli1l(0x322,'d#Fw')]=!![],$[llli1l(0x31b,'$mE]')]=0x0;}}else{if(iI1lIi[llli1l(0x31a,'2rU9')](iI1lIi[llli1l(0xfd,'[*%A')],iI1lIi[llli1l(0x1cb,'AXEi')])){i11ii1['log'](iI1lIi['HcmZL']),IlIliI['message']['fix'](iI1lIi['RjXtY']);if(!l1iII1)iiill1[llli1l(0x33e,'T)s2')]=!![];}else{if($[llli1l(0x1e3,'2rU9')]||$[llli1l(0x364,'OvlW')])return;$['joinMemberStop']=![];for(let lllII=0x0;lllII<0x3;lllII++){await llIl1l(iI1lIi[llli1l(0xd1,'SFO4')],iI1lIi[llli1l(0x183,'v[EM')](encodeURIComponent,JSON[llli1l(0x1e0,'SFO4')]({'code':$[llli1l(0x101,'T)s2')],'invitePin':I1I1l1}))+'&invitePin='+I1I1l1);if($[llli1l(0x1fd,'AXEi')])break;}iI1lIi['EGtux']($[llli1l(0x160,'LfAQ')],$[llli1l(0x348,'$xo*')])&&(iI1lIi[llli1l(0xfa,')!QI')]===iI1lIi[llli1l(0x1f0,'aqS1')]?(II1lil[llli1l(0x2c4,'JyL&')](llli1l(0x1b7,'6d1M')),IIli1l[llli1l(0xe1,'#a20')]['insert'](iI1lIi['fAKue']),II1lii[llli1l(0x359,'7Ci@')]=!![]):(console[llli1l(0x300,'KG6T')](llli1l(0x349,'6&5A')),$[llli1l(0x2ca,'OvlW')][llli1l(0x33a,'[*%A')](llli1l(0x10c,'29[@')),$['runEnd']=!![]));}}}function llIl1i(){const lI1ii1=Illlll,l1i11i={'ukdXw':lI1ii1(0x1a0,'Z$Jg'),'fEVeL':function(IliiI,lI111i){return IliiI!==lI111i;},'FRzKS':function(I1lIII,liIlll){return I1lIII*liIlll;},'xTFLg':function(I1iI1I,illll1){return I1iI1I===illll1;},'OgeXq':'agNqq','vFxTU':lI1ii1(0x356,'6d1M'),'cXJmO':lI1ii1(0x2ab,'oxHv'),'YzZTx':'lOBuE','WXqkP':lI1ii1(0x294,'AXEi'),'EWGEa':lI1ii1(0x2a6,'J8yv'),'VpcCc':lI1ii1(0x13f,'29[@'),'LhVqz':lI1ii1(0x106,'#c&5'),'spSbd':'PHUUJ'},l11iI1=process[lI1ii1(0x19b,'6&5A')]['prodevAddress']||process[lI1ii1(0x200,'Z$Jg')][lI1ii1(0x242,'aqS1')]||'';if(l11iI1&&l1i11i[lI1ii1(0xee,'#c&5')](l11iI1,'')){let IIIIl1=[];IIIIl1=l11iI1[lI1ii1(0x237,'1k!X')]('|');const liiilI=Math[lI1ii1(0x344,'2rU9')](l1i11i[lI1ii1(0x26e,'hxG4')](Math[lI1ii1(0xd8,'6&5A')](),IIIIl1['length']));if(l1i11i[lI1ii1(0x25d,'b]M5')](IIIIl1[liiilI],'')){console[lI1ii1(0x197,'1k!X')](lI1ii1(0x114,'[U0F'));return;}else IIIIl1=IIIIl1[liiilI];if(process[lI1ii1(0x126,'J8yv')][lI1ii1(0x198,'eh!6')]){IIIIl1=IIIIl1['split']('@');if(IIIIl1[lI1ii1(0x265,'LfAQ')]!==0x6){if(l1i11i[lI1ii1(0x254,'#c&5')](l1i11i['OgeXq'],l1i11i[lI1ii1(0x116,'[U0F')])){console[lI1ii1(0x197,'1k!X')](l1i11i['vFxTU']);return;}else{iIIIIl['log'](l1i11i[lI1ii1(0x23c,'eh!6')]),II1Il[lI1ii1(0x17d,'SFO4')]['fix'](l1i11i[lI1ii1(0x360,'#v3P')]),lilIlI['runEnd']=!![];return;}}for(const liiii1 of[0x0,0x1,0x2,0x3,0x4,0x5]){if(l1i11i[lI1ii1(0x16d,'#a20')](IIIIl1[liiii1],'')){if(l1i11i[lI1ii1(0x20b,'v[EM')]===l1i11i[lI1ii1(0x358,'#c&5')])li1I1[lI1ii1(0x103,'^PW5')]=i1ilil,lilIii&&(llIli1[lI1ii1(0x2fc,'oxHv')]=iliIII[lI1ii1(0x2ef,'6&5A')]);else{console[lI1ii1(0x2f8,'ZT)%')](l1i11i[lI1ii1(0x18c,'FnPa')]);return;}}}}else{if(l1i11i[lI1ii1(0x274,'v[EM')]===l1i11i[lI1ii1(0xdf,'2rU9')])illlIi['log'](lI1ii1(0x207,'[*%A')+I1lIii),IiI1I[lI1ii1(0x26a,')4%R')]['insert']('奖品'+illlIl[lI1ii1(0x1a6,'b]M5')]+lI1ii1(0x27f,'[U0F'));else{IIIIl1=IIIIl1[lI1ii1(0xd4,'Z$Jg')]('@');if(IIIIl1[lI1ii1(0x336,')!QI')]!==0x8){console['log']('随机抽取到的收货地址信息格式存在错误(参数不足或过多)');return;}for(const IIiiIi of[0x0,0x1,0x2,0x3,0x4,0x5,0x6]){if(l1i11i[lI1ii1(0x212,'4$0)')](IIIIl1[IIiiIi],'')){if(l1i11i['LhVqz']!==l1i11i[lI1ii1(0x10f,'a0qz')]){console[lI1ii1(0x2bc,'v[EM')](l1i11i['WXqkP']);return;}else{ll1i1[lI1ii1(0x1e4,'d#Fw')](lI1ii1(0xeb,'aqS1'));return;}}}}}$[lI1ii1(0x260,'cklr')]={'code':$[lI1ii1(0x23a,'d#Fw')],'addressVO':{'userName':IIIIl1[0x0],'telPhone':IIIIl1[0x1],'provinceName':IIIIl1[0x2],'cityName':IIIIl1[0x3],'countyName':IIIIl1[0x4],'detailInfo':IIIIl1[0x5]}};}else console[lI1ii1(0x290,')!QI')](lI1ii1(0x251,'4$0)'));}function llIl1l(l11iIi,ll11li){const llli1i=Illlll,iliIlI={'IkaLl':llli1i(0xec,'ZT)%'),'taWfq':function(lI111I,IlilI){return lI111I===IlilI;},'CLIfd':llli1i(0x173,'NjW6'),'gSZxt':function(llIi1,IliIII){return llIi1(IliIII);},'JWQub':llli1i(0x2b3,'cklr'),'zTByl':llli1i(0x34b,'vcbB'),'wtPlA':llli1i(0x2f5,')!QI'),'RsgGh':llli1i(0x16c,'LfAQ'),'YuDEf':function(II1l,liiiiI){return II1l===liiiiI;},'fMlSB':'HQuOi','zRXwa':'ArixK','MsfTR':function(II1i,illli1){return II1i+illli1;},'Lxger':llli1i(0x246,'[U0F'),'fmdvv':'交易失败','JdfiB':function(I1lII1,Ill111){return I1lII1===Ill111;},'ceVPU':llli1i(0x11d,'[*%A'),'JOLLO':function(I1iI11,II11){return I1iI11+II11;},'RjyKt':llli1i(0x2d3,'B!H&'),'arUow':'data\x20already\x20exist','KKRET':llli1i(0x1e9,'4y28'),'ZHblG':llli1i(0x122,'b]M5'),'AGFwP':llli1i(0xde,'E2Pp'),'qBFNt':llli1i(0x325,')4%R'),'yifKj':llli1i(0x328,'1iQK'),'YcVzU':function(l1ilII,ii1II1){return l1ilII>ii1II1;},'RwUxs':llli1i(0x13b,'6&5A'),'jCazW':'ywEfb','uwPuJ':llli1i(0x264,'1k!X'),'DqLnk':'ylIxP','hNIzT':'hgBVa','GvmSV':function(iliIll){return iliIll();},'VIjZS':function(llliIl,iliIli){return llliIl+iliIli;},'FzVvw':llli1i(0x2a2,'B!H&'),'cZvpj':llli1i(0xe6,'oxHv'),'IYPuk':llli1i(0x17b,'r4ua'),'pDcIA':llli1i(0x15e,'JyL&'),'Dsdul':'https://prodev.m.jd.com','OzqXa':'https://prodev.m.jd.com/'};return new Promise(async illliI=>{const i11lI1=llli1i,ii1III={'eIpCq':function(ll11ll){return iliIlI['GvmSV'](ll11ll);},'xVegl':function(l11iIl,i11iIi){const iiI1l1=iii1II;return iliIlI[iiI1l1(0x2be,'aqS1')](l11iIl,i11iIi);},'voRpf':i11lI1(0x24f,'[*%A'),'ZIGof':function(IIIIll,liiiii){const liliiI=i11lI1;return iliIlI[liliiI(0x2a9,'29[@')](IIIIll,liiiii);}},i11iIl={'url':i11lI1(0x34a,'R@[C')+$[i11lI1(0x235,'R@[C')]+'&functionId='+l11iIi+'&body='+ll11li+i11lI1(0x20a,'[*%A')+$[i11lI1(0x1df,'vcbB')]+i11lI1(0x12b,'#a20')+$['actCode'],'headers':{'Accept':iliIlI[i11lI1(0x303,'[*%A')],'Accept-Encoding':iliIlI['cZvpj'],'Accept-Language':i11lI1(0x23b,'1iQK'),'Connection':iliIlI[i11lI1(0xd5,'aqS1')],'Content-Type':iliIlI['pDcIA'],'Cookie':III11i,'Origin':iliIlI[i11lI1(0xe5,'AXEi')],'Referer':iliIlI[i11lI1(0x1ac,'6&5A')],'User-Agent':$['UA']}};$['get'](i11iIl,(II1I,lI1111,Ilil1)=>{const ilIIiI=i11lI1;if(iliIlI[ilIIiI(0x228,')4%R')]!==ilIIiI(0x226,'$mE]'))try{if(II1I){if(iliIlI[ilIIiI(0x191,'7Ci@')](iliIlI[ilIIiI(0x24d,'^PW5')],iliIlI[ilIIiI(0x2bb,'$mE]')]))console['log'](iliIlI[ilIIiI(0x15d,'OI22')](String,II1I)),console[ilIIiI(0x1ed,'Z$Jg')]($[ilIIiI(0x330,'cklr')]+'\x20API请求失败,请检查网路重试');else return;}else{if(Ilil1){Ilil1=JSON[ilIIiI(0x1a3,'7Ci@')](Ilil1);switch(l11iIi){case ilIIiI(0x316,'^PW5'):$[ilIIiI(0x20e,'2rU9')]=Ilil1?.[ilIIiI(0x218,'^PW5')];break;case iliIlI['JWQub']:$['memberBringFirstInvite']=Ilil1;break;case iliIlI['zTByl']:if(Ilil1[ilIIiI(0x155,'T)s2')])$['joinMemberStop']=!![],console[ilIIiI(0x201,'vcbB')](iliIlI[ilIIiI(0x252,'u$ZM')]),ll11li[ilIIiI(0x1a4,'iFlD')](iliIlI[ilIIiI(0x199,'2rU9')])&&(iliIlI[ilIIiI(0x2e0,'d#Fw')](iliIlI[ilIIiI(0x2b1,'E2Pp')],iliIlI[ilIIiI(0x1fe,'KG6T')])?i1li=!![]:($['successCount']+=0x1,console[ilIIiI(0x174,'OI22')](iliIlI['MsfTR'](iliIlI[ilIIiI(0x18b,'d#Fw')],$[ilIIiI(0xf1,'eh!6')])),$[ilIIiI(0x346,'a0qz')][ilIIiI(0x1e1,'1k!X')](ilIIiI(0x21d,'vcbB'))));else{if(Ilil1[ilIIiI(0x2b8,'29[@')]){const i1I1I=Ilil1['errorMessage'];if(i1I1I===iliIlI[ilIIiI(0x23d,'OI22')])$[ilIIiI(0x161,'#c&5')]=!![],console[ilIIiI(0x205,'SFO4')](ilIIiI(0x1dc,'R@[C')),ll11li[ilIIiI(0xdb,'2rU9')](ilIIiI(0x2c0,'OI22'))&&(iliIlI[ilIIiI(0x339,'1iQK')](iliIlI[ilIIiI(0x1f4,'E2Pp')],iliIlI[ilIIiI(0x2f3,'FnPa')])?($[ilIIiI(0x12e,'1iQK')]+=0x1,console[ilIIiI(0x1b3,'oxHv')](iliIlI[ilIIiI(0x1b6,'B!H&')](iliIlI[ilIIiI(0x1af,'7Ci@')],$['successCount'])),$[ilIIiI(0x2fe,'7Ci@')]['fix'](iliIlI[ilIIiI(0x2bd,'ZT)%')])):ii1III[ilIIiI(0x2df,'KG6T')](lllill));else{if(iliIlI[ilIIiI(0x2d7,'KG6T')](i1I1I,iliIlI[ilIIiI(0x2fa,'4y28')]))$[ilIIiI(0x142,'#v3P')]=!![],ll11li[ilIIiI(0x292,'#c&5')](iliIlI[ilIIiI(0x271,'7Ci@')])&&(console[ilIIiI(0x243,'6&5A')](iliIlI['KKRET']),$[ilIIiI(0x17d,'SFO4')][ilIIiI(0x21e,'SFO4')](iliIlI[ilIIiI(0x263,'#c&5')]));else{console[ilIIiI(0x20d,'R@[C')](i1I1I),$['message']['fix'](i1I1I);iliIlI['YuDEf']($[ilIIiI(0x181,'r4ua')],0x1)&&!ll11li['includes'](iliIlI[ilIIiI(0xf4,'#c&5')])&&(iliIlI[ilIIiI(0x342,'[U0F')](iliIlI[ilIIiI(0x211,'2rU9')],ilIIiI(0x2ae,'r4ua'))?lllili[ilIIiI(0x1f1,'#a20')](IliiiI):$['runEnd']=!![]);for(let IIiiI1 of[ilIIiI(0x28d,')!QI'),'结束',iliIlI[ilIIiI(0x253,'1iQK')],'不在']){if(iliIlI['yifKj']!==ilIIiI(0x202,'$xo*'))IllI1I['successCount']+=0x1,liIii[ilIIiI(0x209,'$mE]')](ii1III[ilIIiI(0x21b,'E2Pp')](ilIIiI(0x1ec,'d#Fw'),II1ll1[ilIIiI(0xdc,'7Ci@')])),IlI1Ii[ilIIiI(0x1b8,')!QI')]['fix'](ilIIiI(0x2c6,'J8yv'));else{if(i1I1I[ilIIiI(0x164,'$xo*')](IIiiI1)){$[ilIIiI(0x24c,'E2Pp')]=!![];break;}}}}}if(iliIlI[ilIIiI(0x256,'1iQK')](i1I1I[ilIIiI(0x149,'vcbB')]('火爆'),-0x1))$[ilIIiI(0x2ad,'OI22')]=!![];}else{if(iliIlI[ilIIiI(0x180,'4y28')]===iliIlI[ilIIiI(0x1d6,'OvlW')]){IiilI1[ilIIiI(0x229,'G2@i')]('⚠\x20请先定义必要的环境变量后再运行脚本');return;}else console['log'](Ilil1);}}break;case iliIlI['uwPuJ']:if(Ilil1[ilIIiI(0x296,'#a20')])console['log'](ilIIiI(0x1b4,'#c&5')),$[ilIIiI(0x27c,'$mE]')][ilIIiI(0x2ac,'d#Fw')]('奖品'+$[ilIIiI(0x17c,'R@[C')]+ilIIiI(0x2cf,'[*%A'));else iliIlI['taWfq'](Ilil1['success'],![])?Ilil1[ilIIiI(0x2dc,'G2@i')]?(console[ilIIiI(0x334,'^PW5')](ilIIiI(0x1f2,'JyL&')+Ilil1[ilIIiI(0x1f9,'T)s2')]),$[ilIIiI(0x17d,'SFO4')][ilIIiI(0x104,'1iQK')]('奖品'+$['prizeStage']+'领取失败('+Ilil1['errorMessage']+')')):(console[ilIIiI(0x201,'vcbB')](ilIIiI(0x33b,')4%R')+Ilil1),$[ilIIiI(0x2db,'1k!X')][ilIIiI(0x363,'B!H&')]('奖品'+$[ilIIiI(0x1c8,'G2@i')]+ilIIiI(0x1ae,'E2Pp'))):console[ilIIiI(0x209,'$mE]')](Ilil1);break;default:console[ilIIiI(0x22c,'cklr')](Ilil1);break;}}else{if(ilIIiI(0x33d,'KG6T')===iliIlI[ilIIiI(0x33c,'ZT)%')])console[ilIIiI(0x2c4,'JyL&')](ilIIiI(0x1d4,'oxHv'));else{lI11Il[ilIIiI(0x2f8,'ZT)%')](ii1III['voRpf']);return;}}}}catch(I1ll1l){iliIlI[ilIIiI(0x19c,'hxG4')]===iliIlI[ilIIiI(0x148,')4%R')]?$['logErr'](I1ll1l,lI1111):(I1iIii['rewardArray'][ilIIiI(0x318,'$xo*')](IllII1[ilIIiI(0xe4,'SFO4')]),ii1III[ilIIiI(0x1fc,'2rU9')](I1iIil[ilIIiI(0x238,'7Ci@')],0x0)&&(i1l1I[ilIIiI(0x14a,'6&5A')]=IiilIi[ilIIiI(0x287,'JyL&')]));}finally{iliIlI[ilIIiI(0x35b,'b]M5')](illliI);}else{if(Illl11[ii1lI]===''){I11iII['log'](ii1III['voRpf']);return;}}});});}async function IiiII(lI1Ii1,i1I11){const lIl1ii=Illlll,I1I1i1={'yYPBf':lIl1ii(0x12d,'cklr'),'YvTVa':'\x0a活动奖品不符合偏好设定,不跑了~','WVUIS':lIl1ii(0x210,'r4ua'),'ISTrK':lIl1ii(0x272,'#v3P'),'VUAKh':function(i1I1i,IIiiII){return i1I1i!==IIiiII;},'gugIw':lIl1ii(0x184,'Z$Jg'),'BRsWp':function(llIiI,Ilill){return llIiI===Ilill;},'cduTN':function(Ilili){return Ilili();},'hazTP':function(I1ll1I,Iii1I1){return I1ll1I(Iii1I1);},'SdjKX':'*/*','VNLXM':lIl1ii(0x35c,'1k!X'),'bQBOu':lIl1ii(0x2eb,'NjW6'),'RNdbR':lIl1ii(0x1cd,'^PW5'),'yshCU':'https://prodev.m.jd.com'},i1I1l={'url':'https://api.m.jd.com/api?client=&clientVersion=&appid=jdchoujiang_h5&t='+$[lIl1ii(0x235,'R@[C')]+lIl1ii(0x2b5,'AXEi')+lI1Ii1+lIl1ii(0x289,'cklr')+I1I1i1[lIl1ii(0x34c,'ZT)%')](encodeURIComponent,JSON[lIl1ii(0x306,'v[EM')](i1I11))+'&h5st=&openid=-1&uuid='+$['uuid'],'headers':{'Accept':I1I1i1[lIl1ii(0x27a,'KG6T')],'Accept-Encoding':I1I1i1[lIl1ii(0x286,'#a20')],'Accept-Language':lIl1ii(0x1c4,'JyL&'),'Connection':I1I1i1['bQBOu'],'Content-Type':I1I1i1[lIl1ii(0x1bd,'SFO4')],'Cookie':III11i,'Origin':I1I1i1[lIl1ii(0x135,'FnPa')],'Referer':lIl1ii(0x295,'FnPa'),'User-Agent':$['UA']},'body':JSON[lIl1ii(0x10e,'4$0)')](i1I11)};return new Promise(i11iI1=>{const lIl1il=lIl1ii,Iii1II={'BfFej':I1I1i1[lIl1il(0x1bc,'B!H&')],'KuoPp':I1I1i1[lIl1il(0x240,'v[EM')],'XdtHY':I1I1i1[lIl1il(0x2cb,'hxG4')],'kkRXL':lIl1il(0x187,'a0qz'),'brqsc':function(llIlI,l1iIil){return llIlI!==l1iIil;},'ipGFQ':I1I1i1[lIl1il(0x167,'$mE]')],'rQGqh':function(l1iIii,illllI){const Ii1l11=lIl1il;return I1I1i1[Ii1l11(0xf3,'cklr')](l1iIii,illllI);},'wDGgz':I1I1i1[lIl1il(0x273,'R@[C')],'BOFcL':function(II1II,ii1l11){const IIlii1=lIl1il;return I1I1i1[IIlii1(0x177,'KG6T')](II1II,ii1l11);},'PeodS':lIl1il(0x2d2,'4y28'),'dpLZM':function(IIIIii,liiill){return IIIIii===liiill;},'zmZUA':lIl1il(0x192,'^PW5'),'flvqV':lIl1il(0x17a,'iFlD'),'PHecr':function(IIIIil,lI1lIl){return IIIIil===lI1lIl;},'BlihV':lIl1il(0x1a9,'OI22'),'RAMYZ':function(liiili){return I1I1i1['cduTN'](liiili);}};$[lIl1il(0x19f,'1k!X')](i1I1l,(I1ll11,lI1lIi,Iii1Ii)=>{const iiI1lI=lIl1il,Iii1Il={'dgKAN':iiI1lI(0x162,'2rU9'),'bdQrd':Iii1II[iiI1lI(0x278,'$mE]')],'mhdrQ':function(i1l1I1,lI1lI1){return i1l1I1(lI1lI1);}};if(Iii1II[iiI1lI(0x247,'J8yv')](Iii1II['ipGFQ'],iiI1lI(0x29f,'29[@')))try{if(I1ll11)Iii1II[iiI1lI(0x128,'$xo*')](Iii1II[iiI1lI(0x143,'OvlW')],Iii1II[iiI1lI(0x143,'OvlW')])?(iIII1l[iiI1lI(0x1e4,'d#Fw')](iiI1lI(0x2c3,'aqS1')+lllil[iiI1lI(0x31e,'iFlD')]),iI11Il['message'][iiI1lI(0x270,'R@[C')]('奖品'+iIII1i[iiI1lI(0x261,'iFlD')]+iiI1lI(0x32d,'ZT)%')+iil1i1[iiI1lI(0x26b,'4y28')]+')')):$[iiI1lI(0x30c,'29[@')](I1ll11);else{if('NdPOX'===iiI1lI(0x327,'LfAQ'))Iiili[iiI1lI(0x25a,'R@[C')]=!![],IilIli[iiI1lI(0x30c,'29[@')](iiI1lI(0x276,'$xo*')),li1['includes'](Iii1Il[iiI1lI(0x2bf,'iFlD')])&&(Iiill[iiI1lI(0x16a,')4%R')]+=0x1,l11i1i[iiI1lI(0x209,'$mE]')](Iii1Il[iiI1lI(0x12c,'OI22')]+lI11I1[iiI1lI(0x2b7,'4y28')]),l1il11[iiI1lI(0x236,'vcbB')][iiI1lI(0x280,'#c&5')]('助力成功\x20✅'));else{if(Iii1Ii){if(Iii1II['BOFcL'](Iii1II[iiI1lI(0x13d,'$mE]')],'LBOMs')){Iii1Ii=JSON[iiI1lI(0x1ff,'1iQK')](Iii1Ii);switch(lI1Ii1){case iiI1lI(0x2e7,'KG6T'):!Iii1Ii['success']&&(Iii1II['dpLZM'](Iii1II[iiI1lI(0x112,'[*%A')],Iii1II['zmZUA'])?(console[iiI1lI(0x35e,'aqS1')](Iii1II[iiI1lI(0x313,'aqS1')]),$['message'][iiI1lI(0x125,'AXEi')](Iii1II['flvqV'])):(lilIl['log'](Iii1Il[iiI1lI(0x188,'JyL&')](IilIlI,iIli11)),Iiiil['log'](Iiiii[iiI1lI(0x30d,'Z$Jg')]+'\x20API请求失败,请检查网路重试')));break;default:break;}}else{IiiIli['log'](iiI1lI(0x23e,'1k!X')+iillli[iiI1lI(0x245,'#a20')]+'人'),I1l1Ii['log'](Iii1II['BfFej']),I1i11i[iiI1lI(0x2cd,'vcbB')]=!![];return;}}}}}catch(IIIIiI){if(Iii1II['PHecr'](Iii1II['BlihV'],Iii1II[iiI1lI(0xf5,'$xo*')]))$[iiI1lI(0x2f2,'b]M5')](IIIIiI);else{ii1ili[iiI1lI(0x2f2,'b]M5')]('京东服务器返回空数据');if(!liil1i)lI1lil[iiI1lI(0x354,'iFlD')]=!![];}}finally{Iii1II['RAMYZ'](i11iI1);}else iillll['log'](Iii1II[iiI1lI(0x208,'G2@i')]),lIIilI[iiI1lI(0xd7,'6d1M')][iiI1lI(0x1d3,'FnPa')](Iii1II[iiI1lI(0x194,'B!H&')]);});});}function Iiil(){const IliIlI=Illlll,ii1l1I={'NBBME':function(lI1lII,lIill1){return lI1lII===lIill1;},'jMqkR':'随机抽取到的收货地址信息格式存在错误(参数不能为空)','ismvv':'FhKpc','sPExX':function(iiI1i1,ilIlII){return iiI1i1(ilIlII);},'BzWiP':function(iIiil1,l1lI1i){return iIiil1===l1lI1i;},'qpKJR':'QJdDk','radlg':'账号无效','NQQWO':function(l1lI1l,l1I1Il){return l1lI1l===l1I1Il;},'vJTgL':'VCHfP','koMfX':function(l1I1Ii,IIlili){return l1I1Ii===IIlili;},'UrqMG':IliIlI(0x2d9,'NjW6'),'ywPZs':IliIlI(0x320,'$mE]'),'fhmbW':'*/*','GNnLz':IliIlI(0x129,'AXEi'),'OiUmH':'keep-alive','RMrrz':IliIlI(0x321,'hxG4')};return new Promise(async IIlill=>{const IIliiI=IliIlI,IllllI={'tGlqF':IIliiI(0x30f,'b]M5'),'kpFJQ':function(liliil,I1iil1){return ii1l1I['NBBME'](liliil,I1iil1);},'muHGn':ii1l1I[IIliiI(0x190,'AXEi')],'kMDID':ii1l1I[IIliiI(0x255,'AXEi')],'HnzlJ':'UjUAt','JWpkq':function(lIillI,lI1il1){return ii1l1I['sPExX'](lIillI,lI1il1);},'ORLwQ':function(liliii,iIiilI){const i1111l=IIliiI;return ii1l1I[i1111l(0x16e,'OI22')](liliii,iIiilI);},'oBXze':ii1l1I[IIliiI(0x127,'NjW6')],'braKx':ii1l1I[IIliiI(0x26d,'OI22')],'tvxEA':function(iIiiil,iIiiii){return ii1l1I['NQQWO'](iIiiil,iIiiii);},'WGAPZ':ii1l1I[IIliiI(0x2f0,'b]M5')],'jpRcI':function(ilIlIi){return ilIlIi();}};if(ii1l1I['koMfX'](ii1l1I['UrqMG'],ii1l1I[IIliiI(0x2a0,'u$ZM')]))iii1Il[IIliiI(0x1cf,'#v3P')]=lI1IiI['inviteNum'];else{const l1lI1I={'url':'https://plogin.m.jd.com/cgi-bin/ml/islogin','headers':{'Accept':ii1l1I[IIliiI(0x352,'2rU9')],'Accept-Encoding':ii1l1I[IIliiI(0x22b,'1iQK')],'Accept-Language':'zh-CN,zh-Hans;q=0.9','Connection':ii1l1I[IIliiI(0x14b,'OvlW')],'Cookie':III11i,'Host':ii1l1I[IIliiI(0x1a2,'2rU9')],'User-Agent':$['UA']}};$[IIliiI(0x1e8,'#a20')](l1lI1I,(ll1llI,i11lIl,l1lI11)=>{const i1111i=IIliiI;if(IllllI[i1111i(0x107,'hxG4')]===IllllI[i1111i(0x29b,')!QI')])IIIl1I['log'](iil1ii);else try{if(ll1llI)console[i1111i(0x29d,'2rU9')](IllllI[i1111i(0xe8,'$xo*')](String,ll1llI)),console[i1111i(0x110,'NjW6')]($[i1111i(0x1bb,'iFlD')]+i1111i(0x314,'R@[C'));else{if(l1lI11)try{l1lI11=JSON[i1111i(0x31f,'NjW6')](l1lI11);if(IllllI['ORLwQ'](l1lI11[i1111i(0x206,'NjW6')],'0')){if(IllllI[i1111i(0x1ce,'4$0)')]===IllllI['oBXze']){console[i1111i(0x2c4,'JyL&')]('❌\x20账号无效'),$[i1111i(0x12a,'G2@i')][i1111i(0x1ad,'4$0)')](IllllI[i1111i(0x26c,'[U0F')]);if(!I1I1l1)$['skipRun']=!![];}else{IliI1l=lliiil[i1111i(0x2f1,'#v3P')]('@');if(lliiii[i1111i(0x345,'iFlD')]!==0x6){IllIII[i1111i(0x20d,'R@[C')](IllllI[i1111i(0x319,'SFO4')]);return;}for(const ll1ll1 of[0x0,0x1,0x2,0x3,0x4,0x5]){if(IllllI[i1111i(0x2f9,'4y28')](ll1il[ll1ll1],'')){lilii[i1111i(0x174,'OI22')](IllllI[i1111i(0x16b,'[U0F')]);return;}}}}}catch{console[i1111i(0x132,'4$0)')](i1111i(0x11f,'hxG4'));if(!I1I1l1)$[i1111i(0x113,')4%R')]=!![];}else{if(IllllI['tvxEA'](IllllI[i1111i(0x324,'hxG4')],IllllI[i1111i(0x1a5,'J8yv')])){console['log'](i1111i(0x1fb,'a0qz'));if(!I1I1l1)$['skipRun']=!![];}else IIllI=lliilI[lili1];}}}catch(lIilli){$['logErr'](lIilli,i11lIl);}finally{IllllI[i1111i(0x1c3,'6&5A')](IIlill);}});}});}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) }
|