@versini/sassysaint 7.1.0 → 7.1.1

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,9 +1,9 @@
1
1
  import { jsx as l, jsxs as L, Fragment as _e } from "react/jsx-runtime";
2
- import { f as ye, ACTION_SORT as In, ACTION_SEARCH as An, ACTION_RESET_PROMPT as Ea, ACTION_TOGGLE_PROMPT as Ta, ROLE_ASSISTANT as Fe, DEFAULT_AI_PROVIDER as ot, re as $e, DEFAULT_ICON_ACTION_SIZE as ge, L as $n, j as Mr, C as Dr, LOCAL_STORAGE_PREFIX as Ft, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Ln, un as Le, PROVIDER_ANTHROPIC as Ct, PROVIDER_OPENAI as Vr, PROMPT_CLASSNAME as On, PROMPT_EDITABLE_AREA_CLASSNAME as Bn, ROLE_SYSTEM as Mn, ROLE_INTERNAL as at, ROLE_HIDDEN as Dn, STATS_SEPARATOR as Pr, ERROR_MESSAGE as zr, CLIPBOARD_PROMPT as Ur, TYPE_QUESTION as Vn, ROLE_USER as Sa, FOOTER_DISCLAIMER as Pn, getMessageContaintWrapperClass as zn, Logo as Un, getMainPaddingClass as Hr, r as Hn, LOCAL_STORAGE_SEARCH as Fn, LOCAL_STORAGE_SORT as Wn } from "./index.Ct43f1gn.js";
2
+ import { f as ye, ACTION_SORT as Rn, ACTION_SEARCH as In, ACTION_RESET_PROMPT as Ea, ACTION_TOGGLE_PROMPT as Ta, ROLE_ASSISTANT as Fe, DEFAULT_AI_PROVIDER as ot, re as $e, DEFAULT_ICON_ACTION_SIZE as ge, L as An, j as Mr, C as Dr, LOCAL_STORAGE_PREFIX as Ft, LOCAL_STORAGE_PRIVATE_DISCLOSURE as $n, un as Le, PROVIDER_ANTHROPIC as Ct, PROVIDER_OPENAI as Vr, PROMPT_CLASSNAME as Ln, PROMPT_EDITABLE_AREA_CLASSNAME as On, ROLE_SYSTEM as Bn, ROLE_INTERNAL as at, ROLE_HIDDEN as Mn, STATS_SEPARATOR as Pr, ERROR_MESSAGE as zr, CLIPBOARD_PROMPT as Ur, TYPE_QUESTION as Dn, ROLE_USER as Sa, FOOTER_DISCLAIMER as Vn, getMessageContaintWrapperClass as Pn, Logo as zn, getMainPaddingClass as Hr, r as Un, LOCAL_STORAGE_SEARCH as Hn, LOCAL_STORAGE_SORT as Fn } from "./index.B2XPWk2Q.js";
3
3
  import f from "clsx";
4
4
  import * as J from "react";
