@versini/sassysaint 8.50.1 → 8.51.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/chunks/{AboutChangelog.BDo1-fzi.js → AboutChangelog.BIKGjlK4.js} +2 -2
  2. package/dist/chunks/{AboutEntry.BH88UaZx.js → AboutEntry.Bvl_l0xS.js} +5 -5
  3. package/dist/chunks/{App.QIy4AIaz.js → App.G5LEkLPc.js} +345 -341
  4. package/dist/chunks/{Chart.t3ZXF73j.js → Chart.O7iJjuZ1.js} +662 -660
  5. package/dist/chunks/{ChatBubbleAssistant.tWJz9jxI.js → ChatBubbleAssistant.DR6NuTsN.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.BsPt1Fgz.js → ChatBubbleUser.DyDiVXkT.js} +3 -3
  7. package/dist/chunks/ChatHistoryTable.Ceddivd9.js +236 -0
  8. package/dist/chunks/{HistoryEntry.CdAYZCrj.js → HistoryEntry.DNEz-Xkp.js} +3 -3
  9. package/dist/chunks/{ProfileEntry.qPN0Xe6S.js → ProfileEntry.BGVFwilC.js} +2 -2
  10. package/dist/chunks/SettingsEntry.D9FWahsa.js +964 -0
  11. package/dist/chunks/Table.CpK7zURs.js +429 -0
  12. package/dist/chunks/{UsageEntry.axUSgiS0.js → UsageEntry.BdEcEOro.js} +3 -3
  13. package/dist/chunks/{index.N7LUSv0I.js → index.6OcHe6xE.js} +3 -3
  14. package/dist/chunks/{index.Caa3MVly.js → index.BUTJCc-o.js} +1 -1
  15. package/dist/chunks/{index.D1zH_2x6.js → index.CoXgq2rQ.js} +1 -1
  16. package/dist/chunks/{index.DtjS4202.js → index.DRMQdLp_.js} +2095 -1846
  17. package/dist/chunks/{index.Vi5HircF.js → index.DvVy8-Zq.js} +2 -2
  18. package/dist/chunks/{index.jefijINX.js → index.E5R-gRQM.js} +1 -1
  19. package/dist/chunks/{index.DTeiwmVN.js → index.T93ZkOuc.js} +1 -1
  20. package/dist/chunks/{useMarkdown.B5cyvrlh.js → useMarkdown.CYsjqhfo.js} +6 -6
  21. package/dist/components/SassySaint/SassySaint.js +1 -1
  22. package/dist/index.js +4 -4
  23. package/dist/style.css +3 -3
  24. package/package.json +5 -5
  25. package/dist/chunks/ChatHistoryTable.RqkR5XYw.js +0 -649
  26. package/dist/chunks/SettingsEntry.CH79zLy_.js +0 -755
@@ -1,12 +1,12 @@
1
- import { jsx as u, jsxs as k, Fragment as Ce } from "react/jsx-runtime";
2
- import { I as q, ACTION_SORT as Qa, ACTION_SEARCH as Ka, ACTION_RESET_PROMPT as to, ACTION_TOGGLE_PROMPT as ro, re as es, te as ge, DEFAULT_ICON_ACTION_SIZE as _e, isTauri as Ut, n as $e, isProbablyiPhone as Le, serverUrl as no, useEntitlements as ts, L as br, j as We, C as en, LOCAL_STORAGE_PREFIX as qe, LOCAL_STORAGE_PRIVATE_DISCLOSURE as rs, pe as wr, useUserPreferences as Qt, LOCAL_STORAGE_REASONING_DISCLOSURE as ns, useChatsHistory as oo, mutateCall as os, SERVICE_TYPES as as, TOAST_CHAT_SAVED as ss, PROMPT_CLASSNAME as is, PROMPT_EDITABLE_AREA_CLASSNAME as cs, i as ls, ERROR_MESSAGE as us, c as lt, CLIPBOARD_PROMPT as tn, INPUT_PLACEHOLDER_TEXT_MOBILE as rn, INPUT_PLACEHOLDER_TEXT_ENTER as nn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as on, isProbablyMobile as Ir, Ee as ds, FOOTER_DISCLAIMERS as an, h as ao, INPUT_BOTTOM_OFFSET_EXTRA as ps, INPUT_BOTTOM_OFFSET_IPHONE as ms, INPUT_BOTTOM_OFFSET as so, getLayoutPaddingClass as Er, i$1 as hs, E as fs, y as gs, setNewProvider as vs, TOAST_PROVIDER_CHANGED as ys, LOG_OUT as sn, a as io, ne as cn, getMessageContaintWrapperClass as _s, UI_FOOTER_BUFFER as co, UI_BUTTON_SCROLL_BUFFER as bs, Logo as ws, UI_DEFAULT_MAIN_HEIGHT as ln, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Is, APP_CLASSNAME as Es, Ae as un, ue as Ts, LOCAL_STORAGE_SORT as Ss, LOCAL_STORAGE_SEARCH as ks, LOCAL_STORAGE_SORT_TIMESTAMP as xs, LOCAL_STORAGE_SORT_TOKEN_USAGE as Cs, TOAST_CACHE_ENABLED as Ns, TOAST_CACHE_DISABLED as zs } from "./index.DtjS4202.js";
1
+ import { jsx as u, jsxs as x, Fragment as Ce } from "react/jsx-runtime";
2
+ import { I as Y, ACTION_SORT as Qa, ACTION_SEARCH as Ka, ACTION_RESET_PROMPT as to, ACTION_TOGGLE_PROMPT as ro, re as es, te as ge, DEFAULT_ICON_ACTION_SIZE as _e, isTauri as Ut, n as $e, isProbablyiPhone as Le, serverUrl as no, useEntitlements as ts, L as br, j as We, C as en, LOCAL_STORAGE_PREFIX as qe, LOCAL_STORAGE_PRIVATE_DISCLOSURE as rs, pe as wr, useUserPreferences as Qt, LOCAL_STORAGE_REASONING_DISCLOSURE as ns, useChatsHistory as oo, mutateCall as os, SERVICE_TYPES as as, TOAST_CHAT_SAVED as ss, PROMPT_CLASSNAME as is, PROMPT_EDITABLE_AREA_CLASSNAME as cs, i as ls, ERROR_MESSAGE as us, c as lt, CLIPBOARD_PROMPT as tn, INPUT_PLACEHOLDER_TEXT_MOBILE as rn, INPUT_PLACEHOLDER_TEXT_ENTER as nn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as on, isProbablyMobile as Ir, Ee as ds, FOOTER_DISCLAIMERS as an, h as ao, INPUT_BOTTOM_OFFSET_EXTRA as ps, INPUT_BOTTOM_OFFSET_IPHONE as ms, INPUT_BOTTOM_OFFSET as so, getLayoutPaddingClass as Er, i$1 as hs, E as fs, y as gs, setNewProvider as vs, TOAST_PROVIDER_CHANGED as ys, LOG_OUT as sn, a as io, ne as cn, getMessageContaintWrapperClass as _s, UI_FOOTER_BUFFER as co, UI_BUTTON_SCROLL_BUFFER as bs, Logo as ws, UI_DEFAULT_MAIN_HEIGHT as ln, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Is, APP_CLASSNAME as Es, Ae as un, ue as Ts, LOCAL_STORAGE_SORT as Ss, LOCAL_STORAGE_SEARCH as xs, LOCAL_STORAGE_SORT_TIMESTAMP as ks, LOCAL_STORAGE_SORT_TOKEN_USAGE as Cs, TOAST_CACHE_ENABLED as Ns, TOAST_CACHE_DISABLED as zs } from "./index.DRMQdLp_.js";
3
3
  import * as ae from "react";
4
- import tt, { useRef as J, useEffect as $, useState as R, useCallback as U, useSyncExternalStore as Mt, createContext as As, useContext as te, useId as lo, forwardRef as uo, useMemo as Bt, Suspense as jt, lazy as Me, useReducer as Et } from "react";
4
+ import tt, { useRef as G, useEffect as $, useState as R, useCallback as U, useSyncExternalStore as Mt, createContext as As, useContext as te, useId as lo, forwardRef as uo, useMemo as Bt, Suspense as jt, lazy as Me, useReducer as Et } from "react";
5
5
  import O from "clsx";
6
6
  import { computePosition as Os, offset as po, flip as mo, shift as ho, arrow as $s, useMergeRefs as Rr, FloatingPortal as fo, FloatingOverlay as Ms, FloatingFocusManager as go, useFloating as vo, useClick as yo, useDismiss as _o, useRole as bo, useInteractions as wo, FloatingTree as Rs, useFloatingTree as Io, useFloatingNodeId as Ps, useListItem as Eo, autoUpdate as Zs, useListNavigation as Ds, useTypeahead as Ls, FloatingNode as Us, FloatingList as Bs } from "@floating-ui/react";
7
7
  const dn = ["mousedown", "touchstart"];
