@asgard-js/react 0.2.11 → 0.2.12
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/components/chatbot/api-key-input/api-key-input.d.ts +3 -1
- package/dist/components/chatbot/api-key-input/api-key-input.d.ts.map +1 -1
- package/dist/context/asgard-service-context.d.ts +2 -2
- package/dist/context/asgard-service-context.d.ts.map +1 -1
- package/dist/hooks/use-resize-observer.d.ts +1 -1
- package/dist/hooks/use-resize-observer.d.ts.map +1 -1
- package/dist/index.js +491 -491
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as k, jsxs as Y, Fragment as
|
|
1
|
+
import { jsx as k, jsxs as Y, Fragment as Ka } from "react/jsx-runtime";
|
|
2
2
|
import * as me from "react";
|
|
3
|
-
import
|
|
3
|
+
import ma, { useRef as Qt, useEffect as Ye, useState as Ne, useMemo as we, useCallback as pe, createContext as qg, useContext as Wg, useImperativeHandle as RL, memo as rt, forwardRef as DL } from "react";
|
|
4
4
|
import { AsgardServiceClient as OL, EventType as yl, Conversation as Pk, Channel as LL, MessageTemplateType as zi } from "@asgard-js/core";
|
|
5
5
|
function zk(e) {
|
|
6
6
|
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
@@ -236,7 +236,7 @@ function qy(e, t) {
|
|
|
236
236
|
return e === t;
|
|
237
237
|
}
|
|
238
238
|
function Bk(e, t) {
|
|
239
|
-
const n = Qt(), i = Qt();
|
|
239
|
+
const n = Qt(void 0), i = Qt(void 0);
|
|
240
240
|
return (!i.current || !qy(i.current, t)) && (i.current = t, n.current = e()), n.current;
|
|
241
241
|
}
|
|
242
242
|
function Jbe(e, t = 50) {
|
|
@@ -973,7 +973,7 @@ const pI = "_chatbot_body_wrapper_13zns_1", gI = "_chatbot_body_13zns_1", mI = "
|
|
|
973
973
|
chatbot_body_wrapper: pI,
|
|
974
974
|
chatbot_body: gI,
|
|
975
975
|
chatbot_body__content: mI
|
|
976
|
-
}, yI = "_template_box_rjm7y_1",
|
|
976
|
+
}, yI = "_template_box_rjm7y_1", Ws = {
|
|
977
977
|
template_box: yI,
|
|
978
978
|
"template_box--bot": "_template_box--bot_rjm7y_7",
|
|
979
979
|
"template_box--horizontal": "_template_box--horizontal_rjm7y_7",
|
|
@@ -982,11 +982,11 @@ const pI = "_chatbot_body_wrapper_13zns_1", gI = "_chatbot_body_13zns_1", mI = "
|
|
|
982
982
|
"template_box--empty": "_template_box--empty_rjm7y_18"
|
|
983
983
|
};
|
|
984
984
|
function dn(e) {
|
|
985
|
-
const { type: t, children: n, style: i, className: r } = e, o = e.type === "bot" ? e.direction : "horizontal", s = e.type === "bot" ? e.isEmpty : !1, a = we(() => t === "user" ? Me(
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
o === "horizontal" ?
|
|
989
|
-
s &&
|
|
985
|
+
const { type: t, children: n, style: i, className: r } = e, o = e.type === "bot" ? e.direction : "horizontal", s = e.type === "bot" ? e.isEmpty : !1, a = we(() => t === "user" ? Me(Ws.template_box, Ws["template_box--user"]) : Me(
|
|
986
|
+
Ws.template_box,
|
|
987
|
+
Ws["template_box--bot"],
|
|
988
|
+
o === "horizontal" ? Ws["template_box--horizontal"] : Ws["template_box--vertical"],
|
|
989
|
+
s && Ws["template_box--empty"]
|
|
990
990
|
), [o, t, s]);
|
|
991
991
|
return /* @__PURE__ */ k("div", { className: Me("asgard-template-box", a, r), style: i, children: n });
|
|
992
992
|
}
|
|
@@ -1498,7 +1498,7 @@ function $P(e) {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
);
|
|
1500
1500
|
}
|
|
1501
|
-
const AP = "_hint_root_1hmle_1", MP = "_error_hint_title_1hmle_17", TP = "_error_hint_message_1hmle_23", NP = "_hint_text_1hmle_32", FP = "_time_1hmle_36",
|
|
1501
|
+
const AP = "_hint_root_1hmle_1", MP = "_error_hint_title_1hmle_17", TP = "_error_hint_message_1hmle_23", NP = "_hint_text_1hmle_32", FP = "_time_1hmle_36", Hs = {
|
|
1502
1502
|
hint_root: AP,
|
|
1503
1503
|
error_hint_title: MP,
|
|
1504
1504
|
error_hint_message: TP,
|
|
@@ -1511,12 +1511,12 @@ function Kk(e) {
|
|
|
1511
1511
|
}, [t, i]);
|
|
1512
1512
|
if (t.type === "user") return null;
|
|
1513
1513
|
if (t.type === "error")
|
|
1514
|
-
return /* @__PURE__ */ k("div", { className: Me("asgard-hint-template asgard-hint-template--error",
|
|
1515
|
-
/* @__PURE__ */ Y("div", { className:
|
|
1516
|
-
/* @__PURE__ */ k("span", { className:
|
|
1514
|
+
return /* @__PURE__ */ k("div", { className: Me("asgard-hint-template asgard-hint-template--error", Hs.hint_root), children: r?.(t) ?? /* @__PURE__ */ Y(Ka, { children: [
|
|
1515
|
+
/* @__PURE__ */ Y("div", { className: Hs.error_hint_title, children: [
|
|
1516
|
+
/* @__PURE__ */ k("span", { className: Hs.time, children: Wy(t.time) }),
|
|
1517
1517
|
/* @__PURE__ */ k("span", { children: "Unexpected error" })
|
|
1518
1518
|
] }),
|
|
1519
|
-
i && /* @__PURE__ */ Y("div", { className:
|
|
1519
|
+
i && /* @__PURE__ */ Y("div", { className: Hs.error_hint_message, onClick: o, children: [
|
|
1520
1520
|
"Click ",
|
|
1521
1521
|
/* @__PURE__ */ k("span", { children: "here" }),
|
|
1522
1522
|
" to view the report."
|
|
@@ -1527,11 +1527,11 @@ function Kk(e) {
|
|
|
1527
1527
|
return s.type !== zi.HINT ? null : /* @__PURE__ */ Y(
|
|
1528
1528
|
"div",
|
|
1529
1529
|
{
|
|
1530
|
-
className: Me("asgard-hint-template asgard-hint-template--hint",
|
|
1530
|
+
className: Me("asgard-hint-template asgard-hint-template--hint", Hs.hint_root),
|
|
1531
1531
|
style: n?.HintMessageTemplate?.style,
|
|
1532
1532
|
children: [
|
|
1533
|
-
/* @__PURE__ */ k("div", { className:
|
|
1534
|
-
/* @__PURE__ */ k("div", { className:
|
|
1533
|
+
/* @__PURE__ */ k("div", { className: Hs.time, style: n?.time?.style, children: Wy(t.time) }),
|
|
1534
|
+
/* @__PURE__ */ k("div", { className: Hs.hint_text, style: n?.HintMessageTemplate?.style, children: s.text })
|
|
1535
1535
|
]
|
|
1536
1536
|
}
|
|
1537
1537
|
);
|
|
@@ -2462,7 +2462,7 @@ function ms(e, t, n) {
|
|
|
2462
2462
|
const i = t < e, r = i ? Vy(t, e, n) : Vy(e, t, n);
|
|
2463
2463
|
return (i ? -1 : 1) * (r < 0 ? 1 / -r : r);
|
|
2464
2464
|
}
|
|
2465
|
-
function
|
|
2465
|
+
function ya(e, t) {
|
|
2466
2466
|
let n;
|
|
2467
2467
|
if (t === void 0)
|
|
2468
2468
|
for (const i of e)
|
|
@@ -2510,8 +2510,8 @@ function cc(e, t, n) {
|
|
|
2510
2510
|
function Xy(e, t, n) {
|
|
2511
2511
|
if (e = Float64Array.from(rz(e, n)), !(!(i = e.length) || isNaN(t = +t))) {
|
|
2512
2512
|
if (t <= 0 || i < 2) return Yy(e);
|
|
2513
|
-
if (t >= 1) return
|
|
2514
|
-
var i, r = (i - 1) * t, o = Math.floor(r), s =
|
|
2513
|
+
if (t >= 1) return ya(e);
|
|
2514
|
+
var i, r = (i - 1) * t, o = Math.floor(r), s = ya(i4(e, o).subarray(0, o + 1)), a = Yy(e.subarray(o + 1));
|
|
2515
2515
|
return s + (a - s) * (r - o);
|
|
2516
2516
|
}
|
|
2517
2517
|
}
|
|
@@ -2606,7 +2606,7 @@ function vz(e) {
|
|
|
2606
2606
|
};
|
|
2607
2607
|
}
|
|
2608
2608
|
var xz = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
2609
|
-
function
|
|
2609
|
+
function $a(e) {
|
|
2610
2610
|
if (!(t = xz.exec(e))) throw new Error("invalid format: " + e);
|
|
2611
2611
|
var t;
|
|
2612
2612
|
return new Ev({
|
|
@@ -2622,7 +2622,7 @@ function Aa(e) {
|
|
|
2622
2622
|
type: t[10]
|
|
2623
2623
|
});
|
|
2624
2624
|
}
|
|
2625
|
-
|
|
2625
|
+
$a.prototype = Ev.prototype;
|
|
2626
2626
|
function Ev(e) {
|
|
2627
2627
|
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
|
|
2628
2628
|
}
|
|
@@ -2680,7 +2680,7 @@ var oC = Array.prototype.map, sC = ["y", "z", "a", "f", "p", "n", "µ", "m", "",
|
|
|
2680
2680
|
function l4(e) {
|
|
2681
2681
|
var t = e.grouping === void 0 || e.thousands === void 0 ? rC : _z(oC.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", i = e.currency === void 0 ? "" : e.currency[1] + "", r = e.decimal === void 0 ? "." : e.decimal + "", o = e.numerals === void 0 ? rC : vz(oC.call(e.numerals, String)), s = e.percent === void 0 ? "%" : e.percent + "", a = e.minus === void 0 ? "−" : e.minus + "", l = e.nan === void 0 ? "NaN" : e.nan + "";
|
|
2682
2682
|
function u(f, d) {
|
|
2683
|
-
f =
|
|
2683
|
+
f = $a(f);
|
|
2684
2684
|
var h = f.fill, p = f.align, g = f.sign, m = f.symbol, y = f.zero, b = f.width, _ = f.comma, v = f.precision, w = f.trim, E = f.type;
|
|
2685
2685
|
E === "n" ? (_ = !0, E = "g") : iC[E] || (v === void 0 && (v = 12), w = !0, E = "g"), (y || h === "0" && p === "=") && (y = !0, h = "0", p = "=");
|
|
2686
2686
|
var x = (d && d.prefix !== void 0 ? d.prefix : "") + (m === "$" ? n : m === "#" && /[boxX]/.test(E) ? "0" + E.toLowerCase() : ""), C = (m === "$" ? i : /[%p]/.test(E) ? s : "") + (d && d.suffix !== void 0 ? d.suffix : ""), S = iC[E], A = /[defgprs%]/.test(E);
|
|
@@ -2723,7 +2723,7 @@ function l4(e) {
|
|
|
2723
2723
|
}, M;
|
|
2724
2724
|
}
|
|
2725
2725
|
function c(f, d) {
|
|
2726
|
-
var h = Math.max(-8, Math.min(8, Math.floor(Zl(d) / 3))) * 3, p = Math.pow(10, -h), g = u((f =
|
|
2726
|
+
var h = Math.max(-8, Math.min(8, Math.floor(Zl(d) / 3))) * 3, p = Math.pow(10, -h), g = u((f = $a(f), f.type = "f", f), { suffix: sC[8 + h / 3] });
|
|
2727
2727
|
return function(m) {
|
|
2728
2728
|
return g(p * m);
|
|
2729
2729
|
};
|
|
@@ -2972,9 +2972,9 @@ function p4(e, t) {
|
|
|
2972
2972
|
}
|
|
2973
2973
|
return o.trim();
|
|
2974
2974
|
}
|
|
2975
|
-
const
|
|
2975
|
+
const aa = /* @__PURE__ */ new Date();
|
|
2976
2976
|
function Av(e) {
|
|
2977
|
-
return
|
|
2977
|
+
return aa.setFullYear(e), aa.setMonth(0), aa.setDate(1), aa.setHours(0, 0, 0, 0), aa;
|
|
2978
2978
|
}
|
|
2979
2979
|
function g4(e) {
|
|
2980
2980
|
return y4(new Date(e));
|
|
@@ -3013,7 +3013,7 @@ function Jy(e) {
|
|
|
3013
3013
|
return Uu.count(t - 1, e);
|
|
3014
3014
|
}
|
|
3015
3015
|
function Qy(e) {
|
|
3016
|
-
return
|
|
3016
|
+
return aa.setTime(Date.UTC(e, 0, 1)), aa.getUTCDay();
|
|
3017
3017
|
}
|
|
3018
3018
|
function zz(e, t, n, i, r, o, s) {
|
|
3019
3019
|
if (0 <= e && e < 100) {
|
|
@@ -3650,7 +3650,7 @@ function B4(e) {
|
|
|
3650
3650
|
format: t,
|
|
3651
3651
|
formatPrefix: n,
|
|
3652
3652
|
formatFloat(i) {
|
|
3653
|
-
const r =
|
|
3653
|
+
const r = $a(i || ",");
|
|
3654
3654
|
if (r.precision == null) {
|
|
3655
3655
|
switch (r.precision = 12, r.type) {
|
|
3656
3656
|
case "%":
|
|
@@ -3670,7 +3670,7 @@ function B4(e) {
|
|
|
3670
3670
|
return t(r);
|
|
3671
3671
|
},
|
|
3672
3672
|
formatSpan(i, r, o, s) {
|
|
3673
|
-
s =
|
|
3673
|
+
s = $a(s ?? ",f");
|
|
3674
3674
|
const a = ms(i, r, o), l = Math.max(Math.abs(i), Math.abs(r));
|
|
3675
3675
|
let u;
|
|
3676
3676
|
if (s.precision == null)
|
|
@@ -6709,7 +6709,7 @@ const Kd = {
|
|
|
6709
6709
|
median: o4,
|
|
6710
6710
|
mean: hz,
|
|
6711
6711
|
min: Yy,
|
|
6712
|
-
max:
|
|
6712
|
+
max: ya
|
|
6713
6713
|
}, Nj = [];
|
|
6714
6714
|
function gx(e) {
|
|
6715
6715
|
O.call(this, [], e);
|
|
@@ -7704,14 +7704,14 @@ function We(e) {
|
|
|
7704
7704
|
return e;
|
|
7705
7705
|
};
|
|
7706
7706
|
}
|
|
7707
|
-
const RC = Math.abs, rn = Math.atan2,
|
|
7707
|
+
const RC = Math.abs, rn = Math.atan2, Gs = Math.cos, Jj = Math.max, d1 = Math.min, mr = Math.sin, da = Math.sqrt, sn = 1e-12, iu = Math.PI, bp = iu / 2, V5 = 2 * iu;
|
|
7708
7708
|
function Qj(e) {
|
|
7709
7709
|
return e > 1 ? 0 : e < -1 ? iu : Math.acos(e);
|
|
7710
7710
|
}
|
|
7711
7711
|
function DC(e) {
|
|
7712
7712
|
return e >= 1 ? bp : e <= -1 ? -bp : Math.asin(e);
|
|
7713
7713
|
}
|
|
7714
|
-
const sb = Math.PI, ab = 2 * sb,
|
|
7714
|
+
const sb = Math.PI, ab = 2 * sb, ra = 1e-6, eq = ab - ra;
|
|
7715
7715
|
function Y5(e) {
|
|
7716
7716
|
this._ += e[0];
|
|
7717
7717
|
for (let t = 1, n = e.length; t < n; ++t)
|
|
@@ -7753,17 +7753,17 @@ let Sx = class {
|
|
|
7753
7753
|
let s = this._x1, a = this._y1, l = i - t, u = r - n, c = s - t, f = a - n, d = c * c + f * f;
|
|
7754
7754
|
if (this._x1 === null)
|
|
7755
7755
|
this._append`M${this._x1 = t},${this._y1 = n}`;
|
|
7756
|
-
else if (d >
|
|
7756
|
+
else if (d > ra) if (!(Math.abs(f * l - u * c) > ra) || !o)
|
|
7757
7757
|
this._append`L${this._x1 = t},${this._y1 = n}`;
|
|
7758
7758
|
else {
|
|
7759
7759
|
let h = i - s, p = r - a, g = l * l + u * u, m = h * h + p * p, y = Math.sqrt(g), b = Math.sqrt(d), _ = o * Math.tan((sb - Math.acos((g + d - m) / (2 * y * b))) / 2), v = _ / b, w = _ / y;
|
|
7760
|
-
Math.abs(v - 1) >
|
|
7760
|
+
Math.abs(v - 1) > ra && this._append`L${t + v * c},${n + v * f}`, this._append`A${o},${o},0,0,${+(f * h > c * p)},${this._x1 = t + w * l},${this._y1 = n + w * u}`;
|
|
7761
7761
|
}
|
|
7762
7762
|
}
|
|
7763
7763
|
arc(t, n, i, r, o, s) {
|
|
7764
7764
|
if (t = +t, n = +n, i = +i, s = !!s, i < 0) throw new Error(`negative radius: ${i}`);
|
|
7765
7765
|
let a = i * Math.cos(r), l = i * Math.sin(r), u = t + a, c = n + l, f = 1 ^ s, d = s ? r - o : o - r;
|
|
7766
|
-
this._x1 === null ? this._append`M${u},${c}` : (Math.abs(this._x1 - u) >
|
|
7766
|
+
this._x1 === null ? this._append`M${u},${c}` : (Math.abs(this._x1 - u) > ra || Math.abs(this._y1 - c) > ra) && this._append`L${u},${c}`, i && (d < 0 && (d = d % ab + ab), d > eq ? this._append`A${i},${i},0,1,${f},${t - a},${n - l}A${i},${i},0,1,${f},${this._x1 = u},${this._y1 = c}` : d > ra && this._append`A${i},${i},0,${+(d >= sb)},${f},${this._x1 = t + i * Math.cos(o)},${this._y1 = n + i * Math.sin(o)}`);
|
|
7767
7767
|
}
|
|
7768
7768
|
rect(t, n, i, r) {
|
|
7769
7769
|
this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +n}h${i = +i}v${+r}h${-i}Z`;
|
|
@@ -7811,7 +7811,7 @@ function aq(e, t, n, i, r, o, s, a) {
|
|
|
7811
7811
|
return d = (c * (t - o) - f * (e - r)) / d, [e + d * l, t + d * u];
|
|
7812
7812
|
}
|
|
7813
7813
|
function Zd(e, t, n, i, r, o, s) {
|
|
7814
|
-
var a = e - n, l = t - i, u = (s ? o : -o) /
|
|
7814
|
+
var a = e - n, l = t - i, u = (s ? o : -o) / da(a * a + l * l), c = u * l, f = -u * a, d = e + c, h = t + f, p = n + c, g = i + f, m = (d + p) / 2, y = (h + g) / 2, b = p - d, _ = g - h, v = b * b + _ * _, w = r - o, E = d * g - p * h, x = (_ < 0 ? -1 : 1) * da(Jj(0, w * w * v - E * E)), C = (E * _ - b * x) / v, S = (-E * b - _ * x) / v, A = (E * _ + b * x) / v, M = (-E * b + _ * x) / v, F = C - m, R = S - y, T = A - m, $ = M - y;
|
|
7815
7815
|
return F * F + R * R > T * T + $ * $ && (C = A, S = M), {
|
|
7816
7816
|
cx: C,
|
|
7817
7817
|
cy: S,
|
|
@@ -7827,19 +7827,19 @@ function lq() {
|
|
|
7827
7827
|
var c, f, d = +e.apply(this, arguments), h = +t.apply(this, arguments), p = r.apply(this, arguments) - bp, g = o.apply(this, arguments) - bp, m = RC(g - p), y = g > p;
|
|
7828
7828
|
if (a || (a = c = l()), h < d && (f = h, h = d, d = f), !(h > sn)) a.moveTo(0, 0);
|
|
7829
7829
|
else if (m > V5 - sn)
|
|
7830
|
-
a.moveTo(h *
|
|
7830
|
+
a.moveTo(h * Gs(p), h * mr(p)), a.arc(0, 0, h, p, g, !y), d > sn && (a.moveTo(d * Gs(g), d * mr(g)), a.arc(0, 0, d, g, p, y));
|
|
7831
7831
|
else {
|
|
7832
|
-
var b = p, _ = g, v = p, w = g, E = m, x = m, C = s.apply(this, arguments) / 2, S = C > sn && (i ? +i.apply(this, arguments) :
|
|
7832
|
+
var b = p, _ = g, v = p, w = g, E = m, x = m, C = s.apply(this, arguments) / 2, S = C > sn && (i ? +i.apply(this, arguments) : da(d * d + h * h)), A = d1(RC(h - d) / 2, +n.apply(this, arguments)), M = A, F = A, R, T;
|
|
7833
7833
|
if (S > sn) {
|
|
7834
7834
|
var $ = DC(S / d * mr(C)), N = DC(S / h * mr(C));
|
|
7835
7835
|
(E -= $ * 2) > sn ? ($ *= y ? 1 : -1, v += $, w -= $) : (E = 0, v = w = (p + g) / 2), (x -= N * 2) > sn ? (N *= y ? 1 : -1, b += N, _ -= N) : (x = 0, b = _ = (p + g) / 2);
|
|
7836
7836
|
}
|
|
7837
|
-
var D = h *
|
|
7837
|
+
var D = h * Gs(b), B = h * mr(b), I = d * Gs(w), V = d * mr(w);
|
|
7838
7838
|
if (A > sn) {
|
|
7839
|
-
var ue = h *
|
|
7839
|
+
var ue = h * Gs(_), oe = h * mr(_), ye = d * Gs(v), qe = d * mr(v), be;
|
|
7840
7840
|
if (m < iu)
|
|
7841
7841
|
if (be = aq(D, B, ye, qe, ue, oe, I, V)) {
|
|
7842
|
-
var It = D - be[0], io = B - be[1], gr = ue - be[0], ne = oe - be[1], _e = 1 / mr(Qj((It * gr + io * ne) / (
|
|
7842
|
+
var It = D - be[0], io = B - be[1], gr = ue - be[0], ne = oe - be[1], _e = 1 / mr(Qj((It * gr + io * ne) / (da(It * It + io * io) * da(gr * gr + ne * ne))) / 2), ke = da(be[0] * be[0] + be[1] * be[1]);
|
|
7843
7843
|
M = d1(A, (d - ke) / (_e - 1)), F = d1(A, (h - ke) / (_e + 1));
|
|
7844
7844
|
} else
|
|
7845
7845
|
M = F = 0;
|
|
@@ -7850,7 +7850,7 @@ function lq() {
|
|
|
7850
7850
|
}
|
|
7851
7851
|
return u.centroid = function() {
|
|
7852
7852
|
var c = (+e.apply(this, arguments) + +t.apply(this, arguments)) / 2, f = (+r.apply(this, arguments) + +o.apply(this, arguments)) / 2 - iu / 2;
|
|
7853
|
-
return [
|
|
7853
|
+
return [Gs(f) * c, mr(f) * c];
|
|
7854
7854
|
}, u.innerRadius = function(c) {
|
|
7855
7855
|
return arguments.length ? (e = typeof c == "function" ? c : We(+c), u) : e;
|
|
7856
7856
|
}, u.outerRadius = function(c) {
|
|
@@ -7981,7 +7981,7 @@ function eN(e, t, n) {
|
|
|
7981
7981
|
}
|
|
7982
7982
|
const uq = {
|
|
7983
7983
|
draw(e, t) {
|
|
7984
|
-
const n =
|
|
7984
|
+
const n = da(t / iu);
|
|
7985
7985
|
e.moveTo(n, 0), e.arc(0, 0, n, 0, V5);
|
|
7986
7986
|
}
|
|
7987
7987
|
};
|
|
@@ -8714,7 +8714,7 @@ function Hr(e, t) {
|
|
|
8714
8714
|
}
|
|
8715
8715
|
return this;
|
|
8716
8716
|
}
|
|
8717
|
-
function
|
|
8717
|
+
function Ts(e, t) {
|
|
8718
8718
|
switch (arguments.length) {
|
|
8719
8719
|
case 0:
|
|
8720
8720
|
break;
|
|
@@ -8762,9 +8762,9 @@ function td(e, t) {
|
|
|
8762
8762
|
for (var i in t) n[i] = t[i];
|
|
8763
8763
|
return n;
|
|
8764
8764
|
}
|
|
8765
|
-
function
|
|
8765
|
+
function Ns() {
|
|
8766
8766
|
}
|
|
8767
|
-
var
|
|
8767
|
+
var Aa = 0.7, ru = 1 / Aa, jl = "\\s*([+-]?\\d+)\\s*", kf = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Mr = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Mq = /^#([0-9a-f]{3,8})$/, Tq = new RegExp(`^rgb\\(${jl},${jl},${jl}\\)$`), Nq = new RegExp(`^rgb\\(${Mr},${Mr},${Mr}\\)$`), Fq = new RegExp(`^rgba\\(${jl},${jl},${jl},${kf}\\)$`), Rq = new RegExp(`^rgba\\(${Mr},${Mr},${Mr},${kf}\\)$`), Dq = new RegExp(`^hsl\\(${kf},${Mr},${Mr}\\)$`), Oq = new RegExp(`^hsla\\(${kf},${Mr},${Mr},${kf}\\)$`), zC = {
|
|
8768
8768
|
aliceblue: 15792383,
|
|
8769
8769
|
antiquewhite: 16444375,
|
|
8770
8770
|
aqua: 65535,
|
|
@@ -8914,7 +8914,7 @@ var Ma = 0.7, ru = 1 / Ma, jl = "\\s*([+-]?\\d+)\\s*", kf = "\\s*([+-]?(?:\\d*\\
|
|
|
8914
8914
|
yellow: 16776960,
|
|
8915
8915
|
yellowgreen: 10145074
|
|
8916
8916
|
};
|
|
8917
|
-
Hu(
|
|
8917
|
+
Hu(Ns, Cf, {
|
|
8918
8918
|
copy(e) {
|
|
8919
8919
|
return Object.assign(new this.constructor(), this, e);
|
|
8920
8920
|
},
|
|
@@ -8952,7 +8952,7 @@ function Jd(e, t, n, i) {
|
|
|
8952
8952
|
return i <= 0 && (e = t = n = NaN), new zt(e, t, n, i);
|
|
8953
8953
|
}
|
|
8954
8954
|
function Rx(e) {
|
|
8955
|
-
return e instanceof
|
|
8955
|
+
return e instanceof Ns || (e = Cf(e)), e ? (e = e.rgb(), new zt(e.r, e.g, e.b, e.opacity)) : new zt();
|
|
8956
8956
|
}
|
|
8957
8957
|
function _s(e, t, n, i) {
|
|
8958
8958
|
return arguments.length === 1 ? Rx(e) : new zt(e, t, n, i ?? 1);
|
|
@@ -8960,18 +8960,18 @@ function _s(e, t, n, i) {
|
|
|
8960
8960
|
function zt(e, t, n, i) {
|
|
8961
8961
|
this.r = +e, this.g = +t, this.b = +n, this.opacity = +i;
|
|
8962
8962
|
}
|
|
8963
|
-
Hu(zt, _s, td(
|
|
8963
|
+
Hu(zt, _s, td(Ns, {
|
|
8964
8964
|
brighter(e) {
|
|
8965
8965
|
return e = e == null ? ru : Math.pow(ru, e), new zt(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
8966
8966
|
},
|
|
8967
8967
|
darker(e) {
|
|
8968
|
-
return e = e == null ?
|
|
8968
|
+
return e = e == null ? Aa : Math.pow(Aa, e), new zt(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
8969
8969
|
},
|
|
8970
8970
|
rgb() {
|
|
8971
8971
|
return this;
|
|
8972
8972
|
},
|
|
8973
8973
|
clamp() {
|
|
8974
|
-
return new zt(
|
|
8974
|
+
return new zt(ba(this.r), ba(this.g), ba(this.b), wp(this.opacity));
|
|
8975
8975
|
},
|
|
8976
8976
|
displayable() {
|
|
8977
8977
|
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
@@ -8984,30 +8984,30 @@ Hu(zt, _s, td(Fs, {
|
|
|
8984
8984
|
toString: WC
|
|
8985
8985
|
}));
|
|
8986
8986
|
function qC() {
|
|
8987
|
-
return `#${
|
|
8987
|
+
return `#${ha(this.r)}${ha(this.g)}${ha(this.b)}`;
|
|
8988
8988
|
}
|
|
8989
8989
|
function Pq() {
|
|
8990
|
-
return `#${
|
|
8990
|
+
return `#${ha(this.r)}${ha(this.g)}${ha(this.b)}${ha((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
8991
8991
|
}
|
|
8992
8992
|
function WC() {
|
|
8993
8993
|
const e = wp(this.opacity);
|
|
8994
|
-
return `${e === 1 ? "rgb(" : "rgba("}${
|
|
8994
|
+
return `${e === 1 ? "rgb(" : "rgba("}${ba(this.r)}, ${ba(this.g)}, ${ba(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
8995
8995
|
}
|
|
8996
8996
|
function wp(e) {
|
|
8997
8997
|
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
|
|
8998
8998
|
}
|
|
8999
|
-
function
|
|
8999
|
+
function ba(e) {
|
|
9000
9000
|
return Math.max(0, Math.min(255, Math.round(e) || 0));
|
|
9001
9001
|
}
|
|
9002
|
-
function
|
|
9003
|
-
return e =
|
|
9002
|
+
function ha(e) {
|
|
9003
|
+
return e = ba(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
9004
9004
|
}
|
|
9005
9005
|
function HC(e, t, n, i) {
|
|
9006
9006
|
return i <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new Gi(e, t, n, i);
|
|
9007
9007
|
}
|
|
9008
9008
|
function fN(e) {
|
|
9009
9009
|
if (e instanceof Gi) return new Gi(e.h, e.s, e.l, e.opacity);
|
|
9010
|
-
if (e instanceof
|
|
9010
|
+
if (e instanceof Ns || (e = Cf(e)), !e) return new Gi();
|
|
9011
9011
|
if (e instanceof Gi) return e;
|
|
9012
9012
|
e = e.rgb();
|
|
9013
9013
|
var t = e.r / 255, n = e.g / 255, i = e.b / 255, r = Math.min(t, n, i), o = Math.max(t, n, i), s = NaN, a = o - r, l = (o + r) / 2;
|
|
@@ -9019,12 +9019,12 @@ function Ep(e, t, n, i) {
|
|
|
9019
9019
|
function Gi(e, t, n, i) {
|
|
9020
9020
|
this.h = +e, this.s = +t, this.l = +n, this.opacity = +i;
|
|
9021
9021
|
}
|
|
9022
|
-
Hu(Gi, Ep, td(
|
|
9022
|
+
Hu(Gi, Ep, td(Ns, {
|
|
9023
9023
|
brighter(e) {
|
|
9024
9024
|
return e = e == null ? ru : Math.pow(ru, e), new Gi(this.h, this.s, this.l * e, this.opacity);
|
|
9025
9025
|
},
|
|
9026
9026
|
darker(e) {
|
|
9027
|
-
return e = e == null ?
|
|
9027
|
+
return e = e == null ? Aa : Math.pow(Aa, e), new Gi(this.h, this.s, this.l * e, this.opacity);
|
|
9028
9028
|
},
|
|
9029
9029
|
rgb() {
|
|
9030
9030
|
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, i = n + (n < 0.5 ? n : 1 - n) * t, r = 2 * n - i;
|
|
@@ -9069,7 +9069,7 @@ function Cp(e, t, n, i) {
|
|
|
9069
9069
|
function Tr(e, t, n, i) {
|
|
9070
9070
|
this.l = +e, this.a = +t, this.b = +n, this.opacity = +i;
|
|
9071
9071
|
}
|
|
9072
|
-
Hu(Tr, Cp, td(
|
|
9072
|
+
Hu(Tr, Cp, td(Ns, {
|
|
9073
9073
|
brighter(e) {
|
|
9074
9074
|
return new Tr(this.l + kp * (e ?? 1), this.a, this.b, this.opacity);
|
|
9075
9075
|
},
|
|
@@ -9115,7 +9115,7 @@ function vN(e) {
|
|
|
9115
9115
|
var t = e.h * dN;
|
|
9116
9116
|
return new Tr(e.l, Math.cos(t) * e.c, Math.sin(t) * e.c, e.opacity);
|
|
9117
9117
|
}
|
|
9118
|
-
Hu(yo, Sp, td(
|
|
9118
|
+
Hu(yo, Sp, td(Ns, {
|
|
9119
9119
|
brighter(e) {
|
|
9120
9120
|
return new yo(this.h, this.c, this.l + kp * (e ?? 1), this.opacity);
|
|
9121
9121
|
},
|
|
@@ -9128,23 +9128,23 @@ Hu(yo, Sp, td(Fs, {
|
|
|
9128
9128
|
}));
|
|
9129
9129
|
var xN = -0.14861, Dx = 1.78277, Ox = -0.29227, mm = -0.90649, Sf = 1.97294, VC = Sf * mm, YC = Sf * Dx, XC = Dx * Ox - mm * xN;
|
|
9130
9130
|
function Uq(e) {
|
|
9131
|
-
if (e instanceof
|
|
9131
|
+
if (e instanceof _a) return new _a(e.h, e.s, e.l, e.opacity);
|
|
9132
9132
|
e instanceof zt || (e = Rx(e));
|
|
9133
9133
|
var t = e.r / 255, n = e.g / 255, i = e.b / 255, r = (XC * i + VC * t - YC * n) / (XC + VC - YC), o = i - r, s = (Sf * (n - r) - Ox * o) / mm, a = Math.sqrt(s * s + o * o) / (Sf * r * (1 - r)), l = a ? Math.atan2(s, o) * hN - 120 : NaN;
|
|
9134
|
-
return new
|
|
9134
|
+
return new _a(l < 0 ? l + 360 : l, a, r, e.opacity);
|
|
9135
9135
|
}
|
|
9136
9136
|
function ub(e, t, n, i) {
|
|
9137
|
-
return arguments.length === 1 ? Uq(e) : new
|
|
9137
|
+
return arguments.length === 1 ? Uq(e) : new _a(e, t, n, i ?? 1);
|
|
9138
9138
|
}
|
|
9139
|
-
function
|
|
9139
|
+
function _a(e, t, n, i) {
|
|
9140
9140
|
this.h = +e, this.s = +t, this.l = +n, this.opacity = +i;
|
|
9141
9141
|
}
|
|
9142
|
-
Hu(
|
|
9142
|
+
Hu(_a, ub, td(Ns, {
|
|
9143
9143
|
brighter(e) {
|
|
9144
|
-
return e = e == null ? ru : Math.pow(ru, e), new
|
|
9144
|
+
return e = e == null ? ru : Math.pow(ru, e), new _a(this.h, this.s, this.l * e, this.opacity);
|
|
9145
9145
|
},
|
|
9146
9146
|
darker(e) {
|
|
9147
|
-
return e = e == null ?
|
|
9147
|
+
return e = e == null ? Aa : Math.pow(Aa, e), new _a(this.h, this.s, this.l * e, this.opacity);
|
|
9148
9148
|
},
|
|
9149
9149
|
rgb() {
|
|
9150
9150
|
var e = isNaN(this.h) ? 0 : (this.h + 120) * dN, t = +this.l, n = isNaN(this.s) ? 0 : this.s * t * (1 - t), i = Math.cos(e), r = Math.sin(e);
|
|
@@ -9235,7 +9235,7 @@ function Gq(e, t) {
|
|
|
9235
9235
|
}
|
|
9236
9236
|
function AN(e, t) {
|
|
9237
9237
|
var n = t ? t.length : 0, i = e ? Math.min(n, e.length) : 0, r = new Array(i), o = new Array(n), s;
|
|
9238
|
-
for (s = 0; s < i; ++s) r[s] =
|
|
9238
|
+
for (s = 0; s < i; ++s) r[s] = Fs(e[s], t[s]);
|
|
9239
9239
|
for (; s < n; ++s) o[s] = t[s];
|
|
9240
9240
|
return function(a) {
|
|
9241
9241
|
for (s = 0; s < i; ++s) o[s] = r[s](a);
|
|
@@ -9257,7 +9257,7 @@ function TN(e, t) {
|
|
|
9257
9257
|
var n = {}, i = {}, r;
|
|
9258
9258
|
(e === null || typeof e != "object") && (e = {}), (t === null || typeof t != "object") && (t = {});
|
|
9259
9259
|
for (r in t)
|
|
9260
|
-
r in e ? n[r] =
|
|
9260
|
+
r in e ? n[r] = Fs(e[r], t[r]) : i[r] = t[r];
|
|
9261
9261
|
return function(o) {
|
|
9262
9262
|
for (r in n) i[r] = n[r](o);
|
|
9263
9263
|
return i;
|
|
@@ -9283,7 +9283,7 @@ function NN(e, t) {
|
|
|
9283
9283
|
return a.join("");
|
|
9284
9284
|
});
|
|
9285
9285
|
}
|
|
9286
|
-
function
|
|
9286
|
+
function Fs(e, t) {
|
|
9287
9287
|
var n = typeof t, i;
|
|
9288
9288
|
return t == null || n === "boolean" ? ym(t) : (n === "number" ? Wi : n === "string" ? (i = Cf(t)) ? (t = i, cb) : NN : t instanceof Cf ? cb : t instanceof Date ? MN : $N(t) ? Lx : Array.isArray(t) ? AN : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? TN : Wi)(e, t);
|
|
9289
9289
|
}
|
|
@@ -9442,7 +9442,7 @@ function LN(e) {
|
|
|
9442
9442
|
const cW = LN(bm);
|
|
9443
9443
|
var fW = LN(Bt);
|
|
9444
9444
|
function Ix(e, t) {
|
|
9445
|
-
t === void 0 && (t = e, e =
|
|
9445
|
+
t === void 0 && (t = e, e = Fs);
|
|
9446
9446
|
for (var n = 0, i = t.length - 1, r = t[0], o = new Array(i < 0 ? 0 : i); n < i; ) o[n] = e(r, r = t[++n]);
|
|
9447
9447
|
return function(s) {
|
|
9448
9448
|
var a = Math.max(0, Math.min(i - 1, Math.floor(s *= i)));
|
|
@@ -9455,7 +9455,7 @@ function dW(e, t) {
|
|
|
9455
9455
|
}
|
|
9456
9456
|
const hW = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9457
9457
|
__proto__: null,
|
|
9458
|
-
interpolate:
|
|
9458
|
+
interpolate: Fs,
|
|
9459
9459
|
interpolateArray: Gq,
|
|
9460
9460
|
interpolateBasis: EN,
|
|
9461
9461
|
interpolateBasisClosed: kN,
|
|
@@ -9525,7 +9525,7 @@ function id(e, t) {
|
|
|
9525
9525
|
return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
|
|
9526
9526
|
}
|
|
9527
9527
|
function _m() {
|
|
9528
|
-
var e = JC, t = JC, n =
|
|
9528
|
+
var e = JC, t = JC, n = Fs, i, r, o, s = Un, a, l, u;
|
|
9529
9529
|
function c() {
|
|
9530
9530
|
var d = Math.min(e.length, t.length);
|
|
9531
9531
|
return s !== Un && (s = gW(e[0], e[d - 1])), a = d > 2 ? yW : mW, l = u = null, f;
|
|
@@ -9556,7 +9556,7 @@ function IN() {
|
|
|
9556
9556
|
}
|
|
9557
9557
|
function PN(e, t, n, i) {
|
|
9558
9558
|
var r = ms(e, t, n), o;
|
|
9559
|
-
switch (i =
|
|
9559
|
+
switch (i = $a(i ?? ",f"), i.type) {
|
|
9560
9560
|
case "s": {
|
|
9561
9561
|
var s = Math.max(Math.abs(e), Math.abs(t));
|
|
9562
9562
|
return i.precision == null && !isNaN(o = c4(r, s)) && (i.precision = o), kv(i, s);
|
|
@@ -9687,7 +9687,7 @@ function Px(e) {
|
|
|
9687
9687
|
y = Gy(d, h, Math.min(h - d, m)).map(o);
|
|
9688
9688
|
return f ? y.reverse() : y;
|
|
9689
9689
|
}, t.tickFormat = (a, l) => {
|
|
9690
|
-
if (a == null && (a = 10), l == null && (l = i === 10 ? "s" : ","), typeof l != "function" && (!(i % 1) && (l =
|
|
9690
|
+
if (a == null && (a = 10), l == null && (l = i === 10 ? "s" : ","), typeof l != "function" && (!(i % 1) && (l = $a(l)).precision == null && (l.trim = !0), l = Yg(l)), a === 1 / 0) return l;
|
|
9691
9691
|
const u = Math.max(1, i * a / t.ticks().length);
|
|
9692
9692
|
return (c) => {
|
|
9693
9693
|
let f = c / o(Math.round(r(c)));
|
|
@@ -9878,38 +9878,38 @@ function vm() {
|
|
|
9878
9878
|
return arguments.length ? ([h, p] = d, s = f(h, p), u) : [s(0), s(1)];
|
|
9879
9879
|
};
|
|
9880
9880
|
}
|
|
9881
|
-
return u.range = c(
|
|
9881
|
+
return u.range = c(Fs), u.rangeRound = c(nd), u.unknown = function(f) {
|
|
9882
9882
|
return arguments.length ? (l = f, u) : l;
|
|
9883
9883
|
}, function(f) {
|
|
9884
9884
|
return o = f, n = f(e), i = f(t), r = n === i ? 0 : 1 / (i - n), u;
|
|
9885
9885
|
};
|
|
9886
9886
|
}
|
|
9887
|
-
function
|
|
9887
|
+
function Rs(e, t) {
|
|
9888
9888
|
return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());
|
|
9889
9889
|
}
|
|
9890
9890
|
function qx() {
|
|
9891
9891
|
var e = il(vm()(Un));
|
|
9892
9892
|
return e.copy = function() {
|
|
9893
|
-
return
|
|
9894
|
-
},
|
|
9893
|
+
return Rs(e, qx());
|
|
9894
|
+
}, Ts.apply(e, arguments);
|
|
9895
9895
|
}
|
|
9896
9896
|
function VN() {
|
|
9897
9897
|
var e = Px(vm()).domain([1, 10]);
|
|
9898
9898
|
return e.copy = function() {
|
|
9899
|
-
return
|
|
9900
|
-
},
|
|
9899
|
+
return Rs(e, VN()).base(e.base());
|
|
9900
|
+
}, Ts.apply(e, arguments);
|
|
9901
9901
|
}
|
|
9902
9902
|
function YN() {
|
|
9903
9903
|
var e = zx(vm());
|
|
9904
9904
|
return e.copy = function() {
|
|
9905
|
-
return
|
|
9906
|
-
},
|
|
9905
|
+
return Rs(e, YN()).constant(e.constant());
|
|
9906
|
+
}, Ts.apply(e, arguments);
|
|
9907
9907
|
}
|
|
9908
9908
|
function Wx() {
|
|
9909
9909
|
var e = Bx(vm());
|
|
9910
9910
|
return e.copy = function() {
|
|
9911
|
-
return
|
|
9912
|
-
},
|
|
9911
|
+
return Rs(e, Wx()).exponent(e.exponent());
|
|
9912
|
+
}, Ts.apply(e, arguments);
|
|
9913
9913
|
}
|
|
9914
9914
|
function TW() {
|
|
9915
9915
|
return Wx.apply(null, arguments).exponent(0.5);
|
|
@@ -9932,7 +9932,7 @@ function xm() {
|
|
|
9932
9932
|
return arguments.length ? ([y, b, _] = m, u = Ix(g, [y, b, _]), h) : [u(0), u(0.5), u(1)];
|
|
9933
9933
|
};
|
|
9934
9934
|
}
|
|
9935
|
-
return h.range = p(
|
|
9935
|
+
return h.range = p(Fs), h.rangeRound = p(nd), h.unknown = function(g) {
|
|
9936
9936
|
return arguments.length ? (d = g, h) : d;
|
|
9937
9937
|
}, function(g) {
|
|
9938
9938
|
return c = g, r = g(e), o = g(t), s = g(n), a = r === o ? 0 : 0.5 / (o - r), l = o === s ? 0 : 0.5 / (s - o), i = o < r ? -1 : 1, h;
|
|
@@ -9941,26 +9941,26 @@ function xm() {
|
|
|
9941
9941
|
function XN() {
|
|
9942
9942
|
var e = il(xm()(Un));
|
|
9943
9943
|
return e.copy = function() {
|
|
9944
|
-
return
|
|
9945
|
-
},
|
|
9944
|
+
return Rs(e, XN());
|
|
9945
|
+
}, Ts.apply(e, arguments);
|
|
9946
9946
|
}
|
|
9947
9947
|
function KN() {
|
|
9948
9948
|
var e = Px(xm()).domain([0.1, 1, 10]);
|
|
9949
9949
|
return e.copy = function() {
|
|
9950
|
-
return
|
|
9951
|
-
},
|
|
9950
|
+
return Rs(e, KN()).base(e.base());
|
|
9951
|
+
}, Ts.apply(e, arguments);
|
|
9952
9952
|
}
|
|
9953
9953
|
function ZN() {
|
|
9954
9954
|
var e = zx(xm());
|
|
9955
9955
|
return e.copy = function() {
|
|
9956
|
-
return
|
|
9957
|
-
},
|
|
9956
|
+
return Rs(e, ZN()).constant(e.constant());
|
|
9957
|
+
}, Ts.apply(e, arguments);
|
|
9958
9958
|
}
|
|
9959
9959
|
function Hx() {
|
|
9960
9960
|
var e = Bx(xm());
|
|
9961
9961
|
return e.copy = function() {
|
|
9962
|
-
return
|
|
9963
|
-
},
|
|
9962
|
+
return Rs(e, Hx()).exponent(e.exponent());
|
|
9963
|
+
}, Ts.apply(e, arguments);
|
|
9964
9964
|
}
|
|
9965
9965
|
function NW() {
|
|
9966
9966
|
return Hx.apply(null, arguments).exponent(0.5);
|
|
@@ -9974,7 +9974,7 @@ function Gx(e, t, n) {
|
|
|
9974
9974
|
const i = e - t + n * 2;
|
|
9975
9975
|
return e ? i > 0 ? i : 1 : 0;
|
|
9976
9976
|
}
|
|
9977
|
-
const jW = "identity", ou = "linear", Mo = "log", rd = "pow", od = "sqrt", wm = "symlog",
|
|
9977
|
+
const jW = "identity", ou = "linear", Mo = "log", rd = "pow", od = "sqrt", wm = "symlog", Ma = "time", Ta = "utc", Nr = "sequential", Gu = "diverging", su = "quantile", Em = "quantize", km = "threshold", Vx = "ordinal", gb = "point", JN = "band", Yx = "bin-ordinal", Lt = "continuous", sd = "discrete", ad = "discretizing", Ri = "interpolating", Xx = "temporal";
|
|
9978
9978
|
function qW(e) {
|
|
9979
9979
|
return function(t) {
|
|
9980
9980
|
let n = t[0], i = t[1], r;
|
|
@@ -10087,8 +10087,8 @@ Ue(Mo, jN, [Lt, Mo]);
|
|
|
10087
10087
|
Ue(rd, Ux, Lt);
|
|
10088
10088
|
Ue(od, CW, Lt);
|
|
10089
10089
|
Ue(wm, qN, Lt);
|
|
10090
|
-
Ue(
|
|
10091
|
-
Ue(
|
|
10090
|
+
Ue(Ma, AW, [Lt, Xx]);
|
|
10091
|
+
Ue(Ta, MW, [Lt, Xx]);
|
|
10092
10092
|
Ue(Nr, qx, [Lt, Ri]);
|
|
10093
10093
|
Ue(`${Nr}-${ou}`, qx, [Lt, Ri]);
|
|
10094
10094
|
Ue(`${Nr}-${Mo}`, VN, [Lt, Ri, Mo]);
|
|
@@ -10252,7 +10252,7 @@ function Qx(e, t) {
|
|
|
10252
10252
|
const Ph = "symbol", tH = "discrete", nH = "gradient", iH = (e) => z(e) ? e.map((t) => String(t)) : String(e), rH = (e, t) => e[1] - t[1], oH = (e, t) => t[1] - e[1];
|
|
10253
10253
|
function e2(e, t, n) {
|
|
10254
10254
|
let i;
|
|
10255
|
-
return ze(t) && (e.bins && (t = Math.max(t, e.bins.length)), n != null && (t = Math.min(t, Math.floor(Zf(e.domain()) / n || 1) + 1))), Z(t) && (i = t.step, t = t.interval), J(t) && (t = e.type ===
|
|
10255
|
+
return ze(t) && (e.bins && (t = Math.max(t, e.bins.length)), n != null && (t = Math.min(t, Math.floor(Zf(e.domain()) / n || 1) + 1))), Z(t) && (i = t.step, t = t.interval), J(t) && (t = e.type === Ma ? ju(t) : e.type == Ta ? qu(t) : L("Only time and utc scales accept interval strings."), i && (t = t.every(i))), t;
|
|
10256
10256
|
}
|
|
10257
10257
|
function d6(e, t, n) {
|
|
10258
10258
|
let i = e.range(), r = i[0], o = Re(i), s = rH;
|
|
@@ -10270,9 +10270,9 @@ function t2(e, t) {
|
|
|
10270
10270
|
function h6(e, t, n, i, r, o) {
|
|
10271
10271
|
const s = t.type;
|
|
10272
10272
|
let a = iH;
|
|
10273
|
-
if (s ===
|
|
10273
|
+
if (s === Ma || r === Ma)
|
|
10274
10274
|
a = e.timeFormat(i);
|
|
10275
|
-
else if (s ===
|
|
10275
|
+
else if (s === Ta || r === Ta)
|
|
10276
10276
|
a = e.utcFormat(i);
|
|
10277
10277
|
else if (r6(s)) {
|
|
10278
10278
|
const l = e.formatFloat(i);
|
|
@@ -10323,7 +10323,7 @@ function lH(e) {
|
|
|
10323
10323
|
}
|
|
10324
10324
|
const uH = (e) => yb[e.type] || e.bins;
|
|
10325
10325
|
function y6(e, t, n, i, r, o, s) {
|
|
10326
|
-
const a = g6[t.type] && o !==
|
|
10326
|
+
const a = g6[t.type] && o !== Ma && o !== Ta ? sH(e, t, r) : h6(e, t, n, r, o, s);
|
|
10327
10327
|
return i === Ph && uH(t) ? cH(a) : i === tH ? fH(a) : dH(a);
|
|
10328
10328
|
}
|
|
10329
10329
|
const cH = (e) => (t, n, i) => {
|
|
@@ -10341,7 +10341,7 @@ function hH(e) {
|
|
|
10341
10341
|
}
|
|
10342
10342
|
function pH(e, t, n, i) {
|
|
10343
10343
|
const r = i || t.type;
|
|
10344
|
-
return J(n) && KW(r) && (n = n.replace(/%a/g, "%A").replace(/%b/g, "%B")), !n && r ===
|
|
10344
|
+
return J(n) && KW(r) && (n = n.replace(/%a/g, "%A").replace(/%b/g, "%B")), !n && r === Ma ? e.timeFormat("%A, %d %B %Y, %X") : !n && r === Ta ? e.utcFormat("%A, %d %B %Y, %X UTC") : y6(e, t, 5, null, n, i, !0);
|
|
10345
10345
|
}
|
|
10346
10346
|
function b6(e, t, n) {
|
|
10347
10347
|
n = n || {};
|
|
@@ -10501,7 +10501,7 @@ function xH(e, t, n) {
|
|
|
10501
10501
|
}
|
|
10502
10502
|
return i;
|
|
10503
10503
|
}
|
|
10504
|
-
const vs = Math.PI / 180, wH = 1e-14,
|
|
10504
|
+
const vs = Math.PI / 180, wH = 1e-14, la = Math.PI / 2, Cr = Math.PI * 2, vl = Math.sqrt(3) / 2;
|
|
10505
10505
|
var v1 = {}, x1 = {}, w6 = [].join;
|
|
10506
10506
|
function EH(e, t, n, i, r, o, s, a, l) {
|
|
10507
10507
|
const u = w6.call(arguments);
|
|
@@ -10520,7 +10520,7 @@ function EH(e, t, n, i, r, o, s, a, l) {
|
|
|
10520
10520
|
const M = 0.5 * (v + E) - A * (x - w), F = 0.5 * (w + x) + A * (E - v), R = Math.atan2(w - F, v - M);
|
|
10521
10521
|
let $ = Math.atan2(x - F, E - M) - R;
|
|
10522
10522
|
$ < 0 && o === 1 ? $ += Cr : $ > 0 && o === 0 && ($ -= Cr);
|
|
10523
|
-
const N = Math.ceil(Math.abs($ / (
|
|
10523
|
+
const N = Math.ceil(Math.abs($ / (la + 1e-3))), D = [];
|
|
10524
10524
|
for (let B = 0; B < N; ++B) {
|
|
10525
10525
|
const I = R + B * $ / N, V = R + (B + 1) * $ / N;
|
|
10526
10526
|
D[B] = [M, F, I, V, n, i, f, d];
|
|
@@ -11001,10 +11001,10 @@ function lG(e, t) {
|
|
|
11001
11001
|
return e.strokeJoin && e.strokeJoin !== "miter" ? 0 : t;
|
|
11002
11002
|
}
|
|
11003
11003
|
const uG = Cr - 1e-8;
|
|
11004
|
-
let Mm, zh, Bh,
|
|
11005
|
-
const es = (e, t) => Mm.add(e, t), jh = (e, t) => es(zh = e, Bh = t), pS = (e) => es(e, Mm.y1), gS = (e) => es(Mm.x1, e),
|
|
11004
|
+
let Mm, zh, Bh, pa, bb, Uh, _b, vb;
|
|
11005
|
+
const es = (e, t) => Mm.add(e, t), jh = (e, t) => es(zh = e, Bh = t), pS = (e) => es(e, Mm.y1), gS = (e) => es(Mm.x1, e), ua = (e, t) => bb * e + _b * t, ca = (e, t) => Uh * e + vb * t, E1 = (e, t) => es(ua(e, t), ca(e, t)), k1 = (e, t) => jh(ua(e, t), ca(e, t));
|
|
11006
11006
|
function fd(e, t) {
|
|
11007
|
-
return Mm = e, t ? (
|
|
11007
|
+
return Mm = e, t ? (pa = t * vs, bb = vb = Math.cos(pa), Uh = Math.sin(pa), _b = -Uh) : (bb = vb = 1, pa = Uh = _b = 0), cG;
|
|
11008
11008
|
}
|
|
11009
11009
|
const cG = {
|
|
11010
11010
|
beginPath() {
|
|
@@ -11014,27 +11014,27 @@ const cG = {
|
|
|
11014
11014
|
moveTo: k1,
|
|
11015
11015
|
lineTo: k1,
|
|
11016
11016
|
rect(e, t, n, i) {
|
|
11017
|
-
|
|
11017
|
+
pa ? (E1(e + n, t), E1(e + n, t + i), E1(e, t + i), k1(e, t)) : (es(e + n, t + i), jh(e, t));
|
|
11018
11018
|
},
|
|
11019
11019
|
quadraticCurveTo(e, t, n, i) {
|
|
11020
|
-
const r =
|
|
11020
|
+
const r = ua(e, t), o = ca(e, t), s = ua(n, i), a = ca(n, i);
|
|
11021
11021
|
mS(zh, r, s, pS), mS(Bh, o, a, gS), jh(s, a);
|
|
11022
11022
|
},
|
|
11023
11023
|
bezierCurveTo(e, t, n, i, r, o) {
|
|
11024
|
-
const s =
|
|
11024
|
+
const s = ua(e, t), a = ca(e, t), l = ua(n, i), u = ca(n, i), c = ua(r, o), f = ca(r, o);
|
|
11025
11025
|
yS(zh, s, l, c, pS), yS(Bh, a, u, f, gS), jh(c, f);
|
|
11026
11026
|
},
|
|
11027
11027
|
arc(e, t, n, i, r, o) {
|
|
11028
|
-
if (i +=
|
|
11028
|
+
if (i += pa, r += pa, zh = n * Math.cos(r) + e, Bh = n * Math.sin(r) + t, Math.abs(r - i) > uG)
|
|
11029
11029
|
es(e - n, t - n), es(e + n, t + n);
|
|
11030
11030
|
else {
|
|
11031
11031
|
const s = (u) => es(n * Math.cos(u) + e, n * Math.sin(u) + t);
|
|
11032
11032
|
let a, l;
|
|
11033
11033
|
if (s(i), s(r), r !== i)
|
|
11034
11034
|
if (i = i % Cr, i < 0 && (i += Cr), r = r % Cr, r < 0 && (r += Cr), r < i && (o = !o, a = i, i = r, r = a), o)
|
|
11035
|
-
for (r -= Cr, a = i - i %
|
|
11035
|
+
for (r -= Cr, a = i - i % la, l = 0; l < 4 && a > r; ++l, a -= la) s(a);
|
|
11036
11036
|
else
|
|
11037
|
-
for (a = i - i %
|
|
11037
|
+
for (a = i - i % la + la, l = 0; l < 4 && a < r; ++l, a = a + la) s(a);
|
|
11038
11038
|
}
|
|
11039
11039
|
}
|
|
11040
11040
|
};
|
|
@@ -11209,7 +11209,7 @@ function dd(e, t) {
|
|
|
11209
11209
|
function c2(e) {
|
|
11210
11210
|
return Tm(dd(e));
|
|
11211
11211
|
}
|
|
11212
|
-
function
|
|
11212
|
+
function va(e, t) {
|
|
11213
11213
|
return "translate(" + e + "," + t + ")";
|
|
11214
11214
|
}
|
|
11215
11215
|
function f2(e) {
|
|
@@ -11219,13 +11219,13 @@ function gG(e, t) {
|
|
|
11219
11219
|
return "scale(" + e + "," + t + ")";
|
|
11220
11220
|
}
|
|
11221
11221
|
function F6(e) {
|
|
11222
|
-
return
|
|
11222
|
+
return va(e.x || 0, e.y || 0);
|
|
11223
11223
|
}
|
|
11224
11224
|
function mG(e) {
|
|
11225
|
-
return
|
|
11225
|
+
return va(e.x || 0, e.y || 0) + (e.angle ? " " + f2(e.angle) : "");
|
|
11226
11226
|
}
|
|
11227
11227
|
function yG(e) {
|
|
11228
|
-
return
|
|
11228
|
+
return va(e.x || 0, e.y || 0) + (e.angle ? " " + f2(e.angle) : "") + (e.scaleX || e.scaleY ? " " + gG(e.scaleX || 1, e.scaleY || 1) : "");
|
|
11229
11229
|
}
|
|
11230
11230
|
function d2(e, t, n) {
|
|
11231
11231
|
function i(s, a) {
|
|
@@ -11407,7 +11407,7 @@ function Fm(e, t) {
|
|
|
11407
11407
|
}
|
|
11408
11408
|
function LG(e, t, n) {
|
|
11409
11409
|
const i = p2(t, n), r = g2(t, i), o = m2(t, i), s = (t.x || 0) - Nm(t.align, r), a = (t.y || 0) - Fm(t.baseline, o), l = !i.src && i.toDataURL ? i.toDataURL() : i.src || "";
|
|
11410
|
-
e("href", l, Mf["xmlns:xlink"], "xlink:href"), e("transform",
|
|
11410
|
+
e("href", l, Mf["xmlns:xlink"], "xlink:href"), e("transform", va(s, a)), e("width", r), e("height", o), e("preserveAspectRatio", t.aspect === !1 ? "none" : "xMidYMid");
|
|
11411
11411
|
}
|
|
11412
11412
|
function IG(e, t) {
|
|
11413
11413
|
const n = t.image, i = g2(t, n), r = m2(t, n), o = (t.x || 0) - Nm(t.align, i), s = (t.y || 0) - Fm(t.baseline, r);
|
|
@@ -11600,11 +11600,11 @@ const iV = {
|
|
|
11600
11600
|
}, of = new St();
|
|
11601
11601
|
function Dm(e) {
|
|
11602
11602
|
var t = e.x || 0, n = e.y || 0, i = e.radius || 0, r;
|
|
11603
|
-
return i && (r = (e.theta || 0) -
|
|
11603
|
+
return i && (r = (e.theta || 0) - la, t += i * Math.cos(r), n += i * Math.sin(r)), of.x1 = t, of.y1 = n, of;
|
|
11604
11604
|
}
|
|
11605
11605
|
function rV(e, t) {
|
|
11606
11606
|
var n = t.dx || 0, i = (t.dy || 0) + _2(t), r = Dm(t), o = r.x1, s = r.y1, a = t.angle || 0, l;
|
|
11607
|
-
e("text-anchor", iV[t.align] || "start"), a ? (l =
|
|
11607
|
+
e("text-anchor", iV[t.align] || "start"), a ? (l = va(o, s) + " " + f2(a), (n || i) && (l += " " + va(n, i))) : l = va(o + n, s + i), e("transform", l);
|
|
11608
11608
|
}
|
|
11609
11609
|
function v2(e, t, n) {
|
|
11610
11610
|
var i = oi.height(t), r = t.align, o = Dm(t), s = o.x1, a = o.y1, l = t.dx || 0, u = (t.dy || 0) + _2(t) - Math.round(0.8 * i), c = hd(t), f;
|
|
@@ -13033,25 +13033,25 @@ const dF = "canvas", hF = "hybrid", pF = "png", gF = "svg", mF = "none", is = {
|
|
|
13033
13033
|
SVG: gF,
|
|
13034
13034
|
Hybrid: hF,
|
|
13035
13035
|
None: mF
|
|
13036
|
-
},
|
|
13037
|
-
|
|
13036
|
+
}, Na = {};
|
|
13037
|
+
Na[dF] = Na[pF] = {
|
|
13038
13038
|
renderer: Pp,
|
|
13039
13039
|
headless: Pp,
|
|
13040
13040
|
handler: md
|
|
13041
13041
|
};
|
|
13042
|
-
|
|
13042
|
+
Na[gF] = {
|
|
13043
13043
|
renderer: A2,
|
|
13044
13044
|
headless: cF,
|
|
13045
13045
|
handler: J6
|
|
13046
13046
|
};
|
|
13047
|
-
|
|
13047
|
+
Na[hF] = {
|
|
13048
13048
|
renderer: $b,
|
|
13049
13049
|
headless: $b,
|
|
13050
13050
|
handler: fF
|
|
13051
13051
|
};
|
|
13052
|
-
|
|
13052
|
+
Na[mF] = {};
|
|
13053
13053
|
function Lm(e, t) {
|
|
13054
|
-
return e = String(e || "").toLowerCase(), arguments.length > 1 ? (
|
|
13054
|
+
return e = String(e || "").toLowerCase(), arguments.length > 1 ? (Na[e] = t, this) : Na[e];
|
|
13055
13055
|
}
|
|
13056
13056
|
function yF(e, t, n) {
|
|
13057
13057
|
const i = [], r = new St().union(t), o = e.marktype;
|
|
@@ -13973,7 +13973,7 @@ function VY(e) {
|
|
|
13973
13973
|
}
|
|
13974
13974
|
function YY(e) {
|
|
13975
13975
|
const t = e.type;
|
|
13976
|
-
return Zx(t) && t !==
|
|
13976
|
+
return Zx(t) && t !== Ma && t !== Ta && (e.scheme || e.range && e.range.length && e.range.every(J));
|
|
13977
13977
|
}
|
|
13978
13978
|
function XY(e, t, n) {
|
|
13979
13979
|
const i = KY(e, t.domainRaw, n);
|
|
@@ -14021,7 +14021,7 @@ function QY(e, t, n) {
|
|
|
14021
14021
|
}
|
|
14022
14022
|
if (o && o6(i))
|
|
14023
14023
|
return e.interpolator(Cm(Tb(o, t.reverse), t.interpolate, t.interpolateGamma));
|
|
14024
|
-
o && t.interpolate && e.interpolate ? e.interpolate(Jx(t.interpolate, t.interpolateGamma)) : ve(e.round) ? e.round(r) : ve(e.rangeRound) && e.interpolate(r ? nd :
|
|
14024
|
+
o && t.interpolate && e.interpolate ? e.interpolate(Jx(t.interpolate, t.interpolateGamma)) : ve(e.round) ? e.round(r) : ve(e.rangeRound) && e.interpolate(r ? nd : Fs), o && e.range(Tb(o, t.reverse));
|
|
14025
14025
|
}
|
|
14026
14026
|
function eX(e, t, n) {
|
|
14027
14027
|
e !== JN && e !== gb && L("Only band and point scales support rangeStep.");
|
|
@@ -14220,7 +14220,7 @@ function cX(e) {
|
|
|
14220
14220
|
function Vp(e) {
|
|
14221
14221
|
return [Ti(e[1], e[0]), Hn(e[2])];
|
|
14222
14222
|
}
|
|
14223
|
-
function
|
|
14223
|
+
function Fa(e) {
|
|
14224
14224
|
var t = e[0], n = e[1], i = fe(n);
|
|
14225
14225
|
return [i * fe(t), i * le(t), le(n)];
|
|
14226
14226
|
}
|
|
@@ -14240,7 +14240,7 @@ function Yp(e) {
|
|
|
14240
14240
|
var t = Fn(e[0] * e[0] + e[1] * e[1] + e[2] * e[2]);
|
|
14241
14241
|
e[0] /= t, e[1] /= t, e[2] /= t;
|
|
14242
14242
|
}
|
|
14243
|
-
var ct, zn, ht, Qn,
|
|
14243
|
+
var ct, zn, ht, Qn, oa, rR, oR, Wl, lf, Ko, To, uo = {
|
|
14244
14244
|
point: Lb,
|
|
14245
14245
|
lineStart: YS,
|
|
14246
14246
|
lineEnd: XS,
|
|
@@ -14258,15 +14258,15 @@ function Lb(e, t) {
|
|
|
14258
14258
|
Ko.push(To = [ct = e, ht = e]), t < zn && (zn = t), t > Qn && (Qn = t);
|
|
14259
14259
|
}
|
|
14260
14260
|
function sR(e, t) {
|
|
14261
|
-
var n =
|
|
14261
|
+
var n = Fa([e * $e, t * $e]);
|
|
14262
14262
|
if (Wl) {
|
|
14263
14263
|
var i = du(Wl, n), r = [i[1], -i[0], 0], o = du(r, i);
|
|
14264
14264
|
Yp(o), o = Vp(o);
|
|
14265
|
-
var s = e -
|
|
14266
|
-
c ^ (a *
|
|
14265
|
+
var s = e - oa, a = s > 0 ? 1 : -1, l = o[0] * bt * a, u, c = Fe(s) > 180;
|
|
14266
|
+
c ^ (a * oa < l && l < a * e) ? (u = o[1] * bt, u > Qn && (Qn = u)) : (l = (l + 360) % 360 - 180, c ^ (a * oa < l && l < a * e) ? (u = -o[1] * bt, u < zn && (zn = u)) : (t < zn && (zn = t), t > Qn && (Qn = t))), c ? e < oa ? Jn(ct, e) > Jn(ct, ht) && (ht = e) : Jn(e, ht) > Jn(ct, ht) && (ct = e) : ht >= ct ? (e < ct && (ct = e), e > ht && (ht = e)) : e > oa ? Jn(ct, e) > Jn(ct, ht) && (ht = e) : Jn(e, ht) > Jn(ct, ht) && (ct = e);
|
|
14267
14267
|
} else
|
|
14268
14268
|
Ko.push(To = [ct = e, ht = e]);
|
|
14269
|
-
t < zn && (zn = t), t > Qn && (Qn = t), Wl = n,
|
|
14269
|
+
t < zn && (zn = t), t > Qn && (Qn = t), Wl = n, oa = e;
|
|
14270
14270
|
}
|
|
14271
14271
|
function YS() {
|
|
14272
14272
|
uo.point = sR;
|
|
@@ -14276,7 +14276,7 @@ function XS() {
|
|
|
14276
14276
|
}
|
|
14277
14277
|
function aR(e, t) {
|
|
14278
14278
|
if (Wl) {
|
|
14279
|
-
var n = e -
|
|
14279
|
+
var n = e - oa;
|
|
14280
14280
|
lf.add(Fe(n) > 180 ? n + (n > 0 ? 360 : -360) : n);
|
|
14281
14281
|
} else
|
|
14282
14282
|
rR = e, oR = t;
|
|
@@ -14423,7 +14423,7 @@ function wX(e, t, n, i, r, o) {
|
|
|
14423
14423
|
}
|
|
14424
14424
|
}
|
|
14425
14425
|
function n$(e, t) {
|
|
14426
|
-
t =
|
|
14426
|
+
t = Fa(t), t[0] -= e, Yp(t);
|
|
14427
14427
|
var n = eR(-t[1]);
|
|
14428
14428
|
return ((-t[2] < 0 ? -n : n) + Nn - ce) % Nn;
|
|
14429
14429
|
}
|
|
@@ -14511,7 +14511,7 @@ function EX(e, t) {
|
|
|
14511
14511
|
for (var f, d, h = f[d - 1], p = M1(h), g = h[1] / 2 + jp, m = le(g), y = fe(g), b = 0; b < d; ++b, p = v, m = E, y = x, h = _) {
|
|
14512
14512
|
var _ = f[b], v = M1(_), w = _[1] / 2 + jp, E = le(w), x = fe(w), C = v - p, S = C >= 0 ? 1 : -1, A = S * C, M = A > Ae, F = m * E;
|
|
14513
14513
|
if (l.add(Ti(F * S * le(A), y * x + F * fe(A))), s += M ? C + S * Nn : C, M ^ p >= n ^ v >= n) {
|
|
14514
|
-
var R = du(
|
|
14514
|
+
var R = du(Fa(h), Fa(_));
|
|
14515
14515
|
Yp(R);
|
|
14516
14516
|
var T = du(o, R);
|
|
14517
14517
|
Yp(T);
|
|
@@ -14655,7 +14655,7 @@ function MX(e) {
|
|
|
14655
14655
|
};
|
|
14656
14656
|
}
|
|
14657
14657
|
function l(c, f, d) {
|
|
14658
|
-
var h =
|
|
14658
|
+
var h = Fa(c), p = Fa(f), g = [1, 0, 0], m = du(h, p), y = ah(m, m), b = m[0], _ = y - b * b;
|
|
14659
14659
|
if (!_) return !d && c;
|
|
14660
14660
|
var v = t * y / _, w = -t * b / _, E = du(g, m), x = lh(g, v), C = lh(m, w);
|
|
14661
14661
|
A1(x, C);
|
|
@@ -14888,35 +14888,35 @@ function OX(e, t) {
|
|
|
14888
14888
|
e < hu && (hu = e), e > Nf && (Nf = e), t < ng && (ng = t), t > ig && (ig = t);
|
|
14889
14889
|
}
|
|
14890
14890
|
var Hb = 0, Gb = 0, Gc = 0, og = 0, sg = 0, Il = 0, Vb = 0, Yb = 0, Vc = 0, _R, vR, Sr, $r, _i = {
|
|
14891
|
-
point:
|
|
14891
|
+
point: Ra,
|
|
14892
14892
|
lineStart: a$,
|
|
14893
14893
|
lineEnd: l$,
|
|
14894
14894
|
polygonStart: function() {
|
|
14895
14895
|
_i.lineStart = PX, _i.lineEnd = zX;
|
|
14896
14896
|
},
|
|
14897
14897
|
polygonEnd: function() {
|
|
14898
|
-
_i.point =
|
|
14898
|
+
_i.point = Ra, _i.lineStart = a$, _i.lineEnd = l$;
|
|
14899
14899
|
},
|
|
14900
14900
|
result: function() {
|
|
14901
14901
|
var e = Vc ? [Vb / Vc, Yb / Vc] : Il ? [og / Il, sg / Il] : Gc ? [Hb / Gc, Gb / Gc] : [NaN, NaN];
|
|
14902
14902
|
return Hb = Gb = Gc = og = sg = Il = Vb = Yb = Vc = 0, e;
|
|
14903
14903
|
}
|
|
14904
14904
|
};
|
|
14905
|
-
function
|
|
14905
|
+
function Ra(e, t) {
|
|
14906
14906
|
Hb += e, Gb += t, ++Gc;
|
|
14907
14907
|
}
|
|
14908
14908
|
function a$() {
|
|
14909
14909
|
_i.point = LX;
|
|
14910
14910
|
}
|
|
14911
14911
|
function LX(e, t) {
|
|
14912
|
-
_i.point = IX,
|
|
14912
|
+
_i.point = IX, Ra(Sr = e, $r = t);
|
|
14913
14913
|
}
|
|
14914
14914
|
function IX(e, t) {
|
|
14915
14915
|
var n = e - Sr, i = t - $r, r = Fn(n * n + i * i);
|
|
14916
|
-
og += r * (Sr + e) / 2, sg += r * ($r + t) / 2, Il += r,
|
|
14916
|
+
og += r * (Sr + e) / 2, sg += r * ($r + t) / 2, Il += r, Ra(Sr = e, $r = t);
|
|
14917
14917
|
}
|
|
14918
14918
|
function l$() {
|
|
14919
|
-
_i.point =
|
|
14919
|
+
_i.point = Ra;
|
|
14920
14920
|
}
|
|
14921
14921
|
function PX() {
|
|
14922
14922
|
_i.point = BX;
|
|
@@ -14925,11 +14925,11 @@ function zX() {
|
|
|
14925
14925
|
xR(_R, vR);
|
|
14926
14926
|
}
|
|
14927
14927
|
function BX(e, t) {
|
|
14928
|
-
_i.point = xR,
|
|
14928
|
+
_i.point = xR, Ra(_R = Sr = e, vR = $r = t);
|
|
14929
14929
|
}
|
|
14930
14930
|
function xR(e, t) {
|
|
14931
14931
|
var n = e - Sr, i = t - $r, r = Fn(n * n + i * i);
|
|
14932
|
-
og += r * (Sr + e) / 2, sg += r * ($r + t) / 2, Il += r, r = $r * e - Sr * t, Vb += r * (Sr + e), Yb += r * ($r + t), Vc += r * 3,
|
|
14932
|
+
og += r * (Sr + e) / 2, sg += r * ($r + t) / 2, Il += r, r = $r * e - Sr * t, Vb += r * (Sr + e), Yb += r * ($r + t), Vc += r * 3, Ra(Sr = e, $r = t);
|
|
14933
14933
|
}
|
|
14934
14934
|
function wR(e) {
|
|
14935
14935
|
this._context = e;
|
|
@@ -15183,7 +15183,7 @@ function HX(e, t) {
|
|
|
15183
15183
|
f = NaN, m.point = _, i.lineStart();
|
|
15184
15184
|
}
|
|
15185
15185
|
function _(C, S) {
|
|
15186
|
-
var A =
|
|
15186
|
+
var A = Fa([C, S]), M = e(C, S);
|
|
15187
15187
|
n(f, d, c, h, p, g, f = M[0], d = M[1], c = C, h = A[0], p = A[1], g = A[2], h$, i), i.point(f, d);
|
|
15188
15188
|
}
|
|
15189
15189
|
function v() {
|
|
@@ -15876,7 +15876,7 @@ X(Y2, O, {
|
|
|
15876
15876
|
});
|
|
15877
15877
|
function NK(e, t, n) {
|
|
15878
15878
|
const i = qR(n.levels || 10, n.nice, n.zero !== !1);
|
|
15879
|
-
return n.resolve !== "shared" ? i : i(e.map((r) =>
|
|
15879
|
+
return n.resolve !== "shared" ? i : i(e.map((r) => ya(t(r).values)));
|
|
15880
15880
|
}
|
|
15881
15881
|
function FK(e, t, n, i) {
|
|
15882
15882
|
let r = i.scale || t.scale, o = i.translate || t.translate;
|
|
@@ -16342,11 +16342,11 @@ X(iw, O, {
|
|
|
16342
16342
|
$x: 0,
|
|
16343
16343
|
$y: 0,
|
|
16344
16344
|
$value: 0,
|
|
16345
|
-
$max: i ?
|
|
16345
|
+
$max: i ? ya(n.map((u) => ya(r(u).values))) : 0
|
|
16346
16346
|
};
|
|
16347
16347
|
return n.forEach((u) => {
|
|
16348
16348
|
const c = r(u), f = xe({}, u, l);
|
|
16349
|
-
i || (f.$max =
|
|
16349
|
+
i || (f.$max = ya(c.values || [])), u[a] = BK(c, f, s.dep ? s : bn(s(f)), o.dep ? o : bn(o(f)));
|
|
16350
16350
|
}), t.reflow(!0).modifies(a);
|
|
16351
16351
|
}
|
|
16352
16352
|
});
|
|
@@ -16794,14 +16794,14 @@ function w$(e, t, n) {
|
|
|
16794
16794
|
}
|
|
16795
16795
|
return n != null && e.push({ name: t, value: n }), e;
|
|
16796
16796
|
}
|
|
16797
|
-
var pu = 0, Kc = 0, xc = 0, ZR = 1e3, hg, Zc, pg = 0,
|
|
16797
|
+
var pu = 0, Kc = 0, xc = 0, ZR = 1e3, hg, Zc, pg = 0, Da = 0, Um = 0, Rf = typeof performance == "object" && performance.now ? performance : Date, JR = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
|
|
16798
16798
|
setTimeout(e, 17);
|
|
16799
16799
|
};
|
|
16800
16800
|
function sw() {
|
|
16801
|
-
return
|
|
16801
|
+
return Da || (JR(yZ), Da = Rf.now() + Um);
|
|
16802
16802
|
}
|
|
16803
16803
|
function yZ() {
|
|
16804
|
-
|
|
16804
|
+
Da = 0;
|
|
16805
16805
|
}
|
|
16806
16806
|
function gg() {
|
|
16807
16807
|
this._call = this._time = this._next = null;
|
|
@@ -16823,15 +16823,15 @@ function QR(e, t, n) {
|
|
|
16823
16823
|
function bZ() {
|
|
16824
16824
|
sw(), ++pu;
|
|
16825
16825
|
for (var e = hg, t; e; )
|
|
16826
|
-
(t =
|
|
16826
|
+
(t = Da - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
|
|
16827
16827
|
--pu;
|
|
16828
16828
|
}
|
|
16829
16829
|
function E$() {
|
|
16830
|
-
|
|
16830
|
+
Da = (pg = Rf.now()) + Um, pu = Kc = 0;
|
|
16831
16831
|
try {
|
|
16832
16832
|
bZ();
|
|
16833
16833
|
} finally {
|
|
16834
|
-
pu = 0, vZ(),
|
|
16834
|
+
pu = 0, vZ(), Da = 0;
|
|
16835
16835
|
}
|
|
16836
16836
|
}
|
|
16837
16837
|
function _Z() {
|
|
@@ -16846,7 +16846,7 @@ function vZ() {
|
|
|
16846
16846
|
function t_(e) {
|
|
16847
16847
|
if (!pu) {
|
|
16848
16848
|
Kc && (Kc = clearTimeout(Kc));
|
|
16849
|
-
var t = e -
|
|
16849
|
+
var t = e - Da;
|
|
16850
16850
|
t > 24 ? (e < 1 / 0 && (Kc = setTimeout(E$, e - Rf.now() - Um)), xc && (xc = clearInterval(xc))) : (xc || (pg = Rf.now(), xc = setInterval(_Z, ZR)), pu = 1, JR(E$));
|
|
16851
16851
|
}
|
|
16852
16852
|
}
|
|
@@ -17441,7 +17441,7 @@ function iD(e) {
|
|
|
17441
17441
|
if (typeof e != "function") throw new Error();
|
|
17442
17442
|
return e;
|
|
17443
17443
|
}
|
|
17444
|
-
function
|
|
17444
|
+
function fa() {
|
|
17445
17445
|
return 0;
|
|
17446
17446
|
}
|
|
17447
17447
|
function Nl(e) {
|
|
@@ -17577,10 +17577,10 @@ function EJ(e) {
|
|
|
17577
17577
|
return Math.sqrt(e.value);
|
|
17578
17578
|
}
|
|
17579
17579
|
function kJ() {
|
|
17580
|
-
var e = null, t = 1, n = 1, i =
|
|
17580
|
+
var e = null, t = 1, n = 1, i = fa;
|
|
17581
17581
|
function r(o) {
|
|
17582
17582
|
const s = gJ();
|
|
17583
|
-
return o.x = t / 2, o.y = n / 2, e ? o.eachBefore(T$(e)).eachAfter(D1(i, 0.5, s)).eachBefore(N$(1)) : o.eachBefore(T$(EJ)).eachAfter(D1(
|
|
17583
|
+
return o.x = t / 2, o.y = n / 2, e ? o.eachBefore(T$(e)).eachAfter(D1(i, 0.5, s)).eachBefore(N$(1)) : o.eachBefore(T$(EJ)).eachAfter(D1(fa, 1, s)).eachAfter(D1(i, o.r / Math.min(t, n), s)).eachBefore(N$(Math.min(t, n) / (2 * o.r))), o;
|
|
17584
17584
|
}
|
|
17585
17585
|
return r.radius = function(o) {
|
|
17586
17586
|
return arguments.length ? (e = Xh(o), r) : e;
|
|
@@ -17818,7 +17818,7 @@ const uD = (function e(t) {
|
|
|
17818
17818
|
}, n;
|
|
17819
17819
|
})(aD);
|
|
17820
17820
|
function LJ() {
|
|
17821
|
-
var e = uD, t = !1, n = 1, i = 1, r = [0], o =
|
|
17821
|
+
var e = uD, t = !1, n = 1, i = 1, r = [0], o = fa, s = fa, a = fa, l = fa, u = fa;
|
|
17822
17822
|
function c(d) {
|
|
17823
17823
|
return d.x0 = d.y0 = 0, d.x1 = n, d.y1 = i, d.eachBefore(f), r = [0], t && d.eachBefore(sD), d;
|
|
17824
17824
|
}
|
|
@@ -19024,7 +19024,7 @@ function SQ(e) {
|
|
|
19024
19024
|
return e[1];
|
|
19025
19025
|
}
|
|
19026
19026
|
const j$ = 1e-6;
|
|
19027
|
-
class
|
|
19027
|
+
class ga {
|
|
19028
19028
|
constructor() {
|
|
19029
19029
|
this._x0 = this._y0 = // start of current subpath
|
|
19030
19030
|
this._x1 = this._y1 = null, this._ = "";
|
|
@@ -19102,7 +19102,7 @@ let $Q = class {
|
|
|
19102
19102
|
l = n[g], u = c, f = d, h = p, c = l * 4, d = t[2 * l], p = t[2 * l + 1], r[u + 2] = r[c] = h - p, r[u + 3] = r[c + 1] = d - f;
|
|
19103
19103
|
}
|
|
19104
19104
|
render(t) {
|
|
19105
|
-
const n = t == null ? t = new
|
|
19105
|
+
const n = t == null ? t = new ga() : void 0, { delaunay: { halfedges: i, inedges: r, hull: o }, circumcenters: s, vectors: a } = this;
|
|
19106
19106
|
if (o.length <= 1) return null;
|
|
19107
19107
|
for (let c = 0, f = i.length; c < f; ++c) {
|
|
19108
19108
|
const d = i[c];
|
|
@@ -19119,11 +19119,11 @@ let $Q = class {
|
|
|
19119
19119
|
return n && n.value();
|
|
19120
19120
|
}
|
|
19121
19121
|
renderBounds(t) {
|
|
19122
|
-
const n = t == null ? t = new
|
|
19122
|
+
const n = t == null ? t = new ga() : void 0;
|
|
19123
19123
|
return t.rect(this.xmin, this.ymin, this.xmax - this.xmin, this.ymax - this.ymin), n && n.value();
|
|
19124
19124
|
}
|
|
19125
19125
|
renderCell(t, n) {
|
|
19126
|
-
const i = n == null ? n = new
|
|
19126
|
+
const i = n == null ? n = new ga() : void 0, r = this._clip(t);
|
|
19127
19127
|
if (r === null || !r.length) return;
|
|
19128
19128
|
n.moveTo(r[0], r[1]);
|
|
19129
19129
|
let o = r.length;
|
|
@@ -19397,7 +19397,7 @@ class _w {
|
|
|
19397
19397
|
return c;
|
|
19398
19398
|
}
|
|
19399
19399
|
render(t) {
|
|
19400
|
-
const n = t == null ? t = new
|
|
19400
|
+
const n = t == null ? t = new ga() : void 0, { points: i, halfedges: r, triangles: o } = this;
|
|
19401
19401
|
for (let s = 0, a = r.length; s < a; ++s) {
|
|
19402
19402
|
const l = r[s];
|
|
19403
19403
|
if (l < s) continue;
|
|
@@ -19408,7 +19408,7 @@ class _w {
|
|
|
19408
19408
|
}
|
|
19409
19409
|
renderPoints(t, n) {
|
|
19410
19410
|
n === void 0 && (!t || typeof t.moveTo != "function") && (n = t, t = null), n = n == null ? 2 : +n;
|
|
19411
|
-
const i = t == null ? t = new
|
|
19411
|
+
const i = t == null ? t = new ga() : void 0, { points: r } = this;
|
|
19412
19412
|
for (let o = 0, s = r.length; o < s; o += 2) {
|
|
19413
19413
|
const a = r[o], l = r[o + 1];
|
|
19414
19414
|
t.moveTo(a + n, l), t.arc(a, l, n, 0, AQ);
|
|
@@ -19416,7 +19416,7 @@ class _w {
|
|
|
19416
19416
|
return i && i.value();
|
|
19417
19417
|
}
|
|
19418
19418
|
renderHull(t) {
|
|
19419
|
-
const n = t == null ? t = new
|
|
19419
|
+
const n = t == null ? t = new ga() : void 0, { hull: i, points: r } = this, o = i[0] * 2, s = i.length;
|
|
19420
19420
|
t.moveTo(r[o], r[o + 1]);
|
|
19421
19421
|
for (let a = 1; a < s; ++a) {
|
|
19422
19422
|
const l = 2 * i[a];
|
|
@@ -19429,7 +19429,7 @@ class _w {
|
|
|
19429
19429
|
return this.renderHull(t), t.value();
|
|
19430
19430
|
}
|
|
19431
19431
|
renderTriangle(t, n) {
|
|
19432
|
-
const i = n == null ? n = new
|
|
19432
|
+
const i = n == null ? n = new ga() : void 0, { points: r, triangles: o } = this, s = o[t *= 3] * 2, a = o[t + 1] * 2, l = o[t + 2] * 2;
|
|
19433
19433
|
return n.moveTo(r[s], r[s + 1]), n.lineTo(r[a], r[a + 1]), n.lineTo(r[l], r[l + 1]), n.closePath(), i && i.value();
|
|
19434
19434
|
}
|
|
19435
19435
|
*trianglePolygons() {
|
|
@@ -19582,21 +19582,21 @@ function zQ() {
|
|
|
19582
19582
|
}, f.size = function(p) {
|
|
19583
19583
|
return arguments.length ? (e = [+p[0], +p[1]], f) : e;
|
|
19584
19584
|
}, f.font = function(p) {
|
|
19585
|
-
return arguments.length ? (n =
|
|
19585
|
+
return arguments.length ? (n = Vs(p), f) : n;
|
|
19586
19586
|
}, f.fontStyle = function(p) {
|
|
19587
|
-
return arguments.length ? (r =
|
|
19587
|
+
return arguments.length ? (r = Vs(p), f) : r;
|
|
19588
19588
|
}, f.fontWeight = function(p) {
|
|
19589
|
-
return arguments.length ? (o =
|
|
19589
|
+
return arguments.length ? (o = Vs(p), f) : o;
|
|
19590
19590
|
}, f.rotate = function(p) {
|
|
19591
|
-
return arguments.length ? (s =
|
|
19591
|
+
return arguments.length ? (s = Vs(p), f) : s;
|
|
19592
19592
|
}, f.text = function(p) {
|
|
19593
|
-
return arguments.length ? (t =
|
|
19593
|
+
return arguments.length ? (t = Vs(p), f) : t;
|
|
19594
19594
|
}, f.spiral = function(p) {
|
|
19595
19595
|
return arguments.length ? (l = GQ[p] || p, f) : l;
|
|
19596
19596
|
}, f.fontSize = function(p) {
|
|
19597
|
-
return arguments.length ? (i =
|
|
19597
|
+
return arguments.length ? (i = Vs(p), f) : i;
|
|
19598
19598
|
}, f.padding = function(p) {
|
|
19599
|
-
return arguments.length ? (a =
|
|
19599
|
+
return arguments.length ? (a = Vs(p), f) : a;
|
|
19600
19600
|
}, f.random = function(p) {
|
|
19601
19601
|
return arguments.length ? (c = p, f) : c;
|
|
19602
19602
|
}, f;
|
|
@@ -19680,7 +19680,7 @@ function HQ(e) {
|
|
|
19680
19680
|
for (var t = [], n = -1; ++n < e; ) t[n] = 0;
|
|
19681
19681
|
return t;
|
|
19682
19682
|
}
|
|
19683
|
-
function
|
|
19683
|
+
function Vs(e) {
|
|
19684
19684
|
return typeof e == "function" ? e : function() {
|
|
19685
19685
|
return e;
|
|
19686
19686
|
};
|
|
@@ -20071,7 +20071,7 @@ const tee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
20071
20071
|
__proto__: null,
|
|
20072
20072
|
crossfilter: ww,
|
|
20073
20073
|
resolvefilter: Ew
|
|
20074
|
-
}, Symbol.toStringTag, { value: "Module" })), nee = "RawCode",
|
|
20074
|
+
}, Symbol.toStringTag, { value: "Module" })), nee = "RawCode", Oa = "Literal", iee = "Property", ree = "Identifier", oee = "ArrayExpression", see = "BinaryExpression", pD = "CallExpression", aee = "ConditionalExpression", lee = "LogicalExpression", uee = "MemberExpression", cee = "ObjectExpression", fee = "UnaryExpression";
|
|
20075
20075
|
function ar(e) {
|
|
20076
20076
|
this.type = e;
|
|
20077
20077
|
}
|
|
@@ -20101,18 +20101,18 @@ function dee(e) {
|
|
|
20101
20101
|
case fee:
|
|
20102
20102
|
return [e.argument];
|
|
20103
20103
|
case ree:
|
|
20104
|
-
case
|
|
20104
|
+
case Oa:
|
|
20105
20105
|
case nee:
|
|
20106
20106
|
default:
|
|
20107
20107
|
return [];
|
|
20108
20108
|
}
|
|
20109
20109
|
}
|
|
20110
|
-
var Xr, ie, P, gn, Xe, qm = 1, xd = 2,
|
|
20110
|
+
var Xr, ie, P, gn, Xe, qm = 1, xd = 2, La = 3, Ds = 4, Wm = 5, ol = 6, Pn = 7, wd = 8, hee = 9;
|
|
20111
20111
|
Xr = {};
|
|
20112
20112
|
Xr[qm] = "Boolean";
|
|
20113
20113
|
Xr[xd] = "<end>";
|
|
20114
|
-
Xr[
|
|
20115
|
-
Xr[
|
|
20114
|
+
Xr[La] = "Identifier";
|
|
20115
|
+
Xr[Ds] = "Keyword";
|
|
20116
20116
|
Xr[Wm] = "Null";
|
|
20117
20117
|
Xr[ol] = "Numeric";
|
|
20118
20118
|
Xr[Pn] = "Punctuator";
|
|
@@ -20238,7 +20238,7 @@ function Oee() {
|
|
|
20238
20238
|
}
|
|
20239
20239
|
function Lee() {
|
|
20240
20240
|
var e, t, n;
|
|
20241
|
-
return e = P, t = ie.charCodeAt(P) === 92 ? bD() : Oee(), t.length === 1 ? n =
|
|
20241
|
+
return e = P, t = ie.charCodeAt(P) === 92 ? bD() : Oee(), t.length === 1 ? n = La : Ree.hasOwnProperty(t) ? n = Ds : t === "null" ? n = Wm : t === "true" || t === "false" ? n = qm : n = La, {
|
|
20242
20242
|
type: n,
|
|
20243
20243
|
value: t,
|
|
20244
20244
|
start: e,
|
|
@@ -20513,7 +20513,7 @@ function qee() {
|
|
|
20513
20513
|
};
|
|
20514
20514
|
}
|
|
20515
20515
|
function Wee(e) {
|
|
20516
|
-
return e.type ===
|
|
20516
|
+
return e.type === La || e.type === Ds || e.type === qm || e.type === Wm;
|
|
20517
20517
|
}
|
|
20518
20518
|
function _D() {
|
|
20519
20519
|
if (yD(), P >= gn)
|
|
@@ -20578,7 +20578,7 @@ function Pe(e, t) {
|
|
|
20578
20578
|
throw n = new Error(r), n.index = P, n.description = r, n;
|
|
20579
20579
|
}
|
|
20580
20580
|
function Gm(e) {
|
|
20581
|
-
e.type === xd && Pe(e, Aee), e.type === ol && Pe(e, kee), e.type === wd && Pe(e, Cee), e.type ===
|
|
20581
|
+
e.type === xd && Pe(e, Aee), e.type === ol && Pe(e, kee), e.type === wd && Pe(e, Cee), e.type === La && Pe(e, See), e.type === Ds && Pe(e, $ee), Pe(e, Ut, e.value);
|
|
20582
20582
|
}
|
|
20583
20583
|
function mn(e) {
|
|
20584
20584
|
const t = Bn();
|
|
@@ -20588,12 +20588,12 @@ function nt(e) {
|
|
|
20588
20588
|
return Xe.type === Pn && Xe.value === e;
|
|
20589
20589
|
}
|
|
20590
20590
|
function Z1(e) {
|
|
20591
|
-
return Xe.type ===
|
|
20591
|
+
return Xe.type === Ds && Xe.value === e;
|
|
20592
20592
|
}
|
|
20593
20593
|
function Kee() {
|
|
20594
20594
|
const e = [];
|
|
20595
20595
|
for (P = Xe.start, mn("["); !nt("]"); )
|
|
20596
|
-
nt(",") ? (Bn(), e.push(null)) : (e.push(
|
|
20596
|
+
nt(",") ? (Bn(), e.push(null)) : (e.push(Ia()), nt("]") || mn(","));
|
|
20597
20597
|
return Bn(), Hee(e);
|
|
20598
20598
|
}
|
|
20599
20599
|
function X$() {
|
|
@@ -20603,12 +20603,12 @@ function X$() {
|
|
|
20603
20603
|
}
|
|
20604
20604
|
function Zee() {
|
|
20605
20605
|
var e, t, n, i;
|
|
20606
|
-
if (P = Xe.start, e = Xe, e.type ===
|
|
20607
|
-
return n = X$(), mn(":"), i =
|
|
20606
|
+
if (P = Xe.start, e = Xe, e.type === La)
|
|
20607
|
+
return n = X$(), mn(":"), i = Ia(), Y$("init", n, i);
|
|
20608
20608
|
if (e.type === xd || e.type === Pn)
|
|
20609
20609
|
Gm(e);
|
|
20610
20610
|
else
|
|
20611
|
-
return t = X$(), mn(":"), i =
|
|
20611
|
+
return t = X$(), mn(":"), i = Ia(), Y$("init", t, i);
|
|
20612
20612
|
}
|
|
20613
20613
|
function Jee() {
|
|
20614
20614
|
var e = [], t, n, i, r = {}, o = String;
|
|
@@ -20632,12 +20632,12 @@ function tte() {
|
|
|
20632
20632
|
return Kee();
|
|
20633
20633
|
if (nt("{"))
|
|
20634
20634
|
return Jee();
|
|
20635
|
-
if (e = Xe.type, P = Xe.start, e ===
|
|
20635
|
+
if (e = Xe.type, P = Xe.start, e === La || ete[Xe.value])
|
|
20636
20636
|
n = Cw(Bn().value);
|
|
20637
20637
|
else if (e === wd || e === ol)
|
|
20638
20638
|
Xe.octal && Pe(Xe, mD), n = tf(Bn());
|
|
20639
20639
|
else {
|
|
20640
|
-
if (e ===
|
|
20640
|
+
if (e === Ds)
|
|
20641
20641
|
throw new Error(Of);
|
|
20642
20642
|
e === qm ? (t = Bn(), t.value = t.value === "true", n = tf(t)) : e === Wm ? (t = Bn(), t.value = null, n = tf(t)) : nt("/") || nt("/=") ? (n = tf(qee()), vD()) : Gm(Bn());
|
|
20643
20643
|
}
|
|
@@ -20646,7 +20646,7 @@ function tte() {
|
|
|
20646
20646
|
function nte() {
|
|
20647
20647
|
const e = [];
|
|
20648
20648
|
if (mn("("), !nt(")"))
|
|
20649
|
-
for (; P < gn && (e.push(
|
|
20649
|
+
for (; P < gn && (e.push(Ia()), !nt(")")); )
|
|
20650
20650
|
mn(",");
|
|
20651
20651
|
return mn(")"), e;
|
|
20652
20652
|
}
|
|
@@ -20684,7 +20684,7 @@ function K$() {
|
|
|
20684
20684
|
}
|
|
20685
20685
|
function Qh() {
|
|
20686
20686
|
var e, t;
|
|
20687
|
-
if (Xe.type !== Pn && Xe.type !==
|
|
20687
|
+
if (Xe.type !== Pn && Xe.type !== Ds)
|
|
20688
20688
|
t = K$();
|
|
20689
20689
|
else {
|
|
20690
20690
|
if (nt("++") || nt("--"))
|
|
@@ -20701,7 +20701,7 @@ function Qh() {
|
|
|
20701
20701
|
}
|
|
20702
20702
|
function Z$(e) {
|
|
20703
20703
|
let t = 0;
|
|
20704
|
-
if (e.type !== Pn && e.type !==
|
|
20704
|
+
if (e.type !== Pn && e.type !== Ds)
|
|
20705
20705
|
return 0;
|
|
20706
20706
|
switch (e.value) {
|
|
20707
20707
|
case "||":
|
|
@@ -20763,12 +20763,12 @@ function ate() {
|
|
|
20763
20763
|
t.pop(), n = G$(o[u - 1].value, o[u - 2], n), u -= 2;
|
|
20764
20764
|
return n;
|
|
20765
20765
|
}
|
|
20766
|
-
function
|
|
20766
|
+
function Ia() {
|
|
20767
20767
|
var e, t, n;
|
|
20768
|
-
return e = ate(), nt("?") && (Bn(), t =
|
|
20768
|
+
return e = ate(), nt("?") && (Bn(), t = Ia(), mn(":"), n = Ia(), e = Vee(e, t, n)), e;
|
|
20769
20769
|
}
|
|
20770
20770
|
function Sw() {
|
|
20771
|
-
const e =
|
|
20771
|
+
const e = Ia();
|
|
20772
20772
|
if (nt(","))
|
|
20773
20773
|
throw new Error(Of);
|
|
20774
20774
|
return e;
|
|
@@ -21039,7 +21039,7 @@ var J1 = {
|
|
|
21039
21039
|
};
|
|
21040
21040
|
const Mte = ":", Tte = "@";
|
|
21041
21041
|
function Mw(e, t, n, i) {
|
|
21042
|
-
t[0].type !==
|
|
21042
|
+
t[0].type !== Oa && L("First argument to selection functions must be a string literal.");
|
|
21043
21043
|
const r = t[0].value, o = t.length >= 2 && Re(t).value, s = "unit", a = Tte + s, l = Mte + r;
|
|
21044
21044
|
o === Aw && !ee(i, a) && (i[a] = n.getData(r).indataRef(n, s)), ee(i, l) || (i[l] = n.getData(r).tuplesRef());
|
|
21045
21045
|
}
|
|
@@ -21083,7 +21083,7 @@ function Ute(e) {
|
|
|
21083
21083
|
}
|
|
21084
21084
|
const jte = ":", qte = "@", p_ = "%", AD = "$";
|
|
21085
21085
|
function Tw(e, t, n, i) {
|
|
21086
|
-
t[0].type !==
|
|
21086
|
+
t[0].type !== Oa && L("First argument to data functions must be a string literal.");
|
|
21087
21087
|
const r = t[0].value, o = jte + r;
|
|
21088
21088
|
if (!ee(o, i))
|
|
21089
21089
|
try {
|
|
@@ -21092,12 +21092,12 @@ function Tw(e, t, n, i) {
|
|
|
21092
21092
|
}
|
|
21093
21093
|
}
|
|
21094
21094
|
function Wte(e, t, n, i) {
|
|
21095
|
-
t[0].type !==
|
|
21095
|
+
t[0].type !== Oa && L("First argument to indata must be a string literal."), t[1].type !== Oa && L("Second argument to indata must be a string literal.");
|
|
21096
21096
|
const r = t[0].value, o = t[1].value, s = qte + o;
|
|
21097
21097
|
ee(s, i) || (i[s] = n.getData(r).indataRef(n, o));
|
|
21098
21098
|
}
|
|
21099
21099
|
function Tn(e, t, n, i) {
|
|
21100
|
-
if (t[0].type ===
|
|
21100
|
+
if (t[0].type === Oa)
|
|
21101
21101
|
nA(n, i, t[0].value);
|
|
21102
21102
|
else
|
|
21103
21103
|
for (e in n.scales)
|
|
@@ -21120,7 +21120,7 @@ function Kr(e, t) {
|
|
|
21120
21120
|
}
|
|
21121
21121
|
function Hte(e, t, n) {
|
|
21122
21122
|
t.__bandwidth = (r) => r && r.bandwidth ? r.bandwidth() : 0, n._bandwidth = Tn, n._range = Tn, n._scale = Tn;
|
|
21123
|
-
const i = (r) => "_[" + (r.type ===
|
|
21123
|
+
const i = (r) => "_[" + (r.type === Oa ? G(p_ + r.value) : G(p_) + "+" + e(r)) + "]";
|
|
21124
21124
|
return {
|
|
21125
21125
|
_bandwidth: (r) => `this.__bandwidth(${i(r[0])})`,
|
|
21126
21126
|
_range: (r) => `${i(r[0])}.range()`,
|
|
@@ -22532,7 +22532,7 @@ const nre = "view", wg = "[", Eg = "]", JD = "{", QD = "}", ire = ":", e8 = ",",
|
|
|
22532
22532
|
trail: 1
|
|
22533
22533
|
};
|
|
22534
22534
|
let t8, n8;
|
|
22535
|
-
function
|
|
22535
|
+
function Os(e, t, n) {
|
|
22536
22536
|
return t8 = t || nre, n8 = n || are, i8(e.trim()).map(b_);
|
|
22537
22537
|
}
|
|
22538
22538
|
function lre(e) {
|
|
@@ -22828,7 +22828,7 @@ function tp(e) {
|
|
|
22828
22828
|
function qi(e, t) {
|
|
22829
22829
|
return e ?? t;
|
|
22830
22830
|
}
|
|
22831
|
-
function
|
|
22831
|
+
function xa(e) {
|
|
22832
22832
|
return e && e.signal || e;
|
|
22833
22833
|
}
|
|
22834
22834
|
const vA = "timer";
|
|
@@ -22881,7 +22881,7 @@ function Zre(e, t, n) {
|
|
|
22881
22881
|
target: n
|
|
22882
22882
|
};
|
|
22883
22883
|
let o = e.events, s = e.update, a = [];
|
|
22884
|
-
o || L("Signal update missing events specification."), J(o) && (o =
|
|
22884
|
+
o || L("Signal update missing events specification."), J(o) && (o = Os(o, t.isSubscope() ? jw : x_)), o = Q(o).filter((l) => l.signal || l.scale ? (a.push(l), 0) : 1), a.length > 1 && (a = [Qre(a)]), o.length && a.push(o.length > 1 ? {
|
|
22885
22885
|
merge: o
|
|
22886
22886
|
} : o[0]), i != null && (s && L("Signal encode and update are mutually exclusive."), s = "encode(item()," + G(i) + ")"), r.update = J(s) ? Br(s, t) : s.expr != null ? Br(s.expr, t) : s.value != null ? s.value : s.signal != null ? {
|
|
22887
22887
|
$expr: Kre,
|
|
@@ -23558,15 +23558,15 @@ function vse(e, t, n) {
|
|
|
23558
23558
|
function rp(e, t) {
|
|
23559
23559
|
return e.$ref ? e : e.data && e.data.$ref ? e.data : se(t.getData(e.data).output);
|
|
23560
23560
|
}
|
|
23561
|
-
function
|
|
23561
|
+
function Pa(e, t, n, i, r) {
|
|
23562
23562
|
this.scope = e, this.input = t, this.output = n, this.values = i, this.aggregate = r, this.index = {};
|
|
23563
23563
|
}
|
|
23564
|
-
|
|
23564
|
+
Pa.fromEntries = function(e, t) {
|
|
23565
23565
|
const n = t.length, i = t[n - 1], r = t[n - 2];
|
|
23566
23566
|
let o = t[0], s = null, a = 1;
|
|
23567
23567
|
for (o && o.type === "load" && (o = t[1]), e.add(t[0]); a < n; ++a)
|
|
23568
23568
|
t[a].params.pulse = se(t[a - 1]), e.add(t[a]), t[a].type === "aggregate" && (s = t[a]);
|
|
23569
|
-
return new
|
|
23569
|
+
return new Pa(e, o, r, i, s);
|
|
23570
23570
|
};
|
|
23571
23571
|
function S8(e) {
|
|
23572
23572
|
return J(e) ? e : null;
|
|
@@ -23596,7 +23596,7 @@ function Sc(e, t, n, i, r, o, s) {
|
|
|
23596
23596
|
}
|
|
23597
23597
|
return c;
|
|
23598
23598
|
}
|
|
23599
|
-
|
|
23599
|
+
Pa.prototype = {
|
|
23600
23600
|
countsRef(e, t, n) {
|
|
23601
23601
|
const i = this, r = i.counts || (i.counts = {}), o = S8(t);
|
|
23602
23602
|
let s, a, l;
|
|
@@ -23643,7 +23643,7 @@ function xse(e, t, n) {
|
|
|
23643
23643
|
const a = t.fork(), l = a.add(lr()), u = a.add(sl({
|
|
23644
23644
|
pulse: se(l)
|
|
23645
23645
|
}));
|
|
23646
|
-
a.addData(r, new
|
|
23646
|
+
a.addData(r, new Pa(a, l, l, u)), a.addSignal("parent", null), s.params.subflow = {
|
|
23647
23647
|
$subflow: a.parse(e).toRuntime()
|
|
23648
23648
|
};
|
|
23649
23649
|
}
|
|
@@ -23711,7 +23711,7 @@ function r0(e, t) {
|
|
|
23711
23711
|
})), w = t.add(sl({
|
|
23712
23712
|
pulse: se(v)
|
|
23713
23713
|
}, void 0, t.parent()));
|
|
23714
|
-
e.name != null && (f = e.name, t.addData(f, new
|
|
23714
|
+
e.name != null && (f = e.name, t.addData(f, new Pa(t, u, v, w)), e.on && e.on.forEach((E) => {
|
|
23715
23715
|
(E.insert || E.remove || E.toggle) && L("Marks only support modify triggers."), $8(E, t, f);
|
|
23716
23716
|
}));
|
|
23717
23717
|
}
|
|
@@ -23757,7 +23757,7 @@ function kse(e, t) {
|
|
|
23757
23757
|
formatType: t.property(e.formatType),
|
|
23758
23758
|
formatSpecifier: t.property(e.format)
|
|
23759
23759
|
})));
|
|
23760
|
-
return p === ip ? (h = [Zoe(e, c, n, i.gradient), EA(e, n, i.labels, b)], d.count = d.count || t.signalRef(`max(2,2*floor((${
|
|
23760
|
+
return p === ip ? (h = [Zoe(e, c, n, i.gradient), EA(e, n, i.labels, b)], d.count = d.count || t.signalRef(`max(2,2*floor((${xa(r.gradientLength())})/100))`)) : p === k_ ? h = [Joe(e, c, n, i.gradient, b), EA(e, n, i.labels, b)] : (f = nse(e, n), h = [tse(e, n, i, b, xa(f.columns))], d.size = Ase(e, t, h[0].marks)), h = [Uf({
|
|
23761
23761
|
role: Ere,
|
|
23762
23762
|
from: m,
|
|
23763
23763
|
encode: y,
|
|
@@ -23807,7 +23807,7 @@ function $se(e, t, n) {
|
|
|
23807
23807
|
}), i;
|
|
23808
23808
|
}
|
|
23809
23809
|
function Ase(e, t, n) {
|
|
23810
|
-
const i =
|
|
23810
|
+
const i = xa(TA("size", e, n)), r = xa(TA("strokeWidth", e, n)), o = xa(Mse(n[1].encode, t, Cd));
|
|
23811
23811
|
return Br(`max(ceil(sqrt(${i})+${r}),${o})`, t);
|
|
23812
23812
|
}
|
|
23813
23813
|
function TA(e, t, n) {
|
|
@@ -23972,20 +23972,20 @@ function Lse(e, t) {
|
|
|
23972
23972
|
function Ise(e, t, n) {
|
|
23973
23973
|
const i = [];
|
|
23974
23974
|
let r = null, o = !1, s = !1, a, l, u, c, f;
|
|
23975
|
-
for (e.values ? Rt(e.values) || tp(e.format) ? (i.push(NA(t, e)), i.push(r =
|
|
23975
|
+
for (e.values ? Rt(e.values) || tp(e.format) ? (i.push(NA(t, e)), i.push(r = Ys())) : i.push(r = Ys({
|
|
23976
23976
|
$ingest: e.values,
|
|
23977
23977
|
$format: e.format
|
|
23978
|
-
})) : e.url ? tp(e.url) || tp(e.format) ? (i.push(NA(t, e)), i.push(r =
|
|
23978
|
+
})) : e.url ? tp(e.url) || tp(e.format) ? (i.push(NA(t, e)), i.push(r = Ys())) : i.push(r = Ys({
|
|
23979
23979
|
$request: e.url,
|
|
23980
23980
|
$format: e.format
|
|
23981
23981
|
})) : e.source && (r = a = Q(e.source).map((d) => se(t.getData(d).output)), i.push(null)), l = 0, u = n.length; l < u; ++l)
|
|
23982
|
-
c = n[l], f = c.metadata, !r && !f.source && i.push(r =
|
|
23982
|
+
c = n[l], f = c.metadata, !r && !f.source && i.push(r = Ys()), i.push(c), f.generates && (s = !0), f.modifies && !s && (o = !0), f.source ? r = c : f.changes && (r = null);
|
|
23983
23983
|
return a && (u = a.length - 1, i[0] = moe({
|
|
23984
23984
|
derive: o,
|
|
23985
23985
|
pulse: u ? a : a[0]
|
|
23986
|
-
}), (o || u) && i.splice(1, 0,
|
|
23986
|
+
}), (o || u) && i.splice(1, 0, Ys())), r || i.push(Ys()), i.push(sl({})), i;
|
|
23987
23987
|
}
|
|
23988
|
-
function
|
|
23988
|
+
function Ys(e) {
|
|
23989
23989
|
const t = lr({}, e);
|
|
23990
23990
|
return t.metadata = {
|
|
23991
23991
|
source: !0
|
|
@@ -24234,7 +24234,7 @@ function ry(e, t, n, i, r) {
|
|
|
24234
24234
|
};
|
|
24235
24235
|
}
|
|
24236
24236
|
function Zse(e, t, n, i, r, o) {
|
|
24237
|
-
const s = Kn(e, t), a = e.orient, l = e.scale, u = o0(a, -1, 1), c =
|
|
24237
|
+
const s = Kn(e, t), a = e.orient, l = e.scale, u = o0(a, -1, 1), c = xa(s("labelFlush")), f = xa(s("labelFlushOffset")), d = s("labelAlign"), h = s("labelBaseline");
|
|
24238
24238
|
let p = c === 0 || !!c, g;
|
|
24239
24239
|
const m = jt(r);
|
|
24240
24240
|
m.mult = u, m.offset = jt(s("labelPadding") || 0), m.offset.mult = u;
|
|
@@ -24453,7 +24453,7 @@ function iae(e, t) {
|
|
|
24453
24453
|
pulse: se(l)
|
|
24454
24454
|
})), l = t.add(sl({
|
|
24455
24455
|
pulse: se(l)
|
|
24456
|
-
})), t.addData("root", new
|
|
24456
|
+
})), t.addData("root", new Pa(t, o, o, l)), t;
|
|
24457
24457
|
}
|
|
24458
24458
|
function $c(e, t) {
|
|
24459
24459
|
return t && t.signal ? {
|
|
@@ -24683,7 +24683,7 @@ F8.prototype = OA.prototype = {
|
|
|
24683
24683
|
return this.data[e] || L("Undefined data set name: " + G(e)), this.data[e];
|
|
24684
24684
|
},
|
|
24685
24685
|
addDataPipeline(e, t) {
|
|
24686
|
-
return ee(this.data, e) && L("Duplicate data set name: " + G(e)), this.addData(e,
|
|
24686
|
+
return ee(this.data, e) && L("Duplicate data set name: " + G(e)), this.addData(e, Pa.fromEntries(this, t));
|
|
24687
24687
|
}
|
|
24688
24688
|
};
|
|
24689
24689
|
function Qw(e) {
|
|
@@ -25063,7 +25063,7 @@ const cae = uae, fae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
25063
25063
|
panSymlog: IT,
|
|
25064
25064
|
parse: lae,
|
|
25065
25065
|
parseExpression: $w,
|
|
25066
|
-
parseSelector:
|
|
25066
|
+
parseSelector: Os,
|
|
25067
25067
|
path: dm,
|
|
25068
25068
|
pathCurves: i2,
|
|
25069
25069
|
pathEqual: wF,
|
|
@@ -25204,7 +25204,7 @@ var hae = {
|
|
|
25204
25204
|
"~": (e) => ~e,
|
|
25205
25205
|
"!": (e) => !e
|
|
25206
25206
|
};
|
|
25207
|
-
const mae = Array.prototype.slice,
|
|
25207
|
+
const mae = Array.prototype.slice, Xs = (e, t, n) => {
|
|
25208
25208
|
const i = n ? n(t[0]) : t[0];
|
|
25209
25209
|
return i[e].apply(i, mae.call(t, 1));
|
|
25210
25210
|
}, yae = (e, t = 0, n = 1, i = 0, r = 0, o = 0, s = 0) => J(e) ? new Date(e) : new Date(e, t, n, i, r, o, s);
|
|
@@ -25256,16 +25256,16 @@ var bae = {
|
|
|
25256
25256
|
// sequence functions
|
|
25257
25257
|
length: (e) => e.length,
|
|
25258
25258
|
join: function() {
|
|
25259
|
-
return
|
|
25259
|
+
return Xs("join", arguments);
|
|
25260
25260
|
},
|
|
25261
25261
|
indexof: function() {
|
|
25262
|
-
return
|
|
25262
|
+
return Xs("indexOf", arguments);
|
|
25263
25263
|
},
|
|
25264
25264
|
lastindexof: function() {
|
|
25265
|
-
return
|
|
25265
|
+
return Xs("lastIndexOf", arguments);
|
|
25266
25266
|
},
|
|
25267
25267
|
slice: function() {
|
|
25268
|
-
return
|
|
25268
|
+
return Xs("slice", arguments);
|
|
25269
25269
|
},
|
|
25270
25270
|
reverse: (e) => e.slice().reverse(),
|
|
25271
25271
|
sort: (e) => e.slice().sort(Iu),
|
|
@@ -25275,13 +25275,13 @@ var bae = {
|
|
|
25275
25275
|
upper: (e) => String(e).toUpperCase(),
|
|
25276
25276
|
lower: (e) => String(e).toLowerCase(),
|
|
25277
25277
|
substring: function() {
|
|
25278
|
-
return
|
|
25278
|
+
return Xs("substring", arguments, String);
|
|
25279
25279
|
},
|
|
25280
25280
|
split: function() {
|
|
25281
|
-
return
|
|
25281
|
+
return Xs("split", arguments, String);
|
|
25282
25282
|
},
|
|
25283
25283
|
replace: function() {
|
|
25284
|
-
return
|
|
25284
|
+
return Xs("replace", arguments, String);
|
|
25285
25285
|
},
|
|
25286
25286
|
trim: (e) => String(e).trim(),
|
|
25287
25287
|
// Base64 encode/decode
|
|
@@ -25560,7 +25560,7 @@ function Sae(e) {
|
|
|
25560
25560
|
function Ni(e) {
|
|
25561
25561
|
return `${Wr(e).map(Sae).join("\\.")}`;
|
|
25562
25562
|
}
|
|
25563
|
-
function
|
|
25563
|
+
function za(e, t, n) {
|
|
25564
25564
|
return e.replace(new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), "g"), n);
|
|
25565
25565
|
}
|
|
25566
25566
|
function Ju(e) {
|
|
@@ -25687,7 +25687,7 @@ function Ke(e) {
|
|
|
25687
25687
|
function j(e, t) {
|
|
25688
25688
|
return Z(e) && ee(e, t) && e[t] !== void 0;
|
|
25689
25689
|
}
|
|
25690
|
-
const Eo = "row", ko = "column", a0 = "facet", lt = "x", Gt = "y", cr = "x2", Zr = "y2",
|
|
25690
|
+
const Eo = "row", ko = "column", a0 = "facet", lt = "x", Gt = "y", cr = "x2", Zr = "y2", Ls = "xOffset", Qu = "yOffset", fr = "radius", Lo = "radius2", Di = "theta", Io = "theta2", dr = "latitude", hr = "longitude", pr = "latitude2", Fi = "longitude2", Is = "time", Gn = "color", Jr = "fill", Qr = "stroke", Vn = "shape", Po = "size", ll = "angle", zo = "opacity", Ps = "fillOpacity", zs = "strokeOpacity", Bs = "strokeWidth", Us = "strokeDash", Ad = "text", xu = "order", Md = "detail", l0 = "key", Ba = "tooltip", u0 = "href", c0 = "url", f0 = "description", Aae = {
|
|
25691
25691
|
x: 1,
|
|
25692
25692
|
y: 1,
|
|
25693
25693
|
x2: 1,
|
|
@@ -25936,13 +25936,13 @@ function jae(e) {
|
|
|
25936
25936
|
case Po:
|
|
25937
25937
|
case Vn:
|
|
25938
25938
|
case zo:
|
|
25939
|
+
case Bs:
|
|
25939
25940
|
case Us:
|
|
25940
|
-
case js:
|
|
25941
25941
|
return !0;
|
|
25942
|
+
case Ps:
|
|
25942
25943
|
case zs:
|
|
25943
|
-
case Bs:
|
|
25944
25944
|
case ll:
|
|
25945
|
-
case
|
|
25945
|
+
case Is:
|
|
25946
25946
|
return !1;
|
|
25947
25947
|
}
|
|
25948
25948
|
}
|
|
@@ -25984,14 +25984,14 @@ function Hae(e) {
|
|
|
25984
25984
|
case f0:
|
|
25985
25985
|
case Md:
|
|
25986
25986
|
case l0:
|
|
25987
|
-
case
|
|
25987
|
+
case Ba:
|
|
25988
25988
|
case u0:
|
|
25989
25989
|
case xu:
|
|
25990
25990
|
// TODO: revise (order might not support rect, which is not stackable?)
|
|
25991
25991
|
case zo:
|
|
25992
|
+
case Ps:
|
|
25992
25993
|
case zs:
|
|
25993
25994
|
case Bs:
|
|
25994
|
-
case Us:
|
|
25995
25995
|
// falls through
|
|
25996
25996
|
case a0:
|
|
25997
25997
|
case Eo:
|
|
@@ -26000,11 +26000,11 @@ function Hae(e) {
|
|
|
26000
26000
|
return Q8;
|
|
26001
26001
|
case lt:
|
|
26002
26002
|
case Gt:
|
|
26003
|
-
case
|
|
26003
|
+
case Ls:
|
|
26004
26004
|
case Qu:
|
|
26005
26005
|
case dr:
|
|
26006
26006
|
case hr:
|
|
26007
|
-
case
|
|
26007
|
+
case Is:
|
|
26008
26008
|
return Wae;
|
|
26009
26009
|
case cr:
|
|
26010
26010
|
case Zr:
|
|
@@ -26035,7 +26035,7 @@ function Hae(e) {
|
|
|
26035
26035
|
line: "always",
|
|
26036
26036
|
trail: "always"
|
|
26037
26037
|
};
|
|
26038
|
-
case
|
|
26038
|
+
case Us:
|
|
26039
26039
|
return {
|
|
26040
26040
|
line: "always",
|
|
26041
26041
|
point: "always",
|
|
@@ -26069,15 +26069,15 @@ function sy(e) {
|
|
|
26069
26069
|
case Gt:
|
|
26070
26070
|
case Di:
|
|
26071
26071
|
case fr:
|
|
26072
|
-
case
|
|
26072
|
+
case Ls:
|
|
26073
26073
|
case Qu:
|
|
26074
26074
|
case Po:
|
|
26075
26075
|
case ll:
|
|
26076
|
-
case Us:
|
|
26077
|
-
case zo:
|
|
26078
|
-
case zs:
|
|
26079
26076
|
case Bs:
|
|
26077
|
+
case zo:
|
|
26080
26078
|
case Ps:
|
|
26079
|
+
case zs:
|
|
26080
|
+
case Is:
|
|
26081
26081
|
// X2 and Y2 use X and Y scales, so they similarly have continuous range. [falls through]
|
|
26082
26082
|
case cr:
|
|
26083
26083
|
case Zr:
|
|
@@ -26088,10 +26088,10 @@ function sy(e) {
|
|
|
26088
26088
|
case Eo:
|
|
26089
26089
|
case ko:
|
|
26090
26090
|
case Vn:
|
|
26091
|
-
case
|
|
26091
|
+
case Us:
|
|
26092
26092
|
// TEXT, TOOLTIP, URL, and HREF have no scale but have discrete output [falls through]
|
|
26093
26093
|
case Ad:
|
|
26094
|
-
case
|
|
26094
|
+
case Ba:
|
|
26095
26095
|
case u0:
|
|
26096
26096
|
case c0:
|
|
26097
26097
|
case f0:
|
|
@@ -26146,7 +26146,7 @@ const Gae = {
|
|
|
26146
26146
|
function No(e) {
|
|
26147
26147
|
return j(e, "argmin");
|
|
26148
26148
|
}
|
|
26149
|
-
function
|
|
26149
|
+
function js(e) {
|
|
26150
26150
|
return j(e, "argmax");
|
|
26151
26151
|
}
|
|
26152
26152
|
function gE(e) {
|
|
@@ -26202,16 +26202,16 @@ function IA(e) {
|
|
|
26202
26202
|
case Gn:
|
|
26203
26203
|
case Jr:
|
|
26204
26204
|
case Qr:
|
|
26205
|
-
case
|
|
26205
|
+
case Bs:
|
|
26206
26206
|
case zo:
|
|
26207
|
+
case Ps:
|
|
26207
26208
|
case zs:
|
|
26208
|
-
case Bs:
|
|
26209
26209
|
// Facets and Size shouldn't have too many bins
|
|
26210
26210
|
// We choose 6 like shape to simplify the rule [falls through]
|
|
26211
26211
|
case Vn:
|
|
26212
26212
|
return 6;
|
|
26213
26213
|
// Vega's "shape" has 6 distinct values
|
|
26214
|
-
case
|
|
26214
|
+
case Us:
|
|
26215
26215
|
return 4;
|
|
26216
26216
|
// We only provide 5 different stroke dash values (but 4 is more effective)
|
|
26217
26217
|
default:
|
|
@@ -26705,21 +26705,21 @@ function cue(e) {
|
|
|
26705
26705
|
return `Domain for ${e} is required for threshold scale.`;
|
|
26706
26706
|
}
|
|
26707
26707
|
const mO = Hg(dv);
|
|
26708
|
-
let
|
|
26708
|
+
let Ua = mO;
|
|
26709
26709
|
function fue(e) {
|
|
26710
|
-
return
|
|
26710
|
+
return Ua = e, Ua;
|
|
26711
26711
|
}
|
|
26712
26712
|
function due() {
|
|
26713
|
-
return
|
|
26713
|
+
return Ua = mO, Ua;
|
|
26714
26714
|
}
|
|
26715
26715
|
function _E(...e) {
|
|
26716
|
-
|
|
26716
|
+
Ua.error(...e);
|
|
26717
26717
|
}
|
|
26718
26718
|
function W(...e) {
|
|
26719
|
-
|
|
26719
|
+
Ua.warn(...e);
|
|
26720
26720
|
}
|
|
26721
26721
|
function hue(...e) {
|
|
26722
|
-
|
|
26722
|
+
Ua.debug(...e);
|
|
26723
26723
|
}
|
|
26724
26724
|
function dl(e) {
|
|
26725
26725
|
if (e && Z(e)) {
|
|
@@ -26797,7 +26797,7 @@ function vE(e, t) {
|
|
|
26797
26797
|
}
|
|
26798
26798
|
return n;
|
|
26799
26799
|
}
|
|
26800
|
-
function
|
|
26800
|
+
function ja(e) {
|
|
26801
26801
|
const n = vE(e, !0).join(", ");
|
|
26802
26802
|
return e.utc ? `utc(${n})` : `datetime(${n})`;
|
|
26803
26803
|
}
|
|
@@ -26909,7 +26909,7 @@ function kO(e, t = (n) => n) {
|
|
|
26909
26909
|
...r,
|
|
26910
26910
|
[s]: +r[s] + o
|
|
26911
26911
|
};
|
|
26912
|
-
return `${t(
|
|
26912
|
+
return `${t(ja(a))} - ${t(ja(r))}`;
|
|
26913
26913
|
}
|
|
26914
26914
|
}
|
|
26915
26915
|
const $ue = {
|
|
@@ -27037,12 +27037,12 @@ function Rue(e) {
|
|
|
27037
27037
|
function TE(e) {
|
|
27038
27038
|
return e === "ordinal" || e === "nominal";
|
|
27039
27039
|
}
|
|
27040
|
-
const
|
|
27040
|
+
const qa = Fd.quantitative, NE = Fd.ordinal, wu = Fd.temporal, FE = Fd.nominal, ec = Fd.geojson;
|
|
27041
27041
|
function Due(e) {
|
|
27042
27042
|
if (e)
|
|
27043
27043
|
switch (e = e.toLowerCase(), e) {
|
|
27044
27044
|
case "q":
|
|
27045
|
-
case
|
|
27045
|
+
case qa:
|
|
27046
27046
|
return "quantitative";
|
|
27047
27047
|
case "t":
|
|
27048
27048
|
case wu:
|
|
@@ -27306,7 +27306,7 @@ function RO(e, t) {
|
|
|
27306
27306
|
}
|
|
27307
27307
|
}
|
|
27308
27308
|
function Gue(e, t) {
|
|
27309
|
-
return Te([NE, FE], t) ? e === void 0 || yt(e) : t === wu ? Te([Xt.TIME, Xt.UTC, void 0], e) : t ===
|
|
27309
|
+
return Te([NE, FE], t) ? e === void 0 || yt(e) : t === wu ? Te([Xt.TIME, Xt.UTC, void 0], e) : t === qa ? TO(e) || Eu(e) || e === void 0 : !0;
|
|
27310
27310
|
}
|
|
27311
27311
|
function Vue(e, t, n = !1) {
|
|
27312
27312
|
if (!to(e))
|
|
@@ -27314,19 +27314,19 @@ function Vue(e, t, n = !1) {
|
|
|
27314
27314
|
switch (e) {
|
|
27315
27315
|
case lt:
|
|
27316
27316
|
case Gt:
|
|
27317
|
-
case
|
|
27317
|
+
case Ls:
|
|
27318
27318
|
case Qu:
|
|
27319
27319
|
case Di:
|
|
27320
27320
|
case fr:
|
|
27321
27321
|
return Ar(t) || t === "band" ? !0 : t === "point" ? !n : !1;
|
|
27322
|
-
case
|
|
27322
|
+
case Is:
|
|
27323
27323
|
return Te(["linear", "band"], t);
|
|
27324
27324
|
case Po:
|
|
27325
27325
|
// TODO: size and opacity can support ordinal with more modification
|
|
27326
|
-
case
|
|
27326
|
+
case Bs:
|
|
27327
27327
|
case zo:
|
|
27328
|
+
case Ps:
|
|
27328
27329
|
case zs:
|
|
27329
|
-
case Bs:
|
|
27330
27330
|
case ll:
|
|
27331
27331
|
return Ar(t) || Eu(t) || Te(["band", "point", "ordinal"], t);
|
|
27332
27332
|
case Gn:
|
|
@@ -27334,7 +27334,7 @@ function Vue(e, t, n = !1) {
|
|
|
27334
27334
|
case Qr:
|
|
27335
27335
|
return t !== "band";
|
|
27336
27336
|
// band does not make sense with color
|
|
27337
|
-
case
|
|
27337
|
+
case Us:
|
|
27338
27338
|
case Vn:
|
|
27339
27339
|
return t === "ordinal" || Eu(t);
|
|
27340
27340
|
}
|
|
@@ -27358,7 +27358,7 @@ const On = {
|
|
|
27358
27358
|
square: "square",
|
|
27359
27359
|
geoshape: "geoshape"
|
|
27360
27360
|
}, DO = On.arc, b0 = On.area, _0 = On.bar, Xue = On.image, v0 = On.line, x0 = On.point, Kue = On.rect, Ag = On.rule, OO = On.text, RE = On.tick, Zue = On.trail, DE = On.circle, OE = On.square, LO = On.geoshape;
|
|
27361
|
-
function
|
|
27361
|
+
function qs(e) {
|
|
27362
27362
|
return ["line", "area", "trail"].includes(e);
|
|
27363
27363
|
}
|
|
27364
27364
|
function qf(e) {
|
|
@@ -27424,7 +27424,7 @@ const Que = [
|
|
|
27424
27424
|
trail: 1,
|
|
27425
27425
|
geoshape: 1
|
|
27426
27426
|
}, IO = U(oce);
|
|
27427
|
-
function
|
|
27427
|
+
function Wa(e) {
|
|
27428
27428
|
return j(e, "band");
|
|
27429
27429
|
}
|
|
27430
27430
|
const sce = {
|
|
@@ -27452,7 +27452,7 @@ function IE({ markDef: e, config: t, scaleChannel: n, scaleType: i, isCountAggre
|
|
|
27452
27452
|
if (!i || !ir(i) || r)
|
|
27453
27453
|
return "always-valid";
|
|
27454
27454
|
const o = PO(He("invalid", e, t), {
|
|
27455
|
-
isPath:
|
|
27455
|
+
isPath: qs(e.type)
|
|
27456
27456
|
});
|
|
27457
27457
|
return t.scale?.invalid?.[n] !== void 0 ? "show" : o;
|
|
27458
27458
|
}
|
|
@@ -27509,13 +27509,13 @@ function PE(e) {
|
|
|
27509
27509
|
}
|
|
27510
27510
|
function hce(e) {
|
|
27511
27511
|
const { datum: t } = e;
|
|
27512
|
-
return dl(t) ?
|
|
27512
|
+
return dl(t) ? ja(t) : `${Ke(t)}`;
|
|
27513
27513
|
}
|
|
27514
|
-
function
|
|
27514
|
+
function wa(e, t, n, i) {
|
|
27515
27515
|
const r = {};
|
|
27516
27516
|
if (t && (r.scale = t), no(e)) {
|
|
27517
27517
|
const { datum: o } = e;
|
|
27518
|
-
dl(o) ? r.signal =
|
|
27518
|
+
dl(o) ? r.signal = ja(o) : re(o) ? r.signal = o.signal : Nd(o) ? r.signal = o.expr : r.value = o;
|
|
27519
27519
|
} else
|
|
27520
27520
|
r.field = K(e, n);
|
|
27521
27521
|
if (i) {
|
|
@@ -27553,7 +27553,7 @@ function zE({ channel: e, channelDef: t, channel2Def: n, markDef: i, config: r,
|
|
|
27553
27553
|
});
|
|
27554
27554
|
const { bin: d, timeUnit: h, type: p } = t;
|
|
27555
27555
|
if (tt(d) || c && h && p === wu)
|
|
27556
|
-
return a?.impute ?
|
|
27556
|
+
return a?.impute ? wa(t, o, { binSuffix: "mid" }, { offset: l }) : c && !yt(f) ? Mg({ scaleName: o, fieldOrDatumDef: t, bandPosition: c, offset: l }) : wa(t, o, Id(t, e) ? { binSuffix: "range" } : {}, {
|
|
27557
27557
|
offset: l
|
|
27558
27558
|
});
|
|
27559
27559
|
if (Vt(d)) {
|
|
@@ -27568,7 +27568,7 @@ function zE({ channel: e, channelDef: t, channel2Def: n, markDef: i, config: r,
|
|
|
27568
27568
|
W(gO(e === lt ? cr : Zr));
|
|
27569
27569
|
}
|
|
27570
27570
|
}
|
|
27571
|
-
return
|
|
27571
|
+
return wa(
|
|
27572
27572
|
t,
|
|
27573
27573
|
o,
|
|
27574
27574
|
yt(f) ? { binSuffix: "range" } : {},
|
|
@@ -27593,14 +27593,14 @@ function zE({ channel: e, channelDef: t, channel2Def: n, markDef: i, config: r,
|
|
|
27593
27593
|
function yf(e, t) {
|
|
27594
27594
|
return Te(["x", "x2"], e) && t === "width" ? { field: { group: "width" } } : Te(["y", "y2"], e) && t === "height" ? { field: { group: "height" } } : it(t);
|
|
27595
27595
|
}
|
|
27596
|
-
function
|
|
27596
|
+
function Ha(e) {
|
|
27597
27597
|
return e && e !== "number" && e !== "time";
|
|
27598
27598
|
}
|
|
27599
27599
|
function UO(e, t, n) {
|
|
27600
27600
|
return `${e}(${t}${n ? `, ${Ke(n)}` : ""})`;
|
|
27601
27601
|
}
|
|
27602
27602
|
function BE({ fieldOrDatumDef: e, format: t, formatType: n, expr: i, normalizeStack: r, config: o }) {
|
|
27603
|
-
if (
|
|
27603
|
+
if (Ha(n))
|
|
27604
27604
|
return Zi({
|
|
27605
27605
|
fieldOrDatumDef: e,
|
|
27606
27606
|
format: t,
|
|
@@ -27680,7 +27680,7 @@ function Zi({ fieldOrDatumDef: e, format: t, formatType: n, expr: i, normalizeSt
|
|
|
27680
27680
|
return { signal: UO(n, s, t) };
|
|
27681
27681
|
}
|
|
27682
27682
|
function qO(e, t, n, i, r, o) {
|
|
27683
|
-
if (!(J(i) &&
|
|
27683
|
+
if (!(J(i) && Ha(i)) && !(n === void 0 && i === void 0 && r.customFormatTypes && ku(e) === "quantitative" && (r.normalizedNumberFormatType && Cu(e) && e.stack === "normalize" || r.numberFormatType))) {
|
|
27684
27684
|
if (Cu(e) && e.stack === "normalize" && r.normalizedNumberFormat)
|
|
27685
27685
|
return D_({
|
|
27686
27686
|
type: "quantitative",
|
|
@@ -27703,7 +27703,7 @@ function WO(e, t, n) {
|
|
|
27703
27703
|
function D_({ type: e, specifiedFormat: t, config: n, normalizeStack: i }) {
|
|
27704
27704
|
if (J(t))
|
|
27705
27705
|
return t;
|
|
27706
|
-
if (e ===
|
|
27706
|
+
if (e === qa)
|
|
27707
27707
|
return i ? n.normalizedNumberFormat : n.numberFormat;
|
|
27708
27708
|
}
|
|
27709
27709
|
function gce({ specifiedFormat: e, timeUnit: t, config: n, omitTimeFormatConfig: i }) {
|
|
@@ -27715,7 +27715,7 @@ function HO(e, t) {
|
|
|
27715
27715
|
return `format(${e}, "${t || ""}")`;
|
|
27716
27716
|
}
|
|
27717
27717
|
function ZA(e, t, n, i) {
|
|
27718
|
-
return
|
|
27718
|
+
return Ha(n) ? UO(n, e, t) : HO(e, (J(t) ? t : void 0) ?? i.numberFormat);
|
|
27719
27719
|
}
|
|
27720
27720
|
function Rd(e, t, n, i, r) {
|
|
27721
27721
|
if (n === void 0 && i === void 0 && r.customFormatTypes && r.numberFormatType)
|
|
@@ -27885,7 +27885,7 @@ function K(e, t = {}) {
|
|
|
27885
27885
|
s = e.op;
|
|
27886
27886
|
else {
|
|
27887
27887
|
const { bin: a, aggregate: l, timeUnit: u } = e;
|
|
27888
|
-
tt(a) ? (s = eO(a), r = (t.binSuffix ?? "") + (t.suffix ?? "")) : l ?
|
|
27888
|
+
tt(a) ? (s = eO(a), r = (t.binSuffix ?? "") + (t.suffix ?? "")) : l ? js(l) ? (o = `["${n}"]`, n = `argmax_${l.argmax}`) : No(l) ? (o = `["${n}"]`, n = `argmin_${l.argmin}`) : s = String(l) : u && !hl(u) && (s = Sue(u), r = (!["range", "mid"].includes(t.binSuffix) && t.binSuffix || "") + (t.suffix ?? ""));
|
|
27889
27889
|
}
|
|
27890
27890
|
s && (n = n ? `${s}_${n}` : s);
|
|
27891
27891
|
}
|
|
@@ -27921,12 +27921,12 @@ function Sce(e, t) {
|
|
|
27921
27921
|
if (s)
|
|
27922
27922
|
return `${n} (${m0(s).join("-")})`;
|
|
27923
27923
|
} else if (o)
|
|
27924
|
-
return
|
|
27924
|
+
return js(o) ? `${n} for max ${o.argmax}` : No(o) ? `${n} for min ${o.argmin}` : `${$d(o)} of ${n}`;
|
|
27925
27925
|
return n;
|
|
27926
27926
|
}
|
|
27927
27927
|
function $ce(e) {
|
|
27928
27928
|
const { aggregate: t, bin: n, timeUnit: i, field: r } = e;
|
|
27929
|
-
if (
|
|
27929
|
+
if (js(t))
|
|
27930
27930
|
return `${r} for argmax(${t.argmax})`;
|
|
27931
27931
|
if (No(t))
|
|
27932
27932
|
return `${r} for argmin(${t.argmin})`;
|
|
@@ -27996,7 +27996,7 @@ function Mce(e, t) {
|
|
|
27996
27996
|
const { aggregate: n, bin: i, timeUnit: r } = e;
|
|
27997
27997
|
if (r)
|
|
27998
27998
|
return "temporal";
|
|
27999
|
-
if (i || n && !
|
|
27999
|
+
if (i || n && !js(n) && !No(n))
|
|
28000
28000
|
return "quantitative";
|
|
28001
28001
|
if (pl(e) && e.scale?.type)
|
|
28002
28002
|
switch (F_[e.scale.type]) {
|
|
@@ -28034,13 +28034,13 @@ function t9(e, t, n, i = {}) {
|
|
|
28034
28034
|
function Fg(e, t, n, i) {
|
|
28035
28035
|
if (ZO(e)) {
|
|
28036
28036
|
const { format: r, formatType: o, ...s } = e;
|
|
28037
|
-
if (
|
|
28037
|
+
if (Ha(o) && !n.customFormatTypes)
|
|
28038
28038
|
return W(GA(t)), Fg(s, t, n, i);
|
|
28039
28039
|
} else {
|
|
28040
28040
|
const r = Cu(e) ? "axis" : KO(e) ? "legend" : UE(e) ? "header" : null;
|
|
28041
28041
|
if (r && e[r]) {
|
|
28042
28042
|
const { format: o, formatType: s, ...a } = e[r];
|
|
28043
|
-
if (
|
|
28043
|
+
if (Ha(s) && !n.customFormatTypes)
|
|
28044
28044
|
return W(GA(t)), Fg({ ...e, [r]: a }, t, n, i);
|
|
28045
28045
|
}
|
|
28046
28046
|
}
|
|
@@ -28055,7 +28055,7 @@ function Tce(e) {
|
|
|
28055
28055
|
}
|
|
28056
28056
|
function HE(e, t, { compositeMark: n = !1 } = {}) {
|
|
28057
28057
|
const { aggregate: i, timeUnit: r, bin: o, field: s } = e, a = { ...e };
|
|
28058
|
-
if (!n && i && !gE(i) && !
|
|
28058
|
+
if (!n && i && !gE(i) && !js(i) && !No(i) && (W(Tle(i)), delete a.aggregate), r && (a.timeUnit = Wt(r)), s && (a.field = `${s}`), tt(o) && (a.bin = C0(o, t)), Vt(o) && !vt(t) && W(uue(t)), Rn(a)) {
|
|
28059
28059
|
const { type: l } = a, u = Due(l);
|
|
28060
28060
|
l !== u && (a.type = u), l !== "quantitative" && h0(i) && (W(Mle(l, i)), a.type = "quantitative");
|
|
28061
28061
|
} else if (!Y8(t)) {
|
|
@@ -28120,7 +28120,7 @@ function Nce(e, t) {
|
|
|
28120
28120
|
};
|
|
28121
28121
|
case lt:
|
|
28122
28122
|
case Gt:
|
|
28123
|
-
case
|
|
28123
|
+
case Ls:
|
|
28124
28124
|
case Qu:
|
|
28125
28125
|
case Gn:
|
|
28126
28126
|
case Jr:
|
|
@@ -28128,7 +28128,7 @@ function Nce(e, t) {
|
|
|
28128
28128
|
case Ad:
|
|
28129
28129
|
case Md:
|
|
28130
28130
|
case l0:
|
|
28131
|
-
case
|
|
28131
|
+
case Ba:
|
|
28132
28132
|
case u0:
|
|
28133
28133
|
case c0:
|
|
28134
28134
|
case ll:
|
|
@@ -28140,26 +28140,26 @@ function Nce(e, t) {
|
|
|
28140
28140
|
case Fi:
|
|
28141
28141
|
case dr:
|
|
28142
28142
|
case pr:
|
|
28143
|
-
return n !==
|
|
28143
|
+
return n !== qa ? {
|
|
28144
28144
|
compatible: !1,
|
|
28145
28145
|
warning: `Channel ${t} should be used with a quantitative field only, not ${e.type} field.`
|
|
28146
28146
|
} : $l;
|
|
28147
28147
|
case zo:
|
|
28148
|
+
case Ps:
|
|
28148
28149
|
case zs:
|
|
28149
28150
|
case Bs:
|
|
28150
|
-
case Us:
|
|
28151
28151
|
case Po:
|
|
28152
28152
|
case Io:
|
|
28153
28153
|
case Lo:
|
|
28154
28154
|
case cr:
|
|
28155
28155
|
case Zr:
|
|
28156
|
-
case
|
|
28156
|
+
case Is:
|
|
28157
28157
|
return n === "nominal" && !e.sort ? {
|
|
28158
28158
|
compatible: !1,
|
|
28159
28159
|
warning: `Channel ${t} should not be used with an unsorted discrete field.`
|
|
28160
28160
|
} : $l;
|
|
28161
28161
|
case Vn:
|
|
28162
|
-
case
|
|
28162
|
+
case Us:
|
|
28163
28163
|
return !Ng(e) && !kce(e) ? {
|
|
28164
28164
|
compatible: !1,
|
|
28165
28165
|
warning: Ole(t)
|
|
@@ -28181,7 +28181,7 @@ function Fce(e) {
|
|
|
28181
28181
|
function S0(e, { timeUnit: t, type: n, wrapTime: i, undefinedIfExprNotRequired: r }) {
|
|
28182
28182
|
const o = t && Wt(t)?.unit;
|
|
28183
28183
|
let s = o || n === "temporal", a;
|
|
28184
|
-
return Nd(e) ? a = e.expr : re(e) ? a = e.signal : dl(e) ? (s = !0, a =
|
|
28184
|
+
return Nd(e) ? a = e.expr : re(e) ? a = e.signal : dl(e) ? (s = !0, a = ja(e)) : (J(e) || ze(e)) && s && (a = `datetime(${Ke(e)})`, xue(o) && (ze(e) && e < 1e4 || J(e) && isNaN(Date.parse(e))) && (a = ja({ [o]: e }))), a ? i && s ? `time(${a})` : a : r ? void 0 : Ke(e);
|
|
28185
28185
|
}
|
|
28186
28186
|
function n9(e, t) {
|
|
28187
28187
|
const { type: n } = e;
|
|
@@ -28488,7 +28488,7 @@ class $0 {
|
|
|
28488
28488
|
return Uo(t) ? cce(t.mark) === this.name : !1;
|
|
28489
28489
|
}
|
|
28490
28490
|
}
|
|
28491
|
-
function
|
|
28491
|
+
function Ea(e, t) {
|
|
28492
28492
|
const n = e?.[t];
|
|
28493
28493
|
return n ? z(n) ? bu(n, (i) => !!i.field) : H(n) || k0(n) : !1;
|
|
28494
28494
|
}
|
|
@@ -28508,7 +28508,7 @@ function a9(e, t) {
|
|
|
28508
28508
|
}
|
|
28509
28509
|
function l9(e) {
|
|
28510
28510
|
return bu(Tae, (t) => {
|
|
28511
|
-
if (
|
|
28511
|
+
if (Ea(e, t)) {
|
|
28512
28512
|
const n = e[t];
|
|
28513
28513
|
if (z(n))
|
|
28514
28514
|
return bu(n, (i) => !!i.aggregate);
|
|
@@ -28537,7 +28537,7 @@ function u9(e, t) {
|
|
|
28537
28537
|
};
|
|
28538
28538
|
if (c) {
|
|
28539
28539
|
let b;
|
|
28540
|
-
if (
|
|
28540
|
+
if (js(c) ? (b = "argmax", m = K({ op: "argmax", field: c.argmax }, { forAs: !0 }), y.field = `${m}.${u}`) : No(c) ? (b = "argmin", m = K({ op: "argmin", field: c.argmin }, { forAs: !0 }), y.field = `${m}.${u}`) : c !== "boxplot" && c !== "errorbar" && c !== "errorband" && (b = c), b) {
|
|
28541
28541
|
const _ = {
|
|
28542
28542
|
op: b,
|
|
28543
28543
|
as: m
|
|
@@ -28551,7 +28551,7 @@ function u9(e, t) {
|
|
|
28551
28551
|
};
|
|
28552
28552
|
s[`${l}2`] = b;
|
|
28553
28553
|
}
|
|
28554
|
-
y.bin = "binned", Y8(l) || (y.type =
|
|
28554
|
+
y.bin = "binned", Y8(l) || (y.type = qa);
|
|
28555
28555
|
} else if (d && !hl(d)) {
|
|
28556
28556
|
r.push({
|
|
28557
28557
|
timeUnit: d,
|
|
@@ -28559,7 +28559,7 @@ function u9(e, t) {
|
|
|
28559
28559
|
as: m
|
|
28560
28560
|
});
|
|
28561
28561
|
const b = Rn(a) && a.type !== wu && "time";
|
|
28562
|
-
b && (l === Ad || l ===
|
|
28562
|
+
b && (l === Ad || l === Ba ? y.formatType = b : Uae(l) ? y.legend = {
|
|
28563
28563
|
formatType: b,
|
|
28564
28564
|
...y.legend
|
|
28565
28565
|
} : vt(l) && (y.axis = {
|
|
@@ -28617,7 +28617,7 @@ function Ice(e, t, n, i) {
|
|
|
28617
28617
|
W(dO("encoding", { fill: "fill" in e, stroke: "stroke" in e }));
|
|
28618
28618
|
continue;
|
|
28619
28619
|
}
|
|
28620
|
-
if (o === Md || o === xu && !z(s) && !rr(s) || o ===
|
|
28620
|
+
if (o === Md || o === xu && !z(s) && !rr(s) || o === Ba && z(s)) {
|
|
28621
28621
|
if (s) {
|
|
28622
28622
|
if (o === xu) {
|
|
28623
28623
|
const a = e[o];
|
|
@@ -28629,7 +28629,7 @@ function Ice(e, t, n, i) {
|
|
|
28629
28629
|
r[o] = Q(s).reduce((a, l) => (H(l) ? a.push(HE(l, o)) : W(N_(l, o)), a), []);
|
|
28630
28630
|
}
|
|
28631
28631
|
} else {
|
|
28632
|
-
if (o ===
|
|
28632
|
+
if (o === Ba && s === null)
|
|
28633
28633
|
r[o] = null;
|
|
28634
28634
|
else if (!H(s) && !no(s) && !rr(s) && !Od(s) && !re(s)) {
|
|
28635
28635
|
W(N_(s, o));
|
|
@@ -28651,7 +28651,7 @@ function A0(e, t) {
|
|
|
28651
28651
|
function Pce(e) {
|
|
28652
28652
|
const t = [];
|
|
28653
28653
|
for (const n of U(e))
|
|
28654
|
-
if (
|
|
28654
|
+
if (Ea(e, n)) {
|
|
28655
28655
|
const i = e[n], r = Q(i);
|
|
28656
28656
|
for (const o of r)
|
|
28657
28657
|
H(o) ? t.push(o) : k0(o) && t.push(o.condition);
|
|
@@ -28686,13 +28686,13 @@ function c9(e, t) {
|
|
|
28686
28686
|
case c0:
|
|
28687
28687
|
case cr:
|
|
28688
28688
|
case Zr:
|
|
28689
|
-
case
|
|
28689
|
+
case Ls:
|
|
28690
28690
|
case Qu:
|
|
28691
28691
|
case Di:
|
|
28692
28692
|
case Io:
|
|
28693
28693
|
case fr:
|
|
28694
28694
|
case Lo:
|
|
28695
|
-
case
|
|
28695
|
+
case Is:
|
|
28696
28696
|
// falls through
|
|
28697
28697
|
case dr:
|
|
28698
28698
|
case hr:
|
|
@@ -28705,7 +28705,7 @@ function c9(e, t) {
|
|
|
28705
28705
|
case ll:
|
|
28706
28706
|
// falls through
|
|
28707
28707
|
// tooltip fields should not be added to group by [falls through]
|
|
28708
|
-
case
|
|
28708
|
+
case Ba:
|
|
28709
28709
|
return n;
|
|
28710
28710
|
case xu:
|
|
28711
28711
|
if (e === "line" || e === "trail")
|
|
@@ -28728,10 +28728,10 @@ function c9(e, t) {
|
|
|
28728
28728
|
case Jr:
|
|
28729
28729
|
case Qr:
|
|
28730
28730
|
case zo:
|
|
28731
|
+
case Ps:
|
|
28731
28732
|
case zs:
|
|
28732
|
-
case
|
|
28733
|
-
case
|
|
28734
|
-
case Us: {
|
|
28733
|
+
case Us:
|
|
28734
|
+
case Bs: {
|
|
28735
28735
|
const r = or(t[i]);
|
|
28736
28736
|
return r && !r.aggregate && n.push(K(r, {})), n;
|
|
28737
28737
|
}
|
|
@@ -29288,7 +29288,7 @@ function Kce(e, t, n, i, r, o, s, a) {
|
|
|
29288
29288
|
for (const h of u)
|
|
29289
29289
|
f.push({
|
|
29290
29290
|
fieldPrefix: h.as.substring(0, 6),
|
|
29291
|
-
titlePrefix:
|
|
29291
|
+
titlePrefix: za(za(h.calculate, "datum['", ""), "']", "")
|
|
29292
29292
|
});
|
|
29293
29293
|
}
|
|
29294
29294
|
return { postAggregateCalculates: u, errorBarSpecificAggregate: l, tooltipSummary: f, tooltipTitleWithFieldName: d };
|
|
@@ -30037,7 +30037,7 @@ function T9(e, t) {
|
|
|
30037
30037
|
const c = a === "x" ? "xOffset" : "yOffset", f = t[c], d = H(f) ? K(f, {}) : void 0;
|
|
30038
30038
|
d && d !== s && (l.push(c), u.add(d));
|
|
30039
30039
|
const h = Iae.reduce((g, m) => {
|
|
30040
|
-
if (m !== "tooltip" &&
|
|
30040
|
+
if (m !== "tooltip" && Ea(t, m)) {
|
|
30041
30041
|
const y = t[m];
|
|
30042
30042
|
for (const b of Q(y)) {
|
|
30043
30043
|
const _ = or(b);
|
|
@@ -30056,7 +30056,7 @@ function T9(e, t) {
|
|
|
30056
30056
|
groupbyChannels: l,
|
|
30057
30057
|
groupbyFields: u,
|
|
30058
30058
|
fieldChannel: r,
|
|
30059
|
-
impute: o.impute === null ? !1 :
|
|
30059
|
+
impute: o.impute === null ? !1 : qs(i),
|
|
30060
30060
|
stackBy: h,
|
|
30061
30061
|
offset: p
|
|
30062
30062
|
}));
|
|
@@ -30110,9 +30110,9 @@ function Dfe(e, t, n) {
|
|
|
30110
30110
|
if (n)
|
|
30111
30111
|
return n;
|
|
30112
30112
|
if (!o)
|
|
30113
|
-
return (H(i) && i.type ===
|
|
30113
|
+
return (H(i) && i.type === qa && !tt(i.bin) || Tg(i)) && H(r) && Vt(r.bin) ? "horizontal" : "vertical";
|
|
30114
30114
|
if (!s)
|
|
30115
|
-
return (H(r) && r.type ===
|
|
30115
|
+
return (H(r) && r.type === qa && !tt(r.bin) || Tg(r)) && H(i) && Vt(i.bin) ? "vertical" : "horizontal";
|
|
30116
30116
|
}
|
|
30117
30117
|
// falls through
|
|
30118
30118
|
case Ag:
|
|
@@ -30350,7 +30350,7 @@ class Bfe extends nk {
|
|
|
30350
30350
|
];
|
|
30351
30351
|
map(t, n) {
|
|
30352
30352
|
if (Uo(t)) {
|
|
30353
|
-
const i =
|
|
30353
|
+
const i = Ea(t.encoding, Eo), r = Ea(t.encoding, ko), o = Ea(t.encoding, a0);
|
|
30354
30354
|
if (i || r || o)
|
|
30355
30355
|
return this.mapFacetedUnit(t, n);
|
|
30356
30356
|
}
|
|
@@ -31266,7 +31266,7 @@ const vde = {
|
|
|
31266
31266
|
])), n),
|
|
31267
31267
|
signals: (e, t, n) => {
|
|
31268
31268
|
const i = t.name, r = i + zd, o = t.project, s = "(item().isVoronoi ? datum.datum : datum)", a = Ct(e.component.selection ?? {}).reduce((c, f) => f.type === "interval" ? c.concat(f.name + Xl) : c, []).map((c) => `indexof(item().mark.name, '${c}') < 0`).join(" && "), l = `datum && item().mark.marktype !== 'group' && indexof(item().mark.role, 'legend') < 0${a ? ` && ${a}` : ""}`;
|
|
31269
|
-
let u = `unit: ${
|
|
31269
|
+
let u = `unit: ${ka(e)}, `;
|
|
31270
31270
|
if (t.project.hasSelectionId)
|
|
31271
31271
|
u += `${sr}: ${s}[${G(sr)}]`;
|
|
31272
31272
|
else if (Rr(t))
|
|
@@ -31276,7 +31276,7 @@ const vde = {
|
|
|
31276
31276
|
u += `fields: ${r}, values: [${c}]`;
|
|
31277
31277
|
}
|
|
31278
31278
|
if (Rr(t))
|
|
31279
|
-
return n.concat(wde(t.name, e.scaleName(
|
|
31279
|
+
return n.concat(wde(t.name, e.scaleName(Is)), [
|
|
31280
31280
|
{
|
|
31281
31281
|
name: i + Ro,
|
|
31282
31282
|
on: [
|
|
@@ -31309,18 +31309,18 @@ function X9(e) {
|
|
|
31309
31309
|
const { signals: t, hasLegend: n, index: i, ...r } = e;
|
|
31310
31310
|
return r.field = Ni(r.field), r;
|
|
31311
31311
|
}
|
|
31312
|
-
function
|
|
31312
|
+
function Ga(e, t = !0, n = yn) {
|
|
31313
31313
|
if (z(e)) {
|
|
31314
|
-
const i = e.map((r) =>
|
|
31314
|
+
const i = e.map((r) => Ga(r, t, n));
|
|
31315
31315
|
return t ? `[${i.join(", ")}]` : i;
|
|
31316
31316
|
} else if (dl(e))
|
|
31317
|
-
return n(t ?
|
|
31317
|
+
return n(t ? ja(e) : vue(e));
|
|
31318
31318
|
return t ? n(Ke(e)) : e;
|
|
31319
31319
|
}
|
|
31320
31320
|
function kde(e, t) {
|
|
31321
31321
|
for (const n of Ct(e.component.selection ?? {})) {
|
|
31322
31322
|
const i = n.name;
|
|
31323
|
-
let r = `${i}${Ro}, ${n.resolve === "global" ? "true" : `{unit: ${
|
|
31323
|
+
let r = `${i}${Ro}, ${n.resolve === "global" ? "true" : `{unit: ${ka(e)}}`}`;
|
|
31324
31324
|
for (const o of D0)
|
|
31325
31325
|
o.defined(n) && (o.signals && (t = o.signals(e, n, t)), o.modifyExpr && (r = o.modifyExpr(e, n, r)));
|
|
31326
31326
|
t.push({
|
|
@@ -31328,7 +31328,7 @@ function kde(e, t) {
|
|
|
31328
31328
|
on: [
|
|
31329
31329
|
{
|
|
31330
31330
|
events: { signal: n.name + Ro },
|
|
31331
|
-
update: `modify(${G(n.name +
|
|
31331
|
+
update: `modify(${G(n.name + Va)}, ${r})`
|
|
31332
31332
|
}
|
|
31333
31333
|
]
|
|
31334
31334
|
});
|
|
@@ -31343,7 +31343,7 @@ function Cde(e, t) {
|
|
|
31343
31343
|
value: {},
|
|
31344
31344
|
on: [
|
|
31345
31345
|
{
|
|
31346
|
-
events:
|
|
31346
|
+
events: Os("pointermove", "scope"),
|
|
31347
31347
|
update: `isTuple(facet) ? facet : group(${n}).datum`
|
|
31348
31348
|
}
|
|
31349
31349
|
]
|
|
@@ -31354,7 +31354,7 @@ function Cde(e, t) {
|
|
|
31354
31354
|
function Sde(e, t) {
|
|
31355
31355
|
let n = !1;
|
|
31356
31356
|
for (const i of Ct(e.component.selection ?? {})) {
|
|
31357
|
-
const r = i.name, o = G(r +
|
|
31357
|
+
const r = i.name, o = G(r + Va);
|
|
31358
31358
|
if (t.filter((a) => a.name === r).length === 0) {
|
|
31359
31359
|
const a = i.resolve === "global" ? "union" : i.resolve, l = i.type === "point" ? ", true, true)" : ")";
|
|
31360
31360
|
t.push({
|
|
@@ -31373,14 +31373,14 @@ function Sde(e, t) {
|
|
|
31373
31373
|
}), ok(t);
|
|
31374
31374
|
}
|
|
31375
31375
|
function $de(e, t) {
|
|
31376
|
-
const n = [], i = [], r =
|
|
31376
|
+
const n = [], i = [], r = ka(e, { escape: !1 });
|
|
31377
31377
|
for (const o of Ct(e.component.selection ?? {})) {
|
|
31378
|
-
const s = { name: o.name +
|
|
31378
|
+
const s = { name: o.name + Va };
|
|
31379
31379
|
if (o.project.hasSelectionId && (s.transform = [{ type: "collect", sort: { field: sr } }]), o.init) {
|
|
31380
31380
|
const l = o.project.items.map(X9);
|
|
31381
|
-
s.values = o.project.hasSelectionId ? o.init.map((u) => ({ unit: r, [sr]:
|
|
31381
|
+
s.values = o.project.hasSelectionId ? o.init.map((u) => ({ unit: r, [sr]: Ga(u, !1)[0] })) : o.init.map((u) => ({ unit: r, fields: l, values: Ga(u, !1) }));
|
|
31382
31382
|
}
|
|
31383
|
-
if ([...n, ...t].filter((l) => l.name === o.name +
|
|
31383
|
+
if ([...n, ...t].filter((l) => l.name === o.name + Va).length || n.push(s), Rr(o) && t.length) {
|
|
31384
31384
|
const l = e.lookupDataSource(e.getDataName(ft.Main)), u = t.find((f) => f.name === l), c = u.transform.find((f) => f.type === "filter" && f.expr.includes("vlSelectionTest"));
|
|
31385
31385
|
if (c) {
|
|
31386
31386
|
u.transform = u.transform.filter((d) => d !== c);
|
|
@@ -31494,7 +31494,7 @@ const Xl = "_brush", Z9 = "_scale_trigger", Mc = "geo_interval_init_tick", J9 =
|
|
|
31494
31494
|
name: l,
|
|
31495
31495
|
update: `invert(${a}, [${g("width")}/2, ${g("height")}/2])`
|
|
31496
31496
|
})));
|
|
31497
|
-
const y = `intersect(${m}, {markname: ${G(e.getName("marks"))}}, unit.mark)`, b = `{unit: ${
|
|
31497
|
+
const y = `intersect(${m}, {markname: ${G(e.getName("marks"))}}, unit.mark)`, b = `{unit: ${ka(e)}}`, _ = `vlSelectionTuples(${y}, ${b})`, v = o.map((w) => w.signals.visual);
|
|
31498
31498
|
return n.concat({
|
|
31499
31499
|
name: r,
|
|
31500
31500
|
on: [
|
|
@@ -31524,10 +31524,10 @@ const Xl = "_brush", Z9 = "_scale_trigger", Mc = "geo_interval_init_tick", J9 =
|
|
|
31524
31524
|
]
|
|
31525
31525
|
});
|
|
31526
31526
|
}
|
|
31527
|
-
const a = o.map((u) => u.signals.data), l = `unit: ${
|
|
31527
|
+
const a = o.map((u) => u.signals.data), l = `unit: ${ka(e)}, fields: ${i + zd}, values`;
|
|
31528
31528
|
return n.concat({
|
|
31529
31529
|
name: r,
|
|
31530
|
-
...s ? { init: `{${l}: ${
|
|
31530
|
+
...s ? { init: `{${l}: ${Ga(s)}}` } : {},
|
|
31531
31531
|
...a.length ? {
|
|
31532
31532
|
on: [
|
|
31533
31533
|
{
|
|
@@ -31551,7 +31551,7 @@ const Xl = "_brush", Z9 = "_scale_trigger", Mc = "geo_interval_init_tick", J9 =
|
|
|
31551
31551
|
]
|
|
31552
31552
|
})), n),
|
|
31553
31553
|
marks: (e, t, n) => {
|
|
31554
|
-
const i = t.name, { x: r, y: o } = t.project.hasChannel, s = r?.signals.visual, a = o?.signals.visual, l = `data(${G(t.name +
|
|
31554
|
+
const i = t.name, { x: r, y: o } = t.project.hasChannel, s = r?.signals.visual, a = o?.signals.visual, l = `data(${G(t.name + Va)})`;
|
|
31555
31555
|
if (So.defined(t) || !r && !o)
|
|
31556
31556
|
return n;
|
|
31557
31557
|
const u = {
|
|
@@ -31564,7 +31564,7 @@ const Xl = "_brush", Z9 = "_scale_trigger", Mc = "geo_interval_init_tick", J9 =
|
|
|
31564
31564
|
for (const m of U(u))
|
|
31565
31565
|
u[m] = [
|
|
31566
31566
|
{
|
|
31567
|
-
test: `${l}.length && ${l}[0].unit === ${
|
|
31567
|
+
test: `${l}.length && ${l}[0].unit === ${ka(e)}`,
|
|
31568
31568
|
...u[m]
|
|
31569
31569
|
},
|
|
31570
31570
|
{ value: 0 }
|
|
@@ -31617,7 +31617,7 @@ function Fde(e, t, n, i) {
|
|
|
31617
31617
|
// Brush End
|
|
31618
31618
|
], []);
|
|
31619
31619
|
if (r) {
|
|
31620
|
-
const d = n.signals.data, h = So.defined(t), p = e.getScaleComponent(o), g = p ? p.get("type") : void 0, m = i ? { init:
|
|
31620
|
+
const d = n.signals.data, h = So.defined(t), p = e.getScaleComponent(o), g = p ? p.get("type") : void 0, m = i ? { init: Ga(i, !0, l) } : { value: [] };
|
|
31621
31621
|
return f.push({
|
|
31622
31622
|
events: { signal: t.name + Z9 },
|
|
31623
31623
|
update: ir(g) ? `[${l(`${d}[0]`)}, ${l(`${d}[1]`)}]` : "[0, 0]"
|
|
@@ -31625,7 +31625,7 @@ function Fde(e, t, n, i) {
|
|
|
31625
31625
|
{ name: s, ...m, on: f },
|
|
31626
31626
|
{
|
|
31627
31627
|
name: d,
|
|
31628
|
-
...i ? { init:
|
|
31628
|
+
...i ? { init: Ga(i) } : {},
|
|
31629
31629
|
// Cannot be `value` as `init` may require datetime exprs.
|
|
31630
31630
|
on: [
|
|
31631
31631
|
{
|
|
@@ -31855,7 +31855,7 @@ function n7(e, t = { filled: void 0 }) {
|
|
|
31855
31855
|
}
|
|
31856
31856
|
function Lde(e) {
|
|
31857
31857
|
const { encoding: t, mark: n } = e, i = t.order;
|
|
31858
|
-
return !
|
|
31858
|
+
return !qs(n) && rr(i) ? tc({
|
|
31859
31859
|
model: e,
|
|
31860
31860
|
channelDef: i,
|
|
31861
31861
|
vgChannel: "zindex",
|
|
@@ -31927,7 +31927,7 @@ function Ide(e) {
|
|
|
31927
31927
|
offset: o
|
|
31928
31928
|
});
|
|
31929
31929
|
}
|
|
31930
|
-
return
|
|
31930
|
+
return wa(n, i, { suffix: "end" }, { offset: o });
|
|
31931
31931
|
}
|
|
31932
31932
|
return PE(e);
|
|
31933
31933
|
}
|
|
@@ -32043,7 +32043,7 @@ function Bde(e, t, n) {
|
|
|
32043
32043
|
}
|
|
32044
32044
|
function Ude({ channel: e, channelDef: t, channel2Def: n, markDef: i, config: r, scaleName: o, scale: s, stack: a, offset: l, defaultRef: u }) {
|
|
32045
32045
|
return ge(t) && a && // If fieldChannel is X and channel is X2 (or Y and Y2)
|
|
32046
|
-
e.charAt(0) === a.fieldChannel.charAt(0) ?
|
|
32046
|
+
e.charAt(0) === a.fieldChannel.charAt(0) ? wa(t, o, { suffix: "start" }, { offset: l }) : PE({
|
|
32047
32047
|
channel: e,
|
|
32048
32048
|
channelDef: n,
|
|
32049
32049
|
scaleName: o,
|
|
@@ -32063,7 +32063,7 @@ function wh(e, t) {
|
|
|
32063
32063
|
return { [i]: yf(e, t[e]) };
|
|
32064
32064
|
if (t[n]) {
|
|
32065
32065
|
const r = t[n];
|
|
32066
|
-
if (
|
|
32066
|
+
if (Wa(r))
|
|
32067
32067
|
W(Nle(n));
|
|
32068
32068
|
else
|
|
32069
32069
|
return { [n]: yf(e, r) };
|
|
@@ -32071,7 +32071,7 @@ function wh(e, t) {
|
|
|
32071
32071
|
}
|
|
32072
32072
|
function Fo(e, t) {
|
|
32073
32073
|
const { config: n, encoding: i, markDef: r } = e, o = r.type, s = eo(t), a = Yn(t), l = i[t], u = i[s], c = e.getScaleComponent(t), f = c ? c.get("type") : void 0, d = r.orient, h = i[a] ?? i.size ?? He("size", r, n, { vgChannel: a }), p = X8(t), g = o === "bar" && (t === "x" ? d === "vertical" : d === "horizontal") || o === "tick" && (t === "y" ? d === "vertical" : d === "horizontal");
|
|
32074
|
-
return H(l) && (tt(l.bin) || Vt(l.bin) || l.timeUnit && !u) && !(h && !
|
|
32074
|
+
return H(l) && (tt(l.bin) || Vt(l.bin) || l.timeUnit && !u) && !(h && !Wa(h)) && !i[p] && !yt(f) ? Wde({
|
|
32075
32075
|
fieldDef: l,
|
|
32076
32076
|
fieldDef2: u,
|
|
32077
32077
|
channel: t,
|
|
@@ -32079,7 +32079,7 @@ function Fo(e, t) {
|
|
|
32079
32079
|
}) : (ge(l) && yt(f) || g) && !u ? qde(l, t, e) : r7(t, e, { defaultPos: "zeroOrMax", defaultPos2: "zeroOrMin" });
|
|
32080
32080
|
}
|
|
32081
32081
|
function jde(e, t, n, i, r, o, s) {
|
|
32082
|
-
if (
|
|
32082
|
+
if (Wa(r))
|
|
32083
32083
|
if (n) {
|
|
32084
32084
|
const l = n.get("type");
|
|
32085
32085
|
if (l === "band") {
|
|
@@ -32135,7 +32135,7 @@ function qde(e, t, n) {
|
|
|
32135
32135
|
m = m || {
|
|
32136
32136
|
[c]: jde(c, h || l, p || u, o, b, !!e, i.type)
|
|
32137
32137
|
};
|
|
32138
|
-
const _ = (u || p)?.get("type") === "band" &&
|
|
32138
|
+
const _ = (u || p)?.get("type") === "band" && Wa(b) && !y ? "top" : "middle", v = i7(t, i, o, _), w = v === "xc" || v === "yc", { offset: E, offsetType: x } = Mu({ channel: t, markDef: i, encoding: r, model: n, bandPosition: w ? 0.5 : 0 }), C = PE({
|
|
32139
32139
|
channel: t,
|
|
32140
32140
|
channelDef: e,
|
|
32141
32141
|
markDef: i,
|
|
@@ -32145,7 +32145,7 @@ function qde(e, t, n) {
|
|
|
32145
32145
|
stack: s,
|
|
32146
32146
|
offset: E,
|
|
32147
32147
|
defaultRef: lk({ model: n, defaultPos: "mid", channel: t, scaleName: l, scale: u }),
|
|
32148
|
-
bandPosition: w ? x === "encoding" ? 0 : 0.5 : re(b) ? { signal: `(1-${b})/2` } :
|
|
32148
|
+
bandPosition: w ? x === "encoding" ? 0 : 0.5 : re(b) ? { signal: `(1-${b})/2` } : Wa(b) ? (1 - b.band) / 2 : 0
|
|
32149
32149
|
});
|
|
32150
32150
|
if (c)
|
|
32151
32151
|
return { [v]: C, ...m };
|
|
@@ -32174,7 +32174,7 @@ function w3(e, t, n, i, r, o, s) {
|
|
|
32174
32174
|
return r = r || 0, i + (n ? -r - l : +r + l);
|
|
32175
32175
|
}
|
|
32176
32176
|
function Wde({ fieldDef: e, fieldDef2: t, channel: n, model: i }) {
|
|
32177
|
-
const { config: r, markDef: o, encoding: s } = i, a = i.getScaleComponent(n), l = i.scaleName(n), u = a ? a.get("type") : void 0, c = a.get("reverse"), f = VO({ channel: n, fieldDef: e, markDef: o, config: r, scaleType: u }), h = i.component.axes[n]?.[0]?.get("translate") ?? 0.5, p = vt(n) ? He("binSpacing", o, r) ?? 0 : 0, g = eo(n), m = Ss(n), y = Ss(g), b = Ur("minBandSize", o, r), { offset: _ } = Mu({ channel: n, markDef: o, encoding: s, model: i, bandPosition: 0 }), { offset: v } = Mu({ channel: g, markDef: o, encoding: s, model: i, bandPosition: 0 }), w = pce({ fieldDef: e, scaleName: l }), E = w3(n, p, c, h, _, b, w), x = w3(g, p, c, h, v ?? _, b, w), C = re(f) ? { signal: `(1-${f.signal})/2` } :
|
|
32177
|
+
const { config: r, markDef: o, encoding: s } = i, a = i.getScaleComponent(n), l = i.scaleName(n), u = a ? a.get("type") : void 0, c = a.get("reverse"), f = VO({ channel: n, fieldDef: e, markDef: o, config: r, scaleType: u }), h = i.component.axes[n]?.[0]?.get("translate") ?? 0.5, p = vt(n) ? He("binSpacing", o, r) ?? 0 : 0, g = eo(n), m = Ss(n), y = Ss(g), b = Ur("minBandSize", o, r), { offset: _ } = Mu({ channel: n, markDef: o, encoding: s, model: i, bandPosition: 0 }), { offset: v } = Mu({ channel: g, markDef: o, encoding: s, model: i, bandPosition: 0 }), w = pce({ fieldDef: e, scaleName: l }), E = w3(n, p, c, h, _, b, w), x = w3(g, p, c, h, v ?? _, b, w), C = re(f) ? { signal: `(1-${f.signal})/2` } : Wa(f) ? (1 - f.band) / 2 : 0.5, S = $s({ fieldDef: e, fieldDef2: t, markDef: o, config: r });
|
|
32178
32178
|
if (tt(e.bin) || e.timeUnit) {
|
|
32179
32179
|
const A = e.timeUnit && S !== 0.5;
|
|
32180
32180
|
return {
|
|
@@ -32194,11 +32194,11 @@ function Wde({ fieldDef: e, fieldDef2: t, channel: n, model: i }) {
|
|
|
32194
32194
|
})
|
|
32195
32195
|
};
|
|
32196
32196
|
} else if (Vt(e.bin)) {
|
|
32197
|
-
const A =
|
|
32197
|
+
const A = wa(e, l, {}, { offset: x });
|
|
32198
32198
|
if (H(t))
|
|
32199
32199
|
return {
|
|
32200
32200
|
[y]: A,
|
|
32201
|
-
[m]:
|
|
32201
|
+
[m]: wa(t, l, {}, { offset: E })
|
|
32202
32202
|
};
|
|
32203
32203
|
if (cl(e.bin) && e.bin.step)
|
|
32204
32204
|
return {
|
|
@@ -32280,7 +32280,7 @@ const gy = "voronoi", o7 = {
|
|
|
32280
32280
|
},
|
|
32281
32281
|
marks: (e, t, n) => {
|
|
32282
32282
|
const { x: i, y: r } = t.project.hasChannel, o = e.mark;
|
|
32283
|
-
if (
|
|
32283
|
+
if (qs(o))
|
|
32284
32284
|
return W(ale(o)), n;
|
|
32285
32285
|
const s = {
|
|
32286
32286
|
name: e.getName(gy),
|
|
@@ -32321,7 +32321,7 @@ const gy = "voronoi", o7 = {
|
|
|
32321
32321
|
const c = at(`${i}_${l.field}`);
|
|
32322
32322
|
n.filter((d) => d.name === c).length || n.unshift({
|
|
32323
32323
|
name: c,
|
|
32324
|
-
...s ? { init:
|
|
32324
|
+
...s ? { init: Ga(s[u]) } : { value: null },
|
|
32325
32325
|
on: t.events ? [
|
|
32326
32326
|
{
|
|
32327
32327
|
events: t.events,
|
|
@@ -32345,12 +32345,12 @@ const gy = "voronoi", o7 = {
|
|
|
32345
32345
|
}),
|
|
32346
32346
|
modifyExpr: (e, t) => {
|
|
32347
32347
|
const n = t.name + Ro, i = t.name + Lg;
|
|
32348
|
-
return `${i} ? null : ${n}, ${t.resolve === "global" ? `${i} ? null : true, ` : `${i} ? null : {unit: ${
|
|
32348
|
+
return `${i} ? null : ${n}, ${t.resolve === "global" ? `${i} ? null : true, ` : `${i} ? null : {unit: ${ka(e)}}, `}${i} ? ${n} : null`;
|
|
32349
32349
|
}
|
|
32350
32350
|
}, Vde = {
|
|
32351
32351
|
defined: (e) => e.clear !== void 0 && e.clear !== !1 && !Rr(e),
|
|
32352
32352
|
parse: (e, t) => {
|
|
32353
|
-
t.clear && (t.clear = J(t.clear) ?
|
|
32353
|
+
t.clear && (t.clear = J(t.clear) ? Os(t.clear, "view") : t.clear);
|
|
32354
32354
|
},
|
|
32355
32355
|
topLevelSignals: (e, t, n) => {
|
|
32356
32356
|
if (s7.defined(t))
|
|
@@ -32390,7 +32390,7 @@ const gy = "voronoi", o7 = {
|
|
|
32390
32390
|
for (const a of t.events)
|
|
32391
32391
|
a.filter = Q(a.filter ?? []), a.filter.includes(s) || a.filter.push(s);
|
|
32392
32392
|
}
|
|
32393
|
-
const r = uy(t.bind) ? t.bind.legend : "click", o = J(r) ?
|
|
32393
|
+
const r = uy(t.bind) ? t.bind.legend : "click", o = J(r) ? Os(r, "view") : Q(r);
|
|
32394
32394
|
t.bind = { legend: { merge: o } };
|
|
32395
32395
|
},
|
|
32396
32396
|
topLevelSignals: (e, t, n) => {
|
|
@@ -32445,7 +32445,7 @@ const u7 = "_translate_anchor", c7 = "_translate_delta", Xde = {
|
|
|
32445
32445
|
defined: (e) => e.type === "interval" && e.translate,
|
|
32446
32446
|
signals: (e, t, n) => {
|
|
32447
32447
|
const i = t.name, r = So.defined(t), o = i + u7, { x: s, y: a } = t.project.hasChannel;
|
|
32448
|
-
let l =
|
|
32448
|
+
let l = Os(t.translate, "scope");
|
|
32449
32449
|
return r || (l = l.map((u) => (u.between[0].markname = i + Xl, u))), n.push({
|
|
32450
32450
|
name: o,
|
|
32451
32451
|
value: {},
|
|
@@ -32478,7 +32478,7 @@ const f7 = "_zoom_anchor", d7 = "_zoom_delta", Kde = {
|
|
|
32478
32478
|
defined: (e) => e.type === "interval" && e.zoom,
|
|
32479
32479
|
signals: (e, t, n) => {
|
|
32480
32480
|
const i = t.name, r = So.defined(t), o = i + d7, { x: s, y: a } = t.project.hasChannel, l = G(e.scaleName(lt)), u = G(e.scaleName(Gt));
|
|
32481
|
-
let c =
|
|
32481
|
+
let c = Os(t.zoom, "scope");
|
|
32482
32482
|
return r || (c = c.map((f) => (f.markname = i + Xl, f))), n.push({
|
|
32483
32483
|
name: i + f7,
|
|
32484
32484
|
on: [
|
|
@@ -32506,7 +32506,7 @@ function $3(e, t, n, i, r) {
|
|
|
32506
32506
|
update: a ? y : `clampRange(${y}, 0, ${u})`
|
|
32507
32507
|
});
|
|
32508
32508
|
}
|
|
32509
|
-
const
|
|
32509
|
+
const Va = "_store", Ro = "_tuple", Zde = "_modify", h7 = "vlSelectionResolve", D0 = [
|
|
32510
32510
|
Ede,
|
|
32511
32511
|
Nde,
|
|
32512
32512
|
vde,
|
|
@@ -32526,7 +32526,7 @@ function Jde(e) {
|
|
|
32526
32526
|
t = t.parent;
|
|
32527
32527
|
return t;
|
|
32528
32528
|
}
|
|
32529
|
-
function
|
|
32529
|
+
function ka(e, { escape: t } = { escape: !0 }) {
|
|
32530
32530
|
let n = t ? G(e.name) : e.name;
|
|
32531
32531
|
const i = Jde(e);
|
|
32532
32532
|
if (i) {
|
|
@@ -32600,7 +32600,7 @@ function Qde(e, t) {
|
|
|
32600
32600
|
type: l,
|
|
32601
32601
|
init: o.value,
|
|
32602
32602
|
bind: o.bind,
|
|
32603
|
-
events: J(u.on) ?
|
|
32603
|
+
events: J(u.on) ? Os(u.on, "scope") : Q(he(u.on))
|
|
32604
32604
|
};
|
|
32605
32605
|
if (Rr(f) && (r++, r > 1)) {
|
|
32606
32606
|
delete n[s];
|
|
@@ -32613,7 +32613,7 @@ function Qde(e, t) {
|
|
|
32613
32613
|
return r > 1 && W(yle), n;
|
|
32614
32614
|
}
|
|
32615
32615
|
function y7(e, t, n, i = "datum") {
|
|
32616
|
-
const r = J(t) ? t : t.param, o = at(r), s = G(o +
|
|
32616
|
+
const r = J(t) ? t : t.param, o = at(r), s = G(o + Va);
|
|
32617
32617
|
let a;
|
|
32618
32618
|
try {
|
|
32619
32619
|
a = e.getSelectionComponent(o, r);
|
|
@@ -32728,7 +32728,7 @@ function nf(e, t, n, i = { header: !1 }) {
|
|
|
32728
32728
|
return;
|
|
32729
32729
|
if (a !== void 0) {
|
|
32730
32730
|
let d = a;
|
|
32731
|
-
c.encode?.labels?.update && re(c.encode.labels.update.text) && (d =
|
|
32731
|
+
c.encode?.labels?.update && re(c.encode.labels.update.text) && (d = za(a, "datum.label", c.encode.labels.update.text.signal)), my(c, "labels", "text", { signal: d });
|
|
32732
32732
|
}
|
|
32733
32733
|
if (c.labelAlign === null && delete c.labelAlign, c.encode) {
|
|
32734
32734
|
for (const d of i9)
|
|
@@ -33109,7 +33109,7 @@ function V_(e, t, n) {
|
|
|
33109
33109
|
}).signal, c = O0(t, a);
|
|
33110
33110
|
return {
|
|
33111
33111
|
text: {
|
|
33112
|
-
signal: l ?
|
|
33112
|
+
signal: l ? za(za(l, "datum.label", u), "datum.value", K(e, { expr: "parent" })) : u
|
|
33113
33113
|
},
|
|
33114
33114
|
...t === "row" ? { orient: "left" } : {},
|
|
33115
33115
|
style: "guide-label",
|
|
@@ -33347,7 +33347,7 @@ function Che(e, { model: t, legendType: n, legendCmpt: i }) {
|
|
|
33347
33347
|
function She(e, { fieldOrDatumDef: t, model: n, channel: i, legendCmpt: r }) {
|
|
33348
33348
|
const o = n.legend(i) || {}, s = n.config, a = H(t) ? R7(n, r, t) : void 0, l = a ? [{ test: a, value: 1 }, { value: s.legend.unselectedOpacity }] : void 0, { format: u, formatType: c } = o;
|
|
33349
33349
|
let f;
|
|
33350
|
-
|
|
33350
|
+
Ha(c) ? f = Zi({
|
|
33351
33351
|
fieldOrDatumDef: t,
|
|
33352
33352
|
field: "datum.value",
|
|
33353
33353
|
format: u,
|
|
@@ -33393,7 +33393,7 @@ function R7(e, t, n) {
|
|
|
33393
33393
|
if (!i?.length)
|
|
33394
33394
|
return;
|
|
33395
33395
|
const r = G(n.field);
|
|
33396
|
-
return i.map((o) => `(!length(data(${G(at(o) +
|
|
33396
|
+
return i.map((o) => `(!length(data(${G(at(o) + Va)})) || (${o}[${r}] && indexof(${o}[${r}], datum.value) >= 0))`).join(" || ");
|
|
33397
33397
|
}
|
|
33398
33398
|
const F3 = {
|
|
33399
33399
|
direction: ({ direction: e }) => e,
|
|
@@ -33796,7 +33796,7 @@ class Qi extends Ze {
|
|
|
33796
33796
|
if (l === "count")
|
|
33797
33797
|
r["*"] ??= {}, r["*"].count = /* @__PURE__ */ new Set([K(s, { forAs: !0 })]);
|
|
33798
33798
|
else {
|
|
33799
|
-
if (No(l) ||
|
|
33799
|
+
if (No(l) || js(l)) {
|
|
33800
33800
|
const c = No(l) ? "argmin" : "argmax", f = l[c];
|
|
33801
33801
|
r[f] ??= {}, r[f][c] = /* @__PURE__ */ new Set([K({ op: c, field: f }, { forAs: !0 })]);
|
|
33802
33802
|
} else
|
|
@@ -33915,7 +33915,7 @@ class ic extends Ze {
|
|
|
33915
33915
|
if (i && !i.merged) {
|
|
33916
33916
|
const r = i.get("type"), o = i.get("range");
|
|
33917
33917
|
if (yt(r) && fl(o)) {
|
|
33918
|
-
const s =
|
|
33918
|
+
const s = Xa(this.childModel, n), a = _k(s);
|
|
33919
33919
|
a ? t[n] = a : W(yE(n));
|
|
33920
33920
|
}
|
|
33921
33921
|
}
|
|
@@ -34054,7 +34054,7 @@ function Xhe(e) {
|
|
|
34054
34054
|
}
|
|
34055
34055
|
}), st(e)) {
|
|
34056
34056
|
const { mark: i, markDef: r, encoding: o } = e;
|
|
34057
|
-
if (
|
|
34057
|
+
if (qs(i) && // No need to sort by dimension if we have a connected scatterplot (order channel is present)
|
|
34058
34058
|
!e.encoding.order) {
|
|
34059
34059
|
const s = r.orient === "horizontal" ? "y" : "x", a = o[s];
|
|
34060
34060
|
H(a) && a.type === "quantitative" && !(a.field in t) && (t[a.field] = "number");
|
|
@@ -34215,7 +34215,7 @@ class Ud extends Ze {
|
|
|
34215
34215
|
};
|
|
34216
34216
|
}
|
|
34217
34217
|
}
|
|
34218
|
-
class
|
|
34218
|
+
class Ya extends Ze {
|
|
34219
34219
|
_data;
|
|
34220
34220
|
_name;
|
|
34221
34221
|
_generator;
|
|
@@ -34270,7 +34270,7 @@ class Xa extends Ze {
|
|
|
34270
34270
|
}
|
|
34271
34271
|
}
|
|
34272
34272
|
function mk(e) {
|
|
34273
|
-
return e instanceof
|
|
34273
|
+
return e instanceof Ya || e instanceof Bd || e instanceof Ud;
|
|
34274
34274
|
}
|
|
34275
34275
|
class yk {
|
|
34276
34276
|
#e;
|
|
@@ -34400,7 +34400,7 @@ class npe extends gl {
|
|
|
34400
34400
|
}
|
|
34401
34401
|
class ipe extends gl {
|
|
34402
34402
|
run(t) {
|
|
34403
|
-
t instanceof jn || t.numChildren() > 0 || t instanceof ic || t instanceof
|
|
34403
|
+
t instanceof jn || t.numChildren() > 0 || t instanceof ic || t instanceof Ya || (this.setModified(), t.remove());
|
|
34404
34404
|
}
|
|
34405
34405
|
}
|
|
34406
34406
|
class rpe extends gl {
|
|
@@ -34895,7 +34895,7 @@ function yy(e, t, n) {
|
|
|
34895
34895
|
function Vo(e, t, n, i) {
|
|
34896
34896
|
const { encoding: r, markDef: o, mark: s, config: a, stack: l } = n, u = Ft(r[i]), { type: c } = u, f = u.timeUnit, d = bde({
|
|
34897
34897
|
invalid: Ur("invalid", o, a),
|
|
34898
|
-
isPath:
|
|
34898
|
+
isPath: qs(s)
|
|
34899
34899
|
});
|
|
34900
34900
|
if (Uue(t)) {
|
|
34901
34901
|
const g = Vo(e, void 0, n, i), m = yy(t.unionWith, c, f);
|
|
@@ -35034,7 +35034,7 @@ function bpe(e, t, n) {
|
|
|
35034
35034
|
return by(r, a);
|
|
35035
35035
|
} else if (bce(r)) {
|
|
35036
35036
|
const { encoding: a, order: l } = r, u = e.fieldDef(a), { aggregate: c, field: f } = u, d = o && !s.has(f);
|
|
35037
|
-
if (No(c) ||
|
|
35037
|
+
if (No(c) || js(c))
|
|
35038
35038
|
return by({
|
|
35039
35039
|
field: K(u),
|
|
35040
35040
|
order: l
|
|
@@ -35140,7 +35140,7 @@ function _k(e) {
|
|
|
35140
35140
|
return J(t) ? t : void 0;
|
|
35141
35141
|
}
|
|
35142
35142
|
}
|
|
35143
|
-
function
|
|
35143
|
+
function Xa(e, t) {
|
|
35144
35144
|
const i = e.component.scales[t].get("domains").map((r) => (_o(r) && (r.data = e.lookupDataSource(r.data)), r));
|
|
35145
35145
|
return _pe(i);
|
|
35146
35146
|
}
|
|
@@ -35185,7 +35185,7 @@ function Epe(e) {
|
|
|
35185
35185
|
}
|
|
35186
35186
|
function ev(e, t) {
|
|
35187
35187
|
try {
|
|
35188
|
-
const n =
|
|
35188
|
+
const n = Xa(e, t);
|
|
35189
35189
|
return Epe(n);
|
|
35190
35190
|
} catch {
|
|
35191
35191
|
return null;
|
|
@@ -35205,7 +35205,7 @@ function Cpe(e, t, n) {
|
|
|
35205
35205
|
const o = i.getWithExplicit("domains"), s = r.getWithExplicit("domains");
|
|
35206
35206
|
if (!(o?.explicit && s?.explicit))
|
|
35207
35207
|
return !1;
|
|
35208
|
-
const a =
|
|
35208
|
+
const a = Xa(e, t), l = Xa(e, n);
|
|
35209
35209
|
return Ee(a) === Ee(l);
|
|
35210
35210
|
}
|
|
35211
35211
|
function B7(e) {
|
|
@@ -35246,7 +35246,7 @@ function Spe(e, t) {
|
|
|
35246
35246
|
}
|
|
35247
35247
|
if (o.title || delete o.title, i !== void 0) {
|
|
35248
35248
|
let s = i;
|
|
35249
|
-
o.encode?.labels?.update && re(o.encode.labels.update.text) && (s =
|
|
35249
|
+
o.encode?.labels?.update && re(o.encode.labels.update.text) && (s = za(i, "datum.label", o.encode.labels.update.text.signal)), vpe(o, "labels", "text", { signal: s });
|
|
35250
35250
|
}
|
|
35251
35251
|
return o;
|
|
35252
35252
|
}
|
|
@@ -35401,7 +35401,7 @@ function z3(e) {
|
|
|
35401
35401
|
const i = e.component.scales[n];
|
|
35402
35402
|
if (i.merged)
|
|
35403
35403
|
return t;
|
|
35404
|
-
const r = i.combine(), { name: o, type: s, selectionExtent: a, domains: l, range: u, reverse: c, ...f } = r, d = Dpe(r.range, o, n, e), h =
|
|
35404
|
+
const r = i.combine(), { name: o, type: s, selectionExtent: a, domains: l, range: u, reverse: c, ...f } = r, d = Dpe(r.range, o, n, e), h = Xa(e, n), p = a ? Mde(e, a, i, h) : null;
|
|
35405
35405
|
return t.push({
|
|
35406
35406
|
name: o,
|
|
35407
35407
|
type: s,
|
|
@@ -35544,7 +35544,7 @@ function Ipe(e, t) {
|
|
|
35544
35544
|
} else
|
|
35545
35545
|
W(pO(s));
|
|
35546
35546
|
else if (Td(e)) {
|
|
35547
|
-
const f = e ===
|
|
35547
|
+
const f = e === Ls ? "x" : "y";
|
|
35548
35548
|
if (t.getScaleComponent(f).get("type") === "band") {
|
|
35549
35549
|
const p = Y7(a, o);
|
|
35550
35550
|
if (p)
|
|
@@ -35584,7 +35584,7 @@ function zpe(e, t) {
|
|
|
35584
35584
|
}
|
|
35585
35585
|
return G7(e, t, l);
|
|
35586
35586
|
}
|
|
35587
|
-
case
|
|
35587
|
+
case Ls:
|
|
35588
35588
|
case Qu:
|
|
35589
35589
|
return Bpe(e, t, l);
|
|
35590
35590
|
case Po: {
|
|
@@ -35603,11 +35603,11 @@ function zpe(e, t) {
|
|
|
35603
35603
|
return `min(${f},${d})/2`;
|
|
35604
35604
|
})
|
|
35605
35605
|
];
|
|
35606
|
-
case
|
|
35606
|
+
case Is:
|
|
35607
35607
|
return { step: 1e3 / i.scale.framesPerSecond };
|
|
35608
|
-
case
|
|
35608
|
+
case Bs:
|
|
35609
35609
|
return [i.scale.minStrokeWidth, i.scale.maxStrokeWidth];
|
|
35610
|
-
case
|
|
35610
|
+
case Us:
|
|
35611
35611
|
return [
|
|
35612
35612
|
// TODO: add this to Vega's config.range?
|
|
35613
35613
|
[1, 0],
|
|
@@ -35623,8 +35623,8 @@ function zpe(e, t) {
|
|
|
35623
35623
|
case Qr:
|
|
35624
35624
|
return l === "ordinal" ? s === "nominal" ? "category" : "ordinal" : c !== void 0 ? "diverging" : r === "rect" || r === "geoshape" ? "heatmap" : "ramp";
|
|
35625
35625
|
case zo:
|
|
35626
|
+
case Ps:
|
|
35626
35627
|
case zs:
|
|
35627
|
-
case Bs:
|
|
35628
35628
|
return [i.scale.minOpacity, i.scale.maxOpacity];
|
|
35629
35629
|
}
|
|
35630
35630
|
}
|
|
@@ -35649,7 +35649,7 @@ function Y7(e, t) {
|
|
|
35649
35649
|
return { step: e.step };
|
|
35650
35650
|
}
|
|
35651
35651
|
function Bpe(e, t, n) {
|
|
35652
|
-
const i = e ===
|
|
35652
|
+
const i = e === Ls ? "x" : "y", r = t.getScaleComponent(i);
|
|
35653
35653
|
if (!r)
|
|
35654
35654
|
return G7(i, t, n, { center: !0 });
|
|
35655
35655
|
const o = r.get("type"), s = t.scaleName(i), { markDef: a, config: l } = t;
|
|
@@ -35930,7 +35930,7 @@ function tge(e, t, n, i) {
|
|
|
35930
35930
|
} else if (n.type === "arc" && e in hE)
|
|
35931
35931
|
return "band";
|
|
35932
35932
|
const r = n[Yn(e)];
|
|
35933
|
-
return
|
|
35933
|
+
return Wa(r) || Cu(t) && t.axis?.tickBand ? "band" : "point";
|
|
35934
35934
|
}
|
|
35935
35935
|
case "temporal":
|
|
35936
35936
|
return Vl(e) ? "time" : sy(e) === "discrete" ? (W(ay(e, "temporal")), "ordinal") : H(t) && t.timeUnit && Wt(t.timeUnit).utc ? "utc" : oy(e) ? "band" : "time";
|
|
@@ -36181,7 +36181,7 @@ class xk {
|
|
|
36181
36181
|
if (r && !r.merged) {
|
|
36182
36182
|
const o = r.get("type"), s = r.get("range");
|
|
36183
36183
|
if (yt(o) && fl(s)) {
|
|
36184
|
-
const a = r.get("name"), l =
|
|
36184
|
+
const a = r.get("name"), l = Xa(this, i), u = _k(l);
|
|
36185
36185
|
if (u) {
|
|
36186
36186
|
const c = K({ aggregate: "distinct", field: u }, { expr: "datum" });
|
|
36187
36187
|
return {
|
|
@@ -36501,10 +36501,10 @@ class Hf extends Ze {
|
|
|
36501
36501
|
};
|
|
36502
36502
|
}
|
|
36503
36503
|
}
|
|
36504
|
-
class
|
|
36504
|
+
class Ca extends Ze {
|
|
36505
36505
|
transform;
|
|
36506
36506
|
clone() {
|
|
36507
|
-
return new
|
|
36507
|
+
return new Ca(null, he(this.transform));
|
|
36508
36508
|
}
|
|
36509
36509
|
constructor(t, n) {
|
|
36510
36510
|
super(t), this.transform = n;
|
|
@@ -36520,7 +36520,7 @@ class Sa extends Ze {
|
|
|
36520
36520
|
return { signal: `sequence(${[n, i, ...r ? [r] : []].join(",")})` };
|
|
36521
36521
|
}
|
|
36522
36522
|
static makeFromTransform(t, n) {
|
|
36523
|
-
return new
|
|
36523
|
+
return new Ca(t, n);
|
|
36524
36524
|
}
|
|
36525
36525
|
static makeFromEncoding(t, n) {
|
|
36526
36526
|
const i = n.encoding, r = i.x, o = i.y;
|
|
@@ -36529,7 +36529,7 @@ class Sa extends Ze {
|
|
|
36529
36529
|
if (s === void 0)
|
|
36530
36530
|
return;
|
|
36531
36531
|
const a = r.impute ? o : o.impute ? r : void 0, { method: l, value: u, frame: c, keyvals: f } = s.impute, d = c9(n.mark, i);
|
|
36532
|
-
return new
|
|
36532
|
+
return new Ca(t, {
|
|
36533
36533
|
impute: s.field,
|
|
36534
36534
|
key: a.field,
|
|
36535
36535
|
...l ? { method: l } : {},
|
|
@@ -36616,7 +36616,7 @@ class Gf extends Ze {
|
|
|
36616
36616
|
let a = null;
|
|
36617
36617
|
if (jfe(s)) {
|
|
36618
36618
|
let l = iL(s.data, o);
|
|
36619
|
-
l || (l = new
|
|
36619
|
+
l || (l = new Ya(s.data), o.push(l));
|
|
36620
36620
|
const u = n.getName(`lookup_${r}`);
|
|
36621
36621
|
a = new jn(l, u, ft.Lookup, n.component.data.outputNodeRefCounts), n.component.data.outputNodes[u] = a;
|
|
36622
36622
|
} else if (qfe(s)) {
|
|
@@ -36780,18 +36780,18 @@ class H0 extends Ze {
|
|
|
36780
36780
|
function tL(e) {
|
|
36781
36781
|
let t = 0;
|
|
36782
36782
|
function n(i, r) {
|
|
36783
|
-
if (i instanceof
|
|
36783
|
+
if (i instanceof Ya && !i.isGenerator && !Au(i.data) && (e.push(r), r = {
|
|
36784
36784
|
name: null,
|
|
36785
36785
|
source: r.name,
|
|
36786
36786
|
transform: []
|
|
36787
|
-
}), i instanceof fn && (i.parent instanceof
|
|
36787
|
+
}), i instanceof fn && (i.parent instanceof Ya && !r.source ? (r.format = {
|
|
36788
36788
|
...r.format,
|
|
36789
36789
|
parse: i.assembleFormatParse()
|
|
36790
36790
|
}, r.transform.push(...i.assembleTransforms(!0))) : r.transform.push(...i.assembleTransforms())), i instanceof ic) {
|
|
36791
36791
|
r.name || (r.name = `data_${t++}`), !r.source || r.transform.length > 0 ? (e.push(r), i.data = r.name) : i.data = r.source, e.push(...i.assemble());
|
|
36792
36792
|
return;
|
|
36793
36793
|
}
|
|
36794
|
-
switch ((i instanceof Bd || i instanceof Ud || i instanceof Ru || i instanceof nc || i instanceof Tu || i instanceof Hf || i instanceof Qi || i instanceof Gf || i instanceof rc || i instanceof ml || i instanceof B0 || i instanceof z0 || i instanceof I0 || i instanceof U0 || i instanceof j0 || i instanceof q0 || i instanceof Ms || i instanceof H0 || i instanceof W0 || i instanceof P0) && r.transform.push(i.assemble()), (i instanceof Dr || i instanceof Fr || i instanceof
|
|
36794
|
+
switch ((i instanceof Bd || i instanceof Ud || i instanceof Ru || i instanceof nc || i instanceof Tu || i instanceof Hf || i instanceof Qi || i instanceof Gf || i instanceof rc || i instanceof ml || i instanceof B0 || i instanceof z0 || i instanceof I0 || i instanceof U0 || i instanceof j0 || i instanceof q0 || i instanceof Ms || i instanceof H0 || i instanceof W0 || i instanceof P0) && r.transform.push(i.assemble()), (i instanceof Dr || i instanceof Fr || i instanceof Ca || i instanceof $o || i instanceof Kl) && r.transform.push(...i.assemble()), i instanceof jn && (r.source && r.transform.length === 0 ? i.setSource(r.source) : i.parent instanceof jn ? i.setSource(r.name) : (r.name || (r.name = `data_${t++}`), i.setSource(r.name), i.numChildren() === 1 && (e.push(r), r = {
|
|
36795
36795
|
name: null,
|
|
36796
36796
|
source: r.name,
|
|
36797
36797
|
transform: []
|
|
@@ -37097,7 +37097,7 @@ class bf extends eL {
|
|
|
37097
37097
|
if (o && !o.merged) {
|
|
37098
37098
|
const s = o.get("type"), a = o.get("range");
|
|
37099
37099
|
if (yt(s) && fl(a)) {
|
|
37100
|
-
const l =
|
|
37100
|
+
const l = Xa(this.child, r), u = _k(l);
|
|
37101
37101
|
u ? (t.push(u), n.push("distinct"), i.push(`distinct_${u}`)) : W(yE(r));
|
|
37102
37102
|
}
|
|
37103
37103
|
}
|
|
@@ -37234,14 +37234,14 @@ function iL(e, t) {
|
|
|
37234
37234
|
function mge(e, t) {
|
|
37235
37235
|
if (e.data || !e.parent) {
|
|
37236
37236
|
if (e.data === null) {
|
|
37237
|
-
const i = new
|
|
37237
|
+
const i = new Ya({ values: [] });
|
|
37238
37238
|
return t.push(i), i;
|
|
37239
37239
|
}
|
|
37240
37240
|
const n = iL(e.data, t);
|
|
37241
37241
|
if (n)
|
|
37242
37242
|
return ps(e.data) || (n.data.format = D8({}, e.data.format, n.data.format)), !n.hasName() && e.data.name && (n.dataName = e.data.name), n;
|
|
37243
37243
|
{
|
|
37244
|
-
const i = new
|
|
37244
|
+
const i = new Ya(e.data);
|
|
37245
37245
|
return t.push(i), i;
|
|
37246
37246
|
}
|
|
37247
37247
|
} else
|
|
@@ -37281,7 +37281,7 @@ function yge(e, t, n) {
|
|
|
37281
37281
|
else if (Xfe(r))
|
|
37282
37282
|
e = new H0(e, r);
|
|
37283
37283
|
else if (ede(r))
|
|
37284
|
-
s = e =
|
|
37284
|
+
s = e = Ca.makeFromTransform(e, r), o = "derived";
|
|
37285
37285
|
else if (Hfe(r))
|
|
37286
37286
|
s = e = new I0(e, r), o = "derived";
|
|
37287
37287
|
else if (Gfe(r))
|
|
@@ -37311,13 +37311,13 @@ function G0(e) {
|
|
|
37311
37311
|
const c = t = Ch(ft.Raw, e, t);
|
|
37312
37312
|
if (st(e)) {
|
|
37313
37313
|
const m = Qi.makeFromEncoding(t, e);
|
|
37314
|
-
m && (t = m, ck(e) && (t = new Ms(t))), t =
|
|
37314
|
+
m && (t = m, ck(e) && (t = new Ms(t))), t = Ca.makeFromEncoding(t, e) ?? t, t = $o.makeFromEncoding(t, e) ?? t;
|
|
37315
37315
|
}
|
|
37316
37316
|
let f, d;
|
|
37317
37317
|
if (st(e)) {
|
|
37318
37318
|
const { markDef: m, mark: y, config: b } = e, _ = He("invalid", m, b), { marks: v, scales: w } = d = W9({
|
|
37319
37319
|
invalid: _,
|
|
37320
|
-
isPath:
|
|
37320
|
+
isPath: qs(y)
|
|
37321
37321
|
});
|
|
37322
37322
|
v !== w && w === "include-invalid-values" && (f = t = Ch(ft.PreFilterInvalid, e, t)), v === "exclude-invalid-values" && (t = Ru.make(t, e, d) ?? t);
|
|
37323
37323
|
}
|
|
@@ -37455,7 +37455,7 @@ class Ek extends jo {
|
|
|
37455
37455
|
}
|
|
37456
37456
|
function xge(e, t, n) {
|
|
37457
37457
|
const { encoding: i, config: r } = e, o = Ft(i[t]) ?? Ft(i[eo(t)]), s = e.axis(t) || {}, { format: a, formatType: l } = s;
|
|
37458
|
-
if (
|
|
37458
|
+
if (Ha(l))
|
|
37459
37459
|
return {
|
|
37460
37460
|
text: Zi({
|
|
37461
37461
|
fieldOrDatumDef: o,
|
|
@@ -38079,7 +38079,7 @@ function Zge(e) {
|
|
|
38079
38079
|
if (!(!z(s) && rr(s) && $_(s.value) || !s && $_(He("order", r, o)))) {
|
|
38080
38080
|
if ((z(s) || H(s)) && !n)
|
|
38081
38081
|
return sO(s, { expr: "datum" });
|
|
38082
|
-
if (
|
|
38082
|
+
if (qs(i)) {
|
|
38083
38083
|
const a = r.orient === "horizontal" ? "y" : "x", l = t[a];
|
|
38084
38084
|
if (H(l))
|
|
38085
38085
|
return { field: a };
|
|
@@ -38277,7 +38277,7 @@ class oL extends eL {
|
|
|
38277
38277
|
return this.markDef.type;
|
|
38278
38278
|
}
|
|
38279
38279
|
channelHasField(t) {
|
|
38280
|
-
return
|
|
38280
|
+
return Ea(this.encoding, t);
|
|
38281
38281
|
}
|
|
38282
38282
|
fieldDef(t) {
|
|
38283
38283
|
const n = this.encoding[t];
|
|
@@ -38470,7 +38470,7 @@ const rme = Eae.version, ome = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obj
|
|
|
38470
38470
|
pick: yu,
|
|
38471
38471
|
prefixGenerator: A_,
|
|
38472
38472
|
removePathFromField: Ju,
|
|
38473
|
-
replaceAll:
|
|
38473
|
+
replaceAll: za,
|
|
38474
38474
|
replacePathInField: Ni,
|
|
38475
38475
|
resetIdCounter: $ae,
|
|
38476
38476
|
setEqual: O8,
|
|
@@ -38513,15 +38513,15 @@ const Ml = "#fff", V3 = "#888", lme = {
|
|
|
38513
38513
|
gridColor: V3,
|
|
38514
38514
|
tickColor: Ml
|
|
38515
38515
|
}
|
|
38516
|
-
},
|
|
38516
|
+
}, Ks = "#4572a7", ume = {
|
|
38517
38517
|
background: "#fff",
|
|
38518
|
-
arc: { fill:
|
|
38519
|
-
area: { fill:
|
|
38520
|
-
line: { stroke:
|
|
38521
|
-
path: { stroke:
|
|
38522
|
-
rect: { fill:
|
|
38523
|
-
shape: { stroke:
|
|
38524
|
-
symbol: { fill:
|
|
38518
|
+
arc: { fill: Ks },
|
|
38519
|
+
area: { fill: Ks },
|
|
38520
|
+
line: { stroke: Ks, strokeWidth: 2 },
|
|
38521
|
+
path: { stroke: Ks },
|
|
38522
|
+
rect: { fill: Ks },
|
|
38523
|
+
shape: { stroke: Ks },
|
|
38524
|
+
symbol: { fill: Ks, strokeWidth: 1.5, size: 50 },
|
|
38525
38525
|
axis: {
|
|
38526
38526
|
bandPosition: 0.5,
|
|
38527
38527
|
grid: !0,
|
|
@@ -38556,9 +38556,9 @@ const Ml = "#fff", V3 = "#888", lme = {
|
|
|
38556
38556
|
"#a99cbc"
|
|
38557
38557
|
]
|
|
38558
38558
|
}
|
|
38559
|
-
},
|
|
38560
|
-
arc: { fill:
|
|
38561
|
-
area: { fill:
|
|
38559
|
+
}, Zs = "#30a2da", vy = "#cbcbcb", cme = "#999", fme = "#333", Y3 = "#f0f0f0", X3 = "#333", dme = {
|
|
38560
|
+
arc: { fill: Zs },
|
|
38561
|
+
area: { fill: Zs },
|
|
38562
38562
|
axis: {
|
|
38563
38563
|
domainColor: vy,
|
|
38564
38564
|
grid: !0,
|
|
@@ -38591,11 +38591,11 @@ const Ml = "#fff", V3 = "#888", lme = {
|
|
|
38591
38591
|
titlePadding: 10
|
|
38592
38592
|
},
|
|
38593
38593
|
line: {
|
|
38594
|
-
stroke:
|
|
38594
|
+
stroke: Zs,
|
|
38595
38595
|
strokeWidth: 2
|
|
38596
38596
|
},
|
|
38597
|
-
path: { stroke:
|
|
38598
|
-
rect: { fill:
|
|
38597
|
+
path: { stroke: Zs, strokeWidth: 0.5 },
|
|
38598
|
+
rect: { fill: Zs },
|
|
38599
38599
|
range: {
|
|
38600
38600
|
category: [
|
|
38601
38601
|
"#30a2da",
|
|
@@ -38618,10 +38618,10 @@ const Ml = "#fff", V3 = "#888", lme = {
|
|
|
38618
38618
|
filled: !0,
|
|
38619
38619
|
shape: "circle"
|
|
38620
38620
|
},
|
|
38621
|
-
shape: { stroke:
|
|
38621
|
+
shape: { stroke: Zs },
|
|
38622
38622
|
bar: {
|
|
38623
38623
|
binSpacing: 2,
|
|
38624
|
-
fill:
|
|
38624
|
+
fill: Zs,
|
|
38625
38625
|
stroke: null
|
|
38626
38626
|
},
|
|
38627
38627
|
title: {
|
|
@@ -38630,17 +38630,17 @@ const Ml = "#fff", V3 = "#888", lme = {
|
|
|
38630
38630
|
fontWeight: 600,
|
|
38631
38631
|
offset: 20
|
|
38632
38632
|
}
|
|
38633
|
-
},
|
|
38633
|
+
}, Js = "#000", hme = {
|
|
38634
38634
|
group: {
|
|
38635
38635
|
fill: "#e5e5e5"
|
|
38636
38636
|
},
|
|
38637
|
-
arc: { fill:
|
|
38638
|
-
area: { fill:
|
|
38639
|
-
line: { stroke:
|
|
38640
|
-
path: { stroke:
|
|
38641
|
-
rect: { fill:
|
|
38642
|
-
shape: { stroke:
|
|
38643
|
-
symbol: { fill:
|
|
38637
|
+
arc: { fill: Js },
|
|
38638
|
+
area: { fill: Js },
|
|
38639
|
+
line: { stroke: Js },
|
|
38640
|
+
path: { stroke: Js },
|
|
38641
|
+
rect: { fill: Js },
|
|
38642
|
+
shape: { stroke: Js },
|
|
38643
|
+
symbol: { fill: Js, size: 40 },
|
|
38644
38644
|
axis: {
|
|
38645
38645
|
domain: !1,
|
|
38646
38646
|
grid: !0,
|
|
@@ -38672,7 +38672,7 @@ const Ml = "#fff", V3 = "#888", lme = {
|
|
|
38672
38672
|
"#DCDCDC"
|
|
38673
38673
|
]
|
|
38674
38674
|
}
|
|
38675
|
-
}, pme = 22, gme = "normal", K3 = "Benton Gothic, sans-serif", Z3 = 11.5, mme = "normal",
|
|
38675
|
+
}, pme = 22, gme = "normal", K3 = "Benton Gothic, sans-serif", Z3 = 11.5, mme = "normal", Qs = "#82c6df", xy = "Benton Gothic Bold, sans-serif", J3 = "normal", Q3 = 13, Tc = {
|
|
38676
38676
|
"category-6": ["#ec8431", "#829eb1", "#c89d29", "#3580b1", "#adc839", "#ab7fb4"],
|
|
38677
38677
|
"fire-7": ["#fbf2c7", "#f9e39c", "#f8d36e", "#f4bb6a", "#e68a4f", "#d15a40", "#ab4232"],
|
|
38678
38678
|
"fireandice-6": ["#e68a4f", "#f4bb6a", "#f9e39c", "#dadfe2", "#a6b7c6", "#849eae"]
|
|
@@ -38685,13 +38685,13 @@ const Ml = "#fff", V3 = "#888", lme = {
|
|
|
38685
38685
|
fontSize: pme,
|
|
38686
38686
|
fontWeight: gme
|
|
38687
38687
|
},
|
|
38688
|
-
arc: { fill:
|
|
38689
|
-
area: { fill:
|
|
38690
|
-
line: { stroke:
|
|
38691
|
-
path: { stroke:
|
|
38692
|
-
rect: { fill:
|
|
38693
|
-
shape: { stroke:
|
|
38694
|
-
symbol: { fill:
|
|
38688
|
+
arc: { fill: Qs },
|
|
38689
|
+
area: { fill: Qs },
|
|
38690
|
+
line: { stroke: Qs, strokeWidth: 2 },
|
|
38691
|
+
path: { stroke: Qs },
|
|
38692
|
+
rect: { fill: Qs },
|
|
38693
|
+
shape: { stroke: Qs },
|
|
38694
|
+
symbol: { fill: Qs, size: 30 },
|
|
38695
38695
|
axis: {
|
|
38696
38696
|
labelFont: K3,
|
|
38697
38697
|
labelFontSize: Z3,
|
|
@@ -38730,15 +38730,15 @@ const Ml = "#fff", V3 = "#888", lme = {
|
|
|
38730
38730
|
ordinal: Tc["fire-7"],
|
|
38731
38731
|
ramp: Tc["fire-7"]
|
|
38732
38732
|
}
|
|
38733
|
-
},
|
|
38733
|
+
}, ea = "#ab5787", $h = "#979797", bme = {
|
|
38734
38734
|
background: "#f9f9f9",
|
|
38735
|
-
arc: { fill:
|
|
38736
|
-
area: { fill:
|
|
38737
|
-
line: { stroke:
|
|
38738
|
-
path: { stroke:
|
|
38739
|
-
rect: { fill:
|
|
38740
|
-
shape: { stroke:
|
|
38741
|
-
symbol: { fill:
|
|
38735
|
+
arc: { fill: ea },
|
|
38736
|
+
area: { fill: ea },
|
|
38737
|
+
line: { stroke: ea },
|
|
38738
|
+
path: { stroke: ea },
|
|
38739
|
+
rect: { fill: ea },
|
|
38740
|
+
shape: { stroke: ea },
|
|
38741
|
+
symbol: { fill: ea, size: 30 },
|
|
38742
38742
|
axis: {
|
|
38743
38743
|
domainColor: $h,
|
|
38744
38744
|
domainWidth: 0.5,
|
|
@@ -38780,15 +38780,15 @@ const Ml = "#fff", V3 = "#888", lme = {
|
|
|
38780
38780
|
"#c4c4c4"
|
|
38781
38781
|
]
|
|
38782
38782
|
}
|
|
38783
|
-
},
|
|
38783
|
+
}, ta = "#3e5c69", _me = {
|
|
38784
38784
|
background: "#fff",
|
|
38785
|
-
arc: { fill:
|
|
38786
|
-
area: { fill:
|
|
38787
|
-
line: { stroke:
|
|
38788
|
-
path: { stroke:
|
|
38789
|
-
rect: { fill:
|
|
38790
|
-
shape: { stroke:
|
|
38791
|
-
symbol: { fill:
|
|
38785
|
+
arc: { fill: ta },
|
|
38786
|
+
area: { fill: ta },
|
|
38787
|
+
line: { stroke: ta },
|
|
38788
|
+
path: { stroke: ta },
|
|
38789
|
+
rect: { fill: ta },
|
|
38790
|
+
shape: { stroke: ta },
|
|
38791
|
+
symbol: { fill: ta },
|
|
38792
38792
|
axis: {
|
|
38793
38793
|
domainWidth: 0.5,
|
|
38794
38794
|
grid: !0,
|
|
@@ -38919,14 +38919,14 @@ const Ml = "#fff", V3 = "#888", lme = {
|
|
|
38919
38919
|
arc: { fill: mi },
|
|
38920
38920
|
shape: { stroke: mi },
|
|
38921
38921
|
symbol: { fill: mi, size: 30 }
|
|
38922
|
-
},
|
|
38923
|
-
arc: { fill:
|
|
38924
|
-
area: { fill:
|
|
38925
|
-
path: { stroke:
|
|
38926
|
-
rect: { fill:
|
|
38927
|
-
shape: { stroke:
|
|
38928
|
-
symbol: { stroke:
|
|
38929
|
-
circle: { fill:
|
|
38922
|
+
}, na = "#3366CC", tM = "#ccc", Mh = "Arial, sans-serif", Cme = {
|
|
38923
|
+
arc: { fill: na },
|
|
38924
|
+
area: { fill: na },
|
|
38925
|
+
path: { stroke: na },
|
|
38926
|
+
rect: { fill: na },
|
|
38927
|
+
shape: { stroke: na },
|
|
38928
|
+
symbol: { stroke: na },
|
|
38929
|
+
circle: { fill: na },
|
|
38930
38930
|
background: "#fff",
|
|
38931
38931
|
padding: {
|
|
38932
38932
|
top: 10,
|
|
@@ -39484,7 +39484,7 @@ function rv(e) {
|
|
|
39484
39484
|
}
|
|
39485
39485
|
return !0;
|
|
39486
39486
|
}
|
|
39487
|
-
function
|
|
39487
|
+
function sa(e) {
|
|
39488
39488
|
return e.indexOf("/") === -1 && e.indexOf("~") === -1 ? e : e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
39489
39489
|
}
|
|
39490
39490
|
function hL(e) {
|
|
@@ -39540,12 +39540,12 @@ var pL = (
|
|
|
39540
39540
|
move: function(e, t, n) {
|
|
39541
39541
|
var i = zg(n, this.path);
|
|
39542
39542
|
i && (i = ri(i));
|
|
39543
|
-
var r =
|
|
39544
|
-
return
|
|
39543
|
+
var r = Sa(n, { op: "remove", path: this.from }).removed;
|
|
39544
|
+
return Sa(n, { op: "add", path: this.path, value: r }), { newDocument: n, removed: i };
|
|
39545
39545
|
},
|
|
39546
39546
|
copy: function(e, t, n) {
|
|
39547
39547
|
var i = zg(n, this.from);
|
|
39548
|
-
return
|
|
39548
|
+
return Sa(n, { op: "add", path: this.path, value: ri(i) }), { newDocument: n };
|
|
39549
39549
|
},
|
|
39550
39550
|
test: function(e, t, n) {
|
|
39551
39551
|
return { newDocument: n, test: Vf(e[t], this.value) };
|
|
@@ -39574,9 +39574,9 @@ function zg(e, t) {
|
|
|
39574
39574
|
if (t == "")
|
|
39575
39575
|
return e;
|
|
39576
39576
|
var n = { op: "_get", path: t };
|
|
39577
|
-
return
|
|
39577
|
+
return Sa(e, n), n.value;
|
|
39578
39578
|
}
|
|
39579
|
-
function
|
|
39579
|
+
function Sa(e, t, n, i, r, o) {
|
|
39580
39580
|
if (n === void 0 && (n = !1), i === void 0 && (i = !0), r === void 0 && (r = !0), o === void 0 && (o = 0), n && (typeof n == "function" ? n(t, 0, e, t.path) : Bg(t, 0)), t.path === "") {
|
|
39581
39581
|
var s = { newDocument: e };
|
|
39582
39582
|
if (t.op === "add")
|
|
@@ -39636,11 +39636,11 @@ function Y0(e, t, n, i, r) {
|
|
|
39636
39636
|
throw new pt("Patch sequence must be an array", "SEQUENCE_NOT_AN_ARRAY");
|
|
39637
39637
|
i || (e = ri(e));
|
|
39638
39638
|
for (var o = new Array(t.length), s = 0, a = t.length; s < a; s++)
|
|
39639
|
-
o[s] =
|
|
39639
|
+
o[s] = Sa(e, t[s], n, !0, r, s), e = o[s].newDocument;
|
|
39640
39640
|
return o.newDocument = e, o;
|
|
39641
39641
|
}
|
|
39642
39642
|
function o0e(e, t, n) {
|
|
39643
|
-
var i =
|
|
39643
|
+
var i = Sa(e, t);
|
|
39644
39644
|
if (i.test === !1)
|
|
39645
39645
|
throw new pt("Test operation failed", "TEST_OPERATION_FAILED", n, t, e);
|
|
39646
39646
|
return i.newDocument;
|
|
@@ -39724,7 +39724,7 @@ var s0e = /* @__PURE__ */ Object.freeze({
|
|
|
39724
39724
|
__proto__: null,
|
|
39725
39725
|
JsonPatchError: pt,
|
|
39726
39726
|
_areEquals: Vf,
|
|
39727
|
-
applyOperation:
|
|
39727
|
+
applyOperation: Sa,
|
|
39728
39728
|
applyPatch: Y0,
|
|
39729
39729
|
applyReducer: o0e,
|
|
39730
39730
|
deepClone: i0e,
|
|
@@ -39798,13 +39798,13 @@ function Tk(e, t, n, i, r) {
|
|
|
39798
39798
|
var u = s[l], c = e[u];
|
|
39799
39799
|
if (nv(t, u) && !(t[u] === void 0 && c !== void 0 && Array.isArray(t) === !1)) {
|
|
39800
39800
|
var f = t[u];
|
|
39801
|
-
typeof c == "object" && c != null && typeof f == "object" && f != null && Array.isArray(c) === Array.isArray(f) ? Tk(c, f, n, i + "/" +
|
|
39802
|
-
} else Array.isArray(e) === Array.isArray(t) ? (r && n.push({ op: "test", path: i + "/" +
|
|
39801
|
+
typeof c == "object" && c != null && typeof f == "object" && f != null && Array.isArray(c) === Array.isArray(f) ? Tk(c, f, n, i + "/" + sa(u), r) : c !== f && (r && n.push({ op: "test", path: i + "/" + sa(u), value: ri(c) }), n.push({ op: "replace", path: i + "/" + sa(u), value: ri(f) }));
|
|
39802
|
+
} else Array.isArray(e) === Array.isArray(t) ? (r && n.push({ op: "test", path: i + "/" + sa(u), value: ri(c) }), n.push({ op: "remove", path: i + "/" + sa(u) }), a = !0) : (r && n.push({ op: "test", path: i, value: e }), n.push({ op: "replace", path: i, value: t }));
|
|
39803
39803
|
}
|
|
39804
39804
|
if (!(!a && o.length == s.length))
|
|
39805
39805
|
for (var l = 0; l < o.length; l++) {
|
|
39806
39806
|
var u = o[l];
|
|
39807
|
-
!nv(e, u) && t[u] !== void 0 && n.push({ op: "add", path: i + "/" +
|
|
39807
|
+
!nv(e, u) && t[u] !== void 0 && n.push({ op: "add", path: i + "/" + sa(u), value: ri(t[u]) });
|
|
39808
39808
|
}
|
|
39809
39809
|
}
|
|
39810
39810
|
}
|
|
@@ -39823,7 +39823,7 @@ var g0e = /* @__PURE__ */ Object.freeze({
|
|
|
39823
39823
|
Object.assign({}, s0e, g0e, {
|
|
39824
39824
|
JsonPatchError: pL,
|
|
39825
39825
|
deepClone: ri,
|
|
39826
|
-
escapePathComponent:
|
|
39826
|
+
escapePathComponent: sa,
|
|
39827
39827
|
unescapePathComponent: hL
|
|
39828
39828
|
});
|
|
39829
39829
|
function m0e(e) {
|
|
@@ -40728,7 +40728,7 @@ function W0e() {
|
|
|
40728
40728
|
var H0e = W0e();
|
|
40729
40729
|
const G0e = /* @__PURE__ */ q0e(H0e);
|
|
40730
40730
|
function V0e(e) {
|
|
40731
|
-
const [t, n] =
|
|
40731
|
+
const [t, n] = ma.useState(null), { ref: i, spec: r, onEmbed: o, onError: s, options: a = {} } = e;
|
|
40732
40732
|
return Y0e(() => {
|
|
40733
40733
|
let l = !1, u = null;
|
|
40734
40734
|
return (async () => {
|
|
@@ -40748,13 +40748,13 @@ function V0e(e) {
|
|
|
40748
40748
|
}, [r, a]), t;
|
|
40749
40749
|
}
|
|
40750
40750
|
function Y0e(e, t) {
|
|
40751
|
-
const n =
|
|
40752
|
-
(!n.current || !G0e(t, n.current)) && (i.current += 1), n.current = t,
|
|
40751
|
+
const n = ma.useRef(null), i = ma.useRef(0);
|
|
40752
|
+
(!n.current || !G0e(t, n.current)) && (i.current += 1), n.current = t, ma.useEffect(e, [i.current]);
|
|
40753
40753
|
}
|
|
40754
|
-
const vL =
|
|
40754
|
+
const vL = ma.forwardRef(
|
|
40755
40755
|
(e, t) => {
|
|
40756
|
-
const { spec: n, options: i, onEmbed: r, onError: o, ...s } = e, a =
|
|
40757
|
-
return
|
|
40756
|
+
const { spec: n, options: i, onEmbed: r, onError: o, ...s } = e, a = ma.useRef(null);
|
|
40757
|
+
return ma.useImperativeHandle(t, () => {
|
|
40758
40758
|
if (!a.current)
|
|
40759
40759
|
throw new Error("VegaEmbed: ref is not attached to a div element");
|
|
40760
40760
|
return a.current;
|
|
@@ -40842,7 +40842,7 @@ function r1e(e) {
|
|
|
40842
40842
|
}
|
|
40843
40843
|
);
|
|
40844
40844
|
}
|
|
40845
|
-
const o1e = "_video_box_119ne_1", s1e = "_video_preview_119ne_12", a1e = "_play_button_119ne_25", l1e = "_duration_badge_119ne_39", u1e = "_video_player_wrapper_119ne_51", c1e = "_video_player_119ne_51", f1e = "_youtube_player_119ne_69",
|
|
40845
|
+
const o1e = "_video_box_119ne_1", s1e = "_video_preview_119ne_12", a1e = "_play_button_119ne_25", l1e = "_duration_badge_119ne_39", u1e = "_video_player_wrapper_119ne_51", c1e = "_video_player_119ne_51", f1e = "_youtube_player_119ne_69", ia = {
|
|
40846
40846
|
video_box: o1e,
|
|
40847
40847
|
video_preview: s1e,
|
|
40848
40848
|
play_button: a1e,
|
|
@@ -40960,10 +40960,10 @@ function p1e(e) {
|
|
|
40960
40960
|
references: n.references,
|
|
40961
40961
|
time: t.time,
|
|
40962
40962
|
message: t,
|
|
40963
|
-
children: /* @__PURE__ */ k("div", { ref: d, className:
|
|
40963
|
+
children: /* @__PURE__ */ k("div", { ref: d, className: ia.video_box, children: u ? /* @__PURE__ */ k("div", { className: ia.video_player_wrapper, style: A, children: v && E ? /* @__PURE__ */ k(
|
|
40964
40964
|
"iframe",
|
|
40965
40965
|
{
|
|
40966
|
-
className:
|
|
40966
|
+
className: ia.youtube_player,
|
|
40967
40967
|
src: E,
|
|
40968
40968
|
title: "YouTube video player",
|
|
40969
40969
|
frameBorder: "0",
|
|
@@ -40974,20 +40974,20 @@ function p1e(e) {
|
|
|
40974
40974
|
"video",
|
|
40975
40975
|
{
|
|
40976
40976
|
ref: f,
|
|
40977
|
-
className:
|
|
40977
|
+
className: ia.video_player,
|
|
40978
40978
|
src: r,
|
|
40979
40979
|
controls: !0,
|
|
40980
40980
|
autoPlay: !0,
|
|
40981
40981
|
onEnded: () => c(!1),
|
|
40982
40982
|
onLoadedMetadata: S
|
|
40983
40983
|
}
|
|
40984
|
-
) }) : /* @__PURE__ */ Y("div", { className:
|
|
40984
|
+
) }) : /* @__PURE__ */ Y("div", { className: ia.video_preview, onClick: x, children: [
|
|
40985
40985
|
/* @__PURE__ */ k("img", { src: i, alt: "Video preview", onLoad: _ }),
|
|
40986
|
-
/* @__PURE__ */ k("div", { className:
|
|
40986
|
+
/* @__PURE__ */ k("div", { className: ia.play_button, children: /* @__PURE__ */ Y("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
40987
40987
|
/* @__PURE__ */ k("circle", { cx: "24", cy: "24", r: "24", fill: "rgba(0, 0, 0, 0.6)" }),
|
|
40988
40988
|
/* @__PURE__ */ k("path", { d: "M18 14L18 34L32 24L18 14Z", fill: "white" })
|
|
40989
40989
|
] }) }),
|
|
40990
|
-
o && /* @__PURE__ */ k("div", { className:
|
|
40990
|
+
o && /* @__PURE__ */ k("div", { className: ia.duration_badge, children: C(o) })
|
|
40991
40991
|
] }) })
|
|
40992
40992
|
}
|
|
40993
40993
|
)
|
|
@@ -41132,7 +41132,7 @@ function I1e({ message: e }) {
|
|
|
41132
41132
|
}),
|
|
41133
41133
|
[i]
|
|
41134
41134
|
), s = i?.template?.TextMessageTemplate?.style;
|
|
41135
|
-
return /* @__PURE__ */ Y(
|
|
41135
|
+
return /* @__PURE__ */ Y(Ka, { children: [
|
|
41136
41136
|
/* @__PURE__ */ Y(
|
|
41137
41137
|
dn,
|
|
41138
41138
|
{
|
|
@@ -41337,7 +41337,7 @@ function LM({ title: e, data: t }) {
|
|
|
41337
41337
|
}, []), a = pe(() => {
|
|
41338
41338
|
i(!1);
|
|
41339
41339
|
}, []);
|
|
41340
|
-
return /* @__PURE__ */ Y(
|
|
41340
|
+
return /* @__PURE__ */ Y(Ka, { children: [
|
|
41341
41341
|
/* @__PURE__ */ Y("div", { className: Ce.json_viewer, children: [
|
|
41342
41342
|
/* @__PURE__ */ Y("div", { className: Ce.json_viewer__header, children: [
|
|
41343
41343
|
/* @__PURE__ */ k("span", { className: Ce.json_viewer__title, children: e }),
|
|
@@ -41534,7 +41534,7 @@ function Wye(e) {
|
|
|
41534
41534
|
}
|
|
41535
41535
|
)
|
|
41536
41536
|
] }),
|
|
41537
|
-
s.length === 0 ? /* @__PURE__ */ k("div", { className: kt.empty_state, children: "No data available" }) : /* @__PURE__ */ Y(
|
|
41537
|
+
s.length === 0 ? /* @__PURE__ */ k("div", { className: kt.empty_state, children: "No data available" }) : /* @__PURE__ */ Y(Ka, { children: [
|
|
41538
41538
|
/* @__PURE__ */ k("div", { className: kt.table_wrapper, children: /* @__PURE__ */ Y("table", { className: kt.table, children: [
|
|
41539
41539
|
/* @__PURE__ */ k("thead", { className: kt.table_header, children: /* @__PURE__ */ k("tr", { children: o.map((S, A) => /* @__PURE__ */ k("th", { className: kt.table_header_cell, children: S.header }, A)) }) }),
|
|
41540
41540
|
/* @__PURE__ */ k("tbody", { children: b.map((S, A) => /* @__PURE__ */ k("tr", { className: kt.table_row, children: o.map((M, F) => {
|
|
@@ -41586,7 +41586,7 @@ function Hye(e) {
|
|
|
41586
41586
|
return t.type === "bot" ? /* @__PURE__ */ Y(dn, { type: "bot", direction: "horizontal", children: [
|
|
41587
41587
|
/* @__PURE__ */ k(ci, { avatar: i }),
|
|
41588
41588
|
/* @__PURE__ */ k(ui, { message: t, time: t.time, children: a })
|
|
41589
|
-
] }) : t.type === "user" ? /* @__PURE__ */ k(dn, { type: "user", direction: "horizontal", children: a }) :
|
|
41589
|
+
] }) : t.type === "user" ? /* @__PURE__ */ k(dn, { type: "user", direction: "horizontal", children: a }) : a;
|
|
41590
41590
|
}, [t, i]), o = pe(() => {
|
|
41591
41591
|
if (t.type === "user")
|
|
41592
41592
|
return t.blobIds && t.blobIds.length > 0 ? /* @__PURE__ */ k(I1e, { message: { type: "user", message: t } }) : /* @__PURE__ */ k(Yk, { message: t });
|
|
@@ -41926,7 +41926,7 @@ function Lbe(e) {
|
|
|
41926
41926
|
},
|
|
41927
41927
|
[t, n]
|
|
41928
41928
|
);
|
|
41929
|
-
return /* @__PURE__ */ Y(
|
|
41929
|
+
return /* @__PURE__ */ Y(Ka, { children: [
|
|
41930
41930
|
/* @__PURE__ */ k(
|
|
41931
41931
|
"input",
|
|
41932
41932
|
{
|
|
@@ -42371,7 +42371,7 @@ function Ibe() {
|
|
|
42371
42371
|
]
|
|
42372
42372
|
}
|
|
42373
42373
|
)
|
|
42374
|
-
] }) : /* @__PURE__ */ Y(
|
|
42374
|
+
] }) : /* @__PURE__ */ Y(Ka, { children: [
|
|
42375
42375
|
g && /* @__PURE__ */ k(
|
|
42376
42376
|
"button",
|
|
42377
42377
|
{
|
|
@@ -42630,7 +42630,7 @@ const Hbe = "_chatbot__auth_state_container_1hs4h_1", Gbe = "_chatbot__error_sta
|
|
|
42630
42630
|
}
|
|
42631
42631
|
) });
|
|
42632
42632
|
default:
|
|
42633
|
-
return /* @__PURE__ */ Y(
|
|
42633
|
+
return /* @__PURE__ */ Y(Ka, { children: [
|
|
42634
42634
|
/* @__PURE__ */ k(
|
|
42635
42635
|
YL,
|
|
42636
42636
|
{
|