@indxsearch/systm 2.23.0 → 2.24.0

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.es.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import e, { cloneElement as t, createContext as n, isValidElement as r, useCallback as i, useContext as a, useEffect as o, useId as s, useImperativeHandle as c, useLayoutEffect as l, useMemo as u, useRef as d, useState as f, useSyncExternalStore as p } from "react";
2
2
  import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
3
- import { Ai_agent as _, ArrowDown as v, ArrowUp as y, Check as b, Chevron_down as x, Chevron_left as S, Chevron_right as C, Copy as w, Dropdown as T, Indent_left as E, Indent_right as D, Marquee as O, Minus as k, Plus as A, Search as j, Stop as M, Warning as N, X_or_error as P } from "@indxsearch/pixl";
4
- import { Range as F } from "react-range";
5
- import * as I from "@radix-ui/react-select";
6
- import * as L from "@radix-ui/react-popover";
7
- import * as R from "@radix-ui/react-tooltip";
8
- import * as z from "@radix-ui/react-dialog";
3
+ import { Ai_agent as _, ArrowDown as v, ArrowUp as y, Check as b, Chevron_down as x, Chevron_left as S, Chevron_right as C, Copy as w, Dropdown as T, Indent_left as E, Indent_right as D, Marquee as O, Maximize as k, Minus as A, Plus as j, Search as M, Stop as N, Warning as P, X_or_error as F } from "@indxsearch/pixl";
4
+ import { Range as I } from "react-range";
5
+ import * as L from "@radix-ui/react-select";
6
+ import * as R from "@radix-ui/react-popover";
7
+ import * as z from "@radix-ui/react-tooltip";
8
+ import * as B from "@radix-ui/react-dialog";
9
9
  import * as ee from "@radix-ui/react-navigation-menu";
