Compare commits

...

4 Commits

Author SHA1 Message Date
1b46c09a32
ruaaa
又搞坏东西了
2024-04-04 20:34:16 +08:00
8da30a8ab4
rua 2024-04-04 20:30:55 +08:00
cb23b6a464
暂时性的把logger改成global 2024-04-04 19:49:01 +08:00
8ef0968ad0 反混淆ing 2024-04-04 18:23:12 +08:00

View File

@ -23,15 +23,15 @@ console.log("run_env", run_env);
let logger = { let logger = {
// debug: 只在 from_code 时输出 // debug: 只在 from_code 时输出
debug: function (...msg) { debug: function (...msg) {
if (run_env.from_code) { // if (run_env.from_code) {
// 上个色 // 上个色
// let last_stack = new Error().stack; // let last_stack = new Error().stack;
// console.log("\x1b[32mlogger<", last_stack, ">:", ...msg, "\x1b[0m") // console.log("\x1b[32mlogger<", last_stack, ">:", ...msg, "\x1b[0m")
console.log("\x1b[32mlogger:", ...msg, "\x1b[0m") console.log("\x1b[32mlogger:", ...msg, "\x1b[0m")
} // }
}, },
info: function (...msg) { info: function (...msg) {
console.log("logger: ", msg) console.log("logger: ", ...msg)
} }
} }
@ -357,7 +357,11 @@ var A = {
eR(a) { eR(a) {
var s = window.localStorage, var s = window.localStorage,
r = LangData.eQ("i") r = LangData.eQ("i")
logger.debug("set item to localstorage")
if (!run_env.from_code) {
s.setItem(r, a) s.setItem(r, a)
}
logger.debug("set item to localstorage")
s = $.nx() s = $.nx()
r = s.b r = s.b
if (r >= 4) H.throw_expression(s.ee()) if (r >= 4) H.throw_expression(s.ee())
@ -3502,9 +3506,6 @@ var A = {
}, },
P = { P = {
_AsyncRun__initializeScheduleImmediate() { _AsyncRun__initializeScheduleImmediate() {
// if (run_env.from_code) {
// console.log("creating scheduleImmediate")
// }
logger.debug("creating scheduleImmediate") logger.debug("creating scheduleImmediate")
var s, r, q = {} var s, r, q = {}
if (self.scheduleImmediate != null) { if (self.scheduleImmediate != null) {
@ -3629,6 +3630,7 @@ var A = {
} }
}, },
cO(a, b) { cO(a, b) {
logger.info("joining cO")
var s, r, q, p, o, n, m, l, k, j, i, h, g, f = {}, var s, r, q, p, o, n, m, l, k, j, i, h, g, f = {},
e = f.a = a e = f.a = a
for (s = t.h; true;) { for (s = t.h; true;) {
@ -3732,16 +3734,20 @@ var A = {
} }
}, },
uD() { uD() {
logger.info("calling uD", $.ms)
$.ms = true $.ms = true
try { try {
P.uw() P.uw()
} finally { } finally {
$.eO = null $.eO = null
$.ms = false $.ms = false
if ($.cR != null) $.nw().$1(P.ow()) if ($.cR != null) {
$.nw().$1(P.ow())
}
} }
}, },
ou(a) { ou(a) {
logger.debug("calling ou", $.ms)
var s = new P.i0(a), var s = new P.i0(a),
r = $.eN r = $.eN
if (r == null) { if (r == null) {
@ -9668,9 +9674,9 @@ P.kD.prototype = {
P.l8.prototype = { P.l8.prototype = {
e8(a, b) { e8(a, b) {
if (run_env.from_code) { if (run_env.from_code) {
// b.$0() b.$0()
// setTimeout // setTimeout
setTimeout(H.convert_dart_closure_to_js_md5(new P.kC(b), 0), 0) // setTimeout(H.convert_dart_closure_to_js_md5(new P.kC(b), 0), 0)
} else { } else {
if (self.setTimeout != null) { if (self.setTimeout != null) {
// self.setTimeout(H.convert_dart_closure_to_js_md5(new P.l9(this, b), 0), a) // self.setTimeout(H.convert_dart_closure_to_js_md5(new P.l9(this, b), 0), a)
@ -12453,56 +12459,56 @@ L.iR.prototype = {
return this.dJ(0, b) return this.dJ(0, b)
}, },
dJ(a, b) { dJ(a, b) {
var s = 0, var async_goto = 0,
r = P._makeAsyncAwaitCompleter(t.z), async_completer = P._makeAsyncAwaitCompleter(t.z),
q = this, this_ = this,
p, o, n, m, l p, o, n, m, l
var $async$ae = P._wrapJsFunctionForAsync(function (c, d) { var $async$ae = P._wrapJsFunctionForAsync(function (c, d) {
if (c === 1) return P.async_rethrow(d, r) if (c === 1) return P.async_rethrow(d, async_completer)
while (true) switch (s) { while (true) switch (async_goto) {
case 0: case 0:
q.Q = b this_.Q = b
p = q.ch p = this_.ch
p[0] = Date.now() + 1 p[0] = Date.now() + 1
o = q.e, n = o.length, m = 0 o = this_.e, n = o.length, m = 0
case 2: case 2:
if (!(m < o.length)) { if (!(m < o.length)) {
s = 4 async_goto = 4
break break
} }
s = 5 async_goto = 5
return P._asyncAwait(o[m].az(), $async$ae) return P._asyncAwait(o[m].az(), $async$ae)
case 5: case 5:
case 3: case 3:
o.length === n || (0, H.F)(o), ++m o.length === n || (0, H.F)(o), ++m
s = 2 async_goto = 2
break break
case 4: case 4:
n = q.f, l = n.length, m = 0 n = this_.f, l = n.length, m = 0
case 6: case 6:
if (!(m < n.length)) { if (!(m < n.length)) {
s = 8 async_goto = 8
break break
} }
s = 9 async_goto = 9
return P._asyncAwait(n[m].az(), $async$ae) return P._asyncAwait(n[m].az(), $async$ae)
case 9: case 9:
case 7: case 7:
n.length === l || (0, H.F)(n), ++m n.length === l || (0, H.F)(n), ++m
s = 6 async_goto = 6
break break
case 8: case 8:
o = new H.y(o, new L.iS(), H._arrayInstanceType(o).i("y<1,@>")).aV(0, "\r") + "\n" + new H.y(n, new L.iT(), H._arrayInstanceType(n).i("y<1,@>")).aV(0, "\r") + "\n" o = new H.y(o, new L.iS(), H._arrayInstanceType(o).i("y<1,@>")).aV(0, "\r") + "\n" + new H.y(n, new L.iT(), H._arrayInstanceType(n).i("y<1,@>")).aV(0, "\r") + "\n"
o = C.e.gaB().ab(o) o = C.e.gaB().ab(o)
n = H.instanceType(o).i("a9<z.E>") n = H.instanceType(o).i("a9<z.E>")
l = n.i("y<M.E,l*>") l = n.i("y<M.E,l*>")
l = P.List_List_of(new H.y(new H.a9(o, n), new L.iU(q), l), true, l.i("M.E")) l = P.List_List_of(new H.y(new H.a9(o, n), new L.iU(this_), l), true, l.i("M.E"))
C.Array.a5(l, H.fJ(p.buffer, 0, null)) C.Array.a5(l, H.fJ(p.buffer, 0, null))
A.eR(X.dc(l)) A.eR(X.dc(l))
return P.async_return(null, r) return P.async_return(null, async_completer)
} }
}) })
return P._asyncStartSync($async$ae, r) return P._asyncStartSync($async$ae, async_completer)
} }
} }
L.iS.prototype = { L.iS.prototype = {
@ -13053,7 +13059,9 @@ HtmlRenderer.fq.prototype = {
}, },
fe(a0) { fe(a0) {
// run update // run update
logger.debug("fq.fe start") let stack = new Error().stack
logger.debug("fq.fe start", stack)
var s, r, q, p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, this_ = this var s, r, q, p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, this_ = this
if (a0.length < 6) return if (a0.length < 6) return
s = X.f4(a0, 0) s = X.f4(a0, 0)
@ -13159,6 +13167,7 @@ HtmlRenderer.fq.prototype = {
q.display = "none" q.display = "none"
} }
} }
logger.debug("end fq.fe")
}, },
b4() { b4() {
// 实力评估 主循环? // 实力评估 主循环?
@ -15939,6 +15948,7 @@ T.hp.prototype = {
} }
T.df.prototype = { T.df.prototype = {
gan() { gan() {
logger.info("getting df.gan")
return H.b([0, $.lL(), $.d1(), $.mX(), $.iI(), $.iH(), $.eT(), $.n0()], t.i) return H.b([0, $.lL(), $.d1(), $.mX(), $.iI(), $.iH(), $.eT(), $.n0()], t.i)
}, },
F() { F() {
@ -16519,7 +16529,9 @@ T.fo.prototype = {
}, },
O() { O() {
// 运行时? // 运行时?
logger.debug("运行 主循环") // 对战 主循环?
// let stack = new Error().stack
// logger.info("运行 主循环", stack)
var async_goto = 0, var async_goto = 0,
async_completer = P._makeAsyncAwaitCompleter(t.d), async_completer = P._makeAsyncAwaitCompleter(t.d),
result_, p = [], result_, p = [],
@ -16588,7 +16600,7 @@ T.fo.prototype = {
}, },
ae(a, b) { ae(a, b) {
if (run_env.from_code) { if (run_env.from_code) {
return null // return null
} }
return this.dM(0, b) return this.dM(0, b)
}, },
@ -16627,7 +16639,8 @@ T.fo.prototype = {
// } // }
// }) // })
// return P._asyncStartSync($async$ae, async_completer) // return P._asyncStartSync($async$ae, async_completer)
let this_ = this, p, o, n, m, l, k, j let this_ = this,
p, o, n, m, l, k, j
this_.db = b this_.db = b
p = Date.now() p = Date.now()
o = $.bx() o = $.bx()
@ -17007,12 +17020,12 @@ T.Plr.prototype = {
// buildAsync // buildAsync
var s = 0, var s = 0,
r = P._makeAsyncAwaitCompleter(t.z), r = P._makeAsyncAwaitCompleter(t.z),
q = this this_ = this
var $async$cg = P._wrapJsFunctionForAsync(function (a, b) { var $async$cg = P._wrapJsFunctionForAsync(function (a, b) {
if (a === 1) return P.async_rethrow(b, r) if (a === 1) return P.async_rethrow(b, r)
while (true) switch (s) { while (true) switch (s) {
case 0: case 0:
q.az() this_.az()
return P.async_return(null, r) return P.async_return(null, r)
} }
}) })
@ -17020,17 +17033,17 @@ T.Plr.prototype = {
}, },
az() { az() {
//initRawAttr //initRawAttr
var s, r = this var s, this_ = this
r.bf() this_.bf()
s = r.r1 s = this_.r1
if (s != null) s.bn() if (s != null) s.bn()
r.aU() this_.aU()
r.bP() this_.bP()
r.dm(C.Array.cL(r.t, $.au()), C.Array.cL(r.E, $.au())) this_.dm(C.Array.cL(this_.t, $.au()), C.Array.cL(this_.E, $.au()))
s = r.r1 s = this_.r1
if (s != null) s.cs() if (s != null) s.cs()
r.bs() this_.bs()
r.cn() this_.cn()
}, },
aU() { aU() {
//getMiddle //getMiddle
@ -17202,22 +17215,25 @@ T.Plr.prototype = {
}, },
F() { F() {
// updateStates // updateStates
var s, r = this var s, this_ = this
r.ch = r.b0(r.q[0], $.cj()) this_.ch = this_.b0(this_.q[0], $.cj())
r.cx = r.b0(r.q[$.i()], $.cj()) this_.cx = this_.b0(this_.q[$.i()], $.cj())
r.cy = r.b0(r.q[$.t()], $.cj()) + $.eU() this_.cy = this_.b0(this_.q[$.t()], $.cj()) + 160
r.db = r.b0(r.q[$.B()], $.cj()) console.log("this_.cy", this_.cy)
r.dx = r.b0(r.q[$.C()], $.cj()) console.log("this_.q", this_.q)
r.dy = r.b0(r.q[$.X()], $.cj()) this_.db = this_.b0(this_.q[$.B()], $.cj())
r.fr = r.b0(r.q[$.a4()], $.n1()) this_.dx = this_.b0(this_.q[$.C()], $.cj())
r.fy = r.q[$.ap()] this_.dy = this_.b0(this_.q[$.X()], $.cj())
r.ci() this_.fr = this_.b0(this_.q[$.a4()], $.n1())
r.z = r.y this_.fy = this_.q[$.ap()]
r.id = $.T() this_.ci()
r.A = false this_.z = this_.y
for (s = r.rx, s = new Sgls.a_(s, s.b, s.$ti.i("a_<1*>")); s.u();) s.b.ar(r) this_.id = $.T()
this_.A = false
for (s = this_.rx, s = new Sgls.a_(s, s.b, s.$ti.i("a_<1*>")); s.u();) s.b.ar(this_)
}, },
ci() { ci() {
// calcAttrSum
var s, r, q, p, o, n, m, l, k, j, i = this, var s, r, q, p, o, n, m, l, k, j, i = this,
h = i.M = 0 h = i.M = 0
for (s = h; r = $.ap(), h < r; ++h) { for (s = h; r = $.ap(), h < r; ++h) {
@ -19995,6 +20011,7 @@ var t = (function rtii() {
}) })
lazy_old($, "x7", "mU", function () { lazy_old($, "x7", "mU", function () {
return X.k("+O2YYGy,+H", 45) return X.k("+O2YYGy,+H", 45)
// return 36
}) })
lazy_old($, "vJ", "oZ", function () { lazy_old($, "vJ", "oZ", function () {
return X.D("xF s,sTeiD", 45) return X.D("xF s,sTeiD", 45)
@ -20110,6 +20127,7 @@ var t = (function rtii() {
}) })
lazy_old($, "wW", "d1", function () { lazy_old($, "wW", "d1", function () {
return X.k("p&kJ 5Q!{M", 75) return X.k("p&kJ 5Q!{M", 75)
// return 31
}) })
lazy_old($, "xj", "mX", function () { lazy_old($, "xj", "mX", function () {
return X.k("^M0K:>w!&P", 91) return X.k("^M0K:>w!&P", 91)
@ -20252,6 +20270,7 @@ var t = (function rtii() {
}) })
lazy_old($, "wv", "pl", function () { lazy_old($, "wv", "pl", function () {
return X.D("WT)~pf:~hB", 91) return X.D("WT)~pf:~hB", 91)
// return 2000
}) })
lazy_old($, "xm", "mY", function () { lazy_old($, "xm", "mY", function () {
// return X.k("T)Ok_x`s]G", 40) // return X.k("T)Ok_x`s]G", 40)
@ -21116,6 +21135,7 @@ function main() {
logger.debug("so just here?", async_goto, error_code) logger.debug("so just here?", async_goto, error_code)
case 1: case 1:
logger.debug("返回中") logger.debug("返回中")
$.ms = false
return P.async_return(q, async_completer) return P.async_return(q, async_completer)
case 2: case 2:
return P.async_rethrow(async_result_1, async_completer) return P.async_rethrow(async_result_1, async_completer)