@versini/sassysaint 7.2.1 → 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.DxtRERJQ.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
  }
@@ -2261,7 +2261,7 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2261
2261
  });
2262
2262
  } catch {
2263
2263
  }
2264
- }, pt = ({
2264
+ }, gt = ({
2265
2265
  fetcher: e,
2266
2266
  scope: t,
2267
2267
  keys: r,
@@ -2274,7 +2274,7 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2274
2274
  { ...n }
2275
2275
  );
2276
2276
  return { data: o, error: i, isLoading: s, mutate: c };
2277
- }, yt = async ({
2277
+ }, pt = async ({
2278
2278
  getAccessToken: e,
2279
2279
  type: t,
2280
2280
  params: r
@@ -2287,7 +2287,7 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2287
2287
  if (a.status === 200 && a.errors === void 0)
2288
2288
  return a.data;
2289
2289
  throw new Error("An error occurred while fetching the data.");
2290
- }, Xi = async ([e, t], r) => yt({
2290
+ }, Xi = async ([e, t], r) => pt({
2291
2291
  getAccessToken: r,
2292
2292
  type: Me.GET_USER_PREFERENCES,
2293
2293
  params: {
@@ -2297,7 +2297,7 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2297
2297
  keys: e,
2298
2298
  getAccessToken: t,
2299
2299
  isPaused: r = !1
2300
- }) => pt({
2300
+ }) => gt({
2301
2301
  fetcher: Xi,
2302
2302
  scope: "/preferences",
2303
2303
  keys: e,
@@ -2308,16 +2308,16 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2308
2308
  revalidateOnReconnect: r
2309
2309
  },
2310
2310
  getAccessToken: t
2311
- }), Qi = async ([e, t], r) => yt({
2311
+ }), Qi = async ([e, t], r) => pt({
2312
2312
  getAccessToken: r,
2313
2313
  type: Me.GET_CHATS_STATS,
2314
2314
  params: {
2315
2315
  user: t
2316
2316
  }
2317
- }), nd = ({
2317
+ }), ad = ({
2318
2318
  keys: e,
2319
2319
  getAccessToken: t
2320
- }) => pt({
2320
+ }) => gt({
2321
2321
  fetcher: Qi,
2322
2322
  scope: "/stats",
2323
2323
  keys: e,
@@ -2329,7 +2329,7 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2329
2329
  revalidateOnReconnect: !0
2330
2330
  },
2331
2331
  getAccessToken: t
2332
- }), aa = async ([e, t, r, n], a) => yt({
2332
+ }), aa = async ([e, t, r, n], a) => pt({
2333
2333
  getAccessToken: a,
2334
2334
  type: Me.GET_CHATS,
2335
2335
  params: {
@@ -2339,10 +2339,10 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2339
2339
  limit: 1,
2340
2340
  truncateSize: 100
2341
2341
  }
2342
- }), ad = ({
2342
+ }), od = ({
2343
2343
  keys: e,
2344
2344
  getAccessToken: t
2345
- }) => pt({
2345
+ }) => gt({
2346
2346
  fetcher: aa,
2347
2347
  scope: "/history",
2348
2348
  keys: e,
@@ -2359,12 +2359,12 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2359
2359
  getAccessToken: t
2360
2360
  }) => {
2361
2361
  ra(["/history", ...e], (r) => aa(r, t));
2362
- }, oa = async ([e], t) => yt({
2362
+ }, oa = async ([e], t) => pt({
2363
2363
  getAccessToken: t,
2364
2364
  type: Me.GET_SERVER_CAPABILITIES
2365
- }), od = ({
2365
+ }), id = ({
2366
2366
  getAccessToken: e
2367
- }) => pt({
2367
+ }) => gt({
2368
2368
  fetcher: oa,
2369
2369
  scope: "/capabilities",
2370
2370
  keys: [],
@@ -2444,7 +2444,7 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2444
2444
  case Pe: {
2445
2445
  let p = !1;
2446
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), {
2447
- id: st(),
2447
+ id: it(),
2448
2448
  model: e.model,
2449
2449
  provider: ((g = t == null ? void 0 : t.payload) == null ? void 0 : g.provider) || e.provider,
2450
2450
  privateChat: p,
@@ -2479,15 +2479,15 @@ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2479
2479
  state: { searchString: "", sortedCell: "", sortDirection: "" },
2480
2480
  dispatch: () => {
2481
2481
  }
2482
- }), bt = U.createContext({
2482
+ }), yt = U.createContext({
2483
2483
  state: { prompt: "", lastTriggeredTimestamp: 0 },
2484
2484
  dispatch: () => {
2485
2485
  }
2486
2486
  }), ne = U.createContext({
2487
2487
  state: {
2488
2488
  id: "",
2489
- model: it,
2490
- provider: it,
2489
+ model: ot,
2490
+ provider: ot,
2491
2491
  privateChat: !1,
2492
2492
  usage: 0,
2493
2493
  messages: [],
@@ -2512,7 +2512,7 @@ try {
2512
2512
  });
2513
2513
  } catch {
2514
2514
  }
2515
- 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) => ({
2516
2516
  x: e,
2517
2517
  y: e
2518
2518
  }), cs = {
@@ -2552,10 +2552,10 @@ function us(e, t, r) {
2552
2552
  r === void 0 && (r = !1);
2553
2553
  const n = Je(e), a = _r(e), o = xr(a);
2554
2554
  let i = a === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
2555
- 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)];
2556
2556
  }
2557
2557
  function ms(e) {
2558
- const t = ct(e);
2558
+ const t = lt(e);
2559
2559
  return [lr(e), t, lr(t)];
2560
2560
  }
2561
2561
  function lr(e) {
@@ -2579,7 +2579,7 @@ function hs(e, t, r, n) {
2579
2579
  let o = fs(_e(e), r === "start", n);
2580
2580
  return a && (o = o.map((i) => i + "-" + a), t && (o = o.concat(o.map(lr)))), o;
2581
2581
  }
2582
- function ct(e) {
2582
+ function lt(e) {
2583
2583
  return e.replace(/left|right|bottom|top/g, (t) => cs[t]);
2584
2584
  }
2585
2585
  function gs(e) {
@@ -2599,7 +2599,7 @@ function sa(e) {
2599
2599
  left: e
2600
2600
  };
2601
2601
  }
2602
- function dt(e) {
2602
+ function ct(e) {
2603
2603
  const {
2604
2604
  x: t,
2605
2605
  y: r,
@@ -2742,7 +2742,7 @@ async function la(e, t) {
2742
2742
  elementContext: u = "floating",
2743
2743
  altBoundary: f = !1,
2744
2744
  padding: g = 0
2745
- } = 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({
2746
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)),
2747
2747
  boundary: d,
2748
2748
  rootBoundary: h,
@@ -2758,7 +2758,7 @@ async function la(e, t) {
2758
2758
  } : {
2759
2759
  x: 1,
2760
2760
  y: 1
2761
- }, I = dt(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
2761
+ }, I = ct(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
2762
2762
  elements: s,
2763
2763
  rect: b,
2764
2764
  offsetParent: x,
@@ -2832,7 +2832,7 @@ const ys = (e) => ({
2832
2832
  } = Ye(e, t);
2833
2833
  if ((r = o.arrow) != null && r.alignmentOffset)
2834
2834
  return {};
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 ? [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";
2836
2836
  !f && C && E.push(...hs(s, y, p, I));
2837
2837
  const $ = [s, ...E], _ = await la(t, v), w = [];
2838
2838
  let N = ((n = o.flip) == null ? void 0 : n.overflows) || [];
@@ -2869,7 +2869,7 @@ const ys = (e) => ({
2869
2869
  q === "y";
2870
2870
  }
2871
2871
  return !0;
2872
- }).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];
2873
2873
  F && (R = F);
2874
2874
  break;
2875
2875
  }
@@ -2994,7 +2994,7 @@ const ks = function(e) {
2994
2994
  }
2995
2995
  };
2996
2996
  };
2997
- function vt() {
2997
+ function bt() {
2998
2998
  return typeof window < "u";
2999
2999
  }
3000
3000
  function De(e) {
@@ -3009,16 +3009,16 @@ function be(e) {
3009
3009
  return (t = (ca(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
3010
3010
  }
3011
3011
  function ca(e) {
3012
- return vt() ? e instanceof Node || e instanceof te(e).Node : !1;
3012
+ return bt() ? e instanceof Node || e instanceof te(e).Node : !1;
3013
3013
  }
3014
3014
  function ae(e) {
3015
- return vt() ? e instanceof Element || e instanceof te(e).Element : !1;
3015
+ return bt() ? e instanceof Element || e instanceof te(e).Element : !1;
3016
3016
  }
3017
3017
  function ue(e) {
3018
- return vt() ? e instanceof HTMLElement || e instanceof te(e).HTMLElement : !1;
3018
+ return bt() ? e instanceof HTMLElement || e instanceof te(e).HTMLElement : !1;
3019
3019
  }
3020
3020
  function dn(e) {
3021
- 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;
3022
3022
  }
3023
3023
  function Ze(e) {
3024
3024
  const {
@@ -3032,7 +3032,7 @@ function Ze(e) {
3032
3032
  function xs(e) {
3033
3033
  return ["table", "td", "th"].includes(De(e));
3034
3034
  }
3035
- function kt(e) {
3035
+ function vt(e) {
3036
3036
  return [":popover-open", ":modal"].some((t) => {
3037
3037
  try {
3038
3038
  return e.matches(t);
@@ -3050,7 +3050,7 @@ function _s(e) {
3050
3050
  for (; ue(t) && !$e(t); ) {
3051
3051
  if (Er(t))
3052
3052
  return t;
3053
- if (kt(t))
3053
+ if (vt(t))
3054
3054
  return null;
3055
3055
  t = xe(t);
3056
3056
  }
@@ -3065,7 +3065,7 @@ function $e(e) {
3065
3065
  function oe(e) {
3066
3066
  return te(e).getComputedStyle(e);
3067
3067
  }
3068
- function wt(e) {
3068
+ function kt(e) {
3069
3069
  return ae(e) ? {
3070
3070
  scrollLeft: e.scrollLeft,
3071
3071
  scrollTop: e.scrollTop
@@ -3102,7 +3102,7 @@ function un(e) {
3102
3102
  function ma(e) {
3103
3103
  const t = oe(e);
3104
3104
  let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
3105
- 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;
3106
3106
  return s && (r = o, n = i), {
3107
3107
  width: r,
3108
3108
  height: n,
@@ -3121,7 +3121,7 @@ function Ie(e) {
3121
3121
  height: a,
3122
3122
  $: o
3123
3123
  } = ma(t);
3124
- 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;
3125
3125
  return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
3126
3126
  x: i,
3127
3127
  y: s
@@ -3153,7 +3153,7 @@ function Ke(e, t, r, n) {
3153
3153
  c *= v.x, d *= v.y, h *= v.x, u *= v.y, c += k, d += I, p = te(y), y = un(p);
3154
3154
  }
3155
3155
  }
3156
- return dt({
3156
+ return ct({
3157
3157
  width: h,
3158
3158
  height: u,
3159
3159
  x: c,
@@ -3161,7 +3161,7 @@ function Ke(e, t, r, n) {
3161
3161
  });
3162
3162
  }
3163
3163
  function Sr(e, t) {
3164
- const r = wt(e).scrollLeft;
3164
+ const r = kt(e).scrollLeft;
3165
3165
  return t ? t.left + r : Ke(be(e)).left + r;
3166
3166
  }
3167
3167
  function ga(e, t, r) {
@@ -3182,7 +3182,7 @@ function Ss(e) {
3182
3182
  offsetParent: n,
3183
3183
  strategy: a
3184
3184
  } = e;
3185
- 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;
3186
3186
  if (n === i || s && o)
3187
3187
  return r;
3188
3188
  let c = {
@@ -3190,7 +3190,7 @@ function Ss(e) {
3190
3190
  scrollTop: 0
3191
3191
  }, d = de(1);
3192
3192
  const h = de(0), u = ue(n);
3193
- 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))) {
3194
3194
  const g = Ke(n);
3195
3195
  d = Ie(n), h.x = g.x + n.clientLeft, h.y = g.y + n.clientTop;
3196
3196
  }
@@ -3206,7 +3206,7 @@ function Cs(e) {
3206
3206
  return Array.from(e.getClientRects());
3207
3207
  }
3208
3208
  function Ns(e) {
3209
- 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);
3210
3210
  let i = -r.scrollLeft + Sr(e);
3211
3211
  const s = -r.scrollTop;
3212
3212
  return oe(n).direction === "rtl" && (i += Re(t.clientWidth, n.clientWidth) - a), {
@@ -3257,7 +3257,7 @@ function mn(e, t, r) {
3257
3257
  height: t.height
3258
3258
  };
3259
3259
  }
3260
- return dt(n);
3260
+ return ct(n);
3261
3261
  }
3262
3262
  function pa(e, t) {
3263
3263
  const r = xe(e);
@@ -3283,7 +3283,7 @@ function $s(e) {
3283
3283
  rootBoundary: n,
3284
3284
  strategy: a
3285
3285
  } = e;
3286
- 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) => {
3287
3287
  const h = mn(t, d, a);
3288
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;
3289
3289
  }, mn(t, i, a));
@@ -3312,7 +3312,7 @@ function Os(e, t, r) {
3312
3312
  };
3313
3313
  const c = de(0);
3314
3314
  if (n || !n && !o)
3315
- if ((De(t) !== "body" || Ze(a)) && (s = wt(t)), n) {
3315
+ if ((De(t) !== "body" || Ze(a)) && (s = kt(t)), n) {
3316
3316
  const f = Ke(t, !0, o, t);
3317
3317
  c.x = f.x + t.clientLeft, c.y = f.y + t.clientTop;
3318
3318
  } else a && (c.x = Sr(a));
@@ -3324,7 +3324,7 @@ function Os(e, t, r) {
3324
3324
  height: i.height
3325
3325
  };
3326
3326
  }
3327
- function Ut(e) {
3327
+ function zt(e) {
3328
3328
  return oe(e).position === "static";
3329
3329
  }
3330
3330
  function fn(e, t) {
@@ -3337,21 +3337,21 @@ function fn(e, t) {
3337
3337
  }
3338
3338
  function ya(e, t) {
3339
3339
  const r = te(e);
3340
- if (kt(e))
3340
+ if (vt(e))
3341
3341
  return r;
3342
3342
  if (!ue(e)) {
3343
3343
  let a = xe(e);
3344
3344
  for (; a && !$e(a); ) {
3345
- if (ae(a) && !Ut(a))
3345
+ if (ae(a) && !zt(a))
3346
3346
  return a;
3347
3347
  a = xe(a);
3348
3348
  }
3349
3349
  return r;
3350
3350
  }
3351
3351
  let n = fn(e, t);
3352
- for (; n && xs(n) && Ut(n); )
3352
+ for (; n && xs(n) && zt(n); )
3353
3353
  n = fn(n, t);
3354
- 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;
3355
3355
  }
3356
3356
  const Bs = async function(e) {
3357
3357
  const t = this.getOffsetParent || ya, r = this.getDimensions, n = await r(e.floating);
@@ -3565,7 +3565,7 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Gs = (
3565
3565
  });
3566
3566
  };
3567
3567
  return M(() => {
3568
- 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));
3569
3569
  }, [t]), /* @__PURE__ */ l(
3570
3570
  Ve,
3571
3571
  {
@@ -3601,7 +3601,7 @@ try {
3601
3601
  });
3602
3602
  } catch {
3603
3603
  }
3604
- 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 = ({
3605
3605
  type: e,
3606
3606
  size: t,
3607
3607
  labelRight: r,
@@ -3618,7 +3618,7 @@ const pn = "av-messagebox", yn = "av-panel", bn = "av-button", xt = "icon", ba =
3618
3618
  [s]: t === "medium",
3619
3619
  [c]: t === "large"
3620
3620
  });
3621
- case xt:
3621
+ case wt:
3622
3622
  return m("flex items-center", {
3623
3623
  "justify-center": a === "center",
3624
3624
  "justify-start": a === "left",
@@ -3653,7 +3653,7 @@ const pn = "av-messagebox", yn = "av-panel", bn = "av-button", xt = "icon", ba =
3653
3653
  [o]: t === "medium",
3654
3654
  [i]: t === "large"
3655
3655
  });
3656
- case xt:
3656
+ case wt:
3657
3657
  return m({
3658
3658
  [a]: t === "small" && (r || n),
3659
3659
  [o]: t === "medium" && (r || n),
@@ -3891,7 +3891,7 @@ const pn = "av-messagebox", yn = "av-panel", bn = "av-button", xt = "icon", ba =
3891
3891
  "disabled:cursor-not-allowed disabled:opacity-50": o
3892
3892
  },
3893
3893
  m({
3894
- "transition-[width] duration-300 ease-in-out": e === xt && v
3894
+ "transition-[width] duration-300 ease-in-out": e === wt && v
3895
3895
  }),
3896
3896
  t
3897
3897
  )), dl = (e, t, r) => {
@@ -3935,7 +3935,7 @@ const fl = {
3935
3935
  bottom: 0,
3936
3936
  right: 0
3937
3937
  };
3938
- function Ft(e) {
3938
+ function Ut(e) {
3939
3939
  const t = ul(), r = S(0), n = S(null), [a, o] = G(fl), i = ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
3940
3940
  const c = s[0];
3941
3941
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
@@ -3985,7 +3985,7 @@ const hl = {
3985
3985
  ...I
3986
3986
  }, E) => {
3987
3987
  const C = cl({
3988
- type: xt,
3988
+ type: wt,
3989
3989
  mode: r,
3990
3990
  focusMode: n,
3991
3991
  fullWidth: a,
@@ -4001,7 +4001,7 @@ const hl = {
4001
4001
  radius: v,
4002
4002
  variant: b,
4003
4003
  animated: k
4004
- }), $ = 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]);
4005
4005
  return pe(() => {
4006
4006
  O && O.current && k && (D.current = B.width + gl[u] + (c ? 0 : pl));
4007
4007
  }, [B, O, u, c, k]), pe(() => {
@@ -4216,7 +4216,7 @@ function kl({
4216
4216
  [d, h, v, u, o, s]
4217
4217
  );
4218
4218
  }
4219
- const _t = () => {
4219
+ const xt = () => {
4220
4220
  const e = J.useContext(ka);
4221
4221
  if (e == null)
4222
4222
  throw new Error("Modal components must be wrapped in <Modal />");
@@ -4230,7 +4230,7 @@ function wl({
4230
4230
  return /* @__PURE__ */ l(ka.Provider, { value: r, children: e });
4231
4231
  }
4232
4232
  const xl = J.forwardRef(function(e, t) {
4233
- const { context: r, ...n } = _t(), a = gr([n.refs.setFloating, t]);
4233
+ const { context: r, ...n } = xt(), a = gr([n.refs.setFloating, t]);
4234
4234
  if (!r.open)
4235
4235
  return null;
4236
4236
  const { overlayBackground: o, ...i } = e, s = m("grid place-items-center", {
@@ -4248,13 +4248,13 @@ const xl = J.forwardRef(function(e, t) {
4248
4248
  }
4249
4249
  ) }) }) });
4250
4250
  }), _l = J.forwardRef(function({ children: e, ...t }, r) {
4251
- const { setLabelId: n } = _t(), a = hr();
4251
+ const { setLabelId: n } = xt(), a = hr();
4252
4252
  return J.useLayoutEffect(() => (n(a), () => n(void 0)), [a, n]), /* @__PURE__ */ l("h1", { ...t, ref: r, id: a, children: e });
4253
4253
  }), El = J.forwardRef(function({ children: e, ...t }, r) {
4254
- const { setDescriptionId: n } = _t(), a = hr();
4254
+ const { setDescriptionId: n } = xt(), a = hr();
4255
4255
  return J.useLayoutEffect(() => (n(a), () => n(void 0)), [a, n]), /* @__PURE__ */ l("div", { ...t, ref: r, id: a, children: e });
4256
4256
  }), Tl = J.forwardRef(function(e, t) {
4257
- 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]);
4258
4258
  return /* @__PURE__ */ l("div", { className: a, children: J.cloneElement(n, {
4259
4259
  ref: t,
4260
4260
  onClick: i,
@@ -4556,7 +4556,7 @@ const We = "panel", at = "messagebox", Sl = ({
4556
4556
  ), Nr = $n((e, t) => /* @__PURE__ */ l(co, { children: /* @__PURE__ */ l(wa, { ...e, ref: t }) }));
4557
4557
  Nr.displayName = "Menu";
4558
4558
  wa.displayName = "MenuComponent";
4559
- const ut = J.forwardRef(
4559
+ const dt = J.forwardRef(
4560
4560
  ({
4561
4561
  label: e,
4562
4562
  disabled: t,
@@ -4619,8 +4619,8 @@ const ut = J.forwardRef(
4619
4619
  );
4620
4620
  }
4621
4621
  );
4622
- ut.displayName = "MenuItem";
4623
- const id = ({ className: e, ...t }) => {
4622
+ dt.displayName = "MenuItem";
4623
+ const sd = ({ className: e, ...t }) => {
4624
4624
  const r = m(e, "my-1 border-t border-border-medium");
4625
4625
  return /* @__PURE__ */ l("div", { className: r, ...t });
4626
4626
  }, xa = ({
@@ -4655,7 +4655,7 @@ const Il = (e) => {
4655
4655
  className: e,
4656
4656
  defaultPlacement: t = "top-start"
4657
4657
  }) => {
4658
- 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(), {
4659
4659
  data: i,
4660
4660
  error: s,
4661
4661
  isLoading: c
@@ -4691,7 +4691,7 @@ const Il = (e) => {
4691
4691
  children: [
4692
4692
  /* @__PURE__ */ l(xa, { children: "Prompts" }),
4693
4693
  i && i.tags && i.tags.map((h) => h.enabled && h.label && h.content && /* @__PURE__ */ l(
4694
- ut,
4694
+ dt,
4695
4695
  {
4696
4696
  label: h.label,
4697
4697
  onClick: (u) => d(
@@ -4849,21 +4849,21 @@ const Il = (e) => {
4849
4849
  {
4850
4850
  mode: "dark",
4851
4851
  focusMode: "light",
4852
- 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 }) }),
4853
4853
  defaultPlacement: "top-start",
4854
4854
  children: [
4855
4855
  /* @__PURE__ */ l(xa, { children: "Providers" }),
4856
4856
  /* @__PURE__ */ l(
4857
- ut,
4857
+ dt,
4858
4858
  {
4859
- selected: t === Rt,
4859
+ selected: t === Nt,
4860
4860
  label: "Anthropic",
4861
4861
  icon: /* @__PURE__ */ l(qr, {}),
4862
- onClick: () => d(Rt)
4862
+ onClick: () => d(Nt)
4863
4863
  }
4864
4864
  ),
4865
4865
  /* @__PURE__ */ l(
4866
- ut,
4866
+ dt,
4867
4867
  {
4868
4868
  selected: t === Ur,
4869
4869
  label: "OpenAI",
@@ -4916,7 +4916,7 @@ const Il = (e) => {
4916
4916
  }) => {
4917
4917
  const h = xn * 2, u = 5 * xn, {
4918
4918
  state: { usage: f, messages: g }
4919
- } = 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({
4920
4920
  className: e
4921
4921
  }), [I, E] = $o({
4922
4922
  value: r,
@@ -4984,18 +4984,18 @@ const Il = (e) => {
4984
4984
  ] })
4985
4985
  }
4986
4986
  );
4987
- }, Fl = () => {
4987
+ }, Fl = 500, Hl = () => {
4988
4988
  const {
4989
4989
  state: { messages: e, provider: t, id: r, usage: n, privateChat: a, streaming: o },
4990
4990
  dispatch: i
4991
- } = 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(
4992
4992
  null
4993
4993
  );
4994
4994
  Eo([
4995
4995
  [
4996
4996
  "mod+K",
4997
4997
  () => {
4998
- p && p.current && !ot() && p.current.focus();
4998
+ p && p.current && !Gt() && p.current.focus();
4999
4999
  }
5000
5000
  ]
5001
5001
  ]);
@@ -5027,7 +5027,7 @@ const Il = (e) => {
5027
5027
  name: "generate",
5028
5028
  data: {
5029
5029
  messages: e,
5030
- model: t || it,
5030
+ model: t || ot,
5031
5031
  user: (f == null ? void 0 : f.username) || "",
5032
5032
  id: r,
5033
5033
  usage: n,
@@ -5042,7 +5042,7 @@ const Il = (e) => {
5042
5042
  type: ir,
5043
5043
  payload: !0
5044
5044
  });
5045
- const I = st();
5045
+ const I = it();
5046
5046
  y.current = k.body.getReader();
5047
5047
  const E = new TextDecoder();
5048
5048
  for (; ; ) {
@@ -5059,7 +5059,7 @@ const Il = (e) => {
5059
5059
  payload: {
5060
5060
  content: T.content,
5061
5061
  role: ve,
5062
- messageId: st()
5062
+ messageId: it()
5063
5063
  }
5064
5064
  });
5065
5065
  } else if (w !== -1) {
@@ -5117,15 +5117,19 @@ const Il = (e) => {
5117
5117
  const b = s.prompt.endsWith(":") && !s.prompt.endsWith(": ") ? s.prompt + " " : s.prompt;
5118
5118
  b.indexOf(Gr) !== -1 ? navigator.clipboard.readText().then((k) => {
5119
5119
  h(b.replace(Gr, k));
5120
- }) : h(b), !ot() && p.current && p.current.focus(), c({
5120
+ }) : h(b), !Gt() && p.current && p.current.focus(), c({
5121
5121
  type: In
5122
5122
  });
5123
5123
  }
5124
5124
  }, [s, c]), M(() => {
5125
+ if (g.current === !1) {
5126
+ g.current = !0;
5127
+ return;
5128
+ }
5125
5129
  n === 0 && (e == null ? void 0 : e.length) === 0 && (h(""), setTimeout(() => {
5126
5130
  p.current && p.current.focus();
5127
- }, g));
5128
- }, [n, e, g]), M(() => {
5131
+ }, Fl));
5132
+ }, [n, e]), M(() => {
5129
5133
  o === !1 && p.current && p.current.focus();
5130
5134
  }, [o]), /* @__PURE__ */ l(Ee, { children: /* @__PURE__ */ l(
5131
5135
  Ul,
@@ -5137,20 +5141,20 @@ const Il = (e) => {
5137
5141
  onChange: (b) => h(b.target.value)
5138
5142
  }
5139
5143
  ) });
5140
- }, Ht = "--sassy-bottom", _n = "16px", Hl = ({ isComponent: e }) => {
5144
+ }, Ft = "--sassy-bottom", _n = "16px", Wl = ({ isComponent: e }) => {
5141
5145
  const {
5142
5146
  state: { loading: t, streaming: r, restoring: n, messages: a }
5143
5147
  } = W(ne), { height: o } = Oo(), [i, s] = Ao(), c = Wa();
5144
5148
  return M(() => {
5145
5149
  var h, u, f;
5146
- 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);
5147
5151
  if ((t && !r || n) && d !== _n && ((u = i == null ? void 0 : i.current) == null || u.style.setProperty(
5148
- Ht,
5152
+ Ft,
5149
5153
  _n
5150
5154
  )), !t && !r && a.length === 0) {
5151
5155
  const g = `${o - s.height - (e ? 300 : c ? 220 : 245)}`;
5152
5156
  d !== `${g}px` && Number(g) > 0 && ((f = i == null ? void 0 : i.current) == null || f.style.setProperty(
5153
- Ht,
5157
+ Ft,
5154
5158
  `${g}px`
5155
5159
  ));
5156
5160
  }
@@ -5176,7 +5180,7 @@ const Il = (e) => {
5176
5180
  as
5177
5181
  ),
5178
5182
  children: [
5179
- /* @__PURE__ */ l(Fl, {}),
5183
+ /* @__PURE__ */ l(Hl, {}),
5180
5184
  /* @__PURE__ */ l("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Ha })
5181
5185
  ]
5182
5186
  }
@@ -5195,7 +5199,7 @@ try {
5195
5199
  });
5196
5200
  } catch {
5197
5201
  }
5198
- 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 = ({
5199
5203
  type: e,
5200
5204
  size: t,
5201
5205
  labelRight: r,
@@ -5212,7 +5216,7 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5212
5216
  [s]: t === "medium",
5213
5217
  [c]: t === "large"
5214
5218
  });
5215
- case Et:
5219
+ case _t:
5216
5220
  return m("flex items-center", {
5217
5221
  "justify-center": a === "center",
5218
5222
  "justify-start": a === "left",
@@ -5231,7 +5235,7 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5231
5235
  "h-12": t === "large" && o && (r || n)
5232
5236
  });
5233
5237
  }
5234
- }, jl = ({
5238
+ }, ql = ({
5235
5239
  type: e,
5236
5240
  size: t,
5237
5241
  labelRight: r,
@@ -5247,14 +5251,14 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5247
5251
  [o]: t === "medium",
5248
5252
  [i]: t === "large"
5249
5253
  });
5250
- case Et:
5254
+ case _t:
5251
5255
  return m({
5252
5256
  [a]: t === "small" && (r || n),
5253
5257
  [o]: t === "medium" && (r || n),
5254
5258
  [i]: t === "large" && (r || n)
5255
5259
  });
5256
5260
  }
5257
- }, ql = ({
5261
+ }, Kl = ({
5258
5262
  mode: e,
5259
5263
  noBackground: t,
5260
5264
  noTruncate: r,
@@ -5290,7 +5294,7 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5290
5294
  return m("not-prose text-copy-lighter", {
5291
5295
  truncate: !r
5292
5296
  });
5293
- }, Kl = ({
5297
+ }, Yl = ({
5294
5298
  mode: e,
5295
5299
  noBackground: t,
5296
5300
  variant: r
@@ -5320,13 +5324,13 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5320
5324
  if (r === "selected")
5321
5325
  return "bg-action-selected-dark";
5322
5326
  }
5323
- }, Yl = ({
5327
+ }, Jl = ({
5324
5328
  radius: e
5325
5329
  }) => m({
5326
5330
  "rounded-full": e === "large",
5327
5331
  "rounded-md": e === "medium",
5328
5332
  "rounded-sm": e === "small"
5329
- }), Jl = ({
5333
+ }), Zl = ({
5330
5334
  mode: e,
5331
5335
  disabled: t,
5332
5336
  variant: r
@@ -5356,7 +5360,7 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5356
5360
  });
5357
5361
  if (r === "selected")
5358
5362
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
5359
- }, Zl = ({
5363
+ }, Xl = ({
5360
5364
  mode: e,
5361
5365
  disabled: t,
5362
5366
  variant: r
@@ -5386,7 +5390,7 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5386
5390
  });
5387
5391
  if (r === "selected")
5388
5392
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
5389
- }, Xl = ({
5393
+ }, Ql = ({
5390
5394
  mode: e,
5391
5395
  noBorder: t,
5392
5396
  variant: r
@@ -5416,14 +5420,14 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5416
5420
  });
5417
5421
  if (r === "selected")
5418
5422
  return "border border-border-selected-dark";
5419
- }, Ql = ({
5423
+ }, ec = ({
5420
5424
  focusMode: e
5421
5425
  }) => m("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
5422
5426
  "focus:outline-focus-dark": e === "dark",
5423
5427
  "focus:outline-focus-light": e === "light",
5424
5428
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
5425
5429
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
5426
- }), ec = ({
5430
+ }), tc = ({
5427
5431
  mode: e,
5428
5432
  raw: t,
5429
5433
  iconClassName: r
@@ -5435,11 +5439,11 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5435
5439
  "dark:text-copy-accent-dark": e === "system"
5436
5440
  },
5437
5441
  r
5438
- ), tc = ({
5442
+ ), rc = ({
5439
5443
  animated: e
5440
5444
  }) => m({
5441
5445
  "transition-opacity duration-300 ease-in": e
5442
- }), rc = ({
5446
+ }), nc = ({
5443
5447
  type: e,
5444
5448
  className: t,
5445
5449
  raw: r,
@@ -5459,15 +5463,15 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5459
5463
  animated: v
5460
5464
  }) => (f || (f = "primary"), r ? m(En, t) : m(
5461
5465
  En,
5462
- ql({
5466
+ Kl({
5463
5467
  mode: n,
5464
5468
  variant: f,
5465
5469
  noBackground: u,
5466
5470
  noTruncate: g
5467
5471
  }),
5468
- Kl({ mode: n, noBackground: u, variant: f }),
5469
- Yl({ radius: y }),
5470
- Gl({
5472
+ Yl({ mode: n, noBackground: u, variant: f }),
5473
+ Jl({ radius: y }),
5474
+ jl({
5471
5475
  type: e,
5472
5476
  size: s,
5473
5477
  labelRight: d,
@@ -5475,20 +5479,20 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5475
5479
  align: p,
5476
5480
  animated: v
5477
5481
  }),
5478
- jl({ type: e, size: s, labelRight: d, labelLeft: h }),
5479
- Xl({ mode: n, variant: f, noBorder: c }),
5480
- Ql({ focusMode: a }),
5481
- 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 }),
5482
5485
  Zl({ mode: n, variant: f, disabled: o }),
5486
+ Xl({ mode: n, variant: f, disabled: o }),
5483
5487
  {
5484
5488
  "w-full": i,
5485
5489
  "disabled:cursor-not-allowed disabled:opacity-50": o
5486
5490
  },
5487
5491
  m({
5488
- "transition-[width] duration-300 ease-in-out": e === Et && v
5492
+ "transition-[width] duration-300 ease-in-out": e === _t && v
5489
5493
  }),
5490
5494
  t
5491
- )), nc = (e, t, r) => {
5495
+ )), ac = (e, t, r) => {
5492
5496
  var n;
5493
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);
5494
5498
  }, Ea = U.forwardRef((e, t) => {
@@ -5498,20 +5502,20 @@ const Wl = "av-bubble", En = "av-button", Et = "icon", _a = "button", ur = "link
5498
5502
  {
5499
5503
  ref: t,
5500
5504
  onClick: (o) => {
5501
- nc(o, n, r);
5505
+ ac(o, n, r);
5502
5506
  },
5503
5507
  ...a
5504
5508
  }
5505
5509
  );
5506
5510
  });
5507
5511
  Ea.displayName = "BaseButton";
5508
- function ac() {
5512
+ function oc() {
5509
5513
  const e = S(!1);
5510
5514
  return M(() => (e.current = !0, () => {
5511
5515
  e.current = !1;
5512
5516
  }), []), Z(() => e.current, []);
5513
5517
  }
5514
- function oc(e) {
5518
+ function ic(e) {
5515
5519
  return ie(() => e.every((t) => t == null) ? () => {
5516
5520
  } : (t) => {
5517
5521
  e.forEach((r) => {
@@ -5519,7 +5523,7 @@ function oc(e) {
5519
5523
  });
5520
5524
  }, e);
5521
5525
  }
5522
- const ic = {
5526
+ const sc = {
5523
5527
  x: 0,
5524
5528
  y: 0,
5525
5529
  width: 0,
@@ -5529,8 +5533,8 @@ const ic = {
5529
5533
  bottom: 0,
5530
5534
  right: 0
5531
5535
  };
5532
- function Wt(e) {
5533
- 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) => {
5534
5538
  const c = s[0];
5535
5539
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
5536
5540
  n.current && t() && o(c.contentRect);
@@ -5540,21 +5544,21 @@ function Wt(e) {
5540
5544
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
5541
5545
  }), [i, e]), [n, a];
5542
5546
  }
5543
- const sc = {
5547
+ const lc = {
5544
5548
  small: 24,
5545
5549
  // w-6
5546
5550
  medium: 32,
5547
5551
  // w-8
5548
5552
  large: 48
5549
5553
  // w-12
5550
- }, lc = {
5554
+ }, cc = {
5551
5555
  small: 8 * 2,
5552
5556
  // px-2 x 2
5553
5557
  medium: 12 * 2,
5554
5558
  // px-3 x 2
5555
5559
  large: 16 * 2
5556
5560
  // px-4 x 2
5557
- }, cc = 2, Rr = U.forwardRef(
5561
+ }, dc = 2, Rr = U.forwardRef(
5558
5562
  ({
5559
5563
  children: e,
5560
5564
  disabled: t = !1,
@@ -5578,8 +5582,8 @@ const sc = {
5578
5582
  animated: k = !1,
5579
5583
  ...I
5580
5584
  }, E) => {
5581
- const C = rc({
5582
- type: Et,
5585
+ const C = nc({
5586
+ type: _t,
5583
5587
  mode: r,
5584
5588
  focusMode: n,
5585
5589
  fullWidth: a,
@@ -5595,11 +5599,11 @@ const sc = {
5595
5599
  radius: v,
5596
5600
  variant: b,
5597
5601
  animated: k
5598
- }), $ = 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]);
5599
5603
  return pe(() => {
5600
- 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));
5601
5605
  }, [B, O, u, c, k]), pe(() => {
5602
- 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`));
5603
5607
  }, [
5604
5608
  N,
5605
5609
  f,
@@ -5662,7 +5666,7 @@ try {
5662
5666
  });
5663
5667
  } catch {
5664
5668
  }
5665
- const dc = U.forwardRef(
5669
+ const uc = U.forwardRef(
5666
5670
  ({
5667
5671
  children: e,
5668
5672
  mode: t = "system",
@@ -5700,7 +5704,7 @@ const dc = U.forwardRef(
5700
5704
  ) });
5701
5705
  }
5702
5706
  );
5703
- dc.displayName = "ButtonSort";
5707
+ uc.displayName = "ButtonSort";
5704
5708
  const Ta = ({
5705
5709
  children: e,
5706
5710
  fill: t,
@@ -5744,7 +5748,7 @@ try {
5744
5748
  });
5745
5749
  } catch {
5746
5750
  }
5747
- const uc = ({
5751
+ const mc = ({
5748
5752
  className: e,
5749
5753
  viewBox: t,
5750
5754
  title: r,
@@ -5770,7 +5774,7 @@ const uc = ({
5770
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" })
5771
5775
  ]
5772
5776
  }
5773
- ), mc = ({
5777
+ ), fc = ({
5774
5778
  className: e,
5775
5779
  viewBox: t,
5776
5780
  title: r,
@@ -5801,30 +5805,30 @@ try {
5801
5805
  });
5802
5806
  } catch {
5803
5807
  }
5804
- const fc = ({
5808
+ const hc = ({
5805
5809
  kind: e,
5806
5810
  noMaxWidth: t
5807
5811
  }) => m("p-4", {
5808
5812
  "max-w-xs sm:max-w-md md:max-w-2xl": !t,
5809
5813
  "lg:max-w-3xl": e === "left" && !t
5810
- }), hc = ({ kind: e }) => m({
5814
+ }), gc = ({ kind: e }) => m({
5811
5815
  "bg-surface-lighter dark:bg-surface-dark": e === "left",
5812
5816
  "bg-surface-accent": e === "right"
5813
- }), gc = ({ kind: e }) => m(
5817
+ }), pc = ({ kind: e }) => m(
5814
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",
5815
5819
  {
5816
5820
  "text-copy-lighter": e === "right"
5817
5821
  }
5818
- ), pc = ({ kind: e }) => m("rounded-b-xl", {
5822
+ ), yc = ({ kind: e }) => m("rounded-b-xl", {
5819
5823
  "rounded-tr-xl": e === "left",
5820
5824
  "rounded-tl-xl": e === "right"
5821
- }), yc = ({
5825
+ }), bc = ({
5822
5826
  kind: e,
5823
5827
  className: t,
5824
5828
  noMaxWidth: r
5825
5829
  }) => {
5826
5830
  const n = m(
5827
- Wl,
5831
+ Gl,
5828
5832
  "flex items-start",
5829
5833
  {
5830
5834
  "flex-row-reverse": e === "right"
@@ -5832,10 +5836,10 @@ const fc = ({
5832
5836
  t
5833
5837
  ), a = m(
5834
5838
  "flex flex-col empty:hidden",
5835
- fc({ kind: e, noMaxWidth: r }),
5839
+ hc({ kind: e, noMaxWidth: r }),
5840
+ pc({ kind: e }),
5836
5841
  gc({ kind: e }),
5837
- hc({ kind: e }),
5838
- pc({ kind: e })
5842
+ yc({ kind: e })
5839
5843
  ), o = "pr-2 pt-1 text-end text-xs text-copy-light", i = m("flex flex-col-reverse gap-2 sm:flex-row", {
5840
5844
  "ml-2": e === "left",
5841
5845
  "mr-2": e === "right"
@@ -5857,7 +5861,7 @@ const fc = ({
5857
5861
  copyToClipboardMode: s = "system",
5858
5862
  noMaxWidth: c = !1
5859
5863
  }) => {
5860
- 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 = () => {
5861
5865
  h(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
5862
5866
  };
5863
5867
  return M(() => {
@@ -5888,7 +5892,7 @@ const fc = ({
5888
5892
  label: d ? "Copied to clipboard" : "Copy to clipboard",
5889
5893
  onClick: g,
5890
5894
  disabled: d,
5891
- 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" })
5892
5896
  }
5893
5897
  ) })
5894
5898
  ] });
@@ -5906,7 +5910,7 @@ try {
5906
5910
  });
5907
5911
  } catch {
5908
5912
  }
5909
- const Sn = "av-spinner", bc = ({
5913
+ const Sn = "av-spinner", vc = ({
5910
5914
  spinnerRef: e,
5911
5915
  mode: t = "system",
5912
5916
  type: r = "circle",
@@ -5939,7 +5943,7 @@ const Sn = "av-spinner", bc = ({
5939
5943
  ] }),
5940
5944
  /* @__PURE__ */ l("span", { className: "sr-only", children: "Loading..." })
5941
5945
  ] });
5942
- }, Cn = "av-button", Tt = "icon", Ir = "button", mr = "link", vc = ({
5946
+ }, Cn = "av-button", Et = "icon", Ir = "button", mr = "link", kc = ({
5943
5947
  type: e,
5944
5948
  size: t,
5945
5949
  labelRight: r,
@@ -5956,7 +5960,7 @@ const Sn = "av-spinner", bc = ({
5956
5960
  [s]: t === "medium",
5957
5961
  [c]: t === "large"
5958
5962
  });
5959
- case Tt:
5963
+ case Et:
5960
5964
  return m("flex items-center", {
5961
5965
  "justify-center": a === "center",
5962
5966
  "justify-start": a === "left",
@@ -5975,7 +5979,7 @@ const Sn = "av-spinner", bc = ({
5975
5979
  "h-12": t === "large" && o && (r || n)
5976
5980
  });
5977
5981
  }
5978
- }, kc = ({
5982
+ }, wc = ({
5979
5983
  type: e,
5980
5984
  size: t,
5981
5985
  labelRight: r,
@@ -5991,14 +5995,14 @@ const Sn = "av-spinner", bc = ({
5991
5995
  [o]: t === "medium",
5992
5996
  [i]: t === "large"
5993
5997
  });
5994
- case Tt:
5998
+ case Et:
5995
5999
  return m({
5996
6000
  [a]: t === "small" && (r || n),
5997
6001
  [o]: t === "medium" && (r || n),
5998
6002
  [i]: t === "large" && (r || n)
5999
6003
  });
6000
6004
  }
6001
- }, wc = ({
6005
+ }, xc = ({
6002
6006
  mode: e,
6003
6007
  noBackground: t,
6004
6008
  noTruncate: r,
@@ -6034,7 +6038,7 @@ const Sn = "av-spinner", bc = ({
6034
6038
  return m("not-prose text-copy-lighter", {
6035
6039
  truncate: !r
6036
6040
  });
6037
- }, xc = ({
6041
+ }, _c = ({
6038
6042
  mode: e,
6039
6043
  noBackground: t,
6040
6044
  variant: r
@@ -6064,13 +6068,13 @@ const Sn = "av-spinner", bc = ({
6064
6068
  if (r === "selected")
6065
6069
  return "bg-action-selected-dark";
6066
6070
  }
6067
- }, _c = ({
6071
+ }, Ec = ({
6068
6072
  radius: e
6069
6073
  }) => m({
6070
6074
  "rounded-full": e === "large",
6071
6075
  "rounded-md": e === "medium",
6072
6076
  "rounded-sm": e === "small"
6073
- }), Ec = ({
6077
+ }), Tc = ({
6074
6078
  mode: e,
6075
6079
  disabled: t,
6076
6080
  variant: r
@@ -6100,7 +6104,7 @@ const Sn = "av-spinner", bc = ({
6100
6104
  });
6101
6105
  if (r === "selected")
6102
6106
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
6103
- }, Tc = ({
6107
+ }, Sc = ({
6104
6108
  mode: e,
6105
6109
  disabled: t,
6106
6110
  variant: r
@@ -6130,7 +6134,7 @@ const Sn = "av-spinner", bc = ({
6130
6134
  });
6131
6135
  if (r === "selected")
6132
6136
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
6133
- }, Sc = ({
6137
+ }, Cc = ({
6134
6138
  mode: e,
6135
6139
  noBorder: t,
6136
6140
  variant: r
@@ -6160,14 +6164,14 @@ const Sn = "av-spinner", bc = ({
6160
6164
  });
6161
6165
  if (r === "selected")
6162
6166
  return "border border-border-selected-dark";
6163
- }, Cc = ({
6167
+ }, Nc = ({
6164
6168
  focusMode: e
6165
6169
  }) => m("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
6166
6170
  "focus:outline-focus-dark": e === "dark",
6167
6171
  "focus:outline-focus-light": e === "light",
6168
6172
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
6169
6173
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
6170
- }), Nc = ({
6174
+ }), Rc = ({
6171
6175
  mode: e,
6172
6176
  raw: t,
6173
6177
  iconClassName: r
@@ -6179,7 +6183,7 @@ const Sn = "av-spinner", bc = ({
6179
6183
  "dark:text-copy-accent-dark": e === "system"
6180
6184
  },
6181
6185
  r
6182
- ), Rc = ({
6186
+ ), Ic = ({
6183
6187
  animated: e
6184
6188
  }) => m({
6185
6189
  "transition-opacity duration-300 ease-in": e
@@ -6203,15 +6207,15 @@ const Sn = "av-spinner", bc = ({
6203
6207
  animated: v
6204
6208
  }) => (f || (f = "primary"), r ? m(Cn, t) : m(
6205
6209
  Cn,
6206
- wc({
6210
+ xc({
6207
6211
  mode: n,
6208
6212
  variant: f,
6209
6213
  noBackground: u,
6210
6214
  noTruncate: g
6211
6215
  }),
6212
- xc({ mode: n, noBackground: u, variant: f }),
6213
- _c({ radius: y }),
6214
- vc({
6216
+ _c({ mode: n, noBackground: u, variant: f }),
6217
+ Ec({ radius: y }),
6218
+ kc({
6215
6219
  type: e,
6216
6220
  size: s,
6217
6221
  labelRight: d,
@@ -6219,20 +6223,20 @@ const Sn = "av-spinner", bc = ({
6219
6223
  align: p,
6220
6224
  animated: v
6221
6225
  }),
6222
- kc({ type: e, size: s, labelRight: d, labelLeft: h }),
6223
- Sc({ mode: n, variant: f, noBorder: c }),
6224
- Cc({ focusMode: a }),
6225
- 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 }),
6226
6229
  Tc({ mode: n, variant: f, disabled: o }),
6230
+ Sc({ mode: n, variant: f, disabled: o }),
6227
6231
  {
6228
6232
  "w-full": i,
6229
6233
  "disabled:cursor-not-allowed disabled:opacity-50": o
6230
6234
  },
6231
6235
  m({
6232
- "transition-[width] duration-300 ease-in-out": e === Tt && v
6236
+ "transition-[width] duration-300 ease-in-out": e === Et && v
6233
6237
  }),
6234
6238
  t
6235
- )), Ic = (e, t, r) => {
6239
+ )), Ac = (e, t, r) => {
6236
6240
  var n;
6237
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);
6238
6242
  }, Ar = U.forwardRef((e, t) => {
@@ -6242,7 +6246,7 @@ const Sn = "av-spinner", bc = ({
6242
6246
  {
6243
6247
  ref: t,
6244
6248
  onClick: (o) => {
6245
- Ic(o, n, r);
6249
+ Ac(o, n, r);
6246
6250
  },
6247
6251
  ...a
6248
6252
  }
@@ -6292,13 +6296,13 @@ const Na = U.forwardRef(
6292
6296
  }
6293
6297
  );
6294
6298
  Na.displayName = "Button";
6295
- function Ac() {
6299
+ function $c() {
6296
6300
  const e = S(!1);
6297
6301
  return M(() => (e.current = !0, () => {
6298
6302
  e.current = !1;
6299
6303
  }), []), Z(() => e.current, []);
6300
6304
  }
6301
- function $c(e) {
6305
+ function Lc(e) {
6302
6306
  return ie(() => e.every((t) => t == null) ? () => {
6303
6307
  } : (t) => {
6304
6308
  e.forEach((r) => {
@@ -6306,7 +6310,7 @@ function $c(e) {
6306
6310
  });
6307
6311
  }, e);
6308
6312
  }
6309
- const Lc = {
6313
+ const Oc = {
6310
6314
  x: 0,
6311
6315
  y: 0,
6312
6316
  width: 0,
@@ -6316,8 +6320,8 @@ const Lc = {
6316
6320
  bottom: 0,
6317
6321
  right: 0
6318
6322
  };
6319
- function Gt(e) {
6320
- 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) => {
6321
6325
  const c = s[0];
6322
6326
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
6323
6327
  n.current && t() && o(c.contentRect);
@@ -6327,21 +6331,21 @@ function Gt(e) {
6327
6331
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
6328
6332
  }), [i, e]), [n, a];
6329
6333
  }
6330
- const Oc = {
6334
+ const Bc = {
6331
6335
  small: 24,
6332
6336
  // w-6
6333
6337
  medium: 32,
6334
6338
  // w-8
6335
6339
  large: 48
6336
6340
  // w-12
6337
- }, Bc = {
6341
+ }, Mc = {
6338
6342
  small: 8 * 2,
6339
6343
  // px-2 x 2
6340
6344
  medium: 12 * 2,
6341
6345
  // px-3 x 2
6342
6346
  large: 16 * 2
6343
6347
  // px-4 x 2
6344
- }, Mc = 2, Ra = U.forwardRef(
6348
+ }, Pc = 2, Ra = U.forwardRef(
6345
6349
  ({
6346
6350
  children: e,
6347
6351
  disabled: t = !1,
@@ -6366,7 +6370,7 @@ const Oc = {
6366
6370
  ...I
6367
6371
  }, E) => {
6368
6372
  const C = Ca({
6369
- type: Tt,
6373
+ type: Et,
6370
6374
  mode: r,
6371
6375
  focusMode: n,
6372
6376
  fullWidth: a,
@@ -6382,11 +6386,11 @@ const Oc = {
6382
6386
  radius: v,
6383
6387
  variant: b,
6384
6388
  animated: k
6385
- }), $ = 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]);
6386
6390
  return pe(() => {
6387
- 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));
6388
6392
  }, [B, O, u, c, k]), pe(() => {
6389
- 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`));
6390
6394
  }, [
6391
6395
  N,
6392
6396
  f,
@@ -6449,7 +6453,7 @@ try {
6449
6453
  });
6450
6454
  } catch {
6451
6455
  }
6452
- const Pc = U.forwardRef(
6456
+ const Dc = U.forwardRef(
6453
6457
  ({
6454
6458
  children: e,
6455
6459
  mode: t = "system",
@@ -6487,10 +6491,10 @@ const Pc = U.forwardRef(
6487
6491
  ) });
6488
6492
  }
6489
6493
  );
6490
- Pc.displayName = "ButtonSort";
6491
- const Dc = 200, Vc = ({
6494
+ Dc.displayName = "ButtonSort";
6495
+ const Vc = 200, zc = ({
6492
6496
  string: e,
6493
- idealLength: t = Dc
6497
+ idealLength: t = Vc
6494
6498
  }) => {
6495
6499
  if (e.length <= t)
6496
6500
  return { string: e, isTruncated: !1 };
@@ -6501,7 +6505,7 @@ const Dc = 200, Vc = ({
6501
6505
  string: e.slice(0, t + r),
6502
6506
  isTruncated: !0
6503
6507
  };
6504
- }, zc = ({
6508
+ }, Uc = ({
6505
6509
  children: e,
6506
6510
  length: t = 200,
6507
6511
  mode: r = "system",
@@ -6510,7 +6514,7 @@ const Dc = 200, Vc = ({
6510
6514
  const [a, o] = G(!1);
6511
6515
  if (typeof e != "string")
6512
6516
  return e;
6513
- const { string: i, isTruncated: s } = Vc({
6517
+ const { string: i, isTruncated: s } = zc({
6514
6518
  string: e,
6515
6519
  idealLength: t
6516
6520
  });
@@ -6544,21 +6548,21 @@ try {
6544
6548
  });
6545
6549
  } catch {
6546
6550
  }
6547
- const Uc = ({ content: e }) => /* @__PURE__ */ l(
6551
+ const Fc = ({ content: e }) => /* @__PURE__ */ l(
6548
6552
  Sa,
6549
6553
  {
6550
6554
  kind: "right",
6551
6555
  copyToClipboard: e,
6552
6556
  copyToClipboardFocusMode: "light",
6553
6557
  className: "mt-3",
6554
- children: /* @__PURE__ */ l(zc, { mode: "light", focusMode: "light", children: e })
6558
+ children: /* @__PURE__ */ l(Uc, { mode: "light", focusMode: "light", children: e })
6555
6559
  }
6556
6560
  ), Rn = Ln(
6557
6561
  () => import(
6558
6562
  /* webpackChunkName: "LazyMessageAssistant" */
6559
- "./ChatBubbleAssistant.Cwd8d9jB.js"
6563
+ "./ChatBubbleAssistant.Bbf47pgU.js"
6560
6564
  ).then((e) => e.ChatBubbleAssistant)
6561
- ), Fc = U.memo(
6565
+ ), Hc = U.memo(
6562
6566
  ({
6563
6567
  role: e,
6564
6568
  content: t,
@@ -6573,8 +6577,8 @@ const Uc = ({ content: e }) => /* @__PURE__ */ l(
6573
6577
  usage: a,
6574
6578
  content: t
6575
6579
  }
6576
- ) }) : 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
6577
- ), 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 = () => {
6578
6582
  var a;
6579
6583
  const {
6580
6584
  state: { messages: e, loading: t, streaming: r }
@@ -6583,7 +6587,7 @@ const Uc = ({ content: e }) => /* @__PURE__ */ l(
6583
6587
  e && e.length > 0 && e.map((o, i) => {
6584
6588
  const { role: s, content: c, messageId: d, name: h, processingTime: u, usage: f } = o, g = d ? `${d}-${s}` : `${i}-${s}`;
6585
6589
  return /* @__PURE__ */ l(
6586
- Fc,
6590
+ Hc,
6587
6591
  {
6588
6592
  role: s,
6589
6593
  content: c,
@@ -6594,9 +6598,9 @@ const Uc = ({ content: e }) => /* @__PURE__ */ l(
6594
6598
  g
6595
6599
  );
6596
6600
  }),
6597
- (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" }) })
6598
6602
  ] }) : null;
6599
- }, Wc = () => {
6603
+ }, Gc = () => {
6600
6604
  const { isAuthenticated: e } = Oe(), { ref: t, inViewport: r } = To(), {
6601
6605
  state: { usage: n }
6602
6606
  } = W(ne), a = Ga({
@@ -6606,15 +6610,15 @@ const Uc = ({ content: e }) => /* @__PURE__ */ l(
6606
6610
  return /* @__PURE__ */ A(Ee, { children: [
6607
6611
  /* @__PURE__ */ A("div", { className: a, children: [
6608
6612
  /* @__PURE__ */ l(ja, {}),
6609
- /* @__PURE__ */ l(Hc, {}),
6613
+ /* @__PURE__ */ l(Wc, {}),
6610
6614
  /* @__PURE__ */ l("div", { ref: t })
6611
6615
  ] }),
6612
6616
  /* @__PURE__ */ l(Ll, { show: !r && n > 0 })
6613
6617
  ] });
6614
- }, Gc = Ln(
6618
+ }, jc = Ln(
6615
6619
  () => import(
6616
6620
  /* webpackChunkName: "LazyHeader" */
6617
- "./HeaderEntry.BJM1a_zl.js"
6621
+ "./HeaderEntry.ChT4kr64.js"
6618
6622
  )
6619
6623
  );
6620
6624
  function Ia({ isComponent: e = !1 }) {
@@ -6624,15 +6628,15 @@ function Ia({ isComponent: e = !1 }) {
6624
6628
  }), [a] = Kt({
6625
6629
  key: jt + Ya,
6626
6630
  initialValue: Fe.ASC
6627
- }), [o, i] = It(hi, {
6631
+ }), [o, i] = Rt(hi, {
6628
6632
  searchString: n,
6629
6633
  sortedCell: "timestamp",
6630
6634
  sortDirection: a
6631
- }), [s, c] = It(gi, {
6635
+ }), [s, c] = Rt(gi, {
6632
6636
  prompt: "",
6633
6637
  lastTriggeredTimestamp: 0
6634
- }), [d, h] = It(ns, {
6635
- id: st(),
6638
+ }), [d, h] = Rt(ns, {
6639
+ id: it(),
6636
6640
  model: "",
6637
6641
  provider: "",
6638
6642
  privateChat: !1,
@@ -6666,7 +6670,7 @@ function Ia({ isComponent: e = !1 }) {
6666
6670
  u && h({
6667
6671
  type: Pe,
6668
6672
  payload: {
6669
- provider: u.provider || it
6673
+ provider: u.provider || ot
6670
6674
  }
6671
6675
  });
6672
6676
  }, [u]), /* @__PURE__ */ l(
@@ -6677,7 +6681,7 @@ function Ia({ isComponent: e = !1 }) {
6677
6681
  dispatch: i
6678
6682
  },
6679
6683
  children: /* @__PURE__ */ l(
6680
- bt.Provider,
6684
+ yt.Provider,
6681
6685
  {
6682
6686
  value: { state: s, dispatch: c },
6683
6687
  children: /* @__PURE__ */ A(
@@ -6695,7 +6699,7 @@ function Ia({ isComponent: e = !1 }) {
6695
6699
  className: jr({
6696
6700
  extraClass: "mt-5"
6697
6701
  }),
6698
- 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 }) })
6699
6703
  }
6700
6704
  ),
6701
6705
  /* @__PURE__ */ l(
@@ -6706,10 +6710,10 @@ function Ia({ isComponent: e = !1 }) {
6706
6710
  }),
6707
6711
  noMargin: !0,
6708
6712
  noPadding: !0,
6709
- children: /* @__PURE__ */ l(Wc, {})
6713
+ children: /* @__PURE__ */ l(Gc, {})
6710
6714
  }
6711
6715
  ),
6712
- /* @__PURE__ */ l(Hl, { isComponent: e })
6716
+ /* @__PURE__ */ l(Wl, { isComponent: e })
6713
6717
  ]
6714
6718
  }
6715
6719
  )
@@ -6719,37 +6723,37 @@ function Ia({ isComponent: e = !1 }) {
6719
6723
  );
6720
6724
  }
6721
6725
  Ia.displayName = "App";
6722
- 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" }));
6723
6727
  export {
6724
- ed as $e,
6725
- sd as App,
6728
+ td as $e,
6729
+ ld as App,
6726
6730
  Fe as B,
6727
6731
  rs as CHAT_RESTORE,
6728
6732
  ne as ChatContext,
6729
6733
  Nl as ConfirmationPanel,
6730
- rd as De,
6734
+ nd as De,
6731
6735
  Kt as E,
6732
- td as Fe,
6736
+ rd as Fe,
6733
6737
  is as HistoryContext,
6734
6738
  ci as Le,
6735
- id as P,
6736
- ut as R,
6739
+ sd as P,
6740
+ dt as R,
6737
6741
  Sa as Re,
6738
6742
  Me as SERVICE_TYPES,
6739
- Zc as Ue,
6740
- Qc as We,
6743
+ Xc as Ue,
6744
+ ed as We,
6741
6745
  Cl as Ze,
6742
6746
  Ve as _e,
6743
6747
  Lo as i,
6744
- Xc as je,
6748
+ Qc as je,
6745
6749
  ho as m,
6746
6750
  Nr as me,
6747
6751
  qr as p,
6748
6752
  kr as serviceCall,
6749
6753
  Zi as setNewProvider,
6750
- ad as useChatsHistory,
6751
- od as useServerCapabilities,
6752
- nd as useUserChatStats,
6754
+ od as useChatsHistory,
6755
+ id as useServerCapabilities,
6756
+ ad as useUserChatStats,
6753
6757
  wr as useUserPreferences,
6754
6758
  Kr as z
6755
6759
  };