@malloydata/render 0.0.144-dev240426181908 → 0.0.144-dev240503150037
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.
|
@@ -413,7 +413,7 @@ function Wle(t, e, n = {}) {
|
|
|
413
413
|
return a[Ple], Go(() => {
|
|
414
414
|
let x = a.length, h, p, m, g, y, E, A, S, v;
|
|
415
415
|
if (x === 0)
|
|
416
|
-
o !== 0 && (xP(s), s = [], r = [], i = [], o = 0, u && (u = [])), n.fallback && (r = [Gle], i[0] = GA((
|
|
416
|
+
o !== 0 && (xP(s), s = [], r = [], i = [], o = 0, u && (u = [])), n.fallback && (r = [Gle], i[0] = GA((_) => (s[0] = _, n.fallback())), o = 1);
|
|
417
417
|
else if (o === 0) {
|
|
418
418
|
for (i = new Array(x), c = 0; c < x; c++)
|
|
419
419
|
r[c] = a[c], i[c] = GA(f);
|
|
@@ -1619,8 +1619,8 @@ function zce(t) {
|
|
|
1619
1619
|
for (var p = 16; p < 80; ++p)
|
|
1620
1620
|
x[p] = iD(x[p - 3] ^ x[p - 8] ^ x[p - 14] ^ x[p - 16], 1);
|
|
1621
1621
|
for (var m = n[0], g = n[1], y = n[2], E = n[3], A = n[4], S = 0; S < 80; ++S) {
|
|
1622
|
-
var v = Math.floor(S / 20),
|
|
1623
|
-
A = E, E = y, y = iD(g, 30) >>> 0, g = m, m =
|
|
1622
|
+
var v = Math.floor(S / 20), _ = iD(m, 5) + Hce(v, g, y, E) + A + e[v] + x[S] >>> 0;
|
|
1623
|
+
A = E, E = y, y = iD(g, 30) >>> 0, g = m, m = _;
|
|
1624
1624
|
}
|
|
1625
1625
|
n[0] = n[0] + m >>> 0, n[1] = n[1] + g >>> 0, n[2] = n[2] + y >>> 0, n[3] = n[3] + E >>> 0, n[4] = n[4] + A >>> 0;
|
|
1626
1626
|
}
|
|
@@ -2632,8 +2632,8 @@ function _xe() {
|
|
|
2632
2632
|
AC.fnSumMoving = _xe;
|
|
2633
2633
|
(function(t) {
|
|
2634
2634
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.FUNCTIONS = void 0;
|
|
2635
|
-
const e = Q_, n = G_, r = W_, i = V_, s = Y_, o = D0, u = K_, a = X_, l = J_, c = Z_, f = bh, x = eC, h = tC, p = nC, m = rC, g = iC, y = sC, E = Th, A = Yi, S = Rh, v = oC,
|
|
2636
|
-
t.FUNCTIONS = new be.FunctionMap(), t.FUNCTIONS.add("concat", e.fnConcat), t.FUNCTIONS.add("round", i.fnRound), t.FUNCTIONS.add("trunc", n.fnTrunc), t.FUNCTIONS.add("floor", X.fnFloor), t.FUNCTIONS.add("ceil", X.fnCeil), t.FUNCTIONS.add("cos", X.fnCos), t.FUNCTIONS.add("acos", X.fnAcos), t.FUNCTIONS.add("sin", X.fnSin), t.FUNCTIONS.add("asin", X.fnAsin), t.FUNCTIONS.add("tan", X.fnTan), t.FUNCTIONS.add("atan", X.fnAtan), t.FUNCTIONS.add("atan2",
|
|
2635
|
+
const e = Q_, n = G_, r = W_, i = V_, s = Y_, o = D0, u = K_, a = X_, l = J_, c = Z_, f = bh, x = eC, h = tC, p = nC, m = rC, g = iC, y = sC, E = Th, A = Yi, S = Rh, v = oC, _ = uC, C = aC, b = lC, R = cC, O = fC, L = xC, M = Oh, q = F0, W = dC, B = hC, G = pC, te = gC, X = Lt, de = mC, be = yC, ee = EC, U = Nh, T = no, w = AC;
|
|
2636
|
+
t.FUNCTIONS = new be.FunctionMap(), t.FUNCTIONS.add("concat", e.fnConcat), t.FUNCTIONS.add("round", i.fnRound), t.FUNCTIONS.add("trunc", n.fnTrunc), t.FUNCTIONS.add("floor", X.fnFloor), t.FUNCTIONS.add("ceil", X.fnCeil), t.FUNCTIONS.add("cos", X.fnCos), t.FUNCTIONS.add("acos", X.fnAcos), t.FUNCTIONS.add("sin", X.fnSin), t.FUNCTIONS.add("asin", X.fnAsin), t.FUNCTIONS.add("tan", X.fnTan), t.FUNCTIONS.add("atan", X.fnAtan), t.FUNCTIONS.add("atan2", C.fnAtan2), t.FUNCTIONS.add("lower", s.fnLower), t.FUNCTIONS.add("upper", u.fnUpper), t.FUNCTIONS.add("sqrt", X.fnSqrt), t.FUNCTIONS.add("pow", b.fnPow), t.FUNCTIONS.add("abs", X.fnAbs), t.FUNCTIONS.add("sign", X.fnSign), t.FUNCTIONS.add("is_inf", v.fnIsInf), t.FUNCTIONS.add("is_nan", _.fnIsNan), t.FUNCTIONS.add("greatest", M.fnGreatest), t.FUNCTIONS.add("least", M.fnLeast), t.FUNCTIONS.add("div", L.fnDiv), t.FUNCTIONS.add("strpos", O.fnStrpos), t.FUNCTIONS.add("starts_with", S.fnStartsWith), t.FUNCTIONS.add("ends_with", S.fnEndsWith), t.FUNCTIONS.add("trim", q.fnTrim), t.FUNCTIONS.add("ltrim", q.fnLtrim), t.FUNCTIONS.add("rtrim", q.fnRtrim), t.FUNCTIONS.add("rand", W.fnRand), t.FUNCTIONS.add("pi", B.fnPi), t.FUNCTIONS.add("substr", a.fnSubstr), t.FUNCTIONS.add("regexp_extract", l.fnRegexpExtract), t.FUNCTIONS.add("replace", c.fnReplace), t.FUNCTIONS.add("length", f.fnLength), t.FUNCTIONS.add("byte_length", f.fnByteLength), t.FUNCTIONS.add("ifnull", x.fnIfnull), t.FUNCTIONS.add("coalesce", ee.fnCoalesce), t.FUNCTIONS.add("nullif", h.fnNullif), t.FUNCTIONS.add("chr", o.fnChr), t.FUNCTIONS.add("ascii", o.fnAscii), t.FUNCTIONS.add("unicode", o.fnUnicode), t.FUNCTIONS.add("repeat", G.fnRepeat), t.FUNCTIONS.add("reverse", te.fnReverse), t.FUNCTIONS.add("log", R.fnLog), t.FUNCTIONS.add("ln", X.fnLn), t.FUNCTIONS.add("exp", X.fnExp), t.FUNCTIONS.add("stddev", r.fnStddev), t.FUNCTIONS.add("string_agg", U.fnStringAgg), t.FUNCTIONS.add("string_agg_distinct", U.fnStringAggDistinct), t.FUNCTIONS.add("row_number", p.fnRowNumber), t.FUNCTIONS.add("lag", m.fnLag), t.FUNCTIONS.add("lead", g.fnLead), t.FUNCTIONS.add("rank", y.fnRank), t.FUNCTIONS.add("first_value", E.fnFirstValueWindow), t.FUNCTIONS.add("last_value", E.fnLastValueWindow), t.FUNCTIONS.add("min_cumulative", A.fnMinCumulative), t.FUNCTIONS.add("max_cumulative", A.fnMaxCumulative), t.FUNCTIONS.add("sum_cumulative", A.fnSumCumulative), t.FUNCTIONS.add("min_window", A.fnMinWindow), t.FUNCTIONS.add("max_window", A.fnMaxWindow), t.FUNCTIONS.add("sum_window", A.fnSumWindow), t.FUNCTIONS.add("avg_moving", de.fnAvgRolling), t.FUNCTIONS.add("sum_moving", w.fnSumMoving), t.FUNCTIONS.add("sql_number", T.fnSqlNumber), t.FUNCTIONS.add("sql_string", T.fnSqlString), t.FUNCTIONS.add("sql_date", T.fnSqlDate), t.FUNCTIONS.add("sql_timestamp", T.fnSqlTimestamp), t.FUNCTIONS.add("sql_boolean", T.fnSqlBoolean), t.FUNCTIONS.seal();
|
|
2637
2637
|
})(OG);
|
|
2638
2638
|
(function(t) {
|
|
2639
2639
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.FUNCTIONS = void 0;
|
|
@@ -5425,7 +5425,7 @@ let IS = class extends HG {
|
|
|
5425
5425
|
return this.generateDimFragment(e, n, S, i);
|
|
5426
5426
|
});
|
|
5427
5427
|
return n.dialect.sqlAggDistinct(f, [...h, ...m], (g) => {
|
|
5428
|
-
const y = g.map((
|
|
5428
|
+
const y = g.map((_, C) => C < l.length && this.getParamForArgIndex(a.params, C).allowedTypes.every((R) => (0, Ue.isLiteral)(R.evalSpace)) ? l[C] : [_]), E = y.slice(0, h.length), A = y.slice(h.length).map((_, C) => ({ e: _, dir: p[C].dir })), S = this.getFunctionOrderBy(e, n, i, A, E, a), v = this.expandFunctionCall(n.dialect.name, a, E, S, x);
|
|
5429
5429
|
return this.generateExpressionFromExpr(e, n, v, i);
|
|
5430
5430
|
});
|
|
5431
5431
|
} else {
|
|
@@ -5526,42 +5526,43 @@ let IS = class extends HG {
|
|
|
5526
5526
|
], x = f.length > 0 ? `PARTITION BY ${f.join(", ")}` : "";
|
|
5527
5527
|
let h = a ?? "";
|
|
5528
5528
|
if (!a && i.needsWindowOrderBy) {
|
|
5529
|
-
const
|
|
5530
|
-
let
|
|
5531
|
-
const
|
|
5532
|
-
for (const
|
|
5533
|
-
typeof
|
|
5534
|
-
name:
|
|
5535
|
-
fif: e.getField(
|
|
5536
|
-
} :
|
|
5537
|
-
const
|
|
5538
|
-
if (!(0, Ue.expressionIsAnalytic)(
|
|
5529
|
+
const y = [];
|
|
5530
|
+
let E;
|
|
5531
|
+
const A = e.firstSegment.orderBy || e.calculateDefaultOrderBy();
|
|
5532
|
+
for (const S of A) {
|
|
5533
|
+
typeof S.field == "string" ? E = {
|
|
5534
|
+
name: S.field,
|
|
5535
|
+
fif: e.getField(S.field)
|
|
5536
|
+
} : E = e.getFieldByNumber(S.field);
|
|
5537
|
+
const v = E.fif.f.fieldDef.expressionType;
|
|
5538
|
+
if (!(0, Ue.expressionIsAnalytic)(v))
|
|
5539
5539
|
if (e.firstSegment.type === "reduce") {
|
|
5540
|
-
const
|
|
5541
|
-
|
|
5540
|
+
const _ = E.fif.getAnalyticalSQL(!1);
|
|
5541
|
+
y.push(` ${_} ${S.dir || "ASC"}`);
|
|
5542
5542
|
} else
|
|
5543
|
-
e.firstSegment.type === "project" &&
|
|
5543
|
+
e.firstSegment.type === "project" && y.push(` ${E.fif.f.generateExpression(e)} ${S.dir || "ASC"}`);
|
|
5544
5544
|
}
|
|
5545
|
-
|
|
5545
|
+
y.length > 0 && (h = " " + this.parent.dialect.sqlOrderBy(y));
|
|
5546
5546
|
}
|
|
5547
5547
|
let p = "";
|
|
5548
5548
|
if (i.between) {
|
|
5549
|
-
const [
|
|
5549
|
+
const [y, E] = [
|
|
5550
5550
|
i.between.preceding,
|
|
5551
5551
|
i.between.following
|
|
5552
|
-
].map((
|
|
5553
|
-
if (
|
|
5552
|
+
].map((A) => {
|
|
5553
|
+
if (A === -1)
|
|
5554
5554
|
return "UNBOUNDED";
|
|
5555
|
-
if (typeof
|
|
5556
|
-
return
|
|
5557
|
-
const
|
|
5558
|
-
if (
|
|
5555
|
+
if (typeof A == "number")
|
|
5556
|
+
return A;
|
|
5557
|
+
const S = i.params.findIndex((_) => _.name === A), v = o[S];
|
|
5558
|
+
if (v.length !== 1 || typeof v[0] == "string" || v[0].type !== "dialect" || v[0].function !== "numberLiteral")
|
|
5559
5559
|
throw new Error("Invalid number of rows for window spec");
|
|
5560
|
-
return
|
|
5560
|
+
return v[0].literal;
|
|
5561
5561
|
});
|
|
5562
|
-
p = `ROWS BETWEEN ${
|
|
5562
|
+
p = `ROWS BETWEEN ${y} PRECEDING AND ${E} FOLLOWING`;
|
|
5563
5563
|
}
|
|
5564
|
-
|
|
5564
|
+
let g = `${this.generateExpressionFromExpr(e, n, r, s)} OVER(${x} ${h} ${p})`;
|
|
5565
|
+
return l && (g = `CASE WHEN group_set=${e.groupSet} THEN ${g} END`), g;
|
|
5565
5566
|
}
|
|
5566
5567
|
generateExpressionFromExpr(e, n, r, i = new n1()) {
|
|
5567
5568
|
let s = "";
|
|
@@ -7654,8 +7655,8 @@ function Sy() {
|
|
|
7654
7655
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
7655
7656
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
7656
7657
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
7657
|
-
}, y = vI(), E = Uhe(), A = y.call(Function.call, Array.prototype.concat), S = y.call(Function.apply, Array.prototype.splice), v = y.call(Function.call, String.prototype.replace),
|
|
7658
|
-
var W =
|
|
7658
|
+
}, y = vI(), E = Uhe(), A = y.call(Function.call, Array.prototype.concat), S = y.call(Function.apply, Array.prototype.splice), v = y.call(Function.call, String.prototype.replace), _ = y.call(Function.call, String.prototype.slice), C = y.call(Function.call, RegExp.prototype.exec), b = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, R = /\\(\\)?/g, O = function(q) {
|
|
7659
|
+
var W = _(q, 0, 1), B = _(q, -1);
|
|
7659
7660
|
if (W === "%" && B !== "%")
|
|
7660
7661
|
throw new e("invalid intrinsic syntax, expected closing `%`");
|
|
7661
7662
|
if (B === "%" && W !== "%")
|
|
@@ -7683,12 +7684,12 @@ function Sy() {
|
|
|
7683
7684
|
throw new r("intrinsic name must be a non-empty string");
|
|
7684
7685
|
if (arguments.length > 1 && typeof W != "boolean")
|
|
7685
7686
|
throw new r('"allowMissing" argument must be a boolean');
|
|
7686
|
-
if (
|
|
7687
|
+
if (C(/^%?[^%]*%?$/, q) === null)
|
|
7687
7688
|
throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
7688
7689
|
var B = O(q), G = B.length > 0 ? B[0] : "", te = L("%" + G + "%", W), X = te.name, de = te.value, be = !1, ee = te.alias;
|
|
7689
7690
|
ee && (G = ee[0], S(B, A([0, 1], ee)));
|
|
7690
7691
|
for (var U = 1, T = !0; U < B.length; U += 1) {
|
|
7691
|
-
var w = B[U], k =
|
|
7692
|
+
var w = B[U], k = _(w, 0, 1), z = _(w, -1);
|
|
7692
7693
|
if ((k === '"' || k === "'" || k === "`" || z === '"' || z === "'" || z === "`") && k !== z)
|
|
7693
7694
|
throw new e("property names with quotes must have matching quotes");
|
|
7694
7695
|
if ((w === "constructor" || !T) && (be = !0), G += "." + w, X = "%" + G + "%", E(h, X))
|
|
@@ -7961,14 +7962,14 @@ var ype = function(e) {
|
|
|
7961
7962
|
return r(Z) === "Int8Array";
|
|
7962
7963
|
}
|
|
7963
7964
|
t.isInt8Array = v;
|
|
7964
|
-
function
|
|
7965
|
+
function _(Z) {
|
|
7965
7966
|
return r(Z) === "Int16Array";
|
|
7966
7967
|
}
|
|
7967
|
-
t.isInt16Array =
|
|
7968
|
-
function
|
|
7968
|
+
t.isInt16Array = _;
|
|
7969
|
+
function C(Z) {
|
|
7969
7970
|
return r(Z) === "Int32Array";
|
|
7970
7971
|
}
|
|
7971
|
-
t.isInt32Array =
|
|
7972
|
+
t.isInt32Array = C;
|
|
7972
7973
|
function b(Z) {
|
|
7973
7974
|
return r(Z) === "Float32Array";
|
|
7974
7975
|
}
|
|
@@ -8193,7 +8194,7 @@ var _pe = dL.exports;
|
|
|
8193
8194
|
seen: [],
|
|
8194
8195
|
stylize: a
|
|
8195
8196
|
};
|
|
8196
|
-
return arguments.length >= 3 && (w.depth = arguments[2]), arguments.length >= 4 && (w.colors = arguments[3]), y(T) ? w.showHidden = T : T && t._extend(w, T),
|
|
8197
|
+
return arguments.length >= 3 && (w.depth = arguments[2]), arguments.length >= 4 && (w.colors = arguments[3]), y(T) ? w.showHidden = T : T && t._extend(w, T), C(w.showHidden) && (w.showHidden = !1), C(w.depth) && (w.depth = 2), C(w.colors) && (w.colors = !1), C(w.customInspect) && (w.customInspect = !0), w.colors && (w.stylize = u), c(w, U, w.depth);
|
|
8197
8198
|
}
|
|
8198
8199
|
t.inspect = o, o.colors = {
|
|
8199
8200
|
bold: [1, 22],
|
|
@@ -8274,7 +8275,7 @@ var _pe = dL.exports;
|
|
|
8274
8275
|
}), U.seen.pop(), m(H, $, Q);
|
|
8275
8276
|
}
|
|
8276
8277
|
function f(U, T) {
|
|
8277
|
-
if (
|
|
8278
|
+
if (C(T))
|
|
8278
8279
|
return U.stylize("undefined", "undefined");
|
|
8279
8280
|
if (v(T)) {
|
|
8280
8281
|
var w = "'" + JSON.stringify(T).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
@@ -8323,7 +8324,7 @@ var _pe = dL.exports;
|
|
|
8323
8324
|
`).map(function(j) {
|
|
8324
8325
|
return " " + j;
|
|
8325
8326
|
}).join(`
|
|
8326
|
-
`))) : D = U.stylize("[Circular]", "special")),
|
|
8327
|
+
`))) : D = U.stylize("[Circular]", "special")), C(V)) {
|
|
8327
8328
|
if (Y && z.match(/^\d+$/))
|
|
8328
8329
|
return D;
|
|
8329
8330
|
V = JSON.stringify("" + z), V.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (V = V.substr(1, V.length - 2), V = U.stylize(V, "name")) : (V = V.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), V = U.stylize(V, "string"));
|
|
@@ -8364,14 +8365,14 @@ var _pe = dL.exports;
|
|
|
8364
8365
|
return typeof U == "string";
|
|
8365
8366
|
}
|
|
8366
8367
|
t.isString = v;
|
|
8367
|
-
function
|
|
8368
|
+
function _(U) {
|
|
8368
8369
|
return typeof U == "symbol";
|
|
8369
8370
|
}
|
|
8370
|
-
t.isSymbol =
|
|
8371
|
-
function
|
|
8371
|
+
t.isSymbol = _;
|
|
8372
|
+
function C(U) {
|
|
8372
8373
|
return U === void 0;
|
|
8373
8374
|
}
|
|
8374
|
-
t.isUndefined =
|
|
8375
|
+
t.isUndefined = C;
|
|
8375
8376
|
function b(U) {
|
|
8376
8377
|
return R(U) && W(U) === "[object RegExp]";
|
|
8377
8378
|
}
|
|
@@ -8554,14 +8555,14 @@ function uW() {
|
|
|
8554
8555
|
var u = {}, a, l;
|
|
8555
8556
|
function c(m, g, y) {
|
|
8556
8557
|
y || (y = Error);
|
|
8557
|
-
function E(S, v,
|
|
8558
|
-
return typeof g == "string" ? g : g(S, v,
|
|
8558
|
+
function E(S, v, _) {
|
|
8559
|
+
return typeof g == "string" ? g : g(S, v, _);
|
|
8559
8560
|
}
|
|
8560
8561
|
var A = /* @__PURE__ */ function(S) {
|
|
8561
8562
|
s(v, S);
|
|
8562
|
-
function v(
|
|
8563
|
+
function v(_, C, b) {
|
|
8563
8564
|
var R;
|
|
8564
|
-
return e(this, v), R = n(this, i(v).call(this, E(
|
|
8565
|
+
return e(this, v), R = n(this, i(v).call(this, E(_, C, b))), R.code = m, R;
|
|
8565
8566
|
}
|
|
8566
8567
|
return v;
|
|
8567
8568
|
}(y);
|
|
@@ -8741,7 +8742,7 @@ function Cpe() {
|
|
|
8741
8742
|
B += B, G--;
|
|
8742
8743
|
return B += B.substring(0, te - B.length), B;
|
|
8743
8744
|
}
|
|
8744
|
-
var v = "",
|
|
8745
|
+
var v = "", _ = "", C = "", b = "", R = {
|
|
8745
8746
|
deepStrictEqual: "Expected values to be strictly deep-equal:",
|
|
8746
8747
|
strictEqual: "Expected values to be strictly equal:",
|
|
8747
8748
|
strictEqualObject: 'Expected "actual" to be reference-equal to "expected":',
|
|
@@ -8825,7 +8826,7 @@ function Cpe() {
|
|
|
8825
8826
|
`.concat(v, "...").concat(b).concat(ee), U = !0), X !== "" && (ee = `
|
|
8826
8827
|
`.concat(X).concat(ee), X = "");
|
|
8827
8828
|
var H = 0, P = R[te] + `
|
|
8828
|
-
`.concat(
|
|
8829
|
+
`.concat(_, "+ actual").concat(b, " ").concat(C, "- expected").concat(b), J = " ".concat(v, "...").concat(b, " Lines skipped");
|
|
8829
8830
|
for (z = 0; z < Q; z++) {
|
|
8830
8831
|
var ce = z - be;
|
|
8831
8832
|
if (w.length < z + 1)
|
|
@@ -8833,21 +8834,21 @@ function Cpe() {
|
|
|
8833
8834
|
`.concat(v, "...").concat(b), U = !0) : ce > 3 && (de += `
|
|
8834
8835
|
`.concat(k[z - 2]), H++), de += `
|
|
8835
8836
|
`.concat(k[z - 1]), H++), be = z, X += `
|
|
8836
|
-
`.concat(
|
|
8837
|
+
`.concat(C, "-").concat(b, " ").concat(k[z]), H++;
|
|
8837
8838
|
else if (k.length < z + 1)
|
|
8838
8839
|
ce > 1 && z > 2 && (ce > 4 ? (de += `
|
|
8839
8840
|
`.concat(v, "...").concat(b), U = !0) : ce > 3 && (de += `
|
|
8840
8841
|
`.concat(w[z - 2]), H++), de += `
|
|
8841
8842
|
`.concat(w[z - 1]), H++), be = z, de += `
|
|
8842
|
-
`.concat(
|
|
8843
|
+
`.concat(_, "+").concat(b, " ").concat(w[z]), H++;
|
|
8843
8844
|
else {
|
|
8844
8845
|
var ue = k[z], Z = w[z], ae = Z !== ue && (!A(Z, ",") || Z.slice(0, -1) !== ue);
|
|
8845
8846
|
ae && A(ue, ",") && ue.slice(0, -1) === Z && (ae = !1, Z += ","), ae ? (ce > 1 && z > 2 && (ce > 4 ? (de += `
|
|
8846
8847
|
`.concat(v, "...").concat(b), U = !0) : ce > 3 && (de += `
|
|
8847
8848
|
`.concat(w[z - 2]), H++), de += `
|
|
8848
8849
|
`.concat(w[z - 1]), H++), be = z, de += `
|
|
8849
|
-
`.concat(
|
|
8850
|
-
`.concat(
|
|
8850
|
+
`.concat(_, "+").concat(b, " ").concat(Z), X += `
|
|
8851
|
+
`.concat(C, "-").concat(b, " ").concat(ue), H += 2) : (de += X, X = "", (ce === 1 || z === 0) && (de += `
|
|
8851
8852
|
`.concat(Z), H++));
|
|
8852
8853
|
}
|
|
8853
8854
|
if (H > 20 && z < Q - 2)
|
|
@@ -8868,7 +8869,7 @@ function Cpe() {
|
|
|
8868
8869
|
var de = te.message, be = te.operator, ee = te.stackStartFn, U = te.actual, T = te.expected, w = Error.stackTraceLimit;
|
|
8869
8870
|
if (Error.stackTraceLimit = 0, de != null)
|
|
8870
8871
|
X = s(this, h(G).call(this, String(de)));
|
|
8871
|
-
else if (process.stderr && process.stderr.isTTY && (process.stderr && process.stderr.getColorDepth && process.stderr.getColorDepth() !== 1 ? (v = "\x1B[34m",
|
|
8872
|
+
else if (process.stderr && process.stderr.isTTY && (process.stderr && process.stderr.getColorDepth && process.stderr.getColorDepth() !== 1 ? (v = "\x1B[34m", _ = "\x1B[32m", b = "\x1B[39m", C = "\x1B[31m") : (v = "", _ = "", b = "", C = "")), p(U) === "object" && U !== null && p(T) === "object" && T !== null && "stack" in U && U instanceof Error && "stack" in T && T instanceof Error && (U = L(U), T = L(T)), be === "deepStrictEqual" || be === "strictEqual")
|
|
8872
8873
|
X = s(this, h(G).call(this, q(U, T, be)));
|
|
8873
8874
|
else if (be === "notDeepStrictEqual" || be === "notStrictEqual") {
|
|
8874
8875
|
var k = R[be], z = M(U).split(`
|
|
@@ -9038,11 +9039,11 @@ function Tpe() {
|
|
|
9038
9039
|
for (var v = 0; v < h.length; ++v)
|
|
9039
9040
|
E.push(String(v));
|
|
9040
9041
|
else
|
|
9041
|
-
for (var
|
|
9042
|
-
!(A &&
|
|
9042
|
+
for (var _ in h)
|
|
9043
|
+
!(A && _ === "prototype") && e.call(h, _) && E.push(String(_));
|
|
9043
9044
|
if (s)
|
|
9044
|
-
for (var
|
|
9045
|
-
!(
|
|
9045
|
+
for (var C = f(h), b = 0; b < u.length; ++b)
|
|
9046
|
+
!(C && u[b] === "constructor") && e.call(h, u[b]) && E.push(u[b]);
|
|
9046
9047
|
return E;
|
|
9047
9048
|
};
|
|
9048
9049
|
}
|
|
@@ -9305,7 +9306,7 @@ function wpe() {
|
|
|
9305
9306
|
function f(se) {
|
|
9306
9307
|
return se.call.bind(se);
|
|
9307
9308
|
}
|
|
9308
|
-
var x = f(Object.prototype.hasOwnProperty), h = f(Object.prototype.propertyIsEnumerable), p = f(Object.prototype.toString), m = H0.types, g = m.isAnyArrayBuffer, y = m.isArrayBufferView, E = m.isDate, A = m.isMap, S = m.isRegExp, v = m.isSet,
|
|
9309
|
+
var x = f(Object.prototype.hasOwnProperty), h = f(Object.prototype.propertyIsEnumerable), p = f(Object.prototype.toString), m = H0.types, g = m.isAnyArrayBuffer, y = m.isArrayBufferView, E = m.isDate, A = m.isMap, S = m.isRegExp, v = m.isSet, _ = m.isNativeError, C = m.isBoxedPrimitive, b = m.isNumberObject, R = m.isStringObject, O = m.isBooleanObject, L = m.isBigIntObject, M = m.isSymbolObject, q = m.isFloat32Array, W = m.isFloat64Array;
|
|
9309
9310
|
function B(se) {
|
|
9310
9311
|
if (se.length === 0 || se.length > 10)
|
|
9311
9312
|
return !0;
|
|
@@ -9387,7 +9388,7 @@ function wpe() {
|
|
|
9387
9388
|
} else if (S(se)) {
|
|
9388
9389
|
if (!S(xe) || !w(se, xe))
|
|
9389
9390
|
return !1;
|
|
9390
|
-
} else if (
|
|
9391
|
+
} else if (_(se) || se instanceof Error) {
|
|
9391
9392
|
if (se.message !== xe.message || se.name !== xe.name)
|
|
9392
9393
|
return !1;
|
|
9393
9394
|
} else if (y(se)) {
|
|
@@ -9406,7 +9407,7 @@ function wpe() {
|
|
|
9406
9407
|
if (g(se)) {
|
|
9407
9408
|
if (!Y(se, xe))
|
|
9408
9409
|
return !1;
|
|
9409
|
-
} else if (
|
|
9410
|
+
} else if (C(se) && !V(se, xe))
|
|
9410
9411
|
return !1;
|
|
9411
9412
|
}
|
|
9412
9413
|
return j(se, xe, Ce, Oe, be);
|
|
@@ -9625,8 +9626,8 @@ function Di() {
|
|
|
9625
9626
|
var ee = wpe();
|
|
9626
9627
|
y = ee.isDeepEqual, E = ee.isDeepStrictEqual;
|
|
9627
9628
|
}
|
|
9628
|
-
var S = !1, v = hD.exports = O,
|
|
9629
|
-
function
|
|
9629
|
+
var S = !1, v = hD.exports = O, _ = {};
|
|
9630
|
+
function C(ee) {
|
|
9630
9631
|
throw ee.message instanceof Error ? ee.message : new l(ee);
|
|
9631
9632
|
}
|
|
9632
9633
|
function b(ee, U, T, w, k) {
|
|
@@ -9681,7 +9682,7 @@ function Di() {
|
|
|
9681
9682
|
v.ok = O, v.equal = function ee(U, T, w) {
|
|
9682
9683
|
if (arguments.length < 2)
|
|
9683
9684
|
throw new a("actual", "expected");
|
|
9684
|
-
U != T &&
|
|
9685
|
+
U != T && C({
|
|
9685
9686
|
actual: U,
|
|
9686
9687
|
expected: T,
|
|
9687
9688
|
message: w,
|
|
@@ -9691,7 +9692,7 @@ function Di() {
|
|
|
9691
9692
|
}, v.notEqual = function ee(U, T, w) {
|
|
9692
9693
|
if (arguments.length < 2)
|
|
9693
9694
|
throw new a("actual", "expected");
|
|
9694
|
-
U == T &&
|
|
9695
|
+
U == T && C({
|
|
9695
9696
|
actual: U,
|
|
9696
9697
|
expected: T,
|
|
9697
9698
|
message: w,
|
|
@@ -9701,7 +9702,7 @@ function Di() {
|
|
|
9701
9702
|
}, v.deepEqual = function ee(U, T, w) {
|
|
9702
9703
|
if (arguments.length < 2)
|
|
9703
9704
|
throw new a("actual", "expected");
|
|
9704
|
-
y === void 0 && A(), y(U, T) ||
|
|
9705
|
+
y === void 0 && A(), y(U, T) || C({
|
|
9705
9706
|
actual: U,
|
|
9706
9707
|
expected: T,
|
|
9707
9708
|
message: w,
|
|
@@ -9711,7 +9712,7 @@ function Di() {
|
|
|
9711
9712
|
}, v.notDeepEqual = function ee(U, T, w) {
|
|
9712
9713
|
if (arguments.length < 2)
|
|
9713
9714
|
throw new a("actual", "expected");
|
|
9714
|
-
y === void 0 && A(), y(U, T) &&
|
|
9715
|
+
y === void 0 && A(), y(U, T) && C({
|
|
9715
9716
|
actual: U,
|
|
9716
9717
|
expected: T,
|
|
9717
9718
|
message: w,
|
|
@@ -9721,7 +9722,7 @@ function Di() {
|
|
|
9721
9722
|
}, v.deepStrictEqual = function ee(U, T, w) {
|
|
9722
9723
|
if (arguments.length < 2)
|
|
9723
9724
|
throw new a("actual", "expected");
|
|
9724
|
-
y === void 0 && A(), E(U, T) ||
|
|
9725
|
+
y === void 0 && A(), E(U, T) || C({
|
|
9725
9726
|
actual: U,
|
|
9726
9727
|
expected: T,
|
|
9727
9728
|
message: w,
|
|
@@ -9732,7 +9733,7 @@ function Di() {
|
|
|
9732
9733
|
function L(ee, U, T) {
|
|
9733
9734
|
if (arguments.length < 2)
|
|
9734
9735
|
throw new a("actual", "expected");
|
|
9735
|
-
y === void 0 && A(), E(ee, U) &&
|
|
9736
|
+
y === void 0 && A(), E(ee, U) && C({
|
|
9736
9737
|
actual: ee,
|
|
9737
9738
|
expected: U,
|
|
9738
9739
|
message: T,
|
|
@@ -9743,7 +9744,7 @@ function Di() {
|
|
|
9743
9744
|
v.strictEqual = function ee(U, T, w) {
|
|
9744
9745
|
if (arguments.length < 2)
|
|
9745
9746
|
throw new a("actual", "expected");
|
|
9746
|
-
g(U, T) ||
|
|
9747
|
+
g(U, T) || C({
|
|
9747
9748
|
actual: U,
|
|
9748
9749
|
expected: T,
|
|
9749
9750
|
message: w,
|
|
@@ -9753,7 +9754,7 @@ function Di() {
|
|
|
9753
9754
|
}, v.notStrictEqual = function ee(U, T, w) {
|
|
9754
9755
|
if (arguments.length < 2)
|
|
9755
9756
|
throw new a("actual", "expected");
|
|
9756
|
-
g(U, T) &&
|
|
9757
|
+
g(U, T) && C({
|
|
9757
9758
|
actual: U,
|
|
9758
9759
|
expected: T,
|
|
9759
9760
|
message: w,
|
|
@@ -9778,7 +9779,7 @@ function Di() {
|
|
|
9778
9779
|
});
|
|
9779
9780
|
throw D.actual = ee, D.expected = U, D.operator = z.name, D;
|
|
9780
9781
|
}
|
|
9781
|
-
|
|
9782
|
+
C({
|
|
9782
9783
|
actual: ee,
|
|
9783
9784
|
expected: U,
|
|
9784
9785
|
message: w,
|
|
@@ -9822,7 +9823,7 @@ function Di() {
|
|
|
9822
9823
|
} catch (U) {
|
|
9823
9824
|
return U;
|
|
9824
9825
|
}
|
|
9825
|
-
return
|
|
9826
|
+
return _;
|
|
9826
9827
|
}
|
|
9827
9828
|
function G(ee) {
|
|
9828
9829
|
return h(ee) || ee !== null && t(ee) === "object" && typeof ee.then == "function" && typeof ee.catch == "function";
|
|
@@ -9840,7 +9841,7 @@ function Di() {
|
|
|
9840
9841
|
return Promise.resolve().then(function() {
|
|
9841
9842
|
return U;
|
|
9842
9843
|
}).then(function() {
|
|
9843
|
-
return
|
|
9844
|
+
return _;
|
|
9844
9845
|
}).catch(function(T) {
|
|
9845
9846
|
return T;
|
|
9846
9847
|
});
|
|
@@ -9858,11 +9859,11 @@ function Di() {
|
|
|
9858
9859
|
w = T, T = void 0;
|
|
9859
9860
|
} else if (T != null && t(T) !== "object" && typeof T != "function")
|
|
9860
9861
|
throw new s("error", ["Object", "Error", "Function", "RegExp"], T);
|
|
9861
|
-
if (U ===
|
|
9862
|
+
if (U === _) {
|
|
9862
9863
|
var k = "";
|
|
9863
9864
|
T && T.name && (k += " (".concat(T.name, ")")), k += w ? ": ".concat(w) : ".";
|
|
9864
9865
|
var z = ee.name === "rejects" ? "rejection" : "exception";
|
|
9865
|
-
|
|
9866
|
+
C({
|
|
9866
9867
|
actual: void 0,
|
|
9867
9868
|
expected: T,
|
|
9868
9869
|
operator: ee.name,
|
|
@@ -9874,10 +9875,10 @@ function Di() {
|
|
|
9874
9875
|
throw U;
|
|
9875
9876
|
}
|
|
9876
9877
|
function de(ee, U, T, w) {
|
|
9877
|
-
if (U !==
|
|
9878
|
+
if (U !== _) {
|
|
9878
9879
|
if (typeof T == "string" && (w = T, T = void 0), !T || W(U, T)) {
|
|
9879
9880
|
var k = w ? ": ".concat(w) : ".", z = ee.name === "doesNotReject" ? "rejection" : "exception";
|
|
9880
|
-
|
|
9881
|
+
C({
|
|
9881
9882
|
actual: U,
|
|
9882
9883
|
expected: T,
|
|
9883
9884
|
operator: ee.name,
|
|
@@ -10945,27 +10946,27 @@ hn.toCharArray = Jpe;
|
|
|
10945
10946
|
}
|
|
10946
10947
|
t.SemanticContext = f, function(x) {
|
|
10947
10948
|
function m(v) {
|
|
10948
|
-
let
|
|
10949
|
-
for (let
|
|
10950
|
-
let b = v[
|
|
10951
|
-
b instanceof x.PrecedencePredicate && (
|
|
10949
|
+
let _ = [];
|
|
10950
|
+
for (let C = 0; C < v.length; C++) {
|
|
10951
|
+
let b = v[C];
|
|
10952
|
+
b instanceof x.PrecedencePredicate && (_.push(b), v.splice(C, 1), C--);
|
|
10952
10953
|
}
|
|
10953
|
-
return
|
|
10954
|
+
return _;
|
|
10954
10955
|
}
|
|
10955
10956
|
class g extends x {
|
|
10956
|
-
constructor(
|
|
10957
|
-
super(), this.ruleIndex =
|
|
10957
|
+
constructor(_ = -1, C = -1, b = !1) {
|
|
10958
|
+
super(), this.ruleIndex = _, this.predIndex = C, this.isCtxDependent = b;
|
|
10958
10959
|
}
|
|
10959
|
-
eval(
|
|
10960
|
-
let b = this.isCtxDependent ?
|
|
10961
|
-
return
|
|
10960
|
+
eval(_, C) {
|
|
10961
|
+
let b = this.isCtxDependent ? C : void 0;
|
|
10962
|
+
return _.sempred(b, this.ruleIndex, this.predIndex);
|
|
10962
10963
|
}
|
|
10963
10964
|
hashCode() {
|
|
10964
|
-
let
|
|
10965
|
-
return
|
|
10965
|
+
let _ = s.MurmurHash.initialize();
|
|
10966
|
+
return _ = s.MurmurHash.update(_, this.ruleIndex), _ = s.MurmurHash.update(_, this.predIndex), _ = s.MurmurHash.update(_, this.isCtxDependent ? 1 : 0), _ = s.MurmurHash.finish(_, 3), _;
|
|
10966
10967
|
}
|
|
10967
|
-
equals(
|
|
10968
|
-
return
|
|
10968
|
+
equals(_) {
|
|
10969
|
+
return _ instanceof g ? this === _ ? !0 : this.ruleIndex === _.ruleIndex && this.predIndex === _.predIndex && this.isCtxDependent === _.isCtxDependent : !1;
|
|
10969
10970
|
}
|
|
10970
10971
|
toString() {
|
|
10971
10972
|
return "{" + this.ruleIndex + ":" + this.predIndex + "}?";
|
|
@@ -10981,25 +10982,25 @@ hn.toCharArray = Jpe;
|
|
|
10981
10982
|
o.Override
|
|
10982
10983
|
], g.prototype, "toString", null), x.Predicate = g;
|
|
10983
10984
|
class y extends x {
|
|
10984
|
-
constructor(
|
|
10985
|
-
super(), this.precedence =
|
|
10985
|
+
constructor(_) {
|
|
10986
|
+
super(), this.precedence = _;
|
|
10986
10987
|
}
|
|
10987
|
-
eval(
|
|
10988
|
-
return
|
|
10988
|
+
eval(_, C) {
|
|
10989
|
+
return _.precpred(C, this.precedence);
|
|
10989
10990
|
}
|
|
10990
|
-
evalPrecedence(
|
|
10991
|
-
if (
|
|
10991
|
+
evalPrecedence(_, C) {
|
|
10992
|
+
if (_.precpred(C, this.precedence))
|
|
10992
10993
|
return x.NONE;
|
|
10993
10994
|
}
|
|
10994
|
-
compareTo(
|
|
10995
|
-
return this.precedence -
|
|
10995
|
+
compareTo(_) {
|
|
10996
|
+
return this.precedence - _.precedence;
|
|
10996
10997
|
}
|
|
10997
10998
|
hashCode() {
|
|
10998
|
-
let
|
|
10999
|
-
return
|
|
10999
|
+
let _ = 1;
|
|
11000
|
+
return _ = 31 * _ + this.precedence, _;
|
|
11000
11001
|
}
|
|
11001
|
-
equals(
|
|
11002
|
-
return
|
|
11002
|
+
equals(_) {
|
|
11003
|
+
return _ instanceof y ? this === _ ? !0 : this.precedence === _.precedence : !1;
|
|
11003
11004
|
}
|
|
11004
11005
|
toString() {
|
|
11005
11006
|
return "{" + this.precedence + ">=prec}?";
|
|
@@ -11022,18 +11023,18 @@ hn.toCharArray = Jpe;
|
|
|
11022
11023
|
}
|
|
11023
11024
|
x.Operator = E;
|
|
11024
11025
|
let A = class KA extends E {
|
|
11025
|
-
constructor(
|
|
11026
|
+
constructor(_, C) {
|
|
11026
11027
|
super();
|
|
11027
11028
|
let b = new r.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE);
|
|
11028
|
-
|
|
11029
|
+
_ instanceof KA ? b.addAll(_.opnds) : b.add(_), C instanceof KA ? b.addAll(C.opnds) : b.add(C), this.opnds = b.toArray();
|
|
11029
11030
|
let R = m(this.opnds), O = c(R);
|
|
11030
11031
|
O && this.opnds.push(O);
|
|
11031
11032
|
}
|
|
11032
11033
|
get operands() {
|
|
11033
11034
|
return this.opnds;
|
|
11034
11035
|
}
|
|
11035
|
-
equals(
|
|
11036
|
-
return this ===
|
|
11036
|
+
equals(_) {
|
|
11037
|
+
return this === _ ? !0 : _ instanceof KA ? i.ArrayEqualityComparator.INSTANCE.equals(this.opnds, _.opnds) : !1;
|
|
11037
11038
|
}
|
|
11038
11039
|
hashCode() {
|
|
11039
11040
|
return s.MurmurHash.hashCode(this.opnds, 40363613);
|
|
@@ -11044,16 +11045,16 @@ hn.toCharArray = Jpe;
|
|
|
11044
11045
|
* The evaluation of predicates by this context is short-circuiting, but
|
|
11045
11046
|
* unordered.
|
|
11046
11047
|
*/
|
|
11047
|
-
eval(
|
|
11048
|
+
eval(_, C) {
|
|
11048
11049
|
for (let b of this.opnds)
|
|
11049
|
-
if (!b.eval(
|
|
11050
|
+
if (!b.eval(_, C))
|
|
11050
11051
|
return !1;
|
|
11051
11052
|
return !0;
|
|
11052
11053
|
}
|
|
11053
|
-
evalPrecedence(
|
|
11054
|
+
evalPrecedence(_, C) {
|
|
11054
11055
|
let b = !1, R = [];
|
|
11055
11056
|
for (let L of this.opnds) {
|
|
11056
|
-
let M = L.evalPrecedence(
|
|
11057
|
+
let M = L.evalPrecedence(_, C);
|
|
11057
11058
|
if (b = b || M !== L, M == null)
|
|
11058
11059
|
return;
|
|
11059
11060
|
M !== x.NONE && R.push(M);
|
|
@@ -11088,18 +11089,18 @@ hn.toCharArray = Jpe;
|
|
|
11088
11089
|
n(1, o.NotNull)
|
|
11089
11090
|
], A), x.AND = A;
|
|
11090
11091
|
let S = class XA extends E {
|
|
11091
|
-
constructor(
|
|
11092
|
+
constructor(_, C) {
|
|
11092
11093
|
super();
|
|
11093
11094
|
let b = new r.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE);
|
|
11094
|
-
|
|
11095
|
+
_ instanceof XA ? b.addAll(_.opnds) : b.add(_), C instanceof XA ? b.addAll(C.opnds) : b.add(C), this.opnds = b.toArray();
|
|
11095
11096
|
let R = m(this.opnds), O = l(R);
|
|
11096
11097
|
O && this.opnds.push(O);
|
|
11097
11098
|
}
|
|
11098
11099
|
get operands() {
|
|
11099
11100
|
return this.opnds;
|
|
11100
11101
|
}
|
|
11101
|
-
equals(
|
|
11102
|
-
return this ===
|
|
11102
|
+
equals(_) {
|
|
11103
|
+
return this === _ ? !0 : _ instanceof XA ? i.ArrayEqualityComparator.INSTANCE.equals(this.opnds, _.opnds) : !1;
|
|
11103
11104
|
}
|
|
11104
11105
|
hashCode() {
|
|
11105
11106
|
return s.MurmurHash.hashCode(this.opnds, 486279973);
|
|
@@ -11110,16 +11111,16 @@ hn.toCharArray = Jpe;
|
|
|
11110
11111
|
* The evaluation of predicates by this context is short-circuiting, but
|
|
11111
11112
|
* unordered.
|
|
11112
11113
|
*/
|
|
11113
|
-
eval(
|
|
11114
|
+
eval(_, C) {
|
|
11114
11115
|
for (let b of this.opnds)
|
|
11115
|
-
if (b.eval(
|
|
11116
|
+
if (b.eval(_, C))
|
|
11116
11117
|
return !0;
|
|
11117
11118
|
return !1;
|
|
11118
11119
|
}
|
|
11119
|
-
evalPrecedence(
|
|
11120
|
+
evalPrecedence(_, C) {
|
|
11120
11121
|
let b = !1, R = [];
|
|
11121
11122
|
for (let L of this.opnds) {
|
|
11122
|
-
let M = L.evalPrecedence(
|
|
11123
|
+
let M = L.evalPrecedence(_, C);
|
|
11123
11124
|
if (b = b || M !== L, M === x.NONE)
|
|
11124
11125
|
return x.NONE;
|
|
11125
11126
|
M && R.push(M);
|
|
@@ -12088,8 +12089,8 @@ function ru() {
|
|
|
12088
12089
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
12089
12090
|
S = Reflect.decorate(m, g, y, E);
|
|
12090
12091
|
else
|
|
12091
|
-
for (var
|
|
12092
|
-
(v = m[
|
|
12092
|
+
for (var _ = m.length - 1; _ >= 0; _--)
|
|
12093
|
+
(v = m[_]) && (S = (A < 3 ? v(S) : A > 3 ? v(g, y, S) : v(g, y)) || S);
|
|
12093
12094
|
return A > 3 && S && Object.defineProperty(g, y, S), S;
|
|
12094
12095
|
}, n = N && N.__param || function(m, g) {
|
|
12095
12096
|
return function(y, E) {
|
|
@@ -12144,14 +12145,14 @@ function ru() {
|
|
|
12144
12145
|
let M = E.join(g.getParent(0), y.getParent(0));
|
|
12145
12146
|
return M === g.getParent(0) ? g : M === y.getParent(0) ? y : M.getChild(g.getReturnState(0));
|
|
12146
12147
|
}
|
|
12147
|
-
let v = 0,
|
|
12148
|
+
let v = 0, _ = new Array(A + S), C = new Array(_.length), b = 0, R = 0, O = !0, L = !0;
|
|
12148
12149
|
for (; b < A && R < S; )
|
|
12149
|
-
g.getReturnState(b) === y.getReturnState(R) ? (
|
|
12150
|
+
g.getReturnState(b) === y.getReturnState(R) ? (_[v] = E.join(g.getParent(b), y.getParent(R)), C[v] = g.getReturnState(b), O = O && _[v] === g.getParent(b), L = L && _[v] === y.getParent(R), b++, R++) : g.getReturnState(b) < y.getReturnState(R) ? (_[v] = g.getParent(b), C[v] = g.getReturnState(b), L = !1, b++) : (l(y.getReturnState(R) < g.getReturnState(b)), _[v] = y.getParent(R), C[v] = y.getReturnState(R), O = !1, R++), v++;
|
|
12150
12151
|
for (; b < A; )
|
|
12151
|
-
|
|
12152
|
+
_[v] = g.getParent(b), C[v] = g.getReturnState(b), b++, L = !1, v++;
|
|
12152
12153
|
for (; R < S; )
|
|
12153
|
-
|
|
12154
|
-
return O ? g : L ? y : (v <
|
|
12154
|
+
_[v] = y.getParent(R), C[v] = y.getReturnState(R), R++, O = !1, v++;
|
|
12155
|
+
return O ? g : L ? y : (v < _.length && (_ = _.slice(0, v), C = C.slice(0, v)), _.length === 0 ? f.EMPTY_FULL : _.length === 1 ? new p(_[0], C[0]) : new h(_, C));
|
|
12155
12156
|
}
|
|
12156
12157
|
static isEmptyLocal(g) {
|
|
12157
12158
|
return g === f.EMPTY_LOCAL;
|
|
@@ -12165,30 +12166,30 @@ function ru() {
|
|
|
12165
12166
|
if (A = y.get(g), A)
|
|
12166
12167
|
return E.put(g, A), A;
|
|
12167
12168
|
let S = !1, v = new Array(g.size);
|
|
12168
|
-
for (let
|
|
12169
|
-
let b = f.getCachedContext(g.getParent(
|
|
12170
|
-
if (S || b !== g.getParent(
|
|
12169
|
+
for (let C = 0; C < v.length; C++) {
|
|
12170
|
+
let b = f.getCachedContext(g.getParent(C), y, E);
|
|
12171
|
+
if (S || b !== g.getParent(C)) {
|
|
12171
12172
|
if (!S) {
|
|
12172
12173
|
v = new Array(g.size);
|
|
12173
12174
|
for (let R = 0; R < g.size; R++)
|
|
12174
12175
|
v[R] = g.getParent(R);
|
|
12175
12176
|
S = !0;
|
|
12176
12177
|
}
|
|
12177
|
-
v[
|
|
12178
|
+
v[C] = b;
|
|
12178
12179
|
}
|
|
12179
12180
|
}
|
|
12180
12181
|
if (!S)
|
|
12181
12182
|
return A = y.putIfAbsent(g, g), E.put(g, A ?? g), g;
|
|
12182
|
-
let
|
|
12183
|
+
let _;
|
|
12183
12184
|
if (v.length === 1)
|
|
12184
|
-
|
|
12185
|
+
_ = new p(v[0], g.getReturnState(0));
|
|
12185
12186
|
else {
|
|
12186
|
-
let
|
|
12187
|
+
let C = new Array(g.size);
|
|
12187
12188
|
for (let b = 0; b < g.size; b++)
|
|
12188
|
-
|
|
12189
|
-
|
|
12189
|
+
C[b] = g.getReturnState(b);
|
|
12190
|
+
_ = new h(v, C, g.hashCode());
|
|
12190
12191
|
}
|
|
12191
|
-
return A = y.putIfAbsent(
|
|
12192
|
+
return A = y.putIfAbsent(_, _), E.put(_, A || _), E.put(g, A || _), _;
|
|
12192
12193
|
}
|
|
12193
12194
|
appendSingleContext(g, y) {
|
|
12194
12195
|
return this.appendContext(f.EMPTY_FULL.getChild(g), y);
|
|
@@ -12203,15 +12204,15 @@ function ru() {
|
|
|
12203
12204
|
let A = [];
|
|
12204
12205
|
e:
|
|
12205
12206
|
for (let S = 0; ; S++) {
|
|
12206
|
-
let v = 0,
|
|
12207
|
-
for (R += "["; !
|
|
12207
|
+
let v = 0, _ = !0, C = this, b = y, R = "";
|
|
12208
|
+
for (R += "["; !C.isEmpty && C !== E; ) {
|
|
12208
12209
|
let O = 0;
|
|
12209
|
-
if (
|
|
12210
|
+
if (C.size > 0) {
|
|
12210
12211
|
let L = 1;
|
|
12211
|
-
for (; 1 << L >>> 0 <
|
|
12212
|
+
for (; 1 << L >>> 0 < C.size; )
|
|
12212
12213
|
L++;
|
|
12213
12214
|
let M = (1 << L >>> 0) - 1;
|
|
12214
|
-
if (O = S >> v & M,
|
|
12215
|
+
if (O = S >> v & M, _ = _ && O >= C.size - 1, O >= C.size)
|
|
12215
12216
|
continue e;
|
|
12216
12217
|
v += L;
|
|
12217
12218
|
}
|
|
@@ -12220,10 +12221,10 @@ function ru() {
|
|
|
12220
12221
|
let M = g.atn.states[b], q = g.ruleNames[M.ruleIndex];
|
|
12221
12222
|
R += q;
|
|
12222
12223
|
} else
|
|
12223
|
-
|
|
12224
|
-
b =
|
|
12224
|
+
C.getReturnState(O) !== f.EMPTY_FULL_STATE_KEY && (C.isEmpty || (R.length > 1 && (R += " "), R += C.getReturnState(O)));
|
|
12225
|
+
b = C.getReturnState(O), C = C.getParent(O);
|
|
12225
12226
|
}
|
|
12226
|
-
if (R += "]", A.push(R),
|
|
12227
|
+
if (R += "]", A.push(R), _)
|
|
12227
12228
|
break;
|
|
12228
12229
|
}
|
|
12229
12230
|
return A;
|
|
@@ -12368,12 +12369,12 @@ function ru() {
|
|
|
12368
12369
|
else {
|
|
12369
12370
|
let S = g.size;
|
|
12370
12371
|
g.hasEmpty && S--;
|
|
12371
|
-
let v = new Array(S),
|
|
12372
|
-
for (let
|
|
12373
|
-
C
|
|
12374
|
-
for (let
|
|
12375
|
-
v[
|
|
12376
|
-
v.length === 1 ? A = new p(v[0],
|
|
12372
|
+
let v = new Array(S), _ = new Array(S);
|
|
12373
|
+
for (let C = 0; C < S; C++)
|
|
12374
|
+
_[C] = g.getReturnState(C);
|
|
12375
|
+
for (let C = 0; C < S; C++)
|
|
12376
|
+
v[C] = Tf.appendContextImpl(g.getParent(C), y, E);
|
|
12377
|
+
v.length === 1 ? A = new p(v[0], _[0]) : (l(v.length > 1), A = new Tf(v, _)), g.hasEmpty && (A = f.join(A, y));
|
|
12377
12378
|
}
|
|
12378
12379
|
E.put(g, A);
|
|
12379
12380
|
}
|
|
@@ -12393,22 +12394,22 @@ function ru() {
|
|
|
12393
12394
|
let S = E.pop(), v = A.pop();
|
|
12394
12395
|
if (!S || !v)
|
|
12395
12396
|
break;
|
|
12396
|
-
let
|
|
12397
|
-
if (!y.add(
|
|
12397
|
+
let _ = new a.PredictionContextCache.IdentityCommutativePredictionContextOperands(S, v);
|
|
12398
|
+
if (!y.add(_))
|
|
12398
12399
|
continue;
|
|
12399
|
-
let
|
|
12400
|
-
if (
|
|
12401
|
-
if (!
|
|
12400
|
+
let C = _.x.size;
|
|
12401
|
+
if (C === 0) {
|
|
12402
|
+
if (!_.x.equals(_.y))
|
|
12402
12403
|
return !1;
|
|
12403
12404
|
continue;
|
|
12404
12405
|
}
|
|
12405
|
-
let b =
|
|
12406
|
-
if (
|
|
12406
|
+
let b = _.y.size;
|
|
12407
|
+
if (C !== b)
|
|
12407
12408
|
return !1;
|
|
12408
|
-
for (let R = 0; R <
|
|
12409
|
-
if (
|
|
12409
|
+
for (let R = 0; R < C; R++) {
|
|
12410
|
+
if (_.x.getReturnState(R) !== _.y.getReturnState(R))
|
|
12410
12411
|
return !1;
|
|
12411
|
-
let O =
|
|
12412
|
+
let O = _.x.getParent(R), L = _.y.getParent(R);
|
|
12412
12413
|
if (O.hashCode() !== L.hashCode())
|
|
12413
12414
|
return !1;
|
|
12414
12415
|
O !== L && (E.push(O), A.push(L));
|
|
@@ -13285,13 +13286,13 @@ function Ty() {
|
|
|
13285
13286
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
13286
13287
|
*/
|
|
13287
13288
|
var t = N && N.__decorate || function(y, E, A, S) {
|
|
13288
|
-
var v = arguments.length,
|
|
13289
|
+
var v = arguments.length, _ = v < 3 ? E : S === null ? S = Object.getOwnPropertyDescriptor(E, A) : S, C;
|
|
13289
13290
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
13290
|
-
|
|
13291
|
+
_ = Reflect.decorate(y, E, A, S);
|
|
13291
13292
|
else
|
|
13292
13293
|
for (var b = y.length - 1; b >= 0; b--)
|
|
13293
|
-
(
|
|
13294
|
-
return v > 3 &&
|
|
13294
|
+
(C = y[b]) && (_ = (v < 3 ? C(_) : v > 3 ? C(E, A, _) : C(E, A)) || _);
|
|
13295
|
+
return v > 3 && _ && Object.defineProperty(E, A, _), _;
|
|
13295
13296
|
};
|
|
13296
13297
|
Object.defineProperty(ag, "__esModule", { value: !0 }), ag.ATNConfigSet = void 0;
|
|
13297
13298
|
const e = Bl, n = nu, r = Wx, i = su(), s = Yx, o = iu, u = ye, a = Ms, l = ru(), c = RI(), f = Gx, x = Di(), h = hn;
|
|
@@ -13362,8 +13363,8 @@ function Ty() {
|
|
|
13362
13363
|
let A = E, S = this.getKey(A), v = this.mergedConfigs.get(S);
|
|
13363
13364
|
if (v != null && this.canMerge(A, S, v))
|
|
13364
13365
|
return v.contains(A);
|
|
13365
|
-
for (let
|
|
13366
|
-
if (
|
|
13366
|
+
for (let _ of this.unmerged)
|
|
13367
|
+
if (_.contains(E))
|
|
13367
13368
|
return !0;
|
|
13368
13369
|
} else
|
|
13369
13370
|
for (let A of this.configs)
|
|
@@ -13381,18 +13382,18 @@ function Ty() {
|
|
|
13381
13382
|
if (this.ensureWritable(), !this.mergedConfigs || !this.unmerged)
|
|
13382
13383
|
throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");
|
|
13383
13384
|
x(!this.outermostConfigSet || !E.reachesIntoOuterContext), A == null && (A = c.PredictionContextCache.UNCACHED);
|
|
13384
|
-
let S, v = this.getKey(E),
|
|
13385
|
-
if (S =
|
|
13386
|
-
|
|
13387
|
-
let
|
|
13388
|
-
return this.updatePropertiesForMergedConfig(E),
|
|
13389
|
-
}
|
|
13390
|
-
for (let
|
|
13391
|
-
let b = this.unmerged[
|
|
13385
|
+
let S, v = this.getKey(E), _ = this.mergedConfigs.get(v);
|
|
13386
|
+
if (S = _ == null, _ != null && this.canMerge(E, v, _)) {
|
|
13387
|
+
_.outerContextDepth = Math.max(_.outerContextDepth, E.outerContextDepth), E.isPrecedenceFilterSuppressed && (_.isPrecedenceFilterSuppressed = !0);
|
|
13388
|
+
let C = l.PredictionContext.join(_.context, E.context, A);
|
|
13389
|
+
return this.updatePropertiesForMergedConfig(E), _.context === C ? !1 : (_.context = C, !0);
|
|
13390
|
+
}
|
|
13391
|
+
for (let C = 0; C < this.unmerged.length; C++) {
|
|
13392
|
+
let b = this.unmerged[C];
|
|
13392
13393
|
if (this.canMerge(E, v, b)) {
|
|
13393
13394
|
b.outerContextDepth = Math.max(b.outerContextDepth, E.outerContextDepth), E.isPrecedenceFilterSuppressed && (b.isPrecedenceFilterSuppressed = !0);
|
|
13394
13395
|
let R = l.PredictionContext.join(b.context, E.context, A);
|
|
13395
|
-
return this.updatePropertiesForMergedConfig(E), b.context === R ? !1 : (b.context = R, S && (this.mergedConfigs.put(v, b), this.unmerged.splice(
|
|
13396
|
+
return this.updatePropertiesForMergedConfig(E), b.context === R ? !1 : (b.context = R, S && (this.mergedConfigs.put(v, b), this.unmerged.splice(C, 1)), !0);
|
|
13396
13397
|
}
|
|
13397
13398
|
}
|
|
13398
13399
|
return this.configs.push(E), S ? this.mergedConfigs.put(v, E) : this.unmerged.push(E), this.updatePropertiesForAddedConfig(E), !0;
|
|
@@ -13439,7 +13440,7 @@ function Ty() {
|
|
|
13439
13440
|
toString(E) {
|
|
13440
13441
|
E == null && (E = !1);
|
|
13441
13442
|
let A = "", S = this.configs.slice(0);
|
|
13442
|
-
S.sort((v,
|
|
13443
|
+
S.sort((v, _) => v.alt !== _.alt ? v.alt - _.alt : v.state.stateNumber !== _.state.stateNumber ? v.state.stateNumber - _.state.stateNumber : v.semanticContext.toString().localeCompare(_.semanticContext.toString())), A += "[";
|
|
13443
13444
|
for (let v = 0; v < S.length; v++)
|
|
13444
13445
|
v > 0 && (A += ", "), A += S[v].toString(void 0, !0, E);
|
|
13445
13446
|
return A += "]", this._hasSemanticContext && (A += ",hasSemanticContext=" + this._hasSemanticContext), this._uniqueAlt !== i.ATN.INVALID_ALT_NUMBER && (A += ",uniqueAlt=" + this._uniqueAlt), this._conflictInfo != null && (A += ",conflictingAlts=" + this._conflictInfo.conflictedAlts, this._conflictInfo.isExact || (A += "*")), this._dipsIntoOuterContext && (A += ",dipsIntoOuterContext"), A.toString();
|
|
@@ -14614,12 +14615,12 @@ function V2e() {
|
|
|
14614
14615
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
14615
14616
|
*/
|
|
14616
14617
|
var t = N && N.__decorate || function(g, y, E, A) {
|
|
14617
|
-
var S = arguments.length, v = S < 3 ? y : A === null ? A = Object.getOwnPropertyDescriptor(y, E) : A,
|
|
14618
|
+
var S = arguments.length, v = S < 3 ? y : A === null ? A = Object.getOwnPropertyDescriptor(y, E) : A, _;
|
|
14618
14619
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
14619
14620
|
v = Reflect.decorate(g, y, E, A);
|
|
14620
14621
|
else
|
|
14621
|
-
for (var
|
|
14622
|
-
(
|
|
14622
|
+
for (var C = g.length - 1; C >= 0; C--)
|
|
14623
|
+
(_ = g[C]) && (v = (S < 3 ? _(v) : S > 3 ? _(y, E, v) : _(y, E)) || v);
|
|
14623
14624
|
return S > 3 && v && Object.defineProperty(y, E, v), v;
|
|
14624
14625
|
}, e = N && N.__param || function(g, y) {
|
|
14625
14626
|
return function(E, A) {
|
|
@@ -14695,7 +14696,7 @@ function V2e() {
|
|
|
14695
14696
|
* outermost context is reached. This parameter has no effect if `ctx`
|
|
14696
14697
|
* is {@link PredictionContext#EMPTY_LOCAL}.
|
|
14697
14698
|
*/
|
|
14698
|
-
_LOOK(y, E, A, S, v,
|
|
14699
|
+
_LOOK(y, E, A, S, v, _, C, b) {
|
|
14699
14700
|
let R = i.ATNConfig.create(y, 0, A);
|
|
14700
14701
|
if (!v.add(R))
|
|
14701
14702
|
return;
|
|
@@ -14713,35 +14714,35 @@ function V2e() {
|
|
|
14713
14714
|
b && S.add(h.Token.EOF);
|
|
14714
14715
|
return;
|
|
14715
14716
|
}
|
|
14716
|
-
let L =
|
|
14717
|
+
let L = _.get(y.ruleIndex);
|
|
14717
14718
|
try {
|
|
14718
|
-
|
|
14719
|
+
_.clear(y.ruleIndex);
|
|
14719
14720
|
for (let M = 0; M < A.size; M++) {
|
|
14720
14721
|
if (A.getReturnState(M) === c.PredictionContext.EMPTY_FULL_STATE_KEY)
|
|
14721
14722
|
continue;
|
|
14722
14723
|
let q = this.atn.states[A.getReturnState(M)];
|
|
14723
|
-
this._LOOK(q, E, A.getParent(M), S, v,
|
|
14724
|
+
this._LOOK(q, E, A.getParent(M), S, v, _, C, b);
|
|
14724
14725
|
}
|
|
14725
14726
|
} finally {
|
|
14726
|
-
L &&
|
|
14727
|
+
L && _.set(y.ruleIndex);
|
|
14727
14728
|
}
|
|
14728
14729
|
}
|
|
14729
14730
|
let O = y.numberOfTransitions;
|
|
14730
14731
|
for (let L = 0; L < O; L++) {
|
|
14731
14732
|
let M = y.transition(L);
|
|
14732
14733
|
if (M instanceof x.RuleTransition) {
|
|
14733
|
-
if (
|
|
14734
|
+
if (_.get(M.ruleIndex))
|
|
14734
14735
|
continue;
|
|
14735
14736
|
let q = A.getChild(M.followState.stateNumber);
|
|
14736
14737
|
try {
|
|
14737
|
-
|
|
14738
|
+
_.set(M.ruleIndex), this._LOOK(M.target, E, q, S, v, _, C, b);
|
|
14738
14739
|
} finally {
|
|
14739
|
-
|
|
14740
|
+
_.clear(M.ruleIndex);
|
|
14740
14741
|
}
|
|
14741
14742
|
} else if (M instanceof n.AbstractPredicateTransition)
|
|
14742
|
-
|
|
14743
|
+
C ? this._LOOK(M.target, E, A, S, v, _, C, b) : S.add(EL.HIT_PRED);
|
|
14743
14744
|
else if (M.isEpsilon)
|
|
14744
|
-
this._LOOK(M.target, E, A, S, v,
|
|
14745
|
+
this._LOOK(M.target, E, A, S, v, _, C, b);
|
|
14745
14746
|
else if (M instanceof p.WildcardTransition)
|
|
14746
14747
|
S.addAll(o.IntervalSet.of(h.Token.MIN_USER_TOKEN_TYPE, this.atn.maxTokenType));
|
|
14747
14748
|
else {
|
|
@@ -14879,8 +14880,8 @@ function su() {
|
|
|
14879
14880
|
return A;
|
|
14880
14881
|
let S = new s.IntervalSet();
|
|
14881
14882
|
for (S.addAll(A), S.remove(f.Token.EPSILON); y != null && y.invokingState >= 0 && A.contains(f.Token.EPSILON); ) {
|
|
14882
|
-
let
|
|
14883
|
-
A = this.nextTokens(
|
|
14883
|
+
let _ = this.states[y.invokingState].transition(0);
|
|
14884
|
+
A = this.nextTokens(_.followState), S.addAll(A), S.remove(f.Token.EPSILON), y = y._parent;
|
|
14884
14885
|
}
|
|
14885
14886
|
return A.contains(f.Token.EPSILON) && S.add(f.Token.EOF), S;
|
|
14886
14887
|
}
|
|
@@ -15285,66 +15286,66 @@ function wy() {
|
|
|
15285
15286
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
15286
15287
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
15287
15288
|
*/
|
|
15288
|
-
var e = N && N.__decorate || function(v,
|
|
15289
|
-
var R = arguments.length, O = R < 3 ?
|
|
15289
|
+
var e = N && N.__decorate || function(v, _, C, b) {
|
|
15290
|
+
var R = arguments.length, O = R < 3 ? _ : b === null ? b = Object.getOwnPropertyDescriptor(_, C) : b, L;
|
|
15290
15291
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
15291
|
-
O = Reflect.decorate(v,
|
|
15292
|
+
O = Reflect.decorate(v, _, C, b);
|
|
15292
15293
|
else
|
|
15293
15294
|
for (var M = v.length - 1; M >= 0; M--)
|
|
15294
|
-
(L = v[M]) && (O = (R < 3 ? L(O) : R > 3 ? L(
|
|
15295
|
-
return R > 3 && O && Object.defineProperty(
|
|
15296
|
-
}, n = N && N.__param || function(v,
|
|
15297
|
-
return function(
|
|
15298
|
-
C
|
|
15295
|
+
(L = v[M]) && (O = (R < 3 ? L(O) : R > 3 ? L(_, C, O) : L(_, C)) || O);
|
|
15296
|
+
return R > 3 && O && Object.defineProperty(_, C, O), O;
|
|
15297
|
+
}, n = N && N.__param || function(v, _) {
|
|
15298
|
+
return function(C, b) {
|
|
15299
|
+
_(C, b, v);
|
|
15299
15300
|
};
|
|
15300
15301
|
};
|
|
15301
15302
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.LexerATNSimulator = void 0;
|
|
15302
15303
|
const r = by, i = su(), s = Yx, o = Ty(), u = Tb(), a = bb(), l = Ar, c = $l, f = kl(), x = Nb, h = Zx, p = ye, m = tge(), g = ru(), y = Sc, E = Gt, A = Di();
|
|
15303
15304
|
let S = class Es extends u.ATNSimulator {
|
|
15304
|
-
constructor(
|
|
15305
|
-
super(
|
|
15305
|
+
constructor(_, C) {
|
|
15306
|
+
super(_), this.optimize_tail_calls = !0, this.startIndex = -1, this._line = 1, this._charPositionInLine = 0, this.mode = f.Lexer.DEFAULT_MODE, this.prevAccept = new Es.SimState(), this.recog = C;
|
|
15306
15307
|
}
|
|
15307
|
-
copyState(
|
|
15308
|
-
this._charPositionInLine =
|
|
15308
|
+
copyState(_) {
|
|
15309
|
+
this._charPositionInLine = _.charPositionInLine, this._line = _._line, this.mode = _.mode, this.startIndex = _.startIndex;
|
|
15309
15310
|
}
|
|
15310
|
-
match(
|
|
15311
|
-
this.mode =
|
|
15312
|
-
let b =
|
|
15311
|
+
match(_, C) {
|
|
15312
|
+
this.mode = C;
|
|
15313
|
+
let b = _.mark();
|
|
15313
15314
|
try {
|
|
15314
|
-
this.startIndex =
|
|
15315
|
-
let R = this.atn.modeToDFA[
|
|
15316
|
-
return R == null ? this.matchATN(
|
|
15315
|
+
this.startIndex = _.index, this.prevAccept.reset();
|
|
15316
|
+
let R = this.atn.modeToDFA[C].s0;
|
|
15317
|
+
return R == null ? this.matchATN(_) : this.execATN(_, R);
|
|
15317
15318
|
} finally {
|
|
15318
|
-
|
|
15319
|
+
_.release(b);
|
|
15319
15320
|
}
|
|
15320
15321
|
}
|
|
15321
15322
|
reset() {
|
|
15322
15323
|
this.prevAccept.reset(), this.startIndex = -1, this._line = 1, this._charPositionInLine = 0, this.mode = f.Lexer.DEFAULT_MODE;
|
|
15323
15324
|
}
|
|
15324
|
-
matchATN(
|
|
15325
|
-
let
|
|
15326
|
-
Es.debug && console.log(`matchATN mode ${this.mode} start: ${
|
|
15327
|
-
let b = this.mode, R = this.computeStartState(
|
|
15325
|
+
matchATN(_) {
|
|
15326
|
+
let C = this.atn.modeToStartState[this.mode];
|
|
15327
|
+
Es.debug && console.log(`matchATN mode ${this.mode} start: ${C}`);
|
|
15328
|
+
let b = this.mode, R = this.computeStartState(_, C), O = R.hasSemanticContext;
|
|
15328
15329
|
O && (R.hasSemanticContext = !1);
|
|
15329
15330
|
let L = this.addDFAState(R);
|
|
15330
15331
|
if (!O) {
|
|
15331
15332
|
let q = this.atn.modeToDFA[this.mode];
|
|
15332
15333
|
q.s0 ? L = q.s0 : q.s0 = L;
|
|
15333
15334
|
}
|
|
15334
|
-
let M = this.execATN(
|
|
15335
|
+
let M = this.execATN(_, L);
|
|
15335
15336
|
return Es.debug && console.log(`DFA after matchATN: ${this.atn.modeToDFA[b].toLexerString()}`), M;
|
|
15336
15337
|
}
|
|
15337
|
-
execATN(
|
|
15338
|
-
Es.debug && console.log(`start state closure=${
|
|
15339
|
-
let b =
|
|
15338
|
+
execATN(_, C) {
|
|
15339
|
+
Es.debug && console.log(`start state closure=${C.configs}`), C.isAcceptState && this.captureSimState(this.prevAccept, _, C);
|
|
15340
|
+
let b = _.LA(1), R = C;
|
|
15340
15341
|
for (; ; ) {
|
|
15341
15342
|
Es.debug && console.log(`execATN loop starting closure: ${R.configs}`);
|
|
15342
15343
|
let O = this.getExistingTargetState(R, b);
|
|
15343
|
-
if (O == null && (O = this.computeTargetState(
|
|
15344
|
+
if (O == null && (O = this.computeTargetState(_, R, b)), O === u.ATNSimulator.ERROR || (b !== c.IntStream.EOF && this.consume(_), O.isAcceptState && (this.captureSimState(this.prevAccept, _, O), b === c.IntStream.EOF)))
|
|
15344
15345
|
break;
|
|
15345
|
-
b =
|
|
15346
|
+
b = _.LA(1), R = O;
|
|
15346
15347
|
}
|
|
15347
|
-
return this.failOrAccept(this.prevAccept,
|
|
15348
|
+
return this.failOrAccept(this.prevAccept, _, R.configs, b);
|
|
15348
15349
|
}
|
|
15349
15350
|
/**
|
|
15350
15351
|
* Get an existing target state for an edge in the DFA. If the target state
|
|
@@ -15357,9 +15358,9 @@ function wy() {
|
|
|
15357
15358
|
* `t`, or `undefined` if the target state for this edge is not
|
|
15358
15359
|
* already cached
|
|
15359
15360
|
*/
|
|
15360
|
-
getExistingTargetState(
|
|
15361
|
-
let b =
|
|
15362
|
-
return Es.debug && b != null && console.log("reuse state " +
|
|
15361
|
+
getExistingTargetState(_, C) {
|
|
15362
|
+
let b = _.getTarget(C);
|
|
15363
|
+
return Es.debug && b != null && console.log("reuse state " + _.stateNumber + " edge to " + b.stateNumber), b;
|
|
15363
15364
|
}
|
|
15364
15365
|
/**
|
|
15365
15366
|
* Compute a target state for an edge in the DFA, and attempt to add the
|
|
@@ -15373,27 +15374,27 @@ function wy() {
|
|
|
15373
15374
|
* `t`. If `t` does not lead to a valid DFA state, this method
|
|
15374
15375
|
* returns {@link #ERROR}.
|
|
15375
15376
|
*/
|
|
15376
|
-
computeTargetState(
|
|
15377
|
+
computeTargetState(_, C, b) {
|
|
15377
15378
|
let R = new m.OrderedATNConfigSet();
|
|
15378
|
-
return this.getReachableConfigSet(
|
|
15379
|
+
return this.getReachableConfigSet(_, C.configs, R, b), R.isEmpty ? (R.hasSemanticContext || this.addDFAEdge(C, b, u.ATNSimulator.ERROR), u.ATNSimulator.ERROR) : this.addDFAEdge(C, b, R);
|
|
15379
15380
|
}
|
|
15380
|
-
failOrAccept(
|
|
15381
|
-
if (
|
|
15382
|
-
let O =
|
|
15383
|
-
return this.accept(
|
|
15381
|
+
failOrAccept(_, C, b, R) {
|
|
15382
|
+
if (_.dfaState != null) {
|
|
15383
|
+
let O = _.dfaState.lexerActionExecutor;
|
|
15384
|
+
return this.accept(C, O, this.startIndex, _.index, _.line, _.charPos), _.dfaState.prediction;
|
|
15384
15385
|
} else {
|
|
15385
|
-
if (R === c.IntStream.EOF &&
|
|
15386
|
+
if (R === c.IntStream.EOF && C.index === this.startIndex)
|
|
15386
15387
|
return E.Token.EOF;
|
|
15387
|
-
throw new h.LexerNoViableAltException(this.recog,
|
|
15388
|
+
throw new h.LexerNoViableAltException(this.recog, C, this.startIndex, b);
|
|
15388
15389
|
}
|
|
15389
15390
|
}
|
|
15390
15391
|
/** Given a starting configuration set, figure out all ATN configurations
|
|
15391
15392
|
* we can reach upon input `t`. Parameter `reach` is a return
|
|
15392
15393
|
* parameter.
|
|
15393
15394
|
*/
|
|
15394
|
-
getReachableConfigSet(
|
|
15395
|
+
getReachableConfigSet(_, C, b, R) {
|
|
15395
15396
|
let O = i.ATN.INVALID_ALT_NUMBER;
|
|
15396
|
-
for (let L of
|
|
15397
|
+
for (let L of C) {
|
|
15397
15398
|
let M = L.alt === O;
|
|
15398
15399
|
if (M && L.hasPassedThroughNonGreedyDecision)
|
|
15399
15400
|
continue;
|
|
@@ -15403,9 +15404,9 @@ function wy() {
|
|
|
15403
15404
|
let B = L.state.getOptimizedTransition(W), G = this.getReachableTarget(B, R);
|
|
15404
15405
|
if (G != null) {
|
|
15405
15406
|
let te = L.lexerActionExecutor, X;
|
|
15406
|
-
te != null ? (te = te.fixOffsetBeforeMatch(
|
|
15407
|
+
te != null ? (te = te.fixOffsetBeforeMatch(_.index - this.startIndex), X = L.transform(G, !0, te)) : (A(L.lexerActionExecutor == null), X = L.transform(G, !0));
|
|
15407
15408
|
let de = R === c.IntStream.EOF;
|
|
15408
|
-
if (this.closure(
|
|
15409
|
+
if (this.closure(_, X, b, M, !0, de)) {
|
|
15409
15410
|
O = L.alt;
|
|
15410
15411
|
break;
|
|
15411
15412
|
}
|
|
@@ -15413,18 +15414,18 @@ function wy() {
|
|
|
15413
15414
|
}
|
|
15414
15415
|
}
|
|
15415
15416
|
}
|
|
15416
|
-
accept(
|
|
15417
|
-
Es.debug && console.log(`ACTION ${
|
|
15417
|
+
accept(_, C, b, R, O, L) {
|
|
15418
|
+
Es.debug && console.log(`ACTION ${C}`), _.seek(R), this._line = O, this._charPositionInLine = L, C != null && this.recog != null && C.execute(this.recog, _, b);
|
|
15418
15419
|
}
|
|
15419
|
-
getReachableTarget(
|
|
15420
|
-
if (
|
|
15421
|
-
return
|
|
15420
|
+
getReachableTarget(_, C) {
|
|
15421
|
+
if (_.matches(C, f.Lexer.MIN_CHAR_VALUE, f.Lexer.MAX_CHAR_VALUE))
|
|
15422
|
+
return _.target;
|
|
15422
15423
|
}
|
|
15423
|
-
computeStartState(
|
|
15424
|
+
computeStartState(_, C) {
|
|
15424
15425
|
let b = g.PredictionContext.EMPTY_FULL, R = new m.OrderedATNConfigSet();
|
|
15425
|
-
for (let O = 0; O <
|
|
15426
|
-
let L =
|
|
15427
|
-
this.closure(
|
|
15426
|
+
for (let O = 0; O < C.numberOfTransitions; O++) {
|
|
15427
|
+
let L = C.transition(O).target, M = s.ATNConfig.create(L, O + 1, b);
|
|
15428
|
+
this.closure(_, M, R, !1, !1, !1);
|
|
15428
15429
|
}
|
|
15429
15430
|
return R;
|
|
15430
15431
|
}
|
|
@@ -15438,66 +15439,66 @@ function wy() {
|
|
|
15438
15439
|
* @returns `true` if an accept state is reached, otherwise
|
|
15439
15440
|
* `false`.
|
|
15440
15441
|
*/
|
|
15441
|
-
closure(
|
|
15442
|
-
if (Es.debug && console.log("closure(" +
|
|
15443
|
-
Es.debug && (this.recog != null ? console.log(`closure at ${this.recog.ruleNames[
|
|
15444
|
-
let q =
|
|
15442
|
+
closure(_, C, b, R, O, L) {
|
|
15443
|
+
if (Es.debug && console.log("closure(" + C.toString(this.recog, !0) + ")"), C.state instanceof y.RuleStopState) {
|
|
15444
|
+
Es.debug && (this.recog != null ? console.log(`closure at ${this.recog.ruleNames[C.state.ruleIndex]} rule stop ${C}`) : console.log(`closure at rule stop ${C}`));
|
|
15445
|
+
let q = C.context;
|
|
15445
15446
|
if (q.isEmpty)
|
|
15446
|
-
return b.add(
|
|
15447
|
-
q.hasEmpty && (b.add(
|
|
15447
|
+
return b.add(C), !0;
|
|
15448
|
+
q.hasEmpty && (b.add(C.transform(C.state, !0, g.PredictionContext.EMPTY_FULL)), R = !0);
|
|
15448
15449
|
for (let W = 0; W < q.size; W++) {
|
|
15449
15450
|
let B = q.getReturnState(W);
|
|
15450
15451
|
if (B === g.PredictionContext.EMPTY_FULL_STATE_KEY)
|
|
15451
15452
|
continue;
|
|
15452
|
-
let G = q.getParent(W), te = this.atn.states[B], X =
|
|
15453
|
-
R = this.closure(
|
|
15453
|
+
let G = q.getParent(W), te = this.atn.states[B], X = C.transform(te, !1, G);
|
|
15454
|
+
R = this.closure(_, X, b, R, O, L);
|
|
15454
15455
|
}
|
|
15455
15456
|
return R;
|
|
15456
15457
|
}
|
|
15457
|
-
|
|
15458
|
-
let M =
|
|
15458
|
+
C.state.onlyHasEpsilonTransitions || (!R || !C.hasPassedThroughNonGreedyDecision) && b.add(C);
|
|
15459
|
+
let M = C.state;
|
|
15459
15460
|
for (let q = 0; q < M.numberOfOptimizedTransitions; q++) {
|
|
15460
|
-
let W = M.getOptimizedTransition(q), B = this.getEpsilonTarget(
|
|
15461
|
-
B != null && (R = this.closure(
|
|
15461
|
+
let W = M.getOptimizedTransition(q), B = this.getEpsilonTarget(_, C, W, b, O, L);
|
|
15462
|
+
B != null && (R = this.closure(_, B, b, R, O, L));
|
|
15462
15463
|
}
|
|
15463
15464
|
return R;
|
|
15464
15465
|
}
|
|
15465
15466
|
// side-effect: can alter configs.hasSemanticContext
|
|
15466
|
-
getEpsilonTarget(
|
|
15467
|
+
getEpsilonTarget(_, C, b, R, O, L) {
|
|
15467
15468
|
let M;
|
|
15468
15469
|
switch (b.serializationType) {
|
|
15469
15470
|
case 3:
|
|
15470
15471
|
let q = b;
|
|
15471
|
-
if (this.optimize_tail_calls && q.optimizedTailCall && !
|
|
15472
|
-
M =
|
|
15472
|
+
if (this.optimize_tail_calls && q.optimizedTailCall && !C.context.hasEmpty)
|
|
15473
|
+
M = C.transform(b.target, !0);
|
|
15473
15474
|
else {
|
|
15474
|
-
let B =
|
|
15475
|
-
M =
|
|
15475
|
+
let B = C.context.getChild(q.followState.stateNumber);
|
|
15476
|
+
M = C.transform(b.target, !0, B);
|
|
15476
15477
|
}
|
|
15477
15478
|
break;
|
|
15478
15479
|
case 10:
|
|
15479
15480
|
throw new Error("Precedence predicates are not supported in lexers.");
|
|
15480
15481
|
case 4:
|
|
15481
15482
|
let W = b;
|
|
15482
|
-
Es.debug && console.log("EVAL rule " + W.ruleIndex + ":" + W.predIndex), R.hasSemanticContext = !0, this.evaluatePredicate(
|
|
15483
|
+
Es.debug && console.log("EVAL rule " + W.ruleIndex + ":" + W.predIndex), R.hasSemanticContext = !0, this.evaluatePredicate(_, W.ruleIndex, W.predIndex, O) ? M = C.transform(b.target, !0) : M = void 0;
|
|
15483
15484
|
break;
|
|
15484
15485
|
case 6:
|
|
15485
|
-
if (
|
|
15486
|
-
let B = x.LexerActionExecutor.append(
|
|
15487
|
-
M =
|
|
15486
|
+
if (C.context.hasEmpty) {
|
|
15487
|
+
let B = x.LexerActionExecutor.append(C.lexerActionExecutor, this.atn.lexerActions[b.actionIndex]);
|
|
15488
|
+
M = C.transform(b.target, !0, B);
|
|
15488
15489
|
break;
|
|
15489
15490
|
} else {
|
|
15490
|
-
M =
|
|
15491
|
+
M = C.transform(b.target, !0);
|
|
15491
15492
|
break;
|
|
15492
15493
|
}
|
|
15493
15494
|
case 1:
|
|
15494
|
-
M =
|
|
15495
|
+
M = C.transform(b.target, !0);
|
|
15495
15496
|
break;
|
|
15496
15497
|
case 5:
|
|
15497
15498
|
case 2:
|
|
15498
15499
|
case 7:
|
|
15499
15500
|
if (L && b.matches(c.IntStream.EOF, f.Lexer.MIN_CHAR_VALUE, f.Lexer.MAX_CHAR_VALUE)) {
|
|
15500
|
-
M =
|
|
15501
|
+
M = C.transform(b.target, !1);
|
|
15501
15502
|
break;
|
|
15502
15503
|
}
|
|
15503
15504
|
M = void 0;
|
|
@@ -15529,43 +15530,43 @@ function wy() {
|
|
|
15529
15530
|
* @returns `true` if the specified predicate evaluates to
|
|
15530
15531
|
* `true`.
|
|
15531
15532
|
*/
|
|
15532
|
-
evaluatePredicate(
|
|
15533
|
+
evaluatePredicate(_, C, b, R) {
|
|
15533
15534
|
if (this.recog == null)
|
|
15534
15535
|
return !0;
|
|
15535
15536
|
if (!R)
|
|
15536
|
-
return this.recog.sempred(void 0,
|
|
15537
|
-
let O = this._charPositionInLine, L = this._line, M =
|
|
15537
|
+
return this.recog.sempred(void 0, C, b);
|
|
15538
|
+
let O = this._charPositionInLine, L = this._line, M = _.index, q = _.mark();
|
|
15538
15539
|
try {
|
|
15539
|
-
return this.consume(
|
|
15540
|
+
return this.consume(_), this.recog.sempred(void 0, C, b);
|
|
15540
15541
|
} finally {
|
|
15541
|
-
this._charPositionInLine = O, this._line = L,
|
|
15542
|
+
this._charPositionInLine = O, this._line = L, _.seek(M), _.release(q);
|
|
15542
15543
|
}
|
|
15543
15544
|
}
|
|
15544
|
-
captureSimState(
|
|
15545
|
-
|
|
15545
|
+
captureSimState(_, C, b) {
|
|
15546
|
+
_.index = C.index, _.line = this._line, _.charPos = this._charPositionInLine, _.dfaState = b;
|
|
15546
15547
|
}
|
|
15547
|
-
addDFAEdge(
|
|
15548
|
+
addDFAEdge(_, C, b) {
|
|
15548
15549
|
if (b instanceof o.ATNConfigSet) {
|
|
15549
15550
|
let R = b.hasSemanticContext;
|
|
15550
15551
|
R && (b.hasSemanticContext = !1);
|
|
15551
15552
|
let O = this.addDFAState(b);
|
|
15552
|
-
return R || this.addDFAEdge(
|
|
15553
|
+
return R || this.addDFAEdge(_, C, O), O;
|
|
15553
15554
|
} else
|
|
15554
|
-
Es.debug && console.log("EDGE " +
|
|
15555
|
+
Es.debug && console.log("EDGE " + _ + " -> " + b + " upon " + String.fromCharCode(C)), _ != null && _.setTarget(C, b);
|
|
15555
15556
|
}
|
|
15556
15557
|
/** Add a new DFA state if there isn't one with this set of
|
|
15557
15558
|
* configurations already. This method also detects the first
|
|
15558
15559
|
* configuration containing an ATN rule stop state. Later, when
|
|
15559
15560
|
* traversing the DFA, we will know which rule to accept.
|
|
15560
15561
|
*/
|
|
15561
|
-
addDFAState(
|
|
15562
|
-
A(!
|
|
15563
|
-
let
|
|
15562
|
+
addDFAState(_) {
|
|
15563
|
+
A(!_.hasSemanticContext);
|
|
15564
|
+
let C = new a.DFAState(_), b = this.atn.modeToDFA[this.mode].states.get(C);
|
|
15564
15565
|
if (b != null)
|
|
15565
15566
|
return b;
|
|
15566
|
-
|
|
15567
|
-
let R = new a.DFAState(
|
|
15568
|
-
for (let L of
|
|
15567
|
+
_.optimizeConfigs(this);
|
|
15568
|
+
let R = new a.DFAState(_.clone(!0)), O;
|
|
15569
|
+
for (let L of _)
|
|
15569
15570
|
if (L.state instanceof y.RuleStopState) {
|
|
15570
15571
|
O = L;
|
|
15571
15572
|
break;
|
|
@@ -15576,31 +15577,31 @@ function wy() {
|
|
|
15576
15577
|
}
|
|
15577
15578
|
return this.atn.modeToDFA[this.mode].addState(R);
|
|
15578
15579
|
}
|
|
15579
|
-
getDFA(
|
|
15580
|
-
return this.atn.modeToDFA[
|
|
15580
|
+
getDFA(_) {
|
|
15581
|
+
return this.atn.modeToDFA[_];
|
|
15581
15582
|
}
|
|
15582
15583
|
/** Get the text matched so far for the current token.
|
|
15583
15584
|
*/
|
|
15584
|
-
getText(
|
|
15585
|
-
return
|
|
15585
|
+
getText(_) {
|
|
15586
|
+
return _.getText(l.Interval.of(this.startIndex, _.index - 1));
|
|
15586
15587
|
}
|
|
15587
15588
|
get line() {
|
|
15588
15589
|
return this._line;
|
|
15589
15590
|
}
|
|
15590
|
-
set line(
|
|
15591
|
-
this._line =
|
|
15591
|
+
set line(_) {
|
|
15592
|
+
this._line = _;
|
|
15592
15593
|
}
|
|
15593
15594
|
get charPositionInLine() {
|
|
15594
15595
|
return this._charPositionInLine;
|
|
15595
15596
|
}
|
|
15596
|
-
set charPositionInLine(
|
|
15597
|
-
this._charPositionInLine =
|
|
15597
|
+
set charPositionInLine(_) {
|
|
15598
|
+
this._charPositionInLine = _;
|
|
15598
15599
|
}
|
|
15599
|
-
consume(
|
|
15600
|
-
|
|
15600
|
+
consume(_) {
|
|
15601
|
+
_.LA(1) === 10 ? (this._line++, this._charPositionInLine = 0) : this._charPositionInLine++, _.consume();
|
|
15601
15602
|
}
|
|
15602
|
-
getTokenName(
|
|
15603
|
-
return
|
|
15603
|
+
getTokenName(_) {
|
|
15604
|
+
return _ === -1 ? "EOF" : "'" + String.fromCharCode(_) + "'";
|
|
15604
15605
|
}
|
|
15605
15606
|
};
|
|
15606
15607
|
e([
|
|
@@ -15663,7 +15664,7 @@ function wy() {
|
|
|
15663
15664
|
n(0, p.NotNull)
|
|
15664
15665
|
], S), t.LexerATNSimulator = S, function(v) {
|
|
15665
15666
|
v.debug = !1, v.dfa_debug = !1;
|
|
15666
|
-
class
|
|
15667
|
+
class _ {
|
|
15667
15668
|
constructor() {
|
|
15668
15669
|
this.index = -1, this.line = 0, this.charPos = -1;
|
|
15669
15670
|
}
|
|
@@ -15671,7 +15672,7 @@ function wy() {
|
|
|
15671
15672
|
this.index = -1, this.line = 0, this.charPos = -1, this.dfaState = void 0;
|
|
15672
15673
|
}
|
|
15673
15674
|
}
|
|
15674
|
-
v.SimState =
|
|
15675
|
+
v.SimState = _;
|
|
15675
15676
|
}(S = t.LexerATNSimulator || (t.LexerATNSimulator = {})), t.LexerATNSimulator = S;
|
|
15676
15677
|
}(VD)), VD;
|
|
15677
15678
|
}
|
|
@@ -17614,8 +17615,8 @@ function bc() {
|
|
|
17614
17615
|
for (let A = 0; A < E; A++) {
|
|
17615
17616
|
let S = p.getChild(A), v = S.sourceInterval;
|
|
17616
17617
|
if (S instanceof u.ParserRuleContext && (v.b < g || v.a > y) && f0.isAncestorOf(S, m)) {
|
|
17617
|
-
let
|
|
17618
|
-
p.children[A] = new l.TerminalNode(
|
|
17618
|
+
let _ = new r.CommonToken(c.Token.INVALID_TYPE, "...");
|
|
17619
|
+
p.children[A] = new l.TerminalNode(_);
|
|
17619
17620
|
}
|
|
17620
17621
|
}
|
|
17621
17622
|
}
|
|
@@ -18099,7 +18100,7 @@ function Qp() {
|
|
|
18099
18100
|
};
|
|
18100
18101
|
};
|
|
18101
18102
|
Object.defineProperty(Ag, "__esModule", { value: !0 }), Ag.ParserATNSimulator = void 0;
|
|
18102
|
-
const n = by, r = Iy, i = nu, s = Sb, o = su(), u = Yx, a = Ty(), l = Tb(), c = Er, f = ky, x = iu, h = Mb, p = xa, m = bb(), g = kp, y = Ar, E = $l, A = ye, S = NI(), v = Jy(),
|
|
18103
|
+
const n = by, r = Iy, i = nu, s = Sb, o = su(), u = Yx, a = Ty(), l = Tb(), c = Er, f = ky, x = iu, h = Mb, p = xa, m = bb(), g = kp, y = Ar, E = $l, A = ye, S = NI(), v = Jy(), _ = Ms, C = Co(), b = ru(), R = RI(), O = KW, L = Sc, M = jp, q = Gx, W = OI(), B = XW(), G = Gt, te = js, X = Di(), de = 65535, be = -(1 << 31 >>> 0);
|
|
18103
18104
|
let ee = class ut extends l.ATNSimulator {
|
|
18104
18105
|
constructor(T, w) {
|
|
18105
18106
|
super(T), this.predictionMode = O.PredictionMode.LL, this.force_global_context = !1, this.always_try_local_context = !0, this.enable_global_context_dfa = !1, this.optimize_unique_closure = !0, this.optimize_ll1 = !0, this.optimize_tail_calls = !0, this.tail_call_preserves_sll = !0, this.treat_sllk1_conflict_as_ambiguity = !1, this.reportAmbiguities = !1, this.userWantsCtxSensitive = !0, this._parser = w;
|
|
@@ -18123,9 +18124,9 @@ function Qp() {
|
|
|
18123
18124
|
return I;
|
|
18124
18125
|
}
|
|
18125
18126
|
}
|
|
18126
|
-
this.dfa = Y, this.force_global_context ? z = !0 : this.always_try_local_context || (z = z || Y.isContextSensitive), this.userWantsCtxSensitive = z || this.predictionMode !== O.PredictionMode.SLL && k != null && !this.atn.decisionToState[w].sll, k == null && (k =
|
|
18127
|
+
this.dfa = Y, this.force_global_context ? z = !0 : this.always_try_local_context || (z = z || Y.isContextSensitive), this.userWantsCtxSensitive = z || this.predictionMode !== O.PredictionMode.SLL && k != null && !this.atn.decisionToState[w].sll, k == null && (k = C.ParserRuleContext.emptyContext());
|
|
18127
18128
|
let V;
|
|
18128
|
-
Y.isEmpty || (V = this.getStartState(Y, T, k, z)), V == null && (k == null && (k =
|
|
18129
|
+
Y.isEmpty || (V = this.getStartState(Y, T, k, z)), V == null && (k == null && (k = C.ParserRuleContext.emptyContext()), ut.debug && console.log("ATN decision " + Y.decision + " exec LA(1)==" + this.getLookaheadName(T) + ", outerContext=" + k.toString(this._parser)), V = this.computeStartState(Y, k, z));
|
|
18129
18130
|
let D = T.mark(), $ = T.index;
|
|
18130
18131
|
try {
|
|
18131
18132
|
let j = this.execDFA(Y, T, $, V);
|
|
@@ -18722,7 +18723,7 @@ function Qp() {
|
|
|
18722
18723
|
*/
|
|
18723
18724
|
closure(T, w, k, z, Y, V) {
|
|
18724
18725
|
Y == null && (Y = R.PredictionContextCache.UNCACHED);
|
|
18725
|
-
let D = T, $ = new i.Array2DHashSet(
|
|
18726
|
+
let D = T, $ = new i.Array2DHashSet(_.ObjectEqualityComparator.INSTANCE);
|
|
18726
18727
|
for (; D.size > 0; ) {
|
|
18727
18728
|
let j = new a.ATNConfigSet();
|
|
18728
18729
|
for (let Q of D)
|
|
@@ -19527,7 +19528,7 @@ function Gp() {
|
|
|
19527
19528
|
};
|
|
19528
19529
|
};
|
|
19529
19530
|
Object.defineProperty(yg, "__esModule", { value: !0 }), yg.ATNDeserializer = void 0;
|
|
19530
|
-
const n = Iy, r = nu, i = su(), s = Ly, o = Er, u = ky, a = Fb, l = Ny, c = iu, f = wb, x = td, h = xa, p = wW(), m = Lb, g = ed(), y = Oy, E = Ib, A = $b, S = Bb, v = UW,
|
|
19531
|
+
const n = Iy, r = nu, i = su(), s = Ly, o = Er, u = ky, a = Fb, l = Ny, c = iu, f = wb, x = td, h = xa, p = wW(), m = Lb, g = ed(), y = Oy, E = Ib, A = $b, S = Bb, v = UW, _ = qW, C = kb, b = HW, R = Pb, O = Uy, L = ye, M = NI(), q = Qp(), W = jb, B = Ub, G = qb, te = vy, X = Hb, de = zb, be = Sc, ee = jp, U = OI(), T = Qb, w = Gb, k = Mp, z = Gt, Y = Wb, V = Vb, D = Fy;
|
|
19531
19532
|
var $;
|
|
19532
19533
|
(function(Q) {
|
|
19533
19534
|
Q[Q.UNICODE_BMP = 0] = "UNICODE_BMP", Q[Q.UNICODE_SMP = 1] = "UNICODE_SMP";
|
|
@@ -20117,9 +20118,9 @@ function Gp() {
|
|
|
20117
20118
|
case 3:
|
|
20118
20119
|
return v.LexerMoreAction.INSTANCE;
|
|
20119
20120
|
case 4:
|
|
20120
|
-
return
|
|
20121
|
+
return _.LexerPopModeAction.INSTANCE;
|
|
20121
20122
|
case 5:
|
|
20122
|
-
return new
|
|
20123
|
+
return new C.LexerPushModeAction(H);
|
|
20123
20124
|
case 6:
|
|
20124
20125
|
return b.LexerSkipAction.INSTANCE;
|
|
20125
20126
|
case 7:
|
|
@@ -21253,13 +21254,13 @@ function oV() {
|
|
|
21253
21254
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
21254
21255
|
*/
|
|
21255
21256
|
var t = N && N.__decorate || function(y, E, A, S) {
|
|
21256
|
-
var v = arguments.length,
|
|
21257
|
+
var v = arguments.length, _ = v < 3 ? E : S === null ? S = Object.getOwnPropertyDescriptor(E, A) : S, C;
|
|
21257
21258
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
21258
|
-
|
|
21259
|
+
_ = Reflect.decorate(y, E, A, S);
|
|
21259
21260
|
else
|
|
21260
21261
|
for (var b = y.length - 1; b >= 0; b--)
|
|
21261
|
-
(
|
|
21262
|
-
return v > 3 &&
|
|
21262
|
+
(C = y[b]) && (_ = (v < 3 ? C(_) : v > 3 ? C(E, A, _) : C(E, A)) || _);
|
|
21263
|
+
return v > 3 && _ && Object.defineProperty(E, A, _), _;
|
|
21263
21264
|
}, e = N && N.__param || function(y, E) {
|
|
21264
21265
|
return function(A, S) {
|
|
21265
21266
|
E(A, S, y);
|
|
@@ -21268,14 +21269,14 @@ function oV() {
|
|
|
21268
21269
|
Object.defineProperty(Tg, "__esModule", { value: !0 }), Tg.ParserInterpreter = void 0;
|
|
21269
21270
|
const n = fa, r = Er, i = iu, s = mc, o = Vx, u = sV(), a = Uy, l = ye, c = ye, f = Yp(), x = Qp(), h = _o, p = Mp, m = Gt;
|
|
21270
21271
|
let g = class SL extends f.Parser {
|
|
21271
|
-
constructor(E, A, S, v,
|
|
21272
|
-
if (super(E instanceof SL ? E.inputStream :
|
|
21273
|
-
let
|
|
21274
|
-
this._grammarFileName =
|
|
21272
|
+
constructor(E, A, S, v, _) {
|
|
21273
|
+
if (super(E instanceof SL ? E.inputStream : _), this._parentContextStack = [], this.overrideDecision = -1, this.overrideDecisionInputIndex = -1, this.overrideDecisionAlt = -1, this.overrideDecisionReached = !1, this._overrideDecisionRoot = void 0, E instanceof SL) {
|
|
21274
|
+
let C = E;
|
|
21275
|
+
this._grammarFileName = C._grammarFileName, this._atn = C._atn, this.pushRecursionContextStates = C.pushRecursionContextStates, this._ruleNames = C._ruleNames, this._vocabulary = C._vocabulary, this.interpreter = new x.ParserATNSimulator(this._atn, this);
|
|
21275
21276
|
} else {
|
|
21276
21277
|
A = A, S = S, v = v, this._grammarFileName = E, this._atn = v, this._ruleNames = S.slice(0), this._vocabulary = A, this.pushRecursionContextStates = new i.BitSet(v.states.length);
|
|
21277
|
-
for (let
|
|
21278
|
-
|
|
21278
|
+
for (let C of v.states)
|
|
21279
|
+
C instanceof p.StarLoopEntryState && C.precedenceRuleDecision && this.pushRecursionContextStates.set(C.stateNumber);
|
|
21279
21280
|
this.interpreter = new x.ParserATNSimulator(v, this);
|
|
21280
21281
|
}
|
|
21281
21282
|
}
|
|
@@ -21303,8 +21304,8 @@ function oV() {
|
|
|
21303
21304
|
case r.ATNStateType.RULE_STOP:
|
|
21304
21305
|
if (this._ctx.isEmpty)
|
|
21305
21306
|
if (A.isPrecedenceRule) {
|
|
21306
|
-
let v = this._ctx,
|
|
21307
|
-
return this.unrollRecursionContexts(
|
|
21307
|
+
let v = this._ctx, _ = this._parentContextStack.pop();
|
|
21308
|
+
return this.unrollRecursionContexts(_[0]), v;
|
|
21308
21309
|
} else
|
|
21309
21310
|
return this.exitRule(), this._rootContext;
|
|
21310
21311
|
this.visitRuleStopState(S);
|
|
@@ -21351,8 +21352,8 @@ function oV() {
|
|
|
21351
21352
|
this.matchWildcard();
|
|
21352
21353
|
break;
|
|
21353
21354
|
case 3:
|
|
21354
|
-
let v = S.target,
|
|
21355
|
-
v.isPrecedenceRule ? this.enterRecursionRule(
|
|
21355
|
+
let v = S.target, _ = v.ruleIndex, C = this.createInterpreterRuleContext(this._ctx, E.stateNumber, _);
|
|
21356
|
+
v.isPrecedenceRule ? this.enterRecursionRule(C, v.stateNumber, _, S.precedence) : this.enterRule(C, S.target.stateNumber, _);
|
|
21356
21357
|
break;
|
|
21357
21358
|
case 4:
|
|
21358
21359
|
let b = S;
|
|
@@ -21455,7 +21456,7 @@ function oV() {
|
|
|
21455
21456
|
let S = E.getOffendingToken();
|
|
21456
21457
|
if (!S)
|
|
21457
21458
|
throw new Error("Expected exception to have an offending token");
|
|
21458
|
-
let v = S.tokenSource,
|
|
21459
|
+
let v = S.tokenSource, _ = v !== void 0 ? v.inputStream : void 0, C = { source: v, stream: _ };
|
|
21459
21460
|
if (E instanceof o.InputMismatchException) {
|
|
21460
21461
|
let b = E.expectedTokens;
|
|
21461
21462
|
if (b === void 0)
|
|
@@ -21463,7 +21464,7 @@ function oV() {
|
|
|
21463
21464
|
let R = m.Token.INVALID_TYPE;
|
|
21464
21465
|
b.isNil || (R = b.minElement);
|
|
21465
21466
|
let O = this.tokenFactory.create(
|
|
21466
|
-
|
|
21467
|
+
C,
|
|
21467
21468
|
R,
|
|
21468
21469
|
S.text,
|
|
21469
21470
|
m.Token.DEFAULT_CHANNEL,
|
|
@@ -21477,7 +21478,7 @@ function oV() {
|
|
|
21477
21478
|
} else {
|
|
21478
21479
|
S.tokenSource;
|
|
21479
21480
|
let b = this.tokenFactory.create(
|
|
21480
|
-
|
|
21481
|
+
C,
|
|
21481
21482
|
m.Token.INVALID_TYPE,
|
|
21482
21483
|
S.text,
|
|
21483
21484
|
m.Token.DEFAULT_CHANNEL,
|
|
@@ -22075,42 +22076,42 @@ function MI() {
|
|
|
22075
22076
|
// TODO: check for invalid token/rule names, bad syntax
|
|
22076
22077
|
split(m) {
|
|
22077
22078
|
let g = new s.XPathLexer(t.CharStreams.fromString(m));
|
|
22078
|
-
g.recover = (
|
|
22079
|
-
throw
|
|
22079
|
+
g.recover = (_) => {
|
|
22080
|
+
throw _;
|
|
22080
22081
|
}, g.removeErrorListeners(), g.addErrorListener(new o.XPathLexerErrorListener());
|
|
22081
22082
|
let y = new e.CommonTokenStream(g);
|
|
22082
22083
|
try {
|
|
22083
22084
|
y.fill();
|
|
22084
|
-
} catch (
|
|
22085
|
-
if (
|
|
22086
|
-
let b = "Invalid tokens or characters at index " + g.charPositionInLine + " in path '" + m + "' -- " +
|
|
22085
|
+
} catch (_) {
|
|
22086
|
+
if (_ instanceof n.LexerNoViableAltException) {
|
|
22087
|
+
let b = "Invalid tokens or characters at index " + g.charPositionInLine + " in path '" + m + "' -- " + _.message;
|
|
22087
22088
|
throw new RangeError(b);
|
|
22088
22089
|
}
|
|
22089
|
-
throw
|
|
22090
|
+
throw _;
|
|
22090
22091
|
}
|
|
22091
22092
|
let E = y.getTokens(), A = [], S = E.length, v = 0;
|
|
22092
22093
|
e:
|
|
22093
22094
|
for (; v < S; ) {
|
|
22094
|
-
let
|
|
22095
|
-
switch (
|
|
22095
|
+
let _ = E[v], C;
|
|
22096
|
+
switch (_.type) {
|
|
22096
22097
|
case s.XPathLexer.ROOT:
|
|
22097
22098
|
case s.XPathLexer.ANYWHERE:
|
|
22098
|
-
let b =
|
|
22099
|
-
v++,
|
|
22100
|
-
let R =
|
|
22101
|
-
R && (v++,
|
|
22102
|
-
let O = this.getXPathElement(
|
|
22099
|
+
let b = _.type === s.XPathLexer.ANYWHERE;
|
|
22100
|
+
v++, C = E[v];
|
|
22101
|
+
let R = C.type === s.XPathLexer.BANG;
|
|
22102
|
+
R && (v++, C = E[v]);
|
|
22103
|
+
let O = this.getXPathElement(C, b);
|
|
22103
22104
|
O.invert = R, A.push(O), v++;
|
|
22104
22105
|
break;
|
|
22105
22106
|
case s.XPathLexer.TOKEN_REF:
|
|
22106
22107
|
case s.XPathLexer.RULE_REF:
|
|
22107
22108
|
case s.XPathLexer.WILDCARD:
|
|
22108
|
-
A.push(this.getXPathElement(
|
|
22109
|
+
A.push(this.getXPathElement(_, !1)), v++;
|
|
22109
22110
|
break;
|
|
22110
22111
|
case i.Token.EOF:
|
|
22111
22112
|
break e;
|
|
22112
22113
|
default:
|
|
22113
|
-
throw new Error("Unknowth path element " +
|
|
22114
|
+
throw new Error("Unknowth path element " + _);
|
|
22114
22115
|
}
|
|
22115
22116
|
}
|
|
22116
22117
|
return A;
|
|
@@ -22722,22 +22723,22 @@ function jme() {
|
|
|
22722
22723
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
22723
22724
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
22724
22725
|
*/
|
|
22725
|
-
var e = N && N.__decorate || function(
|
|
22726
|
+
var e = N && N.__decorate || function(C, b, R, O) {
|
|
22726
22727
|
var L = arguments.length, M = L < 3 ? b : O === null ? O = Object.getOwnPropertyDescriptor(b, R) : O, q;
|
|
22727
22728
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
22728
|
-
M = Reflect.decorate(
|
|
22729
|
+
M = Reflect.decorate(C, b, R, O);
|
|
22729
22730
|
else
|
|
22730
|
-
for (var W =
|
|
22731
|
-
(q =
|
|
22731
|
+
for (var W = C.length - 1; W >= 0; W--)
|
|
22732
|
+
(q = C[W]) && (M = (L < 3 ? q(M) : L > 3 ? q(b, R, M) : q(b, R)) || M);
|
|
22732
22733
|
return L > 3 && M && Object.defineProperty(b, R, M), M;
|
|
22733
|
-
}, n = N && N.__param || function(
|
|
22734
|
+
}, n = N && N.__param || function(C, b) {
|
|
22734
22735
|
return function(R, O) {
|
|
22735
|
-
b(R, O,
|
|
22736
|
+
b(R, O, C);
|
|
22736
22737
|
};
|
|
22737
22738
|
};
|
|
22738
22739
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.ParseTreePatternMatcher = void 0;
|
|
22739
22740
|
const r = lV(), i = Xb, s = Wp, o = Yy, u = Cme(), a = ye, l = Ky, c = oV(), f = Co(), x = Tme(), h = $me(), p = _o, m = Cc, g = Bme(), y = kme(), E = ou, A = Pme(), S = Gt, v = Mme();
|
|
22740
|
-
class
|
|
22741
|
+
class _ {
|
|
22741
22742
|
/**
|
|
22742
22743
|
* Constructs a {@link ParseTreePatternMatcher} or from a {@link Lexer} and
|
|
22743
22744
|
* {@link Parser} object. The lexer input stream is altered for tokenizing
|
|
@@ -22795,10 +22796,10 @@ function jme() {
|
|
|
22795
22796
|
try {
|
|
22796
22797
|
W.errorHandler = new r.BailErrorStrategy(), B = W.parse(R);
|
|
22797
22798
|
} catch (G) {
|
|
22798
|
-
throw G instanceof l.ParseCancellationException ? G.getCause() : G instanceof p.RecognitionException ? G : G instanceof Error ? new
|
|
22799
|
+
throw G instanceof l.ParseCancellationException ? G.getCause() : G instanceof p.RecognitionException ? G : G instanceof Error ? new _.CannotInvokeStartRule(G) : G;
|
|
22799
22800
|
}
|
|
22800
22801
|
if (M.LA(1) !== S.Token.EOF)
|
|
22801
|
-
throw new
|
|
22802
|
+
throw new _.StartRuleDoesNotConsumeFullPattern();
|
|
22802
22803
|
return new h.ParseTreePattern(this, b, R, B);
|
|
22803
22804
|
}
|
|
22804
22805
|
/**
|
|
@@ -22952,28 +22953,28 @@ function jme() {
|
|
|
22952
22953
|
e([
|
|
22953
22954
|
a.NotNull,
|
|
22954
22955
|
n(1, a.NotNull)
|
|
22955
|
-
],
|
|
22956
|
+
], _.prototype, "match", null), e([
|
|
22956
22957
|
a.NotNull
|
|
22957
|
-
],
|
|
22958
|
+
], _.prototype, "lexer", null), e([
|
|
22958
22959
|
a.NotNull
|
|
22959
|
-
],
|
|
22960
|
+
], _.prototype, "parser", null), e([
|
|
22960
22961
|
n(0, a.NotNull),
|
|
22961
22962
|
n(1, a.NotNull),
|
|
22962
22963
|
n(2, a.NotNull)
|
|
22963
|
-
],
|
|
22964
|
+
], _.prototype, "matchImpl", null), t.ParseTreePatternMatcher = _, function(C) {
|
|
22964
22965
|
class b extends Error {
|
|
22965
22966
|
constructor(L) {
|
|
22966
22967
|
super(`CannotInvokeStartRule: ${L}`), this.error = L;
|
|
22967
22968
|
}
|
|
22968
22969
|
}
|
|
22969
|
-
|
|
22970
|
+
C.CannotInvokeStartRule = b;
|
|
22970
22971
|
class R extends Error {
|
|
22971
22972
|
constructor() {
|
|
22972
22973
|
super("StartRuleDoesNotConsumeFullPattern");
|
|
22973
22974
|
}
|
|
22974
22975
|
}
|
|
22975
|
-
|
|
22976
|
-
}(
|
|
22976
|
+
C.StartRuleDoesNotConsumeFullPattern = R;
|
|
22977
|
+
}(_ = t.ParseTreePatternMatcher || (t.ParseTreePatternMatcher = {}));
|
|
22977
22978
|
}(iF)), iF;
|
|
22978
22979
|
}
|
|
22979
22980
|
var Qg = {}, Gg = {}, Wg = {}, i9;
|
|
@@ -23318,8 +23319,8 @@ function x9() {
|
|
|
23318
23319
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
23319
23320
|
S = Reflect.decorate(m, g, y, E);
|
|
23320
23321
|
else
|
|
23321
|
-
for (var
|
|
23322
|
-
(v = m[
|
|
23322
|
+
for (var _ = m.length - 1; _ >= 0; _--)
|
|
23323
|
+
(v = m[_]) && (S = (A < 3 ? v(S) : A > 3 ? v(g, y, S) : v(g, y)) || S);
|
|
23323
23324
|
return A > 3 && S && Object.defineProperty(g, y, S), S;
|
|
23324
23325
|
}, e = N && N.__param || function(m, g) {
|
|
23325
23326
|
return function(y, E) {
|
|
@@ -23339,8 +23340,8 @@ function x9() {
|
|
|
23339
23340
|
return super.adaptivePredict(g, y, E, A);
|
|
23340
23341
|
try {
|
|
23341
23342
|
this._input = g, this._startIndex = g.index, this._sllStopIndex = this._startIndex - 1, this._llStopIndex = -1, this.currentDecision = y, this.currentState = void 0, this.conflictingAltResolvedBySLL = r.ATN.INVALID_ALT_NUMBER;
|
|
23342
|
-
let S = process.hrtime(), v = super.adaptivePredict(g, y, E),
|
|
23343
|
-
|
|
23343
|
+
let S = process.hrtime(), v = super.adaptivePredict(g, y, E), _ = process.hrtime(), C = (_[0] - S[0]) * 1e9;
|
|
23344
|
+
C === 0 ? C = _[1] - S[1] : C += 1e9 - S[1] + _[1], this.decisions[y].timeInPrediction += C, this.decisions[y].invocations++;
|
|
23344
23345
|
let b = this._sllStopIndex - this._startIndex + 1;
|
|
23345
23346
|
if (this.decisions[y].SLL_TotalLook += b, this.decisions[y].SLL_MinLook = this.decisions[y].SLL_MinLook === 0 ? b : Math.min(this.decisions[y].SLL_MinLook, b), b > this.decisions[y].SLL_MaxLook && (this.decisions[y].SLL_MaxLook = b, this.decisions[y].SLL_MaxLookEvent = new l.LookaheadEventInfo(y, void 0, v, g, this._startIndex, this._sllStopIndex, !1)), this._llStopIndex >= 0) {
|
|
23346
23347
|
let R = this._llStopIndex - this._startIndex + 1;
|
|
@@ -23377,8 +23378,8 @@ function x9() {
|
|
|
23377
23378
|
return E;
|
|
23378
23379
|
}
|
|
23379
23380
|
computeTargetState(g, y, E, A, S, v) {
|
|
23380
|
-
let
|
|
23381
|
-
return S ? this.decisions[this.currentDecision].LL_ATNTransitions++ : this.decisions[this.currentDecision].SLL_ATNTransitions++,
|
|
23381
|
+
let _ = super.computeTargetState(g, y, E, A, S, v);
|
|
23382
|
+
return S ? this.decisions[this.currentDecision].LL_ATNTransitions++ : this.decisions[this.currentDecision].SLL_ATNTransitions++, _;
|
|
23382
23383
|
}
|
|
23383
23384
|
evalSemanticContextImpl(g, y, E) {
|
|
23384
23385
|
if (this.currentState === void 0 || this._input === void 0)
|
|
@@ -23398,11 +23399,11 @@ function x9() {
|
|
|
23398
23399
|
reportAttemptingFullContext(g, y, E, A, S) {
|
|
23399
23400
|
y != null ? this.conflictingAltResolvedBySLL = y.nextSetBit(0) : this.conflictingAltResolvedBySLL = E.s0.configs.getRepresentedAlternatives().nextSetBit(0), this.decisions[this.currentDecision].LL_Fallback++, super.reportAttemptingFullContext(g, y, E, A, S);
|
|
23400
23401
|
}
|
|
23401
|
-
reportAmbiguity(g, y, E, A, S, v,
|
|
23402
|
+
reportAmbiguity(g, y, E, A, S, v, _) {
|
|
23402
23403
|
if (this.currentState === void 0 || this._input === void 0)
|
|
23403
23404
|
throw new Error("Invalid state");
|
|
23404
|
-
let
|
|
23405
|
-
v != null ?
|
|
23405
|
+
let C;
|
|
23406
|
+
v != null ? C = v.nextSetBit(0) : C = _.getRepresentedAlternatives().nextSetBit(0), this.conflictingAltResolvedBySLL !== r.ATN.INVALID_ALT_NUMBER && C !== this.conflictingAltResolvedBySLL && this.decisions[this.currentDecision].contextSensitivities.push(new s.ContextSensitivityInfo(this.currentDecision, this.currentState, this._input, E, A)), this.decisions[this.currentDecision].ambiguities.push(new n.AmbiguityInfo(this.currentDecision, this.currentState, v, this._input, E, A)), super.reportAmbiguity(g, y, E, A, S, v, _);
|
|
23406
23407
|
}
|
|
23407
23408
|
// ---------------------------------------------------------------------
|
|
23408
23409
|
getDecisionInfo() {
|
|
@@ -23447,20 +23448,20 @@ function Yp() {
|
|
|
23447
23448
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
23448
23449
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
23449
23450
|
*/
|
|
23450
|
-
var t = N && N.__decorate || function(A, S, v,
|
|
23451
|
-
var
|
|
23451
|
+
var t = N && N.__decorate || function(A, S, v, _) {
|
|
23452
|
+
var C = arguments.length, b = C < 3 ? S : _ === null ? _ = Object.getOwnPropertyDescriptor(S, v) : _, R;
|
|
23452
23453
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
23453
|
-
b = Reflect.decorate(A, S, v,
|
|
23454
|
+
b = Reflect.decorate(A, S, v, _);
|
|
23454
23455
|
else
|
|
23455
23456
|
for (var O = A.length - 1; O >= 0; O--)
|
|
23456
|
-
(R = A[O]) && (b = (
|
|
23457
|
-
return
|
|
23457
|
+
(R = A[O]) && (b = (C < 3 ? R(b) : C > 3 ? R(S, v, b) : R(S, v)) || b);
|
|
23458
|
+
return C > 3 && b && Object.defineProperty(S, v, b), b;
|
|
23458
23459
|
}, e = N && N.__param || function(A, S) {
|
|
23459
|
-
return function(v,
|
|
23460
|
-
S(v,
|
|
23460
|
+
return function(v, _) {
|
|
23461
|
+
S(v, _, A);
|
|
23461
23462
|
};
|
|
23462
|
-
}, n = N && N.__awaiter || function(A, S, v,
|
|
23463
|
-
function
|
|
23463
|
+
}, n = N && N.__awaiter || function(A, S, v, _) {
|
|
23464
|
+
function C(b) {
|
|
23464
23465
|
return b instanceof v ? b : new v(function(R) {
|
|
23465
23466
|
R(b);
|
|
23466
23467
|
});
|
|
@@ -23468,22 +23469,22 @@ function Yp() {
|
|
|
23468
23469
|
return new (v || (v = Promise))(function(b, R) {
|
|
23469
23470
|
function O(q) {
|
|
23470
23471
|
try {
|
|
23471
|
-
M(
|
|
23472
|
+
M(_.next(q));
|
|
23472
23473
|
} catch (W) {
|
|
23473
23474
|
R(W);
|
|
23474
23475
|
}
|
|
23475
23476
|
}
|
|
23476
23477
|
function L(q) {
|
|
23477
23478
|
try {
|
|
23478
|
-
M(
|
|
23479
|
+
M(_.throw(q));
|
|
23479
23480
|
} catch (W) {
|
|
23480
23481
|
R(W);
|
|
23481
23482
|
}
|
|
23482
23483
|
}
|
|
23483
23484
|
function M(q) {
|
|
23484
|
-
q.done ? b(q.value) :
|
|
23485
|
+
q.done ? b(q.value) : C(q.value).then(O, L);
|
|
23485
23486
|
}
|
|
23486
|
-
M((
|
|
23487
|
+
M((_ = _.apply(A, S || [])).next());
|
|
23487
23488
|
});
|
|
23488
23489
|
};
|
|
23489
23490
|
Object.defineProperty(mg, "__esModule", { value: !0 }), mg.Parser = void 0;
|
|
@@ -23501,8 +23502,8 @@ function Yp() {
|
|
|
23501
23502
|
visitErrorNode(S) {
|
|
23502
23503
|
}
|
|
23503
23504
|
visitTerminal(S) {
|
|
23504
|
-
let v = S.parent.ruleContext,
|
|
23505
|
-
console.log("consume " +
|
|
23505
|
+
let v = S.parent.ruleContext, _ = S.symbol;
|
|
23506
|
+
console.log("consume " + _ + " rule " + this.ruleNames[v.ruleIndex]);
|
|
23506
23507
|
}
|
|
23507
23508
|
}
|
|
23508
23509
|
t([
|
|
@@ -23642,7 +23643,7 @@ function Yp() {
|
|
|
23642
23643
|
* @param listener the listener to remove
|
|
23643
23644
|
*/
|
|
23644
23645
|
removeParseListener(S) {
|
|
23645
|
-
let v = this._parseListeners.findIndex((
|
|
23646
|
+
let v = this._parseListeners.findIndex((_) => _ === S);
|
|
23646
23647
|
v !== -1 && this._parseListeners.splice(v, 1);
|
|
23647
23648
|
}
|
|
23648
23649
|
/**
|
|
@@ -23698,23 +23699,23 @@ function Yp() {
|
|
|
23698
23699
|
throw new Error("The current parser does not support an ATN with bypass alternatives.");
|
|
23699
23700
|
let v = JA.bypassAltsAtnCache.get(S);
|
|
23700
23701
|
if (v == null) {
|
|
23701
|
-
let
|
|
23702
|
-
|
|
23702
|
+
let _ = new i.ATNDeserializationOptions();
|
|
23703
|
+
_.isGenerateRuleBypassTransitions = !0, v = new s.ATNDeserializer(_).deserialize(r.toCharArray(S)), JA.bypassAltsAtnCache.set(S, v);
|
|
23703
23704
|
}
|
|
23704
23705
|
return v;
|
|
23705
23706
|
}
|
|
23706
|
-
compileParseTreePattern(S, v,
|
|
23707
|
+
compileParseTreePattern(S, v, _) {
|
|
23707
23708
|
return n(this, void 0, void 0, function* () {
|
|
23708
|
-
if (!
|
|
23709
|
+
if (!_) {
|
|
23709
23710
|
if (this.inputStream) {
|
|
23710
23711
|
let O = this.inputStream.tokenSource;
|
|
23711
|
-
O instanceof l.Lexer && (
|
|
23712
|
+
O instanceof l.Lexer && (_ = O);
|
|
23712
23713
|
}
|
|
23713
|
-
if (!
|
|
23714
|
+
if (!_)
|
|
23714
23715
|
throw new Error("Parser can't discover a lexer to use");
|
|
23715
23716
|
}
|
|
23716
|
-
let
|
|
23717
|
-
return new b.ParseTreePatternMatcher(
|
|
23717
|
+
let C = _, b = yield Promise.resolve().then(() => jme());
|
|
23718
|
+
return new b.ParseTreePatternMatcher(C, this).compile(S, v);
|
|
23718
23719
|
});
|
|
23719
23720
|
}
|
|
23720
23721
|
get errorHandler() {
|
|
@@ -23736,12 +23737,12 @@ function Yp() {
|
|
|
23736
23737
|
get currentToken() {
|
|
23737
23738
|
return this._input.LT(1);
|
|
23738
23739
|
}
|
|
23739
|
-
notifyErrorListeners(S, v,
|
|
23740
|
+
notifyErrorListeners(S, v, _) {
|
|
23740
23741
|
v === void 0 ? v = this.currentToken : v === null && (v = void 0), this._syntaxErrors++;
|
|
23741
|
-
let
|
|
23742
|
-
v != null && (
|
|
23742
|
+
let C = -1, b = -1;
|
|
23743
|
+
v != null && (C = v.line, b = v.charPositionInLine);
|
|
23743
23744
|
let R = this.getErrorListenerDispatch();
|
|
23744
|
-
R.syntaxError && R.syntaxError(this, v,
|
|
23745
|
+
R.syntaxError && R.syntaxError(this, v, C, b, S, _);
|
|
23745
23746
|
}
|
|
23746
23747
|
/**
|
|
23747
23748
|
* Consume and return the [current symbol](`currentToken`).
|
|
@@ -23770,15 +23771,15 @@ function Yp() {
|
|
|
23770
23771
|
let v = this._parseListeners.length !== 0;
|
|
23771
23772
|
if (this._buildParseTrees || v)
|
|
23772
23773
|
if (this._errHandler.inErrorRecoveryMode(this)) {
|
|
23773
|
-
let
|
|
23774
|
+
let _ = this._ctx.addErrorNode(this.createErrorNode(this._ctx, S));
|
|
23774
23775
|
if (v)
|
|
23775
|
-
for (let
|
|
23776
|
-
|
|
23776
|
+
for (let C of this._parseListeners)
|
|
23777
|
+
C.visitErrorNode && C.visitErrorNode(_);
|
|
23777
23778
|
} else {
|
|
23778
|
-
let
|
|
23779
|
-
if (this._ctx.addChild(
|
|
23780
|
-
for (let
|
|
23781
|
-
|
|
23779
|
+
let _ = this.createTerminalNode(this._ctx, S);
|
|
23780
|
+
if (this._ctx.addChild(_), v)
|
|
23781
|
+
for (let C of this._parseListeners)
|
|
23782
|
+
C.visitTerminal && C.visitTerminal(_);
|
|
23782
23783
|
}
|
|
23783
23784
|
return S;
|
|
23784
23785
|
}
|
|
@@ -23808,13 +23809,13 @@ function Yp() {
|
|
|
23808
23809
|
* Always called by generated parsers upon entry to a rule. Access field
|
|
23809
23810
|
* {@link #_ctx} get the current context.
|
|
23810
23811
|
*/
|
|
23811
|
-
enterRule(S, v,
|
|
23812
|
+
enterRule(S, v, _) {
|
|
23812
23813
|
this.state = v, this._ctx = S, this._ctx._start = this._input.LT(1), this._buildParseTrees && this.addContextToParseTree(), this.triggerEnterRuleEvent();
|
|
23813
23814
|
}
|
|
23814
|
-
enterLeftFactoredRule(S, v,
|
|
23815
|
+
enterLeftFactoredRule(S, v, _) {
|
|
23815
23816
|
if (this.state = v, this._buildParseTrees) {
|
|
23816
|
-
let
|
|
23817
|
-
this._ctx.removeLastChild(),
|
|
23817
|
+
let C = this._ctx.getChild(this._ctx.childCount - 1);
|
|
23818
|
+
this._ctx.removeLastChild(), C._parent = S, S.addChild(C);
|
|
23818
23819
|
}
|
|
23819
23820
|
this._ctx = S, this._ctx._start = this._input.LT(1), this._buildParseTrees && this.addContextToParseTree(), this.triggerEnterRuleEvent();
|
|
23820
23821
|
}
|
|
@@ -23823,8 +23824,8 @@ function Yp() {
|
|
|
23823
23824
|
}
|
|
23824
23825
|
enterOuterAlt(S, v) {
|
|
23825
23826
|
if (S.altNumber = v, this._buildParseTrees && this._ctx !== S) {
|
|
23826
|
-
let
|
|
23827
|
-
|
|
23827
|
+
let _ = this._ctx._parent;
|
|
23828
|
+
_ != null && (_.removeLastChild(), _.addChild(S));
|
|
23828
23829
|
}
|
|
23829
23830
|
this._ctx = S;
|
|
23830
23831
|
}
|
|
@@ -23837,15 +23838,15 @@ function Yp() {
|
|
|
23837
23838
|
get precedence() {
|
|
23838
23839
|
return this._precedenceStack.isEmpty ? -1 : this._precedenceStack.peek();
|
|
23839
23840
|
}
|
|
23840
|
-
enterRecursionRule(S, v,
|
|
23841
|
-
this.state = v, this._precedenceStack.push(
|
|
23841
|
+
enterRecursionRule(S, v, _, C) {
|
|
23842
|
+
this.state = v, this._precedenceStack.push(C), this._ctx = S, this._ctx._start = this._input.LT(1), this.triggerEnterRuleEvent();
|
|
23842
23843
|
}
|
|
23843
23844
|
/** Like {@link #enterRule} but for recursive rules.
|
|
23844
23845
|
* Make the current context the child of the incoming localctx.
|
|
23845
23846
|
*/
|
|
23846
|
-
pushNewRecursionContext(S, v,
|
|
23847
|
-
let
|
|
23848
|
-
|
|
23847
|
+
pushNewRecursionContext(S, v, _) {
|
|
23848
|
+
let C = this._ctx;
|
|
23849
|
+
C._parent = S, C.invokingState = v, C._stop = this._input.tryLT(-1), this._ctx = S, this._ctx._start = C._start, this._buildParseTrees && this._ctx.addChild(C), this.triggerEnterRuleEvent();
|
|
23849
23850
|
}
|
|
23850
23851
|
unrollRecursionContexts(S) {
|
|
23851
23852
|
this._precedenceStack.pop(), this._ctx._stop = this._input.tryLT(-1);
|
|
@@ -23893,16 +23894,16 @@ function Yp() {
|
|
|
23893
23894
|
* the ATN, otherwise `false`.
|
|
23894
23895
|
*/
|
|
23895
23896
|
isExpectedToken(S) {
|
|
23896
|
-
let v = this.interpreter.atn,
|
|
23897
|
+
let v = this.interpreter.atn, _ = this._ctx, C = v.states[this.state], b = v.nextTokens(C);
|
|
23897
23898
|
if (b.contains(S))
|
|
23898
23899
|
return !0;
|
|
23899
23900
|
if (!b.contains(g.Token.EPSILON))
|
|
23900
23901
|
return !1;
|
|
23901
|
-
for (;
|
|
23902
|
-
let O = v.states[
|
|
23902
|
+
for (; _ != null && _.invokingState >= 0 && b.contains(g.Token.EPSILON); ) {
|
|
23903
|
+
let O = v.states[_.invokingState].transition(0);
|
|
23903
23904
|
if (b = v.nextTokens(O.followState), b.contains(S))
|
|
23904
23905
|
return !0;
|
|
23905
|
-
|
|
23906
|
+
_ = _._parent;
|
|
23906
23907
|
}
|
|
23907
23908
|
return !!(b.contains(g.Token.EPSILON) && S === g.Token.EOF);
|
|
23908
23909
|
}
|
|
@@ -23939,12 +23940,12 @@ function Yp() {
|
|
|
23939
23940
|
* This is very useful for error messages.
|
|
23940
23941
|
*/
|
|
23941
23942
|
getRuleInvocationStack(S = this._ctx) {
|
|
23942
|
-
let v = S,
|
|
23943
|
+
let v = S, _ = this.ruleNames, C = [];
|
|
23943
23944
|
for (; v != null; ) {
|
|
23944
23945
|
let b = v.ruleIndex;
|
|
23945
|
-
b < 0 ?
|
|
23946
|
+
b < 0 ? C.push("n/a") : C.push(_[b]), v = v._parent;
|
|
23946
23947
|
}
|
|
23947
|
-
return
|
|
23948
|
+
return C;
|
|
23948
23949
|
}
|
|
23949
23950
|
/** For debugging and other purposes. */
|
|
23950
23951
|
getDFAStrings() {
|
|
@@ -23974,8 +23975,8 @@ function Yp() {
|
|
|
23974
23975
|
*/
|
|
23975
23976
|
setProfile(S) {
|
|
23976
23977
|
return n(this, void 0, void 0, function* () {
|
|
23977
|
-
let v = yield Promise.resolve().then(() => x9()),
|
|
23978
|
-
S ?
|
|
23978
|
+
let v = yield Promise.resolve().then(() => x9()), _ = this.interpreter;
|
|
23979
|
+
S ? _ instanceof v.ProfilingATNSimulator || (this.interpreter = new v.ProfilingATNSimulator(this)) : _ instanceof v.ProfilingATNSimulator && (this.interpreter = new x.ParserATNSimulator(this.atn, this)), this.interpreter.setPredictionMode(_.getPredictionMode());
|
|
23979
23980
|
});
|
|
23980
23981
|
}
|
|
23981
23982
|
/** During a parse is sometimes useful to listen in on the rule entry and exit
|
|
@@ -41234,19 +41235,19 @@ class Ive extends Lve.ExpressionDef {
|
|
|
41234
41235
|
structPath: f
|
|
41235
41236
|
};
|
|
41236
41237
|
let v = [S];
|
|
41237
|
-
const
|
|
41238
|
-
if (
|
|
41239
|
-
this.log(`Function ${this.name} is not defined in dialect ${
|
|
41238
|
+
const _ = (u = e.dialectObj()) === null || u === void 0 ? void 0 : u.name, C = _ ? p.dialect[_] : void 0;
|
|
41239
|
+
if (C === void 0)
|
|
41240
|
+
this.log(`Function ${this.name} is not defined in dialect ${_}`);
|
|
41240
41241
|
else {
|
|
41241
41242
|
if (n != null && n.orderBys && n.orderBys.length > 0) {
|
|
41242
41243
|
const O = (0, Js.expressionIsAnalytic)(p.returnType.expressionType);
|
|
41243
|
-
if (O || this.inExperiment("aggregate_order_by", !0) || n.orderBys[0].log("Enable experiment `aggregate_order_by` to use `order_by` with an aggregate function"),
|
|
41244
|
-
const L =
|
|
41244
|
+
if (O || this.inExperiment("aggregate_order_by", !0) || n.orderBys[0].log("Enable experiment `aggregate_order_by` to use `order_by` with an aggregate function"), C.supportsOrderBy || O) {
|
|
41245
|
+
const L = C.supportsOrderBy !== "only_default", M = n.orderBys.flatMap((q) => O ? q.getAnalyticOrderBy(e) : q.getAggregateOrderBy(e, L));
|
|
41245
41246
|
S.orderBy = M;
|
|
41246
41247
|
} else
|
|
41247
41248
|
n.orderBys[0].log(`Function \`${this.name}\` does not support \`order_by\``);
|
|
41248
41249
|
}
|
|
41249
|
-
(n == null ? void 0 : n.limit) !== void 0 && (
|
|
41250
|
+
(n == null ? void 0 : n.limit) !== void 0 && (C.supportsLimit ? S.limit = n.limit.limit : this.log(`Function ${this.name} does not support limit`));
|
|
41250
41251
|
}
|
|
41251
41252
|
if (n != null && n.partitionBys && n.partitionBys.length > 0) {
|
|
41252
41253
|
const O = [];
|
|
@@ -45772,13 +45773,13 @@ class at {
|
|
|
45772
45773
|
const E = h ? Ube(o) : u ? qbe(o) : $X(o), A = E || BX(o);
|
|
45773
45774
|
if (A)
|
|
45774
45775
|
return at.invalid(A);
|
|
45775
|
-
const S = h ? mj(o) : u ? yj(o) : o, [v,
|
|
45776
|
+
const S = h ? mj(o) : u ? yj(o) : o, [v, _] = nS(S, s, r), C = new at({
|
|
45776
45777
|
ts: v,
|
|
45777
45778
|
zone: r,
|
|
45778
|
-
o:
|
|
45779
|
+
o: _,
|
|
45779
45780
|
loc: x
|
|
45780
45781
|
});
|
|
45781
|
-
return o.weekday && c && e.weekday !==
|
|
45782
|
+
return o.weekday && c && e.weekday !== C.weekday ? at.invalid("mismatched weekday", `you can't specify both a weekday of ${o.weekday} and a date of ${C.toISO()}`) : C;
|
|
45782
45783
|
}
|
|
45783
45784
|
/**
|
|
45784
45785
|
* Create a DateTime from an ISO 8601 string
|
|
@@ -53586,22 +53587,22 @@ function WDe(t) {
|
|
|
53586
53587
|
return MF;
|
|
53587
53588
|
if (A)
|
|
53588
53589
|
return A = !1, Jj;
|
|
53589
|
-
var
|
|
53590
|
-
if (f.charCodeAt(
|
|
53590
|
+
var _, C = m, b;
|
|
53591
|
+
if (f.charCodeAt(C) === jF) {
|
|
53591
53592
|
for (; m++ < p && f.charCodeAt(m) !== jF || f.charCodeAt(++m) === jF; )
|
|
53592
53593
|
;
|
|
53593
|
-
return (
|
|
53594
|
+
return (_ = m) >= p ? E = !0 : (b = f.charCodeAt(m++)) === sm ? A = !0 : b === UF && (A = !0, f.charCodeAt(m) === sm && ++m), f.slice(C + 1, _ - 1).replace(/""/g, '"');
|
|
53594
53595
|
}
|
|
53595
53596
|
for (; m < p; ) {
|
|
53596
|
-
if ((b = f.charCodeAt(
|
|
53597
|
+
if ((b = f.charCodeAt(_ = m++)) === sm)
|
|
53597
53598
|
A = !0;
|
|
53598
53599
|
else if (b === UF)
|
|
53599
53600
|
A = !0, f.charCodeAt(m) === sm && ++m;
|
|
53600
53601
|
else if (b !== n)
|
|
53601
53602
|
continue;
|
|
53602
|
-
return f.slice(
|
|
53603
|
+
return f.slice(C, _);
|
|
53603
53604
|
}
|
|
53604
|
-
return E = !0, f.slice(
|
|
53605
|
+
return E = !0, f.slice(C, p);
|
|
53605
53606
|
}
|
|
53606
53607
|
for (; (y = S()) !== MF; ) {
|
|
53607
53608
|
for (var v = []; y !== Jj && y !== MF; )
|
|
@@ -54240,10 +54241,10 @@ function iZ(t) {
|
|
|
54240
54241
|
f = _x(f);
|
|
54241
54242
|
var x = f.fill, h = f.align, p = f.sign, m = f.symbol, g = f.zero, y = f.width, E = f.comma, A = f.precision, S = f.trim, v = f.type;
|
|
54242
54243
|
v === "n" ? (E = !0, v = "g") : rU[v] || (A === void 0 && (A = 12), S = !0, v = "g"), (g || x === "0" && h === "=") && (g = !0, x = "0", h = "=");
|
|
54243
|
-
var
|
|
54244
|
+
var _ = m === "$" ? n : m === "#" && /[boxX]/.test(v) ? "0" + v.toLowerCase() : "", C = m === "$" ? r : /[%p]/.test(v) ? o : "", b = rU[v], R = /[defgprs%]/.test(v);
|
|
54244
54245
|
A = A === void 0 ? 6 : /[gprs]/.test(v) ? Math.max(1, Math.min(21, A)) : Math.max(0, Math.min(20, A));
|
|
54245
54246
|
function O(L) {
|
|
54246
|
-
var M =
|
|
54247
|
+
var M = _, q = C, W, B, G;
|
|
54247
54248
|
if (v === "c")
|
|
54248
54249
|
q = b(L) + q, L = "";
|
|
54249
54250
|
else {
|
|
@@ -54817,8 +54818,8 @@ function EZ(t) {
|
|
|
54817
54818
|
Z: dwe,
|
|
54818
54819
|
"%": Swe
|
|
54819
54820
|
};
|
|
54820
|
-
A.x =
|
|
54821
|
-
function
|
|
54821
|
+
A.x = _(n, A), A.X = _(r, A), A.c = _(e, A), S.x = _(n, S), S.X = _(r, S), S.c = _(e, S);
|
|
54822
|
+
function _(D, $) {
|
|
54822
54823
|
return function(j) {
|
|
54823
54824
|
var Q = [], I = -1, H = 0, P = D.length, J, ce, ue;
|
|
54824
54825
|
for (j instanceof Date || (j = /* @__PURE__ */ new Date(+j)); ++I < P; )
|
|
@@ -54826,7 +54827,7 @@ function EZ(t) {
|
|
|
54826
54827
|
return Q.push(D.slice(H, I)), Q.join("");
|
|
54827
54828
|
};
|
|
54828
54829
|
}
|
|
54829
|
-
function
|
|
54830
|
+
function C(D, $) {
|
|
54830
54831
|
return function(j) {
|
|
54831
54832
|
var Q = am(1900, void 0, 1), I = b(Q, D, j += "", 0), H, P;
|
|
54832
54833
|
if (I != j.length)
|
|
@@ -54923,25 +54924,25 @@ function EZ(t) {
|
|
|
54923
54924
|
}
|
|
54924
54925
|
return {
|
|
54925
54926
|
format: function(D) {
|
|
54926
|
-
var $ =
|
|
54927
|
+
var $ = _(D += "", A);
|
|
54927
54928
|
return $.toString = function() {
|
|
54928
54929
|
return D;
|
|
54929
54930
|
}, $;
|
|
54930
54931
|
},
|
|
54931
54932
|
parse: function(D) {
|
|
54932
|
-
var $ =
|
|
54933
|
+
var $ = C(D += "", !1);
|
|
54933
54934
|
return $.toString = function() {
|
|
54934
54935
|
return D;
|
|
54935
54936
|
}, $;
|
|
54936
54937
|
},
|
|
54937
54938
|
utcFormat: function(D) {
|
|
54938
|
-
var $ =
|
|
54939
|
+
var $ = _(D += "", S);
|
|
54939
54940
|
return $.toString = function() {
|
|
54940
54941
|
return D;
|
|
54941
54942
|
}, $;
|
|
54942
54943
|
},
|
|
54943
54944
|
utcParse: function(D) {
|
|
54944
|
-
var $ =
|
|
54945
|
+
var $ = C(D += "", !0);
|
|
54945
54946
|
return $.toString = function() {
|
|
54946
54947
|
return D;
|
|
54947
54948
|
}, $;
|
|
@@ -56931,11 +56932,11 @@ function iee(t, e, n) {
|
|
|
56931
56932
|
let a = 0, l = 0, c = 0, f = 0, x = 0, h, p, m, g;
|
|
56932
56933
|
for (h = 0; h < u; )
|
|
56933
56934
|
p = r[h], m = i[h++], g = p * p, a += (g - a) / h, l += (g * p - l) / h, c += (g * g - c) / h, f += (p * m - f) / h, x += (g * m - x) / h;
|
|
56934
|
-
const y = c - a * a, E = a * y - l * l, A = (x * a - f * l) / E, S = (f * y - x * l) / E, v = -A * a,
|
|
56935
|
+
const y = c - a * a, E = a * y - l * l, A = (x * a - f * l) / E, S = (f * y - x * l) / E, v = -A * a, _ = (C) => (C = C - s, A * C * C + S * C + v + o);
|
|
56935
56936
|
return {
|
|
56936
56937
|
coef: [v - S * s + A * s * s + o, S - 2 * A * s, A],
|
|
56937
|
-
predict:
|
|
56938
|
-
rSquared: b2(t, e, n, o,
|
|
56938
|
+
predict: _,
|
|
56939
|
+
rSquared: b2(t, e, n, o, _)
|
|
56939
56940
|
};
|
|
56940
56941
|
}
|
|
56941
56942
|
function O4e(t, e, n, r) {
|
|
@@ -57005,13 +57006,13 @@ function F4e(t, e, n, r) {
|
|
|
57005
57006
|
const p = [0, l - 1];
|
|
57006
57007
|
for (let g = 0; g < a; ++g) {
|
|
57007
57008
|
const y = i[g], E = p[0], A = p[1], S = y - i[E] > i[A] - y ? E : A;
|
|
57008
|
-
let v = 0,
|
|
57009
|
+
let v = 0, _ = 0, C = 0, b = 0, R = 0;
|
|
57009
57010
|
const O = 1 / Math.abs(i[S] - y || 1);
|
|
57010
57011
|
for (let q = E; q <= A; ++q) {
|
|
57011
57012
|
const W = i[q], B = s[q], G = w4e(Math.abs(y - W) * O) * x[q], te = W * G;
|
|
57012
|
-
v += G,
|
|
57013
|
+
v += G, _ += te, C += B * G, b += B * te, R += W * te;
|
|
57013
57014
|
}
|
|
57014
|
-
const [L, M] = VE(
|
|
57015
|
+
const [L, M] = VE(_ / v, C / v, b / v, R / v);
|
|
57015
57016
|
c[g] = L + M * y, f[g] = Math.abs(s[g] - c[g]), L4e(i, g + 1, p);
|
|
57016
57017
|
}
|
|
57017
57018
|
if (h === DU)
|
|
@@ -59383,7 +59384,7 @@ function L5e(t, e, n, r, i, s, o, u) {
|
|
|
59383
59384
|
return x = (c * (e - s) - f * (t - i)) / x, [t + x * a, e + x * l];
|
|
59384
59385
|
}
|
|
59385
59386
|
function dA(t, e, n, r, i, s, o) {
|
|
59386
|
-
var u = t - n, a = e - r, l = (o ? s : -s) / Uf(u * u + a * a), c = l * a, f = -l * u, x = t + c, h = e + f, p = n + c, m = r + f, g = (x + p) / 2, y = (h + m) / 2, E = p - x, A = m - h, S = E * E + A * A, v = i - s,
|
|
59387
|
+
var u = t - n, a = e - r, l = (o ? s : -s) / Uf(u * u + a * a), c = l * a, f = -l * u, x = t + c, h = e + f, p = n + c, m = r + f, g = (x + p) / 2, y = (h + m) / 2, E = p - x, A = m - h, S = E * E + A * A, v = i - s, _ = x * m - p * h, C = (A < 0 ? -1 : 1) * Uf(C5e(0, v * v * S - _ * _)), b = (_ * A - E * C) / S, R = (-_ * E - A * C) / S, O = (_ * A + E * C) / S, L = (-_ * E + A * C) / S, M = b - g, q = R - y, W = O - g, B = L - y;
|
|
59387
59388
|
return M * M + q * q > W * W + B * B && (b = O, R = L), {
|
|
59388
59389
|
cx: b,
|
|
59389
59390
|
cy: R,
|
|
@@ -59402,10 +59403,10 @@ function I5e() {
|
|
|
59402
59403
|
else if (g > wee - Ur)
|
|
59403
59404
|
u.moveTo(h * _f(p), h * Cu(p)), u.arc(0, 0, h, p, m, !y), x > Ur && (u.moveTo(x * _f(m), x * Cu(m)), u.arc(0, 0, x, m, p, y));
|
|
59404
59405
|
else {
|
|
59405
|
-
var E = p, A = m, S = p, v = m,
|
|
59406
|
+
var E = p, A = m, S = p, v = m, _ = g, C = g, b = o.apply(this, arguments) / 2, R = b > Ur && (r ? +r.apply(this, arguments) : Uf(x * x + h * h)), O = JF(IU(h - x) / 2, +n.apply(this, arguments)), L = O, M = O, q, W;
|
|
59406
59407
|
if (R > Ur) {
|
|
59407
59408
|
var B = $U(R / x * Cu(b)), G = $U(R / h * Cu(b));
|
|
59408
|
-
(
|
|
59409
|
+
(_ -= B * 2) > Ur ? (B *= y ? 1 : -1, S += B, v -= B) : (_ = 0, S = v = (p + m) / 2), (C -= G * 2) > Ur ? (G *= y ? 1 : -1, E += G, A -= G) : (C = 0, E = A = (p + m) / 2);
|
|
59409
59410
|
}
|
|
59410
59411
|
var te = h * _f(E), X = h * Cu(E), de = x * _f(v), be = x * Cu(v);
|
|
59411
59412
|
if (O > Ur) {
|
|
@@ -59417,7 +59418,7 @@ function I5e() {
|
|
|
59417
59418
|
} else
|
|
59418
59419
|
L = M = 0;
|
|
59419
59420
|
}
|
|
59420
|
-
|
|
59421
|
+
C > Ur ? M > Ur ? (q = dA(T, w, te, X, h, M, y), W = dA(ee, U, de, be, h, M, y), u.moveTo(q.cx + q.x01, q.cy + q.y01), M < O ? u.arc(q.cx, q.cy, M, Mr(q.y01, q.x01), Mr(W.y01, W.x01), !y) : (u.arc(q.cx, q.cy, M, Mr(q.y01, q.x01), Mr(q.y11, q.x11), !y), u.arc(0, 0, h, Mr(q.cy + q.y11, q.cx + q.x11), Mr(W.cy + W.y11, W.cx + W.x11), !y), u.arc(W.cx, W.cy, M, Mr(W.y11, W.x11), Mr(W.y01, W.x01), !y))) : (u.moveTo(te, X), u.arc(0, 0, h, E, A, !y)) : u.moveTo(te, X), !(x > Ur) || !(_ > Ur) ? u.lineTo(de, be) : L > Ur ? (q = dA(de, be, ee, U, x, -L, y), W = dA(te, X, T, w, x, -L, y), u.lineTo(q.cx + q.x01, q.cy + q.y01), L < O ? u.arc(q.cx, q.cy, L, Mr(q.y01, q.x01), Mr(W.y01, W.x01), !y) : (u.arc(q.cx, q.cy, L, Mr(q.y01, q.x01), Mr(q.y11, q.x11), !y), u.arc(0, 0, x, Mr(q.cy + q.y11, q.cx + q.x11), Mr(W.cy + W.y11, W.cx + W.x11), y), u.arc(W.cx, W.cy, L, Mr(W.y11, W.x11), Mr(W.y01, W.x01), !y))) : u.arc(0, 0, x, v, S, y);
|
|
59421
59422
|
}
|
|
59422
59423
|
if (u.closePath(), c)
|
|
59423
59424
|
return u = null, c + "" || null;
|
|
@@ -60969,17 +60970,17 @@ const DIe = function t(e, n, r) {
|
|
|
60969
60970
|
function i(s, o) {
|
|
60970
60971
|
var u = s[0], a = s[1], l = s[2], c = o[0], f = o[1], x = o[2], h = c - u, p = f - a, m = h * h + p * p, g, y;
|
|
60971
60972
|
if (m < RIe)
|
|
60972
|
-
y = Math.log(x / l) / e, g = function(
|
|
60973
|
+
y = Math.log(x / l) / e, g = function(C) {
|
|
60973
60974
|
return [
|
|
60974
|
-
u +
|
|
60975
|
-
a +
|
|
60976
|
-
l * Math.exp(e *
|
|
60975
|
+
u + C * h,
|
|
60976
|
+
a + C * p,
|
|
60977
|
+
l * Math.exp(e * C * y)
|
|
60977
60978
|
];
|
|
60978
60979
|
};
|
|
60979
60980
|
else {
|
|
60980
|
-
var E = Math.sqrt(m), A = (x * x - l * l + r * m) / (2 * l * n * E), S = (x * x - l * l - r * m) / (2 * x * n * E), v = Math.log(Math.sqrt(A * A + 1) - A),
|
|
60981
|
-
y = (
|
|
60982
|
-
var b =
|
|
60981
|
+
var E = Math.sqrt(m), A = (x * x - l * l + r * m) / (2 * l * n * E), S = (x * x - l * l - r * m) / (2 * x * n * E), v = Math.log(Math.sqrt(A * A + 1) - A), _ = Math.log(Math.sqrt(S * S + 1) - S);
|
|
60982
|
+
y = (_ - v) / e, g = function(C) {
|
|
60983
|
+
var b = C * y, R = JU(v), O = l / (n * E) * (R * NIe(e * b + v) - OIe(v));
|
|
60983
60984
|
return [
|
|
60984
60985
|
u + O * h,
|
|
60985
60986
|
a + O * p,
|
|
@@ -61438,21 +61439,21 @@ function ZIe(t) {
|
|
|
61438
61439
|
}
|
|
61439
61440
|
function w6(t, e, n, r, i, s, o, u, a, l) {
|
|
61440
61441
|
var c = vte(), f = c.invert, x = c.domain, h = l(".%L"), p = l(":%S"), m = l("%I:%M"), g = l("%I %p"), y = l("%a %d"), E = l("%b %d"), A = l("%B"), S = l("%Y");
|
|
61441
|
-
function v(
|
|
61442
|
-
return (a(
|
|
61443
|
-
}
|
|
61444
|
-
return c.invert = function(
|
|
61445
|
-
return new Date(f(
|
|
61446
|
-
}, c.domain = function(
|
|
61447
|
-
return arguments.length ? x(Array.from(
|
|
61448
|
-
}, c.ticks = function(
|
|
61449
|
-
var
|
|
61450
|
-
return t(
|
|
61451
|
-
}, c.tickFormat = function(
|
|
61452
|
-
return
|
|
61453
|
-
}, c.nice = function(
|
|
61454
|
-
var
|
|
61455
|
-
return (!
|
|
61442
|
+
function v(_) {
|
|
61443
|
+
return (a(_) < _ ? h : u(_) < _ ? p : o(_) < _ ? m : s(_) < _ ? g : r(_) < _ ? i(_) < _ ? y : E : n(_) < _ ? A : S)(_);
|
|
61444
|
+
}
|
|
61445
|
+
return c.invert = function(_) {
|
|
61446
|
+
return new Date(f(_));
|
|
61447
|
+
}, c.domain = function(_) {
|
|
61448
|
+
return arguments.length ? x(Array.from(_, ZIe)) : x().map(JIe);
|
|
61449
|
+
}, c.ticks = function(_) {
|
|
61450
|
+
var C = x();
|
|
61451
|
+
return t(C[0], C[C.length - 1], _ ?? 10);
|
|
61452
|
+
}, c.tickFormat = function(_, C) {
|
|
61453
|
+
return C == null ? v : l(C);
|
|
61454
|
+
}, c.nice = function(_) {
|
|
61455
|
+
var C = x();
|
|
61456
|
+
return (!_ || typeof _.range != "function") && (_ = e(C[0], C[C.length - 1], _ ?? 10)), _ ? x(Tte(C, _)) : c;
|
|
61456
61457
|
}, c.copy = function() {
|
|
61457
61458
|
return ZE(c, w6(t, e, n, r, i, s, o, u, a, l));
|
|
61458
61459
|
}, c;
|
|
@@ -62109,13 +62110,13 @@ function H$e(t, e, n, r, i, s, o, u, a) {
|
|
|
62109
62110
|
const h = x * (u - t) * 0.5 + f * (a - e) * 0.5, p = x * (a - e) * 0.5 - f * (u - t) * 0.5;
|
|
62110
62111
|
let m = h * h / (n * n) + p * p / (r * r);
|
|
62111
62112
|
m > 1 && (m = Math.sqrt(m), n *= m, r *= m);
|
|
62112
|
-
const g = x / n, y = f / n, E = -f / r, A = x / r, S = g * u + y * a, v = E * u + A * a,
|
|
62113
|
-
let R = 1 / ((
|
|
62113
|
+
const g = x / n, y = f / n, E = -f / r, A = x / r, S = g * u + y * a, v = E * u + A * a, _ = g * t + y * e, C = E * t + A * e;
|
|
62114
|
+
let R = 1 / ((_ - S) * (_ - S) + (C - v) * (C - v)) - 0.25;
|
|
62114
62115
|
R < 0 && (R = 0);
|
|
62115
62116
|
let O = Math.sqrt(R);
|
|
62116
62117
|
s == i && (O = -O);
|
|
62117
|
-
const L = 0.5 * (S +
|
|
62118
|
-
let B = Math.atan2(
|
|
62118
|
+
const L = 0.5 * (S + _) - O * (C - v), M = 0.5 * (v + C) + O * (_ - S), q = Math.atan2(v - M, S - L);
|
|
62119
|
+
let B = Math.atan2(C - M, _ - L) - q;
|
|
62119
62120
|
B < 0 && s === 1 ? B += Lu : B > 0 && s === 0 && (B -= Lu);
|
|
62120
62121
|
const G = Math.ceil(Math.abs(B / (Bf + 1e-3))), te = [];
|
|
62121
62122
|
for (let X = 0; X < G; ++X) {
|
|
@@ -62129,8 +62130,8 @@ function z$e(t) {
|
|
|
62129
62130
|
if (uw[e])
|
|
62130
62131
|
return uw[e];
|
|
62131
62132
|
var n = t[0], r = t[1], i = t[2], s = t[3], o = t[4], u = t[5], a = t[6], l = t[7];
|
|
62132
|
-
const c = l * o, f = -a * u, x = a * o, h = l * u, p = Math.cos(i), m = Math.sin(i), g = Math.cos(s), y = Math.sin(s), E = 0.5 * (s - i), A = Math.sin(E * 0.5), S = 8 / 3 * A * A / Math.sin(E), v = n + p - S * m,
|
|
62133
|
-
return uw[e] = [c * v + f *
|
|
62133
|
+
const c = l * o, f = -a * u, x = a * o, h = l * u, p = Math.cos(i), m = Math.sin(i), g = Math.cos(s), y = Math.sin(s), E = 0.5 * (s - i), A = Math.sin(E * 0.5), S = 8 / 3 * A * A / Math.sin(E), v = n + p - S * m, _ = r + m + S * p, C = n + g, b = r + y, R = C + S * y, O = b - S * g;
|
|
62134
|
+
return uw[e] = [c * v + f * _, x * v + h * _, c * R + f * O, x * R + h * O, c * C + f * b, x * C + h * b];
|
|
62134
62135
|
}
|
|
62135
62136
|
const Vs = ["l", 0, 0, 0, 0, 0, 0, 0];
|
|
62136
62137
|
function Q$e(t, e, n) {
|
|
@@ -62359,12 +62360,12 @@ function mA(t, e, n) {
|
|
|
62359
62360
|
function J$e() {
|
|
62360
62361
|
var t = V$e, e = Y$e, n = K$e, r = X$e, i = Qa(0), s = i, o = i, u = i, a = null;
|
|
62361
62362
|
function l(c, f, x) {
|
|
62362
|
-
var h, p = f ?? +t.call(this, c), m = x ?? +e.call(this, c), g = +n.call(this, c), y = +r.call(this, c), E = Math.min(g, y) / 2, A = mA(+i.call(this, c), 0, E), S = mA(+s.call(this, c), 0, E), v = mA(+o.call(this, c), 0, E),
|
|
62363
|
-
if (a || (a = h = g6()), A <= 0 && S <= 0 && v <= 0 &&
|
|
62363
|
+
var h, p = f ?? +t.call(this, c), m = x ?? +e.call(this, c), g = +n.call(this, c), y = +r.call(this, c), E = Math.min(g, y) / 2, A = mA(+i.call(this, c), 0, E), S = mA(+s.call(this, c), 0, E), v = mA(+o.call(this, c), 0, E), _ = mA(+u.call(this, c), 0, E);
|
|
62364
|
+
if (a || (a = h = g6()), A <= 0 && S <= 0 && v <= 0 && _ <= 0)
|
|
62364
62365
|
a.rect(p, m, g, y);
|
|
62365
62366
|
else {
|
|
62366
|
-
var
|
|
62367
|
-
a.moveTo(p + A, m), a.lineTo(
|
|
62367
|
+
var C = p + g, b = m + y;
|
|
62368
|
+
a.moveTo(p + A, m), a.lineTo(C - S, m), a.bezierCurveTo(C - a0 * S, m, C, m + a0 * S, C, m + S), a.lineTo(C, b - _), a.bezierCurveTo(C, b - a0 * _, C - a0 * _, b, C - _, b), a.lineTo(p + v, b), a.bezierCurveTo(p + a0 * v, b, p, b - a0 * v, p, b - v), a.lineTo(p, m + A), a.bezierCurveTo(p, m + a0 * A, p + a0 * A, m, p + A, m), a.closePath();
|
|
62368
62369
|
}
|
|
62369
62370
|
if (h)
|
|
62370
62371
|
return a = null, h + "" || null;
|
|
@@ -64854,60 +64855,60 @@ function Uq(t) {
|
|
|
64854
64855
|
return t < 0 ? Math.ceil(-t) : 0;
|
|
64855
64856
|
}
|
|
64856
64857
|
function dre(t, e, n) {
|
|
64857
|
-
var r = !n.nodirty, i = n.bounds === Ak ? Pke : Mke, s = qr.set(0, 0, 0, 0), o = un(n.align, T0), u = un(n.align, R0), a = un(n.padding, T0), l = un(n.padding, R0), c = n.columns || e.length, f = c <= 0 ? 1 : Math.ceil(e.length / c), x = e.length, h = Array(x), p = Array(c), m = 0, g = Array(x), y = Array(f), E = 0, A = Array(x), S = Array(x), v = Array(x),
|
|
64858
|
-
for (
|
|
64859
|
-
p[
|
|
64860
|
-
for (
|
|
64861
|
-
y[
|
|
64862
|
-
for (
|
|
64863
|
-
L = e[
|
|
64864
|
-
for (
|
|
64865
|
-
|
|
64858
|
+
var r = !n.nodirty, i = n.bounds === Ak ? Pke : Mke, s = qr.set(0, 0, 0, 0), o = un(n.align, T0), u = un(n.align, R0), a = un(n.padding, T0), l = un(n.padding, R0), c = n.columns || e.length, f = c <= 0 ? 1 : Math.ceil(e.length / c), x = e.length, h = Array(x), p = Array(c), m = 0, g = Array(x), y = Array(f), E = 0, A = Array(x), S = Array(x), v = Array(x), _, C, b, R, O, L, M, q, W, B, G;
|
|
64859
|
+
for (C = 0; C < c; ++C)
|
|
64860
|
+
p[C] = 0;
|
|
64861
|
+
for (C = 0; C < f; ++C)
|
|
64862
|
+
y[C] = 0;
|
|
64863
|
+
for (C = 0; C < x; ++C)
|
|
64864
|
+
L = e[C], O = v[C] = i(L), L.x = L.x || 0, A[C] = 0, L.y = L.y || 0, S[C] = 0, b = C % c, R = ~~(C / c), m = Math.max(m, M = Math.ceil(O.x2)), E = Math.max(E, q = Math.ceil(O.y2)), p[b] = Math.max(p[b], M), y[R] = Math.max(y[R], q), h[C] = a + Uq(O.x1), g[C] = l + Uq(O.y1), r && t.dirty(e[C]);
|
|
64865
|
+
for (C = 0; C < x; ++C)
|
|
64866
|
+
C % c === 0 && (h[C] = 0), C < c && (g[C] = 0);
|
|
64866
64867
|
if (o === L4)
|
|
64867
64868
|
for (b = 1; b < c; ++b) {
|
|
64868
|
-
for (G = 0,
|
|
64869
|
-
G < h[
|
|
64870
|
-
for (
|
|
64871
|
-
h[
|
|
64869
|
+
for (G = 0, C = b; C < x; C += c)
|
|
64870
|
+
G < h[C] && (G = h[C]);
|
|
64871
|
+
for (C = b; C < x; C += c)
|
|
64872
|
+
h[C] = G + p[b - 1];
|
|
64872
64873
|
}
|
|
64873
64874
|
else if (o === yA) {
|
|
64874
|
-
for (G = 0,
|
|
64875
|
-
|
|
64876
|
-
for (
|
|
64877
|
-
|
|
64875
|
+
for (G = 0, C = 0; C < x; ++C)
|
|
64876
|
+
C % c && G < h[C] && (G = h[C]);
|
|
64877
|
+
for (C = 0; C < x; ++C)
|
|
64878
|
+
C % c && (h[C] = G + m);
|
|
64878
64879
|
} else
|
|
64879
64880
|
for (o = !1, b = 1; b < c; ++b)
|
|
64880
|
-
for (
|
|
64881
|
-
h[
|
|
64881
|
+
for (C = b; C < x; C += c)
|
|
64882
|
+
h[C] += p[b - 1];
|
|
64882
64883
|
if (u === L4)
|
|
64883
64884
|
for (R = 1; R < f; ++R) {
|
|
64884
|
-
for (G = 0,
|
|
64885
|
-
G < g[
|
|
64886
|
-
for (
|
|
64887
|
-
g[
|
|
64885
|
+
for (G = 0, C = R * c, _ = C + c; C < _; ++C)
|
|
64886
|
+
G < g[C] && (G = g[C]);
|
|
64887
|
+
for (C = R * c; C < _; ++C)
|
|
64888
|
+
g[C] = G + y[R - 1];
|
|
64888
64889
|
}
|
|
64889
64890
|
else if (u === yA) {
|
|
64890
|
-
for (G = 0,
|
|
64891
|
-
G < g[
|
|
64892
|
-
for (
|
|
64893
|
-
g[
|
|
64891
|
+
for (G = 0, C = c; C < x; ++C)
|
|
64892
|
+
G < g[C] && (G = g[C]);
|
|
64893
|
+
for (C = c; C < x; ++C)
|
|
64894
|
+
g[C] = G + E;
|
|
64894
64895
|
} else
|
|
64895
64896
|
for (u = !1, R = 1; R < f; ++R)
|
|
64896
|
-
for (
|
|
64897
|
-
g[
|
|
64898
|
-
for (W = 0,
|
|
64899
|
-
W = h[
|
|
64897
|
+
for (C = R * c, _ = C + c; C < _; ++C)
|
|
64898
|
+
g[C] += y[R - 1];
|
|
64899
|
+
for (W = 0, C = 0; C < x; ++C)
|
|
64900
|
+
W = h[C] + (C % c ? W : 0), A[C] += W - e[C].x;
|
|
64900
64901
|
for (b = 0; b < c; ++b)
|
|
64901
|
-
for (B = 0,
|
|
64902
|
-
B += g[
|
|
64902
|
+
for (B = 0, C = b; C < x; C += c)
|
|
64903
|
+
B += g[C], S[C] += B - e[C].y;
|
|
64903
64904
|
if (o && un(n.center, T0) && f > 1)
|
|
64904
|
-
for (
|
|
64905
|
-
O = o === yA ? m : p[
|
|
64905
|
+
for (C = 0; C < x; ++C)
|
|
64906
|
+
O = o === yA ? m : p[C % c], W = O - v[C].x2 - e[C].x - A[C], W > 0 && (A[C] += W / 2);
|
|
64906
64907
|
if (u && un(n.center, R0) && c !== 1)
|
|
64907
|
-
for (
|
|
64908
|
-
O = u === yA ? E : y[~~(
|
|
64909
|
-
for (
|
|
64910
|
-
s.union(v[
|
|
64908
|
+
for (C = 0; C < x; ++C)
|
|
64909
|
+
O = u === yA ? E : y[~~(C / c)], B = O - v[C].y2 - e[C].y - S[C], B > 0 && (S[C] += B / 2);
|
|
64910
|
+
for (C = 0; C < x; ++C)
|
|
64911
|
+
s.union(v[C].translate(A[C], S[C]));
|
|
64911
64912
|
switch (W = un(n.anchor, _ke), B = un(n.anchor, Cke), un(n.anchor, T0)) {
|
|
64912
64913
|
case pi:
|
|
64913
64914
|
W -= s.width();
|
|
@@ -64922,10 +64923,10 @@ function dre(t, e, n) {
|
|
|
64922
64923
|
case w4:
|
|
64923
64924
|
B -= s.height() / 2;
|
|
64924
64925
|
}
|
|
64925
|
-
for (W = Math.round(W), B = Math.round(B), s.clear(),
|
|
64926
|
-
e[
|
|
64927
|
-
for (
|
|
64928
|
-
L = e[
|
|
64926
|
+
for (W = Math.round(W), B = Math.round(B), s.clear(), C = 0; C < x; ++C)
|
|
64927
|
+
e[C].mark.bounds.clear();
|
|
64928
|
+
for (C = 0; C < x; ++C)
|
|
64929
|
+
L = e[C], L.x += A[C] += W, L.y += S[C] += B, s.union(L.mark.bounds.union(L.bounds.translate(A[C], S[C]))), r && t.dirty(L);
|
|
64929
64930
|
return s;
|
|
64930
64931
|
}
|
|
64931
64932
|
function jke(t, e, n) {
|
|
@@ -64940,7 +64941,7 @@ function qke(t, e) {
|
|
|
64940
64941
|
return t.bounds[e];
|
|
64941
64942
|
}
|
|
64942
64943
|
function SA(t, e, n, r, i, s, o, u, a, l, c, f, x, h) {
|
|
64943
|
-
var p = n.length, m = 0, g = 0, y, E, A, S, v,
|
|
64944
|
+
var p = n.length, m = 0, g = 0, y, E, A, S, v, _, C, b, R;
|
|
64944
64945
|
if (!p)
|
|
64945
64946
|
return m;
|
|
64946
64947
|
for (y = c; y < p; y += f)
|
|
@@ -64950,9 +64951,9 @@ function SA(t, e, n, r, i, s, o, u, a, l, c, f, x, h) {
|
|
|
64950
64951
|
for (e.length > i && (t.warn("Grid headers exceed limit: " + i), e = e.slice(0, i)), m += s, E = 0, S = e.length; E < S; ++E)
|
|
64951
64952
|
t.dirty(e[E]), e[E].mark.bounds.clear();
|
|
64952
64953
|
for (y = c, E = 0, S = e.length; E < S; ++E, y += f) {
|
|
64953
|
-
for (
|
|
64954
|
+
for (_ = e[E], v = _.mark.bounds, A = y; A >= 0 && (C = n[A]) == null; A -= x)
|
|
64954
64955
|
;
|
|
64955
|
-
u ? (b = h == null ?
|
|
64956
|
+
u ? (b = h == null ? C.x : Math.round(C.bounds.x1 + h * C.bounds.width()), R = m) : (b = m, R = h == null ? C.y : Math.round(C.bounds.y1 + h * C.bounds.height())), v.union(_.bounds.translate(b - (_.x || 0), R - (_.y || 0))), _.x = b, _.y = R, t.dirty(_), g = o(g, v[l]);
|
|
64956
64957
|
}
|
|
64957
64958
|
return g;
|
|
64958
64959
|
}
|
|
@@ -66034,9 +66035,9 @@ function Y8e(t, e) {
|
|
|
66034
66035
|
i === 1 ? r = Rn + tt : i === -1 && (r = -Rn - tt);
|
|
66035
66036
|
for (var l = 0, c = t.length; l < c; ++l)
|
|
66036
66037
|
if (x = (f = t[l]).length)
|
|
66037
|
-
for (var f, x, h = f[x - 1], p = pw(h), m = h[1] / 2 + jv, g = Xe(m), y = nt(m), E = 0; E < x; ++E, p = S, g =
|
|
66038
|
-
var A = f[E], S = pw(A), v = A[1] / 2 + jv,
|
|
66039
|
-
if (a.add(Ao(M * R * Xe(O), y *
|
|
66038
|
+
for (var f, x, h = f[x - 1], p = pw(h), m = h[1] / 2 + jv, g = Xe(m), y = nt(m), E = 0; E < x; ++E, p = S, g = _, y = C, h = A) {
|
|
66039
|
+
var A = f[E], S = pw(A), v = A[1] / 2 + jv, _ = Xe(v), C = nt(v), b = S - p, R = b >= 0 ? 1 : -1, O = R * b, L = O > ht, M = g * _;
|
|
66040
|
+
if (a.add(Ao(M * R * Xe(O), y * C + M * nt(O))), o += L ? b + R * Ii : b, L ^ p >= n ^ S >= n) {
|
|
66040
66041
|
var q = mp(Nx(h), Nx(A));
|
|
66041
66042
|
Gv(q);
|
|
66042
66043
|
var W = mp(s, q);
|
|
@@ -66085,17 +66086,17 @@ function zre(t, e, n, r) {
|
|
|
66085
66086
|
}
|
|
66086
66087
|
function A() {
|
|
66087
66088
|
y(f[0][0], f[0][1]), u.lineEnd();
|
|
66088
|
-
var S = u.clean(), v = o.result(),
|
|
66089
|
-
if (f.pop(), l.push(f), f = null, !!
|
|
66089
|
+
var S = u.clean(), v = o.result(), _, C = v.length, b, R, O;
|
|
66090
|
+
if (f.pop(), l.push(f), f = null, !!C) {
|
|
66090
66091
|
if (S & 1) {
|
|
66091
66092
|
if (R = v[0], (b = R.length - 1) > 0) {
|
|
66092
|
-
for (a || (i.polygonStart(), a = !0), i.lineStart(),
|
|
66093
|
-
i.point((O = R[
|
|
66093
|
+
for (a || (i.polygonStart(), a = !0), i.lineStart(), _ = 0; _ < b; ++_)
|
|
66094
|
+
i.point((O = R[_])[0], O[1]);
|
|
66094
66095
|
i.lineEnd();
|
|
66095
66096
|
}
|
|
66096
66097
|
return;
|
|
66097
66098
|
}
|
|
66098
|
-
|
|
66099
|
+
C > 1 && S & 2 && v.push(v.pop().concat(v.shift())), c.push(v.filter(K8e));
|
|
66099
66100
|
}
|
|
66100
66101
|
}
|
|
66101
66102
|
return x;
|
|
@@ -66166,8 +66167,8 @@ function t7e(t) {
|
|
|
66166
66167
|
if (!f && (p = h = S) && c.lineStart(), S !== h && (A = a(f, E), (!A || dS(f, A) || dS(E, A)) && (E[2] = 1)), S !== h)
|
|
66167
66168
|
m = 0, S ? (c.lineStart(), A = a(E, f), c.point(A[0], A[1])) : (A = a(f, E), c.point(A[0], A[1], 2), c.lineEnd()), f = A;
|
|
66168
66169
|
else if (i && f && r ^ S) {
|
|
66169
|
-
var
|
|
66170
|
-
!(v & x) && (
|
|
66170
|
+
var _;
|
|
66171
|
+
!(v & x) && (_ = a(E, f, !0)) && (m = 0, r ? (c.lineStart(), c.point(_[0][0], _[0][1]), c.point(_[1][0], _[1][1]), c.lineEnd()) : (c.point(_[1][0], _[1][1]), c.lineEnd(), c.lineStart(), c.point(_[0][0], _[0][1], 3)));
|
|
66171
66172
|
}
|
|
66172
66173
|
S && (!f || !dS(f, E)) && c.point(E[0], E[1]), f = E, h = S, x = v;
|
|
66173
66174
|
},
|
|
@@ -66185,19 +66186,19 @@ function t7e(t) {
|
|
|
66185
66186
|
var h = Nx(c), p = Nx(f), m = [1, 0, 0], g = mp(h, p), y = _A(g, g), E = g[0], A = y - E * E;
|
|
66186
66187
|
if (!A)
|
|
66187
66188
|
return !x && c;
|
|
66188
|
-
var S = e * y / A, v = -e * E / A,
|
|
66189
|
-
hw(
|
|
66190
|
-
var R =
|
|
66189
|
+
var S = e * y / A, v = -e * E / A, _ = mp(m, g), C = CA(m, S), b = CA(g, v);
|
|
66190
|
+
hw(C, b);
|
|
66191
|
+
var R = _, O = _A(C, R), L = _A(R, R), M = O * O - L * (_A(C, C) - 1);
|
|
66191
66192
|
if (!(M < 0)) {
|
|
66192
66193
|
var q = $i(M), W = CA(R, (-O - q) / L);
|
|
66193
|
-
if (hw(W,
|
|
66194
|
+
if (hw(W, C), W = Qv(W), !x)
|
|
66194
66195
|
return W;
|
|
66195
66196
|
var B = c[0], G = f[0], te = c[1], X = f[1], de;
|
|
66196
66197
|
G < B && (de = B, B = G, G = de);
|
|
66197
66198
|
var be = G - B, ee = yt(be - ht) < tt, U = ee || be < tt;
|
|
66198
66199
|
if (!ee && X < te && (de = te, te = X, X = de), U ? ee ? te + X > 0 ^ W[1] < (yt(W[0] - B) < tt ? te : X) : te <= W[1] && W[1] <= X : be > ht ^ (B <= W[0] && W[0] <= G)) {
|
|
66199
66200
|
var T = CA(R, (-O + q) / L);
|
|
66200
|
-
return hw(T,
|
|
66201
|
+
return hw(T, C), [W, Qv(T)];
|
|
66201
66202
|
}
|
|
66202
66203
|
}
|
|
66203
66204
|
}
|
|
@@ -66280,7 +66281,7 @@ function Qre(t, e, n, r) {
|
|
|
66280
66281
|
return f !== x ? f - x : f === 0 ? c[1] - l[1] : f === 1 ? l[0] - c[0] : f === 2 ? l[1] - c[1] : c[0] - l[0];
|
|
66281
66282
|
}
|
|
66282
66283
|
return function(l) {
|
|
66283
|
-
var c = l, f = qre(), x, h, p, m, g, y, E, A, S, v,
|
|
66284
|
+
var c = l, f = qre(), x, h, p, m, g, y, E, A, S, v, _, C = {
|
|
66284
66285
|
point: b,
|
|
66285
66286
|
lineStart: M,
|
|
66286
66287
|
lineEnd: q,
|
|
@@ -66297,17 +66298,17 @@ function Qre(t, e, n, r) {
|
|
|
66297
66298
|
return B;
|
|
66298
66299
|
}
|
|
66299
66300
|
function O() {
|
|
66300
|
-
c = f, x = [], h = [],
|
|
66301
|
+
c = f, x = [], h = [], _ = !0;
|
|
66301
66302
|
}
|
|
66302
66303
|
function L() {
|
|
66303
|
-
var B = R(), G =
|
|
66304
|
+
var B = R(), G = _ && B, te = (x = tZ(x)).length;
|
|
66304
66305
|
(G || te) && (l.polygonStart(), G && (l.lineStart(), s(null, null, 1, l), l.lineEnd()), te && Hre(x, u, B, s, l), l.polygonEnd()), c = l, x = h = p = null;
|
|
66305
66306
|
}
|
|
66306
66307
|
function M() {
|
|
66307
|
-
|
|
66308
|
+
C.point = W, h && h.push(p = []), v = !0, S = !1, E = A = NaN;
|
|
66308
66309
|
}
|
|
66309
66310
|
function q() {
|
|
66310
|
-
x && (W(m, g), y && S && f.rejoin(), x.push(f.result())),
|
|
66311
|
+
x && (W(m, g), y && S && f.rejoin(), x.push(f.result())), C.point = b, S && c.lineEnd();
|
|
66311
66312
|
}
|
|
66312
66313
|
function W(B, G) {
|
|
66313
66314
|
var te = i(B, G);
|
|
@@ -66317,11 +66318,11 @@ function Qre(t, e, n, r) {
|
|
|
66317
66318
|
c.point(B, G);
|
|
66318
66319
|
else {
|
|
66319
66320
|
var X = [E = Math.max(TA, Math.min(qm, E)), A = Math.max(TA, Math.min(qm, A))], de = [B = Math.max(TA, Math.min(qm, B)), G = Math.max(TA, Math.min(qm, G))];
|
|
66320
|
-
n7e(X, de, t, e, n, r) ? (S || (c.lineStart(), c.point(X[0], X[1])), c.point(de[0], de[1]), te || c.lineEnd(),
|
|
66321
|
+
n7e(X, de, t, e, n, r) ? (S || (c.lineStart(), c.point(X[0], X[1])), c.point(de[0], de[1]), te || c.lineEnd(), _ = !1) : te && (c.lineStart(), c.point(B, G), _ = !1);
|
|
66321
66322
|
}
|
|
66322
66323
|
E = B, A = G, S = te;
|
|
66323
66324
|
}
|
|
66324
|
-
return
|
|
66325
|
+
return C;
|
|
66325
66326
|
};
|
|
66326
66327
|
}
|
|
66327
66328
|
function oH(t, e, n) {
|
|
@@ -66704,8 +66705,8 @@ function m7e(t, e) {
|
|
|
66704
66705
|
function n(r, i, s, o, u, a, l, c, f, x, h, p, m, g) {
|
|
66705
66706
|
var y = l - r, E = c - i, A = y * y + E * E;
|
|
66706
66707
|
if (A > 4 * e && m--) {
|
|
66707
|
-
var S = o + x, v = u + h,
|
|
66708
|
-
(B * B / A > e || yt((y * q + E * W) / A - 0.5) > 0.3 || o * x + u * h + a * p < p7e) && (n(r, i, s, o, u, a, L, M, R, S /=
|
|
66708
|
+
var S = o + x, v = u + h, _ = a + p, C = $i(S * S + v * v + _ * _), b = os(_ /= C), R = yt(yt(_) - 1) < tt || yt(s - f) < tt ? (s + f) / 2 : Ao(v, S), O = t(R, b), L = O[0], M = O[1], q = L - r, W = M - i, B = E * q - y * W;
|
|
66709
|
+
(B * B / A > e || yt((y * q + E * W) / A - 0.5) > 0.3 || o * x + u * h + a * p < p7e) && (n(r, i, s, o, u, a, L, M, R, S /= C, v /= C, _, m, g), g.point(L, M), n(L, M, R, S, v, _, l, c, f, x, h, p, m, g));
|
|
66709
66710
|
}
|
|
66710
66711
|
}
|
|
66711
66712
|
return function(r) {
|
|
@@ -66734,12 +66735,12 @@ function m7e(t, e) {
|
|
|
66734
66735
|
g.point = y, r.lineEnd();
|
|
66735
66736
|
}
|
|
66736
66737
|
function v() {
|
|
66737
|
-
E(), g.point =
|
|
66738
|
+
E(), g.point = _, g.lineEnd = C;
|
|
66738
66739
|
}
|
|
66739
|
-
function
|
|
66740
|
+
function _(b, R) {
|
|
66740
66741
|
A(i = b, R), s = f, o = x, u = h, a = p, l = m, g.point = A;
|
|
66741
66742
|
}
|
|
66742
|
-
function
|
|
66743
|
+
function C() {
|
|
66743
66744
|
n(f, x, c, h, p, m, s, o, i, u, a, l, hH, r), g.lineEnd = S, S();
|
|
66744
66745
|
}
|
|
66745
66746
|
return g;
|
|
@@ -66783,7 +66784,7 @@ function ba(t) {
|
|
|
66783
66784
|
})();
|
|
66784
66785
|
}
|
|
66785
66786
|
function iie(t) {
|
|
66786
|
-
var e, n = 150, r = 480, i = 250, s = 0, o = 0, u = 0, a = 0, l = 0, c, f = 0, x = 1, h = 1, p = null, m = sH, g = null, y, E, A, S = K1, v = 0.5,
|
|
66787
|
+
var e, n = 150, r = 480, i = 250, s = 0, o = 0, u = 0, a = 0, l = 0, c, f = 0, x = 1, h = 1, p = null, m = sH, g = null, y, E, A, S = K1, v = 0.5, _, C, b, R, O;
|
|
66787
66788
|
function L(B) {
|
|
66788
66789
|
return b(B[0] * dt, B[1] * dt);
|
|
66789
66790
|
}
|
|
@@ -66791,7 +66792,7 @@ function iie(t) {
|
|
|
66791
66792
|
return B = b.invert(B[0], B[1]), B && [B[0] * Fn, B[1] * Fn];
|
|
66792
66793
|
}
|
|
66793
66794
|
L.stream = function(B) {
|
|
66794
|
-
return R && O === B ? R : R = y7e(E7e(c)(m(
|
|
66795
|
+
return R && O === B ? R : R = y7e(E7e(c)(m(_(S(O = B)))));
|
|
66795
66796
|
}, L.preclip = function(B) {
|
|
66796
66797
|
return arguments.length ? (m = B, p = void 0, W()) : m;
|
|
66797
66798
|
}, L.postclip = function(B) {
|
|
@@ -66815,7 +66816,7 @@ function iie(t) {
|
|
|
66815
66816
|
}, L.reflectY = function(B) {
|
|
66816
66817
|
return arguments.length ? (h = B ? -1 : 1, q()) : h < 0;
|
|
66817
66818
|
}, L.precision = function(B) {
|
|
66818
|
-
return arguments.length ? (
|
|
66819
|
+
return arguments.length ? (_ = pH(C, v = B * B), W()) : $i(v);
|
|
66819
66820
|
}, L.fitExtent = function(B, G) {
|
|
66820
66821
|
return QO(L, B, G);
|
|
66821
66822
|
}, L.fitSize = function(B, G) {
|
|
@@ -66827,7 +66828,7 @@ function iie(t) {
|
|
|
66827
66828
|
};
|
|
66828
66829
|
function q() {
|
|
66829
66830
|
var B = gH(n, 0, 0, x, h, f).apply(null, e(s, o)), G = gH(n, r - B[0], i - B[1], x, h, f);
|
|
66830
|
-
return c = Ure(u, a, l),
|
|
66831
|
+
return c = Ure(u, a, l), C = z4(e, G), b = z4(c, C), _ = pH(C, v), W();
|
|
66831
66832
|
}
|
|
66832
66833
|
function W() {
|
|
66833
66834
|
return R = O = null, L;
|
|
@@ -67071,28 +67072,28 @@ function $7e() {
|
|
|
67071
67072
|
function B7e() {
|
|
67072
67073
|
var t = 1, e = 0, n = 0, r = 1, i = 1, s = 0, o, u, a = null, l, c, f, x = 1, h = 1, p = zO({
|
|
67073
67074
|
point: function(S, v) {
|
|
67074
|
-
var
|
|
67075
|
-
this.stream.point(
|
|
67075
|
+
var _ = A([S, v]);
|
|
67076
|
+
this.stream.point(_[0], _[1]);
|
|
67076
67077
|
}
|
|
67077
67078
|
}), m = K1, g, y;
|
|
67078
67079
|
function E() {
|
|
67079
67080
|
return x = t * r, h = t * i, g = y = null, A;
|
|
67080
67081
|
}
|
|
67081
67082
|
function A(S) {
|
|
67082
|
-
var v = S[0] * x,
|
|
67083
|
+
var v = S[0] * x, _ = S[1] * h;
|
|
67083
67084
|
if (s) {
|
|
67084
|
-
var
|
|
67085
|
-
v = v * o +
|
|
67085
|
+
var C = _ * o - v * u;
|
|
67086
|
+
v = v * o + _ * u, _ = C;
|
|
67086
67087
|
}
|
|
67087
|
-
return [v + e,
|
|
67088
|
+
return [v + e, _ + n];
|
|
67088
67089
|
}
|
|
67089
67090
|
return A.invert = function(S) {
|
|
67090
|
-
var v = S[0] - e,
|
|
67091
|
+
var v = S[0] - e, _ = S[1] - n;
|
|
67091
67092
|
if (s) {
|
|
67092
|
-
var
|
|
67093
|
-
v = v * o -
|
|
67093
|
+
var C = _ * o + v * u;
|
|
67094
|
+
v = v * o - _ * u, _ = C;
|
|
67094
67095
|
}
|
|
67095
|
-
return [v / x,
|
|
67096
|
+
return [v / x, _ / h];
|
|
67096
67097
|
}, A.stream = function(S) {
|
|
67097
67098
|
return g && y === S ? g : g = p(m(y = S));
|
|
67098
67099
|
}, A.postclip = function(S) {
|
|
@@ -67298,19 +67299,19 @@ function Eie() {
|
|
|
67298
67299
|
E = y, y = a[p * t + h + 1] >= l, Ga[y << 2 | E << 3].forEach(A);
|
|
67299
67300
|
Ga[y << 3].forEach(A);
|
|
67300
67301
|
function A(S) {
|
|
67301
|
-
var v = [S[0][0] + h, S[0][1] + p],
|
|
67302
|
-
(R = x[
|
|
67302
|
+
var v = [S[0][0] + h, S[0][1] + p], _ = [S[1][0] + h, S[1][1] + p], C = o(v), b = o(_), R, O;
|
|
67303
|
+
(R = x[C]) ? (O = f[b]) ? (delete x[R.end], delete f[O.start], R === O ? (R.ring.push(_), c(R.ring)) : f[R.start] = x[O.end] = {
|
|
67303
67304
|
start: R.start,
|
|
67304
67305
|
end: O.end,
|
|
67305
67306
|
ring: R.ring.concat(O.ring)
|
|
67306
|
-
}) : (delete x[R.end], R.ring.push(
|
|
67307
|
+
}) : (delete x[R.end], R.ring.push(_), x[R.end = b] = R) : (R = f[b]) ? (O = x[C]) ? (delete f[R.start], delete x[O.end], R === O ? (R.ring.push(_), c(R.ring)) : f[O.start] = x[R.end] = {
|
|
67307
67308
|
start: O.start,
|
|
67308
67309
|
end: R.end,
|
|
67309
67310
|
ring: O.ring.concat(R.ring)
|
|
67310
|
-
}) : (delete f[R.start], R.ring.unshift(v), f[R.start =
|
|
67311
|
-
start:
|
|
67311
|
+
}) : (delete f[R.start], R.ring.unshift(v), f[R.start = C] = R) : f[C] = x[b] = {
|
|
67312
|
+
start: C,
|
|
67312
67313
|
end: b,
|
|
67313
|
-
ring: [v,
|
|
67314
|
+
ring: [v, _]
|
|
67314
67315
|
};
|
|
67315
67316
|
}
|
|
67316
67317
|
}
|
|
@@ -67473,8 +67474,8 @@ function vie() {
|
|
|
67473
67474
|
const c = EH(r[0], a, t) >> o, f = EH(r[1], a, e) >> o, x = c ? c + 2 : 0, h = f ? f + 2 : 0, p = 2 * x + (i >> o), m = 2 * h + (s >> o), g = new Float32Array(p * m), y = new Float32Array(p * m);
|
|
67474
67475
|
let E = g;
|
|
67475
67476
|
a.forEach((S) => {
|
|
67476
|
-
const v = x + (+t(S) >> o),
|
|
67477
|
-
v >= 0 && v < p &&
|
|
67477
|
+
const v = x + (+t(S) >> o), _ = h + (+e(S) >> o);
|
|
67478
|
+
v >= 0 && v < p && _ >= 0 && _ < m && (g[v + _ * p] += +n(S));
|
|
67478
67479
|
}), c > 0 && f > 0 ? (Xd(p, m, g, y, c), Jd(p, m, y, g, f), Xd(p, m, g, y, c), Jd(p, m, y, g, f), Xd(p, m, g, y, c), Jd(p, m, y, g, f)) : c > 0 ? (Xd(p, m, g, y, c), Xd(p, m, y, g, c), Xd(p, m, g, y, c), E = y) : f > 0 && (Jd(p, m, g, y, f), Jd(p, m, y, g, f), Jd(p, m, g, y, f), E = y);
|
|
67479
67480
|
const A = l ? Math.pow(2, -2 * o) : 1 / nZ(E);
|
|
67480
67481
|
for (let S = 0, v = p * m; S < v; ++S)
|
|
@@ -68232,7 +68233,7 @@ function kPe(t) {
|
|
|
68232
68233
|
for (var l, c = e.length, f, x, h, p, m, g, y = 0; y < s; ++y)
|
|
68233
68234
|
for (f = qk(e, $Pe, BPe).visitAfter(u), l = 0; l < c; ++l)
|
|
68234
68235
|
x = e[l], m = n[x.index], g = m * m, h = x.x + x.vx, p = x.y + x.vy, f.visit(E);
|
|
68235
|
-
function E(A, S, v,
|
|
68236
|
+
function E(A, S, v, _, C) {
|
|
68236
68237
|
var b = A.data, R = A.r, O = m + R;
|
|
68237
68238
|
if (b) {
|
|
68238
68239
|
if (b.index > x.index) {
|
|
@@ -68241,7 +68242,7 @@ function kPe(t) {
|
|
|
68241
68242
|
}
|
|
68242
68243
|
return;
|
|
68243
68244
|
}
|
|
68244
|
-
return S > h + O ||
|
|
68245
|
+
return S > h + O || _ < h - O || v > p + O || C < p - O;
|
|
68245
68246
|
}
|
|
68246
68247
|
}
|
|
68247
68248
|
function u(l) {
|
|
@@ -68284,12 +68285,12 @@ function MPe(t) {
|
|
|
68284
68285
|
}
|
|
68285
68286
|
function x(g) {
|
|
68286
68287
|
for (var y = 0, E = t.length; y < c; ++y)
|
|
68287
|
-
for (var A = 0, S, v,
|
|
68288
|
-
S = t[A], v = S.source,
|
|
68288
|
+
for (var A = 0, S, v, _, C, b, R, O; A < E; ++A)
|
|
68289
|
+
S = t[A], v = S.source, _ = S.target, C = _.x + _.vx - v.x - v.vx || O0(l), b = _.y + _.vy - v.y - v.vy || O0(l), R = Math.sqrt(C * C + b * b), R = (R - s[A]) / R * g * r[A], C *= R, b *= R, _.vx -= C * (O = a[A]), _.vy -= b * O, v.vx += C * (O = 1 - O), v.vy += b * O;
|
|
68289
68290
|
}
|
|
68290
68291
|
function h() {
|
|
68291
68292
|
if (o) {
|
|
68292
|
-
var g, y = o.length, E = t.length, A = new Map(o.map((v,
|
|
68293
|
+
var g, y = o.length, E = t.length, A = new Map(o.map((v, _) => [e(v, _, o), v])), S;
|
|
68293
68294
|
for (g = 0, u = new Array(y); g < E; ++g)
|
|
68294
68295
|
S = t[g], S.index = g, typeof S.source != "object" && (S.source = vH(A, S.source)), typeof S.target != "object" && (S.target = vH(A, S.target)), u[S.source.index] = (u[S.source.index] || 0) + 1, u[S.target.index] = (u[S.target.index] || 0) + 1;
|
|
68295
68296
|
for (g = 0, a = new Array(E); g < E; ++g)
|
|
@@ -68535,9 +68536,9 @@ function tMe(t) {
|
|
|
68535
68536
|
return arguments.length > 1 ? (g == null ? u.delete(m) : u.set(m, p(g)), e) : u.get(m);
|
|
68536
68537
|
},
|
|
68537
68538
|
find: function(m, g, y) {
|
|
68538
|
-
var E = 0, A = t.length, S, v,
|
|
68539
|
+
var E = 0, A = t.length, S, v, _, C, b;
|
|
68539
68540
|
for (y == null ? y = 1 / 0 : y *= y, E = 0; E < A; ++E)
|
|
68540
|
-
|
|
68541
|
+
C = t[E], S = m - C.x, v = g - C.y, _ = S * S + v * v, _ < y && (b = C, y = _);
|
|
68541
68542
|
return b;
|
|
68542
68543
|
},
|
|
68543
68544
|
on: function(m, g) {
|
|
@@ -69139,9 +69140,9 @@ function Km(t, e) {
|
|
|
69139
69140
|
};
|
|
69140
69141
|
}
|
|
69141
69142
|
function Bie(t, e, n) {
|
|
69142
|
-
var r = t.x, i = t.y, s = t.r, o = e.x, u = e.y, a = e.r, l = n.x, c = n.y, f = n.r, x = r - o, h = r - l, p = i - u, m = i - c, g = a - s, y = f - s, E = r * r + i * i - s * s, A = E - o * o - u * u + a * a, S = E - l * l - c * c + f * f, v = h * p - x * m,
|
|
69143
|
+
var r = t.x, i = t.y, s = t.r, o = e.x, u = e.y, a = e.r, l = n.x, c = n.y, f = n.r, x = r - o, h = r - l, p = i - u, m = i - c, g = a - s, y = f - s, E = r * r + i * i - s * s, A = E - o * o - u * u + a * a, S = E - l * l - c * c + f * f, v = h * p - x * m, _ = (p * S - m * A) / (v * 2) - r, C = (m * g - p * y) / v, b = (h * A - x * S) / (v * 2) - i, R = (x * y - h * g) / v, O = C * C + R * R - 1, L = 2 * (s + _ * C + b * R), M = _ * _ + b * b - s * s, q = -(Math.abs(O) > 1e-6 ? (L + Math.sqrt(L * L - 4 * O * M)) / (2 * O) : M / L);
|
|
69143
69144
|
return {
|
|
69144
|
-
x: r +
|
|
69145
|
+
x: r + _ + C * q,
|
|
69145
69146
|
y: i + b + R * q,
|
|
69146
69147
|
r: q
|
|
69147
69148
|
};
|
|
@@ -69433,13 +69434,13 @@ function VO(t, e, n, r, i) {
|
|
|
69433
69434
|
}
|
|
69434
69435
|
var Pie = (1 + Math.sqrt(5)) / 2;
|
|
69435
69436
|
function Mie(t, e, n, r, i, s) {
|
|
69436
|
-
for (var o = [], u = e.children, a, l, c = 0, f = 0, x = u.length, h, p, m = e.value, g, y, E, A, S, v,
|
|
69437
|
+
for (var o = [], u = e.children, a, l, c = 0, f = 0, x = u.length, h, p, m = e.value, g, y, E, A, S, v, _; c < x; ) {
|
|
69437
69438
|
h = i - n, p = s - r;
|
|
69438
69439
|
do
|
|
69439
69440
|
g = u[f++].value;
|
|
69440
69441
|
while (!g && f < x);
|
|
69441
|
-
for (y = E = g, v = Math.max(p / h, h / p) / (m * t),
|
|
69442
|
-
if (g += l = u[f].value, l < y && (y = l), l > E && (E = l),
|
|
69442
|
+
for (y = E = g, v = Math.max(p / h, h / p) / (m * t), _ = g * g * v, S = Math.max(E / _, _ / y); f < x; ++f) {
|
|
69443
|
+
if (g += l = u[f].value, l < y && (y = l), l > E && (E = l), _ = g * g * v, A = Math.max(E / _, _ / y), A > S) {
|
|
69443
69444
|
g -= l;
|
|
69444
69445
|
break;
|
|
69445
69446
|
}
|
|
@@ -69499,9 +69500,9 @@ function l9e(t, e, n, r, i) {
|
|
|
69499
69500
|
E.x0 = p, E.y0 = m, E.x1 = g, E.y1 = y;
|
|
69500
69501
|
return;
|
|
69501
69502
|
}
|
|
69502
|
-
for (var A = l[f], S = h / 2 + A, v = f + 1,
|
|
69503
|
-
var
|
|
69504
|
-
l[
|
|
69503
|
+
for (var A = l[f], S = h / 2 + A, v = f + 1, _ = x - 1; v < _; ) {
|
|
69504
|
+
var C = v + _ >>> 1;
|
|
69505
|
+
l[C] < S ? v = C + 1 : _ = C;
|
|
69505
69506
|
}
|
|
69506
69507
|
S - l[v - 1] < l[v] - S && f + 1 < v && --v;
|
|
69507
69508
|
var b = l[v] - A, R = h - b;
|
|
@@ -69934,10 +69935,10 @@ function E9e(t, e, n, r, i) {
|
|
|
69934
69935
|
const s = t.width, o = t.height, u = r || i, a = P0(s, o).getContext("2d"), l = P0(s, o).getContext("2d"), c = u && P0(s, o).getContext("2d");
|
|
69935
69936
|
n.forEach((b) => mS(a, b, !1)), mS(l, e, !1), u && mS(c, e, !0);
|
|
69936
69937
|
const f = bw(a, s, o), x = bw(l, s, o), h = u && bw(c, s, o), p = t.bitmap(), m = u && t.bitmap();
|
|
69937
|
-
let g, y, E, A, S, v,
|
|
69938
|
+
let g, y, E, A, S, v, _, C;
|
|
69938
69939
|
for (y = 0; y < o; ++y)
|
|
69939
69940
|
for (g = 0; g < s; ++g)
|
|
69940
|
-
S = y * s + g, v = f[S] & Cw,
|
|
69941
|
+
S = y * s + g, v = f[S] & Cw, C = x[S] & Cw, _ = u && h[S] & Cw, (v || _ || C) && (E = t(g), A = t(y), !i && (v || C) && p.set(E, A), u && (v || _) && m.set(E, A));
|
|
69941
69942
|
return [p, m];
|
|
69942
69943
|
}
|
|
69943
69944
|
function bw(t, e, n) {
|
|
@@ -70061,7 +70062,7 @@ function C9e(t, e, n, r) {
|
|
|
70061
70062
|
}
|
|
70062
70063
|
return function(l) {
|
|
70063
70064
|
const c = l.datum.datum.items[r].items, f = c.length, x = l.datum.fontSize, h = Qu.width(l.datum, l.datum.text);
|
|
70064
|
-
let p = n ? x : 0, m = !1, g = !1, y = 0, E, A, S, v,
|
|
70065
|
+
let p = n ? x : 0, m = !1, g = !1, y = 0, E, A, S, v, _, C, b, R, O, L, M, q, W, B, G, te, X;
|
|
70065
70066
|
for (let de = 0; de < f; ++de) {
|
|
70066
70067
|
for (E = c[de].x, S = c[de].y, A = c[de].x2 === void 0 ? E : c[de].x2, v = c[de].y2 === void 0 ? S : c[de].y2, E > A && (X = E, E = A, A = X), S > v && (X = S, S = v, v = X), O = t(E), M = t(A), L = ~~((O + M) / 2), q = t(S), B = t(v), W = ~~((q + B) / 2), b = L; b >= O; --b)
|
|
70067
70068
|
for (R = W; R >= q; --R)
|
|
@@ -70069,9 +70070,9 @@ function C9e(t, e, n, r) {
|
|
|
70069
70070
|
for (b = L; b <= M; ++b)
|
|
70070
70071
|
for (R = W; R <= B; ++R)
|
|
70071
70072
|
te = a(b, R, p, h, x), te && ([l.x, l.y, p, m] = te);
|
|
70072
|
-
!m && !n && (G = Math.abs(A - E + v - S),
|
|
70073
|
+
!m && !n && (G = Math.abs(A - E + v - S), _ = (E + A) / 2, C = (S + v) / 2, G >= y && !h_(_, C, h, x, i, s) && !N0(t, _, C, x, h, x, o, null) && (y = G, l.x = _, l.y = C, g = !0));
|
|
70073
70074
|
}
|
|
70074
|
-
return m || g ? (
|
|
70075
|
+
return m || g ? (_ = h / 2, C = x / 2, o.setRange(t(l.x - _), t(l.y - C), t(l.x + _), t(l.y + C)), l.align = "center", l.baseline = "middle", !0) : !1;
|
|
70075
70076
|
};
|
|
70076
70077
|
}
|
|
70077
70078
|
const b9e = [-1, -1, 1, 1], T9e = [-1, 1, -1, 1];
|
|
@@ -70079,22 +70080,22 @@ function R9e(t, e, n, r) {
|
|
|
70079
70080
|
const i = t.width, s = t.height, o = e[0], u = e[1], a = t.bitmap();
|
|
70080
70081
|
return function(l) {
|
|
70081
70082
|
const c = l.datum.datum.items[r].items, f = c.length, x = l.datum.fontSize, h = Qu.width(l.datum, l.datum.text), p = [];
|
|
70082
|
-
let m = n ? x : 0, g = !1, y = !1, E = 0, A, S, v,
|
|
70083
|
+
let m = n ? x : 0, g = !1, y = !1, E = 0, A, S, v, _, C, b, R, O, L, M, q, W;
|
|
70083
70084
|
for (let B = 0; B < f; ++B) {
|
|
70084
|
-
for (A = c[B].x, v = c[B].y, S = c[B].x2 === void 0 ? A : c[B].x2,
|
|
70085
|
+
for (A = c[B].x, v = c[B].y, S = c[B].x2 === void 0 ? A : c[B].x2, _ = c[B].y2 === void 0 ? v : c[B].y2, p.push([t((A + S) / 2), t((v + _) / 2)]); p.length; )
|
|
70085
70086
|
if ([R, O] = p.pop(), !(o.get(R, O) || u.get(R, O) || a.get(R, O))) {
|
|
70086
70087
|
a.set(R, O);
|
|
70087
70088
|
for (let G = 0; G < 4; ++G)
|
|
70088
|
-
|
|
70089
|
-
if (
|
|
70089
|
+
C = R + b9e[G], b = O + T9e[G], a.outOfBounds(C, b, C, b) || p.push([C, b]);
|
|
70090
|
+
if (C = t.invert(R), b = t.invert(O), L = m, M = s, !h_(C, b, h, x, i, s) && !N0(t, C, b, x, h, L, o, u) && !N0(t, C, b, x, h, x, o, null)) {
|
|
70090
70091
|
for (; M - L >= 1; )
|
|
70091
|
-
q = (L + M) / 2, N0(t,
|
|
70092
|
-
L > m && (l.x =
|
|
70092
|
+
q = (L + M) / 2, N0(t, C, b, x, h, q, o, u) ? M = q : L = q;
|
|
70093
|
+
L > m && (l.x = C, l.y = b, m = L, g = !0);
|
|
70093
70094
|
}
|
|
70094
70095
|
}
|
|
70095
|
-
!g && !n && (W = Math.abs(S - A +
|
|
70096
|
+
!g && !n && (W = Math.abs(S - A + _ - v), C = (A + S) / 2, b = (v + _) / 2, W >= E && !h_(C, b, h, x, i, s) && !N0(t, C, b, x, h, x, o, null) && (E = W, l.x = C, l.y = b, y = !0));
|
|
70096
70097
|
}
|
|
70097
|
-
return g || y ? (
|
|
70098
|
+
return g || y ? (C = h / 2, b = x / 2, o.setRange(t(l.x - C), t(l.y - b), t(l.x + C), t(l.y + b)), l.align = "center", l.baseline = "middle", !0) : !1;
|
|
70098
70099
|
};
|
|
70099
70100
|
}
|
|
70100
70101
|
const O9e = ["right", "center", "left"], N9e = ["bottom", "middle", "top"];
|
|
@@ -70104,15 +70105,15 @@ function D9e(t, e, n, r) {
|
|
|
70104
70105
|
const c = l.boundary, f = l.datum.fontSize;
|
|
70105
70106
|
if (c[2] < 0 || c[5] < 0 || c[0] > i || c[3] > s)
|
|
70106
70107
|
return !1;
|
|
70107
|
-
let x = l.textWidth ?? 0, h, p, m, g, y, E, A, S, v,
|
|
70108
|
+
let x = l.textWidth ?? 0, h, p, m, g, y, E, A, S, v, _, C, b, R, O, L;
|
|
70108
70109
|
for (let M = 0; M < a; ++M) {
|
|
70109
|
-
if (h = (n[M] & 3) - 1, p = (n[M] >>> 2 & 3) - 1, m = h === 0 && p === 0 || r[M] < 0, g = h && p ? Math.SQRT1_2 : 1, y = r[M] < 0 ? -1 : 1, E = c[1 + h] + r[M] * h * g,
|
|
70110
|
+
if (h = (n[M] & 3) - 1, p = (n[M] >>> 2 & 3) - 1, m = h === 0 && p === 0 || r[M] < 0, g = h && p ? Math.SQRT1_2 : 1, y = r[M] < 0 ? -1 : 1, E = c[1 + h] + r[M] * h * g, C = c[4 + p] + y * f * p / 2 + r[M] * p * g, S = C - f / 2, v = C + f / 2, b = t(E), O = t(S), L = t(v), !x)
|
|
70110
70111
|
if (PH(b, b, O, L, o, u, E, E, S, v, c, m))
|
|
70111
70112
|
x = Qu.width(l.datum, l.datum.text);
|
|
70112
70113
|
else
|
|
70113
70114
|
continue;
|
|
70114
|
-
if (
|
|
70115
|
-
return l.x = h ? h * y < 0 ? A : E :
|
|
70115
|
+
if (_ = E + y * x * h / 2, E = _ - x / 2, A = _ + x / 2, b = t(E), R = t(A), PH(b, R, O, L, o, u, E, A, S, v, c, m))
|
|
70116
|
+
return l.x = h ? h * y < 0 ? A : E : _, l.y = p ? p * y < 0 ? v : S : C, l.align = O9e[h * y + 1], l.baseline = N9e[p * y + 1], o.setRange(b, O, R, L), !0;
|
|
70116
70117
|
}
|
|
70117
70118
|
return !1;
|
|
70118
70119
|
};
|
|
@@ -70140,7 +70141,7 @@ function L9e(t, e, n, r, i, s, o, u, a, l, c) {
|
|
|
70140
70141
|
return t;
|
|
70141
70142
|
const f = Math.max(r.length, i.length), x = I9e(r, f), h = $9e(i, f), p = B9e(t[0].datum), m = p === "group" && t[0].datum.items[a].marktype, g = m === "area", y = k9e(p, m, u, a), E = l === null || l === 1 / 0, A = g && c === "naive";
|
|
70142
70143
|
let S = -1, v = -1;
|
|
70143
|
-
const
|
|
70144
|
+
const _ = t.map((O) => {
|
|
70144
70145
|
const L = E ? Qu.width(O, O.text) : void 0;
|
|
70145
70146
|
return S = Math.max(S, L), v = Math.max(v, O.fontSize), {
|
|
70146
70147
|
datum: O,
|
|
@@ -70154,18 +70155,18 @@ function L9e(t, e, n, r, i, s, o, u, a, l, c) {
|
|
|
70154
70155
|
};
|
|
70155
70156
|
});
|
|
70156
70157
|
l = l === null || l === 1 / 0 ? Math.max(S, v) + Math.max(...r) : l;
|
|
70157
|
-
const
|
|
70158
|
+
const C = v9e(e[0], e[1], l);
|
|
70158
70159
|
let b;
|
|
70159
70160
|
if (!A) {
|
|
70160
|
-
n &&
|
|
70161
|
+
n && _.sort((M, q) => n(M.datum, q.datum));
|
|
70161
70162
|
let O = !1;
|
|
70162
70163
|
for (let M = 0; M < h.length && !O; ++M)
|
|
70163
70164
|
O = h[M] === 5 || x[M] < 0;
|
|
70164
70165
|
const L = (p && o || g) && t.map((M) => M.datum);
|
|
70165
|
-
b = s.length || L ? E9e(
|
|
70166
|
+
b = s.length || L ? E9e(C, L || [], s, O, g) : y9e(C, o && _);
|
|
70166
70167
|
}
|
|
70167
|
-
const R = g ? w9e[c](
|
|
70168
|
-
return
|
|
70168
|
+
const R = g ? w9e[c](C, b, o, a) : D9e(C, b, h, x);
|
|
70169
|
+
return _.forEach((O) => O.opacity = +R(O)), _;
|
|
70169
70170
|
}
|
|
70170
70171
|
function I9e(t, e) {
|
|
70171
70172
|
const n = new Float64Array(e), r = t.length;
|
|
@@ -70453,17 +70454,17 @@ function x3(t) {
|
|
|
70453
70454
|
}
|
|
70454
70455
|
const H9e = (3 + 16 * yl) * yl, z9e = (2 + 12 * yl) * yl, Q9e = (9 + 64 * yl) * yl * yl, Zd = x3(4), MH = x3(8), jH = x3(12), UH = x3(16), ci = x3(4);
|
|
70455
70456
|
function G9e(t, e, n, r, i, s, o) {
|
|
70456
|
-
let u, a, l, c, f, x, h, p, m, g, y, E, A, S, v,
|
|
70457
|
+
let u, a, l, c, f, x, h, p, m, g, y, E, A, S, v, _, C, b;
|
|
70457
70458
|
const R = t - i, O = n - i, L = e - s, M = r - s;
|
|
70458
|
-
S = R * M, x = jr * R, h = x - (x - R), p = R - h, x = jr * M, m = x - (x - M), g = M - m, v = p * g - (S - h * m - p * m - h * g),
|
|
70459
|
+
S = R * M, x = jr * R, h = x - (x - R), p = R - h, x = jr * M, m = x - (x - M), g = M - m, v = p * g - (S - h * m - p * m - h * g), _ = L * O, x = jr * L, h = x - (x - L), p = L - h, x = jr * O, m = x - (x - O), g = O - m, C = p * g - (_ - h * m - p * m - h * g), y = v - C, f = v - y, Zd[0] = v - (y + f) + (f - C), E = S + y, f = E - S, A = S - (E - f) + (y - f), y = A - _, f = A - y, Zd[1] = A - (y + f) + (f - _), b = E + y, f = b - E, Zd[2] = E - (b - f) + (y - f), Zd[3] = b;
|
|
70459
70460
|
let q = q9e(4, Zd), W = z9e * o;
|
|
70460
70461
|
if (q >= W || -q >= W || (f = t - R, u = t - (R + f) + (f - i), f = n - O, l = n - (O + f) + (f - i), f = e - L, a = e - (L + f) + (f - s), f = r - M, c = r - (M + f) + (f - s), u === 0 && a === 0 && l === 0 && c === 0) || (W = Q9e * o + U9e * Math.abs(q), q += R * c + M * u - (L * l + O * a), q >= W || -q >= W))
|
|
70461
70462
|
return q;
|
|
70462
|
-
S = u * M, x = jr * u, h = x - (x - u), p = u - h, x = jr * M, m = x - (x - M), g = M - m, v = p * g - (S - h * m - p * m - h * g),
|
|
70463
|
+
S = u * M, x = jr * u, h = x - (x - u), p = u - h, x = jr * M, m = x - (x - M), g = M - m, v = p * g - (S - h * m - p * m - h * g), _ = a * O, x = jr * a, h = x - (x - a), p = a - h, x = jr * O, m = x - (x - O), g = O - m, C = p * g - (_ - h * m - p * m - h * g), y = v - C, f = v - y, ci[0] = v - (y + f) + (f - C), E = S + y, f = E - S, A = S - (E - f) + (y - f), y = A - _, f = A - y, ci[1] = A - (y + f) + (f - _), b = E + y, f = b - E, ci[2] = E - (b - f) + (y - f), ci[3] = b;
|
|
70463
70464
|
const B = ww(4, Zd, 4, ci, MH);
|
|
70464
|
-
S = R * c, x = jr * R, h = x - (x - R), p = R - h, x = jr * c, m = x - (x - c), g = c - m, v = p * g - (S - h * m - p * m - h * g),
|
|
70465
|
+
S = R * c, x = jr * R, h = x - (x - R), p = R - h, x = jr * c, m = x - (x - c), g = c - m, v = p * g - (S - h * m - p * m - h * g), _ = L * l, x = jr * L, h = x - (x - L), p = L - h, x = jr * l, m = x - (x - l), g = l - m, C = p * g - (_ - h * m - p * m - h * g), y = v - C, f = v - y, ci[0] = v - (y + f) + (f - C), E = S + y, f = E - S, A = S - (E - f) + (y - f), y = A - _, f = A - y, ci[1] = A - (y + f) + (f - _), b = E + y, f = b - E, ci[2] = E - (b - f) + (y - f), ci[3] = b;
|
|
70465
70466
|
const G = ww(B, MH, 4, ci, jH);
|
|
70466
|
-
S = u * c, x = jr * u, h = x - (x - u), p = u - h, x = jr * c, m = x - (x - c), g = c - m, v = p * g - (S - h * m - p * m - h * g),
|
|
70467
|
+
S = u * c, x = jr * u, h = x - (x - u), p = u - h, x = jr * c, m = x - (x - c), g = c - m, v = p * g - (S - h * m - p * m - h * g), _ = a * l, x = jr * a, h = x - (x - a), p = a - h, x = jr * l, m = x - (x - l), g = l - m, C = p * g - (_ - h * m - p * m - h * g), y = v - C, f = v - y, ci[0] = v - (y + f) + (f - C), E = S + y, f = E - S, A = S - (E - f) + (y - f), y = A - _, f = A - y, ci[1] = A - (y + f) + (f - _), b = E + y, f = b - E, ci[2] = E - (b - f) + (y - f), ci[3] = b;
|
|
70467
70468
|
const te = ww(G, jH, 4, ci, UH);
|
|
70468
70469
|
return UH[te - 1];
|
|
70469
70470
|
}
|
|
@@ -70520,7 +70521,7 @@ class p_ {
|
|
|
70520
70521
|
const L = Y9e(y, E, A, S, e[2 * O], e[2 * O + 1]);
|
|
70521
70522
|
L < v && (g = O, v = L);
|
|
70522
70523
|
}
|
|
70523
|
-
let
|
|
70524
|
+
let _ = e[2 * g], C = e[2 * g + 1];
|
|
70524
70525
|
if (v === 1 / 0) {
|
|
70525
70526
|
for (let M = 0; M < o; M++)
|
|
70526
70527
|
this._dists[M] = e[2 * M] - e[0] || e[2 * M + 1] - e[1];
|
|
@@ -70534,17 +70535,17 @@ class p_ {
|
|
|
70534
70535
|
this.hull = O.subarray(0, L), this.triangles = new Uint32Array(0), this.halfedges = new Uint32Array(0);
|
|
70535
70536
|
return;
|
|
70536
70537
|
}
|
|
70537
|
-
if (DA(y, E, A, S,
|
|
70538
|
+
if (DA(y, E, A, S, _, C) < 0) {
|
|
70538
70539
|
const O = m, L = A, M = S;
|
|
70539
|
-
m = g, A =
|
|
70540
|
+
m = g, A = _, S = C, g = O, _ = L, C = M;
|
|
70540
70541
|
}
|
|
70541
|
-
const b = K9e(y, E, A, S,
|
|
70542
|
+
const b = K9e(y, E, A, S, _, C);
|
|
70542
70543
|
this._cx = b.x, this._cy = b.y;
|
|
70543
70544
|
for (let O = 0; O < o; O++)
|
|
70544
70545
|
this._dists[O] = Lw(e[2 * O], e[2 * O + 1], b.x, b.y);
|
|
70545
70546
|
xh(this._ids, this._dists, 0, o - 1), this._hullStart = p;
|
|
70546
70547
|
let R = 3;
|
|
70547
|
-
r[p] = n[g] = m, r[m] = n[p] = g, r[g] = n[m] = p, i[p] = 0, i[m] = 1, i[g] = 2, s.fill(-1), s[this._hashKey(y, E)] = p, s[this._hashKey(A, S)] = m, s[this._hashKey(
|
|
70548
|
+
r[p] = n[g] = m, r[m] = n[p] = g, r[g] = n[m] = p, i[p] = 0, i[m] = 1, i[g] = 2, s.fill(-1), s[this._hashKey(y, E)] = p, s[this._hashKey(A, S)] = m, s[this._hashKey(_, C)] = g, this.trianglesLen = 0, this._addTriangle(p, m, g, -1, -1, -1);
|
|
70548
70549
|
for (let O = 0, L, M; O < this._ids.length; O++) {
|
|
70549
70550
|
const q = this._ids[O], W = e[2 * q], B = e[2 * q + 1];
|
|
70550
70551
|
if (O > 0 && Math.abs(W - L) <= qH && Math.abs(B - M) <= qH || (L = W, M = B, q === p || q === m || q === g))
|
|
@@ -70751,7 +70752,7 @@ let Z9e = class {
|
|
|
70751
70752
|
let s, o;
|
|
70752
70753
|
const u = this.circumcenters = this._circumcenters.subarray(0, r.length / 3 * 2);
|
|
70753
70754
|
for (let m = 0, g = 0, y = r.length, E, A; m < y; m += 3, g += 2) {
|
|
70754
|
-
const S = r[m] * 2, v = r[m + 1] * 2,
|
|
70755
|
+
const S = r[m] * 2, v = r[m + 1] * 2, _ = r[m + 2] * 2, C = e[S], b = e[S + 1], R = e[v], O = e[v + 1], L = e[_], M = e[_ + 1], q = R - C, W = O - b, B = L - C, G = M - b, te = (q * G - W * B) * 2;
|
|
70755
70756
|
if (Math.abs(te) < 1e-9) {
|
|
70756
70757
|
if (s === void 0) {
|
|
70757
70758
|
s = o = 0;
|
|
@@ -70759,11 +70760,11 @@ let Z9e = class {
|
|
|
70759
70760
|
s += e[de * 2], o += e[de * 2 + 1];
|
|
70760
70761
|
s /= n.length, o /= n.length;
|
|
70761
70762
|
}
|
|
70762
|
-
const X = 1e9 * Math.sign((s -
|
|
70763
|
-
E = (
|
|
70763
|
+
const X = 1e9 * Math.sign((s - C) * G - (o - b) * B);
|
|
70764
|
+
E = (C + L) / 2 - X * G, A = (b + M) / 2 + X * B;
|
|
70764
70765
|
} else {
|
|
70765
70766
|
const X = 1 / te, de = q * q + W * W, be = B * B + G * G;
|
|
70766
|
-
E =
|
|
70767
|
+
E = C + (G * de - W * be) * X, A = b + (q * be - B * de) * X;
|
|
70767
70768
|
}
|
|
70768
70769
|
u[g] = E, u[g + 1] = A;
|
|
70769
70770
|
}
|
|
@@ -71214,14 +71215,14 @@ var Iw = Math.PI / 180, Xm = 64, yS = 2048;
|
|
|
71214
71215
|
function cje() {
|
|
71215
71216
|
var t = [256, 256], e, n, r, i, s, o, u, a = Hie, l = [], c = Math.random, f = {};
|
|
71216
71217
|
f.layout = function() {
|
|
71217
|
-
for (var p = x(P0()), m = gje((t[0] >> 5) * t[1]), g = null, y = l.length, E = -1, A = [], S = l.map((
|
|
71218
|
-
text: e(
|
|
71219
|
-
font: n(
|
|
71220
|
-
style: i(
|
|
71221
|
-
weight: s(
|
|
71222
|
-
rotate: o(
|
|
71223
|
-
size: ~~(r(
|
|
71224
|
-
padding: u(
|
|
71218
|
+
for (var p = x(P0()), m = gje((t[0] >> 5) * t[1]), g = null, y = l.length, E = -1, A = [], S = l.map((_) => ({
|
|
71219
|
+
text: e(_),
|
|
71220
|
+
font: n(_),
|
|
71221
|
+
style: i(_),
|
|
71222
|
+
weight: s(_),
|
|
71223
|
+
rotate: o(_),
|
|
71224
|
+
size: ~~(r(_) + 1e-14),
|
|
71225
|
+
padding: u(_),
|
|
71225
71226
|
xoff: 0,
|
|
71226
71227
|
yoff: 0,
|
|
71227
71228
|
x1: 0,
|
|
@@ -71230,8 +71231,8 @@ function cje() {
|
|
|
71230
71231
|
y0: 0,
|
|
71231
71232
|
hasText: !1,
|
|
71232
71233
|
sprite: null,
|
|
71233
|
-
datum:
|
|
71234
|
-
})).sort((
|
|
71234
|
+
datum: _
|
|
71235
|
+
})).sort((_, C) => C.size - _.size); ++E < y; ) {
|
|
71235
71236
|
var v = S[E];
|
|
71236
71237
|
v.x = t[0] * (c() + 0.5) >> 1, v.y = t[1] * (c() + 0.5) >> 1, fje(p, v, S, E), v.hasText && h(m, v, g) && (A.push(v), g ? dje(g, v) : g = [{
|
|
71237
71238
|
x: v.x + v.x0,
|
|
@@ -71254,7 +71255,7 @@ function cje() {
|
|
|
71254
71255
|
};
|
|
71255
71256
|
}
|
|
71256
71257
|
function h(p, m, g) {
|
|
71257
|
-
for (var y = m.x, E = m.y, A = Math.sqrt(t[0] * t[0] + t[1] * t[1]), S = a(t), v = c() < 0.5 ? 1 : -1,
|
|
71258
|
+
for (var y = m.x, E = m.y, A = Math.sqrt(t[0] * t[0] + t[1] * t[1]), S = a(t), v = c() < 0.5 ? 1 : -1, _ = -v, C, b, R; (C = S(_ += v)) && (b = ~~C[0], R = ~~C[1], !(Math.min(Math.abs(b), Math.abs(R)) >= A)); )
|
|
71258
71259
|
if (m.x = y + b, m.y = E + R, !(m.x + m.x0 < 0 || m.y + m.y0 < 0 || m.x + m.x1 > t[0] || m.y + m.y1 > t[1]) && (!g || !xje(m, p, t[0])) && (!g || hje(m, g))) {
|
|
71259
71260
|
for (var O = m.sprite, L = m.width >> 5, M = t[0] >> 5, q = m.x - (L << 4), W = q & 127, B = 32 - W, G = m.y1 - m.y0, te = (m.y + m.y0) * M + (q >> 5), X, de = 0; de < G; de++) {
|
|
71260
71261
|
X = 0;
|
|
@@ -71305,22 +71306,22 @@ function fje(t, e, n, r) {
|
|
|
71305
71306
|
break;
|
|
71306
71307
|
i.translate((o + (c >> 1)) / s, (u + (x >> 1)) / s), e.rotate && i.rotate(e.rotate * Iw), i.fillText(e.text, 0, 0), e.padding && (i.lineWidth = 2 * e.padding, i.strokeText(e.text, 0, 0)), i.restore(), e.width = c, e.height = x, e.xoff = o, e.yoff = u, e.x1 = c >> 1, e.y1 = x >> 1, e.x0 = -e.x1, e.y0 = -e.y1, e.hasText = !0, o += c;
|
|
71307
71308
|
}
|
|
71308
|
-
for (var v = i.getImageData(0, 0, (Xm << 5) / s, yS / s).data,
|
|
71309
|
+
for (var v = i.getImageData(0, 0, (Xm << 5) / s, yS / s).data, _ = []; --r >= 0; )
|
|
71309
71310
|
if (e = n[r], !!e.hasText) {
|
|
71310
71311
|
for (c = e.width, f = c >> 5, x = e.y1 - e.y0, h = 0; h < x * f; h++)
|
|
71311
|
-
|
|
71312
|
+
_[h] = 0;
|
|
71312
71313
|
if (o = e.xoff, o == null)
|
|
71313
71314
|
return;
|
|
71314
71315
|
u = e.yoff;
|
|
71315
|
-
var
|
|
71316
|
+
var C = 0, b = -1;
|
|
71316
71317
|
for (p = 0; p < x; p++) {
|
|
71317
71318
|
for (h = 0; h < c; h++) {
|
|
71318
71319
|
var R = f * p + (h >> 5), O = v[(u + p) * (Xm << 5) + (o + h) << 2] ? 1 << 31 - h % 32 : 0;
|
|
71319
|
-
|
|
71320
|
+
_[R] |= O, C |= O;
|
|
71320
71321
|
}
|
|
71321
|
-
|
|
71322
|
+
C ? b = p : (e.y0++, x--, p--, u++);
|
|
71322
71323
|
}
|
|
71323
|
-
e.y1 = e.y0 + b, e.sprite =
|
|
71324
|
+
e.y1 = e.y0 + b, e.sprite = _.slice(0, (e.y1 - e.y0) * f);
|
|
71324
71325
|
}
|
|
71325
71326
|
}
|
|
71326
71327
|
}
|
|
@@ -71640,13 +71641,13 @@ Fe(o8, pe, {
|
|
|
71640
71641
|
},
|
|
71641
71642
|
reinit(t, e) {
|
|
71642
71643
|
const n = e.materialize().fork(), r = t.fields, i = t.query, s = this._indices, o = this._dims, u = this.value, a = u.curr(), l = u.prev(), c = u.all(), f = n.rem = n.add, x = n.mod, h = i.length, p = {};
|
|
71643
|
-
let m, g, y, E, A, S, v,
|
|
71644
|
+
let m, g, y, E, A, S, v, _, C;
|
|
71644
71645
|
if (l.set(a), e.rem.length && (A = this.remove(t, e, n)), e.add.length && u.add(e.add), e.mod.length)
|
|
71645
|
-
for (S = {}, E = e.mod, v = 0,
|
|
71646
|
+
for (S = {}, E = e.mod, v = 0, _ = E.length; v < _; ++v)
|
|
71646
71647
|
S[E[v]._index] = 1;
|
|
71647
71648
|
for (v = 0; v < h; ++v)
|
|
71648
|
-
|
|
71649
|
-
for (v = 0,
|
|
71649
|
+
C = r[v], (!o[v] || t.modified("fields", v) || e.modified(C.fields)) && (y = C.fname, (m = p[y]) || (s[y] = g = QH(), p[y] = m = g.insert(C, e.source, 0)), o[v] = zH(g, v, i[v]).onAdd(m, a));
|
|
71650
|
+
for (v = 0, _ = u.data().length; v < _; ++v)
|
|
71650
71651
|
A[v] || (l[v] !== a[v] ? f.push(v) : S[v] && a[v] !== c && x.push(v));
|
|
71651
71652
|
return u.mask = (1 << h) - 1, n;
|
|
71652
71653
|
},
|
|
@@ -72722,20 +72723,20 @@ function ZUe(t, e) {
|
|
|
72722
72723
|
}, e));
|
|
72723
72724
|
}
|
|
72724
72725
|
function eqe(t, e, n, r) {
|
|
72725
|
-
for (var i = this.context.data[t], s = i ? i.values.value : [], o = {}, u = {}, a = {}, l, c, f, x, h, p, m, g, y, E, A = s.length, S = 0, v,
|
|
72726
|
+
for (var i = this.context.data[t], s = i ? i.values.value : [], o = {}, u = {}, a = {}, l, c, f, x, h, p, m, g, y, E, A = s.length, S = 0, v, _; S < A; ++S)
|
|
72726
72727
|
if (l = s[S], x = l.unit, c = l.fields, f = l.values, c && f) {
|
|
72727
|
-
for (v = 0,
|
|
72728
|
+
for (v = 0, _ = c.length; v < _; ++v)
|
|
72728
72729
|
h = c[v], m = o[h.field] || (o[h.field] = {}), g = m[x] || (m[x] = []), a[h.field] = y = h.type.charAt(0), E = Mw[`${y}_union`], m[x] = E(g, ke(f[v]));
|
|
72729
|
-
n && (g = u[x] || (u[x] = []), g.push(ke(f).reduce((
|
|
72730
|
+
n && (g = u[x] || (u[x] = []), g.push(ke(f).reduce((C, b, R) => (C[c[R].field] = b, C), {})));
|
|
72730
72731
|
} else
|
|
72731
72732
|
h = wu, p = ry(l), m = o[h] || (o[h] = {}), g = m[x] || (m[x] = []), g.push(p), n && (g = u[x] || (u[x] = []), g.push({
|
|
72732
72733
|
[wu]: p
|
|
72733
72734
|
}));
|
|
72734
|
-
if (e = e || ZH, o[wu] ? o[wu] = Mw[`${wu}_${e}`](...Object.values(o[wu])) : Object.keys(o).forEach((
|
|
72735
|
-
o[
|
|
72735
|
+
if (e = e || ZH, o[wu] ? o[wu] = Mw[`${wu}_${e}`](...Object.values(o[wu])) : Object.keys(o).forEach((C) => {
|
|
72736
|
+
o[C] = Object.keys(o[C]).map((b) => o[C][b]).reduce((b, R) => b === void 0 ? R : Mw[`${a[C]}_${e}`](b, R));
|
|
72736
72737
|
}), s = Object.keys(u), n && s.length) {
|
|
72737
|
-
const
|
|
72738
|
-
o[
|
|
72738
|
+
const C = r ? qUe : UUe;
|
|
72739
|
+
o[C] = e === ZH ? {
|
|
72739
72740
|
[ez]: s.reduce((b, R) => (b.push(...u[R]), b), [])
|
|
72740
72741
|
} : {
|
|
72741
72742
|
[HUe]: s.map((b) => ({
|
|
@@ -75014,12 +75015,12 @@ function bGe(t, e, n, r, i) {
|
|
|
75014
75015
|
opacity: vt
|
|
75015
75016
|
}
|
|
75016
75017
|
};
|
|
75017
|
-
let v = null,
|
|
75018
|
-
t.fill || (v = e.symbolBaseFillColor,
|
|
75018
|
+
let v = null, _ = null;
|
|
75019
|
+
t.fill || (v = e.symbolBaseFillColor, _ = e.symbolBaseStrokeColor), wr(g, {
|
|
75019
75020
|
fill: s("symbolFillColor", v),
|
|
75020
75021
|
shape: s("symbolType"),
|
|
75021
75022
|
size: s("symbolSize"),
|
|
75022
|
-
stroke: s("symbolStrokeColor",
|
|
75023
|
+
stroke: s("symbolStrokeColor", _),
|
|
75023
75024
|
strokeDash: s("symbolDash"),
|
|
75024
75025
|
strokeDashOffset: s("symbolDashOffset"),
|
|
75025
75026
|
strokeWidth: s("symbolStrokeWidth")
|
|
@@ -75032,7 +75033,7 @@ function bGe(t, e, n, r, i) {
|
|
|
75032
75033
|
field: xo
|
|
75033
75034
|
});
|
|
75034
75035
|
});
|
|
75035
|
-
const
|
|
75036
|
+
const C = ks({
|
|
75036
75037
|
type: yGe,
|
|
75037
75038
|
role: Yze,
|
|
75038
75039
|
key: xo,
|
|
@@ -75115,7 +75116,7 @@ function bGe(t, e, n, r, i) {
|
|
|
75115
75116
|
role: b8,
|
|
75116
75117
|
from: r,
|
|
75117
75118
|
encode: D2(g, o, y3),
|
|
75118
|
-
marks: [
|
|
75119
|
+
marks: [C, R],
|
|
75119
75120
|
name: a,
|
|
75120
75121
|
interactive: u,
|
|
75121
75122
|
sort: S
|
|
@@ -75426,9 +75427,9 @@ function lN(t, e) {
|
|
|
75426
75427
|
a = c = e.add(Use(kse(t.encode, t.type, n, t.style, e, {
|
|
75427
75428
|
mod: !1,
|
|
75428
75429
|
pulse: y
|
|
75429
|
-
}))), a.params.parent = e.encode(), t.transform && t.transform.forEach((
|
|
75430
|
-
const
|
|
75431
|
-
(b.generates || b.changes) && ve("Mark transforms should not generate new data."), b.nomod || (c.params.mod = !0),
|
|
75430
|
+
}))), a.params.parent = e.encode(), t.transform && t.transform.forEach((_) => {
|
|
75431
|
+
const C = $8(_, e), b = C.metadata;
|
|
75432
|
+
(b.generates || b.changes) && ve("Mark transforms should not generate new data."), b.nomod || (c.params.mod = !0), C.params.pulse = Ke(a), e.add(a = C);
|
|
75432
75433
|
}), t.sort && (a = e.add(qQe({
|
|
75433
75434
|
sort: e.compareRef(t.sort),
|
|
75434
75435
|
pulse: Ke(a)
|
|
@@ -75450,8 +75451,8 @@ function lN(t, e) {
|
|
|
75450
75451
|
})), v = e.add(_d({
|
|
75451
75452
|
pulse: Ke(S)
|
|
75452
75453
|
}, void 0, e.parent()));
|
|
75453
|
-
t.name != null && (f = t.name, e.addData(f, new $x(e, l, S, v)), t.on && t.on.forEach((
|
|
75454
|
-
(
|
|
75454
|
+
t.name != null && (f = t.name, e.addData(f, new $x(e, l, S, v)), t.on && t.on.forEach((_) => {
|
|
75455
|
+
(_.insert || _.remove || _.toggle) && ve("Marks only support modify triggers."), noe(_, e, f);
|
|
75455
75456
|
}));
|
|
75456
75457
|
}
|
|
75457
75458
|
function WGe(t, e, n) {
|
|
@@ -75994,7 +75995,7 @@ function SWe(t, e, n, r, i, s) {
|
|
|
75994
75995
|
opacity: vt,
|
|
75995
75996
|
x: pr(u, y, g),
|
|
75996
75997
|
y: Ho(u, y, g)
|
|
75997
|
-
},
|
|
75998
|
+
}, _ = {
|
|
75998
75999
|
enter: v,
|
|
75999
76000
|
update: m = {
|
|
76000
76001
|
opacity: ho,
|
|
@@ -76012,10 +76013,10 @@ function SWe(t, e, n, r, i, s) {
|
|
|
76012
76013
|
y: v.y
|
|
76013
76014
|
}
|
|
76014
76015
|
};
|
|
76015
|
-
wr(
|
|
76016
|
+
wr(_, {
|
|
76016
76017
|
dx: !x && p ? pr(u, S) : null,
|
|
76017
76018
|
dy: !h && p ? Ho(u, S) : null
|
|
76018
|
-
}), wr(
|
|
76019
|
+
}), wr(_, {
|
|
76019
76020
|
angle: o("labelAngle"),
|
|
76020
76021
|
fill: o("labelColor"),
|
|
76021
76022
|
fillOpacity: o("labelOpacity"),
|
|
@@ -76029,16 +76030,16 @@ function SWe(t, e, n, r, i, s) {
|
|
|
76029
76030
|
align: x,
|
|
76030
76031
|
baseline: h
|
|
76031
76032
|
});
|
|
76032
|
-
const
|
|
76033
|
+
const C = o("labelBound");
|
|
76033
76034
|
let b = o("labelOverlap");
|
|
76034
|
-
return b = b ||
|
|
76035
|
+
return b = b || C ? {
|
|
76035
76036
|
separation: o("labelSeparation"),
|
|
76036
76037
|
method: b,
|
|
76037
76038
|
order: "datum.index",
|
|
76038
|
-
bound:
|
|
76039
|
+
bound: C ? {
|
|
76039
76040
|
scale: a,
|
|
76040
76041
|
orient: u,
|
|
76041
|
-
tolerance:
|
|
76042
|
+
tolerance: C
|
|
76042
76043
|
} : null
|
|
76043
76044
|
} : void 0, m.align !== E && (m.align = Eh(m.align, E)), m.baseline !== A && (m.baseline = Eh(m.baseline, A)), ks({
|
|
76044
76045
|
type: Cd,
|
|
@@ -76046,7 +76047,7 @@ function SWe(t, e, n, r, i, s) {
|
|
|
76046
76047
|
style: m3,
|
|
76047
76048
|
key: xo,
|
|
76048
76049
|
from: r,
|
|
76049
|
-
encode:
|
|
76050
|
+
encode: _,
|
|
76050
76051
|
overlap: b
|
|
76051
76052
|
}, n);
|
|
76052
76053
|
}
|
|
@@ -76692,7 +76693,7 @@ function IWe(t, e) {
|
|
|
76692
76693
|
let c = 0, f = 0, x = -90, h = "right", p = "middle", m = 0, g = 0;
|
|
76693
76694
|
const y = l !== "spark", E = l !== "spark", A = e.fields[Vf(t)];
|
|
76694
76695
|
let S = l !== "spark" ? kA - 1 : 0, v;
|
|
76695
|
-
const
|
|
76696
|
+
const _ = Vf(r), C = e.fields[_].max, b = Dt("linear")().domain([0, C]).nice().range([o, 0]), R = b.domain();
|
|
76696
76697
|
if (E) {
|
|
76697
76698
|
const q = b.domain().at(1), B = DZ().format(",")(q);
|
|
76698
76699
|
f = s1(B, "Inter, sans-serif 12px") + 5 + 31;
|
|
@@ -77003,69 +77004,69 @@ var xoe = { exports: {} };
|
|
|
77003
77004
|
typeof h == "object" && (p = h.depth, m = h.prototype, g = h.includeNonEnumerable, h = h.circular);
|
|
77004
77005
|
var y = [], E = [], A = typeof Buffer < "u";
|
|
77005
77006
|
typeof h > "u" && (h = !0), typeof p > "u" && (p = 1 / 0);
|
|
77006
|
-
function S(v,
|
|
77007
|
+
function S(v, _) {
|
|
77007
77008
|
if (v === null)
|
|
77008
77009
|
return null;
|
|
77009
|
-
if (
|
|
77010
|
+
if (_ === 0)
|
|
77010
77011
|
return v;
|
|
77011
|
-
var
|
|
77012
|
+
var C, b;
|
|
77012
77013
|
if (typeof v != "object")
|
|
77013
77014
|
return v;
|
|
77014
77015
|
if (n(v, r))
|
|
77015
|
-
|
|
77016
|
+
C = new r();
|
|
77016
77017
|
else if (n(v, i))
|
|
77017
|
-
|
|
77018
|
+
C = new i();
|
|
77018
77019
|
else if (n(v, s))
|
|
77019
|
-
|
|
77020
|
+
C = new s(function(te, X) {
|
|
77020
77021
|
v.then(function(de) {
|
|
77021
|
-
te(S(de,
|
|
77022
|
+
te(S(de, _ - 1));
|
|
77022
77023
|
}, function(de) {
|
|
77023
|
-
X(S(de,
|
|
77024
|
+
X(S(de, _ - 1));
|
|
77024
77025
|
});
|
|
77025
77026
|
});
|
|
77026
77027
|
else if (o.__isArray(v))
|
|
77027
|
-
|
|
77028
|
+
C = [];
|
|
77028
77029
|
else if (o.__isRegExp(v))
|
|
77029
|
-
|
|
77030
|
+
C = new RegExp(v.source, f(v)), v.lastIndex && (C.lastIndex = v.lastIndex);
|
|
77030
77031
|
else if (o.__isDate(v))
|
|
77031
|
-
|
|
77032
|
+
C = new Date(v.getTime());
|
|
77032
77033
|
else {
|
|
77033
77034
|
if (A && Buffer.isBuffer(v))
|
|
77034
|
-
return Buffer.allocUnsafe ?
|
|
77035
|
-
n(v, Error) ?
|
|
77035
|
+
return Buffer.allocUnsafe ? C = Buffer.allocUnsafe(v.length) : C = new Buffer(v.length), v.copy(C), C;
|
|
77036
|
+
n(v, Error) ? C = Object.create(v) : typeof m > "u" ? (b = Object.getPrototypeOf(v), C = Object.create(b)) : (C = Object.create(m), b = m);
|
|
77036
77037
|
}
|
|
77037
77038
|
if (h) {
|
|
77038
77039
|
var R = y.indexOf(v);
|
|
77039
77040
|
if (R != -1)
|
|
77040
77041
|
return E[R];
|
|
77041
|
-
y.push(v), E.push(
|
|
77042
|
+
y.push(v), E.push(C);
|
|
77042
77043
|
}
|
|
77043
77044
|
n(v, r) && v.forEach(function(te, X) {
|
|
77044
|
-
var de = S(X,
|
|
77045
|
-
|
|
77045
|
+
var de = S(X, _ - 1), be = S(te, _ - 1);
|
|
77046
|
+
C.set(de, be);
|
|
77046
77047
|
}), n(v, i) && v.forEach(function(te) {
|
|
77047
|
-
var X = S(te,
|
|
77048
|
-
|
|
77048
|
+
var X = S(te, _ - 1);
|
|
77049
|
+
C.add(X);
|
|
77049
77050
|
});
|
|
77050
77051
|
for (var O in v) {
|
|
77051
77052
|
var L;
|
|
77052
|
-
b && (L = Object.getOwnPropertyDescriptor(b, O)), !(L && L.set == null) && (
|
|
77053
|
+
b && (L = Object.getOwnPropertyDescriptor(b, O)), !(L && L.set == null) && (C[O] = S(v[O], _ - 1));
|
|
77053
77054
|
}
|
|
77054
77055
|
if (Object.getOwnPropertySymbols)
|
|
77055
77056
|
for (var M = Object.getOwnPropertySymbols(v), O = 0; O < M.length; O++) {
|
|
77056
77057
|
var q = M[O], W = Object.getOwnPropertyDescriptor(v, q);
|
|
77057
|
-
W && !W.enumerable && !g || (
|
|
77058
|
+
W && !W.enumerable && !g || (C[q] = S(v[q], _ - 1), W.enumerable || Object.defineProperty(C, q, {
|
|
77058
77059
|
enumerable: !1
|
|
77059
77060
|
}));
|
|
77060
77061
|
}
|
|
77061
77062
|
if (g)
|
|
77062
77063
|
for (var B = Object.getOwnPropertyNames(v), O = 0; O < B.length; O++) {
|
|
77063
77064
|
var G = B[O], W = Object.getOwnPropertyDescriptor(v, G);
|
|
77064
|
-
W && W.enumerable || (
|
|
77065
|
+
W && W.enumerable || (C[G] = S(v[G], _ - 1), Object.defineProperty(C, G, {
|
|
77065
77066
|
enumerable: !1
|
|
77066
77067
|
}));
|
|
77067
77068
|
}
|
|
77068
|
-
return
|
|
77069
|
+
return C;
|
|
77069
77070
|
}
|
|
77070
77071
|
return S(x, p);
|
|
77071
77072
|
}
|
|
@@ -80295,7 +80296,7 @@ function Uue(t, { config: e }) {
|
|
|
80295
80296
|
l,
|
|
80296
80297
|
// TODO: https://github.com/vega/vega-lite/issues/6245
|
|
80297
80298
|
e
|
|
80298
|
-
), x = jue(c), { bins: h, timeUnits: p, transform: m, continuousAxisChannelDef: g, continuousAxis: y, groupby: E, aggregate: A, encodingWithoutContinuousAxis: S, ticksOrient: v, boxOrient:
|
|
80299
|
+
), x = jue(c), { bins: h, timeUnits: p, transform: m, continuousAxisChannelDef: g, continuousAxis: y, groupby: E, aggregate: A, encodingWithoutContinuousAxis: S, ticksOrient: v, boxOrient: _, customTooltipWithoutAggregatedField: C } = xXe(t, c, e), { color: b, size: R } = S, O = RS(S, ["color", "size"]), L = (J) => D7(l, y, g, J, e.boxplot), M = L(O), q = L(S), W = L(Object.assign(Object.assign({}, O), R ? { size: R } : {})), B = M5([
|
|
80299
80300
|
{ fieldPrefix: x === "min-max" ? "upper_whisker_" : "max_", titlePrefix: "Max" },
|
|
80300
80301
|
{ fieldPrefix: "upper_box_", titlePrefix: "Q3" },
|
|
80301
80302
|
{ fieldPrefix: "mid_box_", titlePrefix: "Median" },
|
|
@@ -80338,7 +80339,7 @@ function Uue(t, { config: e }) {
|
|
|
80338
80339
|
...x !== "tukey" ? X : [],
|
|
80339
80340
|
...q({
|
|
80340
80341
|
partName: "box",
|
|
80341
|
-
mark: Object.assign(Object.assign({ type: "bar" }, f ? { size: f } : {}), { orient:
|
|
80342
|
+
mark: Object.assign(Object.assign({ type: "bar" }, f ? { size: f } : {}), { orient: _, invalid: null, ariaRoleDescription: "box" }),
|
|
80342
80343
|
positionPrefix: "lower_box",
|
|
80343
80344
|
endPositionPrefix: "upper_box",
|
|
80344
80345
|
extraEncoding: B
|
|
@@ -80392,7 +80393,7 @@ function Uue(t, { config: e }) {
|
|
|
80392
80393
|
}, V = RS(O, ["tooltip"]), { scale: D, axis: $ } = g, j = N7(g), Q = po($, ["title"]), I = kue(l, "outliers", e.boxplot, {
|
|
80393
80394
|
transform: [{ filter: `(${k} < ${T}) || (${k} > ${w})` }],
|
|
80394
80395
|
mark: "point",
|
|
80395
|
-
encoding: Object.assign(Object.assign(Object.assign({ [y]: Object.assign(Object.assign(Object.assign({ field: g.field, type: g.type }, j !== void 0 ? { title: j } : {}), D !== void 0 ? { scale: D } : {}), Ht(Q) ? {} : { axis: Q }) }, V), b ? { color: b } : {}),
|
|
80396
|
+
encoding: Object.assign(Object.assign(Object.assign({ [y]: Object.assign(Object.assign(Object.assign({ field: g.field, type: g.type }, j !== void 0 ? { title: j } : {}), D !== void 0 ? { scale: D } : {}), Ht(Q) ? {} : { axis: Q }) }, V), b ? { color: b } : {}), C ? { tooltip: C } : {})
|
|
80396
80397
|
})[0];
|
|
80397
80398
|
let H;
|
|
80398
80399
|
const P = [...h, ...p, z];
|
|
@@ -80456,7 +80457,7 @@ function xXe(t, e, n) {
|
|
|
80456
80457
|
}
|
|
80457
80458
|
], c = t.encoding, f = s;
|
|
80458
80459
|
c[f];
|
|
80459
|
-
const x = RS(c, [typeof f == "symbol" ? f : f + ""]), { customTooltipWithoutAggregatedField: h, filteredEncoding: p } = lXe(x), { bins: m, timeUnits: g, aggregate: y, groupby: E, encoding: A } = Iue(p, n), S = r === "vertical" ? "horizontal" : "vertical", v = r,
|
|
80460
|
+
const x = RS(c, [typeof f == "symbol" ? f : f + ""]), { customTooltipWithoutAggregatedField: h, filteredEncoding: p } = lXe(x), { bins: m, timeUnits: g, aggregate: y, groupby: E, encoding: A } = Iue(p, n), S = r === "vertical" ? "horizontal" : "vertical", v = r, _ = [
|
|
80460
80461
|
...m,
|
|
80461
80462
|
...g,
|
|
80462
80463
|
{
|
|
@@ -80468,7 +80469,7 @@ function xXe(t, e, n) {
|
|
|
80468
80469
|
return {
|
|
80469
80470
|
bins: m,
|
|
80470
80471
|
timeUnits: g,
|
|
80471
|
-
transform:
|
|
80472
|
+
transform: _,
|
|
80472
80473
|
groupby: E,
|
|
80473
80474
|
aggregate: y,
|
|
80474
80475
|
continuousAxisChannelDef: i,
|
|
@@ -80573,15 +80574,15 @@ function zue(t, e, n) {
|
|
|
80573
80574
|
var r;
|
|
80574
80575
|
const { mark: i, encoding: s, params: o, projection: u } = t, a = iQ(t, ["mark", "encoding", "params", "projection"]), l = sa(i) ? i : { type: i };
|
|
80575
80576
|
o && Te(Moe(e));
|
|
80576
|
-
const { orient: c, inputType: f } = pXe(t, e), { continuousAxisChannelDef: x, continuousAxisChannelDef2: h, continuousAxisChannelDefError: p, continuousAxisChannelDefError2: m, continuousAxis: g } = Pue(t, c, e), { errorBarSpecificAggregate: y, postAggregateCalculates: E, tooltipSummary: A, tooltipTitleWithFieldName: S } = EXe(l, x, h, p, m, f, e, n), v = s,
|
|
80577
|
-
v[C];
|
|
80578
|
-
const _ = g === "x" ? "x2" : "y2";
|
|
80577
|
+
const { orient: c, inputType: f } = pXe(t, e), { continuousAxisChannelDef: x, continuousAxisChannelDef2: h, continuousAxisChannelDefError: p, continuousAxisChannelDefError2: m, continuousAxis: g } = Pue(t, c, e), { errorBarSpecificAggregate: y, postAggregateCalculates: E, tooltipSummary: A, tooltipTitleWithFieldName: S } = EXe(l, x, h, p, m, f, e, n), v = s, _ = g;
|
|
80579
80578
|
v[_];
|
|
80579
|
+
const C = g === "x" ? "x2" : "y2";
|
|
80580
|
+
v[C];
|
|
80580
80581
|
const b = g === "x" ? "xError" : "yError";
|
|
80581
80582
|
v[b];
|
|
80582
80583
|
const R = g === "x" ? "xError2" : "yError2";
|
|
80583
80584
|
v[R];
|
|
80584
|
-
const O = iQ(v, [typeof
|
|
80585
|
+
const O = iQ(v, [typeof _ == "symbol" ? _ : _ + "", typeof C == "symbol" ? C : C + "", typeof b == "symbol" ? b : b + "", typeof R == "symbol" ? R : R + ""]), { bins: L, timeUnits: M, aggregate: q, groupby: W, encoding: B } = Iue(O, n), G = [...q, ...y], te = f !== "raw" ? [] : W, X = M5(A, x, B, S);
|
|
80585
80586
|
return {
|
|
80586
80587
|
transform: [
|
|
80587
80588
|
...(r = a.transform) !== null && r !== void 0 ? r : [],
|
|
@@ -83030,7 +83031,7 @@ function cZe(t, e, n) {
|
|
|
83030
83031
|
m = m || {
|
|
83031
83032
|
[c]: lZe(c, h || a, l, s, g)
|
|
83032
83033
|
};
|
|
83033
|
-
const y = (l == null ? void 0 : l.get("type")) !== "band" || !("band" in m[c]) ? "middle" : "top", E = Aae(e, r, s, y), A = E === "xc" || E === "yc", { offset: S, offsetType: v } = dy({ channel: e, markDef: r, encoding: i, model: n, bandPosition: A ? 0.5 : 0 }),
|
|
83034
|
+
const y = (l == null ? void 0 : l.get("type")) !== "band" || !("band" in m[c]) ? "middle" : "top", E = Aae(e, r, s, y), A = E === "xc" || E === "yc", { offset: S, offsetType: v } = dy({ channel: e, markDef: r, encoding: i, model: n, bandPosition: A ? 0.5 : 0 }), _ = g7({
|
|
83034
83035
|
channel: e,
|
|
83035
83036
|
channelDef: t,
|
|
83036
83037
|
markDef: r,
|
|
@@ -83043,13 +83044,13 @@ function cZe(t, e, n) {
|
|
|
83043
83044
|
bandPosition: A ? v === "encoding" ? 0 : 0.5 : Ye(g) ? { signal: `(1-${g})/2` } : B2(g) ? (1 - g.band) / 2 : 0
|
|
83044
83045
|
});
|
|
83045
83046
|
if (c)
|
|
83046
|
-
return Object.assign({ [E]:
|
|
83047
|
+
return Object.assign({ [E]: _ }, m);
|
|
83047
83048
|
{
|
|
83048
|
-
const
|
|
83049
|
+
const C = cc(f), b = m[c], R = S ? Object.assign(Object.assign({}, b), { offset: S }) : b;
|
|
83049
83050
|
return {
|
|
83050
|
-
[E]:
|
|
83051
|
+
[E]: _,
|
|
83051
83052
|
// posRef might be an array that wraps position invalid test
|
|
83052
|
-
[
|
|
83053
|
+
[C]: _e(_) ? [_[0], Object.assign(Object.assign({}, _[1]), { offset: R })] : Object.assign(Object.assign({}, _), { offset: R })
|
|
83053
83054
|
};
|
|
83054
83055
|
}
|
|
83055
83056
|
}
|
|
@@ -83067,32 +83068,32 @@ function Cm(t, e, n, r, i) {
|
|
|
83067
83068
|
}
|
|
83068
83069
|
function fZe({ fieldDef: t, fieldDef2: e, channel: n, model: r }) {
|
|
83069
83070
|
var i, s, o;
|
|
83070
|
-
const { config: u, markDef: a, encoding: l } = r, c = r.getScaleComponent(n), f = r.scaleName(n), x = c ? c.get("type") : void 0, h = c.get("reverse"), p = Sue({ channel: n, fieldDef: t, markDef: a, config: u, scaleType: x }), m = (i = r.component.axes[n]) === null || i === void 0 ? void 0 : i[0], g = (s = m == null ? void 0 : m.get("translate")) !== null && s !== void 0 ? s : 0.5, y = Lr(n) && (o = Bt("binSpacing", a, u)) !== null && o !== void 0 ? o : 0, E = t0(n), A = cc(n), S = cc(E), { offset: v } = dy({ channel: n, markDef: a, encoding: l, model: r, bandPosition: 0 }),
|
|
83071
|
+
const { config: u, markDef: a, encoding: l } = r, c = r.getScaleComponent(n), f = r.scaleName(n), x = c ? c.get("type") : void 0, h = c.get("reverse"), p = Sue({ channel: n, fieldDef: t, markDef: a, config: u, scaleType: x }), m = (i = r.component.axes[n]) === null || i === void 0 ? void 0 : i[0], g = (s = m == null ? void 0 : m.get("translate")) !== null && s !== void 0 ? s : 0.5, y = Lr(n) && (o = Bt("binSpacing", a, u)) !== null && o !== void 0 ? o : 0, E = t0(n), A = cc(n), S = cc(E), { offset: v } = dy({ channel: n, markDef: a, encoding: l, model: r, bandPosition: 0 }), _ = Ye(p) ? { signal: `(1-${p.signal})/2` } : B2(p) ? (1 - p.band) / 2 : 0.5;
|
|
83071
83072
|
if (Xt(t.bin) || t.timeUnit)
|
|
83072
83073
|
return {
|
|
83073
83074
|
[S]: SQ({
|
|
83074
83075
|
fieldDef: t,
|
|
83075
83076
|
scaleName: f,
|
|
83076
|
-
bandPosition:
|
|
83077
|
+
bandPosition: _,
|
|
83077
83078
|
offset: Cm(E, y, h, g, v)
|
|
83078
83079
|
}),
|
|
83079
83080
|
[A]: SQ({
|
|
83080
83081
|
fieldDef: t,
|
|
83081
83082
|
scaleName: f,
|
|
83082
|
-
bandPosition: Ye(
|
|
83083
|
+
bandPosition: Ye(_) ? { signal: `1-${_.signal}` } : 1 - _,
|
|
83083
83084
|
offset: Cm(n, y, h, g, v)
|
|
83084
83085
|
})
|
|
83085
83086
|
};
|
|
83086
83087
|
if (Ei(t.bin)) {
|
|
83087
|
-
const
|
|
83088
|
+
const C = nx(t, f, {}, { offset: Cm(E, y, h, g, v) });
|
|
83088
83089
|
if (Ie(e))
|
|
83089
83090
|
return {
|
|
83090
|
-
[S]:
|
|
83091
|
+
[S]: C,
|
|
83091
83092
|
[A]: nx(e, f, {}, { offset: Cm(n, y, h, g, v) })
|
|
83092
83093
|
};
|
|
83093
83094
|
if (Rd(t.bin) && t.bin.step)
|
|
83094
83095
|
return {
|
|
83095
|
-
[S]:
|
|
83096
|
+
[S]: C,
|
|
83096
83097
|
[A]: {
|
|
83097
83098
|
signal: `scale("${f}", ${$e(t, { expr: "datum" })} + ${t.bin.step})`,
|
|
83098
83099
|
offset: Cm(n, y, h, g, v)
|
|
@@ -83356,10 +83357,10 @@ const Tae = "_translate_anchor", Rae = "_translate_delta", yZe = {
|
|
|
83356
83357
|
};
|
|
83357
83358
|
function CQ(t, e, n, r, i) {
|
|
83358
83359
|
var s, o;
|
|
83359
|
-
const u = e.name, a = u + Tae, l = u + Rae, c = n.channel, f = xc.defined(e), x = i.filter((
|
|
83360
|
+
const u = e.name, a = u + Tae, l = u + Rae, c = n.channel, f = xc.defined(e), x = i.filter((C) => C.name === n.signals[f ? "data" : "visual"])[0], h = t.getSizeSignalRef(r).signal, p = t.getScaleComponent(c), m = p.get("type"), g = p.get("reverse"), y = f ? c === mn ? g ? "" : "-" : g ? "-" : "" : "", E = `${a}.extent_${c}`, A = `${y}${l}.${c} / ${f ? `${h}` : `span(${E})`}`, S = f ? m === "log" ? "panLog" : m === "symlog" ? "panSymlog" : m === "pow" ? "panPow" : "panLinear" : "panLinear", v = f ? m === "pow" ? `, ${(s = p.get("exponent")) !== null && s !== void 0 ? s : 1}` : m === "symlog" ? `, ${(o = p.get("constant")) !== null && o !== void 0 ? o : 1}` : "" : "", _ = `${S}(${E}, ${A}${v})`;
|
|
83360
83361
|
x.on.push({
|
|
83361
83362
|
events: { signal: l },
|
|
83362
|
-
update: f ?
|
|
83363
|
+
update: f ? _ : `clampRange(${_}, 0, ${h})`
|
|
83363
83364
|
});
|
|
83364
83365
|
}
|
|
83365
83366
|
const Oae = "_zoom_anchor", Nae = "_zoom_delta", EZe = {
|
|
@@ -83558,19 +83559,19 @@ function Zm(t, e, n, r = { header: !1 }) {
|
|
|
83558
83559
|
else if (O3(g)) {
|
|
83559
83560
|
const { condition: y } = g, E = qA(g, ["condition"]), A = ke(y), S = nQ[p];
|
|
83560
83561
|
if (S) {
|
|
83561
|
-
const { vgProp: v, part:
|
|
83562
|
+
const { vgProp: v, part: _ } = S, C = [
|
|
83562
83563
|
...A.map((b) => {
|
|
83563
83564
|
const { test: R } = b, O = qA(b, ["test"]);
|
|
83564
83565
|
return Object.assign({ test: k_(null, R) }, O);
|
|
83565
83566
|
}),
|
|
83566
83567
|
E
|
|
83567
83568
|
];
|
|
83568
|
-
Jw(h,
|
|
83569
|
+
Jw(h, _, v, C), delete h[p];
|
|
83569
83570
|
} else if (S === null) {
|
|
83570
83571
|
const v = {
|
|
83571
|
-
signal: A.map((
|
|
83572
|
-
const { test:
|
|
83573
|
-
return `${k_(null,
|
|
83572
|
+
signal: A.map((_) => {
|
|
83573
|
+
const { test: C } = _, b = qA(_, ["test"]);
|
|
83574
|
+
return `${k_(null, C)} ? ${Uz(b)} : `;
|
|
83574
83575
|
}).join("") + Uz(E)
|
|
83575
83576
|
};
|
|
83576
83577
|
h[p] = v;
|
|
@@ -84157,12 +84158,12 @@ function GZe(t, { fieldOrDatumDef: e, model: n, channel: r, legendCmpt: i, legen
|
|
|
84157
84158
|
return;
|
|
84158
84159
|
const { markDef: p, encoding: m, config: g, mark: y } = n, E = p.filled && y !== "trail";
|
|
84159
84160
|
let A = Object.assign(Object.assign({}, FVe({}, n, CKe)), Eae(n, { filled: E }));
|
|
84160
|
-
const S = (o = i.get("symbolOpacity")) !== null && o !== void 0 ? o : g.legend.symbolOpacity, v = (u = i.get("symbolFillColor")) !== null && u !== void 0 ? u : g.legend.symbolFillColor,
|
|
84161
|
+
const S = (o = i.get("symbolOpacity")) !== null && o !== void 0 ? o : g.legend.symbolOpacity, v = (u = i.get("symbolFillColor")) !== null && u !== void 0 ? u : g.legend.symbolFillColor, _ = (a = i.get("symbolStrokeColor")) !== null && a !== void 0 ? a : g.legend.symbolStrokeColor, C = S === void 0 ? (l = Vae(m.opacity)) !== null && l !== void 0 ? l : p.opacity : void 0;
|
|
84161
84162
|
if (A.fill) {
|
|
84162
84163
|
if (r === "fill" || E && r === us)
|
|
84163
84164
|
delete A.fill;
|
|
84164
84165
|
else if (A.fill.field)
|
|
84165
|
-
v ? delete A.fill : (A.fill = tn((c = g.legend.symbolBaseFillColor) !== null && c !== void 0 ? c : "black"), A.fillOpacity = tn(
|
|
84166
|
+
v ? delete A.fill : (A.fill = tn((c = g.legend.symbolBaseFillColor) !== null && c !== void 0 ? c : "black"), A.fillOpacity = tn(C ?? 1));
|
|
84166
84167
|
else if (_e(A.fill)) {
|
|
84167
84168
|
const b = (h = (x = X5((f = m.fill) !== null && f !== void 0 ? f : m.color)) !== null && x !== void 0 ? x : p.fill) !== null && h !== void 0 ? h : E && p.color;
|
|
84168
84169
|
b && (A.fill = tn(b));
|
|
@@ -84171,7 +84172,7 @@ function GZe(t, { fieldOrDatumDef: e, model: n, channel: r, legendCmpt: i, legen
|
|
|
84171
84172
|
if (A.stroke) {
|
|
84172
84173
|
if (r === "stroke" || !E && r === us)
|
|
84173
84174
|
delete A.stroke;
|
|
84174
|
-
else if (A.stroke.field ||
|
|
84175
|
+
else if (A.stroke.field || _)
|
|
84175
84176
|
delete A.stroke;
|
|
84176
84177
|
else if (_e(A.stroke)) {
|
|
84177
84178
|
const b = er(X5(m.stroke || m.color), p.stroke, E ? p.color : void 0);
|
|
@@ -84181,9 +84182,9 @@ function GZe(t, { fieldOrDatumDef: e, model: n, channel: r, legendCmpt: i, legen
|
|
|
84181
84182
|
if (r !== e0) {
|
|
84182
84183
|
const b = Ie(e) && Kae(n, i, e);
|
|
84183
84184
|
b ? A.opacity = [
|
|
84184
|
-
Object.assign({ test: b }, tn(
|
|
84185
|
+
Object.assign({ test: b }, tn(C ?? 1)),
|
|
84185
84186
|
tn(g.legend.unselectedOpacity)
|
|
84186
|
-
] :
|
|
84187
|
+
] : C && (A.opacity = tn(C));
|
|
84187
84188
|
}
|
|
84188
84189
|
return A = Object.assign(Object.assign({}, A), t), Ht(A) ? void 0 : A;
|
|
84189
84190
|
}
|
|
@@ -84397,19 +84398,19 @@ function uet(t, e) {
|
|
|
84397
84398
|
legendType: g,
|
|
84398
84399
|
direction: y
|
|
84399
84400
|
};
|
|
84400
|
-
for (const
|
|
84401
|
-
if (g === "gradient" &&
|
|
84401
|
+
for (const C of Wae) {
|
|
84402
|
+
if (g === "gradient" && C.startsWith("symbol") || g === "symbol" && C.startsWith("gradient"))
|
|
84402
84403
|
continue;
|
|
84403
|
-
const b =
|
|
84404
|
+
const b = C in DQ ? DQ[C](E) : s[C];
|
|
84404
84405
|
if (b !== void 0) {
|
|
84405
|
-
const R = oet(b,
|
|
84406
|
-
(R || a.legend[
|
|
84406
|
+
const R = oet(b, C, s, t.fieldDef(e));
|
|
84407
|
+
(R || a.legend[C] === void 0) && c.set(C, b, R);
|
|
84407
84408
|
}
|
|
84408
84409
|
}
|
|
84409
|
-
const A = (r = s == null ? void 0 : s.encoding) !== null && r !== void 0 ? r : {}, S = c.get("selections"), v = {},
|
|
84410
|
-
for (const
|
|
84411
|
-
const b = Qae((i = A[
|
|
84412
|
-
R !== void 0 && !Ht(R) && (v[
|
|
84410
|
+
const A = (r = s == null ? void 0 : s.encoding) !== null && r !== void 0 ? r : {}, S = c.get("selections"), v = {}, _ = { fieldOrDatumDef: h, model: t, channel: e, legendCmpt: c, legendType: g };
|
|
84411
|
+
for (const C of ["labels", "legend", "title", "symbols", "gradient", "entries"]) {
|
|
84412
|
+
const b = Qae((i = A[C]) !== null && i !== void 0 ? i : {}, t), R = C in NQ ? NQ[C](b, _) : b;
|
|
84413
|
+
R !== void 0 && !Ht(R) && (v[C] = Object.assign(Object.assign(Object.assign({}, S != null && S.length && Ie(h) ? { name: `${pn(h.field)}_legend_${C}` } : {}), S != null && S.length ? { interactive: !!S } : {}), { update: R }));
|
|
84413
84414
|
}
|
|
84414
84415
|
return Ht(v) || c.set("encode", v, !!(s != null && s.encoding)), c;
|
|
84415
84416
|
}
|
|
@@ -87869,18 +87870,18 @@ function KN(t) {
|
|
|
87869
87870
|
R && (f = R, Q7(t) && (f = new pc(f))), f = (u = ix.makeFromEncoding(f, t)) !== null && u !== void 0 ? u : f, f = (a = vl.makeFromEncoding(f, t)) !== null && a !== void 0 ? a : f;
|
|
87870
87871
|
}
|
|
87871
87872
|
Hn(t) && (f = (l = hy.make(f, t)) !== null && l !== void 0 ? l : f);
|
|
87872
|
-
const
|
|
87873
|
-
x[
|
|
87873
|
+
const _ = t.getDataName(Vt.Main), C = new Ni(f, _, Vt.Main, h);
|
|
87874
|
+
x[_] = C, f = C, Hn(t) && _Ze(t, C);
|
|
87874
87875
|
let b = null;
|
|
87875
87876
|
if (Qo(t)) {
|
|
87876
87877
|
const R = t.getName("facet");
|
|
87877
|
-
f = (c = qtt(f, t.facet)) !== null && c !== void 0 ? c : f, b = new M2(f, t, R,
|
|
87878
|
+
f = (c = qtt(f, t.facet)) !== null && c !== void 0 ? c : f, b = new M2(f, t, R, C.getSource()), x[R] = b;
|
|
87878
87879
|
}
|
|
87879
87880
|
return Object.assign(Object.assign({}, t.component.data), {
|
|
87880
87881
|
outputNodes: x,
|
|
87881
87882
|
outputNodeRefCounts: h,
|
|
87882
87883
|
raw: v,
|
|
87883
|
-
main:
|
|
87884
|
+
main: C,
|
|
87884
87885
|
facetRoot: b,
|
|
87885
87886
|
ancestorParse: g
|
|
87886
87887
|
});
|
|
@@ -88118,13 +88119,13 @@ function nnt(t, e) {
|
|
|
88118
88119
|
if (S && v)
|
|
88119
88120
|
o.set(E, A, v);
|
|
88120
88121
|
else {
|
|
88121
|
-
const { configValue:
|
|
88122
|
+
const { configValue: _ = void 0, configFrom: C = void 0 } = rQ(E) && E !== "values" ? V5(E, l.style, s.style, x) : {}, b = _ !== void 0;
|
|
88122
88123
|
S && !b ? o.set(E, A, v) : (
|
|
88123
88124
|
// Cases need implicit values
|
|
88124
88125
|
// 1. Axis config that aren't available in Vega
|
|
88125
|
-
(
|
|
88126
|
+
(C !== "vgAxisConfig" || // 2. Certain properties are always included (see `propsToAlwaysIncludeConfig`'s declaration for more details)
|
|
88126
88127
|
tnt.has(E) && b || // 3. Conditional axis values and signals
|
|
88127
|
-
O3(
|
|
88128
|
+
O3(_) || Ye(_)) && o.set(E, _, !1)
|
|
88128
88129
|
);
|
|
88129
88130
|
}
|
|
88130
88131
|
}
|
|
@@ -88132,8 +88133,8 @@ function nnt(t, e) {
|
|
|
88132
88133
|
var S;
|
|
88133
88134
|
if (!o.hasAxisPart(A))
|
|
88134
88135
|
return E;
|
|
88135
|
-
const v = Qae((S = g[A]) !== null && S !== void 0 ? S : {}, e),
|
|
88136
|
-
return
|
|
88136
|
+
const v = Qae((S = g[A]) !== null && S !== void 0 ? S : {}, e), _ = A === "labels" ? Vtt(e, t, v) : v;
|
|
88137
|
+
return _ !== void 0 && !Ht(_) && (E[A] = { update: _ }), E;
|
|
88137
88138
|
}, {});
|
|
88138
88139
|
return Ht(y) || o.set("encode", y, !!s.encoding || s.labelAngle !== void 0), o;
|
|
88139
88140
|
}
|
|
@@ -89015,7 +89016,7 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
|
|
|
89015
89016
|
A[S] = S - 34;
|
|
89016
89017
|
var v = [];
|
|
89017
89018
|
v[5] = v[63] = '"$"#,##0_);\\("$"#,##0\\)', v[6] = v[64] = '"$"#,##0_);[Red]\\("$"#,##0\\)', v[7] = v[65] = '"$"#,##0.00_);\\("$"#,##0.00\\)', v[8] = v[66] = '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', v[41] = '_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)', v[42] = '_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)', v[43] = '_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)', v[44] = '_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)';
|
|
89018
|
-
function
|
|
89019
|
+
function _(D, $, j) {
|
|
89019
89020
|
for (var Q = D < 0 ? -1 : 1, I = D * Q, H = 0, P = 1, J = 0, ce = 1, ue = 0, Z = 0, ae = Math.floor(I); ue < $ && (ae = Math.floor(I), J = ae * P + H, Z = ae * ue + ce, !(I - ae < 5e-8)); )
|
|
89020
89021
|
I = 1 / (I - ae), H = P, P = J, ce = ue, ue = Z;
|
|
89021
89022
|
if (Z > $ && (ue > $ ? (Z = ce, J = H) : (Z = ue, J = P)), !j)
|
|
@@ -89023,7 +89024,7 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
|
|
|
89023
89024
|
var qe = Math.floor(Q * J / Z);
|
|
89024
89025
|
return [qe, Q * J - qe * Z, Z];
|
|
89025
89026
|
}
|
|
89026
|
-
function
|
|
89027
|
+
function C(D, $, j) {
|
|
89027
89028
|
if (D > 2958465 || D < 0)
|
|
89028
89029
|
return null;
|
|
89029
89030
|
var Q = D | 0, I = Math.floor(86400 * (D - Q)), H = 0, P = [], J = { D: Q, T: I, u: 86400 * (D - Q) - I, y: 0, m: 0, d: 0, H: 0, M: 0, S: 0, q: 0 };
|
|
@@ -89038,7 +89039,7 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
|
|
|
89038
89039
|
}
|
|
89039
89040
|
return J.y = P[0], J.m = P[1], J.d = P[2], J.S = I % 60, I = Math.floor(I / 60), J.M = I % 60, I = Math.floor(I / 60), J.H = I, J.q = H, J;
|
|
89040
89041
|
}
|
|
89041
|
-
i.parse_date_code =
|
|
89042
|
+
i.parse_date_code = C;
|
|
89042
89043
|
var b = new Date(1899, 11, 31, 0, 0, 0), R = b.getTime(), O = new Date(1900, 2, 1, 0, 0, 0);
|
|
89043
89044
|
function L(D, $) {
|
|
89044
89045
|
var j = D.getTime();
|
|
@@ -89321,9 +89322,9 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
|
|
|
89321
89322
|
return K = Oe(Se, "##########", le), "(" + K.substr(0, 3) + ") " + K.substr(3, 3) + "-" + K.substr(6);
|
|
89322
89323
|
var rt = "";
|
|
89323
89324
|
if (fe = re.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
|
|
89324
|
-
return Le = Math.min(fe[4].length, 7), Ge =
|
|
89325
|
+
return Le = Math.min(fe[4].length, 7), Ge = _(ot, Math.pow(10, Le) - 1, !1), K = "" + wt, rt = X("n", fe[1], Ge[1]), rt.charAt(rt.length - 1) == " " && (rt = rt.substr(0, rt.length - 1) + "0"), K += rt + fe[2] + "/" + fe[3], rt = l(Ge[2], Le), rt.length < fe[4].length && (rt = ae(fe[4].substr(fe[4].length - rt.length)) + rt), K += rt, K;
|
|
89325
89326
|
if (fe = re.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
|
|
89326
|
-
return Le = Math.min(Math.max(fe[1].length, fe[4].length), 7), Ge =
|
|
89327
|
+
return Le = Math.min(Math.max(fe[1].length, fe[4].length), 7), Ge = _(ot, Math.pow(10, Le) - 1, !0), wt + (Ge[0] || (Ge[1] ? "" : "0")) + " " + (Ge[1] ? a(Ge[1], Le) + fe[2] + "/" + fe[3] + l(Ge[2], Le) : o(" ", 2 * Le + 1 + fe[2].length + fe[3].length));
|
|
89327
89328
|
if (fe = re.match(/^[#0?]+$/))
|
|
89328
89329
|
return K = h(le, 0), re.length <= K.length ? K : ae(re.substr(0, re.length - K.length)) + K;
|
|
89329
89330
|
if (fe = re.match(/^([#0?]+)\.([#0]+)$/)) {
|
|
@@ -89422,9 +89423,9 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
|
|
|
89422
89423
|
return K = Be(Se, "##########", le), "(" + K.substr(0, 3) + ") " + K.substr(3, 3) + "-" + K.substr(6);
|
|
89423
89424
|
var rt = "";
|
|
89424
89425
|
if (fe = re.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
|
|
89425
|
-
return Le = Math.min(fe[4].length, 7), Ge =
|
|
89426
|
+
return Le = Math.min(fe[4].length, 7), Ge = _(ot, Math.pow(10, Le) - 1, !1), K = "" + wt, rt = X("n", fe[1], Ge[1]), rt.charAt(rt.length - 1) == " " && (rt = rt.substr(0, rt.length - 1) + "0"), K += rt + fe[2] + "/" + fe[3], rt = l(Ge[2], Le), rt.length < fe[4].length && (rt = ae(fe[4].substr(fe[4].length - rt.length)) + rt), K += rt, K;
|
|
89426
89427
|
if (fe = re.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
|
|
89427
|
-
return Le = Math.min(Math.max(fe[1].length, fe[4].length), 7), Ge =
|
|
89428
|
+
return Le = Math.min(Math.max(fe[1].length, fe[4].length), 7), Ge = _(ot, Math.pow(10, Le) - 1, !0), wt + (Ge[0] || (Ge[1] ? "" : "0")) + " " + (Ge[1] ? a(Ge[1], Le) + fe[2] + "/" + fe[3] + l(Ge[2], Le) : o(" ", 2 * Le + 1 + fe[2].length + fe[3].length));
|
|
89428
89429
|
if (fe = re.match(/^[#0?]+$/))
|
|
89429
89430
|
return K = "" + le, re.length <= K.length ? K : ae(re.substr(0, re.length - K.length)) + K;
|
|
89430
89431
|
if (fe = re.match(/^([#0]+)\.([#0]+)$/)) {
|
|
@@ -89595,7 +89596,7 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
|
|
|
89595
89596
|
case "B":
|
|
89596
89597
|
case "b":
|
|
89597
89598
|
if (D.charAt(P + 1) === "1" || D.charAt(P + 1) === "2") {
|
|
89598
|
-
if (ue == null && (ue =
|
|
89599
|
+
if (ue == null && (ue = C($, j, D.charAt(P + 1) === "2"), ue == null))
|
|
89599
89600
|
return "";
|
|
89600
89601
|
I[I.length] = { t: "X", v: D.substr(P, 2) }, ce = J, P += 2;
|
|
89601
89602
|
break;
|
|
@@ -89614,7 +89615,7 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
|
|
|
89614
89615
|
case "s":
|
|
89615
89616
|
case "e":
|
|
89616
89617
|
case "g":
|
|
89617
|
-
if ($ < 0 || ue == null && (ue =
|
|
89618
|
+
if ($ < 0 || ue == null && (ue = C($, j), ue == null))
|
|
89618
89619
|
return "";
|
|
89619
89620
|
for (H = J; ++P < D.length && D.charAt(P).toLowerCase() === J; )
|
|
89620
89621
|
H += J;
|
|
@@ -89624,7 +89625,7 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
|
|
|
89624
89625
|
case "a":
|
|
89625
89626
|
case "上":
|
|
89626
89627
|
var Ce = { t: J, v: J };
|
|
89627
|
-
if (ue == null && (ue =
|
|
89628
|
+
if (ue == null && (ue = C($, j)), D.substr(P, 3).toUpperCase() === "A/P" ? (ue != null && (Ce.v = ue.H >= 12 ? "P" : "A"), Ce.t = "T", qe = "h", P += 3) : D.substr(P, 5).toUpperCase() === "AM/PM" ? (ue != null && (Ce.v = ue.H >= 12 ? "PM" : "AM"), Ce.t = "T", P += 5, qe = "h") : D.substr(P, 5).toUpperCase() === "上午/下午" ? (ue != null && (Ce.v = ue.H >= 12 ? "下午" : "上午"), Ce.t = "T", P += 5, qe = "h") : (Ce.t = "t", ++P), ue == null && Ce.t === "T")
|
|
89628
89629
|
return "";
|
|
89629
89630
|
I[I.length] = Ce, ce = J;
|
|
89630
89631
|
break;
|
|
@@ -89634,7 +89635,7 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
|
|
|
89634
89635
|
if (H.slice(-1) !== "]")
|
|
89635
89636
|
throw 'unterminated "[" block: |' + H + "|";
|
|
89636
89637
|
if (H.match(be)) {
|
|
89637
|
-
if (ue == null && (ue =
|
|
89638
|
+
if (ue == null && (ue = C($, j), ue == null))
|
|
89638
89639
|
return "";
|
|
89639
89640
|
I[I.length] = { t: "Z", v: H.toLowerCase() }, ce = H.charAt(1);
|
|
89640
89641
|
} else
|