@malloydata/render 0.0.280 → 0.0.281
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module/index.mjs +634 -638
- package/dist/module/index.umd.js +49 -49
- package/dist/register/register.mjs +487 -491
- package/dist/register/register.umd.js +40 -40
- package/dist/webcomponent/malloy-render.mjs +487 -491
- package/dist/webcomponent/malloy-render.umd.js +40 -40
- package/package.json +5 -5
package/dist/module/index.mjs
CHANGED
|
@@ -5471,25 +5471,25 @@ var eJ = { exports: {} };
|
|
|
5471
5471
|
var C = [];
|
|
5472
5472
|
C[5] = C[63] = '"$"#,##0_);\\("$"#,##0\\)', C[6] = C[64] = '"$"#,##0_);[Red]\\("$"#,##0\\)', C[7] = C[65] = '"$"#,##0.00_);\\("$"#,##0.00\\)', C[8] = C[66] = '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', C[41] = '_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)', C[42] = '_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)', C[43] = '_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)', C[44] = '_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)';
|
|
5473
5473
|
function b(w, P, U) {
|
|
5474
|
-
for (var W = w < 0 ? -1 : 1, M = w * W,
|
|
5475
|
-
M = 1 / (M - le),
|
|
5476
|
-
if (ee > P && (ue > P ? (ee = he, Z =
|
|
5474
|
+
for (var W = w < 0 ? -1 : 1, M = w * W, z = 0, H = 1, Z = 0, he = 1, ue = 0, ee = 0, le = Math.floor(M); ue < P && (le = Math.floor(M), Z = le * H + z, ee = le * ue + he, !(M - le < 5e-8)); )
|
|
5475
|
+
M = 1 / (M - le), z = H, H = Z, he = ue, ue = ee;
|
|
5476
|
+
if (ee > P && (ue > P ? (ee = he, Z = z) : (ee = ue, Z = H)), !U) return [0, W * Z, ee];
|
|
5477
5477
|
var Me = Math.floor(W * Z / ee);
|
|
5478
5478
|
return [Me, W * Z - Me * ee, ee];
|
|
5479
5479
|
}
|
|
5480
5480
|
function S(w, P, U) {
|
|
5481
5481
|
if (w > 2958465 || w < 0) return null;
|
|
5482
|
-
var W = w | 0, M = Math.floor(86400 * (w - W)),
|
|
5482
|
+
var W = w | 0, M = Math.floor(86400 * (w - W)), z = 0, H = [], Z = { D: W, T: M, u: 86400 * (w - W) - M, y: 0, m: 0, d: 0, H: 0, M: 0, S: 0, q: 0 };
|
|
5483
5483
|
if (Math.abs(Z.u) < 1e-6 && (Z.u = 0), P && P.date1904 && (W += 1462), Z.u > 0.9999 && (Z.u = 0, ++M == 86400 && (Z.T = M = 0, ++W, ++Z.D)), W === 60)
|
|
5484
|
-
H = U ? [1317, 10, 29] : [1900, 2, 29],
|
|
5484
|
+
H = U ? [1317, 10, 29] : [1900, 2, 29], z = 3;
|
|
5485
5485
|
else if (W === 0)
|
|
5486
|
-
H = U ? [1317, 8, 29] : [1900, 1, 0],
|
|
5486
|
+
H = U ? [1317, 8, 29] : [1900, 1, 0], z = 6;
|
|
5487
5487
|
else {
|
|
5488
5488
|
W > 60 && --W;
|
|
5489
5489
|
var he = new Date(1900, 0, 1);
|
|
5490
|
-
he.setDate(he.getDate() + W - 1), H = [he.getFullYear(), he.getMonth() + 1, he.getDate()],
|
|
5490
|
+
he.setDate(he.getDate() + W - 1), H = [he.getFullYear(), he.getMonth() + 1, he.getDate()], z = he.getDay(), W < 60 && (z = (z + 6) % 7), U && (z = G(he, H));
|
|
5491
5491
|
}
|
|
5492
|
-
return Z.y = H[0], Z.m = H[1], Z.d = H[2], Z.S = M % 60, M = Math.floor(M / 60), Z.M = M % 60, M = Math.floor(M / 60), Z.H = M, Z.q =
|
|
5492
|
+
return Z.y = H[0], Z.m = H[1], Z.d = H[2], Z.S = M % 60, M = Math.floor(M / 60), Z.M = M % 60, M = Math.floor(M / 60), Z.H = M, Z.q = z, Z;
|
|
5493
5493
|
}
|
|
5494
5494
|
s.parse_date_code = S;
|
|
5495
5495
|
var R = new Date(1899, 11, 31, 0, 0, 0), O = R.getTime(), I = new Date(1900, 2, 1, 0, 0, 0);
|
|
@@ -5507,7 +5507,7 @@ var eJ = { exports: {} };
|
|
|
5507
5507
|
return ue.indexOf(".") == -1 ? ue : ue.replace(P, "$1");
|
|
5508
5508
|
}
|
|
5509
5509
|
var W = /(?:\.0*|(\.\d*[1-9])0+)[Ee]/, M = /(E[+-])(\d)$/;
|
|
5510
|
-
function
|
|
5510
|
+
function z(ue) {
|
|
5511
5511
|
return ue.indexOf("E") == -1 ? ue : ue.replace(W, "$1E").replace(M, "$10$2");
|
|
5512
5512
|
}
|
|
5513
5513
|
function H(ue) {
|
|
@@ -5520,7 +5520,7 @@ var eJ = { exports: {} };
|
|
|
5520
5520
|
}
|
|
5521
5521
|
function he(ue) {
|
|
5522
5522
|
var ee = Math.floor(Math.log(Math.abs(ue)) * Math.LOG10E), le;
|
|
5523
|
-
return ee >= -4 && ee <= -1 ? le = ue.toPrecision(10 + ee) : Math.abs(ee) <= 9 ? le = H(ue) : ee === 10 ? le = ue.toFixed(10).substr(0, 12) : le = Z(ue), U(
|
|
5523
|
+
return ee >= -4 && ee <= -1 ? le = ue.toPrecision(10 + ee) : Math.abs(ee) <= 9 ? le = H(ue) : ee === 10 ? le = ue.toFixed(10).substr(0, 12) : le = Z(ue), U(z(le.toUpperCase()));
|
|
5524
5524
|
}
|
|
5525
5525
|
return he;
|
|
5526
5526
|
}();
|
|
@@ -5542,13 +5542,13 @@ var eJ = { exports: {} };
|
|
|
5542
5542
|
throw new Error("unsupported value in General format: " + w);
|
|
5543
5543
|
}
|
|
5544
5544
|
s._general = Y;
|
|
5545
|
-
function
|
|
5545
|
+
function G(w, P) {
|
|
5546
5546
|
P[0] -= 581;
|
|
5547
5547
|
var U = w.getDay();
|
|
5548
5548
|
return w < 60 && (U = (U + 6) % 7), U;
|
|
5549
5549
|
}
|
|
5550
5550
|
function X(w, P, U, W) {
|
|
5551
|
-
var M = "",
|
|
5551
|
+
var M = "", z = 0, H = 0, Z = U.y, he, ue = 0;
|
|
5552
5552
|
switch (w) {
|
|
5553
5553
|
case 98:
|
|
5554
5554
|
Z = U.y + 543;
|
|
@@ -5621,7 +5621,7 @@ var eJ = { exports: {} };
|
|
|
5621
5621
|
break;
|
|
5622
5622
|
case 115:
|
|
5623
5623
|
if (P != "s" && P != "ss" && P != ".0" && P != ".00" && P != ".000") throw "bad second format: " + P;
|
|
5624
|
-
return U.u === 0 && (P == "s" || P == "ss") ? a(U.S, P.length) : (W >= 2 ? H = W === 3 ? 1e3 : 100 : H = W === 1 ? 10 : 1,
|
|
5624
|
+
return U.u === 0 && (P == "s" || P == "ss") ? a(U.S, P.length) : (W >= 2 ? H = W === 3 ? 1e3 : 100 : H = W === 1 ? 10 : 1, z = Math.round(H * (U.S + U.u)), z >= 60 * H && (z = 0), P === "s" ? z === 0 ? "0" : "" + z / H : (M = a(z, 2 + W), P === "ss" ? M.substr(0, 2) : "." + M.substr(2, P.length - 1)));
|
|
5625
5625
|
case 90:
|
|
5626
5626
|
switch (P) {
|
|
5627
5627
|
case "[h]":
|
|
@@ -5684,7 +5684,7 @@ var eJ = { exports: {} };
|
|
|
5684
5684
|
} else K = B.toExponential(Re);
|
|
5685
5685
|
return ye.match(/E\+00$/) && K.match(/e[+-]\d$/) && (K = K.substr(0, K.length - 1) + "0" + K.charAt(K.length - 1)), ye.match(/E\-/) && K.match(/e\+/) && (K = K.replace(/e\+/, "e")), K.replace("e", "E");
|
|
5686
5686
|
}
|
|
5687
|
-
var
|
|
5687
|
+
var z = /# (\?+)( ?)\/( ?)(\d+)/;
|
|
5688
5688
|
function H(ye, B, K) {
|
|
5689
5689
|
var Re = parseInt(ye[4], 10), J = Math.round(B * Re), de = Math.floor(J / Re), Ne = J - de * Re, He = Re;
|
|
5690
5690
|
return K + (de === 0 ? "" : "" + de) + " " + (Ne === 0 ? u(" ", ye[1].length + 1 + ye[4].length) : l(Ne, ye[1].length) + ye[2] + "/" + ye[3] + a(He, ye[4].length));
|
|
@@ -5735,7 +5735,7 @@ var eJ = { exports: {} };
|
|
|
5735
5735
|
if (B.match(/^00+$/)) return vt + p(ot, B.length);
|
|
5736
5736
|
if (B.match(/^[#?]+$/))
|
|
5737
5737
|
return J = p(K, 0), J === "0" && (J = ""), J.length > B.length ? J : le(B.substr(0, B.length - J.length)) + J;
|
|
5738
|
-
if (de = B.match(
|
|
5738
|
+
if (de = B.match(z)) return H(de, ot, vt);
|
|
5739
5739
|
if (B.match(/^#+0+$/)) return vt + p(ot, B.length - B.indexOf("0"));
|
|
5740
5740
|
if (de = B.match(he))
|
|
5741
5741
|
return J = Me(K, de[1].length).replace(/^([^\.]+)$/, "$1." + le(de[1])).replace(/\.$/, "." + le(de[1])).replace(/\.(\d*)$/, function(cs, I2) {
|
|
@@ -5823,7 +5823,7 @@ var eJ = { exports: {} };
|
|
|
5823
5823
|
if (B.match(/^00+$/)) return vt + a(ot, B.length);
|
|
5824
5824
|
if (B.match(/^[#?]+$/))
|
|
5825
5825
|
return J = "" + K, K === 0 && (J = ""), J.length > B.length ? J : le(B.substr(0, B.length - J.length)) + J;
|
|
5826
|
-
if (de = B.match(
|
|
5826
|
+
if (de = B.match(z)) return Z(de, ot, vt);
|
|
5827
5827
|
if (B.match(/^#+0+$/)) return vt + a(ot, B.length - B.indexOf("0"));
|
|
5828
5828
|
if (de = B.match(he))
|
|
5829
5829
|
return J = ("" + K).replace(/^([^\.]+)$/, "$1." + le(de[1])).replace(/\.$/, "." + le(de[1])), J = J.replace(/\.(\d*)$/, function(cs, I2) {
|
|
@@ -5984,15 +5984,15 @@ var eJ = { exports: {} };
|
|
|
5984
5984
|
}
|
|
5985
5985
|
s.is_date = xe;
|
|
5986
5986
|
function Se(w, P, U, W) {
|
|
5987
|
-
for (var M = [],
|
|
5987
|
+
for (var M = [], z = "", H = 0, Z = "", he = "t", ue, ee, le, Me = "H"; H < w.length; )
|
|
5988
5988
|
switch (Z = w.charAt(H)) {
|
|
5989
5989
|
case "G":
|
|
5990
5990
|
if (!m(w, H)) throw new Error("unrecognized character " + Z + " in " + w);
|
|
5991
5991
|
M[M.length] = { t: "G", v: "General" }, H += 7;
|
|
5992
5992
|
break;
|
|
5993
5993
|
case '"':
|
|
5994
|
-
for (
|
|
5995
|
-
M[M.length] = { t: "t", v:
|
|
5994
|
+
for (z = ""; (le = w.charCodeAt(++H)) !== 34 && H < w.length; ) z += String.fromCharCode(le);
|
|
5995
|
+
M[M.length] = { t: "t", v: z }, ++H;
|
|
5996
5996
|
break;
|
|
5997
5997
|
case "\\":
|
|
5998
5998
|
var at = w.charAt(++H), _t = at === "(" || at === ")" ? at : "t";
|
|
@@ -6028,8 +6028,8 @@ var eJ = { exports: {} };
|
|
|
6028
6028
|
case "g":
|
|
6029
6029
|
if (P < 0 || ue == null && (ue = S(P, U), ue == null))
|
|
6030
6030
|
return "";
|
|
6031
|
-
for (
|
|
6032
|
-
Z === "m" && he.toLowerCase() === "h" && (Z = "M"), Z === "h" && (Z = Me), M[M.length] = { t: Z, v:
|
|
6031
|
+
for (z = Z; ++H < w.length && w.charAt(H).toLowerCase() === Z; ) z += Z;
|
|
6032
|
+
Z === "m" && he.toLowerCase() === "h" && (Z = "M"), Z === "h" && (Z = Me), M[M.length] = { t: Z, v: z }, he = Z;
|
|
6033
6033
|
break;
|
|
6034
6034
|
case "A":
|
|
6035
6035
|
case "a":
|
|
@@ -6039,28 +6039,28 @@ var eJ = { exports: {} };
|
|
|
6039
6039
|
M[M.length] = ie, he = Z;
|
|
6040
6040
|
break;
|
|
6041
6041
|
case "[":
|
|
6042
|
-
for (
|
|
6043
|
-
if (
|
|
6044
|
-
if (
|
|
6042
|
+
for (z = Z; w.charAt(H++) !== "]" && H < w.length; ) z += w.charAt(H);
|
|
6043
|
+
if (z.slice(-1) !== "]") throw 'unterminated "[" block: |' + z + "|";
|
|
6044
|
+
if (z.match(oe)) {
|
|
6045
6045
|
if (ue == null && (ue = S(P, U), ue == null))
|
|
6046
6046
|
return "";
|
|
6047
|
-
M[M.length] = { t: "Z", v:
|
|
6048
|
-
} else
|
|
6047
|
+
M[M.length] = { t: "Z", v: z.toLowerCase() }, he = z.charAt(1);
|
|
6048
|
+
} else z.indexOf("$") > -1 && (z = (z.match(/\$([^-\[\]]*)/) || [])[1] || "$", xe(w) || (M[M.length] = { t: "t", v: z }));
|
|
6049
6049
|
break;
|
|
6050
6050
|
case ".":
|
|
6051
6051
|
if (ue != null) {
|
|
6052
|
-
for (
|
|
6053
|
-
M[M.length] = { t: "s", v:
|
|
6052
|
+
for (z = Z; ++H < w.length && (Z = w.charAt(H)) === "0"; ) z += Z;
|
|
6053
|
+
M[M.length] = { t: "s", v: z };
|
|
6054
6054
|
break;
|
|
6055
6055
|
}
|
|
6056
6056
|
case "0":
|
|
6057
6057
|
case "#":
|
|
6058
|
-
for (
|
|
6059
|
-
M[M.length] = { t: "n", v:
|
|
6058
|
+
for (z = Z; ++H < w.length && "0#?.,E+-%".indexOf(Z = w.charAt(H)) > -1; ) z += Z;
|
|
6059
|
+
M[M.length] = { t: "n", v: z };
|
|
6060
6060
|
break;
|
|
6061
6061
|
case "?":
|
|
6062
|
-
for (
|
|
6063
|
-
M[M.length] = { t: Z, v:
|
|
6062
|
+
for (z = Z; w.charAt(++H) === Z; ) z += Z;
|
|
6063
|
+
M[M.length] = { t: Z, v: z }, he = Z;
|
|
6064
6064
|
break;
|
|
6065
6065
|
case "*":
|
|
6066
6066
|
++H, (w.charAt(H) == " " || w.charAt(H) == "*") && ++H;
|
|
@@ -6078,8 +6078,8 @@ var eJ = { exports: {} };
|
|
|
6078
6078
|
case "7":
|
|
6079
6079
|
case "8":
|
|
6080
6080
|
case "9":
|
|
6081
|
-
for (
|
|
6082
|
-
M[M.length] = { t: "D", v:
|
|
6081
|
+
for (z = Z; H < w.length && "0123456789".indexOf(w.charAt(++H)) > -1; ) z += w.charAt(H);
|
|
6082
|
+
M[M.length] = { t: "D", v: z };
|
|
6083
6083
|
break;
|
|
6084
6084
|
case " ":
|
|
6085
6085
|
M[M.length] = { t: Z, v: Z }, ++H;
|
|
@@ -6233,13 +6233,13 @@ var eJ = { exports: {} };
|
|
|
6233
6233
|
U = M > -1 ? [U[0], U[1], U[0], U[2]] : [U[0], U[1], U[2], "@"];
|
|
6234
6234
|
break;
|
|
6235
6235
|
}
|
|
6236
|
-
var
|
|
6237
|
-
if (U[0].indexOf("[") === -1 && U[1].indexOf("[") === -1) return [W,
|
|
6236
|
+
var z = P > 0 ? U[0] : P < 0 ? U[1] : U[2];
|
|
6237
|
+
if (U[0].indexOf("[") === -1 && U[1].indexOf("[") === -1) return [W, z];
|
|
6238
6238
|
if (U[0].match($) != null || U[1].match($) != null) {
|
|
6239
6239
|
var H = U[0].match(N), Z = U[1].match(N);
|
|
6240
6240
|
return L(P, H) ? [W, U[0]] : L(P, Z) ? [W, U[1]] : [W, U[H != null && Z != null ? 2 : 1]];
|
|
6241
6241
|
}
|
|
6242
|
-
return [W,
|
|
6242
|
+
return [W, z];
|
|
6243
6243
|
}
|
|
6244
6244
|
function V(w, P, U) {
|
|
6245
6245
|
U == null && (U = {});
|
|
@@ -6261,7 +6261,7 @@ var eJ = { exports: {} };
|
|
|
6261
6261
|
else if (P === "" || P == null) return "";
|
|
6262
6262
|
return Se(M[1], P, U, M[0]);
|
|
6263
6263
|
}
|
|
6264
|
-
function
|
|
6264
|
+
function Q(w, P) {
|
|
6265
6265
|
if (typeof P != "number") {
|
|
6266
6266
|
P = +P || -1;
|
|
6267
6267
|
for (var U = 0; U < 392; ++U) {
|
|
@@ -6278,11 +6278,11 @@ var eJ = { exports: {} };
|
|
|
6278
6278
|
}
|
|
6279
6279
|
return A[P] = w, P;
|
|
6280
6280
|
}
|
|
6281
|
-
s.load =
|
|
6281
|
+
s.load = Q, s._table = A, s.get_table = function() {
|
|
6282
6282
|
return A;
|
|
6283
6283
|
}, s.load_table = function(P) {
|
|
6284
6284
|
for (var U = 0; U != 392; ++U)
|
|
6285
|
-
P[U] !== void 0 &&
|
|
6285
|
+
P[U] !== void 0 && Q(P[U], U);
|
|
6286
6286
|
}, s.init_table = E, s.format = V;
|
|
6287
6287
|
};
|
|
6288
6288
|
r(e), typeof DO_NOT_EXPORT_SSF > "u" && (t.exports = e);
|
|
@@ -58741,8 +58741,8 @@ var AJ = { exports: {} };
|
|
|
58741
58741
|
}));
|
|
58742
58742
|
}
|
|
58743
58743
|
if (y)
|
|
58744
|
-
for (var
|
|
58745
|
-
var X =
|
|
58744
|
+
for (var G = Object.getOwnPropertyNames(C), I = 0; I < G.length; I++) {
|
|
58745
|
+
var X = G[I], Y = Object.getOwnPropertyDescriptor(C, X);
|
|
58746
58746
|
Y && Y.enumerable || (S[X] = v(C[X], b - 1), Object.defineProperty(S, X, {
|
|
58747
58747
|
enumerable: !1
|
|
58748
58748
|
}));
|
|
@@ -60920,14 +60920,14 @@ function _X(t) {
|
|
|
60920
60920
|
var b = g === "$" ? r : g === "#" && /[boxX]/.test(C) ? "0" + C.toLowerCase() : "", S = g === "$" ? i : /[%p]/.test(C) ? u : "", R = Bj[C], O = /[defgprs%]/.test(C);
|
|
60921
60921
|
_ = _ === void 0 ? 6 : /[gprs]/.test(C) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
|
|
60922
60922
|
function I(D) {
|
|
60923
|
-
var k = b, j = S, Y,
|
|
60923
|
+
var k = b, j = S, Y, G, X;
|
|
60924
60924
|
if (C === "c")
|
|
60925
60925
|
j = R(D) + j, D = "";
|
|
60926
60926
|
else {
|
|
60927
60927
|
D = +D;
|
|
60928
60928
|
var ce = D < 0 || 1 / D < 0;
|
|
60929
60929
|
if (D = isNaN(D) ? l : R(Math.abs(D), _), v && (D = Zye(D)), ce && +D == 0 && m !== "+" && (ce = !1), k = (ce ? m === "(" ? m : a : m === "-" || m === "(" ? "" : m) + k, j = (C === "s" ? Mj[8 + AX / 3] : "") + j + (ce && m === "(" ? ")" : ""), O) {
|
|
60930
|
-
for (Y = -1,
|
|
60930
|
+
for (Y = -1, G = D.length; ++Y < G; )
|
|
60931
60931
|
if (X = D.charCodeAt(Y), 48 > X || X > 57) {
|
|
60932
60932
|
j = (X === 46 ? s + D.slice(Y + 1) : D.slice(Y)) + j, D = D.slice(0, Y);
|
|
60933
60933
|
break;
|
|
@@ -61438,7 +61438,7 @@ function BX(t) {
|
|
|
61438
61438
|
m: bAe,
|
|
61439
61439
|
M: TAe,
|
|
61440
61440
|
p: V,
|
|
61441
|
-
q:
|
|
61441
|
+
q: Q,
|
|
61442
61442
|
Q: Jj,
|
|
61443
61443
|
s: Xj,
|
|
61444
61444
|
S: RAe,
|
|
@@ -61480,7 +61480,7 @@ function BX(t) {
|
|
|
61480
61480
|
V: zEe,
|
|
61481
61481
|
w: qEe,
|
|
61482
61482
|
W: GEe,
|
|
61483
|
-
x:
|
|
61483
|
+
x: G,
|
|
61484
61484
|
X,
|
|
61485
61485
|
y: zj,
|
|
61486
61486
|
Y: Qj,
|
|
@@ -61490,27 +61490,27 @@ function BX(t) {
|
|
|
61490
61490
|
_.x = b(r, _), _.X = b(i, _), _.c = b(e, _), v.x = b(r, v), v.X = b(i, v), v.c = b(e, v);
|
|
61491
61491
|
function b(w, P) {
|
|
61492
61492
|
return function(U) {
|
|
61493
|
-
var W = [], M = -1,
|
|
61493
|
+
var W = [], M = -1, z = 0, H = w.length, Z, he, ue;
|
|
61494
61494
|
for (U instanceof Date || (U = /* @__PURE__ */ new Date(+U)); ++M < H; )
|
|
61495
|
-
w.charCodeAt(M) === 37 && (W.push(w.slice(
|
|
61496
|
-
return W.push(w.slice(
|
|
61495
|
+
w.charCodeAt(M) === 37 && (W.push(w.slice(z, M)), (he = Hj[Z = w.charAt(++M)]) != null ? Z = w.charAt(++M) : he = Z === "e" ? " " : "0", (ue = P[Z]) && (Z = ue(U, he)), W.push(Z), z = M + 1);
|
|
61496
|
+
return W.push(w.slice(z, M)), W.join("");
|
|
61497
61497
|
};
|
|
61498
61498
|
}
|
|
61499
61499
|
function S(w, P) {
|
|
61500
61500
|
return function(U) {
|
|
61501
|
-
var W = H2(1900, void 0, 1), M = R(W, w, U += "", 0),
|
|
61501
|
+
var W = H2(1900, void 0, 1), M = R(W, w, U += "", 0), z, H;
|
|
61502
61502
|
if (M != U.length) return null;
|
|
61503
61503
|
if ("Q" in W) return new Date(W.Q);
|
|
61504
61504
|
if ("s" in W) return new Date(W.s * 1e3 + ("L" in W ? W.L : 0));
|
|
61505
61505
|
if (P && !("Z" in W) && (W.Z = 0), "p" in W && (W.H = W.H % 12 + W.p * 12), W.m === void 0 && (W.m = "q" in W ? W.q : 0), "V" in W) {
|
|
61506
61506
|
if (W.V < 1 || W.V > 53) return null;
|
|
61507
|
-
"w" in W || (W.w = 1), "Z" in W ? (
|
|
61507
|
+
"w" in W || (W.w = 1), "Z" in W ? (z = $D(H2(W.y, 0, 1)), H = z.getUTCDay(), z = H > 4 || H === 0 ? cv.ceil(z) : cv(z), z = A0.offset(z, (W.V - 1) * 7), W.y = z.getUTCFullYear(), W.m = z.getUTCMonth(), W.d = z.getUTCDate() + (W.w + 6) % 7) : (z = ID(H2(W.y, 0, 1)), H = z.getDay(), z = H > 4 || H === 0 ? lv.ceil(z) : lv(z), z = ul.offset(z, (W.V - 1) * 7), W.y = z.getFullYear(), W.m = z.getMonth(), W.d = z.getDate() + (W.w + 6) % 7);
|
|
61508
61508
|
} else ("W" in W || "U" in W) && ("w" in W || (W.w = "u" in W ? W.u % 7 : "W" in W ? 1 : 0), H = "Z" in W ? $D(H2(W.y, 0, 1)).getUTCDay() : ID(H2(W.y, 0, 1)).getDay(), W.m = 0, W.d = "W" in W ? (W.w + 6) % 7 + W.W * 7 - (H + 5) % 7 : W.w + W.U * 7 - (H + 6) % 7);
|
|
61509
61509
|
return "Z" in W ? (W.H += W.Z / 100 | 0, W.M += W.Z % 100, $D(W)) : ID(W);
|
|
61510
61510
|
};
|
|
61511
61511
|
}
|
|
61512
61512
|
function R(w, P, U, W) {
|
|
61513
|
-
for (var M = 0,
|
|
61513
|
+
for (var M = 0, z = P.length, H = U.length, Z, he; M < z; ) {
|
|
61514
61514
|
if (W >= H) return -1;
|
|
61515
61515
|
if (Z = P.charCodeAt(M++), Z === 37) {
|
|
61516
61516
|
if (Z = P.charAt(M++), he = C[Z in Hj ? P.charAt(M++) : Z], !he || (W = he(w, U, W)) < 0) return -1;
|
|
@@ -61542,7 +61542,7 @@ function BX(t) {
|
|
|
61542
61542
|
function Y(w, P, U) {
|
|
61543
61543
|
return R(w, e, P, U);
|
|
61544
61544
|
}
|
|
61545
|
-
function
|
|
61545
|
+
function G(w, P, U) {
|
|
61546
61546
|
return R(w, r, P, U);
|
|
61547
61547
|
}
|
|
61548
61548
|
function X(w, P, U) {
|
|
@@ -61581,7 +61581,7 @@ function BX(t) {
|
|
|
61581
61581
|
function V(w) {
|
|
61582
61582
|
return s[+(w.getUTCHours() >= 12)];
|
|
61583
61583
|
}
|
|
61584
|
-
function
|
|
61584
|
+
function Q(w) {
|
|
61585
61585
|
return 1 + ~~(w.getUTCMonth() / 3);
|
|
61586
61586
|
}
|
|
61587
61587
|
return {
|
|
@@ -63652,8 +63652,8 @@ function xve(t, e, r, i) {
|
|
|
63652
63652
|
let C = 0, b = 0, S = 0, R = 0, O = 0;
|
|
63653
63653
|
const I = 1 / Math.abs(s[v] - E || 1);
|
|
63654
63654
|
for (let j = A; j <= _; ++j) {
|
|
63655
|
-
const Y = s[j],
|
|
63656
|
-
C += X, b += ce, S +=
|
|
63655
|
+
const Y = s[j], G = o[j], X = dve(Math.abs(E - Y) * I) * h[j], ce = Y * X;
|
|
63656
|
+
C += X, b += ce, S += G * X, R += G * ce, O += Y * ce;
|
|
63657
63657
|
}
|
|
63658
63658
|
const [D, k] = F3(b / C, S / C, R / C, O / C);
|
|
63659
63659
|
f[y] = D + k * E, x[y] = Math.abs(o[y] - f[y]), hve(s, y + 1, m);
|
|
@@ -66022,8 +66022,8 @@ function hCe(t, e, r, i, s, o, u, a) {
|
|
|
66022
66022
|
return h = (f * (e - o) - x * (t - s)) / h, [t + h * l, e + h * c];
|
|
66023
66023
|
}
|
|
66024
66024
|
function ZE(t, e, r, i, s, o, u) {
|
|
66025
|
-
var a = t - r, l = e - i, c = (u ? o : -o) / df(a * a + l * l), f = c * l, x = -c * a, h = t + f, p = e + x, m = r + f, g = i + x, y = (h + m) / 2, E = (p + g) / 2, A = m - h, _ = g - p, v = A * A + _ * _, C = s - o, b = h * g - m * p, S = (_ < 0 ? -1 : 1) * df(sCe(0, C * C * v - b * b)), R = (b * _ - A * S) / v, O = (-b * A - _ * S) / v, I = (b * _ + A * S) / v, D = (-b * A + _ * S) / v, k = R - y, j = O - E, Y = I - y,
|
|
66026
|
-
return k * k + j * j > Y * Y +
|
|
66025
|
+
var a = t - r, l = e - i, c = (u ? o : -o) / df(a * a + l * l), f = c * l, x = -c * a, h = t + f, p = e + x, m = r + f, g = i + x, y = (h + m) / 2, E = (p + g) / 2, A = m - h, _ = g - p, v = A * A + _ * _, C = s - o, b = h * g - m * p, S = (_ < 0 ? -1 : 1) * df(sCe(0, C * C * v - b * b)), R = (b * _ - A * S) / v, O = (-b * A - _ * S) / v, I = (b * _ + A * S) / v, D = (-b * A + _ * S) / v, k = R - y, j = O - E, Y = I - y, G = D - E;
|
|
66026
|
+
return k * k + j * j > Y * Y + G * G && (R = I, O = D), {
|
|
66027
66027
|
cx: R,
|
|
66028
66028
|
cy: O,
|
|
66029
66029
|
x01: -f,
|
|
@@ -66042,15 +66042,15 @@ function pCe() {
|
|
|
66042
66042
|
else {
|
|
66043
66043
|
var A = m, _ = g, v = m, C = g, b = y, S = y, R = u.apply(this, arguments) / 2, O = R > jr && (i ? +i.apply(this, arguments) : df(h * h + p * p)), I = jD(dU(p - h) / 2, +r.apply(this, arguments)), D = I, k = I, j, Y;
|
|
66044
66044
|
if (O > jr) {
|
|
66045
|
-
var
|
|
66046
|
-
(b -=
|
|
66045
|
+
var G = hU(O / h * gu(R)), X = hU(O / p * gu(R));
|
|
66046
|
+
(b -= G * 2) > jr ? (G *= E ? 1 : -1, v += G, C -= G) : (b = 0, v = C = (m + g) / 2), (S -= X * 2) > jr ? (X *= E ? 1 : -1, A += X, _ -= X) : (S = 0, A = _ = (m + g) / 2);
|
|
66047
66047
|
}
|
|
66048
66048
|
var ce = p * Gc(A), fe = p * gu(A), te = h * Gc(C), oe = h * gu(C);
|
|
66049
66049
|
if (I > jr) {
|
|
66050
66050
|
var xe = p * Gc(_), Se = p * gu(_), $ = h * Gc(v), N = h * gu(v), L;
|
|
66051
66051
|
if (y < _h)
|
|
66052
66052
|
if (L = hCe(ce, fe, $, N, xe, Se, te, oe)) {
|
|
66053
|
-
var q = ce - L[0], V = fe - L[1],
|
|
66053
|
+
var q = ce - L[0], V = fe - L[1], Q = xe - L[0], w = Se - L[1], P = 1 / gu(oCe((q * Q + V * w) / (df(q * q + V * V) * df(Q * Q + w * w))) / 2), U = df(L[0] * L[0] + L[1] * L[1]);
|
|
66054
66054
|
D = jD(I, (h - U) / (P - 1)), k = jD(I, (p - U) / (P + 1));
|
|
66055
66055
|
} else
|
|
66056
66056
|
D = k = 0;
|
|
@@ -68717,11 +68717,11 @@ function I5e(t, e, r, i, s, o, u, a, l) {
|
|
|
68717
68717
|
let I = Math.sqrt(O);
|
|
68718
68718
|
o == s && (I = -I);
|
|
68719
68719
|
const D = 0.5 * (v + b) - I * (S - C), k = 0.5 * (C + S) + I * (b - v), j = Math.atan2(C - k, v - D);
|
|
68720
|
-
let
|
|
68721
|
-
|
|
68722
|
-
const X = Math.ceil(Math.abs(
|
|
68720
|
+
let G = Math.atan2(S - k, b - D) - j;
|
|
68721
|
+
G < 0 && o === 1 ? G += Ou : G > 0 && o === 0 && (G -= Ou);
|
|
68722
|
+
const X = Math.ceil(Math.abs(G / (of + 1e-3))), ce = [];
|
|
68723
68723
|
for (let fe = 0; fe < X; ++fe) {
|
|
68724
|
-
const te = j + fe *
|
|
68724
|
+
const te = j + fe * G / X, oe = j + (fe + 1) * G / X;
|
|
68725
68725
|
ce[fe] = [D, k, te, oe, r, i, x, h];
|
|
68726
68726
|
}
|
|
68727
68727
|
return VD[c] = ce;
|
|
@@ -71525,7 +71525,7 @@ function vq(t) {
|
|
|
71525
71525
|
return t < 0 ? Math.ceil(-t) : 0;
|
|
71526
71526
|
}
|
|
71527
71527
|
function One(t, e, r) {
|
|
71528
|
-
var i = !r.nodirty, s = r.bounds === JL ? ITe : $Te, o = Ur.set(0, 0, 0, 0), u = mn(r.align, d0), a = mn(r.align, h0), l = mn(r.padding, d0), c = mn(r.padding, h0), f = r.columns || e.length, x = f <= 0 ? 1 : Math.ceil(e.length / f), h = e.length, p = Array(h), m = Array(f), g = 0, y = Array(h), E = Array(x), A = 0, _ = Array(h), v = Array(h), C = Array(h), b, S, R, O, I, D, k, j, Y,
|
|
71528
|
+
var i = !r.nodirty, s = r.bounds === JL ? ITe : $Te, o = Ur.set(0, 0, 0, 0), u = mn(r.align, d0), a = mn(r.align, h0), l = mn(r.padding, d0), c = mn(r.padding, h0), f = r.columns || e.length, x = f <= 0 ? 1 : Math.ceil(e.length / f), h = e.length, p = Array(h), m = Array(f), g = 0, y = Array(h), E = Array(x), A = 0, _ = Array(h), v = Array(h), C = Array(h), b, S, R, O, I, D, k, j, Y, G, X;
|
|
71529
71529
|
for (S = 0; S < f; ++S) m[S] = 0;
|
|
71530
71530
|
for (S = 0; S < x; ++S) E[S] = 0;
|
|
71531
71531
|
for (S = 0; S < h; ++S)
|
|
@@ -71567,17 +71567,17 @@ function One(t, e, r) {
|
|
|
71567
71567
|
for (Y = 0, S = 0; S < h; ++S)
|
|
71568
71568
|
Y = p[S] + (S % f ? Y : 0), _[S] += Y - e[S].x;
|
|
71569
71569
|
for (R = 0; R < f; ++R)
|
|
71570
|
-
for (
|
|
71571
|
-
|
|
71570
|
+
for (G = 0, S = R; S < h; S += f)
|
|
71571
|
+
G += y[S], v[S] += G - e[S].y;
|
|
71572
71572
|
if (u && mn(r.center, d0) && x > 1)
|
|
71573
71573
|
for (S = 0; S < h; ++S)
|
|
71574
71574
|
I = u === iA ? g : m[S % f], Y = I - C[S].x2 - e[S].x - _[S], Y > 0 && (_[S] += Y / 2);
|
|
71575
71575
|
if (a && mn(r.center, h0) && f !== 1)
|
|
71576
71576
|
for (S = 0; S < h; ++S)
|
|
71577
|
-
I = a === iA ? A : E[~~(S / f)],
|
|
71577
|
+
I = a === iA ? A : E[~~(S / f)], G = I - C[S].y2 - e[S].y - v[S], G > 0 && (v[S] += G / 2);
|
|
71578
71578
|
for (S = 0; S < h; ++S)
|
|
71579
71579
|
o.union(C[S].translate(_[S], v[S]));
|
|
71580
|
-
switch (Y = mn(r.anchor, ETe),
|
|
71580
|
+
switch (Y = mn(r.anchor, ETe), G = mn(r.anchor, ATe), mn(r.anchor, d0)) {
|
|
71581
71581
|
case ai:
|
|
71582
71582
|
Y -= o.width();
|
|
71583
71583
|
break;
|
|
@@ -71586,15 +71586,15 @@ function One(t, e, r) {
|
|
|
71586
71586
|
}
|
|
71587
71587
|
switch (mn(r.anchor, h0)) {
|
|
71588
71588
|
case ai:
|
|
71589
|
-
|
|
71589
|
+
G -= o.height();
|
|
71590
71590
|
break;
|
|
71591
71591
|
case hw:
|
|
71592
|
-
|
|
71592
|
+
G -= o.height() / 2;
|
|
71593
71593
|
}
|
|
71594
|
-
for (Y = Math.round(Y),
|
|
71594
|
+
for (Y = Math.round(Y), G = Math.round(G), o.clear(), S = 0; S < h; ++S)
|
|
71595
71595
|
e[S].mark.bounds.clear();
|
|
71596
71596
|
for (S = 0; S < h; ++S)
|
|
71597
|
-
D = e[S], D.x += _[S] += Y, D.y += v[S] +=
|
|
71597
|
+
D = e[S], D.x += _[S] += Y, D.y += v[S] += G, o.union(D.mark.bounds.union(D.bounds.translate(_[S], v[S]))), i && t.dirty(D);
|
|
71598
71598
|
return o;
|
|
71599
71599
|
}
|
|
71600
71600
|
function BTe(t, e, r) {
|
|
@@ -72690,8 +72690,8 @@ function zRe(t, e) {
|
|
|
72690
72690
|
qv(j);
|
|
72691
72691
|
var Y = Oh(o, j);
|
|
72692
72692
|
qv(Y);
|
|
72693
|
-
var
|
|
72694
|
-
(i >
|
|
72693
|
+
var G = (D ^ R >= 0 ? -1 : 1) * ns(Y[2]);
|
|
72694
|
+
(i > G || i === G && (j[0] || j[1])) && (a += D ^ R >= 0 ? 1 : -1);
|
|
72695
72695
|
}
|
|
72696
72696
|
}
|
|
72697
72697
|
return (u < -it || u < it && l < -$v) ^ a & 1;
|
|
@@ -72838,10 +72838,10 @@ function JRe(t) {
|
|
|
72838
72838
|
if (!(k < 0)) {
|
|
72839
72839
|
var j = Di(k), Y = cA(O, (-I - j) / D);
|
|
72840
72840
|
if (r6(Y, S), Y = Uv(Y), !h) return Y;
|
|
72841
|
-
var
|
|
72842
|
-
X <
|
|
72843
|
-
var oe = X -
|
|
72844
|
-
if (!xe && fe < ce && (te = ce, ce = fe, fe = te), Se ? xe ? ce + fe > 0 ^ Y[1] < (St(Y[0] -
|
|
72841
|
+
var G = f[0], X = x[0], ce = f[1], fe = x[1], te;
|
|
72842
|
+
X < G && (te = G, G = X, X = te);
|
|
72843
|
+
var oe = X - G, xe = St(oe - At) < it, Se = xe || oe < it;
|
|
72844
|
+
if (!xe && fe < ce && (te = ce, ce = fe, fe = te), Se ? xe ? ce + fe > 0 ^ Y[1] < (St(Y[0] - G) < it ? ce : fe) : ce <= Y[1] && Y[1] <= fe : oe > At ^ (G <= Y[0] && Y[0] <= X)) {
|
|
72845
72845
|
var $ = cA(O, (-I + j) / D);
|
|
72846
72846
|
return r6($, S), [Y, Uv($)];
|
|
72847
72847
|
}
|
|
@@ -72925,21 +72925,21 @@ function ure(t, e, r, i) {
|
|
|
72925
72925
|
polygonStart: I,
|
|
72926
72926
|
polygonEnd: D
|
|
72927
72927
|
};
|
|
72928
|
-
function R(
|
|
72929
|
-
s(
|
|
72928
|
+
function R(G, X) {
|
|
72929
|
+
s(G, X) && f.point(G, X);
|
|
72930
72930
|
}
|
|
72931
72931
|
function O() {
|
|
72932
|
-
for (var
|
|
72932
|
+
for (var G = 0, X = 0, ce = p.length; X < ce; ++X)
|
|
72933
72933
|
for (var fe = p[X], te = 1, oe = fe.length, xe = fe[0], Se, $, N = xe[0], L = xe[1]; te < oe; ++te)
|
|
72934
|
-
Se = N, $ = L, xe = fe[te], N = xe[0], L = xe[1], $ <= i ? L > i && (N - Se) * (i - $) > (L - $) * (t - Se) && ++
|
|
72935
|
-
return
|
|
72934
|
+
Se = N, $ = L, xe = fe[te], N = xe[0], L = xe[1], $ <= i ? L > i && (N - Se) * (i - $) > (L - $) * (t - Se) && ++G : L <= i && (N - Se) * (i - $) < (L - $) * (t - Se) && --G;
|
|
72935
|
+
return G;
|
|
72936
72936
|
}
|
|
72937
72937
|
function I() {
|
|
72938
72938
|
f = x, h = [], p = [], b = !0;
|
|
72939
72939
|
}
|
|
72940
72940
|
function D() {
|
|
72941
|
-
var
|
|
72942
|
-
(X || ce) && (c.polygonStart(), X && (c.lineStart(), o(null, null, 1, c), c.lineEnd()), ce && sre(h, a,
|
|
72941
|
+
var G = O(), X = b && G, ce = (h = yX(h)).length;
|
|
72942
|
+
(X || ce) && (c.polygonStart(), X && (c.lineStart(), o(null, null, 1, c), c.lineEnd()), ce && sre(h, a, G, o, c), c.polygonEnd()), f = c, h = p = m = null;
|
|
72943
72943
|
}
|
|
72944
72944
|
function k() {
|
|
72945
72945
|
S.point = Y, p && p.push(m = []), C = !0, v = !1, A = _ = NaN;
|
|
@@ -72947,16 +72947,16 @@ function ure(t, e, r, i) {
|
|
|
72947
72947
|
function j() {
|
|
72948
72948
|
h && (Y(g, y), E && v && x.rejoin(), h.push(x.result())), S.point = R, v && f.lineEnd();
|
|
72949
72949
|
}
|
|
72950
|
-
function Y(
|
|
72951
|
-
var ce = s(
|
|
72952
|
-
if (p && m.push([
|
|
72953
|
-
g =
|
|
72954
|
-
else if (ce && v) f.point(
|
|
72950
|
+
function Y(G, X) {
|
|
72951
|
+
var ce = s(G, X);
|
|
72952
|
+
if (p && m.push([G, X]), C)
|
|
72953
|
+
g = G, y = X, E = ce, C = !1, ce && (f.lineStart(), f.point(G, X));
|
|
72954
|
+
else if (ce && v) f.point(G, X);
|
|
72955
72955
|
else {
|
|
72956
|
-
var fe = [A = Math.max(xA, Math.min(Sm, A)), _ = Math.max(xA, Math.min(Sm, _))], te = [
|
|
72957
|
-
XRe(fe, te, t, e, r, i) ? (v || (f.lineStart(), f.point(fe[0], fe[1])), f.point(te[0], te[1]), ce || f.lineEnd(), b = !1) : ce && (f.lineStart(), f.point(
|
|
72956
|
+
var fe = [A = Math.max(xA, Math.min(Sm, A)), _ = Math.max(xA, Math.min(Sm, _))], te = [G = Math.max(xA, Math.min(Sm, G)), X = Math.max(xA, Math.min(Sm, X))];
|
|
72957
|
+
XRe(fe, te, t, e, r, i) ? (v || (f.lineStart(), f.point(fe[0], fe[1])), f.point(te[0], te[1]), ce || f.lineEnd(), b = !1) : ce && (f.lineStart(), f.point(G, X), b = !1);
|
|
72958
72958
|
}
|
|
72959
|
-
A =
|
|
72959
|
+
A = G, _ = X, v = ce;
|
|
72960
72960
|
}
|
|
72961
72961
|
return S;
|
|
72962
72962
|
};
|
|
@@ -73335,8 +73335,8 @@ function dDe(t, e) {
|
|
|
73335
73335
|
function r(i, s, o, u, a, l, c, f, x, h, p, m, g, y) {
|
|
73336
73336
|
var E = c - i, A = f - s, _ = E * E + A * A;
|
|
73337
73337
|
if (_ > 4 * e && g--) {
|
|
73338
|
-
var v = u + h, C = a + p, b = l + m, S = Di(v * v + C * C + b * b), R = ns(b /= S), O = St(St(b) - 1) < it || St(o - x) < it ? (o + x) / 2 : lo(C, v), I = t(O, R), D = I[0], k = I[1], j = D - i, Y = k - s,
|
|
73339
|
-
(
|
|
73338
|
+
var v = u + h, C = a + p, b = l + m, S = Di(v * v + C * C + b * b), R = ns(b /= S), O = St(St(b) - 1) < it || St(o - x) < it ? (o + x) / 2 : lo(C, v), I = t(O, R), D = I[0], k = I[1], j = D - i, Y = k - s, G = A * j - E * Y;
|
|
73339
|
+
(G * G / _ > e || St((E * j + A * Y) / _ - 0.5) > 0.3 || u * h + a * p + l * m < fDe) && (r(i, s, o, u, a, l, D, k, O, v /= S, C /= S, b, g, y), y.point(D, k), r(D, k, O, v, C, b, c, f, x, h, p, m, g, y));
|
|
73340
73340
|
}
|
|
73341
73341
|
}
|
|
73342
73342
|
return function(i) {
|
|
@@ -73414,49 +73414,49 @@ function fa(t) {
|
|
|
73414
73414
|
}
|
|
73415
73415
|
function Are(t) {
|
|
73416
73416
|
var e, r = 150, i = 480, s = 250, o = 0, u = 0, a = 0, l = 0, c = 0, f, x = 0, h = 1, p = 1, m = null, g = jq, y = null, E, A, _, v = Og, C = 0.5, b, S, R, O, I;
|
|
73417
|
-
function D(
|
|
73418
|
-
return R(
|
|
73419
|
-
}
|
|
73420
|
-
function k(
|
|
73421
|
-
return
|
|
73422
|
-
}
|
|
73423
|
-
D.stream = function(
|
|
73424
|
-
return O && I ===
|
|
73425
|
-
}, D.preclip = function(
|
|
73426
|
-
return arguments.length ? (g =
|
|
73427
|
-
}, D.postclip = function(
|
|
73428
|
-
return arguments.length ? (v =
|
|
73429
|
-
}, D.clipAngle = function(
|
|
73430
|
-
return arguments.length ? (g = +
|
|
73431
|
-
}, D.clipExtent = function(
|
|
73432
|
-
return arguments.length ? (v =
|
|
73433
|
-
}, D.scale = function(
|
|
73434
|
-
return arguments.length ? (r = +
|
|
73435
|
-
}, D.translate = function(
|
|
73436
|
-
return arguments.length ? (i = +
|
|
73437
|
-
}, D.center = function(
|
|
73438
|
-
return arguments.length ? (o =
|
|
73439
|
-
}, D.rotate = function(
|
|
73440
|
-
return arguments.length ? (a =
|
|
73441
|
-
}, D.angle = function(
|
|
73442
|
-
return arguments.length ? (x =
|
|
73443
|
-
}, D.reflectX = function(
|
|
73444
|
-
return arguments.length ? (h =
|
|
73445
|
-
}, D.reflectY = function(
|
|
73446
|
-
return arguments.length ? (p =
|
|
73447
|
-
}, D.precision = function(
|
|
73448
|
-
return arguments.length ? (b = Kq(S, C =
|
|
73449
|
-
}, D.fitExtent = function(
|
|
73450
|
-
return X5(D,
|
|
73451
|
-
}, D.fitSize = function(
|
|
73452
|
-
return sI(D,
|
|
73453
|
-
}, D.fitWidth = function(
|
|
73454
|
-
return oI(D,
|
|
73455
|
-
}, D.fitHeight = function(
|
|
73456
|
-
return uI(D,
|
|
73417
|
+
function D(G) {
|
|
73418
|
+
return R(G[0] * Et, G[1] * Et);
|
|
73419
|
+
}
|
|
73420
|
+
function k(G) {
|
|
73421
|
+
return G = R.invert(G[0], G[1]), G && [G[0] * In, G[1] * In];
|
|
73422
|
+
}
|
|
73423
|
+
D.stream = function(G) {
|
|
73424
|
+
return O && I === G ? O : O = hDe(pDe(f)(g(b(v(I = G)))));
|
|
73425
|
+
}, D.preclip = function(G) {
|
|
73426
|
+
return arguments.length ? (g = G, m = void 0, Y()) : g;
|
|
73427
|
+
}, D.postclip = function(G) {
|
|
73428
|
+
return arguments.length ? (v = G, y = E = A = _ = null, Y()) : v;
|
|
73429
|
+
}, D.clipAngle = function(G) {
|
|
73430
|
+
return arguments.length ? (g = +G ? JRe(m = G * Et) : (m = null, jq), Y()) : m * In;
|
|
73431
|
+
}, D.clipExtent = function(G) {
|
|
73432
|
+
return arguments.length ? (v = G == null ? (y = E = A = _ = null, Og) : ure(y = +G[0][0], E = +G[0][1], A = +G[1][0], _ = +G[1][1]), Y()) : y == null ? null : [[y, E], [A, _]];
|
|
73433
|
+
}, D.scale = function(G) {
|
|
73434
|
+
return arguments.length ? (r = +G, j()) : r;
|
|
73435
|
+
}, D.translate = function(G) {
|
|
73436
|
+
return arguments.length ? (i = +G[0], s = +G[1], j()) : [i, s];
|
|
73437
|
+
}, D.center = function(G) {
|
|
73438
|
+
return arguments.length ? (o = G[0] % 360 * Et, u = G[1] % 360 * Et, j()) : [o * In, u * In];
|
|
73439
|
+
}, D.rotate = function(G) {
|
|
73440
|
+
return arguments.length ? (a = G[0] % 360 * Et, l = G[1] % 360 * Et, c = G.length > 2 ? G[2] % 360 * Et : 0, j()) : [a * In, l * In, c * In];
|
|
73441
|
+
}, D.angle = function(G) {
|
|
73442
|
+
return arguments.length ? (x = G % 360 * Et, j()) : x * In;
|
|
73443
|
+
}, D.reflectX = function(G) {
|
|
73444
|
+
return arguments.length ? (h = G ? -1 : 1, j()) : h < 0;
|
|
73445
|
+
}, D.reflectY = function(G) {
|
|
73446
|
+
return arguments.length ? (p = G ? -1 : 1, j()) : p < 0;
|
|
73447
|
+
}, D.precision = function(G) {
|
|
73448
|
+
return arguments.length ? (b = Kq(S, C = G * G), Y()) : Di(C);
|
|
73449
|
+
}, D.fitExtent = function(G, X) {
|
|
73450
|
+
return X5(D, G, X);
|
|
73451
|
+
}, D.fitSize = function(G, X) {
|
|
73452
|
+
return sI(D, G, X);
|
|
73453
|
+
}, D.fitWidth = function(G, X) {
|
|
73454
|
+
return oI(D, G, X);
|
|
73455
|
+
}, D.fitHeight = function(G, X) {
|
|
73456
|
+
return uI(D, G, X);
|
|
73457
73457
|
};
|
|
73458
73458
|
function j() {
|
|
73459
|
-
var
|
|
73459
|
+
var G = Jq(r, 0, 0, h, p, x).apply(null, e(o, u)), X = Jq(r, i - G[0], s - G[1], h, p, x);
|
|
73460
73460
|
return f = rre(a, l, c), S = Tw(e, X), R = Tw(f, S), b = Kq(S, C), Y();
|
|
73461
73461
|
}
|
|
73462
73462
|
function Y() {
|
|
@@ -76588,13 +76588,13 @@ function A7e(t, e, r, i) {
|
|
|
76588
76588
|
}
|
|
76589
76589
|
return function(c) {
|
|
76590
76590
|
const f = c.datum.datum.items[i].items, x = f.length, h = c.datum.fontSize, p = Zs.width(c.datum, c.datum.text);
|
|
76591
|
-
let m = r ? h : 0, g = !1, y = !1, E = 0, A, _, v, C, b, S, R, O, I, D, k, j, Y,
|
|
76591
|
+
let m = r ? h : 0, g = !1, y = !1, E = 0, A, _, v, C, b, S, R, O, I, D, k, j, Y, G, X, ce, fe;
|
|
76592
76592
|
for (let te = 0; te < x; ++te) {
|
|
76593
|
-
for (A = f[te].x, v = f[te].y, _ = f[te].x2 === void 0 ? A : f[te].x2, C = f[te].y2 === void 0 ? v : f[te].y2, A > _ && (fe = A, A = _, _ = fe), v > C && (fe = v, v = C, C = fe), I = t(A), k = t(_), D = ~~((I + k) / 2), j = t(v),
|
|
76593
|
+
for (A = f[te].x, v = f[te].y, _ = f[te].x2 === void 0 ? A : f[te].x2, C = f[te].y2 === void 0 ? v : f[te].y2, A > _ && (fe = A, A = _, _ = fe), v > C && (fe = v, v = C, C = fe), I = t(A), k = t(_), D = ~~((I + k) / 2), j = t(v), G = t(C), Y = ~~((j + G) / 2), R = D; R >= I; --R)
|
|
76594
76594
|
for (O = Y; O >= j; --O)
|
|
76595
76595
|
ce = l(R, O, m, p, h), ce && ([c.x, c.y, m, g] = ce);
|
|
76596
76596
|
for (R = D; R <= k; ++R)
|
|
76597
|
-
for (O = Y; O <=
|
|
76597
|
+
for (O = Y; O <= G; ++O)
|
|
76598
76598
|
ce = l(R, O, m, p, h), ce && ([c.x, c.y, m, g] = ce);
|
|
76599
76599
|
!g && !r && (X = Math.abs(_ - A + C - v), b = (A + _) / 2, S = (v + C) / 2, X >= E && !cC(b, S, p, h, s, o) && !m0(t, b, S, h, p, h, u, null) && (E = X, c.x = b, c.y = S, y = !0));
|
|
76600
76600
|
}
|
|
@@ -76607,8 +76607,8 @@ function C7e(t, e, r, i) {
|
|
|
76607
76607
|
return function(c) {
|
|
76608
76608
|
const f = c.datum.datum.items[i].items, x = f.length, h = c.datum.fontSize, p = Zs.width(c.datum, c.datum.text), m = [];
|
|
76609
76609
|
let g = r ? h : 0, y = !1, E = !1, A = 0, _, v, C, b, S, R, O, I, D, k, j, Y;
|
|
76610
|
-
for (let
|
|
76611
|
-
for (_ = f[
|
|
76610
|
+
for (let G = 0; G < x; ++G) {
|
|
76611
|
+
for (_ = f[G].x, C = f[G].y, v = f[G].x2 === void 0 ? _ : f[G].x2, b = f[G].y2 === void 0 ? C : f[G].y2, m.push([t((_ + v) / 2), t((C + b) / 2)]); m.length; )
|
|
76612
76612
|
if ([O, I] = m.pop(), !(u.get(O, I) || a.get(O, I) || l.get(O, I))) {
|
|
76613
76613
|
l.set(O, I);
|
|
76614
76614
|
for (let X = 0; X < 4; ++X)
|
|
@@ -76980,9 +76980,9 @@ function q7e(t, e, r, i, s, o, u) {
|
|
|
76980
76980
|
let j = P7e(4, Ad), Y = j7e * u;
|
|
76981
76981
|
if (j >= Y || -j >= Y || (x = t - O, a = t - (O + x) + (x - s), x = r - I, c = r - (I + x) + (x - s), x = e - D, l = e - (D + x) + (x - o), x = i - k, f = i - (k + x) + (x - o), a === 0 && l === 0 && c === 0 && f === 0) || (Y = U7e * u + k7e * Math.abs(j), j += O * f + k * a - (D * c + I * l), j >= Y || -j >= Y)) return j;
|
|
76982
76982
|
v = a * k, h = Ir * a, p = h - (h - a), m = a - p, h = Ir * k, g = h - (h - k), y = k - g, C = m * y - (v - p * g - m * g - p * y), b = l * I, h = Ir * l, p = h - (h - l), m = l - p, h = Ir * I, g = h - (h - I), y = I - g, S = m * y - (b - p * g - m * g - p * y), E = C - S, x = C - E, si[0] = C - (E + x) + (x - S), A = v + E, x = A - v, _ = v - (A - x) + (E - x), E = _ - b, x = _ - E, si[1] = _ - (E + x) + (x - b), R = A + E, x = R - A, si[2] = A - (R - x) + (E - x), si[3] = R;
|
|
76983
|
-
const
|
|
76983
|
+
const G = _6(4, Ad, 4, si, AH);
|
|
76984
76984
|
v = O * f, h = Ir * O, p = h - (h - O), m = O - p, h = Ir * f, g = h - (h - f), y = f - g, C = m * y - (v - p * g - m * g - p * y), b = D * c, h = Ir * D, p = h - (h - D), m = D - p, h = Ir * c, g = h - (h - c), y = c - g, S = m * y - (b - p * g - m * g - p * y), E = C - S, x = C - E, si[0] = C - (E + x) + (x - S), A = v + E, x = A - v, _ = v - (A - x) + (E - x), E = _ - b, x = _ - E, si[1] = _ - (E + x) + (x - b), R = A + E, x = R - A, si[2] = A - (R - x) + (E - x), si[3] = R;
|
|
76985
|
-
const X = _6(
|
|
76985
|
+
const X = _6(G, AH, 4, si, _H);
|
|
76986
76986
|
v = a * f, h = Ir * a, p = h - (h - a), m = a - p, h = Ir * f, g = h - (h - f), y = f - g, C = m * y - (v - p * g - m * g - p * y), b = l * c, h = Ir * l, p = h - (h - l), m = l - p, h = Ir * c, g = h - (h - c), y = c - g, S = m * y - (b - p * g - m * g - p * y), E = C - S, x = C - E, si[0] = C - (E + x) + (x - S), A = v + E, x = A - v, _ = v - (A - x) + (E - x), E = _ - b, x = _ - E, si[1] = _ - (E + x) + (x - b), R = A + E, x = R - A, si[2] = A - (R - x) + (E - x), si[3] = R;
|
|
76987
76987
|
const ce = _6(X, _H, 4, si, vH);
|
|
76988
76988
|
return vH[ce - 1];
|
|
@@ -77061,13 +77061,13 @@ class fC {
|
|
|
77061
77061
|
for (let O = 0, I, D; O < this._ids.length; O++) {
|
|
77062
77062
|
const k = this._ids[O], j = e[2 * k], Y = e[2 * k + 1];
|
|
77063
77063
|
if (O > 0 && Math.abs(j - I) <= CH && Math.abs(Y - D) <= CH || (I = j, D = Y, k === p || k === m || k === g)) continue;
|
|
77064
|
-
let
|
|
77065
|
-
for (let oe = 0, xe = this._hashKey(j, Y); oe < this._hashSize && (
|
|
77064
|
+
let G = 0;
|
|
77065
|
+
for (let oe = 0, xe = this._hashKey(j, Y); oe < this._hashSize && (G = o[(xe + oe) % this._hashSize], !(G !== -1 && G !== i[G])); oe++)
|
|
77066
77066
|
;
|
|
77067
|
-
|
|
77068
|
-
let X =
|
|
77067
|
+
G = r[G];
|
|
77068
|
+
let X = G, ce;
|
|
77069
77069
|
for (; ce = i[X], mA(j, Y, e[2 * X], e[2 * X + 1], e[2 * ce], e[2 * ce + 1]) >= 0; )
|
|
77070
|
-
if (X = ce, X ===
|
|
77070
|
+
if (X = ce, X === G) {
|
|
77071
77071
|
X = -1;
|
|
77072
77072
|
break;
|
|
77073
77073
|
}
|
|
@@ -77077,7 +77077,7 @@ class fC {
|
|
|
77077
77077
|
let te = i[X];
|
|
77078
77078
|
for (; ce = i[te], mA(j, Y, e[2 * te], e[2 * te + 1], e[2 * ce], e[2 * ce + 1]) < 0; )
|
|
77079
77079
|
fe = this._addTriangle(te, k, ce, s[k], -1, s[te]), s[k] = this._legalize(fe + 2), i[te] = te, R--, te = ce;
|
|
77080
|
-
if (X ===
|
|
77080
|
+
if (X === G)
|
|
77081
77081
|
for (; ce = r[X], mA(j, Y, e[2 * ce], e[2 * ce + 1], e[2 * X], e[2 * X + 1]) < 0; )
|
|
77082
77082
|
fe = this._addTriangle(ce, k, X, -1, s[X], s[ce]), this._legalize(fe + 2), s[ce] = fe, i[X] = X, R--, X = ce;
|
|
77083
77083
|
this._hullStart = r[k] = X, i[X] = r[te] = k, i[k] = te, o[this._hashKey(j, Y)] = k, o[this._hashKey(e[2 * X], e[2 * X + 1])] = X;
|
|
@@ -77256,18 +77256,18 @@ let Y7e = class {
|
|
|
77256
77256
|
let o, u;
|
|
77257
77257
|
const a = this.circumcenters = this._circumcenters.subarray(0, i.length / 3 * 2);
|
|
77258
77258
|
for (let g = 0, y = 0, E = i.length, A, _; g < E; g += 3, y += 2) {
|
|
77259
|
-
const v = i[g] * 2, C = i[g + 1] * 2, b = i[g + 2] * 2, S = e[v], R = e[v + 1], O = e[C], I = e[C + 1], D = e[b], k = e[b + 1], j = O - S, Y = I - R,
|
|
77259
|
+
const v = i[g] * 2, C = i[g + 1] * 2, b = i[g + 2] * 2, S = e[v], R = e[v + 1], O = e[C], I = e[C + 1], D = e[b], k = e[b + 1], j = O - S, Y = I - R, G = D - S, X = k - R, ce = (j * X - Y * G) * 2;
|
|
77260
77260
|
if (Math.abs(ce) < 1e-9) {
|
|
77261
77261
|
if (o === void 0) {
|
|
77262
77262
|
o = u = 0;
|
|
77263
77263
|
for (const te of r) o += e[te * 2], u += e[te * 2 + 1];
|
|
77264
77264
|
o /= r.length, u /= r.length;
|
|
77265
77265
|
}
|
|
77266
|
-
const fe = 1e9 * Math.sign((o - S) * X - (u - R) *
|
|
77267
|
-
A = (S + D) / 2 - fe * X, _ = (R + k) / 2 + fe *
|
|
77266
|
+
const fe = 1e9 * Math.sign((o - S) * X - (u - R) * G);
|
|
77267
|
+
A = (S + D) / 2 - fe * X, _ = (R + k) / 2 + fe * G;
|
|
77268
77268
|
} else {
|
|
77269
|
-
const fe = 1 / ce, te = j * j + Y * Y, oe =
|
|
77270
|
-
A = S + (X * te - Y * oe) * fe, _ = R + (j * oe -
|
|
77269
|
+
const fe = 1 / ce, te = j * j + Y * Y, oe = G * G + X * X;
|
|
77270
|
+
A = S + (X * te - Y * oe) * fe, _ = R + (j * oe - G * te) * fe;
|
|
77271
77271
|
}
|
|
77272
77272
|
a[y] = A, a[y + 1] = _;
|
|
77273
77273
|
}
|
|
@@ -77735,10 +77735,10 @@ function uwe() {
|
|
|
77735
77735
|
function p(m, g, y) {
|
|
77736
77736
|
for (var E = g.x, A = g.y, _ = Math.hypot(t[0], t[1]), v = l(t), C = f() < 0.5 ? 1 : -1, b = -C, S, R, O; (S = v(b += C)) && (R = ~~S[0], O = ~~S[1], !(Math.min(Math.abs(R), Math.abs(O)) >= _)); )
|
|
77737
77737
|
if (g.x = E + R, g.y = A + O, !(g.x + g.x0 < 0 || g.y + g.y0 < 0 || g.x + g.x1 > t[0] || g.y + g.y1 > t[1]) && (!y || !lwe(g, m, t[0])) && (!y || fwe(g, y))) {
|
|
77738
|
-
for (var I = g.sprite, D = g.width >> 5, k = t[0] >> 5, j = g.x - (D << 4), Y = j & 127,
|
|
77738
|
+
for (var I = g.sprite, D = g.width >> 5, k = t[0] >> 5, j = g.x - (D << 4), Y = j & 127, G = 32 - Y, X = g.y1 - g.y0, ce = (g.y + g.y0) * k + (j >> 5), fe, te = 0; te < X; te++) {
|
|
77739
77739
|
fe = 0;
|
|
77740
77740
|
for (var oe = 0; oe <= D; oe++)
|
|
77741
|
-
m[ce + oe] |= fe <<
|
|
77741
|
+
m[ce + oe] |= fe << G | (oe < D ? (fe = I[te * D + oe]) >>> Y : 0);
|
|
77742
77742
|
ce += k;
|
|
77743
77743
|
}
|
|
77744
77744
|
return g.sprite = null, !0;
|
|
@@ -84797,13 +84797,13 @@ function xoe(t, { config: e }) {
|
|
|
84797
84797
|
c,
|
|
84798
84798
|
// TODO: https://github.com/vega/vega-lite/issues/6245
|
|
84799
84799
|
e
|
|
84800
|
-
), h = foe(f), { bins: p, timeUnits: m, transform: g, continuousAxisChannelDef: y, continuousAxis: E, groupby: A, aggregate: _, encodingWithoutContinuousAxis: v, ticksOrient: C, boxOrient: b, customTooltipWithoutAggregatedField: S } = lke(t, f, e), { color: R, size: O } = v, I = N_(v, ["color", "size"]), D = (Z) => L$(c, E, y, Z, e.boxplot), k = D(I), j = D(v), Y = D(Object.assign(Object.assign({}, I), O ? { size: O } : {})),
|
|
84800
|
+
), h = foe(f), { bins: p, timeUnits: m, transform: g, continuousAxisChannelDef: y, continuousAxis: E, groupby: A, aggregate: _, encodingWithoutContinuousAxis: v, ticksOrient: C, boxOrient: b, customTooltipWithoutAggregatedField: S } = lke(t, f, e), { color: R, size: O } = v, I = N_(v, ["color", "size"]), D = (Z) => L$(c, E, y, Z, e.boxplot), k = D(I), j = D(v), Y = D(Object.assign(Object.assign({}, I), O ? { size: O } : {})), G = y8([
|
|
84801
84801
|
{ fieldPrefix: h === "min-max" ? "upper_whisker_" : "max_", titlePrefix: "Max" },
|
|
84802
84802
|
{ fieldPrefix: "upper_box_", titlePrefix: "Q3" },
|
|
84803
84803
|
{ fieldPrefix: "mid_box_", titlePrefix: "Median" },
|
|
84804
84804
|
{ fieldPrefix: "lower_box_", titlePrefix: "Q1" },
|
|
84805
84805
|
{ fieldPrefix: h === "min-max" ? "lower_whisker_" : "min_", titlePrefix: "Min" }
|
|
84806
|
-
], y, v), X = { type: "tick", color: "black", opacity: 1, orient: C, invalid: null, aria: !1 }, ce = h === "min-max" ?
|
|
84806
|
+
], y, v), X = { type: "tick", color: "black", opacity: 1, orient: C, invalid: null, aria: !1 }, ce = h === "min-max" ? G : (
|
|
84807
84807
|
// for tukey / k-IQR, just show upper/lower-whisker
|
|
84808
84808
|
y8([
|
|
84809
84809
|
{ fieldPrefix: "upper_whisker_", titlePrefix: "Upper Whisker" },
|
|
@@ -84843,13 +84843,13 @@ function xoe(t, { config: e }) {
|
|
|
84843
84843
|
mark: Object.assign(Object.assign({ type: "bar" }, x ? { size: x } : {}), { orient: b, invalid: null, ariaRoleDescription: "box" }),
|
|
84844
84844
|
positionPrefix: "lower_box",
|
|
84845
84845
|
endPositionPrefix: "upper_box",
|
|
84846
|
-
extraEncoding:
|
|
84846
|
+
extraEncoding: G
|
|
84847
84847
|
}),
|
|
84848
84848
|
...Y({
|
|
84849
84849
|
partName: "median",
|
|
84850
84850
|
mark: Object.assign(Object.assign(Object.assign({ type: "tick", invalid: null }, Ge(e.boxplot.median) && e.boxplot.median.color ? { color: e.boxplot.median.color } : {}), x ? { size: x } : {}), { orient: C, aria: !1 }),
|
|
84851
84851
|
positionPrefix: "mid_box",
|
|
84852
|
-
extraEncoding:
|
|
84852
|
+
extraEncoding: G
|
|
84853
84853
|
})
|
|
84854
84854
|
];
|
|
84855
84855
|
if (h === "min-max")
|
|
@@ -84891,18 +84891,18 @@ function xoe(t, { config: e }) {
|
|
|
84891
84891
|
}
|
|
84892
84892
|
],
|
|
84893
84893
|
layer: fe
|
|
84894
|
-
},
|
|
84894
|
+
}, Q = N_(I, ["tooltip"]), { scale: w, axis: P } = y, U = N$(y), W = Xs(P, ["title"]), M = aoe(c, "outliers", e.boxplot, {
|
|
84895
84895
|
transform: [{ filter: `(${L} < ${$}) || (${L} > ${N})` }],
|
|
84896
84896
|
mark: "point",
|
|
84897
|
-
encoding: Object.assign(Object.assign(Object.assign({ [E]: Object.assign(Object.assign(Object.assign({ field: y.field, type: y.type }, U !== void 0 ? { title: U } : {}), w !== void 0 ? { scale: w } : {}), en(W) ? {} : { axis: W }) },
|
|
84897
|
+
encoding: Object.assign(Object.assign(Object.assign({ [E]: Object.assign(Object.assign(Object.assign({ field: y.field, type: y.type }, U !== void 0 ? { title: U } : {}), w !== void 0 ? { scale: w } : {}), en(W) ? {} : { axis: W }) }, Q), R ? { color: R } : {}), S ? { tooltip: S } : {})
|
|
84898
84898
|
})[0];
|
|
84899
|
-
let
|
|
84899
|
+
let z;
|
|
84900
84900
|
const H = [...p, ...m, q];
|
|
84901
|
-
return M ?
|
|
84901
|
+
return M ? z = {
|
|
84902
84902
|
transform: H,
|
|
84903
84903
|
layer: [M, V]
|
|
84904
|
-
} : (
|
|
84905
|
-
|
|
84904
|
+
} : (z = V, z.transform.unshift(...H)), Object.assign(Object.assign({}, l), { layer: [
|
|
84905
|
+
z,
|
|
84906
84906
|
{
|
|
84907
84907
|
// boxplot
|
|
84908
84908
|
transform: g,
|
|
@@ -85082,7 +85082,7 @@ function poe(t, e, r) {
|
|
|
85082
85082
|
C[R];
|
|
85083
85083
|
const O = y === "x" ? "xError2" : "yError2";
|
|
85084
85084
|
C[O];
|
|
85085
|
-
const I = bQ(C, [typeof b == "symbol" ? b : b + "", typeof S == "symbol" ? S : S + "", typeof R == "symbol" ? R : R + "", typeof O == "symbol" ? O : O + ""]), { bins: D, timeUnits: k, aggregate: j, groupby: Y, encoding:
|
|
85085
|
+
const I = bQ(C, [typeof b == "symbol" ? b : b + "", typeof S == "symbol" ? S : S + "", typeof R == "symbol" ? R : R + "", typeof O == "symbol" ? O : O + ""]), { bins: D, timeUnits: k, aggregate: j, groupby: Y, encoding: G } = soe(I, r), X = [...j, ...E], ce = x !== "raw" ? [] : Y, fe = y8(_, h, G, v);
|
|
85086
85086
|
return {
|
|
85087
85087
|
transform: [
|
|
85088
85088
|
...(i = l.transform) !== null && i !== void 0 ? i : [],
|
|
@@ -85094,7 +85094,7 @@ function poe(t, e, r) {
|
|
|
85094
85094
|
groupby: ce,
|
|
85095
85095
|
continuousAxisChannelDef: h,
|
|
85096
85096
|
continuousAxis: y,
|
|
85097
|
-
encodingWithoutContinuousAxis:
|
|
85097
|
+
encodingWithoutContinuousAxis: G,
|
|
85098
85098
|
ticksOrient: f === "vertical" ? "horizontal" : "vertical",
|
|
85099
85099
|
markDef: c,
|
|
85100
85100
|
outerSpec: l,
|
|
@@ -96915,10 +96915,10 @@ var Uze = function(e) {
|
|
|
96915
96915
|
return l(ee) === "[object Set]";
|
|
96916
96916
|
}
|
|
96917
96917
|
Y.working = typeof Set < "u" && Y(/* @__PURE__ */ new Set());
|
|
96918
|
-
function
|
|
96918
|
+
function G(ee) {
|
|
96919
96919
|
return typeof Set > "u" ? !1 : Y.working ? Y(ee) : ee instanceof Set;
|
|
96920
96920
|
}
|
|
96921
|
-
t.isSet =
|
|
96921
|
+
t.isSet = G;
|
|
96922
96922
|
function X(ee) {
|
|
96923
96923
|
return l(ee) === "[object WeakMap]";
|
|
96924
96924
|
}
|
|
@@ -96963,10 +96963,10 @@ var Uze = function(e) {
|
|
|
96963
96963
|
return l(ee) === "[object AsyncFunction]";
|
|
96964
96964
|
}
|
|
96965
96965
|
t.isAsyncFunction = V;
|
|
96966
|
-
function
|
|
96966
|
+
function Q(ee) {
|
|
96967
96967
|
return l(ee) === "[object Map Iterator]";
|
|
96968
96968
|
}
|
|
96969
|
-
t.isMapIterator =
|
|
96969
|
+
t.isMapIterator = Q;
|
|
96970
96970
|
function w(ee) {
|
|
96971
96971
|
return l(ee) === "[object Set Iterator]";
|
|
96972
96972
|
}
|
|
@@ -96987,10 +96987,10 @@ var Uze = function(e) {
|
|
|
96987
96987
|
return m(ee, f);
|
|
96988
96988
|
}
|
|
96989
96989
|
t.isStringObject = M;
|
|
96990
|
-
function
|
|
96990
|
+
function z(ee) {
|
|
96991
96991
|
return m(ee, x);
|
|
96992
96992
|
}
|
|
96993
|
-
t.isBooleanObject =
|
|
96993
|
+
t.isBooleanObject = z;
|
|
96994
96994
|
function H(ee) {
|
|
96995
96995
|
return u && m(ee, h);
|
|
96996
96996
|
}
|
|
@@ -97000,7 +97000,7 @@ var Uze = function(e) {
|
|
|
97000
97000
|
}
|
|
97001
97001
|
t.isSymbolObject = Z;
|
|
97002
97002
|
function he(ee) {
|
|
97003
|
-
return W(ee) || M(ee) ||
|
|
97003
|
+
return W(ee) || M(ee) || z(ee) || H(ee) || Z(ee);
|
|
97004
97004
|
}
|
|
97005
97005
|
t.isBoxedPrimitive = he;
|
|
97006
97006
|
function ue(ee) {
|
|
@@ -97048,7 +97048,7 @@ var Gze = xF.exports;
|
|
|
97048
97048
|
N.push(a(arguments[L]));
|
|
97049
97049
|
return N.join(" ");
|
|
97050
97050
|
}
|
|
97051
|
-
for (var L = 1, q = arguments, V = q.length,
|
|
97051
|
+
for (var L = 1, q = arguments, V = q.length, Q = String($).replace(i, function(P) {
|
|
97052
97052
|
if (P === "%%") return "%";
|
|
97053
97053
|
if (L >= V) return P;
|
|
97054
97054
|
switch (P) {
|
|
@@ -97066,8 +97066,8 @@ var Gze = xF.exports;
|
|
|
97066
97066
|
return P;
|
|
97067
97067
|
}
|
|
97068
97068
|
}), w = q[L]; L < V; w = q[++L])
|
|
97069
|
-
_(w) || !I(w) ?
|
|
97070
|
-
return
|
|
97069
|
+
_(w) || !I(w) ? Q += " " + w : Q += " " + a(w);
|
|
97070
|
+
return Q;
|
|
97071
97071
|
}, t.deprecate = function($, N) {
|
|
97072
97072
|
if (typeof process < "u" && process.noDeprecation === !0)
|
|
97073
97073
|
return $;
|
|
@@ -97159,10 +97159,10 @@ var Gze = xF.exports;
|
|
|
97159
97159
|
var V = h($, N);
|
|
97160
97160
|
if (V)
|
|
97161
97161
|
return V;
|
|
97162
|
-
var
|
|
97163
|
-
if ($.showHidden && (
|
|
97162
|
+
var Q = Object.keys(N), w = f(Q);
|
|
97163
|
+
if ($.showHidden && (Q = Object.getOwnPropertyNames(N)), k(N) && (Q.indexOf("message") >= 0 || Q.indexOf("description") >= 0))
|
|
97164
97164
|
return p(N);
|
|
97165
|
-
if (
|
|
97165
|
+
if (Q.length === 0) {
|
|
97166
97166
|
if (j(N)) {
|
|
97167
97167
|
var P = N.name ? ": " + N.name : "";
|
|
97168
97168
|
return $.stylize("[Function" + P + "]", "special");
|
|
@@ -97176,16 +97176,16 @@ var Gze = xF.exports;
|
|
|
97176
97176
|
}
|
|
97177
97177
|
var U = "", W = !1, M = ["{", "}"];
|
|
97178
97178
|
if (E(N) && (W = !0, M = ["[", "]"]), j(N)) {
|
|
97179
|
-
var
|
|
97180
|
-
U = " [Function" +
|
|
97179
|
+
var z = N.name ? ": " + N.name : "";
|
|
97180
|
+
U = " [Function" + z + "]";
|
|
97181
97181
|
}
|
|
97182
|
-
if (O(N) && (U = " " + RegExp.prototype.toString.call(N)), D(N) && (U = " " + Date.prototype.toUTCString.call(N)), k(N) && (U = " " + p(N)),
|
|
97182
|
+
if (O(N) && (U = " " + RegExp.prototype.toString.call(N)), D(N) && (U = " " + Date.prototype.toUTCString.call(N)), k(N) && (U = " " + p(N)), Q.length === 0 && (!W || N.length == 0))
|
|
97183
97183
|
return M[0] + U + M[1];
|
|
97184
97184
|
if (L < 0)
|
|
97185
97185
|
return O(N) ? $.stylize(RegExp.prototype.toString.call(N), "regexp") : $.stylize("[Object]", "special");
|
|
97186
97186
|
$.seen.push(N);
|
|
97187
97187
|
var H;
|
|
97188
|
-
return W ? H = m($, N, L, w,
|
|
97188
|
+
return W ? H = m($, N, L, w, Q) : H = Q.map(function(Z) {
|
|
97189
97189
|
return g($, N, L, w, Z, W);
|
|
97190
97190
|
}), $.seen.pop(), y(H, U, M);
|
|
97191
97191
|
}
|
|
@@ -97207,17 +97207,17 @@ var Gze = xF.exports;
|
|
|
97207
97207
|
return "[" + Error.prototype.toString.call($) + "]";
|
|
97208
97208
|
}
|
|
97209
97209
|
function m($, N, L, q, V) {
|
|
97210
|
-
for (var
|
|
97211
|
-
te(N, String(w)) ?
|
|
97210
|
+
for (var Q = [], w = 0, P = N.length; w < P; ++w)
|
|
97211
|
+
te(N, String(w)) ? Q.push(g(
|
|
97212
97212
|
$,
|
|
97213
97213
|
N,
|
|
97214
97214
|
L,
|
|
97215
97215
|
q,
|
|
97216
97216
|
String(w),
|
|
97217
97217
|
!0
|
|
97218
|
-
)) :
|
|
97218
|
+
)) : Q.push("");
|
|
97219
97219
|
return V.forEach(function(U) {
|
|
97220
|
-
U.match(/^\d+$/) ||
|
|
97220
|
+
U.match(/^\d+$/) || Q.push(g(
|
|
97221
97221
|
$,
|
|
97222
97222
|
N,
|
|
97223
97223
|
L,
|
|
@@ -97225,12 +97225,12 @@ var Gze = xF.exports;
|
|
|
97225
97225
|
U,
|
|
97226
97226
|
!0
|
|
97227
97227
|
));
|
|
97228
|
-
}),
|
|
97228
|
+
}), Q;
|
|
97229
97229
|
}
|
|
97230
|
-
function g($, N, L, q, V,
|
|
97230
|
+
function g($, N, L, q, V, Q) {
|
|
97231
97231
|
var w, P, U;
|
|
97232
97232
|
if (U = Object.getOwnPropertyDescriptor(N, V) || { value: N[V] }, U.get ? U.set ? P = $.stylize("[Getter/Setter]", "special") : P = $.stylize("[Getter]", "special") : U.set && (P = $.stylize("[Setter]", "special")), te(q, V) || (w = "[" + V + "]"), P || ($.seen.indexOf(U.value) < 0 ? (_(L) ? P = x($, U.value, null) : P = x($, U.value, L - 1), P.indexOf(`
|
|
97233
|
-
`) > -1 && (
|
|
97233
|
+
`) > -1 && (Q ? P = P.split(`
|
|
97234
97234
|
`).map(function(W) {
|
|
97235
97235
|
return " " + W;
|
|
97236
97236
|
}).join(`
|
|
@@ -97240,16 +97240,16 @@ var Gze = xF.exports;
|
|
|
97240
97240
|
return " " + W;
|
|
97241
97241
|
}).join(`
|
|
97242
97242
|
`))) : P = $.stylize("[Circular]", "special")), R(w)) {
|
|
97243
|
-
if (
|
|
97243
|
+
if (Q && V.match(/^\d+$/))
|
|
97244
97244
|
return P;
|
|
97245
97245
|
w = JSON.stringify("" + V), w.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (w = w.slice(1, -1), w = $.stylize(w, "name")) : (w = w.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), w = $.stylize(w, "string"));
|
|
97246
97246
|
}
|
|
97247
97247
|
return w + ": " + P;
|
|
97248
97248
|
}
|
|
97249
97249
|
function y($, N, L) {
|
|
97250
|
-
var q = $.reduce(function(V,
|
|
97251
|
-
return
|
|
97252
|
-
`) >= 0, V +
|
|
97250
|
+
var q = $.reduce(function(V, Q) {
|
|
97251
|
+
return Q.indexOf(`
|
|
97252
|
+
`) >= 0, V + Q.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
97253
97253
|
}, 0);
|
|
97254
97254
|
return q > 60 ? L[0] + (N === "" ? "" : N + `
|
|
97255
97255
|
`) + " " + $.join(`,
|
|
@@ -97289,7 +97289,7 @@ var Gze = xF.exports;
|
|
|
97289
97289
|
}
|
|
97290
97290
|
t.isUndefined = R;
|
|
97291
97291
|
function O($) {
|
|
97292
|
-
return I($) &&
|
|
97292
|
+
return I($) && G($) === "[object RegExp]";
|
|
97293
97293
|
}
|
|
97294
97294
|
t.isRegExp = O, t.types.isRegExp = O;
|
|
97295
97295
|
function I($) {
|
|
@@ -97297,11 +97297,11 @@ var Gze = xF.exports;
|
|
|
97297
97297
|
}
|
|
97298
97298
|
t.isObject = I;
|
|
97299
97299
|
function D($) {
|
|
97300
|
-
return I($) &&
|
|
97300
|
+
return I($) && G($) === "[object Date]";
|
|
97301
97301
|
}
|
|
97302
97302
|
t.isDate = D, t.types.isDate = D;
|
|
97303
97303
|
function k($) {
|
|
97304
|
-
return I($) && (
|
|
97304
|
+
return I($) && (G($) === "[object Error]" || $ instanceof Error);
|
|
97305
97305
|
}
|
|
97306
97306
|
t.isError = k, t.types.isNativeError = k;
|
|
97307
97307
|
function j($) {
|
|
@@ -97313,7 +97313,7 @@ var Gze = xF.exports;
|
|
|
97313
97313
|
typeof $ > "u";
|
|
97314
97314
|
}
|
|
97315
97315
|
t.isPrimitive = Y, t.isBuffer = zze;
|
|
97316
|
-
function
|
|
97316
|
+
function G($) {
|
|
97317
97317
|
return Object.prototype.toString.call($);
|
|
97318
97318
|
}
|
|
97319
97319
|
function X($) {
|
|
@@ -97368,7 +97368,7 @@ var Gze = xF.exports;
|
|
|
97368
97368
|
}), L;
|
|
97369
97369
|
}
|
|
97370
97370
|
function L() {
|
|
97371
|
-
for (var q, V,
|
|
97371
|
+
for (var q, V, Q = new Promise(function(U, W) {
|
|
97372
97372
|
q = U, V = W;
|
|
97373
97373
|
}), w = [], P = 0; P < arguments.length; P++)
|
|
97374
97374
|
w.push(arguments[P]);
|
|
@@ -97380,7 +97380,7 @@ var Gze = xF.exports;
|
|
|
97380
97380
|
} catch (U) {
|
|
97381
97381
|
V(U);
|
|
97382
97382
|
}
|
|
97383
|
-
return
|
|
97383
|
+
return Q;
|
|
97384
97384
|
}
|
|
97385
97385
|
return Object.setPrototypeOf(L, Object.getPrototypeOf(N)), oe && Object.defineProperty(L, oe, {
|
|
97386
97386
|
value: L,
|
|
@@ -97408,8 +97408,8 @@ var Gze = xF.exports;
|
|
|
97408
97408
|
var V = L.pop();
|
|
97409
97409
|
if (typeof V != "function")
|
|
97410
97410
|
throw new TypeError("The last argument must be of type Function");
|
|
97411
|
-
var
|
|
97412
|
-
return V.apply(
|
|
97411
|
+
var Q = this, w = function() {
|
|
97412
|
+
return V.apply(Q, arguments);
|
|
97413
97413
|
};
|
|
97414
97414
|
$.apply(this, L).then(
|
|
97415
97415
|
function(P) {
|
|
@@ -97675,8 +97675,8 @@ function Wze() {
|
|
|
97675
97675
|
return m() ? p = Reflect.construct.bind() : p = function($, N, L) {
|
|
97676
97676
|
var q = [null];
|
|
97677
97677
|
q.push.apply(q, N);
|
|
97678
|
-
var V = Function.bind.apply($, q),
|
|
97679
|
-
return L && y(
|
|
97678
|
+
var V = Function.bind.apply($, q), Q = new V();
|
|
97679
|
+
return L && y(Q, L.prototype), Q;
|
|
97680
97680
|
}, p.apply(null, arguments);
|
|
97681
97681
|
}
|
|
97682
97682
|
function m() {
|
|
@@ -97734,7 +97734,7 @@ function Wze() {
|
|
|
97734
97734
|
notEqual: 'Expected "actual" to be loosely unequal to:',
|
|
97735
97735
|
notIdentical: "Values identical but not reference-equal:"
|
|
97736
97736
|
}, Y = 10;
|
|
97737
|
-
function
|
|
97737
|
+
function G(te) {
|
|
97738
97738
|
var oe = Object.keys(te), xe = Object.create(Object.getPrototypeOf(te));
|
|
97739
97739
|
return oe.forEach(function(Se) {
|
|
97740
97740
|
xe[Se] = te[Se];
|
|
@@ -97764,31 +97764,31 @@ function Wze() {
|
|
|
97764
97764
|
});
|
|
97765
97765
|
}
|
|
97766
97766
|
function ce(te, oe, xe) {
|
|
97767
|
-
var Se = "", $ = "", N = 0, L = "", q = !1, V = X(te),
|
|
97767
|
+
var Se = "", $ = "", N = 0, L = "", q = !1, V = X(te), Q = V.split(`
|
|
97768
97768
|
`), w = X(oe).split(`
|
|
97769
97769
|
`), P = 0, U = "";
|
|
97770
|
-
if (xe === "strictEqual" && A(te) === "object" && A(oe) === "object" && te !== null && oe !== null && (xe = "strictEqualObject"),
|
|
97771
|
-
var W =
|
|
97770
|
+
if (xe === "strictEqual" && A(te) === "object" && A(oe) === "object" && te !== null && oe !== null && (xe = "strictEqualObject"), Q.length === 1 && w.length === 1 && Q[0] !== w[0]) {
|
|
97771
|
+
var W = Q[0].length + w[0].length;
|
|
97772
97772
|
if (W <= Y) {
|
|
97773
97773
|
if ((A(te) !== "object" || te === null) && (A(oe) !== "object" || oe === null) && (te !== 0 || oe !== 0))
|
|
97774
97774
|
return "".concat(j[xe], `
|
|
97775
97775
|
|
|
97776
|
-
`) + "".concat(
|
|
97776
|
+
`) + "".concat(Q[0], " !== ").concat(w[0], `
|
|
97777
97777
|
`);
|
|
97778
97778
|
} else if (xe !== "strictEqualObject") {
|
|
97779
97779
|
var M = process.stderr && process.stderr.isTTY ? process.stderr.columns : 80;
|
|
97780
97780
|
if (W < M) {
|
|
97781
|
-
for (;
|
|
97781
|
+
for (; Q[0][P] === w[0][P]; )
|
|
97782
97782
|
P++;
|
|
97783
97783
|
P > 2 && (U = `
|
|
97784
97784
|
`.concat(R(" ", P), "^"), P = 0);
|
|
97785
97785
|
}
|
|
97786
97786
|
}
|
|
97787
97787
|
}
|
|
97788
|
-
for (var
|
|
97789
|
-
`.concat(
|
|
97790
|
-
|
|
97791
|
-
var Z = Math.max(
|
|
97788
|
+
for (var z = Q[Q.length - 1], H = w[w.length - 1]; z === H && (P++ < 2 ? L = `
|
|
97789
|
+
`.concat(z).concat(L) : Se = z, Q.pop(), w.pop(), !(Q.length === 0 || w.length === 0)); )
|
|
97790
|
+
z = Q[Q.length - 1], H = w[w.length - 1];
|
|
97791
|
+
var Z = Math.max(Q.length, w.length);
|
|
97792
97792
|
if (Z === 0) {
|
|
97793
97793
|
var he = V.split(`
|
|
97794
97794
|
`);
|
|
@@ -97808,7 +97808,7 @@ function Wze() {
|
|
|
97808
97808
|
`.concat(I, "+ actual").concat(k, " ").concat(D, "- expected").concat(k), le = " ".concat(O, "...").concat(k, " Lines skipped");
|
|
97809
97809
|
for (P = 0; P < Z; P++) {
|
|
97810
97810
|
var Me = P - N;
|
|
97811
|
-
if (
|
|
97811
|
+
if (Q.length < P + 1)
|
|
97812
97812
|
Me > 1 && P > 2 && (Me > 4 ? ($ += `
|
|
97813
97813
|
`.concat(O, "...").concat(k), q = !0) : Me > 3 && ($ += `
|
|
97814
97814
|
`.concat(w[P - 2]), ue++), $ += `
|
|
@@ -97817,15 +97817,15 @@ function Wze() {
|
|
|
97817
97817
|
else if (w.length < P + 1)
|
|
97818
97818
|
Me > 1 && P > 2 && (Me > 4 ? ($ += `
|
|
97819
97819
|
`.concat(O, "...").concat(k), q = !0) : Me > 3 && ($ += `
|
|
97820
|
-
`.concat(
|
|
97821
|
-
`.concat(
|
|
97822
|
-
`.concat(I, "+").concat(k, " ").concat(
|
|
97820
|
+
`.concat(Q[P - 2]), ue++), $ += `
|
|
97821
|
+
`.concat(Q[P - 1]), ue++), N = P, $ += `
|
|
97822
|
+
`.concat(I, "+").concat(k, " ").concat(Q[P]), ue++;
|
|
97823
97823
|
else {
|
|
97824
|
-
var at = w[P], _t =
|
|
97824
|
+
var at = w[P], _t = Q[P], ie = _t !== at && (!S(_t, ",") || _t.slice(0, -1) !== at);
|
|
97825
97825
|
ie && S(at, ",") && at.slice(0, -1) === _t && (ie = !1, _t += ","), ie ? (Me > 1 && P > 2 && (Me > 4 ? ($ += `
|
|
97826
97826
|
`.concat(O, "...").concat(k), q = !0) : Me > 3 && ($ += `
|
|
97827
|
-
`.concat(
|
|
97828
|
-
`.concat(
|
|
97827
|
+
`.concat(Q[P - 2]), ue++), $ += `
|
|
97828
|
+
`.concat(Q[P - 1]), ue++), N = P, $ += `
|
|
97829
97829
|
`.concat(I, "+").concat(k, " ").concat(_t), Se += `
|
|
97830
97830
|
`.concat(D, "-").concat(k, " ").concat(at), ue += 2) : ($ += Se, Se = "", (Me === 1 || P === 0) && ($ += `
|
|
97831
97831
|
`.concat(_t), ue++));
|
|
@@ -97846,15 +97846,15 @@ function Wze() {
|
|
|
97846
97846
|
var N;
|
|
97847
97847
|
if (i(this, Se), A($) !== "object" || $ === null)
|
|
97848
97848
|
throw new b("options", "Object", $);
|
|
97849
|
-
var L = $.message, q = $.operator, V = $.stackStartFn,
|
|
97849
|
+
var L = $.message, q = $.operator, V = $.stackStartFn, Q = $.actual, w = $.expected, P = Error.stackTraceLimit;
|
|
97850
97850
|
if (Error.stackTraceLimit = 0, L != null)
|
|
97851
97851
|
N = xe.call(this, String(L));
|
|
97852
|
-
else if (process.stderr && process.stderr.isTTY && (process.stderr && process.stderr.getColorDepth && process.stderr.getColorDepth() !== 1 ? (O = "\x1B[34m", I = "\x1B[32m", k = "\x1B[39m", D = "\x1B[31m") : (O = "", I = "", k = "", D = "")), A(
|
|
97853
|
-
N = xe.call(this, ce(
|
|
97852
|
+
else if (process.stderr && process.stderr.isTTY && (process.stderr && process.stderr.getColorDepth && process.stderr.getColorDepth() !== 1 ? (O = "\x1B[34m", I = "\x1B[32m", k = "\x1B[39m", D = "\x1B[31m") : (O = "", I = "", k = "", D = "")), A(Q) === "object" && Q !== null && A(w) === "object" && w !== null && "stack" in Q && Q instanceof Error && "stack" in w && w instanceof Error && (Q = G(Q), w = G(w)), q === "deepStrictEqual" || q === "strictEqual")
|
|
97853
|
+
N = xe.call(this, ce(Q, w, q));
|
|
97854
97854
|
else if (q === "notDeepStrictEqual" || q === "notStrictEqual") {
|
|
97855
|
-
var U = j[q], W = X(
|
|
97855
|
+
var U = j[q], W = X(Q).split(`
|
|
97856
97856
|
`);
|
|
97857
|
-
if (q === "notStrictEqual" && A(
|
|
97857
|
+
if (q === "notStrictEqual" && A(Q) === "object" && Q !== null && (U = j.notStrictEqualObject), W.length > 30)
|
|
97858
97858
|
for (W[26] = "".concat(O, "...").concat(k); W.length > 27; )
|
|
97859
97859
|
W.pop();
|
|
97860
97860
|
W.length === 1 ? N = xe.call(this, "".concat(U, " ").concat(W[0])) : N = xe.call(this, "".concat(U, `
|
|
@@ -97863,23 +97863,23 @@ function Wze() {
|
|
|
97863
97863
|
`), `
|
|
97864
97864
|
`));
|
|
97865
97865
|
} else {
|
|
97866
|
-
var M = X(
|
|
97866
|
+
var M = X(Q), z = "", H = j[q];
|
|
97867
97867
|
q === "notDeepEqual" || q === "notEqual" ? (M = "".concat(j[q], `
|
|
97868
97868
|
|
|
97869
|
-
`).concat(M), M.length > 1024 && (M = "".concat(M.slice(0, 1021), "..."))) : (
|
|
97869
|
+
`).concat(M), M.length > 1024 && (M = "".concat(M.slice(0, 1021), "..."))) : (z = "".concat(X(w)), M.length > 512 && (M = "".concat(M.slice(0, 509), "...")), z.length > 512 && (z = "".concat(z.slice(0, 509), "...")), q === "deepEqual" || q === "equal" ? M = "".concat(H, `
|
|
97870
97870
|
|
|
97871
97871
|
`).concat(M, `
|
|
97872
97872
|
|
|
97873
97873
|
should equal
|
|
97874
97874
|
|
|
97875
|
-
`) :
|
|
97875
|
+
`) : z = " ".concat(q, " ").concat(z)), N = xe.call(this, "".concat(M).concat(z));
|
|
97876
97876
|
}
|
|
97877
97877
|
return Error.stackTraceLimit = P, N.generatedMessage = !L, Object.defineProperty(x(N), "name", {
|
|
97878
97878
|
value: "AssertionError [ERR_ASSERTION]",
|
|
97879
97879
|
enumerable: !1,
|
|
97880
97880
|
writable: !0,
|
|
97881
97881
|
configurable: !0
|
|
97882
|
-
}), N.code = "ERR_ASSERTION", N.actual =
|
|
97882
|
+
}), N.code = "ERR_ASSERTION", N.actual = Q, N.expected = w, N.operator = q, Error.captureStackTrace && Error.captureStackTrace(x(N), V), N.stack, N.name = "AssertionError", f(N);
|
|
97883
97883
|
}
|
|
97884
97884
|
return o(Se, [{
|
|
97885
97885
|
key: "toString",
|
|
@@ -98211,7 +98211,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
98211
98211
|
function p(ie) {
|
|
98212
98212
|
return ie.call.bind(ie);
|
|
98213
98213
|
}
|
|
98214
|
-
var m = p(Object.prototype.hasOwnProperty), g = p(Object.prototype.propertyIsEnumerable), y = p(Object.prototype.toString), E = W0.types, A = E.isAnyArrayBuffer, _ = E.isArrayBufferView, v = E.isDate, C = E.isMap, b = E.isRegExp, S = E.isSet, R = E.isNativeError, O = E.isBoxedPrimitive, I = E.isNumberObject, D = E.isStringObject, k = E.isBooleanObject, j = E.isBigIntObject, Y = E.isSymbolObject,
|
|
98214
|
+
var m = p(Object.prototype.hasOwnProperty), g = p(Object.prototype.propertyIsEnumerable), y = p(Object.prototype.toString), E = W0.types, A = E.isAnyArrayBuffer, _ = E.isArrayBufferView, v = E.isDate, C = E.isMap, b = E.isRegExp, S = E.isSet, R = E.isNativeError, O = E.isBoxedPrimitive, I = E.isNumberObject, D = E.isStringObject, k = E.isBooleanObject, j = E.isBigIntObject, Y = E.isSymbolObject, G = E.isFloat32Array, X = E.isFloat64Array;
|
|
98215
98215
|
function ce(ie) {
|
|
98216
98216
|
if (ie.length === 0 || ie.length > 10) return !0;
|
|
98217
98217
|
for (var ae = 0; ae < ie.length; ae++) {
|
|
@@ -98251,7 +98251,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
98251
98251
|
return !1;
|
|
98252
98252
|
return !0;
|
|
98253
98253
|
}
|
|
98254
|
-
function
|
|
98254
|
+
function Q(ie, ae) {
|
|
98255
98255
|
return ie.byteLength !== ae.byteLength ? !1 : te(new Uint8Array(ie.buffer, ie.byteOffset, ie.byteLength), new Uint8Array(ae.buffer, ae.byteOffset, ae.byteLength)) === 0;
|
|
98256
98256
|
}
|
|
98257
98257
|
function w(ie, ae) {
|
|
@@ -98295,10 +98295,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
98295
98295
|
if (ie.message !== ae.message || ie.name !== ae.name)
|
|
98296
98296
|
return !1;
|
|
98297
98297
|
} else if (_(ie)) {
|
|
98298
|
-
if (!we && (
|
|
98298
|
+
if (!we && (G(ie) || X(ie))) {
|
|
98299
98299
|
if (!V(ie, ae))
|
|
98300
98300
|
return !1;
|
|
98301
|
-
} else if (!
|
|
98301
|
+
} else if (!Q(ie, ae))
|
|
98302
98302
|
return !1;
|
|
98303
98303
|
var K = fe(ie), Re = fe(ae);
|
|
98304
98304
|
return K.length !== Re.length ? !1 : M(ie, ae, we, Qe, Se, K);
|
|
@@ -98373,7 +98373,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
98373
98373
|
var vt = Me(ie, ae, we, Le, Qe, qe);
|
|
98374
98374
|
return Qe.val1.delete(ie), Qe.val2.delete(ae), vt;
|
|
98375
98375
|
}
|
|
98376
|
-
function
|
|
98376
|
+
function z(ie, ae, we, Qe) {
|
|
98377
98377
|
for (var qe = l(ie), Le = 0; Le < qe.length; Le++) {
|
|
98378
98378
|
var ye = qe[Le];
|
|
98379
98379
|
if (U(ae, ye, we, Qe))
|
|
@@ -98423,8 +98423,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
98423
98423
|
for (var K = l(ae), Re = 0; Re < K.length; Re++) {
|
|
98424
98424
|
var J = K[Re];
|
|
98425
98425
|
if (u(J) === "object" && J !== null) {
|
|
98426
|
-
if (!
|
|
98427
|
-
} else if (!we && !ie.has(J) && !
|
|
98426
|
+
if (!z(qe, J, we, Qe)) return !1;
|
|
98427
|
+
} else if (!we && !ie.has(J) && !z(qe, J, we, Qe))
|
|
98428
98428
|
return !1;
|
|
98429
98429
|
}
|
|
98430
98430
|
return qe.size === 0;
|
|
@@ -98533,7 +98533,7 @@ function Oi() {
|
|
|
98533
98533
|
function O(N) {
|
|
98534
98534
|
throw N.message instanceof Error ? N.message : new f(N);
|
|
98535
98535
|
}
|
|
98536
|
-
function I(N, L, q, V,
|
|
98536
|
+
function I(N, L, q, V, Q) {
|
|
98537
98537
|
var w = arguments.length, P;
|
|
98538
98538
|
if (w === 0)
|
|
98539
98539
|
P = "Failed";
|
|
@@ -98552,7 +98552,7 @@ function Oi() {
|
|
|
98552
98552
|
actual: N,
|
|
98553
98553
|
expected: L,
|
|
98554
98554
|
operator: V === void 0 ? "fail" : V,
|
|
98555
|
-
stackStartFn:
|
|
98555
|
+
stackStartFn: Q || I
|
|
98556
98556
|
};
|
|
98557
98557
|
q !== void 0 && (W.message = q);
|
|
98558
98558
|
var M = new f(W);
|
|
@@ -98561,9 +98561,9 @@ function Oi() {
|
|
|
98561
98561
|
S.fail = I, S.AssertionError = f;
|
|
98562
98562
|
function D(N, L, q, V) {
|
|
98563
98563
|
if (!q) {
|
|
98564
|
-
var
|
|
98564
|
+
var Q = !1;
|
|
98565
98565
|
if (L === 0)
|
|
98566
|
-
|
|
98566
|
+
Q = !0, V = "No value argument passed to `assert.ok()`";
|
|
98567
98567
|
else if (V instanceof Error)
|
|
98568
98568
|
throw V;
|
|
98569
98569
|
var w = new f({
|
|
@@ -98573,7 +98573,7 @@ function Oi() {
|
|
|
98573
98573
|
operator: "==",
|
|
98574
98574
|
stackStartFn: N
|
|
98575
98575
|
});
|
|
98576
|
-
throw w.generatedMessage =
|
|
98576
|
+
throw w.generatedMessage = Q, w;
|
|
98577
98577
|
}
|
|
98578
98578
|
}
|
|
98579
98579
|
function k() {
|
|
@@ -98665,15 +98665,15 @@ function Oi() {
|
|
|
98665
98665
|
});
|
|
98666
98666
|
};
|
|
98667
98667
|
var Y = /* @__PURE__ */ e(function N(L, q, V) {
|
|
98668
|
-
var
|
|
98668
|
+
var Q = this;
|
|
98669
98669
|
r(this, N), q.forEach(function(w) {
|
|
98670
|
-
w in L && (V !== void 0 && typeof V[w] == "string" && g(L[w]) && A(L[w], V[w]) ?
|
|
98670
|
+
w in L && (V !== void 0 && typeof V[w] == "string" && g(L[w]) && A(L[w], V[w]) ? Q[w] = V[w] : Q[w] = L[w]);
|
|
98671
98671
|
});
|
|
98672
98672
|
});
|
|
98673
|
-
function
|
|
98673
|
+
function G(N, L, q, V, Q, w) {
|
|
98674
98674
|
if (!(q in N) || !v(N[q], L[q])) {
|
|
98675
98675
|
if (!V) {
|
|
98676
|
-
var P = new Y(N,
|
|
98676
|
+
var P = new Y(N, Q), U = new Y(L, Q, N), W = new f({
|
|
98677
98677
|
actual: P,
|
|
98678
98678
|
expected: U,
|
|
98679
98679
|
operator: "deepStrictEqual",
|
|
@@ -98696,14 +98696,14 @@ function Oi() {
|
|
|
98696
98696
|
if (arguments.length === 2)
|
|
98697
98697
|
throw new u("expected", ["Function", "RegExp"], L);
|
|
98698
98698
|
if (t(N) !== "object" || N === null) {
|
|
98699
|
-
var
|
|
98699
|
+
var Q = new f({
|
|
98700
98700
|
actual: N,
|
|
98701
98701
|
expected: L,
|
|
98702
98702
|
message: q,
|
|
98703
98703
|
operator: "deepStrictEqual",
|
|
98704
98704
|
stackStartFn: V
|
|
98705
98705
|
});
|
|
98706
|
-
throw
|
|
98706
|
+
throw Q.operator = V.name, Q;
|
|
98707
98707
|
}
|
|
98708
98708
|
var w = Object.keys(L);
|
|
98709
98709
|
if (L instanceof Error)
|
|
@@ -98711,7 +98711,7 @@ function Oi() {
|
|
|
98711
98711
|
else if (w.length === 0)
|
|
98712
98712
|
throw new a("error", L, "may not be an empty object");
|
|
98713
98713
|
return _ === void 0 && C(), w.forEach(function(P) {
|
|
98714
|
-
typeof N[P] == "string" && g(L[P]) && A(L[P], N[P]) ||
|
|
98714
|
+
typeof N[P] == "string" && g(L[P]) && A(L[P], N[P]) || G(N, L, P, q, w, V);
|
|
98715
98715
|
}), !0;
|
|
98716
98716
|
}
|
|
98717
98717
|
return L.prototype !== void 0 && N instanceof L ? !0 : Error.isPrototypeOf(L) ? !1 : L.call({}, N) === !0;
|
|
@@ -98761,14 +98761,14 @@ function Oi() {
|
|
|
98761
98761
|
} else if (q != null && t(q) !== "object" && typeof q != "function")
|
|
98762
98762
|
throw new u("error", ["Object", "Error", "Function", "RegExp"], q);
|
|
98763
98763
|
if (L === R) {
|
|
98764
|
-
var
|
|
98765
|
-
q && q.name && (
|
|
98764
|
+
var Q = "";
|
|
98765
|
+
q && q.name && (Q += " (".concat(q.name, ")")), Q += V ? ": ".concat(V) : ".";
|
|
98766
98766
|
var w = N.name === "rejects" ? "rejection" : "exception";
|
|
98767
98767
|
O({
|
|
98768
98768
|
actual: void 0,
|
|
98769
98769
|
expected: q,
|
|
98770
98770
|
operator: N.name,
|
|
98771
|
-
message: "Missing expected ".concat(w).concat(
|
|
98771
|
+
message: "Missing expected ".concat(w).concat(Q),
|
|
98772
98772
|
stackStartFn: N
|
|
98773
98773
|
});
|
|
98774
98774
|
}
|
|
@@ -98778,12 +98778,12 @@ function Oi() {
|
|
|
98778
98778
|
function xe(N, L, q, V) {
|
|
98779
98779
|
if (L !== R) {
|
|
98780
98780
|
if (typeof q == "string" && (V = q, q = void 0), !q || X(L, q)) {
|
|
98781
|
-
var
|
|
98781
|
+
var Q = V ? ": ".concat(V) : ".", w = N.name === "doesNotReject" ? "rejection" : "exception";
|
|
98782
98782
|
O({
|
|
98783
98783
|
actual: L,
|
|
98784
98784
|
expected: q,
|
|
98785
98785
|
operator: N.name,
|
|
98786
|
-
message: "Got unwanted ".concat(w).concat(
|
|
98786
|
+
message: "Got unwanted ".concat(w).concat(Q, `
|
|
98787
98787
|
`) + 'Actual message: "'.concat(L && L.message, '"'),
|
|
98788
98788
|
stackStartFn: N
|
|
98789
98789
|
});
|
|
@@ -98792,22 +98792,22 @@ function Oi() {
|
|
|
98792
98792
|
}
|
|
98793
98793
|
}
|
|
98794
98794
|
S.throws = function N(L) {
|
|
98795
|
-
for (var q = arguments.length, V = new Array(q > 1 ? q - 1 : 0),
|
|
98796
|
-
V[
|
|
98795
|
+
for (var q = arguments.length, V = new Array(q > 1 ? q - 1 : 0), Q = 1; Q < q; Q++)
|
|
98796
|
+
V[Q - 1] = arguments[Q];
|
|
98797
98797
|
oe.apply(void 0, [N, ce(L)].concat(V));
|
|
98798
98798
|
}, S.rejects = function N(L) {
|
|
98799
|
-
for (var q = arguments.length, V = new Array(q > 1 ? q - 1 : 0),
|
|
98800
|
-
V[
|
|
98799
|
+
for (var q = arguments.length, V = new Array(q > 1 ? q - 1 : 0), Q = 1; Q < q; Q++)
|
|
98800
|
+
V[Q - 1] = arguments[Q];
|
|
98801
98801
|
return te(L).then(function(w) {
|
|
98802
98802
|
return oe.apply(void 0, [N, w].concat(V));
|
|
98803
98803
|
});
|
|
98804
98804
|
}, S.doesNotThrow = function N(L) {
|
|
98805
|
-
for (var q = arguments.length, V = new Array(q > 1 ? q - 1 : 0),
|
|
98806
|
-
V[
|
|
98805
|
+
for (var q = arguments.length, V = new Array(q > 1 ? q - 1 : 0), Q = 1; Q < q; Q++)
|
|
98806
|
+
V[Q - 1] = arguments[Q];
|
|
98807
98807
|
xe.apply(void 0, [N, ce(L)].concat(V));
|
|
98808
98808
|
}, S.doesNotReject = function N(L) {
|
|
98809
|
-
for (var q = arguments.length, V = new Array(q > 1 ? q - 1 : 0),
|
|
98810
|
-
V[
|
|
98809
|
+
for (var q = arguments.length, V = new Array(q > 1 ? q - 1 : 0), Q = 1; Q < q; Q++)
|
|
98810
|
+
V[Q - 1] = arguments[Q];
|
|
98811
98811
|
return te(L).then(function(w) {
|
|
98812
98812
|
return xe.apply(void 0, [N, w].concat(V));
|
|
98813
98813
|
});
|
|
@@ -98821,9 +98821,9 @@ function Oi() {
|
|
|
98821
98821
|
operator: "ifError",
|
|
98822
98822
|
message: q,
|
|
98823
98823
|
stackStartFn: N
|
|
98824
|
-
}),
|
|
98825
|
-
if (typeof
|
|
98826
|
-
var w =
|
|
98824
|
+
}), Q = L.stack;
|
|
98825
|
+
if (typeof Q == "string") {
|
|
98826
|
+
var w = Q.split(`
|
|
98827
98827
|
`);
|
|
98828
98828
|
w.shift();
|
|
98829
98829
|
for (var P = V.stack.split(`
|
|
@@ -98842,10 +98842,10 @@ function Oi() {
|
|
|
98842
98842
|
throw V;
|
|
98843
98843
|
}
|
|
98844
98844
|
};
|
|
98845
|
-
function Se(N, L, q, V,
|
|
98845
|
+
function Se(N, L, q, V, Q) {
|
|
98846
98846
|
if (!g(L))
|
|
98847
98847
|
throw new u("regexp", "RegExp", L);
|
|
98848
|
-
var w =
|
|
98848
|
+
var w = Q === "match";
|
|
98849
98849
|
if (typeof N != "string" || A(L, N) !== w) {
|
|
98850
98850
|
if (q instanceof Error)
|
|
98851
98851
|
throw q;
|
|
@@ -98858,7 +98858,7 @@ function Oi() {
|
|
|
98858
98858
|
actual: N,
|
|
98859
98859
|
expected: L,
|
|
98860
98860
|
message: q,
|
|
98861
|
-
operator:
|
|
98861
|
+
operator: Q,
|
|
98862
98862
|
stackStartFn: V
|
|
98863
98863
|
});
|
|
98864
98864
|
throw U.generatedMessage = P, U;
|
|
@@ -103187,7 +103187,7 @@ function vy() {
|
|
|
103187
103187
|
ds.debug && console.log(`testing ${this.getTokenName(O)} at ${D.toString(this.recog, !0)}`);
|
|
103188
103188
|
let j = D.state.numberOfOptimizedTransitions;
|
|
103189
103189
|
for (let Y = 0; Y < j; Y++) {
|
|
103190
|
-
let
|
|
103190
|
+
let G = D.state.getOptimizedTransition(Y), X = this.getReachableTarget(G, O);
|
|
103191
103191
|
if (X != null) {
|
|
103192
103192
|
let ce = D.lexerActionExecutor, fe;
|
|
103193
103193
|
ce != null ? (ce = ce.fixOffsetBeforeMatch(b.index - this.startIndex), fe = D.transform(X, !0, ce)) : (_(D.lexerActionExecutor == null), fe = D.transform(X, !0));
|
|
@@ -103233,10 +103233,10 @@ function vy() {
|
|
|
103233
103233
|
return R.add(S), !0;
|
|
103234
103234
|
j.hasEmpty && (R.add(S.transform(S.state, !0, y.PredictionContext.EMPTY_FULL)), O = !0);
|
|
103235
103235
|
for (let Y = 0; Y < j.size; Y++) {
|
|
103236
|
-
let
|
|
103237
|
-
if (
|
|
103236
|
+
let G = j.getReturnState(Y);
|
|
103237
|
+
if (G === y.PredictionContext.EMPTY_FULL_STATE_KEY)
|
|
103238
103238
|
continue;
|
|
103239
|
-
let X = j.getParent(Y), ce = this.atn.states[
|
|
103239
|
+
let X = j.getParent(Y), ce = this.atn.states[G], fe = S.transform(ce, !1, X);
|
|
103240
103240
|
O = this.closure(b, fe, R, O, I, D);
|
|
103241
103241
|
}
|
|
103242
103242
|
return O;
|
|
@@ -103244,8 +103244,8 @@ function vy() {
|
|
|
103244
103244
|
S.state.onlyHasEpsilonTransitions || (!O || !S.hasPassedThroughNonGreedyDecision) && R.add(S);
|
|
103245
103245
|
let k = S.state;
|
|
103246
103246
|
for (let j = 0; j < k.numberOfOptimizedTransitions; j++) {
|
|
103247
|
-
let Y = k.getOptimizedTransition(j),
|
|
103248
|
-
|
|
103247
|
+
let Y = k.getOptimizedTransition(j), G = this.getEpsilonTarget(b, S, Y, R, I, D);
|
|
103248
|
+
G != null && (O = this.closure(b, G, R, O, I, D));
|
|
103249
103249
|
}
|
|
103250
103250
|
return O;
|
|
103251
103251
|
}
|
|
@@ -103258,8 +103258,8 @@ function vy() {
|
|
|
103258
103258
|
if (this.optimize_tail_calls && j.optimizedTailCall && !S.context.hasEmpty)
|
|
103259
103259
|
k = S.transform(R.target, !0);
|
|
103260
103260
|
else {
|
|
103261
|
-
let
|
|
103262
|
-
k = S.transform(R.target, !0,
|
|
103261
|
+
let G = S.context.getChild(j.followState.stateNumber);
|
|
103262
|
+
k = S.transform(R.target, !0, G);
|
|
103263
103263
|
}
|
|
103264
103264
|
break;
|
|
103265
103265
|
case 10:
|
|
@@ -103270,8 +103270,8 @@ function vy() {
|
|
|
103270
103270
|
break;
|
|
103271
103271
|
case 6:
|
|
103272
103272
|
if (S.context.hasEmpty) {
|
|
103273
|
-
let
|
|
103274
|
-
k = S.transform(R.target, !0,
|
|
103273
|
+
let G = h.LexerActionExecutor.append(S.lexerActionExecutor, this.atn.lexerActions[R.actionIndex]);
|
|
103274
|
+
k = S.transform(R.target, !0, G);
|
|
103275
103275
|
break;
|
|
103276
103276
|
} else {
|
|
103277
103277
|
k = S.transform(R.target, !0);
|
|
@@ -106147,9 +106147,9 @@ function e2() {
|
|
|
106147
106147
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
106148
106148
|
*/
|
|
106149
106149
|
var t = T && T.__decorate || function(Se, $, N, L) {
|
|
106150
|
-
var q = arguments.length, V = q < 3 ? $ : L === null ? L = Object.getOwnPropertyDescriptor($, N) : L,
|
|
106150
|
+
var q = arguments.length, V = q < 3 ? $ : L === null ? L = Object.getOwnPropertyDescriptor($, N) : L, Q;
|
|
106151
106151
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") V = Reflect.decorate(Se, $, N, L);
|
|
106152
|
-
else for (var w = Se.length - 1; w >= 0; w--) (
|
|
106152
|
+
else for (var w = Se.length - 1; w >= 0; w--) (Q = Se[w]) && (V = (q < 3 ? Q(V) : q > 3 ? Q($, N, V) : Q($, N)) || V);
|
|
106153
106153
|
return q > 3 && V && Object.defineProperty($, N, V), V;
|
|
106154
106154
|
}, e = T && T.__param || function(Se, $) {
|
|
106155
106155
|
return function(N, L) {
|
|
@@ -106157,7 +106157,7 @@ function e2() {
|
|
|
106157
106157
|
};
|
|
106158
106158
|
};
|
|
106159
106159
|
Object.defineProperty(_1, "__esModule", { value: !0 }), _1.ParserATNSimulator = void 0;
|
|
106160
|
-
const r = _y, i = Dy, s = lu, o = ub, u = du(), a = qx, l = yy(), c = lb(), f = Er, x = Fy, h = fu, p = bb, m = Aa, g = ab(), y = Wp, E = yr, A = Pl, _ = Ae, v = IB(), C = ky(), b = Ns, S = po(), R = cu(), O = DB(), I = ale, D = Tc, k = Yp, j = Hx, Y = LB(),
|
|
106160
|
+
const r = _y, i = Dy, s = lu, o = ub, u = du(), a = qx, l = yy(), c = lb(), f = Er, x = Fy, h = fu, p = bb, m = Aa, g = ab(), y = Wp, E = yr, A = Pl, _ = Ae, v = IB(), C = ky(), b = Ns, S = po(), R = cu(), O = DB(), I = ale, D = Tc, k = Yp, j = Hx, Y = LB(), G = lle(), X = nn, ce = Ls, fe = Oi(), te = 65535, oe = -(1 << 31 >>> 0);
|
|
106161
106161
|
let xe = class dt extends c.ATNSimulator {
|
|
106162
106162
|
constructor($, N) {
|
|
106163
106163
|
super($), this.predictionMode = I.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 = N;
|
|
@@ -106182,11 +106182,11 @@ function e2() {
|
|
|
106182
106182
|
}
|
|
106183
106183
|
}
|
|
106184
106184
|
this.dfa = V, this.force_global_context ? q = !0 : this.always_try_local_context || (q = q || V.isContextSensitive), this.userWantsCtxSensitive = q || this.predictionMode !== I.PredictionMode.SLL && L != null && !this.atn.decisionToState[N].sll, L == null && (L = S.ParserRuleContext.emptyContext());
|
|
106185
|
-
let
|
|
106186
|
-
V.isEmpty || (
|
|
106185
|
+
let Q;
|
|
106186
|
+
V.isEmpty || (Q = this.getStartState(V, $, L, q)), Q == null && (L == null && (L = S.ParserRuleContext.emptyContext()), dt.debug && console.log("ATN decision " + V.decision + " exec LA(1)==" + this.getLookaheadName($) + ", outerContext=" + L.toString(this._parser)), Q = this.computeStartState(V, L, q));
|
|
106187
106187
|
let w = $.mark(), P = $.index;
|
|
106188
106188
|
try {
|
|
106189
|
-
let U = this.execDFA(V, $, P,
|
|
106189
|
+
let U = this.execDFA(V, $, P, Q);
|
|
106190
106190
|
return dt.debug && console.log("DFA after predictATN: " + V.toString(this._parser.vocabulary, this._parser.ruleNames)), U;
|
|
106191
106191
|
} finally {
|
|
106192
106192
|
this.dfa = void 0, $.seek(P), $.release(w);
|
|
@@ -106196,85 +106196,85 @@ function e2() {
|
|
|
106196
106196
|
if (!q)
|
|
106197
106197
|
if ($.isPrecedenceDfa) {
|
|
106198
106198
|
let w = $.getPrecedenceStartState(this._parser.precedence, !1);
|
|
106199
|
-
return w == null ? void 0 : new
|
|
106199
|
+
return w == null ? void 0 : new G.SimulatorState(L, w, !1, L);
|
|
106200
106200
|
} else
|
|
106201
|
-
return $.s0 == null ? void 0 : new
|
|
106201
|
+
return $.s0 == null ? void 0 : new G.SimulatorState(L, $.s0, !1, L);
|
|
106202
106202
|
if (!this.enable_global_context_dfa)
|
|
106203
106203
|
return;
|
|
106204
106204
|
let V = L;
|
|
106205
106205
|
fe(L != null);
|
|
106206
|
-
let
|
|
106207
|
-
for ($.isPrecedenceDfa ?
|
|
106208
|
-
V = this.skipTailCalls(V),
|
|
106209
|
-
if (
|
|
106210
|
-
return new
|
|
106206
|
+
let Q;
|
|
106207
|
+
for ($.isPrecedenceDfa ? Q = $.getPrecedenceStartState(this._parser.precedence, !0) : Q = $.s0full; V != null && Q != null && Q.isContextSensitive; )
|
|
106208
|
+
V = this.skipTailCalls(V), Q = Q.getContextTarget(this.getReturnState(V)), V.isEmpty ? fe(Q == null || !Q.isContextSensitive) : V = V.parent;
|
|
106209
|
+
if (Q != null)
|
|
106210
|
+
return new G.SimulatorState(L, Q, q, V);
|
|
106211
106211
|
}
|
|
106212
106212
|
execDFA($, N, L, q) {
|
|
106213
106213
|
let V = q.outerContext;
|
|
106214
106214
|
dt.dfa_debug && console.log("DFA decision " + $.decision + " exec LA(1)==" + this.getLookaheadName(N) + ", outerContext=" + V.toString(this._parser)), dt.dfa_debug && console.log($.toString(this._parser.vocabulary, this._parser.ruleNames));
|
|
106215
|
-
let
|
|
106215
|
+
let Q = q.s0, w = N.LA(1), P = q.remainingOuterContext;
|
|
106216
106216
|
for (; ; ) {
|
|
106217
|
-
if (dt.dfa_debug && console.log("DFA state " +
|
|
106218
|
-
for (;
|
|
106217
|
+
if (dt.dfa_debug && console.log("DFA state " + Q.stateNumber + " LA(1)==" + this.getLookaheadName(N)), q.useContext)
|
|
106218
|
+
for (; Q.isContextSymbol(w); ) {
|
|
106219
106219
|
let M;
|
|
106220
|
-
if (P != null && (P = this.skipTailCalls(P), M =
|
|
106221
|
-
let
|
|
106222
|
-
return this.execATN($, N, L,
|
|
106220
|
+
if (P != null && (P = this.skipTailCalls(P), M = Q.getContextTarget(this.getReturnState(P))), M == null) {
|
|
106221
|
+
let z = new G.SimulatorState(q.outerContext, Q, q.useContext, P);
|
|
106222
|
+
return this.execATN($, N, L, z);
|
|
106223
106223
|
}
|
|
106224
|
-
fe(P != null), P = P.parent,
|
|
106224
|
+
fe(P != null), P = P.parent, Q = M;
|
|
106225
106225
|
}
|
|
106226
|
-
if (this.isAcceptState(
|
|
106227
|
-
|
|
106226
|
+
if (this.isAcceptState(Q, q.useContext)) {
|
|
106227
|
+
Q.predicates != null ? dt.dfa_debug && console.log("accept " + Q) : dt.dfa_debug && console.log("accept; predict " + Q.prediction + " in state " + Q.stateNumber);
|
|
106228
106228
|
break;
|
|
106229
106229
|
}
|
|
106230
|
-
fe(!this.isAcceptState(
|
|
106231
|
-
let W = this.getExistingTargetState(
|
|
106230
|
+
fe(!this.isAcceptState(Q, q.useContext));
|
|
106231
|
+
let W = this.getExistingTargetState(Q, w);
|
|
106232
106232
|
if (W == null) {
|
|
106233
106233
|
dt.dfa_debug && w >= 0 && console.log("no edge for " + this._parser.vocabulary.getDisplayName(w));
|
|
106234
106234
|
let M;
|
|
106235
106235
|
if (dt.dfa_debug) {
|
|
106236
106236
|
let H = E.Interval.of(L, this._parser.inputStream.index);
|
|
106237
|
-
console.log("ATN exec upon " + this._parser.inputStream.getText(H) + " at DFA state " +
|
|
106237
|
+
console.log("ATN exec upon " + this._parser.inputStream.getText(H) + " at DFA state " + Q.stateNumber);
|
|
106238
106238
|
}
|
|
106239
|
-
let
|
|
106240
|
-
return M = this.execATN($, N, L,
|
|
106239
|
+
let z = new G.SimulatorState(V, Q, q.useContext, P);
|
|
106240
|
+
return M = this.execATN($, N, L, z), dt.dfa_debug && console.log("back from DFA update, alt=" + M + `, dfa=
|
|
106241
106241
|
` + $.toString(this._parser.vocabulary, this._parser.ruleNames)), dt.dfa_debug && console.log("DFA decision " + $.decision + " predicts " + M), M;
|
|
106242
106242
|
} else if (W === c.ATNSimulator.ERROR) {
|
|
106243
|
-
let M = new
|
|
106243
|
+
let M = new G.SimulatorState(V, Q, q.useContext, P);
|
|
106244
106244
|
return this.handleNoViableAlt(N, L, M);
|
|
106245
106245
|
}
|
|
106246
|
-
|
|
106246
|
+
Q = W, !this.isAcceptState(Q, q.useContext) && w !== A.IntStream.EOF && (N.consume(), w = N.LA(1));
|
|
106247
106247
|
}
|
|
106248
|
-
if (!q.useContext &&
|
|
106248
|
+
if (!q.useContext && Q.configs.conflictInfo != null && $.atnStartState instanceof m.DecisionState && !(!this.userWantsCtxSensitive || !Q.configs.dipsIntoOuterContext && Q.configs.isExactConflict || this.treat_sllk1_conflict_as_ambiguity && N.index === L)) {
|
|
106249
106249
|
fe(!q.useContext);
|
|
106250
|
-
let W, M =
|
|
106250
|
+
let W, M = Q.predicates;
|
|
106251
106251
|
if (M != null) {
|
|
106252
|
-
let
|
|
106253
|
-
if (
|
|
106252
|
+
let z = N.index;
|
|
106253
|
+
if (z !== L && N.seek(L), W = this.evalSemanticContext(M, V, !0), W.cardinality() === 1)
|
|
106254
106254
|
return W.nextSetBit(0);
|
|
106255
|
-
|
|
106255
|
+
z !== L && N.seek(z);
|
|
106256
106256
|
}
|
|
106257
106257
|
if (this.reportAmbiguities) {
|
|
106258
|
-
let
|
|
106259
|
-
this.reportAttemptingFullContext($, W,
|
|
106258
|
+
let z = new G.SimulatorState(V, Q, q.useContext, P);
|
|
106259
|
+
this.reportAttemptingFullContext($, W, z, L, N.index);
|
|
106260
106260
|
}
|
|
106261
106261
|
return N.seek(L), this.adaptivePredict(N, $.decision, V, !0);
|
|
106262
106262
|
}
|
|
106263
|
-
let U =
|
|
106263
|
+
let U = Q.predicates;
|
|
106264
106264
|
if (U != null) {
|
|
106265
106265
|
let W = N.index;
|
|
106266
106266
|
L !== W && N.seek(L);
|
|
106267
106267
|
let M = this.evalSemanticContext(U, V, this.reportAmbiguities && this.predictionMode === I.PredictionMode.LL_EXACT_AMBIG_DETECTION);
|
|
106268
106268
|
switch (M.cardinality()) {
|
|
106269
106269
|
case 0:
|
|
106270
|
-
throw this.noViableAlt(N, V,
|
|
106270
|
+
throw this.noViableAlt(N, V, Q.configs, L);
|
|
106271
106271
|
case 1:
|
|
106272
106272
|
return M.nextSetBit(0);
|
|
106273
106273
|
default:
|
|
106274
|
-
return L !== W && N.seek(W), this.reportAmbiguity($,
|
|
106274
|
+
return L !== W && N.seek(W), this.reportAmbiguity($, Q, L, W, Q.configs.isExactConflict, M, Q.configs), M.nextSetBit(0);
|
|
106275
106275
|
}
|
|
106276
106276
|
}
|
|
106277
|
-
return dt.dfa_debug && console.log("DFA decision " + $.decision + " predicts " +
|
|
106277
|
+
return dt.dfa_debug && console.log("DFA decision " + $.decision + " predicts " + Q.prediction), Q.prediction;
|
|
106278
106278
|
}
|
|
106279
106279
|
/**
|
|
106280
106280
|
* Determines if a particular DFA state should be treated as an accept state
|
|
@@ -106346,42 +106346,42 @@ function e2() {
|
|
|
106346
106346
|
*/
|
|
106347
106347
|
execATN($, N, L, q) {
|
|
106348
106348
|
dt.debug && console.log("execATN decision " + $.decision + " exec LA(1)==" + this.getLookaheadName(N));
|
|
106349
|
-
let V = q.outerContext,
|
|
106349
|
+
let V = q.outerContext, Q = q.useContext, w = N.LA(1), P = q, U = new O.PredictionContextCache();
|
|
106350
106350
|
for (; ; ) {
|
|
106351
106351
|
let W = this.computeReachSet($, P, w, U);
|
|
106352
106352
|
if (W == null)
|
|
106353
106353
|
return this.setDFAEdge(P.s0, N.LA(1), c.ATNSimulator.ERROR), this.handleNoViableAlt(N, L, P);
|
|
106354
106354
|
let M = W.s0;
|
|
106355
|
-
if (fe(M.isAcceptState || M.prediction === u.ATN.INVALID_ALT_NUMBER), fe(M.isAcceptState || M.configs.conflictInfo == null), this.isAcceptState(M,
|
|
106356
|
-
let
|
|
106355
|
+
if (fe(M.isAcceptState || M.prediction === u.ATN.INVALID_ALT_NUMBER), fe(M.isAcceptState || M.configs.conflictInfo == null), this.isAcceptState(M, Q)) {
|
|
106356
|
+
let z = M.configs.conflictingAlts, H = z == null ? M.prediction : u.ATN.INVALID_ALT_NUMBER;
|
|
106357
106357
|
if (H !== u.ATN.INVALID_ALT_NUMBER) {
|
|
106358
106358
|
if (this.optimize_ll1 && N.index === L && !$.isPrecedenceDfa && W.outerContext === W.remainingOuterContext && $.decision >= 0 && !M.configs.hasSemanticContext && w >= 0 && w <= te) {
|
|
106359
106359
|
let he = ($.decision << 16 >>> 0) + w;
|
|
106360
106360
|
this.atn.LL1Table.set(he, H);
|
|
106361
106361
|
}
|
|
106362
|
-
|
|
106362
|
+
Q && this.always_try_local_context && this.reportContextSensitivity($, H, W, L, N.index);
|
|
106363
106363
|
}
|
|
106364
106364
|
H = M.prediction;
|
|
106365
|
-
let Z =
|
|
106366
|
-
if (Z && (Z = !
|
|
106365
|
+
let Z = z != null && this.userWantsCtxSensitive;
|
|
106366
|
+
if (Z && (Z = !Q && (M.configs.dipsIntoOuterContext || !M.configs.isExactConflict) && (!this.treat_sllk1_conflict_as_ambiguity || N.index !== L)), M.configs.hasSemanticContext) {
|
|
106367
106367
|
let he = M.predicates;
|
|
106368
106368
|
if (he != null) {
|
|
106369
106369
|
let ue = N.index;
|
|
106370
|
-
switch (ue !== L && N.seek(L),
|
|
106370
|
+
switch (ue !== L && N.seek(L), z = this.evalSemanticContext(he, V, Z || this.reportAmbiguities), z.cardinality()) {
|
|
106371
106371
|
case 0:
|
|
106372
106372
|
throw this.noViableAlt(N, V, M.configs, L);
|
|
106373
106373
|
case 1:
|
|
106374
|
-
return
|
|
106374
|
+
return z.nextSetBit(0);
|
|
106375
106375
|
}
|
|
106376
106376
|
ue !== L && N.seek(ue);
|
|
106377
106377
|
}
|
|
106378
106378
|
}
|
|
106379
106379
|
if (Z) {
|
|
106380
|
-
fe(!
|
|
106380
|
+
fe(!Q), fe(this.isAcceptState(M, !1)), dt.debug && console.log("RETRY with outerContext=" + V);
|
|
106381
106381
|
let he = this.computeStartState($, V, !0);
|
|
106382
|
-
return this.reportAmbiguities && this.reportAttemptingFullContext($,
|
|
106382
|
+
return this.reportAmbiguities && this.reportAttemptingFullContext($, z, W, L, N.index), N.seek(L), this.execATN($, N, L, he);
|
|
106383
106383
|
} else
|
|
106384
|
-
return
|
|
106384
|
+
return z != null && (this.reportAmbiguities && z.cardinality() > 1 && this.reportAmbiguity($, M, L, N.index, M.configs.isExactConflict, z, M.configs), H = z.nextSetBit(0)), H;
|
|
106385
106385
|
}
|
|
106386
106386
|
P = W, w !== A.IntStream.EOF && (N.consume(), w = N.LA(1));
|
|
106387
106387
|
}
|
|
@@ -106440,8 +106440,8 @@ function e2() {
|
|
|
106440
106440
|
handleNoViableAlt($, N, L) {
|
|
106441
106441
|
if (L.s0 != null) {
|
|
106442
106442
|
let q = new h.BitSet(), V = 0;
|
|
106443
|
-
for (let
|
|
106444
|
-
(
|
|
106443
|
+
for (let Q of L.s0.configs)
|
|
106444
|
+
(Q.reachesIntoOuterContext || Q.state instanceof D.RuleStopState) && (q.set(Q.alt), V = Math.max(V, Q.alt));
|
|
106445
106445
|
switch (q.cardinality()) {
|
|
106446
106446
|
case 0:
|
|
106447
106447
|
break;
|
|
@@ -106450,10 +106450,10 @@ function e2() {
|
|
|
106450
106450
|
default:
|
|
106451
106451
|
if (!L.s0.configs.hasSemanticContext)
|
|
106452
106452
|
return q.nextSetBit(0);
|
|
106453
|
-
let
|
|
106453
|
+
let Q = new l.ATNConfigSet();
|
|
106454
106454
|
for (let P of L.s0.configs)
|
|
106455
|
-
(P.reachesIntoOuterContext || P.state instanceof D.RuleStopState) &&
|
|
106456
|
-
let w = this.getPredsForAmbigAlts(q,
|
|
106455
|
+
(P.reachesIntoOuterContext || P.state instanceof D.RuleStopState) && Q.add(P);
|
|
106456
|
+
let w = this.getPredsForAmbigAlts(q, Q, V);
|
|
106457
106457
|
if (w != null) {
|
|
106458
106458
|
let P = this.getPredicatePredictions(q, w);
|
|
106459
106459
|
if (P != null) {
|
|
@@ -106474,23 +106474,23 @@ function e2() {
|
|
|
106474
106474
|
throw this.noViableAlt($, L.outerContext, L.s0.configs, N);
|
|
106475
106475
|
}
|
|
106476
106476
|
computeReachSet($, N, L, q) {
|
|
106477
|
-
let V = N.useContext,
|
|
106477
|
+
let V = N.useContext, Q = N.remainingOuterContext, w = N.s0;
|
|
106478
106478
|
if (V)
|
|
106479
106479
|
for (; w.isContextSymbol(L); ) {
|
|
106480
106480
|
let W;
|
|
106481
|
-
if (
|
|
106481
|
+
if (Q != null && (Q = this.skipTailCalls(Q), W = w.getContextTarget(this.getReturnState(Q))), W == null)
|
|
106482
106482
|
break;
|
|
106483
|
-
fe(
|
|
106483
|
+
fe(Q != null), Q = Q.parent, w = W;
|
|
106484
106484
|
}
|
|
106485
106485
|
if (fe(!this.isAcceptState(w, V)), this.isAcceptState(w, V))
|
|
106486
|
-
return new
|
|
106486
|
+
return new G.SimulatorState(N.outerContext, w, V, Q);
|
|
106487
106487
|
let P = w, U = this.getExistingTargetState(P, L);
|
|
106488
106488
|
if (U == null) {
|
|
106489
|
-
let W = this.computeTargetState($, P,
|
|
106490
|
-
U = W[0],
|
|
106489
|
+
let W = this.computeTargetState($, P, Q, L, V, q);
|
|
106490
|
+
U = W[0], Q = W[1];
|
|
106491
106491
|
}
|
|
106492
106492
|
if (U !== c.ATNSimulator.ERROR)
|
|
106493
|
-
return fe(!V || !U.configs.dipsIntoOuterContext), new
|
|
106493
|
+
return fe(!V || !U.configs.dipsIntoOuterContext), new G.SimulatorState(N.outerContext, U, V, Q);
|
|
106494
106494
|
}
|
|
106495
106495
|
/**
|
|
106496
106496
|
* Get an existing target state for an edge in the DFA. If the target state
|
|
@@ -106521,11 +106521,11 @@ function e2() {
|
|
|
106521
106521
|
* `t`. If `t` does not lead to a valid DFA state, this method
|
|
106522
106522
|
* returns {@link #ERROR}.
|
|
106523
106523
|
*/
|
|
106524
|
-
computeTargetState($, N, L, q, V,
|
|
106524
|
+
computeTargetState($, N, L, q, V, Q) {
|
|
106525
106525
|
let w = N.configs.toArray(), P, U = new l.ATNConfigSet(), W;
|
|
106526
106526
|
do {
|
|
106527
|
-
let
|
|
106528
|
-
|
|
106527
|
+
let z = !V || L != null;
|
|
106528
|
+
z || (U.isOutermostConfigSet = !0);
|
|
106529
106529
|
let H = new l.ATNConfigSet(), Z;
|
|
106530
106530
|
for (let ee of w) {
|
|
106531
106531
|
if (dt.debug && console.log("testing " + this.getTokenName(q) + " at " + ee.toString()), ee.state instanceof D.RuleStopState) {
|
|
@@ -106535,7 +106535,7 @@ function e2() {
|
|
|
106535
106535
|
let le = ee.state.numberOfOptimizedTransitions;
|
|
106536
106536
|
for (let Me = 0; Me < le; Me++) {
|
|
106537
106537
|
let at = ee.state.getOptimizedTransition(Me), _t = this.getReachableTarget(ee, at, q);
|
|
106538
|
-
_t != null && H.add(ee.transform(_t, !1),
|
|
106538
|
+
_t != null && H.add(ee.transform(_t, !1), Q);
|
|
106539
106539
|
}
|
|
106540
106540
|
}
|
|
106541
106541
|
if (this.optimize_unique_closure && Z == null && q !== X.Token.EOF && H.uniqueAlt !== u.ATN.INVALID_ALT_NUMBER) {
|
|
@@ -106543,20 +106543,20 @@ function e2() {
|
|
|
106543
106543
|
break;
|
|
106544
106544
|
}
|
|
106545
106545
|
let he = !1, ue = q === X.Token.EOF;
|
|
106546
|
-
if (this.closure(H, U, he,
|
|
106546
|
+
if (this.closure(H, U, he, z, Q, ue), W = U.dipsIntoOuterContext, q === A.IntStream.EOF && (U = this.removeAllConfigsNotInRuleStopState(U, Q)), Z != null && (!V || !I.PredictionMode.hasConfigInRuleStopState(U))) {
|
|
106547
106547
|
fe(Z.length > 0);
|
|
106548
106548
|
for (let ee of Z)
|
|
106549
|
-
U.add(ee,
|
|
106549
|
+
U.add(ee, Q);
|
|
106550
106550
|
}
|
|
106551
106551
|
if (V && W) {
|
|
106552
106552
|
U.clear(), L = L, L = this.skipTailCalls(L);
|
|
106553
106553
|
let ee = this.getReturnState(L);
|
|
106554
106554
|
if (P == null && (P = new y.IntegerList()), L.isEmpty ? L = void 0 : L = L.parent, P.add(ee), ee !== R.PredictionContext.EMPTY_FULL_STATE_KEY)
|
|
106555
106555
|
for (let le = 0; le < w.length; le++)
|
|
106556
|
-
w[le] = w[le].appendContext(ee,
|
|
106556
|
+
w[le] = w[le].appendContext(ee, Q);
|
|
106557
106557
|
}
|
|
106558
106558
|
} while (V && W);
|
|
106559
|
-
return U.isEmpty ? (this.setDFAEdge(N, q, c.ATNSimulator.ERROR), [c.ATNSimulator.ERROR, L]) : [this.addDFAEdge($, N, q, P, U,
|
|
106559
|
+
return U.isEmpty ? (this.setDFAEdge(N, q, c.ATNSimulator.ERROR), [c.ATNSimulator.ERROR, L]) : [this.addDFAEdge($, N, q, P, U, Q), L];
|
|
106560
106560
|
}
|
|
106561
106561
|
/**
|
|
106562
106562
|
* Return a configuration set containing only the configurations from
|
|
@@ -106583,28 +106583,28 @@ function e2() {
|
|
|
106583
106583
|
let q = $.isPrecedenceDfa ? $.getPrecedenceStartState(this._parser.precedence, L) : L ? $.s0full : $.s0;
|
|
106584
106584
|
if (q != null) {
|
|
106585
106585
|
if (!L)
|
|
106586
|
-
return new
|
|
106586
|
+
return new G.SimulatorState(N, q, L, N);
|
|
106587
106587
|
q.setContextSensitive(this.atn);
|
|
106588
106588
|
}
|
|
106589
106589
|
$.decision;
|
|
106590
|
-
let V = $.atnStartState,
|
|
106590
|
+
let V = $.atnStartState, Q = 0, w = N, P = L ? R.PredictionContext.EMPTY_FULL : R.PredictionContext.EMPTY_LOCAL, U = new O.PredictionContextCache();
|
|
106591
106591
|
if (L) {
|
|
106592
106592
|
if (!this.enable_global_context_dfa)
|
|
106593
106593
|
for (; w != null; )
|
|
106594
|
-
w.isEmpty ? (
|
|
106594
|
+
w.isEmpty ? (Q = R.PredictionContext.EMPTY_FULL_STATE_KEY, w = void 0) : (Q = this.getReturnState(w), P = P.appendSingleContext(Q, U), w = w.parent);
|
|
106595
106595
|
for (; q != null && q.isContextSensitive && w != null; ) {
|
|
106596
106596
|
let M;
|
|
106597
|
-
if (w = this.skipTailCalls(w), w.isEmpty ? (M = q.getContextTarget(R.PredictionContext.EMPTY_FULL_STATE_KEY),
|
|
106597
|
+
if (w = this.skipTailCalls(w), w.isEmpty ? (M = q.getContextTarget(R.PredictionContext.EMPTY_FULL_STATE_KEY), Q = R.PredictionContext.EMPTY_FULL_STATE_KEY, w = void 0) : (Q = this.getReturnState(w), M = q.getContextTarget(Q), P = P.appendSingleContext(Q, U), w = w.parent), M == null)
|
|
106598
106598
|
break;
|
|
106599
106599
|
q = M;
|
|
106600
106600
|
}
|
|
106601
106601
|
}
|
|
106602
106602
|
if (q != null && !q.isContextSensitive)
|
|
106603
|
-
return new
|
|
106603
|
+
return new G.SimulatorState(N, q, L, w);
|
|
106604
106604
|
let W = new l.ATNConfigSet();
|
|
106605
106605
|
for (; ; ) {
|
|
106606
|
-
let M = new l.ATNConfigSet(),
|
|
106607
|
-
for (let le = 0; le <
|
|
106606
|
+
let M = new l.ATNConfigSet(), z = V.numberOfTransitions;
|
|
106607
|
+
for (let le = 0; le < z; le++) {
|
|
106608
106608
|
let Me = V.transition(le).target;
|
|
106609
106609
|
M.add(a.ATNConfig.create(Me, le + 1, P));
|
|
106610
106610
|
}
|
|
@@ -106614,14 +106614,14 @@ function e2() {
|
|
|
106614
106614
|
if (L && !this.enable_global_context_dfa) {
|
|
106615
106615
|
q = this.addDFAState($, W, U);
|
|
106616
106616
|
break;
|
|
106617
|
-
} else q == null ? $.isPrecedenceDfa ? (W = this.applyPrecedenceFilter(W, N, U), ue = this.addDFAState($, W, U), $.setPrecedenceStartState(this._parser.precedence, L, ue)) : (ue = this.addDFAState($, W, U), L ? $.s0full ? ue = $.s0full : $.s0full = ue : $.s0 ? ue = $.s0 : $.s0 = ue) : ($.isPrecedenceDfa && (W = this.applyPrecedenceFilter(W, N, U)), ue = this.addDFAState($, W, U), q.setContextTarget(
|
|
106617
|
+
} else q == null ? $.isPrecedenceDfa ? (W = this.applyPrecedenceFilter(W, N, U), ue = this.addDFAState($, W, U), $.setPrecedenceStartState(this._parser.precedence, L, ue)) : (ue = this.addDFAState($, W, U), L ? $.s0full ? ue = $.s0full : $.s0full = ue : $.s0 ? ue = $.s0 : $.s0 = ue) : ($.isPrecedenceDfa && (W = this.applyPrecedenceFilter(W, N, U)), ue = this.addDFAState($, W, U), q.setContextTarget(Q, ue));
|
|
106618
106618
|
if (q = ue, !L || !he)
|
|
106619
106619
|
break;
|
|
106620
106620
|
ue.setContextSensitive(this.atn), w = w, W.clear(), w = this.skipTailCalls(w);
|
|
106621
106621
|
let ee = this.getReturnState(w);
|
|
106622
|
-
w.isEmpty ? w = void 0 : w = w.parent, ee !== R.PredictionContext.EMPTY_FULL_STATE_KEY && (P = P.appendSingleContext(ee, U)),
|
|
106622
|
+
w.isEmpty ? w = void 0 : w = w.parent, ee !== R.PredictionContext.EMPTY_FULL_STATE_KEY && (P = P.appendSingleContext(ee, U)), Q = ee;
|
|
106623
106623
|
}
|
|
106624
|
-
return new
|
|
106624
|
+
return new G.SimulatorState(N, q, L, w);
|
|
106625
106625
|
}
|
|
106626
106626
|
/**
|
|
106627
106627
|
* This method transforms the start state computed by
|
|
@@ -106677,20 +106677,20 @@ function e2() {
|
|
|
106677
106677
|
*/
|
|
106678
106678
|
applyPrecedenceFilter($, N, L) {
|
|
106679
106679
|
let q = /* @__PURE__ */ new Map(), V = new l.ATNConfigSet();
|
|
106680
|
-
for (let
|
|
106681
|
-
if (
|
|
106680
|
+
for (let Q of $) {
|
|
106681
|
+
if (Q.alt !== 1)
|
|
106682
106682
|
continue;
|
|
106683
|
-
let w =
|
|
106684
|
-
w != null && (q.set(
|
|
106685
|
-
}
|
|
106686
|
-
for (let
|
|
106687
|
-
if (
|
|
106688
|
-
if (!
|
|
106689
|
-
let w = q.get(
|
|
106690
|
-
if (w != null && w.equals(
|
|
106683
|
+
let w = Q.semanticContext.evalPrecedence(this._parser, N);
|
|
106684
|
+
w != null && (q.set(Q.state.stateNumber, Q.context), w !== Q.semanticContext ? V.add(Q.transform(Q.state, !1, w), L) : V.add(Q, L));
|
|
106685
|
+
}
|
|
106686
|
+
for (let Q of $)
|
|
106687
|
+
if (Q.alt !== 1) {
|
|
106688
|
+
if (!Q.isPrecedenceFilterSuppressed) {
|
|
106689
|
+
let w = q.get(Q.state.stateNumber);
|
|
106690
|
+
if (w != null && w.equals(Q.context))
|
|
106691
106691
|
continue;
|
|
106692
106692
|
}
|
|
106693
|
-
V.add(
|
|
106693
|
+
V.add(Q, L);
|
|
106694
106694
|
}
|
|
106695
106695
|
return V;
|
|
106696
106696
|
}
|
|
@@ -106704,24 +106704,24 @@ function e2() {
|
|
|
106704
106704
|
if (!q)
|
|
106705
106705
|
throw new Error("This unhandled scenario is intended to be unreachable, but I'm currently not sure of why we know that's the case.");
|
|
106706
106706
|
dt.debug && console.log("predicateDFAState " + $);
|
|
106707
|
-
let V = this.getPredsForAmbigAlts(q, N, L),
|
|
106708
|
-
return V != null && (
|
|
106707
|
+
let V = this.getPredsForAmbigAlts(q, N, L), Q;
|
|
106708
|
+
return V != null && (Q = this.getPredicatePredictions(q, V), $.predicates = Q), Q;
|
|
106709
106709
|
}
|
|
106710
106710
|
getPredsForAmbigAlts($, N, L) {
|
|
106711
106711
|
let q = new Array(L + 1), V = q.length;
|
|
106712
106712
|
for (let P of N)
|
|
106713
106713
|
$.get(P.alt) && (q[P.alt] = j.SemanticContext.or(q[P.alt], P.semanticContext));
|
|
106714
|
-
let
|
|
106714
|
+
let Q = 0;
|
|
106715
106715
|
for (let P = 0; P < V; P++)
|
|
106716
|
-
q[P] == null ? q[P] = j.SemanticContext.NONE : q[P] !== j.SemanticContext.NONE &&
|
|
106716
|
+
q[P] == null ? q[P] = j.SemanticContext.NONE : q[P] !== j.SemanticContext.NONE && Q++;
|
|
106717
106717
|
let w = q;
|
|
106718
|
-
return
|
|
106718
|
+
return Q === 0 && (w = void 0), dt.debug && console.log("getPredsForAmbigAlts result " + (w ? o.Arrays.toString(w) : "undefined")), w;
|
|
106719
106719
|
}
|
|
106720
106720
|
getPredicatePredictions($, N) {
|
|
106721
106721
|
let L = [], q = !1;
|
|
106722
106722
|
for (let V = 1; V < N.length; V++) {
|
|
106723
|
-
let
|
|
106724
|
-
fe(
|
|
106723
|
+
let Q = N[V];
|
|
106724
|
+
fe(Q != null), $ != null && $.get(V) && Q === j.SemanticContext.NONE ? L.push(new g.DFAState.PredPrediction(Q, V)) : Q !== j.SemanticContext.NONE && (q = !0, L.push(new g.DFAState.PredPrediction(Q, V)));
|
|
106725
106725
|
}
|
|
106726
106726
|
if (q)
|
|
106727
106727
|
return L;
|
|
@@ -106738,8 +106738,8 @@ function e2() {
|
|
|
106738
106738
|
break;
|
|
106739
106739
|
continue;
|
|
106740
106740
|
}
|
|
106741
|
-
let
|
|
106742
|
-
if ((dt.debug || dt.dfa_debug) && console.log("eval pred " + V + "=" +
|
|
106741
|
+
let Q = this.evalSemanticContextImpl(V.pred, N, V.alt);
|
|
106742
|
+
if ((dt.debug || dt.dfa_debug) && console.log("eval pred " + V + "=" + Q), Q && ((dt.debug || dt.dfa_debug) && console.log("PREDICT " + V.alt), q.set(V.alt), !L))
|
|
106743
106743
|
break;
|
|
106744
106744
|
}
|
|
106745
106745
|
return q;
|
|
@@ -106777,32 +106777,32 @@ function e2() {
|
|
|
106777
106777
|
waste to pursue the closure. Might have to advance when we do
|
|
106778
106778
|
ambig detection thought :(
|
|
106779
106779
|
*/
|
|
106780
|
-
closure($, N, L, q, V,
|
|
106780
|
+
closure($, N, L, q, V, Q) {
|
|
106781
106781
|
V == null && (V = O.PredictionContextCache.UNCACHED);
|
|
106782
106782
|
let w = $, P = new s.Array2DHashSet(b.ObjectEqualityComparator.INSTANCE);
|
|
106783
106783
|
for (; w.size > 0; ) {
|
|
106784
106784
|
let U = new l.ATNConfigSet();
|
|
106785
106785
|
for (let W of w)
|
|
106786
|
-
this.closureImpl(W, N, U, P, L, q, V, 0,
|
|
106786
|
+
this.closureImpl(W, N, U, P, L, q, V, 0, Q);
|
|
106787
106787
|
w = U;
|
|
106788
106788
|
}
|
|
106789
106789
|
}
|
|
106790
|
-
closureImpl($, N, L, q, V,
|
|
106790
|
+
closureImpl($, N, L, q, V, Q, w, P, U) {
|
|
106791
106791
|
if (dt.debug && console.log("closure(" + $.toString(this._parser, !0) + ")"), $.state instanceof D.RuleStopState)
|
|
106792
106792
|
if ($.context.isEmpty)
|
|
106793
|
-
if (
|
|
106793
|
+
if (Q)
|
|
106794
106794
|
dt.debug && console.log("FALLING off rule " + this.getRuleName($.state.ruleIndex)), $.context === R.PredictionContext.EMPTY_FULL ? $ = $.transform($.state, !1, R.PredictionContext.EMPTY_LOCAL) : !$.reachesIntoOuterContext && R.PredictionContext.isEmptyLocal($.context) && N.add($, w);
|
|
106795
106795
|
else {
|
|
106796
106796
|
N.add($, w);
|
|
106797
106797
|
return;
|
|
106798
106798
|
}
|
|
106799
106799
|
else {
|
|
106800
|
-
let M = $.context.hasEmpty,
|
|
106801
|
-
for (let H = 0; H <
|
|
106800
|
+
let M = $.context.hasEmpty, z = $.context.size - (M ? 1 : 0);
|
|
106801
|
+
for (let H = 0; H < z; H++) {
|
|
106802
106802
|
let Z = $.context.getParent(H), he = this.atn.states[$.context.getReturnState(H)], ue = a.ATNConfig.create(he, $.alt, Z, $.semanticContext);
|
|
106803
|
-
ue.outerContextDepth = $.outerContextDepth, ue.isPrecedenceFilterSuppressed = $.isPrecedenceFilterSuppressed, fe(P > oe), this.closureImpl(ue, N, L, q, V,
|
|
106803
|
+
ue.outerContextDepth = $.outerContextDepth, ue.isPrecedenceFilterSuppressed = $.isPrecedenceFilterSuppressed, fe(P > oe), this.closureImpl(ue, N, L, q, V, Q, w, P - 1, U);
|
|
106804
106804
|
}
|
|
106805
|
-
if (!M || !
|
|
106805
|
+
if (!M || !Q)
|
|
106806
106806
|
return;
|
|
106807
106807
|
$ = $.transform($.state, !1, R.PredictionContext.EMPTY_LOCAL);
|
|
106808
106808
|
}
|
|
@@ -106819,29 +106819,29 @@ function e2() {
|
|
|
106819
106819
|
if (ue)
|
|
106820
106820
|
continue;
|
|
106821
106821
|
}
|
|
106822
|
-
let
|
|
106822
|
+
let z = W.getOptimizedTransition(M), H = !(z instanceof i.ActionTransition) && V, Z = this.getEpsilonTarget($, z, H, P === 0, w, U);
|
|
106823
106823
|
if (Z != null) {
|
|
106824
|
-
if (
|
|
106824
|
+
if (z instanceof k.RuleTransition && L != null && !V) {
|
|
106825
106825
|
L.add(Z, w);
|
|
106826
106826
|
continue;
|
|
106827
106827
|
}
|
|
106828
106828
|
let he = P;
|
|
106829
106829
|
if ($.state instanceof D.RuleStopState) {
|
|
106830
|
-
if (this.dfa != null && this.dfa.isPrecedenceDfa &&
|
|
106830
|
+
if (this.dfa != null && this.dfa.isPrecedenceDfa && z.outermostPrecedenceReturn === this.dfa.atnStartState.ruleIndex && (Z.isPrecedenceFilterSuppressed = !0), Z.outerContextDepth = Z.outerContextDepth + 1, !q.add(Z))
|
|
106831
106831
|
continue;
|
|
106832
106832
|
fe(he > oe), he--, dt.debug && console.log("dips into outer ctx: " + Z);
|
|
106833
|
-
} else if (
|
|
106834
|
-
this.optimize_tail_calls &&
|
|
106835
|
-
else if (!
|
|
106833
|
+
} else if (z instanceof k.RuleTransition)
|
|
106834
|
+
this.optimize_tail_calls && z.optimizedTailCall && (!this.tail_call_preserves_sll || !R.PredictionContext.isEmptyLocal($.context)) ? (fe(Z.context === $.context), he === 0 && (he--, !this.tail_call_preserves_sll && R.PredictionContext.isEmptyLocal($.context) && (Z.outerContextDepth = Z.outerContextDepth + 1))) : he >= 0 && he++;
|
|
106835
|
+
else if (!z.isEpsilon && !q.add(Z))
|
|
106836
106836
|
continue;
|
|
106837
|
-
this.closureImpl(Z, N, L, q, H,
|
|
106837
|
+
this.closureImpl(Z, N, L, q, H, Q, w, he, U);
|
|
106838
106838
|
}
|
|
106839
106839
|
}
|
|
106840
106840
|
}
|
|
106841
106841
|
getRuleName($) {
|
|
106842
106842
|
return this._parser != null && $ >= 0 ? this._parser.ruleNames[$] : "<rule " + $ + ">";
|
|
106843
106843
|
}
|
|
106844
|
-
getEpsilonTarget($, N, L, q, V,
|
|
106844
|
+
getEpsilonTarget($, N, L, q, V, Q) {
|
|
106845
106845
|
switch (N.serializationType) {
|
|
106846
106846
|
case 3:
|
|
106847
106847
|
return this.ruleTransition($, N, V);
|
|
@@ -106856,7 +106856,7 @@ function e2() {
|
|
|
106856
106856
|
case 5:
|
|
106857
106857
|
case 2:
|
|
106858
106858
|
case 7:
|
|
106859
|
-
return
|
|
106859
|
+
return Q && N.matches(X.Token.EOF, 0, 1) ? $.transform(N.target, !1) : void 0;
|
|
106860
106860
|
default:
|
|
106861
106861
|
return;
|
|
106862
106862
|
}
|
|
@@ -106868,8 +106868,8 @@ function e2() {
|
|
|
106868
106868
|
dt.debug && (console.log("PRED (collectPredicates=" + L + ") " + N.precedence + ">=_p, ctx dependent=true"), this._parser != null && console.log("context surrounding pred is " + this._parser.getRuleInvocationStack()));
|
|
106869
106869
|
let V;
|
|
106870
106870
|
if (L && q) {
|
|
106871
|
-
let
|
|
106872
|
-
V = $.transform(N.target, !1,
|
|
106871
|
+
let Q = j.SemanticContext.and($.semanticContext, N.predicate);
|
|
106872
|
+
V = $.transform(N.target, !1, Q);
|
|
106873
106873
|
} else
|
|
106874
106874
|
V = $.transform(N.target, !1);
|
|
106875
106875
|
return dt.debug && console.log("config from pred transition=" + V), V;
|
|
@@ -106878,8 +106878,8 @@ function e2() {
|
|
|
106878
106878
|
dt.debug && (console.log("PRED (collectPredicates=" + L + ") " + N.ruleIndex + ":" + N.predIndex + ", ctx dependent=" + N.isCtxDependent), this._parser != null && console.log("context surrounding pred is " + this._parser.getRuleInvocationStack()));
|
|
106879
106879
|
let V;
|
|
106880
106880
|
if (L && (!N.isCtxDependent || N.isCtxDependent && q)) {
|
|
106881
|
-
let
|
|
106882
|
-
V = $.transform(N.target, !1,
|
|
106881
|
+
let Q = j.SemanticContext.and($.semanticContext, N.predicate);
|
|
106882
|
+
V = $.transform(N.target, !1, Q);
|
|
106883
106883
|
} else
|
|
106884
106884
|
V = $.transform(N.target, !1);
|
|
106885
106885
|
return dt.debug && console.log("config from pred transition=" + V), V;
|
|
@@ -106894,13 +106894,13 @@ function e2() {
|
|
|
106894
106894
|
return;
|
|
106895
106895
|
let L = $.toArray();
|
|
106896
106896
|
L.sort(dt.STATE_ALT_SORT_COMPARATOR);
|
|
106897
|
-
let q = !$.dipsIntoOuterContext, V = new h.BitSet(),
|
|
106898
|
-
V.set(
|
|
106897
|
+
let q = !$.dipsIntoOuterContext, V = new h.BitSet(), Q = L[0].alt;
|
|
106898
|
+
V.set(Q);
|
|
106899
106899
|
let w = L[0].state.nonStopStateNumber;
|
|
106900
|
-
for (let
|
|
106901
|
-
let H =
|
|
106900
|
+
for (let z of L) {
|
|
106901
|
+
let H = z.state.nonStopStateNumber;
|
|
106902
106902
|
if (H !== w) {
|
|
106903
|
-
if (
|
|
106903
|
+
if (z.alt !== Q)
|
|
106904
106904
|
return;
|
|
106905
106905
|
w = H;
|
|
106906
106906
|
}
|
|
@@ -106908,23 +106908,23 @@ function e2() {
|
|
|
106908
106908
|
let P;
|
|
106909
106909
|
if (q) {
|
|
106910
106910
|
w = L[0].state.nonStopStateNumber, P = new h.BitSet();
|
|
106911
|
-
let
|
|
106911
|
+
let z = Q;
|
|
106912
106912
|
for (let Z of L) {
|
|
106913
106913
|
if (Z.state.nonStopStateNumber !== w)
|
|
106914
106914
|
break;
|
|
106915
106915
|
let he = Z.alt;
|
|
106916
|
-
P.set(he),
|
|
106916
|
+
P.set(he), z = he;
|
|
106917
106917
|
}
|
|
106918
106918
|
w = L[0].state.nonStopStateNumber;
|
|
106919
|
-
let H =
|
|
106919
|
+
let H = Q;
|
|
106920
106920
|
for (let Z of L) {
|
|
106921
106921
|
let he = Z.state.nonStopStateNumber, ue = Z.alt;
|
|
106922
106922
|
if (he !== w) {
|
|
106923
|
-
if (H !==
|
|
106923
|
+
if (H !== z) {
|
|
106924
106924
|
q = !1;
|
|
106925
106925
|
break;
|
|
106926
106926
|
}
|
|
106927
|
-
w = he, H =
|
|
106927
|
+
w = he, H = Q;
|
|
106928
106928
|
} else if (ue !== H) {
|
|
106929
106929
|
if (ue !== P.nextSetBit(H + 1)) {
|
|
106930
106930
|
q = !1;
|
|
@@ -106936,33 +106936,33 @@ function e2() {
|
|
|
106936
106936
|
}
|
|
106937
106937
|
w = L[0].state.nonStopStateNumber;
|
|
106938
106938
|
let U = 0, W = 0, M = L[0].context;
|
|
106939
|
-
for (let
|
|
106940
|
-
let H = L[
|
|
106941
|
-
if (H.alt !==
|
|
106939
|
+
for (let z = 1; z < L.length; z++) {
|
|
106940
|
+
let H = L[z];
|
|
106941
|
+
if (H.alt !== Q || H.state.nonStopStateNumber !== w)
|
|
106942
106942
|
break;
|
|
106943
|
-
W =
|
|
106943
|
+
W = z, M = N.join(M, L[z].context);
|
|
106944
106944
|
}
|
|
106945
|
-
for (let
|
|
106946
|
-
let H = L[
|
|
106945
|
+
for (let z = W + 1; z < L.length; z++) {
|
|
106946
|
+
let H = L[z], Z = H.state;
|
|
106947
106947
|
if (V.set(H.alt), Z.nonStopStateNumber !== w) {
|
|
106948
|
-
w = Z.nonStopStateNumber, U =
|
|
106948
|
+
w = Z.nonStopStateNumber, U = z, W = z, M = H.context;
|
|
106949
106949
|
for (let Me = U + 1; Me < L.length; Me++) {
|
|
106950
106950
|
let at = L[Me];
|
|
106951
|
-
if (at.alt !==
|
|
106951
|
+
if (at.alt !== Q || at.state.nonStopStateNumber !== w)
|
|
106952
106952
|
break;
|
|
106953
106953
|
W = Me, M = N.join(M, at.context);
|
|
106954
106954
|
}
|
|
106955
|
-
|
|
106955
|
+
z = W;
|
|
106956
106956
|
continue;
|
|
106957
106957
|
}
|
|
106958
|
-
let he = H.context, ue = H.alt, ee =
|
|
106958
|
+
let he = H.context, ue = H.alt, ee = z;
|
|
106959
106959
|
for (let Me = ee + 1; Me < L.length; Me++) {
|
|
106960
106960
|
let at = L[Me];
|
|
106961
106961
|
if (at.alt !== ue || at.state.nonStopStateNumber !== w)
|
|
106962
106962
|
break;
|
|
106963
106963
|
ee = Me, he = N.join(he, at.context);
|
|
106964
106964
|
}
|
|
106965
|
-
|
|
106965
|
+
z = ee;
|
|
106966
106966
|
let le = N.join(M, he);
|
|
106967
106967
|
if (!M.equals(le))
|
|
106968
106968
|
return;
|
|
@@ -107014,9 +107014,9 @@ function e2() {
|
|
|
107014
107014
|
return !0;
|
|
107015
107015
|
return !1;
|
|
107016
107016
|
}
|
|
107017
|
-
addDFAEdge($, N, L, q, V,
|
|
107017
|
+
addDFAEdge($, N, L, q, V, Q) {
|
|
107018
107018
|
fe(q == null || q.isEmpty || $.isContextSensitive);
|
|
107019
|
-
let w = N, P = this.addDFAState($, V,
|
|
107019
|
+
let w = N, P = this.addDFAState($, V, Q);
|
|
107020
107020
|
if (q != null)
|
|
107021
107021
|
for (let U of q.toArray()) {
|
|
107022
107022
|
if (U === R.PredictionContext.EMPTY_FULL_STATE_KEY && w.configs.isOutermostConfigSet)
|
|
@@ -107027,7 +107027,7 @@ function e2() {
|
|
|
107027
107027
|
w = W;
|
|
107028
107028
|
continue;
|
|
107029
107029
|
}
|
|
107030
|
-
W = this.addDFAContextState($, w.configs, U,
|
|
107030
|
+
W = this.addDFAContextState($, w.configs, U, Q), fe(U !== R.PredictionContext.EMPTY_FULL_STATE_KEY || W.configs.isOutermostConfigSet), w.setContextTarget(U, W), w = W;
|
|
107031
107031
|
}
|
|
107032
107032
|
return dt.debug && console.log("EDGE " + w + " -> " + P + " upon " + this.getTokenName(L)), this.setDFAEdge(w, L, P), dt.debug && console.log(`DFA=
|
|
107033
107033
|
` + $.toString(this._parser != null ? this._parser.vocabulary : ce.VocabularyImpl.EMPTY_VOCABULARY, this._parser != null ? this._parser.ruleNames : void 0)), P;
|
|
@@ -107039,8 +107039,8 @@ function e2() {
|
|
|
107039
107039
|
addDFAContextState($, N, L, q) {
|
|
107040
107040
|
if (L !== R.PredictionContext.EMPTY_FULL_STATE_KEY) {
|
|
107041
107041
|
let V = new l.ATNConfigSet();
|
|
107042
|
-
for (let
|
|
107043
|
-
V.add(
|
|
107042
|
+
for (let Q of N)
|
|
107043
|
+
V.add(Q.appendContext(L, q));
|
|
107044
107044
|
return this.addDFAState($, V, q);
|
|
107045
107045
|
} else
|
|
107046
107046
|
return fe(!N.isOutermostConfigSet, "Shouldn't be adding a duplicate edge."), N = N.clone(!0), N.isOutermostConfigSet = !0, this.addDFAState($, N, q);
|
|
@@ -107055,14 +107055,14 @@ function e2() {
|
|
|
107055
107055
|
return W;
|
|
107056
107056
|
}
|
|
107057
107057
|
N.isReadOnly || N.conflictInfo == null && (N.conflictInfo = this.isConflicted(N, L));
|
|
107058
|
-
let V = this.createDFAState($, N.clone(!0)),
|
|
107058
|
+
let V = this.createDFAState($, N.clone(!0)), Q = this.atn.getDecisionState($.decision), w = this.getUniqueAlt(N);
|
|
107059
107059
|
if (w !== u.ATN.INVALID_ALT_NUMBER)
|
|
107060
107060
|
V.acceptStateInfo = new r.AcceptStateInfo(w);
|
|
107061
107061
|
else if (N.conflictingAlts != null) {
|
|
107062
107062
|
let U = N.conflictingAlts;
|
|
107063
107063
|
U && (V.acceptStateInfo = new r.AcceptStateInfo(U.nextSetBit(0)));
|
|
107064
107064
|
}
|
|
107065
|
-
if (V.isAcceptState && N.hasSemanticContext && this.predicateDFAState(V, N,
|
|
107065
|
+
if (V.isAcceptState && N.hasSemanticContext && this.predicateDFAState(V, N, Q.numberOfTransitions), !q)
|
|
107066
107066
|
return V;
|
|
107067
107067
|
let P = $.addState(V);
|
|
107068
107068
|
return dt.debug && P === V && console.log("adding new DFA state: " + V), P;
|
|
@@ -107072,33 +107072,33 @@ function e2() {
|
|
|
107072
107072
|
}
|
|
107073
107073
|
reportAttemptingFullContext($, N, L, q, V) {
|
|
107074
107074
|
if (dt.debug || dt.retry_debug) {
|
|
107075
|
-
let
|
|
107076
|
-
console.log("reportAttemptingFullContext decision=" + $.decision + ":" + L.s0.configs + ", input=" + this._parser.inputStream.getText(
|
|
107075
|
+
let Q = E.Interval.of(q, V);
|
|
107076
|
+
console.log("reportAttemptingFullContext decision=" + $.decision + ":" + L.s0.configs + ", input=" + this._parser.inputStream.getText(Q));
|
|
107077
107077
|
}
|
|
107078
107078
|
if (this._parser != null) {
|
|
107079
|
-
let
|
|
107080
|
-
|
|
107079
|
+
let Q = this._parser.getErrorListenerDispatch();
|
|
107080
|
+
Q.reportAttemptingFullContext && Q.reportAttemptingFullContext(this._parser, $, q, V, N, L);
|
|
107081
107081
|
}
|
|
107082
107082
|
}
|
|
107083
107083
|
reportContextSensitivity($, N, L, q, V) {
|
|
107084
107084
|
if (dt.debug || dt.retry_debug) {
|
|
107085
|
-
let
|
|
107086
|
-
console.log("reportContextSensitivity decision=" + $.decision + ":" + L.s0.configs + ", input=" + this._parser.inputStream.getText(
|
|
107085
|
+
let Q = E.Interval.of(q, V);
|
|
107086
|
+
console.log("reportContextSensitivity decision=" + $.decision + ":" + L.s0.configs + ", input=" + this._parser.inputStream.getText(Q));
|
|
107087
107087
|
}
|
|
107088
107088
|
if (this._parser != null) {
|
|
107089
|
-
let
|
|
107090
|
-
|
|
107089
|
+
let Q = this._parser.getErrorListenerDispatch();
|
|
107090
|
+
Q.reportContextSensitivity && Q.reportContextSensitivity(this._parser, $, q, V, N, L);
|
|
107091
107091
|
}
|
|
107092
107092
|
}
|
|
107093
107093
|
/** If context sensitive parsing, we know it's ambiguity not conflict */
|
|
107094
|
-
reportAmbiguity($, N, L, q, V,
|
|
107094
|
+
reportAmbiguity($, N, L, q, V, Q, w) {
|
|
107095
107095
|
if (dt.debug || dt.retry_debug) {
|
|
107096
107096
|
let P = E.Interval.of(L, q);
|
|
107097
|
-
console.log("reportAmbiguity " +
|
|
107097
|
+
console.log("reportAmbiguity " + Q + ":" + w + ", input=" + this._parser.inputStream.getText(P));
|
|
107098
107098
|
}
|
|
107099
107099
|
if (this._parser != null) {
|
|
107100
107100
|
let P = this._parser.getErrorListenerDispatch();
|
|
107101
|
-
P.reportAmbiguity && P.reportAmbiguity(this._parser, $, L, q, V,
|
|
107101
|
+
P.reportAmbiguity && P.reportAmbiguity(this._parser, $, L, q, V, Q, w);
|
|
107102
107102
|
}
|
|
107103
107103
|
}
|
|
107104
107104
|
getReturnState($) {
|
|
@@ -107600,18 +107600,18 @@ function t2() {
|
|
|
107600
107600
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
107601
107601
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
107602
107602
|
*/
|
|
107603
|
-
var t = T && T.__decorate || function(W, M,
|
|
107604
|
-
var Z = arguments.length, he = Z < 3 ? M : H === null ? H = Object.getOwnPropertyDescriptor(M,
|
|
107605
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") he = Reflect.decorate(W, M,
|
|
107606
|
-
else for (var ee = W.length - 1; ee >= 0; ee--) (ue = W[ee]) && (he = (Z < 3 ? ue(he) : Z > 3 ? ue(M,
|
|
107607
|
-
return Z > 3 && he && Object.defineProperty(M,
|
|
107603
|
+
var t = T && T.__decorate || function(W, M, z, H) {
|
|
107604
|
+
var Z = arguments.length, he = Z < 3 ? M : H === null ? H = Object.getOwnPropertyDescriptor(M, z) : H, ue;
|
|
107605
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") he = Reflect.decorate(W, M, z, H);
|
|
107606
|
+
else for (var ee = W.length - 1; ee >= 0; ee--) (ue = W[ee]) && (he = (Z < 3 ? ue(he) : Z > 3 ? ue(M, z, he) : ue(M, z)) || he);
|
|
107607
|
+
return Z > 3 && he && Object.defineProperty(M, z, he), he;
|
|
107608
107608
|
}, e = T && T.__param || function(W, M) {
|
|
107609
|
-
return function(
|
|
107610
|
-
M(
|
|
107609
|
+
return function(z, H) {
|
|
107610
|
+
M(z, H, W);
|
|
107611
107611
|
};
|
|
107612
107612
|
};
|
|
107613
107613
|
Object.defineProperty(E1, "__esModule", { value: !0 }), E1.ATNDeserializer = void 0;
|
|
107614
|
-
const r = Dy, i = lu, s = du(), o = Ry, u = Er, a = Fy, l = gb, c = Sy, f = fu, x = yb, h = Yx, p = Aa, m = qae(), g = Eb, y = Vx(), E = Cy, A = Ab, _ = _b, v = vb, C = ele, b = tle, S = Cb, R = nle, O = Sb, I = $y, D = Ae, k = IB(), j = e2(), Y = Tb,
|
|
107614
|
+
const r = Dy, i = lu, s = du(), o = Ry, u = Er, a = Fy, l = gb, c = Sy, f = fu, x = yb, h = Yx, p = Aa, m = qae(), g = Eb, y = Vx(), E = Cy, A = Ab, _ = _b, v = vb, C = ele, b = tle, S = Cb, R = nle, O = Sb, I = $y, D = Ae, k = IB(), j = e2(), Y = Tb, G = Rb, X = Db, ce = jy, fe = Ob, te = wb, oe = Tc, xe = Yp, Se = LB(), $ = Fb, N = Nb, L = Gp, q = nn, V = Lb, Q = Ib, w = Ty;
|
|
107615
107615
|
var P;
|
|
107616
107616
|
(function(W) {
|
|
107617
107617
|
W[W.UNICODE_BMP = 0] = "UNICODE_BMP", W[W.UNICODE_SMP = 1] = "UNICODE_SMP";
|
|
@@ -107636,16 +107636,16 @@ function t2() {
|
|
|
107636
107636
|
* serialized ATN at or after the feature identified by `feature` was
|
|
107637
107637
|
* introduced; otherwise, `false`.
|
|
107638
107638
|
*/
|
|
107639
|
-
static isFeatureSupported(M,
|
|
107639
|
+
static isFeatureSupported(M, z) {
|
|
107640
107640
|
let H = We.SUPPORTED_UUIDS.findIndex((Z) => Z.equals(M));
|
|
107641
|
-
return H < 0 ? !1 : We.SUPPORTED_UUIDS.findIndex((Z) => Z.equals(
|
|
107641
|
+
return H < 0 ? !1 : We.SUPPORTED_UUIDS.findIndex((Z) => Z.equals(z)) >= H;
|
|
107642
107642
|
}
|
|
107643
107643
|
static getUnicodeDeserializer(M) {
|
|
107644
107644
|
return M === 0 ? {
|
|
107645
|
-
readUnicode: (
|
|
107645
|
+
readUnicode: (z, H) => We.toInt(z[H]),
|
|
107646
107646
|
size: 1
|
|
107647
107647
|
} : {
|
|
107648
|
-
readUnicode: (
|
|
107648
|
+
readUnicode: (z, H) => We.toInt32(z, H),
|
|
107649
107649
|
size: 2
|
|
107650
107650
|
};
|
|
107651
107651
|
}
|
|
@@ -107653,31 +107653,31 @@ function t2() {
|
|
|
107653
107653
|
M = M.slice(0);
|
|
107654
107654
|
for (let J = 1; J < M.length; J++)
|
|
107655
107655
|
M[J] = M[J] - 2 & 65535;
|
|
107656
|
-
let
|
|
107656
|
+
let z = 0, H = We.toInt(M[z++]);
|
|
107657
107657
|
if (H !== We.SERIALIZED_VERSION) {
|
|
107658
107658
|
let J = `Could not deserialize ATN with version ${H} (expected ${We.SERIALIZED_VERSION}).`;
|
|
107659
107659
|
throw new Error(J);
|
|
107660
107660
|
}
|
|
107661
|
-
let Z = We.toUUID(M,
|
|
107662
|
-
if (
|
|
107661
|
+
let Z = We.toUUID(M, z);
|
|
107662
|
+
if (z += 8, We.SUPPORTED_UUIDS.findIndex((J) => J.equals(Z)) < 0) {
|
|
107663
107663
|
let J = `Could not deserialize ATN with UUID ${Z} (expected ${We.SERIALIZED_UUID} or a legacy UUID).`;
|
|
107664
107664
|
throw new Error(J);
|
|
107665
107665
|
}
|
|
107666
|
-
let he = We.isFeatureSupported(We.ADDED_LEXER_ACTIONS, Z), ue = We.toInt(M[
|
|
107666
|
+
let he = We.isFeatureSupported(We.ADDED_LEXER_ACTIONS, Z), ue = We.toInt(M[z++]), ee = We.toInt(M[z++]), le = new s.ATN(ue, ee), Me = [], at = [], _t = We.toInt(M[z++]);
|
|
107667
107667
|
for (let J = 0; J < _t; J++) {
|
|
107668
|
-
let de = We.toInt(M[
|
|
107668
|
+
let de = We.toInt(M[z++]);
|
|
107669
107669
|
if (de === u.ATNStateType.INVALID_TYPE) {
|
|
107670
107670
|
le.addState(new E.InvalidState());
|
|
107671
107671
|
continue;
|
|
107672
107672
|
}
|
|
107673
|
-
let Ne = We.toInt(M[
|
|
107673
|
+
let Ne = We.toInt(M[z++]);
|
|
107674
107674
|
Ne === 65535 && (Ne = -1);
|
|
107675
107675
|
let He = this.stateFactory(de, Ne);
|
|
107676
107676
|
if (de === u.ATNStateType.LOOP_END) {
|
|
107677
|
-
let ot = We.toInt(M[
|
|
107677
|
+
let ot = We.toInt(M[z++]);
|
|
107678
107678
|
Me.push([He, ot]);
|
|
107679
107679
|
} else if (He instanceof h.BlockStartState) {
|
|
107680
|
-
let ot = We.toInt(M[
|
|
107680
|
+
let ot = We.toInt(M[z++]);
|
|
107681
107681
|
at.push([He, ot]);
|
|
107682
107682
|
}
|
|
107683
107683
|
le.addState(He);
|
|
@@ -107686,53 +107686,53 @@ function t2() {
|
|
|
107686
107686
|
J[0].loopBackState = le.states[J[1]];
|
|
107687
107687
|
for (let J of at)
|
|
107688
107688
|
J[0].endState = le.states[J[1]];
|
|
107689
|
-
let ie = We.toInt(M[
|
|
107689
|
+
let ie = We.toInt(M[z++]);
|
|
107690
107690
|
for (let J = 0; J < ie; J++) {
|
|
107691
|
-
let de = We.toInt(M[
|
|
107691
|
+
let de = We.toInt(M[z++]);
|
|
107692
107692
|
le.states[de].nonGreedy = !0;
|
|
107693
107693
|
}
|
|
107694
|
-
let ae = We.toInt(M[
|
|
107694
|
+
let ae = We.toInt(M[z++]);
|
|
107695
107695
|
for (let J = 0; J < ae; J++) {
|
|
107696
|
-
let de = We.toInt(M[
|
|
107696
|
+
let de = We.toInt(M[z++]);
|
|
107697
107697
|
le.states[de].sll = !0;
|
|
107698
107698
|
}
|
|
107699
|
-
let we = We.toInt(M[
|
|
107699
|
+
let we = We.toInt(M[z++]);
|
|
107700
107700
|
for (let J = 0; J < we; J++) {
|
|
107701
|
-
let de = We.toInt(M[
|
|
107701
|
+
let de = We.toInt(M[z++]);
|
|
107702
107702
|
le.states[de].isPrecedenceRule = !0;
|
|
107703
107703
|
}
|
|
107704
|
-
let Qe = We.toInt(M[
|
|
107704
|
+
let Qe = We.toInt(M[z++]);
|
|
107705
107705
|
le.grammarType === 0 && (le.ruleToTokenType = new Int32Array(Qe)), le.ruleToStartState = new Array(Qe);
|
|
107706
107706
|
for (let J = 0; J < Qe; J++) {
|
|
107707
|
-
let de = We.toInt(M[
|
|
107708
|
-
if (Ne.leftFactored = We.toInt(M[
|
|
107709
|
-
let He = We.toInt(M[
|
|
107710
|
-
He === 65535 && (He = q.Token.EOF), le.ruleToTokenType[J] = He, We.isFeatureSupported(We.ADDED_LEXER_ACTIONS, Z) || We.toInt(M[
|
|
107707
|
+
let de = We.toInt(M[z++]), Ne = le.states[de];
|
|
107708
|
+
if (Ne.leftFactored = We.toInt(M[z++]) !== 0, le.ruleToStartState[J] = Ne, le.grammarType === 0) {
|
|
107709
|
+
let He = We.toInt(M[z++]);
|
|
107710
|
+
He === 65535 && (He = q.Token.EOF), le.ruleToTokenType[J] = He, We.isFeatureSupported(We.ADDED_LEXER_ACTIONS, Z) || We.toInt(M[z++]);
|
|
107711
107711
|
}
|
|
107712
107712
|
}
|
|
107713
107713
|
le.ruleToStopState = new Array(Qe);
|
|
107714
107714
|
for (let J of le.states)
|
|
107715
107715
|
J instanceof oe.RuleStopState && (le.ruleToStopState[J.ruleIndex] = J, le.ruleToStartState[J.ruleIndex].stopState = J);
|
|
107716
|
-
let qe = We.toInt(M[
|
|
107716
|
+
let qe = We.toInt(M[z++]);
|
|
107717
107717
|
for (let J = 0; J < qe; J++) {
|
|
107718
|
-
let de = We.toInt(M[
|
|
107718
|
+
let de = We.toInt(M[z++]);
|
|
107719
107719
|
le.modeToStartState.push(le.states[de]);
|
|
107720
107720
|
}
|
|
107721
107721
|
le.modeToDFA = new Array(qe);
|
|
107722
107722
|
for (let J = 0; J < qe; J++)
|
|
107723
107723
|
le.modeToDFA[J] = new m.DFA(le.modeToStartState[J]);
|
|
107724
107724
|
let Le = [];
|
|
107725
|
-
|
|
107725
|
+
z = this.deserializeSets(M, z, Le, We.getUnicodeDeserializer(
|
|
107726
107726
|
0
|
|
107727
107727
|
/* UNICODE_BMP */
|
|
107728
|
-
)), We.isFeatureSupported(We.ADDED_UNICODE_SMP, Z) && (
|
|
107728
|
+
)), We.isFeatureSupported(We.ADDED_UNICODE_SMP, Z) && (z = this.deserializeSets(M, z, Le, We.getUnicodeDeserializer(
|
|
107729
107729
|
1
|
|
107730
107730
|
/* UNICODE_SMP */
|
|
107731
107731
|
)));
|
|
107732
|
-
let ye = We.toInt(M[
|
|
107732
|
+
let ye = We.toInt(M[z++]);
|
|
107733
107733
|
for (let J = 0; J < ye; J++) {
|
|
107734
|
-
let de = We.toInt(M[
|
|
107735
|
-
le.states[de].addTransition(Zn),
|
|
107734
|
+
let de = We.toInt(M[z]), Ne = We.toInt(M[z + 1]), He = We.toInt(M[z + 2]), ot = We.toInt(M[z + 3]), vt = We.toInt(M[z + 4]), ut = We.toInt(M[z + 5]), Zn = this.edgeFactory(le, He, de, Ne, ot, vt, ut, Le);
|
|
107735
|
+
le.states[de].addTransition(Zn), z += 6;
|
|
107736
107736
|
}
|
|
107737
107737
|
let B = new i.Array2DHashSet({
|
|
107738
107738
|
hashCode: (J) => J.stopState ^ J.returnState ^ J.outermostPrecedenceReturn,
|
|
@@ -107765,7 +107765,7 @@ function t2() {
|
|
|
107765
107765
|
throw new Error("IllegalStateException");
|
|
107766
107766
|
J.endState.startState = J;
|
|
107767
107767
|
}
|
|
107768
|
-
if (J instanceof
|
|
107768
|
+
if (J instanceof G.PlusLoopbackState) {
|
|
107769
107769
|
let de = J;
|
|
107770
107770
|
for (let Ne = 0; Ne < de.numberOfTransitions; Ne++) {
|
|
107771
107771
|
let He = de.transition(Ne).target;
|
|
@@ -107779,18 +107779,18 @@ function t2() {
|
|
|
107779
107779
|
}
|
|
107780
107780
|
}
|
|
107781
107781
|
}
|
|
107782
|
-
let Re = We.toInt(M[
|
|
107782
|
+
let Re = We.toInt(M[z++]);
|
|
107783
107783
|
for (let J = 1; J <= Re; J++) {
|
|
107784
|
-
let de = We.toInt(M[
|
|
107784
|
+
let de = We.toInt(M[z++]), Ne = le.states[de];
|
|
107785
107785
|
le.decisionToState.push(Ne), Ne.decision = J - 1;
|
|
107786
107786
|
}
|
|
107787
107787
|
if (le.grammarType === 0)
|
|
107788
107788
|
if (he) {
|
|
107789
|
-
le.lexerActions = new Array(We.toInt(M[
|
|
107789
|
+
le.lexerActions = new Array(We.toInt(M[z++]));
|
|
107790
107790
|
for (let J = 0; J < le.lexerActions.length; J++) {
|
|
107791
|
-
let de = We.toInt(M[
|
|
107791
|
+
let de = We.toInt(M[z++]), Ne = We.toInt(M[z++]);
|
|
107792
107792
|
Ne === 65535 && (Ne = -1);
|
|
107793
|
-
let He = We.toInt(M[
|
|
107793
|
+
let He = We.toInt(M[z++]);
|
|
107794
107794
|
He === 65535 && (He = -1);
|
|
107795
107795
|
let ot = this.lexerActionFactory(de, Ne, He);
|
|
107796
107796
|
le.lexerActions[J] = ot;
|
|
@@ -107863,21 +107863,21 @@ function t2() {
|
|
|
107863
107863
|
}
|
|
107864
107864
|
return We.identifyTailCalls(le), le;
|
|
107865
107865
|
}
|
|
107866
|
-
deserializeSets(M,
|
|
107867
|
-
let he = We.toInt(M[
|
|
107866
|
+
deserializeSets(M, z, H, Z) {
|
|
107867
|
+
let he = We.toInt(M[z++]);
|
|
107868
107868
|
for (let ue = 0; ue < he; ue++) {
|
|
107869
|
-
let ee = We.toInt(M[
|
|
107870
|
-
|
|
107869
|
+
let ee = We.toInt(M[z]);
|
|
107870
|
+
z++;
|
|
107871
107871
|
let le = new y.IntervalSet();
|
|
107872
|
-
H.push(le), We.toInt(M[
|
|
107872
|
+
H.push(le), We.toInt(M[z++]) !== 0 && le.add(-1);
|
|
107873
107873
|
for (let at = 0; at < ee; at++) {
|
|
107874
|
-
let _t = Z.readUnicode(M,
|
|
107875
|
-
|
|
107876
|
-
let ie = Z.readUnicode(M,
|
|
107877
|
-
|
|
107874
|
+
let _t = Z.readUnicode(M, z);
|
|
107875
|
+
z += Z.size;
|
|
107876
|
+
let ie = Z.readUnicode(M, z);
|
|
107877
|
+
z += Z.size, le.add(_t, ie);
|
|
107878
107878
|
}
|
|
107879
107879
|
}
|
|
107880
|
-
return
|
|
107880
|
+
return z;
|
|
107881
107881
|
}
|
|
107882
107882
|
/**
|
|
107883
107883
|
* Analyze the {@link StarLoopEntryState} states in the specified ATN to set
|
|
@@ -107887,21 +107887,21 @@ function t2() {
|
|
|
107887
107887
|
* @param atn The ATN.
|
|
107888
107888
|
*/
|
|
107889
107889
|
markPrecedenceDecisions(M) {
|
|
107890
|
-
let
|
|
107890
|
+
let z = /* @__PURE__ */ new Map();
|
|
107891
107891
|
for (let H of M.states)
|
|
107892
107892
|
if (H instanceof L.StarLoopEntryState && M.ruleToStartState[H.ruleIndex].isPrecedenceRule) {
|
|
107893
107893
|
let Z = H.transition(H.numberOfTransitions - 1).target;
|
|
107894
|
-
Z instanceof I.LoopEndState && Z.epsilonOnlyTransitions && Z.transition(0).target instanceof oe.RuleStopState && (
|
|
107894
|
+
Z instanceof I.LoopEndState && Z.epsilonOnlyTransitions && Z.transition(0).target instanceof oe.RuleStopState && (z.set(H.ruleIndex, H), H.precedenceRuleDecision = !0, H.precedenceLoopbackStates = new f.BitSet(M.states.length));
|
|
107895
107895
|
}
|
|
107896
|
-
for (let H of
|
|
107896
|
+
for (let H of z)
|
|
107897
107897
|
for (let Z of M.ruleToStopState[H[0]].getTransitions())
|
|
107898
107898
|
Z.serializationType !== 1 || Z.outermostPrecedenceReturn !== -1 || H[1].precedenceLoopbackStates.set(Z.target.stateNumber);
|
|
107899
107899
|
}
|
|
107900
107900
|
verifyATN(M) {
|
|
107901
|
-
for (let
|
|
107902
|
-
if (this.checkCondition(
|
|
107903
|
-
if (this.checkCondition(
|
|
107904
|
-
let H =
|
|
107901
|
+
for (let z of M.states)
|
|
107902
|
+
if (this.checkCondition(z !== void 0, "ATN states should not be undefined."), z.stateType !== u.ATNStateType.INVALID_TYPE) {
|
|
107903
|
+
if (this.checkCondition(z.onlyHasEpsilonTransitions || z.numberOfTransitions <= 1), z instanceof Y.PlusBlockStartState && this.checkCondition(z.loopBackState !== void 0), z instanceof L.StarLoopEntryState) {
|
|
107904
|
+
let H = z;
|
|
107905
107905
|
if (this.checkCondition(H.loopBackState !== void 0), this.checkCondition(H.numberOfTransitions === 2), H.transition(0).target instanceof $.StarBlockStartState)
|
|
107906
107906
|
this.checkCondition(H.transition(1).target instanceof I.LoopEndState), this.checkCondition(!H.nonGreedy);
|
|
107907
107907
|
else if (H.transition(0).target instanceof I.LoopEndState)
|
|
@@ -107909,19 +107909,19 @@ function t2() {
|
|
|
107909
107909
|
else
|
|
107910
107910
|
throw new Error("IllegalStateException");
|
|
107911
107911
|
}
|
|
107912
|
-
if (
|
|
107913
|
-
let H =
|
|
107912
|
+
if (z instanceof N.StarLoopbackState && (this.checkCondition(z.numberOfTransitions === 1), this.checkCondition(z.transition(0).target instanceof L.StarLoopEntryState)), z instanceof I.LoopEndState && this.checkCondition(z.loopBackState !== void 0), z instanceof te.RuleStartState && this.checkCondition(z.stopState !== void 0), z instanceof h.BlockStartState && this.checkCondition(z.endState !== void 0), z instanceof x.BlockEndState && this.checkCondition(z.startState !== void 0), z instanceof p.DecisionState) {
|
|
107913
|
+
let H = z;
|
|
107914
107914
|
this.checkCondition(H.numberOfTransitions <= 1 || H.decision >= 0);
|
|
107915
107915
|
} else
|
|
107916
|
-
this.checkCondition(
|
|
107916
|
+
this.checkCondition(z.numberOfTransitions <= 1 || z instanceof oe.RuleStopState);
|
|
107917
107917
|
}
|
|
107918
107918
|
}
|
|
107919
|
-
checkCondition(M,
|
|
107919
|
+
checkCondition(M, z) {
|
|
107920
107920
|
if (!M)
|
|
107921
|
-
throw new Error("IllegalStateException: " +
|
|
107921
|
+
throw new Error("IllegalStateException: " + z);
|
|
107922
107922
|
}
|
|
107923
107923
|
static inlineSetRules(M) {
|
|
107924
|
-
let
|
|
107924
|
+
let z = 0, H = new Array(M.ruleToStartState.length);
|
|
107925
107925
|
for (let Z = 0; Z < M.ruleToStartState.length; Z++) {
|
|
107926
107926
|
let ue = M.ruleToStartState[Z];
|
|
107927
107927
|
for (; ue.onlyHasEpsilonTransitions && ue.numberOfOptimizedTransitions === 1 && ue.getOptimizedTransition(0).serializationType === 1; )
|
|
@@ -107963,7 +107963,7 @@ function t2() {
|
|
|
107963
107963
|
for (let ie = 0; ie < ue; ie++)
|
|
107964
107964
|
he.push(Z.getOptimizedTransition(ue));
|
|
107965
107965
|
}
|
|
107966
|
-
|
|
107966
|
+
z++;
|
|
107967
107967
|
let at = le.followState, _t = new c.BasicState();
|
|
107968
107968
|
switch (_t.setRuleIndex(at.ruleIndex), M.addState(_t), he.push(new g.EpsilonTransition(_t)), Me.serializationType) {
|
|
107969
107969
|
case 5:
|
|
@@ -107987,10 +107987,10 @@ function t2() {
|
|
|
107987
107987
|
Z.addOptimizedTransition(ue);
|
|
107988
107988
|
}
|
|
107989
107989
|
}
|
|
107990
|
-
return j.ParserATNSimulator.debug && console.log("ATN runtime optimizer removed " +
|
|
107990
|
+
return j.ParserATNSimulator.debug && console.log("ATN runtime optimizer removed " + z + " rule invocations by inlining sets."), z;
|
|
107991
107991
|
}
|
|
107992
107992
|
static combineChainedEpsilons(M) {
|
|
107993
|
-
let
|
|
107993
|
+
let z = 0;
|
|
107994
107994
|
for (let H of M.states) {
|
|
107995
107995
|
if (!H.onlyHasEpsilonTransitions || H instanceof oe.RuleStopState)
|
|
107996
107996
|
continue;
|
|
@@ -108006,7 +108006,7 @@ function t2() {
|
|
|
108006
108006
|
Z !== void 0 && Z.push(ue);
|
|
108007
108007
|
continue e;
|
|
108008
108008
|
}
|
|
108009
|
-
if (
|
|
108009
|
+
if (z++, Z === void 0) {
|
|
108010
108010
|
Z = [];
|
|
108011
108011
|
for (let le = 0; le < he; le++)
|
|
108012
108012
|
Z.push(H.getOptimizedTransition(le));
|
|
@@ -108024,10 +108024,10 @@ function t2() {
|
|
|
108024
108024
|
H.addOptimizedTransition(he);
|
|
108025
108025
|
}
|
|
108026
108026
|
}
|
|
108027
|
-
return j.ParserATNSimulator.debug && console.log("ATN runtime optimizer removed " +
|
|
108027
|
+
return j.ParserATNSimulator.debug && console.log("ATN runtime optimizer removed " + z + " transitions by combining chained epsilon transitions."), z;
|
|
108028
108028
|
}
|
|
108029
|
-
static optimizeSets(M,
|
|
108030
|
-
if (
|
|
108029
|
+
static optimizeSets(M, z) {
|
|
108030
|
+
if (z)
|
|
108031
108031
|
return 0;
|
|
108032
108032
|
let H = 0, Z = M.decisionToState;
|
|
108033
108033
|
for (let he of Z) {
|
|
@@ -108072,23 +108072,23 @@ function t2() {
|
|
|
108072
108072
|
return j.ParserATNSimulator.debug && console.log("ATN runtime optimizer removed " + H + " paths by collapsing sets."), H;
|
|
108073
108073
|
}
|
|
108074
108074
|
static identifyTailCalls(M) {
|
|
108075
|
-
for (let
|
|
108076
|
-
for (let H = 0; H <
|
|
108077
|
-
let Z =
|
|
108075
|
+
for (let z of M.states) {
|
|
108076
|
+
for (let H = 0; H < z.numberOfTransitions; H++) {
|
|
108077
|
+
let Z = z.transition(H);
|
|
108078
108078
|
Z instanceof xe.RuleTransition && (Z.tailCall = this.testTailCall(M, Z, !1), Z.optimizedTailCall = this.testTailCall(M, Z, !0));
|
|
108079
108079
|
}
|
|
108080
|
-
if (
|
|
108081
|
-
for (let H = 0; H <
|
|
108082
|
-
let Z =
|
|
108080
|
+
if (z.isOptimized)
|
|
108081
|
+
for (let H = 0; H < z.numberOfOptimizedTransitions; H++) {
|
|
108082
|
+
let Z = z.getOptimizedTransition(H);
|
|
108083
108083
|
Z instanceof xe.RuleTransition && (Z.tailCall = this.testTailCall(M, Z, !1), Z.optimizedTailCall = this.testTailCall(M, Z, !0));
|
|
108084
108084
|
}
|
|
108085
108085
|
}
|
|
108086
108086
|
}
|
|
108087
|
-
static testTailCall(M,
|
|
108088
|
-
if (!H &&
|
|
108087
|
+
static testTailCall(M, z, H) {
|
|
108088
|
+
if (!H && z.tailCall || H && z.optimizedTailCall)
|
|
108089
108089
|
return !0;
|
|
108090
108090
|
let Z = new f.BitSet(M.states.length), he = [];
|
|
108091
|
-
for (he.push(
|
|
108091
|
+
for (he.push(z.followState); ; ) {
|
|
108092
108092
|
let ue = he.pop();
|
|
108093
108093
|
if (!ue)
|
|
108094
108094
|
break;
|
|
@@ -108109,16 +108109,16 @@ function t2() {
|
|
|
108109
108109
|
static toInt(M) {
|
|
108110
108110
|
return M;
|
|
108111
108111
|
}
|
|
108112
|
-
static toInt32(M,
|
|
108113
|
-
return (M[
|
|
108112
|
+
static toInt32(M, z) {
|
|
108113
|
+
return (M[z] | M[z + 1] << 16) >>> 0;
|
|
108114
108114
|
}
|
|
108115
|
-
static toUUID(M,
|
|
108116
|
-
let H = We.toInt32(M,
|
|
108117
|
-
return new
|
|
108115
|
+
static toUUID(M, z) {
|
|
108116
|
+
let H = We.toInt32(M, z), Z = We.toInt32(M, z + 2), he = We.toInt32(M, z + 4), ue = We.toInt32(M, z + 6);
|
|
108117
|
+
return new Q.UUID(ue, he, Z, H);
|
|
108118
108118
|
}
|
|
108119
|
-
edgeFactory(M,
|
|
108119
|
+
edgeFactory(M, z, H, Z, he, ue, ee, le) {
|
|
108120
108120
|
let Me = M.states[Z];
|
|
108121
|
-
switch (
|
|
108121
|
+
switch (z) {
|
|
108122
108122
|
case 1:
|
|
108123
108123
|
return new g.EpsilonTransition(Me);
|
|
108124
108124
|
case 2:
|
|
@@ -108142,7 +108142,7 @@ function t2() {
|
|
|
108142
108142
|
}
|
|
108143
108143
|
throw new Error("The specified transition type is not valid.");
|
|
108144
108144
|
}
|
|
108145
|
-
stateFactory(M,
|
|
108145
|
+
stateFactory(M, z) {
|
|
108146
108146
|
let H;
|
|
108147
108147
|
switch (M) {
|
|
108148
108148
|
case u.ATNStateType.INVALID_TYPE:
|
|
@@ -108178,7 +108178,7 @@ function t2() {
|
|
|
108178
108178
|
H = new L.StarLoopEntryState();
|
|
108179
108179
|
break;
|
|
108180
108180
|
case u.ATNStateType.PLUS_LOOP_BACK:
|
|
108181
|
-
H = new
|
|
108181
|
+
H = new G.PlusLoopbackState();
|
|
108182
108182
|
break;
|
|
108183
108183
|
case u.ATNStateType.LOOP_END:
|
|
108184
108184
|
H = new I.LoopEndState();
|
|
@@ -108187,33 +108187,33 @@ function t2() {
|
|
|
108187
108187
|
let Z = `The specified state type ${M} is not valid.`;
|
|
108188
108188
|
throw new Error(Z);
|
|
108189
108189
|
}
|
|
108190
|
-
return H.ruleIndex =
|
|
108190
|
+
return H.ruleIndex = z, H;
|
|
108191
108191
|
}
|
|
108192
|
-
lexerActionFactory(M,
|
|
108192
|
+
lexerActionFactory(M, z, H) {
|
|
108193
108193
|
switch (M) {
|
|
108194
108194
|
case 0:
|
|
108195
|
-
return new A.LexerChannelAction(
|
|
108195
|
+
return new A.LexerChannelAction(z);
|
|
108196
108196
|
case 1:
|
|
108197
|
-
return new _.LexerCustomAction(
|
|
108197
|
+
return new _.LexerCustomAction(z, H);
|
|
108198
108198
|
case 2:
|
|
108199
|
-
return new v.LexerModeAction(
|
|
108199
|
+
return new v.LexerModeAction(z);
|
|
108200
108200
|
case 3:
|
|
108201
108201
|
return C.LexerMoreAction.INSTANCE;
|
|
108202
108202
|
case 4:
|
|
108203
108203
|
return b.LexerPopModeAction.INSTANCE;
|
|
108204
108204
|
case 5:
|
|
108205
|
-
return new S.LexerPushModeAction(
|
|
108205
|
+
return new S.LexerPushModeAction(z);
|
|
108206
108206
|
case 6:
|
|
108207
108207
|
return R.LexerSkipAction.INSTANCE;
|
|
108208
108208
|
case 7:
|
|
108209
|
-
return new O.LexerTypeAction(
|
|
108209
|
+
return new O.LexerTypeAction(z);
|
|
108210
108210
|
default:
|
|
108211
108211
|
let Z = `The specified lexer action type ${M} is not valid.`;
|
|
108212
108212
|
throw new Error(Z);
|
|
108213
108213
|
}
|
|
108214
108214
|
}
|
|
108215
108215
|
};
|
|
108216
|
-
return U.BASE_SERIALIZED_UUID =
|
|
108216
|
+
return U.BASE_SERIALIZED_UUID = Q.UUID.fromString("E4178468-DF95-44D0-AD87-F22A5D5FB6D3"), U.ADDED_LEXER_ACTIONS = Q.UUID.fromString("AB35191A-1603-487E-B75A-479B831EAF6D"), U.ADDED_UNICODE_SMP = Q.UUID.fromString("C23FEA89-0605-4f51-AFB8-058BCAB8C91B"), U.SUPPORTED_UUIDS = [
|
|
108217
108217
|
U.BASE_SERIALIZED_UUID,
|
|
108218
108218
|
U.ADDED_LEXER_ACTIONS,
|
|
108219
108219
|
U.ADDED_UNICODE_SMP
|
|
@@ -111498,15 +111498,15 @@ function oYe() {
|
|
|
111498
111498
|
compile(R, O) {
|
|
111499
111499
|
let I = this.tokenize(R), D = new u.ListTokenSource(I), k = new o.CommonTokenStream(D);
|
|
111500
111500
|
const j = this._parser;
|
|
111501
|
-
let Y = new f.ParserInterpreter(j.grammarFileName, j.vocabulary, j.ruleNames, j.getATNWithBypassAlts(), k),
|
|
111501
|
+
let Y = new f.ParserInterpreter(j.grammarFileName, j.vocabulary, j.ruleNames, j.getATNWithBypassAlts(), k), G;
|
|
111502
111502
|
try {
|
|
111503
|
-
Y.errorHandler = new i.BailErrorStrategy(),
|
|
111503
|
+
Y.errorHandler = new i.BailErrorStrategy(), G = Y.parse(O);
|
|
111504
111504
|
} catch (X) {
|
|
111505
111505
|
throw X instanceof c.ParseCancellationException ? X.getCause() : X instanceof m.RecognitionException ? X : X instanceof Error ? new b.CannotInvokeStartRule(X) : X;
|
|
111506
111506
|
}
|
|
111507
111507
|
if (k.LA(1) !== v.Token.EOF)
|
|
111508
111508
|
throw new b.StartRuleDoesNotConsumeFullPattern();
|
|
111509
|
-
return new p.ParseTreePattern(this, R, O,
|
|
111509
|
+
return new p.ParseTreePattern(this, R, O, G);
|
|
111510
111510
|
}
|
|
111511
111511
|
/**
|
|
111512
111512
|
* Used to convert the tree pattern string into a series of tokens. The
|
|
@@ -111565,9 +111565,9 @@ function oYe() {
|
|
|
111565
111565
|
return D || (D = R), D;
|
|
111566
111566
|
let j = R.childCount;
|
|
111567
111567
|
for (let Y = 0; Y < j; Y++) {
|
|
111568
|
-
let
|
|
111569
|
-
if (
|
|
111570
|
-
return
|
|
111568
|
+
let G = this.matchImpl(R.getChild(Y), O.getChild(Y), I);
|
|
111569
|
+
if (G)
|
|
111570
|
+
return G;
|
|
111571
111571
|
}
|
|
111572
111572
|
return D;
|
|
111573
111573
|
}
|
|
@@ -111591,14 +111591,14 @@ function oYe() {
|
|
|
111591
111591
|
let Y = this._parser.getTokenType(k.tag);
|
|
111592
111592
|
if (Y === v.Token.INVALID_TYPE)
|
|
111593
111593
|
throw new Error("Unknown token " + k.tag + " in pattern: " + R);
|
|
111594
|
-
let
|
|
111595
|
-
I.push(
|
|
111594
|
+
let G = new C.TokenTagToken(k.tag, Y, k.label);
|
|
111595
|
+
I.push(G);
|
|
111596
111596
|
} else if (j === j.toLowerCase()) {
|
|
111597
111597
|
let Y = this._parser.getRuleIndex(k.tag);
|
|
111598
111598
|
if (Y === -1)
|
|
111599
111599
|
throw new Error("Unknown rule " + k.tag + " in pattern: " + R);
|
|
111600
|
-
let
|
|
111601
|
-
I.push(new y.RuleTagToken(k.tag,
|
|
111600
|
+
let G = this._parser.getATNWithBypassAlts().ruleToTokenType[Y];
|
|
111601
|
+
I.push(new y.RuleTagToken(k.tag, G, k.label));
|
|
111602
111602
|
} else
|
|
111603
111603
|
throw new Error("invalid tag: " + k.tag + " in pattern: " + R);
|
|
111604
111604
|
} else {
|
|
@@ -111620,36 +111620,36 @@ function oYe() {
|
|
|
111620
111620
|
if (k.length < j.length)
|
|
111621
111621
|
throw new Error("missing start tag in pattern: " + R);
|
|
111622
111622
|
let Y = k.length;
|
|
111623
|
-
for (let
|
|
111624
|
-
if (k[
|
|
111623
|
+
for (let G = 0; G < Y; G++)
|
|
111624
|
+
if (k[G] >= j[G])
|
|
111625
111625
|
throw new Error("tag delimiters out of order in pattern: " + R);
|
|
111626
111626
|
if (Y === 0) {
|
|
111627
|
-
let
|
|
111628
|
-
D.push(new _.TextChunk(
|
|
111627
|
+
let G = R.substring(0, I);
|
|
111628
|
+
D.push(new _.TextChunk(G));
|
|
111629
111629
|
}
|
|
111630
111630
|
if (Y > 0 && k[0] > 0) {
|
|
111631
|
-
let
|
|
111632
|
-
D.push(new _.TextChunk(
|
|
111631
|
+
let G = R.substring(0, k[0]);
|
|
111632
|
+
D.push(new _.TextChunk(G));
|
|
111633
111633
|
}
|
|
111634
|
-
for (let
|
|
111635
|
-
let X = R.substring(k[
|
|
111636
|
-
if (te >= 0 && (fe = X.substring(0, te), ce = X.substring(te + 1, X.length)), D.push(new E.TagChunk(ce, fe)),
|
|
111637
|
-
let oe = R.substring(j[
|
|
111634
|
+
for (let G = 0; G < Y; G++) {
|
|
111635
|
+
let X = R.substring(k[G] + this.start.length, j[G]), ce = X, fe, te = X.indexOf(":");
|
|
111636
|
+
if (te >= 0 && (fe = X.substring(0, te), ce = X.substring(te + 1, X.length)), D.push(new E.TagChunk(ce, fe)), G + 1 < Y) {
|
|
111637
|
+
let oe = R.substring(j[G] + this.stop.length, k[G + 1]);
|
|
111638
111638
|
D.push(new _.TextChunk(oe));
|
|
111639
111639
|
}
|
|
111640
111640
|
}
|
|
111641
111641
|
if (Y > 0) {
|
|
111642
|
-
let
|
|
111643
|
-
if (
|
|
111644
|
-
let X = R.substring(
|
|
111642
|
+
let G = j[Y - 1] + this.stop.length;
|
|
111643
|
+
if (G < I) {
|
|
111644
|
+
let X = R.substring(G, I);
|
|
111645
111645
|
D.push(new _.TextChunk(X));
|
|
111646
111646
|
}
|
|
111647
111647
|
}
|
|
111648
|
-
for (let
|
|
111649
|
-
let X = D[
|
|
111648
|
+
for (let G = 0; G < D.length; G++) {
|
|
111649
|
+
let X = D[G];
|
|
111650
111650
|
if (X instanceof _.TextChunk) {
|
|
111651
111651
|
let ce = X.text.replace(this.escapeRE, "");
|
|
111652
|
-
ce.length < X.text.length && (D[
|
|
111652
|
+
ce.length < X.text.length && (D[G] = new _.TextChunk(ce));
|
|
111653
111653
|
}
|
|
111654
111654
|
}
|
|
111655
111655
|
return D;
|
|
@@ -116050,7 +116050,7 @@ class _Ke extends Kle {
|
|
|
116050
116050
|
}
|
|
116051
116051
|
var wF = {}, a2 = {}, kt = {}, Ke = {};
|
|
116052
116052
|
(function(t) {
|
|
116053
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), t.TD = t.ValueType = void 0, t.exprHasKids = e, t.exprHasE = r, t.exprIsLeaf = i, t.isAsymmetricExpr = s, t.mkTemporal = u, t.isRawCast = a, t.isFilterExprType = l, t.isParameterType = c, t.paramHasValue = f, t.expressionIsScalar = x, t.expressionIsAggregate = h, t.expressionIsUngroupedAggregate = p, t.expressionInvolvesAggregate = m, t.expressionIsCalculation = g, t.expressionIsAnalytic = y, t.isExpressionTypeLEQ = A, t.maxExpressionType = _, t.maxOfExpressionTypes = v, t.hasExpression = C, t.isTemporalType = b, t.isAtomicFieldType = S, t.canOrderBy = R, t.isCastType = O, t.fieldIsIntrinsic = I, t.mkFieldDef = D, t.mkArrayDef = k, t.isRepeatedRecordFunctionParam = j, t.isRepeatedRecord = Y, t.isBasicArray =
|
|
116053
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), t.TD = t.ValueType = void 0, t.exprHasKids = e, t.exprHasE = r, t.exprIsLeaf = i, t.isAsymmetricExpr = s, t.mkTemporal = u, t.isRawCast = a, t.isFilterExprType = l, t.isParameterType = c, t.paramHasValue = f, t.expressionIsScalar = x, t.expressionIsAggregate = h, t.expressionIsUngroupedAggregate = p, t.expressionInvolvesAggregate = m, t.expressionIsCalculation = g, t.expressionIsAnalytic = y, t.isExpressionTypeLEQ = A, t.maxExpressionType = _, t.maxOfExpressionTypes = v, t.hasExpression = C, t.isTemporalType = b, t.isAtomicFieldType = S, t.canOrderBy = R, t.isCastType = O, t.fieldIsIntrinsic = I, t.mkFieldDef = D, t.mkArrayDef = k, t.isRepeatedRecordFunctionParam = j, t.isRepeatedRecord = Y, t.isBasicArray = G, t.isMatrixOperation = X, t.isJoinable = ce, t.isJoined = fe, t.isJoinedSource = te, t.isDateUnit = oe, t.isTimestampUnit = xe, t.isExtractUnit = Se, t.refIsStructDef = N, t.segmentHasErrors = L, t.structHasErrors = q, t.isReduceSegment = V, t.isPartialSegment = Q, t.isProjectSegment = w, t.isQuerySegment = P, t.isSamplingRows = U, t.isSamplingPercent = W, t.isSamplingEnable = M, t.isRawSegment = z, t.isIndexSegment = H, t.isSegmentSQL = Z, t.sourceBase = he, t.isSourceDef = ue, t.isBaseTable = ee, t.isLiteral = le, t.mergeEvalSpaces = Me, t.isBasicAtomic = at, t.getIdentifier = _t, t.isTurtle = ie, t.isAtomic = ae, t.isValueString = we, t.isValueNumber = Qe, t.isValueBoolean = qe, t.isValueTimestamp = Le, t.isValueDate = ye;
|
|
116054
116054
|
function e(B) {
|
|
116055
116055
|
return "kids" in B;
|
|
116056
116056
|
}
|
|
@@ -116161,7 +116161,7 @@ var wF = {}, a2 = {}, kt = {}, Ke = {};
|
|
|
116161
116161
|
return S(B.type) && !C(B);
|
|
116162
116162
|
}
|
|
116163
116163
|
function D(B, K) {
|
|
116164
|
-
if (
|
|
116164
|
+
if (G(B))
|
|
116165
116165
|
return k(B.elementTypeDef, K);
|
|
116166
116166
|
if (Y(B)) {
|
|
116167
116167
|
const { type: Re, fields: J, elementTypeDef: de } = B;
|
|
@@ -116200,7 +116200,7 @@ var wF = {}, a2 = {}, kt = {}, Ke = {};
|
|
|
116200
116200
|
function Y(B) {
|
|
116201
116201
|
return B.type === "array" && B.elementTypeDef.type === "record_element";
|
|
116202
116202
|
}
|
|
116203
|
-
function
|
|
116203
|
+
function G(B) {
|
|
116204
116204
|
return B.type === "array" && B.elementTypeDef.type !== "record_element";
|
|
116205
116205
|
}
|
|
116206
116206
|
function X(B) {
|
|
@@ -116247,7 +116247,7 @@ var wF = {}, a2 = {}, kt = {}, Ke = {};
|
|
|
116247
116247
|
function V(B) {
|
|
116248
116248
|
return B.type === "reduce";
|
|
116249
116249
|
}
|
|
116250
|
-
function
|
|
116250
|
+
function Q(B) {
|
|
116251
116251
|
return B.type === "partial";
|
|
116252
116252
|
}
|
|
116253
116253
|
function w(B) {
|
|
@@ -116265,7 +116265,7 @@ var wF = {}, a2 = {}, kt = {}, Ke = {};
|
|
|
116265
116265
|
function M(B) {
|
|
116266
116266
|
return B.enable !== void 0;
|
|
116267
116267
|
}
|
|
116268
|
-
function
|
|
116268
|
+
function z(B) {
|
|
116269
116269
|
return B.type === "raw";
|
|
116270
116270
|
}
|
|
116271
116271
|
function H(B) {
|
|
@@ -117290,7 +117290,7 @@ var Fc = {}, c0e = {};
|
|
|
117290
117290
|
takes: { base: "number", exponent: "number" },
|
|
117291
117291
|
returns: "number",
|
|
117292
117292
|
impl: { function: "POW" }
|
|
117293
|
-
},
|
|
117293
|
+
}, G = {
|
|
117294
117294
|
takes: {},
|
|
117295
117295
|
returns: "number",
|
|
117296
117296
|
impl: { function: "RAND" }
|
|
@@ -117382,7 +117382,7 @@ var Fc = {}, c0e = {};
|
|
|
117382
117382
|
takes: { value: "number" },
|
|
117383
117383
|
returns: "number",
|
|
117384
117384
|
impl: { function: "TAN" }
|
|
117385
|
-
},
|
|
117385
|
+
}, Q = {
|
|
117386
117386
|
whitespace: {
|
|
117387
117387
|
...D.whitespace,
|
|
117388
117388
|
impl: { function: "TRIM" }
|
|
@@ -117444,7 +117444,7 @@ var Fc = {}, c0e = {};
|
|
|
117444
117444
|
between: { preceding: "preceding", following: "following" }
|
|
117445
117445
|
}
|
|
117446
117446
|
}
|
|
117447
|
-
},
|
|
117447
|
+
}, z = {
|
|
117448
117448
|
generic: { T: ["string", "number", "timestamp", "date", "json"] },
|
|
117449
117449
|
takes: { value: { measure: { generic: "T" } } },
|
|
117450
117450
|
returns: { calculation: { generic: "T" } },
|
|
@@ -117628,7 +117628,7 @@ var Fc = {}, c0e = {};
|
|
|
117628
117628
|
nullif: k,
|
|
117629
117629
|
pi: j,
|
|
117630
117630
|
pow: Y,
|
|
117631
|
-
rand:
|
|
117631
|
+
rand: G,
|
|
117632
117632
|
regexp_extract: X,
|
|
117633
117633
|
replace: fe,
|
|
117634
117634
|
round: te,
|
|
@@ -117641,7 +117641,7 @@ var Fc = {}, c0e = {};
|
|
|
117641
117641
|
strpos: L,
|
|
117642
117642
|
substr: q,
|
|
117643
117643
|
tan: V,
|
|
117644
|
-
trim:
|
|
117644
|
+
trim: Q,
|
|
117645
117645
|
trunc: w,
|
|
117646
117646
|
unicode: P,
|
|
117647
117647
|
upper: U,
|
|
@@ -117652,7 +117652,7 @@ var Fc = {}, c0e = {};
|
|
|
117652
117652
|
// Analytic functions
|
|
117653
117653
|
avg_moving: M,
|
|
117654
117654
|
dense_rank: ie,
|
|
117655
|
-
first_value:
|
|
117655
|
+
first_value: z,
|
|
117656
117656
|
lag: Z,
|
|
117657
117657
|
last_value: he,
|
|
117658
117658
|
lead: ue,
|
|
@@ -121293,9 +121293,9 @@ var tk = A0e.exports, nk = {}, _0e = { exports: {} };
|
|
|
121293
121293
|
}
|
|
121294
121294
|
function h(D, k) {
|
|
121295
121295
|
for (var j = D.length, Y = 0; ; ) {
|
|
121296
|
-
var
|
|
121296
|
+
var G = D.lastIndexOf(`
|
|
121297
121297
|
`, j - 1);
|
|
121298
|
-
if (
|
|
121298
|
+
if (G === -1 || (Y++, j = G, Y === k) || j === 0)
|
|
121299
121299
|
break;
|
|
121300
121300
|
}
|
|
121301
121301
|
var X = Y < k ? 0 : j + 1;
|
|
@@ -121304,16 +121304,16 @@ var tk = A0e.exports, nk = {}, _0e = { exports: {} };
|
|
|
121304
121304
|
}
|
|
121305
121305
|
function p(D) {
|
|
121306
121306
|
for (var k = Object.getOwnPropertyNames(D), j = [], Y = 0; Y < k.length; Y++) {
|
|
121307
|
-
var
|
|
121308
|
-
if (
|
|
121307
|
+
var G = k[Y], X = D[G], ce = [].concat(X);
|
|
121308
|
+
if (G === "include") {
|
|
121309
121309
|
for (var fe = 0; fe < ce.length; fe++)
|
|
121310
121310
|
j.push({ include: ce[fe] });
|
|
121311
121311
|
continue;
|
|
121312
121312
|
}
|
|
121313
121313
|
var te = [];
|
|
121314
121314
|
ce.forEach(function(oe) {
|
|
121315
|
-
o(oe) ? (te.length && j.push(g(
|
|
121316
|
-
}), te.length && j.push(g(
|
|
121315
|
+
o(oe) ? (te.length && j.push(g(G, te)), j.push(g(G, oe)), te = []) : te.push(oe);
|
|
121316
|
+
}), te.length && j.push(g(G, te));
|
|
121317
121317
|
}
|
|
121318
121318
|
return j;
|
|
121319
121319
|
}
|
|
@@ -121321,8 +121321,8 @@ var tk = A0e.exports, nk = {}, _0e = { exports: {} };
|
|
|
121321
121321
|
for (var k = [], j = 0; j < D.length; j++) {
|
|
121322
121322
|
var Y = D[j];
|
|
121323
121323
|
if (Y.include) {
|
|
121324
|
-
for (var
|
|
121325
|
-
k.push({ include:
|
|
121324
|
+
for (var G = [].concat(Y.include), X = 0; X < G.length; X++)
|
|
121325
|
+
k.push({ include: G[X] });
|
|
121326
121326
|
continue;
|
|
121327
121327
|
}
|
|
121328
121328
|
if (!Y.type)
|
|
@@ -121350,8 +121350,8 @@ var tk = A0e.exports, nk = {}, _0e = { exports: {} };
|
|
|
121350
121350
|
e.call(k, Y) && (j[Y] = k[Y]);
|
|
121351
121351
|
if (typeof j.type == "string" && D !== j.type)
|
|
121352
121352
|
throw new Error("Type transform cannot be a string (type '" + j.type + "' for token '" + D + "')");
|
|
121353
|
-
var
|
|
121354
|
-
return j.match = Array.isArray(
|
|
121353
|
+
var G = j.match;
|
|
121354
|
+
return j.match = Array.isArray(G) ? G : G ? [G] : [], j.match.sort(function(X, ce) {
|
|
121355
121355
|
return s(X) && s(ce) ? 0 : s(ce) ? -1 : s(X) ? 1 : ce.length - X.length;
|
|
121356
121356
|
}), j;
|
|
121357
121357
|
}
|
|
@@ -121360,8 +121360,8 @@ var tk = A0e.exports, nk = {}, _0e = { exports: {} };
|
|
|
121360
121360
|
}
|
|
121361
121361
|
var E = g("error", { lineBreaks: !0, shouldThrow: !0 });
|
|
121362
121362
|
function A(D, k) {
|
|
121363
|
-
for (var j = null, Y = /* @__PURE__ */ Object.create(null),
|
|
121364
|
-
D[te].fallback && (
|
|
121363
|
+
for (var j = null, Y = /* @__PURE__ */ Object.create(null), G = !0, X = null, ce = [], fe = [], te = 0; te < D.length; te++)
|
|
121364
|
+
D[te].fallback && (G = !1);
|
|
121365
121365
|
for (var te = 0; te < D.length; te++) {
|
|
121366
121366
|
var oe = D[te];
|
|
121367
121367
|
if (oe.include)
|
|
@@ -121372,7 +121372,7 @@ var tk = A0e.exports, nk = {}, _0e = { exports: {} };
|
|
|
121372
121372
|
j = oe;
|
|
121373
121373
|
}
|
|
121374
121374
|
var xe = oe.match.slice();
|
|
121375
|
-
if (
|
|
121375
|
+
if (G)
|
|
121376
121376
|
for (; xe.length && typeof xe[0] == "string" && xe[0].length === 1; ) {
|
|
121377
121377
|
var Se = xe.shift();
|
|
121378
121378
|
Y[Se.charCodeAt(0)] = oe;
|
|
@@ -121384,7 +121384,7 @@ var tk = A0e.exports, nk = {}, _0e = { exports: {} };
|
|
|
121384
121384
|
throw new Error("State-switching options are not allowed on fallback tokens (for token '" + oe.defaultType + "')");
|
|
121385
121385
|
}
|
|
121386
121386
|
if (xe.length !== 0) {
|
|
121387
|
-
|
|
121387
|
+
G = !1, ce.push(oe);
|
|
121388
121388
|
for (var $ = 0; $ < xe.length; $++) {
|
|
121389
121389
|
var N = xe[$];
|
|
121390
121390
|
if (s(N)) {
|
|
@@ -121407,7 +121407,7 @@ Use (?: … ) instead`);
|
|
|
121407
121407
|
fe.push(l(L));
|
|
121408
121408
|
}
|
|
121409
121409
|
}
|
|
121410
|
-
var
|
|
121410
|
+
var Q = j && j.fallback, w = i && !Q ? "ym" : "gm", P = i || Q ? "" : "|";
|
|
121411
121411
|
X === !0 && (w += "u");
|
|
121412
121412
|
var U = new RegExp(c(fe) + P, w);
|
|
121413
121413
|
return { regexp: U, groups: ce, fast: Y, error: j || E };
|
|
@@ -121428,18 +121428,18 @@ Use (?: … ) instead`);
|
|
|
121428
121428
|
delete D.$all;
|
|
121429
121429
|
var Y = Object.getOwnPropertyNames(D);
|
|
121430
121430
|
k || (k = Y[0]);
|
|
121431
|
-
for (var
|
|
121431
|
+
for (var G = /* @__PURE__ */ Object.create(null), X = 0; X < Y.length; X++) {
|
|
121432
121432
|
var ce = Y[X];
|
|
121433
|
-
|
|
121433
|
+
G[ce] = y(D[ce]).concat(j);
|
|
121434
121434
|
}
|
|
121435
121435
|
for (var X = 0; X < Y.length; X++)
|
|
121436
|
-
for (var ce = Y[X], fe =
|
|
121436
|
+
for (var ce = Y[X], fe = G[ce], te = /* @__PURE__ */ Object.create(null), oe = 0; oe < fe.length; oe++) {
|
|
121437
121437
|
var xe = fe[oe];
|
|
121438
121438
|
if (xe.include) {
|
|
121439
121439
|
var Se = [oe, 1];
|
|
121440
121440
|
if (xe.include !== ce && !te[xe.include]) {
|
|
121441
121441
|
te[xe.include] = !0;
|
|
121442
|
-
var $ =
|
|
121442
|
+
var $ = G[xe.include];
|
|
121443
121443
|
if (!$)
|
|
121444
121444
|
throw new Error("Cannot include nonexistent state '" + xe.include + "' (in state '" + ce + "')");
|
|
121445
121445
|
for (var N = 0; N < $.length; N++) {
|
|
@@ -121452,19 +121452,19 @@ Use (?: … ) instead`);
|
|
|
121452
121452
|
}
|
|
121453
121453
|
for (var q = /* @__PURE__ */ Object.create(null), X = 0; X < Y.length; X++) {
|
|
121454
121454
|
var ce = Y[X];
|
|
121455
|
-
q[ce] = A(
|
|
121455
|
+
q[ce] = A(G[ce], !0);
|
|
121456
121456
|
}
|
|
121457
121457
|
for (var X = 0; X < Y.length; X++) {
|
|
121458
|
-
for (var V = Y[X],
|
|
121458
|
+
for (var V = Y[X], Q = q[V], w = Q.groups, oe = 0; oe < w.length; oe++)
|
|
121459
121459
|
v(w[oe], V, q);
|
|
121460
|
-
for (var P = Object.getOwnPropertyNames(
|
|
121461
|
-
v(
|
|
121460
|
+
for (var P = Object.getOwnPropertyNames(Q.fast), oe = 0; oe < P.length; oe++)
|
|
121461
|
+
v(Q.fast[P[oe]], V, q);
|
|
121462
121462
|
}
|
|
121463
121463
|
return new S(q, k);
|
|
121464
121464
|
}
|
|
121465
121465
|
function b(D) {
|
|
121466
|
-
for (var k = typeof Map < "u", j = k ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null), Y = Object.getOwnPropertyNames(D),
|
|
121467
|
-
var X = Y[
|
|
121466
|
+
for (var k = typeof Map < "u", j = k ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null), Y = Object.getOwnPropertyNames(D), G = 0; G < Y.length; G++) {
|
|
121467
|
+
var X = Y[G], ce = D[X], fe = Array.isArray(ce) ? ce : [ce];
|
|
121468
121468
|
fe.forEach(function(te) {
|
|
121469
121469
|
if (typeof te != "string")
|
|
121470
121470
|
throw new Error("keyword must be string (in keyword '" + X + "')");
|
|
@@ -121529,22 +121529,22 @@ Use (?: … ) instead`);
|
|
|
121529
121529
|
return this._token(ce, j.charAt(D), D);
|
|
121530
121530
|
var Y = this.re;
|
|
121531
121531
|
Y.lastIndex = D;
|
|
121532
|
-
var
|
|
121533
|
-
if (
|
|
121532
|
+
var G = R(Y, j), X = this.error;
|
|
121533
|
+
if (G == null)
|
|
121534
121534
|
return this._token(X, j.slice(D, j.length), D);
|
|
121535
|
-
var ce = this._getGroup(
|
|
121536
|
-
return X.fallback &&
|
|
121535
|
+
var ce = this._getGroup(G), fe = G[0];
|
|
121536
|
+
return X.fallback && G.index !== D ? (this.queuedGroup = ce, this.queuedText = fe, this._token(X, j.slice(D, G.index), D)) : this._token(ce, fe, D);
|
|
121537
121537
|
}
|
|
121538
121538
|
}, S.prototype._token = function(D, k, j) {
|
|
121539
121539
|
var Y = 0;
|
|
121540
121540
|
if (D.lineBreaks) {
|
|
121541
|
-
var
|
|
121541
|
+
var G = /\n/g, X = 1;
|
|
121542
121542
|
if (k === `
|
|
121543
121543
|
`)
|
|
121544
121544
|
Y = 1;
|
|
121545
121545
|
else
|
|
121546
|
-
for (;
|
|
121547
|
-
Y++, X =
|
|
121546
|
+
for (; G.exec(k); )
|
|
121547
|
+
Y++, X = G.lastIndex;
|
|
121548
121548
|
}
|
|
121549
121549
|
var ce = {
|
|
121550
121550
|
type: typeof D.type == "function" && D.type(k) || D.defaultType,
|
|
@@ -121584,13 +121584,13 @@ Use (?: … ) instead`);
|
|
|
121584
121584
|
line: this.line,
|
|
121585
121585
|
col: this.col
|
|
121586
121586
|
};
|
|
121587
|
-
var Y = 2,
|
|
121587
|
+
var Y = 2, G = Math.max(D.line - Y, 1), X = D.line + Y, ce = String(X).length, fe = h(
|
|
121588
121588
|
this.buffer,
|
|
121589
121589
|
this.line - D.line + Y + 1
|
|
121590
121590
|
).slice(0, 5), te = [];
|
|
121591
121591
|
te.push(k + " at line " + D.line + " col " + D.col + ":"), te.push("");
|
|
121592
121592
|
for (var oe = 0; oe < fe.length; oe++) {
|
|
121593
|
-
var xe = fe[oe], Se =
|
|
121593
|
+
var xe = fe[oe], Se = G + oe;
|
|
121594
121594
|
te.push(x(String(Se), ce) + " " + xe), Se === D.line && te.push(x("", ce + D.col + 1) + "^");
|
|
121595
121595
|
}
|
|
121596
121596
|
return te.join(`
|
|
@@ -125302,10 +125302,10 @@ function ck(t, e, r, i, s, o) {
|
|
|
125302
125302
|
if (x = !0, i !== void 0) {
|
|
125303
125303
|
const j = YC(r, t, c.fields, !1), Y = I0e(i, j);
|
|
125304
125304
|
if (Y.length > 0)
|
|
125305
|
-
for (const
|
|
125305
|
+
for (const G of Y)
|
|
125306
125306
|
v({
|
|
125307
125307
|
type: "missing-required-group-by",
|
|
125308
|
-
requiredGroupBy:
|
|
125308
|
+
requiredGroupBy: G
|
|
125309
125309
|
});
|
|
125310
125310
|
}
|
|
125311
125311
|
if (A) {
|
|
@@ -130912,32 +130912,28 @@ class mut extends dut.ExpressionDef {
|
|
|
130912
130912
|
if (I.node !== "stringLiteral")
|
|
130913
130913
|
this.logError("invalid-sql-function-argument", `Invalid string literal for \`${c.name}\``);
|
|
130914
130914
|
else {
|
|
130915
|
-
const D = I.literal, k = yut(D), j =
|
|
130916
|
-
|
|
130917
|
-
|
|
130918
|
-
|
|
130919
|
-
|
|
130920
|
-
|
|
130921
|
-
for (const Q of k)
|
|
130922
|
-
if (Q.type === "string")
|
|
130923
|
-
Y.push(Q.value);
|
|
130924
|
-
else if (Q.name === "TABLE")
|
|
130925
|
-
Y.push({ node: "source-reference" });
|
|
130915
|
+
const D = I.literal, k = yut(D), j = [];
|
|
130916
|
+
for (const Y of k)
|
|
130917
|
+
if (Y.type === "string")
|
|
130918
|
+
j.push(Y.value);
|
|
130919
|
+
else if (Y.path.length === 1 && Y.path[0] === "TABLE")
|
|
130920
|
+
j.push({ node: "source-reference" });
|
|
130926
130921
|
else {
|
|
130927
|
-
const
|
|
130928
|
-
this.has({
|
|
130929
|
-
const
|
|
130930
|
-
if (
|
|
130931
|
-
return this.loggedErrorExpr("sql-function-interpolation-not-found", `Invalid interpolation: ${
|
|
130932
|
-
if (
|
|
130922
|
+
const G = Y.path.map((ce) => new hut.FieldName(ce));
|
|
130923
|
+
this.has({ names: G });
|
|
130924
|
+
const X = e.lookup(G);
|
|
130925
|
+
if (X.found === void 0)
|
|
130926
|
+
return this.loggedErrorExpr("sql-function-interpolation-not-found", `Invalid interpolation: ${X.error.message}`);
|
|
130927
|
+
if (X.found.typeDesc().type === "filter expression")
|
|
130933
130928
|
return this.loggedErrorExpr("filter-expression-error", "Filter expressions cannot be used in sql_ functions");
|
|
130934
|
-
|
|
130929
|
+
X.found.refType === "parameter" ? j.push({ node: "parameter", path: Y.path }) : j.push({
|
|
130935
130930
|
node: "field",
|
|
130936
|
-
|
|
130931
|
+
// TODO when we have namespaces, this will need to be replaced with the resolved path
|
|
130932
|
+
path: Y.path,
|
|
130937
130933
|
at: this.args[0].location
|
|
130938
130934
|
});
|
|
130939
130935
|
}
|
|
130940
|
-
S = (0, LV.composeSQLExpr)(
|
|
130936
|
+
S = (0, LV.composeSQLExpr)(j);
|
|
130941
130937
|
}
|
|
130942
130938
|
}
|
|
130943
130939
|
const R = (0, nr.mergeEvalSpaces)(...p.map((I) => I.evalSpace)), O = R === "constant" ? "constant" : (0, nr.expressionIsScalar)(C) ? R : "output";
|
|
@@ -131023,7 +131019,7 @@ function yut(t) {
|
|
|
131023
131019
|
}
|
|
131024
131020
|
i > 0 && e.push({ type: "string", value: r.slice(0, i) }), e.push({
|
|
131025
131021
|
type: "interpolation",
|
|
131026
|
-
|
|
131022
|
+
path: r.slice(i + 2, s + i).split(".")
|
|
131027
131023
|
}), r = r.slice(s + i + 1);
|
|
131028
131024
|
}
|
|
131029
131025
|
}
|
|
@@ -150589,7 +150585,7 @@ function Odt(t) {
|
|
|
150589
150585
|
var Fe = {}, uD = {};
|
|
150590
150586
|
Object.defineProperty(uD, "__esModule", { value: !0 });
|
|
150591
150587
|
uD.MALLOY_VERSION = void 0;
|
|
150592
|
-
uD.MALLOY_VERSION = "0.0.
|
|
150588
|
+
uD.MALLOY_VERSION = "0.0.281";
|
|
150593
150589
|
Object.defineProperty(Fe, "__esModule", { value: !0 });
|
|
150594
150590
|
Fe.InMemoryModelCache = Fe.CacheManager = Fe.CSVWriter = Fe.JSONWriter = Fe.DataWriter = Fe.DataRecord = Fe.DataArray = Fe.Result = Fe.ExploreMaterializer = Fe.PreparedResultMaterializer = Fe.QueryMaterializer = Fe.ModelMaterializer = Fe.SingleConnectionRuntime = Fe.ConnectionRuntime = Fe.Runtime = Fe.ExploreField = Fe.JoinRelationship = Fe.QueryField = Fe.Query = Fe.StringField = Fe.UnsupportedField = Fe.JSONField = Fe.BooleanField = Fe.NumberField = Fe.TimestampField = Fe.DateField = Fe.TimestampTimeframe = Fe.DateTimeframe = Fe.AtomicField = Fe.AtomicFieldType = Fe.Explore = Fe.SourceRelationship = Fe.FixedConnectionMap = Fe.InMemoryURLReader = Fe.EmptyURLReader = Fe.PreparedResult = Fe.DocumentCompletion = Fe.DocumentSymbol = Fe.DocumentPosition = Fe.DocumentRange = Fe.DocumentTablePath = Fe.Parse = Fe.PreparedQuery = Fe.Model = Fe.MalloyError = Fe.Malloy = void 0;
|
|
150595
150591
|
const AY = vT, Qr = Bi, _Y = Zy, x7 = a2, wdt = uD, Fdt = l2, On = $s, Ndt = ud, Ldt = as, Idt = DE, vY = "internal://internal.malloy";
|