2024-08-25 11:06:28 +00:00
|
|
|
var _0xodn='jsjiami.com.v7';const _0x23cd63=_0x4432;(function(_0x37a978,_0x37ad03,_0x540be9,_0x2dc1b8,_0x3584d7,_0x3d9996,_0x18faf9){return _0x37a978=_0x37a978>>0x9,_0x3d9996='hs',_0x18faf9='hs',function(_0x15b391,_0x1602ff,_0x3f4b4b,_0x4b3c54,_0x38df29){const _0x36ca6e=_0x4432;_0x4b3c54='tfi',_0x3d9996=_0x4b3c54+_0x3d9996,_0x38df29='up',_0x18faf9+=_0x38df29,_0x3d9996=_0x3f4b4b(_0x3d9996),_0x18faf9=_0x3f4b4b(_0x18faf9),_0x3f4b4b=0x0;const _0x2b3034=_0x15b391();while(!![]&&--_0x2dc1b8+_0x1602ff){try{_0x4b3c54=parseInt(_0x36ca6e(0x171,'VySS'))/0x1*(parseInt(_0x36ca6e(0x60d,'T)b2'))/0x2)+-parseInt(_0x36ca6e(0x411,'pLEb'))/0x3+parseInt(_0x36ca6e(0x513,'v!j)'))/0x4+parseInt(_0x36ca6e(0x19d,'U#hc'))/0x5*(parseInt(_0x36ca6e(0x631,'xX%d'))/0x6)+parseInt(_0x36ca6e(0x7f9,'woP3'))/0x7+parseInt(_0x36ca6e(0x458,'IKRR'))/0x8*(parseInt(_0x36ca6e(0x502,'(qv&'))/0x9)+-parseInt(_0x36ca6e(0x6d1,'OJ!x'))/0xa;}catch(_0x10c79d){_0x4b3c54=_0x3f4b4b;}finally{_0x38df29=_0x2b3034[_0x3d9996]();if(_0x37a978<=_0x2dc1b8)_0x3f4b4b?_0x3584d7?_0x4b3c54=_0x38df29:_0x3584d7=_0x38df29:_0x3f4b4b=_0x38df29;else{if(_0x3f4b4b==_0x3584d7['replace'](/[ChMGPROWFVqTJbABYnXpkeK=]/g,'')){if(_0x4b3c54===_0x1602ff){_0x2b3034['un'+_0x3d9996](_0x38df29);break;}_0x2b3034[_0x18faf9](_0x38df29);}}}}}(_0x540be9,_0x37ad03,function(_0x2d19d9,_0x1fbf12,_0x7eb9ca,_0x353554,_0x5ddf5e,_0x18a130,_0x16db89){return _0x1fbf12='\x73\x70\x6c\x69\x74',_0x2d19d9=arguments[0x0],_0x2d19d9=_0x2d19d9[_0x1fbf12](''),_0x7eb9ca=`\x72\x65\x76\x65\x72\x73\x65`,_0x2d19d9=_0x2d19d9[_0x7eb9ca]('\x76'),_0x353554=`\x6a\x6f\x69\x6e`,(0x17faae,_0x2d19d9[_0x353554](''));});}(0x19800,0x89836,_0x36a7,0xce),_0x36a7)&&(_0xodn=`\x75d`);const _0x440755=$[_0x23cd63(0x5f6,'sE](')]()?require(_0x23cd63(0x49c,'%*kE')):'',_0x5c55c8=$[_0x23cd63(0x418,'cD%7')]()?require(_0x23cd63(0x61a,'19T4')):'',_0x4567ca=require(_0x23cd63(0x520,'I#aK')),_0x410612=require(_0x23cd63(0x705,'woP3')),_0x22e01c=require(_0x23cd63(0x656,'RIyk')),_0x487065=require(_0x23cd63(0x36b,'19T4'));let _0x5191d6=[],_0x11d061='',_0x286bff='',_0x126a94='',_0x53ce8d='3';if(process[_0x23cd63(0x5cf,'iE^!')][_0x23cd63(0x782,'n8n@')]){const _0x2c1e02=require(_0x23cd63(0x468,'%*kE'));$[_0x23cd63(0x5be,'wsBP')]=_0x2c1e02[_0x23cd63(0x125,'$AuI')]($[_0x23cd63(0x15c,'BDUh')][_0x23cd63(0x4c6,'wsBP')]($)),$[_0x23cd63(0x54b,'19T4')]=_0x2c1e02[_0x23cd63(0x70b,'iE^!')]($[_0x23cd63(0x395,'OJ!x')][_0x23cd63(0x5cc,'HAT[')]($));}if($[_0x23cd63(0x5a3,']RYf')]()){Object[_0x23cd63(0x1c2,'%)N7')](_0x440755)[_0x23cd63(0x1cb,'l$DD')](_0x49ff6b=>{const _0x43a3ce=_0x23cd63;_0x5191d6[_0x43a3ce(0x6c1,'l$DD')](_0x440755[_0x49ff6b]);});if(process[_0x23cd63(0x3d5,'%*kE')][_0x23cd63(0xfe,'xX%d')]&&process[_0x23cd63(0x71b,'9G9V')][_0x23cd63(0x56e,'IKRR')]===_0x23cd63(0x5b2,'wsBP'))console[_0x23cd63(0x227,'Rajo')]=()=>{};}else _0x5191d6=[$[_0x23cd63(0x2cd,'dYW9')](_0x23cd63(0x28c,'!UOy')),$[_0x23cd63(0x6a1,'bMm&')](_0x23cd63(0x147,'hsEU')),...jsonfomat($[_0x23cd63(0x54d,'(qv&')](_0x23cd63(0x598,']RYf'))||'[]')[_0x23cd63(0x734,'v!j)')](_0x4d458b=>_0x4d458b[_0x23cd63(0x128,'A[in')])][_0x23cd63(0x159,'U#hc')](_0x2956b4=>!!_0x2956b4);let _0x224156=process[_0x23cd63(0x31d,'dYW9')][_0x23cd63(0x60f,'QmxU')]||_0x23cd63(0x1b1,'pLEb'),_0x43af24=process[_0x23cd63(0x66c,'BDUh')][_0x23cd63(0x4e6,'Qjcm')]||_0x23cd63(0x3ff,'sE]('),_0x18b9a0=process[_0x23cd63(0x5cf,'iE^!')][_0x23cd63(0x50c,'dYW9')]||'',_0x4b6d18=_0x23cd63(0x7b9,']RYf');$[_0x23cd63(0x2c0,'KWTZ')]=_0x23cd63(0x2e3,'IKRR'),$[_0x23cd63(0x22b,'wsBP')]=$[_0x23cd63(0x323,'8nsM')][_0x23cd63(0x2b2,'I#aK')](/oC[0-9a-z]+/)[0x0],$[_0x23cd63(0x786,'T)b2')]=[_0x23cd63(0x5da,'kE(q'),_0x23cd63(0x6ed,'v!j)')];_0x18b9a0!=''&&($[_0x23cd63(0x5f7,'Qjcm')]=_0x18b9a0[_0x23cd63(0x22f,'KWTZ')]('&'));$[_0x23cd63(0x5ac,'kE(q')]=_0x23cd63(0x187,'!UOy'),$[_0x23cd63(0x48a,'nc2b')]=_0x23cd63(0x6ae,'F9Sw'),$[_0x23cd63(0x39c,'aYe]')]=![];let _0x12e84d=[_0x23cd63(0x653,'F9Sw')];function _0x4432(_0x135eea,_0x5ce1f8){const _0x120ad6=_0x36a7();return _0x4432=function(_0x193d25,_0x3fdb79){_0x193d25=_0x193d25-0xf0;let _0x36a743=_0x120ad6[_0x193d25];if(_0x4432['gReYku']===un
|
2024-06-28 07:47:44 +00:00
|
|
|
function Env(o, t) { 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((r, i) => { s.call(this, t, (t, e, s) => { t ? i(t) : r(e) }) }) } 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.logLevels = { debug: 0, info: 1, warn: 2, error: 3 }, this.logLevelPrefixs = { debug: "[DEBUG] ", info: "[INFO] ", warn: "[WARN] ", error: "[ERROR] " }, this.logLevel = "info", 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.encoding = "utf-8", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } getEnv() { return "undefined" != typeof $environment && $environment["surge-version"] ? "Surge" : "undefined" != typeof $environment && $environment["stash-version"] ? "Stash" : "undefined" != typeof module && module.exports ? "Node.js" : "undefined" != typeof $task ? "Quantumult X" : "undefined" != typeof $loon ? "Loon" : "undefined" != typeof $rocket ? "Shadowrocket" : void 0 } isNode() { return "Node.js" === this.getEnv() } isQuanX() { return "Quantumult X" === this.getEnv() } isSurge() { return "Surge" === this.getEnv() } isLoon() { return "Loon" === this.getEnv() } isShadowrocket() { return "Shadowrocket" === this.getEnv() } isStash() { return "Stash" === this.getEnv() } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null, ...s) { try { return JSON.stringify(t, ...s) } catch { return e } } getjson(t, e) { let s = e; if (this.getdata(t)) 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(r => { this.get({ url: t }, (t, e, s) => r(s)) }) } runScript(a, o) { return new Promise(r => { let t = this.getdata("@chavy_boxjs_userCfgs.httpapi"); t = t && t.replace(/\n/g, "").trim(); var e = (e = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout")) ? +e : 20, [s, i] = (e = o && o.timeout ? o.timeout : e, t.split("@")); this.post({ url: `http://${i}/v1/scripting/evaluate`, body: { script_text: a, mock_type: "cron", timeout: e }, headers: { "X-Key": s, Accept: "*/*" }, timeout: e }, (t, e, s) => r(s)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; this.fs = this.fs || require("fs"), this.path = this.path || require("path"); var t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), r = !s && this.fs.existsSync(e); if (!s && !r) return {}; r = s ? t : e; try { return JSON.parse(this.fs.readFileSync(r)) } catch (t) { return {} } } writedata() { var t, e, s, r, i; this.isNode() && (this.fs = this.fs || require("fs"), this.path = this.path || require("path"), t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), r = !(s = this.fs.existsSync(t)) && this.fs.existsSync(e), i = JSON.stringify(this.data), !s && r ? this.fs.writeFileSync(e, i) : this.fs.writeFileSync(t, i)) } lodash_get(t, e, s) { let r = t; for (const t of e.replace(/\[(\d+)\]/g, ".$1").split(".")) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, r, e) { return Object(t) === t && ((r = Array.isArray(r) ? r : r.toString().match(/[^.[\]]+/g) || []).slice(0, -1).reduce((t, e, s) => Object(t[e]) === t[e] ? t[e] : t[e] = Math.abs(r[s + 1]) >> 0 == +r[s + 1] ? [] : {}, t)[r[r.length - 1]] = e), t } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { var [, s, r] = /^@(.*?)\.(.*?)$/.exec(t); if (s = s ? this.getval(s) : "") try { const t = JSON.parse(s); e = t ? this.lodash_get(t, r, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { var [, r, i] = /^@(.*?)\.(.*?)$/.exec(e), a = this.getval(r), a = r ? "null" === a ? null : a || "{}" : "{}"; tr
|