@asgard-js/react 0.2.43 → 0.2.44

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
1
  import { jsx as C, jsxs as U, Fragment as Ja } from "react/jsx-runtime";
2
- import * as xe from "react";
3
- import _a, { useRef as yt, useEffect as Oe, useState as we, useMemo as be, useCallback as oe, createContext as td, useContext as nd, useImperativeHandle as V7, memo as ot, Fragment as YC, forwardRef as Y7 } from "react";
2
+ import * as ve from "react";
3
+ import _a, { useRef as yt, useEffect as Oe, useState as we, useMemo as xe, useCallback as oe, createContext as td, useContext as nd, useImperativeHandle as V7, memo as ot, Fragment as YC, forwardRef as Y7 } from "react";
4
4
  import { AsgardServiceClient as X7, EventType as bl, Conversation as r1, Channel as XC, MessageTemplateType as qr, ToolCallConsentResult as hc } from "@asgard-js/core";
5
5
  function KC(e) {
6
6
  return e !== null && typeof e == "object" && !Array.isArray(e);
@@ -110,7 +110,7 @@ function eI(e) {
110
110
  onSseError: c,
111
111
  onBeforeSendMessage: f,
112
112
  onChannelReady: d
113
- } = e, h = !t, [p, g] = we(null), [m, y] = we(n ?? !0), [_, b] = we(!1), [v, x] = we(!1), [E, w] = we(null), k = be(
113
+ } = e, h = !t, [p, g] = we(null), [m, y] = we(n ?? !0), [_, b] = we(!1), [v, x] = we(!1), [E, w] = we(null), k = xe(
114
114
  () => h ? new r1({ messages: new Map(s?.map(($) => [$.messageId, $])) }) : null,
115
115
  [h, s]
116
116
  ), S = oe(
@@ -219,7 +219,7 @@ function eI(e) {
219
219
  const N = yt(null);
220
220
  return Oe(() => {
221
221
  p && p !== N.current ? (N.current = p, d?.()) : p || (N.current = null);
222
- }, [p, d]), Oe(() => () => T(), [T]), be(
222
+ }, [p, d]), Oe(() => () => T(), [T]), xe(
223
223
  () => h ? {
224
224
  isOpen: !0,
225
225
  isResetting: !1,
@@ -705,7 +705,7 @@ function JC(e) {
705
705
  return l;
706
706
  },
707
707
  [n, r?.embedConfig?.theme]
708
- ), o = be(() => i(), [i]);
708
+ ), o = xe(() => i(), [i]);
709
709
  return /* @__PURE__ */ C(iT.Provider, { value: o, children: t });
710
710
  }
711
711
  function vt() {
@@ -792,7 +792,7 @@ function sI(e) {
792
792
  onSseError: g,
793
793
  onBeforeSendMessage: m,
794
794
  onChannelReady: b
795
- }), fe = be(() => {
795
+ }), fe = xe(() => {
796
796
  if (O)
797
797
  return async (Le) => {
798
798
  const Dt = m ? m(Le) : Le;
@@ -803,13 +803,13 @@ function sI(e) {
803
803
  return;
804
804
  }
805
805
  };
806
- }, [O, m, y]), Be = be(() => {
806
+ }, [O, m, y]), Be = xe(() => {
807
807
  if (re)
808
808
  return async (Le, Dt) => {
809
809
  const Jt = m ? m({ text: "", payload: Dt }) : { payload: Dt };
810
810
  return re(Le, Jt.payload);
811
811
  };
812
- }, [re, m]), pe = be(
812
+ }, [re, m]), pe = xe(
813
813
  () => ({
814
814
  avatar: t,
815
815
  title: n,
@@ -893,7 +893,7 @@ function aI(e) {
893
893
  onMessageAction: a,
894
894
  renderMessageContent: l,
895
895
  renderToolCallGroup: u
896
- } = e, c = be(
896
+ } = e, c = xe(
897
897
  () => ({
898
898
  onErrorClick: n,
899
899
  errorMessageRenderer: r,
@@ -958,7 +958,7 @@ function ke() {
958
958
  for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = lT(e)) && (r && (r += " "), r += t);
959
959
  return r;
960
960
  }
961
- const uI = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 33, height: 32, viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("g", { clipPath: "url(#clip0_3084_29383)" }, /* @__PURE__ */ xe.createElement("path", { d: "M0.410645 16C0.410645 7.16344 7.57409 0 16.4106 0C25.2472 0 32.4106 7.16344 32.4106 16C32.4106 24.8366 25.2472 32 16.4106 32C7.57409 32 0.410645 24.8366 0.410645 16Z", fill: "#333333" }), /* @__PURE__ */ xe.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M16.5788 6.33398C19.8925 6.33398 22.5788 9.02028 22.5788 12.334C22.5788 14.2211 21.7075 15.9048 20.3453 17.0047C23.6487 18.3735 26.0607 21.6974 26.4106 25.6673H24.4569C24.0206 21.6274 20.9742 18.4911 17.2591 18.3397L16.9776 18.334H16.5788H15.8437C12.0019 18.334 8.81164 21.5258 8.36437 25.6673H6.41064C6.76857 21.607 9.28344 18.2225 12.7029 16.9143C11.4036 15.8137 10.5788 14.1701 10.5788 12.334C10.5788 9.02028 13.265 6.33398 16.5788 6.33398ZM16.5788 16.334C18.7879 16.334 20.5788 14.5431 20.5788 12.334C20.5788 10.1248 18.7879 8.33398 16.5788 8.33398C14.3696 8.33398 12.5788 10.1248 12.5788 12.334C12.5788 14.5431 14.3696 16.334 16.5788 16.334Z", fill: "#8C8C8C" })), /* @__PURE__ */ xe.createElement("defs", null, /* @__PURE__ */ xe.createElement("clipPath", { id: "clip0_3084_29383" }, /* @__PURE__ */ xe.createElement("path", { d: "M0.410645 16C0.410645 7.16344 7.57409 0 16.4106 0C25.2472 0 32.4106 7.16344 32.4106 16C32.4106 24.8366 25.2472 32 16.4106 32C7.57409 32 0.410645 24.8366 0.410645 16Z", fill: "white" }))));
961
+ const uI = (e) => /* @__PURE__ */ ve.createElement("svg", { width: 33, height: 32, viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ve.createElement("g", { clipPath: "url(#clip0_3084_29383)" }, /* @__PURE__ */ ve.createElement("path", { d: "M0.410645 16C0.410645 7.16344 7.57409 0 16.4106 0C25.2472 0 32.4106 7.16344 32.4106 16C32.4106 24.8366 25.2472 32 16.4106 32C7.57409 32 0.410645 24.8366 0.410645 16Z", fill: "#333333" }), /* @__PURE__ */ ve.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M16.5788 6.33398C19.8925 6.33398 22.5788 9.02028 22.5788 12.334C22.5788 14.2211 21.7075 15.9048 20.3453 17.0047C23.6487 18.3735 26.0607 21.6974 26.4106 25.6673H24.4569C24.0206 21.6274 20.9742 18.4911 17.2591 18.3397L16.9776 18.334H16.5788H15.8437C12.0019 18.334 8.81164 21.5258 8.36437 25.6673H6.41064C6.76857 21.607 9.28344 18.2225 12.7029 16.9143C11.4036 15.8137 10.5788 14.1701 10.5788 12.334C10.5788 9.02028 13.265 6.33398 16.5788 6.33398ZM16.5788 16.334C18.7879 16.334 20.5788 14.5431 20.5788 12.334C20.5788 10.1248 18.7879 8.33398 16.5788 8.33398C14.3696 8.33398 12.5788 10.1248 12.5788 12.334C12.5788 14.5431 14.3696 16.334 16.5788 16.334Z", fill: "#8C8C8C" })), /* @__PURE__ */ ve.createElement("defs", null, /* @__PURE__ */ ve.createElement("clipPath", { id: "clip0_3084_29383" }, /* @__PURE__ */ ve.createElement("path", { d: "M0.410645 16C0.410645 7.16344 7.57409 0 16.4106 0C25.2472 0 32.4106 7.16344 32.4106 16C32.4106 24.8366 25.2472 32 16.4106 32C7.57409 32 0.410645 24.8366 0.410645 16Z", fill: "white" }))));
962
962
  function yv(e) {
963
963
  const { avatar: t } = e;
964
964
  return t ? /* @__PURE__ */ C(
@@ -974,7 +974,7 @@ function yv(e) {
974
974
  }
975
975
  ) : /* @__PURE__ */ C(uI, {});
976
976
  }
977
- const cI = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }), /* @__PURE__ */ xe.createElement("circle", { cx: 12, cy: 12, r: 3 })), fI = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }), /* @__PURE__ */ xe.createElement("line", { x1: 1, y1: 1, x2: 23, y2: 23 })), dI = "_api_key_input_7488d_1", hI = "_api_key_input__header_7488d_18", pI = "_api_key_input__title_7488d_31", gI = "_api_key_input__form_7488d_38", mI = "_api_key_input__label_7488d_45", yI = "_api_key_input__input_wrapper_7488d_52", _I = "_api_key_input__input_7488d_52", bI = "_api_key_input__toggle_button_7488d_93", vI = "_api_key_input__toggle_icon_7488d_118", xI = "_api_key_input__error_message_7488d_123", wI = "_api_key_input__submit_button_7488d_129", Un = {
977
+ const cI = (e) => /* @__PURE__ */ ve.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }), /* @__PURE__ */ ve.createElement("circle", { cx: 12, cy: 12, r: 3 })), fI = (e) => /* @__PURE__ */ ve.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }), /* @__PURE__ */ ve.createElement("line", { x1: 1, y1: 1, x2: 23, y2: 23 })), dI = "_api_key_input_7488d_1", hI = "_api_key_input__header_7488d_18", pI = "_api_key_input__title_7488d_31", gI = "_api_key_input__form_7488d_38", mI = "_api_key_input__label_7488d_45", yI = "_api_key_input__input_wrapper_7488d_52", _I = "_api_key_input__input_7488d_52", bI = "_api_key_input__toggle_button_7488d_93", vI = "_api_key_input__toggle_icon_7488d_118", xI = "_api_key_input__error_message_7488d_123", wI = "_api_key_input__submit_button_7488d_129", Un = {
978
978
  api_key_input: dI,
979
979
  api_key_input__header: hI,
980
980
  api_key_input__title: pI,
@@ -1074,16 +1074,16 @@ const EI = "_chatbot_header_luxt4_1", CI = "_chatbot_header__content_luxt4_4", k
1074
1074
  chatbot_header__content: CI,
1075
1075
  chatbot_header__title: kI,
1076
1076
  chatbot_header__extra: SI
1077
- }, $I = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.49453 2.3352C6.44049 -0.226723 10.9105 -0.106316 13.7142 2.69633C16.6428 5.62613 16.6428 10.3739 13.7144 13.3035C10.7846 16.2322 6.03581 16.2322 3.1073 13.3036C2.30873 12.505 1.71132 11.5536 1.34188 10.5109L1.78892 10.3525L1.34171 10.5106L1.22791 10.162C1.01752 9.46018 0.910643 8.73159 0.910643 7.9997H2.4542L2.46382 8.33865C2.49584 8.9024 2.60763 9.46037 2.79674 9.99539L2.7968 9.99536L2.90116 10.2683C3.19714 10.9887 3.63414 11.6475 4.19876 12.2121C6.52451 14.5379 10.2961 14.5379 12.6229 12.212C14.9486 9.88539 14.9486 6.11464 12.6227 3.78781C10.3306 1.49653 6.63579 1.46263 4.30292 3.68622L6.68087 3.68698V5.22954H3.49394H1.95141V3.68698V0.5H3.49394L3.49453 2.3352Z", fill: "currentColor" })), uT = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 15, height: 14, viewBox: "0 0 15 14", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.3496 0L7.41062 5.938L1.47162 0L0.411621 1.06L6.34962 6.999L0.411621 12.938L1.47162 13.999L7.41062 8.059L13.3496 13.999L14.4096 12.938L8.47162 6.999L14.4096 1.06L13.3496 0Z", fill: "currentColor" }));
1077
+ }, $I = (e) => /* @__PURE__ */ ve.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ve.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.49453 2.3352C6.44049 -0.226723 10.9105 -0.106316 13.7142 2.69633C16.6428 5.62613 16.6428 10.3739 13.7144 13.3035C10.7846 16.2322 6.03581 16.2322 3.1073 13.3036C2.30873 12.505 1.71132 11.5536 1.34188 10.5109L1.78892 10.3525L1.34171 10.5106L1.22791 10.162C1.01752 9.46018 0.910643 8.73159 0.910643 7.9997H2.4542L2.46382 8.33865C2.49584 8.9024 2.60763 9.46037 2.79674 9.99539L2.7968 9.99536L2.90116 10.2683C3.19714 10.9887 3.63414 11.6475 4.19876 12.2121C6.52451 14.5379 10.2961 14.5379 12.6229 12.212C14.9486 9.88539 14.9486 6.11464 12.6227 3.78781C10.3306 1.49653 6.63579 1.46263 4.30292 3.68622L6.68087 3.68698V5.22954H3.49394H1.95141V3.68698V0.5H3.49394L3.49453 2.3352Z", fill: "currentColor" })), uT = (e) => /* @__PURE__ */ ve.createElement("svg", { width: 15, height: 14, viewBox: "0 0 15 14", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ve.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.3496 0L7.41062 5.938L1.47162 0L0.411621 1.06L6.34962 6.999L0.411621 12.938L1.47162 13.999L7.41062 8.059L13.3496 13.999L14.4096 12.938L8.47162 6.999L14.4096 1.06L13.3496 0Z", fill: "currentColor" }));
1078
1078
  function ek(e) {
1079
1079
  const { title: t, onReset: n, onClose: r, customActions: i, maintainConnectionWhenClosed: o } = e, { chatbot: s } = vt(), {
1080
1080
  data: { annotations: a }
1081
- } = gv(), { avatar: l, isResetting: u, resetChannel: c, closeChannel: f } = Ft(), d = be(
1081
+ } = gv(), { avatar: l, isResetting: u, resetChannel: c, closeChannel: f } = Ft(), d = xe(
1082
1082
  () => ({
1083
1083
  maxWidth: s?.contentMaxWidth ?? "1200px"
1084
1084
  }),
1085
1085
  [s]
1086
- ), h = be(
1086
+ ), h = xe(
1087
1087
  () => ({
1088
1088
  ...s?.header?.style,
1089
1089
  borderBottomColor: s?.borderColor
@@ -1125,7 +1125,7 @@ const AI = "_chatbot_body_wrapper_13zns_1", MI = "_chatbot_body_13zns_1", TI = "
1125
1125
  "template_box--empty": "_template_box--empty_rjm7y_18"
1126
1126
  };
1127
1127
  function yn(e) {
1128
- 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 = be(() => t === "user" ? ke(Gs.template_box, Gs["template_box--user"]) : ke(
1128
+ 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" ? ke(Gs.template_box, Gs["template_box--user"]) : ke(
1129
1129
  Gs.template_box,
1130
1130
  Gs["template_box--bot"],
1131
1131
  o === "horizontal" ? Gs["template_box--horizontal"] : Gs["template_box--vertical"],
@@ -1212,7 +1212,7 @@ const KI = "_time_h4puu_1", ZI = {
1212
1212
  time: KI
1213
1213
  };
1214
1214
  function Qa(e) {
1215
- const { time: t, className: n } = e, { template: r } = vt(), i = be(
1215
+ const { time: t, className: n } = e, { template: r } = vt(), i = xe(
1216
1216
  () => ({
1217
1217
  color: r?.time?.style?.color
1218
1218
  }),
@@ -1283,7 +1283,7 @@ function pr(e) {
1283
1283
  const nP = "_bot_avatar_1ch7m_1", Jd = {
1284
1284
  bot_avatar: nP,
1285
1285
  "bot_avatar--invisible": "_bot_avatar--invisible_1ch7m_8"
1286
- }, rP = (e) => /* @__PURE__ */ xe.createElement("svg", { viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M0.40625 12C0.40625 5.37258 5.77883 0 12.4062 0C19.0337 0 24.4062 5.37258 24.4062 12C24.4062 18.6274 19.0337 24 12.4062 24C5.77883 24 0.40625 18.6274 0.40625 12Z", fill: "#585858" }), /* @__PURE__ */ xe.createElement("path", { d: "M6.40625 18.75V15C6.40625 14.5875 6.55313 14.2344 6.84688 13.9406C7.14063 13.6469 7.49375 13.5 7.90625 13.5H16.9062C17.3188 13.5 17.6719 13.6469 17.9656 13.9406C18.2594 14.2344 18.4062 14.5875 18.4062 15V18.75H6.40625ZM10.1562 12.75C9.11875 12.75 8.23438 12.3844 7.50312 11.6531C6.77187 10.9219 6.40625 10.0375 6.40625 9C6.40625 7.9625 6.77187 7.07812 7.50312 6.34687C8.23438 5.61562 9.11875 5.25 10.1562 5.25H14.6562C15.6938 5.25 16.5781 5.61562 17.3094 6.34687C18.0406 7.07812 18.4062 7.9625 18.4062 9C18.4062 10.0375 18.0406 10.9219 17.3094 11.6531C16.5781 12.3844 15.6938 12.75 14.6562 12.75H10.1562ZM7.90625 17.25H16.9062V15H7.90625V17.25ZM10.1562 11.25H14.6562C15.2812 11.25 15.8125 11.0312 16.25 10.5938C16.6875 10.1562 16.9062 9.625 16.9062 9C16.9062 8.375 16.6875 7.84375 16.25 7.40625C15.8125 6.96875 15.2812 6.75 14.6562 6.75H10.1562C9.53125 6.75 9 6.96875 8.5625 7.40625C8.125 7.84375 7.90625 8.375 7.90625 9C7.90625 9.625 8.125 10.1562 8.5625 10.5938C9 11.0312 9.53125 11.25 10.1562 11.25ZM10.1562 9.75C10.3688 9.75 10.5469 9.67812 10.6906 9.53438C10.8344 9.39062 10.9062 9.2125 10.9062 9C10.9062 8.7875 10.8344 8.60938 10.6906 8.46562C10.5469 8.32187 10.3688 8.25 10.1562 8.25C9.94375 8.25 9.76562 8.32187 9.62187 8.46562C9.47812 8.60938 9.40625 8.7875 9.40625 9C9.40625 9.2125 9.47812 9.39062 9.62187 9.53438C9.76562 9.67812 9.94375 9.75 10.1562 9.75ZM14.6562 9.75C14.8687 9.75 15.0469 9.67812 15.1906 9.53438C15.3344 9.39062 15.4062 9.2125 15.4062 9C15.4062 8.7875 15.3344 8.60938 15.1906 8.46562C15.0469 8.32187 14.8687 8.25 14.6562 8.25C14.4438 8.25 14.2656 8.32187 14.1219 8.46562C13.9781 8.60938 13.9062 8.7875 13.9062 9C13.9062 9.2125 13.9781 9.39062 14.1219 9.53438C14.2656 9.67812 14.4438 9.75 14.6562 9.75Z", fill: "white" })), gr = ot((e) => {
1286
+ }, rP = (e) => /* @__PURE__ */ ve.createElement("svg", { viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M0.40625 12C0.40625 5.37258 5.77883 0 12.4062 0C19.0337 0 24.4062 5.37258 24.4062 12C24.4062 18.6274 19.0337 24 12.4062 24C5.77883 24 0.40625 18.6274 0.40625 12Z", fill: "#585858" }), /* @__PURE__ */ ve.createElement("path", { d: "M6.40625 18.75V15C6.40625 14.5875 6.55313 14.2344 6.84688 13.9406C7.14063 13.6469 7.49375 13.5 7.90625 13.5H16.9062C17.3188 13.5 17.6719 13.6469 17.9656 13.9406C18.2594 14.2344 18.4062 14.5875 18.4062 15V18.75H6.40625ZM10.1562 12.75C9.11875 12.75 8.23438 12.3844 7.50312 11.6531C6.77187 10.9219 6.40625 10.0375 6.40625 9C6.40625 7.9625 6.77187 7.07812 7.50312 6.34687C8.23438 5.61562 9.11875 5.25 10.1562 5.25H14.6562C15.6938 5.25 16.5781 5.61562 17.3094 6.34687C18.0406 7.07812 18.4062 7.9625 18.4062 9C18.4062 10.0375 18.0406 10.9219 17.3094 11.6531C16.5781 12.3844 15.6938 12.75 14.6562 12.75H10.1562ZM7.90625 17.25H16.9062V15H7.90625V17.25ZM10.1562 11.25H14.6562C15.2812 11.25 15.8125 11.0312 16.25 10.5938C16.6875 10.1562 16.9062 9.625 16.9062 9C16.9062 8.375 16.6875 7.84375 16.25 7.40625C15.8125 6.96875 15.2812 6.75 14.6562 6.75H10.1562C9.53125 6.75 9 6.96875 8.5625 7.40625C8.125 7.84375 7.90625 8.375 7.90625 9C7.90625 9.625 8.125 10.1562 8.5625 10.5938C9 11.0312 9.53125 11.25 10.1562 11.25ZM10.1562 9.75C10.3688 9.75 10.5469 9.67812 10.6906 9.53438C10.8344 9.39062 10.9062 9.2125 10.9062 9C10.9062 8.7875 10.8344 8.60938 10.6906 8.46562C10.5469 8.32187 10.3688 8.25 10.1562 8.25C9.94375 8.25 9.76562 8.32187 9.62187 8.46562C9.47812 8.60938 9.40625 8.7875 9.40625 9C9.40625 9.2125 9.47812 9.39062 9.62187 9.53438C9.76562 9.67812 9.94375 9.75 10.1562 9.75ZM14.6562 9.75C14.8687 9.75 15.0469 9.67812 15.1906 9.53438C15.3344 9.39062 15.4062 9.2125 15.4062 9C15.4062 8.7875 15.3344 8.60938 15.1906 8.46562C15.0469 8.32187 14.8687 8.25 14.6562 8.25C14.4438 8.25 14.2656 8.32187 14.1219 8.46562C13.9781 8.60938 13.9062 8.7875 13.9062 9C13.9062 9.2125 13.9781 9.39062 14.1219 9.53438C14.2656 9.67812 14.4438 9.75 14.6562 9.75Z", fill: "white" })), gr = ot((e) => {
1287
1287
  const { avatar: t, invisible: n } = e;
1288
1288
  return n ? /* @__PURE__ */ C("div", { className: ke("asgard-avatar", Jd.bot_avatar, Jd["bot_avatar--invisible"]) }) : t ? /* @__PURE__ */ C("img", { src: t, alt: "Bot Avatar", className: ke("asgard-avatar", Jd.bot_avatar) }) : /* @__PURE__ */ C("div", { className: ke("asgard-avatar", Jd.bot_avatar), children: /* @__PURE__ */ C(rP, {}) });
1289
1289
  }), iP = "_card_root_1kvwl_1", oP = "_card_content_1kvwl_11", sP = "_card_title_1kvwl_19", aP = "_card_description_1kvwl_25", lP = "_card_actions_1kvwl_40", pc = {
@@ -1294,7 +1294,7 @@ const nP = "_bot_avatar_1ch7m_1", Jd = {
1294
1294
  card_actions: lP
1295
1295
  };
1296
1296
  function cT(e) {
1297
- const { template: t, raw: n, customStyle: r } = e, { sendMessage: i } = Ft(), { onTemplateBtnClick: o, defaultLinkTarget: s } = Lu(), [a, l] = we(!1), u = be(() => t?.thumbnailImageUrl?.replace(/^http:/, "").replace(/^https:/, "") || "", [t]), c = !!u && !a, f = be(() => t?.imageAspectRatio === "square" ? "1 / 1" : "1.51 / 1", [t]), d = oe(
1297
+ const { template: t, raw: n, customStyle: r } = e, { sendMessage: i } = Ft(), { onTemplateBtnClick: o, defaultLinkTarget: s } = Lu(), [a, l] = we(!1), u = xe(() => t?.thumbnailImageUrl?.replace(/^http:/, "").replace(/^https:/, "") || "", [t]), c = !!u && !a, f = xe(() => t?.imageAspectRatio === "square" ? "1 / 1" : "1.51 / 1", [t]), d = oe(
1298
1298
  (h) => function() {
1299
1299
  switch (h.type) {
1300
1300
  case "message":
@@ -1495,7 +1495,7 @@ function OT({ children: e }) {
1495
1495
  }, []), r || !t ? e : /* @__PURE__ */ C(t, { components: LP, children: e });
1496
1496
  }
1497
1497
  function ok(e) {
1498
- const { message: t } = e, { avatar: n } = Ft(), r = vt(), { botMessage: i } = r, o = t?.message?.text || "", s = t.type === "bot", a = r?.template?.TextMessageTemplate?.style, l = be(() => {
1498
+ const { message: t } = e, { avatar: n } = Ft(), r = vt(), { botMessage: i } = r, o = t?.message?.text || "", s = t.type === "bot", a = r?.template?.TextMessageTemplate?.style, l = xe(() => {
1499
1499
  switch (t.type) {
1500
1500
  case "user":
1501
1501
  return {
@@ -1576,13 +1576,13 @@ function ok(e) {
1576
1576
  );
1577
1577
  }
1578
1578
  function LT(e) {
1579
- const { isTyping: t, typingText: n } = e, { avatar: r } = Ft(), i = vt(), o = tI(t, 500), s = be(
1579
+ const { isTyping: t, typingText: n } = e, { avatar: r } = Ft(), i = vt(), o = tI(t, 500), s = xe(
1580
1580
  () => ({
1581
1581
  color: i?.botMessage?.color,
1582
1582
  backgroundColor: i?.botMessage?.backgroundColor
1583
1583
  }),
1584
1584
  [i]
1585
- ), a = be(
1585
+ ), a = xe(
1586
1586
  () => ({
1587
1587
  backgroundColor: i?.botMessage?.color
1588
1588
  }),
@@ -1601,7 +1601,7 @@ function LT(e) {
1601
1601
  ] }) : null;
1602
1602
  }
1603
1603
  function PP(e) {
1604
- const { placeholder: t } = e, { isConnecting: n, messages: r } = Ft(), i = be(
1604
+ const { placeholder: t } = e, { isConnecting: n, messages: r } = Ft(), i = xe(
1605
1605
  () => Array.from(r?.values() ?? []).some((o) => o.type === "bot" && o.isTyping),
1606
1606
  [r]
1607
1607
  );
@@ -2048,7 +2048,7 @@ function el(e) {
2048
2048
  function cs(e) {
2049
2049
  return Object.prototype.toString.call(e) === "[object Date]";
2050
2050
  }
2051
- function e5(e) {
2051
+ function eN(e) {
2052
2052
  return e && Ee(e[Symbol.iterator]);
2053
2053
  }
2054
2054
  function qe(e) {
@@ -2083,12 +2083,12 @@ function Av(e, t, n) {
2083
2083
  }
2084
2084
  return er(s, e, "key");
2085
2085
  }
2086
- function t5(e, t) {
2086
+ function tN(e, t) {
2087
2087
  const n = e[0], r = ze(e), i = +t;
2088
2088
  return i ? i === 1 ? r : n + i * (r - n) : n;
2089
2089
  }
2090
2090
  const nz = 1e4;
2091
- function n5(e) {
2091
+ function nN(e) {
2092
2092
  e = +e || nz;
2093
2093
  let t, n, r;
2094
2094
  const i = () => {
@@ -2101,7 +2101,7 @@ function n5(e) {
2101
2101
  set: (s, a) => ne(t, s) ? t[s] = a : o(s, a)
2102
2102
  };
2103
2103
  }
2104
- function r5(e, t, n, r) {
2104
+ function rN(e, t, n, r) {
2105
2105
  const i = t.length, o = n.length;
2106
2106
  if (!o) return t;
2107
2107
  if (!i) return n;
@@ -2120,7 +2120,7 @@ function Uc(e, t) {
2120
2120
  for (; --t >= 0; ) n += e;
2121
2121
  return n;
2122
2122
  }
2123
- function i5(e, t, n, r) {
2123
+ function iN(e, t, n, r) {
2124
2124
  const i = n || " ", o = e + "", s = t - o.length;
2125
2125
  return s <= 0 ? o : r === "left" ? Uc(i, s) + o : r === "center" ? Uc(i, ~~(s / 2)) + o + Uc(i, Math.ceil(s / 2)) : o + Uc(i, s);
2126
2126
  }
@@ -2149,7 +2149,7 @@ function ii(e) {
2149
2149
  for (let r = 0; r < n; ++r) t[e[r]] = !0;
2150
2150
  return t;
2151
2151
  }
2152
- function o5(e, t, n, r) {
2152
+ function oN(e, t, n, r) {
2153
2153
  const i = r ?? "…", o = e + "", s = o.length, a = Math.max(0, t - i.length);
2154
2154
  return s <= t ? o : n === "left" ? i + o.slice(s - a) : n === "center" ? o.slice(0, Math.ceil(a / 2)) + i + o.slice(s - ~~(a / 2)) : o.slice(0, a) + i;
2155
2155
  }
@@ -2165,13 +2165,13 @@ function Xo(e, t, n) {
2165
2165
  e.forEach(n);
2166
2166
  }
2167
2167
  var uk = {}, s1 = {}, a1 = 34, gc = 10, l1 = 13;
2168
- function s5(e) {
2168
+ function sN(e) {
2169
2169
  return new Function("d", "return {" + e.map(function(t, n) {
2170
2170
  return JSON.stringify(t) + ": d[" + n + '] || ""';
2171
2171
  }).join(",") + "}");
2172
2172
  }
2173
2173
  function iz(e, t) {
2174
- var n = s5(e);
2174
+ var n = sN(e);
2175
2175
  return function(r, i) {
2176
2176
  return t(n(r), i, e);
2177
2177
  };
@@ -2200,7 +2200,7 @@ function az(e) {
2200
2200
  function r(f, d) {
2201
2201
  var h, p, g = i(f, function(m, y) {
2202
2202
  if (h) return h(m, y - 1);
2203
- p = m, h = d ? iz(m, d) : s5(m);
2203
+ p = m, h = d ? iz(m, d) : sN(m);
2204
2204
  });
2205
2205
  return g.columns = p || [], g;
2206
2206
  }
@@ -2287,10 +2287,10 @@ function fz(e, t) {
2287
2287
  }) } : fk(e, t);
2288
2288
  }
2289
2289
  function fk(e, t) {
2290
- var n = t.id, r = t.bbox, i = t.properties == null ? {} : t.properties, o = a5(e, t);
2290
+ var n = t.id, r = t.bbox, i = t.properties == null ? {} : t.properties, o = aN(e, t);
2291
2291
  return n == null && r == null ? { type: "Feature", properties: i, geometry: o } : r == null ? { type: "Feature", id: n, properties: i, geometry: o } : { type: "Feature", id: n, bbox: r, properties: i, geometry: o };
2292
2292
  }
2293
- function a5(e, t) {
2293
+ function aN(e, t) {
2294
2294
  var n = uz(e.transform), r = e.arcs;
2295
2295
  function i(c, f) {
2296
2296
  f.length && f.pop();
@@ -2385,7 +2385,7 @@ function dz(e, t) {
2385
2385
  }), o;
2386
2386
  }
2387
2387
  function hz(e) {
2388
- return a5(e, pz.apply(this, arguments));
2388
+ return aN(e, pz.apply(this, arguments));
2389
2389
  }
2390
2390
  function pz(e, t, n) {
2391
2391
  var r, i, o;
@@ -2469,7 +2469,7 @@ function ju(e) {
2469
2469
  function yz() {
2470
2470
  return 0;
2471
2471
  }
2472
- function l5(e) {
2472
+ function lN(e) {
2473
2473
  return e === null ? NaN : +e;
2474
2474
  }
2475
2475
  function* _z(e, t) {
@@ -2482,8 +2482,8 @@ function* _z(e, t) {
2482
2482
  (r = t(r, ++n, e)) != null && (r = +r) >= r && (yield r);
2483
2483
  }
2484
2484
  }
2485
- const u5 = ju(wo), ms = u5.right, bz = u5.left;
2486
- ju(l5).center;
2485
+ const uN = ju(wo), ms = uN.right, bz = uN.left;
2486
+ ju(lN).center;
2487
2487
  function vz(e, t) {
2488
2488
  let n = 0, r, i = 0, o = 0;
2489
2489
  if (t === void 0)
@@ -2525,7 +2525,7 @@ class Rn {
2525
2525
  }
2526
2526
  }
2527
2527
  class dk extends Map {
2528
- constructor(t, n = d5) {
2528
+ constructor(t, n = dN) {
2529
2529
  if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: n } }), t != null) for (const [r, i] of t) this.set(r, i);
2530
2530
  }
2531
2531
  get(t) {
@@ -2535,53 +2535,53 @@ class dk extends Map {
2535
2535
  return super.has(Jy(this, t));
2536
2536
  }
2537
2537
  set(t, n) {
2538
- return super.set(c5(this, t), n);
2538
+ return super.set(cN(this, t), n);
2539
2539
  }
2540
2540
  delete(t) {
2541
- return super.delete(f5(this, t));
2541
+ return super.delete(fN(this, t));
2542
2542
  }
2543
2543
  }
2544
2544
  class _p extends Set {
2545
- constructor(t, n = d5) {
2545
+ constructor(t, n = dN) {
2546
2546
  if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: n } }), t != null) for (const r of t) this.add(r);
2547
2547
  }
2548
2548
  has(t) {
2549
2549
  return super.has(Jy(this, t));
2550
2550
  }
2551
2551
  add(t) {
2552
- return super.add(c5(this, t));
2552
+ return super.add(cN(this, t));
2553
2553
  }
2554
2554
  delete(t) {
2555
- return super.delete(f5(this, t));
2555
+ return super.delete(fN(this, t));
2556
2556
  }
2557
2557
  }
2558
2558
  function Jy({ _intern: e, _key: t }, n) {
2559
2559
  const r = t(n);
2560
2560
  return e.has(r) ? e.get(r) : n;
2561
2561
  }
2562
- function c5({ _intern: e, _key: t }, n) {
2562
+ function cN({ _intern: e, _key: t }, n) {
2563
2563
  const r = t(n);
2564
2564
  return e.has(r) ? e.get(r) : (e.set(r, n), n);
2565
2565
  }
2566
- function f5({ _intern: e, _key: t }, n) {
2566
+ function fN({ _intern: e, _key: t }, n) {
2567
2567
  const r = t(n);
2568
2568
  return e.has(r) && (n = e.get(r), e.delete(r)), n;
2569
2569
  }
2570
- function d5(e) {
2570
+ function dN(e) {
2571
2571
  return e !== null && typeof e == "object" ? e.valueOf() : e;
2572
2572
  }
2573
2573
  function wz(e, t) {
2574
2574
  return Array.from(t, (n) => e[n]);
2575
2575
  }
2576
2576
  function Ez(e = wo) {
2577
- if (e === wo) return h5;
2577
+ if (e === wo) return hN;
2578
2578
  if (typeof e != "function") throw new TypeError("compare is not a function");
2579
2579
  return (t, n) => {
2580
2580
  const r = e(t, n);
2581
2581
  return r || r === 0 ? r : (e(n, n) === 0) - (e(t, t) === 0);
2582
2582
  };
2583
2583
  }
2584
- function h5(e, t) {
2584
+ function hN(e, t) {
2585
2585
  return (e == null || !(e >= e)) - (t == null || !(t >= t)) || (e < t ? -1 : e > t ? 1 : 0);
2586
2586
  }
2587
2587
  const Cz = Math.sqrt(50), kz = Math.sqrt(10), Sz = Math.sqrt(2);
@@ -2635,12 +2635,12 @@ function t_(e, t) {
2635
2635
  }
2636
2636
  return n;
2637
2637
  }
2638
- function p5(e, t, n = 0, r = 1 / 0, i) {
2638
+ function pN(e, t, n = 0, r = 1 / 0, i) {
2639
2639
  if (t = Math.floor(t), n = Math.floor(Math.max(0, n)), r = Math.floor(Math.min(e.length - 1, r)), !(n <= t && t <= r)) return e;
2640
- for (i = i === void 0 ? h5 : Ez(i); r > n; ) {
2640
+ for (i = i === void 0 ? hN : Ez(i); r > n; ) {
2641
2641
  if (r - n > 600) {
2642
2642
  const l = r - n + 1, u = t - n + 1, c = Math.log(l), f = 0.5 * Math.exp(2 * c / 3), d = 0.5 * Math.sqrt(c * f * (l - f) / l) * (u - l / 2 < 0 ? -1 : 1), h = Math.max(n, Math.floor(t - u * f / l + d)), p = Math.min(r, Math.floor(t + (l - u) * f / l + d));
2643
- p5(e, t, h, p, i);
2643
+ pN(e, t, h, p, i);
2644
2644
  }
2645
2645
  const o = e[t];
2646
2646
  let s = n, a = r;
@@ -2660,11 +2660,11 @@ function n_(e, t, n) {
2660
2660
  if (e = Float64Array.from(_z(e, n)), !(!(r = e.length) || isNaN(t = +t))) {
2661
2661
  if (t <= 0 || r < 2) return t_(e);
2662
2662
  if (t >= 1) return ba(e);
2663
- var r, i = (r - 1) * t, o = Math.floor(i), s = ba(p5(e, o).subarray(0, o + 1)), a = t_(e.subarray(o + 1));
2663
+ var r, i = (r - 1) * t, o = Math.floor(i), s = ba(pN(e, o).subarray(0, o + 1)), a = t_(e.subarray(o + 1));
2664
2664
  return s + (a - s) * (i - o);
2665
2665
  }
2666
2666
  }
2667
- function g5(e, t, n = l5) {
2667
+ function gN(e, t, n = lN) {
2668
2668
  if (!(!(r = e.length) || isNaN(t = +t))) {
2669
2669
  if (t <= 0 || r < 2) return +n(e[0], 0, e);
2670
2670
  if (t >= 1) return +n(e[r - 1], r - 1, e);
@@ -2684,14 +2684,14 @@ function $z(e, t) {
2684
2684
  }
2685
2685
  if (n) return r / n;
2686
2686
  }
2687
- function m5(e, t) {
2687
+ function mN(e, t) {
2688
2688
  return n_(e, 0.5, t);
2689
2689
  }
2690
2690
  function* Az(e) {
2691
2691
  for (const t of e)
2692
2692
  yield* t;
2693
2693
  }
2694
- function y5(e) {
2694
+ function yN(e) {
2695
2695
  return Array.from(Az(e));
2696
2696
  }
2697
2697
  function sr(e, t, n) {
@@ -2700,7 +2700,7 @@ function sr(e, t, n) {
2700
2700
  o[r] = e + r * n;
2701
2701
  return o;
2702
2702
  }
2703
- function _5(e, t) {
2703
+ function _N(e, t) {
2704
2704
  let n = 0;
2705
2705
  for (let r of e)
2706
2706
  (r = +r) && (n += r);
@@ -2826,7 +2826,7 @@ function gk(e) {
2826
2826
  return e;
2827
2827
  }
2828
2828
  var mk = Array.prototype.map, yk = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
2829
- function b5(e) {
2829
+ function bN(e) {
2830
2830
  var t = e.grouping === void 0 || e.thousands === void 0 ? gk : Dz(mk.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", o = e.numerals === void 0 ? gk : Rz(mk.call(e.numerals, String)), s = e.percent === void 0 ? "%" : e.percent + "", a = e.minus === void 0 ? "−" : e.minus + "", l = e.nan === void 0 ? "NaN" : e.nan + "";
2831
2831
  function u(f, d) {
2832
2832
  f = Ma(f);
@@ -2889,15 +2889,15 @@ Pz({
2889
2889
  currency: ["$", ""]
2890
2890
  });
2891
2891
  function Pz(e) {
2892
- return eh = b5(e), em = eh.format, Dv = eh.formatPrefix, eh;
2892
+ return eh = bN(e), em = eh.format, Dv = eh.formatPrefix, eh;
2893
2893
  }
2894
- function v5(e) {
2894
+ function vN(e) {
2895
2895
  return Math.max(0, -Ql(Math.abs(e)));
2896
2896
  }
2897
- function x5(e, t) {
2897
+ function xN(e, t) {
2898
2898
  return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Ql(t) / 3))) * 3 - Ql(Math.abs(e)));
2899
2899
  }
2900
- function w5(e, t) {
2900
+ function wN(e, t) {
2901
2901
  return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, Ql(t) - Ql(e)) + 1;
2902
2902
  }
2903
2903
  const u1 = /* @__PURE__ */ new Date(), c1 = /* @__PURE__ */ new Date();
@@ -2981,12 +2981,12 @@ const fs = Bt((e) => {
2981
2981
  e.setUTCDate(e.getUTCDate() + t);
2982
2982
  }, (e, t) => (t - e) / To, (e) => e.getUTCDate() - 1);
2983
2983
  fs.range;
2984
- const E5 = Bt((e) => {
2984
+ const EN = Bt((e) => {
2985
2985
  e.setUTCHours(0, 0, 0, 0);
2986
2986
  }, (e, t) => {
2987
2987
  e.setUTCDate(e.getUTCDate() + t);
2988
2988
  }, (e, t) => (t - e) / To, (e) => Math.floor(e / To));
2989
- E5.range;
2989
+ EN.range;
2990
2990
  function tl(e) {
2991
2991
  return Bt((t) => {
2992
2992
  t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
@@ -3051,7 +3051,7 @@ Bi.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : Bt((t) => {
3051
3051
  t.setUTCFullYear(t.getUTCFullYear() + n * e);
3052
3052
  });
3053
3053
  Bi.range;
3054
- function C5(e, t, n, r, i, o) {
3054
+ function CN(e, t, n, r, i, o) {
3055
3055
  const s = [
3056
3056
  [_o, 1, mo],
3057
3057
  [_o, 5, 5 * mo],
@@ -3087,7 +3087,7 @@ function C5(e, t, n, r, i, o) {
3087
3087
  }
3088
3088
  return [a, l];
3089
3089
  }
3090
- const [Vz, Yz] = C5(Bi, Sf, Wu, E5, im, nm), [Xz, Kz] = C5(zi, kf, qu, Eo, rm, tm), sn = "year", Yn = "quarter", bn = "month", It = "week", Xn = "date", pn = "day", Ui = "dayofyear", mr = "hours", yr = "minutes", Dr = "seconds", oi = "milliseconds", Ov = [sn, Yn, bn, It, Xn, pn, Ui, mr, yr, Dr, oi], d1 = Ov.reduce((e, t, n) => (e[t] = 1 + n, e), {});
3090
+ const [Vz, Yz] = CN(Bi, Sf, Wu, EN, im, nm), [Xz, Kz] = CN(zi, kf, qu, Eo, rm, tm), sn = "year", Yn = "quarter", bn = "month", It = "week", Xn = "date", pn = "day", Ui = "dayofyear", mr = "hours", yr = "minutes", Dr = "seconds", oi = "milliseconds", Ov = [sn, Yn, bn, It, Xn, pn, Ui, mr, yr, Dr, oi], d1 = Ov.reduce((e, t, n) => (e[t] = 1 + n, e), {});
3091
3091
  function Lv(e) {
3092
3092
  const t = ee(e).slice(), n = {};
3093
3093
  return t.length || I("Missing time unit."), t.forEach((i) => {
@@ -3110,7 +3110,7 @@ const Zz = {
3110
3110
  [`${sn}-${bn}-${Xn}`]: "%Y-%m-%d ",
3111
3111
  [`${mr}-${yr}`]: "%H:%M"
3112
3112
  };
3113
- function k5(e, t) {
3113
+ function kN(e, t) {
3114
3114
  const n = Se({}, Zz, t), r = Lv(e), i = r.length;
3115
3115
  let o = "", s = 0, a, l;
3116
3116
  for (s = 0; s < i; )
@@ -3125,13 +3125,13 @@ const ua = /* @__PURE__ */ new Date();
3125
3125
  function Iv(e) {
3126
3126
  return ua.setFullYear(e), ua.setMonth(0), ua.setDate(1), ua.setHours(0, 0, 0, 0), ua;
3127
3127
  }
3128
- function S5(e) {
3129
- return A5(new Date(e));
3128
+ function SN(e) {
3129
+ return AN(new Date(e));
3130
3130
  }
3131
- function $5(e) {
3131
+ function $N(e) {
3132
3132
  return r_(new Date(e));
3133
3133
  }
3134
- function A5(e) {
3134
+ function AN(e) {
3135
3135
  return Eo.count(Iv(e.getFullYear()) - 1, e);
3136
3136
  }
3137
3137
  function r_(e) {
@@ -3147,13 +3147,13 @@ function Jz(e, t, n, r, i, o, s) {
3147
3147
  }
3148
3148
  return new Date(e, t, n, r, i, o, s);
3149
3149
  }
3150
- function M5(e) {
3151
- return N5(new Date(e));
3150
+ function MN(e) {
3151
+ return NN(new Date(e));
3152
3152
  }
3153
- function T5(e) {
3153
+ function TN(e) {
3154
3154
  return o_(new Date(e));
3155
3155
  }
3156
- function N5(e) {
3156
+ function NN(e) {
3157
3157
  const t = Date.UTC(e.getUTCFullYear(), 0, 1);
3158
3158
  return fs.count(t - 1, e);
3159
3159
  }
@@ -3171,7 +3171,7 @@ function Qz(e, t, n, r, i, o, s) {
3171
3171
  }
3172
3172
  return new Date(Date.UTC(e, t, n, r, i, o, s));
3173
3173
  }
3174
- function F5(e, t, n, r, i) {
3174
+ function FN(e, t, n, r, i) {
3175
3175
  const o = t || 1, s = ze(e), a = (y, _, b) => (b = b || y, eB(n[b], r[b], y === s && o, _)), l = /* @__PURE__ */ new Date(), u = ii(e), c = u[sn] ? a(sn) : En(2012), f = u[bn] ? a(bn) : u[Yn] ? a(Yn) : es, d = u[It] && u[pn] ? a(pn, 1, It + pn) : u[It] ? a(It, 1) : u[pn] ? a(pn, 1) : u[Xn] ? a(Xn, 1) : u[Ui] ? a(Ui, 1) : Iu, h = u[mr] ? a(mr) : es, p = u[yr] ? a(yr) : es, g = u[Dr] ? a(Dr) : es, m = u[oi] ? a(oi) : es;
3176
3176
  return function(y) {
3177
3177
  l.setTime(+y);
@@ -3195,7 +3195,7 @@ const tB = {
3195
3195
  [yr]: (e) => e.getMinutes(),
3196
3196
  [Dr]: (e) => e.getSeconds(),
3197
3197
  [oi]: (e) => e.getMilliseconds(),
3198
- [Ui]: (e) => A5(e),
3198
+ [Ui]: (e) => AN(e),
3199
3199
  [It]: (e) => r_(e),
3200
3200
  [It + pn]: (e, t) => ru(r_(e), e.getDay(), i_(t)),
3201
3201
  [pn]: (e, t) => ru(1, e.getDay(), i_(t))
@@ -3203,8 +3203,8 @@ const tB = {
3203
3203
  [Yn]: (e) => 3 * e,
3204
3204
  [It]: (e, t) => ru(e, 0, i_(t))
3205
3205
  };
3206
- function D5(e, t) {
3207
- return F5(e, t || 1, tB, nB, Jz);
3206
+ function DN(e, t) {
3207
+ return FN(e, t || 1, tB, nB, Jz);
3208
3208
  }
3209
3209
  const rB = {
3210
3210
  [sn]: (e) => e.getUTCFullYear(),
@@ -3215,7 +3215,7 @@ const rB = {
3215
3215
  [yr]: (e) => e.getUTCMinutes(),
3216
3216
  [Dr]: (e) => e.getUTCSeconds(),
3217
3217
  [oi]: (e) => e.getUTCMilliseconds(),
3218
- [Ui]: (e) => N5(e),
3218
+ [Ui]: (e) => NN(e),
3219
3219
  [It]: (e) => o_(e),
3220
3220
  [pn]: (e, t) => ru(1, e.getUTCDay(), s_(t)),
3221
3221
  [It + pn]: (e, t) => ru(o_(e), e.getUTCDay(), s_(t))
@@ -3223,8 +3223,8 @@ const rB = {
3223
3223
  [Yn]: (e) => 3 * e,
3224
3224
  [It]: (e, t) => ru(e, 0, s_(t))
3225
3225
  };
3226
- function R5(e, t) {
3227
- return F5(e, t || 1, rB, iB, Qz);
3226
+ function RN(e, t) {
3227
+ return FN(e, t || 1, rB, iB, Qz);
3228
3228
  }
3229
3229
  const oB = {
3230
3230
  [sn]: zi,
@@ -3257,29 +3257,29 @@ function Hu(e) {
3257
3257
  function Gu(e) {
3258
3258
  return sB[e];
3259
3259
  }
3260
- function O5(e, t, n) {
3260
+ function ON(e, t, n) {
3261
3261
  return e ? e.offset(t, n) : void 0;
3262
3262
  }
3263
- function L5(e, t, n) {
3264
- return O5(Hu(e), t, n);
3263
+ function LN(e, t, n) {
3264
+ return ON(Hu(e), t, n);
3265
3265
  }
3266
- function I5(e, t, n) {
3267
- return O5(Gu(e), t, n);
3266
+ function IN(e, t, n) {
3267
+ return ON(Gu(e), t, n);
3268
3268
  }
3269
- function P5(e, t, n, r) {
3269
+ function PN(e, t, n, r) {
3270
3270
  return e ? e.range(t, n, r) : void 0;
3271
3271
  }
3272
- function z5(e, t, n, r) {
3273
- return P5(Hu(e), t, n, r);
3272
+ function zN(e, t, n, r) {
3273
+ return PN(Hu(e), t, n, r);
3274
3274
  }
3275
- function B5(e, t, n, r) {
3276
- return P5(Gu(e), t, n, r);
3275
+ function BN(e, t, n, r) {
3276
+ return PN(Gu(e), t, n, r);
3277
3277
  }
3278
- const jc = 1e3, qc = jc * 60, Wc = qc * 60, om = Wc * 24, aB = om * 7, bk = om * 30, a_ = om * 365, U5 = [sn, bn, Xn, mr, yr, Dr, oi], Hc = U5.slice(0, -1), Gc = Hc.slice(0, -1), Vc = Gc.slice(0, -1), lB = Vc.slice(0, -1), uB = [sn, It], vk = [sn, bn], j5 = [sn], yc = [[Hc, 1, jc], [Hc, 5, 5 * jc], [Hc, 15, 15 * jc], [Hc, 30, 30 * jc], [Gc, 1, qc], [Gc, 5, 5 * qc], [Gc, 15, 15 * qc], [Gc, 30, 30 * qc], [Vc, 1, Wc], [Vc, 3, 3 * Wc], [Vc, 6, 6 * Wc], [Vc, 12, 12 * Wc], [lB, 1, om], [uB, 1, aB], [vk, 1, bk], [vk, 3, 3 * bk], [j5, 1, a_]];
3279
- function q5(e) {
3278
+ const jc = 1e3, qc = jc * 60, Wc = qc * 60, om = Wc * 24, aB = om * 7, bk = om * 30, a_ = om * 365, UN = [sn, bn, Xn, mr, yr, Dr, oi], Hc = UN.slice(0, -1), Gc = Hc.slice(0, -1), Vc = Gc.slice(0, -1), lB = Vc.slice(0, -1), uB = [sn, It], vk = [sn, bn], jN = [sn], yc = [[Hc, 1, jc], [Hc, 5, 5 * jc], [Hc, 15, 15 * jc], [Hc, 30, 30 * jc], [Gc, 1, qc], [Gc, 5, 5 * qc], [Gc, 15, 15 * qc], [Gc, 30, 30 * qc], [Vc, 1, Wc], [Vc, 3, 3 * Wc], [Vc, 6, 6 * Wc], [Vc, 12, 12 * Wc], [lB, 1, om], [uB, 1, aB], [vk, 1, bk], [vk, 3, 3 * bk], [jN, 1, a_]];
3279
+ function qN(e) {
3280
3280
  const t = e.extent, n = e.maxbins || 40, r = Math.abs(id(t)) / n;
3281
3281
  let i = ju((a) => a[2]).right(yc, r), o, s;
3282
- return i === yc.length ? (o = j5, s = ys(t[0] / a_, t[1] / a_, n)) : i ? (i = yc[r / yc[i - 1][2] < yc[i][2] / r ? i - 1 : i], o = i[0], s = i[1]) : (o = U5, s = Math.max(ys(t[0], t[1], n), 1)), {
3282
+ return i === yc.length ? (o = jN, s = ys(t[0] / a_, t[1] / a_, n)) : i ? (i = yc[r / yc[i - 1][2] < yc[i][2] / r ? i - 1 : i], o = i[0], s = i[1]) : (o = UN, s = Math.max(ys(t[0], t[1], n), 1)), {
3283
3283
  units: o,
3284
3284
  step: s
3285
3285
  };
@@ -3301,7 +3301,7 @@ function p1(e) {
3301
3301
  function _c(e, t, n) {
3302
3302
  return { y: e, m: t, d: n, H: 0, M: 0, S: 0, L: 0 };
3303
3303
  }
3304
- function W5(e) {
3304
+ function WN(e) {
3305
3305
  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 = bc(i), c = vc(i), f = bc(o), d = vc(o), h = bc(s), p = vc(s), g = bc(a), m = vc(a), y = bc(l), _ = vc(l), b = {
3306
3306
  a: R,
3307
3307
  A: z,
@@ -3316,7 +3316,7 @@ function W5(e) {
3316
3316
  H: MB,
3317
3317
  I: TB,
3318
3318
  j: NB,
3319
- L: H5,
3319
+ L: HN,
3320
3320
  m: DB,
3321
3321
  M: RB,
3322
3322
  p: ae,
@@ -3349,7 +3349,7 @@ function W5(e) {
3349
3349
  H: GB,
3350
3350
  I: VB,
3351
3351
  j: YB,
3352
- L: V5,
3352
+ L: VN,
3353
3353
  m: KB,
3354
3354
  M: ZB,
3355
3355
  p: Dt,
@@ -3632,11 +3632,11 @@ function TB(e, t) {
3632
3632
  function NB(e, t) {
3633
3633
  return We(1 + Eo.count(zi(e), e), t, 3);
3634
3634
  }
3635
- function H5(e, t) {
3635
+ function HN(e, t) {
3636
3636
  return We(e.getMilliseconds(), t, 3);
3637
3637
  }
3638
3638
  function FB(e, t) {
3639
- return H5(e, t) + "000";
3639
+ return HN(e, t) + "000";
3640
3640
  }
3641
3641
  function DB(e, t) {
3642
3642
  return We(e.getMonth() + 1, t, 2);
@@ -3654,12 +3654,12 @@ function LB(e) {
3654
3654
  function IB(e, t) {
3655
3655
  return We(qu.count(zi(e) - 1, e), t, 2);
3656
3656
  }
3657
- function G5(e) {
3657
+ function GN(e) {
3658
3658
  var t = e.getDay();
3659
3659
  return t >= 4 || t === 0 ? tu(e) : tu.ceil(e);
3660
3660
  }
3661
3661
  function PB(e, t) {
3662
- return e = G5(e), We(tu.count(zi(e), e) + (zi(e).getDay() === 4), t, 2);
3662
+ return e = GN(e), We(tu.count(zi(e), e) + (zi(e).getDay() === 4), t, 2);
3663
3663
  }
3664
3664
  function zB(e) {
3665
3665
  return e.getDay();
@@ -3671,7 +3671,7 @@ function UB(e, t) {
3671
3671
  return We(e.getFullYear() % 100, t, 2);
3672
3672
  }
3673
3673
  function jB(e, t) {
3674
- return e = G5(e), We(e.getFullYear() % 100, t, 2);
3674
+ return e = GN(e), We(e.getFullYear() % 100, t, 2);
3675
3675
  }
3676
3676
  function qB(e, t) {
3677
3677
  return We(e.getFullYear() % 1e4, t, 4);
@@ -3696,11 +3696,11 @@ function VB(e, t) {
3696
3696
  function YB(e, t) {
3697
3697
  return We(1 + fs.count(Bi(e), e), t, 3);
3698
3698
  }
3699
- function V5(e, t) {
3699
+ function VN(e, t) {
3700
3700
  return We(e.getUTCMilliseconds(), t, 3);
3701
3701
  }
3702
3702
  function XB(e, t) {
3703
- return V5(e, t) + "000";
3703
+ return VN(e, t) + "000";
3704
3704
  }
3705
3705
  function KB(e, t) {
3706
3706
  return We(e.getUTCMonth() + 1, t, 2);
@@ -3718,12 +3718,12 @@ function QB(e) {
3718
3718
  function eU(e, t) {
3719
3719
  return We(Wu.count(Bi(e) - 1, e), t, 2);
3720
3720
  }
3721
- function Y5(e) {
3721
+ function YN(e) {
3722
3722
  var t = e.getUTCDay();
3723
3723
  return t >= 4 || t === 0 ? nu(e) : nu.ceil(e);
3724
3724
  }
3725
3725
  function tU(e, t) {
3726
- return e = Y5(e), We(nu.count(Bi(e), e) + (Bi(e).getUTCDay() === 4), t, 2);
3726
+ return e = YN(e), We(nu.count(Bi(e), e) + (Bi(e).getUTCDay() === 4), t, 2);
3727
3727
  }
3728
3728
  function nU(e) {
3729
3729
  return e.getUTCDay();
@@ -3735,7 +3735,7 @@ function iU(e, t) {
3735
3735
  return We(e.getUTCFullYear() % 100, t, 2);
3736
3736
  }
3737
3737
  function oU(e, t) {
3738
- return e = Y5(e), We(e.getUTCFullYear() % 100, t, 2);
3738
+ return e = YN(e), We(e.getUTCFullYear() % 100, t, 2);
3739
3739
  }
3740
3740
  function sU(e, t) {
3741
3741
  return We(e.getUTCFullYear() % 1e4, t, 4);
@@ -3756,7 +3756,7 @@ function Mk(e) {
3756
3756
  function Tk(e) {
3757
3757
  return Math.floor(+e / 1e3);
3758
3758
  }
3759
- var vl, Pv, X5, zv, K5;
3759
+ var vl, Pv, XN, zv, KN;
3760
3760
  uU({
3761
3761
  dateTime: "%x, %X",
3762
3762
  date: "%-m/%-d/%Y",
@@ -3768,7 +3768,7 @@ uU({
3768
3768
  shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
3769
3769
  });
3770
3770
  function uU(e) {
3771
- return vl = W5(e), Pv = vl.format, X5 = vl.parse, zv = vl.utcFormat, K5 = vl.utcParse, vl;
3771
+ return vl = WN(e), Pv = vl.format, XN = vl.parse, zv = vl.utcFormat, KN = vl.utcParse, vl;
3772
3772
  }
3773
3773
  function Yc(e) {
3774
3774
  const t = {};
@@ -3793,7 +3793,7 @@ function fU(e, t) {
3793
3793
  for (n = e.length; --n > t; )
3794
3794
  if (r = e.charCodeAt(n), r >= 48 && r <= 57) return n + 1;
3795
3795
  }
3796
- function Z5(e) {
3796
+ function ZN(e) {
3797
3797
  const t = Yc(e.format), n = e.formatPrefix;
3798
3798
  return {
3799
3799
  format: t,
@@ -3825,18 +3825,18 @@ function Z5(e) {
3825
3825
  if (s.precision == null)
3826
3826
  switch (s.type) {
3827
3827
  case "s":
3828
- return isNaN(u = x5(a, l)) || (s.precision = u), n(s, l);
3828
+ return isNaN(u = xN(a, l)) || (s.precision = u), n(s, l);
3829
3829
  case "":
3830
3830
  case "e":
3831
3831
  case "g":
3832
3832
  case "p":
3833
3833
  case "r": {
3834
- isNaN(u = w5(a, l)) || (s.precision = u - (s.type === "e"));
3834
+ isNaN(u = wN(a, l)) || (s.precision = u - (s.type === "e"));
3835
3835
  break;
3836
3836
  }
3837
3837
  case "f":
3838
3838
  case "%": {
3839
- isNaN(u = v5(a)) || (s.precision = u - (s.type === "%") * 2);
3839
+ isNaN(u = vN(a)) || (s.precision = u - (s.type === "%") * 2);
3840
3840
  break;
3841
3841
  }
3842
3842
  }
@@ -3845,25 +3845,25 @@ function Z5(e) {
3845
3845
  };
3846
3846
  }
3847
3847
  let l_;
3848
- J5();
3849
- function J5() {
3850
- return l_ = Z5({
3848
+ JN();
3849
+ function JN() {
3850
+ return l_ = ZN({
3851
3851
  format: em,
3852
3852
  formatPrefix: Dv
3853
3853
  });
3854
3854
  }
3855
- function Q5(e) {
3856
- return Z5(b5(e));
3855
+ function QN(e) {
3856
+ return ZN(bN(e));
3857
3857
  }
3858
3858
  function Cp(e) {
3859
- return arguments.length ? l_ = Q5(e) : l_;
3859
+ return arguments.length ? l_ = QN(e) : l_;
3860
3860
  }
3861
3861
  function Nk(e, t, n) {
3862
3862
  n = n || {}, J(n) || I(`Invalid time multi-format specifier: ${n}`);
3863
3863
  const r = t(Dr), i = t(yr), o = t(mr), s = t(Xn), a = t(It), l = t(bn), u = t(Yn), c = t(sn), f = e(n[oi] || ".%L"), d = e(n[Dr] || ":%S"), h = e(n[yr] || "%I:%M"), p = e(n[mr] || "%I %p"), g = e(n[Xn] || n[pn] || "%a %d"), m = e(n[It] || "%b %d"), y = e(n[bn] || "%B"), _ = e(n[Yn] || "%B"), b = e(n[sn] || "%Y");
3864
3864
  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);
3865
3865
  }
3866
- function eN(e) {
3866
+ function e5(e) {
3867
3867
  const t = Yc(e.format), n = Yc(e.utcFormat);
3868
3868
  return {
3869
3869
  timeFormat: (r) => Q(r) ? t(r) : Nk(t, Hu, r),
@@ -3873,24 +3873,24 @@ function eN(e) {
3873
3873
  };
3874
3874
  }
3875
3875
  let u_;
3876
- tN();
3877
- function tN() {
3878
- return u_ = eN({
3876
+ t5();
3877
+ function t5() {
3878
+ return u_ = e5({
3879
3879
  format: Pv,
3880
- parse: X5,
3880
+ parse: XN,
3881
3881
  utcFormat: zv,
3882
- utcParse: K5
3882
+ utcParse: KN
3883
3883
  });
3884
3884
  }
3885
- function nN(e) {
3886
- return eN(W5(e));
3885
+ function n5(e) {
3886
+ return e5(WN(e));
3887
3887
  }
3888
3888
  function $f(e) {
3889
- return arguments.length ? u_ = nN(e) : u_;
3889
+ return arguments.length ? u_ = n5(e) : u_;
3890
3890
  }
3891
3891
  const c_ = (e, t) => Se({}, e, t);
3892
- function rN(e, t) {
3893
- const n = e ? Q5(e) : Cp(), r = t ? nN(t) : $f();
3892
+ function r5(e, t) {
3893
+ const n = e ? QN(e) : Cp(), r = t ? n5(t) : $f();
3894
3894
  return c_(n, r);
3895
3895
  }
3896
3896
  function Bv(e, t) {
@@ -3898,7 +3898,7 @@ function Bv(e, t) {
3898
3898
  return n && n !== 2 && I("defaultLocale expects either zero or two arguments."), n ? c_(Cp(e), $f(t)) : c_(Cp(), $f());
3899
3899
  }
3900
3900
  function dU() {
3901
- return J5(), tN(), Bv();
3901
+ return JN(), t5(), Bv();
3902
3902
  }
3903
3903
  const hU = /^(data:|([A-Za-z]+:)?\/\/)/, pU = /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|file|data):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i, gU = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g, Fk = "file://";
3904
3904
  function mU(e) {
@@ -3938,15 +3938,15 @@ async function xU(e, t) {
3938
3938
  const n = Se({}, this.options.http, t), r = t && t.response, i = await fetch(e, n);
3939
3939
  return i.ok ? Ee(i[r]) ? i[r]() : i.text() : I(i.status + "" + i.statusText);
3940
3940
  }
3941
- const wU = (e) => e != null && e === e, EU = (e) => e === "true" || e === "false" || e === !0 || e === !1, CU = (e) => !Number.isNaN(Date.parse(e)), iN = (e) => !Number.isNaN(+e) && !(e instanceof Date), kU = (e) => iN(e) && Number.isInteger(+e), f_ = {
3941
+ const wU = (e) => e != null && e === e, EU = (e) => e === "true" || e === "false" || e === !0 || e === !1, CU = (e) => !Number.isNaN(Date.parse(e)), i5 = (e) => !Number.isNaN(+e) && !(e instanceof Date), kU = (e) => i5(e) && Number.isInteger(+e), f_ = {
3942
3942
  boolean: Mv,
3943
3943
  integer: gn,
3944
3944
  number: gn,
3945
3945
  date: Tv,
3946
3946
  string: Nv,
3947
3947
  unknown: wn
3948
- }, th = [EU, kU, iN, CU], SU = ["boolean", "integer", "number", "date"];
3949
- function oN(e, t) {
3948
+ }, th = [EU, kU, i5, CU], SU = ["boolean", "integer", "number", "date"];
3949
+ function o5(e, t) {
3950
3950
  if (!e || !e.length) return "unknown";
3951
3951
  const n = e.length, r = th.length, i = th.map((o, s) => s + 1);
3952
3952
  for (let o = 0, s = 0, a, l; o < n; ++o)
@@ -3955,8 +3955,8 @@ function oN(e, t) {
3955
3955
  return "string";
3956
3956
  return SU[i.reduce((o, s) => o === 0 ? s : o, 0) - 1];
3957
3957
  }
3958
- function sN(e, t) {
3959
- return t.reduce((n, r) => (n[r] = oN(e, r), n), {});
3958
+ function s5(e, t) {
3959
+ return t.reduce((n, r) => (n[r] = o5(e, r), n), {});
3960
3960
  }
3961
3961
  function Dk(e) {
3962
3962
  const t = function(n, r) {
@@ -3981,32 +3981,32 @@ function jv(e, t) {
3981
3981
  }
3982
3982
  jv.responseType = "json";
3983
3983
  function AU(e, t) {
3984
- return !B(e) && e5(e) && (e = [...e]), t && t.copy ? JSON.parse(JSON.stringify(e)) : e;
3984
+ return !B(e) && eN(e) && (e = [...e]), t && t.copy ? JSON.parse(JSON.stringify(e)) : e;
3985
3985
  }
3986
3986
  const MU = {
3987
3987
  interior: (e, t) => e !== t,
3988
3988
  exterior: (e, t) => e === t
3989
3989
  };
3990
- function aN(e, t) {
3990
+ function a5(e, t) {
3991
3991
  let n, r, i, o;
3992
3992
  return e = jv(e, t), t && t.feature ? (n = fz, i = t.feature) : t && t.mesh ? (n = hz, i = t.mesh, o = MU[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];
3993
3993
  }
3994
- aN.responseType = "json";
3994
+ a5.responseType = "json";
3995
3995
  const qh = {
3996
3996
  dsv: Uv,
3997
3997
  csv: Dk(","),
3998
3998
  tsv: Dk(" "),
3999
3999
  json: jv,
4000
- topojson: aN
4000
+ topojson: a5
4001
4001
  };
4002
4002
  function qv(e, t) {
4003
4003
  return arguments.length > 1 ? (qh[e] = t, this) : ne(qh, e) ? qh[e] : null;
4004
4004
  }
4005
- function lN(e) {
4005
+ function l5(e) {
4006
4006
  const t = qv(e);
4007
4007
  return t && t.responseType || "text";
4008
4008
  }
4009
- function uN(e, t, n, r) {
4009
+ function u5(e, t, n, r) {
4010
4010
  t = t || {};
4011
4011
  const i = qv(t.type || "json");
4012
4012
  return i || I("Unknown data format type: " + t.type), e = i(e, t), t.parse && TU(e, t.parse, n, r), ne(e, "columns") && delete e.columns, e;
@@ -4016,7 +4016,7 @@ function TU(e, t, n, r) {
4016
4016
  const i = $f();
4017
4017
  n = n || i.timeParse, r = r || i.utcParse;
4018
4018
  let o = e.columns || Object.keys(e[0]), s, a, l, u, c, f;
4019
- t === "auto" && (t = sN(e, o)), o = Object.keys(t);
4019
+ t === "auto" && (t = s5(e, o)), o = Object.keys(t);
4020
4020
  const d = o.map((h) => {
4021
4021
  const p = t[h];
4022
4022
  let g, m;
@@ -4053,22 +4053,22 @@ async function Wh(e, t) {
4053
4053
  e.error(n);
4054
4054
  }
4055
4055
  }
4056
- const cN = /* @__PURE__ */ Symbol("vega_id");
4056
+ const c5 = /* @__PURE__ */ Symbol("vega_id");
4057
4057
  let NU = 1;
4058
4058
  function lm(e) {
4059
4059
  return !!(e && ue(e));
4060
4060
  }
4061
4061
  function ue(e) {
4062
- return e[cN];
4062
+ return e[c5];
4063
4063
  }
4064
- function fN(e, t) {
4065
- return e[cN] = t, e;
4064
+ function f5(e, t) {
4065
+ return e[c5] = t, e;
4066
4066
  }
4067
4067
  function Ge(e) {
4068
4068
  const t = e === Object(e) ? e : {
4069
4069
  data: e
4070
4070
  };
4071
- return ue(t) ? t : fN(t, NU++);
4071
+ return ue(t) ? t : f5(t, NU++);
4072
4072
  }
4073
4073
  function Wv(e) {
4074
4074
  return um(e, Ge({}));
@@ -4077,13 +4077,13 @@ function um(e, t) {
4077
4077
  for (const n in e) t[n] = e[n];
4078
4078
  return t;
4079
4079
  }
4080
- function dN(e, t) {
4081
- return fN(t, ue(e));
4080
+ function d5(e, t) {
4081
+ return f5(t, ue(e));
4082
4082
  }
4083
4083
  function rl(e, t) {
4084
4084
  return e ? t ? (n, r) => e(n, r) || ue(t(n)) - ue(t(r)) : (n, r) => e(n, r) || ue(n) - ue(r) : null;
4085
4085
  }
4086
- function hN(e) {
4086
+ function h5(e) {
4087
4087
  return e && e.constructor === il;
4088
4088
  }
4089
4089
  function il() {
@@ -4455,7 +4455,7 @@ function BU(e, t, n, r) {
4455
4455
  }
4456
4456
  function UU(e, t) {
4457
4457
  const n = this.locale();
4458
- return uN(e, t, n.timeParse, n.utcParse);
4458
+ return u5(e, t, n.timeParse, n.utcParse);
4459
4459
  }
4460
4460
  function jU(e, t, n) {
4461
4461
  return t = this.parse(t, n), this.pulse(e, this.changeset().insert(t));
@@ -4466,7 +4466,7 @@ async function qU(e, t) {
4466
4466
  try {
4467
4467
  i = await n.loader().load(e, {
4468
4468
  context: "dataflow",
4469
- response: lN(t && t.type)
4469
+ response: l5(t && t.type)
4470
4470
  });
4471
4471
  try {
4472
4472
  i = n.parse(i, t);
@@ -4506,7 +4506,7 @@ function YU(e, t, n, r, i, o) {
4506
4506
  Ee(n) || (n = En(n)), r === void 0 ? a = (u) => e.touch(n(u)) : Ee(r) ? (l = new et(null, r, i, !1), a = (u) => {
4507
4507
  l.evaluate(u);
4508
4508
  const c = n(u), f = l.value;
4509
- hN(f) ? e.pulse(c, f, o) : e.update(c, f, s);
4509
+ h5(f) ? e.pulse(c, f, o) : e.update(c, f, s);
4510
4510
  }) : a = (u) => e.update(n(u), r, s), t.apply(a);
4511
4511
  }
4512
4512
  function XU(e, t, n, r, i, o) {
@@ -4820,7 +4820,7 @@ X(Hv, ds, {
4820
4820
  });
4821
4821
  async function ej(e, t, n) {
4822
4822
  const r = this, i = [];
4823
- if (r._pulse) return pN(r);
4823
+ if (r._pulse) return p5(r);
4824
4824
  if (r._pending && await r._pending, t && await Wh(r, t), !r._touched.length)
4825
4825
  return r.debug("Dataflow invoked, but nothing to do."), r;
4826
4826
  const o = ++r._clock;
@@ -4859,7 +4859,7 @@ async function tj(e, t, n) {
4859
4859
  return (this._running = this.evaluate(e, t, n)).then(r, r), this._running;
4860
4860
  }
4861
4861
  function nj(e, t, n) {
4862
- return this._pulse ? pN(this) : (this.evaluate(e, t, n), this);
4862
+ return this._pulse ? p5(this) : (this.evaluate(e, t, n), this);
4863
4863
  }
4864
4864
  function rj(e, t, n) {
4865
4865
  if (this._pulse || t)
@@ -4874,7 +4874,7 @@ function rj(e, t, n) {
4874
4874
  this.error(r);
4875
4875
  }
4876
4876
  }
4877
- function pN(e) {
4877
+ function p5(e) {
4878
4878
  return e.error("Dataflow already running. Use runAsync() to chain invocations."), e;
4879
4879
  }
4880
4880
  function ij(e, t) {
@@ -4911,7 +4911,7 @@ function cj(e) {
4911
4911
  clear: () => t = [],
4912
4912
  size: () => t.length,
4913
4913
  peek: () => t[0],
4914
- push: (n) => (t.push(n), gN(t, 0, t.length - 1, e)),
4914
+ push: (n) => (t.push(n), g5(t, 0, t.length - 1, e)),
4915
4915
  pop: () => {
4916
4916
  const n = t.pop();
4917
4917
  let r;
@@ -4919,7 +4919,7 @@ function cj(e) {
4919
4919
  }
4920
4920
  };
4921
4921
  }
4922
- function gN(e, t, n, r) {
4922
+ function g5(e, t, n, r) {
4923
4923
  let i, o;
4924
4924
  const s = e[n];
4925
4925
  for (; n > t; ) {
@@ -4936,7 +4936,7 @@ function fj(e, t, n) {
4936
4936
  let s = (t << 1) + 1, a;
4937
4937
  for (; s < i; )
4938
4938
  a = s + 1, a < i && n(e[s], e[a]) >= 0 && (s = a), e[t] = e[s], t = s, s = (t << 1) + 1;
4939
- return e[t] = o, gN(e, r, t, n);
4939
+ return e[t] = o, g5(e, r, t, n);
4940
4940
  }
4941
4941
  function ql() {
4942
4942
  this.logger(Zg()), this.logLevel(vv), this._clock = 0, this._rank = 0, this._locale = Bv();
@@ -5103,14 +5103,14 @@ X(L, et, {
5103
5103
  }
5104
5104
  });
5105
5105
  const iu = {};
5106
- function mN(e) {
5107
- const t = yN(e);
5106
+ function m5(e) {
5107
+ const t = y5(e);
5108
5108
  return t && t.Definition || null;
5109
5109
  }
5110
- function yN(e) {
5110
+ function y5(e) {
5111
5111
  return e = e && e.toLowerCase(), ne(iu, e) ? iu[e] : null;
5112
5112
  }
5113
- function* _N(e, t) {
5113
+ function* _5(e, t) {
5114
5114
  if (t == null)
5115
5115
  for (let n of e)
5116
5116
  n != null && n !== "" && (n = +n) >= n && (yield n);
@@ -5121,8 +5121,8 @@ function* _N(e, t) {
5121
5121
  }
5122
5122
  }
5123
5123
  function Vv(e, t, n) {
5124
- const r = Float64Array.from(_N(e, n));
5125
- return r.sort(wo), t.map((i) => g5(r, i));
5124
+ const r = Float64Array.from(_5(e, n));
5125
+ return r.sort(wo), t.map((i) => gN(r, i));
5126
5126
  }
5127
5127
  function Yv(e, t) {
5128
5128
  return Vv(e, [0.25, 0.5, 0.75], t);
@@ -5131,7 +5131,7 @@ function Xv(e, t) {
5131
5131
  const n = e.length, r = xz(e, t), i = Yv(e, t), o = (i[2] - i[0]) / 1.34;
5132
5132
  return 1.06 * (Math.min(r, o) || r || Math.abs(i[0]) || 1) * Math.pow(n, -0.2);
5133
5133
  }
5134
- function bN(e) {
5134
+ function b5(e) {
5135
5135
  const t = e.maxbins || 20, n = e.base || 10, r = Math.log(n), i = e.divide || [5, 2];
5136
5136
  let o = e.extent[0], s = e.extent[1], a, l, u, c, f, d;
5137
5137
  const h = e.span || s - o || Math.abs(o) || 1;
@@ -5158,9 +5158,9 @@ var Rr = Math.random;
5158
5158
  function dj(e) {
5159
5159
  Rr = e;
5160
5160
  }
5161
- function vN(e, t, n, r) {
5161
+ function v5(e, t, n, r) {
5162
5162
  if (!e.length) return [void 0, void 0];
5163
- const i = Float64Array.from(_N(e, r)), o = i.length, s = t;
5163
+ const i = Float64Array.from(_5(e, r)), o = i.length, s = t;
5164
5164
  let a, l, u, c;
5165
5165
  for (u = 0, c = Array(s); u < s; ++u) {
5166
5166
  for (a = 0, l = 0; l < o; ++l)
@@ -5169,7 +5169,7 @@ function vN(e, t, n, r) {
5169
5169
  }
5170
5170
  return c.sort(wo), [n_(c, n / 2), n_(c, 1 - n / 2)];
5171
5171
  }
5172
- function xN(e, t, n, r) {
5172
+ function x5(e, t, n, r) {
5173
5173
  r = r || ((d) => d);
5174
5174
  const i = e.length, o = new Float64Array(i);
5175
5175
  let s = 0, a = 1, l = r(e[0]), u = l, c = l + t, f;
@@ -5228,7 +5228,7 @@ function gj(e, t) {
5228
5228
  };
5229
5229
  return o.min(e).max(t);
5230
5230
  }
5231
- const wN = Math.sqrt(2 * Math.PI), mj = Math.SQRT2;
5231
+ const w5 = Math.sqrt(2 * Math.PI), mj = Math.SQRT2;
5232
5232
  let Ec = NaN;
5233
5233
  function dm(e, t) {
5234
5234
  e = e || 0, t = t ?? 1;
@@ -5246,7 +5246,7 @@ function dm(e, t) {
5246
5246
  function Kv(e, t, n) {
5247
5247
  n = n ?? 1;
5248
5248
  const r = (e - (t || 0)) / n;
5249
- return Math.exp(-0.5 * r * r) / (n * wN);
5249
+ return Math.exp(-0.5 * r * r) / (n * w5);
5250
5250
  }
5251
5251
  function hm(e, t, n) {
5252
5252
  t = t || 0, n = n ?? 1;
@@ -5322,7 +5322,7 @@ function ex(e, t, n) {
5322
5322
  if (e <= 0) return 0;
5323
5323
  t = t || 0, n = n ?? 1;
5324
5324
  const r = (Math.log(e) - t) / n;
5325
- return Math.exp(-0.5 * r * r) / (n * wN * e);
5325
+ return Math.exp(-0.5 * r * r) / (n * w5 * e);
5326
5326
  }
5327
5327
  function tx(e, t, n) {
5328
5328
  return hm(Math.log(e), t, n);
@@ -5330,7 +5330,7 @@ function tx(e, t, n) {
5330
5330
  function nx(e, t, n) {
5331
5331
  return Math.exp(pm(e, t, n));
5332
5332
  }
5333
- function EN(e, t) {
5333
+ function E5(e, t) {
5334
5334
  let n, r;
5335
5335
  const i = {
5336
5336
  mean(o) {
@@ -5346,7 +5346,7 @@ function EN(e, t) {
5346
5346
  };
5347
5347
  return i.mean(e).stdev(t);
5348
5348
  }
5349
- function CN(e, t) {
5349
+ function C5(e, t) {
5350
5350
  let n = 0, r;
5351
5351
  function i(s) {
5352
5352
  const a = [];
@@ -5404,7 +5404,7 @@ function ox(e, t, n) {
5404
5404
  function sx(e, t, n) {
5405
5405
  return n == null && (n = t ?? 1, t = 0), e >= 0 && e <= 1 ? t + e * (n - t) : NaN;
5406
5406
  }
5407
- function kN(e, t) {
5407
+ function k5(e, t) {
5408
5408
  let n, r;
5409
5409
  const i = {
5410
5410
  min(o) {
@@ -5473,7 +5473,7 @@ function lx(e, t, n) {
5473
5473
  rSquared: Vu(e, t, n, i, u)
5474
5474
  };
5475
5475
  }
5476
- function SN(e, t, n) {
5476
+ function S5(e, t, n) {
5477
5477
  let r = 0, i = 0, o = 0, s = 0, a = 0;
5478
5478
  sd(e, t, n, (c, f) => {
5479
5479
  ++a, c = Math.log(c), r += (c - r) / a, i += (f - i) / a, o += (c * f - o) / a, s += (c * c - s) / a;
@@ -5485,7 +5485,7 @@ function SN(e, t, n) {
5485
5485
  rSquared: Vu(e, t, n, i, u)
5486
5486
  };
5487
5487
  }
5488
- function $N(e, t, n) {
5488
+ function $5(e, t, n) {
5489
5489
  const [r, i, o, s] = gm(e, t, n);
5490
5490
  let a = 0, l = 0, u = 0, c = 0, f = 0, d, h, p;
5491
5491
  sd(e, t, n, (_, b) => {
@@ -5498,7 +5498,7 @@ function $N(e, t, n) {
5498
5498
  rSquared: Vu(e, t, n, s, y)
5499
5499
  };
5500
5500
  }
5501
- function AN(e, t, n) {
5501
+ function A5(e, t, n) {
5502
5502
  let r = 0, i = 0, o = 0, s = 0, a = 0, l = 0;
5503
5503
  sd(e, t, n, (f, d) => {
5504
5504
  const h = Math.log(f), p = Math.log(d);
@@ -5523,7 +5523,7 @@ function ux(e, t, n) {
5523
5523
  rSquared: Vu(e, t, n, s, E)
5524
5524
  };
5525
5525
  }
5526
- function MN(e, t, n, r) {
5526
+ function M5(e, t, n, r) {
5527
5527
  if (r === 0) return ax(e, t, n);
5528
5528
  if (r === 1) return lx(e, t, n);
5529
5529
  if (r === 2) return ux(e, t, n);
@@ -5581,7 +5581,7 @@ function bj(e) {
5581
5581
  return n;
5582
5582
  }
5583
5583
  const Bk = 2, Uk = 1e-12;
5584
- function TN(e, t, n, r) {
5584
+ function T5(e, t, n, r) {
5585
5585
  const [i, o, s, a] = gm(e, t, n, !0), l = i.length, u = Math.max(2, ~~(r * l)), c = new Float64Array(l), f = new Float64Array(l), d = new Float64Array(l).fill(1);
5586
5586
  for (let h = -1; ++h <= Bk; ) {
5587
5587
  const p = [0, u - 1];
@@ -5598,7 +5598,7 @@ function TN(e, t, n, r) {
5598
5598
  }
5599
5599
  if (h === Bk)
5600
5600
  break;
5601
- const g = m5(f);
5601
+ const g = mN(f);
5602
5602
  if (Math.abs(g) < Uk) break;
5603
5603
  for (let m = 0, y, _; m < l; ++m)
5604
5604
  y = f[m] / (6 * g), d[m] = y >= 1 ? Uk : (_ = 1 - y * y) * _;
@@ -5670,7 +5670,7 @@ function d_(e) {
5670
5670
  return "";
5671
5671
  } : e.length === 1 ? e[0] : Sj(e);
5672
5672
  }
5673
- function NN(e, t, n) {
5673
+ function N5(e, t, n) {
5674
5674
  return n || e + (t ? "_" + t : "");
5675
5675
  }
5676
5676
  const m1 = () => {
@@ -5850,10 +5850,10 @@ function Aj(e, t) {
5850
5850
  [...ad, "__count__"].forEach((e) => {
5851
5851
  Af[e] = Aj(e, Af[e]);
5852
5852
  });
5853
- function FN(e, t, n) {
5853
+ function F5(e, t, n) {
5854
5854
  return Af[e](n, t);
5855
5855
  }
5856
- function DN(e, t) {
5856
+ function D5(e, t) {
5857
5857
  return e.idx - t.idx;
5858
5858
  }
5859
5859
  function Mj(e) {
@@ -5864,7 +5864,7 @@ function Mj(e) {
5864
5864
  t[i] || n(t[i] = Af[i]());
5865
5865
  });
5866
5866
  };
5867
- return e.forEach(n), Object.values(t).sort(DN);
5867
+ return e.forEach(n), Object.values(t).sort(D5);
5868
5868
  }
5869
5869
  function Tj() {
5870
5870
  this.valid = 0, this.missing = 0, this._ops.forEach((e) => e.aggregate_param == null ? e.init(this) : e.init(this, e.aggregate_param));
@@ -5886,8 +5886,8 @@ function Fj(e, t) {
5886
5886
  function Dj(e) {
5887
5887
  return this._out.forEach((t) => e[t.out] = t.value(this)), e;
5888
5888
  }
5889
- function RN(e, t) {
5890
- const n = t || wn, r = Mj(e), i = e.slice().sort(DN);
5889
+ function R5(e, t) {
5890
+ const n = t || wn, r = Mj(e), i = e.slice().sort(D5);
5891
5891
  function o(s) {
5892
5892
  this._ops = r, this._out = i, this.cell = s, this.init();
5893
5893
  }
@@ -5957,7 +5957,7 @@ ln.q3 = function(e) {
5957
5957
  return this.quartile(e)[2];
5958
5958
  };
5959
5959
  ln.ci = function(e) {
5960
- return (this._get !== e || !this._ci) && (this._ci = vN(this.values(), 1e3, 0.05, e), this._get = e), this._ci;
5960
+ return (this._get !== e || !this._ci) && (this._ci = v5(this.values(), 1e3, 0.05, e), this._get = e), this._ci;
5961
5961
  };
5962
5962
  ln.ci0 = function(e) {
5963
5963
  return this.ci(e)[0];
@@ -6049,13 +6049,13 @@ X(_s, L, {
6049
6049
  const o = e.fields || [null], s = e.ops || ["count"], a = e.aggregate_params || [null], l = e.as || [], u = o.length, c = {};
6050
6050
  let f, d, h, p, g, m, y;
6051
6051
  for (u !== s.length && I("Unmatched number of fields and aggregate ops."), y = 0; y < u; ++y) {
6052
- if (f = o[y], d = s[y], h = a[y] || null, f == null && d !== "count" && I("Null aggregate field specified."), g = _t(f), m = NN(d, g, l[y]), n.push(m), d === "count") {
6052
+ if (f = o[y], d = s[y], h = a[y] || null, f == null && d !== "count" && I("Null aggregate field specified."), g = _t(f), m = N5(d, g, l[y]), n.push(m), d === "count") {
6053
6053
  this._counts.push(m);
6054
6054
  continue;
6055
6055
  }
6056
- p = c[g], p || (i(f), p = c[g] = [], p.field = f, this._measures.push(p)), d !== "count" && (this._countOnly = !1), p.push(FN(d, h, m));
6056
+ p = c[g], p || (i(f), p = c[g] = [], p.field = f, this._measures.push(p)), d !== "count" && (this._countOnly = !1), p.push(F5(d, h, m));
6057
6057
  }
6058
- return this._measures = this._measures.map((_) => RN(_, _.field)), /* @__PURE__ */ Object.create(null);
6058
+ return this._measures = this._measures.map((_) => R5(_, _.field)), /* @__PURE__ */ Object.create(null);
6059
6059
  },
6060
6060
  // -- Cell Management -----
6061
6061
  cellkey: d_(),
@@ -6084,7 +6084,7 @@ X(_s, L, {
6084
6084
  const n = this._dnames, r = this._dims, i = r.length, o = {};
6085
6085
  for (let s = 0; s < i; ++s)
6086
6086
  o[n[s]] = r[s](e);
6087
- return t ? dN(t.tuple, o) : Ge(o);
6087
+ return t ? d5(t.tuple, o) : Ge(o);
6088
6088
  },
6089
6089
  clean() {
6090
6090
  const e = this.value;
@@ -6212,7 +6212,7 @@ X(fx, L, {
6212
6212
  _bins(e) {
6213
6213
  if (this.value && !e.modified())
6214
6214
  return this.value;
6215
- const t = e.field, n = bN(e), r = n.step;
6215
+ const t = e.field, n = b5(e), r = n.step;
6216
6216
  let i = n.start, o = i + Math.ceil((n.stop - i) / r) * r, s, a;
6217
6217
  (s = e.anchor) != null && (a = s - (i + r * Math.floor((s - i) / r)), i += a, o += a);
6218
6218
  const l = function(u) {
@@ -6222,14 +6222,14 @@ X(fx, L, {
6222
6222
  return l.start = i, l.stop = n.stop, l.step = r, this.value = er(l, _n(t), e.name || "bin_" + _t(t));
6223
6223
  }
6224
6224
  });
6225
- function ON(e, t, n) {
6225
+ function O5(e, t, n) {
6226
6226
  const r = e;
6227
6227
  let i = t || [], o = n || [], s = {}, a = 0;
6228
6228
  return {
6229
6229
  add: (l) => o.push(l),
6230
6230
  remove: (l) => s[r(l)] = ++a,
6231
6231
  size: () => i.length,
6232
- data: (l, u) => (a && (i = i.filter((c) => !s[r(c)]), s = {}, a = 0), u && l && i.sort(l), o.length && (i = l ? r5(l, i, o.sort(l)) : i.concat(o), o = []), i)
6232
+ data: (l, u) => (a && (i = i.filter((c) => !s[r(c)]), s = {}, a = 0), u && l && i.sort(l), o.length && (i = l ? rN(l, i, o.sort(l)) : i.concat(o), o = []), i)
6233
6233
  };
6234
6234
  }
6235
6235
  function dx(e) {
@@ -6247,14 +6247,14 @@ dx.Definition = {
6247
6247
  };
6248
6248
  X(dx, L, {
6249
6249
  transform(e, t) {
6250
- const n = t.fork(t.ALL), r = ON(ue, this.value, n.materialize(n.ADD).add), i = e.sort, o = t.changed() || i && (e.modified("sort") || t.modified(i.fields));
6250
+ const n = t.fork(t.ALL), r = O5(ue, this.value, n.materialize(n.ADD).add), i = e.sort, o = t.changed() || i && (e.modified("sort") || t.modified(i.fields));
6251
6251
  return n.visit(n.REM, r.remove), this.modified(o), this.value = n.source = r.data(rl(i), o), t.source && t.source.root && (this.value.root = t.source.root), n;
6252
6252
  }
6253
6253
  });
6254
- function LN(e) {
6254
+ function L5(e) {
6255
6255
  et.call(this, null, Oj, e);
6256
6256
  }
6257
- X(LN, et);
6257
+ X(L5, et);
6258
6258
  function Oj(e) {
6259
6259
  return this.value && !e.modified() ? this.value : kv(e.fields, e.orders);
6260
6260
  }
@@ -6357,23 +6357,23 @@ function Ij(e, t, n, r) {
6357
6357
  }
6358
6358
  const jk = {
6359
6359
  kde: Jv,
6360
- mixture: CN,
6360
+ mixture: C5,
6361
6361
  normal: Zv,
6362
- lognormal: EN,
6363
- uniform: kN
6362
+ lognormal: E5,
6363
+ uniform: k5
6364
6364
  }, Pj = "distributions", qk = "function", zj = "field";
6365
- function IN(e, t) {
6365
+ function I5(e, t) {
6366
6366
  const n = e[qk];
6367
6367
  ne(jk, n) || I("Unknown distribution function: " + n);
6368
6368
  const r = jk[n]();
6369
6369
  for (const i in e)
6370
- i === zj ? r.data((e.from || t()).map(e[i])) : i === Pj ? r[i](e[i].map((o) => IN(o, t))) : typeof r[i] === qk && r[i](e[i]);
6370
+ i === zj ? r.data((e.from || t()).map(e[i])) : i === Pj ? r[i](e[i].map((o) => I5(o, t))) : typeof r[i] === qk && r[i](e[i]);
6371
6371
  return r;
6372
6372
  }
6373
6373
  function gx(e) {
6374
6374
  L.call(this, null, e);
6375
6375
  }
6376
- const PN = [{
6376
+ const P5 = [{
6377
6377
  key: {
6378
6378
  function: "normal"
6379
6379
  },
@@ -6436,7 +6436,7 @@ const PN = [{
6436
6436
  name: "distributions",
6437
6437
  type: "param",
6438
6438
  array: !0,
6439
- params: PN
6439
+ params: P5
6440
6440
  }, {
6441
6441
  name: "weights",
6442
6442
  type: "number",
@@ -6472,7 +6472,7 @@ gx.Definition = {
6472
6472
  }, {
6473
6473
  name: "distribution",
6474
6474
  type: "param",
6475
- params: PN.concat(Bj)
6475
+ params: P5.concat(Bj)
6476
6476
  }, {
6477
6477
  name: "as",
6478
6478
  type: "string",
@@ -6484,7 +6484,7 @@ X(gx, L, {
6484
6484
  transform(e, t) {
6485
6485
  const n = t.fork(t.NO_SOURCE | t.NO_FIELDS);
6486
6486
  if (!this.value || t.changed() || e.modified()) {
6487
- const r = IN(e.distribution, Uj(t)), i = e.steps || e.minsteps || 25, o = e.steps || e.maxsteps || 200;
6487
+ const r = I5(e.distribution, Uj(t)), i = e.steps || e.minsteps || 25, o = e.steps || e.maxsteps || 200;
6488
6488
  let s = e.method || "pdf";
6489
6489
  s !== "pdf" && s !== "cdf" && I("Invalid density method: " + s), !e.extent && !r.data && I("Missing density extent parameter."), s = r[s];
6490
6490
  const a = e.as || ["value", "density"], l = e.extent || Pi(r.data()), u = mm(s, l, i, o).map((c) => {
@@ -6499,7 +6499,7 @@ X(gx, L, {
6499
6499
  function Uj(e) {
6500
6500
  return () => e.materialize(e.SOURCE).source;
6501
6501
  }
6502
- function zN(e, t) {
6502
+ function z5(e, t) {
6503
6503
  return e ? e.map((n, r) => t[r] || _t(n)) : null;
6504
6504
  }
6505
6505
  function mx(e, t, n) {
@@ -6512,7 +6512,7 @@ function mx(e, t, n) {
6512
6512
  l = e[s], u = t.map(i), c = o[u], c || (o[u] = c = [], c.dims = u, r.push(c)), c.push(n(l));
6513
6513
  return r;
6514
6514
  }
6515
- const BN = "bin";
6515
+ const B5 = "bin";
6516
6516
  function yx(e) {
6517
6517
  L.call(this, null, e);
6518
6518
  }
@@ -6539,7 +6539,7 @@ yx.Definition = {
6539
6539
  }, {
6540
6540
  name: "as",
6541
6541
  type: "string",
6542
- default: BN
6542
+ default: B5
6543
6543
  }]
6544
6544
  };
6545
6545
  const jj = (e, t) => id(Pi(e, t)) / 30;
@@ -6547,12 +6547,12 @@ X(yx, L, {
6547
6547
  transform(e, t) {
6548
6548
  if (this.value && !(e.modified() || t.changed()))
6549
6549
  return t;
6550
- const n = t.materialize(t.SOURCE).source, r = mx(t.source, e.groupby, wn), i = e.smooth || !1, o = e.field, s = e.step || jj(n, o), a = rl((p, g) => o(p) - o(g)), l = e.as || BN, u = r.length;
6550
+ const n = t.materialize(t.SOURCE).source, r = mx(t.source, e.groupby, wn), i = e.smooth || !1, o = e.field, s = e.step || jj(n, o), a = rl((p, g) => o(p) - o(g)), l = e.as || B5, u = r.length;
6551
6551
  let c = 1 / 0, f = -1 / 0, d = 0, h;
6552
6552
  for (; d < u; ++d) {
6553
6553
  const p = r[d].sort(a);
6554
6554
  h = -1;
6555
- for (const g of xN(p, s, i, o))
6555
+ for (const g of x5(p, s, i, o))
6556
6556
  g < c && (c = g), g > f && (f = g), p[++h][l] = g;
6557
6557
  }
6558
6558
  return this.value = {
@@ -6562,10 +6562,10 @@ X(yx, L, {
6562
6562
  }, t.reflow(!0).modifies(l);
6563
6563
  }
6564
6564
  });
6565
- function UN(e) {
6565
+ function U5(e) {
6566
6566
  et.call(this, null, qj, e), this.modified(!0);
6567
6567
  }
6568
- X(UN, et);
6568
+ X(U5, et);
6569
6569
  function qj(e) {
6570
6570
  const t = e.expr;
6571
6571
  return this.value && !e.modified("expr") ? this.value : er((n) => t(n, e), _n(t), _t(t));
@@ -6706,10 +6706,10 @@ X(ym, L, {
6706
6706
  }) : o.empty > n.cleanThreshold && n.runAfter(o.clean), t;
6707
6707
  }
6708
6708
  });
6709
- function jN(e) {
6709
+ function j5(e) {
6710
6710
  et.call(this, null, Wj, e);
6711
6711
  }
6712
- X(jN, et);
6712
+ X(j5, et);
6713
6713
  function Wj(e) {
6714
6714
  return this.value && !e.modified() ? this.value : B(e.name) ? ee(e.name).map((t) => Nr(t)) : Nr(e.name, e.as);
6715
6715
  }
@@ -6768,7 +6768,7 @@ xx.Definition = {
6768
6768
  };
6769
6769
  X(xx, L, {
6770
6770
  transform(e, t) {
6771
- const n = t.fork(t.NO_SOURCE), r = e.fields, i = zN(r, e.as || []), o = e.index || null, s = i.length;
6771
+ const n = t.fork(t.NO_SOURCE), r = e.fields, i = z5(r, e.as || []), o = e.index || null, s = i.length;
6772
6772
  return n.rem = this.value, t.visit(t.SOURCE, (a) => {
6773
6773
  const l = r.map((p) => p(a)), u = l.reduce((p, g) => Math.max(p, g.length), 0);
6774
6774
  let c = 0, f, d, h;
@@ -6837,10 +6837,10 @@ X(Ex, L, {
6837
6837
  return i && (t = t.materialize().reflow(!0)), e.initonly || t.modifies(r), t.visit(o, (s) => s[r] = n(s, e));
6838
6838
  }
6839
6839
  });
6840
- function qN(e) {
6840
+ function q5(e) {
6841
6841
  L.call(this, [], e);
6842
6842
  }
6843
- X(qN, L, {
6843
+ X(q5, L, {
6844
6844
  transform(e, t) {
6845
6845
  const n = t.fork(t.ALL), r = e.generator;
6846
6846
  let i = this.value, o = e.size - i.length, s, a, l;
@@ -6855,7 +6855,7 @@ X(qN, L, {
6855
6855
  });
6856
6856
  const rh = {
6857
6857
  value: "value",
6858
- median: m5,
6858
+ median: mN,
6859
6859
  mean: $z,
6860
6860
  min: t_,
6861
6861
  max: ba
@@ -7048,17 +7048,17 @@ X(Sx, L, {
7048
7048
  return n;
7049
7049
  }
7050
7050
  });
7051
- function WN(e) {
7051
+ function W5(e) {
7052
7052
  et.call(this, null, Xj, e);
7053
7053
  }
7054
- X(WN, et);
7054
+ X(W5, et);
7055
7055
  function Xj(e) {
7056
7056
  return this.value && !e.modified() ? this.value : Av(e.fields, e.flat);
7057
7057
  }
7058
- function HN(e) {
7058
+ function H5(e) {
7059
7059
  L.call(this, [], e), this._pending = null;
7060
7060
  }
7061
- X(HN, L, {
7061
+ X(H5, L, {
7062
7062
  transform(e, t) {
7063
7063
  const n = t.dataflow;
7064
7064
  return this._pending ? y1(this, t, this._pending) : Kj(e) ? t.StopPropagation : e.values ? y1(this, t, n.parse(e.values, e.format)) : e.async ? {
@@ -7126,10 +7126,10 @@ X($x, L, {
7126
7126
  }), 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);
7127
7127
  }
7128
7128
  });
7129
- function GN(e) {
7129
+ function G5(e) {
7130
7130
  et.call(this, null, Zj, e);
7131
7131
  }
7132
- X(GN, et);
7132
+ X(G5, et);
7133
7133
  function Zj(e) {
7134
7134
  if (this.value && !e.modified())
7135
7135
  return this.value;
@@ -7139,17 +7139,17 @@ function Zj(e) {
7139
7139
  s = t[o], s[0] < r && (r = s[0]), s[1] > i && (i = s[1]);
7140
7140
  return [r, i];
7141
7141
  }
7142
- function VN(e) {
7142
+ function V5(e) {
7143
7143
  et.call(this, null, Jj, e);
7144
7144
  }
7145
- X(VN, et);
7145
+ X(V5, et);
7146
7146
  function Jj(e) {
7147
7147
  return this.value && !e.modified() ? this.value : e.values.reduce((t, n) => t.concat(n), []);
7148
7148
  }
7149
- function YN(e) {
7149
+ function Y5(e) {
7150
7150
  L.call(this, null, e);
7151
7151
  }
7152
- X(YN, L, {
7152
+ X(Y5, L, {
7153
7153
  transform(e, t) {
7154
7154
  return this.modified(e.modified()), this.value = e, t.fork(t.NO_SOURCE | t.NO_FIELDS);
7155
7155
  }
@@ -7216,10 +7216,10 @@ function tq(e, t, n) {
7216
7216
  r[s] || (r[s] = 1, i.push(s));
7217
7217
  }), i.sort(Bu), t ? i.slice(0, t) : i;
7218
7218
  }
7219
- function XN(e) {
7219
+ function X5(e) {
7220
7220
  ym.call(this, e);
7221
7221
  }
7222
- X(XN, ym, {
7222
+ X(X5, ym, {
7223
7223
  transform(e, t) {
7224
7224
  const n = e.subflow, r = e.field, i = (o) => this.subflow(ue(o), n, t, o);
7225
7225
  return (e.modified("field") || r && t.modified(_n(r))) && I("PreFacet does not support field modification."), this.initTargets(), r ? (t.visit(t.MOD, (o) => {
@@ -7256,7 +7256,7 @@ Mx.Definition = {
7256
7256
  };
7257
7257
  X(Mx, L, {
7258
7258
  transform(e, t) {
7259
- const n = t.fork(t.NO_SOURCE), r = e.fields, i = zN(e.fields, e.as || []), o = r ? (a, l) => nq(a, l, r, i) : um;
7259
+ const n = t.fork(t.NO_SOURCE), r = e.fields, i = z5(e.fields, e.as || []), o = r ? (a, l) => nq(a, l, r, i) : um;
7260
7260
  let s;
7261
7261
  return this.value ? s = this.value : (t = t.addAll(), s = this.value = {}), t.visit(t.REM, (a) => {
7262
7262
  const l = ue(a);
@@ -7274,10 +7274,10 @@ function nq(e, t, n, r) {
7274
7274
  t[r[i]] = n[i](e);
7275
7275
  return t;
7276
7276
  }
7277
- function KN(e) {
7277
+ function K5(e) {
7278
7278
  L.call(this, null, e);
7279
7279
  }
7280
- X(KN, L, {
7280
+ X(K5, L, {
7281
7281
  transform(e, t) {
7282
7282
  return this.value = e.value, e.modified("value") ? t.fork(t.NO_SOURCE | t.NO_FIELDS) : t.StopPropagation;
7283
7283
  }
@@ -7332,10 +7332,10 @@ X(Tx, L, {
7332
7332
  }), this.value && (n.rem = this.value), this.value = n.add = n.source = a, n;
7333
7333
  }
7334
7334
  });
7335
- function ZN(e) {
7335
+ function Z5(e) {
7336
7336
  L.call(this, null, e);
7337
7337
  }
7338
- X(ZN, L, {
7338
+ X(Z5, L, {
7339
7339
  transform(e, t) {
7340
7340
  let n, r;
7341
7341
  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) => {
@@ -7425,10 +7425,10 @@ X(Fx, L, {
7425
7425
  }), n.add = t.add.concat(this.value), n;
7426
7426
  }
7427
7427
  });
7428
- function JN(e) {
7428
+ function J5(e) {
7429
7429
  L.call(this, null, e), this.modified(!0);
7430
7430
  }
7431
- X(JN, L, {
7431
+ X(J5, L, {
7432
7432
  transform(e, t) {
7433
7433
  return this.value = t.source, t.changed() ? t.fork(t.NO_SOURCE | t.NO_FIELDS) : t.StopPropagation;
7434
7434
  }
@@ -7436,7 +7436,7 @@ X(JN, L, {
7436
7436
  function Dx(e) {
7437
7437
  L.call(this, null, e);
7438
7438
  }
7439
- const QN = ["unit0", "unit1"];
7439
+ const Q5 = ["unit0", "unit1"];
7440
7440
  Dx.Definition = {
7441
7441
  type: "TimeUnit",
7442
7442
  metadata: {
@@ -7477,12 +7477,12 @@ Dx.Definition = {
7477
7477
  type: "string",
7478
7478
  array: !0,
7479
7479
  length: 2,
7480
- default: QN
7480
+ default: Q5
7481
7481
  }]
7482
7482
  };
7483
7483
  X(Dx, L, {
7484
7484
  transform(e, t) {
7485
- const n = e.field, r = e.interval !== !1, i = e.timezone === "utc", o = this._floor(e, t), s = (i ? Gu : Hu)(o.unit).offset, a = e.as || QN, l = a[0], u = a[1], c = o.step;
7485
+ const n = e.field, r = e.interval !== !1, i = e.timezone === "utc", o = this._floor(e, t), s = (i ? Gu : Hu)(o.unit).offset, a = e.as || Q5, l = a[0], u = a[1], c = o.step;
7486
7486
  let f = o.start || 1 / 0, d = o.stop || -1 / 0, h = t.ADD;
7487
7487
  return (e.modified() || t.changed(t.REM) || t.modified(_n(n))) && (t = t.reflow(!0), h = t.SOURCE, f = 1 / 0, d = -1 / 0), t.visit(h, (p) => {
7488
7488
  const g = n(p);
@@ -7497,10 +7497,10 @@ X(Dx, L, {
7497
7497
  } = e.units ? {
7498
7498
  units: e.units,
7499
7499
  step: e.step || 1
7500
- } : q5({
7500
+ } : qN({
7501
7501
  extent: e.extent || Pi(t.materialize(t.SOURCE).source, e.field),
7502
7502
  maxbins: e.maxbins
7503
- }), o = Lv(r), s = this.value || {}, a = (n ? R5 : D5)(o, i);
7503
+ }), o = Lv(r), s = this.value || {}, a = (n ? RN : DN)(o, i);
7504
7504
  return a.unit = ze(o), a.units = o, a.step = i, a.start = s.start, a.stop = s.stop, this.value = a;
7505
7505
  }
7506
7506
  });
@@ -7655,7 +7655,7 @@ function n6(e) {
7655
7655
  ee(_n(p)).forEach((g) => l[g] = 1);
7656
7656
  }
7657
7657
  h(e.sort), t.forEach((p, g) => {
7658
- const m = n[g], y = r[g], _ = i[g] || null, b = _t(m), v = NN(p, b, o[g]);
7658
+ const m = n[g], y = r[g], _ = i[g] || null, b = _t(m), v = N5(p, b, o[g]);
7659
7659
  if (h(m), s.push(v), ne(Mf, p))
7660
7660
  a.push(iq(p, m, y, v));
7661
7661
  else {
@@ -7665,7 +7665,7 @@ function n6(e) {
7665
7665
  }
7666
7666
  d = !1;
7667
7667
  let x = u[b];
7668
- x || (x = u[b] = [], x.field = m, f.push(x)), x.push(FN(p, _, v));
7668
+ x || (x = u[b] = [], x.field = m, f.push(x)), x.push(F5(p, _, v));
7669
7669
  }
7670
7670
  }), (c.length || f.length) && (this.cell = aq(f, c, d)), this.inputs = Object.keys(l);
7671
7671
  }
@@ -7684,7 +7684,7 @@ r6.update = function(e, t) {
7684
7684
  for (s = 0; s < o; ++s) r[s].update(e, t);
7685
7685
  };
7686
7686
  function aq(e, t, n) {
7687
- e = e.map((l) => RN(l, l.field));
7687
+ e = e.map((l) => R5(l, l.field));
7688
7688
  const r = {
7689
7689
  num: 0,
7690
7690
  agg: null,
@@ -7781,7 +7781,7 @@ X(Rx, L, {
7781
7781
  },
7782
7782
  group(e) {
7783
7783
  let t = this.value[e];
7784
- return t || (t = this.value[e] = ON(ue), t.stamp = -1), t.stamp < this.stamp && (t.stamp = this.stamp, this._mods[this._mlen++] = t), t;
7784
+ return t || (t = this.value[e] = O5(ue), t.stamp = -1), t.stamp < this.stamp && (t.stamp = this.stamp, this._mods[this._mlen++] = t), t;
7785
7785
  }
7786
7786
  });
7787
7787
  function lq(e, t, n, r) {
@@ -7810,38 +7810,38 @@ const fq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7810
7810
  aggregate: _s,
7811
7811
  bin: fx,
7812
7812
  collect: dx,
7813
- compare: LN,
7813
+ compare: L5,
7814
7814
  countpattern: hx,
7815
7815
  cross: px,
7816
7816
  density: gx,
7817
7817
  dotbin: yx,
7818
- expression: UN,
7818
+ expression: U5,
7819
7819
  extent: _x,
7820
7820
  facet: ym,
7821
- field: jN,
7821
+ field: j5,
7822
7822
  filter: vx,
7823
7823
  flatten: xx,
7824
7824
  fold: wx,
7825
7825
  formula: Ex,
7826
- generate: qN,
7826
+ generate: q5,
7827
7827
  impute: Cx,
7828
7828
  joinaggregate: kx,
7829
7829
  kde: Sx,
7830
- key: WN,
7831
- load: HN,
7830
+ key: W5,
7831
+ load: H5,
7832
7832
  lookup: $x,
7833
- multiextent: GN,
7834
- multivalues: VN,
7835
- params: YN,
7833
+ multiextent: G5,
7834
+ multivalues: V5,
7835
+ params: Y5,
7836
7836
  pivot: Ax,
7837
- prefacet: XN,
7837
+ prefacet: X5,
7838
7838
  project: Mx,
7839
- proxy: KN,
7839
+ proxy: K5,
7840
7840
  quantile: Tx,
7841
- relay: ZN,
7841
+ relay: Z5,
7842
7842
  sample: Nx,
7843
7843
  sequence: Fx,
7844
- sieve: JN,
7844
+ sieve: J5,
7845
7845
  subflow: bx,
7846
7846
  timeunit: Dx,
7847
7847
  tupleindex: e6,
@@ -9708,19 +9708,19 @@ function X6(e, t, n, r) {
9708
9708
  switch (r = Ma(r ?? ",f"), r.type) {
9709
9709
  case "s": {
9710
9710
  var s = Math.max(Math.abs(e), Math.abs(t));
9711
- return r.precision == null && !isNaN(o = x5(i, s)) && (r.precision = o), Dv(r, s);
9711
+ return r.precision == null && !isNaN(o = xN(i, s)) && (r.precision = o), Dv(r, s);
9712
9712
  }
9713
9713
  case "":
9714
9714
  case "e":
9715
9715
  case "g":
9716
9716
  case "p":
9717
9717
  case "r": {
9718
- r.precision == null && !isNaN(o = w5(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = o - (r.type === "e"));
9718
+ r.precision == null && !isNaN(o = wN(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = o - (r.type === "e"));
9719
9719
  break;
9720
9720
  }
9721
9721
  case "f":
9722
9722
  case "%": {
9723
- r.precision == null && !isNaN(o = v5(i)) && (r.precision = o - (r.type === "%") * 2);
9723
+ r.precision == null && !isNaN(o = vN(i)) && (r.precision = o - (r.type === "%") * 2);
9724
9724
  break;
9725
9725
  }
9726
9726
  }
@@ -9906,7 +9906,7 @@ function tF() {
9906
9906
  var e = [], t = [], n = [], r;
9907
9907
  function i() {
9908
9908
  var s = 0, a = Math.max(1, t.length);
9909
- for (n = new Array(a - 1); ++s < a; ) n[s - 1] = g5(e, s / a);
9909
+ for (n = new Array(a - 1); ++s < a; ) n[s - 1] = gN(e, s / a);
9910
9910
  return o;
9911
9911
  }
9912
9912
  function o(s) {
@@ -11661,7 +11661,7 @@ var fV = {
11661
11661
  pick: Lm(cV),
11662
11662
  isect: BF
11663
11663
  }, dV = x2("shape", _G), hV = x2("symbol", bG, m2);
11664
- const FS = n5();
11664
+ const FS = nN();
11665
11665
  var cr = {
11666
11666
  height: Ki,
11667
11667
  measureWidth: S2,
@@ -14087,7 +14087,7 @@ V2.Definition = {
14087
14087
  };
14088
14088
  X(V2, L, {
14089
14089
  transform(e, t) {
14090
- var n = e.as || ["startAngle", "endAngle"], r = n[0], i = n[1], o = e.field || Iu, s = e.startAngle || 0, a = e.endAngle != null ? e.endAngle : 2 * Math.PI, l = t.source, u = l.map(o), c = u.length, f = s, d = (a - s) / _5(u), h = sr(c), p, g, m;
14090
+ var n = e.as || ["startAngle", "endAngle"], r = n[0], i = n[1], o = e.field || Iu, s = e.startAngle || 0, a = e.endAngle != null ? e.endAngle : 2 * Math.PI, l = t.source, u = l.map(o), c = u.length, f = s, d = (a - s) / _N(u), h = sr(c), p, g, m;
14091
14091
  for (e.sort && h.sort((y, _) => u[y] - u[_]), p = 0; p < c; ++p)
14092
14092
  m = u[h[p]], g = l[h[p]], g[r] = f, g[i] = f += m * d;
14093
14093
  return this.value = u, t.reflow(e.modified()).modifies(n);
@@ -14680,7 +14680,7 @@ function kD(e, t, n, r) {
14680
14680
  d.point = y, d.lineStart = _, d.lineEnd = b, c = [], u = [];
14681
14681
  },
14682
14682
  polygonEnd: function() {
14683
- d.point = h, d.lineStart = g, d.lineEnd = m, c = y5(c);
14683
+ d.point = h, d.lineStart = g, d.lineEnd = m, c = yN(c);
14684
14684
  var v = IX(u, r);
14685
14685
  c.length ? (l || (i.polygonStart(), l = !0), CD(c, zX, v, n, i)) : v && (l || (i.polygonStart(), l = !0), i.lineStart(), n(null, null, 1, i), i.lineEnd()), l && (i.polygonEnd(), l = !1), c = u = null;
14686
14686
  },
@@ -14912,7 +14912,7 @@ function SD(e, t, n, r) {
14912
14912
  c = f, d = [], h = [], E = !0;
14913
14913
  }
14914
14914
  function T() {
14915
- var $ = S(), M = E && $, R = (d = y5(d)).length;
14915
+ var $ = S(), M = E && $, R = (d = yN(d)).length;
14916
14916
  (M || R) && (u.polygonStart(), M && (u.lineStart(), o(null, null, 1, u), u.lineEnd()), R && CD(d, a, $, o, u), u.polygonEnd()), c = u, d = h = p = null;
14917
14917
  }
14918
14918
  function F() {
@@ -16064,7 +16064,7 @@ function nR() {
16064
16064
  const x = d + (+e(v) >> s), E = h + (+t(v) >> s);
16065
16065
  x >= 0 && x < p && E >= 0 && E < g && (m[x + E * p] += +n(v));
16066
16066
  }), c > 0 && f > 0 ? (Cl(p, g, m, y, c), kl(p, g, y, m, f), Cl(p, g, m, y, c), kl(p, g, y, m, f), Cl(p, g, m, y, c), kl(p, g, y, m, f)) : c > 0 ? (Cl(p, g, m, y, c), Cl(p, g, y, m, c), Cl(p, g, m, y, c), _ = y) : f > 0 && (kl(p, g, m, y, f), kl(p, g, y, m, f), kl(p, g, m, y, f), _ = y);
16067
- const b = u ? Math.pow(2, -2 * s) : 1 / _5(_);
16067
+ const b = u ? Math.pow(2, -2 * s) : 1 / _N(_);
16068
16068
  for (let v = 0, x = p * g; v < x; ++v) _[v] *= b;
16069
16069
  return {
16070
16070
  values: _,
@@ -16450,7 +16450,7 @@ X(fw, L, {
16450
16450
  if (!n.length || e.modified())
16451
16451
  for (const o in e)
16452
16452
  Ee(r[o]) && r[o](e[o]);
16453
- return i = r(), n.length ? t.mod.push(dN(n[0], i)) : t.add.push(Ge(i)), n[0] = i, t;
16453
+ return i = r(), n.length ? t.mod.push(d5(n[0], i)) : t.add.push(Ge(i)), n[0] = i, t;
16454
16454
  }
16455
16455
  });
16456
16456
  function dw(e) {
@@ -18824,7 +18824,7 @@ X(Sw, L, {
18824
18824
  if (!this.value || t.changed() || e.modified()) {
18825
18825
  const r = t.materialize(t.SOURCE).source, i = wR(r, e.groupby), o = (e.groupby || []).map(_t), s = o.length, a = e.as || [_t(e.x), _t(e.y)], l = [];
18826
18826
  i.forEach((u) => {
18827
- TN(u, e.x, e.y, e.bandwidth || 0.3).forEach((c) => {
18827
+ T5(u, e.x, e.y, e.bandwidth || 0.3).forEach((c) => {
18828
18828
  const f = {};
18829
18829
  for (let d = 0; d < s; ++d)
18830
18830
  f[o[d]] = u.dims[d];
@@ -18838,11 +18838,11 @@ X(Sw, L, {
18838
18838
  const yb = {
18839
18839
  constant: ax,
18840
18840
  linear: lx,
18841
- log: SN,
18842
- exp: $N,
18843
- pow: AN,
18841
+ log: S5,
18842
+ exp: $5,
18843
+ pow: A5,
18844
18844
  quad: ux,
18845
- poly: MN
18845
+ poly: M5
18846
18846
  }, $Q = (e, t) => e === "poly" ? t : e === "quad" ? 2 : 1;
18847
18847
  function $w(e) {
18848
18848
  L.call(this, null, e);
@@ -21562,14 +21562,14 @@ const Wf = {
21562
21562
  sort: $ne,
21563
21563
  slice: Cne,
21564
21564
  flush: QT,
21565
- lerp: t5,
21565
+ lerp: tN,
21566
21566
  merge: gne,
21567
- pad: i5,
21567
+ pad: iN,
21568
21568
  peek: ze,
21569
21569
  pluck: vne,
21570
21570
  span: id,
21571
21571
  inrange: Ll,
21572
- truncate: o5,
21572
+ truncate: oN,
21573
21573
  rgb: vs,
21574
21574
  lab: Dp,
21575
21575
  hcl: Rp,
@@ -21580,23 +21580,23 @@ const Wf = {
21580
21580
  format: Yte,
21581
21581
  utcFormat: Xte,
21582
21582
  utcParse: Zte,
21583
- utcOffset: I5,
21584
- utcSequence: B5,
21583
+ utcOffset: IN,
21584
+ utcSequence: BN,
21585
21585
  timeFormat: PR,
21586
21586
  timeParse: Kte,
21587
- timeOffset: L5,
21588
- timeSequence: z5,
21589
- timeUnitSpecifier: k5,
21587
+ timeOffset: LN,
21588
+ timeSequence: zN,
21589
+ timeUnitSpecifier: kN,
21590
21590
  monthFormat: Jte,
21591
21591
  monthAbbrevFormat: Qte,
21592
21592
  dayFormat: ene,
21593
21593
  dayAbbrevFormat: tne,
21594
21594
  quarter: XT,
21595
21595
  utcquarter: KT,
21596
- week: $5,
21597
- utcweek: T5,
21598
- dayofyear: S5,
21599
- utcdayofyear: M5,
21596
+ week: $N,
21597
+ utcweek: TN,
21598
+ dayofyear: SN,
21599
+ utcdayofyear: MN,
21600
21600
  warn: fne,
21601
21601
  info: dne,
21602
21602
  debug: hne,
@@ -22041,7 +22041,7 @@ function Cre(e, t) {
22041
22041
  return arguments.length < 2 ? Ag(this, e).values.value : t0.call(this, e, il().remove(Fr).insert(t));
22042
22042
  }
22043
22043
  function t0(e, t) {
22044
- hN(t) || I("Second argument to changes must be a changeset.");
22044
+ h5(t) || I("Second argument to changes must be a changeset.");
22045
22045
  const n = Ag(this, e);
22046
22046
  return n.modified = !0, this.pulse(n.input, t);
22047
22047
  }
@@ -22503,7 +22503,7 @@ function a8(e, t) {
22503
22503
  const n = this;
22504
22504
  if (t = t || {}, ql.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) {
22505
22505
  const o = Se({}, e.locale, t.locale);
22506
- n.locale(rN(o.number, o.time));
22506
+ n.locale(r5(o.number, o.time));
22507
22507
  }
22508
22508
  n._el = null, n._elBind = null, n._renderType = t.renderer || is.Canvas, n._scenegraph = new t4();
22509
22509
  const r = n._scenegraph.root;
@@ -23632,7 +23632,7 @@ function $se(e, t) {
23632
23632
  return e && e.signal ? t.signalRef(e.signal) : e !== !1;
23633
23633
  }
23634
23634
  function sE(e, t) {
23635
- const n = mN(e.type);
23635
+ const n = m5(e.type);
23636
23636
  n || I("Unrecognized transform type: " + Y(e.type));
23637
23637
  const r = i0(n.type.toLowerCase(), null, L8(n, e, t));
23638
23638
  return e.signal && t.addSignal(e.signal, t.proxy(r)), r.metadata = n.metadata || {}, r;
@@ -25125,8 +25125,8 @@ const Cae = Eae, kae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
25125
25125
  array: ee,
25126
25126
  ascending: Bu,
25127
25127
  bandwidthNRD: Xv,
25128
- bin: bN,
25129
- bootstrapCI: vN,
25128
+ bin: b5,
25129
+ bootstrapCI: v5,
25130
25130
  boundClip: F4,
25131
25131
  boundContext: _d,
25132
25132
  boundItem: M_,
@@ -25140,10 +25140,10 @@ const Cae = Eae, kae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
25140
25140
  cumulativeLogNormal: tx,
25141
25141
  cumulativeNormal: hm,
25142
25142
  cumulativeUniform: ox,
25143
- dayofyear: S5,
25143
+ dayofyear: SN,
25144
25144
  debounce: Sv,
25145
25145
  defaultLocale: Bv,
25146
- definition: mN,
25146
+ definition: m5,
25147
25147
  densityLogNormal: ex,
25148
25148
  densityNormal: Kv,
25149
25149
  densityUniform: ix,
@@ -25151,7 +25151,7 @@ const Cae = Eae, kae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
25151
25151
  domClear: Er,
25152
25152
  domCreate: ns,
25153
25153
  domFind: T2,
25154
- dotbin: xN,
25154
+ dotbin: x5,
25155
25155
  error: I,
25156
25156
  expressionFunction: $t,
25157
25157
  extend: Se,
@@ -25170,8 +25170,8 @@ const Cae = Eae, kae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
25170
25170
  hasOwnProperty: ne,
25171
25171
  id: rd,
25172
25172
  identity: wn,
25173
- inferType: oN,
25174
- inferTypes: sN,
25173
+ inferType: o5,
25174
+ inferTypes: s5,
25175
25175
  ingest: Ge,
25176
25176
  inherits: X,
25177
25177
  inrange: Ll,
@@ -25187,25 +25187,25 @@ const Cae = Eae, kae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
25187
25187
  isBoolean: el,
25188
25188
  isDate: cs,
25189
25189
  isFunction: Ee,
25190
- isIterable: e5,
25190
+ isIterable: eN,
25191
25191
  isNumber: qe,
25192
25192
  isObject: J,
25193
25193
  isRegExp: $v,
25194
25194
  isString: Q,
25195
25195
  isTuple: lm,
25196
25196
  key: Av,
25197
- lerp: t5,
25197
+ lerp: tN,
25198
25198
  lineHeight: ws,
25199
25199
  loader: sm,
25200
- locale: rN,
25200
+ locale: r5,
25201
25201
  logger: Zg,
25202
- lruCache: n5,
25202
+ lruCache: nN,
25203
25203
  markup: L2,
25204
- merge: r5,
25204
+ merge: rN,
25205
25205
  mergeConfig: Pu,
25206
25206
  multiLineOffset: $2,
25207
25207
  one: Iu,
25208
- pad: i5,
25208
+ pad: iN,
25209
25209
  panLinear: HT,
25210
25210
  panLog: GT,
25211
25211
  panPow: VT,
@@ -25237,24 +25237,24 @@ const Cae = Eae, kae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
25237
25237
  randomInteger: gj,
25238
25238
  randomKDE: Jv,
25239
25239
  randomLCG: pj,
25240
- randomLogNormal: EN,
25241
- randomMixture: CN,
25240
+ randomLogNormal: E5,
25241
+ randomMixture: C5,
25242
25242
  randomNormal: Zv,
25243
- randomUniform: kN,
25244
- read: uN,
25243
+ randomUniform: k5,
25244
+ read: u5,
25245
25245
  regressionConstant: ax,
25246
- regressionExp: $N,
25246
+ regressionExp: $5,
25247
25247
  regressionLinear: lx,
25248
- regressionLoess: TN,
25249
- regressionLog: SN,
25250
- regressionPoly: MN,
25251
- regressionPow: AN,
25248
+ regressionLoess: T5,
25249
+ regressionLog: S5,
25250
+ regressionPoly: M5,
25251
+ regressionPow: A5,
25252
25252
  regressionQuad: ux,
25253
25253
  renderModule: jm,
25254
25254
  repeat: Uc,
25255
25255
  resetDefaultLocale: dU,
25256
25256
  resetSVGDefIds: sY,
25257
- responseType: lN,
25257
+ responseType: l5,
25258
25258
  runtimeContext: YR,
25259
25259
  sampleCurve: mm,
25260
25260
  sampleLogNormal: Qv,
@@ -25275,35 +25275,35 @@ const Cae = Eae, kae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
25275
25275
  splitAccessPath: Vi,
25276
25276
  stringValue: Y,
25277
25277
  textMetrics: cr,
25278
- timeBin: q5,
25279
- timeFloor: D5,
25278
+ timeBin: qN,
25279
+ timeFloor: DN,
25280
25280
  timeFormatLocale: $f,
25281
25281
  timeInterval: Hu,
25282
- timeOffset: L5,
25283
- timeSequence: z5,
25284
- timeUnitSpecifier: k5,
25282
+ timeOffset: LN,
25283
+ timeSequence: zN,
25284
+ timeUnitSpecifier: kN,
25285
25285
  timeUnits: Lv,
25286
25286
  toBoolean: Mv,
25287
25287
  toDate: Tv,
25288
25288
  toNumber: gn,
25289
25289
  toSet: ii,
25290
25290
  toString: Nv,
25291
- transform: yN,
25291
+ transform: y5,
25292
25292
  transforms: iu,
25293
- truncate: o5,
25293
+ truncate: oN,
25294
25294
  truthy: Fr,
25295
25295
  tupleid: ue,
25296
25296
  typeParsers: f_,
25297
- utcFloor: R5,
25297
+ utcFloor: RN,
25298
25298
  utcInterval: Gu,
25299
- utcOffset: I5,
25300
- utcSequence: B5,
25301
- utcdayofyear: M5,
25299
+ utcOffset: IN,
25300
+ utcSequence: BN,
25301
+ utcdayofyear: MN,
25302
25302
  utcquarter: KT,
25303
- utcweek: T5,
25303
+ utcweek: TN,
25304
25304
  version: Cae,
25305
25305
  visitArray: Xo,
25306
- week: $5,
25306
+ week: $N,
25307
25307
  writeConfig: zu,
25308
25308
  zero: es,
25309
25309
  zoomLinear: wv,
@@ -27691,7 +27691,7 @@ function Ace({ scaleName: e, fieldDef: t }) {
27691
27691
  }
27692
27692
  function YE({ channel: e, channelDef: t, channel2Def: n, markDef: r, config: i, scaleName: o, scale: s, stack: a, offset: l, defaultRef: u, bandPosition: c }) {
27693
27693
  if (t) {
27694
- if (ve(t)) {
27694
+ if (be(t)) {
27695
27695
  const f = s?.get("type");
27696
27696
  if (Pn(t)) {
27697
27697
  c ??= As({
@@ -27929,7 +27929,7 @@ function ZE(e) {
27929
27929
  return W(e, "sort");
27930
27930
  }
27931
27931
  function As({ fieldDef: e, fieldDef2: t, markDef: n, config: r }) {
27932
- if (ve(e) && e.bandPosition !== void 0)
27932
+ if (be(e) && e.bandPosition !== void 0)
27933
27933
  return e.bandPosition;
27934
27934
  if (G(e)) {
27935
27935
  const { timeUnit: i, bin: o } = e;
@@ -27970,7 +27970,7 @@ function T0(e) {
27970
27970
  }
27971
27971
  function qd(e) {
27972
27972
  const t = e?.condition;
27973
- return !!t && !B(t) && ve(t);
27973
+ return !!t && !B(t) && be(t);
27974
27974
  }
27975
27975
  function Oce(e) {
27976
27976
  const t = e?.condition;
@@ -27994,7 +27994,7 @@ function f3(e) {
27994
27994
  function Pg(e) {
27995
27995
  return oo(e) && qe(e.datum);
27996
27996
  }
27997
- function ve(e) {
27997
+ function be(e) {
27998
27998
  return G(e) || oo(e);
27999
27999
  }
28000
28000
  function Pn(e) {
@@ -28164,7 +28164,7 @@ function ui(e) {
28164
28164
  return e.condition;
28165
28165
  }
28166
28166
  function Pt(e) {
28167
- if (ve(e))
28167
+ if (be(e))
28168
28168
  return e;
28169
28169
  if (qd(e))
28170
28170
  return e.condition;
@@ -28174,7 +28174,7 @@ function d9(e, t, n, r = {}) {
28174
28174
  const i = Q(e) ? "string" : qe(e) ? "number" : "boolean";
28175
28175
  return H(jle(t, i, e)), { value: e };
28176
28176
  }
28177
- return ve(e) ? Bg(e, t, n, r) : qd(e) ? {
28177
+ return be(e) ? Bg(e, t, n, r) : qd(e) ? {
28178
28178
  ...e,
28179
28179
  // Need to cast as normalizeFieldDef normally return FieldDef, but here we know that it is definitely Condition<FieldDef>
28180
28180
  condition: Bg(e.condition, t, n, r)
@@ -29301,13 +29301,13 @@ function sfe(e, t) {
29301
29301
  if (i)
29302
29302
  throw new Error(`${t} cannot be both type aggregated-upper-lower and aggregated-error`);
29303
29303
  const a = n.x2, l = n.y2;
29304
- if (ve(a) && ve(l))
29304
+ if (be(a) && be(l))
29305
29305
  throw new Error(`${t} cannot have both x2 and y2`);
29306
- if (ve(a)) {
29306
+ if (be(a)) {
29307
29307
  if (us(o))
29308
29308
  return { orient: "horizontal", inputType: "aggregated-upper-lower" };
29309
29309
  throw new Error(`Both x and x2 have to be quantitative in ${t}`);
29310
- } else if (ve(l)) {
29310
+ } else if (be(l)) {
29311
29311
  if (us(s))
29312
29312
  return { orient: "vertical", inputType: "aggregated-upper-lower" };
29313
29313
  throw new Error(`Both y and y2 have to be quantitative in ${t}`);
@@ -29315,17 +29315,17 @@ function sfe(e, t) {
29315
29315
  throw new Error("No ranged axis");
29316
29316
  } else {
29317
29317
  const a = n.xError, l = n.xError2, u = n.yError, c = n.yError2;
29318
- if (ve(l) && !ve(a))
29318
+ if (be(l) && !be(a))
29319
29319
  throw new Error(`${t} cannot have xError2 without xError`);
29320
- if (ve(c) && !ve(u))
29320
+ if (be(c) && !be(u))
29321
29321
  throw new Error(`${t} cannot have yError2 without yError`);
29322
- if (ve(a) && ve(u))
29322
+ if (be(a) && be(u))
29323
29323
  throw new Error(`${t} cannot have both xError and yError with both are quantiative`);
29324
- if (ve(a)) {
29324
+ if (be(a)) {
29325
29325
  if (us(o))
29326
29326
  return { orient: "horizontal", inputType: "aggregated-error" };
29327
29327
  throw new Error("All x, xError, and xError2 (if exist) have to be quantitative");
29328
- } else if (ve(u)) {
29328
+ } else if (be(u)) {
29329
29329
  if (us(s))
29330
29330
  return { orient: "vertical", inputType: "aggregated-error" };
29331
29331
  throw new Error("All y, yError, and yError2 (if exist) have to be quantitative");
@@ -29334,13 +29334,13 @@ function sfe(e, t) {
29334
29334
  }
29335
29335
  }
29336
29336
  function afe(e) {
29337
- return (ve(e.x) || ve(e.y)) && !ve(e.x2) && !ve(e.y2) && !ve(e.xError) && !ve(e.xError2) && !ve(e.yError) && !ve(e.yError2);
29337
+ return (be(e.x) || be(e.y)) && !be(e.x2) && !be(e.y2) && !be(e.xError) && !be(e.xError2) && !be(e.yError) && !be(e.yError2);
29338
29338
  }
29339
29339
  function lfe(e) {
29340
- return ve(e.x2) || ve(e.y2);
29340
+ return be(e.x2) || be(e.y2);
29341
29341
  }
29342
29342
  function ufe(e) {
29343
- return ve(e.xError) || ve(e.xError2) || ve(e.yError) || ve(e.yError2);
29343
+ return be(e.xError) || be(e.xError2) || be(e.yError) || be(e.yError2);
29344
29344
  }
29345
29345
  function M9(e, t, n) {
29346
29346
  const { mark: r, encoding: i, params: o, projection: s, ...a } = e, l = Hi(r) ? r : { type: r };
@@ -30201,7 +30201,7 @@ function U9(e, t) {
30201
30201
  return g;
30202
30202
  }, []);
30203
30203
  let p;
30204
- return o.stack !== void 0 ? el(o.stack) ? p = o.stack ? "zero" : null : p = o.stack : qfe.has(r) && (p = "zero"), !p || !Ufe(p) || b9(t) && h.length === 0 ? null : (o?.scale?.type && o?.scale?.type !== tn.LINEAR && o?.stack && H(yue(o.scale.type)), ve(t[ro(i)]) ? (o.stack !== void 0 && H(mue(i)), null) : (G(o) && o.aggregate && !cle.has(o.aggregate) && H(_ue(o.aggregate)), {
30204
+ return o.stack !== void 0 ? el(o.stack) ? p = o.stack ? "zero" : null : p = o.stack : qfe.has(r) && (p = "zero"), !p || !Ufe(p) || b9(t) && h.length === 0 ? null : (o?.scale?.type && o?.scale?.type !== tn.LINEAR && o?.stack && H(yue(o.scale.type)), be(t[ro(i)]) ? (o.stack !== void 0 && H(mue(i)), null) : (G(o) && o.aggregate && !cle.has(o.aggregate) && H(_ue(o.aggregate)), {
30205
30205
  groupbyChannels: l,
30206
30206
  groupbyFields: u,
30207
30207
  fieldChannel: i,
@@ -30431,7 +30431,7 @@ function x3(e, t) {
30431
30431
  }
30432
30432
  }
30433
30433
  function w3(e, t) {
30434
- if (ve(e)) {
30434
+ if (be(e)) {
30435
30435
  const n = x3(e, t);
30436
30436
  if (n)
30437
30437
  return n;
@@ -30650,7 +30650,7 @@ function E3({ parentEncoding: e, encoding: t = {}, layer: n }) {
30650
30650
  const i = /* @__PURE__ */ new Set([...q(e), ...q(t)]);
30651
30651
  for (const o of i) {
30652
30652
  const s = t[o], a = e[o];
30653
- if (ve(s)) {
30653
+ if (be(s)) {
30654
30654
  const l = {
30655
30655
  ...a,
30656
30656
  ...s
@@ -30662,7 +30662,7 @@ function E3({ parentEncoding: e, encoding: t = {}, layer: n }) {
30662
30662
  ...a,
30663
30663
  ...s.condition
30664
30664
  }
30665
- } : s || s === null ? r[o] = s : (n || li(a) || se(a) || ve(a) || B(a)) && (r[o] = a);
30665
+ } : s || s === null ? r[o] = s : (n || li(a) || se(a) || be(a) || B(a)) && (r[o] = a);
30666
30666
  }
30667
30667
  } else
30668
30668
  r = t;
@@ -31818,7 +31818,7 @@ function mC(e, t, n = "datum") {
31818
31818
  if (e) {
31819
31819
  if (li(e))
31820
31820
  return it(e.value);
31821
- if (ve(e)) {
31821
+ if (be(e)) {
31822
31822
  const { format: r, formatType: i } = Au(e);
31823
31823
  return XE({ fieldOrDatumDef: e, format: r, formatType: i, expr: n, config: t });
31824
31824
  }
@@ -32063,7 +32063,7 @@ function Dn(e, t, { defaultPos: n, vgChannel: r }) {
32063
32063
  }
32064
32064
  function Zde(e) {
32065
32065
  const { channel: t, channelDef: n, scaleName: r, stack: i, offset: o, markDef: s } = e;
32066
- if (ve(n) && i && t === i.fieldChannel) {
32066
+ if (be(n) && i && t === i.fieldChannel) {
32067
32067
  if (G(n)) {
32068
32068
  let a = n.bandPosition;
32069
32069
  if (a === void 0 && s.type === "text" && (t === "radius" || t === "theta") && (a = 0.5), a !== void 0)
@@ -32191,7 +32191,7 @@ function ehe(e, t, n) {
32191
32191
  };
32192
32192
  }
32193
32193
  function the({ channel: e, channelDef: t, channel2Def: n, markDef: r, config: i, scaleName: o, scale: s, stack: a, offset: l, defaultRef: u }) {
32194
- return ve(t) && a && // If fieldChannel is X and channel is X2 (or Y and Y2)
32194
+ return be(t) && a && // If fieldChannel is X and channel is X2 (or Y and Y2)
32195
32195
  e.charAt(0) === a.fieldChannel.charAt(0) ? Ca(t, o, { suffix: "start" }, { offset: l }) : VE({
32196
32196
  channel: e,
32197
32197
  channelDef: n,
@@ -32225,7 +32225,7 @@ function Ro(e, t) {
32225
32225
  fieldDef2: u,
32226
32226
  channel: t,
32227
32227
  model: e
32228
- }) : (ve(l) && bt(f) || g) && !u ? rhe(l, t, e) : gL(t, e, { defaultPos: "zeroOrMax", defaultPos2: "zeroOrMin" });
32228
+ }) : (be(l) && bt(f) || g) && !u ? rhe(l, t, e) : gL(t, e, { defaultPos: "zeroOrMax", defaultPos2: "zeroOrMin" });
32229
32229
  }
32230
32230
  function nhe(e, t, n, r, i, o, s) {
32231
32231
  if (Ga(i))
@@ -35779,7 +35779,7 @@ function Qpe(e, t) {
35779
35779
  }
35780
35780
  function i7(e, t, n) {
35781
35781
  const { encoding: r } = t, i = t.getScaleComponent(n), o = bE(n), s = r[o];
35782
- if (I9({ step: e, offsetIsDiscrete: ve(s) && zE(s.type) }) === "offset" && y9(r, o)) {
35782
+ if (I9({ step: e, offsetIsDiscrete: be(s) && zE(s.type) }) === "offset" && y9(r, o)) {
35783
35783
  const l = t.getScaleComponent(o);
35784
35784
  let c = `domain('${t.scaleName(o)}').length`;
35785
35785
  if (l.get("type") === "band") {
@@ -38306,7 +38306,7 @@ class m7 extends f7 {
38306
38306
  }), this.stack = U9(this.markDef, l), this.specifiedScales = this.initScales(a, l), this.specifiedAxes = this.initAxes(l), this.specifiedLegends = this.initLegends(l), this.specifiedProjection = t.projection, this.selection = (t.params ?? []).filter((u) => lC(u)), this.alignStackOrderWithColorDomain();
38307
38307
  }
38308
38308
  get hasProjection() {
38309
- const { encoding: t } = this, n = this.mark === VO, r = t && qae.some((i) => ve(t[i]));
38309
+ const { encoding: t } = this, n = this.mark === VO, r = t && qae.some((i) => be(t[i]));
38310
38310
  return n || r;
38311
38311
  }
38312
38312
  /**
@@ -38336,8 +38336,8 @@ class m7 extends f7 {
38336
38336
  initAxes(t) {
38337
38337
  return jo.reduce((n, r) => {
38338
38338
  const i = t[r];
38339
- if (ve(i) || r === ut && ve(t.x2) || r === Zt && ve(t.y2)) {
38340
- const o = ve(i) ? i.axis : void 0;
38339
+ if (be(i) || r === ut && be(t.x2) || r === Zt && be(t.y2)) {
38340
+ const o = be(i) ? i.axis : void 0;
38341
38341
  n[r] = o && this.initAxis({ ...o });
38342
38342
  }
38343
38343
  return n;
@@ -40925,12 +40925,12 @@ const u1e = "_text_we7dz_1", c1e = "_chart_time_we7dz_30", f1e = "_quick_replies
40925
40925
  quick_reply: d1e
40926
40926
  };
40927
40927
  function h1e(e) {
40928
- const { message: t } = e, n = t.message.template, { template: r, botMessage: i } = vt(), { avatar: o } = Ft(), [s, a] = we(n?.defaultChart ?? n?.chartOptions?.[0]?.type), l = be(() => n.chartOptions, [n]), u = be(
40928
+ const { message: t } = e, n = t.message.template, { template: r, botMessage: i } = vt(), { avatar: o } = Ft(), [s, a] = we(n?.defaultChart ?? n?.chartOptions?.[0]?.type), l = xe(() => n.chartOptions, [n]), u = xe(
40929
40929
  () => n?.chartOptions?.find(
40930
40930
  (f) => f.type === s
40931
40931
  )?.spec ?? l[0].spec,
40932
40932
  [s, n.chartOptions, l]
40933
- ), c = be(
40933
+ ), c = xe(
40934
40934
  () => ({
40935
40935
  color: i?.color,
40936
40936
  backgroundColor: i?.backgroundColor
@@ -41038,7 +41038,7 @@ function A1e(e) {
41038
41038
  l.current && setTimeout(() => {
41039
41039
  l.current?.scrollIntoView({ behavior: "smooth" });
41040
41040
  }, 50);
41041
- }, v = be(() => S1e(i), [i]), x = be(() => F7(i), [i]), E = be(() => x ? $1e(x) : null, [x]), w = () => {
41041
+ }, v = xe(() => S1e(i), [i]), x = xe(() => F7(i), [i]), E = xe(() => x ? $1e(x) : null, [x]), w = () => {
41042
41042
  c(!0), !v && f.current && f.current.play();
41043
41043
  }, k = (T) => {
41044
41044
  const F = Math.floor(T / 1e3), D = Math.floor(F / 60), N = F % 60;
@@ -41075,7 +41075,7 @@ function A1e(e) {
41075
41075
  Oe(() => {
41076
41076
  v && p({ width: 16, height: 9 });
41077
41077
  }, [v]);
41078
- const A = be(() => {
41078
+ const A = xe(() => {
41079
41079
  const T = g || window.innerWidth, F = y || window.innerHeight, N = h || { width: 16, height: 9 }, { width: $, height: M } = N, R = $ / M;
41080
41080
  if ($ > M) {
41081
41081
  const O = T * 0.76, V = O / R;
@@ -41268,13 +41268,13 @@ const B1e = "_message_wrapper_1cjr0_1", U1e = "_text_bubble_1cjr0_9", j1e = "_im
41268
41268
  modal_image: K1e
41269
41269
  };
41270
41270
  function Z1e({ message: e }) {
41271
- const [t, n] = we(null), r = vt(), i = be(
41271
+ const [t, n] = we(null), r = vt(), i = xe(
41272
41272
  () => ({
41273
41273
  color: r?.userMessage?.color,
41274
41274
  backgroundColor: r?.userMessage?.backgroundColor
41275
41275
  }),
41276
41276
  [r]
41277
- ), o = be(
41277
+ ), o = xe(
41278
41278
  () => ({
41279
41279
  backgroundColor: r?.userMessage?.backgroundColor,
41280
41280
  color: r?.userMessage?.color
@@ -41631,11 +41631,11 @@ function r_e(e) {
41631
41631
  visible: !1,
41632
41632
  fileName: "",
41633
41633
  blobUrl: null
41634
- }), m = a?.size ?? s.length, y = Math.ceil(s.length / m), _ = be(() => {
41634
+ }), m = a?.size ?? s.length, y = Math.ceil(s.length / m), _ = xe(() => {
41635
41635
  if (!a) return s;
41636
41636
  const S = (d - 1) * m, A = S + m;
41637
41637
  return s.slice(S, A);
41638
- }, [s, a, d, m]), b = be(
41638
+ }, [s, a, d, m]), b = xe(
41639
41639
  () => ({
41640
41640
  color: c?.color,
41641
41641
  backgroundColor: c?.backgroundColor
@@ -41731,7 +41731,7 @@ function r_e(e) {
41731
41731
  );
41732
41732
  }
41733
41733
  function i_e(e) {
41734
- const { message: t } = e, { renderMessageContent: n } = Lu(), { avatar: r } = Ft(), i = be(() => function({ children: a }) {
41734
+ const { message: t } = e, { renderMessageContent: n } = Lu(), { avatar: r } = Ft(), i = xe(() => function({ children: a }) {
41735
41735
  return t.type === "bot" ? /* @__PURE__ */ U(yn, { type: "bot", direction: "horizontal", children: [
41736
41736
  /* @__PURE__ */ C(gr, { avatar: r }),
41737
41737
  /* @__PURE__ */ C(pr, { message: t, time: t.time, children: a })
@@ -41827,7 +41827,7 @@ function l_e() {
41827
41827
  s && u("smooth");
41828
41828
  }, [s, u]);
41829
41829
  nI({ ref: f, onResize: d });
41830
- const h = be(
41830
+ const h = xe(
41831
41831
  () => ({
41832
41832
  maxWidth: e?.contentMaxWidth ?? "1200px"
41833
41833
  }),
@@ -41902,7 +41902,7 @@ const u_e = "_chatbot_footer_1fl03_1", c_e = "_chatbot_footer__content_1fl03_4",
41902
41902
  document_preview_icon_wrapper: P_e,
41903
41903
  document_preview_icon: z_e,
41904
41904
  document_preview_name: B_e
41905
- }, U_e = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 15, height: 12, viewBox: "0 0 15 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M0.823242 11.6953V0.945312L14.3328 6.32031L0.823242 11.6953ZM1.90658 10.0911L11.3649 6.32031L1.90658 2.54948V4.98052L5.92574 6.32031L1.90658 7.6601V10.0911Z", fill: "currentColor" })), YM = (e) => /* @__PURE__ */ xe.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M18 22H4a2 2 0 0 1-2-2V6" }), /* @__PURE__ */ xe.createElement("path", { d: "m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18" }), /* @__PURE__ */ xe.createElement("circle", { cx: 12, cy: 8, r: 2 }), /* @__PURE__ */ xe.createElement("rect", { width: 16, height: 16, x: 6, y: 2, rx: 2 })), XM = (e) => /* @__PURE__ */ xe.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), /* @__PURE__ */ xe.createElement("polyline", { points: "7 10 12 15 17 10" }), /* @__PURE__ */ xe.createElement("line", { x1: 12, x2: 12, y1: 15, y2: 3 })), z7 = (e) => /* @__PURE__ */ xe.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }), /* @__PURE__ */ xe.createElement("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }), /* @__PURE__ */ xe.createElement("path", { d: "M10 9H8" }), /* @__PURE__ */ xe.createElement("path", { d: "M16 13H8" }), /* @__PURE__ */ xe.createElement("path", { d: "M16 17H8" })), j_e = (e) => /* @__PURE__ */ xe.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M5 12h14" }), /* @__PURE__ */ xe.createElement("path", { d: "M12 5v14" })), q_e = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 11, height: 16, viewBox: "0 0 11 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M5.40658 9.90397C4.82435 9.90397 4.33158 9.7023 3.92824 9.29897C3.52491 8.89564 3.32324 8.40286 3.32324 7.82064V2.82064C3.32324 2.23842 3.52491 1.74564 3.92824 1.3423C4.33158 0.938971 4.82435 0.737305 5.40658 0.737305C5.9888 0.737305 6.48158 0.938971 6.88491 1.3423C7.28824 1.74564 7.48991 2.23842 7.48991 2.82064V7.82064C7.48991 8.40286 7.28824 8.89564 6.88491 9.29897C6.48158 9.7023 5.9888 9.90397 5.40658 9.90397ZM4.86491 15.1123V12.8654C3.56213 12.7208 2.47949 12.1724 1.61699 11.2202C0.754492 10.2679 0.323242 9.13467 0.323242 7.82064H1.40658C1.40658 8.92731 1.79706 9.87064 2.57803 10.6506C3.35887 11.4306 4.30331 11.8206 5.41137 11.8206C6.51928 11.8206 7.46213 11.4306 8.23991 10.6506C9.01769 9.87064 9.40658 8.92731 9.40658 7.82064H10.4899C10.4899 9.13467 10.0587 10.2679 9.19616 11.2202C8.33366 12.1724 7.25102 12.7208 5.94824 12.8654V15.1123H4.86491ZM5.40658 8.82064C5.68991 8.82064 5.92741 8.7248 6.11908 8.53314C6.31074 8.34147 6.40658 8.10397 6.40658 7.82064V2.82064C6.40658 2.5373 6.31074 2.2998 6.11908 2.10814C5.92741 1.91647 5.68991 1.82064 5.40658 1.82064C5.12324 1.82064 4.88574 1.91647 4.69408 2.10814C4.50241 2.2998 4.40658 2.5373 4.40658 2.82064V7.82064C4.40658 8.10397 4.50241 8.34147 4.69408 8.53314C4.88574 8.7248 5.12324 8.82064 5.40658 8.82064Z", fill: "currentColor" })), W_e = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 40, height: 40, viewBox: "0 0 40 40", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("circle", { cx: 20, cy: 20, r: 18, fill: "#D04444" }), /* @__PURE__ */ xe.createElement("rect", { x: 12, y: 12, width: 16, height: 16, fill: "#FFFFFF", rx: 2, ry: 2 }));
41905
+ }, U_e = (e) => /* @__PURE__ */ ve.createElement("svg", { width: 15, height: 12, viewBox: "0 0 15 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M0.823242 11.6953V0.945312L14.3328 6.32031L0.823242 11.6953ZM1.90658 10.0911L11.3649 6.32031L1.90658 2.54948V4.98052L5.92574 6.32031L1.90658 7.6601V10.0911Z", fill: "currentColor" })), YM = (e) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M18 22H4a2 2 0 0 1-2-2V6" }), /* @__PURE__ */ ve.createElement("path", { d: "m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18" }), /* @__PURE__ */ ve.createElement("circle", { cx: 12, cy: 8, r: 2 }), /* @__PURE__ */ ve.createElement("rect", { width: 16, height: 16, x: 6, y: 2, rx: 2 })), XM = (e) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), /* @__PURE__ */ ve.createElement("polyline", { points: "7 10 12 15 17 10" }), /* @__PURE__ */ ve.createElement("line", { x1: 12, x2: 12, y1: 15, y2: 3 })), z7 = (e) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }), /* @__PURE__ */ ve.createElement("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }), /* @__PURE__ */ ve.createElement("path", { d: "M10 9H8" }), /* @__PURE__ */ ve.createElement("path", { d: "M16 13H8" }), /* @__PURE__ */ ve.createElement("path", { d: "M16 17H8" })), j_e = (e) => /* @__PURE__ */ ve.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M5 12h14" }), /* @__PURE__ */ ve.createElement("path", { d: "M12 5v14" })), q_e = (e) => /* @__PURE__ */ ve.createElement("svg", { width: 11, height: 16, viewBox: "0 0 11 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ve.createElement("path", { d: "M5.40658 9.90397C4.82435 9.90397 4.33158 9.7023 3.92824 9.29897C3.52491 8.89564 3.32324 8.40286 3.32324 7.82064V2.82064C3.32324 2.23842 3.52491 1.74564 3.92824 1.3423C4.33158 0.938971 4.82435 0.737305 5.40658 0.737305C5.9888 0.737305 6.48158 0.938971 6.88491 1.3423C7.28824 1.74564 7.48991 2.23842 7.48991 2.82064V7.82064C7.48991 8.40286 7.28824 8.89564 6.88491 9.29897C6.48158 9.7023 5.9888 9.90397 5.40658 9.90397ZM4.86491 15.1123V12.8654C3.56213 12.7208 2.47949 12.1724 1.61699 11.2202C0.754492 10.2679 0.323242 9.13467 0.323242 7.82064H1.40658C1.40658 8.92731 1.79706 9.87064 2.57803 10.6506C3.35887 11.4306 4.30331 11.8206 5.41137 11.8206C6.51928 11.8206 7.46213 11.4306 8.23991 10.6506C9.01769 9.87064 9.40658 8.92731 9.40658 7.82064H10.4899C10.4899 9.13467 10.0587 10.2679 9.19616 11.2202C8.33366 12.1724 7.25102 12.7208 5.94824 12.8654V15.1123H4.86491ZM5.40658 8.82064C5.68991 8.82064 5.92741 8.7248 6.11908 8.53314C6.31074 8.34147 6.40658 8.10397 6.40658 7.82064V2.82064C6.40658 2.5373 6.31074 2.2998 6.11908 2.10814C5.92741 1.91647 5.68991 1.82064 5.40658 1.82064C5.12324 1.82064 4.88574 1.91647 4.69408 2.10814C4.50241 2.2998 4.40658 2.5373 4.40658 2.82064V7.82064C4.40658 8.10397 4.50241 8.34147 4.69408 8.53314C4.88574 8.7248 5.12324 8.82064 5.40658 8.82064Z", fill: "currentColor" })), W_e = (e) => /* @__PURE__ */ ve.createElement("svg", { width: 40, height: 40, viewBox: "0 0 40 40", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ ve.createElement("circle", { cx: 20, cy: 20, r: 18, fill: "#D04444" }), /* @__PURE__ */ ve.createElement("rect", { x: 12, y: 12, width: 16, height: 16, fill: "#FFFFFF", rx: 2, ry: 2 }));
41906
41906
  function H_e(e) {
41907
41907
  const { setValue: t, className: n, style: r } = e, [i, o] = we(!1), s = yt(null);
41908
41908
  Oe(() => {
@@ -42108,13 +42108,13 @@ function Z_e({ footerEndActions: e } = {}) {
42108
42108
  programmaticScrollToBottom: f,
42109
42109
  pendingInputValue: d,
42110
42110
  setPendingInputValue: h
42111
- } = Ft(), { data: p } = gv(), { chatbot: g } = vt(), m = be(() => s !== void 0 ? s : p.annotations?.embedConfig?.enableUpload ?? !1, [s, p.annotations?.embedConfig?.enableUpload]), y = be(() => a !== void 0 ? a : p.annotations?.embedConfig?.enableExport ?? !1, [a, p.annotations?.embedConfig?.enableExport]), _ = be(() => l !== void 0 ? l : p.annotations?.embedConfig?.enableDocumentUpload ?? !1, [l, p.annotations?.embedConfig?.enableDocumentUpload]), b = be(() => p.annotations?.embedConfig?.title || c || "Bot", [p.annotations?.embedConfig?.title, c]), [v, x] = we(""), [E, w] = we(!1), [k, S] = we([]), [A, T] = we(null), [F, D] = we([]), [N, $] = we(!1), M = yt(null), R = yt(null), z = yt(null), O = be(
42111
+ } = Ft(), { data: p } = gv(), { chatbot: g } = vt(), m = xe(() => s !== void 0 ? s : p.annotations?.embedConfig?.enableUpload ?? !1, [s, p.annotations?.embedConfig?.enableUpload]), y = xe(() => a !== void 0 ? a : p.annotations?.embedConfig?.enableExport ?? !1, [a, p.annotations?.embedConfig?.enableExport]), _ = xe(() => l !== void 0 ? l : p.annotations?.embedConfig?.enableDocumentUpload ?? !1, [l, p.annotations?.embedConfig?.enableDocumentUpload]), b = xe(() => p.annotations?.embedConfig?.title || c || "Bot", [p.annotations?.embedConfig?.title, c]), [v, x] = we(""), [E, w] = we(!1), [k, S] = we([]), [A, T] = we(null), [F, D] = we([]), [N, $] = we(!1), M = yt(null), R = yt(null), z = yt(null), O = xe(
42112
42112
  () => k.some((Z) => Z.uploadStatus === "uploading"),
42113
42113
  [k]
42114
- ), V = be(
42114
+ ), V = xe(
42115
42115
  () => F.some((Z) => Z.uploadStatus === "uploading"),
42116
42116
  [F]
42117
- ), ae = !t, re = be(
42117
+ ), ae = !t, re = xe(
42118
42118
  () => ae || n || O || V || !v.trim() && k.length === 0 && F.length === 0,
42119
42119
  [
42120
42120
  ae,
@@ -42125,29 +42125,29 @@ function Z_e({ footerEndActions: e } = {}) {
42125
42125
  k.length,
42126
42126
  F.length
42127
42127
  ]
42128
- ), fe = be(
42128
+ ), fe = xe(
42129
42129
  () => ({
42130
42130
  maxWidth: g?.contentMaxWidth ?? "1200px"
42131
42131
  }),
42132
42132
  [g]
42133
- ), Be = be(
42133
+ ), Be = xe(
42134
42134
  () => ({
42135
42135
  ...g?.footer?.style,
42136
42136
  borderTopColor: g?.borderColor
42137
42137
  }),
42138
42138
  [g]
42139
- ), pe = be(
42139
+ ), pe = xe(
42140
42140
  () => ({
42141
42141
  backgroundColor: g?.backgroundColor,
42142
42142
  borderColor: g?.borderColor
42143
42143
  }),
42144
42144
  [g]
42145
- ), Le = be(
42145
+ ), Le = xe(
42146
42146
  () => ({
42147
42147
  color: g?.primaryComponent?.secondaryColor
42148
42148
  }),
42149
42149
  [g]
42150
- ), Jt = be(() => {
42150
+ ), Jt = xe(() => {
42151
42151
  let Z = 0;
42152
42152
  return y && Z++, m && Z++, _ && Z++, Z;
42153
42153
  }, [y, m, _]) >= 3;
@@ -42695,7 +42695,7 @@ function tbe(e) {
42695
42695
  c.removeEventListener("wheel", d), c.removeEventListener("touchstart", h), c.removeEventListener("touchmove", p);
42696
42696
  };
42697
42697
  }, []);
42698
- const u = be(() => l?.chatbot?.backgroundColor ? { backgroundColor: l.chatbot?.backgroundColor } : {}, [l]);
42698
+ const u = xe(() => l?.chatbot?.backgroundColor ? { backgroundColor: l.chatbot?.backgroundColor } : {}, [l]);
42699
42699
  return /* @__PURE__ */ C("div", { ref: s, className: Kg.full_screen, children: /* @__PURE__ */ C(
42700
42700
  "div",
42701
42701
  {
@@ -42802,7 +42802,7 @@ function ube() {
42802
42802
  /* @__PURE__ */ C("span", { className: jh.overlay__text, children: "Drop files here" })
42803
42803
  ] }) }) : null;
42804
42804
  }
42805
- const cbe = "_backdrop_153zk_1", fbe = "_modal_153zk_12", dbe = "_header_153zk_24", hbe = "_title_153zk_33", pbe = "_title_tool_153zk_41", gbe = "_close_btn_153zk_45", mbe = "_content_153zk_68", ybe = "_meta_row_153zk_76", _be = "_input_section_153zk_89", bbe = "_input_toggle_153zk_95", vbe = "_input_toggle_expanded_153zk_118", xbe = "_input_viewer_153zk_122", wbe = "_deny_reason_153zk_129", Ebe = "_actions_153zk_161", Cbe = "_action_btn_153zk_168", kbe = "_action_primary_153zk_186", Sbe = "_action_secondary_153zk_194", $be = "_action_danger_153zk_203", Abe = "_pending_indicator_153zk_212", Et = {
42805
+ const cbe = "_backdrop_1dyy6_1", fbe = "_modal_1dyy6_12", dbe = "_header_1dyy6_24", hbe = "_title_1dyy6_33", pbe = "_title_tool_1dyy6_41", gbe = "_close_btn_1dyy6_45", mbe = "_content_1dyy6_68", ybe = "_meta_row_1dyy6_76", _be = "_input_section_1dyy6_89", bbe = "_input_toggle_1dyy6_95", vbe = "_input_toggle_expanded_1dyy6_118", xbe = "_input_viewer_1dyy6_122", wbe = "_deny_reason_1dyy6_129", Ebe = "_actions_1dyy6_161", Cbe = "_action_btn_1dyy6_168", kbe = "_action_primary_1dyy6_186", Sbe = "_action_secondary_1dyy6_194", $be = "_action_danger_1dyy6_203", Abe = "_pending_indicator_1dyy6_212", Et = {
42806
42806
  backdrop: cbe,
42807
42807
  modal: fbe,
42808
42808
  header: dbe,
@@ -42827,47 +42827,42 @@ function Mbe({ className: e }) {
42827
42827
  return /* @__PURE__ */ C("svg", { className: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ C("path", { d: "M9 18l6-6-6-6" }) });
42828
42828
  }
42829
42829
  function Tbe(e) {
42830
- const { pendingCall: t, totalCount: n, currentIndex: r, onDecide: i, onDismiss: o } = e, [s, a] = we(!1), [l, u] = we(!1), [c, f] = we(""), { chatbot: d } = vt(), h = d?.primaryComponent?.mainColor ?? d?.mainColor, p = d?.primaryComponent?.secondaryColor ?? d?.secondaryColor, g = d?.inactiveColor, m = d?.backgroundColor, y = d?.borderColor, _ = be(
42830
+ const { pendingCall: t, totalCount: n, currentIndex: r, onDecide: i, onDismiss: o } = e, [s, a] = we(!1), [l, u] = we(!1), [c, f] = we(""), { chatbot: d } = vt(), h = d?.primaryComponent?.secondaryColor ?? d?.secondaryColor, p = d?.inactiveColor, g = d?.backgroundColor, m = d?.borderColor, y = xe(
42831
42831
  () => ({
42832
42832
  ...h && {
42833
42833
  "--asgard-consent-modal-accent": h,
42834
- // Darken accent ~15% on hover so the primary button keeps visual feedback
42835
42834
  "--asgard-consent-modal-accent-hover": `color-mix(in srgb, ${h} 85%, black)`
42836
42835
  },
42837
- ...m && {
42838
- "--asgard-consent-modal-bg": m,
42839
- "--asgard-consent-modal-input-bg": m
42836
+ ...g && {
42837
+ "--asgard-consent-modal-bg": g,
42838
+ "--asgard-consent-modal-input-bg": g
42840
42839
  },
42841
- ...y && { "--asgard-consent-modal-border": y },
42842
- ...p && { "--asgard-consent-modal-title": p },
42843
- ...g && { "--asgard-consent-modal-muted": g }
42840
+ ...m && { "--asgard-consent-modal-border": m },
42841
+ ...p && { "--asgard-consent-modal-muted": p }
42844
42842
  }),
42845
- [h, m, y, p, g]
42846
- ), b = be(
42847
- () => p ? { color: p } : {},
42848
- [p]
42843
+ [h, g, m, p]
42849
42844
  );
42850
42845
  Oe(() => {
42851
42846
  a(!1), u(!1), f("");
42852
42847
  }, [t.toolCallId]), Oe(() => {
42853
- const k = document.body.style.overflow;
42848
+ const E = document.body.style.overflow;
42854
42849
  return document.body.style.overflow = "hidden", () => {
42855
- document.body.style.overflow = k;
42850
+ document.body.style.overflow = E;
42856
42851
  };
42857
42852
  }, []);
42858
- const v = oe(() => i({ result: "ALLOW_ONCE" }), [i]), x = oe(() => i({ result: "ALLOW_ALWAYS" }), [i]), E = oe(() => {
42853
+ const _ = oe(() => i({ result: "ALLOW_ONCE" }), [i]), b = oe(() => i({ result: "ALLOW_ALWAYS" }), [i]), v = oe(() => {
42859
42854
  if (!l) {
42860
42855
  u(!0);
42861
42856
  return;
42862
42857
  }
42863
42858
  i({ result: "DENY_ONCE", denyReason: c.trim() });
42864
- }, [l, c, i]), w = oe(
42865
- (k) => {
42866
- k.target === k.currentTarget && o?.();
42859
+ }, [l, c, i]), x = oe(
42860
+ (E) => {
42861
+ E.target === E.currentTarget && o?.();
42867
42862
  },
42868
42863
  [o]
42869
42864
  );
42870
- return /* @__PURE__ */ C("div", { className: Et.backdrop, onClick: w, style: _, children: /* @__PURE__ */ U("div", { className: Et.modal, role: "dialog", "aria-modal": "true", children: [
42865
+ return /* @__PURE__ */ C("div", { className: Et.backdrop, onClick: x, style: y, children: /* @__PURE__ */ U("div", { className: Et.modal, role: "dialog", "aria-modal": "true", children: [
42871
42866
  /* @__PURE__ */ U("div", { className: Et.header, children: [
42872
42867
  /* @__PURE__ */ U("div", { className: Et.title, children: [
42873
42868
  "允許使用工具 ",
@@ -42897,7 +42892,7 @@ function Tbe(e) {
42897
42892
  {
42898
42893
  type: "button",
42899
42894
  className: ke(Et.input_toggle, s && Et.input_toggle_expanded),
42900
- onClick: () => a((k) => !k),
42895
+ onClick: () => a((E) => !E),
42901
42896
  children: [
42902
42897
  /* @__PURE__ */ C(Mbe, {}),
42903
42898
  /* @__PURE__ */ C("span", { children: "輸入內容" })
@@ -42913,7 +42908,7 @@ function Tbe(e) {
42913
42908
  {
42914
42909
  id: "asgard-consent-deny-reason",
42915
42910
  value: c,
42916
- onChange: (k) => f(k.target.value),
42911
+ onChange: (E) => f(E.target.value),
42917
42912
  placeholder: "告訴 AI 你為什麼拒絕此次工具呼叫。"
42918
42913
  }
42919
42914
  )
@@ -42926,18 +42921,9 @@ function Tbe(e) {
42926
42921
  " 個待處理工具呼叫"
42927
42922
  ] }),
42928
42923
  /* @__PURE__ */ U("div", { className: Et.actions, children: [
42929
- /* @__PURE__ */ C(
42930
- "button",
42931
- {
42932
- type: "button",
42933
- className: ke(Et.action_btn, Et.action_primary),
42934
- style: b,
42935
- onClick: x,
42936
- children: "本次對話皆允許"
42937
- }
42938
- ),
42939
- /* @__PURE__ */ C("button", { type: "button", className: ke(Et.action_btn, Et.action_secondary), onClick: v, children: "僅此次允許" }),
42940
- /* @__PURE__ */ C("button", { type: "button", className: ke(Et.action_btn, Et.action_danger), onClick: E, children: l ? "送出拒絕" : "拒絕" })
42924
+ /* @__PURE__ */ C("button", { type: "button", className: ke(Et.action_btn, Et.action_primary), onClick: b, children: "本次對話皆允許" }),
42925
+ /* @__PURE__ */ C("button", { type: "button", className: ke(Et.action_btn, Et.action_secondary), onClick: _, children: "僅此次允許" }),
42926
+ /* @__PURE__ */ C("button", { type: "button", className: ke(Et.action_btn, Et.action_danger), onClick: v, children: l ? "送出拒絕" : "拒絕" })
42941
42927
  ] })
42942
42928
  ] }) });
42943
42929
  }