5
- import U, { useEffect as M, useRef as T, useState as G, useCallback as Z, useSyncExternalStore as Gn, useMemo as oe, useId as dr, useLayoutEffect as pe, useContext as W, createContext as jn, useDebugValue as qn, forwardRef as Ca, lazy as Na, Suspense as Wt, useReducer as Nt } from "react";
6
- import { useMergeRefs as ur, FloatingPortal as Ra, FloatingOverlay as Kn, FloatingFocusManager as Ia, useFloating as Aa, useClick as $a, useDismiss as La, useRole as Oa, useInteractions as Ba, useFloatingTree as Ma, useFloatingNodeId as Yn, useListItem as Da, offset as Jn, flip as Zn, shift as Xn, autoUpdate as Qn, useListNavigation as eo, useTypeahead as to, FloatingNode as ro, FloatingList as ao, FloatingTree as no } from "@floating-ui/react";
5
+ import U, { useEffect as M, useRef as T, useState as W, useCallback as Z, useSyncExternalStore as Wn, useMemo as oe, useId as dr, useLayoutEffect as pe, useContext as G, createContext as Gn, useDebugValue as jn, forwardRef as Ca, lazy as Na, Suspense as Wt, useReducer as Nt } from "react";
6
+ import { useMergeRefs as ur, FloatingPortal as Ra, FloatingOverlay as qn, FloatingFocusManager as Ia, useFloating as Aa, useClick as $a, useDismiss as La, useRole as Oa, useInteractions as Ba, useFloatingTree as Ma, useFloatingNodeId as Kn, useListItem as Da, offset as Yn, flip as Jn, shift as Zn, autoUpdate as Xn, useListNavigation as Qn, useTypeahead as eo, FloatingNode as to, FloatingList as ro, FloatingTree as ao } from "@floating-ui/react";
7
7
  const Fr = ({
8
8
  className: e,
9
9
  viewBox: t,
@@ -21,7 +21,7 @@ const Fr = ({
21
21
  ...n,
22
22
  children: /* @__PURE__ */ l("path", { d: "M17.304 3.541h-3.672l6.696 16.918H24Zm-10.608 0L0 20.459h3.744l1.37-3.553h7.005l1.369 3.553h3.744L10.536 3.541Zm-.371 10.223L8.616 7.82l2.291 5.945Z" })
23
23
  }
24
- ), oo = ({
24
+ ), no = ({
25
25
  className: e,
26
26
  viewBox: t,
27
27
  title: r,
@@ -47,7 +47,7 @@ const Fr = ({
47
47
  /* @__PURE__ */ l("path", { d: "M0 88C0 39.4 39.4 0 88 0h304c30.9 0 56 25.1 56 56v288c0 22.3-13.1 41.6-32 50.6V464h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H80c-44.2 0-80-35.8-80-80 0-2.7.1-5.4.4-8H0zm80 312c-17.7 0-32 14.3-32 32s14.3 32 32 32h288v-64zm-32-41.3c9.8-4.3 20.6-6.7 32-6.7h312c4.4 0 8-3.6 8-8V56c0-4.4-3.6-8-8-8H88c-22.1 0-40 17.9-40 40zM160 112l8.8-17.7c2.9-5.9 11.4-5.9 14.3 0L192 112l17.7 8.8c5.9 2.9 5.9 11.4 0 14.3L192 144l-8.8 17.7c-2.9 5.9-11.4 5.9-14.3 0L160 144l-17.7-8.8c-5.9-2.9-5.9-11.4 0-14.3zm104 104 16.6-38.8c2.8-6.5 11.9-6.5 14.7 0L312 216l38.8 16.6c6.5 2.8 6.5 11.9 0 14.7L312 264l-16.6 38.8c-2.8 6.5-11.9 6.5-14.7 0L264 264l-38.8-16.6c-6.5-2.8-6.5-11.9 0-14.7z" })
48
48
  ]
49
49
  }
50
- ), io = ({
50
+ ), oo = ({
51
51
  className: e,
52
52
  viewBox: t,
53
53
  title: r,
@@ -70,7 +70,7 @@ const Fr = ({
70
70
  }
71
71
  )
72
72
  }
73
- ), so = ({
73
+ ), io = ({
74
74
  className: e,
75
75
  viewBox: t,
76
76
  title: r,
@@ -96,7 +96,7 @@ const Fr = ({
96
96
  /* @__PURE__ */ l("path", { d: "M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 402.7 54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z" })
97
97
  ]
98
98
  }
99
- ), lo = ({
99
+ ), so = ({
100
100
  className: e,
101
101
  viewBox: t,
102
102
  title: r,
@@ -122,7 +122,7 @@ const Fr = ({
122
122
  /* @__PURE__ */ l("path", { d: "m392.4 21.7-30.1 30 97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2l-18.7-18.6c-21.9-21.9-57.3-21.9-79.2 0m-52.7 52.6L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5l167.3-167.4z" })
123
123
  ]
124
124
  }
125
- ), co = ({
125
+ ), lo = ({
126
126
  className: e,
127
127
  viewBox: t,
128
128
  title: r,
@@ -165,7 +165,7 @@ const Fr = ({
165
165
  ...n,
166
166
  children: /* @__PURE__ */ l("path", { d: "M22.282 9.821a5.99 5.99 0 0 0-.516-4.91 6.05 6.05 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.99 5.99 0 0 0-3.998 2.9 6.05 6.05 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.05 6.05 0 0 0 6.515 2.9A5.99 5.99 0 0 0 13.26 24a6.06 6.06 0 0 0 5.772-4.206 6 6 0 0 0 3.997-2.9 6.06 6.06 0 0 0-.747-7.073zM13.26 22.43a4.48 4.48 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.8.8 0 0 0 .392-.681v-6.737l2.02 1.168a.07.07 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494M3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.77.77 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646M2.34 7.896a4.5 4.5 0 0 1 2.366-1.973V11.6a.77.77 0 0 0 .388.677l5.815 3.354-2.02 1.168a.08.08 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855-5.833-3.387L15.119 7.2a.08.08 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667zm2.01-3.023-.141-.085-4.774-2.782a.78.78 0 0 0-.785 0L9.409 9.23V6.897a.07.07 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08-4.778 2.758a.8.8 0 0 0-.393.681zm1.097-2.365 2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5Z" })
167
167
  }
168
- ), uo = ({
168
+ ), co = ({
169
169
  className: e,
170
170
  viewBox: t,
171
171
  title: r,
@@ -191,7 +191,7 @@ const Fr = ({
191
191
  /* @__PURE__ */ l("path", { d: "M380.7 185.8c5.1-6.7 4.2-16.2-2.1-21.8s-15.9-5.3-21.9.7l-179 179-13 13c-3 3-4.7 7.1-4.7 11.3v112c0 13.2 8.1 25 20.3 29.8s26.2 1.6 35.2-8.1l68.5-74-60-25v-13.2z" })
192
192
  ]
193
193
  }
194
- ), mo = ({
194
+ ), uo = ({
195
195
  className: e,
196
196
  viewBox: t,
197
197
  title: r,
@@ -231,7 +231,7 @@ try {
231
231
  });
232
232
  } catch {
233
233
  }
234
- const fo = "av-header", ho = ({
234
+ const mo = "av-header", fo = ({
235
235
  children: e,
236
236
  className: t,
237
237
  raw: r = !1,
@@ -243,7 +243,7 @@ const fo = "av-header", ho = ({
243
243
  noPadding: c = !1
244
244
  }) => {
245
245
  const d = f(
246
- fo,
246
+ mo,
247
247
  {
248
248
  "border-border-accent": a === "dark" && !r && !n && !i,
249
249
  "border-border-medium": a === "light" && !r && !n && !i,
@@ -265,7 +265,7 @@ const fo = "av-header", ho = ({
265
265
  });
266
266
  return /* @__PURE__ */ l("header", { className: d, children: /* @__PURE__ */ l("div", { className: h, children: e }) });
267
267
  };
268
- function go(e) {
268
+ function ho(e) {
269
269
  const t = e.toLowerCase().split("+").map((o) => o.trim()), r = {
270
270
  alt: t.includes("alt"),
271
271
  ctrl: t.includes("ctrl"),
@@ -278,7 +278,7 @@ function go(e) {
278
278
  key: n
279
279
  };
280
280
  }
281
- function po(e, t) {
281
+ function go(e, t) {
282
282
  const { alt: r, ctrl: a, meta: n, mod: o, shift: i, key: s } = e, { altKey: c, ctrlKey: d, metaKey: h, shiftKey: m, key: g } = t;
283
283
  if (r !== c)
284
284
  return !1;
@@ -290,9 +290,9 @@ function po(e, t) {
290
290
  return i !== m ? !1 : !!(s && (g.toLowerCase() === s.toLowerCase() || t.code.replace("Key", "").toLowerCase() === s.toLowerCase()));
291
291
  }
292
292
  function Va(e) {
293
- return (t) => po(go(e), t);
293
+ return (t) => go(ho(e), t);
294
294
  }
295
- function yo(e) {
295
+ function po(e) {
296
296
  return (t) => {
297
297
  const r = "nativeEvent" in t ? t.nativeEvent : t;
298
298
  e.forEach(([a, n, o = { preventDefault: !0 }]) => {
@@ -300,23 +300,23 @@ function yo(e) {
300
300
  });
301
301
  };
302
302
  }
303
- function bo(e, t, r = !1) {
303
+ function yo(e, t, r = !1) {
304
304
  return e.target instanceof HTMLElement ? (r || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
305
305
  }
306
- function vo(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
306
+ function bo(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
307
307
  M(() => {
308
308
  const a = (n) => {
309
309
  e.forEach(
310
310
  ([o, i, s = { preventDefault: !0 }]) => {
311
- Va(o)(n) && bo(n, t, r) && (s.preventDefault && n.preventDefault(), i(n));
311
+ Va(o)(n) && yo(n, t, r) && (s.preventDefault && n.preventDefault(), i(n));
312
312
  }
313
313
  );
314
314
  };
315
315
  return document.documentElement.addEventListener("keydown", a), () => document.documentElement.removeEventListener("keydown", a);
316
316
  }, [e, t, r]);
317
317
  }
318
- function ko() {
319
- const e = T(null), [t, r] = G(!1);
318
+ function vo() {
319
+ const e = T(null), [t, r] = W(!1);
320
320
  return { ref: Z((a) => {
321
321
  var n, o;
322
322
  typeof IntersectionObserver < "u" && (a && !e.current ? e.current = new IntersectionObserver(
@@ -324,7 +324,7 @@ function ko() {
324
324
  ) : (n = e.current) == null || n.disconnect(), a ? (o = e.current) == null || o.observe(a) : r(!1));
325
325
  }, []), inViewport: t };
326
326
  }
327
- function wo() {
327
+ function ko() {
328
328
  const e = T(!1);
329
329
  return M(() => (e.current = !0, () => {
330
330
  e.current = !1;
@@ -338,18 +338,18 @@ const Gr = (e, t) => {
338
338
  typeof t == "function" ? t() : t
339
339
  );
340
340
  window.localStorage.setItem(e, r), Pa(e, r);
341
- }, xo = (e) => {
341
+ }, wo = (e) => {
342
342
  window.localStorage.removeItem(e), Pa(e, null);
343
- }, jr = (e) => window.localStorage.getItem(e), _o = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
343
+ }, jr = (e) => window.localStorage.getItem(e), xo = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
344
344
  function Gt({
345
345
  key: e,
346
346
  initialValue: t
347
347
  }) {
348
- const r = Gn(_o, () => jr(e)), a = Z(
348
+ const r = Wn(xo, () => jr(e)), a = Z(
349
349
  (i) => {
350
350
  try {
351
351
  const s = typeof i == "function" ? i(JSON.parse(r)) : i;
352
- s == null ? xo(e) : Gr(e, s);
352
+ s == null ? wo(e) : Gr(e, s);
353
353
  } catch (s) {
354
354
  console.warn(s);
355
355
  }
@@ -368,7 +368,7 @@ function Gt({
368
368
  }
369
369
  }, [e, t]), [r ? JSON.parse(r) : null, a, n, o];
370
370
  }
371
- function Eo(e) {
371
+ function _o(e) {
372
372
  return oe(() => e.every((t) => t == null) ? () => {
373
373
  } : (t) => {
374
374
  e.forEach((r) => {
@@ -376,7 +376,7 @@ function Eo(e) {
376
376
  });
377
377
  }, e);
378
378
  }
379
- const To = {
379
+ const Eo = {
380
380
  x: 0,
381
381
  y: 0,
382
382
  width: 0,
@@ -386,8 +386,8 @@ const To = {
386
386
  bottom: 0,
387
387
  right: 0
388
388
  };
389
- function So(e) {
390
- const t = wo(), r = T(0), a = T(null), [n, o] = G(To), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
389
+ function To(e) {
390
+ const t = ko(), r = T(0), a = T(null), [n, o] = W(Eo), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
391
391
  const c = s[0];
392
392
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
393
393
  a.current && t() && o(c.contentRect);
@@ -397,7 +397,7 @@ function So(e) {
397
397
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
398
398
  }), [i, e]), [a, n];
399
399
  }
400
- function Co({
400
+ function So({
401
401
  value: e,
402
402
  defaultValue: t,
403
403
  finalValue: r,
@@ -405,7 +405,7 @@ function Co({
405
405
  },
406
406
  initialControlledDelay: n = 0
407
407
  }) {
408
- const [o, i] = G(!1), [s, c] = G(
408
+ const [o, i] = W(!1), [s, c] = W(
409
409
  t !== void 0 ? t : r
410
410
  ), d = (h) => {
411
411
  c(h), a == null || a(h);
@@ -416,7 +416,7 @@ function Co({
416
416
  ), i(!0)))();
417
417
  }, [e, n, o]), e !== void 0 ? !o && n > 0 ? ["", a, !0] : [e, a, !0] : [s, d, !1];
418
418
  }
419
- function No(e) {
419
+ function Co(e) {
420
420
  return dr();
421
421
  }
422
422
  function qr(e, t) {
@@ -424,8 +424,8 @@ function qr(e, t) {
424
424
  passive: !0
425
425
  }), () => window.removeEventListener(e, t)), [e, t]);
426
426
  }
427
- function Ro() {
428
- const [e, t] = G({
427
+ function No() {
428
+ const [e, t] = W({
429
429
  width: 0,
430
430
  height: 0
431
431
  }), r = Z(() => {
@@ -452,7 +452,7 @@ try {
452
452
  const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
453
453
  ASC: "asc",
454
454
  DESC: "desc"
455
- }, Io = ({
455
+ }, Ro = ({
456
456
  mode: e,
457
457
  className: t,
458
458
  wrapperClassName: r,
@@ -487,7 +487,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
487
487
  "text-copy-light dark:text-copy-dark": e === "system",
488
488
  "text-copy-dark dark:text-copy-light": e === "alt-system"
489
489
  })
490
- }), Ao = ({
490
+ }), Io = ({
491
491
  className: e,
492
492
  stickyHeader: t,
493
493
  mode: r
@@ -500,7 +500,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
500
500
  "shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": t && r === "alt-system"
501
501
  },
502
502
  e
503
- ), $o = ({
503
+ ), Ao = ({
504
504
  className: e,
505
505
  stickyFooter: t,
506
506
  mode: r
@@ -513,7 +513,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
513
513
  "shadow-[rgb(65_65_65_/30%)_-0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": t && r === "alt-system"
514
514
  },
515
515
  e
516
- ), Lo = ({
516
+ ), $o = ({
517
517
  mode: e,
518
518
  className: t,
519
519
  cellWrapper: r
@@ -538,7 +538,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
538
538
  "odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": r === Ce && e === "alt-system"
539
539
  },
540
540
  t
541
- ), Oo = ({
541
+ ), Lo = ({
542
542
  cellWrapper: e,
543
543
  className: t,
544
544
  compact: r,
@@ -562,9 +562,9 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
562
562
  },
563
563
  t
564
564
  )
565
- }), Bo = ({
565
+ }), Oo = ({
566
566
  buttonClassName: e
567
- }) => f("rounded-none text-sm", e), Kr = "av-button", ut = "icon", za = "button", jt = "link", Mo = ({
567
+ }) => f("rounded-none text-sm", e), Kr = "av-button", ut = "icon", za = "button", jt = "link", Bo = ({
568
568
  type: e,
569
569
  size: t,
570
570
  labelRight: r,
@@ -600,7 +600,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
600
600
  "h-12": t === "large" && o && (r || a)
601
601
  });
602
602
  }
603
- }, Do = ({
603
+ }, Mo = ({
604
604
  type: e,
605
605
  size: t,
606
606
  labelRight: r,
@@ -623,7 +623,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
623
623
  [i]: t === "large" && (r || a)
624
624
  });
625
625
  }
626
- }, Vo = ({
626
+ }, Do = ({
627
627
  mode: e,
628
628
  noBackground: t,
629
629
  noTruncate: r,
@@ -659,7 +659,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
659
659
  return f("not-prose text-copy-lighter", {
660
660
  truncate: !r
661
661
  });
662
- }, Po = ({
662
+ }, Vo = ({
663
663
  mode: e,
664
664
  noBackground: t,
665
665
  variant: r
@@ -689,13 +689,13 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
689
689
  if (r === "selected")
690
690
  return "bg-action-selected-dark";
691
691
  }
692
- }, zo = ({
692
+ }, Po = ({
693
693
  radius: e
694
694
  }) => f({
695
695
  "rounded-full": e === "large",
696
696
  "rounded-md": e === "medium",
697
697
  "rounded-sm": e === "small"
698
- }), Uo = ({
698
+ }), zo = ({
699
699
  mode: e,
700
700
  disabled: t,
701
701
  variant: r
@@ -725,7 +725,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
725
725
  });
726
726
  if (r === "selected")
727
727
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
728
- }, Ho = ({
728
+ }, Uo = ({
729
729
  mode: e,
730
730
  disabled: t,
731
731
  variant: r
@@ -755,7 +755,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
755
755
  });
756
756
  if (r === "selected")
757
757
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
758
- }, Fo = ({
758
+ }, Ho = ({
759
759
  mode: e,
760
760
  noBorder: t,
761
761
  variant: r
@@ -785,14 +785,14 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
785
785
  });
786
786
  if (r === "selected")
787
787
  return "border border-border-selected-dark";
788
- }, Wo = ({
788
+ }, Fo = ({
789
789
  focusMode: e
790
790
  }) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
791
791
  "focus:outline-focus-dark": e === "dark",
792
792
  "focus:outline-focus-light": e === "light",
793
793
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
794
794
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
795
- }), Go = ({
795
+ }), Wo = ({
796
796
  mode: e,
797
797
  raw: t,
798
798
  iconClassName: r
@@ -804,11 +804,11 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
804
804
  "dark:text-copy-accent-dark": e === "system"
805
805
  },
806
806
  r
807
- ), jo = ({
807
+ ), Go = ({
808
808
  animated: e
809
809
  }) => f({
810
810
  "transition-opacity duration-300 ease-in": e
811
- }), qo = ({
811
+ }), jo = ({
812
812
  type: e,
813
813
  className: t,
814
814
  raw: r,
@@ -828,15 +828,15 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
828
828
  animated: y
829
829
  }) => (g || (g = "primary"), r ? f(Kr, t) : f(
830
830
  Kr,
831
- Vo({
831
+ Do({
832
832
  mode: a,
833
833
  variant: g,
834
834
  noBackground: m,
835
835
  noTruncate: u
836
836
  }),
837
- Po({ mode: a, noBackground: m, variant: g }),
838
- zo({ radius: b }),
839
- Mo({
837
+ Vo({ mode: a, noBackground: m, variant: g }),
838
+ Po({ radius: b }),
839
+ Bo({
840
840
  type: e,
841
841
  size: s,
842
842
  labelRight: d,
@@ -844,11 +844,11 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
844
844
  align: p,
845
845
  animated: y
846
846
  }),
847
- Do({ type: e, size: s, labelRight: d, labelLeft: h }),
848
- Fo({ mode: a, variant: g, noBorder: c }),
849
- Wo({ focusMode: n }),
847
+ Mo({ type: e, size: s, labelRight: d, labelLeft: h }),
848
+ Ho({ mode: a, variant: g, noBorder: c }),
849
+ Fo({ focusMode: n }),
850
+ zo({ mode: a, variant: g, disabled: o }),
850
851
  Uo({ mode: a, variant: g, disabled: o }),
851
- Ho({ mode: a, variant: g, disabled: o }),
852
852
  {
853
853
  "w-full": i,
854
854
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -857,7 +857,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
857
857
  "transition-[width] duration-300 ease-in-out": e === ut && y
858
858
  }),
859
859
  t
860
- )), Ko = (e, t, r) => {
860
+ )), qo = (e, t, r) => {
861
861
  var a;
862
862
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
863
863
  }, Ua = U.forwardRef((e, t) => {
@@ -867,20 +867,20 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
867
867
  {
868
868
  ref: t,
869
869
  onClick: (o) => {
870
- Ko(o, a, r);
870
+ qo(o, a, r);
871
871
  },
872
872
  ...n
873
873
  }
874
874
  );
875
875
  });
876
876
  Ua.displayName = "BaseButton";
877
- function Yo() {
877
+ function Ko() {
878
878
  const e = T(!1);
879
879
  return M(() => (e.current = !0, () => {
880
880
  e.current = !1;
881
881
  }), []), Z(() => e.current, []);
882
882
  }
883
- function Jo(e) {
883
+ function Yo(e) {
884
884
  return oe(() => e.every((t) => t == null) ? () => {
885
885
  } : (t) => {
886
886
  e.forEach((r) => {
@@ -888,7 +888,7 @@ function Jo(e) {
888
888
  });
889
889
  }, e);
890
890
  }
891
- const Zo = {
891
+ const Jo = {
892
892
  x: 0,
893
893
  y: 0,
894
894
  width: 0,
@@ -899,7 +899,7 @@ const Zo = {
899
899
  right: 0
900
900
  };
901
901
  function Rt(e) {
902
- const t = Yo(), r = T(0), a = T(null), [n, o] = G(Zo), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
902
+ const t = Ko(), r = T(0), a = T(null), [n, o] = W(Jo), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
903
903
  const c = s[0];
904
904
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
905
905
  a.current && t() && o(c.contentRect);
@@ -909,21 +909,21 @@ function Rt(e) {
909
909
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
910
910
  }), [i, e]), [a, n];
911
911
  }
912
- const Xo = {
912
+ const Zo = {
913
913
  small: 24,
914
914
  // w-6
915
915
  medium: 32,
916
916
  // w-8
917
917
  large: 48
918
918
  // w-12
919
- }, Qo = {
919
+ }, Xo = {
920
920
  small: 8 * 2,
921
921
  // px-2 x 2
922
922
  medium: 12 * 2,
923
923
  // px-3 x 2
924
924
  large: 16 * 2
925
925
  // px-4 x 2
926
- }, ei = 2, Ha = U.forwardRef(
926
+ }, Qo = 2, Ha = U.forwardRef(
927
927
  ({
928
928
  children: e,
929
929
  disabled: t = !1,
@@ -947,7 +947,7 @@ const Xo = {
947
947
  animated: k = !1,
948
948
  ...N
949
949
  }, _) => {
950
- const I = qo({
950
+ const I = jo({
951
951
  type: ut,
952
952
  mode: r,
953
953
  focusMode: a,
@@ -964,11 +964,11 @@ const Xo = {
964
964
  radius: y,
965
965
  variant: v,
966
966
  animated: k
967
- }), $ = Go({ mode: r, raw: s, iconClassName: x }), E = jo({ animated: k }), [w, S] = Rt(), [C, B] = Rt(), [A, O] = Rt(), V = T(0), R = T(null), H = Jo([_, R]);
967
+ }), $ = Wo({ mode: r, raw: s, iconClassName: x }), E = Go({ animated: k }), [w, S] = Rt(), [C, B] = Rt(), [A, O] = Rt(), V = T(0), R = T(null), H = Yo([_, R]);
968
968
  return pe(() => {
969
- A && A.current && k && (V.current = O.width + Qo[m] + (c ? 0 : ei));
969
+ A && A.current && k && (V.current = O.width + Xo[m] + (c ? 0 : Qo));
970
970
  }, [O, A, m, c, k]), pe(() => {
971
- R && R.current && k && (g && w && S.width > 0 ? (w.current && (w.current.style.opacity = "100"), R.current.style.width = `${S.width + V.current}px`) : u && B.width > 0 ? (C.current && (C.current.style.opacity = "100"), R.current.style.width = `${B.width + V.current}px`) : (w.current && (w.current.style.opacity = "0"), C.current && (C.current.style.opacity = "0"), R.current.style.width = `${Xo[m]}px`));
971
+ R && R.current && k && (g && w && S.width > 0 ? (w.current && (w.current.style.opacity = "100"), R.current.style.width = `${S.width + V.current}px`) : u && B.width > 0 ? (C.current && (C.current.style.opacity = "100"), R.current.style.width = `${B.width + V.current}px`) : (w.current && (w.current.style.opacity = "0"), C.current && (C.current.style.opacity = "0"), R.current.style.width = `${Zo[m]}px`));
972
972
  }, [
973
973
  S,
974
974
  g,
@@ -1113,7 +1113,7 @@ try {
1113
1113
  });
1114
1114
  } catch {
1115
1115
  }
1116
- const ti = ({
1116
+ const ei = ({
1117
1117
  className: e,
1118
1118
  viewBox: t,
1119
1119
  title: r,
@@ -1139,7 +1139,7 @@ const ti = ({
1139
1139
  /* @__PURE__ */ l("path", { d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v306.7l-41.4-41.3c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
1140
1140
  ]
1141
1141
  }
1142
- ), ri = ({
1142
+ ), ti = ({
1143
1143
  className: e,
1144
1144
  viewBox: t,
1145
1145
  title: r,
@@ -1165,7 +1165,7 @@ const ti = ({
1165
1165
  /* @__PURE__ */ l("path", { d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7V64c0-17.7-14.3-32-32-32S96 46.3 96 64v301.7l-32.4-35.3c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96c6.1 6.6 14.6 10.4 23.6 10.4" })
1166
1166
  ]
1167
1167
  }
1168
- ), ai = ({
1168
+ ), ri = ({
1169
1169
  className: e,
1170
1170
  viewBox: t,
1171
1171
  title: r,
@@ -1211,7 +1211,7 @@ const Oe = U.createContext({
1211
1211
  stickyHeader: !1,
1212
1212
  stickyFooter: !1,
1213
1213
  compact: !1
1214
- }), Gc = ({
1214
+ }), Wc = ({
1215
1215
  children: e,
1216
1216
  mode: t = "system",
1217
1217
  caption: r,
@@ -1224,7 +1224,7 @@ const Oe = U.createContext({
1224
1224
  stickyFooter: d,
1225
1225
  ...h
1226
1226
  }) => {
1227
- const m = Io({
1227
+ const m = Ro({
1228
1228
  mode: t,
1229
1229
  className: o,
1230
1230
  wrapperClassName: i,
@@ -1250,54 +1250,54 @@ const Oe = U.createContext({
1250
1250
  )
1251
1251
  }
1252
1252
  );
1253
- }, jc = ({
1253
+ }, Gc = ({
1254
1254
  children: e,
1255
1255
  className: t,
1256
1256
  ...r
1257
1257
  }) => {
1258
- const a = W(Oe);
1258
+ const a = G(Oe);
1259
1259
  a.cellWrapper = dt;
1260
- const n = Ao({
1260
+ const n = Io({
1261
1261
  className: t,
1262
1262
  mode: a.mode,
1263
1263
  stickyHeader: a.stickyHeader
1264
1264
  });
1265
1265
  return /* @__PURE__ */ l("thead", { className: n, ...r, children: e });
1266
- }, qc = ({
1266
+ }, jc = ({
1267
1267
  children: e,
1268
1268
  className: t,
1269
1269
  ...r
1270
1270
  }) => {
1271
- const a = W(Oe);
1271
+ const a = G(Oe);
1272
1272
  a.cellWrapper = mr;
1273
- const n = $o({
1273
+ const n = Ao({
1274
1274
  className: t,
1275
1275
  mode: a.mode,
1276
1276
  stickyFooter: a.stickyFooter
1277
1277
  });
1278
1278
  return /* @__PURE__ */ l("tfoot", { className: n, ...r, children: e });
1279
- }, Kc = ({ children: e, ...t }) => {
1280
- const r = W(Oe);
1279
+ }, qc = ({ children: e, ...t }) => {
1280
+ const r = G(Oe);
1281
1281
  return r.cellWrapper = Ce, /* @__PURE__ */ l("tbody", { ...t, children: e });
1282
- }, Yc = ({
1282
+ }, Kc = ({
1283
1283
  children: e,
1284
1284
  className: t,
1285
1285
  ...r
1286
1286
  }) => {
1287
- const a = W(Oe), n = Lo({
1287
+ const a = G(Oe), n = $o({
1288
1288
  mode: a.mode,
1289
1289
  cellWrapper: a.cellWrapper,
1290
1290
  className: t
1291
1291
  });
1292
1292
  return /* @__PURE__ */ l("tr", { className: n, ...r, children: e });
1293
- }, ni = ({
1293
+ }, ai = ({
1294
1294
  children: e,
1295
1295
  component: t,
1296
1296
  className: r,
1297
1297
  align: a,
1298
1298
  ...n
1299
1299
  }) => {
1300
- const o = W(Oe), i = t || (o.cellWrapper === dt ? "th" : "td"), { mainClasses: s, alignClasses: c } = Oo({
1300
+ const o = G(Oe), i = t || (o.cellWrapper === dt ? "th" : "td"), { mainClasses: s, alignClasses: c } = Lo({
1301
1301
  cellWrapper: o.cellWrapper,
1302
1302
  className: r,
1303
1303
  mode: o.mode,
@@ -1305,7 +1305,7 @@ const Oe = U.createContext({
1305
1305
  align: a
1306
1306
  });
1307
1307
  return a ? /* @__PURE__ */ l(i, { className: s, ...n, children: /* @__PURE__ */ l("div", { className: c, children: e }) }) : /* @__PURE__ */ l(i, { className: s, ...n, children: e });
1308
- }, Jc = ({
1308
+ }, Yc = ({
1309
1309
  align: e,
1310
1310
  children: t,
1311
1311
  buttonClassName: r,
@@ -1319,9 +1319,9 @@ const Oe = U.createContext({
1319
1319
  cellId: h,
1320
1320
  ...m
1321
1321
  }) => {
1322
- const g = Bo({ buttonClassName: r });
1322
+ const g = Oo({ buttonClassName: r });
1323
1323
  return /* @__PURE__ */ l(
1324
- ni,
1324
+ ai,
1325
1325
  {
1326
1326
  component: n,
1327
1327
  className: a,
@@ -1340,7 +1340,7 @@ const Oe = U.createContext({
1340
1340
  mode: i,
1341
1341
  fullWidth: !0,
1342
1342
  labelRight: t,
1343
- children: c === Ue.ASC && d === h ? /* @__PURE__ */ l(ai, { className: "size-4", monotone: !0 }) : c === Ue.DESC && d === h ? /* @__PURE__ */ l(ri, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(ti, { className: "size-4", monotone: !0 })
1343
+ children: c === Ue.ASC && d === h ? /* @__PURE__ */ l(ri, { className: "size-4", monotone: !0 }) : c === Ue.DESC && d === h ? /* @__PURE__ */ l(ti, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(ei, { className: "size-4", monotone: !0 })
1344
1344
  }
1345
1345
  )
1346
1346
  }
@@ -1348,39 +1348,39 @@ const Oe = U.createContext({
1348
1348
  }, Y = [];
1349
1349
  for (let e = 0; e < 256; ++e)
1350
1350
  Y.push((e + 256).toString(16).slice(1));
1351
- function oi(e, t = 0) {
1351
+ function ni(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
1354
  let It;
1355
- const ii = new Uint8Array(16);
1356
- function si() {
1355
+ const oi = new Uint8Array(16);
1356
+ function ii() {
1357
1357
  if (!It) {
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
1360
  It = crypto.getRandomValues.bind(crypto);
1361
1361
  }
1362
- return It(ii);
1362
+ return It(oi);
1363
1363
  }
1364
- const li = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Jr = { randomUUID: li };
1364
+ const si = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Jr = { randomUUID: si };
1365
1365
  function hr(e, t, r) {
1366
1366
  var n;
1367
1367
  if (Jr.randomUUID && !e)
1368
1368
  return Jr.randomUUID();
1369
1369
  e = e || {};
1370
- const a = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? si();
1370
+ const a = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? ii();
1371
1371
  if (a.length < 16)
1372
1372
  throw new Error("Random bytes length must be >= 16");
1373
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, oi(a);
1373
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, ni(a);
1374
1374
  }
1375
- const ci = (e, t) => {
1375
+ const li = (e, t) => {
1376
1376
  switch (t == null ? void 0 : t.type) {
1377
- case An:
1377
+ case In:
1378
1378
  return {
1379
1379
  searchString: t.payload.searchString,
1380
1380
  sortedCell: e.sortedCell,
1381
1381
  sortDirection: e.sortDirection
1382
1382
  };
1383
- case In:
1383
+ case Rn:
1384
1384
  return {
1385
1385
  searchString: e.searchString,
1386
1386
  sortedCell: t.payload.sortedCell,
@@ -1389,7 +1389,7 @@ const ci = (e, t) => {
1389
1389
  default:
1390
1390
  return e;
1391
1391
  }
1392
- }, di = (e, t) => {
1392
+ }, ci = (e, t) => {
1393
1393
  switch (t == null ? void 0 : t.type) {
1394
1394
  case Ta:
1395
1395
  return {
@@ -1416,7 +1416,7 @@ var Xe = { exports: {} }, At = {};
1416
1416
  * LICENSE file in the root directory of this source tree.
1417
1417
  */
1418
1418
  var Zr;
1419
- function ui() {
1419
+ function di() {
1420
1420
  if (Zr) return At;
1421
1421
  Zr = 1;
1422
1422
  var e = U;
@@ -1467,7 +1467,7 @@ var $t = {};
1467
1467
  * LICENSE file in the root directory of this source tree.
1468
1468
  */
1469
1469
  var Xr;
1470
- function mi() {
1470
+ function ui() {
1471
1471
  return Xr || (Xr = 1, process.env.NODE_ENV !== "production" && function() {
1472
1472
  function e(u, p) {
1473
1473
  return u === p && (u !== 0 || 1 / u === 1 / p) || u !== u && p !== p;
@@ -1520,10 +1520,10 @@ function mi() {
1520
1520
  }()), $t;
1521
1521
  }
1522
1522
  var Qr;
1523
- function fi() {
1524
- return Qr || (Qr = 1, process.env.NODE_ENV === "production" ? Xe.exports = /* @__PURE__ */ ui() : Xe.exports = /* @__PURE__ */ mi()), Xe.exports;
1523
+ function mi() {
1524
+ return Qr || (Qr = 1, process.env.NODE_ENV === "production" ? Xe.exports = /* @__PURE__ */ di() : Xe.exports = /* @__PURE__ */ ui()), Xe.exports;
1525
1525
  }
1526
- var hi = /* @__PURE__ */ fi(), ea = Object.prototype.hasOwnProperty;
1526
+ var fi = /* @__PURE__ */ mi(), ea = Object.prototype.hasOwnProperty;
1527
1527
  function qt(e, t) {
1528
1528
  var r, a;
1529
1529
  if (e === t) return !0;
@@ -1551,7 +1551,7 @@ const le = /* @__PURE__ */ new WeakMap(), ve = () => {
1551
1551
  ), Kt = Object, D = (e) => e === ee, ce = (e) => typeof e == "function", ke = (e, t) => ({
1552
1552
  ...e,
1553
1553
  ...t
1554
- }), Wa = (e) => ce(e.then), Lt = {}, Qe = {}, gr = "undefined", mt = typeof window != gr, Yt = typeof document != gr, gi = () => mt && typeof window.requestAnimationFrame != gr, Ga = (e, t) => {
1554
+ }), Wa = (e) => ce(e.then), Lt = {}, Qe = {}, gr = "undefined", mt = typeof window != gr, Yt = typeof document != gr, hi = () => mt && typeof window.requestAnimationFrame != gr, Ga = (e, t) => {
1555
1555
  const r = le.get(e);
1556
1556
  return [
1557
1557
  // Getter
@@ -1570,18 +1570,18 @@ const le = /* @__PURE__ */ new WeakMap(), ve = () => {
1570
1570
  ];
1571
1571
  };
1572
1572
  let Jt = !0;
1573
- const pi = () => Jt, [Zt, Xt] = mt && window.addEventListener ? [
1573
+ const gi = () => Jt, [Zt, Xt] = mt && window.addEventListener ? [
1574
1574
  window.addEventListener.bind(window),
1575
1575
  window.removeEventListener.bind(window)
1576
1576
  ] : [
1577
1577
  ve,
1578
1578
  ve
1579
- ], yi = () => {
1579
+ ], pi = () => {
1580
1580
  const e = Yt && document.visibilityState;
1581
1581
  return D(e) || e !== "hidden";
1582
- }, bi = (e) => (Yt && document.addEventListener("visibilitychange", e), Zt("focus", e), () => {
1582
+ }, yi = (e) => (Yt && document.addEventListener("visibilitychange", e), Zt("focus", e), () => {
1583
1583
  Yt && document.removeEventListener("visibilitychange", e), Xt("focus", e);
1584
- }), vi = (e) => {
1584
+ }), bi = (e) => {
1585
1585
  const t = () => {
1586
1586
  Jt = !0, e();
1587
1587
  }, r = () => {
@@ -1590,23 +1590,23 @@ const pi = () => Jt, [Zt, Xt] = mt && window.addEventListener ? [
1590
1590
  return Zt("online", t), Zt("offline", r), () => {
1591
1591
  Xt("online", t), Xt("offline", r);
1592
1592
  };
1593
+ }, vi = {
1594
+ isOnline: gi,
1595
+ isVisible: pi
1593
1596
  }, ki = {
1594
- isOnline: pi,
1595
- isVisible: yi
1596
- }, wi = {
1597
- initFocus: bi,
1598
- initReconnect: vi
1599
- }, ta = !U.useId, We = !mt || "Deno" in globalThis, xi = (e) => gi() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Ot = We ? M : pe, Bt = typeof navigator < "u" && navigator.connection, ra = !We && Bt && ([
1597
+ initFocus: yi,
1598
+ initReconnect: bi
1599
+ }, ta = !U.useId, We = !mt || "Deno" in globalThis, wi = (e) => hi() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Ot = We ? M : pe, Bt = typeof navigator < "u" && navigator.connection, ra = !We && Bt && ([
1600
1600
  "slow-2g",
1601
1601
  "2g"
1602
1602
  ].includes(Bt.effectiveType) || Bt.saveData), et = /* @__PURE__ */ new WeakMap(), Mt = (e, t) => Kt.prototype.toString.call(e) === `[object ${t}]`;
1603
- let _i = 0;
1603
+ let xi = 0;
1604
1604
  const Qt = (e) => {
1605
1605
  const t = typeof e, r = Mt(e, "Date"), a = Mt(e, "RegExp"), n = Mt(e, "Object");
1606
1606
  let o, i;
1607
1607
  if (Kt(e) === e && !r && !a) {
1608
1608
  if (o = et.get(e), o) return o;
1609
- if (o = ++_i + "~", et.set(e, o), Array.isArray(e)) {
1609
+ if (o = ++xi + "~", et.set(e, o), Array.isArray(e)) {
1610
1610
  for (o = "@", i = 0; i < e.length; i++)
1611
1611
  o += Qt(e[i]) + ",";
1612
1612
  et.set(e, o);
@@ -1634,11 +1634,11 @@ const Qt = (e) => {
1634
1634
  t
1635
1635
  ];
1636
1636
  };
1637
- let Ei = 0;
1638
- const er = () => ++Ei, ja = 0, qa = 1, Ka = 2, Ti = 3;
1637
+ let _i = 0;
1638
+ const er = () => ++_i, ja = 0, qa = 1, Ka = 2, Ei = 3;
1639
1639
  var ze = {
1640
1640
  __proto__: null,
1641
- ERROR_REVALIDATE_EVENT: Ti,
1641
+ ERROR_REVALIDATE_EVENT: Ei,
1642
1642
  FOCUS_EVENT: ja,
1643
1643
  MUTATE_EVENT: Ka,
1644
1644
  RECONNECT_EVENT: qa
@@ -1725,9 +1725,9 @@ async function Ya(...e) {
1725
1725
  const aa = (e, t) => {
1726
1726
  for (const r in e)
1727
1727
  e[r][0] && e[r][0](t);
1728
- }, Si = (e, t) => {
1728
+ }, Ti = (e, t) => {
1729
1729
  if (!le.has(e)) {
1730
- const r = ke(wi, t), a = {}, n = Ya.bind(ee, e);
1730
+ const r = ke(ki, t), a = {}, n = Ya.bind(ee, e);
1731
1731
  let o = ve;
1732
1732
  const i = {}, s = (h, m) => {
1733
1733
  const g = i[h] || [];
@@ -1765,16 +1765,16 @@ const aa = (e, t) => {
1765
1765
  e,
1766
1766
  le.get(e)[4]
1767
1767
  ];
1768
- }, Ci = (e, t, r, a, n) => {
1768
+ }, Si = (e, t, r, a, n) => {
1769
1769
  const o = r.errorRetryCount, i = n.retryCount, s = ~~((Math.random() + 0.5) * (1 << (i < 8 ? i : 8))) * r.errorRetryInterval;
1770
1770
  !D(o) && i > o || setTimeout(a, s, n);
1771
- }, Ni = qt, [pr, Ri] = Si(/* @__PURE__ */ new Map()), Ii = ke(
1771
+ }, Ci = qt, [pr, Ni] = Ti(/* @__PURE__ */ new Map()), Ri = ke(
1772
1772
  {
1773
1773
  // events
1774
1774
  onLoadingSlow: ve,
1775
1775
  onSuccess: ve,
1776
1776
  onError: ve,
1777
- onErrorRetry: Ci,
1777
+ onErrorRetry: Si,
1778
1778
  onDiscarded: ve,
1779
1779
  // switches
1780
1780
  revalidateOnFocus: !0,
@@ -1787,24 +1787,24 @@ const aa = (e, t) => {
1787
1787
  dedupingInterval: 2 * 1e3,
1788
1788
  loadingTimeout: ra ? 5e3 : 3e3,
1789
1789
  // providers
1790
- compare: Ni,
1790
+ compare: Ci,
1791
1791
  isPaused: () => !1,
1792
1792
  cache: pr,
1793
- mutate: Ri,
1793
+ mutate: Ni,
1794
1794
  fallback: {}
1795
1795
  },
1796
1796
  // use web preset by default
1797
- ki
1798
- ), Ai = (e, t) => {
1797
+ vi
1798
+ ), Ii = (e, t) => {
1799
1799
  const r = ke(e, t);
1800
1800
  if (t) {
1801
1801
  const { use: a, fallback: n } = e, { use: o, fallback: i } = t;
1802
1802
  a && o && (r.use = a.concat(o)), n && i && (r.fallback = ke(n, i));
1803
1803
  }
1804
1804
  return r;
1805
- }, $i = jn({}), Li = "$inf$", Ja = mt && window.__SWR_DEVTOOLS_USE__, Oi = Ja ? window.__SWR_DEVTOOLS_USE__ : [], Bi = () => {
1805
+ }, Ai = Gn({}), $i = "$inf$", Ja = mt && window.__SWR_DEVTOOLS_USE__, Li = Ja ? window.__SWR_DEVTOOLS_USE__ : [], Oi = () => {
1806
1806
  Ja && (window.__SWR_DEVTOOLS_REACT__ = U);
1807
- }, Mi = (e) => ce(e[1]) ? [
1807
+ }, Bi = (e) => ce(e[1]) ? [
1808
1808
  e[0],
1809
1809
  e[1],
1810
1810
  e[2] || {}
@@ -1812,32 +1812,32 @@ const aa = (e, t) => {
1812
1812
  e[0],
1813
1813
  null,
1814
1814
  (e[1] === null ? e[2] : e[1]) || {}
1815
- ], Di = () => ke(Ii, W($i)), Za = (e, t) => {
1815
+ ], Mi = () => ke(Ri, G(Ai)), Za = (e, t) => {
1816
1816
  const [r, a] = ft(e), [, , , n] = le.get(pr);
1817
1817
  if (n[r]) return n[r];
1818
1818
  const o = t(a);
1819
1819
  return n[r] = o, o;
1820
- }, Vi = (e) => (t, r, a) => e(t, r && ((...o) => {
1820
+ }, Di = (e) => (t, r, a) => e(t, r && ((...o) => {
1821
1821
  const [i] = ft(t), [, , , s] = le.get(pr);
1822
- if (i.startsWith(Li))
1822
+ if (i.startsWith($i))
1823
1823
  return r(...o);
1824
1824
  const c = s[i];
1825
1825
  return D(c) ? r(...o) : (delete s[i], c);
1826
- }), a), Pi = Oi.concat(Vi), zi = (e) => function(...r) {
1827
- const a = Di(), [n, o, i] = Mi(r), s = Ai(a, i);
1826
+ }), a), Vi = Li.concat(Di), Pi = (e) => function(...r) {
1827
+ const a = Mi(), [n, o, i] = Bi(r), s = Ii(a, i);
1828
1828
  let c = e;
1829
- const { use: d } = s, h = (d || []).concat(Pi);
1829
+ const { use: d } = s, h = (d || []).concat(Vi);
1830
1830
  for (let m = h.length; m--; )
1831
1831
  c = h[m](c);
1832
1832
  return c(n, o || s.fetcher || null, s);
1833
- }, Ui = (e, t, r) => {
1833
+ }, zi = (e, t, r) => {
1834
1834
  const a = t[e] || (t[e] = []);
1835
1835
  return a.push(r), () => {
1836
1836
  const n = a.indexOf(r);
1837
1837
  n >= 0 && (a[n] = a[a.length - 1], a.pop());
1838
1838
  };
1839
1839
  };
1840
- Bi();
1840
+ Oi();
1841
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)`.
@@ -1859,7 +1859,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
1859
1859
  }
1860
1860
  }), Vt = {
1861
1861
  dedupe: !0
1862
- }, Hi = (e, t, r) => {
1862
+ }, Ui = (e, t, r) => {
1863
1863
  const { cache: a, compare: n, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline: m, keepPreviousData: g } = r, [u, p, b, y] = le.get(a), [v, x] = ft(e), k = T(!1), N = T(!1), _ = T(v), I = T(t), $ = T(r), E = () => $.current, w = () => E().isVisible() && E().isOnline(), [S, C, B, A] = Ga(a, v), O = T({}).current, V = D(i) ? D(r.fallback) ? ee : r.fallback[v] : i, R = (P, z) => {
1864
1864
  for (const X in O) {
1865
1865
  const F = X;
@@ -1890,7 +1890,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
1890
1890
  }, [
1891
1891
  a,
1892
1892
  v
1893
- ]), j = hi.useSyncExternalStore(Z(
1893
+ ]), j = fi.useSyncExternalStore(Z(
1894
1894
  (P) => B(v, (z, X) => {
1895
1895
  R(X, z) || P();
1896
1896
  }),
@@ -1899,7 +1899,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
1899
1899
  a,
1900
1900
  v
1901
1901
  ]
1902
- ), H[0], H[1]), q = !k.current, Et = u[v] && u[v].length > 0, Ee = j.data, Te = D(Ee) ? V && Wa(V) ? Dt(V) : V : Ee, Je = j.error, Rr = T(Te), Ze = g ? D(Ee) ? Rr.current : Ee : Te, Ir = Et && !D(Je) ? !1 : q && !D(s) ? s : E().isPaused() ? !1 : o ? D(Te) ? !1 : c : D(Te) || c, Ar = !!(v && t && q && Ir), Cn = D(j.isValidating) ? Ar : j.isValidating, Nn = D(j.isLoading) ? Ar : j.isLoading, Pe = Z(
1902
+ ), H[0], H[1]), q = !k.current, Et = u[v] && u[v].length > 0, Ee = j.data, Te = D(Ee) ? V && Wa(V) ? Dt(V) : V : Ee, Je = j.error, Rr = T(Te), Ze = g ? D(Ee) ? Rr.current : Ee : Te, Ir = Et && !D(Je) ? !1 : q && !D(s) ? s : E().isPaused() ? !1 : o ? D(Te) ? !1 : c : D(Te) || c, Ar = !!(v && t && q && Ir), Sn = D(j.isValidating) ? Ar : j.isValidating, Cn = D(j.isLoading) ? Ar : j.isLoading, Pe = Z(
1903
1903
  async (P) => {
1904
1904
  const z = I.current;
1905
1905
  if (!v || !z || N.current || E().isPaused())
@@ -1937,9 +1937,9 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
1937
1937
  } catch (re) {
1938
1938
  Or();
1939
1939
  const fe = E(), { shouldRetryOnError: Tt } = fe;
1940
- fe.isPaused() || (me.error = re, K && Q() && (fe.onError(re, v, fe), (Tt === !0 || ce(Tt) && Tt(re)) && (!E().revalidateOnFocus || !E().revalidateOnReconnect || w()) && fe.onErrorRetry(re, v, fe, (Rn) => {
1940
+ fe.isPaused() || (me.error = re, K && Q() && (fe.onError(re, v, fe), (Tt === !0 || ce(Tt) && Tt(re)) && (!E().revalidateOnFocus || !E().revalidateOnReconnect || w()) && fe.onErrorRetry(re, v, fe, (Nn) => {
1941
1941
  const St = u[v];
1942
- St && St[0] && St[0](ze.ERROR_REVALIDATE_EVENT, Rn);
1942
+ St && St[0] && St[0](ze.ERROR_REVALIDATE_EVENT, Nn);
1943
1943
  }, {
1944
1944
  retryCount: (Se.retryCount || 0) + 1,
1945
1945
  dedupe: !0
@@ -1974,7 +1974,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
1974
1974
  if (!v) return;
1975
1975
  const P = Pe.bind(ee, Vt);
1976
1976
  let z = 0;
1977
- const F = Ui(v, u, (se, Se = {}) => {
1977
+ const F = zi(v, u, (se, Se = {}) => {
1978
1978
  if (se == ze.FOCUS_EVENT) {
1979
1979
  const K = Date.now();
1980
1980
  E().revalidateOnFocus && K > z && w() && (z = K + E().focusThrottleInterval, P());
@@ -1989,7 +1989,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
1989
1989
  });
1990
1990
  return N.current = !1, _.current = v, k.current = !0, C({
1991
1991
  _k: x
1992
- }), Ir && (D(Te) || We ? P() : xi(P)), () => {
1992
+ }), Ir && (D(Te) || We ? P() : wi(P)), () => {
1993
1993
  N.current = !0, F();
1994
1994
  };
1995
1995
  }, [
@@ -2011,7 +2011,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2011
2011
  h,
2012
2012
  m,
2013
2013
  v
2014
- ]), qn(Ze), o && D(Te) && v) {
2014
+ ]), jn(Ze), o && D(Te) && v) {
2015
2015
  if (!ta && We)
2016
2016
  throw new Error("Fallback data is required when using Suspense in SSR.");
2017
2017
  I.current = t, $.current = r, N.current = !1;
@@ -2035,13 +2035,13 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2035
2035
  return O.error = !0, Je;
2036
2036
  },
2037
2037
  get isValidating() {
2038
- return O.isValidating = !0, Cn;
2038
+ return O.isValidating = !0, Sn;
2039
2039
  },
2040
2040
  get isLoading() {
2041
- return O.isLoading = !0, Nn;
2041
+ return O.isLoading = !0, Cn;
2042
2042
  }
2043
2043
  };
2044
- }, Fi = zi(Hi), he = {
2044
+ }, Hi = Pi(Ui), he = {
2045
2045
  GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
2046
2046
  location(latitude: $latitude, longitude: $longitude) {
2047
2047
  country
@@ -2103,7 +2103,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2103
2103
  SAVE_CHAT: `mutation SaveChat(
2104
2104
  $id: String!,
2105
2105
  $userId: String!,
2106
- $messages: [MessagesIn],
2106
+ $messages: [MessageIn],
2107
2107
  $provider: String,
2108
2108
  $usage: Float,
2109
2109
  ) {
@@ -2189,7 +2189,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2189
2189
  schema: he.SET_USER_PREFERENCES,
2190
2190
  method: "setUserPreferences"
2191
2191
  }
2192
- }, Xa = process.env.PUBLIC_SASSY_API_SERVER_URL, Wi = async ({
2192
+ }, Xa = process.env.PUBLIC_SASSY_API_SERVER_URL, Fi = async ({
2193
2193
  query: e,
2194
2194
  data: t,
2195
2195
  headers: r = {}
@@ -2212,7 +2212,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2212
2212
  }) => {
2213
2213
  const a = t != null && t.data ? t.data(r) : r;
2214
2214
  try {
2215
- const n = `Bearer ${e}`, o = await Wi({
2215
+ const n = `Bearer ${e}`, o = await Fi({
2216
2216
  headers: {
2217
2217
  authorization: n
2218
2218
  },
@@ -2230,7 +2230,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2230
2230
  } catch (n) {
2231
2231
  return console.error(n), { status: 500, data: [] };
2232
2232
  }
2233
- }, Gi = async ({
2233
+ }, Wi = async ({
2234
2234
  accessToken: e,
2235
2235
  name: t,
2236
2236
  data: r,
@@ -2246,7 +2246,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2246
2246
  },
2247
2247
  body: JSON.stringify(r)
2248
2248
  });
2249
- }, ji = async ({
2249
+ }, Gi = async ({
2250
2250
  provider: e,
2251
2251
  accessToken: t,
2252
2252
  username: r
@@ -2269,7 +2269,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2269
2269
  swrOptions: a,
2270
2270
  getAccessToken: n
2271
2271
  }) => {
2272
- const { data: o, error: i, isLoading: s, mutate: c } = Fi(
2272
+ const { data: o, error: i, isLoading: s, mutate: c } = Hi(
2273
2273
  [t, ...r],
2274
2274
  (d) => e(d, n),
2275
2275
  { ...a }
@@ -2288,7 +2288,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2288
2288
  if (n.status === 200 && n.errors === void 0)
2289
2289
  return n.data;
2290
2290
  throw new Error("An error occurred while fetching the data.");
2291
- }, qi = async ([e, t], r) => gt({
2291
+ }, ji = async ([e, t], r) => gt({
2292
2292
  getAccessToken: r,
2293
2293
  type: Be.GET_USER_PREFERENCES,
2294
2294
  params: {
@@ -2299,7 +2299,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2299
2299
  getAccessToken: t,
2300
2300
  isPaused: r = !1
2301
2301
  }) => ht({
2302
- fetcher: qi,
2302
+ fetcher: ji,
2303
2303
  scope: "/preferences",
2304
2304
  keys: e,
2305
2305
  swrOptions: {
@@ -2309,17 +2309,17 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2309
2309
  revalidateOnReconnect: r
2310
2310
  },
2311
2311
  getAccessToken: t
2312
- }), Ki = async ([e, t], r) => gt({
2312
+ }), qi = async ([e, t], r) => gt({
2313
2313
  getAccessToken: r,
2314
2314
  type: Be.GET_CHATS_STATS,
2315
2315
  params: {
2316
2316
  user: t
2317
2317
  }
2318
- }), Zc = ({
2318
+ }), Jc = ({
2319
2319
  keys: e,
2320
2320
  getAccessToken: t
2321
2321
  }) => ht({
2322
- fetcher: Ki,
2322
+ fetcher: qi,
2323
2323
  scope: "/stats",
2324
2324
  keys: e,
2325
2325
  swrOptions: {
@@ -2340,7 +2340,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2340
2340
  limit: 1,
2341
2341
  truncateSize: 100
2342
2342
  }
2343
- }), Yi = ({
2343
+ }), Zc = ({
2344
2344
  keys: e,
2345
2345
  getAccessToken: t
2346
2346
  }) => ht({
@@ -2355,7 +2355,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2355
2355
  revalidateOnFocus: !1,
2356
2356
  revalidateOnReconnect: !0
2357
2357
  }
2358
- }), Ji = ({
2358
+ }), Ki = ({
2359
2359
  keys: e,
2360
2360
  getAccessToken: t
2361
2361
  }) => {
@@ -2370,11 +2370,11 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2370
2370
  scope: "/capabilities",
2371
2371
  keys: [],
2372
2372
  getAccessToken: e
2373
- }), Zi = ({
2373
+ }), Yi = ({
2374
2374
  getAccessToken: e
2375
2375
  }) => {
2376
2376
  Za(["/capabilities"], (t) => en(t, e));
2377
- }, nt = "CHAT_ADD_MESSAGE", tr = "CHAT_ADD_INTERNAL_MESSAGE", rr = "CHAT_SET_LOADING", ar = "CHAT_SET_STREAMING", Me = "CHAT_RESET", Xi = "CHAT_RESTORE", Qi = (e, t) => {
2377
+ }, nt = "CHAT_ADD_MESSAGE", tr = "CHAT_ADD_INTERNAL_MESSAGE", rr = "CHAT_SET_LOADING", ar = "CHAT_SET_STREAMING", Me = "CHAT_RESET", Ji = "CHAT_RESTORE", Zi = (e, t) => {
2378
2378
  var r, a, n, o, i, s, c, d, h, m, g;
2379
2379
  switch (t.type) {
2380
2380
  case nt: {
@@ -2454,7 +2454,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2454
2454
  lastTriggeredTimestamp: 0
2455
2455
  };
2456
2456
  }
2457
- case Xi: {
2457
+ case Ji: {
2458
2458
  const u = t.payload.messages.map((p) => ({
2459
2459
  role: p.role,
2460
2460
  content: p.content,
@@ -2474,7 +2474,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2474
2474
  default:
2475
2475
  return e;
2476
2476
  }
2477
- }, es = "z-20", ts = "z-10", tn = U.createContext({
2477
+ }, Xi = "z-20", Qi = "z-10", es = U.createContext({
2478
2478
  state: { searchString: "", sortedCell: "", sortDirection: "" },
2479
2479
  dispatch: () => {
2480
2480
  }
@@ -2511,15 +2511,15 @@ try {
2511
2511
  });
2512
2512
  } catch {
2513
2513
  }
2514
- const rs = "av-tooltip", as = "av-tooltip-arrow", Ge = Math.min, Ne = Math.max, it = Math.round, de = (e) => ({
2514
+ const ts = "av-tooltip", rs = "av-tooltip-arrow", Ge = Math.min, Ne = Math.max, it = Math.round, de = (e) => ({
2515
2515
  x: e,
2516
2516
  y: e
2517
- }), ns = {
2517
+ }), as = {
2518
2518
  left: "right",
2519
2519
  right: "left",
2520
2520
  bottom: "top",
2521
2521
  top: "bottom"
2522
- }, os = {
2522
+ }, ns = {
2523
2523
  start: "end",
2524
2524
  end: "start"
2525
2525
  };
@@ -2535,7 +2535,7 @@ function xe(e) {
2535
2535
  function Ke(e) {
2536
2536
  return e.split("-")[1];
2537
2537
  }
2538
- function rn(e) {
2538
+ function tn(e) {
2539
2539
  return e === "x" ? "y" : "x";
2540
2540
  }
2541
2541
  function vr(e) {
@@ -2545,22 +2545,22 @@ function Ie(e) {
2545
2545
  return ["top", "bottom"].includes(xe(e)) ? "y" : "x";
2546
2546
  }
2547
2547
  function kr(e) {
2548
- return rn(Ie(e));
2548
+ return tn(Ie(e));
2549
2549
  }
2550
- function is(e, t, r) {
2550
+ function os(e, t, r) {
2551
2551
  r === void 0 && (r = !1);
2552
2552
  const a = Ke(e), n = kr(e), o = vr(n);
2553
2553
  let i = n === "x" ? a === (r ? "end" : "start") ? "right" : "left" : a === "start" ? "bottom" : "top";
2554
2554
  return t.reference[o] > t.floating[o] && (i = st(i)), [i, st(i)];
2555
2555
  }
2556
- function ss(e) {
2556
+ function is(e) {
2557
2557
  const t = st(e);
2558
2558
  return [or(e), t, or(t)];
2559
2559
  }
2560
2560
  function or(e) {
2561
- return e.replace(/start|end/g, (t) => os[t]);
2561
+ return e.replace(/start|end/g, (t) => ns[t]);
2562
2562
  }
2563
- function ls(e, t, r) {
2563
+ function ss(e, t, r) {
2564
2564
  const a = ["left", "right"], n = ["right", "left"], o = ["top", "bottom"], i = ["bottom", "top"];
2565
2565
  switch (e) {
2566
2566
  case "top":
@@ -2573,15 +2573,15 @@ function ls(e, t, r) {
2573
2573
  return [];
2574
2574
  }
2575
2575
  }
2576
- function cs(e, t, r, a) {
2576
+ function ls(e, t, r, a) {
2577
2577
  const n = Ke(e);
2578
- let o = ls(xe(e), r === "start", a);
2578
+ let o = ss(xe(e), r === "start", a);
2579
2579
  return n && (o = o.map((i) => i + "-" + n), t && (o = o.concat(o.map(or)))), o;
2580
2580
  }
2581
2581
  function st(e) {
2582
- return e.replace(/left|right|bottom|top/g, (t) => ns[t]);
2582
+ return e.replace(/left|right|bottom|top/g, (t) => as[t]);
2583
2583
  }
2584
- function ds(e) {
2584
+ function cs(e) {
2585
2585
  return {
2586
2586
  top: 0,
2587
2587
  right: 0,
@@ -2590,8 +2590,8 @@ function ds(e) {
2590
2590
  ...e
2591
2591
  };
2592
2592
  }
2593
- function an(e) {
2594
- return typeof e != "number" ? ds(e) : {
2593
+ function rn(e) {
2594
+ return typeof e != "number" ? cs(e) : {
2595
2595
  top: e,
2596
2596
  right: e,
2597
2597
  bottom: e,
@@ -2664,7 +2664,7 @@ function na(e, t, r) {
2664
2664
  }
2665
2665
  return u;
2666
2666
  }
2667
- const us = async (e, t, r) => {
2667
+ const ds = async (e, t, r) => {
2668
2668
  const {
2669
2669
  placement: a = "bottom",
2670
2670
  strategy: n = "absolute",
@@ -2725,7 +2725,7 @@ const us = async (e, t, r) => {
2725
2725
  middlewareData: u
2726
2726
  };
2727
2727
  };
2728
- async function nn(e, t) {
2728
+ async function an(e, t) {
2729
2729
  var r;
2730
2730
  t === void 0 && (t = {});
2731
2731
  const {
@@ -2741,7 +2741,7 @@ async function nn(e, t) {
2741
2741
  elementContext: m = "floating",
2742
2742
  altBoundary: g = !1,
2743
2743
  padding: u = 0
2744
- } = qe(t, e), p = an(u), b = s[g ? m === "floating" ? "reference" : "floating" : m], y = lt(await o.getClippingRect({
2744
+ } = qe(t, e), p = rn(u), b = s[g ? m === "floating" ? "reference" : "floating" : m], y = lt(await o.getClippingRect({
2745
2745
  element: (r = await (o.isElement == null ? void 0 : o.isElement(b))) == null || r ? b : b.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
2746
2746
  boundary: d,
2747
2747
  rootBoundary: h,
@@ -2770,7 +2770,7 @@ async function nn(e, t) {
2770
2770
  right: (N.right - y.right + p.right) / k.x
2771
2771
  };
2772
2772
  }
2773
- const ms = (e) => ({
2773
+ const us = (e) => ({
2774
2774
  name: "arrow",
2775
2775
  options: e,
2776
2776
  async fn(t) {
@@ -2788,7 +2788,7 @@ const ms = (e) => ({
2788
2788
  } = qe(e, t) || {};
2789
2789
  if (d == null)
2790
2790
  return {};
2791
- const m = an(h), g = {
2791
+ const m = rn(h), g = {
2792
2792
  x: r,
2793
2793
  y: a
2794
2794
  }, u = kr(n), p = vr(u), b = await i.getDimensions(d), y = u === "y", v = y ? "top" : "left", x = y ? "bottom" : "right", k = y ? "clientHeight" : "clientWidth", N = o.reference[p] + o.reference[u] - g[u] - o.floating[p], _ = g[u] - o.reference[u], I = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
@@ -2807,7 +2807,7 @@ const ms = (e) => ({
2807
2807
  reset: R
2808
2808
  };
2809
2809
  }
2810
- }), fs = function(e) {
2810
+ }), ms = function(e) {
2811
2811
  return e === void 0 && (e = {}), {
2812
2812
  name: "flip",
2813
2813
  options: e,
@@ -2831,12 +2831,12 @@ const ms = (e) => ({
2831
2831
  } = qe(e, t);
2832
2832
  if ((r = o.arrow) != null && r.alignmentOffset)
2833
2833
  return {};
2834
- const v = xe(n), x = Ie(s), k = xe(s) === s, N = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), _ = g || (k || !b ? [st(s)] : ss(s)), I = p !== "none";
2835
- !g && I && _.push(...cs(s, b, p, N));
2836
- const $ = [s, ..._], E = await nn(t, y), w = [];
2834
+ const v = xe(n), x = Ie(s), k = xe(s) === s, N = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), _ = g || (k || !b ? [st(s)] : is(s)), I = p !== "none";
2835
+ !g && I && _.push(...ls(s, b, p, N));
2836
+ const $ = [s, ..._], E = await an(t, y), w = [];
2837
2837
  let S = ((a = o.flip) == null ? void 0 : a.overflows) || [];
2838
2838
  if (h && w.push(E[v]), m) {
2839
- const O = is(n, i, N);
2839
+ const O = os(n, i, N);
2840
2840
  w.push(E[O[0]], E[O[1]]);
2841
2841
  }
2842
2842
  if (S = [...S, {
@@ -2887,7 +2887,7 @@ const ms = (e) => ({
2887
2887
  }
2888
2888
  };
2889
2889
  };
2890
- async function hs(e, t) {
2890
+ async function fs(e, t) {
2891
2891
  const {
2892
2892
  placement: r,
2893
2893
  platform: a,
@@ -2914,7 +2914,7 @@ async function hs(e, t) {
2914
2914
  y: u * h
2915
2915
  };
2916
2916
  }
2917
- const gs = function(e) {
2917
+ const hs = function(e) {
2918
2918
  return e === void 0 && (e = 0), {
2919
2919
  name: "offset",
2920
2920
  options: e,
@@ -2925,7 +2925,7 @@ const gs = function(e) {
2925
2925
  y: o,
2926
2926
  placement: i,
2927
2927
  middlewareData: s
2928
- } = t, c = await hs(t, e);
2928
+ } = t, c = await fs(t, e);
2929
2929
  return i === ((r = s.offset) == null ? void 0 : r.placement) && (a = s.arrow) != null && a.alignmentOffset ? {} : {
2930
2930
  x: n + c.x,
2931
2931
  y: o + c.y,
@@ -2936,7 +2936,7 @@ const gs = function(e) {
2936
2936
  };
2937
2937
  }
2938
2938
  };
2939
- }, ps = function(e) {
2939
+ }, gs = function(e) {
2940
2940
  return e === void 0 && (e = {}), {
2941
2941
  name: "shift",
2942
2942
  options: e,
@@ -2964,7 +2964,7 @@ const gs = function(e) {
2964
2964
  } = qe(e, t), d = {
2965
2965
  x: r,
2966
2966
  y: a
2967
- }, h = await nn(t, c), m = Ie(xe(n)), g = rn(m);
2967
+ }, h = await an(t, c), m = Ie(xe(n)), g = tn(m);
2968
2968
  let u = d[g], p = d[m];
2969
2969
  if (o) {
2970
2970
  const y = g === "y" ? "top" : "left", v = g === "y" ? "bottom" : "right", x = u + h[y], k = u - h[v];
@@ -2997,7 +2997,7 @@ function yt() {
2997
2997
  return typeof window < "u";
2998
2998
  }
2999
2999
  function De(e) {
3000
- return on(e) ? (e.nodeName || "").toLowerCase() : "#document";
3000
+ return nn(e) ? (e.nodeName || "").toLowerCase() : "#document";
3001
3001
  }
3002
3002
  function te(e) {
3003
3003
  var t;
@@ -3005,9 +3005,9 @@ function te(e) {
3005
3005
  }
3006
3006
  function be(e) {
3007
3007
  var t;
3008
- return (t = (on(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
3008
+ return (t = (nn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
3009
3009
  }
3010
- function on(e) {
3010
+ function nn(e) {
3011
3011
  return yt() ? e instanceof Node || e instanceof te(e).Node : !1;
3012
3012
  }
3013
3013
  function ae(e) {
@@ -3028,7 +3028,7 @@ function Ye(e) {
3028
3028
  } = ne(e);
3029
3029
  return /auto|scroll|overlay|hidden|clip/.test(t + a + r) && !["inline", "contents"].includes(n);
3030
3030
  }
3031
- function ys(e) {
3031
+ function ps(e) {
3032
3032
  return ["table", "td", "th"].includes(De(e));
3033
3033
  }
3034
3034
  function bt(e) {
@@ -3044,7 +3044,7 @@ function wr(e) {
3044
3044
  const t = xr(), r = ae(e) ? ne(e) : e;
3045
3045
  return ["transform", "translate", "scale", "rotate", "perspective"].some((a) => r[a] ? r[a] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((a) => (r.willChange || "").includes(a)) || ["paint", "layout", "strict", "content"].some((a) => (r.contain || "").includes(a));
3046
3046
  }
3047
- function bs(e) {
3047
+ function ys(e) {
3048
3048
  let t = we(e);
3049
3049
  for (; ue(t) && !Ae(t); ) {
3050
3050
  if (wr(t))
@@ -3085,20 +3085,20 @@ function we(e) {
3085
3085
  );
3086
3086
  return oa(t) ? t.host : t;
3087
3087
  }
3088
- function sn(e) {
3088
+ function on(e) {
3089
3089
  const t = we(e);
3090
- return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ue(t) && Ye(t) ? t : sn(t);
3090
+ return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ue(t) && Ye(t) ? t : on(t);
3091
3091
  }
3092
- function ln(e, t, r) {
3092
+ function sn(e, t, r) {
3093
3093
  var a;
3094
3094
  t === void 0 && (t = []);
3095
- const n = sn(e), o = n === ((a = e.ownerDocument) == null ? void 0 : a.body), i = te(n);
3096
- return o ? t.concat(i, i.visualViewport || [], Ye(n) ? n : [], []) : t.concat(n, ln(n, []));
3095
+ const n = on(e), o = n === ((a = e.ownerDocument) == null ? void 0 : a.body), i = te(n);
3096
+ return o ? t.concat(i, i.visualViewport || [], Ye(n) ? n : [], []) : t.concat(n, sn(n, []));
3097
3097
  }
3098
3098
  function ia(e) {
3099
3099
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
3100
3100
  }
3101
- function cn(e) {
3101
+ function ln(e) {
3102
3102
  const t = ne(e);
3103
3103
  let r = parseFloat(t.width) || 0, a = parseFloat(t.height) || 0;
3104
3104
  const n = ue(e), o = n ? e.offsetWidth : r, i = n ? e.offsetHeight : a, s = it(r) !== o || it(a) !== i;
@@ -3108,41 +3108,41 @@ function cn(e) {
3108
3108
  $: s
3109
3109
  };
3110
3110
  }
3111
- function dn(e) {
3111
+ function cn(e) {
3112
3112
  return ae(e) ? e : e.contextElement;
3113
3113
  }
3114
3114
  function Re(e) {
3115
- const t = dn(e);
3115
+ const t = cn(e);
3116
3116
  if (!ue(t))
3117
3117
  return de(1);
3118
3118
  const r = t.getBoundingClientRect(), {
3119
3119
  width: a,
3120
3120
  height: n,
3121
3121
  $: o
3122
- } = cn(t);
3122
+ } = ln(t);
3123
3123
  let i = (o ? it(r.width) : r.width) / a, s = (o ? it(r.height) : r.height) / n;
3124
3124
  return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
3125
3125
  x: i,
3126
3126
  y: s
3127
3127
  };
3128
3128
  }
3129
- const vs = /* @__PURE__ */ de(0);
3130
- function un(e) {
3129
+ const bs = /* @__PURE__ */ de(0);
3130
+ function dn(e) {
3131
3131
  const t = te(e);
3132
- return !xr() || !t.visualViewport ? vs : {
3132
+ return !xr() || !t.visualViewport ? bs : {
3133
3133
  x: t.visualViewport.offsetLeft,
3134
3134
  y: t.visualViewport.offsetTop
3135
3135
  };
3136
3136
  }
3137
- function ks(e, t, r) {
3137
+ function vs(e, t, r) {
3138
3138
  return t === void 0 && (t = !1), !r || t && r !== te(e) ? !1 : t;
3139
3139
  }
3140
3140
  function je(e, t, r, a) {
3141
3141
  t === void 0 && (t = !1), r === void 0 && (r = !1);
3142
- const n = e.getBoundingClientRect(), o = dn(e);
3142
+ const n = e.getBoundingClientRect(), o = cn(e);
3143
3143
  let i = de(1);
3144
3144
  t && (a ? ae(a) && (i = Re(a)) : i = Re(e));
3145
- const s = ks(o, r, a) ? un(o) : de(0);
3145
+ const s = vs(o, r, a) ? dn(o) : de(0);
3146
3146
  let c = (n.left + s.x) / i.x, d = (n.top + s.y) / i.y, h = n.width / i.x, m = n.height / i.y;
3147
3147
  if (o) {
3148
3148
  const g = te(o), u = a && ae(a) ? te(a) : a;
@@ -3163,7 +3163,7 @@ function _r(e, t) {
3163
3163
  const r = vt(e).scrollLeft;
3164
3164
  return t ? t.left + r : je(be(e)).left + r;
3165
3165
  }
3166
- function mn(e, t, r) {
3166
+ function un(e, t, r) {
3167
3167
  r === void 0 && (r = !1);
3168
3168
  const a = e.getBoundingClientRect(), n = a.left + t.scrollLeft - (r ? 0 : (
3169
3169
  // RTL <body> scrollbar.
@@ -3174,7 +3174,7 @@ function mn(e, t, r) {
3174
3174
  y: o
3175
3175
  };
3176
3176
  }
3177
- function ws(e) {
3177
+ function ks(e) {
3178
3178
  let {
3179
3179
  elements: t,
3180
3180
  rect: r,
@@ -3193,7 +3193,7 @@ function ws(e) {
3193
3193
  const u = je(a);
3194
3194
  d = Re(a), h.x = u.x + a.clientLeft, h.y = u.y + a.clientTop;
3195
3195
  }
3196
- const g = i && !m && !o ? mn(i, c, !0) : de(0);
3196
+ const g = i && !m && !o ? un(i, c, !0) : de(0);
3197
3197
  return {
3198
3198
  width: r.width * d.x,
3199
3199
  height: r.height * d.y,
@@ -3201,10 +3201,10 @@ function ws(e) {
3201
3201
  y: r.y * d.y - c.scrollTop * d.y + h.y + g.y
3202
3202
  };
3203
3203
  }
3204
- function xs(e) {
3204
+ function ws(e) {
3205
3205
  return Array.from(e.getClientRects());
3206
3206
  }
3207
- function _s(e) {
3207
+ function xs(e) {
3208
3208
  const t = be(e), r = vt(e), a = e.ownerDocument.body, n = Ne(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), o = Ne(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
3209
3209
  let i = -r.scrollLeft + _r(e);
3210
3210
  const s = -r.scrollTop;
@@ -3215,7 +3215,7 @@ function _s(e) {
3215
3215
  y: s
3216
3216
  };
3217
3217
  }
3218
- function Es(e, t) {
3218
+ function _s(e, t) {
3219
3219
  const r = te(e), a = be(e), n = r.visualViewport;
3220
3220
  let o = a.clientWidth, i = a.clientHeight, s = 0, c = 0;
3221
3221
  if (n) {
@@ -3230,7 +3230,7 @@ function Es(e, t) {
3230
3230
  y: c
3231
3231
  };
3232
3232
  }
3233
- function Ts(e, t) {
3233
+ function Es(e, t) {
3234
3234
  const r = je(e, !0, t === "fixed"), a = r.top + e.clientTop, n = r.left + e.clientLeft, o = ue(e) ? Re(e) : de(1), i = e.clientWidth * o.x, s = e.clientHeight * o.y, c = n * o.x, d = a * o.y;
3235
3235
  return {
3236
3236
  width: i,
@@ -3242,13 +3242,13 @@ function Ts(e, t) {
3242
3242
  function sa(e, t, r) {
3243
3243
  let a;
3244
3244
  if (t === "viewport")
3245
- a = Es(e, r);
3245
+ a = _s(e, r);
3246
3246
  else if (t === "document")
3247
- a = _s(be(e));
3247
+ a = xs(be(e));
3248
3248
  else if (ae(t))
3249
- a = Ts(t, r);
3249
+ a = Es(t, r);
3250
3250
  else {
3251
- const n = un(e);
3251
+ const n = dn(e);
3252
3252
  a = {
3253
3253
  x: t.x - n.x,
3254
3254
  y: t.y - n.y,
@@ -3258,31 +3258,31 @@ function sa(e, t, r) {
3258
3258
  }
3259
3259
  return lt(a);
3260
3260
  }
3261
- function fn(e, t) {
3261
+ function mn(e, t) {
3262
3262
  const r = we(e);
3263
- return r === t || !ae(r) || Ae(r) ? !1 : ne(r).position === "fixed" || fn(r, t);
3263
+ return r === t || !ae(r) || Ae(r) ? !1 : ne(r).position === "fixed" || mn(r, t);
3264
3264
  }
3265
- function Ss(e, t) {
3265
+ function Ts(e, t) {
3266
3266
  const r = t.get(e);
3267
3267
  if (r)
3268
3268
  return r;
3269
- let a = ln(e, []).filter((s) => ae(s) && De(s) !== "body"), n = null;
3269
+ let a = sn(e, []).filter((s) => ae(s) && De(s) !== "body"), n = null;
3270
3270
  const o = ne(e).position === "fixed";
3271
3271
  let i = o ? we(e) : e;
3272
3272
  for (; ae(i) && !Ae(i); ) {
3273
3273
  const s = ne(i), c = wr(i);
3274
- !c && s.position === "fixed" && (n = null), (o ? !c && !n : !c && s.position === "static" && n && ["absolute", "fixed"].includes(n.position) || Ye(i) && !c && fn(e, i)) ? a = a.filter((d) => d !== i) : n = s, i = we(i);
3274
+ !c && s.position === "fixed" && (n = null), (o ? !c && !n : !c && s.position === "static" && n && ["absolute", "fixed"].includes(n.position) || Ye(i) && !c && mn(e, i)) ? a = a.filter((d) => d !== i) : n = s, i = we(i);
3275
3275
  }
3276
3276
  return t.set(e, a), a;
3277
3277
  }
3278
- function Cs(e) {
3278
+ function Ss(e) {
3279
3279
  let {
3280
3280
  element: t,
3281
3281
  boundary: r,
3282
3282
  rootBoundary: a,
3283
3283
  strategy: n
3284
3284
  } = e;
3285
- const o = [...r === "clippingAncestors" ? bt(t) ? [] : Ss(t, this._c) : [].concat(r), a], i = o[0], s = o.reduce((c, d) => {
3285
+ const o = [...r === "clippingAncestors" ? bt(t) ? [] : Ts(t, this._c) : [].concat(r), a], i = o[0], s = o.reduce((c, d) => {
3286
3286
  const h = sa(t, d, n);
3287
3287
  return c.top = Ne(h.top, c.top), c.right = Ge(h.right, c.right), c.bottom = Ge(h.bottom, c.bottom), c.left = Ne(h.left, c.left), c;
3288
3288
  }, sa(t, i, n));
@@ -3293,17 +3293,17 @@ function Cs(e) {
3293
3293
  y: s.top
3294
3294
  };
3295
3295
  }
3296
- function Ns(e) {
3296
+ function Cs(e) {
3297
3297
  const {
3298
3298
  width: t,
3299
3299
  height: r
3300
- } = cn(e);
3300
+ } = ln(e);
3301
3301
  return {
3302
3302
  width: t,
3303
3303
  height: r
3304
3304
  };
3305
3305
  }
3306
- function Rs(e, t, r) {
3306
+ function Ns(e, t, r) {
3307
3307
  const a = ue(t), n = be(t), o = r === "fixed", i = je(e, !0, o, t);
3308
3308
  let s = {
3309
3309
  scrollLeft: 0,
@@ -3315,7 +3315,7 @@ function Rs(e, t, r) {
3315
3315
  const g = je(t, !0, o, t);
3316
3316
  c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
3317
3317
  } else n && (c.x = _r(n));
3318
- const d = n && !a && !o ? mn(n, s) : de(0), h = i.left + s.scrollLeft - c.x - d.x, m = i.top + s.scrollTop - c.y - d.y;
3318
+ const d = n && !a && !o ? un(n, s) : de(0), h = i.left + s.scrollLeft - c.x - d.x, m = i.top + s.scrollTop - c.y - d.y;
3319
3319
  return {
3320
3320
  x: h,
3321
3321
  y: m,
@@ -3334,7 +3334,7 @@ function la(e, t) {
3334
3334
  let r = e.offsetParent;
3335
3335
  return be(e) === r && (r = r.ownerDocument.body), r;
3336
3336
  }
3337
- function hn(e, t) {
3337
+ function fn(e, t) {
3338
3338
  const r = te(e);
3339
3339
  if (bt(e))
3340
3340
  return r;
@@ -3348,14 +3348,14 @@ function hn(e, t) {
3348
3348
  return r;
3349
3349
  }
3350
3350
  let a = la(e, t);
3351
- for (; a && ys(a) && Pt(a); )
3351
+ for (; a && ps(a) && Pt(a); )
3352
3352
  a = la(a, t);
3353
- return a && Ae(a) && Pt(a) && !wr(a) ? r : a || bs(e) || r;
3353
+ return a && Ae(a) && Pt(a) && !wr(a) ? r : a || ys(e) || r;
3354
3354
  }
3355
- const Is = async function(e) {
3356
- const t = this.getOffsetParent || hn, r = this.getDimensions, a = await r(e.floating);
3355
+ const Rs = async function(e) {
3356
+ const t = this.getOffsetParent || fn, r = this.getDimensions, a = await r(e.floating);
3357
3357
  return {
3358
- reference: Rs(e.reference, await t(e.floating), e.strategy),
3358
+ reference: Ns(e.reference, await t(e.floating), e.strategy),
3359
3359
  floating: {
3360
3360
  x: 0,
3361
3361
  y: 0,
@@ -3364,34 +3364,34 @@ const Is = async function(e) {
3364
3364
  }
3365
3365
  };
3366
3366
  };
3367
- function As(e) {
3367
+ function Is(e) {
3368
3368
  return ne(e).direction === "rtl";
3369
3369
  }
3370
- const $s = {
3371
- convertOffsetParentRelativeRectToViewportRelativeRect: ws,
3370
+ const As = {
3371
+ convertOffsetParentRelativeRectToViewportRelativeRect: ks,
3372
3372
  getDocumentElement: be,
3373
- getClippingRect: Cs,
3374
- getOffsetParent: hn,
3375
- getElementRects: Is,
3376
- getClientRects: xs,
3377
- getDimensions: Ns,
3373
+ getClippingRect: Ss,
3374
+ getOffsetParent: fn,
3375
+ getElementRects: Rs,
3376
+ getClientRects: ws,
3377
+ getDimensions: Cs,
3378
3378
  getScale: Re,
3379
3379
  isElement: ae,
3380
- isRTL: As
3381
- }, Ls = gs, Os = ps, Bs = fs, Ms = ms, Ds = (e, t, r) => {
3380
+ isRTL: Is
3381
+ }, $s = hs, Ls = gs, Os = ms, Bs = us, Ms = (e, t, r) => {
3382
3382
  const a = /* @__PURE__ */ new Map(), n = {
3383
- platform: $s,
3383
+ platform: As,
3384
3384
  ...r
3385
3385
  }, o = {
3386
3386
  ...n.platform,
3387
3387
  _c: a
3388
3388
  };
3389
- return us(e, t, {
3389
+ return ds(e, t, {
3390
3390
  ...n,
3391
3391
  platform: o
3392
3392
  });
3393
3393
  }, ca = ["mousedown", "touchstart"];
3394
- function Vs(e, t, r) {
3394
+ function Ds(e, t, r) {
3395
3395
  const a = T(null);
3396
3396
  return M(() => {
3397
3397
  const n = (o) => {
@@ -3412,50 +3412,50 @@ function Vs(e, t, r) {
3412
3412
  };
3413
3413
  }, [e, r, t]), a;
3414
3414
  }
3415
- function Ps(e, t) {
3416
- const [r, a] = G(!1), n = T(null), o = T(null), i = Z(() => {
3415
+ function Vs(e, t) {
3416
+ const [r, a] = W(!1), n = T(null), o = T(null), i = Z(() => {
3417
3417
  a((c) => (!c && (!n.current || n.current === -1) && (n.current = window.setInterval(o.current, t)), !0));
3418
3418
  }, [t]), s = Z(() => {
3419
3419
  a(!1), window.clearInterval(n.current || -1), n.current = -1;
3420
3420
  }, []);
3421
3421
  return M(() => (o.current = e, r && i(), s), [e, r, i, s]), { start: i, stop: s, active: r };
3422
3422
  }
3423
- const tt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, zs = () => f("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), da = ({
3423
+ const tt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ps = () => f("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), da = ({
3424
3424
  mode: e
3425
3425
  }) => f({
3426
3426
  "bg-surface-darker": e === "dark" || e === "system",
3427
3427
  "bg-surface-light": e === "light" || e === "alt-system",
3428
3428
  "dark:bg-surface-light": e === "system",
3429
3429
  "dark:bg-surface-darker": e === "alt-system"
3430
- }), Us = ({
3430
+ }), zs = ({
3431
3431
  mode: e
3432
3432
  }) => f({
3433
3433
  "text-copy-light": e === "dark" || e === "system",
3434
3434
  "text-copy-dark": e === "light" || e === "alt-system",
3435
3435
  "dark:text-copy-dark": e === "system",
3436
3436
  "dark:text-copy-light": e === "alt-system"
3437
- }), Hs = () => f("absolute", "size-2", "transform rotate-45"), Fs = ({
3437
+ }), Us = () => f("absolute", "size-2", "transform rotate-45"), Hs = ({
3438
3438
  mode: e,
3439
3439
  className: t,
3440
3440
  tooltipClassName: r,
3441
3441
  arrowClassName: a
3442
3442
  }) => {
3443
3443
  const n = f("relative inline-block", t), o = f(
3444
- rs,
3445
- zs(),
3444
+ ts,
3445
+ Ps(),
3446
3446
  da({ mode: e }),
3447
- Us({ mode: e }),
3447
+ zs({ mode: e }),
3448
3448
  r
3449
3449
  ), i = f(
3450
- as,
3451
- Hs(),
3450
+ rs,
3451
+ Us(),
3452
3452
  da({ mode: e }),
3453
3453
  a
3454
3454
  );
3455
3455
  return { tooltip: o, arrow: i, wrapper: n };
3456
- }, Ws = ({ delay: e = 300 }) => ({
3456
+ }, Fs = ({ delay: e = 300 }) => ({
3457
3457
  animation: `av-tooltip-fade-in ${e}ms ease-in-out`
3458
- }), Gs = 5e3, Ve = ({
3458
+ }), Ws = 5e3, Ve = ({
3459
3459
  trigger: e,
3460
3460
  label: t,
3461
3461
  placement: r = "top",
@@ -3465,16 +3465,16 @@ const tt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, zs = (
3465
3465
  tooltipClassName: i,
3466
3466
  arrowClassName: s
3467
3467
  }) => {
3468
- const c = Vs(() => {
3468
+ const c = Ds(() => {
3469
3469
  b.stop(), p(!1);
3470
- }), d = T(null), h = T(null), [m, g] = G(!1), [u, p] = G(!1), b = Ps(() => {
3470
+ }), d = T(null), h = T(null), [m, g] = W(!1), [u, p] = W(!1), b = Vs(() => {
3471
3471
  p(!1);
3472
- }, Gs), y = Fs({
3472
+ }, Ws), y = Hs({
3473
3473
  mode: a,
3474
3474
  className: o,
3475
3475
  tooltipClassName: i,
3476
3476
  arrowClassName: s
3477
- }), v = Ws({ delay: n }), x = Z(async () => {
3477
+ }), v = Fs({ delay: n }), x = Z(async () => {
3478
3478
  var I, $, E, w;
3479
3479
  if (c.current && d.current && h.current) {
3480
3480
  const {
@@ -3482,16 +3482,16 @@ const tt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, zs = (
3482
3482
  y: C,
3483
3483
  middlewareData: B,
3484
3484
  placement: A
3485
- } = await Ds(c.current, d.current, {
3485
+ } = await Ms(c.current, d.current, {
3486
3486
  placement: r,
3487
3487
  middleware: [
3488
- Ls(10),
3489
- Bs({
3488
+ $s(10),
3489
+ Os({
3490
3490
  crossAxis: r.includes("-"),
3491
3491
  fallbackAxisSideDirection: "start"
3492
3492
  }),
3493
- Os({ padding: 5 }),
3494
- Ms({ element: h.current })
3493
+ Ls({ padding: 5 }),
3494
+ Bs({ element: h.current })
3495
3495
  ]
3496
3496
  });
3497
3497
  (I = d == null ? void 0 : d.current) != null && I.style && Object.assign(d.current.style, {
@@ -3549,13 +3549,13 @@ const tt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, zs = (
3549
3549
  ]
3550
3550
  }
3551
3551
  );
3552
- }, js = ({
3552
+ }, Gs = ({
3553
3553
  className: e
3554
3554
  }) => {
3555
3555
  const {
3556
3556
  state: { streaming: t },
3557
3557
  dispatch: r
3558
- } = W(ie), a = T(null), n = T(!1), o = (i) => {
3558
+ } = G(ie), a = T(null), n = T(!1), o = (i) => {
3559
3559
  i.preventDefault(), r({
3560
3560
  type: Me,
3561
3561
  payload: {
@@ -3582,7 +3582,7 @@ const tt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, zs = (
3582
3582
  label: "New Chat",
3583
3583
  ref: a,
3584
3584
  onClick: o,
3585
- children: t ? /* @__PURE__ */ l(io, { size: ge, monotone: !0 }) : /* @__PURE__ */ l(lo, { size: ge })
3585
+ children: t ? /* @__PURE__ */ l(oo, { size: ge, monotone: !0 }) : /* @__PURE__ */ l(so, { size: ge })
3586
3586
  }
3587
3587
  )
3588
3588
  }
@@ -3601,7 +3601,7 @@ try {
3601
3601
  });
3602
3602
  } catch {
3603
3603
  }
3604
- const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", gn = "button", ir = "link", qs = ({
3604
+ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", hn = "button", ir = "link", js = ({
3605
3605
  type: e,
3606
3606
  size: t,
3607
3607
  labelRight: r,
@@ -3611,7 +3611,7 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", gn =
3611
3611
  }) => {
3612
3612
  const i = "max-h-8 py-0 px-2", s = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
3613
3613
  switch (e) {
3614
- case gn:
3614
+ case hn:
3615
3615
  case ir:
3616
3616
  return f({
3617
3617
  [i]: t === "small",
@@ -3637,7 +3637,7 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", gn =
3637
3637
  "h-12": t === "large" && o && (r || a)
3638
3638
  });
3639
3639
  }
3640
- }, Ks = ({
3640
+ }, qs = ({
3641
3641
  type: e,
3642
3642
  size: t,
3643
3643
  labelRight: r,
@@ -3645,7 +3645,7 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", gn =
3645
3645
  }) => {
3646
3646
  const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
3647
3647
  switch (e) {
3648
- case gn:
3648
+ case hn:
3649
3649
  case ir:
3650
3650
  return f({
3651
3651
  "text-center": e === ir,
@@ -3660,7 +3660,7 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", gn =
3660
3660
  [i]: t === "large" && (r || a)
3661
3661
  });
3662
3662
  }
3663
- }, Ys = ({
3663
+ }, Ks = ({
3664
3664
  mode: e,
3665
3665
  noBackground: t,
3666
3666
  noTruncate: r,
@@ -3696,7 +3696,7 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", gn =
3696
3696
  return f("not-prose text-copy-lighter", {
3697
3697
  truncate: !r
3698
3698
  });
3699
- }, Js = ({
3699
+ }, Ys = ({
3700
3700
  mode: e,
3701
3701
  noBackground: t,
3702
3702
  variant: r
@@ -3726,13 +3726,13 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", gn =
3726
3726
  if (r === "selected")
3727
3727
  return "bg-action-selected-dark";
3728
3728
  }
3729
- }, Zs = ({
3729
+ }, Js = ({
3730
3730
  radius: e
3731
3731
  }) => f({
3732
3732
  "rounded-full": e === "large",
3733
3733
  "rounded-md": e === "medium",
3734
3734
  "rounded-sm": e === "small"
3735
- }), Xs = ({
3735
+ }), Zs = ({
3736
3736
  mode: e,
3737
3737
  disabled: t,
3738
3738
  variant: r
@@ -3762,7 +3762,7 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", gn =
3762
3762
  });
3763
3763
  if (r === "selected")
3764
3764
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
3765
- }, Qs = ({
3765
+ }, Xs = ({
3766
3766
  mode: e,
3767
3767
  disabled: t,
3768
3768
  variant: r
@@ -3792,7 +3792,7 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", gn =
3792
3792
  });
3793
3793
  if (r === "selected")
3794
3794
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
3795
- }, el = ({
3795
+ }, Qs = ({
3796
3796
  mode: e,
3797
3797
  noBorder: t,
3798
3798
  variant: r
@@ -3822,14 +3822,14 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", gn =
3822
3822
  });
3823
3823
  if (r === "selected")
3824
3824
  return "border border-border-selected-dark";
3825
- }, tl = ({
3825
+ }, el = ({
3826
3826
  focusMode: e
3827
3827
  }) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
3828
3828
  "focus:outline-focus-dark": e === "dark",
3829
3829
  "focus:outline-focus-light": e === "light",
3830
3830
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
3831
3831
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
3832
- }), rl = ({
3832
+ }), tl = ({
3833
3833
  mode: e,
3834
3834
  raw: t,
3835
3835
  iconClassName: r
@@ -3841,11 +3841,11 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", gn =
3841
3841
  "dark:text-copy-accent-dark": e === "system"
3842
3842
  },
3843
3843
  r
3844
- ), al = ({
3844
+ ), rl = ({
3845
3845
  animated: e
3846
3846
  }) => f({
3847
3847
  "transition-opacity duration-300 ease-in": e
3848
- }), nl = ({
3848
+ }), al = ({
3849
3849
  type: e,
3850
3850
  className: t,
3851
3851
  raw: r,
@@ -3865,15 +3865,15 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", gn =
3865
3865
  animated: y
3866
3866
  }) => (g || (g = "primary"), r ? f(fa, t) : f(
3867
3867
  fa,
3868
- Ys({
3868
+ Ks({
3869
3869
  mode: a,
3870
3870
  variant: g,
3871
3871
  noBackground: m,
3872
3872
  noTruncate: u
3873
3873
  }),
3874
- Js({ mode: a, noBackground: m, variant: g }),
3875
- Zs({ radius: b }),
3876
- qs({
3874
+ Ys({ mode: a, noBackground: m, variant: g }),
3875
+ Js({ radius: b }),
3876
+ js({
3877
3877
  type: e,
3878
3878
  size: s,
3879
3879
  labelRight: d,
@@ -3881,11 +3881,11 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", gn =
3881
3881
  align: p,
3882
3882
  animated: y
3883
3883
  }),
3884
- Ks({ type: e, size: s, labelRight: d, labelLeft: h }),
3885
- el({ mode: a, variant: g, noBorder: c }),
3886
- tl({ focusMode: n }),
3884
+ qs({ type: e, size: s, labelRight: d, labelLeft: h }),
3885
+ Qs({ mode: a, variant: g, noBorder: c }),
3886
+ el({ focusMode: n }),
3887
+ Zs({ mode: a, variant: g, disabled: o }),
3887
3888
  Xs({ mode: a, variant: g, disabled: o }),
3888
- Qs({ mode: a, variant: g, disabled: o }),
3889
3889
  {
3890
3890
  "w-full": i,
3891
3891
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -3894,30 +3894,30 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", gn =
3894
3894
  "transition-[width] duration-300 ease-in-out": e === kt && y
3895
3895
  }),
3896
3896
  t
3897
- )), ol = (e, t, r) => {
3897
+ )), nl = (e, t, r) => {
3898
3898
  var a;
3899
3899
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
3900
- }, pn = U.forwardRef((e, t) => {
3900
+ }, gn = U.forwardRef((e, t) => {
3901
3901
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
3902
3902
  return /* @__PURE__ */ l(
3903
3903
  "button",
3904
3904
  {
3905
3905
  ref: t,
3906
3906
  onClick: (o) => {
3907
- ol(o, a, r);
3907
+ nl(o, a, r);
3908
3908
  },
3909
3909
  ...n
3910
3910
  }
3911
3911
  );
3912
3912
  });
3913
- pn.displayName = "BaseButton";
3914
- function il() {
3913
+ gn.displayName = "BaseButton";
3914
+ function ol() {
3915
3915
  const e = T(!1);
3916
3916
  return M(() => (e.current = !0, () => {
3917
3917
  e.current = !1;
3918
3918
  }), []), Z(() => e.current, []);
3919
3919
  }
3920
- function sl(e) {
3920
+ function il(e) {
3921
3921
  return oe(() => e.every((t) => t == null) ? () => {
3922
3922
  } : (t) => {
3923
3923
  e.forEach((r) => {
@@ -3925,7 +3925,7 @@ function sl(e) {
3925
3925
  });
3926
3926
  }, e);
3927
3927
  }
3928
- const ll = {
3928
+ const sl = {
3929
3929
  x: 0,
3930
3930
  y: 0,
3931
3931
  width: 0,
@@ -3936,7 +3936,7 @@ const ll = {
3936
3936
  right: 0
3937
3937
  };
3938
3938
  function zt(e) {
3939
- const t = il(), r = T(0), a = T(null), [n, o] = G(ll), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
3939
+ const t = ol(), r = T(0), a = T(null), [n, o] = W(sl), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
3940
3940
  const c = s[0];
3941
3941
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
3942
3942
  a.current && t() && o(c.contentRect);
@@ -3946,21 +3946,21 @@ function zt(e) {
3946
3946
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
3947
3947
  }), [i, e]), [a, n];
3948
3948
  }
3949
- const cl = {
3949
+ const ll = {
3950
3950
  small: 24,
3951
3951
  // w-6
3952
3952
  medium: 32,
3953
3953
  // w-8
3954
3954
  large: 48
3955
3955
  // w-12
3956
- }, dl = {
3956
+ }, cl = {
3957
3957
  small: 8 * 2,
3958
3958
  // px-2 x 2
3959
3959
  medium: 12 * 2,
3960
3960
  // px-3 x 2
3961
3961
  large: 16 * 2
3962
3962
  // px-4 x 2
3963
- }, ul = 2, Er = U.forwardRef(
3963
+ }, dl = 2, Er = U.forwardRef(
3964
3964
  ({
3965
3965
  children: e,
3966
3966
  disabled: t = !1,
@@ -3984,7 +3984,7 @@ const cl = {
3984
3984
  animated: k = !1,
3985
3985
  ...N
3986
3986
  }, _) => {
3987
- const I = nl({
3987
+ const I = al({
3988
3988
  type: kt,
3989
3989
  mode: r,
3990
3990
  focusMode: a,
@@ -4001,11 +4001,11 @@ const cl = {
4001
4001
  radius: y,
4002
4002
  variant: v,
4003
4003
  animated: k
4004
- }), $ = rl({ mode: r, raw: s, iconClassName: x }), E = al({ animated: k }), [w, S] = zt(), [C, B] = zt(), [A, O] = zt(), V = T(0), R = T(null), H = sl([_, R]);
4004
+ }), $ = tl({ mode: r, raw: s, iconClassName: x }), E = rl({ animated: k }), [w, S] = zt(), [C, B] = zt(), [A, O] = zt(), V = T(0), R = T(null), H = il([_, R]);
4005
4005
  return pe(() => {
4006
- A && A.current && k && (V.current = O.width + dl[m] + (c ? 0 : ul));
4006
+ A && A.current && k && (V.current = O.width + cl[m] + (c ? 0 : dl));
4007
4007
  }, [O, A, m, c, k]), pe(() => {
4008
- R && R.current && k && (g && w && S.width > 0 ? (w.current && (w.current.style.opacity = "100"), R.current.style.width = `${S.width + V.current}px`) : u && B.width > 0 ? (C.current && (C.current.style.opacity = "100"), R.current.style.width = `${B.width + V.current}px`) : (w.current && (w.current.style.opacity = "0"), C.current && (C.current.style.opacity = "0"), R.current.style.width = `${cl[m]}px`));
4008
+ R && R.current && k && (g && w && S.width > 0 ? (w.current && (w.current.style.opacity = "100"), R.current.style.width = `${S.width + V.current}px`) : u && B.width > 0 ? (C.current && (C.current.style.opacity = "100"), R.current.style.width = `${B.width + V.current}px`) : (w.current && (w.current.style.opacity = "0"), C.current && (C.current.style.opacity = "0"), R.current.style.width = `${ll[m]}px`));
4009
4009
  }, [
4010
4010
  S,
4011
4011
  g,
@@ -4016,7 +4016,7 @@ const cl = {
4016
4016
  m,
4017
4017
  k
4018
4018
  ]), /* @__PURE__ */ L(
4019
- pn,
4019
+ gn,
4020
4020
  {
4021
4021
  ref: H,
4022
4022
  className: I,
@@ -4068,7 +4068,7 @@ try {
4068
4068
  });
4069
4069
  } catch {
4070
4070
  }
4071
- const ml = U.forwardRef(
4071
+ const ul = U.forwardRef(
4072
4072
  ({
4073
4073
  children: e,
4074
4074
  mode: t = "system",
@@ -4106,8 +4106,8 @@ const ml = U.forwardRef(
4106
4106
  ) });
4107
4107
  }
4108
4108
  );
4109
- ml.displayName = "ButtonSort";
4110
- const fl = ({
4109
+ ul.displayName = "ButtonSort";
4110
+ const ml = ({
4111
4111
  children: e,
4112
4112
  fill: t,
4113
4113
  viewBox: r,
@@ -4150,14 +4150,14 @@ try {
4150
4150
  });
4151
4151
  } catch {
4152
4152
  }
4153
- const hl = ({
4153
+ const fl = ({
4154
4154
  className: e,
4155
4155
  viewBox: t,
4156
4156
  title: r,
4157
4157
  monotone: a,
4158
4158
  ...n
4159
4159
  }) => /* @__PURE__ */ l(
4160
- fl,
4160
+ ml,
4161
4161
  {
4162
4162
  defaultViewBox: "0 0 384 512",
4163
4163
  size: "size-5",
@@ -4187,8 +4187,8 @@ try {
4187
4187
  });
4188
4188
  } catch {
4189
4189
  }
4190
- const yn = J.createContext(null);
4191
- function gl({
4190
+ const pn = J.createContext(null);
4191
+ function hl({
4192
4192
  initialOpen: e = !1,
4193
4193
  open: t,
4194
4194
  onOpenChange: r
@@ -4217,19 +4217,19 @@ function gl({
4217
4217
  );
4218
4218
  }
4219
4219
  const wt = () => {
4220
- const e = J.useContext(yn);
4220
+ const e = J.useContext(pn);
4221
4221
  if (e == null)
4222
4222
  throw new Error("Modal components must be wrapped in <Modal />");
4223
4223
  return e;
4224
4224
  };
4225
- function pl({
4225
+ function gl({
4226
4226
  children: e,
4227
4227
  ...t
4228
4228
  }) {
4229
- const r = gl(t);
4230
- return /* @__PURE__ */ l(yn.Provider, { value: r, children: e });
4229
+ const r = hl(t);
4230
+ return /* @__PURE__ */ l(pn.Provider, { value: r, children: e });
4231
4231
  }
4232
- const yl = J.forwardRef(function(e, t) {
4232
+ const pl = J.forwardRef(function(e, t) {
4233
4233
  const { context: r, ...a } = wt(), n = ur([a.refs.setFloating, t]);
4234
4234
  if (!r.open)
4235
4235
  return null;
@@ -4237,7 +4237,7 @@ const yl = J.forwardRef(function(e, t) {
4237
4237
  [`${o}`]: o,
4238
4238
  "bg-black sm:bg-black/[.8]": !o
4239
4239
  });
4240
- return /* @__PURE__ */ l(Ra, { children: /* @__PURE__ */ l(Kn, { className: s, lockScroll: !0, children: /* @__PURE__ */ l(Ia, { context: r, children: /* @__PURE__ */ l(
4240
+ return /* @__PURE__ */ l(Ra, { children: /* @__PURE__ */ l(qn, { className: s, lockScroll: !0, children: /* @__PURE__ */ l(Ia, { context: r, children: /* @__PURE__ */ l(
4241
4241
  "div",
4242
4242
  {
4243
4243
  ref: n,
@@ -4247,13 +4247,13 @@ const yl = J.forwardRef(function(e, t) {
4247
4247
  children: i.children
4248
4248
  }
4249
4249
  ) }) }) });
4250
- }), bl = J.forwardRef(function({ children: e, ...t }, r) {
4250
+ }), yl = J.forwardRef(function({ children: e, ...t }, r) {
4251
4251
  const { setLabelId: a } = wt(), n = dr();
4252
4252
  return J.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ l("h1", { ...t, ref: r, id: n, children: e });
4253
- }), vl = J.forwardRef(function({ children: e, ...t }, r) {
4253
+ }), bl = J.forwardRef(function({ children: e, ...t }, r) {
4254
4254
  const { setDescriptionId: a } = wt(), n = dr();
4255
4255
  return J.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ l("div", { ...t, ref: r, id: n, children: e });
4256
- }), kl = J.forwardRef(function(e, t) {
4256
+ }), vl = J.forwardRef(function(e, t) {
4257
4257
  const { setOpen: r } = wt(), { trigger: a, className: n, ...o } = e, i = J.useCallback(() => r(!1), [r]);
4258
4258
  return /* @__PURE__ */ l("div", { className: n, children: J.cloneElement(a, {
4259
4259
  ref: t,
@@ -4274,7 +4274,7 @@ try {
4274
4274
  });
4275
4275
  } catch {
4276
4276
  }
4277
- const He = "panel", rt = "messagebox", wl = ({
4277
+ const He = "panel", rt = "messagebox", kl = ({
4278
4278
  className: e,
4279
4279
  kind: t,
4280
4280
  borderMode: r
@@ -4294,7 +4294,7 @@ const He = "panel", rt = "messagebox", wl = ({
4294
4294
  footer: "flex flex-grow flex-col sm:p-4 p-2",
4295
4295
  header: "sm:p-4 mb-0 p-2",
4296
4296
  close: "sm:p-4 p-2"
4297
- }), xl = ({
4297
+ }), wl = ({
4298
4298
  open: e,
4299
4299
  onOpenChange: t,
4300
4300
  title: r,
@@ -4304,13 +4304,13 @@ const He = "panel", rt = "messagebox", wl = ({
4304
4304
  kind: i = He,
4305
4305
  className: s
4306
4306
  }) => {
4307
- const c = T(""), d = wl({ className: s, kind: i, borderMode: o });
4307
+ const c = T(""), d = kl({ className: s, kind: i, borderMode: o });
4308
4308
  return M(() => (e && (c.current = document.title, document.title = `${r} | ${c.current}`), () => {
4309
4309
  e && (document.title = c.current);
4310
- }), [r, e]), /* @__PURE__ */ l(_e, { children: e && /* @__PURE__ */ l(pl, { open: e, onOpenChange: t, children: /* @__PURE__ */ L(yl, { className: d.main, children: [
4310
+ }), [r, e]), /* @__PURE__ */ l(_e, { children: e && /* @__PURE__ */ l(gl, { open: e, onOpenChange: t, children: /* @__PURE__ */ L(pl, { className: d.main, children: [
4311
4311
  /* @__PURE__ */ L("div", { className: "flex flex-row-reverse items-center justify-between", children: [
4312
4312
  /* @__PURE__ */ l(
4313
- kl,
4313
+ vl,
4314
4314
  {
4315
4315
  className: d.close,
4316
4316
  trigger: /* @__PURE__ */ l(
@@ -4320,30 +4320,30 @@ const He = "panel", rt = "messagebox", wl = ({
4320
4320
  focusMode: "light",
4321
4321
  noBorder: !0,
4322
4322
  label: "Close",
4323
- children: /* @__PURE__ */ l(hl, {})
4323
+ children: /* @__PURE__ */ l(fl, {})
4324
4324
  }
4325
4325
  )
4326
4326
  }
4327
4327
  ),
4328
- /* @__PURE__ */ l(bl, { className: d.header, children: r })
4328
+ /* @__PURE__ */ l(yl, { className: d.header, children: r })
4329
4329
  ] }),
4330
- /* @__PURE__ */ l(vl, { className: d.content, children: a }),
4330
+ /* @__PURE__ */ l(bl, { className: d.content, children: a }),
4331
4331
  n && /* @__PURE__ */ l("div", { className: d.footer, children: n })
4332
4332
  ] }) }) });
4333
- }, _l = ({
4333
+ }, xl = ({
4334
4334
  showConfirmation: e,
4335
4335
  setShowConfirmation: t,
4336
4336
  action: r,
4337
4337
  children: a,
4338
4338
  customStrings: n
4339
4339
  }) => /* @__PURE__ */ l(
4340
- xl,
4340
+ wl,
4341
4341
  {
4342
4342
  kind: "messagebox",
4343
4343
  open: e,
4344
4344
  onOpenChange: t,
4345
4345
  title: n.title,
4346
- footer: /* @__PURE__ */ L($n, { columnGap: 2, alignHorizontal: "flex-end", children: [
4346
+ footer: /* @__PURE__ */ L(An, { columnGap: 2, alignHorizontal: "flex-end", children: [
4347
4347
  /* @__PURE__ */ l(Mr, { children: /* @__PURE__ */ l(
4348
4348
  Dr,
4349
4349
  {
@@ -4371,14 +4371,14 @@ const He = "panel", rt = "messagebox", wl = ({
4371
4371
  ] }),
4372
4372
  children: a
4373
4373
  }
4374
- ), El = ({
4374
+ ), _l = ({
4375
4375
  className: e
4376
4376
  }) => {
4377
4377
  const {
4378
4378
  state: { privateChat: t },
4379
4379
  dispatch: r
4380
- } = W(ie), [a, n] = G(!1), [o, i] = Gt({
4381
- key: Ft + Ln,
4380
+ } = G(ie), [a, n] = W(!1), [o, i] = Gt({
4381
+ key: Ft + $n,
4382
4382
  initialValue: ""
4383
4383
  }), s = () => {
4384
4384
  r({
@@ -4390,7 +4390,7 @@ const He = "panel", rt = "messagebox", wl = ({
4390
4390
  };
4391
4391
  return /* @__PURE__ */ L(_e, { children: [
4392
4392
  /* @__PURE__ */ l(
4393
- _l,
4393
+ xl,
4394
4394
  {
4395
4395
  showConfirmation: a,
4396
4396
  setShowConfirmation: n,
@@ -4427,7 +4427,7 @@ const He = "panel", rt = "messagebox", wl = ({
4427
4427
  d.preventDefault(), o ? s() : (i("true"), n(!a));
4428
4428
  },
4429
4429
  className: "text-sm",
4430
- children: t ? /* @__PURE__ */ l(co, { size: ge }) : /* @__PURE__ */ l(mo, { size: ge })
4430
+ children: t ? /* @__PURE__ */ l(lo, { size: ge }) : /* @__PURE__ */ l(uo, { size: ge })
4431
4431
  }
4432
4432
  )
4433
4433
  }
@@ -4453,7 +4453,7 @@ const He = "panel", rt = "messagebox", wl = ({
4453
4453
  return t.displayName || t.name || "Component";
4454
4454
  }
4455
4455
  return "Element";
4456
- }, bn = Ca(
4456
+ }, yn = Ca(
4457
4457
  ({
4458
4458
  trigger: e,
4459
4459
  children: t,
@@ -4464,7 +4464,7 @@ const He = "panel", rt = "messagebox", wl = ({
4464
4464
  focusMode: i = "system",
4465
4465
  ...s
4466
4466
  }, c) => {
4467
- const [d, h] = G(!1), [m, g] = G(!1), [u, p] = G(null), b = T([]), y = T([]), v = W(sr), x = Ma(), k = Yn(), N = Da(), { floatingStyles: _, refs: I, context: $ } = Aa({
4467
+ const [d, h] = W(!1), [m, g] = W(!1), [u, p] = W(null), b = T([]), y = T([]), v = G(sr), x = Ma(), k = Kn(), N = Da(), { floatingStyles: _, refs: I, context: $ } = Aa({
4468
4468
  nodeId: k,
4469
4469
  open: d,
4470
4470
  onOpenChange: (q) => {
@@ -4472,19 +4472,19 @@ const He = "panel", rt = "messagebox", wl = ({
4472
4472
  },
4473
4473
  placement: a,
4474
4474
  strategy: "fixed",
4475
- middleware: [Jn({ mainAxis: 10 }), Zn(), Xn()],
4476
- whileElementsMounted: Qn
4475
+ middleware: [Yn({ mainAxis: 10 }), Jn(), Zn()],
4476
+ whileElementsMounted: Xn
4477
4477
  }), E = $a($, {
4478
4478
  event: "mousedown",
4479
4479
  toggle: !0,
4480
4480
  ignoreMouse: !1
4481
- }), w = Oa($, { role: "menu" }), S = La($, { bubbles: !0 }), C = eo($, {
4481
+ }), w = Oa($, { role: "menu" }), S = La($, { bubbles: !0 }), C = Qn($, {
4482
4482
  listRef: b,
4483
4483
  activeIndex: u,
4484
4484
  nested: !1,
4485
4485
  onNavigate: p,
4486
4486
  loop: !0
4487
- }), B = to($, {
4487
+ }), B = eo($, {
4488
4488
  listRef: y,
4489
4489
  onMatch: d ? p : void 0,
4490
4490
  activeIndex: u
@@ -4518,7 +4518,7 @@ const He = "panel", rt = "messagebox", wl = ({
4518
4518
  };
4519
4519
  }, [x, n]), M(() => {
4520
4520
  d && x && x.events.emit("menuopen", { nodeId: k });
4521
- }, [x, d, k]), /* @__PURE__ */ L(ro, { id: k, children: [
4521
+ }, [x, d, k]), /* @__PURE__ */ L(to, { id: k, children: [
4522
4522
  j,
4523
4523
  /* @__PURE__ */ l(
4524
4524
  sr.Provider,
@@ -4530,7 +4530,7 @@ const He = "panel", rt = "messagebox", wl = ({
4530
4530
  setHasFocusInside: g,
4531
4531
  isOpen: d
4532
4532
  },
4533
- children: /* @__PURE__ */ l(ao, { elementsRef: b, labelsRef: y, children: d && /* @__PURE__ */ l(Ra, { children: /* @__PURE__ */ l(
4533
+ children: /* @__PURE__ */ l(ro, { elementsRef: b, labelsRef: y, children: d && /* @__PURE__ */ l(Ra, { children: /* @__PURE__ */ l(
4534
4534
  Ia,
4535
4535
  {
4536
4536
  context: $,
@@ -4553,9 +4553,9 @@ const He = "panel", rt = "messagebox", wl = ({
4553
4553
  )
4554
4554
  ] });
4555
4555
  }
4556
- ), Tr = Ca((e, t) => /* @__PURE__ */ l(no, { children: /* @__PURE__ */ l(bn, { ...e, ref: t }) }));
4556
+ ), Tr = Ca((e, t) => /* @__PURE__ */ l(ao, { children: /* @__PURE__ */ l(yn, { ...e, ref: t }) }));
4557
4557
  Tr.displayName = "Menu";
4558
- bn.displayName = "MenuComponent";
4558
+ yn.displayName = "MenuComponent";
4559
4559
  const ct = J.forwardRef(
4560
4560
  ({
4561
4561
  label: e,
@@ -4623,7 +4623,7 @@ ct.displayName = "MenuItem";
4623
4623
  const Qc = ({ className: e, ...t }) => {
4624
4624
  const r = f(e, "my-1 border-t border-border-medium");
4625
4625
  return /* @__PURE__ */ l("div", { className: r, ...t });
4626
- }, vn = ({
4626
+ }, bn = ({
4627
4627
  className: e,
4628
4628
  ...t
4629
4629
  }) => {
@@ -4646,16 +4646,16 @@ try {
4646
4646
  });
4647
4647
  } catch {
4648
4648
  }
4649
- const Tl = (e) => {
4649
+ const El = (e) => {
4650
4650
  for (let t = 0; t < e.length; t++)
4651
4651
  if (e[t].enabled)
4652
4652
  return !0;
4653
4653
  return !1;
4654
- }, Sl = ({
4654
+ }, Tl = ({
4655
4655
  className: e,
4656
4656
  defaultPlacement: t = "top-start"
4657
4657
  }) => {
4658
- const { dispatch: r } = W(ie), { dispatch: a } = W(pt), { getAccessToken: n, user: o } = Le(), {
4658
+ const { dispatch: r } = G(ie), { dispatch: a } = G(pt), { getAccessToken: n, user: o } = Le(), {
4659
4659
  data: i,
4660
4660
  error: s,
4661
4661
  isLoading: c
@@ -4675,7 +4675,7 @@ const Tl = (e) => {
4675
4675
  }
4676
4676
  });
4677
4677
  };
4678
- return s || c ? null : i && i.tags && Tl(i.tags) && /* @__PURE__ */ l(
4678
+ return s || c ? null : i && i.tags && El(i.tags) && /* @__PURE__ */ l(
4679
4679
  Ve,
4680
4680
  {
4681
4681
  label: "Custom Prompts",
@@ -4686,10 +4686,10 @@ const Tl = (e) => {
4686
4686
  {
4687
4687
  mode: "dark",
4688
4688
  focusMode: "light",
4689
- trigger: /* @__PURE__ */ l($e, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ l(oo, { size: ge }) }),
4689
+ trigger: /* @__PURE__ */ l($e, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ l(no, { size: ge }) }),
4690
4690
  defaultPlacement: t,
4691
4691
  children: [
4692
- /* @__PURE__ */ l(vn, { children: "Prompts" }),
4692
+ /* @__PURE__ */ l(bn, { children: "Prompts" }),
4693
4693
  i && i.tags && i.tags.map((h) => h.enabled && h.label && h.content && /* @__PURE__ */ l(
4694
4694
  ct,
4695
4695
  {
@@ -4707,30 +4707,15 @@ const Tl = (e) => {
4707
4707
  )
4708
4708
  }
4709
4709
  );
4710
- }, Cl = ({
4710
+ }, Sl = ({
4711
4711
  className: e
4712
4712
  }) => {
4713
4713
  const { user: t, getAccessToken: r } = Le(), {
4714
- state: {
4715
- messages: a,
4716
- usage: n,
4717
- provider: o,
4718
- id: i,
4719
- privateChat: s,
4720
- lastTriggeredTimestamp: c
4721
- }
4722
- } = W(ie), { state: d } = W(tn), [h, m] = G(!1), { mutate: g } = Yi({
4723
- keys: [
4724
- t == null ? void 0 : t.username,
4725
- d.searchString,
4726
- d.sortDirection,
4727
- c || 0
4728
- ],
4729
- getAccessToken: r
4730
- }), u = async (p) => {
4731
- p.preventDefault();
4714
+ state: { messages: a, usage: n, provider: o, id: i, privateChat: s }
4715
+ } = G(ie), [c, d] = W(!1), h = async (m) => {
4716
+ m.preventDefault();
4732
4717
  try {
4733
- i && a && o && n && (await yr({
4718
+ i && a && o && await yr({
4734
4719
  accessToken: await r(),
4735
4720
  type: Be.SAVE_CHAT,
4736
4721
  params: {
@@ -4740,13 +4725,13 @@ const Tl = (e) => {
4740
4725
  provider: o,
4741
4726
  usage: n
4742
4727
  }
4743
- }), g());
4728
+ });
4744
4729
  } catch {
4745
4730
  }
4746
4731
  };
4747
4732
  return M(() => {
4748
- s && (a == null ? void 0 : a.length) > 0 ? m(!0) : m(!1);
4749
- }, [s, a]), h && /* @__PURE__ */ l(
4733
+ s && (a == null ? void 0 : a.length) > 0 ? d(!0) : d(!1);
4734
+ }, [s, a]), c && /* @__PURE__ */ l(
4750
4735
  Ve,
4751
4736
  {
4752
4737
  label: "Save Private Chat",
@@ -4760,17 +4745,17 @@ const Tl = (e) => {
4760
4745
  mode: "dark",
4761
4746
  focusMode: "light",
4762
4747
  label: "Save Private Chat",
4763
- onClick: u,
4764
- children: /* @__PURE__ */ l(so, { size: ge, monotone: !0 })
4748
+ onClick: h,
4749
+ children: /* @__PURE__ */ l(io, { size: ge, monotone: !0 })
4765
4750
  }
4766
4751
  )
4767
4752
  }
4768
4753
  );
4769
- }, Nl = ({ show: e }) => e ? /* @__PURE__ */ l(
4754
+ }, Cl = ({ show: e }) => e ? /* @__PURE__ */ l(
4770
4755
  "div",
4771
4756
  {
4772
4757
  className: f(
4773
- ts,
4758
+ Qi,
4774
4759
  "bottom-44 fixed left-1/2 transform -translate-x-1/2"
4775
4760
  ),
4776
4761
  children: /* @__PURE__ */ l(
@@ -4796,12 +4781,12 @@ const Tl = (e) => {
4796
4781
  }
4797
4782
  )
4798
4783
  }
4799
- ) : null, Rl = ({
4784
+ ) : null, Nl = ({
4800
4785
  className: e
4801
4786
  }) => {
4802
4787
  const {
4803
4788
  state: { loading: t, streaming: r }
4804
- } = W(ie);
4789
+ } = G(ie);
4805
4790
  return /* @__PURE__ */ l(
4806
4791
  Ve,
4807
4792
  {
@@ -4819,18 +4804,18 @@ const Tl = (e) => {
4819
4804
  type: "submit",
4820
4805
  mode: "light",
4821
4806
  focusMode: "light",
4822
- children: /* @__PURE__ */ l(uo, { size: ge })
4807
+ children: /* @__PURE__ */ l(co, { size: ge })
4823
4808
  }
4824
4809
  )
4825
4810
  }
4826
4811
  );
4827
- }, Il = ({
4812
+ }, Rl = ({
4828
4813
  className: e
4829
4814
  }) => {
4830
4815
  const {
4831
4816
  state: { provider: t },
4832
4817
  dispatch: r
4833
- } = W(ie), { getAccessToken: a, user: n } = Le(), {
4818
+ } = G(ie), { getAccessToken: a, user: n } = Le(), {
4834
4819
  data: o,
4835
4820
  error: i,
4836
4821
  isLoading: s,
@@ -4840,7 +4825,7 @@ const Tl = (e) => {
4840
4825
  getAccessToken: a
4841
4826
  }), d = async (h) => {
4842
4827
  try {
4843
- await ji({
4828
+ await Gi({
4844
4829
  provider: h,
4845
4830
  accessToken: await a(),
4846
4831
  username: (n == null ? void 0 : n.username) || ""
@@ -4867,7 +4852,7 @@ const Tl = (e) => {
4867
4852
  trigger: /* @__PURE__ */ l($e, { noBorder: !0, label: "Providers", children: t === Ct ? /* @__PURE__ */ l(Fr, { size: ge }) : /* @__PURE__ */ l(Wr, { size: ge }) }),
4868
4853
  defaultPlacement: "top-start",
4869
4854
  children: [
4870
- /* @__PURE__ */ l(vn, { children: "Providers" }),
4855
+ /* @__PURE__ */ l(bn, { children: "Providers" }),
4871
4856
  /* @__PURE__ */ l(
4872
4857
  ct,
4873
4858
  {
@@ -4891,35 +4876,35 @@ const Tl = (e) => {
4891
4876
  )
4892
4877
  }
4893
4878
  );
4894
- }, Al = () => f(
4879
+ }, Il = () => f(
4895
4880
  "relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
4896
- ), pa = () => f("bg-surface-darker"), $l = () => f("text-copy-lighter caret-copy-light"), Ll = () => f(
4881
+ ), pa = () => f("bg-surface-darker"), Al = () => f("text-copy-lighter caret-copy-light"), $l = () => f(
4897
4882
  "has-[.av-prompt-editable:focus]:outline",
4898
4883
  "has-[.av-prompt-editable:focus]:outline-2",
4899
4884
  "has-[.av-prompt-editable:focus]:outline-offset-2",
4900
4885
  "has-[.av-prompt-editable:focus]:outline-focus-light"
4901
- ), Ol = () => f(
4886
+ ), Ll = () => f(
4902
4887
  "peer",
4903
4888
  "text-base resize-none overflow-hidden w-full text-inherit outline-none",
4904
4889
  "h-6 pr-2 pl-4"
4905
- ), Bl = ({ className: e }) => {
4890
+ ), Ol = ({ className: e }) => {
4906
4891
  const t = f(
4907
- On,
4908
- Al(),
4892
+ Ln,
4893
+ Il(),
4909
4894
  pa(),
4895
+ Al(),
4910
4896
  $l(),
4911
- Ll(),
4912
4897
  e
4913
4898
  ), r = f(
4914
- Bn,
4915
- Ol(),
4899
+ On,
4900
+ Ll(),
4916
4901
  pa()
4917
4902
  );
4918
4903
  return {
4919
4904
  wrapper: t,
4920
4905
  textArea: r
4921
4906
  };
4922
- }, ya = 24, Ml = ({
4907
+ }, ya = 24, Bl = ({
4923
4908
  className: e,
4924
4909
  label: t,
4925
4910
  value: r,
@@ -4931,9 +4916,9 @@ const Tl = (e) => {
4931
4916
  }) => {
4932
4917
  const h = ya * 2, m = 5 * ya, {
4933
4918
  state: { usage: g, messages: u }
4934
- } = W(ie), { state: p } = W(pt), b = T(null), y = T(null), v = Eo([i, y]), x = No(), k = Bl({
4919
+ } = G(ie), { state: p } = G(pt), b = T(null), y = T(null), v = _o([i, y]), x = Co(), k = Ol({
4935
4920
  className: e
4936
- }), [N, _] = Co({
4921
+ }), [N, _] = So({
4937
4922
  value: r,
4938
4923
  initialControlledDelay: 20,
4939
4924
  defaultValue: a,
@@ -4983,30 +4968,30 @@ const Tl = (e) => {
4983
4968
  translate: "no",
4984
4969
  onChange: E,
4985
4970
  value: N,
4986
- onKeyDown: yo([["mod+Enter", $]]),
4971
+ onKeyDown: po([["mod+Enter", $]]),
4987
4972
  className: k.textArea,
4988
4973
  "aria-labelledby": x
4989
4974
  }
4990
4975
  ) }),
4991
4976
  /* @__PURE__ */ L("div", { className: "p-2 flex items-center", children: [
4992
- /* @__PURE__ */ l(Rl, { className: "order-6 ml-auto" }),
4993
- /* @__PURE__ */ l(js, { className: "order-1 mr-4 sm:mr-2" }),
4994
- /* @__PURE__ */ l(Il, { className: "order-2 mr-4 sm:mr-2" }),
4995
- /* @__PURE__ */ l(Sl, { className: "order-3 mr-4 sm:mr-2" }),
4996
- /* @__PURE__ */ l(El, { className: "order-4 mr-4 sm:mr-2" }),
4997
- /* @__PURE__ */ l(Cl, { className: "order-5" })
4977
+ /* @__PURE__ */ l(Nl, { className: "order-6 ml-auto" }),
4978
+ /* @__PURE__ */ l(Gs, { className: "order-1 mr-4 sm:mr-2" }),
4979
+ /* @__PURE__ */ l(Rl, { className: "order-2 mr-4 sm:mr-2" }),
4980
+ /* @__PURE__ */ l(Tl, { className: "order-3 mr-4 sm:mr-2" }),
4981
+ /* @__PURE__ */ l(_l, { className: "order-4 mr-4 sm:mr-2" }),
4982
+ /* @__PURE__ */ l(Sl, { className: "order-5" })
4998
4983
  ] })
4999
4984
  ] })
5000
4985
  }
5001
4986
  );
5002
- }, Dl = () => {
4987
+ }, Ml = () => {
5003
4988
  const {
5004
4989
  state: { messages: e, provider: t, id: r, usage: a, privateChat: n, streaming: o },
5005
4990
  dispatch: i
5006
- } = W(ie), { state: s, dispatch: c } = W(pt), [d, h] = G(""), { getAccessToken: m, user: g } = Le(), u = T(null), p = T(
4991
+ } = G(ie), { state: s, dispatch: c } = G(pt), [d, h] = W(""), { getAccessToken: m, user: g } = Le(), u = T(null), p = T(
5007
4992
  null
5008
4993
  );
5009
- vo([
4994
+ bo([
5010
4995
  [
5011
4996
  "mod+K",
5012
4997
  () => {
@@ -5031,13 +5016,13 @@ const Tl = (e) => {
5031
5016
  return;
5032
5017
  }
5033
5018
  const y = e[e.length - 1];
5034
- if (!(e.length === 0 || y.role === Fe || y.role === Mn || y.role === at || y.role === Dn)) {
5019
+ if (!(e.length === 0 || y.role === Fe || y.role === Bn || y.role === at || y.role === Mn)) {
5035
5020
  i({
5036
5021
  type: rr,
5037
5022
  payload: !0
5038
5023
  });
5039
5024
  try {
5040
- const x = await Gi({
5025
+ const x = await Wi({
5041
5026
  accessToken: await m(),
5042
5027
  name: "generate",
5043
5028
  data: {
@@ -5128,19 +5113,19 @@ const Tl = (e) => {
5128
5113
  }, [a, e]), M(() => {
5129
5114
  o === !1 && u.current && u.current.focus();
5130
5115
  }, [o]), /* @__PURE__ */ l(_e, { children: /* @__PURE__ */ l(
5131
- Ml,
5116
+ Bl,
5132
5117
  {
5133
- label: Vn,
5118
+ label: Dn,
5134
5119
  onSubmit: b,
5135
5120
  ref: u,
5136
5121
  value: d,
5137
5122
  onChange: (y) => h(y.target.value)
5138
5123
  }
5139
5124
  ) });
5140
- }, Vl = ({ isComponent: e }) => {
5125
+ }, Dl = ({ isComponent: e }) => {
5141
5126
  const {
5142
5127
  state: { loading: t, streaming: r, restoring: a, messages: n }
5143
- } = W(ie), { height: o } = Ro(), [i, s] = So(), c = window.innerWidth < 403;
5128
+ } = G(ie), { height: o } = No(), [i, s] = To(), c = window.innerWidth < 403;
5144
5129
  return M(() => {
5145
5130
  var d, h;
5146
5131
  (t && !r || a) && ((d = i == null ? void 0 : i.current) == null || d.style.setProperty("--sassy-bottom", "16px")), !t && !r && n.length === 0 && ((h = i == null ? void 0 : i.current) == null || h.style.setProperty(
@@ -5166,11 +5151,11 @@ const Tl = (e) => {
5166
5151
  "fixed left-1/2 transform -translate-x-1/2",
5167
5152
  "transition-all ease-in-out duration-500",
5168
5153
  "bottom-[--sassy-bottom]",
5169
- es
5154
+ Xi
5170
5155
  ),
5171
5156
  children: [
5172
- /* @__PURE__ */ l(Dl, {}),
5173
- /* @__PURE__ */ l("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Pn })
5157
+ /* @__PURE__ */ l(Ml, {}),
5158
+ /* @__PURE__ */ l("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Vn })
5174
5159
  ]
5175
5160
  }
5176
5161
  );
@@ -5188,7 +5173,7 @@ try {
5188
5173
  });
5189
5174
  } catch {
5190
5175
  }
5191
- const Pl = "av-bubble", ba = "av-button", xt = "icon", kn = "button", lr = "link", zl = ({
5176
+ const Vl = "av-bubble", ba = "av-button", xt = "icon", vn = "button", lr = "link", Pl = ({
5192
5177
  type: e,
5193
5178
  size: t,
5194
5179
  labelRight: r,
@@ -5198,7 +5183,7 @@ const Pl = "av-bubble", ba = "av-button", xt = "icon", kn = "button", lr = "link
5198
5183
  }) => {
5199
5184
  const i = "max-h-8 py-0 px-2", s = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
5200
5185
  switch (e) {
5201
- case kn:
5186
+ case vn:
5202
5187
  case lr:
5203
5188
  return f({
5204
5189
  [i]: t === "small",
@@ -5224,7 +5209,7 @@ const Pl = "av-bubble", ba = "av-button", xt = "icon", kn = "button", lr = "link
5224
5209
  "h-12": t === "large" && o && (r || a)
5225
5210
  });
5226
5211
  }
5227
- }, Ul = ({
5212
+ }, zl = ({
5228
5213
  type: e,
5229
5214
  size: t,
5230
5215
  labelRight: r,
@@ -5232,7 +5217,7 @@ const Pl = "av-bubble", ba = "av-button", xt = "icon", kn = "button", lr = "link
5232
5217
  }) => {
5233
5218
  const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
5234
5219
  switch (e) {
5235
- case kn:
5220
+ case vn:
5236
5221
  case lr:
5237
5222
  return f({
5238
5223
  "text-center": e === lr,
@@ -5247,7 +5232,7 @@ const Pl = "av-bubble", ba = "av-button", xt = "icon", kn = "button", lr = "link
5247
5232
  [i]: t === "large" && (r || a)
5248
5233
  });
5249
5234
  }
5250
- }, Hl = ({
5235
+ }, Ul = ({
5251
5236
  mode: e,
5252
5237
  noBackground: t,
5253
5238
  noTruncate: r,
@@ -5283,7 +5268,7 @@ const Pl = "av-bubble", ba = "av-button", xt = "icon", kn = "button", lr = "link
5283
5268
  return f("not-prose text-copy-lighter", {
5284
5269
  truncate: !r
5285
5270
  });
5286
- }, Fl = ({
5271
+ }, Hl = ({
5287
5272
  mode: e,
5288
5273
  noBackground: t,
5289
5274
  variant: r
@@ -5313,13 +5298,13 @@ const Pl = "av-bubble", ba = "av-button", xt = "icon", kn = "button", lr = "link
5313
5298
  if (r === "selected")
5314
5299
  return "bg-action-selected-dark";
5315
5300
  }
5316
- }, Wl = ({
5301
+ }, Fl = ({
5317
5302
  radius: e
5318
5303
  }) => f({
5319
5304
  "rounded-full": e === "large",
5320
5305
  "rounded-md": e === "medium",
5321
5306
  "rounded-sm": e === "small"
5322
- }), Gl = ({
5307
+ }), Wl = ({
5323
5308
  mode: e,
5324
5309
  disabled: t,
5325
5310
  variant: r
@@ -5349,7 +5334,7 @@ const Pl = "av-bubble", ba = "av-button", xt = "icon", kn = "button", lr = "link
5349
5334
  });
5350
5335
  if (r === "selected")
5351
5336
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
5352
- }, jl = ({
5337
+ }, Gl = ({
5353
5338
  mode: e,
5354
5339
  disabled: t,
5355
5340
  variant: r
@@ -5379,7 +5364,7 @@ const Pl = "av-bubble", ba = "av-button", xt = "icon", kn = "button", lr = "link
5379
5364
  });
5380
5365
  if (r === "selected")
5381
5366
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
5382
- }, ql = ({
5367
+ }, jl = ({
5383
5368
  mode: e,
5384
5369
  noBorder: t,
5385
5370
  variant: r
@@ -5409,14 +5394,14 @@ const Pl = "av-bubble", ba = "av-button", xt = "icon", kn = "button", lr = "link
5409
5394
  });
5410
5395
  if (r === "selected")
5411
5396
  return "border border-border-selected-dark";
5412
- }, Kl = ({
5397
+ }, ql = ({
5413
5398
  focusMode: e
5414
5399
  }) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
5415
5400
  "focus:outline-focus-dark": e === "dark",
5416
5401
  "focus:outline-focus-light": e === "light",
5417
5402
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
5418
5403
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
5419
- }), Yl = ({
5404
+ }), Kl = ({
5420
5405
  mode: e,
5421
5406
  raw: t,
5422
5407
  iconClassName: r
@@ -5428,11 +5413,11 @@ const Pl = "av-bubble", ba = "av-button", xt = "icon", kn = "button", lr = "link
5428
5413
  "dark:text-copy-accent-dark": e === "system"
5429
5414
  },
5430
5415
  r
5431
- ), Jl = ({
5416
+ ), Yl = ({
5432
5417
  animated: e
5433
5418
  }) => f({
5434
5419
  "transition-opacity duration-300 ease-in": e
5435
- }), Zl = ({
5420
+ }), Jl = ({
5436
5421
  type: e,
5437
5422
  className: t,
5438
5423
  raw: r,
@@ -5452,15 +5437,15 @@ const Pl = "av-bubble", ba = "av-button", xt = "icon", kn = "button", lr = "link
5452
5437
  animated: y
5453
5438
  }) => (g || (g = "primary"), r ? f(ba, t) : f(
5454
5439
  ba,
5455
- Hl({
5440
+ Ul({
5456
5441
  mode: a,
5457
5442
  variant: g,
5458
5443
  noBackground: m,
5459
5444
  noTruncate: u
5460
5445
  }),
5461
- Fl({ mode: a, noBackground: m, variant: g }),
5462
- Wl({ radius: b }),
5463
- zl({
5446
+ Hl({ mode: a, noBackground: m, variant: g }),
5447
+ Fl({ radius: b }),
5448
+ Pl({
5464
5449
  type: e,
5465
5450
  size: s,
5466
5451
  labelRight: d,
@@ -5468,11 +5453,11 @@ const Pl = "av-bubble", ba = "av-button", xt = "icon", kn = "button", lr = "link
5468
5453
  align: p,
5469
5454
  animated: y
5470
5455
  }),
5471
- Ul({ type: e, size: s, labelRight: d, labelLeft: h }),
5472
- ql({ mode: a, variant: g, noBorder: c }),
5473
- Kl({ focusMode: n }),
5456
+ zl({ type: e, size: s, labelRight: d, labelLeft: h }),
5457
+ jl({ mode: a, variant: g, noBorder: c }),
5458
+ ql({ focusMode: n }),
5459
+ Wl({ mode: a, variant: g, disabled: o }),
5474
5460
  Gl({ mode: a, variant: g, disabled: o }),
5475
- jl({ mode: a, variant: g, disabled: o }),
5476
5461
  {
5477
5462
  "w-full": i,
5478
5463
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -5481,30 +5466,30 @@ const Pl = "av-bubble", ba = "av-button", xt = "icon", kn = "button", lr = "link
5481
5466
  "transition-[width] duration-300 ease-in-out": e === xt && y
5482
5467
  }),
5483
5468
  t
5484
- )), Xl = (e, t, r) => {
5469
+ )), Zl = (e, t, r) => {
5485
5470
  var a;
5486
5471
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
5487
- }, wn = U.forwardRef((e, t) => {
5472
+ }, kn = U.forwardRef((e, t) => {
5488
5473
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
5489
5474
  return /* @__PURE__ */ l(
5490
5475
  "button",
5491
5476
  {
5492
5477
  ref: t,
5493
5478
  onClick: (o) => {
5494
- Xl(o, a, r);
5479
+ Zl(o, a, r);
5495
5480
  },
5496
5481
  ...n
5497
5482
  }
5498
5483
  );
5499
5484
  });
5500
- wn.displayName = "BaseButton";
5501
- function Ql() {
5485
+ kn.displayName = "BaseButton";
5486
+ function Xl() {
5502
5487
  const e = T(!1);
5503
5488
  return M(() => (e.current = !0, () => {
5504
5489
  e.current = !1;
5505
5490
  }), []), Z(() => e.current, []);
5506
5491
  }
5507
- function ec(e) {
5492
+ function Ql(e) {
5508
5493
  return oe(() => e.every((t) => t == null) ? () => {
5509
5494
  } : (t) => {
5510
5495
  e.forEach((r) => {
@@ -5512,7 +5497,7 @@ function ec(e) {
5512
5497
  });
5513
5498
  }, e);
5514
5499
  }
5515
- const tc = {
5500
+ const ec = {
5516
5501
  x: 0,
5517
5502
  y: 0,
5518
5503
  width: 0,
@@ -5523,7 +5508,7 @@ const tc = {
5523
5508
  right: 0
5524
5509
  };
5525
5510
  function Ut(e) {
5526
- const t = Ql(), r = T(0), a = T(null), [n, o] = G(tc), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
5511
+ const t = Xl(), r = T(0), a = T(null), [n, o] = W(ec), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
5527
5512
  const c = s[0];
5528
5513
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
5529
5514
  a.current && t() && o(c.contentRect);
@@ -5533,21 +5518,21 @@ function Ut(e) {
5533
5518
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
5534
5519
  }), [i, e]), [a, n];
5535
5520
  }
5536
- const rc = {
5521
+ const tc = {
5537
5522
  small: 24,
5538
5523
  // w-6
5539
5524
  medium: 32,
5540
5525
  // w-8
5541
5526
  large: 48
5542
5527
  // w-12
5543
- }, ac = {
5528
+ }, rc = {
5544
5529
  small: 8 * 2,
5545
5530
  // px-2 x 2
5546
5531
  medium: 12 * 2,
5547
5532
  // px-3 x 2
5548
5533
  large: 16 * 2
5549
5534
  // px-4 x 2
5550
- }, nc = 2, Sr = U.forwardRef(
5535
+ }, ac = 2, Sr = U.forwardRef(
5551
5536
  ({
5552
5537
  children: e,
5553
5538
  disabled: t = !1,
@@ -5571,7 +5556,7 @@ const rc = {
5571
5556
  animated: k = !1,
5572
5557
  ...N
5573
5558
  }, _) => {
5574
- const I = Zl({
5559
+ const I = Jl({
5575
5560
  type: xt,
5576
5561
  mode: r,
5577
5562
  focusMode: a,
@@ -5588,11 +5573,11 @@ const rc = {
5588
5573
  radius: y,
5589
5574
  variant: v,
5590
5575
  animated: k
5591
- }), $ = Yl({ mode: r, raw: s, iconClassName: x }), E = Jl({ animated: k }), [w, S] = Ut(), [C, B] = Ut(), [A, O] = Ut(), V = T(0), R = T(null), H = ec([_, R]);
5576
+ }), $ = Kl({ mode: r, raw: s, iconClassName: x }), E = Yl({ animated: k }), [w, S] = Ut(), [C, B] = Ut(), [A, O] = Ut(), V = T(0), R = T(null), H = Ql([_, R]);
5592
5577
  return pe(() => {
5593
- A && A.current && k && (V.current = O.width + ac[m] + (c ? 0 : nc));
5578
+ A && A.current && k && (V.current = O.width + rc[m] + (c ? 0 : ac));
5594
5579
  }, [O, A, m, c, k]), pe(() => {
5595
- R && R.current && k && (g && w && S.width > 0 ? (w.current && (w.current.style.opacity = "100"), R.current.style.width = `${S.width + V.current}px`) : u && B.width > 0 ? (C.current && (C.current.style.opacity = "100"), R.current.style.width = `${B.width + V.current}px`) : (w.current && (w.current.style.opacity = "0"), C.current && (C.current.style.opacity = "0"), R.current.style.width = `${rc[m]}px`));
5580
+ R && R.current && k && (g && w && S.width > 0 ? (w.current && (w.current.style.opacity = "100"), R.current.style.width = `${S.width + V.current}px`) : u && B.width > 0 ? (C.current && (C.current.style.opacity = "100"), R.current.style.width = `${B.width + V.current}px`) : (w.current && (w.current.style.opacity = "0"), C.current && (C.current.style.opacity = "0"), R.current.style.width = `${tc[m]}px`));
5596
5581
  }, [
5597
5582
  S,
5598
5583
  g,
@@ -5603,7 +5588,7 @@ const rc = {
5603
5588
  m,
5604
5589
  k
5605
5590
  ]), /* @__PURE__ */ L(
5606
- wn,
5591
+ kn,
5607
5592
  {
5608
5593
  ref: H,
5609
5594
  className: I,
@@ -5655,7 +5640,7 @@ try {
5655
5640
  });
5656
5641
  } catch {
5657
5642
  }
5658
- const oc = U.forwardRef(
5643
+ const nc = U.forwardRef(
5659
5644
  ({
5660
5645
  children: e,
5661
5646
  mode: t = "system",
@@ -5693,8 +5678,8 @@ const oc = U.forwardRef(
5693
5678
  ) });
5694
5679
  }
5695
5680
  );
5696
- oc.displayName = "ButtonSort";
5697
- const xn = ({
5681
+ nc.displayName = "ButtonSort";
5682
+ const wn = ({
5698
5683
  children: e,
5699
5684
  fill: t,
5700
5685
  viewBox: r,
@@ -5737,14 +5722,14 @@ try {
5737
5722
  });
5738
5723
  } catch {
5739
5724
  }
5740
- const ic = ({
5725
+ const oc = ({
5741
5726
  className: e,
5742
5727
  viewBox: t,
5743
5728
  title: r,
5744
5729
  monotone: a,
5745
5730
  ...n
5746
5731
  }) => /* @__PURE__ */ L(
5747
- xn,
5732
+ wn,
5748
5733
  {
5749
5734
  defaultViewBox: "0 0 448 512",
5750
5735
  size: "size-5",
@@ -5763,14 +5748,14 @@ const ic = ({
5763
5748
  /* @__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" })
5764
5749
  ]
5765
5750
  }
5766
- ), sc = ({
5751
+ ), ic = ({
5767
5752
  className: e,
5768
5753
  viewBox: t,
5769
5754
  title: r,
5770
5755
  monotone: a,
5771
5756
  ...n
5772
5757
  }) => /* @__PURE__ */ l(
5773
- xn,
5758
+ wn,
5774
5759
  {
5775
5760
  defaultViewBox: "0 0 512 512",
5776
5761
  size: "size-5",
@@ -5794,30 +5779,30 @@ try {
5794
5779
  });
5795
5780
  } catch {
5796
5781
  }
5797
- const lc = ({
5782
+ const sc = ({
5798
5783
  kind: e,
5799
5784
  noMaxWidth: t
5800
5785
  }) => f("p-4", {
5801
5786
  "max-w-xs sm:max-w-md md:max-w-2xl": !t,
5802
5787
  "lg:max-w-3xl": e === "left" && !t
5803
- }), cc = ({ kind: e }) => f({
5788
+ }), lc = ({ kind: e }) => f({
5804
5789
  "bg-surface-lighter dark:bg-surface-dark": e === "left",
5805
5790
  "bg-surface-accent": e === "right"
5806
- }), dc = ({ kind: e }) => f(
5791
+ }), cc = ({ kind: e }) => f(
5807
5792
  "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",
5808
5793
  {
5809
5794
  "text-copy-lighter": e === "right"
5810
5795
  }
5811
- ), uc = ({ kind: e }) => f("rounded-b-xl", {
5796
+ ), dc = ({ kind: e }) => f("rounded-b-xl", {
5812
5797
  "rounded-tr-xl": e === "left",
5813
5798
  "rounded-tl-xl": e === "right"
5814
- }), mc = ({
5799
+ }), uc = ({
5815
5800
  kind: e,
5816
5801
  className: t,
5817
5802
  noMaxWidth: r
5818
5803
  }) => {
5819
5804
  const a = f(
5820
- Pl,
5805
+ Vl,
5821
5806
  "flex items-start",
5822
5807
  {
5823
5808
  "flex-row-reverse": e === "right"
@@ -5825,10 +5810,10 @@ const lc = ({
5825
5810
  t
5826
5811
  ), n = f(
5827
5812
  "flex flex-col empty:hidden",
5828
- lc({ kind: e, noMaxWidth: r }),
5829
- dc({ kind: e }),
5813
+ sc({ kind: e, noMaxWidth: r }),
5830
5814
  cc({ kind: e }),
5831
- uc({ kind: e })
5815
+ lc({ kind: e }),
5816
+ dc({ kind: e })
5832
5817
  ), o = "pr-2 pt-1 text-end text-xs text-copy-light", i = f("flex flex-col-reverse gap-2 sm:flex-row", {
5833
5818
  "ml-2": e === "left",
5834
5819
  "mr-2": e === "right"
@@ -5839,7 +5824,7 @@ const lc = ({
5839
5824
  footer: o,
5840
5825
  copyButton: i
5841
5826
  };
5842
- }, fc = ({
5827
+ }, mc = ({
5843
5828
  children: e,
5844
5829
  kind: t = "left",
5845
5830
  className: r,
@@ -5850,7 +5835,7 @@ const lc = ({
5850
5835
  copyToClipboardMode: s = "system",
5851
5836
  noMaxWidth: c = !1
5852
5837
  }) => {
5853
- const [d, h] = G(!1), m = mc({ kind: t, className: r, noMaxWidth: c }), g = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), u = () => {
5838
+ const [d, h] = W(!1), m = uc({ kind: t, className: r, noMaxWidth: c }), g = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), u = () => {
5854
5839
  h(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
5855
5840
  };
5856
5841
  return M(() => {
@@ -5881,11 +5866,11 @@ const lc = ({
5881
5866
  label: d ? "Copied to clipboard" : "Copy to clipboard",
5882
5867
  onClick: u,
5883
5868
  disabled: d,
5884
- children: d ? /* @__PURE__ */ l(ic, { size: "size-3" }) : /* @__PURE__ */ l(sc, { size: "size-3" })
5869
+ children: d ? /* @__PURE__ */ l(oc, { size: "size-3" }) : /* @__PURE__ */ l(ic, { size: "size-3" })
5885
5870
  }
5886
5871
  ) })
5887
5872
  ] });
5888
- }, ka = "av-button", _t = "icon", Cr = "button", cr = "link", hc = ({
5873
+ }, ka = "av-button", _t = "icon", Cr = "button", cr = "link", fc = ({
5889
5874
  type: e,
5890
5875
  size: t,
5891
5876
  labelRight: r,
@@ -5921,7 +5906,7 @@ const lc = ({
5921
5906
  "h-12": t === "large" && o && (r || a)
5922
5907
  });
5923
5908
  }
5924
- }, gc = ({
5909
+ }, hc = ({
5925
5910
  type: e,
5926
5911
  size: t,
5927
5912
  labelRight: r,
@@ -5944,7 +5929,7 @@ const lc = ({
5944
5929
  [i]: t === "large" && (r || a)
5945
5930
  });
5946
5931
  }
5947
- }, pc = ({
5932
+ }, gc = ({
5948
5933
  mode: e,
5949
5934
  noBackground: t,
5950
5935
  noTruncate: r,
@@ -5980,7 +5965,7 @@ const lc = ({
5980
5965
  return f("not-prose text-copy-lighter", {
5981
5966
  truncate: !r
5982
5967
  });
5983
- }, yc = ({
5968
+ }, pc = ({
5984
5969
  mode: e,
5985
5970
  noBackground: t,
5986
5971
  variant: r
@@ -6010,13 +5995,13 @@ const lc = ({
6010
5995
  if (r === "selected")
6011
5996
  return "bg-action-selected-dark";
6012
5997
  }
6013
- }, bc = ({
5998
+ }, yc = ({
6014
5999
  radius: e
6015
6000
  }) => f({
6016
6001
  "rounded-full": e === "large",
6017
6002
  "rounded-md": e === "medium",
6018
6003
  "rounded-sm": e === "small"
6019
- }), vc = ({
6004
+ }), bc = ({
6020
6005
  mode: e,
6021
6006
  disabled: t,
6022
6007
  variant: r
@@ -6046,7 +6031,7 @@ const lc = ({
6046
6031
  });
6047
6032
  if (r === "selected")
6048
6033
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
6049
- }, kc = ({
6034
+ }, vc = ({
6050
6035
  mode: e,
6051
6036
  disabled: t,
6052
6037
  variant: r
@@ -6076,7 +6061,7 @@ const lc = ({
6076
6061
  });
6077
6062
  if (r === "selected")
6078
6063
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
6079
- }, wc = ({
6064
+ }, kc = ({
6080
6065
  mode: e,
6081
6066
  noBorder: t,
6082
6067
  variant: r
@@ -6106,14 +6091,14 @@ const lc = ({
6106
6091
  });
6107
6092
  if (r === "selected")
6108
6093
  return "border border-border-selected-dark";
6109
- }, xc = ({
6094
+ }, wc = ({
6110
6095
  focusMode: e
6111
6096
  }) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
6112
6097
  "focus:outline-focus-dark": e === "dark",
6113
6098
  "focus:outline-focus-light": e === "light",
6114
6099
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
6115
6100
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
6116
- }), _c = ({
6101
+ }), xc = ({
6117
6102
  mode: e,
6118
6103
  raw: t,
6119
6104
  iconClassName: r
@@ -6125,11 +6110,11 @@ const lc = ({
6125
6110
  "dark:text-copy-accent-dark": e === "system"
6126
6111
  },
6127
6112
  r
6128
- ), Ec = ({
6113
+ ), _c = ({
6129
6114
  animated: e
6130
6115
  }) => f({
6131
6116
  "transition-opacity duration-300 ease-in": e
6132
- }), _n = ({
6117
+ }), xn = ({
6133
6118
  type: e,
6134
6119
  className: t,
6135
6120
  raw: r,
@@ -6149,15 +6134,15 @@ const lc = ({
6149
6134
  animated: y
6150
6135
  }) => (g || (g = "primary"), r ? f(ka, t) : f(
6151
6136
  ka,
6152
- pc({
6137
+ gc({
6153
6138
  mode: a,
6154
6139
  variant: g,
6155
6140
  noBackground: m,
6156
6141
  noTruncate: u
6157
6142
  }),
6158
- yc({ mode: a, noBackground: m, variant: g }),
6159
- bc({ radius: b }),
6160
- hc({
6143
+ pc({ mode: a, noBackground: m, variant: g }),
6144
+ yc({ radius: b }),
6145
+ fc({
6161
6146
  type: e,
6162
6147
  size: s,
6163
6148
  labelRight: d,
@@ -6165,11 +6150,11 @@ const lc = ({
6165
6150
  align: p,
6166
6151
  animated: y
6167
6152
  }),
6168
- gc({ type: e, size: s, labelRight: d, labelLeft: h }),
6169
- wc({ mode: a, variant: g, noBorder: c }),
6170
- xc({ focusMode: n }),
6153
+ hc({ type: e, size: s, labelRight: d, labelLeft: h }),
6154
+ kc({ mode: a, variant: g, noBorder: c }),
6155
+ wc({ focusMode: n }),
6156
+ bc({ mode: a, variant: g, disabled: o }),
6171
6157
  vc({ mode: a, variant: g, disabled: o }),
6172
- kc({ mode: a, variant: g, disabled: o }),
6173
6158
  {
6174
6159
  "w-full": i,
6175
6160
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -6178,7 +6163,7 @@ const lc = ({
6178
6163
  "transition-[width] duration-300 ease-in-out": e === _t && y
6179
6164
  }),
6180
6165
  t
6181
- )), Tc = (e, t, r) => {
6166
+ )), Ec = (e, t, r) => {
6182
6167
  var a;
6183
6168
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
6184
6169
  }, Nr = U.forwardRef((e, t) => {
@@ -6188,14 +6173,14 @@ const lc = ({
6188
6173
  {
6189
6174
  ref: t,
6190
6175
  onClick: (o) => {
6191
- Tc(o, a, r);
6176
+ Ec(o, a, r);
6192
6177
  },
6193
6178
  ...n
6194
6179
  }
6195
6180
  );
6196
6181
  });
6197
6182
  Nr.displayName = "BaseButton";
6198
- const En = U.forwardRef(
6183
+ const _n = U.forwardRef(
6199
6184
  ({
6200
6185
  children: e,
6201
6186
  disabled: t = !1,
@@ -6211,7 +6196,7 @@ const En = U.forwardRef(
6211
6196
  radius: m = "large",
6212
6197
  ...g
6213
6198
  }, u) => {
6214
- const p = _n({
6199
+ const p = xn({
6215
6200
  type: Cr,
6216
6201
  mode: r,
6217
6202
  focusMode: a,
@@ -6237,14 +6222,14 @@ const En = U.forwardRef(
6237
6222
  );
6238
6223
  }
6239
6224
  );
6240
- En.displayName = "Button";
6241
- function Sc() {
6225
+ _n.displayName = "Button";
6226
+ function Tc() {
6242
6227
  const e = T(!1);
6243
6228
  return M(() => (e.current = !0, () => {
6244
6229
  e.current = !1;
6245
6230
  }), []), Z(() => e.current, []);
6246
6231
  }
6247
- function Cc(e) {
6232
+ function Sc(e) {
6248
6233
  return oe(() => e.every((t) => t == null) ? () => {
6249
6234
  } : (t) => {
6250
6235
  e.forEach((r) => {
@@ -6252,7 +6237,7 @@ function Cc(e) {
6252
6237
  });
6253
6238
  }, e);
6254
6239
  }
6255
- const Nc = {
6240
+ const Cc = {
6256
6241
  x: 0,
6257
6242
  y: 0,
6258
6243
  width: 0,
@@ -6263,7 +6248,7 @@ const Nc = {
6263
6248
  right: 0
6264
6249
  };
6265
6250
  function Ht(e) {
6266
- const t = Sc(), r = T(0), a = T(null), [n, o] = G(Nc), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
6251
+ const t = Tc(), r = T(0), a = T(null), [n, o] = W(Cc), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
6267
6252
  const c = s[0];
6268
6253
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
6269
6254
  a.current && t() && o(c.contentRect);
@@ -6273,21 +6258,21 @@ function Ht(e) {
6273
6258
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
6274
6259
  }), [i, e]), [a, n];
6275
6260
  }
6276
- const Rc = {
6261
+ const Nc = {
6277
6262
  small: 24,
6278
6263
  // w-6
6279
6264
  medium: 32,
6280
6265
  // w-8
6281
6266
  large: 48
6282
6267
  // w-12
6283
- }, Ic = {
6268
+ }, Rc = {
6284
6269
  small: 8 * 2,
6285
6270
  // px-2 x 2
6286
6271
  medium: 12 * 2,
6287
6272
  // px-3 x 2
6288
6273
  large: 16 * 2
6289
6274
  // px-4 x 2
6290
- }, Ac = 2, Tn = U.forwardRef(
6275
+ }, Ic = 2, En = U.forwardRef(
6291
6276
  ({
6292
6277
  children: e,
6293
6278
  disabled: t = !1,
@@ -6311,7 +6296,7 @@ const Rc = {
6311
6296
  animated: k = !1,
6312
6297
  ...N
6313
6298
  }, _) => {
6314
- const I = _n({
6299
+ const I = xn({
6315
6300
  type: _t,
6316
6301
  mode: r,
6317
6302
  focusMode: a,
@@ -6328,11 +6313,11 @@ const Rc = {
6328
6313
  radius: y,
6329
6314
  variant: v,
6330
6315
  animated: k
6331
- }), $ = _c({ mode: r, raw: s, iconClassName: x }), E = Ec({ animated: k }), [w, S] = Ht(), [C, B] = Ht(), [A, O] = Ht(), V = T(0), R = T(null), H = Cc([_, R]);
6316
+ }), $ = xc({ mode: r, raw: s, iconClassName: x }), E = _c({ animated: k }), [w, S] = Ht(), [C, B] = Ht(), [A, O] = Ht(), V = T(0), R = T(null), H = Sc([_, R]);
6332
6317
  return pe(() => {
6333
- A && A.current && k && (V.current = O.width + Ic[m] + (c ? 0 : Ac));
6318
+ A && A.current && k && (V.current = O.width + Rc[m] + (c ? 0 : Ic));
6334
6319
  }, [O, A, m, c, k]), pe(() => {
6335
- R && R.current && k && (g && w && S.width > 0 ? (w.current && (w.current.style.opacity = "100"), R.current.style.width = `${S.width + V.current}px`) : u && B.width > 0 ? (C.current && (C.current.style.opacity = "100"), R.current.style.width = `${B.width + V.current}px`) : (w.current && (w.current.style.opacity = "0"), C.current && (C.current.style.opacity = "0"), R.current.style.width = `${Rc[m]}px`));
6320
+ R && R.current && k && (g && w && S.width > 0 ? (w.current && (w.current.style.opacity = "100"), R.current.style.width = `${S.width + V.current}px`) : u && B.width > 0 ? (C.current && (C.current.style.opacity = "100"), R.current.style.width = `${B.width + V.current}px`) : (w.current && (w.current.style.opacity = "0"), C.current && (C.current.style.opacity = "0"), R.current.style.width = `${Nc[m]}px`));
6336
6321
  }, [
6337
6322
  S,
6338
6323
  g,
@@ -6381,7 +6366,7 @@ const Rc = {
6381
6366
  label: r,
6382
6367
  labelInnerClass: a
6383
6368
  }) => /* @__PURE__ */ l("span", { ref: e, className: t, children: r && /* @__PURE__ */ l("span", { className: a, children: r }) });
6384
- Tn.displayName = "ButtonIcon";
6369
+ En.displayName = "ButtonIcon";
6385
6370
  /*!
6386
6371
  @versini/ui-button v4.2.4
6387
6372
  © 2025 gizmette.com
@@ -6395,7 +6380,7 @@ try {
6395
6380
  });
6396
6381
  } catch {
6397
6382
  }
6398
- const $c = U.forwardRef(
6383
+ const Ac = U.forwardRef(
6399
6384
  ({
6400
6385
  children: e,
6401
6386
  mode: t = "system",
@@ -6421,7 +6406,7 @@ const $c = U.forwardRef(
6421
6406
  }
6422
6407
  ) : "";
6423
6408
  return /* @__PURE__ */ l("div", { className: i, children: /* @__PURE__ */ l(
6424
- Tn,
6409
+ En,
6425
6410
  {
6426
6411
  className: f("justify-center", r),
6427
6412
  ref: o,
@@ -6433,10 +6418,10 @@ const $c = U.forwardRef(
6433
6418
  ) });
6434
6419
  }
6435
6420
  );
6436
- $c.displayName = "ButtonSort";
6437
- const Lc = 200, Oc = ({
6421
+ Ac.displayName = "ButtonSort";
6422
+ const $c = 200, Lc = ({
6438
6423
  string: e,
6439
- idealLength: t = Lc
6424
+ idealLength: t = $c
6440
6425
  }) => {
6441
6426
  if (e.length <= t)
6442
6427
  return { string: e, isTruncated: !1 };
@@ -6447,23 +6432,23 @@ const Lc = 200, Oc = ({
6447
6432
  string: e.slice(0, t + r),
6448
6433
  isTruncated: !0
6449
6434
  };
6450
- }, Bc = ({
6435
+ }, Oc = ({
6451
6436
  children: e,
6452
6437
  length: t = 200,
6453
6438
  mode: r = "system",
6454
6439
  focusMode: a = "system"
6455
6440
  }) => {
6456
- const [n, o] = G(!1);
6441
+ const [n, o] = W(!1);
6457
6442
  if (typeof e != "string")
6458
6443
  return e;
6459
- const { string: i, isTruncated: s } = Oc({
6444
+ const { string: i, isTruncated: s } = Lc({
6460
6445
  string: e,
6461
6446
  idealLength: t
6462
6447
  });
6463
6448
  return /* @__PURE__ */ L("span", { style: { wordBreak: "break-word" }, children: [
6464
6449
  n ? e : i,
6465
6450
  s && /* @__PURE__ */ l(
6466
- En,
6451
+ _n,
6467
6452
  {
6468
6453
  mode: r,
6469
6454
  focusMode: a,
@@ -6490,19 +6475,19 @@ try {
6490
6475
  });
6491
6476
  } catch {
6492
6477
  }
6493
- const Mc = ({ content: e }) => /* @__PURE__ */ l(
6494
- fc,
6478
+ const Bc = ({ content: e }) => /* @__PURE__ */ l(
6479
+ mc,
6495
6480
  {
6496
6481
  kind: "right",
6497
6482
  copyToClipboard: e,
6498
6483
  copyToClipboardFocusMode: "light",
6499
6484
  className: "mt-3",
6500
- children: /* @__PURE__ */ l(Bc, { mode: "light", focusMode: "light", children: e })
6485
+ children: /* @__PURE__ */ l(Oc, { mode: "light", focusMode: "light", children: e })
6501
6486
  }
6502
6487
  ), xa = Na(
6503
6488
  () => import(
6504
6489
  /* webpackChunkName: "LazyMessageAssistant" */
6505
- "./ChatBubbleAssistant.Dp-agOTo.js"
6490
+ "./ChatBubbleAssistant.B02s8tZ4.js"
6506
6491
  ).then((e) => e.ChatBubbleAssistant)
6507
6492
  ), _a = U.memo(
6508
6493
  ({
@@ -6518,12 +6503,12 @@ const Mc = ({ content: e }) => /* @__PURE__ */ l(
6518
6503
  processingTime: a,
6519
6504
  content: t
6520
6505
  }
6521
- ) }) : e === Sa && t ? /* @__PURE__ */ l(Mc, { content: t }) : n ? /* @__PURE__ */ l(Wt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(xa, { loading: !0 }) }) : null
6522
- ), Dc = () => {
6506
+ ) }) : e === Sa && t ? /* @__PURE__ */ l(Bc, { content: t }) : n ? /* @__PURE__ */ l(Wt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(xa, { loading: !0 }) }) : null
6507
+ ), Mc = () => {
6523
6508
  var r;
6524
6509
  const {
6525
6510
  state: { messages: e, loading: t }
6526
- } = W(ie);
6511
+ } = G(ie);
6527
6512
  return /* @__PURE__ */ l("div", { className: "space-y-6 mt-2 @container", children: /* @__PURE__ */ L("div", { children: [
6528
6513
  e && e.length > 0 && e.map((a, n) => {
6529
6514
  const { role: o, content: i, messageId: s, name: c, processingTime: d } = a, h = s ? `${s}-${o}` : `${n}-${o}`;
@@ -6540,40 +6525,40 @@ const Mc = ({ content: e }) => /* @__PURE__ */ l(
6540
6525
  }),
6541
6526
  ((r = e == null ? void 0 : e.at(-1)) == null ? void 0 : r.role) === "user" && /* @__PURE__ */ l(_a, { loading: t })
6542
6527
  ] }) });
6543
- }, Vc = () => {
6544
- const { isAuthenticated: e } = Le(), { ref: t, inViewport: r } = ko(), a = zn({
6528
+ }, Dc = () => {
6529
+ const { isAuthenticated: e } = Le(), { ref: t, inViewport: r } = vo(), a = Pn({
6545
6530
  isAuthenticated: e,
6546
6531
  extraClass: "rounded-b-md"
6547
6532
  });
6548
6533
  return /* @__PURE__ */ L(_e, { children: [
6549
6534
  /* @__PURE__ */ L("div", { className: a, children: [
6550
- /* @__PURE__ */ l(Un, {}),
6551
- /* @__PURE__ */ l(Dc, {}),
6535
+ /* @__PURE__ */ l(zn, {}),
6536
+ /* @__PURE__ */ l(Mc, {}),
6552
6537
  /* @__PURE__ */ l("div", { ref: t })
6553
6538
  ] }),
6554
- /* @__PURE__ */ l(Nl, { show: !r })
6539
+ /* @__PURE__ */ l(Cl, { show: !r })
6555
6540
  ] });
6556
- }, Pc = Na(
6541
+ }, Vc = Na(
6557
6542
  () => import(
6558
6543
  /* webpackChunkName: "LazyHeader" */
6559
- "./HeaderEntry.BwH4Isxn.js"
6544
+ "./HeaderEntry.rgTf-RhA.js"
6560
6545
  )
6561
6546
  );
6562
- function Sn({ isComponent: e = !1 }) {
6547
+ function Tn({ isComponent: e = !1 }) {
6563
6548
  const { user: t, getAccessToken: r } = Le(), [a] = Gt({
6564
- key: Ft + Fn,
6549
+ key: Ft + Hn,
6565
6550
  initialValue: ""
6566
6551
  }), [n] = Gt({
6567
- key: Ft + Wn,
6552
+ key: Ft + Fn,
6568
6553
  initialValue: Ue.ASC
6569
- }), [o, i] = Nt(ci, {
6554
+ }), [o, i] = Nt(li, {
6570
6555
  searchString: a,
6571
6556
  sortedCell: "timestamp",
6572
6557
  sortDirection: n
6573
- }), [s, c] = Nt(di, {
6558
+ }), [s, c] = Nt(ci, {
6574
6559
  prompt: "",
6575
6560
  lastTriggeredTimestamp: 0
6576
- }), [d, h] = Nt(Qi, {
6561
+ }), [d, h] = Nt(Zi, {
6577
6562
  id: hr(),
6578
6563
  model: "",
6579
6564
  provider: "",
@@ -6585,7 +6570,7 @@ function Sn({ isComponent: e = !1 }) {
6585
6570
  restoring: !1,
6586
6571
  lastTriggeredTimestamp: 0
6587
6572
  });
6588
- Ji({
6573
+ Ki({
6589
6574
  keys: [
6590
6575
  t == null ? void 0 : t.username,
6591
6576
  o.searchString,
@@ -6593,7 +6578,7 @@ function Sn({ isComponent: e = !1 }) {
6593
6578
  0
6594
6579
  ],
6595
6580
  getAccessToken: r
6596
- }), Zi({ getAccessToken: r });
6581
+ }), Yi({ getAccessToken: r });
6597
6582
  const { data: m } = br({
6598
6583
  keys: [t == null ? void 0 : t.username],
6599
6584
  getAccessToken: r
@@ -6612,7 +6597,7 @@ function Sn({ isComponent: e = !1 }) {
6612
6597
  }
6613
6598
  });
6614
6599
  }, [m]), /* @__PURE__ */ l(
6615
- tn.Provider,
6600
+ es.Provider,
6616
6601
  {
6617
6602
  value: {
6618
6603
  state: o,
@@ -6628,7 +6613,7 @@ function Sn({ isComponent: e = !1 }) {
6628
6613
  value: { state: d, dispatch: h },
6629
6614
  children: [
6630
6615
  /* @__PURE__ */ l(
6631
- ho,
6616
+ fo,
6632
6617
  {
6633
6618
  noColors: !0,
6634
6619
  noMargin: !0,
@@ -6637,21 +6622,21 @@ function Sn({ isComponent: e = !1 }) {
6637
6622
  className: Hr({
6638
6623
  extraClass: "mt-5"
6639
6624
  }),
6640
- children: /* @__PURE__ */ l(Wt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(Pc, { isComponent: e }) })
6625
+ children: /* @__PURE__ */ l(Wt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(Vc, { isComponent: e }) })
6641
6626
  }
6642
6627
  ),
6643
6628
  /* @__PURE__ */ l(
6644
- Hn,
6629
+ Un,
6645
6630
  {
6646
6631
  className: Hr({
6647
6632
  extraClass: "max-h-[calc(100svh_-_250px)]"
6648
6633
  }),
6649
6634
  noMargin: !0,
6650
6635
  noPadding: !0,
6651
- children: /* @__PURE__ */ l(Vc, {})
6636
+ children: /* @__PURE__ */ l(Dc, {})
6652
6637
  }
6653
6638
  ),
6654
- /* @__PURE__ */ l(Vl, { isComponent: e })
6639
+ /* @__PURE__ */ l(Dl, { isComponent: e })
6655
6640
  ]
6656
6641
  }
6657
6642
  )
@@ -6660,38 +6645,38 @@ function Sn({ isComponent: e = !1 }) {
6660
6645
  }
6661
6646
  );
6662
6647
  }
6663
- Sn.displayName = "App";
6664
- const ed = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Sn }, Symbol.toStringTag, { value: "Module" }));
6648
+ Tn.displayName = "App";
6649
+ const ed = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Tn }, Symbol.toStringTag, { value: "Module" }));
6665
6650
  export {
6666
- Kc as $e,
6651
+ qc as $e,
6667
6652
  ed as App,
6668
6653
  Ue as B,
6669
- Xi as CHAT_RESTORE,
6654
+ Ji as CHAT_RESTORE,
6670
6655
  ie as ChatContext,
6671
- _l as ConfirmationPanel,
6672
- Jc as De,
6656
+ xl as ConfirmationPanel,
6657
+ Yc as De,
6673
6658
  Gt as E,
6674
- Yc as Fe,
6675
- tn as HistoryContext,
6676
- ni as Le,
6659
+ Kc as Fe,
6660
+ es as HistoryContext,
6661
+ ai as Le,
6677
6662
  Qc as P,
6678
6663
  ct as R,
6679
- fc as Re,
6664
+ mc as Re,
6680
6665
  Be as SERVICE_TYPES,
6681
- Gc as Ue,
6682
- qc as We,
6683
- xl as Ze,
6666
+ Wc as Ue,
6667
+ jc as We,
6668
+ wl as Ze,
6684
6669
  Ve as _e,
6685
- No as i,
6686
- jc as je,
6687
- lo as m,
6670
+ Co as i,
6671
+ Gc as je,
6672
+ so as m,
6688
6673
  Tr as me,
6689
6674
  Fr as p,
6690
6675
  yr as serviceCall,
6691
- ji as setNewProvider,
6692
- Yi as useChatsHistory,
6676
+ Gi as setNewProvider,
6677
+ Zc as useChatsHistory,
6693
6678
  Xc as useServerCapabilities,
6694
- Zc as useUserChatStats,
6679
+ Jc as useUserChatStats,
6695
6680
  br as useUserPreferences,
6696
6681
  Wr as z
6697
6682
  };