faker3/jd_sj38_draw.js

8 lines
185 KiB
JavaScript
Raw Normal View History

2025-03-03 10:43:24 +08:00
/*
cron: 10 11 * * *
*/
const $ = new Env('手机38抽奖');
var pGL_nm,OAjn04,umHZ6C,qNMlaNj,WagvGZ,XCmsSw9,DmLv2Zc,VgrYzwy,JfONkU,t4kMZ38,iaKhZs;function VltGFT(pGL_nm,OAjn04,umHZ6C){for(umHZ6C=0x0;umHZ6C<OAjn04;umHZ6C++)pGL_nm.push(pGL_nm.shift());return pGL_nm}const HlBs9mI=["length",0x1,0x2,0x0,"h",0x9d,0x57,0x5a,"g",0x5,0x6,0xa9,0x8,0xff,0x8d,"d","a",0xf2,"undefined","e",0x3f,"fromCodePoint",0x7,0xc,0x3,"push",0x16,0x89,"b",0x6e,0xa2,0x9,0x5b,0x56,"f",0x1fff,0x58,0xd,0xe,0x2c,0x5f,"c",0x36,0xcc,0x22,0x9c,0x15,0x72,0x6d,0x93,0x37,0x62,0x7f,0xa5,0x34,0xa,0x86,0x80,0x17,0x4,!0x1,0x5e,"i",0xb4,0xef,0x74,null,0xc5,0x3e,0x97,!0x0,0x9b,0x9a,0x6f,0x21,0xaa,0xab,0xae,0x33,0x66,0x40,0xba,0x3c,0xc2,0xc3,"UA",0xc7,0xc4,0xc6,0xc1,0xb0,0x83,0x26," ",0xda,0xca,0x7e,0x9e,0xdf,0xb3,0x23,0xe5,0xea,0xeb,"id",0xf6,0x3e8,0xf9,0x12c,0xf4,0x1f4,0xc9,0x101,0x7c,0x19,0x69,0x102,0xb5,0xb1,0x25,0xb,0x51,";",0x133,0x135,0x94,0x75,0xc0,0x1e,0x6a,0xd6,0x4d,0x1b,0x141,"ua",0x10,0x200,0x100,void 0x0,0xf,0xd7,0xf1,0x3ff,0x1f,0xe0,0xf0,0x12,0xbb,0x20,0x18,0x13,0x87,0xffff,0x31,0x98,0x15f,0x17b,0xd2,0x42,0x1d,0x41,0x188,0x50,0x48,0x1c,0xce,0x81,0x191,0x44,0x1a7,0xe4,0x1a,0x43,0x1ac,0x1ad,0x1ae,0x8b,0x7a,0x1b0,0x1b1,0x1b5,0x1b6,0x1c8,0xb7,0xa0,0x1e0,0x6b,0x4f,0xd800,0xdbff,0xdc00,0x10000,0xdfff,0xc8,0x55,0xdd,0x1e6,0x1e7,0xf8,0x1ed,0x1ee,0x1f0,0x32,0x1fe,0x1c2,0x216,0xfc00,0xffffff80,0xfffff800,0xffff0000,0xffe00000,0x220,0x221,0x800,0x10ffff,0x1fa,0x181,0xd4,0x45,0xbc,0x228,0x231,0x230,0x36363636,0x5c5c5c5c,0xf7,0x7ff,0x1fffff,0x4c,0x27,0x60,0x11,0x29,0x3d,0x428a2f98,0x71374491,0x4a3f0431,0x164a245b,0x3956c25b,0x59f111f1,0x6dc07d5c,0x54e3a12b,0x27f85568,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x7f214e02,0x6423f959,0x3e640e8c,0x1b64963f,0x1041b87a,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x67c1aeae,0x57ce3993,0x4ffcd838,0x40a68039,0x391ff40d,0x2a586eb9,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x7e3d36d2,0x6d8dd37b,0x5d40175f,0x57e599b5,0x3db47490,0x3893ae5d,0x2e6d17e7,0x2966f9dc,0xbf1ca7b,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x7b3787ec,0x7338fdf8,0x6f410006,0x5baf9315,0x41065c09,0x398e870e,0x6a09e667,0x4498517b,0x3c6ef372,0x5ab00ac6,0x510e527f,0x64fa9774,0x1f83d9ab,0x5be0cd19,0x24b,"=",0x24c,0x232,0x233,0x256,0x25f,0x2000000,0x4000000,0x16b,0x65,0x26e,0xe8,0xb8];DTmmA6d(X8vr6kL(uVrmFJ),X8vr6kL(jIP6Bc,HlBs9mI[0x18]),X8vr6kL(DSiuR7m),X8vr6kL(KHYtbWn));function X8vr6kL(pGL_nm,OAjn04=HlBs9mI[0x1]){Object.defineProperty(pGL_nm,HlBs9mI[0x0],{value:OAjn04,configurable:HlBs9mI[0x3c]});return pGL_nm}function KHYtbWn(...pGL_nm){DTmmA6d(pGL_nm[HlBs9mI[0x0]]=HlBs9mI[0x1],pGL_nm[-HlBs9mI[0x6]]="*U$Kqi6P81ms:5H40?S7VN_`J)9ngCzG|pIt/+.>{L,XbaTo[ref(dQ!y%l=ZjD<2}B&xE@WwRMkY;A]~h^F3vO#u\"c",pGL_nm[HlBs9mI[0x2]]=""+(pGL_nm[HlBs9mI[0x3]]||""),pGL_nm[HlBs9mI[0x5]]=pGL_nm[HlBs9mI[0x2]].length,pGL_nm[-HlBs9mI[0xb]]=[],pGL_nm[HlBs9mI[0x9]]=HlBs9mI[0x3],pGL_nm[HlBs9mI[0xa]]=HlBs9mI[0x3],pGL_nm[HlBs9mI[0x8]]=-HlBs9mI[0x1]);for(pGL_nm[HlBs9mI[0x4]]=HlBs9mI[0x3];pGL_nm[HlBs9mI[0x4]]<pGL_nm[HlBs9mI[0x5]];pGL_nm[HlBs9mI[0x4]]++){pGL_nm[-HlBs9mI[0x7]]=pGL_nm[-HlBs9mI[0x6]].indexOf(pGL_nm[HlBs9mI[0x2]][pGL_nm[HlBs9mI[0x4]]]);if(pGL_nm[-HlBs9mI[0x7]]===-HlBs9mI[0x1])continue;if(pGL_nm[HlBs9mI[0x8]]<HlBs9mI[0x3]){pGL_nm[HlBs9mI[0x8]]=pGL_nm[-HlBs9mI[0x7]]}else{DTmmA6d(pGL_nm[HlBs9mI[0x8]]+=pGL_nm[-HlBs9mI[0x7]]*HlBs9mI[0x20],pGL_nm[HlBs9mI[0x9]]|=pGL_nm[HlBs9mI[0x8]]<<pGL_nm[HlBs9mI[0xa]],pGL_nm[HlBs9mI[0xa]]+=(pGL_nm[HlBs9mI[0x8]]&HlBs9mI[0x23])>HlBs9mI[0x24]?HlBs9mI[0x25]:HlBs9mI[0x26]);do{DTmmA6d(pGL_nm[-HlBs9mI[0xb]].push(pGL_nm[HlBs9mI[0x9]]&HlBs9mI[0xd]),pGL_nm[HlBs9mI[0x9]]>>=HlBs9mI[0xc],pGL_nm[HlBs9mI[0xa]]-=HlBs9mI[0xc])}while(pGL_nm[HlBs9mI[0xa]]>HlBs9mI[0x16]);pGL_nm[HlBs9mI[0x8]]=-HlBs9mI[0x1]}}if(pGL_nm[HlBs9mI[0x8]]>-HlBs9mI[0x1]){pGL_nm[-HlBs9mI[0xb]].push((pGL_nm[HlBs9mI[0x9]]|pGL_nm[HlBs9mI[0x8]]<<pGL_nm[HlBs9mI[0xa]])&HlBs9mI[0xd])}return DSiuR7m(pGL_nm[-HlBs9mI[0xb]])}function nurj9A5(umHZ6C){if(typeof pGL_nm[umHZ6C]===HlBs9mI[0x12]){return pGL_nm[umHZ6C]=KHYtbWn(OAj
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