@asgard-js/react 0.2.16 → 0.2.17

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
@@ -1,6 +1,6 @@
1
- import { jsx as k, jsxs as Y, Fragment as Ka } from "react/jsx-runtime";
1
+ import { jsx as k, jsxs as V, Fragment as Ka } from "react/jsx-runtime";
2
2
  import * as me from "react";
3
- import ma, { useRef as Qt, useEffect as Ye, useState as Ne, useMemo as we, useCallback as pe, createContext as qg, useContext as Wg, useImperativeHandle as RL, memo as it, forwardRef as DL } from "react";
3
+ import ma, { useRef as Qt, useEffect as Ye, useState as Ne, useMemo as xe, useCallback as pe, createContext as qg, useContext as Wg, useImperativeHandle as RL, memo as it, forwardRef as DL } from "react";
4
4
  import { AsgardServiceClient as OL, EventType as yl, Conversation as Pk, Channel as LL, MessageTemplateType as zr } from "@asgard-js/core";
5
5
  function zk(e) {
6
6
  return e !== null && typeof e == "object" && !Array.isArray(e);
@@ -107,7 +107,7 @@ function UL(e) {
107
107
  onSseMessage: a,
108
108
  onAuthError: l,
109
109
  onBeforeSendMessage: u
110
- } = e, c = !t, [f, d] = Ne(null), [h, p] = Ne(n ?? !0), [g, m] = Ne(!1), [y, b] = Ne(!1), [_, v] = Ne(null), w = we(
110
+ } = e, c = !t, [f, d] = Ne(null), [h, p] = Ne(n ?? !0), [g, m] = Ne(!1), [y, b] = Ne(!1), [_, v] = Ne(null), w = xe(
111
111
  () => c ? new Pk({ messages: new Map(s?.map((S) => [S.messageId, S])) }) : null,
112
112
  [c, s]
113
113
  ), E = pe(
@@ -166,7 +166,7 @@ function UL(e) {
166
166
  );
167
167
  return Ye(() => {
168
168
  c || !f && h && E(r);
169
- }, [c, f, h, E, r]), Ye(() => () => x(), [x]), we(
169
+ }, [c, f, h, E, r]), Ye(() => () => x(), [x]), xe(
170
170
  () => c ? {
171
171
  isOpen: !0,
172
172
  isResetting: !1,
@@ -650,7 +650,7 @@ function Uk(e) {
650
650
  return l;
651
651
  },
652
652
  [n, r?.embedConfig?.theme]
653
- ), o = we(() => i(), [i]);
653
+ ), o = xe(() => i(), [i]);
654
654
  return /* @__PURE__ */ k(YM.Provider, { value: o, children: t });
655
655
  }
656
656
  function xt() {
@@ -696,75 +696,82 @@ function VL(e) {
696
696
  initMessages: d,
697
697
  onSseMessage: h,
698
698
  onAuthError: p,
699
- onBeforeSendMessage: g
700
- } = e, m = Qt(null), y = Qt(null), [b, _] = Ne(!0), v = pe((N) => {
701
- _(N);
702
- }, []), w = pe((N = "smooth") => {
703
- const D = m.current;
704
- D && D.scrollIntoView({ behavior: N }), _(!0);
705
- }, []), E = pe((N = "smooth") => {
706
- const D = m.current;
707
- D && D.scrollIntoView({ behavior: N });
708
- }, []), x = BL({ config: o }), { isOpen: C, isResetting: S, isConnecting: A, conversation: M, sendMessage: R, resetChannel: F, closeChannel: T } = UL({
709
- client: x,
699
+ onBeforeSendMessage: g,
700
+ onMessageSent: m
701
+ } = e, y = Qt(null), b = Qt(null), [_, v] = Ne(!0), w = pe((z) => {
702
+ v(z);
703
+ }, []), E = pe((z = "smooth") => {
704
+ const L = y.current;
705
+ L && L.scrollIntoView({ behavior: z }), v(!0);
706
+ }, []), x = pe((z = "smooth") => {
707
+ const L = y.current;
708
+ L && L.scrollIntoView({ behavior: z });
709
+ }, []), C = BL({ config: o }), { isOpen: S, isResetting: A, isConnecting: M, conversation: R, sendMessage: F, resetChannel: T, closeChannel: $ } = UL({
710
+ client: C,
710
711
  customChannelId: f,
711
712
  initMessages: d,
712
713
  onSseMessage: h,
713
714
  onAuthError: p,
714
715
  onBeforeSendMessage: g
715
- }), $ = we(
716
+ }), N = xe(() => {
717
+ if (F)
718
+ return async (...z) => {
719
+ const L = await F(...z);
720
+ return m?.(), L;
721
+ };
722
+ }, [F, m]), D = xe(
716
723
  () => ({
717
724
  avatar: t,
718
725
  title: n,
719
- client: x,
726
+ client: C,
720
727
  customChannelId: f,
721
- isOpen: C,
722
- isResetting: S,
723
- isConnecting: A,
724
- messages: M?.messages ?? null,
725
- sendMessage: R,
726
- resetChannel: F,
727
- closeChannel: T,
728
+ isOpen: S,
729
+ isResetting: A,
730
+ isConnecting: M,
731
+ messages: R?.messages ?? null,
732
+ sendMessage: N,
733
+ resetChannel: T,
734
+ closeChannel: $,
728
735
  botTypingPlaceholder: s,
729
736
  inputPlaceholder: a,
730
737
  enableUpload: l,
731
738
  enableExport: u,
732
739
  enableDocumentUpload: c,
733
740
  onBeforeSendMessage: g,
734
- messageBoxBottomRef: m,
735
- scrollContainerRef: y,
736
- isFollowingLatest: b,
737
- setFollowingLatest: v,
738
- scrollToBottom: w,
739
- programmaticScrollToBottom: E
741
+ messageBoxBottomRef: y,
742
+ scrollContainerRef: b,
743
+ isFollowingLatest: _,
744
+ setFollowingLatest: w,
745
+ scrollToBottom: E,
746
+ programmaticScrollToBottom: x
740
747
  }),
741
748
  [
742
749
  t,
743
750
  n,
744
- x,
745
- f,
746
751
  C,
752
+ f,
747
753
  S,
748
754
  A,
749
- M?.messages,
750
- R,
751
- F,
755
+ M,
756
+ R?.messages,
757
+ N,
752
758
  T,
759
+ $,
753
760
  s,
754
761
  a,
755
762
  l,
756
763
  u,
757
764
  c,
758
765
  g,
759
- b,
760
- v,
766
+ _,
761
767
  w,
762
- E
768
+ E,
769
+ x
763
770
  ]
764
771
  );
765
772
  return RL(i, () => ({
766
- serviceContext: $
767
- })), /* @__PURE__ */ k(XM.Provider, { value: $, children: r });
773
+ serviceContext: D
774
+ })), /* @__PURE__ */ k(XM.Provider, { value: D, children: r });
768
775
  }
