teodor-new-chat-ui 1.2.2 → 1.2.3

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.esm.js CHANGED
@@ -8,7 +8,7 @@ import { clsx as kn } from "clsx";
8
8
  import { twMerge as $n } from "tailwind-merge";
9
9
  import * as sr from "react-dom";
10
10
  const ir = 1e4, It = 200, In = /^[a-zA-Z0-9\-_]{1,50}$/;
11
- function Ui(e) {
11
+ function Ji(e) {
12
12
  return typeof e != "string" ? String(e) : e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;").replace(/\//g, "&#x2F;").trim();
13
13
  }
14
14
  function me(e) {
@@ -37,7 +37,7 @@ function zn(e, t = ir) {
37
37
  throw new Error(`Message exceeds maximum length of ${t} characters`);
38
38
  return e;
39
39
  }
40
- function Ji(e) {
40
+ function qi(e) {
41
41
  if (!e || typeof e != "string")
42
42
  throw new Error("Invalid thread ID: must be a non-empty string");
43
43
  if (!In.test(e))
@@ -48,14 +48,14 @@ function Ie(e) {
48
48
  let t;
49
49
  return typeof e == "string" ? t = e : typeof e == "object" && e !== null ? t = JSON.stringify(e) : t = String(e), zn(t), me(t);
50
50
  }
51
- function qi(e) {
51
+ function Gi(e) {
52
52
  if (!e || typeof e != "string")
53
53
  throw new Error("Invalid title: must be a non-empty string");
54
54
  if (e.length > It)
55
55
  throw new Error(`Title exceeds maximum length of ${It} characters`);
56
56
  return me(e);
57
57
  }
58
- function Gi(e) {
58
+ function Ki(e) {
59
59
  try {
60
60
  const t = JSON.parse(e);
61
61
  if (typeof t == "object" && t !== null) {
@@ -69,14 +69,17 @@ function Gi(e) {
69
69
  throw new Error(`Invalid JSON: ${t instanceof Error ? t.message : "Unknown error"}`);
70
70
  }
71
71
  }
72
- function Ki(e, t) {
72
+ function Zi(e, t) {
73
73
  return (...r) => (typeof r[0] == "string" && (r[0] = t(r[0])), e(...r));
74
74
  }
75
+ function Hn(e) {
76
+ return !e || typeof e != "string" ? "" : e.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&#x27;/g, "'").replace(/&#x2F;/g, "/");
77
+ }
75
78
  function zt(e, t = {}) {
76
79
  if (!e || typeof e != "string")
77
80
  return "";
78
- const { escapeHtml: r = !0, breaks: n = !0 } = t;
79
- let o = e;
81
+ const { escapeHtml: r = !1, breaks: n = !0 } = t;
82
+ let o = Hn(e);
80
83
  return r && (o = o.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;")), n && (o = o.replace(/\n/g, "<br>")), o = o.replace(/^### (.*$)/gm, "<h3>$1</h3>"), o = o.replace(/^## (.*$)/gm, "<h2>$1</h2>"), o = o.replace(/^# (.*$)/gm, "<h1>$1</h1>"), o = o.replace(/\*\*\*(.*?)\*\*\*/g, "<strong><em>$1</em></strong>"), o = o.replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>"), o = o.replace(/\*(.*?)\*/g, "<em>$1</em>"), o = o.replace(/```([\s\S]*?)```/g, "<pre><code>$1</code></pre>"), o = o.replace(/`(.*?)`/g, "<code>$1</code>"), o = o.replace(/^[\s]*\* (.*$)/gm, "<li>$1</li>"), o = o.replace(/^[\s]*- (.*$)/gm, "<li>$1</li>"), o = o.replace(/^[\s]*\+ (.*$)/gm, "<li>$1</li>"), o = o.replace(/(<li>[\s\S]*?<\/li>)/g, (s) => s.includes("<ul>") ? s : `<ul>${s}</ul>`), o = o.replace(/^[\s]*\d+\. (.*$)/gm, "<li>$1</li>"), o = o.replace(/(<li>[\s\S]*?<\/li>)/g, (s, i, a, d) => {
81
84
  const l = d.substring(0, a);
82
85
  return /\d+\.\s/.test(l.split(`
@@ -105,10 +108,10 @@ function Ht(e) {
105
108
  // Blockquotes
106
109
  ].some((r) => r.test(e));
107
110
  }
108
- const ar = pn(null), Hn = "http://localhost:8000/api/chat";
111
+ const ar = pn(null), Fn = "http://localhost:8000/api/chat";
109
112
  function ct({
110
113
  children: e,
111
- apiBaseUrl: t = Hn,
114
+ apiBaseUrl: t = Fn,
112
115
  enableUrlSync: r = !1,
113
116
  getAuthHeaders: n,
114
117
  authToken: o
@@ -483,7 +486,7 @@ function ye() {
483
486
  function Y(...e) {
484
487
  return $n(kn(e));
485
488
  }
486
- const Fn = or(
489
+ const Wn = or(
487
490
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
488
491
  {
489
492
  variants: {
@@ -511,7 +514,7 @@ const Fn = or(
511
514
  ({ className: e, variant: t, size: r, asChild: n = !1, ...o }, s) => /* @__PURE__ */ u(
512
515
  n ? Dn : "button",
513
516
  {
514
- className: Y(Fn({ variant: t, size: r, className: e })),
517
+ className: Y(Wn({ variant: t, size: r, className: e })),
515
518
  ref: s,
516
519
  ...o
517
520
  }
@@ -966,7 +969,7 @@ function Re({
966
969
  /* @__PURE__ */ u("div", { className: "text-sm", children: "Select a thread or create a new one to start chatting" })
967
970
  ] }) });
968
971
  }
969
- var Wn = [
972
+ var Bn = [
970
973
  "a",
971
974
  "button",
972
975
  "div",
@@ -984,14 +987,14 @@ var Wn = [
984
987
  "span",
985
988
  "svg",
986
989
  "ul"
987
- ], X = Wn.reduce((e, t) => {
990
+ ], X = Bn.reduce((e, t) => {
988
991
  const r = _n(`Primitive.${t}`), n = f.forwardRef((o, s) => {
989
992
  const { asChild: i, ...a } = o, d = i ? r : t;
990
993
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(d, { ...a, ref: s });
991
994
  });
992
995
  return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
993
996
  }, {});
994
- function Bn(e, t) {
997
+ function jn(e, t) {
995
998
  e && sr.flushSync(() => e.dispatchEvent(t));
996
999
  }
997
1000
  function Ft(e, t) {
@@ -999,7 +1002,7 @@ function Ft(e, t) {
999
1002
  return e(t);
1000
1003
  e != null && (e.current = t);
1001
1004
  }
1002
- function jn(...e) {
1005
+ function Vn(...e) {
1003
1006
  return (t) => {
1004
1007
  let r = !1;
1005
1008
  const n = e.map((o) => {
@@ -1016,20 +1019,20 @@ function jn(...e) {
1016
1019
  };
1017
1020
  }
1018
1021
  function G(...e) {
1019
- return f.useCallback(jn(...e), e);
1022
+ return f.useCallback(Vn(...e), e);
1020
1023
  }
1021
1024
  var ue = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
1022
1025
  };
1023
- function Vn(e, t) {
1026
+ function Yn(e, t) {
1024
1027
  return f.useReducer((r, n) => t[r][n] ?? r, e);
1025
1028
  }
1026
1029
  var xe = (e) => {
1027
- const { present: t, children: r } = e, n = Yn(t), o = typeof r == "function" ? r({ present: n.isPresent }) : f.Children.only(r), s = G(n.ref, Xn(o));
1030
+ const { present: t, children: r } = e, n = Xn(t), o = typeof r == "function" ? r({ present: n.isPresent }) : f.Children.only(r), s = G(n.ref, Un(o));
1028
1031
  return typeof r == "function" || n.isPresent ? f.cloneElement(o, { ref: s }) : null;
1029
1032
  };
1030
1033
  xe.displayName = "Presence";
1031
- function Yn(e) {
1032
- const [t, r] = f.useState(), n = f.useRef(null), o = f.useRef(e), s = f.useRef("none"), i = e ? "mounted" : "unmounted", [a, d] = Vn(i, {
1034
+ function Xn(e) {
1035
+ const [t, r] = f.useState(), n = f.useRef(null), o = f.useRef(e), s = f.useRef("none"), i = e ? "mounted" : "unmounted", [a, d] = Yn(i, {
1033
1036
  mounted: {
1034
1037
  UNMOUNT: "unmounted",
1035
1038
  ANIMATION_OUT: "unmountSuspended"
@@ -1080,7 +1083,7 @@ function Yn(e) {
1080
1083
  function _e(e) {
1081
1084
  return (e == null ? void 0 : e.animationName) || "none";
1082
1085
  }
1083
- function Xn(e) {
1086
+ function Un(e) {
1084
1087
  var n, o;
1085
1088
  let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
1086
1089
  return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
@@ -1115,9 +1118,9 @@ function ut(e, t = []) {
1115
1118
  );
1116
1119
  };
1117
1120
  };
1118
- return o.scopeName = e, [n, Un(o, ...t)];
1121
+ return o.scopeName = e, [n, Jn(o, ...t)];
1119
1122
  }
1120
- function Un(...e) {
1123
+ function Jn(...e) {
1121
1124
  const t = e[0];
1122
1125
  if (e.length === 1) return t;
1123
1126
  const r = () => {
@@ -1144,12 +1147,12 @@ function Q(e) {
1144
1147
  return (n = t.current) == null ? void 0 : n.call(t, ...r);
1145
1148
  }, []);
1146
1149
  }
1147
- var Jn = f.createContext(void 0);
1148
- function qn(e) {
1149
- const t = f.useContext(Jn);
1150
+ var qn = f.createContext(void 0);
1151
+ function Gn(e) {
1152
+ const t = f.useContext(qn);
1150
1153
  return e || t || "ltr";
1151
1154
  }
1152
- function Gn(e, [t, r]) {
1155
+ function Kn(e, [t, r]) {
1153
1156
  return Math.min(r, Math.max(t, e));
1154
1157
  }
1155
1158
  function j(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
@@ -1158,10 +1161,10 @@ function j(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
1158
1161
  return t == null ? void 0 : t(o);
1159
1162
  };
1160
1163
  }
1161
- function Kn(e, t) {
1164
+ function Zn(e, t) {
1162
1165
  return f.useReducer((r, n) => t[r][n] ?? r, e);
1163
1166
  }
1164
- var ft = "ScrollArea", [cr, Zi] = ut(ft), [Zn, Z] = cr(ft), dr = f.forwardRef(
1167
+ var ft = "ScrollArea", [cr, Qi] = ut(ft), [Qn, Z] = cr(ft), dr = f.forwardRef(
1165
1168
  (e, t) => {
1166
1169
  const {
1167
1170
  __scopeScrollArea: r,
@@ -1169,9 +1172,9 @@ var ft = "ScrollArea", [cr, Zi] = ut(ft), [Zn, Z] = cr(ft), dr = f.forwardRef(
1169
1172
  dir: o,
1170
1173
  scrollHideDelay: s = 600,
1171
1174
  ...i
1172
- } = e, [a, d] = f.useState(null), [l, c] = f.useState(null), [h, m] = f.useState(null), [p, g] = f.useState(null), [y, C] = f.useState(null), [S, E] = f.useState(0), [R, v] = f.useState(0), [b, A] = f.useState(!1), [N, M] = f.useState(!1), k = G(t, (z) => d(z)), $ = qn(o);
1175
+ } = e, [a, d] = f.useState(null), [l, c] = f.useState(null), [h, m] = f.useState(null), [p, g] = f.useState(null), [y, C] = f.useState(null), [S, E] = f.useState(0), [R, v] = f.useState(0), [b, A] = f.useState(!1), [N, M] = f.useState(!1), k = G(t, (z) => d(z)), $ = Gn(o);
1173
1176
  return /* @__PURE__ */ u(
1174
- Zn,
1177
+ Qn,
1175
1178
  {
1176
1179
  scope: r,
1177
1180
  type: n,
@@ -1259,11 +1262,11 @@ var ae = "ScrollAreaScrollbar", ht = f.forwardRef(
1259
1262
  const { forceMount: r, ...n } = e, o = Z(ae, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: i } = o, a = e.orientation === "horizontal";
1260
1263
  return f.useEffect(() => (a ? s(!0) : i(!0), () => {
1261
1264
  a ? s(!1) : i(!1);
1262
- }), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ u(Qn, { ...n, ref: t, forceMount: r }) : o.type === "scroll" ? /* @__PURE__ */ u(eo, { ...n, ref: t, forceMount: r }) : o.type === "auto" ? /* @__PURE__ */ u(hr, { ...n, ref: t, forceMount: r }) : o.type === "always" ? /* @__PURE__ */ u(mt, { ...n, ref: t }) : null;
1265
+ }), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ u(eo, { ...n, ref: t, forceMount: r }) : o.type === "scroll" ? /* @__PURE__ */ u(to, { ...n, ref: t, forceMount: r }) : o.type === "auto" ? /* @__PURE__ */ u(hr, { ...n, ref: t, forceMount: r }) : o.type === "always" ? /* @__PURE__ */ u(mt, { ...n, ref: t }) : null;
1263
1266
  }
1264
1267
  );
1265
1268
  ht.displayName = ae;
1266
- var Qn = f.forwardRef((e, t) => {
1269
+ var eo = f.forwardRef((e, t) => {
1267
1270
  const { forceMount: r, ...n } = e, o = Z(ae, e.__scopeScrollArea), [s, i] = f.useState(!1);
1268
1271
  return f.useEffect(() => {
1269
1272
  const a = o.scrollArea;
@@ -1286,8 +1289,8 @@ var Qn = f.forwardRef((e, t) => {
1286
1289
  ref: t
1287
1290
  }
1288
1291
  ) });
1289
- }), eo = f.forwardRef((e, t) => {
1290
- const { forceMount: r, ...n } = e, o = Z(ae, e.__scopeScrollArea), s = e.orientation === "horizontal", i = Ue(() => d("SCROLL_END"), 100), [a, d] = Kn("hidden", {
1292
+ }), to = f.forwardRef((e, t) => {
1293
+ const { forceMount: r, ...n } = e, o = Z(ae, e.__scopeScrollArea), s = e.orientation === "horizontal", i = Ue(() => d("SCROLL_END"), 100), [a, d] = Zn("hidden", {
1291
1294
  hidden: {
1292
1295
  SCROLL: "scrolling"
1293
1296
  },
@@ -1360,10 +1363,10 @@ var Qn = f.forwardRef((e, t) => {
1360
1363
  onThumbPointerDown: (m) => i.current = m
1361
1364
  };
1362
1365
  function h(m, p) {
1363
- return io(m, i.current, a, p);
1366
+ return ao(m, i.current, a, p);
1364
1367
  }
1365
1368
  return r === "horizontal" ? /* @__PURE__ */ u(
1366
- to,
1369
+ ro,
1367
1370
  {
1368
1371
  ...c,
1369
1372
  ref: t,
@@ -1381,7 +1384,7 @@ var Qn = f.forwardRef((e, t) => {
1381
1384
  }
1382
1385
  }
1383
1386
  ) : r === "vertical" ? /* @__PURE__ */ u(
1384
- ro,
1387
+ no,
1385
1388
  {
1386
1389
  ...c,
1387
1390
  ref: t,
@@ -1399,7 +1402,7 @@ var Qn = f.forwardRef((e, t) => {
1399
1402
  }
1400
1403
  }
1401
1404
  ) : null;
1402
- }), to = f.forwardRef((e, t) => {
1405
+ }), ro = f.forwardRef((e, t) => {
1403
1406
  const { sizes: r, onSizesChange: n, ...o } = e, s = Z(ae, e.__scopeScrollArea), [i, a] = f.useState(), d = f.useRef(null), l = G(t, d, s.onScrollbarXChange);
1404
1407
  return f.useEffect(() => {
1405
1408
  d.current && a(getComputedStyle(d.current));
@@ -1438,7 +1441,7 @@ var Qn = f.forwardRef((e, t) => {
1438
1441
  }
1439
1442
  }
1440
1443
  );
1441
- }), ro = f.forwardRef((e, t) => {
1444
+ }), no = f.forwardRef((e, t) => {
1442
1445
  const { sizes: r, onSizesChange: n, ...o } = e, s = Z(ae, e.__scopeScrollArea), [i, a] = f.useState(), d = f.useRef(null), l = G(t, d, s.onScrollbarYChange);
1443
1446
  return f.useEffect(() => {
1444
1447
  d.current && a(getComputedStyle(d.current));
@@ -1478,7 +1481,7 @@ var Qn = f.forwardRef((e, t) => {
1478
1481
  }
1479
1482
  }
1480
1483
  );
1481
- }), [no, mr] = cr(ae), pr = f.forwardRef((e, t) => {
1484
+ }), [oo, mr] = cr(ae), pr = f.forwardRef((e, t) => {
1482
1485
  const {
1483
1486
  __scopeScrollArea: r,
1484
1487
  sizes: n,
@@ -1505,7 +1508,7 @@ var Qn = f.forwardRef((e, t) => {
1505
1508
  };
1506
1509
  return document.addEventListener("wheel", k, { passive: !1 }), () => document.removeEventListener("wheel", k, { passive: !1 });
1507
1510
  }, [R, g, v, b]), f.useEffect(A, [n, A]), ve(g, N), ve(p.content, N), /* @__PURE__ */ u(
1508
- no,
1511
+ oo,
1509
1512
  {
1510
1513
  scope: r,
1511
1514
  scrollbar: g,
@@ -1535,9 +1538,9 @@ var Qn = f.forwardRef((e, t) => {
1535
1538
  }), ze = "ScrollAreaThumb", gr = f.forwardRef(
1536
1539
  (e, t) => {
1537
1540
  const { forceMount: r, ...n } = e, o = mr(ze, e.__scopeScrollArea);
1538
- return /* @__PURE__ */ u(xe, { present: r || o.hasThumb, children: /* @__PURE__ */ u(oo, { ref: t, ...n }) });
1541
+ return /* @__PURE__ */ u(xe, { present: r || o.hasThumb, children: /* @__PURE__ */ u(so, { ref: t, ...n }) });
1539
1542
  }
1540
- ), oo = f.forwardRef(
1543
+ ), so = f.forwardRef(
1541
1544
  (e, t) => {
1542
1545
  const { __scopeScrollArea: r, style: n, ...o } = e, s = Z(ze, r), i = mr(ze, r), { onThumbPositionChange: a } = i, d = G(
1543
1546
  t,
@@ -1550,7 +1553,7 @@ var Qn = f.forwardRef((e, t) => {
1550
1553
  if (h) {
1551
1554
  const m = () => {
1552
1555
  if (c(), !l.current) {
1553
- const p = ao(h, a);
1556
+ const p = lo(h, a);
1554
1557
  l.current = p, a();
1555
1558
  }
1556
1559
  };
@@ -1580,11 +1583,11 @@ gr.displayName = ze;
1580
1583
  var pt = "ScrollAreaCorner", vr = f.forwardRef(
1581
1584
  (e, t) => {
1582
1585
  const r = Z(pt, e.__scopeScrollArea), n = !!(r.scrollbarX && r.scrollbarY);
1583
- return r.type !== "scroll" && n ? /* @__PURE__ */ u(so, { ...e, ref: t }) : null;
1586
+ return r.type !== "scroll" && n ? /* @__PURE__ */ u(io, { ...e, ref: t }) : null;
1584
1587
  }
1585
1588
  );
1586
1589
  vr.displayName = pt;
1587
- var so = f.forwardRef((e, t) => {
1590
+ var io = f.forwardRef((e, t) => {
1588
1591
  const { __scopeScrollArea: r, ...n } = e, o = Z(pt, r), [s, i] = f.useState(0), [a, d] = f.useState(0), l = !!(s && a);
1589
1592
  return ve(o.scrollbarX, () => {
1590
1593
  var h;
@@ -1622,12 +1625,12 @@ function Xe(e) {
1622
1625
  const t = wr(e.viewport, e.content), r = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, n = (e.scrollbar.size - r) * t;
1623
1626
  return Math.max(n, 18);
1624
1627
  }
1625
- function io(e, t, r, n = "ltr") {
1628
+ function ao(e, t, r, n = "ltr") {
1626
1629
  const o = Xe(r), s = o / 2, i = t || s, a = o - i, d = r.scrollbar.paddingStart + i, l = r.scrollbar.size - r.scrollbar.paddingEnd - a, c = r.content - r.viewport, h = n === "ltr" ? [0, c] : [c * -1, 0];
1627
1630
  return br([d, l], h)(e);
1628
1631
  }
1629
1632
  function Wt(e, t, r = "ltr") {
1630
- const n = Xe(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, i = t.content - t.viewport, a = s - n, d = r === "ltr" ? [0, i] : [i * -1, 0], l = Gn(e, d);
1633
+ const n = Xe(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, i = t.content - t.viewport, a = s - n, d = r === "ltr" ? [0, i] : [i * -1, 0], l = Kn(e, d);
1631
1634
  return br([0, i], [0, a])(l);
1632
1635
  }
1633
1636
  function br(e, t) {
@@ -1640,7 +1643,7 @@ function br(e, t) {
1640
1643
  function yr(e, t) {
1641
1644
  return e > 0 && e < t;
1642
1645
  }
1643
- var ao = (e, t = () => {
1646
+ var lo = (e, t = () => {
1644
1647
  }) => {
1645
1648
  let r = { left: e.scrollLeft, top: e.scrollTop }, n = 0;
1646
1649
  return function o() {
@@ -1668,7 +1671,7 @@ function ve(e, t) {
1668
1671
  }
1669
1672
  }, [e, r]);
1670
1673
  }
1671
- var xr = dr, lo = fr, co = vr;
1674
+ var xr = dr, co = fr, uo = vr;
1672
1675
  const Cr = f.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ O(
1673
1676
  xr,
1674
1677
  {
@@ -1676,9 +1679,9 @@ const Cr = f.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
1676
1679
  className: Y("relative overflow-hidden", e),
1677
1680
  ...r,
1678
1681
  children: [
1679
- /* @__PURE__ */ u(lo, { className: "h-full w-full rounded-[inherit]", children: t }),
1682
+ /* @__PURE__ */ u(co, { className: "h-full w-full rounded-[inherit]", children: t }),
1680
1683
  /* @__PURE__ */ u(Sr, {}),
1681
- /* @__PURE__ */ u(co, {})
1684
+ /* @__PURE__ */ u(uo, {})
1682
1685
  ]
1683
1686
  }
1684
1687
  ));
@@ -1820,25 +1823,25 @@ function Ae({
1820
1823
  ] }) })
1821
1824
  ] });
1822
1825
  }
1823
- function uo({
1826
+ function fo({
1824
1827
  apiBaseUrl: e,
1825
1828
  enableUrlSync: t = !0,
1826
1829
  layout: r = "sidebar",
1827
1830
  className: n = ""
1828
1831
  }) {
1829
1832
  return /* @__PURE__ */ u(ct, { apiBaseUrl: e, enableUrlSync: t, children: /* @__PURE__ */ O("div", { className: `h-full ${n}`, children: [
1830
- r === "sidebar" && /* @__PURE__ */ u(fo, {}),
1831
- r === "tabs" && /* @__PURE__ */ u(ho, {}),
1832
- r === "split" && /* @__PURE__ */ u(mo, {})
1833
+ r === "sidebar" && /* @__PURE__ */ u(ho, {}),
1834
+ r === "tabs" && /* @__PURE__ */ u(mo, {}),
1835
+ r === "split" && /* @__PURE__ */ u(po, {})
1833
1836
  ] }) });
1834
1837
  }
1835
- function fo() {
1838
+ function ho() {
1836
1839
  return /* @__PURE__ */ O("div", { className: "flex h-full", children: [
1837
1840
  /* @__PURE__ */ u("div", { className: "w-80 border-r bg-gray-50", children: /* @__PURE__ */ u(Ae, {}) }),
1838
1841
  /* @__PURE__ */ u("div", { className: "flex-1", children: /* @__PURE__ */ u(Re, {}) })
1839
1842
  ] });
1840
1843
  }
1841
- function ho() {
1844
+ function mo() {
1842
1845
  const [e, t] = mn.useState("chat");
1843
1846
  return /* @__PURE__ */ O("div", { className: "flex flex-col h-full", children: [
1844
1847
  /* @__PURE__ */ u("div", { className: "border-b", children: /* @__PURE__ */ O("div", { className: "flex", children: [
@@ -1865,13 +1868,13 @@ function ho() {
1865
1868
  ] })
1866
1869
  ] });
1867
1870
  }
1868
- function mo() {
1871
+ function po() {
1869
1872
  return /* @__PURE__ */ O("div", { className: "flex flex-col h-full", children: [
1870
1873
  /* @__PURE__ */ u("div", { className: "h-1/3 border-b", children: /* @__PURE__ */ u(Ae, {}) }),
1871
1874
  /* @__PURE__ */ u("div", { className: "flex-1", children: /* @__PURE__ */ u(Re, {}) })
1872
1875
  ] });
1873
1876
  }
1874
- function po({
1877
+ function go({
1875
1878
  placeholder: e,
1876
1879
  showThreadHistory: t = !0
1877
1880
  }) {
@@ -1922,7 +1925,7 @@ function po({
1922
1925
  ) })
1923
1926
  ] });
1924
1927
  }
1925
- const go = {
1928
+ const vo = {
1926
1929
  sm: "w-80 h-80",
1927
1930
  md: "w-96 h-96",
1928
1931
  lg: "w-[28rem] h-[32rem]"
@@ -1932,7 +1935,7 @@ const go = {
1932
1935
  "top-right": "top-6 right-6",
1933
1936
  "top-left": "top-6 left-6"
1934
1937
  };
1935
- function Qi({
1938
+ function ea({
1936
1939
  apiBaseUrl: e = "http://localhost:8000/api/chat",
1937
1940
  title: t = "AI Assistant",
1938
1941
  subtitle: r = "How can I help you?",
@@ -1969,7 +1972,7 @@ function Qi({
1969
1972
  enableUrlSync: c,
1970
1973
  getAuthHeaders: o,
1971
1974
  authToken: s,
1972
- children: /* @__PURE__ */ u("div", { className: `fixed ${Bt[a]} z-50 transition-all duration-300 ${E ? "scale-75" : "scale-100"}`, children: /* @__PURE__ */ O("div", { className: `${go[d]} ${b} rounded-xl shadow-2xl border overflow-hidden relative`, children: [
1975
+ children: /* @__PURE__ */ u("div", { className: `fixed ${Bt[a]} z-50 transition-all duration-300 ${E ? "scale-75" : "scale-100"}`, children: /* @__PURE__ */ O("div", { className: `${vo[d]} ${b} rounded-xl shadow-2xl border overflow-hidden relative`, children: [
1973
1976
  /* @__PURE__ */ u("div", { className: `${A} p-4 flex-shrink-0`, children: /* @__PURE__ */ O("div", { className: "flex items-center justify-between", children: [
1974
1977
  /* @__PURE__ */ O("div", { className: "flex items-center gap-3", children: [
1975
1978
  /* @__PURE__ */ u("div", { className: "w-8 h-8 bg-white/10 rounded-full flex items-center justify-center border border-slate-600", children: /* @__PURE__ */ u($t, { size: 16, className: "text-white" }) }),
@@ -2018,7 +2021,7 @@ function Qi({
2018
2021
  ] })
2019
2022
  ] }) }),
2020
2023
  !E && /* @__PURE__ */ u("div", { className: "flex-1 h-full overflow-hidden", children: /* @__PURE__ */ u(
2021
- po,
2024
+ go,
2022
2025
  {
2023
2026
  placeholder: n,
2024
2027
  showThreadHistory: m
@@ -2039,7 +2042,7 @@ function Qi({
2039
2042
  }
2040
2043
  );
2041
2044
  }
2042
- function vo() {
2045
+ function wo() {
2043
2046
  const e = ye();
2044
2047
  return {
2045
2048
  ...rt(() => ({
@@ -2060,8 +2063,8 @@ function vo() {
2060
2063
  refresh: e.refresh
2061
2064
  };
2062
2065
  }
2063
- function ea() {
2064
- const { tool: e } = vo(), t = rt(() => e.map((i) => {
2066
+ function ta() {
2067
+ const { tool: e } = wo(), t = rt(() => e.map((i) => {
2065
2068
  let a = "", d = null, l = !1;
2066
2069
  try {
2067
2070
  if (typeof i.content == "string") {
@@ -2115,7 +2118,7 @@ function ea() {
2115
2118
  hasToolMessages: t.length > 0
2116
2119
  };
2117
2120
  }
2118
- function ta() {
2121
+ function ra() {
2119
2122
  const e = ye();
2120
2123
  return {
2121
2124
  // State
@@ -2133,7 +2136,7 @@ function ta() {
2133
2136
  refresh: e.refresh
2134
2137
  };
2135
2138
  }
2136
- function wo() {
2139
+ function bo() {
2137
2140
  const e = ye(), [t, r] = V({
2138
2141
  isStreaming: !1,
2139
2142
  events: [],
@@ -2210,7 +2213,7 @@ function wo() {
2210
2213
  };
2211
2214
  }
2212
2215
  function gt(e, t) {
2213
- const { toolEvents: r, latestToolEvent: n } = wo(), [o, s] = V([]), [i, a] = V(null);
2216
+ const { toolEvents: r, latestToolEvent: n } = bo(), [o, s] = V([]), [i, a] = V(null);
2214
2217
  J(() => {
2215
2218
  const c = r.filter(
2216
2219
  (h) => h.data.name === e
@@ -2229,11 +2232,11 @@ function gt(e, t) {
2229
2232
  hasNewData: d
2230
2233
  };
2231
2234
  }
2232
- const ra = (e = "search") => gt(e, (t) => Array.isArray(t) ? t : t != null && t.results ? t.results : t != null && t.data ? t.data : t), na = (e = "read_file") => gt(e, (t) => typeof t == "string" ? t : t != null && t.content ? t.content : t != null && t.text ? t.text : String(t)), oa = (e = "execute_code") => gt(e, (t) => ({
2235
+ const na = (e = "search") => gt(e, (t) => Array.isArray(t) ? t : t != null && t.results ? t.results : t != null && t.data ? t.data : t), oa = (e = "read_file") => gt(e, (t) => typeof t == "string" ? t : t != null && t.content ? t.content : t != null && t.text ? t.text : String(t)), sa = (e = "execute_code") => gt(e, (t) => ({
2233
2236
  output: (t == null ? void 0 : t.output) || (t == null ? void 0 : t.stdout) || t,
2234
2237
  error: (t == null ? void 0 : t.error) || (t == null ? void 0 : t.stderr) || null,
2235
2238
  exitCode: (t == null ? void 0 : t.exit_code) || (t == null ? void 0 : t.exitCode) || 0
2236
- })), bo = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
2239
+ })), yo = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
2237
2240
  "div",
2238
2241
  {
2239
2242
  ref: r,
@@ -2244,8 +2247,8 @@ const ra = (e = "search") => gt(e, (t) => Array.isArray(t) ? t : t != null && t.
2244
2247
  ...t
2245
2248
  }
2246
2249
  ));
2247
- bo.displayName = "Card";
2248
- const yo = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
2250
+ yo.displayName = "Card";
2251
+ const xo = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
2249
2252
  "div",
2250
2253
  {
2251
2254
  ref: r,
@@ -2253,8 +2256,8 @@ const yo = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
2253
2256
  ...t
2254
2257
  }
2255
2258
  ));
2256
- yo.displayName = "CardHeader";
2257
- const xo = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
2259
+ xo.displayName = "CardHeader";
2260
+ const Co = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
2258
2261
  "h3",
2259
2262
  {
2260
2263
  ref: r,
@@ -2265,8 +2268,8 @@ const xo = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
2265
2268
  ...t
2266
2269
  }
2267
2270
  ));
2268
- xo.displayName = "CardTitle";
2269
- const Co = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
2271
+ Co.displayName = "CardTitle";
2272
+ const So = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
2270
2273
  "p",
2271
2274
  {
2272
2275
  ref: r,
@@ -2274,10 +2277,10 @@ const Co = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
2274
2277
  ...t
2275
2278
  }
2276
2279
  ));
2277
- Co.displayName = "CardDescription";
2278
- const So = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u("div", { ref: r, className: Y("p-6 pt-0", e), ...t }));
2279
- So.displayName = "CardContent";
2280
- const Eo = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
2280
+ So.displayName = "CardDescription";
2281
+ const Eo = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u("div", { ref: r, className: Y("p-6 pt-0", e), ...t }));
2282
+ Eo.displayName = "CardContent";
2283
+ const To = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
2281
2284
  "div",
2282
2285
  {
2283
2286
  ref: r,
@@ -2285,8 +2288,8 @@ const Eo = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
2285
2288
  ...t
2286
2289
  }
2287
2290
  ));
2288
- Eo.displayName = "CardFooter";
2289
- const To = f.forwardRef(
2291
+ To.displayName = "CardFooter";
2292
+ const No = f.forwardRef(
2290
2293
  ({ className: e, type: t, ...r }, n) => /* @__PURE__ */ u(
2291
2294
  "input",
2292
2295
  {
@@ -2300,8 +2303,8 @@ const To = f.forwardRef(
2300
2303
  }
2301
2304
  )
2302
2305
  );
2303
- To.displayName = "Input";
2304
- var No = "Label", Er = f.forwardRef((e, t) => /* @__PURE__ */ u(
2306
+ No.displayName = "Input";
2307
+ var Po = "Label", Er = f.forwardRef((e, t) => /* @__PURE__ */ u(
2305
2308
  X.label,
2306
2309
  {
2307
2310
  ...e,
@@ -2312,21 +2315,21 @@ var No = "Label", Er = f.forwardRef((e, t) => /* @__PURE__ */ u(
2312
2315
  }
2313
2316
  }
2314
2317
  ));
2315
- Er.displayName = No;
2318
+ Er.displayName = Po;
2316
2319
  var Tr = Er;
2317
- const Po = or(
2320
+ const Ro = or(
2318
2321
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
2319
- ), Ro = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
2322
+ ), Ao = f.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
2320
2323
  Tr,
2321
2324
  {
2322
2325
  ref: r,
2323
- className: Y(Po(), e),
2326
+ className: Y(Ro(), e),
2324
2327
  ...t
2325
2328
  }
2326
2329
  ));
2327
- Ro.displayName = Tr.displayName;
2328
- var Ao = "Separator", jt = "horizontal", Oo = ["horizontal", "vertical"], Nr = f.forwardRef((e, t) => {
2329
- const { decorative: r, orientation: n = jt, ...o } = e, s = Lo(n) ? n : jt, a = r ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
2330
+ Ao.displayName = Tr.displayName;
2331
+ var Oo = "Separator", jt = "horizontal", Lo = ["horizontal", "vertical"], Nr = f.forwardRef((e, t) => {
2332
+ const { decorative: r, orientation: n = jt, ...o } = e, s = Do(n) ? n : jt, a = r ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
2330
2333
  return /* @__PURE__ */ u(
2331
2334
  X.div,
2332
2335
  {
@@ -2337,12 +2340,12 @@ var Ao = "Separator", jt = "horizontal", Oo = ["horizontal", "vertical"], Nr = f
2337
2340
  }
2338
2341
  );
2339
2342
  });
2340
- Nr.displayName = Ao;
2341
- function Lo(e) {
2342
- return Oo.includes(e);
2343
+ Nr.displayName = Oo;
2344
+ function Do(e) {
2345
+ return Lo.includes(e);
2343
2346
  }
2344
2347
  var Pr = Nr;
2345
- const Do = f.forwardRef(
2348
+ const _o = f.forwardRef(
2346
2349
  ({ className: e, orientation: t = "horizontal", decorative: r = !0, ...n }, o) => /* @__PURE__ */ u(
2347
2350
  Pr,
2348
2351
  {
@@ -2358,8 +2361,8 @@ const Do = f.forwardRef(
2358
2361
  }
2359
2362
  )
2360
2363
  );
2361
- Do.displayName = Pr.displayName;
2362
- function _o(e, t = globalThis == null ? void 0 : globalThis.document) {
2364
+ _o.displayName = Pr.displayName;
2365
+ function Mo(e, t = globalThis == null ? void 0 : globalThis.document) {
2363
2366
  const r = Q(e);
2364
2367
  f.useEffect(() => {
2365
2368
  const n = (o) => {
@@ -2368,7 +2371,7 @@ function _o(e, t = globalThis == null ? void 0 : globalThis.document) {
2368
2371
  return t.addEventListener("keydown", n, { capture: !0 }), () => t.removeEventListener("keydown", n, { capture: !0 });
2369
2372
  }, [r, t]);
2370
2373
  }
2371
- var Mo = "DismissableLayer", nt = "dismissableLayer.update", ko = "dismissableLayer.pointerDownOutside", $o = "dismissableLayer.focusOutside", Vt, Rr = f.createContext({
2374
+ var ko = "DismissableLayer", nt = "dismissableLayer.update", $o = "dismissableLayer.pointerDownOutside", Io = "dismissableLayer.focusOutside", Vt, Rr = f.createContext({
2372
2375
  layers: /* @__PURE__ */ new Set(),
2373
2376
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
2374
2377
  branches: /* @__PURE__ */ new Set()
@@ -2382,14 +2385,14 @@ var Mo = "DismissableLayer", nt = "dismissableLayer.update", ko = "dismissableLa
2382
2385
  onInteractOutside: i,
2383
2386
  onDismiss: a,
2384
2387
  ...d
2385
- } = e, l = f.useContext(Rr), [c, h] = f.useState(null), m = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = f.useState({}), g = G(t, (N) => h(N)), y = Array.from(l.layers), [C] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), S = y.indexOf(C), E = c ? y.indexOf(c) : -1, R = l.layersWithOutsidePointerEventsDisabled.size > 0, v = E >= S, b = Ho((N) => {
2388
+ } = e, l = f.useContext(Rr), [c, h] = f.useState(null), m = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = f.useState({}), g = G(t, (N) => h(N)), y = Array.from(l.layers), [C] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), S = y.indexOf(C), E = c ? y.indexOf(c) : -1, R = l.layersWithOutsidePointerEventsDisabled.size > 0, v = E >= S, b = Fo((N) => {
2386
2389
  const M = N.target, k = [...l.branches].some(($) => $.contains(M));
2387
2390
  !v || k || (o == null || o(N), i == null || i(N), N.defaultPrevented || a == null || a());
2388
- }, m), A = Fo((N) => {
2391
+ }, m), A = Wo((N) => {
2389
2392
  const M = N.target;
2390
2393
  [...l.branches].some(($) => $.contains(M)) || (s == null || s(N), i == null || i(N), N.defaultPrevented || a == null || a());
2391
2394
  }, m);
2392
- return _o((N) => {
2395
+ return Mo((N) => {
2393
2396
  E === l.layers.size - 1 && (n == null || n(N), !N.defaultPrevented && a && (N.preventDefault(), a()));
2394
2397
  }, m), f.useEffect(() => {
2395
2398
  if (c)
@@ -2420,8 +2423,8 @@ var Mo = "DismissableLayer", nt = "dismissableLayer.update", ko = "dismissableLa
2420
2423
  );
2421
2424
  }
2422
2425
  );
2423
- Ar.displayName = Mo;
2424
- var Io = "DismissableLayerBranch", zo = f.forwardRef((e, t) => {
2426
+ Ar.displayName = ko;
2427
+ var zo = "DismissableLayerBranch", Ho = f.forwardRef((e, t) => {
2425
2428
  const r = f.useContext(Rr), n = f.useRef(null), o = G(t, n);
2426
2429
  return f.useEffect(() => {
2427
2430
  const s = n.current;
@@ -2431,8 +2434,8 @@ var Io = "DismissableLayerBranch", zo = f.forwardRef((e, t) => {
2431
2434
  };
2432
2435
  }, [r.branches]), /* @__PURE__ */ u(X.div, { ...e, ref: o });
2433
2436
  });
2434
- zo.displayName = Io;
2435
- function Ho(e, t = globalThis == null ? void 0 : globalThis.document) {
2437
+ Ho.displayName = zo;
2438
+ function Fo(e, t = globalThis == null ? void 0 : globalThis.document) {
2436
2439
  const r = Q(e), n = f.useRef(!1), o = f.useRef(() => {
2437
2440
  });
2438
2441
  return f.useEffect(() => {
@@ -2440,7 +2443,7 @@ function Ho(e, t = globalThis == null ? void 0 : globalThis.document) {
2440
2443
  if (a.target && !n.current) {
2441
2444
  let d = function() {
2442
2445
  Or(
2443
- ko,
2446
+ $o,
2444
2447
  r,
2445
2448
  l,
2446
2449
  { discrete: !0 }
@@ -2462,11 +2465,11 @@ function Ho(e, t = globalThis == null ? void 0 : globalThis.document) {
2462
2465
  onPointerDownCapture: () => n.current = !0
2463
2466
  };
2464
2467
  }
2465
- function Fo(e, t = globalThis == null ? void 0 : globalThis.document) {
2468
+ function Wo(e, t = globalThis == null ? void 0 : globalThis.document) {
2466
2469
  const r = Q(e), n = f.useRef(!1);
2467
2470
  return f.useEffect(() => {
2468
2471
  const o = (s) => {
2469
- s.target && !n.current && Or($o, r, { originalEvent: s }, {
2472
+ s.target && !n.current && Or(Io, r, { originalEvent: s }, {
2470
2473
  discrete: !1
2471
2474
  });
2472
2475
  };
@@ -2482,25 +2485,25 @@ function Yt() {
2482
2485
  }
2483
2486
  function Or(e, t, r, { discrete: n }) {
2484
2487
  const o = r.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
2485
- t && o.addEventListener(e, t, { once: !0 }), n ? Bn(o, s) : o.dispatchEvent(s);
2488
+ t && o.addEventListener(e, t, { once: !0 }), n ? jn(o, s) : o.dispatchEvent(s);
2486
2489
  }
2487
- var Wo = f[" useId ".trim().toString()] || (() => {
2488
- }), Bo = 0;
2489
- function jo(e) {
2490
- const [t, r] = f.useState(Wo());
2490
+ var Bo = f[" useId ".trim().toString()] || (() => {
2491
+ }), jo = 0;
2492
+ function Vo(e) {
2493
+ const [t, r] = f.useState(Bo());
2491
2494
  return ue(() => {
2492
- r((n) => n ?? String(Bo++));
2495
+ r((n) => n ?? String(jo++));
2493
2496
  }, [e]), t ? `radix-${t}` : "";
2494
2497
  }
2495
- const Vo = ["top", "right", "bottom", "left"], fe = Math.min, U = Math.max, Fe = Math.round, Me = Math.floor, se = (e) => ({
2498
+ const Yo = ["top", "right", "bottom", "left"], fe = Math.min, U = Math.max, Fe = Math.round, Me = Math.floor, se = (e) => ({
2496
2499
  x: e,
2497
2500
  y: e
2498
- }), Yo = {
2501
+ }), Xo = {
2499
2502
  left: "right",
2500
2503
  right: "left",
2501
2504
  bottom: "top",
2502
2505
  top: "bottom"
2503
- }, Xo = {
2506
+ }, Uo = {
2504
2507
  start: "end",
2505
2508
  end: "start"
2506
2509
  };
@@ -2522,48 +2525,48 @@ function vt(e) {
2522
2525
  function wt(e) {
2523
2526
  return e === "y" ? "height" : "width";
2524
2527
  }
2525
- const Uo = /* @__PURE__ */ new Set(["top", "bottom"]);
2528
+ const Jo = /* @__PURE__ */ new Set(["top", "bottom"]);
2526
2529
  function oe(e) {
2527
- return Uo.has(de(e)) ? "y" : "x";
2530
+ return Jo.has(de(e)) ? "y" : "x";
2528
2531
  }
2529
2532
  function bt(e) {
2530
2533
  return vt(oe(e));
2531
2534
  }
2532
- function Jo(e, t, r) {
2535
+ function qo(e, t, r) {
2533
2536
  r === void 0 && (r = !1);
2534
2537
  const n = Ce(e), o = bt(e), s = wt(o);
2535
2538
  let i = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
2536
2539
  return t.reference[s] > t.floating[s] && (i = We(i)), [i, We(i)];
2537
2540
  }
2538
- function qo(e) {
2541
+ function Go(e) {
2539
2542
  const t = We(e);
2540
2543
  return [st(e), t, st(t)];
2541
2544
  }
2542
2545
  function st(e) {
2543
- return e.replace(/start|end/g, (t) => Xo[t]);
2546
+ return e.replace(/start|end/g, (t) => Uo[t]);
2544
2547
  }
2545
- const Xt = ["left", "right"], Ut = ["right", "left"], Go = ["top", "bottom"], Ko = ["bottom", "top"];
2546
- function Zo(e, t, r) {
2548
+ const Xt = ["left", "right"], Ut = ["right", "left"], Ko = ["top", "bottom"], Zo = ["bottom", "top"];
2549
+ function Qo(e, t, r) {
2547
2550
  switch (e) {
2548
2551
  case "top":
2549
2552
  case "bottom":
2550
2553
  return r ? t ? Ut : Xt : t ? Xt : Ut;
2551
2554
  case "left":
2552
2555
  case "right":
2553
- return t ? Go : Ko;
2556
+ return t ? Ko : Zo;
2554
2557
  default:
2555
2558
  return [];
2556
2559
  }
2557
2560
  }
2558
- function Qo(e, t, r, n) {
2561
+ function es(e, t, r, n) {
2559
2562
  const o = Ce(e);
2560
- let s = Zo(de(e), r === "start", n);
2563
+ let s = Qo(de(e), r === "start", n);
2561
2564
  return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(st)))), s;
2562
2565
  }
2563
2566
  function We(e) {
2564
- return e.replace(/left|right|bottom|top/g, (t) => Yo[t]);
2567
+ return e.replace(/left|right|bottom|top/g, (t) => Xo[t]);
2565
2568
  }
2566
- function es(e) {
2569
+ function ts(e) {
2567
2570
  return {
2568
2571
  top: 0,
2569
2572
  right: 0,
@@ -2573,7 +2576,7 @@ function es(e) {
2573
2576
  };
2574
2577
  }
2575
2578
  function Lr(e) {
2576
- return typeof e != "number" ? es(e) : {
2579
+ return typeof e != "number" ? ts(e) : {
2577
2580
  top: e,
2578
2581
  right: e,
2579
2582
  bottom: e,
@@ -2646,7 +2649,7 @@ function Jt(e, t, r) {
2646
2649
  }
2647
2650
  return p;
2648
2651
  }
2649
- const ts = async (e, t, r) => {
2652
+ const rs = async (e, t, r) => {
2650
2653
  const {
2651
2654
  placement: n = "bottom",
2652
2655
  strategy: o = "absolute",
@@ -2752,7 +2755,7 @@ async function Te(e, t) {
2752
2755
  right: (b.right - S.right + g.right) / v.x
2753
2756
  };
2754
2757
  }
2755
- const rs = (e) => ({
2758
+ const ns = (e) => ({
2756
2759
  name: "arrow",
2757
2760
  options: e,
2758
2761
  async fn(t) {
@@ -2789,7 +2792,7 @@ const rs = (e) => ({
2789
2792
  reset: T
2790
2793
  };
2791
2794
  }
2792
- }), ns = function(e) {
2795
+ }), os = function(e) {
2793
2796
  return e === void 0 && (e = {}), {
2794
2797
  name: "flip",
2795
2798
  options: e,
@@ -2813,12 +2816,12 @@ const rs = (e) => ({
2813
2816
  } = ce(e, t);
2814
2817
  if ((r = s.arrow) != null && r.alignmentOffset)
2815
2818
  return {};
2816
- const S = de(o), E = oe(a), R = de(a) === a, v = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), b = m || (R || !y ? [We(a)] : qo(a)), A = g !== "none";
2817
- !m && A && b.push(...Qo(a, y, g, v));
2819
+ const S = de(o), E = oe(a), R = de(a) === a, v = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), b = m || (R || !y ? [We(a)] : Go(a)), A = g !== "none";
2820
+ !m && A && b.push(...es(a, y, g, v));
2818
2821
  const N = [a, ...b], M = await Te(t, C), k = [];
2819
2822
  let $ = ((n = s.flip) == null ? void 0 : n.overflows) || [];
2820
2823
  if (c && k.push(M[S]), h) {
2821
- const P = Jo(o, i, v);
2824
+ const P = qo(o, i, v);
2822
2825
  k.push(M[P[0]], M[P[1]]);
2823
2826
  }
2824
2827
  if ($ = [...$, {
@@ -2880,9 +2883,9 @@ function qt(e, t) {
2880
2883
  };
2881
2884
  }
2882
2885
  function Gt(e) {
2883
- return Vo.some((t) => e[t] >= 0);
2886
+ return Yo.some((t) => e[t] >= 0);
2884
2887
  }
2885
- const os = function(e) {
2888
+ const ss = function(e) {
2886
2889
  return e === void 0 && (e = {}), {
2887
2890
  name: "hide",
2888
2891
  options: e,
@@ -2924,7 +2927,7 @@ const os = function(e) {
2924
2927
  }
2925
2928
  };
2926
2929
  }, Dr = /* @__PURE__ */ new Set(["left", "top"]);
2927
- async function ss(e, t) {
2930
+ async function is(e, t) {
2928
2931
  const {
2929
2932
  placement: r,
2930
2933
  platform: n,
@@ -2951,7 +2954,7 @@ async function ss(e, t) {
2951
2954
  y: p * c
2952
2955
  };
2953
2956
  }
2954
- const is = function(e) {
2957
+ const as = function(e) {
2955
2958
  return e === void 0 && (e = 0), {
2956
2959
  name: "offset",
2957
2960
  options: e,
@@ -2962,7 +2965,7 @@ const is = function(e) {
2962
2965
  y: s,
2963
2966
  placement: i,
2964
2967
  middlewareData: a
2965
- } = t, d = await ss(t, e);
2968
+ } = t, d = await is(t, e);
2966
2969
  return i === ((r = a.offset) == null ? void 0 : r.placement) && (n = a.arrow) != null && n.alignmentOffset ? {} : {
2967
2970
  x: o + d.x,
2968
2971
  y: s + d.y,
@@ -2973,7 +2976,7 @@ const is = function(e) {
2973
2976
  };
2974
2977
  }
2975
2978
  };
2976
- }, as = function(e) {
2979
+ }, ls = function(e) {
2977
2980
  return e === void 0 && (e = {}), {
2978
2981
  name: "shift",
2979
2982
  options: e,
@@ -3029,7 +3032,7 @@ const is = function(e) {
3029
3032
  };
3030
3033
  }
3031
3034
  };
3032
- }, ls = function(e) {
3035
+ }, cs = function(e) {
3033
3036
  return e === void 0 && (e = {}), {
3034
3037
  options: e,
3035
3038
  fn(t) {
@@ -3071,7 +3074,7 @@ const is = function(e) {
3071
3074
  };
3072
3075
  }
3073
3076
  };
3074
- }, cs = function(e) {
3077
+ }, ds = function(e) {
3075
3078
  return e === void 0 && (e = {}), {
3076
3079
  name: "size",
3077
3080
  options: e,
@@ -3138,7 +3141,7 @@ function ie(e) {
3138
3141
  function Kt(e) {
3139
3142
  return !Je() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
3140
3143
  }
3141
- const ds = /* @__PURE__ */ new Set(["inline", "contents"]);
3144
+ const us = /* @__PURE__ */ new Set(["inline", "contents"]);
3142
3145
  function Oe(e) {
3143
3146
  const {
3144
3147
  overflow: t,
@@ -3146,15 +3149,15 @@ function Oe(e) {
3146
3149
  overflowY: n,
3147
3150
  display: o
3148
3151
  } = te(e);
3149
- return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !ds.has(o);
3152
+ return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !us.has(o);
3150
3153
  }
3151
- const us = /* @__PURE__ */ new Set(["table", "td", "th"]);
3152
- function fs(e) {
3153
- return us.has(Se(e));
3154
+ const fs = /* @__PURE__ */ new Set(["table", "td", "th"]);
3155
+ function hs(e) {
3156
+ return fs.has(Se(e));
3154
3157
  }
3155
- const hs = [":popover-open", ":modal"];
3158
+ const ms = [":popover-open", ":modal"];
3156
3159
  function qe(e) {
3157
- return hs.some((t) => {
3160
+ return ms.some((t) => {
3158
3161
  try {
3159
3162
  return e.matches(t);
3160
3163
  } catch {
@@ -3162,12 +3165,12 @@ function qe(e) {
3162
3165
  }
3163
3166
  });
3164
3167
  }
3165
- const ms = ["transform", "translate", "scale", "rotate", "perspective"], ps = ["transform", "translate", "scale", "rotate", "perspective", "filter"], gs = ["paint", "layout", "strict", "content"];
3168
+ const ps = ["transform", "translate", "scale", "rotate", "perspective"], gs = ["transform", "translate", "scale", "rotate", "perspective", "filter"], vs = ["paint", "layout", "strict", "content"];
3166
3169
  function yt(e) {
3167
3170
  const t = xt(), r = ee(e) ? te(e) : e;
3168
- return ms.some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ps.some((n) => (r.willChange || "").includes(n)) || gs.some((n) => (r.contain || "").includes(n));
3171
+ return ps.some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || gs.some((n) => (r.willChange || "").includes(n)) || vs.some((n) => (r.contain || "").includes(n));
3169
3172
  }
3170
- function vs(e) {
3173
+ function ws(e) {
3171
3174
  let t = he(e);
3172
3175
  for (; ie(t) && !we(t); ) {
3173
3176
  if (yt(t))
@@ -3181,9 +3184,9 @@ function vs(e) {
3181
3184
  function xt() {
3182
3185
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
3183
3186
  }
3184
- const ws = /* @__PURE__ */ new Set(["html", "body", "#document"]);
3187
+ const bs = /* @__PURE__ */ new Set(["html", "body", "#document"]);
3185
3188
  function we(e) {
3186
- return ws.has(Se(e));
3189
+ return bs.has(Se(e));
3187
3190
  }
3188
3191
  function te(e) {
3189
3192
  return q(e).getComputedStyle(e);
@@ -3254,15 +3257,15 @@ function ge(e) {
3254
3257
  y: a
3255
3258
  };
3256
3259
  }
3257
- const bs = /* @__PURE__ */ se(0);
3260
+ const ys = /* @__PURE__ */ se(0);
3258
3261
  function $r(e) {
3259
3262
  const t = q(e);
3260
- return !xt() || !t.visualViewport ? bs : {
3263
+ return !xt() || !t.visualViewport ? ys : {
3261
3264
  x: t.visualViewport.offsetLeft,
3262
3265
  y: t.visualViewport.offsetTop
3263
3266
  };
3264
3267
  }
3265
- function ys(e, t, r) {
3268
+ function xs(e, t, r) {
3266
3269
  return t === void 0 && (t = !1), !r || t && r !== q(e) ? !1 : t;
3267
3270
  }
3268
3271
  function pe(e, t, r, n) {
@@ -3270,7 +3273,7 @@ function pe(e, t, r, n) {
3270
3273
  const o = e.getBoundingClientRect(), s = Ct(e);
3271
3274
  let i = se(1);
3272
3275
  t && (n ? ee(n) && (i = ge(n)) : i = ge(e));
3273
- const a = ys(s, r, n) ? $r(s) : se(0);
3276
+ const a = xs(s, r, n) ? $r(s) : se(0);
3274
3277
  let d = (o.left + a.x) / i.x, l = (o.top + a.y) / i.y, c = o.width / i.x, h = o.height / i.y;
3275
3278
  if (s) {
3276
3279
  const m = q(s), p = n && ee(n) ? q(n) : n;
@@ -3302,7 +3305,7 @@ function Ir(e, t, r) {
3302
3305
  y: s
3303
3306
  };
3304
3307
  }
3305
- function xs(e) {
3308
+ function Cs(e) {
3306
3309
  let {
3307
3310
  elements: t,
3308
3311
  rect: r,
@@ -3329,10 +3332,10 @@ function xs(e) {
3329
3332
  y: r.y * l.y - d.scrollTop * l.y + c.y + m.y
3330
3333
  };
3331
3334
  }
3332
- function Cs(e) {
3335
+ function Ss(e) {
3333
3336
  return Array.from(e.getClientRects());
3334
3337
  }
3335
- function Ss(e) {
3338
+ function Es(e) {
3336
3339
  const t = le(e), r = Ge(e), n = e.ownerDocument.body, o = U(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), s = U(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
3337
3340
  let i = -r.scrollLeft + St(e);
3338
3341
  const a = -r.scrollTop;
@@ -3343,7 +3346,7 @@ function Ss(e) {
3343
3346
  y: a
3344
3347
  };
3345
3348
  }
3346
- function Es(e, t) {
3349
+ function Ts(e, t) {
3347
3350
  const r = q(e), n = le(e), o = r.visualViewport;
3348
3351
  let s = n.clientWidth, i = n.clientHeight, a = 0, d = 0;
3349
3352
  if (o) {
@@ -3358,8 +3361,8 @@ function Es(e, t) {
3358
3361
  y: d
3359
3362
  };
3360
3363
  }
3361
- const Ts = /* @__PURE__ */ new Set(["absolute", "fixed"]);
3362
- function Ns(e, t) {
3364
+ const Ns = /* @__PURE__ */ new Set(["absolute", "fixed"]);
3365
+ function Ps(e, t) {
3363
3366
  const r = pe(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, s = ie(e) ? ge(e) : se(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, d = o * s.x, l = n * s.y;
3364
3367
  return {
3365
3368
  width: i,
@@ -3371,11 +3374,11 @@ function Ns(e, t) {
3371
3374
  function Zt(e, t, r) {
3372
3375
  let n;
3373
3376
  if (t === "viewport")
3374
- n = Es(e, r);
3377
+ n = Ts(e, r);
3375
3378
  else if (t === "document")
3376
- n = Ss(le(e));
3379
+ n = Es(le(e));
3377
3380
  else if (ee(t))
3378
- n = Ns(t, r);
3381
+ n = Ps(t, r);
3379
3382
  else {
3380
3383
  const o = $r(e);
3381
3384
  n = {
@@ -3391,7 +3394,7 @@ function zr(e, t) {
3391
3394
  const r = he(e);
3392
3395
  return r === t || !ee(r) || we(r) ? !1 : te(r).position === "fixed" || zr(r, t);
3393
3396
  }
3394
- function Ps(e, t) {
3397
+ function Rs(e, t) {
3395
3398
  const r = t.get(e);
3396
3399
  if (r)
3397
3400
  return r;
@@ -3400,18 +3403,18 @@ function Ps(e, t) {
3400
3403
  let i = s ? he(e) : e;
3401
3404
  for (; ee(i) && !we(i); ) {
3402
3405
  const a = te(i), d = yt(i);
3403
- !d && a.position === "fixed" && (o = null), (s ? !d && !o : !d && a.position === "static" && !!o && Ts.has(o.position) || Oe(i) && !d && zr(e, i)) ? n = n.filter((c) => c !== i) : o = a, i = he(i);
3406
+ !d && a.position === "fixed" && (o = null), (s ? !d && !o : !d && a.position === "static" && !!o && Ns.has(o.position) || Oe(i) && !d && zr(e, i)) ? n = n.filter((c) => c !== i) : o = a, i = he(i);
3404
3407
  }
3405
3408
  return t.set(e, n), n;
3406
3409
  }
3407
- function Rs(e) {
3410
+ function As(e) {
3408
3411
  let {
3409
3412
  element: t,
3410
3413
  boundary: r,
3411
3414
  rootBoundary: n,
3412
3415
  strategy: o
3413
3416
  } = e;
3414
- const i = [...r === "clippingAncestors" ? qe(t) ? [] : Ps(t, this._c) : [].concat(r), n], a = i[0], d = i.reduce((l, c) => {
3417
+ const i = [...r === "clippingAncestors" ? qe(t) ? [] : Rs(t, this._c) : [].concat(r), n], a = i[0], d = i.reduce((l, c) => {
3415
3418
  const h = Zt(t, c, o);
3416
3419
  return l.top = U(h.top, l.top), l.right = fe(h.right, l.right), l.bottom = fe(h.bottom, l.bottom), l.left = U(h.left, l.left), l;
3417
3420
  }, Zt(t, a, o));
@@ -3422,7 +3425,7 @@ function Rs(e) {
3422
3425
  y: d.top
3423
3426
  };
3424
3427
  }
3425
- function As(e) {
3428
+ function Os(e) {
3426
3429
  const {
3427
3430
  width: t,
3428
3431
  height: r
@@ -3432,7 +3435,7 @@ function As(e) {
3432
3435
  height: r
3433
3436
  };
3434
3437
  }
3435
- function Os(e, t, r) {
3438
+ function Ls(e, t, r) {
3436
3439
  const n = ie(t), o = le(t), s = r === "fixed", i = pe(e, !0, s, t);
3437
3440
  let a = {
3438
3441
  scrollLeft: 0,
@@ -3481,14 +3484,14 @@ function Hr(e, t) {
3481
3484
  return r;
3482
3485
  }
3483
3486
  let n = Qt(e, t);
3484
- for (; n && fs(n) && et(n); )
3487
+ for (; n && hs(n) && et(n); )
3485
3488
  n = Qt(n, t);
3486
- return n && we(n) && et(n) && !yt(n) ? r : n || vs(e) || r;
3489
+ return n && we(n) && et(n) && !yt(n) ? r : n || ws(e) || r;
3487
3490
  }
3488
- const Ls = async function(e) {
3491
+ const Ds = async function(e) {
3489
3492
  const t = this.getOffsetParent || Hr, r = this.getDimensions, n = await r(e.floating);
3490
3493
  return {
3491
- reference: Os(e.reference, await t(e.floating), e.strategy),
3494
+ reference: Ls(e.reference, await t(e.floating), e.strategy),
3492
3495
  floating: {
3493
3496
  x: 0,
3494
3497
  y: 0,
@@ -3497,25 +3500,25 @@ const Ls = async function(e) {
3497
3500
  }
3498
3501
  };
3499
3502
  };
3500
- function Ds(e) {
3503
+ function _s(e) {
3501
3504
  return te(e).direction === "rtl";
3502
3505
  }
3503
- const _s = {
3504
- convertOffsetParentRelativeRectToViewportRelativeRect: xs,
3506
+ const Ms = {
3507
+ convertOffsetParentRelativeRectToViewportRelativeRect: Cs,
3505
3508
  getDocumentElement: le,
3506
- getClippingRect: Rs,
3509
+ getClippingRect: As,
3507
3510
  getOffsetParent: Hr,
3508
- getElementRects: Ls,
3509
- getClientRects: Cs,
3510
- getDimensions: As,
3511
+ getElementRects: Ds,
3512
+ getClientRects: Ss,
3513
+ getDimensions: Os,
3511
3514
  getScale: ge,
3512
3515
  isElement: ee,
3513
- isRTL: Ds
3516
+ isRTL: _s
3514
3517
  };
3515
3518
  function Fr(e, t) {
3516
3519
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
3517
3520
  }
3518
- function Ms(e, t) {
3521
+ function ks(e, t) {
3519
3522
  let r = null, n;
3520
3523
  const o = le(e);
3521
3524
  function s() {
@@ -3561,7 +3564,7 @@ function Ms(e, t) {
3561
3564
  }
3562
3565
  return i(!0), s;
3563
3566
  }
3564
- function ks(e, t, r, n) {
3567
+ function $s(e, t, r, n) {
3565
3568
  n === void 0 && (n = {});
3566
3569
  const {
3567
3570
  ancestorScroll: o = !0,
@@ -3575,7 +3578,7 @@ function ks(e, t, r, n) {
3575
3578
  passive: !0
3576
3579
  }), s && S.addEventListener("resize", r);
3577
3580
  });
3578
- const h = l && a ? Ms(l, r) : null;
3581
+ const h = l && a ? ks(l, r) : null;
3579
3582
  let m = -1, p = null;
3580
3583
  i && (p = new ResizeObserver((S) => {
3581
3584
  let [E] = S;
@@ -3597,21 +3600,21 @@ function ks(e, t, r, n) {
3597
3600
  }), h == null || h(), (S = p) == null || S.disconnect(), p = null, d && cancelAnimationFrame(g);
3598
3601
  };
3599
3602
  }
3600
- const $s = is, Is = as, zs = ns, Hs = cs, Fs = os, er = rs, Ws = ls, Bs = (e, t, r) => {
3603
+ const Is = as, zs = ls, Hs = os, Fs = ds, Ws = ss, er = ns, Bs = cs, js = (e, t, r) => {
3601
3604
  const n = /* @__PURE__ */ new Map(), o = {
3602
- platform: _s,
3605
+ platform: Ms,
3603
3606
  ...r
3604
3607
  }, s = {
3605
3608
  ...o.platform,
3606
3609
  _c: n
3607
3610
  };
3608
- return ts(e, t, {
3611
+ return rs(e, t, {
3609
3612
  ...o,
3610
3613
  platform: s
3611
3614
  });
3612
3615
  };
3613
- var js = typeof document < "u", Vs = function() {
3614
- }, ke = js ? vn : Vs;
3616
+ var Vs = typeof document < "u", Ys = function() {
3617
+ }, ke = Vs ? vn : Ys;
3615
3618
  function je(e, t) {
3616
3619
  if (e === t)
3617
3620
  return !0;
@@ -3655,7 +3658,7 @@ function tt(e) {
3655
3658
  t.current = e;
3656
3659
  }), t;
3657
3660
  }
3658
- function Ys(e) {
3661
+ function Xs(e) {
3659
3662
  e === void 0 && (e = {});
3660
3663
  const {
3661
3664
  placement: t = "bottom",
@@ -3690,7 +3693,7 @@ function Ys(e) {
3690
3693
  strategy: r,
3691
3694
  middleware: m
3692
3695
  };
3693
- z.current && (D.platform = z.current), Bs(A.current, N.current, D).then((H) => {
3696
+ z.current && (D.platform = z.current), js(A.current, N.current, D).then((H) => {
3694
3697
  const I = {
3695
3698
  ...H,
3696
3699
  // The floating element's position may be recomputed while it's closed
@@ -3757,7 +3760,7 @@ function Ys(e) {
3757
3760
  floatingStyles: _
3758
3761
  }), [c, w, L, T, _]);
3759
3762
  }
3760
- const Xs = (e) => {
3763
+ const Us = (e) => {
3761
3764
  function t(r) {
3762
3765
  return {}.hasOwnProperty.call(r, "current");
3763
3766
  }
@@ -3778,17 +3781,14 @@ const Xs = (e) => {
3778
3781
  }).fn(r) : {};
3779
3782
  }
3780
3783
  };
3781
- }, Us = (e, t) => ({
3782
- ...$s(e),
3783
- options: [e, t]
3784
- }), Js = (e, t) => ({
3784
+ }, Js = (e, t) => ({
3785
3785
  ...Is(e),
3786
3786
  options: [e, t]
3787
3787
  }), qs = (e, t) => ({
3788
- ...Ws(e),
3788
+ ...zs(e),
3789
3789
  options: [e, t]
3790
3790
  }), Gs = (e, t) => ({
3791
- ...zs(e),
3791
+ ...Bs(e),
3792
3792
  options: [e, t]
3793
3793
  }), Ks = (e, t) => ({
3794
3794
  ...Hs(e),
@@ -3797,10 +3797,13 @@ const Xs = (e) => {
3797
3797
  ...Fs(e),
3798
3798
  options: [e, t]
3799
3799
  }), Qs = (e, t) => ({
3800
- ...Xs(e),
3800
+ ...Ws(e),
3801
+ options: [e, t]
3802
+ }), ei = (e, t) => ({
3803
+ ...Us(e),
3801
3804
  options: [e, t]
3802
3805
  });
3803
- var ei = "Arrow", Br = f.forwardRef((e, t) => {
3806
+ var ti = "Arrow", Br = f.forwardRef((e, t) => {
3804
3807
  const { children: r, width: n = 10, height: o = 5, ...s } = e;
3805
3808
  return /* @__PURE__ */ u(
3806
3809
  X.svg,
@@ -3815,9 +3818,9 @@ var ei = "Arrow", Br = f.forwardRef((e, t) => {
3815
3818
  }
3816
3819
  );
3817
3820
  });
3818
- Br.displayName = ei;
3819
- var ti = Br;
3820
- function ri(e) {
3821
+ Br.displayName = ti;
3822
+ var ri = Br;
3823
+ function ni(e) {
3821
3824
  const [t, r] = f.useState(void 0);
3822
3825
  return ue(() => {
3823
3826
  if (e) {
@@ -3839,9 +3842,9 @@ function ri(e) {
3839
3842
  r(void 0);
3840
3843
  }, [e]), t;
3841
3844
  }
3842
- var Et = "Popper", [jr, Vr] = ut(Et), [ni, Yr] = jr(Et), Xr = (e) => {
3845
+ var Et = "Popper", [jr, Vr] = ut(Et), [oi, Yr] = jr(Et), Xr = (e) => {
3843
3846
  const { __scopePopper: t, children: r } = e, [n, o] = f.useState(null);
3844
- return /* @__PURE__ */ u(ni, { scope: t, anchor: n, onAnchorChange: o, children: r });
3847
+ return /* @__PURE__ */ u(oi, { scope: t, anchor: n, onAnchorChange: o, children: r });
3845
3848
  };
3846
3849
  Xr.displayName = Et;
3847
3850
  var Ur = "PopperAnchor", Jr = f.forwardRef(
@@ -3853,7 +3856,7 @@ var Ur = "PopperAnchor", Jr = f.forwardRef(
3853
3856
  }
3854
3857
  );
3855
3858
  Jr.displayName = Ur;
3856
- var Tt = "PopperContent", [oi, si] = jr(Tt), qr = f.forwardRef(
3859
+ var Tt = "PopperContent", [si, ii] = jr(Tt), qr = f.forwardRef(
3857
3860
  (e, t) => {
3858
3861
  var Pt, Rt, At, Ot, Lt, Dt;
3859
3862
  const {
@@ -3871,40 +3874,40 @@ var Tt = "PopperContent", [oi, si] = jr(Tt), qr = f.forwardRef(
3871
3874
  updatePositionStrategy: p = "optimized",
3872
3875
  onPlaced: g,
3873
3876
  ...y
3874
- } = e, C = Yr(Tt, r), [S, E] = f.useState(null), R = G(t, (Ee) => E(Ee)), [v, b] = f.useState(null), A = ri(v), N = (A == null ? void 0 : A.width) ?? 0, M = (A == null ? void 0 : A.height) ?? 0, k = n + (s !== "center" ? "-" + s : ""), $ = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, z = Array.isArray(l) ? l : [l], x = z.length > 0, w = {
3877
+ } = e, C = Yr(Tt, r), [S, E] = f.useState(null), R = G(t, (Ee) => E(Ee)), [v, b] = f.useState(null), A = ni(v), N = (A == null ? void 0 : A.width) ?? 0, M = (A == null ? void 0 : A.height) ?? 0, k = n + (s !== "center" ? "-" + s : ""), $ = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, z = Array.isArray(l) ? l : [l], x = z.length > 0, w = {
3875
3878
  padding: $,
3876
- boundary: z.filter(ai),
3879
+ boundary: z.filter(li),
3877
3880
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
3878
3881
  altBoundary: x
3879
- }, { refs: P, floatingStyles: L, placement: T, isPositioned: _, middlewareData: D } = Ys({
3882
+ }, { refs: P, floatingStyles: L, placement: T, isPositioned: _, middlewareData: D } = Xs({
3880
3883
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
3881
3884
  strategy: "fixed",
3882
3885
  placement: k,
3883
- whileElementsMounted: (...Ee) => ks(...Ee, {
3886
+ whileElementsMounted: (...Ee) => $s(...Ee, {
3884
3887
  animationFrame: p === "always"
3885
3888
  }),
3886
3889
  elements: {
3887
3890
  reference: C.anchor
3888
3891
  },
3889
3892
  middleware: [
3890
- Us({ mainAxis: o + M, alignmentAxis: i }),
3891
- d && Js({
3893
+ Js({ mainAxis: o + M, alignmentAxis: i }),
3894
+ d && qs({
3892
3895
  mainAxis: !0,
3893
3896
  crossAxis: !1,
3894
- limiter: h === "partial" ? qs() : void 0,
3897
+ limiter: h === "partial" ? Gs() : void 0,
3895
3898
  ...w
3896
3899
  }),
3897
- d && Gs({ ...w }),
3898
- Ks({
3900
+ d && Ks({ ...w }),
3901
+ Zs({
3899
3902
  ...w,
3900
3903
  apply: ({ elements: Ee, rects: _t, availableWidth: dn, availableHeight: un }) => {
3901
3904
  const { width: fn, height: hn } = _t.reference, De = Ee.floating.style;
3902
3905
  De.setProperty("--radix-popper-available-width", `${dn}px`), De.setProperty("--radix-popper-available-height", `${un}px`), De.setProperty("--radix-popper-anchor-width", `${fn}px`), De.setProperty("--radix-popper-anchor-height", `${hn}px`);
3903
3906
  }
3904
3907
  }),
3905
- v && Qs({ element: v, padding: a }),
3906
- li({ arrowWidth: N, arrowHeight: M }),
3907
- m && Zs({ strategy: "referenceHidden", ...w })
3908
+ v && ei({ element: v, padding: a }),
3909
+ ci({ arrowWidth: N, arrowHeight: M }),
3910
+ m && Qs({ strategy: "referenceHidden", ...w })
3908
3911
  ]
3909
3912
  }), [H, I] = Zr(T), W = Q(g);
3910
3913
  ue(() => {
@@ -3938,7 +3941,7 @@ var Tt = "PopperContent", [oi, si] = jr(Tt), qr = f.forwardRef(
3938
3941
  },
3939
3942
  dir: e.dir,
3940
3943
  children: /* @__PURE__ */ u(
3941
- oi,
3944
+ si,
3942
3945
  {
3943
3946
  scope: r,
3944
3947
  placedSide: H,
@@ -3968,13 +3971,13 @@ var Tt = "PopperContent", [oi, si] = jr(Tt), qr = f.forwardRef(
3968
3971
  }
3969
3972
  );
3970
3973
  qr.displayName = Tt;
3971
- var Gr = "PopperArrow", ii = {
3974
+ var Gr = "PopperArrow", ai = {
3972
3975
  top: "bottom",
3973
3976
  right: "left",
3974
3977
  bottom: "top",
3975
3978
  left: "right"
3976
3979
  }, Kr = f.forwardRef(function(t, r) {
3977
- const { __scopePopper: n, ...o } = t, s = si(Gr, n), i = ii[s.placedSide];
3980
+ const { __scopePopper: n, ...o } = t, s = ii(Gr, n), i = ai[s.placedSide];
3978
3981
  return (
3979
3982
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
3980
3983
  // doesn't report size as we'd expect on SVG elements.
@@ -4003,7 +4006,7 @@ var Gr = "PopperArrow", ii = {
4003
4006
  visibility: s.shouldHideArrow ? "hidden" : void 0
4004
4007
  },
4005
4008
  children: /* @__PURE__ */ u(
4006
- ti,
4009
+ ri,
4007
4010
  {
4008
4011
  ...o,
4009
4012
  ref: r,
@@ -4019,10 +4022,10 @@ var Gr = "PopperArrow", ii = {
4019
4022
  );
4020
4023
  });
4021
4024
  Kr.displayName = Gr;
4022
- function ai(e) {
4025
+ function li(e) {
4023
4026
  return e !== null;
4024
4027
  }
4025
- var li = (e) => ({
4028
+ var ci = (e) => ({
4026
4029
  name: "transformOrigin",
4027
4030
  options: e,
4028
4031
  fn(t) {
@@ -4036,15 +4039,15 @@ function Zr(e) {
4036
4039
  const [t, r = "center"] = e.split("-");
4037
4040
  return [t, r];
4038
4041
  }
4039
- var ci = Xr, di = Jr, ui = qr, fi = Kr, hi = f[" useInsertionEffect ".trim().toString()] || ue;
4040
- function mi({
4042
+ var di = Xr, ui = Jr, fi = qr, hi = Kr, mi = f[" useInsertionEffect ".trim().toString()] || ue;
4043
+ function pi({
4041
4044
  prop: e,
4042
4045
  defaultProp: t,
4043
4046
  onChange: r = () => {
4044
4047
  },
4045
4048
  caller: n
4046
4049
  }) {
4047
- const [o, s, i] = pi({
4050
+ const [o, s, i] = gi({
4048
4051
  defaultProp: t,
4049
4052
  onChange: r
4050
4053
  }), a = e !== void 0, d = a ? e : o;
@@ -4061,7 +4064,7 @@ function mi({
4061
4064
  (c) => {
4062
4065
  var h;
4063
4066
  if (a) {
4064
- const m = gi(c) ? c(e) : c;
4067
+ const m = vi(c) ? c(e) : c;
4065
4068
  m !== e && ((h = i.current) == null || h.call(i, m));
4066
4069
  } else
4067
4070
  s(c);
@@ -4070,22 +4073,22 @@ function mi({
4070
4073
  );
4071
4074
  return [d, l];
4072
4075
  }
4073
- function pi({
4076
+ function gi({
4074
4077
  defaultProp: e,
4075
4078
  onChange: t
4076
4079
  }) {
4077
4080
  const [r, n] = f.useState(e), o = f.useRef(r), s = f.useRef(t);
4078
- return hi(() => {
4081
+ return mi(() => {
4079
4082
  s.current = t;
4080
4083
  }, [t]), f.useEffect(() => {
4081
4084
  var i;
4082
4085
  o.current !== r && ((i = s.current) == null || i.call(s, r), o.current = r);
4083
4086
  }, [r, o]), [r, n, s];
4084
4087
  }
4085
- function gi(e) {
4088
+ function vi(e) {
4086
4089
  return typeof e == "function";
4087
4090
  }
4088
- var vi = Object.freeze({
4091
+ var wi = Object.freeze({
4089
4092
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
4090
4093
  position: "absolute",
4091
4094
  border: 0,
@@ -4097,23 +4100,23 @@ var vi = Object.freeze({
4097
4100
  clip: "rect(0, 0, 0, 0)",
4098
4101
  whiteSpace: "nowrap",
4099
4102
  wordWrap: "normal"
4100
- }), wi = "VisuallyHidden", Qr = f.forwardRef(
4103
+ }), bi = "VisuallyHidden", Qr = f.forwardRef(
4101
4104
  (e, t) => /* @__PURE__ */ u(
4102
4105
  X.span,
4103
4106
  {
4104
4107
  ...e,
4105
4108
  ref: t,
4106
- style: { ...vi, ...e.style }
4109
+ style: { ...wi, ...e.style }
4107
4110
  }
4108
4111
  )
4109
4112
  );
4110
- Qr.displayName = wi;
4111
- var bi = Qr, [Ke, sa] = ut("Tooltip", [
4113
+ Qr.displayName = bi;
4114
+ var yi = Qr, [Ke, ia] = ut("Tooltip", [
4112
4115
  Vr
4113
- ]), Ze = Vr(), en = "TooltipProvider", yi = 700, at = "tooltip.open", [xi, Nt] = Ke(en), tn = (e) => {
4116
+ ]), Ze = Vr(), en = "TooltipProvider", xi = 700, at = "tooltip.open", [Ci, Nt] = Ke(en), tn = (e) => {
4114
4117
  const {
4115
4118
  __scopeTooltip: t,
4116
- delayDuration: r = yi,
4119
+ delayDuration: r = xi,
4117
4120
  skipDelayDuration: n = 300,
4118
4121
  disableHoverableContent: o = !1,
4119
4122
  children: s
@@ -4122,7 +4125,7 @@ var bi = Qr, [Ke, sa] = ut("Tooltip", [
4122
4125
  const l = d.current;
4123
4126
  return () => window.clearTimeout(l);
4124
4127
  }, []), /* @__PURE__ */ u(
4125
- xi,
4128
+ Ci,
4126
4129
  {
4127
4130
  scope: t,
4128
4131
  isOpenDelayedRef: i,
@@ -4146,7 +4149,7 @@ var bi = Qr, [Ke, sa] = ut("Tooltip", [
4146
4149
  );
4147
4150
  };
4148
4151
  tn.displayName = en;
4149
- var Pe = "Tooltip", [Ci, Qe] = Ke(Pe), rn = (e) => {
4152
+ var Pe = "Tooltip", [Si, Qe] = Ke(Pe), rn = (e) => {
4150
4153
  const {
4151
4154
  __scopeTooltip: t,
4152
4155
  children: r,
@@ -4155,7 +4158,7 @@ var Pe = "Tooltip", [Ci, Qe] = Ke(Pe), rn = (e) => {
4155
4158
  onOpenChange: s,
4156
4159
  disableHoverableContent: i,
4157
4160
  delayDuration: a
4158
- } = e, d = Nt(Pe, e.__scopeTooltip), l = Ze(t), [c, h] = f.useState(null), m = jo(), p = f.useRef(0), g = i ?? d.disableHoverableContent, y = a ?? d.delayDuration, C = f.useRef(!1), [S, E] = mi({
4161
+ } = e, d = Nt(Pe, e.__scopeTooltip), l = Ze(t), [c, h] = f.useState(null), m = Vo(), p = f.useRef(0), g = i ?? d.disableHoverableContent, y = a ?? d.delayDuration, C = f.useRef(!1), [S, E] = pi({
4159
4162
  prop: n,
4160
4163
  defaultProp: o ?? !1,
4161
4164
  onChange: (N) => {
@@ -4173,8 +4176,8 @@ var Pe = "Tooltip", [Ci, Qe] = Ke(Pe), rn = (e) => {
4173
4176
  }, [y, E]);
4174
4177
  return f.useEffect(() => () => {
4175
4178
  p.current && (window.clearTimeout(p.current), p.current = 0);
4176
- }, []), /* @__PURE__ */ u(ci, { ...l, children: /* @__PURE__ */ u(
4177
- Ci,
4179
+ }, []), /* @__PURE__ */ u(di, { ...l, children: /* @__PURE__ */ u(
4180
+ Si,
4178
4181
  {
4179
4182
  scope: t,
4180
4183
  contentId: m,
@@ -4199,7 +4202,7 @@ rn.displayName = Pe;
4199
4202
  var lt = "TooltipTrigger", nn = f.forwardRef(
4200
4203
  (e, t) => {
4201
4204
  const { __scopeTooltip: r, ...n } = e, o = Qe(lt, r), s = Nt(lt, r), i = Ze(r), a = f.useRef(null), d = G(t, a, o.onTriggerChange), l = f.useRef(!1), c = f.useRef(!1), h = f.useCallback(() => l.current = !1, []);
4202
- return f.useEffect(() => () => document.removeEventListener("pointerup", h), [h]), /* @__PURE__ */ u(di, { asChild: !0, ...i, children: /* @__PURE__ */ u(
4205
+ return f.useEffect(() => () => document.removeEventListener("pointerup", h), [h]), /* @__PURE__ */ u(ui, { asChild: !0, ...i, children: /* @__PURE__ */ u(
4203
4206
  X.button,
4204
4207
  {
4205
4208
  "aria-describedby": o.open ? o.contentId : void 0,
@@ -4225,19 +4228,19 @@ var lt = "TooltipTrigger", nn = f.forwardRef(
4225
4228
  }
4226
4229
  );
4227
4230
  nn.displayName = lt;
4228
- var Si = "TooltipPortal", [ia, Ei] = Ke(Si, {
4231
+ var Ei = "TooltipPortal", [aa, Ti] = Ke(Ei, {
4229
4232
  forceMount: void 0
4230
4233
  }), be = "TooltipContent", on = f.forwardRef(
4231
4234
  (e, t) => {
4232
- const r = Ei(be, e.__scopeTooltip), { forceMount: n = r.forceMount, side: o = "top", ...s } = e, i = Qe(be, e.__scopeTooltip);
4233
- return /* @__PURE__ */ u(xe, { present: n || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ u(sn, { side: o, ...s, ref: t }) : /* @__PURE__ */ u(Ti, { side: o, ...s, ref: t }) });
4235
+ const r = Ti(be, e.__scopeTooltip), { forceMount: n = r.forceMount, side: o = "top", ...s } = e, i = Qe(be, e.__scopeTooltip);
4236
+ return /* @__PURE__ */ u(xe, { present: n || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ u(sn, { side: o, ...s, ref: t }) : /* @__PURE__ */ u(Ni, { side: o, ...s, ref: t }) });
4234
4237
  }
4235
- ), Ti = f.forwardRef((e, t) => {
4238
+ ), Ni = f.forwardRef((e, t) => {
4236
4239
  const r = Qe(be, e.__scopeTooltip), n = Nt(be, e.__scopeTooltip), o = f.useRef(null), s = G(t, o), [i, a] = f.useState(null), { trigger: d, onClose: l } = r, c = o.current, { onPointerInTransitChange: h } = n, m = f.useCallback(() => {
4237
4240
  a(null), h(!1);
4238
4241
  }, [h]), p = f.useCallback(
4239
4242
  (g, y) => {
4240
- const C = g.currentTarget, S = { x: g.clientX, y: g.clientY }, E = Oi(S, C.getBoundingClientRect()), R = Li(S, E), v = Di(y.getBoundingClientRect()), b = Mi([...R, ...v]);
4243
+ const C = g.currentTarget, S = { x: g.clientX, y: g.clientY }, E = Li(S, C.getBoundingClientRect()), R = Di(S, E), v = _i(y.getBoundingClientRect()), b = ki([...R, ...v]);
4241
4244
  a(b), h(!0);
4242
4245
  },
4243
4246
  [h]
@@ -4252,13 +4255,13 @@ var Si = "TooltipPortal", [ia, Ei] = Ke(Si, {
4252
4255
  }, [d, c, p, m]), f.useEffect(() => {
4253
4256
  if (i) {
4254
4257
  const g = (y) => {
4255
- const C = y.target, S = { x: y.clientX, y: y.clientY }, E = (d == null ? void 0 : d.contains(C)) || (c == null ? void 0 : c.contains(C)), R = !_i(S, i);
4258
+ const C = y.target, S = { x: y.clientX, y: y.clientY }, E = (d == null ? void 0 : d.contains(C)) || (c == null ? void 0 : c.contains(C)), R = !Mi(S, i);
4256
4259
  E ? m() : R && (m(), l());
4257
4260
  };
4258
4261
  return document.addEventListener("pointermove", g), () => document.removeEventListener("pointermove", g);
4259
4262
  }
4260
4263
  }, [d, c, i, l, m]), /* @__PURE__ */ u(sn, { ...e, ref: s });
4261
- }), [Ni, Pi] = Ke(Pe, { isInside: !1 }), Ri = Mn("TooltipContent"), sn = f.forwardRef(
4264
+ }), [Pi, Ri] = Ke(Pe, { isInside: !1 }), Ai = Mn("TooltipContent"), sn = f.forwardRef(
4262
4265
  (e, t) => {
4263
4266
  const {
4264
4267
  __scopeTooltip: r,
@@ -4286,7 +4289,7 @@ var Si = "TooltipPortal", [ia, Ei] = Ke(Si, {
4286
4289
  onFocusOutside: (h) => h.preventDefault(),
4287
4290
  onDismiss: c,
4288
4291
  children: /* @__PURE__ */ O(
4289
- ui,
4292
+ fi,
4290
4293
  {
4291
4294
  "data-state": d.stateAttribute,
4292
4295
  ...l,
@@ -4301,8 +4304,8 @@ var Si = "TooltipPortal", [ia, Ei] = Ke(Si, {
4301
4304
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
4302
4305
  },
4303
4306
  children: [
4304
- /* @__PURE__ */ u(Ri, { children: n }),
4305
- /* @__PURE__ */ u(Ni, { scope: r, isInside: !0, children: /* @__PURE__ */ u(bi, { id: d.contentId, role: "tooltip", children: o || n }) })
4307
+ /* @__PURE__ */ u(Ai, { children: n }),
4308
+ /* @__PURE__ */ u(Pi, { scope: r, isInside: !0, children: /* @__PURE__ */ u(yi, { id: d.contentId, role: "tooltip", children: o || n }) })
4306
4309
  ]
4307
4310
  }
4308
4311
  )
@@ -4311,17 +4314,17 @@ var Si = "TooltipPortal", [ia, Ei] = Ke(Si, {
4311
4314
  }
4312
4315
  );
4313
4316
  on.displayName = be;
4314
- var an = "TooltipArrow", Ai = f.forwardRef(
4317
+ var an = "TooltipArrow", Oi = f.forwardRef(
4315
4318
  (e, t) => {
4316
4319
  const { __scopeTooltip: r, ...n } = e, o = Ze(r);
4317
- return Pi(
4320
+ return Ri(
4318
4321
  an,
4319
4322
  r
4320
- ).isInside ? null : /* @__PURE__ */ u(fi, { ...o, ...n, ref: t });
4323
+ ).isInside ? null : /* @__PURE__ */ u(hi, { ...o, ...n, ref: t });
4321
4324
  }
4322
4325
  );
4323
- Ai.displayName = an;
4324
- function Oi(e, t) {
4326
+ Oi.displayName = an;
4327
+ function Li(e, t) {
4325
4328
  const r = Math.abs(t.top - e.y), n = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), s = Math.abs(t.left - e.x);
4326
4329
  switch (Math.min(r, n, o, s)) {
4327
4330
  case s:
@@ -4336,7 +4339,7 @@ function Oi(e, t) {
4336
4339
  throw new Error("unreachable");
4337
4340
  }
4338
4341
  }
4339
- function Li(e, t, r = 5) {
4342
+ function Di(e, t, r = 5) {
4340
4343
  const n = [];
4341
4344
  switch (t) {
4342
4345
  case "top":
@@ -4366,7 +4369,7 @@ function Li(e, t, r = 5) {
4366
4369
  }
4367
4370
  return n;
4368
4371
  }
4369
- function Di(e) {
4372
+ function _i(e) {
4370
4373
  const { top: t, right: r, bottom: n, left: o } = e;
4371
4374
  return [
4372
4375
  { x: o, y: t },
@@ -4375,7 +4378,7 @@ function Di(e) {
4375
4378
  { x: o, y: n }
4376
4379
  ];
4377
4380
  }
4378
- function _i(e, t) {
4381
+ function Mi(e, t) {
4379
4382
  const { x: r, y: n } = e;
4380
4383
  let o = !1;
4381
4384
  for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
@@ -4384,11 +4387,11 @@ function _i(e, t) {
4384
4387
  }
4385
4388
  return o;
4386
4389
  }
4387
- function Mi(e) {
4390
+ function ki(e) {
4388
4391
  const t = e.slice();
4389
- return t.sort((r, n) => r.x < n.x ? -1 : r.x > n.x ? 1 : r.y < n.y ? -1 : r.y > n.y ? 1 : 0), ki(t);
4392
+ return t.sort((r, n) => r.x < n.x ? -1 : r.x > n.x ? 1 : r.y < n.y ? -1 : r.y > n.y ? 1 : 0), $i(t);
4390
4393
  }
4391
- function ki(e) {
4394
+ function $i(e) {
4392
4395
  if (e.length <= 1) return e.slice();
4393
4396
  const t = [];
4394
4397
  for (let n = 0; n < e.length; n++) {
@@ -4413,8 +4416,8 @@ function ki(e) {
4413
4416
  }
4414
4417
  return r.pop(), t.length === 1 && r.length === 1 && t[0].x === r[0].x && t[0].y === r[0].y ? t : t.concat(r);
4415
4418
  }
4416
- var $i = tn, Ii = rn, zi = nn, ln = on;
4417
- const aa = $i, la = Ii, ca = zi, Hi = f.forwardRef(({ className: e, sideOffset: t = 4, ...r }, n) => /* @__PURE__ */ u(
4419
+ var Ii = tn, zi = rn, Hi = nn, ln = on;
4420
+ const la = Ii, ca = zi, da = Hi, Fi = f.forwardRef(({ className: e, sideOffset: t = 4, ...r }, n) => /* @__PURE__ */ u(
4418
4421
  ln,
4419
4422
  {
4420
4423
  ref: n,
@@ -4426,58 +4429,58 @@ const aa = $i, la = Ii, ca = zi, Hi = f.forwardRef(({ className: e, sideOffset:
4426
4429
  ...r
4427
4430
  }
4428
4431
  ));
4429
- Hi.displayName = ln.displayName;
4430
- const da = {
4432
+ Fi.displayName = ln.displayName;
4433
+ const ua = {
4431
4434
  ChatProvider: ct,
4432
4435
  ChatInterface: Re,
4433
4436
  MessageComponent: lr,
4434
4437
  ThreadManager: Ae,
4435
- ChatApp: uo,
4438
+ ChatApp: fo,
4436
4439
  useChat: ye
4437
4440
  };
4438
4441
  export {
4439
4442
  F as Button,
4440
- bo as Card,
4441
- So as CardContent,
4442
- Co as CardDescription,
4443
- Eo as CardFooter,
4444
- yo as CardHeader,
4445
- xo as CardTitle,
4446
- uo as ChatApp,
4443
+ yo as Card,
4444
+ Eo as CardContent,
4445
+ So as CardDescription,
4446
+ To as CardFooter,
4447
+ xo as CardHeader,
4448
+ Co as CardTitle,
4449
+ fo as ChatApp,
4447
4450
  Re as ChatInterface,
4448
4451
  ct as ChatProvider,
4449
- Qi as ChatWidget,
4450
- To as Input,
4451
- Ro as Label,
4452
+ ea as ChatWidget,
4453
+ No as Input,
4454
+ Ao as Label,
4452
4455
  ir as MESSAGE_MAX_LENGTH,
4453
4456
  lr as MessageComponent,
4454
4457
  Cr as ScrollArea,
4455
- Do as Separator,
4458
+ _o as Separator,
4456
4459
  In as THREAD_ID_PATTERN,
4457
4460
  It as TITLE_MAX_LENGTH,
4458
4461
  dt as Textarea,
4459
4462
  Ae as ThreadManager,
4460
- la as Tooltip,
4461
- Hi as TooltipContent,
4462
- aa as TooltipProvider,
4463
- ca as TooltipTrigger,
4463
+ ca as Tooltip,
4464
+ Fi as TooltipContent,
4465
+ la as TooltipProvider,
4466
+ da as TooltipTrigger,
4464
4467
  Y as cn,
4465
- da as default,
4466
- Gi as safeJsonParse,
4467
- Ui as sanitizeHtml,
4468
+ ua as default,
4469
+ Ki as safeJsonParse,
4470
+ Ji as sanitizeHtml,
4468
4471
  me as sanitizeText,
4469
4472
  ye as useChat,
4470
- ta as useChatActions,
4471
- vo as useChatMessages,
4472
- oa as useCodeExecution,
4473
- na as useFileContents,
4474
- ra as useSearchResults,
4475
- wo as useStreamMonitor,
4473
+ ra as useChatActions,
4474
+ wo as useChatMessages,
4475
+ sa as useCodeExecution,
4476
+ oa as useFileContents,
4477
+ na as useSearchResults,
4478
+ bo as useStreamMonitor,
4476
4479
  gt as useToolExtractor,
4477
- ea as useToolMessages,
4480
+ ta as useToolMessages,
4478
4481
  Ie as validateAndSanitizeMessage,
4479
- qi as validateAndSanitizeTitle,
4482
+ Gi as validateAndSanitizeTitle,
4480
4483
  zn as validateMessageLength,
4481
- Ji as validateThreadId,
4482
- Ki as withInputValidation
4484
+ qi as validateThreadId,
4485
+ Zi as withInputValidation
4483
4486
  };