faker2/jd_mybbphdyh3_give.js

12 lines
144 KiB
JavaScript
Raw Normal View History

2024-09-14 20:06:11 +00:00
/*
萌娃遇中秋 集卡享好礼赠送卡片
cron:1 1 1 1 *
*/
const $ = new Env('9.14-10.7 萌娃遇中秋 集卡享好礼赠送卡片')
function Fv0bwu(){}var JVV5Ag=Object['defineProperty'],ex7peC,H05WziR,z65O3i,CVGylp,Hjhy90X,mSupToF,PdsI4z,bYfVAT0,Jz1t_sw,DT_yw7,O8l2dy,UWV9Lm3,WMCkuA,pM29rmR,kALD2C,mEuScil,cxiIkcV,fHE12i,zO681W;function DVUGRO(Fv0bwu){return ex7peC[Fv0bwu<0x1a1?Fv0bwu>0x8?Fv0bwu-0x9:Fv0bwu-0x60:Fv0bwu+0x51]}ex7peC=xmcff1();function ufFe6QQ(Fv0bwu,JVV5Ag){return H05WziR(Fv0bwu,'length',{value:JVV5Ag,configurable:!0x0})}Fv0bwu(H05WziR=Object.defineProperty,z65O3i=ufFe6QQ(ZaRRYJ((...JVV5Ag)=>{var H05WziR=ZaRRYJ(JVV5Ag=>{return ex7peC[JVV5Ag<0x145?JVV5Ag+0x53:JVV5Ag+0x18]},0x1);Fv0bwu(JVV5Ag[DVUGRO(0x3f)]=0x2,JVV5Ag[DVUGRO(0x9)]=JVV5Ag[0x1]);return JVV5Ag[H05WziR(-0x53)](JVV5Ag[0x0]())}),DVUGRO(0xa))(jwRTlk,aQbV0dk));var sMCZ8r=[],V5Q7hs_=[b150pfB(DVUGRO(0x32)),b150pfB(0x1),'\x7c\x3f\x63\x76\x38\x5b\x54\x3b\x73',b150pfB(DVUGRO(0xa)),b150pfB(0x3),b150pfB(0x4),b150pfB(DVUGRO(0x40)),b150pfB(DVUGRO(0x38)),b150pfB(DVUGRO(0x54)),b150pfB(0x8),b150pfB(DVUGRO(0x3c)),b150pfB(DVUGRO(0x57)),b150pfB(0xb),b150pfB(DVUGRO(0x3a)),'\x7a\x35\x44\x71\x4e\x37\x21\x64\x70\x77\x69\x7e\x34\x43\x66\x29\x3d\x6a\x21\x71\x64\x28\x7c\x4e\x7b\x56\x56\x33\x60\x43\x28\x61\x2b\x56\x67\x2b\x39\x50\x69\x5a\x79\x3a\x5f\x68\x51\x39\x78\x67',b150pfB(DVUGRO(0x58)),b150pfB(DVUGRO(0x4a)),b150pfB(0xf),'\x2c\x56\x7c\x23\x61\x6d\x22\x63\x2e\x61',b150pfB(0x10),b150pfB(0x11),b150pfB(0x12),b150pfB(DVUGRO(0x59)),b150pfB(DVUGRO(0x51)),b150pfB(DVUGRO(0xb)),b150pfB(DVUGRO(0x3e)),b150pfB(0x17),b150pfB(DVUGRO(0x5c)),b150pfB(DVUGRO(0x10)),b150pfB(0x1a),b150pfB(DVUGRO(0x5d)),b150pfB(DVUGRO(0x5e)),b150pfB(0x1d),b150pfB(DVUGRO(0x5f)),b150pfB(DVUGRO(0x61)),b150pfB(0x20),b150pfB(0x21),b150pfB(0x22),'~g+LYJmG=|B<@"6k&[8x',b150pfB(DVUGRO(0x1c)),b150pfB(0x24),b150pfB(0x25),b150pfB(0x26),b150pfB(0x27),b150pfB(0x28),b150pfB(0x29),b150pfB(0x2a),b150pfB(0x2b),b150pfB(DVUGRO(0x55)),'Yu*^|>)CBzP}d',b150pfB(0x2d),b150pfB(DVUGRO(0x56)),b150pfB(DVUGRO(0xb)),b150pfB(0x2f),b150pfB(0x30),b150pfB(0x31),'b<%oK#|??J',b150pfB(DVUGRO(0x64)),b150pfB(DVUGRO(0xe)),b150pfB(DVUGRO(0x65)),b150pfB(0x35),b150pfB(DVUGRO(0x6a)),b150pfB(DVUGRO(0x26)),b150pfB(0x38),b150pfB(DVUGRO(0xc)),b150pfB(0x3a),b150pfB(0x3b),b150pfB(0x3c),b150pfB(DVUGRO(0xfe)),b150pfB(DVUGRO(0x11)),b150pfB(DVUGRO(0x12)),b150pfB(DVUGRO(0xd)),b150pfB(0x40),b150pfB(DVUGRO(0x2f)),b150pfB(0x33),b150pfB(DVUGRO(0x6b)),b150pfB(DVUGRO(0x6c)),b150pfB(0x36),b150pfB(DVUGRO(0x3b)),'cR,y$#|??J',b150pfB(DVUGRO(0xc)),b150pfB(DVUGRO(0x68)),b150pfB(DVUGRO(0x48)),b150pfB(DVUGRO(0x78)),b150pfB(0x47),b150pfB(0x48),b150pfB(0x49),'\x64\x61\x43\x75\x7c',b150pfB(0x30),b150pfB(DVUGRO(0xd)),b150pfB(DVUGRO(0x42)),b150pfB(DVUGRO(0x75)),b150pfB(DVUGRO(0xe)),b150pfB(0x34),'\x62\x3c\x25\x6f\x4b\x23\x7c\x3f\x3f\x4a',b150pfB(0x35),b150pfB(0x4b),b150pfB(0x37),b150pfB(0x4c),b150pfB(0x4d),b150pfB(DVUGRO(0x74)),b150pfB(DVUGRO(0xf)),b150pfB(0x50),b150pfB(DVUGRO(0x31)),b150pfB(0x51),b150pfB(0x52),b150pfB(0x53),b150pfB(DVUGRO(0x7a)),b150pfB(DVUGRO(0xed)),b150pfB(DVUGRO(0x7c)),b150pfB(0x57),b150pfB(0x58),b150pfB(DVUGRO(0x7e)),b150pfB(DVUGRO(0x7f)),b150pfB(0x5b),b150pfB(0x5c),b150pfB(0x5d),'&?;N|vu#!fY4]d]LIROq',b150pfB(0x5e),b150pfB(DVUGRO(0x16)),b150pfB(DVUGRO(0x81)),b150pfB(DVUGRO(0x8e)),b150pfB(DVUGRO(0xf6)),b150pfB(0x24),b150pfB(DVUGRO(0x13b)),b150pfB(DVUGRO(0xb3)),b150pfB(0x65),b150pfB(DVUGRO(0xf)),b150pfB(0x66),b150pfB(0x67),b150pfB(0x68),b150pfB(0x69),b150pfB(0x3e),b150pfB(0x19),b150pfB(0x6a),b150pfB(0x6b),b150pfB(DVUGRO(0x14)),b150pfB(0x6d),b150pfB(DVUGRO(0x85)),b150pfB(0x6f),b150pfB(DVUGRO(0x87)),b150pfB(0x71),b150pfB(0x72),b150pfB(0x73),b150pfB(0x74),b150pfB(DVUGRO(0x10)),b150pfB(DVUGRO(0x19)),b150pfB(DVUGRO(0x13)),b150pfB(0x47),b150pfB(0x6a),b150pfB(0x6b),b150pfB(0x76),b150pfB(DVUGRO(0x11)),b150pfB(0x77),b150pfB(0x78),b150pfB(0x79),b150pfB(0x72),b150pfB(0x7a),b150pfB(0x19),b150pfB(DVUGRO(0x8a)),b150pfB(DVUGRO(0x4f)),b150pfB(DVUGRO(0x76)),b150pfB(0x49),b150pfB(DVUGRO(0x4e)),b150pfB(0x7e),b150pfB(DVUGRO(0x33)),b150pfB(0x45),b150pfB(0x19),b150pfB(DVUGRO(0x35)),b150pfB(DVUGRO(0x12)),b150pfB(0x19),b150pfB(DVUGRO(0x18)),b150pfB(DVUGRO(0x13)),b150pfB(0x47),b150pfB(0x81),b150pfB(DVUGRO(0x23)),
// 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.d