faker3/jd_dplh0710.js
2024-07-10 16:06:28 +08:00

21 lines
54 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

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

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

/*
活动名称:大牌联合(开卡)
环境变量:
jd_dplh_viewShop // 是否true/false做浏览任务默认不做
jd_dplh_addCart // 是否true/false做加购任务默认不做
jd_dplh_draw // 抽奖次数,变量暂时无效
jd_dplh_blacklist // 黑名单 用&隔开 pin值
jd_dplh_Notify // 是否通知true/false默认不通知
jd_dplh_break // IP限制后继续执行true/false
实物奖品需要填写地址变量才行,具体请查看 WIki
cron "1 1 1 1 *" script-path=jd_dplh.js
*/
const $ = new Env('大牌联合0710')
const _0x1a39f1=_0x26b2;function _0x26b2(_0x582198,_0x190669){const _0x3b85e1=_0x3b85();return _0x26b2=function(_0x26b278,_0x5b79b2){_0x26b278=_0x26b278-0x7b;let _0x3ac312=_0x3b85e1[_0x26b278];if(_0x26b2['FuXlYs']===undefined){var _0x5078e7=function(_0x18bcbc){const _0x1498ad='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5c3ea0='',_0xd3b24b='';for(let _0x77f8d4=0x0,_0x186519,_0x2ba80f,_0x28d975=0x0;_0x2ba80f=_0x18bcbc['charAt'](_0x28d975++);~_0x2ba80f&&(_0x186519=_0x77f8d4%0x4?_0x186519*0x40+_0x2ba80f:_0x2ba80f,_0x77f8d4++%0x4)?_0x5c3ea0+=String['fromCharCode'](0xff&_0x186519>>(-0x2*_0x77f8d4&0x6)):0x0){_0x2ba80f=_0x1498ad['indexOf'](_0x2ba80f);}for(let _0x552672=0x0,_0x5b5b8d=_0x5c3ea0['length'];_0x552672<_0x5b5b8d;_0x552672++){_0xd3b24b+='%'+('00'+_0x5c3ea0['charCodeAt'](_0x552672)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xd3b24b);};const _0x147f01=function(_0x3f95fb,_0x1c1103){let _0xb8d7b8=[],_0x42cf50=0x0,_0x403a12,_0x3595a5='';_0x3f95fb=_0x5078e7(_0x3f95fb);let _0x433ff7;for(_0x433ff7=0x0;_0x433ff7<0x100;_0x433ff7++){_0xb8d7b8[_0x433ff7]=_0x433ff7;}for(_0x433ff7=0x0;_0x433ff7<0x100;_0x433ff7++){_0x42cf50=(_0x42cf50+_0xb8d7b8[_0x433ff7]+_0x1c1103['charCodeAt'](_0x433ff7%_0x1c1103['length']))%0x100,_0x403a12=_0xb8d7b8[_0x433ff7],_0xb8d7b8[_0x433ff7]=_0xb8d7b8[_0x42cf50],_0xb8d7b8[_0x42cf50]=_0x403a12;}_0x433ff7=0x0,_0x42cf50=0x0;for(let _0x1b3fce=0x0;_0x1b3fce<_0x3f95fb['length'];_0x1b3fce++){_0x433ff7=(_0x433ff7+0x1)%0x100,_0x42cf50=(_0x42cf50+_0xb8d7b8[_0x433ff7])%0x100,_0x403a12=_0xb8d7b8[_0x433ff7],_0xb8d7b8[_0x433ff7]=_0xb8d7b8[_0x42cf50],_0xb8d7b8[_0x42cf50]=_0x403a12,_0x3595a5+=String['fromCharCode'](_0x3f95fb['charCodeAt'](_0x1b3fce)^_0xb8d7b8[(_0xb8d7b8[_0x433ff7]+_0xb8d7b8[_0x42cf50])%0x100]);}return _0x3595a5;};_0x26b2['kERgEc']=_0x147f01,_0x582198=arguments,_0x26b2['FuXlYs']=!![];}const _0x177635=_0x3b85e1[0x0],_0x39dccf=_0x26b278+_0x177635,_0x47ae5a=_0x582198[_0x39dccf];return!_0x47ae5a?(_0x26b2['xQGCEU']===undefined&&(_0x26b2['xQGCEU']=!![]),_0x3ac312=_0x26b2['kERgEc'](_0x3ac312,_0x5b79b2),_0x582198[_0x39dccf]=_0x3ac312):_0x3ac312=_0x47ae5a,_0x3ac312;},_0x26b2(_0x582198,_0x190669);}(function(_0x4e0941,_0x2d5910){const _0x50b7e3=_0x26b2,_0xafac74=_0x4e0941();while(!![]){try{const _0x1fbac5=-parseInt(_0x50b7e3(0xd6,'i1uE'))/0x1*(-parseInt(_0x50b7e3(0x199,'SZqT'))/0x2)+parseInt(_0x50b7e3(0x2c6,'hUwF'))/0x3+-parseInt(_0x50b7e3(0xd8,'aBd&'))/0x4+-parseInt(_0x50b7e3(0xc7,'aBd&'))/0x5*(parseInt(_0x50b7e3(0x93,'23aE'))/0x6)+parseInt(_0x50b7e3(0x262,'s1R6'))/0x7*(-parseInt(_0x50b7e3(0x167,'IZ4F'))/0x8)+parseInt(_0x50b7e3(0x94,'fVf7'))/0x9*(parseInt(_0x50b7e3(0xa2,'iL4x'))/0xa)+-parseInt(_0x50b7e3(0x81,'pkKu'))/0xb*(-parseInt(_0x50b7e3(0x17f,'i1uE'))/0xc);if(_0x1fbac5===_0x2d5910)break;else _0xafac74['push'](_0xafac74['shift']());}catch(_0x3a4735){_0xafac74['push'](_0xafac74['shift']());}}}(_0x3b85,0xaae45));const jdCookie=require('./jdCookie'),common=require(_0x1a39f1(0x174,'fVf7')),notify=require(_0x1a39f1(0x10f,']dap')),getToken=require(_0x1a39f1(0x268,'AYg!')),CryptoJS=require(_0x1a39f1(0x17c,'iqJV')),activityUrl=process['env'][_0x1a39f1(0x129,'g8*[')]||_0x1a39f1(0x112,'20e5'),joinMember=process[_0x1a39f1(0x281,'xxsE')]['jd_dplh_opencard']==='true',dplh_viewShop=process[_0x1a39f1(0xd9,'hUwF')]['jd_dplh_viewShop']==='true',dplh_AddCart=process[_0x1a39f1(0x2bf,'0qMV')]['jd_dplh_addCart']==='true',dplh_draw=process[_0x1a39f1(0x221,'iqJV')][_0x1a39f1(0xb8,'UNPY')]||0x5,dplh_wait=process['env'][_0x1a39f1(0x92,'bXOA')]||0x1,isNotify=process[_0x1a39f1(0x10b,'$E2%')][_0x1a39f1(0x1c7,'AYg!')]===_0x1a39f1(0x1bd,'(QKo'),hotbreak=process[_0x1a39f1(0x291,'J3iB')][_0x1a39f1(0x136,']dap')]===_0x1a39f1(0x271,'UlK6');let waitTimes=parseInt(dplh_wait)*0x3e8;const prize_type={'jdMarket':'[京豆]','coin':'[金币]','point':'[积分]','integral':_0x1a39f1(0x87,'(QKo'),'goods':'[实物]','product':'[广告]','coupon':'[优惠券]','chance':'[次数]','card':'[卡片]'};let cookie='',originCookie='',cookiesArr=Object[_0x1a39f1(0x10c,'0GSo')](jdCookie)['map'](_0x147f01=>jdCookie[_0x147f01])[_0x1a39f1(0x290,'Hwtq')](_0x18bcbc=>_0x18bcbc);!cookiesArr[0x0]&&($[_0x1a39f1(0x7c,'20e5')]($[_0x1a39f1(0x1f1,'dnJT')],'【提示】请先获取Cookie'),process[_0x1a39f1(0x151,'dnJT')](0x1));$[_0x1a39f1(0x212,'(QKo')]=process['env'][_0x1a39f1(0x2b0,'C#hj')]||'',getBlacklist(),$[_0x1a39f1(0x273,'vCrD')]=[],$[_0x1a39f1(0x218,'ZxSh')]=[],!(async()=>{const _0x2f51fb=_0x1a39f1;console[_0x2f51fb(0x26f,'!q5N')](_0x2f51fb(0xf5,'elVi')+$['name']+_0x2f51fb(0x2b5,']dap')),console[_0x2f51fb(0x2c1,'v3aD')](_0x2f51fb(0x241,'v3aD')),console[_0x2f51fb(0x284,'pkKu')]('代理开关:\x20['+common[_0x2f51fb(0xec,'c)SZ')]()+']'),console[_0x2f51fb(0x8c,'iL4x')](_0x2f51fb(0x14c,'ZxSh')+(waitTimes===0x0?'无':waitTimes/0x3e8+'秒')+_0x2f51fb(0x82,'20e5')),console['log'](_0x2f51fb(0x247,']dap')+(dplh_viewShop?'开启':'关闭')+']'),console['log']('加购任务:\x20['+(dplh_AddCart?'开启':'关闭')+']'),console[_0x2f51fb(0xe3,'UlK6')]('IP限制后继续执行:\x20['+(hotbreak?'开启':'关闭')+']'),console[_0x2f51fb(0xed,')k[]')](_0x2f51fb(0x1c8,'BQlJ')+$[_0x2f51fb(0x287,'c)SZ')]+_0x2f51fb(0x26e,'pkKu'));if(!activityUrl){console[_0x2f51fb(0x1ee,'0GSo')](_0x2f51fb(0xc9,'g8*['));return;}authorCodeList=await getAuthorCodeList(_0x2f51fb(0x2cf,'hUwF'));authorCodeList?(console[_0x2f51fb(0x18d,'dnJT')]('\x0a服务状态正常活动获取成功'),$[_0x2f51fb(0x272,'elVi')]=authorCodeList[random(0x0,authorCodeList['length'])]):($[_0x2f51fb(0x27a,'chXE')]='',console['log']('\x0a服务状态异常请检查网络是否正常\x0a'));$[_0x2f51fb(0x113,'3rmh')]=activityUrl;$[_0x2f51fb(0x1f3,'C#hj')]&&($[_0x2f51fb(0x259,'20e5')]['includes'](_0x2f51fb(0x1bc,'SZqT'))?$[_0x2f51fb(0x24b,'iqJV')]=common[_0x2f51fb(0x1f0,'[vCU')](activityUrl,'actId'):$[_0x2f51fb(0xce,'20e5')]=$[_0x2f51fb(0x1f7,'BQlJ')]);$['hostname']=_0x2f51fb(0xca,'elVi'),$['baseUrl']=_0x2f51fb(0xfd,'jqQ3')+$[_0x2f51fb(0x122,'AYg!')];if(!$[_0x2f51fb(0x2b1,'s1R6')]){console[_0x2f51fb(0x1b4,'g8*[')](_0x2f51fb(0x1b5,')Uo*'));return;}notify['config']({'title':$['name']}),$[_0x2f51fb(0x9b,'hUwF')]=_0x2f51fb(0x26b,']dap'),$['inviteNick']=$[_0x2f51fb(0x272,'elVi')];const _0x1498ad=process[_0x2f51fb(0x291,'J3iB')][_0x2f51fb(0x2a6,'7#vN')]?process[_0x2f51fb(0x2ad,'c)SZ')][_0x2f51fb(0x1a3,'BQlJ')]:'';if(_0x1498ad&&_0x1498ad!=''){const _0x5c3ea0=_0x1498ad[_0x2f51fb(0x19d,'3rmh')]('|');$[_0x2f51fb(0x120,'23aE')]=Math['floor'](Math[_0x2f51fb(0x1c6,'IZ4F')]()*_0x5c3ea0[_0x2f51fb(0xeb,'dnJT')]);if(_0x5c3ea0[$[_0x2f51fb(0x15d,'hUwF')]]==='')return console['log'](_0x2f51fb(0x1ff,'E4Q3')),![];const [_0xd3b24b,_0x77f8d4,_0x186519,_0x2ba80f,_0x28d975,_0x552672]=_0x5c3ea0[$[_0x2f51fb(0x283,'s1R6')]][_0x2f51fb(0x193,'C#hj')]('@');for(let _0x5b5b8d=0x0;_0x5b5b8d<0x6;_0x5b5b8d++){if(_0x5c3ea0[_0x5b5b8d]==='')return console[_0x2f51fb(0x18d,'dnJT')](_0x2f51fb(0x164,'g8*[')),![];}$['receiver']=_0xd3b24b,$[_0x2f51fb(0x27c,'i1uE')]=_0x77f8d4,$[_0x2f51fb(0xab,')Uo*')]=_0x186519,$['city']=_0x2ba80f,$[_0x2f51fb(0x296,'xxsE')]=_0x28d975,$[_0x2f51fb(0x242,'dnJT')]=_0x552672;}for(let _0x3f95fb=0x0;_0x3f95fb<cookiesArr['length'];_0x3f95fb++){$['index']=_0x3f95fb+0x1,cookie=cookiesArr[_0x3f95fb],originCookie=cookiesArr[_0x3f95fb],common[_0x2f51fb(0xf7,'i1uE')](originCookie),$['UserName']=decodeURIComponent(common[_0x2f51fb(0x243,'UlK6')](cookie,_0x2f51fb(0x160,'(QKo'))),$['UA']=common[_0x2f51fb(0x22d,']dap')]($['UserName']),$[_0x2f51fb(0x1d9,'ZxSh')]=notify[_0x2f51fb(0x145,'s1R6')]($[_0x2f51fb(0xf2,'xxsE')],$[_0x2f51fb(0x12a,'6la&')]),$['nickName']='',console[_0x2f51fb(0x22e,'23aE')](_0x2f51fb(0x15a,'s1R6')+$['index']+'】'+($[_0x2f51fb(0x24e,'J3iB')]||$['UserName'])+_0x2f51fb(0x1ea,'E4Q3')),await Main(),common[_0x2f51fb(0x1dd,'23aE')]();if($['outFlag']||$[_0x2f51fb(0x285,'J3iB')])break;}if($[_0x2f51fb(0x17b,'3rmh')]['length']>0x0){let _0x1c1103=_0x2f51fb(0x22f,')k[]')+$['errMsgPin']['join']('&')+'\x22';console[_0x2f51fb(0x1b4,'g8*[')](_0x1c1103);}if($[_0x2f51fb(0xd1,'BQlJ')][_0x2f51fb(0x169,'UNPY')]>0x0){let _0xb8d7b8=_0x2f51fb(0x90,']dap')+$[_0x2f51fb(0x20a,'pkKu')][_0x2f51fb(0x235,'bAvd')]('&')+'\x22';console[_0x2f51fb(0xac,'7#vN')](_0xb8d7b8);}isNotify&&notify[_0x2f51fb(0x204,'UlK6')]()&&(notify['appendContent'](_0x2f51fb(0x224,'s1R6')+$['activityId']),await notify[_0x2f51fb(0x1cd,'fVf7')]());})()[_0x1a39f1(0x200,'IZ4F')](_0x42cf50=>$[_0x1a39f1(0x1b3,'XmS[')](_0x42cf50))[_0x1a39f1(0x142,'g8*[')](()=>$[_0x1a39f1(0x9a,'elVi')]());async function Main(){const _0x567fbd=_0x1a39f1;try{$[_0x567fbd(0x245,')k[]')]=![],$[_0x567fbd(0x282,'aBd&')]=![],$[_0x567fbd(0x96,'0GSo')]='';if($['runEnd']||$[_0x567fbd(0x131,'J3iB')])return;$[_0x567fbd(0x1c2,')k[]')]=await getToken(originCookie,$[_0x567fbd(0x2c0,'aBd&')]);if(!$[_0x567fbd(0x229,'BQlJ')]){console[_0x567fbd(0x2b2,'6la&')](_0x567fbd(0x17a,']dap')),$[_0x567fbd(0x13c,'20e5')][_0x567fbd(0x227,'J3iB')](_0x567fbd(0x158,')k[]'));return;}$[_0x567fbd(0x25a,'6la&')]='',await sendRequest(_0x567fbd(0x260,'7#vN'));if($[_0x567fbd(0x135,')k[]')]==''){console['log'](_0x567fbd(0x12f,'elVi'));return;}if($[_0x567fbd(0x252,'g8*[')]||$['outFlag']||$[_0x567fbd(0x1e3,'fVf7')])return;if(!$[_0x567fbd(0x2ab,'BQlJ')]){$[_0x567fbd(0x162,'[vCU')]=!![];const _0x403a12=$[_0x567fbd(0x24a,'N!jo')](_0x567fbd(0x2c2,'SZqT'),$[_0x567fbd(0x178,'i1uE')]),_0x3595a5=$[_0x567fbd(0x2c5,'3rmh')]('yyyy-MM-dd\x20HH:mm',$['endTime']);console['log'](_0x567fbd(0x11a,'3rmh')+$[_0x567fbd(0x119,'6la&')]+_0x567fbd(0x17e,'UNPY')+_0x403a12+_0x567fbd(0xf9,'bAvd')+_0x3595a5),notify[_0x567fbd(0x1e6,'chXE')](_0x567fbd(0x265,'chXE')+$[_0x567fbd(0x21d,'3rmh')]+_0x567fbd(0xe0,'cZUp')+_0x403a12+'\x0a结束时间'+_0x3595a5);const _0x433ff7=Date['now']();if($[_0x567fbd(0x7b,'6la&')]&&_0x433ff7<$[_0x567fbd(0x10e,'cZUp')]){console[_0x567fbd(0x2ba,'20e5')]('活动将在\x20'+_0x403a12+_0x567fbd(0x266,'!q5N')),$['message'][_0x567fbd(0x16f,'aBd&')](_0x567fbd(0x1cc,'ZxSh')+_0x403a12),$['runEnd']=!![];return;}if($[_0x567fbd(0x97,'chXE')]&&_0x433ff7>$[_0x567fbd(0x298,'hUwF')]){console[_0x567fbd(0x26d,'BQlJ')](_0x567fbd(0xea,'3rmh')+_0x3595a5+_0x567fbd(0x1ab,'elVi')),$[_0x567fbd(0x197,'fVf7')][_0x567fbd(0x196,'UNPY')](_0x567fbd(0x2cc,'bAvd')+_0x3595a5),$[_0x567fbd(0x1d2,'fVf7')]=!![];return;}}console[_0x567fbd(0x8d,'bAvd')](_0x567fbd(0x213,'3rmh')+$['MixNick']+']\x0a');$[_0x567fbd(0x7e,'[vCU')]&&(await sendRequest('绑定'),await $['wait'](parseInt(waitTimes*0x1+0x64,0xa)));if($[_0x567fbd(0x18a,'elVi')]||$[_0x567fbd(0x116,'ZxSh')])return;$[_0x567fbd(0x183,'N!jo')]='',await sendRequest(_0x567fbd(0x1c1,'6la&')),await $[_0x567fbd(0xa0,'ZxSh')](parseInt(waitTimes*0x1+0x64,0xa));if($[_0x567fbd(0x2c4,')Uo*')]){let _0x1b3fce=($[_0x567fbd(0xe6,'cZUp')]||[])[_0x567fbd(0x128,'iqJV')](_0x3cc021=>_0x3cc021[_0x567fbd(0x19a,'23aE')]==![]);console[_0x567fbd(0x219,'fVf7')]('共有'+$['shopList']['length']+_0x567fbd(0x1a9,'UlK6')+_0x1b3fce[_0x567fbd(0x27f,'bXOA')]+'张卡');for(let _0xfb41c3 of _0x1b3fce||[]){if(!_0xfb41c3['open']){$[_0x567fbd(0x20b,'0qMV')]=_0x567fbd(0x1d8,'cR36'),$[_0x567fbd(0x15c,'UlK6')]=_0xfb41c3['openCardUrl'],$['shopTitle']=_0xfb41c3[_0x567fbd(0x211,'[vCU')],$[_0x567fbd(0xda,'UlK6')]=_0xfb41c3[_0x567fbd(0x1cb,'6la&')],$[_0x567fbd(0x89,'23aE')]=common[_0x567fbd(0x22c,'pkKu')]($[_0x567fbd(0x1b7,'iL4x')],_0x567fbd(0x238,'AYg!'));(!$[_0x567fbd(0x24c,'aBd&')]||!/^\d+$/[_0x567fbd(0x15f,'0GSo')]($[_0x567fbd(0xc8,'E4Q3')]))&&($[_0x567fbd(0x1ce,'6la&')]=_0xfb41c3[_0x567fbd(0xcd,'BQlJ')]);await sendRequest(_0x567fbd(0x1ca,'J3iB')),await $['wait'](parseInt(waitTimes*0x1+0x3e8,0xa));const _0x59def1=await common[_0x567fbd(0x125,'XmS[')]($[_0x567fbd(0x1de,')k[]')]);if(_0x59def1)console['log'](_0x567fbd(0xc3,'v3aD')+$[_0x567fbd(0x25f,'C#hj')]+_0x567fbd(0x19b,')Uo*')),await $[_0x567fbd(0x104,'20e5')](parseInt(waitTimes*0x1+0x64,0xa));else{console[_0x567fbd(0x176,'XmS[')]('['+$['shopTitle']+_0x567fbd(0x9d,'UlK6'));break;}await sendRequest(_0x567fbd(0x269,'cZUp')),await $[_0x567fbd(0x28e,'c)SZ')](parseInt(waitTimes*0x1+0x64,0xa)),$['dplhVenderId']='';}}}$[_0x567fbd(0x231,'23aE')]==0x0&&($['missionType']=_0x567fbd(0x179,'v3aD'),await sendRequest(_0x567fbd(0x286,'AYg!')),await $[_0x567fbd(0x12d,'(QKo')](parseInt(waitTimes*0x1+0x3e8,0xa)));dplh_AddCart?$[_0x567fbd(0xd3,'v3aD')]==0x0&&($[_0x567fbd(0x177,'v3aD')]='uniteAddCart',await sendRequest(_0x567fbd(0x28d,'XmS[')),await $[_0x567fbd(0x2a5,'i1uE')](parseInt(waitTimes*0x1+0x3e8,0xa))):console['log'](_0x567fbd(0x1a1,'chXE'));if(dplh_viewShop){if($[_0x567fbd(0x185,'!q5N')])for(let _0x21f9cc of $['shopList']||[]){$[_0x567fbd(0x292,'E4Q3')]='viewShop',$[_0x567fbd(0x148,'(QKo')]=_0x21f9cc['userId'],await sendRequest(_0x567fbd(0xb0,'IZ4F')),await $[_0x567fbd(0x23b,'iqJV')](parseInt(waitTimes*0x1+0x7d0,0xa));}}else console[_0x567fbd(0x26f,'!q5N')](_0x567fbd(0x84,'elVi'));await sendRequest(_0x567fbd(0xf3,'IZ4F')),await $['wait'](parseInt(waitTimes*0x1+0x64,0xa));if(dplh_draw!=0x0){if($[_0x567fbd(0x121,'s1R6')]){let _0x41f919=parseInt($[_0x567fbd(0x2c9,'elVi')]/0xc8);if(_0x41f919>dplh_draw)_0x41f919=dplh_draw;console[_0x567fbd(0x1f4,'$E2%')](_0x567fbd(0x182,'s1R6')+_0x41f919+',当前积分:'+$[_0x567fbd(0x299,'AYg!')]);for(m=0x1;_0x41f919--;m++){console[_0x567fbd(0x1f4,'$E2%')]('第'+m+_0x567fbd(0x250,']dap')),await $[_0x567fbd(0x280,'s1R6')](parseInt(waitTimes*0x1+0xbb8,0xa)),await sendRequest('抽奖');if(Number(_0x41f919)<=0x0)break;if(m>=0xa){console[_0x567fbd(0xb7,'(QKo')](_0x567fbd(0x223,']dap'));break;}await $[_0x567fbd(0xbb,'UlK6')](parseInt(waitTimes*0x1+0xbb8,0xa));}}}console[_0x567fbd(0x1f8,'hUwF')](_0x567fbd(0x254,'elVi')+($[_0x567fbd(0x1b9,'JuJb')]||_0x567fbd(0xe1,'0GSo'))+']'),$[_0x567fbd(0x98,'fVf7')]==0x1&&($['inviteNick']=$[_0x567fbd(0x7f,'BQlJ')],console['log'](_0x567fbd(0xf0,'UNPY')+$[_0x567fbd(0xa3,'C#hj')]+']')),await $[_0x567fbd(0x28e,'c)SZ')](parseInt(waitTimes*0x1+0x64,0xa));}catch(_0x8f045f){console['log'](_0x567fbd(0x28f,'$E2%')+_0x8f045f);}}async function handleResponse(_0x22f1f1,_0x3c3ac6){const _0x441896=_0x1a39f1;try{switch(_0x22f1f1){case _0x441896(0x246,'C#hj'):if(_0x3c3ac6[_0x441896(0x21a,'UNPY')]&&_0x3c3ac6['data']?.[_0x441896(0x161,')k[]')]==0xc8){$[_0x441896(0x249,'xxsE')]=_0x3c3ac6?.[_0x441896(0x101,'c)SZ')]?.['data'],$[_0x441896(0x11f,'xxsE')]=$['activityload']?.[_0x441896(0x1d1,'s1R6')]?.[_0x441896(0x103,']dap')],$[_0x441896(0xa4,'$E2%')]=$['activityload']?.[_0x441896(0x1da,'dnJT')]?.[_0x441896(0x12c,'iL4x')],$[_0x441896(0x207,'Hwtq')]=$[_0x441896(0x277,'IZ4F')]?.[_0x441896(0x133,')k[]')]?.['awardTime'],$['MixNick']=$[_0x441896(0xb9,'cR36')]?.['missionCustomer']?.[_0x441896(0x21c,'elVi')],$[_0x441896(0x215,'pkKu')]=$[_0x441896(0xdd,'E4Q3')]?.['missionCustomer']?.[_0x441896(0x168,'XmS[')],$[_0x441896(0xb6,'$E2%')]=$[_0x441896(0x1db,'i1uE')]?.[_0x441896(0xa8,'cZUp')]?.[_0x441896(0x2a3,'pkKu')],$[_0x441896(0x14e,'fVf7')]=$[_0x441896(0x249,'xxsE')]?.[_0x441896(0x134,'0qMV')]?.[_0x441896(0x256,'0qMV')],$[_0x441896(0x91,'(QKo')]=$['activityload']?.['missionCustomer']?.[_0x441896(0x1e9,'elVi')],$[_0x441896(0x137,'E4Q3')]=$['activityload']?.[_0x441896(0x180,'7#vN')]?.[_0x441896(0x1fc,'elVi')],$[_0x441896(0xcf,'vCrD')]=$[_0x441896(0xa9,'JuJb')]?.[_0x441896(0xe9,'AYg!')]?.[_0x441896(0x2a2,']dap')],$[_0x441896(0x1c3,'J3iB')]=$['activityload']?.[_0x441896(0x9e,'fVf7')]?.[_0x441896(0x2b7,'(QKo')],$[_0x441896(0x1aa,'xxsE')]=$['activityload']?.[_0x441896(0x12e,'C#hj')]?.[_0x441896(0x203,'pkKu')],$[_0x441896(0x263,'AYg!')]=$['activityload']?.['openCardStatus']||![],$[_0x441896(0x294,'N!jo')]=$[_0x441896(0x124,'hUwF')]?.[_0x441896(0x83,')k[]')]||![];if($[_0x441896(0x264,'SZqT')]?.[_0x441896(0x2ae,'pkKu')])console[_0x441896(0x9f,'0qMV')]($[_0x441896(0x21e,'0GSo')]?.[_0x441896(0xbe,'ZxSh')]);}else _0x3c3ac6[_0x441896(0x20e,'N!jo')]?.[_0x441896(0x10d,'3rmh')]==0x1f4?(console[_0x441896(0x2c1,'v3aD')](''+_0x3c3ac6['errorMessage']),$[_0x441896(0x186,'6la&')]['push']($[_0x441896(0x27d,'jqQ3')]),$[_0x441896(0xe7,'IZ4F')][_0x441896(0x237,'N!jo')](''+_0x3c3ac6[_0x441896(0xfb,'UNPY')]),$['skipRun']=!![]):console[_0x441896(0x1ee,'0GSo')]('❓'+_0x22f1f1+'\x20'+JSON[_0x441896(0x257,'!q5N')](_0x3c3ac6));break;case'绑定':if(_0x3c3ac6[_0x441896(0x11b,'vCrD')]&&_0x3c3ac6['data']?.['status']==0xc8)console[_0x441896(0xed,')k[]')](''+_0x3c3ac6[_0x441896(0x1e4,'J3iB')]?.[_0x441896(0x7c,'20e5')]);else _0x3c3ac6['data']?.[_0x441896(0x23f,'IZ4F')]==0x1f4?(console[_0x441896(0x1f8,'hUwF')](''+_0x3c3ac6[_0x441896(0x1ed,'pkKu')]),['结束','开始'][_0x441896(0x1c5,'Hwtq')](_0xcc9fc=>_0x3c3ac6[_0x441896(0xe4,']dap')][_0x441896(0xfe,'20e5')](_0xcc9fc))&&($[_0x441896(0x26a,'bXOA')]=!![])):console[_0x441896(0x27e,'SZqT')]('❓'+_0x22f1f1+'\x20'+JSON['stringify'](_0x3c3ac6));break;case'shopList':if(_0x3c3ac6[_0x441896(0x1b0,'6la&')]&&_0x3c3ac6['data']?.[_0x441896(0x279,'AYg!')]==0xc8)$[_0x441896(0x1d0,'UNPY')]=_0x3c3ac6?.[_0x441896(0x170,'dnJT')]?.[_0x441896(0x15e,'Hwtq')]||[];else _0x3c3ac6[_0x441896(0x11c,'vCrD')]?.[_0x441896(0xb4,'C#hj')]==0x1f4?console[_0x441896(0x2b4,'ZxSh')](''+_0x3c3ac6[_0x441896(0x1b6,'7#vN')]):console['log']('❓'+_0x22f1f1+'\x20'+JSON[_0x441896(0x138,'v3aD')](_0x3c3ac6));break;case _0x441896(0x19e,']dap'):if(_0x3c3ac6[_0x441896(0x147,'pkKu')]&&_0x3c3ac6[_0x441896(0x230,'bXOA')]?.['status']==0xc8)$['mission']=_0x3c3ac6?.[_0x441896(0x2a4,')k[]')]?.['data'],console[_0x441896(0x219,'fVf7')](''+(_0x3c3ac6['msg']||$[_0x441896(0x143,'C#hj')]?.[_0x441896(0xc6,'cZUp')]||'')),$['message'][_0x441896(0x80,'iqJV')](''+(_0x3c3ac6[_0x441896(0x12b,')Uo*')]||$[_0x441896(0x152,'0qMV')]?.[_0x441896(0x258,'i1uE')]||''));else _0x3c3ac6[_0x441896(0x1a2,'jqQ3')]?.[_0x441896(0x255,'iqJV')]==0x1f4?console[_0x441896(0x1fe,'elVi')](''+_0x3c3ac6['errorMessage']):console[_0x441896(0x21b,'cZUp')]('❓'+_0x22f1f1+'\x20'+JSON[_0x441896(0x28c,'xxsE')](_0x3c3ac6));break;case _0x441896(0x16d,'$E2%'):if(_0x3c3ac6['success']&&_0x3c3ac6[_0x441896(0x111,'elVi')]?.['status']==0xc8)$[_0x441896(0x140,'aBd&')]=_0x3c3ac6?.[_0x441896(0x2be,'hUwF')]?.[_0x441896(0x14f,'0GSo')]?.[_0x441896(0x166,'20e5')];else _0x3c3ac6['data']?.[_0x441896(0x105,'vCrD')]==0x1f4?console[_0x441896(0x2b6,'aBd&')](''+_0x3c3ac6[_0x441896(0x270,')k[]')]):console[_0x441896(0x2b2,'6la&')]('❓'+_0x22f1f1+'\x20'+JSON[_0x441896(0x2a1,'g8*[')](_0x3c3ac6));break;case _0x441896(0x155,')k[]'):if(_0x3c3ac6['success']&&_0x3c3ac6[_0x441896(0x24f,'cZUp')]?.[_0x441896(0xa1,'[vCU')]==0xc8){$[_0x441896(0x209,'[vCU')]=!![],$[_0x441896(0x278,'9r0A')]=_0x3c3ac6?.[_0x441896(0x175,'g8*[')]?.[_0x441896(0x1c4,'(QKo')];let _0x76d6f6=$[_0x441896(0x2a8,'ZxSh')]?.[_0x441896(0x13a,'JuJb')],_0x57fd82=_0x76d6f6?.['awardType'];switch(_0x57fd82){case _0x441896(0xa7,']dap'):console['log'](_0x441896(0x149,'23aE')+_0x76d6f6?.['awardName']+_0x441896(0x251,'g8*[')),$[_0x441896(0xf1,'6la&')]['fix']('🎉\x20'+_0x76d6f6?.[_0x441896(0x110,'9r0A')]+_0x441896(0x195,'6la&'));break;case'point':case _0x441896(0x29e,'AYg!'):console[_0x441896(0x26f,'!q5N')](_0x441896(0x141,'aBd&')+_0x76d6f6?.['awardName']+_0x441896(0x95,'[vCU')),$['message'][_0x441896(0x22a,')k[]')]('🗑️\x20'+_0x76d6f6?.[_0x441896(0x110,'9r0A')]+_0x441896(0xdf,'chXE'));break;case'goods':$[_0x441896(0x233,'c)SZ')]=_0x76d6f6?.['id'],$[_0x441896(0x297,'cZUp')]=_0x76d6f6?.['awardName'],console[_0x441896(0xe3,'UlK6')](_0x441896(0x25d,'g8*[')),console[_0x441896(0x2b6,'aBd&')](_0x441896(0x18b,'bAvd')+$[_0x441896(0x106,'v3aD')]);if(_0x76d6f6?.[_0x441896(0x15b,'chXE')])console[_0x441896(0x18e,'IZ4F')](_0x441896(0x236,'fVf7')+_0x76d6f6?.[_0x441896(0x99,')k[]')]);$[_0x441896(0x194,'BQlJ')][_0x441896(0x1fd,'g8*[')](_0x441896(0x29d,'aBd&')+$[_0x441896(0x189,'c)SZ')]);process[_0x441896(0xe5,'cZUp')]['WX_ADDRESS']&&(await sendRequest('updateAddress'),await $['wait'](0xfa0));break;case _0x441896(0xc4,'$E2%'):case _0x441896(0xcb,'SZqT'):case _0x441896(0x14b,'bXOA'):case _0x441896(0x2cb,'cZUp'):case _0x441896(0x8e,'vCrD'):console[_0x441896(0x29a,'bXOA')](_0x441896(0x1b8,'UNPY')+prize_type[prizeType]);break;default:console[_0x441896(0x216,'vCrD')](_0x57fd82+_0x441896(0x1d4,'bXOA')),console[_0x441896(0x26c,'c)SZ')](''+JSON['stringify']($[_0x441896(0x18c,'v3aD')]));}}else _0x3c3ac6[_0x441896(0x118,'chXE')]?.[_0x441896(0x8f,'c)SZ')]==0x1f4?console[_0x441896(0xf8,'iqJV')](''+_0x3c3ac6[_0x441896(0x1c9,'C#hj')]):console[_0x441896(0x1f4,'$E2%')]('❓'+_0x22f1f1+'\x20'+JSON['stringify'](_0x3c3ac6));break;case _0x441896(0x86,'i1uE'):if(_0x3c3ac6[_0x441896(0x2a0,'(QKo')]&&_0x3c3ac6[_0x441896(0x253,'ZxSh')]?.[_0x441896(0x9c,'E4Q3')]==0xc8)$[_0x441896(0x156,'JuJb')]=_0x3c3ac6?.[_0x441896(0x24f,'cZUp')]?.[_0x441896(0x146,'fVf7')];else _0x3c3ac6['data']?.['status']==0x1f4?console['log'](''+_0x3c3ac6[_0x441896(0x181,'bAvd')]):console['log']('❓'+_0x22f1f1+'\x20'+JSON[_0x441896(0x1a7,'jqQ3')](_0x3c3ac6));break;case _0x441896(0x23c,'v3aD'):if(_0x3c3ac6[_0x441896(0x202,')k[]')]&&_0x3c3ac6[_0x441896(0x295,'$E2%')]?.[_0x441896(0xcc,'g8*[')]==0xc8){let _0x533175=0x0;for(let _0x4a8dce in _0x3c3ac6[_0x441896(0x1e4,'J3iB')][_0x441896(0x172,'3rmh')][_0x441896(0x184,'aBd&')]||[]){let _0x15c68f=_0x3c3ac6[_0x441896(0x88,'IZ4F')][_0x441896(0x23a,'23aE')]['list'][_0x4a8dce];_0x533175+=Number(_0x15c68f[_0x441896(0x154,')Uo*')]);}if(_0x533175>0x0)console['log'](_0x441896(0x2c8,'pkKu')+_0x533175+_0x441896(0x226,'s1R6'));}else _0x3c3ac6[_0x441896(0x14f,'0GSo')]?.[_0x441896(0xef,'6la&')]==0x1f4?console['log'](''+_0x3c3ac6['errorMessage']):console[_0x441896(0x22e,'23aE')]('❓'+_0x22f1f1+'\x20'+JSON[_0x441896(0x217,'J3iB')](_0x3c3ac6));break;case _0x441896(0x153,'UlK6'):if(_0x3c3ac6[_0x441896(0x1e1,'0qMV')]&&_0x3c3ac6[_0x441896(0x2a9,'cR36')]?.[_0x441896(0xc1,'Hwtq')]==0xc8)_0x3c3ac6?.[_0x441896(0x126,'20e5')]?.[_0x441896(0x2a4,')k[]')]?.['result']?(console['log'](_0x441896(0x8b,'g8*[')+($[_0x441896(0x1df,'dnJT')]+0x1)+'套收货地址信息\x0a联系信息'+$[_0x441896(0x11e,'J3iB')]+'\x20('+$[_0x441896(0x188,'xxsE')][_0x441896(0x13b,'6la&')](/^(\d{3})\d{4}(\d{4})$/,_0x441896(0x108,'jqQ3'))+'\x0a'),!isNotify&&await notify[_0x441896(0x225,'cR36')]($[_0x441896(0x1f9,'6la&')]+_0x441896(0x114,'dnJT'),_0x441896(0x1ba,'bXOA')+$[_0x441896(0xde,'0qMV')]+'】'+$['nickName']+_0x441896(0x275,'9r0A')+$['prizeShiWu']+_0x441896(0x150,'(QKo')+$[_0x441896(0x2b1,'s1R6')]),$[_0x441896(0xf1,'6la&')][_0x441896(0x1b1,'20e5')]($[_0x441896(0x106,'v3aD')]+_0x441896(0x16a,'[vCU'))):console[_0x441896(0x9f,'0qMV')](_0x3c3ac6[_0x441896(0x1e7,'UlK6')][_0x441896(0xff,'JuJb')]);else _0x3c3ac6[_0x441896(0x163,')Uo*')]?.[_0x441896(0xc5,'SZqT')]==0x1f4?console['log'](''+_0x3c3ac6['errorMessage']):console[_0x441896(0x176,'XmS[')]('❓'+_0x22f1f1+'\x20'+JSON['stringify'](_0x3c3ac6));break;case'抽奖':console['log']('❓'+_0x22f1f1+'\x20'+JSON[_0x441896(0x2a7,'aBd&')](_0x3c3ac6));if(_0x3c3ac6[_0x441896(0x16c,'$E2%')]&&_0x3c3ac6[_0x441896(0x1af,'iqJV')]?.['status']==0xc8){$['dplhdraw']=_0x3c3ac6?.[_0x441896(0x20e,'N!jo')]?.[_0x441896(0x1f5,'E4Q3')];let _0x2a84c1=$['dplhdraw']?.['awardSendLog'],_0x4685ad=_0x2a84c1?.[_0x441896(0x1eb,'bAvd')];switch(_0x4685ad){case'jdMarket':console[_0x441896(0x276,'cR36')]('🎉\x20'+_0x2a84c1?.[_0x441896(0x10a,'g8*[')]+_0x441896(0x20d,'iqJV')),$[_0x441896(0xb1,'bAvd')][_0x441896(0x1ac,'i1uE')](_0x441896(0x22b,'bAvd')+_0x2a84c1?.[_0x441896(0x107,'!q5N')]+_0x441896(0x20d,'iqJV'));break;case _0x441896(0x1be,'J3iB'):case _0x441896(0x1ae,'Hwtq'):console[_0x441896(0x2b2,'6la&')](_0x441896(0x190,'7#vN')+_0x2a84c1?.[_0x441896(0x206,'UlK6')]+_0x441896(0xdf,'chXE')),$[_0x441896(0x24d,'E4Q3')][_0x441896(0x2cd,'6la&')](_0x441896(0x1e2,'J3iB')+_0x2a84c1?.[_0x441896(0xdc,'$E2%')]+'\x20\x20🎟');break;case _0x441896(0x8a,'pkKu'):$[_0x441896(0x17d,'JuJb')]=_0x2a84c1?.['id'],$[_0x441896(0xdb,'(QKo')]=_0x2a84c1?.[_0x441896(0x288,'N!jo')],console[_0x441896(0x1ee,'0GSo')](_0x441896(0x139,'(QKo')),console[_0x441896(0x208,']dap')](_0x441896(0xc2,'BQlJ')+$[_0x441896(0x2b3,'IZ4F')]);if(_0x2a84c1?.[_0x441896(0x117,'cZUp')])console['log'](_0x441896(0x2bb,'pkKu')+_0x2a84c1?.['awardPic']);$[_0x441896(0x1f2,'9r0A')][_0x441896(0x196,'UNPY')]('🎉\x20恭喜获得实物奖品名称'+$[_0x441896(0x297,'cZUp')]);process['env'][_0x441896(0x1bb,'SZqT')]&&(await sendRequest('updateAddress'),await $[_0x441896(0x2ca,'chXE')](0xfa0));break;case _0x441896(0x1a4,')k[]'):case _0x441896(0x232,'UNPY'):case _0x441896(0x2bc,'s1R6'):case'chance':case _0x441896(0xae,'g8*['):console[_0x441896(0x1ad,'3rmh')](_0x441896(0x1b8,'UNPY')+prize_type[_0x4685ad]);break;default:console[_0x441896(0x1d3,'JuJb')](_0x4685ad+_0x441896(0x220,'JuJb')),console['log'](''+JSON[_0x441896(0x1b2,'SZqT')]($[_0x441896(0x21f,'AYg!')]));}}else _0x3c3ac6[_0x441896(0x88,'IZ4F')]?.['status']==0x1f4?console[_0x441896(0x1f8,'hUwF')](''+_0x3c3ac6[_0x441896(0xbf,'XmS[')]):console['log']('❓'+_0x22f1f1+'\x20'+JSON[_0x441896(0x28c,'xxsE')](_0x3c3ac6));break;}}catch(_0x4d0e04){console[_0x441896(0x8d,'bAvd')]('❌\x20未能正确处理\x20'+_0x22f1f1+_0x441896(0xaa,'iL4x')+(_0x4d0e04[_0x441896(0x13c,'20e5')]||_0x4d0e04));}}async function sendRequest(_0x573b79){const _0x118fb4=_0x1a39f1;if($[_0x118fb4(0xb3,'IZ4F')]||$[_0x118fb4(0x1a8,'i1uE')])return;let _0x56e3ea=$[_0x118fb4(0x19c,'xxsE')],_0x11e42e=null,_0x50b060=null,_0x298750=_0x118fb4(0x1e8,'UNPY');switch(_0x573b79){case _0x118fb4(0x191,')k[]'):_0x56e3ea+=_0x118fb4(0x1fb,'20e5'),_0x50b060={'open_id':'','mix_nick':$[_0x118fb4(0x171,'7#vN')]||'','user_id':$['userId']},_0x11e42e=getSignBody('/jdJoinCardtf/activity/load',Object[_0x118fb4(0x100,']dap')]({'jdToken':$['jdToken'],'source':'01','inviteNick':$[_0x118fb4(0x210,'hUwF')]||''},$[_0x118fb4(0x293,'9r0A')]?{'shopId':''+$[_0x118fb4(0x289,'$E2%')]}:{}));break;case _0x118fb4(0xd5,'XmS['):_0x56e3ea+=_0x118fb4(0xb5,'hUwF'),_0x50b060={'open_id':'','mix_nick':$[_0x118fb4(0x14a,'6la&')]||'','user_id':$[_0x118fb4(0x2ce,'cZUp')]},_0x11e42e=getSignBody(_0x118fb4(0xe2,'N!jo'),{});break;case'绑定':_0x56e3ea+='/dm/front/jdJoinCardtf/customer/inviteRelation',_0x50b060={'open_id':'','mix_nick':$['MixNick']||'','user_id':$['userId']},_0x11e42e=getSignBody(_0x118fb4(0x2b8,'0qMV'),{'inviterNick':$['inviteNick']||''});break;case _0x118fb4(0x165,'N!jo'):_0x56e3ea+=_0x118fb4(0x1fa,']dap'),_0x50b060={'open_id':'','mix_nick':$[_0x118fb4(0x144,'ZxSh')]||'','user_id':$['userId']},_0x11e42e=getSignBody('/jdJoinCardtf/mission/completeMission',Object[_0x118fb4(0x29c,'JuJb')]({'missionType':$[_0x118fb4(0x234,'(QKo')]},$['dplhVenderId']?{'shopId':$['dplhVenderId']}:{},$[_0x118fb4(0x1e0,'vCrD')]?{'goodsNumId':$[_0x118fb4(0x205,')k[]')]}:{}));break;case _0x118fb4(0x16d,'$E2%'):_0x56e3ea+=_0x118fb4(0x123,'dnJT'),_0x50b060={'open_id':'','mix_nick':$['MixNick']||'','user_id':$[_0x118fb4(0x1cb,'6la&')]},_0x11e42e=getSignBody('/jdJoinCardtf/awards/getAwardSettingList',{'dataType':$[_0x118fb4(0x2af,'9r0A')]});break;case _0x118fb4(0x18f,'iL4x'):_0x56e3ea+='/dm/front/jdJoinCardtf/interactive/exchangePost',_0x50b060={'open_id':'','mix_nick':$[_0x118fb4(0x115,'xxsE')]||'','user_id':$[_0x118fb4(0x159,')Uo*')]},_0x11e42e=getSignBody(_0x118fb4(0x1bf,'c)SZ'),{'dataType':$['dataType'],'awardId':$[_0x118fb4(0x1c0,'jqQ3')]});break;case'抽奖':_0x56e3ea+='/dm/front/jdJoinCardtf/interactive/drawPost',_0x50b060={'open_id':'','mix_nick':$[_0x118fb4(0x2c7,'SZqT')]||'','user_id':$[_0x118fb4(0xee,'Hwtq')]},_0x11e42e=getSignBody(_0x118fb4(0x1d5,'AYg!'),{'dataType':'draw','usedGameNum':'2'});break;case _0x118fb4(0x28a,'6la&'):_0x56e3ea+=_0x118fb4(0x7d,'UlK6'),_0x50b060={'open_id':'','mix_nick':$[_0x118fb4(0xd7,'AYg!')]||'','user_id':$[_0x118fb4(0x239,'iL4x')]},_0x11e42e=getSignBody(_0x118fb4(0x240,'iL4x'),{'receiverName':$[_0x118fb4(0x27b,'UlK6')],'receiverMobile':$[_0x118fb4(0xfc,'g8*[')],'receiverProvince':$[_0x118fb4(0x248,'c)SZ')],'receiverCity':$[_0x118fb4(0x157,'[vCU')],'receiverDistrict':$['county'],'receiverAddress':$[_0x118fb4(0x201,']dap')],'logId':$['generateId']});break;case _0x118fb4(0x214,'c)SZ'):_0x56e3ea+='/dm/front/jdJoinCardtf/customer/inviteList',_0x50b060={'open_id':'','mix_nick':$['MixNick']||'','bizExtString':'','user_id':$['userId']},_0x11e42e=getSignBody(_0x118fb4(0x85,'fVf7'),{});break;case _0x118fb4(0x1ec,'N!jo'):_0x56e3ea+=_0x118fb4(0x102,'cR36'),_0x50b060={'open_id':'','mix_nick':$['MixNick']||'','bizExtString':'','user_id':$[_0x118fb4(0x130,'UlK6')]},_0x11e42e=getSignBody(_0x118fb4(0xfa,'g8*['),{'pageNo':0x1,'pageSize':0x270f});break;default:console[_0x118fb4(0x8d,'bAvd')](_0x118fb4(0x11d,'vCrD')+_0x573b79);return;}const _0xcd7df9={};_0x11e42e&&Object[_0x118fb4(0x1d6,'$E2%')](_0x11e42e,_0xcd7df9);_0x50b060&&Object['assign'](_0x50b060,_0xcd7df9);const _0xd43e4f={'url':_0x56e3ea,'method':_0x298750,'headers':{'Accept':_0x118fb4(0x2bd,'0GSo'),'Accept-Encoding':'gzip,\x20deflate,\x20br','Accept-Language':_0x118fb4(0x25b,'Hwtq'),'Connection':_0x118fb4(0x109,'ZxSh'),'Content-Type':_0x118fb4(0x1a0,'7#vN'),'Cookie':cookie,'User-Agent':$['UA'],'X-Requested-With':_0x118fb4(0xad,'aBd&')},'params':_0x50b060,'data':_0x11e42e,'timeout':0x7530};_0x298750===_0x118fb4(0x1cf,'XmS[')&&(delete _0xd43e4f['data'],delete _0xd43e4f['headers']['Content-Type']);$[_0x118fb4(0xd2,')Uo*')][_0x118fb4(0x267,'Hwtq')](_0x118fb4(0x1d7,'bAvd'))&&(Object['assign'](_0xd43e4f[_0x118fb4(0x28b,'fVf7')],{'Origin':_0x118fb4(0xba,'BQlJ'),'Content-Type':_0x118fb4(0x16e,'hUwF')}),delete _0xd43e4f[_0x118fb4(0x13e,'JuJb')][_0x118fb4(0x187,'SZqT')]);const _0x2eea77=0x5;let _0x3d516e=0x0,_0x3acac8=null,_0x59d5ea=![];while(_0x3d516e<_0x2eea77){_0x3d516e>0x0&&await $['wait'](0x3e8);const _0x284475=await common['request'](_0xd43e4f);if(!_0x284475[_0x118fb4(0xa5,'chXE')]){_0x3acac8=_0x118fb4(0x274,'XmS[')+_0x573b79+'\x20请求失败\x20➜\x20'+_0x284475['error'],_0x3d516e++;continue;}if(!_0x284475['data']){_0x3acac8=_0x118fb4(0x1a6,']dap')+_0x573b79+_0x118fb4(0x20c,'20e5'),_0x3d516e++;continue;}await handleResponse(_0x573b79,_0x284475[_0x118fb4(0xc0,'C#hj')]),_0x59d5ea=![];break;}_0x3d516e>=_0x2eea77&&(console['log'](_0x3acac8),_0x59d5ea&&(!hotbreak&&($[_0x118fb4(0xf4,'!q5N')]=!![],$[_0x118fb4(0x1a5,'hUwF')]&&$[_0x118fb4(0xd0,'23aE')]['fix'](_0x3acac8))));}function getSignBody(_0x523c14,_0x20102d){const _0x1f274e=_0x1a39f1,_0x315b17=mpdzSign({'actId':$[_0x1f274e(0x2ac,'bXOA')],..._0x20102d,'method':_0x523c14,'userId':$['userId'],'buyerNick':$[_0x1f274e(0xf6,'0GSo')]||''}),_0x1cc58d={'jsonRpc':_0x1f274e(0x2c3,'hUwF'),'params':{'commonParameter':{'m':_0x1f274e(0x228,'bXOA'),'oba':_0x315b17[_0x1f274e(0x13f,'0GSo')],'timestamp':_0x315b17[_0x1f274e(0x2b9,'dnJT')],'userId':$[_0x1f274e(0x1e5,'[vCU')]},'admJson':{'actId':$[_0x1f274e(0xaf,'!q5N')],..._0x20102d,'method':_0x523c14,'userId':$[_0x1f274e(0x29f,'dnJT')],'buyerNick':$['MixNick']||''}}};return _0x523c14['indexOf'](_0x1f274e(0xa6,'XmS['))>-0x1&&delete _0x1cc58d[_0x1f274e(0x192,'XmS[')]['admJson'][_0x1f274e(0x29b,'elVi')],_0x1cc58d;}function mpdzSign(_0x384468){const _0x474135=_0x1a39f1,_0x55c164=_0x474135(0x198,')Uo*'),_0x406403=_0x474135(0x1f6,'cZUp'),_0x199715=new Date()['valueOf'](),_0x429f30=new RegExp('\x27','g'),_0xebf7e0=new RegExp('~','g'),_0x46ac4f=encodeURIComponent(JSON['stringify'](_0x384468))[_0x474135(0x2aa,'UlK6')](_0x429f30,_0x474135(0xd4,'cZUp'))['replace'](_0xebf7e0,'%7E'),_0x11a084='f'+_0x406403+'D'+_0x46ac4f+'c'+_0x199715+_0x55c164,_0x5ee5cd=CryptoJS[_0x474135(0x132,'xxsE')](_0x11a084[_0x474135(0x1dc,'dnJT')]())['toString']();return{'sign':_0x5ee5cd,'timeStamp':_0x199715};}async function getAuthorCodeList(_0x5cd6ac){const _0x93c123=_0x1a39f1,_0x76e5de=await common[_0x93c123(0x13d,'fVf7')]({'url':_0x5cd6ac,'method':_0x93c123(0x127,'J3iB'),'headers':{'User-Agent':_0x93c123(0xbc,'g8*[')},'proxy':null,'debug':![],'timeout':0x7530}),_0xd85231=_0x76e5de['data'];return _0xd85231;}function random(_0x52fbf0,_0x3d34b3){return Math['floor'](Math['random']()*(_0x3d34b3-_0x52fbf0))+_0x52fbf0;}function _0x3b85(){const _0x5dde1e=['W5FNUlRMNPdVV5FKUzxMRzRMLk7NGjxMNRJLK7PK','hmkaWOW','h8kRga','W6rpjSk8duy2rG','rCkwWP7dRq','ACkFW5nRtbdcQG','y8oqB8oJaLC','iSovCCkiW55bcKLZ','W6ldHCk8rCoRpa','W4LLia','4PMcBoITIEwHGowhLUAGMow9HUAVT+EJT+EAOowpQEMgVW','wvXkW4hcJCkssmkkW6eVj3q','W6CKW7b2heKW','8yMvSU+7KxK','W5ldJctdVIKDqwdcQSoO','44oy5lUi5lQ26lAI5y+2','bSo5xmkGW7rImwPzdW','mmocD8kOW5qB','W64kWRT0','W57dJdzzAa','W6r1W6CpW4b3WRtdVmobyspdGmkFWR85jmkhjSoyftZcUSkrD2/cKhqICSodkSoWW6SOmeeAbq','W7/cT8orW7lcPZ3cKG','ACkcW594zqRcQHy','WR/dUmotmcldH8kz','W4BdGIX0C8ouACoRfcxcKH7cLCoH','W74zWRPW','W75op8k8','W4BdHb8pW6dcIW','W5LAWQNcQtTVsepcGCkcW7BdGWic','WPhcQSons2VdJmkmf1ldSG','EmoqDuahWOfFbX3dP2X4','W4pdIIXeDCoxAW','B8kzW5v6yaC','5RAY5yMw5Bcl5P6f5B695AEw77265BY75AEc5PAe6zEw77Yd','iSkFw3S','CmkfW5LMFWBcTWBdOxVcVCoW','W4NdR8kp','WQVdI8kXks3cP8kfnq','hSkFgCkkWQFcJSoRW50stSk1','imkFrLBdHKG','W5FdJtu','W6JMM6BMLzZMNQ7MLlFLV5lVVyBORllOGPlNSlVKVOtOGlBMTyNLI4nC','WPXuWPlcHYrQtL/cRSkFW6BdNGjumthcMY4GW5bUWOm1WQddKMhcI1JcL8k4W4ldPmoKW6K','pmoziCoZWPDZ','wCkiW63cLc1uWQBcQ8o5WQBcNHBdOw3cHd7cOCkjW6NdKqOCW7b2WOvhWPWCW4W','hmoiW6xcUCovWRVdVCoj','W6tcM2ldNmoCEHm','lXS2WRGoBmk9r3LeWOm','g8kkWOddOJFcLCo6W7dcISoXqL4','oaejWPyAFCkMCNfdWP8','iSkrzSkppSo/WONcNmoLWRZcMa','WR/dS8oUmr/dH8kzWRRcUSoTyCom','pG8RWP0JBCk5','W65mFCoslLuqWPBcU14','W4JcQYCPl8k9Ea','8ls1SU+5KbC','iCkbqwpdULNdLq','W4RdGITw','ESoEn1ZcUqG','idddMqtcOZ5bWOZcJ8kcW7zXW5y','fwdcQsi','WOJdRmkndq','WOpcHSk7WROYk8kOW4xcS8kP','v8o7fSkLaGaE','uSkwW6lcGs5LWRhcVmo2','W6dcICkOqG','W70taL7dTIpdRfS1W4TlWQW','WQu2lq','pCkqFmke','AmoijNVcGGbtAKnSWQJdLmoIWPL5','iG8OWPW','WQdcR8oDsSorWPNcJG','FmobC0ydWQvodtVdTgC','mCofnq','gCkWsmoU','W4VdTwpdG8oyWRtcV8k2W4pcJqpcLq','W43dTmkehYdcMmofuZRcVCoN','W7VcLeO','DmklW51T','oNelWRpdLSoVWPVdVmoco8kcW5ZdIINdJmoQW4THb8oJEu/dOrRdKNLeWRpcSSkZW4rZW6PtWQT/W5dcT8okn8kIimoPW7FcIc4','jCoACCkPfLf2jmkNWQ9yW4tdJ8ozWOPUzun+WRRdMCoMWRJdLCkvWQiUW4RdMH1/kuK0oxK','WOlcMSkQWR8ofmkUW4lcQq','W4nJpW','WPVcHSkO','4PYXW7hPMRpMNRxMIPxLJ7ZLIktNM6RMLPlOTlJLN5NLN5VKVjBMG4pKU5NNQ5ZVViBORRZMR5RNOiZKVRRNL7DauSoyxMJNRkBPGz3NR5BKUiRNLyNKUOZLIO/LIPdLP5ZKU5RMLOpOTlJLNQdLNQtVVyr7','W5FdHauiW6C','DhecW67dLCoUWOC','WQBdQCoKpcZdKCke','W7aaa3ddOaRdIKK0W54','fMtcQq7dJSo7W71uW7SW','WRldS8oOoZRdRmkcWRpcLSo7','ehBcVdhdJ8ogW69yW7K','W6Xwm8kRdMa+r8ob','ExOb','ASovmuBcKqjKBKj4WQBdKSoZWO94','W70taN7dTaVdP0SNW5Hi','W5BcTZC5i8kHzqTjv8o+','kUITIEAXNUwMT+I1LqpINOvQ5PsZ5zgn5BQM5PEq5O+R','aFgcO5W','W6JcGCkVvW','WQBcK8o/W5tcRqFcRG','W77cLvSVkCoKxsRdPqu','Fmofpv7cPav3z1q','W7GuWQ9YWO9QFWLZ','6lwv5yYZ5Rwe5yIN5l2t5Ok977+0nowkT+wjIEEHNU++P8kg','WQjXW7uSW5T7WPBdLSotzW','W6WobfddQc3dOuKOW4Lj','W6vmDq','W53dLY1ECSoFBmoOdG','W6ZcJgpdOmonEbHyAabg','pSkftW','WQVdLSk9oGtcVCkf','W4tcQZi','WPxcNmk2WR4SnCkUW4/cTG','eSkNc8oMW4tcU8kAr1FcTG','WQG6pSk4zN7cOCofEqRdTgW','W5zgWPxcPsPTr3NcN8kcW7hdNG','WPVMMkdMLQtMNR3MLAVLVk3VVipOR77OGP3NSBJKVkJOGyhMTPhLIyxdRa','rmkzWPW','WR3cNmkcr8otcmkzbG','5OQO5Awd5Awm5AAg5Q6r776r5AEU5l+l55IY5QY15PAy6k2p5ysn5OIH6koP6iAE5P6K','D+odUUA1KEwjO8knWR7JGPm','amoDW67cS8oyWRxdU8oeW4RcNW','5lUr6lkSya','W4JdIIC','WPGRW7NdKa','W4BdS8kKgt3cLmoF','WRpdTCo/','8jo9QmkJ','W78ebgtdTGldMuK0W4TbWQXqm8kO','CNaiW4NdSq','o8kqCG','W5/KUBNKUOZOTBNLJR7LJy3OGiRMM7hNGRtNIPNVVktORz/LIBZLHRNPUPlLKlVLJB7cKhddVx7dL8khjmkJC8oMi8ojW4StW4z9W5GrWQRdLCoTfbfpWR3dNKq','WQWfW57dPq','p8kEzSkPjCoqWORcLSoTWQhcRK7cKCo3','WQJdKCkXprtcRCkc','WQX6W60GW51/WQ7dMSoPDW','W7CrWR1IWO1PEc5+W7/cTW','wCkoW6RcNq','6Aow6ksI5zUw54Mu776Y','W6RcICkJ','W4vBWPJcQs5XAxG','W70NW7bQaf8','m8kEyCkl','vSkwWOpdUa','WRxcTmo+W78','WQddGX9+BCkYjdldRcLRWOpdGG','ChdcNvJdVMO2WRRcJmkbW5rjW6W','W4FdKraFW7RcLq','WQC+W7fsjLiYoCosW73dJH5WW5VcHmozhL/dU8ooWRz8iCohW5BcQmkPELuYtCopWQTM','5B+z5y6857o25RAW5yMA5lUP5l2/6iA35yID6l6S6koU772n6k6+6iwx6kcF5RAb6k685PU35zk55P+A5RgD','lqOHWOSiA8kN','fMtcQqddHmoNW6vCW7KdW5f8WO87','g8kybCkM','WQBdT8oUlXVdL8kz','FmobC0ydWQvodthdQMr8qq','5RwA6kED5lQD5yI9WORcVCkV','WRTTW6WZW4zWWRNdMG','WPtdOHVcMCoty3fnWPdcUc7dOq','W7JcICk2uW','qmkuWP7dPCoTv8kRhmo5WRy','hmkEW5DXj8opzG','emk0t8o8su1X','W4ddIJXCuSozAmoR','W4ZcPshcKW','5QY05OQO5AsW','WOxWNBgX','W5D/kCorWOz5','W63cN2xdJG','5B6K5yQK5yMM5yMazca','uSkdWOVdUmoUtq','W4NcUYKRi8kGsdDrsCo4AG','AZRcIKOoW5vFzSoa','cmkmWPNdQJpcLW','A8oDAmoVbKPTm8kgW7jE','E8kjW4rHxWRcRrVdQgBcLCoW','W7DjF8k6ba','WRVcSCoSW6JcMCkidc7dGq','8lAEG2FMG7NLLBtOJQRLV5pLRltNIB1I','WO/dP3z+C8o2psLHsmo+wSoJ','BSokAf8HWQvogaS','xu1mW4FcICk2wCkaW40Il3dcKa','FmoDpKFcKWK','sSoswmoZW7tdICk1W5OrFCklumk0','W5XoWPpcOWHIuNJcNmkzW6pdNHei','mmocD8kiW4zpf1zMm8ofW7a','5Rw65yUO5zkK56Ar77+xEEIbLUwtQ+w/OEwoL8oi','oow9JUwKS++8R+AyUUEaI+wgU+ADPEwsNSoq','W6rpmCk1h1aYwq','WP0rWOpcUsjVuZpcNCkiW6ddJWGibWVcGca3W58','W4NcPYhcM8kAWRNcQSo2W73cGLRdJmkY','WROrW4tdGw/dOW','jcvuWQxcICkSW4pcOW','WQDWW6q','W4ddUmkx','5y2a6yAU54Ug5OcW57Mx5PYXWRqvE8kxeCo0gwVdP8kK','DchcNW','WRddRSo1mdVdR8ksWQ3cRmo+t8on','bxpcQcy','WPBcNmk7WRmXcCkeW4pcUCk4','W6Xrymo7lNW1WPlcNa','8lY4GCo7','W4FMIBFKUOpLRQFNI5NdNG','h8oxW6C','W5xdHGucW7NcJ8kbW6BdIYfrWQ4','WQJcSSonuCorWPdcJcNdRSkAWRtcUq','W4bkWPFcUt5W','idxdNqNcOIHbWOZcHCkt','a2tcVIBdGSo+W6Th','cSkbWPVdPsq','W4VcS8ovW7lcJrxcM8k6','pCooza','WQqbW4tdO3xdRW','cSkla8k/','WPddRXK','hmkEW5DXlCozEgeR','d8klbmkVWORcJ8oV','W7qofW','W5ZdLJfYCSoC','W55xWOxcVIjStG','WQv+W64G','W63cL8k6rbe+WOLTWPe','oCoApSoYWQz4W7fgWPWmWPVcVq','B8kAW5rPxqBcMaBdOhVcKCoNW58','oSkpsxFdJv7dIa','WOBdTr3cMColBwXsWOu','W6pdG8kOC8oWiCkg','WRX+W6OX','4PYrWOROHyJMNRBOVkdOOzhPG5JLIjlKUB/PLAFORl3dKW','W6TipSkTd0y','W4VdJsK','emk4t8o8quv6oSoDB8km','WQNcUSocuCoMWPVcHsJdM8khWO7cQq','W6xcK8kCuWeIWOLUWP8tjbGsWRS','oColjSo7','WPBdRHRcNSorCW','W5JcTJZcImkjWOpcTSoMW7xcMW','W7lcLuKsnmoSDG','W4fBWPVcRcjTChpcPSkdW7y','WQqlW40','WPBcISk7WPi6','W5RdKshdVJOw','8ko9P8ks5OgY5zEU6iYk5B6D5A6E54I1776+5Aw75zkR5zk756s/77+9','W5PqWOlcQcXXqxa','or0GWOSKFa','W6KnWQ1YWOf1zq','W5z+nCo9WOz6lComBq','z3alW73dMCoZWQtdVCoFESkC','W60sfvxdHWBdQeyLW48','WRhdVCoZpG','dCkiWP3dVW','A3zNW6/cU8kBF8k8W4eD','amkAW4b2hmoAy2yL','W6ZcHNldH8oCCXfEwr1rBq','f8ozW7tcTG','a2tcRs/dISoRW6S','W4tdTSkdmtpcHCoZsXZcPSoOmCoPW5ldVa','WQKhW57dRxFdRJ7cVmkpWQq','WQ5XW7u','W7Crfv/dHW/dU0WlW5Ll','WQNcQ8oAwmoKWOFcMYK','D8ogweSfWQbskWZdQMP+tG/dM8kRzq','hmkjhSkIWRlcK8o2W5iYxG','DSkfW5C','W4tdLXGrW6RcTCkDW7BdSdS','W6xcKxy','5y+n6yEA5B2M5zkZ54Ig5OkCW4NcR8klkCovWOxcVxVcMmk5','h8kbW5u','W7izWR1sWOTQEH9KW7VcGCoquSkF','WPtcTcaajCkNzrXrvCo/E8oVWP8ZiCowutTSWQ4AESocW5tcGCowWO/dRL7dOgFcHmo2W7hcM0W','oaCOWPW+Bmk1xga','zSorEW','6AcC6kAP5zQo54M2776E','hSkfh8k7WQVcLa','WQGPoSk9ExtcTmoiFaRdUYCMs2RcGG','W7pcMLKN','W57cSdi','eCkpW4f6j8opzG','WRxcSSoQ','kmoyESkyWP1RlGjUomkeW5ZcRSk2W6uW','WQxdLr0','WPeKW5fBa006W6a','b8kTeSoQ','WQ7dIHPWBmkXydpdQX56WR0','hmoiE8kVW5Lfca','5P296k6d5AsM5yQa5OQu5yUX776f57sh6k+N6iYD5B67','WOxcJmkIWRO3fCkxW4pcTmkZBG','nIhdGbu','W4VcRdtcNmkpWRu','5Rsi5yMj5BwX57IG5PYv77Y957IB5P6t5PwL6zsX77+1','FmkdW4G','W53cTZdcGmkLWRq','W7/cJ1K2z8kUpcddQqPjW4dcMIpcJXVcQthcRMSqxSkEWRCvxfJdRf3dRSoutJ8JW5O','ACkEW5f6xtFcSa/dOq','z8onEW','xMxcSgZdJCo6W6fBW6H6W5P0WRaXWRpcSZtdIYPKFmoDeSkvWRpcT8ktWQ9ZW4nFyCkiWOSsWPeAkL4osGNcJG','zSodjeFcHaLnyLjM','W6hdVSkiod/cKSoA','r8kEWPi','WQXyqGxcVvBcV14xW4vjWPXo','v+I9RUIHKoMvSUMBPoAxLEMvPG','WRZdR8oaoJ3dSmkwWRdcTmoyr8ohWRJcRW','5P+D6k2x576H5RAu6kAw5lQa5yMM5y206yss77+r5lIx5OMI6kon5RAb6ks95lQB5yUSlG','FCkatfNdH0xdLxuzDSk1t8kWW7dcKqHkAaFcNtzDbYqAwSk8tKqWWQRdGa8','e8khWOldOJxcMCocW6dcLCoQ','W4hNPPFLI4Hm','W5ddHauk','pCkqFmkehmozWOJcL8oRWQFcTei','W78oh1xdTW','5Bwx5O+A5lUJ5PAI6lEp5zYT5zYeWORINjew55Qa6k6E5lMj6zIs5PYW5OQ95y2s5yQi55MM566x','W6q7W7i','x8koW6q','W6Pcymos','WRHRW6iXW5PT','h+s7Sos5REI2UUwnH+w+NEwoLEEdUEEkSo+8MoISN+IfKUIJJowhTEwSV+AAQ+wsRUwkOoweKoM5LUwqGownVmoevq','W64xWRPWWOHwErnPW7S','WQiaW7xdOhhdQYlcMSkXWQhcSuC','ySolrCkUi8okWRlcHq','yCoFhYhcMbRcJ1upAmkNxSkp','l8kn8kUUSE+7VW','WQm9hSk+E3lcUW','jc7dJtxcPdDN','o8kethBdKa','WRtdQ8oMls3dSSkEWR0','WPpcHSkHWR4','W6lcIeG0fmoL','dSkLxCo7xvK','low6LUMqP+w9G+wpIUwMUEI2QXNOTA/OVPlMI5FOOzZcHa','p8kdw2ddGupdLxunD8kLvmk7WRRcGa','W5FcSsm','W77cN3JdMW','Fmozm1RcHr8','WRLKW75Qbfyndq','DmomCuybWQL0hq3dRq','omoenSooWPLWW7O','mJxdIGlcQcLX','W6pdG8kOC8oWiCkgowNcUXaUnJxdU00K','F3eRW73dGSo2WPhdPG','W4xcRsBcGCkfWR/cSmomW5FcNuhdGSk7W6tcRa','W5RdGsBdVISrE3dcPCoSfsa','WQJORQpMS5FLK5xLU50B','WPi+W5fDjKOQW7e','uefF','k8kJW75xbSojELi5W4nyd8ofWRS','W4zRnCoW','Es3cJeOwW5TcECoWW4O','W5NdJaiyW6BcICkB','xSkeW7dcGcTwWQ0','W7VdS8kDcCkbW4VcUY7dM8kTWRFcNW','W4BdKb8UW6hcGG','BSowzLSaWR8','WRJcN0bPo8oZFc3dSKfgWORdONNdKuZdK2NdSNCDqSkEWQ4zBeZcS0ldRSkvvaaLW4Dm','kmozn8o+WRn1W75mWPOB','W7yxWQK','WRldH8kbprhcOSkEhSonWPmYzW','eSoBW7tcVSoGWRpdU8ouW4dcICoQW6e','W4tdO8kebIxdI8kEbqxcPSoLh8oGW5hdVCk+W6VcMCoqW7nNWRVdQmokW6xdSCoEumkoW5z/W6ldHCkSdSkKFG','bMdcTdC','W6HLpCo9WOrXjCkfitldIW5BW7rAAmoRW5BcH8kaAvZcVxClW6tcJCkOf8oPxJmsDSora8kluCoBW5WdoxKlW7dcTMWGW4beWPpcUuy+xmo8W7qRWQdcIaxdVspcVXldPHddHSoDdmkLW4mZCCkaWPmNW78KWQRcHmoPrmouyCoQjCoWWQr5zmonWPP5WOlcPfX3zvfpmYNdQ8kPi8oafmkYeGOzW51xFcpcGCoNxSk2esvYqJqDW5FdUCkeW6NdKsjdWOZdMmkCWPBcTmo9WPpdQmkDW5RcL8kft2RcNY3dUmo0DgFdHSkEWPG','WRRdJ8k/oGRcOSkFmSoD','W6BcJNtdGCo+FarFraff','W6VdMmkPB8oRa8kna3tcRb4/','ECodC04','W75vm8kTh0C','5AE65zgw5zo956Ag772m','5yM55yA4W5y','pSofo8o0','iSovySkvW4vv','W5RcOtJcK8kEWRS','rCoxWOeVq8kiwMi5W6PDoa','f8k+vCoHFK96cSobBCkGW78','4PIfkUIUSowhNowTSUs5Low+GEIKQ+EAKoEoS+wHUowpTUMgVowsK+wgH+I/KoIJIoIgOUAFJG','WP3cGmkHWRW5hSkPW4VcT8k+AYJdQmk9WOnojfDxWQySE8kKxCoYpSkcl8o5','iCotBmkfW4vffW','W5z+jSoGWP1U','W5NdPmkvbb/cLq','A8oDAmoVbKPTm8kAW6q','W7TgF8oxnhu1WPtcM1tcNa','oSkAzSkzk8oBWOm','W4NdPCkcosBcLmoFsq7cVCoV','WOaTW41ogLyL','WRhcVmo+W4RcLSkajJZdHWG','WO3dTMi','W73dGSk0Cmovj8kBba','s8ozW4dcSNldJmk6W5dcI8oPzgXs','W75xWO7cGYjGsW','qSoFWOOTqmkfwfmFW5Xuga','W7lcLvS','fxhcSsVdVCoTW6brW7KNW7L0','W6OkWQDRWOfvFHnqW7O','pmoDm8oOWPrtW75pWPW','hmkYsmoMxKnGf8oiCmkiW78','W5lcScaVmG','ywdWTz++77Uc','W7xdJUw9LEwKUEAuMUMuPo+/Ha','5P+J6i+U5y6C5yUH5PwG5O25','WQpcISk/FbOzWOzdWPuMlWmqW6FdKcNdSuDqs8kmEJ9ntu3cKW','hw7cUG','CgCuW7pdGSoqWPhdOCofDCkpW50','W43cQIm','W5VcRdRcGSkGWRNcRCo7','W5NdGaiyW67cGCkq','p8klxhddGa','W55xWOxcVIjStL/cUSkEW7BdHqKEkG','5Rwi5yMS5BAn5lIbWPi','iaSRWP4zCa','WQX6W7CvW51XWQldHSoZzYBdGmkmW6m','WRNdS8oG','W7Hsn8kRi1a','ACkEW5f8xba','5zow6z+b6ycJ5yUW5yU6W7tcRq','D8kpW4n7satcVa','WPZdRWVcLCoD','W5JdJaiF','DZVcJgumW5nr','W4RdLmoYW6zJrSo6WPhdOmoG','WOqWmSkFExtcVG','cCkmWOddIc7cK8oLW6dcGW','tCkyWO0','oEE4SUAFNoAuHEMwVU+8QW','WOPGi8oEWOD0kSoPDw7cN1OvWRjRD8oLW4RcHSoizNpcHffF','WR3dKCkSnHpcG8ktmSoAWOa0Dq','W5vIkmo6WO0','W7BcTmoeW7dcSe7dMCoW','y8oqF8oQbuD8oq','W5/dGYBdTG','DgyvW7xdL8oZ','WQ9+W7CK','xmoCW63dUmoWWQJdOmodW5JdICoHW6eWW7uLlGhdK2LVybZdJ8odW70kWQxcTSknW43dVCoSCM8','zMehW67dHmojWP3dV8ot','FCoFDCoY','W7PxC8ockgG','WQNcR8oKW7hcL8k3dttdOGK','EtNcMveeW7XxBCoC','WRRdSCkAWQRdQv7dKSoT','W6lcM3tdN8kqFbPsFXC','W4r9jSoMWOXtjCohCq','omoeja','WQi8m8kI','amkWhSo7W4FcOq','W5VcSdtcGmkyWOtcT8oIW4C','oZOtW6JdMCoXWOFcVCoKCCkkW53dRdxdUSo3W61UeConswFcOqpdKMXo','WQZcVCops8ouWRdcIIhdMW','WPpcImk7WRO','mSkhlCk3rKyQCSoIWRnqWPBcSCotW5iWhKzOWR/cLCoLWQlcHCkPW6rZWOZcHfG2','eSkNc8oMW4tcU8kAr0VcOdm','5lMH5As46ygF55YC','WRJdQbFcVSomAw4','W6BcI2xdQCorFbe','W4NcSZtcGmkiWOdcT8oS','jshdNqa','E8kjW4rHxWRcRrVdJw0','5Rwi5yMS5zgY56w/776OW7hOGRRLKlBLVj7LJRme','W7PwCCovogGw','W61czSox','4P+fa+ACUoEDK+IUQUAXMuu','W5ZdHJXsDCooymo8','WOBdTq7cGSorxMXzWPK','jCkEE8kobmojWOS','eSkAd8kLWPVcNSoWW4Om','W5TrWOxcUsvItxK','yWOOW5ylASk7x2qFWPaYnNLZWRnQzmozW5hdGSkKsCoKqmkajCkazSkJtCk0l8oQlLBdR8oXwCoNa8ozW4SsWOLeW7q4qG','W7BcMfKVk8oOzZRdQGfnWOO','W6tdHCkYBSokjSkhaeRcQbq4nGS','BSoFAmoN','W6NdPGS','r8kEWOBdUmo+ta','W49UgmoWWPHXlmo1yw7cLW','t8kzW5v6zWlcTaC','WO8/W5K','W606W7fmify5','W60zWQDL','CmolDfWCWQnunXVdTx9YsaBdGa','6i2a5yY/WPtMT6dLI7BKVPRMGQJdSEwNRoI3Uo+8LUwpQUIbVoABOEM4PowoL+AjM+IaOEwKI+woREs7Iq','bhlcUdhdOSoS','W4hdLITXCmozyG','WRJdHvO','WRBdQCo0hIRdLSkEWQJcTSoRuq','W5BcTZC5i8kHzrXfvmoVymoKW5uI','WPJdTCo/esddGCkC','F3e5W7JdGmoXWPZdJCouzSknW5NdQW','cmkIwCoREev9amoq','WQRcQCo/W6lcNmkdddVdJa','8lMVSCoU5Og85zw46i6X5B6b5A+K54MUW7e','W5RdLtpdPtKRAMFcRCopgYm','AmkpW4bKsadcVa','z8oBB8o1eur8','imkpwwBdJv/dJW','W5pdHZpdSZGkFa','WROWlCk/','fmklW4zEbCoCEgqpW5DzhSoFWQhcGmoMisnj','8koKV++6Vt8','W4nJkCo1WOrXpq','CmolDfWCWQnu','W4tcL2NdOCouFH0','hSkyd8kQWRdcNW','nSklxhi','W6Sue1ldOr3dUG','W70xWQf1WPDiyXDoW6S','8kQ9TJu','v8kdW4HgqadcSG','WQSlW5/dTg7dQq','6zw96zMQ5PEN6zEqWOC9lq','WPVcJmkHWRWQeW','imkprxldGuldUf4zASkYxG','WQ04pSkW','776w5BAk5OUE5yQo6iso5yQU55MT6k+k5PsX6lAO5z+I5z+4n8oL5REL5yI2ytxVV4O','krySWO0','W5BcTZC5i8kHzq','bhhcUsldN8oTW49rW7GNW5vJWOK','WOm7W59zk2aSW6C','WRddPmoKnYJdJmkqWRVcJ8oWw8oC','W5ldJctdVIKDq2dcUSo3','BmoejLC','6i2I5y2kW5WljSojWPlcSmkc5AAU6lsn','WPC/W5TzbKa','D8oaqmoHW67dKmkO5B6R5AAW44cQ5lMG5lIH6lE45yYA','idFdIbpcQqPRWOa','hNhcUc3dVSo6W6i','W6xcMKmIe8o0FG','W6LajSk4','WR08oCkL','W6OmWPfHWO1O','WQBdQmoMkZZdKq','z8omiwNcLrHbAKjKWQBdUmo4WPPK','WOyTW4Pk','4P+PkUMBIoAERUAjLEwpI+wjToEyRUAuOUI0U+wFI+wDRUs+KUAdSUAGTUw8J+wVNowEKoMxU+ITLo+9GEwpNEAwNEs4R+IdLUs6T+EQP++/Ixi','W6hcICkOrrWFWOy','A8ojFCo0fhb8pSkNW6LCW4FdTG','WOZdTJ4/W6hcLCkT','W7RdHCkVyCo1dCkaewNcRHW','WRtdHSkWpHxcPG','j+w1N+wGUEwCNUwESexWN76k','kx/dGbfsWOPKu8o6W4dcLam','lSoFmCo5WPvUW6W','oSopjSoBWOD8W61gWQOBWQBcRCkOWQddIfWmACkb','W7BcI10QnmoICJFdRWfcW4hdGMxdL0ZcQYJdO3SivSocWRGfpKNdQfFcQ8oc','fCkhW4O','ka8XWPG','CuDaW6dcLSk8rG','f8kLc8oU','WPhdTwldHmoDW6dcRCo/W4/cNMpdVG','FmofxwFdGuddIbKQyCkZxSk6WQZcRrDDxWFcNt5arG','W4fRm8o1','W6ldHCk8','WRtcTmo+W7JcM8klcWNdJaZdHW','cCkDWPxdUtxcQmoNW6tcGW','WQZcS8oKW7/cL8kNcJhdMrNdGtuAW5u8WRO','6i6I5y+drSoiW5/dTSkrW7ZcLUwKPEI3JE++Uq','fSk2dCocW4hcTCk+v3a','qSkfWPpdVmoVuCoYd8od','W5ZdHZZdSI8zE2ZcGmoN','WOxcQEw/NUwMKUAwL+MuUU+/Ra','sCoFWQ3dJaVcUSo/W78','uuDlW53cLSkWq8k6W6C9nh7cMCoVWR8','vSktW7hcNdH8WQ3cV8oGWQtcIf4','6k+d5A2W5OUx5AAD5Q+L5PAk5lQ4WPe','W7/cImk0rJKzWPT0','h8khW4fR','AYBcL1mSW5TfDa','F8kyW4jfwGtcIqVdQG','eSooBmkkW5Ld','WOxdQqdcNSoa','WRTTW6O/W4PnWRldLSo3zG','WOxcNmkHWP4WhW','5AwL5zcG5zko56sd772q','WRZcPCoUW6pcK8kkaJJdPrpdKtu','iaeI','W5JdIHy','W60SW7zWkfu7h8oJW6ddMr4','8jcxV++4T8ko','WRtdV8oZnJ/dI8kdWQFcGmoZr8ojWRG','W77dI8kPyCo0pq','BSosA0yb','W4hdSSkdbtFcLSou','oVgfSOy','WR7dISkM','p8kpw2ddIuVdNG','W5qVW50Ek0yTWQZcObqbfrzlW53cQcycWPRdGwBcIupdH8oVW70GofpdOSo5xW','y8oLymkhW7TGbG','omkpCmke','WR/LU5VPKytKVlhLKjFMIltLI5y','WPFdObZcLCoWEgK','amk0e8oMW4y','EhWvW6/dMCoYWPO','5B+O5yUV5BAG6kYP57YZ6BQP5zcc5y2C77+t','xv5iW4lcLSk8tmknW7SHlJ7cJmkNWRRdSbRcOSotW4udWOCFWPWBW5eJW4JcTCktWRyHiG','5P2R6k++57+h5yUb6lEG5lQH5yQJ5yY76ysU77+65lQE5OM46koU5yIN6lwa5lIe5yMfW5O','W7RcOCoeW6e','W7VdJ8kVnXlcTCoJBZZcNa','WRBdS8oUmq','W7RcNL41pmoMDG','8jQkVKy','W63cTmocW6NcRrpcN8k5bG','fCkCWOddJs3cNCoP','5B2r5y2GW7hOVPVPNQVLVOG','WP3dObZcSCobBKzvWO7cOW'];_0x3b85=function(){return _0x5dde1e;};return _0x3b85();}function getBlacklist(){const _0x53a312=_0x1a39f1;if($[_0x53a312(0xbd,'UNPY')]=='')return;console[_0x53a312(0x2b4,'ZxSh')](_0x53a312(0x19f,'JuJb'));const _0x29e81d=Array[_0x53a312(0x244,'s1R6')](new Set($[_0x53a312(0x25c,'v3aD')]['split']('&')));console[_0x53a312(0xb7,'(QKo')](_0x29e81d[_0x53a312(0x1ef,'23aE')]('&')+'\x0a');let _0x22471f=_0x29e81d,_0x48b7e8=[],_0x572bb0=![];for(let _0x34af1a=0x0;_0x34af1a<cookiesArr[_0x53a312(0x14d,'elVi')];_0x34af1a++){let _0x33ac7d=decodeURIComponent(cookiesArr[_0x34af1a][_0x53a312(0xe8,'fVf7')](/pt_pin=([^; ]+)(?=;?)/)&&cookiesArr[_0x34af1a]['match'](/pt_pin=([^; ]+)(?=;?)/)[0x1]||'');if(!_0x33ac7d)break;let _0x36fde1=![];for(let _0x304c73 of _0x22471f){if(_0x304c73&&_0x304c73==_0x33ac7d){_0x36fde1=!![];break;}}!_0x36fde1&&(_0x572bb0=!![],_0x48b7e8[_0x53a312(0x261,'[vCU')](_0x34af1a,-0x1,cookiesArr[_0x34af1a]));}if(_0x572bb0)cookiesArr=_0x48b7e8;}
// 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)}