@indxsearch/systm 2.25.0-beta.0 → 2.25.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -471,11 +471,11 @@ function le({ children: e, className: t }) {
471
471
  });
472
472
  }
473
473
  var ue = {
474
- container: "_container_10bfq_1",
475
- header: "_header_10bfq_11",
476
- title: "_title_10bfq_31",
477
- toggleButton: "_toggleButton_10bfq_38",
478
- body: "_body_10bfq_49"
474
+ container: "_container_11t07_1",
475
+ header: "_header_11t07_14",
476
+ title: "_title_11t07_34",
477
+ toggleButton: "_toggleButton_11t07_41",
478
+ body: "_body_11t07_52"
479
479
  };
480
480
  // src/components/FilterPanelBase/FilterPanelBase.tsx
481
481
  function de({ title: t, children: n, className: r = "", collapsible: i = !0, collapsed: a = !1 }) {
@@ -519,79 +519,80 @@ function de({ title: t, children: n, className: r = "", collapsible: i = !0, col
519
519
  });
520
520
  }
521
521
  var fe = {
522
- wrapper: "_wrapper_nc093_1",
523
- label: "_label_nc093_7",
524
- inputContainer: "_inputContainer_nc093_12",
525
- input: "_input_nc093_12",
526
- focus: "_focus_nc093_35",
527
- searchIcon: "_searchIcon_nc093_52",
528
- rightContent: "_rightContent_nc093_69",
529
- sizeMicro: "_sizeMicro_nc093_80",
530
- sizeDefault: "_sizeDefault_nc093_89",
531
- error: "_error_nc093_112",
532
- errorText: "_errorText_nc093_116"
522
+ wrapper: "_wrapper_zccyc_1",
523
+ label: "_label_zccyc_7",
524
+ inputContainer: "_inputContainer_zccyc_12",
525
+ input: "_input_zccyc_12",
526
+ focus: "_focus_zccyc_35",
527
+ searchIcon: "_searchIcon_zccyc_52",
528
+ rightContent: "_rightContent_zccyc_69",
529
+ sizeMicro: "_sizeMicro_zccyc_80",
530
+ sizeDefault: "_sizeDefault_zccyc_89",
531
+ error: "_error_zccyc_112",
532
+ errorText: "_errorText_zccyc_116",
533
+ filled: "_filled_zccyc_121"
533
534
  }, pe = {
534
535
  micro: 14,
535
536
  default: 21
536
537
  };
