-
Notifications
You must be signed in to change notification settings - Fork 25
/
adolf_newInteraction.js
23 lines (22 loc) · 38.3 KB
/
adolf_newInteraction.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
618大势新品赏
更新地址:https://raw.githubusercontent.com/monk-coder/dust/dust/normal/adolf_newInteraction.js
============Quantumultx===============
[task_local]
#618大势新品赏
15 9,20 * 5,6 * https://raw.githubusercontent.com/monk-coder/dust/dust/normal/adolf_newInteraction.js, tag=618大势新品赏, enabled=true
================Loon==============
[Script]
cron "15 9,20 * 5,6 *" script-path=https://raw.githubusercontent.com/monk-coder/dust/dust/normal/adolf_newInteraction.js,tag=618大势新品赏
===============Surge=================
618大势新品赏 = type=cron,cronexp="15 9,20 * 5,6 *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/monk-coder/dust/dust/normal/adolf_newInteraction.js
============小火箭=========
618大势新品赏 = type=cron,script-path=https://raw.githubusercontent.com/monk-coder/dust/dust/normal/adolf_newInteraction.js, cronexpr="15 9,20 * 5,6 *", timeout=3600, enable=true
*/
const $ = new Env("618大势新品赏");
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
const notify = $.isNode() ? require('./sendNotify') : '';
var _0xoda='jsjiami.com.v6',_0x2d4e=[_0xoda,'eMKyw6DCiTI=','w4F9wqtnLsKI','L1EWw6jDlA==','wovDuMO/w7nDrg==','wpHCs8KXcg==','w6HCt3s+','wpE8Fiw=','bMKOf8O1','wozDu8Okw53DvMOyMg==','w7ATw7fDlMOyIik=','fS4HRsKx','B8OcYcOMGMKew63CgcKO','QcOOc8KU','woEEwqTDgQ==','wpc0cMKmwqbCvELDoCo=','wpzDmzxR','w6TClAo=','w6nCmQ/CpQ==','QcOudXzDgVAnKXo=','wrfDpcOcw7s=','c0AFw5vCmsOjwpNbC8K7IUPDgmDDrMOfw7U=','KwJxw5BDwrsqMxTCv8KCLDkSw5pdaWQsworDo8KcbcKEImjDm1jDisOOw53CnCw=','woPDmcOHw4vCuQ==','a8KCacOxAEvCoMK3Wgg=','DMOkw59Ow68/wrhKAcOAwqDCkMKvw7ZYw71mw4vCixXDi8KKRcORwo17A1fChMO/w51MDQ==','wpM9FjjCv8KKIcOmOjnDj3RTwpbDpTRcR8KcFcOeLjdv','wpjDuGHCkQ==','w5rCqMKBbi1owoZBw55MCHUow4PDqFTCi2fCsg==','WzYGIwc=','wqZow7YjQ2URVMKhwp1/','cmdXUA==','wr5HHg==','wo3DscOiw4zDtMO8Pw==','V8OXb8KTwo4=','wqYdwqjCnTbDoA==','UztbLAhZwrc=','ZQ15Ixs=','ScOtHysLwp0=','RcOKeFXDhQ==','w78wAsKRZQ==','w5kqEMOAPypKw7o=','wqATwpPCiSnDqMK6QAtORA==','VcKmwrcvwqHDhcOcwro=','wozCnHbChg==','VHzDscOQVVhGw61jw7Zjw4VS','w4jCuXU2bMOUT3nDqsOiJMKtw4PCqXA9wpwVwoYQwpvCrcKVfcKJBcKcXSRYwoJGVS1oVMK1QRAHfsK8B8KNRFA+ZDFUPcORwollwp04w6/DryXCpCrCkRtMwoLDh8KcKyYne148W8K2GsK4WsOhSMOdw70WwpnCvMOiw6pYPy9VwpfCr8K3SkvDusKMw7jDsnx8w5rCpMKLOsKFczJjC3wNw6NOTcOHGXwmw5IEUsKkwrN/wobCoRDCpx84GwDDgxbChg==','w6/CsFhow54=','w4vCgQjCkUc7w60GwrBXMMOaYsK9UXrDncOow53CkMK4w7rCvTEoVyg8FsKDTMKawqQlKwXDjMK9wozCkk5AwoHCp8KgGcOMe3TCuxcOw7DCqUzCtMOLwp0=','PcKOSMKDCcKxY8KGf8OMwq47BSvCscKFBA==','MsKAVcKDVsKrKMOMdMOFw6IuEG7Cv8KNEsKrKcOtwo/DosKPfsKaw6AHw7Fuw4A/ScOKdibCscOtwoxSBMKWwqo+ZyTCsmLCsnTDpjtRJMK3','wovCtMK0WTQ=','w4DCu8K8','w7EUMsKyPzHClVNOGg==','RWwEw6LDoQ==','w40/w7DDmsOK','a3PCpMODRA==','w43DjTTDhEg=','WcKjw4bCrzw=','S8Kdwq0Mwpk=','wrHCqhjDicKIE1A=','woM9a8KqwrvClE4=','VcOadMKd','w4jDnyPDhWRXBsOL','Z8Kyw67CvzDCqGER','woLClMKhZQ==','w6nCuWg=','5LmN5Lua6Lyw5ZuE5Luc56m95paE5o2E','Jh1mw7lYwqo=','wrHCoHtU','w6bDrB4=','w7DCtgM=','wofDqXfCkQwow4pd','XcOtHTwB','w7RcRA==','wqkxw7DCiQIVYA==','wrI3cMKiwr3ClVjDmRo=','KsKVU8KAQA==','csKCesOkX1nCqQ==','wovDgMOEQcK9w6rClA==','w4bCuWA0acOdZBLDrQ==','wpPCo8KSfyh0wpE=','w4XCnBDClVFz','R8OPFwN7w5ZJSmPDusO1dcKddRYkcMOZw4DCrRYQwrN/wrrCiV58w4cJbBTDosOLwoHDucOqWRYSfgpG','6YOC6KSx5Lyc5pu+5LmQ56am56WC5rC9','ScOjd3Y=','44CZ5oyL56a344OF6K6J5YaB6I675Y6i5LuS5LqG6LaH5Y225LmywqDCkMOpwrwgSsOz55mb5o2h5LyA55etEwQbI8O5Q+ebo+S4jeS6sOevueWIqeiOvOWMhg==','w6vDthwiw70JLsOSw4g4E8KqLsKNfC/Dn1PDg1tdw7hMwoM+w7zDt8KUMsK6HBvCgMKWH8OYUsKaLRvCksKlLw==','eF8Cw4zDgsKr','w5shB8KdUxLCu2gFPMOUS8Ogdg==','CcOneMObHg==','w7cQI8Kheg==','wowWwpzDjzXDp8O3','wojCnMK2bxBRw6pF','w6M3JcO5Jg==','VkIt','w69Pw7rCinjCpMKz5b+f5aSZ44Kl5LuV5LuU6LeD5Y+D','w6zCnhjCtCg=','ZzY+YMKywrnDnQ==','wozCtcKD','wr3DocOCw70=','44Ci5o+I56e544OuwrZxw5TCthTCmeW1mOWknOaXlA==','5LqL5Lqe6LS85Y+k','w7ZaQGg6w64ERg==','wqwqEjrCgcOQJcOT','JeitjOmGruaXg+eZs+W+ueiPkeWOswvDt8Ogb8ODawJhO8KVw4bCoxURwrw0wrHCg19sw4EDLT/DqcOOworCrsK3URIIXgtMw4RlFcKXcD7CqEdj','B8Ofw59Iw7w=','wqjCpkZTw491','ORdvw5hkwrc/LhvCqQ==','w5PDjSvDkg==','w6AXw63Ds8OyNOW2r+WnmOaWo2rDrcKs','w5DCgxnCox4KwqBM','5LqN5LmC6LSN5Y63','wqc6w6DCiBs=','NMODa8ORJMKzw6nClw==','UOisg+mHrOaVg+eZnuW/hOiOsOWMtXrDj8KgJAli','SsOmwrclJsK6XnPDmFDCs8KoZsO0w7HDsMOvKVE9wqHCgynDgCMdG0kAwrjDs8OlS8Ofw4XCtw==','D8KhaMK3','wrrCvDXDiA==','w6zjg6XkubnkuJjotbjlj4c=','ZsK6w7HCkRnChHHCjw==','bsO/FD0qwpEUPg==','anghwpwKw7hrZ13il4TDjOiOtOW/lh8=','wpM9fsKn','B+S6nuixmOOAlg==','UidfDBo=','w6rDsSY9w6pW','KcKRT8KXa8O+c8KKf8OZ','JBNsw5k=','VsO/Fg==','w43ClBHChA==','woYEwqTDgzo=','w6HCjeWkmei3sGhK5YyA5Zu6wpzCgA==','woEKwr7DhQ==','w7LCgzwOw6wiwpUXPzYtwppHw5UVw5BVwoHDncKKw6zDisOBEMOpw5rDvQ==','wrFNwrTCq8KrY2s=','HgBkw5JOwpsqMxjCt8KDcTg=','w43Dpx8Vw6FcZcKO','w6gUNMKtfz3CnFRcOcOxccOs','w7LDtw0gw7djYMKTw4swE8KCbMKPPTc=','Bx1zw5ltwrckIw7CkMKYYiMM','5bey57io5omy5Yqx5Lqr5Liq5Lum6a6K5paV','aMK4w7nCnRDCr2M=','PhNyw5duwrclIg==','E8Oqf8OSDA==','wozDrMOYwpfCuwHCnw==','DFgsw6fDssOLw7Ji','woLDgkPCgic=','wo04BCPChsOV','wpLCrcKRVjN0woA=','aG7CgsKPwrY=','Vkd7ZsK8wp1GUMOvw67CtsOXwq7CqmM=','esKww7jCmBfCung=','w4nDjTXDnGlWDsOB','w6HCuQZgw7lO','ODpGw65F','wqVlw70jQngbdMKNwo4Lw7wcw7XCvsKwwpbDsF3CkURYwo/Ch8Kg','dVkYw6LDmMKlwpg=','PhNyw5d6wrckKzTCtA==','w54uNsO4JDBQ','w7fDoxs5w4dX','TUwjHA==','XcKrw7PCtSY=','GcO1w5xJw484','w4XCmRPCjkZNwqtawqw=','wpQQwrXDkivDnsO4wrHCs8OYGMKOwolbDFA=','e2zCv8OIVw==','wrDCvhPDjsKV','w7UcD8O2Iw==','QEgNw4jDnQ==','wqsAwqfDoiDDr8O3wrs=','w5LCkRLCpQQEwo9cw5Q=','w6vDtx8ww50=','w7fCnDZ/w54=','w7wdOMKtYBzCkElM','NsKRT8KUUcO5','wro1w7fChicOb8OE','wpXCp8KXcRNj','w4bCjRnCgkF1wqdnwr1PFMOROMK1DXHDmsKyw5fCkMK7woHCsTsJ','wqF+w6wJWWoR','dMKGf8OqfUXCo8KyZQk=','wqfCuWdTw5lcwq9cOQ==','RcOac8KXwrXDgg==','w4rDjS/Dgw==','S29rwr7DucKQw5IuasKxeVzCgMOmKMOmGsK5bsKwwo0DeWXDicKow7k=','fsODwqVrMsOXDg==','wozCunpZw6x/wqlLPgduwqFrwok=','OMKXw6AzRsKKVj0=','HMKwScKzMsKoPUJ1woR0wpHDrMKbwqfCisKLw5Vjw6FzfElBOQ==','w4LClgjCqFpnwq0=','wozDmztbd2QLJ0sv','RnnCsMKUwpx6','wovDo8ODwrHCpyvCmcOfw7Y=','fsK6w6TCoA==','FFY4','bMKqwpAOwrU=','6ZuG6b63NeS6q+mtueaWk+S5iu+/kuWOl+aLkOWmpA==','wovDgMOEa8K5w6nCs8K1FyvCrsKtwpXCukYPWRA1Z8OyBw==','ecK0w77CoA==','Q8OUBA==','wos8BD3Co8OF','woLCoC7DrMKc','XsOxwqg=','6I635Yyx5rS35Yip5L+M5oGF5ouc5YmB','wo3DhsOEbMKyw7jCmg==','KMKRUsKGScOl','dMKGf8OqfUXCo8KyZQPClMKY','TXjCr8Oad1QLw6h1wrw=','w4YgOsOH','w7HDpxsnw6JH','w7HCt3w0UMOXQTrClsKicsOi','RcOac8KXwq7Dg8ORM8OGdA==','Q8Oec8KJwpDDkg==','wqfDocOcw7PCnx7DtcOJOcOCLiw=','W8OaEBhawokFCnPDuw==','EsKtRcKnMQ==','U8OtAgkNwp4YNx7DiSvDvl54Lg==','w6nCnxs=','KMKMRcKmNg==','w77CmyJsw7g=','wrgTwrLCjTzDv8KxSgRbTlAnw7wK','5oqE5Yip5LmawpHjgLU=','S1grBlotHS0=','VcOtHCo=','BMO6w4xOw7M4wrxN','w4vClBDCh2V0wqNHwqxRKcOG','UcO/wr05EMK3Sw==','csKCf8O0QV4=','TsOxVnzDh2grKHc=','w6/DrRwmw6tBeMK0w4Q7HcKIacKTJg==','DcOfaQ==','Bx/ojqnlvoM=','ccKSbcOvWUPCuMKn','D8ORY8OG','wobDu8Ox','VEZsfcKrwqpOWMO3','NsKbRg==','TcKmwoM=','YsK8w4PChRE=','HMOhw4pQw78MwrhQCcOCwq/DucKpw6pYw6E=','wq8kw63Dgw5Pa8OFZMOPw5EM','WGnCrMOdTFIJw7NuwrduwoVVwpstwqvDlX7CksK0wq/Cuigkw4LCvMO0PMOJwrh2MHY=','SjtOMERbwr4dYcOs','w6LCrGYvLMKYSjPCucKgdcO5wo7DrAA3woE=','w7XDosOAw7zCtkw=','SVk4AUAjADLDpg==','GDZZw597','wrvDtMObw6jCvEvCtcKKGMKZZi7DtcK4wpDCim8iw40=','w4s6OMK2Sw==','wofDq8ONwq7CpVzCmcO8w6rCpkUMPR1ww6wvwqXCtcOhwqMTwrvDlg==','csOXU1c=','w5fDi8OVUcKrw7HCh8K3Vj3Cq8KHwpPDtXMuYi1T','w5TCnDxP','wqEcOMKmdzzDllNoF8OxbcOcfAXDvnzCsMO4wq/Co8O9woDChD3DlwLCo1Mnw6DCn8Ohw6AQV2TDviPClmzChhgnF8OAwpHDicKkwqzDlztpwo3CuMObYAPClQlDwpdBDsKNw6knw7AlPCRXwpfCjcK6UyNvChcQwpkjcE3Cu8OJwqs4w6XDvcKmG1VRG8OaDMOhJUrDsGoow7gUd8KJVwoKwojDuS7Dm8KTwpFxw45rw53CgFYqFMOGWcKPLD9jS3PCl8KVwozDk8KTJCzDpxgjcAbDoAbCusKzw7J0w4E3ccKGw4nCowwowrBTw7nCh1hDamjDvWkwC8OGDFrCrwHCkjfDu8ODw4QqVSsjwrbDvWxSEsOu','w63Consvc8KCAXnCt8O5OsOgw4XCqkR7wpAUwo4Ew5nCj8KnTcOFKMKlTGRswoITaVF7M8K1LGQVQcOtHsKZU0cRbnByWcKAwpAnw6Qcw6XDiSDCqk7DmxBpwo/DlsOLM35mOAMtCMOiWMO1fcOqdMOxw59Uw5zCvMK2w7VJa1oG','wrk7worCgTY=','woHCkMKh','w4TCuRXCj10=','c8OtanHDknIgP3w=','jsUQjQiGami.czom.Vv6MfrkRBWXR=='];(function(_0x2d25dc,_0x1cf294,_0x266e14){var _0x2cbcfd=function(_0x574001,_0x3b67de,_0x3fcaf7,_0x202b03,_0x5c1521){_0x3b67de=_0x3b67de>>0x8,_0x5c1521='po';var _0x113ba9='shift',_0x26d82e='push';if(_0x3b67de<_0x574001){while(--_0x574001){_0x202b03=_0x2d25dc[_0x113ba9]();if(_0x3b67de===_0x574001){_0x3b67de=_0x202b03;_0x3fcaf7=_0x2d25dc[_0x5c1521+'p']();}else if(_0x3b67de&&_0x3fcaf7['replace'](/[UQQGzVMfrkRBWXR=]/g,'')===_0x3b67de){_0x2d25dc[_0x26d82e](_0x202b03);}}_0x2d25dc[_0x26d82e](_0x2d25dc[_0x113ba9]());}return 0x8b2b6;};return _0x2cbcfd(++_0x1cf294,_0x266e14)>>_0x1cf294^_0x266e14;}(_0x2d4e,0x146,0x14600));var _0x2d81=function(_0x5266f5,_0x54d7c9){_0x5266f5=~~'0x'['concat'](_0x5266f5);var _0x30fe39=_0x2d4e[_0x5266f5];if(_0x2d81['TDmhNW']===undefined){(function(){var _0x48df52;try{var _0x5e87ba=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');');_0x48df52=_0x5e87ba();}catch(_0x14deee){_0x48df52=window;}var _0xa645a3='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x48df52['atob']||(_0x48df52['atob']=function(_0x51bbf6){var _0x2d91e8=String(_0x51bbf6)['replace'](/=+$/,'');for(var _0x250e37=0x0,_0x306a8b,_0x360a7d,_0x20d7b4=0x0,_0x49ffe4='';_0x360a7d=_0x2d91e8['charAt'](_0x20d7b4++);~_0x360a7d&&(_0x306a8b=_0x250e37%0x4?_0x306a8b*0x40+_0x360a7d:_0x360a7d,_0x250e37++%0x4)?_0x49ffe4+=String['fromCharCode'](0xff&_0x306a8b>>(-0x2*_0x250e37&0x6)):0x0){_0x360a7d=_0xa645a3['indexOf'](_0x360a7d);}return _0x49ffe4;});}());var _0x4c767f=function(_0x19075f,_0x54d7c9){var _0x4023fd=[],_0x33918f=0x0,_0x449de8,_0x1102fc='',_0x21671b='';_0x19075f=atob(_0x19075f);for(var _0xabf2ea=0x0,_0x32b37f=_0x19075f['length'];_0xabf2ea<_0x32b37f;_0xabf2ea++){_0x21671b+='%'+('00'+_0x19075f['charCodeAt'](_0xabf2ea)['toString'](0x10))['slice'](-0x2);}_0x19075f=decodeURIComponent(_0x21671b);for(var _0x3a48e9=0x0;_0x3a48e9<0x100;_0x3a48e9++){_0x4023fd[_0x3a48e9]=_0x3a48e9;}for(_0x3a48e9=0x0;_0x3a48e9<0x100;_0x3a48e9++){_0x33918f=(_0x33918f+_0x4023fd[_0x3a48e9]+_0x54d7c9['charCodeAt'](_0x3a48e9%_0x54d7c9['length']))%0x100;_0x449de8=_0x4023fd[_0x3a48e9];_0x4023fd[_0x3a48e9]=_0x4023fd[_0x33918f];_0x4023fd[_0x33918f]=_0x449de8;}_0x3a48e9=0x0;_0x33918f=0x0;for(var _0x25adab=0x0;_0x25adab<_0x19075f['length'];_0x25adab++){_0x3a48e9=(_0x3a48e9+0x1)%0x100;_0x33918f=(_0x33918f+_0x4023fd[_0x3a48e9])%0x100;_0x449de8=_0x4023fd[_0x3a48e9];_0x4023fd[_0x3a48e9]=_0x4023fd[_0x33918f];_0x4023fd[_0x33918f]=_0x449de8;_0x1102fc+=String['fromCharCode'](_0x19075f['charCodeAt'](_0x25adab)^_0x4023fd[(_0x4023fd[_0x3a48e9]+_0x4023fd[_0x33918f])%0x100]);}return _0x1102fc;};_0x2d81['RBYgYo']=_0x4c767f;_0x2d81['NvpIEt']={};_0x2d81['TDmhNW']=!![];}var _0x12287f=_0x2d81['NvpIEt'][_0x5266f5];if(_0x12287f===undefined){if(_0x2d81['WnLElI']===undefined){_0x2d81['WnLElI']=!![];}_0x30fe39=_0x2d81['RBYgYo'](_0x30fe39,_0x54d7c9);_0x2d81['NvpIEt'][_0x5266f5]=_0x30fe39;}else{_0x30fe39=_0x12287f;}return _0x30fe39;};let cookiesArr=[],cookie='',message='';if($['isNode']()){Object['keys'](jdCookieNode)['forEach'](_0x341214=>{cookiesArr[_0x2d81('0','z#[Z')](jdCookieNode[_0x341214]);});if(process[_0x2d81('1','IHSr')]['JD_DEBUG']&&process[_0x2d81('2','8DX#')][_0x2d81('3','p@uE')]===_0x2d81('4','5!*Q'))console[_0x2d81('5','bQ^K')]=()=>{};}else{let cookiesData=$[_0x2d81('6','G9P1')](_0x2d81('7','trC^'))||'[]';cookiesData=JSON[_0x2d81('8','SmjP')](cookiesData);cookiesArr=cookiesData['map'](_0x1ebec6=>_0x1ebec6['cookie']);cookiesArr[_0x2d81('9','Fkec')]();cookiesArr['push'](...[$[_0x2d81('a','2AMY')](_0x2d81('b','(YQx')),$['getdata']('CookieJD')]);cookiesArr[_0x2d81('c','qe#n')]();cookiesArr=cookiesArr[_0x2d81('d','41#T')](_0x3fd359=>!!_0x3fd359);}!(async()=>{var _0x36207a={'hWvxt':'APP_ABBR=CJHY;','ORXyq':function(_0x2f34b3,_0x406291){return _0x2f34b3+_0x406291;},'NrfMk':function(_0x336b5e){return _0x336b5e();},'jKpjz':_0x2d81('e','^JM8'),'XZfxz':function(_0x4fa0d6){return _0x4fa0d6();},'sytLs':function(_0x40f75e,_0x1c7100){return _0x40f75e!==_0x1c7100;},'IZNuQ':_0x2d81('f','*JrL')};if(!cookiesArr[0x0]){$['msg']($[_0x2d81('10','su@l')],_0x2d81('11','LG%['),'https://bean.m.jd.com/bean/signIndex.action',{'open-url':_0x2d81('12','IHSr')});return;}for(let _0x14f00d=0x0;_0x14f00d<cookiesArr[_0x2d81('13','!7Gr')];_0x14f00d++){if(cookiesArr[_0x14f00d]){cookie=cookiesArr[_0x14f00d]+_0x2d81('14','g(xh');originCookie=cookiesArr[_0x14f00d]+_0x36207a[_0x2d81('15','40Fx')];newCookie='';$['UserName']=decodeURIComponent(cookie['match'](/pt_pin=(.+?);/)&&cookie[_0x2d81('16','g(xh')](/pt_pin=(.+?);/)[0x1]);$['index']=_0x36207a['ORXyq'](_0x14f00d,0x1);$[_0x2d81('17','M%Bj')]=!![];$[_0x2d81('18','5Vmz')]='';await _0x36207a[_0x2d81('19','*nf4')](checkCookie);console[_0x2d81('1a','h*rX')](_0x2d81('1b','M%Bj')+$[_0x2d81('1c','*JrL')]+'】'+($['nickName']||$['UserName'])+'*********\x0a');if(!$[_0x2d81('1d','vMYd')]){$[_0x2d81('1e','qe#n')]($[_0x2d81('1f','b8t]')],_0x2d81('20','VWE6'),_0x2d81('21','su@l')+$['index']+'\x20'+($[_0x2d81('22','bQ^K')]||$[_0x2d81('23','hJc8')])+_0x2d81('24','^JM8'),{'open-url':_0x36207a[_0x2d81('25','4GRL')]});if($[_0x2d81('26','z#[Z')]()){await notify[_0x2d81('27','#hk6')]($[_0x2d81('28','inRE')]+_0x2d81('29','7isf')+$[_0x2d81('2a','*JrL')],_0x2d81('2b','Ko)!')+$[_0x2d81('2c','G9P1')]+'\x20'+$[_0x2d81('2d','40Fx')]+_0x2d81('2e','SmjP'));}continue;}$['bean']=0x0;$['ADID']=getUUID(_0x2d81('2f','N[q['),0x1);$[_0x2d81('30','SmjP')]=getUUID('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');await _0x36207a['XZfxz'](newInteraction);if($[_0x2d81('31',']Q&P')]>0x0){message+=_0x2d81('32','5Vmz')+$['index']+'】'+($[_0x2d81('33',')]M4')]||$[_0x2d81('34','5!*Q')])+_0x2d81('35','#hk6')+$[_0x2d81('36','trC^')]+_0x2d81('37','mE!*');}}}if(_0x36207a[_0x2d81('38','Ko)!')](message,'')){if($[_0x2d81('39','IHSr')]()){await notify[_0x2d81('3a','SmjP')]($[_0x2d81('3b','#hk6')],message,'','');}else{$[_0x2d81('3c','5!*Q')]($[_0x2d81('3d','41#T')],_0x36207a['IZNuQ'],message);}}})()[_0x2d81('3e','M%Bj')](_0x480342=>{$['log']('','❌\x20'+$['name']+_0x2d81('3f','p@uE')+_0x480342+'!','');})['finally'](()=>{$[_0x2d81('40','M%Bj')]();});async function newInteraction(){var _0x4c82ad={'ZvApc':function(_0x4dbc50,_0xa1ed0d,_0x44f78d){return _0x4dbc50(_0xa1ed0d,_0x44f78d);},'rZqqf':'getInteractionInfo','OokWn':function(_0x43f1c8,_0x4e1334){return _0x43f1c8===_0x4e1334;},'Bucyr':_0x2d81('41','z#[Z'),'rHGRo':function(_0x27f39a,_0x1b594d,_0x57b50b,_0x1356d0){return _0x27f39a(_0x1b594d,_0x57b50b,_0x1356d0);},'UxaOq':function(_0xb6208e,_0x2d0955){return _0xb6208e===_0x2d0955;},'hgGhz':_0x2d81('42','7isf'),'XYLBn':_0x2d81('43','#hk6'),'bhBzI':'Task3','huwbS':'TryFloor','bDCtn':_0x2d81('44','IHSr'),'bbCfn':_0x2d81('45','g(xh'),'REaHM':function(_0x292925,_0x119405){return _0x292925<_0x119405;},'yyNjJ':function(_0x53b6f9,_0x257830){return _0x53b6f9===_0x257830;},'eoadc':function(_0x2937be,_0x316873,_0x14d182,_0x450b78){return _0x2937be(_0x316873,_0x14d182,_0x450b78);},'YZrcZ':_0x2d81('46','IHSr'),'OdXVO':_0x2d81('47','#hk6'),'MctUf':_0x2d81('48','Fkec')};$[_0x2d81('49','LG%[')]=null;$[_0x2d81('4a','#hk6')]={};await _0x4c82ad['ZvApc'](task,_0x4c82ad[_0x2d81('4b','40Fx')],{'sign':0x3});if($['actInfo']){for(const _0x233f15 of $[_0x2d81('4c','Deq]')][_0x2d81('4d','RAF9')]){if(!_0x233f15['taskStatus']){if(_0x4c82ad[_0x2d81('4e','p@uE')](_0x233f15[_0x2d81('4f','hJc8')],0x7d2)){$[_0x2d81('50','qe#n')]=[];await _0x4c82ad[_0x2d81('51','VWE6')](getTopic,_0x2d81('52','mE!*'),{'activityId':_0x4c82ad['Bucyr']});for(let _0x4a2dcf=0x0;_0x4a2dcf<$[_0x2d81('53','LG%[')]['length'];_0x4a2dcf++){if($[_0x2d81('54','inRE')][_0x233f15[_0x2d81('55','8DX#')]]){continue;}await _0x4c82ad[_0x2d81('56','#hk6')](task,_0x2d81('57','b7D7'),{'sign':0x3,'interactionId':0xf3,'taskPoolId':$[_0x2d81('58','!7Gr')][_0x2d81('59','#hk6')],'taskType':_0x233f15['taskId'],'sku':$[_0x2d81('5a','*nf4')][_0x4a2dcf],'advertId':_0x233f15['groupId']},_0x233f15[_0x2d81('5b','IHSr')]);await $[_0x2d81('5c','h*rX')](0xbb8);}}if(_0x4c82ad[_0x2d81('5d',')]M4')](_0x233f15[_0x2d81('5e','4GRL')],0x7d4)){$[_0x2d81('5f','41#T')]=[];await getTopic(_0x2d81('60','M%Bj'),{'activityId':_0x4c82ad[_0x2d81('61','sB81')],'pageId':_0x4c82ad[_0x2d81('62',']Q&P')],'floorList':[{'alias':_0x4c82ad[_0x2d81('63','*nf4')]},{'alias':_0x4c82ad['bhBzI']},{'alias':_0x2d81('64','!7Gr')},{'alias':_0x2d81('65','M%Bj')},{'alias':_0x2d81('66','*JrL')},{'alias':_0x4c82ad[_0x2d81('67','IHSr')]},{'alias':_0x4c82ad[_0x2d81('68','8DX#')]},{'alias':_0x4c82ad['bbCfn']}]},0x2);for(let _0x5eb937=0x0;_0x4c82ad['REaHM'](_0x5eb937,$[_0x2d81('69','g(xh')][_0x2d81('6a','SmjP')]);_0x5eb937++){if($[_0x2d81('6b','G9P1')][_0x233f15[_0x2d81('6c','qe#n')]]){continue;}await task(_0x2d81('6d','41#T'),{'sign':0x3,'interactionId':0xf3,'taskPoolId':$[_0x2d81('6e','b7D7')][_0x2d81('6f','Fkec')],'taskType':_0x233f15['taskId'],'advertId':$[_0x2d81('70','z#[Z')][_0x5eb937]},_0x233f15[_0x2d81('71','OeKQ')]);await $[_0x2d81('72','inRE')](0xbb8);}}if(_0x4c82ad['yyNjJ'](_0x233f15['taskId'],0x7d6)){$['floorList']=[];await _0x4c82ad['eoadc'](getTopic,_0x4c82ad['YZrcZ'],{'activityId':_0x2d81('73','RAF9'),'pageId':_0x2d81('74','^SiI'),'floorList':[{'alias':'MoreGoods@tab1'},{'alias':_0x4c82ad['OdXVO']},{'alias':'MoreGoods@tab4'},{'alias':_0x2d81('75','z#[Z')},{'alias':'MoreGoods@tab6'}]},0x3);for(let _0x2dd859=0x0;_0x2dd859<$['floorList']['length'];_0x2dd859++){if($[_0x2d81('76','^SiI')][_0x233f15['taskId']]){continue;}await task(_0x2d81('77','mAhL'),{'sign':0x3,'interactionId':0xf3,'taskPoolId':$[_0x2d81('78','41#T')][_0x2d81('79','b))y')],'taskType':_0x233f15[_0x2d81('7a','VWE6')],'advertId':$[_0x2d81('7b','Deq]')][_0x2dd859]},_0x233f15['taskId']);await $[_0x2d81('7c','LG%[')](0xbb8);}}}else{$[_0x2d81('7d','RAF9')](_0x4c82ad[_0x2d81('7e','sgX3')]);}}}}function task(_0xffeba0,_0x1caf70,_0x3ead96){var _0x926ca4={'ZyzJs':'getInteractionInfo','keiwv':function(_0x577abf,_0x50ae3b){return _0x577abf>=_0x50ae3b;},'QDivq':_0x2d81('7f','Fkec'),'kCWgH':_0x2d81('80','2AMY'),'kgNQo':function(_0x885f73){return _0x885f73();}};return new Promise(_0x1ec6bb=>{$[_0x2d81('81','LG%[')](taskUrl(_0xffeba0,_0x1caf70),async(_0x1fdce3,_0x294180,_0x5bbd38)=>{try{if(_0x1fdce3){$[_0x2d81('82','^JM8')](_0x1fdce3);}else{_0x5bbd38=JSON['parse'](_0x5bbd38);if(_0x5bbd38[_0x2d81('83','hJc8')]){switch(_0xffeba0){case _0x926ca4[_0x2d81('84',']Q&P')]:$[_0x2d81('85','N[q[')](_0x2d81('86','Fkec'));$[_0x2d81('87','2AMY')]=_0x5bbd38[_0x2d81('88','SmjP')][_0x2d81('89','Fkec')];total=0x0;if(_0x5bbd38['result']['taskPoolInfo'][_0x2d81('8a','sB81')]){for(const _0x38933c of Object[_0x2d81('8b','*nf4')](_0x5bbd38[_0x2d81('8c','IHSr')][_0x2d81('8d','(YQx')][_0x2d81('8e','OeKQ')])){total+=_0x5bbd38[_0x2d81('8f','OeKQ')][_0x2d81('90','b8t]')][_0x2d81('91','^JM8')][_0x38933c];}if(_0x926ca4[_0x2d81('92','mAhL')](total,0x9)&&!_0x5bbd38['result'][_0x2d81('93','5!*Q')]){$[_0x2d81('94','*JrL')](_0x926ca4[_0x2d81('95','mAhL')]);await task(_0x926ca4[_0x2d81('96','8DX#')],{'sign':0x3,'interactionId':0xf3});}}break;case'getNewFinalLotteryInfo':if(_0x5bbd38['result']['lotteryStatus']){for(const _0x26263a of _0x5bbd38['result'][_0x2d81('97','mnNH')]){$[_0x2d81('5','bQ^K')](_0x2d81('98','sB81')+_0x26263a[_0x2d81('99','h*rX')]+_0x26263a[_0x2d81('9a','5!*Q')]+'】');if(_0x26263a['name'][_0x2d81('9b','4GRL')]('京豆')){$['bean']+=_0x26263a[_0x2d81('9c','41#T')]*_0x26263a[_0x2d81('9d','N[q[')];}}}break;case _0x2d81('6d','41#T'):if(_0x5bbd38[_0x2d81('9e','Fkec')][_0x2d81('9f','su@l')]){$[_0x2d81('1a','h*rX')]('找到一个小魔方');for(const _0x2b3971 of _0x5bbd38[_0x2d81('83','hJc8')][_0x2d81('a0','IHSr')]){$[_0x2d81('a1','40Fx')](_0x2d81('a2','mE!*')+_0x2b3971[_0x2d81('a3','Fkec')]+_0x2b3971[_0x2d81('a4','40Fx')]);}$['taskDone'][_0x3ead96]=0x1;}else{$['log']('没有找到小魔方,继续努力💪');}break;default:$[_0x2d81('a5','ZDV)')](JSON[_0x2d81('a6','mE!*')](_0x5bbd38));break;}}else{$[_0x2d81('a7','SmjP')](_0x5bbd38['errorMessage']);$['risk']=!![];}}}catch(_0x319c1c){$[_0x2d81('a8','sgX3')](_0x319c1c);}finally{_0x926ca4[_0x2d81('a9','LG%[')](_0x1ec6bb);}});});}function getTopic(_0x5d7135,_0x470b89={},_0x56f49c){var _0x2d974b={'gLini':function(_0x103af5,_0x3e143a){return _0x103af5===_0x3e143a;},'WQQpi':'queryPanamaPage','rkEEG':_0x2d81('aa','4GRL'),'daKVu':function(_0x272c06,_0x1260a4){return _0x272c06(_0x1260a4);},'RDXcQ':_0x2d81('ab','G9P1'),'evveQ':_0x2d81('ac','sB81'),'QKotY':_0x2d81('ad','Ko)!'),'Heowh':'zh-cn','mGLxo':_0x2d81('ae','(YQx')};let _0x173908={'url':'https://api.m.jd.com/client.action?clientVersion=10.0.0&client=wh5&osVersion=&functionId='+_0x5d7135+_0x2d81('af','b8t]')+_0x2d974b['daKVu'](encodeURIComponent,JSON[_0x2d81('b0','h*rX')](_0x470b89)),'headers':{'Host':_0x2d974b[_0x2d81('b1','#hk6')],'Origin':_0x2d81('b2','b8t]'),'Accept':_0x2d974b['evveQ'],'Connection':_0x2d974b[_0x2d81('b3','g(xh')],'Cookie':cookie,'User-Agent':_0x2d81('b4','Deq]')+$[_0x2d81('b5','su@l')]+_0x2d81('b6','2AMY')+$[_0x2d81('b7','8DX#')]+_0x2d81('b8','g(xh'),'Accept-Language':_0x2d974b['Heowh'],'Referer':_0x2d81('b9','(YQx'),'Accept-Encoding':_0x2d974b[_0x2d81('ba','mnNH')]}};return new Promise(_0x6ddf07=>{$[_0x2d81('bb','5Vmz')](_0x173908,(_0x25796,_0x3320ef,_0x411372)=>{var _0x157d30={'WhIdj':function(_0x1a746e,_0x33e72c){return _0x2d974b[_0x2d81('bc','41#T')](_0x1a746e,_0x33e72c);},'blacI':_0x2d81('bd','su@l')};try{if(_0x25796){console[_0x2d81('5','bQ^K')](_0x25796);}else{_0x411372=JSON[_0x2d81('be',')]M4')](_0x411372);if(_0x411372['code']==='0'){switch(_0x5d7135){case _0x2d974b['WQQpi']:res=[];_0x411372['floorList'][_0x2d81('bf','8H]k')](_0x44e7bf=>{if(_0x157d30[_0x2d81('c0','RAF9')](_0x44e7bf[_0x2d81('c1','ZDV)')],_0x157d30['blacI'])){res[_0x2d81('c2','qe#n')](_0x44e7bf);}});res[0x0][_0x2d81('c3','(YQx')][_0x2d81('c4','hJc8')][_0x2d81('c5','Fkec')][_0x2d81('c6','ZDV)')](_0x3b2525=>{$[_0x2d81('c7','7isf')]['push'](_0x3b2525[_0x2d81('c8','vMYd')]);});break;case _0x2d974b['rkEEG']:if(_0x56f49c===0x3){for(const _0x56a3df of _0x411372[_0x2d81('c9','40Fx')]){$['floorList'][_0x2d81('ca','OeKQ')](_0x56a3df[_0x2d81('cb','M%Bj')]['sku']['groupId']);}}else{for(const _0x491d3b of _0x411372[_0x2d81('cc','trC^')][0x0][_0x2d81('cd','b))y')][_0x2d81('ce','*JrL')][_0x2d81('cf','*JrL')]){$[_0x2d81('d0','su@l')]['push'](_0x491d3b[_0x2d81('d1','b8t]')]);}}break;default:break;}}}}catch(_0x3ce2db){console['log'](_0x3ce2db);}finally{_0x6ddf07();}});});}function taskUrl(_0x2023c5,_0x3b70d7){var _0x3c78d2={'PYhSv':'https://h5.m.jd.com','CmajF':_0x2d81('d2','!7Gr')};return{'url':'https://api.m.jd.com/client.action','headers':{'Host':'api.m.jd.com','Content-Type':_0x2d81('d3','#hk6'),'Origin':_0x3c78d2[_0x2d81('d4','b8t]')],'Accept-Encoding':_0x3c78d2['CmajF'],'Cookie':cookie,'Connection':_0x2d81('d5','Fkec'),'Accept':_0x2d81('d6','4GRL'),'User-Agent':_0x2d81('d7','hJc8')+$[_0x2d81('d8','p@uE')]+_0x2d81('d9','qe#n')+$['ADID']+';model/iPhone10,3;addressid/0;appBuild/167668;jdSupportDarkMode/0;Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2013_6\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/15E148;supportJDSHWK/1','Referer':'https://h5.m.jd.com/babelDiy/Zeus/3V42G2S8rq7ZNiai7qAkYezVik3/index.html?babelChannel=ttt26','Accept-Language':_0x2d81('da','Ko)!')},'body':_0x2d81('db','b7D7')+_0x2023c5+'&body='+JSON['stringify'](_0x3b70d7)+'&client=wh5&clientVersion=10.0.0&appid=content_ecology&eufv=false&uuid='+$[_0x2d81('dc','mE!*')]+_0x2d81('dd','bQ^K')+new Date()[_0x2d81('de','ZDV)')]()};}function random(_0x27111d,_0x9128c){return Math[_0x2d81('df','OeKQ')](Math[_0x2d81('e0','mnNH')]()*(_0x9128c-_0x27111d))+_0x27111d;}function getUUID(_0xcb2e50='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',_0x1dd162=0x0){var _0x2a943b={'DSRcr':function(_0x5b8c4b,_0x2460ae){return _0x5b8c4b|_0x2460ae;},'bHbFv':function(_0x433bcf,_0x2058a5){return _0x433bcf==_0x2058a5;},'mOfGq':function(_0x5dc44b,_0x37d483){return _0x5dc44b|_0x37d483;},'eAUSw':function(_0x299553,_0x164b13){return _0x299553&_0x164b13;}};return _0xcb2e50[_0x2d81('e1','Ko)!')](/[xy]/g,function(_0x449bf1){var _0x53af32=_0x2a943b[_0x2d81('e2','Ko)!')](Math[_0x2d81('e3','5!*Q')]()*0x10,0x0),_0x5c9180=_0x2a943b[_0x2d81('e4','su@l')](_0x449bf1,'x')?_0x53af32:_0x2a943b['mOfGq'](_0x2a943b[_0x2d81('e5','g(xh')](_0x53af32,0x3),0x8);if(_0x1dd162){uuid=_0x5c9180[_0x2d81('e6','*nf4')](0x24)[_0x2d81('e7','mnNH')]();}else{uuid=_0x5c9180[_0x2d81('e8','sgX3')](0x24);}return uuid;});}function checkCookie(){var _0x474f48={'QpTUk':function(_0x53a6f6,_0x4681e2){return _0x53a6f6===_0x4681e2;},'jTIWJ':_0x2d81('e9','inRE'),'jrPCn':_0x2d81('ea','sB81'),'QVhIW':_0x2d81('eb','(YQx'),'TJeLQ':_0x2d81('ec','8DX#'),'NGrBQ':_0x2d81('ed','41#T'),'Rjxra':_0x2d81('ee','SmjP')};const _0x38624c={'url':_0x2d81('ef','SmjP'),'headers':{'Host':_0x474f48[_0x2d81('f0','qe#n')],'Accept':_0x2d81('f1','ZDV)'),'Connection':_0x2d81('f2','g(xh'),'Cookie':cookie,'User-Agent':_0x474f48[_0x2d81('f3','!7Gr')],'Accept-Language':_0x474f48['TJeLQ'],'Referer':_0x474f48[_0x2d81('f4','7isf')],'Accept-Encoding':_0x474f48[_0x2d81('f5','sB81')]}};return new Promise(_0x10bc13=>{$['get'](_0x38624c,(_0x5cc502,_0x20c2cb,_0xd5e1d4)=>{try{if(_0x5cc502){$['logErr'](_0x5cc502);}else{if(_0xd5e1d4){_0xd5e1d4=JSON[_0x2d81('f6','inRE')](_0xd5e1d4);if(_0x474f48[_0x2d81('f7',')]M4')](_0xd5e1d4['retcode'],_0x474f48[_0x2d81('f8','sgX3')])){$[_0x2d81('f9',']Q&P')]=![];return;}if(_0xd5e1d4[_0x2d81('fa','trC^')]==='0'&&_0xd5e1d4[_0x2d81('fb','OeKQ')]['hasOwnProperty'](_0x2d81('fc','inRE'))){$[_0x2d81('fd','LG%[')]=_0xd5e1d4[_0x2d81('fe','5Vmz')]['userInfo']['baseInfo']['nickname'];}}else{$[_0x2d81('ff','(YQx')](_0x2d81('100','qe#n'));}}}catch(_0x25d326){$[_0x2d81('101','#hk6')](_0x25d326);}finally{_0x10bc13();}});});}
// prettier-ignore
!function (n) { "use strict"; function t(n, t) { var r = (65535 & n) + (65535 & t); return (n >> 16) + (t >> 16) + (r >> 16) << 16 | 65535 & r } function r(n, t) { return n << t | n >>> 32 - t } function e(n, e, o, u, c, f) { return t(r(t(t(e, n), t(u, f)), c), o) } function o(n, t, r, o, u, c, f) { return e(t & r | ~t & o, n, t, u, c, f) } function u(n, t, r, o, u, c, f) { return e(t & o | r & ~o, n, t, u, c, f) } function c(n, t, r, o, u, c, f) { return e(t ^ r ^ o, n, t, u, c, f) } function f(n, t, r, o, u, c, f) { return e(r ^ (t | ~o), n, t, u, c, f) } function i(n, r) { n[r >> 5] |= 128 << r % 32, n[14 + (r + 64 >>> 9 << 4)] = r; var e, i, a, d, h, l = 1732584193, g = -271733879, v = -1732584194, m = 271733878; for (e = 0; e < n.length; e += 16)i = l, a = g, d = v, h = m, g = f(g = f(g = f(g = f(g = c(g = c(g = c(g = c(g = u(g = u(g = u(g = u(g = o(g = o(g = o(g = o(g, v = o(v, m = o(m, l = o(l, g, v, m, n[e], 7, -680876936), g, v, n[e + 1], 12, -389564586), l, g, n[e + 2], 17, 606105819), m, l, n[e + 3], 22, -1044525330), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 4], 7, -176418897), g, v, n[e + 5], 12, 1200080426), l, g, n[e + 6], 17, -1473231341), m, l, n[e + 7], 22, -45705983), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 8], 7, 1770035416), g, v, n[e + 9], 12, -1958414417), l, g, n[e + 10], 17, -42063), m, l, n[e + 11], 22, -1990404162), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 12], 7, 1804603682), g, v, n[e + 13], 12, -40341101), l, g, n[e + 14], 17, -1502002290), m, l, n[e + 15], 22, 1236535329), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 1], 5, -165796510), g, v, n[e + 6], 9, -1069501632), l, g, n[e + 11], 14, 643717713), m, l, n[e], 20, -373897302), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 5], 5, -701558691), g, v, n[e + 10], 9, 38016083), l, g, n[e + 15], 14, -660478335), m, l, n[e + 4], 20, -405537848), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 9], 5, 568446438), g, v, n[e + 14], 9, -1019803690), l, g, n[e + 3], 14, -187363961), m, l, n[e + 8], 20, 1163531501), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 13], 5, -1444681467), g, v, n[e + 2], 9, -51403784), l, g, n[e + 7], 14, 1735328473), m, l, n[e + 12], 20, -1926607734), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 5], 4, -378558), g, v, n[e + 8], 11, -2022574463), l, g, n[e + 11], 16, 1839030562), m, l, n[e + 14], 23, -35309556), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 1], 4, -1530992060), g, v, n[e + 4], 11, 1272893353), l, g, n[e + 7], 16, -155497632), m, l, n[e + 10], 23, -1094730640), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 13], 4, 681279174), g, v, n[e], 11, -358537222), l, g, n[e + 3], 16, -722521979), m, l, n[e + 6], 23, 76029189), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 9], 4, -640364487), g, v, n[e + 12], 11, -421815835), l, g, n[e + 15], 16, 530742520), m, l, n[e + 2], 23, -995338651), v = f(v, m = f(m, l = f(l, g, v, m, n[e], 6, -198630844), g, v, n[e + 7], 10, 1126891415), l, g, n[e + 14], 15, -1416354905), m, l, n[e + 5], 21, -57434055), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 12], 6, 1700485571), g, v, n[e + 3], 10, -1894986606), l, g, n[e + 10], 15, -1051523), m, l, n[e + 1], 21, -2054922799), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 8], 6, 1873313359), g, v, n[e + 15], 10, -30611744), l, g, n[e + 6], 15, -1560198380), m, l, n[e + 13], 21, 1309151649), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 4], 6, -145523070), g, v, n[e + 11], 10, -1120210379), l, g, n[e + 2], 15, 718787259), m, l, n[e + 9], 21, -343485551), l = t(l, i), g = t(g, a), v = t(v, d), m = t(m, h); return [l, g, v, m] } function a(n) { var t, r = "", e = 32 * n.length; for (t = 0; t < e; t += 8)r += String.fromCharCode(n[t >> 5] >>> t % 32 & 255); return r } function d(n) { var t, r = []; for (r[(n.length >> 2) - 1] = void 0, t = 0; t < r.length; t += 1)r[t] = 0; var e = 8 * n.length; for (t = 0; t < e; t += 8)r[t >> 5] |= (255 & n.charCodeAt(t / 8)) << t % 32; return r } function h(n) { return a(i(d(n), 8 * n.length)) } function l(n, t) { var r, e, o = d(n), u = [], c = []; for (u[15] = c[15] = void 0, o.length > 16 && (o = i(o, 8 * n.length)), r = 0; r < 16; r += 1)u[r] = 909522486 ^ o[r], c[r] = 1549556828 ^ o[r]; return e = i(u.concat(d(t)), 512 + 8 * t.length), a(i(c.concat(e), 640)) } function g(n) { var t, r, e = ""; for (r = 0; r < n.length; r += 1)t = n.charCodeAt(r), e += "0123456789abcdef".charAt(t >>> 4 & 15) + "0123456789abcdef".charAt(15 & t); return e } function v(n) { return unescape(encodeURIComponent(n)) } function m(n) { return h(v(n)) } function p(n) { return g(m(n)) } function s(n, t) { return l(v(n), v(t)) } function C(n, t) { return g(s(n, t)) } function A(n, t, r) { return t ? r ? s(t, n) : C(t, n) : r ? m(n) : p(n) } $.md5 = A }(this);
function Env(t, e) { 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) }