10
- var te = {
10
+ var V = {
11
11
  button: "_button_1efyz_1",
12
12
  micro: "_micro_1efyz_35",
13
13
  default: "_default_1efyz_43",
@@ -15,10 +15,10 @@ var te = {
15
15
  primary: "_primary_1efyz_60",
16
16
  secondary: "_secondary_1efyz_69",
17
17
  ghost: "_ghost_1efyz_79"
18
- }, B = {
18
+ }, te = {
19
19
  spinner: "_spinner_wspyi_1",
20
20
  frame: "_frame_wspyi_8"
21
- }, ne = {
21
+ }, H = {
22
22
  accelerate: {
23
23
  viewBox: "0 0 7 5",
24
24
  delay: 50,
@@ -339,12 +339,12 @@ var te = {
339
339
  "M3 4H4V5H3V4Z M5 3H6V4H5V3Z M6 1H7V2H6V1Z M1 3H2V4H1V3Z M0 1H1V2H0V1Z M2 2H5V3H2V2Z M1 0H6V1H1V0Z"
340
340
  ]
341
341
  }
342
- }, V = Object.keys(ne);
342
+ }, U = Object.keys(H);
343
343
  // src/components/Spinner/Spinner.tsx
344
- function H({ name: e = V[0], size: t = 21, color: n = "currentColor", delay: r, className: i = "", "aria-label": a = "Loading" }) {
345
- let o = ne[e], [, , s, c] = o.viewBox.split(" ").map(Number), l = c / s, u = typeof t == "number" ? t * l : `calc(${t} * ${l})`, d = r ?? o.delay, f = o.frames.length, p = f * d;
344
+ function ne({ name: e = U[0], size: t = 21, color: n = "currentColor", delay: r, className: i = "", "aria-label": a = "Loading" }) {
345
+ let o = H[e], [, , s, c] = o.viewBox.split(" ").map(Number), l = c / s, u = typeof t == "number" ? t * l : `calc(${t} * ${l})`, d = r ?? o.delay, f = o.frames.length, p = f * d;
346
346
  return /* @__PURE__ */ h("svg", {
347
- className: `${B.spinner} ${i}`,
347
+ className: `${te.spinner} ${i}`,
348
348
  width: t,
349
349
  height: u,
350
350
  viewBox: o.viewBox,
@@ -353,7 +353,7 @@ function H({ name: e = V[0], size: t = 21, color: n = "currentColor", delay: r,
353
353
  "aria-label": a,
354
354
  xmlns: "http://www.w3.org/2000/svg",
355
355
  children: o.frames.map((e, t) => e ? /* @__PURE__ */ h("path", {
356
- className: B.frame,
356
+ className: te.frame,
357
357
  d: e,
358
358
  fill: n,
359
359
  style: {
@@ -364,15 +364,15 @@ function H({ name: e = V[0], size: t = 21, color: n = "currentColor", delay: r,
364
364
  });
365
365
  }
366
366
  // src/components/Button/Button.tsx
367
- function U(t) {
367
+ function W(t) {
368
368
  let { size: n = "default", variant: r = "primary", iconLeft: i, iconRight: a, className: o, children: s, loading: c = !1, ...l } = t, u = t.disabled || c, { href: d } = l, f = n === "micro" ? "14px" : n === "large" ? "21px" : "14px", p = n === "large" ? 21 : 14, _ = [
369
- te.button,
370
- te[n],
371
- te[r],
369
+ V.button,
370
+ V[n],
371
+ V[r],
372
372
  u ? "cursor-not-allowed" : "cursor-pointer",
373
373
  o
374
374
  ].filter(Boolean).join(" "), v = /* @__PURE__ */ g(m, { children: [
375
- c ? /* @__PURE__ */ h(H, { size: p }) : i && e.cloneElement(i, {
375
+ c ? /* @__PURE__ */ h(ne, { size: p }) : i && e.cloneElement(i, {
376
376
  size: f,
377
377
  color: "currentColor"
378
378
  }),
@@ -498,7 +498,7 @@ function de({ title: t, children: n, className: r = "", collapsible: i = !0, col
498
498
  children: t
499
499
  }), /* @__PURE__ */ h("span", {
500
500
  "aria-hidden": "true",
501
- children: h(s ? k : A, {
501
+ children: h(s ? A : j, {
502
502
  color: "var(--lv5)",
503
503
  size: 14
504
504
  })
@@ -540,7 +540,7 @@ function me({ label: t, error: n, className: r = "", showSearchIcon: i = !0, sea
540
540
  }, D = () => {
541
541
  let e = b.current;
542
542
  e && (Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set?.call(e, ""), e.dispatchEvent(new Event("input", { bubbles: !0 })), e.focus());
543
- }, O = d(null), [k, A] = f(0), M = e.Children.toArray(p).length > 0 || T;
543
+ }, O = d(null), [k, A] = f(0), j = e.Children.toArray(p).length > 0 || T;
544
544
  l(() => {
545
545
  let e = O.current;
546
546
  if (!e) {
@@ -551,10 +551,10 @@ function me({ label: t, error: n, className: r = "", showSearchIcon: i = !0, sea
551
551
  t();
552
552
  let n = new ResizeObserver(t);
553
553
  return n.observe(e), () => n.disconnect();
554
- }, [M]);
554
+ }, [j]);
555
555
  let N = e.useId(), P = m || N, F = `${P}-error`, I = pe[s], L = {};
556
556
  o && (L["--search-icon-color"] = o), k > 0 && (L.paddingRight = `${k + 10}px`);
557
- let R = a ?? /* @__PURE__ */ h(j, {}), z = s === "micro" ? fe.sizeMicro : fe.sizeDefault;
557
+ let R = a ?? /* @__PURE__ */ h(M, {}), z = s === "micro" ? fe.sizeMicro : fe.sizeDefault;
558
558
  return /* @__PURE__ */ g("div", {
559
559
  className: `${fe.wrapper} ${r}`,
560
560
  children: [
@@ -585,10 +585,10 @@ function me({ label: t, error: n, className: r = "", showSearchIcon: i = !0, sea
585
585
  ...y,
586
586
  onChange: E
587
587
  }),
588
- M && /* @__PURE__ */ g("div", {
588
+ j && /* @__PURE__ */ g("div", {
589
589
  ref: O,
590
590
  className: fe.rightContent,
591
- children: [p, T && /* @__PURE__ */ h(U, {
591
+ children: [p, T && /* @__PURE__ */ h(W, {
592
592
  variant: "ghost",
593
593
  size: "micro",
594
594
  onClick: D,
@@ -705,7 +705,7 @@ var _e = {
705
705
  })
706
706
  ]
707
707
  });
708
- }, W = {
708
+ }, G = {
709
709
  label: "_label_1o3ls_1",
710
710
  basetrack: "_basetrack_1o3ls_8",
711
711
  selectedtrack: "_selectedtrack_1o3ls_36",
@@ -724,18 +724,18 @@ var _e = {
724
724
  if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ g("div", {
725
725
  className: o,
726
726
  children: [m && /* @__PURE__ */ h("span", {
727
- className: W.label,
727
+ className: G.label,
728
728
  children: m
729
729
  }), /* @__PURE__ */ h("div", {
730
- className: `${W.basetrack} ${W.disabled}`,
730
+ className: `${G.basetrack} ${G.disabled}`,
731
731
  "aria-hidden": "true"
732
732
  })]
733
733
  });
734
- let x = i > 0 ? Math.round((r - n) / i) : 0, S = !!d && x > 0 && x <= xe, C = S && d === "below" ? `${W.basetrack} ${W.basetrackStepsBelow}` : W.basetrack, w = S ? /* @__PURE__ */ h("div", {
735
- className: `${W.stepmarks} ${d === "below" ? W.stepmarksBelow : W.stepmarksInline}`,
734
+ let x = i > 0 ? Math.round((r - n) / i) : 0, S = !!d && x > 0 && x <= xe, C = S && d === "below" ? `${G.basetrack} ${G.basetrackStepsBelow}` : G.basetrack, w = S ? /* @__PURE__ */ h("div", {
735
+ className: `${G.stepmarks} ${d === "below" ? G.stepmarksBelow : G.stepmarksInline}`,
736
736
  "aria-hidden": "true",
737
737
  children: Array.from({ length: x + 1 }, (e, t) => /* @__PURE__ */ h("span", {
738
- className: W.stepmark,
738
+ className: G.stepmark,
739
739
  style: { left: `${Math.min(t * i, r - n) / (r - n) * 100}%` }
740
740
  }, t))
741
741
  }) : null;
@@ -745,9 +745,9 @@ var _e = {
745
745
  className: o,
746
746
  children: [m && /* @__PURE__ */ h("label", {
747
747
  htmlFor: b,
748
- className: W.label,
748
+ className: G.label,
749
749
  children: m
750
- }), /* @__PURE__ */ h(F, {
750
+ }), /* @__PURE__ */ h(I, {
751
751
  step: i,
752
752
  min: n,
753
753
  max: r,
@@ -763,7 +763,7 @@ var _e = {
763
763
  style: { ...a.style },
764
764
  children: [
765
765
  !v && /* @__PURE__ */ h("div", {
766
- className: W.selectedtrack,
766
+ className: G.selectedtrack,
767
767
  style: {
768
768
  left: `${f}%`,
769
769
  width: `${p}%`,
@@ -771,7 +771,7 @@ var _e = {
771
771
  }
772
772
  }),
773
773
  v && /* @__PURE__ */ h("div", {
774
- className: `${W.livetrack} ${l ? W.livetrackFaceted : W.livetrackDefault}`,
774
+ className: `${G.livetrack} ${l ? G.livetrackFaceted : G.livetrackDefault}`,
775
775
  style: {
776
776
  left: `${m}%`,
777
777
  width: `${_}%`,
@@ -788,7 +788,7 @@ var _e = {
788
788
  return /* @__PURE__ */ h("div", {
789
789
  ...o,
790
790
  id: t === 0 ? b : void 0,
791
- className: `${W.thumbs} ${a ? W.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
791
+ className: `${G.thumbs} ${a ? G.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
792
792
  style: {
793
793
  ...o.style,
794
794
  zIndex: "3"
@@ -808,9 +808,9 @@ var _e = {
808
808
  className: o,
809
809
  children: [m && /* @__PURE__ */ h("label", {
810
810
  htmlFor: b,
811
- className: W.label,
811
+ className: G.label,
812
812
  children: m
813
- }), /* @__PURE__ */ h(F, {
813
+ }), /* @__PURE__ */ h(I, {
814
814
  step: i,
815
815
  min: n,
816
816
  max: r,
@@ -826,7 +826,7 @@ var _e = {
826
826
  style: { ...o.style },
827
827
  children: [
828
828
  !m && /* @__PURE__ */ h("div", {
829
- className: W.selectedtrack,
829
+ className: G.selectedtrack,
830
830
  style: {
831
831
  left: "0%",
832
832
  width: `${d}%`,
@@ -834,7 +834,7 @@ var _e = {
834
834
  }
835
835
  }),
836
836
  m && /* @__PURE__ */ h("div", {
837
- className: `${W.livetrack} ${l ? W.livetrackFaceted : W.livetrackDefault}`,
837
+ className: `${G.livetrack} ${l ? G.livetrackFaceted : G.livetrackDefault}`,
838
838
  style: {
839
839
  left: `${f}%`,
840
840
  width: `${p}%`,
@@ -851,7 +851,7 @@ var _e = {
851
851
  return /* @__PURE__ */ h("div", {
852
852
  ...o,
853
853
  id: b,
854
- className: `${W.thumbs} ${a ? W.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
854
+ className: `${G.thumbs} ${a ? G.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
855
855
  style: {
856
856
  ...o.style,
857
857
  zIndex: "3"
@@ -895,7 +895,7 @@ var _e = {
895
895
  })
896
896
  });
897
897
  let w = n - t, T = Math.min(n, Math.max(t, i)), E = (T - t) / w * 100, D = r > 0 ? Math.round(w / r) : 0, O = u && D > 0 && D <= we, k = `max(${Ee}px, calc(${E}% - ${Te}px))`;
898
- return /* @__PURE__ */ h(F, {
898
+ return /* @__PURE__ */ h(I, {
899
899
  step: r,
900
900
  min: t,
901
901
  max: n,
@@ -1127,11 +1127,11 @@ var _e = {
1127
1127
  item: "_item_y1e72_113",
1128
1128
  itemIndicator: "_itemIndicator_y1e72_136"
1129
1129
  }, Me = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", variant: l = "default", "aria-label": u, id: d }) => {
1130
- let f = ae(), p = e.useId(), m = d || p, _ = `${m}-label`, v = r.find((e) => e.value === t), y = /* @__PURE__ */ g(I.Root, {
1130
+ let f = ae(), p = e.useId(), m = d || p, _ = `${m}-label`, v = r.find((e) => e.value === t), y = /* @__PURE__ */ g(L.Root, {
1131
1131
  value: t,
1132
1132
  onValueChange: n,
1133
1133
  disabled: o,
1134
- children: [/* @__PURE__ */ g(I.Trigger, {
1134
+ children: [/* @__PURE__ */ g(L.Trigger, {
1135
1135
  id: m,
1136
1136
  className: `${je.trigger} ${je[c]} ${l === "ghost" ? je.ghost : ""} ${a} cursor-pointer`,
1137
1137
  ...s ? { "aria-labelledby": _ } : u ? { "aria-label": u } : {},
@@ -1147,9 +1147,9 @@ var _e = {
1147
1147
  className: je.sizerHidden,
1148
1148
  "aria-hidden": "true",
1149
1149
  children: e.label
1150
- }, e.value)), /* @__PURE__ */ h("span", { children: /* @__PURE__ */ h(I.Value, { placeholder: i }) })]
1151
- }) : /* @__PURE__ */ h(I.Value, { placeholder: i })]
1152
- }), /* @__PURE__ */ h(I.Icon, {
1150
+ }, e.value)), /* @__PURE__ */ h("span", { children: /* @__PURE__ */ h(L.Value, { placeholder: i }) })]
1151
+ }) : /* @__PURE__ */ h(L.Value, { placeholder: i })]
1152
+ }), /* @__PURE__ */ h(L.Icon, {
1153
1153
  className: je.icon,
1154
1154
  "aria-hidden": "true",
1155
1155
  children: /* @__PURE__ */ h(x, {
@@ -1157,17 +1157,17 @@ var _e = {
1157
1157
  color: "currentColor"
1158
1158
  })
1159
1159
  })]
1160
- }), /* @__PURE__ */ h(I.Portal, {
1160
+ }), /* @__PURE__ */ h(L.Portal, {
1161
1161
  container: f,
1162
- children: /* @__PURE__ */ h(I.Content, {
1162
+ children: /* @__PURE__ */ h(L.Content, {
1163
1163
  className: je.content,
1164
1164
  position: "popper",
1165
1165
  side: "bottom",
1166
1166
  align: "start",
1167
1167
  sideOffset: 4,
1168
- children: /* @__PURE__ */ h(I.Viewport, {
1168
+ children: /* @__PURE__ */ h(L.Viewport, {
1169
1169
  className: je.viewport,
1170
- children: r.map((e) => /* @__PURE__ */ g(I.Item, {
1170
+ children: r.map((e) => /* @__PURE__ */ g(L.Item, {
1171
1171
  value: e.value,
1172
1172
  className: je.item,
1173
1173
  children: [/* @__PURE__ */ g("span", {
@@ -1176,8 +1176,8 @@ var _e = {
1176
1176
  alignItems: "center",
1177
1177
  gap: 6
1178
1178
  },
1179
- children: [e.icon, /* @__PURE__ */ h(I.ItemText, { children: e.label })]
1180
- }), /* @__PURE__ */ h(I.ItemIndicator, {
1179
+ children: [e.icon, /* @__PURE__ */ h(L.ItemText, { children: e.label })]
1180
+ }), /* @__PURE__ */ h(L.ItemIndicator, {
1181
1181
  className: je.itemIndicator,
1182
1182
  children: /* @__PURE__ */ h(b, {
1183
1183
  size: 14,
@@ -1218,16 +1218,16 @@ function Pe(e) {
1218
1218
  }
1219
1219
  var Fe = ({ trigger: t, children: n, open: r, onOpenChange: i, align: a = "end", side: o = "bottom", sideOffset: s = 5, role: c = "dialog", className: l = "", "aria-label": u, "aria-describedby": d }) => {
1220
1220
  let f = ae(), p = e.useRef(null);
1221
- return /* @__PURE__ */ g(L.Root, {
1221
+ return /* @__PURE__ */ g(R.Root, {
1222
1222
  open: r,
1223
1223
  onOpenChange: i,
1224
- children: [/* @__PURE__ */ h(L.Trigger, {
1224
+ children: [/* @__PURE__ */ h(R.Trigger, {
1225
1225
  asChild: !0,
1226
1226
  "aria-haspopup": c,
1227
1227
  children: t
1228
- }), /* @__PURE__ */ h(L.Portal, {
1228
+ }), /* @__PURE__ */ h(R.Portal, {
1229
1229
  container: f,
1230
- children: /* @__PURE__ */ h(L.Content, {
1230
+ children: /* @__PURE__ */ h(R.Content, {
1231
1231
  ref: p,
1232
1232
  className: `${Ne.content} ${c === "menu" ? Ne.menu : ""} ${l}`,
1233
1233
  align: a,
@@ -1545,7 +1545,7 @@ function Ye({ items: e, value: t, onChange: n, size: r = "micro", stretch: i = !
1545
1545
  })
1546
1546
  });
1547
1547
  }
1548
- var G = {
1548
+ var K = {
1549
1549
  root: "_root_wrjxq_1",
1550
1550
  micro: "_micro_wrjxq_2",
1551
1551
  default: "_default_wrjxq_3",
@@ -1577,103 +1577,103 @@ var Ze = "\0action", Qe = ({ items: e, size: t = "default", overflow: n = "wrap"
1577
1577
  let s = ae();
1578
1578
  return /* @__PURE__ */ h("nav", {
1579
1579
  "aria-label": o,
1580
- className: `${G.root} ${G[t]} ${n === "truncate" ? G.truncate : ""} ${r}`,
1580
+ className: `${K.root} ${K[t]} ${n === "truncate" ? K.truncate : ""} ${r}`,
1581
1581
  children: /* @__PURE__ */ h("ol", {
1582
- className: G.list,
1582
+ className: K.list,
1583
1583
  children: e.map((t, r) => /* @__PURE__ */ g("li", {
1584
- className: G.item,
1584
+ className: K.item,
1585
1585
  children: [r > 0 && /* @__PURE__ */ h("span", {
1586
- className: G.separator,
1586
+ className: K.separator,
1587
1587
  "aria-hidden": "true",
1588
1588
  children: i
1589
1589
  }), /* @__PURE__ */ g("div", {
1590
- className: `${G.step} ${t.switcher ? G.switchable : ""}`,
1590
+ className: `${K.step} ${t.switcher ? K.switchable : ""}`,
1591
1591
  children: [t.href ? (() => {
1592
1592
  let i = {
1593
- className: G.label,
1593
+ className: K.label,
1594
1594
  href: t.href,
1595
1595
  title: n === "truncate" ? t.label : void 0,
1596
1596
  onClick: t.onClick,
1597
1597
  "aria-current": r === e.length - 1 ? "page" : void 0,
1598
1598
  children: /* @__PURE__ */ g(m, { children: [t.icon && /* @__PURE__ */ h("span", {
1599
- className: G.icon,
1599
+ className: K.icon,
1600
1600
  "aria-hidden": "true",
1601
1601
  children: Xe(t.icon)
1602
1602
  }), /* @__PURE__ */ h("span", {
1603
- className: G.text,
1603
+ className: K.text,
1604
1604
  children: t.label
1605
1605
  })] })
1606
1606
  };
1607
1607
  return a ? a(t, i) : /* @__PURE__ */ h("a", { ...i });
1608
1608
  })() : /* @__PURE__ */ g("span", {
1609
- className: G.label,
1609
+ className: K.label,
1610
1610
  title: n === "truncate" ? t.label : void 0,
1611
1611
  "aria-current": r === e.length - 1 ? "page" : void 0,
1612
1612
  children: [t.icon && /* @__PURE__ */ h("span", {
1613
- className: G.icon,
1613
+ className: K.icon,
1614
1614
  "aria-hidden": "true",
1615
1615
  children: Xe(t.icon)
1616
1616
  }), /* @__PURE__ */ h("span", {
1617
- className: G.text,
1617
+ className: K.text,
1618
1618
  children: t.label
1619
1619
  })]
1620
- }), t.switcher && /* @__PURE__ */ g(I.Root, {
1620
+ }), t.switcher && /* @__PURE__ */ g(L.Root, {
1621
1621
  value: t.switcher.value,
1622
1622
  onValueChange: (e) => e === Ze ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1623
1623
  disabled: t.switcher.disabled || t.switcher.options.length === 0 && !t.switcher.action,
1624
- children: [/* @__PURE__ */ h(I.Trigger, {
1625
- className: G.trigger,
1624
+ children: [/* @__PURE__ */ h(L.Trigger, {
1625
+ className: K.trigger,
1626
1626
  "aria-label": `${t.switcher.label}: ${t.label}`,
1627
- children: /* @__PURE__ */ h(I.Icon, {
1627
+ children: /* @__PURE__ */ h(L.Icon, {
1628
1628
  "aria-hidden": "true",
1629
- className: G.icon,
1629
+ className: K.icon,
1630
1630
  children: /* @__PURE__ */ h(T, {
1631
1631
  size: 14,
1632
1632
  color: "currentColor"
1633
1633
  })
1634
1634
  })
1635
- }), /* @__PURE__ */ h(I.Portal, {
1635
+ }), /* @__PURE__ */ h(L.Portal, {
1636
1636
  container: s,
1637
- children: /* @__PURE__ */ h(I.Content, {
1638
- className: `${je.content} ${G.menu}`,
1637
+ children: /* @__PURE__ */ h(L.Content, {
1638
+ className: `${je.content} ${K.menu}`,
1639
1639
  position: "popper",
1640
1640
  align: "end",
1641
1641
  sideOffset: 4,
1642
1642
  collisionPadding: 8,
1643
- children: /* @__PURE__ */ g(I.Viewport, {
1643
+ children: /* @__PURE__ */ g(L.Viewport, {
1644
1644
  className: je.viewport,
1645
- children: [t.switcher.options.map((e) => /* @__PURE__ */ g(I.Item, {
1645
+ children: [t.switcher.options.map((e) => /* @__PURE__ */ g(L.Item, {
1646
1646
  value: e.value,
1647
1647
  className: je.item,
1648
1648
  textValue: e.label,
1649
1649
  children: [/* @__PURE__ */ g("span", {
1650
- className: G.option,
1650
+ className: K.option,
1651
1651
  children: [e.icon && /* @__PURE__ */ h("span", {
1652
- className: G.icon,
1652
+ className: K.icon,
1653
1653
  "aria-hidden": "true",
1654
1654
  children: e.icon
1655
- }), /* @__PURE__ */ h(I.ItemText, { children: e.label })]
1656
- }), /* @__PURE__ */ h(I.ItemIndicator, {
1655
+ }), /* @__PURE__ */ h(L.ItemText, { children: e.label })]
1656
+ }), /* @__PURE__ */ h(L.ItemIndicator, {
1657
1657
  className: je.itemIndicator,
1658
1658
  children: /* @__PURE__ */ h(b, {
1659
1659
  size: 14,
1660
1660
  color: "currentColor"
1661
1661
  })
1662
1662
  })]
1663
- }, e.value)), t.switcher.action && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(I.Separator, { className: G.menuDivider }), /* @__PURE__ */ h(I.Item, {
1663
+ }, e.value)), t.switcher.action && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(L.Separator, { className: K.menuDivider }), /* @__PURE__ */ h(L.Item, {
1664
1664
  value: Ze,
1665
1665
  className: je.item,
1666
1666
  textValue: t.switcher.action.label,
1667
1667
  children: /* @__PURE__ */ g("span", {
1668
- className: G.option,
1668
+ className: K.option,
1669
1669
  children: [/* @__PURE__ */ h("span", {
1670
- className: G.icon,
1670
+ className: K.icon,
1671
1671
  "aria-hidden": "true",
1672
- children: /* @__PURE__ */ h(A, {
1672
+ children: /* @__PURE__ */ h(j, {
1673
1673
  size: 14,
1674
1674
  color: "currentColor"
1675
1675
  })
1676
- }), /* @__PURE__ */ h(I.ItemText, { children: t.switcher.action.label })]
1676
+ }), /* @__PURE__ */ h(L.ItemText, { children: t.switcher.action.label })]
1677
1677
  })
1678
1678
  })] })]
1679
1679
  })
@@ -1715,7 +1715,7 @@ function et({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r
1715
1715
  })]
1716
1716
  });
1717
1717
  }
1718
- var K = {
1718
+ var q = {
1719
1719
  meter: "_meter_1ywpg_1",
1720
1720
  label: "_label_1ywpg_8",
1721
1721
  bars: "_bars_1ywpg_16",
@@ -1765,36 +1765,36 @@ function lt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
1765
1765
  };
1766
1766
  });
1767
1767
  return /* @__PURE__ */ g("div", {
1768
- className: `${K.meter} ${K.segmented} ${d}`,
1768
+ className: `${q.meter} ${q.segmented} ${d}`,
1769
1769
  role: "img",
1770
1770
  "aria-label": typeof e == "string" ? e : void 0,
1771
1771
  children: [
1772
1772
  e != null && /* @__PURE__ */ h("span", {
1773
- className: K.label,
1773
+ className: q.label,
1774
1774
  children: e
1775
1775
  }),
1776
1776
  /* @__PURE__ */ g("div", {
1777
- className: `${K.shares} ${i === "legend" ? K.sharesLegend : ""}`,
1777
+ className: `${q.shares} ${i === "legend" ? q.sharesLegend : ""}`,
1778
1778
  children: [
1779
1779
  i === "heads" && s.map(({ g: e, i: t, from: r, to: i, share: a }) => (a >= at || t === s.length - 1) && /* @__PURE__ */ g("div", {
1780
- className: `${K.head} ${t === s.length - 1 ? K.headLast : ""}`,
1780
+ className: `${q.head} ${t === s.length - 1 ? q.headLast : ""}`,
1781
1781
  style: {
1782
1782
  "--seg-from": `${r * 100}%`,
1783
1783
  "--seg-to": `${i * 100}%`
1784
1784
  },
1785
1785
  children: [/* @__PURE__ */ h("span", {
1786
- className: K.headName,
1786
+ className: q.headName,
1787
1787
  children: e.label
1788
1788
  }), /* @__PURE__ */ h("span", {
1789
- className: K.headShare,
1789
+ className: q.headShare,
1790
1790
  children: n(e)
1791
1791
  })]
1792
1792
  }, t)),
1793
1793
  /* @__PURE__ */ h("div", {
1794
- className: K.bars,
1794
+ className: q.bars,
1795
1795
  "aria-hidden": "true",
1796
1796
  children: s.map(({ i: e, from: t, to: n, color: r }) => /* @__PURE__ */ h("div", {
1797
- className: `${K.fill} ${K.segment}`,
1797
+ className: `${q.fill} ${q.segment}`,
1798
1798
  style: {
1799
1799
  "--seg-from": `${t * 100}%`,
1800
1800
  "--seg-to": `${n * 100}%`,
@@ -1803,26 +1803,26 @@ function lt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
1803
1803
  }, e))
1804
1804
  }),
1805
1805
  s.slice(1).map(({ i: e, from: t }) => /* @__PURE__ */ h("span", {
1806
- className: K.divider,
1806
+ className: q.divider,
1807
1807
  style: { "--seg-from": `${t * 100}%` }
1808
1808
  }, `d${e}`))
1809
1809
  ]
1810
1810
  }),
1811
1811
  i === "legend" && /* @__PURE__ */ h("ul", {
1812
- className: K.legend,
1812
+ className: q.legend,
1813
1813
  children: s.map(({ g: e, i: t, color: r }) => /* @__PURE__ */ g("li", {
1814
- className: K.legendItem,
1814
+ className: q.legendItem,
1815
1815
  children: [
1816
1816
  /* @__PURE__ */ h("span", {
1817
- className: K.swatch,
1817
+ className: q.swatch,
1818
1818
  style: { background: r }
1819
1819
  }),
1820
1820
  /* @__PURE__ */ h("span", {
1821
- className: K.legendName,
1821
+ className: q.legendName,
1822
1822
  children: e.label
1823
1823
  }),
1824
1824
  /* @__PURE__ */ h("span", {
1825
- className: K.legendShare,
1825
+ className: q.legendShare,
1826
1826
  children: n(e)
1827
1827
  })
1828
1828
  ]
@@ -1832,7 +1832,7 @@ function lt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
1832
1832
  });
1833
1833
  }
1834
1834
  return l === "ring" ? /* @__PURE__ */ g("div", {
1835
- className: `${K.meter} ${K.ring} ${d}`,
1835
+ className: `${q.meter} ${q.ring} ${d}`,
1836
1836
  role: "meter",
1837
1837
  "aria-valuenow": t,
1838
1838
  "aria-valuemin": 0,
@@ -1842,48 +1842,48 @@ function lt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
1842
1842
  color: p
1843
1843
  },
1844
1844
  children: [/* @__PURE__ */ g("div", {
1845
- className: K.dial,
1845
+ className: q.dial,
1846
1846
  children: [/* @__PURE__ */ h(ut, {
1847
1847
  fraction: f,
1848
1848
  size: u,
1849
1849
  zones: c
1850
1850
  }), /* @__PURE__ */ g("div", {
1851
- className: K.centre,
1851
+ className: q.centre,
1852
1852
  "aria-hidden": "true",
1853
1853
  children: [/* @__PURE__ */ h("span", {
1854
- className: K.value,
1854
+ className: q.value,
1855
1855
  children: _(t)
1856
1856
  }), u >= st && /* @__PURE__ */ h("span", {
1857
- className: K.max,
1857
+ className: q.max,
1858
1858
  children: v
1859
1859
  })]
1860
1860
  })]
1861
1861
  }), e != null && /* @__PURE__ */ h("span", {
1862
- className: K.label,
1862
+ className: q.label,
1863
1863
  children: e
1864
1864
  })]
1865
1865
  }) : /* @__PURE__ */ g("div", {
1866
- className: `${K.meter} ${d}`,
1866
+ className: `${q.meter} ${d}`,
1867
1867
  role: "meter",
1868
1868
  "aria-valuenow": t,
1869
1869
  "aria-valuemin": 0,
1870
1870
  "aria-valuemax": n,
1871
1871
  children: [
1872
1872
  e != null && /* @__PURE__ */ h("span", {
1873
- className: K.label,
1873
+ className: q.label,
1874
1874
  children: e
1875
1875
  }),
1876
1876
  /* @__PURE__ */ g("div", {
1877
- className: K.bars,
1877
+ className: q.bars,
1878
1878
  "aria-hidden": "true",
1879
1879
  children: [c?.filter((e) => e.from > 0).map((e, t) => /* @__PURE__ */ h("div", {
1880
- className: `${K.fill} ${K.zoneMark}`,
1880
+ className: `${q.fill} ${q.zoneMark}`,
1881
1881
  style: {
1882
1882
  "--zone-from": `${e.from * 100}%`,
1883
1883
  color: e.color
1884
1884
  }
1885
1885
  }, t)), /* @__PURE__ */ h("div", {
1886
- className: K.fill,
1886
+ className: q.fill,
1887
1887
  style: {
1888
1888
  "--meter-fill": `${f * 100}%`,
1889
1889
  color: p
@@ -1891,13 +1891,13 @@ function lt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
1891
1891
  })]
1892
1892
  }),
1893
1893
  /* @__PURE__ */ g("div", {
1894
- className: K.foot,
1894
+ className: q.foot,
1895
1895
  "aria-hidden": "true",
1896
1896
  children: [/* @__PURE__ */ h("span", {
1897
- className: K.value,
1897
+ className: q.value,
1898
1898
  children: _(t)
1899
1899
  }), /* @__PURE__ */ h("span", {
1900
- className: K.max,
1900
+ className: q.max,
1901
1901
  children: v
1902
1902
  })]
1903
1903
  })
@@ -1909,7 +1909,7 @@ function ut({ fraction: e, size: t, zones: n }) {
1909
1909
  for (let e = 0; e < o; e++) {
1910
1910
  let t = (-90 + 360 * e / o) * (Math.PI / 180), a = Math.cos(t), l = Math.sin(t), u = nt(n, e, o);
1911
1911
  c.push(/* @__PURE__ */ h("line", {
1912
- className: u ? K.zoneBar : e < s ? K.lit : K.dim,
1912
+ className: u ? q.zoneBar : e < s ? q.lit : q.dim,
1913
1913
  style: u ? { stroke: u.color } : void 0,
1914
1914
  x1: r + i * a,
1915
1915
  y1: r + i * l,
@@ -1918,7 +1918,7 @@ function ut({ fraction: e, size: t, zones: n }) {
1918
1918
  }, e));
1919
1919
  }
1920
1920
  return /* @__PURE__ */ h("svg", {
1921
- className: K.svg,
1921
+ className: q.svg,
1922
1922
  viewBox: `0 0 ${t} ${t}`,
1923
1923
  width: t,
1924
1924
  height: t,
@@ -2188,7 +2188,7 @@ function xt(e, t, n) {
2188
2188
  }))
2189
2189
  };
2190
2190
  }
2191
- var q = {
2191
+ var J = {
2192
2192
  wrapper: "_wrapper_16ve1_1",
2193
2193
  radial: "_radial_16ve1_7",
2194
2194
  svg: "_svg_16ve1_13",
@@ -2225,10 +2225,10 @@ function Ct({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding:
2225
2225
  label: "",
2226
2226
  values: e ?? [],
2227
2227
  color: u
2228
- }], E = Math.max(...T.map((e) => e.values.length), 0), D = (e, t) => T[e].values[t], O = l ?? T.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), k = 2 * Math.PI / Math.max(1, E), A = T.length, j = (e, t = 0) => -Math.PI / 2 + k * (e + (A > 1 ? (t + .5) / A - .5 : 0)), M = (e, t, n = 0) => [x + t * Math.cos(j(e, n)), x + t * Math.sin(j(e, n))], N = (e) => O > 0 && Number.isFinite(e) ? Math.max(0, e) / O * C : 0, P = c ? x : S, F = (e) => c ? x - e : S + e, I = Math.max(.5, Math.min(2, 2 * Math.PI * S / Math.max(1, E * A) * .55)), L = (e) => T[e].color ?? St, R = Math.min(a, C * .12), z = i / 2 + R, ee = (e, t) => {
2228
+ }], E = Math.max(...T.map((e) => e.values.length), 0), D = (e, t) => T[e].values[t], O = l ?? T.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), k = 2 * Math.PI / Math.max(1, E), A = T.length, j = (e, t = 0) => -Math.PI / 2 + k * (e + (A > 1 ? (t + .5) / A - .5 : 0)), M = (e, t, n = 0) => [x + t * Math.cos(j(e, n)), x + t * Math.sin(j(e, n))], N = (e) => O > 0 && Number.isFinite(e) ? Math.max(0, e) / O * C : 0, P = c ? x : S, F = (e) => c ? x - e : S + e, I = Math.max(.5, Math.min(2, 2 * Math.PI * S / Math.max(1, E * A) * .55)), L = (e) => T[e].color ?? St, R = Math.min(a, C * .12), z = i / 2 + R, B = (e, t) => {
2229
2229
  let n = S + z, r = Math.max(n + .5, t - z), i = j(e), a = Math.max(.01, k / 2 - z / n), o = Math.max(.01, k / 2 - z / r), s = (e, t) => `${(x + e * Math.cos(t)).toFixed(2)} ${(x + e * Math.sin(t)).toFixed(2)}`, c = +(2 * o > Math.PI);
2230
2230
  return `M ${s(n, i - a)} L ${s(r, i - o)} A ${r.toFixed(2)} ${r.toFixed(2)} 0 ${c} 1 ${s(r, i + o)} L ${s(n, i + a)} A ${n.toFixed(2)} ${n.toFixed(2)} 0 ${c} 0 ${s(n, i - a)} Z`;
2231
- }, te = (e) => {
2231
+ }, ee = (e) => {
2232
2232
  if (E === 0 || !d) return;
2233
2233
  let t = e.currentTarget.getBoundingClientRect(), n = (e.clientX - t.left) / t.width * o - x, r = (e.clientY - t.top) / t.height * o - x, i = Math.hypot(n, r);
2234
2234
  if (i < S || i > x) {
@@ -2237,31 +2237,31 @@ function Ct({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding:
2237
2237
  }
2238
2238
  let a = (Math.atan2(r, n) + Math.PI / 2 + 2 * Math.PI) % (2 * Math.PI) / (2 * Math.PI);
2239
2239
  b(w ? Math.floor(a * E) % E : Math.round(a * E) % E);
2240
- }, B = [], ne = [];
2240
+ }, V = [], te = [];
2241
2241
  for (let e = 0; e < E; e++) {
2242
2242
  if (w) {
2243
2243
  let t = r[e], n = N(t.value);
2244
- if (ne.push(/* @__PURE__ */ h("path", {
2245
- className: q.wedgeTrack,
2244
+ if (te.push(/* @__PURE__ */ h("path", {
2245
+ className: J.wedgeTrack,
2246
2246
  style: { strokeWidth: R * 2 },
2247
- d: ee(e, x)
2247
+ d: B(e, x)
2248
2248
  }, `t${e}`)), n > 0) {
2249
2249
  let r = t.color ?? u ?? St;
2250
- ne.push(/* @__PURE__ */ h("path", {
2251
- className: `${q.wedge} ${y === e ? q.wedgeHovered : ""}`,
2250
+ te.push(/* @__PURE__ */ h("path", {
2251
+ className: `${J.wedge} ${y === e ? J.wedgeHovered : ""}`,
2252
2252
  style: {
2253
2253
  fill: r,
2254
2254
  stroke: r,
2255
2255
  strokeWidth: R * 2
2256
2256
  },
2257
- d: ee(e, S + n)
2257
+ d: B(e, S + n)
2258
2258
  }, `w${e}`));
2259
2259
  }
2260
2260
  continue;
2261
2261
  }
2262
2262
  let [t, n] = M(e, S), [i, a] = M(e, x);
2263
- B.push(/* @__PURE__ */ h("line", {
2264
- className: q.guide,
2263
+ V.push(/* @__PURE__ */ h("line", {
2264
+ className: J.guide,
2265
2265
  x1: t,
2266
2266
  y1: n,
2267
2267
  x2: i,
@@ -2271,8 +2271,8 @@ function Ct({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding:
2271
2271
  let n = N(D(t, e));
2272
2272
  if (n <= 0) continue;
2273
2273
  let [r, i] = M(e, P, t), [a, o] = M(e, F(n), t), s = y === e;
2274
- ne.push(/* @__PURE__ */ h("line", {
2275
- className: `${q.bar} ${s ? q.hovered : ""}`,
2274
+ te.push(/* @__PURE__ */ h("line", {
2275
+ className: `${J.bar} ${s ? J.hovered : ""}`,
2276
2276
  style: { stroke: L(t) },
2277
2277
  x1: r,
2278
2278
  y1: i,
@@ -2281,26 +2281,26 @@ function Ct({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding:
2281
2281
  }, `b${t}-${e}`));
2282
2282
  }
2283
2283
  }
2284
- let V = w && r.length <= 12 && o >= 200 ? r.map((e, t) => {
2284
+ let H = w && r.length <= 12 && o >= 200 ? r.map((e, t) => {
2285
2285
  let n = N(e.value), r = n >= C * .5, [i, a] = M(t, r ? S + n * .62 : S + n + (C - n) * .55);
2286
2286
  return /* @__PURE__ */ g("text", {
2287
- className: `${q.sectorText} ${r ? q.sectorTextOnLit : ""}`,
2287
+ className: `${J.sectorText} ${r ? J.sectorTextOnLit : ""}`,
2288
2288
  x: i,
2289
2289
  y: a,
2290
2290
  textAnchor: "middle",
2291
2291
  children: [/* @__PURE__ */ h("tspan", {
2292
- className: q.sectorValue,
2292
+ className: J.sectorValue,
2293
2293
  x: i,
2294
2294
  dy: "-0.2em",
2295
2295
  children: d ? d(e.value, t) : e.value
2296
2296
  }), /* @__PURE__ */ h("tspan", {
2297
- className: q.sectorName,
2297
+ className: J.sectorName,
2298
2298
  x: i,
2299
2299
  dy: "1.3em",
2300
2300
  children: e.label
2301
2301
  })]
2302
2302
  }, `l${t}`);
2303
- }) : null, H = y != null && d ? (() => {
2303
+ }) : null, U = y != null && d ? (() => {
2304
2304
  let e = w ? [{
2305
2305
  name: r[y].label,
2306
2306
  color: L(0),
@@ -2311,36 +2311,36 @@ function Ct({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding:
2311
2311
  text: d(e.values[y] ?? 0, y)
2312
2312
  })), t = Math.max(...T.map((e, t) => N(D(t, y))), C * .15), [i, a] = M(y, c && !w ? x - t - 6 : S + t + 6);
2313
2313
  return /* @__PURE__ */ g("div", {
2314
- className: `${q.tooltip} ${i > x ? q.tooltipLeft : ""}`,
2314
+ className: `${J.tooltip} ${i > x ? J.tooltipLeft : ""}`,
2315
2315
  style: {
2316
2316
  left: i,
2317
2317
  top: a
2318
2318
  },
2319
2319
  children: [!w && /* @__PURE__ */ h("span", {
2320
- className: q.tooltipLabel,
2320
+ className: J.tooltipLabel,
2321
2321
  children: n?.[y] ?? String(y + 1)
2322
2322
  }), e.map((e, t) => /* @__PURE__ */ g("span", {
2323
- className: q.tooltipRow,
2323
+ className: J.tooltipRow,
2324
2324
  children: [
2325
2325
  A > 1 && /* @__PURE__ */ h("span", {
2326
- className: q.tooltipDot,
2326
+ className: J.tooltipDot,
2327
2327
  style: { background: e.color }
2328
2328
  }),
2329
2329
  (A > 1 || w) && /* @__PURE__ */ h("span", {
2330
- className: q.tooltipName,
2330
+ className: J.tooltipName,
2331
2331
  children: e.name
2332
2332
  }),
2333
2333
  /* @__PURE__ */ h("span", {
2334
- className: q.tooltipValue,
2334
+ className: J.tooltipValue,
2335
2335
  children: e.text
2336
2336
  })
2337
2337
  ]
2338
2338
  }, t))]
2339
2339
  });
2340
- })() : null, U = !w && E > 0 ? (() => {
2340
+ })() : null, ne = !w && E > 0 ? (() => {
2341
2341
  let [e, t] = M(0, S), [n, r] = M(0, x);
2342
2342
  return /* @__PURE__ */ h("line", {
2343
- className: q.start,
2343
+ className: J.start,
2344
2344
  x1: e,
2345
2345
  y1: t,
2346
2346
  x2: n,
@@ -2348,55 +2348,55 @@ function Ct({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding:
2348
2348
  });
2349
2349
  })() : null;
2350
2350
  return /* @__PURE__ */ g("div", {
2351
- className: `${q.wrapper} ${v}`,
2351
+ className: `${J.wrapper} ${v}`,
2352
2352
  children: [/* @__PURE__ */ g("div", {
2353
- className: q.radial,
2353
+ className: J.radial,
2354
2354
  style: { "--radial-size": `${o}px` },
2355
2355
  onPointerLeave: () => b(null),
2356
2356
  children: [
2357
2357
  /* @__PURE__ */ g("svg", {
2358
- className: q.svg,
2358
+ className: J.svg,
2359
2359
  style: { "--radial-bar": `${I}px` },
2360
2360
  viewBox: `0 0 ${o} ${o}`,
2361
2361
  width: o,
2362
2362
  height: o,
2363
2363
  role: "img",
2364
2364
  "aria-label": _,
2365
- onPointerMove: te,
2366
- onPointerDown: te,
2365
+ onPointerMove: ee,
2366
+ onPointerDown: ee,
2367
2367
  children: [
2368
- B,
2369
- U,
2368
+ V,
2370
2369
  ne,
2371
- V
2370
+ te,
2371
+ H
2372
2372
  ]
2373
2373
  }),
2374
2374
  p != null && /* @__PURE__ */ h("div", {
2375
- className: q.centre,
2375
+ className: J.centre,
2376
2376
  style: {
2377
2377
  width: S * 2,
2378
2378
  height: S * 2
2379
2379
  },
2380
2380
  children: p
2381
2381
  }),
2382
- H
2382
+ U
2383
2383
  ]
2384
2384
  }), m && !w && A > 1 && /* @__PURE__ */ h("div", {
2385
- className: q.legend,
2385
+ className: J.legend,
2386
2386
  children: T.map((e, t) => /* @__PURE__ */ g("span", {
2387
- className: q.legendItem,
2387
+ className: J.legendItem,
2388
2388
  children: [/* @__PURE__ */ h("span", {
2389
- className: q.legendMark,
2389
+ className: J.legendMark,
2390
2390
  style: { background: L(t) }
2391
2391
  }), /* @__PURE__ */ h("span", {
2392
- className: q.legendLabel,
2392
+ className: J.legendLabel,
2393
2393
  children: e.label
2394
2394
  })]
2395
2395
  }, t))
2396
2396
  })]
2397
2397
  });
2398
2398
  }
2399
- var J = {
2399
+ var Y = {
2400
2400
  wrapper: "_wrapper_1gzqh_1",
2401
2401
  radar: "_radar_1gzqh_7",
2402
2402
  svg: "_svg_1gzqh_13",
@@ -2480,16 +2480,16 @@ function kt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
2480
2480
  return Array.from({ length: m }, (e, t) => E(t, n).map((e) => e.toFixed(2)).join(",")).join(" ");
2481
2481
  }), M = t.filter((e) => e.fill && e.fill in Ot);
2482
2482
  return /* @__PURE__ */ g("div", {
2483
- className: `${J.wrapper} ${l}`,
2483
+ className: `${Y.wrapper} ${l}`,
2484
2484
  children: [/* @__PURE__ */ g("div", {
2485
- className: J.radar,
2485
+ className: Y.radar,
2486
2486
  style: {
2487
2487
  "--radar-width": `${y}px`,
2488
2488
  "--radar-height": `${b}px`
2489
2489
  },
2490
2490
  onPointerLeave: () => p(null),
2491
2491
  children: [/* @__PURE__ */ g("svg", {
2492
- className: J.svg,
2492
+ className: Y.svg,
2493
2493
  viewBox: `0 0 ${y} ${b}`,
2494
2494
  width: y,
2495
2495
  height: b,
@@ -2512,13 +2512,13 @@ function kt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
2512
2512
  }, a))
2513
2513
  }, t) : null) }),
2514
2514
  j.map((e, t) => /* @__PURE__ */ h("polygon", {
2515
- className: t === i - 1 ? J.rim : J.ring,
2515
+ className: t === i - 1 ? Y.rim : Y.ring,
2516
2516
  points: e
2517
2517
  }, `r${t}`)),
2518
2518
  e.map((e, t) => {
2519
2519
  let [n, r] = E(t, _);
2520
2520
  return /* @__PURE__ */ h("line", {
2521
- className: `${J.axis} ${d === t ? J.axisHovered : ""}`,
2521
+ className: `${Y.axis} ${d === t ? Y.axisHovered : ""}`,
2522
2522
  x1: x,
2523
2523
  y1: S,
2524
2524
  x2: n,
@@ -2556,7 +2556,7 @@ function kt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
2556
2556
  e.map((e, t) => {
2557
2557
  let [n, r] = E(t, _ + 10), i = Math.cos(T(t)), a = Math.abs(i) < .2 ? "middle" : i > 0 ? "start" : "end", o = Math.sin(T(t)) > .5 ? "0.9em" : Math.sin(T(t)) < -.5 ? "-0.2em" : "0.35em";
2558
2558
  return /* @__PURE__ */ h("text", {
2559
- className: `${J.label} ${d === t ? J.labelHovered : ""}`,
2559
+ className: `${Y.label} ${d === t ? Y.labelHovered : ""}`,
2560
2560
  x: n,
2561
2561
  y: r,
2562
2562
  dy: o,
@@ -2568,27 +2568,27 @@ function kt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
2568
2568
  }), d != null && (() => {
2569
2569
  let [n, r] = E(d, _ + 10), i = n > x;
2570
2570
  return /* @__PURE__ */ g("div", {
2571
- className: `${J.tooltip} ${i ? J.tooltipLeft : ""}`,
2571
+ className: `${Y.tooltip} ${i ? Y.tooltipLeft : ""}`,
2572
2572
  style: {
2573
2573
  left: n,
2574
2574
  top: r
2575
2575
  },
2576
2576
  children: [/* @__PURE__ */ h("span", {
2577
- className: J.tooltipLabel,
2577
+ className: Y.tooltipLabel,
2578
2578
  children: e[d].label
2579
2579
  }), t.map((e, n) => /* @__PURE__ */ g("span", {
2580
- className: J.tooltipRow,
2580
+ className: Y.tooltipRow,
2581
2581
  children: [
2582
2582
  t.length > 1 && /* @__PURE__ */ h("span", {
2583
- className: J.tooltipDot,
2583
+ className: Y.tooltipDot,
2584
2584
  style: { background: O(e) }
2585
2585
  }),
2586
2586
  t.length > 1 && /* @__PURE__ */ h("span", {
2587
- className: J.tooltipName,
2587
+ className: Y.tooltipName,
2588
2588
  children: e.label
2589
2589
  }),
2590
2590
  /* @__PURE__ */ h("span", {
2591
- className: J.tooltipValue,
2591
+ className: Y.tooltipValue,
2592
2592
  children: k(d, e.values[d] ?? 0)
2593
2593
  })
2594
2594
  ]
@@ -2596,14 +2596,14 @@ function kt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
2596
2596
  });
2597
2597
  })()]
2598
2598
  }), o && t.length > 1 && /* @__PURE__ */ h("div", {
2599
- className: J.legend,
2599
+ className: Y.legend,
2600
2600
  children: t.map((e, t) => /* @__PURE__ */ g("span", {
2601
- className: J.legendItem,
2601
+ className: Y.legendItem,
2602
2602
  children: [/* @__PURE__ */ h("span", {
2603
- className: J.legendMark,
2603
+ className: Y.legendMark,
2604
2604
  style: { background: O(e) }
2605
2605
  }), /* @__PURE__ */ h("span", {
2606
- className: J.legendLabel,
2606
+ className: Y.legendLabel,
2607
2607
  children: e.label
2608
2608
  })]
2609
2609
  }, t))
@@ -2807,7 +2807,7 @@ function zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, on
2807
2807
  children: [
2808
2808
  /* @__PURE__ */ h("span", {
2809
2809
  className: Rt.icon,
2810
- children: /* @__PURE__ */ h(j, {
2810
+ children: /* @__PURE__ */ h(M, {
2811
2811
  size: 14,
2812
2812
  color: "currentColor"
2813
2813
  })
@@ -2931,7 +2931,7 @@ function Vt({ value: e, onChange: t, label: n, placeholder: r, hint: i, separato
2931
2931
  onClick: (e) => {
2932
2932
  e.stopPropagation(), C(t);
2933
2933
  },
2934
- children: /* @__PURE__ */ h(P, {
2934
+ children: /* @__PURE__ */ h(F, {
2935
2935
  size: 7,
2936
2936
  color: "currentColor"
2937
2937
  })
@@ -3002,7 +3002,7 @@ function Xt({ t: e }) {
3002
3002
  children: [
3003
3003
  e.kind === "error" ? /* @__PURE__ */ h("span", {
3004
3004
  className: Ht.icon,
3005
- children: /* @__PURE__ */ h(N, {
3005
+ children: /* @__PURE__ */ h(P, {
3006
3006
  size: 14,
3007
3007
  color: "currentColor"
3008
3008
  })
@@ -3014,7 +3014,7 @@ function Xt({ t: e }) {
3014
3014
  className: Ht.message,
3015
3015
  children: e.message
3016
3016
  }),
3017
- e.action && /* @__PURE__ */ h(U, {
3017
+ e.action && /* @__PURE__ */ h(W, {
3018
3018
  variant: "ghost",
3019
3019
  size: "micro",
3020
3020
  onClick: () => {
@@ -3028,7 +3028,7 @@ function Xt({ t: e }) {
3028
3028
  "aria-label": "Dismiss",
3029
3029
  title: "Dismiss",
3030
3030
  onClick: () => Jt.dismiss(e.id),
3031
- children: /* @__PURE__ */ h(P, {
3031
+ children: /* @__PURE__ */ h(F, {
3032
3032
  size: 7,
3033
3033
  color: "currentColor"
3034
3034
  })
@@ -3052,23 +3052,23 @@ var Qt = {
3052
3052
  // src/components/Tooltip/Tooltip.tsx
3053
3053
  function $t({ content: e, position: t = "top", children: n, className: r }) {
3054
3054
  let i = ae();
3055
- return /* @__PURE__ */ h(R.Provider, {
3055
+ return /* @__PURE__ */ h(z.Provider, {
3056
3056
  delayDuration: 80,
3057
- children: /* @__PURE__ */ g(R.Root, { children: [/* @__PURE__ */ h(R.Trigger, {
3057
+ children: /* @__PURE__ */ g(z.Root, { children: [/* @__PURE__ */ h(z.Trigger, {
3058
3058
  asChild: !0,
3059
3059
  children: n
3060
- }), /* @__PURE__ */ h(R.Portal, {
3060
+ }), /* @__PURE__ */ h(z.Portal, {
3061
3061
  container: i,
3062
- children: /* @__PURE__ */ g(R.Content, {
3062
+ children: /* @__PURE__ */ g(z.Content, {
3063
3063
  side: t,
3064
3064
  sideOffset: 7,
3065
3065
  className: [Qt.tooltip, r].filter(Boolean).join(" "),
3066
- children: [e, /* @__PURE__ */ h(R.Arrow, { className: Qt.arrow })]
3066
+ children: [e, /* @__PURE__ */ h(z.Arrow, { className: Qt.arrow })]
3067
3067
  })
3068
3068
  })] })
3069
3069
  });
3070
3070
  }
3071
- var Y = {
3071
+ var X = {
3072
3072
  sidebar: "_sidebar_3tton_3",
3073
3073
  header: "_header_3tton_13",
3074
3074
  body: "_body_3tton_14",
@@ -3137,42 +3137,42 @@ function on({ groups: t, active: n, onSelect: r, header: a, footer: s, collapsed
3137
3137
  j,
3138
3138
  R
3139
3139
  ]), o(() => {
3140
- y && j && M.current && (M.current.querySelector("[aria-current=\"page\"]") ?? M.current.querySelector(`.${Y.body} a, .${Y.body} button`))?.focus();
3140
+ y && j && M.current && (M.current.querySelector("[aria-current=\"page\"]") ?? M.current.querySelector(`.${X.body} a, .${X.body} button`))?.focus();
3141
3141
  }, [y, j]);
3142
3142
  let z = (e) => {
3143
3143
  r?.(e), R();
3144
- }, ee = (e) => A((t) => {
3144
+ }, B = (e) => A((t) => {
3145
3145
  let n = new Set(t);
3146
3146
  return n.delete(e) || n.add(e), n;
3147
- }), te = (t) => /* @__PURE__ */ g(m, { children: [
3147
+ }), ee = (t) => /* @__PURE__ */ g(m, { children: [
3148
3148
  /* @__PURE__ */ h("span", {
3149
- className: Y.label,
3149
+ className: X.label,
3150
3150
  children: t.label
3151
3151
  }),
3152
3152
  t.badge && /* @__PURE__ */ h("span", {
3153
- className: `${Y.badge} ${t.signal ? Y.badgeSignal : ""}`,
3153
+ className: `${X.badge} ${t.signal ? X.badgeSignal : ""}`,
3154
3154
  title: t.badgeTitle,
3155
3155
  children: t.badge
3156
3156
  }),
3157
3157
  t.trailing && /* @__PURE__ */ h("span", {
3158
- className: Y.trailing,
3158
+ className: X.trailing,
3159
3159
  title: t.trailingTitle,
3160
3160
  children: e.cloneElement(t.trailing, {
3161
3161
  size: 14,
3162
3162
  color: "currentColor"
3163
3163
  })
3164
3164
  })
3165
- ] }), B = (e) => {
3165
+ ] }), V = (e) => {
3166
3166
  let t = e.key === n;
3167
- return e.disabled ? /* @__PURE__ */ h(U, {
3167
+ return e.disabled ? /* @__PURE__ */ h(W, {
3168
3168
  variant: "ghost",
3169
3169
  size: "micro",
3170
3170
  iconLeft: e.icon,
3171
3171
  "aria-disabled": "true",
3172
3172
  title: e.title,
3173
3173
  onClick: (e) => e.preventDefault(),
3174
- children: te(e)
3175
- }) : e.href ? /* @__PURE__ */ h(U, {
3174
+ children: ee(e)
3175
+ }) : e.href ? /* @__PURE__ */ h(W, {
3176
3176
  variant: t ? "primary" : "ghost",
3177
3177
  size: "micro",
3178
3178
  iconLeft: e.icon,
@@ -3180,50 +3180,50 @@ function on({ groups: t, active: n, onSelect: r, header: a, footer: s, collapsed
3180
3180
  "aria-current": t ? "page" : void 0,
3181
3181
  href: e.href,
3182
3182
  onClick: () => z(e),
3183
- children: te(e)
3184
- }) : /* @__PURE__ */ h(U, {
3183
+ children: ee(e)
3184
+ }) : /* @__PURE__ */ h(W, {
3185
3185
  variant: t ? "primary" : "ghost",
3186
3186
  size: "micro",
3187
3187
  iconLeft: e.icon,
3188
3188
  title: e.title,
3189
3189
  "aria-current": t ? "page" : void 0,
3190
3190
  onClick: () => z(e),
3191
- children: te(e)
3191
+ children: ee(e)
3192
3192
  });
3193
- }, ne = [
3194
- Y.sidebar,
3195
- P ? Y.rail : "",
3196
- y ? Y.open : "",
3193
+ }, te = [
3194
+ X.sidebar,
3195
+ P ? X.rail : "",
3196
+ y ? X.open : "",
3197
3197
  w
3198
3198
  ].filter(Boolean).join(" ");
3199
3199
  return /* @__PURE__ */ g(m, { children: [y && j && /* @__PURE__ */ h("div", {
3200
- className: Y.overlay,
3200
+ className: X.overlay,
3201
3201
  onClick: R
3202
3202
  }), /* @__PURE__ */ g("nav", {
3203
3203
  ref: M,
3204
- className: ne,
3204
+ className: te,
3205
3205
  "aria-label": S,
3206
3206
  children: [
3207
3207
  a && /* @__PURE__ */ h("div", {
3208
- className: Y.header,
3208
+ className: X.header,
3209
3209
  children: a
3210
3210
  }),
3211
3211
  /* @__PURE__ */ h("div", {
3212
- className: Y.body,
3212
+ className: X.body,
3213
3213
  children: t.map((e, t) => {
3214
3214
  let n = !!(e.collapsible && e.title && k.has(e.title));
3215
3215
  return /* @__PURE__ */ g("div", {
3216
- className: Y.group,
3216
+ className: X.group,
3217
3217
  children: [e.title && (e.collapsible ? /* @__PURE__ */ g("button", {
3218
3218
  type: "button",
3219
- className: `${Y.title} ${Y.titleToggle}`,
3219
+ className: `${X.title} ${X.titleToggle}`,
3220
3220
  "aria-expanded": !n,
3221
- onClick: () => ee(e.title),
3221
+ onClick: () => B(e.title),
3222
3222
  children: [/* @__PURE__ */ h("span", {
3223
- className: Y.titleText,
3223
+ className: X.titleText,
3224
3224
  children: e.title
3225
3225
  }), /* @__PURE__ */ h("span", {
3226
- className: Y.titleChevron,
3226
+ className: X.titleChevron,
3227
3227
  "aria-hidden": "true",
3228
3228
  children: h(n ? C : x, {
3229
3229
  size: 14,
@@ -3231,36 +3231,36 @@ function on({ groups: t, active: n, onSelect: r, header: a, footer: s, collapsed
3231
3231
  })
3232
3232
  })]
3233
3233
  }) : /* @__PURE__ */ h("div", {
3234
- className: Y.title,
3234
+ className: X.title,
3235
3235
  children: /* @__PURE__ */ h("span", {
3236
- className: Y.titleText,
3236
+ className: X.titleText,
3237
3237
  children: e.title
3238
3238
  })
3239
3239
  })), (!n || P) && /* @__PURE__ */ h("div", {
3240
- className: Y.items,
3240
+ className: X.items,
3241
3241
  children: e.items.map((e) => /* @__PURE__ */ h("span", {
3242
- className: Y.item,
3242
+ className: X.item,
3243
3243
  children: P ? /* @__PURE__ */ h($t, {
3244
3244
  content: e.badge ? `${e.label} (${e.badge})` : e.label,
3245
3245
  position: "right",
3246
- children: B(e)
3247
- }) : B(e)
3246
+ children: V(e)
3247
+ }) : V(e)
3248
3248
  }, e.key))
3249
3249
  })]
3250
3250
  }, e.title ?? t);
3251
3251
  })
3252
3252
  }),
3253
3253
  (s || p && !j) && /* @__PURE__ */ g("div", {
3254
- className: Y.footer,
3254
+ className: X.footer,
3255
3255
  children: [s && /* @__PURE__ */ h("div", {
3256
- className: Y.footerContent,
3256
+ className: X.footerContent,
3257
3257
  children: s
3258
3258
  }), p && !j && /* @__PURE__ */ h("span", {
3259
- className: Y.item,
3259
+ className: X.item,
3260
3260
  children: P ? /* @__PURE__ */ h($t, {
3261
3261
  content: `Expand${I ? ` (${I})` : ""}`,
3262
3262
  position: "right",
3263
- children: /* @__PURE__ */ h(U, {
3263
+ children: /* @__PURE__ */ h(W, {
3264
3264
  variant: "ghost",
3265
3265
  size: "micro",
3266
3266
  iconLeft: /* @__PURE__ */ h(D, {}),
@@ -3268,7 +3268,7 @@ function on({ groups: t, active: n, onSelect: r, header: a, footer: s, collapsed
3268
3268
  "aria-label": "Expand",
3269
3269
  onClick: L
3270
3270
  })
3271
- }) : /* @__PURE__ */ h(U, {
3271
+ }) : /* @__PURE__ */ h(W, {
3272
3272
  variant: "ghost",
3273
3273
  size: "micro",
3274
3274
  iconLeft: /* @__PURE__ */ h(E, {}),
@@ -3276,7 +3276,7 @@ function on({ groups: t, active: n, onSelect: r, header: a, footer: s, collapsed
3276
3276
  title: I ? `Collapse (${I})` : "Collapse",
3277
3277
  onClick: L,
3278
3278
  children: /* @__PURE__ */ h("span", {
3279
- className: Y.label,
3279
+ className: X.label,
3280
3280
  children: "Collapse"
3281
3281
  })
3282
3282
  })
@@ -3285,7 +3285,7 @@ function on({ groups: t, active: n, onSelect: r, header: a, footer: s, collapsed
3285
3285
  ]
3286
3286
  })] });
3287
3287
  }
3288
- var X = {
3288
+ var sn = {
3289
3289
  wrapper: "_wrapper_1ogxf_2",
3290
3290
  label: "_label_1ogxf_3",
3291
3291
  field: "_field_1ogxf_4",
@@ -3310,21 +3310,21 @@ var X = {
3310
3310
  empty: "_empty_1ogxf_56"
3311
3311
  };
3312
3312
  // src/components/Combobox/Combobox.tsx
3313
- function sn(e, t) {
3313
+ function cn(e, t) {
3314
3314
  let n = t.toLowerCase(), r = e.filter((e) => e.label.toLowerCase().startsWith(n)), i = e.filter((e) => !e.label.toLowerCase().startsWith(n) && e.label.toLowerCase().includes(n));
3315
3315
  return [...r, ...i];
3316
3316
  }
3317
- function cn({ value: t, onValueChange: n, options: r, search: i, label: a, placeholder: c = "Choose…", searchPlaceholder: l = "Search", noMatchText: p = "No matches.", size: m = "default", disabled: _ = !1, "aria-label": v, id: y, className: S = "" }) {
3318
- let C = s(), w = y ?? C, T = `${w}-list`, [E, D] = f(!1), [O, k] = f(""), [A, M] = f(0), N = d(null), P = d(null), F = d(null), I = r.find((e) => e.value === t), L = m === "large" ? 21 : 14, R = u(() => {
3317
+ function ln({ value: t, onValueChange: n, options: r, search: i, label: a, placeholder: c = "Choose…", searchPlaceholder: l = "Search", noMatchText: p = "No matches.", size: m = "default", disabled: _ = !1, "aria-label": v, id: y, className: S = "" }) {
3318
+ let C = s(), w = y ?? C, T = `${w}-list`, [E, D] = f(!1), [O, k] = f(""), [A, j] = f(0), N = d(null), P = d(null), F = d(null), I = r.find((e) => e.value === t), L = m === "large" ? 21 : 14, R = u(() => {
3319
3319
  let e = O.trim();
3320
- return e ? i ? i(e) : sn(r, e) : r;
3320
+ return e ? i ? i(e) : cn(r, e) : r;
3321
3321
  }, [
3322
3322
  r,
3323
3323
  O,
3324
3324
  i
3325
3325
  ]);
3326
3326
  o(() => {
3327
- M(0);
3327
+ j(0);
3328
3328
  }, [R]), o(() => {
3329
3329
  P.current?.querySelector(`[data-index="${A}"]`)?.scrollIntoView({ block: "nearest" });
3330
3330
  }, [A]);
@@ -3334,53 +3334,53 @@ function cn({ value: t, onValueChange: n, options: r, search: i, label: a, place
3334
3334
  o(() => {
3335
3335
  E && requestAnimationFrame(() => N.current?.focus());
3336
3336
  }, [E]);
3337
- let ee = (e) => {
3337
+ let B = (e) => {
3338
3338
  z(!1), n(e.value), requestAnimationFrame(() => F.current?.focus());
3339
- }, te = (e) => {
3340
- if (e.key === "ArrowDown") e.preventDefault(), M((e) => Math.min(R.length - 1, e + 1));
3341
- else if (e.key === "ArrowUp") e.preventDefault(), M((e) => Math.max(0, e - 1));
3342
- else if (e.key === "Home") e.preventDefault(), M(0);
3343
- else if (e.key === "End") e.preventDefault(), M(R.length - 1);
3339
+ }, ee = (e) => {
3340
+ if (e.key === "ArrowDown") e.preventDefault(), j((e) => Math.min(R.length - 1, e + 1));
3341
+ else if (e.key === "ArrowUp") e.preventDefault(), j((e) => Math.max(0, e - 1));
3342
+ else if (e.key === "Home") e.preventDefault(), j(0);
3343
+ else if (e.key === "End") e.preventDefault(), j(R.length - 1);
3344
3344
  else if (e.key === "Enter") {
3345
3345
  e.preventDefault();
3346
3346
  let t = R[A] ?? R[0];
3347
- t && ee(t);
3347
+ t && B(t);
3348
3348
  } else e.key === "Escape" && (e.preventDefault(), z(!1), requestAnimationFrame(() => F.current?.focus()));
3349
- }, B = (t, n) => e.isValidElement(t) ? e.cloneElement(t, {
3349
+ }, V = (t, n) => e.isValidElement(t) ? e.cloneElement(t, {
3350
3350
  size: n,
3351
3351
  color: "currentColor"
3352
3352
  }) : t;
3353
3353
  return /* @__PURE__ */ g("div", {
3354
- className: `${X.wrapper} ${S}`,
3354
+ className: `${sn.wrapper} ${S}`,
3355
3355
  children: [a && /* @__PURE__ */ h("label", {
3356
3356
  id: `${w}-label`,
3357
3357
  htmlFor: w,
3358
- className: X.label,
3358
+ className: sn.label,
3359
3359
  children: a
3360
3360
  }), /* @__PURE__ */ h(Fe, {
3361
3361
  open: E,
3362
3362
  onOpenChange: z,
3363
3363
  align: "start",
3364
- className: X.panel,
3364
+ className: sn.panel,
3365
3365
  "aria-label": v ?? a,
3366
3366
  trigger: /* @__PURE__ */ g("button", {
3367
3367
  ref: F,
3368
3368
  type: "button",
3369
3369
  id: w,
3370
- className: `${X.field} ${X[m]}`,
3370
+ className: `${sn.field} ${sn[m]}`,
3371
3371
  disabled: _,
3372
3372
  "aria-haspopup": "listbox",
3373
3373
  "aria-labelledby": a ? `${w}-label ${w}-value` : void 0,
3374
3374
  "aria-label": a ? void 0 : v,
3375
3375
  children: [/* @__PURE__ */ g("span", {
3376
3376
  id: `${w}-value`,
3377
- className: `${X.value} ${I ? "" : X.placeholder}`,
3378
- children: [I?.icon && B(I.icon, L), /* @__PURE__ */ h("span", {
3379
- className: X.text,
3377
+ className: `${sn.value} ${I ? "" : sn.placeholder}`,
3378
+ children: [I?.icon && V(I.icon, L), /* @__PURE__ */ h("span", {
3379
+ className: sn.text,
3380
3380
  children: I?.label ?? c
3381
3381
  })]
3382
3382
  }), /* @__PURE__ */ h("span", {
3383
- className: X.chevron,
3383
+ className: sn.chevron,
3384
3384
  "aria-hidden": "true",
3385
3385
  children: /* @__PURE__ */ h(x, {
3386
3386
  size: L,
@@ -3389,19 +3389,19 @@ function cn({ value: t, onValueChange: n, options: r, search: i, label: a, place
3389
3389
  })]
3390
3390
  }),
3391
3391
  children: /* @__PURE__ */ g("div", {
3392
- className: X.body,
3392
+ className: sn.body,
3393
3393
  children: [/* @__PURE__ */ g("div", {
3394
- className: X.search,
3394
+ className: sn.search,
3395
3395
  children: [/* @__PURE__ */ h("span", {
3396
- className: X.searchIcon,
3396
+ className: sn.searchIcon,
3397
3397
  "aria-hidden": "true",
3398
- children: /* @__PURE__ */ h(j, {
3398
+ children: /* @__PURE__ */ h(M, {
3399
3399
  size: 14,
3400
3400
  color: "currentColor"
3401
3401
  })
3402
3402
  }), /* @__PURE__ */ h("input", {
3403
3403
  ref: N,
3404
- className: X.input,
3404
+ className: sn.input,
3405
3405
  type: "text",
3406
3406
  role: "combobox",
3407
3407
  "aria-expanded": "true",
@@ -3413,16 +3413,16 @@ function cn({ value: t, onValueChange: n, options: r, search: i, label: a, place
3413
3413
  placeholder: l,
3414
3414
  value: O,
3415
3415
  onChange: (e) => k(e.target.value),
3416
- onKeyDown: te
3416
+ onKeyDown: ee
3417
3417
  })]
3418
3418
  }), /* @__PURE__ */ g("div", {
3419
3419
  ref: P,
3420
- className: X.list,
3420
+ className: sn.list,
3421
3421
  id: T,
3422
3422
  role: "listbox",
3423
3423
  "aria-label": v ?? a,
3424
3424
  children: [R.length === 0 && /* @__PURE__ */ h("p", {
3425
- className: X.empty,
3425
+ className: sn.empty,
3426
3426
  children: p
3427
3427
  }), R.map((e, n) => /* @__PURE__ */ g("button", {
3428
3428
  type: "button",
@@ -3430,20 +3430,20 @@ function cn({ value: t, onValueChange: n, options: r, search: i, label: a, place
3430
3430
  "data-index": n,
3431
3431
  role: "option",
3432
3432
  "aria-selected": e.value === t,
3433
- className: `${X.item} ${n === A ? X.active : ""}`,
3434
- onPointerMove: () => n !== A && M(n),
3435
- onClick: () => ee(e),
3433
+ className: `${sn.item} ${n === A ? sn.active : ""}`,
3434
+ onPointerMove: () => n !== A && j(n),
3435
+ onClick: () => B(e),
3436
3436
  children: [
3437
3437
  e.icon && /* @__PURE__ */ h("span", {
3438
- className: X.itemIcon,
3439
- children: B(e.icon, 14)
3438
+ className: sn.itemIcon,
3439
+ children: V(e.icon, 14)
3440
3440
  }),
3441
3441
  /* @__PURE__ */ h("span", {
3442
- className: X.itemLabel,
3442
+ className: sn.itemLabel,
3443
3443
  children: e.label
3444
3444
  }),
3445
3445
  e.value === t && /* @__PURE__ */ h("span", {
3446
- className: X.check,
3446
+ className: sn.check,
3447
3447
  children: /* @__PURE__ */ h(b, {
3448
3448
  size: 14,
3449
3449
  color: "currentColor"
@@ -3456,7 +3456,7 @@ function cn({ value: t, onValueChange: n, options: r, search: i, label: a, place
3456
3456
  })]
3457
3457
  });
3458
3458
  }
3459
- var ln = {
3459
+ var un = {
3460
3460
  empty: "_empty_jzgh0_1",
3461
3461
  default: "_default_jzgh0_2",
3462
3462
  compact: "_compact_jzgh0_3",
@@ -3466,13 +3466,13 @@ var ln = {
3466
3466
  actions: "_actions_jzgh0_10"
3467
3467
  };
3468
3468
  // src/components/EmptyState/EmptyState.tsx
3469
- function un({ icon: t, title: n, children: r, actions: i, size: a = "default", className: o = "" }) {
3469
+ function dn({ icon: t, title: n, children: r, actions: i, size: a = "default", className: o = "" }) {
3470
3470
  return /* @__PURE__ */ g("div", {
3471
- className: `${ln.empty} ${ln[a]} ${o}`,
3471
+ className: `${un.empty} ${un[a]} ${o}`,
3472
3472
  role: "status",
3473
3473
  children: [
3474
3474
  t && /* @__PURE__ */ h("span", {
3475
- className: ln.icon,
3475
+ className: un.icon,
3476
3476
  "aria-hidden": "true",
3477
3477
  children: e.cloneElement(t, {
3478
3478
  size: a === "compact" ? 35 : 70,
@@ -3480,21 +3480,21 @@ function un({ icon: t, title: n, children: r, actions: i, size: a = "default", c
3480
3480
  })
3481
3481
  }),
3482
3482
  /* @__PURE__ */ h("div", {
3483
- className: ln.title,
3483
+ className: un.title,
3484
3484
  children: n
3485
3485
  }),
3486
3486
  r && /* @__PURE__ */ h("div", {
3487
- className: ln.detail,
3487
+ className: un.detail,
3488
3488
  children: r
3489
3489
  }),
3490
3490
  i && /* @__PURE__ */ h("div", {
3491
- className: ln.actions,
3491
+ className: un.actions,
3492
3492
  children: i
3493
3493
  })
3494
3494
  ]
3495
3495
  });
3496
3496
  }
3497
- var dn = {
3497
+ var fn = {
3498
3498
  overlay: "_overlay_9rhqp_1",
3499
3499
  sheet: "_sheet_9rhqp_3",
3500
3500
  wide: "_wide_9rhqp_14",
@@ -3509,18 +3509,18 @@ var dn = {
3509
3509
  srOnly: "_srOnly_9rhqp_30"
3510
3510
  };
3511
3511
  // src/components/Sheet/Sheet.tsx
3512
- function fn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, children: a, footer: o, side: s = "right", size: c = "default", className: l = "" }) {
3512
+ function pn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, children: a, footer: o, side: s = "right", size: c = "default", className: l = "" }) {
3513
3513
  let u = ae(), f = d(null);
3514
- return /* @__PURE__ */ g(z.Root, {
3514
+ return /* @__PURE__ */ g(B.Root, {
3515
3515
  open: e,
3516
3516
  onOpenChange: t,
3517
- children: [n && /* @__PURE__ */ h(z.Trigger, {
3517
+ children: [n && /* @__PURE__ */ h(B.Trigger, {
3518
3518
  asChild: !0,
3519
3519
  children: n
3520
- }), /* @__PURE__ */ g(z.Portal, {
3520
+ }), /* @__PURE__ */ g(B.Portal, {
3521
3521
  container: u,
3522
- children: [/* @__PURE__ */ h(z.Overlay, { className: dn.overlay }), /* @__PURE__ */ g(z.Content, {
3523
- className: `${dn.sheet} ${dn[s]} ${c === "wide" ? dn.wide : ""} ${l}`,
3522
+ children: [/* @__PURE__ */ h(B.Overlay, { className: fn.overlay }), /* @__PURE__ */ g(B.Content, {
3523
+ className: `${fn.sheet} ${fn[s]} ${c === "wide" ? fn.wide : ""} ${l}`,
3524
3524
  ...i ? {} : { "aria-describedby": void 0 },
3525
3525
  onOpenAutoFocus: () => {
3526
3526
  f.current = document.activeElement;
@@ -3530,32 +3530,32 @@ function fn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, ch
3530
3530
  },
3531
3531
  children: [
3532
3532
  /* @__PURE__ */ g("div", {
3533
- className: dn.header,
3533
+ className: fn.header,
3534
3534
  children: [/* @__PURE__ */ g("div", {
3535
- className: dn.heading,
3536
- children: [/* @__PURE__ */ h(z.Title, {
3537
- className: r ? dn.title : dn.srOnly,
3535
+ className: fn.heading,
3536
+ children: [/* @__PURE__ */ h(B.Title, {
3537
+ className: r ? fn.title : fn.srOnly,
3538
3538
  children: r || "Panel"
3539
- }), i && /* @__PURE__ */ h(z.Description, {
3540
- className: dn.description,
3539
+ }), i && /* @__PURE__ */ h(B.Description, {
3540
+ className: fn.description,
3541
3541
  children: i
3542
3542
  })]
3543
- }), /* @__PURE__ */ h(z.Close, {
3543
+ }), /* @__PURE__ */ h(B.Close, {
3544
3544
  asChild: !0,
3545
- children: /* @__PURE__ */ h(U, {
3545
+ children: /* @__PURE__ */ h(W, {
3546
3546
  variant: "ghost",
3547
3547
  size: "micro",
3548
- iconLeft: /* @__PURE__ */ h(P, {}),
3548
+ iconLeft: /* @__PURE__ */ h(F, {}),
3549
3549
  "aria-label": "Close"
3550
3550
  })
3551
3551
  })]
3552
3552
  }),
3553
3553
  /* @__PURE__ */ h("div", {
3554
- className: dn.body,
3554
+ className: fn.body,
3555
3555
  children: a
3556
3556
  }),
3557
3557
  o && /* @__PURE__ */ h("div", {
3558
- className: dn.footer,
3558
+ className: fn.footer,
3559
3559
  children: o
3560
3560
  })
3561
3561
  ]
@@ -3563,7 +3563,7 @@ function fn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, ch
3563
3563
  })]
3564
3564
  });
3565
3565
  }
3566
- var pn = {
3566
+ var mn = {
3567
3567
  root: "_root_pwkdl_1",
3568
3568
  vertical: "_vertical_pwkdl_2",
3569
3569
  pane: "_pane_pwkdl_3",
@@ -3572,8 +3572,8 @@ var pn = {
3572
3572
  handle: "_handle_pwkdl_8",
3573
3573
  horizontal: "_horizontal_pwkdl_9",
3574
3574
  grip: "_grip_pwkdl_16"
3575
- }, mn = 2, hn = 10;
3576
- function gn(e) {
3575
+ }, hn = 2, gn = 10;
3576
+ function _n(e) {
3577
3577
  if (e) try {
3578
3578
  let t = parseFloat(localStorage.getItem(e) ?? "");
3579
3579
  return Number.isNaN(t) ? void 0 : t;
@@ -3581,8 +3581,8 @@ function gn(e) {
3581
3581
  return;
3582
3582
  }
3583
3583
  }
3584
- function _n({ first: e, second: t, direction: n = "horizontal", defaultSize: r = 50, minSize: i = 10, maxSize: a = 90, storageKey: s, onSizeChange: c, withHandle: l = !1, "aria-label": u = "Resize", className: p = "" }) {
3585
- let m = (e) => Math.min(a, Math.max(i, e)), [_, v] = f(() => m(gn(s) ?? r)), [y, b] = f(!1), x = d(null), S = d(_);
3584
+ function vn({ first: e, second: t, direction: n = "horizontal", defaultSize: r = 50, minSize: i = 10, maxSize: a = 90, storageKey: s, onSizeChange: c, withHandle: l = !1, "aria-label": u = "Resize", className: p = "" }) {
3585
+ let m = (e) => Math.min(a, Math.max(i, e)), [_, v] = f(() => m(_n(s) ?? r)), [y, b] = f(!1), x = d(null), S = d(_);
3586
3586
  S.current = _;
3587
3587
  let C = n === "horizontal", w = (e) => {
3588
3588
  if (s) try {
@@ -3600,16 +3600,16 @@ function _n({ first: e, second: t, direction: n = "horizontal", defaultSize: r =
3600
3600
  };
3601
3601
  }, [y]), /* @__PURE__ */ g("div", {
3602
3602
  ref: x,
3603
- className: `${pn.root} ${C ? pn.horizontal : pn.vertical} ${p}`,
3603
+ className: `${mn.root} ${C ? mn.horizontal : mn.vertical} ${p}`,
3604
3604
  "data-dragging": y || void 0,
3605
3605
  style: { "--resizable-size": `${_}%` },
3606
3606
  children: [
3607
3607
  /* @__PURE__ */ h("div", {
3608
- className: `${pn.pane} ${pn.first}`,
3608
+ className: `${mn.pane} ${mn.first}`,
3609
3609
  children: e
3610
3610
  }),
3611
3611
  /* @__PURE__ */ h("div", {
3612
- className: pn.handle,
3612
+ className: mn.handle,
3613
3613
  role: "separator",
3614
3614
  tabIndex: 0,
3615
3615
  "aria-label": u,
@@ -3621,86 +3621,96 @@ function _n({ first: e, second: t, direction: n = "horizontal", defaultSize: r =
3621
3621
  e.button === 0 && (e.preventDefault(), b(!0));
3622
3622
  },
3623
3623
  onKeyDown: (e) => {
3624
- let t = C ? "ArrowLeft" : "ArrowUp", n = C ? "ArrowRight" : "ArrowDown", r = e.key === t ? _ - mn : e.key === n ? _ + mn : e.key === "PageUp" ? _ - hn : e.key === "PageDown" ? _ + hn : e.key === "Home" ? i : e.key === "End" ? a : null;
3624
+ let t = C ? "ArrowLeft" : "ArrowUp", n = C ? "ArrowRight" : "ArrowDown", r = e.key === t ? _ - hn : e.key === n ? _ + hn : e.key === "PageUp" ? _ - gn : e.key === "PageDown" ? _ + gn : e.key === "Home" ? i : e.key === "End" ? a : null;
3625
3625
  if (r === null) return;
3626
3626
  e.preventDefault();
3627
3627
  let o = m(r);
3628
3628
  v(o), w(o);
3629
3629
  },
3630
3630
  children: l && /* @__PURE__ */ h("span", {
3631
- className: pn.grip,
3631
+ className: mn.grip,
3632
3632
  "aria-hidden": "true"
3633
3633
  })
3634
3634
  }),
3635
3635
  /* @__PURE__ */ h("div", {
3636
- className: `${pn.pane} ${pn.second}`,
3636
+ className: `${mn.pane} ${mn.second}`,
3637
3637
  children: t
3638
3638
  })
3639
3639
  ]
3640
3640
  });
3641
3641
  }
3642
3642
  // src/components/TreeCanvas/viewport.ts
3643
- var vn = .2, yn = 2, bn = 24, xn = 1.2, Sn = 48, Cn = 8;
3644
- function wn(e, t, n, r) {
3643
+ var yn = .2, bn = 2, xn = 24, Sn = 1.2, Cn = 48, wn = 8;
3644
+ function Tn(e, t, n, r) {
3645
3645
  let i = {
3646
3646
  x: 0,
3647
3647
  y: 0,
3648
3648
  z: 1,
3649
3649
  pan: r
3650
- }, a, o = (e) => Math.min(yn, Math.max(vn, e)), s = () => {
3650
+ }, a, o = (e) => Math.min(bn, Math.max(yn, e)), s = () => {
3651
3651
  if (t.style.transform = `translate(${i.x}px, ${i.y}px) scale(${i.z})`, n) {
3652
3652
  n.style.setProperty("--tree-x", `${i.x}px`), n.style.setProperty("--tree-y", `${i.y}px`), a ??= parseFloat(getComputedStyle(n).getPropertyValue("--tree-tile")) || 12;
3653
3653
  let e = i.z;
3654
- for (; a * e < Cn;) e *= 2;
3654
+ for (; a * e < wn;) e *= 2;
3655
3655
  n.style.setProperty("--tree-zoom", `${e}`);
3656
3656
  }
3657
3657
  let r = e.querySelector("[data-tree-zoom-label]");
3658
3658
  r && (r.textContent = `${Math.round(i.z * 100)}%`);
3659
3659
  }, c = () => {
3660
- let n = t.firstElementChild;
3660
+ let n = t.firstElementChild, r = e.querySelector("[data-tree-controls]"), i = r ? r.offsetLeft + r.offsetWidth : 0;
3661
3661
  return {
3662
3662
  cw: e.clientWidth,
3663
3663
  ch: e.clientHeight,
3664
3664
  sw: n?.offsetWidth ?? 0,
3665
- sh: n?.offsetHeight ?? 0
3665
+ sh: n?.offsetHeight ?? 0,
3666
+ cl: i
3666
3667
  };
3667
3668
  }, l = () => {
3668
- let { cw: e, ch: t, sw: n, sh: r } = c();
3669
- return !n || !r ? 1 : o(Math.min((e - 48) / n, (t - 48) / r, 1));
3669
+ let { cw: e, ch: t, sw: n, sh: r, cl: i } = c();
3670
+ return !n || !r ? 1 : o(Math.min((e - i - 48) / n, (t - 48) / r, 1));
3670
3671
  }, u = (e) => {
3671
- let { cw: t, ch: n, sw: r, sh: a } = c();
3672
- i.z = e, i.x = (t - r * e) / 2, i.y = (n - a * e) / 2, s();
3672
+ let { cw: t, ch: n, sw: r, sh: a, cl: o } = c();
3673
+ i.z = e, i.x = o + (t - o - r * e) / 2, i.y = (n - a * e) / 2, s();
3673
3674
  }, d = (e, t, n) => {
3674
3675
  e = o(e), i.x = t - (t - i.x) * (e / i.z), i.y = n - (n - i.y) * (e / i.z), i.z = e, s();
3675
3676
  }, f = (t) => {
3676
3677
  let n = e.getBoundingClientRect(), r = n.width / 2, a = n.height / 2;
3677
- t === "in" ? d(i.z * xn, r, a) : t === "out" ? d(i.z / xn, r, a) : t === "reset" ? d(1, r, a) : u(l());
3678
- }, p = null, m = !1, h = (e) => {
3679
- m = !1, i.pan && e.button === 0 && e.pointerType !== "touch" && (e.target.closest("button, a, input, select, textarea, [data-tree-controls]") || (p = {
3678
+ t === "in" ? d(i.z * Sn, r, a) : t === "out" ? d(i.z / Sn, r, a) : t === "reset" ? d(1, r, a) : t === "fullscreen" ? p() : u(l());
3679
+ }, p = () => {
3680
+ if (document.fullscreenElement) {
3681
+ document.exitFullscreen?.();
3682
+ return;
3683
+ }
3684
+ let t = e.closest("[data-tree-fullscreen]") ?? e, n = () => {
3685
+ document.removeEventListener("fullscreenchange", n), requestAnimationFrame(() => u(l())), document.fullscreenElement && document.addEventListener("fullscreenchange", n);
3686
+ };
3687
+ document.addEventListener("fullscreenchange", n), t.requestFullscreen?.().catch(() => document.removeEventListener("fullscreenchange", n));
3688
+ }, m = null, h = !1, g = (e) => {
3689
+ h = !1, i.pan && e.button === 0 && e.pointerType !== "touch" && (e.target.closest("button, a, input, select, textarea, [data-tree-controls]") || (m = {
3680
3690
  px: e.clientX,
3681
3691
  py: e.clientY,
3682
3692
  x: i.x,
3683
3693
  y: i.y,
3684
3694
  id: e.pointerId
3685
3695
  }));
3686
- }, g = (t) => {
3687
- if (!p || t.pointerId !== p.id) return;
3688
- let n = t.clientX - p.px, r = t.clientY - p.py;
3689
- if (!m) {
3696
+ }, _ = (t) => {
3697
+ if (!m || t.pointerId !== m.id) return;
3698
+ let n = t.clientX - m.px, r = t.clientY - m.py;
3699
+ if (!h) {
3690
3700
  if (Math.hypot(n, r) < 4) return;
3691
- m = !0, e.setPointerCapture(t.pointerId), e.dataset.panning = "";
3701
+ h = !0, e.setPointerCapture(t.pointerId), e.dataset.panning = "";
3692
3702
  }
3693
- i.x = p.x + n, i.y = p.y + r, s();
3694
- }, _ = (t) => {
3695
- p && t.pointerId === p.id && (p = null, delete e.dataset.panning);
3703
+ i.x = m.x + n, i.y = m.y + r, s();
3696
3704
  }, v = (t) => {
3697
- if (m) {
3698
- m = !1, t.stopPropagation(), t.preventDefault();
3705
+ m && t.pointerId === m.id && (m = null, delete e.dataset.panning);
3706
+ }, y = (t) => {
3707
+ if (h) {
3708
+ h = !1, t.stopPropagation(), t.preventDefault();
3699
3709
  return;
3700
3710
  }
3701
3711
  let n = t.target.closest("[data-tree-action]");
3702
3712
  n && e.contains(n) && f(n.dataset.treeAction);
3703
- }, y = (t) => {
3713
+ }, b = (t) => {
3704
3714
  if (!i.pan) return;
3705
3715
  t.preventDefault();
3706
3716
  let n = t.deltaMode === 1 ? 16 : t.deltaMode === 2 ? e.clientHeight : 1;
@@ -3711,24 +3721,24 @@ function wn(e, t, n, r) {
3711
3721
  let e = t.shiftKey && !t.deltaX;
3712
3722
  i.x -= (e ? t.deltaY : t.deltaX) * n, i.y -= (e ? 0 : t.deltaY) * n, s();
3713
3723
  }
3714
- }, b = (t) => {
3724
+ }, x = (t) => {
3715
3725
  if (!i.pan || t.altKey || t.ctrlKey || t.metaKey || t.target.closest("input, select, textarea")) return;
3716
3726
  let n = e.getBoundingClientRect();
3717
- if (t.key === "+" || t.key === "=") d(i.z * xn, n.width / 2, n.height / 2);
3718
- else if (t.key === "-" || t.key === "_") d(i.z / xn, n.width / 2, n.height / 2);
3727
+ if (t.key === "+" || t.key === "=") d(i.z * Sn, n.width / 2, n.height / 2);
3728
+ else if (t.key === "-" || t.key === "_") d(i.z / Sn, n.width / 2, n.height / 2);
3719
3729
  else if (t.key === "0") f("fit");
3720
- else if (t.target === e && t.key.startsWith("Arrow")) t.key === "ArrowLeft" && (i.x += Sn), t.key === "ArrowRight" && (i.x -= Sn), t.key === "ArrowUp" && (i.y += Sn), t.key === "ArrowDown" && (i.y -= Sn), s();
3730
+ else if (t.target === e && t.key.startsWith("Arrow")) t.key === "ArrowLeft" && (i.x += Cn), t.key === "ArrowRight" && (i.x -= Cn), t.key === "ArrowUp" && (i.y += Cn), t.key === "ArrowDown" && (i.y -= Cn), s();
3721
3731
  else return;
3722
3732
  t.preventDefault();
3723
- }, x = () => {
3733
+ }, S = () => {
3724
3734
  (e.scrollLeft || e.scrollTop) && (i.x -= e.scrollLeft, i.y -= e.scrollTop, e.scrollLeft = 0, e.scrollTop = 0, s());
3725
3735
  };
3726
- return e.addEventListener("pointerdown", h), e.addEventListener("pointermove", g), e.addEventListener("pointerup", _), e.addEventListener("pointercancel", _), e.addEventListener("click", v, !0), e.addEventListener("wheel", y, { passive: !1 }), e.addEventListener("keydown", b), e.addEventListener("scroll", x), s(), {
3736
+ return e.addEventListener("pointerdown", g), e.addEventListener("pointermove", _), e.addEventListener("pointerup", v), e.addEventListener("pointercancel", v), e.addEventListener("click", y, !0), e.addEventListener("wheel", b, { passive: !1 }), e.addEventListener("keydown", x), e.addEventListener("scroll", S), s(), {
3727
3737
  setPan(e) {
3728
3738
  i.pan = e;
3729
3739
  },
3730
3740
  initial(e) {
3731
- let { ch: n, sh: r } = c();
3741
+ let { ch: n, sh: r, cl: a } = c();
3732
3742
  if (e == null) {
3733
3743
  let e = l();
3734
3744
  if (e >= .6) {
@@ -3736,99 +3746,99 @@ function wn(e, t, n, r) {
3736
3746
  return;
3737
3747
  }
3738
3748
  }
3739
- i.z = o(e ?? 1), i.x = 0;
3740
- let a = t.querySelector("[aria-level=\"1\"]"), d = a ? ((a.parentElement?.offsetTop ?? 0) + a.offsetHeight / 2) * i.z : 0;
3741
- i.y = Math.min(0, Math.max(n - r * i.z, n / 3 - d)), r * i.z <= n && (i.y = (n - r * i.z) / 2), s();
3749
+ i.z = o(e ?? 1), i.x = a;
3750
+ let d = t.querySelector("[aria-level=\"1\"]"), f = d ? ((d.parentElement?.offsetTop ?? 0) + d.offsetHeight / 2) * i.z : 0;
3751
+ i.y = Math.min(0, Math.max(n - r * i.z, n / 3 - f)), r * i.z <= n && (i.y = (n - r * i.z) / 2), s();
3742
3752
  },
3743
3753
  command: f,
3744
3754
  bringIntoView(t) {
3745
3755
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
3746
- r.left < n.left + bn ? i.x += n.left + bn - r.left : r.right > n.right - bn && (i.x -= r.right - (n.right - bn)), r.top < n.top + bn ? i.y += n.top + bn - r.top : r.bottom > n.bottom - bn && (i.y -= r.bottom - (n.bottom - bn)), s();
3756
+ r.left < n.left + xn ? i.x += n.left + xn - r.left : r.right > n.right - xn && (i.x -= r.right - (n.right - xn)), r.top < n.top + xn ? i.y += n.top + xn - r.top : r.bottom > n.bottom - xn && (i.y -= r.bottom - (n.bottom - xn)), s();
3747
3757
  },
3748
3758
  destroy() {
3749
- e.removeEventListener("pointerdown", h), e.removeEventListener("pointermove", g), e.removeEventListener("pointerup", _), e.removeEventListener("pointercancel", _), e.removeEventListener("click", v, !0), e.removeEventListener("wheel", y), e.removeEventListener("keydown", b), e.removeEventListener("scroll", x);
3759
+ e.removeEventListener("pointerdown", g), e.removeEventListener("pointermove", _), e.removeEventListener("pointerup", v), e.removeEventListener("pointercancel", v), e.removeEventListener("click", y, !0), e.removeEventListener("wheel", b), e.removeEventListener("keydown", x), e.removeEventListener("scroll", S);
3750
3760
  }
3751
3761
  };
3752
3762
  }
3753
3763
  var Z = {
3754
- canvas: "_canvas_1px94_3",
3755
- view: "_view_1px94_19",
3756
- sheet: "_sheet_1px94_26",
3757
- edges: "_edges_1px94_32",
3758
- handles: "_handles_1px94_33",
3759
- edge: "_edge_1px94_32",
3760
- edgeLit: "_edgeLit_1px94_53",
3761
- edgeMuted: "_edgeMuted_1px94_59",
3762
- handle: "_handle_1px94_33",
3763
- handleLit: "_handleLit_1px94_70",
3764
- slot: "_slot_1px94_75",
3765
- pill: "_pill_1px94_82",
3766
- pillPath: "_pillPath_1px94_109",
3767
- pillSelected: "_pillSelected_1px94_113",
3768
- muted: "_muted_1px94_120",
3769
- name: "_name_1px94_124",
3770
- chip: "_chip_1px94_131",
3771
- mark: "_mark_1px94_149",
3772
- toggle: "_toggle_1px94_160",
3773
- disclosure: "_disclosure_1px94_166",
3774
- more: "_more_1px94_187",
3775
- listWrap: "_listWrap_1px94_206",
3776
- list: "_list_1px94_206",
3777
- row: "_row_1px94_217",
3778
- rowSelected: "_rowSelected_1px94_226",
3779
- rowName: "_rowName_1px94_230",
3780
- disclosureSpace: "_disclosureSpace_1px94_251",
3781
- empty: "_empty_1px94_257",
3782
- grid: "_grid_1px94_267",
3783
- controls: "_controls_1px94_285",
3784
- zoomLabel: "_zoomLabel_1px94_306",
3785
- pannable: "_pannable_1px94_313"
3786
- }, Tn = 44, En = 5, Dn = 56, On = 24, kn = 7, An = 10;
3787
- function jn(e, t) {
3788
- let n = e.label.length * kn, r = e.count == null ? 0 : (t ? t(e.count) : e.count.toLocaleString()).length * 6 + An + 8, i = (e.marks?.length ?? 0) * 20, a = e.children?.length ? 18 : 0;
3789
- return On + n + r + i + a;
3764
+ canvas: "_canvas_q3a8t_3",
3765
+ view: "_view_q3a8t_19",
3766
+ sheet: "_sheet_q3a8t_26",
3767
+ edges: "_edges_q3a8t_32",
3768
+ handles: "_handles_q3a8t_33",
3769
+ edge: "_edge_q3a8t_32",
3770
+ edgeLit: "_edgeLit_q3a8t_53",
3771
+ edgeMuted: "_edgeMuted_q3a8t_59",
3772
+ handle: "_handle_q3a8t_33",
3773
+ handleLit: "_handleLit_q3a8t_70",
3774
+ slot: "_slot_q3a8t_75",
3775
+ pill: "_pill_q3a8t_82",
3776
+ pillPath: "_pillPath_q3a8t_109",
3777
+ pillSelected: "_pillSelected_q3a8t_113",
3778
+ muted: "_muted_q3a8t_120",
3779
+ name: "_name_q3a8t_124",
3780
+ chip: "_chip_q3a8t_131",
3781
+ mark: "_mark_q3a8t_149",
3782
+ toggle: "_toggle_q3a8t_160",
3783
+ disclosure: "_disclosure_q3a8t_166",
3784
+ more: "_more_q3a8t_187",
3785
+ listWrap: "_listWrap_q3a8t_206",
3786
+ list: "_list_q3a8t_206",
3787
+ row: "_row_q3a8t_217",
3788
+ rowSelected: "_rowSelected_q3a8t_226",
3789
+ rowName: "_rowName_q3a8t_230",
3790
+ disclosureSpace: "_disclosureSpace_q3a8t_251",
3791
+ empty: "_empty_q3a8t_257",
3792
+ grid: "_grid_q3a8t_267",
3793
+ controls: "_controls_q3a8t_285",
3794
+ zoomLabel: "_zoomLabel_q3a8t_306",
3795
+ pannable: "_pannable_q3a8t_313"
3796
+ }, En = 44, Dn = 5, On = 56, kn = 24, An = 7, jn = 10;
3797
+ function Mn(e, t) {
3798
+ let n = e.label.length * An, r = e.count == null ? 0 : (t ? t(e.count) : e.count.toLocaleString()).length * 6 + jn + 8, i = (e.marks?.length ?? 0) * 20, a = e.children?.length ? 18 : 0;
3799
+ return kn + n + r + i + a;
3790
3800
  }
3791
- function Mn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i = "tree", maxChildren: a = 50, format: s, visible: c, zoom: p, openDepth: m, pan: _ = !0, pattern: v, "aria-label": y, className: b = "" }) {
3792
- let [x, S] = f(() => new Set(r ?? e.map((e) => e.id))), [C, w] = f(() => /* @__PURE__ */ new Set());
3801
+ function Nn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i = "tree", maxChildren: a = 50, format: s, visible: c, zoom: p, openDepth: m, pan: _ = !0, fullscreen: v = !0, pattern: y, "aria-label": b, className: x = "" }) {
3802
+ let [S, C] = f(() => new Set(r ?? e.map((e) => e.id))), [w, T] = f(() => /* @__PURE__ */ new Set());
3793
3803
  o(() => {
3794
3804
  if (m == null) return;
3795
3805
  let t = /* @__PURE__ */ new Set(), n = (e, r) => {
3796
3806
  r < m - 1 && e.children?.length && (t.add(e.id), e.children.forEach((e) => n(e, r + 1)));
3797
3807
  };
3798
- e.forEach((e) => n(e, 0)), S(t);
3808
+ e.forEach((e) => n(e, 0)), C(t);
3799
3809
  }, [m, e]);
3800
- let [T, E] = f(() => /* @__PURE__ */ new Map()), D = d(null), j = d(null), M = d(null), N = d(null), P = d(null);
3810
+ let [E, D] = f(() => /* @__PURE__ */ new Map()), M = d(null), N = d(null), P = d(null), F = d(null), I = d(null);
3801
3811
  l(() => {
3802
- let e = j.current, t = M.current;
3812
+ let e = N.current, t = P.current;
3803
3813
  if (!e || !t) return;
3804
- let n = wn(e, t, N.current, _);
3805
- return P.current = n, () => {
3806
- n.destroy(), P.current = null;
3814
+ let n = Tn(e, t, F.current, _);
3815
+ return I.current = n, () => {
3816
+ n.destroy(), I.current = null;
3807
3817
  };
3808
- }, [i, v]), o(() => {
3809
- P.current?.setPan(_);
3818
+ }, [i, y]), o(() => {
3819
+ I.current?.setPan(_);
3810
3820
  }, [_]);
3811
- let F = d(!0);
3821
+ let L = d(!0);
3812
3822
  l(() => {
3813
- F.current = !0;
3823
+ L.current = !0;
3814
3824
  }, [e, i]), l(() => {
3815
- let e = D.current;
3825
+ let e = M.current;
3816
3826
  if (!e) return;
3817
- let t = !1, n = new Map(T);
3827
+ let t = !1, n = new Map(E);
3818
3828
  e.querySelectorAll("[data-node]").forEach((e) => {
3819
3829
  let r = e.offsetWidth, i = e.dataset.node;
3820
3830
  r > 0 && n.get(i) !== r && (n.set(i, r), t = !0);
3821
- }), t ? E(n) : F.current && P.current && (F.current = !1, P.current.initial(p));
3831
+ }), t ? D(n) : L.current && I.current && (L.current = !1, I.current.initial(p));
3822
3832
  });
3823
- let I = (e) => S((t) => {
3833
+ let R = (e) => C((t) => {
3824
3834
  let n = new Set(t);
3825
3835
  return n.has(e) ? n.delete(e) : n.add(e), n;
3826
- }), L = (e) => {
3827
- n?.(e.id), e.children?.length && !te(e.id) && S((t) => new Set(t).add(e.id));
3828
- }, R = u(() => {
3836
+ }), z = (e) => {
3837
+ n?.(e.id), e.children?.length && !te(e.id) && C((t) => new Set(t).add(e.id));
3838
+ }, B = u(() => {
3829
3839
  let n = /* @__PURE__ */ new Set(), r = (e, i) => e.id === t ? (i.forEach((e) => n.add(e)), n.add(e.id), !0) : !!e.children?.some((t) => r(t, [...i, e.id]));
3830
3840
  return e.forEach((e) => r(e, [])), n;
3831
- }, [e, t]), { tree: z, opened: ee } = u(() => {
3841
+ }, [e, t]), { tree: ee, opened: V } = u(() => {
3832
3842
  if (!c) return {
3833
3843
  tree: e,
3834
3844
  opened: null
@@ -3845,14 +3855,14 @@ function Mn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
3845
3855
  tree: e.map(n).filter((e) => !!e),
3846
3856
  opened: t
3847
3857
  };
3848
- }, [e, c]), te = (e) => x.has(e) || (ee?.has(e) ?? !1), { placed: B, columns: ne, height: V } = u(() => {
3858
+ }, [e, c]), te = (e) => S.has(e) || (V?.has(e) ?? !1), { placed: H, columns: U, height: ne } = u(() => {
3849
3859
  let e = [], t = [], n = 0, r = (i, o, c) => {
3850
- let l = !!i.children?.length && te(i.id), u = l ? C.has(i.id) ? i.children : i.children.slice(0, a) : [], d = l ? i.children.length - u.length : 0, f = {
3860
+ let l = !!i.children?.length && te(i.id), u = l ? w.has(i.id) ? i.children : i.children.slice(0, a) : [], d = l ? i.children.length - u.length : 0, f = {
3851
3861
  node: i,
3852
3862
  depth: o,
3853
3863
  x: 0,
3854
3864
  y: 0,
3855
- width: T.get(i.id) ?? jn(i, s),
3865
+ width: E.get(i.id) ?? Mn(i, s),
3856
3866
  parent: c,
3857
3867
  open: l,
3858
3868
  more: d
@@ -3860,58 +3870,58 @@ function Mn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
3860
3870
  if (t[o] = Math.max(t[o] ?? 0, f.width), e.push(f), u.length) {
3861
3871
  let e = u.map((e) => r(e, o + 1, f));
3862
3872
  f.y = (e[0].y + e[e.length - 1].y) / 2, d > 0 && (n += 1);
3863
- } else f.y = n * Tn + Tn / 2, n += 1;
3873
+ } else f.y = n * En + En / 2, n += 1;
3864
3874
  return f;
3865
3875
  };
3866
- z.forEach((e) => r(e, 0));
3876
+ ee.forEach((e) => r(e, 0));
3867
3877
  let i = [], o = 0;
3868
3878
  return t.forEach((e, t) => {
3869
- i[t] = o, o += e + Dn;
3879
+ i[t] = o, o += e + On;
3870
3880
  }), e.forEach((e) => {
3871
3881
  e.x = i[e.depth];
3872
3882
  }), {
3873
3883
  placed: e,
3874
3884
  columns: i,
3875
- height: Math.max(n, 1) * Tn
3885
+ height: Math.max(n, 1) * En
3876
3886
  };
3877
3887
  }, [
3878
- z,
3879
3888
  ee,
3880
- x,
3881
- C,
3889
+ V,
3890
+ S,
3891
+ w,
3882
3892
  a,
3883
3893
  s,
3884
- T
3885
- ]), H = ne.length ? ne[ne.length - 1] + Math.max(...B.filter((e) => e.depth === ne.length - 1).map((e) => e.width)) : 0, re = B.map((e) => e.node.id), ie = (e, t) => {
3886
- let n = re.indexOf(t.node.id), r;
3887
- if (e.key === "ArrowDown") r = re[Math.min(re.length - 1, n + 1)];
3888
- else if (e.key === "ArrowUp") r = re[Math.max(0, n - 1)];
3894
+ E
3895
+ ]), re = U.length ? U[U.length - 1] + Math.max(...H.filter((e) => e.depth === U.length - 1).map((e) => e.width)) : 0, ie = H.map((e) => e.node.id), ae = (e, t) => {
3896
+ let n = ie.indexOf(t.node.id), r;
3897
+ if (e.key === "ArrowDown") r = ie[Math.min(ie.length - 1, n + 1)];
3898
+ else if (e.key === "ArrowUp") r = ie[Math.max(0, n - 1)];
3889
3899
  else if (e.key === "ArrowRight") {
3890
3900
  if (t.node.children?.length && !t.open) {
3891
- I(t.node.id), e.preventDefault();
3901
+ R(t.node.id), e.preventDefault();
3892
3902
  return;
3893
3903
  }
3894
- r = B.find((e) => e.parent === t)?.node.id;
3904
+ r = H.find((e) => e.parent === t)?.node.id;
3895
3905
  } else if (e.key === "ArrowLeft") {
3896
3906
  if (t.open) {
3897
- I(t.node.id), e.preventDefault();
3907
+ R(t.node.id), e.preventDefault();
3898
3908
  return;
3899
3909
  }
3900
3910
  r = t.parent?.node.id;
3901
3911
  } else if (e.key === "Enter" || e.key === " ") {
3902
- L(t.node), e.preventDefault();
3912
+ z(t.node), e.preventDefault();
3903
3913
  return;
3904
- } else e.key === "Home" ? r = re[0] : e.key === "End" && (r = re[re.length - 1]);
3914
+ } else e.key === "Home" ? r = ie[0] : e.key === "End" && (r = ie[ie.length - 1]);
3905
3915
  if (!r) return;
3906
3916
  e.preventDefault();
3907
- let i = D.current?.querySelector(`[data-node="${CSS.escape(r)}"]`);
3908
- i && (i.focus({ preventScroll: !0 }), P.current?.bringIntoView(i));
3917
+ let i = M.current?.querySelector(`[data-node="${CSS.escape(r)}"]`);
3918
+ i && (i.focus({ preventScroll: !0 }), I.current?.bringIntoView(i));
3909
3919
  };
3910
3920
  if (i === "list") {
3911
3921
  let e = ({ nodes: n, depth: r }) => /* @__PURE__ */ h("ul", {
3912
3922
  className: Z.list,
3913
3923
  role: r === 0 ? "tree" : "group",
3914
- "aria-label": r === 0 ? y : void 0,
3924
+ "aria-label": r === 0 ? b : void 0,
3915
3925
  children: n.map((n) => {
3916
3926
  let i = te(n.id), a = n.id === t;
3917
3927
  return /* @__PURE__ */ g("li", {
@@ -3924,18 +3934,18 @@ function Mn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
3924
3934
  children: [
3925
3935
  n.children?.length ? /* @__PURE__ */ h("span", {
3926
3936
  className: Z.disclosure,
3927
- children: /* @__PURE__ */ h(U, {
3937
+ children: /* @__PURE__ */ h(W, {
3928
3938
  variant: "secondary",
3929
3939
  size: "micro",
3930
3940
  "aria-label": i ? "Close" : "Open",
3931
- iconLeft: h(i ? k : A, {}),
3932
- onClick: () => I(n.id)
3941
+ iconLeft: h(i ? A : j, {}),
3942
+ onClick: () => R(n.id)
3933
3943
  })
3934
3944
  }) : /* @__PURE__ */ h("span", { className: Z.disclosureSpace }),
3935
3945
  /* @__PURE__ */ h("button", {
3936
3946
  type: "button",
3937
3947
  className: Z.rowName,
3938
- onClick: () => L(n),
3948
+ onClick: () => z(n),
3939
3949
  children: n.label
3940
3950
  }),
3941
3951
  n.count != null && /* @__PURE__ */ h("span", {
@@ -3956,60 +3966,60 @@ function Mn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
3956
3966
  })
3957
3967
  });
3958
3968
  return /* @__PURE__ */ h("div", {
3959
- className: `${Z.listWrap} ${b}`,
3969
+ className: `${Z.listWrap} ${x}`,
3960
3970
  children: /* @__PURE__ */ h(e, {
3961
- nodes: z,
3971
+ nodes: ee,
3962
3972
  depth: 0
3963
3973
  })
3964
3974
  });
3965
3975
  }
3966
3976
  return /* @__PURE__ */ g("div", {
3967
- ref: j,
3968
- className: `${Z.canvas} ${_ ? Z.pannable : ""} ${b}`,
3977
+ ref: N,
3978
+ className: `${Z.canvas} ${_ ? Z.pannable : ""} ${x}`,
3969
3979
  role: "tree",
3970
- "aria-label": y,
3980
+ "aria-label": b,
3971
3981
  tabIndex: _ ? 0 : void 0,
3972
3982
  children: [
3973
- v && /* @__PURE__ */ h("div", {
3974
- ref: N,
3983
+ y && /* @__PURE__ */ h("div", {
3984
+ ref: F,
3975
3985
  className: Z.grid,
3976
3986
  "aria-hidden": "true",
3977
3987
  style: {
3978
- "--tree-pattern": `var(--pattern-${v}-light)`,
3979
- "--tree-pattern-dark": `var(--pattern-${v}-dark)`,
3980
- "--tree-tile": `${Nn(v)}px`
3988
+ "--tree-pattern": `var(--pattern-${y}-light)`,
3989
+ "--tree-pattern-dark": `var(--pattern-${y}-dark)`,
3990
+ "--tree-tile": `${Pn(y)}px`
3981
3991
  }
3982
3992
  }),
3983
- B.length === 0 && /* @__PURE__ */ h("div", {
3993
+ H.length === 0 && /* @__PURE__ */ h("div", {
3984
3994
  className: Z.empty,
3985
3995
  children: "Nothing matches"
3986
3996
  }),
3987
3997
  /* @__PURE__ */ h("div", {
3988
- ref: M,
3998
+ ref: P,
3989
3999
  className: Z.view,
3990
4000
  children: /* @__PURE__ */ g("div", {
3991
- ref: D,
4001
+ ref: M,
3992
4002
  className: Z.sheet,
3993
4003
  style: {
3994
- width: H,
3995
- height: V
4004
+ width: re,
4005
+ height: ne
3996
4006
  },
3997
4007
  children: [
3998
4008
  /* @__PURE__ */ h("svg", {
3999
4009
  className: Z.edges,
4000
- width: H,
4001
- height: V,
4010
+ width: re,
4011
+ height: ne,
4002
4012
  "aria-hidden": "true",
4003
- children: B.filter((e) => e.parent).map((e) => {
4004
- let t = e.parent, n = t.x + t.width, r = t.y, i = e.x, a = e.y, o = (i - n) / 2, s = R.has(e.node.id) && R.has(t.node.id);
4013
+ children: H.filter((e) => e.parent).map((e) => {
4014
+ let t = e.parent, n = t.x + t.width, r = t.y, i = e.x, a = e.y, o = (i - n) / 2, s = B.has(e.node.id) && B.has(t.node.id);
4005
4015
  return /* @__PURE__ */ h("path", {
4006
4016
  className: `${Z.edge} ${s ? Z.edgeLit : ""} ${e.node.muted ? Z.edgeMuted : ""}`,
4007
4017
  d: `M ${n} ${r} C ${n + o} ${r}, ${i - o} ${a}, ${i} ${a}`
4008
4018
  }, e.node.id);
4009
4019
  })
4010
4020
  }),
4011
- B.map((e) => {
4012
- let n = e.node, r = n.id === t, i = R.has(n.id) && !r;
4021
+ H.map((e) => {
4022
+ let n = e.node, r = n.id === t, i = B.has(n.id) && !r;
4013
4023
  return /* @__PURE__ */ g("div", {
4014
4024
  className: Z.slot,
4015
4025
  style: {
@@ -4024,8 +4034,8 @@ function Mn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4024
4034
  "aria-level": e.depth + 1,
4025
4035
  "data-node": n.id,
4026
4036
  className: `${Z.pill} ${r ? Z.pillSelected : ""} ${i ? Z.pillPath : ""} ${n.muted ? Z.muted : ""}`,
4027
- onClick: () => L(n),
4028
- onKeyDown: (t) => ie(t, e),
4037
+ onClick: () => z(n),
4038
+ onKeyDown: (t) => ae(t, e),
4029
4039
  children: [
4030
4040
  /* @__PURE__ */ h("span", {
4031
4041
  className: Z.name,
@@ -4043,13 +4053,13 @@ function Mn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4043
4053
  n.children?.length ? /* @__PURE__ */ h("span", {
4044
4054
  className: Z.toggle,
4045
4055
  onClick: (e) => e.stopPropagation(),
4046
- children: /* @__PURE__ */ h(U, {
4056
+ children: /* @__PURE__ */ h(W, {
4047
4057
  variant: "ghost",
4048
4058
  size: "micro",
4049
4059
  tabIndex: -1,
4050
4060
  "aria-label": e.open ? "Close" : "Open",
4051
- iconLeft: e.open ? /* @__PURE__ */ h(k, {}) : /* @__PURE__ */ h(A, {}),
4052
- onClick: () => I(n.id)
4061
+ iconLeft: e.open ? /* @__PURE__ */ h(A, {}) : /* @__PURE__ */ h(j, {}),
4062
+ onClick: () => R(n.id)
4053
4063
  })
4054
4064
  }) : null
4055
4065
  ]
@@ -4057,10 +4067,10 @@ function Mn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4057
4067
  type: "button",
4058
4068
  className: Z.more,
4059
4069
  style: {
4060
- left: (ne[e.depth + 1] ?? e.x + e.width + Dn) - e.x,
4061
- top: (Pn(B, e) + 1) * Tn - (e.y - 15)
4070
+ left: (U[e.depth + 1] ?? e.x + e.width + On) - e.x,
4071
+ top: (Fn(H, e) + 1) * En - (e.y - 15)
4062
4072
  },
4063
- onClick: () => w((e) => new Set(e).add(n.id)),
4073
+ onClick: () => T((e) => new Set(e).add(n.id)),
4064
4074
  children: [
4065
4075
  "and ",
4066
4076
  e.more,
@@ -4071,23 +4081,23 @@ function Mn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4071
4081
  }),
4072
4082
  /* @__PURE__ */ h("svg", {
4073
4083
  className: Z.handles,
4074
- width: H,
4075
- height: V,
4084
+ width: re,
4085
+ height: ne,
4076
4086
  "aria-hidden": "true",
4077
- children: B.map((e) => {
4078
- let n = R.has(e.node.id);
4087
+ children: H.map((e) => {
4088
+ let n = B.has(e.node.id);
4079
4089
  return /* @__PURE__ */ g("g", { children: [e.parent && /* @__PURE__ */ h("rect", {
4080
4090
  className: `${Z.handle} ${n ? Z.handleLit : ""}`,
4081
- x: e.x - En / 2,
4082
- y: e.y - En / 2,
4083
- width: En,
4084
- height: En
4091
+ x: e.x - Dn / 2,
4092
+ y: e.y - Dn / 2,
4093
+ width: Dn,
4094
+ height: Dn
4085
4095
  }), e.open && /* @__PURE__ */ h("rect", {
4086
4096
  className: `${Z.handle} ${n && e.node.id !== t ? Z.handleLit : ""}`,
4087
- x: e.x + e.width - En / 2,
4088
- y: e.y - En / 2,
4089
- width: En,
4090
- height: En
4097
+ x: e.x + e.width - Dn / 2,
4098
+ y: e.y - Dn / 2,
4099
+ width: Dn,
4100
+ height: Dn
4091
4101
  })] }, e.node.id);
4092
4102
  })
4093
4103
  })
@@ -4100,39 +4110,62 @@ function Mn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4100
4110
  "aria-label": "Zoom",
4101
4111
  "data-tree-controls": "",
4102
4112
  children: [
4103
- /* @__PURE__ */ h(U, {
4104
- variant: "ghost",
4105
- size: "micro",
4106
- iconLeft: /* @__PURE__ */ h(A, {}),
4107
- "aria-label": "Zoom in",
4108
- title: "Zoom in (+)",
4109
- "data-tree-action": "in"
4113
+ /* @__PURE__ */ h($t, {
4114
+ content: "Zoom in (+)",
4115
+ position: "right",
4116
+ children: /* @__PURE__ */ h(W, {
4117
+ variant: "ghost",
4118
+ size: "micro",
4119
+ iconLeft: /* @__PURE__ */ h(j, {}),
4120
+ "aria-label": "Zoom in",
4121
+ "data-tree-action": "in"
4122
+ })
4110
4123
  }),
4111
- /* @__PURE__ */ h(U, {
4112
- variant: "ghost",
4113
- size: "micro",
4114
- iconLeft: /* @__PURE__ */ h(k, {}),
4115
- "aria-label": "Zoom out",
4116
- title: "Zoom out (-)",
4117
- "data-tree-action": "out"
4124
+ /* @__PURE__ */ h($t, {
4125
+ content: "Zoom out (-)",
4126
+ position: "right",
4127
+ children: /* @__PURE__ */ h(W, {
4128
+ variant: "ghost",
4129
+ size: "micro",
4130
+ iconLeft: /* @__PURE__ */ h(A, {}),
4131
+ "aria-label": "Zoom out",
4132
+ "data-tree-action": "out"
4133
+ })
4118
4134
  }),
4119
- /* @__PURE__ */ h(U, {
4120
- variant: "ghost",
4121
- size: "micro",
4122
- iconLeft: /* @__PURE__ */ h(O, {}),
4123
- "aria-label": "Fit the tree in view",
4124
- title: "Fit in view (0)",
4125
- "data-tree-action": "fit"
4135
+ /* @__PURE__ */ h($t, {
4136
+ content: "Fit in view (0)",
4137
+ position: "right",
4138
+ children: /* @__PURE__ */ h(W, {
4139
+ variant: "ghost",
4140
+ size: "micro",
4141
+ iconLeft: /* @__PURE__ */ h(O, {}),
4142
+ "aria-label": "Fit the tree in view",
4143
+ "data-tree-action": "fit"
4144
+ })
4126
4145
  }),
4127
- /* @__PURE__ */ h(U, {
4128
- variant: "ghost",
4129
- size: "micro",
4130
- "aria-label": "Zoom to 100%",
4131
- title: "Zoom to 100%",
4132
- "data-tree-action": "reset",
4133
- children: /* @__PURE__ */ h("span", {
4134
- className: Z.zoomLabel,
4135
- "data-tree-zoom-label": ""
4146
+ v && /* @__PURE__ */ h($t, {
4147
+ content: "Full screen (Esc to leave)",
4148
+ position: "right",
4149
+ children: /* @__PURE__ */ h(W, {
4150
+ variant: "ghost",
4151
+ size: "micro",
4152
+ iconLeft: /* @__PURE__ */ h(k, {}),
4153
+ "aria-label": "Full screen",
4154
+ "data-tree-action": "fullscreen"
4155
+ })
4156
+ }),
4157
+ /* @__PURE__ */ h($t, {
4158
+ content: "Zoom to 100%",
4159
+ position: "right",
4160
+ children: /* @__PURE__ */ h(W, {
4161
+ variant: "ghost",
4162
+ size: "micro",
4163
+ "aria-label": "Zoom to 100%",
4164
+ "data-tree-action": "reset",
4165
+ children: /* @__PURE__ */ h("span", {
4166
+ className: Z.zoomLabel,
4167
+ "data-tree-zoom-label": ""
4168
+ })
4136
4169
  })
4137
4170
  })
4138
4171
  ]
@@ -4140,26 +4173,26 @@ function Mn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4140
4173
  ]
4141
4174
  });
4142
4175
  }
4143
- function Nn(e) {
4176
+ function Pn(e) {
4144
4177
  let t = Number(e.slice(e.lastIndexOf("-") + 1));
4145
4178
  return Number.isFinite(t) ? t : 2;
4146
4179
  }
4147
- function Pn(e, t) {
4180
+ function Fn(e, t) {
4148
4181
  let n = e.filter((e) => e.parent === t), r = n[n.length - 1];
4149
- return Math.round(r ? (r.y - Tn / 2) / Tn : (t.y - Tn / 2) / Tn);
4182
+ return Math.round(r ? (r.y - En / 2) / En : (t.y - En / 2) / En);
4150
4183
  }
4151
- var Fn = {
4184
+ var In = {
4152
4185
  chip: "_chip_iaxe0_1",
4153
4186
  large: "_large_iaxe0_14"
4154
4187
  };
4155
4188
  // src/components/Chip/Chip.tsx
4156
- function In({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
4189
+ function Ln({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
4157
4190
  let s = {};
4158
4191
  return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ g("span", {
4159
4192
  className: [
4160
- Fn.chip,
4193
+ In.chip,
4161
4194
  "indx-chip",
4162
- o === "large" && Fn.large,
4195
+ o === "large" && In.large,
4163
4196
  i
4164
4197
  ].filter(Boolean).join(" "),
4165
4198
  style: s,
@@ -4169,7 +4202,7 @@ function In({ children: t, color: n, textColor: r, className: i, icon: a, size:
4169
4202
  }), t]
4170
4203
  });
4171
4204
  }
4172
- var Ln = {
4205
+ var Rn = {
4173
4206
  root: "_root_ok48u_3",
4174
4207
  icon: "_icon_ok48u_16",
4175
4208
  body: "_body_ok48u_17",
@@ -4180,54 +4213,54 @@ var Ln = {
4180
4213
  success: "_success_ok48u_24",
4181
4214
  warning: "_warning_ok48u_25",
4182
4215
  destructive: "_destructive_ok48u_26"
4183
- }, Rn = {
4216
+ }, zn = {
4184
4217
  success: /* @__PURE__ */ h(b, {}),
4185
- warning: /* @__PURE__ */ h(N, {}),
4186
- destructive: /* @__PURE__ */ h(N, {})
4218
+ warning: /* @__PURE__ */ h(P, {}),
4219
+ destructive: /* @__PURE__ */ h(P, {})
4187
4220
  };
4188
- function zn(t) {
4221
+ function Bn(t) {
4189
4222
  return e.isValidElement(t) ? e.cloneElement(t, {
4190
4223
  size: 14,
4191
4224
  color: "currentColor"
4192
4225
  }) : t;
4193
4226
  }
4194
- var Bn = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
4195
- let a = t === void 0 ? Rn[e] : t;
4227
+ var Vn = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
4228
+ let a = t === void 0 ? zn[e] : t;
4196
4229
  return /* @__PURE__ */ g("div", {
4197
4230
  role: i ?? (e === "destructive" || e === "warning" ? "alert" : "status"),
4198
- className: `${Ln.root} ${Ln[e]} ${n}`,
4231
+ className: `${Rn.root} ${Rn[e]} ${n}`,
4199
4232
  children: [a && /* @__PURE__ */ h("span", {
4200
- className: Ln.icon,
4233
+ className: Rn.icon,
4201
4234
  "aria-hidden": "true",
4202
- children: zn(a)
4235
+ children: Bn(a)
4203
4236
  }), /* @__PURE__ */ h("div", {
4204
- className: Ln.body,
4237
+ className: Rn.body,
4205
4238
  children: r
4206
4239
  })]
4207
4240
  });
4208
- }, Vn = ({ children: e, className: t = "" }) => /* @__PURE__ */ h("div", {
4209
- className: `${Ln.title} ${t}`,
4241
+ }, Hn = ({ children: e, className: t = "" }) => /* @__PURE__ */ h("div", {
4242
+ className: `${Rn.title} ${t}`,
4210
4243
  children: e
4211
- }), Hn = ({ children: e, className: t = "" }) => /* @__PURE__ */ h("div", {
4212
- className: `${Ln.description} ${t}`,
4244
+ }), Un = ({ children: e, className: t = "" }) => /* @__PURE__ */ h("div", {
4245
+ className: `${Rn.description} ${t}`,
4213
4246
  children: e
4214
- }), Un = {
4247
+ }), Wn = {
4215
4248
  root: "_root_1aak8_10",
4216
4249
  main: "_main_1aak8_33",
4217
4250
  aside: "_aside_1aak8_34",
4218
4251
  message: "_message_1aak8_41"
4219
- }, Wn = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ g("div", {
4252
+ }, Gn = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ g("div", {
4220
4253
  role: "region",
4221
4254
  "aria-label": a,
4222
- className: `${Un.root} ${i}`,
4255
+ className: `${Wn.root} ${i}`,
4223
4256
  children: [/* @__PURE__ */ g("div", {
4224
- className: Un.main,
4257
+ className: Wn.main,
4225
4258
  children: [r, t && /* @__PURE__ */ h("span", {
4226
- className: Un.message,
4259
+ className: Wn.message,
4227
4260
  children: t
4228
4261
  })]
4229
4262
  }), n && /* @__PURE__ */ h("div", {
4230
- className: Un.aside,
4263
+ className: Wn.aside,
4231
4264
  children: n
4232
4265
  })]
4233
4266
  }) : null, Q = {
@@ -4251,7 +4284,7 @@ var Bn = ({ variant: e = "default", icon: t, className: n = "", children: r, rol
4251
4284
  marker: "_marker_zc98n_135",
4252
4285
  tooltipMarker: "_tooltipMarker_zc98n_139",
4253
4286
  markerDot: "_markerDot_zc98n_143"
4254
- }, Gn = "var(--lv4)", Kn = 12, qn = 20, Jn = 8, Yn = 28, Xn = 20, Zn = {
4287
+ }, Kn = "var(--lv4)", qn = 12, Jn = 20, Yn = 8, Xn = 28, Zn = 20, Qn = {
4255
4288
  hatch: [
4256
4289
  [
4257
4290
  0,
@@ -4295,22 +4328,22 @@ var Bn = ({ variant: e = "default", icon: t, className: n = "", children: r, rol
4295
4328
  2,
4296
4329
  2
4297
4330
  ]]
4298
- }, Qn = .14, $n = "var(--CSignal)";
4299
- function er(e, t = 4) {
4331
+ }, $n = .14, er = "var(--CSignal)";
4332
+ function tr(e, t = 4) {
4300
4333
  let n = e / t || 1, r = 10 ** Math.floor(Math.log10(n)), i = n / r;
4301
4334
  return (i <= 1 ? 1 : i <= 2 ? 2 : i <= 5 ? 5 : 10) * r;
4302
4335
  }
4303
- function tr(e) {
4336
+ function nr(e) {
4304
4337
  let t = Math.abs(e);
4305
- return t >= 1e6 ? `${nr(e / 1e6)}M` : t >= 1e3 ? `${nr(e / 1e3)}k` : nr(e);
4338
+ return t >= 1e6 ? `${rr(e / 1e6)}M` : t >= 1e3 ? `${rr(e / 1e3)}k` : rr(e);
4306
4339
  }
4307
- function nr(e) {
4340
+ function rr(e) {
4308
4341
  return e.toLocaleString(void 0, { maximumFractionDigits: Math.abs(e) < 10 ? 2 : 1 });
4309
4342
  }
4310
- function rr(e) {
4343
+ function ir(e) {
4311
4344
  return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
4312
4345
  }
4313
- function ir({ series: t, labels: n, type: r = "line", height: a = 200, showLegend: c = !0, className: l, markers: u, yAxis: p = "none", yFormat: _ = tr, references: v, stacked: y = !1 }) {
4346
+ function ar({ series: t, labels: n, type: r = "line", height: a = 200, showLegend: c = !0, className: l, markers: u, yAxis: p = "none", yFormat: _ = nr, references: v, stacked: y = !1 }) {
4314
4347
  let b = y && r === "bar", x = d(null), S = s(), [C, w] = f(0), [T, E] = f(null);
4315
4348
  o(() => {
4316
4349
  let e = x.current;
@@ -4318,25 +4351,25 @@ function ir({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4318
4351
  let t = new ResizeObserver(([e]) => w(e.contentRect.width));
4319
4352
  return t.observe(e), w(e.clientWidth), () => t.disconnect();
4320
4353
  }, []);
4321
- let D = n?.length ? Yn : Jn, O = Math.max(a - Kn - D, 0), k = Math.max(...t.map((e) => e.data.length), 0), A = b ? Array.from({ length: k }, (e, n) => t.reduce((e, t) => e + Math.max(0, t.data[n] ?? 0), 0)) : [], j = b ? A : t.flatMap((e) => [...e.data, ...r === "line" ? [...e.low ?? [], ...e.high ?? []] : []].filter(Number.isFinite)), M = (v ?? []).map((e) => e.value).filter(Number.isFinite), N = j.length || M.length ? Math.max(...j, ...M, 0) : 1, P = r === "bar" ? Math.min(0, ...M) : Math.min(...j, ...M, 0), F = p !== "none", I = er(N - P);
4354
+ let D = n?.length ? Xn : Yn, O = Math.max(a - qn - D, 0), k = Math.max(...t.map((e) => e.data.length), 0), A = b ? Array.from({ length: k }, (e, n) => t.reduce((e, t) => e + Math.max(0, t.data[n] ?? 0), 0)) : [], j = b ? A : t.flatMap((e) => [...e.data, ...r === "line" ? [...e.low ?? [], ...e.high ?? []] : []].filter(Number.isFinite)), M = (v ?? []).map((e) => e.value).filter(Number.isFinite), N = j.length || M.length ? Math.max(...j, ...M, 0) : 1, P = r === "bar" ? Math.min(0, ...M) : Math.min(...j, ...M, 0), F = p !== "none", I = tr(N - P);
4322
4355
  F && (N = Math.ceil(N / I - 1e-9) * I, P = Math.floor(P / I + 1e-9) * I);
4323
4356
  let L = N - P || 1, R = [];
4324
4357
  if (F) for (let e = P; e <= N + I / 2; e += I) R.push(Number(e.toFixed(10)));
4325
- let z = (e) => e.label ?? _(e.value), ee = F ? Math.max(...R.map((e) => _(e).length)) * 6 + 10 : 0, te = v?.length ? Math.max(...v.map((e) => z(e).length)) * 6 + 8 : 0, B = p === "left" ? ee + 4 : Xn, ne = Math.max(p === "right" ? ee + 4 : qn, te ? te + 6 : 0), V = Math.max(C - B - ne, 0), H = Math.max(...t.map((e) => e.data.length), 0), U = (() => {
4326
- if (!n || n.length <= 1 || V <= 0) return 1;
4327
- let e = Math.max(...n.map((e) => e.length)) * 6 + 12, t = Math.max(Math.floor(V / e), 1);
4358
+ let z = (e) => e.label ?? _(e.value), B = F ? Math.max(...R.map((e) => _(e).length)) * 6 + 10 : 0, ee = v?.length ? Math.max(...v.map((e) => z(e).length)) * 6 + 8 : 0, V = p === "left" ? B + 4 : Zn, te = Math.max(p === "right" ? B + 4 : Jn, ee ? ee + 6 : 0), H = Math.max(C - V - te, 0), U = Math.max(...t.map((e) => e.data.length), 0), ne = (() => {
4359
+ if (!n || n.length <= 1 || H <= 0) return 1;
4360
+ let e = Math.max(...n.map((e) => e.length)) * 6 + 12, t = Math.max(Math.floor(H / e), 1);
4328
4361
  return Math.ceil(n.length / t);
4329
- })(), re = H <= 1 || V / (H - 1) >= 12, ie = (e) => Kn + (1 - (e - P) / L) * O, ae = ie(Math.max(P, 0)), oe = (e, t, n = e.length) => {
4362
+ })(), W = U <= 1 || H / (U - 1) >= 12, re = (e) => qn + (1 - (e - P) / L) * O, ie = re(Math.max(P, 0)), ae = (e, t, n = e.length) => {
4330
4363
  let r = [];
4331
- for (let i = 0; i < n; i++) t && i > 0 && r.push(`${he(i).toFixed(2)},${ie(e[i - 1]).toFixed(2)}`), r.push(`${he(i).toFixed(2)},${ie(e[i]).toFixed(2)}`);
4364
+ for (let i = 0; i < n; i++) t && i > 0 && r.push(`${me(i).toFixed(2)},${re(e[i - 1]).toFixed(2)}`), r.push(`${me(i).toFixed(2)},${re(e[i]).toFixed(2)}`);
4332
4365
  return r;
4333
- }, se = (v ?? []).filter((e) => e.signal && Number.isFinite(e.value)), ce = se.length ? ie(Math.min(...se.map((e) => e.value))) : null, le = `${S}-signal`, ue = (e) => e.fill ?? (r === "bar" ? "solid" : "none"), de = (e) => e.color ?? (r === "bar" ? "var(--chart-bar)" : Gn), fe = (e) => `url(#${S}-${e})`, pe = (e, t) => {
4334
- let n = ue(e);
4335
- return n === "hatch" || n === "dots" || n === "checker" ? fe(t) : de(e);
4336
- }, me = t.some((e) => ue(e) in Zn) ? /* @__PURE__ */ h("defs", { children: t.map((e, t) => {
4337
- let n = ue(e);
4338
- if (!(n in Zn)) return null;
4339
- let r = Zn[n];
4366
+ }, oe = (v ?? []).filter((e) => e.signal && Number.isFinite(e.value)), se = oe.length ? re(Math.min(...oe.map((e) => e.value))) : null, ce = `${S}-signal`, le = (e) => e.fill ?? (r === "bar" ? "solid" : "none"), ue = (e) => e.color ?? (r === "bar" ? "var(--chart-bar)" : Kn), de = (e) => `url(#${S}-${e})`, fe = (e, t) => {
4367
+ let n = le(e);
4368
+ return n === "hatch" || n === "dots" || n === "checker" ? de(t) : ue(e);
4369
+ }, pe = t.some((e) => le(e) in Qn) ? /* @__PURE__ */ h("defs", { children: t.map((e, t) => {
4370
+ let n = le(e);
4371
+ if (!(n in Qn)) return null;
4372
+ let r = Qn[n];
4340
4373
  return /* @__PURE__ */ h("pattern", {
4341
4374
  id: `${S}-${t}`,
4342
4375
  width: 4,
@@ -4347,50 +4380,50 @@ function ir({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4347
4380
  y: n,
4348
4381
  width: r,
4349
4382
  height: i,
4350
- fill: de(e)
4383
+ fill: ue(e)
4351
4384
  }, a))
4352
4385
  }, t);
4353
- }) }) : null, he = (e) => H <= 1 ? B + V / 2 : B + e / (H - 1) * V, ge = i((e) => {
4354
- if (H === 0) return;
4386
+ }) }) : null, me = (e) => U <= 1 ? V + H / 2 : V + e / (U - 1) * H, he = i((e) => {
4387
+ if (U === 0) return;
4355
4388
  let t = e.currentTarget.getBoundingClientRect(), n = e.clientX - t.left, i = e.clientY - t.top;
4356
4389
  if (r === "line") {
4357
- let e = Math.round((n - B) / V * (H - 1));
4390
+ let e = Math.round((n - V) / H * (U - 1));
4358
4391
  E({
4359
- index: Math.max(0, Math.min(H - 1, e)),
4392
+ index: Math.max(0, Math.min(U - 1, e)),
4360
4393
  x: n,
4361
4394
  y: i
4362
4395
  });
4363
4396
  } else {
4364
- let e = V / H, t = Math.floor((n - B) / e);
4397
+ let e = H / U, t = Math.floor((n - V) / e);
4365
4398
  E({
4366
- index: Math.max(0, Math.min(H - 1, t)),
4399
+ index: Math.max(0, Math.min(U - 1, t)),
4367
4400
  x: n,
4368
4401
  y: i
4369
4402
  });
4370
4403
  }
4371
4404
  }, [
4372
4405
  r,
4373
- H,
4374
- V
4375
- ]), _e = i((e) => {
4406
+ U,
4407
+ H
4408
+ ]), ge = i((e) => {
4376
4409
  e.pointerType === "mouse" && E(null);
4377
- }, []), ve = F ? null : /* @__PURE__ */ h("line", {
4378
- x1: B,
4379
- y1: Kn + O * .5,
4380
- x2: B + V,
4381
- y2: Kn + O * .5,
4410
+ }, []), _e = F ? null : /* @__PURE__ */ h("line", {
4411
+ x1: V,
4412
+ y1: qn + O * .5,
4413
+ x2: V + H,
4414
+ y2: qn + O * .5,
4382
4415
  stroke: "var(--chart-midline)",
4383
4416
  strokeWidth: "0.5"
4384
- }), ye = (v ?? []).filter((e) => Number.isFinite(e.value)).map((e) => ie(e.value)), be = (e) => p === "right" && ye.some((t) => Math.abs(t - e) < 12), W = F ? /* @__PURE__ */ h("g", { children: R.map((e) => {
4385
- let t = ie(e), n = p === "left" ? B - 6 : B + V + 6;
4417
+ }), ve = (v ?? []).filter((e) => Number.isFinite(e.value)).map((e) => re(e.value)), ye = (e) => p === "right" && ve.some((t) => Math.abs(t - e) < 12), be = F ? /* @__PURE__ */ h("g", { children: R.map((e) => {
4418
+ let t = re(e), n = p === "left" ? V - 6 : V + H + 6;
4386
4419
  return /* @__PURE__ */ g("g", { children: [e !== P && /* @__PURE__ */ h("line", {
4387
- x1: B,
4420
+ x1: V,
4388
4421
  y1: t,
4389
- x2: B + V,
4422
+ x2: V + H,
4390
4423
  y2: t,
4391
4424
  stroke: "var(--chart-midline)",
4392
4425
  strokeWidth: "0.5"
4393
- }), !be(t) && /* @__PURE__ */ h("text", {
4426
+ }), !ye(t) && /* @__PURE__ */ h("text", {
4394
4427
  x: n,
4395
4428
  y: t + 3,
4396
4429
  textAnchor: p === "left" ? "end" : "start",
@@ -4398,65 +4431,65 @@ function ir({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4398
4431
  style: { font: "var(--text-2xs)" },
4399
4432
  children: _(e)
4400
4433
  })] }, e);
4401
- }) }) : null, xe = v?.filter((e) => Number.isFinite(e.value)).map((e, t) => {
4402
- let n = ie(e.value), r = e.color ?? "var(--lv8)", i = z(e), a = i.length * 6 + 8;
4434
+ }) }) : null, G = v?.filter((e) => Number.isFinite(e.value)).map((e, t) => {
4435
+ let n = re(e.value), r = e.color ?? "var(--lv8)", i = z(e), a = i.length * 6 + 8;
4403
4436
  return /* @__PURE__ */ g("g", { children: [
4404
4437
  /* @__PURE__ */ h("line", {
4405
- x1: B,
4438
+ x1: V,
4406
4439
  y1: n,
4407
- x2: B + V,
4440
+ x2: V + H,
4408
4441
  y2: n,
4409
4442
  stroke: r,
4410
4443
  strokeWidth: "1",
4411
4444
  strokeDasharray: "3 3"
4412
4445
  }),
4413
4446
  /* @__PURE__ */ h("rect", {
4414
- x: B + V + 4,
4447
+ x: V + H + 4,
4415
4448
  y: n - 7,
4416
4449
  width: a,
4417
4450
  height: 14,
4418
4451
  fill: r
4419
4452
  }),
4420
4453
  /* @__PURE__ */ h("text", {
4421
- x: B + V + 8,
4454
+ x: V + H + 8,
4422
4455
  y: n + 3,
4423
4456
  fill: "var(--lv0)",
4424
4457
  style: { font: "var(--text-2xs)" },
4425
4458
  children: i
4426
4459
  })
4427
4460
  ] }, t);
4428
- }), Se = /* @__PURE__ */ h("line", {
4429
- x1: B,
4430
- y1: Kn + O,
4431
- x2: B + V,
4432
- y2: Kn + O,
4461
+ }), xe = /* @__PURE__ */ h("line", {
4462
+ x1: V,
4463
+ y1: qn + O,
4464
+ x2: V + H,
4465
+ y2: qn + O,
4433
4466
  stroke: "var(--chart-baseline)",
4434
4467
  strokeWidth: "1"
4435
- }), Ce = T && r === "bar" ? (() => {
4436
- let e = V / H;
4468
+ }), Se = T && r === "bar" ? (() => {
4469
+ let e = H / U;
4437
4470
  return /* @__PURE__ */ h("rect", {
4438
- x: B + T.index * e,
4439
- y: Kn,
4471
+ x: V + T.index * e,
4472
+ y: qn,
4440
4473
  width: e,
4441
4474
  height: O,
4442
4475
  fill: "var(--chart-column-hover)"
4443
4476
  });
4444
- })() : null, we = (e) => t.map((t, n) => {
4477
+ })() : null, Ce = (e) => t.map((t, n) => {
4445
4478
  if (!t.data.length) return null;
4446
- let r = e ?? t.color ?? Gn, i = oe(t.data, t.step).join(" "), a = ue(t), o = !e && !!(t.low && t.high && t.low.length && t.high.length), s = o ? (() => {
4479
+ let r = e ?? t.color ?? Kn, i = ae(t.data, t.step).join(" "), a = le(t), o = !e && !!(t.low && t.high && t.low.length && t.high.length), s = o ? (() => {
4447
4480
  let e = Math.min(t.data.length, t.low.length, t.high.length);
4448
4481
  if (e < 2) return null;
4449
- let i = oe(t.high, t.step, e), o = oe(t.low, t.step, e).reverse(), s = a in Zn;
4482
+ let i = ae(t.high, t.step, e), o = ae(t.low, t.step, e).reverse(), s = a in Qn;
4450
4483
  return /* @__PURE__ */ h("polygon", {
4451
4484
  points: [...i, ...o].join(" "),
4452
- fill: s ? fe(n) : r,
4453
- fillOpacity: s ? 1 : Qn,
4485
+ fill: s ? de(n) : r,
4486
+ fillOpacity: s ? 1 : $n,
4454
4487
  stroke: "none"
4455
4488
  });
4456
4489
  })() : null, c = !e && !o && a !== "none" && t.data.length > 1 ? /* @__PURE__ */ h("polygon", {
4457
- points: `${he(0).toFixed(2)},${ae.toFixed(2)} ${i} ${he(t.data.length - 1).toFixed(2)},${ae.toFixed(2)}`,
4458
- fill: pe(t, n),
4459
- fillOpacity: a === "solid" ? Qn : 1,
4490
+ points: `${me(0).toFixed(2)},${ie.toFixed(2)} ${i} ${me(t.data.length - 1).toFixed(2)},${ie.toFixed(2)}`,
4491
+ fill: fe(t, n),
4492
+ fillOpacity: a === "solid" ? $n : 1,
4460
4493
  stroke: "none"
4461
4494
  }) : null;
4462
4495
  return /* @__PURE__ */ g("g", { children: [
@@ -4472,38 +4505,38 @@ function ir({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4472
4505
  }),
4473
4506
  t.data.map((e, t) => {
4474
4507
  let n = T?.index === t;
4475
- if (!n && !re) return null;
4476
- let i = n ? re ? 10 : 7 : 5, a = i / 2;
4508
+ if (!n && !W) return null;
4509
+ let i = n ? W ? 10 : 7 : 5, a = i / 2;
4477
4510
  return /* @__PURE__ */ h("rect", {
4478
- x: he(t) - a,
4479
- y: ie(e) - a,
4511
+ x: me(t) - a,
4512
+ y: re(e) - a,
4480
4513
  width: i,
4481
4514
  height: i,
4482
4515
  fill: r
4483
4516
  }, t);
4484
4517
  })
4485
4518
  ] }, `${e ? "signal-" : ""}${n}`);
4486
- }), Te = (e) => {
4487
- if (!H) return null;
4488
- let n = b ? 1 : t.length, r = V / H, i = Math.max((r - 2 * (n + 1)) / n, 2), a = Kn + O, o = Array(H).fill(0);
4519
+ }), we = (e) => {
4520
+ if (!U) return null;
4521
+ let n = b ? 1 : t.length, r = H / U, i = Math.max((r - 2 * (n + 1)) / n, 2), a = qn + O, o = Array(U).fill(0);
4489
4522
  return t.map((t, n) => t.data.map((s, c) => {
4490
- let l = b ? B + c * r + 2 : B + c * r + 2 + n * (i + 2), u = b ? Math.max(0, s) : s, d = b ? o[c] : 0;
4523
+ let l = b ? V + c * r + 2 : V + c * r + 2 + n * (i + 2), u = b ? Math.max(0, s) : s, d = b ? o[c] : 0;
4491
4524
  b && (o[c] += u);
4492
- let f = ie(d + u), p = Math.max(b ? ie(d) - f : a - f, 0);
4525
+ let f = re(d + u), p = Math.max(b ? re(d) - f : a - f, 0);
4493
4526
  return /* @__PURE__ */ h("rect", {
4494
4527
  x: l,
4495
4528
  y: f,
4496
4529
  width: i,
4497
4530
  height: p,
4498
- fill: e ?? pe(t, n)
4531
+ fill: e ?? fe(t, n)
4499
4532
  }, `${e ? "signal-" : ""}${n}-${c}`);
4500
4533
  }));
4501
- }, Ee = () => {
4534
+ }, Te = () => {
4502
4535
  if (!n?.length) return null;
4503
- let e = Kn + O + 18, t = n.length - 1;
4536
+ let e = qn + O + 18, t = n.length - 1;
4504
4537
  return n.map((n, i) => {
4505
- if ((t - i) % U !== 0) return null;
4506
- let a = r === "line" ? he(i) : B + (i + .5) * (V / H);
4538
+ if ((t - i) % ne !== 0) return null;
4539
+ let a = r === "line" ? me(i) : V + (i + .5) * (H / U);
4507
4540
  return /* @__PURE__ */ h("text", {
4508
4541
  x: a,
4509
4542
  y: e,
@@ -4513,16 +4546,16 @@ function ir({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4513
4546
  children: n
4514
4547
  }, i);
4515
4548
  });
4516
- }, De = T && r === "line" ? /* @__PURE__ */ h("line", {
4517
- x1: he(T.index),
4518
- y1: Kn,
4519
- x2: he(T.index),
4520
- y2: Kn + O,
4549
+ }, Ee = T && r === "line" ? /* @__PURE__ */ h("line", {
4550
+ x1: me(T.index),
4551
+ y1: qn,
4552
+ x2: me(T.index),
4553
+ y2: qn + O,
4521
4554
  stroke: "var(--chart-crosshair)",
4522
4555
  strokeWidth: "1",
4523
4556
  strokeDasharray: "3 3"
4524
- }) : null, Oe = T ? (() => {
4525
- let i = n?.[T.index] ?? String(T.index + 1), o = t.length + t.filter((e) => e.low && e.high && e.low[T.index] != null && e.high[T.index] != null).length + (b && t.length > 1 ? 1 : 0) + (u?.filter((e) => e.index === T.index).length ?? 0), s = Math.max(i.length, ...t.map((e) => e.label.length + 8), ...u?.map((e) => e.label.length) ?? [0]), c = Math.min(Math.max(90, s * 6.5 + 36), Math.max(120, C - 16)), l = 30 + o * 20, d = r === "bar" && H > 0 ? V / H / 2 : 0, f = r === "bar" && H > 0 ? B + (T.index + .5) * (V / H) : he(T.index), p = {
4557
+ }) : null, De = T ? (() => {
4558
+ let i = n?.[T.index] ?? String(T.index + 1), o = t.length + t.filter((e) => e.low && e.high && e.low[T.index] != null && e.high[T.index] != null).length + (b && t.length > 1 ? 1 : 0) + (u?.filter((e) => e.index === T.index).length ?? 0), s = Math.max(i.length, ...t.map((e) => e.label.length + 8), ...u?.map((e) => e.label.length) ?? [0]), c = Math.min(Math.max(90, s * 6.5 + 36), Math.max(120, C - 16)), l = 30 + o * 20, d = r === "bar" && U > 0 ? H / U / 2 : 0, f = r === "bar" && U > 0 ? V + (T.index + .5) * (H / U) : me(T.index), p = {
4526
4559
  left: f + d + 12 + c <= C - 4 ? f + d + 12 : Math.max(4, f - d - 12 - c),
4527
4560
  top: Math.max(4, Math.min(T.y - l / 2, a - l - 4))
4528
4561
  };
@@ -4539,7 +4572,7 @@ function ir({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4539
4572
  children: [
4540
4573
  /* @__PURE__ */ h("span", {
4541
4574
  className: Q.tooltipDot,
4542
- style: { background: t.color ?? Gn }
4575
+ style: { background: t.color ?? Kn }
4543
4576
  }),
4544
4577
  /* @__PURE__ */ h("span", {
4545
4578
  className: Q.tooltipName,
@@ -4547,7 +4580,7 @@ function ir({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4547
4580
  }),
4548
4581
  /* @__PURE__ */ h("span", {
4549
4582
  className: Q.tooltipValue,
4550
- children: rr(t.data[T.index] ?? 0)
4583
+ children: ir(t.data[T.index] ?? 0)
4551
4584
  })
4552
4585
  ]
4553
4586
  }), t.low && t.high && t.low[T.index] != null && t.high[T.index] != null && /* @__PURE__ */ g("div", {
@@ -4564,9 +4597,9 @@ function ir({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4564
4597
  /* @__PURE__ */ g("span", {
4565
4598
  className: Q.tooltipRangeValue,
4566
4599
  children: [
4567
- rr(t.low[T.index]),
4600
+ ir(t.low[T.index]),
4568
4601
  " to ",
4569
- rr(t.high[T.index])
4602
+ ir(t.high[T.index])
4570
4603
  ]
4571
4604
  })
4572
4605
  ]
@@ -4584,7 +4617,7 @@ function ir({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4584
4617
  }),
4585
4618
  /* @__PURE__ */ h("span", {
4586
4619
  className: Q.tooltipValue,
4587
- children: rr(A[T.index] ?? 0)
4620
+ children: ir(A[T.index] ?? 0)
4588
4621
  })
4589
4622
  ]
4590
4623
  }),
@@ -4608,48 +4641,48 @@ function ir({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4608
4641
  width: C,
4609
4642
  height: a,
4610
4643
  className: Q.svg,
4611
- onPointerMove: ge,
4612
- onPointerDown: ge,
4613
- onPointerLeave: _e,
4644
+ onPointerMove: he,
4645
+ onPointerDown: he,
4646
+ onPointerLeave: ge,
4614
4647
  children: [
4615
- me,
4616
- ve,
4617
- W,
4648
+ pe,
4649
+ _e,
4650
+ be,
4651
+ xe,
4618
4652
  Se,
4619
- Ce,
4620
- De,
4621
- r === "line" ? we() : Te(),
4622
- ce != null && ce > Kn && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("defs", { children: /* @__PURE__ */ h("clipPath", {
4623
- id: le,
4653
+ Ee,
4654
+ r === "line" ? Ce() : we(),
4655
+ se != null && se > qn && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("defs", { children: /* @__PURE__ */ h("clipPath", {
4656
+ id: ce,
4624
4657
  children: /* @__PURE__ */ h("rect", {
4625
- x: B,
4626
- y: Kn,
4627
- width: V,
4628
- height: ce - Kn
4658
+ x: V,
4659
+ y: qn,
4660
+ width: H,
4661
+ height: se - qn
4629
4662
  })
4630
4663
  }) }), /* @__PURE__ */ h("g", {
4631
- clipPath: `url(#${le})`,
4632
- children: r === "line" ? we($n) : Te($n)
4664
+ clipPath: `url(#${ce})`,
4665
+ children: r === "line" ? Ce(er) : we(er)
4633
4666
  })] }),
4634
- u && H > 0 && [...new Set(u.map((e) => e.index).filter((e) => e >= 0 && e < H))].map((e) => {
4635
- let t = r === "line" ? he(e) : B + (e + .5) * (V / H);
4667
+ u && U > 0 && [...new Set(u.map((e) => e.index).filter((e) => e >= 0 && e < U))].map((e) => {
4668
+ let t = r === "line" ? me(e) : V + (e + .5) * (H / U);
4636
4669
  return /* @__PURE__ */ h("rect", {
4637
4670
  className: Q.marker,
4638
4671
  x: t - 3,
4639
- y: Kn + O - 3,
4672
+ y: qn + O - 3,
4640
4673
  width: 6,
4641
4674
  height: 6
4642
4675
  }, `m${e}`);
4643
4676
  }),
4644
- Ee(),
4645
- xe
4677
+ Te(),
4678
+ G
4646
4679
  ]
4647
- }), Oe]
4680
+ }), De]
4648
4681
  }), c && t.length > 1 && /* @__PURE__ */ h("div", {
4649
4682
  className: Q.legend,
4650
4683
  children: t.map((e, t) => /* @__PURE__ */ g("div", {
4651
4684
  className: Q.legendItem,
4652
- children: [ue(e) in Zn ? /* @__PURE__ */ h("svg", {
4685
+ children: [le(e) in Qn ? /* @__PURE__ */ h("svg", {
4653
4686
  className: Q.legendSwatch,
4654
4687
  width: 12,
4655
4688
  height: 8,
@@ -4657,11 +4690,11 @@ function ir({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4657
4690
  children: /* @__PURE__ */ h("rect", {
4658
4691
  width: 12,
4659
4692
  height: 8,
4660
- fill: fe(t)
4693
+ fill: de(t)
4661
4694
  })
4662
4695
  }) : /* @__PURE__ */ h("div", {
4663
4696
  className: Q.legendMark,
4664
- style: { background: e.color ?? Gn }
4697
+ style: { background: e.color ?? Kn }
4665
4698
  }), /* @__PURE__ */ h("span", {
4666
4699
  className: Q.legendLabel,
4667
4700
  children: e.label
@@ -4670,7 +4703,7 @@ function ir({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4670
4703
  })]
4671
4704
  });
4672
4705
  }
4673
- var ar = {
4706
+ var or = {
4674
4707
  sparkline: "_sparkline_fqcg9_4",
4675
4708
  line: "_line_fqcg9_12",
4676
4709
  partial: "_partial_fqcg9_22",
@@ -4678,16 +4711,16 @@ var ar = {
4678
4711
  bars: "_bars_fqcg9_34",
4679
4712
  bar: "_bar_fqcg9_34",
4680
4713
  baseline: "_baseline_fqcg9_48"
4681
- }, or = 100, sr = 100;
4682
- function cr({ values: e, type: t = "line", width: n = "100%", height: r = 24, color: i = "currentColor", fill: a = !1, baseline: o = !1, lastIsPartial: c = !1, gap: l = 1, idleColor: u, ariaLabel: d, className: f }) {
4714
+ }, sr = 100, cr = 100;
4715
+ function lr({ values: e, type: t = "line", width: n = "100%", height: r = 24, color: i = "currentColor", fill: a = !1, baseline: o = !1, lastIsPartial: c = !1, gap: l = 1, idleColor: u, ariaLabel: d, className: f }) {
4683
4716
  let p = `spark-${s().replace(/:/g, "")}`, _ = e.filter((e) => Number.isFinite(e)), v = d == null, y = _.length ? Math.max(..._) : 0, b = _.length ? Math.min(..._) : 0, x = y - b || 1, S = (e) => 94 - (e - b) / x * 88, C = (e) => /* @__PURE__ */ g("svg", {
4684
- className: [ar.sparkline, f].filter(Boolean).join(" "),
4717
+ className: [or.sparkline, f].filter(Boolean).join(" "),
4685
4718
  style: {
4686
4719
  width: n,
4687
4720
  height: r,
4688
4721
  color: i
4689
4722
  },
4690
- viewBox: `0 0 ${or} ${sr}`,
4723
+ viewBox: `0 0 ${sr} ${cr}`,
4691
4724
  preserveAspectRatio: "none",
4692
4725
  role: v ? void 0 : "img",
4693
4726
  "aria-label": d,
@@ -4696,15 +4729,15 @@ function cr({ values: e, type: t = "line", width: n = "100%", height: r = 24, co
4696
4729
  children: [e, o && /* @__PURE__ */ h("line", {
4697
4730
  x1: "0",
4698
4731
  y1: 99.5,
4699
- x2: or,
4732
+ x2: sr,
4700
4733
  y2: 99.5,
4701
- className: ar.baseline,
4734
+ className: or.baseline,
4702
4735
  vectorEffect: "non-scaling-stroke"
4703
4736
  })]
4704
4737
  });
4705
4738
  if (_.length < 2) return C(null);
4706
4739
  if (t === "bar") return /* @__PURE__ */ h("div", {
4707
- className: [ar.bars, f].filter(Boolean).join(" "),
4740
+ className: [or.bars, f].filter(Boolean).join(" "),
4708
4741
  style: {
4709
4742
  width: n,
4710
4743
  height: r,
@@ -4716,18 +4749,18 @@ function cr({ values: e, type: t = "line", width: n = "100%", height: r = 24, co
4716
4749
  "aria-label": d,
4717
4750
  "aria-hidden": v || void 0,
4718
4751
  children: _.map((e, t) => /* @__PURE__ */ h("span", {
4719
- className: ar.bar,
4752
+ className: or.bar,
4720
4753
  style: { height: `${Math.max((e - b) / x * 100, 2)}%` }
4721
4754
  }, t))
4722
4755
  });
4723
- let w = or / (_.length - 1), T = (e, t) => _.slice(e, e + t).map((t, n) => `${(e + n) * w},${S(t)}`).join(" "), E = T(0, _.length), D = u != null && _.some((e) => e === 0), O = D ? { stroke: `url(#${p})` } : void 0, k = D ? { fill: `url(#${p})` } : void 0;
4756
+ let w = sr / (_.length - 1), T = (e, t) => _.slice(e, e + t).map((t, n) => `${(e + n) * w},${S(t)}`).join(" "), E = T(0, _.length), D = u != null && _.some((e) => e === 0), O = D ? { stroke: `url(#${p})` } : void 0, k = D ? { fill: `url(#${p})` } : void 0;
4724
4757
  return C(/* @__PURE__ */ g(m, { children: [
4725
4758
  D && /* @__PURE__ */ h("defs", { children: /* @__PURE__ */ h("linearGradient", {
4726
4759
  id: p,
4727
4760
  gradientUnits: "userSpaceOnUse",
4728
4761
  x1: "0",
4729
4762
  y1: "0",
4730
- x2: or,
4763
+ x2: sr,
4731
4764
  y2: "0",
4732
4765
  children: (() => {
4733
4766
  let e = _.length - 1, t = (e) => _[e] === 0 && _[e + 1] === 0 ? u : "currentColor", n = .2 / e;
@@ -4744,29 +4777,29 @@ function cr({ values: e, type: t = "line", width: n = "100%", height: r = 24, co
4744
4777
  })()
4745
4778
  }) }),
4746
4779
  a && /* @__PURE__ */ h("polygon", {
4747
- className: ar.fill,
4748
- points: `0,${sr} ${E} ${or},${sr}`,
4780
+ className: or.fill,
4781
+ points: `0,${cr} ${E} ${sr},${cr}`,
4749
4782
  style: k
4750
4783
  }),
4751
4784
  c ? /* @__PURE__ */ g(m, { children: [_.length > 2 && /* @__PURE__ */ h("polyline", {
4752
- className: ar.line,
4785
+ className: or.line,
4753
4786
  points: T(0, _.length - 1),
4754
4787
  vectorEffect: "non-scaling-stroke",
4755
4788
  style: O
4756
4789
  }), /* @__PURE__ */ h("polyline", {
4757
- className: `${ar.line} ${ar.partial}`,
4790
+ className: `${or.line} ${or.partial}`,
4758
4791
  points: T(_.length - 2, 2),
4759
4792
  vectorEffect: "non-scaling-stroke",
4760
4793
  style: O
4761
4794
  })] }) : /* @__PURE__ */ h("polyline", {
4762
- className: ar.line,
4795
+ className: or.line,
4763
4796
  points: E,
4764
4797
  vectorEffect: "non-scaling-stroke",
4765
4798
  style: O
4766
4799
  })
4767
4800
  ] }));
4768
4801
  }
4769
- var lr = {
4802
+ var ur = {
4770
4803
  wrapper: "_wrapper_17ws4_1",
4771
4804
  label: "_label_17ws4_7",
4772
4805
  textarea: "_textarea_17ws4_12",
@@ -4774,14 +4807,14 @@ var lr = {
4774
4807
  errorText: "_errorText_17ws4_56"
4775
4808
  };
4776
4809
  // src/components/Textarea/Textarea.tsx
4777
- function ur({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
4810
+ function dr({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
4778
4811
  let c = e.useId(), l = a || c, u = `${l}-error`, d = n || !i;
4779
4812
  return /* @__PURE__ */ g("div", {
4780
- className: `${lr.wrapper} ${r}`,
4813
+ className: `${ur.wrapper} ${r}`,
4781
4814
  children: [
4782
4815
  t && /* @__PURE__ */ g("label", {
4783
4816
  htmlFor: l,
4784
- className: lr.label,
4817
+ className: ur.label,
4785
4818
  children: [t, s.required && /* @__PURE__ */ h("span", {
4786
4819
  "aria-label": "required",
4787
4820
  children: " *"
@@ -4790,52 +4823,52 @@ function ur({ label: t, error: n, className: r = "", isValid: i = !0, id: a, row
4790
4823
  /* @__PURE__ */ h("textarea", {
4791
4824
  id: l,
4792
4825
  rows: o,
4793
- className: `${lr.textarea} ${d ? lr.error : ""}`,
4826
+ className: `${ur.textarea} ${d ? ur.error : ""}`,
4794
4827
  "aria-invalid": d ? "true" : "false",
4795
4828
  "aria-describedby": n ? u : void 0,
4796
4829
  ...s
4797
4830
  }),
4798
4831
  n && /* @__PURE__ */ h("span", {
4799
4832
  id: u,
4800
- className: lr.errorText,
4833
+ className: ur.errorText,
4801
4834
  role: "alert",
4802
4835
  children: n
4803
4836
  })
4804
4837
  ]
4805
4838
  });
4806
4839
  }
4807
- var dr = {
4840
+ var fr = {
4808
4841
  overlay: "_overlay_xud7c_1",
4809
4842
  content: "_content_xud7c_8",
4810
4843
  title: "_title_xud7c_26",
4811
4844
  description: "_description_xud7c_34",
4812
4845
  close: "_close_xud7c_40",
4813
4846
  srOnly: "_srOnly_xud7c_62"
4814
- }, fr = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => {
4847
+ }, pr = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => {
4815
4848
  let c = ae();
4816
- return /* @__PURE__ */ g(z.Root, {
4849
+ return /* @__PURE__ */ g(B.Root, {
4817
4850
  open: n,
4818
4851
  onOpenChange: r,
4819
- children: [e && /* @__PURE__ */ h(z.Trigger, {
4852
+ children: [e && /* @__PURE__ */ h(B.Trigger, {
4820
4853
  asChild: !0,
4821
4854
  children: e
4822
- }), /* @__PURE__ */ g(z.Portal, {
4855
+ }), /* @__PURE__ */ g(B.Portal, {
4823
4856
  container: c,
4824
- children: [/* @__PURE__ */ h(z.Overlay, { className: dr.overlay }), /* @__PURE__ */ g(z.Content, {
4825
- className: `${dr.content} ${o}`,
4857
+ children: [/* @__PURE__ */ h(B.Overlay, { className: fr.overlay }), /* @__PURE__ */ g(B.Content, {
4858
+ className: `${fr.content} ${o}`,
4826
4859
  children: [
4827
- /* @__PURE__ */ h(z.Title, {
4828
- className: i ? dr.title : dr.srOnly,
4860
+ /* @__PURE__ */ h(B.Title, {
4861
+ className: i ? fr.title : fr.srOnly,
4829
4862
  children: i || "Dialog"
4830
4863
  }),
4831
- a && /* @__PURE__ */ h(z.Description, {
4832
- className: dr.description,
4864
+ a && /* @__PURE__ */ h(B.Description, {
4865
+ className: fr.description,
4833
4866
  children: a
4834
4867
  }),
4835
- s && /* @__PURE__ */ h(z.Close, {
4836
- className: dr.close,
4868
+ s && /* @__PURE__ */ h(B.Close, {
4869
+ className: fr.close,
4837
4870
  "aria-label": "Close",
4838
- children: /* @__PURE__ */ h(P, {
4871
+ children: /* @__PURE__ */ h(F, {
4839
4872
  size: 14,
4840
4873
  color: "currentColor"
4841
4874
  })
@@ -4845,7 +4878,7 @@ var dr = {
4845
4878
  })]
4846
4879
  })]
4847
4880
  });
4848
- }, pr = {
4881
+ }, mr = {
4849
4882
  wrapper: "_wrapper_aimna_1",
4850
4883
  label: "_label_aimna_7",
4851
4884
  trigger: "_trigger_aimna_12",
@@ -4864,7 +4897,7 @@ var dr = {
4864
4897
  today: "_today_aimna_131",
4865
4898
  selected: "_selected_aimna_136",
4866
4899
  errorText: "_errorText_aimna_142"
4867
- }, mr = [
4900
+ }, hr = [
4868
4901
  "Mo",
4869
4902
  "Tu",
4870
4903
  "We",
@@ -4872,7 +4905,7 @@ var dr = {
4872
4905
  "Fr",
4873
4906
  "Sa",
4874
4907
  "Su"
4875
- ], hr = [
4908
+ ], gr = [
4876
4909
  "January",
4877
4910
  "February",
4878
4911
  "March",
@@ -4886,19 +4919,19 @@ var dr = {
4886
4919
  "November",
4887
4920
  "December"
4888
4921
  ];
4889
- function gr(e) {
4922
+ function _r(e) {
4890
4923
  let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
4891
4924
  return `${e.getFullYear()}-${t}-${n}`;
4892
4925
  }
4893
- function _r(e, t) {
4926
+ function vr(e, t) {
4894
4927
  return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
4895
4928
  }
4896
- function vr(e, t) {
4929
+ function yr(e, t) {
4897
4930
  let n = (new Date(e, t, 1).getDay() + 6) % 7, r = [];
4898
4931
  for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
4899
4932
  return r;
4900
4933
  }
4901
- var yr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: c = "", formatDate: l = gr }) => {
4934
+ var br = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: c = "", formatDate: l = _r }) => {
4902
4935
  let u = ae(), d = e.useId(), p = `${d}-error`, m = !!a || !o, [_, v] = f(!1), y = /* @__PURE__ */ new Date(), b = t ?? y, [w, T] = f(b.getFullYear()), [E, D] = f(b.getMonth()), [O, k] = f(b), A = e.useRef(/* @__PURE__ */ new Map()), j = e.useRef(!1), M = (e) => {
4903
4936
  if (e) {
4904
4937
  let e = t ?? /* @__PURE__ */ new Date();
@@ -4907,7 +4940,7 @@ var yr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
4907
4940
  v(e);
4908
4941
  };
4909
4942
  e.useEffect(() => {
4910
- j.current &&= (A.current.get(gr(O))?.focus(), !1);
4943
+ j.current &&= (A.current.get(_r(O))?.focus(), !1);
4911
4944
  }, [O]);
4912
4945
  let N = (e, t) => {
4913
4946
  let n = new Date(t), r = {
@@ -4934,53 +4967,53 @@ var yr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
4934
4967
  E === 11 ? (D(0), T(w + 1)) : D(E + 1);
4935
4968
  }, I = (e) => {
4936
4969
  n?.(e), v(!1);
4937
- }, R = vr(w, E);
4970
+ }, L = yr(w, E);
4938
4971
  return /* @__PURE__ */ g("div", {
4939
- className: `${pr.wrapper} ${c}`,
4972
+ className: `${mr.wrapper} ${c}`,
4940
4973
  children: [
4941
4974
  r && /* @__PURE__ */ h("span", {
4942
4975
  id: `${d}-label`,
4943
- className: pr.label,
4976
+ className: mr.label,
4944
4977
  children: r
4945
4978
  }),
4946
- /* @__PURE__ */ g(L.Root, {
4979
+ /* @__PURE__ */ g(R.Root, {
4947
4980
  open: _,
4948
4981
  onOpenChange: M,
4949
- children: [/* @__PURE__ */ h(L.Trigger, {
4982
+ children: [/* @__PURE__ */ h(R.Trigger, {
4950
4983
  asChild: !0,
4951
4984
  children: /* @__PURE__ */ g("button", {
4952
4985
  type: "button",
4953
- className: `${pr.trigger} ${m ? pr.error : ""}`,
4986
+ className: `${mr.trigger} ${m ? mr.error : ""}`,
4954
4987
  disabled: s,
4955
4988
  "aria-labelledby": r ? `${d}-label ${d}-value` : void 0,
4956
4989
  "aria-invalid": m ? "true" : "false",
4957
4990
  "aria-describedby": a ? p : void 0,
4958
4991
  children: [/* @__PURE__ */ h("span", {
4959
4992
  id: `${d}-value`,
4960
- className: t ? pr.valueText : pr.placeholder,
4993
+ className: t ? mr.valueText : mr.placeholder,
4961
4994
  children: t ? l(t) : i
4962
4995
  }), /* @__PURE__ */ h(x, {
4963
4996
  size: 14,
4964
4997
  color: "currentColor"
4965
4998
  })]
4966
4999
  })
4967
- }), /* @__PURE__ */ h(L.Portal, {
5000
+ }), /* @__PURE__ */ h(R.Portal, {
4968
5001
  container: u,
4969
- children: /* @__PURE__ */ g(L.Content, {
4970
- className: pr.calendar,
5002
+ children: /* @__PURE__ */ g(R.Content, {
5003
+ className: mr.calendar,
4971
5004
  align: "start",
4972
5005
  sideOffset: 5,
4973
5006
  "aria-label": r ? `${r} calendar` : "Choose a date",
4974
5007
  onOpenAutoFocus: (e) => {
4975
- e.preventDefault(), A.current.get(gr(O))?.focus();
5008
+ e.preventDefault(), A.current.get(_r(O))?.focus();
4976
5009
  },
4977
5010
  children: [
4978
5011
  /* @__PURE__ */ g("div", {
4979
- className: pr.header,
5012
+ className: mr.header,
4980
5013
  children: [
4981
5014
  /* @__PURE__ */ h("button", {
4982
5015
  type: "button",
4983
- className: pr.navButton,
5016
+ className: mr.navButton,
4984
5017
  onClick: P,
4985
5018
  "aria-label": "Previous month",
4986
5019
  children: /* @__PURE__ */ h(S, {
@@ -4989,16 +5022,16 @@ var yr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
4989
5022
  })
4990
5023
  }),
4991
5024
  /* @__PURE__ */ g("span", {
4992
- className: pr.monthLabel,
5025
+ className: mr.monthLabel,
4993
5026
  children: [
4994
- hr[E],
5027
+ gr[E],
4995
5028
  " ",
4996
5029
  w
4997
5030
  ]
4998
5031
  }),
4999
5032
  /* @__PURE__ */ h("button", {
5000
5033
  type: "button",
5001
- className: pr.navButton,
5034
+ className: mr.navButton,
5002
5035
  onClick: F,
5003
5036
  "aria-label": "Next month",
5004
5037
  children: /* @__PURE__ */ h(C, {
@@ -5009,27 +5042,27 @@ var yr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
5009
5042
  ]
5010
5043
  }),
5011
5044
  /* @__PURE__ */ h("div", {
5012
- className: pr.weekdays,
5013
- children: mr.map((e) => /* @__PURE__ */ h("span", {
5014
- className: pr.weekday,
5045
+ className: mr.weekdays,
5046
+ children: hr.map((e) => /* @__PURE__ */ h("span", {
5047
+ className: mr.weekday,
5015
5048
  children: e
5016
5049
  }, e))
5017
5050
  }),
5018
5051
  /* @__PURE__ */ h("div", {
5019
- className: pr.grid,
5020
- children: R.map((e) => {
5021
- let n = e.getMonth() !== E, r = _r(e, t), i = _r(e, y), a = [
5022
- pr.day,
5023
- n ? pr.outside : "",
5024
- r ? pr.selected : "",
5025
- i && !r ? pr.today : ""
5052
+ className: mr.grid,
5053
+ children: L.map((e) => {
5054
+ let n = e.getMonth() !== E, r = vr(e, t), i = vr(e, y), a = [
5055
+ mr.day,
5056
+ n ? mr.outside : "",
5057
+ r ? mr.selected : "",
5058
+ i && !r ? mr.today : ""
5026
5059
  ].filter(Boolean).join(" ");
5027
5060
  return /* @__PURE__ */ h("button", {
5028
5061
  type: "button",
5029
5062
  className: a,
5030
5063
  onClick: () => I(e),
5031
5064
  ref: (t) => {
5032
- t ? A.current.set(gr(e), t) : A.current.delete(gr(e));
5065
+ t ? A.current.set(_r(e), t) : A.current.delete(_r(e));
5033
5066
  },
5034
5067
  "aria-label": e.toLocaleDateString(void 0, {
5035
5068
  weekday: "long",
@@ -5039,7 +5072,7 @@ var yr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
5039
5072
  }),
5040
5073
  "aria-pressed": r,
5041
5074
  "aria-current": i ? "date" : void 0,
5042
- tabIndex: _r(e, O) || O.getMonth() !== E && e.getDate() === 1 && !n ? 0 : -1,
5075
+ tabIndex: vr(e, O) || O.getMonth() !== E && e.getDate() === 1 && !n ? 0 : -1,
5043
5076
  onKeyDown: (t) => N(t, e),
5044
5077
  children: e.getDate()
5045
5078
  }, e.toISOString());
@@ -5051,32 +5084,32 @@ var yr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
5051
5084
  }),
5052
5085
  a && /* @__PURE__ */ h("span", {
5053
5086
  id: p,
5054
- className: pr.errorText,
5087
+ className: mr.errorText,
5055
5088
  role: "alert",
5056
5089
  children: a
5057
5090
  })
5058
5091
  ]
5059
5092
  });
5060
- }, br = {
5093
+ }, xr = {
5061
5094
  skeleton: "_skeleton_fo2zs_11",
5062
5095
  "indx-skeleton-pulse": "_indx-skeleton-pulse_fo2zs_1",
5063
5096
  level3: "_level3_fo2zs_20",
5064
5097
  appear: "_appear_fo2zs_25",
5065
5098
  "indx-skeleton-appear": "_indx-skeleton-appear_fo2zs_1"
5066
- }, xr = (e) => typeof e == "number" ? `${e}px` : e;
5067
- function Sr({ width: e = "100%", height: t = 10, level: n = 2, delay: r = 0, appear: i = !0, className: a = "", style: o }) {
5099
+ }, Sr = (e) => typeof e == "number" ? `${e}px` : e;
5100
+ function Cr({ width: e = "100%", height: t = 10, level: n = 2, delay: r = 0, appear: i = !0, className: a = "", style: o }) {
5068
5101
  return /* @__PURE__ */ h("span", {
5069
5102
  "aria-hidden": "true",
5070
- className: `${br.skeleton} ${n === 3 ? br.level3 : ""} ${i ? br.appear : ""} ${a}`,
5103
+ className: `${xr.skeleton} ${n === 3 ? xr.level3 : ""} ${i ? xr.appear : ""} ${a}`,
5071
5104
  style: {
5072
- width: xr(e),
5073
- height: xr(t),
5105
+ width: Sr(e),
5106
+ height: Sr(t),
5074
5107
  "--skeleton-delay": `${r}s`,
5075
5108
  ...o
5076
5109
  }
5077
5110
  });
5078
5111
  }
5079
- var Cr = {
5112
+ var wr = {
5080
5113
  stat: "_stat_1nz7e_2",
5081
5114
  label: "_label_1nz7e_17",
5082
5115
  labelIcon: "_labelIcon_1nz7e_26",
@@ -5093,15 +5126,15 @@ var Cr = {
5093
5126
  fixed: "_fixed_1nz7e_120",
5094
5127
  many: "_many_1nz7e_125",
5095
5128
  pairs: "_pairs_1nz7e_129"
5096
- }, wr = 28;
5097
- function Tr({ label: e, labelIcon: n, value: i, figure: a, icon: o, color: s, hint: c, children: l, className: u = "" }) {
5129
+ }, Tr = 28;
5130
+ function Er({ label: e, labelIcon: n, value: i, figure: a, icon: o, color: s, hint: c, children: l, className: u = "" }) {
5098
5131
  let d = n && r(n) ? t(n, {
5099
5132
  size: n.props.size ?? 14,
5100
5133
  color: n.props.color ?? "currentColor"
5101
5134
  }) : n, f = /* @__PURE__ */ g("span", {
5102
- className: `${Cr.label} ${c ? Cr.hinted : ""}`,
5135
+ className: `${wr.label} ${c ? wr.hinted : ""}`,
5103
5136
  children: [d != null && /* @__PURE__ */ h("span", {
5104
- className: Cr.labelIcon,
5137
+ className: wr.labelIcon,
5105
5138
  "aria-hidden": "true",
5106
5139
  children: d
5107
5140
  }), e]
@@ -5112,56 +5145,151 @@ function Tr({ label: e, labelIcon: n, value: i, figure: a, icon: o, color: s, hi
5112
5145
  content: c,
5113
5146
  children: f
5114
5147
  }) : f, _ = (i != null || p != null) && /* @__PURE__ */ g("span", {
5115
- className: Cr.value,
5148
+ className: wr.value,
5116
5149
  style: s ? { color: s } : void 0,
5117
5150
  children: [p != null && /* @__PURE__ */ h("span", {
5118
- className: Cr.icon,
5151
+ className: wr.icon,
5119
5152
  "aria-hidden": "true",
5120
5153
  children: p
5121
5154
  }), i]
5122
5155
  }), v = l != null && /* @__PURE__ */ h("span", {
5123
- className: Cr.foot,
5156
+ className: wr.foot,
5124
5157
  children: l
5125
5158
  });
5126
5159
  return a == null ? /* @__PURE__ */ g("div", {
5127
- className: `${Cr.stat} ${u}`,
5160
+ className: `${wr.stat} ${u}`,
5128
5161
  children: [
5129
5162
  m,
5130
5163
  /* @__PURE__ */ h("span", {
5131
- className: Cr.body,
5164
+ className: wr.body,
5132
5165
  children: _
5133
5166
  }),
5134
5167
  v && /* @__PURE__ */ h("span", {
5135
- className: Cr.footRow,
5168
+ className: wr.footRow,
5136
5169
  children: v
5137
5170
  })
5138
5171
  ]
5139
5172
  }) : /* @__PURE__ */ g("div", {
5140
- className: `${Cr.stat} ${u}`,
5173
+ className: `${wr.stat} ${u}`,
5141
5174
  children: [m, /* @__PURE__ */ h("span", {
5142
- className: Cr.body,
5175
+ className: wr.body,
5143
5176
  children: /* @__PURE__ */ g("span", {
5144
- className: Cr.figured,
5177
+ className: wr.figured,
5145
5178
  children: [/* @__PURE__ */ h("span", {
5146
- className: Cr.figure,
5179
+ className: wr.figure,
5147
5180
  children: a
5148
5181
  }), /* @__PURE__ */ g("span", {
5149
- className: Cr.text,
5182
+ className: wr.text,
5150
5183
  children: [_, v]
5151
5184
  })]
5152
5185
  })
5153
5186
  })]
5154
5187
  });
5155
5188
  }
5156
- function Er({ children: e, columns: t, className: n = "" }) {
5157
- let r = t ? `${Cr.fixed} ${t > 3 ? Cr.many : ""} ${t > 2 ? Cr.pairs : ""}` : "";
5189
+ function Dr({ children: e, columns: t, className: n = "" }) {
5190
+ let r = t ? `${wr.fixed} ${t > 3 ? wr.many : ""} ${t > 2 ? wr.pairs : ""}` : "";
5158
5191
  return /* @__PURE__ */ h("div", {
5159
- className: `${Cr.group} ${r} ${n}`,
5192
+ className: `${wr.group} ${r} ${n}`,
5160
5193
  style: t ? { "--stat-columns": t } : void 0,
5161
5194
  children: e
5162
5195
  });
5163
5196
  }
5164
- var Dr = {
5197
+ var Or = {
5198
+ text: "_text_15djf_3",
5199
+ active: "_active_15djf_6",
5200
+ "indx-shimmer-text": "_indx-shimmer-text_15djf_1"
5201
+ };
5202
+ // src/components/ShimmerText/ShimmerText.tsx
5203
+ function kr({ children: e, active: t = !0, className: n = "", ...r }) {
5204
+ return /* @__PURE__ */ h("span", {
5205
+ className: `${Or.text} ${t ? Or.active : ""} ${n}`,
5206
+ ...r,
5207
+ children: e
5208
+ });
5209
+ }
5210
+ var Ar = {
5211
+ meter: "_meter_5u78a_3",
5212
+ cell: "_cell_5u78a_12",
5213
+ lit: "_lit_5u78a_13",
5214
+ none: "_none_5u78a_15",
5215
+ some: "_some_5u78a_16",
5216
+ all: "_all_5u78a_17",
5217
+ mark: "_mark_5u78a_18"
5218
+ }, jr = (e) => Math.min(1, Math.max(0, e)).toFixed(2);
5219
+ function Mr({ value: e, marks: t = [], cells: n = 20, cell: r = 4, className: i = "", ...a }) {
5220
+ let o = t.length === 0 ? "" : t.every((t) => e >= t.at) ? Ar.all : t.some((t) => e >= t.at) ? Ar.some : Ar.none;
5221
+ return /* @__PURE__ */ g("span", {
5222
+ className: `${Ar.meter} ${o} ${i}`,
5223
+ role: "meter",
5224
+ "aria-valuemin": 0,
5225
+ "aria-valuemax": 1,
5226
+ "aria-valuenow": Number(jr(e)),
5227
+ "aria-label": a["aria-label"],
5228
+ style: { "--score-cell": `${r}px` },
5229
+ children: [Array.from({ length: n }, (t, r) => /* @__PURE__ */ h("span", { className: `${Ar.cell} ${e >= (r + .5) / n ? Ar.lit : ""}` }, r)), t.map((e) => /* @__PURE__ */ h("span", {
5230
+ className: Ar.mark,
5231
+ style: { left: `${Math.min(1, Math.max(0, e.at)) * 100}%` },
5232
+ title: `${e.label} ${jr(e.at)}`
5233
+ }, `${e.label}-${e.at}`))]
5234
+ });
5235
+ }
5236
+ var Nr = {
5237
+ icicle: "_icicle_1e1du_2",
5238
+ cell: "_cell_1e1du_3",
5239
+ block: "_block_1e1du_4",
5240
+ label: "_label_1e1du_14",
5241
+ tone0: "_tone0_1e1du_16",
5242
+ tone1: "_tone1_1e1du_17",
5243
+ tone2: "_tone2_1e1du_18",
5244
+ tone3: "_tone3_1e1du_19",
5245
+ tone4: "_tone4_1e1du_20"
5246
+ }, Pr = (e) => 1 + (e.children?.length ? Math.max(...e.children.map(Pr)) : 0), Fr = (e) => {
5247
+ if (e.value <= 0 || !e.children?.length) return 0;
5248
+ let t = Math.min(1, Math.max(0, e.children.reduce((e, t) => e + t.value, 0) / e.value));
5249
+ return Math.round(t * 4);
5250
+ };
5251
+ function Ir({ root: e, rowHeight: t = 30, maxDepth: n = 6, title: r, className: i = "", ...a }) {
5252
+ let o = [], s = (t, r, i, a) => {
5253
+ if (r >= n || a <= 0) return;
5254
+ o.push({
5255
+ node: t,
5256
+ depth: r,
5257
+ x: i,
5258
+ w: a
5259
+ });
5260
+ let c = i;
5261
+ for (let n of t.children ?? []) {
5262
+ let t = e.value <= 0 ? 0 : n.value / e.value;
5263
+ s(n, r + 1, c, t), c += t;
5264
+ }
5265
+ };
5266
+ s(e, 0, 0, +(e.value > 0));
5267
+ let c = Math.min(n, Pr(e));
5268
+ return /* @__PURE__ */ h("div", {
5269
+ className: `${Nr.icicle} ${i}`,
5270
+ role: "img",
5271
+ "aria-label": a["aria-label"],
5272
+ style: { height: c * t },
5273
+ children: o.map((e, n) => /* @__PURE__ */ h("div", {
5274
+ className: Nr.cell,
5275
+ title: r?.(e.node) ?? `${e.node.label}: ${e.node.value.toLocaleString()}`,
5276
+ style: {
5277
+ left: `${e.x * 100}%`,
5278
+ width: `${e.w * 100}%`,
5279
+ top: e.depth * t,
5280
+ height: t - 2
5281
+ },
5282
+ children: /* @__PURE__ */ h("span", {
5283
+ className: `${Nr.block} ${Nr[`tone${Fr(e.node)}`]}`,
5284
+ children: /* @__PURE__ */ h("span", {
5285
+ className: Nr.label,
5286
+ children: e.node.label
5287
+ })
5288
+ })
5289
+ }, n))
5290
+ });
5291
+ }
5292
+ var Lr = {
5165
5293
  root: "_root_biiv1_1",
5166
5294
  micro: "_micro_biiv1_7",
5167
5295
  default: "_default_biiv1_8",
@@ -5177,13 +5305,13 @@ var Dr = {
5177
5305
  panelTrigger: "_panelTrigger_biiv1_77",
5178
5306
  viewport: "_viewport_biiv1_60",
5179
5307
  content: "_content_biiv1_110"
5180
- }, Or = {
5308
+ }, Rr = {
5181
5309
  micro: 14,
5182
5310
  default: 14,
5183
5311
  large: 21
5184
- }, kr = e.createContext("default"), Ar = typeof window > "u" ? e.useEffect : e.useLayoutEffect, jr = e.forwardRef(({ size: t = "default", align: n = "start", panelAlign: r = "trigger", panelWidth: i, className: a = "", style: o, children: s, "aria-label": c = "Main navigation", ...l }, u) => {
5312
+ }, zr = e.createContext("default"), Br = typeof window > "u" ? e.useEffect : e.useLayoutEffect, Vr = e.forwardRef(({ size: t = "default", align: n = "start", panelAlign: r = "trigger", panelWidth: i, className: a = "", style: o, children: s, "aria-label": c = "Main navigation", ...l }, u) => {
5185
5313
  let d = e.useRef(null), f = e.useRef(!1);
5186
- Ar(() => {
5314
+ Br(() => {
5187
5315
  let e = d.current;
5188
5316
  if (!e || r !== "trigger") return;
5189
5317
  let t = () => {
@@ -5212,8 +5340,8 @@ var Dr = {
5212
5340
  let p = {
5213
5341
  ...o,
5214
5342
  ...i === void 0 ? {} : { "--panel-width": typeof i == "number" ? `${i}px` : i }
5215
- }, m = r === "trigger" ? Dr.panelTrigger : r === "end" ? Dr.alignEnd : "";
5216
- return /* @__PURE__ */ h(kr.Provider, {
5343
+ }, m = r === "trigger" ? Lr.panelTrigger : r === "end" ? Lr.alignEnd : "";
5344
+ return /* @__PURE__ */ h(zr.Provider, {
5217
5345
  value: t,
5218
5346
  children: /* @__PURE__ */ g(ee.Root, {
5219
5347
  ...l,
@@ -5222,67 +5350,67 @@ var Dr = {
5222
5350
  },
5223
5351
  "aria-label": c,
5224
5352
  style: p,
5225
- className: `${Dr.root} ${Dr[t]} ${n === "end" ? Dr.alignList : ""} ${m} ${a}`,
5353
+ className: `${Lr.root} ${Lr[t]} ${n === "end" ? Lr.alignList : ""} ${m} ${a}`,
5226
5354
  children: [s, /* @__PURE__ */ h("div", {
5227
- className: Dr.viewportPosition,
5228
- children: /* @__PURE__ */ h(ee.Viewport, { className: Dr.viewport })
5355
+ className: Lr.viewportPosition,
5356
+ children: /* @__PURE__ */ h(ee.Viewport, { className: Lr.viewport })
5229
5357
  })]
5230
5358
  })
5231
5359
  });
5232
5360
  });
5233
- jr.displayName = "NavigationMenu";
5234
- var Mr = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ h(ee.List, {
5361
+ Vr.displayName = "NavigationMenu";
5362
+ var Hr = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ h(ee.List, {
5235
5363
  ...t,
5236
5364
  ref: n,
5237
- className: `${Dr.list} ${e}`
5365
+ className: `${Lr.list} ${e}`
5238
5366
  }));
5239
- Mr.displayName = "NavigationMenuList";
5240
- var Nr = ee.Item;
5241
- function Pr({ icon: t }) {
5242
- let n = e.useContext(kr);
5367
+ Hr.displayName = "NavigationMenuList";
5368
+ var Ur = ee.Item;
5369
+ function Wr({ icon: t }) {
5370
+ let n = e.useContext(zr);
5243
5371
  return t ? /* @__PURE__ */ h("span", {
5244
- className: Dr.icon,
5372
+ className: Lr.icon,
5245
5373
  "aria-hidden": "true",
5246
5374
  children: e.cloneElement(t, {
5247
- size: Or[n],
5375
+ size: Rr[n],
5248
5376
  color: "currentColor"
5249
5377
  })
5250
5378
  }) : null;
5251
5379
  }
5252
- var Fr = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
5253
- let o = e.useContext(kr);
5380
+ var Gr = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
5381
+ let o = e.useContext(zr);
5254
5382
  return /* @__PURE__ */ g(ee.Trigger, {
5255
5383
  ...i,
5256
5384
  ref: a,
5257
- className: `${Dr.control} ${t}`,
5385
+ className: `${Lr.control} ${t}`,
5258
5386
  children: [
5259
- /* @__PURE__ */ h(Pr, { icon: n }),
5387
+ /* @__PURE__ */ h(Wr, { icon: n }),
5260
5388
  r,
5261
5389
  /* @__PURE__ */ h("span", {
5262
- className: Dr.caret,
5390
+ className: Lr.caret,
5263
5391
  "aria-hidden": "true",
5264
5392
  children: /* @__PURE__ */ h(x, {
5265
- size: Or[o],
5393
+ size: Rr[o],
5266
5394
  color: "currentColor"
5267
5395
  })
5268
5396
  })
5269
5397
  ]
5270
5398
  });
5271
5399
  });
5272
- Fr.displayName = "NavigationMenuTrigger";
5273
- var Ir = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ h(ee.Content, {
5400
+ Gr.displayName = "NavigationMenuTrigger";
5401
+ var Kr = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ h(ee.Content, {
5274
5402
  ...t,
5275
5403
  ref: n,
5276
- className: `${Dr.content} ${e}`
5404
+ className: `${Lr.content} ${e}`
5277
5405
  }));
5278
- Ir.displayName = "NavigationMenuContent";
5279
- var Lr = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ h(ee.Link, {
5406
+ Kr.displayName = "NavigationMenuContent";
5407
+ var qr = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ h(ee.Link, {
5280
5408
  ...i,
5281
5409
  ref: a,
5282
- className: `${e === "navigation" ? Dr.control : Dr.link} ${n}`,
5283
- children: e === "navigation" && !i.asChild ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(Pr, { icon: t }), r] }) : r
5410
+ className: `${e === "navigation" ? Lr.control : Lr.link} ${n}`,
5411
+ children: e === "navigation" && !i.asChild ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(Wr, { icon: t }), r] }) : r
5284
5412
  }));
5285
- Lr.displayName = "NavigationMenuLink";
5413
+ qr.displayName = "NavigationMenuLink";
5286
5414
  var $ = {
5287
5415
  panel: "_panel_1psyb_7",
5288
5416
  header: "_header_1psyb_15",
@@ -5332,12 +5460,12 @@ var $ = {
5332
5460
  reasoningIcon: "_reasoningIcon_1psyb_260",
5333
5461
  reasoningChevron: "_reasoningChevron_1psyb_262",
5334
5462
  reasoningBody: "_reasoningBody_1psyb_264"
5335
- }, Rr = 80, zr = /* @__PURE__ */ g(m, { children: [
5463
+ }, Jr = 80, Yr = /* @__PURE__ */ g(m, { children: [
5336
5464
  /* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h(Lt, { children: "↵" }), " send"] }),
5337
5465
  /* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h(Lt, { children: "⇧↵" }), " new line"] }),
5338
5466
  /* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h(Lt, { children: "esc" }), " close"] })
5339
5467
  ] });
5340
- function Br({ header: e, children: t, composer: n, hints: r = zr, className: a = "", threadRef: s, "aria-label": c, jumpToLatest: l = !0, jumpLabel: u = "Latest" }) {
5468
+ function Xr({ header: e, children: t, composer: n, hints: r = Yr, className: a = "", threadRef: s, "aria-label": c, jumpToLatest: l = !0, jumpLabel: u = "Latest" }) {
5341
5469
  let [p, m] = f(null), [_, y] = f(!1), b = d(s);
5342
5470
  b.current = s;
5343
5471
  let x = i((e) => {
@@ -5347,7 +5475,7 @@ function Br({ header: e, children: t, composer: n, hints: r = zr, className: a =
5347
5475
  }, []);
5348
5476
  return o(() => {
5349
5477
  if (!p || !l) return;
5350
- let e = () => y(p.scrollHeight - p.scrollTop - p.clientHeight > Rr);
5478
+ let e = () => y(p.scrollHeight - p.scrollTop - p.clientHeight > Jr);
5351
5479
  p.addEventListener("scroll", e, { passive: !0 });
5352
5480
  let t = new MutationObserver(e);
5353
5481
  t.observe(p, {
@@ -5377,7 +5505,7 @@ function Br({ header: e, children: t, composer: n, hints: r = zr, className: a =
5377
5505
  children: t
5378
5506
  }), l && _ && /* @__PURE__ */ h("span", {
5379
5507
  className: $.jump,
5380
- children: /* @__PURE__ */ h(U, {
5508
+ children: /* @__PURE__ */ h(W, {
5381
5509
  variant: "secondary",
5382
5510
  size: "micro",
5383
5511
  iconLeft: /* @__PURE__ */ h(v, {}),
@@ -5400,7 +5528,7 @@ function Br({ header: e, children: t, composer: n, hints: r = zr, className: a =
5400
5528
  });
5401
5529
  }
5402
5530
  // src/components/Chat/Message.tsx
5403
- function Vr({ children: e, className: t = "" }) {
5531
+ function Zr({ children: e, className: t = "" }) {
5404
5532
  return /* @__PURE__ */ h("div", {
5405
5533
  className: $.userRow,
5406
5534
  children: /* @__PURE__ */ h("div", {
@@ -5409,7 +5537,7 @@ function Vr({ children: e, className: t = "" }) {
5409
5537
  })
5410
5538
  });
5411
5539
  }
5412
- function Hr({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
5540
+ function Qr({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
5413
5541
  return /* @__PURE__ */ g("div", {
5414
5542
  className: `${$.assistant} ${r}`,
5415
5543
  children: [/* @__PURE__ */ g("div", {
@@ -5425,13 +5553,13 @@ function Hr({ label: e = "Assistant", icon: t, children: n, className: r = "" })
5425
5553
  });
5426
5554
  }
5427
5555
  // src/components/Chat/Composer.tsx
5428
- var Ur = 18, Wr = e.forwardRef(function({ value: e, onChange: t, onSend: n, onStop: r, streaming: a = !1, placeholder: s = "Ask a question…", disabled: l = !1, autoFocus: u = !1, icon: f, maxLines: p = 6, maxLength: m, className: v = "", "aria-label": b = "Message" }, x) {
5556
+ var $r = 18, ei = e.forwardRef(function({ value: e, onChange: t, onSend: n, onStop: r, streaming: a = !1, placeholder: s = "Ask a question…", disabled: l = !1, autoFocus: u = !1, icon: f, maxLines: p = 6, maxLength: m, className: v = "", "aria-label": b = "Message" }, x) {
5429
5557
  let S = d(null);
5430
5558
  c(x, () => ({ focus: () => S.current?.focus() }), []), o(() => {
5431
5559
  let e = S.current;
5432
5560
  if (!e) return;
5433
5561
  e.style.height = "auto";
5434
- let t = Ur * p + 12;
5562
+ let t = $r * p + 12;
5435
5563
  e.style.height = `${Math.min(e.scrollHeight, t)}px`;
5436
5564
  }, [e, p]);
5437
5565
  let C = m !== void 0 && m > 0 && e.length > m, w = !a && !l && !C && e.trim().length > 0, T = i(() => {
@@ -5470,13 +5598,13 @@ var Ur = 18, Wr = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
5470
5598
  })]
5471
5599
  }), /* @__PURE__ */ h("div", {
5472
5600
  className: $.composerButton,
5473
- children: a ? /* @__PURE__ */ h(U, {
5601
+ children: a ? /* @__PURE__ */ h(W, {
5474
5602
  variant: "secondary",
5475
5603
  size: "micro",
5476
5604
  "aria-label": "Stop",
5477
- iconLeft: /* @__PURE__ */ h(M, {}),
5605
+ iconLeft: /* @__PURE__ */ h(N, {}),
5478
5606
  onClick: r
5479
- }) : /* @__PURE__ */ h(U, {
5607
+ }) : /* @__PURE__ */ h(W, {
5480
5608
  variant: "primary",
5481
5609
  size: "micro",
5482
5610
  "aria-label": "Send",
@@ -5498,7 +5626,7 @@ var Ur = 18, Wr = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
5498
5626
  });
5499
5627
  });
5500
5628
  // src/components/Chat/Citation.tsx
5501
- function Gr({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
5629
+ function ti({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
5502
5630
  let a = `${$.ref} ${i}`;
5503
5631
  return t ? /* @__PURE__ */ h("a", {
5504
5632
  href: t,
@@ -5516,7 +5644,7 @@ function Gr({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
5516
5644
  children: e
5517
5645
  });
5518
5646
  }
5519
- function Kr({ items: e, label: t = "Sources", className: n = "" }) {
5647
+ function ni({ items: e, label: t = "Sources", className: n = "" }) {
5520
5648
  return e.length === 0 ? null : /* @__PURE__ */ g("div", {
5521
5649
  className: `${$.stack} ${n}`,
5522
5650
  children: [/* @__PURE__ */ h("div", {
@@ -5525,7 +5653,7 @@ function Kr({ items: e, label: t = "Sources", className: n = "" }) {
5525
5653
  }), /* @__PURE__ */ h("div", {
5526
5654
  className: $.wrap,
5527
5655
  children: e.map((e) => {
5528
- let t = /* @__PURE__ */ g(In, {
5656
+ let t = /* @__PURE__ */ g(Ln, {
5529
5657
  icon: e.icon,
5530
5658
  children: [
5531
5659
  /* @__PURE__ */ h("span", {
@@ -5552,13 +5680,13 @@ function Kr({ items: e, label: t = "Sources", className: n = "" }) {
5552
5680
  });
5553
5681
  }
5554
5682
  // src/components/Chat/StreamStatus.tsx
5555
- function qr({ children: e, spinner: t, className: n = "" }) {
5683
+ function ri({ children: e, spinner: t, className: n = "" }) {
5556
5684
  return /* @__PURE__ */ g("div", {
5557
5685
  className: `${$.status} ${n}`,
5558
5686
  role: "status",
5559
5687
  children: [/* @__PURE__ */ h("span", {
5560
5688
  className: $.statusSpinner,
5561
- children: /* @__PURE__ */ h(H, {
5689
+ children: /* @__PURE__ */ h(ne, {
5562
5690
  name: t,
5563
5691
  size: 14
5564
5692
  })
@@ -5566,7 +5694,7 @@ function qr({ children: e, spinner: t, className: n = "" }) {
5566
5694
  });
5567
5695
  }
5568
5696
  // src/components/Chat/Suggestions.tsx
5569
- function Jr({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
5697
+ function ii({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
5570
5698
  return /* @__PURE__ */ g("div", {
5571
5699
  className: `${$.suggestions} ${r}`,
5572
5700
  children: [/* @__PURE__ */ h("div", {
@@ -5574,7 +5702,7 @@ function Jr({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
5574
5702
  children: n
5575
5703
  }), /* @__PURE__ */ h("div", {
5576
5704
  className: $.wrap,
5577
- children: e.map((e) => /* @__PURE__ */ h(U, {
5705
+ children: e.map((e) => /* @__PURE__ */ h(W, {
5578
5706
  variant: "secondary",
5579
5707
  size: "micro",
5580
5708
  onClick: () => t(e),
@@ -5584,11 +5712,11 @@ function Jr({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
5584
5712
  });
5585
5713
  }
5586
5714
  // src/components/Chat/AnswerActions.tsx
5587
- function Yr({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
5715
+ function ai({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
5588
5716
  return /* @__PURE__ */ g("div", {
5589
5717
  className: `${$.actions} ${i}`,
5590
5718
  children: [
5591
- e && /* @__PURE__ */ h(U, {
5719
+ e && /* @__PURE__ */ h(W, {
5592
5720
  variant: "ghost",
5593
5721
  size: "micro",
5594
5722
  iconLeft: h(t ? b : w, {}),
@@ -5596,7 +5724,7 @@ function Yr({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask
5596
5724
  children: t ? "Copied" : "Copy"
5597
5725
  }),
5598
5726
  /* @__PURE__ */ h("span", { className: $.actionsSpacer }),
5599
- n && /* @__PURE__ */ h(U, {
5727
+ n && /* @__PURE__ */ h(W, {
5600
5728
  variant: "ghost",
5601
5729
  size: "micro",
5602
5730
  iconRight: /* @__PURE__ */ h(C, {}),
@@ -5607,8 +5735,8 @@ function Yr({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask
5607
5735
  });
5608
5736
  }
5609
5737
  // src/components/Chat/ToolStep.tsx
5610
- function Xr({ children: t, state: n = "done", meta: r, icon: i, detail: a, defaultOpen: o = !1, className: c = "" }) {
5611
- let [l, u] = f(o), d = s(), p = n === "running" ? /* @__PURE__ */ h(H, { size: 14 }) : n === "error" ? /* @__PURE__ */ h(P, {
5738
+ function oi({ children: t, state: n = "done", meta: r, icon: i, detail: a, defaultOpen: o = !1, className: c = "" }) {
5739
+ let [l, u] = f(o), d = s(), p = n === "running" ? /* @__PURE__ */ h(ne, { size: 14 }) : n === "error" ? /* @__PURE__ */ h(F, {
5612
5740
  size: 14,
5613
5741
  color: "currentColor"
5614
5742
  }) : i ? e.cloneElement(i, {
@@ -5659,7 +5787,7 @@ function Xr({ children: t, state: n = "done", meta: r, icon: i, detail: a, defau
5659
5787
  })]
5660
5788
  });
5661
5789
  }
5662
- function Zr({ children: e, summary: t, defaultOpen: n = !1, "aria-label": r = "Steps", className: i = "" }) {
5790
+ function si({ children: e, summary: t, defaultOpen: n = !1, "aria-label": r = "Steps", className: i = "" }) {
5663
5791
  let [a, o] = f(n), c = s();
5664
5792
  return /* @__PURE__ */ h("div", {
5665
5793
  className: `${$.toolSteps} ${i}`,
@@ -5687,7 +5815,7 @@ function Zr({ children: e, summary: t, defaultOpen: n = !1, "aria-label": r = "S
5687
5815
  });
5688
5816
  }
5689
5817
  // src/components/Chat/Reasoning.tsx
5690
- function Qr({ children: e, streaming: t = !1, seconds: n, className: r = "" }) {
5818
+ function ci({ children: e, streaming: t = !1, seconds: n, className: r = "" }) {
5691
5819
  let [i, a] = f(null), o = s(), c = i ?? t, l = t ? "Thinking…" : n == null ? "Thought" : n < 1 ? "Thought for a moment" : `Thought for ${n}s`, u = h(c ? x : C, {
5692
5820
  size: 14,
5693
5821
  color: "currentColor"
@@ -5705,7 +5833,7 @@ function Qr({ children: e, streaming: t = !1, seconds: n, className: r = "" }) {
5705
5833
  /* @__PURE__ */ h("span", {
5706
5834
  className: $.reasoningIcon,
5707
5835
  "aria-hidden": "true",
5708
- children: t ? /* @__PURE__ */ h(H, { size: 14 }) : u
5836
+ children: t ? /* @__PURE__ */ h(ne, { size: 14 }) : u
5709
5837
  }),
5710
5838
  /* @__PURE__ */ h("span", { children: l }),
5711
5839
  t && /* @__PURE__ */ h("span", {
@@ -5721,20 +5849,20 @@ function Qr({ children: e, streaming: t = !1, seconds: n, className: r = "" }) {
5721
5849
  })]
5722
5850
  });
5723
5851
  }
5724
- var $r = {
5852
+ var li = {
5725
5853
  truncate: "_truncate_za4sm_1",
5726
5854
  start: "_start_za4sm_13"
5727
5855
  };
5728
5856
  // src/components/Truncate/Truncate.tsx
5729
- function ei({ children: e, side: t = "end", title: n, className: r = "" }) {
5857
+ function ui({ children: e, side: t = "end", title: n, className: r = "" }) {
5730
5858
  let i = n ?? (typeof e == "string" ? e : void 0);
5731
5859
  return /* @__PURE__ */ h("span", {
5732
- className: `${$r.truncate} ${t === "start" ? $r.start : ""} ${r}`,
5860
+ className: `${li.truncate} ${t === "start" ? li.start : ""} ${r}`,
5733
5861
  title: i,
5734
5862
  children: t === "start" ? /* @__PURE__ */ h("bdi", { children: e }) : e
5735
5863
  });
5736
5864
  }
5737
- var ti = {
5865
+ var di = {
5738
5866
  disclosure: "_disclosure_94bgy_1",
5739
5867
  trigger: "_trigger_94bgy_7",
5740
5868
  summary: "_summary_94bgy_31",
@@ -5742,24 +5870,24 @@ var ti = {
5742
5870
  content: "_content_94bgy_43"
5743
5871
  };
5744
5872
  // src/components/Disclosure/Disclosure.tsx
5745
- function ni({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
5873
+ function fi({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
5746
5874
  let [s, c] = e.useState(i), l = r ?? s, u = e.useId();
5747
5875
  return /* @__PURE__ */ g("div", {
5748
- className: `${ti.disclosure} ${o}`,
5876
+ className: `${di.disclosure} ${o}`,
5749
5877
  "data-state": l ? "open" : "closed",
5750
5878
  children: [/* @__PURE__ */ g("button", {
5751
5879
  type: "button",
5752
- className: ti.trigger,
5880
+ className: di.trigger,
5753
5881
  "aria-expanded": l,
5754
5882
  "aria-controls": l ? u : void 0,
5755
5883
  onClick: () => {
5756
5884
  r === void 0 && c(!l), a?.(!l);
5757
5885
  },
5758
5886
  children: [/* @__PURE__ */ h("span", {
5759
- className: ti.summary,
5887
+ className: di.summary,
5760
5888
  children: t
5761
5889
  }), /* @__PURE__ */ h("span", {
5762
- className: ti.chevron,
5890
+ className: di.chevron,
5763
5891
  "aria-hidden": "true",
5764
5892
  children: h(l ? x : C, {
5765
5893
  size: 14,
@@ -5768,18 +5896,18 @@ function ni({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChang
5768
5896
  })]
5769
5897
  }), l && /* @__PURE__ */ h("div", {
5770
5898
  id: u,
5771
- className: ti.content,
5899
+ className: di.content,
5772
5900
  children: n
5773
5901
  })]
5774
5902
  });
5775
5903
  }
5776
- var ri = {
5904
+ var pi = {
5777
5905
  field: "_field_5juos_1",
5778
5906
  code: "_code_5juos_16",
5779
5907
  status: "_status_5juos_31"
5780
5908
  };
5781
5909
  // src/components/CodeCopy/CodeCopy.tsx
5782
- async function ii(e) {
5910
+ async function mi(e) {
5783
5911
  if (navigator.clipboard && window.isSecureContext) try {
5784
5912
  return await navigator.clipboard.writeText(e), !0;
5785
5913
  } catch {}
@@ -5793,31 +5921,31 @@ async function ii(e) {
5793
5921
  t.remove();
5794
5922
  }
5795
5923
  }
5796
- function ai({ code: e, className: t, onCopy: n }) {
5924
+ function hi({ code: e, className: t, onCopy: n }) {
5797
5925
  let [r, i] = f(!1), a = d(void 0);
5798
5926
  return o(() => () => clearTimeout(a.current), []), /* @__PURE__ */ g("div", {
5799
- className: [ri.field, t].filter(Boolean).join(" "),
5927
+ className: [pi.field, t].filter(Boolean).join(" "),
5800
5928
  children: [
5801
5929
  /* @__PURE__ */ h("code", {
5802
- className: ri.code,
5930
+ className: pi.code,
5803
5931
  children: e
5804
5932
  }),
5805
- /* @__PURE__ */ h(U, {
5933
+ /* @__PURE__ */ h(W, {
5806
5934
  size: "micro",
5807
5935
  variant: "ghost",
5808
5936
  iconLeft: h(r ? b : w, {}),
5809
5937
  onClick: async () => {
5810
- await ii(e) && (i(!0), n?.(), clearTimeout(a.current), a.current = setTimeout(() => i(!1), 2e3));
5938
+ await mi(e) && (i(!0), n?.(), clearTimeout(a.current), a.current = setTimeout(() => i(!1), 2e3));
5811
5939
  },
5812
5940
  "aria-label": r ? "Copied" : "Copy",
5813
5941
  title: r ? "Copied" : "Copy"
5814
5942
  }),
5815
5943
  /* @__PURE__ */ h("span", {
5816
- className: ri.status,
5944
+ className: pi.status,
5817
5945
  role: "status",
5818
5946
  children: r ? "Copied" : ""
5819
5947
  })
5820
5948
  ]
5821
5949
  });
5822
5950
  }
5823
- export { Bn as Alert, Hn as AlertDescription, Vn as AlertTitle, Yr as AnswerActions, Hr as AssistantMessage, lt as BarMeter, De as BarSlider, le as Base, Qe as Breadcrumbs, U as Button, ir as Chart, Br as ChatPanel, se as Checkbox, In as Chip, Kr as CitationList, Gr as CitationRef, ai as CodeCopy, cn as Combobox, zt as CommandPalette, Wr as Composer, yr as DatePicker, ni as Disclosure, un as EmptyState, de as FilterPanelBase, Ft as GroupedBars, vt as Heatmap, ge as InputField, Lt as Kbd, fr as Modal, jr as NavigationMenu, Ir as NavigationMenuContent, Nr as NavigationMenuItem, Lr as NavigationMenuLink, Mr as NavigationMenuList, Fr as NavigationMenuTrigger, Fe as Popover, Ie as PopoverDivider, ie as PortalContainerProvider, et as ProgressBar, kt as RadarChart, Ct as RadialChart, ve as RadioButton, Qr as Reasoning, _n as Resizable, wr as STAT_ICON_SIZE, Wn as SaveBar, Ae as ScrubSlider, me as SearchField, Ye as SegmentedControl, Me as Select, fn as Sheet, on as Sidebar, Sr as Skeleton, Se as Slider, cr as Sparkline, H as Spinner, Tr as Stat, Er as StatGroup, qr as StreamStatus, Jr as Suggestions, Re as Table, Ve as TableCell, ze as TableHeader, Ue as TableIcon, Be as TableRow, He as TableValue, qe as Tabs, Vt as TagsInput, ur as Textarea, Zt as Toaster, be as ToggleSwitch, Xr as ToolStep, Zr as ToolSteps, $t as Tooltip, Mn as TreeCanvas, ei as Truncate, Vr as UserMessage, mt as Waffle, pt as allocateCells, xt as calendarCells, zr as defaultChatHints, _t as levelOf, V as spinnerNames, Jt as toast, ae as usePortalContainer };
5951
+ export { Vn as Alert, Un as AlertDescription, Hn as AlertTitle, ai as AnswerActions, Qr as AssistantMessage, lt as BarMeter, De as BarSlider, le as Base, Qe as Breadcrumbs, W as Button, ar as Chart, Xr as ChatPanel, se as Checkbox, Ln as Chip, ni as CitationList, ti as CitationRef, hi as CodeCopy, ln as Combobox, zt as CommandPalette, ei as Composer, br as DatePicker, fi as Disclosure, dn as EmptyState, de as FilterPanelBase, Ft as GroupedBars, vt as Heatmap, Ir as Icicle, ge as InputField, Lt as Kbd, pr as Modal, Vr as NavigationMenu, Kr as NavigationMenuContent, Ur as NavigationMenuItem, qr as NavigationMenuLink, Hr as NavigationMenuList, Gr as NavigationMenuTrigger, Fe as Popover, Ie as PopoverDivider, ie as PortalContainerProvider, et as ProgressBar, kt as RadarChart, Ct as RadialChart, ve as RadioButton, ci as Reasoning, vn as Resizable, Tr as STAT_ICON_SIZE, Gn as SaveBar, Mr as ScoreMeter, Ae as ScrubSlider, me as SearchField, Ye as SegmentedControl, Me as Select, pn as Sheet, kr as ShimmerText, on as Sidebar, Cr as Skeleton, Se as Slider, lr as Sparkline, ne as Spinner, Er as Stat, Dr as StatGroup, ri as StreamStatus, ii as Suggestions, Re as Table, Ve as TableCell, ze as TableHeader, Ue as TableIcon, Be as TableRow, He as TableValue, qe as Tabs, Vt as TagsInput, dr as Textarea, Zt as Toaster, be as ToggleSwitch, oi as ToolStep, si as ToolSteps, $t as Tooltip, Nn as TreeCanvas, ui as Truncate, Zr as UserMessage, mt as Waffle, pt as allocateCells, xt as calendarCells, Yr as defaultChatHints, _t as levelOf, U as spinnerNames, Jt as toast, ae as usePortalContainer };