537
- function me({ label: t, error: n, className: r = "", showSearchIcon: i = !0, searchIcon: a, searchIconColor: o, inputSize: s = "default", showFocusBorder: c = !1, clearable: u = !0, children: p, id: m, type: _ = "search", onChange: v, ...y }) {
538
- let b = d(null), x = y.value !== void 0, [S, C] = f(String(y.defaultValue ?? "")), w = x ? String(y.value ?? "") : S, T = u && w.length > 0 && !y.disabled && !y.readOnly, E = (e) => {
539
- x || C(e.target.value), v?.(e);
540
- }, D = () => {
541
- let e = b.current;
538
+ function me({ label: t, error: n, className: r = "", showSearchIcon: i = !0, searchIcon: a, searchIconColor: o, inputSize: s = "default", showFocusBorder: c = !1, clearable: u = !0, filled: p = !1, children: m, id: _, type: v = "search", onChange: y, ...b }) {
539
+ let x = d(null), S = b.value !== void 0, [C, w] = f(String(b.defaultValue ?? "")), T = S ? String(b.value ?? "") : C, E = u && T.length > 0 && !b.disabled && !b.readOnly, D = (e) => {
540
+ S || w(e.target.value), y?.(e);
541
+ }, O = () => {
542
+ let e = x.current;
542
543
  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), j = e.Children.toArray(p).length > 0 || T;
544
+ }, k = d(null), [A, j] = f(0), N = e.Children.toArray(m).length > 0 || E;
544
545
  l(() => {
545
- let e = O.current;
546
+ let e = k.current;
546
547
  if (!e) {
547
- A(0);
548
+ j(0);
548
549
  return;
549
550
  }
550
- let t = () => A(e.offsetWidth);
551
+ let t = () => j(e.offsetWidth);
551
552
  t();
552
553
  let n = new ResizeObserver(t);
553
554
  return n.observe(e), () => n.disconnect();
554
- }, [j]);
555
- let N = e.useId(), P = m || N, F = `${P}-error`, I = pe[s], L = {};
556
- o && (L["--search-icon-color"] = o), k > 0 && (L.paddingRight = `${k + 10}px`);
557
- let R = a ?? /* @__PURE__ */ h(M, {}), z = s === "micro" ? fe.sizeMicro : fe.sizeDefault;
555
+ }, [N]);
556
+ let P = e.useId(), F = _ || P, I = `${F}-error`, L = pe[s], R = {};
557
+ o && (R["--search-icon-color"] = o), A > 0 && (R.paddingRight = `${A + 10}px`);
558
+ let z = a ?? /* @__PURE__ */ h(M, {}), B = s === "micro" ? fe.sizeMicro : fe.sizeDefault;
558
559
  return /* @__PURE__ */ g("div", {
559
- className: `${fe.wrapper} ${r}`,
560
+ className: `${fe.wrapper} ${p ? fe.filled : ""} ${r}`,
560
561
  children: [
561
562
  t && /* @__PURE__ */ h("label", {
562
- htmlFor: P,
563
+ htmlFor: F,
563
564
  className: fe.label,
564
565
  children: t
565
566
  }),
566
567
  /* @__PURE__ */ g("div", {
567
- className: `${fe.inputContainer} ${z}`,
568
+ className: `${fe.inputContainer} ${B}`,
568
569
  children: [
569
570
  i && /* @__PURE__ */ h("span", {
570
571
  className: fe.searchIcon,
571
572
  "aria-hidden": "true",
572
- children: e.cloneElement(R, {
573
- size: I,
573
+ children: e.cloneElement(z, {
574
+ size: L,
574
575
  color: o ?? "var(--search-icon-color)"
575
576
  })
576
577
  }),
577
578
  /* @__PURE__ */ h("input", {
578
- ref: b,
579
- id: P,
580
- type: _,
579
+ ref: x,
580
+ id: F,
581
+ type: v,
581
582
  className: `${fe.input} ${c ? fe.focus : ""} ${n ? fe.error : ""}`,
582
- style: L,
583
+ style: R,
583
584
  "aria-invalid": n ? "true" : "false",
584
- "aria-describedby": n ? F : void 0,
585
- ...y,
586
- onChange: E
585
+ "aria-describedby": n ? I : void 0,
586
+ ...b,
587
+ onChange: D
587
588
  }),
588
- j && /* @__PURE__ */ g("div", {
589
- ref: O,
589
+ N && /* @__PURE__ */ g("div", {
590
+ ref: k,
590
591
  className: fe.rightContent,
591
- children: [p, T && /* @__PURE__ */ h(W, {
592
+ children: [m, E && /* @__PURE__ */ h(W, {
592
593
  variant: "ghost",
593
594
  size: "micro",
594
- onClick: D,
595
+ onClick: O,
595
596
  "aria-label": "Clear search",
596
597
  children: "Clear"
597
598
  })]
@@ -599,7 +600,7 @@ function me({ label: t, error: n, className: r = "", showSearchIcon: i = !0, sea
599
600
  ]
600
601
  }),
601
602
  n && /* @__PURE__ */ h("span", {
602
- id: F,
603
+ id: I,
603
604
  className: fe.errorText,
604
605
  role: "alert",
605
606
  children: n
@@ -1957,31 +1958,92 @@ var lt = "\0action", ut = ({ items: e, size: t = "default", overflow: n = "wrap"
1957
1958
  })
1958
1959
  });
1959
1960
  }, dt = {
1961
+ root: "_root_1cn44_1",
1962
+ list: "_list_1cn44_2",
1963
+ item: "_item_1cn44_4",
1964
+ micro: "_micro_1cn44_5",
1965
+ default: "_default_1cn44_6",
1966
+ gap: "_gap_1cn44_7"
1967
+ };
1968
+ // src/components/Pagination/Pagination.tsx
1969
+ function ft(e, t, n = 1) {
1970
+ let r = Math.max(1, Math.min(e - n, t - 2 * n - 2)), i = Math.min(t, Math.max(e + n, 2 * n + 3)), a = [];
1971
+ r > 1 && a.push(1), r === 3 ? a.push(2) : r > 3 && a.push(null);
1972
+ for (let e = r; e <= i; e++) a.push(e);
1973
+ return i === t - 2 ? a.push(t - 1) : i < t - 2 && a.push(null), i < t && a.push(t), a;
1974
+ }
1975
+ var pt = ({ page: e, pageCount: t, onPageChange: n, siblings: r = 1, size: i = "micro", disabled: a = !1, labels: o, className: s = "", "aria-label": c = "Pages" }) => {
1976
+ if (t < 2) return null;
1977
+ let l = Math.min(Math.max(1, e), t), u = o?.page ?? ((e) => `Page ${e}`), d = `${dt.item} ${dt[i]}`, f = (e) => {
1978
+ e !== l && n(e);
1979
+ };
1980
+ return /* @__PURE__ */ h("nav", {
1981
+ "aria-label": c,
1982
+ className: `${dt.root} ${s}`,
1983
+ children: /* @__PURE__ */ g("ul", {
1984
+ className: dt.list,
1985
+ children: [
1986
+ /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(W, {
1987
+ variant: "ghost",
1988
+ size: i,
1989
+ className: d,
1990
+ iconLeft: /* @__PURE__ */ h(S, {}),
1991
+ "aria-label": o?.previous ?? "Previous page",
1992
+ disabled: a || l === 1,
1993
+ onClick: () => f(l - 1)
1994
+ }) }),
1995
+ ft(l, t, r).map((e, t) => /* @__PURE__ */ h("li", { children: e === null ? /* @__PURE__ */ h("span", {
1996
+ className: `${dt.gap} ${dt[i]}`,
1997
+ "aria-hidden": "true",
1998
+ children: "…"
1999
+ }) : /* @__PURE__ */ h(W, {
2000
+ variant: e === l ? "secondary" : "ghost",
2001
+ size: i,
2002
+ className: d,
2003
+ "aria-label": u(e),
2004
+ "aria-current": e === l ? "page" : void 0,
2005
+ disabled: a,
2006
+ onClick: () => f(e),
2007
+ children: e
2008
+ }) }, e ?? `gap${t}`)),
2009
+ /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(W, {
2010
+ variant: "ghost",
2011
+ size: i,
2012
+ className: d,
2013
+ iconLeft: /* @__PURE__ */ h(C, {}),
2014
+ "aria-label": o?.next ?? "Next page",
2015
+ disabled: a || l === t,
2016
+ onClick: () => f(l + 1)
2017
+ }) })
2018
+ ]
2019
+ })
2020
+ });
2021
+ }, mt = {
1960
2022
  wrapper: "_wrapper_1ons8_1",
1961
2023
  track: "_track_1ons8_8",
1962
2024
  fill: "_fill_1ons8_39",
1963
2025
  label: "_label_1ons8_49"
1964
2026
  };
1965
2027
  // src/components/ProgressBar/ProgressBar.tsx
1966
- function ft({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
2028
+ function ht({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1967
2029
  let i = Math.min(100, Math.max(0, e)), a = `${Math.round(i)}%`, o = n && i >= 100 ? "var(--CPureBlue)" : void 0;
1968
2030
  return /* @__PURE__ */ g("div", {
1969
- className: `${dt.wrapper} ${r}`,
2031
+ className: `${mt.wrapper} ${r}`,
1970
2032
  role: "progressbar",
1971
2033
  "aria-valuenow": i,
1972
2034
  "aria-valuemin": 0,
1973
2035
  "aria-valuemax": 100,
1974
2036
  children: [/* @__PURE__ */ h("div", {
1975
- className: dt.track,
2037
+ className: mt.track,
1976
2038
  children: /* @__PURE__ */ h("div", {
1977
- className: dt.fill,
2039
+ className: mt.fill,
1978
2040
  style: {
1979
2041
  width: `${i}%`,
1980
2042
  backgroundColor: o
1981
2043
  }
1982
2044
  })
1983
2045
  }), t && /* @__PURE__ */ h("span", {
1984
- className: dt.label,
2046
+ className: mt.label,
1985
2047
  "aria-hidden": "true",
1986
2048
  children: a
1987
2049
  })]
@@ -2016,14 +2078,14 @@ var q = {
2016
2078
  dim: "_dim_1ywpg_203",
2017
2079
  zoneBar: "_zoneBar_1ywpg_208",
2018
2080
  centre: "_centre_1ywpg_212"
2019
- }, pt = (e, t) => e?.filter((e) => t >= e.from).sort((e, t) => t.from - e.from)[0]?.color, mt = (e, t, n) => e?.find((e) => e.from > 0 && Math.round(e.from * n) === t), ht = [
2081
+ }, gt = (e, t) => e?.filter((e) => t >= e.from).sort((e, t) => t.from - e.from)[0]?.color, _t = (e, t, n) => e?.find((e) => e.from > 0 && Math.round(e.from * n) === t), vt = [
2020
2082
  "var(--lv8)",
2021
2083
  "var(--lv5)",
2022
2084
  "var(--lv4)",
2023
2085
  "var(--lv3)"
2024
- ], gt = (e) => ht[Math.min(e, ht.length - 1)], _t = .08, vt = 4, yt = 96, bt = (e) => e < 72 ? 6 : 14;
2025
- function xt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "heads", format: a, maxLabel: o, color: s, zones: c, shape: l = "bar", size: u = 72, className: d = "" }) {
2026
- let f = n > 0 ? Math.min(1, Math.max(0, t / n)) : 0, p = s ?? pt(c, f), _ = (e) => a ? a(e) : e.toLocaleString(), v = o ?? /* @__PURE__ */ g(m, { children: ["of ", _(n)] });
2086
+ ], yt = (e) => vt[Math.min(e, vt.length - 1)], bt = .08, xt = 4, St = 96, Ct = (e) => e < 72 ? 6 : 14;
2087
+ function wt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "heads", format: a, maxLabel: o, color: s, zones: c, shape: l = "bar", size: u = 72, className: d = "" }) {
2088
+ let f = n > 0 ? Math.min(1, Math.max(0, t / n)) : 0, p = s ?? gt(c, f), _ = (e) => a ? a(e) : e.toLocaleString(), v = o ?? /* @__PURE__ */ g(m, { children: ["of ", _(n)] });
2027
2089
  if (r && l !== "ring") {
2028
2090
  let t = r.reduce((e, t) => e + Math.max(0, t.value), 0), n = (e) => a ? a(e.value) : `${Math.round((t > 0 ? e.value / t : 0) * 100)} %`, o = 0, s = r.map((e, n) => {
2029
2091
  let i = o, a = t > 0 ? Math.max(0, e.value) / t : 0;
@@ -2033,7 +2095,7 @@ function xt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
2033
2095
  from: i,
2034
2096
  to: n === r.length - 1 ? 1 : o,
2035
2097
  share: a,
2036
- color: e.color ?? gt(n)
2098
+ color: e.color ?? yt(n)
2037
2099
  };
2038
2100
  });
2039
2101
  return /* @__PURE__ */ g("div", {
@@ -2048,7 +2110,7 @@ function xt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
2048
2110
  /* @__PURE__ */ g("div", {
2049
2111
  className: `${q.shares} ${i === "legend" ? q.sharesLegend : ""}`,
2050
2112
  children: [
2051
- i === "heads" && s.map(({ g: e, i: t, from: r, to: i, share: a }) => (a >= _t || t === s.length - 1) && /* @__PURE__ */ g("div", {
2113
+ i === "heads" && s.map(({ g: e, i: t, from: r, to: i, share: a }) => (a >= bt || t === s.length - 1) && /* @__PURE__ */ g("div", {
2052
2114
  className: `${q.head} ${t === s.length - 1 ? q.headLast : ""}`,
2053
2115
  style: {
2054
2116
  "--seg-from": `${r * 100}%`,
@@ -2115,7 +2177,7 @@ function xt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
2115
2177
  },
2116
2178
  children: [/* @__PURE__ */ g("div", {
2117
2179
  className: q.dial,
2118
- children: [/* @__PURE__ */ h(St, {
2180
+ children: [/* @__PURE__ */ h(Tt, {
2119
2181
  fraction: f,
2120
2182
  size: u,
2121
2183
  zones: c
@@ -2125,7 +2187,7 @@ function xt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
2125
2187
  children: [/* @__PURE__ */ h("span", {
2126
2188
  className: q.value,
2127
2189
  children: _(t)
2128
- }), u >= yt && /* @__PURE__ */ h("span", {
2190
+ }), u >= St && /* @__PURE__ */ h("span", {
2129
2191
  className: q.max,
2130
2192
  children: v
2131
2193
  })]
@@ -2176,10 +2238,10 @@ function xt({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "he
2176
2238
  ]
2177
2239
  });
2178
2240
  }
2179
- function St({ fraction: e, size: t, zones: n }) {
2180
- let r = t / 2, i = Math.max(0, r - bt(t)), a = (r + i) / 2, o = Math.max(4, Math.round(2 * Math.PI * a / vt)), s = Math.round(e * o), c = [];
2241
+ function Tt({ fraction: e, size: t, zones: n }) {
2242
+ let r = t / 2, i = Math.max(0, r - Ct(t)), a = (r + i) / 2, o = Math.max(4, Math.round(2 * Math.PI * a / xt)), s = Math.round(e * o), c = [];
2181
2243
  for (let e = 0; e < o; e++) {
2182
- let t = (-90 + 360 * e / o) * (Math.PI / 180), a = Math.cos(t), l = Math.sin(t), u = mt(n, e, o);
2244
+ let t = (-90 + 360 * e / o) * (Math.PI / 180), a = Math.cos(t), l = Math.sin(t), u = _t(n, e, o);
2183
2245
  c.push(/* @__PURE__ */ h("line", {
2184
2246
  className: u ? q.zoneBar : e < s ? q.lit : q.dim,
2185
2247
  style: u ? { stroke: u.color } : void 0,
@@ -2198,7 +2260,7 @@ function St({ fraction: e, size: t, zones: n }) {
2198
2260
  children: c
2199
2261
  });
2200
2262
  }
2201
- var Ct = {
2263
+ var Et = {
2202
2264
  waffle: "_waffle_1c9lc_1",
2203
2265
  grid: "_grid_1c9lc_10",
2204
2266
  gridWrap: "_gridWrap_1c9lc_20",
@@ -2212,13 +2274,13 @@ var Ct = {
2212
2274
  icon: "_icon_1c9lc_78",
2213
2275
  name: "_name_1c9lc_83",
2214
2276
  share: "_share_1c9lc_87"
2215
- }, wt = [
2277
+ }, Dt = [
2216
2278
  "var(--lv8)",
2217
2279
  "var(--lv5)",
2218
2280
  "var(--lv4)",
2219
2281
  "var(--lv3)"
2220
2282
  ];
2221
- function Tt(e, t) {
2283
+ function Ot(e, t) {
2222
2284
  let n = e.reduce((e, t) => e + Math.max(0, t), 0);
2223
2285
  if (n <= 0) return e.map(() => 0);
2224
2286
  let r = e.map((e) => Math.max(0, e) / n * t), i = r.map(Math.floor), a = t - i.reduce((e, t) => e + t, 0), o = r.map((e, t) => ({
@@ -2235,8 +2297,8 @@ function Tt(e, t) {
2235
2297
  }
2236
2298
  return i;
2237
2299
  }
2238
- function Et({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i, legend: a = !0, "aria-label": o, className: s = "" }) {
2239
- let c = t * n, [l, u] = f(null), d = e.reduce((e, t) => e + Math.max(0, t.value), 0), p = Tt(e.map((e) => e.value), c), m = (t) => e[t].color ?? wt[Math.min(t, wt.length - 1)], _ = (e) => {
2300
+ function kt({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i, legend: a = !0, "aria-label": o, className: s = "" }) {
2301
+ let c = t * n, [l, u] = f(null), d = e.reduce((e, t) => e + Math.max(0, t.value), 0), p = Ot(e.map((e) => e.value), c), m = (t) => e[t].color ?? Dt[Math.min(t, Dt.length - 1)], _ = (e) => {
2240
2302
  let t = d > 0 ? Math.max(0, e.value) / d : 0;
2241
2303
  return i ? i(t, e.value) : `${Math.round(t * 100)} %`;
2242
2304
  }, v = [], y = 0, b = 0;
@@ -2246,7 +2308,7 @@ function Et({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i,
2246
2308
  b += 1;
2247
2309
  let n = y < p.length ? y : -1;
2248
2310
  v.push(/* @__PURE__ */ h("span", {
2249
- className: `${Ct.cell} ${l && l.segment !== n ? Ct.dim : ""}`,
2311
+ className: `${Et.cell} ${l && l.segment !== n ? Et.dim : ""}`,
2250
2312
  style: t ? { background: t } : void 0,
2251
2313
  onMouseEnter: () => u(n >= 0 ? {
2252
2314
  segment: n,
@@ -2257,34 +2319,34 @@ function Et({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i,
2257
2319
  let x = r + 2, S = l && l.cell != null && l.segment < e.length ? (() => {
2258
2320
  let i = Math.floor(l.cell / n), a = l.cell % n, o = i > t / 2, s = e[l.segment];
2259
2321
  return /* @__PURE__ */ g("div", {
2260
- className: `${Ct.tooltip} ${o ? Ct.tooltipLeft : ""}`,
2322
+ className: `${Et.tooltip} ${o ? Et.tooltipLeft : ""}`,
2261
2323
  style: {
2262
2324
  top: a * x + r / 2,
2263
2325
  left: o ? i * x - 6 : i * x + r + 6
2264
2326
  },
2265
2327
  children: [
2266
2328
  s.icon != null && /* @__PURE__ */ h("span", {
2267
- className: Ct.icon,
2329
+ className: Et.icon,
2268
2330
  children: s.icon
2269
2331
  }),
2270
2332
  /* @__PURE__ */ h("span", {
2271
- className: Ct.name,
2333
+ className: Et.name,
2272
2334
  children: s.label
2273
2335
  }),
2274
2336
  /* @__PURE__ */ h("span", {
2275
- className: Ct.share,
2337
+ className: Et.share,
2276
2338
  children: _(s)
2277
2339
  })
2278
2340
  ]
2279
2341
  });
2280
2342
  })() : null;
2281
2343
  return /* @__PURE__ */ g("div", {
2282
- className: `${Ct.waffle} ${s}`,
2344
+ className: `${Et.waffle} ${s}`,
2283
2345
  children: [/* @__PURE__ */ g("div", {
2284
- className: Ct.gridWrap,
2346
+ className: Et.gridWrap,
2285
2347
  onMouseLeave: () => u(null),
2286
2348
  children: [/* @__PURE__ */ h("div", {
2287
- className: Ct.grid,
2349
+ className: Et.grid,
2288
2350
  role: "img",
2289
2351
  "aria-label": o,
2290
2352
  style: {
@@ -2294,10 +2356,10 @@ function Et({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i,
2294
2356
  children: v
2295
2357
  }), S]
2296
2358
  }), a && /* @__PURE__ */ h("ul", {
2297
- className: Ct.legend,
2359
+ className: Et.legend,
2298
2360
  "aria-hidden": !o || void 0,
2299
2361
  children: e.map((e, t) => /* @__PURE__ */ g("li", {
2300
- className: Ct.item,
2362
+ className: Et.item,
2301
2363
  onMouseEnter: () => u({
2302
2364
  segment: t,
2303
2365
  cell: null
@@ -2305,19 +2367,19 @@ function Et({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i,
2305
2367
  onMouseLeave: () => u(null),
2306
2368
  children: [
2307
2369
  /* @__PURE__ */ h("span", {
2308
- className: Ct.swatch,
2370
+ className: Et.swatch,
2309
2371
  style: { background: m(t) }
2310
2372
  }),
2311
2373
  e.icon != null && /* @__PURE__ */ h("span", {
2312
- className: Ct.icon,
2374
+ className: Et.icon,
2313
2375
  children: e.icon
2314
2376
  }),
2315
2377
  /* @__PURE__ */ h("span", {
2316
- className: Ct.name,
2378
+ className: Et.name,
2317
2379
  children: e.label
2318
2380
  }),
2319
2381
  /* @__PURE__ */ h("span", {
2320
- className: Ct.share,
2382
+ className: Et.share,
2321
2383
  children: _(e)
2322
2384
  })
2323
2385
  ]
@@ -2325,7 +2387,7 @@ function Et({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i,
2325
2387
  })]
2326
2388
  });
2327
2389
  }
2328
- var Dt = {
2390
+ var At = {
2329
2391
  heatmap: "_heatmap_1poh8_1",
2330
2392
  gridWrap: "_gridWrap_1poh8_12",
2331
2393
  withRows: "_withRows_1poh8_17",
@@ -2339,34 +2401,34 @@ var Dt = {
2339
2401
  columnLabel: "_columnLabel_1poh8_65",
2340
2402
  rowLabels: "_rowLabels_1poh8_77",
2341
2403
  rowLabel: "_rowLabel_1poh8_77"
2342
- }, Ot = [
2404
+ }, jt = [
2343
2405
  "var(--lv3)",
2344
2406
  "var(--lv4)",
2345
2407
  "var(--lv5)",
2346
2408
  "var(--lv8)"
2347
2409
  ];
2348
- function kt(e, t) {
2349
- return e <= 0 || t <= 0 ? 0 : Math.min(Ot.length, Math.max(1, Math.ceil(e / t * Ot.length)));
2410
+ function Mt(e, t) {
2411
+ return e <= 0 || t <= 0 ? 0 : Math.min(jt.length, Math.max(1, Math.ceil(e / t * jt.length)));
2350
2412
  }
2351
- function At({ values: e, rows: t = 7, max: n, columnLabels: r, rowLabels: i, cell: a = 6, format: o, "aria-label": s, className: c = "" }) {
2413
+ function Nt({ values: e, rows: t = 7, max: n, columnLabels: r, rowLabels: i, cell: a = 6, format: o, "aria-label": s, className: c = "" }) {
2352
2414
  let l = n ?? e.reduce((e, t) => t != null && t > e ? t : e, 0), u = Math.ceil(e.length / t), d = a + 2, [p, m] = f(null), _ = [];
2353
2415
  for (let n = 0; n < u * t; n++) {
2354
2416
  let t = n < e.length ? e[n] : null;
2355
2417
  if (t == null) {
2356
- _.push(/* @__PURE__ */ h("span", { className: Dt.gap }, n));
2418
+ _.push(/* @__PURE__ */ h("span", { className: At.gap }, n));
2357
2419
  continue;
2358
2420
  }
2359
- let r = kt(t, l);
2421
+ let r = Mt(t, l);
2360
2422
  _.push(/* @__PURE__ */ h("span", {
2361
- className: `${Dt.cell} ${p === n ? Dt.hovered : ""}`,
2362
- style: r ? { background: Ot[r - 1] } : void 0,
2423
+ className: `${At.cell} ${p === n ? At.hovered : ""}`,
2424
+ style: r ? { background: jt[r - 1] } : void 0,
2363
2425
  onMouseEnter: o ? () => m(n) : void 0
2364
2426
  }, n));
2365
2427
  }
2366
2428
  let v = p != null && o && e[p] != null ? (() => {
2367
2429
  let n = Math.floor(p / t), r = p % t, i = n > u / 2;
2368
2430
  return /* @__PURE__ */ h("div", {
2369
- className: `${Dt.tooltip} ${i ? Dt.tooltipLeft : ""}`,
2431
+ className: `${At.tooltip} ${i ? At.tooltipLeft : ""}`,
2370
2432
  style: {
2371
2433
  top: r * d + a / 2,
2372
2434
  left: i ? n * d - 6 : n * d + a + 6
@@ -2375,7 +2437,7 @@ function At({ values: e, rows: t = 7, max: n, columnLabels: r, rowLabels: i, cel
2375
2437
  });
2376
2438
  })() : null;
2377
2439
  return /* @__PURE__ */ g("div", {
2378
- className: `${Dt.heatmap} ${i ? Dt.withRows : ""} ${c}`,
2440
+ className: `${At.heatmap} ${i ? At.withRows : ""} ${c}`,
2379
2441
  style: {
2380
2442
  "--heatmap-rows": t,
2381
2443
  "--heatmap-cell": `${a}px`,
@@ -2383,29 +2445,29 @@ function At({ values: e, rows: t = 7, max: n, columnLabels: r, rowLabels: i, cel
2383
2445
  },
2384
2446
  children: [
2385
2447
  i && /* @__PURE__ */ h("div", {
2386
- className: Dt.rowLabels,
2448
+ className: At.rowLabels,
2387
2449
  "aria-hidden": "true",
2388
2450
  children: i.map((e) => /* @__PURE__ */ h("span", {
2389
- className: Dt.rowLabel,
2451
+ className: At.rowLabel,
2390
2452
  style: { top: e.at * d },
2391
2453
  children: e.label
2392
2454
  }, e.at))
2393
2455
  }),
2394
2456
  /* @__PURE__ */ g("div", {
2395
- className: Dt.gridWrap,
2457
+ className: At.gridWrap,
2396
2458
  onMouseLeave: () => m(null),
2397
2459
  children: [/* @__PURE__ */ h("div", {
2398
- className: Dt.grid,
2460
+ className: At.grid,
2399
2461
  role: "img",
2400
2462
  "aria-label": s,
2401
2463
  children: _
2402
2464
  }), v]
2403
2465
  }),
2404
2466
  r && /* @__PURE__ */ h("div", {
2405
- className: Dt.columnLabels,
2467
+ className: At.columnLabels,
2406
2468
  "aria-hidden": "true",
2407
2469
  children: r.map((e) => /* @__PURE__ */ h("span", {
2408
- className: Dt.columnLabel,
2470
+ className: At.columnLabel,
2409
2471
  style: { left: e.at * d },
2410
2472
  children: e.label
2411
2473
  }, e.at))
@@ -2413,7 +2475,7 @@ function At({ values: e, rows: t = 7, max: n, columnLabels: r, rowLabels: i, cel
2413
2475
  ]
2414
2476
  });
2415
2477
  }
2416
- var jt = [
2478
+ var Pt = [
2417
2479
  "Jan",
2418
2480
  "Feb",
2419
2481
  "Mar",
@@ -2426,7 +2488,7 @@ var jt = [
2426
2488
  "Oct",
2427
2489
  "Nov",
2428
2490
  "Dec"
2429
- ], Mt = [
2491
+ ], Ft = [
2430
2492
  "Mon",
2431
2493
  "Tue",
2432
2494
  "Wed",
@@ -2435,14 +2497,14 @@ var jt = [
2435
2497
  "Sat",
2436
2498
  "Sun"
2437
2499
  ];
2438
- function Nt(e, t, n) {
2500
+ function It(e, t, n) {
2439
2501
  let r = new Date(e.getFullYear(), e.getMonth(), e.getDate()), i = new Date(t.getFullYear(), t.getMonth(), t.getDate()), a = [], o = [], s = [], c = (r.getDay() + 6) % 7;
2440
2502
  for (let e = 0; e < c; e++) a.push(null), o.push(null);
2441
2503
  for (let e = new Date(r); e <= i; e.setDate(e.getDate() + 1)) {
2442
2504
  let t = new Date(e);
2443
2505
  t.getDate() === 1 && s.push({
2444
2506
  at: Math.floor(a.length / 7),
2445
- label: jt[t.getMonth()]
2507
+ label: Pt[t.getMonth()]
2446
2508
  }), a.push(n(t)), o.push(t);
2447
2509
  }
2448
2510
  for (; a.length % 7;) a.push(null), o.push(null);
@@ -2456,7 +2518,7 @@ function Nt(e, t, n) {
2456
2518
  4
2457
2519
  ].map((e) => ({
2458
2520
  at: e,
2459
- label: Mt[e]
2521
+ label: Ft[e]
2460
2522
  }))
2461
2523
  };
2462
2524
  }
@@ -2487,8 +2549,8 @@ var J = {
2487
2549
  legendLabel: "_legendLabel_16ve1_159",
2488
2550
  tooltipLabel: "_tooltipLabel_16ve1_164",
2489
2551
  tooltipValue: "_tooltipValue_16ve1_171"
2490
- }, Pt = "var(--lv6)";
2491
- function Ft({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding: a = 8, size: o = 240, hollow: s = .4, inverse: c = !1, max: l, color: u, format: d, centre: p, showLegend: m = !0, "aria-label": _, className: v = "" }) {
2552
+ }, Lt = "var(--lv6)";
2553
+ function Rt({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding: a = 8, size: o = 240, hollow: s = .4, inverse: c = !1, max: l, color: u, format: d, centre: p, showLegend: m = !0, "aria-label": _, className: v = "" }) {
2492
2554
  let [y, b] = f(null), x = o / 2, S = x * Math.min(.9, Math.max(0, s)), C = x - S, w = !!r?.length, T = w ? [{
2493
2555
  label: "",
2494
2556
  values: r.map((e) => e.value),
@@ -2497,7 +2559,7 @@ function Ft({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding:
2497
2559
  label: "",
2498
2560
  values: e ?? [],
2499
2561
  color: u
2500
- }], 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 ?? Pt, R = Math.min(a, C * .12), z = i / 2 + R, B = (e, t) => {
2562
+ }], 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 ?? Lt, R = Math.min(a, C * .12), z = i / 2 + R, B = (e, t) => {
2501
2563
  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);
2502
2564
  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`;
2503
2565
  }, ee = (e) => {
@@ -2518,7 +2580,7 @@ function Ft({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding:
2518
2580
  style: { strokeWidth: R * 2 },
2519
2581
  d: B(e, x)
2520
2582
  }, `t${e}`)), n > 0) {
2521
- let r = t.color ?? u ?? Pt;
2583
+ let r = t.color ?? u ?? Lt;
2522
2584
  te.push(/* @__PURE__ */ h("path", {
2523
2585
  className: `${J.wedge} ${y === e ? J.wedgeHovered : ""}`,
2524
2586
  style: {
@@ -2668,7 +2730,7 @@ function Ft({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding:
2668
2730
  })]
2669
2731
  });
2670
2732
  }
2671
- var Y = {
2733
+ var zt = {
2672
2734
  wrapper: "_wrapper_1gzqh_1",
2673
2735
  radar: "_radar_1gzqh_7",
2674
2736
  svg: "_svg_1gzqh_13",
@@ -2689,7 +2751,7 @@ var Y = {
2689
2751
  legendItem: "_legendItem_1gzqh_112",
2690
2752
  legendMark: "_legendMark_1gzqh_118",
2691
2753
  legendLabel: "_legendLabel_1gzqh_124"
2692
- }, It = "var(--lv6)", Lt = .14, Rt = .7, zt = 36, Bt = {
2754
+ }, Bt = "var(--lv6)", Vt = .14, Ht = .7, Ut = 36, Wt = {
2693
2755
  hatch: [
2694
2756
  [
2695
2757
  0,
@@ -2734,11 +2796,11 @@ var Y = {
2734
2796
  2
2735
2797
  ]]
2736
2798
  };
2737
- function Vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a, showLegend: o = !0, "aria-label": c, className: l = "" }) {
2738
- let u = s(), [d, p] = f(null), m = e.length, _ = n / 2, v = Math.max(zt, Math.max(0, ...e.map((e) => e.label.length)) * 6.5 + 14), y = n + v * 2, b = n + 56, x = y / 2, S = b / 2, C = r ?? t.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), w = (t) => e[t].max ?? C, T = (e) => -Math.PI / 2 + 2 * Math.PI * e / Math.max(1, m), E = (e, t) => [x + t * Math.cos(T(e)), S + t * Math.sin(T(e))], D = (e, t) => {
2799
+ function Gt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a, showLegend: o = !0, "aria-label": c, className: l = "" }) {
2800
+ let u = s(), [d, p] = f(null), m = e.length, _ = n / 2, v = Math.max(Ut, Math.max(0, ...e.map((e) => e.label.length)) * 6.5 + 14), y = n + v * 2, b = n + 56, x = y / 2, S = b / 2, C = r ?? t.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), w = (t) => e[t].max ?? C, T = (e) => -Math.PI / 2 + 2 * Math.PI * e / Math.max(1, m), E = (e, t) => [x + t * Math.cos(T(e)), S + t * Math.sin(T(e))], D = (e, t) => {
2739
2801
  let n = w(e);
2740
2802
  return n > 0 && Number.isFinite(t) ? Math.min(1, Math.max(0, t / n)) * _ : 0;
2741
- }, O = (e) => e.color ?? It, k = (t, n) => e[t].format?.(n) ?? a?.(n) ?? n.toLocaleString(), A = (e) => {
2803
+ }, O = (e) => e.color ?? Bt, k = (t, n) => e[t].format?.(n) ?? a?.(n) ?? n.toLocaleString(), A = (e) => {
2742
2804
  if (m === 0) return;
2743
2805
  let t = e.currentTarget.getBoundingClientRect(), n = (e.clientX - t.left) / t.width * y - x, r = (e.clientY - t.top) / t.height * b - S;
2744
2806
  if (Math.hypot(n, r) > _ + v) {
@@ -2750,18 +2812,18 @@ function Vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
2750
2812
  }, j = Array.from({ length: i }, (e, t) => {
2751
2813
  let n = _ * (t + 1) / i;
2752
2814
  return Array.from({ length: m }, (e, t) => E(t, n).map((e) => e.toFixed(2)).join(",")).join(" ");
2753
- }), M = t.filter((e) => e.fill && e.fill in Bt);
2815
+ }), M = t.filter((e) => e.fill && e.fill in Wt);
2754
2816
  return /* @__PURE__ */ g("div", {
2755
- className: `${Y.wrapper} ${l}`,
2817
+ className: `${zt.wrapper} ${l}`,
2756
2818
  children: [/* @__PURE__ */ g("div", {
2757
- className: Y.radar,
2819
+ className: zt.radar,
2758
2820
  style: {
2759
2821
  "--radar-width": `${y}px`,
2760
2822
  "--radar-height": `${b}px`
2761
2823
  },
2762
2824
  onPointerLeave: () => p(null),
2763
2825
  children: [/* @__PURE__ */ g("svg", {
2764
- className: Y.svg,
2826
+ className: zt.svg,
2765
2827
  viewBox: `0 0 ${y} ${b}`,
2766
2828
  width: y,
2767
2829
  height: b,
@@ -2770,12 +2832,12 @@ function Vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
2770
2832
  onPointerMove: A,
2771
2833
  onPointerDown: A,
2772
2834
  children: [
2773
- M.length > 0 && /* @__PURE__ */ h("defs", { children: t.map((e, t) => e.fill && e.fill in Bt ? /* @__PURE__ */ h("pattern", {
2835
+ M.length > 0 && /* @__PURE__ */ h("defs", { children: t.map((e, t) => e.fill && e.fill in Wt ? /* @__PURE__ */ h("pattern", {
2774
2836
  id: `${u}-${t}`,
2775
2837
  width: 4,
2776
2838
  height: 4,
2777
2839
  patternUnits: "userSpaceOnUse",
2778
- children: Bt[e.fill].map(([t, n, r, i], a) => /* @__PURE__ */ h("rect", {
2840
+ children: Wt[e.fill].map(([t, n, r, i], a) => /* @__PURE__ */ h("rect", {
2779
2841
  x: t,
2780
2842
  y: n,
2781
2843
  width: r,
@@ -2784,13 +2846,13 @@ function Vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
2784
2846
  }, a))
2785
2847
  }, t) : null) }),
2786
2848
  j.map((e, t) => /* @__PURE__ */ h("polygon", {
2787
- className: t === i - 1 ? Y.rim : Y.ring,
2849
+ className: t === i - 1 ? zt.rim : zt.ring,
2788
2850
  points: e
2789
2851
  }, `r${t}`)),
2790
2852
  e.map((e, t) => {
2791
2853
  let [n, r] = E(t, _);
2792
2854
  return /* @__PURE__ */ h("line", {
2793
- className: `${Y.axis} ${d === t ? Y.axisHovered : ""}`,
2855
+ className: `${zt.axis} ${d === t ? zt.axisHovered : ""}`,
2794
2856
  x1: x,
2795
2857
  y1: S,
2796
2858
  x2: n,
@@ -2798,12 +2860,12 @@ function Vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
2798
2860
  }, `a${t}`);
2799
2861
  }),
2800
2862
  t.map((t, n) => {
2801
- let r = e.map((e, n) => E(n, D(n, t.values[n]))), i = t.fill ?? "solid", a = i in Bt ? `url(#${u}-${n})` : O(t);
2863
+ let r = e.map((e, n) => E(n, D(n, t.values[n]))), i = t.fill ?? "solid", a = i in Wt ? `url(#${u}-${n})` : O(t);
2802
2864
  return /* @__PURE__ */ g("g", { children: [
2803
2865
  i !== "none" && /* @__PURE__ */ h("polygon", {
2804
2866
  points: r.map(([e, t]) => `${e.toFixed(2)},${t.toFixed(2)}`).join(" "),
2805
2867
  fill: a,
2806
- fillOpacity: i === "solid" ? Lt : Rt,
2868
+ fillOpacity: i === "solid" ? Vt : Ht,
2807
2869
  stroke: "none"
2808
2870
  }),
2809
2871
  /* @__PURE__ */ h("polygon", {
@@ -2828,7 +2890,7 @@ function Vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
2828
2890
  e.map((e, t) => {
2829
2891
  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";
2830
2892
  return /* @__PURE__ */ h("text", {
2831
- className: `${Y.label} ${d === t ? Y.labelHovered : ""}`,
2893
+ className: `${zt.label} ${d === t ? zt.labelHovered : ""}`,
2832
2894
  x: n,
2833
2895
  y: r,
2834
2896
  dy: o,
@@ -2840,27 +2902,27 @@ function Vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
2840
2902
  }), d != null && (() => {
2841
2903
  let [n, r] = E(d, _ + 10), i = n > x;
2842
2904
  return /* @__PURE__ */ g("div", {
2843
- className: `${Y.tooltip} ${i ? Y.tooltipLeft : ""}`,
2905
+ className: `${zt.tooltip} ${i ? zt.tooltipLeft : ""}`,
2844
2906
  style: {
2845
2907
  left: n,
2846
2908
  top: r
2847
2909
  },
2848
2910
  children: [/* @__PURE__ */ h("span", {
2849
- className: Y.tooltipLabel,
2911
+ className: zt.tooltipLabel,
2850
2912
  children: e[d].label
2851
2913
  }), t.map((e, n) => /* @__PURE__ */ g("span", {
2852
- className: Y.tooltipRow,
2914
+ className: zt.tooltipRow,
2853
2915
  children: [
2854
2916
  t.length > 1 && /* @__PURE__ */ h("span", {
2855
- className: Y.tooltipDot,
2917
+ className: zt.tooltipDot,
2856
2918
  style: { background: O(e) }
2857
2919
  }),
2858
2920
  t.length > 1 && /* @__PURE__ */ h("span", {
2859
- className: Y.tooltipName,
2921
+ className: zt.tooltipName,
2860
2922
  children: e.label
2861
2923
  }),
2862
2924
  /* @__PURE__ */ h("span", {
2863
- className: Y.tooltipValue,
2925
+ className: zt.tooltipValue,
2864
2926
  children: k(d, e.values[d] ?? 0)
2865
2927
  })
2866
2928
  ]
@@ -2868,21 +2930,21 @@ function Vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: a
2868
2930
  });
2869
2931
  })()]
2870
2932
  }), o && t.length > 1 && /* @__PURE__ */ h("div", {
2871
- className: Y.legend,
2933
+ className: zt.legend,
2872
2934
  children: t.map((e, t) => /* @__PURE__ */ g("span", {
2873
- className: Y.legendItem,
2935
+ className: zt.legendItem,
2874
2936
  children: [/* @__PURE__ */ h("span", {
2875
- className: Y.legendMark,
2937
+ className: zt.legendMark,
2876
2938
  style: { background: O(e) }
2877
2939
  }), /* @__PURE__ */ h("span", {
2878
- className: Y.legendLabel,
2940
+ className: zt.legendLabel,
2879
2941
  children: e.label
2880
2942
  })]
2881
2943
  }, t))
2882
2944
  })]
2883
2945
  });
2884
2946
  }
2885
- var Ht = {
2947
+ var Kt = {
2886
2948
  chart: "_chart_106dt_1",
2887
2949
  svg: "_svg_106dt_7",
2888
2950
  divider: "_divider_106dt_13",
@@ -2896,8 +2958,8 @@ var Ht = {
2896
2958
  tooltipLeft: "_tooltipLeft_106dt_66",
2897
2959
  tooltipLabel: "_tooltipLabel_106dt_70",
2898
2960
  tooltipValue: "_tooltipValue_106dt_77"
2899
- }, Ut = "var(--lv6)", Wt = 30, Gt = 10, Kt = 20;
2900
- function qt({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format: a, "aria-label": s, className: c = "" }) {
2961
+ }, qt = "var(--lv6)", Jt = 30, Yt = 10, Xt = 20;
2962
+ function Zt({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format: a, "aria-label": s, className: c = "" }) {
2901
2963
  let l = i, u = d(null), [p, m] = f(0), [_, v] = f(null);
2902
2964
  o(() => {
2903
2965
  let e = u.current;
@@ -2905,9 +2967,9 @@ function qt({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
2905
2967
  let t = new ResizeObserver(([e]) => m(e.contentRect.width));
2906
2968
  return t.observe(e), m(e.clientWidth), () => t.disconnect();
2907
2969
  }, []);
2908
- let y = e.reduce((e, t) => e + t.values.length, 0), b = r ?? e.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), x = n + Wt + 4 + Gt + Kt, S = Wt + n, C = y > 0 ? (p - l * Math.max(0, e.length - 1)) / y : 0, w = [], T = 0;
2970
+ let y = e.reduce((e, t) => e + t.values.length, 0), b = r ?? e.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), x = n + Jt + 4 + Yt + Xt, S = Jt + n, C = y > 0 ? (p - l * Math.max(0, e.length - 1)) / y : 0, w = [], T = 0;
2909
2971
  for (let t of e) w.push(T), T += t.values.length * C + l;
2910
- let E = (e, t) => w[e] + t * C + C / 2, D = (e) => e.highlight ? e.color ?? "var(--CTeal)" : Ut, O = C > 0 ? Math.max(1, Math.ceil(28 / C)) : 1, k = (e, t) => Math.min(p - 10, Math.max(10, E(e, t))), A = (t) => {
2972
+ let E = (e, t) => w[e] + t * C + C / 2, D = (e) => e.highlight ? e.color ?? "var(--CTeal)" : qt, O = C > 0 ? Math.max(1, Math.ceil(28 / C)) : 1, k = (e, t) => Math.min(p - 10, Math.max(10, E(e, t))), A = (t) => {
2911
2973
  if (!a || y === 0) return;
2912
2974
  let n = t.currentTarget.getBoundingClientRect(), r = t.clientX - n.left;
2913
2975
  for (let t = 0; t < e.length; t++) {
@@ -2922,27 +2984,27 @@ function qt({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
2922
2984
  }, j = _ && a ? (() => {
2923
2985
  let [r, i] = _, o = e[r], s = E(r, i), c = s > p / 2, l = b > 0 && Number.isFinite(o.values[i]) ? Math.max(0, o.values[i]) / b * n : 0;
2924
2986
  return /* @__PURE__ */ g("div", {
2925
- className: `${Ht.tooltip} ${c ? Ht.tooltipLeft : ""}`,
2987
+ className: `${Kt.tooltip} ${c ? Kt.tooltipLeft : ""}`,
2926
2988
  style: {
2927
2989
  left: c ? s - 8 : s + 8,
2928
2990
  top: Math.max(42, S - l)
2929
2991
  },
2930
2992
  children: [/* @__PURE__ */ g("span", {
2931
- className: Ht.tooltipLabel,
2993
+ className: Kt.tooltipLabel,
2932
2994
  children: [o.label, t?.[i] == null ? "" : `, ${t[i]}`]
2933
2995
  }), /* @__PURE__ */ h("span", {
2934
- className: Ht.tooltipValue,
2996
+ className: Kt.tooltipValue,
2935
2997
  children: a(o.values[i], r, i)
2936
2998
  })]
2937
2999
  });
2938
3000
  })() : null;
2939
3001
  return /* @__PURE__ */ g("div", {
2940
3002
  ref: u,
2941
- className: `${Ht.chart} ${c}`,
3003
+ className: `${Kt.chart} ${c}`,
2942
3004
  style: { height: x },
2943
3005
  onPointerLeave: () => v(null),
2944
3006
  children: [p > 0 && /* @__PURE__ */ h("svg", {
2945
- className: Ht.svg,
3007
+ className: Kt.svg,
2946
3008
  width: p,
2947
3009
  height: x,
2948
3010
  role: "img",
@@ -2953,20 +3015,20 @@ function qt({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
2953
3015
  let i = w[r], a = e.values.length * C, o = D(e);
2954
3016
  return /* @__PURE__ */ g("g", { children: [
2955
3017
  /* @__PURE__ */ h("line", {
2956
- className: Ht.divider,
3018
+ className: Kt.divider,
2957
3019
  x1: i,
2958
3020
  y1: 0,
2959
3021
  x2: i,
2960
3022
  y2: S
2961
3023
  }),
2962
3024
  /* @__PURE__ */ h("text", {
2963
- className: Ht.head,
3025
+ className: Kt.head,
2964
3026
  x: i + 6,
2965
3027
  y: 11,
2966
3028
  children: e.label
2967
3029
  }),
2968
3030
  e.sublabel != null && /* @__PURE__ */ h("text", {
2969
- className: `${Ht.sub} ${e.highlight ? Ht.subHighlight : ""}`,
3031
+ className: `${Kt.sub} ${e.highlight ? Kt.subHighlight : ""}`,
2970
3032
  x: i + 6,
2971
3033
  y: 23,
2972
3034
  style: e.highlight ? { fill: o } : void 0,
@@ -2975,7 +3037,7 @@ function qt({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
2975
3037
  e.values.map((e, t) => {
2976
3038
  let i = b > 0 && Number.isFinite(e) ? Math.max(0, e) / b * n : 0, a = _?.[0] === r && _[1] === t;
2977
3039
  return /* @__PURE__ */ h("rect", {
2978
- className: a ? Ht.barHovered : Ht.bar,
3040
+ className: a ? Kt.barHovered : Kt.bar,
2979
3041
  style: { fill: a ? void 0 : o },
2980
3042
  x: E(r, t) - (a ? 1.5 : 1),
2981
3043
  y: S - i,
@@ -2984,15 +3046,15 @@ function qt({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
2984
3046
  }, t);
2985
3047
  }),
2986
3048
  /* @__PURE__ */ h("rect", {
2987
- className: Ht.band,
3049
+ className: Kt.band,
2988
3050
  style: e.highlight ? { fill: o } : void 0,
2989
3051
  x: i,
2990
3052
  y: S + 4,
2991
3053
  width: a,
2992
- height: Gt
3054
+ height: Yt
2993
3055
  }),
2994
3056
  t && e.values.map((e, n) => n % O === 0 ? /* @__PURE__ */ h("text", {
2995
- className: Ht.tick,
3057
+ className: Kt.tick,
2996
3058
  x: k(r, n),
2997
3059
  y: x - 5,
2998
3060
  textAnchor: "middle",
@@ -3003,16 +3065,16 @@ function qt({ groups: e, labels: t, height: n = 120, max: r, gap: i = 2, format:
3003
3065
  }), j]
3004
3066
  });
3005
3067
  }
3006
- var Jt = { kbd: "_kbd_17l44_3" };
3068
+ var Qt = { kbd: "_kbd_17l44_3" };
3007
3069
  // src/components/Kbd/Kbd.tsx
3008
- function Yt({ children: e, className: t = "", ...n }) {
3070
+ function $t({ children: e, className: t = "", ...n }) {
3009
3071
  return /* @__PURE__ */ h("kbd", {
3010
- className: `${Jt.kbd} ${t}`,
3072
+ className: `${Qt.kbd} ${t}`,
3011
3073
  ...n,
3012
3074
  children: e
3013
3075
  });
3014
3076
  }
3015
- var Xt = {
3077
+ var en = {
3016
3078
  overlay: "_overlay_11duy_3",
3017
3079
  panel: "_panel_11duy_14",
3018
3080
  field: "_field_11duy_25",
@@ -3028,7 +3090,7 @@ var Xt = {
3028
3090
  empty: "_empty_11duy_111"
3029
3091
  };
3030
3092
  // src/components/CommandPalette/CommandPalette.tsx
3031
- function Zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, onChoose: c, shortcut: l = "k", placeholder: u = "Search", emptyText: p = "Nothing to show.", noMatchText: m = "No matches.", "aria-label": _ = "Command palette" }) {
3093
+ function tn({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, onChoose: c, shortcut: l = "k", placeholder: u = "Search", emptyText: p = "Nothing to show.", noMatchText: m = "No matches.", "aria-label": _ = "Command palette" }) {
3032
3094
  let v = s(), y = d(null), b = d(null), [x, S] = f(0);
3033
3095
  o(() => {
3034
3096
  if (!l) return;
@@ -3066,19 +3128,19 @@ function Zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, on
3066
3128
  if (!i) return null;
3067
3129
  let E = /* @__PURE__ */ new Set(), D = t.filter((e) => !E.has(e.id) && (E.add(e.id), !0)), O;
3068
3130
  return /* @__PURE__ */ h("div", {
3069
- className: Xt.overlay,
3131
+ className: en.overlay,
3070
3132
  onClick: C,
3071
3133
  children: /* @__PURE__ */ g("div", {
3072
- className: Xt.panel,
3134
+ className: en.panel,
3073
3135
  role: "dialog",
3074
3136
  "aria-modal": "true",
3075
3137
  "aria-label": _,
3076
3138
  onClick: (e) => e.stopPropagation(),
3077
3139
  children: [/* @__PURE__ */ g("div", {
3078
- className: Xt.field,
3140
+ className: en.field,
3079
3141
  children: [
3080
3142
  /* @__PURE__ */ h("span", {
3081
- className: Xt.icon,
3143
+ className: en.icon,
3082
3144
  children: /* @__PURE__ */ h(M, {
3083
3145
  size: 14,
3084
3146
  color: "currentColor"
@@ -3086,7 +3148,7 @@ function Zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, on
3086
3148
  }),
3087
3149
  /* @__PURE__ */ h("input", {
3088
3150
  ref: y,
3089
- className: Xt.input,
3151
+ className: en.input,
3090
3152
  type: "text",
3091
3153
  role: "combobox",
3092
3154
  "aria-expanded": "true",
@@ -3100,21 +3162,21 @@ function Zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, on
3100
3162
  onChange: (e) => r(e.target.value),
3101
3163
  onKeyDown: T
3102
3164
  }),
3103
- /* @__PURE__ */ h(Yt, { children: "esc" })
3165
+ /* @__PURE__ */ h($t, { children: "esc" })
3104
3166
  ]
3105
3167
  }), /* @__PURE__ */ g("div", {
3106
3168
  ref: b,
3107
- className: Xt.list,
3169
+ className: en.list,
3108
3170
  id: v,
3109
3171
  role: "listbox",
3110
3172
  "aria-label": _,
3111
3173
  children: [D.length === 0 && /* @__PURE__ */ h("p", {
3112
- className: Xt.empty,
3174
+ className: en.empty,
3113
3175
  children: n.trim() ? m : p
3114
3176
  }), D.map((t, n) => {
3115
3177
  let r = t.group !== O && t.group ? t.group : null;
3116
3178
  return O = t.group, /* @__PURE__ */ g(e.Fragment, { children: [r && /* @__PURE__ */ h("div", {
3117
- className: Xt.group,
3179
+ className: en.group,
3118
3180
  role: "presentation",
3119
3181
  children: r
3120
3182
  }), /* @__PURE__ */ g("button", {
@@ -3123,20 +3185,20 @@ function Zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, on
3123
3185
  "data-index": n,
3124
3186
  role: "option",
3125
3187
  "aria-selected": n === x,
3126
- className: `${Xt.item} ${n === x ? Xt.active : ""}`,
3188
+ className: `${en.item} ${n === x ? en.active : ""}`,
3127
3189
  onPointerMove: () => n !== x && S(n),
3128
3190
  onClick: () => w(t),
3129
3191
  children: [
3130
3192
  t.icon && /* @__PURE__ */ h("span", {
3131
- className: Xt.itemIcon,
3193
+ className: en.itemIcon,
3132
3194
  children: t.icon
3133
3195
  }),
3134
3196
  /* @__PURE__ */ h("span", {
3135
- className: Xt.label,
3197
+ className: en.label,
3136
3198
  children: t.label
3137
3199
  }),
3138
3200
  t.hint && /* @__PURE__ */ h("span", {
3139
- className: Xt.hint,
3201
+ className: en.hint,
3140
3202
  children: t.hint
3141
3203
  })
3142
3204
  ]
@@ -3146,7 +3208,7 @@ function Zt({ items: t, query: n, onQueryChange: r, open: i, onOpenChange: a, on
3146
3208
  })
3147
3209
  });
3148
3210
  }
3149
- var Qt = {
3211
+ var nn = {
3150
3212
  wrapper: "_wrapper_59d2a_1",
3151
3213
  field: "_field_59d2a_9",
3152
3214
  disabled: "_disabled_59d2a_28",
@@ -3158,7 +3220,7 @@ var Qt = {
3158
3220
  label: "_label_59d2a_106"
3159
3221
  };
3160
3222
  // src/components/TagsInput/TagsInput.tsx
3161
- function $t({ value: e, onChange: t, label: n, placeholder: r, hint: i, separators: a = ";,", disabled: o = !1, "aria-label": c, className: l = "" }) {
3223
+ function rn({ value: e, onChange: t, label: n, placeholder: r, hint: i, separators: a = ";,", disabled: o = !1, "aria-label": c, className: l = "" }) {
3162
3224
  let u = s(), p = d(null), [m, _] = f(""), v = (e, t) => {
3163
3225
  let n = [...e];
3164
3226
  for (let e of t) {
@@ -3180,24 +3242,24 @@ function $t({ value: e, onChange: t, label: n, placeholder: r, hint: i, separato
3180
3242
  t(e.filter((e, t) => t !== n)), p.current?.focus();
3181
3243
  };
3182
3244
  return /* @__PURE__ */ g("div", {
3183
- className: `${Qt.wrapper} ${l}`,
3245
+ className: `${nn.wrapper} ${l}`,
3184
3246
  children: [
3185
3247
  n && /* @__PURE__ */ h("label", {
3186
3248
  htmlFor: u,
3187
- className: Qt.label,
3249
+ className: nn.label,
3188
3250
  children: n
3189
3251
  }),
3190
3252
  /* @__PURE__ */ g("div", {
3191
- className: `${Qt.field} ${o ? Qt.disabled : ""}`,
3253
+ className: `${nn.field} ${o ? nn.disabled : ""}`,
3192
3254
  onClick: () => p.current?.focus(),
3193
3255
  children: [e.map((e, t) => /* @__PURE__ */ g("span", {
3194
- className: Qt.chip,
3256
+ className: nn.chip,
3195
3257
  children: [/* @__PURE__ */ h("span", {
3196
- className: Qt.text,
3258
+ className: nn.text,
3197
3259
  children: e
3198
3260
  }), !o && /* @__PURE__ */ h("button", {
3199
3261
  type: "button",
3200
- className: Qt.remove,
3262
+ className: nn.remove,
3201
3263
  "aria-label": `Remove ${e}`,
3202
3264
  title: "Remove",
3203
3265
  onClick: (e) => {
@@ -3211,7 +3273,7 @@ function $t({ value: e, onChange: t, label: n, placeholder: r, hint: i, separato
3211
3273
  }, e)), /* @__PURE__ */ h("input", {
3212
3274
  id: u,
3213
3275
  ref: p,
3214
- className: Qt.input,
3276
+ className: nn.input,
3215
3277
  value: m,
3216
3278
  placeholder: e.length === 0 ? r : void 0,
3217
3279
  "aria-label": c ?? n,
@@ -3222,84 +3284,84 @@ function $t({ value: e, onChange: t, label: n, placeholder: r, hint: i, separato
3222
3284
  })]
3223
3285
  }),
3224
3286
  i && /* @__PURE__ */ h("span", {
3225
- className: Qt.hint,
3287
+ className: nn.hint,
3226
3288
  children: i
3227
3289
  })
3228
3290
  ]
3229
3291
  });
3230
3292
  }
3231
- var en = {
3293
+ var an = {
3232
3294
  stack: "_stack_67643_3",
3233
3295
  toast: "_toast_67643_18",
3234
3296
  error: "_error_67643_36",
3235
3297
  icon: "_icon_67643_40",
3236
3298
  message: "_message_67643_50",
3237
3299
  close: "_close_67643_55"
3238
- }, tn = [], nn = 0, rn = /* @__PURE__ */ new Set(), an = () => rn.forEach((e) => e());
3239
- function on(e) {
3240
- let t = ++nn;
3241
- return tn = [...tn, {
3300
+ }, on = [], sn = 0, cn = /* @__PURE__ */ new Set(), ln = () => cn.forEach((e) => e());
3301
+ function un(e) {
3302
+ let t = ++sn;
3303
+ return on = [...on, {
3242
3304
  ...e,
3243
3305
  id: t
3244
- }].slice(-4), an(), t;
3306
+ }].slice(-4), ln(), t;
3245
3307
  }
3246
- function sn(e, t = {}) {
3247
- return on({
3308
+ function dn(e, t = {}) {
3309
+ return un({
3248
3310
  message: e,
3249
3311
  kind: "neutral",
3250
3312
  ...t,
3251
3313
  duration: t.duration ?? 4e3
3252
3314
  });
3253
3315
  }
3254
- sn.error = (e, t = {}) => on({
3316
+ dn.error = (e, t = {}) => un({
3255
3317
  message: e,
3256
3318
  kind: "error",
3257
3319
  ...t,
3258
3320
  duration: t.duration ?? 8e3
3259
- }), sn.dismiss = (e) => {
3260
- tn = tn.filter((t) => t.id !== e), an();
3321
+ }), dn.dismiss = (e) => {
3322
+ on = on.filter((t) => t.id !== e), ln();
3261
3323
  };
3262
- function cn() {
3263
- return p((e) => (rn.add(e), () => rn.delete(e)), () => tn, () => tn);
3324
+ function fn() {
3325
+ return p((e) => (cn.add(e), () => cn.delete(e)), () => on, () => on);
3264
3326
  }
3265
- function ln({ t: e }) {
3327
+ function pn({ t: e }) {
3266
3328
  let t = d(void 0), n = () => {
3267
- clearTimeout(t.current), t.current = setTimeout(() => sn.dismiss(e.id), e.duration);
3329
+ clearTimeout(t.current), t.current = setTimeout(() => dn.dismiss(e.id), e.duration);
3268
3330
  }, r = () => clearTimeout(t.current);
3269
3331
  return o(() => (n(), r), [e.id]), /* @__PURE__ */ g("div", {
3270
- className: `${en.toast} ${e.kind === "error" ? en.error : ""}`,
3332
+ className: `${an.toast} ${e.kind === "error" ? an.error : ""}`,
3271
3333
  role: e.kind === "error" ? "alert" : "status",
3272
3334
  onMouseEnter: r,
3273
3335
  onMouseLeave: n,
3274
3336
  children: [
3275
3337
  e.kind === "error" ? /* @__PURE__ */ h("span", {
3276
- className: en.icon,
3338
+ className: an.icon,
3277
3339
  children: /* @__PURE__ */ h(P, {
3278
3340
  size: 14,
3279
3341
  color: "currentColor"
3280
3342
  })
3281
3343
  }) : e.icon && /* @__PURE__ */ h("span", {
3282
- className: en.icon,
3344
+ className: an.icon,
3283
3345
  children: e.icon
3284
3346
  }),
3285
3347
  /* @__PURE__ */ h("span", {
3286
- className: en.message,
3348
+ className: an.message,
3287
3349
  children: e.message
3288
3350
  }),
3289
3351
  e.action && /* @__PURE__ */ h(W, {
3290
3352
  variant: "ghost",
3291
3353
  size: "micro",
3292
3354
  onClick: () => {
3293
- sn.dismiss(e.id), e.action.onClick();
3355
+ dn.dismiss(e.id), e.action.onClick();
3294
3356
  },
3295
3357
  children: e.action.label
3296
3358
  }),
3297
3359
  /* @__PURE__ */ h("button", {
3298
3360
  type: "button",
3299
- className: en.close,
3361
+ className: an.close,
3300
3362
  "aria-label": "Dismiss",
3301
3363
  title: "Dismiss",
3302
- onClick: () => sn.dismiss(e.id),
3364
+ onClick: () => dn.dismiss(e.id),
3303
3365
  children: /* @__PURE__ */ h(F, {
3304
3366
  size: 7,
3305
3367
  color: "currentColor"
@@ -3308,21 +3370,21 @@ function ln({ t: e }) {
3308
3370
  ]
3309
3371
  });
3310
3372
  }
3311
- function un() {
3312
- let e = cn();
3373
+ function mn() {
3374
+ let e = fn();
3313
3375
  return /* @__PURE__ */ h("div", {
3314
- className: en.stack,
3376
+ className: an.stack,
3315
3377
  role: "region",
3316
3378
  "aria-label": "Notices",
3317
- children: e.map((e) => /* @__PURE__ */ h(ln, { t: e }, e.id))
3379
+ children: e.map((e) => /* @__PURE__ */ h(pn, { t: e }, e.id))
3318
3380
  });
3319
3381
  }
3320
- var dn = {
3382
+ var hn = {
3321
3383
  tooltip: "_tooltip_qkom3_1",
3322
3384
  arrow: "_arrow_qkom3_18"
3323
3385
  };
3324
3386
  // src/components/Tooltip/Tooltip.tsx
3325
- function fn({ content: e, position: t = "top", children: n, className: r }) {
3387
+ function gn({ content: e, position: t = "top", children: n, className: r }) {
3326
3388
  let i = ae();
3327
3389
  return /* @__PURE__ */ h(z.Provider, {
3328
3390
  delayDuration: 80,
@@ -3334,13 +3396,13 @@ function fn({ content: e, position: t = "top", children: n, className: r }) {
3334
3396
  children: /* @__PURE__ */ g(z.Content, {
3335
3397
  side: t,
3336
3398
  sideOffset: 7,
3337
- className: [dn.tooltip, r].filter(Boolean).join(" "),
3338
- children: [e, /* @__PURE__ */ h(z.Arrow, { className: dn.arrow })]
3399
+ className: [hn.tooltip, r].filter(Boolean).join(" "),
3400
+ children: [e, /* @__PURE__ */ h(z.Arrow, { className: hn.arrow })]
3339
3401
  })
3340
3402
  })] })
3341
3403
  });
3342
3404
  }
3343
- var X = {
3405
+ var Y = {
3344
3406
  sidebar: "_sidebar_1icfm_3",
3345
3407
  header: "_header_1icfm_13",
3346
3408
  body: "_body_1icfm_14",
@@ -3361,8 +3423,8 @@ var X = {
3361
3423
  rail: "_rail_1icfm_42",
3362
3424
  overlay: "_overlay_1icfm_55",
3363
3425
  open: "_open_1icfm_69"
3364
- }, pn = "(max-width: 768px)", mn = () => typeof navigator < "u" && (/Mac|iPhone|iPad|iPod/.test(navigator.platform) || /Mac OS X/.test(navigator.userAgent)), hn = (e) => e instanceof HTMLElement && (e.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));
3365
- function gn(e) {
3426
+ }, _n = "(max-width: 768px)", vn = () => typeof navigator < "u" && (/Mac|iPhone|iPad|iPod/.test(navigator.platform) || /Mac OS X/.test(navigator.userAgent)), yn = (e) => e instanceof HTMLElement && (e.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));
3427
+ function bn(e) {
3366
3428
  if (e) try {
3367
3429
  let t = localStorage.getItem(e);
3368
3430
  return t === "rail" || t !== "full" && void 0;
@@ -3370,15 +3432,15 @@ function gn(e) {
3370
3432
  return;
3371
3433
  }
3372
3434
  }
3373
- function _n() {
3374
- let [e, t] = f(() => typeof window < "u" && window.matchMedia(pn).matches);
3435
+ function xn() {
3436
+ let [e, t] = f(() => typeof window < "u" && window.matchMedia(_n).matches);
3375
3437
  return o(() => {
3376
- let e = window.matchMedia(pn), n = () => t(e.matches);
3438
+ let e = window.matchMedia(_n), n = () => t(e.matches);
3377
3439
  return e.addEventListener("change", n), () => e.removeEventListener("change", n);
3378
3440
  }, []), e;
3379
3441
  }
3380
- function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFooter: c, collapsed: l, onCollapsedChange: u, defaultCollapsed: p = !1, collapsible: _ = !0, shortcut: v = "b", storageKey: y, open: b = !1, onOpenChange: S, "aria-label": w = "Sections", className: T = "" }) {
3381
- let [O, k] = f(() => gn(y)), [A, j] = f(() => /* @__PURE__ */ new Set()), M = _n(), N = d(null), P = _ && (l ?? O ?? p), F = P && !M, I = mn(), L = v ? I ? `⌘${v.toUpperCase()}` : `Ctrl ${v.toUpperCase()}` : "", R = i(() => {
3442
+ function Sn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFooter: c, collapsed: l, onCollapsedChange: u, defaultCollapsed: p = !1, collapsible: _ = !0, shortcut: v = "b", storageKey: y, open: b = !1, onOpenChange: S, "aria-label": w = "Sections", className: T = "" }) {
3443
+ let [O, k] = f(() => bn(y)), [A, j] = f(() => /* @__PURE__ */ new Set()), M = xn(), N = d(null), P = _ && (l ?? O ?? p), F = P && !M, I = vn(), L = v ? I ? `⌘${v.toUpperCase()}` : `Ctrl ${v.toUpperCase()}` : "", R = i(() => {
3382
3444
  if (!_) return;
3383
3445
  let e = !P;
3384
3446
  if (l === void 0 && (k(e), y)) {
@@ -3399,7 +3461,7 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
3399
3461
  ]), z = i(() => S?.(!1), [S]);
3400
3462
  o(() => {
3401
3463
  let e = (e) => {
3402
- _ && v && (e.metaKey || e.ctrlKey) && !e.altKey && !e.shiftKey && e.key.toLowerCase() === v.toLowerCase() && !hn(e.target) ? (e.preventDefault(), R()) : e.key === "Escape" && b && M && (e.preventDefault(), z());
3464
+ _ && v && (e.metaKey || e.ctrlKey) && !e.altKey && !e.shiftKey && e.key.toLowerCase() === v.toLowerCase() && !yn(e.target) ? (e.preventDefault(), R()) : e.key === "Escape" && b && M && (e.preventDefault(), z());
3403
3465
  };
3404
3466
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
3405
3467
  }, [
@@ -3410,7 +3472,7 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
3410
3472
  M,
3411
3473
  z
3412
3474
  ]), o(() => {
3413
- b && M && N.current && (N.current.querySelector("[aria-current=\"page\"]") ?? N.current.querySelector(`.${X.body} a, .${X.body} button`))?.focus();
3475
+ b && M && N.current && (N.current.querySelector("[aria-current=\"page\"]") ?? N.current.querySelector(`.${Y.body} a, .${Y.body} button`))?.focus();
3414
3476
  }, [b, M]);
3415
3477
  let B = (e) => {
3416
3478
  r?.(e), z();
@@ -3419,16 +3481,16 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
3419
3481
  return n.delete(e) || n.add(e), n;
3420
3482
  }), V = (t) => /* @__PURE__ */ g(m, { children: [
3421
3483
  /* @__PURE__ */ h("span", {
3422
- className: X.label,
3484
+ className: Y.label,
3423
3485
  children: t.label
3424
3486
  }),
3425
3487
  t.badge && /* @__PURE__ */ h("span", {
3426
- className: `${X.badge} ${t.signal ? X.badgeSignal : ""}`,
3488
+ className: `${Y.badge} ${t.signal ? Y.badgeSignal : ""}`,
3427
3489
  title: t.badgeTitle,
3428
3490
  children: t.badge
3429
3491
  }),
3430
3492
  t.trailing && /* @__PURE__ */ h("span", {
3431
- className: X.trailing,
3493
+ className: Y.trailing,
3432
3494
  title: t.trailingTitle,
3433
3495
  children: e.cloneElement(t.trailing, {
3434
3496
  size: 14,
@@ -3464,13 +3526,13 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
3464
3526
  children: V(e)
3465
3527
  });
3466
3528
  }, H = [
3467
- X.sidebar,
3468
- F ? X.rail : "",
3469
- b ? X.open : "",
3529
+ Y.sidebar,
3530
+ F ? Y.rail : "",
3531
+ b ? Y.open : "",
3470
3532
  T
3471
3533
  ].filter(Boolean).join(" ");
3472
3534
  return /* @__PURE__ */ g(m, { children: [b && M && /* @__PURE__ */ h("div", {
3473
- className: X.overlay,
3535
+ className: Y.overlay,
3474
3536
  onClick: z
3475
3537
  }), /* @__PURE__ */ g("nav", {
3476
3538
  ref: N,
@@ -3478,25 +3540,25 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
3478
3540
  "aria-label": w,
3479
3541
  children: [
3480
3542
  a && /* @__PURE__ */ h("div", {
3481
- className: X.header,
3543
+ className: Y.header,
3482
3544
  children: a
3483
3545
  }),
3484
3546
  /* @__PURE__ */ h("div", {
3485
- className: X.body,
3547
+ className: Y.body,
3486
3548
  children: t.map((e, t) => {
3487
3549
  let n = !!(e.collapsible && e.title && A.has(e.title));
3488
3550
  return /* @__PURE__ */ g("div", {
3489
- className: X.group,
3551
+ className: Y.group,
3490
3552
  children: [e.title && (e.collapsible ? /* @__PURE__ */ g("button", {
3491
3553
  type: "button",
3492
- className: `${X.title} ${X.titleToggle}`,
3554
+ className: `${Y.title} ${Y.titleToggle}`,
3493
3555
  "aria-expanded": !n,
3494
3556
  onClick: () => ee(e.title),
3495
3557
  children: [/* @__PURE__ */ h("span", {
3496
- className: X.titleText,
3558
+ className: Y.titleText,
3497
3559
  children: e.title
3498
3560
  }), /* @__PURE__ */ h("span", {
3499
- className: X.titleChevron,
3561
+ className: Y.titleChevron,
3500
3562
  "aria-hidden": "true",
3501
3563
  children: h(n ? C : x, {
3502
3564
  size: 14,
@@ -3504,16 +3566,16 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
3504
3566
  })
3505
3567
  })]
3506
3568
  }) : /* @__PURE__ */ h("div", {
3507
- className: X.title,
3569
+ className: Y.title,
3508
3570
  children: /* @__PURE__ */ h("span", {
3509
- className: X.titleText,
3571
+ className: Y.titleText,
3510
3572
  children: e.title
3511
3573
  })
3512
3574
  })), (!n || F) && /* @__PURE__ */ h("div", {
3513
- className: X.items,
3575
+ className: Y.items,
3514
3576
  children: e.items.map((e) => /* @__PURE__ */ h("span", {
3515
- className: X.item,
3516
- children: F ? /* @__PURE__ */ h(fn, {
3577
+ className: Y.item,
3578
+ children: F ? /* @__PURE__ */ h(gn, {
3517
3579
  content: e.badge ? `${e.label} (${e.badge})` : e.label,
3518
3580
  position: "right",
3519
3581
  children: te(e)
@@ -3524,19 +3586,19 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
3524
3586
  })
3525
3587
  }),
3526
3588
  (s || c && F || _ && !M) && /* @__PURE__ */ g("div", {
3527
- className: X.footer,
3589
+ className: Y.footer,
3528
3590
  children: [
3529
3591
  c && F && /* @__PURE__ */ h("div", {
3530
- className: X.railFooter,
3592
+ className: Y.railFooter,
3531
3593
  children: c
3532
3594
  }),
3533
3595
  s && /* @__PURE__ */ h("div", {
3534
- className: X.footerContent,
3596
+ className: Y.footerContent,
3535
3597
  children: s
3536
3598
  }),
3537
3599
  _ && !M && /* @__PURE__ */ h("span", {
3538
- className: X.item,
3539
- children: F ? /* @__PURE__ */ h(fn, {
3600
+ className: Y.item,
3601
+ children: F ? /* @__PURE__ */ h(gn, {
3540
3602
  content: `Expand${L ? ` (${L})` : ""}`,
3541
3603
  position: "right",
3542
3604
  children: /* @__PURE__ */ h(W, {
@@ -3555,7 +3617,7 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
3555
3617
  title: L ? `Collapse (${L})` : "Collapse",
3556
3618
  onClick: R,
3557
3619
  children: /* @__PURE__ */ h("span", {
3558
- className: X.label,
3620
+ className: Y.label,
3559
3621
  children: "Collapse"
3560
3622
  })
3561
3623
  })
@@ -3565,7 +3627,7 @@ function vn({ groups: t, active: n, onSelect: r, header: a, footer: s, railFoote
3565
3627
  ]
3566
3628
  })] });
3567
3629
  }
3568
- var yn = {
3630
+ var X = {
3569
3631
  wrapper: "_wrapper_1ogxf_2",
3570
3632
  label: "_label_1ogxf_3",
3571
3633
  field: "_field_1ogxf_4",
@@ -3590,14 +3652,14 @@ var yn = {
3590
3652
  empty: "_empty_1ogxf_56"
3591
3653
  };
3592
3654
  // src/components/Combobox/Combobox.tsx
3593
- function bn(e, t) {
3655
+ function Cn(e, t) {
3594
3656
  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));
3595
3657
  return [...r, ...i];
3596
3658
  }
3597
- function xn({ 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 = "" }) {
3659
+ function wn({ 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 = "" }) {
3598
3660
  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(() => {
3599
3661
  let e = O.trim();
3600
- return e ? i ? i(e) : bn(r, e) : r;
3662
+ return e ? i ? i(e) : Cn(r, e) : r;
3601
3663
  }, [
3602
3664
  r,
3603
3665
  O,
@@ -3631,36 +3693,36 @@ function xn({ value: t, onValueChange: n, options: r, search: i, label: a, place
3631
3693
  color: "currentColor"
3632
3694
  }) : t;
3633
3695
  return /* @__PURE__ */ g("div", {
3634
- className: `${yn.wrapper} ${S}`,
3696
+ className: `${X.wrapper} ${S}`,
3635
3697
  children: [a && /* @__PURE__ */ h("label", {
3636
3698
  id: `${w}-label`,
3637
3699
  htmlFor: w,
3638
- className: yn.label,
3700
+ className: X.label,
3639
3701
  children: a
3640
3702
  }), /* @__PURE__ */ h(He, {
3641
3703
  open: E,
3642
3704
  onOpenChange: z,
3643
3705
  align: "start",
3644
- className: yn.panel,
3706
+ className: X.panel,
3645
3707
  "aria-label": v ?? a,
3646
3708
  trigger: /* @__PURE__ */ g("button", {
3647
3709
  ref: F,
3648
3710
  type: "button",
3649
3711
  id: w,
3650
- className: `${yn.field} ${yn[m]}`,
3712
+ className: `${X.field} ${X[m]}`,
3651
3713
  disabled: _,
3652
3714
  "aria-haspopup": "listbox",
3653
3715
  "aria-labelledby": a ? `${w}-label ${w}-value` : void 0,
3654
3716
  "aria-label": a ? void 0 : v,
3655
3717
  children: [/* @__PURE__ */ g("span", {
3656
3718
  id: `${w}-value`,
3657
- className: `${yn.value} ${I ? "" : yn.placeholder}`,
3719
+ className: `${X.value} ${I ? "" : X.placeholder}`,
3658
3720
  children: [I?.icon && V(I.icon, L), /* @__PURE__ */ h("span", {
3659
- className: yn.text,
3721
+ className: X.text,
3660
3722
  children: I?.label ?? c
3661
3723
  })]
3662
3724
  }), /* @__PURE__ */ h("span", {
3663
- className: yn.chevron,
3725
+ className: X.chevron,
3664
3726
  "aria-hidden": "true",
3665
3727
  children: /* @__PURE__ */ h(x, {
3666
3728
  size: L,
@@ -3669,11 +3731,11 @@ function xn({ value: t, onValueChange: n, options: r, search: i, label: a, place
3669
3731
  })]
3670
3732
  }),
3671
3733
  children: /* @__PURE__ */ g("div", {
3672
- className: yn.body,
3734
+ className: X.body,
3673
3735
  children: [/* @__PURE__ */ g("div", {
3674
- className: yn.search,
3736
+ className: X.search,
3675
3737
  children: [/* @__PURE__ */ h("span", {
3676
- className: yn.searchIcon,
3738
+ className: X.searchIcon,
3677
3739
  "aria-hidden": "true",
3678
3740
  children: /* @__PURE__ */ h(M, {
3679
3741
  size: 14,
@@ -3681,7 +3743,7 @@ function xn({ value: t, onValueChange: n, options: r, search: i, label: a, place
3681
3743
  })
3682
3744
  }), /* @__PURE__ */ h("input", {
3683
3745
  ref: N,
3684
- className: yn.input,
3746
+ className: X.input,
3685
3747
  type: "text",
3686
3748
  role: "combobox",
3687
3749
  "aria-expanded": "true",
@@ -3697,12 +3759,12 @@ function xn({ value: t, onValueChange: n, options: r, search: i, label: a, place
3697
3759
  })]
3698
3760
  }), /* @__PURE__ */ g("div", {
3699
3761
  ref: P,
3700
- className: yn.list,
3762
+ className: X.list,
3701
3763
  id: T,
3702
3764
  role: "listbox",
3703
3765
  "aria-label": v ?? a,
3704
3766
  children: [R.length === 0 && /* @__PURE__ */ h("p", {
3705
- className: yn.empty,
3767
+ className: X.empty,
3706
3768
  children: p
3707
3769
  }), R.map((e, n) => /* @__PURE__ */ g("button", {
3708
3770
  type: "button",
@@ -3710,20 +3772,20 @@ function xn({ value: t, onValueChange: n, options: r, search: i, label: a, place
3710
3772
  "data-index": n,
3711
3773
  role: "option",
3712
3774
  "aria-selected": e.value === t,
3713
- className: `${yn.item} ${n === A ? yn.active : ""}`,
3775
+ className: `${X.item} ${n === A ? X.active : ""}`,
3714
3776
  onPointerMove: () => n !== A && j(n),
3715
3777
  onClick: () => B(e),
3716
3778
  children: [
3717
3779
  e.icon && /* @__PURE__ */ h("span", {
3718
- className: yn.itemIcon,
3780
+ className: X.itemIcon,
3719
3781
  children: V(e.icon, 14)
3720
3782
  }),
3721
3783
  /* @__PURE__ */ h("span", {
3722
- className: yn.itemLabel,
3784
+ className: X.itemLabel,
3723
3785
  children: e.label
3724
3786
  }),
3725
3787
  e.value === t && /* @__PURE__ */ h("span", {
3726
- className: yn.check,
3788
+ className: X.check,
3727
3789
  children: /* @__PURE__ */ h(b, {
3728
3790
  size: 14,
3729
3791
  color: "currentColor"
@@ -3736,7 +3798,7 @@ function xn({ value: t, onValueChange: n, options: r, search: i, label: a, place
3736
3798
  })]
3737
3799
  });
3738
3800
  }
3739
- var Sn = {
3801
+ var Tn = {
3740
3802
  empty: "_empty_jzgh0_1",
3741
3803
  default: "_default_jzgh0_2",
3742
3804
  compact: "_compact_jzgh0_3",
@@ -3746,13 +3808,13 @@ var Sn = {
3746
3808
  actions: "_actions_jzgh0_10"
3747
3809
  };
3748
3810
  // src/components/EmptyState/EmptyState.tsx
3749
- function Cn({ icon: t, title: n, children: r, actions: i, size: a = "default", className: o = "" }) {
3811
+ function En({ icon: t, title: n, children: r, actions: i, size: a = "default", className: o = "" }) {
3750
3812
  return /* @__PURE__ */ g("div", {
3751
- className: `${Sn.empty} ${Sn[a]} ${o}`,
3813
+ className: `${Tn.empty} ${Tn[a]} ${o}`,
3752
3814
  role: "status",
3753
3815
  children: [
3754
3816
  t && /* @__PURE__ */ h("span", {
3755
- className: Sn.icon,
3817
+ className: Tn.icon,
3756
3818
  "aria-hidden": "true",
3757
3819
  children: e.cloneElement(t, {
3758
3820
  size: a === "compact" ? 35 : 70,
@@ -3760,21 +3822,21 @@ function Cn({ icon: t, title: n, children: r, actions: i, size: a = "default", c
3760
3822
  })
3761
3823
  }),
3762
3824
  /* @__PURE__ */ h("div", {
3763
- className: Sn.title,
3825
+ className: Tn.title,
3764
3826
  children: n
3765
3827
  }),
3766
3828
  r && /* @__PURE__ */ h("div", {
3767
- className: Sn.detail,
3829
+ className: Tn.detail,
3768
3830
  children: r
3769
3831
  }),
3770
3832
  i && /* @__PURE__ */ h("div", {
3771
- className: Sn.actions,
3833
+ className: Tn.actions,
3772
3834
  children: i
3773
3835
  })
3774
3836
  ]
3775
3837
  });
3776
3838
  }
3777
- var wn = {
3839
+ var Dn = {
3778
3840
  overlay: "_overlay_9rhqp_1",
3779
3841
  sheet: "_sheet_9rhqp_3",
3780
3842
  wide: "_wide_9rhqp_14",
@@ -3789,7 +3851,7 @@ var wn = {
3789
3851
  srOnly: "_srOnly_9rhqp_30"
3790
3852
  };
3791
3853
  // src/components/Sheet/Sheet.tsx
3792
- function Tn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, children: a, footer: o, side: s = "right", size: c = "default", className: l = "" }) {
3854
+ function On({ open: e, onOpenChange: t, trigger: n, title: r, description: i, children: a, footer: o, side: s = "right", size: c = "default", className: l = "" }) {
3793
3855
  let u = ae(), f = d(null);
3794
3856
  return /* @__PURE__ */ g(B.Root, {
3795
3857
  open: e,
@@ -3799,8 +3861,8 @@ function Tn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, ch
3799
3861
  children: n
3800
3862
  }), /* @__PURE__ */ g(B.Portal, {
3801
3863
  container: u,
3802
- children: [/* @__PURE__ */ h(B.Overlay, { className: wn.overlay }), /* @__PURE__ */ g(B.Content, {
3803
- className: `${wn.sheet} ${wn[s]} ${c === "wide" ? wn.wide : ""} ${l}`,
3864
+ children: [/* @__PURE__ */ h(B.Overlay, { className: Dn.overlay }), /* @__PURE__ */ g(B.Content, {
3865
+ className: `${Dn.sheet} ${Dn[s]} ${c === "wide" ? Dn.wide : ""} ${l}`,
3804
3866
  ...i ? {} : { "aria-describedby": void 0 },
3805
3867
  onOpenAutoFocus: () => {
3806
3868
  f.current = document.activeElement;
@@ -3810,14 +3872,14 @@ function Tn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, ch
3810
3872
  },
3811
3873
  children: [
3812
3874
  /* @__PURE__ */ g("div", {
3813
- className: wn.header,
3875
+ className: Dn.header,
3814
3876
  children: [/* @__PURE__ */ g("div", {
3815
- className: wn.heading,
3877
+ className: Dn.heading,
3816
3878
  children: [/* @__PURE__ */ h(B.Title, {
3817
- className: r ? wn.title : wn.srOnly,
3879
+ className: r ? Dn.title : Dn.srOnly,
3818
3880
  children: r || "Panel"
3819
3881
  }), i && /* @__PURE__ */ h(B.Description, {
3820
- className: wn.description,
3882
+ className: Dn.description,
3821
3883
  children: i
3822
3884
  })]
3823
3885
  }), /* @__PURE__ */ h(B.Close, {
@@ -3831,11 +3893,11 @@ function Tn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, ch
3831
3893
  })]
3832
3894
  }),
3833
3895
  /* @__PURE__ */ h("div", {
3834
- className: wn.body,
3896
+ className: Dn.body,
3835
3897
  children: a
3836
3898
  }),
3837
3899
  o && /* @__PURE__ */ h("div", {
3838
- className: wn.footer,
3900
+ className: Dn.footer,
3839
3901
  children: o
3840
3902
  })
3841
3903
  ]
@@ -3843,7 +3905,7 @@ function Tn({ open: e, onOpenChange: t, trigger: n, title: r, description: i, ch
3843
3905
  })]
3844
3906
  });
3845
3907
  }
3846
- var En = {
3908
+ var kn = {
3847
3909
  root: "_root_1x9y1_1",
3848
3910
  vertical: "_vertical_1x9y1_2",
3849
3911
  pane: "_pane_1x9y1_3",
@@ -3852,8 +3914,8 @@ var En = {
3852
3914
  handle: "_handle_1x9y1_8",
3853
3915
  horizontal: "_horizontal_1x9y1_9",
3854
3916
  grip: "_grip_1x9y1_16"
3855
- }, Dn = 2, On = 10;
3856
- function kn(e) {
3917
+ }, An = 2, jn = 10;
3918
+ function Mn(e) {
3857
3919
  if (e) try {
3858
3920
  let t = parseFloat(localStorage.getItem(e) ?? "");
3859
3921
  return Number.isNaN(t) ? void 0 : t;
@@ -3861,8 +3923,8 @@ function kn(e) {
3861
3923
  return;
3862
3924
  }
3863
3925
  }
3864
- function An({ 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 = "" }) {
3865
- let m = (e) => Math.min(a, Math.max(i, e)), [_, v] = f(() => m(kn(s) ?? r)), [y, b] = f(!1), x = d(null), S = d(_);
3926
+ function Nn({ 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 = "" }) {
3927
+ let m = (e) => Math.min(a, Math.max(i, e)), [_, v] = f(() => m(Mn(s) ?? r)), [y, b] = f(!1), x = d(null), S = d(_);
3866
3928
  S.current = _;
3867
3929
  let C = n === "horizontal", w = (e) => {
3868
3930
  if (s) try {
@@ -3880,16 +3942,16 @@ function An({ first: e, second: t, direction: n = "horizontal", defaultSize: r =
3880
3942
  };
3881
3943
  }, [y]), /* @__PURE__ */ g("div", {
3882
3944
  ref: x,
3883
- className: `${En.root} ${C ? En.horizontal : En.vertical} ${p}`,
3945
+ className: `${kn.root} ${C ? kn.horizontal : kn.vertical} ${p}`,
3884
3946
  "data-dragging": y || void 0,
3885
3947
  style: { "--resizable-size": `${_}%` },
3886
3948
  children: [
3887
3949
  /* @__PURE__ */ h("div", {
3888
- className: `${En.pane} ${En.first}`,
3950
+ className: `${kn.pane} ${kn.first}`,
3889
3951
  children: e
3890
3952
  }),
3891
3953
  /* @__PURE__ */ h("div", {
3892
- className: En.handle,
3954
+ className: kn.handle,
3893
3955
  role: "separator",
3894
3956
  tabIndex: 0,
3895
3957
  "aria-label": u,
@@ -3901,37 +3963,37 @@ function An({ first: e, second: t, direction: n = "horizontal", defaultSize: r =
3901
3963
  e.button === 0 && (e.preventDefault(), b(!0));
3902
3964
  },
3903
3965
  onKeyDown: (e) => {
3904
- let t = C ? "ArrowLeft" : "ArrowUp", n = C ? "ArrowRight" : "ArrowDown", r = e.key === t ? _ - Dn : e.key === n ? _ + Dn : e.key === "PageUp" ? _ - On : e.key === "PageDown" ? _ + On : e.key === "Home" ? i : e.key === "End" ? a : null;
3966
+ let t = C ? "ArrowLeft" : "ArrowUp", n = C ? "ArrowRight" : "ArrowDown", r = e.key === t ? _ - An : e.key === n ? _ + An : e.key === "PageUp" ? _ - jn : e.key === "PageDown" ? _ + jn : e.key === "Home" ? i : e.key === "End" ? a : null;
3905
3967
  if (r === null) return;
3906
3968
  e.preventDefault();
3907
3969
  let o = m(r);
3908
3970
  v(o), w(o);
3909
3971
  },
3910
3972
  children: l && /* @__PURE__ */ h("span", {
3911
- className: En.grip,
3973
+ className: kn.grip,
3912
3974
  "aria-hidden": "true"
3913
3975
  })
3914
3976
  }),
3915
3977
  /* @__PURE__ */ h("div", {
3916
- className: `${En.pane} ${En.second}`,
3978
+ className: `${kn.pane} ${kn.second}`,
3917
3979
  children: t
3918
3980
  })
3919
3981
  ]
3920
3982
  });
3921
3983
  }
3922
3984
  // src/components/TreeCanvas/viewport.ts
3923
- var jn = .2, Mn = 2, Nn = 24, Pn = 1.2, Fn = 48, In = 8;
3924
- function Ln(e, t, n, r) {
3985
+ var Pn = .2, Fn = 2, In = 24, Ln = 1.2, Rn = 48, zn = 8;
3986
+ function Bn(e, t, n, r) {
3925
3987
  let i = {
3926
3988
  x: 0,
3927
3989
  y: 0,
3928
3990
  z: 1,
3929
3991
  pan: r
3930
- }, a, o = (e) => Math.min(Mn, Math.max(jn, e)), s = () => {
3992
+ }, a, o = (e) => Math.min(Fn, Math.max(Pn, e)), s = () => {
3931
3993
  if (t.style.transform = `translate(${i.x}px, ${i.y}px) scale(${i.z})`, n) {
3932
3994
  n.style.setProperty("--tree-x", `${i.x}px`), n.style.setProperty("--tree-y", `${i.y}px`), a ??= parseFloat(getComputedStyle(n).getPropertyValue("--tree-tile")) || 12;
3933
3995
  let e = i.z;
3934
- for (; a * e < In;) e *= 2;
3996
+ for (; a * e < zn;) e *= 2;
3935
3997
  n.style.setProperty("--tree-zoom", `${e}`);
3936
3998
  }
3937
3999
  let r = e.querySelector("[data-tree-zoom-label]");
@@ -3955,7 +4017,7 @@ function Ln(e, t, n, r) {
3955
4017
  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();
3956
4018
  }, f = (t) => {
3957
4019
  let n = e.getBoundingClientRect(), r = n.width / 2, a = n.height / 2;
3958
- t === "in" ? d(i.z * Pn, r, a) : t === "out" ? d(i.z / Pn, r, a) : t === "reset" ? d(1, r, a) : t === "fullscreen" ? p() : u(l());
4020
+ t === "in" ? d(i.z * Ln, r, a) : t === "out" ? d(i.z / Ln, r, a) : t === "reset" ? d(1, r, a) : t === "fullscreen" ? p() : u(l());
3959
4021
  }, p = () => {
3960
4022
  if (document.fullscreenElement) {
3961
4023
  document.exitFullscreen?.();
@@ -4004,10 +4066,10 @@ function Ln(e, t, n, r) {
4004
4066
  }, x = (t) => {
4005
4067
  if (!i.pan || t.altKey || t.ctrlKey || t.metaKey || t.target.closest("input, select, textarea")) return;
4006
4068
  let n = e.getBoundingClientRect();
4007
- if (t.key === "+" || t.key === "=") d(i.z * Pn, n.width / 2, n.height / 2);
4008
- else if (t.key === "-" || t.key === "_") d(i.z / Pn, n.width / 2, n.height / 2);
4069
+ if (t.key === "+" || t.key === "=") d(i.z * Ln, n.width / 2, n.height / 2);
4070
+ else if (t.key === "-" || t.key === "_") d(i.z / Ln, n.width / 2, n.height / 2);
4009
4071
  else if (t.key === "0") f("fit");
4010
- else if (t.target === e && t.key.startsWith("Arrow")) t.key === "ArrowLeft" && (i.x += Fn), t.key === "ArrowRight" && (i.x -= Fn), t.key === "ArrowUp" && (i.y += Fn), t.key === "ArrowDown" && (i.y -= Fn), s();
4072
+ else if (t.target === e && t.key.startsWith("Arrow")) t.key === "ArrowLeft" && (i.x += Rn), t.key === "ArrowRight" && (i.x -= Rn), t.key === "ArrowUp" && (i.y += Rn), t.key === "ArrowDown" && (i.y -= Rn), s();
4011
4073
  else return;
4012
4074
  t.preventDefault();
4013
4075
  }, S = () => {
@@ -4033,7 +4095,7 @@ function Ln(e, t, n, r) {
4033
4095
  command: f,
4034
4096
  bringIntoView(t) {
4035
4097
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
4036
- r.left < n.left + Nn ? i.x += n.left + Nn - r.left : r.right > n.right - Nn && (i.x -= r.right - (n.right - Nn)), r.top < n.top + Nn ? i.y += n.top + Nn - r.top : r.bottom > n.bottom - Nn && (i.y -= r.bottom - (n.bottom - Nn)), s();
4098
+ r.left < n.left + In ? i.x += n.left + In - r.left : r.right > n.right - In && (i.x -= r.right - (n.right - In)), r.top < n.top + In ? i.y += n.top + In - r.top : r.bottom > n.bottom - In && (i.y -= r.bottom - (n.bottom - In)), s();
4037
4099
  },
4038
4100
  destroy() {
4039
4101
  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);
@@ -4073,12 +4135,12 @@ var Z = {
4073
4135
  controls: "_controls_1249l_288",
4074
4136
  zoomLabel: "_zoomLabel_1249l_309",
4075
4137
  pannable: "_pannable_1249l_316"
4076
- }, Rn = 44, zn = 5, Bn = 56, Vn = 24, Hn = 7, Un = 10;
4077
- function Wn(e, t) {
4078
- let n = e.label.length * Hn, r = e.count == null ? 0 : (t ? t(e.count) : e.count.toLocaleString()).length * 6 + Un + 8, i = (e.marks?.length ?? 0) * 20, a = e.children?.length ? 18 : 0;
4079
- return Vn + n + r + i + a;
4138
+ }, Vn = 44, Hn = 5, Un = 56, Wn = 24, Gn = 7, Kn = 10;
4139
+ function qn(e, t) {
4140
+ let n = e.label.length * Gn, r = e.count == null ? 0 : (t ? t(e.count) : e.count.toLocaleString()).length * 6 + Kn + 8, i = (e.marks?.length ?? 0) * 20, a = e.children?.length ? 18 : 0;
4141
+ return Wn + n + r + i + a;
4080
4142
  }
4081
- function Gn({ 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 = "" }) {
4143
+ function Jn({ 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 = "" }) {
4082
4144
  let [S, C] = f(() => new Set(r ?? e.map((e) => e.id))), [w, T] = f(() => /* @__PURE__ */ new Set());
4083
4145
  o(() => {
4084
4146
  if (m == null) return;
@@ -4091,7 +4153,7 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4091
4153
  l(() => {
4092
4154
  let e = N.current, t = P.current;
4093
4155
  if (!e || !t) return;
4094
- let n = Ln(e, t, F.current, _);
4156
+ let n = Bn(e, t, F.current, _);
4095
4157
  return I.current = n, () => {
4096
4158
  n.destroy(), I.current = null;
4097
4159
  };
@@ -4142,7 +4204,7 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4142
4204
  depth: o,
4143
4205
  x: 0,
4144
4206
  y: 0,
4145
- width: E.get(i.id) ?? Wn(i, s),
4207
+ width: E.get(i.id) ?? qn(i, s),
4146
4208
  parent: c,
4147
4209
  open: l,
4148
4210
  more: d
@@ -4150,19 +4212,19 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4150
4212
  if (t[o] = Math.max(t[o] ?? 0, f.width), e.push(f), u.length) {
4151
4213
  let e = u.map((e) => r(e, o + 1, f));
4152
4214
  f.y = (e[0].y + e[e.length - 1].y) / 2, d > 0 && (n += 1);
4153
- } else f.y = n * Rn + Rn / 2, n += 1;
4215
+ } else f.y = n * Vn + Vn / 2, n += 1;
4154
4216
  return f;
4155
4217
  };
4156
4218
  ee.forEach((e) => r(e, 0));
4157
4219
  let i = [], o = 0;
4158
4220
  return t.forEach((e, t) => {
4159
- i[t] = o, o += e + Bn;
4221
+ i[t] = o, o += e + Un;
4160
4222
  }), e.forEach((e) => {
4161
4223
  e.x = i[e.depth];
4162
4224
  }), {
4163
4225
  placed: e,
4164
4226
  columns: i,
4165
- height: Math.max(n, 1) * Rn
4227
+ height: Math.max(n, 1) * Vn
4166
4228
  };
4167
4229
  }, [
4168
4230
  ee,
@@ -4267,7 +4329,7 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4267
4329
  style: {
4268
4330
  "--tree-pattern": `var(--pattern-${y}-light)`,
4269
4331
  "--tree-pattern-dark": `var(--pattern-${y}-dark)`,
4270
- "--tree-tile": `${Kn(y)}px`
4332
+ "--tree-tile": `${Yn(y)}px`
4271
4333
  }
4272
4334
  }),
4273
4335
  H.length === 0 && /* @__PURE__ */ h("div", {
@@ -4347,8 +4409,8 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4347
4409
  type: "button",
4348
4410
  className: Z.more,
4349
4411
  style: {
4350
- left: (U[e.depth + 1] ?? e.x + e.width + Bn) - e.x,
4351
- top: (qn(H, e) + 1) * Rn - (e.y - 15)
4412
+ left: (U[e.depth + 1] ?? e.x + e.width + Un) - e.x,
4413
+ top: (Xn(H, e) + 1) * Vn - (e.y - 15)
4352
4414
  },
4353
4415
  onClick: () => T((e) => new Set(e).add(n.id)),
4354
4416
  children: [
@@ -4368,16 +4430,16 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4368
4430
  let n = B.has(e.node.id);
4369
4431
  return /* @__PURE__ */ g("g", { children: [e.parent && /* @__PURE__ */ h("rect", {
4370
4432
  className: `${Z.handle} ${n ? Z.handleLit : ""}`,
4371
- x: e.x - zn / 2,
4372
- y: e.y - zn / 2,
4373
- width: zn,
4374
- height: zn
4433
+ x: e.x - Hn / 2,
4434
+ y: e.y - Hn / 2,
4435
+ width: Hn,
4436
+ height: Hn
4375
4437
  }), e.open && /* @__PURE__ */ h("rect", {
4376
4438
  className: `${Z.handle} ${n && e.node.id !== t ? Z.handleLit : ""}`,
4377
- x: e.x + e.width - zn / 2,
4378
- y: e.y - zn / 2,
4379
- width: zn,
4380
- height: zn
4439
+ x: e.x + e.width - Hn / 2,
4440
+ y: e.y - Hn / 2,
4441
+ width: Hn,
4442
+ height: Hn
4381
4443
  })] }, e.node.id);
4382
4444
  })
4383
4445
  })
@@ -4390,7 +4452,7 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4390
4452
  "aria-label": "Zoom",
4391
4453
  "data-tree-controls": "",
4392
4454
  children: [
4393
- /* @__PURE__ */ h(fn, {
4455
+ /* @__PURE__ */ h(gn, {
4394
4456
  content: "Zoom in (+)",
4395
4457
  position: "right",
4396
4458
  children: /* @__PURE__ */ h(W, {
@@ -4401,7 +4463,7 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4401
4463
  "data-tree-action": "in"
4402
4464
  })
4403
4465
  }),
4404
- /* @__PURE__ */ h(fn, {
4466
+ /* @__PURE__ */ h(gn, {
4405
4467
  content: "Zoom out (-)",
4406
4468
  position: "right",
4407
4469
  children: /* @__PURE__ */ h(W, {
@@ -4412,7 +4474,7 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4412
4474
  "data-tree-action": "out"
4413
4475
  })
4414
4476
  }),
4415
- /* @__PURE__ */ h(fn, {
4477
+ /* @__PURE__ */ h(gn, {
4416
4478
  content: "Fit in view (0)",
4417
4479
  position: "right",
4418
4480
  children: /* @__PURE__ */ h(W, {
@@ -4423,7 +4485,7 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4423
4485
  "data-tree-action": "fit"
4424
4486
  })
4425
4487
  }),
4426
- v && /* @__PURE__ */ h(fn, {
4488
+ v && /* @__PURE__ */ h(gn, {
4427
4489
  content: "Full screen (Esc to leave)",
4428
4490
  position: "right",
4429
4491
  children: /* @__PURE__ */ h(W, {
@@ -4434,7 +4496,7 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4434
4496
  "data-tree-action": "fullscreen"
4435
4497
  })
4436
4498
  }),
4437
- /* @__PURE__ */ h(fn, {
4499
+ /* @__PURE__ */ h(gn, {
4438
4500
  content: "Zoom to 100%",
4439
4501
  position: "right",
4440
4502
  children: /* @__PURE__ */ h(W, {
@@ -4453,28 +4515,28 @@ function Gn({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: i =
4453
4515
  ]
4454
4516
  });
4455
4517
  }
4456
- function Kn(e) {
4518
+ function Yn(e) {
4457
4519
  let t = Number(e.slice(e.lastIndexOf("-") + 1));
4458
4520
  return Number.isFinite(t) ? t : 2;
4459
4521
  }
4460
- function qn(e, t) {
4522
+ function Xn(e, t) {
4461
4523
  let n = e.filter((e) => e.parent === t), r = n[n.length - 1];
4462
- return Math.round(r ? (r.y - Rn / 2) / Rn : (t.y - Rn / 2) / Rn);
4524
+ return Math.round(r ? (r.y - Vn / 2) / Vn : (t.y - Vn / 2) / Vn);
4463
4525
  }
4464
- var Jn = {
4526
+ var Zn = {
4465
4527
  chip: "_chip_otthl_1",
4466
4528
  large: "_large_otthl_14",
4467
4529
  toggle: "_toggle_otthl_20",
4468
4530
  selected: "_selected_otthl_38"
4469
4531
  };
4470
4532
  // src/components/Chip/Chip.tsx
4471
- function Yn({ children: t, color: n, textColor: r, className: i, title: a, icon: o, size: s = "default", onClick: c, selected: l = !1, disabled: u = !1 }) {
4533
+ function Qn({ children: t, color: n, textColor: r, className: i, title: a, icon: o, size: s = "default", onClick: c, selected: l = !1, disabled: u = !1 }) {
4472
4534
  let d = {};
4473
4535
  n && (d.backgroundColor = n), r && (d.color = r);
4474
4536
  let f = [
4475
- Jn.chip,
4537
+ Zn.chip,
4476
4538
  "indx-chip",
4477
- s === "large" && Jn.large,
4539
+ s === "large" && Zn.large,
4478
4540
  i
4479
4541
  ], p = /* @__PURE__ */ g(m, { children: [o && e.cloneElement(o, {
4480
4542
  size: 14,
@@ -4484,8 +4546,8 @@ function Yn({ children: t, color: n, textColor: r, className: i, title: a, icon:
4484
4546
  type: "button",
4485
4547
  className: [
4486
4548
  ...f,
4487
- Jn.toggle,
4488
- l && Jn.selected
4549
+ Zn.toggle,
4550
+ l && Zn.selected
4489
4551
  ].filter(Boolean).join(" "),
4490
4552
  style: d,
4491
4553
  title: a,
@@ -4500,7 +4562,7 @@ function Yn({ children: t, color: n, textColor: r, className: i, title: a, icon:
4500
4562
  children: p
4501
4563
  });
4502
4564
  }
4503
- var Xn = {
4565
+ var $n = {
4504
4566
  root: "_root_1ptcs_3",
4505
4567
  icon: "_icon_1ptcs_16",
4506
4568
  body: "_body_1ptcs_17",
@@ -4511,54 +4573,54 @@ var Xn = {
4511
4573
  success: "_success_1ptcs_24",
4512
4574
  warning: "_warning_1ptcs_25",
4513
4575
  destructive: "_destructive_1ptcs_26"
4514
- }, Zn = {
4576
+ }, er = {
4515
4577
  success: /* @__PURE__ */ h(b, {}),
4516
4578
  warning: /* @__PURE__ */ h(P, {}),
4517
4579
  destructive: /* @__PURE__ */ h(P, {})
4518
4580
  };
4519
- function Qn(t) {
4581
+ function tr(t) {
4520
4582
  return e.isValidElement(t) ? e.cloneElement(t, {
4521
4583
  size: 14,
4522
4584
  color: "currentColor"
4523
4585
  }) : t;
4524
4586
  }
4525
- var $n = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
4526
- let a = t === void 0 ? Zn[e] : t;
4587
+ var nr = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
4588
+ let a = t === void 0 ? er[e] : t;
4527
4589
  return /* @__PURE__ */ g("div", {
4528
4590
  role: i ?? (e === "destructive" || e === "warning" ? "alert" : "status"),
4529
- className: `${Xn.root} ${Xn[e]} ${n}`,
4591
+ className: `${$n.root} ${$n[e]} ${n}`,
4530
4592
  children: [a && /* @__PURE__ */ h("span", {
4531
- className: Xn.icon,
4593
+ className: $n.icon,
4532
4594
  "aria-hidden": "true",
4533
- children: Qn(a)
4595
+ children: tr(a)
4534
4596
  }), /* @__PURE__ */ h("div", {
4535
- className: Xn.body,
4597
+ className: $n.body,
4536
4598
  children: r
4537
4599
  })]
4538
4600
  });
4539
- }, er = ({ children: e, className: t = "" }) => /* @__PURE__ */ h("div", {
4540
- className: `${Xn.title} ${t}`,
4601
+ }, rr = ({ children: e, className: t = "" }) => /* @__PURE__ */ h("div", {
4602
+ className: `${$n.title} ${t}`,
4541
4603
  children: e
4542
- }), tr = ({ children: e, className: t = "" }) => /* @__PURE__ */ h("div", {
4543
- className: `${Xn.description} ${t}`,
4604
+ }), ir = ({ children: e, className: t = "" }) => /* @__PURE__ */ h("div", {
4605
+ className: `${$n.description} ${t}`,
4544
4606
  children: e
4545
- }), nr = {
4607
+ }), ar = {
4546
4608
  root: "_root_1aak8_10",
4547
4609
  main: "_main_1aak8_33",
4548
4610
  aside: "_aside_1aak8_34",
4549
4611
  message: "_message_1aak8_41"
4550
- }, rr = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ g("div", {
4612
+ }, or = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ g("div", {
4551
4613
  role: "region",
4552
4614
  "aria-label": a,
4553
- className: `${nr.root} ${i}`,
4615
+ className: `${ar.root} ${i}`,
4554
4616
  children: [/* @__PURE__ */ g("div", {
4555
- className: nr.main,
4617
+ className: ar.main,
4556
4618
  children: [r, t && /* @__PURE__ */ h("span", {
4557
- className: nr.message,
4619
+ className: ar.message,
4558
4620
  children: t
4559
4621
  })]
4560
4622
  }), n && /* @__PURE__ */ h("div", {
4561
- className: nr.aside,
4623
+ className: ar.aside,
4562
4624
  children: n
4563
4625
  })]
4564
4626
  }) : null, Q = {
@@ -4582,7 +4644,7 @@ var $n = ({ variant: e = "default", icon: t, className: n = "", children: r, rol
4582
4644
  marker: "_marker_yrzff_142",
4583
4645
  tooltipMarker: "_tooltipMarker_yrzff_146",
4584
4646
  markerDot: "_markerDot_yrzff_150"
4585
- }, ir = "var(--lv4)", ar = 12, or = 20, sr = 8, cr = 28, lr = 20, ur = {
4647
+ }, sr = "var(--lv4)", cr = 12, lr = 20, ur = 8, dr = 28, fr = 20, pr = {
4586
4648
  hatch: [
4587
4649
  [
4588
4650
  0,
@@ -4626,22 +4688,22 @@ var $n = ({ variant: e = "default", icon: t, className: n = "", children: r, rol
4626
4688
  2,
4627
4689
  2
4628
4690
  ]]
4629
- }, dr = .14, fr = "var(--CSignal)";
4630
- function pr(e, t = 4) {
4691
+ }, mr = .14, hr = "var(--CSignal)";
4692
+ function gr(e, t = 4) {
4631
4693
  let n = e / t || 1, r = 10 ** Math.floor(Math.log10(n)), i = n / r;
4632
4694
  return (i <= 1 ? 1 : i <= 2 ? 2 : i <= 5 ? 5 : 10) * r;
4633
4695
  }
4634
- function mr(e) {
4696
+ function _r(e) {
4635
4697
  let t = Math.abs(e);
4636
- return t >= 1e6 ? `${hr(e / 1e6)}M` : t >= 1e3 ? `${hr(e / 1e3)}k` : hr(e);
4698
+ return t >= 1e6 ? `${vr(e / 1e6)}M` : t >= 1e3 ? `${vr(e / 1e3)}k` : vr(e);
4637
4699
  }
4638
- function hr(e) {
4700
+ function vr(e) {
4639
4701
  return e.toLocaleString(void 0, { maximumFractionDigits: Math.abs(e) < 10 ? 2 : 1 });
4640
4702
  }
4641
- function gr(e) {
4703
+ function yr(e) {
4642
4704
  return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
4643
4705
  }
4644
- function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegend: c = !0, className: l, markers: u, yAxis: p = "none", yFormat: _ = mr, references: v, stacked: y = !1 }) {
4706
+ function br({ series: t, labels: n, type: r = "line", height: a = 200, showLegend: c = !0, className: l, markers: u, yAxis: p = "none", yFormat: _ = _r, references: v, stacked: y = !1 }) {
4645
4707
  let b = y && r === "bar", x = d(null), S = s(), [C, w] = f(0), [T, E] = f(null);
4646
4708
  o(() => {
4647
4709
  let e = x.current;
@@ -4649,25 +4711,25 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4649
4711
  let t = new ResizeObserver(([e]) => w(e.contentRect.width));
4650
4712
  return t.observe(e), w(e.clientWidth), () => t.disconnect();
4651
4713
  }, []);
4652
- let D = n?.length ? cr : sr, O = Math.max(a - ar - 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 = pr(N - P);
4714
+ let D = n?.length ? dr : ur, O = Math.max(a - cr - 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 = gr(N - P);
4653
4715
  F && (N = Math.ceil(N / I - 1e-9) * I, P = Math.floor(P / I + 1e-9) * I);
4654
4716
  let L = N - P || 1, R = [];
4655
4717
  if (F) for (let e = P; e <= N + I / 2; e += I) R.push(Number(e.toFixed(10)));
4656
- 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 : lr, te = Math.max(p === "right" ? B + 4 : or, ee ? ee + 6 : 0), H = Math.max(C - V - te, 0), U = Math.max(...t.map((e) => e.data.length), 0), ne = (() => {
4718
+ 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 : fr, te = Math.max(p === "right" ? B + 4 : lr, ee ? ee + 6 : 0), H = Math.max(C - V - te, 0), U = Math.max(...t.map((e) => e.data.length), 0), ne = (() => {
4657
4719
  if (!n || n.length <= 1 || H <= 0) return 1;
4658
4720
  let e = Math.max(...n.map((e) => e.length)) * 6 + 12, t = Math.max(Math.floor(H / e), 1);
4659
4721
  return Math.ceil(n.length / t);
4660
- })(), W = U <= 1 || H / (U - 1) >= 12, re = (e) => ar + (1 - (e - P) / L) * O, ie = re(Math.max(P, 0)), ae = (e, t, n = e.length) => {
4722
+ })(), W = U <= 1 || H / (U - 1) >= 12, re = (e) => cr + (1 - (e - P) / L) * O, ie = re(Math.max(P, 0)), ae = (e, t, n = e.length) => {
4661
4723
  let r = [];
4662
4724
  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)}`);
4663
4725
  return r;
4664
- }, 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)" : ir), de = (e) => `url(#${S}-${e})`, fe = (e, t) => {
4726
+ }, 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)" : sr), de = (e) => `url(#${S}-${e})`, fe = (e, t) => {
4665
4727
  let n = le(e);
4666
4728
  return n === "hatch" || n === "dots" || n === "checker" ? de(t) : ue(e);
4667
- }, pe = t.some((e) => le(e) in ur) ? /* @__PURE__ */ h("defs", { children: t.map((e, t) => {
4729
+ }, pe = t.some((e) => le(e) in pr) ? /* @__PURE__ */ h("defs", { children: t.map((e, t) => {
4668
4730
  let n = le(e);
4669
- if (!(n in ur)) return null;
4670
- let r = ur[n];
4731
+ if (!(n in pr)) return null;
4732
+ let r = pr[n];
4671
4733
  return /* @__PURE__ */ h("pattern", {
4672
4734
  id: `${S}-${t}`,
4673
4735
  width: 4,
@@ -4707,9 +4769,9 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4707
4769
  e.pointerType === "mouse" && E(null);
4708
4770
  }, []), _e = F ? null : /* @__PURE__ */ h("line", {
4709
4771
  x1: V,
4710
- y1: ar + O * .5,
4772
+ y1: cr + O * .5,
4711
4773
  x2: V + H,
4712
- y2: ar + O * .5,
4774
+ y2: cr + O * .5,
4713
4775
  stroke: "var(--chart-midline)",
4714
4776
  strokeWidth: "0.5"
4715
4777
  }), 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) => {
@@ -4758,36 +4820,36 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4758
4820
  ] }, t);
4759
4821
  }), xe = /* @__PURE__ */ h("line", {
4760
4822
  x1: V,
4761
- y1: ar + O,
4823
+ y1: cr + O,
4762
4824
  x2: V + H,
4763
- y2: ar + O,
4825
+ y2: cr + O,
4764
4826
  stroke: "var(--chart-baseline)",
4765
4827
  strokeWidth: "1"
4766
4828
  }), Se = T && r === "bar" ? (() => {
4767
4829
  let e = H / U;
4768
4830
  return /* @__PURE__ */ h("rect", {
4769
4831
  x: V + T.index * e,
4770
- y: ar,
4832
+ y: cr,
4771
4833
  width: e,
4772
4834
  height: O,
4773
4835
  fill: "var(--chart-column-hover)"
4774
4836
  });
4775
4837
  })() : null, Ce = (e) => t.map((t, n) => {
4776
4838
  if (!t.data.length) return null;
4777
- let r = e ?? t.color ?? ir, i = ae(t.data, t.step).join(" "), a = le(t), o = !e && !!(t.low && t.high && t.low.length && t.high.length), s = o ? (() => {
4839
+ let r = e ?? t.color ?? sr, i = ae(t.data, t.step).join(" "), a = le(t), o = !e && !!(t.low && t.high && t.low.length && t.high.length), s = o ? (() => {
4778
4840
  let e = Math.min(t.data.length, t.low.length, t.high.length);
4779
4841
  if (e < 2) return null;
4780
- let i = ae(t.high, t.step, e), o = ae(t.low, t.step, e).reverse(), s = a in ur;
4842
+ let i = ae(t.high, t.step, e), o = ae(t.low, t.step, e).reverse(), s = a in pr;
4781
4843
  return /* @__PURE__ */ h("polygon", {
4782
4844
  points: [...i, ...o].join(" "),
4783
4845
  fill: s ? de(n) : r,
4784
- fillOpacity: s ? 1 : dr,
4846
+ fillOpacity: s ? 1 : mr,
4785
4847
  stroke: "none"
4786
4848
  });
4787
4849
  })() : null, c = !e && !o && a !== "none" && t.data.length > 1 ? /* @__PURE__ */ h("polygon", {
4788
4850
  points: `${me(0).toFixed(2)},${ie.toFixed(2)} ${i} ${me(t.data.length - 1).toFixed(2)},${ie.toFixed(2)}`,
4789
4851
  fill: fe(t, n),
4790
- fillOpacity: a === "solid" ? dr : 1,
4852
+ fillOpacity: a === "solid" ? mr : 1,
4791
4853
  stroke: "none"
4792
4854
  }) : null;
4793
4855
  return /* @__PURE__ */ g("g", { children: [
@@ -4816,7 +4878,7 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4816
4878
  ] }, `${e ? "signal-" : ""}${n}`);
4817
4879
  }), we = (e) => {
4818
4880
  if (!U) return null;
4819
- let n = b ? 1 : t.length, r = H / U, i = Math.max((r - 2 * (n + 1)) / n, 2), a = ar + O, o = Array(U).fill(0);
4881
+ let n = b ? 1 : t.length, r = H / U, i = Math.max((r - 2 * (n + 1)) / n, 2), a = cr + O, o = Array(U).fill(0);
4820
4882
  return t.map((t, n) => t.data.map((s, c) => {
4821
4883
  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;
4822
4884
  b && (o[c] += u);
@@ -4831,7 +4893,7 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4831
4893
  }));
4832
4894
  }, Te = () => {
4833
4895
  if (!n?.length) return null;
4834
- let e = ar + O + 18, t = n.length - 1;
4896
+ let e = cr + O + 18, t = n.length - 1;
4835
4897
  return n.map((n, i) => {
4836
4898
  if ((t - i) % ne !== 0) return null;
4837
4899
  let a = r === "line" ? me(i) : V + (i + .5) * (H / U);
@@ -4846,9 +4908,9 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4846
4908
  });
4847
4909
  }, Ee = T && r === "line" ? /* @__PURE__ */ h("line", {
4848
4910
  x1: me(T.index),
4849
- y1: ar,
4911
+ y1: cr,
4850
4912
  x2: me(T.index),
4851
- y2: ar + O,
4913
+ y2: cr + O,
4852
4914
  stroke: "var(--chart-crosshair)",
4853
4915
  strokeWidth: "1",
4854
4916
  strokeDasharray: "3 3"
@@ -4887,7 +4949,7 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4887
4949
  children: [
4888
4950
  /* @__PURE__ */ h("span", {
4889
4951
  className: Q.tooltipDot,
4890
- style: { background: t.color ?? ir }
4952
+ style: { background: t.color ?? sr }
4891
4953
  }),
4892
4954
  /* @__PURE__ */ h("span", {
4893
4955
  className: Q.tooltipName,
@@ -4895,7 +4957,7 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4895
4957
  }),
4896
4958
  /* @__PURE__ */ h("span", {
4897
4959
  className: Q.tooltipValue,
4898
- children: gr(t.data[T.index] ?? 0)
4960
+ children: yr(t.data[T.index] ?? 0)
4899
4961
  })
4900
4962
  ]
4901
4963
  }), t.low && t.high && t.low[T.index] != null && t.high[T.index] != null && /* @__PURE__ */ g("div", {
@@ -4912,9 +4974,9 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4912
4974
  /* @__PURE__ */ g("span", {
4913
4975
  className: Q.tooltipRangeValue,
4914
4976
  children: [
4915
- gr(t.low[T.index]),
4977
+ yr(t.low[T.index]),
4916
4978
  " to ",
4917
- gr(t.high[T.index])
4979
+ yr(t.high[T.index])
4918
4980
  ]
4919
4981
  })
4920
4982
  ]
@@ -4932,7 +4994,7 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4932
4994
  }),
4933
4995
  /* @__PURE__ */ h("span", {
4934
4996
  className: Q.tooltipValue,
4935
- children: gr(A[T.index] ?? 0)
4997
+ children: yr(A[T.index] ?? 0)
4936
4998
  })
4937
4999
  ]
4938
5000
  }),
@@ -4977,24 +5039,24 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
4977
5039
  Se,
4978
5040
  Ee,
4979
5041
  r === "line" ? Ce() : we(),
4980
- se != null && se > ar && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("defs", { children: /* @__PURE__ */ h("clipPath", {
5042
+ se != null && se > cr && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("defs", { children: /* @__PURE__ */ h("clipPath", {
4981
5043
  id: ce,
4982
5044
  children: /* @__PURE__ */ h("rect", {
4983
5045
  x: V,
4984
- y: ar,
5046
+ y: cr,
4985
5047
  width: H,
4986
- height: se - ar
5048
+ height: se - cr
4987
5049
  })
4988
5050
  }) }), /* @__PURE__ */ h("g", {
4989
5051
  clipPath: `url(#${ce})`,
4990
- children: r === "line" ? Ce(fr) : we(fr)
5052
+ children: r === "line" ? Ce(hr) : we(hr)
4991
5053
  })] }),
4992
5054
  u && U > 0 && [...new Set(u.map((e) => e.index).filter((e) => e >= 0 && e < U))].map((e) => {
4993
5055
  let t = r === "line" ? me(e) : V + (e + .5) * (H / U);
4994
5056
  return /* @__PURE__ */ h("rect", {
4995
5057
  className: Q.marker,
4996
5058
  x: t - 3,
4997
- y: ar + O - 3,
5059
+ y: cr + O - 3,
4998
5060
  width: 6,
4999
5061
  height: 6
5000
5062
  }, `m${e}`);
@@ -5007,7 +5069,7 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
5007
5069
  className: Q.legend,
5008
5070
  children: t.map((e, t) => /* @__PURE__ */ g("div", {
5009
5071
  className: Q.legendItem,
5010
- children: [le(e) in ur ? /* @__PURE__ */ h("svg", {
5072
+ children: [le(e) in pr ? /* @__PURE__ */ h("svg", {
5011
5073
  className: Q.legendSwatch,
5012
5074
  width: 12,
5013
5075
  height: 8,
@@ -5019,7 +5081,7 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
5019
5081
  })
5020
5082
  }) : /* @__PURE__ */ h("div", {
5021
5083
  className: Q.legendMark,
5022
- style: { background: e.color ?? ir }
5084
+ style: { background: e.color ?? sr }
5023
5085
  }), /* @__PURE__ */ h("span", {
5024
5086
  className: Q.legendLabel,
5025
5087
  children: e.label
@@ -5028,7 +5090,7 @@ function _r({ series: t, labels: n, type: r = "line", height: a = 200, showLegen
5028
5090
  })]
5029
5091
  });
5030
5092
  }
5031
- var vr = {
5093
+ var xr = {
5032
5094
  sparkline: "_sparkline_fqcg9_4",
5033
5095
  line: "_line_fqcg9_12",
5034
5096
  partial: "_partial_fqcg9_22",
@@ -5036,16 +5098,16 @@ var vr = {
5036
5098
  bars: "_bars_fqcg9_34",
5037
5099
  bar: "_bar_fqcg9_34",
5038
5100
  baseline: "_baseline_fqcg9_48"
5039
- }, yr = 100, br = 100;
5040
- function xr({ 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 }) {
5101
+ }, Sr = 100, Cr = 100;
5102
+ function wr({ 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 }) {
5041
5103
  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", {
5042
- className: [vr.sparkline, f].filter(Boolean).join(" "),
5104
+ className: [xr.sparkline, f].filter(Boolean).join(" "),
5043
5105
  style: {
5044
5106
  width: n,
5045
5107
  height: r,
5046
5108
  color: i
5047
5109
  },
5048
- viewBox: `0 0 ${yr} ${br}`,
5110
+ viewBox: `0 0 ${Sr} ${Cr}`,
5049
5111
  preserveAspectRatio: "none",
5050
5112
  role: v ? void 0 : "img",
5051
5113
  "aria-label": d,
@@ -5054,15 +5116,15 @@ function xr({ values: e, type: t = "line", width: n = "100%", height: r = 24, co
5054
5116
  children: [e, o && /* @__PURE__ */ h("line", {
5055
5117
  x1: "0",
5056
5118
  y1: 99.5,
5057
- x2: yr,
5119
+ x2: Sr,
5058
5120
  y2: 99.5,
5059
- className: vr.baseline,
5121
+ className: xr.baseline,
5060
5122
  vectorEffect: "non-scaling-stroke"
5061
5123
  })]
5062
5124
  });
5063
5125
  if (_.length < 2) return C(null);
5064
5126
  if (t === "bar") return /* @__PURE__ */ h("div", {
5065
- className: [vr.bars, f].filter(Boolean).join(" "),
5127
+ className: [xr.bars, f].filter(Boolean).join(" "),
5066
5128
  style: {
5067
5129
  width: n,
5068
5130
  height: r,
@@ -5074,18 +5136,18 @@ function xr({ values: e, type: t = "line", width: n = "100%", height: r = 24, co
5074
5136
  "aria-label": d,
5075
5137
  "aria-hidden": v || void 0,
5076
5138
  children: _.map((e, t) => /* @__PURE__ */ h("span", {
5077
- className: vr.bar,
5139
+ className: xr.bar,
5078
5140
  style: { height: `${Math.max((e - b) / x * 100, 2)}%` }
5079
5141
  }, t))
5080
5142
  });
5081
- let w = yr / (_.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;
5143
+ 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;
5082
5144
  return C(/* @__PURE__ */ g(m, { children: [
5083
5145
  D && /* @__PURE__ */ h("defs", { children: /* @__PURE__ */ h("linearGradient", {
5084
5146
  id: p,
5085
5147
  gradientUnits: "userSpaceOnUse",
5086
5148
  x1: "0",
5087
5149
  y1: "0",
5088
- x2: yr,
5150
+ x2: Sr,
5089
5151
  y2: "0",
5090
5152
  children: (() => {
5091
5153
  let e = _.length - 1, t = (e) => _[e] === 0 && _[e + 1] === 0 ? u : "currentColor", n = .2 / e;
@@ -5102,29 +5164,29 @@ function xr({ values: e, type: t = "line", width: n = "100%", height: r = 24, co
5102
5164
  })()
5103
5165
  }) }),
5104
5166
  a && /* @__PURE__ */ h("polygon", {
5105
- className: vr.fill,
5106
- points: `0,${br} ${E} ${yr},${br}`,
5167
+ className: xr.fill,
5168
+ points: `0,${Cr} ${E} ${Sr},${Cr}`,
5107
5169
  style: k
5108
5170
  }),
5109
5171
  c ? /* @__PURE__ */ g(m, { children: [_.length > 2 && /* @__PURE__ */ h("polyline", {
5110
- className: vr.line,
5172
+ className: xr.line,
5111
5173
  points: T(0, _.length - 1),
5112
5174
  vectorEffect: "non-scaling-stroke",
5113
5175
  style: O
5114
5176
  }), /* @__PURE__ */ h("polyline", {
5115
- className: `${vr.line} ${vr.partial}`,
5177
+ className: `${xr.line} ${xr.partial}`,
5116
5178
  points: T(_.length - 2, 2),
5117
5179
  vectorEffect: "non-scaling-stroke",
5118
5180
  style: O
5119
5181
  })] }) : /* @__PURE__ */ h("polyline", {
5120
- className: vr.line,
5182
+ className: xr.line,
5121
5183
  points: E,
5122
5184
  vectorEffect: "non-scaling-stroke",
5123
5185
  style: O
5124
5186
  })
5125
5187
  ] }));
5126
5188
  }
5127
- var Sr = {
5189
+ var Tr = {
5128
5190
  wrapper: "_wrapper_17ws4_1",
5129
5191
  label: "_label_17ws4_7",
5130
5192
  textarea: "_textarea_17ws4_12",
@@ -5132,14 +5194,14 @@ var Sr = {
5132
5194
  errorText: "_errorText_17ws4_56"
5133
5195
  };
5134
5196
  // src/components/Textarea/Textarea.tsx
5135
- function Cr({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
5197
+ function Er({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
5136
5198
  let c = e.useId(), l = a || c, u = `${l}-error`, d = n || !i;
5137
5199
  return /* @__PURE__ */ g("div", {
5138
- className: `${Sr.wrapper} ${r}`,
5200
+ className: `${Tr.wrapper} ${r}`,
5139
5201
  children: [
5140
5202
  t && /* @__PURE__ */ g("label", {
5141
5203
  htmlFor: l,
5142
- className: Sr.label,
5204
+ className: Tr.label,
5143
5205
  children: [t, s.required && /* @__PURE__ */ h("span", {
5144
5206
  "aria-label": "required",
5145
5207
  children: " *"
@@ -5148,28 +5210,28 @@ function Cr({ label: t, error: n, className: r = "", isValid: i = !0, id: a, row
5148
5210
  /* @__PURE__ */ h("textarea", {
5149
5211
  id: l,
5150
5212
  rows: o,
5151
- className: `${Sr.textarea} ${d ? Sr.error : ""}`,
5213
+ className: `${Tr.textarea} ${d ? Tr.error : ""}`,
5152
5214
  "aria-invalid": d ? "true" : "false",
5153
5215
  "aria-describedby": n ? u : void 0,
5154
5216
  ...s
5155
5217
  }),
5156
5218
  n && /* @__PURE__ */ h("span", {
5157
5219
  id: u,
5158
- className: Sr.errorText,
5220
+ className: Tr.errorText,
5159
5221
  role: "alert",
5160
5222
  children: n
5161
5223
  })
5162
5224
  ]
5163
5225
  });
5164
5226
  }
5165
- var wr = {
5227
+ var Dr = {
5166
5228
  overlay: "_overlay_xud7c_1",
5167
5229
  content: "_content_xud7c_8",
5168
5230
  title: "_title_xud7c_26",
5169
5231
  description: "_description_xud7c_34",
5170
5232
  close: "_close_xud7c_40",
5171
5233
  srOnly: "_srOnly_xud7c_62"
5172
- }, Tr = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => {
5234
+ }, Or = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => {
5173
5235
  let c = ae();
5174
5236
  return /* @__PURE__ */ g(B.Root, {
5175
5237
  open: n,
@@ -5179,19 +5241,19 @@ var wr = {
5179
5241
  children: e
5180
5242
  }), /* @__PURE__ */ g(B.Portal, {
5181
5243
  container: c,
5182
- children: [/* @__PURE__ */ h(B.Overlay, { className: wr.overlay }), /* @__PURE__ */ g(B.Content, {
5183
- className: `${wr.content} ${o}`,
5244
+ children: [/* @__PURE__ */ h(B.Overlay, { className: Dr.overlay }), /* @__PURE__ */ g(B.Content, {
5245
+ className: `${Dr.content} ${o}`,
5184
5246
  children: [
5185
5247
  /* @__PURE__ */ h(B.Title, {
5186
- className: i ? wr.title : wr.srOnly,
5248
+ className: i ? Dr.title : Dr.srOnly,
5187
5249
  children: i || "Dialog"
5188
5250
  }),
5189
5251
  a && /* @__PURE__ */ h(B.Description, {
5190
- className: wr.description,
5252
+ className: Dr.description,
5191
5253
  children: a
5192
5254
  }),
5193
5255
  s && /* @__PURE__ */ h(B.Close, {
5194
- className: wr.close,
5256
+ className: Dr.close,
5195
5257
  "aria-label": "Close",
5196
5258
  children: /* @__PURE__ */ h(F, {
5197
5259
  size: 14,
@@ -5203,7 +5265,7 @@ var wr = {
5203
5265
  })]
5204
5266
  })]
5205
5267
  });
5206
- }, Er = {
5268
+ }, kr = {
5207
5269
  wrapper: "_wrapper_aimna_1",
5208
5270
  label: "_label_aimna_7",
5209
5271
  trigger: "_trigger_aimna_12",
@@ -5222,7 +5284,7 @@ var wr = {
5222
5284
  today: "_today_aimna_131",
5223
5285
  selected: "_selected_aimna_136",
5224
5286
  errorText: "_errorText_aimna_142"
5225
- }, Dr = [
5287
+ }, Ar = [
5226
5288
  "Mo",
5227
5289
  "Tu",
5228
5290
  "We",
@@ -5230,7 +5292,7 @@ var wr = {
5230
5292
  "Fr",
5231
5293
  "Sa",
5232
5294
  "Su"
5233
- ], Or = [
5295
+ ], jr = [
5234
5296
  "January",
5235
5297
  "February",
5236
5298
  "March",
@@ -5244,19 +5306,19 @@ var wr = {
5244
5306
  "November",
5245
5307
  "December"
5246
5308
  ];
5247
- function kr(e) {
5309
+ function Mr(e) {
5248
5310
  let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
5249
5311
  return `${e.getFullYear()}-${t}-${n}`;
5250
5312
  }
5251
- function Ar(e, t) {
5313
+ function Nr(e, t) {
5252
5314
  return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
5253
5315
  }
5254
- function jr(e, t) {
5316
+ function Pr(e, t) {
5255
5317
  let n = (new Date(e, t, 1).getDay() + 6) % 7, r = [];
5256
5318
  for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
5257
5319
  return r;
5258
5320
  }
5259
- var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: c = "", formatDate: l = kr }) => {
5321
+ var Fr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: c = "", formatDate: l = Mr }) => {
5260
5322
  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) => {
5261
5323
  if (e) {
5262
5324
  let e = t ?? /* @__PURE__ */ new Date();
@@ -5265,7 +5327,7 @@ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
5265
5327
  v(e);
5266
5328
  };
5267
5329
  e.useEffect(() => {
5268
- j.current &&= (A.current.get(kr(O))?.focus(), !1);
5330
+ j.current &&= (A.current.get(Mr(O))?.focus(), !1);
5269
5331
  }, [O]);
5270
5332
  let N = (e, t) => {
5271
5333
  let n = new Date(t), r = {
@@ -5292,13 +5354,13 @@ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
5292
5354
  E === 11 ? (D(0), T(w + 1)) : D(E + 1);
5293
5355
  }, I = (e) => {
5294
5356
  n?.(e), v(!1);
5295
- }, L = jr(w, E);
5357
+ }, L = Pr(w, E);
5296
5358
  return /* @__PURE__ */ g("div", {
5297
- className: `${Er.wrapper} ${c}`,
5359
+ className: `${kr.wrapper} ${c}`,
5298
5360
  children: [
5299
5361
  r && /* @__PURE__ */ h("span", {
5300
5362
  id: `${d}-label`,
5301
- className: Er.label,
5363
+ className: kr.label,
5302
5364
  children: r
5303
5365
  }),
5304
5366
  /* @__PURE__ */ g(R.Root, {
@@ -5308,14 +5370,14 @@ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
5308
5370
  asChild: !0,
5309
5371
  children: /* @__PURE__ */ g("button", {
5310
5372
  type: "button",
5311
- className: `${Er.trigger} ${m ? Er.error : ""}`,
5373
+ className: `${kr.trigger} ${m ? kr.error : ""}`,
5312
5374
  disabled: s,
5313
5375
  "aria-labelledby": r ? `${d}-label ${d}-value` : void 0,
5314
5376
  "aria-invalid": m ? "true" : "false",
5315
5377
  "aria-describedby": a ? p : void 0,
5316
5378
  children: [/* @__PURE__ */ h("span", {
5317
5379
  id: `${d}-value`,
5318
- className: t ? Er.valueText : Er.placeholder,
5380
+ className: t ? kr.valueText : kr.placeholder,
5319
5381
  children: t ? l(t) : i
5320
5382
  }), /* @__PURE__ */ h(x, {
5321
5383
  size: 14,
@@ -5325,20 +5387,20 @@ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
5325
5387
  }), /* @__PURE__ */ h(R.Portal, {
5326
5388
  container: u,
5327
5389
  children: /* @__PURE__ */ g(R.Content, {
5328
- className: Er.calendar,
5390
+ className: kr.calendar,
5329
5391
  align: "start",
5330
5392
  sideOffset: 5,
5331
5393
  "aria-label": r ? `${r} calendar` : "Choose a date",
5332
5394
  onOpenAutoFocus: (e) => {
5333
- e.preventDefault(), A.current.get(kr(O))?.focus();
5395
+ e.preventDefault(), A.current.get(Mr(O))?.focus();
5334
5396
  },
5335
5397
  children: [
5336
5398
  /* @__PURE__ */ g("div", {
5337
- className: Er.header,
5399
+ className: kr.header,
5338
5400
  children: [
5339
5401
  /* @__PURE__ */ h("button", {
5340
5402
  type: "button",
5341
- className: Er.navButton,
5403
+ className: kr.navButton,
5342
5404
  onClick: P,
5343
5405
  "aria-label": "Previous month",
5344
5406
  children: /* @__PURE__ */ h(S, {
@@ -5347,16 +5409,16 @@ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
5347
5409
  })
5348
5410
  }),
5349
5411
  /* @__PURE__ */ g("span", {
5350
- className: Er.monthLabel,
5412
+ className: kr.monthLabel,
5351
5413
  children: [
5352
- Or[E],
5414
+ jr[E],
5353
5415
  " ",
5354
5416
  w
5355
5417
  ]
5356
5418
  }),
5357
5419
  /* @__PURE__ */ h("button", {
5358
5420
  type: "button",
5359
- className: Er.navButton,
5421
+ className: kr.navButton,
5360
5422
  onClick: F,
5361
5423
  "aria-label": "Next month",
5362
5424
  children: /* @__PURE__ */ h(C, {
@@ -5367,27 +5429,27 @@ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
5367
5429
  ]
5368
5430
  }),
5369
5431
  /* @__PURE__ */ h("div", {
5370
- className: Er.weekdays,
5371
- children: Dr.map((e) => /* @__PURE__ */ h("span", {
5372
- className: Er.weekday,
5432
+ className: kr.weekdays,
5433
+ children: Ar.map((e) => /* @__PURE__ */ h("span", {
5434
+ className: kr.weekday,
5373
5435
  children: e
5374
5436
  }, e))
5375
5437
  }),
5376
5438
  /* @__PURE__ */ h("div", {
5377
- className: Er.grid,
5439
+ className: kr.grid,
5378
5440
  children: L.map((e) => {
5379
- let n = e.getMonth() !== E, r = Ar(e, t), i = Ar(e, y), a = [
5380
- Er.day,
5381
- n ? Er.outside : "",
5382
- r ? Er.selected : "",
5383
- i && !r ? Er.today : ""
5441
+ let n = e.getMonth() !== E, r = Nr(e, t), i = Nr(e, y), a = [
5442
+ kr.day,
5443
+ n ? kr.outside : "",
5444
+ r ? kr.selected : "",
5445
+ i && !r ? kr.today : ""
5384
5446
  ].filter(Boolean).join(" ");
5385
5447
  return /* @__PURE__ */ h("button", {
5386
5448
  type: "button",
5387
5449
  className: a,
5388
5450
  onClick: () => I(e),
5389
5451
  ref: (t) => {
5390
- t ? A.current.set(kr(e), t) : A.current.delete(kr(e));
5452
+ t ? A.current.set(Mr(e), t) : A.current.delete(Mr(e));
5391
5453
  },
5392
5454
  "aria-label": e.toLocaleDateString(void 0, {
5393
5455
  weekday: "long",
@@ -5397,7 +5459,7 @@ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
5397
5459
  }),
5398
5460
  "aria-pressed": r,
5399
5461
  "aria-current": i ? "date" : void 0,
5400
- tabIndex: Ar(e, O) || O.getMonth() !== E && e.getDate() === 1 && !n ? 0 : -1,
5462
+ tabIndex: Nr(e, O) || O.getMonth() !== E && e.getDate() === 1 && !n ? 0 : -1,
5401
5463
  onKeyDown: (t) => N(t, e),
5402
5464
  children: e.getDate()
5403
5465
  }, e.toISOString());
@@ -5409,32 +5471,32 @@ var Mr = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
5409
5471
  }),
5410
5472
  a && /* @__PURE__ */ h("span", {
5411
5473
  id: p,
5412
- className: Er.errorText,
5474
+ className: kr.errorText,
5413
5475
  role: "alert",
5414
5476
  children: a
5415
5477
  })
5416
5478
  ]
5417
5479
  });
5418
- }, Nr = {
5480
+ }, Ir = {
5419
5481
  skeleton: "_skeleton_fo2zs_11",
5420
5482
  "indx-skeleton-pulse": "_indx-skeleton-pulse_fo2zs_1",
5421
5483
  level3: "_level3_fo2zs_20",
5422
5484
  appear: "_appear_fo2zs_25",
5423
5485
  "indx-skeleton-appear": "_indx-skeleton-appear_fo2zs_1"
5424
- }, Pr = (e) => typeof e == "number" ? `${e}px` : e;
5425
- function Fr({ width: e = "100%", height: t = 10, level: n = 2, delay: r = 0, appear: i = !0, className: a = "", style: o }) {
5486
+ }, Lr = (e) => typeof e == "number" ? `${e}px` : e;
5487
+ function Rr({ width: e = "100%", height: t = 10, level: n = 2, delay: r = 0, appear: i = !0, className: a = "", style: o }) {
5426
5488
  return /* @__PURE__ */ h("span", {
5427
5489
  "aria-hidden": "true",
5428
- className: `${Nr.skeleton} ${n === 3 ? Nr.level3 : ""} ${i ? Nr.appear : ""} ${a}`,
5490
+ className: `${Ir.skeleton} ${n === 3 ? Ir.level3 : ""} ${i ? Ir.appear : ""} ${a}`,
5429
5491
  style: {
5430
- width: Pr(e),
5431
- height: Pr(t),
5492
+ width: Lr(e),
5493
+ height: Lr(t),
5432
5494
  "--skeleton-delay": `${r}s`,
5433
5495
  ...o
5434
5496
  }
5435
5497
  });
5436
5498
  }
5437
- var Ir = {
5499
+ var zr = {
5438
5500
  stat: "_stat_tcz5d_2",
5439
5501
  label: "_label_tcz5d_16",
5440
5502
  labelIcon: "_labelIcon_tcz5d_25",
@@ -5451,88 +5513,88 @@ var Ir = {
5451
5513
  fixed: "_fixed_tcz5d_119",
5452
5514
  many: "_many_tcz5d_124",
5453
5515
  pairs: "_pairs_tcz5d_128"
5454
- }, Lr = 28;
5455
- function Rr({ label: e, labelIcon: n, value: i, figure: a, icon: o, color: s, hint: c, children: l, className: u = "" }) {
5516
+ }, Br = 28;
5517
+ function Vr({ label: e, labelIcon: n, value: i, figure: a, icon: o, color: s, hint: c, children: l, className: u = "" }) {
5456
5518
  let d = n && r(n) ? t(n, {
5457
5519
  size: n.props.size ?? 14,
5458
5520
  color: n.props.color ?? "currentColor"
5459
5521
  }) : n, f = /* @__PURE__ */ g("span", {
5460
- className: `${Ir.label} ${c ? Ir.hinted : ""}`,
5522
+ className: `${zr.label} ${c ? zr.hinted : ""}`,
5461
5523
  children: [d != null && /* @__PURE__ */ h("span", {
5462
- className: Ir.labelIcon,
5524
+ className: zr.labelIcon,
5463
5525
  "aria-hidden": "true",
5464
5526
  children: d
5465
5527
  }), e]
5466
5528
  }), p = o && r(o) ? t(o, {
5467
5529
  size: o.props.size ?? 28,
5468
5530
  color: o.props.color ?? "currentColor"
5469
- }) : o, m = c ? /* @__PURE__ */ h(fn, {
5531
+ }) : o, m = c ? /* @__PURE__ */ h(gn, {
5470
5532
  content: c,
5471
5533
  children: f
5472
5534
  }) : f, _ = (i != null || p != null) && /* @__PURE__ */ g("span", {
5473
- className: Ir.value,
5535
+ className: zr.value,
5474
5536
  style: s ? { color: s } : void 0,
5475
5537
  children: [p != null && /* @__PURE__ */ h("span", {
5476
- className: Ir.icon,
5538
+ className: zr.icon,
5477
5539
  "aria-hidden": "true",
5478
5540
  children: p
5479
5541
  }), i]
5480
5542
  }), v = l != null && /* @__PURE__ */ h("span", {
5481
- className: Ir.foot,
5543
+ className: zr.foot,
5482
5544
  children: l
5483
5545
  });
5484
5546
  return a == null ? /* @__PURE__ */ g("div", {
5485
- className: `${Ir.stat} ${u}`,
5547
+ className: `${zr.stat} ${u}`,
5486
5548
  children: [
5487
5549
  m,
5488
5550
  /* @__PURE__ */ h("span", {
5489
- className: Ir.body,
5551
+ className: zr.body,
5490
5552
  children: _
5491
5553
  }),
5492
5554
  v && /* @__PURE__ */ h("span", {
5493
- className: Ir.footRow,
5555
+ className: zr.footRow,
5494
5556
  children: v
5495
5557
  })
5496
5558
  ]
5497
5559
  }) : /* @__PURE__ */ g("div", {
5498
- className: `${Ir.stat} ${u}`,
5560
+ className: `${zr.stat} ${u}`,
5499
5561
  children: [m, /* @__PURE__ */ h("span", {
5500
- className: Ir.body,
5562
+ className: zr.body,
5501
5563
  children: /* @__PURE__ */ g("span", {
5502
- className: Ir.figured,
5564
+ className: zr.figured,
5503
5565
  children: [/* @__PURE__ */ h("span", {
5504
- className: Ir.figure,
5566
+ className: zr.figure,
5505
5567
  children: a
5506
5568
  }), /* @__PURE__ */ g("span", {
5507
- className: Ir.text,
5569
+ className: zr.text,
5508
5570
  children: [_, v]
5509
5571
  })]
5510
5572
  })
5511
5573
  })]
5512
5574
  });
5513
5575
  }
5514
- function zr({ children: e, columns: t, className: n = "" }) {
5515
- let r = t ? `${Ir.fixed} ${t > 3 ? Ir.many : ""} ${t > 2 ? Ir.pairs : ""}` : "";
5576
+ function Hr({ children: e, columns: t, className: n = "" }) {
5577
+ let r = t ? `${zr.fixed} ${t > 3 ? zr.many : ""} ${t > 2 ? zr.pairs : ""}` : "";
5516
5578
  return /* @__PURE__ */ h("div", {
5517
- className: `${Ir.group} ${r} ${n}`,
5579
+ className: `${zr.group} ${r} ${n}`,
5518
5580
  style: t ? { "--stat-columns": t } : void 0,
5519
5581
  children: e
5520
5582
  });
5521
5583
  }
5522
- var Br = {
5584
+ var Ur = {
5523
5585
  text: "_text_15djf_3",
5524
5586
  active: "_active_15djf_6",
5525
5587
  "indx-shimmer-text": "_indx-shimmer-text_15djf_1"
5526
5588
  };
5527
5589
  // src/components/ShimmerText/ShimmerText.tsx
5528
- function Vr({ children: e, active: t = !0, className: n = "", ...r }) {
5590
+ function Wr({ children: e, active: t = !0, className: n = "", ...r }) {
5529
5591
  return /* @__PURE__ */ h("span", {
5530
- className: `${Br.text} ${t ? Br.active : ""} ${n}`,
5592
+ className: `${Ur.text} ${t ? Ur.active : ""} ${n}`,
5531
5593
  ...r,
5532
5594
  children: e
5533
5595
  });
5534
5596
  }
5535
- var Hr = {
5597
+ var Gr = {
5536
5598
  meter: "_meter_5u78a_3",
5537
5599
  cell: "_cell_5u78a_12",
5538
5600
  lit: "_lit_5u78a_13",
@@ -5540,25 +5602,25 @@ var Hr = {
5540
5602
  some: "_some_5u78a_16",
5541
5603
  all: "_all_5u78a_17",
5542
5604
  mark: "_mark_5u78a_18"
5543
- }, Ur = (e) => Math.min(1, Math.max(0, e)).toFixed(2);
5544
- function Wr({ value: e, marks: t = [], cells: n = 20, cell: r = 4, className: i = "", ...a }) {
5545
- let o = t.length === 0 ? "" : t.every((t) => e >= t.at) ? Hr.all : t.some((t) => e >= t.at) ? Hr.some : Hr.none;
5605
+ }, Kr = (e) => Math.min(1, Math.max(0, e)).toFixed(2);
5606
+ function qr({ value: e, marks: t = [], cells: n = 20, cell: r = 4, className: i = "", ...a }) {
5607
+ let o = t.length === 0 ? "" : t.every((t) => e >= t.at) ? Gr.all : t.some((t) => e >= t.at) ? Gr.some : Gr.none;
5546
5608
  return /* @__PURE__ */ g("span", {
5547
- className: `${Hr.meter} ${o} ${i}`,
5609
+ className: `${Gr.meter} ${o} ${i}`,
5548
5610
  role: "meter",
5549
5611
  "aria-valuemin": 0,
5550
5612
  "aria-valuemax": 1,
5551
- "aria-valuenow": Number(Ur(e)),
5613
+ "aria-valuenow": Number(Kr(e)),
5552
5614
  "aria-label": a["aria-label"],
5553
5615
  style: { "--score-cell": `${r}px` },
5554
- children: [Array.from({ length: n }, (t, r) => /* @__PURE__ */ h("span", { className: `${Hr.cell} ${e >= (r + .5) / n ? Hr.lit : ""}` }, r)), t.map((e) => /* @__PURE__ */ h("span", {
5555
- className: Hr.mark,
5616
+ children: [Array.from({ length: n }, (t, r) => /* @__PURE__ */ h("span", { className: `${Gr.cell} ${e >= (r + .5) / n ? Gr.lit : ""}` }, r)), t.map((e) => /* @__PURE__ */ h("span", {
5617
+ className: Gr.mark,
5556
5618
  style: { left: `${Math.min(1, Math.max(0, e.at)) * 100}%` },
5557
- title: `${e.label} ${Ur(e.at)}`
5619
+ title: `${e.label} ${Kr(e.at)}`
5558
5620
  }, `${e.label}-${e.at}`))]
5559
5621
  });
5560
5622
  }
5561
- var Gr = {
5623
+ var Jr = {
5562
5624
  steps: "_steps_16r2n_1",
5563
5625
  part: "_part_16r2n_2",
5564
5626
  track: "_track_16r2n_3",
@@ -5568,13 +5630,13 @@ var Gr = {
5568
5630
  count: "_count_16r2n_7"
5569
5631
  };
5570
5632
  // src/components/StepProgress/StepProgress.tsx
5571
- function Kr({ parts: e, weighted: t = !0, labels: n = !1, color: r, height: i = 3, className: a = "", ...o }) {
5633
+ function Yr({ parts: e, weighted: t = !0, labels: n = !1, color: r, height: i = 3, className: a = "", ...o }) {
5572
5634
  let s = e.reduce((e, t) => e + Math.min(t.value, t.max ?? 1), 0), c = e.reduce((e, t) => e + (t.max ?? 1), 0), l = {
5573
5635
  "--step-fill": r,
5574
5636
  "--step-height": `${i}px`
5575
5637
  };
5576
5638
  return /* @__PURE__ */ h("div", {
5577
- className: `${Gr.steps} ${a}`,
5639
+ className: `${Jr.steps} ${a}`,
5578
5640
  style: l,
5579
5641
  role: "progressbar",
5580
5642
  "aria-valuemin": 0,
@@ -5584,21 +5646,21 @@ function Kr({ parts: e, weighted: t = !0, labels: n = !1, color: r, height: i =
5584
5646
  children: e.map((e, r) => {
5585
5647
  let i = e.max ?? 1, a = Math.min(Math.max(e.value, 0), i);
5586
5648
  return /* @__PURE__ */ g("div", {
5587
- className: Gr.part,
5649
+ className: Jr.part,
5588
5650
  style: { flex: t ? i : 1 },
5589
5651
  children: [/* @__PURE__ */ h("div", {
5590
- className: Gr.track,
5652
+ className: Jr.track,
5591
5653
  children: /* @__PURE__ */ h("div", {
5592
- className: Gr.fill,
5654
+ className: Jr.fill,
5593
5655
  style: { width: `${a / i * 100}%` }
5594
5656
  })
5595
5657
  }), n && /* @__PURE__ */ g("div", {
5596
- className: Gr.label,
5658
+ className: Jr.label,
5597
5659
  children: [/* @__PURE__ */ h("span", {
5598
- className: Gr.name,
5660
+ className: Jr.name,
5599
5661
  children: e.label
5600
5662
  }), /* @__PURE__ */ g("span", {
5601
- className: Gr.count,
5663
+ className: Jr.count,
5602
5664
  children: [
5603
5665
  a,
5604
5666
  "/",
@@ -5610,7 +5672,7 @@ function Kr({ parts: e, weighted: t = !0, labels: n = !1, color: r, height: i =
5610
5672
  })
5611
5673
  });
5612
5674
  }
5613
- var qr = {
5675
+ var Xr = {
5614
5676
  icicle: "_icicle_1e1du_2",
5615
5677
  cell: "_cell_1e1du_3",
5616
5678
  block: "_block_1e1du_4",
@@ -5620,12 +5682,12 @@ var qr = {
5620
5682
  tone2: "_tone2_1e1du_18",
5621
5683
  tone3: "_tone3_1e1du_19",
5622
5684
  tone4: "_tone4_1e1du_20"
5623
- }, Jr = (e) => 1 + (e.children?.length ? Math.max(...e.children.map(Jr)) : 0), Yr = (e) => {
5685
+ }, Zr = (e) => 1 + (e.children?.length ? Math.max(...e.children.map(Zr)) : 0), Qr = (e) => {
5624
5686
  if (e.value <= 0 || !e.children?.length) return 0;
5625
5687
  let t = Math.min(1, Math.max(0, e.children.reduce((e, t) => e + t.value, 0) / e.value));
5626
5688
  return Math.round(t * 4);
5627
5689
  };
5628
- function Xr({ root: e, rowHeight: t = 30, maxDepth: n = 6, title: r, className: i = "", ...a }) {
5690
+ function $r({ root: e, rowHeight: t = 30, maxDepth: n = 6, title: r, className: i = "", ...a }) {
5629
5691
  let o = [], s = (t, r, i, a) => {
5630
5692
  if (r >= n || a <= 0) return;
5631
5693
  o.push({
@@ -5641,14 +5703,14 @@ function Xr({ root: e, rowHeight: t = 30, maxDepth: n = 6, title: r, className:
5641
5703
  }
5642
5704
  };
5643
5705
  s(e, 0, 0, +(e.value > 0));
5644
- let c = Math.min(n, Jr(e));
5706
+ let c = Math.min(n, Zr(e));
5645
5707
  return /* @__PURE__ */ h("div", {
5646
- className: `${qr.icicle} ${i}`,
5708
+ className: `${Xr.icicle} ${i}`,
5647
5709
  role: "img",
5648
5710
  "aria-label": a["aria-label"],
5649
5711
  style: { height: c * t },
5650
5712
  children: o.map((e, n) => /* @__PURE__ */ h("div", {
5651
- className: qr.cell,
5713
+ className: Xr.cell,
5652
5714
  title: r?.(e.node) ?? `${e.node.label}: ${e.node.value.toLocaleString()}`,
5653
5715
  style: {
5654
5716
  left: `${e.x * 100}%`,
@@ -5657,16 +5719,16 @@ function Xr({ root: e, rowHeight: t = 30, maxDepth: n = 6, title: r, className:
5657
5719
  height: t - 2
5658
5720
  },
5659
5721
  children: /* @__PURE__ */ h("span", {
5660
- className: `${qr.block} ${qr[`tone${Yr(e.node)}`]}`,
5722
+ className: `${Xr.block} ${Xr[`tone${Qr(e.node)}`]}`,
5661
5723
  children: /* @__PURE__ */ h("span", {
5662
- className: qr.label,
5724
+ className: Xr.label,
5663
5725
  children: e.node.label
5664
5726
  })
5665
5727
  })
5666
5728
  }, n))
5667
5729
  });
5668
5730
  }
5669
- var Zr = {
5731
+ var ei = {
5670
5732
  root: "_root_biiv1_1",
5671
5733
  micro: "_micro_biiv1_7",
5672
5734
  default: "_default_biiv1_8",
@@ -5682,13 +5744,13 @@ var Zr = {
5682
5744
  panelTrigger: "_panelTrigger_biiv1_77",
5683
5745
  viewport: "_viewport_biiv1_60",
5684
5746
  content: "_content_biiv1_110"
5685
- }, Qr = {
5747
+ }, ti = {
5686
5748
  micro: 14,
5687
5749
  default: 14,
5688
5750
  large: 21
5689
- }, $r = e.createContext("default"), ei = typeof window > "u" ? e.useEffect : e.useLayoutEffect, ti = 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) => {
5751
+ }, ni = e.createContext("default"), ri = typeof window > "u" ? e.useEffect : e.useLayoutEffect, ii = 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) => {
5690
5752
  let d = e.useRef(null), f = e.useRef(!1);
5691
- ei(() => {
5753
+ ri(() => {
5692
5754
  let e = d.current;
5693
5755
  if (!e || r !== "trigger") return;
5694
5756
  let t = () => {
@@ -5717,8 +5779,8 @@ var Zr = {
5717
5779
  let p = {
5718
5780
  ...o,
5719
5781
  ...i === void 0 ? {} : { "--panel-width": typeof i == "number" ? `${i}px` : i }
5720
- }, m = r === "trigger" ? Zr.panelTrigger : r === "end" ? Zr.alignEnd : "";
5721
- return /* @__PURE__ */ h($r.Provider, {
5782
+ }, m = r === "trigger" ? ei.panelTrigger : r === "end" ? ei.alignEnd : "";
5783
+ return /* @__PURE__ */ h(ni.Provider, {
5722
5784
  value: t,
5723
5785
  children: /* @__PURE__ */ g(ee.Root, {
5724
5786
  ...l,
@@ -5727,67 +5789,67 @@ var Zr = {
5727
5789
  },
5728
5790
  "aria-label": c,
5729
5791
  style: p,
5730
- className: `${Zr.root} ${Zr[t]} ${n === "end" ? Zr.alignList : ""} ${m} ${a}`,
5792
+ className: `${ei.root} ${ei[t]} ${n === "end" ? ei.alignList : ""} ${m} ${a}`,
5731
5793
  children: [s, /* @__PURE__ */ h("div", {
5732
- className: Zr.viewportPosition,
5733
- children: /* @__PURE__ */ h(ee.Viewport, { className: Zr.viewport })
5794
+ className: ei.viewportPosition,
5795
+ children: /* @__PURE__ */ h(ee.Viewport, { className: ei.viewport })
5734
5796
  })]
5735
5797
  })
5736
5798
  });
5737
5799
  });
5738
- ti.displayName = "NavigationMenu";
5739
- var ni = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ h(ee.List, {
5800
+ ii.displayName = "NavigationMenu";
5801
+ var ai = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ h(ee.List, {
5740
5802
  ...t,
5741
5803
  ref: n,
5742
- className: `${Zr.list} ${e}`
5804
+ className: `${ei.list} ${e}`
5743
5805
  }));
5744
- ni.displayName = "NavigationMenuList";
5745
- var ri = ee.Item;
5746
- function ii({ icon: t }) {
5747
- let n = e.useContext($r);
5806
+ ai.displayName = "NavigationMenuList";
5807
+ var oi = ee.Item;
5808
+ function si({ icon: t }) {
5809
+ let n = e.useContext(ni);
5748
5810
  return t ? /* @__PURE__ */ h("span", {
5749
- className: Zr.icon,
5811
+ className: ei.icon,
5750
5812
  "aria-hidden": "true",
5751
5813
  children: e.cloneElement(t, {
5752
- size: Qr[n],
5814
+ size: ti[n],
5753
5815
  color: "currentColor"
5754
5816
  })
5755
5817
  }) : null;
5756
5818
  }
5757
- var ai = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
5758
- let o = e.useContext($r);
5819
+ var ci = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
5820
+ let o = e.useContext(ni);
5759
5821
  return /* @__PURE__ */ g(ee.Trigger, {
5760
5822
  ...i,
5761
5823
  ref: a,
5762
- className: `${Zr.control} ${t}`,
5824
+ className: `${ei.control} ${t}`,
5763
5825
  children: [
5764
- /* @__PURE__ */ h(ii, { icon: n }),
5826
+ /* @__PURE__ */ h(si, { icon: n }),
5765
5827
  r,
5766
5828
  /* @__PURE__ */ h("span", {
5767
- className: Zr.caret,
5829
+ className: ei.caret,
5768
5830
  "aria-hidden": "true",
5769
5831
  children: /* @__PURE__ */ h(x, {
5770
- size: Qr[o],
5832
+ size: ti[o],
5771
5833
  color: "currentColor"
5772
5834
  })
5773
5835
  })
5774
5836
  ]
5775
5837
  });
5776
5838
  });
5777
- ai.displayName = "NavigationMenuTrigger";
5778
- var oi = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ h(ee.Content, {
5839
+ ci.displayName = "NavigationMenuTrigger";
5840
+ var li = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ h(ee.Content, {
5779
5841
  ...t,
5780
5842
  ref: n,
5781
- className: `${Zr.content} ${e}`
5843
+ className: `${ei.content} ${e}`
5782
5844
  }));
5783
- oi.displayName = "NavigationMenuContent";
5784
- var si = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ h(ee.Link, {
5845
+ li.displayName = "NavigationMenuContent";
5846
+ var ui = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ h(ee.Link, {
5785
5847
  ...i,
5786
5848
  ref: a,
5787
- className: `${e === "navigation" ? Zr.control : Zr.link} ${n}`,
5788
- children: e === "navigation" && !i.asChild ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(ii, { icon: t }), r] }) : r
5849
+ className: `${e === "navigation" ? ei.control : ei.link} ${n}`,
5850
+ children: e === "navigation" && !i.asChild ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(si, { icon: t }), r] }) : r
5789
5851
  }));
5790
- si.displayName = "NavigationMenuLink";
5852
+ ui.displayName = "NavigationMenuLink";
5791
5853
  var $ = {
5792
5854
  panel: "_panel_1psyb_7",
5793
5855
  header: "_header_1psyb_15",
@@ -5837,12 +5899,12 @@ var $ = {
5837
5899
  reasoningIcon: "_reasoningIcon_1psyb_260",
5838
5900
  reasoningChevron: "_reasoningChevron_1psyb_262",
5839
5901
  reasoningBody: "_reasoningBody_1psyb_264"
5840
- }, ci = 80, li = /* @__PURE__ */ g(m, { children: [
5841
- /* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h(Yt, { children: "↵" }), " send"] }),
5842
- /* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h(Yt, { children: "⇧↵" }), " new line"] }),
5843
- /* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h(Yt, { children: "esc" }), " close"] })
5902
+ }, di = 80, fi = /* @__PURE__ */ g(m, { children: [
5903
+ /* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h($t, { children: "↵" }), " send"] }),
5904
+ /* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h($t, { children: "⇧↵" }), " new line"] }),
5905
+ /* @__PURE__ */ g("span", { children: [/* @__PURE__ */ h($t, { children: "esc" }), " close"] })
5844
5906
  ] });
5845
- function ui({ header: e, children: t, composer: n, hints: r = li, className: a = "", threadRef: s, "aria-label": c, jumpToLatest: l = !0, jumpLabel: u = "Latest" }) {
5907
+ function pi({ header: e, children: t, composer: n, hints: r = fi, className: a = "", threadRef: s, "aria-label": c, jumpToLatest: l = !0, jumpLabel: u = "Latest" }) {
5846
5908
  let [p, m] = f(null), [_, y] = f(!1), b = d(s);
5847
5909
  b.current = s;
5848
5910
  let x = i((e) => {
@@ -5852,7 +5914,7 @@ function ui({ header: e, children: t, composer: n, hints: r = li, className: a =
5852
5914
  }, []);
5853
5915
  return o(() => {
5854
5916
  if (!p || !l) return;
5855
- let e = () => y(p.scrollHeight - p.scrollTop - p.clientHeight > ci);
5917
+ let e = () => y(p.scrollHeight - p.scrollTop - p.clientHeight > di);
5856
5918
  p.addEventListener("scroll", e, { passive: !0 });
5857
5919
  let t = new MutationObserver(e);
5858
5920
  t.observe(p, {
@@ -5905,7 +5967,7 @@ function ui({ header: e, children: t, composer: n, hints: r = li, className: a =
5905
5967
  });
5906
5968
  }
5907
5969
  // src/components/Chat/Message.tsx
5908
- function di({ children: e, className: t = "" }) {
5970
+ function mi({ children: e, className: t = "" }) {
5909
5971
  return /* @__PURE__ */ h("div", {
5910
5972
  className: $.userRow,
5911
5973
  children: /* @__PURE__ */ h("div", {
@@ -5914,7 +5976,7 @@ function di({ children: e, className: t = "" }) {
5914
5976
  })
5915
5977
  });
5916
5978
  }
5917
- function fi({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
5979
+ function hi({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
5918
5980
  return /* @__PURE__ */ g("div", {
5919
5981
  className: `${$.assistant} ${r}`,
5920
5982
  children: [/* @__PURE__ */ g("div", {
@@ -5930,13 +5992,13 @@ function fi({ label: e = "Assistant", icon: t, children: n, className: r = "" })
5930
5992
  });
5931
5993
  }
5932
5994
  // src/components/Chat/Composer.tsx
5933
- var pi = 18, mi = 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) {
5995
+ var gi = 18, _i = 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) {
5934
5996
  let S = d(null);
5935
5997
  c(x, () => ({ focus: () => S.current?.focus() }), []), o(() => {
5936
5998
  let e = S.current;
5937
5999
  if (!e) return;
5938
6000
  e.style.height = "auto";
5939
- let t = pi * p + 12;
6001
+ let t = gi * p + 12;
5940
6002
  e.style.height = `${Math.min(e.scrollHeight, t)}px`;
5941
6003
  }, [e, p]);
5942
6004
  let C = m !== void 0 && m > 0 && e.length > m, w = !a && !l && !C && e.trim().length > 0, T = i(() => {
@@ -6003,7 +6065,7 @@ var pi = 18, mi = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
6003
6065
  });
6004
6066
  });
6005
6067
  // src/components/Chat/Citation.tsx
6006
- function hi({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
6068
+ function vi({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
6007
6069
  let a = `${$.ref} ${i}`;
6008
6070
  return t ? /* @__PURE__ */ h("a", {
6009
6071
  href: t,
@@ -6021,7 +6083,7 @@ function hi({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
6021
6083
  children: e
6022
6084
  });
6023
6085
  }
6024
- function gi({ items: e, label: t = "Sources", className: n = "" }) {
6086
+ function yi({ items: e, label: t = "Sources", className: n = "" }) {
6025
6087
  return e.length === 0 ? null : /* @__PURE__ */ g("div", {
6026
6088
  className: `${$.stack} ${n}`,
6027
6089
  children: [/* @__PURE__ */ h("div", {
@@ -6030,7 +6092,7 @@ function gi({ items: e, label: t = "Sources", className: n = "" }) {
6030
6092
  }), /* @__PURE__ */ h("div", {
6031
6093
  className: $.wrap,
6032
6094
  children: e.map((e) => {
6033
- let t = /* @__PURE__ */ g(Yn, {
6095
+ let t = /* @__PURE__ */ g(Qn, {
6034
6096
  icon: e.icon,
6035
6097
  children: [
6036
6098
  /* @__PURE__ */ h("span", {
@@ -6057,7 +6119,7 @@ function gi({ items: e, label: t = "Sources", className: n = "" }) {
6057
6119
  });
6058
6120
  }
6059
6121
  // src/components/Chat/StreamStatus.tsx
6060
- function _i({ children: e, spinner: t, className: n = "" }) {
6122
+ function bi({ children: e, spinner: t, className: n = "" }) {
6061
6123
  return /* @__PURE__ */ g("div", {
6062
6124
  className: `${$.status} ${n}`,
6063
6125
  role: "status",
@@ -6071,7 +6133,7 @@ function _i({ children: e, spinner: t, className: n = "" }) {
6071
6133
  });
6072
6134
  }
6073
6135
  // src/components/Chat/Suggestions.tsx
6074
- function vi({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
6136
+ function xi({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
6075
6137
  return /* @__PURE__ */ g("div", {
6076
6138
  className: `${$.suggestions} ${r}`,
6077
6139
  children: [/* @__PURE__ */ h("div", {
@@ -6089,7 +6151,7 @@ function vi({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
6089
6151
  });
6090
6152
  }
6091
6153
  // src/components/Chat/AnswerActions.tsx
6092
- function yi({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
6154
+ function Si({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
6093
6155
  return /* @__PURE__ */ g("div", {
6094
6156
  className: `${$.actions} ${i}`,
6095
6157
  children: [
@@ -6112,7 +6174,7 @@ function yi({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask
6112
6174
  });
6113
6175
  }
6114
6176
  // src/components/Chat/ToolStep.tsx
6115
- function bi({ children: t, state: n = "done", meta: r, icon: i, detail: a, defaultOpen: o = !1, className: c = "" }) {
6177
+ function Ci({ children: t, state: n = "done", meta: r, icon: i, detail: a, defaultOpen: o = !1, className: c = "" }) {
6116
6178
  let [l, u] = f(o), d = s(), p = n === "running" ? /* @__PURE__ */ h(ne, { size: 14 }) : n === "error" ? /* @__PURE__ */ h(F, {
6117
6179
  size: 14,
6118
6180
  color: "currentColor"
@@ -6164,7 +6226,7 @@ function bi({ children: t, state: n = "done", meta: r, icon: i, detail: a, defau
6164
6226
  })]
6165
6227
  });
6166
6228
  }
6167
- function xi({ children: e, summary: t, defaultOpen: n = !1, "aria-label": r = "Steps", className: i = "" }) {
6229
+ function wi({ children: e, summary: t, defaultOpen: n = !1, "aria-label": r = "Steps", className: i = "" }) {
6168
6230
  let [a, o] = f(n), c = s();
6169
6231
  return /* @__PURE__ */ h("div", {
6170
6232
  className: `${$.toolSteps} ${i}`,
@@ -6192,7 +6254,7 @@ function xi({ children: e, summary: t, defaultOpen: n = !1, "aria-label": r = "S
6192
6254
  });
6193
6255
  }
6194
6256
  // src/components/Chat/Reasoning.tsx
6195
- function Si({ children: e, streaming: t = !1, seconds: n, className: r = "" }) {
6257
+ function Ti({ children: e, streaming: t = !1, seconds: n, className: r = "" }) {
6196
6258
  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, {
6197
6259
  size: 14,
6198
6260
  color: "currentColor"
@@ -6226,20 +6288,82 @@ function Si({ children: e, streaming: t = !1, seconds: n, className: r = "" }) {
6226
6288
  })]
6227
6289
  });
6228
6290
  }
6229
- var Ci = {
6291
+ var Ei = {
6292
+ launcherRoot: "_launcherRoot_s5ap7_4",
6293
+ fixed: "_fixed_s5ap7_6",
6294
+ contained: "_contained_s5ap7_7",
6295
+ right: "_right_s5ap7_8",
6296
+ left: "_left_s5ap7_10",
6297
+ window: "_window_s5ap7_13",
6298
+ head: "_head_s5ap7_16",
6299
+ title: "_title_s5ap7_17",
6300
+ headActions: "_headActions_s5ap7_18",
6301
+ body: "_body_s5ap7_19",
6302
+ footer: "_footer_s5ap7_20"
6303
+ };
6304
+ // src/components/Chat/ChatLauncher.tsx
6305
+ function Di({ title: e, children: t, headerActions: n, footer: r, label: i = "Ask", closeLabel: a = "Close", icon: s, open: c, onOpenChange: l, defaultOpen: u = !1, corner: d = "bottom-right", contained: p = !1, "aria-label": m, className: v = "" }) {
6306
+ let [y, b] = f(u), x = c ?? y, S = (e) => {
6307
+ c === void 0 && b(e), l?.(e);
6308
+ };
6309
+ o(() => {
6310
+ if (!x) return;
6311
+ let e = (e) => {
6312
+ e.key === "Escape" && S(!1);
6313
+ };
6314
+ return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
6315
+ });
6316
+ let C = `${p ? Ei.contained : Ei.fixed} ${d === "bottom-left" ? Ei.left : Ei.right}`;
6317
+ return /* @__PURE__ */ g("div", {
6318
+ className: `${Ei.launcherRoot} ${C} ${v}`,
6319
+ children: [/* @__PURE__ */ g("section", {
6320
+ className: Ei.window,
6321
+ hidden: !x,
6322
+ role: "dialog",
6323
+ "aria-label": m ?? (typeof e == "string" ? e : void 0),
6324
+ children: [
6325
+ /* @__PURE__ */ g("div", {
6326
+ className: Ei.head,
6327
+ children: [/* @__PURE__ */ h("span", {
6328
+ className: Ei.title,
6329
+ children: e
6330
+ }), n && /* @__PURE__ */ h("span", {
6331
+ className: Ei.headActions,
6332
+ children: n
6333
+ })]
6334
+ }),
6335
+ /* @__PURE__ */ h("div", {
6336
+ className: Ei.body,
6337
+ children: t
6338
+ }),
6339
+ r && /* @__PURE__ */ h("div", {
6340
+ className: Ei.footer,
6341
+ children: r
6342
+ })
6343
+ ]
6344
+ }), /* @__PURE__ */ h(W, {
6345
+ variant: "primary",
6346
+ iconLeft: s ?? /* @__PURE__ */ h(_, {}),
6347
+ "aria-expanded": x,
6348
+ onClick: () => S(!x),
6349
+ children: x ? a : i
6350
+ })]
6351
+ });
6352
+ }
6353
+ var Oi = {
6230
6354
  truncate: "_truncate_za4sm_1",
6231
6355
  start: "_start_za4sm_13"
6232
6356
  };
6233
6357
  // src/components/Truncate/Truncate.tsx
6234
- function wi({ children: e, side: t = "end", title: n, className: r = "" }) {
6358
+ function ki({ children: e, side: t = "end", title: n, className: r = "" }) {
6235
6359
  let i = n ?? (typeof e == "string" ? e : void 0);
6236
6360
  return /* @__PURE__ */ h("span", {
6237
- className: `${Ci.truncate} ${t === "start" ? Ci.start : ""} ${r}`,
6361
+ className: `${Oi.truncate} ${t === "start" ? Oi.start : ""} ${r}`,
6238
6362
  title: i,
6239
6363
  children: t === "start" ? /* @__PURE__ */ h("bdi", { children: e }) : e
6240
6364
  });
6241
6365
  }
6242
- var Ti = {
6366
+ var Ai = {
6243
6367
  disclosure: "_disclosure_94bgy_1",
6244
6368
  trigger: "_trigger_94bgy_7",
6245
6369
  summary: "_summary_94bgy_31",
@@ -6247,24 +6371,24 @@ var Ti = {
6247
6371
  content: "_content_94bgy_43"
6248
6372
  };
6249
6373
  // src/components/Disclosure/Disclosure.tsx
6250
- function Ei({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
6374
+ function ji({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
6251
6375
  let [s, c] = e.useState(i), l = r ?? s, u = e.useId();
6252
6376
  return /* @__PURE__ */ g("div", {
6253
- className: `${Ti.disclosure} ${o}`,
6377
+ className: `${Ai.disclosure} ${o}`,
6254
6378
  "data-state": l ? "open" : "closed",
6255
6379
  children: [/* @__PURE__ */ g("button", {
6256
6380
  type: "button",
6257
- className: Ti.trigger,
6381
+ className: Ai.trigger,
6258
6382
  "aria-expanded": l,
6259
6383
  "aria-controls": l ? u : void 0,
6260
6384
  onClick: () => {
6261
6385
  r === void 0 && c(!l), a?.(!l);
6262
6386
  },
6263
6387
  children: [/* @__PURE__ */ h("span", {
6264
- className: Ti.summary,
6388
+ className: Ai.summary,
6265
6389
  children: t
6266
6390
  }), /* @__PURE__ */ h("span", {
6267
- className: Ti.chevron,
6391
+ className: Ai.chevron,
6268
6392
  "aria-hidden": "true",
6269
6393
  children: h(l ? x : C, {
6270
6394
  size: 14,
@@ -6273,18 +6397,18 @@ function Ei({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChang
6273
6397
  })]
6274
6398
  }), l && /* @__PURE__ */ h("div", {
6275
6399
  id: u,
6276
- className: Ti.content,
6400
+ className: Ai.content,
6277
6401
  children: n
6278
6402
  })]
6279
6403
  });
6280
6404
  }
6281
- var Di = {
6405
+ var Mi = {
6282
6406
  field: "_field_5juos_1",
6283
6407
  code: "_code_5juos_16",
6284
6408
  status: "_status_5juos_31"
6285
6409
  };
6286
6410
  // src/components/CodeCopy/CodeCopy.tsx
6287
- async function Oi(e) {
6411
+ async function Ni(e) {
6288
6412
  if (navigator.clipboard && window.isSecureContext) try {
6289
6413
  return await navigator.clipboard.writeText(e), !0;
6290
6414
  } catch {}
@@ -6298,13 +6422,13 @@ async function Oi(e) {
6298
6422
  t.remove();
6299
6423
  }
6300
6424
  }
6301
- function ki({ code: e, className: t, onCopy: n }) {
6425
+ function Pi({ code: e, className: t, onCopy: n }) {
6302
6426
  let [r, i] = f(!1), a = d(void 0);
6303
6427
  return o(() => () => clearTimeout(a.current), []), /* @__PURE__ */ g("div", {
6304
- className: [Di.field, t].filter(Boolean).join(" "),
6428
+ className: [Mi.field, t].filter(Boolean).join(" "),
6305
6429
  children: [
6306
6430
  /* @__PURE__ */ h("code", {
6307
- className: Di.code,
6431
+ className: Mi.code,
6308
6432
  children: e
6309
6433
  }),
6310
6434
  /* @__PURE__ */ h(W, {
@@ -6312,17 +6436,17 @@ function ki({ code: e, className: t, onCopy: n }) {
6312
6436
  variant: "ghost",
6313
6437
  iconLeft: h(r ? b : w, {}),
6314
6438
  onClick: async () => {
6315
- await Oi(e) && (i(!0), n?.(), clearTimeout(a.current), a.current = setTimeout(() => i(!1), 2e3));
6439
+ await Ni(e) && (i(!0), n?.(), clearTimeout(a.current), a.current = setTimeout(() => i(!1), 2e3));
6316
6440
  },
6317
6441
  "aria-label": r ? "Copied" : "Copy",
6318
6442
  title: r ? "Copied" : "Copy"
6319
6443
  }),
6320
6444
  /* @__PURE__ */ h("span", {
6321
- className: Di.status,
6445
+ className: Mi.status,
6322
6446
  role: "status",
6323
6447
  children: r ? "Copied" : ""
6324
6448
  })
6325
6449
  ]
6326
6450
  });
6327
6451
  }
6328
- export { $n as Alert, tr as AlertDescription, er as AlertTitle, yi as AnswerActions, fi as AssistantMessage, xt as BarMeter, De as BarSlider, le as Base, ut as Breadcrumbs, W as Button, _r as Chart, ui as ChatPanel, se as Checkbox, Yn as Chip, gi as CitationList, hi as CitationRef, ki as CodeCopy, xn as Combobox, Zt as CommandPalette, mi as Composer, Mr as DatePicker, Ei as Disclosure, Cn as EmptyState, de as FilterPanelBase, qt as GroupedBars, At as Heatmap, Le as HistogramRange, Xr as Icicle, ge as InputField, Yt as Kbd, Tr as Modal, ti as NavigationMenu, oi as NavigationMenuContent, ri as NavigationMenuItem, si as NavigationMenuLink, ni as NavigationMenuList, ai as NavigationMenuTrigger, He as Popover, Ue as PopoverDivider, ie as PortalContainerProvider, ft as ProgressBar, Vt as RadarChart, Ft as RadialChart, ve as RadioButton, Si as Reasoning, An as Resizable, Lr as STAT_ICON_SIZE, rr as SaveBar, Wr as ScoreMeter, Ae as ScrubSlider, me as SearchField, st as SegmentedControl, ze as Select, Tn as Sheet, Vr as ShimmerText, vn as Sidebar, Fr as Skeleton, Se as Slider, Ne as SliderField, xr as Sparkline, ne as Spinner, Rr as Stat, zr as StatGroup, Kr as StepProgress, _i as StreamStatus, vi as Suggestions, Xe as Table, $e as TableCell, Ze as TableHeader, tt as TableIcon, Qe as TableRow, et as TableValue, at as Tabs, $t as TagsInput, Cr as Textarea, un as Toaster, be as ToggleSwitch, bi as ToolStep, xi as ToolSteps, fn as Tooltip, Gn as TreeCanvas, wi as Truncate, di as UserMessage, Et as Waffle, Tt as allocateCells, Ie as barsOf, Nt as calendarCells, li as defaultChatHints, kt as levelOf, U as spinnerNames, sn as toast, ae as usePortalContainer };
6452
+ export { nr as Alert, ir as AlertDescription, rr as AlertTitle, Si as AnswerActions, hi as AssistantMessage, wt as BarMeter, De as BarSlider, le as Base, ut as Breadcrumbs, W as Button, br as Chart, Di as ChatLauncher, pi as ChatPanel, se as Checkbox, Qn as Chip, yi as CitationList, vi as CitationRef, Pi as CodeCopy, wn as Combobox, tn as CommandPalette, _i as Composer, Fr as DatePicker, ji as Disclosure, En as EmptyState, de as FilterPanelBase, Zt as GroupedBars, Nt as Heatmap, Le as HistogramRange, $r as Icicle, ge as InputField, $t as Kbd, Or as Modal, ii as NavigationMenu, li as NavigationMenuContent, oi as NavigationMenuItem, ui as NavigationMenuLink, ai as NavigationMenuList, ci as NavigationMenuTrigger, pt as Pagination, He as Popover, Ue as PopoverDivider, ie as PortalContainerProvider, ht as ProgressBar, Gt as RadarChart, Rt as RadialChart, ve as RadioButton, Ti as Reasoning, Nn as Resizable, Br as STAT_ICON_SIZE, or as SaveBar, qr as ScoreMeter, Ae as ScrubSlider, me as SearchField, st as SegmentedControl, ze as Select, On as Sheet, Wr as ShimmerText, Sn as Sidebar, Rr as Skeleton, Se as Slider, Ne as SliderField, wr as Sparkline, ne as Spinner, Vr as Stat, Hr as StatGroup, Yr as StepProgress, bi as StreamStatus, xi as Suggestions, Xe as Table, $e as TableCell, Ze as TableHeader, tt as TableIcon, Qe as TableRow, et as TableValue, at as Tabs, rn as TagsInput, Er as Textarea, mn as Toaster, be as ToggleSwitch, Ci as ToolStep, wi as ToolSteps, gn as Tooltip, Jn as TreeCanvas, ki as Truncate, mi as UserMessage, kt as Waffle, Ot as allocateCells, Ie as barsOf, It as calendarCells, fi as defaultChatHints, Mt as levelOf, ft as paginationItems, U as spinnerNames, dn as toast, ae as usePortalContainer };