@versini/sassysaint 7.2.0 → 7.2.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.
@@ -1,8 +1,8 @@
1
1
  import { jsx as l, jsxs as A, Fragment as Ee } from "react/jsx-runtime";
2
- import { f as ye, ACTION_SORT as Oa, ACTION_SEARCH as Ba, ACTION_RESET_PROMPT as In, ACTION_TOGGLE_PROMPT as An, ROLE_ASSISTANT as Ge, ROLE_INTERNAL as ve, DEFAULT_AI_PROVIDER as it, isProbablyiPhone as ot, re as Le, DEFAULT_ICON_ACTION_SIZE as ge, L as Ma, j as Vr, C as zr, LOCAL_STORAGE_PREFIX as jt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Pa, un as Oe, PROVIDER_ANTHROPIC as Rt, PROVIDER_OPENAI as Ur, PROMPT_CLASSNAME as Da, PROMPT_EDITABLE_AREA_CLASSNAME as Va, ROLE_SYSTEM as za, ROLE_HIDDEN as Ua, STATS_SEPARATOR as Fr, WAIT_SEPARATOR as Hr, ERROR_MESSAGE as Wr, CLIPBOARD_PROMPT as Gr, TYPE_QUESTION as Fa, ROLE_USER as fr, FOOTER_DISCLAIMER as Ha, isProbablyMobile as Wa, getMessageContaintWrapperClass as Ga, Logo as ja, getMainPaddingClass as jr, r as qa, LOCAL_STORAGE_SEARCH as Ka, LOCAL_STORAGE_SORT as Ya } from "./index.B3-UOQNr.js";
2
+ import { f as ye, ACTION_SORT as Oa, ACTION_SEARCH as Ba, ACTION_RESET_PROMPT as In, ACTION_TOGGLE_PROMPT as An, ROLE_ASSISTANT as Ge, ROLE_INTERNAL as ve, DEFAULT_AI_PROVIDER as ot, isProbablyiPhone as Gt, re as Le, DEFAULT_ICON_ACTION_SIZE as ge, L as Ma, j as Vr, C as zr, LOCAL_STORAGE_PREFIX as jt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Pa, un as Oe, PROVIDER_ANTHROPIC as Nt, PROVIDER_OPENAI as Ur, PROMPT_CLASSNAME as Da, PROMPT_EDITABLE_AREA_CLASSNAME as Va, ROLE_SYSTEM as za, ROLE_HIDDEN as Ua, STATS_SEPARATOR as Fr, WAIT_SEPARATOR as Hr, ERROR_MESSAGE as Wr, CLIPBOARD_PROMPT as Gr, TYPE_QUESTION as Fa, ROLE_USER as fr, FOOTER_DISCLAIMER as Ha, isProbablyMobile as Wa, getMessageContaintWrapperClass as Ga, Logo as ja, getMainPaddingClass as jr, r as qa, LOCAL_STORAGE_SEARCH as Ka, LOCAL_STORAGE_SORT as Ya } from "./index.CLI5DiPT.js";
3
3
  import m from "clsx";
4
4
  import * as J from "react";
5
- import U, { useEffect as M, useRef as S, useState as G, useCallback as Z, useSyncExternalStore as Ja, useMemo as ie, useId as hr, useLayoutEffect as pe, useContext as W, createContext as Za, useDebugValue as Xa, forwardRef as $n, lazy as Ln, Suspense as qt, useReducer as It } from "react";
5
+ import U, { useEffect as M, useRef as S, useState as G, useCallback as Z, useSyncExternalStore as Ja, useMemo as ie, useId as hr, useLayoutEffect as pe, useContext as W, createContext as Za, useDebugValue as Xa, forwardRef as $n, lazy as Ln, Suspense as qt, useReducer as Rt } from "react";
6
6
  import { useMergeRefs as gr, FloatingPortal as On, FloatingOverlay as Qa, FloatingFocusManager as Bn, useFloating as Mn, useClick as Pn, useDismiss as Dn, useRole as Vn, useInteractions as zn, useFloatingTree as Un, useFloatingNodeId as eo, useListItem as Fn, offset as to, flip as ro, shift as no, autoUpdate as ao, useListNavigation as oo, useTypeahead as io, FloatingNode as so, FloatingList as lo, FloatingTree as co } from "@floating-ui/react";
7
7
  const qr = ({
8
8
  className: e,
@@ -449,7 +449,7 @@ try {
449
449
  });
450
450
  } catch {
451
451
  }