8
8
  function js(e, t, r) {
9
- const n = J(null);
9
+ const n = G(null);
10
10
  return $(() => {
11
11
  const o = (a) => {
12
12
  const i = a ? a.target : void 0;
@@ -77,7 +77,7 @@ function Pr(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
77
77
  }, [e, t, r]);
78
78
  }
79
79
  function Gs(e, t) {
80
- const [r, n] = R(!1), o = J(null), a = J(null), i = U(() => {
80
+ const [r, n] = R(!1), o = G(null), a = G(null), i = U(() => {
81
81
  n((l) => (!l && (!o.current || o.current === -1) && (o.current = window.setInterval(a.current, t)), !0));
82
82
  }, [t]), s = U(() => {
83
83
  n(!1), window.clearInterval(o.current || -1), o.current = -1;
@@ -85,7 +85,7 @@ function Gs(e, t) {
85
85
  return $(() => (a.current = e, r && i(), s), [e, r, i, s]), { start: i, stop: s, active: r };
86
86
  }
87
87
  function Ws() {
88
- const e = J(null), [t, r] = R(!1);
88
+ const e = G(null), [t, r] = R(!1);
89
89
  return { ref: U((n) => {
90
90
  typeof IntersectionObserver < "u" && (n && !e.current ? e.current = new IntersectionObserver(
91
91
  (o) => r(o.some((a) => a.isIntersecting))
@@ -172,7 +172,7 @@ const Ks = ({
172
172
  monotone: n,
173
173
  ...o
174
174
  }) => /* @__PURE__ */ u(
175
- q,
175
+ Y,
176
176
  {
177
177
  defaultViewBox: "0 0 448 512",
178
178
  size: "size-5",
@@ -189,7 +189,7 @@ const Ks = ({
189
189
  monotone: n,
190
190
  ...o
191
191
  }) => /* @__PURE__ */ u(
192
- q,
192
+ Y,
193
193
  {
194
194
  defaultViewBox: "0 0 24 24",
195
195
  size: "size-5",
@@ -205,8 +205,8 @@ const Ks = ({
205
205
  title: r,
206
206
  monotone: n,
207
207
  ...o
208
- }) => /* @__PURE__ */ k(
209
- q,
208
+ }) => /* @__PURE__ */ x(
209
+ Y,
210
210
  {
211
211
  defaultViewBox: "0 0 512 512",
212
212
  size: "size-5",
@@ -231,8 +231,8 @@ const Ks = ({
231
231
  title: r,
232
232
  monotone: n,
233
233
  ...o
234
- }) => /* @__PURE__ */ k(
235
- q,
234
+ }) => /* @__PURE__ */ x(
235
+ Y,
236
236
  {
237
237
  defaultViewBox: "0 0 448 512",
238
238
  size: "size-5",
@@ -257,8 +257,8 @@ const Ks = ({
257
257
  title: r,
258
258
  monotone: n,
259
259
  ...o
260
- }) => /* @__PURE__ */ k(
261
- q,
260
+ }) => /* @__PURE__ */ x(
261
+ Y,
262
262
  {
263
263
  defaultViewBox: "0 0 448 512",
264
264
  size: "size-5",
@@ -284,7 +284,7 @@ const Ks = ({
284
284
  monotone: n,
285
285
  ...o
286
286
  }) => /* @__PURE__ */ u(
287
- q,
287
+ Y,
288
288
  {
289
289
  defaultViewBox: "0 0 384 512",
290
290
  size: "size-5",
@@ -307,7 +307,7 @@ const Ks = ({
307
307
  monotone: n,
308
308
  ...o
309
309
  }) => /* @__PURE__ */ u(
310
- q,
310
+ Y,
311
311
  {
312
312
  defaultViewBox: "0 0 384 512",
313
313
  size: "size-5",
@@ -323,8 +323,8 @@ const Ks = ({
323
323
  title: r,
324
324
  monotone: n,
325
325
  ...o
326
- }) => /* @__PURE__ */ k(
327
- q,
326
+ }) => /* @__PURE__ */ x(
327
+ Y,
328
328
  {
329
329
  defaultViewBox: "0 0 384 512",
330
330
  size: "size-5",
@@ -349,8 +349,8 @@ const Ks = ({
349
349
  title: r,
350
350
  monotone: n,
351
351
  ...o
352
- }) => /* @__PURE__ */ k(
353
- q,
352
+ }) => /* @__PURE__ */ x(
353
+ Y,
354
354
  {
355
355
  defaultViewBox: "0 0 512 512",
356
356
  size: "size-5",
@@ -376,7 +376,7 @@ const Ks = ({
376
376
  monotone: n,
377
377
  ...o
378
378
  }) => /* @__PURE__ */ u(
379
- q,
379
+ Y,
380
380
  {
381
381
  defaultViewBox: "0 0 24 24",
382
382
  size: "size-5",
@@ -392,8 +392,8 @@ const Ks = ({
392
392
  title: r,
393
393
  monotone: n,
394
394
  ...o
395
- }) => /* @__PURE__ */ k(
396
- q,
395
+ }) => /* @__PURE__ */ x(
396
+ Y,
397
397
  {
398
398
  defaultViewBox: "0 0 512 512",
399
399
  size: "size-5",
@@ -418,8 +418,8 @@ const Ks = ({
418
418
  title: r,
419
419
  monotone: n,
420
420
  ...o
421
- }) => /* @__PURE__ */ k(
422
- q,
421
+ }) => /* @__PURE__ */ x(
422
+ Y,
423
423
  {
424
424
  defaultViewBox: "0 0 512 512",
425
425
  size: "size-5",
@@ -444,8 +444,8 @@ const Ks = ({
444
444
  title: r,
445
445
  monotone: n,
446
446
  ...o
447
- }) => /* @__PURE__ */ k(
448
- q,
447
+ }) => /* @__PURE__ */ x(
448
+ Y,
449
449
  {
450
450
  defaultViewBox: "0 0 384 512",
451
451
  size: "size-5",
@@ -470,8 +470,8 @@ const Ks = ({
470
470
  title: r,
471
471
  monotone: n,
472
472
  ...o
473
- }) => /* @__PURE__ */ k(
474
- q,
473
+ }) => /* @__PURE__ */ x(
474
+ Y,
475
475
  {
476
476
  defaultViewBox: "0 0 448 512",
477
477
  size: "size-5",
@@ -496,8 +496,8 @@ const Ks = ({
496
496
  title: r,
497
497
  monotone: n,
498
498
  ...o
499
- }) => /* @__PURE__ */ k(
500
- q,
499
+ }) => /* @__PURE__ */ x(
500
+ Y,
501
501
  {
502
502
  defaultViewBox: "0 0 576 512",
503
503
  size: "size-5",
@@ -523,7 +523,7 @@ const Ks = ({
523
523
  monotone: n,
524
524
  ...o
525
525
  }) => /* @__PURE__ */ u(
526
- q,
526
+ Y,
527
527
  {
528
528
  defaultViewBox: "0 0 24 24",
529
529
  size: "size-5",
@@ -539,8 +539,8 @@ const Ks = ({
539
539
  title: r,
540
540
  monotone: n,
541
541
  ...o
542
- }) => /* @__PURE__ */ k(
543
- q,
542
+ }) => /* @__PURE__ */ x(
543
+ Y,
544
544
  {
545
545
  defaultViewBox: "0 0 576 512",
546
546
  size: "size-5",
@@ -565,8 +565,8 @@ const Ks = ({
565
565
  title: r,
566
566
  monotone: n,
567
567
  ...o
568
- }) => /* @__PURE__ */ k(
569
- q,
568
+ }) => /* @__PURE__ */ x(
569
+ Y,
570
570
  {
571
571
  defaultViewBox: "0 0 576 512",
572
572
  size: "size-5",
@@ -591,8 +591,8 @@ const Ks = ({
591
591
  title: r,
592
592
  monotone: n,
593
593
  ...o
594
- }) => /* @__PURE__ */ k(
595
- q,
594
+ }) => /* @__PURE__ */ x(
595
+ Y,
596
596
  {
597
597
  defaultViewBox: "0 0 512 512",
598
598
  size: "size-5",
@@ -617,8 +617,8 @@ const Ks = ({
617
617
  title: r,
618
618
  monotone: n,
619
619
  ...o
620
- }) => /* @__PURE__ */ k(
621
- q,
620
+ }) => /* @__PURE__ */ x(
621
+ Y,
622
622
  {
623
623
  defaultViewBox: "0 0 512 512",
624
624
  size: "size-5",
@@ -644,7 +644,7 @@ const Ks = ({
644
644
  monotone: n,
645
645
  ...o
646
646
  }) => /* @__PURE__ */ u(
647
- q,
647
+ Y,
648
648
  {
649
649
  defaultViewBox: "0 0 448 512",
650
650
  size: "size-5",
@@ -660,8 +660,8 @@ const Ks = ({
660
660
  title: r,
661
661
  monotone: n,
662
662
  ...o
663
- }) => /* @__PURE__ */ k(
664
- q,
663
+ }) => /* @__PURE__ */ x(
664
+ Y,
665
665
  {
666
666
  defaultViewBox: "0 0 512 512",
667
667
  size: "size-5",
@@ -686,8 +686,8 @@ const Ks = ({
686
686
  title: r,
687
687
  monotone: n,
688
688
  ...o
689
- }) => /* @__PURE__ */ k(
690
- q,
689
+ }) => /* @__PURE__ */ x(
690
+ Y,
691
691
  {
692
692
  defaultViewBox: "0 0 448 512",
693
693
  size: "size-5",
@@ -723,7 +723,7 @@ try {
723
723
  });
724
724
  } catch {
725
725
  }
726
- var ko = "vercel.ai.error", Ii = Symbol.for(ko), xo, Ei = class Co extends Error {
726
+ var xo = "vercel.ai.error", Ii = Symbol.for(xo), ko, Ei = class Co extends Error {
727
727
  /**
728
728
  * Creates an AI SDK Error.
729
729
  *
@@ -737,7 +737,7 @@ var ko = "vercel.ai.error", Ii = Symbol.for(ko), xo, Ei = class Co extends Error
737
737
  message: r,
738
738
  cause: n
739
739
  }) {
740
- super(r), this[xo] = !0, this.name = t, this.cause = n;
740
+ super(r), this[ko] = !0, this.name = t, this.cause = n;
741
741
  }
742
742
  /**
743
743
  * Checks if the given error is an AI SDK Error.
@@ -745,14 +745,14 @@ var ko = "vercel.ai.error", Ii = Symbol.for(ko), xo, Ei = class Co extends Error
745
745
  * @returns {boolean} True if the error is an AI SDK Error, false otherwise.
746
746
  */
747
747
  static isInstance(t) {
748
- return Co.hasMarker(t, ko);
748
+ return Co.hasMarker(t, xo);
749
749
  }
750
750
  static hasMarker(t, r) {
751
751
  const n = Symbol.for(r);
752
752
  return t != null && typeof t == "object" && n in t && typeof t[n] == "boolean" && t[n] === !0;
753
753
  }
754
754
  };
755
- xo = Ii;
755
+ ko = Ii;
756
756
  var Ne = Ei;
757
757
  function No(e) {
758
758
  return e == null ? "unknown error" : typeof e == "string" ? e : e instanceof Error ? e.message : JSON.stringify(e);
@@ -770,7 +770,7 @@ var zo = "AI_InvalidArgumentError", Ao = `vercel.ai.error.${zo}`, Ti = Symbol.fo
770
770
  }
771
771
  };
772
772
  Oo = Ti;
773
- var $o = "AI_JSONParseError", Mo = `vercel.ai.error.${$o}`, ki = Symbol.for(Mo), Ro, fn = class extends Ne {
773
+ var $o = "AI_JSONParseError", Mo = `vercel.ai.error.${$o}`, xi = Symbol.for(Mo), Ro, fn = class extends Ne {
774
774
  constructor({ text: e, cause: t }) {
775
775
  super({
776
776
  name: $o,
@@ -783,8 +783,8 @@ Error message: ${No(t)}`,
783
783
  return Ne.hasMarker(e, Mo);
784
784
  }
785
785
  };
786
- Ro = ki;
787
- var Po = "AI_TypeValidationError", Zo = `vercel.ai.error.${Po}`, xi = Symbol.for(Zo), Do, Ci = class Tr extends Ne {
786
+ Ro = xi;
787
+ var Po = "AI_TypeValidationError", Zo = `vercel.ai.error.${Po}`, ki = Symbol.for(Zo), Do, Ci = class Tr extends Ne {
788
788
  constructor({ value: t, cause: r }) {
789
789
  super({
790
790
  name: Po,
@@ -813,7 +813,7 @@ Error message: ${No(r)}`,
813
813
  return Tr.isInstance(r) && r.value === t ? r : new Tr({ value: t, cause: r });
814
814
  }
815
815
  };
816
- Do = xi;
816
+ Do = ki;
817
817
  var Vt = Ci;
818
818
  class gn extends Error {
819
819
  constructor(t, r) {
@@ -1432,7 +1432,7 @@ const vc = (e) => {
1432
1432
  inst: e
1433
1433
  });
1434
1434
  };
1435
- }), kc = /* @__PURE__ */ y("$ZodCheckMaxLength", (e, t) => {
1435
+ }), xc = /* @__PURE__ */ y("$ZodCheckMaxLength", (e, t) => {
1436
1436
  var r;
1437
1437
  ue.init(e, t), (r = e._zod.def).when ?? (r.when = (n) => {
1438
1438
  const o = n.value;
@@ -1455,7 +1455,7 @@ const vc = (e) => {
1455
1455
  continue: !t.abort
1456
1456
  });
1457
1457
  };
1458
- }), xc = /* @__PURE__ */ y("$ZodCheckMinLength", (e, t) => {
1458
+ }), kc = /* @__PURE__ */ y("$ZodCheckMinLength", (e, t) => {
1459
1459
  var r;
1460
1460
  ue.init(e, t), (r = e._zod.def).when ?? (r.when = (n) => {
1461
1461
  const o = n.value;
@@ -1689,10 +1689,10 @@ const Zc = {
1689
1689
  inst: e
1690
1690
  }), r;
1691
1691
  };
1692
- }), G = /* @__PURE__ */ y("$ZodStringFormat", (e, t) => {
1692
+ }), W = /* @__PURE__ */ y("$ZodStringFormat", (e, t) => {
1693
1693
  Kt.init(e, t), Br.init(e, t);
1694
1694
  }), Dc = /* @__PURE__ */ y("$ZodGUID", (e, t) => {
1695
- t.pattern ?? (t.pattern = nc), G.init(e, t);
1695
+ t.pattern ?? (t.pattern = nc), W.init(e, t);
1696
1696
  }), Lc = /* @__PURE__ */ y("$ZodUUID", (e, t) => {
1697
1697
  if (t.version) {
1698
1698
  const n = {
@@ -1710,11 +1710,11 @@ const Zc = {
1710
1710
  t.pattern ?? (t.pattern = vn(n));
1711
1711
  } else
1712
1712
  t.pattern ?? (t.pattern = vn());
1713
- G.init(e, t);
1713
+ W.init(e, t);
1714
1714
  }), Uc = /* @__PURE__ */ y("$ZodEmail", (e, t) => {
1715
- t.pattern ?? (t.pattern = oc), G.init(e, t);
1715
+ t.pattern ?? (t.pattern = oc), W.init(e, t);
1716
1716
  }), Bc = /* @__PURE__ */ y("$ZodURL", (e, t) => {
1717
- G.init(e, t), e._zod.check = (r) => {
1717
+ W.init(e, t), e._zod.check = (r) => {
1718
1718
  try {
1719
1719
  const n = r.value, o = new URL(n), a = o.href;
1720
1720
  t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(o.hostname) || r.issues.push({
@@ -1746,34 +1746,34 @@ const Zc = {
1746
1746
  }
1747
1747
  };
1748
1748
  }), jc = /* @__PURE__ */ y("$ZodEmoji", (e, t) => {
1749
- t.pattern ?? (t.pattern = sc()), G.init(e, t);
1749
+ t.pattern ?? (t.pattern = sc()), W.init(e, t);
1750
1750
  }), Vc = /* @__PURE__ */ y("$ZodNanoID", (e, t) => {
1751
- t.pattern ?? (t.pattern = tc), G.init(e, t);
1751
+ t.pattern ?? (t.pattern = tc), W.init(e, t);
1752
1752
  }), Fc = /* @__PURE__ */ y("$ZodCUID", (e, t) => {
1753
- t.pattern ?? (t.pattern = Yi), G.init(e, t);
1753
+ t.pattern ?? (t.pattern = Yi), W.init(e, t);
1754
1754
  }), Hc = /* @__PURE__ */ y("$ZodCUID2", (e, t) => {
1755
- t.pattern ?? (t.pattern = Xi), G.init(e, t);
1755
+ t.pattern ?? (t.pattern = Xi), W.init(e, t);
1756
1756
  }), Jc = /* @__PURE__ */ y("$ZodULID", (e, t) => {
1757
- t.pattern ?? (t.pattern = Qi), G.init(e, t);
1757
+ t.pattern ?? (t.pattern = Qi), W.init(e, t);
1758
1758
  }), Gc = /* @__PURE__ */ y("$ZodXID", (e, t) => {
1759
- t.pattern ?? (t.pattern = Ki), G.init(e, t);
1759
+ t.pattern ?? (t.pattern = Ki), W.init(e, t);
1760
1760
  }), Wc = /* @__PURE__ */ y("$ZodKSUID", (e, t) => {
1761
- t.pattern ?? (t.pattern = ec), G.init(e, t);
1761
+ t.pattern ?? (t.pattern = ec), W.init(e, t);
1762
1762
  }), qc = /* @__PURE__ */ y("$ZodISODateTime", (e, t) => {
1763
- t.pattern ?? (t.pattern = gc(t)), G.init(e, t);
1763
+ t.pattern ?? (t.pattern = gc(t)), W.init(e, t);
1764
1764
  }), Yc = /* @__PURE__ */ y("$ZodISODate", (e, t) => {
1765
- t.pattern ?? (t.pattern = hc), G.init(e, t);
1765
+ t.pattern ?? (t.pattern = hc), W.init(e, t);
1766
1766
  }), Xc = /* @__PURE__ */ y("$ZodISOTime", (e, t) => {
1767
- t.pattern ?? (t.pattern = fc(t)), G.init(e, t);
1767
+ t.pattern ?? (t.pattern = fc(t)), W.init(e, t);
1768
1768
  }), Qc = /* @__PURE__ */ y("$ZodISODuration", (e, t) => {
1769
- t.pattern ?? (t.pattern = rc), G.init(e, t);
1769
+ t.pattern ?? (t.pattern = rc), W.init(e, t);
1770
1770
  }), Kc = /* @__PURE__ */ y("$ZodIPv4", (e, t) => {
1771
- t.pattern ?? (t.pattern = ic), G.init(e, t), e._zod.onattach.push((r) => {
1771
+ t.pattern ?? (t.pattern = ic), W.init(e, t), e._zod.onattach.push((r) => {
1772
1772
  const n = r._zod.bag;
1773
1773
  n.format = "ipv4";
1774
1774
  });
1775
1775
  }), el = /* @__PURE__ */ y("$ZodIPv6", (e, t) => {
1776
- t.pattern ?? (t.pattern = cc), G.init(e, t), e._zod.onattach.push((r) => {
1776
+ t.pattern ?? (t.pattern = cc), W.init(e, t), e._zod.onattach.push((r) => {
1777
1777
  const n = r._zod.bag;
1778
1778
  n.format = "ipv6";
1779
1779
  }), e._zod.check = (r) => {
@@ -1790,9 +1790,9 @@ const Zc = {
1790
1790
  }
1791
1791
  };
1792
1792
  }), tl = /* @__PURE__ */ y("$ZodCIDRv4", (e, t) => {
1793
- t.pattern ?? (t.pattern = lc), G.init(e, t);
1793
+ t.pattern ?? (t.pattern = lc), W.init(e, t);
1794
1794
  }), rl = /* @__PURE__ */ y("$ZodCIDRv6", (e, t) => {
1795
- t.pattern ?? (t.pattern = uc), G.init(e, t), e._zod.check = (r) => {
1795
+ t.pattern ?? (t.pattern = uc), W.init(e, t), e._zod.check = (r) => {
1796
1796
  const [n, o] = r.value.split("/");
1797
1797
  try {
1798
1798
  if (!o)
@@ -1826,7 +1826,7 @@ function Ko(e) {
1826
1826
  }
1827
1827
  }
1828
1828
  const nl = /* @__PURE__ */ y("$ZodBase64", (e, t) => {
1829
- t.pattern ?? (t.pattern = dc), G.init(e, t), e._zod.onattach.push((r) => {
1829
+ t.pattern ?? (t.pattern = dc), W.init(e, t), e._zod.onattach.push((r) => {
1830
1830
  r._zod.bag.contentEncoding = "base64";
1831
1831
  }), e._zod.check = (r) => {
1832
1832
  Ko(r.value) || r.issues.push({
@@ -1845,7 +1845,7 @@ function ol(e) {
1845
1845
  return Ko(r);
1846
1846
  }
1847
1847
  const al = /* @__PURE__ */ y("$ZodBase64URL", (e, t) => {
1848
- t.pattern ?? (t.pattern = Go), G.init(e, t), e._zod.onattach.push((r) => {
1848
+ t.pattern ?? (t.pattern = Go), W.init(e, t), e._zod.onattach.push((r) => {
1849
1849
  r._zod.bag.contentEncoding = "base64url";
1850
1850
  }), e._zod.check = (r) => {
1851
1851
  ol(r.value) || r.issues.push({
@@ -1857,7 +1857,7 @@ const al = /* @__PURE__ */ y("$ZodBase64URL", (e, t) => {
1857
1857
  });
1858
1858
  };
1859
1859
  }), sl = /* @__PURE__ */ y("$ZodE164", (e, t) => {
1860
- t.pattern ?? (t.pattern = mc), G.init(e, t);
1860
+ t.pattern ?? (t.pattern = mc), W.init(e, t);
1861
1861
  });
1862
1862
  function il(e, t = null) {
1863
1863
  try {
@@ -1874,7 +1874,7 @@ function il(e, t = null) {
1874
1874
  }
1875
1875
  }
1876
1876
  const cl = /* @__PURE__ */ y("$ZodJWT", (e, t) => {
1877
- G.init(e, t), e._zod.check = (r) => {
1877
+ W.init(e, t), e._zod.check = (r) => {
1878
1878
  il(r.value, t.alg) || r.issues.push({
1879
1879
  code: "invalid_format",
1880
1880
  format: "jwt",
@@ -2066,8 +2066,8 @@ const fl = /* @__PURE__ */ y("$ZodObject", (e, t) => {
2066
2066
  d.value = {};
2067
2067
  const E = p.shape;
2068
2068
  for (const _ of p.keys) {
2069
- const P = E[_], z = P._zod.run({ value: f[_], issues: [] }, g), x = P._zod.optin === "optional" && P._zod.optout === "optional";
2070
- z instanceof Promise ? m.push(z.then((A) => x ? _n(A, d, _, f) : St(A, d, _))) : x ? _n(z, d, _, f) : St(z, d, _);
2069
+ const P = E[_], z = P._zod.run({ value: f[_], issues: [] }, g), k = P._zod.optin === "optional" && P._zod.optout === "optional";
2070
+ z instanceof Promise ? m.push(z.then((A) => k ? _n(A, d, _, f) : St(A, d, _))) : k ? _n(z, d, _, f) : St(z, d, _);
2071
2071
  }
2072
2072
  }
2073
2073
  if (!c)
@@ -2339,7 +2339,7 @@ function In(e, t) {
2339
2339
  }
2340
2340
  const Sl = /* @__PURE__ */ y("$ZodPrefault", (e, t) => {
2341
2341
  B.init(e, t), e._zod.optin = "optional", Z(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
2342
- }), kl = /* @__PURE__ */ y("$ZodNonOptional", (e, t) => {
2342
+ }), xl = /* @__PURE__ */ y("$ZodNonOptional", (e, t) => {
2343
2343
  B.init(e, t), Z(e._zod, "values", () => {
2344
2344
  const r = t.innerType._zod.values;
2345
2345
  return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
@@ -2356,7 +2356,7 @@ function En(e, t) {
2356
2356
  inst: t
2357
2357
  }), e;
2358
2358
  }
2359
- const xl = /* @__PURE__ */ y("$ZodCatch", (e, t) => {
2359
+ const kl = /* @__PURE__ */ y("$ZodCatch", (e, t) => {
2360
2360
  B.init(e, t), e._zod.optin = "optional", Z(e._zod, "optout", () => t.innerType._zod.optout), Z(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
2361
2361
  const o = t.innerType._zod.run(r, n);
2362
2362
  return o instanceof Promise ? o.then((a) => (r.value = a.value, a.issues.length && (r.value = t.catchValue({
@@ -2397,11 +2397,11 @@ const zl = /* @__PURE__ */ y("$ZodLazy", (e, t) => {
2397
2397
  ue.init(e, t), B.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
2398
2398
  const n = r.value, o = t.fn(n);
2399
2399
  if (o instanceof Promise)
2400
- return o.then((a) => kn(a, r, n, e));
2401
- kn(o, r, n, e);
2400
+ return o.then((a) => xn(a, r, n, e));
2401
+ xn(o, r, n, e);
2402
2402
  };
2403
2403
  });
2404
- function kn(e, t, r, n) {
2404
+ function xn(e, t, r, n) {
2405
2405
  if (!e) {
2406
2406
  const o = {
2407
2407
  code: "custom",
@@ -2467,7 +2467,7 @@ function Ml(e, t) {
2467
2467
  ...S(t)
2468
2468
  });
2469
2469
  }
2470
- function xn(e, t) {
2470
+ function kn(e, t) {
2471
2471
  return new e({
2472
2472
  type: "string",
2473
2473
  format: "guid",
@@ -2774,14 +2774,14 @@ function zn(e, t) {
2774
2774
  });
2775
2775
  }
2776
2776
  function oa(e, t) {
2777
- return new kc({
2777
+ return new xc({
2778
2778
  check: "max_length",
2779
2779
  ...S(t),
2780
2780
  maximum: e
2781
2781
  });
2782
2782
  }
2783
2783
  function Jt(e, t) {
2784
- return new xc({
2784
+ return new kc({
2785
2785
  check: "min_length",
2786
2786
  ...S(t),
2787
2787
  minimum: e
@@ -3396,25 +3396,25 @@ function K(e, t) {
3396
3396
  throw new Error(`Unknown schema type: ${o.type}`);
3397
3397
  }
3398
3398
  const Tu = /* @__PURE__ */ y("ZodISODateTime", (e, t) => {
3399
- qc.init(e, t), Y.init(e, t);
3399
+ qc.init(e, t), X.init(e, t);
3400
3400
  });
3401
3401
  function Su(e) {
3402
3402
  return eu(Tu, e);
3403
3403
  }
3404
- const ku = /* @__PURE__ */ y("ZodISODate", (e, t) => {
3405
- Yc.init(e, t), Y.init(e, t);
3404
+ const xu = /* @__PURE__ */ y("ZodISODate", (e, t) => {
3405
+ Yc.init(e, t), X.init(e, t);
3406
3406
  });
3407
- function xu(e) {
3408
- return tu(ku, e);
3407
+ function ku(e) {
3408
+ return tu(xu, e);
3409
3409
  }
3410
3410
  const Cu = /* @__PURE__ */ y("ZodISOTime", (e, t) => {
3411
- Xc.init(e, t), Y.init(e, t);
3411
+ Xc.init(e, t), X.init(e, t);
3412
3412
  });
3413
3413
  function Nu(e) {
3414
3414
  return ru(Cu, e);
3415
3415
  }
3416
3416
  const zu = /* @__PURE__ */ y("ZodISODuration", (e, t) => {
3417
- Qc.init(e, t), Y.init(e, t);
3417
+ Qc.init(e, t), X.init(e, t);
3418
3418
  });
3419
3419
  function Au(e) {
3420
3420
  return nu(zu, e);
@@ -3446,7 +3446,7 @@ const Ou = (e, t) => {
3446
3446
  });
3447
3447
  }, er = y("ZodError", Ou, {
3448
3448
  Parent: Error
3449
- }), $u = /* @__PURE__ */ Ji(er), Mu = /* @__PURE__ */ Gi(er), Ru = /* @__PURE__ */ Ho(er), sa = /* @__PURE__ */ Jo(er), W = /* @__PURE__ */ y("ZodType", (e, t) => (B.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
3449
+ }), $u = /* @__PURE__ */ Ji(er), Mu = /* @__PURE__ */ Gi(er), Ru = /* @__PURE__ */ Ho(er), sa = /* @__PURE__ */ Jo(er), q = /* @__PURE__ */ y("ZodType", (e, t) => (B.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
3450
3450
  {
3451
3451
  ...t,
3452
3452
  checks: [
@@ -3469,61 +3469,61 @@ const Ou = (e, t) => {
3469
3469
  const n = e.clone();
3470
3470
  return nt.add(n, r[0]), n;
3471
3471
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), ia = /* @__PURE__ */ y("_ZodString", (e, t) => {
3472
- Br.init(e, t), W.init(e, t);
3472
+ Br.init(e, t), q.init(e, t);
3473
3473
  const r = e._zod.bag;
3474
3474
  e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(uu(...n)), e.includes = (...n) => e.check(mu(...n)), e.startsWith = (...n) => e.check(hu(...n)), e.endsWith = (...n) => e.check(fu(...n)), e.min = (...n) => e.check(Jt(...n)), e.max = (...n) => e.check(oa(...n)), e.length = (...n) => e.check(aa(...n)), e.nonempty = (...n) => e.check(Jt(1, ...n)), e.lowercase = (n) => e.check(du(n)), e.uppercase = (n) => e.check(pu(n)), e.trim = () => e.check(vu()), e.normalize = (...n) => e.check(gu(...n)), e.toLowerCase = () => e.check(yu()), e.toUpperCase = () => e.check(_u());
3475
3475
  }), Pu = /* @__PURE__ */ y("ZodString", (e, t) => {
3476
- Br.init(e, t), ia.init(e, t), e.email = (r) => e.check(Ml(Zu, r)), e.url = (r) => e.check(Ll(Du, r)), e.jwt = (r) => e.check(Kl(Qu, r)), e.emoji = (r) => e.check(Ul(Lu, r)), e.guid = (r) => e.check(xn(On, r)), e.uuid = (r) => e.check(Rl(kt, r)), e.uuidv4 = (r) => e.check(Pl(kt, r)), e.uuidv6 = (r) => e.check(Zl(kt, r)), e.uuidv7 = (r) => e.check(Dl(kt, r)), e.nanoid = (r) => e.check(Bl(Uu, r)), e.guid = (r) => e.check(xn(On, r)), e.cuid = (r) => e.check(jl(Bu, r)), e.cuid2 = (r) => e.check(Vl(ju, r)), e.ulid = (r) => e.check(Fl(Vu, r)), e.base64 = (r) => e.check(na(ca, r)), e.base64url = (r) => e.check(Xl(Yu, r)), e.xid = (r) => e.check(Hl(Fu, r)), e.ksuid = (r) => e.check(Jl(Hu, r)), e.ipv4 = (r) => e.check(Gl(Ju, r)), e.ipv6 = (r) => e.check(Wl(Gu, r)), e.cidrv4 = (r) => e.check(ql(Wu, r)), e.cidrv6 = (r) => e.check(Yl(qu, r)), e.e164 = (r) => e.check(Ql(Xu, r)), e.datetime = (r) => e.check(Su(r)), e.date = (r) => e.check(xu(r)), e.time = (r) => e.check(Nu(r)), e.duration = (r) => e.check(Au(r));
3476
+ Br.init(e, t), ia.init(e, t), e.email = (r) => e.check(Ml(Zu, r)), e.url = (r) => e.check(Ll(Du, r)), e.jwt = (r) => e.check(Kl(Qu, r)), e.emoji = (r) => e.check(Ul(Lu, r)), e.guid = (r) => e.check(kn(On, r)), e.uuid = (r) => e.check(Rl(xt, r)), e.uuidv4 = (r) => e.check(Pl(xt, r)), e.uuidv6 = (r) => e.check(Zl(xt, r)), e.uuidv7 = (r) => e.check(Dl(xt, r)), e.nanoid = (r) => e.check(Bl(Uu, r)), e.guid = (r) => e.check(kn(On, r)), e.cuid = (r) => e.check(jl(Bu, r)), e.cuid2 = (r) => e.check(Vl(ju, r)), e.ulid = (r) => e.check(Fl(Vu, r)), e.base64 = (r) => e.check(na(ca, r)), e.base64url = (r) => e.check(Xl(Yu, r)), e.xid = (r) => e.check(Hl(Fu, r)), e.ksuid = (r) => e.check(Jl(Hu, r)), e.ipv4 = (r) => e.check(Gl(Ju, r)), e.ipv6 = (r) => e.check(Wl(Gu, r)), e.cidrv4 = (r) => e.check(ql(Wu, r)), e.cidrv6 = (r) => e.check(Yl(qu, r)), e.e164 = (r) => e.check(Ql(Xu, r)), e.datetime = (r) => e.check(Su(r)), e.date = (r) => e.check(ku(r)), e.time = (r) => e.check(Nu(r)), e.duration = (r) => e.check(Au(r));
3477
3477
  });
3478
3478
  function w(e) {
3479
3479
  return $l(Pu, e);
3480
3480
  }
3481
- const Y = /* @__PURE__ */ y("ZodStringFormat", (e, t) => {
3482
- G.init(e, t), ia.init(e, t);
3481
+ const X = /* @__PURE__ */ y("ZodStringFormat", (e, t) => {
3482
+ W.init(e, t), ia.init(e, t);
3483
3483
  }), Zu = /* @__PURE__ */ y("ZodEmail", (e, t) => {
3484
- Uc.init(e, t), Y.init(e, t);
3484
+ Uc.init(e, t), X.init(e, t);
3485
3485
  }), On = /* @__PURE__ */ y("ZodGUID", (e, t) => {
3486
- Dc.init(e, t), Y.init(e, t);
3487
- }), kt = /* @__PURE__ */ y("ZodUUID", (e, t) => {
3488
- Lc.init(e, t), Y.init(e, t);
3486
+ Dc.init(e, t), X.init(e, t);
3487
+ }), xt = /* @__PURE__ */ y("ZodUUID", (e, t) => {
3488
+ Lc.init(e, t), X.init(e, t);
3489
3489
  }), Du = /* @__PURE__ */ y("ZodURL", (e, t) => {
3490
- Bc.init(e, t), Y.init(e, t);
3490
+ Bc.init(e, t), X.init(e, t);
3491
3491
  }), Lu = /* @__PURE__ */ y("ZodEmoji", (e, t) => {
3492
- jc.init(e, t), Y.init(e, t);
3492
+ jc.init(e, t), X.init(e, t);
3493
3493
  }), Uu = /* @__PURE__ */ y("ZodNanoID", (e, t) => {
3494
- Vc.init(e, t), Y.init(e, t);
3494
+ Vc.init(e, t), X.init(e, t);
3495
3495
  }), Bu = /* @__PURE__ */ y("ZodCUID", (e, t) => {
3496
- Fc.init(e, t), Y.init(e, t);
3496
+ Fc.init(e, t), X.init(e, t);
3497
3497
  }), ju = /* @__PURE__ */ y("ZodCUID2", (e, t) => {
3498
- Hc.init(e, t), Y.init(e, t);
3498
+ Hc.init(e, t), X.init(e, t);
3499
3499
  }), Vu = /* @__PURE__ */ y("ZodULID", (e, t) => {
3500
- Jc.init(e, t), Y.init(e, t);
3500
+ Jc.init(e, t), X.init(e, t);
3501
3501
  }), Fu = /* @__PURE__ */ y("ZodXID", (e, t) => {
3502
- Gc.init(e, t), Y.init(e, t);
3502
+ Gc.init(e, t), X.init(e, t);
3503
3503
  }), Hu = /* @__PURE__ */ y("ZodKSUID", (e, t) => {
3504
- Wc.init(e, t), Y.init(e, t);
3504
+ Wc.init(e, t), X.init(e, t);
3505
3505
  }), Ju = /* @__PURE__ */ y("ZodIPv4", (e, t) => {
3506
- Kc.init(e, t), Y.init(e, t);
3506
+ Kc.init(e, t), X.init(e, t);
3507
3507
  }), Gu = /* @__PURE__ */ y("ZodIPv6", (e, t) => {
3508
- el.init(e, t), Y.init(e, t);
3508
+ el.init(e, t), X.init(e, t);
3509
3509
  }), Wu = /* @__PURE__ */ y("ZodCIDRv4", (e, t) => {
3510
- tl.init(e, t), Y.init(e, t);
3510
+ tl.init(e, t), X.init(e, t);
3511
3511
  }), qu = /* @__PURE__ */ y("ZodCIDRv6", (e, t) => {
3512
- rl.init(e, t), Y.init(e, t);
3512
+ rl.init(e, t), X.init(e, t);
3513
3513
  }), ca = /* @__PURE__ */ y("ZodBase64", (e, t) => {
3514
- nl.init(e, t), Y.init(e, t);
3514
+ nl.init(e, t), X.init(e, t);
3515
3515
  });
3516
3516
  function la(e) {
3517
3517
  return na(ca, e);
3518
3518
  }
3519
3519
  const Yu = /* @__PURE__ */ y("ZodBase64URL", (e, t) => {
3520
- al.init(e, t), Y.init(e, t);
3520
+ al.init(e, t), X.init(e, t);
3521
3521
  }), Xu = /* @__PURE__ */ y("ZodE164", (e, t) => {
3522
- sl.init(e, t), Y.init(e, t);
3522
+ sl.init(e, t), X.init(e, t);
3523
3523
  }), Qu = /* @__PURE__ */ y("ZodJWT", (e, t) => {
3524
- cl.init(e, t), Y.init(e, t);
3524
+ cl.init(e, t), X.init(e, t);
3525
3525
  }), ua = /* @__PURE__ */ y("ZodNumber", (e, t) => {
3526
- ea.init(e, t), W.init(e, t), e.gt = (n, o) => e.check(Nn(n, o)), e.gte = (n, o) => e.check(dr(n, o)), e.min = (n, o) => e.check(dr(n, o)), e.lt = (n, o) => e.check(Cn(n, o)), e.lte = (n, o) => e.check(ur(n, o)), e.max = (n, o) => e.check(ur(n, o)), e.int = (n) => e.check($n(n)), e.safe = (n) => e.check($n(n)), e.positive = (n) => e.check(Nn(0, n)), e.nonnegative = (n) => e.check(dr(0, n)), e.negative = (n) => e.check(Cn(0, n)), e.nonpositive = (n) => e.check(ur(0, n)), e.multipleOf = (n, o) => e.check(zn(n, o)), e.step = (n, o) => e.check(zn(n, o)), e.finite = () => e;
3526
+ ea.init(e, t), q.init(e, t), e.gt = (n, o) => e.check(Nn(n, o)), e.gte = (n, o) => e.check(dr(n, o)), e.min = (n, o) => e.check(dr(n, o)), e.lt = (n, o) => e.check(Cn(n, o)), e.lte = (n, o) => e.check(ur(n, o)), e.max = (n, o) => e.check(ur(n, o)), e.int = (n) => e.check($n(n)), e.safe = (n) => e.check($n(n)), e.positive = (n) => e.check(Nn(0, n)), e.nonnegative = (n) => e.check(dr(0, n)), e.negative = (n) => e.check(Cn(0, n)), e.nonpositive = (n) => e.check(ur(0, n)), e.multipleOf = (n, o) => e.check(zn(n, o)), e.step = (n, o) => e.check(zn(n, o)), e.finite = () => e;
3527
3527
  const r = e._zod.bag;
3528
3528
  e.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), e.isFinite = !0, e.format = r.format ?? null;
3529
3529
  });
@@ -3537,37 +3537,37 @@ function $n(e) {
3537
3537
  return au(Ku, e);
3538
3538
  }
3539
3539
  const ed = /* @__PURE__ */ y("ZodBoolean", (e, t) => {
3540
- ul.init(e, t), W.init(e, t);
3540
+ ul.init(e, t), q.init(e, t);
3541
3541
  });
3542
- function X(e) {
3542
+ function H(e) {
3543
3543
  return su(ed, e);
3544
3544
  }
3545
3545
  const td = /* @__PURE__ */ y("ZodNull", (e, t) => {
3546
- dl.init(e, t), W.init(e, t);
3546
+ dl.init(e, t), q.init(e, t);
3547
3547
  });
3548
3548
  function rd(e) {
3549
3549
  return iu(td, e);
3550
3550
  }
3551
3551
  const nd = /* @__PURE__ */ y("ZodUnknown", (e, t) => {
3552
- pl.init(e, t), W.init(e, t);
3552
+ pl.init(e, t), q.init(e, t);
3553
3553
  });
3554
- function H() {
3554
+ function J() {
3555
3555
  return cu(nd);
3556
3556
  }
3557
3557
  const od = /* @__PURE__ */ y("ZodNever", (e, t) => {
3558
- ml.init(e, t), W.init(e, t);
3558
+ ml.init(e, t), q.init(e, t);
3559
3559
  });
3560
3560
  function le(e) {
3561
3561
  return lu(od, e);
3562
3562
  }
3563
3563
  const ad = /* @__PURE__ */ y("ZodArray", (e, t) => {
3564
- hl.init(e, t), W.init(e, t), e.element = t.element, e.min = (r, n) => e.check(Jt(r, n)), e.nonempty = (r) => e.check(Jt(1, r)), e.max = (r, n) => e.check(oa(r, n)), e.length = (r, n) => e.check(aa(r, n)), e.unwrap = () => e.element;
3564
+ hl.init(e, t), q.init(e, t), e.element = t.element, e.min = (r, n) => e.check(Jt(r, n)), e.nonempty = (r) => e.check(Jt(1, r)), e.max = (r, n) => e.check(oa(r, n)), e.length = (r, n) => e.check(aa(r, n)), e.unwrap = () => e.element;
3565
3565
  });
3566
3566
  function Ee(e, t) {
3567
3567
  return bu(ad, e, t);
3568
3568
  }
3569
3569
  const jr = /* @__PURE__ */ y("ZodObject", (e, t) => {
3570
- fl.init(e, t), W.init(e, t), Z(e, "shape", () => t.shape), e.keyof = () => tr(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: H() }), e.loose = () => e.clone({ ...e._zod.def, catchall: H() }), e.strict = () => e.clone({ ...e._zod.def, catchall: le() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => Ui(e, r), e.merge = (r) => Bi(e, r), e.pick = (r) => Di(e, r), e.omit = (r) => Li(e, r), e.partial = (...r) => ji(pa, e, r[0]), e.required = (...r) => Vi(ma, e, r[0]);
3570
+ fl.init(e, t), q.init(e, t), Z(e, "shape", () => t.shape), e.keyof = () => tr(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: J() }), e.loose = () => e.clone({ ...e._zod.def, catchall: J() }), e.strict = () => e.clone({ ...e._zod.def, catchall: le() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => Ui(e, r), e.merge = (r) => Bi(e, r), e.pick = (r) => Di(e, r), e.omit = (r) => Li(e, r), e.partial = (...r) => ji(pa, e, r[0]), e.required = (...r) => Vi(ma, e, r[0]);
3571
3571
  });
3572
3572
  function C(e, t) {
3573
3573
  const r = {
@@ -3595,12 +3595,12 @@ function Xe(e, t) {
3595
3595
  get shape() {
3596
3596
  return ft(this, "shape", { ...e }), this.shape;
3597
3597
  },
3598
- catchall: H(),
3598
+ catchall: J(),
3599
3599
  ...S(t)
3600
3600
  });
3601
3601
  }
3602
3602
  const da = /* @__PURE__ */ y("ZodUnion", (e, t) => {
3603
- ta.init(e, t), W.init(e, t), e.options = t.options;
3603
+ ta.init(e, t), q.init(e, t), e.options = t.options;
3604
3604
  });
3605
3605
  function ee(e, t) {
3606
3606
  return new da({
@@ -3621,7 +3621,7 @@ function id(e, t, r) {
3621
3621
  });
3622
3622
  }
3623
3623
  const cd = /* @__PURE__ */ y("ZodIntersection", (e, t) => {
3624
- vl.init(e, t), W.init(e, t);
3624
+ vl.init(e, t), q.init(e, t);
3625
3625
  });
3626
3626
  function ld(e, t) {
3627
3627
  return new cd({
@@ -3631,9 +3631,9 @@ function ld(e, t) {
3631
3631
  });
3632
3632
  }
3633
3633
  const ud = /* @__PURE__ */ y("ZodRecord", (e, t) => {
3634
- yl.init(e, t), W.init(e, t), e.keyType = t.keyType, e.valueType = t.valueType;
3634
+ yl.init(e, t), q.init(e, t), e.keyType = t.keyType, e.valueType = t.valueType;
3635
3635
  });
3636
- function kr(e, t, r) {
3636
+ function xr(e, t, r) {
3637
3637
  return new ud({
3638
3638
  type: "record",
3639
3639
  keyType: e,
@@ -3641,8 +3641,8 @@ function kr(e, t, r) {
3641
3641
  ...S(r)
3642
3642
  });
3643
3643
  }
3644
- const xr = /* @__PURE__ */ y("ZodEnum", (e, t) => {
3645
- _l.init(e, t), W.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
3644
+ const kr = /* @__PURE__ */ y("ZodEnum", (e, t) => {
3645
+ _l.init(e, t), q.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
3646
3646
  const r = new Set(Object.keys(t.entries));
3647
3647
  e.extract = (n, o) => {
3648
3648
  const a = {};
@@ -3651,7 +3651,7 @@ const xr = /* @__PURE__ */ y("ZodEnum", (e, t) => {
3651
3651
  a[i] = t.entries[i];
3652
3652
  else
3653
3653
  throw new Error(`Key ${i} not found in enum`);
3654
- return new xr({
3654
+ return new kr({
3655
3655
  ...t,
3656
3656
  checks: [],
3657
3657
  ...S(o),
@@ -3664,7 +3664,7 @@ const xr = /* @__PURE__ */ y("ZodEnum", (e, t) => {
3664
3664
  delete a[i];
3665
3665
  else
3666
3666
  throw new Error(`Key ${i} not found in enum`);
3667
- return new xr({
3667
+ return new kr({
3668
3668
  ...t,
3669
3669
  checks: [],
3670
3670
  ...S(o),
@@ -3674,14 +3674,14 @@ const xr = /* @__PURE__ */ y("ZodEnum", (e, t) => {
3674
3674
  });
3675
3675
  function tr(e, t) {
3676
3676
  const r = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
3677
- return new xr({
3677
+ return new kr({
3678
3678
  type: "enum",
3679
3679
  entries: r,
3680
3680
  ...S(t)
3681
3681
  });
3682
3682
  }
3683
3683
  const dd = /* @__PURE__ */ y("ZodLiteral", (e, t) => {
3684
- bl.init(e, t), W.init(e, t), e.values = new Set(t.values), Object.defineProperty(e, "value", {
3684
+ bl.init(e, t), q.init(e, t), e.values = new Set(t.values), Object.defineProperty(e, "value", {
3685
3685
  get() {
3686
3686
  if (t.values.length > 1)
3687
3687
  throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
@@ -3697,7 +3697,7 @@ function T(e, t) {
3697
3697
  });
3698
3698
  }
3699
3699
  const pd = /* @__PURE__ */ y("ZodTransform", (e, t) => {
3700
- wl.init(e, t), W.init(e, t), e._zod.parse = (r, n) => {
3700
+ wl.init(e, t), q.init(e, t), e._zod.parse = (r, n) => {
3701
3701
  r.addIssue = (a) => {
3702
3702
  if (typeof a == "string")
3703
3703
  r.issues.push(dt(a, r.value, t));
@@ -3717,7 +3717,7 @@ function md(e) {
3717
3717
  });
3718
3718
  }
3719
3719
  const pa = /* @__PURE__ */ y("ZodOptional", (e, t) => {
3720
- Il.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType;
3720
+ Il.init(e, t), q.init(e, t), e.unwrap = () => e._zod.def.innerType;
3721
3721
  });
3722
3722
  function Q(e) {
3723
3723
  return new pa({
@@ -3726,7 +3726,7 @@ function Q(e) {
3726
3726
  });
3727
3727
  }
3728
3728
  const hd = /* @__PURE__ */ y("ZodNullable", (e, t) => {
3729
- El.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType;
3729
+ El.init(e, t), q.init(e, t), e.unwrap = () => e._zod.def.innerType;
3730
3730
  });
3731
3731
  function Mn(e) {
3732
3732
  return new hd({
@@ -3735,7 +3735,7 @@ function Mn(e) {
3735
3735
  });
3736
3736
  }
3737
3737
  const fd = /* @__PURE__ */ y("ZodDefault", (e, t) => {
3738
- Tl.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3738
+ Tl.init(e, t), q.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3739
3739
  });
3740
3740
  function gd(e, t) {
3741
3741
  return new fd({
@@ -3747,7 +3747,7 @@ function gd(e, t) {
3747
3747
  });
3748
3748
  }
3749
3749
  const vd = /* @__PURE__ */ y("ZodPrefault", (e, t) => {
3750
- Sl.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType;
3750
+ Sl.init(e, t), q.init(e, t), e.unwrap = () => e._zod.def.innerType;
3751
3751
  });
3752
3752
  function yd(e, t) {
3753
3753
  return new vd({
@@ -3759,7 +3759,7 @@ function yd(e, t) {
3759
3759
  });
3760
3760
  }
3761
3761
  const ma = /* @__PURE__ */ y("ZodNonOptional", (e, t) => {
3762
- kl.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType;
3762
+ xl.init(e, t), q.init(e, t), e.unwrap = () => e._zod.def.innerType;
3763
3763
  });
3764
3764
  function _d(e, t) {
3765
3765
  return new ma({
@@ -3769,7 +3769,7 @@ function _d(e, t) {
3769
3769
  });
3770
3770
  }
3771
3771
  const bd = /* @__PURE__ */ y("ZodCatch", (e, t) => {
3772
- xl.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3772
+ kl.init(e, t), q.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3773
3773
  });
3774
3774
  function wd(e, t) {
3775
3775
  return new bd({
@@ -3779,7 +3779,7 @@ function wd(e, t) {
3779
3779
  });
3780
3780
  }
3781
3781
  const Id = /* @__PURE__ */ y("ZodPipe", (e, t) => {
3782
- Cl.init(e, t), W.init(e, t), e.in = t.in, e.out = t.out;
3782
+ Cl.init(e, t), q.init(e, t), e.in = t.in, e.out = t.out;
3783
3783
  });
3784
3784
  function Rn(e, t) {
3785
3785
  return new Id({
@@ -3790,7 +3790,7 @@ function Rn(e, t) {
3790
3790
  });
3791
3791
  }
3792
3792
  const Ed = /* @__PURE__ */ y("ZodReadonly", (e, t) => {
3793
- Nl.init(e, t), W.init(e, t);
3793
+ Nl.init(e, t), q.init(e, t);
3794
3794
  });
3795
3795
  function Td(e) {
3796
3796
  return new Ed({
@@ -3799,18 +3799,18 @@ function Td(e) {
3799
3799
  });
3800
3800
  }
3801
3801
  const Sd = /* @__PURE__ */ y("ZodLazy", (e, t) => {
3802
- zl.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.getter();
3802
+ zl.init(e, t), q.init(e, t), e.unwrap = () => e._zod.def.getter();
3803
3803
  });
3804
- function kd(e) {
3804
+ function xd(e) {
3805
3805
  return new Sd({
3806
3806
  type: "lazy",
3807
3807
  getter: e
3808
3808
  });
3809
3809
  }
3810
3810
  const Vr = /* @__PURE__ */ y("ZodCustom", (e, t) => {
3811
- Al.init(e, t), W.init(e, t);
3811
+ Al.init(e, t), q.init(e, t);
3812
3812
  });
3813
- function xd(e) {
3813
+ function kd(e) {
3814
3814
  const t = new ue({
3815
3815
  check: "custom"
3816
3816
  // ...util.normalizeParams(params),
@@ -3824,7 +3824,7 @@ function Nd(e, t = {}) {
3824
3824
  return Iu(Vr, e, t);
3825
3825
  }
3826
3826
  function zd(e) {
3827
- const t = xd((r) => (r.addIssue = (n) => {
3827
+ const t = kd((r) => (r.addIssue = (n) => {
3828
3828
  if (typeof n == "string")
3829
3829
  r.issues.push(dt(n, r.value, t._zod.def));
3830
3830
  else {
@@ -4823,7 +4823,7 @@ var Tp = (e, t) => {
4823
4823
  )}! Defaulting to any`
4824
4824
  ), de()) : t.$refStrategy === "seen" ? de() : void 0;
4825
4825
  }
4826
- }, Sp = (e, t, r) => (e.description && (r.description = e.description), r), kp = (e) => {
4826
+ }, Sp = (e, t, r) => (e.description && (r.description = e.description), r), xp = (e) => {
4827
4827
  const t = Fd(e), r = t.name !== void 0 ? [...t.basePath, t.definitionPath, t.name] : t.basePath;
4828
4828
  return {
4829
4829
  ...t,
@@ -4841,9 +4841,9 @@ var Tp = (e, t) => {
4841
4841
  ])
4842
4842
  )
4843
4843
  };
4844
- }, xp = (e, t) => {
4844
+ }, kp = (e, t) => {
4845
4845
  var r;
4846
- const n = kp(t);
4846
+ const n = xp(t);
4847
4847
  let o = typeof t == "object" && t.definitions ? Object.entries(t.definitions).reduce(
4848
4848
  (c, [p, d]) => {
4849
4849
  var g;
@@ -4885,7 +4885,7 @@ var Tp = (e, t) => {
4885
4885
  }
4886
4886
  };
4887
4887
  return l.$schema = "http://json-schema.org/draft-07/schema#", l;
4888
- }, Cp = xp;
4888
+ }, Cp = kp;
4889
4889
  function Np(e, t) {
4890
4890
  var r;
4891
4891
  const n = (r = void 0) != null ? r : !1;
@@ -4974,18 +4974,18 @@ var wa = ee([
4974
4974
  },
4975
4975
  { message: "Must be a Buffer" }
4976
4976
  )
4977
- ]), mt = kd(
4977
+ ]), mt = xd(
4978
4978
  () => ee([
4979
4979
  rd(),
4980
4980
  w(),
4981
4981
  pt(),
4982
- X(),
4983
- kr(w(), mt),
4982
+ H(),
4983
+ xr(w(), mt),
4984
4984
  Ee(mt)
4985
4985
  ])
4986
- ), M = kr(
4986
+ ), M = xr(
4987
4987
  w(),
4988
- kr(w(), mt)
4988
+ xr(w(), mt)
4989
4989
  ), Ia = C({
4990
4990
  type: T("text"),
4991
4991
  text: w(),
@@ -5009,9 +5009,9 @@ var wa = ee([
5009
5009
  type: T("tool-call"),
5010
5010
  toolCallId: w(),
5011
5011
  toolName: w(),
5012
- input: H(),
5012
+ input: J(),
5013
5013
  providerOptions: M.optional(),
5014
- providerExecuted: X().optional()
5014
+ providerExecuted: H().optional()
5015
5015
  }), Bp = id("type", [
5016
5016
  C({
5017
5017
  type: T("text"),
@@ -5119,8 +5119,8 @@ var Jp = ee([
5119
5119
  type: T("tool-input-start"),
5120
5120
  toolCallId: w(),
5121
5121
  toolName: w(),
5122
- providerExecuted: X().optional(),
5123
- dynamic: X().optional()
5122
+ providerExecuted: H().optional(),
5123
+ dynamic: H().optional()
5124
5124
  }),
5125
5125
  V({
5126
5126
  type: T("tool-input-delta"),
@@ -5131,35 +5131,35 @@ var Jp = ee([
5131
5131
  type: T("tool-input-available"),
5132
5132
  toolCallId: w(),
5133
5133
  toolName: w(),
5134
- input: H(),
5135
- providerExecuted: X().optional(),
5134
+ input: J(),
5135
+ providerExecuted: H().optional(),
5136
5136
  providerMetadata: M.optional(),
5137
- dynamic: X().optional()
5137
+ dynamic: H().optional()
5138
5138
  }),
5139
5139
  V({
5140
5140
  type: T("tool-input-error"),
5141
5141
  toolCallId: w(),
5142
5142
  toolName: w(),
5143
- input: H(),
5144
- providerExecuted: X().optional(),
5143
+ input: J(),
5144
+ providerExecuted: H().optional(),
5145
5145
  providerMetadata: M.optional(),
5146
- dynamic: X().optional(),
5146
+ dynamic: H().optional(),
5147
5147
  errorText: w()
5148
5148
  }),
5149
5149
  V({
5150
5150
  type: T("tool-output-available"),
5151
5151
  toolCallId: w(),
5152
- output: H(),
5153
- providerExecuted: X().optional(),
5154
- dynamic: X().optional(),
5155
- preliminary: X().optional()
5152
+ output: J(),
5153
+ providerExecuted: H().optional(),
5154
+ dynamic: H().optional(),
5155
+ preliminary: H().optional()
5156
5156
  }),
5157
5157
  V({
5158
5158
  type: T("tool-output-error"),
5159
5159
  toolCallId: w(),
5160
5160
  errorText: w(),
5161
- providerExecuted: X().optional(),
5162
- dynamic: X().optional()
5161
+ providerExecuted: H().optional(),
5162
+ dynamic: H().optional()
5163
5163
  }),
5164
5164
  V({
5165
5165
  type: T("reasoning"),
@@ -5209,8 +5209,8 @@ var Jp = ee([
5209
5209
  V({
5210
5210
  type: w().startsWith("data-"),
5211
5211
  id: w().optional(),
5212
- data: H(),
5213
- transient: X().optional()
5212
+ data: J(),
5213
+ transient: H().optional()
5214
5214
  }),
5215
5215
  V({
5216
5216
  type: T("start-step")
@@ -5221,18 +5221,18 @@ var Jp = ee([
5221
5221
  V({
5222
5222
  type: T("start"),
5223
5223
  messageId: w().optional(),
5224
- messageMetadata: H().optional()
5224
+ messageMetadata: J().optional()
5225
5225
  }),
5226
5226
  V({
5227
5227
  type: T("finish"),
5228
- messageMetadata: H().optional()
5228
+ messageMetadata: J().optional()
5229
5229
  }),
5230
5230
  V({
5231
5231
  type: T("abort")
5232
5232
  }),
5233
5233
  V({
5234
5234
  type: T("message-metadata"),
5235
- messageMetadata: H()
5235
+ messageMetadata: J()
5236
5236
  })
5237
5237
  ]);
5238
5238
  function Gp(e) {
@@ -5507,7 +5507,7 @@ function Wp(e) {
5507
5507
  }
5508
5508
  return s;
5509
5509
  }
5510
- async function ka(e) {
5510
+ async function xa(e) {
5511
5511
  if (e === void 0)
5512
5512
  return { value: void 0, state: "undefined-input" };
5513
5513
  let t = await qt({ text: e });
@@ -5557,7 +5557,7 @@ function Xp({
5557
5557
  var d, g, f, m;
5558
5558
  function h(_) {
5559
5559
  const z = c.message.parts.filter(Rt).find(
5560
- (x) => x.toolCallId === _
5560
+ (k) => k.toolCallId === _
5561
5561
  );
5562
5562
  if (z == null)
5563
5563
  throw new Error(
@@ -5567,9 +5567,9 @@ function Xp({
5567
5567
  }
5568
5568
  function v(_) {
5569
5569
  const z = c.message.parts.filter(
5570
- (x) => x.type === "dynamic-tool"
5570
+ (k) => k.type === "dynamic-tool"
5571
5571
  ).find(
5572
- (x) => x.toolCallId === _
5572
+ (k) => k.toolCallId === _
5573
5573
  );
5574
5574
  if (z == null)
5575
5575
  throw new Error(
@@ -5581,35 +5581,35 @@ function Xp({
5581
5581
  var P;
5582
5582
  const z = c.message.parts.find(
5583
5583
  (ie) => Rt(ie) && ie.toolCallId === _.toolCallId
5584
- ), x = _, A = z;
5585
- z != null ? (z.state = _.state, A.input = x.input, A.output = x.output, A.errorText = x.errorText, A.rawInput = x.rawInput, A.preliminary = x.preliminary, A.providerExecuted = (P = x.providerExecuted) != null ? P : z.providerExecuted, x.providerMetadata != null && z.state === "input-available" && (z.callProviderMetadata = x.providerMetadata)) : c.message.parts.push({
5584
+ ), k = _, A = z;
5585
+ z != null ? (z.state = _.state, A.input = k.input, A.output = k.output, A.errorText = k.errorText, A.rawInput = k.rawInput, A.preliminary = k.preliminary, A.providerExecuted = (P = k.providerExecuted) != null ? P : z.providerExecuted, k.providerMetadata != null && z.state === "input-available" && (z.callProviderMetadata = k.providerMetadata)) : c.message.parts.push({
5586
5586
  type: `tool-${_.toolName}`,
5587
5587
  toolCallId: _.toolCallId,
5588
5588
  state: _.state,
5589
- input: x.input,
5590
- output: x.output,
5591
- rawInput: x.rawInput,
5592
- errorText: x.errorText,
5593
- providerExecuted: x.providerExecuted,
5594
- preliminary: x.preliminary,
5595
- ...x.providerMetadata != null ? { callProviderMetadata: x.providerMetadata } : {}
5589
+ input: k.input,
5590
+ output: k.output,
5591
+ rawInput: k.rawInput,
5592
+ errorText: k.errorText,
5593
+ providerExecuted: k.providerExecuted,
5594
+ preliminary: k.preliminary,
5595
+ ...k.providerMetadata != null ? { callProviderMetadata: k.providerMetadata } : {}
5596
5596
  });
5597
5597
  }
5598
5598
  function b(_) {
5599
5599
  var P;
5600
5600
  const z = c.message.parts.find(
5601
5601
  (ie) => ie.type === "dynamic-tool" && ie.toolCallId === _.toolCallId
5602
- ), x = _, A = z;
5603
- z != null ? (z.state = _.state, A.toolName = _.toolName, A.input = x.input, A.output = x.output, A.errorText = x.errorText, A.rawInput = (P = x.rawInput) != null ? P : A.rawInput, A.preliminary = x.preliminary, x.providerMetadata != null && z.state === "input-available" && (z.callProviderMetadata = x.providerMetadata)) : c.message.parts.push({
5602
+ ), k = _, A = z;
5603
+ z != null ? (z.state = _.state, A.toolName = _.toolName, A.input = k.input, A.output = k.output, A.errorText = k.errorText, A.rawInput = (P = k.rawInput) != null ? P : A.rawInput, A.preliminary = k.preliminary, k.providerMetadata != null && z.state === "input-available" && (z.callProviderMetadata = k.providerMetadata)) : c.message.parts.push({
5604
5604
  type: "dynamic-tool",
5605
5605
  toolName: _.toolName,
5606
5606
  toolCallId: _.toolCallId,
5607
5607
  state: _.state,
5608
- input: x.input,
5609
- output: x.output,
5610
- errorText: x.errorText,
5611
- preliminary: x.preliminary,
5612
- ...x.providerMetadata != null ? { callProviderMetadata: x.providerMetadata } : {}
5608
+ input: k.input,
5609
+ output: k.output,
5610
+ errorText: k.errorText,
5611
+ preliminary: k.preliminary,
5612
+ ...k.providerMetadata != null ? { callProviderMetadata: k.providerMetadata } : {}
5613
5613
  });
5614
5614
  }
5615
5615
  async function E(_) {
@@ -5715,7 +5715,7 @@ function Xp({
5715
5715
  case "tool-input-delta": {
5716
5716
  const _ = c.partialToolCalls[s.toolCallId];
5717
5717
  _.text += s.inputTextDelta;
5718
- const { value: P } = await ka(
5718
+ const { value: P } = await xa(
5719
5719
  _.text
5720
5720
  );
5721
5721
  _.dynamic ? b({
@@ -5942,7 +5942,7 @@ var tm = () => ({
5942
5942
  schema: t.jsonSchema
5943
5943
  },
5944
5944
  async parsePartial({ text: r }) {
5945
- const n = await ka(r);
5945
+ const n = await xa(r);
5946
5946
  switch (n.state) {
5947
5947
  case "failed-parse":
5948
5948
  case "undefined-input":
@@ -5999,18 +5999,18 @@ var tm = () => ({
5999
5999
  logging: Q(C({}).loose()),
6000
6000
  prompts: Q(
6001
6001
  Xe({
6002
- listChanged: Q(X())
6002
+ listChanged: Q(H())
6003
6003
  })
6004
6004
  ),
6005
6005
  resources: Q(
6006
6006
  Xe({
6007
- subscribe: Q(X()),
6008
- listChanged: Q(X())
6007
+ subscribe: Q(H()),
6008
+ listChanged: Q(H())
6009
6009
  })
6010
6010
  ),
6011
6011
  tools: Q(
6012
6012
  Xe({
6013
- listChanged: Q(X())
6013
+ listChanged: Q(H())
6014
6014
  })
6015
6015
  )
6016
6016
  });
@@ -6040,7 +6040,7 @@ var cm = C({
6040
6040
  type: T("image"),
6041
6041
  data: la(),
6042
6042
  mimeType: w()
6043
- }).loose(), xa = C({
6043
+ }).loose(), ka = C({
6044
6044
  /**
6045
6045
  * The URI of this resource.
6046
6046
  */
@@ -6049,9 +6049,9 @@ var cm = C({
6049
6049
  * The MIME type of this resource, if known.
6050
6050
  */
6051
6051
  mimeType: Q(w())
6052
- }).loose(), um = xa.extend({
6052
+ }).loose(), um = ka.extend({
6053
6053
  text: w()
6054
- }), dm = xa.extend({
6054
+ }), dm = ka.extend({
6055
6055
  blob: la()
6056
6056
  }), pm = C({
6057
6057
  type: T("resource"),
@@ -6061,10 +6061,10 @@ ht.extend({
6061
6061
  content: Ee(
6062
6062
  ee([cm, lm, pm])
6063
6063
  ),
6064
- isError: X().default(!1).optional()
6064
+ isError: H().default(!1).optional()
6065
6065
  }).or(
6066
6066
  ht.extend({
6067
- toolResult: H()
6067
+ toolResult: J()
6068
6068
  })
6069
6069
  );
6070
6070
  var rr = "2.0", mm = C({
@@ -6080,7 +6080,7 @@ var rr = "2.0", mm = C({
6080
6080
  error: C({
6081
6081
  code: pt().int(),
6082
6082
  message: w(),
6083
- data: Q(H())
6083
+ data: Q(J())
6084
6084
  })
6085
6085
  }).strict(), gm = C({
6086
6086
  jsonrpc: T(rr)
@@ -6482,17 +6482,17 @@ var ym = class {
6482
6482
  providerMetadata: M.optional()
6483
6483
  }), Sm = C({
6484
6484
  type: T("step-start")
6485
- }), km = C({
6485
+ }), xm = C({
6486
6486
  type: w().startsWith("data-"),
6487
6487
  id: w().optional(),
6488
- data: H()
6489
- }), xm = [
6488
+ data: J()
6489
+ }), km = [
6490
6490
  C({
6491
6491
  type: T("dynamic-tool"),
6492
6492
  toolName: w(),
6493
6493
  toolCallId: w(),
6494
6494
  state: T("input-streaming"),
6495
- input: H().optional(),
6495
+ input: J().optional(),
6496
6496
  output: le().optional(),
6497
6497
  errorText: le().optional()
6498
6498
  }),
@@ -6501,7 +6501,7 @@ var ym = class {
6501
6501
  toolName: w(),
6502
6502
  toolCallId: w(),
6503
6503
  state: T("input-available"),
6504
- input: H(),
6504
+ input: J(),
6505
6505
  output: le().optional(),
6506
6506
  errorText: le().optional(),
6507
6507
  callProviderMetadata: M.optional()
@@ -6511,18 +6511,18 @@ var ym = class {
6511
6511
  toolName: w(),
6512
6512
  toolCallId: w(),
6513
6513
  state: T("output-available"),
6514
- input: H(),
6515
- output: H(),
6514
+ input: J(),
6515
+ output: J(),
6516
6516
  errorText: le().optional(),
6517
6517
  callProviderMetadata: M.optional(),
6518
- preliminary: X().optional()
6518
+ preliminary: H().optional()
6519
6519
  }),
6520
6520
  C({
6521
6521
  type: T("dynamic-tool"),
6522
6522
  toolName: w(),
6523
6523
  toolCallId: w(),
6524
6524
  state: T("output-error"),
6525
- input: H(),
6525
+ input: J(),
6526
6526
  output: le().optional(),
6527
6527
  errorText: w(),
6528
6528
  callProviderMetadata: M.optional()
@@ -6532,7 +6532,8 @@ var ym = class {
6532
6532
  type: w().startsWith("tool-"),
6533
6533
  toolCallId: w(),
6534
6534
  state: T("input-streaming"),
6535
- input: H().optional(),
6535
+ providerExecuted: H().optional(),
6536
+ input: J().optional(),
6536
6537
  output: le().optional(),
6537
6538
  errorText: le().optional()
6538
6539
  }),
@@ -6540,7 +6541,8 @@ var ym = class {
6540
6541
  type: w().startsWith("tool-"),
6541
6542
  toolCallId: w(),
6542
6543
  state: T("input-available"),
6543
- input: H(),
6544
+ providerExecuted: H().optional(),
6545
+ input: J(),
6544
6546
  output: le().optional(),
6545
6547
  errorText: le().optional(),
6546
6548
  callProviderMetadata: M.optional()
@@ -6549,17 +6551,19 @@ var ym = class {
6549
6551
  type: w().startsWith("tool-"),
6550
6552
  toolCallId: w(),
6551
6553
  state: T("output-available"),
6552
- input: H(),
6553
- output: H(),
6554
+ providerExecuted: H().optional(),
6555
+ input: J(),
6556
+ output: J(),
6554
6557
  errorText: le().optional(),
6555
6558
  callProviderMetadata: M.optional(),
6556
- preliminary: X().optional()
6559
+ preliminary: H().optional()
6557
6560
  }),
6558
6561
  C({
6559
6562
  type: w().startsWith("tool-"),
6560
6563
  toolCallId: w(),
6561
6564
  state: T("output-error"),
6562
- input: H(),
6565
+ providerExecuted: H().optional(),
6566
+ input: J(),
6563
6567
  output: le().optional(),
6564
6568
  errorText: w(),
6565
6569
  callProviderMetadata: M.optional()
@@ -6568,7 +6572,7 @@ var ym = class {
6568
6572
  C({
6569
6573
  id: w(),
6570
6574
  role: tr(["system", "user", "assistant"]),
6571
- metadata: H().optional(),
6575
+ metadata: J().optional(),
6572
6576
  parts: Ee(
6573
6577
  ee([
6574
6578
  bm,
@@ -6577,8 +6581,8 @@ C({
6577
6581
  Em,
6578
6582
  Tm,
6579
6583
  Sm,
6580
- km,
6581
- ...xm,
6584
+ xm,
6585
+ ...km,
6582
6586
  ...Cm
6583
6587
  ])
6584
6588
  )
@@ -6615,7 +6619,7 @@ const Ca = async () => (fr || (fr = import(
6615
6619
  "./index.BwP0kG4H.js"
6616
6620
  )), fr), Na = async () => (gr || (gr = import(
6617
6621
  /* webpackChunkName: "toast-utilities" */
6618
- "./index.DtjS4202.js"
6622
+ "./index.DRMQdLp_.js"
6619
6623
  ).then((e) => e.utilities)), gr), $m = async () => {
6620
6624
  try {
6621
6625
  await Promise.all([Ca(), Na()]);
@@ -6770,18 +6774,18 @@ var Ma = (e, t, r) => {
6770
6774
  if (t.has(e))
6771
6775
  throw TypeError("Cannot add the same private member more than once");
6772
6776
  t instanceof WeakSet ? t.add(e) : t.set(e, r);
6773
- }, xe = (e, t, r, n) => (Ma(e, t, "write to private field"), t.set(e, r), r);
6777
+ }, ke = (e, t, r, n) => (Ma(e, t, "write to private field"), t.set(e, r), r);
6774
6778
  function jm(e, t) {
6775
6779
  return t != null ? Bm(e, t) : e;
6776
6780
  }
6777
6781
  var pe, Zt, Dt, ot, at, st, Je, zr, Ar, Vm = class {
6778
6782
  constructor(e = []) {
6779
6783
  ye(this, pe, void 0), ye(this, Zt, "ready"), ye(this, Dt, void 0), ye(this, ot, /* @__PURE__ */ new Set()), ye(this, at, /* @__PURE__ */ new Set()), ye(this, st, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
6780
- xe(this, pe, F(this, pe).concat(t)), F(this, Je).call(this);
6784
+ ke(this, pe, F(this, pe).concat(t)), F(this, Je).call(this);
6781
6785
  }, this.popMessage = () => {
6782
- xe(this, pe, F(this, pe).slice(0, -1)), F(this, Je).call(this);
6786
+ ke(this, pe, F(this, pe).slice(0, -1)), F(this, Je).call(this);
6783
6787
  }, this.replaceMessage = (t, r) => {
6784
- xe(this, pe, [
6788
+ ke(this, pe, [
6785
6789
  ...F(this, pe).slice(0, t),
6786
6790
  // We deep clone the message here to ensure the new React Compiler (currently in RC) detects deeply nested parts/metadata changes:
6787
6791
  this.snapshot(r),
@@ -6802,25 +6806,25 @@ var pe, Zt, Dt, ot, at, st, Je, zr, Ar, Vm = class {
6802
6806
  F(this, at).forEach((t) => t());
6803
6807
  }), ye(this, Ar, () => {
6804
6808
  F(this, st).forEach((t) => t());
6805
- }), xe(this, pe, e);
6809
+ }), ke(this, pe, e);
6806
6810
  }
6807
6811
  get status() {
6808
6812
  return F(this, Zt);
6809
6813
  }
6810
6814
  set status(e) {
6811
- xe(this, Zt, e), F(this, zr).call(this);
6815
+ ke(this, Zt, e), F(this, zr).call(this);
6812
6816
  }
6813
6817
  get error() {
6814
6818
  return F(this, Dt);
6815
6819
  }
6816
6820
  set error(e) {
6817
- xe(this, Dt, e), F(this, Ar).call(this);
6821
+ ke(this, Dt, e), F(this, Ar).call(this);
6818
6822
  }
6819
6823
  get messages() {
6820
6824
  return F(this, pe);
6821
6825
  }
6822
6826
  set messages(e) {
6823
- xe(this, pe, [...e]), F(this, Je).call(this);
6827
+ ke(this, pe, [...e]), F(this, Je).call(this);
6824
6828
  }
6825
6829
  };
6826
6830
  pe = /* @__PURE__ */ new WeakMap();
@@ -6835,7 +6839,7 @@ Ar = /* @__PURE__ */ new WeakMap();
6835
6839
  var Ge, Fn = class extends _m {
6836
6840
  constructor({ messages: e, ...t }) {
6837
6841
  const r = new Vm(e);
6838
- super({ ...t, state: r }), ye(this, Ge, void 0), this["~registerMessagesCallback"] = (n, o) => F(this, Ge)["~registerMessagesCallback"](n, o), this["~registerStatusCallback"] = (n) => F(this, Ge)["~registerStatusCallback"](n), this["~registerErrorCallback"] = (n) => F(this, Ge)["~registerErrorCallback"](n), xe(this, Ge, r);
6842
+ super({ ...t, state: r }), ye(this, Ge, void 0), this["~registerMessagesCallback"] = (n, o) => F(this, Ge)["~registerMessagesCallback"](n, o), this["~registerStatusCallback"] = (n) => F(this, Ge)["~registerStatusCallback"](n), this["~registerErrorCallback"] = (n) => F(this, Ge)["~registerErrorCallback"](n), ke(this, Ge, r);
6839
6843
  }
6840
6844
  };
6841
6845
  Ge = /* @__PURE__ */ new WeakMap();
@@ -6844,7 +6848,7 @@ function Fm({
6844
6848
  resume: t = !1,
6845
6849
  ...r
6846
6850
  } = {}) {
6847
- const n = J(
6851
+ const n = G(
6848
6852
  "chat" in r ? r.chat : new Fn(r)
6849
6853
  );
6850
6854
  ("chat" in r && r.chat !== n.current || "id" in r && n.current.id !== r.id) && (n.current = "chat" in r ? r.chat : new Fn(r));
@@ -6897,7 +6901,7 @@ function Ve(e = {}) {
6897
6901
  const t = te(Ra);
6898
6902
  if (!t)
6899
6903
  throw new Error("useAiChat must be used within a AiChatProvider");
6900
- const r = J(e);
6904
+ const r = G(e);
6901
6905
  return $(() => {
6902
6906
  r.current = e;
6903
6907
  }, [e]), $(() => {
@@ -6915,7 +6919,7 @@ function Hm({
6915
6919
  children: e,
6916
6920
  value: t
6917
6921
  }) {
6918
- const r = J(Hn()), [n, o] = R("");
6922
+ const r = G(Hn()), [n, o] = R("");
6919
6923
  $(() => {
6920
6924
  r.current = Hn();
6921
6925
  }, [t]);
@@ -6957,26 +6961,26 @@ function Hm({
6957
6961
  }
6958
6962
  );
6959
6963
  }
6960
- let xt = !1, yr = null;
6964
+ let kt = !1, yr = null;
6961
6965
  const Jn = ({
6962
6966
  containerId: e,
6963
6967
  ...t
6964
6968
  }) => {
6965
- const [r, n] = R(xt);
6969
+ const [r, n] = R(kt);
6966
6970
  return $(() => {
6967
- if (!xt) {
6971
+ if (!kt) {
6968
6972
  const o = async () => {
6969
6973
  try {
6970
6974
  const { ToastContainer: i } = await import(
6971
6975
  /* webpackChunkName: "toast-react-toastify" */
6972
6976
  "./index.BwP0kG4H.js"
6973
6977
  );
6974
- yr = i, xt = !0, n(!0);
6978
+ yr = i, kt = !0, n(!0);
6975
6979
  } catch (i) {
6976
6980
  console.error("Failed to load ToastContainer:", i);
6977
6981
  }
6978
6982
  }, a = () => {
6979
- xt || o();
6983
+ kt || o();
6980
6984
  };
6981
6985
  return window.addEventListener("toast-request", a), () => {
6982
6986
  window.removeEventListener("toast-request", a);
@@ -7070,7 +7074,7 @@ const Jn = ({
7070
7074
  }) => {
7071
7075
  const l = js(() => {
7072
7076
  h.stop(), m(!1);
7073
- }), c = J(null), p = J(null), [d, g] = R(!1), [f, m] = R(!1), h = Gs(() => {
7077
+ }), c = G(null), p = G(null), [d, g] = R(!1), [f, m] = R(!1), h = Gs(() => {
7074
7078
  m(!1);
7075
7079
  }, th), v = Km({
7076
7080
  mode: n,
@@ -7081,7 +7085,7 @@ const Jn = ({
7081
7085
  if (l.current && c.current && p.current) {
7082
7086
  const {
7083
7087
  x: z,
7084
- y: x,
7088
+ y: k,
7085
7089
  middlewareData: A,
7086
7090
  placement: ie
7087
7091
  } = await Os(l.current, c.current, {
@@ -7098,7 +7102,7 @@ const Jn = ({
7098
7102
  });
7099
7103
  c?.current?.style && Object.assign(c.current.style, {
7100
7104
  left: Ct(z),
7101
- top: Ct(x),
7105
+ top: Ct(k),
7102
7106
  ...I
7103
7107
  });
7104
7108
  const be = {
@@ -7126,7 +7130,7 @@ const Jn = ({
7126
7130
  }, P = () => {
7127
7131
  f || g(!1);
7128
7132
  };
7129
- return /* @__PURE__ */ k(
7133
+ return /* @__PURE__ */ x(
7130
7134
  "div",
7131
7135
  {
7132
7136
  className: v.wrapper,
@@ -7136,7 +7140,7 @@ const Jn = ({
7136
7140
  onClick: E,
7137
7141
  children: [
7138
7142
  e,
7139
- d && /* @__PURE__ */ k(
7143
+ d && /* @__PURE__ */ x(
7140
7144
  "div",
7141
7145
  {
7142
7146
  role: "tooltip",
@@ -7205,7 +7209,7 @@ const nh = ({
7205
7209
  dispatch: o,
7206
7210
  setChatId: a,
7207
7211
  setInitialMessages: i
7208
- } = te(ve), { id: s, setInput: l, stop: c } = Ve(), p = J(null), d = J(!1), g = U(() => {
7212
+ } = te(ve), { id: s, setInput: l, stop: c } = Ve(), p = G(null), d = G(!1), g = U(() => {
7209
7213
  a(Oe()), i([]), l(""), o({
7210
7214
  type: je,
7211
7215
  payload: {
@@ -7305,7 +7309,7 @@ const nh = ({
7305
7309
  ...l
7306
7310
  }) => {
7307
7311
  const c = O(a, n);
7308
- return /* @__PURE__ */ k(
7312
+ return /* @__PURE__ */ x(
7309
7313
  "svg",
7310
7314
  {
7311
7315
  xmlns: "http://www.w3.org/2000/svg",
@@ -7498,7 +7502,7 @@ const Ze = "panel", zt = "messagebox", ph = ({
7498
7502
  animationType: c = mh,
7499
7503
  maxWidth: p = "medium"
7500
7504
  }) => {
7501
- const d = J(""), [g, f] = R(
7505
+ const d = G(""), [g, f] = R(
7502
7506
  l ? c === qn ? { opacity: 0 } : {
7503
7507
  transform: "translateY(-100vh)"
7504
7508
  } : {}
@@ -7527,8 +7531,8 @@ const Ze = "panel", zt = "messagebox", ph = ({
7527
7531
  }, 100);
7528
7532
  return () => clearTimeout(h);
7529
7533
  }
7530
- }, [e, l, c]), /* @__PURE__ */ u(Ce, { children: e && /* @__PURE__ */ u(ih, { open: e, onOpenChange: t, children: /* @__PURE__ */ k(ch, { className: m.main, style: g, children: [
7531
- /* @__PURE__ */ k("div", { className: "flex flex-row-reverse items-center justify-between", children: [
7534
+ }, [e, l, c]), /* @__PURE__ */ u(Ce, { children: e && /* @__PURE__ */ u(ih, { open: e, onOpenChange: t, children: /* @__PURE__ */ x(ch, { className: m.main, style: g, children: [
7535
+ /* @__PURE__ */ x("div", { className: "flex flex-row-reverse items-center justify-between", children: [
7532
7536
  /* @__PURE__ */ u(
7533
7537
  dh,
7534
7538
  {
@@ -7672,7 +7676,7 @@ const fh = "av-toggle", gh = ({ narrow: e }) => O(
7672
7676
  }), d = (g) => {
7673
7677
  t?.(g.target.checked);
7674
7678
  };
7675
- return /* @__PURE__ */ k("label", { className: p.wrapper, children: [
7679
+ return /* @__PURE__ */ x("label", { className: p.wrapper, children: [
7676
7680
  /* @__PURE__ */ u(
7677
7681
  "input",
7678
7682
  {
@@ -7717,7 +7721,7 @@ const Ue = ({
7717
7721
  toggleChecked: c,
7718
7722
  onToggleChange: p
7719
7723
  }) => {
7720
- const d = /* @__PURE__ */ k(br, { columnGap: 2, alignHorizontal: "flex-end", children: [
7724
+ const d = /* @__PURE__ */ x(br, { columnGap: 2, alignHorizontal: "flex-end", children: [
7721
7725
  /* @__PURE__ */ u(We, { children: !a && /* @__PURE__ */ u(
7722
7726
  en,
7723
7727
  {
@@ -7744,7 +7748,7 @@ const Ue = ({
7744
7748
  children: o.confirmAction
7745
7749
  }
7746
7750
  ) })
7747
- ] }), g = s ? /* @__PURE__ */ k(
7751
+ ] }), g = s ? /* @__PURE__ */ x(
7748
7752
  br,
7749
7753
  {
7750
7754
  alignHorizontal: "space-between",
@@ -7805,8 +7809,8 @@ const Ue = ({
7805
7809
  }
7806
7810
  });
7807
7811
  };
7808
- return /* @__PURE__ */ k(Ce, { children: [
7809
- p && /* @__PURE__ */ k(
7812
+ return /* @__PURE__ */ x(Ce, { children: [
7813
+ p && /* @__PURE__ */ x(
7810
7814
  Ue,
7811
7815
  {
7812
7816
  showConfirmation: p,
@@ -7840,8 +7844,8 @@ const Ue = ({
7840
7844
  cancelAction: "Cancel",
7841
7845
  title: "Private Chat"
7842
7846
  },
7843
- children: /* @__PURE__ */ k("ul", { children: [
7844
- /* @__PURE__ */ k("li", { children: [
7847
+ children: /* @__PURE__ */ x("ul", { children: [
7848
+ /* @__PURE__ */ x("li", { children: [
7845
7849
  "In Private Mode, your chat sessions will not be saved to your chat history. ",
7846
7850
  m && "Memories will also be disabled."
7847
7851
  ] }),
@@ -7909,7 +7913,7 @@ const Ue = ({
7909
7913
  focusMode: i = "system",
7910
7914
  ...s
7911
7915
  }, l) => {
7912
- const [c, p] = R(!1), [d, g] = R(!1), [f, m] = R(null), h = J([]), v = J([]), I = te($r), b = Io(), E = Ps(), _ = Eo(), { floatingStyles: P, refs: z, context: x } = vo({
7916
+ const [c, p] = R(!1), [d, g] = R(!1), [f, m] = R(null), h = G([]), v = G([]), I = te($r), b = Io(), E = Ps(), _ = Eo(), { floatingStyles: P, refs: z, context: k } = vo({
7913
7917
  nodeId: E,
7914
7918
  open: c,
7915
7919
  onOpenChange: (ce) => {
@@ -7919,17 +7923,17 @@ const Ue = ({
7919
7923
  strategy: "fixed",
7920
7924
  middleware: [po({ mainAxis: 10 }), mo(), ho()],
7921
7925
  whileElementsMounted: Zs
7922
- }), A = yo(x, {
7926
+ }), A = yo(k, {
7923
7927
  event: "mousedown",
7924
7928
  toggle: !0,
7925
7929
  ignoreMouse: !1
7926
- }), ie = bo(x, { role: "menu" }), be = _o(x, { bubbles: !0 }), Se = Ds(x, {
7930
+ }), ie = bo(k, { role: "menu" }), be = _o(k, { bubbles: !0 }), Se = Ds(k, {
7927
7931
  listRef: h,
7928
7932
  activeIndex: f,
7929
7933
  nested: !1,
7930
7934
  onNavigate: m,
7931
7935
  loop: !0
7932
- }), j = Ls(x, {
7936
+ }), j = Ls(k, {
7933
7937
  listRef: v,
7934
7938
  onMatch: c ? m : void 0,
7935
7939
  activeIndex: f
@@ -7963,7 +7967,7 @@ const Ue = ({
7963
7967
  };
7964
7968
  }, [b, o]), $(() => {
7965
7969
  c && b && b.events.emit("menuopen", { nodeId: E });
7966
- }, [b, c, E]), /* @__PURE__ */ k(Us, { id: E, children: [
7970
+ }, [b, c, E]), /* @__PURE__ */ x(Us, { id: E, children: [
7967
7971
  wt,
7968
7972
  /* @__PURE__ */ u(
7969
7973
  $r.Provider,
@@ -7978,7 +7982,7 @@ const Ue = ({
7978
7982
  children: /* @__PURE__ */ u(Bs, { elementsRef: h, labelsRef: v, children: c && /* @__PURE__ */ u(fo, { children: /* @__PURE__ */ u(
7979
7983
  go,
7980
7984
  {
7981
- context: x,
7985
+ context: k,
7982
7986
  modal: !1,
7983
7987
  initialFocus: 0,
7984
7988
  returnFocus: !0,
@@ -8001,7 +8005,7 @@ const Ue = ({
8001
8005
  ), or = uo((e, t) => /* @__PURE__ */ u(Rs, { children: /* @__PURE__ */ u(Da, { ...e, ref: t }) }));
8002
8006
  or.displayName = "Menu";
8003
8007
  Da.displayName = "MenuComponent";
8004
- const kh = ({
8008
+ const xh = ({
8005
8009
  children: e,
8006
8010
  fill: t,
8007
8011
  viewBox: r,
@@ -8013,7 +8017,7 @@ const kh = ({
8013
8017
  ...l
8014
8018
  }) => {
8015
8019
  const c = O(a, n);
8016
- return /* @__PURE__ */ k(
8020
+ return /* @__PURE__ */ x(
8017
8021
  "svg",
8018
8022
  {
8019
8023
  xmlns: "http://www.w3.org/2000/svg",
@@ -8044,14 +8048,14 @@ try {
8044
8048
  });
8045
8049
  } catch {
8046
8050
  }
8047
- const xh = ({
8051
+ const kh = ({
8048
8052
  className: e,
8049
8053
  viewBox: t,
8050
8054
  title: r,
8051
8055
  monotone: n,
8052
8056
  ...o
8053
- }) => /* @__PURE__ */ k(
8054
- kh,
8057
+ }) => /* @__PURE__ */ x(
8058
+ xh,
8055
8059
  {
8056
8060
  defaultViewBox: "0 0 448 512",
8057
8061
  size: "size-5",
@@ -8118,7 +8122,7 @@ const Ie = ae.forwardRef(
8118
8122
  "bg-none": !t && !i
8119
8123
  }
8120
8124
  );
8121
- return /* @__PURE__ */ k(
8125
+ return /* @__PURE__ */ x(
8122
8126
  "button",
8123
8127
  {
8124
8128
  ...s,
@@ -8136,7 +8140,7 @@ const Ie = ae.forwardRef(
8136
8140
  }
8137
8141
  }),
8138
8142
  children: [
8139
- i && /* @__PURE__ */ u(xh, { className: "mr-2", size: "size-4" }),
8143
+ i && /* @__PURE__ */ u(kh, { className: "mr-2", size: "size-4" }),
8140
8144
  r,
8141
8145
  e && /* @__PURE__ */ u("span", { className: c, children: e })
8142
8146
  ]
@@ -8195,7 +8199,7 @@ const Nh = (e) => {
8195
8199
  prompt: m
8196
8200
  }
8197
8201
  });
8198
- }, d = c && l && l.tags && Nh(l.tags), g = /* @__PURE__ */ k(
8202
+ }, d = c && l && l.tags && Nh(l.tags), g = /* @__PURE__ */ x(
8199
8203
  or,
8200
8204
  {
8201
8205
  mode: "dark",
@@ -8275,7 +8279,7 @@ const Nh = (e) => {
8275
8279
  }
8276
8280
  });
8277
8281
  };
8278
- return /* @__PURE__ */ k(Ce, { children: [
8282
+ return /* @__PURE__ */ x(Ce, { children: [
8279
8283
  l && /* @__PURE__ */ u(
8280
8284
  Ue,
8281
8285
  {
@@ -8307,7 +8311,7 @@ const Nh = (e) => {
8307
8311
  cancelAction: "Cancel",
8308
8312
  title: "Reasoning Chat"
8309
8313
  },
8310
- children: /* @__PURE__ */ k("ul", { children: [
8314
+ children: /* @__PURE__ */ x("ul", { children: [
8311
8315
  /* @__PURE__ */ u("li", { children: 'Your chat session will use "reasoning" model capabilities.' }),
8312
8316
  /* @__PURE__ */ u("li", { children: "Response times will increase. Be patient." }),
8313
8317
  /* @__PURE__ */ u("li", { children: "If you refresh your browser, the setting will revert to the default (non-reasoning) chat." })
@@ -8392,7 +8396,7 @@ const Nh = (e) => {
8392
8396
  };
8393
8397
  return $(() => {
8394
8398
  i && s?.length > 0 ? g(!0) : g(!1);
8395
- }, [i, s]), /* @__PURE__ */ k(Ce, { children: [
8399
+ }, [i, s]), /* @__PURE__ */ x(Ce, { children: [
8396
8400
  f && /* @__PURE__ */ u(
8397
8401
  Ue,
8398
8402
  {
@@ -8518,14 +8522,14 @@ const Nh = (e) => {
8518
8522
  ), Vh = ({
8519
8523
  files: e,
8520
8524
  clearFile: t
8521
- }) => e && e.length > 0 && /* @__PURE__ */ k("div", { className: "px-4 py-2", children: [
8522
- /* @__PURE__ */ u("div", { className: "flex flex-wrap gap-2", children: Array.from(e).map((r, n) => /* @__PURE__ */ k(
8525
+ }) => e && e.length > 0 && /* @__PURE__ */ x("div", { className: "px-4 py-2", children: [
8526
+ /* @__PURE__ */ u("div", { className: "flex flex-wrap gap-2", children: Array.from(e).map((r, n) => /* @__PURE__ */ x(
8523
8527
  "div",
8524
8528
  {
8525
8529
  className: "inline-flex items-center bg-slate-700 text-copy-lighter text-xs px-2 py-1 rounded-md",
8526
8530
  children: [
8527
8531
  /* @__PURE__ */ u("span", { className: "max-w-[150px] truncate", children: r.name }),
8528
- /* @__PURE__ */ k("span", { className: "mx-1 text-gray-400", children: [
8532
+ /* @__PURE__ */ x("span", { className: "mx-1 text-gray-400", children: [
8529
8533
  "(",
8530
8534
  Lt(r.size),
8531
8535
  ")"
@@ -8547,7 +8551,7 @@ const Nh = (e) => {
8547
8551
  },
8548
8552
  `${r.name}-${n}`
8549
8553
  )) }),
8550
- /* @__PURE__ */ k("div", { className: "text-xs text-gray-400 mt-1 pl-1", children: [
8554
+ /* @__PURE__ */ x("div", { className: "text-xs text-gray-400 mt-1 pl-1", children: [
8551
8555
  "Total: ",
8552
8556
  Lt(Ua(Array.from(e))),
8553
8557
  " /",
@@ -8578,7 +8582,7 @@ const Nh = (e) => {
8578
8582
  }), { data: z } = Qt({
8579
8583
  user: e?.username,
8580
8584
  getAccessToken: t
8581
- }), x = J(null), A = J(null), ie = J(!1), be = J(0), Se = J(null), j = J(null), me = ls(), _t = Bh({
8585
+ }), k = G(null), A = G(null), ie = G(!1), be = G(0), Se = G(null), j = G(null), me = ls(), _t = Bh({
8582
8586
  className: ""
8583
8587
  }), { setMessages: bt, status: Fe, id: ar, sendMessage: wt, input: ce, setInput: Re } = Ve({
8584
8588
  onFinish: (D) => {
@@ -8679,29 +8683,29 @@ const Nh = (e) => {
8679
8683
  j.current.style.height = `${D}px`, j.current.style.overflowY = "hidden";
8680
8684
  }, []), Ga = (D) => {
8681
8685
  if (D.preventDefault(), D.target.files && D.target.files.length > 0) {
8682
- const re = o ? Array.from(o) : [], ne = Array.from(D.target.files), ke = [...re];
8686
+ const re = o ? Array.from(o) : [], ne = Array.from(D.target.files), xe = [...re];
8683
8687
  let Pe = !1;
8684
8688
  for (const we of ne) {
8685
8689
  const ir = "." + we.name.split(".").pop()?.toLowerCase();
8686
- _r.includes(ir) ? ke.some(
8690
+ _r.includes(ir) ? xe.some(
8687
8691
  (cr) => cr.name === we.name && cr.size === we.size && cr.lastModified === we.lastModified
8688
- ) || ke.push(we) : Pe = !0;
8692
+ ) || xe.push(we) : Pe = !0;
8689
8693
  }
8690
- if (A.current && (A.current.value = ""), Ua(ke) > Mr) {
8691
- x.current = `Total file size exceeds the limit of ${Lt(
8694
+ if (A.current && (A.current.value = ""), Ua(xe) > Mr) {
8695
+ k.current = `Total file size exceeds the limit of ${Lt(
8692
8696
  Mr
8693
8697
  )}.`, s(!0);
8694
8698
  return;
8695
8699
  }
8696
8700
  if (Pe) {
8697
- x.current = `Only ${_r.join(
8701
+ k.current = `Only ${_r.join(
8698
8702
  ", "
8699
8703
  )} files are allowed.`, s(!0);
8700
8704
  return;
8701
8705
  }
8702
- if (ke.length > 0) {
8706
+ if (xe.length > 0) {
8703
8707
  const we = new DataTransfer();
8704
- ke.forEach((ir) => we.items.add(ir)), a(we.files), p({
8708
+ xe.forEach((ir) => we.items.add(ir)), a(we.files), p({
8705
8709
  type: et,
8706
8710
  payload: {
8707
8711
  attachments: we.files.length
@@ -8730,10 +8734,10 @@ const Nh = (e) => {
8730
8734
  const re = await t();
8731
8735
  let ne;
8732
8736
  if (o && o.length > 0) {
8733
- const ke = Array.from(o).map(
8737
+ const xe = Array.from(o).map(
8734
8738
  (It) => jh(It)
8735
8739
  ), Pe = new DataTransfer();
8736
- ke.forEach((It) => Pe.items.add(It)), ne = Pe.files;
8740
+ xe.forEach((It) => Pe.items.add(It)), ne = Pe.files;
8737
8741
  }
8738
8742
  Ja(D, {
8739
8743
  headers: {
@@ -8780,7 +8784,7 @@ const Nh = (e) => {
8780
8784
  }, 100);
8781
8785
  }, [b.lastTriggeredTimestamp, sr]), $(() => {
8782
8786
  h === 0 && (A.current && (A.current.value = ""), a(null));
8783
- }, [h]), /* @__PURE__ */ k(Ce, { children: [
8787
+ }, [h]), /* @__PURE__ */ x(Ce, { children: [
8784
8788
  /* @__PURE__ */ u(
8785
8789
  Ue,
8786
8790
  {
@@ -8794,12 +8798,12 @@ const Nh = (e) => {
8794
8798
  confirmAction: "Ok",
8795
8799
  title: "File Upload Restrictions"
8796
8800
  },
8797
- children: /* @__PURE__ */ u("p", { className: "m-0", children: x.current })
8801
+ children: /* @__PURE__ */ u("p", { className: "m-0", children: k.current })
8798
8802
  }
8799
8803
  ),
8800
- /* @__PURE__ */ u("div", { className: _t.wrapper, ref: Se, children: /* @__PURE__ */ k("form", { onSubmit: Kr, children: [
8804
+ /* @__PURE__ */ u("div", { className: _t.wrapper, ref: Se, children: /* @__PURE__ */ x("form", { onSubmit: Kr, children: [
8801
8805
  /* @__PURE__ */ u("div", { id: me, className: "sr-only", children: Ir() ? rn : l ? nn : on }),
8802
- /* @__PURE__ */ k("div", { className: "relative", children: [
8806
+ /* @__PURE__ */ x("div", { className: "relative", children: [
8803
8807
  /* @__PURE__ */ u(
8804
8808
  "textarea",
8805
8809
  {
@@ -8831,7 +8835,7 @@ const Nh = (e) => {
8831
8835
  )
8832
8836
  ] }),
8833
8837
  /* @__PURE__ */ u(Vh, { files: o, clearFile: qa }),
8834
- /* @__PURE__ */ k("div", { className: "p-2 flex items-center", children: [
8838
+ /* @__PURE__ */ x("div", { className: "p-2 flex items-center", children: [
8835
8839
  /* @__PURE__ */ u($h, { className: "order-7 ml-auto" }),
8836
8840
  /* @__PURE__ */ u(nh, { className: "order-1 mr-4 sm:mr-2" }),
8837
8841
  /* @__PURE__ */ u(zh, { className: "order-2 mr-4 sm:mr-2" }),
@@ -8923,7 +8927,7 @@ const Nh = (e) => {
8923
8927
  "bottom-(--sassy-bottom)",
8924
8928
  Jm
8925
8929
  ),
8926
- children: /* @__PURE__ */ k("div", { className: Er(), children: [
8930
+ children: /* @__PURE__ */ x("div", { className: Er(), children: [
8927
8931
  /* @__PURE__ */ u(Xh, {}),
8928
8932
  /* @__PURE__ */ u("div", { className: "w-full text-center text-xs text-slate-300 pt-2", children: s })
8929
8933
  ] })
@@ -8972,7 +8976,7 @@ const Nh = (e) => {
8972
8976
  });
8973
8977
  } catch {
8974
8978
  }
8975
- }, h = f && d, v = h && $t.find((b) => f.provider === b.id)?.icon || $t[0].icon, I = /* @__PURE__ */ k(
8979
+ }, h = f && d, v = h && $t.find((b) => f.provider === b.id)?.icon || $t[0].icon, I = /* @__PURE__ */ x(
8976
8980
  or,
8977
8981
  {
8978
8982
  mode: "dark",
@@ -9024,33 +9028,33 @@ const Nh = (e) => {
9024
9028
  }, ef = Me(
9025
9029
  () => import(
9026
9030
  /* webpackChunkName: "modal-chunk" */
9027
- "./ProfileEntry.qPN0Xe6S.js"
9031
+ "./ProfileEntry.BGVFwilC.js"
9028
9032
  ).then((e) => ({
9029
9033
  default: e.Profile
9030
9034
  }))
9031
9035
  ), tf = Me(
9032
9036
  () => import(
9033
9037
  /* webpackChunkName: "modal-chunk" */
9034
- "./SettingsEntry.CH79zLy_.js"
9038
+ "./SettingsEntry.D9FWahsa.js"
9035
9039
  ).then((e) => ({
9036
9040
  default: e.SettingsPanel
9037
9041
  }))
9038
9042
  ), rf = Me(
9039
9043
  () => import(
9040
9044
  /* webpackChunkName: "modal-chunk" */
9041
- "./HistoryEntry.CdAYZCrj.js"
9045
+ "./HistoryEntry.DNEz-Xkp.js"
9042
9046
  ).then((e) => ({
9043
9047
  default: e.HistoryPanel
9044
9048
  }))
9045
9049
  ), nf = Me(
9046
9050
  () => import(
9047
9051
  /* webpackChunkName: "modal-chunk" */
9048
- "./AboutEntry.BH88UaZx.js"
9052
+ "./AboutEntry.Bvl_l0xS.js"
9049
9053
  ).then((e) => ({ default: e.About }))
9050
9054
  ), of = Me(
9051
9055
  () => import(
9052
9056
  /* webpackChunkName: "modal-chunk" */
9053
- "./UsageEntry.axUSgiS0.js"
9057
+ "./UsageEntry.BdEcEOro.js"
9054
9058
  ).then((e) => ({ default: e.Usage }))
9055
9059
  ), af = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ u(jt, { fallback: /* @__PURE__ */ u("div", {}), children: (() => {
9056
9060
  switch (e) {
@@ -9074,23 +9078,23 @@ const Nh = (e) => {
9074
9078
  i || Promise.all([
9075
9079
  import(
9076
9080
  /* webpackChunkName: "modal-chunk" */
9077
- "./ProfileEntry.qPN0Xe6S.js"
9081
+ "./ProfileEntry.BGVFwilC.js"
9078
9082
  ),
9079
9083
  import(
9080
9084
  /* webpackChunkName: "modal-chunk" */
9081
- "./SettingsEntry.CH79zLy_.js"
9085
+ "./SettingsEntry.D9FWahsa.js"
9082
9086
  ),
9083
9087
  import(
9084
9088
  /* webpackChunkName: "modal-chunk" */
9085
- "./HistoryEntry.CdAYZCrj.js"
9089
+ "./HistoryEntry.DNEz-Xkp.js"
9086
9090
  ),
9087
9091
  import(
9088
9092
  /* webpackChunkName: "modal-chunk" */
9089
- "./AboutEntry.BH88UaZx.js"
9093
+ "./AboutEntry.Bvl_l0xS.js"
9090
9094
  ),
9091
9095
  import(
9092
9096
  /* webpackChunkName: "modal-chunk" */
9093
- "./UsageEntry.axUSgiS0.js"
9097
+ "./UsageEntry.BdEcEOro.js"
9094
9098
  )
9095
9099
  ]).finally(() => s(!0));
9096
9100
  }, [i]), c = U((f) => {
@@ -9119,7 +9123,7 @@ const Nh = (e) => {
9119
9123
  * focus.
9120
9124
  */
9121
9125
  []
9122
- ), /* @__PURE__ */ k(Ce, { children: [
9126
+ ), /* @__PURE__ */ x(Ce, { children: [
9123
9127
  /* @__PURE__ */ u(
9124
9128
  Ue,
9125
9129
  {
@@ -9142,7 +9146,7 @@ const Nh = (e) => {
9142
9146
  onOpenChange: p
9143
9147
  }
9144
9148
  ),
9145
- /* @__PURE__ */ u("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ k(
9149
+ /* @__PURE__ */ u("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ x(
9146
9150
  br,
9147
9151
  {
9148
9152
  alignHorizontal: "space-between",
@@ -9157,7 +9161,7 @@ const Nh = (e) => {
9157
9161
  label: "Profile, Settings, etc.",
9158
9162
  mode: "light",
9159
9163
  placement: "left",
9160
- trigger: /* @__PURE__ */ k(
9164
+ trigger: /* @__PURE__ */ x(
9161
9165
  or,
9162
9166
  {
9163
9167
  mode: "dark",
@@ -9215,7 +9219,7 @@ const Nh = (e) => {
9215
9219
  icon: /* @__PURE__ */ u(ui, {})
9216
9220
  }
9217
9221
  ),
9218
- !e && /* @__PURE__ */ k(Ce, { children: [
9222
+ !e && /* @__PURE__ */ x(Ce, { children: [
9219
9223
  /* @__PURE__ */ u(Ch, {}),
9220
9224
  /* @__PURE__ */ u(
9221
9225
  Ie,
@@ -9305,8 +9309,8 @@ const Nh = (e) => {
9305
9309
  "fill-copy-dark dark:fill-copy-accent": t === "system",
9306
9310
  "fill-copy-accent dark:fill-copy-dark": t === "alt-system"
9307
9311
  });
9308
- return /* @__PURE__ */ k("div", { ref: e, className: o, role: "status", children: [
9309
- r === "dots" && /* @__PURE__ */ k("svg", { className: "h-8 w-8", children: [
9312
+ return /* @__PURE__ */ x("div", { ref: e, className: o, role: "status", children: [
9313
+ r === "dots" && /* @__PURE__ */ x("svg", { className: "h-8 w-8", children: [
9310
9314
  /* @__PURE__ */ u("circle", { className: a, cx: "6", cy: "50%", r: "3" }),
9311
9315
  /* @__PURE__ */ u("circle", { className: a, cx: "50%", cy: "50%", r: "3" }),
9312
9316
  /* @__PURE__ */ u("circle", { className: a, cx: "80%", cy: "50%", r: "3" })
@@ -9328,18 +9332,18 @@ try {
9328
9332
  } catch {
9329
9333
  }
9330
9334
  const lf = Me(
9331
- () => import("./index.Caa3MVly.js").then((e) => ({ default: e.Bubble }))
9335
+ () => import("./index.BUTJCc-o.js").then((e) => ({ default: e.Bubble }))
9332
9336
  ), Xr = (e) => /* @__PURE__ */ u(jt, { fallback: /* @__PURE__ */ u("span", { className: "inline-block" }), children: /* @__PURE__ */ u(lf, { ...e }) });
9333
9337
  Xr.displayName = "AsyncBubble";
9334
9338
  const eo = 1, uf = 150, df = Me(
9335
9339
  () => import(
9336
9340
  /* webpackChunkName: "LazyMessageAssistant" */
9337
- "./ChatBubbleAssistant.tWJz9jxI.js"
9341
+ "./ChatBubbleAssistant.DR6NuTsN.js"
9338
9342
  )
9339
9343
  ), pf = Me(
9340
9344
  () => import(
9341
9345
  /* webpackChunkName: "LazyMessageUser" */
9342
- "./ChatBubbleUser.BsPt1Fgz.js"
9346
+ "./ChatBubbleUser.DyDiVXkT.js"
9343
9347
  )
9344
9348
  ), mf = tt.memo(
9345
9349
  ({
@@ -9350,7 +9354,7 @@ const eo = 1, uf = 150, df = Me(
9350
9354
  isLastAssistantMessage: o = !1,
9351
9355
  status: a
9352
9356
  }) => {
9353
- const [i, s] = R(!0), l = J(Date.now()), [c] = R(
9357
+ const [i, s] = R(!0), l = G(Date.now()), [c] = R(
9354
9358
  () => o && (a === "streaming" || a === "submitted")
9355
9359
  );
9356
9360
  return $(() => {
@@ -9365,7 +9369,7 @@ const eo = 1, uf = 150, df = Me(
9365
9369
  }
9366
9370
  s(!1);
9367
9371
  }
9368
- }, [t, i, o]), e === io && t ? /* @__PURE__ */ k(jt, { fallback: /* @__PURE__ */ u("span", {}), children: [
9372
+ }, [t, i, o]), e === io && t ? /* @__PURE__ */ x(jt, { fallback: /* @__PURE__ */ u("span", {}), children: [
9369
9373
  /* @__PURE__ */ u(pf, { content: t }),
9370
9374
  ";"
9371
9375
  ] }) : (e === lt || e === cn) && o && (a === "submitted" || a === "streaming") && i ? /* @__PURE__ */ u(Xr, { tail: !0, children: /* @__PURE__ */ u(Va, { type: "dots" }) }) : (e === lt || e === cn) && t && t.trim().length >= eo ? /* @__PURE__ */ u(jt, { fallback: /* @__PURE__ */ u("span", {}), children: /* @__PURE__ */ u(
@@ -9405,7 +9409,7 @@ function ff(e) {
9405
9409
  }
9406
9410
  const gf = () => {
9407
9411
  const { messages: e, status: t } = Ve(), r = e ? e.map((a, i) => a.role === lt ? i : -1).filter((a) => a !== -1).pop() : -1, n = e && e.length > 0 ? e[e.length - 1] : null, o = (t === "submitted" || t === "streaming") && n?.role === io;
9408
- return e && e.length > 0 ? /* @__PURE__ */ k("div", { className: "space-y-6 mt-2 @container", children: [
9412
+ return e && e.length > 0 ? /* @__PURE__ */ x("div", { className: "space-y-6 mt-2 @container", children: [
9409
9413
  e?.map((a, i) => {
9410
9414
  let s;
9411
9415
  const l = `${i}-${a.role}`, c = hf(a), p = ff(a), d = a.role === lt && i === r;
@@ -9425,11 +9429,11 @@ const gf = () => {
9425
9429
  o && /* @__PURE__ */ u(Xr, { tail: !0, children: /* @__PURE__ */ u(Va, { type: "dots" }) })
9426
9430
  ] }) : null;
9427
9431
  }, vf = () => {
9428
- const { isAuthenticated: e } = $e(), { ref: t, inViewport: r } = Ws(), n = J(null), o = J(null), {
9432
+ const { isAuthenticated: e } = $e(), { ref: t, inViewport: r } = Ws(), n = G(null), o = G(null), {
9429
9433
  state: { footerPosition: a, footerHeight: i, footerOffset: s }
9430
9434
  } = te(Yr), {
9431
9435
  state: { loading: l }
9432
- } = te(ve), { messages: c } = Ve(), p = J(0), d = _s({
9436
+ } = te(ve), { messages: c } = Ve(), p = G(0), d = _s({
9433
9437
  isAuthenticated: e,
9434
9438
  extraClass: "rounded-b-md relative border-b-16 border-slate-900"
9435
9439
  }), g = Ir() ? "mt-4" : "", f = U(() => {
@@ -9442,8 +9446,8 @@ const gf = () => {
9442
9446
  l && f();
9443
9447
  }, [l, f]), $(() => {
9444
9448
  p.current = a === ct ? i + s + co + bs + 15 : 0;
9445
- }, [a, i, s]), /* @__PURE__ */ k(Ce, { children: [
9446
- /* @__PURE__ */ k("div", { className: d, ref: n, children: [
9449
+ }, [a, i, s]), /* @__PURE__ */ x(Ce, { children: [
9450
+ /* @__PURE__ */ x("div", { className: d, ref: n, children: [
9447
9451
  /* @__PURE__ */ u(ws, { className: g }),
9448
9452
  /* @__PURE__ */ u(gf, {}),
9449
9453
  /* @__PURE__ */ u("div", { ref: t, className: "scroll-marker" }),
@@ -9472,13 +9476,13 @@ function Fa({
9472
9476
  headerHeight: t = 0
9473
9477
  }) {
9474
9478
  const { user: r, getAccessToken: n } = $e(), [o, a] = R(`${ln}px`), [i, s] = ao(), [l, c] = R(Oe()), [p, d] = R([]), [g] = Ye({
9475
- key: qe + ks,
9479
+ key: qe + xs,
9476
9480
  initialValue: ""
9477
9481
  }), [f] = Ye({
9478
9482
  key: qe + Ss,
9479
9483
  initialValue: un
9480
9484
  }), [m] = Ye({
9481
- key: qe + xs,
9485
+ key: qe + ks,
9482
9486
  initialValue: Ke.DESC
9483
9487
  }), [h] = Ye({
9484
9488
  key: qe + Cs,
@@ -9502,7 +9506,7 @@ function Fa({
9502
9506
  }, [P, z] = Et(
9503
9507
  Pm,
9504
9508
  _
9505
- ), [x, A] = Et(Zm, {
9509
+ ), [k, A] = Et(Zm, {
9506
9510
  prompt: "",
9507
9511
  lastTriggeredTimestamp: 0
9508
9512
  }), [ie, be] = Et(Rm, {
@@ -9565,7 +9569,7 @@ function Fa({
9565
9569
  children: /* @__PURE__ */ u(Yr.Provider, { value: { state: I, dispatch: b }, children: /* @__PURE__ */ u(
9566
9570
  qr.Provider,
9567
9571
  {
9568
- value: { state: x, dispatch: A },
9572
+ value: { state: k, dispatch: A },
9569
9573
  children: /* @__PURE__ */ u(
9570
9574
  ve.Provider,
9571
9575
  {
@@ -9575,7 +9579,7 @@ function Fa({
9575
9579
  setChatId: c,
9576
9580
  setInitialMessages: d
9577
9581
  },
9578
- children: /* @__PURE__ */ k(
9582
+ children: /* @__PURE__ */ x(
9579
9583
  Hm,
9580
9584
  {
9581
9585
  value: {
@@ -9588,7 +9592,7 @@ function Fa({
9588
9592
  }
9589
9593
  },
9590
9594
  children: [
9591
- /* @__PURE__ */ k("div", { className: Es, children: [
9595
+ /* @__PURE__ */ x("div", { className: Es, children: [
9592
9596
  /* @__PURE__ */ u(Jn, { containerId: "toggle-save" }),
9593
9597
  /* @__PURE__ */ u(Jn, { containerId: "toggle-provider" })
9594
9598
  ] }),