@versini/sassysaint 6.6.7 → 6.6.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  import { jsx as c, jsxs as I, Fragment as _e } from "react/jsx-runtime";
2
- import { f as ye, ACTION_RESTORE as Ra, ACTION_MESSAGE as We, ROLE_ASSISTANT as je, ACTION_RESET as Ae, ACTION_MODEL as _n, ACTION_STREAMING as En, ACTION_SORT as Ia, ACTION_SEARCH as $a, ACTION_RESET_PROMPT as Tn, ACTION_TOGGLE_PROMPT as Sn, DEFAULT_AI_ENGINE as Ne, re as Oe, DEFAULT_ICON_ACTION_SIZE as he, L as La, j as Mr, C as Vr, LOCAL_STORAGE_PREFIX as Ht, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Aa, un as Be, ENGINE_ANTHROPIC as Ct, ENGINE_OPENAI as Dr, PROMPT_CLASSNAME as Oa, PROMPT_EDITABLE_AREA_CLASSNAME as Ba, ROLE_SYSTEM as Ma, ROLE_INTERNAL as cr, ROLE_HIDDEN as Va, STATS_SEPARATOR as Pr, CLIPBOARD_PROMPT as zr, TYPE_QUESTION as Da, ERROR_MESSAGE as Pa, ROLE_USER as Wt, FOOTER_DISCLAIMER as za, isLastMessageFromRole as Ua, getMessageContaintWrapperClass as Fa, Logo as Ha, getMainPaddingClass as Ur, r as Wa, LOCAL_STORAGE_SEARCH as ja, LOCAL_STORAGE_SORT as Ga } from "./index.DzJ16BDT.js";
2
+ import { f as be, ACTION_RESTORE as Ia, ACTION_MESSAGE as We, ROLE_ASSISTANT as je, ACTION_RESET as Ae, ACTION_MODEL as En, ACTION_STREAMING as Tn, ACTION_SORT as La, ACTION_SEARCH as $a, ACTION_RESET_PROMPT as Sn, ACTION_TOGGLE_PROMPT as Cn, DEFAULT_AI_ENGINE as Ne, re as Oe, DEFAULT_ICON_ACTION_SIZE as he, L as Aa, j as Mr, C as Vr, LOCAL_STORAGE_PREFIX as Ht, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Oa, un as Be, ENGINE_ANTHROPIC as Ct, ENGINE_OPENAI as Dr, PROMPT_CLASSNAME as Ba, PROMPT_EDITABLE_AREA_CLASSNAME as Ma, ROLE_SYSTEM as Va, ROLE_INTERNAL as lr, ROLE_HIDDEN as Da, STATS_SEPARATOR as Pr, CLIPBOARD_PROMPT as zr, TYPE_QUESTION as Pa, ERROR_MESSAGE as za, ROLE_USER as cr, FOOTER_DISCLAIMER as Ua, isLastMessageFromRole as Fa, getMessageContaintWrapperClass as Ha, Logo as Wa, getMainPaddingClass as Ur, r as ja, LOCAL_STORAGE_SEARCH as Ga, LOCAL_STORAGE_SORT as qa } from "./index.BiSTuu2f.js";
3
3
  import m from "clsx";
4
4
  import * as J from "react";
