@versini/sassysaint 7.1.2 → 7.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  import { jsx as l, jsxs as L, Fragment as _e } from "react/jsx-runtime";
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.DdXdvpdr.js";
2
+ import { f as ye, ACTION_SORT as In, ACTION_SEARCH as An, ACTION_RESET_PROMPT as Ta, ACTION_TOGGLE_PROMPT as Sa, ROLE_ASSISTANT as Fe, DEFAULT_AI_PROVIDER as ot, isProbablyiPhone as Ft, re as $e, DEFAULT_ICON_ACTION_SIZE as ge, L as $n, j as Dr, C as Pr, LOCAL_STORAGE_PREFIX as Wt, 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 zr, ERROR_MESSAGE as Ur, CLIPBOARD_PROMPT as Hr, TYPE_QUESTION as Pn, ROLE_USER as Ca, FOOTER_DISCLAIMER as Vn, isProbablyMobile as zn, getMessageContaintWrapperClass as Un, Logo as Hn, getMainPaddingClass as Fr, r as Fn, LOCAL_STORAGE_SEARCH as Wn, LOCAL_STORAGE_SORT as Gn } from "./index.Bgfx5ihk.js";
3
3
  import m from "clsx";
4
4
  import * as J from "react";
5
- import U, { useEffect as M, useRef as S, useState as 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
- const Fr = ({
5
+ import U, { useEffect as M, useRef as S, useState as W, useCallback as Z, useSyncExternalStore as jn, useMemo as oe, useId as ur, useLayoutEffect as pe, useContext as G, createContext as qn, useDebugValue as Kn, forwardRef as Na, lazy as Ra, Suspense as Gt, useReducer as Nt } from "react";
6
+ import { useMergeRefs as mr, FloatingPortal as Ia, FloatingOverlay as Yn, FloatingFocusManager as Aa, useFloating as $a, useClick as La, useDismiss as Oa, useRole as Ba, useInteractions as Ma, useFloatingTree as Da, useFloatingNodeId as Jn, useListItem as Pa, offset as Zn, flip as Xn, shift as Qn, autoUpdate as eo, useListNavigation as to, useTypeahead as ro, FloatingNode as ao, FloatingList as no, FloatingTree as oo } from "@floating-ui/react";
7
+ const Wr = ({
8
8
  className: e,
9
9
  viewBox: t,
10
10
  title: r,
@@ -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
- ), no = ({
24
+ ), io = ({
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
- ), oo = ({
50
+ ), so = ({
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
- ), io = ({
73
+ ), lo = ({
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
- ), so = ({
99
+ ), co = ({
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
- ), lo = ({
125
+ ), uo = ({
126
126
  className: e,
127
127
  viewBox: t,
128
128
  title: r,
@@ -148,7 +148,7 @@ const Fr = ({
148
148
  /* @__PURE__ */ l("path", { d: "M224 32c53 0 96 43 96 96v64H128v-64c0-53 43-96 96-96M96 128v64H80c-44.2 0-80 35.8-80 80v160c0 44.2 35.8 80 80 80h288c44.2 0 80-35.8 80-80V272c0-44.2-35.8-80-80-80h-16v-64C352 57.3 294.7 0 224 0S96 57.3 96 128m-16 96h288c26.5 0 48 21.5 48 48v160c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48m160 88c0-8.8-7.2-16-16-16s-16 7.2-16 16v80c0 8.8 7.2 16 16 16s16-7.2 16-16z" })
149
149
  ]
150
150
  }
151
- ), Wr = ({
151
+ ), Gr = ({
152
152
  className: e,
153
153
  viewBox: t,
154
154
  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
- ), co = ({
168
+ ), mo = ({
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
- ), uo = ({
194
+ ), fo = ({
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 mo = "av-header", fo = ({
234
+ const ho = "av-header", go = ({
235
235
  children: e,
236
236
  className: t,
237
237
  raw: r = !1,
@@ -243,7 +243,7 @@ const mo = "av-header", fo = ({
243
243
  noPadding: c = !1
244
244
  }) => {
245
245
  const d = m(
246
- mo,
246
+ ho,
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 mo = "av-header", fo = ({
265
265
  });
266
266
  return /* @__PURE__ */ l("header", { className: d, children: /* @__PURE__ */ l("div", { className: f, children: e }) });
267
267
  };
268
- function ho(e) {
268
+ function po(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 ho(e) {
278
278
  key: n
279
279
  };
280
280
  }
281
- function go(e, t) {
281
+ function yo(e, t) {
282
282
  const { alt: r, ctrl: a, meta: n, mod: o, shift: i, key: s } = e, { altKey: c, ctrlKey: d, metaKey: f, shiftKey: u, key: h } = t;
283
283
  if (r !== c)
284
284
  return !1;
@@ -290,9 +290,9 @@ function go(e, t) {
290
290
  return i !== u ? !1 : !!(s && (h.toLowerCase() === s.toLowerCase() || t.code.replace("Key", "").toLowerCase() === s.toLowerCase()));
291
291
  }
292
292
  function Va(e) {
293
- return (t) => go(ho(e), t);
293
+ return (t) => yo(po(e), t);
294
294
  }
295
- function po(e) {
295
+ function bo(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,22 +300,22 @@ function po(e) {
300
300
  });
301
301
  };
302
302
  }
303
- function yo(e, t, r = !1) {
303
+ function vo(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 bo(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
306
+ function ko(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) && yo(n, t, r) && (s.preventDefault && n.preventDefault(), i(n));
311
+ Va(o)(n) && vo(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 vo() {
318
+ function wo() {
319
319
  const e = S(null), [t, r] = W(!1);
320
320
  return { ref: Z((a) => {
321
321
  var n, o;
@@ -324,32 +324,32 @@ function vo() {
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 ko() {
327
+ function xo() {
328
328
  const e = S(!1);
329
329
  return M(() => (e.current = !0, () => {
330
330
  e.current = !1;
331
331
  }), []), Z(() => e.current, []);
332
332
  }
333
- function Pa(e, t) {
333
+ function za(e, t) {
334
334
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
335
335
  }
336
- const Gr = (e, t) => {
336
+ const jr = (e, t) => {
337
337
  const r = JSON.stringify(
338
338
  typeof t == "function" ? t() : t
339
339
  );
340
- window.localStorage.setItem(e, r), Pa(e, r);
341
- }, wo = (e) => {
342
- window.localStorage.removeItem(e), Pa(e, null);
343
- }, jr = (e) => window.localStorage.getItem(e), xo = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
344
- function Gt({
340
+ window.localStorage.setItem(e, r), za(e, r);
341
+ }, _o = (e) => {
342
+ window.localStorage.removeItem(e), za(e, null);
343
+ }, qr = (e) => window.localStorage.getItem(e), Eo = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
344
+ function jt({
345
345
  key: e,
346
346
  initialValue: t
347
347
  }) {
348
- const r = Wn(xo, () => jr(e)), a = Z(
348
+ const r = jn(Eo, () => qr(e)), a = Z(
349
349
  (i) => {
350
350
  try {
351
351
  const s = typeof i == "function" ? i(JSON.parse(r)) : i;
352
- s == null ? wo(e) : Gr(e, s);
352
+ s == null ? _o(e) : jr(e, s);
353
353
  } catch (s) {
354
354
  console.warn(s);
355
355
  }
@@ -362,13 +362,13 @@ function Gt({
362
362
  }, [a]);
363
363
  return M(() => {
364
364
  try {
365
- jr(e) === null && typeof t < "u" && Gr(e, t);
365
+ qr(e) === null && typeof t < "u" && jr(e, t);
366
366
  } catch (i) {
367
367
  console.warn(i);
368
368
  }
369
369
  }, [e, t]), [r ? JSON.parse(r) : null, a, n, o];
370
370
  }
371
- function _o(e) {
371
+ function To(e) {
372
372
  return oe(() => e.every((t) => t == null) ? () => {
373
373
  } : (t) => {
374
374
  e.forEach((r) => {
@@ -376,7 +376,7 @@ function _o(e) {
376
376
  });
377
377
  }, e);
378
378
  }
379
- const Eo = {
379
+ const So = {
380
380
  x: 0,
381
381
  y: 0,
382
382
  width: 0,
@@ -386,8 +386,8 @@ const Eo = {
386
386
  bottom: 0,
387
387
  right: 0
388
388
  };
389
- function To(e) {
390
- const t = ko(), r = S(0), a = S(null), [n, o] = W(Eo), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
389
+ function Co(e) {
390
+ const t = xo(), r = S(0), a = S(null), [n, o] = W(So), 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 To(e) {
397
397
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
398
398
  }), [i, e]), [a, n];
399
399
  }
400
- function So({
400
+ function No({
401
401
  value: e,
402
402
  defaultValue: t,
403
403
  finalValue: r,
@@ -416,15 +416,15 @@ function So({
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 Co(e) {
420
- return dr();
419
+ function Ro(e) {
420
+ return ur();
421
421
  }
422
- function qr(e, t) {
422
+ function Kr(e, t) {
423
423
  M(() => (window.addEventListener(e, t, {
424
424
  passive: !0
425
425
  }), () => window.removeEventListener(e, t)), [e, t]);
426
426
  }
427
- function No() {
427
+ function Io() {
428
428
  const [e, t] = W({
429
429
  width: 0,
430
430
  height: 0
@@ -434,7 +434,7 @@ function No() {
434
434
  height: window.innerHeight || 0
435
435
  });
436
436
  }, []);
437
- return qr("resize", r), qr("orientationchange", r), M(r, []), e;
437
+ return Kr("resize", r), Kr("orientationchange", r), M(r, []), e;
438
438
  }
439
439
  /*!
440
440
  @versini/ui-table v3.1.4
@@ -449,10 +449,10 @@ try {
449
449
  });
450
450
  } catch {
451
451
  }
452
- const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
452
+ const dt = "thead", fr = "tfoot", Ce = "tbody", Ue = {
453
453
  ASC: "asc",
454
454
  DESC: "desc"
455
- }, Ro = ({
455
+ }, Ao = ({
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
- }), Io = ({
490
+ }), $o = ({
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
- ), Ao = ({
503
+ ), Lo = ({
504
504
  className: e,
505
505
  stickyFooter: t,
506
506
  mode: r
@@ -513,11 +513,11 @@ 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
- ), $o = ({
516
+ ), Oo = ({
517
517
  mode: e,
518
518
  className: t,
519
519
  cellWrapper: r
520
- }) => r === dt || r === mr ? m(
520
+ }) => r === dt || r === fr ? m(
521
521
  {
522
522
  "bg-table-head-dark": e === "dark" || e === "system",
523
523
  "bg-table-head-light": e === "light" || e === "alt-system",
@@ -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
- ), Lo = ({
541
+ ), Bo = ({
542
542
  cellWrapper: e,
543
543
  className: t,
544
544
  compact: r,
@@ -556,15 +556,15 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
556
556
  "text-copy-dark": a === "light" || a === "alt-system",
557
557
  "dark:text-copy-dark": a === "system",
558
558
  "dark:text-copy-light": a === "alt-system",
559
- "px-4 py-3": !r && (e === dt || e === mr),
559
+ "px-4 py-3": !r && (e === dt || e === fr),
560
560
  "p-4": !r && e === Ce,
561
561
  "px-2 py-1.5": r
562
562
  },
563
563
  t
564
564
  )
565
- }), Oo = ({
565
+ }), Mo = ({
566
566
  buttonClassName: e
567
- }) => m("rounded-none text-sm", e), Kr = "av-button", ut = "icon", za = "button", jt = "link", Bo = ({
567
+ }) => m("rounded-none text-sm", e), Yr = "av-button", ut = "icon", Ua = "button", qt = "link", Do = ({
568
568
  type: e,
569
569
  size: t,
570
570
  labelRight: r,
@@ -574,8 +574,8 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
574
574
  }) => {
575
575
  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";
576
576
  switch (e) {
577
- case za:
578
- case jt:
577
+ case Ua:
578
+ case qt:
579
579
  return m({
580
580
  [i]: t === "small",
581
581
  [s]: t === "medium",
@@ -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
- }, Mo = ({
603
+ }, Po = ({
604
604
  type: e,
605
605
  size: t,
606
606
  labelRight: r,
@@ -608,10 +608,10 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
608
608
  }) => {
609
609
  const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
610
610
  switch (e) {
611
- case za:
612
- case jt:
611
+ case Ua:
612
+ case qt:
613
613
  return m({
614
- "text-center": e === jt,
614
+ "text-center": e === qt,
615
615
  [n]: t === "small",
616
616
  [o]: t === "medium",
617
617
  [i]: t === "large"
@@ -623,7 +623,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
623
623
  [i]: t === "large" && (r || a)
624
624
  });
625
625
  }
626
- }, Do = ({
626
+ }, Vo = ({
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 m("not-prose text-copy-lighter", {
660
660
  truncate: !r
661
661
  });
662
- }, Vo = ({
662
+ }, zo = ({
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
- }, Po = ({
692
+ }, Uo = ({
693
693
  radius: e
694
694
  }) => m({
695
695
  "rounded-full": e === "large",
696
696
  "rounded-md": e === "medium",
697
697
  "rounded-sm": e === "small"
698
- }), zo = ({
698
+ }), Ho = ({
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
- }, Uo = ({
728
+ }, Fo = ({
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
- }, Ho = ({
758
+ }, Wo = ({
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
- }, Fo = ({
788
+ }, Go = ({
789
789
  focusMode: e
790
790
  }) => m("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
- }), Wo = ({
795
+ }), jo = ({
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
- ), Go = ({
807
+ ), qo = ({
808
808
  animated: e
809
809
  }) => m({
810
810
  "transition-opacity duration-300 ease-in": e
811
- }), jo = ({
811
+ }), Ko = ({
812
812
  type: e,
813
813
  className: t,
814
814
  raw: r,
@@ -826,17 +826,17 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
826
826
  align: p,
827
827
  radius: y,
828
828
  animated: b
829
- }) => (h || (h = "primary"), r ? m(Kr, t) : m(
830
- Kr,
831
- Do({
829
+ }) => (h || (h = "primary"), r ? m(Yr, t) : m(
830
+ Yr,
831
+ Vo({
832
832
  mode: a,
833
833
  variant: h,
834
834
  noBackground: u,
835
835
  noTruncate: g
836
836
  }),
837
- Vo({ mode: a, noBackground: u, variant: h }),
838
- Po({ radius: y }),
839
- Bo({
837
+ zo({ mode: a, noBackground: u, variant: h }),
838
+ Uo({ radius: y }),
839
+ Do({
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: b
846
846
  }),
847
- Mo({ type: e, size: s, labelRight: d, labelLeft: f }),
848
- Ho({ mode: a, variant: h, noBorder: c }),
849
- Fo({ focusMode: n }),
850
- zo({ mode: a, variant: h, disabled: o }),
851
- Uo({ mode: a, variant: h, disabled: o }),
847
+ Po({ type: e, size: s, labelRight: d, labelLeft: f }),
848
+ Wo({ mode: a, variant: h, noBorder: c }),
849
+ Go({ focusMode: n }),
850
+ Ho({ mode: a, variant: h, disabled: o }),
851
+ Fo({ mode: a, variant: h, disabled: o }),
852
852
  {
853
853
  "w-full": i,
854
854
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -857,30 +857,30 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Ue = {
857
857
  "transition-[width] duration-300 ease-in-out": e === ut && b
858
858
  }),
859
859
  t
860
- )), qo = (e, t, r) => {
860
+ )), Yo = (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
- }, Ua = U.forwardRef((e, t) => {
863
+ }, Ha = U.forwardRef((e, t) => {
864
864
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
865
865
  return /* @__PURE__ */ l(
866
866
  "button",
867
867
  {
868
868
  ref: t,
869
869
  onClick: (o) => {
870
- qo(o, a, r);
870
+ Yo(o, a, r);
871
871
  },
872
872
  ...n
873
873
  }
874
874
  );
875
875
  });
876
- Ua.displayName = "BaseButton";
877
- function Ko() {
876
+ Ha.displayName = "BaseButton";
877
+ function Jo() {
878
878
  const e = S(!1);
879
879
  return M(() => (e.current = !0, () => {
880
880
  e.current = !1;
881
881
  }), []), Z(() => e.current, []);
882
882
  }
883
- function Yo(e) {
883
+ function Zo(e) {
884
884
  return oe(() => e.every((t) => t == null) ? () => {
885
885
  } : (t) => {
886
886
  e.forEach((r) => {
@@ -888,7 +888,7 @@ function Yo(e) {
888
888
  });
889
889
  }, e);
890
890
  }
891
- const Jo = {
891
+ const Xo = {
892
892
  x: 0,
893
893
  y: 0,
894
894
  width: 0,
@@ -899,7 +899,7 @@ const Jo = {
899
899
  right: 0
900
900
  };
901
901
  function Rt(e) {
902
- const t = Ko(), r = S(0), a = S(null), [n, o] = W(Jo), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
902
+ const t = Jo(), r = S(0), a = S(null), [n, o] = W(Xo), 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 Zo = {
912
+ const Qo = {
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
- }, Xo = {
919
+ }, ei = {
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
- }, Qo = 2, Ha = U.forwardRef(
926
+ }, ti = 2, Fa = U.forwardRef(
927
927
  ({
928
928
  children: e,
929
929
  disabled: t = !1,
@@ -947,7 +947,7 @@ const Zo = {
947
947
  animated: k = !1,
948
948
  ...A
949
949
  }, E) => {
950
- const C = jo({
950
+ const C = Ko({
951
951
  type: ut,
952
952
  mode: r,
953
953
  focusMode: a,
@@ -964,11 +964,11 @@ const Zo = {
964
964
  radius: b,
965
965
  variant: v,
966
966
  animated: k
967
- }), N = Wo({ mode: r, raw: s, iconClassName: x }), _ = Go({ animated: k }), [w, T] = Rt(), [R, B] = Rt(), [$, O] = Rt(), V = S(0), I = S(null), H = Yo([E, I]);
967
+ }), N = jo({ mode: r, raw: s, iconClassName: x }), _ = qo({ animated: k }), [w, T] = Rt(), [R, B] = Rt(), [$, O] = Rt(), P = S(0), I = S(null), H = Zo([E, I]);
968
968
  return pe(() => {
969
- $ && $.current && k && (V.current = O.width + Xo[u] + (c ? 0 : Qo));
969
+ $ && $.current && k && (P.current = O.width + ei[u] + (c ? 0 : ti));
970
970
  }, [O, $, u, c, k]), pe(() => {
971
- I && I.current && k && (h && w && T.width > 0 ? (w.current && (w.current.style.opacity = "100"), I.current.style.width = `${T.width + V.current}px`) : g && B.width > 0 ? (R.current && (R.current.style.opacity = "100"), I.current.style.width = `${B.width + V.current}px`) : (w.current && (w.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), I.current.style.width = `${Zo[u]}px`));
971
+ I && I.current && k && (h && w && T.width > 0 ? (w.current && (w.current.style.opacity = "100"), I.current.style.width = `${T.width + P.current}px`) : g && B.width > 0 ? (R.current && (R.current.style.opacity = "100"), I.current.style.width = `${B.width + P.current}px`) : (w.current && (w.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), I.current.style.width = `${Qo[u]}px`));
972
972
  }, [
973
973
  T,
974
974
  h,
@@ -979,7 +979,7 @@ const Zo = {
979
979
  u,
980
980
  k
981
981
  ]), /* @__PURE__ */ L(
982
- Ua,
982
+ Ha,
983
983
  {
984
984
  ref: H,
985
985
  className: C,
@@ -989,7 +989,7 @@ const Zo = {
989
989
  ...A,
990
990
  children: [
991
991
  /* @__PURE__ */ l(
992
- Yr,
992
+ Jr,
993
993
  {
994
994
  label: g,
995
995
  labelRef: R,
@@ -999,7 +999,7 @@ const Zo = {
999
999
  ),
1000
1000
  /* @__PURE__ */ l("span", { ref: $, className: N, children: e }),
1001
1001
  /* @__PURE__ */ l(
1002
- Yr,
1002
+ Jr,
1003
1003
  {
1004
1004
  label: h,
1005
1005
  labelRef: w,
@@ -1011,13 +1011,13 @@ const Zo = {
1011
1011
  }
1012
1012
  );
1013
1013
  }
1014
- ), Yr = ({
1014
+ ), Jr = ({
1015
1015
  labelRef: e,
1016
1016
  labelClass: t,
1017
1017
  label: r,
1018
1018
  labelInnerClass: a
1019
1019
  }) => /* @__PURE__ */ l("span", { ref: e, className: t, children: r && /* @__PURE__ */ l("span", { className: a, children: r }) });
1020
- Ha.displayName = "ButtonIcon";
1020
+ Fa.displayName = "ButtonIcon";
1021
1021
  /*!
1022
1022
  @versini/ui-button v4.2.4
1023
1023
  © 2025 gizmette.com
@@ -1031,7 +1031,7 @@ try {
1031
1031
  });
1032
1032
  } catch {
1033
1033
  }
1034
- const Fa = U.forwardRef(
1034
+ const Wa = U.forwardRef(
1035
1035
  ({
1036
1036
  children: e,
1037
1037
  mode: t = "system",
@@ -1057,7 +1057,7 @@ const Fa = U.forwardRef(
1057
1057
  }
1058
1058
  ) : "";
1059
1059
  return /* @__PURE__ */ l("div", { className: i, children: /* @__PURE__ */ l(
1060
- Ha,
1060
+ Fa,
1061
1061
  {
1062
1062
  className: m("justify-center", r),
1063
1063
  ref: o,
@@ -1069,8 +1069,8 @@ const Fa = U.forwardRef(
1069
1069
  ) });
1070
1070
  }
1071
1071
  );
1072
- Fa.displayName = "ButtonSort";
1073
- const fr = ({
1072
+ Wa.displayName = "ButtonSort";
1073
+ const hr = ({
1074
1074
  children: e,
1075
1075
  fill: t,
1076
1076
  viewBox: r,
@@ -1113,14 +1113,14 @@ try {
1113
1113
  });
1114
1114
  } catch {
1115
1115
  }
1116
- const ei = ({
1116
+ const ri = ({
1117
1117
  className: e,
1118
1118
  viewBox: t,
1119
1119
  title: r,
1120
1120
  monotone: a,
1121
1121
  ...n
1122
1122
  }) => /* @__PURE__ */ L(
1123
- fr,
1123
+ hr,
1124
1124
  {
1125
1125
  defaultViewBox: "0 0 576 512",
1126
1126
  size: "size-5",
@@ -1139,14 +1139,14 @@ const ei = ({
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
- ), ti = ({
1142
+ ), ai = ({
1143
1143
  className: e,
1144
1144
  viewBox: t,
1145
1145
  title: r,
1146
1146
  monotone: a,
1147
1147
  ...n
1148
1148
  }) => /* @__PURE__ */ L(
1149
- fr,
1149
+ hr,
1150
1150
  {
1151
1151
  defaultViewBox: "0 0 576 512",
1152
1152
  size: "size-5",
@@ -1165,14 +1165,14 @@ const ei = ({
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
- ), ri = ({
1168
+ ), ni = ({
1169
1169
  className: e,
1170
1170
  viewBox: t,
1171
1171
  title: r,
1172
1172
  monotone: a,
1173
1173
  ...n
1174
1174
  }) => /* @__PURE__ */ L(
1175
- fr,
1175
+ hr,
1176
1176
  {
1177
1177
  defaultViewBox: "0 0 576 512",
1178
1178
  size: "size-5",
@@ -1211,7 +1211,7 @@ const Oe = U.createContext({
1211
1211
  stickyHeader: !1,
1212
1212
  stickyFooter: !1,
1213
1213
  compact: !1
1214
- }), Wc = ({
1214
+ }), jc = ({
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
  ...f
1226
1226
  }) => {
1227
- const u = Ro({
1227
+ const u = Ao({
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
- }, Gc = ({
1253
+ }, qc = ({
1254
1254
  children: e,
1255
1255
  className: t,
1256
1256
  ...r
1257
1257
  }) => {
1258
1258
  const a = G(Oe);
1259
1259
  a.cellWrapper = dt;
1260
- const n = Io({
1260
+ const n = $o({
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
- }, jc = ({
1266
+ }, Kc = ({
1267
1267
  children: e,
1268
1268
  className: t,
1269
1269
  ...r
1270
1270
  }) => {
1271
1271
  const a = G(Oe);
1272
- a.cellWrapper = mr;
1273
- const n = Ao({
1272
+ a.cellWrapper = fr;
1273
+ const n = Lo({
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
- }, qc = ({ children: e, ...t }) => {
1279
+ }, Yc = ({ children: e, ...t }) => {
1280
1280
  const r = G(Oe);
1281
1281
  return r.cellWrapper = Ce, /* @__PURE__ */ l("tbody", { ...t, children: e });
1282
- }, Kc = ({
1282
+ }, Jc = ({
1283
1283
  children: e,
1284
1284
  className: t,
1285
1285
  ...r
1286
1286
  }) => {
1287
- const a = G(Oe), n = $o({
1287
+ const a = G(Oe), n = Oo({
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
- }, ai = ({
1293
+ }, oi = ({
1294
1294
  children: e,
1295
1295
  component: t,
1296
1296
  className: r,
1297
1297
  align: a,
1298
1298
  ...n
1299
1299
  }) => {
1300
- const o = G(Oe), i = t || (o.cellWrapper === dt ? "th" : "td"), { mainClasses: s, alignClasses: c } = Lo({
1300
+ const o = G(Oe), i = t || (o.cellWrapper === dt ? "th" : "td"), { mainClasses: s, alignClasses: c } = Bo({
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
- }, Yc = ({
1308
+ }, Zc = ({
1309
1309
  align: e,
1310
1310
  children: t,
1311
1311
  buttonClassName: r,
@@ -1319,9 +1319,9 @@ const Oe = U.createContext({
1319
1319
  cellId: f,
1320
1320
  ...u
1321
1321
  }) => {
1322
- const h = Oo({ buttonClassName: r });
1322
+ const h = Mo({ buttonClassName: r });
1323
1323
  return /* @__PURE__ */ l(
1324
- ai,
1324
+ oi,
1325
1325
  {
1326
1326
  component: n,
1327
1327
  className: a,
@@ -1329,7 +1329,7 @@ const Oe = U.createContext({
1329
1329
  "aria-sort": c === Ue.ASC && d === f ? "ascending" : c === Ue.DESC && d === f ? "descending" : "other",
1330
1330
  ...u,
1331
1331
  children: /* @__PURE__ */ l(
1332
- Fa,
1332
+ Wa,
1333
1333
  {
1334
1334
  active: d === f,
1335
1335
  className: h,
@@ -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 === f ? /* @__PURE__ */ l(ri, { className: "size-4", monotone: !0 }) : c === Ue.DESC && d === f ? /* @__PURE__ */ l(ti, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(ei, { className: "size-4", monotone: !0 })
1343
+ children: c === Ue.ASC && d === f ? /* @__PURE__ */ l(ni, { className: "size-4", monotone: !0 }) : c === Ue.DESC && d === f ? /* @__PURE__ */ l(ai, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(ri, { 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 ni(e, t = 0) {
1351
+ function ii(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 oi = new Uint8Array(16);
1356
- function ii() {
1355
+ const si = new Uint8Array(16);
1356
+ function li() {
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(oi);
1362
+ return It(si);
1363
1363
  }
1364
- const si = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Jr = { randomUUID: si };
1365
- function hr(e, t, r) {
1364
+ const ci = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Zr = { randomUUID: ci };
1365
+ function gr(e, t, r) {
1366
1366
  var n;
1367
- if (Jr.randomUUID && !e)
1368
- return Jr.randomUUID();
1367
+ if (Zr.randomUUID && !e)
1368
+ return Zr.randomUUID();
1369
1369
  e = e || {};
1370
- const a = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? ii();
1370
+ const a = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? li();
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, ni(a);
1373
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, ii(a);
1374
1374
  }
1375
- const li = (e, t) => {
1375
+ const di = (e, t) => {
1376
1376
  switch (t == null ? void 0 : t.type) {
1377
- case In:
1377
+ case An:
1378
1378
  return {
1379
1379
  searchString: t.payload.searchString,
1380
1380
  sortedCell: e.sortedCell,
1381
1381
  sortDirection: e.sortDirection
1382
1382
  };
1383
- case Rn:
1383
+ case In:
1384
1384
  return {
1385
1385
  searchString: e.searchString,
1386
1386
  sortedCell: t.payload.sortedCell,
@@ -1389,14 +1389,14 @@ const li = (e, t) => {
1389
1389
  default:
1390
1390
  return e;
1391
1391
  }
1392
- }, ci = (e, t) => {
1392
+ }, ui = (e, t) => {
1393
1393
  switch (t == null ? void 0 : t.type) {
1394
- case Ta:
1394
+ case Sa:
1395
1395
  return {
1396
1396
  prompt: t.payload.prompt,
1397
1397
  lastTriggeredTimestamp: e.lastTriggeredTimestamp
1398
1398
  };
1399
- case Ea:
1399
+ case Ta:
1400
1400
  return {
1401
1401
  prompt: "",
1402
1402
  lastTriggeredTimestamp: (/* @__PURE__ */ new Date()).getTime()
@@ -1415,10 +1415,10 @@ var Xe = { exports: {} }, At = {};
1415
1415
  * This source code is licensed under the MIT license found in the
1416
1416
  * LICENSE file in the root directory of this source tree.
1417
1417
  */
1418
- var Zr;
1419
- function di() {
1420
- if (Zr) return At;
1421
- Zr = 1;
1418
+ var Xr;
1419
+ function mi() {
1420
+ if (Xr) return At;
1421
+ Xr = 1;
1422
1422
  var e = U;
1423
1423
  function t(u, h) {
1424
1424
  return u === h && (u !== 0 || 1 / u === 1 / h) || u !== u && h !== h;
@@ -1466,9 +1466,9 @@ var $t = {};
1466
1466
  * This source code is licensed under the MIT license found in the
1467
1467
  * LICENSE file in the root directory of this source tree.
1468
1468
  */
1469
- var Xr;
1470
- function ui() {
1471
- return Xr || (Xr = 1, process.env.NODE_ENV !== "production" && function() {
1469
+ var Qr;
1470
+ function fi() {
1471
+ return Qr || (Qr = 1, process.env.NODE_ENV !== "production" && function() {
1472
1472
  function e(g, p) {
1473
1473
  return g === p && (g !== 0 || 1 / g === 1 / p) || g !== g && p !== p;
1474
1474
  }
@@ -1519,12 +1519,12 @@ function ui() {
1519
1519
  $t.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : h, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1520
1520
  }()), $t;
1521
1521
  }
1522
- var Qr;
1523
- function mi() {
1524
- return Qr || (Qr = 1, process.env.NODE_ENV === "production" ? Xe.exports = /* @__PURE__ */ di() : Xe.exports = /* @__PURE__ */ ui()), Xe.exports;
1522
+ var ea;
1523
+ function hi() {
1524
+ return ea || (ea = 1, process.env.NODE_ENV === "production" ? Xe.exports = /* @__PURE__ */ mi() : Xe.exports = /* @__PURE__ */ fi()), Xe.exports;
1525
1525
  }
1526
- var fi = /* @__PURE__ */ mi(), ea = Object.prototype.hasOwnProperty;
1527
- function qt(e, t) {
1526
+ var gi = /* @__PURE__ */ hi(), ta = Object.prototype.hasOwnProperty;
1527
+ function Kt(e, t) {
1528
1528
  var r, a;
1529
1529
  if (e === t) return !0;
1530
1530
  if (e && t && (r = e.constructor) === t.constructor) {
@@ -1532,13 +1532,13 @@ function qt(e, t) {
1532
1532
  if (r === RegExp) return e.toString() === t.toString();
1533
1533
  if (r === Array) {
1534
1534
  if ((a = e.length) === t.length)
1535
- for (; a-- && qt(e[a], t[a]); ) ;
1535
+ for (; a-- && Kt(e[a], t[a]); ) ;
1536
1536
  return a === -1;
1537
1537
  }
1538
1538
  if (!r || typeof e == "object") {
1539
1539
  a = 0;
1540
1540
  for (r in e)
1541
- if (ea.call(e, r) && ++a && !ea.call(t, r) || !(r in t) || !qt(e[r], t[r])) return !1;
1541
+ if (ta.call(e, r) && ++a && !ta.call(t, r) || !(r in t) || !Kt(e[r], t[r])) return !1;
1542
1542
  return Object.keys(t).length === a;
1543
1543
  }
1544
1544
  }
@@ -1548,10 +1548,10 @@ const le = /* @__PURE__ */ new WeakMap(), ve = () => {
1548
1548
  }, ee = (
1549
1549
  /*#__NOINLINE__*/
1550
1550
  ve()
1551
- ), Kt = Object, D = (e) => e === ee, ce = (e) => typeof e == "function", ke = (e, t) => ({
1551
+ ), Yt = 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, hi = () => mt && typeof window.requestAnimationFrame != gr, Ga = (e, t) => {
1554
+ }), Ga = (e) => ce(e.then), Lt = {}, Qe = {}, pr = "undefined", mt = typeof window != pr, Jt = typeof document != pr, pi = () => mt && typeof window.requestAnimationFrame != pr, ja = (e, t) => {
1555
1555
  const r = le.get(e);
1556
1556
  return [
1557
1557
  // Getter
@@ -1569,53 +1569,53 @@ const le = /* @__PURE__ */ new WeakMap(), ve = () => {
1569
1569
  () => !D(t) && t in Qe ? Qe[t] : !D(t) && e.get(t) || Lt
1570
1570
  ];
1571
1571
  };
1572
- let Jt = !0;
1573
- const gi = () => Jt, [Zt, Xt] = mt && window.addEventListener ? [
1572
+ let Zt = !0;
1573
+ const yi = () => Zt, [Xt, Qt] = mt && window.addEventListener ? [
1574
1574
  window.addEventListener.bind(window),
1575
1575
  window.removeEventListener.bind(window)
1576
1576
  ] : [
1577
1577
  ve,
1578
1578
  ve
1579
- ], pi = () => {
1580
- const e = Yt && document.visibilityState;
1579
+ ], bi = () => {
1580
+ const e = Jt && document.visibilityState;
1581
1581
  return D(e) || e !== "hidden";
1582
- }, yi = (e) => (Yt && document.addEventListener("visibilitychange", e), Zt("focus", e), () => {
1583
- Yt && document.removeEventListener("visibilitychange", e), Xt("focus", e);
1584
- }), bi = (e) => {
1582
+ }, vi = (e) => (Jt && document.addEventListener("visibilitychange", e), Xt("focus", e), () => {
1583
+ Jt && document.removeEventListener("visibilitychange", e), Qt("focus", e);
1584
+ }), ki = (e) => {
1585
1585
  const t = () => {
1586
- Jt = !0, e();
1586
+ Zt = !0, e();
1587
1587
  }, r = () => {
1588
- Jt = !1;
1588
+ Zt = !1;
1589
1589
  };
1590
- return Zt("online", t), Zt("offline", r), () => {
1591
- Xt("online", t), Xt("offline", r);
1590
+ return Xt("online", t), Xt("offline", r), () => {
1591
+ Qt("online", t), Qt("offline", r);
1592
1592
  };
1593
- }, vi = {
1594
- isOnline: gi,
1595
- isVisible: pi
1596
- }, ki = {
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 && ([
1593
+ }, wi = {
1594
+ isOnline: yi,
1595
+ isVisible: bi
1596
+ }, xi = {
1597
+ initFocus: vi,
1598
+ initReconnect: ki
1599
+ }, ra = !U.useId, We = !mt || "Deno" in globalThis, _i = (e) => pi() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Ot = We ? M : pe, Bt = typeof navigator < "u" && navigator.connection, aa = !We && Bt && ([
1600
1600
  "slow-2g",
1601
1601
  "2g"
1602
- ].includes(Bt.effectiveType) || Bt.saveData), et = /* @__PURE__ */ new WeakMap(), Mt = (e, t) => Kt.prototype.toString.call(e) === `[object ${t}]`;
1603
- let xi = 0;
1604
- const Qt = (e) => {
1602
+ ].includes(Bt.effectiveType) || Bt.saveData), et = /* @__PURE__ */ new WeakMap(), Mt = (e, t) => Yt.prototype.toString.call(e) === `[object ${t}]`;
1603
+ let Ei = 0;
1604
+ const er = (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
- if (Kt(e) === e && !r && !a) {
1607
+ if (Yt(e) === e && !r && !a) {
1608
1608
  if (o = et.get(e), o) return o;
1609
- if (o = ++xi + "~", et.set(e, o), Array.isArray(e)) {
1609
+ if (o = ++Ei + "~", et.set(e, o), Array.isArray(e)) {
1610
1610
  for (o = "@", i = 0; i < e.length; i++)
1611
- o += Qt(e[i]) + ",";
1611
+ o += er(e[i]) + ",";
1612
1612
  et.set(e, o);
1613
1613
  }
1614
1614
  if (n) {
1615
1615
  o = "#";
1616
- const s = Kt.keys(e).sort();
1616
+ const s = Yt.keys(e).sort();
1617
1617
  for (; !D(i = s.pop()); )
1618
- D(e[i]) || (o += i + ":" + Qt(e[i]) + ",");
1618
+ D(e[i]) || (o += i + ":" + er(e[i]) + ",");
1619
1619
  et.set(e, o);
1620
1620
  }
1621
1621
  } else
@@ -1629,21 +1629,21 @@ const Qt = (e) => {
1629
1629
  e = "";
1630
1630
  }
1631
1631
  const t = e;
1632
- return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? Qt(e) : "", [
1632
+ return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? er(e) : "", [
1633
1633
  e,
1634
1634
  t
1635
1635
  ];
1636
1636
  };
1637
- let _i = 0;
1638
- const er = () => ++_i, ja = 0, qa = 1, Ka = 2, Ei = 3;
1637
+ let Ti = 0;
1638
+ const tr = () => ++Ti, qa = 0, Ka = 1, Ya = 2, Si = 3;
1639
1639
  var ze = {
1640
1640
  __proto__: null,
1641
- ERROR_REVALIDATE_EVENT: Ei,
1642
- FOCUS_EVENT: ja,
1643
- MUTATE_EVENT: Ka,
1644
- RECONNECT_EVENT: qa
1641
+ ERROR_REVALIDATE_EVENT: Si,
1642
+ FOCUS_EVENT: qa,
1643
+ MUTATE_EVENT: Ya,
1644
+ RECONNECT_EVENT: Ka
1645
1645
  };
1646
- async function Ya(...e) {
1646
+ async function Ja(...e) {
1647
1647
  const [t, r, a, n] = e, o = ke({
1648
1648
  populateCache: !0,
1649
1649
  throwOnError: !0
@@ -1665,14 +1665,14 @@ async function Ya(...e) {
1665
1665
  async function u(h) {
1666
1666
  const [g] = ft(h);
1667
1667
  if (!g) return;
1668
- const [p, y] = Ga(t, g), [b, v, x, k] = le.get(t), A = () => {
1668
+ const [p, y] = ja(t, g), [b, v, x, k] = le.get(t), A = () => {
1669
1669
  const $ = b[g];
1670
- return (ce(o.revalidate) ? o.revalidate(p().data, h) : o.revalidate !== !1) && (delete x[g], delete k[g], $ && $[0]) ? $[0](Ka).then(() => p().data) : p().data;
1670
+ return (ce(o.revalidate) ? o.revalidate(p().data, h) : o.revalidate !== !1) && (delete x[g], delete k[g], $ && $[0]) ? $[0](Ya).then(() => p().data) : p().data;
1671
1671
  };
1672
1672
  if (e.length < 3)
1673
1673
  return A();
1674
1674
  let E = a, C;
1675
- const N = er();
1675
+ const N = tr();
1676
1676
  v[g] = [
1677
1677
  N,
1678
1678
  0
@@ -1687,7 +1687,7 @@ async function Ya(...e) {
1687
1687
  } catch ($) {
1688
1688
  C = $;
1689
1689
  }
1690
- if (E && Wa(E))
1690
+ if (E && Ga(E))
1691
1691
  if (E = await E.catch(($) => {
1692
1692
  C = $;
1693
1693
  }), N !== v[g][0]) {
@@ -1711,7 +1711,7 @@ async function Ya(...e) {
1711
1711
  error: ee,
1712
1712
  _c: ee
1713
1713
  });
1714
- if (v[g][1] = er(), Promise.resolve(A()).then(() => {
1714
+ if (v[g][1] = tr(), Promise.resolve(A()).then(() => {
1715
1715
  y({
1716
1716
  _c: ee
1717
1717
  });
@@ -1722,12 +1722,12 @@ async function Ya(...e) {
1722
1722
  return E;
1723
1723
  }
1724
1724
  }
1725
- const aa = (e, t) => {
1725
+ const na = (e, t) => {
1726
1726
  for (const r in e)
1727
1727
  e[r][0] && e[r][0](t);
1728
- }, Ti = (e, t) => {
1728
+ }, Ci = (e, t) => {
1729
1729
  if (!le.has(e)) {
1730
- const r = ke(ki, t), a = {}, n = Ya.bind(ee, e);
1730
+ const r = ke(xi, t), a = {}, n = Ja.bind(ee, e);
1731
1731
  let o = ve;
1732
1732
  const i = {}, s = (f, u) => {
1733
1733
  const h = i[f] || [];
@@ -1748,7 +1748,7 @@ const aa = (e, t) => {
1748
1748
  c,
1749
1749
  s
1750
1750
  ]), !We)) {
1751
- const f = r.initFocus(setTimeout.bind(ee, aa.bind(ee, a, ja))), u = r.initReconnect(setTimeout.bind(ee, aa.bind(ee, a, qa)));
1751
+ const f = r.initFocus(setTimeout.bind(ee, na.bind(ee, a, qa))), u = r.initReconnect(setTimeout.bind(ee, na.bind(ee, a, Ka)));
1752
1752
  o = () => {
1753
1753
  f && f(), u && u(), le.delete(e);
1754
1754
  };
@@ -1765,16 +1765,16 @@ const aa = (e, t) => {
1765
1765
  e,
1766
1766
  le.get(e)[4]
1767
1767
  ];
1768
- }, Si = (e, t, r, a, n) => {
1768
+ }, Ni = (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
- }, Ci = qt, [pr, Ni] = Ti(/* @__PURE__ */ new Map()), Ri = ke(
1771
+ }, Ri = Kt, [yr, Ii] = Ci(/* @__PURE__ */ new Map()), Ai = ke(
1772
1772
  {
1773
1773
  // events
1774
1774
  onLoadingSlow: ve,
1775
1775
  onSuccess: ve,
1776
1776
  onError: ve,
1777
- onErrorRetry: Si,
1777
+ onErrorRetry: Ni,
1778
1778
  onDiscarded: ve,
1779
1779
  // switches
1780
1780
  revalidateOnFocus: !0,
@@ -1782,29 +1782,29 @@ const aa = (e, t) => {
1782
1782
  revalidateIfStale: !0,
1783
1783
  shouldRetryOnError: !0,
1784
1784
  // timeouts
1785
- errorRetryInterval: ra ? 1e4 : 5e3,
1785
+ errorRetryInterval: aa ? 1e4 : 5e3,
1786
1786
  focusThrottleInterval: 5 * 1e3,
1787
1787
  dedupingInterval: 2 * 1e3,
1788
- loadingTimeout: ra ? 5e3 : 3e3,
1788
+ loadingTimeout: aa ? 5e3 : 3e3,
1789
1789
  // providers
1790
- compare: Ci,
1790
+ compare: Ri,
1791
1791
  isPaused: () => !1,
1792
- cache: pr,
1793
- mutate: Ni,
1792
+ cache: yr,
1793
+ mutate: Ii,
1794
1794
  fallback: {}
1795
1795
  },
1796
1796
  // use web preset by default
1797
- vi
1798
- ), Ii = (e, t) => {
1797
+ wi
1798
+ ), $i = (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
- }, Ai = Gn({}), $i = "$inf$", Ja = mt && window.__SWR_DEVTOOLS_USE__, Li = Ja ? window.__SWR_DEVTOOLS_USE__ : [], Oi = () => {
1806
- Ja && (window.__SWR_DEVTOOLS_REACT__ = U);
1807
- }, Bi = (e) => ce(e[1]) ? [
1805
+ }, Li = qn({}), Oi = "$inf$", Za = mt && window.__SWR_DEVTOOLS_USE__, Bi = Za ? window.__SWR_DEVTOOLS_USE__ : [], Mi = () => {
1806
+ Za && (window.__SWR_DEVTOOLS_REACT__ = U);
1807
+ }, Di = (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
- ], Mi = () => ke(Ri, G(Ai)), Za = (e, t) => {
1816
- const [r, a] = ft(e), [, , , n] = le.get(pr);
1815
+ ], Pi = () => ke(Ai, G(Li)), Xa = (e, t) => {
1816
+ const [r, a] = ft(e), [, , , n] = le.get(yr);
1817
1817
  if (n[r]) return n[r];
1818
1818
  const o = t(a);
1819
1819
  return n[r] = o, o;
1820
- }, Di = (e) => (t, r, a) => e(t, r && ((...o) => {
1821
- const [i] = ft(t), [, , , s] = le.get(pr);
1822
- if (i.startsWith($i))
1820
+ }, Vi = (e) => (t, r, a) => e(t, r && ((...o) => {
1821
+ const [i] = ft(t), [, , , s] = le.get(yr);
1822
+ if (i.startsWith(Oi))
1823
1823
  return r(...o);
1824
1824
  const c = s[i];
1825
1825
  return D(c) ? r(...o) : (delete s[i], c);
1826
- }), a), Vi = Li.concat(Di), Pi = (e) => function(...r) {
1827
- const a = Mi(), [n, o, i] = Bi(r), s = Ii(a, i);
1826
+ }), a), zi = Bi.concat(Vi), Ui = (e) => function(...r) {
1827
+ const a = Pi(), [n, o, i] = Di(r), s = $i(a, i);
1828
1828
  let c = e;
1829
- const { use: d } = s, f = (d || []).concat(Vi);
1829
+ const { use: d } = s, f = (d || []).concat(zi);
1830
1830
  for (let u = f.length; u--; )
1831
1831
  c = f[u](c);
1832
1832
  return c(n, o || s.fetcher || null, s);
1833
- }, zi = (e, t, r) => {
1833
+ }, Hi = (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
- Oi();
1840
+ Mi();
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)`.
@@ -1857,23 +1857,23 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
1857
1857
  e.status = "rejected", e.reason = t;
1858
1858
  }), e;
1859
1859
  }
1860
- }), Vt = {
1860
+ }), Pt = {
1861
1861
  dedupe: !0
1862
- }, Ui = (e, t, r) => {
1863
- const { cache: a, compare: n, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [g, p, y, b] = le.get(a), [v, x] = ft(e), k = S(!1), A = S(!1), E = S(v), C = S(t), N = S(r), _ = () => N.current, w = () => _().isVisible() && _().isOnline(), [T, R, B, $] = Ga(a, v), O = S({}).current, V = D(i) ? D(r.fallback) ? ee : r.fallback[v] : i, I = (P, z) => {
1862
+ }, Fi = (e, t, r) => {
1863
+ const { cache: a, compare: n, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [g, p, y, b] = le.get(a), [v, x] = ft(e), k = S(!1), A = S(!1), E = S(v), C = S(t), N = S(r), _ = () => N.current, w = () => _().isVisible() && _().isOnline(), [T, R, B, $] = ja(a, v), O = S({}).current, P = D(i) ? D(r.fallback) ? ee : r.fallback[v] : i, I = (V, z) => {
1864
1864
  for (const X in O) {
1865
1865
  const F = X;
1866
1866
  if (F === "data") {
1867
- if (!n(P[F], z[F]) && (!D(P[F]) || !n(Ze, z[F])))
1867
+ if (!n(V[F], z[F]) && (!D(V[F]) || !n(Ze, z[F])))
1868
1868
  return !1;
1869
- } else if (z[F] !== P[F])
1869
+ } else if (z[F] !== V[F])
1870
1870
  return !1;
1871
1871
  }
1872
1872
  return !0;
1873
1873
  }, H = oe(() => {
1874
- const P = !v || !t ? !1 : D(s) ? _().isPaused() || o ? !1 : c !== !1 : s, z = (Q) => {
1874
+ const V = !v || !t ? !1 : D(s) ? _().isPaused() || o ? !1 : c !== !1 : s, z = (Q) => {
1875
1875
  const me = ke(Q);
1876
- return delete me._k, P ? {
1876
+ return delete me._k, V ? {
1877
1877
  isValidating: !0,
1878
1878
  isLoading: !0,
1879
1879
  ...me
@@ -1890,40 +1890,40 @@ 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 = fi.useSyncExternalStore(Z(
1894
- (P) => B(v, (z, X) => {
1895
- I(X, z) || P();
1893
+ ]), j = gi.useSyncExternalStore(Z(
1894
+ (V) => B(v, (z, X) => {
1895
+ I(X, z) || V();
1896
1896
  }),
1897
1897
  // eslint-disable-next-line react-hooks/exhaustive-deps
1898
1898
  [
1899
1899
  a,
1900
1900
  v
1901
1901
  ]
1902
- ), H[0], H[1]), q = !k.current, Et = g[v] && g[v].length > 0, Ee = j.data, Te = D(Ee) ? V && Wa(V) ? Dt(V) : V : Ee, Je = j.error, Rr = S(Te), Ze = h ? D(Ee) ? Rr.current : Ee : Te, Ir = Et && !D(Je) ? !1 : q && !D(s) ? s : _().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
- async (P) => {
1902
+ ), H[0], H[1]), q = !k.current, Et = g[v] && g[v].length > 0, Ee = j.data, Te = D(Ee) ? P && Ga(P) ? Dt(P) : P : Ee, Je = j.error, Ir = S(Te), Ze = h ? D(Ee) ? Ir.current : Ee : Te, Ar = Et && !D(Je) ? !1 : q && !D(s) ? s : _().isPaused() ? !1 : o ? D(Te) ? !1 : c : D(Te) || c, $r = !!(v && t && q && Ar), Cn = D(j.isValidating) ? $r : j.isValidating, Nn = D(j.isLoading) ? $r : j.isLoading, Ve = Z(
1903
+ async (V) => {
1904
1904
  const z = C.current;
1905
1905
  if (!v || !z || A.current || _().isPaused())
1906
1906
  return !1;
1907
1907
  let X, F, se = !0;
1908
- const Se = P || {}, K = !y[v] || !Se.dedupe, Q = () => ta ? !A.current && v === E.current && k.current : v === E.current, me = {
1908
+ const Se = V || {}, K = !y[v] || !Se.dedupe, Q = () => ra ? !A.current && v === E.current && k.current : v === E.current, me = {
1909
1909
  isValidating: !1,
1910
1910
  isLoading: !1
1911
- }, Lr = () => {
1912
- R(me);
1913
1911
  }, Or = () => {
1912
+ R(me);
1913
+ }, Br = () => {
1914
1914
  const re = y[v];
1915
1915
  re && re[1] === F && delete y[v];
1916
- }, Br = {
1916
+ }, Mr = {
1917
1917
  isValidating: !0
1918
1918
  };
1919
- D(T().data) && (Br.isLoading = !0);
1919
+ D(T().data) && (Mr.isLoading = !0);
1920
1920
  try {
1921
- if (K && (R(Br), r.loadingTimeout && D(T().data) && setTimeout(() => {
1921
+ if (K && (R(Mr), r.loadingTimeout && D(T().data) && setTimeout(() => {
1922
1922
  se && Q() && _().onLoadingSlow(v, r);
1923
1923
  }, r.loadingTimeout), y[v] = [
1924
1924
  z(x),
1925
- er()
1926
- ]), [X, F] = y[v], X = await X, K && setTimeout(Or, r.dedupingInterval), !y[v] || y[v][1] !== F)
1925
+ tr()
1926
+ ]), [X, F] = y[v], X = await X, K && setTimeout(Br, r.dedupingInterval), !y[v] || y[v][1] !== F)
1927
1927
  return K && Q() && _().onDiscarded(v), !1;
1928
1928
  me.error = ee;
1929
1929
  const re = p[v];
@@ -1931,21 +1931,21 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
1931
1931
  (F <= re[0] || // case 2
1932
1932
  F <= re[1] || // case 3
1933
1933
  re[1] === 0))
1934
- return Lr(), K && Q() && _().onDiscarded(v), !1;
1934
+ return Or(), K && Q() && _().onDiscarded(v), !1;
1935
1935
  const fe = T().data;
1936
1936
  me.data = n(fe, X) ? fe : X, K && Q() && _().onSuccess(X, v, r);
1937
1937
  } catch (re) {
1938
- Or();
1938
+ Br();
1939
1939
  const fe = _(), { shouldRetryOnError: Tt } = fe;
1940
- fe.isPaused() || (me.error = re, K && Q() && (fe.onError(re, v, fe), (Tt === !0 || ce(Tt) && Tt(re)) && (!_().revalidateOnFocus || !_().revalidateOnReconnect || w()) && fe.onErrorRetry(re, v, fe, (Nn) => {
1940
+ fe.isPaused() || (me.error = re, K && Q() && (fe.onError(re, v, fe), (Tt === !0 || ce(Tt) && Tt(re)) && (!_().revalidateOnFocus || !_().revalidateOnReconnect || w()) && fe.onErrorRetry(re, v, fe, (Rn) => {
1941
1941
  const St = g[v];
1942
- St && St[0] && St[0](ze.ERROR_REVALIDATE_EVENT, Nn);
1942
+ St && St[0] && St[0](ze.ERROR_REVALIDATE_EVENT, Rn);
1943
1943
  }, {
1944
1944
  retryCount: (Se.retryCount || 0) + 1,
1945
1945
  dedupe: !0
1946
1946
  })));
1947
1947
  }
1948
- return se = !1, Lr(), !0;
1948
+ return se = !1, Or(), !0;
1949
1949
  },
1950
1950
  // `setState` is immutable, and `eventsCallback`, `fnArg`, and
1951
1951
  // `keyValidating` are depending on `key`, so we can exclude them from
@@ -1962,72 +1962,72 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
1962
1962
  v,
1963
1963
  a
1964
1964
  ]
1965
- ), $r = Z(
1965
+ ), Lr = Z(
1966
1966
  // Use callback to make sure `keyRef.current` returns latest result every time
1967
- (...P) => Ya(a, E.current, ...P),
1967
+ (...V) => Ja(a, E.current, ...V),
1968
1968
  // eslint-disable-next-line react-hooks/exhaustive-deps
1969
1969
  []
1970
1970
  );
1971
1971
  if (Ot(() => {
1972
- C.current = t, N.current = r, D(Ee) || (Rr.current = Ee);
1972
+ C.current = t, N.current = r, D(Ee) || (Ir.current = Ee);
1973
1973
  }), Ot(() => {
1974
1974
  if (!v) return;
1975
- const P = Pe.bind(ee, Vt);
1975
+ const V = Ve.bind(ee, Pt);
1976
1976
  let z = 0;
1977
- const F = zi(v, g, (se, Se = {}) => {
1977
+ const F = Hi(v, g, (se, Se = {}) => {
1978
1978
  if (se == ze.FOCUS_EVENT) {
1979
1979
  const K = Date.now();
1980
- _().revalidateOnFocus && K > z && w() && (z = K + _().focusThrottleInterval, P());
1980
+ _().revalidateOnFocus && K > z && w() && (z = K + _().focusThrottleInterval, V());
1981
1981
  } else if (se == ze.RECONNECT_EVENT)
1982
- _().revalidateOnReconnect && w() && P();
1982
+ _().revalidateOnReconnect && w() && V();
1983
1983
  else {
1984
1984
  if (se == ze.MUTATE_EVENT)
1985
- return Pe();
1985
+ return Ve();
1986
1986
  if (se == ze.ERROR_REVALIDATE_EVENT)
1987
- return Pe(Se);
1987
+ return Ve(Se);
1988
1988
  }
1989
1989
  });
1990
1990
  return A.current = !1, E.current = v, k.current = !0, R({
1991
1991
  _k: x
1992
- }), Ir && (D(Te) || We ? P() : wi(P)), () => {
1992
+ }), Ar && (D(Te) || We ? V() : _i(V)), () => {
1993
1993
  A.current = !0, F();
1994
1994
  };
1995
1995
  }, [
1996
1996
  v
1997
1997
  ]), Ot(() => {
1998
- let P;
1998
+ let V;
1999
1999
  function z() {
2000
2000
  const F = ce(d) ? d(T().data) : d;
2001
- F && P !== -1 && (P = setTimeout(X, F));
2001
+ F && V !== -1 && (V = setTimeout(X, F));
2002
2002
  }
2003
2003
  function X() {
2004
- !T().error && (f || _().isVisible()) && (u || _().isOnline()) ? Pe(Vt).then(z) : z();
2004
+ !T().error && (f || _().isVisible()) && (u || _().isOnline()) ? Ve(Pt).then(z) : z();
2005
2005
  }
2006
2006
  return z(), () => {
2007
- P && (clearTimeout(P), P = -1);
2007
+ V && (clearTimeout(V), V = -1);
2008
2008
  };
2009
2009
  }, [
2010
2010
  d,
2011
2011
  f,
2012
2012
  u,
2013
2013
  v
2014
- ]), jn(Ze), o && D(Te) && v) {
2015
- if (!ta && We)
2014
+ ]), Kn(Ze), o && D(Te) && v) {
2015
+ if (!ra && We)
2016
2016
  throw new Error("Fallback data is required when using Suspense in SSR.");
2017
2017
  C.current = t, N.current = r, A.current = !1;
2018
- const P = b[v];
2019
- if (!D(P)) {
2020
- const z = $r(P);
2018
+ const V = b[v];
2019
+ if (!D(V)) {
2020
+ const z = Lr(V);
2021
2021
  Dt(z);
2022
2022
  }
2023
2023
  if (D(Je)) {
2024
- const z = Pe(Vt);
2024
+ const z = Ve(Pt);
2025
2025
  D(Ze) || (z.status = "fulfilled", z.value = !0), Dt(z);
2026
2026
  } else
2027
2027
  throw Je;
2028
2028
  }
2029
2029
  return {
2030
- mutate: $r,
2030
+ mutate: Lr,
2031
2031
  get data() {
2032
2032
  return O.data = !0, Ze;
2033
2033
  },
@@ -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, Sn;
2038
+ return O.isValidating = !0, Cn;
2039
2039
  },
2040
2040
  get isLoading() {
2041
- return O.isLoading = !0, Cn;
2041
+ return O.isLoading = !0, Nn;
2042
2042
  }
2043
2043
  };
2044
- }, Hi = Pi(Ui), he = {
2044
+ }, Wi = Ui(Fi), he = {
2045
2045
  GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
2046
2046
  location(latitude: $latitude, longitude: $longitude) {
2047
2047
  country
@@ -2189,11 +2189,11 @@ 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, Fi = async ({
2192
+ }, Qa = process.env.PUBLIC_SASSY_API_SERVER_URL, Gi = async ({
2193
2193
  query: e,
2194
2194
  data: t,
2195
2195
  headers: r = {}
2196
- }) => await fetch(`${Xa}/graphql`, {
2196
+ }) => await fetch(`${Qa}/graphql`, {
2197
2197
  method: "POST",
2198
2198
  credentials: "include",
2199
2199
  headers: {
@@ -2205,14 +2205,14 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2205
2205
  query: e,
2206
2206
  variables: t
2207
2207
  })
2208
- }), yr = async ({
2208
+ }), br = async ({
2209
2209
  accessToken: e,
2210
2210
  type: t,
2211
2211
  params: r = {}
2212
2212
  }) => {
2213
2213
  const a = t != null && t.data ? t.data(r) : r;
2214
2214
  try {
2215
- const n = `Bearer ${e}`, o = await Fi({
2215
+ const n = `Bearer ${e}`, o = await Gi({
2216
2216
  headers: {
2217
2217
  authorization: n
2218
2218
  },
@@ -2230,14 +2230,14 @@ 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
- }, Wi = async ({
2233
+ }, ji = async ({
2234
2234
  accessToken: e,
2235
2235
  name: t,
2236
2236
  data: r,
2237
2237
  method: a = "POST"
2238
2238
  }) => {
2239
2239
  const n = `Bearer ${e}`;
2240
- return await fetch(`${Xa}/api/${t}`, {
2240
+ return await fetch(`${Qa}/api/${t}`, {
2241
2241
  method: a,
2242
2242
  credentials: "include",
2243
2243
  headers: {
@@ -2246,13 +2246,13 @@ 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
- }, Gi = async ({
2249
+ }, qi = async ({
2250
2250
  provider: e,
2251
2251
  accessToken: t,
2252
2252
  username: r
2253
2253
  }) => {
2254
2254
  try {
2255
- await yr({
2255
+ await br({
2256
2256
  accessToken: t,
2257
2257
  type: Be.SET_USER_PREFERENCES,
2258
2258
  params: {
@@ -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 } = Hi(
2272
+ const { data: o, error: i, isLoading: s, mutate: c } = Wi(
2273
2273
  [t, ...r],
2274
2274
  (d) => e(d, n),
2275
2275
  { ...a }
@@ -2280,7 +2280,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2280
2280
  type: t,
2281
2281
  params: r
2282
2282
  }) => {
2283
- const a = await e(), n = await yr({
2283
+ const a = await e(), n = await br({
2284
2284
  accessToken: a,
2285
2285
  type: t,
2286
2286
  params: r
@@ -2288,18 +2288,18 @@ 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
- }, ji = async ([e, t], r) => gt({
2291
+ }, Ki = async ([e, t], r) => gt({
2292
2292
  getAccessToken: r,
2293
2293
  type: Be.GET_USER_PREFERENCES,
2294
2294
  params: {
2295
2295
  user: t
2296
2296
  }
2297
- }), br = ({
2297
+ }), vr = ({
2298
2298
  keys: e,
2299
2299
  getAccessToken: t,
2300
2300
  isPaused: r = !1
2301
2301
  }) => ht({
2302
- fetcher: ji,
2302
+ fetcher: Ki,
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
- }), qi = async ([e, t], r) => gt({
2312
+ }), Yi = 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
- }), Jc = ({
2318
+ }), Xc = ({
2319
2319
  keys: e,
2320
2320
  getAccessToken: t
2321
2321
  }) => ht({
2322
- fetcher: qi,
2322
+ fetcher: Yi,
2323
2323
  scope: "/stats",
2324
2324
  keys: e,
2325
2325
  swrOptions: {
@@ -2330,7 +2330,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2330
2330
  revalidateOnReconnect: !0
2331
2331
  },
2332
2332
  getAccessToken: t
2333
- }), Qa = async ([e, t, r, a], n) => gt({
2333
+ }), en = async ([e, t, r, a], n) => gt({
2334
2334
  getAccessToken: n,
2335
2335
  type: Be.GET_CHATS,
2336
2336
  params: {
@@ -2340,11 +2340,11 @@ 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
- }), Zc = ({
2343
+ }), Qc = ({
2344
2344
  keys: e,
2345
2345
  getAccessToken: t
2346
2346
  }) => ht({
2347
- fetcher: Qa,
2347
+ fetcher: en,
2348
2348
  scope: "/history",
2349
2349
  keys: e,
2350
2350
  getAccessToken: t,
@@ -2355,26 +2355,26 @@ 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
- }), Ki = ({
2358
+ }), Ji = ({
2359
2359
  keys: e,
2360
2360
  getAccessToken: t
2361
2361
  }) => {
2362
- Za(["/history", ...e], (r) => Qa(r, t));
2363
- }, en = async ([e], t) => gt({
2362
+ Xa(["/history", ...e], (r) => en(r, t));
2363
+ }, tn = async ([e], t) => gt({
2364
2364
  getAccessToken: t,
2365
2365
  type: Be.GET_SERVER_CAPABILITIES
2366
- }), Xc = ({
2366
+ }), ed = ({
2367
2367
  getAccessToken: e
2368
2368
  }) => ht({
2369
- fetcher: en,
2369
+ fetcher: tn,
2370
2370
  scope: "/capabilities",
2371
2371
  keys: [],
2372
2372
  getAccessToken: e
2373
- }), Yi = ({
2373
+ }), Zi = ({
2374
2374
  getAccessToken: e
2375
2375
  }) => {
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", Ji = "CHAT_RESTORE", Zi = (e, t) => {
2376
+ Xa(["/capabilities"], (t) => tn(t, e));
2377
+ }, nt = "CHAT_ADD_MESSAGE", rr = "CHAT_ADD_INTERNAL_MESSAGE", ar = "CHAT_SET_LOADING", nr = "CHAT_SET_STREAMING", Me = "CHAT_RESET", Xi = "CHAT_RESTORE", Qi = (e, t) => {
2378
2378
  var r, a, n, o, i, s, c, d, f, u, h, g;
2379
2379
  switch (t.type) {
2380
2380
  case nt: {
@@ -2414,7 +2414,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2414
2414
  ]
2415
2415
  };
2416
2416
  }
2417
- case tr: {
2417
+ case rr: {
2418
2418
  const p = (f = t.payload) == null ? void 0 : f.role, y = (u = t.payload) == null ? void 0 : u.content;
2419
2419
  return {
2420
2420
  ...e,
@@ -2429,12 +2429,12 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2429
2429
  ]
2430
2430
  };
2431
2431
  }
2432
- case rr:
2432
+ case ar:
2433
2433
  return {
2434
2434
  ...e,
2435
2435
  loading: t.payload
2436
2436
  };
2437
- case ar: {
2437
+ case nr: {
2438
2438
  let p = e.lastTriggeredTimestamp;
2439
2439
  return e.streaming !== t.payload && (p = (/* @__PURE__ */ new Date()).getTime()), {
2440
2440
  ...e,
@@ -2445,7 +2445,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2445
2445
  case Me: {
2446
2446
  let p = !1;
2447
2447
  return typeof ((h = t == null ? void 0 : t.payload) == null ? void 0 : h.privateChat) == "boolean" ? p = t.payload.privateChat : typeof e.privateChat == "boolean" && (p = e.privateChat), {
2448
- id: hr(),
2448
+ id: gr(),
2449
2449
  model: e.model,
2450
2450
  provider: ((g = t == null ? void 0 : t.payload) == null ? void 0 : g.provider) || e.provider,
2451
2451
  privateChat: p,
@@ -2456,7 +2456,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2456
2456
  lastTriggeredTimestamp: 0
2457
2457
  };
2458
2458
  }
2459
- case Ji: {
2459
+ case Xi: {
2460
2460
  const p = t.payload.messages.map((y) => ({
2461
2461
  role: y.role,
2462
2462
  content: y.content,
@@ -2476,7 +2476,7 @@ const Dt = U.use || // This extra generic is to avoid TypeScript mixing up the g
2476
2476
  default:
2477
2477
  return e;
2478
2478
  }
2479
- }, Xi = "z-20", Qi = "z-10", es = U.createContext({
2479
+ }, es = "z-20", ts = "z-10", rs = U.createContext({
2480
2480
  state: { searchString: "", sortedCell: "", sortDirection: "" },
2481
2481
  dispatch: () => {
2482
2482
  }
@@ -2513,19 +2513,19 @@ try {
2513
2513
  });
2514
2514
  } catch {
2515
2515
  }
2516
- const ts = "av-tooltip", rs = "av-tooltip-arrow", Ge = Math.min, Ne = Math.max, it = Math.round, de = (e) => ({
2516
+ const as = "av-tooltip", ns = "av-tooltip-arrow", Ge = Math.min, Ne = Math.max, it = Math.round, de = (e) => ({
2517
2517
  x: e,
2518
2518
  y: e
2519
- }), as = {
2519
+ }), os = {
2520
2520
  left: "right",
2521
2521
  right: "left",
2522
2522
  bottom: "top",
2523
2523
  top: "bottom"
2524
- }, ns = {
2524
+ }, is = {
2525
2525
  start: "end",
2526
2526
  end: "start"
2527
2527
  };
2528
- function nr(e, t, r) {
2528
+ function or(e, t, r) {
2529
2529
  return Ne(e, Ge(t, r));
2530
2530
  }
2531
2531
  function qe(e, t) {
@@ -2537,32 +2537,32 @@ function xe(e) {
2537
2537
  function Ke(e) {
2538
2538
  return e.split("-")[1];
2539
2539
  }
2540
- function tn(e) {
2540
+ function rn(e) {
2541
2541
  return e === "x" ? "y" : "x";
2542
2542
  }
2543
- function vr(e) {
2543
+ function kr(e) {
2544
2544
  return e === "y" ? "height" : "width";
2545
2545
  }
2546
2546
  function Ie(e) {
2547
2547
  return ["top", "bottom"].includes(xe(e)) ? "y" : "x";
2548
2548
  }
2549
- function kr(e) {
2550
- return tn(Ie(e));
2549
+ function wr(e) {
2550
+ return rn(Ie(e));
2551
2551
  }
2552
- function os(e, t, r) {
2552
+ function ss(e, t, r) {
2553
2553
  r === void 0 && (r = !1);
2554
- const a = Ke(e), n = kr(e), o = vr(n);
2554
+ const a = Ke(e), n = wr(e), o = kr(n);
2555
2555
  let i = n === "x" ? a === (r ? "end" : "start") ? "right" : "left" : a === "start" ? "bottom" : "top";
2556
2556
  return t.reference[o] > t.floating[o] && (i = st(i)), [i, st(i)];
2557
2557
  }
2558
- function is(e) {
2558
+ function ls(e) {
2559
2559
  const t = st(e);
2560
- return [or(e), t, or(t)];
2560
+ return [ir(e), t, ir(t)];
2561
2561
  }
2562
- function or(e) {
2563
- return e.replace(/start|end/g, (t) => ns[t]);
2562
+ function ir(e) {
2563
+ return e.replace(/start|end/g, (t) => is[t]);
2564
2564
  }
2565
- function ss(e, t, r) {
2565
+ function cs(e, t, r) {
2566
2566
  const a = ["left", "right"], n = ["right", "left"], o = ["top", "bottom"], i = ["bottom", "top"];
2567
2567
  switch (e) {
2568
2568
  case "top":
@@ -2575,15 +2575,15 @@ function ss(e, t, r) {
2575
2575
  return [];
2576
2576
  }
2577
2577
  }
2578
- function ls(e, t, r, a) {
2578
+ function ds(e, t, r, a) {
2579
2579
  const n = Ke(e);
2580
- let o = ss(xe(e), r === "start", a);
2581
- return n && (o = o.map((i) => i + "-" + n), t && (o = o.concat(o.map(or)))), o;
2580
+ let o = cs(xe(e), r === "start", a);
2581
+ return n && (o = o.map((i) => i + "-" + n), t && (o = o.concat(o.map(ir)))), o;
2582
2582
  }
2583
2583
  function st(e) {
2584
- return e.replace(/left|right|bottom|top/g, (t) => as[t]);
2584
+ return e.replace(/left|right|bottom|top/g, (t) => os[t]);
2585
2585
  }
2586
- function cs(e) {
2586
+ function us(e) {
2587
2587
  return {
2588
2588
  top: 0,
2589
2589
  right: 0,
@@ -2592,8 +2592,8 @@ function cs(e) {
2592
2592
  ...e
2593
2593
  };
2594
2594
  }
2595
- function rn(e) {
2596
- return typeof e != "number" ? cs(e) : {
2595
+ function an(e) {
2596
+ return typeof e != "number" ? us(e) : {
2597
2597
  top: e,
2598
2598
  right: e,
2599
2599
  bottom: e,
@@ -2618,12 +2618,12 @@ function lt(e) {
2618
2618
  y: r
2619
2619
  };
2620
2620
  }
2621
- function na(e, t, r) {
2621
+ function oa(e, t, r) {
2622
2622
  let {
2623
2623
  reference: a,
2624
2624
  floating: n
2625
2625
  } = e;
2626
- const o = Ie(t), i = kr(t), s = vr(i), c = xe(t), d = o === "y", f = a.x + a.width / 2 - n.width / 2, u = a.y + a.height / 2 - n.height / 2, h = a[s] / 2 - n[s] / 2;
2626
+ const o = Ie(t), i = wr(t), s = kr(i), c = xe(t), d = o === "y", f = a.x + a.width / 2 - n.width / 2, u = a.y + a.height / 2 - n.height / 2, h = a[s] / 2 - n[s] / 2;
2627
2627
  let g;
2628
2628
  switch (c) {
2629
2629
  case "top":
@@ -2666,7 +2666,7 @@ function na(e, t, r) {
2666
2666
  }
2667
2667
  return g;
2668
2668
  }
2669
- const ds = async (e, t, r) => {
2669
+ const ms = async (e, t, r) => {
2670
2670
  const {
2671
2671
  placement: a = "bottom",
2672
2672
  strategy: n = "absolute",
@@ -2680,7 +2680,7 @@ const ds = async (e, t, r) => {
2680
2680
  }), {
2681
2681
  x: f,
2682
2682
  y: u
2683
- } = na(d, a, c), h = a, g = {}, p = 0;
2683
+ } = oa(d, a, c), h = a, g = {}, p = 0;
2684
2684
  for (let y = 0; y < s.length; y++) {
2685
2685
  const {
2686
2686
  name: b,
@@ -2717,7 +2717,7 @@ const ds = async (e, t, r) => {
2717
2717
  }) : E.rects), {
2718
2718
  x: f,
2719
2719
  y: u
2720
- } = na(d, h, c)), y = -1);
2720
+ } = oa(d, h, c)), y = -1);
2721
2721
  }
2722
2722
  return {
2723
2723
  x: f,
@@ -2727,7 +2727,7 @@ const ds = async (e, t, r) => {
2727
2727
  middlewareData: g
2728
2728
  };
2729
2729
  };
2730
- async function an(e, t) {
2730
+ async function nn(e, t) {
2731
2731
  var r;
2732
2732
  t === void 0 && (t = {});
2733
2733
  const {
@@ -2743,7 +2743,7 @@ async function an(e, t) {
2743
2743
  elementContext: u = "floating",
2744
2744
  altBoundary: h = !1,
2745
2745
  padding: g = 0
2746
- } = qe(t, e), p = rn(g), y = s[h ? u === "floating" ? "reference" : "floating" : u], b = lt(await o.getClippingRect({
2746
+ } = qe(t, e), p = an(g), y = s[h ? u === "floating" ? "reference" : "floating" : u], b = lt(await o.getClippingRect({
2747
2747
  element: (r = await (o.isElement == null ? void 0 : o.isElement(y))) == null || r ? y : y.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
2748
2748
  boundary: d,
2749
2749
  rootBoundary: f,
@@ -2772,7 +2772,7 @@ async function an(e, t) {
2772
2772
  right: (A.right - b.right + p.right) / k.x
2773
2773
  };
2774
2774
  }
2775
- const us = (e) => ({
2775
+ const fs = (e) => ({
2776
2776
  name: "arrow",
2777
2777
  options: e,
2778
2778
  async fn(t) {
@@ -2790,18 +2790,18 @@ const us = (e) => ({
2790
2790
  } = qe(e, t) || {};
2791
2791
  if (d == null)
2792
2792
  return {};
2793
- const u = rn(f), h = {
2793
+ const u = an(f), h = {
2794
2794
  x: r,
2795
2795
  y: a
2796
- }, g = kr(n), p = vr(g), y = await i.getDimensions(d), b = g === "y", v = b ? "top" : "left", x = b ? "bottom" : "right", k = b ? "clientHeight" : "clientWidth", A = o.reference[p] + o.reference[g] - h[g] - o.floating[p], E = h[g] - o.reference[g], C = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
2796
+ }, g = wr(n), p = kr(g), y = await i.getDimensions(d), b = g === "y", v = b ? "top" : "left", x = b ? "bottom" : "right", k = b ? "clientHeight" : "clientWidth", A = o.reference[p] + o.reference[g] - h[g] - o.floating[p], E = h[g] - o.reference[g], C = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
2797
2797
  let N = C ? C[k] : 0;
2798
2798
  (!N || !await (i.isElement == null ? void 0 : i.isElement(C))) && (N = s.floating[k] || o.floating[p]);
2799
- const _ = A / 2 - E / 2, w = N / 2 - y[p] / 2 - 1, T = Ge(u[v], w), R = Ge(u[x], w), B = T, $ = N - y[p] - R, O = N / 2 - y[p] / 2 + _, V = nr(B, O, $), I = !c.arrow && Ke(n) != null && O !== V && o.reference[p] / 2 - (O < B ? T : R) - y[p] / 2 < 0, H = I ? O < B ? O - B : O - $ : 0;
2799
+ const _ = A / 2 - E / 2, w = N / 2 - y[p] / 2 - 1, T = Ge(u[v], w), R = Ge(u[x], w), B = T, $ = N - y[p] - R, O = N / 2 - y[p] / 2 + _, P = or(B, O, $), I = !c.arrow && Ke(n) != null && O !== P && o.reference[p] / 2 - (O < B ? T : R) - y[p] / 2 < 0, H = I ? O < B ? O - B : O - $ : 0;
2800
2800
  return {
2801
2801
  [g]: h[g] + H,
2802
2802
  data: {
2803
- [g]: V,
2804
- centerOffset: O - V - H,
2803
+ [g]: P,
2804
+ centerOffset: O - P - H,
2805
2805
  ...I && {
2806
2806
  alignmentOffset: H
2807
2807
  }
@@ -2809,7 +2809,7 @@ const us = (e) => ({
2809
2809
  reset: I
2810
2810
  };
2811
2811
  }
2812
- }), ms = function(e) {
2812
+ }), hs = function(e) {
2813
2813
  return e === void 0 && (e = {}), {
2814
2814
  name: "flip",
2815
2815
  options: e,
@@ -2833,12 +2833,12 @@ const us = (e) => ({
2833
2833
  } = qe(e, t);
2834
2834
  if ((r = o.arrow) != null && r.alignmentOffset)
2835
2835
  return {};
2836
- const v = xe(n), x = Ie(s), k = xe(s) === s, A = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), E = h || (k || !y ? [st(s)] : is(s)), C = p !== "none";
2837
- !h && C && E.push(...ls(s, y, p, A));
2838
- const N = [s, ...E], _ = await an(t, b), w = [];
2836
+ const v = xe(n), x = Ie(s), k = xe(s) === s, A = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), E = h || (k || !y ? [st(s)] : ls(s)), C = p !== "none";
2837
+ !h && C && E.push(...ds(s, y, p, A));
2838
+ const N = [s, ...E], _ = await nn(t, b), w = [];
2839
2839
  let T = ((a = o.flip) == null ? void 0 : a.overflows) || [];
2840
2840
  if (f && w.push(_[v]), u) {
2841
- const O = os(n, i, A);
2841
+ const O = ss(n, i, A);
2842
2842
  w.push(_[O[0]], _[O[1]]);
2843
2843
  }
2844
2844
  if (T = [...T, {
@@ -2846,15 +2846,15 @@ const us = (e) => ({
2846
2846
  overflows: w
2847
2847
  }], !w.every((O) => O <= 0)) {
2848
2848
  var R, B;
2849
- const O = (((R = o.flip) == null ? void 0 : R.index) || 0) + 1, V = N[O];
2850
- if (V)
2849
+ const O = (((R = o.flip) == null ? void 0 : R.index) || 0) + 1, P = N[O];
2850
+ if (P)
2851
2851
  return {
2852
2852
  data: {
2853
2853
  index: O,
2854
2854
  overflows: T
2855
2855
  },
2856
2856
  reset: {
2857
- placement: V
2857
+ placement: P
2858
2858
  }
2859
2859
  };
2860
2860
  let I = (B = T.filter((H) => H.overflows[0] <= 0).sort((H, j) => H.overflows[1] - j.overflows[1])[0]) == null ? void 0 : B.placement;
@@ -2889,7 +2889,7 @@ const us = (e) => ({
2889
2889
  }
2890
2890
  };
2891
2891
  };
2892
- async function fs(e, t) {
2892
+ async function gs(e, t) {
2893
2893
  const {
2894
2894
  placement: r,
2895
2895
  platform: a,
@@ -2916,7 +2916,7 @@ async function fs(e, t) {
2916
2916
  y: g * f
2917
2917
  };
2918
2918
  }
2919
- const hs = function(e) {
2919
+ const ps = function(e) {
2920
2920
  return e === void 0 && (e = 0), {
2921
2921
  name: "offset",
2922
2922
  options: e,
@@ -2927,7 +2927,7 @@ const hs = function(e) {
2927
2927
  y: o,
2928
2928
  placement: i,
2929
2929
  middlewareData: s
2930
- } = t, c = await fs(t, e);
2930
+ } = t, c = await gs(t, e);
2931
2931
  return i === ((r = s.offset) == null ? void 0 : r.placement) && (a = s.arrow) != null && a.alignmentOffset ? {} : {
2932
2932
  x: n + c.x,
2933
2933
  y: o + c.y,
@@ -2938,7 +2938,7 @@ const hs = function(e) {
2938
2938
  };
2939
2939
  }
2940
2940
  };
2941
- }, gs = function(e) {
2941
+ }, ys = function(e) {
2942
2942
  return e === void 0 && (e = {}), {
2943
2943
  name: "shift",
2944
2944
  options: e,
@@ -2966,15 +2966,15 @@ const hs = function(e) {
2966
2966
  } = qe(e, t), d = {
2967
2967
  x: r,
2968
2968
  y: a
2969
- }, f = await an(t, c), u = Ie(xe(n)), h = tn(u);
2969
+ }, f = await nn(t, c), u = Ie(xe(n)), h = rn(u);
2970
2970
  let g = d[h], p = d[u];
2971
2971
  if (o) {
2972
2972
  const b = h === "y" ? "top" : "left", v = h === "y" ? "bottom" : "right", x = g + f[b], k = g - f[v];
2973
- g = nr(x, g, k);
2973
+ g = or(x, g, k);
2974
2974
  }
2975
2975
  if (i) {
2976
2976
  const b = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", x = p + f[b], k = p - f[v];
2977
- p = nr(x, p, k);
2977
+ p = or(x, p, k);
2978
2978
  }
2979
2979
  const y = s.fn({
2980
2980
  ...t,
@@ -2999,7 +2999,7 @@ function yt() {
2999
2999
  return typeof window < "u";
3000
3000
  }
3001
3001
  function De(e) {
3002
- return nn(e) ? (e.nodeName || "").toLowerCase() : "#document";
3002
+ return on(e) ? (e.nodeName || "").toLowerCase() : "#document";
3003
3003
  }
3004
3004
  function te(e) {
3005
3005
  var t;
@@ -3007,9 +3007,9 @@ function te(e) {
3007
3007
  }
3008
3008
  function be(e) {
3009
3009
  var t;
3010
- return (t = (nn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
3010
+ return (t = (on(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
3011
3011
  }
3012
- function nn(e) {
3012
+ function on(e) {
3013
3013
  return yt() ? e instanceof Node || e instanceof te(e).Node : !1;
3014
3014
  }
3015
3015
  function ae(e) {
@@ -3018,7 +3018,7 @@ function ae(e) {
3018
3018
  function ue(e) {
3019
3019
  return yt() ? e instanceof HTMLElement || e instanceof te(e).HTMLElement : !1;
3020
3020
  }
3021
- function oa(e) {
3021
+ function ia(e) {
3022
3022
  return !yt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof te(e).ShadowRoot;
3023
3023
  }
3024
3024
  function Ye(e) {
@@ -3030,7 +3030,7 @@ function Ye(e) {
3030
3030
  } = ne(e);
3031
3031
  return /auto|scroll|overlay|hidden|clip/.test(t + a + r) && !["inline", "contents"].includes(n);
3032
3032
  }
3033
- function ps(e) {
3033
+ function bs(e) {
3034
3034
  return ["table", "td", "th"].includes(De(e));
3035
3035
  }
3036
3036
  function bt(e) {
@@ -3042,14 +3042,14 @@ function bt(e) {
3042
3042
  }
3043
3043
  });
3044
3044
  }
3045
- function wr(e) {
3046
- const t = xr(), r = ae(e) ? ne(e) : e;
3045
+ function xr(e) {
3046
+ const t = _r(), r = ae(e) ? ne(e) : e;
3047
3047
  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));
3048
3048
  }
3049
- function ys(e) {
3049
+ function vs(e) {
3050
3050
  let t = we(e);
3051
3051
  for (; ue(t) && !Ae(t); ) {
3052
- if (wr(t))
3052
+ if (xr(t))
3053
3053
  return t;
3054
3054
  if (bt(t))
3055
3055
  return null;
@@ -3057,7 +3057,7 @@ function ys(e) {
3057
3057
  }
3058
3058
  return null;
3059
3059
  }
3060
- function xr() {
3060
+ function _r() {
3061
3061
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
3062
3062
  }
3063
3063
  function Ae(e) {
@@ -3082,25 +3082,25 @@ function we(e) {
3082
3082
  // Step into the shadow DOM of the parent of a slotted node.
3083
3083
  e.assignedSlot || // DOM Element detected.
3084
3084
  e.parentNode || // ShadowRoot detected.
3085
- oa(e) && e.host || // Fallback.
3085
+ ia(e) && e.host || // Fallback.
3086
3086
  be(e)
3087
3087
  );
3088
- return oa(t) ? t.host : t;
3088
+ return ia(t) ? t.host : t;
3089
3089
  }
3090
- function on(e) {
3090
+ function sn(e) {
3091
3091
  const t = we(e);
3092
- return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ue(t) && Ye(t) ? t : on(t);
3092
+ return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ue(t) && Ye(t) ? t : sn(t);
3093
3093
  }
3094
- function sn(e, t, r) {
3094
+ function ln(e, t, r) {
3095
3095
  var a;
3096
3096
  t === void 0 && (t = []);
3097
- const n = on(e), o = n === ((a = e.ownerDocument) == null ? void 0 : a.body), i = te(n);
3098
- return o ? t.concat(i, i.visualViewport || [], Ye(n) ? n : [], []) : t.concat(n, sn(n, []));
3097
+ const n = sn(e), o = n === ((a = e.ownerDocument) == null ? void 0 : a.body), i = te(n);
3098
+ return o ? t.concat(i, i.visualViewport || [], Ye(n) ? n : [], []) : t.concat(n, ln(n, []));
3099
3099
  }
3100
- function ia(e) {
3100
+ function sa(e) {
3101
3101
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
3102
3102
  }
3103
- function ln(e) {
3103
+ function cn(e) {
3104
3104
  const t = ne(e);
3105
3105
  let r = parseFloat(t.width) || 0, a = parseFloat(t.height) || 0;
3106
3106
  const n = ue(e), o = n ? e.offsetWidth : r, i = n ? e.offsetHeight : a, s = it(r) !== o || it(a) !== i;
@@ -3110,48 +3110,48 @@ function ln(e) {
3110
3110
  $: s
3111
3111
  };
3112
3112
  }
3113
- function cn(e) {
3113
+ function dn(e) {
3114
3114
  return ae(e) ? e : e.contextElement;
3115
3115
  }
3116
3116
  function Re(e) {
3117
- const t = cn(e);
3117
+ const t = dn(e);
3118
3118
  if (!ue(t))
3119
3119
  return de(1);
3120
3120
  const r = t.getBoundingClientRect(), {
3121
3121
  width: a,
3122
3122
  height: n,
3123
3123
  $: o
3124
- } = ln(t);
3124
+ } = cn(t);
3125
3125
  let i = (o ? it(r.width) : r.width) / a, s = (o ? it(r.height) : r.height) / n;
3126
3126
  return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
3127
3127
  x: i,
3128
3128
  y: s
3129
3129
  };
3130
3130
  }
3131
- const bs = /* @__PURE__ */ de(0);
3132
- function dn(e) {
3131
+ const ks = /* @__PURE__ */ de(0);
3132
+ function un(e) {
3133
3133
  const t = te(e);
3134
- return !xr() || !t.visualViewport ? bs : {
3134
+ return !_r() || !t.visualViewport ? ks : {
3135
3135
  x: t.visualViewport.offsetLeft,
3136
3136
  y: t.visualViewport.offsetTop
3137
3137
  };
3138
3138
  }
3139
- function vs(e, t, r) {
3139
+ function ws(e, t, r) {
3140
3140
  return t === void 0 && (t = !1), !r || t && r !== te(e) ? !1 : t;
3141
3141
  }
3142
3142
  function je(e, t, r, a) {
3143
3143
  t === void 0 && (t = !1), r === void 0 && (r = !1);
3144
- const n = e.getBoundingClientRect(), o = cn(e);
3144
+ const n = e.getBoundingClientRect(), o = dn(e);
3145
3145
  let i = de(1);
3146
3146
  t && (a ? ae(a) && (i = Re(a)) : i = Re(e));
3147
- const s = vs(o, r, a) ? dn(o) : de(0);
3147
+ const s = ws(o, r, a) ? un(o) : de(0);
3148
3148
  let c = (n.left + s.x) / i.x, d = (n.top + s.y) / i.y, f = n.width / i.x, u = n.height / i.y;
3149
3149
  if (o) {
3150
3150
  const h = te(o), g = a && ae(a) ? te(a) : a;
3151
- let p = h, y = ia(p);
3151
+ let p = h, y = sa(p);
3152
3152
  for (; y && a && g !== p; ) {
3153
3153
  const b = Re(y), v = y.getBoundingClientRect(), x = ne(y), k = v.left + (y.clientLeft + parseFloat(x.paddingLeft)) * b.x, A = v.top + (y.clientTop + parseFloat(x.paddingTop)) * b.y;
3154
- c *= b.x, d *= b.y, f *= b.x, u *= b.y, c += k, d += A, p = te(y), y = ia(p);
3154
+ c *= b.x, d *= b.y, f *= b.x, u *= b.y, c += k, d += A, p = te(y), y = sa(p);
3155
3155
  }
3156
3156
  }
3157
3157
  return lt({
@@ -3161,22 +3161,22 @@ function je(e, t, r, a) {
3161
3161
  y: d
3162
3162
  });
3163
3163
  }
3164
- function _r(e, t) {
3164
+ function Er(e, t) {
3165
3165
  const r = vt(e).scrollLeft;
3166
3166
  return t ? t.left + r : je(be(e)).left + r;
3167
3167
  }
3168
- function un(e, t, r) {
3168
+ function mn(e, t, r) {
3169
3169
  r === void 0 && (r = !1);
3170
3170
  const a = e.getBoundingClientRect(), n = a.left + t.scrollLeft - (r ? 0 : (
3171
3171
  // RTL <body> scrollbar.
3172
- _r(e, a)
3172
+ Er(e, a)
3173
3173
  )), o = a.top + t.scrollTop;
3174
3174
  return {
3175
3175
  x: n,
3176
3176
  y: o
3177
3177
  };
3178
3178
  }
3179
- function ks(e) {
3179
+ function xs(e) {
3180
3180
  let {
3181
3181
  elements: t,
3182
3182
  rect: r,
@@ -3195,7 +3195,7 @@ function ks(e) {
3195
3195
  const g = je(a);
3196
3196
  d = Re(a), f.x = g.x + a.clientLeft, f.y = g.y + a.clientTop;
3197
3197
  }
3198
- const h = i && !u && !o ? un(i, c, !0) : de(0);
3198
+ const h = i && !u && !o ? mn(i, c, !0) : de(0);
3199
3199
  return {
3200
3200
  width: r.width * d.x,
3201
3201
  height: r.height * d.y,
@@ -3203,12 +3203,12 @@ function ks(e) {
3203
3203
  y: r.y * d.y - c.scrollTop * d.y + f.y + h.y
3204
3204
  };
3205
3205
  }
3206
- function ws(e) {
3206
+ function _s(e) {
3207
3207
  return Array.from(e.getClientRects());
3208
3208
  }
3209
- function xs(e) {
3209
+ function Es(e) {
3210
3210
  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);
3211
- let i = -r.scrollLeft + _r(e);
3211
+ let i = -r.scrollLeft + Er(e);
3212
3212
  const s = -r.scrollTop;
3213
3213
  return ne(a).direction === "rtl" && (i += Ne(t.clientWidth, a.clientWidth) - n), {
3214
3214
  width: n,
@@ -3217,12 +3217,12 @@ function xs(e) {
3217
3217
  y: s
3218
3218
  };
3219
3219
  }
3220
- function _s(e, t) {
3220
+ function Ts(e, t) {
3221
3221
  const r = te(e), a = be(e), n = r.visualViewport;
3222
3222
  let o = a.clientWidth, i = a.clientHeight, s = 0, c = 0;
3223
3223
  if (n) {
3224
3224
  o = n.width, i = n.height;
3225
- const d = xr();
3225
+ const d = _r();
3226
3226
  (!d || d && t === "fixed") && (s = n.offsetLeft, c = n.offsetTop);
3227
3227
  }
3228
3228
  return {
@@ -3232,7 +3232,7 @@ function _s(e, t) {
3232
3232
  y: c
3233
3233
  };
3234
3234
  }
3235
- function Es(e, t) {
3235
+ function Ss(e, t) {
3236
3236
  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;
3237
3237
  return {
3238
3238
  width: i,
@@ -3241,16 +3241,16 @@ function Es(e, t) {
3241
3241
  y: d
3242
3242
  };
3243
3243
  }
3244
- function sa(e, t, r) {
3244
+ function la(e, t, r) {
3245
3245
  let a;
3246
3246
  if (t === "viewport")
3247
- a = _s(e, r);
3247
+ a = Ts(e, r);
3248
3248
  else if (t === "document")
3249
- a = xs(be(e));
3249
+ a = Es(be(e));
3250
3250
  else if (ae(t))
3251
- a = Es(t, r);
3251
+ a = Ss(t, r);
3252
3252
  else {
3253
- const n = dn(e);
3253
+ const n = un(e);
3254
3254
  a = {
3255
3255
  x: t.x - n.x,
3256
3256
  y: t.y - n.y,
@@ -3260,34 +3260,34 @@ function sa(e, t, r) {
3260
3260
  }
3261
3261
  return lt(a);
3262
3262
  }
3263
- function mn(e, t) {
3263
+ function fn(e, t) {
3264
3264
  const r = we(e);
3265
- return r === t || !ae(r) || Ae(r) ? !1 : ne(r).position === "fixed" || mn(r, t);
3265
+ return r === t || !ae(r) || Ae(r) ? !1 : ne(r).position === "fixed" || fn(r, t);
3266
3266
  }
3267
- function Ts(e, t) {
3267
+ function Cs(e, t) {
3268
3268
  const r = t.get(e);
3269
3269
  if (r)
3270
3270
  return r;
3271
- let a = sn(e, []).filter((s) => ae(s) && De(s) !== "body"), n = null;
3271
+ let a = ln(e, []).filter((s) => ae(s) && De(s) !== "body"), n = null;
3272
3272
  const o = ne(e).position === "fixed";
3273
3273
  let i = o ? we(e) : e;
3274
3274
  for (; ae(i) && !Ae(i); ) {
3275
- const s = ne(i), c = wr(i);
3276
- !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
+ const s = ne(i), c = xr(i);
3276
+ !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);
3277
3277
  }
3278
3278
  return t.set(e, a), a;
3279
3279
  }
3280
- function Ss(e) {
3280
+ function Ns(e) {
3281
3281
  let {
3282
3282
  element: t,
3283
3283
  boundary: r,
3284
3284
  rootBoundary: a,
3285
3285
  strategy: n
3286
3286
  } = e;
3287
- const o = [...r === "clippingAncestors" ? bt(t) ? [] : Ts(t, this._c) : [].concat(r), a], i = o[0], s = o.reduce((c, d) => {
3288
- const f = sa(t, d, n);
3287
+ const o = [...r === "clippingAncestors" ? bt(t) ? [] : Cs(t, this._c) : [].concat(r), a], i = o[0], s = o.reduce((c, d) => {
3288
+ const f = la(t, d, n);
3289
3289
  return c.top = Ne(f.top, c.top), c.right = Ge(f.right, c.right), c.bottom = Ge(f.bottom, c.bottom), c.left = Ne(f.left, c.left), c;
3290
- }, sa(t, i, n));
3290
+ }, la(t, i, n));
3291
3291
  return {
3292
3292
  width: s.right - s.left,
3293
3293
  height: s.bottom - s.top,
@@ -3295,17 +3295,17 @@ function Ss(e) {
3295
3295
  y: s.top
3296
3296
  };
3297
3297
  }
3298
- function Cs(e) {
3298
+ function Rs(e) {
3299
3299
  const {
3300
3300
  width: t,
3301
3301
  height: r
3302
- } = ln(e);
3302
+ } = cn(e);
3303
3303
  return {
3304
3304
  width: t,
3305
3305
  height: r
3306
3306
  };
3307
3307
  }
3308
- function Ns(e, t, r) {
3308
+ function Is(e, t, r) {
3309
3309
  const a = ue(t), n = be(t), o = r === "fixed", i = je(e, !0, o, t);
3310
3310
  let s = {
3311
3311
  scrollLeft: 0,
@@ -3316,8 +3316,8 @@ function Ns(e, t, r) {
3316
3316
  if ((De(t) !== "body" || Ye(n)) && (s = vt(t)), a) {
3317
3317
  const h = je(t, !0, o, t);
3318
3318
  c.x = h.x + t.clientLeft, c.y = h.y + t.clientTop;
3319
- } else n && (c.x = _r(n));
3320
- const d = n && !a && !o ? un(n, s) : de(0), f = i.left + s.scrollLeft - c.x - d.x, u = i.top + s.scrollTop - c.y - d.y;
3319
+ } else n && (c.x = Er(n));
3320
+ const d = n && !a && !o ? mn(n, s) : de(0), f = i.left + s.scrollLeft - c.x - d.x, u = i.top + s.scrollTop - c.y - d.y;
3321
3321
  return {
3322
3322
  x: f,
3323
3323
  y: u,
@@ -3325,10 +3325,10 @@ function Ns(e, t, r) {
3325
3325
  height: i.height
3326
3326
  };
3327
3327
  }
3328
- function Pt(e) {
3328
+ function Vt(e) {
3329
3329
  return ne(e).position === "static";
3330
3330
  }
3331
- function la(e, t) {
3331
+ function ca(e, t) {
3332
3332
  if (!ue(e) || ne(e).position === "fixed")
3333
3333
  return null;
3334
3334
  if (t)
@@ -3336,28 +3336,28 @@ function la(e, t) {
3336
3336
  let r = e.offsetParent;
3337
3337
  return be(e) === r && (r = r.ownerDocument.body), r;
3338
3338
  }
3339
- function fn(e, t) {
3339
+ function hn(e, t) {
3340
3340
  const r = te(e);
3341
3341
  if (bt(e))
3342
3342
  return r;
3343
3343
  if (!ue(e)) {
3344
3344
  let n = we(e);
3345
3345
  for (; n && !Ae(n); ) {
3346
- if (ae(n) && !Pt(n))
3346
+ if (ae(n) && !Vt(n))
3347
3347
  return n;
3348
3348
  n = we(n);
3349
3349
  }
3350
3350
  return r;
3351
3351
  }
3352
- let a = la(e, t);
3353
- for (; a && ps(a) && Pt(a); )
3354
- a = la(a, t);
3355
- return a && Ae(a) && Pt(a) && !wr(a) ? r : a || ys(e) || r;
3352
+ let a = ca(e, t);
3353
+ for (; a && bs(a) && Vt(a); )
3354
+ a = ca(a, t);
3355
+ return a && Ae(a) && Vt(a) && !xr(a) ? r : a || vs(e) || r;
3356
3356
  }
3357
- const Rs = async function(e) {
3358
- const t = this.getOffsetParent || fn, r = this.getDimensions, a = await r(e.floating);
3357
+ const As = async function(e) {
3358
+ const t = this.getOffsetParent || hn, r = this.getDimensions, a = await r(e.floating);
3359
3359
  return {
3360
- reference: Ns(e.reference, await t(e.floating), e.strategy),
3360
+ reference: Is(e.reference, await t(e.floating), e.strategy),
3361
3361
  floating: {
3362
3362
  x: 0,
3363
3363
  y: 0,
@@ -3366,34 +3366,34 @@ const Rs = async function(e) {
3366
3366
  }
3367
3367
  };
3368
3368
  };
3369
- function Is(e) {
3369
+ function $s(e) {
3370
3370
  return ne(e).direction === "rtl";
3371
3371
  }
3372
- const As = {
3373
- convertOffsetParentRelativeRectToViewportRelativeRect: ks,
3372
+ const Ls = {
3373
+ convertOffsetParentRelativeRectToViewportRelativeRect: xs,
3374
3374
  getDocumentElement: be,
3375
- getClippingRect: Ss,
3376
- getOffsetParent: fn,
3377
- getElementRects: Rs,
3378
- getClientRects: ws,
3379
- getDimensions: Cs,
3375
+ getClippingRect: Ns,
3376
+ getOffsetParent: hn,
3377
+ getElementRects: As,
3378
+ getClientRects: _s,
3379
+ getDimensions: Rs,
3380
3380
  getScale: Re,
3381
3381
  isElement: ae,
3382
- isRTL: Is
3383
- }, $s = hs, Ls = gs, Os = ms, Bs = us, Ms = (e, t, r) => {
3382
+ isRTL: $s
3383
+ }, Os = ps, Bs = ys, Ms = hs, Ds = fs, Ps = (e, t, r) => {
3384
3384
  const a = /* @__PURE__ */ new Map(), n = {
3385
- platform: As,
3385
+ platform: Ls,
3386
3386
  ...r
3387
3387
  }, o = {
3388
3388
  ...n.platform,
3389
3389
  _c: a
3390
3390
  };
3391
- return ds(e, t, {
3391
+ return ms(e, t, {
3392
3392
  ...n,
3393
3393
  platform: o
3394
3394
  });
3395
- }, ca = ["mousedown", "touchstart"];
3396
- function Ds(e, t, r) {
3395
+ }, da = ["mousedown", "touchstart"];
3396
+ function Vs(e, t, r) {
3397
3397
  const a = S(null);
3398
3398
  return M(() => {
3399
3399
  const n = (o) => {
@@ -3405,16 +3405,16 @@ function Ds(e, t, r) {
3405
3405
  ) && !s && e();
3406
3406
  } else a.current && !a.current.contains(i) && e();
3407
3407
  };
3408
- return ca.forEach(
3408
+ return da.forEach(
3409
3409
  (o) => document.addEventListener(o, n)
3410
3410
  ), () => {
3411
- ca.forEach(
3411
+ da.forEach(
3412
3412
  (o) => document.removeEventListener(o, n)
3413
3413
  );
3414
3414
  };
3415
3415
  }, [e, r, t]), a;
3416
3416
  }
3417
- function Vs(e, t) {
3417
+ function zs(e, t) {
3418
3418
  const [r, a] = W(!1), n = S(null), o = S(null), i = Z(() => {
3419
3419
  a((c) => (!c && (!n.current || n.current === -1) && (n.current = window.setInterval(o.current, t)), !0));
3420
3420
  }, [t]), s = Z(() => {
@@ -3422,42 +3422,42 @@ function Vs(e, t) {
3422
3422
  }, []);
3423
3423
  return M(() => (o.current = e, r && i(), s), [e, r, i, s]), { start: i, stop: s, active: r };
3424
3424
  }
3425
- const tt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ps = () => m("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), da = ({
3425
+ const tt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Us = () => m("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), ua = ({
3426
3426
  mode: e
3427
3427
  }) => m({
3428
3428
  "bg-surface-darker": e === "dark" || e === "system",
3429
3429
  "bg-surface-light": e === "light" || e === "alt-system",
3430
3430
  "dark:bg-surface-light": e === "system",
3431
3431
  "dark:bg-surface-darker": e === "alt-system"
3432
- }), zs = ({
3432
+ }), Hs = ({
3433
3433
  mode: e
3434
3434
  }) => m({
3435
3435
  "text-copy-light": e === "dark" || e === "system",
3436
3436
  "text-copy-dark": e === "light" || e === "alt-system",
3437
3437
  "dark:text-copy-dark": e === "system",
3438
3438
  "dark:text-copy-light": e === "alt-system"
3439
- }), Us = () => m("absolute", "size-2", "transform rotate-45"), Hs = ({
3439
+ }), Fs = () => m("absolute", "size-2", "transform rotate-45"), Ws = ({
3440
3440
  mode: e,
3441
3441
  className: t,
3442
3442
  tooltipClassName: r,
3443
3443
  arrowClassName: a
3444
3444
  }) => {
3445
3445
  const n = m("relative inline-block", t), o = m(
3446
- ts,
3447
- Ps(),
3448
- da({ mode: e }),
3449
- zs({ mode: e }),
3446
+ as,
3447
+ Us(),
3448
+ ua({ mode: e }),
3449
+ Hs({ mode: e }),
3450
3450
  r
3451
3451
  ), i = m(
3452
- rs,
3453
- Us(),
3454
- da({ mode: e }),
3452
+ ns,
3453
+ Fs(),
3454
+ ua({ mode: e }),
3455
3455
  a
3456
3456
  );
3457
3457
  return { tooltip: o, arrow: i, wrapper: n };
3458
- }, Fs = ({ delay: e = 300 }) => ({
3458
+ }, Gs = ({ delay: e = 300 }) => ({
3459
3459
  animation: `av-tooltip-fade-in ${e}ms ease-in-out`
3460
- }), Ws = 5e3, Ve = ({
3460
+ }), js = 5e3, Pe = ({
3461
3461
  trigger: e,
3462
3462
  label: t,
3463
3463
  placement: r = "top",
@@ -3467,16 +3467,16 @@ const tt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ps = (
3467
3467
  tooltipClassName: i,
3468
3468
  arrowClassName: s
3469
3469
  }) => {
3470
- const c = Ds(() => {
3470
+ const c = Vs(() => {
3471
3471
  y.stop(), p(!1);
3472
- }), d = S(null), f = S(null), [u, h] = W(!1), [g, p] = W(!1), y = Vs(() => {
3472
+ }), d = S(null), f = S(null), [u, h] = W(!1), [g, p] = W(!1), y = zs(() => {
3473
3473
  p(!1);
3474
- }, Ws), b = Hs({
3474
+ }, js), b = Ws({
3475
3475
  mode: a,
3476
3476
  className: o,
3477
3477
  tooltipClassName: i,
3478
3478
  arrowClassName: s
3479
- }), v = Fs({ delay: n }), x = Z(async () => {
3479
+ }), v = Gs({ delay: n }), x = Z(async () => {
3480
3480
  var C, N, _, w;
3481
3481
  if (c.current && d.current && f.current) {
3482
3482
  const {
@@ -3484,16 +3484,16 @@ const tt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ps = (
3484
3484
  y: R,
3485
3485
  middlewareData: B,
3486
3486
  placement: $
3487
- } = await Ms(c.current, d.current, {
3487
+ } = await Ps(c.current, d.current, {
3488
3488
  placement: r,
3489
3489
  middleware: [
3490
- $s(10),
3491
- Os({
3490
+ Os(10),
3491
+ Ms({
3492
3492
  crossAxis: r.includes("-"),
3493
3493
  fallbackAxisSideDirection: "start"
3494
3494
  }),
3495
- Ls({ padding: 5 }),
3496
- Bs({ element: f.current })
3495
+ Bs({ padding: 5 }),
3496
+ Ds({ element: f.current })
3497
3497
  ]
3498
3498
  });
3499
3499
  (C = d == null ? void 0 : d.current) != null && C.style && Object.assign(d.current.style, {
@@ -3551,7 +3551,7 @@ const tt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ps = (
3551
3551
  ]
3552
3552
  }
3553
3553
  );
3554
- }, Gs = ({
3554
+ }, qs = ({
3555
3555
  className: e
3556
3556
  }) => {
3557
3557
  const {
@@ -3566,10 +3566,9 @@ const tt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ps = (
3566
3566
  });
3567
3567
  };
3568
3568
  return M(() => {
3569
- var i;
3570
- t === !0 && !n.current && a.current && (n.current = !0, a.current.focus()), t === !1 && (n.current = !1, (i = a.current) == null || i.blur());
3569
+ Ft() || t === !0 && !n.current && a.current && (n.current = !0, a.current.focus());
3571
3570
  }, [t]), /* @__PURE__ */ l(
3572
- Ve,
3571
+ Pe,
3573
3572
  {
3574
3573
  label: "New Chat",
3575
3574
  mode: "light",
@@ -3584,7 +3583,7 @@ const tt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ps = (
3584
3583
  label: "New Chat",
3585
3584
  ref: a,
3586
3585
  onClick: o,
3587
- children: t ? /* @__PURE__ */ l(oo, { size: ge, monotone: !0 }) : /* @__PURE__ */ l(so, { size: ge })
3586
+ children: t ? /* @__PURE__ */ l(so, { size: ge, monotone: !0 }) : /* @__PURE__ */ l(co, { size: ge })
3588
3587
  }
3589
3588
  )
3590
3589
  }
@@ -3603,7 +3602,7 @@ try {
3603
3602
  });
3604
3603
  } catch {
3605
3604
  }
3606
- const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", hn = "button", ir = "link", js = ({
3605
+ const ma = "av-messagebox", fa = "av-panel", ha = "av-button", kt = "icon", gn = "button", sr = "link", Ks = ({
3607
3606
  type: e,
3608
3607
  size: t,
3609
3608
  labelRight: r,
@@ -3613,8 +3612,8 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", hn =
3613
3612
  }) => {
3614
3613
  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";
3615
3614
  switch (e) {
3616
- case hn:
3617
- case ir:
3615
+ case gn:
3616
+ case sr:
3618
3617
  return m({
3619
3618
  [i]: t === "small",
3620
3619
  [s]: t === "medium",
@@ -3639,7 +3638,7 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", hn =
3639
3638
  "h-12": t === "large" && o && (r || a)
3640
3639
  });
3641
3640
  }
3642
- }, qs = ({
3641
+ }, Ys = ({
3643
3642
  type: e,
3644
3643
  size: t,
3645
3644
  labelRight: r,
@@ -3647,10 +3646,10 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", hn =
3647
3646
  }) => {
3648
3647
  const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
3649
3648
  switch (e) {
3650
- case hn:
3651
- case ir:
3649
+ case gn:
3650
+ case sr:
3652
3651
  return m({
3653
- "text-center": e === ir,
3652
+ "text-center": e === sr,
3654
3653
  [n]: t === "small",
3655
3654
  [o]: t === "medium",
3656
3655
  [i]: t === "large"
@@ -3662,7 +3661,7 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", hn =
3662
3661
  [i]: t === "large" && (r || a)
3663
3662
  });
3664
3663
  }
3665
- }, Ks = ({
3664
+ }, Js = ({
3666
3665
  mode: e,
3667
3666
  noBackground: t,
3668
3667
  noTruncate: r,
@@ -3698,7 +3697,7 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", hn =
3698
3697
  return m("not-prose text-copy-lighter", {
3699
3698
  truncate: !r
3700
3699
  });
3701
- }, Ys = ({
3700
+ }, Zs = ({
3702
3701
  mode: e,
3703
3702
  noBackground: t,
3704
3703
  variant: r
@@ -3728,13 +3727,13 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", hn =
3728
3727
  if (r === "selected")
3729
3728
  return "bg-action-selected-dark";
3730
3729
  }
3731
- }, Js = ({
3730
+ }, Xs = ({
3732
3731
  radius: e
3733
3732
  }) => m({
3734
3733
  "rounded-full": e === "large",
3735
3734
  "rounded-md": e === "medium",
3736
3735
  "rounded-sm": e === "small"
3737
- }), Zs = ({
3736
+ }), Qs = ({
3738
3737
  mode: e,
3739
3738
  disabled: t,
3740
3739
  variant: r
@@ -3764,7 +3763,7 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", hn =
3764
3763
  });
3765
3764
  if (r === "selected")
3766
3765
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
3767
- }, Xs = ({
3766
+ }, el = ({
3768
3767
  mode: e,
3769
3768
  disabled: t,
3770
3769
  variant: r
@@ -3794,7 +3793,7 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", hn =
3794
3793
  });
3795
3794
  if (r === "selected")
3796
3795
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
3797
- }, Qs = ({
3796
+ }, tl = ({
3798
3797
  mode: e,
3799
3798
  noBorder: t,
3800
3799
  variant: r
@@ -3824,14 +3823,14 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", hn =
3824
3823
  });
3825
3824
  if (r === "selected")
3826
3825
  return "border border-border-selected-dark";
3827
- }, el = ({
3826
+ }, rl = ({
3828
3827
  focusMode: e
3829
3828
  }) => m("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
3830
3829
  "focus:outline-focus-dark": e === "dark",
3831
3830
  "focus:outline-focus-light": e === "light",
3832
3831
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
3833
3832
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
3834
- }), tl = ({
3833
+ }), al = ({
3835
3834
  mode: e,
3836
3835
  raw: t,
3837
3836
  iconClassName: r
@@ -3843,11 +3842,11 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", hn =
3843
3842
  "dark:text-copy-accent-dark": e === "system"
3844
3843
  },
3845
3844
  r
3846
- ), rl = ({
3845
+ ), nl = ({
3847
3846
  animated: e
3848
3847
  }) => m({
3849
3848
  "transition-opacity duration-300 ease-in": e
3850
- }), al = ({
3849
+ }), ol = ({
3851
3850
  type: e,
3852
3851
  className: t,
3853
3852
  raw: r,
@@ -3865,17 +3864,17 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", hn =
3865
3864
  align: p,
3866
3865
  radius: y,
3867
3866
  animated: b
3868
- }) => (h || (h = "primary"), r ? m(fa, t) : m(
3869
- fa,
3870
- Ks({
3867
+ }) => (h || (h = "primary"), r ? m(ha, t) : m(
3868
+ ha,
3869
+ Js({
3871
3870
  mode: a,
3872
3871
  variant: h,
3873
3872
  noBackground: u,
3874
3873
  noTruncate: g
3875
3874
  }),
3876
- Ys({ mode: a, noBackground: u, variant: h }),
3877
- Js({ radius: y }),
3878
- js({
3875
+ Zs({ mode: a, noBackground: u, variant: h }),
3876
+ Xs({ radius: y }),
3877
+ Ks({
3879
3878
  type: e,
3880
3879
  size: s,
3881
3880
  labelRight: d,
@@ -3883,11 +3882,11 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", hn =
3883
3882
  align: p,
3884
3883
  animated: b
3885
3884
  }),
3886
- qs({ type: e, size: s, labelRight: d, labelLeft: f }),
3887
- Qs({ mode: a, variant: h, noBorder: c }),
3888
- el({ focusMode: n }),
3889
- Zs({ mode: a, variant: h, disabled: o }),
3890
- Xs({ mode: a, variant: h, disabled: o }),
3885
+ Ys({ type: e, size: s, labelRight: d, labelLeft: f }),
3886
+ tl({ mode: a, variant: h, noBorder: c }),
3887
+ rl({ focusMode: n }),
3888
+ Qs({ mode: a, variant: h, disabled: o }),
3889
+ el({ mode: a, variant: h, disabled: o }),
3891
3890
  {
3892
3891
  "w-full": i,
3893
3892
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -3896,30 +3895,30 @@ const ua = "av-messagebox", ma = "av-panel", fa = "av-button", kt = "icon", hn =
3896
3895
  "transition-[width] duration-300 ease-in-out": e === kt && b
3897
3896
  }),
3898
3897
  t
3899
- )), nl = (e, t, r) => {
3898
+ )), il = (e, t, r) => {
3900
3899
  var a;
3901
3900
  !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);
3902
- }, gn = U.forwardRef((e, t) => {
3901
+ }, pn = U.forwardRef((e, t) => {
3903
3902
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
3904
3903
  return /* @__PURE__ */ l(
3905
3904
  "button",
3906
3905
  {
3907
3906
  ref: t,
3908
3907
  onClick: (o) => {
3909
- nl(o, a, r);
3908
+ il(o, a, r);
3910
3909
  },
3911
3910
  ...n
3912
3911
  }
3913
3912
  );
3914
3913
  });
3915
- gn.displayName = "BaseButton";
3916
- function ol() {
3914
+ pn.displayName = "BaseButton";
3915
+ function sl() {
3917
3916
  const e = S(!1);
3918
3917
  return M(() => (e.current = !0, () => {
3919
3918
  e.current = !1;
3920
3919
  }), []), Z(() => e.current, []);
3921
3920
  }
3922
- function il(e) {
3921
+ function ll(e) {
3923
3922
  return oe(() => e.every((t) => t == null) ? () => {
3924
3923
  } : (t) => {
3925
3924
  e.forEach((r) => {
@@ -3927,7 +3926,7 @@ function il(e) {
3927
3926
  });
3928
3927
  }, e);
3929
3928
  }
3930
- const sl = {
3929
+ const cl = {
3931
3930
  x: 0,
3932
3931
  y: 0,
3933
3932
  width: 0,
@@ -3938,7 +3937,7 @@ const sl = {
3938
3937
  right: 0
3939
3938
  };
3940
3939
  function zt(e) {
3941
- const t = ol(), r = S(0), a = S(null), [n, o] = W(sl), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
3940
+ const t = sl(), r = S(0), a = S(null), [n, o] = W(cl), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
3942
3941
  const c = s[0];
3943
3942
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
3944
3943
  a.current && t() && o(c.contentRect);
@@ -3948,21 +3947,21 @@ function zt(e) {
3948
3947
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
3949
3948
  }), [i, e]), [a, n];
3950
3949
  }
3951
- const ll = {
3950
+ const dl = {
3952
3951
  small: 24,
3953
3952
  // w-6
3954
3953
  medium: 32,
3955
3954
  // w-8
3956
3955
  large: 48
3957
3956
  // w-12
3958
- }, cl = {
3957
+ }, ul = {
3959
3958
  small: 8 * 2,
3960
3959
  // px-2 x 2
3961
3960
  medium: 12 * 2,
3962
3961
  // px-3 x 2
3963
3962
  large: 16 * 2
3964
3963
  // px-4 x 2
3965
- }, dl = 2, Er = U.forwardRef(
3964
+ }, ml = 2, Tr = U.forwardRef(
3966
3965
  ({
3967
3966
  children: e,
3968
3967
  disabled: t = !1,
@@ -3986,7 +3985,7 @@ const ll = {
3986
3985
  animated: k = !1,
3987
3986
  ...A
3988
3987
  }, E) => {
3989
- const C = al({
3988
+ const C = ol({
3990
3989
  type: kt,
3991
3990
  mode: r,
3992
3991
  focusMode: a,
@@ -4003,11 +4002,11 @@ const ll = {
4003
4002
  radius: b,
4004
4003
  variant: v,
4005
4004
  animated: k
4006
- }), N = tl({ mode: r, raw: s, iconClassName: x }), _ = rl({ animated: k }), [w, T] = zt(), [R, B] = zt(), [$, O] = zt(), V = S(0), I = S(null), H = il([E, I]);
4005
+ }), N = al({ mode: r, raw: s, iconClassName: x }), _ = nl({ animated: k }), [w, T] = zt(), [R, B] = zt(), [$, O] = zt(), P = S(0), I = S(null), H = ll([E, I]);
4007
4006
  return pe(() => {
4008
- $ && $.current && k && (V.current = O.width + cl[u] + (c ? 0 : dl));
4007
+ $ && $.current && k && (P.current = O.width + ul[u] + (c ? 0 : ml));
4009
4008
  }, [O, $, u, c, k]), pe(() => {
4010
- I && I.current && k && (h && w && T.width > 0 ? (w.current && (w.current.style.opacity = "100"), I.current.style.width = `${T.width + V.current}px`) : g && B.width > 0 ? (R.current && (R.current.style.opacity = "100"), I.current.style.width = `${B.width + V.current}px`) : (w.current && (w.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), I.current.style.width = `${ll[u]}px`));
4009
+ I && I.current && k && (h && w && T.width > 0 ? (w.current && (w.current.style.opacity = "100"), I.current.style.width = `${T.width + P.current}px`) : g && B.width > 0 ? (R.current && (R.current.style.opacity = "100"), I.current.style.width = `${B.width + P.current}px`) : (w.current && (w.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), I.current.style.width = `${dl[u]}px`));
4011
4010
  }, [
4012
4011
  T,
4013
4012
  h,
@@ -4018,7 +4017,7 @@ const ll = {
4018
4017
  u,
4019
4018
  k
4020
4019
  ]), /* @__PURE__ */ L(
4021
- gn,
4020
+ pn,
4022
4021
  {
4023
4022
  ref: H,
4024
4023
  className: C,
@@ -4028,7 +4027,7 @@ const ll = {
4028
4027
  ...A,
4029
4028
  children: [
4030
4029
  /* @__PURE__ */ l(
4031
- ha,
4030
+ ga,
4032
4031
  {
4033
4032
  label: g,
4034
4033
  labelRef: R,
@@ -4038,7 +4037,7 @@ const ll = {
4038
4037
  ),
4039
4038
  /* @__PURE__ */ l("span", { ref: $, className: N, children: e }),
4040
4039
  /* @__PURE__ */ l(
4041
- ha,
4040
+ ga,
4042
4041
  {
4043
4042
  label: h,
4044
4043
  labelRef: w,
@@ -4050,13 +4049,13 @@ const ll = {
4050
4049
  }
4051
4050
  );
4052
4051
  }
4053
- ), ha = ({
4052
+ ), ga = ({
4054
4053
  labelRef: e,
4055
4054
  labelClass: t,
4056
4055
  label: r,
4057
4056
  labelInnerClass: a
4058
4057
  }) => /* @__PURE__ */ l("span", { ref: e, className: t, children: r && /* @__PURE__ */ l("span", { className: a, children: r }) });
4059
- Er.displayName = "ButtonIcon";
4058
+ Tr.displayName = "ButtonIcon";
4060
4059
  /*!
4061
4060
  @versini/ui-button v4.2.4
4062
4061
  © 2025 gizmette.com
@@ -4070,7 +4069,7 @@ try {
4070
4069
  });
4071
4070
  } catch {
4072
4071
  }
4073
- const ul = U.forwardRef(
4072
+ const fl = U.forwardRef(
4074
4073
  ({
4075
4074
  children: e,
4076
4075
  mode: t = "system",
@@ -4096,7 +4095,7 @@ const ul = U.forwardRef(
4096
4095
  }
4097
4096
  ) : "";
4098
4097
  return /* @__PURE__ */ l("div", { className: i, children: /* @__PURE__ */ l(
4099
- Er,
4098
+ Tr,
4100
4099
  {
4101
4100
  className: m("justify-center", r),
4102
4101
  ref: o,
@@ -4108,8 +4107,8 @@ const ul = U.forwardRef(
4108
4107
  ) });
4109
4108
  }
4110
4109
  );
4111
- ul.displayName = "ButtonSort";
4112
- const ml = ({
4110
+ fl.displayName = "ButtonSort";
4111
+ const hl = ({
4113
4112
  children: e,
4114
4113
  fill: t,
4115
4114
  viewBox: r,
@@ -4152,14 +4151,14 @@ try {
4152
4151
  });
4153
4152
  } catch {
4154
4153
  }
4155
- const fl = ({
4154
+ const gl = ({
4156
4155
  className: e,
4157
4156
  viewBox: t,
4158
4157
  title: r,
4159
4158
  monotone: a,
4160
4159
  ...n
4161
4160
  }) => /* @__PURE__ */ l(
4162
- ml,
4161
+ hl,
4163
4162
  {
4164
4163
  defaultViewBox: "0 0 384 512",
4165
4164
  size: "size-5",
@@ -4189,21 +4188,21 @@ try {
4189
4188
  });
4190
4189
  } catch {
4191
4190
  }
4192
- const pn = J.createContext(null);
4193
- function hl({
4191
+ const yn = J.createContext(null);
4192
+ function pl({
4194
4193
  initialOpen: e = !1,
4195
4194
  open: t,
4196
4195
  onOpenChange: r
4197
4196
  } = {}) {
4198
- const [a, n] = J.useState(e), [o, i] = J.useState(), [s, c] = J.useState(), d = t ?? a, f = r ?? n, u = Aa({
4197
+ const [a, n] = J.useState(e), [o, i] = J.useState(), [s, c] = J.useState(), d = t ?? a, f = r ?? n, u = $a({
4199
4198
  open: d,
4200
4199
  onOpenChange: f
4201
- }), h = u.context, g = $a(h, {
4200
+ }), h = u.context, g = La(h, {
4202
4201
  enabled: t == null
4203
- }), p = La(h, {
4202
+ }), p = Oa(h, {
4204
4203
  outsidePress: !1,
4205
4204
  outsidePressEvent: "mousedown"
4206
- }), y = Oa(h), b = Ba([g, p, y]);
4205
+ }), y = Ba(h), b = Ma([g, p, y]);
4207
4206
  return J.useMemo(
4208
4207
  () => ({
4209
4208
  open: d,
@@ -4219,27 +4218,27 @@ function hl({
4219
4218
  );
4220
4219
  }
4221
4220
  const wt = () => {
4222
- const e = J.useContext(pn);
4221
+ const e = J.useContext(yn);
4223
4222
  if (e == null)
4224
4223
  throw new Error("Modal components must be wrapped in <Modal />");
4225
4224
  return e;
4226
4225
  };
4227
- function gl({
4226
+ function yl({
4228
4227
  children: e,
4229
4228
  ...t
4230
4229
  }) {
4231
- const r = hl(t);
4232
- return /* @__PURE__ */ l(pn.Provider, { value: r, children: e });
4230
+ const r = pl(t);
4231
+ return /* @__PURE__ */ l(yn.Provider, { value: r, children: e });
4233
4232
  }
4234
- const pl = J.forwardRef(function(e, t) {
4235
- const { context: r, ...a } = wt(), n = ur([a.refs.setFloating, t]);
4233
+ const bl = J.forwardRef(function(e, t) {
4234
+ const { context: r, ...a } = wt(), n = mr([a.refs.setFloating, t]);
4236
4235
  if (!r.open)
4237
4236
  return null;
4238
4237
  const { overlayBackground: o, ...i } = e, s = m("grid place-items-center", {
4239
4238
  [`${o}`]: o,
4240
4239
  "bg-black sm:bg-black/[.8]": !o
4241
4240
  });
4242
- return /* @__PURE__ */ l(Ra, { children: /* @__PURE__ */ l(qn, { className: s, lockScroll: !0, children: /* @__PURE__ */ l(Ia, { context: r, children: /* @__PURE__ */ l(
4241
+ return /* @__PURE__ */ l(Ia, { children: /* @__PURE__ */ l(Yn, { className: s, lockScroll: !0, children: /* @__PURE__ */ l(Aa, { context: r, children: /* @__PURE__ */ l(
4243
4242
  "div",
4244
4243
  {
4245
4244
  ref: n,
@@ -4249,13 +4248,13 @@ const pl = J.forwardRef(function(e, t) {
4249
4248
  children: i.children
4250
4249
  }
4251
4250
  ) }) }) });
4252
- }), yl = J.forwardRef(function({ children: e, ...t }, r) {
4253
- const { setLabelId: a } = wt(), n = dr();
4251
+ }), vl = J.forwardRef(function({ children: e, ...t }, r) {
4252
+ const { setLabelId: a } = wt(), n = ur();
4254
4253
  return J.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ l("h1", { ...t, ref: r, id: n, children: e });
4255
- }), bl = J.forwardRef(function({ children: e, ...t }, r) {
4256
- const { setDescriptionId: a } = wt(), n = dr();
4254
+ }), kl = J.forwardRef(function({ children: e, ...t }, r) {
4255
+ const { setDescriptionId: a } = wt(), n = ur();
4257
4256
  return J.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ l("div", { ...t, ref: r, id: n, children: e });
4258
- }), vl = J.forwardRef(function(e, t) {
4257
+ }), wl = J.forwardRef(function(e, t) {
4259
4258
  const { setOpen: r } = wt(), { trigger: a, className: n, ...o } = e, i = J.useCallback(() => r(!1), [r]);
4260
4259
  return /* @__PURE__ */ l("div", { className: n, children: J.cloneElement(a, {
4261
4260
  ref: t,
@@ -4276,16 +4275,16 @@ try {
4276
4275
  });
4277
4276
  } catch {
4278
4277
  }
4279
- const He = "panel", rt = "messagebox", kl = ({
4278
+ const He = "panel", rt = "messagebox", xl = ({
4280
4279
  className: e,
4281
4280
  kind: t,
4282
4281
  borderMode: r
4283
4282
  }) => ({
4284
4283
  main: m("prose prose-lighter flex flex-col bg-surface-medium", {
4285
- [`${ma} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === He,
4286
- [`${ma} w-full sm:w-[95%] md:max-w-2xl`]: t === He && !e,
4287
- [`${ua} rounded-lg border-2`]: t === rt,
4288
- [`${ua} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === rt && !e,
4284
+ [`${fa} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === He,
4285
+ [`${fa} w-full sm:w-[95%] md:max-w-2xl`]: t === He && !e,
4286
+ [`${ma} rounded-lg border-2`]: t === rt,
4287
+ [`${ma} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === rt && !e,
4289
4288
  [`${e}`]: !!e,
4290
4289
  "sm:border-border-dark": r === "dark" && t === He,
4291
4290
  "sm:border-border-accent": r === "light" && t === He,
@@ -4296,7 +4295,7 @@ const He = "panel", rt = "messagebox", kl = ({
4296
4295
  footer: "flex flex-grow flex-col sm:p-4 p-2",
4297
4296
  header: "sm:p-4 mb-0 p-2",
4298
4297
  close: "sm:p-4 p-2"
4299
- }), wl = ({
4298
+ }), _l = ({
4300
4299
  open: e,
4301
4300
  onOpenChange: t,
4302
4301
  title: r,
@@ -4306,48 +4305,48 @@ const He = "panel", rt = "messagebox", kl = ({
4306
4305
  kind: i = He,
4307
4306
  className: s
4308
4307
  }) => {
4309
- const c = S(""), d = kl({ className: s, kind: i, borderMode: o });
4308
+ const c = S(""), d = xl({ className: s, kind: i, borderMode: o });
4310
4309
  return M(() => (e && (c.current = document.title, document.title = `${r} | ${c.current}`), () => {
4311
4310
  e && (document.title = c.current);
4312
- }), [r, e]), /* @__PURE__ */ l(_e, { children: e && /* @__PURE__ */ l(gl, { open: e, onOpenChange: t, children: /* @__PURE__ */ L(pl, { className: d.main, children: [
4311
+ }), [r, e]), /* @__PURE__ */ l(_e, { children: e && /* @__PURE__ */ l(yl, { open: e, onOpenChange: t, children: /* @__PURE__ */ L(bl, { className: d.main, children: [
4313
4312
  /* @__PURE__ */ L("div", { className: "flex flex-row-reverse items-center justify-between", children: [
4314
4313
  /* @__PURE__ */ l(
4315
- vl,
4314
+ wl,
4316
4315
  {
4317
4316
  className: d.close,
4318
4317
  trigger: /* @__PURE__ */ l(
4319
- Er,
4318
+ Tr,
4320
4319
  {
4321
4320
  mode: "dark",
4322
4321
  focusMode: "light",
4323
4322
  noBorder: !0,
4324
4323
  label: "Close",
4325
- children: /* @__PURE__ */ l(fl, {})
4324
+ children: /* @__PURE__ */ l(gl, {})
4326
4325
  }
4327
4326
  )
4328
4327
  }
4329
4328
  ),
4330
- /* @__PURE__ */ l(yl, { className: d.header, children: r })
4329
+ /* @__PURE__ */ l(vl, { className: d.header, children: r })
4331
4330
  ] }),
4332
- /* @__PURE__ */ l(bl, { className: d.content, children: a }),
4331
+ /* @__PURE__ */ l(kl, { className: d.content, children: a }),
4333
4332
  n && /* @__PURE__ */ l("div", { className: d.footer, children: n })
4334
4333
  ] }) }) });
4335
- }, xl = ({
4334
+ }, El = ({
4336
4335
  showConfirmation: e,
4337
4336
  setShowConfirmation: t,
4338
4337
  action: r,
4339
4338
  children: a,
4340
4339
  customStrings: n
4341
4340
  }) => /* @__PURE__ */ l(
4342
- wl,
4341
+ _l,
4343
4342
  {
4344
4343
  kind: "messagebox",
4345
4344
  open: e,
4346
4345
  onOpenChange: t,
4347
4346
  title: n.title,
4348
- footer: /* @__PURE__ */ L(An, { columnGap: 2, alignHorizontal: "flex-end", children: [
4349
- /* @__PURE__ */ l(Mr, { children: /* @__PURE__ */ l(
4350
- Dr,
4347
+ footer: /* @__PURE__ */ L($n, { columnGap: 2, alignHorizontal: "flex-end", children: [
4348
+ /* @__PURE__ */ l(Dr, { children: /* @__PURE__ */ l(
4349
+ Pr,
4351
4350
  {
4352
4351
  mode: "dark",
4353
4352
  variant: "secondary",
@@ -4358,8 +4357,8 @@ const He = "panel", rt = "messagebox", kl = ({
4358
4357
  children: n.cancelAction
4359
4358
  }
4360
4359
  ) }),
4361
- /* @__PURE__ */ l(Mr, { children: /* @__PURE__ */ l(
4362
- Dr,
4360
+ /* @__PURE__ */ l(Dr, { children: /* @__PURE__ */ l(
4361
+ Pr,
4363
4362
  {
4364
4363
  mode: "dark",
4365
4364
  variant: "danger",
@@ -4373,14 +4372,14 @@ const He = "panel", rt = "messagebox", kl = ({
4373
4372
  ] }),
4374
4373
  children: a
4375
4374
  }
4376
- ), _l = ({
4375
+ ), Tl = ({
4377
4376
  className: e
4378
4377
  }) => {
4379
4378
  const {
4380
4379
  state: { privateChat: t },
4381
4380
  dispatch: r
4382
- } = G(ie), [a, n] = W(!1), [o, i] = Gt({
4383
- key: Ft + $n,
4381
+ } = G(ie), [a, n] = W(!1), [o, i] = jt({
4382
+ key: Wt + Ln,
4384
4383
  initialValue: ""
4385
4384
  }), s = () => {
4386
4385
  r({
@@ -4392,7 +4391,7 @@ const He = "panel", rt = "messagebox", kl = ({
4392
4391
  };
4393
4392
  return /* @__PURE__ */ L(_e, { children: [
4394
4393
  /* @__PURE__ */ l(
4395
- xl,
4394
+ El,
4396
4395
  {
4397
4396
  showConfirmation: a,
4398
4397
  setShowConfirmation: n,
@@ -4409,7 +4408,7 @@ const He = "panel", rt = "messagebox", kl = ({
4409
4408
  }
4410
4409
  ),
4411
4410
  /* @__PURE__ */ l(
4412
- Ve,
4411
+ Pe,
4413
4412
  {
4414
4413
  label: "Temporary Chat",
4415
4414
  mode: "light",
@@ -4429,13 +4428,13 @@ const He = "panel", rt = "messagebox", kl = ({
4429
4428
  d.preventDefault(), o ? s() : (i("true"), n(!a));
4430
4429
  },
4431
4430
  className: "text-sm",
4432
- children: t ? /* @__PURE__ */ l(lo, { size: ge }) : /* @__PURE__ */ l(uo, { size: ge })
4431
+ children: t ? /* @__PURE__ */ l(uo, { size: ge }) : /* @__PURE__ */ l(fo, { size: ge })
4433
4432
  }
4434
4433
  )
4435
4434
  }
4436
4435
  )
4437
4436
  ] });
4438
- }, sr = J.createContext({
4437
+ }, lr = J.createContext({
4439
4438
  getItemProps: () => ({}),
4440
4439
  activeIndex: null,
4441
4440
  /* v8 ignore next 2 */
@@ -4444,7 +4443,7 @@ const He = "panel", rt = "messagebox", kl = ({
4444
4443
  setHasFocusInside: () => {
4445
4444
  },
4446
4445
  isOpen: !1
4447
- }), ga = (e) => {
4446
+ }), pa = (e) => {
4448
4447
  if (typeof e == "string")
4449
4448
  return e;
4450
4449
  if (typeof e == "function")
@@ -4455,7 +4454,7 @@ const He = "panel", rt = "messagebox", kl = ({
4455
4454
  return t.displayName || t.name || "Component";
4456
4455
  }
4457
4456
  return "Element";
4458
- }, yn = Ca(
4457
+ }, bn = Na(
4459
4458
  ({
4460
4459
  trigger: e,
4461
4460
  children: t,
@@ -4466,7 +4465,7 @@ const He = "panel", rt = "messagebox", kl = ({
4466
4465
  focusMode: i = "system",
4467
4466
  ...s
4468
4467
  }, c) => {
4469
- const [d, f] = W(!1), [u, h] = W(!1), [g, p] = W(null), y = S([]), b = S([]), v = G(sr), x = Ma(), k = Kn(), A = Da(), { floatingStyles: E, refs: C, context: N } = Aa({
4468
+ const [d, f] = W(!1), [u, h] = W(!1), [g, p] = W(null), y = S([]), b = S([]), v = G(lr), x = Da(), k = Jn(), A = Pa(), { floatingStyles: E, refs: C, context: N } = $a({
4470
4469
  nodeId: k,
4471
4470
  open: d,
4472
4471
  onOpenChange: (q) => {
@@ -4474,23 +4473,23 @@ const He = "panel", rt = "messagebox", kl = ({
4474
4473
  },
4475
4474
  placement: a,
4476
4475
  strategy: "fixed",
4477
- middleware: [Yn({ mainAxis: 10 }), Jn(), Zn()],
4478
- whileElementsMounted: Xn
4479
- }), _ = $a(N, {
4476
+ middleware: [Zn({ mainAxis: 10 }), Xn(), Qn()],
4477
+ whileElementsMounted: eo
4478
+ }), _ = La(N, {
4480
4479
  event: "mousedown",
4481
4480
  toggle: !0,
4482
4481
  ignoreMouse: !1
4483
- }), w = Oa(N, { role: "menu" }), T = La(N, { bubbles: !0 }), R = Qn(N, {
4482
+ }), w = Ba(N, { role: "menu" }), T = Oa(N, { bubbles: !0 }), R = to(N, {
4484
4483
  listRef: y,
4485
4484
  activeIndex: g,
4486
4485
  nested: !1,
4487
4486
  onNavigate: p,
4488
4487
  loop: !0
4489
- }), B = eo(N, {
4488
+ }), B = ro(N, {
4490
4489
  listRef: b,
4491
4490
  onMatch: d ? p : void 0,
4492
4491
  activeIndex: g
4493
- }), { getReferenceProps: $, getFloatingProps: O, getItemProps: V } = Ba([_, w, T, R, B]), I = ga(e) === "Button" || ga(e) === "ButtonIcon", H = I ? {
4492
+ }), { getReferenceProps: $, getFloatingProps: O, getItemProps: P } = Ma([_, w, T, R, B]), I = pa(e) === "Button" || pa(e) === "ButtonIcon", H = I ? {
4494
4493
  noInternalClick: I,
4495
4494
  focusMode: i,
4496
4495
  mode: o
@@ -4501,7 +4500,7 @@ const He = "panel", rt = "messagebox", kl = ({
4501
4500
  "aria-label": r,
4502
4501
  "data-open": d ? "" : void 0,
4503
4502
  "data-focus-inside": u ? "" : void 0,
4504
- ref: ur([C.setReference, A.ref, c]),
4503
+ ref: mr([C.setReference, A.ref, c]),
4505
4504
  ...$(
4506
4505
  v.getItemProps({
4507
4506
  ...s
@@ -4520,20 +4519,20 @@ const He = "panel", rt = "messagebox", kl = ({
4520
4519
  };
4521
4520
  }, [x, n]), M(() => {
4522
4521
  d && x && x.events.emit("menuopen", { nodeId: k });
4523
- }, [x, d, k]), /* @__PURE__ */ L(to, { id: k, children: [
4522
+ }, [x, d, k]), /* @__PURE__ */ L(ao, { id: k, children: [
4524
4523
  j,
4525
4524
  /* @__PURE__ */ l(
4526
- sr.Provider,
4525
+ lr.Provider,
4527
4526
  {
4528
4527
  value: {
4529
4528
  activeIndex: g,
4530
4529
  setActiveIndex: p,
4531
- getItemProps: V,
4530
+ getItemProps: P,
4532
4531
  setHasFocusInside: h,
4533
4532
  isOpen: d
4534
4533
  },
4535
- children: /* @__PURE__ */ l(ro, { elementsRef: y, labelsRef: b, children: d && /* @__PURE__ */ l(Ra, { children: /* @__PURE__ */ l(
4536
- Ia,
4534
+ children: /* @__PURE__ */ l(no, { elementsRef: y, labelsRef: b, children: d && /* @__PURE__ */ l(Ia, { children: /* @__PURE__ */ l(
4535
+ Aa,
4537
4536
  {
4538
4537
  context: N,
4539
4538
  modal: !1,
@@ -4555,9 +4554,9 @@ const He = "panel", rt = "messagebox", kl = ({
4555
4554
  )
4556
4555
  ] });
4557
4556
  }
4558
- ), Tr = Ca((e, t) => /* @__PURE__ */ l(ao, { children: /* @__PURE__ */ l(yn, { ...e, ref: t }) }));
4559
- Tr.displayName = "Menu";
4560
- yn.displayName = "MenuComponent";
4557
+ ), Sr = Na((e, t) => /* @__PURE__ */ l(oo, { children: /* @__PURE__ */ l(bn, { ...e, ref: t }) }));
4558
+ Sr.displayName = "Menu";
4559
+ bn.displayName = "MenuComponent";
4561
4560
  const ct = J.forwardRef(
4562
4561
  ({
4563
4562
  label: e,
@@ -4570,7 +4569,7 @@ const ct = J.forwardRef(
4570
4569
  ...s
4571
4570
  }, c) => {
4572
4571
  let d = "";
4573
- const f = J.useContext(sr), u = Da({ label: t ? null : e }), h = Ma(), g = ur([u.ref, c]);
4572
+ const f = J.useContext(lr), u = Pa({ label: t ? null : e }), h = Da(), g = mr([u.ref, c]);
4574
4573
  if (a && n)
4575
4574
  return /* @__PURE__ */ l(
4576
4575
  "div",
@@ -4622,10 +4621,10 @@ const ct = J.forwardRef(
4622
4621
  }
4623
4622
  );
4624
4623
  ct.displayName = "MenuItem";
4625
- const Qc = ({ className: e, ...t }) => {
4624
+ const td = ({ className: e, ...t }) => {
4626
4625
  const r = m(e, "my-1 border-t border-border-medium");
4627
4626
  return /* @__PURE__ */ l("div", { className: r, ...t });
4628
- }, bn = ({
4627
+ }, vn = ({
4629
4628
  className: e,
4630
4629
  ...t
4631
4630
  }) => {
@@ -4648,12 +4647,12 @@ try {
4648
4647
  });
4649
4648
  } catch {
4650
4649
  }
4651
- const El = (e) => {
4650
+ const Sl = (e) => {
4652
4651
  for (let t = 0; t < e.length; t++)
4653
4652
  if (e[t].enabled)
4654
4653
  return !0;
4655
4654
  return !1;
4656
- }, Tl = ({
4655
+ }, Cl = ({
4657
4656
  className: e,
4658
4657
  defaultPlacement: t = "top-start"
4659
4658
  }) => {
@@ -4661,7 +4660,7 @@ const El = (e) => {
4661
4660
  data: i,
4662
4661
  error: s,
4663
4662
  isLoading: c
4664
- } = br({
4663
+ } = vr({
4665
4664
  keys: [o == null ? void 0 : o.username],
4666
4665
  getAccessToken: n
4667
4666
  }), d = (f, u, h) => {
@@ -4671,27 +4670,27 @@ const El = (e) => {
4671
4670
  privateChat: !0
4672
4671
  }
4673
4672
  }), a({
4674
- type: Ta,
4673
+ type: Sa,
4675
4674
  payload: {
4676
4675
  prompt: u
4677
4676
  }
4678
4677
  });
4679
4678
  };
4680
- return s || c ? null : i && i.tags && El(i.tags) && /* @__PURE__ */ l(
4681
- Ve,
4679
+ return s || c ? null : i && i.tags && Sl(i.tags) && /* @__PURE__ */ l(
4680
+ Pe,
4682
4681
  {
4683
4682
  label: "Custom Prompts",
4684
4683
  mode: "light",
4685
4684
  className: e,
4686
4685
  trigger: /* @__PURE__ */ L(
4687
- Tr,
4686
+ Sr,
4688
4687
  {
4689
4688
  mode: "dark",
4690
4689
  focusMode: "light",
4691
- trigger: /* @__PURE__ */ l($e, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ l(no, { size: ge }) }),
4690
+ trigger: /* @__PURE__ */ l($e, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ l(io, { size: ge }) }),
4692
4691
  defaultPlacement: t,
4693
4692
  children: [
4694
- /* @__PURE__ */ l(bn, { children: "Prompts" }),
4693
+ /* @__PURE__ */ l(vn, { children: "Prompts" }),
4695
4694
  i && i.tags && i.tags.map((f) => f.enabled && f.label && f.content && /* @__PURE__ */ l(
4696
4695
  ct,
4697
4696
  {
@@ -4709,7 +4708,7 @@ const El = (e) => {
4709
4708
  )
4710
4709
  }
4711
4710
  );
4712
- }, Sl = ({
4711
+ }, Nl = ({
4713
4712
  className: e
4714
4713
  }) => {
4715
4714
  const { user: t, getAccessToken: r } = Le(), {
@@ -4717,7 +4716,7 @@ const El = (e) => {
4717
4716
  } = G(ie), [c, d] = W(!1), f = async (u) => {
4718
4717
  u.preventDefault();
4719
4718
  try {
4720
- i && a && o && await yr({
4719
+ i && a && o && await br({
4721
4720
  accessToken: await r(),
4722
4721
  type: Be.SAVE_CHAT,
4723
4722
  params: {
@@ -4734,7 +4733,7 @@ const El = (e) => {
4734
4733
  return M(() => {
4735
4734
  s && (a == null ? void 0 : a.length) > 0 ? d(!0) : d(!1);
4736
4735
  }, [s, a]), c && /* @__PURE__ */ l(
4737
- Ve,
4736
+ Pe,
4738
4737
  {
4739
4738
  label: "Save Private Chat",
4740
4739
  mode: "light",
@@ -4748,16 +4747,16 @@ const El = (e) => {
4748
4747
  focusMode: "light",
4749
4748
  label: "Save Private Chat",
4750
4749
  onClick: f,
4751
- children: /* @__PURE__ */ l(io, { size: ge, monotone: !0 })
4750
+ children: /* @__PURE__ */ l(lo, { size: ge, monotone: !0 })
4752
4751
  }
4753
4752
  )
4754
4753
  }
4755
4754
  );
4756
- }, Cl = ({ show: e }) => e ? /* @__PURE__ */ l(
4755
+ }, Rl = ({ show: e }) => e ? /* @__PURE__ */ l(
4757
4756
  "div",
4758
4757
  {
4759
4758
  className: m(
4760
- Qi,
4759
+ ts,
4761
4760
  "bottom-44 fixed left-1/2 transform -translate-x-1/2"
4762
4761
  ),
4763
4762
  children: /* @__PURE__ */ l(
@@ -4783,14 +4782,14 @@ const El = (e) => {
4783
4782
  }
4784
4783
  )
4785
4784
  }
4786
- ) : null, Nl = ({
4785
+ ) : null, Il = ({
4787
4786
  className: e
4788
4787
  }) => {
4789
4788
  const {
4790
4789
  state: { loading: t, streaming: r }
4791
4790
  } = G(ie);
4792
4791
  return /* @__PURE__ */ l(
4793
- Ve,
4792
+ Pe,
4794
4793
  {
4795
4794
  label: "Send Message",
4796
4795
  mode: "light",
@@ -4806,12 +4805,12 @@ const El = (e) => {
4806
4805
  type: "submit",
4807
4806
  mode: "light",
4808
4807
  focusMode: "light",
4809
- children: /* @__PURE__ */ l(co, { size: ge })
4808
+ children: /* @__PURE__ */ l(mo, { size: ge })
4810
4809
  }
4811
4810
  )
4812
4811
  }
4813
4812
  );
4814
- }, Rl = ({
4813
+ }, Al = ({
4815
4814
  className: e
4816
4815
  }) => {
4817
4816
  const {
@@ -4822,12 +4821,12 @@ const El = (e) => {
4822
4821
  error: i,
4823
4822
  isLoading: s,
4824
4823
  mutate: c
4825
- } = br({
4824
+ } = vr({
4826
4825
  keys: [n == null ? void 0 : n.username],
4827
4826
  getAccessToken: a
4828
4827
  }), d = async (f) => {
4829
4828
  try {
4830
- await Gi({
4829
+ await qi({
4831
4830
  provider: f,
4832
4831
  accessToken: await a(),
4833
4832
  username: (n == null ? void 0 : n.username) || ""
@@ -4841,26 +4840,26 @@ const El = (e) => {
4841
4840
  }
4842
4841
  };
4843
4842
  return i || s ? null : /* @__PURE__ */ l(
4844
- Ve,
4843
+ Pe,
4845
4844
  {
4846
4845
  label: "Toggle Providers",
4847
4846
  mode: "light",
4848
4847
  className: e,
4849
4848
  trigger: /* @__PURE__ */ L(
4850
- Tr,
4849
+ Sr,
4851
4850
  {
4852
4851
  mode: "dark",
4853
4852
  focusMode: "light",
4854
- trigger: /* @__PURE__ */ l($e, { noBorder: !0, label: "Providers", children: t === Ct ? /* @__PURE__ */ l(Fr, { size: ge }) : /* @__PURE__ */ l(Wr, { size: ge }) }),
4853
+ trigger: /* @__PURE__ */ l($e, { noBorder: !0, label: "Providers", children: t === Ct ? /* @__PURE__ */ l(Wr, { size: ge }) : /* @__PURE__ */ l(Gr, { size: ge }) }),
4855
4854
  defaultPlacement: "top-start",
4856
4855
  children: [
4857
- /* @__PURE__ */ l(bn, { children: "Providers" }),
4856
+ /* @__PURE__ */ l(vn, { children: "Providers" }),
4858
4857
  /* @__PURE__ */ l(
4859
4858
  ct,
4860
4859
  {
4861
4860
  selected: t === Ct,
4862
4861
  label: "Anthropic",
4863
- icon: /* @__PURE__ */ l(Fr, {}),
4862
+ icon: /* @__PURE__ */ l(Wr, {}),
4864
4863
  onClick: () => d(Ct)
4865
4864
  }
4866
4865
  ),
@@ -4869,7 +4868,7 @@ const El = (e) => {
4869
4868
  {
4870
4869
  selected: t === Vr,
4871
4870
  label: "OpenAI",
4872
- icon: /* @__PURE__ */ l(Wr, {}),
4871
+ icon: /* @__PURE__ */ l(Gr, {}),
4873
4872
  onClick: () => d(Vr)
4874
4873
  }
4875
4874
  )
@@ -4878,35 +4877,35 @@ const El = (e) => {
4878
4877
  )
4879
4878
  }
4880
4879
  );
4881
- }, Il = () => m(
4880
+ }, $l = () => m(
4882
4881
  "relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
4883
- ), pa = () => m("bg-surface-darker"), Al = () => m("text-copy-lighter caret-copy-light"), $l = () => m(
4882
+ ), ya = () => m("bg-surface-darker"), Ll = () => m("text-copy-lighter caret-copy-light"), Ol = () => m(
4884
4883
  "has-[.av-prompt-editable:focus]:outline",
4885
4884
  "has-[.av-prompt-editable:focus]:outline-2",
4886
4885
  "has-[.av-prompt-editable:focus]:outline-offset-2",
4887
4886
  "has-[.av-prompt-editable:focus]:outline-focus-light"
4888
- ), Ll = () => m(
4887
+ ), Bl = () => m(
4889
4888
  "peer",
4890
4889
  "text-base resize-none overflow-hidden w-full text-inherit outline-none",
4891
4890
  "h-6 pr-2 pl-4"
4892
- ), Ol = ({ className: e }) => {
4891
+ ), Ml = ({ className: e }) => {
4893
4892
  const t = m(
4894
- Ln,
4895
- Il(),
4896
- pa(),
4897
- Al(),
4893
+ On,
4898
4894
  $l(),
4895
+ ya(),
4896
+ Ll(),
4897
+ Ol(),
4899
4898
  e
4900
4899
  ), r = m(
4901
- On,
4902
- Ll(),
4903
- pa()
4900
+ Bn,
4901
+ Bl(),
4902
+ ya()
4904
4903
  );
4905
4904
  return {
4906
4905
  wrapper: t,
4907
4906
  textArea: r
4908
4907
  };
4909
- }, ya = 24, Bl = ({
4908
+ }, ba = 24, Dl = ({
4910
4909
  className: e,
4911
4910
  label: t,
4912
4911
  value: r,
@@ -4916,11 +4915,11 @@ const El = (e) => {
4916
4915
  ref: i,
4917
4916
  ...s
4918
4917
  }) => {
4919
- const f = ya * 2, u = 5 * ya, {
4918
+ const f = ba * 2, u = 5 * ba, {
4920
4919
  state: { usage: h, messages: g }
4921
- } = G(ie), { state: p } = G(pt), y = S(null), b = S(null), v = _o([i, b]), x = Co(), k = Ol({
4920
+ } = G(ie), { state: p } = G(pt), y = S(null), b = S(null), v = To([i, b]), x = Ro(), k = Ml({
4922
4921
  className: e
4923
- }), [A, E] = So({
4922
+ }), [A, E] = No({
4924
4923
  value: r,
4925
4924
  initialControlledDelay: 20,
4926
4925
  defaultValue: a,
@@ -4970,34 +4969,34 @@ const El = (e) => {
4970
4969
  translate: "no",
4971
4970
  onChange: _,
4972
4971
  value: A,
4973
- onKeyDown: po([["mod+Enter", N]]),
4972
+ onKeyDown: bo([["mod+Enter", N]]),
4974
4973
  className: k.textArea,
4975
4974
  "aria-labelledby": x
4976
4975
  }
4977
4976
  ) }),
4978
4977
  /* @__PURE__ */ L("div", { className: "p-2 flex items-center", children: [
4979
- /* @__PURE__ */ l(Nl, { className: "order-6 ml-auto" }),
4980
- /* @__PURE__ */ l(Gs, { className: "order-1 mr-4 sm:mr-2" }),
4981
- /* @__PURE__ */ l(Rl, { className: "order-2 mr-4 sm:mr-2" }),
4982
- /* @__PURE__ */ l(Tl, { className: "order-3 mr-4 sm:mr-2" }),
4983
- /* @__PURE__ */ l(_l, { className: "order-4 mr-4 sm:mr-2" }),
4984
- /* @__PURE__ */ l(Sl, { className: "order-5" })
4978
+ /* @__PURE__ */ l(Il, { className: "order-6 ml-auto" }),
4979
+ /* @__PURE__ */ l(qs, { className: "order-1 mr-4 sm:mr-2" }),
4980
+ /* @__PURE__ */ l(Al, { className: "order-2 mr-4 sm:mr-2" }),
4981
+ /* @__PURE__ */ l(Cl, { className: "order-3 mr-4 sm:mr-2" }),
4982
+ /* @__PURE__ */ l(Tl, { className: "order-4 mr-4 sm:mr-2" }),
4983
+ /* @__PURE__ */ l(Nl, { className: "order-5" })
4985
4984
  ] })
4986
4985
  ] })
4987
4986
  }
4988
4987
  );
4989
- }, Ml = () => {
4988
+ }, Pl = () => {
4990
4989
  const {
4991
4990
  state: { messages: e, provider: t, id: r, usage: a, privateChat: n, streaming: o },
4992
4991
  dispatch: i
4993
4992
  } = G(ie), { state: s, dispatch: c } = G(pt), [d, f] = W(""), { getAccessToken: u, user: h } = Le(), g = S(null), p = S(
4994
4993
  null
4995
4994
  );
4996
- bo([
4995
+ ko([
4997
4996
  [
4998
4997
  "mod+K",
4999
4998
  () => {
5000
- g && g.current && g.current.focus();
4999
+ g && g.current && !Ft() && g.current.focus();
5001
5000
  }
5002
5001
  ]
5003
5002
  ]);
@@ -5006,7 +5005,7 @@ const El = (e) => {
5006
5005
  type: nt,
5007
5006
  payload: {
5008
5007
  content: d,
5009
- role: Sa
5008
+ role: Ca
5010
5009
  }
5011
5010
  });
5012
5011
  };
@@ -5018,13 +5017,13 @@ const El = (e) => {
5018
5017
  return;
5019
5018
  }
5020
5019
  const b = e[e.length - 1];
5021
- if (!(e.length === 0 || b.role === Fe || b.role === Bn || b.role === at || b.role === Mn)) {
5020
+ if (!(e.length === 0 || b.role === Fe || b.role === Mn || b.role === at || b.role === Dn)) {
5022
5021
  i({
5023
- type: rr,
5022
+ type: ar,
5024
5023
  payload: !0
5025
5024
  });
5026
5025
  try {
5027
- const x = await Wi({
5026
+ const x = await ji({
5028
5027
  accessToken: await u(),
5029
5028
  name: "generate",
5030
5029
  data: {
@@ -5038,23 +5037,23 @@ const El = (e) => {
5038
5037
  });
5039
5038
  if (x && x.ok) {
5040
5039
  i({
5041
- type: rr,
5040
+ type: ar,
5042
5041
  payload: !1
5043
5042
  }), i({
5044
- type: ar,
5043
+ type: nr,
5045
5044
  payload: !0
5046
5045
  });
5047
- const k = hr();
5046
+ const k = gr();
5048
5047
  p.current = x.body.getReader();
5049
5048
  const A = new TextDecoder();
5050
5049
  for (; ; ) {
5051
5050
  const { done: E, value: C } = await p.current.read();
5052
5051
  if (E)
5053
5052
  break;
5054
- const N = A.decode(C, { stream: !0 }), _ = N.indexOf(Pr);
5053
+ const N = A.decode(C, { stream: !0 }), _ = N.indexOf(zr);
5055
5054
  if (_ !== -1) {
5056
5055
  const w = N.substring(0, _), T = JSON.parse(
5057
- N.substring(_ + Pr.length)
5056
+ N.substring(_ + zr.length)
5058
5057
  );
5059
5058
  i({
5060
5059
  type: nt,
@@ -5080,22 +5079,22 @@ const El = (e) => {
5080
5079
  });
5081
5080
  }
5082
5081
  i({
5083
- type: ar,
5082
+ type: nr,
5084
5083
  payload: !1
5085
5084
  });
5086
5085
  } else
5087
5086
  i({
5088
- type: tr,
5087
+ type: rr,
5089
5088
  payload: {
5090
- content: zr,
5089
+ content: Ur,
5091
5090
  role: at
5092
5091
  }
5093
5092
  });
5094
5093
  } catch (x) {
5095
5094
  console.error(x), i({
5096
- type: tr,
5095
+ type: rr,
5097
5096
  payload: {
5098
- content: zr,
5097
+ content: Ur,
5099
5098
  role: at
5100
5099
  }
5101
5100
  });
@@ -5105,10 +5104,10 @@ const El = (e) => {
5105
5104
  }, [e]), M(() => {
5106
5105
  if (s.prompt !== "") {
5107
5106
  const b = s.prompt.endsWith(":") && !s.prompt.endsWith(": ") ? s.prompt + " " : s.prompt;
5108
- b.indexOf(Ur) !== -1 ? navigator.clipboard.readText().then((x) => {
5109
- f(b.replace(Ur, x));
5110
- }) : f(b), g.current && g.current.focus(), c({
5111
- type: Ea
5107
+ b.indexOf(Hr) !== -1 ? navigator.clipboard.readText().then((x) => {
5108
+ f(b.replace(Hr, x));
5109
+ }) : f(b), !Ft() && g.current && g.current.focus(), c({
5110
+ type: Ta
5112
5111
  });
5113
5112
  }
5114
5113
  }, [s, c]), M(() => {
@@ -5116,19 +5115,19 @@ const El = (e) => {
5116
5115
  }, [a, e]), M(() => {
5117
5116
  o === !1 && g.current && g.current.focus();
5118
5117
  }, [o]), /* @__PURE__ */ l(_e, { children: /* @__PURE__ */ l(
5119
- Bl,
5118
+ Dl,
5120
5119
  {
5121
- label: Dn,
5120
+ label: Pn,
5122
5121
  onSubmit: y,
5123
5122
  ref: g,
5124
5123
  value: d,
5125
5124
  onChange: (b) => f(b.target.value)
5126
5125
  }
5127
5126
  ) });
5128
- }, Dl = ({ isComponent: e }) => {
5127
+ }, Vl = ({ isComponent: e }) => {
5129
5128
  const {
5130
5129
  state: { loading: t, streaming: r, restoring: a, messages: n }
5131
- } = G(ie), { height: o } = No(), [i, s] = To(), c = window.innerWidth < 403;
5130
+ } = G(ie), { height: o } = Io(), [i, s] = Co(), c = zn();
5132
5131
  return M(() => {
5133
5132
  var d, f;
5134
5133
  (t && !r || a) && ((d = i == null ? void 0 : i.current) == null || d.style.setProperty("--sassy-bottom", "16px")), !t && !r && n.length === 0 && ((f = i == null ? void 0 : i.current) == null || f.style.setProperty(
@@ -5154,10 +5153,10 @@ const El = (e) => {
5154
5153
  "fixed left-1/2 transform -translate-x-1/2",
5155
5154
  "transition-all ease-in-out duration-500",
5156
5155
  "bottom-[--sassy-bottom]",
5157
- Xi
5156
+ es
5158
5157
  ),
5159
5158
  children: [
5160
- /* @__PURE__ */ l(Ml, {}),
5159
+ /* @__PURE__ */ l(Pl, {}),
5161
5160
  /* @__PURE__ */ l("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Vn })
5162
5161
  ]
5163
5162
  }
@@ -5176,7 +5175,7 @@ try {
5176
5175
  });
5177
5176
  } catch {
5178
5177
  }
5179
- const Vl = "av-bubble", ba = "av-button", xt = "icon", vn = "button", lr = "link", Pl = ({
5178
+ const zl = "av-bubble", va = "av-button", xt = "icon", kn = "button", cr = "link", Ul = ({
5180
5179
  type: e,
5181
5180
  size: t,
5182
5181
  labelRight: r,
@@ -5186,8 +5185,8 @@ const Vl = "av-bubble", ba = "av-button", xt = "icon", vn = "button", lr = "link
5186
5185
  }) => {
5187
5186
  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";
5188
5187
  switch (e) {
5189
- case vn:
5190
- case lr:
5188
+ case kn:
5189
+ case cr:
5191
5190
  return m({
5192
5191
  [i]: t === "small",
5193
5192
  [s]: t === "medium",
@@ -5212,7 +5211,7 @@ const Vl = "av-bubble", ba = "av-button", xt = "icon", vn = "button", lr = "link
5212
5211
  "h-12": t === "large" && o && (r || a)
5213
5212
  });
5214
5213
  }
5215
- }, zl = ({
5214
+ }, Hl = ({
5216
5215
  type: e,
5217
5216
  size: t,
5218
5217
  labelRight: r,
@@ -5220,10 +5219,10 @@ const Vl = "av-bubble", ba = "av-button", xt = "icon", vn = "button", lr = "link
5220
5219
  }) => {
5221
5220
  const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
5222
5221
  switch (e) {
5223
- case vn:
5224
- case lr:
5222
+ case kn:
5223
+ case cr:
5225
5224
  return m({
5226
- "text-center": e === lr,
5225
+ "text-center": e === cr,
5227
5226
  [n]: t === "small",
5228
5227
  [o]: t === "medium",
5229
5228
  [i]: t === "large"
@@ -5235,7 +5234,7 @@ const Vl = "av-bubble", ba = "av-button", xt = "icon", vn = "button", lr = "link
5235
5234
  [i]: t === "large" && (r || a)
5236
5235
  });
5237
5236
  }
5238
- }, Ul = ({
5237
+ }, Fl = ({
5239
5238
  mode: e,
5240
5239
  noBackground: t,
5241
5240
  noTruncate: r,
@@ -5271,7 +5270,7 @@ const Vl = "av-bubble", ba = "av-button", xt = "icon", vn = "button", lr = "link
5271
5270
  return m("not-prose text-copy-lighter", {
5272
5271
  truncate: !r
5273
5272
  });
5274
- }, Hl = ({
5273
+ }, Wl = ({
5275
5274
  mode: e,
5276
5275
  noBackground: t,
5277
5276
  variant: r
@@ -5301,13 +5300,13 @@ const Vl = "av-bubble", ba = "av-button", xt = "icon", vn = "button", lr = "link
5301
5300
  if (r === "selected")
5302
5301
  return "bg-action-selected-dark";
5303
5302
  }
5304
- }, Fl = ({
5303
+ }, Gl = ({
5305
5304
  radius: e
5306
5305
  }) => m({
5307
5306
  "rounded-full": e === "large",
5308
5307
  "rounded-md": e === "medium",
5309
5308
  "rounded-sm": e === "small"
5310
- }), Wl = ({
5309
+ }), jl = ({
5311
5310
  mode: e,
5312
5311
  disabled: t,
5313
5312
  variant: r
@@ -5337,7 +5336,7 @@ const Vl = "av-bubble", ba = "av-button", xt = "icon", vn = "button", lr = "link
5337
5336
  });
5338
5337
  if (r === "selected")
5339
5338
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
5340
- }, Gl = ({
5339
+ }, ql = ({
5341
5340
  mode: e,
5342
5341
  disabled: t,
5343
5342
  variant: r
@@ -5367,7 +5366,7 @@ const Vl = "av-bubble", ba = "av-button", xt = "icon", vn = "button", lr = "link
5367
5366
  });
5368
5367
  if (r === "selected")
5369
5368
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
5370
- }, jl = ({
5369
+ }, Kl = ({
5371
5370
  mode: e,
5372
5371
  noBorder: t,
5373
5372
  variant: r
@@ -5397,14 +5396,14 @@ const Vl = "av-bubble", ba = "av-button", xt = "icon", vn = "button", lr = "link
5397
5396
  });
5398
5397
  if (r === "selected")
5399
5398
  return "border border-border-selected-dark";
5400
- }, ql = ({
5399
+ }, Yl = ({
5401
5400
  focusMode: e
5402
5401
  }) => m("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
5403
5402
  "focus:outline-focus-dark": e === "dark",
5404
5403
  "focus:outline-focus-light": e === "light",
5405
5404
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
5406
5405
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
5407
- }), Kl = ({
5406
+ }), Jl = ({
5408
5407
  mode: e,
5409
5408
  raw: t,
5410
5409
  iconClassName: r
@@ -5416,11 +5415,11 @@ const Vl = "av-bubble", ba = "av-button", xt = "icon", vn = "button", lr = "link
5416
5415
  "dark:text-copy-accent-dark": e === "system"
5417
5416
  },
5418
5417
  r
5419
- ), Yl = ({
5418
+ ), Zl = ({
5420
5419
  animated: e
5421
5420
  }) => m({
5422
5421
  "transition-opacity duration-300 ease-in": e
5423
- }), Jl = ({
5422
+ }), Xl = ({
5424
5423
  type: e,
5425
5424
  className: t,
5426
5425
  raw: r,
@@ -5438,17 +5437,17 @@ const Vl = "av-bubble", ba = "av-button", xt = "icon", vn = "button", lr = "link
5438
5437
  align: p,
5439
5438
  radius: y,
5440
5439
  animated: b
5441
- }) => (h || (h = "primary"), r ? m(ba, t) : m(
5442
- ba,
5443
- Ul({
5440
+ }) => (h || (h = "primary"), r ? m(va, t) : m(
5441
+ va,
5442
+ Fl({
5444
5443
  mode: a,
5445
5444
  variant: h,
5446
5445
  noBackground: u,
5447
5446
  noTruncate: g
5448
5447
  }),
5449
- Hl({ mode: a, noBackground: u, variant: h }),
5450
- Fl({ radius: y }),
5451
- Pl({
5448
+ Wl({ mode: a, noBackground: u, variant: h }),
5449
+ Gl({ radius: y }),
5450
+ Ul({
5452
5451
  type: e,
5453
5452
  size: s,
5454
5453
  labelRight: d,
@@ -5456,11 +5455,11 @@ const Vl = "av-bubble", ba = "av-button", xt = "icon", vn = "button", lr = "link
5456
5455
  align: p,
5457
5456
  animated: b
5458
5457
  }),
5459
- zl({ type: e, size: s, labelRight: d, labelLeft: f }),
5460
- jl({ mode: a, variant: h, noBorder: c }),
5461
- ql({ focusMode: n }),
5462
- Wl({ mode: a, variant: h, disabled: o }),
5463
- Gl({ mode: a, variant: h, disabled: o }),
5458
+ Hl({ type: e, size: s, labelRight: d, labelLeft: f }),
5459
+ Kl({ mode: a, variant: h, noBorder: c }),
5460
+ Yl({ focusMode: n }),
5461
+ jl({ mode: a, variant: h, disabled: o }),
5462
+ ql({ mode: a, variant: h, disabled: o }),
5464
5463
  {
5465
5464
  "w-full": i,
5466
5465
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -5469,30 +5468,30 @@ const Vl = "av-bubble", ba = "av-button", xt = "icon", vn = "button", lr = "link
5469
5468
  "transition-[width] duration-300 ease-in-out": e === xt && b
5470
5469
  }),
5471
5470
  t
5472
- )), Zl = (e, t, r) => {
5471
+ )), Ql = (e, t, r) => {
5473
5472
  var a;
5474
5473
  !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);
5475
- }, kn = U.forwardRef((e, t) => {
5474
+ }, wn = U.forwardRef((e, t) => {
5476
5475
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
5477
5476
  return /* @__PURE__ */ l(
5478
5477
  "button",
5479
5478
  {
5480
5479
  ref: t,
5481
5480
  onClick: (o) => {
5482
- Zl(o, a, r);
5481
+ Ql(o, a, r);
5483
5482
  },
5484
5483
  ...n
5485
5484
  }
5486
5485
  );
5487
5486
  });
5488
- kn.displayName = "BaseButton";
5489
- function Xl() {
5487
+ wn.displayName = "BaseButton";
5488
+ function ec() {
5490
5489
  const e = S(!1);
5491
5490
  return M(() => (e.current = !0, () => {
5492
5491
  e.current = !1;
5493
5492
  }), []), Z(() => e.current, []);
5494
5493
  }
5495
- function Ql(e) {
5494
+ function tc(e) {
5496
5495
  return oe(() => e.every((t) => t == null) ? () => {
5497
5496
  } : (t) => {
5498
5497
  e.forEach((r) => {
@@ -5500,7 +5499,7 @@ function Ql(e) {
5500
5499
  });
5501
5500
  }, e);
5502
5501
  }
5503
- const ec = {
5502
+ const rc = {
5504
5503
  x: 0,
5505
5504
  y: 0,
5506
5505
  width: 0,
@@ -5511,7 +5510,7 @@ const ec = {
5511
5510
  right: 0
5512
5511
  };
5513
5512
  function Ut(e) {
5514
- const t = Xl(), r = S(0), a = S(null), [n, o] = W(ec), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
5513
+ const t = ec(), r = S(0), a = S(null), [n, o] = W(rc), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
5515
5514
  const c = s[0];
5516
5515
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
5517
5516
  a.current && t() && o(c.contentRect);
@@ -5521,21 +5520,21 @@ function Ut(e) {
5521
5520
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
5522
5521
  }), [i, e]), [a, n];
5523
5522
  }
5524
- const tc = {
5523
+ const ac = {
5525
5524
  small: 24,
5526
5525
  // w-6
5527
5526
  medium: 32,
5528
5527
  // w-8
5529
5528
  large: 48
5530
5529
  // w-12
5531
- }, rc = {
5530
+ }, nc = {
5532
5531
  small: 8 * 2,
5533
5532
  // px-2 x 2
5534
5533
  medium: 12 * 2,
5535
5534
  // px-3 x 2
5536
5535
  large: 16 * 2
5537
5536
  // px-4 x 2
5538
- }, ac = 2, Sr = U.forwardRef(
5537
+ }, oc = 2, Cr = U.forwardRef(
5539
5538
  ({
5540
5539
  children: e,
5541
5540
  disabled: t = !1,
@@ -5559,7 +5558,7 @@ const tc = {
5559
5558
  animated: k = !1,
5560
5559
  ...A
5561
5560
  }, E) => {
5562
- const C = Jl({
5561
+ const C = Xl({
5563
5562
  type: xt,
5564
5563
  mode: r,
5565
5564
  focusMode: a,
@@ -5576,11 +5575,11 @@ const tc = {
5576
5575
  radius: b,
5577
5576
  variant: v,
5578
5577
  animated: k
5579
- }), N = Kl({ mode: r, raw: s, iconClassName: x }), _ = Yl({ animated: k }), [w, T] = Ut(), [R, B] = Ut(), [$, O] = Ut(), V = S(0), I = S(null), H = Ql([E, I]);
5578
+ }), N = Jl({ mode: r, raw: s, iconClassName: x }), _ = Zl({ animated: k }), [w, T] = Ut(), [R, B] = Ut(), [$, O] = Ut(), P = S(0), I = S(null), H = tc([E, I]);
5580
5579
  return pe(() => {
5581
- $ && $.current && k && (V.current = O.width + rc[u] + (c ? 0 : ac));
5580
+ $ && $.current && k && (P.current = O.width + nc[u] + (c ? 0 : oc));
5582
5581
  }, [O, $, u, c, k]), pe(() => {
5583
- I && I.current && k && (h && w && T.width > 0 ? (w.current && (w.current.style.opacity = "100"), I.current.style.width = `${T.width + V.current}px`) : g && B.width > 0 ? (R.current && (R.current.style.opacity = "100"), I.current.style.width = `${B.width + V.current}px`) : (w.current && (w.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), I.current.style.width = `${tc[u]}px`));
5582
+ I && I.current && k && (h && w && T.width > 0 ? (w.current && (w.current.style.opacity = "100"), I.current.style.width = `${T.width + P.current}px`) : g && B.width > 0 ? (R.current && (R.current.style.opacity = "100"), I.current.style.width = `${B.width + P.current}px`) : (w.current && (w.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), I.current.style.width = `${ac[u]}px`));
5584
5583
  }, [
5585
5584
  T,
5586
5585
  h,
@@ -5591,7 +5590,7 @@ const tc = {
5591
5590
  u,
5592
5591
  k
5593
5592
  ]), /* @__PURE__ */ L(
5594
- kn,
5593
+ wn,
5595
5594
  {
5596
5595
  ref: H,
5597
5596
  className: C,
@@ -5601,7 +5600,7 @@ const tc = {
5601
5600
  ...A,
5602
5601
  children: [
5603
5602
  /* @__PURE__ */ l(
5604
- va,
5603
+ ka,
5605
5604
  {
5606
5605
  label: g,
5607
5606
  labelRef: R,
@@ -5611,7 +5610,7 @@ const tc = {
5611
5610
  ),
5612
5611
  /* @__PURE__ */ l("span", { ref: $, className: N, children: e }),
5613
5612
  /* @__PURE__ */ l(
5614
- va,
5613
+ ka,
5615
5614
  {
5616
5615
  label: h,
5617
5616
  labelRef: w,
@@ -5623,13 +5622,13 @@ const tc = {
5623
5622
  }
5624
5623
  );
5625
5624
  }
5626
- ), va = ({
5625
+ ), ka = ({
5627
5626
  labelRef: e,
5628
5627
  labelClass: t,
5629
5628
  label: r,
5630
5629
  labelInnerClass: a
5631
5630
  }) => /* @__PURE__ */ l("span", { ref: e, className: t, children: r && /* @__PURE__ */ l("span", { className: a, children: r }) });
5632
- Sr.displayName = "ButtonIcon";
5631
+ Cr.displayName = "ButtonIcon";
5633
5632
  /*!
5634
5633
  @versini/ui-button v4.2.4
5635
5634
  © 2025 gizmette.com
@@ -5643,7 +5642,7 @@ try {
5643
5642
  });
5644
5643
  } catch {
5645
5644
  }
5646
- const nc = U.forwardRef(
5645
+ const ic = U.forwardRef(
5647
5646
  ({
5648
5647
  children: e,
5649
5648
  mode: t = "system",
@@ -5669,7 +5668,7 @@ const nc = U.forwardRef(
5669
5668
  }
5670
5669
  ) : "";
5671
5670
  return /* @__PURE__ */ l("div", { className: i, children: /* @__PURE__ */ l(
5672
- Sr,
5671
+ Cr,
5673
5672
  {
5674
5673
  className: m("justify-center", r),
5675
5674
  ref: o,
@@ -5681,8 +5680,8 @@ const nc = U.forwardRef(
5681
5680
  ) });
5682
5681
  }
5683
5682
  );
5684
- nc.displayName = "ButtonSort";
5685
- const wn = ({
5683
+ ic.displayName = "ButtonSort";
5684
+ const xn = ({
5686
5685
  children: e,
5687
5686
  fill: t,
5688
5687
  viewBox: r,
@@ -5725,14 +5724,14 @@ try {
5725
5724
  });
5726
5725
  } catch {
5727
5726
  }
5728
- const oc = ({
5727
+ const sc = ({
5729
5728
  className: e,
5730
5729
  viewBox: t,
5731
5730
  title: r,
5732
5731
  monotone: a,
5733
5732
  ...n
5734
5733
  }) => /* @__PURE__ */ L(
5735
- wn,
5734
+ xn,
5736
5735
  {
5737
5736
  defaultViewBox: "0 0 448 512",
5738
5737
  size: "size-5",
@@ -5751,14 +5750,14 @@ const oc = ({
5751
5750
  /* @__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" })
5752
5751
  ]
5753
5752
  }
5754
- ), ic = ({
5753
+ ), lc = ({
5755
5754
  className: e,
5756
5755
  viewBox: t,
5757
5756
  title: r,
5758
5757
  monotone: a,
5759
5758
  ...n
5760
5759
  }) => /* @__PURE__ */ l(
5761
- wn,
5760
+ xn,
5762
5761
  {
5763
5762
  defaultViewBox: "0 0 512 512",
5764
5763
  size: "size-5",
@@ -5782,30 +5781,30 @@ try {
5782
5781
  });
5783
5782
  } catch {
5784
5783
  }
5785
- const sc = ({
5784
+ const cc = ({
5786
5785
  kind: e,
5787
5786
  noMaxWidth: t
5788
5787
  }) => m("p-4", {
5789
5788
  "max-w-xs sm:max-w-md md:max-w-2xl": !t,
5790
5789
  "lg:max-w-3xl": e === "left" && !t
5791
- }), lc = ({ kind: e }) => m({
5790
+ }), dc = ({ kind: e }) => m({
5792
5791
  "bg-surface-lighter dark:bg-surface-dark": e === "left",
5793
5792
  "bg-surface-accent": e === "right"
5794
- }), cc = ({ kind: e }) => m(
5793
+ }), uc = ({ kind: e }) => m(
5795
5794
  "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",
5796
5795
  {
5797
5796
  "text-copy-lighter": e === "right"
5798
5797
  }
5799
- ), dc = ({ kind: e }) => m("rounded-b-xl", {
5798
+ ), mc = ({ kind: e }) => m("rounded-b-xl", {
5800
5799
  "rounded-tr-xl": e === "left",
5801
5800
  "rounded-tl-xl": e === "right"
5802
- }), uc = ({
5801
+ }), fc = ({
5803
5802
  kind: e,
5804
5803
  className: t,
5805
5804
  noMaxWidth: r
5806
5805
  }) => {
5807
5806
  const a = m(
5808
- Vl,
5807
+ zl,
5809
5808
  "flex items-start",
5810
5809
  {
5811
5810
  "flex-row-reverse": e === "right"
@@ -5813,10 +5812,10 @@ const sc = ({
5813
5812
  t
5814
5813
  ), n = m(
5815
5814
  "flex flex-col empty:hidden",
5816
- sc({ kind: e, noMaxWidth: r }),
5817
- cc({ kind: e }),
5818
- lc({ kind: e }),
5819
- dc({ kind: e })
5815
+ cc({ kind: e, noMaxWidth: r }),
5816
+ uc({ kind: e }),
5817
+ dc({ kind: e }),
5818
+ mc({ kind: e })
5820
5819
  ), o = "pr-2 pt-1 text-end text-xs text-copy-light", i = m("flex flex-col-reverse gap-2 sm:flex-row", {
5821
5820
  "ml-2": e === "left",
5822
5821
  "mr-2": e === "right"
@@ -5827,7 +5826,7 @@ const sc = ({
5827
5826
  footer: o,
5828
5827
  copyButton: i
5829
5828
  };
5830
- }, mc = ({
5829
+ }, hc = ({
5831
5830
  children: e,
5832
5831
  kind: t = "left",
5833
5832
  className: r,
@@ -5838,7 +5837,7 @@ const sc = ({
5838
5837
  copyToClipboardMode: s = "system",
5839
5838
  noMaxWidth: c = !1
5840
5839
  }) => {
5841
- const [d, f] = W(!1), u = uc({ kind: t, className: r, noMaxWidth: c }), h = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), g = () => {
5840
+ const [d, f] = W(!1), u = fc({ kind: t, className: r, noMaxWidth: c }), h = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), g = () => {
5842
5841
  f(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
5843
5842
  };
5844
5843
  return M(() => {
@@ -5859,7 +5858,7 @@ const sc = ({
5859
5858
  n && n
5860
5859
  ] }),
5861
5860
  h && /* @__PURE__ */ l("div", { className: u.copyButton, children: /* @__PURE__ */ l(
5862
- Sr,
5861
+ Cr,
5863
5862
  {
5864
5863
  noBorder: !0,
5865
5864
  noBackground: !0,
@@ -5869,11 +5868,11 @@ const sc = ({
5869
5868
  label: d ? "Copied to clipboard" : "Copy to clipboard",
5870
5869
  onClick: g,
5871
5870
  disabled: d,
5872
- children: d ? /* @__PURE__ */ l(oc, { size: "size-3" }) : /* @__PURE__ */ l(ic, { size: "size-3" })
5871
+ children: d ? /* @__PURE__ */ l(sc, { size: "size-3" }) : /* @__PURE__ */ l(lc, { size: "size-3" })
5873
5872
  }
5874
5873
  ) })
5875
5874
  ] });
5876
- }, ka = "av-button", _t = "icon", Cr = "button", cr = "link", fc = ({
5875
+ }, wa = "av-button", _t = "icon", Nr = "button", dr = "link", gc = ({
5877
5876
  type: e,
5878
5877
  size: t,
5879
5878
  labelRight: r,
@@ -5883,8 +5882,8 @@ const sc = ({
5883
5882
  }) => {
5884
5883
  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";
5885
5884
  switch (e) {
5886
- case Cr:
5887
- case cr:
5885
+ case Nr:
5886
+ case dr:
5888
5887
  return m({
5889
5888
  [i]: t === "small",
5890
5889
  [s]: t === "medium",
@@ -5909,7 +5908,7 @@ const sc = ({
5909
5908
  "h-12": t === "large" && o && (r || a)
5910
5909
  });
5911
5910
  }
5912
- }, hc = ({
5911
+ }, pc = ({
5913
5912
  type: e,
5914
5913
  size: t,
5915
5914
  labelRight: r,
@@ -5917,10 +5916,10 @@ const sc = ({
5917
5916
  }) => {
5918
5917
  const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
5919
5918
  switch (e) {
5920
- case Cr:
5921
- case cr:
5919
+ case Nr:
5920
+ case dr:
5922
5921
  return m({
5923
- "text-center": e === cr,
5922
+ "text-center": e === dr,
5924
5923
  [n]: t === "small",
5925
5924
  [o]: t === "medium",
5926
5925
  [i]: t === "large"
@@ -5932,7 +5931,7 @@ const sc = ({
5932
5931
  [i]: t === "large" && (r || a)
5933
5932
  });
5934
5933
  }
5935
- }, gc = ({
5934
+ }, yc = ({
5936
5935
  mode: e,
5937
5936
  noBackground: t,
5938
5937
  noTruncate: r,
@@ -5968,7 +5967,7 @@ const sc = ({
5968
5967
  return m("not-prose text-copy-lighter", {
5969
5968
  truncate: !r
5970
5969
  });
5971
- }, pc = ({
5970
+ }, bc = ({
5972
5971
  mode: e,
5973
5972
  noBackground: t,
5974
5973
  variant: r
@@ -5998,13 +5997,13 @@ const sc = ({
5998
5997
  if (r === "selected")
5999
5998
  return "bg-action-selected-dark";
6000
5999
  }
6001
- }, yc = ({
6000
+ }, vc = ({
6002
6001
  radius: e
6003
6002
  }) => m({
6004
6003
  "rounded-full": e === "large",
6005
6004
  "rounded-md": e === "medium",
6006
6005
  "rounded-sm": e === "small"
6007
- }), bc = ({
6006
+ }), kc = ({
6008
6007
  mode: e,
6009
6008
  disabled: t,
6010
6009
  variant: r
@@ -6034,7 +6033,7 @@ const sc = ({
6034
6033
  });
6035
6034
  if (r === "selected")
6036
6035
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
6037
- }, vc = ({
6036
+ }, wc = ({
6038
6037
  mode: e,
6039
6038
  disabled: t,
6040
6039
  variant: r
@@ -6064,7 +6063,7 @@ const sc = ({
6064
6063
  });
6065
6064
  if (r === "selected")
6066
6065
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
6067
- }, kc = ({
6066
+ }, xc = ({
6068
6067
  mode: e,
6069
6068
  noBorder: t,
6070
6069
  variant: r
@@ -6094,14 +6093,14 @@ const sc = ({
6094
6093
  });
6095
6094
  if (r === "selected")
6096
6095
  return "border border-border-selected-dark";
6097
- }, wc = ({
6096
+ }, _c = ({
6098
6097
  focusMode: e
6099
6098
  }) => m("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
6100
6099
  "focus:outline-focus-dark": e === "dark",
6101
6100
  "focus:outline-focus-light": e === "light",
6102
6101
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
6103
6102
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
6104
- }), xc = ({
6103
+ }), Ec = ({
6105
6104
  mode: e,
6106
6105
  raw: t,
6107
6106
  iconClassName: r
@@ -6113,11 +6112,11 @@ const sc = ({
6113
6112
  "dark:text-copy-accent-dark": e === "system"
6114
6113
  },
6115
6114
  r
6116
- ), _c = ({
6115
+ ), Tc = ({
6117
6116
  animated: e
6118
6117
  }) => m({
6119
6118
  "transition-opacity duration-300 ease-in": e
6120
- }), xn = ({
6119
+ }), _n = ({
6121
6120
  type: e,
6122
6121
  className: t,
6123
6122
  raw: r,
@@ -6135,17 +6134,17 @@ const sc = ({
6135
6134
  align: p,
6136
6135
  radius: y,
6137
6136
  animated: b
6138
- }) => (h || (h = "primary"), r ? m(ka, t) : m(
6139
- ka,
6140
- gc({
6137
+ }) => (h || (h = "primary"), r ? m(wa, t) : m(
6138
+ wa,
6139
+ yc({
6141
6140
  mode: a,
6142
6141
  variant: h,
6143
6142
  noBackground: u,
6144
6143
  noTruncate: g
6145
6144
  }),
6146
- pc({ mode: a, noBackground: u, variant: h }),
6147
- yc({ radius: y }),
6148
- fc({
6145
+ bc({ mode: a, noBackground: u, variant: h }),
6146
+ vc({ radius: y }),
6147
+ gc({
6149
6148
  type: e,
6150
6149
  size: s,
6151
6150
  labelRight: d,
@@ -6153,11 +6152,11 @@ const sc = ({
6153
6152
  align: p,
6154
6153
  animated: b
6155
6154
  }),
6156
- hc({ type: e, size: s, labelRight: d, labelLeft: f }),
6157
- kc({ mode: a, variant: h, noBorder: c }),
6158
- wc({ focusMode: n }),
6159
- bc({ mode: a, variant: h, disabled: o }),
6160
- vc({ mode: a, variant: h, disabled: o }),
6155
+ pc({ type: e, size: s, labelRight: d, labelLeft: f }),
6156
+ xc({ mode: a, variant: h, noBorder: c }),
6157
+ _c({ focusMode: n }),
6158
+ kc({ mode: a, variant: h, disabled: o }),
6159
+ wc({ mode: a, variant: h, disabled: o }),
6161
6160
  {
6162
6161
  "w-full": i,
6163
6162
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -6166,24 +6165,24 @@ const sc = ({
6166
6165
  "transition-[width] duration-300 ease-in-out": e === _t && b
6167
6166
  }),
6168
6167
  t
6169
- )), Ec = (e, t, r) => {
6168
+ )), Sc = (e, t, r) => {
6170
6169
  var a;
6171
6170
  !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);
6172
- }, Nr = U.forwardRef((e, t) => {
6171
+ }, Rr = U.forwardRef((e, t) => {
6173
6172
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
6174
6173
  return /* @__PURE__ */ l(
6175
6174
  "button",
6176
6175
  {
6177
6176
  ref: t,
6178
6177
  onClick: (o) => {
6179
- Ec(o, a, r);
6178
+ Sc(o, a, r);
6180
6179
  },
6181
6180
  ...n
6182
6181
  }
6183
6182
  );
6184
6183
  });
6185
- Nr.displayName = "BaseButton";
6186
- const _n = U.forwardRef(
6184
+ Rr.displayName = "BaseButton";
6185
+ const En = U.forwardRef(
6187
6186
  ({
6188
6187
  children: e,
6189
6188
  disabled: t = !1,
@@ -6199,8 +6198,8 @@ const _n = U.forwardRef(
6199
6198
  radius: u = "large",
6200
6199
  ...h
6201
6200
  }, g) => {
6202
- const p = xn({
6203
- type: Cr,
6201
+ const p = _n({
6202
+ type: Nr,
6204
6203
  mode: r,
6205
6204
  focusMode: a,
6206
6205
  fullWidth: n,
@@ -6214,7 +6213,7 @@ const _n = U.forwardRef(
6214
6213
  radius: u
6215
6214
  });
6216
6215
  return /* @__PURE__ */ l(
6217
- Nr,
6216
+ Rr,
6218
6217
  {
6219
6218
  ref: g,
6220
6219
  className: p,
@@ -6225,14 +6224,14 @@ const _n = U.forwardRef(
6225
6224
  );
6226
6225
  }
6227
6226
  );
6228
- _n.displayName = "Button";
6229
- function Tc() {
6227
+ En.displayName = "Button";
6228
+ function Cc() {
6230
6229
  const e = S(!1);
6231
6230
  return M(() => (e.current = !0, () => {
6232
6231
  e.current = !1;
6233
6232
  }), []), Z(() => e.current, []);
6234
6233
  }
6235
- function Sc(e) {
6234
+ function Nc(e) {
6236
6235
  return oe(() => e.every((t) => t == null) ? () => {
6237
6236
  } : (t) => {
6238
6237
  e.forEach((r) => {
@@ -6240,7 +6239,7 @@ function Sc(e) {
6240
6239
  });
6241
6240
  }, e);
6242
6241
  }
6243
- const Cc = {
6242
+ const Rc = {
6244
6243
  x: 0,
6245
6244
  y: 0,
6246
6245
  width: 0,
@@ -6251,7 +6250,7 @@ const Cc = {
6251
6250
  right: 0
6252
6251
  };
6253
6252
  function Ht(e) {
6254
- const t = Tc(), r = S(0), a = S(null), [n, o] = W(Cc), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
6253
+ const t = Cc(), r = S(0), a = S(null), [n, o] = W(Rc), i = oe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
6255
6254
  const c = s[0];
6256
6255
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
6257
6256
  a.current && t() && o(c.contentRect);
@@ -6261,21 +6260,21 @@ function Ht(e) {
6261
6260
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
6262
6261
  }), [i, e]), [a, n];
6263
6262
  }
6264
- const Nc = {
6263
+ const Ic = {
6265
6264
  small: 24,
6266
6265
  // w-6
6267
6266
  medium: 32,
6268
6267
  // w-8
6269
6268
  large: 48
6270
6269
  // w-12
6271
- }, Rc = {
6270
+ }, Ac = {
6272
6271
  small: 8 * 2,
6273
6272
  // px-2 x 2
6274
6273
  medium: 12 * 2,
6275
6274
  // px-3 x 2
6276
6275
  large: 16 * 2
6277
6276
  // px-4 x 2
6278
- }, Ic = 2, En = U.forwardRef(
6277
+ }, $c = 2, Tn = U.forwardRef(
6279
6278
  ({
6280
6279
  children: e,
6281
6280
  disabled: t = !1,
@@ -6299,7 +6298,7 @@ const Nc = {
6299
6298
  animated: k = !1,
6300
6299
  ...A
6301
6300
  }, E) => {
6302
- const C = xn({
6301
+ const C = _n({
6303
6302
  type: _t,
6304
6303
  mode: r,
6305
6304
  focusMode: a,
@@ -6316,11 +6315,11 @@ const Nc = {
6316
6315
  radius: b,
6317
6316
  variant: v,
6318
6317
  animated: k
6319
- }), N = xc({ mode: r, raw: s, iconClassName: x }), _ = _c({ animated: k }), [w, T] = Ht(), [R, B] = Ht(), [$, O] = Ht(), V = S(0), I = S(null), H = Sc([E, I]);
6318
+ }), N = Ec({ mode: r, raw: s, iconClassName: x }), _ = Tc({ animated: k }), [w, T] = Ht(), [R, B] = Ht(), [$, O] = Ht(), P = S(0), I = S(null), H = Nc([E, I]);
6320
6319
  return pe(() => {
6321
- $ && $.current && k && (V.current = O.width + Rc[u] + (c ? 0 : Ic));
6320
+ $ && $.current && k && (P.current = O.width + Ac[u] + (c ? 0 : $c));
6322
6321
  }, [O, $, u, c, k]), pe(() => {
6323
- I && I.current && k && (h && w && T.width > 0 ? (w.current && (w.current.style.opacity = "100"), I.current.style.width = `${T.width + V.current}px`) : g && B.width > 0 ? (R.current && (R.current.style.opacity = "100"), I.current.style.width = `${B.width + V.current}px`) : (w.current && (w.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), I.current.style.width = `${Nc[u]}px`));
6322
+ I && I.current && k && (h && w && T.width > 0 ? (w.current && (w.current.style.opacity = "100"), I.current.style.width = `${T.width + P.current}px`) : g && B.width > 0 ? (R.current && (R.current.style.opacity = "100"), I.current.style.width = `${B.width + P.current}px`) : (w.current && (w.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), I.current.style.width = `${Ic[u]}px`));
6324
6323
  }, [
6325
6324
  T,
6326
6325
  h,
@@ -6331,7 +6330,7 @@ const Nc = {
6331
6330
  u,
6332
6331
  k
6333
6332
  ]), /* @__PURE__ */ L(
6334
- Nr,
6333
+ Rr,
6335
6334
  {
6336
6335
  ref: H,
6337
6336
  className: C,
@@ -6341,7 +6340,7 @@ const Nc = {
6341
6340
  ...A,
6342
6341
  children: [
6343
6342
  /* @__PURE__ */ l(
6344
- wa,
6343
+ xa,
6345
6344
  {
6346
6345
  label: g,
6347
6346
  labelRef: R,
@@ -6351,7 +6350,7 @@ const Nc = {
6351
6350
  ),
6352
6351
  /* @__PURE__ */ l("span", { ref: $, className: N, children: e }),
6353
6352
  /* @__PURE__ */ l(
6354
- wa,
6353
+ xa,
6355
6354
  {
6356
6355
  label: h,
6357
6356
  labelRef: w,
@@ -6363,13 +6362,13 @@ const Nc = {
6363
6362
  }
6364
6363
  );
6365
6364
  }
6366
- ), wa = ({
6365
+ ), xa = ({
6367
6366
  labelRef: e,
6368
6367
  labelClass: t,
6369
6368
  label: r,
6370
6369
  labelInnerClass: a
6371
6370
  }) => /* @__PURE__ */ l("span", { ref: e, className: t, children: r && /* @__PURE__ */ l("span", { className: a, children: r }) });
6372
- En.displayName = "ButtonIcon";
6371
+ Tn.displayName = "ButtonIcon";
6373
6372
  /*!
6374
6373
  @versini/ui-button v4.2.4
6375
6374
  © 2025 gizmette.com
@@ -6383,7 +6382,7 @@ try {
6383
6382
  });
6384
6383
  } catch {
6385
6384
  }
6386
- const Ac = U.forwardRef(
6385
+ const Lc = U.forwardRef(
6387
6386
  ({
6388
6387
  children: e,
6389
6388
  mode: t = "system",
@@ -6409,7 +6408,7 @@ const Ac = U.forwardRef(
6409
6408
  }
6410
6409
  ) : "";
6411
6410
  return /* @__PURE__ */ l("div", { className: i, children: /* @__PURE__ */ l(
6412
- En,
6411
+ Tn,
6413
6412
  {
6414
6413
  className: m("justify-center", r),
6415
6414
  ref: o,
@@ -6421,10 +6420,10 @@ const Ac = U.forwardRef(
6421
6420
  ) });
6422
6421
  }
6423
6422
  );
6424
- Ac.displayName = "ButtonSort";
6425
- const $c = 200, Lc = ({
6423
+ Lc.displayName = "ButtonSort";
6424
+ const Oc = 200, Bc = ({
6426
6425
  string: e,
6427
- idealLength: t = $c
6426
+ idealLength: t = Oc
6428
6427
  }) => {
6429
6428
  if (e.length <= t)
6430
6429
  return { string: e, isTruncated: !1 };
@@ -6435,7 +6434,7 @@ const $c = 200, Lc = ({
6435
6434
  string: e.slice(0, t + r),
6436
6435
  isTruncated: !0
6437
6436
  };
6438
- }, Oc = ({
6437
+ }, Mc = ({
6439
6438
  children: e,
6440
6439
  length: t = 200,
6441
6440
  mode: r = "system",
@@ -6444,14 +6443,14 @@ const $c = 200, Lc = ({
6444
6443
  const [n, o] = W(!1);
6445
6444
  if (typeof e != "string")
6446
6445
  return e;
6447
- const { string: i, isTruncated: s } = Lc({
6446
+ const { string: i, isTruncated: s } = Bc({
6448
6447
  string: e,
6449
6448
  idealLength: t
6450
6449
  });
6451
6450
  return /* @__PURE__ */ L("span", { style: { wordBreak: "break-word" }, children: [
6452
6451
  n ? e : i,
6453
6452
  s && /* @__PURE__ */ l(
6454
- _n,
6453
+ En,
6455
6454
  {
6456
6455
  mode: r,
6457
6456
  focusMode: a,
@@ -6478,21 +6477,21 @@ try {
6478
6477
  });
6479
6478
  } catch {
6480
6479
  }
6481
- const Bc = ({ content: e }) => /* @__PURE__ */ l(
6482
- mc,
6480
+ const Dc = ({ content: e }) => /* @__PURE__ */ l(
6481
+ hc,
6483
6482
  {
6484
6483
  kind: "right",
6485
6484
  copyToClipboard: e,
6486
6485
  copyToClipboardFocusMode: "light",
6487
6486
  className: "mt-3",
6488
- children: /* @__PURE__ */ l(Oc, { mode: "light", focusMode: "light", children: e })
6487
+ children: /* @__PURE__ */ l(Mc, { mode: "light", focusMode: "light", children: e })
6489
6488
  }
6490
- ), xa = Na(
6489
+ ), _a = Ra(
6491
6490
  () => import(
6492
6491
  /* webpackChunkName: "LazyMessageAssistant" */
6493
- "./ChatBubbleAssistant.XRTqE2w4.js"
6492
+ "./ChatBubbleAssistant.dbLXBq32.js"
6494
6493
  ).then((e) => e.ChatBubbleAssistant)
6495
- ), _a = U.memo(
6494
+ ), Ea = U.memo(
6496
6495
  ({
6497
6496
  role: e,
6498
6497
  content: t,
@@ -6500,16 +6499,16 @@ const Bc = ({ content: e }) => /* @__PURE__ */ l(
6500
6499
  processingTime: a,
6501
6500
  usage: n,
6502
6501
  loading: o = !1
6503
- }) => (e === Fe || e === at) && t ? /* @__PURE__ */ l(Wt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(
6504
- xa,
6502
+ }) => (e === Fe || e === at) && t ? /* @__PURE__ */ l(Gt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(
6503
+ _a,
6505
6504
  {
6506
6505
  name: r,
6507
6506
  processingTime: a,
6508
6507
  usage: n,
6509
6508
  content: t
6510
6509
  }
6511
- ) }) : e === Sa && t ? /* @__PURE__ */ l(Bc, { content: t }) : o ? /* @__PURE__ */ l(Wt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(xa, { loading: !0 }) }) : null
6512
- ), Mc = () => {
6510
+ ) }) : e === Ca && t ? /* @__PURE__ */ l(Dc, { content: t }) : o ? /* @__PURE__ */ l(Gt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(_a, { loading: !0 }) }) : null
6511
+ ), Pc = () => {
6513
6512
  var r;
6514
6513
  const {
6515
6514
  state: { messages: e, loading: t }
@@ -6518,7 +6517,7 @@ const Bc = ({ content: e }) => /* @__PURE__ */ l(
6518
6517
  e && e.length > 0 && e.map((a, n) => {
6519
6518
  const { role: o, content: i, messageId: s, name: c, processingTime: d, usage: f } = a, u = s ? `${s}-${o}` : `${n}-${o}`;
6520
6519
  return /* @__PURE__ */ l(
6521
- _a,
6520
+ Ea,
6522
6521
  {
6523
6522
  role: o,
6524
6523
  content: i,
@@ -6529,43 +6528,43 @@ const Bc = ({ content: e }) => /* @__PURE__ */ l(
6529
6528
  u
6530
6529
  );
6531
6530
  }),
6532
- ((r = e == null ? void 0 : e.at(-1)) == null ? void 0 : r.role) === "user" && /* @__PURE__ */ l(_a, { loading: t })
6531
+ ((r = e == null ? void 0 : e.at(-1)) == null ? void 0 : r.role) === "user" && /* @__PURE__ */ l(Ea, { loading: t })
6533
6532
  ] }) });
6534
- }, Dc = () => {
6535
- const { isAuthenticated: e } = Le(), { ref: t, inViewport: r } = vo(), a = Pn({
6533
+ }, Vc = () => {
6534
+ const { isAuthenticated: e } = Le(), { ref: t, inViewport: r } = wo(), a = Un({
6536
6535
  isAuthenticated: e,
6537
6536
  extraClass: "rounded-b-md"
6538
6537
  });
6539
6538
  return /* @__PURE__ */ L(_e, { children: [
6540
6539
  /* @__PURE__ */ L("div", { className: a, children: [
6541
- /* @__PURE__ */ l(zn, {}),
6542
- /* @__PURE__ */ l(Mc, {}),
6540
+ /* @__PURE__ */ l(Hn, {}),
6541
+ /* @__PURE__ */ l(Pc, {}),
6543
6542
  /* @__PURE__ */ l("div", { ref: t })
6544
6543
  ] }),
6545
- /* @__PURE__ */ l(Cl, { show: !r })
6544
+ /* @__PURE__ */ l(Rl, { show: !r })
6546
6545
  ] });
6547
- }, Vc = Na(
6546
+ }, zc = Ra(
6548
6547
  () => import(
6549
6548
  /* webpackChunkName: "LazyHeader" */
6550
- "./HeaderEntry.D5tq2VRC.js"
6549
+ "./HeaderEntry.D0eWiSSF.js"
6551
6550
  )
6552
6551
  );
6553
- function Tn({ isComponent: e = !1 }) {
6554
- const { user: t, getAccessToken: r } = Le(), [a] = Gt({
6555
- key: Ft + Hn,
6552
+ function Sn({ isComponent: e = !1 }) {
6553
+ const { user: t, getAccessToken: r } = Le(), [a] = jt({
6554
+ key: Wt + Wn,
6556
6555
  initialValue: ""
6557
- }), [n] = Gt({
6558
- key: Ft + Fn,
6556
+ }), [n] = jt({
6557
+ key: Wt + Gn,
6559
6558
  initialValue: Ue.ASC
6560
- }), [o, i] = Nt(li, {
6559
+ }), [o, i] = Nt(di, {
6561
6560
  searchString: a,
6562
6561
  sortedCell: "timestamp",
6563
6562
  sortDirection: n
6564
- }), [s, c] = Nt(ci, {
6563
+ }), [s, c] = Nt(ui, {
6565
6564
  prompt: "",
6566
6565
  lastTriggeredTimestamp: 0
6567
- }), [d, f] = Nt(Zi, {
6568
- id: hr(),
6566
+ }), [d, f] = Nt(Qi, {
6567
+ id: gr(),
6569
6568
  model: "",
6570
6569
  provider: "",
6571
6570
  privateChat: !1,
@@ -6576,7 +6575,7 @@ function Tn({ isComponent: e = !1 }) {
6576
6575
  restoring: !1,
6577
6576
  lastTriggeredTimestamp: 0
6578
6577
  });
6579
- Ki({
6578
+ Ji({
6580
6579
  keys: [
6581
6580
  t == null ? void 0 : t.username,
6582
6581
  o.searchString,
@@ -6584,8 +6583,8 @@ function Tn({ isComponent: e = !1 }) {
6584
6583
  0
6585
6584
  ],
6586
6585
  getAccessToken: r
6587
- }), Yi({ getAccessToken: r });
6588
- const { data: u } = br({
6586
+ }), Zi({ getAccessToken: r });
6587
+ const { data: u } = vr({
6589
6588
  keys: [t == null ? void 0 : t.username],
6590
6589
  getAccessToken: r
6591
6590
  });
@@ -6603,7 +6602,7 @@ function Tn({ isComponent: e = !1 }) {
6603
6602
  }
6604
6603
  });
6605
6604
  }, [u]), /* @__PURE__ */ l(
6606
- es.Provider,
6605
+ rs.Provider,
6607
6606
  {
6608
6607
  value: {
6609
6608
  state: o,
@@ -6619,30 +6618,30 @@ function Tn({ isComponent: e = !1 }) {
6619
6618
  value: { state: d, dispatch: f },
6620
6619
  children: [
6621
6620
  /* @__PURE__ */ l(
6622
- fo,
6621
+ go,
6623
6622
  {
6624
6623
  noColors: !0,
6625
6624
  noMargin: !0,
6626
6625
  noPadding: !0,
6627
6626
  noBorder: !0,
6628
- className: Hr({
6627
+ className: Fr({
6629
6628
  extraClass: "mt-5"
6630
6629
  }),
6631
- children: /* @__PURE__ */ l(Wt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(Vc, { isComponent: e }) })
6630
+ children: /* @__PURE__ */ l(Gt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(zc, { isComponent: e }) })
6632
6631
  }
6633
6632
  ),
6634
6633
  /* @__PURE__ */ l(
6635
- Un,
6634
+ Fn,
6636
6635
  {
6637
- className: Hr({
6636
+ className: Fr({
6638
6637
  extraClass: "max-h-[calc(100svh_-_250px)]"
6639
6638
  }),
6640
6639
  noMargin: !0,
6641
6640
  noPadding: !0,
6642
- children: /* @__PURE__ */ l(Dc, {})
6641
+ children: /* @__PURE__ */ l(Vc, {})
6643
6642
  }
6644
6643
  ),
6645
- /* @__PURE__ */ l(Dl, { isComponent: e })
6644
+ /* @__PURE__ */ l(Vl, { isComponent: e })
6646
6645
  ]
6647
6646
  }
6648
6647
  )
@@ -6651,38 +6650,38 @@ function Tn({ isComponent: e = !1 }) {
6651
6650
  }
6652
6651
  );
6653
6652
  }
6654
- Tn.displayName = "App";
6655
- const ed = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Tn }, Symbol.toStringTag, { value: "Module" }));
6653
+ Sn.displayName = "App";
6654
+ const rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Sn }, Symbol.toStringTag, { value: "Module" }));
6656
6655
  export {
6657
- qc as $e,
6658
- ed as App,
6656
+ Yc as $e,
6657
+ rd as App,
6659
6658
  Ue as B,
6660
- Ji as CHAT_RESTORE,
6659
+ Xi as CHAT_RESTORE,
6661
6660
  ie as ChatContext,
6662
- xl as ConfirmationPanel,
6663
- Yc as De,
6664
- Gt as E,
6665
- Kc as Fe,
6666
- es as HistoryContext,
6667
- ai as Le,
6668
- Qc as P,
6661
+ El as ConfirmationPanel,
6662
+ Zc as De,
6663
+ jt as E,
6664
+ Jc as Fe,
6665
+ rs as HistoryContext,
6666
+ oi as Le,
6667
+ td as P,
6669
6668
  ct as R,
6670
- mc as Re,
6669
+ hc as Re,
6671
6670
  Be as SERVICE_TYPES,
6672
- Wc as Ue,
6673
- jc as We,
6674
- wl as Ze,
6675
- Ve as _e,
6676
- Co as i,
6677
- Gc as je,
6678
- so as m,
6679
- Tr as me,
6680
- Fr as p,
6681
- yr as serviceCall,
6682
- Gi as setNewProvider,
6683
- Zc as useChatsHistory,
6684
- Xc as useServerCapabilities,
6685
- Jc as useUserChatStats,
6686
- br as useUserPreferences,
6687
- Wr as z
6671
+ jc as Ue,
6672
+ Kc as We,
6673
+ _l as Ze,
6674
+ Pe as _e,
6675
+ Ro as i,
6676
+ qc as je,
6677
+ co as m,
6678
+ Sr as me,
6679
+ Wr as p,
6680
+ br as serviceCall,
6681
+ qi as setNewProvider,
6682
+ Qc as useChatsHistory,
6683
+ ed as useServerCapabilities,
6684
+ Xc as useUserChatStats,
6685
+ vr as useUserPreferences,
6686
+ Gr as z
6688
6687
  };