452
- const mt = "thead", pr = "tfoot", Ne = "tbody", Fe = {
452
+ const ut = "thead", pr = "tfoot", Ne = "tbody", Fe = {
453
453
  ASC: "asc",
454
454
  DESC: "desc"
455
455
  }, Bo = ({
@@ -517,7 +517,7 @@ const mt = "thead", pr = "tfoot", Ne = "tbody", Fe = {
517
517
  mode: e,
518
518
  className: t,
519
519
  cellWrapper: r
520
- }) => r === mt || r === pr ? m(
520
+ }) => r === ut || r === pr ? m(
521
521
  {
522
522
  "bg-table-head-dark": e === "dark" || e === "system",
523
523
  "bg-table-head-light": e === "light" || e === "alt-system",
@@ -556,7 +556,7 @@ const mt = "thead", pr = "tfoot", Ne = "tbody", Fe = {
556
556
  "text-copy-dark": n === "light" || n === "alt-system",
557
557
  "dark:text-copy-dark": n === "system",
558
558
  "dark:text-copy-light": n === "alt-system",
559
- "px-4 py-3": !r && (e === mt || e === pr),
559
+ "px-4 py-3": !r && (e === ut || e === pr),
560
560
  "p-4": !r && e === Ne,
561
561
  "px-2 py-1.5": r
562
562
  },
@@ -564,7 +564,7 @@ const mt = "thead", pr = "tfoot", Ne = "tbody", Fe = {
564
564
  )
565
565
  }), zo = ({
566
566
  buttonClassName: e
567
- }) => m("rounded-none text-sm", e), Xr = "av-button", ft = "icon", Gn = "button", Yt = "link", Uo = ({
567
+ }) => m("rounded-none text-sm", e), Xr = "av-button", mt = "icon", Gn = "button", Yt = "link", Uo = ({
568
568
  type: e,
569
569
  size: t,
570
570
  labelRight: r,
@@ -581,7 +581,7 @@ const mt = "thead", pr = "tfoot", Ne = "tbody", Fe = {
581
581
  [s]: t === "medium",
582
582
  [c]: t === "large"
583
583
  });
584
- case ft:
584
+ case mt:
585
585
  return m("flex items-center", {
586
586
  "justify-center": a === "center",
587
587
  "justify-start": a === "left",
@@ -616,7 +616,7 @@ const mt = "thead", pr = "tfoot", Ne = "tbody", Fe = {
616
616
  [o]: t === "medium",
617
617
  [i]: t === "large"
618
618
  });
619
- case ft:
619
+ case mt:
620
620
  return m({
621
621
  [a]: t === "small" && (r || n),
622
622
  [o]: t === "medium" && (r || n),
@@ -854,7 +854,7 @@ const mt = "thead", pr = "tfoot", Ne = "tbody", Fe = {
854
854
  "disabled:cursor-not-allowed disabled:opacity-50": o
855
855
  },
856
856
  m({
857
- "transition-[width] duration-300 ease-in-out": e === ft && v
857
+ "transition-[width] duration-300 ease-in-out": e === mt && v
858
858
  }),
859
859
  t
860
860
  )), Qo = (e, t, r) => {
@@ -898,7 +898,7 @@ const ri = {
898
898
  bottom: 0,
899
899
  right: 0
900
900
  };
901
- function At(e) {
901
+ function It(e) {
902
902
  const t = ei(), r = S(0), n = S(null), [a, o] = G(ri), i = ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
903
903
  const c = s[0];
904
904
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
@@ -948,7 +948,7 @@ const ni = {
948
948
  ...I
949
949
  }, E) => {
950
950
  const C = Xo({
951
- type: ft,
951
+ type: mt,
952
952
  mode: r,
953
953
  focusMode: n,
954
954
  fullWidth: a,
@@ -964,7 +964,7 @@ const ni = {
964
964
  radius: v,
965
965
  variant: b,
966
966
  animated: k
967
- }), $ = Jo({ mode: r, raw: s, iconClassName: x }), _ = Zo({ animated: k }), [w, N] = At(), [T, L] = At(), [O, B] = At(), D = S(0), R = S(null), F = ti([E, R]);
967
+ }), $ = Jo({ mode: r, raw: s, iconClassName: x }), _ = Zo({ animated: k }), [w, N] = It(), [T, L] = It(), [O, B] = It(), D = S(0), R = S(null), F = ti([E, R]);
968
968
  return pe(() => {
969
969
  O && O.current && k && (D.current = B.width + ai[u] + (c ? 0 : oi));
970
970
  }, [B, O, u, c, k]), pe(() => {
@@ -1211,7 +1211,7 @@ const Be = U.createContext({
1211
1211
  stickyHeader: !1,
1212
1212
  stickyFooter: !1,
1213
1213
  compact: !1
1214
- }), Zc = ({
1214
+ }), Xc = ({
1215
1215
  children: e,
1216
1216
  mode: t = "system",
1217
1217
  caption: r,
@@ -1250,20 +1250,20 @@ const Be = U.createContext({
1250
1250
  )
1251
1251
  }
1252
1252
  );
1253
- }, Xc = ({
1253
+ }, Qc = ({
1254
1254
  children: e,
1255
1255
  className: t,
1256
1256
  ...r
1257
1257
  }) => {
1258
1258
  const n = W(Be);
1259
- n.cellWrapper = mt;
1259
+ n.cellWrapper = ut;
1260
1260
  const a = Mo({
1261
1261
  className: t,
1262
1262
  mode: n.mode,
1263
1263
  stickyHeader: n.stickyHeader
1264
1264
  });
1265
1265
  return /* @__PURE__ */ l("thead", { className: a, ...r, children: e });
1266
- }, Qc = ({
1266
+ }, ed = ({
1267
1267
  children: e,
1268
1268
  className: t,
1269
1269
  ...r
@@ -1276,10 +1276,10 @@ const Be = U.createContext({
1276
1276
  stickyFooter: n.stickyFooter
1277
1277
  });
1278
1278
  return /* @__PURE__ */ l("tfoot", { className: a, ...r, children: e });
1279
- }, ed = ({ children: e, ...t }) => {
1279
+ }, td = ({ children: e, ...t }) => {
1280
1280
  const r = W(Be);
1281
1281
  return r.cellWrapper = Ne, /* @__PURE__ */ l("tbody", { ...t, children: e });
1282
- }, td = ({
1282
+ }, rd = ({
1283
1283
  children: e,
1284
1284
  className: t,
1285
1285
  ...r
@@ -1297,7 +1297,7 @@ const Be = U.createContext({
1297
1297
  align: n,
1298
1298
  ...a
1299
1299
  }) => {
1300
- const o = W(Be), i = t || (o.cellWrapper === mt ? "th" : "td"), { mainClasses: s, alignClasses: c } = Vo({
1300
+ const o = W(Be), i = t || (o.cellWrapper === ut ? "th" : "td"), { mainClasses: s, alignClasses: c } = Vo({
1301
1301
  cellWrapper: o.cellWrapper,
1302
1302
  className: r,
1303
1303
  mode: o.mode,
@@ -1305,7 +1305,7 @@ const Be = U.createContext({
1305
1305
  align: n
1306
1306
  });
1307
1307
  return n ? /* @__PURE__ */ l(i, { className: s, ...a, children: /* @__PURE__ */ l("div", { className: c, children: e }) }) : /* @__PURE__ */ l(i, { className: s, ...a, children: e });
1308
- }, rd = ({
1308
+ }, nd = ({
1309
1309
  align: e,
1310
1310
  children: t,
1311
1311
  buttonClassName: r,
@@ -1351,18 +1351,18 @@ for (let e = 0; e < 256; ++e)
1351
1351
  function di(e, t = 0) {
1352
1352
  return (Y[e[t + 0]] + Y[e[t + 1]] + Y[e[t + 2]] + Y[e[t + 3]] + "-" + Y[e[t + 4]] + Y[e[t + 5]] + "-" + Y[e[t + 6]] + Y[e[t + 7]] + "-" + Y[e[t + 8]] + Y[e[t + 9]] + "-" + Y[e[t + 10]] + Y[e[t + 11]] + Y[e[t + 12]] + Y[e[t + 13]] + Y[e[t + 14]] + Y[e[t + 15]]).toLowerCase();
1353
1353
  }
1354
- let $t;
1354
+ let At;
1355
1355
  const ui = new Uint8Array(16);
1356
1356
  function mi() {
1357
- if (!$t) {
1357
+ if (!At) {
1358
1358
  if (typeof crypto > "u" || !crypto.getRandomValues)
1359
1359
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1360
- $t = crypto.getRandomValues.bind(crypto);
1360
+ At = crypto.getRandomValues.bind(crypto);
1361
1361
  }
1362
- return $t(ui);
1362
+ return At(ui);
1363
1363
  }
1364
1364
  const fi = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), en = { randomUUID: fi };
1365
- function st(e, t, r) {
1365
+ function it(e, t, r) {
1366
1366
  var a;
1367
1367
  if (en.randomUUID && !e)
1368
1368
  return en.randomUUID();
@@ -1405,7 +1405,7 @@ const hi = (e, t) => {
1405
1405
  return e;
1406
1406
  }
1407
1407
  };
1408
- var et = { exports: {} }, Lt = {};
1408
+ var et = { exports: {} }, $t = {};
1409
1409
  /**
1410
1410
  * @license React
1411
1411
  * use-sync-external-store-shim.production.js
@@ -1417,7 +1417,7 @@ var et = { exports: {} }, Lt = {};
1417
1417
  */
1418
1418
  var tn;
1419
1419
  function pi() {
1420
- if (tn) return Lt;
1420
+ if (tn) return $t;
1421
1421
  tn = 1;
1422
1422
  var e = U;
1423
1423
  function t(u, f) {
@@ -1454,9 +1454,9 @@ function pi() {
1454
1454
  return f();
1455
1455
  }
1456
1456
  var h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : s;
1457
- return Lt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : h, Lt;
1457
+ return $t.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : h, $t;
1458
1458
  }
1459
- var Ot = {};
1459
+ var Lt = {};
1460
1460
  /**
1461
1461
  * @license React
1462
1462
  * use-sync-external-store-shim.development.js
@@ -1516,8 +1516,8 @@ function yi() {
1516
1516
  }
1517
1517
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1518
1518
  var a = U, o = typeof Object.is == "function" ? Object.is : e, i = a.useState, s = a.useEffect, c = a.useLayoutEffect, d = a.useDebugValue, h = !1, u = !1, f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? n : t;
1519
- Ot.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1520
- }()), Ot;
1519
+ Lt.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1520
+ }()), Lt;
1521
1521
  }
1522
1522
  var nn;
1523
1523
  function bi() {
@@ -1551,26 +1551,26 @@ const le = /* @__PURE__ */ new WeakMap(), ke = () => {
1551
1551
  ), Zt = Object, P = (e) => e === ee, ce = (e) => typeof e == "function", we = (e, t) => ({
1552
1552
  ...e,
1553
1553
  ...t
1554
- }), Yn = (e) => ce(e.then), Bt = {}, tt = {}, br = "undefined", ht = typeof window != br, Xt = typeof document != br, ki = () => ht && typeof window.requestAnimationFrame != br, Jn = (e, t) => {
1554
+ }), Yn = (e) => ce(e.then), Ot = {}, tt = {}, br = "undefined", ft = typeof window != br, Xt = typeof document != br, ki = () => ft && typeof window.requestAnimationFrame != br, Jn = (e, t) => {
1555
1555
  const r = le.get(e);
1556
1556
  return [
1557
1557
  // Getter
1558
- () => !P(t) && e.get(t) || Bt,
1558
+ () => !P(t) && e.get(t) || Ot,
1559
1559
  // Setter
1560
1560
  (n) => {
1561
1561
  if (!P(t)) {
1562
1562
  const a = e.get(t);
1563
- t in tt || (tt[t] = a), r[5](t, we(a, n), a || Bt);
1563
+ t in tt || (tt[t] = a), r[5](t, we(a, n), a || Ot);
1564
1564
  }
1565
1565
  },
1566
1566
  // Subscriber
1567
1567
  r[6],
1568
1568
  // Get server cache snapshot
1569
- () => !P(t) && t in tt ? tt[t] : !P(t) && e.get(t) || Bt
1569
+ () => !P(t) && t in tt ? tt[t] : !P(t) && e.get(t) || Ot
1570
1570
  ];
1571
1571
  };
1572
1572
  let Qt = !0;
1573
- const wi = () => Qt, [er, tr] = ht && window.addEventListener ? [
1573
+ const wi = () => Qt, [er, tr] = ft && window.addEventListener ? [
1574
1574
  window.addEventListener.bind(window),
1575
1575
  window.removeEventListener.bind(window)
1576
1576
  ] : [
@@ -1596,13 +1596,13 @@ const wi = () => Qt, [er, tr] = ht && window.addEventListener ? [
1596
1596
  }, Si = {
1597
1597
  initFocus: _i,
1598
1598
  initReconnect: Ei
1599
- }, on = !U.useId, je = !ht || "Deno" in globalThis, Ci = (e) => ki() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Mt = je ? M : pe, Pt = typeof navigator < "u" && navigator.connection, sn = !je && Pt && ([
1599
+ }, on = !U.useId, je = !ft || "Deno" in globalThis, Ci = (e) => ki() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Bt = je ? M : pe, Mt = typeof navigator < "u" && navigator.connection, sn = !je && Mt && ([
1600
1600
  "slow-2g",
1601
1601
  "2g"
1602
- ].includes(Pt.effectiveType) || Pt.saveData), rt = /* @__PURE__ */ new WeakMap(), Dt = (e, t) => Zt.prototype.toString.call(e) === `[object ${t}]`;
1602
+ ].includes(Mt.effectiveType) || Mt.saveData), rt = /* @__PURE__ */ new WeakMap(), Pt = (e, t) => Zt.prototype.toString.call(e) === `[object ${t}]`;
1603
1603
  let Ni = 0;
1604
1604
  const rr = (e) => {
1605
- const t = typeof e, r = Dt(e, "Date"), n = Dt(e, "RegExp"), a = Dt(e, "Object");
1605
+ const t = typeof e, r = Pt(e, "Date"), n = Pt(e, "RegExp"), a = Pt(e, "Object");
1606
1606
  let o, i;
1607
1607
  if (Zt(e) === e && !r && !n) {
1608
1608
  if (o = rt.get(e), o) return o;
@@ -1621,7 +1621,7 @@ const rr = (e) => {
1621
1621
  } else
1622
1622
  o = r ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
1623
1623
  return o;
1624
- }, gt = (e) => {
1624
+ }, ht = (e) => {
1625
1625
  if (ce(e))
1626
1626
  try {
1627
1627
  e = e();
@@ -1663,7 +1663,7 @@ async function ea(...e) {
1663
1663
  }
1664
1664
  return u(r);
1665
1665
  async function u(f) {
1666
- const [g] = gt(f);
1666
+ const [g] = ht(f);
1667
1667
  if (!g) return;
1668
1668
  const [p, y] = Jn(t, g), [v, b, x, k] = le.get(t), I = () => {
1669
1669
  const O = v[g];
@@ -1802,7 +1802,7 @@ const ln = (e, t) => {
1802
1802
  n && o && (r.use = n.concat(o)), a && i && (r.fallback = we(a, i));
1803
1803
  }
1804
1804
  return r;
1805
- }, Pi = Za({}), Di = "$inf$", ta = ht && window.__SWR_DEVTOOLS_USE__, Vi = ta ? window.__SWR_DEVTOOLS_USE__ : [], zi = () => {
1805
+ }, Pi = Za({}), Di = "$inf$", ta = ft && window.__SWR_DEVTOOLS_USE__, Vi = ta ? window.__SWR_DEVTOOLS_USE__ : [], zi = () => {
1806
1806
  ta && (window.__SWR_DEVTOOLS_REACT__ = U);
1807
1807
  }, Ui = (e) => ce(e[1]) ? [
1808
1808
  e[0],
@@ -1813,12 +1813,12 @@ const ln = (e, t) => {
1813
1813
  null,
1814
1814
  (e[1] === null ? e[2] : e[1]) || {}
1815
1815
  ], Fi = () => we(Bi, W(Pi)), ra = (e, t) => {
1816
- const [r, n] = gt(e), [, , , a] = le.get(vr);
1816
+ const [r, n] = ht(e), [, , , a] = le.get(vr);
1817
1817
  if (a[r]) return a[r];
1818
1818
  const o = t(n);
1819
1819
  return a[r] = o, o;
1820
1820
  }, Hi = (e) => (t, r, n) => e(t, r && ((...o) => {
1821
- const [i] = gt(t), [, , , s] = le.get(vr);
1821
+ const [i] = ht(t), [, , , s] = le.get(vr);
1822
1822
  if (i.startsWith(Di))
1823
1823
  return r(...o);
1824
1824
  const c = s[i];
@@ -1838,7 +1838,7 @@ const ln = (e, t) => {
1838
1838
  };
1839
1839
  };
1840
1840
  zi();
1841
- const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
1841
+ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
1842
1842
  // and emitting an error.
1843
1843
  // We assume that this is only for the `use(thenable)` case, not `use(context)`.
1844
1844
  // https://github.com/facebook/react/blob/aed00dacfb79d17c53218404c52b1c7aa59c4a89/packages/react-server/src/ReactFizzThenable.js#L45
@@ -1857,10 +1857,10 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
1857
1857
  e.status = "rejected", e.reason = t;
1858
1858
  }), e;
1859
1859
  }
1860
- }), zt = {
1860
+ }), Vt = {
1861
1861
  dedupe: !0
1862
1862
  }, qi = (e, t, r) => {
1863
- const { cache: n, compare: a, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline: u, keepPreviousData: f } = r, [g, p, y, v] = le.get(n), [b, x] = gt(e), k = S(!1), I = S(!1), E = S(b), C = S(t), $ = S(r), _ = () => $.current, w = () => _().isVisible() && _().isOnline(), [N, T, L, O] = Jn(n, b), B = S({}).current, D = P(i) ? P(r.fallback) ? ee : r.fallback[b] : i, R = (V, z) => {
1863
+ const { cache: n, compare: a, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline: u, keepPreviousData: f } = r, [g, p, y, v] = le.get(n), [b, x] = ht(e), k = S(!1), I = S(!1), E = S(b), C = S(t), $ = S(r), _ = () => $.current, w = () => _().isVisible() && _().isOnline(), [N, T, L, O] = Jn(n, b), B = S({}).current, D = P(i) ? P(r.fallback) ? ee : r.fallback[b] : i, R = (V, z) => {
1864
1864
  for (const X in B) {
1865
1865
  const H = X;
1866
1866
  if (H === "data") {
@@ -1899,7 +1899,7 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
1899
1899
  n,
1900
1900
  b
1901
1901
  ]
1902
- ), F[0], F[1]), q = !k.current, St = g[b] && g[b].length > 0, Te = j.data, Se = P(Te) ? D && Yn(D) ? Vt(D) : D : Te, Xe = j.error, $r = S(Se), Qe = f ? P(Te) ? $r.current : Te : Se, Lr = St && !P(Xe) ? !1 : q && !P(s) ? s : _().isPaused() ? !1 : o ? P(Se) ? !1 : c : P(Se) || c, Or = !!(b && t && q && Lr), Aa = P(j.isValidating) ? Or : j.isValidating, $a = P(j.isLoading) ? Or : j.isLoading, ze = Z(
1902
+ ), F[0], F[1]), q = !k.current, Tt = g[b] && g[b].length > 0, Te = j.data, Se = P(Te) ? D && Yn(D) ? Dt(D) : D : Te, Xe = j.error, $r = S(Se), Qe = f ? P(Te) ? $r.current : Te : Se, Lr = Tt && !P(Xe) ? !1 : q && !P(s) ? s : _().isPaused() ? !1 : o ? P(Se) ? !1 : c : P(Se) || c, Or = !!(b && t && q && Lr), Aa = P(j.isValidating) ? Or : j.isValidating, $a = P(j.isLoading) ? Or : j.isLoading, ze = Z(
1903
1903
  async (V) => {
1904
1904
  const z = C.current;
1905
1905
  if (!b || !z || I.current || _().isPaused())
@@ -1936,10 +1936,10 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
1936
1936
  me.data = a(fe, X) ? fe : X, K && Q() && _().onSuccess(X, b, r);
1937
1937
  } catch (re) {
1938
1938
  Pr();
1939
- const fe = _(), { shouldRetryOnError: Ct } = fe;
1940
- fe.isPaused() || (me.error = re, K && Q() && (fe.onError(re, b, fe), (Ct === !0 || ce(Ct) && Ct(re)) && (!_().revalidateOnFocus || !_().revalidateOnReconnect || w()) && fe.onErrorRetry(re, b, fe, (La) => {
1941
- const Nt = g[b];
1942
- Nt && Nt[0] && Nt[0](Ue.ERROR_REVALIDATE_EVENT, La);
1939
+ const fe = _(), { shouldRetryOnError: St } = fe;
1940
+ fe.isPaused() || (me.error = re, K && Q() && (fe.onError(re, b, fe), (St === !0 || ce(St) && St(re)) && (!_().revalidateOnFocus || !_().revalidateOnReconnect || w()) && fe.onErrorRetry(re, b, fe, (La) => {
1941
+ const Ct = g[b];
1942
+ Ct && Ct[0] && Ct[0](Ue.ERROR_REVALIDATE_EVENT, La);
1943
1943
  }, {
1944
1944
  retryCount: (Ce.retryCount || 0) + 1,
1945
1945
  dedupe: !0
@@ -1968,11 +1968,11 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
1968
1968
  // eslint-disable-next-line react-hooks/exhaustive-deps
1969
1969
  []
1970
1970
  );
1971
- if (Mt(() => {
1971
+ if (Bt(() => {
1972
1972
  C.current = t, $.current = r, P(Te) || ($r.current = Te);
1973
- }), Mt(() => {
1973
+ }), Bt(() => {
1974
1974
  if (!b) return;
1975
- const V = ze.bind(ee, zt);
1975
+ const V = ze.bind(ee, Vt);
1976
1976
  let z = 0;
1977
1977
  const H = ji(b, g, (se, Ce = {}) => {
1978
1978
  if (se == Ue.FOCUS_EVENT) {
@@ -1994,14 +1994,14 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
1994
1994
  };
1995
1995
  }, [
1996
1996
  b
1997
- ]), Mt(() => {
1997
+ ]), Bt(() => {
1998
1998
  let V;
1999
1999
  function z() {
2000
2000
  const H = ce(d) ? d(N().data) : d;
2001
2001
  H && V !== -1 && (V = setTimeout(X, H));
2002
2002
  }
2003
2003
  function X() {
2004
- !N().error && (h || _().isVisible()) && (u || _().isOnline()) ? ze(zt).then(z) : z();
2004
+ !N().error && (h || _().isVisible()) && (u || _().isOnline()) ? ze(Vt).then(z) : z();
2005
2005
  }
2006
2006
  return z(), () => {
2007
2007
  V && (clearTimeout(V), V = -1);
@@ -2018,11 +2018,11 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2018
2018
  const V = v[b];
2019
2019
  if (!P(V)) {
2020
2020
  const z = Br(V);
2021
- Vt(z);
2021
+ Dt(z);
2022
2022
  }
2023
2023
  if (P(Xe)) {
2024
- const z = ze(zt);
2025
- P(Qe) || (z.status = "fulfilled", z.value = !0), Vt(z);
2024
+ const z = ze(Vt);
2025
+ P(Qe) || (z.status = "fulfilled", z.value = !0), Dt(z);
2026
2026
  } else
2027
2027
  throw Xe;
2028
2028
  }
@@ -2120,7 +2120,6 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2120
2120
  getServerCapabilities {
2121
2121
  version
2122
2122
  models
2123
- plugins
2124
2123
  providers
2125
2124
  runningMode
2126
2125
  }
@@ -2262,7 +2261,7 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2262
2261
  });
2263
2262
  } catch {
2264
2263
  }
2265
- }, pt = ({
2264
+ }, gt = ({
2266
2265
  fetcher: e,
2267
2266
  scope: t,
2268
2267
  keys: r,
@@ -2275,7 +2274,7 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2275
2274
  { ...n }
2276
2275
  );
2277
2276
  return { data: o, error: i, isLoading: s, mutate: c };
2278
- }, yt = async ({
2277
+ }, pt = async ({
2279
2278
  getAccessToken: e,
2280
2279
  type: t,
2281
2280
  params: r
@@ -2288,7 +2287,7 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2288
2287
  if (a.status === 200 && a.errors === void 0)
2289
2288
  return a.data;
2290
2289
  throw new Error("An error occurred while fetching the data.");
2291
- }, Xi = async ([e, t], r) => yt({
2290
+ }, Xi = async ([e, t], r) => pt({
2292
2291
  getAccessToken: r,
2293
2292
  type: Me.GET_USER_PREFERENCES,
2294
2293
  params: {
@@ -2298,7 +2297,7 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2298
2297
  keys: e,
2299
2298
  getAccessToken: t,
2300
2299
  isPaused: r = !1
2301
- }) => pt({
2300
+ }) => gt({
2302
2301
  fetcher: Xi,
2303
2302
  scope: "/preferences",
2304
2303
  keys: e,
@@ -2309,16 +2308,16 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2309
2308
  revalidateOnReconnect: r
2310
2309
  },
2311
2310
  getAccessToken: t
2312
- }), Qi = async ([e, t], r) => yt({
2311
+ }), Qi = async ([e, t], r) => pt({
2313
2312
  getAccessToken: r,
2314
2313
  type: Me.GET_CHATS_STATS,
2315
2314
  params: {
2316
2315
  user: t
2317
2316
  }
2318
- }), nd = ({
2317
+ }), ad = ({
2319
2318
  keys: e,
2320
2319
  getAccessToken: t
2321
- }) => pt({
2320
+ }) => gt({
2322
2321
  fetcher: Qi,
2323
2322
  scope: "/stats",
2324
2323
  keys: e,
@@ -2330,7 +2329,7 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2330
2329
  revalidateOnReconnect: !0
2331
2330
  },
2332
2331
  getAccessToken: t
2333
- }), aa = async ([e, t, r, n], a) => yt({
2332
+ }), aa = async ([e, t, r, n], a) => pt({
2334
2333
  getAccessToken: a,
2335
2334
  type: Me.GET_CHATS,
2336
2335
  params: {
@@ -2340,10 +2339,10 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2340
2339
  limit: 1,
2341
2340
  truncateSize: 100
2342
2341
  }
2343
- }), ad = ({
2342
+ }), od = ({
2344
2343
  keys: e,
2345
2344
  getAccessToken: t
2346
- }) => pt({
2345
+ }) => gt({
2347
2346
  fetcher: aa,
2348
2347
  scope: "/history",
2349
2348
  keys: e,
@@ -2360,12 +2359,12 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2360
2359
  getAccessToken: t
2361
2360
  }) => {
2362
2361
  ra(["/history", ...e], (r) => aa(r, t));
2363
- }, oa = async ([e], t) => yt({
2362
+ }, oa = async ([e], t) => pt({
2364
2363
  getAccessToken: t,
2365
2364
  type: Me.GET_SERVER_CAPABILITIES
2366
- }), od = ({
2365
+ }), id = ({
2367
2366
  getAccessToken: e
2368
- }) => pt({
2367
+ }) => gt({
2369
2368
  fetcher: oa,
2370
2369
  scope: "/capabilities",
2371
2370
  keys: [],
@@ -2445,7 +2444,7 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2445
2444
  case Pe: {
2446
2445
  let p = !1;
2447
2446
  return typeof ((f = t == null ? void 0 : t.payload) == null ? void 0 : f.privateChat) == "boolean" ? p = t.payload.privateChat : typeof e.privateChat == "boolean" && (p = e.privateChat), {
2448
- id: st(),
2447
+ id: it(),
2449
2448
  model: e.model,
2450
2449
  provider: ((g = t == null ? void 0 : t.payload) == null ? void 0 : g.provider) || e.provider,
2451
2450
  privateChat: p,
@@ -2480,15 +2479,15 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2480
2479
  state: { searchString: "", sortedCell: "", sortDirection: "" },
2481
2480
  dispatch: () => {
2482
2481
  }
2483
- }), bt = U.createContext({
2482
+ }), yt = U.createContext({
2484
2483
  state: { prompt: "", lastTriggeredTimestamp: 0 },
2485
2484
  dispatch: () => {
2486
2485
  }
2487
2486
  }), ne = U.createContext({
2488
2487
  state: {
2489
2488
  id: "",
2490
- model: it,
2491
- provider: it,
2489
+ model: ot,
2490
+ provider: ot,
2492
2491
  privateChat: !1,
2493
2492
  usage: 0,
2494
2493
  messages: [],
@@ -2513,7 +2512,7 @@ try {
2513
2512
  });
2514
2513
  } catch {
2515
2514
  }
2516
- const ss = "av-tooltip", ls = "av-tooltip-arrow", qe = Math.min, Re = Math.max, lt = Math.round, de = (e) => ({
2515
+ const ss = "av-tooltip", ls = "av-tooltip-arrow", qe = Math.min, Re = Math.max, st = Math.round, de = (e) => ({
2517
2516
  x: e,
2518
2517
  y: e
2519
2518
  }), cs = {
@@ -2553,10 +2552,10 @@ function us(e, t, r) {
2553
2552
  r === void 0 && (r = !1);
2554
2553
  const n = Je(e), a = _r(e), o = xr(a);
2555
2554
  let i = a === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
2556
- return t.reference[o] > t.floating[o] && (i = ct(i)), [i, ct(i)];
2555
+ return t.reference[o] > t.floating[o] && (i = lt(i)), [i, lt(i)];
2557
2556
  }
2558
2557
  function ms(e) {
2559
- const t = ct(e);
2558
+ const t = lt(e);
2560
2559
  return [lr(e), t, lr(t)];
2561
2560
  }
2562
2561
  function lr(e) {
@@ -2580,7 +2579,7 @@ function hs(e, t, r, n) {
2580
2579
  let o = fs(_e(e), r === "start", n);
2581
2580
  return a && (o = o.map((i) => i + "-" + a), t && (o = o.concat(o.map(lr)))), o;
2582
2581
  }
2583
- function ct(e) {
2582
+ function lt(e) {
2584
2583
  return e.replace(/left|right|bottom|top/g, (t) => cs[t]);
2585
2584
  }
2586
2585
  function gs(e) {
@@ -2600,7 +2599,7 @@ function sa(e) {
2600
2599
  left: e
2601
2600
  };
2602
2601
  }
2603
- function dt(e) {
2602
+ function ct(e) {
2604
2603
  const {
2605
2604
  x: t,
2606
2605
  y: r,
@@ -2743,7 +2742,7 @@ async function la(e, t) {
2743
2742
  elementContext: u = "floating",
2744
2743
  altBoundary: f = !1,
2745
2744
  padding: g = 0
2746
- } = Ye(t, e), p = sa(g), y = s[f ? u === "floating" ? "reference" : "floating" : u], v = dt(await o.getClippingRect({
2745
+ } = Ye(t, e), p = sa(g), y = s[f ? u === "floating" ? "reference" : "floating" : u], v = ct(await o.getClippingRect({
2747
2746
  element: (r = await (o.isElement == null ? void 0 : o.isElement(y))) == null || r ? y : y.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
2748
2747
  boundary: d,
2749
2748
  rootBoundary: h,
@@ -2759,7 +2758,7 @@ async function la(e, t) {
2759
2758
  } : {
2760
2759
  x: 1,
2761
2760
  y: 1
2762
- }, I = dt(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
2761
+ }, I = ct(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
2763
2762
  elements: s,
2764
2763
  rect: b,
2765
2764
  offsetParent: x,
@@ -2833,7 +2832,7 @@ const ys = (e) => ({
2833
2832
  } = Ye(e, t);
2834
2833
  if ((r = o.arrow) != null && r.alignmentOffset)
2835
2834
  return {};
2836
- const b = _e(a), x = Ae(s), k = _e(s) === s, I = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), E = f || (k || !y ? [ct(s)] : ms(s)), C = p !== "none";
2835
+ const b = _e(a), x = Ae(s), k = _e(s) === s, I = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), E = f || (k || !y ? [lt(s)] : ms(s)), C = p !== "none";
2837
2836
  !f && C && E.push(...hs(s, y, p, I));
2838
2837
  const $ = [s, ...E], _ = await la(t, v), w = [];
2839
2838
  let N = ((n = o.flip) == null ? void 0 : n.overflows) || [];
@@ -2870,7 +2869,7 @@ const ys = (e) => ({
2870
2869
  q === "y";
2871
2870
  }
2872
2871
  return !0;
2873
- }).map((j) => [j.placement, j.overflows.filter((q) => q > 0).reduce((q, St) => q + St, 0)]).sort((j, q) => j[1] - q[1])[0]) == null ? void 0 : O[0];
2872
+ }).map((j) => [j.placement, j.overflows.filter((q) => q > 0).reduce((q, Tt) => q + Tt, 0)]).sort((j, q) => j[1] - q[1])[0]) == null ? void 0 : O[0];
2874
2873
  F && (R = F);
2875
2874
  break;
2876
2875
  }
@@ -2995,7 +2994,7 @@ const ks = function(e) {
2995
2994
  }
2996
2995
  };
2997
2996
  };
2998
- function vt() {
2997
+ function bt() {
2999
2998
  return typeof window < "u";
3000
2999
  }
3001
3000
  function De(e) {
@@ -3010,16 +3009,16 @@ function be(e) {
3010
3009
  return (t = (ca(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
3011
3010
  }
3012
3011
  function ca(e) {
3013
- return vt() ? e instanceof Node || e instanceof te(e).Node : !1;
3012
+ return bt() ? e instanceof Node || e instanceof te(e).Node : !1;
3014
3013
  }
3015
3014
  function ae(e) {
3016
- return vt() ? e instanceof Element || e instanceof te(e).Element : !1;
3015
+ return bt() ? e instanceof Element || e instanceof te(e).Element : !1;
3017
3016
  }
3018
3017
  function ue(e) {
3019
- return vt() ? e instanceof HTMLElement || e instanceof te(e).HTMLElement : !1;
3018
+ return bt() ? e instanceof HTMLElement || e instanceof te(e).HTMLElement : !1;
3020
3019
  }
3021
3020
  function dn(e) {
3022
- return !vt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof te(e).ShadowRoot;
3021
+ return !bt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof te(e).ShadowRoot;
3023
3022
  }
3024
3023
  function Ze(e) {
3025
3024
  const {
@@ -3033,7 +3032,7 @@ function Ze(e) {
3033
3032
  function xs(e) {
3034
3033
  return ["table", "td", "th"].includes(De(e));
3035
3034
  }
3036
- function kt(e) {
3035
+ function vt(e) {
3037
3036
  return [":popover-open", ":modal"].some((t) => {
3038
3037
  try {
3039
3038
  return e.matches(t);
@@ -3051,7 +3050,7 @@ function _s(e) {
3051
3050
  for (; ue(t) && !$e(t); ) {
3052
3051
  if (Er(t))
3053
3052
  return t;
3054
- if (kt(t))
3053
+ if (vt(t))
3055
3054
  return null;
3056
3055
  t = xe(t);
3057
3056
  }
@@ -3066,7 +3065,7 @@ function $e(e) {
3066
3065
  function oe(e) {
3067
3066
  return te(e).getComputedStyle(e);
3068
3067
  }
3069
- function wt(e) {
3068
+ function kt(e) {
3070
3069
  return ae(e) ? {
3071
3070
  scrollLeft: e.scrollLeft,
3072
3071
  scrollTop: e.scrollTop
@@ -3103,7 +3102,7 @@ function un(e) {
3103
3102
  function ma(e) {
3104
3103
  const t = oe(e);
3105
3104
  let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
3106
- const a = ue(e), o = a ? e.offsetWidth : r, i = a ? e.offsetHeight : n, s = lt(r) !== o || lt(n) !== i;
3105
+ const a = ue(e), o = a ? e.offsetWidth : r, i = a ? e.offsetHeight : n, s = st(r) !== o || st(n) !== i;
3107
3106
  return s && (r = o, n = i), {
3108
3107
  width: r,
3109
3108
  height: n,
@@ -3122,7 +3121,7 @@ function Ie(e) {
3122
3121
  height: a,
3123
3122
  $: o
3124
3123
  } = ma(t);
3125
- let i = (o ? lt(r.width) : r.width) / n, s = (o ? lt(r.height) : r.height) / a;
3124
+ let i = (o ? st(r.width) : r.width) / n, s = (o ? st(r.height) : r.height) / a;
3126
3125
  return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
3127
3126
  x: i,
3128
3127
  y: s
@@ -3154,7 +3153,7 @@ function Ke(e, t, r, n) {
3154
3153
  c *= v.x, d *= v.y, h *= v.x, u *= v.y, c += k, d += I, p = te(y), y = un(p);
3155
3154
  }
3156
3155
  }
3157
- return dt({
3156
+ return ct({
3158
3157
  width: h,
3159
3158
  height: u,
3160
3159
  x: c,
@@ -3162,7 +3161,7 @@ function Ke(e, t, r, n) {
3162
3161
  });
3163
3162
  }
3164
3163
  function Sr(e, t) {
3165
- const r = wt(e).scrollLeft;
3164
+ const r = kt(e).scrollLeft;
3166
3165
  return t ? t.left + r : Ke(be(e)).left + r;
3167
3166
  }
3168
3167
  function ga(e, t, r) {
@@ -3183,7 +3182,7 @@ function Ss(e) {
3183
3182
  offsetParent: n,
3184
3183
  strategy: a
3185
3184
  } = e;
3186
- const o = a === "fixed", i = be(n), s = t ? kt(t.floating) : !1;
3185
+ const o = a === "fixed", i = be(n), s = t ? vt(t.floating) : !1;
3187
3186
  if (n === i || s && o)
3188
3187
  return r;
3189
3188
  let c = {
@@ -3191,7 +3190,7 @@ function Ss(e) {
3191
3190
  scrollTop: 0
3192
3191
  }, d = de(1);
3193
3192
  const h = de(0), u = ue(n);
3194
- if ((u || !u && !o) && ((De(n) !== "body" || Ze(i)) && (c = wt(n)), ue(n))) {
3193
+ if ((u || !u && !o) && ((De(n) !== "body" || Ze(i)) && (c = kt(n)), ue(n))) {
3195
3194
  const g = Ke(n);
3196
3195
  d = Ie(n), h.x = g.x + n.clientLeft, h.y = g.y + n.clientTop;
3197
3196
  }
@@ -3207,7 +3206,7 @@ function Cs(e) {
3207
3206
  return Array.from(e.getClientRects());
3208
3207
  }
3209
3208
  function Ns(e) {
3210
- const t = be(e), r = wt(e), n = e.ownerDocument.body, a = Re(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), o = Re(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
3209
+ const t = be(e), r = kt(e), n = e.ownerDocument.body, a = Re(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), o = Re(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
3211
3210
  let i = -r.scrollLeft + Sr(e);
3212
3211
  const s = -r.scrollTop;
3213
3212
  return oe(n).direction === "rtl" && (i += Re(t.clientWidth, n.clientWidth) - a), {
@@ -3258,7 +3257,7 @@ function mn(e, t, r) {
3258
3257
  height: t.height
3259
3258
  };
3260
3259
  }
3261
- return dt(n);
3260
+ return ct(n);
3262
3261
  }
3263
3262
  function pa(e, t) {
3264
3263
  const r = xe(e);
@@ -3284,7 +3283,7 @@ function $s(e) {
3284
3283
  rootBoundary: n,
3285
3284
  strategy: a
3286
3285
  } = e;
3287
- const o = [...r === "clippingAncestors" ? kt(t) ? [] : As(t, this._c) : [].concat(r), n], i = o[0], s = o.reduce((c, d) => {
3286
+ const o = [...r === "clippingAncestors" ? vt(t) ? [] : As(t, this._c) : [].concat(r), n], i = o[0], s = o.reduce((c, d) => {
3288
3287
  const h = mn(t, d, a);
3289
3288
  return c.top = Re(h.top, c.top), c.right = qe(h.right, c.right), c.bottom = qe(h.bottom, c.bottom), c.left = Re(h.left, c.left), c;
3290
3289
  }, mn(t, i, a));
@@ -3313,7 +3312,7 @@ function Os(e, t, r) {
3313
3312
  };
3314
3313
  const c = de(0);
3315
3314
  if (n || !n && !o)
3316
- if ((De(t) !== "body" || Ze(a)) && (s = wt(t)), n) {
3315
+ if ((De(t) !== "body" || Ze(a)) && (s = kt(t)), n) {
3317
3316
  const f = Ke(t, !0, o, t);
3318
3317
  c.x = f.x + t.clientLeft, c.y = f.y + t.clientTop;
3319
3318
  } else a && (c.x = Sr(a));
@@ -3325,7 +3324,7 @@ function Os(e, t, r) {
3325
3324
  height: i.height
3326
3325
  };
3327
3326
  }
3328
- function Ut(e) {
3327
+ function zt(e) {
3329
3328
  return oe(e).position === "static";
3330
3329
  }
3331
3330
  function fn(e, t) {
@@ -3338,21 +3337,21 @@ function fn(e, t) {
3338
3337
  }
3339
3338
  function ya(e, t) {
3340
3339
  const r = te(e);
3341
- if (kt(e))
3340
+ if (vt(e))
3342
3341
  return r;
3343
3342
  if (!ue(e)) {
3344
3343
  let a = xe(e);
3345
3344
  for (; a && !$e(a); ) {
3346
- if (ae(a) && !Ut(a))
3345
+ if (ae(a) && !zt(a))
3347
3346
  return a;
3348
3347
  a = xe(a);
3349
3348
  }
3350
3349
  return r;
3351
3350
  }
3352
3351
  let n = fn(e, t);
3353
- for (; n && xs(n) && Ut(n); )
3352
+ for (; n && xs(n) && zt(n); )
3354
3353
  n = fn(n, t);
3355
- return n && $e(n) && Ut(n) && !Er(n) ? r : n || _s(e) || r;
3354
+ return n && $e(n) && zt(n) && !Er(n) ? r : n || _s(e) || r;
3356
3355
  }
3357
3356
  const Bs = async function(e) {
3358
3357
  const t = this.getOffsetParent || ya, r = this.getDimensions, n = await r(e.floating);
@@ -3566,7 +3565,7 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Gs = (
3566
3565
  });
3567
3566
  };
3568
3567
  return M(() => {
3569
- ot() || (t === !0 && !a.current && n.current && (a.current = !0, n.current.focus()), t === !1 && a.current && (a.current = !1));
3568
+ Gt() || (t === !0 && !a.current && n.current && (a.current = !0, n.current.focus()), t === !1 && a.current && (a.current = !1));
3570
3569
  }, [t]), /* @__PURE__ */ l(
3571
3570
  Ve,
3572
3571
  {
@@ -3602,7 +3601,7 @@ try {
3602
3601
  });
3603
3602
  } catch {
3604
3603
  }
3605
- const pn = "av-messagebox", yn = "av-panel", bn = "av-button", xt = "icon", ba = "button", cr = "link", Xs = ({
3604
+ const pn = "av-messagebox", yn = "av-panel", bn = "av-button", wt = "icon", ba = "button", cr = "link", Xs = ({
3606
3605
  type: e,
3607
3606
  size: t,
3608
3607
  labelRight: r,
@@ -3619,7 +3618,7 @@ const pn = "av-messagebox", yn = "av-panel", bn = "av-button", xt = "icon", ba =
3619
3618
  [s]: t === "medium",
3620
3619
  [c]: t === "large"
3621
3620
  });
3622
- case xt:
3621
+ case wt:
3623
3622
  return m("flex items-center", {
3624
3623
  "justify-center": a === "center",
3625
3624
  "justify-start": a === "left",
@@ -3654,7 +3653,7 @@ const pn = "av-messagebox", yn = "av-panel", bn = "av-button", xt = "icon", ba =
3654
3653
  [o]: t === "medium",
3655
3654
  [i]: t === "large"
3656
3655
  });
3657
- case xt:
3656
+ case wt:
3658
3657
  return m({
3659
3658
  [a]: t === "small" && (r || n),
3660
3659
  [o]: t === "medium" && (r || n),
@@ -3892,7 +3891,7 @@ const pn = "av-messagebox", yn = "av-panel", bn = "av-button", xt = "icon", ba =
3892
3891
  "disabled:cursor-not-allowed disabled:opacity-50": o
3893
3892
  },
3894
3893
  m({
3895
- "transition-[width] duration-300 ease-in-out": e === xt && v
3894
+ "transition-[width] duration-300 ease-in-out": e === wt && v
3896
3895
  }),
3897
3896
  t
3898
3897
  )), dl = (e, t, r) => {
@@ -3936,7 +3935,7 @@ const fl = {
3936
3935
  bottom: 0,
3937
3936
  right: 0
3938
3937
  };
3939
- function Ft(e) {
3938
+ function Ut(e) {
3940
3939
  const t = ul(), r = S(0), n = S(null), [a, o] = G(fl), i = ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
3941
3940
  const c = s[0];
3942
3941
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
@@ -3986,7 +3985,7 @@ const hl = {
3986
3985
  ...I
3987
3986
  }, E) => {
3988
3987
  const C = cl({
3989
- type: xt,
3988
+ type: wt,
3990
3989
  mode: r,
3991
3990
  focusMode: n,
3992
3991
  fullWidth: a,
@@ -4002,7 +4001,7 @@ const hl = {
4002
4001
  radius: v,
4003
4002
  variant: b,
4004
4003
  animated: k
4005
- }), $ = sl({ mode: r, raw: s, iconClassName: x }), _ = ll({ animated: k }), [w, N] = Ft(), [T, L] = Ft(), [O, B] = Ft(), D = S(0), R = S(null), F = ml([E, R]);
4004
+ }), $ = sl({ mode: r, raw: s, iconClassName: x }), _ = ll({ animated: k }), [w, N] = Ut(), [T, L] = Ut(), [O, B] = Ut(), D = S(0), R = S(null), F = ml([E, R]);
4006
4005
  return pe(() => {
4007
4006
  O && O.current && k && (D.current = B.width + gl[u] + (c ? 0 : pl));
4008
4007
  }, [B, O, u, c, k]), pe(() => {
@@ -4217,7 +4216,7 @@ function kl({
4217
4216
  [d, h, v, u, o, s]
4218
4217
  );
4219
4218
  }
4220
- const _t = () => {
4219
+ const xt = () => {
4221
4220
  const e = J.useContext(ka);
4222
4221
  if (e == null)
4223
4222
  throw new Error("Modal components must be wrapped in <Modal />");
@@ -4231,7 +4230,7 @@ function wl({
4231
4230
  return /* @__PURE__ */ l(ka.Provider, { value: r, children: e });
4232
4231
  }
4233
4232
  const xl = J.forwardRef(function(e, t) {
4234
- const { context: r, ...n } = _t(), a = gr([n.refs.setFloating, t]);
4233
+ const { context: r, ...n } = xt(), a = gr([n.refs.setFloating, t]);
4235
4234
  if (!r.open)
4236
4235
  return null;
4237
4236
  const { overlayBackground: o, ...i } = e, s = m("grid place-items-center", {
@@ -4249,13 +4248,13 @@ const xl = J.forwardRef(function(e, t) {
4249
4248
  }
4250
4249
  ) }) }) });
4251
4250
  }), _l = J.forwardRef(function({ children: e, ...t }, r) {
4252
- const { setLabelId: n } = _t(), a = hr();
4251
+ const { setLabelId: n } = xt(), a = hr();
4253
4252
  return J.useLayoutEffect(() => (n(a), () => n(void 0)), [a, n]), /* @__PURE__ */ l("h1", { ...t, ref: r, id: a, children: e });
4254
4253
  }), El = J.forwardRef(function({ children: e, ...t }, r) {
4255
- const { setDescriptionId: n } = _t(), a = hr();
4254
+ const { setDescriptionId: n } = xt(), a = hr();
4256
4255
  return J.useLayoutEffect(() => (n(a), () => n(void 0)), [a, n]), /* @__PURE__ */ l("div", { ...t, ref: r, id: a, children: e });
4257
4256
  }), Tl = J.forwardRef(function(e, t) {
4258
- const { setOpen: r } = _t(), { trigger: n, className: a, ...o } = e, i = J.useCallback(() => r(!1), [r]);
4257
+ const { setOpen: r } = xt(), { trigger: n, className: a, ...o } = e, i = J.useCallback(() => r(!1), [r]);
4259
4258
  return /* @__PURE__ */ l("div", { className: a, children: J.cloneElement(n, {
4260
4259
  ref: t,
4261
4260
  onClick: i,
@@ -4557,7 +4556,7 @@ const We = "panel", at = "messagebox", Sl = ({
4557
4556
  ), Nr = $n((e, t) => /* @__PURE__ */ l(co, { children: /* @__PURE__ */ l(wa, { ...e, ref: t }) }));
4558
4557
  Nr.displayName = "Menu";
4559
4558
  wa.displayName = "MenuComponent";
4560
- const ut = J.forwardRef(
4559
+ const dt = J.forwardRef(
4561
4560
  ({
4562
4561
  label: e,
4563
4562
  disabled: t,
@@ -4620,8 +4619,8 @@ const ut = J.forwardRef(
4620
4619
  );
4621
4620
  }
4622
4621
  );
4623
- ut.displayName = "MenuItem";
4624
- const id = ({ className: e, ...t }) => {
4622
+ dt.displayName = "MenuItem";
4623
+ const sd = ({ className: e, ...t }) => {
4625
4624
  const r = m(e, "my-1 border-t border-border-medium");
4626
4625
  return /* @__PURE__ */ l("div", { className: r, ...t });
4627
4626
  }, xa = ({
@@ -4656,7 +4655,7 @@ const Il = (e) => {
4656
4655
  className: e,
4657
4656
  defaultPlacement: t = "top-start"
4658
4657
  }) => {
4659
- const { dispatch: r } = W(ne), { dispatch: n } = W(bt), { getAccessToken: a, user: o } = Oe(), {
4658
+ const { dispatch: r } = W(ne), { dispatch: n } = W(yt), { getAccessToken: a, user: o } = Oe(), {
4660
4659
  data: i,
4661
4660
  error: s,
4662
4661
  isLoading: c
@@ -4692,7 +4691,7 @@ const Il = (e) => {
4692
4691
  children: [
4693
4692
  /* @__PURE__ */ l(xa, { children: "Prompts" }),
4694
4693
  i && i.tags && i.tags.map((h) => h.enabled && h.label && h.content && /* @__PURE__ */ l(
4695
- ut,
4694
+ dt,
4696
4695
  {
4697
4696
  label: h.label,
4698
4697
  onClick: (u) => d(
@@ -4850,21 +4849,21 @@ const Il = (e) => {
4850
4849
  {
4851
4850
  mode: "dark",
4852
4851
  focusMode: "light",
4853
- trigger: /* @__PURE__ */ l(Le, { noBorder: !0, label: "Providers", children: t === Rt ? /* @__PURE__ */ l(qr, { size: ge }) : /* @__PURE__ */ l(Kr, { size: ge }) }),
4852
+ trigger: /* @__PURE__ */ l(Le, { noBorder: !0, label: "Providers", children: t === Nt ? /* @__PURE__ */ l(qr, { size: ge }) : /* @__PURE__ */ l(Kr, { size: ge }) }),
4854
4853
  defaultPlacement: "top-start",
4855
4854
  children: [
4856
4855
  /* @__PURE__ */ l(xa, { children: "Providers" }),
4857
4856
  /* @__PURE__ */ l(
4858
- ut,
4857
+ dt,
4859
4858
  {
4860
- selected: t === Rt,
4859
+ selected: t === Nt,
4861
4860
  label: "Anthropic",
4862
4861
  icon: /* @__PURE__ */ l(qr, {}),
4863
- onClick: () => d(Rt)
4862
+ onClick: () => d(Nt)
4864
4863
  }
4865
4864
  ),
4866
4865
  /* @__PURE__ */ l(
4867
- ut,
4866
+ dt,
4868
4867
  {
4869
4868
  selected: t === Ur,
4870
4869
  label: "OpenAI",
@@ -4917,7 +4916,7 @@ const Il = (e) => {
4917
4916
  }) => {
4918
4917
  const h = xn * 2, u = 5 * xn, {
4919
4918
  state: { usage: f, messages: g }
4920
- } = W(ne), { state: p } = W(bt), y = S(null), v = S(null), b = Ro([i, v]), x = Lo(), k = zl({
4919
+ } = W(ne), { state: p } = W(yt), y = S(null), v = S(null), b = Ro([i, v]), x = Lo(), k = zl({
4921
4920
  className: e
4922
4921
  }), [I, E] = $o({
4923
4922
  value: r,
@@ -4985,18 +4984,18 @@ const Il = (e) => {
4985
4984
  ] })
4986
4985
  }
4987
4986
  );
4988
- }, Fl = () => {
4987
+ }, Fl = 500, Hl = () => {
4989
4988
  const {
4990
4989
  state: { messages: e, provider: t, id: r, usage: n, privateChat: a, streaming: o },
4991
4990
  dispatch: i
4992
- } = W(ne), { state: s, dispatch: c } = W(bt), [d, h] = G(""), { getAccessToken: u, user: f } = Oe(), g = ot() ? 500 : 5, p = S(null), y = S(
4991
+ } = W(ne), { state: s, dispatch: c } = W(yt), [d, h] = G(""), { getAccessToken: u, user: f } = Oe(), g = S(!1), p = S(null), y = S(
4993
4992
  null
4994
4993
  );
4995
4994
  Eo([
4996
4995
  [
4997
4996
  "mod+K",
4998
4997
  () => {
4999
- p && p.current && !ot() && p.current.focus();
4998
+ p && p.current && !Gt() && p.current.focus();
5000
4999
  }
5001
5000
  ]
5002
5001
  ]);
@@ -5028,7 +5027,7 @@ const Il = (e) => {
5028
5027
  name: "generate",
5029
5028
  data: {
5030
5029
  messages: e,
5031
- model: t || it,
5030
+ model: t || ot,
5032
5031
  user: (f == null ? void 0 : f.username) || "",
5033
5032
  id: r,
5034
5033
  usage: n,
@@ -5043,7 +5042,7 @@ const Il = (e) => {
5043
5042
  type: ir,
5044
5043
  payload: !0
5045
5044
  });
5046
- const I = st();
5045
+ const I = it();
5047
5046
  y.current = k.body.getReader();
5048
5047
  const E = new TextDecoder();
5049
5048
  for (; ; ) {
@@ -5060,7 +5059,7 @@ const Il = (e) => {
5060
5059
  payload: {
5061
5060
  content: T.content,
5062
5061
  role: ve,
5063
- messageId: st()
5062
+ messageId: it()
5064
5063
  }
5065
5064
  });
5066
5065
  } else if (w !== -1) {
@@ -5118,15 +5117,19 @@ const Il = (e) => {
5118
5117
  const b = s.prompt.endsWith(":") && !s.prompt.endsWith(": ") ? s.prompt + " " : s.prompt;
5119
5118
  b.indexOf(Gr) !== -1 ? navigator.clipboard.readText().then((k) => {
5120
5119
  h(b.replace(Gr, k));
5121
- }) : h(b), !ot() && p.current && p.current.focus(), c({
5120
+ }) : h(b), !Gt() && p.current && p.current.focus(), c({
5122
5121
  type: In
5123
5122
  });
5124
5123
  }
5125
5124
  }, [s, c]), M(() => {
5125
+ if (g.current === !1) {
5126
+ g.current = !0;
5127
+ return;
5128
+ }
5126
5129
  n === 0 && (e == null ? void 0 : e.length) === 0 && (h(""), setTimeout(() => {
5127
5130
  p.current && p.current.focus();
5128
- }, g));
5129
- }, [n, e, g]), M(() => {
5131
+ }, Fl));
5132
+ }, [n, e]), M(() => {
5130
5133
  o === !1 && p.current && p.current.focus();
5131
5134
  }, [o]), /* @__PURE__ */ l(Ee, { children: /* @__PURE__ */ l(
5132
5135
  Ul,
@@ -5138,20 +5141,20 @@ const Il = (e) => {
5138
5141
  onChange: (b) => h(b.target.value)
5139
5142
  }
5140
5143
  ) });
5141
- }, Ht = "--sassy-bottom", _n = "16px", Hl = ({ isComponent: e }) => {
5144
+ }, Ft = "--sassy-bottom", _n = "16px", Wl = ({ isComponent: e }) => {
5142
5145
  const {
5143
5146
  state: { loading: t, streaming: r, restoring: n, messages: a }
5144
5147
  } = W(ne), { height: o } = Oo(), [i, s] = Ao(), c = Wa();
5145
5148
  return M(() => {
5146
5149
  var h, u, f;
5147
- const d = (h = i == null ? void 0 : i.current) == null ? void 0 : h.style.getPropertyValue(Ht);
5150
+ const d = (h = i == null ? void 0 : i.current) == null ? void 0 : h.style.getPropertyValue(Ft);
5148
5151
  if ((t && !r || n) && d !== _n && ((u = i == null ? void 0 : i.current) == null || u.style.setProperty(
5149
- Ht,
5152
+ Ft,
5150
5153
  _n
5151
5154
  )), !t && !r && a.length === 0) {
5152
5155
  const g = `${o - s.height - (e ? 300 : c ? 220 : 245)}`;
5153
5156
  d !== `${g}px` && Number(g) > 0 && ((f = i == null ? void 0 : i.current) == null || f.style.setProperty(
5154
- Ht,
5157
+ Ft,
5155
5158
  `${g}px`
5156
5159
  ));
5157
5160
  }
@@ -5177,7 +5180,7 @@ const Il = (e) => {
5177
5180
  as
5178
5181
  ),
5179
5182
  children: [
5180
- /* @__PURE__ */ l(Fl, {}),
5183
+ /* @__PURE__ */ l(Hl, {}),
5181
5184
  /* @__PURE__ */ l("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Ha })
5182
5185
  ]
5183
5186
  }
@@ -5196,7 +5199,7 @@ try {
5196
5199
  });
5197
5200
  } catch {
5198
5201
  }
5199
- const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link", Gl = ({
5202
+ const Gl = "av-bubble", En = "av-button", _t = "icon", _a = "button", ur = "link", jl = ({
5200
5203
  type: e,
5201
5204
  size: t,
5202
5205
  labelRight: r,
@@ -5213,7 +5216,7 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5213
5216
  [s]: t === "medium",
5214
5217
  [c]: t === "large"
5215
5218
  });
5216
- case Et:
5219
+ case _t:
5217
5220
  return m("flex items-center", {
5218
5221
  "justify-center": a === "center",
5219
5222
  "justify-start": a === "left",
@@ -5232,7 +5235,7 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5232
5235
  "h-12": t === "large" && o && (r || n)
5233
5236
  });
5234
5237
  }
5235
- }, jl = ({
5238
+ }, ql = ({
5236
5239
  type: e,
5237
5240
  size: t,
5238
5241
  labelRight: r,
@@ -5248,14 +5251,14 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5248
5251
  [o]: t === "medium",
5249
5252
  [i]: t === "large"
5250
5253
  });
5251
- case Et:
5254
+ case _t:
5252
5255
  return m({
5253
5256
  [a]: t === "small" && (r || n),
5254
5257
  [o]: t === "medium" && (r || n),
5255
5258
  [i]: t === "large" && (r || n)
5256
5259
  });
5257
5260
  }
5258
- }, ql = ({
5261
+ }, Kl = ({
5259
5262
  mode: e,
5260
5263
  noBackground: t,
5261
5264
  noTruncate: r,
@@ -5291,7 +5294,7 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5291
5294
  return m("not-prose text-copy-lighter", {
5292
5295
  truncate: !r
5293
5296
  });
5294
- }, Kl = ({
5297
+ }, Yl = ({
5295
5298
  mode: e,
5296
5299
  noBackground: t,
5297
5300
  variant: r
@@ -5321,13 +5324,13 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5321
5324
  if (r === "selected")
5322
5325
  return "bg-action-selected-dark";
5323
5326
  }
5324
- }, Yl = ({
5327
+ }, Jl = ({
5325
5328
  radius: e
5326
5329
  }) => m({
5327
5330
  "rounded-full": e === "large",
5328
5331
  "rounded-md": e === "medium",
5329
5332
  "rounded-sm": e === "small"
5330
- }), Jl = ({
5333
+ }), Zl = ({
5331
5334
  mode: e,
5332
5335
  disabled: t,
5333
5336
  variant: r
@@ -5357,7 +5360,7 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5357
5360
  });
5358
5361
  if (r === "selected")
5359
5362
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
5360
- }, Zl = ({
5363
+ }, Xl = ({
5361
5364
  mode: e,
5362
5365
  disabled: t,
5363
5366
  variant: r
@@ -5387,7 +5390,7 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5387
5390
  });
5388
5391
  if (r === "selected")
5389
5392
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
5390
- }, Xl = ({
5393
+ }, Ql = ({
5391
5394
  mode: e,
5392
5395
  noBorder: t,
5393
5396
  variant: r
@@ -5417,14 +5420,14 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5417
5420
  });
5418
5421
  if (r === "selected")
5419
5422
  return "border border-border-selected-dark";
5420
- }, Ql = ({
5423
+ }, ec = ({
5421
5424
  focusMode: e
5422
5425
  }) => m("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
5423
5426
  "focus:outline-focus-dark": e === "dark",
5424
5427
  "focus:outline-focus-light": e === "light",
5425
5428
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
5426
5429
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
5427
- }), ec = ({
5430
+ }), tc = ({
5428
5431
  mode: e,
5429
5432
  raw: t,
5430
5433
  iconClassName: r
@@ -5436,11 +5439,11 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5436
5439
  "dark:text-copy-accent-dark": e === "system"
5437
5440
  },
5438
5441
  r
5439
- ), tc = ({
5442
+ ), rc = ({
5440
5443
  animated: e
5441
5444
  }) => m({
5442
5445
  "transition-opacity duration-300 ease-in": e
5443
- }), rc = ({
5446
+ }), nc = ({
5444
5447
  type: e,
5445
5448
  className: t,
5446
5449
  raw: r,
@@ -5460,15 +5463,15 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5460
5463
  animated: v
5461
5464
  }) => (f || (f = "primary"), r ? m(En, t) : m(
5462
5465
  En,
5463
- ql({
5466
+ Kl({
5464
5467
  mode: n,
5465
5468
  variant: f,
5466
5469
  noBackground: u,
5467
5470
  noTruncate: g
5468
5471
  }),
5469
- Kl({ mode: n, noBackground: u, variant: f }),
5470
- Yl({ radius: y }),
5471
- Gl({
5472
+ Yl({ mode: n, noBackground: u, variant: f }),
5473
+ Jl({ radius: y }),
5474
+ jl({
5472
5475
  type: e,
5473
5476
  size: s,
5474
5477
  labelRight: d,
@@ -5476,20 +5479,20 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5476
5479
  align: p,
5477
5480
  animated: v
5478
5481
  }),
5479
- jl({ type: e, size: s, labelRight: d, labelLeft: h }),
5480
- Xl({ mode: n, variant: f, noBorder: c }),
5481
- Ql({ focusMode: a }),
5482
- Jl({ mode: n, variant: f, disabled: o }),
5482
+ ql({ type: e, size: s, labelRight: d, labelLeft: h }),
5483
+ Ql({ mode: n, variant: f, noBorder: c }),
5484
+ ec({ focusMode: a }),
5483
5485
  Zl({ mode: n, variant: f, disabled: o }),
5486
+ Xl({ mode: n, variant: f, disabled: o }),
5484
5487
  {
5485
5488
  "w-full": i,
5486
5489
  "disabled:cursor-not-allowed disabled:opacity-50": o
5487
5490
  },
5488
5491
  m({
5489
- "transition-[width] duration-300 ease-in-out": e === Et && v
5492
+ "transition-[width] duration-300 ease-in-out": e === _t && v
5490
5493
  }),
5491
5494
  t
5492
- )), nc = (e, t, r) => {
5495
+ )), ac = (e, t, r) => {
5493
5496
  var n;
5494
5497
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
5495
5498
  }, Ea = U.forwardRef((e, t) => {
@@ -5499,20 +5502,20 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5499
5502
  {
5500
5503
  ref: t,
5501
5504
  onClick: (o) => {
5502
- nc(o, n, r);
5505
+ ac(o, n, r);
5503
5506
  },
5504
5507
  ...a
5505
5508
  }
5506
5509
  );
5507
5510
  });
5508
5511
  Ea.displayName = "BaseButton";
5509
- function ac() {
5512
+ function oc() {
5510
5513
  const e = S(!1);
5511
5514
  return M(() => (e.current = !0, () => {
5512
5515
  e.current = !1;
5513
5516
  }), []), Z(() => e.current, []);
5514
5517
  }
5515
- function oc(e) {
5518
+ function ic(e) {
5516
5519
  return ie(() => e.every((t) => t == null) ? () => {
5517
5520
  } : (t) => {
5518
5521
  e.forEach((r) => {
@@ -5520,7 +5523,7 @@ function oc(e) {
5520
5523
  });
5521
5524
  }, e);
5522
5525
  }
5523
- const ic = {
5526
+ const sc = {
5524
5527
  x: 0,
5525
5528
  y: 0,
5526
5529
  width: 0,
@@ -5530,8 +5533,8 @@ const ic = {
5530
5533
  bottom: 0,
5531
5534
  right: 0
5532
5535
  };
5533
- function Wt(e) {
5534
- const t = ac(), r = S(0), n = S(null), [a, o] = G(ic), i = ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
5536
+ function Ht(e) {
5537
+ const t = oc(), r = S(0), n = S(null), [a, o] = G(sc), i = ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
5535
5538
  const c = s[0];
5536
5539
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
5537
5540
  n.current && t() && o(c.contentRect);
@@ -5541,21 +5544,21 @@ function Wt(e) {
5541
5544
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
5542
5545
  }), [i, e]), [n, a];
5543
5546
  }
5544
- const sc = {
5547
+ const lc = {
5545
5548
  small: 24,
5546
5549
  // w-6
5547
5550
  medium: 32,
5548
5551
  // w-8
5549
5552
  large: 48
5550
5553
  // w-12
5551
- }, lc = {
5554
+ }, cc = {
5552
5555
  small: 8 * 2,
5553
5556
  // px-2 x 2
5554
5557
  medium: 12 * 2,
5555
5558
  // px-3 x 2
5556
5559
  large: 16 * 2
5557
5560
  // px-4 x 2
5558
- }, cc = 2, Rr = U.forwardRef(
5561
+ }, dc = 2, Rr = U.forwardRef(
5559
5562
  ({
5560
5563
  children: e,
5561
5564
  disabled: t = !1,
@@ -5579,8 +5582,8 @@ const sc = {
5579
5582
  animated: k = !1,
5580
5583
  ...I
5581
5584
  }, E) => {
5582
- const C = rc({
5583
- type: Et,
5585
+ const C = nc({
5586
+ type: _t,
5584
5587
  mode: r,
5585
5588
  focusMode: n,
5586
5589
  fullWidth: a,
@@ -5596,11 +5599,11 @@ const sc = {
5596
5599
  radius: v,
5597
5600
  variant: b,
5598
5601
  animated: k
5599
- }), $ = ec({ mode: r, raw: s, iconClassName: x }), _ = tc({ animated: k }), [w, N] = Wt(), [T, L] = Wt(), [O, B] = Wt(), D = S(0), R = S(null), F = oc([E, R]);
5602
+ }), $ = tc({ mode: r, raw: s, iconClassName: x }), _ = rc({ animated: k }), [w, N] = Ht(), [T, L] = Ht(), [O, B] = Ht(), D = S(0), R = S(null), F = ic([E, R]);
5600
5603
  return pe(() => {
5601
- O && O.current && k && (D.current = B.width + lc[u] + (c ? 0 : cc));
5604
+ O && O.current && k && (D.current = B.width + cc[u] + (c ? 0 : dc));
5602
5605
  }, [B, O, u, c, k]), pe(() => {
5603
- R && R.current && k && (f && w && N.width > 0 ? (w.current && (w.current.style.opacity = "100"), R.current.style.width = `${N.width + D.current}px`) : g && L.width > 0 ? (T.current && (T.current.style.opacity = "100"), R.current.style.width = `${L.width + D.current}px`) : (w.current && (w.current.style.opacity = "0"), T.current && (T.current.style.opacity = "0"), R.current.style.width = `${sc[u]}px`));
5606
+ R && R.current && k && (f && w && N.width > 0 ? (w.current && (w.current.style.opacity = "100"), R.current.style.width = `${N.width + D.current}px`) : g && L.width > 0 ? (T.current && (T.current.style.opacity = "100"), R.current.style.width = `${L.width + D.current}px`) : (w.current && (w.current.style.opacity = "0"), T.current && (T.current.style.opacity = "0"), R.current.style.width = `${lc[u]}px`));
5604
5607
  }, [
5605
5608
  N,
5606
5609
  f,
@@ -5663,7 +5666,7 @@ try {
5663
5666
  });
5664
5667
  } catch {
5665
5668
  }
5666
- const dc = U.forwardRef(
5669
+ const uc = U.forwardRef(
5667
5670
  ({
5668
5671
  children: e,
5669
5672
  mode: t = "system",
@@ -5701,7 +5704,7 @@ const dc = U.forwardRef(
5701
5704
  ) });
5702
5705
  }
5703
5706
  );
5704
- dc.displayName = "ButtonSort";
5707
+ uc.displayName = "ButtonSort";
5705
5708
  const Ta = ({
5706
5709
  children: e,
5707
5710
  fill: t,
@@ -5745,7 +5748,7 @@ try {
5745
5748
  });
5746
5749
  } catch {
5747
5750
  }
5748
- const uc = ({
5751
+ const mc = ({
5749
5752
  className: e,
5750
5753
  viewBox: t,
5751
5754
  title: r,
@@ -5771,7 +5774,7 @@ const uc = ({
5771
5774
  /* @__PURE__ */ l("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
5772
5775
  ]
5773
5776
  }
5774
- ), mc = ({
5777
+ ), fc = ({
5775
5778
  className: e,
5776
5779
  viewBox: t,
5777
5780
  title: r,
@@ -5802,30 +5805,30 @@ try {
5802
5805
  });
5803
5806
  } catch {
5804
5807
  }
5805
- const fc = ({
5808
+ const hc = ({
5806
5809
  kind: e,
5807
5810
  noMaxWidth: t
5808
5811
  }) => m("p-4", {
5809
5812
  "max-w-xs sm:max-w-md md:max-w-2xl": !t,
5810
5813
  "lg:max-w-3xl": e === "left" && !t
5811
- }), hc = ({ kind: e }) => m({
5814
+ }), gc = ({ kind: e }) => m({
5812
5815
  "bg-surface-lighter dark:bg-surface-dark": e === "left",
5813
5816
  "bg-surface-accent": e === "right"
5814
- }), gc = ({ kind: e }) => m(
5817
+ }), pc = ({ kind: e }) => m(
5815
5818
  "prose prose-dark dark:prose-lighter prose-p:my-3 prose-blockquote:my-3 prose-ol:my-3 prose-ul:my-3 prose-ul:prose-li:marker:text-black",
5816
5819
  {
5817
5820
  "text-copy-lighter": e === "right"
5818
5821
  }
5819
- ), pc = ({ kind: e }) => m("rounded-b-xl", {
5822
+ ), yc = ({ kind: e }) => m("rounded-b-xl", {
5820
5823
  "rounded-tr-xl": e === "left",
5821
5824
  "rounded-tl-xl": e === "right"
5822
- }), yc = ({
5825
+ }), bc = ({
5823
5826
  kind: e,
5824
5827
  className: t,
5825
5828
  noMaxWidth: r
5826
5829
  }) => {
5827
5830
  const n = m(
5828
- Wl,
5831
+ Gl,
5829
5832
  "flex items-start",
5830
5833
  {
5831
5834
  "flex-row-reverse": e === "right"
@@ -5833,10 +5836,10 @@ const fc = ({
5833
5836
  t
5834
5837
  ), a = m(
5835
5838
  "flex flex-col empty:hidden",
5836
- fc({ kind: e, noMaxWidth: r }),
5839
+ hc({ kind: e, noMaxWidth: r }),
5840
+ pc({ kind: e }),
5837
5841
  gc({ kind: e }),
5838
- hc({ kind: e }),
5839
- pc({ kind: e })
5842
+ yc({ kind: e })
5840
5843
  ), o = "pr-2 pt-1 text-end text-xs text-copy-light", i = m("flex flex-col-reverse gap-2 sm:flex-row", {
5841
5844
  "ml-2": e === "left",
5842
5845
  "mr-2": e === "right"
@@ -5858,7 +5861,7 @@ const fc = ({
5858
5861
  copyToClipboardMode: s = "system",
5859
5862
  noMaxWidth: c = !1
5860
5863
  }) => {
5861
- const [d, h] = G(!1), u = yc({ kind: t, className: r, noMaxWidth: c }), f = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), g = () => {
5864
+ const [d, h] = G(!1), u = bc({ kind: t, className: r, noMaxWidth: c }), f = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), g = () => {
5862
5865
  h(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
5863
5866
  };
5864
5867
  return M(() => {
@@ -5889,7 +5892,7 @@ const fc = ({
5889
5892
  label: d ? "Copied to clipboard" : "Copy to clipboard",
5890
5893
  onClick: g,
5891
5894
  disabled: d,
5892
- children: d ? /* @__PURE__ */ l(uc, { size: "size-3" }) : /* @__PURE__ */ l(mc, { size: "size-3" })
5895
+ children: d ? /* @__PURE__ */ l(mc, { size: "size-3" }) : /* @__PURE__ */ l(fc, { size: "size-3" })
5893
5896
  }
5894
5897
  ) })
5895
5898
  ] });
@@ -5907,7 +5910,7 @@ try {
5907
5910
  });
5908
5911
  } catch {
5909
5912
  }
5910
- const Sn = "av-spinner", bc = ({
5913
+ const Sn = "av-spinner", vc = ({
5911
5914
  spinnerRef: e,
5912
5915
  mode: t = "system",
5913
5916
  type: r = "circle",
@@ -5940,7 +5943,7 @@ const Sn = "av-spinner", bc = ({
5940
5943
  ] }),
5941
5944
  /* @__PURE__ */ l("span", { className: "sr-only", children: "Loading..." })
5942
5945
  ] });
5943
- }, Cn = "av-button", Tt = "icon", Ir = "button", mr = "link", vc = ({
5946
+ }, Cn = "av-button", Et = "icon", Ir = "button", mr = "link", kc = ({
5944
5947
  type: e,
5945
5948
  size: t,
5946
5949
  labelRight: r,
@@ -5957,7 +5960,7 @@ const Sn = "av-spinner", bc = ({
5957
5960
  [s]: t === "medium",
5958
5961
  [c]: t === "large"
5959
5962
  });
5960
- case Tt:
5963
+ case Et:
5961
5964
  return m("flex items-center", {
5962
5965
  "justify-center": a === "center",
5963
5966
  "justify-start": a === "left",
@@ -5976,7 +5979,7 @@ const Sn = "av-spinner", bc = ({
5976
5979
  "h-12": t === "large" && o && (r || n)
5977
5980
  });
5978
5981
  }
5979
- }, kc = ({
5982
+ }, wc = ({
5980
5983
  type: e,
5981
5984
  size: t,
5982
5985
  labelRight: r,
@@ -5992,14 +5995,14 @@ const Sn = "av-spinner", bc = ({
5992
5995
  [o]: t === "medium",
5993
5996
  [i]: t === "large"
5994
5997
  });
5995
- case Tt:
5998
+ case Et:
5996
5999
  return m({
5997
6000
  [a]: t === "small" && (r || n),
5998
6001
  [o]: t === "medium" && (r || n),
5999
6002
  [i]: t === "large" && (r || n)
6000
6003
  });
6001
6004
  }
6002
- }, wc = ({
6005
+ }, xc = ({
6003
6006
  mode: e,
6004
6007
  noBackground: t,
6005
6008
  noTruncate: r,
@@ -6035,7 +6038,7 @@ const Sn = "av-spinner", bc = ({
6035
6038
  return m("not-prose text-copy-lighter", {
6036
6039
  truncate: !r
6037
6040
  });
6038
- }, xc = ({
6041
+ }, _c = ({
6039
6042
  mode: e,
6040
6043
  noBackground: t,
6041
6044
  variant: r
@@ -6065,13 +6068,13 @@ const Sn = "av-spinner", bc = ({
6065
6068
  if (r === "selected")
6066
6069
  return "bg-action-selected-dark";
6067
6070
  }
6068
- }, _c = ({
6071
+ }, Ec = ({
6069
6072
  radius: e
6070
6073
  }) => m({
6071
6074
  "rounded-full": e === "large",
6072
6075
  "rounded-md": e === "medium",
6073
6076
  "rounded-sm": e === "small"
6074
- }), Ec = ({
6077
+ }), Tc = ({
6075
6078
  mode: e,
6076
6079
  disabled: t,
6077
6080
  variant: r
@@ -6101,7 +6104,7 @@ const Sn = "av-spinner", bc = ({
6101
6104
  });
6102
6105
  if (r === "selected")
6103
6106
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
6104
- }, Tc = ({
6107
+ }, Sc = ({
6105
6108
  mode: e,
6106
6109
  disabled: t,
6107
6110
  variant: r
@@ -6131,7 +6134,7 @@ const Sn = "av-spinner", bc = ({
6131
6134
  });
6132
6135
  if (r === "selected")
6133
6136
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
6134
- }, Sc = ({
6137
+ }, Cc = ({
6135
6138
  mode: e,
6136
6139
  noBorder: t,
6137
6140
  variant: r
@@ -6161,14 +6164,14 @@ const Sn = "av-spinner", bc = ({
6161
6164
  });
6162
6165
  if (r === "selected")
6163
6166
  return "border border-border-selected-dark";
6164
- }, Cc = ({
6167
+ }, Nc = ({
6165
6168
  focusMode: e
6166
6169
  }) => m("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
6167
6170
  "focus:outline-focus-dark": e === "dark",
6168
6171
  "focus:outline-focus-light": e === "light",
6169
6172
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
6170
6173
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
6171
- }), Nc = ({
6174
+ }), Rc = ({
6172
6175
  mode: e,
6173
6176
  raw: t,
6174
6177
  iconClassName: r
@@ -6180,7 +6183,7 @@ const Sn = "av-spinner", bc = ({
6180
6183
  "dark:text-copy-accent-dark": e === "system"
6181
6184
  },
6182
6185
  r
6183
- ), Rc = ({
6186
+ ), Ic = ({
6184
6187
  animated: e
6185
6188
  }) => m({
6186
6189
  "transition-opacity duration-300 ease-in": e
@@ -6204,15 +6207,15 @@ const Sn = "av-spinner", bc = ({
6204
6207
  animated: v
6205
6208
  }) => (f || (f = "primary"), r ? m(Cn, t) : m(
6206
6209
  Cn,
6207
- wc({
6210
+ xc({
6208
6211
  mode: n,
6209
6212
  variant: f,
6210
6213
  noBackground: u,
6211
6214
  noTruncate: g
6212
6215
  }),
6213
- xc({ mode: n, noBackground: u, variant: f }),
6214
- _c({ radius: y }),
6215
- vc({
6216
+ _c({ mode: n, noBackground: u, variant: f }),
6217
+ Ec({ radius: y }),
6218
+ kc({
6216
6219
  type: e,
6217
6220
  size: s,
6218
6221
  labelRight: d,
@@ -6220,20 +6223,20 @@ const Sn = "av-spinner", bc = ({
6220
6223
  align: p,
6221
6224
  animated: v
6222
6225
  }),
6223
- kc({ type: e, size: s, labelRight: d, labelLeft: h }),
6224
- Sc({ mode: n, variant: f, noBorder: c }),
6225
- Cc({ focusMode: a }),
6226
- Ec({ mode: n, variant: f, disabled: o }),
6226
+ wc({ type: e, size: s, labelRight: d, labelLeft: h }),
6227
+ Cc({ mode: n, variant: f, noBorder: c }),
6228
+ Nc({ focusMode: a }),
6227
6229
  Tc({ mode: n, variant: f, disabled: o }),
6230
+ Sc({ mode: n, variant: f, disabled: o }),
6228
6231
  {
6229
6232
  "w-full": i,
6230
6233
  "disabled:cursor-not-allowed disabled:opacity-50": o
6231
6234
  },
6232
6235
  m({
6233
- "transition-[width] duration-300 ease-in-out": e === Tt && v
6236
+ "transition-[width] duration-300 ease-in-out": e === Et && v
6234
6237
  }),
6235
6238
  t
6236
- )), Ic = (e, t, r) => {
6239
+ )), Ac = (e, t, r) => {
6237
6240
  var n;
6238
6241
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
6239
6242
  }, Ar = U.forwardRef((e, t) => {
@@ -6243,7 +6246,7 @@ const Sn = "av-spinner", bc = ({
6243
6246
  {
6244
6247
  ref: t,
6245
6248
  onClick: (o) => {
6246
- Ic(o, n, r);
6249
+ Ac(o, n, r);
6247
6250
  },
6248
6251
  ...a
6249
6252
  }
@@ -6293,13 +6296,13 @@ const Na = U.forwardRef(
6293
6296
  }
6294
6297
  );
6295
6298
  Na.displayName = "Button";
6296
- function Ac() {
6299
+ function $c() {
6297
6300
  const e = S(!1);
6298
6301
  return M(() => (e.current = !0, () => {
6299
6302
  e.current = !1;
6300
6303
  }), []), Z(() => e.current, []);
6301
6304
  }
6302
- function $c(e) {
6305
+ function Lc(e) {
6303
6306
  return ie(() => e.every((t) => t == null) ? () => {
6304
6307
  } : (t) => {
6305
6308
  e.forEach((r) => {
@@ -6307,7 +6310,7 @@ function $c(e) {
6307
6310
  });
6308
6311
  }, e);
6309
6312
  }
6310
- const Lc = {
6313
+ const Oc = {
6311
6314
  x: 0,
6312
6315
  y: 0,
6313
6316
  width: 0,
@@ -6317,8 +6320,8 @@ const Lc = {
6317
6320
  bottom: 0,
6318
6321
  right: 0
6319
6322
  };
6320
- function Gt(e) {
6321
- const t = Ac(), r = S(0), n = S(null), [a, o] = G(Lc), i = ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
6323
+ function Wt(e) {
6324
+ const t = $c(), r = S(0), n = S(null), [a, o] = G(Oc), i = ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
6322
6325
  const c = s[0];
6323
6326
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
6324
6327
  n.current && t() && o(c.contentRect);
@@ -6328,21 +6331,21 @@ function Gt(e) {
6328
6331
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
6329
6332
  }), [i, e]), [n, a];
6330
6333
  }
6331
- const Oc = {
6334
+ const Bc = {
6332
6335
  small: 24,
6333
6336
  // w-6
6334
6337
  medium: 32,
6335
6338
  // w-8
6336
6339
  large: 48
6337
6340
  // w-12
6338
- }, Bc = {
6341
+ }, Mc = {
6339
6342
  small: 8 * 2,
6340
6343
  // px-2 x 2
6341
6344
  medium: 12 * 2,
6342
6345
  // px-3 x 2
6343
6346
  large: 16 * 2
6344
6347
  // px-4 x 2
6345
- }, Mc = 2, Ra = U.forwardRef(
6348
+ }, Pc = 2, Ra = U.forwardRef(
6346
6349
  ({
6347
6350
  children: e,
6348
6351
  disabled: t = !1,
@@ -6367,7 +6370,7 @@ const Oc = {
6367
6370
  ...I
6368
6371
  }, E) => {
6369
6372
  const C = Ca({
6370
- type: Tt,
6373
+ type: Et,
6371
6374
  mode: r,
6372
6375
  focusMode: n,
6373
6376
  fullWidth: a,
@@ -6383,11 +6386,11 @@ const Oc = {
6383
6386
  radius: v,
6384
6387
  variant: b,
6385
6388
  animated: k
6386
- }), $ = Nc({ mode: r, raw: s, iconClassName: x }), _ = Rc({ animated: k }), [w, N] = Gt(), [T, L] = Gt(), [O, B] = Gt(), D = S(0), R = S(null), F = $c([E, R]);
6389
+ }), $ = Rc({ mode: r, raw: s, iconClassName: x }), _ = Ic({ animated: k }), [w, N] = Wt(), [T, L] = Wt(), [O, B] = Wt(), D = S(0), R = S(null), F = Lc([E, R]);
6387
6390
  return pe(() => {
6388
- O && O.current && k && (D.current = B.width + Bc[u] + (c ? 0 : Mc));
6391
+ O && O.current && k && (D.current = B.width + Mc[u] + (c ? 0 : Pc));
6389
6392
  }, [B, O, u, c, k]), pe(() => {
6390
- R && R.current && k && (f && w && N.width > 0 ? (w.current && (w.current.style.opacity = "100"), R.current.style.width = `${N.width + D.current}px`) : g && L.width > 0 ? (T.current && (T.current.style.opacity = "100"), R.current.style.width = `${L.width + D.current}px`) : (w.current && (w.current.style.opacity = "0"), T.current && (T.current.style.opacity = "0"), R.current.style.width = `${Oc[u]}px`));
6393
+ R && R.current && k && (f && w && N.width > 0 ? (w.current && (w.current.style.opacity = "100"), R.current.style.width = `${N.width + D.current}px`) : g && L.width > 0 ? (T.current && (T.current.style.opacity = "100"), R.current.style.width = `${L.width + D.current}px`) : (w.current && (w.current.style.opacity = "0"), T.current && (T.current.style.opacity = "0"), R.current.style.width = `${Bc[u]}px`));
6391
6394
  }, [
6392
6395
  N,
6393
6396
  f,
@@ -6450,7 +6453,7 @@ try {
6450
6453
  });
6451
6454
  } catch {
6452
6455
  }
6453
- const Pc = U.forwardRef(
6456
+ const Dc = U.forwardRef(
6454
6457
  ({
6455
6458
  children: e,
6456
6459
  mode: t = "system",
@@ -6488,10 +6491,10 @@ const Pc = U.forwardRef(
6488
6491
  ) });
6489
6492
  }
6490
6493
  );
6491
- Pc.displayName = "ButtonSort";
6492
- const Dc = 200, Vc = ({
6494
+ Dc.displayName = "ButtonSort";
6495
+ const Vc = 200, zc = ({
6493
6496
  string: e,
6494
- idealLength: t = Dc
6497
+ idealLength: t = Vc
6495
6498
  }) => {
6496
6499
  if (e.length <= t)
6497
6500
  return { string: e, isTruncated: !1 };
@@ -6502,7 +6505,7 @@ const Dc = 200, Vc = ({
6502
6505
  string: e.slice(0, t + r),
6503
6506
  isTruncated: !0
6504
6507
  };
6505
- }, zc = ({
6508
+ }, Uc = ({
6506
6509
  children: e,
6507
6510
  length: t = 200,
6508
6511
  mode: r = "system",
@@ -6511,7 +6514,7 @@ const Dc = 200, Vc = ({
6511
6514
  const [a, o] = G(!1);
6512
6515
  if (typeof e != "string")
6513
6516
  return e;
6514
- const { string: i, isTruncated: s } = Vc({
6517
+ const { string: i, isTruncated: s } = zc({
6515
6518
  string: e,
6516
6519
  idealLength: t
6517
6520
  });
@@ -6545,21 +6548,21 @@ try {
6545
6548
  });
6546
6549
  } catch {
6547
6550
  }
6548
- const Uc = ({ content: e }) => /* @__PURE__ */ l(
6551
+ const Fc = ({ content: e }) => /* @__PURE__ */ l(
6549
6552
  Sa,
6550
6553
  {
6551
6554
  kind: "right",
6552
6555
  copyToClipboard: e,
6553
6556
  copyToClipboardFocusMode: "light",
6554
6557
  className: "mt-3",
6555
- children: /* @__PURE__ */ l(zc, { mode: "light", focusMode: "light", children: e })
6558
+ children: /* @__PURE__ */ l(Uc, { mode: "light", focusMode: "light", children: e })
6556
6559
  }
6557
6560
  ), Rn = Ln(
6558
6561
  () => import(
6559
6562
  /* webpackChunkName: "LazyMessageAssistant" */
6560
- "./ChatBubbleAssistant.DOnx5Cnk.js"
6563
+ "./ChatBubbleAssistant.Bbf47pgU.js"
6561
6564
  ).then((e) => e.ChatBubbleAssistant)
6562
- ), Fc = U.memo(
6565
+ ), Hc = U.memo(
6563
6566
  ({
6564
6567
  role: e,
6565
6568
  content: t,
@@ -6574,8 +6577,8 @@ const Uc = ({ content: e }) => /* @__PURE__ */ l(
6574
6577
  usage: a,
6575
6578
  content: t
6576
6579
  }
6577
- ) }) : e === ve && t ? /* @__PURE__ */ l(qt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(Rn, { content: t, role: ve }) }) : e === fr && t ? /* @__PURE__ */ l(Uc, { content: t }) : null
6578
- ), Hc = () => {
6580
+ ) }) : e === ve && t ? /* @__PURE__ */ l(qt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(Rn, { content: t, role: ve }) }) : e === fr && t ? /* @__PURE__ */ l(Fc, { content: t }) : null
6581
+ ), Wc = () => {
6579
6582
  var a;
6580
6583
  const {
6581
6584
  state: { messages: e, loading: t, streaming: r }
@@ -6584,7 +6587,7 @@ const Uc = ({ content: e }) => /* @__PURE__ */ l(
6584
6587
  e && e.length > 0 && e.map((o, i) => {
6585
6588
  const { role: s, content: c, messageId: d, name: h, processingTime: u, usage: f } = o, g = d ? `${d}-${s}` : `${i}-${s}`;
6586
6589
  return /* @__PURE__ */ l(
6587
- Fc,
6590
+ Hc,
6588
6591
  {
6589
6592
  role: s,
6590
6593
  content: c,
@@ -6595,9 +6598,9 @@ const Uc = ({ content: e }) => /* @__PURE__ */ l(
6595
6598
  g
6596
6599
  );
6597
6600
  }),
6598
- (t && n === fr || r && n === ve) && /* @__PURE__ */ l(Sa, { children: /* @__PURE__ */ l(bc, { type: "dots" }) })
6601
+ (t && n === fr || r && n === ve) && /* @__PURE__ */ l(Sa, { children: /* @__PURE__ */ l(vc, { type: "dots" }) })
6599
6602
  ] }) : null;
6600
- }, Wc = () => {
6603
+ }, Gc = () => {
6601
6604
  const { isAuthenticated: e } = Oe(), { ref: t, inViewport: r } = To(), {
6602
6605
  state: { usage: n }
6603
6606
  } = W(ne), a = Ga({
@@ -6607,15 +6610,15 @@ const Uc = ({ content: e }) => /* @__PURE__ */ l(
6607
6610
  return /* @__PURE__ */ A(Ee, { children: [
6608
6611
  /* @__PURE__ */ A("div", { className: a, children: [
6609
6612
  /* @__PURE__ */ l(ja, {}),
6610
- /* @__PURE__ */ l(Hc, {}),
6613
+ /* @__PURE__ */ l(Wc, {}),
6611
6614
  /* @__PURE__ */ l("div", { ref: t })
6612
6615
  ] }),
6613
6616
  /* @__PURE__ */ l(Ll, { show: !r && n > 0 })
6614
6617
  ] });
6615
- }, Gc = Ln(
6618
+ }, jc = Ln(
6616
6619
  () => import(
6617
6620
  /* webpackChunkName: "LazyHeader" */
6618
- "./HeaderEntry.DW42lod9.js"
6621
+ "./HeaderEntry.ChT4kr64.js"
6619
6622
  )
6620
6623
  );
6621
6624
  function Ia({ isComponent: e = !1 }) {
@@ -6625,15 +6628,15 @@ function Ia({ isComponent: e = !1 }) {
6625
6628
  }), [a] = Kt({
6626
6629
  key: jt + Ya,
6627
6630
  initialValue: Fe.ASC
6628
- }), [o, i] = It(hi, {
6631
+ }), [o, i] = Rt(hi, {
6629
6632
  searchString: n,
6630
6633
  sortedCell: "timestamp",
6631
6634
  sortDirection: a
6632
- }), [s, c] = It(gi, {
6635
+ }), [s, c] = Rt(gi, {
6633
6636
  prompt: "",
6634
6637
  lastTriggeredTimestamp: 0
6635
- }), [d, h] = It(ns, {
6636
- id: st(),
6638
+ }), [d, h] = Rt(ns, {
6639
+ id: it(),
6637
6640
  model: "",
6638
6641
  provider: "",
6639
6642
  privateChat: !1,
@@ -6667,7 +6670,7 @@ function Ia({ isComponent: e = !1 }) {
6667
6670
  u && h({
6668
6671
  type: Pe,
6669
6672
  payload: {
6670
- provider: u.provider || it
6673
+ provider: u.provider || ot
6671
6674
  }
6672
6675
  });
6673
6676
  }, [u]), /* @__PURE__ */ l(
@@ -6678,7 +6681,7 @@ function Ia({ isComponent: e = !1 }) {
6678
6681
  dispatch: i
6679
6682
  },
6680
6683
  children: /* @__PURE__ */ l(
6681
- bt.Provider,
6684
+ yt.Provider,
6682
6685
  {
6683
6686
  value: { state: s, dispatch: c },
6684
6687
  children: /* @__PURE__ */ A(
@@ -6696,7 +6699,7 @@ function Ia({ isComponent: e = !1 }) {
6696
6699
  className: jr({
6697
6700
  extraClass: "mt-5"
6698
6701
  }),
6699
- children: /* @__PURE__ */ l(qt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(Gc, { isComponent: e }) })
6702
+ children: /* @__PURE__ */ l(qt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(jc, { isComponent: e }) })
6700
6703
  }
6701
6704
  ),
6702
6705
  /* @__PURE__ */ l(
@@ -6707,10 +6710,10 @@ function Ia({ isComponent: e = !1 }) {
6707
6710
  }),
6708
6711
  noMargin: !0,
6709
6712
  noPadding: !0,
6710
- children: /* @__PURE__ */ l(Wc, {})
6713
+ children: /* @__PURE__ */ l(Gc, {})
6711
6714
  }
6712
6715
  ),
6713
- /* @__PURE__ */ l(Hl, { isComponent: e })
6716
+ /* @__PURE__ */ l(Wl, { isComponent: e })
6714
6717
  ]
6715
6718
  }
6716
6719
  )
@@ -6720,37 +6723,37 @@ function Ia({ isComponent: e = !1 }) {
6720
6723
  );
6721
6724
  }
6722
6725
  Ia.displayName = "App";
6723
- const sd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Ia }, Symbol.toStringTag, { value: "Module" }));
6726
+ const ld = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Ia }, Symbol.toStringTag, { value: "Module" }));
6724
6727
  export {
6725
- ed as $e,
6726
- sd as App,
6728
+ td as $e,
6729
+ ld as App,
6727
6730
  Fe as B,
6728
6731
  rs as CHAT_RESTORE,
6729
6732
  ne as ChatContext,
6730
6733
  Nl as ConfirmationPanel,
6731
- rd as De,
6734
+ nd as De,
6732
6735
  Kt as E,
6733
- td as Fe,
6736
+ rd as Fe,
6734
6737
  is as HistoryContext,
6735
6738
  ci as Le,
6736
- id as P,
6737
- ut as R,
6739
+ sd as P,
6740
+ dt as R,
6738
6741
  Sa as Re,
6739
6742
  Me as SERVICE_TYPES,
6740
- Zc as Ue,
6741
- Qc as We,
6743
+ Xc as Ue,
6744
+ ed as We,
6742
6745
  Cl as Ze,
6743
6746
  Ve as _e,
6744
6747
  Lo as i,
6745
- Xc as je,
6748
+ Qc as je,
6746
6749
  ho as m,
6747
6750
  Nr as me,
6748
6751
  qr as p,
6749
6752
  kr as serviceCall,
6750
6753
  Zi as setNewProvider,
6751
- ad as useChatsHistory,
6752
- od as useServerCapabilities,
6753
- nd as useUserChatStats,
6754
+ od as useChatsHistory,
6755
+ id as useServerCapabilities,
6756
+ ad as useUserChatStats,
6754
6757
  wr as useUserPreferences,
6755
6758
  Kr as z
6756
6759
  };