@guihz/trading-vue-editor-tes 0.1.30 → 0.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/{parserTccWorker-ClNWfPLI.js → parserTccWorker-CNzNddjG.js} +322 -320
- package/lib/assets/{scriptsRunWorker-BEcLg2tr.js → scriptsRunWorker-Dhiatl4n.js} +5458 -5370
- package/lib/components/editor/v4/parseScript/buildInFuncNamespace/ta.d.ts +1 -1
- package/lib/components/editor/v5/parseScript/buildInFuncNamespace/ta.d.ts +1 -1
- package/lib/components/editor/v6/parseScript/buildInFuncNamespace/ta.d.ts +1 -1
- package/lib/trading-vue-editor.es.packages.js +2 -2
- package/lib/trading-vue-editor.umd.packages.mjs +1 -1
- package/package.json +1 -1
@@ -543,7 +543,7 @@ var kE = h4((AT, V2) => {
|
|
543
543
|
return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
|
544
544
|
}, U(h);
|
545
545
|
}
|
546
|
-
function
|
546
|
+
function Y(h, a) {
|
547
547
|
if (!(h instanceof a))
|
548
548
|
throw new TypeError("Cannot call a class as a function");
|
549
549
|
}
|
@@ -568,9 +568,9 @@ var kE = h4((AT, V2) => {
|
|
568
568
|
function c0(h, a, d) {
|
569
569
|
return a && F(h.prototype, a), d && F(h, d), Object.defineProperty(h, "prototype", { writable: !1 }), h;
|
570
570
|
}
|
571
|
-
var
|
571
|
+
var K = function() {
|
572
572
|
function h() {
|
573
|
-
|
573
|
+
Y(this, h);
|
574
574
|
}
|
575
575
|
return c0(h, [{ key: "hashCode", value: function() {
|
576
576
|
var a = new f();
|
@@ -600,7 +600,7 @@ var kE = h4((AT, V2) => {
|
|
600
600
|
var a = L(d);
|
601
601
|
function d(u, O) {
|
602
602
|
var M;
|
603
|
-
|
603
|
+
Y(this, d), M = a.call(this);
|
604
604
|
var A = new q();
|
605
605
|
u instanceof d ? u.opnds.map(function(g) {
|
606
606
|
A.add(g);
|
@@ -630,15 +630,15 @@ var kE = h4((AT, V2) => {
|
|
630
630
|
var l = this.opnds[c], g = l.evalPrecedence(u, O);
|
631
631
|
if (M |= g !== l, g === null)
|
632
632
|
return null;
|
633
|
-
g !==
|
633
|
+
g !== K.NONE && A.push(g);
|
634
634
|
}
|
635
635
|
if (!M)
|
636
636
|
return this;
|
637
637
|
if (A.length === 0)
|
638
|
-
return
|
638
|
+
return K.NONE;
|
639
639
|
var v = null;
|
640
640
|
return A.map(function(R) {
|
641
|
-
v = v === null ? R :
|
641
|
+
v = v === null ? R : K.andContext(v, R);
|
642
642
|
}), v;
|
643
643
|
} }, { key: "toString", value: function() {
|
644
644
|
var u = this.opnds.map(function(O) {
|
@@ -646,12 +646,12 @@ var kE = h4((AT, V2) => {
|
|
646
646
|
});
|
647
647
|
return (u.length > 3 ? u.slice(3) : u).join("&&");
|
648
648
|
} }]), d;
|
649
|
-
}(
|
649
|
+
}(K), u0 = function(h) {
|
650
650
|
W(d, h);
|
651
651
|
var a = L(d);
|
652
652
|
function d(u, O) {
|
653
653
|
var M;
|
654
|
-
|
654
|
+
Y(this, d), M = a.call(this);
|
655
655
|
var A = new q();
|
656
656
|
u instanceof d ? u.opnds.map(function(v) {
|
657
657
|
A.add(v);
|
@@ -679,8 +679,8 @@ var kE = h4((AT, V2) => {
|
|
679
679
|
} }, { key: "evalPrecedence", value: function(u, O) {
|
680
680
|
for (var M = !1, A = [], c = 0; c < this.opnds.length; c++) {
|
681
681
|
var l = this.opnds[c], g = l.evalPrecedence(u, O);
|
682
|
-
if (M |= g !== l, g ===
|
683
|
-
return
|
682
|
+
if (M |= g !== l, g === K.NONE)
|
683
|
+
return K.NONE;
|
684
684
|
g !== null && A.push(g);
|
685
685
|
}
|
686
686
|
return M ? (A.length === 0 || A.map(function(v) {
|
@@ -692,11 +692,11 @@ var kE = h4((AT, V2) => {
|
|
692
692
|
});
|
693
693
|
return (u.length > 3 ? u.slice(3) : u).join("||");
|
694
694
|
} }]), d;
|
695
|
-
}(
|
695
|
+
}(K);
|
696
696
|
function q0(h) {
|
697
697
|
var a = [];
|
698
698
|
return h.values().map(function(d) {
|
699
|
-
d instanceof
|
699
|
+
d instanceof K.PrecedencePredicate && a.push(d);
|
700
700
|
}), a;
|
701
701
|
}
|
702
702
|
function Y0(h) {
|
@@ -737,7 +737,7 @@ var kE = h4((AT, V2) => {
|
|
737
737
|
(function(M, A) {
|
738
738
|
if (!(M instanceof A))
|
739
739
|
throw new TypeError("Cannot call a class as a function");
|
740
|
-
})(this, h), this.checkContext(u, O), u = r1(u), O = r1(O, !0), this.state = u.state !== null ? u.state : O.state, this.alt = u.alt !== null ? u.alt : O.alt, this.context = u.context !== null ? u.context : O.context, this.semanticContext = u.semanticContext !== null ? u.semanticContext : O.semanticContext !== null ? O.semanticContext :
|
740
|
+
})(this, h), this.checkContext(u, O), u = r1(u), O = r1(O, !0), this.state = u.state !== null ? u.state : O.state, this.alt = u.alt !== null ? u.alt : O.alt, this.context = u.context !== null ? u.context : O.context, this.semanticContext = u.semanticContext !== null ? u.semanticContext : O.semanticContext !== null ? O.semanticContext : K.NONE, this.reachesIntoOuterContext = O.reachesIntoOuterContext, this.precedenceFilterSuppressed = O.precedenceFilterSuppressed;
|
741
741
|
}
|
742
742
|
var a, d;
|
743
743
|
return a = h, (d = [{ key: "checkContext", value: function(u, O) {
|
@@ -755,7 +755,7 @@ var kE = h4((AT, V2) => {
|
|
755
755
|
} }, { key: "equalsForConfigSet", value: function(u) {
|
756
756
|
return this === u || u instanceof h && this.state.stateNumber === u.state.stateNumber && this.alt === u.alt && this.semanticContext.equals(u.semanticContext);
|
757
757
|
} }, { key: "toString", value: function() {
|
758
|
-
return "(" + this.state + "," + this.alt + (this.context !== null ? ",[" + this.context.toString() + "]" : "") + (this.semanticContext !==
|
758
|
+
return "(" + this.state + "," + this.alt + (this.context !== null ? ",[" + this.context.toString() + "]" : "") + (this.semanticContext !== K.NONE ? "," + this.semanticContext.toString() : "") + (this.reachesIntoOuterContext > 0 ? ",up=" + this.reachesIntoOuterContext : "") + ")";
|
759
759
|
} }]) && k0(a.prototype, d), Object.defineProperty(a, "prototype", { writable: !1 }), h;
|
760
760
|
}();
|
761
761
|
function xe(h) {
|
@@ -4051,7 +4051,7 @@ var kE = h4((AT, V2) => {
|
|
4051
4051
|
} }, { key: "toString", value: function() {
|
4052
4052
|
return "{" + this.ruleIndex + ":" + this.predIndex + "}?";
|
4053
4053
|
} }]) && Hd(a.prototype, d), Object.defineProperty(a, "prototype", { writable: !1 }), A;
|
4054
|
-
}(
|
4054
|
+
}(K);
|
4055
4055
|
function Bs(h) {
|
4056
4056
|
return Bs = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
|
4057
4057
|
return typeof a;
|
@@ -4087,7 +4087,7 @@ var kE = h4((AT, V2) => {
|
|
4087
4087
|
return a.__proto__ || Object.getPrototypeOf(a);
|
4088
4088
|
}, Uc(h);
|
4089
4089
|
}
|
4090
|
-
|
4090
|
+
K.NONE = new zh();
|
4091
4091
|
var fh = function(h) {
|
4092
4092
|
(function(c, l) {
|
4093
4093
|
if (typeof l != "function" && l !== null)
|
@@ -4220,7 +4220,7 @@ var kE = h4((AT, V2) => {
|
|
4220
4220
|
return a = A, (d = [{ key: "evaluate", value: function(c, l) {
|
4221
4221
|
return c.precpred(l, this.precedence);
|
4222
4222
|
} }, { key: "evalPrecedence", value: function(c, l) {
|
4223
|
-
return c.precpred(l, this.precedence) ?
|
4223
|
+
return c.precpred(l, this.precedence) ? K.NONE : null;
|
4224
4224
|
} }, { key: "compareTo", value: function(c) {
|
4225
4225
|
return this.precedence - c.precedence;
|
4226
4226
|
} }, { key: "updateHashCode", value: function(c) {
|
@@ -4230,7 +4230,7 @@ var kE = h4((AT, V2) => {
|
|
4230
4230
|
} }, { key: "toString", value: function() {
|
4231
4231
|
return "{" + this.precedence + ">=prec}?";
|
4232
4232
|
} }]) && jd(a.prototype, d), Object.defineProperty(a, "prototype", { writable: !1 }), A;
|
4233
|
-
}(
|
4233
|
+
}(K);
|
4234
4234
|
function Ps(h) {
|
4235
4235
|
return Ps = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
|
4236
4236
|
return typeof a;
|
@@ -4266,7 +4266,7 @@ var kE = h4((AT, V2) => {
|
|
4266
4266
|
return a.__proto__ || Object.getPrototypeOf(a);
|
4267
4267
|
}, Vc(h);
|
4268
4268
|
}
|
4269
|
-
|
4269
|
+
K.PrecedencePredicate = Oh;
|
4270
4270
|
var Kd = function(h) {
|
4271
4271
|
(function(c, l) {
|
4272
4272
|
if (typeof l != "function" && l !== null)
|
@@ -6332,7 +6332,7 @@ var kE = h4((AT, V2) => {
|
|
6332
6332
|
return a = h, (d = [{ key: "add", value: function(u, O) {
|
6333
6333
|
if (O === void 0 && (O = null), this.readOnly)
|
6334
6334
|
throw "This set is readonly";
|
6335
|
-
u.semanticContext !==
|
6335
|
+
u.semanticContext !== K.NONE && (this.hasSemanticContext = !0), u.reachesIntoOuterContext > 0 && (this.dipsIntoOuterContext = !0);
|
6336
6336
|
var M = this.configLookup.add(u);
|
6337
6337
|
if (M === u)
|
6338
6338
|
return this.cachedHashCode = -1, this.configs.push(u), !0;
|
@@ -6345,7 +6345,7 @@ var kE = h4((AT, V2) => {
|
|
6345
6345
|
} }, { key: "getPredicates", value: function() {
|
6346
6346
|
for (var u = [], O = 0; O < this.configs.length; O++) {
|
6347
6347
|
var M = this.configs[O].semanticContext;
|
6348
|
-
M !==
|
6348
|
+
M !== K.NONE && u.push(M.semanticContext);
|
6349
6349
|
}
|
6350
6350
|
return u;
|
6351
6351
|
} }, { key: "optimizeConfigs", value: function(u) {
|
@@ -7153,7 +7153,7 @@ var kE = h4((AT, V2) => {
|
|
7153
7153
|
if (h === yr.SLL && a.hasSemanticContext) {
|
7154
7154
|
for (var d = new Rn(), u = 0; u < a.items.length; u++) {
|
7155
7155
|
var O = a.items[u];
|
7156
|
-
O = new $0({ semanticContext:
|
7156
|
+
O = new $0({ semanticContext: K.NONE }, O), d.add(O);
|
7157
7157
|
}
|
7158
7158
|
a = d;
|
7159
7159
|
}
|
@@ -7580,17 +7580,17 @@ var kE = h4((AT, V2) => {
|
|
7580
7580
|
} }, { key: "getPredsForAmbigAlts", value: function(c, l, g) {
|
7581
7581
|
for (var v = [], R = 0; R < l.items.length; R++) {
|
7582
7582
|
var w = l.items[R];
|
7583
|
-
c.has(w.alt) && (v[w.alt] =
|
7583
|
+
c.has(w.alt) && (v[w.alt] = K.orContext(v[w.alt] || null, w.semanticContext));
|
7584
7584
|
}
|
7585
7585
|
for (var l0 = 0, I0 = 1; I0 < g + 1; I0++) {
|
7586
7586
|
var B0 = v[I0] || null;
|
7587
|
-
B0 === null ? v[I0] =
|
7587
|
+
B0 === null ? v[I0] = K.NONE : B0 !== K.NONE && (l0 += 1);
|
7588
7588
|
}
|
7589
7589
|
return l0 === 0 && (v = null), this.debug && console.log("getPredsForAmbigAlts result " + x(v)), v;
|
7590
7590
|
} }, { key: "getPredicatePredictions", value: function(c, l) {
|
7591
7591
|
for (var g = [], v = !1, R = 1; R < l.length; R++) {
|
7592
7592
|
var w = l[R];
|
7593
|
-
c !== null && c.has(R) && g.push(new kh(w, R)), w !==
|
7593
|
+
c !== null && c.has(R) && g.push(new kh(w, R)), w !== K.NONE && (v = !0);
|
7594
7594
|
}
|
7595
7595
|
return v ? g : null;
|
7596
7596
|
} }, { key: "getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule", value: function(c, l) {
|
@@ -7605,13 +7605,13 @@ var kE = h4((AT, V2) => {
|
|
7605
7605
|
} }, { key: "splitAccordingToSemanticValidity", value: function(c, l) {
|
7606
7606
|
for (var g = new Rn(c.fullCtx), v = new Rn(c.fullCtx), R = 0; R < c.items.length; R++) {
|
7607
7607
|
var w = c.items[R];
|
7608
|
-
w.semanticContext !==
|
7608
|
+
w.semanticContext !== K.NONE ? w.semanticContext.evaluate(this.parser, l) ? g.add(w) : v.add(w) : g.add(w);
|
7609
7609
|
}
|
7610
7610
|
return [g, v];
|
7611
7611
|
} }, { key: "evalSemanticContext", value: function(c, l, g) {
|
7612
7612
|
for (var v = new En(), R = 0; R < c.length; R++) {
|
7613
7613
|
var w = c[R];
|
7614
|
-
if (w.pred !==
|
7614
|
+
if (w.pred !== K.NONE) {
|
7615
7615
|
var l0 = w.pred.evaluate(this.parser, l);
|
7616
7616
|
if ((this.debug || this.dfa_debug) && console.log("eval pred " + w + "=" + l0), l0 && ((this.debug || this.dfa_debug) && console.log("PREDICT " + w.alt), v.add(w.alt), !g))
|
7617
7617
|
break;
|
@@ -7715,7 +7715,7 @@ var kE = h4((AT, V2) => {
|
|
7715
7715
|
var I0 = l.getPredicate().evaluate(this.parser, this._outerContext);
|
7716
7716
|
this._input.seek(l0), I0 && (w = new $0({ state: l.target }, c));
|
7717
7717
|
} else {
|
7718
|
-
var B0 =
|
7718
|
+
var B0 = K.andContext(c.semanticContext, l.getPredicate());
|
7719
7719
|
w = new $0({ state: l.target, semanticContext: B0 }, c);
|
7720
7720
|
}
|
7721
7721
|
else
|
@@ -7731,7 +7731,7 @@ var kE = h4((AT, V2) => {
|
|
7731
7731
|
var I0 = l.getPredicate().evaluate(this.parser, this._outerContext);
|
7732
7732
|
this._input.seek(l0), I0 && (w = new $0({ state: l.target }, c));
|
7733
7733
|
} else {
|
7734
|
-
var B0 =
|
7734
|
+
var B0 = K.andContext(c.semanticContext, l.getPredicate());
|
7735
7735
|
w = new $0({ state: l.target, semanticContext: B0 }, c);
|
7736
7736
|
}
|
7737
7737
|
else
|
@@ -22258,7 +22258,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
22258
22258
|
U.prototype.scoreOffsetAt = function(J) {
|
22259
22259
|
this.offsetScore += Math.abs(this.zone.utcOffset(J.at) - J.offset), this.zone.abbr(J.at).replace(/[^A-Z]/g, "") !== J.abbr && this.abbrScore++;
|
22260
22260
|
};
|
22261
|
-
function
|
22261
|
+
function Y(J, j) {
|
22262
22262
|
for (var n0, t0; t0 = ((j.at - J.at) / 12e4 | 0) * 6e4; )
|
22263
22263
|
n0 = new C(new Date(J.at + t0)), n0.offset === J.offset ? J = n0 : j = n0;
|
22264
22264
|
return J;
|
@@ -22266,7 +22266,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
22266
22266
|
function F() {
|
22267
22267
|
var J = (/* @__PURE__ */ new Date()).getFullYear() - 2, j = new C(new Date(J, 0, 1)), n0 = j.offset, t0 = [j], P0, J0, b1, g1;
|
22268
22268
|
for (g1 = 1; g1 < 48; g1++)
|
22269
|
-
b1 = new Date(J, g1, 1).getTimezoneOffset(), b1 !== n0 && (J0 = new C(new Date(J, g1, 1)), P0 =
|
22269
|
+
b1 = new Date(J, g1, 1).getTimezoneOffset(), b1 !== n0 && (J0 = new C(new Date(J, g1, 1)), P0 = Y(j, J0), t0.push(P0), t0.push(new C(new Date(P0.at + 6e4))), j = J0, n0 = b1);
|
22270
22270
|
for (g1 = 0; g1 < 4; g1++)
|
22271
22271
|
t0.push(new C(new Date(J + g1, 0, 1))), t0.push(new C(new Date(J + g1, 6, 1)));
|
22272
22272
|
return t0;
|
@@ -22274,7 +22274,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
22274
22274
|
function c0(J, j) {
|
22275
22275
|
return J.offsetScore !== j.offsetScore ? J.offsetScore - j.offsetScore : J.abbrScore !== j.abbrScore ? J.abbrScore - j.abbrScore : J.zone.population !== j.zone.population ? j.zone.population - J.zone.population : j.zone.name.localeCompare(J.zone.name);
|
22276
22276
|
}
|
22277
|
-
function
|
22277
|
+
function K(J, j) {
|
22278
22278
|
var n0, t0;
|
22279
22279
|
for (T(j), n0 = 0; n0 < j.length; n0++)
|
22280
22280
|
t0 = j[n0], p[t0] = p[t0] || {}, p[t0][J] = !0;
|
@@ -22320,7 +22320,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
22320
22320
|
function k0(J) {
|
22321
22321
|
var j, n0, t0, P0;
|
22322
22322
|
for (typeof J == "string" && (J = [J]), j = 0; j < J.length; j++)
|
22323
|
-
t0 = J[j].split("|"), n0 = t0[0], P0 = Y0(n0), n[P0] = J[j], o[P0] = n0,
|
22323
|
+
t0 = J[j].split("|"), n0 = t0[0], P0 = Y0(n0), n[P0] = J[j], o[P0] = n0, K(P0, t0[2].split(" "));
|
22324
22324
|
}
|
22325
22325
|
function r1(J, j) {
|
22326
22326
|
J = Y0(J);
|
@@ -25520,21 +25520,21 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
25520
25520
|
const q = this._parserSingleExpression(b), W = this._parserSingleExpression(f), N = y ? this._parserSingleExpression(y) : "", L = this._parserBlockLine(i, t, !1, !0);
|
25521
25521
|
jr.includes(s) && (s = `$${s}`);
|
25522
25522
|
const C = `var ${E} = Date.now()`;
|
25523
|
-
let
|
25523
|
+
let Y = `for (var ${s}=${q};(${this._prefixNameVar}.compareDataHandle(${s}) - ${_}) * ${z} >= 0; ${s}-=(${N || "1"}) * ${z}){
|
25524
25524
|
if (Date.now() - ${E} > 500) {
|
25525
25525
|
throw new Error('${T1.loopRuntimeErr}')
|
25526
25526
|
}
|
25527
25527
|
${x}++
|
25528
25528
|
${L}
|
25529
25529
|
}`;
|
25530
|
-
return
|
25530
|
+
return Y = `${C};
|
25531
25531
|
${m ? "" : `var ${x} = 0`};
|
25532
25532
|
const ${_} = ${W};
|
25533
25533
|
const ${z} = (${q})>${_} ? 1 : -1;
|
25534
|
-
${
|
25535
|
-
code:
|
25534
|
+
${Y}`, t || this._codesCol[this._blockCount].push({
|
25535
|
+
code: Y,
|
25536
25536
|
depends: this._getDepends(T)
|
25537
|
-
}), this._isInLoop = m, t ? this._functionalProcess(
|
25537
|
+
}), this._isInLoop = m, t ? this._functionalProcess(Y, o) : Y;
|
25538
25538
|
}
|
25539
25539
|
_parserAgainAssign(e) {
|
25540
25540
|
const { operator: t, name: n, value: i } = e, { varPos: s, declare: o } = n, p = `$againAssign${this._blockCount}`;
|
@@ -26444,15 +26444,15 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
26444
26444
|
case 102:
|
26445
26445
|
return "\f";
|
26446
26446
|
case 120:
|
26447
|
-
return String.fromCharCode(
|
26447
|
+
return String.fromCharCode(Y(2, O0));
|
26448
26448
|
case 117:
|
26449
26449
|
if (s() == "{") {
|
26450
26450
|
for (p(!0), s() === "}" && W("Expecting hex-character between {}"); s() == "0"; )
|
26451
26451
|
p(!0);
|
26452
26452
|
var R0, h1 = m("}", !0) - i.pos;
|
26453
|
-
return (h1 > 6 || (R0 =
|
26453
|
+
return (h1 > 6 || (R0 = Y(h1, O0)) > 1114111) && W("Unicode reference out of bounds"), p(!0), kq(R0);
|
26454
26454
|
}
|
26455
|
-
return String.fromCharCode(
|
26455
|
+
return String.fromCharCode(Y(4, O0));
|
26456
26456
|
case 10:
|
26457
26457
|
return "";
|
26458
26458
|
case 13:
|
@@ -26466,7 +26466,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
26466
26466
|
var A0 = s();
|
26467
26467
|
return A0 >= "0" && A0 <= "7" && (M0 += p(!0), M0[0] <= "3" && (A0 = s()) >= "0" && A0 <= "7" && (M0 += p(!0))), M0 === "0" ? "\0" : (M0.length > 0 && $1.has_directive("use strict") && O0 && W("Legacy octal escape sequences are not allowed in strict mode"), String.fromCharCode(parseInt(M0, 8)));
|
26468
26468
|
}
|
26469
|
-
function
|
26469
|
+
function Y(M0, O0) {
|
26470
26470
|
for (var A0 = 0; M0 > 0; --M0) {
|
26471
26471
|
if (!O0 && isNaN(parseInt(s(), 16)))
|
26472
26472
|
return parseInt(A0, 16) || "";
|
@@ -26508,7 +26508,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
26508
26508
|
}
|
26509
26509
|
return i.template_braces.pop(), R0 = _(M0 ? "template_head" : "template_substitution", O0), Ua.set(R0, A0), R0.template_end = !0, R0;
|
26510
26510
|
});
|
26511
|
-
function
|
26511
|
+
function K(M0) {
|
26512
26512
|
var O0 = i.regex_allowed, A0 = y(), D0;
|
26513
26513
|
return A0 == -1 ? (D0 = i.text.substr(i.pos), i.pos = i.text.length) : (D0 = i.text.substring(i.pos, A0), i.pos = A0), i.col = i.tokcol + (i.pos - i.tokpos), i.comments_before.push(_(M0, D0, !0)), i.regex_allowed = O0, $1;
|
26514
26514
|
}
|
@@ -26569,7 +26569,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
26569
26569
|
function k0() {
|
26570
26570
|
switch (p(), s()) {
|
26571
26571
|
case "/":
|
26572
|
-
return p(),
|
26572
|
+
return p(), K("comment1");
|
26573
26573
|
case "*":
|
26574
26574
|
return p(), W0();
|
26575
26575
|
}
|
@@ -26603,14 +26603,14 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
26603
26603
|
function $1(M0) {
|
26604
26604
|
if (M0 != null)
|
26605
26605
|
return q0(M0);
|
26606
|
-
for (n && i.pos == 0 && f("#!") && (E(), b(2),
|
26606
|
+
for (n && i.pos == 0 && f("#!") && (E(), b(2), K("comment5")); ; ) {
|
26607
26607
|
if (z(), E(), t) {
|
26608
26608
|
if (f("<!--")) {
|
26609
|
-
b(4),
|
26609
|
+
b(4), K("comment3");
|
26610
26610
|
continue;
|
26611
26611
|
}
|
26612
26612
|
if (f("-->") && i.newline_before) {
|
26613
|
-
b(3),
|
26613
|
+
b(3), K("comment4");
|
26614
26614
|
continue;
|
26615
26615
|
}
|
26616
26616
|
}
|
@@ -26832,7 +26832,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
26832
26832
|
var R1 = Be();
|
26833
26833
|
return W(), R1;
|
26834
26834
|
}
|
26835
|
-
return Gt(s(), "punc", ":") ?
|
26835
|
+
return Gt(s(), "punc", ":") ? Y() : F();
|
26836
26836
|
case "punc":
|
26837
26837
|
switch (n.token.value) {
|
26838
26838
|
case "{":
|
@@ -26874,7 +26874,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
26874
26874
|
})
|
26875
26875
|
});
|
26876
26876
|
case "for":
|
26877
|
-
return o(),
|
26877
|
+
return o(), K();
|
26878
26878
|
case "class":
|
26879
26879
|
return o(), G && b("classes are not allowed as the body of a loop"), p0 && b("classes are not allowed as the body of an if"), m1(Pn, H);
|
26880
26880
|
case "function":
|
@@ -26927,7 +26927,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
26927
26927
|
}
|
26928
26928
|
y();
|
26929
26929
|
});
|
26930
|
-
function
|
26930
|
+
function Y() {
|
26931
26931
|
var k = it(Mc);
|
26932
26932
|
k.name === "await" && z() && f(n.prev, "await cannot be used as label inside async function"), n.labels.some((G) => G.name === k.name) && b("Label " + k.name + " defined twice"), E(":"), n.labels.push(k);
|
26933
26933
|
var H = U();
|
@@ -26949,7 +26949,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
26949
26949
|
var p0 = new k({ label: H });
|
26950
26950
|
return G && G.references.push(p0), p0;
|
26951
26951
|
}
|
26952
|
-
function
|
26952
|
+
function K() {
|
26953
26953
|
var k = "`for await` invalid in this context", H = n.token;
|
26954
26954
|
H.type == "name" && H.value == "await" ? (q() || f(H, k), o()) : H = !1, E("(");
|
26955
26955
|
var G = null;
|
@@ -30216,8 +30216,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
30216
30216
|
const L = _.raw || z, C = L.match(/^\/(.*)\/(\w*)$/);
|
30217
30217
|
if (!C)
|
30218
30218
|
throw new Error("Invalid regex source " + L);
|
30219
|
-
const [U,
|
30220
|
-
return q.value = { source:
|
30219
|
+
const [U, Y, F] = C;
|
30220
|
+
return q.value = { source: Y, flags: F }, new en(q);
|
30221
30221
|
}
|
30222
30222
|
if (z === null)
|
30223
30223
|
return new Jt(q);
|
@@ -31350,7 +31350,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
31350
31350
|
function T(j) {
|
31351
31351
|
return " ".repeat(r.indent_start + i - j * r.indent_level);
|
31352
31352
|
}
|
31353
|
-
var _ = !1, z = !1, q = !1, W = 0, N = !1, L = !1, C = -1, U = "",
|
31353
|
+
var _ = !1, z = !1, q = !1, W = 0, N = !1, L = !1, C = -1, U = "", Y, F, c0 = r.source_map && [], K = c0 ? function() {
|
31354
31354
|
c0.forEach(function(j) {
|
31355
31355
|
try {
|
31356
31356
|
let { name: n0, token: t0 } = j;
|
@@ -31378,7 +31378,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
31378
31378
|
}
|
31379
31379
|
o++, p++, s = n0;
|
31380
31380
|
}
|
31381
|
-
W && (W = 0,
|
31381
|
+
W && (W = 0, K());
|
31382
31382
|
} : Mn, u0 = ee("( [ + * / - , . `");
|
31383
31383
|
function q0(j) {
|
31384
31384
|
j = String(j);
|
@@ -31388,12 +31388,12 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
31388
31388
|
`), r1())), L && n0 && (L = !1, /[\s;})]/.test(n0) || k0()), C = -1;
|
31389
31389
|
var t0 = U.charAt(U.length - 1);
|
31390
31390
|
q && (q = !1, (t0 === ":" && n0 === "}" || (!n0 || !";}".includes(n0)) && t0 !== ";") && (r.semicolons || u0.has(n0) ? (b.append(";"), s++, p++) : (W0(), s > 0 && (b.append(`
|
31391
|
-
`), p++, o++, s = 0), /^\s+$/.test(j) && (q = !0)), r.beautify || (z = !1))), z && ((lp(t0) && (lp(n0) || n0 == "\\") || n0 == "/" && n0 == t0 || (n0 == "+" || n0 == "-") && n0 == U) && (b.append(" "), s++, p++), z = !1),
|
31392
|
-
token:
|
31391
|
+
`), p++, o++, s = 0), /^\s+$/.test(j) && (q = !0)), r.beautify || (z = !1))), z && ((lp(t0) && (lp(n0) || n0 == "\\") || n0 == "/" && n0 == t0 || (n0 == "+" || n0 == "-") && n0 == U) && (b.append(" "), s++, p++), z = !1), Y && (c0.push({
|
31392
|
+
token: Y,
|
31393
31393
|
name: F,
|
31394
31394
|
line: o,
|
31395
31395
|
col: s
|
31396
|
-
}),
|
31396
|
+
}), Y = !1, W || K()), b.append(j), _ = j[j.length - 1] == "(", p += j.length;
|
31397
31397
|
var P0 = j.split(/\r?\n/), J0 = P0.length - 1;
|
31398
31398
|
o += J0, s += P0[0].length, J0 > 0 && (W0(), s = P0[J0].length), U = j;
|
31399
31399
|
}
|
@@ -31456,7 +31456,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
31456
31456
|
q0(":"), k0();
|
31457
31457
|
}
|
31458
31458
|
var h1 = c0 ? function(j, n0) {
|
31459
|
-
|
31459
|
+
Y = j, F = n0;
|
31460
31460
|
} : Mn;
|
31461
31461
|
function J1() {
|
31462
31462
|
return W && W0(), b.toString();
|
@@ -34331,8 +34331,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
34331
34331
|
if (y === e) {
|
34332
34332
|
var L;
|
34333
34333
|
if (_.name && (_ instanceof Tr && !Bo(r.option("keep_classnames"), (L = _.name.definition()).name) || _ instanceof he && !Bo(r.option("keep_fnames"), (L = _.name.definition()).name)) && (!s.has(L.id) || L.orig.length > 1) && (_.name = null), _ instanceof u1 && !(_ instanceof li))
|
34334
|
-
for (var C = !r.option("keep_fargs"), U = _.argnames,
|
34335
|
-
var F = U[
|
34334
|
+
for (var C = !r.option("keep_fargs"), U = _.argnames, Y = U.length; --Y >= 0; ) {
|
34335
|
+
var F = U[Y];
|
34336
34336
|
F instanceof P1 && (F = F.expression), F instanceof Tn && (F = F.left), !(F instanceof me) && !s.has(F.definition().id) ? (An(F, xi), C && U.pop()) : C = !1;
|
34337
34337
|
}
|
34338
34338
|
if (_ instanceof Pn && _ !== e) {
|
@@ -34349,7 +34349,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
34349
34349
|
return k0.eliminated++, q ? Re.skip : D(ie, _);
|
34350
34350
|
}
|
34351
34351
|
if (_ instanceof Xe && !(W instanceof kt && W.init === _)) {
|
34352
|
-
var c0 = !(W instanceof ge) && !(_ instanceof Mt),
|
34352
|
+
var c0 = !(W instanceof ge) && !(_ instanceof Mt), K = [], W0 = [], u0 = [], q0 = [];
|
34353
34353
|
switch (_.definitions.forEach(function(k0) {
|
34354
34354
|
k0.value && (k0.value = k0.value.transform(E));
|
34355
34355
|
var r1 = k0.name instanceof me, $0 = r1 ? new Qo(null, { name: "<destructure>" }) : k0.name.definition();
|
@@ -34374,7 +34374,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
34374
34374
|
return;
|
34375
34375
|
}
|
34376
34376
|
}
|
34377
|
-
k0.value ? (q0.length > 0 && (u0.length > 0 ? (q0.push(k0.value), k0.value = L1(k0.value, q0)) :
|
34377
|
+
k0.value ? (q0.length > 0 && (u0.length > 0 ? (q0.push(k0.value), k0.value = L1(k0.value, q0)) : K.push(D(o1, _, {
|
34378
34378
|
body: L1(_, q0)
|
34379
34379
|
})), q0 = []), u0.push(k0)) : W0.push(k0);
|
34380
34380
|
} else if ($0.orig[0] instanceof Xn) {
|
@@ -34384,15 +34384,15 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
34384
34384
|
var $1 = k0.value && k0.value.drop_side_effect_free(r);
|
34385
34385
|
$1 && q0.push($1), $0.eliminated++;
|
34386
34386
|
}
|
34387
|
-
}), (W0.length > 0 || u0.length > 0) && (_.definitions = W0.concat(u0),
|
34387
|
+
}), (W0.length > 0 || u0.length > 0) && (_.definitions = W0.concat(u0), K.push(_)), q0.length > 0 && K.push(D(o1, _, {
|
34388
34388
|
body: L1(_, q0)
|
34389
|
-
})),
|
34389
|
+
})), K.length) {
|
34390
34390
|
case 0:
|
34391
34391
|
return q ? Re.skip : D(ie, _);
|
34392
34392
|
case 1:
|
34393
|
-
return
|
34393
|
+
return K[0];
|
34394
34394
|
default:
|
34395
|
-
return q ? Re.splice(
|
34395
|
+
return q ? Re.splice(K) : D(y1, _, { body: K });
|
34396
34396
|
}
|
34397
34397
|
}
|
34398
34398
|
if (_ instanceof at) {
|
@@ -34801,11 +34801,11 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
34801
34801
|
function f(N, L) {
|
34802
34802
|
if (t.pinned() || n.pinned())
|
34803
34803
|
return N;
|
34804
|
-
for (var C, U = [],
|
34804
|
+
for (var C, U = [], Y = N.length, F = new nn(function($) {
|
34805
34805
|
if (A0)
|
34806
34806
|
return $;
|
34807
34807
|
if (!O0)
|
34808
|
-
return $ !==
|
34808
|
+
return $ !== K[W0] ? $ : (W0++, W0 < K.length ? te($) : (O0 = !0, Y0 = n0($, 0), Y0 === $ && (A0 = !0), $));
|
34809
34809
|
var F0 = F.parent();
|
34810
34810
|
if ($ instanceof C1 && ($.logical || $.operator != "=" && r1.equivalent_to($.left)) || $ instanceof On || $ instanceof i1 && r1 instanceof d1 && r1.equivalent_to($.expression) || ($ instanceof i1 || $ instanceof d1) && $.optional || $ instanceof pi || $ instanceof me || $ instanceof P1 && $.expression instanceof F1 && ($.expression instanceof Wt || $.expression.definition().references.length > 1) || $ instanceof In && !($ instanceof at) || $ instanceof rr || $ instanceof mn || $ instanceof fn || $ instanceof dn || $ instanceof pt || $ instanceof V1 || F0 instanceof at && $ !== F0.init || !e1 && $ instanceof S0 && !$.is_declared(L) && !ou.has($) || $ instanceof S0 && F0 instanceof i1 && Qt(F0, hs) || $ instanceof Ue && $.key instanceof C0)
|
34811
34811
|
return A0 = !0, $;
|
@@ -34837,17 +34837,17 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
34837
34837
|
if (A0)
|
34838
34838
|
return $;
|
34839
34839
|
if (!O0)
|
34840
|
-
return $ !==
|
34840
|
+
return $ !== K[W0] ? $ : (W0++, W0 < K.length ? void 0 : (O0 = !0, $));
|
34841
34841
|
if ($ instanceof S0 && $.name == J1.name)
|
34842
34842
|
return --D0 || (A0 = !0), ls($, c0.parent()) ? $ : (J1.replaced++, q0.replaced--, u0.value);
|
34843
34843
|
if ($ instanceof gs || $ instanceof A1)
|
34844
34844
|
return $;
|
34845
|
-
}); --
|
34846
|
-
|
34847
|
-
var
|
34848
|
-
for (j(N[
|
34849
|
-
|
34850
|
-
var W0 = 0, u0 =
|
34845
|
+
}); --Y >= 0; ) {
|
34846
|
+
Y == 0 && L.option("unused") && J();
|
34847
|
+
var K = [];
|
34848
|
+
for (j(N[Y]); U.length > 0; ) {
|
34849
|
+
K = U.pop();
|
34850
|
+
var W0 = 0, u0 = K[K.length - 1], q0 = null, Y0 = null, k0 = null, r1 = P0(u0);
|
34851
34851
|
if (!(!r1 || EO(r1) || r1.has_side_effects(L))) {
|
34852
34852
|
var $0 = b1(u0), xe = m1(r1);
|
34853
34853
|
r1 instanceof S0 && $0.set(r1.name, { def: r1.definition(), modified: !1 });
|
@@ -34857,7 +34857,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
34857
34857
|
C[$].transform(F);
|
34858
34858
|
R0 = !0;
|
34859
34859
|
}
|
34860
|
-
for (var h1 =
|
34860
|
+
for (var h1 = Y; !A0 && h1 < N.length; h1++)
|
34861
34861
|
N[h1].transform(F);
|
34862
34862
|
if (q0) {
|
34863
34863
|
var J1 = u0.name.definition();
|
@@ -34865,12 +34865,12 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
34865
34865
|
D0 = !1;
|
34866
34866
|
else {
|
34867
34867
|
A0 = !1, W0 = 0, O0 = M0;
|
34868
|
-
for (var h1 =
|
34868
|
+
for (var h1 = Y; !A0 && h1 < N.length; h1++)
|
34869
34869
|
N[h1].transform(c0);
|
34870
34870
|
q0.single_use = !1;
|
34871
34871
|
}
|
34872
34872
|
}
|
34873
|
-
D0 && !g1(u0) && N.splice(
|
34873
|
+
D0 && !g1(u0) && N.splice(Y, 1);
|
34874
34874
|
}
|
34875
34875
|
}
|
34876
34876
|
}
|
@@ -34883,7 +34883,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
34883
34883
|
var j0 = $.body[F0];
|
34884
34884
|
if (j0 instanceof ir) {
|
34885
34885
|
if (!O0) {
|
34886
|
-
if (j0 !==
|
34886
|
+
if (j0 !== K[W0])
|
34887
34887
|
continue;
|
34888
34888
|
W0++;
|
34889
34889
|
}
|
@@ -34966,8 +34966,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
34966
34966
|
}
|
34967
34967
|
}
|
34968
34968
|
function j($) {
|
34969
|
-
if (
|
34970
|
-
!$.left.has_side_effects(L) && !($.right instanceof nt) && U.push(
|
34969
|
+
if (K.push($), $ instanceof C1)
|
34970
|
+
!$.left.has_side_effects(L) && !($.right instanceof nt) && U.push(K.slice()), j($.right);
|
34971
34971
|
else if ($ instanceof f0)
|
34972
34972
|
j($.left), j($.right);
|
34973
34973
|
else if ($ instanceof i1 && !Qt($, hs))
|
@@ -34981,8 +34981,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
34981
34981
|
for (Q0 < 0 && (Q0 = 0); Q0 < F0; Q0++)
|
34982
34982
|
j($.definitions[Q0]);
|
34983
34983
|
} else
|
34984
|
-
$ instanceof Jp ? (j($.condition), $.body instanceof ot || j($.body)) : $ instanceof Yt ? $.value && j($.value) : $ instanceof at ? ($.init && j($.init), $.condition && j($.condition), $.step && j($.step), $.body instanceof ot || j($.body)) : $ instanceof kt ? (j($.object), $.body instanceof ot || j($.body)) : $ instanceof ne ? (j($.condition), $.body instanceof ot || j($.body), $.alternative && !($.alternative instanceof ot) && j($.alternative)) : $ instanceof B1 ? $.expressions.forEach(j) : $ instanceof o1 ? j($.body) : $ instanceof St ? (j($.expression), $.body.forEach(j)) : $ instanceof qe ? ($.operator == "++" || $.operator == "--") && U.push(
|
34985
|
-
|
34984
|
+
$ instanceof Jp ? (j($.condition), $.body instanceof ot || j($.body)) : $ instanceof Yt ? $.value && j($.value) : $ instanceof at ? ($.init && j($.init), $.condition && j($.condition), $.step && j($.step), $.body instanceof ot || j($.body)) : $ instanceof kt ? (j($.object), $.body instanceof ot || j($.body)) : $ instanceof ne ? (j($.condition), $.body instanceof ot || j($.body), $.alternative && !($.alternative instanceof ot) && j($.alternative)) : $ instanceof B1 ? $.expressions.forEach(j) : $ instanceof o1 ? j($.body) : $ instanceof St ? (j($.expression), $.body.forEach(j)) : $ instanceof qe ? ($.operator == "++" || $.operator == "--") && U.push(K.slice()) : $ instanceof Me && $.value && !($.value instanceof nt) && (U.push(K.slice()), j($.value));
|
34985
|
+
K.pop();
|
34986
34986
|
}
|
34987
34987
|
function n0($, F0, Q0) {
|
34988
34988
|
var j0 = F.parent(F0);
|
@@ -35048,7 +35048,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35048
35048
|
return !0;
|
35049
35049
|
}
|
35050
35050
|
var Le = !1;
|
35051
|
-
return N[
|
35051
|
+
return N[Y].transform(new nn(function(D1, Ze, it) {
|
35052
35052
|
if (Le)
|
35053
35053
|
return D1;
|
35054
35054
|
if (D1 === $ || D1.body === $)
|
@@ -35125,69 +35125,69 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35125
35125
|
}
|
35126
35126
|
}
|
35127
35127
|
function m(N, L) {
|
35128
|
-
var C = L.self(), U = k0(N),
|
35128
|
+
var C = L.self(), U = k0(N), Y = C instanceof u1;
|
35129
35129
|
const F = Math.min(N.length, 500);
|
35130
35130
|
for (var c0 = F; --c0 >= 0; ) {
|
35131
|
-
var
|
35132
|
-
if (
|
35133
|
-
if (!
|
35131
|
+
var K = N[c0], W0 = e1(c0), u0 = N[W0];
|
35132
|
+
if (Y && !u0 && K instanceof $e) {
|
35133
|
+
if (!K.value) {
|
35134
35134
|
o = !0, N.splice(c0, 1);
|
35135
35135
|
continue;
|
35136
35136
|
}
|
35137
|
-
if (
|
35138
|
-
o = !0, N[c0] = D(o1,
|
35139
|
-
body:
|
35137
|
+
if (K.value instanceof M1 && K.value.operator == "void") {
|
35138
|
+
o = !0, N[c0] = D(o1, K, {
|
35139
|
+
body: K.value.expression
|
35140
35140
|
});
|
35141
35141
|
continue;
|
35142
35142
|
}
|
35143
35143
|
}
|
35144
|
-
if (
|
35144
|
+
if (K instanceof ne) {
|
35145
35145
|
let M0, O0;
|
35146
|
-
if (M0 = xn(
|
35147
|
-
M0.label && Do(M0.label.thedef.references, M0), o = !0,
|
35148
|
-
body: H2(
|
35149
|
-
}),
|
35146
|
+
if (M0 = xn(K.body), $0(M0) && (O0 = j1(K.body, M0))) {
|
35147
|
+
M0.label && Do(M0.label.thedef.references, M0), o = !0, K = K.clone(), K.condition = K.condition.negate(L), K.body = D(y1, K, {
|
35148
|
+
body: H2(K.alternative).concat(xe())
|
35149
|
+
}), K.alternative = D(y1, K, {
|
35150
35150
|
body: O0
|
35151
|
-
}), N[c0] =
|
35151
|
+
}), N[c0] = K.transform(L);
|
35152
35152
|
continue;
|
35153
35153
|
}
|
35154
|
-
if (M0 = xn(
|
35155
|
-
M0.label && Do(M0.label.thedef.references, M0), o = !0,
|
35156
|
-
body: H2(
|
35157
|
-
}),
|
35154
|
+
if (M0 = xn(K.alternative), $0(M0) && (O0 = j1(K.alternative, M0))) {
|
35155
|
+
M0.label && Do(M0.label.thedef.references, M0), o = !0, K = K.clone(), K.body = D(y1, K.body, {
|
35156
|
+
body: H2(K.body).concat(xe())
|
35157
|
+
}), K.alternative = D(y1, K.alternative, {
|
35158
35158
|
body: O0
|
35159
|
-
}), N[c0] =
|
35159
|
+
}), N[c0] = K.transform(L);
|
35160
35160
|
continue;
|
35161
35161
|
}
|
35162
35162
|
}
|
35163
|
-
if (
|
35164
|
-
var q0 =
|
35165
|
-
if (!q0 && !
|
35166
|
-
o = !0, N[c0] = D(o1,
|
35167
|
-
body:
|
35163
|
+
if (K instanceof ne && K.body instanceof $e) {
|
35164
|
+
var q0 = K.body.value;
|
35165
|
+
if (!q0 && !K.alternative && (Y && !u0 || u0 instanceof $e && !u0.value)) {
|
35166
|
+
o = !0, N[c0] = D(o1, K.condition, {
|
35167
|
+
body: K.condition
|
35168
35168
|
});
|
35169
35169
|
continue;
|
35170
35170
|
}
|
35171
|
-
if (q0 && !
|
35172
|
-
o = !0,
|
35171
|
+
if (q0 && !K.alternative && u0 instanceof $e && u0.value) {
|
35172
|
+
o = !0, K = K.clone(), K.alternative = u0, N[c0] = K.transform(L), N.splice(W0, 1);
|
35173
35173
|
continue;
|
35174
35174
|
}
|
35175
|
-
if (q0 && !
|
35176
|
-
o = !0,
|
35175
|
+
if (q0 && !K.alternative && (!u0 && Y && U || u0 instanceof $e)) {
|
35176
|
+
o = !0, K = K.clone(), K.alternative = u0 || D($e, K, {
|
35177
35177
|
value: null
|
35178
|
-
}), N[c0] =
|
35178
|
+
}), N[c0] = K.transform(L), u0 && N.splice(W0, 1);
|
35179
35179
|
continue;
|
35180
35180
|
}
|
35181
35181
|
var Y0 = N[$1(c0)];
|
35182
|
-
if (L.option("sequences") &&
|
35183
|
-
o = !0,
|
35182
|
+
if (L.option("sequences") && Y && !K.alternative && Y0 instanceof ne && Y0.body instanceof $e && e1(W0) == N.length && u0 instanceof o1) {
|
35183
|
+
o = !0, K = K.clone(), K.alternative = D(y1, u0, {
|
35184
35184
|
body: [
|
35185
35185
|
u0,
|
35186
35186
|
D($e, u0, {
|
35187
35187
|
value: null
|
35188
35188
|
})
|
35189
35189
|
]
|
35190
|
-
}), N[c0] =
|
35190
|
+
}), N[c0] = K.transform(L), N.splice(W0, 1);
|
35191
35191
|
continue;
|
35192
35192
|
}
|
35193
35193
|
}
|
@@ -35212,7 +35212,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35212
35212
|
return !1;
|
35213
35213
|
}
|
35214
35214
|
var R0 = M0 instanceof rr ? L.loopcontrol_target(M0) : null;
|
35215
|
-
return M0 instanceof $e &&
|
35215
|
+
return M0 instanceof $e && Y && r1(M0.value) || M0 instanceof wi && C === _b(R0) || M0 instanceof Ln && R0 instanceof y1 && C === R0;
|
35216
35216
|
}
|
35217
35217
|
function xe() {
|
35218
35218
|
var M0 = N.slice(c0 + 1);
|
@@ -35245,15 +35245,15 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35245
35245
|
}
|
35246
35246
|
}
|
35247
35247
|
function E(N, L) {
|
35248
|
-
for (var C, U = L.self(),
|
35249
|
-
var
|
35250
|
-
if (
|
35251
|
-
var W0 = L.loopcontrol_target(
|
35252
|
-
|
35248
|
+
for (var C, U = L.self(), Y = 0, F = 0, c0 = N.length; Y < c0; Y++) {
|
35249
|
+
var K = N[Y];
|
35250
|
+
if (K instanceof rr) {
|
35251
|
+
var W0 = L.loopcontrol_target(K);
|
35252
|
+
K instanceof Ln && !(W0 instanceof In) && _b(W0) === U || K instanceof wi && _b(W0) === U ? K.label && Do(K.label.thedef.references, K) : N[F++] = K;
|
35253
35253
|
} else
|
35254
|
-
N[F++] =
|
35255
|
-
if (xn(
|
35256
|
-
C = N.slice(
|
35254
|
+
N[F++] = K;
|
35255
|
+
if (xn(K)) {
|
35256
|
+
C = N.slice(Y + 1);
|
35257
35257
|
break;
|
35258
35258
|
}
|
35259
35259
|
}
|
@@ -35268,27 +35268,27 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35268
35268
|
if (N.length < 2)
|
35269
35269
|
return;
|
35270
35270
|
var C = [], U = 0;
|
35271
|
-
function
|
35271
|
+
function Y() {
|
35272
35272
|
if (C.length) {
|
35273
35273
|
var u0 = L1(C[0], C);
|
35274
35274
|
N[U++] = D(o1, u0, { body: u0 }), C = [];
|
35275
35275
|
}
|
35276
35276
|
}
|
35277
35277
|
for (var F = 0, c0 = N.length; F < c0; F++) {
|
35278
|
-
var
|
35279
|
-
if (
|
35280
|
-
C.length >= L.sequences_limit &&
|
35281
|
-
var W0 =
|
35278
|
+
var K = N[F];
|
35279
|
+
if (K instanceof o1) {
|
35280
|
+
C.length >= L.sequences_limit && Y();
|
35281
|
+
var W0 = K.body;
|
35282
35282
|
C.length > 0 && (W0 = W0.drop_side_effect_free(L)), W0 && GM(C, W0);
|
35283
35283
|
} else
|
35284
|
-
|
35284
|
+
K instanceof Xe && x(K) || K instanceof Ce || Y(), N[U++] = K;
|
35285
35285
|
}
|
35286
|
-
|
35286
|
+
Y(), N.length = U, U != c0 && (o = !0);
|
35287
35287
|
}
|
35288
35288
|
function _(N, L) {
|
35289
35289
|
if (!(N instanceof y1))
|
35290
35290
|
return N;
|
35291
|
-
for (var C = null, U = 0,
|
35291
|
+
for (var C = null, U = 0, Y = N.body.length; U < Y; U++) {
|
35292
35292
|
var F = N.body[U];
|
35293
35293
|
if (F instanceof Mt && x(F))
|
35294
35294
|
L.push(F);
|
@@ -35303,29 +35303,29 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35303
35303
|
function z(N, L) {
|
35304
35304
|
function C(Y0) {
|
35305
35305
|
U--, o = !0;
|
35306
|
-
var k0 =
|
35306
|
+
var k0 = Y.body;
|
35307
35307
|
return L1(k0, [k0, Y0]).transform(L);
|
35308
35308
|
}
|
35309
|
-
for (var U = 0,
|
35309
|
+
for (var U = 0, Y, F = 0; F < N.length; F++) {
|
35310
35310
|
var c0 = N[F];
|
35311
|
-
if (
|
35311
|
+
if (Y && (c0 instanceof Yt ? c0.value = C(c0.value || D(Se, c0).transform(L)) : c0 instanceof at ? c0.init instanceof Xe || ft(Y.body, (k0) => {
|
35312
35312
|
if (k0 instanceof A1)
|
35313
35313
|
return !0;
|
35314
35314
|
if (k0 instanceof f0 && k0.operator === "in")
|
35315
35315
|
return tn;
|
35316
|
-
}) || (c0.init ? c0.init = C(c0.init) : (c0.init =
|
35317
|
-
var
|
35318
|
-
if (W0 !== !1 && u0 !== !1 &&
|
35319
|
-
var q0 =
|
35320
|
-
|
35316
|
+
}) || (c0.init ? c0.init = C(c0.init) : (c0.init = Y.body, U--, o = !0)) : c0 instanceof kt ? !(c0.init instanceof ar) && !(c0.init instanceof or) && (c0.object = C(c0.object)) : c0 instanceof ne ? c0.condition = C(c0.condition) : (c0 instanceof St || c0 instanceof fn) && (c0.expression = C(c0.expression))), L.option("conditionals") && c0 instanceof ne) {
|
35317
|
+
var K = [], W0 = _(c0.body, K), u0 = _(c0.alternative, K);
|
35318
|
+
if (W0 !== !1 && u0 !== !1 && K.length > 0) {
|
35319
|
+
var q0 = K.length;
|
35320
|
+
K.push(D(ne, c0, {
|
35321
35321
|
condition: c0.condition,
|
35322
35322
|
body: W0 || D(ie, c0.body),
|
35323
35323
|
alternative: u0
|
35324
|
-
})),
|
35324
|
+
})), K.unshift(U, 1), [].splice.apply(N, K), F += q0, U += q0 + 1, Y = null, o = !0;
|
35325
35325
|
continue;
|
35326
35326
|
}
|
35327
35327
|
}
|
35328
|
-
N[U++] = c0,
|
35328
|
+
N[U++] = c0, Y = c0 instanceof o1 ? c0 : null;
|
35329
35329
|
}
|
35330
35330
|
N.length = U;
|
35331
35331
|
}
|
@@ -35335,7 +35335,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35335
35335
|
if (C.value instanceof se) {
|
35336
35336
|
var U;
|
35337
35337
|
if (L instanceof C1 && !L.logical ? U = [L] : L instanceof B1 && (U = L.expressions.slice()), !!U) {
|
35338
|
-
var
|
35338
|
+
var Y = !1;
|
35339
35339
|
do {
|
35340
35340
|
var F = U[0];
|
35341
35341
|
if (!(F instanceof C1) || F.operator != "=" || !(F.left instanceof d1))
|
@@ -35343,54 +35343,54 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35343
35343
|
var c0 = F.left.expression;
|
35344
35344
|
if (!(c0 instanceof S0) || C.name.name != c0.name || !F.right.is_constant_expression(t))
|
35345
35345
|
break;
|
35346
|
-
var
|
35347
|
-
if (
|
35346
|
+
var K = F.left.property;
|
35347
|
+
if (K instanceof C0 && (K = K.evaluate(e)), K instanceof C0)
|
35348
35348
|
break;
|
35349
|
-
|
35349
|
+
K = "" + K;
|
35350
35350
|
var W0 = e.option("ecma") < 2015 && e.has_directive("use strict") ? function(q0) {
|
35351
|
-
return q0.key !=
|
35351
|
+
return q0.key != K && q0.key && q0.key.name != K;
|
35352
35352
|
} : function(q0) {
|
35353
|
-
return q0.key && q0.key.name !=
|
35353
|
+
return q0.key && q0.key.name != K;
|
35354
35354
|
};
|
35355
35355
|
if (!C.value.properties.every(W0))
|
35356
35356
|
break;
|
35357
35357
|
var u0 = C.value.properties.filter(function(q0) {
|
35358
|
-
return q0.key ===
|
35358
|
+
return q0.key === K;
|
35359
35359
|
})[0];
|
35360
35360
|
u0 ? u0.value = new B1({
|
35361
35361
|
start: u0.start,
|
35362
35362
|
expressions: [u0.value.clone(), F.right.clone()],
|
35363
35363
|
end: u0.end
|
35364
35364
|
}) : C.value.properties.push(D(We, F, {
|
35365
|
-
key:
|
35365
|
+
key: K,
|
35366
35366
|
value: F.right
|
35367
|
-
})), U.shift(),
|
35367
|
+
})), U.shift(), Y = !0;
|
35368
35368
|
} while (U.length);
|
35369
|
-
return
|
35369
|
+
return Y && U;
|
35370
35370
|
}
|
35371
35371
|
}
|
35372
35372
|
}
|
35373
35373
|
}
|
35374
35374
|
function W(N) {
|
35375
|
-
for (var L, C = 0, U = -1,
|
35375
|
+
for (var L, C = 0, U = -1, Y = N.length; C < Y; C++) {
|
35376
35376
|
var F = N[C], c0 = N[U];
|
35377
35377
|
if (F instanceof Xe)
|
35378
35378
|
c0 && c0.TYPE == F.TYPE ? (c0.definitions = c0.definitions.concat(F.definitions), o = !0) : L && L.TYPE == F.TYPE && x(F) ? (L.definitions = L.definitions.concat(F.definitions), o = !0) : (N[++U] = F, L = F);
|
35379
35379
|
else if (F instanceof Yt)
|
35380
35380
|
F.value = W0(F.value);
|
35381
35381
|
else if (F instanceof at) {
|
35382
|
-
var
|
35383
|
-
|
35382
|
+
var K = q(c0, F.init);
|
35383
|
+
K ? (o = !0, F.init = K.length ? L1(F.init, K) : null, N[++U] = F) : c0 instanceof Mt && (!F.init || F.init.TYPE == c0.TYPE) ? (F.init && (c0.definitions = c0.definitions.concat(F.init.definitions)), F.init = c0, N[U] = F, o = !0) : L instanceof Mt && F.init instanceof Mt && x(F.init) ? (L.definitions = L.definitions.concat(F.init.definitions), F.init = null, N[++U] = F, o = !0) : N[++U] = F;
|
35384
35384
|
} else if (F instanceof kt)
|
35385
35385
|
F.object = W0(F.object);
|
35386
35386
|
else if (F instanceof ne)
|
35387
35387
|
F.condition = W0(F.condition);
|
35388
35388
|
else if (F instanceof o1) {
|
35389
|
-
var
|
35390
|
-
if (
|
35391
|
-
if (o = !0, !
|
35389
|
+
var K = q(c0, F.body);
|
35390
|
+
if (K) {
|
35391
|
+
if (o = !0, !K.length)
|
35392
35392
|
continue;
|
35393
|
-
F.body = L1(F.body,
|
35393
|
+
F.body = L1(F.body, K);
|
35394
35394
|
}
|
35395
35395
|
N[++U] = F;
|
35396
35396
|
} else
|
@@ -35508,8 +35508,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35508
35508
|
}
|
35509
35509
|
if (n.argnames.length === 1 && n.argnames[0] instanceof zt && r.args.length < 2 && !(r.args[0] instanceof P1) && F instanceof S0 && F.name === n.argnames[0].name) {
|
35510
35510
|
const c0 = (r.args[0] || D(Se)).optimize(e);
|
35511
|
-
let
|
35512
|
-
return c0 instanceof d1 && (
|
35511
|
+
let K;
|
35512
|
+
return c0 instanceof d1 && (K = e.parent()) instanceof i1 && K.expression === r ? L1(r, [
|
35513
35513
|
D(q1, r, { value: 0 }),
|
35514
35514
|
c0
|
35515
35515
|
]) : c0;
|
@@ -35517,8 +35517,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35517
35517
|
}
|
35518
35518
|
if (b) {
|
35519
35519
|
var f, y, m = -1;
|
35520
|
-
let F, c0,
|
35521
|
-
if (i && !n.uses_arguments && !(e.parent() instanceof V1) && !(n.name && n instanceof he) && (c0 = z(o)) && (t === n || Qt(r, Pb) || e.option("unused") && (F = t.definition()).references.length == 1 && !QM(e, F) && n.is_constant_expression(t.scope)) && !Qt(r, $M | hs) && !n.contains_this() && N() && (
|
35520
|
+
let F, c0, K;
|
35521
|
+
if (i && !n.uses_arguments && !(e.parent() instanceof V1) && !(n.name && n instanceof he) && (c0 = z(o)) && (t === n || Qt(r, Pb) || e.option("unused") && (F = t.definition()).references.length == 1 && !QM(e, F) && n.is_constant_expression(t.scope)) && !Qt(r, $M | hs) && !n.contains_this() && N() && (K = e.find_scope()) && !Xb(K, n) && !function() {
|
35522
35522
|
let u0 = 0, q0;
|
35523
35523
|
for (; q0 = e.parent(u0++); ) {
|
35524
35524
|
if (q0 instanceof Tn)
|
@@ -35528,7 +35528,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35528
35528
|
}
|
35529
35529
|
return !1;
|
35530
35530
|
}() && !(f instanceof V1))
|
35531
|
-
return An(n, zs),
|
35531
|
+
return An(n, zs), K.add_child_scope(n), L1(r, Y(c0)).optimize(e);
|
35532
35532
|
}
|
35533
35533
|
if (b && Qt(r, Pb))
|
35534
35534
|
return An(n, zs), n = D(n.CTOR === Ce ? he : n.CTOR, n, n), n = n.clone(!0), n.figure_out_scope({}, {
|
@@ -35560,11 +35560,11 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35560
35560
|
});
|
35561
35561
|
}
|
35562
35562
|
function z(F) {
|
35563
|
-
var c0 = n.body,
|
35563
|
+
var c0 = n.body, K = c0.length;
|
35564
35564
|
if (e.option("inline") < 3)
|
35565
|
-
return
|
35565
|
+
return K == 1 && _(F);
|
35566
35566
|
F = null;
|
35567
|
-
for (var W0 = 0; W0 <
|
35567
|
+
for (var W0 = 0; W0 < K; W0++) {
|
35568
35568
|
var u0 = c0[W0];
|
35569
35569
|
if (u0 instanceof Mt) {
|
35570
35570
|
if (F && !u0.definitions.every(
|
@@ -35580,8 +35580,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35580
35580
|
return _(F);
|
35581
35581
|
}
|
35582
35582
|
function q(F, c0) {
|
35583
|
-
for (var
|
35584
|
-
var u0 = n.argnames[
|
35583
|
+
for (var K = 0, W0 = n.argnames.length; K < W0; K++) {
|
35584
|
+
var u0 = n.argnames[K];
|
35585
35585
|
if (u0 instanceof Tn) {
|
35586
35586
|
if (Rt(u0.left, xi))
|
35587
35587
|
continue;
|
@@ -35603,7 +35603,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35603
35603
|
return !0;
|
35604
35604
|
}
|
35605
35605
|
function W(F, c0) {
|
35606
|
-
for (var
|
35606
|
+
for (var K = n.body.length, W0 = 0; W0 < K; W0++) {
|
35607
35607
|
var u0 = n.body[W0];
|
35608
35608
|
if (u0 instanceof Mt) {
|
35609
35609
|
if (!c0)
|
@@ -35630,16 +35630,16 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35630
35630
|
else if (f instanceof S0 && f.fixed_value() instanceof A1)
|
35631
35631
|
return !1;
|
35632
35632
|
while (!(f instanceof A1));
|
35633
|
-
var c0 = !(f instanceof ge) || e.toplevel.vars,
|
35634
|
-
return !W(F,
|
35633
|
+
var c0 = !(f instanceof ge) || e.toplevel.vars, K = e.option("inline");
|
35634
|
+
return !W(F, K >= 3 && c0) || !q(F, K >= 2 && c0) ? !1 : !y || y.length == 0 || !OO(n, y);
|
35635
35635
|
}
|
35636
|
-
function L(F, c0,
|
35637
|
-
var u0 =
|
35638
|
-
f.variables.has(
|
35639
|
-
name:
|
35636
|
+
function L(F, c0, K, W0) {
|
35637
|
+
var u0 = K.definition();
|
35638
|
+
f.variables.has(K.name) || (f.variables.set(K.name, u0), f.enclosed.push(u0), F.push(D(Me, K, {
|
35639
|
+
name: K,
|
35640
35640
|
value: null
|
35641
35641
|
})));
|
35642
|
-
var Y0 = D(S0,
|
35642
|
+
var Y0 = D(S0, K, K);
|
35643
35643
|
u0.references.push(Y0), W0 && c0.push(D(C1, r, {
|
35644
35644
|
operator: "=",
|
35645
35645
|
logical: !1,
|
@@ -35648,9 +35648,9 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35648
35648
|
}));
|
35649
35649
|
}
|
35650
35650
|
function C(F, c0) {
|
35651
|
-
for (var
|
35651
|
+
for (var K = n.argnames.length, W0 = r.args.length; --W0 >= K; )
|
35652
35652
|
c0.push(r.args[W0]);
|
35653
|
-
for (W0 =
|
35653
|
+
for (W0 = K; --W0 >= 0; ) {
|
35654
35654
|
var u0 = n.argnames[W0], q0 = r.args[W0];
|
35655
35655
|
if (Rt(u0, xi) || !u0.name || f.conflicting_def(u0.name))
|
35656
35656
|
q0 && c0.push(q0);
|
@@ -35662,7 +35662,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35662
35662
|
F.reverse(), c0.reverse();
|
35663
35663
|
}
|
35664
35664
|
function U(F, c0) {
|
35665
|
-
for (var
|
35665
|
+
for (var K = c0.length, W0 = 0, u0 = n.body.length; W0 < u0; W0++) {
|
35666
35666
|
var q0 = n.body[W0];
|
35667
35667
|
if (q0 instanceof Mt)
|
35668
35668
|
for (var Y0 = 0, k0 = q0.definitions.length; Y0 < k0; Y0++) {
|
@@ -35671,7 +35671,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35671
35671
|
(e1) => e1.name != $0.name
|
35672
35672
|
)) {
|
35673
35673
|
var xe = n.variables.get($0.name), j1 = D(S0, $0, $0);
|
35674
|
-
xe.references.push(j1), c0.splice(
|
35674
|
+
xe.references.push(j1), c0.splice(K++, 0, D(C1, r1, {
|
35675
35675
|
operator: "=",
|
35676
35676
|
logical: !1,
|
35677
35677
|
left: j1,
|
@@ -35681,15 +35681,15 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
35681
35681
|
}
|
35682
35682
|
}
|
35683
35683
|
}
|
35684
|
-
function
|
35685
|
-
var c0 = [],
|
35686
|
-
if (C(c0,
|
35684
|
+
function Y(F) {
|
35685
|
+
var c0 = [], K = [];
|
35686
|
+
if (C(c0, K), U(c0, K), K.push(F), c0.length) {
|
35687
35687
|
const W0 = f.body.indexOf(e.parent(m - 1)) + 1;
|
35688
35688
|
f.body.splice(W0, 0, D(Mt, n, {
|
35689
35689
|
definitions: c0
|
35690
35690
|
}));
|
35691
35691
|
}
|
35692
|
-
return
|
35692
|
+
return K.map((W0) => W0.clone(!0));
|
35693
35693
|
}
|
35694
35694
|
}
|
35695
35695
|
(function(r) {
|
@@ -36387,14 +36387,14 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
36387
36387
|
for (let L = 0; L < o.length; L++) {
|
36388
36388
|
const C = o[L];
|
36389
36389
|
for (let U = L + 1; U < o.length; U++) {
|
36390
|
-
const
|
36391
|
-
if (
|
36390
|
+
const Y = o[U];
|
36391
|
+
if (Y.body.length === 0)
|
36392
36392
|
continue;
|
36393
|
-
const F = U === o.length - 1, c0 = _(
|
36394
|
-
if (c0 || F && _(
|
36395
|
-
!c0 && F &&
|
36396
|
-
let
|
36397
|
-
for (;
|
36393
|
+
const F = U === o.length - 1, c0 = _(Y, C, !1);
|
36394
|
+
if (c0 || F && _(Y, C, !0)) {
|
36395
|
+
!c0 && F && Y.body.push(D(Ln));
|
36396
|
+
let K = U - 1, W0 = 0;
|
36397
|
+
for (; K > L && N(o[K--]); )
|
36398
36398
|
W0++;
|
36399
36399
|
const u0 = o.splice(U - W0, 1 + W0);
|
36400
36400
|
o.splice(L + 1, 0, ...u0), L += u0.length;
|
@@ -36405,10 +36405,10 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
36405
36405
|
let C = o[L];
|
36406
36406
|
if (C.body.length !== 0 && xn(C))
|
36407
36407
|
for (let U = L + 1; U < o.length; L++, U++) {
|
36408
|
-
let
|
36409
|
-
if (
|
36410
|
-
if (_(
|
36411
|
-
C.body = [], C =
|
36408
|
+
let Y = o[U];
|
36409
|
+
if (Y.body.length !== 0) {
|
36410
|
+
if (_(Y, C, !1) || U === o.length - 1 && _(Y, C, !0)) {
|
36411
|
+
C.body = [], C = Y;
|
36412
36412
|
continue;
|
36413
36413
|
}
|
36414
36414
|
break;
|
@@ -36442,15 +36442,15 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
36442
36442
|
break e;
|
36443
36443
|
let U = o.length - 1;
|
36444
36444
|
for (; U >= 0; U--) {
|
36445
|
-
let
|
36446
|
-
if (
|
36445
|
+
let Y = o[U];
|
36446
|
+
if (Y !== x && Y.expression.has_side_effects(e))
|
36447
36447
|
break;
|
36448
36448
|
}
|
36449
36449
|
if (C > U) {
|
36450
|
-
let
|
36451
|
-
for (;
|
36450
|
+
let Y = L - 1;
|
36451
|
+
for (; Y >= 0 && N(o[Y]); Y--)
|
36452
36452
|
;
|
36453
|
-
let F = Math.max(U,
|
36453
|
+
let F = Math.max(U, Y) + 1, c0 = L;
|
36454
36454
|
U > L ? (c0 = U, o[U].body = o[C].body) : x.body = o[C].body, o.splice(c0 + 1, C - c0), o.splice(F, L - F);
|
36455
36455
|
}
|
36456
36456
|
}
|
@@ -36474,8 +36474,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
36474
36474
|
C || []
|
36475
36475
|
)
|
36476
36476
|
}).optimize(e);
|
36477
|
-
const
|
36478
|
-
if (o.splice(
|
36477
|
+
const Y = o.indexOf(x);
|
36478
|
+
if (o.splice(Y, 1), x = null, C)
|
36479
36479
|
return D(y1, r, {
|
36480
36480
|
body: s.concat(r, C)
|
36481
36481
|
}).optimize(e);
|
@@ -36519,7 +36519,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
36519
36519
|
})
|
36520
36520
|
}).optimize(e);
|
36521
36521
|
}
|
36522
|
-
let U = "===",
|
36522
|
+
let U = "===", Y = D(y1, L, {
|
36523
36523
|
body: L.body
|
36524
36524
|
}), F = D(y1, x, {
|
36525
36525
|
body: [].concat(
|
@@ -36530,7 +36530,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
36530
36530
|
if (o[0] === x) {
|
36531
36531
|
U = "!==";
|
36532
36532
|
let c0 = F;
|
36533
|
-
F =
|
36533
|
+
F = Y, Y = c0;
|
36534
36534
|
}
|
36535
36535
|
return D(y1, r, {
|
36536
36536
|
body: [
|
@@ -36540,7 +36540,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
36540
36540
|
left: r.expression,
|
36541
36541
|
right: L.expression
|
36542
36542
|
}),
|
36543
|
-
body:
|
36543
|
+
body: Y,
|
36544
36544
|
alternative: null
|
36545
36545
|
})
|
36546
36546
|
].concat(F)
|
@@ -36551,11 +36551,11 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
36551
36551
|
C && !xn(C) ? C.body = C.body.concat(L.body) : ds(e, L, s);
|
36552
36552
|
}
|
36553
36553
|
function _(L, C, U) {
|
36554
|
-
let
|
36555
|
-
if (U && (
|
36554
|
+
let Y = L.body, F = C.body;
|
36555
|
+
if (U && (Y = Y.concat(D(Ln))), Y.length !== F.length)
|
36556
36556
|
return !1;
|
36557
|
-
let c0 = D(y1, L, { body:
|
36558
|
-
return c0.equivalent_to(
|
36557
|
+
let c0 = D(y1, L, { body: Y }), K = D(y1, C, { body: F });
|
36558
|
+
return c0.equivalent_to(K);
|
36559
36559
|
}
|
36560
36560
|
function z(L) {
|
36561
36561
|
return D(o1, L, {
|
@@ -36563,13 +36563,13 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
36563
36563
|
});
|
36564
36564
|
}
|
36565
36565
|
function q(L) {
|
36566
|
-
let C = !1, U = new Ot((
|
36567
|
-
if (C ||
|
36566
|
+
let C = !1, U = new Ot((Y) => {
|
36567
|
+
if (C || Y instanceof u1 || Y instanceof o1)
|
36568
36568
|
return !0;
|
36569
|
-
if (!W(
|
36569
|
+
if (!W(Y, U))
|
36570
36570
|
return;
|
36571
36571
|
let F = U.parent();
|
36572
|
-
F instanceof bi && F.body[F.body.length - 1] ===
|
36572
|
+
F instanceof bi && F.body[F.body.length - 1] === Y || (C = !0);
|
36573
36573
|
});
|
36574
36574
|
return L.walk(U), C;
|
36575
36575
|
}
|
@@ -36836,21 +36836,21 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
36836
36836
|
try {
|
36837
36837
|
var W0 = "n(function(" + r.args.slice(0, -1).map(function(u0) {
|
36838
36838
|
return u0.value;
|
36839
|
-
}).join(",") + "){" + r.args[r.args.length - 1].value + "})",
|
36840
|
-
|
36839
|
+
}).join(",") + "){" + r.args[r.args.length - 1].value + "})", Y = Za(W0), F = e.mangle_options();
|
36840
|
+
Y.figure_out_scope(F);
|
36841
36841
|
var c0 = new RO(e.options, {
|
36842
36842
|
mangle_options: e._mangle_options
|
36843
36843
|
});
|
36844
|
-
|
36845
|
-
var
|
36846
|
-
ft(
|
36844
|
+
Y = Y.transform(c0), Y.figure_out_scope(F), Y.compute_char_frequency(F), Y.mangle_names(F);
|
36845
|
+
var K;
|
36846
|
+
ft(Y, (u0) => {
|
36847
36847
|
if (su(u0))
|
36848
|
-
return
|
36848
|
+
return K = u0, tn;
|
36849
36849
|
});
|
36850
36850
|
var W0 = XM();
|
36851
|
-
return y1.prototype._codegen.call(
|
36851
|
+
return y1.prototype._codegen.call(K, K, W0), r.args = [
|
36852
36852
|
D(I1, r, {
|
36853
|
-
value:
|
36853
|
+
value: K.argnames.map(function(u0) {
|
36854
36854
|
return u0.print_to_string();
|
36855
36855
|
}).join(",")
|
36856
36856
|
}),
|
@@ -36981,8 +36981,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
36981
36981
|
function n(U) {
|
36982
36982
|
if (t()) {
|
36983
36983
|
U && (r.operator = U);
|
36984
|
-
var
|
36985
|
-
r.left = r.right, r.right =
|
36984
|
+
var Y = r.left;
|
36985
|
+
r.left = r.right, r.right = Y;
|
36986
36986
|
}
|
36987
36987
|
}
|
36988
36988
|
if (e.option("lhs_constants") && zg.has(r.operator) && r.right.is_constant() && !r.left.is_constant() && (r.left instanceof f0 && vn[r.left.operator] >= vn[r.operator] || n()), r = r.lift_sequences(e), e.option("comparisons"))
|
@@ -37010,16 +37010,16 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
37010
37010
|
const U = (W0) => D(M1, W0, {
|
37011
37011
|
operator: "!",
|
37012
37012
|
expression: W0
|
37013
|
-
}),
|
37013
|
+
}), Y = (W0, u0) => u0 ? e.in_boolean_context() ? W0 : U(U(W0)) : U(W0);
|
37014
37014
|
if (r.left instanceof q1 && r.left.value === 0)
|
37015
|
-
return
|
37015
|
+
return Y(r.right, r.operator[0] === "!");
|
37016
37016
|
if (r.right instanceof q1 && r.right.value === 0)
|
37017
|
-
return
|
37018
|
-
let F, c0,
|
37019
|
-
if ((F = r.left instanceof f0 ? r.left : r.right instanceof f0 ? r.right : null) && (
|
37020
|
-
let W0 =
|
37017
|
+
return Y(r.left, r.operator[0] === "!");
|
37018
|
+
let F, c0, K;
|
37019
|
+
if ((F = r.left instanceof f0 ? r.left : r.right instanceof f0 ? r.right : null) && (K = F === r.left ? r.right : r.left) && F.operator === "&" && K instanceof q1 && K.is_32_bit_integer() && (c0 = F.left.equivalent_to(K) ? F.right : F.right.equivalent_to(K) ? F.left : null)) {
|
37020
|
+
let W0 = Y(D(f0, r, {
|
37021
37021
|
operator: "&",
|
37022
|
-
left:
|
37022
|
+
left: K,
|
37023
37023
|
right: D(M1, r, {
|
37024
37024
|
operator: "~",
|
37025
37025
|
expression: c0
|
@@ -37288,12 +37288,12 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
37288
37288
|
})));
|
37289
37289
|
}
|
37290
37290
|
if (e3.has(r.operator)) {
|
37291
|
-
let U,
|
37292
|
-
if (r.operator === "&" && r.right instanceof f0 && r.right.operator === "|" && typeof (
|
37293
|
-
if (!(U &
|
37291
|
+
let U, Y, F, c0, K = r.left;
|
37292
|
+
if (r.operator === "&" && r.right instanceof f0 && r.right.operator === "|" && typeof (Y = r.left.evaluate(e)) == "number" && (typeof (U = r.right.right.evaluate(e)) == "number" ? (F = r.right.left, c0 = r.right.right) : typeof (U = r.right.left.evaluate(e)) == "number" && (F = r.right.right, c0 = r.right.left), F && c0))
|
37293
|
+
if (!(U & Y))
|
37294
37294
|
r = D(f0, r, {
|
37295
37295
|
operator: r.operator,
|
37296
|
-
left:
|
37296
|
+
left: K,
|
37297
37297
|
right: F
|
37298
37298
|
});
|
37299
37299
|
else {
|
@@ -37302,9 +37302,9 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
37302
37302
|
left: D(f0, r, {
|
37303
37303
|
operator: "&",
|
37304
37304
|
left: F,
|
37305
|
-
right:
|
37305
|
+
right: K
|
37306
37306
|
}),
|
37307
|
-
right: jt(U &
|
37307
|
+
right: jt(U & Y, c0)
|
37308
37308
|
});
|
37309
37309
|
r = hn(e, r, $0);
|
37310
37310
|
}
|
@@ -38093,7 +38093,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
38093
38093
|
function U(X) {
|
38094
38094
|
return X.startsWith("/");
|
38095
38095
|
}
|
38096
|
-
function
|
38096
|
+
function Y(X) {
|
38097
38097
|
return X.startsWith("file:");
|
38098
38098
|
}
|
38099
38099
|
function F(X) {
|
@@ -38103,7 +38103,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
38103
38103
|
const V = W.exec(X);
|
38104
38104
|
return W0(V[1], V[2] || "", V[3], V[4] || "", V[5] || "/", V[6] || "", V[7] || "");
|
38105
38105
|
}
|
38106
|
-
function
|
38106
|
+
function K(X) {
|
38107
38107
|
const V = N.exec(X), e0 = V[2];
|
38108
38108
|
return W0("file:", "", V[1] || "", "", U(e0) ? e0 : "/" + e0, V[3] || "", V[4] || "");
|
38109
38109
|
}
|
@@ -38128,8 +38128,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
38128
38128
|
const e0 = c0("http://foo.com" + X);
|
38129
38129
|
return e0.scheme = "", e0.host = "", e0.type = 5, e0;
|
38130
38130
|
}
|
38131
|
-
if (
|
38132
|
-
return
|
38131
|
+
if (Y(X))
|
38132
|
+
return K(X);
|
38133
38133
|
if (L(X))
|
38134
38134
|
return c0(X);
|
38135
38135
|
const V = c0("http://foo.com/" + X);
|
@@ -60453,21 +60453,21 @@ Input files:
|
|
60453
60453
|
const q = this._parserSingleExpression(b), W = this._parserSingleExpression(f), N = y ? this._parserSingleExpression(y) : "", L = this._parserBlockLine(i, t, !1, !0);
|
60454
60454
|
Kr.includes(s) && (s = `$${s}`);
|
60455
60455
|
const C = `var ${E} = Date.now()`;
|
60456
|
-
let
|
60456
|
+
let Y = `for (let ${s}=${q};(${this._prefixNameVar}.compareDataHandle(${s}) - ${_}) * ${z} >= 0; ${s}-=(${N || "1"}) * ${z}){
|
60457
60457
|
if (Date.now() - ${E} > 500) {
|
60458
60458
|
throw new Error('${p1.loopRuntimeErr}')
|
60459
60459
|
}
|
60460
60460
|
${x}++
|
60461
60461
|
${L}
|
60462
60462
|
}`;
|
60463
|
-
return
|
60463
|
+
return Y = `${C};
|
60464
60464
|
${m ? "" : `var ${x} = 0`};
|
60465
60465
|
const ${_} = ${W};
|
60466
60466
|
const ${z} = (${q})>${_} ? 1 : -1;
|
60467
|
-
${
|
60468
|
-
code:
|
60467
|
+
${Y}`, t || this._codesCol[this._blockCount].push({
|
60468
|
+
code: Y,
|
60469
60469
|
depends: this._getDepends(T)
|
60470
|
-
}), this._isInLoop = m, t ? this._functionalProcess(
|
60470
|
+
}), this._isInLoop = m, t ? this._functionalProcess(Y, o) : Y;
|
60471
60471
|
}
|
60472
60472
|
_parserAgainAssign(e) {
|
60473
60473
|
const { operator: t, name: n, value: i } = e, { varPos: s, declare: o } = n, p = `$againAssign${this._blockCount}`;
|
@@ -76413,12 +76413,12 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
76413
76413
|
const _ = x.args.params || [], z = { ...E }, q = this._getMethodTypes([z], [o[T]]) || [], W = q[0];
|
76414
76414
|
if (this._types.has(W)) {
|
76415
76415
|
if (x.name.includes(".")) {
|
76416
|
-
const L = x.name.split("."), C = L.pop(), U = L.join("."),
|
76416
|
+
const L = x.name.split("."), C = L.pop(), U = L.join("."), Y = this._getMethodFiledType(q, U, e), F = this._getOriginMethodName(Y, C);
|
76417
76417
|
return this._buildinFunctions.has(F) ? x.name = F : x.name = C, z.ctx = o[T], _.unshift({
|
76418
76418
|
ruleType: b0.Name,
|
76419
76419
|
hasMethod: !0,
|
76420
76420
|
exprs: [z, U],
|
76421
|
-
type:
|
76421
|
+
type: Y
|
76422
76422
|
}), x.args.params = _, x;
|
76423
76423
|
} else
|
76424
76424
|
y = T, E.isType = !0;
|
@@ -78435,16 +78435,16 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
78435
78435
|
case "any matrix type":
|
78436
78436
|
if (this._isMatrixType(m)) {
|
78437
78437
|
if (T === "id2") {
|
78438
|
-
const
|
78439
|
-
if (!
|
78438
|
+
const Y = this._getArrayType(i?.type);
|
78439
|
+
if (!Y)
|
78440
78440
|
return;
|
78441
78441
|
const F = this._getArrayType(m) || "";
|
78442
|
-
if (
|
78442
|
+
if (Y !== F)
|
78443
78443
|
return y0(_0.typeMismatch, {
|
78444
78444
|
operator: n,
|
78445
78445
|
index: T,
|
78446
78446
|
typeE: F,
|
78447
|
-
typeR:
|
78447
|
+
typeR: Y
|
78448
78448
|
});
|
78449
78449
|
}
|
78450
78450
|
} else
|
@@ -78458,16 +78458,16 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
78458
78458
|
case "any array type":
|
78459
78459
|
if (this._isArrayType(m)) {
|
78460
78460
|
if (T === "id2") {
|
78461
|
-
const
|
78462
|
-
if (!
|
78461
|
+
const Y = this._getArrayType(i?.type);
|
78462
|
+
if (!Y)
|
78463
78463
|
return;
|
78464
78464
|
const F = this._getArrayType(m) || "";
|
78465
|
-
if (
|
78465
|
+
if (Y !== F)
|
78466
78466
|
return y0(_0.typeMismatch, {
|
78467
78467
|
operator: n,
|
78468
78468
|
index: T,
|
78469
78469
|
typeE: F,
|
78470
|
-
typeR:
|
78470
|
+
typeR: Y
|
78471
78471
|
});
|
78472
78472
|
}
|
78473
78473
|
} else
|
@@ -78492,16 +78492,16 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
78492
78492
|
case "any map type":
|
78493
78493
|
if (this._isMapType(m)) {
|
78494
78494
|
if (T === "id2") {
|
78495
|
-
const
|
78496
|
-
if (!
|
78495
|
+
const Y = this._getMapType(i?.type);
|
78496
|
+
if (!Y)
|
78497
78497
|
return;
|
78498
78498
|
const F = this._getMapType(m) || [];
|
78499
|
-
if (
|
78499
|
+
if (Y[0] !== F[0] || Y[1] !== F[1])
|
78500
78500
|
return y0(_0.mapKeyValErr, {
|
78501
78501
|
typeA: this._typeAddSeries(F[0]),
|
78502
78502
|
typeB: this._typeAddSeries(F[1]),
|
78503
|
-
typeC: this._typeAddSeries(
|
78504
|
-
typeD: this._typeAddSeries(
|
78503
|
+
typeC: this._typeAddSeries(Y[0]),
|
78504
|
+
typeD: this._typeAddSeries(Y[1]),
|
78505
78505
|
name: n
|
78506
78506
|
});
|
78507
78507
|
}
|
@@ -78543,12 +78543,12 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
78543
78543
|
break;
|
78544
78544
|
case "variable, object or function of series int/float/bool/string/color, or a tuple of these":
|
78545
78545
|
if (b === b0.Brackethesized) {
|
78546
|
-
for (const
|
78547
|
-
if (!E.includes(
|
78546
|
+
for (const Y of f)
|
78547
|
+
if (!E.includes(Y.type) && Y.type !== I.UNDETERMINED)
|
78548
78548
|
return y0(_0.requestArgsErr, {
|
78549
78549
|
name: n,
|
78550
78550
|
argName: T,
|
78551
|
-
type:
|
78551
|
+
type: Y.type
|
78552
78552
|
});
|
78553
78553
|
}
|
78554
78554
|
break;
|
@@ -78602,15 +78602,15 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
78602
78602
|
default:
|
78603
78603
|
const U = this._removePrefix(e.type);
|
78604
78604
|
if (e.arg && e.arg.isArg && !o) {
|
78605
|
-
const
|
78606
|
-
if (
|
78607
|
-
e.type =
|
78605
|
+
const Y = E.find((F) => F.endsWith(U));
|
78606
|
+
if (Y) {
|
78607
|
+
e.type = Y, e.arg.type = Y;
|
78608
78608
|
return;
|
78609
78609
|
}
|
78610
78610
|
}
|
78611
78611
|
if (E.length === 1 && this._removePrefix(E[0]) === U) {
|
78612
|
-
const
|
78613
|
-
if (Qr.indexOf(
|
78612
|
+
const Y = this._getPrefix(e.type), F = this._getPrefix(E[0]);
|
78613
|
+
if (Qr.indexOf(Y) >= Qr.indexOf(F))
|
78614
78614
|
return;
|
78615
78615
|
}
|
78616
78616
|
if (x)
|
@@ -78694,9 +78694,9 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
78694
78694
|
if (C.length !== x.length)
|
78695
78695
|
_ = U.ctx;
|
78696
78696
|
else
|
78697
|
-
for (const [
|
78698
|
-
if (this._compareType(C[
|
78699
|
-
(C[
|
78697
|
+
for (const [Y, F] of x.entries())
|
78698
|
+
if (this._compareType(C[Y], F, !0))
|
78699
|
+
(C[Y].includes(I.FLOAT) && !F.includes(I.FLOAT) || x[Y] === `${I.SIMPLE} ${I.NA}` || x[Y] === I.UNDETERMINED && C[Y] !== `${I.SIMPLE} ${I.NA}`) && (x[Y] = C[Y]);
|
78700
78700
|
else {
|
78701
78701
|
_ = U.ctx;
|
78702
78702
|
break;
|
@@ -78951,26 +78951,28 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
78951
78951
|
this._isInLoop = !0;
|
78952
78952
|
const E = `$start${this._count + 1}`;
|
78953
78953
|
m || (this._count += 1);
|
78954
|
-
const x = `$$count${this._count}`, T = `$forTo${this._blockCount}`, _ = `$$toCount${p.start.tokenIndex}`, z = `_$sign${p.start.tokenIndex}`;
|
78954
|
+
const x = `$$count${this._count}`, T = `$forTo${this._blockCount}`, _ = `$$toCount${p.start.tokenIndex}`, z = `_$sign${p.start.tokenIndex}`, q = `_$step${p.start.tokenIndex}`;
|
78955
78955
|
t || (this._dependsObj[T] = /* @__PURE__ */ new Map());
|
78956
|
-
const
|
78956
|
+
const W = this._parserSingleExpression(b), N = this._parserSingleExpression(f), L = y ? this._parserSingleExpression(y) : "", C = this._parserBlockLine(i, t, !1, !0);
|
78957
78957
|
Fe.includes(s) && (s = `$${s}`);
|
78958
|
-
const
|
78959
|
-
let
|
78958
|
+
const U = `var ${E} = Date.now()`;
|
78959
|
+
let F = `for (let ${s}=${W};${s} * ${z} >= ${_}; ${s}-=${q}){
|
78960
78960
|
if (Date.now() - ${E} > 500) {
|
78961
78961
|
throw new Error('${_0.loopRuntimeErr}')
|
78962
78962
|
}
|
78963
78963
|
${x}++
|
78964
|
-
${
|
78964
|
+
${C}
|
78965
78965
|
}`;
|
78966
|
-
return
|
78966
|
+
return F = `${U};
|
78967
78967
|
${m ? "" : `var ${x} = 0`};
|
78968
|
-
|
78969
|
-
const ${z} = (${
|
78970
|
-
${
|
78971
|
-
|
78968
|
+
let ${_} = ${N};
|
78969
|
+
const ${z} = (${W})>${_} ? 1 : -1;
|
78970
|
+
${_} = ${_}*${z};
|
78971
|
+
const ${q} = (${L || "1"}) * ${z}
|
78972
|
+
${F}`, t || this._codesCol[this._blockCount].push({
|
78973
|
+
code: F,
|
78972
78974
|
depends: this._getDepends(T)
|
78973
|
-
}), this._isInLoop = m, t ? this._functionalProcess(
|
78975
|
+
}), this._isInLoop = m, t ? this._functionalProcess(F, o) : F;
|
78974
78976
|
}
|
78975
78977
|
_parserForInStatement(e, t = !1) {
|
78976
78978
|
const { names: n, block: i, array: s, type: o } = e, p = this._isInLoop;
|
@@ -80454,11 +80456,11 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
80454
80456
|
b.exportPositions.length || (N.message = _0.libraryExportErr, i.push(N));
|
80455
80457
|
else if (b.exportPositions.length) {
|
80456
80458
|
const L = b.exportPositions.map((C) => {
|
80457
|
-
const { type: U, ...
|
80459
|
+
const { type: U, ...Y } = C;
|
80458
80460
|
return {
|
80459
80461
|
message: y0(_0.exportUseErr, { type: U }),
|
80460
80462
|
type: Ye.Error,
|
80461
|
-
...
|
80463
|
+
...Y
|
80462
80464
|
};
|
80463
80465
|
});
|
80464
80466
|
i.push(...L);
|
@@ -96003,12 +96005,12 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
96003
96005
|
const _ = x.args.params || [], z = { ...E }, q = this._getMethodTypes([z], [o[T]]) || [], W = q[0];
|
96004
96006
|
if (this._types.has(W)) {
|
96005
96007
|
if (x.name.includes(".")) {
|
96006
|
-
const L = x.name.split("."), C = L.pop(), U = L.join("."),
|
96008
|
+
const L = x.name.split("."), C = L.pop(), U = L.join("."), Y = this._getMethodFiledType(q, U, e), F = this._getOriginMethodName(Y, C);
|
96007
96009
|
return this._buildinFunctions.has(F) ? x.name = F : x.name = C, z.ctx = o[T], _.unshift({
|
96008
96010
|
ruleType: v0.Name,
|
96009
96011
|
hasMethod: !0,
|
96010
96012
|
exprs: [z, U],
|
96011
|
-
type:
|
96013
|
+
type: Y
|
96012
96014
|
}), x.args.params = _, x;
|
96013
96015
|
} else
|
96014
96016
|
y = T, E.isType = !0;
|
@@ -98022,16 +98024,16 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
98022
98024
|
case "any matrix type":
|
98023
98025
|
if (this._isMatrixType(m)) {
|
98024
98026
|
if (T === "id2") {
|
98025
|
-
const
|
98026
|
-
if (!
|
98027
|
+
const Y = this._getArrayType(i?.type);
|
98028
|
+
if (!Y)
|
98027
98029
|
return;
|
98028
98030
|
const F = this._getArrayType(m) || "";
|
98029
|
-
if (
|
98031
|
+
if (Y !== F)
|
98030
98032
|
return g0(d0.typeMismatch, {
|
98031
98033
|
operator: n,
|
98032
98034
|
index: T,
|
98033
98035
|
typeE: F,
|
98034
|
-
typeR:
|
98036
|
+
typeR: Y
|
98035
98037
|
});
|
98036
98038
|
}
|
98037
98039
|
} else
|
@@ -98045,16 +98047,16 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
98045
98047
|
case "any array type":
|
98046
98048
|
if (this._isArrayType(m)) {
|
98047
98049
|
if (T === "id2") {
|
98048
|
-
const
|
98049
|
-
if (!
|
98050
|
+
const Y = this._getArrayType(i?.type);
|
98051
|
+
if (!Y)
|
98050
98052
|
return;
|
98051
98053
|
const F = this._getArrayType(m) || "";
|
98052
|
-
if (
|
98054
|
+
if (Y !== F)
|
98053
98055
|
return g0(d0.typeMismatch, {
|
98054
98056
|
operator: n,
|
98055
98057
|
index: T,
|
98056
98058
|
typeE: F,
|
98057
|
-
typeR:
|
98059
|
+
typeR: Y
|
98058
98060
|
});
|
98059
98061
|
}
|
98060
98062
|
} else
|
@@ -98079,16 +98081,16 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
98079
98081
|
case "any map type":
|
98080
98082
|
if (this._isMapType(m)) {
|
98081
98083
|
if (T === "id2") {
|
98082
|
-
const
|
98083
|
-
if (!
|
98084
|
+
const Y = this._getMapType(i?.type);
|
98085
|
+
if (!Y)
|
98084
98086
|
return;
|
98085
98087
|
const F = this._getMapType(m) || [];
|
98086
|
-
if (
|
98088
|
+
if (Y[0] !== F[0] || Y[1] !== F[1])
|
98087
98089
|
return g0(d0.mapKeyValErr, {
|
98088
98090
|
typeA: this._typeAddSeries(F[0]),
|
98089
98091
|
typeB: this._typeAddSeries(F[1]),
|
98090
|
-
typeC: this._typeAddSeries(
|
98091
|
-
typeD: this._typeAddSeries(
|
98092
|
+
typeC: this._typeAddSeries(Y[0]),
|
98093
|
+
typeD: this._typeAddSeries(Y[1]),
|
98092
98094
|
name: n
|
98093
98095
|
});
|
98094
98096
|
}
|
@@ -98129,12 +98131,12 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
98129
98131
|
break;
|
98130
98132
|
case "variable, object or function of series int/float/bool/string/color/enum, or a tuple of these":
|
98131
98133
|
if (b === v0.Brackethesized) {
|
98132
|
-
for (const
|
98133
|
-
if (!E.includes(
|
98134
|
+
for (const Y of f)
|
98135
|
+
if (!E.includes(Y.type) && Y.type !== P.UNDETERMINED)
|
98134
98136
|
return g0(d0.requestArgsErr, {
|
98135
98137
|
name: n,
|
98136
98138
|
argName: T,
|
98137
|
-
type:
|
98139
|
+
type: Y.type
|
98138
98140
|
});
|
98139
98141
|
}
|
98140
98142
|
break;
|
@@ -98189,15 +98191,15 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
98189
98191
|
default:
|
98190
98192
|
const U = this._removePrefix(e.type);
|
98191
98193
|
if (e.arg && e.arg.isArg && !o) {
|
98192
|
-
const
|
98193
|
-
if (
|
98194
|
-
e.type =
|
98194
|
+
const Y = E.find((F) => F.endsWith(U));
|
98195
|
+
if (Y) {
|
98196
|
+
e.type = Y, e.arg.type = Y;
|
98195
98197
|
return;
|
98196
98198
|
}
|
98197
98199
|
}
|
98198
98200
|
if (E.length === 1 && this._removePrefix(E[0]) === U) {
|
98199
|
-
const
|
98200
|
-
if (Zr.indexOf(
|
98201
|
+
const Y = this._getPrefix(e.type), F = this._getPrefix(E[0]);
|
98202
|
+
if (Zr.indexOf(Y) >= Zr.indexOf(F))
|
98201
98203
|
return;
|
98202
98204
|
}
|
98203
98205
|
if (x)
|
@@ -98281,9 +98283,9 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
98281
98283
|
if (C.length !== x.length)
|
98282
98284
|
_ = U.ctx;
|
98283
98285
|
else
|
98284
|
-
for (const [
|
98285
|
-
if (this._compareType(C[
|
98286
|
-
(C[
|
98286
|
+
for (const [Y, F] of x.entries())
|
98287
|
+
if (this._compareType(C[Y], F))
|
98288
|
+
(C[Y].includes(P.FLOAT) && !F.includes(P.FLOAT) || x[Y] === `${P.SIMPLE} ${P.NA}` || x[Y] === P.UNDETERMINED && C[Y] !== `${P.SIMPLE} ${P.NA}`) && (x[Y] = C[Y]);
|
98287
98289
|
else {
|
98288
98290
|
_ = U.ctx;
|
98289
98291
|
break;
|
@@ -98548,21 +98550,21 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
98548
98550
|
const q = this._parserSingleExpression(b), W = this._parserSingleExpression(f), N = y ? this._parserSingleExpression(y) : "", L = this._parserBlockLine(i, t, !1, !0);
|
98549
98551
|
ln.includes(s) && (s = `$${s}`);
|
98550
98552
|
const C = `var ${E} = Date.now()`;
|
98551
|
-
let
|
98553
|
+
let Y = `for (let ${s}=${q};(${this._prefixNameVar}.compareDataHandle(${s}) - ${W}) * ${z} >= 0; ${s}-=(${N || "1"}) * ${z}){
|
98552
98554
|
if (Date.now() - ${E} > 500) {
|
98553
98555
|
throw new Error('${d0.loopRuntimeErr}')
|
98554
98556
|
}
|
98555
98557
|
${x}++
|
98556
98558
|
${L}
|
98557
98559
|
}`;
|
98558
|
-
return
|
98560
|
+
return Y = `${C};
|
98559
98561
|
${m ? "" : `var ${x} = 0`};
|
98560
98562
|
const ${_} = ${W};
|
98561
98563
|
const ${z} = (${q})>${_} ? 1 : -1;
|
98562
|
-
${
|
98563
|
-
code:
|
98564
|
+
${Y}`, t || this._codesCol[this._blockCount].push({
|
98565
|
+
code: Y,
|
98564
98566
|
depends: this._getDepends(T)
|
98565
|
-
}), this._isInLoop = m, t ? this._functionalProcess(
|
98567
|
+
}), this._isInLoop = m, t ? this._functionalProcess(Y, o) : Y;
|
98566
98568
|
}
|
98567
98569
|
_parserForInStatement(e, t = !1) {
|
98568
98570
|
const { names: n, block: i, array: s, type: o } = e, p = this._isInLoop;
|
@@ -99234,11 +99236,11 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
99234
99236
|
b.exportPositions.length || (N.message = d0.libraryExportErr, i.push(N));
|
99235
99237
|
else if (b.exportPositions.length) {
|
99236
99238
|
const L = b.exportPositions.map((C) => {
|
99237
|
-
const { type: U, ...
|
99239
|
+
const { type: U, ...Y } = C;
|
99238
99240
|
return {
|
99239
99241
|
message: g0(d0.exportUseErr, { type: U }),
|
99240
99242
|
type: Ft.Error,
|
99241
|
-
...
|
99243
|
+
...Y
|
99242
99244
|
};
|
99243
99245
|
});
|
99244
99246
|
i.push(...L);
|