5
- import F, { useEffect as M, useRef as T, useState as j, useCallback as X, useSyncExternalStore as qa, useMemo as ue, useId as dr, useLayoutEffect as pe, useContext as W, createContext as Ka, useDebugValue as Ya, forwardRef as Cn, lazy as Nn, Suspense as jt, useReducer as Nt } from "react";
6
- import { useMergeRefs as ur, FloatingPortal as Rn, FloatingOverlay as Ja, FloatingFocusManager as In, useFloating as $n, useClick as Ln, useDismiss as An, useRole as On, useInteractions as Bn, useFloatingTree as Mn, useFloatingNodeId as Za, useListItem as Vn, offset as Xa, flip as Qa, shift as eo, autoUpdate as to, useListNavigation as ro, useTypeahead as no, FloatingNode as ao, FloatingList as oo, FloatingTree as io } from "@floating-ui/react";
5
+ import U, { useEffect as M, useRef as T, useState as j, useCallback as X, useSyncExternalStore as Ka, useMemo as ue, useId as dr, useLayoutEffect as pe, useContext as W, createContext as Ya, useDebugValue as Ja, forwardRef as Nn, lazy as Rn, Suspense as Wt, useReducer as Nt } from "react";
6
+ import { useMergeRefs as ur, FloatingPortal as In, FloatingOverlay as Za, FloatingFocusManager as Ln, useFloating as $n, useClick as An, useDismiss as On, useRole as Bn, useInteractions as Mn, useFloatingTree as Vn, useFloatingNodeId as Xa, useListItem as Dn, offset as Qa, flip as eo, shift as to, autoUpdate as ro, useListNavigation as no, useTypeahead as ao, FloatingNode as oo, FloatingList as io, FloatingTree as so } from "@floating-ui/react";
7
7
  const Fr = ({
8
8
  className: e,
9
9
  viewBox: t,
@@ -11,7 +11,7 @@ const Fr = ({
11
11
  monotone: n,
12
12
  ...a
13
13
  }) => /* @__PURE__ */ c(
14
- ye,
14
+ be,
15
15
  {
16
16
  defaultViewBox: "0 0 24 24",
17
17
  size: "size-5",
@@ -21,14 +21,14 @@ const Fr = ({
21
21
  ...a,
22
22
  children: /* @__PURE__ */ c("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
- ), so = ({
24
+ ), lo = ({
25
25
  className: e,
26
26
  viewBox: t,
27
27
  title: r,
28
28
  monotone: n,
29
29
  ...a
30
30
  }) => /* @__PURE__ */ I(
31
- ye,
31
+ be,
32
32
  {
33
33
  defaultViewBox: "0 0 448 512",
34
34
  size: "size-5",
@@ -47,14 +47,14 @@ const Fr = ({
47
47
  /* @__PURE__ */ c("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
- ), lo = ({
50
+ ), co = ({
51
51
  className: e,
52
52
  viewBox: t,
53
53
  title: r,
54
54
  monotone: n,
55
55
  ...a
56
56
  }) => /* @__PURE__ */ c(
57
- ye,
57
+ be,
58
58
  {
59
59
  defaultViewBox: "0 0 384 512",
60
60
  size: "size-5",
@@ -70,14 +70,14 @@ const Fr = ({
70
70
  }
71
71
  )
72
72
  }
73
- ), co = ({
73
+ ), uo = ({
74
74
  className: e,
75
75
  viewBox: t,
76
76
  title: r,
77
77
  monotone: n,
78
78
  ...a
79
79
  }) => /* @__PURE__ */ I(
80
- ye,
80
+ be,
81
81
  {
82
82
  defaultViewBox: "0 0 384 512",
83
83
  size: "size-5",
@@ -96,14 +96,14 @@ const Fr = ({
96
96
  /* @__PURE__ */ c("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
- ), uo = ({
99
+ ), mo = ({
100
100
  className: e,
101
101
  viewBox: t,
102
102
  title: r,
103
103
  monotone: n,
104
104
  ...a
105
105
  }) => /* @__PURE__ */ I(
106
- ye,
106
+ be,
107
107
  {
108
108
  defaultViewBox: "0 0 512 512",
109
109
  size: "size-5",
@@ -122,14 +122,14 @@ const Fr = ({
122
122
  /* @__PURE__ */ c("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
- ), mo = ({
125
+ ), go = ({
126
126
  className: e,
127
127
  viewBox: t,
128
128
  title: r,
129
129
  monotone: n,
130
130
  ...a
131
131
  }) => /* @__PURE__ */ I(
132
- ye,
132
+ be,
133
133
  {
134
134
  defaultViewBox: "0 0 448 512",
135
135
  size: "size-5",
@@ -155,7 +155,7 @@ const Fr = ({
155
155
  monotone: n,
156
156
  ...a
157
157
  }) => /* @__PURE__ */ c(
158
- ye,
158
+ be,
159
159
  {
160
160
  defaultViewBox: "0 0 24 24",
161
161
  size: "size-5",
@@ -165,14 +165,14 @@ const Fr = ({
165
165
  ...a,
166
166
  children: /* @__PURE__ */ c("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
- ), go = ({
168
+ ), fo = ({
169
169
  className: e,
170
170
  viewBox: t,
171
171
  title: r,
172
172
  monotone: n,
173
173
  ...a
174
174
  }) => /* @__PURE__ */ I(
175
- ye,
175
+ be,
176
176
  {
177
177
  defaultViewBox: "0 0 512 512",
178
178
  size: "size-5",
@@ -191,14 +191,14 @@ const Fr = ({
191
191
  /* @__PURE__ */ c("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
- ), fo = ({
194
+ ), ho = ({
195
195
  className: e,
196
196
  viewBox: t,
197
197
  title: r,
198
198
  monotone: n,
199
199
  ...a
200
200
  }) => /* @__PURE__ */ I(
201
- ye,
201
+ be,
202
202
  {
203
203
  defaultViewBox: "0 0 448 512",
204
204
  size: "size-5",
@@ -231,7 +231,7 @@ try {
231
231
  });
232
232
  } catch {
233
233
  }
234
- const ho = "av-header", po = ({
234
+ const po = "av-header", bo = ({
235
235
  children: e,
236
236
  className: t,
237
237
  raw: r = !1,
@@ -243,7 +243,7 @@ const ho = "av-header", po = ({
243
243
  noPadding: l = !1
244
244
  }) => {
245
245
  const u = m(
246
- ho,
246
+ po,
247
247
  {
248
248
  "border-border-accent": n === "dark" && !r && !a && !i,
249
249
  "border-border-medium": n === "light" && !r && !a && !i,
@@ -278,7 +278,7 @@ function yo(e) {
278
278
  key: a
279
279
  };
280
280
  }
281
- function bo(e, t) {
281
+ function vo(e, t) {
282
282
  const { alt: r, ctrl: n, meta: a, mod: o, shift: i, key: s } = e, { altKey: l, ctrlKey: u, metaKey: h, shiftKey: d, key: g } = t;
283
283
  if (r !== l)
284
284
  return !1;
@@ -289,33 +289,33 @@ function bo(e, t) {
289
289
  return !1;
290
290
  return i !== d ? !1 : !!(s && (g.toLowerCase() === s.toLowerCase() || t.code.replace("Key", "").toLowerCase() === s.toLowerCase()));
291
291
  }
292
- function Dn(e) {
293
- return (t) => bo(yo(e), t);
292
+ function Pn(e) {
293
+ return (t) => vo(yo(e), t);
294
294
  }
295
- function vo(e) {
295
+ function ko(e) {
296
296
  return (t) => {
297
297
  const r = "nativeEvent" in t ? t.nativeEvent : t;
298
298
  e.forEach(([n, a, o = { preventDefault: !0 }]) => {
299
- Dn(n)(r) && (o.preventDefault && t.preventDefault(), a(r));
299
+ Pn(n)(r) && (o.preventDefault && t.preventDefault(), a(r));
300
300
  });
301
301
  };
302
302
  }
303
- function ko(e, t, r = !1) {
303
+ function wo(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 wo(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
306
+ function xo(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
307
307
  M(() => {
308
308
  const n = (a) => {
309
309
  e.forEach(
310
310
  ([o, i, s = { preventDefault: !0 }]) => {
311
- Dn(o)(a) && ko(a, t, r) && (s.preventDefault && a.preventDefault(), i(a));
311
+ Pn(o)(a) && wo(a, t, r) && (s.preventDefault && a.preventDefault(), i(a));
312
312
  }
313
313
  );
314
314
  };
315
315
  return document.documentElement.addEventListener("keydown", n), () => document.documentElement.removeEventListener("keydown", n);
316
316
  }, [e, t, r]);
317
317
  }
318
- function xo() {
318
+ function _o() {
319
319
  const e = T(null), [t, r] = j(!1);
320
320
  return { ref: X((n) => {
321
321
  var a, o;
@@ -324,26 +324,26 @@ function xo() {
324
324
  ) : (a = e.current) == null || a.disconnect(), n ? (o = e.current) == null || o.observe(n) : r(!1));
325
325
  }, []), inViewport: t };
326
326
  }
327
- function Pn(e, t) {
327
+ function zn(e, t) {
328
328
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
329
329
  }
330
330
  const Wr = (e, t) => {
331
331
  const r = JSON.stringify(
332
332
  typeof t == "function" ? t() : t
333
333
  );
334
- window.localStorage.setItem(e, r), Pn(e, r);
335
- }, _o = (e) => {
336
- window.localStorage.removeItem(e), Pn(e, null);
337
- }, jr = (e) => window.localStorage.getItem(e), Eo = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
338
- function Gt({
334
+ window.localStorage.setItem(e, r), zn(e, r);
335
+ }, Eo = (e) => {
336
+ window.localStorage.removeItem(e), zn(e, null);
337
+ }, jr = (e) => window.localStorage.getItem(e), To = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
338
+ function jt({
339
339
  key: e,
340
340
  initialValue: t
341
341
  }) {
342
- const r = qa(Eo, () => jr(e)), n = X(
342
+ const r = Ka(To, () => jr(e)), n = X(
343
343
  (i) => {
344
344
  try {
345
345
  const s = typeof i == "function" ? i(JSON.parse(r)) : i;
346
- s == null ? _o(e) : Wr(e, s);
346
+ s == null ? Eo(e) : Wr(e, s);
347
347
  } catch (s) {
348
348
  console.warn(s);
349
349
  }
@@ -362,7 +362,7 @@ function Gt({
362
362
  }
363
363
  }, [e, t]), [r ? JSON.parse(r) : null, n, a, o];
364
364
  }
365
- function To(e) {
365
+ function So(e) {
366
366
  return ue(() => e.every((t) => t == null) ? () => {
367
367
  } : (t) => {
368
368
  e.forEach((r) => {
@@ -370,7 +370,7 @@ function To(e) {
370
370
  });
371
371
  }, e);
372
372
  }
373
- function So({
373
+ function Co({
374
374
  value: e,
375
375
  defaultValue: t,
376
376
  finalValue: r,
@@ -389,7 +389,7 @@ function So({
389
389
  ), i(!0)))();
390
390
  }, [e, a, o]), e !== void 0 ? !o && a > 0 ? ["", n, !0] : [e, n, !0] : [s, u, !1];
391
391
  }
392
- function Co(e) {
392
+ function No(e) {
393
393
  return dr();
394
394
  }
395
395
  function Gr(e, t) {
@@ -397,7 +397,7 @@ function Gr(e, t) {
397
397
  passive: !0
398
398
  }), () => window.removeEventListener(e, t)), [e, t]);
399
399
  }
400
- function No() {
400
+ function Ro() {
401
401
  const [e, t] = j({
402
402
  width: 0,
403
403
  height: 0
@@ -425,7 +425,7 @@ try {
425
425
  const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
426
426
  ASC: "asc",
427
427
  DESC: "desc"
428
- }, Ro = ({
428
+ }, Io = ({
429
429
  mode: e,
430
430
  className: t,
431
431
  wrapperClassName: r,
@@ -460,7 +460,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
460
460
  "text-copy-light dark:text-copy-dark": e === "system",
461
461
  "text-copy-dark dark:text-copy-light": e === "alt-system"
462
462
  })
463
- }), Io = ({
463
+ }), Lo = ({
464
464
  className: e,
465
465
  stickyHeader: t,
466
466
  mode: r
@@ -486,7 +486,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
486
486
  "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"
487
487
  },
488
488
  e
489
- ), Lo = ({
489
+ ), Ao = ({
490
490
  mode: e,
491
491
  className: t,
492
492
  cellWrapper: r
@@ -511,7 +511,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
511
511
  "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"
512
512
  },
513
513
  t
514
- ), Ao = ({
514
+ ), Oo = ({
515
515
  cellWrapper: e,
516
516
  className: t,
517
517
  compact: r,
@@ -535,9 +535,9 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
535
535
  },
536
536
  t
537
537
  )
538
- }), Oo = ({
538
+ }), Bo = ({
539
539
  buttonClassName: e
540
- }) => m("rounded-none text-sm", e), qr = "av-button", ut = "icon", zn = "button", qt = "link", Bo = ({
540
+ }) => m("rounded-none text-sm", e), qr = "av-button", ut = "icon", Un = "button", Gt = "link", Mo = ({
541
541
  type: e,
542
542
  size: t,
543
543
  labelRight: r,
@@ -547,8 +547,8 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
547
547
  }) => {
548
548
  const i = "max-h-8 py-0 px-2", s = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
549
549
  switch (e) {
550
- case zn:
551
- case qt:
550
+ case Un:
551
+ case Gt:
552
552
  return m({
553
553
  [i]: t === "small",
554
554
  [s]: t === "medium",
@@ -573,7 +573,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
573
573
  "h-12": t === "large" && o && (r || n)
574
574
  });
575
575
  }
576
- }, Mo = ({
576
+ }, Vo = ({
577
577
  type: e,
578
578
  size: t,
579
579
  labelRight: r,
@@ -581,10 +581,10 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
581
581
  }) => {
582
582
  const a = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
583
583
  switch (e) {
584
- case zn:
585
- case qt:
584
+ case Un:
585
+ case Gt:
586
586
  return m({
587
- "text-center": e === qt,
587
+ "text-center": e === Gt,
588
588
  [a]: t === "small",
589
589
  [o]: t === "medium",
590
590
  [i]: t === "large"
@@ -596,7 +596,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
596
596
  [i]: t === "large" && (r || n)
597
597
  });
598
598
  }
599
- }, Vo = ({
599
+ }, Do = ({
600
600
  mode: e,
601
601
  noBackground: t,
602
602
  noTruncate: r,
@@ -632,7 +632,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
632
632
  return m("not-prose text-copy-lighter", {
633
633
  truncate: !r
634
634
  });
635
- }, Do = ({
635
+ }, Po = ({
636
636
  mode: e,
637
637
  noBackground: t,
638
638
  variant: r
@@ -662,13 +662,13 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
662
662
  if (r === "selected")
663
663
  return "bg-action-selected-dark";
664
664
  }
665
- }, Po = ({
665
+ }, zo = ({
666
666
  radius: e
667
667
  }) => m({
668
668
  "rounded-full": e === "large",
669
669
  "rounded-md": e === "medium",
670
670
  "rounded-sm": e === "small"
671
- }), zo = ({
671
+ }), Uo = ({
672
672
  mode: e,
673
673
  disabled: t,
674
674
  variant: r
@@ -698,7 +698,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
698
698
  });
699
699
  if (r === "selected")
700
700
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
701
- }, Uo = ({
701
+ }, Fo = ({
702
702
  mode: e,
703
703
  disabled: t,
704
704
  variant: r
@@ -728,7 +728,7 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
728
728
  });
729
729
  if (r === "selected")
730
730
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
731
- }, Fo = ({
731
+ }, Ho = ({
732
732
  mode: e,
733
733
  noBorder: t,
734
734
  variant: r
@@ -758,14 +758,14 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
758
758
  });
759
759
  if (r === "selected")
760
760
  return "border border-border-selected-dark";
761
- }, Ho = ({
761
+ }, Wo = ({
762
762
  focusMode: e
763
763
  }) => m("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
764
764
  "focus:outline-focus-dark": e === "dark",
765
765
  "focus:outline-focus-light": e === "light",
766
766
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
767
767
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
768
- }), Wo = ({
768
+ }), jo = ({
769
769
  mode: e,
770
770
  raw: t,
771
771
  iconClassName: r
@@ -777,11 +777,11 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
777
777
  "dark:text-copy-accent-dark": e === "system"
778
778
  },
779
779
  r
780
- ), jo = ({
780
+ ), Go = ({
781
781
  animated: e
782
782
  }) => m({
783
783
  "transition-opacity duration-300 ease-in": e
784
- }), Go = ({
784
+ }), qo = ({
785
785
  type: e,
786
786
  className: t,
787
787
  raw: r,
@@ -796,32 +796,32 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
796
796
  noBackground: d,
797
797
  variant: g,
798
798
  noTruncate: f,
799
- align: y,
799
+ align: b,
800
800
  radius: p,
801
801
  animated: v
802
802
  }) => (g || (g = "primary"), r ? m(qr, t) : m(
803
803
  qr,
804
- Vo({
804
+ Do({
805
805
  mode: n,
806
806
  variant: g,
807
807
  noBackground: d,
808
808
  noTruncate: f
809
809
  }),
810
- Do({ mode: n, noBackground: d, variant: g }),
811
- Po({ radius: p }),
812
- Bo({
810
+ Po({ mode: n, noBackground: d, variant: g }),
811
+ zo({ radius: p }),
812
+ Mo({
813
813
  type: e,
814
814
  size: s,
815
815
  labelRight: u,
816
816
  labelLeft: h,
817
- align: y,
817
+ align: b,
818
818
  animated: v
819
819
  }),
820
- Mo({ type: e, size: s, labelRight: u, labelLeft: h }),
821
- Fo({ mode: n, variant: g, noBorder: l }),
822
- Ho({ focusMode: a }),
823
- zo({ mode: n, variant: g, disabled: o }),
820
+ Vo({ type: e, size: s, labelRight: u, labelLeft: h }),
821
+ Ho({ mode: n, variant: g, noBorder: l }),
822
+ Wo({ focusMode: a }),
824
823
  Uo({ mode: n, variant: g, disabled: o }),
824
+ Fo({ mode: n, variant: g, disabled: o }),
825
825
  {
826
826
  "w-full": i,
827
827
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -830,30 +830,30 @@ const dt = "thead", mr = "tfoot", Ce = "tbody", Fe = {
830
830
  "transition-[width] duration-300 ease-in-out": e === ut && v
831
831
  }),
832
832
  t
833
- )), qo = (e, t, r) => {
833
+ )), Ko = (e, t, r) => {
834
834
  var n;
835
835
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
836
- }, Un = F.forwardRef((e, t) => {
836
+ }, Fn = U.forwardRef((e, t) => {
837
837
  const { onClick: r, noInternalClick: n = !1, ...a } = e;
838
838
  return /* @__PURE__ */ c(
839
839
  "button",
840
840
  {
841
841
  ref: t,
842
842
  onClick: (o) => {
843
- qo(o, n, r);
843
+ Ko(o, n, r);
844
844
  },
845
845
  ...a
846
846
  }
847
847
  );
848
848
  });
849
- Un.displayName = "BaseButton";
850
- function Ko() {
849
+ Fn.displayName = "BaseButton";
850
+ function Yo() {
851
851
  const e = T(!1);
852
852
  return M(() => (e.current = !0, () => {
853
853
  e.current = !1;
854
854
  }), []), X(() => e.current, []);
855
855
  }
856
- function Yo(e) {
856
+ function Jo(e) {
857
857
  return ue(() => e.every((t) => t == null) ? () => {
858
858
  } : (t) => {
859
859
  e.forEach((r) => {
@@ -861,7 +861,7 @@ function Yo(e) {
861
861
  });
862
862
  }, e);
863
863
  }
864
- const Jo = {
864
+ const Zo = {
865
865
  x: 0,
866
866
  y: 0,
867
867
  width: 0,
@@ -872,7 +872,7 @@ const Jo = {
872
872
  right: 0
873
873
  };
874
874
  function Rt(e) {
875
- const t = Ko(), r = T(0), n = T(null), [a, o] = j(Jo), i = ue(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
875
+ const t = Yo(), r = T(0), n = T(null), [a, o] = j(Zo), i = ue(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
876
876
  const l = s[0];
877
877
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
878
878
  n.current && t() && o(l.contentRect);
@@ -882,21 +882,21 @@ function Rt(e) {
882
882
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
883
883
  }), [i, e]), [n, a];
884
884
  }
885
- const Zo = {
885
+ const Xo = {
886
886
  small: 24,
887
887
  // w-6
888
888
  medium: 32,
889
889
  // w-8
890
890
  large: 48
891
891
  // w-12
892
- }, Xo = {
892
+ }, Qo = {
893
893
  small: 8 * 2,
894
894
  // px-2 x 2
895
895
  medium: 12 * 2,
896
896
  // px-3 x 2
897
897
  large: 16 * 2
898
898
  // px-4 x 2
899
- }, Qo = 2, Fn = F.forwardRef(
899
+ }, ei = 2, Hn = U.forwardRef(
900
900
  ({
901
901
  children: e,
902
902
  disabled: t = !1,
@@ -912,15 +912,15 @@ const Zo = {
912
912
  size: d = "medium",
913
913
  labelRight: g,
914
914
  labelLeft: f,
915
- noBackground: y = !1,
915
+ noBackground: b = !1,
916
916
  align: p = "center",
917
917
  radius: v = "large",
918
- variant: b = "primary",
918
+ variant: y = "primary",
919
919
  iconClassName: x,
920
920
  animated: k = !1,
921
- ...$
921
+ ...L
922
922
  }, _) => {
923
- const L = Go({
923
+ const $ = qo({
924
924
  type: ut,
925
925
  mode: r,
926
926
  focusMode: n,
@@ -932,16 +932,16 @@ const Zo = {
932
932
  size: d,
933
933
  labelRight: g,
934
934
  labelLeft: f,
935
- noBackground: y,
935
+ noBackground: b,
936
936
  align: p,
937
937
  radius: v,
938
- variant: b,
938
+ variant: y,
939
939
  animated: k
940
- }), B = Wo({ mode: r, raw: s, iconClassName: x }), E = jo({ animated: k }), [w, R] = Rt(), [S, O] = Rt(), [N, A] = Rt(), D = T(0), C = T(null), U = Yo([_, C]);
940
+ }), B = jo({ mode: r, raw: s, iconClassName: x }), E = Go({ animated: k }), [w, R] = Rt(), [S, O] = Rt(), [N, A] = Rt(), D = T(0), C = T(null), F = Jo([_, C]);
941
941
  return pe(() => {
942
- N && N.current && k && (D.current = A.width + Xo[d] + (l ? 0 : Qo));
942
+ N && N.current && k && (D.current = A.width + Qo[d] + (l ? 0 : ei));
943
943
  }, [A, N, d, l, k]), pe(() => {
944
- C && C.current && k && (g && w && R.width > 0 ? (w.current && (w.current.style.opacity = "100"), C.current.style.width = `${R.width + D.current}px`) : f && O.width > 0 ? (S.current && (S.current.style.opacity = "100"), C.current.style.width = `${O.width + D.current}px`) : (w.current && (w.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), C.current.style.width = `${Zo[d]}px`));
944
+ C && C.current && k && (g && w && R.width > 0 ? (w.current && (w.current.style.opacity = "100"), C.current.style.width = `${R.width + D.current}px`) : f && O.width > 0 ? (S.current && (S.current.style.opacity = "100"), C.current.style.width = `${O.width + D.current}px`) : (w.current && (w.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), C.current.style.width = `${Xo[d]}px`));
945
945
  }, [
946
946
  R,
947
947
  g,
@@ -952,14 +952,14 @@ const Zo = {
952
952
  d,
953
953
  k
954
954
  ]), /* @__PURE__ */ I(
955
- Un,
955
+ Fn,
956
956
  {
957
- ref: U,
958
- className: L,
957
+ ref: F,
958
+ className: $,
959
959
  disabled: t,
960
960
  type: i,
961
961
  "aria-label": u || h,
962
- ...$,
962
+ ...L,
963
963
  children: [
964
964
  /* @__PURE__ */ c(
965
965
  Kr,
@@ -990,7 +990,7 @@ const Zo = {
990
990
  label: r,
991
991
  labelInnerClass: n
992
992
  }) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: n, children: r }) });
993
- Fn.displayName = "ButtonIcon";
993
+ Hn.displayName = "ButtonIcon";
994
994
  /*!
995
995
  @versini/ui-button v4.2.4
996
996
  © 2025 gizmette.com
@@ -1004,7 +1004,7 @@ try {
1004
1004
  });
1005
1005
  } catch {
1006
1006
  }
1007
- const Hn = F.forwardRef(
1007
+ const Wn = U.forwardRef(
1008
1008
  ({
1009
1009
  children: e,
1010
1010
  mode: t = "system",
@@ -1030,7 +1030,7 @@ const Hn = F.forwardRef(
1030
1030
  }
1031
1031
  ) : "";
1032
1032
  return /* @__PURE__ */ c("div", { className: i, children: /* @__PURE__ */ c(
1033
- Fn,
1033
+ Hn,
1034
1034
  {
1035
1035
  className: m("justify-center", r),
1036
1036
  ref: o,
@@ -1042,7 +1042,7 @@ const Hn = F.forwardRef(
1042
1042
  ) });
1043
1043
  }
1044
1044
  );
1045
- Hn.displayName = "ButtonSort";
1045
+ Wn.displayName = "ButtonSort";
1046
1046
  const gr = ({
1047
1047
  children: e,
1048
1048
  fill: t,
@@ -1086,7 +1086,7 @@ try {
1086
1086
  });
1087
1087
  } catch {
1088
1088
  }
1089
- const ei = ({
1089
+ const ti = ({
1090
1090
  className: e,
1091
1091
  viewBox: t,
1092
1092
  title: r,
@@ -1112,7 +1112,7 @@ const ei = ({
1112
1112
  /* @__PURE__ */ c("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" })
1113
1113
  ]
1114
1114
  }
1115
- ), ti = ({
1115
+ ), ri = ({
1116
1116
  className: e,
1117
1117
  viewBox: t,
1118
1118
  title: r,
@@ -1138,7 +1138,7 @@ const ei = ({
1138
1138
  /* @__PURE__ */ c("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" })
1139
1139
  ]
1140
1140
  }
1141
- ), ri = ({
1141
+ ), ni = ({
1142
1142
  className: e,
1143
1143
  viewBox: t,
1144
1144
  title: r,
@@ -1178,13 +1178,13 @@ try {
1178
1178
  });
1179
1179
  } catch {
1180
1180
  }
1181
- const Me = F.createContext({
1181
+ const Me = U.createContext({
1182
1182
  mode: "light",
1183
1183
  cellWrapper: "thead",
1184
1184
  stickyHeader: !1,
1185
1185
  stickyFooter: !1,
1186
1186
  compact: !1
1187
- }), Fc = ({
1187
+ }), Hc = ({
1188
1188
  children: e,
1189
1189
  mode: t = "system",
1190
1190
  caption: r,
@@ -1197,7 +1197,7 @@ const Me = F.createContext({
1197
1197
  stickyFooter: u,
1198
1198
  ...h
1199
1199
  }) => {
1200
- const d = Ro({
1200
+ const d = Io({
1201
1201
  mode: t,
1202
1202
  className: o,
1203
1203
  wrapperClassName: i,
@@ -1223,20 +1223,20 @@ const Me = F.createContext({
1223
1223
  )
1224
1224
  }
1225
1225
  );
1226
- }, Hc = ({
1226
+ }, Wc = ({
1227
1227
  children: e,
1228
1228
  className: t,
1229
1229
  ...r
1230
1230
  }) => {
1231
1231
  const n = W(Me);
1232
1232
  n.cellWrapper = dt;
1233
- const a = Io({
1233
+ const a = Lo({
1234
1234
  className: t,
1235
1235
  mode: n.mode,
1236
1236
  stickyHeader: n.stickyHeader
1237
1237
  });
1238
1238
  return /* @__PURE__ */ c("thead", { className: a, ...r, children: e });
1239
- }, Wc = ({
1239
+ }, jc = ({
1240
1240
  children: e,
1241
1241
  className: t,
1242
1242
  ...r
@@ -1249,28 +1249,28 @@ const Me = F.createContext({
1249
1249
  stickyFooter: n.stickyFooter
1250
1250
  });
1251
1251
  return /* @__PURE__ */ c("tfoot", { className: a, ...r, children: e });
1252
- }, jc = ({ children: e, ...t }) => {
1252
+ }, Gc = ({ children: e, ...t }) => {
1253
1253
  const r = W(Me);
1254
1254
  return r.cellWrapper = Ce, /* @__PURE__ */ c("tbody", { ...t, children: e });
1255
- }, Gc = ({
1255
+ }, qc = ({
1256
1256
  children: e,
1257
1257
  className: t,
1258
1258
  ...r
1259
1259
  }) => {
1260
- const n = W(Me), a = Lo({
1260
+ const n = W(Me), a = Ao({
1261
1261
  mode: n.mode,
1262
1262
  cellWrapper: n.cellWrapper,
1263
1263
  className: t
1264
1264
  });
1265
1265
  return /* @__PURE__ */ c("tr", { className: a, ...r, children: e });
1266
- }, ni = ({
1266
+ }, ai = ({
1267
1267
  children: e,
1268
1268
  component: t,
1269
1269
  className: r,
1270
1270
  align: n,
1271
1271
  ...a
1272
1272
  }) => {
1273
- const o = W(Me), i = t || (o.cellWrapper === dt ? "th" : "td"), { mainClasses: s, alignClasses: l } = Ao({
1273
+ const o = W(Me), i = t || (o.cellWrapper === dt ? "th" : "td"), { mainClasses: s, alignClasses: l } = Oo({
1274
1274
  cellWrapper: o.cellWrapper,
1275
1275
  className: r,
1276
1276
  mode: o.mode,
@@ -1278,7 +1278,7 @@ const Me = F.createContext({
1278
1278
  align: n
1279
1279
  });
1280
1280
  return n ? /* @__PURE__ */ c(i, { className: s, ...a, children: /* @__PURE__ */ c("div", { className: l, children: e }) }) : /* @__PURE__ */ c(i, { className: s, ...a, children: e });
1281
- }, qc = ({
1281
+ }, Kc = ({
1282
1282
  align: e,
1283
1283
  children: t,
1284
1284
  buttonClassName: r,
@@ -1292,9 +1292,9 @@ const Me = F.createContext({
1292
1292
  cellId: h,
1293
1293
  ...d
1294
1294
  }) => {
1295
- const g = Oo({ buttonClassName: r });
1295
+ const g = Bo({ buttonClassName: r });
1296
1296
  return /* @__PURE__ */ c(
1297
- ni,
1297
+ ai,
1298
1298
  {
1299
1299
  component: a,
1300
1300
  className: n,
@@ -1302,7 +1302,7 @@ const Me = F.createContext({
1302
1302
  "aria-sort": l === Fe.ASC && u === h ? "ascending" : l === Fe.DESC && u === h ? "descending" : "other",
1303
1303
  ...d,
1304
1304
  children: /* @__PURE__ */ c(
1305
- Hn,
1305
+ Wn,
1306
1306
  {
1307
1307
  active: u === h,
1308
1308
  className: g,
@@ -1313,7 +1313,7 @@ const Me = F.createContext({
1313
1313
  mode: i,
1314
1314
  fullWidth: !0,
1315
1315
  labelRight: t,
1316
- children: l === Fe.ASC && u === h ? /* @__PURE__ */ c(ri, { className: "size-4", monotone: !0 }) : l === Fe.DESC && u === h ? /* @__PURE__ */ c(ti, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(ei, { className: "size-4", monotone: !0 })
1316
+ children: l === Fe.ASC && u === h ? /* @__PURE__ */ c(ni, { className: "size-4", monotone: !0 }) : l === Fe.DESC && u === h ? /* @__PURE__ */ c(ri, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(ti, { className: "size-4", monotone: !0 })
1317
1317
  }
1318
1318
  )
1319
1319
  }
@@ -1321,33 +1321,33 @@ const Me = F.createContext({
1321
1321
  }, Y = [];
1322
1322
  for (let e = 0; e < 256; ++e)
1323
1323
  Y.push((e + 256).toString(16).slice(1));
1324
- function ai(e, t = 0) {
1324
+ function oi(e, t = 0) {
1325
1325
  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();
1326
1326
  }
1327
1327
  let It;
1328
- const oi = new Uint8Array(16);
1329
- function ii() {
1328
+ const ii = new Uint8Array(16);
1329
+ function si() {
1330
1330
  if (!It) {
1331
1331
  if (typeof crypto > "u" || !crypto.getRandomValues)
1332
1332
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1333
1333
  It = crypto.getRandomValues.bind(crypto);
1334
1334
  }
1335
- return It(oi);
1335
+ return It(ii);
1336
1336
  }
1337
- const si = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Yr = { randomUUID: si };
1337
+ const li = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Yr = { randomUUID: li };
1338
1338
  function fr(e, t, r) {
1339
1339
  var a;
1340
1340
  if (Yr.randomUUID && !e)
1341
1341
  return Yr.randomUUID();
1342
1342
  e = e || {};
1343
- const n = e.random ?? ((a = e.rng) == null ? void 0 : a.call(e)) ?? ii();
1343
+ const n = e.random ?? ((a = e.rng) == null ? void 0 : a.call(e)) ?? si();
1344
1344
  if (n.length < 16)
1345
1345
  throw new Error("Random bytes length must be >= 16");
1346
- return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, ai(n);
1346
+ return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, oi(n);
1347
1347
  }
1348
- const li = (e, t) => {
1348
+ const ci = (e, t) => {
1349
1349
  var r, n;
1350
- if ((t == null ? void 0 : t.type) === Ra) {
1350
+ if ((t == null ? void 0 : t.type) === Ia) {
1351
1351
  const a = t.payload.messages.map((o) => ({
1352
1352
  message: {
1353
1353
  role: o.role,
@@ -1440,7 +1440,7 @@ const li = (e, t) => {
1440
1440
  lastTriggeredTimestamp: e.lastTriggeredTimestamp
1441
1441
  };
1442
1442
  }
1443
- if ((t == null ? void 0 : t.type) === _n)
1443
+ if ((t == null ? void 0 : t.type) === En)
1444
1444
  return {
1445
1445
  ...e,
1446
1446
  id: e.id,
@@ -1453,7 +1453,7 @@ const li = (e, t) => {
1453
1453
  streaming: e.streaming,
1454
1454
  lastTriggeredTimestamp: e.lastTriggeredTimestamp
1455
1455
  };
1456
- if ((t == null ? void 0 : t.type) === En) {
1456
+ if ((t == null ? void 0 : t.type) === Tn) {
1457
1457
  let a = e.lastTriggeredTimestamp;
1458
1458
  return e.streaming !== t.payload.streaming && (a = (/* @__PURE__ */ new Date()).getTime()), {
1459
1459
  ...e,
@@ -1462,7 +1462,7 @@ const li = (e, t) => {
1462
1462
  };
1463
1463
  }
1464
1464
  return e;
1465
- }, ci = (e, t) => {
1465
+ }, di = (e, t) => {
1466
1466
  switch (t == null ? void 0 : t.type) {
1467
1467
  case $a:
1468
1468
  return {
@@ -1470,7 +1470,7 @@ const li = (e, t) => {
1470
1470
  sortedCell: e.sortedCell,
1471
1471
  sortDirection: e.sortDirection
1472
1472
  };
1473
- case Ia:
1473
+ case La:
1474
1474
  return {
1475
1475
  searchString: e.searchString,
1476
1476
  sortedCell: t.payload.sortedCell,
@@ -1479,14 +1479,14 @@ const li = (e, t) => {
1479
1479
  default:
1480
1480
  return e;
1481
1481
  }
1482
- }, di = (e, t) => {
1482
+ }, ui = (e, t) => {
1483
1483
  switch (t == null ? void 0 : t.type) {
1484
- case Sn:
1484
+ case Cn:
1485
1485
  return {
1486
1486
  prompt: t.payload.prompt,
1487
1487
  lastTriggeredTimestamp: e.lastTriggeredTimestamp
1488
1488
  };
1489
- case Tn:
1489
+ case Sn:
1490
1490
  return {
1491
1491
  prompt: "",
1492
1492
  lastTriggeredTimestamp: (/* @__PURE__ */ new Date()).getTime()
@@ -1495,7 +1495,7 @@ const li = (e, t) => {
1495
1495
  return e;
1496
1496
  }
1497
1497
  };
1498
- var et = { exports: {} }, $t = {};
1498
+ var et = { exports: {} }, Lt = {};
1499
1499
  /**
1500
1500
  * @license React
1501
1501
  * use-sync-external-store-shim.production.js
@@ -1506,16 +1506,16 @@ var et = { exports: {} }, $t = {};
1506
1506
  * LICENSE file in the root directory of this source tree.
1507
1507
  */
1508
1508
  var Jr;
1509
- function ui() {
1510
- if (Jr) return $t;
1509
+ function mi() {
1510
+ if (Jr) return Lt;
1511
1511
  Jr = 1;
1512
- var e = F;
1512
+ var e = U;
1513
1513
  function t(d, g) {
1514
1514
  return d === g && (d !== 0 || 1 / d === 1 / g) || d !== d && g !== g;
1515
1515
  }
1516
1516
  var r = typeof Object.is == "function" ? Object.is : t, n = e.useState, a = e.useEffect, o = e.useLayoutEffect, i = e.useDebugValue;
1517
1517
  function s(d, g) {
1518
- var f = g(), y = n({ inst: { value: f, getSnapshot: g } }), p = y[0].inst, v = y[1];
1518
+ var f = g(), b = n({ inst: { value: f, getSnapshot: g } }), p = b[0].inst, v = b[1];
1519
1519
  return o(
1520
1520
  function() {
1521
1521
  p.value = f, p.getSnapshot = g, l(p) && v({ inst: p });
@@ -1544,9 +1544,9 @@ function ui() {
1544
1544
  return g();
1545
1545
  }
1546
1546
  var h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : s;
1547
- return $t.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : h, $t;
1547
+ return Lt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : h, Lt;
1548
1548
  }
1549
- var Lt = {};
1549
+ var $t = {};
1550
1550
  /**
1551
1551
  * @license React
1552
1552
  * use-sync-external-store-shim.development.js
@@ -1557,64 +1557,64 @@ var Lt = {};
1557
1557
  * LICENSE file in the root directory of this source tree.
1558
1558
  */
1559
1559
  var Zr;
1560
- function mi() {
1560
+ function gi() {
1561
1561
  return Zr || (Zr = 1, process.env.NODE_ENV !== "production" && function() {
1562
- function e(f, y) {
1563
- return f === y && (f !== 0 || 1 / f === 1 / y) || f !== f && y !== y;
1562
+ function e(f, b) {
1563
+ return f === b && (f !== 0 || 1 / f === 1 / b) || f !== f && b !== b;
1564
1564
  }
1565
- function t(f, y) {
1565
+ function t(f, b) {
1566
1566
  h || a.startTransition === void 0 || (h = !0, console.error(
1567
1567
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
1568
1568
  ));
1569
- var p = y();
1569
+ var p = b();
1570
1570
  if (!d) {
1571
- var v = y();
1571
+ var v = b();
1572
1572
  o(p, v) || (console.error(
1573
1573
  "The result of getSnapshot should be cached to avoid an infinite loop"
1574
1574
  ), d = !0);
1575
1575
  }
1576
1576
  v = i({
1577
- inst: { value: p, getSnapshot: y }
1577
+ inst: { value: p, getSnapshot: b }
1578
1578
  });
1579
- var b = v[0].inst, x = v[1];
1579
+ var y = v[0].inst, x = v[1];
1580
1580
  return l(
1581
1581
  function() {
1582
- b.value = p, b.getSnapshot = y, r(b) && x({ inst: b });
1582
+ y.value = p, y.getSnapshot = b, r(y) && x({ inst: y });
1583
1583
  },
1584
- [f, p, y]
1584
+ [f, p, b]
1585
1585
  ), s(
1586
1586
  function() {
1587
- return r(b) && x({ inst: b }), f(function() {
1588
- r(b) && x({ inst: b });
1587
+ return r(y) && x({ inst: y }), f(function() {
1588
+ r(y) && x({ inst: y });
1589
1589
  });
1590
1590
  },
1591
1591
  [f]
1592
1592
  ), u(p), p;
1593
1593
  }
1594
1594
  function r(f) {
1595
- var y = f.getSnapshot;
1595
+ var b = f.getSnapshot;
1596
1596
  f = f.value;
1597
1597
  try {
1598
- var p = y();
1598
+ var p = b();
1599
1599
  return !o(f, p);
1600
1600
  } catch {
1601
1601
  return !0;
1602
1602
  }
1603
1603
  }
1604
- function n(f, y) {
1605
- return y();
1604
+ function n(f, b) {
1605
+ return b();
1606
1606
  }
1607
1607
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1608
- var a = F, o = typeof Object.is == "function" ? Object.is : e, i = a.useState, s = a.useEffect, l = a.useLayoutEffect, u = a.useDebugValue, h = !1, d = !1, g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? n : t;
1609
- Lt.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : g, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1610
- }()), Lt;
1608
+ var a = U, o = typeof Object.is == "function" ? Object.is : e, i = a.useState, s = a.useEffect, l = a.useLayoutEffect, u = a.useDebugValue, h = !1, d = !1, g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? n : t;
1609
+ $t.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : g, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1610
+ }()), $t;
1611
1611
  }
1612
1612
  var Xr;
1613
- function gi() {
1614
- return Xr || (Xr = 1, process.env.NODE_ENV === "production" ? et.exports = /* @__PURE__ */ ui() : et.exports = /* @__PURE__ */ mi()), et.exports;
1613
+ function fi() {
1614
+ return Xr || (Xr = 1, process.env.NODE_ENV === "production" ? et.exports = /* @__PURE__ */ mi() : et.exports = /* @__PURE__ */ gi()), et.exports;
1615
1615
  }
1616
- var fi = /* @__PURE__ */ gi(), Qr = Object.prototype.hasOwnProperty;
1617
- function Kt(e, t) {
1616
+ var hi = /* @__PURE__ */ fi(), Qr = Object.prototype.hasOwnProperty;
1617
+ function qt(e, t) {
1618
1618
  var r, n;
1619
1619
  if (e === t) return !0;
1620
1620
  if (e && t && (r = e.constructor) === t.constructor) {
@@ -1622,13 +1622,13 @@ function Kt(e, t) {
1622
1622
  if (r === RegExp) return e.toString() === t.toString();
1623
1623
  if (r === Array) {
1624
1624
  if ((n = e.length) === t.length)
1625
- for (; n-- && Kt(e[n], t[n]); ) ;
1625
+ for (; n-- && qt(e[n], t[n]); ) ;
1626
1626
  return n === -1;
1627
1627
  }
1628
1628
  if (!r || typeof e == "object") {
1629
1629
  n = 0;
1630
1630
  for (r in e)
1631
- if (Qr.call(e, r) && ++n && !Qr.call(t, r) || !(r in t) || !Kt(e[r], t[r])) return !1;
1631
+ if (Qr.call(e, r) && ++n && !Qr.call(t, r) || !(r in t) || !qt(e[r], t[r])) return !1;
1632
1632
  return Object.keys(t).length === n;
1633
1633
  }
1634
1634
  }
@@ -1638,10 +1638,10 @@ const se = /* @__PURE__ */ new WeakMap(), ve = () => {
1638
1638
  }, ee = (
1639
1639
  /*#__NOINLINE__*/
1640
1640
  ve()
1641
- ), Yt = Object, V = (e) => e === ee, le = (e) => typeof e == "function", ke = (e, t) => ({
1641
+ ), Kt = Object, V = (e) => e === ee, le = (e) => typeof e == "function", ke = (e, t) => ({
1642
1642
  ...e,
1643
1643
  ...t
1644
- }), Wn = (e) => le(e.then), At = {}, tt = {}, hr = "undefined", mt = typeof window != hr, Jt = typeof document != hr, hi = () => mt && typeof window.requestAnimationFrame != hr, jn = (e, t) => {
1644
+ }), jn = (e) => le(e.then), At = {}, tt = {}, hr = "undefined", mt = typeof window != hr, Yt = typeof document != hr, pi = () => mt && typeof window.requestAnimationFrame != hr, Gn = (e, t) => {
1645
1645
  const r = se.get(e);
1646
1646
  return [
1647
1647
  // Getter
@@ -1659,53 +1659,53 @@ const se = /* @__PURE__ */ new WeakMap(), ve = () => {
1659
1659
  () => !V(t) && t in tt ? tt[t] : !V(t) && e.get(t) || At
1660
1660
  ];
1661
1661
  };
1662
- let Zt = !0;
1663
- const pi = () => Zt, [Xt, Qt] = mt && window.addEventListener ? [
1662
+ let Jt = !0;
1663
+ const bi = () => Jt, [Zt, Xt] = mt && window.addEventListener ? [
1664
1664
  window.addEventListener.bind(window),
1665
1665
  window.removeEventListener.bind(window)
1666
1666
  ] : [
1667
1667
  ve,
1668
1668
  ve
1669
1669
  ], yi = () => {
1670
- const e = Jt && document.visibilityState;
1670
+ const e = Yt && document.visibilityState;
1671
1671
  return V(e) || e !== "hidden";
1672
- }, bi = (e) => (Jt && document.addEventListener("visibilitychange", e), Xt("focus", e), () => {
1673
- Jt && document.removeEventListener("visibilitychange", e), Qt("focus", e);
1674
- }), vi = (e) => {
1672
+ }, vi = (e) => (Yt && document.addEventListener("visibilitychange", e), Zt("focus", e), () => {
1673
+ Yt && document.removeEventListener("visibilitychange", e), Xt("focus", e);
1674
+ }), ki = (e) => {
1675
1675
  const t = () => {
1676
- Zt = !0, e();
1676
+ Jt = !0, e();
1677
1677
  }, r = () => {
1678
- Zt = !1;
1678
+ Jt = !1;
1679
1679
  };
1680
- return Xt("online", t), Xt("offline", r), () => {
1681
- Qt("online", t), Qt("offline", r);
1680
+ return Zt("online", t), Zt("offline", r), () => {
1681
+ Xt("online", t), Xt("offline", r);
1682
1682
  };
1683
- }, ki = {
1684
- isOnline: pi,
1685
- isVisible: yi
1686
1683
  }, wi = {
1687
- initFocus: bi,
1688
- initReconnect: vi
1689
- }, en = !F.useId, Ge = !mt || "Deno" in globalThis, xi = (e) => hi() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Ot = Ge ? M : pe, Bt = typeof navigator < "u" && navigator.connection, tn = !Ge && Bt && ([
1684
+ isOnline: bi,
1685
+ isVisible: yi
1686
+ }, xi = {
1687
+ initFocus: vi,
1688
+ initReconnect: ki
1689
+ }, en = !U.useId, Ge = !mt || "Deno" in globalThis, _i = (e) => pi() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Ot = Ge ? M : pe, Bt = typeof navigator < "u" && navigator.connection, tn = !Ge && Bt && ([
1690
1690
  "slow-2g",
1691
1691
  "2g"
1692
- ].includes(Bt.effectiveType) || Bt.saveData), rt = /* @__PURE__ */ new WeakMap(), Mt = (e, t) => Yt.prototype.toString.call(e) === `[object ${t}]`;
1693
- let _i = 0;
1694
- const er = (e) => {
1692
+ ].includes(Bt.effectiveType) || Bt.saveData), rt = /* @__PURE__ */ new WeakMap(), Mt = (e, t) => Kt.prototype.toString.call(e) === `[object ${t}]`;
1693
+ let Ei = 0;
1694
+ const Qt = (e) => {
1695
1695
  const t = typeof e, r = Mt(e, "Date"), n = Mt(e, "RegExp"), a = Mt(e, "Object");
1696
1696
  let o, i;
1697
- if (Yt(e) === e && !r && !n) {
1697
+ if (Kt(e) === e && !r && !n) {
1698
1698
  if (o = rt.get(e), o) return o;
1699
- if (o = ++_i + "~", rt.set(e, o), Array.isArray(e)) {
1699
+ if (o = ++Ei + "~", rt.set(e, o), Array.isArray(e)) {
1700
1700
  for (o = "@", i = 0; i < e.length; i++)
1701
- o += er(e[i]) + ",";
1701
+ o += Qt(e[i]) + ",";
1702
1702
  rt.set(e, o);
1703
1703
  }
1704
1704
  if (a) {
1705
1705
  o = "#";
1706
- const s = Yt.keys(e).sort();
1706
+ const s = Kt.keys(e).sort();
1707
1707
  for (; !V(i = s.pop()); )
1708
- V(e[i]) || (o += i + ":" + er(e[i]) + ",");
1708
+ V(e[i]) || (o += i + ":" + Qt(e[i]) + ",");
1709
1709
  rt.set(e, o);
1710
1710
  }
1711
1711
  } else
@@ -1719,21 +1719,21 @@ const er = (e) => {
1719
1719
  e = "";
1720
1720
  }
1721
1721
  const t = e;
1722
- return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? er(e) : "", [
1722
+ return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? Qt(e) : "", [
1723
1723
  e,
1724
1724
  t
1725
1725
  ];
1726
1726
  };
1727
- let Ei = 0;
1728
- const tr = () => ++Ei, Gn = 0, qn = 1, Kn = 2, Ti = 3;
1727
+ let Ti = 0;
1728
+ const er = () => ++Ti, qn = 0, Kn = 1, Yn = 2, Si = 3;
1729
1729
  var Ue = {
1730
1730
  __proto__: null,
1731
- ERROR_REVALIDATE_EVENT: Ti,
1732
- FOCUS_EVENT: Gn,
1733
- MUTATE_EVENT: Kn,
1734
- RECONNECT_EVENT: qn
1731
+ ERROR_REVALIDATE_EVENT: Si,
1732
+ FOCUS_EVENT: qn,
1733
+ MUTATE_EVENT: Yn,
1734
+ RECONNECT_EVENT: Kn
1735
1735
  };
1736
- async function Yn(...e) {
1736
+ async function Jn(...e) {
1737
1737
  const [t, r, n, a] = e, o = ke({
1738
1738
  populateCache: !0,
1739
1739
  throwOnError: !0
@@ -1745,8 +1745,8 @@ async function Yn(...e) {
1745
1745
  let l = o.optimisticData;
1746
1746
  const u = (g) => typeof s == "function" ? s(g) : s !== !1, h = o.throwOnError;
1747
1747
  if (le(r)) {
1748
- const g = r, f = [], y = t.keys();
1749
- for (const p of y)
1748
+ const g = r, f = [], b = t.keys();
1749
+ for (const p of b)
1750
1750
  // Skip the special useSWRInfinite and useSWRSubscription keys.
1751
1751
  !/^\$(inf|sub)\$/.test(p) && g(t.get(p)._k) && f.push(p);
1752
1752
  return Promise.all(f.map(d));
@@ -1755,19 +1755,19 @@ async function Yn(...e) {
1755
1755
  async function d(g) {
1756
1756
  const [f] = gt(g);
1757
1757
  if (!f) return;
1758
- const [y, p] = jn(t, f), [v, b, x, k] = se.get(t), $ = () => {
1758
+ const [b, p] = Gn(t, f), [v, y, x, k] = se.get(t), L = () => {
1759
1759
  const N = v[f];
1760
- return (le(o.revalidate) ? o.revalidate(y().data, g) : o.revalidate !== !1) && (delete x[f], delete k[f], N && N[0]) ? N[0](Kn).then(() => y().data) : y().data;
1760
+ return (le(o.revalidate) ? o.revalidate(b().data, g) : o.revalidate !== !1) && (delete x[f], delete k[f], N && N[0]) ? N[0](Yn).then(() => b().data) : b().data;
1761
1761
  };
1762
1762
  if (e.length < 3)
1763
- return $();
1764
- let _ = n, L;
1765
- const B = tr();
1766
- b[f] = [
1763
+ return L();
1764
+ let _ = n, $;
1765
+ const B = er();
1766
+ y[f] = [
1767
1767
  B,
1768
1768
  0
1769
1769
  ];
1770
- const E = !V(l), w = y(), R = w.data, S = w._c, O = V(S) ? R : S;
1770
+ const E = !V(l), w = b(), R = w.data, S = w._c, O = V(S) ? R : S;
1771
1771
  if (E && (l = le(l) ? l(O, R) : l, p({
1772
1772
  data: l,
1773
1773
  _c: O
@@ -1775,19 +1775,19 @@ async function Yn(...e) {
1775
1775
  try {
1776
1776
  _ = _(O);
1777
1777
  } catch (N) {
1778
- L = N;
1778
+ $ = N;
1779
1779
  }
1780
- if (_ && Wn(_))
1780
+ if (_ && jn(_))
1781
1781
  if (_ = await _.catch((N) => {
1782
- L = N;
1783
- }), B !== b[f][0]) {
1784
- if (L) throw L;
1782
+ $ = N;
1783
+ }), B !== y[f][0]) {
1784
+ if ($) throw $;
1785
1785
  return _;
1786
- } else L && E && u(L) && (i = !0, p({
1786
+ } else $ && E && u($) && (i = !0, p({
1787
1787
  data: O,
1788
1788
  _c: ee
1789
1789
  }));
1790
- if (i && !L)
1790
+ if (i && !$)
1791
1791
  if (le(i)) {
1792
1792
  const N = i(_, O);
1793
1793
  p({
@@ -1801,12 +1801,12 @@ async function Yn(...e) {
1801
1801
  error: ee,
1802
1802
  _c: ee
1803
1803
  });
1804
- if (b[f][1] = tr(), Promise.resolve($()).then(() => {
1804
+ if (y[f][1] = er(), Promise.resolve(L()).then(() => {
1805
1805
  p({
1806
1806
  _c: ee
1807
1807
  });
1808
- }), L) {
1809
- if (h) throw L;
1808
+ }), $) {
1809
+ if (h) throw $;
1810
1810
  return;
1811
1811
  }
1812
1812
  return _;
@@ -1815,9 +1815,9 @@ async function Yn(...e) {
1815
1815
  const rn = (e, t) => {
1816
1816
  for (const r in e)
1817
1817
  e[r][0] && e[r][0](t);
1818
- }, Si = (e, t) => {
1818
+ }, Ci = (e, t) => {
1819
1819
  if (!se.has(e)) {
1820
- const r = ke(wi, t), n = {}, a = Yn.bind(ee, e);
1820
+ const r = ke(xi, t), n = {}, a = Jn.bind(ee, e);
1821
1821
  let o = ve;
1822
1822
  const i = {}, s = (h, d) => {
1823
1823
  const g = i[h] || [];
@@ -1826,8 +1826,8 @@ const rn = (e, t) => {
1826
1826
  e.set(h, d);
1827
1827
  const f = i[h];
1828
1828
  if (f)
1829
- for (const y of f)
1830
- y(d, g);
1829
+ for (const b of f)
1830
+ b(d, g);
1831
1831
  }, u = () => {
1832
1832
  if (!se.has(e) && (se.set(e, [
1833
1833
  n,
@@ -1838,7 +1838,7 @@ const rn = (e, t) => {
1838
1838
  l,
1839
1839
  s
1840
1840
  ]), !Ge)) {
1841
- const h = r.initFocus(setTimeout.bind(ee, rn.bind(ee, n, Gn))), d = r.initReconnect(setTimeout.bind(ee, rn.bind(ee, n, qn)));
1841
+ const h = r.initFocus(setTimeout.bind(ee, rn.bind(ee, n, qn))), d = r.initReconnect(setTimeout.bind(ee, rn.bind(ee, n, Kn)));
1842
1842
  o = () => {
1843
1843
  h && h(), d && d(), se.delete(e);
1844
1844
  };
@@ -1855,16 +1855,16 @@ const rn = (e, t) => {
1855
1855
  e,
1856
1856
  se.get(e)[4]
1857
1857
  ];
1858
- }, Ci = (e, t, r, n, a) => {
1858
+ }, Ni = (e, t, r, n, a) => {
1859
1859
  const o = r.errorRetryCount, i = a.retryCount, s = ~~((Math.random() + 0.5) * (1 << (i < 8 ? i : 8))) * r.errorRetryInterval;
1860
1860
  !V(o) && i > o || setTimeout(n, s, a);
1861
- }, Ni = Kt, [pr, Ri] = Si(/* @__PURE__ */ new Map()), Ii = ke(
1861
+ }, Ri = qt, [pr, Ii] = Ci(/* @__PURE__ */ new Map()), Li = ke(
1862
1862
  {
1863
1863
  // events
1864
1864
  onLoadingSlow: ve,
1865
1865
  onSuccess: ve,
1866
1866
  onError: ve,
1867
- onErrorRetry: Ci,
1867
+ onErrorRetry: Ni,
1868
1868
  onDiscarded: ve,
1869
1869
  // switches
1870
1870
  revalidateOnFocus: !0,
@@ -1877,14 +1877,14 @@ const rn = (e, t) => {
1877
1877
  dedupingInterval: 2 * 1e3,
1878
1878
  loadingTimeout: tn ? 5e3 : 3e3,
1879
1879
  // providers
1880
- compare: Ni,
1880
+ compare: Ri,
1881
1881
  isPaused: () => !1,
1882
1882
  cache: pr,
1883
- mutate: Ri,
1883
+ mutate: Ii,
1884
1884
  fallback: {}
1885
1885
  },
1886
1886
  // use web preset by default
1887
- ki
1887
+ wi
1888
1888
  ), $i = (e, t) => {
1889
1889
  const r = ke(e, t);
1890
1890
  if (t) {
@@ -1892,9 +1892,9 @@ const rn = (e, t) => {
1892
1892
  n && o && (r.use = n.concat(o)), a && i && (r.fallback = ke(a, i));
1893
1893
  }
1894
1894
  return r;
1895
- }, Li = Ka({}), Ai = "$inf$", Jn = mt && window.__SWR_DEVTOOLS_USE__, Oi = Jn ? window.__SWR_DEVTOOLS_USE__ : [], Bi = () => {
1896
- Jn && (window.__SWR_DEVTOOLS_REACT__ = F);
1897
- }, Mi = (e) => le(e[1]) ? [
1895
+ }, Ai = Ya({}), Oi = "$inf$", Zn = mt && window.__SWR_DEVTOOLS_USE__, Bi = Zn ? window.__SWR_DEVTOOLS_USE__ : [], Mi = () => {
1896
+ Zn && (window.__SWR_DEVTOOLS_REACT__ = U);
1897
+ }, Vi = (e) => le(e[1]) ? [
1898
1898
  e[0],
1899
1899
  e[1],
1900
1900
  e[2] || {}
@@ -1902,33 +1902,33 @@ const rn = (e, t) => {
1902
1902
  e[0],
1903
1903
  null,
1904
1904
  (e[1] === null ? e[2] : e[1]) || {}
1905
- ], Vi = () => ke(Ii, W(Li)), Zn = (e, t) => {
1905
+ ], Di = () => ke(Li, W(Ai)), Xn = (e, t) => {
1906
1906
  const [r, n] = gt(e), [, , , a] = se.get(pr);
1907
1907
  if (a[r]) return a[r];
1908
1908
  const o = t(n);
1909
1909
  return a[r] = o, o;
1910
- }, Di = (e) => (t, r, n) => e(t, r && ((...o) => {
1910
+ }, Pi = (e) => (t, r, n) => e(t, r && ((...o) => {
1911
1911
  const [i] = gt(t), [, , , s] = se.get(pr);
1912
- if (i.startsWith(Ai))
1912
+ if (i.startsWith(Oi))
1913
1913
  return r(...o);
1914
1914
  const l = s[i];
1915
1915
  return V(l) ? r(...o) : (delete s[i], l);
1916
- }), n), Pi = Oi.concat(Di), zi = (e) => function(...r) {
1917
- const n = Vi(), [a, o, i] = Mi(r), s = $i(n, i);
1916
+ }), n), zi = Bi.concat(Pi), Ui = (e) => function(...r) {
1917
+ const n = Di(), [a, o, i] = Vi(r), s = $i(n, i);
1918
1918
  let l = e;
1919
- const { use: u } = s, h = (u || []).concat(Pi);
1919
+ const { use: u } = s, h = (u || []).concat(zi);
1920
1920
  for (let d = h.length; d--; )
1921
1921
  l = h[d](l);
1922
1922
  return l(a, o || s.fetcher || null, s);
1923
- }, Ui = (e, t, r) => {
1923
+ }, Fi = (e, t, r) => {
1924
1924
  const n = t[e] || (t[e] = []);
1925
1925
  return n.push(r), () => {
1926
1926
  const a = n.indexOf(r);
1927
1927
  a >= 0 && (n[a] = n[n.length - 1], n.pop());
1928
1928
  };
1929
1929
  };
1930
- Bi();
1931
- const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
1930
+ Mi();
1931
+ const Vt = U.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
1932
1932
  // and emitting an error.
1933
1933
  // We assume that this is only for the `use(thenable)` case, not `use(context)`.
1934
1934
  // https://github.com/facebook/react/blob/aed00dacfb79d17c53218404c52b1c7aa59c4a89/packages/react-server/src/ReactFizzThenable.js#L45
@@ -1949,8 +1949,8 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
1949
1949
  }
1950
1950
  }), Dt = {
1951
1951
  dedupe: !0
1952
- }, Fi = (e, t, r) => {
1953
- const { cache: n, compare: a, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: h, refreshWhenOffline: d, keepPreviousData: g } = r, [f, y, p, v] = se.get(n), [b, x] = gt(e), k = T(!1), $ = T(!1), _ = T(b), L = T(t), B = T(r), E = () => B.current, w = () => E().isVisible() && E().isOnline(), [R, S, O, N] = jn(n, b), A = T({}).current, D = V(i) ? V(r.fallback) ? ee : r.fallback[b] : i, C = (P, z) => {
1952
+ }, Hi = (e, t, r) => {
1953
+ const { cache: n, compare: a, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: h, refreshWhenOffline: d, keepPreviousData: g } = r, [f, b, p, v] = se.get(n), [y, x] = gt(e), k = T(!1), L = T(!1), _ = T(y), $ = T(t), B = T(r), E = () => B.current, w = () => E().isVisible() && E().isOnline(), [R, S, O, N] = Gn(n, y), A = T({}).current, D = V(i) ? V(r.fallback) ? ee : r.fallback[y] : i, C = (P, z) => {
1954
1954
  for (const Z in A) {
1955
1955
  const H = Z;
1956
1956
  if (H === "data") {
@@ -1960,8 +1960,8 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
1960
1960
  return !1;
1961
1961
  }
1962
1962
  return !0;
1963
- }, U = ue(() => {
1964
- const P = !b || !t ? !1 : V(s) ? E().isPaused() || o ? !1 : l !== !1 : s, z = (Q) => {
1963
+ }, F = ue(() => {
1964
+ const P = !y || !t ? !1 : V(s) ? E().isPaused() || o ? !1 : l !== !1 : s, z = (Q) => {
1965
1965
  const me = ke(Q);
1966
1966
  return delete me._k, P ? {
1967
1967
  isValidating: !0,
@@ -1979,57 +1979,57 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
1979
1979
  ];
1980
1980
  }, [
1981
1981
  n,
1982
- b
1983
- ]), G = fi.useSyncExternalStore(X(
1984
- (P) => O(b, (z, Z) => {
1982
+ y
1983
+ ]), G = hi.useSyncExternalStore(X(
1984
+ (P) => O(y, (z, Z) => {
1985
1985
  C(Z, z) || P();
1986
1986
  }),
1987
1987
  // eslint-disable-next-line react-hooks/exhaustive-deps
1988
1988
  [
1989
1989
  n,
1990
- b
1990
+ y
1991
1991
  ]
1992
- ), U[0], U[1]), q = !k.current, Et = f[b] && f[b].length > 0, Ee = G.data, Te = V(Ee) ? D && Wn(D) ? Vt(D) : D : Ee, Xe = G.error, Rr = T(Te), Qe = g ? V(Ee) ? Rr.current : Ee : Te, Ir = Et && !V(Xe) ? !1 : q && !V(s) ? s : E().isPaused() ? !1 : o ? V(Te) ? !1 : l : V(Te) || l, $r = !!(b && t && q && Ir), Sa = V(G.isValidating) ? $r : G.isValidating, Ca = V(G.isLoading) ? $r : G.isLoading, ze = X(
1992
+ ), F[0], F[1]), q = !k.current, Et = f[y] && f[y].length > 0, Ee = G.data, Te = V(Ee) ? D && jn(D) ? Vt(D) : D : Ee, Xe = G.error, Rr = T(Te), Qe = g ? V(Ee) ? Rr.current : Ee : Te, Ir = Et && !V(Xe) ? !1 : q && !V(s) ? s : E().isPaused() ? !1 : o ? V(Te) ? !1 : l : V(Te) || l, Lr = !!(y && t && q && Ir), Ca = V(G.isValidating) ? Lr : G.isValidating, Na = V(G.isLoading) ? Lr : G.isLoading, ze = X(
1993
1993
  async (P) => {
1994
- const z = L.current;
1995
- if (!b || !z || $.current || E().isPaused())
1994
+ const z = $.current;
1995
+ if (!y || !z || L.current || E().isPaused())
1996
1996
  return !1;
1997
1997
  let Z, H, ie = !0;
1998
- const Se = P || {}, K = !p[b] || !Se.dedupe, Q = () => en ? !$.current && b === _.current && k.current : b === _.current, me = {
1998
+ const Se = P || {}, K = !p[y] || !Se.dedupe, Q = () => en ? !L.current && y === _.current && k.current : y === _.current, me = {
1999
1999
  isValidating: !1,
2000
2000
  isLoading: !1
2001
2001
  }, Ar = () => {
2002
2002
  S(me);
2003
2003
  }, Or = () => {
2004
- const re = p[b];
2005
- re && re[1] === H && delete p[b];
2004
+ const re = p[y];
2005
+ re && re[1] === H && delete p[y];
2006
2006
  }, Br = {
2007
2007
  isValidating: !0
2008
2008
  };
2009
2009
  V(R().data) && (Br.isLoading = !0);
2010
2010
  try {
2011
2011
  if (K && (S(Br), r.loadingTimeout && V(R().data) && setTimeout(() => {
2012
- ie && Q() && E().onLoadingSlow(b, r);
2013
- }, r.loadingTimeout), p[b] = [
2012
+ ie && Q() && E().onLoadingSlow(y, r);
2013
+ }, r.loadingTimeout), p[y] = [
2014
2014
  z(x),
2015
- tr()
2016
- ]), [Z, H] = p[b], Z = await Z, K && setTimeout(Or, r.dedupingInterval), !p[b] || p[b][1] !== H)
2017
- return K && Q() && E().onDiscarded(b), !1;
2015
+ er()
2016
+ ]), [Z, H] = p[y], Z = await Z, K && setTimeout(Or, r.dedupingInterval), !p[y] || p[y][1] !== H)
2017
+ return K && Q() && E().onDiscarded(y), !1;
2018
2018
  me.error = ee;
2019
- const re = y[b];
2019
+ const re = b[y];
2020
2020
  if (!V(re) && // case 1
2021
2021
  (H <= re[0] || // case 2
2022
2022
  H <= re[1] || // case 3
2023
2023
  re[1] === 0))
2024
- return Ar(), K && Q() && E().onDiscarded(b), !1;
2024
+ return Ar(), K && Q() && E().onDiscarded(y), !1;
2025
2025
  const ge = R().data;
2026
- me.data = a(ge, Z) ? ge : Z, K && Q() && E().onSuccess(Z, b, r);
2026
+ me.data = a(ge, Z) ? ge : Z, K && Q() && E().onSuccess(Z, y, r);
2027
2027
  } catch (re) {
2028
2028
  Or();
2029
2029
  const ge = E(), { shouldRetryOnError: Tt } = ge;
2030
- ge.isPaused() || (me.error = re, K && Q() && (ge.onError(re, b, ge), (Tt === !0 || le(Tt) && Tt(re)) && (!E().revalidateOnFocus || !E().revalidateOnReconnect || w()) && ge.onErrorRetry(re, b, ge, (Na) => {
2031
- const St = f[b];
2032
- St && St[0] && St[0](Ue.ERROR_REVALIDATE_EVENT, Na);
2030
+ ge.isPaused() || (me.error = re, K && Q() && (ge.onError(re, y, ge), (Tt === !0 || le(Tt) && Tt(re)) && (!E().revalidateOnFocus || !E().revalidateOnReconnect || w()) && ge.onErrorRetry(re, y, ge, (Ra) => {
2031
+ const St = f[y];
2032
+ St && St[0] && St[0](Ue.ERROR_REVALIDATE_EVENT, Ra);
2033
2033
  }, {
2034
2034
  retryCount: (Se.retryCount || 0) + 1,
2035
2035
  dedupe: !0
@@ -2049,22 +2049,22 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
2049
2049
  // even though it might cause unexpected behaviors.
2050
2050
  // eslint-disable-next-line react-hooks/exhaustive-deps
2051
2051
  [
2052
- b,
2052
+ y,
2053
2053
  n
2054
2054
  ]
2055
- ), Lr = X(
2055
+ ), $r = X(
2056
2056
  // Use callback to make sure `keyRef.current` returns latest result every time
2057
- (...P) => Yn(n, _.current, ...P),
2057
+ (...P) => Jn(n, _.current, ...P),
2058
2058
  // eslint-disable-next-line react-hooks/exhaustive-deps
2059
2059
  []
2060
2060
  );
2061
2061
  if (Ot(() => {
2062
- L.current = t, B.current = r, V(Ee) || (Rr.current = Ee);
2062
+ $.current = t, B.current = r, V(Ee) || (Rr.current = Ee);
2063
2063
  }), Ot(() => {
2064
- if (!b) return;
2064
+ if (!y) return;
2065
2065
  const P = ze.bind(ee, Dt);
2066
2066
  let z = 0;
2067
- const H = Ui(b, f, (ie, Se = {}) => {
2067
+ const H = Fi(y, f, (ie, Se = {}) => {
2068
2068
  if (ie == Ue.FOCUS_EVENT) {
2069
2069
  const K = Date.now();
2070
2070
  E().revalidateOnFocus && K > z && w() && (z = K + E().focusThrottleInterval, P());
@@ -2077,13 +2077,13 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
2077
2077
  return ze(Se);
2078
2078
  }
2079
2079
  });
2080
- return $.current = !1, _.current = b, k.current = !0, S({
2080
+ return L.current = !1, _.current = y, k.current = !0, S({
2081
2081
  _k: x
2082
- }), Ir && (V(Te) || Ge ? P() : xi(P)), () => {
2083
- $.current = !0, H();
2082
+ }), Ir && (V(Te) || Ge ? P() : _i(P)), () => {
2083
+ L.current = !0, H();
2084
2084
  };
2085
2085
  }, [
2086
- b
2086
+ y
2087
2087
  ]), Ot(() => {
2088
2088
  let P;
2089
2089
  function z() {
@@ -2100,14 +2100,14 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
2100
2100
  u,
2101
2101
  h,
2102
2102
  d,
2103
- b
2104
- ]), Ya(Qe), o && V(Te) && b) {
2103
+ y
2104
+ ]), Ja(Qe), o && V(Te) && y) {
2105
2105
  if (!en && Ge)
2106
2106
  throw new Error("Fallback data is required when using Suspense in SSR.");
2107
- L.current = t, B.current = r, $.current = !1;
2108
- const P = v[b];
2107
+ $.current = t, B.current = r, L.current = !1;
2108
+ const P = v[y];
2109
2109
  if (!V(P)) {
2110
- const z = Lr(P);
2110
+ const z = $r(P);
2111
2111
  Vt(z);
2112
2112
  }
2113
2113
  if (V(Xe)) {
@@ -2117,7 +2117,7 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
2117
2117
  throw Xe;
2118
2118
  }
2119
2119
  return {
2120
- mutate: Lr,
2120
+ mutate: $r,
2121
2121
  get data() {
2122
2122
  return A.data = !0, Qe;
2123
2123
  },
@@ -2125,13 +2125,13 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
2125
2125
  return A.error = !0, Xe;
2126
2126
  },
2127
2127
  get isValidating() {
2128
- return A.isValidating = !0, Sa;
2128
+ return A.isValidating = !0, Ca;
2129
2129
  },
2130
2130
  get isLoading() {
2131
- return A.isLoading = !0, Ca;
2131
+ return A.isLoading = !0, Na;
2132
2132
  }
2133
2133
  };
2134
- }, Hi = zi(Fi), fe = {
2134
+ }, Wi = Ui(Hi), fe = {
2135
2135
  GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
2136
2136
  location(latitude: $latitude, longitude: $longitude) {
2137
2137
  country
@@ -2278,11 +2278,11 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
2278
2278
  schema: fe.SET_USER_PREFERENCES,
2279
2279
  method: "setUserPreferences"
2280
2280
  }
2281
- }, Xn = process.env.PUBLIC_SASSY_API_SERVER_URL, Wi = async ({
2281
+ }, Qn = process.env.PUBLIC_SASSY_API_SERVER_URL, ji = async ({
2282
2282
  query: e,
2283
2283
  data: t,
2284
2284
  headers: r = {}
2285
- }) => await fetch(`${Xn}/graphql`, {
2285
+ }) => await fetch(`${Qn}/graphql`, {
2286
2286
  method: "POST",
2287
2287
  credentials: "include",
2288
2288
  headers: {
@@ -2294,14 +2294,14 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
2294
2294
  query: e,
2295
2295
  variables: t
2296
2296
  })
2297
- }), yr = async ({
2297
+ }), br = async ({
2298
2298
  accessToken: e,
2299
2299
  type: t,
2300
2300
  params: r = {}
2301
2301
  }) => {
2302
2302
  const n = t != null && t.data ? t.data(r) : r;
2303
2303
  try {
2304
- const a = `Bearer ${e}`, o = await Wi({
2304
+ const a = `Bearer ${e}`, o = await ji({
2305
2305
  headers: {
2306
2306
  authorization: a
2307
2307
  },
@@ -2319,14 +2319,14 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
2319
2319
  } catch (a) {
2320
2320
  return console.error(a), { status: 500, data: [] };
2321
2321
  }
2322
- }, ji = async ({
2322
+ }, Gi = async ({
2323
2323
  accessToken: e,
2324
2324
  name: t,
2325
2325
  data: r,
2326
2326
  method: n = "POST"
2327
2327
  }) => {
2328
2328
  const a = `Bearer ${e}`;
2329
- return await fetch(`${Xn}/api/${t}`, {
2329
+ return await fetch(`${Qn}/api/${t}`, {
2330
2330
  method: n,
2331
2331
  credentials: "include",
2332
2332
  headers: {
@@ -2342,7 +2342,7 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
2342
2342
  swrOptions: n,
2343
2343
  getAccessToken: a
2344
2344
  }) => {
2345
- const { data: o, error: i, isLoading: s, mutate: l } = Hi(
2345
+ const { data: o, error: i, isLoading: s, mutate: l } = Wi(
2346
2346
  [t, ...r],
2347
2347
  (u) => e(u, a),
2348
2348
  { ...n }
@@ -2353,7 +2353,7 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
2353
2353
  type: t,
2354
2354
  params: r
2355
2355
  }) => {
2356
- const n = await e(), a = await yr({
2356
+ const n = await e(), a = await br({
2357
2357
  accessToken: n,
2358
2358
  type: t,
2359
2359
  params: r
@@ -2361,18 +2361,18 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
2361
2361
  if (a.status === 200 && a.errors === void 0)
2362
2362
  return a.data;
2363
2363
  throw new Error("An error occurred while fetching the data.");
2364
- }, Gi = async ([e, t], r) => ht({
2364
+ }, qi = async ([e, t], r) => ht({
2365
2365
  getAccessToken: r,
2366
2366
  type: Ve.GET_USER_PREFERENCES,
2367
2367
  params: {
2368
2368
  user: t
2369
2369
  }
2370
- }), br = ({
2370
+ }), yr = ({
2371
2371
  keys: e,
2372
2372
  getAccessToken: t,
2373
2373
  isPaused: r = !1
2374
2374
  }) => ft({
2375
- fetcher: Gi,
2375
+ fetcher: qi,
2376
2376
  scope: "/preferences",
2377
2377
  keys: e,
2378
2378
  swrOptions: {
@@ -2382,21 +2382,21 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
2382
2382
  revalidateOnReconnect: r
2383
2383
  },
2384
2384
  getAccessToken: t
2385
- }), qi = async ([e, t], r) => ht({
2385
+ }), Ki = async ([e, t], r) => ht({
2386
2386
  getAccessToken: r,
2387
2387
  type: Ve.GET_CHATS_STATS,
2388
2388
  params: {
2389
2389
  user: t
2390
2390
  }
2391
- }), Kc = ({
2391
+ }), Yc = ({
2392
2392
  keys: e,
2393
2393
  getAccessToken: t
2394
2394
  }) => ft({
2395
- fetcher: qi,
2395
+ fetcher: Ki,
2396
2396
  scope: "/stats",
2397
2397
  keys: e,
2398
2398
  getAccessToken: t
2399
- }), Qn = async ([e, t, r, n], a) => ht({
2399
+ }), ea = async ([e, t, r, n], a) => ht({
2400
2400
  getAccessToken: a,
2401
2401
  type: Ve.GET_CHATS,
2402
2402
  params: {
@@ -2406,11 +2406,11 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
2406
2406
  limit: 1,
2407
2407
  truncateSize: 100
2408
2408
  }
2409
- }), Ki = ({
2409
+ }), Yi = ({
2410
2410
  keys: e,
2411
2411
  getAccessToken: t
2412
2412
  }) => ft({
2413
- fetcher: Qn,
2413
+ fetcher: ea,
2414
2414
  scope: "/history",
2415
2415
  keys: e,
2416
2416
  getAccessToken: t,
@@ -2418,26 +2418,26 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
2418
2418
  keepPreviousData: !0,
2419
2419
  dedupingInterval: 1e4
2420
2420
  }
2421
- }), Yi = ({
2421
+ }), Ji = ({
2422
2422
  keys: e,
2423
2423
  getAccessToken: t
2424
2424
  }) => {
2425
- Zn(["/history", ...e], (r) => Qn(r, t));
2426
- }, ea = async ([e], t) => ht({
2425
+ Xn(["/history", ...e], (r) => ea(r, t));
2426
+ }, ta = async ([e], t) => ht({
2427
2427
  getAccessToken: t,
2428
2428
  type: Ve.GET_SERVER_CAPABILITIES
2429
- }), Yc = ({
2429
+ }), Jc = ({
2430
2430
  getAccessToken: e
2431
2431
  }) => ft({
2432
- fetcher: ea,
2432
+ fetcher: ta,
2433
2433
  scope: "/capabilities",
2434
2434
  keys: [],
2435
2435
  getAccessToken: e
2436
- }), Ji = ({
2436
+ }), Zi = ({
2437
2437
  getAccessToken: e
2438
2438
  }) => {
2439
- Zn(["/capabilities"], (t) => ea(t, e));
2440
- }, Zi = "z-20", Xi = "z-10", oe = F.createContext({
2439
+ Xn(["/capabilities"], (t) => ta(t, e));
2440
+ }, Xi = "z-20", Qi = "z-10", oe = U.createContext({
2441
2441
  state: {
2442
2442
  id: "",
2443
2443
  model: Ne,
@@ -2455,11 +2455,11 @@ const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the g
2455
2455
  plugins: [],
2456
2456
  engines: []
2457
2457
  }
2458
- }), ta = F.createContext({
2458
+ }), ra = U.createContext({
2459
2459
  state: { searchString: "", sortedCell: "", sortDirection: "" },
2460
2460
  dispatch: () => {
2461
2461
  }
2462
- }), pt = F.createContext({
2462
+ }), pt = U.createContext({
2463
2463
  state: { prompt: "", lastTriggeredTimestamp: 0 },
2464
2464
  dispatch: () => {
2465
2465
  }
@@ -2477,19 +2477,19 @@ try {
2477
2477
  });
2478
2478
  } catch {
2479
2479
  }
2480
- const Qi = "av-tooltip", es = "av-tooltip-arrow", qe = Math.min, Re = Math.max, it = Math.round, ce = (e) => ({
2480
+ const es = "av-tooltip", ts = "av-tooltip-arrow", qe = Math.min, Re = Math.max, it = Math.round, ce = (e) => ({
2481
2481
  x: e,
2482
2482
  y: e
2483
- }), ts = {
2483
+ }), rs = {
2484
2484
  left: "right",
2485
2485
  right: "left",
2486
2486
  bottom: "top",
2487
2487
  top: "bottom"
2488
- }, rs = {
2488
+ }, ns = {
2489
2489
  start: "end",
2490
2490
  end: "start"
2491
2491
  };
2492
- function rr(e, t, r) {
2492
+ function tr(e, t, r) {
2493
2493
  return Re(e, qe(t, r));
2494
2494
  }
2495
2495
  function Ye(e, t) {
@@ -2501,32 +2501,32 @@ function xe(e) {
2501
2501
  function Je(e) {
2502
2502
  return e.split("-")[1];
2503
2503
  }
2504
- function ra(e) {
2504
+ function na(e) {
2505
2505
  return e === "x" ? "y" : "x";
2506
2506
  }
2507
2507
  function vr(e) {
2508
2508
  return e === "y" ? "height" : "width";
2509
2509
  }
2510
- function $e(e) {
2510
+ function Le(e) {
2511
2511
  return ["top", "bottom"].includes(xe(e)) ? "y" : "x";
2512
2512
  }
2513
2513
  function kr(e) {
2514
- return ra($e(e));
2514
+ return na(Le(e));
2515
2515
  }
2516
- function ns(e, t, r) {
2516
+ function as(e, t, r) {
2517
2517
  r === void 0 && (r = !1);
2518
2518
  const n = Je(e), a = kr(e), o = vr(a);
2519
2519
  let i = a === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
2520
2520
  return t.reference[o] > t.floating[o] && (i = st(i)), [i, st(i)];
2521
2521
  }
2522
- function as(e) {
2522
+ function os(e) {
2523
2523
  const t = st(e);
2524
- return [nr(e), t, nr(t)];
2524
+ return [rr(e), t, rr(t)];
2525
2525
  }
2526
- function nr(e) {
2527
- return e.replace(/start|end/g, (t) => rs[t]);
2526
+ function rr(e) {
2527
+ return e.replace(/start|end/g, (t) => ns[t]);
2528
2528
  }
2529
- function os(e, t, r) {
2529
+ function is(e, t, r) {
2530
2530
  const n = ["left", "right"], a = ["right", "left"], o = ["top", "bottom"], i = ["bottom", "top"];
2531
2531
  switch (e) {
2532
2532
  case "top":
@@ -2539,15 +2539,15 @@ function os(e, t, r) {
2539
2539
  return [];
2540
2540
  }
2541
2541
  }
2542
- function is(e, t, r, n) {
2542
+ function ss(e, t, r, n) {
2543
2543
  const a = Je(e);
2544
- let o = os(xe(e), r === "start", n);
2545
- return a && (o = o.map((i) => i + "-" + a), t && (o = o.concat(o.map(nr)))), o;
2544
+ let o = is(xe(e), r === "start", n);
2545
+ return a && (o = o.map((i) => i + "-" + a), t && (o = o.concat(o.map(rr)))), o;
2546
2546
  }
2547
2547
  function st(e) {
2548
- return e.replace(/left|right|bottom|top/g, (t) => ts[t]);
2548
+ return e.replace(/left|right|bottom|top/g, (t) => rs[t]);
2549
2549
  }
2550
- function ss(e) {
2550
+ function ls(e) {
2551
2551
  return {
2552
2552
  top: 0,
2553
2553
  right: 0,
@@ -2556,8 +2556,8 @@ function ss(e) {
2556
2556
  ...e
2557
2557
  };
2558
2558
  }
2559
- function na(e) {
2560
- return typeof e != "number" ? ss(e) : {
2559
+ function aa(e) {
2560
+ return typeof e != "number" ? ls(e) : {
2561
2561
  top: e,
2562
2562
  right: e,
2563
2563
  bottom: e,
@@ -2587,7 +2587,7 @@ function nn(e, t, r) {
2587
2587
  reference: n,
2588
2588
  floating: a
2589
2589
  } = e;
2590
- const o = $e(t), i = kr(t), s = vr(i), l = xe(t), u = o === "y", h = n.x + n.width / 2 - a.width / 2, d = n.y + n.height / 2 - a.height / 2, g = n[s] / 2 - a[s] / 2;
2590
+ const o = Le(t), i = kr(t), s = vr(i), l = xe(t), u = o === "y", h = n.x + n.width / 2 - a.width / 2, d = n.y + n.height / 2 - a.height / 2, g = n[s] / 2 - a[s] / 2;
2591
2591
  let f;
2592
2592
  switch (l) {
2593
2593
  case "top":
@@ -2630,7 +2630,7 @@ function nn(e, t, r) {
2630
2630
  }
2631
2631
  return f;
2632
2632
  }
2633
- const ls = async (e, t, r) => {
2633
+ const cs = async (e, t, r) => {
2634
2634
  const {
2635
2635
  placement: n = "bottom",
2636
2636
  strategy: a = "absolute",
@@ -2644,17 +2644,17 @@ const ls = async (e, t, r) => {
2644
2644
  }), {
2645
2645
  x: h,
2646
2646
  y: d
2647
- } = nn(u, n, l), g = n, f = {}, y = 0;
2647
+ } = nn(u, n, l), g = n, f = {}, b = 0;
2648
2648
  for (let p = 0; p < s.length; p++) {
2649
2649
  const {
2650
2650
  name: v,
2651
- fn: b
2651
+ fn: y
2652
2652
  } = s[p], {
2653
2653
  x,
2654
2654
  y: k,
2655
- data: $,
2655
+ data: L,
2656
2656
  reset: _
2657
- } = await b({
2657
+ } = await y({
2658
2658
  x: h,
2659
2659
  y: d,
2660
2660
  initialPlacement: n,
@@ -2672,9 +2672,9 @@ const ls = async (e, t, r) => {
2672
2672
  ...f,
2673
2673
  [v]: {
2674
2674
  ...f[v],
2675
- ...$
2675
+ ...L
2676
2676
  }
2677
- }, _ && y <= 50 && (y++, typeof _ == "object" && (_.placement && (g = _.placement), _.rects && (u = _.rects === !0 ? await i.getElementRects({
2677
+ }, _ && b <= 50 && (b++, typeof _ == "object" && (_.placement && (g = _.placement), _.rects && (u = _.rects === !0 ? await i.getElementRects({
2678
2678
  reference: e,
2679
2679
  floating: t,
2680
2680
  strategy: a
@@ -2691,7 +2691,7 @@ const ls = async (e, t, r) => {
2691
2691
  middlewareData: f
2692
2692
  };
2693
2693
  };
2694
- async function aa(e, t) {
2694
+ async function oa(e, t) {
2695
2695
  var r;
2696
2696
  t === void 0 && (t = {});
2697
2697
  const {
@@ -2707,12 +2707,12 @@ async function aa(e, t) {
2707
2707
  elementContext: d = "floating",
2708
2708
  altBoundary: g = !1,
2709
2709
  padding: f = 0
2710
- } = Ye(t, e), y = na(f), p = s[g ? d === "floating" ? "reference" : "floating" : d], v = lt(await o.getClippingRect({
2710
+ } = Ye(t, e), b = aa(f), p = s[g ? d === "floating" ? "reference" : "floating" : d], v = lt(await o.getClippingRect({
2711
2711
  element: (r = await (o.isElement == null ? void 0 : o.isElement(p))) == null || r ? p : p.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
2712
2712
  boundary: u,
2713
2713
  rootBoundary: h,
2714
2714
  strategy: l
2715
- })), b = d === "floating" ? {
2715
+ })), y = d === "floating" ? {
2716
2716
  x: n,
2717
2717
  y: a,
2718
2718
  width: i.floating.width,
@@ -2723,20 +2723,20 @@ async function aa(e, t) {
2723
2723
  } : {
2724
2724
  x: 1,
2725
2725
  y: 1
2726
- }, $ = lt(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
2726
+ }, L = lt(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
2727
2727
  elements: s,
2728
- rect: b,
2728
+ rect: y,
2729
2729
  offsetParent: x,
2730
2730
  strategy: l
2731
- }) : b);
2731
+ }) : y);
2732
2732
  return {
2733
- top: (v.top - $.top + y.top) / k.y,
2734
- bottom: ($.bottom - v.bottom + y.bottom) / k.y,
2735
- left: (v.left - $.left + y.left) / k.x,
2736
- right: ($.right - v.right + y.right) / k.x
2733
+ top: (v.top - L.top + b.top) / k.y,
2734
+ bottom: (L.bottom - v.bottom + b.bottom) / k.y,
2735
+ left: (v.left - L.left + b.left) / k.x,
2736
+ right: (L.right - v.right + b.right) / k.x
2737
2737
  };
2738
2738
  }
2739
- const cs = (e) => ({
2739
+ const ds = (e) => ({
2740
2740
  name: "arrow",
2741
2741
  options: e,
2742
2742
  async fn(t) {
@@ -2754,26 +2754,26 @@ const cs = (e) => ({
2754
2754
  } = Ye(e, t) || {};
2755
2755
  if (u == null)
2756
2756
  return {};
2757
- const d = na(h), g = {
2757
+ const d = aa(h), g = {
2758
2758
  x: r,
2759
2759
  y: n
2760
- }, f = kr(a), y = vr(f), p = await i.getDimensions(u), v = f === "y", b = v ? "top" : "left", x = v ? "bottom" : "right", k = v ? "clientHeight" : "clientWidth", $ = o.reference[y] + o.reference[f] - g[f] - o.floating[y], _ = g[f] - o.reference[f], L = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
2761
- let B = L ? L[k] : 0;
2762
- (!B || !await (i.isElement == null ? void 0 : i.isElement(L))) && (B = s.floating[k] || o.floating[y]);
2763
- const E = $ / 2 - _ / 2, w = B / 2 - p[y] / 2 - 1, R = qe(d[b], w), S = qe(d[x], w), O = R, N = B - p[y] - S, A = B / 2 - p[y] / 2 + E, D = rr(O, A, N), C = !l.arrow && Je(a) != null && A !== D && o.reference[y] / 2 - (A < O ? R : S) - p[y] / 2 < 0, U = C ? A < O ? A - O : A - N : 0;
2760
+ }, f = kr(a), b = vr(f), p = await i.getDimensions(u), v = f === "y", y = v ? "top" : "left", x = v ? "bottom" : "right", k = v ? "clientHeight" : "clientWidth", L = o.reference[b] + o.reference[f] - g[f] - o.floating[b], _ = g[f] - o.reference[f], $ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
2761
+ let B = $ ? $[k] : 0;
2762
+ (!B || !await (i.isElement == null ? void 0 : i.isElement($))) && (B = s.floating[k] || o.floating[b]);
2763
+ const E = L / 2 - _ / 2, w = B / 2 - p[b] / 2 - 1, R = qe(d[y], w), S = qe(d[x], w), O = R, N = B - p[b] - S, A = B / 2 - p[b] / 2 + E, D = tr(O, A, N), C = !l.arrow && Je(a) != null && A !== D && o.reference[b] / 2 - (A < O ? R : S) - p[b] / 2 < 0, F = C ? A < O ? A - O : A - N : 0;
2764
2764
  return {
2765
- [f]: g[f] + U,
2765
+ [f]: g[f] + F,
2766
2766
  data: {
2767
2767
  [f]: D,
2768
- centerOffset: A - D - U,
2768
+ centerOffset: A - D - F,
2769
2769
  ...C && {
2770
- alignmentOffset: U
2770
+ alignmentOffset: F
2771
2771
  }
2772
2772
  },
2773
2773
  reset: C
2774
2774
  };
2775
2775
  }
2776
- }), ds = function(e) {
2776
+ }), us = function(e) {
2777
2777
  return e === void 0 && (e = {}), {
2778
2778
  name: "flip",
2779
2779
  options: e,
@@ -2791,18 +2791,18 @@ const cs = (e) => ({
2791
2791
  crossAxis: d = !0,
2792
2792
  fallbackPlacements: g,
2793
2793
  fallbackStrategy: f = "bestFit",
2794
- fallbackAxisSideDirection: y = "none",
2794
+ fallbackAxisSideDirection: b = "none",
2795
2795
  flipAlignment: p = !0,
2796
2796
  ...v
2797
2797
  } = Ye(e, t);
2798
2798
  if ((r = o.arrow) != null && r.alignmentOffset)
2799
2799
  return {};
2800
- const b = xe(a), x = $e(s), k = xe(s) === s, $ = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), _ = g || (k || !p ? [st(s)] : as(s)), L = y !== "none";
2801
- !g && L && _.push(...is(s, p, y, $));
2802
- const B = [s, ..._], E = await aa(t, v), w = [];
2800
+ const y = xe(a), x = Le(s), k = xe(s) === s, L = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), _ = g || (k || !p ? [st(s)] : os(s)), $ = b !== "none";
2801
+ !g && $ && _.push(...ss(s, p, b, L));
2802
+ const B = [s, ..._], E = await oa(t, v), w = [];
2803
2803
  let R = ((n = o.flip) == null ? void 0 : n.overflows) || [];
2804
- if (h && w.push(E[b]), d) {
2805
- const A = ns(a, i, $);
2804
+ if (h && w.push(E[y]), d) {
2805
+ const A = as(a, i, L);
2806
2806
  w.push(E[A[0]], E[A[1]]);
2807
2807
  }
2808
2808
  if (R = [...R, {
@@ -2821,21 +2821,21 @@ const cs = (e) => ({
2821
2821
  placement: D
2822
2822
  }
2823
2823
  };
2824
- let C = (O = R.filter((U) => U.overflows[0] <= 0).sort((U, G) => U.overflows[1] - G.overflows[1])[0]) == null ? void 0 : O.placement;
2824
+ let C = (O = R.filter((F) => F.overflows[0] <= 0).sort((F, G) => F.overflows[1] - G.overflows[1])[0]) == null ? void 0 : O.placement;
2825
2825
  if (!C)
2826
2826
  switch (f) {
2827
2827
  case "bestFit": {
2828
2828
  var N;
2829
- const U = (N = R.filter((G) => {
2830
- if (L) {
2831
- const q = $e(G.placement);
2829
+ const F = (N = R.filter((G) => {
2830
+ if ($) {
2831
+ const q = Le(G.placement);
2832
2832
  return q === x || // Create a bias to the `y` side axis due to horizontal
2833
2833
  // reading directions favoring greater width.
2834
2834
  q === "y";
2835
2835
  }
2836
2836
  return !0;
2837
2837
  }).map((G) => [G.placement, G.overflows.filter((q) => q > 0).reduce((q, Et) => q + Et, 0)]).sort((G, q) => G[1] - q[1])[0]) == null ? void 0 : N[0];
2838
- U && (C = U);
2838
+ F && (C = F);
2839
2839
  break;
2840
2840
  }
2841
2841
  case "initialPlacement":
@@ -2853,16 +2853,16 @@ const cs = (e) => ({
2853
2853
  }
2854
2854
  };
2855
2855
  };
2856
- async function us(e, t) {
2856
+ async function ms(e, t) {
2857
2857
  const {
2858
2858
  placement: r,
2859
2859
  platform: n,
2860
2860
  elements: a
2861
- } = e, o = await (n.isRTL == null ? void 0 : n.isRTL(a.floating)), i = xe(r), s = Je(r), l = $e(r) === "y", u = ["left", "top"].includes(i) ? -1 : 1, h = o && l ? -1 : 1, d = Ye(t, e);
2861
+ } = e, o = await (n.isRTL == null ? void 0 : n.isRTL(a.floating)), i = xe(r), s = Je(r), l = Le(r) === "y", u = ["left", "top"].includes(i) ? -1 : 1, h = o && l ? -1 : 1, d = Ye(t, e);
2862
2862
  let {
2863
2863
  mainAxis: g,
2864
2864
  crossAxis: f,
2865
- alignmentAxis: y
2865
+ alignmentAxis: b
2866
2866
  } = typeof d == "number" ? {
2867
2867
  mainAxis: d,
2868
2868
  crossAxis: 0,
@@ -2872,7 +2872,7 @@ async function us(e, t) {
2872
2872
  crossAxis: d.crossAxis || 0,
2873
2873
  alignmentAxis: d.alignmentAxis
2874
2874
  };
2875
- return s && typeof y == "number" && (f = s === "end" ? y * -1 : y), l ? {
2875
+ return s && typeof b == "number" && (f = s === "end" ? b * -1 : b), l ? {
2876
2876
  x: f * h,
2877
2877
  y: g * u
2878
2878
  } : {
@@ -2880,7 +2880,7 @@ async function us(e, t) {
2880
2880
  y: f * h
2881
2881
  };
2882
2882
  }
2883
- const ms = function(e) {
2883
+ const gs = function(e) {
2884
2884
  return e === void 0 && (e = 0), {
2885
2885
  name: "offset",
2886
2886
  options: e,
@@ -2891,7 +2891,7 @@ const ms = function(e) {
2891
2891
  y: o,
2892
2892
  placement: i,
2893
2893
  middlewareData: s
2894
- } = t, l = await us(t, e);
2894
+ } = t, l = await ms(t, e);
2895
2895
  return i === ((r = s.offset) == null ? void 0 : r.placement) && (n = s.arrow) != null && n.alignmentOffset ? {} : {
2896
2896
  x: a + l.x,
2897
2897
  y: o + l.y,
@@ -2902,7 +2902,7 @@ const ms = function(e) {
2902
2902
  };
2903
2903
  }
2904
2904
  };
2905
- }, gs = function(e) {
2905
+ }, fs = function(e) {
2906
2906
  return e === void 0 && (e = {}), {
2907
2907
  name: "shift",
2908
2908
  options: e,
@@ -2917,11 +2917,11 @@ const ms = function(e) {
2917
2917
  limiter: s = {
2918
2918
  fn: (v) => {
2919
2919
  let {
2920
- x: b,
2920
+ x: y,
2921
2921
  y: x
2922
2922
  } = v;
2923
2923
  return {
2924
- x: b,
2924
+ x: y,
2925
2925
  y: x
2926
2926
  };
2927
2927
  }
@@ -2930,20 +2930,20 @@ const ms = function(e) {
2930
2930
  } = Ye(e, t), u = {
2931
2931
  x: r,
2932
2932
  y: n
2933
- }, h = await aa(t, l), d = $e(xe(a)), g = ra(d);
2934
- let f = u[g], y = u[d];
2933
+ }, h = await oa(t, l), d = Le(xe(a)), g = na(d);
2934
+ let f = u[g], b = u[d];
2935
2935
  if (o) {
2936
- const v = g === "y" ? "top" : "left", b = g === "y" ? "bottom" : "right", x = f + h[v], k = f - h[b];
2937
- f = rr(x, f, k);
2936
+ const v = g === "y" ? "top" : "left", y = g === "y" ? "bottom" : "right", x = f + h[v], k = f - h[y];
2937
+ f = tr(x, f, k);
2938
2938
  }
2939
2939
  if (i) {
2940
- const v = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", x = y + h[v], k = y - h[b];
2941
- y = rr(x, y, k);
2940
+ const v = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", x = b + h[v], k = b - h[y];
2941
+ b = tr(x, b, k);
2942
2942
  }
2943
2943
  const p = s.fn({
2944
2944
  ...t,
2945
2945
  [g]: f,
2946
- [d]: y
2946
+ [d]: b
2947
2947
  });
2948
2948
  return {
2949
2949
  ...p,
@@ -2959,31 +2959,31 @@ const ms = function(e) {
2959
2959
  }
2960
2960
  };
2961
2961
  };
2962
- function yt() {
2962
+ function bt() {
2963
2963
  return typeof window < "u";
2964
2964
  }
2965
2965
  function De(e) {
2966
- return oa(e) ? (e.nodeName || "").toLowerCase() : "#document";
2966
+ return ia(e) ? (e.nodeName || "").toLowerCase() : "#document";
2967
2967
  }
2968
2968
  function te(e) {
2969
2969
  var t;
2970
2970
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
2971
2971
  }
2972
- function be(e) {
2972
+ function ye(e) {
2973
2973
  var t;
2974
- return (t = (oa(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2974
+ return (t = (ia(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2975
2975
  }
2976
- function oa(e) {
2977
- return yt() ? e instanceof Node || e instanceof te(e).Node : !1;
2976
+ function ia(e) {
2977
+ return bt() ? e instanceof Node || e instanceof te(e).Node : !1;
2978
2978
  }
2979
2979
  function ne(e) {
2980
- return yt() ? e instanceof Element || e instanceof te(e).Element : !1;
2980
+ return bt() ? e instanceof Element || e instanceof te(e).Element : !1;
2981
2981
  }
2982
2982
  function de(e) {
2983
- return yt() ? e instanceof HTMLElement || e instanceof te(e).HTMLElement : !1;
2983
+ return bt() ? e instanceof HTMLElement || e instanceof te(e).HTMLElement : !1;
2984
2984
  }
2985
2985
  function an(e) {
2986
- return !yt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof te(e).ShadowRoot;
2986
+ return !bt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof te(e).ShadowRoot;
2987
2987
  }
2988
2988
  function Ze(e) {
2989
2989
  const {
@@ -2994,10 +2994,10 @@ function Ze(e) {
2994
2994
  } = ae(e);
2995
2995
  return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !["inline", "contents"].includes(a);
2996
2996
  }
2997
- function fs(e) {
2997
+ function hs(e) {
2998
2998
  return ["table", "td", "th"].includes(De(e));
2999
2999
  }
3000
- function bt(e) {
3000
+ function yt(e) {
3001
3001
  return [":popover-open", ":modal"].some((t) => {
3002
3002
  try {
3003
3003
  return e.matches(t);
@@ -3010,12 +3010,12 @@ function wr(e) {
3010
3010
  const t = xr(), r = ne(e) ? ae(e) : e;
3011
3011
  return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (r.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (r.contain || "").includes(n));
3012
3012
  }
3013
- function hs(e) {
3013
+ function ps(e) {
3014
3014
  let t = we(e);
3015
- for (; de(t) && !Le(t); ) {
3015
+ for (; de(t) && !$e(t); ) {
3016
3016
  if (wr(t))
3017
3017
  return t;
3018
- if (bt(t))
3018
+ if (yt(t))
3019
3019
  return null;
3020
3020
  t = we(t);
3021
3021
  }
@@ -3024,7 +3024,7 @@ function hs(e) {
3024
3024
  function xr() {
3025
3025
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
3026
3026
  }
3027
- function Le(e) {
3027
+ function $e(e) {
3028
3028
  return ["html", "body", "#document"].includes(De(e));
3029
3029
  }
3030
3030
  function ae(e) {
@@ -3047,24 +3047,24 @@ function we(e) {
3047
3047
  e.assignedSlot || // DOM Element detected.
3048
3048
  e.parentNode || // ShadowRoot detected.
3049
3049
  an(e) && e.host || // Fallback.
3050
- be(e)
3050
+ ye(e)
3051
3051
  );
3052
3052
  return an(t) ? t.host : t;
3053
3053
  }
3054
- function ia(e) {
3054
+ function sa(e) {
3055
3055
  const t = we(e);
3056
- return Le(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : de(t) && Ze(t) ? t : ia(t);
3056
+ return $e(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : de(t) && Ze(t) ? t : sa(t);
3057
3057
  }
3058
- function sa(e, t, r) {
3058
+ function la(e, t, r) {
3059
3059
  var n;
3060
3060
  t === void 0 && (t = []);
3061
- const a = ia(e), o = a === ((n = e.ownerDocument) == null ? void 0 : n.body), i = te(a);
3062
- return o ? t.concat(i, i.visualViewport || [], Ze(a) ? a : [], []) : t.concat(a, sa(a, []));
3061
+ const a = sa(e), o = a === ((n = e.ownerDocument) == null ? void 0 : n.body), i = te(a);
3062
+ return o ? t.concat(i, i.visualViewport || [], Ze(a) ? a : [], []) : t.concat(a, la(a, []));
3063
3063
  }
3064
3064
  function on(e) {
3065
3065
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
3066
3066
  }
3067
- function la(e) {
3067
+ function ca(e) {
3068
3068
  const t = ae(e);
3069
3069
  let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
3070
3070
  const a = de(e), o = a ? e.offsetWidth : r, i = a ? e.offsetHeight : n, s = it(r) !== o || it(n) !== i;
@@ -3074,28 +3074,28 @@ function la(e) {
3074
3074
  $: s
3075
3075
  };
3076
3076
  }
3077
- function ca(e) {
3077
+ function da(e) {
3078
3078
  return ne(e) ? e : e.contextElement;
3079
3079
  }
3080
3080
  function Ie(e) {
3081
- const t = ca(e);
3081
+ const t = da(e);
3082
3082
  if (!de(t))
3083
3083
  return ce(1);
3084
3084
  const r = t.getBoundingClientRect(), {
3085
3085
  width: n,
3086
3086
  height: a,
3087
3087
  $: o
3088
- } = la(t);
3088
+ } = ca(t);
3089
3089
  let i = (o ? it(r.width) : r.width) / n, s = (o ? it(r.height) : r.height) / a;
3090
3090
  return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
3091
3091
  x: i,
3092
3092
  y: s
3093
3093
  };
3094
3094
  }
3095
- const ps = /* @__PURE__ */ ce(0);
3096
- function da(e) {
3095
+ const bs = /* @__PURE__ */ ce(0);
3096
+ function ua(e) {
3097
3097
  const t = te(e);
3098
- return !xr() || !t.visualViewport ? ps : {
3098
+ return !xr() || !t.visualViewport ? bs : {
3099
3099
  x: t.visualViewport.offsetLeft,
3100
3100
  y: t.visualViewport.offsetTop
3101
3101
  };
@@ -3105,17 +3105,17 @@ function ys(e, t, r) {
3105
3105
  }
3106
3106
  function Ke(e, t, r, n) {
3107
3107
  t === void 0 && (t = !1), r === void 0 && (r = !1);
3108
- const a = e.getBoundingClientRect(), o = ca(e);
3108
+ const a = e.getBoundingClientRect(), o = da(e);
3109
3109
  let i = ce(1);
3110
3110
  t && (n ? ne(n) && (i = Ie(n)) : i = Ie(e));
3111
- const s = ys(o, r, n) ? da(o) : ce(0);
3111
+ const s = ys(o, r, n) ? ua(o) : ce(0);
3112
3112
  let l = (a.left + s.x) / i.x, u = (a.top + s.y) / i.y, h = a.width / i.x, d = a.height / i.y;
3113
3113
  if (o) {
3114
3114
  const g = te(o), f = n && ne(n) ? te(n) : n;
3115
- let y = g, p = on(y);
3116
- for (; p && n && f !== y; ) {
3117
- const v = Ie(p), b = p.getBoundingClientRect(), x = ae(p), k = b.left + (p.clientLeft + parseFloat(x.paddingLeft)) * v.x, $ = b.top + (p.clientTop + parseFloat(x.paddingTop)) * v.y;
3118
- l *= v.x, u *= v.y, h *= v.x, d *= v.y, l += k, u += $, y = te(p), p = on(y);
3115
+ let b = g, p = on(b);
3116
+ for (; p && n && f !== b; ) {
3117
+ const v = Ie(p), y = p.getBoundingClientRect(), x = ae(p), k = y.left + (p.clientLeft + parseFloat(x.paddingLeft)) * v.x, L = y.top + (p.clientTop + parseFloat(x.paddingTop)) * v.y;
3118
+ l *= v.x, u *= v.y, h *= v.x, d *= v.y, l += k, u += L, b = te(p), p = on(b);
3119
3119
  }
3120
3120
  }
3121
3121
  return lt({
@@ -3127,9 +3127,9 @@ function Ke(e, t, r, n) {
3127
3127
  }
3128
3128
  function _r(e, t) {
3129
3129
  const r = vt(e).scrollLeft;
3130
- return t ? t.left + r : Ke(be(e)).left + r;
3130
+ return t ? t.left + r : Ke(ye(e)).left + r;
3131
3131
  }
3132
- function ua(e, t, r) {
3132
+ function ma(e, t, r) {
3133
3133
  r === void 0 && (r = !1);
3134
3134
  const n = e.getBoundingClientRect(), a = n.left + t.scrollLeft - (r ? 0 : (
3135
3135
  // RTL <body> scrollbar.
@@ -3140,14 +3140,14 @@ function ua(e, t, r) {
3140
3140
  y: o
3141
3141
  };
3142
3142
  }
3143
- function bs(e) {
3143
+ function vs(e) {
3144
3144
  let {
3145
3145
  elements: t,
3146
3146
  rect: r,
3147
3147
  offsetParent: n,
3148
3148
  strategy: a
3149
3149
  } = e;
3150
- const o = a === "fixed", i = be(n), s = t ? bt(t.floating) : !1;
3150
+ const o = a === "fixed", i = ye(n), s = t ? yt(t.floating) : !1;
3151
3151
  if (n === i || s && o)
3152
3152
  return r;
3153
3153
  let l = {
@@ -3159,7 +3159,7 @@ function bs(e) {
3159
3159
  const f = Ke(n);
3160
3160
  u = Ie(n), h.x = f.x + n.clientLeft, h.y = f.y + n.clientTop;
3161
3161
  }
3162
- const g = i && !d && !o ? ua(i, l, !0) : ce(0);
3162
+ const g = i && !d && !o ? ma(i, l, !0) : ce(0);
3163
3163
  return {
3164
3164
  width: r.width * u.x,
3165
3165
  height: r.height * u.y,
@@ -3167,11 +3167,11 @@ function bs(e) {
3167
3167
  y: r.y * u.y - l.scrollTop * u.y + h.y + g.y
3168
3168
  };
3169
3169
  }
3170
- function vs(e) {
3170
+ function ks(e) {
3171
3171
  return Array.from(e.getClientRects());
3172
3172
  }
3173
- function ks(e) {
3174
- const t = be(e), r = vt(e), n = e.ownerDocument.body, a = Re(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), o = Re(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
3173
+ function ws(e) {
3174
+ const t = ye(e), r = vt(e), n = e.ownerDocument.body, a = Re(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), o = Re(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
3175
3175
  let i = -r.scrollLeft + _r(e);
3176
3176
  const s = -r.scrollTop;
3177
3177
  return ae(n).direction === "rtl" && (i += Re(t.clientWidth, n.clientWidth) - a), {
@@ -3181,8 +3181,8 @@ function ks(e) {
3181
3181
  y: s
3182
3182
  };
3183
3183
  }
3184
- function ws(e, t) {
3185
- const r = te(e), n = be(e), a = r.visualViewport;
3184
+ function xs(e, t) {
3185
+ const r = te(e), n = ye(e), a = r.visualViewport;
3186
3186
  let o = n.clientWidth, i = n.clientHeight, s = 0, l = 0;
3187
3187
  if (a) {
3188
3188
  o = a.width, i = a.height;
@@ -3196,7 +3196,7 @@ function ws(e, t) {
3196
3196
  y: l
3197
3197
  };
3198
3198
  }
3199
- function xs(e, t) {
3199
+ function _s(e, t) {
3200
3200
  const r = Ke(e, !0, t === "fixed"), n = r.top + e.clientTop, a = r.left + e.clientLeft, o = de(e) ? Ie(e) : ce(1), i = e.clientWidth * o.x, s = e.clientHeight * o.y, l = a * o.x, u = n * o.y;
3201
3201
  return {
3202
3202
  width: i,
@@ -3208,13 +3208,13 @@ function xs(e, t) {
3208
3208
  function sn(e, t, r) {
3209
3209
  let n;
3210
3210
  if (t === "viewport")
3211
- n = ws(e, r);
3211
+ n = xs(e, r);
3212
3212
  else if (t === "document")
3213
- n = ks(be(e));
3213
+ n = ws(ye(e));
3214
3214
  else if (ne(t))
3215
- n = xs(t, r);
3215
+ n = _s(t, r);
3216
3216
  else {
3217
- const a = da(e);
3217
+ const a = ua(e);
3218
3218
  n = {
3219
3219
  x: t.x - a.x,
3220
3220
  y: t.y - a.y,
@@ -3224,31 +3224,31 @@ function sn(e, t, r) {
3224
3224
  }
3225
3225
  return lt(n);
3226
3226
  }
3227
- function ma(e, t) {
3227
+ function ga(e, t) {
3228
3228
  const r = we(e);
3229
- return r === t || !ne(r) || Le(r) ? !1 : ae(r).position === "fixed" || ma(r, t);
3229
+ return r === t || !ne(r) || $e(r) ? !1 : ae(r).position === "fixed" || ga(r, t);
3230
3230
  }
3231
- function _s(e, t) {
3231
+ function Es(e, t) {
3232
3232
  const r = t.get(e);
3233
3233
  if (r)
3234
3234
  return r;
3235
- let n = sa(e, []).filter((s) => ne(s) && De(s) !== "body"), a = null;
3235
+ let n = la(e, []).filter((s) => ne(s) && De(s) !== "body"), a = null;
3236
3236
  const o = ae(e).position === "fixed";
3237
3237
  let i = o ? we(e) : e;
3238
- for (; ne(i) && !Le(i); ) {
3238
+ for (; ne(i) && !$e(i); ) {
3239
3239
  const s = ae(i), l = wr(i);
3240
- !l && s.position === "fixed" && (a = null), (o ? !l && !a : !l && s.position === "static" && a && ["absolute", "fixed"].includes(a.position) || Ze(i) && !l && ma(e, i)) ? n = n.filter((u) => u !== i) : a = s, i = we(i);
3240
+ !l && s.position === "fixed" && (a = null), (o ? !l && !a : !l && s.position === "static" && a && ["absolute", "fixed"].includes(a.position) || Ze(i) && !l && ga(e, i)) ? n = n.filter((u) => u !== i) : a = s, i = we(i);
3241
3241
  }
3242
3242
  return t.set(e, n), n;
3243
3243
  }
3244
- function Es(e) {
3244
+ function Ts(e) {
3245
3245
  let {
3246
3246
  element: t,
3247
3247
  boundary: r,
3248
3248
  rootBoundary: n,
3249
3249
  strategy: a
3250
3250
  } = e;
3251
- const o = [...r === "clippingAncestors" ? bt(t) ? [] : _s(t, this._c) : [].concat(r), n], i = o[0], s = o.reduce((l, u) => {
3251
+ const o = [...r === "clippingAncestors" ? yt(t) ? [] : Es(t, this._c) : [].concat(r), n], i = o[0], s = o.reduce((l, u) => {
3252
3252
  const h = sn(t, u, a);
3253
3253
  return l.top = Re(h.top, l.top), l.right = qe(h.right, l.right), l.bottom = qe(h.bottom, l.bottom), l.left = Re(h.left, l.left), l;
3254
3254
  }, sn(t, i, a));
@@ -3259,18 +3259,18 @@ function Es(e) {
3259
3259
  y: s.top
3260
3260
  };
3261
3261
  }
3262
- function Ts(e) {
3262
+ function Ss(e) {
3263
3263
  const {
3264
3264
  width: t,
3265
3265
  height: r
3266
- } = la(e);
3266
+ } = ca(e);
3267
3267
  return {
3268
3268
  width: t,
3269
3269
  height: r
3270
3270
  };
3271
3271
  }
3272
- function Ss(e, t, r) {
3273
- const n = de(t), a = be(t), o = r === "fixed", i = Ke(e, !0, o, t);
3272
+ function Cs(e, t, r) {
3273
+ const n = de(t), a = ye(t), o = r === "fixed", i = Ke(e, !0, o, t);
3274
3274
  let s = {
3275
3275
  scrollLeft: 0,
3276
3276
  scrollTop: 0
@@ -3281,7 +3281,7 @@ function Ss(e, t, r) {
3281
3281
  const g = Ke(t, !0, o, t);
3282
3282
  l.x = g.x + t.clientLeft, l.y = g.y + t.clientTop;
3283
3283
  } else a && (l.x = _r(a));
3284
- const u = a && !n && !o ? ua(a, s) : ce(0), h = i.left + s.scrollLeft - l.x - u.x, d = i.top + s.scrollTop - l.y - u.y;
3284
+ const u = a && !n && !o ? ma(a, s) : ce(0), h = i.left + s.scrollLeft - l.x - u.x, d = i.top + s.scrollTop - l.y - u.y;
3285
3285
  return {
3286
3286
  x: h,
3287
3287
  y: d,
@@ -3298,15 +3298,15 @@ function ln(e, t) {
3298
3298
  if (t)
3299
3299
  return t(e);
3300
3300
  let r = e.offsetParent;
3301
- return be(e) === r && (r = r.ownerDocument.body), r;
3301
+ return ye(e) === r && (r = r.ownerDocument.body), r;
3302
3302
  }
3303
- function ga(e, t) {
3303
+ function fa(e, t) {
3304
3304
  const r = te(e);
3305
- if (bt(e))
3305
+ if (yt(e))
3306
3306
  return r;
3307
3307
  if (!de(e)) {
3308
3308
  let a = we(e);
3309
- for (; a && !Le(a); ) {
3309
+ for (; a && !$e(a); ) {
3310
3310
  if (ne(a) && !Pt(a))
3311
3311
  return a;
3312
3312
  a = we(a);
@@ -3314,14 +3314,14 @@ function ga(e, t) {
3314
3314
  return r;
3315
3315
  }
3316
3316
  let n = ln(e, t);
3317
- for (; n && fs(n) && Pt(n); )
3317
+ for (; n && hs(n) && Pt(n); )
3318
3318
  n = ln(n, t);
3319
- return n && Le(n) && Pt(n) && !wr(n) ? r : n || hs(e) || r;
3319
+ return n && $e(n) && Pt(n) && !wr(n) ? r : n || ps(e) || r;
3320
3320
  }
3321
- const Cs = async function(e) {
3322
- const t = this.getOffsetParent || ga, r = this.getDimensions, n = await r(e.floating);
3321
+ const Ns = async function(e) {
3322
+ const t = this.getOffsetParent || fa, r = this.getDimensions, n = await r(e.floating);
3323
3323
  return {
3324
- reference: Ss(e.reference, await t(e.floating), e.strategy),
3324
+ reference: Cs(e.reference, await t(e.floating), e.strategy),
3325
3325
  floating: {
3326
3326
  x: 0,
3327
3327
  y: 0,
@@ -3330,34 +3330,34 @@ const Cs = async function(e) {
3330
3330
  }
3331
3331
  };
3332
3332
  };
3333
- function Ns(e) {
3333
+ function Rs(e) {
3334
3334
  return ae(e).direction === "rtl";
3335
3335
  }
3336
- const Rs = {
3337
- convertOffsetParentRelativeRectToViewportRelativeRect: bs,
3338
- getDocumentElement: be,
3339
- getClippingRect: Es,
3340
- getOffsetParent: ga,
3341
- getElementRects: Cs,
3342
- getClientRects: vs,
3343
- getDimensions: Ts,
3336
+ const Is = {
3337
+ convertOffsetParentRelativeRectToViewportRelativeRect: vs,
3338
+ getDocumentElement: ye,
3339
+ getClippingRect: Ts,
3340
+ getOffsetParent: fa,
3341
+ getElementRects: Ns,
3342
+ getClientRects: ks,
3343
+ getDimensions: Ss,
3344
3344
  getScale: Ie,
3345
3345
  isElement: ne,
3346
- isRTL: Ns
3347
- }, Is = ms, $s = gs, Ls = ds, As = cs, Os = (e, t, r) => {
3346
+ isRTL: Rs
3347
+ }, Ls = gs, $s = fs, As = us, Os = ds, Bs = (e, t, r) => {
3348
3348
  const n = /* @__PURE__ */ new Map(), a = {
3349
- platform: Rs,
3349
+ platform: Is,
3350
3350
  ...r
3351
3351
  }, o = {
3352
3352
  ...a.platform,
3353
3353
  _c: n
3354
3354
  };
3355
- return ls(e, t, {
3355
+ return cs(e, t, {
3356
3356
  ...a,
3357
3357
  platform: o
3358
3358
  });
3359
3359
  }, cn = ["mousedown", "touchstart"];
3360
- function Bs(e, t, r) {
3360
+ function Ms(e, t, r) {
3361
3361
  const n = T(null);
3362
3362
  return M(() => {
3363
3363
  const a = (o) => {
@@ -3378,7 +3378,7 @@ function Bs(e, t, r) {
3378
3378
  };
3379
3379
  }, [e, r, t]), n;
3380
3380
  }
3381
- function Ms(e, t) {
3381
+ function Vs(e, t) {
3382
3382
  const [r, n] = j(!1), a = T(null), o = T(null), i = X(() => {
3383
3383
  n((l) => (!l && (!a.current || a.current === -1) && (a.current = window.setInterval(o.current, t)), !0));
3384
3384
  }, [t]), s = X(() => {
@@ -3386,42 +3386,42 @@ function Ms(e, t) {
3386
3386
  }, []);
3387
3387
  return M(() => (o.current = e, r && i(), s), [e, r, i, s]), { start: i, stop: s, active: r };
3388
3388
  }
3389
- const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Vs = () => m("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), dn = ({
3389
+ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ds = () => m("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), dn = ({
3390
3390
  mode: e
3391
3391
  }) => m({
3392
3392
  "bg-surface-darker": e === "dark" || e === "system",
3393
3393
  "bg-surface-light": e === "light" || e === "alt-system",
3394
3394
  "dark:bg-surface-light": e === "system",
3395
3395
  "dark:bg-surface-darker": e === "alt-system"
3396
- }), Ds = ({
3396
+ }), Ps = ({
3397
3397
  mode: e
3398
3398
  }) => m({
3399
3399
  "text-copy-light": e === "dark" || e === "system",
3400
3400
  "text-copy-dark": e === "light" || e === "alt-system",
3401
3401
  "dark:text-copy-dark": e === "system",
3402
3402
  "dark:text-copy-light": e === "alt-system"
3403
- }), Ps = () => m("absolute", "size-2", "transform rotate-45"), zs = ({
3403
+ }), zs = () => m("absolute", "size-2", "transform rotate-45"), Us = ({
3404
3404
  mode: e,
3405
3405
  className: t,
3406
3406
  tooltipClassName: r,
3407
3407
  arrowClassName: n
3408
3408
  }) => {
3409
3409
  const a = m("relative inline-block", t), o = m(
3410
- Qi,
3411
- Vs(),
3410
+ es,
3411
+ Ds(),
3412
3412
  dn({ mode: e }),
3413
- Ds({ mode: e }),
3413
+ Ps({ mode: e }),
3414
3414
  r
3415
3415
  ), i = m(
3416
- es,
3417
- Ps(),
3416
+ ts,
3417
+ zs(),
3418
3418
  dn({ mode: e }),
3419
3419
  n
3420
3420
  );
3421
3421
  return { tooltip: o, arrow: i, wrapper: a };
3422
- }, Us = ({ delay: e = 300 }) => ({
3422
+ }, Fs = ({ delay: e = 300 }) => ({
3423
3423
  animation: `av-tooltip-fade-in ${e}ms ease-in-out`
3424
- }), Fs = 5e3, Pe = ({
3424
+ }), Hs = 5e3, Pe = ({
3425
3425
  trigger: e,
3426
3426
  label: t,
3427
3427
  placement: r = "top",
@@ -3431,39 +3431,39 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Vs = (
3431
3431
  tooltipClassName: i,
3432
3432
  arrowClassName: s
3433
3433
  }) => {
3434
- const l = Bs(() => {
3435
- p.stop(), y(!1);
3436
- }), u = T(null), h = T(null), [d, g] = j(!1), [f, y] = j(!1), p = Ms(() => {
3437
- y(!1);
3438
- }, Fs), v = zs({
3434
+ const l = Ms(() => {
3435
+ p.stop(), b(!1);
3436
+ }), u = T(null), h = T(null), [d, g] = j(!1), [f, b] = j(!1), p = Vs(() => {
3437
+ b(!1);
3438
+ }, Hs), v = Us({
3439
3439
  mode: n,
3440
3440
  className: o,
3441
3441
  tooltipClassName: i,
3442
3442
  arrowClassName: s
3443
- }), b = Us({ delay: a }), x = X(async () => {
3444
- var L, B, E, w;
3443
+ }), y = Fs({ delay: a }), x = X(async () => {
3444
+ var $, B, E, w;
3445
3445
  if (l.current && u.current && h.current) {
3446
3446
  const {
3447
3447
  x: R,
3448
3448
  y: S,
3449
3449
  middlewareData: O,
3450
3450
  placement: N
3451
- } = await Os(l.current, u.current, {
3451
+ } = await Bs(l.current, u.current, {
3452
3452
  placement: r,
3453
3453
  middleware: [
3454
- Is(10),
3455
- Ls({
3454
+ Ls(10),
3455
+ As({
3456
3456
  crossAxis: r.includes("-"),
3457
3457
  fallbackAxisSideDirection: "start"
3458
3458
  }),
3459
3459
  $s({ padding: 5 }),
3460
- As({ element: h.current })
3460
+ Os({ element: h.current })
3461
3461
  ]
3462
3462
  });
3463
- (L = u == null ? void 0 : u.current) != null && L.style && Object.assign(u.current.style, {
3463
+ ($ = u == null ? void 0 : u.current) != null && $.style && Object.assign(u.current.style, {
3464
3464
  left: nt(R),
3465
3465
  top: nt(S),
3466
- ...b
3466
+ ...y
3467
3467
  });
3468
3468
  const A = {
3469
3469
  top: "bottom",
@@ -3479,13 +3479,13 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Vs = (
3479
3479
  [A]: "-4px"
3480
3480
  });
3481
3481
  }
3482
- }, [r, b, l]);
3482
+ }, [r, y, l]);
3483
3483
  M(() => {
3484
3484
  (async () => d && await x())();
3485
3485
  }, [x, d]);
3486
3486
  const k = () => {
3487
- g(!1), y(!0), p.start();
3488
- }, $ = () => {
3487
+ g(!1), b(!0), p.start();
3488
+ }, L = () => {
3489
3489
  f || g(!0);
3490
3490
  }, _ = () => {
3491
3491
  f || g(!1);
@@ -3495,7 +3495,7 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Vs = (
3495
3495
  {
3496
3496
  className: v.wrapper,
3497
3497
  ref: l,
3498
- onMouseEnter: $,
3498
+ onMouseEnter: L,
3499
3499
  onMouseLeave: _,
3500
3500
  onClick: k,
3501
3501
  children: [
@@ -3515,7 +3515,7 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Vs = (
3515
3515
  ]
3516
3516
  }
3517
3517
  );
3518
- }, Hs = ({
3518
+ }, Ws = ({
3519
3519
  className: e
3520
3520
  }) => {
3521
3521
  const { state: t, dispatch: r } = W(oe), n = T(null), a = T(!1), o = (i) => {
@@ -3545,7 +3545,7 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Vs = (
3545
3545
  label: "New Chat",
3546
3546
  ref: n,
3547
3547
  onClick: o,
3548
- children: t != null && t.streaming ? /* @__PURE__ */ c(lo, { size: he, monotone: !0 }) : /* @__PURE__ */ c(uo, { size: he })
3548
+ children: t != null && t.streaming ? /* @__PURE__ */ c(co, { size: he, monotone: !0 }) : /* @__PURE__ */ c(mo, { size: he })
3549
3549
  }
3550
3550
  )
3551
3551
  }
@@ -3564,7 +3564,7 @@ try {
3564
3564
  });
3565
3565
  } catch {
3566
3566
  }
3567
- const un = "av-messagebox", mn = "av-panel", gn = "av-button", kt = "icon", fa = "button", ar = "link", Ws = ({
3567
+ const un = "av-messagebox", mn = "av-panel", gn = "av-button", kt = "icon", ha = "button", nr = "link", js = ({
3568
3568
  type: e,
3569
3569
  size: t,
3570
3570
  labelRight: r,
@@ -3574,8 +3574,8 @@ const un = "av-messagebox", mn = "av-panel", gn = "av-button", kt = "icon", fa =
3574
3574
  }) => {
3575
3575
  const i = "max-h-8 py-0 px-2", s = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
3576
3576
  switch (e) {
3577
- case fa:
3578
- case ar:
3577
+ case ha:
3578
+ case nr:
3579
3579
  return m({
3580
3580
  [i]: t === "small",
3581
3581
  [s]: t === "medium",
@@ -3600,7 +3600,7 @@ const un = "av-messagebox", mn = "av-panel", gn = "av-button", kt = "icon", fa =
3600
3600
  "h-12": t === "large" && o && (r || n)
3601
3601
  });
3602
3602
  }
3603
- }, js = ({
3603
+ }, Gs = ({
3604
3604
  type: e,
3605
3605
  size: t,
3606
3606
  labelRight: r,
@@ -3608,10 +3608,10 @@ const un = "av-messagebox", mn = "av-panel", gn = "av-button", kt = "icon", fa =
3608
3608
  }) => {
3609
3609
  const a = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
3610
3610
  switch (e) {
3611
- case fa:
3612
- case ar:
3611
+ case ha:
3612
+ case nr:
3613
3613
  return m({
3614
- "text-center": e === ar,
3614
+ "text-center": e === nr,
3615
3615
  [a]: t === "small",
3616
3616
  [o]: t === "medium",
3617
3617
  [i]: t === "large"
@@ -3623,7 +3623,7 @@ const un = "av-messagebox", mn = "av-panel", gn = "av-button", kt = "icon", fa =
3623
3623
  [i]: t === "large" && (r || n)
3624
3624
  });
3625
3625
  }
3626
- }, Gs = ({
3626
+ }, qs = ({
3627
3627
  mode: e,
3628
3628
  noBackground: t,
3629
3629
  noTruncate: r,
@@ -3659,7 +3659,7 @@ const un = "av-messagebox", mn = "av-panel", gn = "av-button", kt = "icon", fa =
3659
3659
  return m("not-prose text-copy-lighter", {
3660
3660
  truncate: !r
3661
3661
  });
3662
- }, qs = ({
3662
+ }, Ks = ({
3663
3663
  mode: e,
3664
3664
  noBackground: t,
3665
3665
  variant: r
@@ -3689,13 +3689,13 @@ const un = "av-messagebox", mn = "av-panel", gn = "av-button", kt = "icon", fa =
3689
3689
  if (r === "selected")
3690
3690
  return "bg-action-selected-dark";
3691
3691
  }
3692
- }, Ks = ({
3692
+ }, Ys = ({
3693
3693
  radius: e
3694
3694
  }) => m({
3695
3695
  "rounded-full": e === "large",
3696
3696
  "rounded-md": e === "medium",
3697
3697
  "rounded-sm": e === "small"
3698
- }), Ys = ({
3698
+ }), Js = ({
3699
3699
  mode: e,
3700
3700
  disabled: t,
3701
3701
  variant: r
@@ -3725,7 +3725,7 @@ const un = "av-messagebox", mn = "av-panel", gn = "av-button", kt = "icon", fa =
3725
3725
  });
3726
3726
  if (r === "selected")
3727
3727
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
3728
- }, Js = ({
3728
+ }, Zs = ({
3729
3729
  mode: e,
3730
3730
  disabled: t,
3731
3731
  variant: r
@@ -3755,7 +3755,7 @@ const un = "av-messagebox", mn = "av-panel", gn = "av-button", kt = "icon", fa =
3755
3755
  });
3756
3756
  if (r === "selected")
3757
3757
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
3758
- }, Zs = ({
3758
+ }, Xs = ({
3759
3759
  mode: e,
3760
3760
  noBorder: t,
3761
3761
  variant: r
@@ -3785,14 +3785,14 @@ const un = "av-messagebox", mn = "av-panel", gn = "av-button", kt = "icon", fa =
3785
3785
  });
3786
3786
  if (r === "selected")
3787
3787
  return "border border-border-selected-dark";
3788
- }, Xs = ({
3788
+ }, Qs = ({
3789
3789
  focusMode: e
3790
3790
  }) => m("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
3791
3791
  "focus:outline-focus-dark": e === "dark",
3792
3792
  "focus:outline-focus-light": e === "light",
3793
3793
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
3794
3794
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
3795
- }), Qs = ({
3795
+ }), el = ({
3796
3796
  mode: e,
3797
3797
  raw: t,
3798
3798
  iconClassName: r
@@ -3804,11 +3804,11 @@ const un = "av-messagebox", mn = "av-panel", gn = "av-button", kt = "icon", fa =
3804
3804
  "dark:text-copy-accent-dark": e === "system"
3805
3805
  },
3806
3806
  r
3807
- ), el = ({
3807
+ ), tl = ({
3808
3808
  animated: e
3809
3809
  }) => m({
3810
3810
  "transition-opacity duration-300 ease-in": e
3811
- }), tl = ({
3811
+ }), rl = ({
3812
3812
  type: e,
3813
3813
  className: t,
3814
3814
  raw: r,
@@ -3823,32 +3823,32 @@ const un = "av-messagebox", mn = "av-panel", gn = "av-button", kt = "icon", fa =
3823
3823
  noBackground: d,
3824
3824
  variant: g,
3825
3825
  noTruncate: f,
3826
- align: y,
3826
+ align: b,
3827
3827
  radius: p,
3828
3828
  animated: v
3829
3829
  }) => (g || (g = "primary"), r ? m(gn, t) : m(
3830
3830
  gn,
3831
- Gs({
3831
+ qs({
3832
3832
  mode: n,
3833
3833
  variant: g,
3834
3834
  noBackground: d,
3835
3835
  noTruncate: f
3836
3836
  }),
3837
- qs({ mode: n, noBackground: d, variant: g }),
3838
- Ks({ radius: p }),
3839
- Ws({
3837
+ Ks({ mode: n, noBackground: d, variant: g }),
3838
+ Ys({ radius: p }),
3839
+ js({
3840
3840
  type: e,
3841
3841
  size: s,
3842
3842
  labelRight: u,
3843
3843
  labelLeft: h,
3844
- align: y,
3844
+ align: b,
3845
3845
  animated: v
3846
3846
  }),
3847
- js({ type: e, size: s, labelRight: u, labelLeft: h }),
3848
- Zs({ mode: n, variant: g, noBorder: l }),
3849
- Xs({ focusMode: a }),
3850
- Ys({ mode: n, variant: g, disabled: o }),
3847
+ Gs({ type: e, size: s, labelRight: u, labelLeft: h }),
3848
+ Xs({ mode: n, variant: g, noBorder: l }),
3849
+ Qs({ focusMode: a }),
3851
3850
  Js({ mode: n, variant: g, disabled: o }),
3851
+ Zs({ mode: n, variant: g, disabled: o }),
3852
3852
  {
3853
3853
  "w-full": i,
3854
3854
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -3857,30 +3857,30 @@ const un = "av-messagebox", mn = "av-panel", gn = "av-button", kt = "icon", fa =
3857
3857
  "transition-[width] duration-300 ease-in-out": e === kt && v
3858
3858
  }),
3859
3859
  t
3860
- )), rl = (e, t, r) => {
3860
+ )), nl = (e, t, r) => {
3861
3861
  var n;
3862
3862
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
3863
- }, ha = F.forwardRef((e, t) => {
3863
+ }, pa = U.forwardRef((e, t) => {
3864
3864
  const { onClick: r, noInternalClick: n = !1, ...a } = e;
3865
3865
  return /* @__PURE__ */ c(
3866
3866
  "button",
3867
3867
  {
3868
3868
  ref: t,
3869
3869
  onClick: (o) => {
3870
- rl(o, n, r);
3870
+ nl(o, n, r);
3871
3871
  },
3872
3872
  ...a
3873
3873
  }
3874
3874
  );
3875
3875
  });
3876
- ha.displayName = "BaseButton";
3877
- function nl() {
3876
+ pa.displayName = "BaseButton";
3877
+ function al() {
3878
3878
  const e = T(!1);
3879
3879
  return M(() => (e.current = !0, () => {
3880
3880
  e.current = !1;
3881
3881
  }), []), X(() => e.current, []);
3882
3882
  }
3883
- function al(e) {
3883
+ function ol(e) {
3884
3884
  return ue(() => e.every((t) => t == null) ? () => {
3885
3885
  } : (t) => {
3886
3886
  e.forEach((r) => {
@@ -3888,7 +3888,7 @@ function al(e) {
3888
3888
  });
3889
3889
  }, e);
3890
3890
  }
3891
- const ol = {
3891
+ const il = {
3892
3892
  x: 0,
3893
3893
  y: 0,
3894
3894
  width: 0,
@@ -3899,7 +3899,7 @@ const ol = {
3899
3899
  right: 0
3900
3900
  };
3901
3901
  function zt(e) {
3902
- const t = nl(), r = T(0), n = T(null), [a, o] = j(ol), i = ue(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
3902
+ const t = al(), r = T(0), n = T(null), [a, o] = j(il), i = ue(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
3903
3903
  const l = s[0];
3904
3904
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
3905
3905
  n.current && t() && o(l.contentRect);
@@ -3909,21 +3909,21 @@ function zt(e) {
3909
3909
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
3910
3910
  }), [i, e]), [n, a];
3911
3911
  }
3912
- const il = {
3912
+ const sl = {
3913
3913
  small: 24,
3914
3914
  // w-6
3915
3915
  medium: 32,
3916
3916
  // w-8
3917
3917
  large: 48
3918
3918
  // w-12
3919
- }, sl = {
3919
+ }, ll = {
3920
3920
  small: 8 * 2,
3921
3921
  // px-2 x 2
3922
3922
  medium: 12 * 2,
3923
3923
  // px-3 x 2
3924
3924
  large: 16 * 2
3925
3925
  // px-4 x 2
3926
- }, ll = 2, Er = F.forwardRef(
3926
+ }, cl = 2, Er = U.forwardRef(
3927
3927
  ({
3928
3928
  children: e,
3929
3929
  disabled: t = !1,
@@ -3939,15 +3939,15 @@ const il = {
3939
3939
  size: d = "medium",
3940
3940
  labelRight: g,
3941
3941
  labelLeft: f,
3942
- noBackground: y = !1,
3942
+ noBackground: b = !1,
3943
3943
  align: p = "center",
3944
3944
  radius: v = "large",
3945
- variant: b = "primary",
3945
+ variant: y = "primary",
3946
3946
  iconClassName: x,
3947
3947
  animated: k = !1,
3948
- ...$
3948
+ ...L
3949
3949
  }, _) => {
3950
- const L = tl({
3950
+ const $ = rl({
3951
3951
  type: kt,
3952
3952
  mode: r,
3953
3953
  focusMode: n,
@@ -3959,16 +3959,16 @@ const il = {
3959
3959
  size: d,
3960
3960
  labelRight: g,
3961
3961
  labelLeft: f,
3962
- noBackground: y,
3962
+ noBackground: b,
3963
3963
  align: p,
3964
3964
  radius: v,
3965
- variant: b,
3965
+ variant: y,
3966
3966
  animated: k
3967
- }), B = Qs({ mode: r, raw: s, iconClassName: x }), E = el({ animated: k }), [w, R] = zt(), [S, O] = zt(), [N, A] = zt(), D = T(0), C = T(null), U = al([_, C]);
3967
+ }), B = el({ mode: r, raw: s, iconClassName: x }), E = tl({ animated: k }), [w, R] = zt(), [S, O] = zt(), [N, A] = zt(), D = T(0), C = T(null), F = ol([_, C]);
3968
3968
  return pe(() => {
3969
- N && N.current && k && (D.current = A.width + sl[d] + (l ? 0 : ll));
3969
+ N && N.current && k && (D.current = A.width + ll[d] + (l ? 0 : cl));
3970
3970
  }, [A, N, d, l, k]), pe(() => {
3971
- C && C.current && k && (g && w && R.width > 0 ? (w.current && (w.current.style.opacity = "100"), C.current.style.width = `${R.width + D.current}px`) : f && O.width > 0 ? (S.current && (S.current.style.opacity = "100"), C.current.style.width = `${O.width + D.current}px`) : (w.current && (w.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), C.current.style.width = `${il[d]}px`));
3971
+ C && C.current && k && (g && w && R.width > 0 ? (w.current && (w.current.style.opacity = "100"), C.current.style.width = `${R.width + D.current}px`) : f && O.width > 0 ? (S.current && (S.current.style.opacity = "100"), C.current.style.width = `${O.width + D.current}px`) : (w.current && (w.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), C.current.style.width = `${sl[d]}px`));
3972
3972
  }, [
3973
3973
  R,
3974
3974
  g,
@@ -3979,14 +3979,14 @@ const il = {
3979
3979
  d,
3980
3980
  k
3981
3981
  ]), /* @__PURE__ */ I(
3982
- ha,
3982
+ pa,
3983
3983
  {
3984
- ref: U,
3985
- className: L,
3984
+ ref: F,
3985
+ className: $,
3986
3986
  disabled: t,
3987
3987
  type: i,
3988
3988
  "aria-label": u || h,
3989
- ...$,
3989
+ ...L,
3990
3990
  children: [
3991
3991
  /* @__PURE__ */ c(
3992
3992
  fn,
@@ -4031,7 +4031,7 @@ try {
4031
4031
  });
4032
4032
  } catch {
4033
4033
  }
4034
- const cl = F.forwardRef(
4034
+ const dl = U.forwardRef(
4035
4035
  ({
4036
4036
  children: e,
4037
4037
  mode: t = "system",
@@ -4069,8 +4069,8 @@ const cl = F.forwardRef(
4069
4069
  ) });
4070
4070
  }
4071
4071
  );
4072
- cl.displayName = "ButtonSort";
4073
- const dl = ({
4072
+ dl.displayName = "ButtonSort";
4073
+ const ul = ({
4074
4074
  children: e,
4075
4075
  fill: t,
4076
4076
  viewBox: r,
@@ -4113,14 +4113,14 @@ try {
4113
4113
  });
4114
4114
  } catch {
4115
4115
  }
4116
- const ul = ({
4116
+ const ml = ({
4117
4117
  className: e,
4118
4118
  viewBox: t,
4119
4119
  title: r,
4120
4120
  monotone: n,
4121
4121
  ...a
4122
4122
  }) => /* @__PURE__ */ c(
4123
- dl,
4123
+ ul,
4124
4124
  {
4125
4125
  defaultViewBox: "0 0 384 512",
4126
4126
  size: "size-5",
@@ -4150,8 +4150,8 @@ try {
4150
4150
  });
4151
4151
  } catch {
4152
4152
  }
4153
- const pa = J.createContext(null);
4154
- function ml({
4153
+ const ba = J.createContext(null);
4154
+ function gl({
4155
4155
  initialOpen: e = !1,
4156
4156
  open: t,
4157
4157
  onOpenChange: r
@@ -4159,12 +4159,12 @@ function ml({
4159
4159
  const [n, a] = J.useState(e), [o, i] = J.useState(), [s, l] = J.useState(), u = t ?? n, h = r ?? a, d = $n({
4160
4160
  open: u,
4161
4161
  onOpenChange: h
4162
- }), g = d.context, f = Ln(g, {
4162
+ }), g = d.context, f = An(g, {
4163
4163
  enabled: t == null
4164
- }), y = An(g, {
4164
+ }), b = On(g, {
4165
4165
  outsidePress: !1,
4166
4166
  outsidePressEvent: "mousedown"
4167
- }), p = On(g), v = Bn([f, y, p]);
4167
+ }), p = Bn(g), v = Mn([f, b, p]);
4168
4168
  return J.useMemo(
4169
4169
  () => ({
4170
4170
  open: u,
@@ -4180,19 +4180,19 @@ function ml({
4180
4180
  );
4181
4181
  }
4182
4182
  const wt = () => {
4183
- const e = J.useContext(pa);
4183
+ const e = J.useContext(ba);
4184
4184
  if (e == null)
4185
4185
  throw new Error("Modal components must be wrapped in <Modal />");
4186
4186
  return e;
4187
4187
  };
4188
- function gl({
4188
+ function fl({
4189
4189
  children: e,
4190
4190
  ...t
4191
4191
  }) {
4192
- const r = ml(t);
4193
- return /* @__PURE__ */ c(pa.Provider, { value: r, children: e });
4192
+ const r = gl(t);
4193
+ return /* @__PURE__ */ c(ba.Provider, { value: r, children: e });
4194
4194
  }
4195
- const fl = J.forwardRef(function(e, t) {
4195
+ const hl = J.forwardRef(function(e, t) {
4196
4196
  const { context: r, ...n } = wt(), a = ur([n.refs.setFloating, t]);
4197
4197
  if (!r.open)
4198
4198
  return null;
@@ -4200,7 +4200,7 @@ const fl = J.forwardRef(function(e, t) {
4200
4200
  [`${o}`]: o,
4201
4201
  "bg-black sm:bg-black/[.8]": !o
4202
4202
  });
4203
- return /* @__PURE__ */ c(Rn, { children: /* @__PURE__ */ c(Ja, { className: s, lockScroll: !0, children: /* @__PURE__ */ c(In, { context: r, children: /* @__PURE__ */ c(
4203
+ return /* @__PURE__ */ c(In, { children: /* @__PURE__ */ c(Za, { className: s, lockScroll: !0, children: /* @__PURE__ */ c(Ln, { context: r, children: /* @__PURE__ */ c(
4204
4204
  "div",
4205
4205
  {
4206
4206
  ref: a,
@@ -4210,10 +4210,10 @@ const fl = J.forwardRef(function(e, t) {
4210
4210
  children: i.children
4211
4211
  }
4212
4212
  ) }) }) });
4213
- }), hl = J.forwardRef(function({ children: e, ...t }, r) {
4213
+ }), pl = J.forwardRef(function({ children: e, ...t }, r) {
4214
4214
  const { setLabelId: n } = wt(), a = dr();
4215
4215
  return J.useLayoutEffect(() => (n(a), () => n(void 0)), [a, n]), /* @__PURE__ */ c("h1", { ...t, ref: r, id: a, children: e });
4216
- }), pl = J.forwardRef(function({ children: e, ...t }, r) {
4216
+ }), bl = J.forwardRef(function({ children: e, ...t }, r) {
4217
4217
  const { setDescriptionId: n } = wt(), a = dr();
4218
4218
  return J.useLayoutEffect(() => (n(a), () => n(void 0)), [a, n]), /* @__PURE__ */ c("div", { ...t, ref: r, id: a, children: e });
4219
4219
  }), yl = J.forwardRef(function(e, t) {
@@ -4237,7 +4237,7 @@ try {
4237
4237
  });
4238
4238
  } catch {
4239
4239
  }
4240
- const He = "panel", at = "messagebox", bl = ({
4240
+ const He = "panel", at = "messagebox", vl = ({
4241
4241
  className: e,
4242
4242
  kind: t,
4243
4243
  borderMode: r
@@ -4257,7 +4257,7 @@ const He = "panel", at = "messagebox", bl = ({
4257
4257
  footer: "flex flex-grow flex-col sm:p-4 p-2",
4258
4258
  header: "sm:p-4 mb-0 p-2",
4259
4259
  close: "sm:p-4 p-2"
4260
- }), vl = ({
4260
+ }), kl = ({
4261
4261
  open: e,
4262
4262
  onOpenChange: t,
4263
4263
  title: r,
@@ -4267,10 +4267,10 @@ const He = "panel", at = "messagebox", bl = ({
4267
4267
  kind: i = He,
4268
4268
  className: s
4269
4269
  }) => {
4270
- const l = T(""), u = bl({ className: s, kind: i, borderMode: o });
4270
+ const l = T(""), u = vl({ className: s, kind: i, borderMode: o });
4271
4271
  return M(() => (e && (l.current = document.title, document.title = `${r} | ${l.current}`), () => {
4272
4272
  e && (document.title = l.current);
4273
- }), [r, e]), /* @__PURE__ */ c(_e, { children: e && /* @__PURE__ */ c(gl, { open: e, onOpenChange: t, children: /* @__PURE__ */ I(fl, { className: u.main, children: [
4273
+ }), [r, e]), /* @__PURE__ */ c(_e, { children: e && /* @__PURE__ */ c(fl, { open: e, onOpenChange: t, children: /* @__PURE__ */ I(hl, { className: u.main, children: [
4274
4274
  /* @__PURE__ */ I("div", { className: "flex flex-row-reverse items-center justify-between", children: [
4275
4275
  /* @__PURE__ */ c(
4276
4276
  yl,
@@ -4283,30 +4283,30 @@ const He = "panel", at = "messagebox", bl = ({
4283
4283
  focusMode: "light",
4284
4284
  noBorder: !0,
4285
4285
  label: "Close",
4286
- children: /* @__PURE__ */ c(ul, {})
4286
+ children: /* @__PURE__ */ c(ml, {})
4287
4287
  }
4288
4288
  )
4289
4289
  }
4290
4290
  ),
4291
- /* @__PURE__ */ c(hl, { className: u.header, children: r })
4291
+ /* @__PURE__ */ c(pl, { className: u.header, children: r })
4292
4292
  ] }),
4293
- /* @__PURE__ */ c(pl, { className: u.content, children: n }),
4293
+ /* @__PURE__ */ c(bl, { className: u.content, children: n }),
4294
4294
  a && /* @__PURE__ */ c("div", { className: u.footer, children: a })
4295
4295
  ] }) }) });
4296
- }, kl = ({
4296
+ }, wl = ({
4297
4297
  showConfirmation: e,
4298
4298
  setShowConfirmation: t,
4299
4299
  action: r,
4300
4300
  children: n,
4301
4301
  customStrings: a
4302
4302
  }) => /* @__PURE__ */ c(
4303
- vl,
4303
+ kl,
4304
4304
  {
4305
4305
  kind: "messagebox",
4306
4306
  open: e,
4307
4307
  onOpenChange: t,
4308
4308
  title: a.title,
4309
- footer: /* @__PURE__ */ I(La, { columnGap: 2, alignHorizontal: "flex-end", children: [
4309
+ footer: /* @__PURE__ */ I(Aa, { columnGap: 2, alignHorizontal: "flex-end", children: [
4310
4310
  /* @__PURE__ */ c(Mr, { children: /* @__PURE__ */ c(
4311
4311
  Vr,
4312
4312
  {
@@ -4334,11 +4334,11 @@ const He = "panel", at = "messagebox", bl = ({
4334
4334
  ] }),
4335
4335
  children: n
4336
4336
  }
4337
- ), wl = ({
4337
+ ), xl = ({
4338
4338
  className: e
4339
4339
  }) => {
4340
- const { state: t, dispatch: r } = W(oe), [n, a] = j(!1), [o, i] = Gt({
4341
- key: Ht + Aa,
4340
+ const { state: t, dispatch: r } = W(oe), [n, a] = j(!1), [o, i] = jt({
4341
+ key: Ht + Oa,
4342
4342
  initialValue: ""
4343
4343
  }), s = () => {
4344
4344
  r({
@@ -4352,7 +4352,7 @@ const He = "panel", at = "messagebox", bl = ({
4352
4352
  };
4353
4353
  return /* @__PURE__ */ I(_e, { children: [
4354
4354
  /* @__PURE__ */ c(
4355
- kl,
4355
+ wl,
4356
4356
  {
4357
4357
  showConfirmation: n,
4358
4358
  setShowConfirmation: a,
@@ -4387,13 +4387,13 @@ const He = "panel", at = "messagebox", bl = ({
4387
4387
  variant: t != null && t.private ? "danger" : "primary",
4388
4388
  onClick: l,
4389
4389
  className: "text-sm",
4390
- children: t != null && t.private ? /* @__PURE__ */ c(mo, { size: he }) : /* @__PURE__ */ c(fo, { size: he })
4390
+ children: t != null && t.private ? /* @__PURE__ */ c(go, { size: he }) : /* @__PURE__ */ c(ho, { size: he })
4391
4391
  }
4392
4392
  )
4393
4393
  }
4394
4394
  )
4395
4395
  ] });
4396
- }, or = J.createContext({
4396
+ }, ar = J.createContext({
4397
4397
  getItemProps: () => ({}),
4398
4398
  activeIndex: null,
4399
4399
  /* v8 ignore next 2 */
@@ -4413,7 +4413,7 @@ const He = "panel", at = "messagebox", bl = ({
4413
4413
  return t.displayName || t.name || "Component";
4414
4414
  }
4415
4415
  return "Element";
4416
- }, ya = Cn(
4416
+ }, ya = Nn(
4417
4417
  ({
4418
4418
  trigger: e,
4419
4419
  children: t,
@@ -4424,7 +4424,7 @@ const He = "panel", at = "messagebox", bl = ({
4424
4424
  focusMode: i = "system",
4425
4425
  ...s
4426
4426
  }, l) => {
4427
- const [u, h] = j(!1), [d, g] = j(!1), [f, y] = j(null), p = T([]), v = T([]), b = W(or), x = Mn(), k = Za(), $ = Vn(), { floatingStyles: _, refs: L, context: B } = $n({
4427
+ const [u, h] = j(!1), [d, g] = j(!1), [f, b] = j(null), p = T([]), v = T([]), y = W(ar), x = Vn(), k = Xa(), L = Dn(), { floatingStyles: _, refs: $, context: B } = $n({
4428
4428
  nodeId: k,
4429
4429
  open: u,
4430
4430
  onOpenChange: (q) => {
@@ -4432,36 +4432,36 @@ const He = "panel", at = "messagebox", bl = ({
4432
4432
  },
4433
4433
  placement: n,
4434
4434
  strategy: "fixed",
4435
- middleware: [Xa({ mainAxis: 10 }), Qa(), eo()],
4436
- whileElementsMounted: to
4437
- }), E = Ln(B, {
4435
+ middleware: [Qa({ mainAxis: 10 }), eo(), to()],
4436
+ whileElementsMounted: ro
4437
+ }), E = An(B, {
4438
4438
  event: "mousedown",
4439
4439
  toggle: !0,
4440
4440
  ignoreMouse: !1
4441
- }), w = On(B, { role: "menu" }), R = An(B, { bubbles: !0 }), S = ro(B, {
4441
+ }), w = Bn(B, { role: "menu" }), R = On(B, { bubbles: !0 }), S = no(B, {
4442
4442
  listRef: p,
4443
4443
  activeIndex: f,
4444
4444
  nested: !1,
4445
- onNavigate: y,
4445
+ onNavigate: b,
4446
4446
  loop: !0
4447
- }), O = no(B, {
4447
+ }), O = ao(B, {
4448
4448
  listRef: v,
4449
- onMatch: u ? y : void 0,
4449
+ onMatch: u ? b : void 0,
4450
4450
  activeIndex: f
4451
- }), { getReferenceProps: N, getFloatingProps: A, getItemProps: D } = Bn([E, w, R, S, O]), C = hn(e) === "Button" || hn(e) === "ButtonIcon", U = C ? {
4451
+ }), { getReferenceProps: N, getFloatingProps: A, getItemProps: D } = Mn([E, w, R, S, O]), C = hn(e) === "Button" || hn(e) === "ButtonIcon", F = C ? {
4452
4452
  noInternalClick: C,
4453
4453
  focusMode: i,
4454
4454
  mode: o
4455
- } : {}, G = F.cloneElement(
4455
+ } : {}, G = U.cloneElement(
4456
4456
  e,
4457
4457
  {
4458
- ...U,
4458
+ ...F,
4459
4459
  "aria-label": r,
4460
4460
  "data-open": u ? "" : void 0,
4461
4461
  "data-focus-inside": d ? "" : void 0,
4462
- ref: ur([L.setReference, $.ref, l]),
4462
+ ref: ur([$.setReference, L.ref, l]),
4463
4463
  ...N(
4464
- b.getItemProps({
4464
+ y.getItemProps({
4465
4465
  ...s
4466
4466
  })
4467
4467
  )
@@ -4478,20 +4478,20 @@ const He = "panel", at = "messagebox", bl = ({
4478
4478
  };
4479
4479
  }, [x, a]), M(() => {
4480
4480
  u && x && x.events.emit("menuopen", { nodeId: k });
4481
- }, [x, u, k]), /* @__PURE__ */ I(ao, { id: k, children: [
4481
+ }, [x, u, k]), /* @__PURE__ */ I(oo, { id: k, children: [
4482
4482
  G,
4483
4483
  /* @__PURE__ */ c(
4484
- or.Provider,
4484
+ ar.Provider,
4485
4485
  {
4486
4486
  value: {
4487
4487
  activeIndex: f,
4488
- setActiveIndex: y,
4488
+ setActiveIndex: b,
4489
4489
  getItemProps: D,
4490
4490
  setHasFocusInside: g,
4491
4491
  isOpen: u
4492
4492
  },
4493
- children: /* @__PURE__ */ c(oo, { elementsRef: p, labelsRef: v, children: u && /* @__PURE__ */ c(Rn, { children: /* @__PURE__ */ c(
4494
- In,
4493
+ children: /* @__PURE__ */ c(io, { elementsRef: p, labelsRef: v, children: u && /* @__PURE__ */ c(In, { children: /* @__PURE__ */ c(
4494
+ Ln,
4495
4495
  {
4496
4496
  context: B,
4497
4497
  modal: !1,
@@ -4500,7 +4500,7 @@ const He = "panel", at = "messagebox", bl = ({
4500
4500
  children: /* @__PURE__ */ c(
4501
4501
  "div",
4502
4502
  {
4503
- ref: L.setFloating,
4503
+ ref: $.setFloating,
4504
4504
  className: "rounded-md bg-surface-light shadow-sm shadow-border-dark outline-none p-4 sm:p-2",
4505
4505
  style: _,
4506
4506
  ...A(),
@@ -4513,7 +4513,7 @@ const He = "panel", at = "messagebox", bl = ({
4513
4513
  )
4514
4514
  ] });
4515
4515
  }
4516
- ), Tr = Cn((e, t) => /* @__PURE__ */ c(io, { children: /* @__PURE__ */ c(ya, { ...e, ref: t }) }));
4516
+ ), Tr = Nn((e, t) => /* @__PURE__ */ c(so, { children: /* @__PURE__ */ c(ya, { ...e, ref: t }) }));
4517
4517
  Tr.displayName = "Menu";
4518
4518
  ya.displayName = "MenuComponent";
4519
4519
  const ct = J.forwardRef(
@@ -4528,7 +4528,7 @@ const ct = J.forwardRef(
4528
4528
  ...s
4529
4529
  }, l) => {
4530
4530
  let u = "";
4531
- const h = J.useContext(or), d = Vn({ label: t ? null : e }), g = Mn(), f = ur([d.ref, l]);
4531
+ const h = J.useContext(ar), d = Dn({ label: t ? null : e }), g = Vn(), f = ur([d.ref, l]);
4532
4532
  if (n && a)
4533
4533
  return /* @__PURE__ */ c(
4534
4534
  "div",
@@ -4544,7 +4544,7 @@ const ct = J.forwardRef(
4544
4544
  }
4545
4545
  );
4546
4546
  r && (u = "pl-2");
4547
- const y = m(
4547
+ const b = m(
4548
4548
  "m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1 flex w-full rounded-md border border-transparent text-left text-base outline-none focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline disabled:cursor-not-allowed disabled:text-copy-medium",
4549
4549
  {
4550
4550
  "bg-surface-medium text-copy-lighter font-bold": !t && i,
@@ -4558,7 +4558,7 @@ const ct = J.forwardRef(
4558
4558
  ...s,
4559
4559
  ref: f,
4560
4560
  role: "menuitem",
4561
- className: y,
4561
+ className: b,
4562
4562
  tabIndex: 0,
4563
4563
  disabled: t,
4564
4564
  ...h.getItemProps({
@@ -4580,10 +4580,10 @@ const ct = J.forwardRef(
4580
4580
  }
4581
4581
  );
4582
4582
  ct.displayName = "MenuItem";
4583
- const Jc = ({ className: e, ...t }) => {
4583
+ const Zc = ({ className: e, ...t }) => {
4584
4584
  const r = m(e, "my-1 border-t border-border-medium");
4585
4585
  return /* @__PURE__ */ c("div", { className: r, ...t });
4586
- }, ba = ({
4586
+ }, va = ({
4587
4587
  className: e,
4588
4588
  ...t
4589
4589
  }) => {
@@ -4606,12 +4606,12 @@ try {
4606
4606
  });
4607
4607
  } catch {
4608
4608
  }
4609
- const xl = (e) => {
4609
+ const _l = (e) => {
4610
4610
  for (let t = 0; t < e.length; t++)
4611
4611
  if (e[t].enabled)
4612
4612
  return !0;
4613
4613
  return !1;
4614
- }, _l = ({
4614
+ }, El = ({
4615
4615
  className: e,
4616
4616
  defaultPlacement: t = "top-start"
4617
4617
  }) => {
@@ -4619,7 +4619,7 @@ const xl = (e) => {
4619
4619
  data: i,
4620
4620
  error: s,
4621
4621
  isLoading: l
4622
- } = br({
4622
+ } = yr({
4623
4623
  keys: [o == null ? void 0 : o.username],
4624
4624
  getAccessToken: a
4625
4625
  }), u = (h, d, g) => {
@@ -4629,13 +4629,13 @@ const xl = (e) => {
4629
4629
  private: !0
4630
4630
  }
4631
4631
  }), n({
4632
- type: Sn,
4632
+ type: Cn,
4633
4633
  payload: {
4634
4634
  prompt: d
4635
4635
  }
4636
4636
  });
4637
4637
  };
4638
- return s || l ? null : i && i.tags && xl(i.tags) && /* @__PURE__ */ c(
4638
+ return s || l ? null : i && i.tags && _l(i.tags) && /* @__PURE__ */ c(
4639
4639
  Pe,
4640
4640
  {
4641
4641
  label: "Custom Prompts",
@@ -4646,10 +4646,10 @@ const xl = (e) => {
4646
4646
  {
4647
4647
  mode: "dark",
4648
4648
  focusMode: "light",
4649
- trigger: /* @__PURE__ */ c(Oe, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ c(so, { size: he }) }),
4649
+ trigger: /* @__PURE__ */ c(Oe, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ c(lo, { size: he }) }),
4650
4650
  defaultPlacement: t,
4651
4651
  children: [
4652
- /* @__PURE__ */ c(ba, { children: "Prompts" }),
4652
+ /* @__PURE__ */ c(va, { children: "Prompts" }),
4653
4653
  i && i.tags && i.tags.map((h) => h.enabled && h.label && h.content && /* @__PURE__ */ c(
4654
4654
  ct,
4655
4655
  {
@@ -4667,10 +4667,10 @@ const xl = (e) => {
4667
4667
  )
4668
4668
  }
4669
4669
  );
4670
- }, El = ({
4670
+ }, Tl = ({
4671
4671
  className: e
4672
4672
  }) => {
4673
- const { user: t, getAccessToken: r } = Be(), { state: n } = W(oe), { state: a } = W(ta), [o, i] = j(!1), { mutate: s } = Ki({
4673
+ const { user: t, getAccessToken: r } = Be(), { state: n } = W(oe), { state: a } = W(ra), [o, i] = j(!1), { mutate: s } = Yi({
4674
4674
  keys: [
4675
4675
  t == null ? void 0 : t.username,
4676
4676
  a.searchString,
@@ -4681,7 +4681,7 @@ const xl = (e) => {
4681
4681
  }), l = async (u) => {
4682
4682
  u.preventDefault();
4683
4683
  try {
4684
- n && (await yr({
4684
+ n && (await br({
4685
4685
  accessToken: await r(),
4686
4686
  type: Ve.SAVE_CHAT,
4687
4687
  params: {
@@ -4712,16 +4712,16 @@ const xl = (e) => {
4712
4712
  focusMode: "light",
4713
4713
  label: "Save Private Chat",
4714
4714
  onClick: l,
4715
- children: /* @__PURE__ */ c(co, { size: he, monotone: !0 })
4715
+ children: /* @__PURE__ */ c(uo, { size: he, monotone: !0 })
4716
4716
  }
4717
4717
  )
4718
4718
  }
4719
4719
  );
4720
- }, Tl = ({ show: e }) => e ? /* @__PURE__ */ c(
4720
+ }, Sl = ({ show: e }) => e ? /* @__PURE__ */ c(
4721
4721
  "div",
4722
4722
  {
4723
4723
  className: m(
4724
- Xi,
4724
+ Qi,
4725
4725
  "bottom-44 fixed left-1/2 transform -translate-x-1/2"
4726
4726
  ),
4727
4727
  children: /* @__PURE__ */ c(
@@ -4747,7 +4747,7 @@ const xl = (e) => {
4747
4747
  }
4748
4748
  )
4749
4749
  }
4750
- ) : null, Sl = ({
4750
+ ) : null, Cl = ({
4751
4751
  className: e
4752
4752
  }) => {
4753
4753
  const { state: t } = W(oe);
@@ -4768,12 +4768,12 @@ const xl = (e) => {
4768
4768
  type: "submit",
4769
4769
  mode: "light",
4770
4770
  focusMode: "light",
4771
- children: /* @__PURE__ */ c(go, { size: he })
4771
+ children: /* @__PURE__ */ c(fo, { size: he })
4772
4772
  }
4773
4773
  )
4774
4774
  }
4775
4775
  );
4776
- }, Cl = ({
4776
+ }, Nl = ({
4777
4777
  className: e
4778
4778
  }) => {
4779
4779
  const { state: t, dispatch: r } = W(oe), { getAccessToken: n, user: a } = Be(), {
@@ -4781,12 +4781,12 @@ const xl = (e) => {
4781
4781
  error: i,
4782
4782
  isLoading: s,
4783
4783
  mutate: l
4784
- } = br({
4784
+ } = yr({
4785
4785
  keys: [a == null ? void 0 : a.username],
4786
4786
  getAccessToken: n
4787
4787
  }), u = async (h) => {
4788
4788
  try {
4789
- await yr({
4789
+ await br({
4790
4790
  accessToken: await n(),
4791
4791
  type: Ve.SET_USER_PREFERENCES,
4792
4792
  params: {
@@ -4816,7 +4816,7 @@ const xl = (e) => {
4816
4816
  trigger: /* @__PURE__ */ c(Oe, { noBorder: !0, label: "Engines", children: o && o.engine === Ct ? /* @__PURE__ */ c(Fr, { size: he }) : /* @__PURE__ */ c(Hr, { size: he }) }),
4817
4817
  defaultPlacement: "top-start",
4818
4818
  children: [
4819
- /* @__PURE__ */ c(ba, { children: "Engines" }),
4819
+ /* @__PURE__ */ c(va, { children: "Engines" }),
4820
4820
  /* @__PURE__ */ c(
4821
4821
  ct,
4822
4822
  {
@@ -4840,9 +4840,9 @@ const xl = (e) => {
4840
4840
  )
4841
4841
  }
4842
4842
  );
4843
- }, Nl = () => m(
4843
+ }, Rl = () => m(
4844
4844
  "relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
4845
- ), pn = () => m("bg-surface-darker"), Rl = () => m("text-copy-lighter caret-copy-light"), Il = () => m(
4845
+ ), pn = () => m("bg-surface-darker"), Il = () => m("text-copy-lighter caret-copy-light"), Ll = () => m(
4846
4846
  "has-[.av-prompt-editable:focus]:outline",
4847
4847
  "has-[.av-prompt-editable:focus]:outline-2",
4848
4848
  "has-[.av-prompt-editable:focus]:outline-offset-2",
@@ -4851,16 +4851,16 @@ const xl = (e) => {
4851
4851
  "peer",
4852
4852
  "text-base resize-none overflow-hidden w-full text-inherit outline-none",
4853
4853
  "h-6 pr-2 pl-4"
4854
- ), Ll = ({ className: e }) => {
4854
+ ), Al = ({ className: e }) => {
4855
4855
  const t = m(
4856
- Oa,
4857
- Nl(),
4858
- pn(),
4856
+ Ba,
4859
4857
  Rl(),
4858
+ pn(),
4860
4859
  Il(),
4860
+ Ll(),
4861
4861
  e
4862
4862
  ), r = m(
4863
- Ba,
4863
+ Ma,
4864
4864
  $l(),
4865
4865
  pn()
4866
4866
  );
@@ -4868,7 +4868,7 @@ const xl = (e) => {
4868
4868
  wrapper: t,
4869
4869
  textArea: r
4870
4870
  };
4871
- }, ot = 24, Al = ({
4871
+ }, ot = 24, Ol = ({
4872
4872
  className: e,
4873
4873
  label: t,
4874
4874
  value: r,
@@ -4878,9 +4878,9 @@ const xl = (e) => {
4878
4878
  ref: i,
4879
4879
  ...s
4880
4880
  }) => {
4881
- const l = T(ot), u = T(1), d = 5 * ot, { state: g } = W(oe), { state: f } = W(pt), y = T(null), p = T(null), v = To([i, p]), b = Co(), { width: x } = No(), k = Ll({
4881
+ const l = T(ot), u = T(1), d = 5 * ot, { state: g } = W(oe), { state: f } = W(pt), b = T(null), p = T(null), v = So([i, p]), y = No(), { width: x } = Ro(), k = Al({
4882
4882
  className: e
4883
- }), [$, _] = So({
4883
+ }), [L, _] = Co({
4884
4884
  value: r,
4885
4885
  initialControlledDelay: 20,
4886
4886
  defaultValue: n,
@@ -4891,7 +4891,7 @@ const xl = (e) => {
4891
4891
  }
4892
4892
  });
4893
4893
  }
4894
- }), L = X(() => {
4894
+ }), $ = X(() => {
4895
4895
  if (!p.current)
4896
4896
  return;
4897
4897
  p.current.style.height = "auto";
@@ -4902,26 +4902,26 @@ const xl = (e) => {
4902
4902
  }
4903
4903
  p.current.style.height = `${w}px`, p.current.style.overflowY = "hidden";
4904
4904
  }, [d]), B = (w) => {
4905
- p.current && (p.current.style.height = `${l.current}px`), o(w, $), _("");
4905
+ p.current && (p.current.style.height = `${l.current}px`), o(w, L), _("");
4906
4906
  }, E = (w) => {
4907
- _(w.target.value), L();
4907
+ _(w.target.value), $();
4908
4908
  };
4909
4909
  return M(() => {
4910
4910
  g && g.usage === 0 && g.messages.length === 0 && p.current && (p.current.style.height = `${l.current}px`);
4911
4911
  }, [g]), M(() => {
4912
4912
  f.lastTriggeredTimestamp && setTimeout(() => {
4913
- L();
4913
+ $();
4914
4914
  }, 100);
4915
- }, [f.lastTriggeredTimestamp, L]), M(() => {
4915
+ }, [f.lastTriggeredTimestamp, $]), M(() => {
4916
4916
  x > 640 ? (l.current = ot, u.current = 1) : (l.current = ot * 2, u.current = 2);
4917
4917
  }, [x]), /* @__PURE__ */ c(
4918
4918
  "div",
4919
4919
  {
4920
4920
  className: k.wrapper,
4921
- ref: y,
4921
+ ref: b,
4922
4922
  ...s,
4923
4923
  children: /* @__PURE__ */ I("form", { onSubmit: B, children: [
4924
- /* @__PURE__ */ c("div", { id: b, className: "sr-only", children: t }),
4924
+ /* @__PURE__ */ c("div", { id: y, className: "sr-only", children: t }),
4925
4925
  /* @__PURE__ */ c("div", { className: "relative", children: /* @__PURE__ */ c(
4926
4926
  "textarea",
4927
4927
  {
@@ -4931,45 +4931,45 @@ const xl = (e) => {
4931
4931
  placeholder: "Type your question here.",
4932
4932
  translate: "no",
4933
4933
  onChange: E,
4934
- value: $,
4935
- onKeyDown: vo([["mod+Enter", B]]),
4934
+ value: L,
4935
+ onKeyDown: ko([["mod+Enter", B]]),
4936
4936
  className: k.textArea,
4937
- "aria-labelledby": b
4937
+ "aria-labelledby": y
4938
4938
  }
4939
4939
  ) }),
4940
4940
  /* @__PURE__ */ I("div", { className: "p-2 flex items-center", children: [
4941
- /* @__PURE__ */ c(Sl, { className: "order-6 ml-auto" }),
4942
- /* @__PURE__ */ c(Hs, { className: "order-1 mr-4 sm:mr-2" }),
4943
- /* @__PURE__ */ c(Cl, { className: "order-2 mr-4 sm:mr-2" }),
4944
- /* @__PURE__ */ c(_l, { className: "order-3 mr-4 sm:mr-2" }),
4945
- /* @__PURE__ */ c(wl, { className: "order-4 mr-4 sm:mr-2" }),
4946
- /* @__PURE__ */ c(El, { className: "order-5" })
4941
+ /* @__PURE__ */ c(Cl, { className: "order-6 ml-auto" }),
4942
+ /* @__PURE__ */ c(Ws, { className: "order-1 mr-4 sm:mr-2" }),
4943
+ /* @__PURE__ */ c(Nl, { className: "order-2 mr-4 sm:mr-2" }),
4944
+ /* @__PURE__ */ c(El, { className: "order-3 mr-4 sm:mr-2" }),
4945
+ /* @__PURE__ */ c(xl, { className: "order-4 mr-4 sm:mr-2" }),
4946
+ /* @__PURE__ */ c(Tl, { className: "order-5" })
4947
4947
  ] })
4948
4948
  ] })
4949
4949
  }
4950
4950
  );
4951
- }, ir = (e, t) => {
4951
+ }, or = (e, t) => {
4952
4952
  e({
4953
- type: En,
4953
+ type: Tn,
4954
4954
  payload: {
4955
4955
  streaming: t
4956
4956
  }
4957
4957
  });
4958
- }, yn = (e) => {
4959
- ir(e, !1), e({
4958
+ }, bn = (e) => {
4959
+ or(e, !1), e({
4960
4960
  type: We,
4961
4961
  payload: {
4962
4962
  message: {
4963
- role: cr,
4964
- content: Pa
4963
+ role: lr,
4964
+ content: za
4965
4965
  }
4966
4966
  }
4967
4967
  });
4968
- }, Ol = () => {
4968
+ }, Bl = () => {
4969
4969
  const { state: e, dispatch: t } = W(oe), { state: r, dispatch: n } = W(pt), [a, o] = j(""), { getAccessToken: i, user: s } = Be(), l = T(null), u = T(
4970
4970
  null
4971
4971
  );
4972
- wo([
4972
+ xo([
4973
4973
  [
4974
4974
  "mod+K",
4975
4975
  () => {
@@ -4982,7 +4982,7 @@ const xl = (e) => {
4982
4982
  type: We,
4983
4983
  payload: {
4984
4984
  message: {
4985
- role: Wt,
4985
+ role: cr,
4986
4986
  content: a
4987
4987
  }
4988
4988
  }
@@ -4996,9 +4996,9 @@ const xl = (e) => {
4996
4996
  return;
4997
4997
  }
4998
4998
  const d = e.messages[e.messages.length - 1];
4999
- if (!(e.messages.length === 0 || d.message.role === je || d.message.role === Ma || d.message.role === cr || d.message.role === Va))
4999
+ if (!(e.messages.length === 0 || d.message.role === je || d.message.role === Va || d.message.role === lr || d.message.role === Da))
5000
5000
  try {
5001
- const f = await ji({
5001
+ const f = await Gi({
5002
5002
  accessToken: await i(),
5003
5003
  name: "generate",
5004
5004
  data: {
@@ -5011,21 +5011,21 @@ const xl = (e) => {
5011
5011
  }
5012
5012
  });
5013
5013
  if (f && f.ok) {
5014
- ir(t, !0);
5015
- const y = fr();
5014
+ or(t, !0);
5015
+ const b = fr();
5016
5016
  u.current = f.body.getReader();
5017
5017
  const p = new TextDecoder();
5018
5018
  for (; ; ) {
5019
- const { done: v, value: b } = await u.current.read();
5019
+ const { done: v, value: y } = await u.current.read();
5020
5020
  if (v)
5021
5021
  break;
5022
- const x = p.decode(b, { stream: !0 }), k = x.indexOf(Pr);
5022
+ const x = p.decode(y, { stream: !0 }), k = x.indexOf(Pr);
5023
5023
  if (k !== -1) {
5024
- const $ = x.substring(0, k), _ = JSON.parse(
5024
+ const L = x.substring(0, k), _ = JSON.parse(
5025
5025
  x.substring(k + Pr.length)
5026
5026
  );
5027
5027
  t({
5028
- type: _n,
5028
+ type: En,
5029
5029
  payload: {
5030
5030
  model: _.model,
5031
5031
  usage: _.usage
@@ -5034,9 +5034,9 @@ const xl = (e) => {
5034
5034
  type: We,
5035
5035
  payload: {
5036
5036
  message: {
5037
- content: $,
5037
+ content: L,
5038
5038
  role: je,
5039
- messageId: y,
5039
+ messageId: b,
5040
5040
  processingTime: _.processingTime,
5041
5041
  name: _.name
5042
5042
  }
@@ -5050,16 +5050,16 @@ const xl = (e) => {
5050
5050
  message: {
5051
5051
  content: x,
5052
5052
  role: je,
5053
- messageId: y
5053
+ messageId: b
5054
5054
  }
5055
5055
  }
5056
5056
  });
5057
5057
  }
5058
- ir(t, !1);
5058
+ or(t, !1);
5059
5059
  } else
5060
- yn(t);
5060
+ bn(t);
5061
5061
  } catch (f) {
5062
- console.error(f), yn(t);
5062
+ console.error(f), bn(t);
5063
5063
  }
5064
5064
  })();
5065
5065
  }, [e == null ? void 0 : e.messages]), M(() => {
@@ -5068,7 +5068,7 @@ const xl = (e) => {
5068
5068
  d.indexOf(zr) !== -1 ? navigator.clipboard.readText().then((f) => {
5069
5069
  o(d.replace(zr, f));
5070
5070
  }) : o(d), l.current && l.current.focus(), n({
5071
- type: Tn
5071
+ type: Sn
5072
5072
  });
5073
5073
  }
5074
5074
  }, [r, n]), M(() => {
@@ -5076,16 +5076,16 @@ const xl = (e) => {
5076
5076
  }, [e]), M(() => {
5077
5077
  (e == null ? void 0 : e.streaming) === !1 && l.current && l.current.focus();
5078
5078
  }, [e]), /* @__PURE__ */ c(_e, { children: /* @__PURE__ */ c(
5079
- Al,
5079
+ Ol,
5080
5080
  {
5081
- label: Da,
5081
+ label: Pa,
5082
5082
  onSubmit: h,
5083
5083
  ref: l,
5084
5084
  value: a,
5085
5085
  onChange: (d) => o(d.target.value)
5086
5086
  }
5087
5087
  ) });
5088
- }, Bl = ({ isComponent: e }) => {
5088
+ }, Ml = ({ isComponent: e }) => {
5089
5089
  const { state: t } = W(oe), r = T(!1), n = window.innerWidth < 403, [a, o] = j(
5090
5090
  n ? "bottom-4" : e ? "top-[300px]" : "top-[245px]"
5091
5091
  );
@@ -5098,12 +5098,12 @@ const xl = (e) => {
5098
5098
  {
5099
5099
  className: m(
5100
5100
  "px-2 sm:px-0 md:mx-auto md:max-w-4xl w-full fixed left-1/2 transform -translate-x-1/2",
5101
- Zi,
5101
+ Xi,
5102
5102
  a
5103
5103
  ),
5104
5104
  children: [
5105
- /* @__PURE__ */ c(Ol, {}),
5106
- /* @__PURE__ */ c("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: za })
5105
+ /* @__PURE__ */ c(Bl, {}),
5106
+ /* @__PURE__ */ c("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Ua })
5107
5107
  ]
5108
5108
  }
5109
5109
  );
@@ -5121,7 +5121,7 @@ try {
5121
5121
  });
5122
5122
  } catch {
5123
5123
  }
5124
- const Ml = "av-bubble", bn = "av-button", xt = "icon", va = "button", sr = "link", Vl = ({
5124
+ const Vl = "av-bubble", yn = "av-button", xt = "icon", ka = "button", ir = "link", Dl = ({
5125
5125
  type: e,
5126
5126
  size: t,
5127
5127
  labelRight: r,
@@ -5131,8 +5131,8 @@ const Ml = "av-bubble", bn = "av-button", xt = "icon", va = "button", sr = "link
5131
5131
  }) => {
5132
5132
  const i = "max-h-8 py-0 px-2", s = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
5133
5133
  switch (e) {
5134
- case va:
5135
- case sr:
5134
+ case ka:
5135
+ case ir:
5136
5136
  return m({
5137
5137
  [i]: t === "small",
5138
5138
  [s]: t === "medium",
@@ -5157,7 +5157,7 @@ const Ml = "av-bubble", bn = "av-button", xt = "icon", va = "button", sr = "link
5157
5157
  "h-12": t === "large" && o && (r || n)
5158
5158
  });
5159
5159
  }
5160
- }, Dl = ({
5160
+ }, Pl = ({
5161
5161
  type: e,
5162
5162
  size: t,
5163
5163
  labelRight: r,
@@ -5165,10 +5165,10 @@ const Ml = "av-bubble", bn = "av-button", xt = "icon", va = "button", sr = "link
5165
5165
  }) => {
5166
5166
  const a = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
5167
5167
  switch (e) {
5168
- case va:
5169
- case sr:
5168
+ case ka:
5169
+ case ir:
5170
5170
  return m({
5171
- "text-center": e === sr,
5171
+ "text-center": e === ir,
5172
5172
  [a]: t === "small",
5173
5173
  [o]: t === "medium",
5174
5174
  [i]: t === "large"
@@ -5180,7 +5180,7 @@ const Ml = "av-bubble", bn = "av-button", xt = "icon", va = "button", sr = "link
5180
5180
  [i]: t === "large" && (r || n)
5181
5181
  });
5182
5182
  }
5183
- }, Pl = ({
5183
+ }, zl = ({
5184
5184
  mode: e,
5185
5185
  noBackground: t,
5186
5186
  noTruncate: r,
@@ -5216,7 +5216,7 @@ const Ml = "av-bubble", bn = "av-button", xt = "icon", va = "button", sr = "link
5216
5216
  return m("not-prose text-copy-lighter", {
5217
5217
  truncate: !r
5218
5218
  });
5219
- }, zl = ({
5219
+ }, Ul = ({
5220
5220
  mode: e,
5221
5221
  noBackground: t,
5222
5222
  variant: r
@@ -5246,13 +5246,13 @@ const Ml = "av-bubble", bn = "av-button", xt = "icon", va = "button", sr = "link
5246
5246
  if (r === "selected")
5247
5247
  return "bg-action-selected-dark";
5248
5248
  }
5249
- }, Ul = ({
5249
+ }, Fl = ({
5250
5250
  radius: e
5251
5251
  }) => m({
5252
5252
  "rounded-full": e === "large",
5253
5253
  "rounded-md": e === "medium",
5254
5254
  "rounded-sm": e === "small"
5255
- }), Fl = ({
5255
+ }), Hl = ({
5256
5256
  mode: e,
5257
5257
  disabled: t,
5258
5258
  variant: r
@@ -5282,7 +5282,7 @@ const Ml = "av-bubble", bn = "av-button", xt = "icon", va = "button", sr = "link
5282
5282
  });
5283
5283
  if (r === "selected")
5284
5284
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
5285
- }, Hl = ({
5285
+ }, Wl = ({
5286
5286
  mode: e,
5287
5287
  disabled: t,
5288
5288
  variant: r
@@ -5312,7 +5312,7 @@ const Ml = "av-bubble", bn = "av-button", xt = "icon", va = "button", sr = "link
5312
5312
  });
5313
5313
  if (r === "selected")
5314
5314
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
5315
- }, Wl = ({
5315
+ }, jl = ({
5316
5316
  mode: e,
5317
5317
  noBorder: t,
5318
5318
  variant: r
@@ -5342,14 +5342,14 @@ const Ml = "av-bubble", bn = "av-button", xt = "icon", va = "button", sr = "link
5342
5342
  });
5343
5343
  if (r === "selected")
5344
5344
  return "border border-border-selected-dark";
5345
- }, jl = ({
5345
+ }, Gl = ({
5346
5346
  focusMode: e
5347
5347
  }) => m("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
5348
5348
  "focus:outline-focus-dark": e === "dark",
5349
5349
  "focus:outline-focus-light": e === "light",
5350
5350
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
5351
5351
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
5352
- }), Gl = ({
5352
+ }), ql = ({
5353
5353
  mode: e,
5354
5354
  raw: t,
5355
5355
  iconClassName: r
@@ -5361,11 +5361,11 @@ const Ml = "av-bubble", bn = "av-button", xt = "icon", va = "button", sr = "link
5361
5361
  "dark:text-copy-accent-dark": e === "system"
5362
5362
  },
5363
5363
  r
5364
- ), ql = ({
5364
+ ), Kl = ({
5365
5365
  animated: e
5366
5366
  }) => m({
5367
5367
  "transition-opacity duration-300 ease-in": e
5368
- }), Kl = ({
5368
+ }), Yl = ({
5369
5369
  type: e,
5370
5370
  className: t,
5371
5371
  raw: r,
@@ -5380,32 +5380,32 @@ const Ml = "av-bubble", bn = "av-button", xt = "icon", va = "button", sr = "link
5380
5380
  noBackground: d,
5381
5381
  variant: g,
5382
5382
  noTruncate: f,
5383
- align: y,
5383
+ align: b,
5384
5384
  radius: p,
5385
5385
  animated: v
5386
- }) => (g || (g = "primary"), r ? m(bn, t) : m(
5387
- bn,
5388
- Pl({
5386
+ }) => (g || (g = "primary"), r ? m(yn, t) : m(
5387
+ yn,
5388
+ zl({
5389
5389
  mode: n,
5390
5390
  variant: g,
5391
5391
  noBackground: d,
5392
5392
  noTruncate: f
5393
5393
  }),
5394
- zl({ mode: n, noBackground: d, variant: g }),
5395
- Ul({ radius: p }),
5396
- Vl({
5394
+ Ul({ mode: n, noBackground: d, variant: g }),
5395
+ Fl({ radius: p }),
5396
+ Dl({
5397
5397
  type: e,
5398
5398
  size: s,
5399
5399
  labelRight: u,
5400
5400
  labelLeft: h,
5401
- align: y,
5401
+ align: b,
5402
5402
  animated: v
5403
5403
  }),
5404
- Dl({ type: e, size: s, labelRight: u, labelLeft: h }),
5405
- Wl({ mode: n, variant: g, noBorder: l }),
5406
- jl({ focusMode: a }),
5407
- Fl({ mode: n, variant: g, disabled: o }),
5404
+ Pl({ type: e, size: s, labelRight: u, labelLeft: h }),
5405
+ jl({ mode: n, variant: g, noBorder: l }),
5406
+ Gl({ focusMode: a }),
5408
5407
  Hl({ mode: n, variant: g, disabled: o }),
5408
+ Wl({ mode: n, variant: g, disabled: o }),
5409
5409
  {
5410
5410
  "w-full": i,
5411
5411
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -5414,30 +5414,30 @@ const Ml = "av-bubble", bn = "av-button", xt = "icon", va = "button", sr = "link
5414
5414
  "transition-[width] duration-300 ease-in-out": e === xt && v
5415
5415
  }),
5416
5416
  t
5417
- )), Yl = (e, t, r) => {
5417
+ )), Jl = (e, t, r) => {
5418
5418
  var n;
5419
5419
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
5420
- }, ka = F.forwardRef((e, t) => {
5420
+ }, wa = U.forwardRef((e, t) => {
5421
5421
  const { onClick: r, noInternalClick: n = !1, ...a } = e;
5422
5422
  return /* @__PURE__ */ c(
5423
5423
  "button",
5424
5424
  {
5425
5425
  ref: t,
5426
5426
  onClick: (o) => {
5427
- Yl(o, n, r);
5427
+ Jl(o, n, r);
5428
5428
  },
5429
5429
  ...a
5430
5430
  }
5431
5431
  );
5432
5432
  });
5433
- ka.displayName = "BaseButton";
5434
- function Jl() {
5433
+ wa.displayName = "BaseButton";
5434
+ function Zl() {
5435
5435
  const e = T(!1);
5436
5436
  return M(() => (e.current = !0, () => {
5437
5437
  e.current = !1;
5438
5438
  }), []), X(() => e.current, []);
5439
5439
  }
5440
- function Zl(e) {
5440
+ function Xl(e) {
5441
5441
  return ue(() => e.every((t) => t == null) ? () => {
5442
5442
  } : (t) => {
5443
5443
  e.forEach((r) => {
@@ -5445,7 +5445,7 @@ function Zl(e) {
5445
5445
  });
5446
5446
  }, e);
5447
5447
  }
5448
- const Xl = {
5448
+ const Ql = {
5449
5449
  x: 0,
5450
5450
  y: 0,
5451
5451
  width: 0,
@@ -5456,7 +5456,7 @@ const Xl = {
5456
5456
  right: 0
5457
5457
  };
5458
5458
  function Ut(e) {
5459
- const t = Jl(), r = T(0), n = T(null), [a, o] = j(Xl), i = ue(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
5459
+ const t = Zl(), r = T(0), n = T(null), [a, o] = j(Ql), i = ue(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
5460
5460
  const l = s[0];
5461
5461
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
5462
5462
  n.current && t() && o(l.contentRect);
@@ -5466,21 +5466,21 @@ function Ut(e) {
5466
5466
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
5467
5467
  }), [i, e]), [n, a];
5468
5468
  }
5469
- const Ql = {
5469
+ const ec = {
5470
5470
  small: 24,
5471
5471
  // w-6
5472
5472
  medium: 32,
5473
5473
  // w-8
5474
5474
  large: 48
5475
5475
  // w-12
5476
- }, ec = {
5476
+ }, tc = {
5477
5477
  small: 8 * 2,
5478
5478
  // px-2 x 2
5479
5479
  medium: 12 * 2,
5480
5480
  // px-3 x 2
5481
5481
  large: 16 * 2
5482
5482
  // px-4 x 2
5483
- }, tc = 2, Sr = F.forwardRef(
5483
+ }, rc = 2, Sr = U.forwardRef(
5484
5484
  ({
5485
5485
  children: e,
5486
5486
  disabled: t = !1,
@@ -5496,15 +5496,15 @@ const Ql = {
5496
5496
  size: d = "medium",
5497
5497
  labelRight: g,
5498
5498
  labelLeft: f,
5499
- noBackground: y = !1,
5499
+ noBackground: b = !1,
5500
5500
  align: p = "center",
5501
5501
  radius: v = "large",
5502
- variant: b = "primary",
5502
+ variant: y = "primary",
5503
5503
  iconClassName: x,
5504
5504
  animated: k = !1,
5505
- ...$
5505
+ ...L
5506
5506
  }, _) => {
5507
- const L = Kl({
5507
+ const $ = Yl({
5508
5508
  type: xt,
5509
5509
  mode: r,
5510
5510
  focusMode: n,
@@ -5516,16 +5516,16 @@ const Ql = {
5516
5516
  size: d,
5517
5517
  labelRight: g,
5518
5518
  labelLeft: f,
5519
- noBackground: y,
5519
+ noBackground: b,
5520
5520
  align: p,
5521
5521
  radius: v,
5522
- variant: b,
5522
+ variant: y,
5523
5523
  animated: k
5524
- }), B = Gl({ mode: r, raw: s, iconClassName: x }), E = ql({ animated: k }), [w, R] = Ut(), [S, O] = Ut(), [N, A] = Ut(), D = T(0), C = T(null), U = Zl([_, C]);
5524
+ }), B = ql({ mode: r, raw: s, iconClassName: x }), E = Kl({ animated: k }), [w, R] = Ut(), [S, O] = Ut(), [N, A] = Ut(), D = T(0), C = T(null), F = Xl([_, C]);
5525
5525
  return pe(() => {
5526
- N && N.current && k && (D.current = A.width + ec[d] + (l ? 0 : tc));
5526
+ N && N.current && k && (D.current = A.width + tc[d] + (l ? 0 : rc));
5527
5527
  }, [A, N, d, l, k]), pe(() => {
5528
- C && C.current && k && (g && w && R.width > 0 ? (w.current && (w.current.style.opacity = "100"), C.current.style.width = `${R.width + D.current}px`) : f && O.width > 0 ? (S.current && (S.current.style.opacity = "100"), C.current.style.width = `${O.width + D.current}px`) : (w.current && (w.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), C.current.style.width = `${Ql[d]}px`));
5528
+ C && C.current && k && (g && w && R.width > 0 ? (w.current && (w.current.style.opacity = "100"), C.current.style.width = `${R.width + D.current}px`) : f && O.width > 0 ? (S.current && (S.current.style.opacity = "100"), C.current.style.width = `${O.width + D.current}px`) : (w.current && (w.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), C.current.style.width = `${ec[d]}px`));
5529
5529
  }, [
5530
5530
  R,
5531
5531
  g,
@@ -5536,14 +5536,14 @@ const Ql = {
5536
5536
  d,
5537
5537
  k
5538
5538
  ]), /* @__PURE__ */ I(
5539
- ka,
5539
+ wa,
5540
5540
  {
5541
- ref: U,
5542
- className: L,
5541
+ ref: F,
5542
+ className: $,
5543
5543
  disabled: t,
5544
5544
  type: i,
5545
5545
  "aria-label": u || h,
5546
- ...$,
5546
+ ...L,
5547
5547
  children: [
5548
5548
  /* @__PURE__ */ c(
5549
5549
  vn,
@@ -5588,7 +5588,7 @@ try {
5588
5588
  });
5589
5589
  } catch {
5590
5590
  }
5591
- const rc = F.forwardRef(
5591
+ const nc = U.forwardRef(
5592
5592
  ({
5593
5593
  children: e,
5594
5594
  mode: t = "system",
@@ -5626,8 +5626,8 @@ const rc = F.forwardRef(
5626
5626
  ) });
5627
5627
  }
5628
5628
  );
5629
- rc.displayName = "ButtonSort";
5630
- const wa = ({
5629
+ nc.displayName = "ButtonSort";
5630
+ const xa = ({
5631
5631
  children: e,
5632
5632
  fill: t,
5633
5633
  viewBox: r,
@@ -5670,14 +5670,14 @@ try {
5670
5670
  });
5671
5671
  } catch {
5672
5672
  }
5673
- const nc = ({
5673
+ const ac = ({
5674
5674
  className: e,
5675
5675
  viewBox: t,
5676
5676
  title: r,
5677
5677
  monotone: n,
5678
5678
  ...a
5679
5679
  }) => /* @__PURE__ */ I(
5680
- wa,
5680
+ xa,
5681
5681
  {
5682
5682
  defaultViewBox: "0 0 448 512",
5683
5683
  size: "size-5",
@@ -5696,14 +5696,14 @@ const nc = ({
5696
5696
  /* @__PURE__ */ c("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" })
5697
5697
  ]
5698
5698
  }
5699
- ), ac = ({
5699
+ ), oc = ({
5700
5700
  className: e,
5701
5701
  viewBox: t,
5702
5702
  title: r,
5703
5703
  monotone: n,
5704
5704
  ...a
5705
5705
  }) => /* @__PURE__ */ c(
5706
- wa,
5706
+ xa,
5707
5707
  {
5708
5708
  defaultViewBox: "0 0 512 512",
5709
5709
  size: "size-5",
@@ -5727,30 +5727,30 @@ try {
5727
5727
  });
5728
5728
  } catch {
5729
5729
  }
5730
- const oc = ({
5730
+ const ic = ({
5731
5731
  kind: e,
5732
5732
  noMaxWidth: t
5733
5733
  }) => m("p-4", {
5734
5734
  "max-w-xs sm:max-w-md md:max-w-2xl": !t,
5735
5735
  "lg:max-w-3xl": e === "left" && !t
5736
- }), ic = ({ kind: e }) => m({
5736
+ }), sc = ({ kind: e }) => m({
5737
5737
  "bg-surface-lighter dark:bg-surface-dark": e === "left",
5738
5738
  "bg-surface-accent": e === "right"
5739
- }), sc = ({ kind: e }) => m(
5739
+ }), lc = ({ kind: e }) => m(
5740
5740
  "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",
5741
5741
  {
5742
5742
  "text-copy-lighter": e === "right"
5743
5743
  }
5744
- ), lc = ({ kind: e }) => m("rounded-b-xl", {
5744
+ ), cc = ({ kind: e }) => m("rounded-b-xl", {
5745
5745
  "rounded-tr-xl": e === "left",
5746
5746
  "rounded-tl-xl": e === "right"
5747
- }), cc = ({
5747
+ }), dc = ({
5748
5748
  kind: e,
5749
5749
  className: t,
5750
5750
  noMaxWidth: r
5751
5751
  }) => {
5752
5752
  const n = m(
5753
- Ml,
5753
+ Vl,
5754
5754
  "flex items-start",
5755
5755
  {
5756
5756
  "flex-row-reverse": e === "right"
@@ -5758,10 +5758,10 @@ const oc = ({
5758
5758
  t
5759
5759
  ), a = m(
5760
5760
  "flex flex-col empty:hidden",
5761
- oc({ kind: e, noMaxWidth: r }),
5761
+ ic({ kind: e, noMaxWidth: r }),
5762
+ lc({ kind: e }),
5762
5763
  sc({ kind: e }),
5763
- ic({ kind: e }),
5764
- lc({ kind: e })
5764
+ cc({ kind: e })
5765
5765
  ), o = "pr-2 pt-1 text-end text-xs text-copy-light", i = m("flex flex-col-reverse gap-2 sm:flex-row", {
5766
5766
  "ml-2": e === "left",
5767
5767
  "mr-2": e === "right"
@@ -5772,7 +5772,7 @@ const oc = ({
5772
5772
  footer: o,
5773
5773
  copyButton: i
5774
5774
  };
5775
- }, dc = ({
5775
+ }, uc = ({
5776
5776
  children: e,
5777
5777
  kind: t = "left",
5778
5778
  className: r,
@@ -5783,24 +5783,24 @@ const oc = ({
5783
5783
  copyToClipboardMode: s = "system",
5784
5784
  noMaxWidth: l = !1
5785
5785
  }) => {
5786
- const [u, h] = j(!1), d = cc({ kind: t, className: r, noMaxWidth: l }), g = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), f = () => {
5786
+ const [u, h] = j(!1), d = dc({ kind: t, className: r, noMaxWidth: l }), g = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), f = () => {
5787
5787
  h(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
5788
5788
  };
5789
5789
  return M(() => {
5790
- let y;
5791
- return u && (y = window.setTimeout(() => {
5790
+ let b;
5791
+ return u && (b = window.setTimeout(() => {
5792
5792
  h(!1);
5793
5793
  }, 3e3)), () => {
5794
- clearTimeout(y);
5794
+ clearTimeout(b);
5795
5795
  };
5796
5796
  }, [u]), /* @__PURE__ */ I("div", { className: d.wrapper, children: [
5797
5797
  /* @__PURE__ */ I("div", { children: [
5798
5798
  /* @__PURE__ */ c("div", { className: d.main, children: e }),
5799
- n && Object.keys(n).map((y, p) => n[y] ? /* @__PURE__ */ c("div", { className: "prose-p:m-0", children: /* @__PURE__ */ I("p", { className: d.footer, children: [
5800
- y,
5799
+ n && Object.keys(n).map((b, p) => n[b] ? /* @__PURE__ */ c("div", { className: "prose-p:m-0", children: /* @__PURE__ */ I("p", { className: d.footer, children: [
5800
+ b,
5801
5801
  ": ",
5802
- n[y]
5803
- ] }) }, `${y}-${p}`) : null),
5802
+ n[b]
5803
+ ] }) }, `${b}-${p}`) : null),
5804
5804
  a && a
5805
5805
  ] }),
5806
5806
  g && /* @__PURE__ */ c("div", { className: d.copyButton, children: /* @__PURE__ */ c(
@@ -5814,11 +5814,11 @@ const oc = ({
5814
5814
  label: u ? "Copied to clipboard" : "Copy to clipboard",
5815
5815
  onClick: f,
5816
5816
  disabled: u,
5817
- children: u ? /* @__PURE__ */ c(nc, { size: "size-3" }) : /* @__PURE__ */ c(ac, { size: "size-3" })
5817
+ children: u ? /* @__PURE__ */ c(ac, { size: "size-3" }) : /* @__PURE__ */ c(oc, { size: "size-3" })
5818
5818
  }
5819
5819
  ) })
5820
5820
  ] });
5821
- }, kn = "av-button", _t = "icon", Cr = "button", lr = "link", uc = ({
5821
+ }, kn = "av-button", _t = "icon", Cr = "button", sr = "link", mc = ({
5822
5822
  type: e,
5823
5823
  size: t,
5824
5824
  labelRight: r,
@@ -5829,7 +5829,7 @@ const oc = ({
5829
5829
  const i = "max-h-8 py-0 px-2", s = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
5830
5830
  switch (e) {
5831
5831
  case Cr:
5832
- case lr:
5832
+ case sr:
5833
5833
  return m({
5834
5834
  [i]: t === "small",
5835
5835
  [s]: t === "medium",
@@ -5854,7 +5854,7 @@ const oc = ({
5854
5854
  "h-12": t === "large" && o && (r || n)
5855
5855
  });
5856
5856
  }
5857
- }, mc = ({
5857
+ }, gc = ({
5858
5858
  type: e,
5859
5859
  size: t,
5860
5860
  labelRight: r,
@@ -5863,9 +5863,9 @@ const oc = ({
5863
5863
  const a = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
5864
5864
  switch (e) {
5865
5865
  case Cr:
5866
- case lr:
5866
+ case sr:
5867
5867
  return m({
5868
- "text-center": e === lr,
5868
+ "text-center": e === sr,
5869
5869
  [a]: t === "small",
5870
5870
  [o]: t === "medium",
5871
5871
  [i]: t === "large"
@@ -5877,7 +5877,7 @@ const oc = ({
5877
5877
  [i]: t === "large" && (r || n)
5878
5878
  });
5879
5879
  }
5880
- }, gc = ({
5880
+ }, fc = ({
5881
5881
  mode: e,
5882
5882
  noBackground: t,
5883
5883
  noTruncate: r,
@@ -5913,7 +5913,7 @@ const oc = ({
5913
5913
  return m("not-prose text-copy-lighter", {
5914
5914
  truncate: !r
5915
5915
  });
5916
- }, fc = ({
5916
+ }, hc = ({
5917
5917
  mode: e,
5918
5918
  noBackground: t,
5919
5919
  variant: r
@@ -5943,13 +5943,13 @@ const oc = ({
5943
5943
  if (r === "selected")
5944
5944
  return "bg-action-selected-dark";
5945
5945
  }
5946
- }, hc = ({
5946
+ }, pc = ({
5947
5947
  radius: e
5948
5948
  }) => m({
5949
5949
  "rounded-full": e === "large",
5950
5950
  "rounded-md": e === "medium",
5951
5951
  "rounded-sm": e === "small"
5952
- }), pc = ({
5952
+ }), bc = ({
5953
5953
  mode: e,
5954
5954
  disabled: t,
5955
5955
  variant: r
@@ -6009,7 +6009,7 @@ const oc = ({
6009
6009
  });
6010
6010
  if (r === "selected")
6011
6011
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
6012
- }, bc = ({
6012
+ }, vc = ({
6013
6013
  mode: e,
6014
6014
  noBorder: t,
6015
6015
  variant: r
@@ -6039,14 +6039,14 @@ const oc = ({
6039
6039
  });
6040
6040
  if (r === "selected")
6041
6041
  return "border border-border-selected-dark";
6042
- }, vc = ({
6042
+ }, kc = ({
6043
6043
  focusMode: e
6044
6044
  }) => m("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
6045
6045
  "focus:outline-focus-dark": e === "dark",
6046
6046
  "focus:outline-focus-light": e === "light",
6047
6047
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
6048
6048
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
6049
- }), kc = ({
6049
+ }), wc = ({
6050
6050
  mode: e,
6051
6051
  raw: t,
6052
6052
  iconClassName: r
@@ -6058,11 +6058,11 @@ const oc = ({
6058
6058
  "dark:text-copy-accent-dark": e === "system"
6059
6059
  },
6060
6060
  r
6061
- ), wc = ({
6061
+ ), xc = ({
6062
6062
  animated: e
6063
6063
  }) => m({
6064
6064
  "transition-opacity duration-300 ease-in": e
6065
- }), xa = ({
6065
+ }), _a = ({
6066
6066
  type: e,
6067
6067
  className: t,
6068
6068
  raw: r,
@@ -6077,31 +6077,31 @@ const oc = ({
6077
6077
  noBackground: d,
6078
6078
  variant: g,
6079
6079
  noTruncate: f,
6080
- align: y,
6080
+ align: b,
6081
6081
  radius: p,
6082
6082
  animated: v
6083
6083
  }) => (g || (g = "primary"), r ? m(kn, t) : m(
6084
6084
  kn,
6085
- gc({
6085
+ fc({
6086
6086
  mode: n,
6087
6087
  variant: g,
6088
6088
  noBackground: d,
6089
6089
  noTruncate: f
6090
6090
  }),
6091
- fc({ mode: n, noBackground: d, variant: g }),
6092
- hc({ radius: p }),
6093
- uc({
6091
+ hc({ mode: n, noBackground: d, variant: g }),
6092
+ pc({ radius: p }),
6093
+ mc({
6094
6094
  type: e,
6095
6095
  size: s,
6096
6096
  labelRight: u,
6097
6097
  labelLeft: h,
6098
- align: y,
6098
+ align: b,
6099
6099
  animated: v
6100
6100
  }),
6101
- mc({ type: e, size: s, labelRight: u, labelLeft: h }),
6102
- bc({ mode: n, variant: g, noBorder: l }),
6103
- vc({ focusMode: a }),
6104
- pc({ mode: n, variant: g, disabled: o }),
6101
+ gc({ type: e, size: s, labelRight: u, labelLeft: h }),
6102
+ vc({ mode: n, variant: g, noBorder: l }),
6103
+ kc({ focusMode: a }),
6104
+ bc({ mode: n, variant: g, disabled: o }),
6105
6105
  yc({ mode: n, variant: g, disabled: o }),
6106
6106
  {
6107
6107
  "w-full": i,
@@ -6111,24 +6111,24 @@ const oc = ({
6111
6111
  "transition-[width] duration-300 ease-in-out": e === _t && v
6112
6112
  }),
6113
6113
  t
6114
- )), xc = (e, t, r) => {
6114
+ )), _c = (e, t, r) => {
6115
6115
  var n;
6116
6116
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
6117
- }, Nr = F.forwardRef((e, t) => {
6117
+ }, Nr = U.forwardRef((e, t) => {
6118
6118
  const { onClick: r, noInternalClick: n = !1, ...a } = e;
6119
6119
  return /* @__PURE__ */ c(
6120
6120
  "button",
6121
6121
  {
6122
6122
  ref: t,
6123
6123
  onClick: (o) => {
6124
- xc(o, n, r);
6124
+ _c(o, n, r);
6125
6125
  },
6126
6126
  ...a
6127
6127
  }
6128
6128
  );
6129
6129
  });
6130
6130
  Nr.displayName = "BaseButton";
6131
- const _a = F.forwardRef(
6131
+ const Ea = U.forwardRef(
6132
6132
  ({
6133
6133
  children: e,
6134
6134
  disabled: t = !1,
@@ -6144,7 +6144,7 @@ const _a = F.forwardRef(
6144
6144
  radius: d = "large",
6145
6145
  ...g
6146
6146
  }, f) => {
6147
- const y = xa({
6147
+ const b = _a({
6148
6148
  type: Cr,
6149
6149
  mode: r,
6150
6150
  focusMode: n,
@@ -6162,7 +6162,7 @@ const _a = F.forwardRef(
6162
6162
  Nr,
6163
6163
  {
6164
6164
  ref: f,
6165
- className: y,
6165
+ className: b,
6166
6166
  disabled: t,
6167
6167
  ...g,
6168
6168
  children: e
@@ -6170,14 +6170,14 @@ const _a = F.forwardRef(
6170
6170
  );
6171
6171
  }
6172
6172
  );
6173
- _a.displayName = "Button";
6174
- function _c() {
6173
+ Ea.displayName = "Button";
6174
+ function Ec() {
6175
6175
  const e = T(!1);
6176
6176
  return M(() => (e.current = !0, () => {
6177
6177
  e.current = !1;
6178
6178
  }), []), X(() => e.current, []);
6179
6179
  }
6180
- function Ec(e) {
6180
+ function Tc(e) {
6181
6181
  return ue(() => e.every((t) => t == null) ? () => {
6182
6182
  } : (t) => {
6183
6183
  e.forEach((r) => {
@@ -6185,7 +6185,7 @@ function Ec(e) {
6185
6185
  });
6186
6186
  }, e);
6187
6187
  }
6188
- const Tc = {
6188
+ const Sc = {
6189
6189
  x: 0,
6190
6190
  y: 0,
6191
6191
  width: 0,
@@ -6196,7 +6196,7 @@ const Tc = {
6196
6196
  right: 0
6197
6197
  };
6198
6198
  function Ft(e) {
6199
- const t = _c(), r = T(0), n = T(null), [a, o] = j(Tc), i = ue(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
6199
+ const t = Ec(), r = T(0), n = T(null), [a, o] = j(Sc), i = ue(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
6200
6200
  const l = s[0];
6201
6201
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
6202
6202
  n.current && t() && o(l.contentRect);
@@ -6206,21 +6206,21 @@ function Ft(e) {
6206
6206
  i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
6207
6207
  }), [i, e]), [n, a];
6208
6208
  }
6209
- const Sc = {
6209
+ const Cc = {
6210
6210
  small: 24,
6211
6211
  // w-6
6212
6212
  medium: 32,
6213
6213
  // w-8
6214
6214
  large: 48
6215
6215
  // w-12
6216
- }, Cc = {
6216
+ }, Nc = {
6217
6217
  small: 8 * 2,
6218
6218
  // px-2 x 2
6219
6219
  medium: 12 * 2,
6220
6220
  // px-3 x 2
6221
6221
  large: 16 * 2
6222
6222
  // px-4 x 2
6223
- }, Nc = 2, Ea = F.forwardRef(
6223
+ }, Rc = 2, Ta = U.forwardRef(
6224
6224
  ({
6225
6225
  children: e,
6226
6226
  disabled: t = !1,
@@ -6236,15 +6236,15 @@ const Sc = {
6236
6236
  size: d = "medium",
6237
6237
  labelRight: g,
6238
6238
  labelLeft: f,
6239
- noBackground: y = !1,
6239
+ noBackground: b = !1,
6240
6240
  align: p = "center",
6241
6241
  radius: v = "large",
6242
- variant: b = "primary",
6242
+ variant: y = "primary",
6243
6243
  iconClassName: x,
6244
6244
  animated: k = !1,
6245
- ...$
6245
+ ...L
6246
6246
  }, _) => {
6247
- const L = xa({
6247
+ const $ = _a({
6248
6248
  type: _t,
6249
6249
  mode: r,
6250
6250
  focusMode: n,
@@ -6256,16 +6256,16 @@ const Sc = {
6256
6256
  size: d,
6257
6257
  labelRight: g,
6258
6258
  labelLeft: f,
6259
- noBackground: y,
6259
+ noBackground: b,
6260
6260
  align: p,
6261
6261
  radius: v,
6262
- variant: b,
6262
+ variant: y,
6263
6263
  animated: k
6264
- }), B = kc({ mode: r, raw: s, iconClassName: x }), E = wc({ animated: k }), [w, R] = Ft(), [S, O] = Ft(), [N, A] = Ft(), D = T(0), C = T(null), U = Ec([_, C]);
6264
+ }), B = wc({ mode: r, raw: s, iconClassName: x }), E = xc({ animated: k }), [w, R] = Ft(), [S, O] = Ft(), [N, A] = Ft(), D = T(0), C = T(null), F = Tc([_, C]);
6265
6265
  return pe(() => {
6266
- N && N.current && k && (D.current = A.width + Cc[d] + (l ? 0 : Nc));
6266
+ N && N.current && k && (D.current = A.width + Nc[d] + (l ? 0 : Rc));
6267
6267
  }, [A, N, d, l, k]), pe(() => {
6268
- C && C.current && k && (g && w && R.width > 0 ? (w.current && (w.current.style.opacity = "100"), C.current.style.width = `${R.width + D.current}px`) : f && O.width > 0 ? (S.current && (S.current.style.opacity = "100"), C.current.style.width = `${O.width + D.current}px`) : (w.current && (w.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), C.current.style.width = `${Sc[d]}px`));
6268
+ C && C.current && k && (g && w && R.width > 0 ? (w.current && (w.current.style.opacity = "100"), C.current.style.width = `${R.width + D.current}px`) : f && O.width > 0 ? (S.current && (S.current.style.opacity = "100"), C.current.style.width = `${O.width + D.current}px`) : (w.current && (w.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), C.current.style.width = `${Cc[d]}px`));
6269
6269
  }, [
6270
6270
  R,
6271
6271
  g,
@@ -6278,12 +6278,12 @@ const Sc = {
6278
6278
  ]), /* @__PURE__ */ I(
6279
6279
  Nr,
6280
6280
  {
6281
- ref: U,
6282
- className: L,
6281
+ ref: F,
6282
+ className: $,
6283
6283
  disabled: t,
6284
6284
  type: i,
6285
6285
  "aria-label": u || h,
6286
- ...$,
6286
+ ...L,
6287
6287
  children: [
6288
6288
  /* @__PURE__ */ c(
6289
6289
  wn,
@@ -6314,7 +6314,7 @@ const Sc = {
6314
6314
  label: r,
6315
6315
  labelInnerClass: n
6316
6316
  }) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: n, children: r }) });
6317
- Ea.displayName = "ButtonIcon";
6317
+ Ta.displayName = "ButtonIcon";
6318
6318
  /*!
6319
6319
  @versini/ui-button v4.2.4
6320
6320
  © 2025 gizmette.com
@@ -6328,7 +6328,7 @@ try {
6328
6328
  });
6329
6329
  } catch {
6330
6330
  }
6331
- const Rc = F.forwardRef(
6331
+ const Ic = U.forwardRef(
6332
6332
  ({
6333
6333
  children: e,
6334
6334
  mode: t = "system",
@@ -6354,7 +6354,7 @@ const Rc = F.forwardRef(
6354
6354
  }
6355
6355
  ) : "";
6356
6356
  return /* @__PURE__ */ c("div", { className: i, children: /* @__PURE__ */ c(
6357
- Ea,
6357
+ Ta,
6358
6358
  {
6359
6359
  className: m("justify-center", r),
6360
6360
  ref: o,
@@ -6366,10 +6366,10 @@ const Rc = F.forwardRef(
6366
6366
  ) });
6367
6367
  }
6368
6368
  );
6369
- Rc.displayName = "ButtonSort";
6370
- const Ic = 200, $c = ({
6369
+ Ic.displayName = "ButtonSort";
6370
+ const Lc = 200, $c = ({
6371
6371
  string: e,
6372
- idealLength: t = Ic
6372
+ idealLength: t = Lc
6373
6373
  }) => {
6374
6374
  if (e.length <= t)
6375
6375
  return { string: e, isTruncated: !1 };
@@ -6380,7 +6380,7 @@ const Ic = 200, $c = ({
6380
6380
  string: e.slice(0, t + r),
6381
6381
  isTruncated: !0
6382
6382
  };
6383
- }, Lc = ({
6383
+ }, Ac = ({
6384
6384
  children: e,
6385
6385
  length: t = 200,
6386
6386
  mode: r = "system",
@@ -6396,7 +6396,7 @@ const Ic = 200, $c = ({
6396
6396
  return /* @__PURE__ */ I("span", { style: { wordBreak: "break-word" }, children: [
6397
6397
  a ? e : i,
6398
6398
  s && /* @__PURE__ */ c(
6399
- _a,
6399
+ Ea,
6400
6400
  {
6401
6401
  mode: r,
6402
6402
  focusMode: n,
@@ -6423,55 +6423,79 @@ try {
6423
6423
  });
6424
6424
  } catch {
6425
6425
  }
6426
- const Ac = ({ children: e }) => /* @__PURE__ */ c(
6427
- dc,
6426
+ const Oc = ({ content: e }) => /* @__PURE__ */ c(
6427
+ uc,
6428
6428
  {
6429
6429
  kind: "right",
6430
6430
  copyToClipboard: e,
6431
6431
  copyToClipboardFocusMode: "light",
6432
- children: /* @__PURE__ */ c(Lc, { mode: "light", focusMode: "light", children: e })
6432
+ children: /* @__PURE__ */ c(Ac, { mode: "light", focusMode: "light", children: e })
6433
6433
  }
6434
- ), xn = Nn(
6434
+ ), xn = Rn(
6435
6435
  () => import(
6436
6436
  /* webpackChunkName: "LazyMessageAssistant" */
6437
- "./MessageAssistant.nI6XnIkA.js"
6438
- ).then((e) => e.MessageAssistant)
6439
- ), Oc = () => {
6437
+ "./ChatBubbleAssistant.CdMTnYhs.js"
6438
+ ).then((e) => e.ChatBubbleAssistant)
6439
+ ), _n = U.memo(
6440
+ ({
6441
+ role: e,
6442
+ content: t,
6443
+ name: r,
6444
+ processingTime: n,
6445
+ loading: a = !1
6446
+ }) => (e === je || e === lr) && t ? /* @__PURE__ */ c(Wt, { fallback: /* @__PURE__ */ c("span", {}), children: /* @__PURE__ */ c(
6447
+ xn,
6448
+ {
6449
+ name: r,
6450
+ processingTime: n,
6451
+ content: t
6452
+ }
6453
+ ) }) : e === cr && t ? /* @__PURE__ */ c(Oc, { content: t }) : a ? /* @__PURE__ */ c(Wt, { fallback: /* @__PURE__ */ c("span", {}), children: /* @__PURE__ */ c(xn, { loading: !0 }) }) : null
6454
+ ), Bc = () => {
6440
6455
  const { state: e } = W(oe);
6441
6456
  return /* @__PURE__ */ I("div", { className: "space-y-6 mt-2 @container", children: [
6442
6457
  e && e.messages.length > 0 && e.messages.map((t, r) => {
6443
6458
  const { role: n, content: a, name: o, processingTime: i } = t.message;
6444
- return (n === je || n === cr) && a ? /* @__PURE__ */ c(jt, { fallback: /* @__PURE__ */ c("span", {}), children: /* @__PURE__ */ c(xn, { name: o, processingTime: i, children: a }) }, `${r}-${n}`) : n === Wt && a ? /* @__PURE__ */ c(Ac, { children: a }, `${r}-${n}`) : null;
6459
+ return /* @__PURE__ */ c(
6460
+ _n,
6461
+ {
6462
+ role: n,
6463
+ content: a,
6464
+ name: o,
6465
+ processingTime: i
6466
+ },
6467
+ `${r}-${n}`
6468
+ );
6445
6469
  }),
6446
- Ua(Wt, e) && /* @__PURE__ */ c(jt, { fallback: /* @__PURE__ */ c("span", {}), children: /* @__PURE__ */ c(xn, { loading: !0 }) })
6470
+ Fa(cr, e) && /* @__PURE__ */ c(_n, { loading: !0 })
6447
6471
  ] });
6448
- }, Bc = () => {
6449
- const { isAuthenticated: e } = Be(), { ref: t, inViewport: r } = xo(), n = Fa({
6472
+ }, Mc = () => {
6473
+ const { isAuthenticated: e } = Be(), { ref: t, inViewport: r } = _o(), n = Ha({
6450
6474
  isAuthenticated: e,
6451
6475
  extraClass: "rounded-b-md"
6452
6476
  });
6453
6477
  return /* @__PURE__ */ I(_e, { children: [
6454
6478
  /* @__PURE__ */ I("div", { className: n, children: [
6455
- /* @__PURE__ */ c(Ha, {}),
6456
- /* @__PURE__ */ c(Oc, {}),
6479
+ /* @__PURE__ */ c(Wa, {}),
6480
+ /* @__PURE__ */ c(Bc, {}),
6457
6481
  /* @__PURE__ */ c("div", { ref: t })
6458
6482
  ] }),
6459
- /* @__PURE__ */ c(Tl, { show: !r })
6483
+ /* @__PURE__ */ c(Sl, { show: !r })
6460
6484
  ] });
6461
- }, Mc = Nn(
6485
+ }, Vc = Rn(
6462
6486
  () => import(
6463
6487
  /* webpackChunkName: "LazyHeader" */
6464
- "./index.irxlZPjw.js"
6488
+ "./index.DBUj3LXB.js"
6465
6489
  )
6466
6490
  );
6467
- function Ta({ isComponent: e = !1 }) {
6468
- const { user: t, getAccessToken: r } = Be(), [n] = Gt({
6469
- key: Ht + ja,
6470
- initialValue: ""
6471
- }), [a] = Gt({
6491
+ function Sa({ isComponent: e = !1 }) {
6492
+ const { user: t, getAccessToken: r } = Be(), [n] = jt({
6472
6493
  key: Ht + Ga,
6494
+ initialValue: ""
6495
+ }), [a] = jt({
6496
+ key: Ht + qa,
6473
6497
  initialValue: Fe.ASC
6474
- }), [o, i] = Nt(li, {
6498
+ }), [o, i] = Nt(ci, {
6475
6499
  id: fr(),
6476
6500
  model: Ne,
6477
6501
  engine: Ne,
@@ -6479,15 +6503,15 @@ function Ta({ isComponent: e = !1 }) {
6479
6503
  messages: [],
6480
6504
  prompts: [],
6481
6505
  isComponent: e
6482
- }), [s, l] = Nt(ci, {
6506
+ }), [s, l] = Nt(di, {
6483
6507
  searchString: n,
6484
6508
  sortedCell: "timestamp",
6485
6509
  sortDirection: a
6486
- }), [u, h] = Nt(di, {
6510
+ }), [u, h] = Nt(ui, {
6487
6511
  prompt: "",
6488
6512
  lastTriggeredTimestamp: 0
6489
6513
  });
6490
- Yi({
6514
+ Ji({
6491
6515
  keys: [
6492
6516
  t == null ? void 0 : t.username,
6493
6517
  s.searchString,
@@ -6495,16 +6519,16 @@ function Ta({ isComponent: e = !1 }) {
6495
6519
  0
6496
6520
  ],
6497
6521
  getAccessToken: r
6498
- }), Ji({ getAccessToken: r });
6499
- const { data: d } = br({
6522
+ }), Zi({ getAccessToken: r });
6523
+ const { data: d } = yr({
6500
6524
  keys: [t == null ? void 0 : t.username],
6501
6525
  getAccessToken: r
6502
6526
  });
6503
6527
  return M(() => {
6504
6528
  var f;
6505
6529
  (f = document.getElementById("logo")) == null || f.classList.add("fadeOut"), setTimeout(() => {
6506
- var y;
6507
- (y = document.getElementById("root")) == null || y.classList.replace("app-hidden", "fadeIn");
6530
+ var b;
6531
+ (b = document.getElementById("root")) == null || b.classList.replace("app-hidden", "fadeIn");
6508
6532
  }, 500);
6509
6533
  }), M(() => {
6510
6534
  d && i({
@@ -6514,7 +6538,7 @@ function Ta({ isComponent: e = !1 }) {
6514
6538
  }
6515
6539
  });
6516
6540
  }, [d]), /* @__PURE__ */ c(oe.Provider, { value: { state: o, dispatch: i }, children: /* @__PURE__ */ c(
6517
- ta.Provider,
6541
+ ra.Provider,
6518
6542
  {
6519
6543
  value: {
6520
6544
  state: s,
@@ -6526,7 +6550,7 @@ function Ta({ isComponent: e = !1 }) {
6526
6550
  value: { state: u, dispatch: h },
6527
6551
  children: [
6528
6552
  /* @__PURE__ */ c(
6529
- po,
6553
+ bo,
6530
6554
  {
6531
6555
  noColors: !0,
6532
6556
  noMargin: !0,
@@ -6535,57 +6559,57 @@ function Ta({ isComponent: e = !1 }) {
6535
6559
  className: Ur({
6536
6560
  extraClass: "mt-5"
6537
6561
  }),
6538
- children: /* @__PURE__ */ c(jt, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Mc, {}) })
6562
+ children: /* @__PURE__ */ c(Wt, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Vc, {}) })
6539
6563
  }
6540
6564
  ),
6541
6565
  /* @__PURE__ */ c(
6542
- Wa,
6566
+ ja,
6543
6567
  {
6544
6568
  className: Ur({
6545
6569
  extraClass: "max-h-[calc(100svh_-_250px)]"
6546
6570
  }),
6547
6571
  noMargin: !0,
6548
6572
  noPadding: !0,
6549
- children: /* @__PURE__ */ c(Bc, {})
6573
+ children: /* @__PURE__ */ c(Mc, {})
6550
6574
  }
6551
6575
  ),
6552
- /* @__PURE__ */ c(Bl, { isComponent: e })
6576
+ /* @__PURE__ */ c(Ml, { isComponent: e })
6553
6577
  ]
6554
6578
  }
6555
6579
  )
6556
6580
  }
6557
6581
  ) });
6558
6582
  }
6559
- Ta.displayName = "App";
6560
- const Zc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Ta }, Symbol.toStringTag, { value: "Module" }));
6583
+ Sa.displayName = "App";
6584
+ const Xc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Sa }, Symbol.toStringTag, { value: "Module" }));
6561
6585
  export {
6562
- jc as $e,
6563
- Zc as App,
6586
+ Gc as $e,
6587
+ Xc as App,
6564
6588
  oe as AppContext,
6565
6589
  Fe as B,
6566
- kl as ConfirmationPanel,
6567
- qc as De,
6568
- Gt as E,
6569
- Gc as Fe,
6570
- ta as HistoryContext,
6571
- ni as Le,
6572
- Jc as P,
6590
+ wl as ConfirmationPanel,
6591
+ Kc as De,
6592
+ jt as E,
6593
+ qc as Fe,
6594
+ ra as HistoryContext,
6595
+ ai as Le,
6596
+ Zc as P,
6573
6597
  ct as R,
6574
- dc as Re,
6598
+ uc as Re,
6575
6599
  Ve as SERVICE_TYPES,
6576
- Fc as Ue,
6577
- Wc as We,
6578
- vl as Ze,
6600
+ Hc as Ue,
6601
+ jc as We,
6602
+ kl as Ze,
6579
6603
  Pe as _e,
6580
- Co as i,
6581
- Hc as je,
6582
- uo as m,
6604
+ No as i,
6605
+ Wc as je,
6606
+ mo as m,
6583
6607
  Tr as me,
6584
6608
  Fr as p,
6585
- yr as serviceCall,
6586
- Ki as useChatsHistory,
6587
- Yc as useServerCapabilities,
6588
- Kc as useUserChatStats,
6589
- br as useUserPreferences,
6609
+ br as serviceCall,
6610
+ Yi as useChatsHistory,
6611
+ Jc as useServerCapabilities,
6612
+ Yc as useUserChatStats,
6613
+ yr as useUserPreferences,
6590
6614
  Hr as z
6591
6615
  };