@asgard-js/react 0.1.14-canary.1 → 0.1.14-canary.2

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/index.js CHANGED
@@ -7,7 +7,7 @@ var U = (e, t, n) => xP(e, typeof t != "symbol" ? t + "" : t, n), rk = (e, t, n)
7
7
  var ok = (e, t, n) => (rk(e, t, "read from private field"), n ? n.call(e) : t.get(e)), sk = (e, t, n) => t.has(e) ? ik("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), l1 = (e, t, n, i) => (rk(e, t, "write to private field"), i ? i.call(e, n) : t.set(e, n), n);
8
8
  import { jsx as T, jsxs as de, Fragment as ld } from "react/jsx-runtime";
9
9
  import * as ve from "react";
10
- import ha, { useRef as ii, useEffect as _t, useState as Ze, useCallback as Ve, useMemo as Ie, createContext as nm, useContext as im, useImperativeHandle as _P, memo as wP, forwardRef as EP } from "react";
10
+ import ha, { useRef as kn, useEffect as ht, useState as Ze, useCallback as Ve, useMemo as Ie, createContext as nm, useContext as im, useImperativeHandle as _P, memo as wP, forwardRef as EP } from "react";
11
11
  import { AsgardServiceClient as SP, EventType as fu, Conversation as CP, Channel as kP, MessageTemplateType as ea } from "@asgard-js/core";
12
12
  function ak(e) {
13
13
  return e !== null && typeof e == "object" && !Array.isArray(e);
@@ -86,20 +86,20 @@ const aF = (e) => JSON.parse(e.annotations["asgard-ai.com/additional-annotation"
86
86
  };
87
87
  };
88
88
  function FP(e) {
89
- const { config: t } = e, { onRunInit: n, onProcess: i, onMessage: r, onToolCall: o, onRunDone: s, onRunError: a } = t, u = ii(null);
90
- return u.current || (u.current = new SP(t)), _t(() => () => {
89
+ const { config: t } = e, { onRunInit: n, onProcess: i, onMessage: r, onToolCall: o, onRunDone: s, onRunError: a } = t, u = kn(null);
90
+ return u.current || (u.current = new SP(t)), ht(() => () => {
91
91
  u.current && (u.current.close(), u.current = null);
92
- }, []), _t(() => {
92
+ }, []), ht(() => {
93
93
  !u.current || !n || u.current.on(fu.INIT, n);
94
- }, [n]), _t(() => {
94
+ }, [n]), ht(() => {
95
95
  !u.current || !i || u.current.on(fu.PROCESS, i);
96
- }, [i]), _t(() => {
96
+ }, [i]), ht(() => {
97
97
  !u.current || !r || u.current.on(fu.MESSAGE, r);
98
- }, [r]), _t(() => {
98
+ }, [r]), ht(() => {
99
99
  !u.current || !o || u.current.on(fu.TOOL_CALL, o);
100
- }, [o]), _t(() => {
100
+ }, [o]), ht(() => {
101
101
  !u.current || !s || u.current.on(fu.DONE, s);
102
- }, [s]), _t(() => {
102
+ }, [s]), ht(() => {
103
103
  !u.current || !a || u.current.on(fu.ERROR, a);
104
104
  }, [a]), u.current;
105
105
  }
@@ -160,9 +160,9 @@ function TP(e) {
160
160
  (E) => l == null ? void 0 : l.sendMessage({ ...E, customMessageId: o }),
161
161
  [l, o]
162
162
  );
163
- return _t(() => {
163
+ return ht(() => {
164
164
  !l && f && v(i);
165
- }, [l, f, v, i]), _t(() => () => x(), [x]), Ie(
165
+ }, [l, f, v, i]), ht(() => () => x(), [x]), Ie(
166
166
  () => ({
167
167
  isOpen: f,
168
168
  isResetting: h,
@@ -177,7 +177,7 @@ function TP(e) {
177
177
  }
178
178
  function NP(e, t) {
179
179
  const [n, i] = Ze(e);
180
- return _t(() => {
180
+ return ht(() => {
181
181
  const r = window.setTimeout(() => {
182
182
  i(e);
183
183
  }, t ?? 300);
@@ -186,7 +186,7 @@ function NP(e, t) {
186
186
  }
187
187
  function RP(e) {
188
188
  const { ref: t, onResize: n } = e;
189
- _t(() => {
189
+ ht(() => {
190
190
  const i = new ResizeObserver((r) => {
191
191
  for (const o of r) {
192
192
  const { width: s, height: a } = o.contentRect;
@@ -227,12 +227,12 @@ function tb(e, t) {
227
227
  return e === t;
228
228
  }
229
229
  function uk(e, t) {
230
- const n = ii(), i = ii();
230
+ const n = kn(), i = kn();
231
231
  return (!i.current || !tb(i.current, t)) && (i.current = t, n.current = e()), n.current;
232
232
  }
233
233
  function gye(e, t = 50) {
234
234
  const [n, i] = Ze(!0);
235
- return _t(() => {
235
+ return ht(() => {
236
236
  const r = e.current;
237
237
  if (!r) return;
238
238
  function o() {
@@ -246,7 +246,7 @@ function gye(e, t = 50) {
246
246
  }, [e, t]), n;
247
247
  }
248
248
  function OP(e) {
249
- _t(() => {
249
+ ht(() => {
250
250
  const t = e.current, n = window.visualViewport;
251
251
  if (!t || !n)
252
252
  return;
@@ -285,7 +285,7 @@ const lF = nm({
285
285
  () => _p({ annotations: o.getAnnotations }, n),
286
286
  [...DP(n), o]
287
287
  ), [a, u] = Ze({}), [l, c] = Ze(!0), [f, d] = Ze(null);
288
- return _t(() => {
288
+ return ht(() => {
289
289
  let h = !0;
290
290
  if (t)
291
291
  return c(!0), Promise.all(
@@ -425,7 +425,7 @@ function lk(e) {
425
425
  data: { annotations: i }
426
426
  } = yx(), r = Ve(
427
427
  function() {
428
- var c, f, d, h, p, g, m, y, b, v, x, _, E, w, S, C, $, A, R, N, M, k, F, D, B, I, J, se, oe, pe, Ne, he, gt, hi, Rn, te, ge, xe, q, st, Ae, nt, ct, gn, Io, nc, ic, rc, oc, sc, ac, uc, lc, cc, fc, dc, hc, pc, gc, mc, yc, bc, vc, ee, me, Ge, St, Xn, mt, jt, Jt, Jr, cu, xc, ih, HS, GS, VS, YS, XS, KS, ZS, JS, QS, eC, tC, nC, iC, rC, oC, sC, aC, uC, lC, cC, fC, dC, hC, pC, gC, mC, yC, bC, vC, xC, _C, wC, EC, SC, CC, kC, $C, AC, MC, FC, TC, NC, RC, OC, DC, LC, PC, IC, zC, BC, UC, jC, qC, WC, HC, GC, VC, YC, XC, KC, ZC, JC, QC, ek, tk, nk;
428
+ var c, f, d, h, p, g, m, y, b, v, x, _, E, w, S, C, $, A, R, N, M, k, F, D, B, I, J, se, oe, pe, Ne, he, mt, hi, On, te, ge, xe, q, st, Ae, nt, ct, gn, Io, nc, ic, rc, oc, sc, ac, uc, lc, cc, fc, dc, hc, pc, gc, mc, yc, bc, vc, ee, me, Ge, St, Kn, yt, jt, Jt, Jr, cu, xc, ih, HS, GS, VS, YS, XS, KS, ZS, JS, QS, eC, tC, nC, iC, rC, oC, sC, aC, uC, lC, cC, fC, dC, hC, pC, gC, mC, yC, bC, vC, xC, _C, wC, EC, SC, CC, kC, $C, AC, MC, FC, TC, NC, RC, OC, DC, LC, PC, IC, zC, BC, UC, jC, qC, WC, HC, GC, VC, YC, XC, KC, ZC, JC, QC, ek, tk, nk;
429
429
  const a = ((c = i == null ? void 0 : i.embedConfig) == null ? void 0 : c.theme) ?? {
430
430
  chatbot: {},
431
431
  botMessage: {},
@@ -505,10 +505,10 @@ function lk(e) {
505
505
  quickReplies: {
506
506
  button: {
507
507
  style: {
508
- color: (gt = (he = a.chatbot) == null ? void 0 : he.primaryComponent) == null ? void 0 : gt.secondaryColor,
508
+ color: (mt = (he = a.chatbot) == null ? void 0 : he.primaryComponent) == null ? void 0 : mt.secondaryColor,
509
509
  // Button text (#FFFFFF)
510
510
  borderColor: (hi = a.chatbot) == null ? void 0 : hi.borderColor,
511
- backgroundColor: (Rn = a.botMessage) != null && Rn.backgroundColor ? `${a.botMessage.backgroundColor}33` : void 0
511
+ backgroundColor: (On = a.botMessage) != null && On.backgroundColor ? `${a.botMessage.backgroundColor}33` : void 0
512
512
  }
513
513
  }
514
514
  },
@@ -578,9 +578,9 @@ function lk(e) {
578
578
  }), l = _p(u, n);
579
579
  if ((yc = n == null ? void 0 : n.chatbot) != null && yc.borderColor) {
580
580
  const Re = n.chatbot.borderColor;
581
- (bc = l.chatbot.header) != null && bc.style && (l.chatbot.header.style.borderBottomColor = Re), (vc = l.chatbot.footer) != null && vc.style && (l.chatbot.footer.style.borderTopColor = Re), (me = (ee = l.chatbot.footer) == null ? void 0 : ee.textArea) != null && me.style && (l.chatbot.footer.textArea.style.borderColor = Re), (Xn = (St = (Ge = l.template) == null ? void 0 : Ge.quickReplies) == null ? void 0 : St.button) != null && Xn.style && (l.template.quickReplies.button.style.borderColor = Re);
581
+ (bc = l.chatbot.header) != null && bc.style && (l.chatbot.header.style.borderBottomColor = Re), (vc = l.chatbot.footer) != null && vc.style && (l.chatbot.footer.style.borderTopColor = Re), (me = (ee = l.chatbot.footer) == null ? void 0 : ee.textArea) != null && me.style && (l.chatbot.footer.textArea.style.borderColor = Re), (Kn = (St = (Ge = l.template) == null ? void 0 : Ge.quickReplies) == null ? void 0 : St.button) != null && Kn.style && (l.template.quickReplies.button.style.borderColor = Re);
582
582
  }
583
- if ((jt = (mt = n == null ? void 0 : n.chatbot) == null ? void 0 : mt.primaryComponent) != null && jt.secondaryColor) {
583
+ if ((jt = (yt = n == null ? void 0 : n.chatbot) == null ? void 0 : yt.primaryComponent) != null && jt.secondaryColor) {
584
584
  const Re = n.chatbot.primaryComponent.secondaryColor;
585
585
  (Jr = (Jt = l.chatbot.footer) == null ? void 0 : Jt.textArea) != null && Jr.style && (l.chatbot.footer.textArea.style.color = Re), (xc = (cu = l.chatbot.footer) == null ? void 0 : cu.attachmentButton) != null && xc.style && (l.chatbot.footer.attachmentButton.style.color = Re), (HS = (ih = l.chatbot.footer) == null ? void 0 : ih.submitButton) != null && HS.style && (l.chatbot.footer.submitButton.style.color = Re), (VS = (GS = l.chatbot.footer) == null ? void 0 : GS.speechInputButton) != null && VS.style && (l.chatbot.footer.speechInputButton.style.color = Re);
586
586
  }
@@ -660,7 +660,7 @@ function ck(e) {
660
660
  initMessages: d,
661
661
  onSseMessage: h,
662
662
  onAuthError: p
663
- } = e, g = ii(null), m = ii(null), [y, b] = Ze(!0), v = Ve((k) => {
663
+ } = e, g = kn(null), m = kn(null), [y, b] = Ze(!0), v = Ve((k) => {
664
664
  b(k);
665
665
  }, []), x = Ve((k = "smooth") => {
666
666
  const F = g.current;
@@ -779,7 +779,7 @@ function mF(e) {
779
779
  }
780
780
  ) : /* @__PURE__ */ T(IP, {});
781
781
  }
782
- const zP = (e) => /* @__PURE__ */ ve.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }), /* @__PURE__ */ ve.createElement("circle", { cx: 12, cy: 12, r: 3 })), BP = (e) => /* @__PURE__ */ ve.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }), /* @__PURE__ */ ve.createElement("line", { x1: 1, y1: 1, x2: 23, y2: 23 })), UP = "_api_key_input_7488d_1", jP = "_api_key_input__header_7488d_18", qP = "_api_key_input__title_7488d_31", WP = "_api_key_input__form_7488d_38", HP = "_api_key_input__label_7488d_45", GP = "_api_key_input__input_wrapper_7488d_52", VP = "_api_key_input__input_7488d_52", YP = "_api_key_input__toggle_button_7488d_93", XP = "_api_key_input__toggle_icon_7488d_118", KP = "_api_key_input__error_message_7488d_123", ZP = "_api_key_input__submit_button_7488d_129", On = {
782
+ const zP = (e) => /* @__PURE__ */ ve.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }), /* @__PURE__ */ ve.createElement("circle", { cx: 12, cy: 12, r: 3 })), BP = (e) => /* @__PURE__ */ ve.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }), /* @__PURE__ */ ve.createElement("line", { x1: 1, y1: 1, x2: 23, y2: 23 })), UP = "_api_key_input_7488d_1", jP = "_api_key_input__header_7488d_18", qP = "_api_key_input__title_7488d_31", WP = "_api_key_input__form_7488d_38", HP = "_api_key_input__label_7488d_45", GP = "_api_key_input__input_wrapper_7488d_52", VP = "_api_key_input__input_7488d_52", YP = "_api_key_input__toggle_button_7488d_93", XP = "_api_key_input__toggle_icon_7488d_118", KP = "_api_key_input__error_message_7488d_123", ZP = "_api_key_input__submit_button_7488d_129", Dn = {
783
783
  api_key_input: UP,
784
784
  api_key_input__header: jP,
785
785
  api_key_input__title: qP,
@@ -814,20 +814,20 @@ function fk({
814
814
  return /* @__PURE__ */ de(
815
815
  "div",
816
816
  {
817
- className: tt(On.api_key_input, s),
817
+ className: tt(Dn.api_key_input, s),
818
818
  style: {
819
819
  backgroundColor: f.backgroundColor,
820
820
  borderColor: f.borderColor
821
821
  },
822
822
  children: [
823
- /* @__PURE__ */ de("div", { className: On.api_key_input__header, children: [
823
+ /* @__PURE__ */ de("div", { className: Dn.api_key_input__header, children: [
824
824
  /* @__PURE__ */ T(mF, { avatar: d }),
825
- /* @__PURE__ */ T("h2", { className: On.api_key_input__title, style: (y = (m = f == null ? void 0 : f.header) == null ? void 0 : m.title) == null ? void 0 : y.style, children: r })
825
+ /* @__PURE__ */ T("h2", { className: Dn.api_key_input__title, style: (y = (m = f == null ? void 0 : f.header) == null ? void 0 : m.title) == null ? void 0 : y.style, children: r })
826
826
  ] }),
827
- /* @__PURE__ */ de("form", { onSubmit: h, className: On.api_key_input__form, children: [
827
+ /* @__PURE__ */ de("form", { onSubmit: h, className: Dn.api_key_input__form, children: [
828
828
  /* @__PURE__ */ de("div", { children: [
829
- /* @__PURE__ */ T("label", { className: On.api_key_input__label, children: "Key" }),
830
- /* @__PURE__ */ de("div", { className: On.api_key_input__input_wrapper, children: [
829
+ /* @__PURE__ */ T("label", { className: Dn.api_key_input__label, children: "Key" }),
830
+ /* @__PURE__ */ de("div", { className: Dn.api_key_input__input_wrapper, children: [
831
831
  /* @__PURE__ */ T(
832
832
  "input",
833
833
  {
@@ -835,9 +835,9 @@ function fk({
835
835
  value: a,
836
836
  onChange: p,
837
837
  placeholder: i,
838
- className: tt(On.api_key_input__input, {
839
- [On["api_key_input__input--error"]]: n,
840
- [On["api_key_input__input--disabled"]]: t
838
+ className: tt(Dn.api_key_input__input, {
839
+ [Dn["api_key_input__input--error"]]: n,
840
+ [Dn["api_key_input__input--disabled"]]: t
841
841
  }),
842
842
  disabled: t,
843
843
  autoComplete: "off"
@@ -848,21 +848,21 @@ function fk({
848
848
  {
849
849
  type: "button",
850
850
  onClick: g,
851
- className: On.api_key_input__toggle_button,
851
+ className: Dn.api_key_input__toggle_button,
852
852
  disabled: t,
853
853
  "aria-label": l ? "Hide password" : "Show password",
854
- children: l ? /* @__PURE__ */ T(BP, { className: On.api_key_input__toggle_icon }) : /* @__PURE__ */ T(zP, { className: On.api_key_input__toggle_icon })
854
+ children: l ? /* @__PURE__ */ T(BP, { className: Dn.api_key_input__toggle_icon }) : /* @__PURE__ */ T(zP, { className: Dn.api_key_input__toggle_icon })
855
855
  }
856
856
  )
857
857
  ] }),
858
- n && /* @__PURE__ */ T("div", { className: On.api_key_input__error_message, children: n })
858
+ n && /* @__PURE__ */ T("div", { className: Dn.api_key_input__error_message, children: n })
859
859
  ] }),
860
860
  /* @__PURE__ */ T(
861
861
  "button",
862
862
  {
863
863
  type: "submit",
864
864
  disabled: !a.trim() || t,
865
- className: On.api_key_input__submit_button,
865
+ className: Dn.api_key_input__submit_button,
866
866
  style: {
867
867
  backgroundColor: f == null ? void 0 : f.mainColor,
868
868
  color: f == null ? void 0 : f.secondaryColor
@@ -922,7 +922,7 @@ function dk(e) {
922
922
  ] })
923
923
  ] }) });
924
924
  }
925
- const iI = "_chatbot_body_wrapper_1btmu_1", rI = "_chatbot_body_1btmu_1", oI = "_chatbot_body__content_1btmu_15", f1 = {
925
+ const iI = "_chatbot_body_wrapper_13zns_1", rI = "_chatbot_body_13zns_1", oI = "_chatbot_body__content_13zns_16", f1 = {
926
926
  chatbot_body_wrapper: iI,
927
927
  chatbot_body: rI,
928
928
  chatbot_body__content: oI
@@ -1147,7 +1147,7 @@ function vF({ children: e }) {
1147
1147
  const [t, n] = Ze(
1148
1148
  null
1149
1149
  ), [i, r] = Ze(!1);
1150
- return _t(() => {
1150
+ return ht(() => {
1151
1151
  (async () => {
1152
1152
  try {
1153
1153
  const { Streamdown: s } = await import("streamdown");
@@ -1379,10 +1379,10 @@ ${a}`
1379
1379
  return l;
1380
1380
  })(e, "", 0);
1381
1381
  }
1382
- function Vn(e, t, n) {
1382
+ function Yn(e, t, n) {
1383
1383
  return e.fields = t || [], e.fname = n, e;
1384
1384
  }
1385
- function pt(e) {
1385
+ function gt(e) {
1386
1386
  return e == null ? null : e.fname;
1387
1387
  }
1388
1388
  function un(e) {
@@ -1425,9 +1425,9 @@ function zr(e) {
1425
1425
  }
1426
1426
  function Ci(e, t, n) {
1427
1427
  const i = zr(e);
1428
- return e = i.length === 1 ? i[0] : e, Vn((n && n.get || _F)(i), [e], t || e);
1428
+ return e = i.length === 1 ? i[0] : e, Yn((n && n.get || _F)(i), [e], t || e);
1429
1429
  }
1430
- const fd = Ci("id"), dn = Vn((e) => e, [], "identity"), Xo = Vn(() => 0, [], "zero"), Ml = Vn(() => 1, [], "one"), ki = Vn(() => !0, [], "true"), Uo = Vn(() => !1, [], "false"), bx = /* @__PURE__ */ new Set([...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function"), "__proto__"]);
1430
+ const fd = Ci("id"), dn = Yn((e) => e, [], "identity"), Xo = Yn(() => 0, [], "zero"), Ml = Yn(() => 1, [], "one"), ki = Yn(() => !0, [], "true"), Uo = Yn(() => !1, [], "false"), bx = /* @__PURE__ */ new Set([...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function"), "__proto__"]);
1431
1431
  function BI(e, t, n) {
1432
1432
  const i = [t].concat([].slice.call(n));
1433
1433
  console[e].apply(console, i);
@@ -1553,7 +1553,7 @@ function Cx(e, t, n) {
1553
1553
  const i = [], r = [], o = {}, s = n.comparator || qI;
1554
1554
  return Q(e).forEach((a, u) => {
1555
1555
  a != null && (i.push(t[u] === jI ? -1 : 1), r.push(a = we(a) ? a : Ci(a, null, n)), (un(a) || []).forEach((l) => o[l] = 1));
1556
- }), r.length === 0 ? null : Vn(s(r, i), Object.keys(o));
1556
+ }), r.length === 0 ? null : Yn(s(r, i), Object.keys(o));
1557
1557
  }
1558
1558
  const Nl = (e, t) => (e < t || e == null) && t != null ? -1 : (e > t || t == null) && e != null ? 1 : (t = t instanceof Date ? +t : t, (e = e instanceof Date ? +e : e) !== e && t === t ? -1 : t !== t && e === e ? 1 : 0), qI = (e, t) => e.length === 1 ? WI(e[0], t[0]) : HI(e, t, e.length), WI = (e, t) => function(n, i) {
1559
1559
  return Nl(e(n), e(i)) * t;
@@ -1721,7 +1721,7 @@ function Ax(e, t, n) {
1721
1721
  return l;
1722
1722
  };
1723
1723
  }
1724
- return Vn(s, e, "key");
1724
+ return Yn(s, e, "key");
1725
1725
  }
1726
1726
  function zF(e, t) {
1727
1727
  const n = e[0], i = Fe(e), r = +t;
@@ -1823,16 +1823,16 @@ function _k(e) {
1823
1823
  r in t || n.push(t[r] = r);
1824
1824
  }), n;
1825
1825
  }
1826
- function Dn(e, t) {
1826
+ function Ln(e, t) {
1827
1827
  var n = e + "", i = n.length;
1828
1828
  return i < t ? new Array(t - i + 1).join(0) + n : n;
1829
1829
  }
1830
1830
  function XI(e) {
1831
- return e < 0 ? "-" + Dn(-e, 6) : e > 9999 ? "+" + Dn(e, 6) : Dn(e, 4);
1831
+ return e < 0 ? "-" + Ln(-e, 6) : e > 9999 ? "+" + Ln(e, 6) : Ln(e, 4);
1832
1832
  }
1833
1833
  function KI(e) {
1834
1834
  var t = e.getUTCHours(), n = e.getUTCMinutes(), i = e.getUTCSeconds(), r = e.getUTCMilliseconds();
1835
- return isNaN(e) ? "Invalid Date" : XI(e.getUTCFullYear()) + "-" + Dn(e.getUTCMonth() + 1, 2) + "-" + Dn(e.getUTCDate(), 2) + (r ? "T" + Dn(t, 2) + ":" + Dn(n, 2) + ":" + Dn(i, 2) + "." + Dn(r, 3) + "Z" : i ? "T" + Dn(t, 2) + ":" + Dn(n, 2) + ":" + Dn(i, 2) + "Z" : n || t ? "T" + Dn(t, 2) + ":" + Dn(n, 2) + "Z" : "");
1835
+ return isNaN(e) ? "Invalid Date" : XI(e.getUTCFullYear()) + "-" + Ln(e.getUTCMonth() + 1, 2) + "-" + Ln(e.getUTCDate(), 2) + (r ? "T" + Ln(t, 2) + ":" + Ln(n, 2) + ":" + Ln(i, 2) + "." + Ln(r, 3) + "Z" : i ? "T" + Ln(t, 2) + ":" + Ln(n, 2) + ":" + Ln(i, 2) + "Z" : n || t ? "T" + Ln(t, 2) + ":" + Ln(n, 2) + "Z" : "");
1836
1836
  }
1837
1837
  function ZI(e) {
1838
1838
  var t = new RegExp('["' + e + `
@@ -2140,7 +2140,7 @@ function fz(e, t) {
2140
2140
  const n = cz(e, t);
2141
2141
  return n && Math.sqrt(n);
2142
2142
  }
2143
- class kn {
2143
+ class $n {
2144
2144
  constructor() {
2145
2145
  this._partials = new Float64Array(32), this._n = 0;
2146
2146
  }
@@ -2334,7 +2334,7 @@ function* bz(e) {
2334
2334
  function tT(e) {
2335
2335
  return Array.from(bz(e));
2336
2336
  }
2337
- function ei(e, t, n) {
2337
+ function ti(e, t, n) {
2338
2338
  e = +e, t = +t, n = (r = arguments.length) < 2 ? (t = e, e = 0, 1) : r < 3 ? 1 : +n;
2339
2339
  for (var i = -1, r = Math.max(0, Math.ceil((t - e) / n)) | 0, o = new Array(r); ++i < r; )
2340
2340
  o[i] = e + i * n;
@@ -2727,18 +2727,18 @@ function lT(e, t, n, i, r, o) {
2727
2727
  }
2728
2728
  return [a, u];
2729
2729
  }
2730
- const [Pz, Iz] = lT(Nr, Rf, Ll, uT, cm, um), [zz, Bz] = lT(Tr, Nf, Dl, mo, lm, am), Xt = "year", Un = "quarter", ln = "month", $t = "week", jn = "date", on = "day", Rr = "dayofyear", ui = "hours", li = "minutes", $i = "seconds", Zi = "milliseconds", Dx = [Xt, Un, ln, $t, jn, on, Rr, ui, li, $i, Zi], v1 = Dx.reduce((e, t, n) => (e[t] = 1 + n, e), {});
2730
+ const [Pz, Iz] = lT(Nr, Rf, Ll, uT, cm, um), [zz, Bz] = lT(Tr, Nf, Dl, mo, lm, am), Xt = "year", jn = "quarter", ln = "month", $t = "week", qn = "date", on = "day", Rr = "dayofyear", ui = "hours", li = "minutes", $i = "seconds", Zi = "milliseconds", Dx = [Xt, jn, ln, $t, qn, on, Rr, ui, li, $i, Zi], v1 = Dx.reduce((e, t, n) => (e[t] = 1 + n, e), {});
2731
2731
  function Lx(e) {
2732
2732
  const t = Q(e).slice(), n = {};
2733
2733
  return t.length || P("Missing time unit."), t.forEach((r) => {
2734
2734
  ne(v1, r) ? n[r] = 1 : P(`Invalid time unit: ${r}.`);
2735
- }), (n[$t] || n[on] ? 1 : 0) + (n[Un] || n[ln] || n[jn] ? 1 : 0) + (n[Rr] ? 1 : 0) > 1 && P(`Incompatible time units: ${e}`), t.sort((r, o) => v1[r] - v1[o]), t;
2735
+ }), (n[$t] || n[on] ? 1 : 0) + (n[jn] || n[ln] || n[qn] ? 1 : 0) + (n[Rr] ? 1 : 0) > 1 && P(`Incompatible time units: ${e}`), t.sort((r, o) => v1[r] - v1[o]), t;
2736
2736
  }
2737
2737
  const Uz = {
2738
2738
  [Xt]: "%Y ",
2739
- [Un]: "Q%q ",
2739
+ [jn]: "Q%q ",
2740
2740
  [ln]: "%b ",
2741
- [jn]: "%d ",
2741
+ [qn]: "%d ",
2742
2742
  [$t]: "W%U ",
2743
2743
  [on]: "%a ",
2744
2744
  [Rr]: "%j ",
@@ -2747,7 +2747,7 @@ const Uz = {
2747
2747
  [$i]: ":%S",
2748
2748
  [Zi]: ".%L",
2749
2749
  [`${Xt}-${ln}`]: "%Y-%m ",
2750
- [`${Xt}-${ln}-${jn}`]: "%Y-%m-%d ",
2750
+ [`${Xt}-${ln}-${qn}`]: "%Y-%m-%d ",
2751
2751
  [`${ui}-${li}`]: "%H:%M"
2752
2752
  };
2753
2753
  function cT(e, t) {
@@ -2812,7 +2812,7 @@ function qz(e, t, n, i, r, o, s) {
2812
2812
  return new Date(Date.UTC(e, t, n, i, r, o, s));
2813
2813
  }
2814
2814
  function yT(e, t, n, i, r) {
2815
- const o = t || 1, s = Fe(e), a = (y, b, v) => (v = v || y, Wz(n[v], i[v], y === s && o, b)), u = /* @__PURE__ */ new Date(), l = Ki(e), c = l[Xt] ? a(Xt) : hn(2012), f = l[ln] ? a(ln) : l[Un] ? a(Un) : Xo, d = l[$t] && l[on] ? a(on, 1, $t + on) : l[$t] ? a($t, 1) : l[on] ? a(on, 1) : l[jn] ? a(jn, 1) : l[Rr] ? a(Rr, 1) : Ml, h = l[ui] ? a(ui) : Xo, p = l[li] ? a(li) : Xo, g = l[$i] ? a($i) : Xo, m = l[Zi] ? a(Zi) : Xo;
2815
+ const o = t || 1, s = Fe(e), a = (y, b, v) => (v = v || y, Wz(n[v], i[v], y === s && o, b)), u = /* @__PURE__ */ new Date(), l = Ki(e), c = l[Xt] ? a(Xt) : hn(2012), f = l[ln] ? a(ln) : l[jn] ? a(jn) : Xo, d = l[$t] && l[on] ? a(on, 1, $t + on) : l[$t] ? a($t, 1) : l[on] ? a(on, 1) : l[qn] ? a(qn, 1) : l[Rr] ? a(Rr, 1) : Ml, h = l[ui] ? a(ui) : Xo, p = l[li] ? a(li) : Xo, g = l[$i] ? a($i) : Xo, m = l[Zi] ? a(Zi) : Xo;
2816
2816
  return function(y) {
2817
2817
  u.setTime(+y);
2818
2818
  const b = c(u);
@@ -2828,9 +2828,9 @@ function Ku(e, t, n) {
2828
2828
  }
2829
2829
  const Hz = {
2830
2830
  [Xt]: (e) => e.getFullYear(),
2831
- [Un]: (e) => Math.floor(e.getMonth() / 3),
2831
+ [jn]: (e) => Math.floor(e.getMonth() / 3),
2832
2832
  [ln]: (e) => e.getMonth(),
2833
- [jn]: (e) => e.getDate(),
2833
+ [qn]: (e) => e.getDate(),
2834
2834
  [ui]: (e) => e.getHours(),
2835
2835
  [li]: (e) => e.getMinutes(),
2836
2836
  [$i]: (e) => e.getSeconds(),
@@ -2840,7 +2840,7 @@ const Hz = {
2840
2840
  [$t + on]: (e, t) => Ku(ub(e), e.getDay(), lb(t)),
2841
2841
  [on]: (e, t) => Ku(1, e.getDay(), lb(t))
2842
2842
  }, Gz = {
2843
- [Un]: (e) => 3 * e,
2843
+ [jn]: (e) => 3 * e,
2844
2844
  [$t]: (e, t) => Ku(e, 0, lb(t))
2845
2845
  };
2846
2846
  function bT(e, t) {
@@ -2848,9 +2848,9 @@ function bT(e, t) {
2848
2848
  }
2849
2849
  const Vz = {
2850
2850
  [Xt]: (e) => e.getUTCFullYear(),
2851
- [Un]: (e) => Math.floor(e.getUTCMonth() / 3),
2851
+ [jn]: (e) => Math.floor(e.getUTCMonth() / 3),
2852
2852
  [ln]: (e) => e.getUTCMonth(),
2853
- [jn]: (e) => e.getUTCDate(),
2853
+ [qn]: (e) => e.getUTCDate(),
2854
2854
  [ui]: (e) => e.getUTCHours(),
2855
2855
  [li]: (e) => e.getUTCMinutes(),
2856
2856
  [$i]: (e) => e.getUTCSeconds(),
@@ -2860,7 +2860,7 @@ const Vz = {
2860
2860
  [on]: (e, t) => Ku(1, e.getUTCDay(), fb(t)),
2861
2861
  [$t + on]: (e, t) => Ku(cb(e), e.getUTCDay(), fb(t))
2862
2862
  }, Yz = {
2863
- [Un]: (e) => 3 * e,
2863
+ [jn]: (e) => 3 * e,
2864
2864
  [$t]: (e, t) => Ku(e, 0, fb(t))
2865
2865
  };
2866
2866
  function vT(e, t) {
@@ -2868,10 +2868,10 @@ function vT(e, t) {
2868
2868
  }
2869
2869
  const Xz = {
2870
2870
  [Xt]: Tr,
2871
- [Un]: Nf.every(3),
2871
+ [jn]: Nf.every(3),
2872
2872
  [ln]: Nf,
2873
2873
  [$t]: Dl,
2874
- [jn]: mo,
2874
+ [qn]: mo,
2875
2875
  [on]: mo,
2876
2876
  [Rr]: mo,
2877
2877
  [ui]: lm,
@@ -2880,10 +2880,10 @@ const Xz = {
2880
2880
  [Zi]: Vu
2881
2881
  }, Kz = {
2882
2882
  [Xt]: Nr,
2883
- [Un]: Rf.every(3),
2883
+ [jn]: Rf.every(3),
2884
2884
  [ln]: Rf,
2885
2885
  [$t]: Ll,
2886
- [jn]: ss,
2886
+ [qn]: ss,
2887
2887
  [on]: ss,
2888
2888
  [Rr]: ss,
2889
2889
  [ui]: cm,
@@ -2915,7 +2915,7 @@ function ST(e, t, n, i) {
2915
2915
  function CT(e, t, n, i) {
2916
2916
  return ET(Il(e), t, n, i);
2917
2917
  }
2918
- const Xc = 1e3, Kc = Xc * 60, Zc = Kc * 60, fm = Zc * 24, Zz = fm * 7, Fk = fm * 30, db = fm * 365, kT = [Xt, ln, jn, ui, li, $i, Zi], Jc = kT.slice(0, -1), Qc = Jc.slice(0, -1), ef = Qc.slice(0, -1), Jz = ef.slice(0, -1), Qz = [Xt, $t], Tk = [Xt, ln], $T = [Xt], Sc = [[Jc, 1, Xc], [Jc, 5, 5 * Xc], [Jc, 15, 15 * Xc], [Jc, 30, 30 * Xc], [Qc, 1, Kc], [Qc, 5, 5 * Kc], [Qc, 15, 15 * Kc], [Qc, 30, 30 * Kc], [ef, 1, Zc], [ef, 3, 3 * Zc], [ef, 6, 6 * Zc], [ef, 12, 12 * Zc], [Jz, 1, fm], [Qz, 1, Zz], [Tk, 1, Fk], [Tk, 3, 3 * Fk], [$T, 1, db]];
2918
+ const Xc = 1e3, Kc = Xc * 60, Zc = Kc * 60, fm = Zc * 24, Zz = fm * 7, Fk = fm * 30, db = fm * 365, kT = [Xt, ln, qn, ui, li, $i, Zi], Jc = kT.slice(0, -1), Qc = Jc.slice(0, -1), ef = Qc.slice(0, -1), Jz = ef.slice(0, -1), Qz = [Xt, $t], Tk = [Xt, ln], $T = [Xt], Sc = [[Jc, 1, Xc], [Jc, 5, 5 * Xc], [Jc, 15, 15 * Xc], [Jc, 30, 30 * Xc], [Qc, 1, Kc], [Qc, 5, 5 * Kc], [Qc, 15, 15 * Kc], [Qc, 30, 30 * Kc], [ef, 1, Zc], [ef, 3, 3 * Zc], [ef, 6, 6 * Zc], [ef, 12, 12 * Zc], [Jz, 1, fm], [Qz, 1, Zz], [Tk, 1, Fk], [Tk, 3, 3 * Fk], [$T, 1, db]];
2919
2919
  function AT(e) {
2920
2920
  const t = e.extent, n = e.maxbins || 40, i = Math.abs(dd(t)) / n;
2921
2921
  let r = Ol((a) => a[2]).right(Sc, i), o, s;
@@ -2979,7 +2979,7 @@ function MT(e) {
2979
2979
  a: pe,
2980
2980
  A: Ne,
2981
2981
  b: he,
2982
- B: gt,
2982
+ B: mt,
2983
2983
  c: null,
2984
2984
  d: Ik,
2985
2985
  e: Ik,
@@ -2993,7 +2993,7 @@ function MT(e) {
2993
2993
  m: BB,
2994
2994
  M: UB,
2995
2995
  p: hi,
2996
- q: Rn,
2996
+ q: On,
2997
2997
  Q: Bk,
2998
2998
  s: Uk,
2999
2999
  S: jB,
@@ -3130,13 +3130,13 @@ function MT(e) {
3130
3130
  function he(te) {
3131
3131
  return u[te.getUTCMonth()];
3132
3132
  }
3133
- function gt(te) {
3133
+ function mt(te) {
3134
3134
  return a[te.getUTCMonth()];
3135
3135
  }
3136
3136
  function hi(te) {
3137
3137
  return r[+(te.getUTCHours() >= 12)];
3138
3138
  }
3139
- function Rn(te) {
3139
+ function On(te) {
3140
3140
  return 1 + ~~(te.getUTCMonth() / 3);
3141
3141
  }
3142
3142
  return {
@@ -3500,7 +3500,7 @@ function Mp(e) {
3500
3500
  }
3501
3501
  function jk(e, t, n) {
3502
3502
  n = n || {}, Z(n) || P(`Invalid time multi-format specifier: ${n}`);
3503
- const i = t($i), r = t(li), o = t(ui), s = t(jn), a = t($t), u = t(ln), l = t(Un), c = t(Xt), f = e(n[Zi] || ".%L"), d = e(n[$i] || ":%S"), h = e(n[li] || "%I:%M"), p = e(n[ui] || "%I %p"), g = e(n[jn] || n[on] || "%a %d"), m = e(n[$t] || "%b %d"), y = e(n[ln] || "%B"), b = e(n[Un] || "%B"), v = e(n[Xt] || "%Y");
3503
+ const i = t($i), r = t(li), o = t(ui), s = t(qn), a = t($t), u = t(ln), l = t(jn), c = t(Xt), f = e(n[Zi] || ".%L"), d = e(n[$i] || ":%S"), h = e(n[li] || "%I:%M"), p = e(n[ui] || "%I %p"), g = e(n[qn] || n[on] || "%a %d"), m = e(n[$t] || "%b %d"), y = e(n[ln] || "%B"), b = e(n[jn] || "%B"), v = e(n[Xt] || "%Y");
3504
3504
  return (x) => (i(x) < x ? f : r(x) < x ? d : o(x) < x ? h : s(x) < x ? p : u(x) < x ? a(x) < x ? g : m : c(x) < x ? l(x) < x ? y : b : v)(x);
3505
3505
  }
3506
3506
  function zT(e) {
@@ -5683,13 +5683,13 @@ Y(ps, O, {
5683
5683
  i[E = v[_]] || (i[E] = 1, t.push(E));
5684
5684
  }
5685
5685
  this._dims = Q(e.groupby), this._dnames = this._dims.map((b) => {
5686
- const v = pt(b);
5686
+ const v = gt(b);
5687
5687
  return r(b), n.push(v), v;
5688
5688
  }), this.cellkey = e.key ? e.key : yb(this._dims), this._countOnly = !0, this._counts = [], this._measures = [];
5689
5689
  const o = e.fields || [null], s = e.ops || ["count"], a = e.aggregate_params || [null], u = e.as || [], l = o.length, c = {};
5690
5690
  let f, d, h, p, g, m, y;
5691
5691
  for (l !== s.length && P("Unmatched number of fields and aggregate ops."), y = 0; y < l; ++y) {
5692
- if (f = o[y], d = s[y], h = a[y] || null, f == null && d !== "count" && P("Null aggregate field specified."), g = pt(f), m = m4(d, g, u[y]), n.push(m), d === "count") {
5692
+ if (f = o[y], d = s[y], h = a[y] || null, f == null && d !== "count" && P("Null aggregate field specified."), g = gt(f), m = m4(d, g, u[y]), n.push(m), d === "count") {
5693
5693
  this._counts.push(m);
5694
5694
  continue;
5695
5695
  }
@@ -5859,7 +5859,7 @@ Y(f2, O, {
5859
5859
  let c = sn(t(l));
5860
5860
  return c == null ? null : c < r ? -1 / 0 : c > o ? 1 / 0 : (c = Math.max(r, Math.min(c, o - i)), r + i * Math.floor(Sj + (c - r) / i));
5861
5861
  };
5862
- return u.start = r, u.stop = n.stop, u.step = i, this.value = Vn(u, un(t), e.name || "bin_" + pt(t));
5862
+ return u.start = r, u.stop = n.stop, u.step = i, this.value = Yn(u, un(t), e.name || "bin_" + gt(t));
5863
5863
  }
5864
5864
  });
5865
5865
  function x4(e, t, n) {
@@ -6140,7 +6140,7 @@ function Tj(e) {
6140
6140
  return () => e.materialize(e.SOURCE).source;
6141
6141
  }
6142
6142
  function S4(e, t) {
6143
- return e ? e.map((n, i) => t[i] || pt(n)) : null;
6143
+ return e ? e.map((n, i) => t[i] || gt(n)) : null;
6144
6144
  }
6145
6145
  function m2(e, t, n) {
6146
6146
  const i = [], r = (f) => f(u);
@@ -6208,7 +6208,7 @@ function k4(e) {
6208
6208
  Y(k4, Xe);
6209
6209
  function Rj(e) {
6210
6210
  const t = e.expr;
6211
- return this.value && !e.modified("expr") ? this.value : Vn((n) => t(n, e), un(t), pt(t));
6211
+ return this.value && !e.modified("expr") ? this.value : Yn((n) => t(n, e), un(t), gt(t));
6212
6212
  }
6213
6213
  function b2(e) {
6214
6214
  O.call(this, [void 0, void 0], e);
@@ -6230,7 +6230,7 @@ Y(b2, O, {
6230
6230
  const u = sn(i(a));
6231
6231
  u != null && (u < o && (o = u), u > s && (s = u));
6232
6232
  }), !Number.isFinite(o) || !Number.isFinite(s)) {
6233
- let a = pt(i);
6233
+ let a = gt(i);
6234
6234
  a && (a = ` for field "${a}"`), t.dataflow.warn(`Infinite extent${a}: [${o}, ${s}]`), o = s = void 0;
6235
6235
  }
6236
6236
  this.value = [o, s];
@@ -6443,7 +6443,7 @@ w2.Definition = {
6443
6443
  };
6444
6444
  Y(w2, O, {
6445
6445
  transform(e, t) {
6446
- const n = t.fork(t.NO_SOURCE), i = e.fields, r = i.map(pt), o = e.as || ["key", "value"], s = o[0], a = o[1], u = i.length;
6446
+ const n = t.fork(t.NO_SOURCE), i = e.fields, r = i.map(gt), o = e.as || ["key", "value"], s = o[0], a = o[1], u = i.length;
6447
6447
  return n.rem = this.value, t.visit(t.SOURCE, (l) => {
6448
6448
  for (let c = 0, f; c < u; ++c)
6449
6449
  f = Wx(l), f[s] = r[c], f[a] = i[c](l), n.add.push(f);
@@ -6545,7 +6545,7 @@ function Pj(e) {
6545
6545
  }
6546
6546
  Y(S2, O, {
6547
6547
  transform(e, t) {
6548
- var n = t.fork(t.ALL), i = Lj(e), r = Pj(e), o = pt(e.field), s = pt(e.key), a = (e.groupby || []).map(pt), u = Ij(t.source, e.groupby, e.key, e.keyvals), l = [], c = this.value, f = u.domain.length, d, h, p, g, m, y, b, v, x, _;
6548
+ var n = t.fork(t.ALL), i = Lj(e), r = Pj(e), o = gt(e.field), s = gt(e.key), a = (e.groupby || []).map(gt), u = Ij(t.source, e.groupby, e.key, e.keyvals), l = [], c = this.value, f = u.domain.length, d, h, p, g, m, y, b, v, x, _;
6549
6549
  for (m = 0, v = u.length; m < v; ++m)
6550
6550
  for (d = u[m], p = d.values, h = NaN, b = 0; b < f; ++b)
6551
6551
  if (d[b] == null) {
@@ -6673,7 +6673,7 @@ Y(k2, O, {
6673
6673
  transform(e, t) {
6674
6674
  const n = t.fork(t.NO_SOURCE | t.NO_FIELDS);
6675
6675
  if (!this.value || t.changed() || e.modified()) {
6676
- const i = t.materialize(t.SOURCE).source, r = m2(i, e.groupby, e.field), o = (e.groupby || []).map(pt), s = e.bandwidth, a = e.cumulative ? "cdf" : "pdf", u = e.as || ["value", "density"], l = [];
6676
+ const i = t.materialize(t.SOURCE).source, r = m2(i, e.groupby, e.field), o = (e.groupby || []).map(gt), s = e.bandwidth, a = e.cumulative ? "cdf" : "pdf", u = e.as || ["value", "density"], l = [];
6677
6677
  let c = e.extent, f = e.steps || e.minsteps || 25, d = e.steps || e.maxsteps || 200;
6678
6678
  a !== "pdf" && a !== "cdf" && P("Invalid density method: " + a), e.resolve === "shared" && (c || (c = Fr(i, e.field)), f = d = e.steps || d), r.forEach((h) => {
6679
6679
  const p = Jx(h, s)[a], g = e.counts ? h.length : 1, m = c || Fr(h);
@@ -6756,7 +6756,7 @@ Y($2, O, {
6756
6756
  transform(e, t) {
6757
6757
  const n = e.fields, i = e.index, r = e.values, o = e.default == null ? null : e.default, s = e.modified(), a = n.length;
6758
6758
  let u = s ? t.SOURCE : t.ADD, l = t, c = e.as, f, d, h;
6759
- return r ? (d = r.length, a > 1 && !c && P('Multi-field lookup requires explicit "as" parameter.'), c && c.length !== a * d && P('The "as" parameter has too few output field names.'), c = c || r.map(pt), f = function(p) {
6759
+ return r ? (d = r.length, a > 1 && !c && P('Multi-field lookup requires explicit "as" parameter.'), c && c.length !== a * d && P('The "as" parameter has too few output field names.'), c = c || r.map(gt), f = function(p) {
6760
6760
  for (var g = 0, m = 0, y, b; g < a; ++g)
6761
6761
  if (b = i.get(n[g](p)), b == null) for (y = 0; y < d; ++y, ++m) p[c[m]] = o;
6762
6762
  else for (y = 0; y < d; ++y, ++m) p[c[m]] = r[y](b);
@@ -6847,7 +6847,7 @@ function qj(e, t) {
6847
6847
  };
6848
6848
  }
6849
6849
  function Wj(e, t, n, i) {
6850
- return Vn((r) => t(r) === e ? n(r) : NaN, i, e + "");
6850
+ return Yn((r) => t(r) === e ? n(r) : NaN, i, e + "");
6851
6851
  }
6852
6852
  function Hj(e, t, n) {
6853
6853
  const i = {}, r = [];
@@ -6960,7 +6960,7 @@ Y(F2, O, {
6960
6960
  const n = t.fork(t.NO_SOURCE | t.NO_FIELDS), i = e.as || ["prob", "value"];
6961
6961
  if (this.value && !e.modified() && !t.changed())
6962
6962
  return n.source = this.value, n;
6963
- const r = t.materialize(t.SOURCE).source, o = m2(r, e.groupby, e.field), s = (e.groupby || []).map(pt), a = [], u = e.step || 0.01, l = e.probs || ei(u / 2, 1 - Vj, u), c = l.length;
6963
+ const r = t.materialize(t.SOURCE).source, o = m2(r, e.groupby, e.field), s = (e.groupby || []).map(gt), a = [], u = e.step || 0.01, l = e.probs || ti(u / 2, 1 - Vj, u), c = l.length;
6964
6964
  return o.forEach((f) => {
6965
6965
  const d = Vx(f, l);
6966
6966
  for (let h = 0; h < c; ++h) {
@@ -7059,7 +7059,7 @@ Y(N2, O, {
7059
7059
  transform(e, t) {
7060
7060
  if (this.value && !e.modified()) return;
7061
7061
  const n = t.materialize().fork(t.MOD), i = e.as || "data";
7062
- return n.rem = this.value ? t.rem.concat(this.value) : t.rem, this.value = ei(e.start, e.stop, e.step || 1).map((r) => {
7062
+ return n.rem = this.value ? t.rem.concat(this.value) : t.rem, this.value = ti(e.start, e.stop, e.step || 1).map((r) => {
7063
7063
  const o = {};
7064
7064
  return o[i] = r, ze(o);
7065
7065
  }), n.add = t.add.concat(this.value), n;
@@ -7295,7 +7295,7 @@ function U4(e) {
7295
7295
  Q(un(p)).forEach((g) => u[g] = 1);
7296
7296
  }
7297
7297
  h(e.sort), t.forEach((p, g) => {
7298
- const m = n[g], y = i[g], b = r[g] || null, v = pt(m), x = m4(p, v, o[g]);
7298
+ const m = n[g], y = i[g], b = r[g] || null, v = gt(m), x = m4(p, v, o[g]);
7299
7299
  if (h(m), s.push(x), ne(Lf, p))
7300
7300
  a.push(Yj(p, m, y, x));
7301
7301
  else {
@@ -7628,7 +7628,7 @@ function dq() {
7628
7628
  var se = h * qs(v), oe = h * fr(v), pe = d * qs(x), Ne = d * fr(x), he;
7629
7629
  if (m < Ju)
7630
7630
  if (he = fq(D, B, pe, Ne, se, oe, I, J)) {
7631
- var gt = D - he[0], hi = B - he[1], Rn = se - he[0], te = oe - he[1], ge = 1 / fr(iq((gt * Rn + hi * te) / (la(gt * gt + hi * hi) * la(Rn * Rn + te * te))) / 2), xe = la(he[0] * he[0] + he[1] * he[1]);
7631
+ var mt = D - he[0], hi = B - he[1], On = se - he[0], te = oe - he[1], ge = 1 / fr(iq((mt * On + hi * te) / (la(mt * mt + hi * hi) * la(On * On + te * te))) / 2), xe = la(he[0] * he[0] + he[1] * he[1]);
7632
7632
  A = C1($, (d - xe) / (ge - 1)), R = C1($, (h - xe) / (ge + 1));
7633
7633
  } else
7634
7634
  A = R = 0;
@@ -9281,7 +9281,7 @@ function Cb(e) {
9281
9281
  return +e;
9282
9282
  }
9283
9283
  var x$ = [0, 1];
9284
- function zn(e) {
9284
+ function Bn(e) {
9285
9285
  return e;
9286
9286
  }
9287
9287
  function kb(e, t) {
@@ -9314,10 +9314,10 @@ function bd(e, t) {
9314
9314
  return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
9315
9315
  }
9316
9316
  function Tm() {
9317
- var e = x$, t = x$, n = Fs, i, r, o, s = zn, a, u, l;
9317
+ var e = x$, t = x$, n = Fs, i, r, o, s = Bn, a, u, l;
9318
9318
  function c() {
9319
9319
  var d = Math.min(e.length, t.length);
9320
- return s !== zn && (s = vW(e[0], e[d - 1])), a = d > 2 ? _W : xW, u = l = null, f;
9320
+ return s !== Bn && (s = vW(e[0], e[d - 1])), a = d > 2 ? _W : xW, u = l = null, f;
9321
9321
  }
9322
9322
  function f(d) {
9323
9323
  return d == null || isNaN(d = +d) ? o : (u || (u = a(e.map(i), t, n)))(i(s(d)));
@@ -9331,7 +9331,7 @@ function Tm() {
9331
9331
  }, f.rangeRound = function(d) {
9332
9332
  return t = Array.from(d), n = yd, c();
9333
9333
  }, f.clamp = function(d) {
9334
- return arguments.length ? (s = d ? !0 : zn, c()) : s !== zn;
9334
+ return arguments.length ? (s = d ? !0 : Bn, c()) : s !== Bn;
9335
9335
  }, f.interpolate = function(d) {
9336
9336
  return arguments.length ? (n = d, c()) : n;
9337
9337
  }, f.unknown = function(d) {
@@ -9341,7 +9341,7 @@ function Tm() {
9341
9341
  };
9342
9342
  }
9343
9343
  function R6() {
9344
- return Tm()(zn, zn);
9344
+ return Tm()(Bn, Bn);
9345
9345
  }
9346
9346
  function O6(e, t, n, i) {
9347
9347
  var r = hs(e, t, n), o;
@@ -9525,9 +9525,9 @@ function AW(e) {
9525
9525
  return e < 0 ? -e * e : e * e;
9526
9526
  }
9527
9527
  function X2(e) {
9528
- var t = e(zn, zn), n = 1;
9528
+ var t = e(Bn, Bn), n = 1;
9529
9529
  function i() {
9530
- return n === 1 ? e(zn, zn) : n === 0.5 ? e($W, AW) : e(k$(n), k$(1 / n));
9530
+ return n === 1 ? e(Bn, Bn) : n === 0.5 ? e($W, AW) : e(k$(n), k$(1 / n));
9531
9531
  }
9532
9532
  return t.exponent = function(r) {
9533
9533
  return arguments.length ? (n = +r, i()) : n;
@@ -9650,7 +9650,7 @@ function RW() {
9650
9650
  return Br.apply(Z2(Pz, Iz, Nr, Rf, Ll, ss, cm, um, co, zx).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
9651
9651
  }
9652
9652
  function Nm() {
9653
- var e = 0, t = 1, n, i, r, o, s = zn, a = !1, u;
9653
+ var e = 0, t = 1, n, i, r, o, s = Bn, a = !1, u;
9654
9654
  function l(f) {
9655
9655
  return f == null || isNaN(f = +f) ? u : s(r === 0 ? 0.5 : (f = (o(f) - n) * r, a ? Math.max(0, Math.min(1, f)) : f));
9656
9656
  }
@@ -9677,7 +9677,7 @@ function Ts(e, t) {
9677
9677
  return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());
9678
9678
  }
9679
9679
  function J2() {
9680
- var e = Ka(Nm()(zn));
9680
+ var e = Ka(Nm()(Bn));
9681
9681
  return e.copy = function() {
9682
9682
  return Ts(e, J2());
9683
9683
  }, As.apply(e, arguments);
@@ -9704,7 +9704,7 @@ function OW() {
9704
9704
  return Q2.apply(null, arguments).exponent(0.5);
9705
9705
  }
9706
9706
  function Rm() {
9707
- var e = 0, t = 0.5, n = 1, i = 1, r, o, s, a, u, l = zn, c, f = !1, d;
9707
+ var e = 0, t = 0.5, n = 1, i = 1, r, o, s, a, u, l = Bn, c, f = !1, d;
9708
9708
  function h(g) {
9709
9709
  return isNaN(g = +g) ? d : (g = 0.5 + ((g = +c(g)) - o) * (i * g < i * o ? a : u), l(f ? Math.max(0, Math.min(1, g)) : g));
9710
9710
  }
@@ -9728,7 +9728,7 @@ function Rm() {
9728
9728
  };
9729
9729
  }
9730
9730
  function H6() {
9731
- var e = Ka(Rm()(zn));
9731
+ var e = Ka(Rm()(Bn));
9732
9732
  return e.copy = function() {
9733
9733
  return Ts(e, H6());
9734
9734
  }, As.apply(e, arguments);
@@ -9788,7 +9788,7 @@ function o_() {
9788
9788
  const f = t().length, d = i[1] < i[0], h = i[1 - d], p = t_(f, a, u);
9789
9789
  let g = i[d - 0];
9790
9790
  r = (h - g) / (p || 1), s && (r = Math.floor(r)), g += (h - g - r * (f - a)) * l, o = r * (1 - a), s && (g = Math.round(g), o = Math.round(o));
9791
- const m = ei(f).map((y) => g + r * y);
9791
+ const m = ti(f).map((y) => g + r * y);
9792
9792
  return n(d ? m.reverse() : m);
9793
9793
  }
9794
9794
  return e.domain = function(f) {
@@ -13727,7 +13727,7 @@ V_.Definition = {
13727
13727
  };
13728
13728
  Y(V_, O, {
13729
13729
  transform(e, t) {
13730
- var n = e.as || ["startAngle", "endAngle"], i = n[0], r = n[1], o = e.field || Ml, s = e.startAngle || 0, a = e.endAngle != null ? e.endAngle : 2 * Math.PI, u = t.source, l = u.map(o), c = l.length, f = s, d = (a - s) / nT(l), h = ei(c), p, g, m;
13730
+ var n = e.as || ["startAngle", "endAngle"], i = n[0], r = n[1], o = e.field || Ml, s = e.startAngle || 0, a = e.endAngle != null ? e.endAngle : 2 * Math.PI, u = t.source, l = u.map(o), c = l.length, f = s, d = (a - s) / nT(l), h = ti(c), p, g, m;
13731
13731
  for (e.sort && h.sort((y, b) => l[y] - l[b]), p = 0; p < c; ++p)
13732
13732
  m = l[h[p]], g = u[h[p]], g[i] = f, g[r] = f += m * d;
13733
13733
  return this.value = l, t.reflow(e.modified()).modifies(n);
@@ -13795,7 +13795,7 @@ function nX(e, t, n) {
13795
13795
  if (i && !z(i)) {
13796
13796
  const r = e.domain(), o = r[0], s = Fe(r), a = i.step;
13797
13797
  let u = i.start == null ? o : i.start, l = i.stop == null ? s : i.stop;
13798
- a || P("Scale bins parameter missing step property."), u < o && (u = a * Math.ceil(o / a)), l > s && (l = a * Math.floor(s / a)), i = ei(u, l + a / 2, a);
13798
+ a || P("Scale bins parameter missing step property."), u < o && (u = a * Math.ceil(o / a)), l > s && (l = a * Math.floor(s / a)), i = ti(u, l + a / 2, a);
13799
13799
  }
13800
13800
  return i ? e.bins = i : e.bins && delete e.bins, e.type === i_ && (i ? !t.domain && !t.domainRaw && (e.domain(i), n = i.length) : e.bins = e.domain()), n;
13801
13801
  }
@@ -13914,14 +13914,14 @@ const cX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13914
13914
  sortitems: HR,
13915
13915
  stack: Y_
13916
13916
  }, Symbol.toStringTag, { value: "Module" }));
13917
- var ce = 1e-6, eg = 1e-12, Se = Math.PI, ht = Se / 2, tg = Se / 4, An = Se * 2, yt = 180 / Se, Ee = Se / 180, Me = Math.abs, ql = Math.atan, Mi = Math.atan2, fe = Math.cos, vh = Math.ceil, XR = Math.exp, qb = Math.hypot, ng = Math.log, B1 = Math.pow, le = Math.sin, xi = Math.sign || function(e) {
13917
+ var ce = 1e-6, eg = 1e-12, Se = Math.PI, pt = Se / 2, tg = Se / 4, Mn = Se * 2, bt = 180 / Se, Ee = Se / 180, Me = Math.abs, ql = Math.atan, Mi = Math.atan2, fe = Math.cos, vh = Math.ceil, XR = Math.exp, qb = Math.hypot, ng = Math.log, B1 = Math.pow, le = Math.sin, xi = Math.sign || function(e) {
13918
13918
  return e > 0 ? 1 : e < 0 ? -1 : 0;
13919
- }, Mn = Math.sqrt, X_ = Math.tan;
13919
+ }, Fn = Math.sqrt, X_ = Math.tan;
13920
13920
  function KR(e) {
13921
13921
  return e > 1 ? 0 : e < -1 ? Se : Math.acos(e);
13922
13922
  }
13923
- function qn(e) {
13924
- return e > 1 ? ht : e < -1 ? -ht : Math.asin(e);
13923
+ function Wn(e) {
13924
+ return e > 1 ? pt : e < -1 ? -pt : Math.asin(e);
13925
13925
  }
13926
13926
  function Vt() {
13927
13927
  }
@@ -13974,19 +13974,19 @@ function gA(e, t) {
13974
13974
  function so(e, t) {
13975
13975
  e && hA.hasOwnProperty(e.type) ? hA[e.type](e, t) : ig(e, t);
13976
13976
  }
13977
- var rg = new kn(), og = new kn(), ZR, JR, Hb, Gb, Vb, Or = {
13977
+ var rg = new $n(), og = new $n(), ZR, JR, Hb, Gb, Vb, Or = {
13978
13978
  point: Vt,
13979
13979
  lineStart: Vt,
13980
13980
  lineEnd: Vt,
13981
13981
  polygonStart: function() {
13982
- rg = new kn(), Or.lineStart = fX, Or.lineEnd = dX;
13982
+ rg = new $n(), Or.lineStart = fX, Or.lineEnd = dX;
13983
13983
  },
13984
13984
  polygonEnd: function() {
13985
13985
  var e = +rg;
13986
- og.add(e < 0 ? An + e : e), this.lineStart = this.lineEnd = this.point = Vt;
13986
+ og.add(e < 0 ? Mn + e : e), this.lineStart = this.lineEnd = this.point = Vt;
13987
13987
  },
13988
13988
  sphere: function() {
13989
- og.add(An);
13989
+ og.add(Mn);
13990
13990
  }
13991
13991
  };
13992
13992
  function fX() {
@@ -14004,10 +14004,10 @@ function QR(e, t) {
14004
14004
  rg.add(Mi(l, u)), Hb = e, Gb = o, Vb = s;
14005
14005
  }
14006
14006
  function pX(e) {
14007
- return og = new kn(), so(e, Or), og * 2;
14007
+ return og = new $n(), so(e, Or), og * 2;
14008
14008
  }
14009
14009
  function sg(e) {
14010
- return [Mi(e[1], e[0]), qn(e[2])];
14010
+ return [Mi(e[1], e[0]), Wn(e[2])];
14011
14011
  }
14012
14012
  function Ma(e) {
14013
14013
  var t = e[0], n = e[1], i = fe(n);
@@ -14026,36 +14026,36 @@ function _h(e, t) {
14026
14026
  return [e[0] * t, e[1] * t, e[2] * t];
14027
14027
  }
14028
14028
  function ag(e) {
14029
- var t = Mn(e[0] * e[0] + e[1] * e[1] + e[2] * e[2]);
14029
+ var t = Fn(e[0] * e[0] + e[1] * e[1] + e[2] * e[2]);
14030
14030
  e[0] /= t, e[1] /= t, e[2] /= t;
14031
14031
  }
14032
- var at, Pn, ft, Jn, na, eO, tO, Iu, _f, Go, Co, ro = {
14032
+ var at, In, ft, Qn, na, eO, tO, Iu, _f, Go, Co, ro = {
14033
14033
  point: Yb,
14034
14034
  lineStart: mA,
14035
14035
  lineEnd: yA,
14036
14036
  polygonStart: function() {
14037
- ro.point = iO, ro.lineStart = gX, ro.lineEnd = mX, _f = new kn(), Or.polygonStart();
14037
+ ro.point = iO, ro.lineStart = gX, ro.lineEnd = mX, _f = new $n(), Or.polygonStart();
14038
14038
  },
14039
14039
  polygonEnd: function() {
14040
- Or.polygonEnd(), ro.point = Yb, ro.lineStart = mA, ro.lineEnd = yA, rg < 0 ? (at = -(ft = 180), Pn = -(Jn = 90)) : _f > ce ? Jn = 90 : _f < -ce && (Pn = -90), Co[0] = at, Co[1] = ft;
14040
+ Or.polygonEnd(), ro.point = Yb, ro.lineStart = mA, ro.lineEnd = yA, rg < 0 ? (at = -(ft = 180), In = -(Qn = 90)) : _f > ce ? Qn = 90 : _f < -ce && (In = -90), Co[0] = at, Co[1] = ft;
14041
14041
  },
14042
14042
  sphere: function() {
14043
- at = -(ft = 180), Pn = -(Jn = 90);
14043
+ at = -(ft = 180), In = -(Qn = 90);
14044
14044
  }
14045
14045
  };
14046
14046
  function Yb(e, t) {
14047
- Go.push(Co = [at = e, ft = e]), t < Pn && (Pn = t), t > Jn && (Jn = t);
14047
+ Go.push(Co = [at = e, ft = e]), t < In && (In = t), t > Qn && (Qn = t);
14048
14048
  }
14049
14049
  function nO(e, t) {
14050
14050
  var n = Ma([e * Ee, t * Ee]);
14051
14051
  if (Iu) {
14052
14052
  var i = al(Iu, n), r = [i[1], -i[0], 0], o = al(r, i);
14053
14053
  ag(o), o = sg(o);
14054
- var s = e - na, a = s > 0 ? 1 : -1, u = o[0] * yt * a, l, c = Me(s) > 180;
14055
- c ^ (a * na < u && u < a * e) ? (l = o[1] * yt, l > Jn && (Jn = l)) : (u = (u + 360) % 360 - 180, c ^ (a * na < u && u < a * e) ? (l = -o[1] * yt, l < Pn && (Pn = l)) : (t < Pn && (Pn = t), t > Jn && (Jn = t))), c ? e < na ? Zn(at, e) > Zn(at, ft) && (ft = e) : Zn(e, ft) > Zn(at, ft) && (at = e) : ft >= at ? (e < at && (at = e), e > ft && (ft = e)) : e > na ? Zn(at, e) > Zn(at, ft) && (ft = e) : Zn(e, ft) > Zn(at, ft) && (at = e);
14054
+ var s = e - na, a = s > 0 ? 1 : -1, u = o[0] * bt * a, l, c = Me(s) > 180;
14055
+ c ^ (a * na < u && u < a * e) ? (l = o[1] * bt, l > Qn && (Qn = l)) : (u = (u + 360) % 360 - 180, c ^ (a * na < u && u < a * e) ? (l = -o[1] * bt, l < In && (In = l)) : (t < In && (In = t), t > Qn && (Qn = t))), c ? e < na ? Jn(at, e) > Jn(at, ft) && (ft = e) : Jn(e, ft) > Jn(at, ft) && (at = e) : ft >= at ? (e < at && (at = e), e > ft && (ft = e)) : e > na ? Jn(at, e) > Jn(at, ft) && (ft = e) : Jn(e, ft) > Jn(at, ft) && (at = e);
14056
14056
  } else
14057
14057
  Go.push(Co = [at = e, ft = e]);
14058
- t < Pn && (Pn = t), t > Jn && (Jn = t), Iu = n, na = e;
14058
+ t < In && (In = t), t > Qn && (Qn = t), Iu = n, na = e;
14059
14059
  }
14060
14060
  function mA() {
14061
14061
  ro.point = nO;
@@ -14077,7 +14077,7 @@ function gX() {
14077
14077
  function mX() {
14078
14078
  iO(eO, tO), Or.lineEnd(), Me(_f) > ce && (at = -(ft = 180)), Co[0] = at, Co[1] = ft, Iu = null;
14079
14079
  }
14080
- function Zn(e, t) {
14080
+ function Jn(e, t) {
14081
14081
  return (t -= e) < 0 ? t + 360 : t;
14082
14082
  }
14083
14083
  function yX(e, t) {
@@ -14088,13 +14088,13 @@ function bA(e, t) {
14088
14088
  }
14089
14089
  function bX(e) {
14090
14090
  var t, n, i, r, o, s, a;
14091
- if (Jn = ft = -(at = Pn = 1 / 0), Go = [], so(e, ro), n = Go.length) {
14091
+ if (Qn = ft = -(at = In = 1 / 0), Go = [], so(e, ro), n = Go.length) {
14092
14092
  for (Go.sort(yX), t = 1, i = Go[0], o = [i]; t < n; ++t)
14093
- r = Go[t], bA(i, r[0]) || bA(i, r[1]) ? (Zn(i[0], r[1]) > Zn(i[0], i[1]) && (i[1] = r[1]), Zn(r[0], i[1]) > Zn(i[0], i[1]) && (i[0] = r[0])) : o.push(i = r);
14093
+ r = Go[t], bA(i, r[0]) || bA(i, r[1]) ? (Jn(i[0], r[1]) > Jn(i[0], i[1]) && (i[1] = r[1]), Jn(r[0], i[1]) > Jn(i[0], i[1]) && (i[0] = r[0])) : o.push(i = r);
14094
14094
  for (s = -1 / 0, n = o.length - 1, t = 0, i = o[n]; t <= n; i = r, ++t)
14095
- r = o[t], (a = Zn(i[1], r[0])) > s && (s = a, at = r[0], ft = i[1]);
14095
+ r = o[t], (a = Jn(i[1], r[0])) > s && (s = a, at = r[0], ft = i[1]);
14096
14096
  }
14097
- return Go = Co = null, at === 1 / 0 || Pn === 1 / 0 ? [[NaN, NaN], [NaN, NaN]] : [[at, Pn], [ft, Jn]];
14097
+ return Go = Co = null, at === 1 / 0 || In === 1 / 0 ? [[NaN, NaN], [NaN, NaN]] : [[at, In], [ft, Qn]];
14098
14098
  }
14099
14099
  var rf, ug, lg, cg, fg, dg, hg, pg, Xb, Kb, Zb, rO, oO, xn, _n, wn, Hi = {
14100
14100
  sphere: Vt,
@@ -14126,7 +14126,7 @@ function vX(e, t) {
14126
14126
  }
14127
14127
  function xX(e, t) {
14128
14128
  e *= Ee, t *= Ee;
14129
- var n = fe(t), i = n * fe(e), r = n * le(e), o = le(t), s = Mi(Mn((s = _n * o - wn * r) * s + (s = wn * i - xn * o) * s + (s = xn * r - _n * i) * s), xn * i + _n * r + wn * o);
14129
+ var n = fe(t), i = n * fe(e), r = n * le(e), o = le(t), s = Mi(Fn((s = _n * o - wn * r) * s + (s = wn * i - xn * o) * s + (s = xn * r - _n * i) * s), xn * i + _n * r + wn * o);
14130
14130
  ug += s, dg += s * (xn + (xn = i)), hg += s * (_n + (_n = r)), pg += s * (wn + (wn = o)), Nd(xn, _n, wn);
14131
14131
  }
14132
14132
  function xA() {
@@ -14145,13 +14145,13 @@ function EX(e, t) {
14145
14145
  }
14146
14146
  function sO(e, t) {
14147
14147
  e *= Ee, t *= Ee;
14148
- var n = fe(t), i = n * fe(e), r = n * le(e), o = le(t), s = _n * o - wn * r, a = wn * i - xn * o, u = xn * r - _n * i, l = qb(s, a, u), c = qn(l), f = l && -c / l;
14148
+ var n = fe(t), i = n * fe(e), r = n * le(e), o = le(t), s = _n * o - wn * r, a = wn * i - xn * o, u = xn * r - _n * i, l = qb(s, a, u), c = Wn(l), f = l && -c / l;
14149
14149
  Xb.add(f * s), Kb.add(f * a), Zb.add(f * u), ug += c, dg += c * (xn + (xn = i)), hg += c * (_n + (_n = r)), pg += c * (wn + (wn = o)), Nd(xn, _n, wn);
14150
14150
  }
14151
14151
  function SX(e) {
14152
- rf = ug = lg = cg = fg = dg = hg = pg = 0, Xb = new kn(), Kb = new kn(), Zb = new kn(), so(e, Hi);
14152
+ rf = ug = lg = cg = fg = dg = hg = pg = 0, Xb = new $n(), Kb = new $n(), Zb = new $n(), so(e, Hi);
14153
14153
  var t = +Xb, n = +Kb, i = +Zb, r = qb(t, n, i);
14154
- return r < eg && (t = dg, n = hg, i = pg, ug < ce && (t = lg, n = cg, i = fg), r = qb(t, n, i), r < eg) ? [NaN, NaN] : [Mi(n, t) * yt, qn(i / r) * yt];
14154
+ return r < eg && (t = dg, n = hg, i = pg, ug < ce && (t = lg, n = cg, i = fg), r = qb(t, n, i), r < eg) ? [NaN, NaN] : [Mi(n, t) * bt, Wn(i / r) * bt];
14155
14155
  }
14156
14156
  function Jb(e, t) {
14157
14157
  function n(i, r) {
@@ -14162,15 +14162,15 @@ function Jb(e, t) {
14162
14162
  }), n;
14163
14163
  }
14164
14164
  function Qb(e, t) {
14165
- return Me(e) > Se && (e -= Math.round(e / An) * An), [e, t];
14165
+ return Me(e) > Se && (e -= Math.round(e / Mn) * Mn), [e, t];
14166
14166
  }
14167
14167
  Qb.invert = Qb;
14168
14168
  function aO(e, t, n) {
14169
- return (e %= An) ? t || n ? Jb(wA(e), EA(t, n)) : wA(e) : t || n ? EA(t, n) : Qb;
14169
+ return (e %= Mn) ? t || n ? Jb(wA(e), EA(t, n)) : wA(e) : t || n ? EA(t, n) : Qb;
14170
14170
  }
14171
14171
  function _A(e) {
14172
14172
  return function(t, n) {
14173
- return t += e, Me(t) > Se && (t -= Math.round(t / An) * An), [t, n];
14173
+ return t += e, Me(t) > Se && (t -= Math.round(t / Mn) * Mn), [t, n];
14174
14174
  };
14175
14175
  }
14176
14176
  function wA(e) {
@@ -14183,30 +14183,30 @@ function EA(e, t) {
14183
14183
  var l = fe(u), c = fe(a) * l, f = le(a) * l, d = le(u), h = d * n + c * i;
14184
14184
  return [
14185
14185
  Mi(f * r - h * o, c * n - d * i),
14186
- qn(h * r + f * o)
14186
+ Wn(h * r + f * o)
14187
14187
  ];
14188
14188
  }
14189
14189
  return s.invert = function(a, u) {
14190
14190
  var l = fe(u), c = fe(a) * l, f = le(a) * l, d = le(u), h = d * r - f * o;
14191
14191
  return [
14192
14192
  Mi(f * r + d * o, c * n + h * i),
14193
- qn(h * n - c * i)
14193
+ Wn(h * n - c * i)
14194
14194
  ];
14195
14195
  }, s;
14196
14196
  }
14197
14197
  function CX(e) {
14198
14198
  e = aO(e[0] * Ee, e[1] * Ee, e.length > 2 ? e[2] * Ee : 0);
14199
14199
  function t(n) {
14200
- return n = e(n[0] * Ee, n[1] * Ee), n[0] *= yt, n[1] *= yt, n;
14200
+ return n = e(n[0] * Ee, n[1] * Ee), n[0] *= bt, n[1] *= bt, n;
14201
14201
  }
14202
14202
  return t.invert = function(n) {
14203
- return n = e.invert(n[0] * Ee, n[1] * Ee), n[0] *= yt, n[1] *= yt, n;
14203
+ return n = e.invert(n[0] * Ee, n[1] * Ee), n[0] *= bt, n[1] *= bt, n;
14204
14204
  }, t;
14205
14205
  }
14206
14206
  function kX(e, t, n, i, r, o) {
14207
14207
  if (n) {
14208
14208
  var s = fe(t), a = le(t), u = i * n;
14209
- r == null ? (r = t + i * An, o = t - u / 2) : (r = SA(s, r), o = SA(s, o), (i > 0 ? r < o : r > o) && (r += i * An));
14209
+ r == null ? (r = t + i * Mn, o = t - u / 2) : (r = SA(s, r), o = SA(s, o), (i > 0 ? r < o : r > o) && (r += i * Mn));
14210
14210
  for (var l, c = r; i > 0 ? c > o : c < o; c -= u)
14211
14211
  l = sg([s, -a * fe(c), -a * le(c)]), e.point(l[0], l[1]);
14212
14212
  }
@@ -14214,7 +14214,7 @@ function kX(e, t, n, i, r, o) {
14214
14214
  function SA(e, t) {
14215
14215
  t = Ma(t), t[0] -= e, ag(t);
14216
14216
  var n = KR(-t[1]);
14217
- return ((-t[2] < 0 ? -n : n) + An - ce) % An;
14217
+ return ((-t[2] < 0 ? -n : n) + Mn - ce) % Mn;
14218
14218
  }
14219
14219
  function uO() {
14220
14220
  var e = [], t;
@@ -14290,21 +14290,21 @@ function CA(e) {
14290
14290
  }
14291
14291
  }
14292
14292
  function j1(e) {
14293
- return Me(e[0]) <= Se ? e[0] : xi(e[0]) * ((Me(e[0]) + Se) % An - Se);
14293
+ return Me(e[0]) <= Se ? e[0] : xi(e[0]) * ((Me(e[0]) + Se) % Mn - Se);
14294
14294
  }
14295
14295
  function $X(e, t) {
14296
- var n = j1(t), i = t[1], r = le(i), o = [le(n), -fe(n), 0], s = 0, a = 0, u = new kn();
14297
- r === 1 ? i = ht + ce : r === -1 && (i = -ht - ce);
14296
+ var n = j1(t), i = t[1], r = le(i), o = [le(n), -fe(n), 0], s = 0, a = 0, u = new $n();
14297
+ r === 1 ? i = pt + ce : r === -1 && (i = -pt - ce);
14298
14298
  for (var l = 0, c = e.length; l < c; ++l)
14299
14299
  if (d = (f = e[l]).length)
14300
14300
  for (var f, d, h = f[d - 1], p = j1(h), g = h[1] / 2 + tg, m = le(g), y = fe(g), b = 0; b < d; ++b, p = x, m = E, y = w, h = v) {
14301
14301
  var v = f[b], x = j1(v), _ = v[1] / 2 + tg, E = le(_), w = fe(_), S = x - p, C = S >= 0 ? 1 : -1, $ = C * S, A = $ > Se, R = m * E;
14302
- if (u.add(Mi(R * C * le($), y * w + R * fe($))), s += A ? S + C * An : S, A ^ p >= n ^ x >= n) {
14302
+ if (u.add(Mi(R * C * le($), y * w + R * fe($))), s += A ? S + C * Mn : S, A ^ p >= n ^ x >= n) {
14303
14303
  var N = al(Ma(h), Ma(v));
14304
14304
  ag(N);
14305
14305
  var M = al(o, N);
14306
14306
  ag(M);
14307
- var k = (A ^ S >= 0 ? -1 : 1) * qn(M[2]);
14307
+ var k = (A ^ S >= 0 ? -1 : 1) * Wn(M[2]);
14308
14308
  (i > k || i === k && (N[0] || N[1])) && (a += A ^ S >= 0 ? 1 : -1);
14309
14309
  }
14310
14310
  }
@@ -14367,7 +14367,7 @@ function AX(e) {
14367
14367
  return e.length > 1;
14368
14368
  }
14369
14369
  function MX(e, t) {
14370
- return ((e = e.x)[0] < 0 ? e[1] - ht - ce : ht - e[1]) - ((t = t.x)[0] < 0 ? t[1] - ht - ce : ht - t[1]);
14370
+ return ((e = e.x)[0] < 0 ? e[1] - pt - ce : pt - e[1]) - ((t = t.x)[0] < 0 ? t[1] - pt - ce : pt - t[1]);
14371
14371
  }
14372
14372
  const kA = cO(
14373
14373
  function() {
@@ -14375,7 +14375,7 @@ const kA = cO(
14375
14375
  },
14376
14376
  FX,
14377
14377
  NX,
14378
- [-Se, -ht]
14378
+ [-Se, -pt]
14379
14379
  );
14380
14380
  function FX(e) {
14381
14381
  var t = NaN, n = NaN, i = NaN, r;
@@ -14385,7 +14385,7 @@ function FX(e) {
14385
14385
  },
14386
14386
  point: function(o, s) {
14387
14387
  var a = o > 0 ? Se : -Se, u = Me(o - t);
14388
- Me(u - Se) < ce ? (e.point(t, n = (n + s) / 2 > 0 ? ht : -ht), e.point(i, n), e.lineEnd(), e.lineStart(), e.point(a, n), e.point(o, n), r = 0) : i !== a && u >= Se && (Me(t - i) < ce && (t -= i * ce), Me(o - a) < ce && (o -= a * ce), n = TX(t, n, o, s), e.point(i, n), e.lineEnd(), e.lineStart(), e.point(a, n), r = 0), e.point(t = o, n = s), i = a;
14388
+ Me(u - Se) < ce ? (e.point(t, n = (n + s) / 2 > 0 ? pt : -pt), e.point(i, n), e.lineEnd(), e.lineStart(), e.point(a, n), e.point(o, n), r = 0) : i !== a && u >= Se && (Me(t - i) < ce && (t -= i * ce), Me(o - a) < ce && (o -= a * ce), n = TX(t, n, o, s), e.point(i, n), e.lineEnd(), e.lineStart(), e.point(a, n), r = 0), e.point(t = o, n = s), i = a;
14389
14389
  },
14390
14390
  lineEnd: function() {
14391
14391
  e.lineEnd(), t = n = NaN;
@@ -14402,7 +14402,7 @@ function TX(e, t, n, i) {
14402
14402
  function NX(e, t, n, i) {
14403
14403
  var r;
14404
14404
  if (e == null)
14405
- r = n * ht, i.point(-Se, r), i.point(0, r), i.point(Se, r), i.point(Se, 0), i.point(Se, -r), i.point(0, -r), i.point(-Se, -r), i.point(-Se, 0), i.point(-Se, r);
14405
+ r = n * pt, i.point(-Se, r), i.point(0, r), i.point(Se, r), i.point(Se, 0), i.point(Se, -r), i.point(0, -r), i.point(-Se, -r), i.point(-Se, 0), i.point(-Se, r);
14406
14406
  else if (Me(e[0] - t[0]) > ce) {
14407
14407
  var o = e[0] < t[0] ? Se : -Se;
14408
14408
  r = n * o / 2, i.point(-o, r), i.point(0, r), i.point(o, r);
@@ -14450,7 +14450,7 @@ function RX(e) {
14450
14450
  U1(w, S);
14451
14451
  var C = E, $ = xh(w, C), A = xh(C, C), R = $ * $ - A * (xh(w, w) - 1);
14452
14452
  if (!(R < 0)) {
14453
- var N = Mn(R), M = _h(C, (-$ - N) / A);
14453
+ var N = Fn(R), M = _h(C, (-$ - N) / A);
14454
14454
  if (U1(M, w), M = sg(M), !d) return M;
14455
14455
  var k = c[0], F = f[0], D = c[1], B = f[1], I;
14456
14456
  F < k && (I = k, k = F, F = I);
@@ -14576,7 +14576,7 @@ function fO(e, t, n, i) {
14576
14576
  };
14577
14577
  }
14578
14578
  function $A(e, t, n) {
14579
- var i = ei(e, t - ce, n).concat(t);
14579
+ var i = ti(e, t - ce, n).concat(t);
14580
14580
  return function(r) {
14581
14581
  return i.map(function(o) {
14582
14582
  return [r, o];
@@ -14584,7 +14584,7 @@ function $A(e, t, n) {
14584
14584
  };
14585
14585
  }
14586
14586
  function AA(e, t, n) {
14587
- var i = ei(e, t - ce, n).concat(t);
14587
+ var i = ti(e, t - ce, n).concat(t);
14588
14588
  return function(r) {
14589
14589
  return i.map(function(o) {
14590
14590
  return [o, r];
@@ -14597,9 +14597,9 @@ function DX() {
14597
14597
  return { type: "MultiLineString", coordinates: b() };
14598
14598
  }
14599
14599
  function b() {
14600
- return ei(vh(i / c) * c, n, c).map(p).concat(ei(vh(a / f) * f, s, f).map(g)).concat(ei(vh(t / u) * u, e, u).filter(function(v) {
14600
+ return ti(vh(i / c) * c, n, c).map(p).concat(ti(vh(a / f) * f, s, f).map(g)).concat(ti(vh(t / u) * u, e, u).filter(function(v) {
14601
14601
  return Me(v % c) > ce;
14602
- }).map(d)).concat(ei(vh(o / l) * l, r, l).filter(function(v) {
14602
+ }).map(d)).concat(ti(vh(o / l) * l, r, l).filter(function(v) {
14603
14603
  return Me(v % f) > ce;
14604
14604
  }).map(h));
14605
14605
  }
@@ -14635,7 +14635,7 @@ function DX() {
14635
14635
  }, y.extentMajor([[-180, -90 + ce], [180, 90 - ce]]).extentMinor([[-180, -80 - ce], [180, 80 + ce]]);
14636
14636
  }
14637
14637
  const qf = (e) => e;
14638
- var q1 = new kn(), ev = new kn(), dO, hO, tv, nv, ao = {
14638
+ var q1 = new $n(), ev = new $n(), dO, hO, tv, nv, ao = {
14639
14639
  point: Vt,
14640
14640
  lineStart: Vt,
14641
14641
  lineEnd: Vt,
@@ -14643,11 +14643,11 @@ var q1 = new kn(), ev = new kn(), dO, hO, tv, nv, ao = {
14643
14643
  ao.lineStart = LX, ao.lineEnd = IX;
14644
14644
  },
14645
14645
  polygonEnd: function() {
14646
- ao.lineStart = ao.lineEnd = ao.point = Vt, q1.add(Me(ev)), ev = new kn();
14646
+ ao.lineStart = ao.lineEnd = ao.point = Vt, q1.add(Me(ev)), ev = new $n();
14647
14647
  },
14648
14648
  result: function() {
14649
14649
  var e = q1 / 2;
14650
- return q1 = new kn(), e;
14650
+ return q1 = new $n(), e;
14651
14651
  }
14652
14652
  };
14653
14653
  function LX() {
@@ -14701,7 +14701,7 @@ function BX(e, t) {
14701
14701
  bi.point = UX, Fa(xr = e, _r = t);
14702
14702
  }
14703
14703
  function UX(e, t) {
14704
- var n = e - xr, i = t - _r, r = Mn(n * n + i * i);
14704
+ var n = e - xr, i = t - _r, r = Fn(n * n + i * i);
14705
14705
  bg += r * (xr + e) / 2, vg += r * (_r + t) / 2, Tu += r, Fa(xr = e, _r = t);
14706
14706
  }
14707
14707
  function FA() {
@@ -14717,7 +14717,7 @@ function WX(e, t) {
14717
14717
  bi.point = yO, Fa(gO = xr = e, mO = _r = t);
14718
14718
  }
14719
14719
  function yO(e, t) {
14720
- var n = e - xr, i = t - _r, r = Mn(n * n + i * i);
14720
+ var n = e - xr, i = t - _r, r = Fn(n * n + i * i);
14721
14721
  bg += r * (xr + e) / 2, vg += r * (_r + t) / 2, Tu += r, r = _r * e - xr * t, ov += r * (xr + e), sv += r * (_r + t), af += r * 3, Fa(xr = e, _r = t);
14722
14722
  }
14723
14723
  function bO(e) {
@@ -14751,14 +14751,14 @@ bO.prototype = {
14751
14751
  break;
14752
14752
  }
14753
14753
  default: {
14754
- this._context.moveTo(e + this._radius, t), this._context.arc(e, t, this._radius, 0, An);
14754
+ this._context.moveTo(e + this._radius, t), this._context.arc(e, t, this._radius, 0, Mn);
14755
14755
  break;
14756
14756
  }
14757
14757
  }
14758
14758
  },
14759
14759
  result: Vt
14760
14760
  };
14761
- var av = new kn(), W1, vO, xO, uf, lf, Hf = {
14761
+ var av = new $n(), W1, vO, xO, uf, lf, Hf = {
14762
14762
  point: Vt,
14763
14763
  lineStart: function() {
14764
14764
  Hf.point = HX;
@@ -14774,14 +14774,14 @@ var av = new kn(), W1, vO, xO, uf, lf, Hf = {
14774
14774
  },
14775
14775
  result: function() {
14776
14776
  var e = +av;
14777
- return av = new kn(), e;
14777
+ return av = new $n(), e;
14778
14778
  }
14779
14779
  };
14780
14780
  function HX(e, t) {
14781
14781
  Hf.point = _O, vO = uf = e, xO = lf = t;
14782
14782
  }
14783
14783
  function _O(e, t) {
14784
- uf -= e, lf -= t, av.add(Mn(uf * uf + lf * lf)), uf = e, lf = t;
14784
+ uf -= e, lf -= t, av.add(Fn(uf * uf + lf * lf)), uf = e, lf = t;
14785
14785
  }
14786
14786
  let TA, xg, NA, RA;
14787
14787
  class OA {
@@ -14949,7 +14949,7 @@ function XX(e, t) {
14949
14949
  function n(i, r, o, s, a, u, l, c, f, d, h, p, g, m) {
14950
14950
  var y = l - i, b = c - r, v = y * y + b * b;
14951
14951
  if (v > 4 * t && g--) {
14952
- var x = s + d, _ = a + h, E = u + p, w = Mn(x * x + _ * _ + E * E), S = qn(E /= w), C = Me(Me(E) - 1) < ce || Me(o - f) < ce ? (o + f) / 2 : Mi(_, x), $ = e(C, S), A = $[0], R = $[1], N = A - i, M = R - r, k = b * N - y * M;
14952
+ var x = s + d, _ = a + h, E = u + p, w = Fn(x * x + _ * _ + E * E), S = Wn(E /= w), C = Me(Me(E) - 1) < ce || Me(o - f) < ce ? (o + f) / 2 : Mi(_, x), $ = e(C, S), A = $[0], R = $[1], N = A - i, M = R - r, k = b * N - y * M;
14953
14953
  (k * k / v > t || Me((y * N + b * M) / v - 0.5) > 0.3 || s * d + a * h + u * p < VX) && (n(i, r, o, s, a, u, A, R, C, x /= w, _ /= w, E, g, m), m.point(A, R), n(A, R, C, x, _, E, l, c, f, d, h, p, g, m));
14954
14954
  }
14955
14955
  }
@@ -15032,7 +15032,7 @@ function SO(e) {
15032
15032
  return S(k[0] * Ee, k[1] * Ee);
15033
15033
  }
15034
15034
  function R(k) {
15035
- return k = S.invert(k[0], k[1]), k && [k[0] * yt, k[1] * yt];
15035
+ return k = S.invert(k[0], k[1]), k && [k[0] * bt, k[1] * bt];
15036
15036
  }
15037
15037
  A.stream = function(k) {
15038
15038
  return C && $ === k ? C : C = KX(ZX(c)(g(E(x($ = k)))));
@@ -15041,7 +15041,7 @@ function SO(e) {
15041
15041
  }, A.postclip = function(k) {
15042
15042
  return arguments.length ? (x = k, m = y = b = v = null, M()) : x;
15043
15043
  }, A.clipAngle = function(k) {
15044
- return arguments.length ? (g = +k ? RX(p = k * Ee) : (p = null, kA), M()) : p * yt;
15044
+ return arguments.length ? (g = +k ? RX(p = k * Ee) : (p = null, kA), M()) : p * bt;
15045
15045
  }, A.clipExtent = function(k) {
15046
15046
  return arguments.length ? (x = k == null ? (m = y = b = v = null, qf) : fO(m = +k[0][0], y = +k[0][1], b = +k[1][0], v = +k[1][1]), M()) : m == null ? null : [[m, y], [b, v]];
15047
15047
  }, A.scale = function(k) {
@@ -15049,17 +15049,17 @@ function SO(e) {
15049
15049
  }, A.translate = function(k) {
15050
15050
  return arguments.length ? (i = +k[0], r = +k[1], N()) : [i, r];
15051
15051
  }, A.center = function(k) {
15052
- return arguments.length ? (o = k[0] % 360 * Ee, s = k[1] % 360 * Ee, N()) : [o * yt, s * yt];
15052
+ return arguments.length ? (o = k[0] % 360 * Ee, s = k[1] % 360 * Ee, N()) : [o * bt, s * bt];
15053
15053
  }, A.rotate = function(k) {
15054
- return arguments.length ? (a = k[0] % 360 * Ee, u = k[1] % 360 * Ee, l = k.length > 2 ? k[2] % 360 * Ee : 0, N()) : [a * yt, u * yt, l * yt];
15054
+ return arguments.length ? (a = k[0] % 360 * Ee, u = k[1] % 360 * Ee, l = k.length > 2 ? k[2] % 360 * Ee : 0, N()) : [a * bt, u * bt, l * bt];
15055
15055
  }, A.angle = function(k) {
15056
- return arguments.length ? (f = k % 360 * Ee, N()) : f * yt;
15056
+ return arguments.length ? (f = k % 360 * Ee, N()) : f * bt;
15057
15057
  }, A.reflectX = function(k) {
15058
15058
  return arguments.length ? (d = k ? -1 : 1, N()) : d < 0;
15059
15059
  }, A.reflectY = function(k) {
15060
15060
  return arguments.length ? (h = k ? -1 : 1, N()) : h < 0;
15061
15061
  }, A.precision = function(k) {
15062
- return arguments.length ? (E = LA(w, _ = k * k), M()) : Mn(_);
15062
+ return arguments.length ? (E = LA(w, _ = k * k), M()) : Fn(_);
15063
15063
  }, A.fitExtent = function(k, F) {
15064
15064
  return Zm(A, k, F);
15065
15065
  }, A.fitSize = function(k, F) {
@@ -15083,7 +15083,7 @@ function SO(e) {
15083
15083
  function tw(e) {
15084
15084
  var t = 0, n = Se / 3, i = SO(e), r = i(t, n);
15085
15085
  return r.parallels = function(o) {
15086
- return arguments.length ? i(t = o[0] * Ee, n = o[1] * Ee) : [t * yt, n * yt];
15086
+ return arguments.length ? i(t = o[0] * Ee, n = o[1] * Ee) : [t * bt, n * bt];
15087
15087
  }, r;
15088
15088
  }
15089
15089
  function QX(e) {
@@ -15092,20 +15092,20 @@ function QX(e) {
15092
15092
  return [i * t, le(r) / t];
15093
15093
  }
15094
15094
  return n.invert = function(i, r) {
15095
- return [i / t, qn(r * t)];
15095
+ return [i / t, Wn(r * t)];
15096
15096
  }, n;
15097
15097
  }
15098
15098
  function eK(e, t) {
15099
15099
  var n = le(e), i = (n + le(t)) / 2;
15100
15100
  if (Me(i) < ce) return QX(e);
15101
- var r = 1 + n * (2 * i - n), o = Mn(r) / i;
15101
+ var r = 1 + n * (2 * i - n), o = Fn(r) / i;
15102
15102
  function s(a, u) {
15103
- var l = Mn(r - 2 * i * le(u)) / i;
15103
+ var l = Fn(r - 2 * i * le(u)) / i;
15104
15104
  return [l * le(a *= i), o - l * fe(a)];
15105
15105
  }
15106
15106
  return s.invert = function(a, u) {
15107
15107
  var l = o - u, c = Mi(a, Me(l)) * xi(l);
15108
- return l * i < 0 && (c -= Se * xi(a) * xi(l)), [c / i, qn((r - (a * a + l * l) * i * i) / (2 * i))];
15108
+ return l * i < 0 && (c -= Se * xi(a) * xi(l)), [c / i, Wn((r - (a * a + l * l) * i * i) / (2 * i))];
15109
15109
  }, s;
15110
15110
  }
15111
15111
  function _g() {
@@ -15183,18 +15183,18 @@ function kO(e) {
15183
15183
  }
15184
15184
  function Rd(e) {
15185
15185
  return function(t, n) {
15186
- var i = Mn(t * t + n * n), r = e(i), o = le(r), s = fe(r);
15186
+ var i = Fn(t * t + n * n), r = e(i), o = le(r), s = fe(r);
15187
15187
  return [
15188
15188
  Mi(t * o, i * s),
15189
- qn(i && n * o / i)
15189
+ Wn(i && n * o / i)
15190
15190
  ];
15191
15191
  };
15192
15192
  }
15193
15193
  var $O = kO(function(e) {
15194
- return Mn(2 / (1 + e));
15194
+ return Fn(2 / (1 + e));
15195
15195
  });
15196
15196
  $O.invert = Rd(function(e) {
15197
- return 2 * qn(e / 2);
15197
+ return 2 * Wn(e / 2);
15198
15198
  });
15199
15199
  function iK() {
15200
15200
  return qr($O).scale(124.75).clipAngle(180 - 1e-3);
@@ -15209,13 +15209,13 @@ function rK() {
15209
15209
  return qr(AO).scale(79.4188).clipAngle(180 - 1e-3);
15210
15210
  }
15211
15211
  function Jm(e, t) {
15212
- return [e, ng(X_((ht + t) / 2))];
15212
+ return [e, ng(X_((pt + t) / 2))];
15213
15213
  }
15214
15214
  Jm.invert = function(e, t) {
15215
- return [e, 2 * ql(XR(t)) - ht];
15215
+ return [e, 2 * ql(XR(t)) - pt];
15216
15216
  };
15217
15217
  function oK() {
15218
- return MO(Jm).scale(961 / An);
15218
+ return MO(Jm).scale(961 / Mn);
15219
15219
  }
15220
15220
  function MO(e) {
15221
15221
  var t = qr(e), n = t.center, i = t.scale, r = t.translate, o = t.clipExtent, s = null, a, u, l;
@@ -15235,19 +15235,19 @@ function MO(e) {
15235
15235
  return c();
15236
15236
  }
15237
15237
  function Sh(e) {
15238
- return X_((ht + e) / 2);
15238
+ return X_((pt + e) / 2);
15239
15239
  }
15240
15240
  function sK(e, t) {
15241
15241
  var n = fe(e), i = e === t ? le(e) : ng(n / fe(t)) / ng(Sh(t) / Sh(e)), r = n * B1(Sh(e), i) / i;
15242
15242
  if (!i) return Jm;
15243
15243
  function o(s, a) {
15244
- r > 0 ? a < -ht + ce && (a = -ht + ce) : a > ht - ce && (a = ht - ce);
15244
+ r > 0 ? a < -pt + ce && (a = -pt + ce) : a > pt - ce && (a = pt - ce);
15245
15245
  var u = r / B1(Sh(a), i);
15246
15246
  return [u * le(i * s), r - u * fe(i * s)];
15247
15247
  }
15248
15248
  return o.invert = function(s, a) {
15249
- var u = r - a, l = xi(i) * Mn(s * s + u * u), c = Mi(s, Me(u)) * xi(u);
15250
- return u * i < 0 && (c -= Se * xi(s) * xi(u)), [c / i, 2 * ql(B1(r / l, 1 / i)) - ht];
15249
+ var u = r - a, l = xi(i) * Fn(s * s + u * u), c = Mi(s, Me(u)) * xi(u);
15250
+ return u * i < 0 && (c -= Se * xi(s) * xi(u)), [c / i, 2 * ql(B1(r / l, 1 / i)) - pt];
15251
15251
  }, o;
15252
15252
  }
15253
15253
  function aK() {
@@ -15269,15 +15269,15 @@ function lK(e, t) {
15269
15269
  }
15270
15270
  return o.invert = function(s, a) {
15271
15271
  var u = r - a, l = Mi(s, Me(u)) * xi(u);
15272
- return u * i < 0 && (l -= Se * xi(s) * xi(u)), [l / i, r - xi(i) * Mn(s * s + u * u)];
15272
+ return u * i < 0 && (l -= Se * xi(s) * xi(u)), [l / i, r - xi(i) * Fn(s * s + u * u)];
15273
15273
  }, o;
15274
15274
  }
15275
15275
  function cK() {
15276
15276
  return tw(lK).scale(131.154).center([0, 13.9389]);
15277
15277
  }
15278
- var wf = 1.340264, Ef = -0.081106, Sf = 893e-6, Cf = 3796e-6, Eg = Mn(3) / 2, fK = 12;
15278
+ var wf = 1.340264, Ef = -0.081106, Sf = 893e-6, Cf = 3796e-6, Eg = Fn(3) / 2, fK = 12;
15279
15279
  function FO(e, t) {
15280
- var n = qn(Eg * le(t)), i = n * n, r = i * i * i;
15280
+ var n = Wn(Eg * le(t)), i = n * n, r = i * i * i;
15281
15281
  return [
15282
15282
  e * fe(n) / (Eg * (wf + 3 * Ef * i + r * (7 * Sf + 9 * Cf * i))),
15283
15283
  n * (wf + Ef * i + r * (Sf + Cf * i))
@@ -15288,7 +15288,7 @@ FO.invert = function(e, t) {
15288
15288
  ;
15289
15289
  return [
15290
15290
  Eg * e * (wf + 3 * Ef * i + r * (7 * Sf + 9 * Cf * i)) / fe(n),
15291
- qn(le(n) / Eg)
15291
+ Wn(le(n) / Eg)
15292
15292
  ];
15293
15293
  };
15294
15294
  function dK() {
@@ -15338,7 +15338,7 @@ function pK() {
15338
15338
  }, v.translate = function(x) {
15339
15339
  return arguments.length ? (t = +x[0], n = +x[1], b()) : [t, n];
15340
15340
  }, v.angle = function(x) {
15341
- return arguments.length ? (o = x % 360 * Ee, a = le(o), s = fe(o), b()) : o * yt;
15341
+ return arguments.length ? (o = x % 360 * Ee, a = le(o), s = fe(o), b()) : o * bt;
15342
15342
  }, v.reflectX = function(x) {
15343
15343
  return arguments.length ? (i = x ? -1 : 1, b()) : i < 0;
15344
15344
  }, v.reflectY = function(x) {
@@ -15377,7 +15377,7 @@ function gK() {
15377
15377
  function RO(e, t) {
15378
15378
  return [fe(t) * le(e), le(t)];
15379
15379
  }
15380
- RO.invert = Rd(qn);
15380
+ RO.invert = Rd(Wn);
15381
15381
  function mK() {
15382
15382
  return qr(RO).scale(249.5).clipAngle(90 + ce);
15383
15383
  }
@@ -15392,10 +15392,10 @@ function yK() {
15392
15392
  return qr(OO).scale(250).clipAngle(142);
15393
15393
  }
15394
15394
  function DO(e, t) {
15395
- return [ng(X_((ht + t) / 2)), -e];
15395
+ return [ng(X_((pt + t) / 2)), -e];
15396
15396
  }
15397
15397
  DO.invert = function(e, t) {
15398
- return [-t, 2 * ql(XR(e)) - ht];
15398
+ return [-t, 2 * ql(XR(e)) - pt];
15399
15399
  };
15400
15400
  function bK() {
15401
15401
  var e = MO(DO), t = e.center, n = e.rotate;
@@ -15594,7 +15594,7 @@ function OK(e, t, n) {
15594
15594
  function zO(e, t, n) {
15595
15595
  return function(i) {
15596
15596
  var r = Fr(i), o = n ? Math.min(r[0], 0) : r[0], s = r[1], a = s - o, u = t ? hs(o, s, e) : a / (e + 1);
15597
- return ei(o + u, s, u);
15597
+ return ti(o + u, s, u);
15598
15598
  };
15599
15599
  }
15600
15600
  function iw(e) {
@@ -15799,7 +15799,7 @@ function jO(e, t) {
15799
15799
  Y(rw, O, {
15800
15800
  transform(e, t) {
15801
15801
  if (this.value && !t.changed() && !e.modified()) return t.StopPropagation;
15802
- var n = t.fork(t.NO_SOURCE | t.NO_FIELDS), i = t.materialize(t.SOURCE).source, r = IK(i, e.groupby), o = (e.groupby || []).map(pt), s = jO(UO(), e), a = e.as || "grid", u = [];
15802
+ var n = t.fork(t.NO_SOURCE | t.NO_FIELDS), i = t.materialize(t.SOURCE).source, r = IK(i, e.groupby), o = (e.groupby || []).map(gt), s = jO(UO(), e), a = e.as || "grid", u = [];
15803
15803
  function l(c, f) {
15804
15804
  for (let d = 0; d < o.length; ++d) c[o[d]] = f[d];
15805
15805
  return c;
@@ -16391,8 +16391,8 @@ function jA(e) {
16391
16391
  for (var t = { data: e.data }, n = t; e = e.next; ) n = n.next = { data: e.data };
16392
16392
  return t;
16393
16393
  }
16394
- var Tn = hw.prototype = pw.prototype;
16395
- Tn.copy = function() {
16394
+ var Nn = hw.prototype = pw.prototype;
16395
+ Nn.copy = function() {
16396
16396
  var e = new pw(this._x, this._y, this._x0, this._y0, this._x1, this._y1), t = this._root, n, i;
16397
16397
  if (!t) return e;
16398
16398
  if (!t.length) return e._root = jA(t), e;
@@ -16401,20 +16401,20 @@ Tn.copy = function() {
16401
16401
  (i = t.source[r]) && (i.length ? n.push({ source: i, target: t.target[r] = new Array(4) }) : t.target[r] = jA(i));
16402
16402
  return e;
16403
16403
  };
16404
- Tn.add = ZK;
16405
- Tn.addAll = JK;
16406
- Tn.cover = QK;
16407
- Tn.data = eZ;
16408
- Tn.extent = tZ;
16409
- Tn.find = nZ;
16410
- Tn.remove = iZ;
16411
- Tn.removeAll = rZ;
16412
- Tn.root = oZ;
16413
- Tn.size = sZ;
16414
- Tn.visit = aZ;
16415
- Tn.visitAfter = uZ;
16416
- Tn.x = cZ;
16417
- Tn.y = dZ;
16404
+ Nn.add = ZK;
16405
+ Nn.addAll = JK;
16406
+ Nn.cover = QK;
16407
+ Nn.data = eZ;
16408
+ Nn.extent = tZ;
16409
+ Nn.find = nZ;
16410
+ Nn.remove = iZ;
16411
+ Nn.removeAll = rZ;
16412
+ Nn.root = oZ;
16413
+ Nn.size = sZ;
16414
+ Nn.visit = aZ;
16415
+ Nn.visitAfter = uZ;
16416
+ Nn.x = cZ;
16417
+ Nn.y = dZ;
16418
16418
  function Sn(e) {
16419
16419
  return function() {
16420
16420
  return e;
@@ -18462,7 +18462,7 @@ Y(kw, O, {
18462
18462
  transform(e, t) {
18463
18463
  const n = t.fork(t.NO_SOURCE | t.NO_FIELDS);
18464
18464
  if (!this.value || t.changed() || e.modified()) {
18465
- const i = t.materialize(t.SOURCE).source, r = a8(i, e.groupby), o = (e.groupby || []).map(pt), s = o.length, a = e.as || [pt(e.x), pt(e.y)], u = [];
18465
+ const i = t.materialize(t.SOURCE).source, r = a8(i, e.groupby), o = (e.groupby || []).map(gt), s = o.length, a = e.as || [gt(e.x), gt(e.y)], u = [];
18466
18466
  r.forEach((l) => {
18467
18467
  g4(l, e.x, e.y, e.bandwidth || 0.3).forEach((c) => {
18468
18468
  const f = {};
@@ -18532,7 +18532,7 @@ Y($w, O, {
18532
18532
  transform(e, t) {
18533
18533
  const n = t.fork(t.NO_SOURCE | t.NO_FIELDS);
18534
18534
  if (!this.value || t.changed() || e.modified()) {
18535
- const i = t.materialize(t.SOURCE).source, r = a8(i, e.groupby), o = (e.groupby || []).map(pt), s = e.method || "linear", a = e.order == null ? 3 : e.order, u = yQ(s, a), l = e.as || [pt(e.x), pt(e.y)], c = wv[s], f = [];
18535
+ const i = t.materialize(t.SOURCE).source, r = a8(i, e.groupby), o = (e.groupby || []).map(gt), s = e.method || "linear", a = e.order == null ? 3 : e.order, u = yQ(s, a), l = e.as || [gt(e.x), gt(e.y)], c = wv[s], f = [];
18536
18536
  let d = e.extent;
18537
18537
  ne(wv, s) || P("Invalid regression method: " + s), d != null && s === "log" && d[0] <= 0 && (t.dataflow.warn("Ignoring extent with values <= 0 for log regression."), d = null), r.forEach((h) => {
18538
18538
  if (h.length <= u) {
@@ -19896,7 +19896,7 @@ function mee(e) {
19896
19896
  return [];
19897
19897
  }
19898
19898
  }
19899
- var Wr, ie, L, cn, We, t0 = 1, Ld = 2, Ra = 3, Ns = 4, n0 = 5, Ja = 6, Ln = 7, Pd = 8, yee = 9;
19899
+ var Wr, ie, L, cn, We, t0 = 1, Ld = 2, Ra = 3, Ns = 4, n0 = 5, Ja = 6, Pn = 7, Pd = 8, yee = 9;
19900
19900
  Wr = {};
19901
19901
  Wr[t0] = "Boolean";
19902
19902
  Wr[Ld] = "<end>";
@@ -19904,7 +19904,7 @@ Wr[Ra] = "Identifier";
19904
19904
  Wr[Ns] = "Keyword";
19905
19905
  Wr[n0] = "Null";
19906
19906
  Wr[Ja] = "Numeric";
19907
- Wr[Ln] = "Punctuator";
19907
+ Wr[Pn] = "Punctuator";
19908
19908
  Wr[Pd] = "String";
19909
19909
  Wr[yee] = "RegularExpression";
19910
19910
  var bee = "ArrayExpression", vee = "BinaryExpression", xee = "CallExpression", _ee = "ConditionalExpression", f8 = "Identifier", wee = "Literal", Eee = "LogicalExpression", See = "MemberExpression", Cee = "ObjectExpression", kee = "Property", $ee = "UnaryExpression", Dt = "Unexpected token %0", Aee = "Unexpected number", Mee = "Unexpected string", Fee = "Unexpected identifier", Tee = "Unexpected reserved word", Nee = "Unexpected end of input", Sv = "Invalid regular expression", uy = "Invalid regular expression: missing /", d8 = "Octal literals are not allowed in strict mode.", Ree = "Duplicate data property in object literal not allowed in strict mode", Yt = "ILLEGAL", Yf = "Disabled.", Oee = new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"), Dee = new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");
@@ -20062,7 +20062,7 @@ function ly() {
20062
20062
  // ?
20063
20063
  case 126:
20064
20064
  return ++L, {
20065
- type: Ln,
20065
+ type: Pn,
20066
20066
  value: String.fromCharCode(t),
20067
20067
  start: e,
20068
20068
  end: L
@@ -20090,7 +20090,7 @@ function ly() {
20090
20090
  // &
20091
20091
  case 42:
20092
20092
  return L += 2, {
20093
- type: Ln,
20093
+ type: Pn,
20094
20094
  value: String.fromCharCode(t) + String.fromCharCode(n),
20095
20095
  start: e,
20096
20096
  end: L
@@ -20099,7 +20099,7 @@ function ly() {
20099
20099
  // !
20100
20100
  case 61:
20101
20101
  return L += 2, ie.charCodeAt(L) === 61 && ++L, {
20102
- type: Ln,
20102
+ type: Pn,
20103
20103
  value: ie.slice(e, L),
20104
20104
  start: e,
20105
20105
  end: L
@@ -20108,28 +20108,28 @@ function ly() {
20108
20108
  }
20109
20109
  if (s = ie.substr(L, 4), s === ">>>=")
20110
20110
  return L += 4, {
20111
- type: Ln,
20111
+ type: Pn,
20112
20112
  value: s,
20113
20113
  start: e,
20114
20114
  end: L
20115
20115
  };
20116
20116
  if (o = s.substr(0, 3), o === ">>>" || o === "<<=" || o === ">>=")
20117
20117
  return L += 3, {
20118
- type: Ln,
20118
+ type: Pn,
20119
20119
  value: o,
20120
20120
  start: e,
20121
20121
  end: L
20122
20122
  };
20123
20123
  if (r = o.substr(0, 2), i === r[1] && "+-<>&|".includes(i) || r === "=>")
20124
20124
  return L += 2, {
20125
- type: Ln,
20125
+ type: Pn,
20126
20126
  value: r,
20127
20127
  start: e,
20128
20128
  end: L
20129
20129
  };
20130
20130
  if (r === "//" && Oe({}, Dt, Yt), "<>=!+-*%&|^/".includes(i))
20131
20131
  return ++L, {
20132
- type: Ln,
20132
+ type: Pn,
20133
20133
  value: i,
20134
20134
  start: e,
20135
20135
  end: L
@@ -20314,7 +20314,7 @@ function g8() {
20314
20314
  const e = ie.charCodeAt(L);
20315
20315
  return Id(e) ? Bee() : e === 40 || e === 41 || e === 59 ? ly() : e === 39 || e === 34 ? qee() : e === 46 ? oo(ie.charCodeAt(L + 1)) ? h3() : ly() : oo(e) ? h3() : ly();
20316
20316
  }
20317
- function In() {
20317
+ function zn() {
20318
20318
  const e = We;
20319
20319
  return L = e.end, We = g8(), L = e.end, e;
20320
20320
  }
@@ -20370,11 +20370,11 @@ function r0(e) {
20370
20370
  e.type === Ld && Oe(e, Nee), e.type === Ja && Oe(e, Aee), e.type === Pd && Oe(e, Mee), e.type === Ra && Oe(e, Fee), e.type === Ns && Oe(e, Tee), Oe(e, Dt, e.value);
20371
20371
  }
20372
20372
  function fn(e) {
20373
- const t = In();
20374
- (t.type !== Ln || t.value !== e) && r0(t);
20373
+ const t = zn();
20374
+ (t.type !== Pn || t.value !== e) && r0(t);
20375
20375
  }
20376
20376
  function Qe(e) {
20377
- return We.type === Ln && We.value === e;
20377
+ return We.type === Pn && We.value === e;
20378
20378
  }
20379
20379
  function cy(e) {
20380
20380
  return We.type === Ns && We.value === e;
@@ -20382,19 +20382,19 @@ function cy(e) {
20382
20382
  function ete() {
20383
20383
  const e = [];
20384
20384
  for (L = We.start, fn("["); !Qe("]"); )
20385
- Qe(",") ? (In(), e.push(null)) : (e.push(Oa()), Qe("]") || fn(","));
20386
- return In(), Xee(e);
20385
+ Qe(",") ? (zn(), e.push(null)) : (e.push(Oa()), Qe("]") || fn(","));
20386
+ return zn(), Xee(e);
20387
20387
  }
20388
20388
  function y3() {
20389
20389
  L = We.start;
20390
- const e = In();
20390
+ const e = zn();
20391
20391
  return e.type === Pd || e.type === Ja ? (e.octal && Oe(e, d8), gf(e)) : Ow(e.value);
20392
20392
  }
20393
20393
  function tte() {
20394
20394
  var e, t, n, i;
20395
20395
  if (L = We.start, e = We, e.type === Ra)
20396
20396
  return n = y3(), fn(":"), i = Oa(), m3("init", n, i);
20397
- if (e.type === Ld || e.type === Ln)
20397
+ if (e.type === Ld || e.type === Pn)
20398
20398
  r0(e);
20399
20399
  else
20400
20400
  return t = y3(), fn(":"), i = Oa(), m3("init", t, i);
@@ -20422,13 +20422,13 @@ function ote() {
20422
20422
  if (Qe("{"))
20423
20423
  return nte();
20424
20424
  if (e = We.type, L = We.start, e === Ra || rte[We.value])
20425
- n = Ow(In().value);
20425
+ n = Ow(zn().value);
20426
20426
  else if (e === Pd || e === Ja)
20427
- We.octal && Oe(We, d8), n = gf(In());
20427
+ We.octal && Oe(We, d8), n = gf(zn());
20428
20428
  else {
20429
20429
  if (e === Ns)
20430
20430
  throw new Error(Yf);
20431
- e === t0 ? (t = In(), t.value = t.value === "true", n = gf(t)) : e === n0 ? (t = In(), t.value = null, n = gf(t)) : Qe("/") || Qe("/=") ? (n = gf(Vee()), m8()) : r0(In());
20431
+ e === t0 ? (t = zn(), t.value = t.value === "true", n = gf(t)) : e === n0 ? (t = zn(), t.value = null, n = gf(t)) : Qe("/") || Qe("/=") ? (n = gf(Vee()), m8()) : r0(zn());
20432
20432
  }
20433
20433
  return n;
20434
20434
  }
@@ -20441,7 +20441,7 @@ function ste() {
20441
20441
  }
20442
20442
  function ate() {
20443
20443
  L = We.start;
20444
- const e = In();
20444
+ const e = zn();
20445
20445
  return Yee(e) || r0(e), Ow(e.value);
20446
20446
  }
20447
20447
  function ute() {
@@ -20467,19 +20467,19 @@ function cte() {
20467
20467
  }
20468
20468
  function b3() {
20469
20469
  const e = cte();
20470
- if (We.type === Ln && (Qe("++") || Qe("--")))
20470
+ if (We.type === Pn && (Qe("++") || Qe("--")))
20471
20471
  throw new Error(Yf);
20472
20472
  return e;
20473
20473
  }
20474
20474
  function hp() {
20475
20475
  var e, t;
20476
- if (We.type !== Ln && We.type !== Ns)
20476
+ if (We.type !== Pn && We.type !== Ns)
20477
20477
  t = b3();
20478
20478
  else {
20479
20479
  if (Qe("++") || Qe("--"))
20480
20480
  throw new Error(Yf);
20481
20481
  if (Qe("+") || Qe("-") || Qe("~") || Qe("!"))
20482
- e = In(), t = hp(), t = Qee(e.value, t);
20482
+ e = zn(), t = hp(), t = Qee(e.value, t);
20483
20483
  else {
20484
20484
  if (cy("delete") || cy("void") || cy("typeof"))
20485
20485
  throw new Error(Yf);
@@ -20490,7 +20490,7 @@ function hp() {
20490
20490
  }
20491
20491
  function v3(e) {
20492
20492
  let t = 0;
20493
- if (e.type !== Ln && e.type !== Ns)
20493
+ if (e.type !== Pn && e.type !== Ns)
20494
20494
  return 0;
20495
20495
  switch (e.value) {
20496
20496
  case "||":
@@ -20543,10 +20543,10 @@ function fte() {
20543
20543
  var e, t, n, i, r, o, s, a, u, l;
20544
20544
  if (e = We, u = hp(), i = We, r = v3(i), r === 0)
20545
20545
  return u;
20546
- for (i.prec = r, In(), t = [e, We], s = hp(), o = [u, i, s]; (r = v3(We)) > 0; ) {
20546
+ for (i.prec = r, zn(), t = [e, We], s = hp(), o = [u, i, s]; (r = v3(We)) > 0; ) {
20547
20547
  for (; o.length > 2 && r <= o[o.length - 2].prec; )
20548
20548
  s = o.pop(), a = o.pop().value, u = o.pop(), t.pop(), n = p3(a, u, s), o.push(n);
20549
- i = In(), i.prec = r, o.push(i), t.push(We), n = hp(), o.push(n);
20549
+ i = zn(), i.prec = r, o.push(i), t.push(We), n = hp(), o.push(n);
20550
20550
  }
20551
20551
  for (l = o.length - 1, n = o[l], t.pop(); l > 1; )
20552
20552
  t.pop(), n = p3(o[l - 1].value, o[l - 2], n), l -= 2;
@@ -20554,7 +20554,7 @@ function fte() {
20554
20554
  }
20555
20555
  function Oa() {
20556
20556
  var e, t, n;
20557
- return e = fte(), Qe("?") && (In(), t = Oa(), fn(":"), n = Oa(), e = Zee(e, t, n)), e;
20557
+ return e = fte(), Qe("?") && (zn(), t = Oa(), fn(":"), n = Oa(), e = Zee(e, t, n)), e;
20558
20558
  }
20559
20559
  function Dw() {
20560
20560
  const e = Oa();
@@ -20885,7 +20885,7 @@ function Yte(e, t, n, i) {
20885
20885
  const r = t[0].value, o = t[1].value, s = Vte + o;
20886
20886
  ne(s, i) || (i[s] = n.getData(r).indataRef(n, o));
20887
20887
  }
20888
- function $n(e, t, n, i) {
20888
+ function An(e, t, n, i) {
20889
20889
  if (t[0].type === Na)
20890
20890
  S3(n, i, t[0].value);
20891
20891
  else
@@ -20908,7 +20908,7 @@ function Hr(e, t) {
20908
20908
  return $$(e) ? e : void 0;
20909
20909
  }
20910
20910
  function Xte(e, t, n) {
20911
- t.__bandwidth = (r) => r && r.bandwidth ? r.bandwidth() : 0, n._bandwidth = $n, n._range = $n, n._scale = $n;
20911
+ t.__bandwidth = (r) => r && r.bandwidth ? r.bandwidth() : 0, n._bandwidth = An, n._range = An, n._scale = An;
20912
20912
  const i = (r) => "_[" + (r.type === Na ? V(kv + r.value) : V(kv) + "+" + e(r)) + "]";
20913
20913
  return {
20914
20914
  _bandwidth: (r) => `this.__bandwidth(${i(r[0])})`,
@@ -21213,7 +21213,7 @@ const Zf = {
21213
21213
  hsl: Lp,
21214
21214
  luminance: $v,
21215
21215
  contrast: rne,
21216
- sequence: ei,
21216
+ sequence: ti,
21217
21217
  format: Ite,
21218
21218
  utcFormat: zte,
21219
21219
  utcParse: Ute,
@@ -21281,29 +21281,29 @@ function Bne(e) {
21281
21281
  t[n] = T8 + n;
21282
21282
  return _e(t, Xte(e, Zf, qw)), t;
21283
21283
  }
21284
- function xt(e, t, n) {
21284
+ function _t(e, t, n) {
21285
21285
  return arguments.length === 1 ? Zf[e] : (Zf[e] = t, n && (qw[e] = n), Av && (Av.functions[e] = T8 + e), this);
21286
21286
  }
21287
- xt("bandwidth", vne, $n);
21288
- xt("copy", xne, $n);
21289
- xt("domain", _ne, $n);
21290
- xt("range", Ene, $n);
21291
- xt("invert", wne, $n);
21292
- xt("scale", Sne, $n);
21293
- xt("gradient", Cne, $n);
21294
- xt("geoArea", Kte, $n);
21295
- xt("geoBounds", Zte, $n);
21296
- xt("geoCentroid", Jte, $n);
21297
- xt("geoShape", kne, $n);
21298
- xt("geoScale", Qte, $n);
21299
- xt("indata", Dte, Yte);
21300
- xt("data", w8, zw);
21301
- xt("treePath", Ane, zw);
21302
- xt("treeAncestors", Mne, zw);
21303
- xt("vlSelectionTest", $te, Iw);
21304
- xt("vlSelectionIdTest", Fte, Iw);
21305
- xt("vlSelectionResolve", Nte, Iw);
21306
- xt("vlSelectionTuples", Tte);
21287
+ _t("bandwidth", vne, An);
21288
+ _t("copy", xne, An);
21289
+ _t("domain", _ne, An);
21290
+ _t("range", Ene, An);
21291
+ _t("invert", wne, An);
21292
+ _t("scale", Sne, An);
21293
+ _t("gradient", Cne, An);
21294
+ _t("geoArea", Kte, An);
21295
+ _t("geoBounds", Zte, An);
21296
+ _t("geoCentroid", Jte, An);
21297
+ _t("geoShape", kne, An);
21298
+ _t("geoScale", Qte, An);
21299
+ _t("indata", Dte, Yte);
21300
+ _t("data", w8, zw);
21301
+ _t("treePath", Ane, zw);
21302
+ _t("treeAncestors", Mne, zw);
21303
+ _t("vlSelectionTest", $te, Iw);
21304
+ _t("vlSelectionIdTest", Fte, Iw);
21305
+ _t("vlSelectionResolve", Nte, Iw);
21306
+ _t("vlSelectionTuples", Tte);
21307
21307
  function Dr(e, t) {
21308
21308
  const n = {};
21309
21309
  let i;
@@ -21475,7 +21475,7 @@ function Zne(e, t) {
21475
21475
  function Jne(e, t, n) {
21476
21476
  e.$params && t.parseParameters(e.$params, n);
21477
21477
  const i = "e:" + e.$expr.code;
21478
- return t.fn[i] || (t.fn[i] = Vn(t.parameterExpression(e.$expr), e.$fields));
21478
+ return t.fn[i] || (t.fn[i] = Yn(t.parameterExpression(e.$expr), e.$fields));
21479
21479
  }
21480
21480
  function Qne(e, t) {
21481
21481
  const n = "k:" + e.$key + "_" + !!e.$flat;
@@ -21494,7 +21494,7 @@ function nie(e, t) {
21494
21494
  const n = e.$encode, i = {};
21495
21495
  for (const r in n) {
21496
21496
  const o = n[r];
21497
- i[r] = Vn(t.encodeExpression(o.$expr), o.$fields), i[r].output = o.$output;
21497
+ i[r] = Yn(t.encodeExpression(o.$expr), o.$fields), i[r].output = o.$output;
21498
21498
  }
21499
21499
  return i;
21500
21500
  }
@@ -22867,7 +22867,7 @@ const or = "top", Hl = "left", Gl = "right", _s = "bottom", mD = "center", Ioe =
22867
22867
  function ed(e) {
22868
22868
  return e.type = h0, e.interactive = e.interactive || !1, e;
22869
22869
  }
22870
- function Yn(e, t) {
22870
+ function Xn(e, t) {
22871
22871
  const n = (i, r) => zi(e[i], zi(t[i], r));
22872
22872
  return n.isVertical = (i) => Ioe === zi(e.direction, t.direction || (i ? t.symbolDirection : t.gradientDirection)), n.gradientLength = () => zi(e.gradientLength, t.gradientLength || t.gradientWidth), n.gradientThickness = () => zi(e.gradientThickness, t.gradientThickness || t.gradientHeight), n.entryColumns = () => zi(e.columns, zi(t.columns, +n.isVertical(!0))), n;
22873
22873
  }
@@ -22910,7 +22910,7 @@ function fi(e, t) {
22910
22910
  return t ? (e.name = t.name, e.style = t.style || e.style, e.interactive = !!t.interactive, e.encode = Wl(e.encode, t, Ud)) : e.interactive = !1, e;
22911
22911
  }
22912
22912
  function tse(e, t, n, i) {
22913
- const r = Yn(e, n), o = r.isVertical(), s = r.gradientThickness(), a = r.gradientLength();
22913
+ const r = Xn(e, n), o = r.isVertical(), s = r.gradientThickness(), a = r.gradientLength();
22914
22914
  let u, l, c, f, d;
22915
22915
  o ? (l = [0, 1], c = [0, 0], f = s, d = a) : (l = [0, 0], c = [1, 0], f = a, d = s);
22916
22916
  const h = {
@@ -22946,7 +22946,7 @@ function tse(e, t, n, i) {
22946
22946
  }, i);
22947
22947
  }
22948
22948
  function nse(e, t, n, i, r) {
22949
- const o = Yn(e, n), s = o.isVertical(), a = o.gradientThickness(), u = o.gradientLength();
22949
+ const o = Xn(e, n), s = o.isVertical(), a = o.gradientThickness(), u = o.gradientLength();
22950
22950
  let l, c, f, d, h = "";
22951
22951
  s ? (l = "y", f = "y2", c = "x", d = "width", h = "1-") : (l = "x", f = "x2", c = "y", d = "height");
22952
22952
  const p = {
@@ -22988,7 +22988,7 @@ function nse(e, t, n, i, r) {
22988
22988
  }
22989
22989
  const ise = `datum.${fl}<=0?"${Hl}":datum.${fl}>=1?"${Gl}":"${mD}"`, rse = `datum.${fl}<=0?"${_s}":datum.${fl}>=1?"${or}":"${Boe}"`;
22990
22990
  function H3(e, t, n, i) {
22991
- const r = Yn(e, t), o = r.isVertical(), s = Lt(r.gradientThickness()), a = r.gradientLength();
22991
+ const r = Xn(e, t), o = r.isVertical(), s = Lt(r.gradientThickness()), a = r.gradientLength();
22992
22992
  let u = r("labelOverlap"), l, c, f, d, h = "";
22993
22993
  const p = {
22994
22994
  enter: l = {
@@ -23038,7 +23038,7 @@ function H3(e, t, n, i) {
23038
23038
  }, n);
23039
23039
  }
23040
23040
  function ose(e, t, n, i, r) {
23041
- const o = Yn(e, t), s = n.entries, a = !!(s && s.interactive), u = s ? s.name : void 0, l = o("clipHeight"), c = o("symbolOffset"), f = {
23041
+ const o = Xn(e, t), s = n.entries, a = !!(s && s.interactive), u = s ? s.name : void 0, l = o("clipHeight"), c = o("symbolOffset"), f = {
23042
23042
  data: "value"
23043
23043
  }, d = `(${r}) ? datum.${joe} : datum.${Pv}`, h = l ? Lt(l) : {
23044
23044
  field: Pv
@@ -23171,7 +23171,7 @@ function ose(e, t, n, i, r) {
23171
23171
  });
23172
23172
  }
23173
23173
  function sse(e, t) {
23174
- const n = Yn(e, t);
23174
+ const n = Xn(e, t);
23175
23175
  return {
23176
23176
  align: n("gridAlign"),
23177
23177
  columns: n.entryColumns(),
@@ -23187,7 +23187,7 @@ function sse(e, t) {
23187
23187
  }
23188
23188
  const rE = 'item.orient === "left"', oE = 'item.orient === "right"', g0 = `(${rE} || ${oE})`, ase = `datum.vgrad && ${g0}`, use = p0('"top"', '"bottom"', '"middle"'), lse = p0('"right"', '"left"', '"center"'), cse = `datum.vgrad && ${oE} ? (${lse}) : (${g0} && !(datum.vgrad && ${rE})) ? "left" : ${iE}`, fse = `item._anchor || (${g0} ? "middle" : "start")`, dse = `${ase} ? (${rE} ? -90 : 90) : 0`, hse = `${g0} ? (datum.vgrad ? (${oE} ? "bottom" : "top") : ${use}) : "top"`;
23189
23189
  function pse(e, t, n, i) {
23190
- const r = Yn(e, t), o = {
23190
+ const r = Xn(e, t), o = {
23191
23191
  enter: {
23192
23192
  opacity: Te
23193
23193
  },
@@ -23516,7 +23516,7 @@ function $se(e, t, n) {
23516
23516
  return ae(n.add(moe(s)));
23517
23517
  }
23518
23518
  function Ase(e, t) {
23519
- const n = t.config.legend, i = e.encode || {}, r = Yn(e, n), o = i.legend || {}, s = o.name || void 0, a = o.interactive, u = o.style, l = {};
23519
+ const n = t.config.legend, i = e.encode || {}, r = Xn(e, n), o = i.legend || {}, s = o.name || void 0, a = o.interactive, u = o.style, l = {};
23520
23520
  let c = 0, f, d, h;
23521
23521
  tE.forEach((v) => e[v] ? (l[v] = e[v], c = c || e[v]) : 0), c || P("Missing valid scale for legend.");
23522
23522
  const p = Mse(e, t.scaleType(c)), g = {
@@ -23607,7 +23607,7 @@ function Dse(e, t) {
23607
23607
  e = K(e) ? {
23608
23608
  text: e
23609
23609
  } : e;
23610
- const n = Yn(e, t.config.title), i = e.encode || {}, r = i.group || {}, o = r.name || void 0, s = r.interactive, a = r.style, u = [], l = {}, c = ae(t.add(rr(null, [l])));
23610
+ const n = Xn(e, t.config.title), i = e.encode || {}, r = i.group || {}, o = r.name || void 0, s = r.interactive, a = r.style, u = [], l = {}, c = ae(t.add(rr(null, [l])));
23611
23611
  return u.push(Ise(e, n, Lse(e), c)), e.subtitle && u.push(zse(e, n, i.subtitle, c)), m0(ed({
23612
23612
  role: Tre,
23613
23613
  from: c,
@@ -23863,7 +23863,7 @@ function Kse(e, t) {
23863
23863
  return a || u || o ? _e({}, r, a, u, o) : r;
23864
23864
  }
23865
23865
  function Zse(e, t, n, i) {
23866
- const r = Yn(e, t), o = e.orient;
23866
+ const r = Xn(e, t), o = e.orient;
23867
23867
  let s, a;
23868
23868
  const u = {
23869
23869
  enter: s = {
@@ -23899,7 +23899,7 @@ function nM(e, t) {
23899
23899
  };
23900
23900
  }
23901
23901
  function Jse(e, t, n, i, r) {
23902
- const o = Yn(e, t), s = e.orient, a = e.gridScale, u = y0(s, 1, -1), l = Qse(e.offset, u);
23902
+ const o = Xn(e, t), s = e.orient, a = e.gridScale, u = y0(s, 1, -1), l = Qse(e.offset, u);
23903
23903
  let c, f, d;
23904
23904
  const h = {
23905
23905
  enter: c = {
@@ -23975,7 +23975,7 @@ function Qse(e, t) {
23975
23975
  return e;
23976
23976
  }
23977
23977
  function eae(e, t, n, i, r, o) {
23978
- const s = Yn(e, t), a = e.orient, u = y0(a, -1, 1);
23978
+ const s = Xn(e, t), a = e.orient, u = y0(a, -1, 1);
23979
23979
  let l, c, f;
23980
23980
  const d = {
23981
23981
  enter: l = {
@@ -24020,7 +24020,7 @@ function yy(e, t, n, i, r) {
24020
24020
  };
24021
24021
  }
24022
24022
  function tae(e, t, n, i, r, o) {
24023
- const s = Yn(e, t), a = e.orient, u = e.scale, l = y0(a, -1, 1), c = ba(s("labelFlush")), f = ba(s("labelFlushOffset")), d = s("labelAlign"), h = s("labelBaseline");
24023
+ const s = Xn(e, t), a = e.orient, u = e.scale, l = y0(a, -1, 1), c = ba(s("labelFlush")), f = ba(s("labelFlushOffset")), d = s("labelAlign"), h = s("labelBaseline");
24024
24024
  let p = c === 0 || !!c, g;
24025
24025
  const m = Lt(r);
24026
24026
  m.mult = l, m.offset = Lt(s("labelPadding") || 0), m.offset.mult = l;
@@ -24096,7 +24096,7 @@ function tae(e, t, n, i, r, o) {
24096
24096
  }, n);
24097
24097
  }
24098
24098
  function nae(e, t, n, i) {
24099
- const r = Yn(e, t), o = e.orient, s = y0(o, -1, 1);
24099
+ const r = Xn(e, t), o = e.orient, s = y0(o, -1, 1);
24100
24100
  let a, u;
24101
24101
  const l = {
24102
24102
  enter: a = {
@@ -24145,7 +24145,7 @@ function iae(e, t, n, i) {
24145
24145
  n.enter.auto = s === o ? Lt(s) : Pt(t, Lt(s), Lt(o));
24146
24146
  }
24147
24147
  function rae(e, t) {
24148
- const n = Kse(e, t), i = e.encode || {}, r = i.axis || {}, o = r.name || void 0, s = r.interactive, a = r.style, u = Yn(e, n), l = ese(u), c = {
24148
+ const n = Kse(e, t), i = e.encode || {}, r = i.axis || {}, o = r.name || void 0, s = r.interactive, a = r.style, u = Xn(e, n), l = ese(u), c = {
24149
24149
  scale: e.scale,
24150
24150
  ticks: !!u("ticks"),
24151
24151
  labels: !!u("labels"),
@@ -24716,7 +24716,7 @@ const pae = hae, gae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
24716
24716
  Bounds: Et,
24717
24717
  CanvasHandler: Td,
24718
24718
  CanvasRenderer: Zp,
24719
- DATE: jn,
24719
+ DATE: qn,
24720
24720
  DAY: on,
24721
24721
  DAYOFYEAR: Rr,
24722
24722
  Dataflow: Du,
@@ -24741,7 +24741,7 @@ const pae = hae, gae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
24741
24741
  Operator: Xe,
24742
24742
  Parameters: mm,
24743
24743
  Pulse: as,
24744
- QUARTER: Un,
24744
+ QUARTER: jn,
24745
24745
  RenderType: Qo,
24746
24746
  Renderer: Fd,
24747
24747
  ResourceLoader: EN,
@@ -24756,9 +24756,9 @@ const pae = hae, gae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
24756
24756
  WEEK: $t,
24757
24757
  Warn: xx,
24758
24758
  YEAR: Xt,
24759
- accessor: Vn,
24759
+ accessor: Yn,
24760
24760
  accessorFields: un,
24761
- accessorName: pt,
24761
+ accessorName: gt,
24762
24762
  array: Q,
24763
24763
  ascending: Nl,
24764
24764
  bandwidthNRD: Xx,
@@ -24790,7 +24790,7 @@ const pae = hae, gae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
24790
24790
  domFind: F_,
24791
24791
  dotbin: s4,
24792
24792
  error: P,
24793
- expressionFunction: xt,
24793
+ expressionFunction: _t,
24794
24794
  extend: _e,
24795
24795
  extent: Fr,
24796
24796
  extentIndex: LF,
@@ -25350,7 +25350,7 @@ function Vl(e) {
25350
25350
  function pl(e) {
25351
25351
  return e ? zr(e).length : 0;
25352
25352
  }
25353
- function bt(...e) {
25353
+ function vt(...e) {
25354
25354
  return e.find((t) => t !== void 0);
25355
25355
  }
25356
25356
  let DD = 42;
@@ -25375,7 +25375,7 @@ function b0(e) {
25375
25375
  return De(e) ? !0 : !isNaN(e) && !isNaN(parseFloat(e));
25376
25376
  }
25377
25377
  const rM = Object.getPrototypeOf(structuredClone({}));
25378
- function ti(e, t) {
25378
+ function ni(e, t) {
25379
25379
  if (e === t)
25380
25380
  return !0;
25381
25381
  if (e && t && typeof e == "object" && typeof t == "object") {
@@ -25386,7 +25386,7 @@ function ti(e, t) {
25386
25386
  if (n = e.length, n != t.length)
25387
25387
  return !1;
25388
25388
  for (i = n; i-- !== 0; )
25389
- if (!ti(e[i], t[i]))
25389
+ if (!ni(e[i], t[i]))
25390
25390
  return !1;
25391
25391
  return !0;
25392
25392
  }
@@ -25397,7 +25397,7 @@ function ti(e, t) {
25397
25397
  if (!t.has(o[0]))
25398
25398
  return !1;
25399
25399
  for (const o of e.entries())
25400
- if (!ti(o[1], t.get(o[0])))
25400
+ if (!ni(o[1], t.get(o[0])))
25401
25401
  return !1;
25402
25402
  return !0;
25403
25403
  }
@@ -25431,7 +25431,7 @@ function ti(e, t) {
25431
25431
  return !1;
25432
25432
  for (i = n; i-- !== 0; ) {
25433
25433
  const o = r[i];
25434
- if (!ti(e[o], t[o]))
25434
+ if (!ni(e[o], t[o]))
25435
25435
  return !1;
25436
25436
  }
25437
25437
  return !0;
@@ -25468,7 +25468,7 @@ function je(e) {
25468
25468
  function W(e, t) {
25469
25469
  return Z(e) && ne(e, t) && e[t] !== void 0;
25470
25470
  }
25471
- const bo = "row", vo = "column", v0 = "facet", ot = "x", Ut = "y", sr = "x2", Gr = "y2", Os = "xOffset", Yl = "yOffset", ar = "radius", To = "radius2", Ri = "theta", No = "theta2", ur = "latitude", lr = "longitude", cr = "latitude2", Ti = "longitude2", Ds = "time", Wn = "color", Vr = "fill", Yr = "stroke", Hn = "shape", Ro = "size", tu = "angle", Oo = "opacity", Ls = "fillOpacity", Ps = "strokeOpacity", Is = "strokeWidth", zs = "strokeDash", qd = "text", gl = "order", Wd = "detail", x0 = "key", Pa = "tooltip", _0 = "href", w0 = "url", E0 = "description", Nae = {
25471
+ const bo = "row", vo = "column", v0 = "facet", ot = "x", Ut = "y", sr = "x2", Gr = "y2", Os = "xOffset", Yl = "yOffset", ar = "radius", To = "radius2", Ri = "theta", No = "theta2", ur = "latitude", lr = "longitude", cr = "latitude2", Ti = "longitude2", Ds = "time", Hn = "color", Vr = "fill", Yr = "stroke", Gn = "shape", Ro = "size", tu = "angle", Oo = "opacity", Ls = "fillOpacity", Ps = "strokeOpacity", Is = "strokeWidth", zs = "strokeDash", qd = "text", gl = "order", Wd = "detail", x0 = "key", Pa = "tooltip", _0 = "href", w0 = "url", E0 = "description", Nae = {
25472
25472
  x: 1,
25473
25473
  y: 1,
25474
25474
  x2: 1,
@@ -25535,7 +25535,7 @@ const Rae = j(mE), yE = {
25535
25535
  description: 1
25536
25536
  };
25537
25537
  function Uu(e) {
25538
- return e === Wn || e === Vr || e === Yr;
25538
+ return e === Hn || e === Vr || e === Yr;
25539
25539
  }
25540
25540
  const qD = {
25541
25541
  row: 1,
@@ -25602,7 +25602,7 @@ function Xr(e) {
25602
25602
  return To;
25603
25603
  }
25604
25604
  }
25605
- function Gn(e) {
25605
+ function Vn(e) {
25606
25606
  switch (e) {
25607
25607
  case ot:
25608
25608
  case sr:
@@ -25671,7 +25671,7 @@ const Bae = j(yE), {
25671
25671
  x: 1,
25672
25672
  y: 1
25673
25673
  }, Do = j(_E);
25674
- function vt(e) {
25674
+ function xt(e) {
25675
25675
  return ne(_E, e);
25676
25676
  }
25677
25677
  const wE = {
@@ -25711,11 +25711,11 @@ function Hae(e) {
25711
25711
  }
25712
25712
  function Gae(e) {
25713
25713
  switch (e) {
25714
- case Wn:
25714
+ case Hn:
25715
25715
  case Vr:
25716
25716
  case Yr:
25717
25717
  case Ro:
25718
- case Hn:
25718
+ case Gn:
25719
25719
  case Oo:
25720
25720
  case Is:
25721
25721
  case zs:
@@ -25758,7 +25758,7 @@ const KD = {
25758
25758
  }, { geoshape: Vye, ...Yae } = KD;
25759
25759
  function Xae(e) {
25760
25760
  switch (e) {
25761
- case Wn:
25761
+ case Hn:
25762
25762
  case Vr:
25763
25763
  case Yr:
25764
25764
  // falls through
@@ -25827,7 +25827,7 @@ function Xae(e) {
25827
25827
  bar: "always",
25828
25828
  geoshape: "always"
25829
25829
  };
25830
- case Hn:
25830
+ case Gn:
25831
25831
  return { point: "always", geoshape: "always" };
25832
25832
  case qd:
25833
25833
  return { text: "always" };
@@ -25868,7 +25868,7 @@ function vy(e) {
25868
25868
  case v0:
25869
25869
  case bo:
25870
25870
  case vo:
25871
- case Hn:
25871
+ case Gn:
25872
25872
  case zs:
25873
25873
  // TEXT, TOOLTIP, URL, and HREF have no scale but have discrete output [falls through]
25874
25874
  case qd:
@@ -25878,7 +25878,7 @@ function vy(e) {
25878
25878
  case E0:
25879
25879
  return "discrete";
25880
25880
  // Color can be either continuous or discrete, depending on scale type.
25881
- case Wn:
25881
+ case Hn:
25882
25882
  case Vr:
25883
25883
  case Yr:
25884
25884
  return "flexible";
@@ -25980,7 +25980,7 @@ function oM(e) {
25980
25980
  case bo:
25981
25981
  case vo:
25982
25982
  case Ro:
25983
- case Wn:
25983
+ case Hn:
25984
25984
  case Vr:
25985
25985
  case Yr:
25986
25986
  case Is:
@@ -25989,7 +25989,7 @@ function oM(e) {
25989
25989
  case Ps:
25990
25990
  // Facets and Size shouldn't have too many bins
25991
25991
  // We choose 6 like shape to simplify the rule [falls through]
25992
- case Hn:
25992
+ case Gn:
25993
25993
  return 6;
25994
25994
  // Vega's "shape" has 6 distinct values
25995
25995
  case zs:
@@ -26005,7 +26005,7 @@ function Gd(e) {
26005
26005
  function Wt(e, { level: t } = { level: 0 }) {
26006
26006
  const n = j(e || {}), i = {};
26007
26007
  for (const r of n)
26008
- i[r] = t === 0 ? Qn(e[r]) : Wt(e[r], { level: t - 1 });
26008
+ i[r] = t === 0 ? ei(e[r]) : Wt(e[r], { level: t - 1 });
26009
26009
  return i;
26010
26010
  }
26011
26011
  function JD(e) {
@@ -26158,11 +26158,11 @@ const rue = {
26158
26158
  function QD(e) {
26159
26159
  const t = z(e.condition) ? e.condition.map(sM) : sM(e.condition);
26160
26160
  return {
26161
- ...Qn(e),
26161
+ ...ei(e),
26162
26162
  condition: t
26163
26163
  };
26164
26164
  }
26165
- function Qn(e) {
26165
+ function ei(e) {
26166
26166
  if (Gd(e)) {
26167
26167
  const { expr: t, ...n } = e;
26168
26168
  return { signal: t, ...n };
@@ -26208,7 +26208,7 @@ function Ue(e, t, n, i = {}) {
26208
26208
  }
26209
26209
  function Lr(e, t, n, { vgChannel: i } = {}) {
26210
26210
  const r = Uv(e, t, n.style);
26211
- return bt(
26211
+ return vt(
26212
26212
  // style config has highest precedence
26213
26213
  i ? r : void 0,
26214
26214
  r,
@@ -26240,13 +26240,13 @@ function i9(e, t) {
26240
26240
  const n = [...e];
26241
26241
  return t.forEach((i) => {
26242
26242
  for (const r of n)
26243
- if (ti(r, i))
26243
+ if (ni(r, i))
26244
26244
  return;
26245
26245
  n.push(i);
26246
26246
  }), n;
26247
26247
  }
26248
26248
  function r9(e, t) {
26249
- return ti(e, t) || !t ? e : e ? [...Q(e), ...Q(t)].join(", ") : t;
26249
+ return ni(e, t) || !t ? e : e ? [...Q(e), ...Q(t)].join(", ") : t;
26250
26250
  }
26251
26251
  function o9(e, t) {
26252
26252
  const n = e.value, i = t.value;
@@ -26289,7 +26289,7 @@ function lM(e) {
26289
26289
  return `${t} "container" only works well with autosize "fit" or "fit-${n}".`;
26290
26290
  }
26291
26291
  function cM(e) {
26292
- return e ? `Dropping "fit-${e}" because spec has discrete ${Gn(e)}.` : 'Dropping "fit" because spec has discrete size.';
26292
+ return e ? `Dropping "fit-${e}" because spec has discrete ${Vn(e)}.` : 'Dropping "fit" because spec has discrete size.';
26293
26293
  }
26294
26294
  function kE(e) {
26295
26295
  return `Unknown field for ${e}. Cannot calculate view size.`;
@@ -27107,20 +27107,20 @@ function Zle(e, t, n = !1) {
27107
27107
  case Ps:
27108
27108
  case tu:
27109
27109
  return Er(t) || yl(t) || Ce(["band", "point", "ordinal"], t);
27110
- case Wn:
27110
+ case Hn:
27111
27111
  case Vr:
27112
27112
  case Yr:
27113
27113
  return t !== "band";
27114
27114
  // band does not make sense with color
27115
27115
  case zs:
27116
- case Hn:
27116
+ case Gn:
27117
27117
  return t === "ordinal" || yl(t);
27118
27118
  }
27119
27119
  }
27120
27120
  function Jle(e) {
27121
27121
  return Z(e) && "value" in e;
27122
27122
  }
27123
- const Nn = {
27123
+ const Rn = {
27124
27124
  arc: "arc",
27125
27125
  area: "area",
27126
27126
  bar: "bar",
@@ -27135,7 +27135,7 @@ const Nn = {
27135
27135
  circle: "circle",
27136
27136
  square: "square",
27137
27137
  geoshape: "geoshape"
27138
- }, F9 = Nn.arc, F0 = Nn.area, T0 = Nn.bar, Qle = Nn.image, N0 = Nn.line, R0 = Nn.point, ece = Nn.rect, Bg = Nn.rule, T9 = Nn.text, jE = Nn.tick, tce = Nn.trail, qE = Nn.circle, WE = Nn.square, N9 = Nn.geoshape;
27138
+ }, F9 = Rn.arc, F0 = Rn.area, T0 = Rn.bar, Qle = Rn.image, N0 = Rn.line, R0 = Rn.point, ece = Rn.rect, Bg = Rn.rule, T9 = Rn.text, jE = Rn.tick, tce = Rn.trail, qE = Rn.circle, WE = Rn.square, N9 = Rn.geoshape;
27139
27139
  function Us(e) {
27140
27140
  return ["line", "area", "trail"].includes(e);
27141
27141
  }
@@ -27149,7 +27149,7 @@ function id(e) {
27149
27149
  /* arc is rect/interval in polar coordinate */
27150
27150
  ].includes(e);
27151
27151
  }
27152
- const nce = new Set(j(Nn));
27152
+ const nce = new Set(j(Rn));
27153
27153
  function Pr(e) {
27154
27154
  return W(e, "type");
27155
27155
  }
@@ -27324,7 +27324,7 @@ function YE({ channel: e, channelDef: t, channel2Def: n, markDef: i, config: r,
27324
27324
  if (t) {
27325
27325
  if (be(t)) {
27326
27326
  const f = s == null ? void 0 : s.get("type");
27327
- if (Fn(t)) {
27327
+ if (Tn(t)) {
27328
27328
  c ?? (c = Ss({
27329
27329
  fieldDef: t,
27330
27330
  fieldDef2: n,
@@ -27575,7 +27575,7 @@ function Ss({ fieldDef: e, fieldDef2: t, markDef: n, config: i }) {
27575
27575
  }
27576
27576
  function q9({ channel: e, fieldDef: t, fieldDef2: n, markDef: i, config: r, scaleType: o, useVlSizeChannel: s }) {
27577
27577
  var l, c, f;
27578
- const a = Gn(e), u = Ue(s ? "size" : a, i, r, {
27578
+ const a = Vn(e), u = Ue(s ? "size" : a, i, r, {
27579
27579
  vgChannel: a
27580
27580
  });
27581
27581
  if (u !== void 0)
@@ -27591,7 +27591,7 @@ function q9({ channel: e, fieldDef: t, fieldDef2: n, markDef: i, config: r, scal
27591
27591
  return o ? zt(o) ? ((l = r[i.type]) == null ? void 0 : l.discreteBandSize) || { band: 1 } : (c = r[i.type]) == null ? void 0 : c.continuousBandSize : (f = r[i.type]) == null ? void 0 : f.discreteBandSize;
27592
27592
  }
27593
27593
  function W9(e, t, n, i) {
27594
- return Je(e.bin) || e.timeUnit && Fn(e) && e.type === "temporal" ? Ss({ fieldDef: e, fieldDef2: t, markDef: n, config: i }) !== void 0 : !1;
27594
+ return Je(e.bin) || e.timeUnit && Tn(e) && e.type === "temporal" ? Ss({ fieldDef: e, fieldDef2: t, markDef: n, config: i }) !== void 0 : !1;
27595
27595
  }
27596
27596
  function H9(e) {
27597
27597
  return W(e, "sort") && !W(e, "field");
@@ -27621,10 +27621,10 @@ function Zr(e) {
27621
27621
  return W(e, "datum");
27622
27622
  }
27623
27623
  function rs(e) {
27624
- return Fn(e) && !qg(e) || jg(e);
27624
+ return Tn(e) && !qg(e) || jg(e);
27625
27625
  }
27626
27626
  function wM(e) {
27627
- return Fn(e) && e.type === "quantitative" && !e.bin || jg(e);
27627
+ return Tn(e) && e.type === "quantitative" && !e.bin || jg(e);
27628
27628
  }
27629
27629
  function jg(e) {
27630
27630
  return Zr(e) && De(e.datum);
@@ -27632,7 +27632,7 @@ function jg(e) {
27632
27632
  function be(e) {
27633
27633
  return H(e) || Zr(e);
27634
27634
  }
27635
- function Fn(e) {
27635
+ function Tn(e) {
27636
27636
  return e && (W(e, "field") || e.aggregate === "count") && W(e, "type");
27637
27637
  }
27638
27638
  function er(e) {
@@ -27742,7 +27742,7 @@ function ju(e, t, { allowDisabling: n, includeDefault: i = !0 }) {
27742
27742
  if (!H(e))
27743
27743
  return r ?? e.title;
27744
27744
  const o = e, s = i ? QE(o, t) : void 0;
27745
- return n ? bt(r, o.title, s) : r ?? o.title ?? s;
27745
+ return n ? vt(r, o.title, s) : r ?? o.title ?? s;
27746
27746
  }
27747
27747
  function JE(e) {
27748
27748
  if (vl(e) && e.axis)
@@ -27843,14 +27843,14 @@ function Oce(e) {
27843
27843
  }
27844
27844
  function eS(e, t, { compositeMark: n = !1 } = {}) {
27845
27845
  const { aggregate: i, timeUnit: r, bin: o, field: s } = e, a = { ...e };
27846
- if (!n && i && !SE(i) && !Bs(i) && !ko(i) && (G(Due(i)), delete a.aggregate), r && (a.timeUnit = It(r)), s && (a.field = `${s}`), Je(o) && (a.bin = P0(o, t)), qt(o) && !vt(t) && G(hle(t)), Fn(a)) {
27846
+ if (!n && i && !SE(i) && !Bs(i) && !ko(i) && (G(Due(i)), delete a.aggregate), r && (a.timeUnit = It(r)), s && (a.field = `${s}`), Je(o) && (a.bin = P0(o, t)), qt(o) && !xt(t) && G(hle(t)), Tn(a)) {
27847
27847
  const { type: u } = a, l = Ile(u);
27848
27848
  u !== l && (a.type = l), u !== "quantitative" && C0(i) && (G(Oue(u, i)), a.type = "quantitative");
27849
27849
  } else if (!HD(t)) {
27850
27850
  const u = Rce(a, t);
27851
27851
  a.type = u;
27852
27852
  }
27853
- if (Fn(a)) {
27853
+ if (Tn(a)) {
27854
27854
  const { compatible: u, warning: l } = Dce(a, t) || {};
27855
27855
  u === !1 && G(l);
27856
27856
  }
@@ -27910,7 +27910,7 @@ function Dce(e, t) {
27910
27910
  case Ut:
27911
27911
  case Os:
27912
27912
  case Yl:
27913
- case Wn:
27913
+ case Hn:
27914
27914
  case Vr:
27915
27915
  case Yr:
27916
27916
  case qd:
@@ -27946,7 +27946,7 @@ function Dce(e, t) {
27946
27946
  compatible: !1,
27947
27947
  warning: `Channel ${t} should not be used with an unsorted discrete field.`
27948
27948
  } : wu;
27949
- case Hn:
27949
+ case Gn:
27950
27950
  case zs:
27951
27951
  return !qg(e) && !Ace(e) ? {
27952
27952
  compatible: !1,
@@ -28286,7 +28286,7 @@ function n7(e, t) {
28286
28286
  return n ? z(n) ? hl(n, (i) => !!i.field) : H(n) || Zr(n) || Zd(n) : !1;
28287
28287
  }
28288
28288
  function i7(e, t) {
28289
- if (vt(t)) {
28289
+ if (xt(t)) {
28290
28290
  const n = e[t];
28291
28291
  if ((H(n) || Zr(n)) && (zE(n.type) || H(n) && n.timeUnit)) {
28292
28292
  const i = vE(t);
@@ -28333,8 +28333,8 @@ function o7(e, t) {
28333
28333
  };
28334
28334
  l && (v.field = l), o.push(v);
28335
28335
  }
28336
- } else if (n.push(m), Fn(a) && Je(f)) {
28337
- if (i.push({ bin: f, field: l, as: m }), n.push(X(a, { binSuffix: "end" })), Jd(a, u) && n.push(X(a, { binSuffix: "range" })), vt(u)) {
28336
+ } else if (n.push(m), Tn(a) && Je(f)) {
28337
+ if (i.push({ bin: f, field: l, as: m }), n.push(X(a, { binSuffix: "end" })), Jd(a, u) && n.push(X(a, { binSuffix: "range" })), xt(u)) {
28338
28338
  const b = {
28339
28339
  field: `${m}_end`
28340
28340
  };
@@ -28347,11 +28347,11 @@ function o7(e, t) {
28347
28347
  field: l,
28348
28348
  as: m
28349
28349
  });
28350
- const b = Fn(a) && a.type !== ml && "time";
28350
+ const b = Tn(a) && a.type !== ml && "time";
28351
28351
  b && (u === qd || u === Pa ? y.formatType = b : Hae(u) ? y.legend = {
28352
28352
  formatType: b,
28353
28353
  ...y.legend
28354
- } : vt(u) && (y.axis = {
28354
+ } : xt(u) && (y.axis = {
28355
28355
  formatType: b,
28356
28356
  ...y.axis
28357
28357
  }));
@@ -28405,7 +28405,7 @@ function Uce(e, t, n, i) {
28405
28405
  continue;
28406
28406
  }
28407
28407
  }
28408
- if (o === Wn && (n ? "fill" in e : "stroke" in e)) {
28408
+ if (o === Hn && (n ? "fill" in e : "stroke" in e)) {
28409
28409
  G(u9("encoding", { fill: "fill" in e, stroke: "stroke" in e }));
28410
28410
  continue;
28411
28411
  }
@@ -28493,7 +28493,7 @@ function s7(e, t) {
28493
28493
  // TODO: case 'cursor':
28494
28494
  // text, shape, shouldn't be a part of line/trail/area [falls through]
28495
28495
  case qd:
28496
- case Hn:
28496
+ case Gn:
28497
28497
  case tu:
28498
28498
  // falls through
28499
28499
  // tooltip fields should not be added to group by [falls through]
@@ -28516,7 +28516,7 @@ function s7(e, t) {
28516
28516
  return n;
28517
28517
  // For line, size should group lines.
28518
28518
  // falls through
28519
- case Wn:
28519
+ case Hn:
28520
28520
  case Vr:
28521
28521
  case Yr:
28522
28522
  case Oo:
@@ -28564,7 +28564,7 @@ function Gv(e, t, n, i = !0) {
28564
28564
  }
28565
28565
  function nS(e) {
28566
28566
  const { title: t, field: n } = e;
28567
- return bt(t, n);
28567
+ return vt(t, n);
28568
28568
  }
28569
28569
  function iS(e, t, n, i, r) {
28570
28570
  const { scale: o, axis: s } = n;
@@ -28747,13 +28747,13 @@ function f7(e, { config: t }) {
28747
28747
  transform: (s.transform ?? []).concat(p),
28748
28748
  layer: J
28749
28749
  };
28750
- const se = qe(`lower_box_${g.field}`), oe = qe(`upper_box_${g.field}`), pe = `(${oe} - ${se})`, Ne = `${se} - ${u} * ${pe}`, he = `${oe} + ${u} * ${pe}`, gt = qe(g.field), hi = {
28750
+ const se = qe(`lower_box_${g.field}`), oe = qe(`upper_box_${g.field}`), pe = `(${oe} - ${se})`, Ne = `${se} - ${u} * ${pe}`, he = `${oe} + ${u} * ${pe}`, mt = qe(g.field), hi = {
28751
28751
  joinaggregate: d7(g.field),
28752
28752
  groupby: y
28753
- }, Rn = {
28753
+ }, On = {
28754
28754
  transform: [
28755
28755
  {
28756
- filter: `(${Ne} <= ${gt}) && (${gt} <= ${he})`
28756
+ filter: `(${Ne} <= ${mt}) && (${mt} <= ${he})`
28757
28757
  },
28758
28758
  {
28759
28759
  aggregate: [
@@ -28785,7 +28785,7 @@ function f7(e, { config: t }) {
28785
28785
  ],
28786
28786
  layer: I
28787
28787
  }, { tooltip: te, ...ge } = $, { scale: xe, axis: q } = g, st = nS(g), Ae = a7(a, "outliers", t.boxplot, {
28788
- transform: [{ filter: `(${gt} < ${Ne}) || (${gt} > ${he})` }],
28788
+ transform: [{ filter: `(${mt} < ${Ne}) || (${mt} > ${he})` }],
28789
28789
  mark: "point",
28790
28790
  encoding: {
28791
28791
  [m]: {
@@ -28804,8 +28804,8 @@ function f7(e, { config: t }) {
28804
28804
  const ct = [...d, ...h, hi];
28805
28805
  return Ae ? nt = {
28806
28806
  transform: ct,
28807
- layer: [Ae, Rn]
28808
- } : (nt = Rn, nt.transform.unshift(...ct)), {
28807
+ layer: [Ae, On]
28808
+ } : (nt = On, nt.transform.unshift(...ct)), {
28809
28809
  ...s,
28810
28810
  layer: [
28811
28811
  nt,
@@ -29368,7 +29368,7 @@ function Yv(e, t) {
29368
29368
  }
29369
29369
  function Vg(e, t) {
29370
29370
  const n = e[t] ?? e[t === "width" ? "discreteWidth" : "discreteHeight"];
29371
- return bt(n, { step: e.step });
29371
+ return vt(n, { step: e.step });
29372
29372
  }
29373
29373
  const E7 = 20, gfe = {
29374
29374
  continuousWidth: 300,
@@ -29567,7 +29567,7 @@ function S7(e) {
29567
29567
  const t = j(e || {}), n = {};
29568
29568
  for (const i of t) {
29569
29569
  const r = e[i];
29570
- n[i] = Qd(r) ? QD(r) : Qn(r);
29570
+ n[i] = Qd(r) ? QD(r) : ei(r);
29571
29571
  }
29572
29572
  return n;
29573
29573
  }
@@ -29595,7 +29595,7 @@ function C7(e = {}) {
29595
29595
  r && Tl(s, "selection", r, !0);
29596
29596
  const a = si(s, _fe);
29597
29597
  for (const u of ["background", "lineBreak", "padding"])
29598
- s[u] && (a[u] = Qn(s[u]));
29598
+ s[u] && (a[u] = ei(s[u]));
29599
29599
  for (const u of R9)
29600
29600
  s[u] && (a[u] = Wt(s[u]));
29601
29601
  for (const u of t7)
@@ -29880,7 +29880,7 @@ function Pfe(e, t, { graticule: n }) {
29880
29880
  if (n)
29881
29881
  return !1;
29882
29882
  const i = Lr("filled", e, t), r = e.type;
29883
- return bt(i, r !== R0 && r !== N0 && r !== Bg);
29883
+ return vt(i, r !== R0 && r !== N0 && r !== Bg);
29884
29884
  }
29885
29885
  function Ife(e, t, n) {
29886
29886
  switch (e) {
@@ -29936,7 +29936,7 @@ function Ife(e, t, n) {
29936
29936
  if (a && u)
29937
29937
  return "vertical";
29938
29938
  {
29939
- const l = Fn(i) && i.type === ml, c = Fn(r) && r.type === ml;
29939
+ const l = Tn(i) && i.type === ml, c = Tn(r) && r.type === ml;
29940
29940
  if (l && !c)
29941
29941
  return "vertical";
29942
29942
  if (!l && c)
@@ -30547,7 +30547,7 @@ function yde(e, t, n) {
30547
30547
  ...n ? PM(n.autosize) : {},
30548
30548
  ...PM(e.autosize)
30549
30549
  };
30550
- if (a.type === "fit" && !o && (G(cue), a.type = "pad"), i == "container" && !(a.type == "fit" || a.type == "fit-x") && G(lM("width")), r == "container" && !(a.type == "fit" || a.type == "fit-y") && G(lM("height")), !ti(a, { type: "pad" }))
30550
+ if (a.type === "fit" && !o && (G(cue), a.type = "pad"), i == "container" && !(a.type == "fit" || a.type == "fit-x") && G(lM("width")), r == "container" && !(a.type == "fit" || a.type == "fit-y") && G(lM("height")), !ni(a, { type: "pad" }))
30551
30551
  return a;
30552
30552
  }
30553
30553
  function bde(e) {
@@ -30564,7 +30564,7 @@ const xde = [
30564
30564
  function IM(e, t) {
30565
30565
  const n = {};
30566
30566
  for (const i of xde)
30567
- e && e[i] !== void 0 && (n[i] = Qn(e[i]));
30567
+ e && e[i] !== void 0 && (n[i] = ei(e[i]));
30568
30568
  return t && (n.params = e.params), n;
30569
30569
  }
30570
30570
  class Po {
@@ -30584,7 +30584,7 @@ class Po {
30584
30584
  };
30585
30585
  }
30586
30586
  get(t) {
30587
- return bt(this.explicit[t], this.implicit[t]);
30587
+ return vt(this.explicit[t], this.implicit[t]);
30588
30588
  }
30589
30589
  getWithExplicit(t) {
30590
30590
  return this.explicit[t] !== void 0 ? { explicit: !0, value: this.explicit[t] } : this.implicit[t] !== void 0 ? { explicit: !1, value: this.implicit[t] } : { explicit: !1, value: void 0 };
@@ -30618,7 +30618,7 @@ function mr(e) {
30618
30618
  value: e
30619
30619
  };
30620
30620
  }
30621
- function Kn(e) {
30621
+ function Zn(e) {
30622
30622
  return {
30623
30623
  explicit: !1,
30624
30624
  value: e
@@ -30634,7 +30634,7 @@ function q0(e, t, n, i) {
30634
30634
  return e.explicit && t.explicit && G(Que(n, i, e.value, t.value)), e;
30635
30635
  }
30636
30636
  function Cs(e, t, n, i, r = q0) {
30637
- return e === void 0 || e.value === void 0 ? t : e.explicit && !t.explicit ? e : t.explicit && !e.explicit ? t : ti(e.value, t.value) ? e : r(e, t, n, i);
30637
+ return e === void 0 || e.value === void 0 ? t : e.explicit && !t.explicit ? e : t.explicit && !e.explicit ? t : ni(e.value, t.value) ? e : r(e, t, n, i);
30638
30638
  }
30639
30639
  class _de extends Po {
30640
30640
  constructor(n = {}, i = {}, r = !1) {
@@ -30769,7 +30769,7 @@ class He {
30769
30769
  this._parent = n, n.addChild(this, i), t.parent = this;
30770
30770
  }
30771
30771
  }
30772
- class Bn extends He {
30772
+ class Un extends He {
30773
30773
  /**
30774
30774
  * @param source The name of the source. Will change in assemble.
30775
30775
  * @param type The type of the output node.
@@ -30851,7 +30851,7 @@ class $r extends He {
30851
30851
  };
30852
30852
  if (ut(i)) {
30853
30853
  const { mark: f, markDef: d, config: h } = i, p = Ss({ fieldDef: s, markDef: d, config: h });
30854
- id(f) && vt(a) && p !== 0.5 && (c.rectBandPosition = p);
30854
+ id(f) && xt(a) && p !== 0.5 && (c.rectBandPosition = p);
30855
30855
  }
30856
30856
  c && (o[$e(c)] = c);
30857
30857
  }
@@ -31514,20 +31514,20 @@ function X7(e, t = {}) {
31514
31514
  function K7(e, t, n, { reactiveGeom: i } = {}) {
31515
31515
  const r = { ...n, ...n.tooltipFormat }, o = /* @__PURE__ */ new Set(), s = i ? "datum.datum" : "datum", a = [];
31516
31516
  function u(c, f) {
31517
- const d = nu(f), h = Fn(c) ? c : {
31517
+ const d = nu(f), h = Tn(c) ? c : {
31518
31518
  ...c,
31519
31519
  type: e[d].type
31520
31520
  // for secondary field def, copy type from main channel
31521
31521
  }, p = h.title || QE(h, r), g = Q(p).join(", ").replaceAll(/"/g, '\\"');
31522
31522
  let m;
31523
- if (vt(f)) {
31523
+ if (xt(f)) {
31524
31524
  const y = f === "x" ? "x2" : "y2", b = tr(e[y]);
31525
31525
  if (qt(h.bin) && b) {
31526
31526
  const v = X(h, { expr: s }), x = X(b, { expr: s }), { format: _, formatType: E } = Wg(h);
31527
31527
  m = Yd(v, x, _, E, r), o.add(y);
31528
31528
  }
31529
31529
  }
31530
- if ((vt(f) || f === Ri || f === ar) && t && t.fieldChannel === f && t.offset === "normalize") {
31530
+ if ((xt(f) || f === Ri || f === ar) && t && t.fieldChannel === f && t.offset === "normalize") {
31531
31531
  const { format: y, formatType: b } = Wg(h);
31532
31532
  m = XE({
31533
31533
  fieldOrDatumDef: h,
@@ -31703,7 +31703,7 @@ function Cn(e, t, { defaultPos: n, vgChannel: i }) {
31703
31703
  channel: e,
31704
31704
  scaleName: c,
31705
31705
  scale: f
31706
- }), g = !u && vt(e) && (r.latitude || r.longitude) ? (
31706
+ }), g = !u && xt(e) && (r.latitude || r.longitude) ? (
31707
31707
  // use geopoint output if there are lat/long and there is no point position overriding lat/long.
31708
31708
  { field: t.getName(e) }
31709
31709
  ) : Ude({
@@ -31758,7 +31758,7 @@ function yS({ model: e, defaultPos: t, channel: n, scaleName: i, scale: r }) {
31758
31758
  config: s
31759
31759
  });
31760
31760
  case "mid":
31761
- return { ...e[Gn(n)], mult: 0.5 };
31761
+ return { ...e[Vn(n)], mult: 0.5 };
31762
31762
  }
31763
31763
  };
31764
31764
  }
@@ -31803,7 +31803,7 @@ function Yg(e, t, { defaultPos: n, defaultPos2: i, range: r }) {
31803
31803
  return r ? eL(e, t, { defaultPos: n, defaultPos2: i }) : Cn(e, t, { defaultPos: n });
31804
31804
  }
31805
31805
  function eL(e, t, { defaultPos: n, defaultPos2: i }) {
31806
- const { markDef: r, config: o } = t, s = Xr(e), a = Gn(e), u = Wde(t, i, s), l = u[a] ? (
31806
+ const { markDef: r, config: o } = t, s = Xr(e), a = Vn(e), u = Wde(t, i, s), l = u[a] ? (
31807
31807
  // If there is width/height, we need to position the marks based on the alignment.
31808
31808
  Q7(e, r, o)
31809
31809
  ) : (
@@ -31816,9 +31816,9 @@ function eL(e, t, { defaultPos: n, defaultPos2: i }) {
31816
31816
  };
31817
31817
  }
31818
31818
  function Wde(e, t, n) {
31819
- const { encoding: i, mark: r, markDef: o, stack: s, config: a } = e, u = nu(n), l = Gn(n), c = Es(n), f = i[u], d = e.scaleName(u), h = e.getScaleComponent(u), { offset: p } = n in i || n in o ? wl({ channel: n, markDef: o, encoding: i, model: e }) : wl({ channel: u, markDef: o, encoding: i, model: e });
31819
+ const { encoding: i, mark: r, markDef: o, stack: s, config: a } = e, u = nu(n), l = Vn(n), c = Es(n), f = i[u], d = e.scaleName(u), h = e.getScaleComponent(u), { offset: p } = n in i || n in o ? wl({ channel: n, markDef: o, encoding: i, model: e }) : wl({ channel: u, markDef: o, encoding: i, model: e });
31820
31820
  if (!f && (n === "x2" || n === "y2") && (i.latitude || i.longitude)) {
31821
- const m = Gn(n), y = e.markDef[m];
31821
+ const m = Vn(n), y = e.markDef[m];
31822
31822
  return y != null ? {
31823
31823
  [m]: { value: y }
31824
31824
  } : {
@@ -31865,7 +31865,7 @@ function Hde({ channel: e, channelDef: t, channel2Def: n, markDef: i, config: r,
31865
31865
  });
31866
31866
  }
31867
31867
  function Dh(e, t) {
31868
- const n = Gn(e), i = Es(e);
31868
+ const n = Vn(e), i = Es(e);
31869
31869
  if (t[i] !== void 0)
31870
31870
  return { [i]: Ff(e, t[i]) };
31871
31871
  if (t[e] !== void 0)
@@ -31879,7 +31879,7 @@ function Dh(e, t) {
31879
31879
  }
31880
31880
  }
31881
31881
  function $o(e, t) {
31882
- const { config: n, encoding: i, markDef: r } = e, o = r.type, s = Xr(t), a = Gn(t), u = i[t], l = i[s], c = e.getScaleComponent(t), f = c ? c.get("type") : void 0, d = r.orient, h = i[a] ?? i.size ?? Ue("size", r, n, { vgChannel: a }), p = GD(t), g = o === "bar" && (t === "x" ? d === "vertical" : d === "horizontal") || o === "tick" && (t === "y" ? d === "vertical" : d === "horizontal");
31882
+ const { config: n, encoding: i, markDef: r } = e, o = r.type, s = Xr(t), a = Vn(t), u = i[t], l = i[s], c = e.getScaleComponent(t), f = c ? c.get("type") : void 0, d = r.orient, h = i[a] ?? i.size ?? Ue("size", r, n, { vgChannel: a }), p = GD(t), g = o === "bar" && (t === "x" ? d === "vertical" : d === "horizontal") || o === "tick" && (t === "y" ? d === "vertical" : d === "horizontal");
31883
31883
  return H(u) && (Je(u.bin) || qt(u.bin) || u.timeUnit && !l) && !(h && !Ua(h)) && !i[p] && !zt(f) ? Yde({
31884
31884
  fieldDef: u,
31885
31885
  fieldDef2: l,
@@ -31914,7 +31914,7 @@ function Gde(e, t, n, i, r, o, s) {
31914
31914
  return { value: u.step - 2 };
31915
31915
  }
31916
31916
  if (!o) {
31917
- const { bandPaddingInner: u, barBandPaddingInner: l, rectBandPaddingInner: c, tickBandPaddingInner: f } = i.scale, d = bt(u, s === "tick" ? f : s === "bar" ? l : c);
31917
+ const { bandPaddingInner: u, barBandPaddingInner: l, rectBandPaddingInner: c, tickBandPaddingInner: f } = i.scale, d = vt(u, s === "tick" ? f : s === "bar" ? l : c);
31918
31918
  if (re(d))
31919
31919
  return { signal: `(1 - (${d.signal})) * ${e}` };
31920
31920
  if (De(d))
@@ -31924,7 +31924,7 @@ function Gde(e, t, n, i, r, o, s) {
31924
31924
  }
31925
31925
  function Vde(e, t, n) {
31926
31926
  var C, $;
31927
- const { markDef: i, encoding: r, config: o, stack: s } = n, a = i.orient, u = n.scaleName(t), l = n.getScaleComponent(t), c = Gn(t), f = Xr(t), d = GD(t), h = n.scaleName(d), p = n.getScaleComponent(vE(t)), g = (
31927
+ const { markDef: i, encoding: r, config: o, stack: s } = n, a = i.orient, u = n.scaleName(t), l = n.getScaleComponent(t), c = Vn(t), f = Xr(t), d = GD(t), h = n.scaleName(d), p = n.getScaleComponent(vE(t)), g = (
31928
31928
  // Always uses size channel for ticks, because tick only calls rectPosition() for the size channel
31929
31929
  i.type === "tick" || // use "size" channel for bars, if there is orient and the channel matches the right orientation
31930
31930
  a === "horizontal" && t === "y" || a === "vertical" && t === "x"
@@ -31985,7 +31985,7 @@ function WM(e, t, n, i, r, o, s) {
31985
31985
  }
31986
31986
  function Yde({ fieldDef: e, fieldDef2: t, channel: n, model: i }) {
31987
31987
  var $;
31988
- const { config: r, markDef: o, encoding: s } = i, a = i.getScaleComponent(n), u = i.scaleName(n), l = a ? a.get("type") : void 0, c = a.get("reverse"), f = q9({ channel: n, fieldDef: e, markDef: o, config: r, scaleType: l }), d = ($ = i.component.axes[n]) == null ? void 0 : $[0], h = (d == null ? void 0 : d.get("translate")) ?? 0.5, p = vt(n) ? Ue("binSpacing", o, r) ?? 0 : 0, g = Xr(n), m = Es(n), y = Es(g), b = Lr("minBandSize", o, r), { offset: v } = wl({ channel: n, markDef: o, encoding: s, model: i, bandPosition: 0 }), { offset: x } = wl({ channel: g, markDef: o, encoding: s, model: i, bandPosition: 0 }), _ = bce({ fieldDef: e, scaleName: u }), E = WM(n, p, c, h, v, b, _), w = WM(g, p, c, h, x ?? v, b, _), S = re(f) ? { signal: `(1-${f.signal})/2` } : Ua(f) ? (1 - f.band) / 2 : 0.5, C = Ss({ fieldDef: e, fieldDef2: t, markDef: o, config: r });
31988
+ const { config: r, markDef: o, encoding: s } = i, a = i.getScaleComponent(n), u = i.scaleName(n), l = a ? a.get("type") : void 0, c = a.get("reverse"), f = q9({ channel: n, fieldDef: e, markDef: o, config: r, scaleType: l }), d = ($ = i.component.axes[n]) == null ? void 0 : $[0], h = (d == null ? void 0 : d.get("translate")) ?? 0.5, p = xt(n) ? Ue("binSpacing", o, r) ?? 0 : 0, g = Xr(n), m = Es(n), y = Es(g), b = Lr("minBandSize", o, r), { offset: v } = wl({ channel: n, markDef: o, encoding: s, model: i, bandPosition: 0 }), { offset: x } = wl({ channel: g, markDef: o, encoding: s, model: i, bandPosition: 0 }), _ = bce({ fieldDef: e, scaleName: u }), E = WM(n, p, c, h, v, b, _), w = WM(g, p, c, h, x ?? v, b, _), S = re(f) ? { signal: `(1-${f.signal})/2` } : Ua(f) ? (1 - f.band) / 2 : 0.5, C = Ss({ fieldDef: e, fieldDef2: t, markDef: o, config: r });
31989
31989
  if (Je(e.bin) || e.timeUnit) {
31990
31990
  const A = e.timeUnit && C !== 0.5;
31991
31991
  return {
@@ -32462,7 +32462,7 @@ function pL(e, t, n) {
32462
32462
  function rhe(e, t) {
32463
32463
  for (const [n, i] of ws(e.component.selection ?? {})) {
32464
32464
  const r = e.getName(`lookup_${n}`);
32465
- e.component.data.outputNodes[r] = i.materialized = new Bn(new Zl(t, e, { param: n }), r, lt.Lookup, e.component.data.outputNodeRefCounts);
32465
+ e.component.data.outputNodes[r] = i.materialized = new Un(new Zl(t, e, { param: n }), r, lt.Lookup, e.component.data.outputNodeRefCounts);
32466
32466
  }
32467
32467
  }
32468
32468
  function Kg(e, t, n) {
@@ -32538,7 +32538,7 @@ function mf(e, t, n, i = { header: !1 }) {
32538
32538
  maxExtent: 0,
32539
32539
  minExtent: 0,
32540
32540
  ticks: !1,
32541
- zindex: bt(l, 0)
32541
+ zindex: vt(l, 0)
32542
32542
  // put grid behind marks by default
32543
32543
  };
32544
32544
  } else {
@@ -32561,7 +32561,7 @@ function mf(e, t, n, i = { header: !1 }) {
32561
32561
  ...h ? { title: h } : {},
32562
32562
  ...c,
32563
32563
  ...n.aria === !1 ? { aria: !1 } : {},
32564
- zindex: bt(l, 0)
32564
+ zindex: vt(l, 0)
32565
32565
  // put axis line above marks by default
32566
32566
  };
32567
32567
  }
@@ -32857,7 +32857,7 @@ function V0(e, t) {
32857
32857
  }
32858
32858
  function Cl(e, t, n, i) {
32859
32859
  const r = i === "row" ? n.headerRow : i === "column" ? n.headerColumn : n.headerFacet;
32860
- return bt((t || {})[e], r[e], n.header[e]);
32860
+ return vt((t || {})[e], r[e], n.header[e]);
32861
32861
  }
32862
32862
  function Y0(e, t, n, i) {
32863
32863
  const r = {};
@@ -33056,7 +33056,7 @@ function JM(e, t) {
33056
33056
  return re(t.step) ? { name: n, update: t.step.signal } : { name: n, value: t.step };
33057
33057
  }
33058
33058
  function wL(e, t, n) {
33059
- const i = t.get("type"), r = t.get("padding"), o = bt(t.get("paddingOuter"), r);
33059
+ const i = t.get("type"), r = t.get("padding"), o = vt(t.get("paddingOuter"), r);
33060
33060
  let s = t.get("paddingInner");
33061
33061
  return s = i === "band" ? (
33062
33062
  // only band has real paddingInner
@@ -33089,11 +33089,11 @@ function CL(e, t) {
33089
33089
  if (ec(t))
33090
33090
  return "shared";
33091
33091
  if (MS(t))
33092
- return vt(e) || e === "theta" || e === "radius" ? "independent" : "shared";
33092
+ return xt(e) || e === "theta" || e === "radius" ? "independent" : "shared";
33093
33093
  throw new Error("invalid model type for resolve");
33094
33094
  }
33095
33095
  function ES(e, t) {
33096
- const n = e.scale[t], i = vt(t) ? "axis" : "legend";
33096
+ const n = e.scale[t], i = xt(t) ? "axis" : "legend";
33097
33097
  return n === "independent" ? (e[i][t] === "shared" && G(tle(t)), "independent") : e[i][t] || "shared";
33098
33098
  }
33099
33099
  const khe = {
@@ -33130,7 +33130,7 @@ function Ahe(e, { fieldOrDatumDef: t, model: n, channel: i, legendCmpt: r, legen
33130
33130
  };
33131
33131
  const d = r.get("symbolOpacity") ?? u.legend.symbolOpacity, h = r.get("symbolFillColor") ?? u.legend.symbolFillColor, p = r.get("symbolStrokeColor") ?? u.legend.symbolStrokeColor, g = d === void 0 ? $L(a.opacity) ?? s.opacity : void 0;
33132
33132
  if (f.fill) {
33133
- if (i === "fill" || c && i === Wn)
33133
+ if (i === "fill" || c && i === Hn)
33134
33134
  delete f.fill;
33135
33135
  else if (W(f.fill, "field"))
33136
33136
  h ? delete f.fill : (f.fill = et(u.legend.symbolBaseFillColor ?? "black"), f.fillOpacity = et(g ?? 1));
@@ -33140,12 +33140,12 @@ function Ahe(e, { fieldOrDatumDef: t, model: n, channel: i, legendCmpt: r, legen
33140
33140
  }
33141
33141
  }
33142
33142
  if (f.stroke) {
33143
- if (i === "stroke" || !c && i === Wn)
33143
+ if (i === "stroke" || !c && i === Hn)
33144
33144
  delete f.stroke;
33145
33145
  else if (W(f.stroke, "field") || p)
33146
33146
  delete f.stroke;
33147
33147
  else if (z(f.stroke)) {
33148
- const m = bt(ox(a.stroke || a.color), s.stroke, c ? s.color : void 0);
33148
+ const m = vt(ox(a.stroke || a.color), s.stroke, c ? s.color : void 0);
33149
33149
  m && (f.stroke = { value: m });
33150
33150
  }
33151
33151
  }
@@ -33203,7 +33203,7 @@ function $L(e) {
33203
33203
  return AL(e, (t, n) => Math.max(t, n.value));
33204
33204
  }
33205
33205
  function ox(e) {
33206
- return AL(e, (t, n) => bt(t, n.value));
33206
+ return AL(e, (t, n) => vt(t, n.value));
33207
33207
  }
33208
33208
  function AL(e, t) {
33209
33209
  if (Cce(e))
@@ -33281,7 +33281,7 @@ function Rhe(e, t, n, i) {
33281
33281
  }
33282
33282
  function Ohe(e) {
33283
33283
  const { legend: t } = e;
33284
- return bt(t.type, Dhe(e));
33284
+ return vt(t.type, Dhe(e));
33285
33285
  }
33286
33286
  function Dhe({ channel: e, timeUnit: t, scaleType: n }) {
33287
33287
  if (Uu(e)) {
@@ -33328,9 +33328,9 @@ function FL(e) {
33328
33328
  }
33329
33329
  function Bhe(e) {
33330
33330
  const { encoding: t } = e, n = {};
33331
- for (const i of [Wn, ...x7]) {
33331
+ for (const i of [Hn, ...x7]) {
33332
33332
  const r = At(t[i]);
33333
- !r || !e.getScaleComponent(i) || i === Hn && H(r) && r.type === Xl || (n[i] = qhe(e, i));
33333
+ !r || !e.getScaleComponent(i) || i === Gn && H(r) && r.type === Xl || (n[i] = qhe(e, i));
33334
33334
  }
33335
33335
  return n;
33336
33336
  }
@@ -33434,7 +33434,7 @@ function TL(e, t) {
33434
33434
  case "title":
33435
33435
  return o9(f, d);
33436
33436
  case "type":
33437
- return r = !0, Kn("symbol");
33437
+ return r = !0, Zn("symbol");
33438
33438
  }
33439
33439
  return q0(f, d, l, "legend");
33440
33440
  }
@@ -33580,19 +33580,19 @@ function Jhe(e) {
33580
33580
  (At(n[i[0]]) || At(n[i[1]])) && t.push({
33581
33581
  signal: e.getName(`geojson_${t.length}`)
33582
33582
  });
33583
- return e.channelHasField(Hn) && e.typedFieldDef(Hn).type === Xl && t.push({
33583
+ return e.channelHasField(Gn) && e.typedFieldDef(Gn).type === Xl && t.push({
33584
33584
  signal: e.getName(`geojson_${t.length}`)
33585
33585
  }), t.length === 0 && t.push(e.requestDataName(lt.Main)), t;
33586
33586
  }
33587
33587
  function Qhe(e, t) {
33588
33588
  const n = dE(Khe, (r) => !!(!ne(e.explicit, r) && !ne(t.explicit, r) || ne(e.explicit, r) && ne(t.explicit, r) && // some properties might be signals or objects and require hashing for comparison
33589
- ti(e.get(r), t.get(r))));
33590
- if (ti(e.size, t.size)) {
33589
+ ni(e.get(r), t.get(r))));
33590
+ if (ni(e.size, t.size)) {
33591
33591
  if (n)
33592
33592
  return e;
33593
- if (ti(e.explicit, {}))
33593
+ if (ni(e.explicit, {}))
33594
33594
  return t;
33595
- if (ti(t.explicit, {}))
33595
+ if (ni(t.explicit, {}))
33596
33596
  return e;
33597
33597
  }
33598
33598
  return null;
@@ -33677,7 +33677,7 @@ class Mr extends He {
33677
33677
  }
33678
33678
  static makeFromEncoding(n, i) {
33679
33679
  const r = i.reduceFieldDef((o, s, a) => {
33680
- if (Fn(s) && Je(s.bin)) {
33680
+ if (Tn(s) && Je(s.bin)) {
33681
33681
  const { key: u, binComponent: l } = n5(s, s.bin, i);
33682
33682
  o[u] = {
33683
33683
  ...l,
@@ -33753,10 +33753,10 @@ class Mr extends He {
33753
33753
  function rpe(e, t, n, i) {
33754
33754
  var o;
33755
33755
  const r = ut(i) ? i.encoding[Xr(t)] : void 0;
33756
- if (Fn(n) && ut(i) && W9(n, r, i.markDef, i.config)) {
33756
+ if (Tn(n) && ut(i) && W9(n, r, i.markDef, i.config)) {
33757
33757
  e.add(X(n, {})), e.add(X(n, { suffix: "end" }));
33758
33758
  const { mark: s, markDef: a, config: u } = i, l = Ss({ fieldDef: n, markDef: a, config: u });
33759
- id(s) && l !== 0.5 && vt(t) && (e.add(X(n, { suffix: W0 })), e.add(X(n, { suffix: H0 }))), n.bin && Jd(n, t) && e.add(X(n, { binSuffix: "range" }));
33759
+ id(s) && l !== 0.5 && xt(t) && (e.add(X(n, { suffix: W0 })), e.add(X(n, { suffix: H0 }))), n.bin && Jd(n, t) && e.add(X(n, { binSuffix: "range" }));
33760
33760
  } else if (jD(t)) {
33761
33761
  const s = UD(t);
33762
33762
  e.add(i.getName(s));
@@ -34041,7 +34041,7 @@ function ape(e) {
34041
34041
  return vp(e.filter, (n) => {
34042
34042
  if (w9(n)) {
34043
34043
  let i = null;
34044
- NE(n) ? i = Qn(n.equal) : OE(n) ? i = Qn(n.lte) : RE(n) ? i = Qn(n.lt) : DE(n) ? i = Qn(n.gt) : LE(n) ? i = Qn(n.gte) : PE(n) ? i = n.range[0] : IE(n) && (i = (n.oneOf ?? n.in)[0]), i && (ou(i) ? t[n.field] = "date" : De(i) ? t[n.field] = "number" : K(i) && (t[n.field] = "string")), n.timeUnit && (t[n.field] = "date");
34044
+ NE(n) ? i = ei(n.equal) : OE(n) ? i = ei(n.lte) : RE(n) ? i = ei(n.lt) : DE(n) ? i = ei(n.gt) : LE(n) ? i = ei(n.gte) : PE(n) ? i = n.range[0] : IE(n) && (i = (n.oneOf ?? n.in)[0]), i && (ou(i) ? t[n.field] = "date" : De(i) ? t[n.field] = "number" : K(i) && (t[n.field] = "string")), n.timeUnit && (t[n.field] = "date");
34045
34045
  }
34046
34046
  }), t;
34047
34047
  }
@@ -34051,7 +34051,7 @@ function upe(e) {
34051
34051
  xl(i) ? t[i.field] = "date" : i.type === "quantitative" && Qae(i.aggregate) ? t[i.field] = "number" : pl(i.field) > 1 ? i.field in t || (t[i.field] = "flatten") : au(i) && xo(i.sort) && pl(i.sort.field) > 1 && (i.sort.field in t || (t[i.sort.field] = "flatten"));
34052
34052
  }
34053
34053
  if ((ut(e) || ai(e)) && e.forEachFieldDef((i, r) => {
34054
- if (Fn(i))
34054
+ if (Tn(i))
34055
34055
  n(i);
34056
34056
  else {
34057
34057
  const o = nu(r), s = e.fieldDef(o);
@@ -34371,7 +34371,7 @@ class hpe extends $S {
34371
34371
  super();
34372
34372
  }
34373
34373
  run(t) {
34374
- t instanceof Bn && !t.isRequired() && (this.setModified(), t.remove());
34374
+ t instanceof Un && !t.isRequired() && (this.setModified(), t.remove());
34375
34375
  }
34376
34376
  }
34377
34377
  class ppe extends uu {
@@ -34416,7 +34416,7 @@ class gpe extends uu {
34416
34416
  }
34417
34417
  class mpe extends uu {
34418
34418
  run(t) {
34419
- t instanceof Bn || t.numChildren() > 0 || t instanceof Jl || t instanceof Ha || (this.setModified(), t.remove());
34419
+ t instanceof Un || t.numChildren() > 0 || t instanceof Jl || t instanceof Ha || (this.setModified(), t.remove());
34420
34420
  }
34421
34421
  }
34422
34422
  class ype extends uu {
@@ -34470,16 +34470,16 @@ class vpe extends uu {
34470
34470
  class xpe extends uu {
34471
34471
  run(t) {
34472
34472
  const n = [...t.children];
34473
- if (!hl(n, (s) => s instanceof Bn) || t.numChildren() <= 1)
34473
+ if (!hl(n, (s) => s instanceof Un) || t.numChildren() <= 1)
34474
34474
  return;
34475
34475
  const r = [];
34476
34476
  let o;
34477
34477
  for (const s of n)
34478
- if (s instanceof Bn) {
34478
+ if (s instanceof Un) {
34479
34479
  let a = s;
34480
34480
  for (; a.numChildren() === 1; ) {
34481
34481
  const [u] = a.children;
34482
- if (u instanceof Bn)
34482
+ if (u instanceof Un)
34483
34483
  a = u;
34484
34484
  else
34485
34485
  break;
@@ -34610,7 +34610,7 @@ class wo extends He {
34610
34610
  const { stack: r, groupby: o, as: s, offset: a = "zero" } = i, u = [], l = [];
34611
34611
  if (i.sort !== void 0)
34612
34612
  for (const d of i.sort)
34613
- u.push(d.field), l.push(bt(d.order, "ascending"));
34613
+ u.push(d.field), l.push(vt(d.order, "ascending"));
34614
34614
  const c = {
34615
34615
  field: u,
34616
34616
  order: l
@@ -34774,7 +34774,7 @@ function Epe(e) {
34774
34774
  function t(n) {
34775
34775
  if (!(n instanceof Jl)) {
34776
34776
  const i = n.clone();
34777
- if (i instanceof Bn) {
34777
+ if (i instanceof Un) {
34778
34778
  const r = ux + i.getSource();
34779
34779
  i.setSource(r), e.model.component.data.outputNodes[r] = i;
34780
34780
  } else (i instanceof Xi || i instanceof wo || i instanceof Ql || i instanceof lu) && i.addDimensions(e.fields);
@@ -34788,7 +34788,7 @@ function Epe(e) {
34788
34788
  }
34789
34789
  function ax(e) {
34790
34790
  if (e instanceof Jl)
34791
- if (e.numChildren() === 1 && !(e.children[0] instanceof Bn)) {
34791
+ if (e.numChildren() === 1 && !(e.children[0] instanceof Un)) {
34792
34792
  const t = e.children[0];
34793
34793
  (t instanceof Xi || t instanceof wo || t instanceof Ql || t instanceof lu) && t.addDimensions(e.fields), t.swapWithParent(), ax(e);
34794
34794
  } else {
@@ -34802,7 +34802,7 @@ function ax(e) {
34802
34802
  e.children.map(ax);
34803
34803
  }
34804
34804
  function PL(e) {
34805
- if (e instanceof Bn && e.type === lt.Main && e.numChildren() === 1) {
34805
+ if (e instanceof Un && e.type === lt.Main && e.numChildren() === 1) {
34806
34806
  const t = e.children[0];
34807
34807
  t instanceof Jl || (t.swapWithParent(), PL(e));
34808
34808
  }
@@ -34930,9 +34930,9 @@ function qo(e, t, n, i) {
34930
34930
  }
34931
34931
  if (u && i === u.fieldChannel) {
34932
34932
  if (u.offset === "normalize")
34933
- return Kn([[0, 1]]);
34933
+ return Zn([[0, 1]]);
34934
34934
  const g = n.requestDataName(d);
34935
- return Kn([
34935
+ return Zn([
34936
34936
  {
34937
34937
  data: g,
34938
34938
  field: n.vgField(i, { suffix: "start" })
@@ -34946,12 +34946,12 @@ function qo(e, t, n, i) {
34946
34946
  const h = Kr(i) && H(l) ? Tpe(n, i, e) : void 0;
34947
34947
  if (Zr(l)) {
34948
34948
  const g = Fy([l.datum], c, f);
34949
- return Kn(g);
34949
+ return Zn(g);
34950
34950
  }
34951
34951
  const p = l;
34952
34952
  if (t === "unaggregated") {
34953
34953
  const { field: g } = l;
34954
- return Kn([
34954
+ return Zn([
34955
34955
  {
34956
34956
  data: n.requestDataName(d),
34957
34957
  field: X({ field: g, aggregate: "min" })
@@ -34963,7 +34963,7 @@ function qo(e, t, n, i) {
34963
34963
  ]);
34964
34964
  } else if (Je(p.bin)) {
34965
34965
  if (zt(e))
34966
- return Kn(e === "bin-ordinal" ? [] : [
34966
+ return Zn(e === "bin-ordinal" ? [] : [
34967
34967
  {
34968
34968
  // If sort by aggregation of a specified sort field, we need to use RAW table,
34969
34969
  // so we can aggregate values for the scale independently from the main aggregation.
@@ -34982,14 +34982,14 @@ function qo(e, t, n, i) {
34982
34982
  const { bin: g } = p;
34983
34983
  if (Je(g)) {
34984
34984
  const m = SS(n, p.field, g);
34985
- return Kn([
34985
+ return Zn([
34986
34986
  new Nt(() => {
34987
34987
  const y = n.getSignalName(m);
34988
34988
  return `[${y}.start, ${y}.stop]`;
34989
34989
  })
34990
34990
  ]);
34991
34991
  } else
34992
- return Kn([
34992
+ return Zn([
34993
34993
  {
34994
34994
  data: n.requestDataName(d),
34995
34995
  field: n.vgField(i, {})
@@ -34999,8 +34999,8 @@ function qo(e, t, n, i) {
34999
34999
  } else if (p.timeUnit && Ce(["time", "utc"], e)) {
35000
35000
  const g = r[Xr(i)];
35001
35001
  if (W9(p, g, o, a)) {
35002
- const m = n.requestDataName(d), y = Ss({ fieldDef: p, fieldDef2: g, markDef: o, config: a }), b = id(s) && y !== 0.5 && vt(i);
35003
- return Kn([
35002
+ const m = n.requestDataName(d), y = Ss({ fieldDef: p, fieldDef2: g, markDef: o, config: a }), b = id(s) && y !== 0.5 && xt(i);
35003
+ return Zn([
35004
35004
  {
35005
35005
  data: m,
35006
35006
  field: n.vgField(i, b ? { suffix: W0 } : {})
@@ -35012,7 +35012,7 @@ function qo(e, t, n, i) {
35012
35012
  ]);
35013
35013
  }
35014
35014
  }
35015
- return Kn(h ? [
35015
+ return Zn(h ? [
35016
35016
  {
35017
35017
  // If sort by aggregation of a specified sort field, we need to use RAW table,
35018
35018
  // so we can aggregate values for the scale independently from the main aggregation.
@@ -35189,7 +35189,7 @@ function s5(e) {
35189
35189
  }, []);
35190
35190
  }
35191
35191
  function Rpe(e, t, n, i) {
35192
- if (vt(n)) {
35192
+ if (xt(n)) {
35193
35193
  if (ru(e))
35194
35194
  return {
35195
35195
  step: { signal: `${t}_step` }
@@ -35261,7 +35261,7 @@ function Dpe(e) {
35261
35261
  function a5(e, t) {
35262
35262
  const n = e.fieldDef(t);
35263
35263
  if (n != null && n.bin) {
35264
- const { bin: i, field: r } = n, o = Gn(t), s = e.getName(o);
35264
+ const { bin: i, field: r } = n, o = Vn(t), s = e.getName(o);
35265
35265
  if (Z(i) && i.binned && i.step !== void 0)
35266
35266
  return new Nt(() => {
35267
35267
  const a = e.scaleName(t), u = `(domain("${a}")[1] - domain("${a}")[0]) / ${i.step}`;
@@ -35290,7 +35290,7 @@ function Lpe(e, t) {
35290
35290
  case "range": {
35291
35291
  const p = n.range;
35292
35292
  if (z(p)) {
35293
- if (vt(e))
35293
+ if (xt(e))
35294
35294
  return mr(p.map((g) => {
35295
35295
  if (g === "width" || g === "height") {
35296
35296
  const m = t.getName(g), y = t.getSignalName.bind(t);
@@ -35312,7 +35312,7 @@ function Lpe(e, t) {
35312
35312
  }
35313
35313
  const s = e === ot || e === "xOffset" ? "width" : "height", a = i[s];
35314
35314
  if (Ir(a)) {
35315
- if (vt(e))
35315
+ if (xt(e))
35316
35316
  if (zt(o)) {
35317
35317
  const f = jL(a, t, e);
35318
35318
  if (f)
@@ -35330,7 +35330,7 @@ function Lpe(e, t) {
35330
35330
  }
35331
35331
  const { rangeMin: u, rangeMax: l } = n, c = Ipe(e, t);
35332
35332
  return (u !== void 0 || l !== void 0) && // it's ok to check just rangeMin's compatibility since rangeMin/rangeMax are the same
35333
- Wv(o, "rangeMin") && z(c) && c.length === 2 ? mr([u ?? c[0], l ?? c[1]]) : Kn(c);
35333
+ Wv(o, "rangeMin") && z(c) && c.length === 2 ? mr([u ?? c[0], l ?? c[1]]) : Zn(c);
35334
35334
  }
35335
35335
  function Ppe(e) {
35336
35336
  return Wle(e) ? {
@@ -35339,7 +35339,7 @@ function Ppe(e) {
35339
35339
  } : { scheme: e };
35340
35340
  }
35341
35341
  function UL(e, t, n, { center: i } = {}) {
35342
- const r = Gn(e), o = t.getName(r), s = t.getSignalName.bind(t);
35342
+ const r = Vn(e), o = t.getName(r), s = t.getSignalName.bind(t);
35343
35343
  return e === Ut && Qi(n) ? i ? [
35344
35344
  Nt.fromName((a) => `${s(a)}/2`, o),
35345
35345
  Nt.fromName((a) => `-${s(a)}/2`, o)
@@ -35392,9 +35392,9 @@ function Ipe(e, t) {
35392
35392
  [1, 1],
35393
35393
  [1, 2, 4, 2]
35394
35394
  ];
35395
- case Hn:
35395
+ case Gn:
35396
35396
  return "symbol";
35397
- case Wn:
35397
+ case Hn:
35398
35398
  case Vr:
35399
35399
  case Yr:
35400
35400
  return u === "ordinal" ? s === "nominal" ? "category" : "ordinal" : c !== void 0 ? "diverging" : r === "rect" || r === "geoshape" ? "heatmap" : "ramp";
@@ -35619,16 +35619,16 @@ function Hpe(e, t) {
35619
35619
  };
35620
35620
  }
35621
35621
  function Gpe(e, t) {
35622
- if (Ce([Wn, Vr, Yr], e) && t !== "nominal")
35622
+ if (Ce([Hn, Vr, Yr], e) && t !== "nominal")
35623
35623
  return "hcl";
35624
35624
  }
35625
35625
  function Vpe(e, t, n, i, r, o) {
35626
35626
  var s;
35627
35627
  if (!((s = tr(o)) != null && s.bin || z(n) || r != null || i != null || Ce([Ht.TIME, Ht.UTC], e)))
35628
- return vt(t) ? !0 : void 0;
35628
+ return xt(t) ? !0 : void 0;
35629
35629
  }
35630
35630
  function Ype(e, t, n, i, r, o) {
35631
- if (vt(e)) {
35631
+ if (xt(e)) {
35632
35632
  if (Er(t)) {
35633
35633
  if (n.continuousPadding !== void 0)
35634
35634
  return n.continuousPadding;
@@ -35642,21 +35642,21 @@ function Ype(e, t, n, i, r, o) {
35642
35642
  }
35643
35643
  function Xpe(e, t, n, i, r, o = !1) {
35644
35644
  if (e === void 0) {
35645
- if (vt(t)) {
35645
+ if (xt(t)) {
35646
35646
  const { bandPaddingInner: s, barBandPaddingInner: a, rectBandPaddingInner: u, tickBandPaddingInner: l, bandWithNestedOffsetPaddingInner: c } = r;
35647
- return o ? c : bt(s, n === "bar" ? a : n === "tick" ? l : u);
35647
+ return o ? c : vt(s, n === "bar" ? a : n === "tick" ? l : u);
35648
35648
  } else if (Hd(t) && i === Ht.BAND)
35649
35649
  return r.offsetBandPaddingInner;
35650
35650
  }
35651
35651
  }
35652
35652
  function Kpe(e, t, n, i, r, o = !1) {
35653
35653
  if (e === void 0) {
35654
- if (vt(t)) {
35654
+ if (xt(t)) {
35655
35655
  const { bandPaddingOuter: s, bandWithNestedOffsetPaddingOuter: a } = r;
35656
35656
  if (o)
35657
35657
  return a;
35658
35658
  if (n === Ht.BAND)
35659
- return bt(
35659
+ return vt(
35660
35660
  s,
35661
35661
  /* By default, paddingOuter is paddingInner / 2. The reason is that
35662
35662
  size (width/height) = step * (cardinality - paddingInner + 2 * paddingOuter).
@@ -35708,12 +35708,12 @@ function ege(e, t, n, i) {
35708
35708
  return e === "shape" && t.type === "ordinal" && G(xy(e, "ordinal")), "ordinal";
35709
35709
  if (by(e))
35710
35710
  return "band";
35711
- if (vt(e) || Hd(e)) {
35711
+ if (xt(e) || Hd(e)) {
35712
35712
  if (Ce(["rect", "bar", "image", "rule", "tick"], n.type) || i)
35713
35713
  return "band";
35714
35714
  } else if (n.type === "arc" && e in wE)
35715
35715
  return "band";
35716
- const o = n[Gn(e)];
35716
+ const o = n[Vn(e)];
35717
35717
  return Ua(o) || vl(t) && ((r = t.axis) != null && r.tickBand) ? "band" : "point";
35718
35718
  }
35719
35719
  case "temporal":
@@ -35738,7 +35738,7 @@ function nge(e) {
35738
35738
  const { encoding: t, mark: n, markDef: i } = e, r = {};
35739
35739
  for (const o of EE) {
35740
35740
  const s = At(t[o]);
35741
- if (s && n === N9 && o === Hn && s.type === Xl)
35741
+ if (s && n === N9 && o === Gn && s.type === Xl)
35742
35742
  continue;
35743
35743
  let a = s && s.scale;
35744
35744
  if (s && a !== null && a !== !1) {
@@ -36213,8 +36213,8 @@ class Wu extends He {
36213
36213
  });
36214
36214
  (s[0] || s[1]) && (n = new Wu(n, s, null, i.getName(`geojson_${r++}`)));
36215
36215
  }
36216
- if (i.channelHasField(Hn)) {
36217
- const o = i.typedFieldDef(Hn);
36216
+ if (i.channelHasField(Gn)) {
36217
+ const o = i.typedFieldDef(Gn);
36218
36218
  o.type === Xl && (n = new Wu(n, null, o.field, i.getName(`geojson_${r++}`)));
36219
36219
  }
36220
36220
  return n;
@@ -36413,7 +36413,7 @@ class sd extends He {
36413
36413
  let l = JL(a.data, s);
36414
36414
  l || (l = new Ha(a.data), s.push(l));
36415
36415
  const c = i.getName(`lookup_${o}`);
36416
- u = new Bn(l, c, lt.Lookup, i.component.data.outputNodeRefCounts), i.component.data.outputNodes[c] = u;
36416
+ u = new Un(l, c, lt.Lookup, i.component.data.outputNodeRefCounts), i.component.data.outputNodes[c] = u;
36417
36417
  } else if (Vfe(a)) {
36418
36418
  const l = a.param;
36419
36419
  r = { as: l, ...r };
@@ -36590,13 +36590,13 @@ function KL(e) {
36590
36590
  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());
36591
36591
  return;
36592
36592
  }
36593
- switch ((i instanceof th || i instanceof nh || i instanceof kl || i instanceof Zl || i instanceof El || i instanceof od || i instanceof Xi || i instanceof sd || i instanceof Ql || i instanceof lu || i instanceof Q0 || i instanceof J0 || i instanceof K0 || i instanceof e1 || i instanceof t1 || i instanceof n1 || i instanceof ks || i instanceof r1 || i instanceof i1 || i instanceof Z0) && r.transform.push(i.assemble()), (i instanceof Mr || i instanceof $r || i instanceof wa || i instanceof wo || i instanceof Wu) && r.transform.push(...i.assemble()), i instanceof Bn && (r.source && r.transform.length === 0 ? i.setSource(r.source) : i.parent instanceof Bn ? i.setSource(r.name) : (r.name || (r.name = `data_${t++}`), i.setSource(r.name), i.numChildren() === 1 && (e.push(r), r = {
36593
+ switch ((i instanceof th || i instanceof nh || i instanceof kl || i instanceof Zl || i instanceof El || i instanceof od || i instanceof Xi || i instanceof sd || i instanceof Ql || i instanceof lu || i instanceof Q0 || i instanceof J0 || i instanceof K0 || i instanceof e1 || i instanceof t1 || i instanceof n1 || i instanceof ks || i instanceof r1 || i instanceof i1 || i instanceof Z0) && r.transform.push(i.assemble()), (i instanceof Mr || i instanceof $r || i instanceof wa || i instanceof wo || i instanceof Wu) && r.transform.push(...i.assemble()), i instanceof Un && (r.source && r.transform.length === 0 ? i.setSource(r.source) : i.parent instanceof Un ? i.setSource(r.name) : (r.name || (r.name = `data_${t++}`), i.setSource(r.name), i.numChildren() === 1 && (e.push(r), r = {
36594
36594
  name: null,
36595
36595
  source: r.name,
36596
36596
  transform: []
36597
36597
  }))), i.numChildren()) {
36598
36598
  case 0:
36599
- i instanceof Bn && (!r.source || r.transform.length > 0) && e.push(r);
36599
+ i instanceof Un && (!r.source || r.transform.length > 0) && e.push(r);
36600
36600
  break;
36601
36601
  case 1:
36602
36602
  n(i.children[0], r);
@@ -36665,7 +36665,7 @@ function lge(e, t) {
36665
36665
  includeDefault: u === void 0 || !!u
36666
36666
  });
36667
36667
  r.component.layoutHeaders[t].title && (l = z(l) ? l.join(", ") : l, l += ` / ${r.component.layoutHeaders[t].title}`, r.component.layoutHeaders[t].title = null);
36668
- const c = Cl("labelOrient", a.header, i, t), f = a.header !== null ? bt((s = a.header) == null ? void 0 : s.labels, i.header.labels, !0) : !1, d = Ce(["bottom", "right"], c) ? "footer" : "header";
36668
+ const c = Cl("labelOrient", a.header, i, t), f = a.header !== null ? vt((s = a.header) == null ? void 0 : s.labels, i.header.labels, !0) : !1, d = Ce(["bottom", "right"], c) ? "footer" : "header";
36669
36669
  o.layoutHeaders[t] = {
36670
36670
  title: a.header !== null ? l : null,
36671
36671
  facetFieldDef: a,
@@ -36739,7 +36739,7 @@ function Zg(e, t) {
36739
36739
  function dge(e) {
36740
36740
  const { size: t, component: n } = e;
36741
36741
  for (const i of Do) {
36742
- const r = Gn(i);
36742
+ const r = Vn(i);
36743
36743
  if (t[r] != null && t[r] != null) {
36744
36744
  const o = t[r];
36745
36745
  n.layoutSize.set(r, Ir(o) ? "step" : o, !0);
@@ -37023,7 +37023,7 @@ function JL(e, t) {
37023
37023
  const f = (o = a.format) == null ? void 0 : o.mesh;
37024
37024
  if (!((u || f) && u !== f)) {
37025
37025
  if (rd(e) && rd(a)) {
37026
- if (ti(e.values, a.values))
37026
+ if (ni(e.values, a.values))
37027
37027
  return s;
37028
37028
  } else if (_l(e) && _l(a)) {
37029
37029
  if (e.url === a.url)
@@ -37150,7 +37150,7 @@ function o1(e) {
37150
37150
  };
37151
37151
  }
37152
37152
  function Ih(e, t, n) {
37153
- const { outputNodes: i, outputNodeRefCounts: r } = t.component.data, o = t.getDataName(e), s = new Bn(n, o, e, r);
37153
+ const { outputNodes: i, outputNodeRefCounts: r } = t.component.data, o = t.getDataName(e), s = new Un(n, o, e, r);
37154
37154
  return i[o] = s, s;
37155
37155
  }
37156
37156
  class yge extends FS {
@@ -37387,7 +37387,7 @@ function Cge(e, t) {
37387
37387
  return {
37388
37388
  explicit: r.explicit,
37389
37389
  // keep the old explicit
37390
- value: bt(r.value, o.value)
37390
+ value: vt(r.value, o.value)
37391
37391
  };
37392
37392
  }
37393
37393
  return q0(r, o, n, "axis");
@@ -37474,7 +37474,7 @@ function Age(e, t) {
37474
37474
  }
37475
37475
  function Mge({ encoding: e, size: t }) {
37476
37476
  for (const n of Do) {
37477
- const i = Gn(n);
37477
+ const i = Vn(n);
37478
37478
  Ir(t[i]) && rs(e[n]) && (delete t[i], G(c9(i)));
37479
37479
  }
37480
37480
  return t;
@@ -37897,7 +37897,7 @@ function Kge(e) {
37897
37897
  }
37898
37898
  function OS(e, t = { fromPrefix: "" }) {
37899
37899
  var h;
37900
- const { mark: n, markDef: i, encoding: r, config: o } = e, s = bt(i.clip, Zge(e), Jge(e)), a = e9(i), u = r.key, l = Kge(e), c = Qge(e);
37900
+ const { mark: n, markDef: i, encoding: r, config: o } = e, s = vt(i.clip, Zge(e), Jge(e)), a = e9(i), u = r.key, l = Kge(e), c = Qge(e);
37901
37901
  c && Object.values(e.component.selection).some((p) => p.type === "point" && !p.bind && // if on is a pointerover (hover) the pointer makes less sense since the mark is not clickable.
37902
37902
  p.on !== "pointerover") && ((h = e.markDef).cursor ?? (h.cursor = "pointer"));
37903
37903
  const f = Ue("aria", i, o), d = zh[n].postEncodingTransform ? zh[n].postEncodingTransform(e) : null;
@@ -37999,7 +37999,7 @@ class eP extends XL {
37999
37999
  }
38000
38000
  initScale(n) {
38001
38001
  const { domain: i, range: r } = n, o = Wt(n);
38002
- return z(i) && (o.domain = i.map(Qn)), z(r) && (o.range = r.map(Qn)), o;
38002
+ return z(i) && (o.domain = i.map(ei)), z(r) && (o.range = r.map(ei)), o;
38003
38003
  }
38004
38004
  initAxes(n) {
38005
38005
  return Do.reduce((i, r) => {
@@ -38015,7 +38015,7 @@ class eP extends XL {
38015
38015
  const i = j(n), r = {};
38016
38016
  for (const o of i) {
38017
38017
  const s = n[o];
38018
- r[o] = Qd(s) ? QD(s) : Qn(s);
38018
+ r[o] = Qd(s) ? QD(s) : ei(s);
38019
38019
  }
38020
38020
  return r;
38021
38021
  }
@@ -38097,7 +38097,7 @@ class eP extends XL {
38097
38097
  }
38098
38098
  typedFieldDef(n) {
38099
38099
  const i = this.fieldDef(n);
38100
- return Fn(i) ? i : null;
38100
+ return Tn(i) ? i : null;
38101
38101
  }
38102
38102
  }
38103
38103
  class DS extends FS {
@@ -38253,14 +38253,14 @@ const ime = $ae.version, rme = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obj
38253
38253
  accessWithDatumToUnescapedPath: qe,
38254
38254
  compile: eme,
38255
38255
  contains: Ce,
38256
- deepEqual: ti,
38256
+ deepEqual: ni,
38257
38257
  deleteNestedProperty: Ig,
38258
38258
  duplicate: ye,
38259
38259
  entries: ws,
38260
38260
  every: dE,
38261
38261
  fieldIntersection: pE,
38262
38262
  flatAccessWithDatum: RD,
38263
- getFirstDefined: bt,
38263
+ getFirstDefined: vt,
38264
38264
  hasIntersection: hE,
38265
38265
  hasProperty: W,
38266
38266
  hash: $e,
@@ -39278,7 +39278,7 @@ function hx(e) {
39278
39278
  dx(e, r) && i.push(r);
39279
39279
  return i;
39280
39280
  }
39281
- function ni(e) {
39281
+ function ii(e) {
39282
39282
  switch (typeof e) {
39283
39283
  case "object":
39284
39284
  return JSON.parse(JSON.stringify(e));
@@ -39341,7 +39341,7 @@ var lP = (
39341
39341
  }
39342
39342
  return t;
39343
39343
  })(Error)
39344
- ), dt = lP, n0e = ni, Ou = {
39344
+ ), dt = lP, n0e = ii, Ou = {
39345
39345
  add: function(e, t, n) {
39346
39346
  return e[t] = this.value, { newDocument: n };
39347
39347
  },
@@ -39355,13 +39355,13 @@ var lP = (
39355
39355
  },
39356
39356
  move: function(e, t, n) {
39357
39357
  var i = Jg(n, this.path);
39358
- i && (i = ni(i));
39358
+ i && (i = ii(i));
39359
39359
  var r = Ea(n, { op: "remove", path: this.from }).removed;
39360
39360
  return Ea(n, { op: "add", path: this.path, value: r }), { newDocument: n, removed: i };
39361
39361
  },
39362
39362
  copy: function(e, t, n) {
39363
39363
  var i = Jg(n, this.from);
39364
- return Ea(n, { op: "add", path: this.path, value: ni(i) }), { newDocument: n };
39364
+ return Ea(n, { op: "add", path: this.path, value: ii(i) }), { newDocument: n };
39365
39365
  },
39366
39366
  test: function(e, t, n) {
39367
39367
  return { newDocument: n, test: ad(e[t], this.value) };
@@ -39415,7 +39415,7 @@ function Ea(e, t, n, i, r, o) {
39415
39415
  return s;
39416
39416
  }
39417
39417
  } else {
39418
- i || (e = ni(e));
39418
+ i || (e = ii(e));
39419
39419
  var a = t.path || "", u = a.split("/"), l = e, c = 1, f = u.length, d = void 0, h = void 0, p = void 0;
39420
39420
  for (typeof n == "function" ? p = n : p = Qg; ; ) {
39421
39421
  if (h = u[c], h && h.indexOf("~") != -1 && (h = uP(h)), r && (h == "__proto__" || h == "prototype" && c > 0 && u[c - 1] == "constructor"))
@@ -39450,7 +39450,7 @@ function Ea(e, t, n, i, r, o) {
39450
39450
  function a1(e, t, n, i, r) {
39451
39451
  if (i === void 0 && (i = !0), r === void 0 && (r = !0), n && !Array.isArray(t))
39452
39452
  throw new dt("Patch sequence must be an array", "SEQUENCE_NOT_AN_ARRAY");
39453
- i || (e = ni(e));
39453
+ i || (e = ii(e));
39454
39454
  for (var o = new Array(t.length), s = 0, a = t.length; s < a; s++)
39455
39455
  o[s] = Ea(e, t[s], n, !0, r, s), e = o[s].newDocument;
39456
39456
  return o.newDocument = e, o;
@@ -39496,7 +39496,7 @@ function cP(e, t, n) {
39496
39496
  if (!Array.isArray(e))
39497
39497
  throw new dt("Patch sequence must be an array", "SEQUENCE_NOT_AN_ARRAY");
39498
39498
  if (t)
39499
- a1(ni(t), ni(e), n || !0);
39499
+ a1(ii(t), ii(e), n || !0);
39500
39500
  else {
39501
39501
  n = n || Qg;
39502
39502
  for (var i = 0; i < e.length; i++)
@@ -39592,7 +39592,7 @@ function d0e(e, t) {
39592
39592
  }
39593
39593
  if (i)
39594
39594
  return i;
39595
- if (i = {}, r.value = ni(e), t) {
39595
+ if (i = {}, r.value = ii(e), t) {
39596
39596
  i.callback = t, i.next = null;
39597
39597
  var s = function() {
39598
39598
  mx(i);
@@ -39619,13 +39619,13 @@ function zS(e, t, n, i, r) {
39619
39619
  var l = s[u], c = e[l];
39620
39620
  if (dx(t, l) && !(t[l] === void 0 && c !== void 0 && Array.isArray(t) === !1)) {
39621
39621
  var f = t[l];
39622
- typeof c == "object" && c != null && typeof f == "object" && f != null && Array.isArray(c) === Array.isArray(f) ? zS(c, f, n, i + "/" + ia(l), r) : c !== f && (r && n.push({ op: "test", path: i + "/" + ia(l), value: ni(c) }), n.push({ op: "replace", path: i + "/" + ia(l), value: ni(f) }));
39623
- } else Array.isArray(e) === Array.isArray(t) ? (r && n.push({ op: "test", path: i + "/" + ia(l), value: ni(c) }), n.push({ op: "remove", path: i + "/" + ia(l) }), a = !0) : (r && n.push({ op: "test", path: i, value: e }), n.push({ op: "replace", path: i, value: t }));
39622
+ typeof c == "object" && c != null && typeof f == "object" && f != null && Array.isArray(c) === Array.isArray(f) ? zS(c, f, n, i + "/" + ia(l), r) : c !== f && (r && n.push({ op: "test", path: i + "/" + ia(l), value: ii(c) }), n.push({ op: "replace", path: i + "/" + ia(l), value: ii(f) }));
39623
+ } else Array.isArray(e) === Array.isArray(t) ? (r && n.push({ op: "test", path: i + "/" + ia(l), value: ii(c) }), n.push({ op: "remove", path: i + "/" + ia(l) }), a = !0) : (r && n.push({ op: "test", path: i, value: e }), n.push({ op: "replace", path: i, value: t }));
39624
39624
  }
39625
39625
  if (!(!a && o.length == s.length))
39626
39626
  for (var u = 0; u < o.length; u++) {
39627
39627
  var l = o[u];
39628
- !dx(e, l) && t[l] !== void 0 && n.push({ op: "add", path: i + "/" + ia(l), value: ni(t[l]) });
39628
+ !dx(e, l) && t[l] !== void 0 && n.push({ op: "add", path: i + "/" + ia(l), value: ii(t[l]) });
39629
39629
  }
39630
39630
  }
39631
39631
  }
@@ -39643,7 +39643,7 @@ var p0e = /* @__PURE__ */ Object.freeze({
39643
39643
  });
39644
39644
  Object.assign({}, o0e, p0e, {
39645
39645
  JsonPatchError: lP,
39646
- deepClone: ni,
39646
+ deepClone: ii,
39647
39647
  escapePathComponent: ia,
39648
39648
  unescapePathComponent: uP
39649
39649
  });
@@ -40160,10 +40160,10 @@ function fP() {
40160
40160
  const F = k.loose ? u[l.XRANGELOOSE] : u[l.XRANGE];
40161
40161
  return M.replace(F, (D, B, I, J, se, oe) => {
40162
40162
  s("xRange", M, D, B, I, J, se, oe);
40163
- const pe = v(I), Ne = pe || v(J), he = Ne || v(se), gt = he;
40164
- return B === "=" && gt && (B = ""), oe = k.includePrerelease ? "-0" : "", pe ? B === ">" || B === "<" ? D = "<0.0.0-0" : D = "*" : B && gt ? (Ne && (J = 0), se = 0, B === ">" ? (B = ">=", Ne ? (I = +I + 1, J = 0, se = 0) : (J = +J + 1, se = 0)) : B === "<=" && (B = "<", Ne ? I = +I + 1 : J = +J + 1), B === "<" && (oe = "-0"), D = `${B + I}.${J}.${se}${oe}`) : Ne ? D = `>=${I}.0.0${oe} <${+I + 1}.0.0-0` : he && (D = `>=${I}.${J}.0${oe} <${I}.${+J + 1}.0-0`), s("xRange return", D), D;
40163
+ const pe = v(I), Ne = pe || v(J), he = Ne || v(se), mt = he;
40164
+ return B === "=" && mt && (B = ""), oe = k.includePrerelease ? "-0" : "", pe ? B === ">" || B === "<" ? D = "<0.0.0-0" : D = "*" : B && mt ? (Ne && (J = 0), se = 0, B === ">" ? (B = ">=", Ne ? (I = +I + 1, J = 0, se = 0) : (J = +J + 1, se = 0)) : B === "<=" && (B = "<", Ne ? I = +I + 1 : J = +J + 1), B === "<" && (oe = "-0"), D = `${B + I}.${J}.${se}${oe}`) : Ne ? D = `>=${I}.0.0${oe} <${+I + 1}.0.0-0` : he && (D = `>=${I}.${J}.0${oe} <${I}.${+J + 1}.0-0`), s("xRange return", D), D;
40165
40165
  });
40166
- }, $ = (M, k) => (s("replaceStars", M, k), M.trim().replace(u[l.STAR], "")), A = (M, k) => (s("replaceGTE0", M, k), M.trim().replace(u[k.includePrerelease ? l.GTE0PRE : l.GTE0], "")), R = (M) => (k, F, D, B, I, J, se, oe, pe, Ne, he, gt) => (v(D) ? F = "" : v(B) ? F = `>=${D}.0.0${M ? "-0" : ""}` : v(I) ? F = `>=${D}.${B}.0${M ? "-0" : ""}` : J ? F = `>=${F}` : F = `>=${F}${M ? "-0" : ""}`, v(pe) ? oe = "" : v(Ne) ? oe = `<${+pe + 1}.0.0-0` : v(he) ? oe = `<${pe}.${+Ne + 1}.0-0` : gt ? oe = `<=${pe}.${Ne}.${he}-${gt}` : M ? oe = `<${pe}.${Ne}.${+he + 1}-0` : oe = `<=${oe}`, `${F} ${oe}`.trim()), N = (M, k, F) => {
40166
+ }, $ = (M, k) => (s("replaceStars", M, k), M.trim().replace(u[l.STAR], "")), A = (M, k) => (s("replaceGTE0", M, k), M.trim().replace(u[k.includePrerelease ? l.GTE0PRE : l.GTE0], "")), R = (M) => (k, F, D, B, I, J, se, oe, pe, Ne, he, mt) => (v(D) ? F = "" : v(B) ? F = `>=${D}.0.0${M ? "-0" : ""}` : v(I) ? F = `>=${D}.${B}.0${M ? "-0" : ""}` : J ? F = `>=${F}` : F = `>=${F}${M ? "-0" : ""}`, v(pe) ? oe = "" : v(Ne) ? oe = `<${+pe + 1}.0.0-0` : v(he) ? oe = `<${pe}.${+Ne + 1}.0-0` : mt ? oe = `<=${pe}.${Ne}.${he}-${mt}` : M ? oe = `<${pe}.${Ne}.${+he + 1}-0` : oe = `<=${oe}`, `${F} ${oe}`.trim()), N = (M, k, F) => {
40167
40167
  for (let D = 0; D < M.length; D++)
40168
40168
  if (!M[D].test(k))
40169
40169
  return !1;
@@ -40786,8 +40786,8 @@ function b1e() {
40786
40786
  setFollowingLatest: s,
40787
40787
  scrollToBottom: a,
40788
40788
  programmaticScrollToBottom: u
40789
- } = di(), l = ii(0), c = ii(null);
40790
- _t(() => {
40789
+ } = di(), l = kn(0), c = kn(null);
40790
+ ht(() => {
40791
40791
  const p = r.current;
40792
40792
  if (!p) return;
40793
40793
  function g() {
@@ -40798,7 +40798,7 @@ function b1e() {
40798
40798
  return p.addEventListener("scroll", g, { passive: !0 }), () => {
40799
40799
  p.removeEventListener("scroll", g);
40800
40800
  };
40801
- }, [r, s]), _t(() => {
40801
+ }, [r, s]), ht(() => {
40802
40802
  const p = (t == null ? void 0 : t.size) ?? 0, g = p > l.current;
40803
40803
  if (l.current = p, g && t && t.size > 0) {
40804
40804
  const m = Array.from(t.values()), y = m[m.length - 1];
@@ -40821,6 +40821,7 @@ function b1e() {
40821
40821
  ref: r,
40822
40822
  className: tt("asgard-chatbot-body", f1.chatbot_body),
40823
40823
  style: (h = e == null ? void 0 : e.body) == null ? void 0 : h.style,
40824
+ "data-scrollable": "true",
40824
40825
  children: /* @__PURE__ */ de("div", { ref: c, className: f1.chatbot_body__content, style: d, children: [
40825
40826
  Array.from((t == null ? void 0 : t.values()) ?? []).map((p, g) => /* @__PURE__ */ T(
40826
40827
  m1e,
@@ -40864,8 +40865,8 @@ const v1e = "_chatbot_footer_1e430_1", x1e = "_chatbot_footer__content_1e430_4",
40864
40865
  document_preview_name: W1e
40865
40866
  }, H1e = (e) => /* @__PURE__ */ ve.createElement("svg", { width: 15, height: 12, viewBox: "0 0 15 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M0.823242 11.6953V0.945312L14.3328 6.32031L0.823242 11.6953ZM1.90658 10.0911L11.3649 6.32031L1.90658 2.54948V4.98052L5.92574 6.32031L1.90658 7.6601V10.0911Z", fill: "currentColor" })), tF = (e) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M18 22H4a2 2 0 0 1-2-2V6" }), /* @__PURE__ */ ve.createElement("path", { d: "m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18" }), /* @__PURE__ */ ve.createElement("circle", { cx: 12, cy: 8, r: 2 }), /* @__PURE__ */ ve.createElement("rect", { width: 16, height: 16, x: 6, y: 2, rx: 2 })), nF = (e) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), /* @__PURE__ */ ve.createElement("polyline", { points: "7 10 12 15 17 10" }), /* @__PURE__ */ ve.createElement("line", { x1: 12, x2: 12, y1: 15, y2: 3 })), mP = (e) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }), /* @__PURE__ */ ve.createElement("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }), /* @__PURE__ */ ve.createElement("path", { d: "M10 9H8" }), /* @__PURE__ */ ve.createElement("path", { d: "M16 13H8" }), /* @__PURE__ */ ve.createElement("path", { d: "M16 17H8" })), G1e = (e) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M5 12h14" }), /* @__PURE__ */ ve.createElement("path", { d: "M12 5v14" })), V1e = (e) => /* @__PURE__ */ ve.createElement("svg", { width: 11, height: 16, viewBox: "0 0 11 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M5.40658 9.90397C4.82435 9.90397 4.33158 9.7023 3.92824 9.29897C3.52491 8.89564 3.32324 8.40286 3.32324 7.82064V2.82064C3.32324 2.23842 3.52491 1.74564 3.92824 1.3423C4.33158 0.938971 4.82435 0.737305 5.40658 0.737305C5.9888 0.737305 6.48158 0.938971 6.88491 1.3423C7.28824 1.74564 7.48991 2.23842 7.48991 2.82064V7.82064C7.48991 8.40286 7.28824 8.89564 6.88491 9.29897C6.48158 9.7023 5.9888 9.90397 5.40658 9.90397ZM4.86491 15.1123V12.8654C3.56213 12.7208 2.47949 12.1724 1.61699 11.2202C0.754492 10.2679 0.323242 9.13467 0.323242 7.82064H1.40658C1.40658 8.92731 1.79706 9.87064 2.57803 10.6506C3.35887 11.4306 4.30331 11.8206 5.41137 11.8206C6.51928 11.8206 7.46213 11.4306 8.23991 10.6506C9.01769 9.87064 9.40658 8.92731 9.40658 7.82064H10.4899C10.4899 9.13467 10.0587 10.2679 9.19616 11.2202C8.33366 12.1724 7.25102 12.7208 5.94824 12.8654V15.1123H4.86491ZM5.40658 8.82064C5.68991 8.82064 5.92741 8.7248 6.11908 8.53314C6.31074 8.34147 6.40658 8.10397 6.40658 7.82064V2.82064C6.40658 2.5373 6.31074 2.2998 6.11908 2.10814C5.92741 1.91647 5.68991 1.82064 5.40658 1.82064C5.12324 1.82064 4.88574 1.91647 4.69408 2.10814C4.50241 2.2998 4.40658 2.5373 4.40658 2.82064V7.82064C4.40658 8.10397 4.50241 8.34147 4.69408 8.53314C4.88574 8.7248 5.12324 8.82064 5.40658 8.82064Z", fill: "currentColor" })), Y1e = (e) => /* @__PURE__ */ ve.createElement("svg", { width: 40, height: 40, viewBox: "0 0 40 40", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ve.createElement("circle", { cx: 20, cy: 20, r: 18, fill: "#D04444" }), /* @__PURE__ */ ve.createElement("rect", { x: 12, y: 12, width: 16, height: 16, fill: "#FFFFFF", rx: 2, ry: 2 }));
40866
40867
  function X1e(e) {
40867
- const { setValue: t, className: n, style: i } = e, [r, o] = Ze(!1), s = ii(null);
40868
- _t(() => {
40868
+ const { setValue: t, className: n, style: i } = e, [r, o] = Ze(!1), s = kn(null);
40869
+ ht(() => {
40869
40870
  const h = window.SpeechRecognition || window.webkitSpeechRecognition;
40870
40871
  if (!h) return;
40871
40872
  const p = new h();
@@ -41015,7 +41016,7 @@ function eye(e) {
41015
41016
  }
41016
41017
  const Vh = 5;
41017
41018
  function tye(e) {
41018
- const { currentCount: t, onDocumentsChange: n, className: i, style: r } = e, o = ii(null), s = Ve(() => {
41019
+ const { currentCount: t, onDocumentsChange: n, className: i, style: r } = e, o = kn(null), s = Ve(() => {
41019
41020
  var u;
41020
41021
  if (t >= Vh) {
41021
41022
  alert(`最多只能上傳 ${Vh} 個檔案`);
@@ -41079,7 +41080,7 @@ function nye() {
41079
41080
  }, [a, (ct = (nt = c.annotations) == null ? void 0 : nt.embedConfig) == null ? void 0 : ct.enableDocumentUpload]), g = Ie(() => {
41080
41081
  var ee, me;
41081
41082
  return ((me = (ee = c.annotations) == null ? void 0 : ee.embedConfig) == null ? void 0 : me.title) || l || "Bot";
41082
- }, [(Io = (gn = c.annotations) == null ? void 0 : gn.embedConfig) == null ? void 0 : Io.title, l]), [m, y] = Ze(""), [b, v] = Ze(!1), [x, _] = Ze([]), [E, w] = Ze([]), [S, C] = Ze(null), [$, A] = Ze([]), [R, N] = Ze(!1), M = ii(null), k = ii(null), F = ii(null), D = Ie(
41083
+ }, [(Io = (gn = c.annotations) == null ? void 0 : gn.embedConfig) == null ? void 0 : Io.title, l]), [m, y] = Ze(""), [b, v] = Ze(!1), [x, _] = Ze([]), [E, w] = Ze([]), [S, C] = Ze(null), [$, A] = Ze([]), [R, N] = Ze(!1), M = kn(null), k = kn(null), F = kn(null), D = Ie(
41083
41084
  () => t || !m.trim() && x.length === 0 && $.length === 0,
41084
41085
  [t, m, x.length, $.length]
41085
41086
  ), B = Ie(
@@ -41114,7 +41115,7 @@ function nye() {
41114
41115
  let ee = 0;
41115
41116
  return h && ee++, d && ee++, p && ee++, ee;
41116
41117
  }, [h, d, p]) >= 3;
41117
- _t(() => {
41118
+ ht(() => {
41118
41119
  const ee = (me) => {
41119
41120
  F.current && !F.current.contains(me.target) && N(!1);
41120
41121
  };
@@ -41128,42 +41129,42 @@ function nye() {
41128
41129
  }, []), he = Ve(async () => {
41129
41130
  var ee, me;
41130
41131
  if (!b && !t) {
41131
- const Ge = x.length > 0, St = $.length > 0, Xn = m.trim();
41132
+ const Ge = x.length > 0, St = $.length > 0, Kn = m.trim();
41132
41133
  try {
41133
- let mt;
41134
+ let yt;
41134
41135
  if (Ge && (i != null && i.uploadFile) && r) {
41135
- mt = [];
41136
+ yt = [];
41136
41137
  for (const jt of x)
41137
41138
  try {
41138
41139
  const Jt = await i.uploadFile(jt, r);
41139
41140
  if (Jt.isSuccess && ((ee = Jt.data) != null && ee[0])) {
41140
41141
  const Jr = Jt.data[0];
41141
- mt.push(Jr.blobId);
41142
+ yt.push(Jr.blobId);
41142
41143
  }
41143
41144
  } catch {
41144
41145
  alert(`檔案 ${jt.name} 上傳失敗`);
41145
41146
  }
41146
41147
  }
41147
41148
  if (St && (i != null && i.uploadFile) && r) {
41148
- mt || (mt = []);
41149
+ yt || (yt = []);
41149
41150
  for (const jt of $)
41150
41151
  try {
41151
41152
  const Jt = await i.uploadFile(jt, r);
41152
41153
  if (Jt.isSuccess && ((me = Jt.data) != null && me[0])) {
41153
41154
  const Jr = Jt.data[0];
41154
- mt.push(Jr.blobId);
41155
+ yt.push(Jr.blobId);
41155
41156
  }
41156
41157
  } catch {
41157
41158
  alert(`檔案 ${jt.name} 上傳失敗`);
41158
41159
  }
41159
41160
  }
41160
- if ((Ge || St) && (!mt || mt.length === 0))
41161
+ if ((Ge || St) && (!yt || yt.length === 0))
41161
41162
  return;
41162
- if (Xn || mt || E.length > 0 || $.length > 0) {
41163
+ if (Kn || yt || E.length > 0 || $.length > 0) {
41163
41164
  const jt = {
41164
- text: Xn || ""
41165
+ text: Kn || ""
41165
41166
  };
41166
- mt && mt.length > 0 && (jt.blobIds = mt), E.length > 0 && (jt.filePreviewUrls = E), $.length > 0 && (jt.documentNames = $.map((Jt) => Jt.name)), e == null || e(jt);
41167
+ yt && yt.length > 0 && (jt.blobIds = yt), E.length > 0 && (jt.filePreviewUrls = E), $.length > 0 && (jt.documentNames = $.map((Jt) => Jt.name)), e == null || e(jt);
41167
41168
  }
41168
41169
  y(""), _([]), w([]), A([]), M.current && (M.current.style.height = "36px");
41169
41170
  } catch {
@@ -41180,7 +41181,7 @@ function nye() {
41180
41181
  E,
41181
41182
  i,
41182
41183
  r
41183
- ]), gt = Ve(
41184
+ ]), mt = Ve(
41184
41185
  (ee) => {
41185
41186
  ee.key === "Enter" && !b && !t && (m.trim() || x.length > 0 || $.length > 0) && (ee.preventDefault(), he());
41186
41187
  },
@@ -41193,15 +41194,15 @@ function nye() {
41193
41194
  if (St.length > 0 && alert(`檔案驗證錯誤:
41194
41195
  ` + St.join(`
41195
41196
  `)), Ge.length > 0) {
41196
- const Xn = Yh - x.length, mt = Ge.slice(0, Xn);
41197
- if (Ge.length > Xn && alert(`最多只能上傳 ${Yh} 張圖片,已選擇前 ${Xn} 張`), mt.length > 0) {
41198
- A([]), _((Jt) => [...Jt, ...mt]);
41197
+ const Kn = Yh - x.length, yt = Ge.slice(0, Kn);
41198
+ if (Ge.length > Kn && alert(`最多只能上傳 ${Yh} 張圖片,已選擇前 ${Kn} 張`), yt.length > 0) {
41199
+ A([]), _((Jt) => [...Jt, ...yt]);
41199
41200
  const jt = [];
41200
- for (const Jt of mt) {
41201
+ for (const Jt of yt) {
41201
41202
  const Jr = new FileReader();
41202
41203
  Jr.onload = (cu) => {
41203
41204
  var xc;
41204
- (xc = cu.target) != null && xc.result && typeof cu.target.result == "string" && (jt.push(cu.target.result), jt.length === mt.length && w((ih) => [...ih, ...jt]));
41205
+ (xc = cu.target) != null && xc.result && typeof cu.target.result == "string" && (jt.push(cu.target.result), jt.length === yt.length && w((ih) => [...ih, ...jt]));
41205
41206
  }, Jr.readAsDataURL(Jt);
41206
41207
  }
41207
41208
  }
@@ -41210,7 +41211,7 @@ function nye() {
41210
41211
  ee.target.value = "";
41211
41212
  },
41212
41213
  [x.length]
41213
- ), Rn = Ve(() => {
41214
+ ), On = Ve(() => {
41214
41215
  var ee;
41215
41216
  if (x.length >= Yh) {
41216
41217
  alert(`最多只能上傳 ${Yh} 張圖片`);
@@ -41234,7 +41235,7 @@ function nye() {
41234
41235
  console.error("下載對話紀錄失敗:", ee), alert("下載失敗,請重試");
41235
41236
  }
41236
41237
  }, [u, r, g]);
41237
- return _t(() => {
41238
+ return ht(() => {
41238
41239
  var ee, me, Ge;
41239
41240
  M.current && M.current.style.setProperty(
41240
41241
  "--asg-color-text-placeholder",
@@ -41296,7 +41297,7 @@ function nye() {
41296
41297
  /* @__PURE__ */ T(
41297
41298
  "button",
41298
41299
  {
41299
- onClick: () => A((Ge) => Ge.filter((St, Xn) => Xn !== me)),
41300
+ onClick: () => A((Ge) => Ge.filter((St, Kn) => Kn !== me)),
41300
41301
  className: ke.file_remove_button,
41301
41302
  "aria-label": "移除",
41302
41303
  children: "×"
@@ -41343,8 +41344,8 @@ function nye() {
41343
41344
  const Ge = me.target.files;
41344
41345
  if (Ge && Ge.length > 0) {
41345
41346
  _([]), w([]);
41346
- const St = rF - $.length, Xn = Array.from(Ge).slice(0, St);
41347
- Ge.length > St && alert(`最多只能上傳 ${rF} 個檔案,已選擇前 ${St} 個`), A((mt) => [...mt, ...Xn]);
41347
+ const St = rF - $.length, Kn = Array.from(Ge).slice(0, St);
41348
+ Ge.length > St && alert(`最多只能上傳 ${rF} 個檔案,已選擇前 ${St} 個`), A((yt) => [...yt, ...Kn]);
41348
41349
  }
41349
41350
  }, ee.click(), N(!1);
41350
41351
  },
@@ -41360,7 +41361,7 @@ function nye() {
41360
41361
  className: ke.attachment_menu_item,
41361
41362
  style: { color: (sc = f == null ? void 0 : f.primaryComponent) == null ? void 0 : sc.secondaryColor },
41362
41363
  onClick: () => {
41363
- Rn(), N(!1);
41364
+ On(), N(!1);
41364
41365
  },
41365
41366
  children: [
41366
41367
  /* @__PURE__ */ T(tF, {}),
@@ -41401,7 +41402,7 @@ function nye() {
41401
41402
  {
41402
41403
  className: ke.attachment_button,
41403
41404
  style: (fc = (cc = f.footer) == null ? void 0 : cc.attachmentButton) == null ? void 0 : fc.style,
41404
- onClick: Rn,
41405
+ onClick: On,
41405
41406
  title: "選擇照片",
41406
41407
  children: /* @__PURE__ */ T(tF, {})
41407
41408
  }
@@ -41428,7 +41429,7 @@ function nye() {
41428
41429
  value: m,
41429
41430
  placeholder: n || "Enter message",
41430
41431
  onChange: Ne,
41431
- onKeyDown: gt,
41432
+ onKeyDown: mt,
41432
41433
  onCompositionStart: () => v(!0),
41433
41434
  onCompositionEnd: () => v(!1)
41434
41435
  }
@@ -41484,25 +41485,71 @@ function nye() {
41484
41485
  )
41485
41486
  ] });
41486
41487
  }
41487
- const iye = "_chatbot_root_1urkk_2", rye = "_full_screen_1urkk_125", oye = "_chatbot_container_1urkk_130", tm = {
41488
+ const iye = "_chatbot_root_84qyk_2", rye = "_full_screen_84qyk_125", oye = "_chatbot_container_84qyk_130", tm = {
41488
41489
  chatbot_root: iye,
41489
41490
  full_screen: rye,
41490
41491
  chatbot_container: oye
41491
41492
  };
41492
41493
  function sye(e) {
41493
- const { children: t } = e, n = ii(null), i = pn();
41494
- OP(n);
41495
- const r = Ie(() => {
41496
- var o, s;
41497
- return (o = i == null ? void 0 : i.chatbot) != null && o.backgroundColor ? { backgroundColor: (s = i.chatbot) == null ? void 0 : s.backgroundColor } : {};
41498
- }, [i]);
41499
- return /* @__PURE__ */ T("div", { ref: n, className: tm.full_screen, children: /* @__PURE__ */ T("div", { className: tm.chatbot_container, style: r, children: t }) });
41494
+ const { children: t } = e, n = kn(null), i = kn(null), r = pn();
41495
+ OP(n), ht(() => {
41496
+ const s = i.current;
41497
+ if (!s) return;
41498
+ let a = 0;
41499
+ const u = (f) => {
41500
+ const h = f.target.closest('[data-scrollable="true"]');
41501
+ if (h) {
41502
+ const { scrollTop: p, scrollHeight: g, clientHeight: m } = h, y = p === 0 && f.deltaY < 0, b = p + m >= g && f.deltaY > 0;
41503
+ (y || b) && f.preventDefault();
41504
+ } else
41505
+ f.preventDefault();
41506
+ }, l = (f) => {
41507
+ a = f.touches[0].clientY;
41508
+ }, c = (f) => {
41509
+ const h = f.target.closest('[data-scrollable="true"]'), p = f.touches[0].clientY, g = a - p;
41510
+ if (h) {
41511
+ const { scrollTop: m, scrollHeight: y, clientHeight: b } = h, v = m === 0 && g < 0, x = m + b >= y && g > 0;
41512
+ (v || x) && f.preventDefault();
41513
+ } else
41514
+ f.preventDefault();
41515
+ };
41516
+ return s.addEventListener("wheel", u, { passive: !1 }), s.addEventListener("touchstart", l, { passive: !0 }), s.addEventListener("touchmove", c, { passive: !1 }), () => {
41517
+ s.removeEventListener("wheel", u), s.removeEventListener("touchstart", l), s.removeEventListener("touchmove", c);
41518
+ };
41519
+ }, []);
41520
+ const o = Ie(() => {
41521
+ var s, a;
41522
+ return (s = r == null ? void 0 : r.chatbot) != null && s.backgroundColor ? { backgroundColor: (a = r.chatbot) == null ? void 0 : a.backgroundColor } : {};
41523
+ }, [r]);
41524
+ return /* @__PURE__ */ T("div", { ref: n, className: tm.full_screen, children: /* @__PURE__ */ T("div", { ref: i, className: tm.chatbot_container, style: o, children: t }) });
41500
41525
  }
41501
41526
  function oF(e) {
41502
- const { fullScreen: t, children: n, className: i, style: r = {} } = e, {
41503
- chatbot: { style: o, header: s, body: a, footer: u, ...l }
41504
- } = pn();
41505
- return /* @__PURE__ */ T("div", { className: tt(tm.chatbot_root, i), style: Object.assign({}, o, r), children: t ? /* @__PURE__ */ T(sye, { children: n }) : /* @__PURE__ */ T("div", { className: tm.chatbot_container, style: l, children: n }) });
41527
+ const { fullScreen: t, children: n, className: i, style: r = {} } = e, o = kn(null), { chatbot: s } = pn(), { style: a, header: u, body: l, footer: c, ...f } = s;
41528
+ return ht(() => {
41529
+ const d = o.current;
41530
+ if (!d) return;
41531
+ let h = 0;
41532
+ const p = (y) => {
41533
+ const v = y.target.closest('[data-scrollable="true"]');
41534
+ if (v) {
41535
+ const { scrollTop: x, scrollHeight: _, clientHeight: E } = v, w = x === 0 && y.deltaY < 0, S = x + E >= _ && y.deltaY > 0;
41536
+ (w || S) && y.preventDefault();
41537
+ } else
41538
+ y.preventDefault();
41539
+ }, g = (y) => {
41540
+ h = y.touches[0].clientY;
41541
+ }, m = (y) => {
41542
+ const v = y.target.closest('[data-scrollable="true"]'), x = y.touches[0].clientY, _ = h - x;
41543
+ if (v) {
41544
+ const { scrollTop: E, scrollHeight: w, clientHeight: S } = v, C = E === 0 && _ < 0, $ = E + S >= w && _ > 0;
41545
+ (C || $) && y.preventDefault();
41546
+ } else
41547
+ y.preventDefault();
41548
+ };
41549
+ return d.addEventListener("wheel", p, { passive: !1 }), d.addEventListener("touchstart", g, { passive: !0 }), d.addEventListener("touchmove", m, { passive: !1 }), () => {
41550
+ d.removeEventListener("wheel", p), d.removeEventListener("touchstart", g), d.removeEventListener("touchmove", m);
41551
+ };
41552
+ }, []), /* @__PURE__ */ T("div", { className: tt(tm.chatbot_root, i), style: Object.assign({}, a, r), children: t ? /* @__PURE__ */ T(sye, { children: n }) : /* @__PURE__ */ T("div", { ref: o, className: tm.chatbot_container, style: f, children: n }) });
41506
41553
  }
41507
41554
  const aye = "_chatbot__auth_state_container_1hs4h_1", uye = "_chatbot__error_state_1hs4h_9", lye = "_chatbot__error_state__content_1hs4h_13", cye = "_chatbot__error_state__icon_1hs4h_17", Bo = {
41508
41555
  chatbot__auth_state_container: aye,