769
776
  function Dt() {
770
777
  return Wg(XM);
@@ -788,7 +795,7 @@ function YL(e) {
788
795
  messageActions: s,
789
796
  onMessageAction: a,
790
797
  renderMessageContent: l
791
- } = e, u = we(
798
+ } = e, u = xe(
792
799
  () => ({
793
800
  onErrorClick: n,
794
801
  errorMessageRenderer: r,
@@ -873,7 +880,7 @@ function jk({
873
880
  }, g = () => {
874
881
  c(!u);
875
882
  };
876
- return /* @__PURE__ */ Y(
883
+ return /* @__PURE__ */ V(
877
884
  "div",
878
885
  {
879
886
  className: Me(Ln.api_key_input, s),
@@ -882,14 +889,14 @@ function jk({
882
889
  borderColor: f.borderColor
883
890
  },
884
891
  children: [
885
- /* @__PURE__ */ Y("div", { className: Ln.api_key_input__header, children: [
892
+ /* @__PURE__ */ V("div", { className: Ln.api_key_input__header, children: [
886
893
  /* @__PURE__ */ k(lv, { avatar: d }),
887
894
  /* @__PURE__ */ k("h2", { className: Ln.api_key_input__title, style: f?.header?.title?.style, children: i })
888
895
  ] }),
889
- /* @__PURE__ */ Y("form", { onSubmit: h, className: Ln.api_key_input__form, children: [
890
- /* @__PURE__ */ Y("div", { children: [
896
+ /* @__PURE__ */ V("form", { onSubmit: h, className: Ln.api_key_input__form, children: [
897
+ /* @__PURE__ */ V("div", { children: [
891
898
  /* @__PURE__ */ k("label", { className: Ln.api_key_input__label, children: "Key" }),
892
- /* @__PURE__ */ Y("div", { className: Ln.api_key_input__input_wrapper, children: [
899
+ /* @__PURE__ */ V("div", { className: Ln.api_key_input__input_wrapper, children: [
893
900
  /* @__PURE__ */ k(
894
901
  "input",
895
902
  {
@@ -946,12 +953,12 @@ const uI = "_chatbot_header_luxt4_1", cI = "_chatbot_header__content_luxt4_4", f
946
953
  function qk(e) {
947
954
  const { title: t, onReset: n, onClose: r, customActions: i, maintainConnectionWhenClosed: o } = e, { chatbot: s } = xt(), {
948
955
  data: { annotations: a }
949
- } = av(), { avatar: l, isResetting: u, resetChannel: c, closeChannel: f } = Dt(), d = we(
956
+ } = av(), { avatar: l, isResetting: u, resetChannel: c, closeChannel: f } = Dt(), d = xe(
950
957
  () => ({
951
958
  maxWidth: s?.contentMaxWidth ?? "1200px"
952
959
  }),
953
960
  [s]
954
- ), h = we(
961
+ ), h = xe(
955
962
  () => ({
956
963
  ...s?.header?.style,
957
964
  borderBottomColor: s?.borderColor
@@ -968,12 +975,12 @@ function qk(e) {
968
975
  },
969
976
  [u, r, f, o]
970
977
  );
971
- return /* @__PURE__ */ k("div", { className: Me("asgard-chatbot-header", Wd.chatbot_header), style: h, children: /* @__PURE__ */ Y("div", { className: Wd.chatbot_header__content, style: d, children: [
972
- /* @__PURE__ */ Y("div", { className: Wd.chatbot_header__title, children: [
978
+ return /* @__PURE__ */ k("div", { className: Me("asgard-chatbot-header", Wd.chatbot_header), style: h, children: /* @__PURE__ */ V("div", { className: Wd.chatbot_header__content, style: d, children: [
979
+ /* @__PURE__ */ V("div", { className: Wd.chatbot_header__title, children: [
973
980
  /* @__PURE__ */ k(lv, { avatar: l }),
974
981
  /* @__PURE__ */ k("h4", { style: s?.header?.title?.style, children: a?.embedConfig?.title || t || "Bot" })
975
982
  ] }),
976
- /* @__PURE__ */ Y("div", { className: Wd.chatbot_header__extra, style: s?.header?.actionButton?.style, children: [
983
+ /* @__PURE__ */ V("div", { className: Wd.chatbot_header__extra, style: s?.header?.actionButton?.style, children: [
977
984
  i,
978
985
  /* @__PURE__ */ k("div", { onClick: p, children: /* @__PURE__ */ k(hI, {}) }),
979
986
  /* @__PURE__ */ k("div", { onClick: g, children: /* @__PURE__ */ k(JM, {}) })
@@ -993,7 +1000,7 @@ const pI = "_chatbot_body_wrapper_13zns_1", gI = "_chatbot_body_13zns_1", mI = "
993
1000
  "template_box--empty": "_template_box--empty_rjm7y_18"
994
1001
  };
995
1002
  function dn(e) {
996
- const { type: t, children: n, style: r, className: i } = e, o = e.type === "bot" ? e.direction : "horizontal", s = e.type === "bot" ? e.isEmpty : !1, a = we(() => t === "user" ? Me(Ws.template_box, Ws["template_box--user"]) : Me(
1003
+ const { type: t, children: n, style: r, className: i } = e, o = e.type === "bot" ? e.direction : "horizontal", s = e.type === "bot" ? e.isEmpty : !1, a = xe(() => t === "user" ? Me(Ws.template_box, Ws["template_box--user"]) : Me(
997
1004
  Ws.template_box,
998
1005
  Ws["template_box--bot"],
999
1006
  o === "horizontal" ? Ws["template_box--horizontal"] : Ws["template_box--vertical"],
@@ -1081,7 +1088,7 @@ const LI = "_time_h4puu_1", II = {
1081
1088
  time: LI
1082
1089
  };
1083
1090
  function Za(e) {
1084
- const { time: t, className: n } = e, { template: r } = xt(), i = we(
1091
+ const { time: t, className: n } = e, { template: r } = xt(), i = xe(
1085
1092
  () => ({
1086
1093
  color: r?.time?.style?.color
1087
1094
  }),
@@ -1103,14 +1110,14 @@ function PI(e) {
1103
1110
  }, c = {
1104
1111
  backgroundColor: o?.borderColor
1105
1112
  };
1106
- return t?.length ? /* @__PURE__ */ Y("div", { className: Ir.references_wrapper, children: [
1113
+ return t?.length ? /* @__PURE__ */ V("div", { className: Ir.references_wrapper, children: [
1107
1114
  /* @__PURE__ */ k(
1108
1115
  "div",
1109
1116
  {
1110
1117
  className: Me("asgard-references", Ir.references_box, Ir["references_box--bot"]),
1111
1118
  style: l,
1112
- children: /* @__PURE__ */ Y("div", { className: Ir.references_inner, children: [
1113
- /* @__PURE__ */ Y("div", { className: Ir.references_header, children: [
1119
+ children: /* @__PURE__ */ V("div", { className: Ir.references_inner, children: [
1120
+ /* @__PURE__ */ V("div", { className: Ir.references_header, children: [
1114
1121
  /* @__PURE__ */ k("span", { className: Ir.references_title, style: u, children: "Reference" }),
1115
1122
  /* @__PURE__ */ k("span", { className: Ir.references_divider, style: c })
1116
1123
  ] }),
@@ -1139,8 +1146,8 @@ function UI(e) {
1139
1146
  }
1140
1147
  function ur(e) {
1141
1148
  const { quickReplies: t, references: n, time: r, children: i, message: o, isEmpty: s } = e;
1142
- return /* @__PURE__ */ Y("div", { className: Me("asgard-template-box-content", Wk.template_box_content), children: [
1143
- !s && /* @__PURE__ */ Y("div", { className: Wk.content, children: [
1149
+ return /* @__PURE__ */ V("div", { className: Me("asgard-template-box-content", Wk.template_box_content), children: [
1150
+ !s && /* @__PURE__ */ V("div", { className: Wk.content, children: [
1144
1151
  i,
1145
1152
  /* @__PURE__ */ k(Za, { time: r })
1146
1153
  ] }),
@@ -1163,7 +1170,7 @@ const jI = "_bot_avatar_1ch7m_1", Hd = {
1163
1170
  card_actions: YI
1164
1171
  };
1165
1172
  function QM(e) {
1166
- const { template: t, raw: n, customStyle: r } = e, { sendMessage: i, onBeforeSendMessage: o } = Dt(), { onTemplateBtnClick: s, defaultLinkTarget: a } = Xf(), [l, u] = Ne(!1), c = we(() => t?.thumbnailImageUrl?.replace(/^http:/, "").replace(/^https:/, "") || "", [t]), f = !!c && !l, d = we(() => t?.imageAspectRatio === "square" ? "1 / 1" : "1.51 / 1", [t]), h = pe(
1173
+ const { template: t, raw: n, customStyle: r } = e, { sendMessage: i, onBeforeSendMessage: o } = Dt(), { onTemplateBtnClick: s, defaultLinkTarget: a } = Xf(), [l, u] = Ne(!1), c = xe(() => t?.thumbnailImageUrl?.replace(/^http:/, "").replace(/^https:/, "") || "", [t]), f = !!c && !l, d = xe(() => t?.imageAspectRatio === "square" ? "1 / 1" : "1.51 / 1", [t]), h = pe(
1167
1174
  (p) => function() {
1168
1175
  switch (p.type) {
1169
1176
  case "message":
@@ -1186,7 +1193,7 @@ function QM(e) {
1186
1193
  },
1187
1194
  [i, o, s, a, n]
1188
1195
  );
1189
- return /* @__PURE__ */ Y("div", { className: Me("asgard-card", lc.card_root), style: r?.style, children: [
1196
+ return /* @__PURE__ */ V("div", { className: Me("asgard-card", lc.card_root), style: r?.style, children: [
1190
1197
  f && /* @__PURE__ */ k(
1191
1198
  "img",
1192
1199
  {
@@ -1202,7 +1209,7 @@ function QM(e) {
1202
1209
  }
1203
1210
  }
1204
1211
  ),
1205
- /* @__PURE__ */ Y("div", { className: lc.card_content, children: [
1212
+ /* @__PURE__ */ V("div", { className: lc.card_content, children: [
1206
1213
  /* @__PURE__ */ k("h5", { className: lc.card_title, style: r?.title?.style, children: t?.title }),
1207
1214
  /* @__PURE__ */ k("div", { className: lc.card_description, style: r?.description?.style, children: t?.text }),
1208
1215
  /* @__PURE__ */ k("div", { className: lc.card_actions, children: t?.buttons?.map((p, g) => /* @__PURE__ */ k("button", { onClick: h(p.action), style: r?.button?.style, children: p.label }, g)) })
@@ -1211,7 +1218,7 @@ function QM(e) {
1211
1218
  }
1212
1219
  function XI(e) {
1213
1220
  const { message: t } = e, { template: n } = xt(), { avatar: r } = Dt(), i = t.message.template;
1214
- return /* @__PURE__ */ Y(dn, { className: "asgard-button-template", type: "bot", direction: "horizontal", children: [
1221
+ return /* @__PURE__ */ V(dn, { className: "asgard-button-template", type: "bot", direction: "horizontal", children: [
1215
1222
  /* @__PURE__ */ k(cr, { avatar: r }),
1216
1223
  /* @__PURE__ */ k(
1217
1224
  ur,
@@ -1367,7 +1374,7 @@ function kT({ children: e }) {
1367
1374
  }, []), r || !t ? e : /* @__PURE__ */ k(t, { components: wP, children: e });
1368
1375
  }
1369
1376
  function Yk(e) {
1370
- const { message: t } = e, { avatar: n } = Dt(), r = xt(), { botMessage: i } = r, o = t?.message?.text || "", s = t.type === "bot", a = r?.template?.TextMessageTemplate?.style, l = we(() => {
1377
+ const { message: t } = e, { avatar: n } = Dt(), r = xt(), { botMessage: i } = r, o = t?.message?.text || "", s = t.type === "bot", a = r?.template?.TextMessageTemplate?.style, l = xe(() => {
1371
1378
  switch (t.type) {
1372
1379
  case "user":
1373
1380
  return {
@@ -1388,7 +1395,7 @@ function Yk(e) {
1388
1395
  }, [t, r, i]);
1389
1396
  if (t.type === "error") return null;
1390
1397
  if (t.type === "user")
1391
- return /* @__PURE__ */ Y(
1398
+ return /* @__PURE__ */ V(
1392
1399
  dn,
1393
1400
  {
1394
1401
  className: "asgard-text-template asgard-text-template--user",
@@ -1402,7 +1409,7 @@ function Yk(e) {
1402
1409
  }
1403
1410
  );
1404
1411
  const u = t.type === "bot" ? t : void 0, c = o.trim() !== "", f = u?.message.template?.references, d = u?.message.template?.quickReplies, h = !!f?.length, p = !!d?.length, g = !c;
1405
- return g && !h && !p ? null : g ? /* @__PURE__ */ Y(
1412
+ return g && !h && !p ? null : g ? /* @__PURE__ */ V(
1406
1413
  dn,
1407
1414
  {
1408
1415
  className: Me("asgard-text-template", "asgard-text-template--bot", "asgard-text-template--empty"),
@@ -1424,7 +1431,7 @@ function Yk(e) {
1424
1431
  )
1425
1432
  ]
1426
1433
  }
1427
- ) : /* @__PURE__ */ Y(
1434
+ ) : /* @__PURE__ */ V(
1428
1435
  dn,
1429
1436
  {
1430
1437
  className: "asgard-text-template asgard-text-template--bot",
@@ -1448,23 +1455,23 @@ function Yk(e) {
1448
1455
  );
1449
1456
  }
1450
1457
  function CT(e) {
1451
- const { isTyping: t, typingText: n } = e, { avatar: r } = Dt(), i = xt(), o = jL(t, 500), s = we(
1458
+ const { isTyping: t, typingText: n } = e, { avatar: r } = Dt(), i = xt(), o = jL(t, 500), s = xe(
1452
1459
  () => ({
1453
1460
  color: i?.botMessage?.color,
1454
1461
  backgroundColor: i?.botMessage?.backgroundColor
1455
1462
  }),
1456
1463
  [i]
1457
- ), a = we(
1464
+ ), a = xe(
1458
1465
  () => ({
1459
1466
  backgroundColor: i?.botMessage?.color
1460
1467
  }),
1461
1468
  [i]
1462
1469
  );
1463
- return o ? /* @__PURE__ */ Y(dn, { className: "asgard-text-template asgard-text-template--bot", type: "bot", direction: "horizontal", children: [
1470
+ return o ? /* @__PURE__ */ V(dn, { className: "asgard-text-template asgard-text-template--bot", type: "bot", direction: "horizontal", children: [
1464
1471
  /* @__PURE__ */ k(cr, { avatar: r }),
1465
- /* @__PURE__ */ k(ur, { time: /* @__PURE__ */ new Date(), children: /* @__PURE__ */ k("div", { className: Me(Ei.text, Ei["text--bot"]), style: s, children: /* @__PURE__ */ Y("span", { children: [
1472
+ /* @__PURE__ */ k(ur, { time: /* @__PURE__ */ new Date(), children: /* @__PURE__ */ k("div", { className: Me(Ei.text, Ei["text--bot"]), style: s, children: /* @__PURE__ */ V("span", { children: [
1466
1473
  n ? /* @__PURE__ */ k(kT, { children: n }) : null,
1467
- o && /* @__PURE__ */ Y("span", { className: Ei["typing-indicator"], children: [
1474
+ o && /* @__PURE__ */ V("span", { className: Ei["typing-indicator"], children: [
1468
1475
  /* @__PURE__ */ k("div", { className: Ei.dot, style: a }),
1469
1476
  /* @__PURE__ */ k("div", { className: Ei.dot, style: a }),
1470
1477
  /* @__PURE__ */ k("div", { className: Ei.dot, style: a })
@@ -1473,7 +1480,7 @@ function CT(e) {
1473
1480
  ] }) : null;
1474
1481
  }
1475
1482
  function kP(e) {
1476
- const { placeholder: t } = e, { isConnecting: n, messages: r } = Dt(), i = we(
1483
+ const { placeholder: t } = e, { isConnecting: n, messages: r } = Dt(), i = xe(
1477
1484
  () => Array.from(r?.values() ?? []).some((o) => o.type === "bot" && o.isTyping),
1478
1485
  [r]
1479
1486
  );
@@ -1485,7 +1492,7 @@ const CP = "_carousel_root_v06v3_1", SP = "_carousel_time_v06v3_13", Xk = {
1485
1492
  };
1486
1493
  function $P(e) {
1487
1494
  const { message: t } = e, { template: n } = xt(), { avatar: r } = Dt(), i = t.message.template;
1488
- return /* @__PURE__ */ Y(
1495
+ return /* @__PURE__ */ V(
1489
1496
  dn,
1490
1497
  {
1491
1498
  className: "asgard-carousel-template",
@@ -1532,12 +1539,12 @@ function Kk(e) {
1532
1539
  }, [t, r]);
1533
1540
  if (t.type === "user") return null;
1534
1541
  if (t.type === "error")
1535
- return /* @__PURE__ */ k("div", { className: Me("asgard-hint-template asgard-hint-template--error", Hs.hint_root), children: i?.(t) ?? /* @__PURE__ */ Y(Ka, { children: [
1536
- /* @__PURE__ */ Y("div", { className: Hs.error_hint_title, children: [
1542
+ return /* @__PURE__ */ k("div", { className: Me("asgard-hint-template asgard-hint-template--error", Hs.hint_root), children: i?.(t) ?? /* @__PURE__ */ V(Ka, { children: [
1543
+ /* @__PURE__ */ V("div", { className: Hs.error_hint_title, children: [
1537
1544
  /* @__PURE__ */ k("span", { className: Hs.time, children: Wy(t.time) }),
1538
1545
  /* @__PURE__ */ k("span", { children: "Unexpected error" })
1539
1546
  ] }),
1540
- r && /* @__PURE__ */ Y("div", { className: Hs.error_hint_message, onClick: o, children: [
1547
+ r && /* @__PURE__ */ V("div", { className: Hs.error_hint_message, onClick: o, children: [
1541
1548
  "Click ",
1542
1549
  /* @__PURE__ */ k("span", { children: "here" }),
1543
1550
  " to view the report."
@@ -1545,7 +1552,7 @@ function Kk(e) {
1545
1552
  ] }) });
1546
1553
  if (t.type !== "bot") return null;
1547
1554
  const s = t.message.template;
1548
- return s.type !== zr.HINT ? null : /* @__PURE__ */ Y(
1555
+ return s.type !== zr.HINT ? null : /* @__PURE__ */ V(
1549
1556
  "div",
1550
1557
  {
1551
1558
  className: Me("asgard-hint-template asgard-hint-template--hint", Hs.hint_root),
@@ -1633,7 +1640,7 @@ const DP = (e) => function(t) {
1633
1640
  return n;
1634
1641
  };
1635
1642
  };
1636
- function L(e) {
1643
+ function I(e) {
1637
1644
  throw Error(e);
1638
1645
  }
1639
1646
  function Wi(e) {
@@ -1651,9 +1658,9 @@ function Wi(e) {
1651
1658
  else {
1652
1659
  if (r)
1653
1660
  continue;
1654
- s === i && l === '"' || s === i && l === "'" ? (s = a + 1, r = l) : l === "." && !i ? a > s ? u() : s = a + 1 : l === "[" ? (a > s && u(), i = s = a + 1) : l === "]" && (i || L("Access path missing open bracket: " + e), i > 0 && u(), i = 0, s = a + 1);
1661
+ s === i && l === '"' || s === i && l === "'" ? (s = a + 1, r = l) : l === "." && !i ? a > s ? u() : s = a + 1 : l === "[" ? (a > s && u(), i = s = a + 1) : l === "]" && (i || I("Access path missing open bracket: " + e), i > 0 && u(), i = 0, s = a + 1);
1655
1662
  }
1656
- return i && L("Access path missing closing bracket: " + e), r && L("Access path missing closing quote: " + e), a > s && (a++, u()), t;
1663
+ return i && I("Access path missing closing bracket: " + e), r && I("Access path missing closing quote: " + e), a > s && (a++, u()), t;
1657
1664
  }
1658
1665
  function Sr(e, t, n) {
1659
1666
  const r = Wi(e);
@@ -1685,7 +1692,7 @@ function Hg(e, t, n = LP) {
1685
1692
  }
1686
1693
  };
1687
1694
  }
1688
- var z = Array.isArray;
1695
+ var B = Array.isArray;
1689
1696
  function Z(e) {
1690
1697
  return e === Object(e);
1691
1698
  }
@@ -1707,7 +1714,7 @@ function Ou(...e) {
1707
1714
  function Lu(e, t, n, r) {
1708
1715
  if (!Zk(t)) return;
1709
1716
  let i, o;
1710
- if (Z(n) && !z(n)) {
1717
+ if (Z(n) && !B(n)) {
1711
1718
  o = Z(e[t]) ? e[t] : e[t] = {};
1712
1719
  for (i in n)
1713
1720
  r && (r === !0 || r[i]) ? Lu(o, i, n[i]) : Zk(i) && (o[i] = n[i]);
@@ -1770,7 +1777,7 @@ function zT(e) {
1770
1777
  return 1 + ~~(new Date(e).getUTCMonth() / 3);
1771
1778
  }
1772
1779
  function Q(e) {
1773
- return e != null ? z(e) ? e : [e] : [];
1780
+ return e != null ? B(e) ? e : [e] : [];
1774
1781
  }
1775
1782
  function BT(e, t, n) {
1776
1783
  let r = e[0], i = e[1], o;
@@ -1804,7 +1811,7 @@ function yv(e, t) {
1804
1811
  n && clearTimeout(n), n = setTimeout(() => (t(r), n = null), e);
1805
1812
  };
1806
1813
  }
1807
- function xe(e) {
1814
+ function we(e) {
1808
1815
  for (let t, n, r = 1, i = arguments.length; r < i; ++r) {
1809
1816
  t = arguments[r];
1810
1817
  for (n in t)
@@ -1908,7 +1915,7 @@ function X(e, t, n) {
1908
1915
  writable: !0,
1909
1916
  enumerable: !0,
1910
1917
  configurable: !0
1911
- }), xe(r, n);
1918
+ }), we(r, n);
1912
1919
  }
1913
1920
  function Dl(e, t, n, r) {
1914
1921
  let i = t[0], o = t[t.length - 1], s;
@@ -2000,7 +2007,7 @@ function Zf(e) {
2000
2007
  return e && Re(e) - e[0] || 0;
2001
2008
  }
2002
2009
  function G(e) {
2003
- return z(e) ? `[${e.map((t) => t === null ? "null" : G(t))}]` : Z(e) || J(e) ? (
2010
+ return B(e) ? `[${e.map((t) => t === null ? "null" : G(t))}]` : Z(e) || J(e) ? (
2004
2011
  // Output valid JSON and JS source strings.
2005
2012
  // See https://github.com/judofyr/timeless/blob/master/posts/json-isnt-a-javascript-subset.md
2006
2013
  JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029")
@@ -2712,8 +2719,8 @@ function l4(e) {
2712
2719
  T = S(R) + T, R = "";
2713
2720
  else {
2714
2721
  R = +R;
2715
- var B = R < 0 || 1 / R < 0;
2716
- if (R = isNaN(R) ? l : S(Math.abs(R), v), w && (R = wz(R)), B && +R == 0 && g !== "+" && (B = !1), F = (B ? g === "(" ? g : a : g === "-" || g === "(" ? "" : g) + F, T = (E === "s" && !isNaN(R) && hp !== void 0 ? sC[8 + hp / 3] : "") + T + (B && g === "(" ? ")" : ""), A) {
2722
+ var z = R < 0 || 1 / R < 0;
2723
+ if (R = isNaN(R) ? l : S(Math.abs(R), v), w && (R = wz(R)), z && +R == 0 && g !== "+" && (z = !1), F = (z ? g === "(" ? g : a : g === "-" || g === "(" ? "" : g) + F, T = (E === "s" && !isNaN(R) && hp !== void 0 ? sC[8 + hp / 3] : "") + T + (z && g === "(" ? ")" : ""), A) {
2717
2724
  for ($ = -1, N = R.length; ++$ < N; )
2718
2725
  if (D = R.charCodeAt($), 48 > D || D > 57) {
2719
2726
  T = (D === 46 ? i + R.slice($ + 1) : R.slice($)) + T, R = R.slice(0, $);
@@ -2722,19 +2729,19 @@ function l4(e) {
2722
2729
  }
2723
2730
  }
2724
2731
  _ && !y && (R = t(R, 1 / 0));
2725
- var I = F.length + R.length + T.length, V = I < b ? new Array(b - I + 1).join(h) : "";
2726
- switch (_ && y && (R = t(V + R, V.length ? b - T.length : 1 / 0), V = ""), p) {
2732
+ var L = F.length + R.length + T.length, Y = L < b ? new Array(b - L + 1).join(h) : "";
2733
+ switch (_ && y && (R = t(Y + R, Y.length ? b - T.length : 1 / 0), Y = ""), p) {
2727
2734
  case "<":
2728
- R = F + R + T + V;
2735
+ R = F + R + T + Y;
2729
2736
  break;
2730
2737
  case "=":
2731
- R = F + V + R + T;
2738
+ R = F + Y + R + T;
2732
2739
  break;
2733
2740
  case "^":
2734
- R = V.slice(0, I = V.length >> 1) + F + R + T + V.slice(I);
2741
+ R = Y.slice(0, L = Y.length >> 1) + F + R + T + Y.slice(L);
2735
2742
  break;
2736
2743
  default:
2737
- R = V + F + R + T;
2744
+ R = Y + F + R + T;
2738
2745
  break;
2739
2746
  }
2740
2747
  return o(R);
@@ -2962,9 +2969,9 @@ function h4(e, t, n, r, i, o) {
2962
2969
  const [Rz, Dz] = h4(Ii, vf, Uu, d4, Jg, Kg), [Oz, Lz] = h4(Li, _f, Bu, xo, Zg, Xg), en = "year", qn = "quarter", pn = "month", Nt = "week", Wn = "date", un = "day", Pi = "dayofyear", fr = "hours", dr = "minutes", Ar = "seconds", ti = "milliseconds", Sv = [en, qn, pn, Nt, Wn, un, Pi, fr, dr, Ar, ti], s1 = Sv.reduce((e, t, n) => (e[t] = 1 + n, e), {});
2963
2970
  function $v(e) {
2964
2971
  const t = Q(e).slice(), n = {};
2965
- return t.length || L("Missing time unit."), t.forEach((i) => {
2966
- ee(s1, i) ? n[i] = 1 : L(`Invalid time unit: ${i}.`);
2967
- }), (n[Nt] || n[un] ? 1 : 0) + (n[qn] || n[pn] || n[Wn] ? 1 : 0) + (n[Pi] ? 1 : 0) > 1 && L(`Incompatible time units: ${e}`), t.sort((i, o) => s1[i] - s1[o]), t;
2972
+ return t.length || I("Missing time unit."), t.forEach((i) => {
2973
+ ee(s1, i) ? n[i] = 1 : I(`Invalid time unit: ${i}.`);
2974
+ }), (n[Nt] || n[un] ? 1 : 0) + (n[qn] || n[pn] || n[Wn] ? 1 : 0) + (n[Pi] ? 1 : 0) > 1 && I(`Incompatible time units: ${e}`), t.sort((i, o) => s1[i] - s1[o]), t;
2968
2975
  }
2969
2976
  const Iz = {
2970
2977
  [en]: "%Y ",
@@ -2983,7 +2990,7 @@ const Iz = {
2983
2990
  [`${fr}-${dr}`]: "%H:%M"
2984
2991
  };
2985
2992
  function p4(e, t) {
2986
- const n = xe({}, Iz, t), r = $v(e), i = r.length;
2993
+ const n = we({}, Iz, t), r = $v(e), i = r.length;
2987
2994
  let o = "", s = 0, a, l;
2988
2995
  for (s = 0; s < i; )
2989
2996
  for (a = r.length; a > s; --a)
@@ -3176,9 +3183,9 @@ function dc(e, t, n) {
3176
3183
  function R4(e) {
3177
3184
  var t = e.dateTime, n = e.date, r = e.time, i = e.periods, o = e.days, s = e.shortDays, a = e.months, l = e.shortMonths, u = hc(i), c = pc(i), f = hc(o), d = pc(o), h = hc(s), p = pc(s), g = hc(a), m = pc(a), y = hc(l), b = pc(l), _ = {
3178
3185
  a: D,
3179
- A: B,
3180
- b: I,
3181
- B: V,
3186
+ A: z,
3187
+ b: L,
3188
+ B: Y,
3182
3189
  c: null,
3183
3190
  d: gC,
3184
3191
  e: gC,
@@ -3191,8 +3198,8 @@ function R4(e) {
3191
3198
  L: D4,
3192
3199
  m: _B,
3193
3200
  M: vB,
3194
- p: ue,
3195
- q: oe,
3201
+ p: oe,
3202
+ q: se,
3196
3203
  Q: bC,
3197
3204
  s: _C,
3198
3205
  S: xB,
@@ -3338,19 +3345,19 @@ function R4(e) {
3338
3345
  function D(ne) {
3339
3346
  return s[ne.getDay()];
3340
3347
  }
3341
- function B(ne) {
3348
+ function z(ne) {
3342
3349
  return o[ne.getDay()];
3343
3350
  }
3344
- function I(ne) {
3351
+ function L(ne) {
3345
3352
  return l[ne.getMonth()];
3346
3353
  }
3347
- function V(ne) {
3354
+ function Y(ne) {
3348
3355
  return a[ne.getMonth()];
3349
3356
  }
3350
- function ue(ne) {
3357
+ function oe(ne) {
3351
3358
  return i[+(ne.getHours() >= 12)];
3352
3359
  }
3353
- function oe(ne) {
3360
+ function se(ne) {
3354
3361
  return 1 + ~~(ne.getMonth() / 3);
3355
3362
  }
3356
3363
  function ye(ne) {
@@ -3731,7 +3738,7 @@ function mp(e) {
3731
3738
  return arguments.length ? tb = j4(e) : tb;
3732
3739
  }
3733
3740
  function vC(e, t, n) {
3734
- n = n || {}, Z(n) || L(`Invalid time multi-format specifier: ${n}`);
3741
+ n = n || {}, Z(n) || I(`Invalid time multi-format specifier: ${n}`);
3735
3742
  const r = t(Ar), i = t(dr), o = t(fr), s = t(Wn), a = t(Nt), l = t(pn), u = t(qn), c = t(en), f = e(n[ti] || ".%L"), d = e(n[Ar] || ":%S"), h = e(n[dr] || "%I:%M"), p = e(n[fr] || "%I %p"), g = e(n[Wn] || n[un] || "%a %d"), m = e(n[Nt] || "%b %d"), y = e(n[pn] || "%B"), b = e(n[qn] || "%B"), _ = e(n[en] || "%Y");
3736
3743
  return (v) => (r(v) < v ? f : i(v) < v ? d : o(v) < v ? h : s(v) < v ? p : l(v) < v ? a(v) < v ? g : m : c(v) < v ? u(v) < v ? y : b : _)(v);
3737
3744
  }
@@ -3760,14 +3767,14 @@ function H4(e) {
3760
3767
  function xf(e) {
3761
3768
  return arguments.length ? nb = H4(e) : nb;
3762
3769
  }
3763
- const rb = (e, t) => xe({}, e, t);
3770
+ const rb = (e, t) => we({}, e, t);
3764
3771
  function G4(e, t) {
3765
3772
  const n = e ? j4(e) : mp(), r = t ? H4(t) : xf();
3766
3773
  return rb(n, r);
3767
3774
  }
3768
3775
  function Nv(e, t) {
3769
3776
  const n = arguments.length;
3770
- return n && n !== 2 && L("defaultLocale expects either zero or two arguments."), n ? rb(mp(e), xf(t)) : rb(mp(), xf());
3777
+ return n && n !== 2 && I("defaultLocale expects either zero or two arguments."), n ? rb(mp(e), xf(t)) : rb(mp(), xf());
3771
3778
  }
3772
3779
  function JB() {
3773
3780
  return U4(), W4(), Nv();
@@ -3788,13 +3795,13 @@ async function rU(e, t) {
3788
3795
  return n.localFile ? this.file(r) : this.http(r, t?.http);
3789
3796
  }
3790
3797
  async function iU(e, t) {
3791
- t = xe({}, this.options, t);
3798
+ t = we({}, this.options, t);
3792
3799
  const n = this.fileAccess, r = {
3793
3800
  href: null
3794
3801
  };
3795
3802
  let i, o, s;
3796
3803
  const a = eU.test(e.replace(tU, ""));
3797
- (e == null || typeof e != "string" || !a) && L("Sanitize failure, invalid URI: " + G(e));
3804
+ (e == null || typeof e != "string" || !a) && I("Sanitize failure, invalid URI: " + G(e));
3798
3805
  const l = QB.test(e);
3799
3806
  return (s = t.baseURL) && !l && (!e.startsWith("/") && !s.endsWith("/") && (e = "/" + e), e = s + e), o = (i = e.startsWith(xC)) || t.mode === "file" || t.mode !== "http" && !l && n, i ? e = e.slice(xC.length) : e.startsWith("//") && (t.defaultProtocol === "file" ? (e = e.slice(2), o = !0) : e = (t.defaultProtocol || "http") + ":" + e), Object.defineProperty(r, "localFile", {
3800
3807
  value: !!o
@@ -3804,11 +3811,11 @@ function oU(e) {
3804
3811
  return sU;
3805
3812
  }
3806
3813
  async function sU() {
3807
- L("No file system access.");
3814
+ I("No file system access.");
3808
3815
  }
3809
3816
  async function aU(e, t) {
3810
- const n = xe({}, this.options.http, t), r = t && t.response, i = await fetch(e, n);
3811
- return i.ok ? ve(i[r]) ? i[r]() : i.text() : L(i.status + "" + i.statusText);
3817
+ const n = we({}, this.options.http, t), r = t && t.response, i = await fetch(e, n);
3818
+ return i.ok ? ve(i[r]) ? i[r]() : i.text() : I(i.status + "" + i.statusText);
3812
3819
  }
3813
3820
  const lU = (e) => e != null && e === e, uU = (e) => e === "true" || e === "false" || e === !0 || e === !1, cU = (e) => !Number.isNaN(Date.parse(e)), V4 = (e) => !Number.isNaN(+e) && !(e instanceof Date), fU = (e) => V4(e) && Number.isInteger(+e), ib = {
3814
3821
  boolean: vv,
@@ -3835,7 +3842,7 @@ function wC(e) {
3835
3842
  const i = {
3836
3843
  delimiter: e
3837
3844
  };
3838
- return Fv(n, r ? xe(r, i) : i);
3845
+ return Fv(n, r ? we(r, i) : i);
3839
3846
  };
3840
3847
  return t.responseType = "text", t;
3841
3848
  }
@@ -3853,7 +3860,7 @@ function Rv(e, t) {
3853
3860
  }
3854
3861
  Rv.responseType = "json";
3855
3862
  function pU(e, t) {
3856
- return !z(e) && qT(e) && (e = [...e]), t && t.copy ? JSON.parse(JSON.stringify(e)) : e;
3863
+ return !B(e) && qT(e) && (e = [...e]), t && t.copy ? JSON.parse(JSON.stringify(e)) : e;
3857
3864
  }
3858
3865
  const gU = {
3859
3866
  interior: (e, t) => e !== t,
@@ -3861,7 +3868,7 @@ const gU = {
3861
3868
  };
3862
3869
  function K4(e, t) {
3863
3870
  let n, r, i, o;
3864
- return e = Rv(e, t), t && t.feature ? (n = ZP, i = t.feature) : t && t.mesh ? (n = QP, i = t.mesh, o = gU[t.filter]) : L("Missing TopoJSON feature or mesh parameter."), r = (r = e.objects[i]) ? n(e, r, o) : L("Invalid TopoJSON object: " + i), r && r.features || [r];
3871
+ return e = Rv(e, t), t && t.feature ? (n = ZP, i = t.feature) : t && t.mesh ? (n = QP, i = t.mesh, o = gU[t.filter]) : I("Missing TopoJSON feature or mesh parameter."), r = (r = e.objects[i]) ? n(e, r, o) : I("Invalid TopoJSON object: " + i), r && r.features || [r];
3865
3872
  }
3866
3873
  K4.responseType = "json";
3867
3874
  const Oh = {
@@ -3881,7 +3888,7 @@ function Z4(e) {
3881
3888
  function J4(e, t, n, r) {
3882
3889
  t = t || {};
3883
3890
  const i = Dv(t.type || "json");
3884
- return i || L("Unknown data format type: " + t.type), e = i(e, t), t.parse && mU(e, t.parse, n, r), ee(e, "columns") && delete e.columns, e;
3891
+ return i || I("Unknown data format type: " + t.type), e = i(e, t), t.parse && mU(e, t.parse, n, r), ee(e, "columns") && delete e.columns, e;
3885
3892
  }
3886
3893
  function mU(e, t, n, r) {
3887
3894
  if (!e.length) return;
@@ -3928,9 +3935,9 @@ async function Lh(e, t) {
3928
3935
  const Q4 = /* @__PURE__ */ Symbol("vega_id");
3929
3936
  let yU = 1;
3930
3937
  function nm(e) {
3931
- return !!(e && ae(e));
3938
+ return !!(e && le(e));
3932
3939
  }
3933
- function ae(e) {
3940
+ function le(e) {
3934
3941
  return e[Q4];
3935
3942
  }
3936
3943
  function e5(e, t) {
@@ -3940,7 +3947,7 @@ function je(e) {
3940
3947
  const t = e === Object(e) ? e : {
3941
3948
  data: e
3942
3949
  };
3943
- return ae(t) ? t : e5(t, yU++);
3950
+ return le(t) ? t : e5(t, yU++);
3944
3951
  }
3945
3952
  function Ov(e) {
3946
3953
  return rm(e, je({}));
@@ -3950,10 +3957,10 @@ function rm(e, t) {
3950
3957
  return t;
3951
3958
  }
3952
3959
  function t5(e, t) {
3953
- return e5(t, ae(e));
3960
+ return e5(t, le(e));
3954
3961
  }
3955
3962
  function tl(e, t) {
3956
- return e ? t ? (n, r) => e(n, r) || ae(t(n)) - ae(t(r)) : (n, r) => e(n, r) || ae(n) - ae(r) : null;
3963
+ return e ? t ? (n, r) => e(n, r) || le(t(n)) - le(t(r)) : (n, r) => e(n, r) || le(n) - le(r) : null;
3957
3964
  }
3958
3965
  function n5(e) {
3959
3966
  return e && e.constructor === nl;
@@ -3999,28 +4006,28 @@ function nl() {
3999
4006
  const u = {}, c = {};
4000
4007
  let f, d, h, p, g, m;
4001
4008
  for (f = 0, d = l.length; f < d; ++f)
4002
- u[ae(l[f])] = 1;
4009
+ u[le(l[f])] = 1;
4003
4010
  for (f = 0, d = t.length; f < d; ++f)
4004
- g = t[f], u[ae(g)] = -1;
4011
+ g = t[f], u[le(g)] = -1;
4005
4012
  for (f = 0, d = r.length; f < d; ++f)
4006
4013
  p = r[f], l.forEach((b) => {
4007
- p(b) && (u[ae(b)] = -1);
4014
+ p(b) && (u[le(b)] = -1);
4008
4015
  });
4009
4016
  for (f = 0, d = e.length; f < d; ++f)
4010
- g = e[f], m = ae(g), u[m] ? u[m] = 1 : a.add.push(je(e[f]));
4017
+ g = e[f], m = le(g), u[m] ? u[m] = 1 : a.add.push(je(e[f]));
4011
4018
  for (f = 0, d = l.length; f < d; ++f)
4012
- g = l[f], u[ae(g)] < 0 && a.rem.push(g);
4019
+ g = l[f], u[le(g)] < 0 && a.rem.push(g);
4013
4020
  function y(b, _, v) {
4014
- v ? b[_] = v(b) : a.encode = _, s || (c[ae(b)] = b);
4021
+ v ? b[_] = v(b) : a.encode = _, s || (c[le(b)] = b);
4015
4022
  }
4016
4023
  for (f = 0, d = n.length; f < d; ++f)
4017
- h = n[f], g = h.tuple, p = h.field, m = u[ae(g)], m > 0 && (y(g, p, h.value), a.modifies(p));
4024
+ h = n[f], g = h.tuple, p = h.field, m = u[le(g)], m > 0 && (y(g, p, h.value), a.modifies(p));
4018
4025
  for (f = 0, d = i.length; f < d; ++f)
4019
4026
  h = i[f], p = h.filter, l.forEach((b) => {
4020
- p(b) && u[ae(b)] > 0 && y(b, h.field, h.value);
4027
+ p(b) && u[le(b)] > 0 && y(b, h.field, h.value);
4021
4028
  }), a.modifies(h.field);
4022
4029
  if (s)
4023
- a.mod = t.length || r.length ? l.filter((b) => u[ae(b)] > 0) : l.slice();
4030
+ a.mod = t.length || r.length ? l.filter((b) => u[le(b)] > 0) : l.slice();
4024
4031
  else
4025
4032
  for (m in c) a.mod.push(c[m]);
4026
4033
  return (o || o == null && (t.length || r.length)) && a.clean(!0), a;
@@ -4048,7 +4055,7 @@ im.prototype = {
4048
4055
  */
4049
4056
  set(e, t, n, r) {
4050
4057
  const i = this, o = i[e], s = i[Ih];
4051
- return t != null && t >= 0 ? (o[t] !== n || r) && (o[t] = n, s[t + ":" + e] = -1, s[e] = -1) : (o !== n || r) && (i[e] = n, s[e] = z(n) ? 1 + n.length : -1), i;
4058
+ return t != null && t >= 0 ? (o[t] !== n || r) && (o[t] = n, s[t + ":" + e] = -1, s[e] = -1) : (o !== n || r) && (i[e] = n, s[e] = B(n) ? 1 + n.length : -1), i;
4052
4059
  },
4053
4060
  /**
4054
4061
  * Tests if one or more parameters has been modified. If invoked with no
@@ -4063,7 +4070,7 @@ im.prototype = {
4063
4070
  modified(e, t) {
4064
4071
  const n = this[Ih];
4065
4072
  if (arguments.length) {
4066
- if (z(e)) {
4073
+ if (B(e)) {
4067
4074
  for (let r = 0; r < e.length; ++r)
4068
4075
  if (n[e[r]]) return !0;
4069
4076
  return !1;
@@ -4159,9 +4166,9 @@ Qe.prototype = {
4159
4166
  for (s in e)
4160
4167
  if (a = e[s], s === _U)
4161
4168
  Q(a).forEach((f) => {
4162
- f instanceof Qe ? f !== this && (f.targets().add(this), o.push(f)) : L("Pulse parameters must be operator instances.");
4169
+ f instanceof Qe ? f !== this && (f.targets().add(this), o.push(f)) : I("Pulse parameters must be operator instances.");
4163
4170
  }), this.source = a;
4164
- else if (z(a))
4171
+ else if (B(a))
4165
4172
  for (r.set(s, -1, Array(l = a.length)), u = 0; u < l; ++u) c(s, u, a[u]);
4166
4173
  else
4167
4174
  c(s, -1, a);
@@ -4373,7 +4380,7 @@ function RU(e, t, n, r, i) {
4373
4380
  return (e instanceof Qe ? OU : DU)(this, e, t, n, r, i), this;
4374
4381
  }
4375
4382
  function DU(e, t, n, r, i, o) {
4376
- const s = xe({}, o, FU);
4383
+ const s = we({}, o, FU);
4377
4384
  let a, l;
4378
4385
  ve(n) || (n = bn(n)), r === void 0 ? a = (u) => e.touch(n(u)) : ve(r) ? (l = new Qe(null, r, i, !1), a = (u) => {
4379
4386
  l.evaluate(u);
@@ -4404,7 +4411,7 @@ function PU(e) {
4404
4411
  for (; t.length; )
4405
4412
  if (this.rank(n = t.pop()), r = n._targets)
4406
4413
  for (i = r.length; --i >= 0; )
4407
- t.push(n = r[i]), n === e && L("Cycle detected in dataflow graph.");
4414
+ t.push(n = r[i]), n === e && I("Cycle detected in dataflow graph.");
4408
4415
  }
4409
4416
  const yp = {}, xi = 1, Xo = 2, lo = 4, zU = xi | Xo, kC = xi | lo, _l = xi | Xo | lo, CC = 8, gc = 16, SC = 32, $C = 64;
4410
4417
  function fs(e, t, n) {
@@ -4417,8 +4424,8 @@ function u1(e, t) {
4417
4424
  function AC(e, t) {
4418
4425
  const n = {};
4419
4426
  return e.visit(t, (r) => {
4420
- n[ae(r)] = 1;
4421
- }), (r) => n[ae(r)] ? null : r;
4427
+ n[le(r)] = 1;
4428
+ }), (r) => n[le(r)] ? null : r;
4422
4429
  }
4423
4430
  function Xd(e, t) {
4424
4431
  return e ? (n, r) => e(n, r) && t(n, r) : t;
@@ -4573,7 +4580,7 @@ fs.prototype = {
4573
4580
  */
4574
4581
  modifies(e) {
4575
4582
  const t = this.fields || (this.fields = {});
4576
- return z(e) ? e.forEach((n) => t[n] = !0) : t[e] = !0, this;
4583
+ return B(e) ? e.forEach((n) => t[n] = !0) : t[e] = !0, this;
4577
4584
  },
4578
4585
  /**
4579
4586
  * Checks if one or more data fields have been modified during this pulse
@@ -4586,7 +4593,7 @@ fs.prototype = {
4586
4593
  */
4587
4594
  modified(e, t) {
4588
4595
  const n = this.fields;
4589
- return (t || this.mod.length) && n ? arguments.length ? z(e) ? e.some((r) => n[r]) : n[e] : !!n : !1;
4596
+ return (t || this.mod.length) && n ? arguments.length ? B(e) ? e.some((r) => n[r]) : n[e] : !!n : !1;
4590
4597
  },
4591
4598
  /**
4592
4599
  * Adds a filter function to one more tuple sets. Filters are applied to
@@ -4670,13 +4677,13 @@ X(Lv, fs, {
4670
4677
  },
4671
4678
  modified(e) {
4672
4679
  const t = this, n = t.fields;
4673
- return n && t.changes & t.MOD ? z(e) ? e.some((r) => n[r]) : n[e] : 0;
4680
+ return n && t.changes & t.MOD ? B(e) ? e.some((r) => n[r]) : n[e] : 0;
4674
4681
  },
4675
4682
  filter() {
4676
- L("MultiPulse does not support filtering.");
4683
+ I("MultiPulse does not support filtering.");
4677
4684
  },
4678
4685
  materialize() {
4679
- L("MultiPulse does not support materialization.");
4686
+ I("MultiPulse does not support materialization.");
4680
4687
  },
4681
4688
  visit(e, t) {
4682
4689
  const n = this, r = n.pulses, i = r.length;
@@ -4755,7 +4762,7 @@ function WU(e, t) {
4755
4762
  }
4756
4763
  function HU(e, t) {
4757
4764
  const n = e.source, r = this._clock;
4758
- return n && z(n) ? new Lv(this, r, n.map((i) => i.pulse), t) : this._input[e.id] || GU(this._pulse, n && n.pulse);
4765
+ return n && B(n) ? new Lv(this, r, n.map((i) => i.pulse), t) : this._input[e.id] || GU(this._pulse, n && n.pulse);
4759
4766
  }
4760
4767
  function GU(e, t) {
4761
4768
  return t && t.stamp === e.stamp ? t : (e = e.fork(), t && t !== yp && (e.source = t.source), e);
@@ -5713,7 +5720,7 @@ const c1 = () => {
5713
5720
  }
5714
5721
  }, ed = Object.keys(wf).filter((e) => e !== "__count__");
5715
5722
  function pj(e, t) {
5716
- return (n, r) => xe({
5723
+ return (n, r) => we({
5717
5724
  name: e,
5718
5725
  aggregate_param: r,
5719
5726
  out: n || e
@@ -5766,7 +5773,7 @@ function E5(e, t) {
5766
5773
  return o.prototype.init = mj, o.prototype.add = yj, o.prototype.rem = bj, o.prototype.set = _j, o.prototype.get = n, o.fields = e.map((s) => s.out), o;
5767
5774
  }
5768
5775
  function tx(e) {
5769
- this._key = e ? Sr(e) : ae, this.reset();
5776
+ this._key = e ? Sr(e) : le, this.reset();
5770
5777
  }
5771
5778
  const nn = tx.prototype;
5772
5779
  nn.reset = function() {
@@ -5920,8 +5927,8 @@ X(ys, O, {
5920
5927
  }), this.cellkey = e.key ? e.key : ob(this._dims), this._countOnly = !0, this._counts = [], this._measures = [];
5921
5928
  const o = e.fields || [null], s = e.ops || ["count"], a = e.aggregate_params || [null], l = e.as || [], u = o.length, c = {};
5922
5929
  let f, d, h, p, g, m, y;
5923
- for (u !== s.length && L("Unmatched number of fields and aggregate ops."), y = 0; y < u; ++y) {
5924
- if (f = o[y], d = s[y], h = a[y] || null, f == null && d !== "count" && L("Null aggregate field specified."), g = mt(f), m = v5(d, g, l[y]), n.push(m), d === "count") {
5930
+ for (u !== s.length && I("Unmatched number of fields and aggregate ops."), y = 0; y < u; ++y) {
5931
+ if (f = o[y], d = s[y], h = a[y] || null, f == null && d !== "count" && I("Null aggregate field specified."), g = mt(f), m = v5(d, g, l[y]), n.push(m), d === "count") {
5925
5932
  this._counts.push(m);
5926
5933
  continue;
5927
5934
  }
@@ -6119,7 +6126,7 @@ rx.Definition = {
6119
6126
  };
6120
6127
  X(rx, O, {
6121
6128
  transform(e, t) {
6122
- const n = t.fork(t.ALL), r = k5(ae, this.value, n.materialize(n.ADD).add), i = e.sort, o = t.changed() || i && (e.modified("sort") || t.modified(i.fields));
6129
+ const n = t.fork(t.ALL), r = k5(le, this.value, n.materialize(n.ADD).add), i = e.sort, o = t.changed() || i && (e.modified("sort") || t.modified(i.fields));
6123
6130
  return n.visit(n.REM, r.remove), this.modified(o), this.value = n.source = r.data(tl(i), o), t.source && t.source.root && (this.value.root = t.source.root), n;
6124
6131
  }
6125
6132
  });
@@ -6236,7 +6243,7 @@ const NC = {
6236
6243
  }, kj = "distributions", FC = "function", Cj = "field";
6237
6244
  function S5(e, t) {
6238
6245
  const n = e[FC];
6239
- ee(NC, n) || L("Unknown distribution function: " + n);
6246
+ ee(NC, n) || I("Unknown distribution function: " + n);
6240
6247
  const r = NC[n]();
6241
6248
  for (const i in e)
6242
6249
  i === Cj ? r.data((e.from || t()).map(e[i])) : i === kj ? r[i](e[i].map((o) => S5(o, t))) : typeof r[i] === FC && r[i](e[i]);
@@ -6358,7 +6365,7 @@ X(sx, O, {
6358
6365
  if (!this.value || t.changed() || e.modified()) {
6359
6366
  const r = S5(e.distribution, $j(t)), i = e.steps || e.minsteps || 25, o = e.steps || e.maxsteps || 200;
6360
6367
  let s = e.method || "pdf";
6361
- s !== "pdf" && s !== "cdf" && L("Invalid density method: " + s), !e.extent && !r.data && L("Missing density extent parameter."), s = r[s];
6368
+ s !== "pdf" && s !== "cdf" && I("Invalid density method: " + s), !e.extent && !r.data && I("Missing density extent parameter."), s = r[s];
6362
6369
  const a = e.as || ["value", "density"], l = e.extent || Oi(r.data()), u = cm(s, l, i, o).map((c) => {
6363
6370
  const f = {};
6364
6371
  return f[a[0]] = c[0], f[a[1]] = c[1], je(f);
@@ -6560,18 +6567,18 @@ X(fm, O, {
6560
6567
  transform(e, t) {
6561
6568
  const n = t.dataflow, r = e.key, i = e.subflow, o = this._keys, s = e.modified("key"), a = (l) => this.subflow(l, i, t);
6562
6569
  return this._group = e.group || {}, this.initTargets(), t.visit(t.REM, (l) => {
6563
- const u = ae(l), c = o.get(u);
6570
+ const u = le(l), c = o.get(u);
6564
6571
  c !== void 0 && (o.delete(u), a(c).rem(l));
6565
6572
  }), t.visit(t.ADD, (l) => {
6566
6573
  const u = r(l);
6567
- o.set(ae(l), u), a(u).add(l);
6574
+ o.set(le(l), u), a(u).add(l);
6568
6575
  }), s || t.modified(r.fields) ? t.visit(t.MOD, (l) => {
6569
- const u = ae(l), c = o.get(u), f = r(l);
6576
+ const u = le(l), c = o.get(u), f = r(l);
6570
6577
  c === f ? a(f).mod(l) : (o.set(u, f), a(c).rem(l), a(f).add(l));
6571
6578
  }) : t.changed(t.MOD) && t.visit(t.MOD, (l) => {
6572
- a(o.get(ae(l))).mod(l);
6579
+ a(o.get(le(l))).mod(l);
6573
6580
  }), s && t.visit(t.REFLOW, (l) => {
6574
- const u = ae(l), c = o.get(u), f = r(l);
6581
+ const u = le(l), c = o.get(u), f = r(l);
6575
6582
  c !== f && (o.set(u, f), a(c).rem(l), a(f).add(l));
6576
6583
  }), t.clean() ? n.runAfter(() => {
6577
6584
  this.clean(), o.clean();
@@ -6583,7 +6590,7 @@ function N5(e) {
6583
6590
  }
6584
6591
  X(N5, Qe);
6585
6592
  function Tj(e) {
6586
- return this.value && !e.modified() ? this.value : z(e.name) ? Q(e.name).map((t) => Sr(t)) : Sr(e.name, e.as);
6593
+ return this.value && !e.modified() ? this.value : B(e.name) ? Q(e.name).map((t) => Sr(t)) : Sr(e.name, e.as);
6587
6594
  }
6588
6595
  function fx(e) {
6589
6596
  O.call(this, Pu(), e);
@@ -6604,13 +6611,13 @@ X(fx, O, {
6604
6611
  const n = t.dataflow, r = this.value, i = t.fork(), o = i.add, s = i.rem, a = i.mod, l = e.expr;
6605
6612
  let u = !0;
6606
6613
  t.visit(t.REM, (f) => {
6607
- const d = ae(f);
6614
+ const d = le(f);
6608
6615
  r.has(d) ? r.delete(d) : s.push(f);
6609
6616
  }), t.visit(t.ADD, (f) => {
6610
- l(f, e) ? o.push(f) : r.set(ae(f), 1);
6617
+ l(f, e) ? o.push(f) : r.set(le(f), 1);
6611
6618
  });
6612
6619
  function c(f) {
6613
- const d = ae(f), h = l(f, e), p = r.get(d);
6620
+ const d = le(f), h = l(f, e), p = r.get(d);
6614
6621
  h && p ? (r.delete(d), o.push(f)) : !h && !p ? (r.set(d, 1), s.push(f)) : u && h && !p && a.push(f);
6615
6622
  }
6616
6623
  return t.visit(t.MOD, c), e.modified() && (u = !1, t.visit(t.REFLOW, c)), r.empty > n.cleanThreshold && n.runAfter(r.clean), i;
@@ -6768,7 +6775,7 @@ gx.Definition = {
6768
6775
  function Fj(e) {
6769
6776
  var t = e.method || Kd.value, n;
6770
6777
  if (Kd[t] == null)
6771
- L("Unrecognized imputation method: " + t);
6778
+ I("Unrecognized imputation method: " + t);
6772
6779
  else return t === Kd.value ? (n = e.value !== void 0 ? e.value : 0, () => n) : Kd[t];
6773
6780
  }
6774
6781
  function Rj(e) {
@@ -6832,7 +6839,7 @@ X(mx, ys, {
6832
6839
  const n = this, r = e.modified();
6833
6840
  let i;
6834
6841
  return n.value && (r || t.modified(n._inputs, !0)) ? (i = n.value = r ? n.init(e) : {}, t.visit(t.SOURCE, (o) => n.add(o))) : (i = n.value = n.value || this.init(e), t.visit(t.REM, (o) => n.rem(o)), t.visit(t.ADD, (o) => n.add(o))), n.changes(), t.visit(t.SOURCE, (o) => {
6835
- xe(o, i[n.cellkey(o)].tuple);
6842
+ we(o, i[n.cellkey(o)].tuple);
6836
6843
  }), t.reflow(r).modifies(this._outputs);
6837
6844
  },
6838
6845
  changes() {
@@ -6907,7 +6914,7 @@ X(yx, O, {
6907
6914
  if (!this.value || t.changed() || e.modified()) {
6908
6915
  const r = t.materialize(t.SOURCE).source, i = ax(r, e.groupby, e.field), o = (e.groupby || []).map(mt), s = e.bandwidth, a = e.cumulative ? "cdf" : "pdf", l = e.as || ["value", "density"], u = [];
6909
6916
  let c = e.extent, f = e.steps || e.minsteps || 25, d = e.steps || e.maxsteps || 200;
6910
- a !== "pdf" && a !== "cdf" && L("Invalid density method: " + a), e.resolve === "shared" && (c || (c = Oi(r, e.field)), f = d = e.steps || d), i.forEach((h) => {
6917
+ a !== "pdf" && a !== "cdf" && I("Invalid density method: " + a), e.resolve === "shared" && (c || (c = Oi(r, e.field)), f = d = e.steps || d), i.forEach((h) => {
6911
6918
  const p = qv(h, s)[a], g = e.counts ? h.length : 1, m = c || Oi(h);
6912
6919
  cm(p, m, f, d).forEach((y) => {
6913
6920
  const b = {};
@@ -6988,11 +6995,11 @@ X(bx, O, {
6988
6995
  transform(e, t) {
6989
6996
  const n = e.fields, r = e.index, i = e.values, o = e.default == null ? null : e.default, s = e.modified(), a = n.length;
6990
6997
  let l = s ? t.SOURCE : t.ADD, u = t, c = e.as, f, d, h;
6991
- return i ? (d = i.length, a > 1 && !c && L('Multi-field lookup requires explicit "as" parameter.'), c && c.length !== a * d && L('The "as" parameter has too few output field names.'), c = c || i.map(mt), f = function(p) {
6998
+ return i ? (d = i.length, a > 1 && !c && I('Multi-field lookup requires explicit "as" parameter.'), c && c.length !== a * d && I('The "as" parameter has too few output field names.'), c = c || i.map(mt), f = function(p) {
6992
6999
  for (var g = 0, m = 0, y, b; g < a; ++g)
6993
7000
  if (b = r.get(n[g](p)), b == null) for (y = 0; y < d; ++y, ++m) p[c[m]] = o;
6994
7001
  else for (y = 0; y < d; ++y, ++m) p[c[m]] = i[y](b);
6995
- }) : (c || L("Missing output field names."), f = function(p) {
7002
+ }) : (c || I("Missing output field names."), f = function(p) {
6996
7003
  for (var g = 0, m; g < a; ++g)
6997
7004
  m = r.get(n[g](p)), p[c[g]] = m ?? o;
6998
7005
  }), s ? u = t.reflow(!0) : (h = n.some((p) => t.modified(p.fields)), l |= h ? t.MOD : 0), t.visit(l, f), u.modifies(c);
@@ -7093,8 +7100,8 @@ function P5(e) {
7093
7100
  }
7094
7101
  X(P5, fm, {
7095
7102
  transform(e, t) {
7096
- const n = e.subflow, r = e.field, i = (o) => this.subflow(ae(o), n, t, o);
7097
- return (e.modified("field") || r && t.modified(hn(r))) && L("PreFacet does not support field modification."), this.initTargets(), r ? (t.visit(t.MOD, (o) => {
7103
+ const n = e.subflow, r = e.field, i = (o) => this.subflow(le(o), n, t, o);
7104
+ return (e.modified("field") || r && t.modified(hn(r))) && I("PreFacet does not support field modification."), this.initTargets(), r ? (t.visit(t.MOD, (o) => {
7098
7105
  const s = i(o);
7099
7106
  r(o).forEach((a) => s.mod(a));
7100
7107
  }), t.visit(t.ADD, (o) => {
@@ -7131,13 +7138,13 @@ X(vx, O, {
7131
7138
  const n = t.fork(t.NO_SOURCE), r = e.fields, i = A5(e.fields, e.as || []), o = r ? (a, l) => jj(a, l, r, i) : rm;
7132
7139
  let s;
7133
7140
  return this.value ? s = this.value : (t = t.addAll(), s = this.value = {}), t.visit(t.REM, (a) => {
7134
- const l = ae(a);
7141
+ const l = le(a);
7135
7142
  n.rem.push(s[l]), s[l] = null;
7136
7143
  }), t.visit(t.ADD, (a) => {
7137
7144
  const l = o(a, je({}));
7138
- s[ae(a)] = l, n.add.push(l);
7145
+ s[le(a)] = l, n.add.push(l);
7139
7146
  }), t.visit(t.MOD, (a) => {
7140
- n.mod.push(o(a, s[ae(a)]));
7147
+ n.mod.push(o(a, s[le(a)]));
7141
7148
  }), n;
7142
7149
  }
7143
7150
  });
@@ -7211,13 +7218,13 @@ X(B5, O, {
7211
7218
  transform(e, t) {
7212
7219
  let n, r;
7213
7220
  return this.value ? r = this.value : (n = t = t.addAll(), r = this.value = {}), e.derive && (n = t.fork(t.NO_SOURCE), t.visit(t.REM, (i) => {
7214
- const o = ae(i);
7221
+ const o = le(i);
7215
7222
  n.rem.push(r[o]), r[o] = null;
7216
7223
  }), t.visit(t.ADD, (i) => {
7217
7224
  const o = Ov(i);
7218
- r[ae(i)] = o, n.add.push(o);
7225
+ r[le(i)] = o, n.add.push(o);
7219
7226
  }), t.visit(t.MOD, (i) => {
7220
- const o = r[ae(i)];
7227
+ const o = r[le(i)];
7221
7228
  for (const s in i)
7222
7229
  o[s] = i[s], n.modifies(s);
7223
7230
  n.mod.push(o);
@@ -7238,26 +7245,26 @@ wx.Definition = {
7238
7245
  };
7239
7246
  X(wx, O, {
7240
7247
  transform(e, t) {
7241
- const n = t.fork(t.NO_SOURCE), r = e.modified("size"), i = e.size, o = this.value.reduce((c, f) => (c[ae(f)] = 1, c), {});
7248
+ const n = t.fork(t.NO_SOURCE), r = e.modified("size"), i = e.size, o = this.value.reduce((c, f) => (c[le(f)] = 1, c), {});
7242
7249
  let s = this.value, a = this.count, l = 0;
7243
7250
  function u(c) {
7244
7251
  let f, d;
7245
- s.length < i ? s.push(c) : (d = ~~((a + 1) * Mr()), d < s.length && d >= l && (f = s[d], o[ae(f)] && n.rem.push(f), s[d] = c)), ++a;
7252
+ s.length < i ? s.push(c) : (d = ~~((a + 1) * Mr()), d < s.length && d >= l && (f = s[d], o[le(f)] && n.rem.push(f), s[d] = c)), ++a;
7246
7253
  }
7247
7254
  if (t.rem.length && (t.visit(t.REM, (c) => {
7248
- const f = ae(c);
7255
+ const f = le(c);
7249
7256
  o[f] && (o[f] = -1, n.rem.push(c)), --a;
7250
- }), s = s.filter((c) => o[ae(c)] !== -1)), (t.rem.length || r) && s.length < i && t.source && (l = a = s.length, t.visit(t.SOURCE, (c) => {
7251
- o[ae(c)] || u(c);
7257
+ }), s = s.filter((c) => o[le(c)] !== -1)), (t.rem.length || r) && s.length < i && t.source && (l = a = s.length, t.visit(t.SOURCE, (c) => {
7258
+ o[le(c)] || u(c);
7252
7259
  }), l = -1), r && s.length > i) {
7253
7260
  const c = s.length - i;
7254
7261
  for (let f = 0; f < c; ++f)
7255
- o[ae(s[f])] = -1, n.rem.push(s[f]);
7262
+ o[le(s[f])] = -1, n.rem.push(s[f]);
7256
7263
  s = s.slice(c);
7257
7264
  }
7258
7265
  return t.mod.length && t.visit(t.MOD, (c) => {
7259
- o[ae(c)] && n.mod.push(c);
7260
- }), t.add.length && t.visit(t.ADD, u), (t.add.length || l < 0) && (n.add = s.filter((c) => !o[ae(c)])), this.count = a, this.value = n.source = s, n;
7266
+ o[le(c)] && n.mod.push(c);
7267
+ }), t.add.length && t.visit(t.ADD, u), (t.add.length || l < 0) && (n.add = s.filter((c) => !o[le(c)])), this.count = a, this.value = n.source = s, n;
7261
7268
  }
7262
7269
  });
7263
7270
  function Ex(e) {
@@ -7452,7 +7459,7 @@ const Ef = {
7452
7459
  };
7453
7460
  },
7454
7461
  ntile: function(e, t) {
7455
- t = +t, t > 0 || L("ntile num must be greater than zero.");
7462
+ t = +t, t > 0 || I("ntile num must be greater than zero.");
7456
7463
  const n = Ef.cume_dist(), r = n.next;
7457
7464
  return {
7458
7465
  init: n.init,
@@ -7486,7 +7493,7 @@ const Ef = {
7486
7493
  };
7487
7494
  },
7488
7495
  nth_value: function(e, t) {
7489
- return t = +t, t > 0 || L("nth_value nth must be greater than zero."), {
7496
+ return t = +t, t > 0 || I("nth_value nth must be greater than zero."), {
7490
7497
  next: (n) => {
7491
7498
  const r = n.i0 + (t - 1);
7492
7499
  return r < n.i1 ? e(n.data[r]) : null;
@@ -7531,7 +7538,7 @@ function H5(e) {
7531
7538
  if (h(m), s.push(v), ee(Ef, p))
7532
7539
  a.push(Wj(p, m, y, v));
7533
7540
  else {
7534
- if (m == null && p !== "count" && L("Null aggregate field specified."), p === "count") {
7541
+ if (m == null && p !== "count" && I("Null aggregate field specified."), p === "count") {
7535
7542
  c.push(v);
7536
7543
  return;
7537
7544
  }
@@ -7653,7 +7660,7 @@ X(Cx, O, {
7653
7660
  },
7654
7661
  group(e) {
7655
7662
  let t = this.value[e];
7656
- return t || (t = this.value[e] = k5(ae), t.stamp = -1), t.stamp < this.stamp && (t.stamp = this.stamp, this._mods[this._mlen++] = t), t;
7663
+ return t || (t = this.value[e] = k5(le), t.stamp = -1), t.stamp < this.stamp && (t.stamp = this.stamp, this._mods[this._mlen++] = t), t;
7657
7664
  }
7658
7665
  });
7659
7666
  function Yj(e, t, n, r) {
@@ -7855,17 +7862,17 @@ function lq() {
7855
7862
  var $ = DC(S / d * mi(C)), N = DC(S / h * mi(C));
7856
7863
  (E -= $ * 2) > sn ? ($ *= y ? 1 : -1, v += $, w -= $) : (E = 0, v = w = (p + g) / 2), (x -= N * 2) > sn ? (N *= y ? 1 : -1, b += N, _ -= N) : (x = 0, b = _ = (p + g) / 2);
7857
7864
  }
7858
- var D = h * Gs(b), B = h * mi(b), I = d * Gs(w), V = d * mi(w);
7865
+ var D = h * Gs(b), z = h * mi(b), L = d * Gs(w), Y = d * mi(w);
7859
7866
  if (A > sn) {
7860
- var ue = h * Gs(_), oe = h * mi(_), ye = d * Gs(v), qe = d * mi(v), be;
7867
+ var oe = h * Gs(_), se = h * mi(_), ye = d * Gs(v), qe = d * mi(v), be;
7861
7868
  if (m < ru)
7862
- if (be = aq(D, B, ye, qe, ue, oe, I, V)) {
7863
- var It = D - be[0], ro = B - be[1], gi = ue - be[0], ne = oe - be[1], _e = 1 / mi(Qj((It * gi + ro * ne) / (da(It * It + ro * ro) * da(gi * gi + ne * ne))) / 2), ke = da(be[0] * be[0] + be[1] * be[1]);
7869
+ if (be = aq(D, z, ye, qe, oe, se, L, Y)) {
7870
+ var It = D - be[0], ro = z - be[1], gi = oe - be[0], ne = se - be[1], _e = 1 / mi(Qj((It * gi + ro * ne) / (da(It * It + ro * ro) * da(gi * gi + ne * ne))) / 2), ke = da(be[0] * be[0] + be[1] * be[1]);
7864
7871
  M = d1(A, (d - ke) / (_e - 1)), R = d1(A, (h - ke) / (_e + 1));
7865
7872
  } else
7866
7873
  M = R = 0;
7867
7874
  }
7868
- x > sn ? R > sn ? (F = Zd(ye, qe, D, B, h, R, y), T = Zd(ue, oe, I, V, h, R, y), a.moveTo(F.cx + F.x01, F.cy + F.y01), R < A ? a.arc(F.cx, F.cy, R, rn(F.y01, F.x01), rn(T.y01, T.x01), !y) : (a.arc(F.cx, F.cy, R, rn(F.y01, F.x01), rn(F.y11, F.x11), !y), a.arc(0, 0, h, rn(F.cy + F.y11, F.cx + F.x11), rn(T.cy + T.y11, T.cx + T.x11), !y), a.arc(T.cx, T.cy, R, rn(T.y11, T.x11), rn(T.y01, T.x01), !y))) : (a.moveTo(D, B), a.arc(0, 0, h, b, _, !y)) : a.moveTo(D, B), !(d > sn) || !(E > sn) ? a.lineTo(I, V) : M > sn ? (F = Zd(I, V, ue, oe, d, -M, y), T = Zd(D, B, ye, qe, d, -M, y), a.lineTo(F.cx + F.x01, F.cy + F.y01), M < A ? a.arc(F.cx, F.cy, M, rn(F.y01, F.x01), rn(T.y01, T.x01), !y) : (a.arc(F.cx, F.cy, M, rn(F.y01, F.x01), rn(F.y11, F.x11), !y), a.arc(0, 0, d, rn(F.cy + F.y11, F.cx + F.x11), rn(T.cy + T.y11, T.cx + T.x11), y), a.arc(T.cx, T.cy, M, rn(T.y11, T.x11), rn(T.y01, T.x01), !y))) : a.arc(0, 0, d, w, v, y);
7875
+ x > sn ? R > sn ? (F = Zd(ye, qe, D, z, h, R, y), T = Zd(oe, se, L, Y, h, R, y), a.moveTo(F.cx + F.x01, F.cy + F.y01), R < A ? a.arc(F.cx, F.cy, R, rn(F.y01, F.x01), rn(T.y01, T.x01), !y) : (a.arc(F.cx, F.cy, R, rn(F.y01, F.x01), rn(F.y11, F.x11), !y), a.arc(0, 0, h, rn(F.cy + F.y11, F.cx + F.x11), rn(T.cy + T.y11, T.cx + T.x11), !y), a.arc(T.cx, T.cy, R, rn(T.y11, T.x11), rn(T.y01, T.x01), !y))) : (a.moveTo(D, z), a.arc(0, 0, h, b, _, !y)) : a.moveTo(D, z), !(d > sn) || !(E > sn) ? a.lineTo(L, Y) : M > sn ? (F = Zd(L, Y, oe, se, d, -M, y), T = Zd(D, z, ye, qe, d, -M, y), a.lineTo(F.cx + F.x01, F.cy + F.y01), M < A ? a.arc(F.cx, F.cy, M, rn(F.y01, F.x01), rn(T.y01, T.x01), !y) : (a.arc(F.cx, F.cy, M, rn(F.y01, F.x01), rn(F.y11, F.x11), !y), a.arc(0, 0, d, rn(F.cy + F.y11, F.cx + F.x11), rn(T.cy + T.y11, T.cx + T.x11), y), a.arc(T.cx, T.cy, M, rn(T.y11, T.x11), rn(T.y01, T.x01), !y))) : a.arc(0, 0, d, w, v, y);
7869
7876
  }
7870
7877
  if (a.closePath(), c) return a = null, c + "" || null;
7871
7878
  }
@@ -10255,7 +10262,7 @@ const QW = {
10255
10262
  tableau20: "4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5"
10256
10263
  };
10257
10264
  function c6(e) {
10258
- if (z(e)) return e;
10265
+ if (B(e)) return e;
10259
10266
  const t = e.length / 6 | 0, n = new Array(t);
10260
10267
  for (let r = 0; r < t; )
10261
10268
  n[r] = "#" + e.slice(r * 6, ++r * 6);
@@ -10270,10 +10277,10 @@ f6(QW, (e) => Cm(c6(e)));
10270
10277
  function Qx(e, t) {
10271
10278
  return e = e && e.toLowerCase(), arguments.length > 1 ? (sS[e] = t, this) : sS[e];
10272
10279
  }
10273
- const Ph = "symbol", tH = "discrete", nH = "gradient", rH = (e) => z(e) ? e.map((t) => String(t)) : String(e), iH = (e, t) => e[1] - t[1], oH = (e, t) => t[1] - e[1];
10280
+ const Ph = "symbol", tH = "discrete", nH = "gradient", rH = (e) => B(e) ? e.map((t) => String(t)) : String(e), iH = (e, t) => e[1] - t[1], oH = (e, t) => t[1] - e[1];
10274
10281
  function e2(e, t, n) {
10275
10282
  let r;
10276
- return ze(t) && (e.bins && (t = Math.max(t, e.bins.length)), n != null && (t = Math.min(t, Math.floor(Zf(e.domain()) / n || 1) + 1))), Z(t) && (r = t.step, t = t.interval), J(t) && (t = e.type === Ma ? ju(t) : e.type == Ta ? qu(t) : L("Only time and utc scales accept interval strings."), r && (t = t.every(r))), t;
10283
+ return ze(t) && (e.bins && (t = Math.max(t, e.bins.length)), n != null && (t = Math.min(t, Math.floor(Zf(e.domain()) / n || 1) + 1))), Z(t) && (r = t.step, t = t.interval), J(t) && (t = e.type === Ma ? ju(t) : e.type == Ta ? qu(t) : I("Only time and utc scales accept interval strings."), r && (t = t.every(r))), t;
10277
10284
  }
10278
10285
  function d6(e, t, n) {
10279
10286
  let r = e.range(), i = r[0], o = Re(r), s = iH;
@@ -10542,9 +10549,9 @@ function EH(e, t, n, r, i, o, s, a, l) {
10542
10549
  let $ = Math.atan2(x - R, E - M) - F;
10543
10550
  $ < 0 && o === 1 ? $ += Ci : $ > 0 && o === 0 && ($ -= Ci);
10544
10551
  const N = Math.ceil(Math.abs($ / (la + 1e-3))), D = [];
10545
- for (let B = 0; B < N; ++B) {
10546
- const I = F + B * $ / N, V = F + (B + 1) * $ / N;
10547
- D[B] = [M, R, I, V, n, r, f, d];
10552
+ for (let z = 0; z < N; ++z) {
10553
+ const L = F + z * $ / N, Y = F + (z + 1) * $ / N;
10554
+ D[z] = [M, R, L, Y, n, r, f, d];
10548
10555
  }
10549
10556
  return v1[u] = D;
10550
10557
  }
@@ -11566,14 +11573,14 @@ function xs(e) {
11566
11573
  return e.lineHeight != null ? e.lineHeight : Vi(e) + 2;
11567
11574
  }
11568
11575
  function eV(e) {
11569
- return z(e) ? e.length > 1 ? e : e[0] : e;
11576
+ return B(e) ? e.length > 1 ? e : e[0] : e;
11570
11577
  }
11571
11578
  function hd(e) {
11572
- return eV(e.lineBreak && e.text && !z(e.text) ? e.text.split(e.lineBreak) : e.text);
11579
+ return eV(e.lineBreak && e.text && !B(e.text) ? e.text.split(e.lineBreak) : e.text);
11573
11580
  }
11574
11581
  function b2(e) {
11575
11582
  const t = hd(e);
11576
- return (z(t) ? t.length - 1 : 0) * xs(e);
11583
+ return (B(t) ? t.length - 1 : 0) * xs(e);
11577
11584
  }
11578
11585
  function ws(e, t) {
11579
11586
  const n = t == null ? "" : (t + "").trim();
@@ -11629,7 +11636,7 @@ function iV(e, t) {
11629
11636
  }
11630
11637
  function v2(e, t, n) {
11631
11638
  var r = or.height(t), i = t.align, o = Dm(t), s = o.x1, a = o.y1, l = t.dx || 0, u = (t.dy || 0) + _2(t) - Math.round(0.8 * r), c = hd(t), f;
11632
- if (z(c) ? (r += xs(t) * (c.length - 1), f = c.reduce((d, h) => Math.max(d, or.width(t, h)), 0)) : f = or.width(t, c), i === "center" ? l -= f / 2 : i === "right" && (l -= f), e.set(l += s, u += a, l + f, u + r), t.angle && !n)
11639
+ if (B(c) ? (r += xs(t) * (c.length - 1), f = c.reduce((d, h) => Math.max(d, or.width(t, h)), 0)) : f = or.width(t, c), i === "center" ? l -= f / 2 : i === "right" && (l -= f), e.set(l += s, u += a, l + f, u + r), t.angle && !n)
11633
11640
  e.rotate(t.angle * vs, s, a);
11634
11641
  else if (n === 2)
11635
11642
  return e.rotatedPoints(t.angle * vs, s, a);
@@ -11640,7 +11647,7 @@ function oV(e, t, n) {
11640
11647
  var i = r.opacity == null ? 1 : r.opacity, o, s, a, l, u, c, f;
11641
11648
  if (!(n && !n.intersects(r.bounds) || // bounds check
11642
11649
  i === 0 || r.fontSize <= 0 || r.text == null || r.text.length === 0)) {
11643
- if (e.font = Rm(r), e.textAlign = r.align || "left", o = Dm(r), s = o.x1, a = o.y1, r.angle && (e.save(), e.translate(s, a), e.rotate(r.angle * vs), s = a = 0), s += r.dx || 0, a += (r.dy || 0) + _2(r), c = hd(r), uu(e, r), z(c))
11650
+ if (e.font = Rm(r), e.textAlign = r.align || "left", o = Dm(r), s = o.x1, a = o.y1, r.angle && (e.save(), e.translate(s, a), e.rotate(r.angle * vs), s = a = 0), s += r.dx || 0, a += (r.dy || 0) + _2(r), c = hd(r), uu(e, r), B(c))
11644
11651
  for (u = xs(r), l = 0; l < c.length; ++l)
11645
11652
  f = ws(r, c[l]), r.fill && Mp(e, r, i) && e.fillText(f, s, a), r.stroke && cu(e, r, i) && e.strokeText(f, s, a), a += u;
11646
11653
  else
@@ -12285,7 +12292,7 @@ class Pp extends gd {
12285
12292
  kV(this._canvas, this._width, this._height, this._origin, this._scale, this._options.context);
12286
12293
  else {
12287
12294
  const o = this._options.externalContext;
12288
- o || L("CanvasRenderer is missing a valid canvas or context"), o.scale(this._scale, this._scale), o.translate(this._origin[0], this._origin[1]);
12295
+ o || I("CanvasRenderer is missing a valid canvas or context"), o.scale(this._scale, this._scale), o.translate(this._origin[0], this._origin[1]);
12289
12296
  }
12290
12297
  return this._redraw = !0, this;
12291
12298
  }
@@ -12775,7 +12782,7 @@ const zV = {
12775
12782
  text(e, t, n) {
12776
12783
  const r = hd(n);
12777
12784
  let i, o, s, a;
12778
- z(r) ? (o = r.map((l) => ws(n, l)), i = o.join(`
12785
+ B(r) ? (o = r.map((l) => ws(n, l)), i = o.join(`
12779
12786
  `), i !== ln.text && (br(t, 0), s = t.ownerDocument, a = xs(n), o.forEach((l, u) => {
12780
12787
  const c = ts(s, "tspan", Mt);
12781
12788
  c.__data__ = n, c.textContent = l, u && (c.setAttribute("x", 0), c.setAttribute("dy", a)), t.appendChild(c);
@@ -12822,7 +12829,7 @@ class cF extends gd {
12822
12829
  */
12823
12830
  _render(t) {
12824
12831
  const n = $2();
12825
- n.open("svg", xe({}, Mf, {
12832
+ n.open("svg", we({}, Mf, {
12826
12833
  class: "marks",
12827
12834
  width: this._width * this._scale,
12828
12835
  height: this._height * this._scale,
@@ -12854,7 +12861,7 @@ class cF extends gd {
12854
12861
  const l = this.href(a);
12855
12862
  if (l && t.open("a", l), t.open(i, this.attr(n, a, o, i !== "g" ? i : null)), i === "text") {
12856
12863
  const u = hd(a);
12857
- if (z(u)) {
12864
+ if (B(u)) {
12858
12865
  const c = {
12859
12866
  x: 0,
12860
12867
  dy: xs(a)
@@ -13076,7 +13083,7 @@ function Lm(e, t) {
13076
13083
  }
13077
13084
  function yF(e, t, n) {
13078
13085
  const r = [], i = new St().union(t), o = e.marktype;
13079
- return o ? bF(e, i, n, r) : o === "group" ? _F(e, i, n, r) : L("Intersect scene must be mark node or group item.");
13086
+ return o ? bF(e, i, n, r) : o === "group" ? _F(e, i, n, r) : I("Intersect scene must be mark node or group item.");
13080
13087
  }
13081
13088
  function bF(e, t, n, r) {
13082
13089
  if (qV(e, t, n)) {
@@ -13764,8 +13771,8 @@ function TY(e) {
13764
13771
  }
13765
13772
  X(BF, O, {
13766
13773
  transform(e, t) {
13767
- var n = t.dataflow, r = t.fork(t.NO_SOURCE | t.NO_FIELDS), i = e.item || MY, o = e.key || ae, s = this.value;
13768
- return z(r.encode) && (r.encode = null), s && (e.modified("key") || t.modified(o)) && L("DataJoin does not support modified key function or fields."), s || (t = t.addAll(), this.value = s = TY(o)), t.visit(t.ADD, (a) => {
13774
+ var n = t.dataflow, r = t.fork(t.NO_SOURCE | t.NO_FIELDS), i = e.item || MY, o = e.key || le, s = this.value;
13775
+ return B(r.encode) && (r.encode = null), s && (e.modified("key") || t.modified(o)) && I("DataJoin does not support modified key function or fields."), s || (t = t.addAll(), this.value = s = TY(o)), t.visit(t.ADD, (a) => {
13769
13776
  const l = o(a);
13770
13777
  let u = s.get(l);
13771
13778
  u ? u.exit ? (s.empty--, r.add.push(u)) : r.mod.push(u) : (u = i(a), s.set(l, u), r.add.push(u)), u.datum = a, u.exit = !1;
@@ -13784,7 +13791,7 @@ function UF(e) {
13784
13791
  X(UF, O, {
13785
13792
  transform(e, t) {
13786
13793
  var n = t.fork(t.ADD_REM), r = e.mod || !1, i = e.encoders, o = t.encode;
13787
- if (z(o))
13794
+ if (B(o))
13788
13795
  if (n.changed() || o.every((f) => i[f]))
13789
13796
  o = o[0], n.encode = null;
13790
13797
  else
@@ -13889,7 +13896,7 @@ I2.Definition = {
13889
13896
  X(I2, O, {
13890
13897
  transform(e, t) {
13891
13898
  var n = e.sourceX || NY, r = e.sourceY || FY, i = e.targetX || RY, o = e.targetY || DY, s = e.as || "path", a = e.orient || "vertical", l = e.shape || "line", u = jS.get(l + "-" + a) || jS.get(l);
13892
- return u || L("LinkPath unsupported type: " + e.shape + (e.orient ? "-" + e.orient : "")), t.visit(t.SOURCE, (c) => {
13899
+ return u || I("LinkPath unsupported type: " + e.shape + (e.orient ? "-" + e.orient : "")), t.visit(t.SOURCE, (c) => {
13893
13900
  c[s] = u(n(c), r(c), i(c), o(c));
13894
13901
  }), t.reflow(e.modified()).modifies(s);
13895
13902
  }
@@ -14024,10 +14031,10 @@ function YF(e, t, n) {
14024
14031
  }
14025
14032
  function JY(e, t, n) {
14026
14033
  let r = t.bins;
14027
- if (r && !z(r)) {
14034
+ if (r && !B(r)) {
14028
14035
  const i = e.domain(), o = i[0], s = Re(i), a = r.step;
14029
14036
  let l = r.start == null ? o : r.start, u = r.stop == null ? s : r.stop;
14030
- a || L("Scale bins parameter missing step property."), l < o && (l = a * Math.ceil(o / a)), u > s && (u = a * Math.floor(s / a)), r = tr(l, u + a / 2, a);
14037
+ a || I("Scale bins parameter missing step property."), l < o && (l = a * Math.ceil(o / a)), u > s && (u = a * Math.floor(s / a)), r = tr(l, u + a / 2, a);
14031
14038
  }
14032
14039
  return r ? e.bins = r : e.bins && delete e.bins, e.type === Yx && (r ? !t.domain && !t.domainRaw && (e.domain(r), n = r.length) : e.bins = e.domain()), n;
14033
14040
  }
@@ -14038,20 +14045,20 @@ function QY(e, t, n) {
14038
14045
  else if (t.scheme && (o = tX(r, t, n), ve(o))) {
14039
14046
  if (e.interpolator)
14040
14047
  return e.interpolator(o);
14041
- L(`Scale type ${r} does not support interpolating color schemes.`);
14048
+ I(`Scale type ${r} does not support interpolating color schemes.`);
14042
14049
  }
14043
14050
  if (o && o6(r))
14044
14051
  return e.interpolator(Cm(Tb(o, t.reverse), t.interpolate, t.interpolateGamma));
14045
14052
  o && t.interpolate && e.interpolate ? e.interpolate(Jx(t.interpolate, t.interpolateGamma)) : ve(e.round) ? e.round(i) : ve(e.rangeRound) && e.interpolate(i ? nd : Fs), o && e.range(Tb(o, t.reverse));
14046
14053
  }
14047
14054
  function eX(e, t, n) {
14048
- e !== JN && e !== gb && L("Only band and point scales support rangeStep.");
14055
+ e !== JN && e !== gb && I("Only band and point scales support rangeStep.");
14049
14056
  var r = (t.paddingOuter != null ? t.paddingOuter : t.padding) || 0, i = e === gb ? 1 : (t.paddingInner != null ? t.paddingInner : t.padding) || 0;
14050
14057
  return [0, t.rangeStep * Gx(n, i, r)];
14051
14058
  }
14052
14059
  function tX(e, t, n) {
14053
14060
  var r = t.schemeExtent, i, o;
14054
- return z(t.scheme) ? o = Cm(t.scheme, t.interpolate, t.interpolateGamma) : (i = t.scheme.toLowerCase(), o = Qx(i), o || L(`Unrecognized scheme name: ${t.scheme}`)), n = e === km ? n + 1 : e === Yx ? n - 1 : e === su || e === Em ? +t.schemeCount || WY : n, o6(e) ? qS(o, r, t.reverse) : ve(o) ? l6(qS(o, r), n) : e === Vx ? o : o.slice(0, n);
14061
+ return B(t.scheme) ? o = Cm(t.scheme, t.interpolate, t.interpolateGamma) : (i = t.scheme.toLowerCase(), o = Qx(i), o || I(`Unrecognized scheme name: ${t.scheme}`)), n = e === km ? n + 1 : e === Yx ? n - 1 : e === su || e === Em ? +t.schemeCount || WY : n, o6(e) ? qS(o, r, t.reverse) : ve(o) ? l6(qS(o, r), n) : e === Vx ? o : o.slice(0, n);
14055
14062
  }
14056
14063
  function qS(e, t, n) {
14057
14064
  return ve(e) && (t || n) ? a6(e, Tb(t || [0, 1], n)) : e;
@@ -14146,7 +14153,7 @@ const sX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14146
14153
  sortitems: XF,
14147
14154
  stack: z2
14148
14155
  }, Symbol.toStringTag, { value: "Module" }));
14149
- var ce = 1e-6, Up = 1e-12, Ae = Math.PI, gt = Ae / 2, jp = Ae / 4, Nn = Ae * 2, bt = 180 / Ae, $e = Ae / 180, Fe = Math.abs, Yu = Math.atan, Tr = Math.atan2, fe = Math.cos, sh = Math.ceil, QF = Math.exp, Nb = Math.hypot, qp = Math.log, $1 = Math.pow, le = Math.sin, xr = Math.sign || function(e) {
14156
+ var ce = 1e-6, Up = 1e-12, Ae = Math.PI, gt = Ae / 2, jp = Ae / 4, Nn = Ae * 2, bt = 180 / Ae, $e = Ae / 180, Fe = Math.abs, Yu = Math.atan, Tr = Math.atan2, fe = Math.cos, sh = Math.ceil, QF = Math.exp, Nb = Math.hypot, qp = Math.log, $1 = Math.pow, ue = Math.sin, xr = Math.sign || function(e) {
14150
14157
  return e > 0 ? 1 : e < 0 ? -1 : 0;
14151
14158
  }, Fn = Math.sqrt, B2 = Math.tan;
14152
14159
  function eR(e) {
@@ -14228,11 +14235,11 @@ function lX() {
14228
14235
  rR(tR, nR);
14229
14236
  }
14230
14237
  function uX(e, t) {
14231
- zi.point = rR, tR = e, nR = t, e *= $e, t *= $e, Rb = e, Db = fe(t = t / 2 + jp), Ob = le(t);
14238
+ zi.point = rR, tR = e, nR = t, e *= $e, t *= $e, Rb = e, Db = fe(t = t / 2 + jp), Ob = ue(t);
14232
14239
  }
14233
14240
  function rR(e, t) {
14234
14241
  e *= $e, t *= $e, t = t / 2 + jp;
14235
- var n = e - Rb, r = n >= 0 ? 1 : -1, i = r * n, o = fe(t), s = le(t), a = Ob * s, l = Db * o + a * fe(i), u = a * r * le(i);
14242
+ var n = e - Rb, r = n >= 0 ? 1 : -1, i = r * n, o = fe(t), s = ue(t), a = Ob * s, l = Db * o + a * fe(i), u = a * r * ue(i);
14236
14243
  Hp.add(Tr(u, l)), Rb = e, Db = o, Ob = s;
14237
14244
  }
14238
14245
  function cX(e) {
@@ -14243,7 +14250,7 @@ function Vp(e) {
14243
14250
  }
14244
14251
  function Fa(e) {
14245
14252
  var t = e[0], n = e[1], r = fe(n);
14246
- return [r * fe(t), r * le(t), le(n)];
14253
+ return [r * fe(t), r * ue(t), ue(n)];
14247
14254
  }
14248
14255
  function ah(e, t) {
14249
14256
  return e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
@@ -14343,7 +14350,7 @@ var Wc, Xp, Kp, Zp, Jp, Qp, eg, tg, Ib, Pb, zb, lR, uR, En, kn, Cn, Xr = {
14343
14350
  function U2(e, t) {
14344
14351
  e *= $e, t *= $e;
14345
14352
  var n = fe(t);
14346
- yd(n * fe(e), n * le(e), le(t));
14353
+ yd(n * fe(e), n * ue(e), ue(t));
14347
14354
  }
14348
14355
  function yd(e, t, n) {
14349
14356
  ++Wc, Kp += (e - Kp) / Wc, Zp += (t - Zp) / Wc, Jp += (n - Jp) / Wc;
@@ -14354,11 +14361,11 @@ function ZS() {
14354
14361
  function gX(e, t) {
14355
14362
  e *= $e, t *= $e;
14356
14363
  var n = fe(t);
14357
- En = n * fe(e), kn = n * le(e), Cn = le(t), Xr.point = mX, yd(En, kn, Cn);
14364
+ En = n * fe(e), kn = n * ue(e), Cn = ue(t), Xr.point = mX, yd(En, kn, Cn);
14358
14365
  }
14359
14366
  function mX(e, t) {
14360
14367
  e *= $e, t *= $e;
14361
- var n = fe(t), r = n * fe(e), i = n * le(e), o = le(t), s = Tr(Fn((s = kn * o - Cn * i) * s + (s = Cn * r - En * o) * s + (s = En * i - kn * r) * s), En * r + kn * i + Cn * o);
14368
+ var n = fe(t), r = n * fe(e), i = n * ue(e), o = ue(t), s = Tr(Fn((s = kn * o - Cn * i) * s + (s = Cn * r - En * o) * s + (s = En * i - kn * r) * s), En * r + kn * i + Cn * o);
14362
14369
  Xp += s, Qp += s * (En + (En = r)), eg += s * (kn + (kn = i)), tg += s * (Cn + (Cn = o)), yd(En, kn, Cn);
14363
14370
  }
14364
14371
  function JS() {
@@ -14373,11 +14380,11 @@ function bX() {
14373
14380
  function _X(e, t) {
14374
14381
  lR = e, uR = t, e *= $e, t *= $e, Xr.point = cR;
14375
14382
  var n = fe(t);
14376
- En = n * fe(e), kn = n * le(e), Cn = le(t), yd(En, kn, Cn);
14383
+ En = n * fe(e), kn = n * ue(e), Cn = ue(t), yd(En, kn, Cn);
14377
14384
  }
14378
14385
  function cR(e, t) {
14379
14386
  e *= $e, t *= $e;
14380
- var n = fe(t), r = n * fe(e), i = n * le(e), o = le(t), s = kn * o - Cn * i, a = Cn * r - En * o, l = En * i - kn * r, u = Nb(s, a, l), c = Hn(u), f = u && -c / u;
14387
+ var n = fe(t), r = n * fe(e), i = n * ue(e), o = ue(t), s = kn * o - Cn * i, a = Cn * r - En * o, l = En * i - kn * r, u = Nb(s, a, l), c = Hn(u), f = u && -c / u;
14381
14388
  Ib.add(f * s), Pb.add(f * a), zb.add(f * l), Xp += c, Qp += c * (En + (En = r)), eg += c * (kn + (kn = i)), tg += c * (Cn + (Cn = o)), yd(En, kn, Cn);
14382
14389
  }
14383
14390
  function vX(e) {
@@ -14410,16 +14417,16 @@ function e$(e) {
14410
14417
  return t.invert = QS(-e), t;
14411
14418
  }
14412
14419
  function t$(e, t) {
14413
- var n = fe(e), r = le(e), i = fe(t), o = le(t);
14420
+ var n = fe(e), r = ue(e), i = fe(t), o = ue(t);
14414
14421
  function s(a, l) {
14415
- var u = fe(l), c = fe(a) * u, f = le(a) * u, d = le(l), h = d * n + c * r;
14422
+ var u = fe(l), c = fe(a) * u, f = ue(a) * u, d = ue(l), h = d * n + c * r;
14416
14423
  return [
14417
14424
  Tr(f * i - h * o, c * n - d * r),
14418
14425
  Hn(h * i + f * o)
14419
14426
  ];
14420
14427
  }
14421
14428
  return s.invert = function(a, l) {
14422
- var u = fe(l), c = fe(a) * u, f = le(a) * u, d = le(l), h = d * i - f * o;
14429
+ var u = fe(l), c = fe(a) * u, f = ue(a) * u, d = ue(l), h = d * i - f * o;
14423
14430
  return [
14424
14431
  Tr(f * i + d * o, c * n + h * r),
14425
14432
  Hn(h * n - c * r)
@@ -14437,10 +14444,10 @@ function xX(e) {
14437
14444
  }
14438
14445
  function wX(e, t, n, r, i, o) {
14439
14446
  if (n) {
14440
- var s = fe(t), a = le(t), l = r * n;
14447
+ var s = fe(t), a = ue(t), l = r * n;
14441
14448
  i == null ? (i = t + r * Nn, o = t - l / 2) : (i = n$(s, i), o = n$(s, o), (r > 0 ? i < o : i > o) && (i += r * Nn));
14442
14449
  for (var u, c = i; r > 0 ? c > o : c < o; c -= l)
14443
- u = Vp([s, -a * fe(c), -a * le(c)]), e.point(u[0], u[1]);
14450
+ u = Vp([s, -a * fe(c), -a * ue(c)]), e.point(u[0], u[1]);
14444
14451
  }
14445
14452
  }
14446
14453
  function n$(e, t) {
@@ -14525,13 +14532,13 @@ function M1(e) {
14525
14532
  return Fe(e[0]) <= Ae ? e[0] : xr(e[0]) * ((Fe(e[0]) + Ae) % Nn - Ae);
14526
14533
  }
14527
14534
  function EX(e, t) {
14528
- var n = M1(t), r = t[1], i = le(r), o = [le(n), -fe(n), 0], s = 0, a = 0, l = new Mn();
14535
+ var n = M1(t), r = t[1], i = ue(r), o = [ue(n), -fe(n), 0], s = 0, a = 0, l = new Mn();
14529
14536
  i === 1 ? r = gt + ce : i === -1 && (r = -gt - ce);
14530
14537
  for (var u = 0, c = e.length; u < c; ++u)
14531
14538
  if (d = (f = e[u]).length)
14532
- for (var f, d, h = f[d - 1], p = M1(h), g = h[1] / 2 + jp, m = le(g), y = fe(g), b = 0; b < d; ++b, p = v, m = E, y = x, h = _) {
14533
- var _ = f[b], v = M1(_), w = _[1] / 2 + jp, E = le(w), x = fe(w), C = v - p, S = C >= 0 ? 1 : -1, A = S * C, M = A > Ae, R = m * E;
14534
- if (l.add(Tr(R * S * le(A), y * x + R * fe(A))), s += M ? C + S * Nn : C, M ^ p >= n ^ v >= n) {
14539
+ for (var f, d, h = f[d - 1], p = M1(h), g = h[1] / 2 + jp, m = ue(g), y = fe(g), b = 0; b < d; ++b, p = v, m = E, y = x, h = _) {
14540
+ var _ = f[b], v = M1(_), w = _[1] / 2 + jp, E = ue(w), x = fe(w), C = v - p, S = C >= 0 ? 1 : -1, A = S * C, M = A > Ae, R = m * E;
14541
+ if (l.add(Tr(R * S * ue(A), y * x + R * fe(A))), s += M ? C + S * Nn : C, M ^ p >= n ^ v >= n) {
14535
14542
  var F = du(Fa(h), Fa(_));
14536
14543
  Yp(F);
14537
14544
  var T = du(o, F);
@@ -14628,8 +14635,8 @@ function SX(e) {
14628
14635
  };
14629
14636
  }
14630
14637
  function $X(e, t, n, r) {
14631
- var i, o, s = le(e - n);
14632
- return Fe(s) > ce ? Yu((le(t) * (o = fe(r)) * le(n) - le(r) * (i = fe(t)) * le(e)) / (i * o * s)) : (t + r) / 2;
14638
+ var i, o, s = ue(e - n);
14639
+ return Fe(s) > ce ? Yu((ue(t) * (o = fe(r)) * ue(n) - ue(r) * (i = fe(t)) * ue(e)) / (i * o * s)) : (t + r) / 2;
14633
14640
  }
14634
14641
  function AX(e, t, n, r) {
14635
14642
  var i;
@@ -14684,10 +14691,10 @@ function MX(e) {
14684
14691
  if (!(R < 0)) {
14685
14692
  var F = Fn(R), T = lh(S, (-A - F) / M);
14686
14693
  if (A1(T, x), T = Vp(T), !d) return T;
14687
- var $ = c[0], N = f[0], D = c[1], B = f[1], I;
14688
- N < $ && (I = $, $ = N, N = I);
14689
- var V = N - $, ue = Fe(V - Ae) < ce, oe = ue || V < ce;
14690
- if (!ue && B < D && (I = D, D = B, B = I), oe ? ue ? D + B > 0 ^ T[1] < (Fe(T[0] - $) < ce ? D : B) : D <= T[1] && T[1] <= B : V > Ae ^ ($ <= T[0] && T[0] <= N)) {
14694
+ var $ = c[0], N = f[0], D = c[1], z = f[1], L;
14695
+ N < $ && (L = $, $ = N, N = L);
14696
+ var Y = N - $, oe = Fe(Y - Ae) < ce, se = oe || Y < ce;
14697
+ if (!oe && z < D && (L = D, D = z, z = L), se ? oe ? D + z > 0 ^ T[1] < (Fe(T[0] - $) < ce ? D : z) : D <= T[1] && T[1] <= z : Y > Ae ^ ($ <= T[0] && T[0] <= N)) {
14691
14698
  var ye = lh(S, (-A + F) / M);
14692
14699
  return A1(ye, x), [T, Vp(ye)];
14693
14700
  }
@@ -14776,8 +14783,8 @@ function gR(e, t, n, r) {
14776
14783
  }
14777
14784
  function S() {
14778
14785
  for (var $ = 0, N = 0, D = h.length; N < D; ++N)
14779
- for (var B = h[N], I = 1, V = B.length, ue = B[0], oe, ye, qe = ue[0], be = ue[1]; I < V; ++I)
14780
- oe = qe, ye = be, ue = B[I], qe = ue[0], be = ue[1], ye <= r ? be > r && (qe - oe) * (r - ye) > (be - ye) * (e - oe) && ++$ : be <= r && (qe - oe) * (r - ye) < (be - ye) * (e - oe) && --$;
14786
+ for (var z = h[N], L = 1, Y = z.length, oe = z[0], se, ye, qe = oe[0], be = oe[1]; L < Y; ++L)
14787
+ se = qe, ye = be, oe = z[L], qe = oe[0], be = oe[1], ye <= r ? be > r && (qe - se) * (r - ye) > (be - ye) * (e - se) && ++$ : be <= r && (qe - se) * (r - ye) < (be - ye) * (e - se) && --$;
14781
14788
  return $;
14782
14789
  }
14783
14790
  function A() {
@@ -14799,8 +14806,8 @@ function gR(e, t, n, r) {
14799
14806
  g = $, m = N, y = D, w = !1, D && (c.lineStart(), c.point($, N));
14800
14807
  else if (D && v) c.point($, N);
14801
14808
  else {
14802
- var B = [b = Math.max(ch, Math.min(Hc, b)), _ = Math.max(ch, Math.min(Hc, _))], I = [$ = Math.max(ch, Math.min(Hc, $)), N = Math.max(ch, Math.min(Hc, N))];
14803
- TX(B, I, e, t, n, r) ? (v || (c.lineStart(), c.point(B[0], B[1])), c.point(I[0], I[1]), D || c.lineEnd(), E = !1) : D && (c.lineStart(), c.point($, N), E = !1);
14809
+ var z = [b = Math.max(ch, Math.min(Hc, b)), _ = Math.max(ch, Math.min(Hc, _))], L = [$ = Math.max(ch, Math.min(Hc, $)), N = Math.max(ch, Math.min(Hc, N))];
14810
+ TX(z, L, e, t, n, r) ? (v || (c.lineStart(), c.point(z[0], z[1])), c.point(L[0], L[1]), D || c.lineEnd(), E = !1) : D && (c.lineStart(), c.point($, N), E = !1);
14804
14811
  }
14805
14812
  b = $, _ = N, v = D;
14806
14813
  }
@@ -15245,7 +15252,7 @@ function YX(e, t, n, r, i) {
15245
15252
  }
15246
15253
  function g$(e, t, n, r, i, o) {
15247
15254
  if (!o) return YX(e, t, n, r, i);
15248
- var s = fe(o), a = le(o), l = s * e, u = a * e, c = s / e, f = a / e, d = (a * n - s * t) / e, h = (a * t + s * n) / e;
15255
+ var s = fe(o), a = ue(o), l = s * e, u = a * e, c = s / e, f = a / e, d = (a * n - s * t) / e, h = (a * t + s * n) / e;
15249
15256
  function p(g, m) {
15250
15257
  return g *= r, m *= i, [l * g - u * m + t, n - u * g - l * m];
15251
15258
  }
@@ -15321,19 +15328,19 @@ function G2(e) {
15321
15328
  function XX(e) {
15322
15329
  var t = fe(e);
15323
15330
  function n(r, i) {
15324
- return [r * t, le(i) / t];
15331
+ return [r * t, ue(i) / t];
15325
15332
  }
15326
15333
  return n.invert = function(r, i) {
15327
15334
  return [r / t, Hn(i * t)];
15328
15335
  }, n;
15329
15336
  }
15330
15337
  function KX(e, t) {
15331
- var n = le(e), r = (n + le(t)) / 2;
15338
+ var n = ue(e), r = (n + ue(t)) / 2;
15332
15339
  if (Fe(r) < ce) return XX(e);
15333
15340
  var i = 1 + n * (2 * r - n), o = Fn(i) / r;
15334
15341
  function s(a, l) {
15335
- var u = Fn(i - 2 * r * le(l)) / r;
15336
- return [u * le(a *= r), o - u * fe(a)];
15342
+ var u = Fn(i - 2 * r * ue(l)) / r;
15343
+ return [u * ue(a *= r), o - u * fe(a)];
15337
15344
  }
15338
15345
  return s.invert = function(a, l) {
15339
15346
  var u = o - l, c = Tr(a, Fe(u)) * xr(u);
@@ -15408,14 +15415,14 @@ function TR(e) {
15408
15415
  return function(t, n) {
15409
15416
  var r = fe(t), i = fe(n), o = e(r * i);
15410
15417
  return o === 1 / 0 ? [2, 0] : [
15411
- o * i * le(t),
15412
- o * le(n)
15418
+ o * i * ue(t),
15419
+ o * ue(n)
15413
15420
  ];
15414
15421
  };
15415
15422
  }
15416
15423
  function bd(e) {
15417
15424
  return function(t, n) {
15418
- var r = Fn(t * t + n * n), i = e(r), o = le(i), s = fe(i);
15425
+ var r = Fn(t * t + n * n), i = e(r), o = ue(i), s = fe(i);
15419
15426
  return [
15420
15427
  Tr(t * o, r * s),
15421
15428
  Hn(r && n * o / r)
@@ -15432,7 +15439,7 @@ function QX() {
15432
15439
  return Yi(NR).scale(124.75).clipAngle(180 - 1e-3);
15433
15440
  }
15434
15441
  var FR = TR(function(e) {
15435
- return (e = eR(e)) && e / le(e);
15442
+ return (e = eR(e)) && e / ue(e);
15436
15443
  });
15437
15444
  FR.invert = bd(function(e) {
15438
15445
  return e;
@@ -15470,12 +15477,12 @@ function fh(e) {
15470
15477
  return B2((gt + e) / 2);
15471
15478
  }
15472
15479
  function nK(e, t) {
15473
- var n = fe(e), r = e === t ? le(e) : qp(n / fe(t)) / qp(fh(t) / fh(e)), i = n * $1(fh(e), r) / r;
15480
+ var n = fe(e), r = e === t ? ue(e) : qp(n / fe(t)) / qp(fh(t) / fh(e)), i = n * $1(fh(e), r) / r;
15474
15481
  if (!r) return Bm;
15475
15482
  function o(s, a) {
15476
15483
  i > 0 ? a < -gt + ce && (a = -gt + ce) : a > gt - ce && (a = gt - ce);
15477
15484
  var l = i / $1(fh(a), r);
15478
- return [l * le(r * s), i - l * fe(r * s)];
15485
+ return [l * ue(r * s), i - l * fe(r * s)];
15479
15486
  }
15480
15487
  return o.invert = function(s, a) {
15481
15488
  var l = i - a, u = xr(r) * Fn(s * s + l * l), c = Tr(s, Fe(l)) * xr(l);
@@ -15493,11 +15500,11 @@ function iK() {
15493
15500
  return Yi(ug).scale(152.63);
15494
15501
  }
15495
15502
  function oK(e, t) {
15496
- var n = fe(e), r = e === t ? le(e) : (n - fe(t)) / (t - e), i = n / r + e;
15503
+ var n = fe(e), r = e === t ? ue(e) : (n - fe(t)) / (t - e), i = n / r + e;
15497
15504
  if (Fe(r) < ce) return ug;
15498
15505
  function o(s, a) {
15499
15506
  var l = i - a, u = r * s;
15500
- return [l * le(u), i - l * fe(u)];
15507
+ return [l * ue(u), i - l * fe(u)];
15501
15508
  }
15502
15509
  return o.invert = function(s, a) {
15503
15510
  var l = i - a, u = Tr(s, Fe(l)) * xr(l);
@@ -15509,7 +15516,7 @@ function sK() {
15509
15516
  }
15510
15517
  var uf = 1.340264, cf = -0.081106, ff = 893e-6, df = 3796e-6, cg = Fn(3) / 2, aK = 12;
15511
15518
  function DR(e, t) {
15512
- var n = Hn(cg * le(t)), r = n * n, i = r * r * r;
15519
+ var n = Hn(cg * ue(t)), r = n * n, i = r * r * r;
15513
15520
  return [
15514
15521
  e * fe(n) / (cg * (uf + 3 * cf * r + i * (7 * ff + 9 * df * r))),
15515
15522
  n * (uf + cf * r + i * (ff + df * r))
@@ -15520,7 +15527,7 @@ DR.invert = function(e, t) {
15520
15527
  ;
15521
15528
  return [
15522
15529
  cg * e * (uf + 3 * cf * r + i * (7 * ff + 9 * df * r)) / fe(n),
15523
- Hn(le(n) / cg)
15530
+ Hn(ue(n) / cg)
15524
15531
  ];
15525
15532
  };
15526
15533
  function lK() {
@@ -15528,7 +15535,7 @@ function lK() {
15528
15535
  }
15529
15536
  function OR(e, t) {
15530
15537
  var n = fe(t), r = fe(e) * n;
15531
- return [n * le(e) / r, le(t) / r];
15538
+ return [n * ue(e) / r, ue(t) / r];
15532
15539
  }
15533
15540
  OR.invert = bd(Yu);
15534
15541
  function uK() {
@@ -15570,7 +15577,7 @@ function cK() {
15570
15577
  }, _.translate = function(v) {
15571
15578
  return arguments.length ? (t = +v[0], n = +v[1], b()) : [t, n];
15572
15579
  }, _.angle = function(v) {
15573
- return arguments.length ? (o = v % 360 * $e, a = le(o), s = fe(o), b()) : o * bt;
15580
+ return arguments.length ? (o = v % 360 * $e, a = ue(o), s = fe(o), b()) : o * bt;
15574
15581
  }, _.reflectX = function(v) {
15575
15582
  return arguments.length ? (r = v ? -1 : 1, b()) : r < 0;
15576
15583
  }, _.reflectY = function(v) {
@@ -15607,7 +15614,7 @@ function fK() {
15607
15614
  return Yi(LR).scale(175.295);
15608
15615
  }
15609
15616
  function IR(e, t) {
15610
- return [fe(t) * le(e), le(t)];
15617
+ return [fe(t) * ue(e), ue(t)];
15611
15618
  }
15612
15619
  IR.invert = bd(Hn);
15613
15620
  function dK() {
@@ -15615,7 +15622,7 @@ function dK() {
15615
15622
  }
15616
15623
  function PR(e, t) {
15617
15624
  var n = fe(t), r = 1 + fe(e) * n;
15618
- return [n * le(e) / r, le(t) / r];
15625
+ return [n * ue(e) / r, ue(t) / r];
15619
15626
  }
15620
15627
  PR.invert = bd(function(e) {
15621
15628
  return 2 * Yu(e);
@@ -15792,7 +15799,7 @@ function jR() {
15792
15799
  return r.contour = i, r.size = function(l) {
15793
15800
  if (!arguments.length) return [e, t];
15794
15801
  var u = Math.floor(l[0]), c = Math.floor(l[1]);
15795
- return u >= 0 && c >= 0 || L("invalid size"), e = u, t = c, r;
15802
+ return u >= 0 && c >= 0 || I("invalid size"), e = u, t = c, r;
15796
15803
  }, r.smooth = function(l) {
15797
15804
  return arguments.length ? (n = l ? a : kK, r) : n === a;
15798
15805
  }, r;
@@ -15886,7 +15893,7 @@ X(Y2, O, {
15886
15893
  return t.StopPropagation;
15887
15894
  var n = t.fork(t.NO_SOURCE | t.NO_FIELDS), r = t.materialize(t.SOURCE).source, i = e.field || yn, o = jR().smooth(e.smooth !== !1), s = e.thresholds || NK(r, i, e), a = e.as === null ? null : e.as || "contour", l = [];
15888
15895
  return r.forEach((u) => {
15889
- const c = i(u), f = o.size([c.width, c.height])(c.values, z(s) ? s : s(c.values));
15896
+ const c = i(u), f = o.size([c.width, c.height])(c.values, B(s) ? s : s(c.values));
15890
15897
  FK(f, c, u, e), f.forEach((d) => {
15891
15898
  l.push(rm(u, je(a != null ? {
15892
15899
  [a]: d
@@ -15958,11 +15965,11 @@ function HR() {
15958
15965
  }, a.size = function(l) {
15959
15966
  if (!arguments.length) return [i, o];
15960
15967
  var u = +l[0], c = +l[1];
15961
- return u >= 0 && c >= 0 || L("invalid size"), i = u, o = c, a;
15968
+ return u >= 0 && c >= 0 || I("invalid size"), i = u, o = c, a;
15962
15969
  }, a.cellSize = function(l) {
15963
- return arguments.length ? ((l = +l) >= 1 || L("invalid cell size"), s = Math.floor(Math.log(l) / Math.LN2), a) : 1 << s;
15970
+ return arguments.length ? ((l = +l) >= 1 || I("invalid cell size"), s = Math.floor(Math.log(l) / Math.LN2), a) : 1 << s;
15964
15971
  }, a.bandwidth = function(l) {
15965
- return arguments.length ? (l = Q(l), l.length === 1 && (l = [+l[0], +l[0]]), l.length !== 2 && L("invalid bandwidth"), r = l, a) : r;
15972
+ return arguments.length ? (l = Q(l), l.length === 1 && (l = [+l[0], +l[0]]), l.length !== 2 && I("invalid bandwidth"), r = l, a) : r;
15966
15973
  }, a;
15967
15974
  }
15968
15975
  function wl(e, t, n, r, i) {
@@ -16105,7 +16112,7 @@ X(K2, O, {
16105
16112
  if (this.value && !t.changed() && !e.modified())
16106
16113
  return t.StopPropagation;
16107
16114
  var n = t.fork(t.NO_SOURCE | t.NO_FIELDS), r = jR().smooth(e.smooth !== !1), i = e.values, o = e.thresholds || qR(e.count || 10, e.nice, !!i), s = e.size, a, l;
16108
- return i || (i = t.materialize(t.SOURCE).source, a = GR(HR(), e)(i, !0), l = WR(a, a.scale || 1, a.scale || 1, 0, 0), s = [a.width, a.height], i = a.values), o = z(o) ? o : o(i), i = r.size(s)(i, o), l && i.forEach(l), this.value && (n.rem = this.value), this.value = n.source = n.add = (i || []).map(je), n;
16115
+ return i || (i = t.materialize(t.SOURCE).source, a = GR(HR(), e)(i, !0), l = WR(a, a.scale || 1, a.scale || 1, 0, 0), s = [a.width, a.height], i = a.values), o = B(o) ? o : o(i), i = r.size(s)(i, o), l && i.forEach(l), this.value && (n.rem = this.value), this.value = n.source = n.add = (i || []).map(je), n;
16109
16116
  }
16110
16117
  });
16111
16118
  const e_ = "Feature", Z2 = "FeatureCollection", OK = "MultiPoint";
@@ -16366,7 +16373,7 @@ X(rw, O, {
16366
16373
  $max: r ? ya(n.map((u) => ya(i(u).values))) : 0
16367
16374
  };
16368
16375
  return n.forEach((u) => {
16369
- const c = i(u), f = xe({}, u, l);
16376
+ const c = i(u), f = we({}, u, l);
16370
16377
  r || (f.$max = ya(c.values || [])), u[a] = BK(c, f, s.dep ? s : bn(s(f)), o.dep ? o : bn(o(f)));
16371
16378
  }), t.reflow(!0).modifies(a);
16372
16379
  }
@@ -16415,7 +16422,7 @@ function UK(e, t) {
16415
16422
  }
16416
16423
  function jK(e) {
16417
16424
  const t = V2((e || "mercator").toLowerCase());
16418
- return t || L("Unrecognized projection type: " + e), t();
16425
+ return t || I("Unrecognized projection type: " + e), t();
16419
16426
  }
16420
16427
  function _$(e, t, n) {
16421
16428
  ve(e[t]) && e[t](n);
@@ -17260,7 +17267,7 @@ function LZ(e, t) {
17260
17267
  }
17261
17268
  function IZ(e) {
17262
17269
  var t, n;
17263
- ee(C$, e.force) || L("Unrecognized force: " + e.force), t = C$[e.force]();
17270
+ ee(C$, e.force) || I("Unrecognized force: " + e.force), t = C$[e.force]();
17264
17271
  for (n in e)
17265
17272
  ve(t[n]) && PZ(t[n], e[n], e);
17266
17273
  return t;
@@ -17940,7 +17947,7 @@ uw.Definition = {
17940
17947
  const BJ = (e) => e.values;
17941
17948
  X(uw, O, {
17942
17949
  transform(e, t) {
17943
- t.source || L("Nest transform requires an upstream data source.");
17950
+ t.source || I("Nest transform requires an upstream data source.");
17944
17951
  var n = e.generate, r = e.modified(), i = t.clone(), o = this.value;
17945
17952
  return (!o || r || t.changed()) && (o && o.each((s) => {
17946
17953
  s.children && nm(s.data) && i.rem.push(s.data);
@@ -17948,7 +17955,7 @@ X(uw, O, {
17948
17955
  values: Q(e.keys).reduce((s, a) => (s.key(a), s), UJ()).entries(i.source)
17949
17956
  }, BJ), n && o.each((s) => {
17950
17957
  s.children && (s = je(s.data), i.add.push(s), i.source.push(s));
17951
- }), i_(o, ae, ae)), i.source.root = o, i;
17958
+ }), i_(o, le, le)), i.source.root = o, i;
17952
17959
  }
17953
17960
  });
17954
17961
  function UJ() {
@@ -17985,13 +17992,13 @@ function Oo(e) {
17985
17992
  const jJ = (e, t) => e.parent === t.parent ? 1 : 2;
17986
17993
  X(Oo, O, {
17987
17994
  transform(e, t) {
17988
- (!t.source || !t.source.root) && L(this.constructor.name + " transform requires a backing tree data source.");
17995
+ (!t.source || !t.source.root) && I(this.constructor.name + " transform requires a backing tree data source.");
17989
17996
  const n = this.layout(e.method), r = this.fields, i = t.source.root, o = e.as || r;
17990
17997
  e.field ? i.sum(e.field) : i.count(), e.sort && i.sort(tl(e.sort, (s) => s.data)), qJ(n, this.params, e), n.separation && n.separation(e.separation !== !1 ? jJ : Du);
17991
17998
  try {
17992
17999
  this.value = n(i);
17993
18000
  } catch (s) {
17994
- L(s);
18001
+ I(s);
17995
18002
  }
17996
18003
  return i.each((s) => WJ(s, r, o)), t.reflow(e.modified()).modifies(o).modifies("leaf");
17997
18004
  }
@@ -18110,7 +18117,7 @@ dw.Definition = {
18110
18117
  };
18111
18118
  X(dw, O, {
18112
18119
  transform(e, t) {
18113
- t.source || L("Stratify transform requires an upstream data source.");
18120
+ t.source || I("Stratify transform requires an upstream data source.");
18114
18121
  let n = this.value;
18115
18122
  const r = e.modified(), i = t.fork(t.ALL).materialize(t.SOURCE), o = !n || r || t.changed(t.ADD_REM) || t.modified(e.key.fields) || t.modified(e.parentKey.fields);
18116
18123
  return i.source = i.source.slice(), o && (n = i.source.length ? i_(R$().id(e.key).parentId(e.parentKey)(i.source), e.key, $r) : i_(R$()([{}]), e.key, e.key)), i.source.root = this.value = n, i;
@@ -18169,7 +18176,7 @@ X(hw, Oo, {
18169
18176
  layout(e) {
18170
18177
  const t = e || "tidy";
18171
18178
  if (ee(O$, t)) return O$[t]();
18172
- L("Unrecognized Tree layout method: " + t);
18179
+ I("Unrecognized Tree layout method: " + t);
18173
18180
  },
18174
18181
  params: ["size", "nodeSize"],
18175
18182
  fields: a_
@@ -18189,14 +18196,14 @@ pw.Definition = {
18189
18196
  X(pw, O, {
18190
18197
  transform(e, t) {
18191
18198
  const n = this.value, r = t.source && t.source.root, i = t.fork(t.NO_SOURCE), o = {};
18192
- return r || L("TreeLinks transform requires a tree data source."), t.changed(t.ADD_REM) ? (i.rem = n, t.visit(t.SOURCE, (s) => o[ae(s)] = 1), r.each((s) => {
18199
+ return r || I("TreeLinks transform requires a tree data source."), t.changed(t.ADD_REM) ? (i.rem = n, t.visit(t.SOURCE, (s) => o[le(s)] = 1), r.each((s) => {
18193
18200
  const a = s.data, l = s.parent && s.parent.data;
18194
- l && o[ae(a)] && o[ae(l)] && i.add.push(je({
18201
+ l && o[le(a)] && o[le(l)] && i.add.push(je({
18195
18202
  source: l,
18196
18203
  target: a
18197
18204
  }));
18198
- }), this.value = i.add) : t.changed(t.MOD) && (t.visit(t.MOD, (s) => o[ae(s)] = 1), n.forEach((s) => {
18199
- (o[ae(s.source)] || o[ae(s.target)]) && i.mod.push(s);
18205
+ }), this.value = i.add) : t.changed(t.MOD) && (t.visit(t.MOD, (s) => o[le(s)] = 1), n.forEach((s) => {
18206
+ (o[le(s.source)] || o[le(s.target)]) && i.mod.push(s);
18200
18207
  })), i;
18201
18208
  }
18202
18209
  });
@@ -18288,7 +18295,7 @@ X(gw, Oo, {
18288
18295
  const n = e.tile();
18289
18296
  n.ratio && e.tile(n.ratio(t));
18290
18297
  }, e.method = (t) => {
18291
- ee(L$, t) ? e.tile(L$[t]) : L("Unrecognized Treemap layout method: " + t);
18298
+ ee(L$, t) ? e.tile(L$[t]) : I("Unrecognized Treemap layout method: " + t);
18292
18299
  }, e;
18293
18300
  },
18294
18301
  params: ["method", "ratio", "size", "round", "padding", "paddingInner", "paddingOuter", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft"],
@@ -18434,9 +18441,9 @@ function JJ(e, t, n, r) {
18434
18441
  }
18435
18442
  return function(u) {
18436
18443
  const c = u.datum.datum.items[r].items, f = c.length, d = u.datum.fontSize, h = or.width(u.datum, u.datum.text);
18437
- let p = n ? d : 0, g = !1, m = !1, y = 0, b, _, v, w, E, x, C, S, A, M, R, F, T, $, N, D, B;
18438
- for (let I = 0; I < f; ++I) {
18439
- for (b = c[I].x, v = c[I].y, _ = c[I].x2 === void 0 ? b : c[I].x2, w = c[I].y2 === void 0 ? v : c[I].y2, b > _ && (B = b, b = _, _ = B), v > w && (B = v, v = w, w = B), A = e(b), R = e(_), M = ~~((A + R) / 2), F = e(v), $ = e(w), T = ~~((F + $) / 2), C = M; C >= A; --C)
18444
+ let p = n ? d : 0, g = !1, m = !1, y = 0, b, _, v, w, E, x, C, S, A, M, R, F, T, $, N, D, z;
18445
+ for (let L = 0; L < f; ++L) {
18446
+ for (b = c[L].x, v = c[L].y, _ = c[L].x2 === void 0 ? b : c[L].x2, w = c[L].y2 === void 0 ? v : c[L].y2, b > _ && (z = b, b = _, _ = z), v > w && (z = v, v = w, w = z), A = e(b), R = e(_), M = ~~((A + R) / 2), F = e(v), $ = e(w), T = ~~((F + $) / 2), C = M; C >= A; --C)
18440
18447
  for (S = T; S >= F; --S)
18441
18448
  D = l(C, S, p, h, d), D && ([u.x, u.y, p, g] = D);
18442
18449
  for (C = M; C <= R; ++C)
@@ -18637,7 +18644,7 @@ X(mw, O, {
18637
18644
  }
18638
18645
  const r = e.modified();
18639
18646
  if (!(r || t.changed(t.ADD_REM) || n("sort"))) return;
18640
- (!e.size || e.size.length !== 2) && L("Size parameter should be specified as a [width, height] array.");
18647
+ (!e.size || e.size.length !== 2) && I("Size parameter should be specified as a [width, height] array.");
18641
18648
  const i = e.as || u_;
18642
18649
  return aQ(t.materialize(t.SOURCE).source || [], e.size, e.sort, Q(e.offset == null ? 1 : e.offset), Q(e.anchor || cD), e.avoidMarks || [], e.avoidBaseMark !== !1, e.lineAnchor || "end", e.markIndex || 0, e.padding === void 0 ? 0 : e.padding, e.method || "naive").forEach((o) => {
18643
18650
  const s = o.datum;
@@ -18766,7 +18773,7 @@ X(bw, O, {
18766
18773
  if (!this.value || t.changed() || e.modified()) {
18767
18774
  const r = t.materialize(t.SOURCE).source, i = fD(r, e.groupby), o = (e.groupby || []).map(mt), s = e.method || "linear", a = e.order == null ? 3 : e.order, l = hQ(s, a), u = e.as || [mt(e.x), mt(e.y)], c = c_[s], f = [];
18768
18775
  let d = e.extent;
18769
- ee(c_, s) || L("Invalid regression method: " + s), d != null && s === "log" && d[0] <= 0 && (t.dataflow.warn("Ignoring extent with values <= 0 for log regression."), d = null), i.forEach((h) => {
18776
+ ee(c_, s) || I("Invalid regression method: " + s), d != null && s === "log" && d[0] <= 0 && (t.dataflow.warn("Ignoring extent with values <= 0 for log regression."), d = null), i.forEach((h) => {
18770
18777
  if (h.length <= l) {
18771
18778
  t.dataflow.warn("Skipping regression with more parameters than data points.");
18772
18779
  return;
@@ -18908,7 +18915,7 @@ class yg {
18908
18915
  const R = this._ids[S], F = t[2 * R], T = t[2 * R + 1];
18909
18916
  if (S > 0 && Math.abs(F - A) <= U$ && Math.abs(T - M) <= U$ || (A = F, M = T, R === h || R === p || R === g)) continue;
18910
18917
  let $ = 0;
18911
- for (let V = 0, ue = this._hashKey(F, T); V < this._hashSize && ($ = o[(ue + V) % this._hashSize], !($ !== -1 && $ !== r[$])); V++)
18918
+ for (let Y = 0, oe = this._hashKey(F, T); Y < this._hashSize && ($ = o[(oe + Y) % this._hashSize], !($ !== -1 && $ !== r[$])); Y++)
18912
18919
  ;
18913
18920
  $ = n[$];
18914
18921
  let N = $, D;
@@ -18918,15 +18925,15 @@ class yg {
18918
18925
  break;
18919
18926
  }
18920
18927
  if (N === -1) continue;
18921
- let B = this._addTriangle(N, R, r[N], -1, -1, i[N]);
18922
- i[R] = this._legalize(B + 2), i[N] = B, C++;
18923
- let I = r[N];
18924
- for (; D = r[I], ph(F, T, t[2 * I], t[2 * I + 1], t[2 * D], t[2 * D + 1]) < 0; )
18925
- B = this._addTriangle(I, R, D, i[R], -1, i[I]), i[R] = this._legalize(B + 2), r[I] = I, C--, I = D;
18928
+ let z = this._addTriangle(N, R, r[N], -1, -1, i[N]);
18929
+ i[R] = this._legalize(z + 2), i[N] = z, C++;
18930
+ let L = r[N];
18931
+ for (; D = r[L], ph(F, T, t[2 * L], t[2 * L + 1], t[2 * D], t[2 * D + 1]) < 0; )
18932
+ z = this._addTriangle(L, R, D, i[R], -1, i[L]), i[R] = this._legalize(z + 2), r[L] = L, C--, L = D;
18926
18933
  if (N === $)
18927
18934
  for (; D = n[N], ph(F, T, t[2 * D], t[2 * D + 1], t[2 * N], t[2 * N + 1]) < 0; )
18928
- B = this._addTriangle(D, R, N, -1, i[N], i[D]), this._legalize(B + 2), i[D] = B, r[N] = N, C--, N = D;
18929
- this._hullStart = n[R] = N, r[N] = n[I] = R, r[R] = I, o[this._hashKey(F, T)] = R, o[this._hashKey(t[2 * N], t[2 * N + 1])] = N;
18935
+ z = this._addTriangle(D, R, N, -1, i[N], i[D]), this._legalize(z + 2), i[D] = z, r[N] = N, C--, N = D;
18936
+ this._hullStart = n[R] = N, r[N] = n[L] = R, r[R] = L, o[this._hashKey(F, T)] = R, o[this._hashKey(t[2 * N], t[2 * N + 1])] = N;
18930
18937
  }
18931
18938
  this.hull = new Uint32Array(C);
18932
18939
  for (let S = 0, A = this._hullStart; S < C; S++)
@@ -19106,14 +19113,14 @@ let $Q = class {
19106
19113
  if (Math.abs(D) < 1e-9) {
19107
19114
  if (o === void 0) {
19108
19115
  o = s = 0;
19109
- for (const I of n) o += t[I * 2], s += t[I * 2 + 1];
19116
+ for (const L of n) o += t[L * 2], s += t[L * 2 + 1];
19110
19117
  o /= n.length, s /= n.length;
19111
19118
  }
19112
- const B = 1e9 * Math.sign((o - x) * N - (s - C) * $);
19113
- b = (x + M) / 2 - B * N, _ = (C + R) / 2 + B * $;
19119
+ const z = 1e9 * Math.sign((o - x) * N - (s - C) * $);
19120
+ b = (x + M) / 2 - z * N, _ = (C + R) / 2 + z * $;
19114
19121
  } else {
19115
- const B = 1 / D, I = F * F + T * T, V = $ * $ + N * N;
19116
- b = x + (N * I - T * V) * B, _ = C + (F * V - $ * I) * B;
19122
+ const z = 1 / D, L = F * F + T * T, Y = $ * $ + N * N;
19123
+ b = x + (N * L - T * Y) * z, _ = C + (F * Y - $ * L) * z;
19117
19124
  }
19118
19125
  a[m] = b, a[m + 1] = _;
19119
19126
  }
@@ -19588,10 +19595,10 @@ function zQ() {
19588
19595
  function h(p, g, m) {
19589
19596
  for (var y = g.x, b = g.y, _ = Math.hypot(e[0], e[1]), v = l(e), w = c() < 0.5 ? 1 : -1, E = -w, x, C, S; (x = v(E += w)) && (C = ~~x[0], S = ~~x[1], !(Math.min(Math.abs(C), Math.abs(S)) >= _)); )
19590
19597
  if (g.x = y + C, g.y = b + S, !(g.x + g.x0 < 0 || g.y + g.y0 < 0 || g.x + g.x1 > e[0] || g.y + g.y1 > e[1]) && (!m || !UQ(g, p, e[0])) && (!m || qQ(g, m))) {
19591
- for (var A = g.sprite, M = g.width >> 5, R = e[0] >> 5, F = g.x - (M << 4), T = F & 127, $ = 32 - T, N = g.y1 - g.y0, D = (g.y + g.y0) * R + (F >> 5), B, I = 0; I < N; I++) {
19592
- B = 0;
19593
- for (var V = 0; V <= M; V++)
19594
- p[D + V] |= B << $ | (V < M ? (B = A[I * M + V]) >>> T : 0);
19598
+ for (var A = g.sprite, M = g.width >> 5, R = e[0] >> 5, F = g.x - (M << 4), T = F & 127, $ = 32 - T, N = g.y1 - g.y0, D = (g.y + g.y0) * R + (F >> 5), z, L = 0; L < N; L++) {
19599
+ z = 0;
19600
+ for (var Y = 0; Y <= M; Y++)
19601
+ p[D + Y] |= z << $ | (Y < M ? (z = A[L * M + Y]) >>> T : 0);
19595
19602
  D += R;
19596
19603
  }
19597
19604
  return g.sprite = null, !0;
@@ -19775,7 +19782,7 @@ xw.Definition = {
19775
19782
  };
19776
19783
  X(xw, O, {
19777
19784
  transform(e, t) {
19778
- e.size && !(e.size[0] && e.size[1]) && L("Wordcloud size dimensions must be non-zero.");
19785
+ e.size && !(e.size[0] && e.size[1]) && I("Wordcloud size dimensions must be non-zero.");
19779
19786
  function n(p) {
19780
19787
  const g = e[p];
19781
19788
  return ve(g) && t.modified(g.fields);
@@ -20847,7 +20854,7 @@ function wD(e) {
20847
20854
  sqrt: "Math.sqrt",
20848
20855
  tan: "Math.tan",
20849
20856
  clamp: function(s) {
20850
- s.length < 3 && L("Missing arguments to clamp function."), s.length > 3 && L("Too many arguments to clamp function.");
20857
+ s.length < 3 && I("Missing arguments to clamp function."), s.length > 3 && I("Too many arguments to clamp function.");
20851
20858
  const a = s.map(e);
20852
20859
  return "Math.max(" + a[1] + ", Math.min(" + a[2] + "," + a[0] + "))";
20853
20860
  },
@@ -20891,7 +20898,7 @@ function wD(e) {
20891
20898
  test: n("test", o),
20892
20899
  // Control Flow functions
20893
20900
  if: function(s) {
20894
- s.length < 3 && L("Missing arguments to if function."), s.length > 3 && L("Too many arguments to if function.");
20901
+ s.length < 3 && I("Missing arguments to if function."), s.length > 3 && I("Too many arguments to if function.");
20895
20902
  const a = s.map(e);
20896
20903
  return "(" + a[0] + "?" + a[1] + ":" + a[2] + ")";
20897
20904
  }
@@ -20909,13 +20916,13 @@ function ED(e) {
20909
20916
  function f(p) {
20910
20917
  if (J(p)) return p;
20911
20918
  const g = d[p.type];
20912
- return g == null && L("Unsupported type: " + p.type), g(p);
20919
+ return g == null && I("Unsupported type: " + p.type), g(p);
20913
20920
  }
20914
20921
  const d = {
20915
20922
  Literal: (p) => p.raw,
20916
20923
  Identifier: (p) => {
20917
20924
  const g = p.name;
20918
- return c > 0 ? g : ee(n, g) ? L("Illegal identifier: " + g) : ee(r, g) ? r[g] : ee(t, g) ? g : (l[g] = 1, a(g));
20925
+ return c > 0 ? g : ee(n, g) ? I("Illegal identifier: " + g) : ee(r, g) ? r[g] : ee(t, g) ? g : (l[g] = 1, a(g));
20919
20926
  },
20920
20927
  MemberExpression: (p) => {
20921
20928
  const g = !p.computed, m = f(p.object);
@@ -20924,9 +20931,9 @@ function ED(e) {
20924
20931
  return m === s && (u[lte(y)] = 1), g && (c -= 1), m + (g ? "." + y : "[" + y + "]");
20925
20932
  },
20926
20933
  CallExpression: (p) => {
20927
- p.callee.type !== "Identifier" && L("Illegal callee type: " + p.callee.type);
20934
+ p.callee.type !== "Identifier" && I("Illegal callee type: " + p.callee.type);
20928
20935
  const g = p.callee.name, m = p.arguments, y = ee(i, g) && i[g];
20929
- return y || L("Unrecognized function: " + g), ve(y) ? y(m) : y + "(" + m.map(f).join(",") + ")";
20936
+ return y || I("Unrecognized function: " + g), ve(y) ? y(m) : y + "(" + m.map(f).join(",") + ")";
20930
20937
  },
20931
20938
  ArrayExpression: (p) => "[" + p.elements.map(f).join(",") + "]",
20932
20939
  BinaryExpression: (p) => "(" + f(p.left) + " " + p.operator + " " + f(p.right) + ")",
@@ -20936,7 +20943,7 @@ function ED(e) {
20936
20943
  ObjectExpression: (p) => {
20937
20944
  for (const g of p.properties) {
20938
20945
  const m = g.key.name;
20939
- cv.has(m) && L("Illegal property: " + m);
20946
+ cv.has(m) && I("Illegal property: " + m);
20940
20947
  }
20941
20948
  return "{" + p.properties.map(f).join(",") + "}";
20942
20949
  },
@@ -20963,8 +20970,8 @@ function kD(e) {
20963
20970
  const Aw = "intersect", Q$ = "union", ute = "vlMulti", cte = "vlPoint", eA = "or", fte = "and", ki = "_vgsid_", If = Sr(ki), dte = "E", hte = "R", pte = "R-E", gte = "R-LE", mte = "R-RE", yte = "E-LT", bte = "E-LTE", _te = "E-GT", vte = "E-GTE", xte = "E-VALID", wte = "E-ONE", _g = "index:unit";
20964
20971
  function tA(e, t) {
20965
20972
  for (var n = t.fields, r = t.values, i = n.length, o = 0, s, a; o < i; ++o)
20966
- if (a = n[o], s = kD(a)(e), us(s) && (s = cn(s)), us(r[o]) && (r[o] = cn(r[o])), z(r[o]) && us(r[o][0]) && (r[o] = r[o].map(cn)), a.type === dte) {
20967
- if (z(r[o]) ? !r[o].includes(s) : s !== r[o])
20973
+ if (a = n[o], s = kD(a)(e), us(s) && (s = cn(s)), us(r[o]) && (r[o] = cn(r[o])), B(r[o]) && us(r[o][0]) && (r[o] = r[o].map(cn)), a.type === dte) {
20974
+ if (B(r[o]) ? !r[o].includes(s) : s !== r[o])
20968
20975
  return !1;
20969
20976
  } else if (a.type === hte) {
20970
20977
  if (!Dl(s, r[o])) return !1;
@@ -21008,7 +21015,7 @@ function Ste(e, t, n) {
21008
21015
  return !0;
21009
21016
  }
21010
21017
  function $te(e, t) {
21011
- return z(e) || L("First argument to selectionTuples must be an array."), Z(t) || L("Second argument to selectionTuples must be an object."), e.map((n) => xe(t.fields ? {
21018
+ return B(e) || I("First argument to selectionTuples must be an array."), Z(t) || I("Second argument to selectionTuples must be an object."), e.map((n) => we(t.fields ? {
21012
21019
  values: t.fields.map((r) => kD(r)(n.datum))
21013
21020
  } : {
21014
21021
  [ki]: If(n.datum)
@@ -21060,7 +21067,7 @@ var J1 = {
21060
21067
  };
21061
21068
  const Mte = ":", Tte = "@";
21062
21069
  function Mw(e, t, n, r) {
21063
- t[0].type !== Oa && L("First argument to selection functions must be a string literal.");
21070
+ t[0].type !== Oa && I("First argument to selection functions must be a string literal.");
21064
21071
  const i = t[0].value, o = t.length >= 2 && Re(t).value, s = "unit", a = Tte + s, l = Mte + i;
21065
21072
  o === Aw && !ee(r, a) && (r[a] = n.getData(i).indataRef(n, s)), ee(r, l) || (r[l] = n.getData(i).tuplesRef());
21066
21073
  }
@@ -21104,7 +21111,7 @@ function Ute(e) {
21104
21111
  }
21105
21112
  const jte = ":", qte = "@", p_ = "%", AD = "$";
21106
21113
  function Tw(e, t, n, r) {
21107
- t[0].type !== Oa && L("First argument to data functions must be a string literal.");
21114
+ t[0].type !== Oa && I("First argument to data functions must be a string literal.");
21108
21115
  const i = t[0].value, o = jte + i;
21109
21116
  if (!ee(o, r))
21110
21117
  try {
@@ -21113,7 +21120,7 @@ function Tw(e, t, n, r) {
21113
21120
  }
21114
21121
  }
21115
21122
  function Wte(e, t, n, r) {
21116
- t[0].type !== Oa && L("First argument to indata must be a string literal."), t[1].type !== Oa && L("Second argument to indata must be a string literal.");
21123
+ t[0].type !== Oa && I("First argument to indata must be a string literal."), t[1].type !== Oa && I("Second argument to indata must be a string literal.");
21117
21124
  const i = t[0].value, o = t[1].value, s = qte + o;
21118
21125
  ee(s, r) || (r[s] = n.getData(i).indataRef(n, o));
21119
21126
  }
@@ -21205,10 +21212,10 @@ function ene(e, t) {
21205
21212
  }
21206
21213
  function tne() {
21207
21214
  const e = [].slice.call(arguments);
21208
- return e.unshift({}), xe(...e);
21215
+ return e.unshift({}), we(...e);
21209
21216
  }
21210
21217
  function MD(e, t) {
21211
- return e === t || e !== e && t !== t ? !0 : z(e) ? z(t) && e.length === t.length ? nne(e, t) : !1 : Z(e) && Z(t) ? TD(e, t) : !1;
21218
+ return e === t || e !== e && t !== t ? !0 : B(e) ? B(t) && e.length === t.length ? nne(e, t) : !1 : Z(e) && Z(t) ? TD(e, t) : !1;
21212
21219
  }
21213
21220
  function nne(e, t) {
21214
21221
  for (let n = 0, r = e.length; n < r; ++n)
@@ -21230,7 +21237,7 @@ function rne(e, t, n, r, i, o) {
21230
21237
  return 0;
21231
21238
  if ((!c || c.stamp < u) && (a.changes = c = s.changeset(), c.stamp = u, s.runAfter(() => {
21232
21239
  a.modified = !0, s.pulse(l, c).run();
21233
- }, !0, 1)), n && (f = n === !0 ? $r : z(n) || nm(n) ? n : rA(n), c.remove(f)), t && c.insert(t), r && (f = rA(r), l.value.some(f) ? c.remove(f) : c.insert(r)), i) {
21240
+ }, !0, 1)), n && (f = n === !0 ? $r : B(n) || nm(n) ? n : rA(n), c.remove(f)), t && c.insert(t), r && (f = rA(r), l.value.some(f) ? c.remove(f) : c.insert(r)), i) {
21234
21241
  if (ve(i))
21235
21242
  throw Error("modify parameter must be a data tuple, not a function");
21236
21243
  for (d in o)
@@ -21249,10 +21256,10 @@ function one(e) {
21249
21256
  const iA = {};
21250
21257
  function sne(e, t) {
21251
21258
  const n = iA[t] || (iA[t] = Sr(t));
21252
- return z(e) ? e.map(n) : n(e);
21259
+ return B(e) ? e.map(n) : n(e);
21253
21260
  }
21254
21261
  function Ym(e) {
21255
- return z(e) || ArrayBuffer.isView(e) ? e : null;
21262
+ return B(e) || ArrayBuffer.isView(e) ? e : null;
21256
21263
  }
21257
21264
  function Rw(e) {
21258
21265
  return Ym(e) || (J(e) ? e : null);
@@ -21270,7 +21277,7 @@ function cne(e, ...t) {
21270
21277
  return Rw(e).slice(...t);
21271
21278
  }
21272
21279
  function fne(e, t, n) {
21273
- return ve(n) && L("Function argument passed to replace."), !J(t) && !bv(t) && L("Please pass a string or RegExp argument to replace."), String(e).replace(t, n);
21280
+ return ve(n) && I("Function argument passed to replace."), !J(t) && !bv(t) && I("Please pass a string or RegExp argument to replace."), String(e).replace(t, n);
21274
21281
  }
21275
21282
  function dne(e) {
21276
21283
  return Ym(e).slice().reverse();
@@ -21295,7 +21302,7 @@ function yne(e, t) {
21295
21302
  }
21296
21303
  function bne(e, t, n) {
21297
21304
  const r = Ki(e, (n || this).context);
21298
- return r ? z(t) ? (r.invertRange || r.invert)(t) : (r.invert || r.invertExtent)(t) : void 0;
21305
+ return r ? B(t) ? (r.invertRange || r.invert)(t) : (r.invert || r.invertExtent)(t) : void 0;
21299
21306
  }
21300
21307
  function _ne(e, t) {
21301
21308
  const n = Ki(e, (t || this).context);
@@ -21405,7 +21412,7 @@ const Pf = {
21405
21412
  sampleNormal: sm,
21406
21413
  sampleLogNormal: Wv,
21407
21414
  sampleUniform: Yv,
21408
- isArray: z,
21415
+ isArray: B,
21409
21416
  isBoolean: Ja,
21410
21417
  isDate: us,
21411
21418
  isDefined(e) {
@@ -21514,7 +21521,7 @@ function Lne(e) {
21514
21521
  Dne.forEach((n) => t[n] = One + n);
21515
21522
  for (const n in Pf)
21516
21523
  t[n] = OD + n;
21517
- return xe(t, Hte(e, Pf, Dw)), t;
21524
+ return we(t, Hte(e, Pf, Dw)), t;
21518
21525
  }
21519
21526
  function wt(e, t, n) {
21520
21527
  return arguments.length === 1 ? Pf[e] : (Pf[e] = t, n && (Dw[e] = n), m_ && (m_.functions[e] = OD + e), this);
@@ -21545,7 +21552,7 @@ function Bi(e, t) {
21545
21552
  try {
21546
21553
  e = J(e) ? e : G(e) + "", r = $w(e);
21547
21554
  } catch {
21548
- L("Expression parse error: " + e);
21555
+ I("Expression parse error: " + e);
21549
21556
  }
21550
21557
  r.visit((o) => {
21551
21558
  if (o.type !== pD) return;
@@ -21557,7 +21564,7 @@ function Bi(e, t) {
21557
21564
  const s = AD + o;
21558
21565
  !ee(n, s) && t.getSignal(o) && (n[s] = t.signalRef(o));
21559
21566
  }), {
21560
- $expr: xe({
21567
+ $expr: we({
21561
21568
  code: i.code
21562
21569
  }, t.options.ast ? {
21563
21570
  ast: r
@@ -21657,7 +21664,7 @@ function Hne(e) {
21657
21664
  const t = this;
21658
21665
  if (e.params) {
21659
21666
  const n = t.get(e.id);
21660
- n || L("Invalid operator id: " + e.id), t.dataflow.connect(n, n.parameters(t.parseParameters(e.params), e.react, e.initonly));
21667
+ n || I("Invalid operator id: " + e.id), t.dataflow.connect(n, n.parameters(t.parseParameters(e.params), e.react, e.initonly));
21661
21668
  }
21662
21669
  }
21663
21670
  function Gne(e, t) {
@@ -21665,7 +21672,7 @@ function Gne(e, t) {
21665
21672
  const n = this;
21666
21673
  for (const r in e) {
21667
21674
  const i = e[r];
21668
- t[r] = z(i) ? i.map((o) => sA(o, n, t)) : sA(i, n, t);
21675
+ t[r] = B(i) ? i.map((o) => sA(o, n, t)) : sA(i, n, t);
21669
21676
  }
21670
21677
  return t;
21671
21678
  }
@@ -21705,7 +21712,7 @@ var aA = [{
21705
21712
  parse: tre
21706
21713
  }];
21707
21714
  function Vne(e, t) {
21708
- return t.get(e.$ref) || L("Operator not defined: " + e.$ref);
21715
+ return t.get(e.$ref) || I("Operator not defined: " + e.$ref);
21709
21716
  }
21710
21717
  function Yne(e, t, n) {
21711
21718
  e.$params && t.parseParameters(e.$params, n);
@@ -21722,7 +21729,7 @@ function Kne(e, t) {
21722
21729
  return t.fn[n] || (t.fn[n] = Sr(e.$field, e.$name, t.expr.codegen));
21723
21730
  }
21724
21731
  function Zne(e, t) {
21725
- const n = "c:" + e.$compare + "_" + e.$order, r = Q(e.$compare).map((i) => i && i.$tupleid ? ae : i);
21732
+ const n = "c:" + e.$compare + "_" + e.$order, r = Q(e.$compare).map((i) => i && i.$tupleid ? le : i);
21726
21733
  return t.fn[n] || (t.fn[n] = mv(r, e.$order, t.expr.codegen));
21727
21734
  }
21728
21735
  function Jne(e, t) {
@@ -21744,15 +21751,15 @@ function ere(e, t) {
21744
21751
  };
21745
21752
  }
21746
21753
  function tre() {
21747
- return ae;
21754
+ return le;
21748
21755
  }
21749
21756
  function nre(e) {
21750
21757
  var t = this, n = e.filter != null ? t.eventExpression(e.filter) : void 0, r = e.stream != null ? t.get(e.stream) : void 0, i;
21751
- e.source ? r = t.events(e.source, e.type, n) : e.merge && (i = e.merge.map((o) => t.get(o)), r = i[0].merge.apply(i[0], i.slice(1))), e.between && (i = e.between.map((o) => t.get(o)), r = r.between(i[0], i[1])), e.filter && (r = r.filter(n)), e.throttle != null && (r = r.throttle(+e.throttle)), e.debounce != null && (r = r.debounce(+e.debounce)), r == null && L("Invalid stream definition: " + JSON.stringify(e)), e.consume && r.consume(!0), t.stream(e, r);
21758
+ e.source ? r = t.events(e.source, e.type, n) : e.merge && (i = e.merge.map((o) => t.get(o)), r = i[0].merge.apply(i[0], i.slice(1))), e.between && (i = e.between.map((o) => t.get(o)), r = r.between(i[0], i[1])), e.filter && (r = r.filter(n)), e.throttle != null && (r = r.throttle(+e.throttle)), e.debounce != null && (r = r.debounce(+e.debounce)), r == null && I("Invalid stream definition: " + JSON.stringify(e)), e.consume && r.consume(!0), t.stream(e, r);
21752
21759
  }
21753
21760
  function rre(e) {
21754
21761
  var t = this, n = Z(n = e.source) ? n.$ref : n, r = t.get(n), i = null, o = e.update, s = void 0;
21755
- r || L("Source not defined: " + e.source), i = e.target && e.target.$expr ? t.eventExpression(e.target.$expr) : t.get(e.target), o && o.$expr && (o.$params && (s = t.parseParameters(o.$params)), o = t.handlerExpression(o.$expr)), t.update(e, r, i, o, s);
21762
+ r || I("Source not defined: " + e.source), i = e.target && e.target.$expr ? t.eventExpression(e.target.$expr) : t.get(e.target), o && o.$expr && (o.$params && (s = t.parseParameters(o.$params)), o = t.handlerExpression(o.$expr)), t.update(e, r, i, o, s);
21756
21763
  }
21757
21764
  const ire = {
21758
21765
  skip: !0
@@ -21907,13 +21914,13 @@ function y_(e, t) {
21907
21914
  }
21908
21915
  function vg(e, t) {
21909
21916
  var n = e._runtime.data;
21910
- return ee(n, t) || L("Unrecognized data set: " + t), n[t];
21917
+ return ee(n, t) || I("Unrecognized data set: " + t), n[t];
21911
21918
  }
21912
21919
  function cre(e, t) {
21913
21920
  return arguments.length < 2 ? vg(this, e).values.value : Xm.call(this, e, nl().remove($r).insert(t));
21914
21921
  }
21915
21922
  function Xm(e, t) {
21916
- n5(t) || L("Second argument to changes must be a changeset.");
21923
+ n5(t) || I("Second argument to changes must be a changeset.");
21917
21924
  const n = vg(this, e);
21918
21925
  return n.modified = !0, this.pulse(n.input, t);
21919
21926
  }
@@ -21983,11 +21990,11 @@ const uA = "view", mre = "timer", yre = "window", bre = {
21983
21990
  trap: !1
21984
21991
  };
21985
21992
  function _re(e) {
21986
- const t = xe({
21993
+ const t = we({
21987
21994
  defaults: {}
21988
21995
  }, e), n = (r, i) => {
21989
21996
  i.forEach((o) => {
21990
- z(r[o]) && (r[o] = ei(r[o]));
21997
+ B(r[o]) && (r[o] = ei(r[o]));
21991
21998
  });
21992
21999
  };
21993
22000
  return n(t.defaults, ["prevent", "allow"]), n(t, ["view", "window", "selector"]), t;
@@ -22247,10 +22254,10 @@ function hA(e) {
22247
22254
  }
22248
22255
  async function Iw(e, t, n, r) {
22249
22256
  const i = Lm(t), o = i && i.headless;
22250
- return o || L("Unrecognized renderer type: " + t), await e.runAsync(), qD(e, null, null, o, n, r).renderAsync(e._scenegraph.root);
22257
+ return o || I("Unrecognized renderer type: " + t), await e.runAsync(), qD(e, null, null, o, n, r).renderAsync(e._scenegraph.root);
22251
22258
  }
22252
22259
  async function zre(e, t) {
22253
- e !== rs.Canvas && e !== rs.SVG && e !== rs.PNG && L("Unrecognized image type: " + e);
22260
+ e !== rs.Canvas && e !== rs.SVG && e !== rs.PNG && I("Unrecognized image type: " + e);
22254
22261
  const n = await Iw(this, e, t);
22255
22262
  return e === rs.SVG ? Bre(n.svg(), "image/svg+xml") : n.canvas().toDataURL("image/png");
22256
22263
  }
@@ -22271,7 +22278,7 @@ function qre(e, t, n) {
22271
22278
  }
22272
22279
  function Wre(e) {
22273
22280
  var t = this._runtime.scales;
22274
- return ee(t, e) || L("Unrecognized scale or projection: " + e), t[e].value;
22281
+ return ee(t, e) || I("Unrecognized scale or projection: " + e), t[e].value;
22275
22282
  }
22276
22283
  var WD = "width", HD = "height", Pw = "padding", pA = {
22277
22284
  skip: !0
@@ -22317,7 +22324,7 @@ function Vre(e) {
22317
22324
  });
22318
22325
  }
22319
22326
  function Yre(e, t) {
22320
- return t.modified && z(t.input.value) && !e.startsWith("_:vega:_");
22327
+ return t.modified && B(t.input.value) && !e.startsWith("_:vega:_");
22321
22328
  }
22322
22329
  function Xre(e, t) {
22323
22330
  return !(e === "parent" || t instanceof nu.proxy);
@@ -22343,12 +22350,12 @@ function Jre(e, t, n, r) {
22343
22350
  i && i.setAttribute("title", Qre(r));
22344
22351
  }
22345
22352
  function Qre(e) {
22346
- return e == null ? "" : z(e) ? YD(e) : Z(e) && !us(e) ? eie(e) : e + "";
22353
+ return e == null ? "" : B(e) ? YD(e) : Z(e) && !us(e) ? eie(e) : e + "";
22347
22354
  }
22348
22355
  function eie(e) {
22349
22356
  return Object.keys(e).map((t) => {
22350
22357
  const n = e[t];
22351
- return t + ": " + (z(n) ? YD(n) : XD(n));
22358
+ return t + ": " + (B(n) ? YD(n) : XD(n));
22352
22359
  }).join(`
22353
22360
  `);
22354
22361
  }
@@ -22356,7 +22363,7 @@ function YD(e) {
22356
22363
  return "[" + e.map(XD).join(", ") + "]";
22357
22364
  }
22358
22365
  function XD(e) {
22359
- return z(e) ? "[…]" : Z(e) && !us(e) ? "{…}" : e;
22366
+ return B(e) ? "[…]" : Z(e) && !us(e) ? "{…}" : e;
22360
22367
  }
22361
22368
  function tie() {
22362
22369
  if (this.renderer() === "canvas" && this._renderer._canvas) {
@@ -22374,7 +22381,7 @@ function tie() {
22374
22381
  function KD(e, t) {
22375
22382
  const n = this;
22376
22383
  if (t = t || {}, Ul.call(n), t.loader && n.loader(t.loader), t.logger && n.logger(t.logger), t.logLevel != null && n.logLevel(t.logLevel), t.locale || e.locale) {
22377
- const o = xe({}, e.locale, t.locale);
22384
+ const o = we({}, e.locale, t.locale);
22378
22385
  n.locale(G4(o.number, o.time));
22379
22386
  }
22380
22387
  n._el = null, n._elBind = null, n._renderType = t.renderer || rs.Canvas, n._scenegraph = new W6();
@@ -22383,11 +22390,11 @@ function KD(e, t) {
22383
22390
  const i = qre(n, e, t.expr);
22384
22391
  n._runtime = i, n._signals = i.signals, n._bind = (e.bindings || []).map((o) => ({
22385
22392
  state: null,
22386
- param: xe({}, o)
22393
+ param: we({}, o)
22387
22394
  })), i.root && i.root.set(r), r.source = i.data.root.input, n.pulse(i.data.root.input, n.changeset().insert(r.items)), n._width = n.width(), n._height = n.height(), n._viewWidth = GD(n, n._width), n._viewHeight = VD(n, n._height), n._origin = [0, 0], n._resize = 0, n._autosize = 1, Hre(n), lre(n), ure(n), n.description(e.description), t.hover && n.hover(), t.container && n.initialize(t.container, t.bind), t.watchPixelRatio && n._watchPixelRatio();
22388
22395
  }
22389
22396
  function _h(e, t) {
22390
- return ee(e._signals, t) ? e._signals[t] : L("Unrecognized signal name: " + G(t));
22397
+ return ee(e._signals, t) ? e._signals[t] : I("Unrecognized signal name: " + G(t));
22391
22398
  }
22392
22399
  function ZD(e, t) {
22393
22400
  const n = (e._targets || []).filter((r) => r._update && r._update.handler === t);
@@ -22452,7 +22459,7 @@ X(KD, Ul, {
22452
22459
  return arguments.length ? this.signal("background", e) : this.signal("background");
22453
22460
  },
22454
22461
  renderer(e) {
22455
- return arguments.length ? (Lm(e) || L("Unrecognized renderer type: " + e), e !== this._renderType && (this._renderType = e, this._resetRenderer()), this) : this._renderType;
22462
+ return arguments.length ? (Lm(e) || I("Unrecognized renderer type: " + e), e !== this._renderType && (this._renderType = e, this._resetRenderer()), this) : this._renderType;
22456
22463
  },
22457
22464
  tooltip(e) {
22458
22465
  return arguments.length ? (e !== this._tooltip && (this._tooltip = e, this._resetRenderer()), this) : this._tooltip;
@@ -22653,11 +22660,11 @@ function pie(e) {
22653
22660
  right: Cc(e.right)
22654
22661
  } : hie(Cc(e));
22655
22662
  }
22656
- const jt = (e) => Z(e) && !z(e) ? xe({}, e) : {
22663
+ const jt = (e) => Z(e) && !B(e) ? we({}, e) : {
22657
22664
  value: e
22658
22665
  };
22659
22666
  function yA(e, t, n, r) {
22660
- return n != null ? (Z(n) && !z(n) || z(n) && n.length && Z(n[0]) ? e.update[t] = n : e[r || "enter"][t] = {
22667
+ return n != null ? (Z(n) && !B(n) || B(n) && n.length && Z(n[0]) ? e.update[t] = n : e[r || "enter"][t] = {
22661
22668
  value: n
22662
22669
  }, 1) : 0;
22663
22670
  }
@@ -22669,7 +22676,7 @@ function tn(e, t, n) {
22669
22676
  }
22670
22677
  function Xu(e, t, n) {
22671
22678
  for (const r in t)
22672
- n && ee(n, r) || (e[r] = xe(e[r] || {}, t[r]));
22679
+ n && ee(n, r) || (e[r] = we(e[r] || {}, t[r]));
22673
22680
  return e;
22674
22681
  }
22675
22682
  function Fl(e, t) {
@@ -22679,17 +22686,17 @@ const zw = "mark", Bw = "frame", Uw = "scope", gie = "axis", mie = "axis-domain"
22679
22686
  function Tie(e, t, n, r, i) {
22680
22687
  const o = {}, s = {};
22681
22688
  let a, l, u, c;
22682
- l = "lineBreak", t === "text" && i[l] != null && !Fl(l, e) && ny(o, l, i[l]), (n == "legend" || String(n).startsWith("axis")) && (n = null), c = n === Bw ? i.group : n === zw ? xe({}, i.mark, i[t]) : null;
22689
+ l = "lineBreak", t === "text" && i[l] != null && !Fl(l, e) && ny(o, l, i[l]), (n == "legend" || String(n).startsWith("axis")) && (n = null), c = n === Bw ? i.group : n === zw ? we({}, i.mark, i[t]) : null;
22683
22690
  for (l in c)
22684
22691
  u = Fl(l, e) || (l === "fill" || l === "stroke") && (Fl("fill", e) || Fl("stroke", e)), u || ny(o, l, c[l]);
22685
22692
  Q(r).forEach((f) => {
22686
22693
  const d = i.style && i.style[f];
22687
22694
  for (const h in d)
22688
22695
  Fl(h, e) || ny(o, h, d[h]);
22689
- }), e = xe({}, e);
22696
+ }), e = we({}, e);
22690
22697
  for (l in o)
22691
22698
  c = o[l], c.signal ? (a = a || {})[l] = c : s[l] = c;
22692
- return e.enter = xe(s, e.enter), a && (e.update = xe(a, e.update)), e;
22699
+ return e.enter = we(s, e.enter), a && (e.update = we(a, e.update)), e;
22693
22700
  }
22694
22701
  function ny(e, t, n) {
22695
22702
  e[t] = n && n.signal ? {
@@ -22730,7 +22737,7 @@ function a8(e) {
22730
22737
  for (n = Math.max(1, e.level || 1), t = "item"; n-- > 0; )
22731
22738
  t += ".mark.group";
22732
22739
  e.parent ? (r = e.parent, t += ".datum") : r = e.group;
22733
- } else e.datum ? (t = "datum", r = e.datum) : L("Invalid field reference: " + G(e));
22740
+ } else e.datum ? (t = "datum", r = e.datum) : I("Invalid field reference: " + G(e));
22734
22741
  return e.signal || (r = J(r) ? Wi(r).map(G).join("][") : a8(r)), t + "[" + r + "]";
22735
22742
  }
22736
22743
  function Rie(e, t) {
@@ -22767,15 +22774,15 @@ function Oie(e, t, n, r) {
22767
22774
  };
22768
22775
  }
22769
22776
  function Lie(e) {
22770
- return z(e) ? Die(e) : Zm(e);
22777
+ return B(e) ? Die(e) : Zm(e);
22771
22778
  }
22772
22779
  function Iie(e, t, n, r) {
22773
22780
  const i = Bi(e, t);
22774
- return i.$fields.forEach((o) => r[o] = 1), xe(n, i.$params), i.$expr;
22781
+ return i.$fields.forEach((o) => r[o] = 1), we(n, i.$params), i.$expr;
22775
22782
  }
22776
22783
  const Pie = "outer", zie = ["value", "update", "init", "react", "bind"];
22777
22784
  function bA(e, t) {
22778
- L(e + ' for "outer" push: ' + G(t));
22785
+ I(e + ' for "outer" push: ' + G(t));
22779
22786
  }
22780
22787
  function u8(e, t) {
22781
22788
  const n = e.name;
@@ -22797,7 +22804,7 @@ function Jm(e, t, n, r) {
22797
22804
  function kg(e, t) {
22798
22805
  return Jm("operator", e, t);
22799
22806
  }
22800
- function se(e) {
22807
+ function ae(e) {
22801
22808
  const t = {
22802
22809
  $ref: e.id
22803
22810
  };
@@ -22854,7 +22861,7 @@ function xa(e) {
22854
22861
  }
22855
22862
  const vA = "timer";
22856
22863
  function Bf(e, t) {
22857
- return (e.merge ? Gie : e.stream ? Vie : e.type ? Yie : L("Invalid stream specification: " + G(e)))(e, t);
22864
+ return (e.merge ? Gie : e.stream ? Vie : e.type ? Yie : I("Invalid stream specification: " + G(e)))(e, t);
22858
22865
  }
22859
22866
  function Hie(e) {
22860
22867
  return e === jw ? x_ : e || x_;
@@ -22884,7 +22891,7 @@ function Yie(e, t) {
22884
22891
  }
22885
22892
  function qw(e, t, n) {
22886
22893
  let r = t.between;
22887
- return r && (r.length !== 2 && L('Stream "between" parameter must have 2 entries: ' + G(t)), e.between = [Bf(r[0], n), Bf(r[1], n)]), r = t.filter ? [].concat(t.filter) : [], (t.marktype || t.markname || t.markrole) && r.push(Xie(t.marktype, t.markname, t.markrole)), t.source === jw && r.push("inScope(event.item)"), r.length && (e.filter = Bi("(" + r.join(")&&(") + ")", n).$expr), (r = t.throttle) != null && (e.throttle = +r), (r = t.debounce) != null && (e.debounce = +r), t.consume && (e.consume = !0), e;
22894
+ return r && (r.length !== 2 && I('Stream "between" parameter must have 2 entries: ' + G(t)), e.between = [Bf(r[0], n), Bf(r[1], n)]), r = t.filter ? [].concat(t.filter) : [], (t.marktype || t.markname || t.markrole) && r.push(Xie(t.marktype, t.markname, t.markrole)), t.source === jw && r.push("inScope(event.item)"), r.length && (e.filter = Bi("(" + r.join(")&&(") + ")", n).$expr), (r = t.throttle) != null && (e.throttle = +r), (r = t.debounce) != null && (e.debounce = +r), t.consume && (e.consume = !0), e;
22888
22895
  }
22889
22896
  function Xie(e, t, n) {
22890
22897
  const r = "event.item";
@@ -22902,16 +22909,16 @@ function Zie(e, t, n) {
22902
22909
  target: n
22903
22910
  };
22904
22911
  let o = e.events, s = e.update, a = [];
22905
- o || L("Signal update missing events specification."), J(o) && (o = Os(o, t.isSubscope() ? jw : x_)), o = Q(o).filter((l) => l.signal || l.scale ? (a.push(l), 0) : 1), a.length > 1 && (a = [Qie(a)]), o.length && a.push(o.length > 1 ? {
22912
+ o || I("Signal update missing events specification."), J(o) && (o = Os(o, t.isSubscope() ? jw : x_)), o = Q(o).filter((l) => l.signal || l.scale ? (a.push(l), 0) : 1), a.length > 1 && (a = [Qie(a)]), o.length && a.push(o.length > 1 ? {
22906
22913
  merge: o
22907
- } : o[0]), r != null && (s && L("Signal encode and update are mutually exclusive."), s = "encode(item()," + G(r) + ")"), i.update = J(s) ? Bi(s, t) : s.expr != null ? Bi(s.expr, t) : s.value != null ? s.value : s.signal != null ? {
22914
+ } : o[0]), r != null && (s && I("Signal encode and update are mutually exclusive."), s = "encode(item()," + G(r) + ")"), i.update = J(s) ? Bi(s, t) : s.expr != null ? Bi(s.expr, t) : s.value != null ? s.value : s.signal != null ? {
22908
22915
  $expr: Kie,
22909
22916
  $params: {
22910
22917
  $value: t.signalRef(s.signal)
22911
22918
  }
22912
- } : L("Invalid signal update specification."), e.force && (i.options = {
22919
+ } : I("Invalid signal update specification."), e.force && (i.options = {
22913
22920
  force: !0
22914
- }), a.forEach((l) => t.addUpdate(xe(Jie(l, t), i)));
22921
+ }), a.forEach((l) => t.addUpdate(we(Jie(l, t), i)));
22915
22922
  }
22916
22923
  function Jie(e, t) {
22917
22924
  return {
@@ -22926,7 +22933,7 @@ function Qie(e) {
22926
22933
  function eoe(e, t) {
22927
22934
  const n = t.getSignal(e.name);
22928
22935
  let r = e.update;
22929
- e.init && (r ? L("Signals can not include both init and update expressions.") : (r = e.init, n.initonly = !0)), r && (r = Bi(r, t), n.update = r.$expr, n.params = r.$params), e.on && e.on.forEach((i) => Zie(i, t, n.id));
22936
+ e.init && (r ? I("Signals can not include both init and update expressions.") : (r = e.init, n.initonly = !0)), r && (r = Bi(r, t), n.update = r.$expr, n.params = r.$params), e.on && e.on.forEach((i) => Zie(i, t, n.id));
22930
22937
  }
22931
22938
  const Je = (e) => (t, n, r) => Jm(e, n, t || void 0, r), c8 = Je("aggregate"), toe = Je("axisticks"), f8 = Je("bound"), li = Je("collect"), xA = Je("compare"), noe = Je("datajoin"), d8 = Je("encode"), roe = Je("expression"), ioe = Je("facet"), ooe = Je("field"), soe = Je("key"), aoe = Je("legendentries"), loe = Je("load"), uoe = Je("mark"), coe = Je("multiextent"), foe = Je("multivalues"), doe = Je("overlap"), hoe = Je("params"), h8 = Je("prefacet"), poe = Je("projection"), goe = Je("proxy"), moe = Je("relay"), p8 = Je("render"), yoe = Je("scale"), sl = Je("sieve"), boe = Je("sortitems"), g8 = Je("viewlayout"), _oe = Je("values");
22932
22939
  let voe = 0;
@@ -22937,7 +22944,7 @@ const m8 = {
22937
22944
  };
22938
22945
  function xoe(e, t) {
22939
22946
  const n = e.type || "linear";
22940
- r6(n) || L("Unrecognized scale type: " + G(n)), t.addScale(e.name, {
22947
+ r6(n) || I("Unrecognized scale type: " + G(n)), t.addScale(e.name, {
22941
22948
  type: n,
22942
22949
  domain: void 0
22943
22950
  });
@@ -22950,20 +22957,20 @@ function woe(e, t) {
22950
22957
  ee(n, r) || r === "name" || (n[r] = wr(e[r], t));
22951
22958
  }
22952
22959
  function wr(e, t) {
22953
- return Z(e) ? e.signal ? t.signalRef(e.signal) : L("Unsupported object: " + G(e)) : e;
22960
+ return Z(e) ? e.signal ? t.signalRef(e.signal) : I("Unsupported object: " + G(e)) : e;
22954
22961
  }
22955
22962
  function np(e, t) {
22956
22963
  return e.signal ? t.signalRef(e.signal) : e.map((n) => wr(n, t));
22957
22964
  }
22958
22965
  function e0(e) {
22959
- L("Can not find data set: " + G(e));
22966
+ I("Can not find data set: " + G(e));
22960
22967
  }
22961
22968
  function y8(e, t, n) {
22962
22969
  if (!e) {
22963
- (t.domainMin != null || t.domainMax != null) && L("No scale domain defined for domainMin/domainMax to override.");
22970
+ (t.domainMin != null || t.domainMax != null) && I("No scale domain defined for domainMin/domainMax to override.");
22964
22971
  return;
22965
22972
  }
22966
- return e.signal ? n.signalRef(e.signal) : (z(e) ? Eoe : e.fields ? Coe : koe)(e, t, n);
22973
+ return e.signal ? n.signalRef(e.signal) : (B(e) ? Eoe : e.fields ? Coe : koe)(e, t, n);
22967
22974
  }
22968
22975
  function Eoe(e, t, n) {
22969
22976
  return e.map((r) => wr(r, n));
@@ -22976,12 +22983,12 @@ function Coe(e, t, n) {
22976
22983
  const r = e.data, i = e.fields.reduce((o, s) => (s = J(s) ? {
22977
22984
  data: r,
22978
22985
  field: s
22979
- } : z(s) || s.signal ? Soe(s, n) : s, o.push(s), o), []);
22986
+ } : B(s) || s.signal ? Soe(s, n) : s, o.push(s), o), []);
22980
22987
  return (au(t.type) ? $oe : s6(t.type) ? Aoe : Moe)(e, n, i);
22981
22988
  }
22982
22989
  function Soe(e, t) {
22983
22990
  const n = "_:vega:_" + voe++, r = li({});
22984
- if (z(e))
22991
+ if (B(e))
22985
22992
  r.value = {
22986
22993
  $ingest: e
22987
22994
  };
@@ -23006,25 +23013,25 @@ function $oe(e, t, n) {
23006
23013
  };
23007
23014
  r && (i = r.op || "count", o = r.field ? Qm(i, r.field) : "count", a.ops = [m8[i]], a.fields = [t.fieldRef(o)], a.as = [o]), i = t.add(c8(a));
23008
23015
  const l = t.add(li({
23009
- pulse: se(i)
23016
+ pulse: ae(i)
23010
23017
  }));
23011
23018
  return o = t.add(_oe({
23012
23019
  field: v_,
23013
23020
  sort: t.sortRef(r),
23014
- pulse: se(l)
23015
- })), se(o);
23021
+ pulse: ae(l)
23022
+ })), ae(o);
23016
23023
  }
23017
23024
  function b8(e, t) {
23018
23025
  return e && (!e.field && !e.op ? Z(e) ? e.field = "key" : e = {
23019
23026
  field: "key"
23020
- } : !e.field && e.op !== "count" ? L("No field provided for sort aggregate op: " + e.op) : t && e.field && e.op && !m8[e.op] && L("Multiple domain scales can not be sorted using " + e.op)), e;
23027
+ } : !e.field && e.op !== "count" ? I("No field provided for sort aggregate op: " + e.op) : t && e.field && e.op && !m8[e.op] && I("Multiple domain scales can not be sorted using " + e.op)), e;
23021
23028
  }
23022
23029
  function Aoe(e, t, n) {
23023
23030
  const r = n.map((i) => {
23024
23031
  const o = t.getData(i.data);
23025
23032
  return o || e0(i.data), o.domainRef(t, i.field);
23026
23033
  });
23027
- return se(t.add(foe({
23034
+ return ae(t.add(foe({
23028
23035
  values: r
23029
23036
  })));
23030
23037
  }
@@ -23033,12 +23040,12 @@ function Moe(e, t, n) {
23033
23040
  const o = t.getData(i.data);
23034
23041
  return o || e0(i.data), o.extentRef(t, i.field);
23035
23042
  });
23036
- return se(t.add(coe({
23043
+ return ae(t.add(coe({
23037
23044
  extents: r
23038
23045
  })));
23039
23046
  }
23040
23047
  function Toe(e, t) {
23041
- return e.signal || z(e) ? np(e, t) : t.objectProperty(e);
23048
+ return e.signal || B(e) ? np(e, t) : t.objectProperty(e);
23042
23049
  }
23043
23050
  function Noe(e, t) {
23044
23051
  return e.signal ? t.signalRef(e.signal) : Z(e) ? {
@@ -23056,7 +23063,7 @@ function _8(e, t, n) {
23056
23063
  return t.signalRef(i.signal);
23057
23064
  if (J(i)) {
23058
23065
  if (r && ee(r, i))
23059
- return e = xe({}, e, {
23066
+ return e = we({}, e, {
23060
23067
  range: r[i]
23061
23068
  }), _8(e, t, n);
23062
23069
  i === "width" ? i = [0, {
@@ -23065,19 +23072,19 @@ function _8(e, t, n) {
23065
23072
  signal: "height"
23066
23073
  }] : [{
23067
23074
  signal: "height"
23068
- }, 0] : L("Unrecognized scale range value: " + G(i));
23075
+ }, 0] : I("Unrecognized scale range value: " + G(i));
23069
23076
  } else if (i.scheme) {
23070
- n.scheme = z(i.scheme) ? np(i.scheme, t) : wr(i.scheme, t), i.extent && (n.schemeExtent = np(i.extent, t)), i.count && (n.schemeCount = wr(i.count, t));
23077
+ n.scheme = B(i.scheme) ? np(i.scheme, t) : wr(i.scheme, t), i.extent && (n.schemeExtent = np(i.extent, t)), i.count && (n.schemeCount = wr(i.count, t));
23071
23078
  return;
23072
23079
  } else if (i.step) {
23073
23080
  n.rangeStep = wr(i.step, t);
23074
23081
  return;
23075
23082
  } else {
23076
- if (au(e.type) && !z(i))
23083
+ if (au(e.type) && !B(i))
23077
23084
  return y8(i, e, t);
23078
- z(i) || L("Unsupported range type: " + G(i));
23085
+ B(i) || I("Unsupported range type: " + G(i));
23079
23086
  }
23080
- return i.map((o) => (z(o) ? np : wr)(o, t));
23087
+ return i.map((o) => (B(o) ? np : wr)(o, t));
23081
23088
  }
23082
23089
  function Roe(e, t) {
23083
23090
  const n = t.config.projection || {}, r = {};
@@ -23088,7 +23095,7 @@ function Roe(e, t) {
23088
23095
  t.addProjection(e.name, r);
23089
23096
  }
23090
23097
  function w_(e, t, n) {
23091
- return z(e) ? e.map((r) => w_(r, t, n)) : Z(e) ? e.signal ? n.signalRef(e.signal) : t === "fit" ? e : L("Unsupported parameter object: " + G(e)) : e;
23098
+ return B(e) ? e.map((r) => w_(r, t, n)) : Z(e) ? e.signal ? n.signalRef(e.signal) : t === "fit" ? e : I("Unsupported parameter object: " + G(e)) : e;
23092
23099
  }
23093
23100
  const ui = "top", Ku = "left", Zu = "right", ks = "bottom", v8 = "center", Doe = "vertical", Ooe = "start", Loe = "middle", Ioe = "end", E_ = "index", Ww = "label", Poe = "offset", mu = "perc", zoe = "perc2", kr = "value", Cd = "guide-label", Hw = "guide-title", Boe = "group-title", Uoe = "group-subtitle", wA = "symbol", rp = "gradient", k_ = "discrete", C_ = "size", joe = "shape", qoe = "fill", Woe = "stroke", Hoe = "strokeWidth", Goe = "strokeDash", Voe = "opacity", Gw = [C_, joe, qoe, Woe, Hoe, Goe, Voe], Sd = {
23094
23101
  name: 1,
@@ -23156,7 +23163,7 @@ function Zoe(e, t, n, r) {
23156
23163
  width: jt(f),
23157
23164
  height: jt(d)
23158
23165
  },
23159
- update: xe({}, l, {
23166
+ update: we({}, l, {
23160
23167
  opacity: Cr,
23161
23168
  fill: {
23162
23169
  gradient: t,
@@ -23200,7 +23207,7 @@ function Joe(e, t, n, r, i) {
23200
23207
  }, p[d] = jt(a);
23201
23208
  const g = {
23202
23209
  enter: p,
23203
- update: xe({}, p, {
23210
+ update: we({}, p, {
23204
23211
  opacity: Cr
23205
23212
  }),
23206
23213
  exit: {
@@ -23505,7 +23512,7 @@ function hse(e, t) {
23505
23512
  }
23506
23513
  function Zw(e, t) {
23507
23514
  const n = o5(e.type);
23508
- n || L("Unrecognized transform type: " + G(e.type));
23515
+ n || I("Unrecognized transform type: " + G(e.type));
23509
23516
  const r = Jm(n.type.toLowerCase(), null, C8(n, e, t));
23510
23517
  return e.signal && t.addSignal(e.signal, t.proxy(r)), r.metadata = n.metadata || {}, r;
23511
23518
  }
@@ -23522,7 +23529,7 @@ function pse(e, t, n) {
23522
23529
  if (r === "index")
23523
23530
  return gse(e, t, n);
23524
23531
  if (i === void 0) {
23525
- e.required && L("Missing required " + G(t.type) + " parameter: " + G(e.name));
23532
+ e.required && I("Missing required " + G(t.type) + " parameter: " + G(e.name));
23526
23533
  return;
23527
23534
  } else {
23528
23535
  if (r === "param")
@@ -23535,18 +23542,18 @@ function pse(e, t, n) {
23535
23542
  function CA(e, t, n) {
23536
23543
  const r = e.type;
23537
23544
  if (Rt(t))
23538
- return $A(r) ? L("Expression references can not be signals.") : ry(r) ? n.fieldRef(t) : AA(r) ? n.compareRef(t) : n.signalRef(t.signal);
23545
+ return $A(r) ? I("Expression references can not be signals.") : ry(r) ? n.fieldRef(t) : AA(r) ? n.compareRef(t) : n.signalRef(t.signal);
23539
23546
  {
23540
23547
  const i = e.expr || ry(r);
23541
- return i && yse(t) ? n.exprRef(t.expr, t.as) : i && bse(t) ? zf(t.field, t.as) : $A(r) ? Bi(t, n) : _se(r) ? se(n.getData(t).values) : ry(r) ? zf(t) : AA(r) ? n.compareRef(t) : t;
23548
+ return i && yse(t) ? n.exprRef(t.expr, t.as) : i && bse(t) ? zf(t.field, t.as) : $A(r) ? Bi(t, n) : _se(r) ? ae(n.getData(t).values) : ry(r) ? zf(t) : AA(r) ? n.compareRef(t) : t;
23542
23549
  }
23543
23550
  }
23544
23551
  function gse(e, t, n) {
23545
- return J(t.from) || L('Lookup "from" parameter must be a string literal.'), n.getData(t.from).lookupRef(n, t.key);
23552
+ return J(t.from) || I('Lookup "from" parameter must be a string literal.'), n.getData(t.from).lookupRef(n, t.key);
23546
23553
  }
23547
23554
  function mse(e, t, n) {
23548
23555
  const r = t[e.name];
23549
- return e.array ? (z(r) || L("Expected an array of sub-parameters. Instead: " + G(r)), r.map((i) => SA(e, i, n))) : SA(e, r, n);
23556
+ return e.array ? (B(r) || I("Expected an array of sub-parameters. Instead: " + G(r)), r.map((i) => SA(e, i, n))) : SA(e, r, n);
23550
23557
  }
23551
23558
  function SA(e, t, n) {
23552
23559
  const r = e.params.length;
@@ -23560,24 +23567,24 @@ function SA(e, t, n) {
23560
23567
  }
23561
23568
  if (i) break;
23562
23569
  }
23563
- i || L("Unsupported parameter: " + G(t));
23564
- const o = xe(C8(i, t, n), i.key);
23565
- return se(n.add(hoe(o)));
23570
+ i || I("Unsupported parameter: " + G(t));
23571
+ const o = we(C8(i, t, n), i.key);
23572
+ return ae(n.add(hoe(o)));
23566
23573
  }
23567
23574
  const yse = (e) => e && e.expr, bse = (e) => e && e.field, _se = (e) => e === "data", $A = (e) => e === "expr", ry = (e) => e === "field", AA = (e) => e === "compare";
23568
23575
  function vse(e, t, n) {
23569
23576
  let r, i, o, s, a;
23570
- return e ? (r = e.facet) && (t || L("Only group marks can be faceted."), r.field != null ? s = a = ip(r, n) : (e.data ? a = se(n.getData(e.data).aggregate) : (o = Zw(xe({
23577
+ return e ? (r = e.facet) && (t || I("Only group marks can be faceted."), r.field != null ? s = a = ip(r, n) : (e.data ? a = ae(n.getData(e.data).aggregate) : (o = Zw(we({
23571
23578
  type: "aggregate",
23572
23579
  groupby: Q(r.groupby)
23573
- }, r.aggregate), n), o.params.key = n.keyRef(r.groupby), o.params.pulse = ip(r, n), s = a = se(n.add(o))), i = n.keyRef(r.groupby, !0))) : s = se(n.add(li(null, [{}]))), s || (s = ip(e, n)), {
23580
+ }, r.aggregate), n), o.params.key = n.keyRef(r.groupby), o.params.pulse = ip(r, n), s = a = ae(n.add(o))), i = n.keyRef(r.groupby, !0))) : s = ae(n.add(li(null, [{}]))), s || (s = ip(e, n)), {
23574
23581
  key: i,
23575
23582
  pulse: s,
23576
23583
  parent: a
23577
23584
  };
23578
23585
  }
23579
23586
  function ip(e, t) {
23580
- return e.$ref ? e : e.data && e.data.$ref ? e.data : se(t.getData(e.data).output);
23587
+ return e.$ref ? e : e.data && e.data.$ref ? e.data : ae(t.getData(e.data).output);
23581
23588
  }
23582
23589
  function Pa(e, t, n, r, i) {
23583
23590
  this.scope = e, this.input = t, this.output = n, this.values = r, this.aggregate = i, this.index = {};
@@ -23586,7 +23593,7 @@ Pa.fromEntries = function(e, t) {
23586
23593
  const n = t.length, r = t[n - 1], i = t[n - 2];
23587
23594
  let o = t[0], s = null, a = 1;
23588
23595
  for (o && o.type === "load" && (o = t[1]), e.add(t[0]); a < n; ++a)
23589
- t[a].params.pulse = se(t[a - 1]), e.add(t[a]), t[a].type === "aggregate" && (s = t[a]);
23596
+ t[a].params.pulse = ae(t[a - 1]), e.add(t[a]), t[a].type === "aggregate" && (s = t[a]);
23590
23597
  return new Pa(e, o, i, r, s);
23591
23598
  };
23592
23599
  function S8(e) {
@@ -23611,9 +23618,9 @@ function Sc(e, t, n, r, i, o, s) {
23611
23618
  pulse: t.countsRef(e, i, o)
23612
23619
  } : {
23613
23620
  field: e.fieldRef(i),
23614
- pulse: se(t.output)
23621
+ pulse: ae(t.output)
23615
23622
  };
23616
- l && (d.sort = e.sortRef(o)), f = e.add(Jm(r, void 0, d)), s && (t.index[i] = f), c = se(f), u != null && (a[u] = c);
23623
+ l && (d.sort = e.sortRef(o)), f = e.add(Jm(r, void 0, d)), s && (t.index[i] = f), c = ae(f), u != null && (a[u] = c);
23617
23624
  }
23618
23625
  return c;
23619
23626
  }
@@ -23623,16 +23630,16 @@ Pa.prototype = {
23623
23630
  let s, a, l;
23624
23631
  return o != null && (e = r.scope, s = i[o]), s ? n && n.field && MA(e, s.agg.params, n) : (l = {
23625
23632
  groupby: e.fieldRef(t, "key"),
23626
- pulse: se(r.output)
23633
+ pulse: ae(r.output)
23627
23634
  }, n && n.field && MA(e, l, n), a = e.add(c8(l)), s = e.add(li({
23628
- pulse: se(a)
23635
+ pulse: ae(a)
23629
23636
  })), s = {
23630
23637
  agg: a,
23631
- ref: se(s)
23638
+ ref: ae(s)
23632
23639
  }, o != null && (i[o] = s)), s.ref;
23633
23640
  },
23634
23641
  tuplesRef() {
23635
- return se(this.values);
23642
+ return ae(this.values);
23636
23643
  },
23637
23644
  extentRef(e, t) {
23638
23645
  return Sc(e, this, "extent", "extent", t, !1);
@@ -23653,16 +23660,16 @@ Pa.prototype = {
23653
23660
  function xse(e, t, n) {
23654
23661
  const r = e.from.facet, i = r.name, o = ip(r, t);
23655
23662
  let s;
23656
- r.name || L("Facet must have a name: " + G(r)), r.data || L("Facet must reference a data set: " + G(r)), r.field ? s = t.add(h8({
23663
+ r.name || I("Facet must have a name: " + G(r)), r.data || I("Facet must reference a data set: " + G(r)), r.field ? s = t.add(h8({
23657
23664
  field: t.fieldRef(r.field),
23658
23665
  pulse: o
23659
23666
  })) : r.groupby ? s = t.add(ioe({
23660
23667
  key: t.keyRef(r.groupby),
23661
- group: se(t.proxy(n.parent)),
23668
+ group: ae(t.proxy(n.parent)),
23662
23669
  pulse: o
23663
- })) : L("Facet must specify groupby or field: " + G(r));
23670
+ })) : I("Facet must specify groupby or field: " + G(r));
23664
23671
  const a = t.fork(), l = a.add(li()), u = a.add(sl({
23665
- pulse: se(l)
23672
+ pulse: ae(l)
23666
23673
  }));
23667
23674
  a.addData(i, new Pa(a, l, l, u)), a.addSignal("parent", null), s.params.subflow = {
23668
23675
  $subflow: a.parse(e).toRuntime()
@@ -23689,7 +23696,7 @@ function i0(e, t) {
23689
23696
  pulse: g.pulse,
23690
23697
  clean: !r
23691
23698
  }));
23692
- const m = se(l);
23699
+ const m = ae(l);
23693
23700
  l = u = t.add(li({
23694
23701
  pulse: m
23695
23702
  })), l = t.add(uoe({
@@ -23702,38 +23709,38 @@ function i0(e, t) {
23702
23709
  groups: t.lookup(),
23703
23710
  parent: t.signals.parent ? t.signalRef("parent") : null,
23704
23711
  index: t.markpath(),
23705
- pulse: se(l)
23712
+ pulse: ae(l)
23706
23713
  }));
23707
- const y = se(l);
23714
+ const y = ae(l);
23708
23715
  l = c = t.add(d8(l8(e.encode, e.type, n, e.style, t, {
23709
23716
  mod: !1,
23710
23717
  pulse: y
23711
23718
  }))), l.params.parent = t.encode(), e.transform && e.transform.forEach((E) => {
23712
23719
  const x = Zw(E, t), C = x.metadata;
23713
- (C.generates || C.changes) && L("Mark transforms should not generate new data."), C.nomod || (c.params.mod = !0), x.params.pulse = se(l), t.add(l = x);
23720
+ (C.generates || C.changes) && I("Mark transforms should not generate new data."), C.nomod || (c.params.mod = !0), x.params.pulse = ae(l), t.add(l = x);
23714
23721
  }), e.sort && (l = t.add(boe({
23715
23722
  sort: t.compareRef(e.sort),
23716
- pulse: se(l)
23723
+ pulse: ae(l)
23717
23724
  })));
23718
- const b = se(l);
23725
+ const b = ae(l);
23719
23726
  (i || s) && (s = t.add(g8({
23720
23727
  layout: t.objectProperty(e.layout),
23721
23728
  legends: t.legends,
23722
23729
  mark: y,
23723
23730
  pulse: b
23724
- })), d = se(s));
23731
+ })), d = ae(s));
23725
23732
  const _ = t.add(f8({
23726
23733
  mark: y,
23727
23734
  pulse: d || b
23728
23735
  }));
23729
- h = se(_), r && (p && (a = t.operators, a.pop(), s && a.pop()), t.pushState(b, d || h, m), i ? xse(e, t, g) : p ? wse(e, t, g) : t.parse(e), t.popState(), p && (s && a.push(s), a.push(_))), o && (h = Ese(o, h, t));
23736
+ h = ae(_), r && (p && (a = t.operators, a.pop(), s && a.pop()), t.pushState(b, d || h, m), i ? xse(e, t, g) : p ? wse(e, t, g) : t.parse(e), t.popState(), p && (s && a.push(s), a.push(_))), o && (h = Ese(o, h, t));
23730
23737
  const v = t.add(p8({
23731
23738
  pulse: h
23732
23739
  })), w = t.add(sl({
23733
- pulse: se(v)
23740
+ pulse: ae(v)
23734
23741
  }, void 0, t.parent()));
23735
23742
  e.name != null && (f = e.name, t.addData(f, new Pa(t, u, v, w)), e.on && e.on.forEach((E) => {
23736
- (E.insert || E.remove || E.toggle) && L("Marks only support modify triggers."), $8(E, t, f);
23743
+ (E.insert || E.remove || E.toggle) && I("Marks only support modify triggers."), $8(E, t, f);
23737
23744
  }));
23738
23745
  }
23739
23746
  function Ese(e, t, n) {
@@ -23748,18 +23755,18 @@ function Ese(e, t, n) {
23748
23755
  const a = i.tolerance;
23749
23756
  s.boundTolerance = Rt(a) ? n.signalRef(a.signal) : +a, s.boundScale = n.scaleRef(i.scale), s.boundOrient = i.orient;
23750
23757
  }
23751
- return se(n.add(doe(s)));
23758
+ return ae(n.add(doe(s)));
23752
23759
  }
23753
23760
  function kse(e, t) {
23754
23761
  const n = t.config.legend, r = e.encode || {}, i = Kn(e, n), o = r.legend || {}, s = o.name || void 0, a = o.interactive, l = o.style, u = {};
23755
23762
  let c = 0, f, d, h;
23756
- Gw.forEach((_) => e[_] ? (u[_] = e[_], c = c || e[_]) : 0), c || L("Missing valid scale for legend.");
23763
+ Gw.forEach((_) => e[_] ? (u[_] = e[_], c = c || e[_]) : 0), c || I("Missing valid scale for legend.");
23757
23764
  const p = Cse(e, t.scaleType(c)), g = {
23758
23765
  title: e.title != null,
23759
23766
  scales: u,
23760
23767
  type: p,
23761
23768
  vgrad: p !== "symbol" && i.isVertical()
23762
- }, m = se(t.add(li(null, [g]))), y = {
23769
+ }, m = ae(t.add(li(null, [g]))), y = {
23763
23770
  enter: {
23764
23771
  x: {
23765
23772
  value: 0
@@ -23768,7 +23775,7 @@ function kse(e, t) {
23768
23775
  value: 0
23769
23776
  }
23770
23777
  }
23771
- }, b = se(t.add(aoe(d = {
23778
+ }, b = ae(t.add(aoe(d = {
23772
23779
  type: p,
23773
23780
  scale: t.scaleRef(c),
23774
23781
  count: t.objectProperty(i("tickCount")),
@@ -23842,7 +23849,7 @@ function Nse(e, t) {
23842
23849
  e = J(e) ? {
23843
23850
  text: e
23844
23851
  } : e;
23845
- const n = Kn(e, t.config.title), r = e.encode || {}, i = r.group || {}, o = i.name || void 0, s = i.interactive, a = i.style, l = [], u = {}, c = se(t.add(li(null, [u])));
23852
+ const n = Kn(e, t.config.title), r = e.encode || {}, i = r.group || {}, o = i.name || void 0, s = i.interactive, a = i.style, l = [], u = {}, c = ae(t.add(li(null, [u])));
23846
23853
  return l.push(Dse(e, n, Fse(e), c)), e.subtitle && l.push(Ose(e, n, r.subtitle, c)), i0(Uf({
23847
23854
  role: $ie,
23848
23855
  from: c,
@@ -23858,7 +23865,7 @@ function Nse(e, t) {
23858
23865
  }
23859
23866
  function Fse(e) {
23860
23867
  const t = e.encode;
23861
- return t && t.title || xe({
23868
+ return t && t.title || we({
23862
23869
  name: e.name,
23863
23870
  interactive: e.interactive,
23864
23871
  style: e.style
@@ -23999,7 +24006,7 @@ function Ise(e, t, n) {
23999
24006
  })) : e.url ? tp(e.url) || tp(e.format) ? (r.push(NA(t, e)), r.push(i = Ys())) : r.push(i = Ys({
24000
24007
  $request: e.url,
24001
24008
  $format: e.format
24002
- })) : e.source && (i = a = Q(e.source).map((d) => se(t.getData(d).output)), r.push(null)), l = 0, u = n.length; l < u; ++l)
24009
+ })) : e.source && (i = a = Q(e.source).map((d) => ae(t.getData(d).output)), r.push(null)), l = 0, u = n.length; l < u; ++l)
24003
24010
  c = n[l], f = c.metadata, !i && !f.source && r.push(i = Ys()), r.push(c), f.generates && (s = !0), f.modifies && !s && (o = !0), f.source ? i = c : f.changes && (i = null);
24004
24011
  return a && (u = a.length - 1, r[0] = moe({
24005
24012
  derive: o,
@@ -24030,7 +24037,7 @@ const A8 = (e) => e === ks || e === ui, o0 = (e, t, n) => Rt(e) ? Use(e.signal,
24030
24037
  value: n
24031
24038
  }, zse = (e, t, n) => T8(`${e} === '${ui}' || ${e} === '${ks}'`, t, n), Bse = (e, t, n) => T8(`${e} !== '${ui}' && ${e} !== '${ks}'`, t, n), Use = (e, t, n) => Jw(`${e} === '${Ku}' || ${e} === '${ui}'`, t, n), jse = (e, t, n) => Jw(`${e} === '${ui}'`, t, n), qse = (e, t, n) => Jw(`${e} === '${Zu}'`, t, n), T8 = (e, t, n) => (t = t != null ? jt(t) : t, n = n != null ? jt(n) : n, FA(t) && FA(n) ? (t = t ? t.signal || G(t.value) : null, n = n ? n.signal || G(n.value) : null, {
24032
24039
  signal: `${e} ? (${t}) : (${n})`
24033
- }) : [xe({
24040
+ }) : [we({
24034
24041
  test: e
24035
24042
  }, t)].concat(n || [])), FA = (e) => e == null || Object.keys(e).length === 1, Jw = (e, t, n) => ({
24036
24043
  signal: `${e} ? (${zl(t)}) : (${zl(n)})`
@@ -24095,7 +24102,7 @@ function Gse(e, t) {
24095
24102
  l[u] = Wse(s.signal, Sl(u, n.axisTop, i, r), Sl(u, n.axisBottom, i, r), Sl(u, n.axisLeft, i, r), Sl(u, n.axisRight, i, r));
24096
24103
  } else
24097
24104
  a = s === ui || s === ks ? n.axisX : n.axisY, l = n["axis" + s[0].toUpperCase() + s.slice(1)];
24098
- return a || l || o ? xe({}, i, a, l, o) : i;
24105
+ return a || l || o ? we({}, i, a, l, o) : i;
24099
24106
  }
24100
24107
  function Vse(e, t, n, r) {
24101
24108
  const i = Kn(e, t), o = e.orient;
@@ -24179,7 +24186,7 @@ function Yse(e, t, n, r, i) {
24179
24186
  range: 1,
24180
24187
  mult: l,
24181
24188
  offset: u
24182
- } : xe(g, {
24189
+ } : we(g, {
24183
24190
  mult: l,
24184
24191
  offset: u
24185
24192
  });
@@ -24197,10 +24204,10 @@ function Xse(e, t) {
24197
24204
  signal: `(${t.signal}) * (${e || 0})`
24198
24205
  } : t * (e || 0);
24199
24206
  else {
24200
- let n = e = xe({}, e);
24207
+ let n = e = we({}, e);
24201
24208
  for (; n.mult != null; )
24202
24209
  if (Z(n.mult))
24203
- n = n.mult = xe({}, n.mult);
24210
+ n = n.mult = we({}, n.mult);
24204
24211
  else
24205
24212
  return n.mult = Rt(t) ? {
24206
24213
  signal: `(${n.mult}) * (${t.signal})`
@@ -24341,7 +24348,7 @@ function Jse(e, t, n, r) {
24341
24348
  signal: Yw
24342
24349
  }
24343
24350
  },
24344
- update: l = xe({}, a, {
24351
+ update: l = we({}, a, {
24345
24352
  opacity: Cr,
24346
24353
  text: jt(e.title)
24347
24354
  }),
@@ -24387,7 +24394,7 @@ function eae(e, t) {
24387
24394
  grid: !!l("grid"),
24388
24395
  domain: !!l("domain"),
24389
24396
  title: e.title != null
24390
- }, f = se(t.add(li({}, [c]))), d = se(t.add(toe({
24397
+ }, f = ae(t.add(li({}, [c]))), d = ae(t.add(toe({
24391
24398
  scale: t.scaleRef(e.scale),
24392
24399
  extra: t.property(u.extra),
24393
24400
  count: t.objectProperty(e.tickCount),
@@ -24454,26 +24461,26 @@ const nae = (e) => Xu({
24454
24461
  }
24455
24462
  }, e);
24456
24463
  function rae(e, t) {
24457
- const n = t.config, r = se(t.root = t.add(kg())), i = iae(e, n);
24464
+ const n = t.config, r = ae(t.root = t.add(kg())), i = iae(e, n);
24458
24465
  i.forEach((u) => u8(u, t)), t.description = e.description || n.description, t.eventConfig = n.events, t.legends = t.objectProperty(n.legend && n.legend.layout), t.locale = n.locale;
24459
24466
  const o = t.add(li()), s = t.add(d8(l8(nae(e.encode), t0, Bw, e.style, t, {
24460
- pulse: se(o)
24467
+ pulse: ae(o)
24461
24468
  }))), a = t.add(g8({
24462
24469
  layout: t.objectProperty(e.layout),
24463
24470
  legends: t.legends,
24464
24471
  autosize: t.signalRef("autosize"),
24465
24472
  mark: r,
24466
- pulse: se(s)
24473
+ pulse: ae(s)
24467
24474
  }));
24468
- t.operators.pop(), t.pushState(se(s), se(a), null), N8(e, t, i), t.operators.push(a);
24475
+ t.operators.pop(), t.pushState(ae(s), ae(a), null), N8(e, t, i), t.operators.push(a);
24469
24476
  let l = t.add(f8({
24470
24477
  mark: r,
24471
- pulse: se(a)
24478
+ pulse: ae(a)
24472
24479
  }));
24473
24480
  return l = t.add(p8({
24474
- pulse: se(l)
24481
+ pulse: ae(l)
24475
24482
  })), l = t.add(sl({
24476
- pulse: se(l)
24483
+ pulse: ae(l)
24477
24484
  })), t.addData("root", new Pa(t, o, o, l)), t;
24478
24485
  }
24479
24486
  function $c(e, t) {
@@ -24488,7 +24495,7 @@ function $c(e, t) {
24488
24495
  function iae(e, t) {
24489
24496
  const n = (s) => qr(e[s], t[s]), r = [$c("background", n("background")), $c("autosize", die(n("autosize"))), $c("padding", pie(n("padding"))), $c("width", n("width") || 0), $c("height", n("height") || 0)], i = r.reduce((s, a) => (s[a.name] = a, s), {}), o = {};
24490
24497
  return Q(e.signals).forEach((s) => {
24491
- ee(i, s.name) ? s = xe(i[s.name], s) : r.push(s), o[s.name] = s;
24498
+ ee(i, s.name) ? s = we(i[s.name], s) : r.push(s), o[s.name] = s;
24492
24499
  }), Q(t.signals).forEach((s) => {
24493
24500
  !ee(o, s.name) && !ee(i, s.name) && r.push(s);
24494
24501
  }), r;
@@ -24529,7 +24536,7 @@ F8.prototype = OA.prototype = {
24529
24536
  }), e.refs = null), e;
24530
24537
  },
24531
24538
  proxy(e) {
24532
- const t = e instanceof __ ? se(e) : e;
24539
+ const t = e instanceof __ ? ae(e) : e;
24533
24540
  return this.add(goe({
24534
24541
  value: t
24535
24542
  }));
@@ -24561,9 +24568,9 @@ F8.prototype = OA.prototype = {
24561
24568
  },
24562
24569
  // ----
24563
24570
  pushState(e, t, n) {
24564
- this._encode.push(se(this.add(sl({
24571
+ this._encode.push(ae(this.add(sl({
24565
24572
  pulse: e
24566
- })))), this._parent.push(t), this._lookup.push(n ? se(this.proxy(n)) : null), this._markpath.push(-1);
24573
+ })))), this._parent.push(t), this._lookup.push(n ? ae(this.proxy(n)) : null), this._markpath.push(-1);
24567
24574
  },
24568
24575
  popState() {
24569
24576
  this._encode.pop(), this._parent.pop(), this._lookup.pop(), this._markpath.pop();
@@ -24584,29 +24591,29 @@ F8.prototype = OA.prototype = {
24584
24591
  // ----
24585
24592
  fieldRef(e, t) {
24586
24593
  if (J(e)) return zf(e, t);
24587
- e.signal || L("Unsupported field reference: " + G(e));
24594
+ e.signal || I("Unsupported field reference: " + G(e));
24588
24595
  const n = e.signal;
24589
24596
  let r = this.field[n];
24590
24597
  if (!r) {
24591
24598
  const i = {
24592
24599
  name: this.signalRef(n)
24593
24600
  };
24594
- t && (i.as = t), this.field[n] = r = se(this.add(ooe(i)));
24601
+ t && (i.as = t), this.field[n] = r = ae(this.add(ooe(i)));
24595
24602
  }
24596
24603
  return r;
24597
24604
  },
24598
24605
  compareRef(e) {
24599
24606
  let t = !1;
24600
24607
  const n = (o) => Rt(o) ? (t = !0, this.signalRef(o.signal)) : Wie(o) ? (t = !0, this.exprRef(o.expr)) : o, r = Q(e.field).map(n), i = Q(e.order).map(n);
24601
- return t ? se(this.add(xA({
24608
+ return t ? ae(this.add(xA({
24602
24609
  fields: r,
24603
24610
  orders: i
24604
24611
  }))) : _A(r, i);
24605
24612
  },
24606
24613
  keyRef(e, t) {
24607
24614
  let n = !1;
24608
- const r = (o) => Rt(o) ? (n = !0, se(i[o.signal])) : o, i = this.signals;
24609
- return e = Q(e).map(r), n ? se(this.add(soe({
24615
+ const r = (o) => Rt(o) ? (n = !0, ae(i[o.signal])) : o, i = this.signals;
24616
+ return e = Q(e).map(r), n ? ae(this.add(soe({
24610
24617
  fields: e,
24611
24618
  flat: t
24612
24619
  }))) : Bie(e, t);
@@ -24614,7 +24621,7 @@ F8.prototype = OA.prototype = {
24614
24621
  sortRef(e) {
24615
24622
  if (!e) return e;
24616
24623
  const t = Qm(e.op, e.field), n = e.order || Uie;
24617
- return n.signal ? se(this.add(xA({
24624
+ return n.signal ? ae(this.add(xA({
24618
24625
  fields: t,
24619
24626
  orders: this.signalRef(n.signal)
24620
24627
  }))) : _A(t, n);
@@ -24637,15 +24644,15 @@ F8.prototype = OA.prototype = {
24637
24644
  return ee(this.signals, e);
24638
24645
  },
24639
24646
  addSignal(e, t) {
24640
- this.hasOwnSignal(e) && L("Duplicate signal name: " + G(e));
24647
+ this.hasOwnSignal(e) && I("Duplicate signal name: " + G(e));
24641
24648
  const n = t instanceof __ ? t : this.add(kg(t));
24642
24649
  return this.signals[e] = n;
24643
24650
  },
24644
24651
  getSignal(e) {
24645
- return this.signals[e] || L("Unrecognized signal name: " + G(e)), this.signals[e];
24652
+ return this.signals[e] || I("Unrecognized signal name: " + G(e)), this.signals[e];
24646
24653
  },
24647
24654
  signalRef(e) {
24648
- return this.signals[e] ? se(this.signals[e]) : (ee(this.lambdas, e) || (this.lambdas[e] = this.add(kg(null))), se(this.lambdas[e]));
24655
+ return this.signals[e] ? ae(this.signals[e]) : (ee(this.lambdas, e) || (this.lambdas[e] = this.add(kg(null))), ae(this.lambdas[e]));
24649
24656
  },
24650
24657
  parseLambdas() {
24651
24658
  const e = Object.keys(this.lambdas);
@@ -24664,16 +24671,16 @@ F8.prototype = OA.prototype = {
24664
24671
  const n = {
24665
24672
  expr: Bi(e, this)
24666
24673
  };
24667
- return t && (n.expr.$name = t), se(this.add(roe(n)));
24674
+ return t && (n.expr.$name = t), ae(this.add(roe(n)));
24668
24675
  },
24669
24676
  addBinding(e, t) {
24670
- this.bindings || L("Nested signals do not support binding: " + G(e)), this.bindings.push(xe({
24677
+ this.bindings || I("Nested signals do not support binding: " + G(e)), this.bindings.push(we({
24671
24678
  signal: e
24672
24679
  }, t));
24673
24680
  },
24674
24681
  // ----
24675
24682
  addScaleProj(e, t) {
24676
- ee(this.scales, e) && L("Duplicate scale or projection name: " + G(e)), this.scales[e] = this.add(t);
24683
+ ee(this.scales, e) && I("Duplicate scale or projection name: " + G(e)), this.scales[e] = this.add(t);
24677
24684
  },
24678
24685
  addScale(e, t) {
24679
24686
  this.addScaleProj(e, yoe(t));
@@ -24682,10 +24689,10 @@ F8.prototype = OA.prototype = {
24682
24689
  this.addScaleProj(e, poe(t));
24683
24690
  },
24684
24691
  getScale(e) {
24685
- return this.scales[e] || L("Unrecognized scale name: " + G(e)), this.scales[e];
24692
+ return this.scales[e] || I("Unrecognized scale name: " + G(e)), this.scales[e];
24686
24693
  },
24687
24694
  scaleRef(e) {
24688
- return se(this.getScale(e));
24695
+ return ae(this.getScale(e));
24689
24696
  },
24690
24697
  scaleType(e) {
24691
24698
  return this.getScale(e).params.type;
@@ -24698,17 +24705,17 @@ F8.prototype = OA.prototype = {
24698
24705
  },
24699
24706
  // ----
24700
24707
  addData(e, t) {
24701
- return ee(this.data, e) && L("Duplicate data set name: " + G(e)), this.data[e] = t;
24708
+ return ee(this.data, e) && I("Duplicate data set name: " + G(e)), this.data[e] = t;
24702
24709
  },
24703
24710
  getData(e) {
24704
- return this.data[e] || L("Undefined data set name: " + G(e)), this.data[e];
24711
+ return this.data[e] || I("Undefined data set name: " + G(e)), this.data[e];
24705
24712
  },
24706
24713
  addDataPipeline(e, t) {
24707
- return ee(this.data, e) && L("Duplicate data set name: " + G(e)), this.addData(e, Pa.fromEntries(this, t));
24714
+ return ee(this.data, e) && I("Duplicate data set name: " + G(e)), this.addData(e, Pa.fromEntries(this, t));
24708
24715
  }
24709
24716
  };
24710
24717
  function Qw(e) {
24711
- return (z(e) ? oae : sae)(e);
24718
+ return (B(e) ? oae : sae)(e);
24712
24719
  }
24713
24720
  function oae(e) {
24714
24721
  const t = e.length;
@@ -24942,10 +24949,10 @@ function aae() {
24942
24949
  };
24943
24950
  }
24944
24951
  function lae(e, t, n) {
24945
- return Z(e) || L("Input Vega specification must be an object."), t = Ou(aae(), t, e.config), rae(e, new F8(t, n)).toRuntime();
24952
+ return Z(e) || I("Input Vega specification must be an object."), t = Ou(aae(), t, e.config), rae(e, new F8(t, n)).toRuntime();
24946
24953
  }
24947
24954
  var uae = "6.2.0";
24948
- xe(nu, Zj, AY, sX, HK, zZ, dQ, HJ, pQ, PQ, YQ, tee);
24955
+ we(nu, Zj, AY, sX, HK, zZ, dQ, HJ, pQ, PQ, YQ, tee);
24949
24956
  const cae = uae, fae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24950
24957
  __proto__: null,
24951
24958
  Bounds: St,
@@ -25024,9 +25031,9 @@ const cae = uae, fae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
25024
25031
  domCreate: ts,
25025
25032
  domFind: x2,
25026
25033
  dotbin: c5,
25027
- error: L,
25034
+ error: I,
25028
25035
  expressionFunction: wt,
25029
- extend: xe,
25036
+ extend: we,
25030
25037
  extent: Oi,
25031
25038
  extentIndex: UT,
25032
25039
  falsy: Ho,
@@ -25055,7 +25062,7 @@ const cae = uae, fae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
25055
25062
  intersectPath: s2,
25056
25063
  intersectPoint: a2,
25057
25064
  intersectRule: M6,
25058
- isArray: z,
25065
+ isArray: B,
25059
25066
  isBoolean: Ja,
25060
25067
  isDate: us,
25061
25068
  isFunction: ve,
@@ -25164,7 +25171,7 @@ const cae = uae, fae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
25164
25171
  transforms: nu,
25165
25172
  truncate: YT,
25166
25173
  truthy: $r,
25167
- tupleid: ae,
25174
+ tupleid: le,
25168
25175
  typeParsers: ib,
25169
25176
  utcFloor: E4,
25170
25177
  utcInterval: qu,
@@ -26291,7 +26298,7 @@ function tO(e) {
26291
26298
  return { titleMarkConfig: m, subtitleMarkConfig: _, nonMarkTitleProperties: y, subtitle: b };
26292
26299
  }
26293
26300
  function Jo(e) {
26294
- return J(e) || z(e) && J(e[0]);
26301
+ return J(e) || B(e) && J(e[0]);
26295
26302
  }
26296
26303
  function ie(e) {
26297
26304
  return j(e, "signal");
@@ -26300,13 +26307,13 @@ function fl(e) {
26300
26307
  return j(e, "step");
26301
26308
  }
26302
26309
  function nO(e) {
26303
- return z(e) ? !1 : j(e, "fields") && !j(e, "data");
26310
+ return B(e) ? !1 : j(e, "fields") && !j(e, "data");
26304
26311
  }
26305
26312
  function Jae(e) {
26306
- return z(e) ? !1 : j(e, "fields") && j(e, "data");
26313
+ return B(e) ? !1 : j(e, "fields") && j(e, "data");
26307
26314
  }
26308
26315
  function _o(e) {
26309
- return z(e) ? !1 : j(e, "field") && j(e, "data");
26316
+ return B(e) ? !1 : j(e, "field") && j(e, "data");
26310
26317
  }
26311
26318
  const Qae = {
26312
26319
  aria: 1,
@@ -26396,7 +26403,7 @@ const Qae = {
26396
26403
  "cornerRadiusBottomRight"
26397
26404
  ], nle = " – ";
26398
26405
  function rO(e) {
26399
- const t = z(e.condition) ? e.condition.map(PA) : PA(e.condition);
26406
+ const t = B(e.condition) ? e.condition.map(PA) : PA(e.condition);
26400
26407
  return {
26401
26408
  ...er(e),
26402
26409
  condition: t
@@ -26978,7 +26985,7 @@ function $E(e) {
26978
26985
  }
26979
26986
  function AE(e) {
26980
26987
  if (e?.field) {
26981
- if (z(e.range) && e.range.length === 2)
26988
+ if (B(e.range) && e.range.length === 2)
26982
26989
  return !0;
26983
26990
  if (ie(e.range))
26984
26991
  return !0;
@@ -26986,7 +26993,7 @@ function AE(e) {
26986
26993
  return !1;
26987
26994
  }
26988
26995
  function ME(e) {
26989
- return !!e?.field && (z(e.oneOf) || z(e.in));
26996
+ return !!e?.field && (B(e.oneOf) || B(e.in));
26990
26997
  }
26991
26998
  function Tue(e) {
26992
26999
  return !!e?.field && e.valid !== void 0;
@@ -27771,7 +27778,7 @@ function Co(e) {
27771
27778
  return e && (e.op === "count" || j(e, "field"));
27772
27779
  }
27773
27780
  function GO(e) {
27774
- return e && z(e);
27781
+ return e && B(e);
27775
27782
  }
27776
27783
  function Dd(e) {
27777
27784
  return j(e, "row") || j(e, "column");
@@ -27838,15 +27845,15 @@ function Od(e) {
27838
27845
  }
27839
27846
  function k0(e) {
27840
27847
  const t = e?.condition;
27841
- return !!t && !z(t) && H(t);
27848
+ return !!t && !B(t) && H(t);
27842
27849
  }
27843
27850
  function Ld(e) {
27844
27851
  const t = e?.condition;
27845
- return !!t && !z(t) && ge(t);
27852
+ return !!t && !B(t) && ge(t);
27846
27853
  }
27847
27854
  function xce(e) {
27848
27855
  const t = e?.condition;
27849
- return !!t && (z(t) || ii(t));
27856
+ return !!t && (B(t) || ii(t));
27850
27857
  }
27851
27858
  function H(e) {
27852
27859
  return j(e, "field") || e?.aggregate === "count";
@@ -28012,7 +28019,7 @@ function Mce(e, t) {
28012
28019
  case "order":
28013
28020
  return "ordinal";
28014
28021
  }
28015
- if (jE(e) && z(e.sort))
28022
+ if (jE(e) && B(e.sort))
28016
28023
  return "ordinal";
28017
28024
  const { aggregate: n, bin: r, timeUnit: i } = e;
28018
28025
  if (i)
@@ -28511,11 +28518,11 @@ class $0 {
28511
28518
  }
28512
28519
  function Ea(e, t) {
28513
28520
  const n = e?.[t];
28514
- return n ? z(n) ? bu(n, (r) => !!r.field) : H(n) || k0(n) : !1;
28521
+ return n ? B(n) ? bu(n, (r) => !!r.field) : H(n) || k0(n) : !1;
28515
28522
  }
28516
28523
  function s9(e, t) {
28517
28524
  const n = e?.[t];
28518
- return n ? z(n) ? bu(n, (r) => !!r.field) : H(n) || no(n) || Ld(n) : !1;
28525
+ return n ? B(n) ? bu(n, (r) => !!r.field) : H(n) || no(n) || Ld(n) : !1;
28519
28526
  }
28520
28527
  function a9(e, t) {
28521
28528
  if (vt(t)) {
@@ -28531,7 +28538,7 @@ function l9(e) {
28531
28538
  return bu(Tae, (t) => {
28532
28539
  if (Ea(e, t)) {
28533
28540
  const n = e[t];
28534
- if (z(n))
28541
+ if (B(n))
28535
28542
  return bu(n, (r) => !!r.aggregate);
28536
28543
  {
28537
28544
  const r = oi(n);
@@ -28638,7 +28645,7 @@ function Ice(e, t, n, r) {
28638
28645
  W(dO("encoding", { fill: "fill" in e, stroke: "stroke" in e }));
28639
28646
  continue;
28640
28647
  }
28641
- if (o === Md || o === xu && !z(s) && !ii(s) || o === Ba && z(s)) {
28648
+ if (o === Md || o === xu && !B(s) && !ii(s) || o === Ba && B(s)) {
28642
28649
  if (s) {
28643
28650
  if (o === xu) {
28644
28651
  const a = e[o];
@@ -28683,7 +28690,7 @@ function GE(e, t, n) {
28683
28690
  if (e)
28684
28691
  for (const r of U(e)) {
28685
28692
  const i = e[r];
28686
- if (z(i))
28693
+ if (B(i))
28687
28694
  for (const o of i)
28688
28695
  t.call(n, o, r);
28689
28696
  else
@@ -28693,7 +28700,7 @@ function GE(e, t, n) {
28693
28700
  function zce(e, t, n, r) {
28694
28701
  return e ? U(e).reduce((i, o) => {
28695
28702
  const s = e[o];
28696
- return z(s) ? s.reduce((a, l) => t.call(r, a, l, o), i) : t.call(r, i, s, o);
28703
+ return B(s) ? s.reduce((a, l) => t.call(r, a, l, o), i) : t.call(r, i, s, o);
28697
28704
  }, n) : n;
28698
28705
  }
28699
28706
  function c9(e, t) {
@@ -28735,7 +28742,7 @@ function c9(e, t) {
28735
28742
  case Md:
28736
28743
  case l0: {
28737
28744
  const i = t[r];
28738
- if (z(i) || H(i))
28745
+ if (B(i) || H(i))
28739
28746
  for (const o of Q(i))
28740
28747
  o.aggregate || n.push(K(o, {}));
28741
28748
  return n;
@@ -28764,13 +28771,13 @@ function Bce(e) {
28764
28771
  if (!t)
28765
28772
  return { filteredEncoding: n };
28766
28773
  let r, i;
28767
- if (z(t)) {
28774
+ if (B(t)) {
28768
28775
  for (const o of t)
28769
28776
  o.aggregate ? (r || (r = []), r.push(o)) : (i || (i = []), i.push(o));
28770
28777
  r && (n.tooltip = r);
28771
28778
  } else
28772
28779
  t.aggregate ? n.tooltip = t : i = t;
28773
- return z(i) && i.length === 1 && (i = i[0]), { customTooltipWithoutAggregatedField: i, filteredEncoding: n };
28780
+ return B(i) && i.length === 1 && (i = i[0]), { customTooltipWithoutAggregatedField: i, filteredEncoding: n };
28774
28781
  }
28775
28782
  function O_(e, t, n, r = !0) {
28776
28783
  if ("tooltip" in n)
@@ -28908,41 +28915,41 @@ function g9(e, { config: t }) {
28908
28915
  { fieldPrefix: "mid_box_", titlePrefix: "Median" },
28909
28916
  { fieldPrefix: "lower_box_", titlePrefix: "Q1" },
28910
28917
  { fieldPrefix: f === "min-max" ? "lower_whisker_" : "min_", titlePrefix: "Min" }
28911
- ], g, _), D = { type: "tick", color: "black", opacity: 1, orient: v, invalid: c, aria: !1 }, B = f === "min-max" ? N : (
28918
+ ], g, _), D = { type: "tick", color: "black", opacity: 1, orient: v, invalid: c, aria: !1 }, z = f === "min-max" ? N : (
28912
28919
  // for tukey / k-IQR, just show upper/lower-whisker
28913
28920
  O_([
28914
28921
  { fieldPrefix: "upper_whisker_", titlePrefix: "Upper Whisker" },
28915
28922
  { fieldPrefix: "lower_whisker_", titlePrefix: "Lower Whisker" }
28916
28923
  ], g, _)
28917
- ), I = [
28924
+ ), L = [
28918
28925
  ...R({
28919
28926
  partName: "rule",
28920
28927
  mark: { type: "rule", invalid: c, aria: !1 },
28921
28928
  positionPrefix: "lower_whisker",
28922
28929
  endPositionPrefix: "lower_box",
28923
- extraEncoding: B
28930
+ extraEncoding: z
28924
28931
  }),
28925
28932
  ...R({
28926
28933
  partName: "rule",
28927
28934
  mark: { type: "rule", invalid: c, aria: !1 },
28928
28935
  positionPrefix: "upper_box",
28929
28936
  endPositionPrefix: "upper_whisker",
28930
- extraEncoding: B
28937
+ extraEncoding: z
28931
28938
  }),
28932
28939
  ...R({
28933
28940
  partName: "ticks",
28934
28941
  mark: D,
28935
28942
  positionPrefix: "lower_whisker",
28936
- extraEncoding: B
28943
+ extraEncoding: z
28937
28944
  }),
28938
28945
  ...R({
28939
28946
  partName: "ticks",
28940
28947
  mark: D,
28941
28948
  positionPrefix: "upper_whisker",
28942
- extraEncoding: B
28949
+ extraEncoding: z
28943
28950
  })
28944
- ], V = [
28945
- ...f !== "tukey" ? I : [],
28951
+ ], Y = [
28952
+ ...f !== "tukey" ? L : [],
28946
28953
  ...F({
28947
28954
  partName: "box",
28948
28955
  mark: {
@@ -28974,9 +28981,9 @@ function g9(e, { config: t }) {
28974
28981
  return {
28975
28982
  ...s,
28976
28983
  transform: (s.transform ?? []).concat(p),
28977
- layer: V
28984
+ layer: Y
28978
28985
  };
28979
- const ue = Ve(`lower_box_${g.field}`), oe = Ve(`upper_box_${g.field}`), ye = `(${oe} - ${ue})`, qe = `${ue} - ${l} * ${ye}`, be = `${oe} + ${l} * ${ye}`, It = Ve(g.field), ro = {
28986
+ const oe = Ve(`lower_box_${g.field}`), se = Ve(`upper_box_${g.field}`), ye = `(${se} - ${oe})`, qe = `${oe} - ${l} * ${ye}`, be = `${se} + ${l} * ${ye}`, It = Ve(g.field), ro = {
28980
28987
  joinaggregate: m9(g.field),
28981
28988
  groupby: y
28982
28989
  }, gi = {
@@ -29012,7 +29019,7 @@ function g9(e, { config: t }) {
29012
29019
  groupby: y
29013
29020
  }
29014
29021
  ],
29015
- layer: I
29022
+ layer: L
29016
29023
  }, { tooltip: ne, ..._e } = A, { scale: ke, axis: q } = g, $t = VE(g), Le = f9(a, "outliers", t.boxplot, {
29017
29024
  transform: [{ filter: `(${It} < ${qe}) || (${It} > ${be})` }],
29018
29025
  mark: "point",
@@ -29041,7 +29048,7 @@ function g9(e, { config: t }) {
29041
29048
  {
29042
29049
  // boxplot
29043
29050
  transform: p,
29044
- layer: V
29051
+ layer: Y
29045
29052
  }
29046
29053
  ]
29047
29054
  };
@@ -29935,7 +29942,7 @@ function kfe(e) {
29935
29942
  return j(e, "repeat");
29936
29943
  }
29937
29944
  function Cfe(e) {
29938
- return !z(e.repeat) && j(e.repeat, "layer");
29945
+ return !B(e.repeat) && j(e.repeat, "layer");
29939
29946
  }
29940
29947
  class nk {
29941
29948
  map(t, n) {
@@ -30330,7 +30337,7 @@ function D9(e, t) {
30330
30337
  for (const r in e)
30331
30338
  if (j(e, r)) {
30332
30339
  const i = e[r];
30333
- if (z(i))
30340
+ if (B(i))
30334
30341
  n[r] = i.map((o) => f3(o, t)).filter((o) => o);
30335
30342
  else {
30336
30343
  const o = f3(i, t);
@@ -30420,8 +30427,8 @@ class Bfe extends nk {
30420
30427
  }
30421
30428
  mapNonLayerRepeat(t, n) {
30422
30429
  const { repeat: r, spec: i, data: o, ...s } = t;
30423
- !z(r) && t.columns && (t = ar(t, ["columns"]), W(WA("repeat")));
30424
- const a = [], { repeater: l = {}, repeaterPrefix: u = "" } = n, c = !z(r) && r.row || [l ? l.row : null], f = !z(r) && r.column || [l ? l.column : null], d = z(r) && r || [l ? l.repeat : null];
30430
+ !B(r) && t.columns && (t = ar(t, ["columns"]), W(WA("repeat")));
30431
+ const a = [], { repeater: l = {}, repeaterPrefix: u = "" } = n, c = !B(r) && r.row || [l ? l.row : null], f = !B(r) && r.column || [l ? l.column : null], d = B(r) && r || [l ? l.repeat : null];
30425
30432
  for (const p of d)
30426
30433
  for (const g of c)
30427
30434
  for (const m of f) {
@@ -30430,10 +30437,10 @@ class Bfe extends nk {
30430
30437
  row: g,
30431
30438
  column: m,
30432
30439
  layer: l.layer
30433
- }, b = `${(i.name ? `${i.name}_` : "") + u}child__${z(r) ? `${at(p)}` : (r.row ? `row_${at(g)}` : "") + (r.column ? `column_${at(m)}` : "")}`, _ = this.map(i, { ...n, repeater: y, repeaterPrefix: b });
30440
+ }, b = `${(i.name ? `${i.name}_` : "") + u}child__${B(r) ? `${at(p)}` : (r.row ? `row_${at(g)}` : "") + (r.column ? `column_${at(m)}` : "")}`, _ = this.map(i, { ...n, repeater: y, repeaterPrefix: b });
30434
30441
  _.name = b, a.push(ar(_, ["data"]));
30435
30442
  }
30436
- const h = z(r) ? t.columns : r.column ? r.column.length : 1;
30443
+ const h = B(r) ? t.columns : r.column ? r.column.length : 1;
30437
30444
  return {
30438
30445
  data: i.data ?? o,
30439
30446
  // data from child spec should have precedence
@@ -30534,7 +30541,7 @@ function d3({ parentEncoding: e, encoding: t = {}, layer: n }) {
30534
30541
  ...a,
30535
30542
  ...s.condition
30536
30543
  }
30537
- } : s || s === null ? r[o] = s : (n || ii(a) || ie(a) || ge(a) || z(a)) && (r[o] = a);
30544
+ } : s || s === null ? r[o] = s : (n || ii(a) || ie(a) || ge(a) || B(a)) && (r[o] = a);
30538
30545
  }
30539
30546
  } else
30540
30547
  r = t;
@@ -30673,7 +30680,7 @@ function I9(e, t) {
30673
30680
  n.scale.domain = { ...i, ...r ? { param: r } : {} };
30674
30681
  }
30675
30682
  if (Od(n))
30676
- if (z(n.condition))
30683
+ if (B(n.condition))
30677
30684
  n.condition = n.condition.map((r) => {
30678
30685
  const { selection: i, param: o, test: s, ...a } = r;
30679
30686
  return o ? r : { ...a, test: z_(r, t) };
@@ -30723,7 +30730,7 @@ class B_ extends nk {
30723
30730
  o.push(s);
30724
30731
  else
30725
30732
  for (const a of s.views)
30726
- (J(a) && (a === t.name || i.includes(a)) || z(a) && // logic for backwards compatibility with view paths before we had unique names
30733
+ (J(a) && (a === t.name || i.includes(a)) || B(a) && // logic for backwards compatibility with view paths before we had unique names
30727
30734
  a.map((l) => i.indexOf(l)).every((l, u, c) => l !== -1 && (u === 0 || l > c[u - 1]))) && o.push(s);
30728
30735
  return o.length && (t.params = o), t;
30729
30736
  }
@@ -31331,7 +31338,7 @@ function X9(e) {
31331
31338
  return i.field = Nr(i.field), i;
31332
31339
  }
31333
31340
  function Ga(e, t = !0, n = yn) {
31334
- if (z(e)) {
31341
+ if (B(e)) {
31335
31342
  const r = e.map((i) => Ga(i, t, n));
31336
31343
  return t ? `[${r.join(", ")}]` : r;
31337
31344
  } else if (dl(e))
@@ -31431,7 +31438,7 @@ function Ade(e, t) {
31431
31438
  function Mde(e, t, n, r) {
31432
31439
  const i = b7(e, t.param, t);
31433
31440
  return {
31434
- signal: ri(n.get("type")) && z(r) && r[0] > r[1] ? `isValid(${i}) && reverse(${i})` : i
31441
+ signal: ri(n.get("type")) && B(r) && r[0] > r[1] ? `isValid(${i}) && reverse(${i})` : i
31435
31442
  };
31436
31443
  }
31437
31444
  function ok(e) {
@@ -31698,7 +31705,7 @@ function ak(e, t, n = "datum") {
31698
31705
  }
31699
31706
  function Q9(e, t = {}) {
31700
31707
  const { encoding: n, markDef: r, config: i, stack: o } = e, s = n.tooltip;
31701
- if (z(s))
31708
+ if (B(s))
31702
31709
  return { tooltip: v3({ tooltip: s }, o, i, t) };
31703
31710
  {
31704
31711
  const a = t.reactiveGeom ? "datum.datum" : "datum";
@@ -32175,7 +32182,7 @@ function qde(e, t, n) {
32175
32182
  return {
32176
32183
  [v]: C,
32177
32184
  // posRef might be an array that wraps position invalid test
32178
- [S]: z(C) ? [C[0], { ...C[1], offset: M }] : {
32185
+ [S]: B(C) ? [C[0], { ...C[1], offset: M }] : {
32179
32186
  ...C,
32180
32187
  offset: M
32181
32188
  }
@@ -32675,7 +32682,7 @@ function Ig(e, t, n) {
32675
32682
  }
32676
32683
  function the(e, t) {
32677
32684
  if (e)
32678
- return z(e) && !Jo(e) ? e.map((n) => WE(n, t)).join(", ") : e;
32685
+ return B(e) && !Jo(e) ? e.map((n) => WE(n, t)).join(", ") : e;
32679
32686
  }
32680
32687
  function my(e, t, n, r) {
32681
32688
  e.encode ??= {}, e.encode[t] ??= {}, e.encode[t].update ??= {}, e.encode[t].update[n] = r;
@@ -33003,7 +33010,7 @@ function w7(e, t) {
33003
33010
  }
33004
33011
  function hhe(e, t) {
33005
33012
  const n = e.values;
33006
- if (z(n))
33013
+ if (B(n))
33007
33014
  return n9(t, n);
33008
33015
  if (ie(n))
33009
33016
  return n;
@@ -33112,7 +33119,7 @@ function yhe(e, t) {
33112
33119
  return Co(n) ? {
33113
33120
  field: K(n, { expr: "datum" }),
33114
33121
  order: n.order ?? "ascending"
33115
- } : z(n) ? {
33122
+ } : B(n) ? {
33116
33123
  field: Nu(e, t, { expr: "datum" }),
33117
33124
  order: "ascending"
33118
33125
  } : {
@@ -33333,7 +33340,7 @@ function khe(e, { fieldOrDatumDef: t, model: n, channel: r, legendCmpt: i, legen
33333
33340
  delete f.fill;
33334
33341
  else if (j(f.fill, "field"))
33335
33342
  h ? delete f.fill : (f.fill = rt(l.legend.symbolBaseFillColor ?? "black"), f.fillOpacity = rt(g ?? 1));
33336
- else if (z(f.fill)) {
33343
+ else if (B(f.fill)) {
33337
33344
  const m = Y_(a.fill ?? a.color) ?? s.fill ?? (c && s.color);
33338
33345
  m && (f.fill = rt(m));
33339
33346
  }
@@ -33343,7 +33350,7 @@ function khe(e, { fieldOrDatumDef: t, model: n, channel: r, legendCmpt: i, legen
33343
33350
  delete f.stroke;
33344
33351
  else if (j(f.stroke, "field") || p)
33345
33352
  delete f.stroke;
33346
- else if (z(f.stroke)) {
33353
+ else if (B(f.stroke)) {
33347
33354
  const m = _t(Y_(a.stroke || a.color), s.stroke, c ? s.color : void 0);
33348
33355
  m && (f.stroke = { value: m });
33349
33356
  }
@@ -33446,7 +33453,7 @@ const F3 = {
33446
33453
  };
33447
33454
  function Ahe(e, t) {
33448
33455
  const n = e.values;
33449
- if (z(n))
33456
+ if (B(n))
33450
33457
  return n9(t, n);
33451
33458
  if (ie(n))
33452
33459
  return n;
@@ -33896,7 +33903,7 @@ class rc extends Ze {
33896
33903
  this[o] = {
33897
33904
  name: n.getName(`${o}_domain`),
33898
33905
  fields: [K(s), ...tt(a) ? [K(s, { binSuffix: "end" })] : []],
33899
- ...Co(l) ? { sortField: l } : z(l) ? { sortIndexField: Nu(s, o) } : {}
33906
+ ...Co(l) ? { sortField: l } : B(l) ? { sortIndexField: Nu(s, o) } : {}
33900
33907
  };
33901
33908
  }
33902
33909
  }
@@ -34597,7 +34604,7 @@ function lpe(e) {
34597
34604
  }, []);
34598
34605
  }
34599
34606
  function upe(e) {
34600
- return z(e) && e.every((t) => J(t)) && e.length > 1;
34607
+ return B(e) && e.every((t) => J(t)) && e.length > 1;
34601
34608
  }
34602
34609
  class $o extends Ze {
34603
34610
  _stack;
@@ -34636,7 +34643,7 @@ class $o extends Ze {
34636
34643
  return oi(p);
34637
34644
  }).filter((h) => !!h), c = lpe(n), f = n.encoding.order;
34638
34645
  let d;
34639
- if (z(f) || H(f))
34646
+ if (B(f) || H(f))
34640
34647
  d = sO(f);
34641
34648
  else {
34642
34649
  const h = XO(f) ? f.sort : s === "y" ? "descending" : "ascending";
@@ -35193,13 +35200,13 @@ function wpe(e, t) {
35193
35200
  return e ? `field:${e}` : `channel:${String(t)}`;
35194
35201
  }
35195
35202
  function Epe(e) {
35196
- if (z(e)) {
35203
+ if (B(e)) {
35197
35204
  const t = e.filter(Cg);
35198
35205
  return t.length > 0 ? t : null;
35199
35206
  }
35200
35207
  if (nO(e)) {
35201
35208
  const t = [];
35202
- if (t.push(...e.fields.flatMap((n) => z(n) ? n.filter(Cg) : [])), t.length > 0)
35209
+ if (t.push(...e.fields.flatMap((n) => B(n) ? n.filter(Cg) : [])), t.length > 0)
35203
35210
  return nr(t, Ee);
35204
35211
  }
35205
35212
  return null;
@@ -35471,7 +35478,7 @@ class H7 extends jo {
35471
35478
  if (r.length > 0) {
35472
35479
  let i = !1, o = !1, s = !1;
35473
35480
  for (const a of r) {
35474
- if (z(a)) {
35481
+ if (B(a)) {
35475
35482
  const l = a[0], u = a[a.length - 1];
35476
35483
  if (ze(l) && ze(u))
35477
35484
  if (l <= 0 && u >= 0) {
@@ -35534,7 +35541,7 @@ function Ipe(e, t) {
35534
35541
  switch (f) {
35535
35542
  case "range": {
35536
35543
  const p = n.range;
35537
- if (z(p)) {
35544
+ if (B(p)) {
35538
35545
  if (vt(e))
35539
35546
  return wi(p.map((g) => {
35540
35547
  if (g === "width" || g === "height") {
@@ -35575,7 +35582,7 @@ function Ipe(e, t) {
35575
35582
  }
35576
35583
  const { rangeMin: l, rangeMax: u } = n, c = zpe(e, t);
35577
35584
  return (l !== void 0 || u !== void 0) && // it's ok to check just rangeMin's compatibility since rangeMin/rangeMax are the same
35578
- R_(o, "rangeMin") && z(c) && c.length === 2 ? wi([l ?? c[0], u ?? c[1]]) : Zn(c);
35585
+ R_(o, "rangeMin") && B(c) && c.length === 2 ? wi([l ?? c[0], u ?? c[1]]) : Zn(c);
35579
35586
  }
35580
35587
  function Ppe(e) {
35581
35588
  return Bue(e) ? {
@@ -35710,7 +35717,7 @@ function Upe(e, t, n, r) {
35710
35717
  case "quantize":
35711
35718
  return t.scale.quantizeCount;
35712
35719
  case "threshold":
35713
- return n !== void 0 && z(n) ? n.length + 1 : (W(cue(r)), 3);
35720
+ return n !== void 0 && B(n) ? n.length + 1 : (W(cue(r)), 3);
35714
35721
  }
35715
35722
  }
35716
35723
  function jpe(e, t, n) {
@@ -35862,7 +35869,7 @@ function Vpe(e, t) {
35862
35869
  return "hcl";
35863
35870
  }
35864
35871
  function Ype(e, t, n, r, i, o) {
35865
- if (!(oi(o)?.bin || z(n) || i != null || r != null || Te([Xt.TIME, Xt.UTC], e)))
35872
+ if (!(oi(o)?.bin || B(n) || i != null || r != null || Te([Xt.TIME, Xt.UTC], e)))
35866
35873
  return vt(t) ? !0 : void 0;
35867
35874
  }
35868
35875
  function Xpe(e, t, n, r, i, o) {
@@ -35918,7 +35925,7 @@ function Jpe(e, t, n, r) {
35918
35925
  }
35919
35926
  function Qpe(e, t, n, r, i, o, s) {
35920
35927
  if (!!n && n !== "unaggregated" && ri(i)) {
35921
- if (z(n)) {
35928
+ if (B(n)) {
35922
35929
  const l = n[0], u = n[n.length - 1];
35923
35930
  if (ze(l) && l <= 0 && ze(u) && u >= 0)
35924
35931
  return !0;
@@ -36885,7 +36892,7 @@ function cge(e, t) {
36885
36892
  allowDisabling: !0,
36886
36893
  includeDefault: a === void 0 || !!a
36887
36894
  });
36888
- i.component.layoutHeaders[t].title && (l = z(l) ? l.join(", ") : l, l += ` / ${i.component.layoutHeaders[t].title}`, i.component.layoutHeaders[t].title = null);
36895
+ i.component.layoutHeaders[t].title && (l = B(l) ? l.join(", ") : l, l += ` / ${i.component.layoutHeaders[t].title}`, i.component.layoutHeaders[t].title = null);
36889
36896
  const u = Fu("labelOrient", s.header, r, t), c = s.header !== null ? _t(s.header?.labels, r.header.labels, !0) : !1, f = Te(["bottom", "right"], u) ? "footer" : "header";
36890
36897
  o.layoutHeaders[t] = {
36891
36898
  title: s.header !== null ? l : null,
@@ -37135,7 +37142,7 @@ class bf extends eL {
37135
37142
  if (tt(d) && l.push(K(f, { binSuffix: "end" })), Co(h)) {
37136
37143
  const { field: p, op: g = w0 } = h, m = tv(f, h);
37137
37144
  r && i ? (o.push(m), s.push("max"), a.push(m)) : (o.push(p), s.push(g), a.push(m));
37138
- } else if (z(h)) {
37145
+ } else if (B(h)) {
37139
37146
  const p = Nu(f, c);
37140
37147
  o.push(p), s.push("max"), a.push(p);
37141
37148
  }
@@ -37156,13 +37163,13 @@ class bf extends eL {
37156
37163
  }
37157
37164
  facetSortFields(t) {
37158
37165
  const { facet: n } = this, r = n[t];
37159
- return r ? Co(r.sort) ? [tv(r, r.sort, { expr: "datum" })] : z(r.sort) ? [Nu(r, t, { expr: "datum" })] : [K(r, { expr: "datum" })] : [];
37166
+ return r ? Co(r.sort) ? [tv(r, r.sort, { expr: "datum" })] : B(r.sort) ? [Nu(r, t, { expr: "datum" })] : [K(r, { expr: "datum" })] : [];
37160
37167
  }
37161
37168
  facetSortOrder(t) {
37162
37169
  const { facet: n } = this, r = n[t];
37163
37170
  if (r) {
37164
37171
  const { sort: i } = r;
37165
- return [(Co(i) ? i.order : !z(i) && i) || "ascending"];
37172
+ return [(Co(i) ? i.order : !B(i) && i) || "ascending"];
37166
37173
  }
37167
37174
  return [];
37168
37175
  }
@@ -38097,8 +38104,8 @@ function Kge(e) {
38097
38104
  }
38098
38105
  function Zge(e) {
38099
38106
  const { encoding: t, stack: n, mark: r, markDef: i, config: o } = e, s = t.order;
38100
- if (!(!z(s) && ii(s) && $_(s.value) || !s && $_(He("order", i, o)))) {
38101
- if ((z(s) || H(s)) && !n)
38107
+ if (!(!B(s) && ii(s) && $_(s.value) || !s && $_(He("order", i, o)))) {
38108
+ if ((B(s) || H(s)) && !n)
38102
38109
  return sO(s, { expr: "datum" });
38103
38110
  if (qs(r)) {
38104
38111
  const a = i.orient === "horizontal" ? "y" : "x", l = t[a];
@@ -38203,7 +38210,7 @@ class oL extends eL {
38203
38210
  }
38204
38211
  initScale(t) {
38205
38212
  const { domain: n, range: r } = t, i = Yt(t);
38206
- return z(n) && (i.domain = n.map(er)), z(r) && (i.range = r.map(er)), i;
38213
+ return B(n) && (i.domain = n.map(er)), B(r) && (i.range = r.map(er)), i;
38207
38214
  }
38208
38215
  initAxes(t) {
38209
38216
  return Bo.reduce((n, r) => {
@@ -39256,7 +39263,7 @@ const zme = V0({
39256
39263
  vox: _me
39257
39264
  }, Symbol.toStringTag, { value: "Module" }));
39258
39265
  function Hme(e, t, n, r) {
39259
- if (z(e))
39266
+ if (B(e))
39260
39267
  return `[${e.map((i) => t(J(i) ? i : uM(i, n))).join(", ")}]`;
39261
39268
  if (Z(e)) {
39262
39269
  let i = "";
@@ -40257,12 +40264,12 @@ function mL() {
40257
40264
  throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
40258
40265
  if (this.set.length > 1) {
40259
40266
  const D = this.set[0];
40260
- if (this.set = this.set.filter((B) => !g(B[0])), this.set.length === 0)
40267
+ if (this.set = this.set.filter((z) => !g(z[0])), this.set.length === 0)
40261
40268
  this.set = [D];
40262
40269
  else if (this.set.length > 1) {
40263
- for (const B of this.set)
40264
- if (B.length === 1 && m(B[0])) {
40265
- this.set = [B];
40270
+ for (const z of this.set)
40271
+ if (z.length === 1 && m(z[0])) {
40272
+ this.set = [z];
40266
40273
  break;
40267
40274
  }
40268
40275
  }
@@ -40288,27 +40295,27 @@ function mL() {
40288
40295
  return this.range;
40289
40296
  }
40290
40297
  parseRange($) {
40291
- const D = ((this.options.includePrerelease && h) | (this.options.loose && p)) + ":" + $, B = r.get(D);
40292
- if (B)
40293
- return B;
40294
- const I = this.options.loose, V = I ? l[u.HYPHENRANGELOOSE] : l[u.HYPHENRANGE];
40295
- $ = $.replace(V, R(this.options.includePrerelease)), s("hyphen replace", $), $ = $.replace(l[u.COMPARATORTRIM], c), s("comparator trim", $), $ = $.replace(l[u.TILDETRIM], f), s("tilde trim", $), $ = $.replace(l[u.CARETTRIM], d), s("caret trim", $);
40296
- let ue = $.split(" ").map((be) => b(be, this.options)).join(" ").split(/\s+/).map((be) => M(be, this.options));
40297
- I && (ue = ue.filter((be) => (s("loose invalid filter", be, this.options), !!be.match(l[u.COMPARATORLOOSE])))), s("range list", ue);
40298
- const oe = /* @__PURE__ */ new Map(), ye = ue.map((be) => new o(be, this.options));
40298
+ const D = ((this.options.includePrerelease && h) | (this.options.loose && p)) + ":" + $, z = r.get(D);
40299
+ if (z)
40300
+ return z;
40301
+ const L = this.options.loose, Y = L ? l[u.HYPHENRANGELOOSE] : l[u.HYPHENRANGE];
40302
+ $ = $.replace(Y, R(this.options.includePrerelease)), s("hyphen replace", $), $ = $.replace(l[u.COMPARATORTRIM], c), s("comparator trim", $), $ = $.replace(l[u.TILDETRIM], f), s("tilde trim", $), $ = $.replace(l[u.CARETTRIM], d), s("caret trim", $);
40303
+ let oe = $.split(" ").map((be) => b(be, this.options)).join(" ").split(/\s+/).map((be) => M(be, this.options));
40304
+ L && (oe = oe.filter((be) => (s("loose invalid filter", be, this.options), !!be.match(l[u.COMPARATORLOOSE])))), s("range list", oe);
40305
+ const se = /* @__PURE__ */ new Map(), ye = oe.map((be) => new o(be, this.options));
40299
40306
  for (const be of ye) {
40300
40307
  if (g(be))
40301
40308
  return [be];
40302
- oe.set(be.value, be);
40309
+ se.set(be.value, be);
40303
40310
  }
40304
- oe.size > 1 && oe.has("") && oe.delete("");
40305
- const qe = [...oe.values()];
40311
+ se.size > 1 && se.has("") && se.delete("");
40312
+ const qe = [...se.values()];
40306
40313
  return r.set(D, qe), qe;
40307
40314
  }
40308
40315
  intersects($, N) {
40309
40316
  if (!($ instanceof t))
40310
40317
  throw new TypeError("a Range is required");
40311
- return this.set.some((D) => y(D, N) && $.set.some((B) => y(B, N) && D.every((I) => B.every((V) => I.intersects(V, N)))));
40318
+ return this.set.some((D) => y(D, N) && $.set.some((z) => y(z, N) && D.every((L) => z.every((Y) => L.intersects(Y, N)))));
40312
40319
  }
40313
40320
  // if ANY of the sets match ALL of its comparators, then pass
40314
40321
  test($) {
@@ -40336,42 +40343,42 @@ function mL() {
40336
40343
  } = Rk(), { FLAG_INCLUDE_PRERELEASE: h, FLAG_LOOSE: p } = Fk(), g = (T) => T.value === "<0.0.0-0", m = (T) => T.value === "", y = (T, $) => {
40337
40344
  let N = !0;
40338
40345
  const D = T.slice();
40339
- let B = D.pop();
40346
+ let z = D.pop();
40340
40347
  for (; N && D.length; )
40341
- N = D.every((I) => B.intersects(I, $)), B = D.pop();
40348
+ N = D.every((L) => z.intersects(L, $)), z = D.pop();
40342
40349
  return N;
40343
40350
  }, b = (T, $) => (s("comp", T, $), T = E(T, $), s("caret", T), T = v(T, $), s("tildes", T), T = C(T, $), s("xrange", T), T = A(T, $), s("stars", T), T), _ = (T) => !T || T.toLowerCase() === "x" || T === "*", v = (T, $) => T.trim().split(/\s+/).map((N) => w(N, $)).join(" "), w = (T, $) => {
40344
40351
  const N = $.loose ? l[u.TILDELOOSE] : l[u.TILDE];
40345
- return T.replace(N, (D, B, I, V, ue) => {
40346
- s("tilde", T, D, B, I, V, ue);
40347
- let oe;
40348
- return _(B) ? oe = "" : _(I) ? oe = `>=${B}.0.0 <${+B + 1}.0.0-0` : _(V) ? oe = `>=${B}.${I}.0 <${B}.${+I + 1}.0-0` : ue ? (s("replaceTilde pr", ue), oe = `>=${B}.${I}.${V}-${ue} <${B}.${+I + 1}.0-0`) : oe = `>=${B}.${I}.${V} <${B}.${+I + 1}.0-0`, s("tilde return", oe), oe;
40352
+ return T.replace(N, (D, z, L, Y, oe) => {
40353
+ s("tilde", T, D, z, L, Y, oe);
40354
+ let se;
40355
+ return _(z) ? se = "" : _(L) ? se = `>=${z}.0.0 <${+z + 1}.0.0-0` : _(Y) ? se = `>=${z}.${L}.0 <${z}.${+L + 1}.0-0` : oe ? (s("replaceTilde pr", oe), se = `>=${z}.${L}.${Y}-${oe} <${z}.${+L + 1}.0-0`) : se = `>=${z}.${L}.${Y} <${z}.${+L + 1}.0-0`, s("tilde return", se), se;
40349
40356
  });
40350
40357
  }, E = (T, $) => T.trim().split(/\s+/).map((N) => x(N, $)).join(" "), x = (T, $) => {
40351
40358
  s("caret", T, $);
40352
40359
  const N = $.loose ? l[u.CARETLOOSE] : l[u.CARET], D = $.includePrerelease ? "-0" : "";
40353
- return T.replace(N, (B, I, V, ue, oe) => {
40354
- s("caret", T, B, I, V, ue, oe);
40360
+ return T.replace(N, (z, L, Y, oe, se) => {
40361
+ s("caret", T, z, L, Y, oe, se);
40355
40362
  let ye;
40356
- return _(I) ? ye = "" : _(V) ? ye = `>=${I}.0.0${D} <${+I + 1}.0.0-0` : _(ue) ? I === "0" ? ye = `>=${I}.${V}.0${D} <${I}.${+V + 1}.0-0` : ye = `>=${I}.${V}.0${D} <${+I + 1}.0.0-0` : oe ? (s("replaceCaret pr", oe), I === "0" ? V === "0" ? ye = `>=${I}.${V}.${ue}-${oe} <${I}.${V}.${+ue + 1}-0` : ye = `>=${I}.${V}.${ue}-${oe} <${I}.${+V + 1}.0-0` : ye = `>=${I}.${V}.${ue}-${oe} <${+I + 1}.0.0-0`) : (s("no pr"), I === "0" ? V === "0" ? ye = `>=${I}.${V}.${ue}${D} <${I}.${V}.${+ue + 1}-0` : ye = `>=${I}.${V}.${ue}${D} <${I}.${+V + 1}.0-0` : ye = `>=${I}.${V}.${ue} <${+I + 1}.0.0-0`), s("caret return", ye), ye;
40363
+ return _(L) ? ye = "" : _(Y) ? ye = `>=${L}.0.0${D} <${+L + 1}.0.0-0` : _(oe) ? L === "0" ? ye = `>=${L}.${Y}.0${D} <${L}.${+Y + 1}.0-0` : ye = `>=${L}.${Y}.0${D} <${+L + 1}.0.0-0` : se ? (s("replaceCaret pr", se), L === "0" ? Y === "0" ? ye = `>=${L}.${Y}.${oe}-${se} <${L}.${Y}.${+oe + 1}-0` : ye = `>=${L}.${Y}.${oe}-${se} <${L}.${+Y + 1}.0-0` : ye = `>=${L}.${Y}.${oe}-${se} <${+L + 1}.0.0-0`) : (s("no pr"), L === "0" ? Y === "0" ? ye = `>=${L}.${Y}.${oe}${D} <${L}.${Y}.${+oe + 1}-0` : ye = `>=${L}.${Y}.${oe}${D} <${L}.${+Y + 1}.0-0` : ye = `>=${L}.${Y}.${oe} <${+L + 1}.0.0-0`), s("caret return", ye), ye;
40357
40364
  });
40358
40365
  }, C = (T, $) => (s("replaceXRanges", T, $), T.split(/\s+/).map((N) => S(N, $)).join(" ")), S = (T, $) => {
40359
40366
  T = T.trim();
40360
40367
  const N = $.loose ? l[u.XRANGELOOSE] : l[u.XRANGE];
40361
- return T.replace(N, (D, B, I, V, ue, oe) => {
40362
- s("xRange", T, D, B, I, V, ue, oe);
40363
- const ye = _(I), qe = ye || _(V), be = qe || _(ue), It = be;
40364
- return B === "=" && It && (B = ""), oe = $.includePrerelease ? "-0" : "", ye ? B === ">" || B === "<" ? D = "<0.0.0-0" : D = "*" : B && It ? (qe && (V = 0), ue = 0, B === ">" ? (B = ">=", qe ? (I = +I + 1, V = 0, ue = 0) : (V = +V + 1, ue = 0)) : B === "<=" && (B = "<", qe ? I = +I + 1 : V = +V + 1), B === "<" && (oe = "-0"), D = `${B + I}.${V}.${ue}${oe}`) : qe ? D = `>=${I}.0.0${oe} <${+I + 1}.0.0-0` : be && (D = `>=${I}.${V}.0${oe} <${I}.${+V + 1}.0-0`), s("xRange return", D), D;
40368
+ return T.replace(N, (D, z, L, Y, oe, se) => {
40369
+ s("xRange", T, D, z, L, Y, oe, se);
40370
+ const ye = _(L), qe = ye || _(Y), be = qe || _(oe), It = be;
40371
+ return z === "=" && It && (z = ""), se = $.includePrerelease ? "-0" : "", ye ? z === ">" || z === "<" ? D = "<0.0.0-0" : D = "*" : z && It ? (qe && (Y = 0), oe = 0, z === ">" ? (z = ">=", qe ? (L = +L + 1, Y = 0, oe = 0) : (Y = +Y + 1, oe = 0)) : z === "<=" && (z = "<", qe ? L = +L + 1 : Y = +Y + 1), z === "<" && (se = "-0"), D = `${z + L}.${Y}.${oe}${se}`) : qe ? D = `>=${L}.0.0${se} <${+L + 1}.0.0-0` : be && (D = `>=${L}.${Y}.0${se} <${L}.${+Y + 1}.0-0`), s("xRange return", D), D;
40365
40372
  });
40366
- }, A = (T, $) => (s("replaceStars", T, $), T.trim().replace(l[u.STAR], "")), M = (T, $) => (s("replaceGTE0", T, $), T.trim().replace(l[$.includePrerelease ? u.GTE0PRE : u.GTE0], "")), R = (T) => ($, N, D, B, I, V, ue, oe, ye, qe, be, It) => (_(D) ? N = "" : _(B) ? N = `>=${D}.0.0${T ? "-0" : ""}` : _(I) ? N = `>=${D}.${B}.0${T ? "-0" : ""}` : V ? N = `>=${N}` : N = `>=${N}${T ? "-0" : ""}`, _(ye) ? oe = "" : _(qe) ? oe = `<${+ye + 1}.0.0-0` : _(be) ? oe = `<${ye}.${+qe + 1}.0-0` : It ? oe = `<=${ye}.${qe}.${be}-${It}` : T ? oe = `<${ye}.${qe}.${+be + 1}-0` : oe = `<=${oe}`, `${N} ${oe}`.trim()), F = (T, $, N) => {
40373
+ }, A = (T, $) => (s("replaceStars", T, $), T.trim().replace(l[u.STAR], "")), M = (T, $) => (s("replaceGTE0", T, $), T.trim().replace(l[$.includePrerelease ? u.GTE0PRE : u.GTE0], "")), R = (T) => ($, N, D, z, L, Y, oe, se, ye, qe, be, It) => (_(D) ? N = "" : _(z) ? N = `>=${D}.0.0${T ? "-0" : ""}` : _(L) ? N = `>=${D}.${z}.0${T ? "-0" : ""}` : Y ? N = `>=${N}` : N = `>=${N}${T ? "-0" : ""}`, _(ye) ? se = "" : _(qe) ? se = `<${+ye + 1}.0.0-0` : _(be) ? se = `<${ye}.${+qe + 1}.0-0` : It ? se = `<=${ye}.${qe}.${be}-${It}` : T ? se = `<${ye}.${qe}.${+be + 1}-0` : se = `<=${se}`, `${N} ${se}`.trim()), F = (T, $, N) => {
40367
40374
  for (let D = 0; D < T.length; D++)
40368
40375
  if (!T[D].test($))
40369
40376
  return !1;
40370
40377
  if ($.prerelease.length && !N.includePrerelease) {
40371
40378
  for (let D = 0; D < T.length; D++)
40372
40379
  if (s(T[D].semver), T[D].semver !== o.ANY && T[D].semver.prerelease.length > 0) {
40373
- const B = T[D].semver;
40374
- if (B.major === $.major && B.minor === $.minor && B.patch === $.patch)
40380
+ const z = T[D].semver;
40381
+ if (z.major === $.major && z.minor === $.minor && z.patch === $.patch)
40375
40382
  return !0;
40376
40383
  }
40377
40384
  return !1;
@@ -40797,19 +40804,19 @@ const X0e = "_text_we7dz_1", K0e = "_chart_time_we7dz_30", Z0e = "_quick_replies
40797
40804
  quick_reply: J0e
40798
40805
  };
40799
40806
  function Q0e(e) {
40800
- const { message: t } = e, n = t.message.template, { template: r, botMessage: i } = xt(), { avatar: o } = Dt(), [s, a] = Ne(n?.defaultChart ?? n?.chartOptions?.[0]?.type), l = we(() => n.chartOptions, [n]), u = we(
40807
+ const { message: t } = e, n = t.message.template, { template: r, botMessage: i } = xt(), { avatar: o } = Dt(), [s, a] = Ne(n?.defaultChart ?? n?.chartOptions?.[0]?.type), l = xe(() => n.chartOptions, [n]), u = xe(
40801
40808
  () => n?.chartOptions?.find(
40802
40809
  (f) => f.type === s
40803
40810
  )?.spec ?? l[0].spec,
40804
40811
  [s, n.chartOptions, l]
40805
- ), c = we(
40812
+ ), c = xe(
40806
40813
  () => ({
40807
40814
  color: i?.color,
40808
40815
  backgroundColor: i?.backgroundColor
40809
40816
  }),
40810
40817
  [i]
40811
40818
  );
40812
- return /* @__PURE__ */ Y(
40819
+ return /* @__PURE__ */ V(
40813
40820
  dn,
40814
40821
  {
40815
40822
  className: "asgard-chart-template",
@@ -40818,7 +40825,7 @@ function Q0e(e) {
40818
40825
  style: r?.ChartMessageTemplate?.style,
40819
40826
  children: [
40820
40827
  /* @__PURE__ */ k(cr, { avatar: o }),
40821
- /* @__PURE__ */ Y("div", { className: Me(Dc.text, Dc["text--bot"]), style: c, children: [
40828
+ /* @__PURE__ */ V("div", { className: Me(Dc.text, Dc["text--bot"]), style: c, children: [
40822
40829
  /* @__PURE__ */ k("div", { children: n.title }),
40823
40830
  /* @__PURE__ */ k("div", { children: n.text })
40824
40831
  ] }),
@@ -40837,10 +40844,10 @@ const e1e = "_image_box_8cz9p_1", t1e = "_full_screen_8cz9p_24", n1e = "_imageOr
40837
40844
  };
40838
40845
  function i1e(e) {
40839
40846
  const { message: t } = e, n = t.message.template, { previewImageUrl: r, originalContentUrl: i } = n, { template: o } = xt(), { avatar: s } = Dt(), [a, l] = Ne(!1);
40840
- return a ? /* @__PURE__ */ Y("div", { className: Fh.full_screen, onClick: () => l(!1), children: [
40847
+ return a ? /* @__PURE__ */ V("div", { className: Fh.full_screen, onClick: () => l(!1), children: [
40841
40848
  /* @__PURE__ */ k("div", { className: Fh.full_screen_close, children: /* @__PURE__ */ k(JM, {}) }),
40842
40849
  /* @__PURE__ */ k("div", { className: Fh.imageOrigin, style: { backgroundImage: `url(${i})` } })
40843
- ] }) : /* @__PURE__ */ Y(
40850
+ ] }) : /* @__PURE__ */ V(
40844
40851
  dn,
40845
40852
  {
40846
40853
  className: "asgard-image-template",
@@ -40910,7 +40917,7 @@ function p1e(e) {
40910
40917
  l.current && setTimeout(() => {
40911
40918
  l.current?.scrollIntoView({ behavior: "smooth" });
40912
40919
  }, 50);
40913
- }, v = we(() => d1e(i), [i]), w = we(() => xL(i), [i]), E = we(() => w ? h1e(w) : null, [w]), x = () => {
40920
+ }, v = xe(() => d1e(i), [i]), w = xe(() => xL(i), [i]), E = xe(() => w ? h1e(w) : null, [w]), x = () => {
40914
40921
  c(!0), !v && f.current && f.current.play();
40915
40922
  }, C = (M) => {
40916
40923
  const R = Math.floor(M / 1e3), F = Math.floor(R / 60), T = R % 60;
@@ -40947,25 +40954,25 @@ function p1e(e) {
40947
40954
  Ye(() => {
40948
40955
  v && p({ width: 16, height: 9 });
40949
40956
  }, [v]);
40950
- const A = we(() => {
40957
+ const A = xe(() => {
40951
40958
  const M = g || window.innerWidth, R = y || window.innerHeight, T = h || { width: 16, height: 9 }, { width: $, height: N } = T, D = $ / N;
40952
40959
  if ($ > N) {
40953
- const I = M * 0.76, V = I / D;
40960
+ const L = M * 0.76, Y = L / D;
40954
40961
  return {
40955
- width: `${I}px`,
40956
- height: `${V}px`,
40962
+ width: `${L}px`,
40963
+ height: `${Y}px`,
40957
40964
  maxWidth: "100%"
40958
40965
  };
40959
40966
  } else {
40960
- const I = R * 0.7;
40967
+ const L = R * 0.7;
40961
40968
  return {
40962
- width: `${I * D}px`,
40963
- height: `${I}px`,
40969
+ width: `${L * D}px`,
40970
+ height: `${L}px`,
40964
40971
  maxWidth: "100%"
40965
40972
  };
40966
40973
  }
40967
40974
  }, [g, y, h]);
40968
- return /* @__PURE__ */ Y(
40975
+ return /* @__PURE__ */ V(
40969
40976
  dn,
40970
40977
  {
40971
40978
  className: "asgard-video-template",
@@ -41002,9 +41009,9 @@ function p1e(e) {
41002
41009
  onEnded: () => c(!1),
41003
41010
  onLoadedMetadata: S
41004
41011
  }
41005
- ) }) : /* @__PURE__ */ Y("div", { className: ra.video_preview, onClick: x, children: [
41012
+ ) }) : /* @__PURE__ */ V("div", { className: ra.video_preview, onClick: x, children: [
41006
41013
  /* @__PURE__ */ k("img", { src: r, alt: "Video preview", onLoad: _ }),
41007
- /* @__PURE__ */ k("div", { className: ra.play_button, children: /* @__PURE__ */ Y("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
41014
+ /* @__PURE__ */ k("div", { className: ra.play_button, children: /* @__PURE__ */ V("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
41008
41015
  /* @__PURE__ */ k("circle", { cx: "24", cy: "24", r: "24", fill: "rgba(0, 0, 0, 0.6)" }),
41009
41016
  /* @__PURE__ */ k("path", { d: "M18 14L18 34L32 24L18 14Z", fill: "white" })
41010
41017
  ] }) }),
@@ -41027,7 +41034,7 @@ function y1e(e) {
41027
41034
  s.current && s.current.scrollIntoView({ behavior: "smooth" });
41028
41035
  }, 100);
41029
41036
  return () => clearTimeout(a);
41030
- }, [s]), /* @__PURE__ */ Y(
41037
+ }, [s]), /* @__PURE__ */ V(
41031
41038
  dn,
41032
41039
  {
41033
41040
  className: "asgard-audio-template",
@@ -41063,7 +41070,7 @@ function k1e(e) {
41063
41070
  const l = `https://www.google.com/maps?q=${t.latitude},${t.longitude}`;
41064
41071
  uv(l, "_blank");
41065
41072
  }, { backgroundColor: o, background: s } = n?.style || {}, a = {};
41066
- return o && (a.backgroundColor = o), s && (a.background = s), /* @__PURE__ */ Y(
41073
+ return o && (a.backgroundColor = o), s && (a.background = s), /* @__PURE__ */ V(
41067
41074
  "div",
41068
41075
  {
41069
41076
  className: `asgard-location-card ${Tl.card_root}`,
@@ -41087,7 +41094,7 @@ function k1e(e) {
41087
41094
  referrerPolicy: "no-referrer-when-downgrade"
41088
41095
  }
41089
41096
  ) }),
41090
- /* @__PURE__ */ Y("div", { className: Tl.card_content, style: a, children: [
41097
+ /* @__PURE__ */ V("div", { className: Tl.card_content, style: a, children: [
41091
41098
  /* @__PURE__ */ k("h5", { className: Tl.card_title, style: n?.title?.style, children: t?.title }),
41092
41099
  /* @__PURE__ */ k("div", { className: Tl.card_description, style: n?.description?.style, children: t?.text })
41093
41100
  ] })
@@ -41097,7 +41104,7 @@ function k1e(e) {
41097
41104
  }
41098
41105
  function C1e(e) {
41099
41106
  const { message: t } = e, { template: n } = xt(), { avatar: r } = Dt(), i = t.message.template;
41100
- return /* @__PURE__ */ Y(dn, { className: "asgard-location-template", type: "bot", direction: "horizontal", children: [
41107
+ return /* @__PURE__ */ V(dn, { className: "asgard-location-template", type: "bot", direction: "horizontal", children: [
41101
41108
  /* @__PURE__ */ k(cr, { avatar: r }),
41102
41109
  /* @__PURE__ */ k(
41103
41110
  ur,
@@ -41140,21 +41147,21 @@ const S1e = "_message_wrapper_1cjr0_1", $1e = "_text_bubble_1cjr0_9", A1e = "_im
41140
41147
  modal_image: L1e
41141
41148
  };
41142
41149
  function I1e({ message: e }) {
41143
- const [t, n] = Ne(null), r = xt(), i = we(
41150
+ const [t, n] = Ne(null), r = xt(), i = xe(
41144
41151
  () => ({
41145
41152
  color: r?.userMessage?.color,
41146
41153
  backgroundColor: r?.userMessage?.backgroundColor
41147
41154
  }),
41148
41155
  [r]
41149
- ), o = we(
41156
+ ), o = xe(
41150
41157
  () => ({
41151
41158
  backgroundColor: r?.userMessage?.backgroundColor,
41152
41159
  color: r?.userMessage?.color
41153
41160
  }),
41154
41161
  [r]
41155
41162
  ), s = r?.template?.TextMessageTemplate?.style;
41156
- return /* @__PURE__ */ Y(Ka, { children: [
41157
- /* @__PURE__ */ Y(
41163
+ return /* @__PURE__ */ V(Ka, { children: [
41164
+ /* @__PURE__ */ V(
41158
41165
  dn,
41159
41166
  {
41160
41167
  className: "asgard-text-template asgard-text-template--user",
@@ -41162,7 +41169,7 @@ function I1e({ message: e }) {
41162
41169
  direction: "horizontal",
41163
41170
  style: s,
41164
41171
  children: [
41165
- /* @__PURE__ */ Y("div", { className: yr.message_wrapper, children: [
41172
+ /* @__PURE__ */ V("div", { className: yr.message_wrapper, children: [
41166
41173
  e.message.filePreviewUrls && e.message.filePreviewUrls.length > 0 && /* @__PURE__ */ k("div", { className: yr.images_container, children: e.message.filePreviewUrls.map((a, l) => /* @__PURE__ */ k("div", { className: yr.image_wrapper, children: /* @__PURE__ */ k(
41167
41174
  "img",
41168
41175
  {
@@ -41173,8 +41180,8 @@ function I1e({ message: e }) {
41173
41180
  onClick: () => n(a)
41174
41181
  }
41175
41182
  ) }, l)) }),
41176
- e.message.documentNames && e.message.documentNames.length > 0 && /* @__PURE__ */ k("div", { className: yr.documents_container, children: e.message.documentNames.map((a, l) => /* @__PURE__ */ Y("div", { className: yr.document_card, style: o, children: [
41177
- /* @__PURE__ */ Y(
41183
+ e.message.documentNames && e.message.documentNames.length > 0 && /* @__PURE__ */ k("div", { className: yr.documents_container, children: e.message.documentNames.map((a, l) => /* @__PURE__ */ V("div", { className: yr.document_card, style: o, children: [
41184
+ /* @__PURE__ */ V(
41178
41185
  "svg",
41179
41186
  {
41180
41187
  xmlns: "http://www.w3.org/2000/svg",
@@ -41257,7 +41264,7 @@ function dye({ className: e }) {
41257
41264
  return /* @__PURE__ */ k("svg", { className: e, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ k("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) });
41258
41265
  }
41259
41266
  function hye({ className: e }) {
41260
- return /* @__PURE__ */ Y("svg", { className: e, viewBox: "0 0 24 24", fill: "currentColor", children: [
41267
+ return /* @__PURE__ */ V("svg", { className: e, viewBox: "0 0 24 24", fill: "currentColor", children: [
41261
41268
  /* @__PURE__ */ k("circle", { cx: "12", cy: "12", r: "10", fill: "none", stroke: "currentColor", strokeWidth: "2", opacity: "0.3" }),
41262
41269
  /* @__PURE__ */ k(
41263
41270
  "circle",
@@ -41277,7 +41284,7 @@ function hye({ className: e }) {
41277
41284
  ] });
41278
41285
  }
41279
41286
  function EL({ className: e }) {
41280
- return /* @__PURE__ */ Y("svg", { className: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
41287
+ return /* @__PURE__ */ V("svg", { className: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
41281
41288
  /* @__PURE__ */ k("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
41282
41289
  /* @__PURE__ */ k("path", { d: "M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1" })
41283
41290
  ] });
@@ -41339,10 +41346,10 @@ function bye({ isOpen: e, onClose: t, title: n, data: r }) {
41339
41346
  };
41340
41347
  }, [e, t]), Ye(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
41341
41348
  document.body.style.overflow = "";
41342
- }), [e]), e ? /* @__PURE__ */ k("div", { className: Ce.json_modal__backdrop, onClick: s, children: /* @__PURE__ */ Y("div", { className: Ce.json_modal, children: [
41343
- /* @__PURE__ */ Y("div", { className: Ce.json_modal__header, children: [
41349
+ }), [e]), e ? /* @__PURE__ */ k("div", { className: Ce.json_modal__backdrop, onClick: s, children: /* @__PURE__ */ V("div", { className: Ce.json_modal, children: [
41350
+ /* @__PURE__ */ V("div", { className: Ce.json_modal__header, children: [
41344
41351
  /* @__PURE__ */ k("span", { className: Ce.json_modal__title, children: n }),
41345
- /* @__PURE__ */ Y("div", { className: Ce.json_modal__actions, children: [
41352
+ /* @__PURE__ */ V("div", { className: Ce.json_modal__actions, children: [
41346
41353
  /* @__PURE__ */ k("button", { className: Ce.json_modal__action_btn, onClick: o, title: "Copy", children: /* @__PURE__ */ k(EL, {}) }),
41347
41354
  /* @__PURE__ */ k("button", { className: Ce.json_modal__action_btn, onClick: t, title: "Close", children: /* @__PURE__ */ k(gye, {}) })
41348
41355
  ] })
@@ -41358,11 +41365,11 @@ function LM({ title: e, data: t }) {
41358
41365
  }, []), a = pe(() => {
41359
41366
  r(!1);
41360
41367
  }, []);
41361
- return /* @__PURE__ */ Y(Ka, { children: [
41362
- /* @__PURE__ */ Y("div", { className: Ce.json_viewer, children: [
41363
- /* @__PURE__ */ Y("div", { className: Ce.json_viewer__header, children: [
41368
+ return /* @__PURE__ */ V(Ka, { children: [
41369
+ /* @__PURE__ */ V("div", { className: Ce.json_viewer, children: [
41370
+ /* @__PURE__ */ V("div", { className: Ce.json_viewer__header, children: [
41364
41371
  /* @__PURE__ */ k("span", { className: Ce.json_viewer__title, children: e }),
41365
- /* @__PURE__ */ Y("div", { className: Ce.json_viewer__actions, children: [
41372
+ /* @__PURE__ */ V("div", { className: Ce.json_viewer__actions, children: [
41366
41373
  /* @__PURE__ */ k("button", { className: Ce.json_viewer__action_btn, onClick: o, title: "Copy", children: /* @__PURE__ */ k(EL, {}) }),
41367
41374
  /* @__PURE__ */ k("button", { className: Ce.json_viewer__action_btn, onClick: s, title: "Expand", children: /* @__PURE__ */ k(pye, {}) })
41368
41375
  ] })
@@ -41387,9 +41394,9 @@ function vye({ item: e }) {
41387
41394
  const [t, n] = Ne(!1), r = e.initial || e.result, i = pe(() => {
41388
41395
  r && n((o) => !o);
41389
41396
  }, [r]);
41390
- return /* @__PURE__ */ Y("div", { className: Ce.tool_call_item, children: [
41391
- /* @__PURE__ */ Y("div", { className: Ce.tool_call_item__header, onClick: i, children: [
41392
- /* @__PURE__ */ Y("div", { className: Ce.tool_call_item__left, children: [
41397
+ return /* @__PURE__ */ V("div", { className: Ce.tool_call_item, children: [
41398
+ /* @__PURE__ */ V("div", { className: Ce.tool_call_item__header, onClick: i, children: [
41399
+ /* @__PURE__ */ V("div", { className: Ce.tool_call_item__left, children: [
41393
41400
  r && /* @__PURE__ */ k(
41394
41401
  wL,
41395
41402
  {
@@ -41403,7 +41410,7 @@ function vye({ item: e }) {
41403
41410
  ] }),
41404
41411
  /* @__PURE__ */ k("div", { className: Ce.tool_call_item__status, children: /* @__PURE__ */ k(_ye, { status: e.status }) })
41405
41412
  ] }),
41406
- t && r && /* @__PURE__ */ Y("div", { className: Ce.tool_call_item__content, children: [
41413
+ t && r && /* @__PURE__ */ V("div", { className: Ce.tool_call_item__content, children: [
41407
41414
  e.initial && /* @__PURE__ */ k(LM, { title: "Initial", data: e.initial }),
41408
41415
  e.result && /* @__PURE__ */ k(LM, { title: "Result", data: e.result })
41409
41416
  ] })
@@ -41418,8 +41425,8 @@ function xye({
41418
41425
  const [i, o] = Ne(n), s = pe(() => {
41419
41426
  o((a) => !a);
41420
41427
  }, []);
41421
- return /* @__PURE__ */ Y("div", { className: Me(Ce.tool_call_group, r), children: [
41422
- /* @__PURE__ */ Y("div", { className: Ce.tool_call_group__header, onClick: s, children: [
41428
+ return /* @__PURE__ */ V("div", { className: Me(Ce.tool_call_group, r), children: [
41429
+ /* @__PURE__ */ V("div", { className: Ce.tool_call_group__header, onClick: s, children: [
41423
41430
  /* @__PURE__ */ k(
41424
41431
  wL,
41425
41432
  {
@@ -41433,7 +41440,7 @@ function xye({
41433
41440
  }
41434
41441
  function wye(e) {
41435
41442
  const { time: t, ...n } = e, { avatar: r } = Dt();
41436
- return /* @__PURE__ */ Y(dn, { className: "asgard-tool-call-group-template", type: "bot", direction: "horizontal", children: [
41443
+ return /* @__PURE__ */ V(dn, { className: "asgard-tool-call-group-template", type: "bot", direction: "horizontal", children: [
41437
41444
  /* @__PURE__ */ k(cr, { avatar: r }),
41438
41445
  /* @__PURE__ */ k(ur, { time: t, children: /* @__PURE__ */ k(xye, { ...n }) })
41439
41446
  ] });
@@ -41492,7 +41499,7 @@ function jye(e, t, n) {
41492
41499
  `);
41493
41500
  }
41494
41501
  function qye() {
41495
- return /* @__PURE__ */ Y("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
41502
+ return /* @__PURE__ */ V("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
41496
41503
  /* @__PURE__ */ k("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
41497
41504
  /* @__PURE__ */ k("polyline", { points: "7 10 12 15 17 10" }),
41498
41505
  /* @__PURE__ */ k("line", { x1: "12", y1: "15", x2: "12", y2: "3" })
@@ -41503,11 +41510,11 @@ function Wye(e) {
41503
41510
  visible: !1,
41504
41511
  fileName: "",
41505
41512
  blobUrl: null
41506
- }), m = a?.size ?? s.length, y = Math.ceil(s.length / m), b = we(() => {
41513
+ }), m = a?.size ?? s.length, y = Math.ceil(s.length / m), b = xe(() => {
41507
41514
  if (!a) return s;
41508
41515
  const S = (d - 1) * m, A = S + m;
41509
41516
  return s.slice(S, A);
41510
- }, [s, a, d, m]), _ = we(
41517
+ }, [s, a, d, m]), _ = xe(
41511
41518
  () => ({
41512
41519
  color: c?.color,
41513
41520
  backgroundColor: c?.backgroundColor
@@ -41532,7 +41539,7 @@ function Wye(e) {
41532
41539
  }, 5e3);
41533
41540
  return () => clearTimeout(S);
41534
41541
  }
41535
- }, [p.visible, C]), /* @__PURE__ */ Y(
41542
+ }, [p.visible, C]), /* @__PURE__ */ V(
41536
41543
  dn,
41537
41544
  {
41538
41545
  className: "asgard-table-template",
@@ -41541,8 +41548,8 @@ function Wye(e) {
41541
41548
  style: u?.TableMessageTemplate?.style,
41542
41549
  children: [
41543
41550
  /* @__PURE__ */ k(cr, { avatar: f }),
41544
- /* @__PURE__ */ k(ur, { quickReplies: n?.quickReplies, children: /* @__PURE__ */ Y("div", { className: kt.container, style: _, children: [
41545
- /* @__PURE__ */ Y("div", { className: kt.header, children: [
41551
+ /* @__PURE__ */ k(ur, { quickReplies: n?.quickReplies, children: /* @__PURE__ */ V("div", { className: kt.container, style: _, children: [
41552
+ /* @__PURE__ */ V("div", { className: kt.header, children: [
41546
41553
  i && /* @__PURE__ */ k("div", { className: kt.title, children: i }),
41547
41554
  s.length > 0 && /* @__PURE__ */ k(
41548
41555
  "button",
@@ -41555,15 +41562,15 @@ function Wye(e) {
41555
41562
  }
41556
41563
  )
41557
41564
  ] }),
41558
- s.length === 0 ? /* @__PURE__ */ k("div", { className: kt.empty_state, children: "No data available" }) : /* @__PURE__ */ Y(Ka, { children: [
41559
- /* @__PURE__ */ k("div", { className: kt.table_wrapper, children: /* @__PURE__ */ Y("table", { className: kt.table, children: [
41565
+ s.length === 0 ? /* @__PURE__ */ k("div", { className: kt.empty_state, children: "No data available" }) : /* @__PURE__ */ V(Ka, { children: [
41566
+ /* @__PURE__ */ k("div", { className: kt.table_wrapper, children: /* @__PURE__ */ V("table", { className: kt.table, children: [
41560
41567
  /* @__PURE__ */ k("thead", { className: kt.table_header, children: /* @__PURE__ */ k("tr", { children: o.map((S, A) => /* @__PURE__ */ k("th", { className: kt.table_header_cell, children: S.header }, A)) }) }),
41561
41568
  /* @__PURE__ */ k("tbody", { children: b.map((S, A) => /* @__PURE__ */ k("tr", { className: kt.table_row, children: o.map((M, R) => {
41562
41569
  const F = SL(S, M, R, l), T = CL(F, M.format);
41563
41570
  return /* @__PURE__ */ k("td", { className: kt.table_cell, children: T }, R);
41564
41571
  }) }, A)) })
41565
41572
  ] }) }),
41566
- a && y > 1 && /* @__PURE__ */ Y("div", { className: kt.pagination, children: [
41573
+ a && y > 1 && /* @__PURE__ */ V("div", { className: kt.pagination, children: [
41567
41574
  /* @__PURE__ */ k(
41568
41575
  "button",
41569
41576
  {
@@ -41574,7 +41581,7 @@ function Wye(e) {
41574
41581
  children: "<"
41575
41582
  }
41576
41583
  ),
41577
- /* @__PURE__ */ Y("span", { className: kt.pagination_info, children: [
41584
+ /* @__PURE__ */ V("span", { className: kt.pagination_info, children: [
41578
41585
  d,
41579
41586
  " / ",
41580
41587
  y
@@ -41591,7 +41598,7 @@ function Wye(e) {
41591
41598
  )
41592
41599
  ] })
41593
41600
  ] }),
41594
- p.visible && /* @__PURE__ */ Y("div", { className: kt.snackbar, children: [
41601
+ p.visible && /* @__PURE__ */ V("div", { className: kt.snackbar, children: [
41595
41602
  /* @__PURE__ */ k("span", { className: kt.snackbar_text, children: "Downloaded" }),
41596
41603
  /* @__PURE__ */ k("button", { className: kt.snackbar_action, onClick: x, children: "Open" }),
41597
41604
  /* @__PURE__ */ k("button", { className: kt.snackbar_close, onClick: C, "aria-label": "Close", children: "×" })
@@ -41603,8 +41610,8 @@ function Wye(e) {
41603
41610
  );
41604
41611
  }
41605
41612
  function Hye(e) {
41606
- const { message: t } = e, { renderMessageContent: n } = Xf(), { avatar: r } = Dt(), i = we(() => function({ children: a }) {
41607
- return t.type === "bot" ? /* @__PURE__ */ Y(dn, { type: "bot", direction: "horizontal", children: [
41613
+ const { message: t } = e, { renderMessageContent: n } = Xf(), { avatar: r } = Dt(), i = xe(() => function({ children: a }) {
41614
+ return t.type === "bot" ? /* @__PURE__ */ V(dn, { type: "bot", direction: "horizontal", children: [
41608
41615
  /* @__PURE__ */ k(cr, { avatar: r }),
41609
41616
  /* @__PURE__ */ k(ur, { message: t, time: t.time, children: a })
41610
41617
  ] }) : t.type === "user" ? /* @__PURE__ */ k(dn, { type: "user", direction: "horizontal", children: a }) : a;
@@ -41699,7 +41706,7 @@ function Xye() {
41699
41706
  o && l("smooth");
41700
41707
  }, [o, l]);
41701
41708
  qL({ ref: c, onResize: f });
41702
- const d = we(
41709
+ const d = xe(
41703
41710
  () => ({
41704
41711
  maxWidth: e?.contentMaxWidth ?? "1200px"
41705
41712
  }),
@@ -41712,7 +41719,7 @@ function Xye() {
41712
41719
  className: Me("asgard-chatbot-body", J0.chatbot_body),
41713
41720
  style: e?.body?.style,
41714
41721
  "data-scrollable": "true",
41715
- children: /* @__PURE__ */ Y("div", { ref: c, className: J0.chatbot_body__content, style: d, children: [
41722
+ children: /* @__PURE__ */ V("div", { ref: c, className: J0.chatbot_body__content, style: d, children: [
41716
41723
  Gye(Array.from(t?.values() ?? [])).map((h, p) => {
41717
41724
  if (h.type === "tool-call-group") {
41718
41725
  const g = h.toolCalls.map(Vye), m = h.toolCalls[0];
@@ -41947,7 +41954,7 @@ function Lbe(e) {
41947
41954
  },
41948
41955
  [t, n]
41949
41956
  );
41950
- return /* @__PURE__ */ Y(Ka, { children: [
41957
+ return /* @__PURE__ */ V(Ka, { children: [
41951
41958
  /* @__PURE__ */ k(
41952
41959
  "input",
41953
41960
  {
@@ -41977,46 +41984,46 @@ function Ibe() {
41977
41984
  title: u,
41978
41985
  programmaticScrollToBottom: c,
41979
41986
  onBeforeSendMessage: f
41980
- } = Dt(), { data: d } = av(), { chatbot: h } = xt(), p = we(() => o !== void 0 ? o : d.annotations?.embedConfig?.enableUpload ?? !1, [o, d.annotations?.embedConfig?.enableUpload]), g = we(() => s !== void 0 ? s : d.annotations?.embedConfig?.enableExport ?? !1, [s, d.annotations?.embedConfig?.enableExport]), m = we(() => a !== void 0 ? a : d.annotations?.embedConfig?.enableDocumentUpload ?? !1, [a, d.annotations?.embedConfig?.enableDocumentUpload]), y = we(() => d.annotations?.embedConfig?.title || u || "Bot", [d.annotations?.embedConfig?.title, u]), [b, _] = Ne(""), [v, w] = Ne(!1), [E, x] = Ne([]), [C, S] = Ne(null), [A, M] = Ne([]), [R, F] = Ne(!1), T = Qt(null), $ = Qt(null), N = Qt(null), D = we(
41987
+ } = Dt(), { data: d } = av(), { chatbot: h } = xt(), p = xe(() => o !== void 0 ? o : d.annotations?.embedConfig?.enableUpload ?? !1, [o, d.annotations?.embedConfig?.enableUpload]), g = xe(() => s !== void 0 ? s : d.annotations?.embedConfig?.enableExport ?? !1, [s, d.annotations?.embedConfig?.enableExport]), m = xe(() => a !== void 0 ? a : d.annotations?.embedConfig?.enableDocumentUpload ?? !1, [a, d.annotations?.embedConfig?.enableDocumentUpload]), y = xe(() => d.annotations?.embedConfig?.title || u || "Bot", [d.annotations?.embedConfig?.title, u]), [b, _] = Ne(""), [v, w] = Ne(!1), [E, x] = Ne([]), [C, S] = Ne(null), [A, M] = Ne([]), [R, F] = Ne(!1), T = Qt(null), $ = Qt(null), N = Qt(null), D = xe(
41981
41988
  () => E.some((te) => te.uploadStatus === "uploading"),
41982
41989
  [E]
41983
- ), B = we(
41990
+ ), z = xe(
41984
41991
  () => A.some((te) => te.uploadStatus === "uploading"),
41985
41992
  [A]
41986
- ), I = !e, V = we(
41987
- () => I || t || D || B || !b.trim() && E.length === 0 && A.length === 0,
41993
+ ), L = !e, Y = xe(
41994
+ () => L || t || D || z || !b.trim() && E.length === 0 && A.length === 0,
41988
41995
  [
41989
- I,
41996
+ L,
41990
41997
  t,
41991
41998
  D,
41992
- B,
41999
+ z,
41993
42000
  b,
41994
42001
  E.length,
41995
42002
  A.length
41996
42003
  ]
41997
- ), ue = we(
42004
+ ), oe = xe(
41998
42005
  () => ({
41999
42006
  maxWidth: h?.contentMaxWidth ?? "1200px"
42000
42007
  }),
42001
42008
  [h]
42002
- ), oe = we(
42009
+ ), se = xe(
42003
42010
  () => ({
42004
42011
  ...h?.footer?.style,
42005
42012
  borderTopColor: h?.borderColor
42006
42013
  }),
42007
42014
  [h]
42008
- ), ye = we(
42015
+ ), ye = xe(
42009
42016
  () => ({
42010
42017
  backgroundColor: h?.backgroundColor,
42011
42018
  borderColor: h?.borderColor
42012
42019
  }),
42013
42020
  [h]
42014
- ), qe = we(
42021
+ ), qe = xe(
42015
42022
  () => ({
42016
42023
  color: h?.primaryComponent?.secondaryColor
42017
42024
  }),
42018
42025
  [h]
42019
- ), It = we(() => {
42026
+ ), It = xe(() => {
42020
42027
  let te = 0;
42021
42028
  return g && te++, p && te++, m && te++, te;
42022
42029
  }, [g, p, m]) >= 3;
@@ -42197,15 +42204,15 @@ function Ibe() {
42197
42204
  "--asg-color-text-placeholder",
42198
42205
  h.footer?.textArea?.["::placeholder"]?.color ?? "var(--asg-color-text-placeholder)"
42199
42206
  );
42200
- }, [h.footer?.textArea]), /* @__PURE__ */ Y("div", { className: Me("asgard-chatbot-footer", de.chatbot_footer), style: oe, children: [
42201
- p && E.length > 0 && /* @__PURE__ */ k("div", { className: de.file_preview_container, style: { maxWidth: ue.maxWidth }, children: /* @__PURE__ */ k("div", { className: de.file_preview_grid, children: E.map((te) => /* @__PURE__ */ k(
42207
+ }, [h.footer?.textArea]), /* @__PURE__ */ V("div", { className: Me("asgard-chatbot-footer", de.chatbot_footer), style: se, children: [
42208
+ p && E.length > 0 && /* @__PURE__ */ k("div", { className: de.file_preview_container, style: { maxWidth: oe.maxWidth }, children: /* @__PURE__ */ k("div", { className: de.file_preview_grid, children: E.map((te) => /* @__PURE__ */ k(
42202
42209
  "div",
42203
42210
  {
42204
42211
  className: Me(
42205
42212
  de.file_preview_item,
42206
42213
  te.uploadStatus === "error" && de.file_preview_item__error
42207
42214
  ),
42208
- children: /* @__PURE__ */ Y("div", { className: de.file_preview_image_area, children: [
42215
+ children: /* @__PURE__ */ V("div", { className: de.file_preview_image_area, children: [
42209
42216
  /* @__PURE__ */ k(
42210
42217
  "img",
42211
42218
  {
@@ -42218,7 +42225,7 @@ function Ibe() {
42218
42225
  }
42219
42226
  ),
42220
42227
  te.uploadStatus === "uploading" && /* @__PURE__ */ k("div", { className: de.file_upload_overlay, children: /* @__PURE__ */ k("div", { className: de.file_upload_spinner }) }),
42221
- te.uploadStatus === "error" && /* @__PURE__ */ k("div", { className: de.file_error_overlay, children: /* @__PURE__ */ Y(
42228
+ te.uploadStatus === "error" && /* @__PURE__ */ k("div", { className: de.file_error_overlay, children: /* @__PURE__ */ V(
42222
42229
  "svg",
42223
42230
  {
42224
42231
  className: de.file_error_icon,
@@ -42249,7 +42256,7 @@ function Ibe() {
42249
42256
  },
42250
42257
  te.id
42251
42258
  )) }) }),
42252
- m && A.length > 0 && /* @__PURE__ */ k("div", { className: de.file_preview_container, style: { maxWidth: ue.maxWidth }, children: /* @__PURE__ */ k("div", { className: de.document_preview_grid, children: A.map((te) => /* @__PURE__ */ Y(
42259
+ m && A.length > 0 && /* @__PURE__ */ k("div", { className: de.file_preview_container, style: { maxWidth: oe.maxWidth }, children: /* @__PURE__ */ k("div", { className: de.document_preview_grid, children: A.map((te) => /* @__PURE__ */ V(
42253
42260
  "div",
42254
42261
  {
42255
42262
  className: Me(
@@ -42258,7 +42265,7 @@ function Ibe() {
42258
42265
  ),
42259
42266
  style: ye,
42260
42267
  children: [
42261
- /* @__PURE__ */ k("div", { className: de.document_preview_icon_wrapper, children: /* @__PURE__ */ Y(
42268
+ /* @__PURE__ */ k("div", { className: de.document_preview_icon_wrapper, children: /* @__PURE__ */ V(
42262
42269
  "svg",
42263
42270
  {
42264
42271
  xmlns: "http://www.w3.org/2000/svg",
@@ -42283,7 +42290,7 @@ function Ibe() {
42283
42290
  ) }),
42284
42291
  /* @__PURE__ */ k("span", { className: de.document_preview_name, style: qe, title: te.file.name, children: te.file.name }),
42285
42292
  te.uploadStatus === "uploading" && /* @__PURE__ */ k("div", { className: de.file_upload_overlay, children: /* @__PURE__ */ k("div", { className: de.file_upload_spinner }) }),
42286
- te.uploadStatus === "error" && /* @__PURE__ */ k("div", { className: de.file_error_overlay, children: /* @__PURE__ */ Y(
42293
+ te.uploadStatus === "error" && /* @__PURE__ */ k("div", { className: de.file_error_overlay, children: /* @__PURE__ */ V(
42287
42294
  "svg",
42288
42295
  {
42289
42296
  className: de.file_error_icon,
@@ -42314,7 +42321,7 @@ function Ibe() {
42314
42321
  },
42315
42322
  te.id
42316
42323
  )) }) }),
42317
- /* @__PURE__ */ Y("div", { className: de.chatbot_footer__content, style: ue, children: [
42324
+ /* @__PURE__ */ V("div", { className: de.chatbot_footer__content, style: oe, children: [
42318
42325
  p && /* @__PURE__ */ k(
42319
42326
  "input",
42320
42327
  {
@@ -42326,7 +42333,7 @@ function Ibe() {
42326
42333
  className: de.file_input_hidden
42327
42334
  }
42328
42335
  ),
42329
- /* @__PURE__ */ k("div", { className: de.attachment_buttons, children: It ? /* @__PURE__ */ Y("div", { className: de.attachment_menu_container, ref: N, children: [
42336
+ /* @__PURE__ */ k("div", { className: de.attachment_buttons, children: It ? /* @__PURE__ */ V("div", { className: de.attachment_menu_container, ref: N, children: [
42330
42337
  /* @__PURE__ */ k(
42331
42338
  "button",
42332
42339
  {
@@ -42337,13 +42344,13 @@ function Ibe() {
42337
42344
  children: /* @__PURE__ */ k(Abe, {})
42338
42345
  }
42339
42346
  ),
42340
- R && /* @__PURE__ */ Y(
42347
+ R && /* @__PURE__ */ V(
42341
42348
  "div",
42342
42349
  {
42343
42350
  className: de.attachment_menu,
42344
42351
  style: { backgroundColor: h?.backgroundColor, borderColor: h?.borderColor },
42345
42352
  children: [
42346
- m && /* @__PURE__ */ Y(
42353
+ m && /* @__PURE__ */ V(
42347
42354
  "button",
42348
42355
  {
42349
42356
  className: de.attachment_menu_item,
@@ -42361,7 +42368,7 @@ function Ibe() {
42361
42368
  ]
42362
42369
  }
42363
42370
  ),
42364
- p && /* @__PURE__ */ Y(
42371
+ p && /* @__PURE__ */ V(
42365
42372
  "button",
42366
42373
  {
42367
42374
  className: de.attachment_menu_item,
@@ -42375,7 +42382,7 @@ function Ibe() {
42375
42382
  ]
42376
42383
  }
42377
42384
  ),
42378
- g && /* @__PURE__ */ Y(
42385
+ g && /* @__PURE__ */ V(
42379
42386
  "button",
42380
42387
  {
42381
42388
  className: de.attachment_menu_item,
@@ -42392,7 +42399,7 @@ function Ibe() {
42392
42399
  ]
42393
42400
  }
42394
42401
  )
42395
- ] }) : /* @__PURE__ */ Y(Ka, { children: [
42402
+ ] }) : /* @__PURE__ */ V(Ka, { children: [
42396
42403
  g && /* @__PURE__ */ k(
42397
42404
  "button",
42398
42405
  {
@@ -42431,8 +42438,8 @@ function Ibe() {
42431
42438
  style: h.footer?.textArea?.style,
42432
42439
  cols: 40,
42433
42440
  value: b,
42434
- disabled: I,
42435
- placeholder: I ? "Preview mode - input disabled" : n || "Enter message",
42441
+ disabled: L,
42442
+ placeholder: L ? "Preview mode - input disabled" : n || "Enter message",
42436
42443
  onChange: ro,
42437
42444
  onKeyDown: $t,
42438
42445
  onFocus: _e,
@@ -42444,9 +42451,9 @@ function Ibe() {
42444
42451
  b || E.length > 0 || A.length > 0 ? /* @__PURE__ */ k(
42445
42452
  "button",
42446
42453
  {
42447
- className: Me(de.chatbot_submit_button, V && de.chatbot_submit_button__disabled),
42454
+ className: Me(de.chatbot_submit_button, Y && de.chatbot_submit_button__disabled),
42448
42455
  style: h.footer?.submitButton?.style,
42449
- disabled: V,
42456
+ disabled: Y,
42450
42457
  onClick: q,
42451
42458
  children: /* @__PURE__ */ k($be, {})
42452
42459
  }
@@ -42459,7 +42466,7 @@ function Ibe() {
42459
42466
  }
42460
42467
  )
42461
42468
  ] }),
42462
- C && /* @__PURE__ */ Y(
42469
+ C && /* @__PURE__ */ V(
42463
42470
  "div",
42464
42471
  {
42465
42472
  className: de.image_modal,
@@ -42524,7 +42531,7 @@ function Ube(e) {
42524
42531
  s.removeEventListener("wheel", l), s.removeEventListener("touchstart", u), s.removeEventListener("touchmove", c);
42525
42532
  };
42526
42533
  }, []);
42527
- const o = we(() => i?.chatbot?.backgroundColor ? { backgroundColor: i.chatbot?.backgroundColor } : {}, [i]);
42534
+ const o = xe(() => i?.chatbot?.backgroundColor ? { backgroundColor: i.chatbot?.backgroundColor } : {}, [i]);
42528
42535
  return /* @__PURE__ */ k("div", { ref: n, className: jg.full_screen, children: /* @__PURE__ */ k("div", { ref: r, className: jg.chatbot_container, style: o, children: t }) });
42529
42536
  }
42530
42537
  function jM(e) {
@@ -42561,7 +42568,7 @@ const jbe = "_container_32b6s_1", qbe = "_avatar_32b6s_22", Wbe = "_message_32b6
42561
42568
  message: Wbe
42562
42569
  };
42563
42570
  function qM({ message: e, avatar: t }) {
42564
- return /* @__PURE__ */ Y("div", { className: jy.container, children: [
42571
+ return /* @__PURE__ */ V("div", { className: jy.container, children: [
42565
42572
  /* @__PURE__ */ k("div", { className: jy.avatar, children: /* @__PURE__ */ k(lv, { avatar: t }) }),
42566
42573
  /* @__PURE__ */ k("div", { className: jy.message, children: e })
42567
42574
  ] });
@@ -42604,9 +42611,11 @@ const Hbe = "_chatbot__auth_state_container_1hs4h_1", Gbe = "_chatbot__error_sta
42604
42611
  defaultLinkTarget: $,
42605
42612
  authState: N = "authenticated",
42606
42613
  onApiKeySubmit: D,
42607
- onAuthError: B,
42608
- onBeforeSendMessage: I
42609
- } = t, V = () => {
42614
+ onAuthError: z,
42615
+ onBeforeSendMessage: L,
42616
+ onMessageSent: Y,
42617
+ renderHeader: oe
42618
+ } = t, se = () => {
42610
42619
  switch (N) {
42611
42620
  case "loading":
42612
42621
  return /* @__PURE__ */ k("div", { className: bi.chatbot__auth_state_container, children: v || /* @__PURE__ */ k("div", { children: "Loading..." }) });
@@ -42630,7 +42639,7 @@ const Hbe = "_chatbot__auth_state_container_1hs4h_1", Gbe = "_chatbot__error_sta
42630
42639
  }
42631
42640
  ) });
42632
42641
  case "error":
42633
- return /* @__PURE__ */ k("div", { className: Me(bi.chatbot__auth_state_container, bi.chatbot__error_state), children: /* @__PURE__ */ Y("div", { className: bi.chatbot__error_state__content, children: [
42642
+ return /* @__PURE__ */ k("div", { className: Me(bi.chatbot__auth_state_container, bi.chatbot__error_state), children: /* @__PURE__ */ V("div", { className: bi.chatbot__error_state__content, children: [
42634
42643
  /* @__PURE__ */ k("div", { className: bi.chatbot__error_state__icon, children: /* @__PURE__ */ k("span", { role: "img", "aria-label": "warning", children: "⚠️" }) }),
42635
42644
  /* @__PURE__ */ k("div", { className: bi.chatbot__error_state__message, children: "Something went wrong. Please try again later." })
42636
42645
  ] }) });
@@ -42651,7 +42660,7 @@ const Hbe = "_chatbot__auth_state_container_1hs4h_1", Gbe = "_chatbot__error_sta
42651
42660
  }
42652
42661
  ) });
42653
42662
  default:
42654
- return /* @__PURE__ */ Y(Ka, { children: [
42663
+ return /* @__PURE__ */ V(Ka, { children: [
42655
42664
  /* @__PURE__ */ k(
42656
42665
  YL,
42657
42666
  {
@@ -42686,15 +42695,16 @@ const Hbe = "_chatbot__auth_state_container_1hs4h_1", Gbe = "_chatbot__error_sta
42686
42695
  customChannelId: a,
42687
42696
  initMessages: l,
42688
42697
  onSseMessage: u,
42689
- onAuthError: B,
42690
- onBeforeSendMessage: I,
42698
+ onAuthError: z,
42699
+ onBeforeSendMessage: L,
42700
+ onMessageSent: Y,
42691
42701
  botTypingPlaceholder: d,
42692
42702
  inputPlaceholder: h,
42693
42703
  enableUpload: g,
42694
42704
  enableExport: m,
42695
42705
  enableDocumentUpload: y,
42696
- children: /* @__PURE__ */ Y(jM, { fullScreen: c, className: F, style: T, children: [
42697
- /* @__PURE__ */ k(
42706
+ children: /* @__PURE__ */ V(jM, { fullScreen: c, className: F, style: T, children: [
42707
+ oe ? oe() : /* @__PURE__ */ k(
42698
42708
  qk,
42699
42709
  {
42700
42710
  title: r,
@@ -42704,13 +42714,13 @@ const Hbe = "_chatbot__auth_state_container_1hs4h_1", Gbe = "_chatbot__error_sta
42704
42714
  maintainConnectionWhenClosed: b
42705
42715
  }
42706
42716
  ),
42707
- V()
42717
+ se()
42708
42718
  ] })
42709
42719
  }
42710
42720
  ) })
42711
42721
  }
42712
- ) : /* @__PURE__ */ k(Uk, { theme: o, children: /* @__PURE__ */ Y(jM, { fullScreen: c, className: F, style: T, children: [
42713
- /* @__PURE__ */ k(
42722
+ ) : /* @__PURE__ */ k(Uk, { theme: o, children: /* @__PURE__ */ V(jM, { fullScreen: c, className: F, style: T, children: [
42723
+ oe ? oe() : /* @__PURE__ */ k(
42714
42724
  qk,
42715
42725
  {
42716
42726
  title: r,
@@ -42720,7 +42730,7 @@ const Hbe = "_chatbot__auth_state_container_1hs4h_1", Gbe = "_chatbot__error_sta
42720
42730
  maintainConnectionWhenClosed: b
42721
42731
  }
42722
42732
  ),
42723
- V()
42733
+ se()
42724
42734
  ] }) });
42725
42735
  });
42726
42736
  export {