@versini/sassysaint 8.88.1 → 8.88.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/chunks/{AboutChangelog.CBqCirAO.js → AboutChangelog.C8K_bHsA.js} +3 -3
  2. package/dist/chunks/{AboutEntry.DZHyKc1k.js → AboutEntry.BWcnQ5VD.js} +7 -7
  3. package/dist/chunks/{App.Dv-cuxsd.js → App.C-FFqawg.js} +730 -730
  4. package/dist/chunks/{Chart.BG1bRPu-.js → Chart.BLw2z4y6.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.BOi4Bwy2.js → ChatBubbleAssistant.BTqSD26w.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.CCECeH9j.js → ChatBubbleUser.Dh3_Mt0e.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.D4Qvf5go.js → ChatHistoryTable.Yhv6ijrZ.js} +3 -3
  8. package/dist/chunks/{HistoryEntry.BOTMN57U.js → HistoryEntry.DHffDGPT.js} +3 -3
  9. package/dist/chunks/{ProfileEntry.Cq7Qh-4Q.js → ProfileEntry.Bxk4Jw5J.js} +2 -2
  10. package/dist/chunks/{SettingsEntry.DltFPOUE.js → SettingsEntry.s2mGjfF9.js} +3 -3
  11. package/dist/chunks/{UsageEntry.DHNMBIRz.js → UsageEntry.DYRbKjav.js} +3 -3
  12. package/dist/chunks/{UserMemoriesPanel.DmehGDV5.js → UserMemoriesPanel.WITflZ_0.js} +4 -4
  13. package/dist/chunks/{index.x9T_FISK.js → index.CRTRfMeQ.js} +1 -1
  14. package/dist/chunks/{index.v_1aDRI6.js → index.C_g9sBak.js} +3 -3
  15. package/dist/chunks/{index.kZ7bd_RN.js → index.Cpgy3_qK.js} +1 -1
  16. package/dist/chunks/{index.D87gMPDT.js → index.CzrV29Ys.js} +1 -1
  17. package/dist/chunks/{index.B4Rcs0Md.js → index.DDr47yJM.js} +1 -1
  18. package/dist/chunks/{index.CgF3a0dP.js → index.DbLUR666.js} +1 -1
  19. package/dist/chunks/{index.V4qMbeRe.js → index.hQue6TMs.js} +471 -470
  20. package/dist/chunks/{index.BIaUgL1w.js → index.teIw92Ev.js} +1 -1
  21. package/dist/chunks/{index.DXs6ENaG.js → index.wa3EVOX2.js} +2 -2
  22. package/dist/chunks/{useMarkdown.F2T6qxNe.js → useMarkdown._7muq_2r.js} +6 -6
  23. package/dist/components/SassySaint/SassySaint.js +1 -1
  24. package/dist/index.js +4 -4
  25. package/dist/style.css +1 -1
  26. package/package.json +3 -3
@@ -1,9 +1,9 @@
1
1
  import { jsx as d, jsxs as x, Fragment as Ne } from "react/jsx-runtime";
2
- import { ACTION_SORT as sa, e$1 as gt, ACTION_SEARCH as aa, ACTION_RESET_PROMPT as lo, ACTION_TOGGLE_PROMPT as uo, useLocalStorage as xe, LOCAL_STORAGE_PREFIX as $e, LOCAL_STORAGE_CHAT_ID as po, n as ge, isDev as ia, isPWAMode as fo, isTauri as _t, useChat as ca, useClickOutside as la, useInterval as ua, useTheme as Ee, ButtonIcon as Te, IconAddLight as da, DEFAULT_ICON_ACTION_SIZE as Ae, ChatContext as Se, useUserPreferences as Be, useHotkeys as Ur, isProbablyiPhone as Ze, IconCloseLight as pa, IconEditLight as fa, serverUrl as ho, useEntitlements as jr, IconClose as mo, useHaptic as ha, L as Tr, j$1 as at, Button as on, LOCAL_STORAGE_PRIVATE_DISCLOSURE as ma, j as Gt, IconLockedLight as ga, IconUnlockedLight as va, IconSelected as ya, IconUnSelected as _a, IconNext as ba, PromptsContext as Fr, IconBookSparklesLight as wa, IconRewrite as Ia, IconProofread as Ea, IconMagic as Ta, LOCAL_STORAGE_REASONING_DISCLOSURE as Sa, IconLightBulbLight as ka, useSaveChat as Ca, IconDownloadLight as xa, TOAST_CHAT_SAVED as Aa, IconSendLight as Na, INPUT_PLACEHOLDER_TEXT_MORNING as Oa, INPUT_PLACEHOLDER_TEXT_AFTERNOON as Pa, INPUT_PLACEHOLDER_TEXT_EVENING as Ra, INPUT_PLACEHOLDER_TEXT_NIGHT as za, INPUT_PLACEHOLDER_TEXT_DEFAULT as go, PROMPT_EDITABLE_AREA_CLASSNAME as Ma, PROMPT_CLASSNAME as $a, AppContext as kt, HistoryContext as vo, useChatsHistory as Za, useUniqueId as Da, q as yo, ERROR_MESSAGE as La, o as bt, CLIPBOARD_PROMPT as sn, getHotkeyHandler as Ua, Y as ja, FOOTER_DISCLAIMERS as an, useViewportSize as Fa, useVisualViewportSize as Ba, useResizeObserver as _o, isProbablyiPad as Va, INPUT_BOTTOM_OFFSET_EXTRA as cn, INPUT_BOTTOM_OFFSET_IPHONE as Ha, INPUT_BOTTOM_OFFSET_IPAD as Ga, INPUT_BOTTOM_OFFSET as bo, APP_SET_FOOTER_HEIGHT as Ja, FOOTER_TOP as Sr, FOOTER_BOTTOM as vt, APP_SET_FOOTER_POSITION as ur, getLayoutPaddingClass as kr, canEvaluateModels as ln, X as Wa, IconOpenAI as Ya, l as qa, IconAnthropic as Xa, _ as Ka, IconGoogleGemini as Qa, R as ei, z as ti, H as dr, setNewProvider as un, TOAST_PROVIDER_CHANGED as dn, useQueryClient as ri, LOG_OUT as pn, IconProfile as ni, IconSliders as oi, IconHistory as si, IconEditUser as ai, IconChart as ii, IconInfo as ci, IconBack as li, IconSettings as ui, i as wo, O as fn, useInViewport as di, useServerCapabilities as pi, getMessageContaintWrapperClass as fi, UI_FOOTER_BUFFER as Io, UI_BUTTON_SCROLL_BUFFER as hi, Logo as mi, isProbablyMobile as gi, UI_DEFAULT_MAIN_HEIGHT as hn, e as vi, appReducer as yi, applyOledMode as _i, APP_SET_OLED_MODE as bi, APP_SET_FULL_SCREEN as wi, APP_SET_THEME_MODE as Ii, APP_SET_THEME_PALETTE as Ei, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Ti, APP_CLASSNAME as Si, B as mn, F as ki, LOCAL_STORAGE_SORT as Ci, LOCAL_STORAGE_SEARCH as xi, LOCAL_STORAGE_OLED_MODE as Ai, LOCAL_STORAGE_FULL_SCREEN as Ni, LOCAL_STORAGE_SORT_TIMESTAMP as Oi, LOCAL_STORAGE_SORT_TOKEN_USAGE as Pi, TOAST_CACHE_ENABLED as Ri, TOAST_CACHE_DISABLED as zi } from "./index.V4qMbeRe.js";
3
- import Eo, { useRef as J, useCallback as Y, useSyncExternalStore as pr, useEffect as M, useState as z, createContext as Br, useContext as q, forwardRef as Qe, cloneElement as Mi, useId as To, useLayoutEffect as Vr, useMemo as Ie, Suspense as Jt, lazy as Pe, useReducer as Rt } from "react";
2
+ import { ACTION_SORT as sa, e$1 as gt, ACTION_SEARCH as aa, ACTION_RESET_PROMPT as lo, ACTION_TOGGLE_PROMPT as uo, useLocalStorage as xe, LOCAL_STORAGE_PREFIX as $e, LOCAL_STORAGE_CHAT_ID as po, n as ge, isDev as ia, isPWAMode as fo, isTauri as _t, useChat as ca, useClickOutside as la, useInterval as ua, useTheme as Ee, ButtonIcon as Te, IconAddLight as da, DEFAULT_ICON_ACTION_SIZE as Ae, ChatContext as Se, useUserPreferences as Be, useHotkeys as Ur, isProbablyiPhone as Ze, IconCloseLight as pa, IconEditLight as fa, serverUrl as ho, useEntitlements as jr, IconClose as mo, useHaptic as ha, L as Tr, j$1 as at, Button as on, LOCAL_STORAGE_PRIVATE_DISCLOSURE as ma, j as Gt, IconLockedLight as ga, IconUnlockedLight as va, IconSelected as ya, IconUnSelected as _a, IconNext as ba, PromptsContext as Fr, IconBookSparklesLight as wa, IconRewrite as Ia, IconProofread as Ea, IconMagic as Ta, LOCAL_STORAGE_REASONING_DISCLOSURE as Sa, IconLightBulbLight as ka, useSaveChat as Ca, IconDownloadLight as xa, TOAST_CHAT_SAVED as Aa, IconSendLight as Na, INPUT_PLACEHOLDER_TEXT_MORNING as Oa, INPUT_PLACEHOLDER_TEXT_TODAY as Pa, INPUT_PLACEHOLDER_TEXT_AFTERNOON as Ra, INPUT_PLACEHOLDER_TEXT_EVENING as za, INPUT_PLACEHOLDER_TEXT_NIGHT as Ma, INPUT_PLACEHOLDER_TEXT_DEFAULT as go, PROMPT_EDITABLE_AREA_CLASSNAME as $a, PROMPT_CLASSNAME as Za, AppContext as kt, HistoryContext as vo, useChatsHistory as Da, useUniqueId as La, q as yo, ERROR_MESSAGE as Ua, o as bt, CLIPBOARD_PROMPT as sn, getHotkeyHandler as ja, Y as Fa, FOOTER_DISCLAIMERS as an, useViewportSize as Ba, useVisualViewportSize as Va, useResizeObserver as _o, isProbablyiPad as Ha, INPUT_BOTTOM_OFFSET_EXTRA as cn, INPUT_BOTTOM_OFFSET_IPHONE as Ga, INPUT_BOTTOM_OFFSET_IPAD as Ja, INPUT_BOTTOM_OFFSET as bo, APP_SET_FOOTER_HEIGHT as Wa, FOOTER_TOP as Sr, FOOTER_BOTTOM as vt, APP_SET_FOOTER_POSITION as ur, getLayoutPaddingClass as kr, canEvaluateModels as ln, X as Ya, IconOpenAI as qa, l as Xa, IconAnthropic as Ka, _ as Qa, IconGoogleGemini as ei, R as ti, z as ri, H as dr, setNewProvider as un, TOAST_PROVIDER_CHANGED as dn, useQueryClient as ni, LOG_OUT as pn, IconProfile as oi, IconSliders as si, IconHistory as ai, IconEditUser as ii, IconChart as ci, IconInfo as li, IconBack as ui, IconSettings as di, i as wo, O as fn, useInViewport as pi, useServerCapabilities as fi, getMessageContaintWrapperClass as hi, UI_FOOTER_BUFFER as Io, UI_BUTTON_SCROLL_BUFFER as mi, Logo as gi, isProbablyMobile as vi, UI_DEFAULT_MAIN_HEIGHT as hn, e as yi, appReducer as _i, applyOledMode as bi, APP_SET_OLED_MODE as wi, APP_SET_FULL_SCREEN as Ii, APP_SET_THEME_MODE as Ei, APP_SET_THEME_PALETTE as Ti, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Si, APP_CLASSNAME as ki, B as mn, F as Ci, LOCAL_STORAGE_SORT as xi, LOCAL_STORAGE_SEARCH as Ai, LOCAL_STORAGE_OLED_MODE as Ni, LOCAL_STORAGE_FULL_SCREEN as Oi, LOCAL_STORAGE_SORT_TIMESTAMP as Pi, LOCAL_STORAGE_SORT_TOKEN_USAGE as Ri, TOAST_CACHE_ENABLED as zi, TOAST_CACHE_DISABLED as Mi } from "./index.hQue6TMs.js";
3
+ import Eo, { useRef as J, useCallback as Y, useSyncExternalStore as pr, useEffect as M, useState as z, createContext as Br, useContext as q, forwardRef as Qe, cloneElement as $i, useId as To, useLayoutEffect as Vr, useMemo as Ie, Suspense as Jt, lazy as Pe, useReducer as Rt } from "react";
4
4
  import R, { clsx as De } from "clsx";
5
- import { computePosition as $i, offset as So, flip as ko, shift as Co, arrow as Zi, useMergeRefs as Hr, FloatingPortal as Cr, FloatingOverlay as Di, FloatingFocusManager as xr, useFloating as xo, useClick as Ao, useDismiss as No, useRole as Oo, useInteractions as Po, useFloatingParentNodeId as Ro, FloatingTree as Li, useListItem as zo, useFloatingTree as Mo, useFloatingNodeId as Ui, autoUpdate as ji, useHover as Fi, safePolygon as Bi, useListNavigation as Vi, useTypeahead as Hi, FloatingNode as gn, FloatingList as vn } from "@floating-ui/react";
6
- var $o = "vercel.ai.error", Gi = Symbol.for($o), Zo, Ji = class Do extends Error {
5
+ import { computePosition as Zi, offset as So, flip as ko, shift as Co, arrow as Di, useMergeRefs as Hr, FloatingPortal as Cr, FloatingOverlay as Li, FloatingFocusManager as xr, useFloating as xo, useClick as Ao, useDismiss as No, useRole as Oo, useInteractions as Po, useFloatingParentNodeId as Ro, FloatingTree as Ui, useListItem as zo, useFloatingTree as Mo, useFloatingNodeId as ji, autoUpdate as Fi, useHover as Bi, safePolygon as Vi, useListNavigation as Hi, useTypeahead as Gi, FloatingNode as gn, FloatingList as vn } from "@floating-ui/react";
6
+ var $o = "vercel.ai.error", Ji = Symbol.for($o), Zo, Wi = class Do extends Error {
7
7
  /**
8
8
  * Creates an AI SDK Error.
9
9
  *
@@ -32,12 +32,12 @@ var $o = "vercel.ai.error", Gi = Symbol.for($o), Zo, Ji = class Do extends Error
32
32
  return t != null && typeof t == "object" && n in t && typeof t[n] == "boolean" && t[n] === !0;
33
33
  }
34
34
  };
35
- Zo = Gi;
36
- var Le = Ji;
35
+ Zo = Ji;
36
+ var Le = Wi;
37
37
  function Lo(e) {
38
38
  return e == null ? "unknown error" : typeof e == "string" ? e : e instanceof Error ? e.message : JSON.stringify(e);
39
39
  }
40
- var Uo = "AI_InvalidArgumentError", jo = `vercel.ai.error.${Uo}`, Wi = Symbol.for(jo), Fo, Yi = class extends Le {
40
+ var Uo = "AI_InvalidArgumentError", jo = `vercel.ai.error.${Uo}`, Yi = Symbol.for(jo), Fo, qi = class extends Le {
41
41
  constructor({
42
42
  message: e,
43
43
  cause: t,
@@ -49,8 +49,8 @@ var Uo = "AI_InvalidArgumentError", jo = `vercel.ai.error.${Uo}`, Wi = Symbol.fo
49
49
  return Le.hasMarker(e, jo);
50
50
  }
51
51
  };
52
- Fo = Wi;
53
- var Bo = "AI_JSONParseError", Vo = `vercel.ai.error.${Bo}`, qi = Symbol.for(Vo), Ho, yn = class extends Le {
52
+ Fo = Yi;
53
+ var Bo = "AI_JSONParseError", Vo = `vercel.ai.error.${Bo}`, Xi = Symbol.for(Vo), Ho, yn = class extends Le {
54
54
  constructor({ text: e, cause: t }) {
55
55
  super({
56
56
  name: Bo,
@@ -63,8 +63,8 @@ Error message: ${Lo(t)}`,
63
63
  return Le.hasMarker(e, Vo);
64
64
  }
65
65
  };
66
- Ho = qi;
67
- var Go = "AI_TypeValidationError", Jo = `vercel.ai.error.${Go}`, Xi = Symbol.for(Jo), Wo, Ki = class Ar extends Le {
66
+ Ho = Xi;
67
+ var Go = "AI_TypeValidationError", Jo = `vercel.ai.error.${Go}`, Ki = Symbol.for(Jo), Wo, Qi = class Ar extends Le {
68
68
  constructor({ value: t, cause: r }) {
69
69
  super({
70
70
  name: Go,
@@ -93,8 +93,8 @@ Error message: ${Lo(r)}`,
93
93
  return Ar.isInstance(r) && r.value === t ? r : new Ar({ value: t, cause: r });
94
94
  }
95
95
  };
96
- Wo = Xi;
97
- var Wt = Ki;
96
+ Wo = Ki;
97
+ var Wt = Qi;
98
98
  class _n extends Error {
99
99
  constructor(t, r) {
100
100
  super(t), this.name = "ParseError", this.type = r.type, this.field = r.field, this.value = r.value, this.line = r.line;
@@ -102,7 +102,7 @@ class _n extends Error {
102
102
  }
103
103
  function fr(e) {
104
104
  }
105
- function Qi(e) {
105
+ function ec(e) {
106
106
  if (typeof e == "function")
107
107
  throw new TypeError(
108
108
  "`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?"
@@ -110,7 +110,7 @@ function Qi(e) {
110
110
  const { onEvent: t = fr, onError: r = fr, onRetry: n = fr, onComment: o } = e;
111
111
  let s = "", i = !0, a, l = "", c = "";
112
112
  function p(h) {
113
- const v = i ? h.replace(/^\xEF\xBB\xBF/, "") : h, [b, w] = ec(`${s}${v}`);
113
+ const v = i ? h.replace(/^\xEF\xBB\xBF/, "") : h, [b, w] = tc(`${s}${v}`);
114
114
  for (const I of b)
115
115
  u(I);
116
116
  s = w, i = !1;
@@ -178,7 +178,7 @@ function Qi(e) {
178
178
  }
179
179
  return { feed: p, reset: f };
180
180
  }
181
- function ec(e) {
181
+ function tc(e) {
182
182
  const t = [];
183
183
  let r = "", n = 0;
184
184
  for (; n < e.length; ) {
@@ -196,12 +196,12 @@ function ec(e) {
196
196
  }
197
197
  return [t, r];
198
198
  }
199
- class tc extends TransformStream {
199
+ class rc extends TransformStream {
200
200
  constructor({ onError: t, onRetry: r, onComment: n } = {}) {
201
201
  let o;
202
202
  super({
203
203
  start(s) {
204
- o = Qi({
204
+ o = ec({
205
205
  onEvent: (i) => {
206
206
  s.enqueue(i);
207
207
  },
@@ -258,7 +258,7 @@ function qo(e) {
258
258
  const t = Object.values(e).filter((n) => typeof n == "number");
259
259
  return Object.entries(e).filter(([n, o]) => t.indexOf(+n) === -1).map(([n, o]) => o);
260
260
  }
261
- function rc(e, t) {
261
+ function nc(e, t) {
262
262
  return typeof t == "bigint" ? t.toString() : t;
263
263
  }
264
264
  function Gr(e) {
@@ -278,7 +278,7 @@ function Wr(e) {
278
278
  const t = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length;
279
279
  return e.slice(t, r);
280
280
  }
281
- function nc(e, t) {
281
+ function oc(e, t) {
282
282
  const r = (e.toString().split(".")[1] || "").length, n = (t.toString().split(".")[1] || "").length, o = r > n ? r : n, s = Number.parseInt(e.toFixed(o).replace(".", "")), i = Number.parseInt(t.toFixed(o).replace(".", ""));
283
283
  return s % i / 10 ** o;
284
284
  }
@@ -315,7 +315,7 @@ const Xo = Error.captureStackTrace ? Error.captureStackTrace : (...e) => {
315
315
  function Yt(e) {
316
316
  return typeof e == "object" && e !== null && !Array.isArray(e);
317
317
  }
318
- const oc = Gr(() => {
318
+ const sc = Gr(() => {
319
319
  if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
320
320
  return !1;
321
321
  try {
@@ -334,7 +334,7 @@ function qt(e) {
334
334
  const r = t.prototype;
335
335
  return !(Yt(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
336
336
  }
337
- const sc = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
337
+ const ac = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
338
338
  function Ct(e) {
339
339
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
340
340
  }
@@ -355,17 +355,17 @@ function T(e) {
355
355
  }
356
356
  return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
357
357
  }
358
- function ac(e) {
358
+ function ic(e) {
359
359
  return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
360
360
  }
361
- const ic = {
361
+ const cc = {
362
362
  safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
363
363
  int32: [-2147483648, 2147483647],
364
364
  uint32: [0, 4294967295],
365
365
  float32: [-34028234663852886e22, 34028234663852886e22],
366
366
  float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
367
367
  };
368
- function cc(e, t) {
368
+ function lc(e, t) {
369
369
  const r = {}, n = e._zod.def;
370
370
  for (const o in t) {
371
371
  if (!(o in n.shape))
@@ -378,7 +378,7 @@ function cc(e, t) {
378
378
  checks: []
379
379
  });
380
380
  }
381
- function lc(e, t) {
381
+ function uc(e, t) {
382
382
  const r = { ...e._zod.def.shape }, n = e._zod.def;
383
383
  for (const o in t) {
384
384
  if (!(o in n.shape))
@@ -391,7 +391,7 @@ function lc(e, t) {
391
391
  checks: []
392
392
  });
393
393
  }
394
- function uc(e, t) {
394
+ function dc(e, t) {
395
395
  if (!qt(t))
396
396
  throw new Error("Invalid input to extend: expected a plain object");
397
397
  const r = {
@@ -405,7 +405,7 @@ function uc(e, t) {
405
405
  };
406
406
  return et(e, r);
407
407
  }
408
- function dc(e, t) {
408
+ function pc(e, t) {
409
409
  return et(e, {
410
410
  ...e._zod.def,
411
411
  get shape() {
@@ -417,7 +417,7 @@ function dc(e, t) {
417
417
  // delete existing checks
418
418
  });
419
419
  }
420
- function pc(e, t, r) {
420
+ function fc(e, t, r) {
421
421
  const n = t._zod.def.shape, o = { ...n };
422
422
  if (r)
423
423
  for (const s in r) {
@@ -440,7 +440,7 @@ function pc(e, t, r) {
440
440
  checks: []
441
441
  });
442
442
  }
443
- function fc(e, t, r) {
443
+ function hc(e, t, r) {
444
444
  const n = t._zod.def.shape, o = { ...n };
445
445
  if (r)
446
446
  for (const s in r) {
@@ -508,7 +508,7 @@ const Ko = (e, t) => {
508
508
  enumerable: !1
509
509
  }), Object.defineProperty(e, "message", {
510
510
  get() {
511
- return JSON.stringify(t, rc, 2);
511
+ return JSON.stringify(t, nc, 2);
512
512
  },
513
513
  enumerable: !0
514
514
  // configurable: false,
@@ -517,13 +517,13 @@ const Ko = (e, t) => {
517
517
  enumerable: !1
518
518
  });
519
519
  }, Qo = _("$ZodError", Ko), es = _("$ZodError", Ko, { Parent: Error });
520
- function hc(e, t = (r) => r.message) {
520
+ function mc(e, t = (r) => r.message) {
521
521
  const r = {}, n = [];
522
522
  for (const o of e.issues)
523
523
  o.path.length > 0 ? (r[o.path[0]] = r[o.path[0]] || [], r[o.path[0]].push(t(o))) : n.push(t(o));
524
524
  return { formErrors: n, fieldErrors: r };
525
525
  }
526
- function mc(e, t) {
526
+ function gc(e, t) {
527
527
  const r = t || function(s) {
528
528
  return s.message;
529
529
  }, n = { _errors: [] }, o = (s) => {
@@ -546,7 +546,7 @@ function mc(e, t) {
546
546
  };
547
547
  return o(e), n;
548
548
  }
549
- const gc = (e) => (t, r, n, o) => {
549
+ const vc = (e) => (t, r, n, o) => {
550
550
  const s = n ? Object.assign(n, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: r, issues: [] }, s);
551
551
  if (i instanceof Promise)
552
552
  throw new wt();
@@ -555,7 +555,7 @@ const gc = (e) => (t, r, n, o) => {
555
555
  throw Xo(a, o?.callee), a;
556
556
  }
557
557
  return i.value;
558
- }, vc = (e) => async (t, r, n, o) => {
558
+ }, yc = (e) => async (t, r, n, o) => {
559
559
  const s = n ? Object.assign(n, { async: !0 }) : { async: !0 };
560
560
  let i = t._zod.run({ value: r, issues: [] }, s);
561
561
  if (i instanceof Promise && (i = await i), i.issues.length) {
@@ -571,35 +571,35 @@ const gc = (e) => (t, r, n, o) => {
571
571
  success: !1,
572
572
  error: new (e ?? Qo)(s.issues.map((i) => je(i, o, Ue())))
573
573
  } : { success: !0, data: s.value };
574
- }, yc = /* @__PURE__ */ ts(es), rs = (e) => async (t, r, n) => {
574
+ }, _c = /* @__PURE__ */ ts(es), rs = (e) => async (t, r, n) => {
575
575
  const o = n ? Object.assign(n, { async: !0 }) : { async: !0 };
576
576
  let s = t._zod.run({ value: r, issues: [] }, o);
577
577
  return s instanceof Promise && (s = await s), s.issues.length ? {
578
578
  success: !1,
579
579
  error: new e(s.issues.map((i) => je(i, o, Ue())))
580
580
  } : { success: !0, data: s.value };
581
- }, _c = /* @__PURE__ */ rs(es), bc = /^[cC][^\s-]{8,}$/, wc = /^[0-9a-z]+$/, Ic = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ec = /^[0-9a-vA-V]{20}$/, Tc = /^[A-Za-z0-9]{27}$/, Sc = /^[a-zA-Z0-9_-]{21}$/, kc = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Cc = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, bn = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/, xc = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Ac = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
582
- function Nc() {
583
- return new RegExp(Ac, "u");
581
+ }, bc = /* @__PURE__ */ rs(es), wc = /^[cC][^\s-]{8,}$/, Ic = /^[0-9a-z]+$/, Ec = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Tc = /^[0-9a-vA-V]{20}$/, Sc = /^[A-Za-z0-9]{27}$/, kc = /^[a-zA-Z0-9_-]{21}$/, Cc = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, xc = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, bn = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/, Ac = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Nc = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
582
+ function Oc() {
583
+ return new RegExp(Nc, "u");
584
584
  }
585
- const Oc = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Pc = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/, Rc = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, zc = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Mc = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, ns = /^[A-Za-z0-9_-]*$/, $c = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, Zc = /^\+(?:[0-9]){6,14}[0-9]$/, os = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Dc = /* @__PURE__ */ new RegExp(`^${os}$`);
585
+ const Pc = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Rc = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/, zc = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Mc = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, $c = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, ns = /^[A-Za-z0-9_-]*$/, Zc = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, Dc = /^\+(?:[0-9]){6,14}[0-9]$/, os = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Lc = /* @__PURE__ */ new RegExp(`^${os}$`);
586
586
  function ss(e) {
587
587
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
588
588
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
589
589
  }
590
- function Lc(e) {
590
+ function Uc(e) {
591
591
  return new RegExp(`^${ss(e)}$`);
592
592
  }
593
- function Uc(e) {
593
+ function jc(e) {
594
594
  const t = ss({ precision: e.precision }), r = ["Z"];
595
595
  e.local && r.push(""), e.offset && r.push("([+-]\\d{2}:\\d{2})");
596
596
  const n = `${t}(?:${r.join("|")})`;
597
597
  return new RegExp(`^${os}T(?:${n})$`);
598
598
  }
599
- const jc = (e) => {
599
+ const Fc = (e) => {
600
600
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
601
601
  return new RegExp(`^${t}$`);
602
- }, Fc = /^\d+$/, Bc = /^-?\d+(?:\.\d+)?/i, Vc = /true|false/i, Hc = /null/i, Gc = /^[^A-Z]*$/, Jc = /^[^a-z]*$/, ue = /* @__PURE__ */ _("$ZodCheck", (e, t) => {
602
+ }, Bc = /^\d+$/, Vc = /^-?\d+(?:\.\d+)?/i, Hc = /true|false/i, Gc = /null/i, Jc = /^[^A-Z]*$/, Wc = /^[^a-z]*$/, ue = /* @__PURE__ */ _("$ZodCheck", (e, t) => {
603
603
  var r;
604
604
  e._zod ?? (e._zod = {}), e._zod.def = t, (r = e._zod).onattach ?? (r.onattach = []);
605
605
  }), as = {
@@ -640,14 +640,14 @@ const jc = (e) => {
640
640
  continue: !t.abort
641
641
  });
642
642
  };
643
- }), Wc = /* @__PURE__ */ _("$ZodCheckMultipleOf", (e, t) => {
643
+ }), Yc = /* @__PURE__ */ _("$ZodCheckMultipleOf", (e, t) => {
644
644
  ue.init(e, t), e._zod.onattach.push((r) => {
645
645
  var n;
646
646
  (n = r._zod.bag).multipleOf ?? (n.multipleOf = t.value);
647
647
  }), e._zod.check = (r) => {
648
648
  if (typeof r.value != typeof t.value)
649
649
  throw new Error("Cannot mix number and bigint in multiple_of check.");
650
- (typeof r.value == "bigint" ? r.value % t.value === BigInt(0) : nc(r.value, t.value) === 0) || r.issues.push({
650
+ (typeof r.value == "bigint" ? r.value % t.value === BigInt(0) : oc(r.value, t.value) === 0) || r.issues.push({
651
651
  origin: typeof r.value,
652
652
  code: "not_multiple_of",
653
653
  divisor: t.value,
@@ -656,12 +656,12 @@ const jc = (e) => {
656
656
  continue: !t.abort
657
657
  });
658
658
  };
659
- }), Yc = /* @__PURE__ */ _("$ZodCheckNumberFormat", (e, t) => {
659
+ }), qc = /* @__PURE__ */ _("$ZodCheckNumberFormat", (e, t) => {
660
660
  ue.init(e, t), t.format = t.format || "float64";
661
- const r = t.format?.includes("int"), n = r ? "int" : "number", [o, s] = ic[t.format];
661
+ const r = t.format?.includes("int"), n = r ? "int" : "number", [o, s] = cc[t.format];
662
662
  e._zod.onattach.push((i) => {
663
663
  const a = i._zod.bag;
664
- a.format = t.format, a.minimum = o, a.maximum = s, r && (a.pattern = Fc);
664
+ a.format = t.format, a.minimum = o, a.maximum = s, r && (a.pattern = Bc);
665
665
  }), e._zod.check = (i) => {
666
666
  const a = i.value;
667
667
  if (r) {
@@ -712,7 +712,7 @@ const jc = (e) => {
712
712
  inst: e
713
713
  });
714
714
  };
715
- }), qc = /* @__PURE__ */ _("$ZodCheckMaxLength", (e, t) => {
715
+ }), Xc = /* @__PURE__ */ _("$ZodCheckMaxLength", (e, t) => {
716
716
  var r;
717
717
  ue.init(e, t), (r = e._zod.def).when ?? (r.when = (n) => {
718
718
  const o = n.value;
@@ -735,7 +735,7 @@ const jc = (e) => {
735
735
  continue: !t.abort
736
736
  });
737
737
  };
738
- }), Xc = /* @__PURE__ */ _("$ZodCheckMinLength", (e, t) => {
738
+ }), Kc = /* @__PURE__ */ _("$ZodCheckMinLength", (e, t) => {
739
739
  var r;
740
740
  ue.init(e, t), (r = e._zod.def).when ?? (r.when = (n) => {
741
741
  const o = n.value;
@@ -758,7 +758,7 @@ const jc = (e) => {
758
758
  continue: !t.abort
759
759
  });
760
760
  };
761
- }), Kc = /* @__PURE__ */ _("$ZodCheckLengthEquals", (e, t) => {
761
+ }), Qc = /* @__PURE__ */ _("$ZodCheckLengthEquals", (e, t) => {
762
762
  var r;
763
763
  ue.init(e, t), (r = e._zod.def).when ?? (r.when = (n) => {
764
764
  const o = n.value;
@@ -798,7 +798,7 @@ const jc = (e) => {
798
798
  });
799
799
  }) : (n = e._zod).check ?? (n.check = () => {
800
800
  });
801
- }), Qc = /* @__PURE__ */ _("$ZodCheckRegex", (e, t) => {
801
+ }), el = /* @__PURE__ */ _("$ZodCheckRegex", (e, t) => {
802
802
  nr.init(e, t), e._zod.check = (r) => {
803
803
  t.pattern.lastIndex = 0, !t.pattern.test(r.value) && r.issues.push({
804
804
  origin: "string",
@@ -810,11 +810,11 @@ const jc = (e) => {
810
810
  continue: !t.abort
811
811
  });
812
812
  };
813
- }), el = /* @__PURE__ */ _("$ZodCheckLowerCase", (e, t) => {
814
- t.pattern ?? (t.pattern = Gc), nr.init(e, t);
815
- }), tl = /* @__PURE__ */ _("$ZodCheckUpperCase", (e, t) => {
813
+ }), tl = /* @__PURE__ */ _("$ZodCheckLowerCase", (e, t) => {
816
814
  t.pattern ?? (t.pattern = Jc), nr.init(e, t);
817
- }), rl = /* @__PURE__ */ _("$ZodCheckIncludes", (e, t) => {
815
+ }), rl = /* @__PURE__ */ _("$ZodCheckUpperCase", (e, t) => {
816
+ t.pattern ?? (t.pattern = Wc), nr.init(e, t);
817
+ }), nl = /* @__PURE__ */ _("$ZodCheckIncludes", (e, t) => {
818
818
  ue.init(e, t);
819
819
  const r = Ct(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
820
820
  t.pattern = n, e._zod.onattach.push((o) => {
@@ -831,7 +831,7 @@ const jc = (e) => {
831
831
  continue: !t.abort
832
832
  });
833
833
  };
834
- }), nl = /* @__PURE__ */ _("$ZodCheckStartsWith", (e, t) => {
834
+ }), ol = /* @__PURE__ */ _("$ZodCheckStartsWith", (e, t) => {
835
835
  ue.init(e, t);
836
836
  const r = new RegExp(`^${Ct(t.prefix)}.*`);
837
837
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
@@ -848,7 +848,7 @@ const jc = (e) => {
848
848
  continue: !t.abort
849
849
  });
850
850
  };
851
- }), ol = /* @__PURE__ */ _("$ZodCheckEndsWith", (e, t) => {
851
+ }), sl = /* @__PURE__ */ _("$ZodCheckEndsWith", (e, t) => {
852
852
  ue.init(e, t);
853
853
  const r = new RegExp(`.*${Ct(t.suffix)}$`);
854
854
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
@@ -865,12 +865,12 @@ const jc = (e) => {
865
865
  continue: !t.abort
866
866
  });
867
867
  };
868
- }), sl = /* @__PURE__ */ _("$ZodCheckOverwrite", (e, t) => {
868
+ }), al = /* @__PURE__ */ _("$ZodCheckOverwrite", (e, t) => {
869
869
  ue.init(e, t), e._zod.check = (r) => {
870
870
  r.value = t.tx(r.value);
871
871
  };
872
872
  });
873
- class al {
873
+ class il {
874
874
  constructor(t = []) {
875
875
  this.content = [], this.indent = 0, this && (this.args = t);
876
876
  }
@@ -893,13 +893,13 @@ class al {
893
893
  `));
894
894
  }
895
895
  }
896
- const il = {
896
+ const cl = {
897
897
  major: 4,
898
898
  minor: 0,
899
899
  patch: 0
900
900
  }, U = /* @__PURE__ */ _("$ZodType", (e, t) => {
901
901
  var r;
902
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = il;
902
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = cl;
903
903
  const n = [...e._zod.def.checks ?? []];
904
904
  e._zod.traits.has("$ZodCheck") && n.unshift(e);
905
905
  for (const o of n)
@@ -946,17 +946,17 @@ const il = {
946
946
  e["~standard"] = {
947
947
  validate: (o) => {
948
948
  try {
949
- const s = yc(e, o);
949
+ const s = _c(e, o);
950
950
  return s.success ? { value: s.data } : { issues: s.error?.issues };
951
951
  } catch {
952
- return _c(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
952
+ return bc(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
953
953
  }
954
954
  },
955
955
  vendor: "zod",
956
956
  version: 1
957
957
  };
958
958
  }), qr = /* @__PURE__ */ _("$ZodString", (e, t) => {
959
- U.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? jc(e._zod.bag), e._zod.parse = (r, n) => {
959
+ U.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Fc(e._zod.bag), e._zod.parse = (r, n) => {
960
960
  if (t.coerce)
961
961
  try {
962
962
  r.value = String(r.value);
@@ -971,9 +971,9 @@ const il = {
971
971
  };
972
972
  }), B = /* @__PURE__ */ _("$ZodStringFormat", (e, t) => {
973
973
  nr.init(e, t), qr.init(e, t);
974
- }), cl = /* @__PURE__ */ _("$ZodGUID", (e, t) => {
975
- t.pattern ?? (t.pattern = Cc), B.init(e, t);
976
- }), ll = /* @__PURE__ */ _("$ZodUUID", (e, t) => {
974
+ }), ll = /* @__PURE__ */ _("$ZodGUID", (e, t) => {
975
+ t.pattern ?? (t.pattern = xc), B.init(e, t);
976
+ }), ul = /* @__PURE__ */ _("$ZodUUID", (e, t) => {
977
977
  if (t.version) {
978
978
  const n = {
979
979
  v1: 1,
@@ -991,9 +991,9 @@ const il = {
991
991
  } else
992
992
  t.pattern ?? (t.pattern = bn());
993
993
  B.init(e, t);
994
- }), ul = /* @__PURE__ */ _("$ZodEmail", (e, t) => {
995
- t.pattern ?? (t.pattern = xc), B.init(e, t);
996
- }), dl = /* @__PURE__ */ _("$ZodURL", (e, t) => {
994
+ }), dl = /* @__PURE__ */ _("$ZodEmail", (e, t) => {
995
+ t.pattern ?? (t.pattern = Ac), B.init(e, t);
996
+ }), pl = /* @__PURE__ */ _("$ZodURL", (e, t) => {
997
997
  B.init(e, t), e._zod.check = (r) => {
998
998
  try {
999
999
  const n = r.value, o = new URL(n), s = o.href;
@@ -1001,7 +1001,7 @@ const il = {
1001
1001
  code: "invalid_format",
1002
1002
  format: "url",
1003
1003
  note: "Invalid hostname",
1004
- pattern: $c.source,
1004
+ pattern: Zc.source,
1005
1005
  input: r.value,
1006
1006
  inst: e,
1007
1007
  continue: !t.abort
@@ -1025,35 +1025,35 @@ const il = {
1025
1025
  });
1026
1026
  }
1027
1027
  };
1028
- }), pl = /* @__PURE__ */ _("$ZodEmoji", (e, t) => {
1029
- t.pattern ?? (t.pattern = Nc()), B.init(e, t);
1030
- }), fl = /* @__PURE__ */ _("$ZodNanoID", (e, t) => {
1031
- t.pattern ?? (t.pattern = Sc), B.init(e, t);
1032
- }), hl = /* @__PURE__ */ _("$ZodCUID", (e, t) => {
1033
- t.pattern ?? (t.pattern = bc), B.init(e, t);
1034
- }), ml = /* @__PURE__ */ _("$ZodCUID2", (e, t) => {
1028
+ }), fl = /* @__PURE__ */ _("$ZodEmoji", (e, t) => {
1029
+ t.pattern ?? (t.pattern = Oc()), B.init(e, t);
1030
+ }), hl = /* @__PURE__ */ _("$ZodNanoID", (e, t) => {
1031
+ t.pattern ?? (t.pattern = kc), B.init(e, t);
1032
+ }), ml = /* @__PURE__ */ _("$ZodCUID", (e, t) => {
1035
1033
  t.pattern ?? (t.pattern = wc), B.init(e, t);
1036
- }), gl = /* @__PURE__ */ _("$ZodULID", (e, t) => {
1034
+ }), gl = /* @__PURE__ */ _("$ZodCUID2", (e, t) => {
1037
1035
  t.pattern ?? (t.pattern = Ic), B.init(e, t);
1038
- }), vl = /* @__PURE__ */ _("$ZodXID", (e, t) => {
1036
+ }), vl = /* @__PURE__ */ _("$ZodULID", (e, t) => {
1039
1037
  t.pattern ?? (t.pattern = Ec), B.init(e, t);
1040
- }), yl = /* @__PURE__ */ _("$ZodKSUID", (e, t) => {
1038
+ }), yl = /* @__PURE__ */ _("$ZodXID", (e, t) => {
1041
1039
  t.pattern ?? (t.pattern = Tc), B.init(e, t);
1042
- }), _l = /* @__PURE__ */ _("$ZodISODateTime", (e, t) => {
1040
+ }), _l = /* @__PURE__ */ _("$ZodKSUID", (e, t) => {
1041
+ t.pattern ?? (t.pattern = Sc), B.init(e, t);
1042
+ }), bl = /* @__PURE__ */ _("$ZodISODateTime", (e, t) => {
1043
+ t.pattern ?? (t.pattern = jc(t)), B.init(e, t);
1044
+ }), wl = /* @__PURE__ */ _("$ZodISODate", (e, t) => {
1045
+ t.pattern ?? (t.pattern = Lc), B.init(e, t);
1046
+ }), Il = /* @__PURE__ */ _("$ZodISOTime", (e, t) => {
1043
1047
  t.pattern ?? (t.pattern = Uc(t)), B.init(e, t);
1044
- }), bl = /* @__PURE__ */ _("$ZodISODate", (e, t) => {
1045
- t.pattern ?? (t.pattern = Dc), B.init(e, t);
1046
- }), wl = /* @__PURE__ */ _("$ZodISOTime", (e, t) => {
1047
- t.pattern ?? (t.pattern = Lc(t)), B.init(e, t);
1048
- }), Il = /* @__PURE__ */ _("$ZodISODuration", (e, t) => {
1049
- t.pattern ?? (t.pattern = kc), B.init(e, t);
1050
- }), El = /* @__PURE__ */ _("$ZodIPv4", (e, t) => {
1051
- t.pattern ?? (t.pattern = Oc), B.init(e, t), e._zod.onattach.push((r) => {
1048
+ }), El = /* @__PURE__ */ _("$ZodISODuration", (e, t) => {
1049
+ t.pattern ?? (t.pattern = Cc), B.init(e, t);
1050
+ }), Tl = /* @__PURE__ */ _("$ZodIPv4", (e, t) => {
1051
+ t.pattern ?? (t.pattern = Pc), B.init(e, t), e._zod.onattach.push((r) => {
1052
1052
  const n = r._zod.bag;
1053
1053
  n.format = "ipv4";
1054
1054
  });
1055
- }), Tl = /* @__PURE__ */ _("$ZodIPv6", (e, t) => {
1056
- t.pattern ?? (t.pattern = Pc), B.init(e, t), e._zod.onattach.push((r) => {
1055
+ }), Sl = /* @__PURE__ */ _("$ZodIPv6", (e, t) => {
1056
+ t.pattern ?? (t.pattern = Rc), B.init(e, t), e._zod.onattach.push((r) => {
1057
1057
  const n = r._zod.bag;
1058
1058
  n.format = "ipv6";
1059
1059
  }), e._zod.check = (r) => {
@@ -1069,10 +1069,10 @@ const il = {
1069
1069
  });
1070
1070
  }
1071
1071
  };
1072
- }), Sl = /* @__PURE__ */ _("$ZodCIDRv4", (e, t) => {
1073
- t.pattern ?? (t.pattern = Rc), B.init(e, t);
1074
- }), kl = /* @__PURE__ */ _("$ZodCIDRv6", (e, t) => {
1075
- t.pattern ?? (t.pattern = zc), B.init(e, t), e._zod.check = (r) => {
1072
+ }), kl = /* @__PURE__ */ _("$ZodCIDRv4", (e, t) => {
1073
+ t.pattern ?? (t.pattern = zc), B.init(e, t);
1074
+ }), Cl = /* @__PURE__ */ _("$ZodCIDRv6", (e, t) => {
1075
+ t.pattern ?? (t.pattern = Mc), B.init(e, t), e._zod.check = (r) => {
1076
1076
  const [n, o] = r.value.split("/");
1077
1077
  try {
1078
1078
  if (!o)
@@ -1105,8 +1105,8 @@ function ls(e) {
1105
1105
  return !1;
1106
1106
  }
1107
1107
  }
1108
- const Cl = /* @__PURE__ */ _("$ZodBase64", (e, t) => {
1109
- t.pattern ?? (t.pattern = Mc), B.init(e, t), e._zod.onattach.push((r) => {
1108
+ const xl = /* @__PURE__ */ _("$ZodBase64", (e, t) => {
1109
+ t.pattern ?? (t.pattern = $c), B.init(e, t), e._zod.onattach.push((r) => {
1110
1110
  r._zod.bag.contentEncoding = "base64";
1111
1111
  }), e._zod.check = (r) => {
1112
1112
  ls(r.value) || r.issues.push({
@@ -1118,17 +1118,17 @@ const Cl = /* @__PURE__ */ _("$ZodBase64", (e, t) => {
1118
1118
  });
1119
1119
  };
1120
1120
  });
1121
- function xl(e) {
1121
+ function Al(e) {
1122
1122
  if (!ns.test(e))
1123
1123
  return !1;
1124
1124
  const t = e.replace(/[-_]/g, (n) => n === "-" ? "+" : "/"), r = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
1125
1125
  return ls(r);
1126
1126
  }
1127
- const Al = /* @__PURE__ */ _("$ZodBase64URL", (e, t) => {
1127
+ const Nl = /* @__PURE__ */ _("$ZodBase64URL", (e, t) => {
1128
1128
  t.pattern ?? (t.pattern = ns), B.init(e, t), e._zod.onattach.push((r) => {
1129
1129
  r._zod.bag.contentEncoding = "base64url";
1130
1130
  }), e._zod.check = (r) => {
1131
- xl(r.value) || r.issues.push({
1131
+ Al(r.value) || r.issues.push({
1132
1132
  code: "invalid_format",
1133
1133
  format: "base64url",
1134
1134
  input: r.value,
@@ -1136,10 +1136,10 @@ const Al = /* @__PURE__ */ _("$ZodBase64URL", (e, t) => {
1136
1136
  continue: !t.abort
1137
1137
  });
1138
1138
  };
1139
- }), Nl = /* @__PURE__ */ _("$ZodE164", (e, t) => {
1140
- t.pattern ?? (t.pattern = Zc), B.init(e, t);
1139
+ }), Ol = /* @__PURE__ */ _("$ZodE164", (e, t) => {
1140
+ t.pattern ?? (t.pattern = Dc), B.init(e, t);
1141
1141
  });
1142
- function Ol(e, t = null) {
1142
+ function Pl(e, t = null) {
1143
1143
  try {
1144
1144
  const r = e.split(".");
1145
1145
  if (r.length !== 3)
@@ -1153,9 +1153,9 @@ function Ol(e, t = null) {
1153
1153
  return !1;
1154
1154
  }
1155
1155
  }
1156
- const Pl = /* @__PURE__ */ _("$ZodJWT", (e, t) => {
1156
+ const Rl = /* @__PURE__ */ _("$ZodJWT", (e, t) => {
1157
1157
  B.init(e, t), e._zod.check = (r) => {
1158
- Ol(r.value, t.alg) || r.issues.push({
1158
+ Pl(r.value, t.alg) || r.issues.push({
1159
1159
  code: "invalid_format",
1160
1160
  format: "jwt",
1161
1161
  input: r.value,
@@ -1164,7 +1164,7 @@ const Pl = /* @__PURE__ */ _("$ZodJWT", (e, t) => {
1164
1164
  });
1165
1165
  };
1166
1166
  }), us = /* @__PURE__ */ _("$ZodNumber", (e, t) => {
1167
- U.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Bc, e._zod.parse = (r, n) => {
1167
+ U.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Vc, e._zod.parse = (r, n) => {
1168
1168
  if (t.coerce)
1169
1169
  try {
1170
1170
  r.value = Number(r.value);
@@ -1182,10 +1182,10 @@ const Pl = /* @__PURE__ */ _("$ZodJWT", (e, t) => {
1182
1182
  ...s ? { received: s } : {}
1183
1183
  }), r;
1184
1184
  };
1185
- }), Rl = /* @__PURE__ */ _("$ZodNumber", (e, t) => {
1186
- Yc.init(e, t), us.init(e, t);
1187
- }), zl = /* @__PURE__ */ _("$ZodBoolean", (e, t) => {
1188
- U.init(e, t), e._zod.pattern = Vc, e._zod.parse = (r, n) => {
1185
+ }), zl = /* @__PURE__ */ _("$ZodNumber", (e, t) => {
1186
+ qc.init(e, t), us.init(e, t);
1187
+ }), Ml = /* @__PURE__ */ _("$ZodBoolean", (e, t) => {
1188
+ U.init(e, t), e._zod.pattern = Hc, e._zod.parse = (r, n) => {
1189
1189
  if (t.coerce)
1190
1190
  try {
1191
1191
  r.value = !!r.value;
@@ -1199,8 +1199,8 @@ const Pl = /* @__PURE__ */ _("$ZodJWT", (e, t) => {
1199
1199
  inst: e
1200
1200
  }), r;
1201
1201
  };
1202
- }), Ml = /* @__PURE__ */ _("$ZodNull", (e, t) => {
1203
- U.init(e, t), e._zod.pattern = Hc, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (r, n) => {
1202
+ }), $l = /* @__PURE__ */ _("$ZodNull", (e, t) => {
1203
+ U.init(e, t), e._zod.pattern = Gc, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (r, n) => {
1204
1204
  const o = r.value;
1205
1205
  return o === null || r.issues.push({
1206
1206
  expected: "null",
@@ -1209,9 +1209,9 @@ const Pl = /* @__PURE__ */ _("$ZodJWT", (e, t) => {
1209
1209
  inst: e
1210
1210
  }), r;
1211
1211
  };
1212
- }), $l = /* @__PURE__ */ _("$ZodUnknown", (e, t) => {
1212
+ }), Zl = /* @__PURE__ */ _("$ZodUnknown", (e, t) => {
1213
1213
  U.init(e, t), e._zod.parse = (r) => r;
1214
- }), Zl = /* @__PURE__ */ _("$ZodNever", (e, t) => {
1214
+ }), Dl = /* @__PURE__ */ _("$ZodNever", (e, t) => {
1215
1215
  U.init(e, t), e._zod.parse = (r, n) => (r.issues.push({
1216
1216
  expected: "never",
1217
1217
  code: "invalid_type",
@@ -1222,7 +1222,7 @@ const Pl = /* @__PURE__ */ _("$ZodJWT", (e, t) => {
1222
1222
  function wn(e, t, r) {
1223
1223
  e.issues.length && t.issues.push(...qe(r, e.issues)), t.value[r] = e.value;
1224
1224
  }
1225
- const Dl = /* @__PURE__ */ _("$ZodArray", (e, t) => {
1225
+ const Ll = /* @__PURE__ */ _("$ZodArray", (e, t) => {
1226
1226
  U.init(e, t), e._zod.parse = (r, n) => {
1227
1227
  const o = r.value;
1228
1228
  if (!Array.isArray(o))
@@ -1250,14 +1250,14 @@ function Mt(e, t, r) {
1250
1250
  function In(e, t, r, n) {
1251
1251
  e.issues.length ? n[r] === void 0 ? r in n ? t.value[r] = void 0 : t.value[r] = e.value : t.issues.push(...qe(r, e.issues)) : e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
1252
1252
  }
1253
- const Ll = /* @__PURE__ */ _("$ZodObject", (e, t) => {
1253
+ const Ul = /* @__PURE__ */ _("$ZodObject", (e, t) => {
1254
1254
  U.init(e, t);
1255
1255
  const r = Gr(() => {
1256
1256
  const u = Object.keys(t.shape);
1257
1257
  for (const g of u)
1258
1258
  if (!(t.shape[g] instanceof U))
1259
1259
  throw new Error(`Invalid element at key "${g}": expected a Zod schema`);
1260
- const y = ac(t.shape);
1260
+ const y = ic(t.shape);
1261
1261
  return {
1262
1262
  shape: t.shape,
1263
1263
  keys: u,
@@ -1279,7 +1279,7 @@ const Ll = /* @__PURE__ */ _("$ZodObject", (e, t) => {
1279
1279
  return y;
1280
1280
  });
1281
1281
  const n = (u) => {
1282
- const y = new al(["shape", "payload", "ctx"]), g = r.value, f = (w) => {
1282
+ const y = new il(["shape", "payload", "ctx"]), g = r.value, f = (w) => {
1283
1283
  const I = dt(w);
1284
1284
  return `shape[${I}]._zod.run({ value: input[${I}], issues: [] }, ctx)`;
1285
1285
  };
@@ -1327,7 +1327,7 @@ const Ll = /* @__PURE__ */ _("$ZodObject", (e, t) => {
1327
1327
  return (w, I) => b(u, w, I);
1328
1328
  };
1329
1329
  let o;
1330
- const s = Yt, i = !Yo.jitless, l = i && oc.value, c = t.catchall;
1330
+ const s = Yt, i = !Yo.jitless, l = i && sc.value, c = t.catchall;
1331
1331
  let p;
1332
1332
  e._zod.parse = (u, y) => {
1333
1333
  p ?? (p = r.value);
@@ -1409,7 +1409,7 @@ const ds = /* @__PURE__ */ _("$ZodUnion", (e, t) => {
1409
1409
  }
1410
1410
  return o ? Promise.all(s).then((i) => En(i, r, e, n)) : En(s, r, e, n);
1411
1411
  };
1412
- }), Ul = /* @__PURE__ */ _("$ZodDiscriminatedUnion", (e, t) => {
1412
+ }), jl = /* @__PURE__ */ _("$ZodDiscriminatedUnion", (e, t) => {
1413
1413
  ds.init(e, t);
1414
1414
  const r = e._zod.parse;
1415
1415
  Z(e._zod, "propValues", () => {
@@ -1459,7 +1459,7 @@ const ds = /* @__PURE__ */ _("$ZodUnion", (e, t) => {
1459
1459
  inst: e
1460
1460
  }), o);
1461
1461
  };
1462
- }), jl = /* @__PURE__ */ _("$ZodIntersection", (e, t) => {
1462
+ }), Fl = /* @__PURE__ */ _("$ZodIntersection", (e, t) => {
1463
1463
  U.init(e, t), e._zod.parse = (r, n) => {
1464
1464
  const o = r.value, s = t.left._zod.run({ value: o, issues: [] }, n), i = t.right._zod.run({ value: o, issues: [] }, n);
1465
1465
  return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([l, c]) => Tn(r, l, c)) : Tn(r, s, i);
@@ -1508,7 +1508,7 @@ function Tn(e, t, r) {
1508
1508
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);
1509
1509
  return e.value = n.data, e;
1510
1510
  }
1511
- const Fl = /* @__PURE__ */ _("$ZodRecord", (e, t) => {
1511
+ const Bl = /* @__PURE__ */ _("$ZodRecord", (e, t) => {
1512
1512
  U.init(e, t), e._zod.parse = (r, n) => {
1513
1513
  const o = r.value;
1514
1514
  if (!qt(o))
@@ -1565,10 +1565,10 @@ const Fl = /* @__PURE__ */ _("$ZodRecord", (e, t) => {
1565
1565
  }
1566
1566
  return s.length ? Promise.all(s).then(() => r) : r;
1567
1567
  };
1568
- }), Bl = /* @__PURE__ */ _("$ZodEnum", (e, t) => {
1568
+ }), Vl = /* @__PURE__ */ _("$ZodEnum", (e, t) => {
1569
1569
  U.init(e, t);
1570
1570
  const r = qo(t.entries);
1571
- e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) => sc.has(typeof n)).map((n) => typeof n == "string" ? Ct(n) : n.toString()).join("|")})$`), e._zod.parse = (n, o) => {
1571
+ e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) => ac.has(typeof n)).map((n) => typeof n == "string" ? Ct(n) : n.toString()).join("|")})$`), e._zod.parse = (n, o) => {
1572
1572
  const s = n.value;
1573
1573
  return e._zod.values.has(s) || n.issues.push({
1574
1574
  code: "invalid_value",
@@ -1577,7 +1577,7 @@ const Fl = /* @__PURE__ */ _("$ZodRecord", (e, t) => {
1577
1577
  inst: e
1578
1578
  }), n;
1579
1579
  };
1580
- }), Vl = /* @__PURE__ */ _("$ZodLiteral", (e, t) => {
1580
+ }), Hl = /* @__PURE__ */ _("$ZodLiteral", (e, t) => {
1581
1581
  U.init(e, t), e._zod.values = new Set(t.values), e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? Ct(r) : r ? r.toString() : String(r)).join("|")})$`), e._zod.parse = (r, n) => {
1582
1582
  const o = r.value;
1583
1583
  return e._zod.values.has(o) || r.issues.push({
@@ -1587,7 +1587,7 @@ const Fl = /* @__PURE__ */ _("$ZodRecord", (e, t) => {
1587
1587
  inst: e
1588
1588
  }), r;
1589
1589
  };
1590
- }), Hl = /* @__PURE__ */ _("$ZodTransform", (e, t) => {
1590
+ }), Gl = /* @__PURE__ */ _("$ZodTransform", (e, t) => {
1591
1591
  U.init(e, t), e._zod.parse = (r, n) => {
1592
1592
  const o = t.transform(r.value, r);
1593
1593
  if (n.async)
@@ -1596,17 +1596,17 @@ const Fl = /* @__PURE__ */ _("$ZodRecord", (e, t) => {
1596
1596
  throw new wt();
1597
1597
  return r.value = o, r;
1598
1598
  };
1599
- }), Gl = /* @__PURE__ */ _("$ZodOptional", (e, t) => {
1599
+ }), Jl = /* @__PURE__ */ _("$ZodOptional", (e, t) => {
1600
1600
  U.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", Z(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), Z(e._zod, "pattern", () => {
1601
1601
  const r = t.innerType._zod.pattern;
1602
1602
  return r ? new RegExp(`^(${Wr(r.source)})?$`) : void 0;
1603
1603
  }), e._zod.parse = (r, n) => t.innerType._zod.optin === "optional" ? t.innerType._zod.run(r, n) : r.value === void 0 ? r : t.innerType._zod.run(r, n);
1604
- }), Jl = /* @__PURE__ */ _("$ZodNullable", (e, t) => {
1604
+ }), Wl = /* @__PURE__ */ _("$ZodNullable", (e, t) => {
1605
1605
  U.init(e, t), Z(e._zod, "optin", () => t.innerType._zod.optin), Z(e._zod, "optout", () => t.innerType._zod.optout), Z(e._zod, "pattern", () => {
1606
1606
  const r = t.innerType._zod.pattern;
1607
1607
  return r ? new RegExp(`^(${Wr(r.source)}|null)$`) : void 0;
1608
1608
  }), Z(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
1609
- }), Wl = /* @__PURE__ */ _("$ZodDefault", (e, t) => {
1609
+ }), Yl = /* @__PURE__ */ _("$ZodDefault", (e, t) => {
1610
1610
  U.init(e, t), e._zod.optin = "optional", Z(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1611
1611
  if (r.value === void 0)
1612
1612
  return r.value = t.defaultValue, r;
@@ -1617,9 +1617,9 @@ const Fl = /* @__PURE__ */ _("$ZodRecord", (e, t) => {
1617
1617
  function Sn(e, t) {
1618
1618
  return e.value === void 0 && (e.value = t.defaultValue), e;
1619
1619
  }
1620
- const Yl = /* @__PURE__ */ _("$ZodPrefault", (e, t) => {
1620
+ const ql = /* @__PURE__ */ _("$ZodPrefault", (e, t) => {
1621
1621
  U.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));
1622
- }), ql = /* @__PURE__ */ _("$ZodNonOptional", (e, t) => {
1622
+ }), Xl = /* @__PURE__ */ _("$ZodNonOptional", (e, t) => {
1623
1623
  U.init(e, t), Z(e._zod, "values", () => {
1624
1624
  const r = t.innerType._zod.values;
1625
1625
  return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
@@ -1636,7 +1636,7 @@ function kn(e, t) {
1636
1636
  inst: t
1637
1637
  }), e;
1638
1638
  }
1639
- const Xl = /* @__PURE__ */ _("$ZodCatch", (e, t) => {
1639
+ const Kl = /* @__PURE__ */ _("$ZodCatch", (e, t) => {
1640
1640
  U.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) => {
1641
1641
  const o = t.innerType._zod.run(r, n);
1642
1642
  return o instanceof Promise ? o.then((s) => (r.value = s.value, s.issues.length && (r.value = t.catchValue({
@@ -1653,7 +1653,7 @@ const Xl = /* @__PURE__ */ _("$ZodCatch", (e, t) => {
1653
1653
  input: r.value
1654
1654
  }), r.issues = []), r);
1655
1655
  };
1656
- }), Kl = /* @__PURE__ */ _("$ZodPipe", (e, t) => {
1656
+ }), Ql = /* @__PURE__ */ _("$ZodPipe", (e, t) => {
1657
1657
  U.init(e, t), Z(e._zod, "values", () => t.in._zod.values), Z(e._zod, "optin", () => t.in._zod.optin), Z(e._zod, "optout", () => t.out._zod.optout), e._zod.parse = (r, n) => {
1658
1658
  const o = t.in._zod.run(r, n);
1659
1659
  return o instanceof Promise ? o.then((s) => Cn(s, t, n)) : Cn(o, t, n);
@@ -1662,7 +1662,7 @@ const Xl = /* @__PURE__ */ _("$ZodCatch", (e, t) => {
1662
1662
  function Cn(e, t, r) {
1663
1663
  return yt(e) ? e : t.out._zod.run({ value: e.value, issues: e.issues }, r);
1664
1664
  }
1665
- const Ql = /* @__PURE__ */ _("$ZodReadonly", (e, t) => {
1665
+ const eu = /* @__PURE__ */ _("$ZodReadonly", (e, t) => {
1666
1666
  U.init(e, t), Z(e._zod, "propValues", () => t.innerType._zod.propValues), Z(e._zod, "values", () => t.innerType._zod.values), Z(e._zod, "optin", () => t.innerType._zod.optin), Z(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
1667
1667
  const o = t.innerType._zod.run(r, n);
1668
1668
  return o instanceof Promise ? o.then(xn) : xn(o);
@@ -1671,9 +1671,9 @@ const Ql = /* @__PURE__ */ _("$ZodReadonly", (e, t) => {
1671
1671
  function xn(e) {
1672
1672
  return e.value = Object.freeze(e.value), e;
1673
1673
  }
1674
- const eu = /* @__PURE__ */ _("$ZodLazy", (e, t) => {
1674
+ const tu = /* @__PURE__ */ _("$ZodLazy", (e, t) => {
1675
1675
  U.init(e, t), Z(e._zod, "innerType", () => t.getter()), Z(e._zod, "pattern", () => e._zod.innerType._zod.pattern), Z(e._zod, "propValues", () => e._zod.innerType._zod.propValues), Z(e._zod, "optin", () => e._zod.innerType._zod.optin), Z(e._zod, "optout", () => e._zod.innerType._zod.optout), e._zod.parse = (r, n) => e._zod.innerType._zod.run(r, n);
1676
- }), tu = /* @__PURE__ */ _("$ZodCustom", (e, t) => {
1676
+ }), ru = /* @__PURE__ */ _("$ZodCustom", (e, t) => {
1677
1677
  ue.init(e, t), U.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
1678
1678
  const n = r.value, o = t.fn(n);
1679
1679
  if (o instanceof Promise)
@@ -1728,17 +1728,17 @@ class ps {
1728
1728
  return this._map.has(t);
1729
1729
  }
1730
1730
  }
1731
- function ru() {
1731
+ function nu() {
1732
1732
  return new ps();
1733
1733
  }
1734
- const pt = /* @__PURE__ */ ru();
1735
- function nu(e, t) {
1734
+ const pt = /* @__PURE__ */ nu();
1735
+ function ou(e, t) {
1736
1736
  return new e({
1737
1737
  type: "string",
1738
1738
  ...T(t)
1739
1739
  });
1740
1740
  }
1741
- function ou(e, t) {
1741
+ function su(e, t) {
1742
1742
  return new e({
1743
1743
  type: "string",
1744
1744
  format: "email",
@@ -1756,7 +1756,7 @@ function Nn(e, t) {
1756
1756
  ...T(t)
1757
1757
  });
1758
1758
  }
1759
- function su(e, t) {
1759
+ function au(e, t) {
1760
1760
  return new e({
1761
1761
  type: "string",
1762
1762
  format: "uuid",
@@ -1765,7 +1765,7 @@ function su(e, t) {
1765
1765
  ...T(t)
1766
1766
  });
1767
1767
  }
1768
- function au(e, t) {
1768
+ function iu(e, t) {
1769
1769
  return new e({
1770
1770
  type: "string",
1771
1771
  format: "uuid",
@@ -1775,7 +1775,7 @@ function au(e, t) {
1775
1775
  ...T(t)
1776
1776
  });
1777
1777
  }
1778
- function iu(e, t) {
1778
+ function cu(e, t) {
1779
1779
  return new e({
1780
1780
  type: "string",
1781
1781
  format: "uuid",
@@ -1785,7 +1785,7 @@ function iu(e, t) {
1785
1785
  ...T(t)
1786
1786
  });
1787
1787
  }
1788
- function cu(e, t) {
1788
+ function lu(e, t) {
1789
1789
  return new e({
1790
1790
  type: "string",
1791
1791
  format: "uuid",
@@ -1795,7 +1795,7 @@ function cu(e, t) {
1795
1795
  ...T(t)
1796
1796
  });
1797
1797
  }
1798
- function lu(e, t) {
1798
+ function uu(e, t) {
1799
1799
  return new e({
1800
1800
  type: "string",
1801
1801
  format: "url",
@@ -1804,7 +1804,7 @@ function lu(e, t) {
1804
1804
  ...T(t)
1805
1805
  });
1806
1806
  }
1807
- function uu(e, t) {
1807
+ function du(e, t) {
1808
1808
  return new e({
1809
1809
  type: "string",
1810
1810
  format: "emoji",
@@ -1813,7 +1813,7 @@ function uu(e, t) {
1813
1813
  ...T(t)
1814
1814
  });
1815
1815
  }
1816
- function du(e, t) {
1816
+ function pu(e, t) {
1817
1817
  return new e({
1818
1818
  type: "string",
1819
1819
  format: "nanoid",
@@ -1822,7 +1822,7 @@ function du(e, t) {
1822
1822
  ...T(t)
1823
1823
  });
1824
1824
  }
1825
- function pu(e, t) {
1825
+ function fu(e, t) {
1826
1826
  return new e({
1827
1827
  type: "string",
1828
1828
  format: "cuid",
@@ -1831,7 +1831,7 @@ function pu(e, t) {
1831
1831
  ...T(t)
1832
1832
  });
1833
1833
  }
1834
- function fu(e, t) {
1834
+ function hu(e, t) {
1835
1835
  return new e({
1836
1836
  type: "string",
1837
1837
  format: "cuid2",
@@ -1840,7 +1840,7 @@ function fu(e, t) {
1840
1840
  ...T(t)
1841
1841
  });
1842
1842
  }
1843
- function hu(e, t) {
1843
+ function mu(e, t) {
1844
1844
  return new e({
1845
1845
  type: "string",
1846
1846
  format: "ulid",
@@ -1849,7 +1849,7 @@ function hu(e, t) {
1849
1849
  ...T(t)
1850
1850
  });
1851
1851
  }
1852
- function mu(e, t) {
1852
+ function gu(e, t) {
1853
1853
  return new e({
1854
1854
  type: "string",
1855
1855
  format: "xid",
@@ -1858,7 +1858,7 @@ function mu(e, t) {
1858
1858
  ...T(t)
1859
1859
  });
1860
1860
  }
1861
- function gu(e, t) {
1861
+ function vu(e, t) {
1862
1862
  return new e({
1863
1863
  type: "string",
1864
1864
  format: "ksuid",
@@ -1867,7 +1867,7 @@ function gu(e, t) {
1867
1867
  ...T(t)
1868
1868
  });
1869
1869
  }
1870
- function vu(e, t) {
1870
+ function yu(e, t) {
1871
1871
  return new e({
1872
1872
  type: "string",
1873
1873
  format: "ipv4",
@@ -1876,7 +1876,7 @@ function vu(e, t) {
1876
1876
  ...T(t)
1877
1877
  });
1878
1878
  }
1879
- function yu(e, t) {
1879
+ function _u(e, t) {
1880
1880
  return new e({
1881
1881
  type: "string",
1882
1882
  format: "ipv6",
@@ -1885,7 +1885,7 @@ function yu(e, t) {
1885
1885
  ...T(t)
1886
1886
  });
1887
1887
  }
1888
- function _u(e, t) {
1888
+ function bu(e, t) {
1889
1889
  return new e({
1890
1890
  type: "string",
1891
1891
  format: "cidrv4",
@@ -1894,7 +1894,7 @@ function _u(e, t) {
1894
1894
  ...T(t)
1895
1895
  });
1896
1896
  }
1897
- function bu(e, t) {
1897
+ function wu(e, t) {
1898
1898
  return new e({
1899
1899
  type: "string",
1900
1900
  format: "cidrv6",
@@ -1903,7 +1903,7 @@ function bu(e, t) {
1903
1903
  ...T(t)
1904
1904
  });
1905
1905
  }
1906
- function wu(e, t) {
1906
+ function Iu(e, t) {
1907
1907
  return new e({
1908
1908
  type: "string",
1909
1909
  format: "base64",
@@ -1912,7 +1912,7 @@ function wu(e, t) {
1912
1912
  ...T(t)
1913
1913
  });
1914
1914
  }
1915
- function Iu(e, t) {
1915
+ function Eu(e, t) {
1916
1916
  return new e({
1917
1917
  type: "string",
1918
1918
  format: "base64url",
@@ -1921,7 +1921,7 @@ function Iu(e, t) {
1921
1921
  ...T(t)
1922
1922
  });
1923
1923
  }
1924
- function Eu(e, t) {
1924
+ function Tu(e, t) {
1925
1925
  return new e({
1926
1926
  type: "string",
1927
1927
  format: "e164",
@@ -1930,7 +1930,7 @@ function Eu(e, t) {
1930
1930
  ...T(t)
1931
1931
  });
1932
1932
  }
1933
- function Tu(e, t) {
1933
+ function Su(e, t) {
1934
1934
  return new e({
1935
1935
  type: "string",
1936
1936
  format: "jwt",
@@ -1939,7 +1939,7 @@ function Tu(e, t) {
1939
1939
  ...T(t)
1940
1940
  });
1941
1941
  }
1942
- function Su(e, t) {
1942
+ function ku(e, t) {
1943
1943
  return new e({
1944
1944
  type: "string",
1945
1945
  format: "datetime",
@@ -1950,7 +1950,7 @@ function Su(e, t) {
1950
1950
  ...T(t)
1951
1951
  });
1952
1952
  }
1953
- function ku(e, t) {
1953
+ function Cu(e, t) {
1954
1954
  return new e({
1955
1955
  type: "string",
1956
1956
  format: "date",
@@ -1958,7 +1958,7 @@ function ku(e, t) {
1958
1958
  ...T(t)
1959
1959
  });
1960
1960
  }
1961
- function Cu(e, t) {
1961
+ function xu(e, t) {
1962
1962
  return new e({
1963
1963
  type: "string",
1964
1964
  format: "time",
@@ -1967,7 +1967,7 @@ function Cu(e, t) {
1967
1967
  ...T(t)
1968
1968
  });
1969
1969
  }
1970
- function xu(e, t) {
1970
+ function Au(e, t) {
1971
1971
  return new e({
1972
1972
  type: "string",
1973
1973
  format: "duration",
@@ -1975,14 +1975,14 @@ function xu(e, t) {
1975
1975
  ...T(t)
1976
1976
  });
1977
1977
  }
1978
- function Au(e, t) {
1978
+ function Nu(e, t) {
1979
1979
  return new e({
1980
1980
  type: "number",
1981
1981
  checks: [],
1982
1982
  ...T(t)
1983
1983
  });
1984
1984
  }
1985
- function Nu(e, t) {
1985
+ function Ou(e, t) {
1986
1986
  return new e({
1987
1987
  type: "number",
1988
1988
  check: "number_format",
@@ -1991,24 +1991,24 @@ function Nu(e, t) {
1991
1991
  ...T(t)
1992
1992
  });
1993
1993
  }
1994
- function Ou(e, t) {
1994
+ function Pu(e, t) {
1995
1995
  return new e({
1996
1996
  type: "boolean",
1997
1997
  ...T(t)
1998
1998
  });
1999
1999
  }
2000
- function Pu(e, t) {
2000
+ function Ru(e, t) {
2001
2001
  return new e({
2002
2002
  type: "null",
2003
2003
  ...T(t)
2004
2004
  });
2005
2005
  }
2006
- function Ru(e) {
2006
+ function zu(e) {
2007
2007
  return new e({
2008
2008
  type: "unknown"
2009
2009
  });
2010
2010
  }
2011
- function zu(e, t) {
2011
+ function Mu(e, t) {
2012
2012
  return new e({
2013
2013
  type: "never",
2014
2014
  ...T(t)
@@ -2047,73 +2047,73 @@ function mr(e, t) {
2047
2047
  });
2048
2048
  }
2049
2049
  function Rn(e, t) {
2050
- return new Wc({
2050
+ return new Yc({
2051
2051
  check: "multiple_of",
2052
2052
  ...T(t),
2053
2053
  value: e
2054
2054
  });
2055
2055
  }
2056
2056
  function fs(e, t) {
2057
- return new qc({
2057
+ return new Xc({
2058
2058
  check: "max_length",
2059
2059
  ...T(t),
2060
2060
  maximum: e
2061
2061
  });
2062
2062
  }
2063
2063
  function Xt(e, t) {
2064
- return new Xc({
2064
+ return new Kc({
2065
2065
  check: "min_length",
2066
2066
  ...T(t),
2067
2067
  minimum: e
2068
2068
  });
2069
2069
  }
2070
2070
  function hs(e, t) {
2071
- return new Kc({
2071
+ return new Qc({
2072
2072
  check: "length_equals",
2073
2073
  ...T(t),
2074
2074
  length: e
2075
2075
  });
2076
2076
  }
2077
- function Mu(e, t) {
2078
- return new Qc({
2077
+ function $u(e, t) {
2078
+ return new el({
2079
2079
  check: "string_format",
2080
2080
  format: "regex",
2081
2081
  ...T(t),
2082
2082
  pattern: e
2083
2083
  });
2084
2084
  }
2085
- function $u(e) {
2086
- return new el({
2085
+ function Zu(e) {
2086
+ return new tl({
2087
2087
  check: "string_format",
2088
2088
  format: "lowercase",
2089
2089
  ...T(e)
2090
2090
  });
2091
2091
  }
2092
- function Zu(e) {
2093
- return new tl({
2092
+ function Du(e) {
2093
+ return new rl({
2094
2094
  check: "string_format",
2095
2095
  format: "uppercase",
2096
2096
  ...T(e)
2097
2097
  });
2098
2098
  }
2099
- function Du(e, t) {
2100
- return new rl({
2099
+ function Lu(e, t) {
2100
+ return new nl({
2101
2101
  check: "string_format",
2102
2102
  format: "includes",
2103
2103
  ...T(t),
2104
2104
  includes: e
2105
2105
  });
2106
2106
  }
2107
- function Lu(e, t) {
2108
- return new nl({
2107
+ function Uu(e, t) {
2108
+ return new ol({
2109
2109
  check: "string_format",
2110
2110
  format: "starts_with",
2111
2111
  ...T(t),
2112
2112
  prefix: e
2113
2113
  });
2114
2114
  }
2115
- function Uu(e, t) {
2116
- return new ol({
2115
+ function ju(e, t) {
2116
+ return new sl({
2117
2117
  check: "string_format",
2118
2118
  format: "ends_with",
2119
2119
  ...T(t),
@@ -2121,24 +2121,24 @@ function Uu(e, t) {
2121
2121
  });
2122
2122
  }
2123
2123
  function xt(e) {
2124
- return new sl({
2124
+ return new al({
2125
2125
  check: "overwrite",
2126
2126
  tx: e
2127
2127
  });
2128
2128
  }
2129
- function ju(e) {
2129
+ function Fu(e) {
2130
2130
  return xt((t) => t.normalize(e));
2131
2131
  }
2132
- function Fu() {
2132
+ function Bu() {
2133
2133
  return xt((e) => e.trim());
2134
2134
  }
2135
- function Bu() {
2135
+ function Vu() {
2136
2136
  return xt((e) => e.toLowerCase());
2137
2137
  }
2138
- function Vu() {
2138
+ function Hu() {
2139
2139
  return xt((e) => e.toUpperCase());
2140
2140
  }
2141
- function Hu(e, t, r) {
2141
+ function Gu(e, t, r) {
2142
2142
  return new e({
2143
2143
  type: "array",
2144
2144
  element: t,
@@ -2148,7 +2148,7 @@ function Hu(e, t, r) {
2148
2148
  ...T(r)
2149
2149
  });
2150
2150
  }
2151
- function Gu(e, t, r) {
2151
+ function Ju(e, t, r) {
2152
2152
  const n = T(r);
2153
2153
  return n.abort ?? (n.abort = !0), new e({
2154
2154
  type: "custom",
@@ -2157,7 +2157,7 @@ function Gu(e, t, r) {
2157
2157
  ...n
2158
2158
  });
2159
2159
  }
2160
- function Ju(e, t, r) {
2160
+ function Wu(e, t, r) {
2161
2161
  return new e({
2162
2162
  type: "custom",
2163
2163
  check: "custom",
@@ -2566,7 +2566,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
2566
2566
  }
2567
2567
  }
2568
2568
  }
2569
- function Wu(e, t) {
2569
+ function Yu(e, t) {
2570
2570
  if (e instanceof ps) {
2571
2571
  const n = new zn(t), o = {};
2572
2572
  for (const a of e._idmap.entries()) {
@@ -2675,38 +2675,38 @@ function Q(e, t) {
2675
2675
  }
2676
2676
  throw new Error(`Unknown schema type: ${o.type}`);
2677
2677
  }
2678
- const Yu = /* @__PURE__ */ _("ZodISODateTime", (e, t) => {
2679
- _l.init(e, t), G.init(e, t);
2680
- });
2681
- function qu(e) {
2682
- return Su(Yu, e);
2683
- }
2684
- const Xu = /* @__PURE__ */ _("ZodISODate", (e, t) => {
2678
+ const qu = /* @__PURE__ */ _("ZodISODateTime", (e, t) => {
2685
2679
  bl.init(e, t), G.init(e, t);
2686
2680
  });
2687
- function Ku(e) {
2688
- return ku(Xu, e);
2681
+ function Xu(e) {
2682
+ return ku(qu, e);
2689
2683
  }
2690
- const Qu = /* @__PURE__ */ _("ZodISOTime", (e, t) => {
2684
+ const Ku = /* @__PURE__ */ _("ZodISODate", (e, t) => {
2691
2685
  wl.init(e, t), G.init(e, t);
2692
2686
  });
2693
- function ed(e) {
2694
- return Cu(Qu, e);
2687
+ function Qu(e) {
2688
+ return Cu(Ku, e);
2695
2689
  }
2696
- const td = /* @__PURE__ */ _("ZodISODuration", (e, t) => {
2690
+ const ed = /* @__PURE__ */ _("ZodISOTime", (e, t) => {
2697
2691
  Il.init(e, t), G.init(e, t);
2698
2692
  });
2699
- function rd(e) {
2700
- return xu(td, e);
2693
+ function td(e) {
2694
+ return xu(ed, e);
2695
+ }
2696
+ const rd = /* @__PURE__ */ _("ZodISODuration", (e, t) => {
2697
+ El.init(e, t), G.init(e, t);
2698
+ });
2699
+ function nd(e) {
2700
+ return Au(rd, e);
2701
2701
  }
2702
- const nd = (e, t) => {
2702
+ const od = (e, t) => {
2703
2703
  Qo.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2704
2704
  format: {
2705
- value: (r) => mc(e, r)
2705
+ value: (r) => gc(e, r)
2706
2706
  // enumerable: false,
2707
2707
  },
2708
2708
  flatten: {
2709
- value: (r) => hc(e, r)
2709
+ value: (r) => mc(e, r)
2710
2710
  // enumerable: false,
2711
2711
  },
2712
2712
  addIssue: {
@@ -2724,9 +2724,9 @@ const nd = (e, t) => {
2724
2724
  // enumerable: false,
2725
2725
  }
2726
2726
  });
2727
- }, or = _("ZodError", nd, {
2727
+ }, or = _("ZodError", od, {
2728
2728
  Parent: Error
2729
- }), od = /* @__PURE__ */ gc(or), sd = /* @__PURE__ */ vc(or), ad = /* @__PURE__ */ ts(or), ms = /* @__PURE__ */ rs(or), V = /* @__PURE__ */ _("ZodType", (e, t) => (U.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
2729
+ }), sd = /* @__PURE__ */ vc(or), ad = /* @__PURE__ */ yc(or), id = /* @__PURE__ */ ts(or), ms = /* @__PURE__ */ rs(or), V = /* @__PURE__ */ _("ZodType", (e, t) => (U.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
2730
2730
  {
2731
2731
  ...t,
2732
2732
  checks: [
@@ -2735,7 +2735,7 @@ const nd = (e, t) => {
2735
2735
  ]
2736
2736
  }
2737
2737
  // { parent: true }
2738
- ), e.clone = (r, n) => et(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => od(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => ad(e, r, n), e.parseAsync = async (r, n) => sd(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => ms(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(tp(r, n)), e.superRefine = (r) => e.check(rp(r)), e.overwrite = (r) => e.check(xt(r)), e.optional = () => Zn(e), e.nullable = () => Dn(e), e.nullish = () => Zn(Dn(e)), e.nonoptional = (r) => Gd(e, r), e.array = () => ct(e), e.or = (r) => me([e, r]), e.and = (r) => $d(e, r), e.transform = (r) => Ln(e, Ud(r)), e.default = (r) => Bd(e, r), e.prefault = (r) => Hd(e, r), e.catch = (r) => Wd(e, r), e.pipe = (r) => Ln(e, r), e.readonly = () => Xd(e), e.describe = (r) => {
2738
+ ), e.clone = (r, n) => et(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => sd(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => id(e, r, n), e.parseAsync = async (r, n) => ad(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => ms(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(rp(r, n)), e.superRefine = (r) => e.check(np(r)), e.overwrite = (r) => e.check(xt(r)), e.optional = () => Zn(e), e.nullable = () => Dn(e), e.nullish = () => Zn(Dn(e)), e.nonoptional = (r) => Jd(e, r), e.array = () => ct(e), e.or = (r) => me([e, r]), e.and = (r) => Zd(e, r), e.transform = (r) => Ln(e, jd(r)), e.default = (r) => Vd(e, r), e.prefault = (r) => Gd(e, r), e.catch = (r) => Yd(e, r), e.pipe = (r) => Ln(e, r), e.readonly = () => Kd(e), e.describe = (r) => {
2739
2739
  const n = e.clone();
2740
2740
  return pt.add(n, { description: r }), n;
2741
2741
  }, Object.defineProperty(e, "description", {
@@ -2751,99 +2751,99 @@ const nd = (e, t) => {
2751
2751
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), gs = /* @__PURE__ */ _("_ZodString", (e, t) => {
2752
2752
  qr.init(e, t), V.init(e, t);
2753
2753
  const r = e._zod.bag;
2754
- e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Mu(...n)), e.includes = (...n) => e.check(Du(...n)), e.startsWith = (...n) => e.check(Lu(...n)), e.endsWith = (...n) => e.check(Uu(...n)), e.min = (...n) => e.check(Xt(...n)), e.max = (...n) => e.check(fs(...n)), e.length = (...n) => e.check(hs(...n)), e.nonempty = (...n) => e.check(Xt(1, ...n)), e.lowercase = (n) => e.check($u(n)), e.uppercase = (n) => e.check(Zu(n)), e.trim = () => e.check(Fu()), e.normalize = (...n) => e.check(ju(...n)), e.toLowerCase = () => e.check(Bu()), e.toUpperCase = () => e.check(Vu());
2755
- }), id = /* @__PURE__ */ _("ZodString", (e, t) => {
2756
- qr.init(e, t), gs.init(e, t), e.email = (r) => e.check(ou(cd, r)), e.url = (r) => e.check(lu(ld, r)), e.jwt = (r) => e.check(Tu(Td, r)), e.emoji = (r) => e.check(uu(ud, r)), e.guid = (r) => e.check(Nn(Mn, r)), e.uuid = (r) => e.check(su($t, r)), e.uuidv4 = (r) => e.check(au($t, r)), e.uuidv6 = (r) => e.check(iu($t, r)), e.uuidv7 = (r) => e.check(cu($t, r)), e.nanoid = (r) => e.check(du(dd, r)), e.guid = (r) => e.check(Nn(Mn, r)), e.cuid = (r) => e.check(pu(pd, r)), e.cuid2 = (r) => e.check(fu(fd, r)), e.ulid = (r) => e.check(hu(hd, r)), e.base64 = (r) => e.check(wu(wd, r)), e.base64url = (r) => e.check(Iu(Id, r)), e.xid = (r) => e.check(mu(md, r)), e.ksuid = (r) => e.check(gu(gd, r)), e.ipv4 = (r) => e.check(vu(vd, r)), e.ipv6 = (r) => e.check(yu(yd, r)), e.cidrv4 = (r) => e.check(_u(_d, r)), e.cidrv6 = (r) => e.check(bu(bd, r)), e.e164 = (r) => e.check(Eu(Ed, r)), e.datetime = (r) => e.check(qu(r)), e.date = (r) => e.check(Ku(r)), e.time = (r) => e.check(ed(r)), e.duration = (r) => e.check(rd(r));
2754
+ e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check($u(...n)), e.includes = (...n) => e.check(Lu(...n)), e.startsWith = (...n) => e.check(Uu(...n)), e.endsWith = (...n) => e.check(ju(...n)), e.min = (...n) => e.check(Xt(...n)), e.max = (...n) => e.check(fs(...n)), e.length = (...n) => e.check(hs(...n)), e.nonempty = (...n) => e.check(Xt(1, ...n)), e.lowercase = (n) => e.check(Zu(n)), e.uppercase = (n) => e.check(Du(n)), e.trim = () => e.check(Bu()), e.normalize = (...n) => e.check(Fu(...n)), e.toLowerCase = () => e.check(Vu()), e.toUpperCase = () => e.check(Hu());
2755
+ }), cd = /* @__PURE__ */ _("ZodString", (e, t) => {
2756
+ qr.init(e, t), gs.init(e, t), e.email = (r) => e.check(su(ld, r)), e.url = (r) => e.check(uu(ud, r)), e.jwt = (r) => e.check(Su(Sd, r)), e.emoji = (r) => e.check(du(dd, r)), e.guid = (r) => e.check(Nn(Mn, r)), e.uuid = (r) => e.check(au($t, r)), e.uuidv4 = (r) => e.check(iu($t, r)), e.uuidv6 = (r) => e.check(cu($t, r)), e.uuidv7 = (r) => e.check(lu($t, r)), e.nanoid = (r) => e.check(pu(pd, r)), e.guid = (r) => e.check(Nn(Mn, r)), e.cuid = (r) => e.check(fu(fd, r)), e.cuid2 = (r) => e.check(hu(hd, r)), e.ulid = (r) => e.check(mu(md, r)), e.base64 = (r) => e.check(Iu(Id, r)), e.base64url = (r) => e.check(Eu(Ed, r)), e.xid = (r) => e.check(gu(gd, r)), e.ksuid = (r) => e.check(vu(vd, r)), e.ipv4 = (r) => e.check(yu(yd, r)), e.ipv6 = (r) => e.check(_u(_d, r)), e.cidrv4 = (r) => e.check(bu(bd, r)), e.cidrv6 = (r) => e.check(wu(wd, r)), e.e164 = (r) => e.check(Tu(Td, r)), e.datetime = (r) => e.check(Xu(r)), e.date = (r) => e.check(Qu(r)), e.time = (r) => e.check(td(r)), e.duration = (r) => e.check(nd(r));
2757
2757
  });
2758
2758
  function k(e) {
2759
- return nu(id, e);
2759
+ return ou(cd, e);
2760
2760
  }
2761
2761
  const G = /* @__PURE__ */ _("ZodStringFormat", (e, t) => {
2762
2762
  B.init(e, t), gs.init(e, t);
2763
- }), cd = /* @__PURE__ */ _("ZodEmail", (e, t) => {
2764
- ul.init(e, t), G.init(e, t);
2763
+ }), ld = /* @__PURE__ */ _("ZodEmail", (e, t) => {
2764
+ dl.init(e, t), G.init(e, t);
2765
2765
  }), Mn = /* @__PURE__ */ _("ZodGUID", (e, t) => {
2766
- cl.init(e, t), G.init(e, t);
2767
- }), $t = /* @__PURE__ */ _("ZodUUID", (e, t) => {
2768
2766
  ll.init(e, t), G.init(e, t);
2769
- }), ld = /* @__PURE__ */ _("ZodURL", (e, t) => {
2770
- dl.init(e, t), G.init(e, t);
2771
- }), ud = /* @__PURE__ */ _("ZodEmoji", (e, t) => {
2767
+ }), $t = /* @__PURE__ */ _("ZodUUID", (e, t) => {
2768
+ ul.init(e, t), G.init(e, t);
2769
+ }), ud = /* @__PURE__ */ _("ZodURL", (e, t) => {
2772
2770
  pl.init(e, t), G.init(e, t);
2773
- }), dd = /* @__PURE__ */ _("ZodNanoID", (e, t) => {
2771
+ }), dd = /* @__PURE__ */ _("ZodEmoji", (e, t) => {
2774
2772
  fl.init(e, t), G.init(e, t);
2775
- }), pd = /* @__PURE__ */ _("ZodCUID", (e, t) => {
2773
+ }), pd = /* @__PURE__ */ _("ZodNanoID", (e, t) => {
2776
2774
  hl.init(e, t), G.init(e, t);
2777
- }), fd = /* @__PURE__ */ _("ZodCUID2", (e, t) => {
2775
+ }), fd = /* @__PURE__ */ _("ZodCUID", (e, t) => {
2778
2776
  ml.init(e, t), G.init(e, t);
2779
- }), hd = /* @__PURE__ */ _("ZodULID", (e, t) => {
2777
+ }), hd = /* @__PURE__ */ _("ZodCUID2", (e, t) => {
2780
2778
  gl.init(e, t), G.init(e, t);
2781
- }), md = /* @__PURE__ */ _("ZodXID", (e, t) => {
2779
+ }), md = /* @__PURE__ */ _("ZodULID", (e, t) => {
2782
2780
  vl.init(e, t), G.init(e, t);
2783
- }), gd = /* @__PURE__ */ _("ZodKSUID", (e, t) => {
2781
+ }), gd = /* @__PURE__ */ _("ZodXID", (e, t) => {
2784
2782
  yl.init(e, t), G.init(e, t);
2785
- }), vd = /* @__PURE__ */ _("ZodIPv4", (e, t) => {
2786
- El.init(e, t), G.init(e, t);
2787
- }), yd = /* @__PURE__ */ _("ZodIPv6", (e, t) => {
2783
+ }), vd = /* @__PURE__ */ _("ZodKSUID", (e, t) => {
2784
+ _l.init(e, t), G.init(e, t);
2785
+ }), yd = /* @__PURE__ */ _("ZodIPv4", (e, t) => {
2788
2786
  Tl.init(e, t), G.init(e, t);
2789
- }), _d = /* @__PURE__ */ _("ZodCIDRv4", (e, t) => {
2787
+ }), _d = /* @__PURE__ */ _("ZodIPv6", (e, t) => {
2790
2788
  Sl.init(e, t), G.init(e, t);
2791
- }), bd = /* @__PURE__ */ _("ZodCIDRv6", (e, t) => {
2789
+ }), bd = /* @__PURE__ */ _("ZodCIDRv4", (e, t) => {
2792
2790
  kl.init(e, t), G.init(e, t);
2793
- }), wd = /* @__PURE__ */ _("ZodBase64", (e, t) => {
2791
+ }), wd = /* @__PURE__ */ _("ZodCIDRv6", (e, t) => {
2794
2792
  Cl.init(e, t), G.init(e, t);
2795
- }), Id = /* @__PURE__ */ _("ZodBase64URL", (e, t) => {
2796
- Al.init(e, t), G.init(e, t);
2797
- }), Ed = /* @__PURE__ */ _("ZodE164", (e, t) => {
2793
+ }), Id = /* @__PURE__ */ _("ZodBase64", (e, t) => {
2794
+ xl.init(e, t), G.init(e, t);
2795
+ }), Ed = /* @__PURE__ */ _("ZodBase64URL", (e, t) => {
2798
2796
  Nl.init(e, t), G.init(e, t);
2799
- }), Td = /* @__PURE__ */ _("ZodJWT", (e, t) => {
2800
- Pl.init(e, t), G.init(e, t);
2797
+ }), Td = /* @__PURE__ */ _("ZodE164", (e, t) => {
2798
+ Ol.init(e, t), G.init(e, t);
2799
+ }), Sd = /* @__PURE__ */ _("ZodJWT", (e, t) => {
2800
+ Rl.init(e, t), G.init(e, t);
2801
2801
  }), vs = /* @__PURE__ */ _("ZodNumber", (e, t) => {
2802
2802
  us.init(e, t), V.init(e, t), e.gt = (n, o) => e.check(Pn(n, o)), e.gte = (n, o) => e.check(mr(n, o)), e.min = (n, o) => e.check(mr(n, o)), e.lt = (n, o) => e.check(On(n, o)), e.lte = (n, o) => e.check(hr(n, o)), e.max = (n, o) => e.check(hr(n, o)), e.int = (n) => e.check($n(n)), e.safe = (n) => e.check($n(n)), e.positive = (n) => e.check(Pn(0, n)), e.nonnegative = (n) => e.check(mr(0, n)), e.negative = (n) => e.check(On(0, n)), e.nonpositive = (n) => e.check(hr(0, n)), e.multipleOf = (n, o) => e.check(Rn(n, o)), e.step = (n, o) => e.check(Rn(n, o)), e.finite = () => e;
2803
2803
  const r = e._zod.bag;
2804
2804
  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;
2805
2805
  });
2806
- function Sd(e) {
2807
- return Au(vs, e);
2806
+ function kd(e) {
2807
+ return Nu(vs, e);
2808
2808
  }
2809
- const kd = /* @__PURE__ */ _("ZodNumberFormat", (e, t) => {
2810
- Rl.init(e, t), vs.init(e, t);
2809
+ const Cd = /* @__PURE__ */ _("ZodNumberFormat", (e, t) => {
2810
+ zl.init(e, t), vs.init(e, t);
2811
2811
  });
2812
2812
  function $n(e) {
2813
- return Nu(kd, e);
2814
- }
2815
- const Cd = /* @__PURE__ */ _("ZodBoolean", (e, t) => {
2816
- zl.init(e, t), V.init(e, t);
2817
- });
2818
- function le(e) {
2819
2813
  return Ou(Cd, e);
2820
2814
  }
2821
- const xd = /* @__PURE__ */ _("ZodNull", (e, t) => {
2815
+ const xd = /* @__PURE__ */ _("ZodBoolean", (e, t) => {
2822
2816
  Ml.init(e, t), V.init(e, t);
2823
2817
  });
2824
- function Ad(e) {
2818
+ function le(e) {
2825
2819
  return Pu(xd, e);
2826
2820
  }
2827
- const Nd = /* @__PURE__ */ _("ZodUnknown", (e, t) => {
2821
+ const Ad = /* @__PURE__ */ _("ZodNull", (e, t) => {
2828
2822
  $l.init(e, t), V.init(e, t);
2829
2823
  });
2830
- function Ce() {
2831
- return Ru(Nd);
2824
+ function Nd(e) {
2825
+ return Ru(Ad, e);
2832
2826
  }
2833
- const Od = /* @__PURE__ */ _("ZodNever", (e, t) => {
2827
+ const Od = /* @__PURE__ */ _("ZodUnknown", (e, t) => {
2834
2828
  Zl.init(e, t), V.init(e, t);
2835
2829
  });
2830
+ function Ce() {
2831
+ return zu(Od);
2832
+ }
2833
+ const Pd = /* @__PURE__ */ _("ZodNever", (e, t) => {
2834
+ Dl.init(e, t), V.init(e, t);
2835
+ });
2836
2836
  function ys(e) {
2837
- return zu(Od, e);
2837
+ return Mu(Pd, e);
2838
2838
  }
2839
- const Pd = /* @__PURE__ */ _("ZodArray", (e, t) => {
2840
- Dl.init(e, t), V.init(e, t), e.element = t.element, e.min = (r, n) => e.check(Xt(r, n)), e.nonempty = (r) => e.check(Xt(1, r)), e.max = (r, n) => e.check(fs(r, n)), e.length = (r, n) => e.check(hs(r, n)), e.unwrap = () => e.element;
2839
+ const Rd = /* @__PURE__ */ _("ZodArray", (e, t) => {
2840
+ Ll.init(e, t), V.init(e, t), e.element = t.element, e.min = (r, n) => e.check(Xt(r, n)), e.nonempty = (r) => e.check(Xt(1, r)), e.max = (r, n) => e.check(fs(r, n)), e.length = (r, n) => e.check(hs(r, n)), e.unwrap = () => e.element;
2841
2841
  });
2842
2842
  function ct(e, t) {
2843
- return Hu(Pd, e, t);
2843
+ return Gu(Rd, e, t);
2844
2844
  }
2845
2845
  const _s = /* @__PURE__ */ _("ZodObject", (e, t) => {
2846
- Ll.init(e, t), V.init(e, t), Z(e, "shape", () => t.shape), e.keyof = () => ws(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ce() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ce() }), e.strict = () => e.clone({ ...e._zod.def, catchall: ys() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => uc(e, r), e.merge = (r) => dc(e, r), e.pick = (r) => cc(e, r), e.omit = (r) => lc(e, r), e.partial = (...r) => pc(Is, e, r[0]), e.required = (...r) => fc(Es, e, r[0]);
2846
+ Ul.init(e, t), V.init(e, t), Z(e, "shape", () => t.shape), e.keyof = () => ws(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ce() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ce() }), e.strict = () => e.clone({ ...e._zod.def, catchall: ys() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => dc(e, r), e.merge = (r) => pc(e, r), e.pick = (r) => lc(e, r), e.omit = (r) => uc(e, r), e.partial = (...r) => fc(Is, e, r[0]), e.required = (...r) => hc(Es, e, r[0]);
2847
2847
  });
2848
2848
  function ae(e, t) {
2849
2849
  const r = {
@@ -2875,32 +2875,32 @@ function me(e, t) {
2875
2875
  ...T(t)
2876
2876
  });
2877
2877
  }
2878
- const Rd = /* @__PURE__ */ _("ZodDiscriminatedUnion", (e, t) => {
2879
- bs.init(e, t), Ul.init(e, t);
2878
+ const zd = /* @__PURE__ */ _("ZodDiscriminatedUnion", (e, t) => {
2879
+ bs.init(e, t), jl.init(e, t);
2880
2880
  });
2881
- function zd(e, t, r) {
2882
- return new Rd({
2881
+ function Md(e, t, r) {
2882
+ return new zd({
2883
2883
  type: "union",
2884
2884
  options: t,
2885
2885
  discriminator: e,
2886
2886
  ...T(r)
2887
2887
  });
2888
2888
  }
2889
- const Md = /* @__PURE__ */ _("ZodIntersection", (e, t) => {
2890
- jl.init(e, t), V.init(e, t);
2889
+ const $d = /* @__PURE__ */ _("ZodIntersection", (e, t) => {
2890
+ Fl.init(e, t), V.init(e, t);
2891
2891
  });
2892
- function $d(e, t) {
2893
- return new Md({
2892
+ function Zd(e, t) {
2893
+ return new $d({
2894
2894
  type: "intersection",
2895
2895
  left: e,
2896
2896
  right: t
2897
2897
  });
2898
2898
  }
2899
- const Zd = /* @__PURE__ */ _("ZodRecord", (e, t) => {
2900
- Fl.init(e, t), V.init(e, t), e.keyType = t.keyType, e.valueType = t.valueType;
2899
+ const Dd = /* @__PURE__ */ _("ZodRecord", (e, t) => {
2900
+ Bl.init(e, t), V.init(e, t), e.keyType = t.keyType, e.valueType = t.valueType;
2901
2901
  });
2902
2902
  function Or(e, t, r) {
2903
- return new Zd({
2903
+ return new Dd({
2904
2904
  type: "record",
2905
2905
  keyType: e,
2906
2906
  valueType: t,
@@ -2908,7 +2908,7 @@ function Or(e, t, r) {
2908
2908
  });
2909
2909
  }
2910
2910
  const Pr = /* @__PURE__ */ _("ZodEnum", (e, t) => {
2911
- Bl.init(e, t), V.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
2911
+ Vl.init(e, t), V.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
2912
2912
  const r = new Set(Object.keys(t.entries));
2913
2913
  e.extract = (n, o) => {
2914
2914
  const s = {};
@@ -2946,8 +2946,8 @@ function ws(e, t) {
2946
2946
  ...T(t)
2947
2947
  });
2948
2948
  }
2949
- const Dd = /* @__PURE__ */ _("ZodLiteral", (e, t) => {
2950
- Vl.init(e, t), V.init(e, t), e.values = new Set(t.values), Object.defineProperty(e, "value", {
2949
+ const Ld = /* @__PURE__ */ _("ZodLiteral", (e, t) => {
2950
+ Hl.init(e, t), V.init(e, t), e.values = new Set(t.values), Object.defineProperty(e, "value", {
2951
2951
  get() {
2952
2952
  if (t.values.length > 1)
2953
2953
  throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
@@ -2956,14 +2956,14 @@ const Dd = /* @__PURE__ */ _("ZodLiteral", (e, t) => {
2956
2956
  });
2957
2957
  });
2958
2958
  function P(e, t) {
2959
- return new Dd({
2959
+ return new Ld({
2960
2960
  type: "literal",
2961
2961
  values: Array.isArray(e) ? e : [e],
2962
2962
  ...T(t)
2963
2963
  });
2964
2964
  }
2965
- const Ld = /* @__PURE__ */ _("ZodTransform", (e, t) => {
2966
- Hl.init(e, t), V.init(e, t), e._zod.parse = (r, n) => {
2965
+ const Ud = /* @__PURE__ */ _("ZodTransform", (e, t) => {
2966
+ Gl.init(e, t), V.init(e, t), e._zod.parse = (r, n) => {
2967
2967
  r.addIssue = (s) => {
2968
2968
  if (typeof s == "string")
2969
2969
  r.issues.push(It(s, r.value, t));
@@ -2976,14 +2976,14 @@ const Ld = /* @__PURE__ */ _("ZodTransform", (e, t) => {
2976
2976
  return o instanceof Promise ? o.then((s) => (r.value = s, r)) : (r.value = o, r);
2977
2977
  };
2978
2978
  });
2979
- function Ud(e) {
2980
- return new Ld({
2979
+ function jd(e) {
2980
+ return new Ud({
2981
2981
  type: "transform",
2982
2982
  transform: e
2983
2983
  });
2984
2984
  }
2985
2985
  const Is = /* @__PURE__ */ _("ZodOptional", (e, t) => {
2986
- Gl.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.innerType;
2986
+ Jl.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.innerType;
2987
2987
  });
2988
2988
  function Zn(e) {
2989
2989
  return new Is({
@@ -2991,20 +2991,20 @@ function Zn(e) {
2991
2991
  innerType: e
2992
2992
  });
2993
2993
  }
2994
- const jd = /* @__PURE__ */ _("ZodNullable", (e, t) => {
2995
- Jl.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.innerType;
2994
+ const Fd = /* @__PURE__ */ _("ZodNullable", (e, t) => {
2995
+ Wl.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.innerType;
2996
2996
  });
2997
2997
  function Dn(e) {
2998
- return new jd({
2998
+ return new Fd({
2999
2999
  type: "nullable",
3000
3000
  innerType: e
3001
3001
  });
3002
3002
  }
3003
- const Fd = /* @__PURE__ */ _("ZodDefault", (e, t) => {
3004
- Wl.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3003
+ const Bd = /* @__PURE__ */ _("ZodDefault", (e, t) => {
3004
+ Yl.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3005
3005
  });
3006
- function Bd(e, t) {
3007
- return new Fd({
3006
+ function Vd(e, t) {
3007
+ return new Bd({
3008
3008
  type: "default",
3009
3009
  innerType: e,
3010
3010
  get defaultValue() {
@@ -3012,11 +3012,11 @@ function Bd(e, t) {
3012
3012
  }
3013
3013
  });
3014
3014
  }
3015
- const Vd = /* @__PURE__ */ _("ZodPrefault", (e, t) => {
3016
- Yl.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.innerType;
3015
+ const Hd = /* @__PURE__ */ _("ZodPrefault", (e, t) => {
3016
+ ql.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.innerType;
3017
3017
  });
3018
- function Hd(e, t) {
3019
- return new Vd({
3018
+ function Gd(e, t) {
3019
+ return new Hd({
3020
3020
  type: "prefault",
3021
3021
  innerType: e,
3022
3022
  get defaultValue() {
@@ -3025,58 +3025,58 @@ function Hd(e, t) {
3025
3025
  });
3026
3026
  }
3027
3027
  const Es = /* @__PURE__ */ _("ZodNonOptional", (e, t) => {
3028
- ql.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.innerType;
3028
+ Xl.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.innerType;
3029
3029
  });
3030
- function Gd(e, t) {
3030
+ function Jd(e, t) {
3031
3031
  return new Es({
3032
3032
  type: "nonoptional",
3033
3033
  innerType: e,
3034
3034
  ...T(t)
3035
3035
  });
3036
3036
  }
3037
- const Jd = /* @__PURE__ */ _("ZodCatch", (e, t) => {
3038
- Xl.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3037
+ const Wd = /* @__PURE__ */ _("ZodCatch", (e, t) => {
3038
+ Kl.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3039
3039
  });
3040
- function Wd(e, t) {
3041
- return new Jd({
3040
+ function Yd(e, t) {
3041
+ return new Wd({
3042
3042
  type: "catch",
3043
3043
  innerType: e,
3044
3044
  catchValue: typeof t == "function" ? t : () => t
3045
3045
  });
3046
3046
  }
3047
- const Yd = /* @__PURE__ */ _("ZodPipe", (e, t) => {
3048
- Kl.init(e, t), V.init(e, t), e.in = t.in, e.out = t.out;
3047
+ const qd = /* @__PURE__ */ _("ZodPipe", (e, t) => {
3048
+ Ql.init(e, t), V.init(e, t), e.in = t.in, e.out = t.out;
3049
3049
  });
3050
3050
  function Ln(e, t) {
3051
- return new Yd({
3051
+ return new qd({
3052
3052
  type: "pipe",
3053
3053
  in: e,
3054
3054
  out: t
3055
3055
  // ...util.normalizeParams(params),
3056
3056
  });
3057
3057
  }
3058
- const qd = /* @__PURE__ */ _("ZodReadonly", (e, t) => {
3059
- Ql.init(e, t), V.init(e, t);
3058
+ const Xd = /* @__PURE__ */ _("ZodReadonly", (e, t) => {
3059
+ eu.init(e, t), V.init(e, t);
3060
3060
  });
3061
- function Xd(e) {
3062
- return new qd({
3061
+ function Kd(e) {
3062
+ return new Xd({
3063
3063
  type: "readonly",
3064
3064
  innerType: e
3065
3065
  });
3066
3066
  }
3067
- const Kd = /* @__PURE__ */ _("ZodLazy", (e, t) => {
3068
- eu.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.getter();
3067
+ const Qd = /* @__PURE__ */ _("ZodLazy", (e, t) => {
3068
+ tu.init(e, t), V.init(e, t), e.unwrap = () => e._zod.def.getter();
3069
3069
  });
3070
- function Qd(e) {
3071
- return new Kd({
3070
+ function ep(e) {
3071
+ return new Qd({
3072
3072
  type: "lazy",
3073
3073
  getter: e
3074
3074
  });
3075
3075
  }
3076
3076
  const Xr = /* @__PURE__ */ _("ZodCustom", (e, t) => {
3077
- tu.init(e, t), V.init(e, t);
3077
+ ru.init(e, t), V.init(e, t);
3078
3078
  });
3079
- function ep(e) {
3079
+ function tp(e) {
3080
3080
  const t = new ue({
3081
3081
  check: "custom"
3082
3082
  // ...util.normalizeParams(params),
@@ -3084,13 +3084,13 @@ function ep(e) {
3084
3084
  return t._zod.check = e, t;
3085
3085
  }
3086
3086
  function Ts(e, t) {
3087
- return Gu(Xr, e ?? (() => !0), t);
3087
+ return Ju(Xr, e ?? (() => !0), t);
3088
3088
  }
3089
- function tp(e, t = {}) {
3090
- return Ju(Xr, e, t);
3089
+ function rp(e, t = {}) {
3090
+ return Wu(Xr, e, t);
3091
3091
  }
3092
- function rp(e) {
3093
- const t = ep((r) => (r.addIssue = (n) => {
3092
+ function np(e) {
3093
+ const t = tp((r) => (r.addIssue = (n) => {
3094
3094
  if (typeof n == "string")
3095
3095
  r.issues.push(It(n, r.value, t._zod.def));
3096
3096
  else {
@@ -3131,12 +3131,12 @@ var At = ({
3131
3131
  if (e == null)
3132
3132
  return o;
3133
3133
  if (r.includes(n))
3134
- throw new Yi({
3134
+ throw new qi({
3135
3135
  argument: "separator",
3136
3136
  message: `The separator "${n}" must not be part of the alphabet "${r}".`
3137
3137
  });
3138
3138
  return () => `${e}${n}${o()}`;
3139
- }, np = At();
3139
+ }, op = At();
3140
3140
  function Un(e = globalThis) {
3141
3141
  var t, r, n;
3142
3142
  return e.window ? "runtime/browser" : (t = e.navigator) != null && t.userAgent ? `runtime/${e.navigator.userAgent.toLowerCase()}` : (n = (r = e.process) == null ? void 0 : r.versions) != null && n.node ? `runtime/node.js/${e.process.version.substring(0)}` : e.EdgeRuntime ? "runtime/vercel-edge" : "runtime/unknown";
@@ -3163,12 +3163,12 @@ function jn(e, ...t) {
3163
3163
  [n, ...t].filter(Boolean).join(" ")
3164
3164
  ), Object.fromEntries(r.entries());
3165
3165
  }
3166
- var op = /"__proto__"\s*:/, sp = /"constructor"\s*:/;
3166
+ var sp = /"__proto__"\s*:/, ap = /"constructor"\s*:/;
3167
3167
  function Fn(e) {
3168
3168
  const t = JSON.parse(e);
3169
- return t === null || typeof t != "object" || op.test(e) === !1 && sp.test(e) === !1 ? t : ap(t);
3169
+ return t === null || typeof t != "object" || sp.test(e) === !1 && ap.test(e) === !1 ? t : ip(t);
3170
3170
  }
3171
- function ap(e) {
3171
+ function ip(e) {
3172
3172
  let t = [e];
3173
3173
  for (; t.length; ) {
3174
3174
  const r = t;
@@ -3186,7 +3186,7 @@ function ap(e) {
3186
3186
  }
3187
3187
  return e;
3188
3188
  }
3189
- function ip(e) {
3189
+ function cp(e) {
3190
3190
  const { stackTraceLimit: t } = Error;
3191
3191
  try {
3192
3192
  Error.stackTraceLimit = 0;
@@ -3200,21 +3200,21 @@ function ip(e) {
3200
3200
  }
3201
3201
  }
3202
3202
  var Qt = Symbol.for("vercel.ai.validator");
3203
- function cp(e) {
3203
+ function lp(e) {
3204
3204
  return { [Qt]: !0, validate: e };
3205
3205
  }
3206
- function lp(e) {
3206
+ function up(e) {
3207
3207
  return typeof e == "object" && e !== null && Qt in e && e[Qt] === !0 && "validate" in e;
3208
3208
  }
3209
- function up(e) {
3209
+ function dp(e) {
3210
3210
  let t;
3211
3211
  return () => (t == null && (t = e()), t);
3212
3212
  }
3213
- function dp(e) {
3214
- return lp(e) ? e : typeof e == "function" ? e() : pp(e);
3215
- }
3216
3213
  function pp(e) {
3217
- return cp(async (t) => {
3214
+ return up(e) ? e : typeof e == "function" ? e() : fp(e);
3215
+ }
3216
+ function fp(e) {
3217
+ return lp(async (t) => {
3218
3218
  const r = await e["~standard"].validate(t);
3219
3219
  return r.issues == null ? { success: !0, value: r.value } : {
3220
3220
  success: !1,
@@ -3238,7 +3238,7 @@ async function Kr({
3238
3238
  value: e,
3239
3239
  schema: t
3240
3240
  }) {
3241
- const r = dp(t);
3241
+ const r = pp(t);
3242
3242
  try {
3243
3243
  if (r.validate == null)
3244
3244
  return { success: !0, value: e, rawValue: e };
@@ -3261,7 +3261,7 @@ async function er({
3261
3261
  schema: t
3262
3262
  }) {
3263
3263
  try {
3264
- const r = ip(e);
3264
+ const r = cp(e);
3265
3265
  return t == null ? { success: !0, value: r, rawValue: r } : await Kr({ value: r, schema: t });
3266
3266
  } catch (r) {
3267
3267
  return {
@@ -3271,11 +3271,11 @@ async function er({
3271
3271
  };
3272
3272
  }
3273
3273
  }
3274
- function fp({
3274
+ function hp({
3275
3275
  stream: e,
3276
3276
  schema: t
3277
3277
  }) {
3278
- return e.pipeThrough(new TextDecoderStream()).pipeThrough(new tc()).pipeThrough(
3278
+ return e.pipeThrough(new TextDecoderStream()).pipeThrough(new rc()).pipeThrough(
3279
3279
  new TransformStream({
3280
3280
  async transform({ data: r }, n) {
3281
3281
  r !== "[DONE]" && n.enqueue(await er({ text: r, schema: t }));
@@ -3286,12 +3286,12 @@ function fp({
3286
3286
  async function nt(e) {
3287
3287
  return typeof e == "function" && (e = e()), Promise.resolve(e);
3288
3288
  }
3289
- var hp = (e, t) => {
3289
+ var mp = (e, t) => {
3290
3290
  let r = 0;
3291
3291
  for (; r < e.length && r < t.length && e[r] === t[r]; r++)
3292
3292
  ;
3293
3293
  return [(e.length - r).toString(), ...t.slice(r)].join("/");
3294
- }, mp = Symbol(
3294
+ }, gp = Symbol(
3295
3295
  "Let zodToJsonSchema decide on which parser to use"
3296
3296
  ), Vn = {
3297
3297
  name: void 0,
@@ -3313,7 +3313,7 @@ var hp = (e, t) => {
3313
3313
  emailStrategy: "format:email",
3314
3314
  base64Strategy: "contentEncoding:base64",
3315
3315
  nameStrategy: "ref"
3316
- }, gp = (e) => typeof e == "string" ? {
3316
+ }, vp = (e) => typeof e == "string" ? {
3317
3317
  ...Vn,
3318
3318
  name: e
3319
3319
  } : {
@@ -3323,7 +3323,7 @@ var hp = (e, t) => {
3323
3323
  function pe() {
3324
3324
  return {};
3325
3325
  }
3326
- function vp(e, t) {
3326
+ function yp(e, t) {
3327
3327
  var r, n, o;
3328
3328
  const s = {
3329
3329
  type: "array"
@@ -3333,7 +3333,7 @@ function vp(e, t) {
3333
3333
  currentPath: [...t.currentPath, "items"]
3334
3334
  })), e.minLength && (s.minItems = e.minLength.value), e.maxLength && (s.maxItems = e.maxLength.value), e.exactLength && (s.minItems = e.exactLength.value, s.maxItems = e.exactLength.value), s;
3335
3335
  }
3336
- function yp(e) {
3336
+ function _p(e) {
3337
3337
  const t = {
3338
3338
  type: "integer",
3339
3339
  format: "int64"
@@ -3353,13 +3353,13 @@ function yp(e) {
3353
3353
  }
3354
3354
  return t;
3355
3355
  }
3356
- function _p() {
3356
+ function bp() {
3357
3357
  return { type: "boolean" };
3358
3358
  }
3359
3359
  function Ss(e, t) {
3360
3360
  return L(e.type._def, t);
3361
3361
  }
3362
- var bp = (e, t) => L(e.innerType._def, t);
3362
+ var wp = (e, t) => L(e.innerType._def, t);
3363
3363
  function ks(e, t, r) {
3364
3364
  const n = r ?? t.dateStrategy;
3365
3365
  if (Array.isArray(n))
@@ -3379,10 +3379,10 @@ function ks(e, t, r) {
3379
3379
  format: "date"
3380
3380
  };
3381
3381
  case "integer":
3382
- return wp(e);
3382
+ return Ip(e);
3383
3383
  }
3384
3384
  }
3385
- var wp = (e) => {
3385
+ var Ip = (e) => {
3386
3386
  const t = {
3387
3387
  type: "integer",
3388
3388
  format: "unix-time"
@@ -3398,23 +3398,23 @@ var wp = (e) => {
3398
3398
  }
3399
3399
  return t;
3400
3400
  };
3401
- function Ip(e, t) {
3401
+ function Ep(e, t) {
3402
3402
  return {
3403
3403
  ...L(e.innerType._def, t),
3404
3404
  default: e.defaultValue()
3405
3405
  };
3406
3406
  }
3407
- function Ep(e, t) {
3407
+ function Tp(e, t) {
3408
3408
  return t.effectStrategy === "input" ? L(e.schema._def, t) : pe();
3409
3409
  }
3410
- function Tp(e) {
3410
+ function Sp(e) {
3411
3411
  return {
3412
3412
  type: "string",
3413
3413
  enum: Array.from(e.values)
3414
3414
  };
3415
3415
  }
3416
- var Sp = (e) => "type" in e && e.type === "string" ? !1 : "allOf" in e;
3417
- function kp(e, t) {
3416
+ var kp = (e) => "type" in e && e.type === "string" ? !1 : "allOf" in e;
3417
+ function Cp(e, t) {
3418
3418
  const r = [
3419
3419
  L(e.left._def, {
3420
3420
  ...t,
@@ -3426,7 +3426,7 @@ function kp(e, t) {
3426
3426
  })
3427
3427
  ].filter((o) => !!o), n = [];
3428
3428
  return r.forEach((o) => {
3429
- if (Sp(o))
3429
+ if (kp(o))
3430
3430
  n.push(...o.allOf);
3431
3431
  else {
3432
3432
  let s = o;
@@ -3438,7 +3438,7 @@ function kp(e, t) {
3438
3438
  }
3439
3439
  }), n.length ? { allOf: n } : void 0;
3440
3440
  }
3441
- function Cp(e) {
3441
+ function xp(e) {
3442
3442
  const t = typeof e.value;
3443
3443
  return t !== "bigint" && t !== "number" && t !== "boolean" && t !== "string" ? {
3444
3444
  type: Array.isArray(e.value) ? "array" : "object"
@@ -3617,15 +3617,15 @@ function Cs(e, t) {
3617
3617
  return r;
3618
3618
  }
3619
3619
  function vr(e, t) {
3620
- return t.patternStrategy === "escape" ? Ap(e) : e;
3620
+ return t.patternStrategy === "escape" ? Np(e) : e;
3621
3621
  }
3622
- var xp = new Set(
3622
+ var Ap = new Set(
3623
3623
  "ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789"
3624
3624
  );
3625
- function Ap(e) {
3625
+ function Np(e) {
3626
3626
  let t = "";
3627
3627
  for (let r = 0; r < e.length; r++)
3628
- xp.has(e[r]) || (t += "\\"), t += e[r];
3628
+ Ap.has(e[r]) || (t += "\\"), t += e[r];
3629
3629
  return t;
3630
3630
  }
3631
3631
  function _e(e, t, r, n) {
@@ -3732,7 +3732,7 @@ function xs(e, t) {
3732
3732
  }
3733
3733
  return l;
3734
3734
  }
3735
- function Np(e, t) {
3735
+ function Op(e, t) {
3736
3736
  if (t.mapStrategy === "record")
3737
3737
  return xs(e, t);
3738
3738
  const r = L(e.keyType._def, {
@@ -3753,7 +3753,7 @@ function Np(e, t) {
3753
3753
  }
3754
3754
  };
3755
3755
  }
3756
- function Op(e) {
3756
+ function Pp(e) {
3757
3757
  const t = e.values, n = Object.keys(e.values).filter((s) => typeof t[t[s]] != "number").map((s) => t[s]), o = Array.from(
3758
3758
  new Set(n.map((s) => typeof s))
3759
3759
  );
@@ -3762,10 +3762,10 @@ function Op(e) {
3762
3762
  enum: n
3763
3763
  };
3764
3764
  }
3765
- function Pp() {
3765
+ function Rp() {
3766
3766
  return { not: pe() };
3767
3767
  }
3768
- function Rp() {
3768
+ function zp() {
3769
3769
  return {
3770
3770
  type: "null"
3771
3771
  };
@@ -3777,7 +3777,7 @@ var Rr = {
3777
3777
  ZodBoolean: "boolean",
3778
3778
  ZodNull: "null"
3779
3779
  };
3780
- function zp(e, t) {
3780
+ function Mp(e, t) {
3781
3781
  const r = e.options instanceof Map ? Array.from(e.options.values()) : e.options;
3782
3782
  if (r.every(
3783
3783
  (n) => n._def.typeName in Rr && (!n._def.checks || !n._def.checks.length)
@@ -3832,9 +3832,9 @@ function zp(e, t) {
3832
3832
  []
3833
3833
  )
3834
3834
  };
3835
- return Mp(e, t);
3835
+ return $p(e, t);
3836
3836
  }
3837
- var Mp = (e, t) => {
3837
+ var $p = (e, t) => {
3838
3838
  const r = (e.options instanceof Map ? Array.from(e.options.values()) : e.options).map(
3839
3839
  (n, o) => L(n._def, {
3840
3840
  ...t,
@@ -3845,7 +3845,7 @@ var Mp = (e, t) => {
3845
3845
  );
3846
3846
  return r.length ? { anyOf: r } : void 0;
3847
3847
  };
3848
- function $p(e, t) {
3848
+ function Zp(e, t) {
3849
3849
  if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(
3850
3850
  e.innerType._def.typeName
3851
3851
  ) && (!e.innerType._def.checks || !e.innerType._def.checks.length))
@@ -3861,7 +3861,7 @@ function $p(e, t) {
3861
3861
  });
3862
3862
  return r && { anyOf: [r, { type: "null" }] };
3863
3863
  }
3864
- function Zp(e) {
3864
+ function Dp(e) {
3865
3865
  const t = {
3866
3866
  type: "number"
3867
3867
  };
@@ -3883,7 +3883,7 @@ function Zp(e) {
3883
3883
  }
3884
3884
  return t;
3885
3885
  }
3886
- function Dp(e, t) {
3886
+ function Lp(e, t) {
3887
3887
  const r = {
3888
3888
  type: "object",
3889
3889
  properties: {}
@@ -3892,7 +3892,7 @@ function Dp(e, t) {
3892
3892
  let a = o[i];
3893
3893
  if (a === void 0 || a._def === void 0)
3894
3894
  continue;
3895
- const l = Up(a), c = L(a._def, {
3895
+ const l = jp(a), c = L(a._def, {
3896
3896
  ...t,
3897
3897
  currentPath: [...t.currentPath, "properties", i],
3898
3898
  propertyPath: [...t.currentPath, "properties", i]
@@ -3900,10 +3900,10 @@ function Dp(e, t) {
3900
3900
  c !== void 0 && (r.properties[i] = c, l || n.push(i));
3901
3901
  }
3902
3902
  n.length && (r.required = n);
3903
- const s = Lp(e, t);
3903
+ const s = Up(e, t);
3904
3904
  return s !== void 0 && (r.additionalProperties = s), r;
3905
3905
  }
3906
- function Lp(e, t) {
3906
+ function Up(e, t) {
3907
3907
  if (e.catchall._def.typeName !== "ZodNever")
3908
3908
  return L(e.catchall._def, {
3909
3909
  ...t,
@@ -3918,14 +3918,14 @@ function Lp(e, t) {
3918
3918
  return t.removeAdditionalStrategy === "strict" ? t.allowedAdditionalProperties : t.rejectedAdditionalProperties;
3919
3919
  }
3920
3920
  }
3921
- function Up(e) {
3921
+ function jp(e) {
3922
3922
  try {
3923
3923
  return e.isOptional();
3924
3924
  } catch {
3925
3925
  return !0;
3926
3926
  }
3927
3927
  }
3928
- var jp = (e, t) => {
3928
+ var Fp = (e, t) => {
3929
3929
  var r;
3930
3930
  if (t.currentPath.toString() === ((r = t.propertyPath) == null ? void 0 : r.toString()))
3931
3931
  return L(e.innerType._def, t);
@@ -3934,7 +3934,7 @@ var jp = (e, t) => {
3934
3934
  currentPath: [...t.currentPath, "anyOf", "1"]
3935
3935
  });
3936
3936
  return n ? { anyOf: [{ not: pe() }, n] } : pe();
3937
- }, Fp = (e, t) => {
3937
+ }, Bp = (e, t) => {
3938
3938
  if (t.pipeStrategy === "input")
3939
3939
  return L(e.in._def, t);
3940
3940
  if (t.pipeStrategy === "output")
@@ -3950,10 +3950,10 @@ var jp = (e, t) => {
3950
3950
  allOf: [r, n].filter((o) => o !== void 0)
3951
3951
  };
3952
3952
  };
3953
- function Bp(e, t) {
3953
+ function Vp(e, t) {
3954
3954
  return L(e.type._def, t);
3955
3955
  }
3956
- function Vp(e, t) {
3956
+ function Hp(e, t) {
3957
3957
  const n = {
3958
3958
  type: "array",
3959
3959
  uniqueItems: !0,
@@ -3964,7 +3964,7 @@ function Vp(e, t) {
3964
3964
  };
3965
3965
  return e.minSize && (n.minItems = e.minSize.value), e.maxSize && (n.maxItems = e.maxSize.value), n;
3966
3966
  }
3967
- function Hp(e, t) {
3967
+ function Gp(e, t) {
3968
3968
  return e.rest ? {
3969
3969
  type: "array",
3970
3970
  minItems: e.items.length,
@@ -3996,80 +3996,80 @@ function Hp(e, t) {
3996
3996
  )
3997
3997
  };
3998
3998
  }
3999
- function Gp() {
3999
+ function Jp() {
4000
4000
  return {
4001
4001
  not: pe()
4002
4002
  };
4003
4003
  }
4004
- function Jp() {
4004
+ function Wp() {
4005
4005
  return pe();
4006
4006
  }
4007
- var Wp = (e, t) => L(e.innerType._def, t), Yp = (e, t, r) => {
4007
+ var Yp = (e, t) => L(e.innerType._def, t), qp = (e, t, r) => {
4008
4008
  switch (t) {
4009
4009
  case O.ZodString:
4010
4010
  return Cs(e, r);
4011
4011
  case O.ZodNumber:
4012
- return Zp(e);
4012
+ return Dp(e);
4013
4013
  case O.ZodObject:
4014
- return Dp(e, r);
4014
+ return Lp(e, r);
4015
4015
  case O.ZodBigInt:
4016
- return yp(e);
4016
+ return _p(e);
4017
4017
  case O.ZodBoolean:
4018
- return _p();
4018
+ return bp();
4019
4019
  case O.ZodDate:
4020
4020
  return ks(e, r);
4021
4021
  case O.ZodUndefined:
4022
- return Gp();
4022
+ return Jp();
4023
4023
  case O.ZodNull:
4024
- return Rp();
4024
+ return zp();
4025
4025
  case O.ZodArray:
4026
- return vp(e, r);
4026
+ return yp(e, r);
4027
4027
  case O.ZodUnion:
4028
4028
  case O.ZodDiscriminatedUnion:
4029
- return zp(e, r);
4029
+ return Mp(e, r);
4030
4030
  case O.ZodIntersection:
4031
- return kp(e, r);
4031
+ return Cp(e, r);
4032
4032
  case O.ZodTuple:
4033
- return Hp(e, r);
4033
+ return Gp(e, r);
4034
4034
  case O.ZodRecord:
4035
4035
  return xs(e, r);
4036
4036
  case O.ZodLiteral:
4037
- return Cp(e);
4037
+ return xp(e);
4038
4038
  case O.ZodEnum:
4039
- return Tp(e);
4039
+ return Sp(e);
4040
4040
  case O.ZodNativeEnum:
4041
- return Op(e);
4041
+ return Pp(e);
4042
4042
  case O.ZodNullable:
4043
- return $p(e, r);
4043
+ return Zp(e, r);
4044
4044
  case O.ZodOptional:
4045
- return jp(e, r);
4045
+ return Fp(e, r);
4046
4046
  case O.ZodMap:
4047
- return Np(e, r);
4047
+ return Op(e, r);
4048
4048
  case O.ZodSet:
4049
- return Vp(e, r);
4049
+ return Hp(e, r);
4050
4050
  case O.ZodLazy:
4051
4051
  return () => e.getter()._def;
4052
4052
  case O.ZodPromise:
4053
- return Bp(e, r);
4053
+ return Vp(e, r);
4054
4054
  case O.ZodNaN:
4055
4055
  case O.ZodNever:
4056
- return Pp();
4056
+ return Rp();
4057
4057
  case O.ZodEffects:
4058
- return Ep(e, r);
4058
+ return Tp(e, r);
4059
4059
  case O.ZodAny:
4060
4060
  return pe();
4061
4061
  case O.ZodUnknown:
4062
- return Jp();
4062
+ return Wp();
4063
4063
  case O.ZodDefault:
4064
- return Ip(e, r);
4064
+ return Ep(e, r);
4065
4065
  case O.ZodBranded:
4066
4066
  return Ss(e, r);
4067
4067
  case O.ZodReadonly:
4068
- return Wp(e, r);
4068
+ return Yp(e, r);
4069
4069
  case O.ZodCatch:
4070
- return bp(e, r);
4070
+ return wp(e, r);
4071
4071
  case O.ZodPipeline:
4072
- return Fp(e, r);
4072
+ return Bp(e, r);
4073
4073
  case O.ZodFunction:
4074
4074
  case O.ZodVoid:
4075
4075
  case O.ZodSymbol:
@@ -4090,29 +4090,29 @@ function L(e, t, r = !1) {
4090
4090
  o,
4091
4091
  r
4092
4092
  );
4093
- if (l !== mp)
4093
+ if (l !== gp)
4094
4094
  return l;
4095
4095
  }
4096
4096
  if (o && !r) {
4097
- const l = qp(o, t);
4097
+ const l = Xp(o, t);
4098
4098
  if (l !== void 0)
4099
4099
  return l;
4100
4100
  }
4101
4101
  const s = { def: e, path: t.currentPath, jsonSchema: void 0 };
4102
4102
  t.seen.set(e, s);
4103
- const i = Yp(e, e.typeName, t), a = typeof i == "function" ? L(i(), t) : i;
4104
- if (a && Xp(e, t, a), t.postProcess) {
4103
+ const i = qp(e, e.typeName, t), a = typeof i == "function" ? L(i(), t) : i;
4104
+ if (a && Kp(e, t, a), t.postProcess) {
4105
4105
  const l = t.postProcess(a, e, t);
4106
4106
  return s.jsonSchema = a, l;
4107
4107
  }
4108
4108
  return s.jsonSchema = a, a;
4109
4109
  }
4110
- var qp = (e, t) => {
4110
+ var Xp = (e, t) => {
4111
4111
  switch (t.$refStrategy) {
4112
4112
  case "root":
4113
4113
  return { $ref: e.path.join("/") };
4114
4114
  case "relative":
4115
- return { $ref: hp(t.currentPath, e.path) };
4115
+ return { $ref: mp(t.currentPath, e.path) };
4116
4116
  case "none":
4117
4117
  case "seen":
4118
4118
  return e.path.length < t.currentPath.length && e.path.every((r, n) => t.currentPath[n] === r) ? (console.warn(
@@ -4121,8 +4121,8 @@ var qp = (e, t) => {
4121
4121
  )}! Defaulting to any`
4122
4122
  ), pe()) : t.$refStrategy === "seen" ? pe() : void 0;
4123
4123
  }
4124
- }, Xp = (e, t, r) => (e.description && (r.description = e.description), r), Kp = (e) => {
4125
- const t = gp(e), r = t.name !== void 0 ? [...t.basePath, t.definitionPath, t.name] : t.basePath;
4124
+ }, Kp = (e, t, r) => (e.description && (r.description = e.description), r), Qp = (e) => {
4125
+ const t = vp(e), r = t.name !== void 0 ? [...t.basePath, t.definitionPath, t.name] : t.basePath;
4126
4126
  return {
4127
4127
  ...t,
4128
4128
  currentPath: r,
@@ -4139,9 +4139,9 @@ var qp = (e, t) => {
4139
4139
  ])
4140
4140
  )
4141
4141
  };
4142
- }, Qp = (e, t) => {
4142
+ }, ef = (e, t) => {
4143
4143
  var r;
4144
- const n = Kp(t);
4144
+ const n = Qp(t);
4145
4145
  let o = typeof t == "object" && t.definitions ? Object.entries(t.definitions).reduce(
4146
4146
  (c, [p, u]) => {
4147
4147
  var y;
@@ -4183,13 +4183,13 @@ var qp = (e, t) => {
4183
4183
  }
4184
4184
  };
4185
4185
  return l.$schema = "http://json-schema.org/draft-07/schema#", l;
4186
- }, ef = Qp;
4187
- function tf(e, t) {
4186
+ }, tf = ef;
4187
+ function rf(e, t) {
4188
4188
  var r;
4189
4189
  const n = (r = void 0) != null ? r : !1;
4190
4190
  return Qr(
4191
4191
  // defer json schema creation to avoid unnecessary computation when only validation is needed
4192
- () => ef(e, {
4192
+ () => tf(e, {
4193
4193
  $refStrategy: n ? "root" : "none"
4194
4194
  }),
4195
4195
  {
@@ -4200,12 +4200,12 @@ function tf(e, t) {
4200
4200
  }
4201
4201
  );
4202
4202
  }
4203
- function rf(e, t) {
4203
+ function nf(e, t) {
4204
4204
  var r;
4205
4205
  const n = (r = void 0) != null ? r : !1;
4206
4206
  return Qr(
4207
4207
  // defer json schema creation to avoid unnecessary computation when only validation is needed
4208
- () => Wu(e, {
4208
+ () => Yu(e, {
4209
4209
  target: "draft-7",
4210
4210
  io: "output",
4211
4211
  reused: n ? "ref" : "inline"
@@ -4218,11 +4218,11 @@ function rf(e, t) {
4218
4218
  }
4219
4219
  );
4220
4220
  }
4221
- function nf(e) {
4221
+ function of(e) {
4222
4222
  return "_zod" in e;
4223
4223
  }
4224
4224
  function As(e, t) {
4225
- return nf(e) ? rf(e) : tf(e);
4225
+ return of(e) ? nf(e) : rf(e);
4226
4226
  }
4227
4227
  var zr = Symbol.for("vercel.ai.schema");
4228
4228
  function Qr(e, {
@@ -4239,22 +4239,22 @@ function Qr(e, {
4239
4239
  validate: t
4240
4240
  };
4241
4241
  }
4242
- function of(e) {
4242
+ function sf(e) {
4243
4243
  return typeof e == "object" && e !== null && zr in e && e[zr] === !0 && "jsonSchema" in e && "validate" in e;
4244
4244
  }
4245
- function sf(e) {
4245
+ function af(e) {
4246
4246
  return e == null ? Qr({
4247
4247
  properties: {},
4248
4248
  additionalProperties: !1
4249
- }) : of(e) ? e : typeof e == "function" ? e() : As(e);
4249
+ }) : sf(e) ? e : typeof e == "function" ? e() : As(e);
4250
4250
  }
4251
- function af(e) {
4251
+ function cf(e) {
4252
4252
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4253
4253
  }
4254
- var cf = Object.defineProperty, lf = (e, t) => {
4254
+ var lf = Object.defineProperty, uf = (e, t) => {
4255
4255
  for (var r in t)
4256
- cf(e, r, { get: t[r], enumerable: !0 });
4257
- }, Ns = "AI_NoObjectGeneratedError", Os = `vercel.ai.error.${Ns}`, uf = Symbol.for(Os), Ps, Gn = class extends Le {
4256
+ lf(e, r, { get: t[r], enumerable: !0 });
4257
+ }, Ns = "AI_NoObjectGeneratedError", Os = `vercel.ai.error.${Ns}`, df = Symbol.for(Os), Ps, Gn = class extends Le {
4258
4258
  constructor({
4259
4259
  message: e = "No object generated.",
4260
4260
  cause: t,
@@ -4269,7 +4269,7 @@ var cf = Object.defineProperty, lf = (e, t) => {
4269
4269
  return Le.hasMarker(e, Os);
4270
4270
  }
4271
4271
  };
4272
- Ps = uf;
4272
+ Ps = df;
4273
4273
  var Jn = "5.0.97", Rs = me([
4274
4274
  k(),
4275
4275
  Kt(Uint8Array),
@@ -4282,11 +4282,11 @@ var Jn = "5.0.97", Rs = me([
4282
4282
  },
4283
4283
  { message: "Must be a Buffer" }
4284
4284
  )
4285
- ]), Et = Qd(
4285
+ ]), Et = ep(
4286
4286
  () => me([
4287
- Ad(),
4287
+ Nd(),
4288
4288
  k(),
4289
- Sd(),
4289
+ kd(),
4290
4290
  le(),
4291
4291
  Or(k(), Et),
4292
4292
  ct(Et)
@@ -4298,7 +4298,7 @@ var Jn = "5.0.97", Rs = me([
4298
4298
  type: P("text"),
4299
4299
  text: k(),
4300
4300
  providerOptions: W.optional()
4301
- }), df = ae({
4301
+ }), pf = ae({
4302
4302
  type: P("image"),
4303
4303
  image: me([Rs, Kt(URL)]),
4304
4304
  mediaType: k().optional(),
@@ -4309,18 +4309,18 @@ var Jn = "5.0.97", Rs = me([
4309
4309
  filename: k().optional(),
4310
4310
  mediaType: k(),
4311
4311
  providerOptions: W.optional()
4312
- }), pf = ae({
4312
+ }), ff = ae({
4313
4313
  type: P("reasoning"),
4314
4314
  text: k(),
4315
4315
  providerOptions: W.optional()
4316
- }), ff = ae({
4316
+ }), hf = ae({
4317
4317
  type: P("tool-call"),
4318
4318
  toolCallId: k(),
4319
4319
  toolName: k(),
4320
4320
  input: Ce(),
4321
4321
  providerOptions: W.optional(),
4322
4322
  providerExecuted: le().optional()
4323
- }), hf = zd("type", [
4323
+ }), mf = Md("type", [
4324
4324
  ae({
4325
4325
  type: P("text"),
4326
4326
  value: k()
@@ -4357,22 +4357,22 @@ var Jn = "5.0.97", Rs = me([
4357
4357
  type: P("tool-result"),
4358
4358
  toolCallId: k(),
4359
4359
  toolName: k(),
4360
- output: hf,
4360
+ output: mf,
4361
4361
  providerOptions: W.optional()
4362
- }), mf = ae(
4362
+ }), gf = ae(
4363
4363
  {
4364
4364
  role: P("system"),
4365
4365
  content: k(),
4366
4366
  providerOptions: W.optional()
4367
4367
  }
4368
- ), gf = ae({
4368
+ ), vf = ae({
4369
4369
  role: P("user"),
4370
4370
  content: me([
4371
4371
  k(),
4372
- ct(me([zs, df, Ms]))
4372
+ ct(me([zs, pf, Ms]))
4373
4373
  ]),
4374
4374
  providerOptions: W.optional()
4375
- }), vf = ae({
4375
+ }), yf = ae({
4376
4376
  role: P("assistant"),
4377
4377
  content: me([
4378
4378
  k(),
@@ -4380,29 +4380,29 @@ var Jn = "5.0.97", Rs = me([
4380
4380
  me([
4381
4381
  zs,
4382
4382
  Ms,
4383
- pf,
4384
4383
  ff,
4384
+ hf,
4385
4385
  $s
4386
4386
  ])
4387
4387
  )
4388
4388
  ]),
4389
4389
  providerOptions: W.optional()
4390
- }), yf = ae({
4390
+ }), _f = ae({
4391
4391
  role: P("tool"),
4392
4392
  content: ct($s),
4393
4393
  providerOptions: W.optional()
4394
4394
  });
4395
4395
  me([
4396
- mf,
4397
4396
  gf,
4398
4397
  vf,
4399
- yf
4398
+ yf,
4399
+ _f
4400
4400
  ]);
4401
4401
  At({
4402
4402
  prefix: "aitxt",
4403
4403
  size: 24
4404
4404
  });
4405
- var _f = up(
4405
+ var bf = dp(
4406
4406
  () => As(
4407
4407
  me([
4408
4408
  H({
@@ -4551,7 +4551,7 @@ var _f = up(
4551
4551
  ])
4552
4552
  )
4553
4553
  );
4554
- function bf(e) {
4554
+ function wf(e) {
4555
4555
  return e.type.startsWith("data-");
4556
4556
  }
4557
4557
  function Zs(e, t) {
@@ -4575,7 +4575,7 @@ function Zs(e, t) {
4575
4575
  }
4576
4576
  return r;
4577
4577
  }
4578
- function wf(e) {
4578
+ function If(e) {
4579
4579
  const t = ["ROOT"];
4580
4580
  let r = -1, n = null;
4581
4581
  function o(l, c, p) {
@@ -4827,21 +4827,21 @@ async function Ds(e) {
4827
4827
  if (e === void 0)
4828
4828
  return { value: void 0, state: "undefined-input" };
4829
4829
  let t = await er({ text: e });
4830
- return t.success ? { value: t.value, state: "successful-parse" } : (t = await er({ text: wf(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
4830
+ return t.success ? { value: t.value, state: "successful-parse" } : (t = await er({ text: If(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
4831
4831
  }
4832
4832
  function jt(e) {
4833
4833
  return e.type.startsWith("tool-");
4834
4834
  }
4835
- function If(e) {
4835
+ function Ef(e) {
4836
4836
  return e.type === "dynamic-tool";
4837
4837
  }
4838
4838
  function Wn(e) {
4839
- return jt(e) || If(e);
4839
+ return jt(e) || Ef(e);
4840
4840
  }
4841
4841
  function Yn(e) {
4842
4842
  return e.type.split("-").slice(1).join("-");
4843
4843
  }
4844
- function Ef({
4844
+ function Tf({
4845
4845
  lastMessage: e,
4846
4846
  messageId: t
4847
4847
  }) {
@@ -4857,7 +4857,7 @@ function Ef({
4857
4857
  partialToolCalls: {}
4858
4858
  };
4859
4859
  }
4860
- function Tf({
4860
+ function Sf({
4861
4861
  stream: e,
4862
4862
  messageMetadataSchema: t,
4863
4863
  dataPartSchemas: r,
@@ -5171,7 +5171,7 @@ function Tf({
5171
5171
  break;
5172
5172
  }
5173
5173
  default:
5174
- if (bf(a)) {
5174
+ if (wf(a)) {
5175
5175
  r?.[a.type] != null && await Bn({
5176
5176
  value: a.data,
5177
5177
  schema: r[a.type]
@@ -5193,7 +5193,7 @@ function Tf({
5193
5193
  })
5194
5194
  );
5195
5195
  }
5196
- async function Sf({
5196
+ async function kf({
5197
5197
  stream: e,
5198
5198
  onError: t
5199
5199
  }) {
@@ -5215,7 +5215,7 @@ At({
5215
5215
  size: 24
5216
5216
  });
5217
5217
  At({ prefix: "aiobj", size: 24 });
5218
- var kf = class {
5218
+ var Cf = class {
5219
5219
  constructor() {
5220
5220
  this.queue = [], this.isProcessing = !1;
5221
5221
  }
@@ -5239,12 +5239,12 @@ var kf = class {
5239
5239
  }
5240
5240
  };
5241
5241
  At({ prefix: "aiobj", size: 24 });
5242
- var Cf = {};
5243
- lf(Cf, {
5244
- object: () => Af,
5245
- text: () => xf
5242
+ var xf = {};
5243
+ uf(xf, {
5244
+ object: () => Nf,
5245
+ text: () => Af
5246
5246
  });
5247
- var xf = () => ({
5247
+ var Af = () => ({
5248
5248
  type: "text",
5249
5249
  responseFormat: { type: "text" },
5250
5250
  async parsePartial({ text: e }) {
@@ -5253,10 +5253,10 @@ var xf = () => ({
5253
5253
  async parseOutput({ text: e }) {
5254
5254
  return e;
5255
5255
  }
5256
- }), Af = ({
5256
+ }), Nf = ({
5257
5257
  schema: e
5258
5258
  }) => {
5259
- const t = sf(e);
5259
+ const t = af(e);
5260
5260
  return {
5261
5261
  type: "object",
5262
5262
  responseFormat: {
@@ -5309,7 +5309,7 @@ var xf = () => ({
5309
5309
  }
5310
5310
  };
5311
5311
  };
5312
- async function Nf(e) {
5312
+ async function Of(e) {
5313
5313
  if (e == null)
5314
5314
  return [];
5315
5315
  if (!globalThis.FileList || !(e instanceof globalThis.FileList))
@@ -5332,7 +5332,7 @@ async function Nf(e) {
5332
5332
  })
5333
5333
  );
5334
5334
  }
5335
- var Of = class {
5335
+ var Pf = class {
5336
5336
  constructor({
5337
5337
  api: e = "/api/chat",
5338
5338
  credentials: t,
@@ -5422,14 +5422,14 @@ var Of = class {
5422
5422
  throw new Error("The response body is empty.");
5423
5423
  return this.processResponseStream(h.body);
5424
5424
  }
5425
- }, en = class extends Of {
5425
+ }, en = class extends Pf {
5426
5426
  constructor(e = {}) {
5427
5427
  super(e);
5428
5428
  }
5429
5429
  processResponseStream(e) {
5430
- return fp({
5430
+ return hp({
5431
5431
  stream: e,
5432
- schema: _f
5432
+ schema: bf
5433
5433
  }).pipeThrough(
5434
5434
  new TransformStream({
5435
5435
  async transform(t, r) {
@@ -5440,9 +5440,9 @@ var Of = class {
5440
5440
  })
5441
5441
  );
5442
5442
  }
5443
- }, Pf = class {
5443
+ }, Rf = class {
5444
5444
  constructor({
5445
- generateId: e = np,
5445
+ generateId: e = op,
5446
5446
  id: t = e(),
5447
5447
  transport: r = new en(),
5448
5448
  messageMetadataSchema: n,
@@ -5454,7 +5454,7 @@ var Of = class {
5454
5454
  onData: c,
5455
5455
  sendAutomaticallyWhen: p
5456
5456
  }) {
5457
- this.activeResponse = void 0, this.jobExecutor = new kf(), this.sendMessage = async (u, y) => {
5457
+ this.activeResponse = void 0, this.jobExecutor = new Cf(), this.sendMessage = async (u, y) => {
5458
5458
  var g, f, h, v;
5459
5459
  if (u == null) {
5460
5460
  await this.makeRequest({
@@ -5467,7 +5467,7 @@ var Of = class {
5467
5467
  let b;
5468
5468
  if ("text" in u || "files" in u ? b = {
5469
5469
  parts: [
5470
- ...Array.isArray(u.files) ? u.files : await Nf(u.files),
5470
+ ...Array.isArray(u.files) ? u.files : await Of(u.files),
5471
5471
  ..."text" in u && u.text != null ? [{ type: "text", text: u.text }] : []
5472
5472
  ]
5473
5473
  } : b = u, u.messageId != null) {
@@ -5590,7 +5590,7 @@ var Of = class {
5590
5590
  let p = !1, u = !1, y = !1;
5591
5591
  try {
5592
5592
  const g = {
5593
- state: Ef({
5593
+ state: Tf({
5594
5594
  lastMessage: this.state.snapshot(c),
5595
5595
  messageId: this.generateId()
5596
5596
  }),
@@ -5638,8 +5638,8 @@ var Of = class {
5638
5638
  })
5639
5639
  )
5640
5640
  );
5641
- await Sf({
5642
- stream: Tf({
5641
+ await kf({
5642
+ stream: Sf({
5643
5643
  stream: f,
5644
5644
  onToolCall: this.onToolCall,
5645
5645
  onData: this.onData,
@@ -5685,28 +5685,28 @@ var Of = class {
5685
5685
  const se = [];
5686
5686
  for (let e = 0; e < 256; ++e)
5687
5687
  se.push((e + 256).toString(16).slice(1));
5688
- function Rf(e, t = 0) {
5688
+ function zf(e, t = 0) {
5689
5689
  return (se[e[t + 0]] + se[e[t + 1]] + se[e[t + 2]] + se[e[t + 3]] + "-" + se[e[t + 4]] + se[e[t + 5]] + "-" + se[e[t + 6]] + se[e[t + 7]] + "-" + se[e[t + 8]] + se[e[t + 9]] + "-" + se[e[t + 10]] + se[e[t + 11]] + se[e[t + 12]] + se[e[t + 13]] + se[e[t + 14]] + se[e[t + 15]]).toLowerCase();
5690
5690
  }
5691
5691
  let yr;
5692
- const zf = new Uint8Array(16);
5693
- function Mf() {
5692
+ const Mf = new Uint8Array(16);
5693
+ function $f() {
5694
5694
  if (!yr) {
5695
5695
  if (typeof crypto > "u" || !crypto.getRandomValues)
5696
5696
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
5697
5697
  yr = crypto.getRandomValues.bind(crypto);
5698
5698
  }
5699
- return yr(zf);
5699
+ return yr(Mf);
5700
5700
  }
5701
- const $f = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), qn = { randomUUID: $f };
5701
+ const Zf = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), qn = { randomUUID: Zf };
5702
5702
  function Oe(e, t, r) {
5703
5703
  if (qn.randomUUID && !e)
5704
5704
  return qn.randomUUID();
5705
5705
  e = e || {};
5706
- const n = e.random ?? e.rng?.() ?? Mf();
5706
+ const n = e.random ?? e.rng?.() ?? $f();
5707
5707
  if (n.length < 16)
5708
5708
  throw new Error("Random bytes length must be >= 16");
5709
- return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Rf(n);
5709
+ return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, zf(n);
5710
5710
  }
5711
5711
  let _r = null, br = null;
5712
5712
  const Ls = async () => (_r || (_r = import(
@@ -5714,8 +5714,8 @@ const Ls = async () => (_r || (_r = import(
5714
5714
  "./index.790ujKXR.js"
5715
5715
  )), _r), Us = async () => (br || (br = import(
5716
5716
  /* webpackChunkName: "toast-utilities" */
5717
- "./index.V4qMbeRe.js"
5718
- ).then((e) => e.utilities)), br), Zf = async () => {
5717
+ "./index.hQue6TMs.js"
5718
+ ).then((e) => e.utilities)), br), Df = async () => {
5719
5719
  try {
5720
5720
  await Promise.all([Ls(), Us()]);
5721
5721
  } catch {
@@ -5736,7 +5736,7 @@ const Ls = async () => (_r || (_r = import(
5736
5736
  }, 100);
5737
5737
  } catch {
5738
5738
  }
5739
- }, Tt = (e, t) => js(e, "success", t), Nm = (e, t) => js(e, "error", t), Xe = "CHAT_SET_STATUS", Fs = "CHAT_SET_USAGE", it = "CHAT_SET_ATTACHMENTS", Bs = "CHAT_SET_PROVIDER", Fe = "CHAT_RESET", Df = (e, t) => {
5739
+ }, Tt = (e, t) => js(e, "success", t), Om = (e, t) => js(e, "error", t), Xe = "CHAT_SET_STATUS", Fs = "CHAT_SET_USAGE", it = "CHAT_SET_ATTACHMENTS", Bs = "CHAT_SET_PROVIDER", Fe = "CHAT_RESET", Lf = (e, t) => {
5740
5740
  switch (t.type) {
5741
5741
  case Fs:
5742
5742
  return {
@@ -5788,7 +5788,7 @@ const Ls = async () => (_r || (_r = import(
5788
5788
  default:
5789
5789
  return e;
5790
5790
  }
5791
- }, Lf = (e, t) => {
5791
+ }, Uf = (e, t) => {
5792
5792
  switch (t?.type) {
5793
5793
  case aa:
5794
5794
  return {
@@ -5807,7 +5807,7 @@ const Ls = async () => (_r || (_r = import(
5807
5807
  default:
5808
5808
  return e;
5809
5809
  }
5810
- }, Uf = (e, t) => {
5810
+ }, jf = (e, t) => {
5811
5811
  switch (t?.type) {
5812
5812
  case uo:
5813
5813
  return {
@@ -5824,7 +5824,7 @@ const Ls = async () => (_r || (_r = import(
5824
5824
  }
5825
5825
  };
5826
5826
  var wr, Xn;
5827
- function jf() {
5827
+ function Ff() {
5828
5828
  if (Xn) return wr;
5829
5829
  Xn = 1;
5830
5830
  function e(t, r) {
@@ -5841,8 +5841,8 @@ function jf() {
5841
5841
  }
5842
5842
  return wr = e, wr;
5843
5843
  }
5844
- var Ff = /* @__PURE__ */ jf();
5845
- const Bf = /* @__PURE__ */ af(Ff);
5844
+ var Bf = /* @__PURE__ */ Ff();
5845
+ const Vf = /* @__PURE__ */ cf(Bf);
5846
5846
  var Vs = (e, t, r) => {
5847
5847
  if (!t.has(e))
5848
5848
  throw TypeError("Cannot " + r);
@@ -5851,10 +5851,10 @@ var Vs = (e, t, r) => {
5851
5851
  throw TypeError("Cannot add the same private member more than once");
5852
5852
  t instanceof WeakSet ? t.add(e) : t.set(e, r);
5853
5853
  }, Me = (e, t, r, n) => (Vs(e, t, "write to private field"), t.set(e, r), r);
5854
- function Vf(e, t) {
5855
- return t != null ? Bf(e, t) : e;
5854
+ function Hf(e, t) {
5855
+ return t != null ? Vf(e, t) : e;
5856
5856
  }
5857
- var he, Ft, Bt, ft, ht, mt, ot, Mr, $r, Hf = class {
5857
+ var he, Ft, Bt, ft, ht, mt, ot, Mr, $r, Gf = class {
5858
5858
  constructor(e = []) {
5859
5859
  ke(this, he, void 0), ke(this, Ft, "ready"), ke(this, Bt, void 0), ke(this, ft, /* @__PURE__ */ new Set()), ke(this, ht, /* @__PURE__ */ new Set()), ke(this, mt, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
5860
5860
  Me(this, he, F(this, he).concat(t)), F(this, ot).call(this);
@@ -5868,7 +5868,7 @@ var he, Ft, Bt, ft, ht, mt, ot, Mr, $r, Hf = class {
5868
5868
  ...F(this, he).slice(t + 1)
5869
5869
  ]), F(this, ot).call(this);
5870
5870
  }, this.snapshot = (t) => structuredClone(t), this["~registerMessagesCallback"] = (t, r) => {
5871
- const n = r ? Vf(t, r) : t;
5871
+ const n = r ? Hf(t, r) : t;
5872
5872
  return F(this, ft).add(n), () => {
5873
5873
  F(this, ft).delete(n);
5874
5874
  };
@@ -5912,14 +5912,14 @@ mt = /* @__PURE__ */ new WeakMap();
5912
5912
  ot = /* @__PURE__ */ new WeakMap();
5913
5913
  Mr = /* @__PURE__ */ new WeakMap();
5914
5914
  $r = /* @__PURE__ */ new WeakMap();
5915
- var st, Kn = class extends Pf {
5915
+ var st, Kn = class extends Rf {
5916
5916
  constructor({ messages: e, ...t }) {
5917
- const r = new Hf(e);
5917
+ const r = new Gf(e);
5918
5918
  super({ ...t, state: r }), ke(this, st, void 0), this["~registerMessagesCallback"] = (n, o) => F(this, st)["~registerMessagesCallback"](n, o), this["~registerStatusCallback"] = (n) => F(this, st)["~registerStatusCallback"](n), this["~registerErrorCallback"] = (n) => F(this, st)["~registerErrorCallback"](n), Me(this, st, r);
5919
5919
  }
5920
5920
  };
5921
5921
  st = /* @__PURE__ */ new WeakMap();
5922
- function Gf({
5922
+ function Jf({
5923
5923
  experimental_throttle: e,
5924
5924
  resume: t = !1,
5925
5925
  ...r
@@ -5995,7 +5995,7 @@ function Ve(e = {}) {
5995
5995
  setInput: t.setInput
5996
5996
  };
5997
5997
  }
5998
- function Jf({
5998
+ function Wf({
5999
5999
  children: e,
6000
6000
  value: t
6001
6001
  }) {
@@ -6015,7 +6015,7 @@ function Jf({
6015
6015
  }, []), l = Y(async (p) => {
6016
6016
  for (const u of r.current.onToolCall)
6017
6017
  await u(p);
6018
- }, []), c = Gf({
6018
+ }, []), c = Jf({
6019
6019
  id: t.id,
6020
6020
  messages: t.messages,
6021
6021
  transport: t.transport || new en({
@@ -6041,7 +6041,7 @@ function Jf({
6041
6041
  }
6042
6042
  );
6043
6043
  }
6044
- const Wf = ({ chatId: e }) => {
6044
+ const Yf = ({ chatId: e }) => {
6045
6045
  const { messages: t } = Ve(), [r, n] = xe({
6046
6046
  key: $e + po,
6047
6047
  initialValue: ""
@@ -6077,7 +6077,7 @@ const eo = ({
6077
6077
  };
6078
6078
  }
6079
6079
  }, []), r && Ir ? /* @__PURE__ */ d(Ir, { containerId: e, ...t }) : null;
6080
- }, Yf = ({
6080
+ }, qf = ({
6081
6081
  currentChatId: e,
6082
6082
  setChatId: t,
6083
6083
  setInitialMessages: r,
@@ -6111,7 +6111,7 @@ const eo = ({
6111
6111
  r,
6112
6112
  n
6113
6113
  ]), { hasRestoredFromCache: i };
6114
- }, qf = "z-20", Xf = "z-10";
6114
+ }, Xf = "z-20", Kf = "z-10";
6115
6115
  /*!
6116
6116
  @versini/ui-tooltip v3.1.1
6117
6117
  © 2025 gizmette.com
@@ -6125,22 +6125,22 @@ try {
6125
6125
  });
6126
6126
  } catch {
6127
6127
  }
6128
- const Kf = "av-tooltip", Qf = "av-tooltip-arrow", Dt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, eh = () => R("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), to = ({ mode: e }) => R({
6128
+ const Qf = "av-tooltip", eh = "av-tooltip-arrow", Dt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, th = () => R("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), to = ({ mode: e }) => R({
6129
6129
  "bg-surface-darker": e === "dark" || e === "system",
6130
6130
  "bg-surface-light": e === "light" || e === "alt-system",
6131
6131
  "dark:bg-surface-light": e === "system",
6132
6132
  "dark:bg-surface-darker": e === "alt-system"
6133
- }), th = ({ mode: e }) => R({
6133
+ }), rh = ({ mode: e }) => R({
6134
6134
  "text-copy-light": e === "dark" || e === "system",
6135
6135
  "text-copy-dark": e === "light" || e === "alt-system",
6136
6136
  "dark:text-copy-dark": e === "system",
6137
6137
  "dark:text-copy-light": e === "alt-system"
6138
- }), rh = () => R("absolute", "size-2", "transform rotate-45"), nh = ({ mode: e, className: t, tooltipClassName: r, arrowClassName: n }) => {
6139
- const o = R("relative inline-block", t), s = R(Kf, eh(), to({
6138
+ }), nh = () => R("absolute", "size-2", "transform rotate-45"), oh = ({ mode: e, className: t, tooltipClassName: r, arrowClassName: n }) => {
6139
+ const o = R("relative inline-block", t), s = R(Qf, th(), to({
6140
6140
  mode: e
6141
- }), th({
6141
+ }), rh({
6142
6142
  mode: e
6143
- }), r), i = R(Qf, rh(), to({
6143
+ }), r), i = R(eh, nh(), to({
6144
6144
  mode: e
6145
6145
  }), n);
6146
6146
  return {
@@ -6148,23 +6148,23 @@ const Kf = "av-tooltip", Qf = "av-tooltip-arrow", Dt = (e, t = "px") => typeof e
6148
6148
  arrow: i,
6149
6149
  wrapper: o
6150
6150
  };
6151
- }, oh = ({ delay: e = 300 }) => ({
6151
+ }, sh = ({ delay: e = 300 }) => ({
6152
6152
  animation: `av-tooltip-fade-in ${e}ms ease-in-out`
6153
- }), sh = 5e3, Re = ({ trigger: e, label: t, placement: r = "top", mode: n = "system", delay: o = 300, className: s, tooltipClassName: i, arrowClassName: a }) => {
6153
+ }), ah = 5e3, Re = ({ trigger: e, label: t, placement: r = "top", mode: n = "system", delay: o = 300, className: s, tooltipClassName: i, arrowClassName: a }) => {
6154
6154
  const l = la(() => {
6155
6155
  h.stop(), f(!1);
6156
6156
  }), c = J(null), p = J(null), [u, y] = z(!1), [g, f] = z(!1), h = ua(() => {
6157
6157
  f(!1);
6158
- }, sh), v = nh({
6158
+ }, ah), v = oh({
6159
6159
  mode: n,
6160
6160
  className: s,
6161
6161
  tooltipClassName: i,
6162
6162
  arrowClassName: a
6163
- }), b = oh({
6163
+ }), b = sh({
6164
6164
  delay: o
6165
6165
  }), w = Y(async () => {
6166
6166
  if (l.current && c.current && p.current) {
6167
- const { x: A, y: S, middlewareData: N, placement: $ } = await $i(l.current, c.current, {
6167
+ const { x: A, y: S, middlewareData: N, placement: $ } = await Zi(l.current, c.current, {
6168
6168
  placement: r,
6169
6169
  middleware: [
6170
6170
  So(10),
@@ -6175,7 +6175,7 @@ const Kf = "av-tooltip", Qf = "av-tooltip-arrow", Dt = (e, t = "px") => typeof e
6175
6175
  Co({
6176
6176
  padding: 5
6177
6177
  }),
6178
- Zi({
6178
+ Di({
6179
6179
  element: p.current
6180
6180
  })
6181
6181
  ]
@@ -6239,7 +6239,7 @@ const Kf = "av-tooltip", Qf = "av-tooltip-arrow", Dt = (e, t = "px") => typeof e
6239
6239
  })
6240
6240
  ]
6241
6241
  });
6242
- }, ah = ({
6242
+ }, ih = ({
6243
6243
  className: e,
6244
6244
  onClick: t
6245
6245
  }) => {
@@ -6281,7 +6281,7 @@ function Gs(e, t) {
6281
6281
  };
6282
6282
  }, [e, t]);
6283
6283
  }
6284
- const ih = ({
6284
+ const ch = ({
6285
6285
  className: e
6286
6286
  }) => {
6287
6287
  const { getAccessToken: t, user: r } = ge(), {
@@ -6408,7 +6408,7 @@ try {
6408
6408
  });
6409
6409
  } catch {
6410
6410
  }
6411
- const ch = "av-messagebox", lh = "av-panel";
6411
+ const lh = "av-messagebox", uh = "av-panel";
6412
6412
  /*!
6413
6413
  @versini/ui-modal v3.1.0
6414
6414
  © 2025 gizmette.com
@@ -6423,7 +6423,7 @@ try {
6423
6423
  } catch {
6424
6424
  }
6425
6425
  const Js = /* @__PURE__ */ Br(null);
6426
- function uh({ initialOpen: e = !1, open: t, onOpenChange: r } = {}) {
6426
+ function dh({ initialOpen: e = !1, open: t, onOpenChange: r } = {}) {
6427
6427
  const [n, o] = z(e), [s, i] = z(), [a, l] = z(), c = t ?? n, p = r ?? o, u = xo({
6428
6428
  open: c,
6429
6429
  onOpenChange: p
@@ -6461,14 +6461,14 @@ const sr = () => {
6461
6461
  throw new Error("Modal components must be wrapped in <Modal />");
6462
6462
  return e;
6463
6463
  };
6464
- function dh({ children: e, ...t }) {
6465
- const r = uh(t);
6464
+ function ph({ children: e, ...t }) {
6465
+ const r = dh(t);
6466
6466
  return /* @__PURE__ */ d(Js.Provider, {
6467
6467
  value: r,
6468
6468
  children: e
6469
6469
  });
6470
6470
  }
6471
- const ph = /* @__PURE__ */ Qe(function(t, r) {
6471
+ const fh = /* @__PURE__ */ Qe(function(t, r) {
6472
6472
  const { context: n, ...o } = sr(), s = Hr([
6473
6473
  o.refs.setFloating,
6474
6474
  r
@@ -6480,7 +6480,7 @@ const ph = /* @__PURE__ */ Qe(function(t, r) {
6480
6480
  "bg-black sm:bg-black/[.8]": !i
6481
6481
  });
6482
6482
  return /* @__PURE__ */ d(Cr, {
6483
- children: /* @__PURE__ */ d(Di, {
6483
+ children: /* @__PURE__ */ d(Li, {
6484
6484
  className: l,
6485
6485
  lockScroll: !0,
6486
6486
  children: /* @__PURE__ */ d(xr, {
@@ -6495,7 +6495,7 @@ const ph = /* @__PURE__ */ Qe(function(t, r) {
6495
6495
  })
6496
6496
  })
6497
6497
  });
6498
- }), fh = /* @__PURE__ */ Qe(function({ children: t, ...r }, n) {
6498
+ }), hh = /* @__PURE__ */ Qe(function({ children: t, ...r }, n) {
6499
6499
  const { setLabelId: o } = sr(), s = To();
6500
6500
  return Vr(() => (o(s), () => o(void 0)), [
6501
6501
  s,
@@ -6506,7 +6506,7 @@ const ph = /* @__PURE__ */ Qe(function(t, r) {
6506
6506
  id: s,
6507
6507
  children: t
6508
6508
  });
6509
- }), hh = /* @__PURE__ */ Qe(function({ children: t, ...r }, n) {
6509
+ }), mh = /* @__PURE__ */ Qe(function({ children: t, ...r }, n) {
6510
6510
  const { setDescriptionId: o } = sr(), s = To();
6511
6511
  return Vr(() => (o(s), () => o(void 0)), [
6512
6512
  s,
@@ -6517,19 +6517,19 @@ const ph = /* @__PURE__ */ Qe(function(t, r) {
6517
6517
  id: s,
6518
6518
  children: t
6519
6519
  });
6520
- }), mh = /* @__PURE__ */ Qe(function(t, r) {
6520
+ }), gh = /* @__PURE__ */ Qe(function(t, r) {
6521
6521
  const { setOpen: n } = sr(), { trigger: o, className: s, ...i } = t, a = Y(() => n(!1), [
6522
6522
  n
6523
6523
  ]);
6524
6524
  return /* @__PURE__ */ d("div", {
6525
6525
  className: s,
6526
- children: /* @__PURE__ */ Mi(o, {
6526
+ children: /* @__PURE__ */ $i(o, {
6527
6527
  ref: r,
6528
6528
  onClick: a,
6529
6529
  ...i
6530
6530
  })
6531
6531
  });
6532
- }), be = "panel", Je = "messagebox", gh = ({ className: e, kind: t, borderMode: r, animation: n, maxWidth: o = "medium", maxHeight: s }) => {
6532
+ }), be = "panel", Je = "messagebox", vh = ({ className: e, kind: t, borderMode: r, animation: n, maxWidth: o = "medium", maxHeight: s }) => {
6533
6533
  const i = s ?? (t === be ? "large" : void 0);
6534
6534
  return {
6535
6535
  main: R("prose prose-lighter flex flex-col bg-surface-dark", {
@@ -6537,7 +6537,7 @@ const ph = /* @__PURE__ */ Qe(function(t, r) {
6537
6537
  /**
6538
6538
  * Panel styles
6539
6539
  */
6540
- [`${lh} min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === be,
6540
+ [`${uh} min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === be,
6541
6541
  "w-full sm:w-[95%] md:max-w-2xl": t === be && !e && o === "small",
6542
6542
  "w-full sm:w-[95%] md:max-w-3xl": t === be && !e && o === "medium",
6543
6543
  "w-full sm:w-[95%] md:max-w-4xl": t === be && !e && o === "large",
@@ -6549,7 +6549,7 @@ const ph = /* @__PURE__ */ Qe(function(t, r) {
6549
6549
  /**
6550
6550
  * Messagebox styles
6551
6551
  */
6552
- [`${ch} rounded-lg border-2`]: t === Je,
6552
+ [`${lh} rounded-lg border-2`]: t === Je,
6553
6553
  "w-[95%] sm:w-[50%] md:max-w-2xl": t === Je && !e,
6554
6554
  "max-h-[20%]": t === Je && i === "small",
6555
6555
  "max-h-[50%]": t === Je && i === "medium",
@@ -6563,12 +6563,12 @@ const ph = /* @__PURE__ */ Qe(function(t, r) {
6563
6563
  header: "sm:p-4 mb-0 p-2",
6564
6564
  close: "sm:p-4 p-2"
6565
6565
  };
6566
- }, vh = "slide", ro = "fade", yh = ({ open: e, onOpenChange: t, title: r, children: n, footer: o, borderMode: s = "light", kind: i = be, className: a, animation: l = !1, animationType: c = vh, maxWidth: p = "medium", maxHeight: u }) => {
6566
+ }, yh = "slide", ro = "fade", _h = ({ open: e, onOpenChange: t, title: r, children: n, footer: o, borderMode: s = "light", kind: i = be, className: a, animation: l = !1, animationType: c = yh, maxWidth: p = "medium", maxHeight: u }) => {
6567
6567
  const y = J(""), [g, f] = z(l ? c === ro ? {
6568
6568
  opacity: 0
6569
6569
  } : {
6570
6570
  transform: "translateY(-100vh)"
6571
- } : {}), h = gh({
6571
+ } : {}), h = vh({
6572
6572
  className: a,
6573
6573
  kind: i,
6574
6574
  borderMode: s,
@@ -6602,17 +6602,17 @@ const ph = /* @__PURE__ */ Qe(function(t, r) {
6602
6602
  l,
6603
6603
  c
6604
6604
  ]), /* @__PURE__ */ d(Ne, {
6605
- children: e && /* @__PURE__ */ d(dh, {
6605
+ children: e && /* @__PURE__ */ d(ph, {
6606
6606
  open: e,
6607
6607
  onOpenChange: t,
6608
- children: /* @__PURE__ */ x(ph, {
6608
+ children: /* @__PURE__ */ x(fh, {
6609
6609
  className: h.main,
6610
6610
  style: g,
6611
6611
  children: [
6612
6612
  /* @__PURE__ */ x("div", {
6613
6613
  className: "flex flex-row-reverse items-center justify-between",
6614
6614
  children: [
6615
- /* @__PURE__ */ d(mh, {
6615
+ /* @__PURE__ */ d(gh, {
6616
6616
  className: h.close,
6617
6617
  trigger: /* @__PURE__ */ d(Te, {
6618
6618
  mode: "dark",
@@ -6624,13 +6624,13 @@ const ph = /* @__PURE__ */ Qe(function(t, r) {
6624
6624
  })
6625
6625
  })
6626
6626
  }),
6627
- /* @__PURE__ */ d(fh, {
6627
+ /* @__PURE__ */ d(hh, {
6628
6628
  className: h.header,
6629
6629
  children: r
6630
6630
  })
6631
6631
  ]
6632
6632
  }),
6633
- /* @__PURE__ */ d(hh, {
6633
+ /* @__PURE__ */ d(mh, {
6634
6634
  className: h.content,
6635
6635
  children: n
6636
6636
  }),
@@ -6656,7 +6656,7 @@ try {
6656
6656
  });
6657
6657
  } catch {
6658
6658
  }
6659
- const _h = "av-toggle", bh = ({ narrow: e }) => R(
6659
+ const bh = "av-toggle", wh = ({ narrow: e }) => R(
6660
6660
  "peer",
6661
6661
  "rounded-full",
6662
6662
  {
@@ -6665,12 +6665,12 @@ const _h = "av-toggle", bh = ({ narrow: e }) => R(
6665
6665
  },
6666
6666
  // Smooth background/border transition when toggling
6667
6667
  "transition-colors duration-300 ease-in-out motion-reduce:transition-none"
6668
- ), wh = ({ focusMode: e }) => R("peer-focus:outline", "peer-focus:outline-2", "peer-focus:outline-offset-2", {
6668
+ ), Ih = ({ focusMode: e }) => R("peer-focus:outline", "peer-focus:outline-2", "peer-focus:outline-offset-2", {
6669
6669
  "peer-focus:outline-focus-dark": e === "dark",
6670
6670
  "peer-focus:outline-focus-light": e === "light",
6671
6671
  "peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
6672
6672
  "peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
6673
- }), Ih = ({ narrow: e }) => R(
6673
+ }), Eh = ({ narrow: e }) => R(
6674
6674
  {
6675
6675
  "peer-checked:after:translate-x-full": !e,
6676
6676
  "peer-checked:after:translate-x-4": e
@@ -6680,12 +6680,12 @@ const _h = "av-toggle", bh = ({ narrow: e }) => R(
6680
6680
  // knob circle and border color when checked
6681
6681
  "peer-checked:after:bg-white",
6682
6682
  "peer-checked:after:border-white"
6683
- ), Eh = ({ narrow: e }) => R("after:left-[2px]", "after:top-[2px]", "after:border", "after:border-surface-light dark:after:border-surface-medium", "after:bg-surface-light dark:after:bg-surface-medium", "after:absolute", "after:transition-all after:duration-300 after:ease-in-out after:motion-reduce:transition-none after:will-change-transform", "after:content-['']", "after:rounded-full", {
6683
+ ), Th = ({ narrow: e }) => R("after:left-[2px]", "after:top-[2px]", "after:border", "after:border-surface-light dark:after:border-surface-medium", "after:bg-surface-light dark:after:bg-surface-medium", "after:absolute", "after:transition-all after:duration-300 after:ease-in-out after:motion-reduce:transition-none after:will-change-transform", "after:content-['']", "after:rounded-full", {
6684
6684
  // Normal toggle knob (circle)
6685
6685
  "after:h-5 after:w-5": !e,
6686
6686
  // Narrow toggle knob (oval)
6687
6687
  " after:h-4 after:w-7": e
6688
- }), Th = ({ mode: e, noBorder: t }) => R({
6688
+ }), Sh = ({ mode: e, noBorder: t }) => R({
6689
6689
  border: !t,
6690
6690
  "border-border-medium bg-surface-medium": e === "light",
6691
6691
  "border-border-light bg-surface-darker": e === "dark",
@@ -6704,17 +6704,17 @@ const _h = "av-toggle", bh = ({ narrow: e }) => R(
6704
6704
  "text-copy-lighter/60 dark:text-copy-dark/60": t === "alt-system" && o,
6705
6705
  "text-copy-dark/60 dark:text-copy-lighter/60": t === "system" && o,
6706
6706
  "text-xs": o
6707
- })), Sh = ({ className: e }) => R(_h, "relative flex cursor-pointer items-center", e), kh = () => "relative inline-block", Ch = ({ mode: e, focusMode: t, labelHidden: r, className: n, noBorder: o, narrow: s, labelMode: i, labelPosition: a = "right", subLabel: l }) => ({
6708
- toggle: R(bh({
6707
+ })), kh = ({ className: e }) => R(bh, "relative flex cursor-pointer items-center", e), Ch = () => "relative inline-block", xh = ({ mode: e, focusMode: t, labelHidden: r, className: n, noBorder: o, narrow: s, labelMode: i, labelPosition: a = "right", subLabel: l }) => ({
6708
+ toggle: R(wh({
6709
6709
  narrow: s
6710
- }), Th({
6710
+ }), Sh({
6711
6711
  mode: e,
6712
6712
  noBorder: o
6713
- }), wh({
6713
+ }), Ih({
6714
6714
  focusMode: t
6715
- }), Eh({
6715
+ }), Th({
6716
6716
  narrow: s
6717
- }), Ih({
6717
+ }), Eh({
6718
6718
  narrow: s
6719
6719
  })),
6720
6720
  label: no({
@@ -6731,12 +6731,12 @@ const _h = "av-toggle", bh = ({ narrow: e }) => R(
6731
6731
  subLabel: l
6732
6732
  }),
6733
6733
  input: "peer sr-only",
6734
- wrapper: Sh({
6734
+ wrapper: kh({
6735
6735
  className: n
6736
6736
  }),
6737
- toggleWrapper: kh()
6738
- }), xh = ({ checked: e = !1, onChange: t, label: r, labelHidden: n = !1, name: o, mode: s = "system", focusMode: i = "system", labelMode: a, className: l, noBorder: c = !1, narrow: p = !1, noHaptic: u = !1, labelPosition: y = "right", subLabel: g }) => {
6739
- const { haptic: f } = ha(), h = Ch({
6737
+ toggleWrapper: Ch()
6738
+ }), Ah = ({ checked: e = !1, onChange: t, label: r, labelHidden: n = !1, name: o, mode: s = "system", focusMode: i = "system", labelMode: a, className: l, noBorder: c = !1, narrow: p = !1, noHaptic: u = !1, labelPosition: y = "right", subLabel: g }) => {
6739
+ const { haptic: f } = ha(), h = xh({
6740
6740
  mode: s,
6741
6741
  focusMode: i,
6742
6742
  labelHidden: n,
@@ -6838,7 +6838,7 @@ const _h = "av-toggle", bh = ({ narrow: e }) => R(
6838
6838
  columnGap: 2,
6839
6839
  children: [
6840
6840
  /* @__PURE__ */ d(at, { span: "auto", children: /* @__PURE__ */ d(
6841
- xh,
6841
+ Ah,
6842
6842
  {
6843
6843
  narrow: !0,
6844
6844
  mode: "dark",
@@ -6857,7 +6857,7 @@ const _h = "av-toggle", bh = ({ narrow: e }) => R(
6857
6857
  }
6858
6858
  ) : u;
6859
6859
  return /* @__PURE__ */ d(
6860
- yh,
6860
+ _h,
6861
6861
  {
6862
6862
  kind: "messagebox",
6863
6863
  open: e,
@@ -6867,7 +6867,7 @@ const _h = "av-toggle", bh = ({ narrow: e }) => R(
6867
6867
  children: n
6868
6868
  }
6869
6869
  );
6870
- }, Ah = ({
6870
+ }, Nh = ({
6871
6871
  className: e
6872
6872
  }) => {
6873
6873
  const { getAccessToken: t, user: r } = ge(), {
@@ -7010,7 +7010,7 @@ const Vt = /* @__PURE__ */ Br({
7010
7010
  }
7011
7011
  return "Element";
7012
7012
  }, Zr = /* @__PURE__ */ Qe(({ trigger: e, children: t, label: r = "Open menu", defaultPlacement: n = "bottom-start", onOpenChange: o, mode: s = "system", focusMode: i = "system", ...a }, l) => {
7013
- const [c, p] = z(!1), [u, y] = z(!1), [g, f] = z(null), [h, v] = z(!1), b = J([]), w = J([]), I = q(Vt), m = Mo(), E = Ui(), A = Ro(), S = zo({
7013
+ const [c, p] = z(!1), [u, y] = z(!1), [g, f] = z(null), [h, v] = z(!1), b = J([]), w = J([]), I = q(Vt), m = Mo(), E = ji(), A = Ro(), S = zo({
7014
7014
  label: r !== "Open menu" ? r : null
7015
7015
  }), N = A != null, { floatingStyles: $, refs: re, context: C } = xo({
7016
7016
  nodeId: E,
@@ -7031,13 +7031,13 @@ const Vt = /* @__PURE__ */ Br({
7031
7031
  ko(),
7032
7032
  Co()
7033
7033
  ],
7034
- whileElementsMounted: ji
7035
- }), ee = Fi(C, {
7034
+ whileElementsMounted: Fi
7035
+ }), ee = Bi(C, {
7036
7036
  enabled: N && h,
7037
7037
  delay: {
7038
7038
  open: 75
7039
7039
  },
7040
- handleClose: Bi({
7040
+ handleClose: Vi({
7041
7041
  blockPointerEvents: !0
7042
7042
  })
7043
7043
  }), ce = Ao(C, {
@@ -7048,13 +7048,13 @@ const Vt = /* @__PURE__ */ Br({
7048
7048
  role: "menu"
7049
7049
  }), j = No(C, {
7050
7050
  bubbles: !0
7051
- }), de = Vi(C, {
7051
+ }), de = Hi(C, {
7052
7052
  listRef: b,
7053
7053
  activeIndex: g,
7054
7054
  nested: N,
7055
7055
  onNavigate: f,
7056
7056
  loop: !0
7057
- }), He = Hi(C, {
7057
+ }), He = Gi(C, {
7058
7058
  listRef: w,
7059
7059
  onMatch: c ? f : void 0,
7060
7060
  activeIndex: g
@@ -7228,7 +7228,7 @@ const Vt = /* @__PURE__ */ Br({
7228
7228
  })
7229
7229
  ]
7230
7230
  });
7231
- }), St = /* @__PURE__ */ Qe((e, t) => Ro() === null ? /* @__PURE__ */ d(Li, {
7231
+ }), St = /* @__PURE__ */ Qe((e, t) => Ro() === null ? /* @__PURE__ */ d(Ui, {
7232
7232
  children: /* @__PURE__ */ d(Zr, {
7233
7233
  ...e,
7234
7234
  ref: t
@@ -7294,7 +7294,7 @@ const we = /* @__PURE__ */ Qe(({ label: e, disabled: t, icon: r, raw: n = !1, ch
7294
7294
  });
7295
7295
  });
7296
7296
  we.displayName = "MenuItem";
7297
- const Nh = ({ className: e, ...t }) => {
7297
+ const Oh = ({ className: e, ...t }) => {
7298
7298
  const r = R(e, "my-1 border-t border-border-medium");
7299
7299
  return /* @__PURE__ */ d("div", {
7300
7300
  className: r,
@@ -7306,12 +7306,12 @@ const Nh = ({ className: e, ...t }) => {
7306
7306
  className: r,
7307
7307
  ...t
7308
7308
  });
7309
- }, Oh = (e) => {
7309
+ }, Ph = (e) => {
7310
7310
  for (let t = 0; t < e.length; t++)
7311
7311
  if (e[t].enabled)
7312
7312
  return !0;
7313
7313
  return !1;
7314
- }, Ph = ({
7314
+ }, Rh = ({
7315
7315
  className: e,
7316
7316
  defaultPlacement: t = "top-start"
7317
7317
  }) => {
@@ -7330,7 +7330,7 @@ const Nh = ({ className: e, ...t }) => {
7330
7330
  prompt: v
7331
7331
  }
7332
7332
  });
7333
- }, g = u && p && p.tags && Oh(p.tags), f = /* @__PURE__ */ x(
7333
+ }, g = u && p && p.tags && Ph(p.tags), f = /* @__PURE__ */ x(
7334
7334
  St,
7335
7335
  {
7336
7336
  mode: "dark",
@@ -7392,7 +7392,7 @@ const Nh = ({ className: e, ...t }) => {
7392
7392
  trigger: f
7393
7393
  }
7394
7394
  ) : /* @__PURE__ */ d("div", { className: e, children: f });
7395
- }, Rh = ({
7395
+ }, zh = ({
7396
7396
  className: e
7397
7397
  }) => {
7398
7398
  const {
@@ -7490,7 +7490,7 @@ const Nh = ({ className: e, ...t }) => {
7490
7490
  }
7491
7491
  )
7492
7492
  ] });
7493
- }, zh = ({
7493
+ }, Mh = ({
7494
7494
  className: e
7495
7495
  }) => {
7496
7496
  const { user: t, getAccessToken: r } = ge(), {
@@ -7574,7 +7574,7 @@ const Nh = ({ className: e, ...t }) => {
7574
7574
  }
7575
7575
  )
7576
7576
  ] });
7577
- }, Mh = ({
7577
+ }, $h = ({
7578
7578
  className: e
7579
7579
  }) => {
7580
7580
  const { getAccessToken: t, user: r } = ge(), {
@@ -7612,7 +7612,7 @@ const Nh = ({ className: e, ...t }) => {
7612
7612
  }
7613
7613
  );
7614
7614
  };
7615
- function $h() {
7615
+ function Zh() {
7616
7616
  const [e, t] = z(
7617
7617
  () => so()
7618
7618
  );
@@ -7626,9 +7626,9 @@ function $h() {
7626
7626
  }
7627
7627
  function so() {
7628
7628
  const e = (/* @__PURE__ */ new Date()).getHours();
7629
- return e >= 5 && e < 12 ? Oa : e >= 12 && e < 17 ? Pa : e >= 17 && e < 21 ? Ra : e >= 21 && e < 24 ? za : go;
7629
+ return e >= 5 && e < 11 ? Oa : e >= 11 && e < 12 ? Pa : e >= 12 && e < 17 ? Ra : e >= 17 && e < 21 ? za : e >= 21 && e < 24 ? Ma : go;
7630
7630
  }
7631
- const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
7631
+ const Dh = [".png", ".jpg", ".jpeg", ".webp"], Lh = [".pdf", ".txt"], Uh = [
7632
7632
  ".js",
7633
7633
  ".cjs",
7634
7634
  ".mjs",
@@ -7643,28 +7643,28 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
7643
7643
  ".json",
7644
7644
  ".md"
7645
7645
  ], We = [
7646
- ...Dh,
7647
7646
  ...Lh,
7648
- ...Zh
7649
- ], Lr = 400 * 1024, Uh = "text/plain", Ht = (e) => {
7647
+ ...Uh,
7648
+ ...Dh
7649
+ ], Lr = 400 * 1024, jh = "text/plain", Ht = (e) => {
7650
7650
  if (e === 0)
7651
7651
  return "0 Bytes";
7652
7652
  const t = 1024, r = ["Bytes", "KB", "MB", "GB"], n = Math.floor(Math.log(e) / Math.log(t));
7653
7653
  return parseFloat((e / Math.pow(t, n)).toFixed(2)) + " " + r[n];
7654
- }, Ws = (e) => e.reduce((t, r) => t + r.size, 0), jh = (e) => e.type ? e : new File(
7654
+ }, Ws = (e) => e.reduce((t, r) => t + r.size, 0), Fh = (e) => e.type ? e : new File(
7655
7655
  [e],
7656
7656
  // Use the original file content
7657
7657
  e.name,
7658
7658
  {
7659
- type: Uh,
7659
+ type: jh,
7660
7660
  lastModified: e.lastModified
7661
7661
  }
7662
- ), Fh = () => De(
7662
+ ), Bh = () => De(
7663
7663
  "relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
7664
- ), Bh = ({ oledMode: e }) => De({
7664
+ ), Vh = ({ oledMode: e }) => De({
7665
7665
  "bg-slate-900/95 dark:bg-slate-900": e,
7666
7666
  "bg-slate-900": !e
7667
- }), Vh = () => De("text-copy-lighter caret-copy-light"), Hh = ({ oledMode: e }) => De(
7667
+ }), Hh = () => De("text-copy-lighter caret-copy-light"), Gh = ({ oledMode: e }) => De(
7668
7668
  "has-[.av-prompt-editable:focus]:outline",
7669
7669
  "has-[.av-prompt-editable:focus]:outline-2",
7670
7670
  "has-[.av-prompt-editable:focus]:outline-offset-2",
@@ -7672,28 +7672,28 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
7672
7672
  "has-[.av-prompt-editable:focus]:outline-focus-light": !e,
7673
7673
  "dark:has-[.av-prompt-editable:focus]:outline-focus-light has-[.av-prompt-editable:focus]:outline-focus-dark": e
7674
7674
  }
7675
- ), Gh = (e) => De(
7675
+ ), Jh = (e) => De(
7676
7676
  "peer",
7677
7677
  "text-base resize-none overflow-hidden w-full text-inherit outline-none",
7678
7678
  "h-6 pr-2 pl-3",
7679
7679
  "placeholder:text-sm",
7680
7680
  e
7681
- ), Jh = ({
7681
+ ), Wh = ({
7682
7682
  oledMode: e,
7683
7683
  placeholderColor: t
7684
7684
  }) => ({
7685
7685
  wrapper: De(
7686
- $a,
7687
- Bh({ oledMode: e }),
7688
- Fh(),
7689
- Vh(),
7690
- Hh({ oledMode: e })
7686
+ Za,
7687
+ Vh({ oledMode: e }),
7688
+ Bh(),
7689
+ Hh(),
7690
+ Gh({ oledMode: e })
7691
7691
  ),
7692
7692
  textArea: De(
7693
- Ma,
7694
- Gh(t)
7693
+ $a,
7694
+ Jh(t)
7695
7695
  )
7696
- }), Wh = ({
7696
+ }), Yh = ({
7697
7697
  files: e,
7698
7698
  clearFile: t
7699
7699
  }) => e && e.length > 0 && /* @__PURE__ */ x("div", { className: "px-4 py-2", children: [
@@ -7732,10 +7732,10 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
7732
7732
  " ",
7733
7733
  Ht(Lr)
7734
7734
  ] })
7735
- ] }), Ys = 24, Yh = 500, qs = 1, qh = 5, Xh = Ys * qs, ao = qh * Ys, Kh = "ready", Qh = "streaming", em = "error", tm = "submitted", Lt = (e) => {
7736
- e.current && (e.current.style.height = `${Xh}px`);
7737
- }, rm = () => {
7738
- const { user: e, getAccessToken: t } = ge(), r = tr(Gt.ADDON.ATTACHMENTS), n = tr(Gt.ADDON.REASONING), { allowedModels: o } = jr(), s = $h(), [i, a] = z(null), [l, c] = z(!1), [p, u] = z(!1), {
7735
+ ] }), Ys = 24, qh = 500, qs = 1, Xh = 5, Kh = Ys * qs, ao = Xh * Ys, Qh = "ready", em = "streaming", tm = "error", rm = "submitted", Lt = (e) => {
7736
+ e.current && (e.current.style.height = `${Kh}px`);
7737
+ }, nm = () => {
7738
+ const { user: e, getAccessToken: t } = ge(), r = tr(Gt.ADDON.ATTACHMENTS), n = tr(Gt.ADDON.REASONING), { allowedModels: o } = jr(), s = Zh(), [i, a] = z(null), [l, c] = z(!1), [p, u] = z(!1), {
7739
7739
  state: { oledMode: y }
7740
7740
  } = q(kt), {
7741
7741
  dispatch: g,
@@ -7748,7 +7748,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
7748
7748
  provider: I,
7749
7749
  privateChat: m
7750
7750
  }
7751
- } = q(Se), { state: E, dispatch: A } = q(Fr), { state: S } = q(vo), { refetch: N } = Za({
7751
+ } = q(Se), { state: E, dispatch: A } = q(Fr), { state: S } = q(vo), { refetch: N } = Da({
7752
7752
  enabled: !1,
7753
7753
  user: e?.username || "",
7754
7754
  searchString: S.searchString,
@@ -7758,7 +7758,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
7758
7758
  }), { data: $ } = Be({
7759
7759
  user: e?.username,
7760
7760
  getAccessToken: t
7761
- }), re = J(null), C = J(null), ee = J(!1), ce = J(0), K = J(null), j = J(null), de = Da(), [He, Nt] = Ee(), lt = Jh({
7761
+ }), re = J(null), C = J(null), ee = J(!1), ce = J(0), K = J(null), j = J(null), de = La(), [He, Nt] = Ee(), lt = Wh({
7762
7762
  oledMode: y,
7763
7763
  placeholderColor: He(Nt.Placeholder)
7764
7764
  }), fe = n && $?.showReasoningButton, { setMessages: ut, status: tt, id: ar, sendMessage: Ot, input: X, setInput: ne } = Ve({
@@ -7814,25 +7814,25 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
7814
7814
  ]
7815
7815
  ), rn = Y(
7816
7816
  async (D) => {
7817
- D === Kh && g({
7817
+ D === Qh && g({
7818
7818
  type: Xe,
7819
7819
  payload: {
7820
7820
  loading: !1,
7821
7821
  streaming: !1
7822
7822
  }
7823
- }), D === tm && g({
7823
+ }), D === rm && g({
7824
7824
  type: Xe,
7825
7825
  payload: {
7826
7826
  loading: !0,
7827
7827
  streaming: !1
7828
7828
  }
7829
- }), D === Qh && g({
7829
+ }), D === em && g({
7830
7830
  type: Xe,
7831
7831
  payload: {
7832
7832
  loading: !1,
7833
7833
  streaming: !0
7834
7834
  }
7835
- }), D === em && setTimeout(() => {
7835
+ }), D === tm && setTimeout(() => {
7836
7836
  v || (g({
7837
7837
  type: Xe,
7838
7838
  payload: {
@@ -7844,7 +7844,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
7844
7844
  {
7845
7845
  id: Oe(),
7846
7846
  role: bt,
7847
- parts: [{ type: "text", text: La }]
7847
+ parts: [{ type: "text", text: Ua }]
7848
7848
  }
7849
7849
  ]));
7850
7850
  }, 1e3);
@@ -7919,7 +7919,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
7919
7919
  let te;
7920
7920
  if (i && i.length > 0) {
7921
7921
  const ze = Array.from(i).map(
7922
- (Pt) => jh(Pt)
7922
+ (Pt) => Fh(Pt)
7923
7923
  ), Ge = new DataTransfer();
7924
7924
  ze.forEach((Pt) => Ge.items.add(Pt)), te = Ge.files;
7925
7925
  }
@@ -7927,7 +7927,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
7927
7927
  headers: {
7928
7928
  "Content-Type": "application/json",
7929
7929
  authorization: `Bearer ${oe}`,
7930
- [ja]: ar
7930
+ [Fa]: ar
7931
7931
  },
7932
7932
  body: {
7933
7933
  reasoning: f
@@ -7961,7 +7961,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
7961
7961
  }
7962
7962
  b > 0 && b !== ce.current ? (ce.current = b, setTimeout(() => {
7963
7963
  j.current && (!X && Lt(j), j.current.focus());
7964
- }, Yh)) : h === !1 && !X && (Lt(j), !Ze() && j.current && j.current.focus());
7964
+ }, qh)) : h === !1 && !X && (Lt(j), !Ze() && j.current && j.current.focus());
7965
7965
  }, [b, h, X]), M(() => {
7966
7966
  E.lastTriggeredTimestamp && setTimeout(() => {
7967
7967
  ir();
@@ -7998,7 +7998,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
7998
7998
  translate: "no",
7999
7999
  onChange: oa,
8000
8000
  value: X,
8001
- onKeyDown: Ua([
8001
+ onKeyDown: ja([
8002
8002
  [p ? "enter" : "mod+Enter", nn]
8003
8003
  ]),
8004
8004
  className: lt.textArea,
@@ -8018,11 +8018,11 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8018
8018
  }
8019
8019
  )
8020
8020
  ] }),
8021
- /* @__PURE__ */ d(Wh, { files: i, clearFile: ra }),
8021
+ /* @__PURE__ */ d(Yh, { files: i, clearFile: ra }),
8022
8022
  /* @__PURE__ */ x("div", { className: "p-2 flex items-center", children: [
8023
- /* @__PURE__ */ d(Mh, { className: "order-7 ml-auto" }),
8023
+ /* @__PURE__ */ d($h, { className: "order-7 ml-auto" }),
8024
8024
  /* @__PURE__ */ d(
8025
- ih,
8025
+ ch,
8026
8026
  {
8027
8027
  className: R("order-1 sm:mr-2", {
8028
8028
  "mr-3": fe,
@@ -8031,7 +8031,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8031
8031
  }
8032
8032
  ),
8033
8033
  /* @__PURE__ */ d(
8034
- Ph,
8034
+ Rh,
8035
8035
  {
8036
8036
  className: R("order-2 sm:mr-2", {
8037
8037
  "mr-3": fe,
@@ -8040,7 +8040,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8040
8040
  }
8041
8041
  ),
8042
8042
  r && /* @__PURE__ */ d(
8043
- ah,
8043
+ ih,
8044
8044
  {
8045
8045
  className: R("order-3 sm:mr-2", {
8046
8046
  "mr-3": fe,
@@ -8049,9 +8049,9 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8049
8049
  onClick: ta
8050
8050
  }
8051
8051
  ),
8052
- fe && /* @__PURE__ */ d(Rh, { className: R("order-4 mr-3 sm:mr-2") }),
8052
+ fe && /* @__PURE__ */ d(zh, { className: R("order-4 mr-3 sm:mr-2") }),
8053
8053
  /* @__PURE__ */ d(
8054
- Ah,
8054
+ Nh,
8055
8055
  {
8056
8056
  className: R("order-5 mr-3 sm:mr-2", {
8057
8057
  "mr-3": fe,
@@ -8059,11 +8059,11 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8059
8059
  })
8060
8060
  }
8061
8061
  ),
8062
- /* @__PURE__ */ d(zh, { className: "order-6" })
8062
+ /* @__PURE__ */ d(Mh, { className: "order-6" })
8063
8063
  ] })
8064
8064
  ] }) })
8065
8065
  ] });
8066
- }, Ut = "--sassy-bottom", nm = ({ isComponent: e }) => {
8066
+ }, Ut = "--sassy-bottom", om = ({ isComponent: e }) => {
8067
8067
  const {
8068
8068
  state: { loading: t, streaming: r, restoring: n }
8069
8069
  } = q(Se), {
@@ -8071,13 +8071,13 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8071
8071
  dispatch: a
8072
8072
  } = q(kt), [l] = z(
8073
8073
  () => an[Math.floor(Math.random() * an.length)]
8074
- ), { messages: c } = Ve(), { height: p } = Fa(), { height: u } = Ba(), [y, g] = _o(), [f, h] = Ee(), v = Ie(() => Ze(), []), b = Ie(() => Va(), []), w = p - u, I = Ie(() => {
8075
- const m = v ? Ha : b ? Ga : bo;
8074
+ ), { messages: c } = Ve(), { height: p } = Ba(), { height: u } = Va(), [y, g] = _o(), [f, h] = Ee(), v = Ie(() => Ze(), []), b = Ie(() => Ha(), []), w = p - u, I = Ie(() => {
8075
+ const m = v ? Ga : b ? Ja : bo;
8076
8076
  return w > 70 && w < 500 ? v ? cn / 2 : cn : m;
8077
8077
  }, [w, v, b]);
8078
8078
  return M(() => {
8079
8079
  o !== g.height && a({
8080
- type: Ja,
8080
+ type: Wa,
8081
8081
  payload: {
8082
8082
  footerHeight: g.height
8083
8083
  }
@@ -8136,10 +8136,10 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8136
8136
  className: R(
8137
8137
  "border-transparent mt-5",
8138
8138
  "bottom-(--sassy-bottom)",
8139
- qf
8139
+ Xf
8140
8140
  ),
8141
8141
  children: /* @__PURE__ */ x("div", { className: kr({ fullScreen: i }), children: [
8142
- /* @__PURE__ */ d(rm, {}),
8142
+ /* @__PURE__ */ d(nm, {}),
8143
8143
  /* @__PURE__ */ d(
8144
8144
  "div",
8145
8145
  {
@@ -8155,28 +8155,28 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8155
8155
  );
8156
8156
  }, Er = [
8157
8157
  {
8158
- id: qa,
8158
+ id: Xa,
8159
8159
  label: "OpenAI",
8160
- icon: Ya
8160
+ icon: qa
8161
8161
  },
8162
8162
  {
8163
- id: Ka,
8163
+ id: Qa,
8164
8164
  label: "Anthropic",
8165
- icon: Xa
8165
+ icon: Ka
8166
8166
  },
8167
8167
  {
8168
- id: ei,
8168
+ id: ti,
8169
8169
  label: "Google Gemini",
8170
- icon: Qa
8170
+ icon: ei
8171
8171
  }
8172
- ], om = ({ className: e }) => {
8172
+ ], sm = ({ className: e }) => {
8173
8173
  const {
8174
8174
  dispatch: t,
8175
8175
  state: { privateChat: r },
8176
8176
  setChatId: n,
8177
8177
  setInitialMessages: o
8178
8178
  } = q(Se), { getAccessToken: s, user: i } = ge(), { status: a } = Ve(), { allowedModels: l, status: c } = jr(), [p, u] = Ee(), [y, g] = z(!1), f = Y(() => {
8179
- y || (Zf(), g(!0));
8179
+ y || (Df(), g(!0));
8180
8180
  }, [y]), {
8181
8181
  isSuccess: h,
8182
8182
  refetch: v,
@@ -8186,7 +8186,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8186
8186
  getAccessToken: s
8187
8187
  }), w = Ie(() => {
8188
8188
  if (ln(l, c)) {
8189
- const C = Wa(l), ee = Er.filter(
8189
+ const C = Ya(l), ee = Er.filter(
8190
8190
  (ce) => C.includes(
8191
8191
  ce.id
8192
8192
  )
@@ -8194,7 +8194,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8194
8194
  return ee.length > 0 ? ee : Er;
8195
8195
  }
8196
8196
  return Er;
8197
- }, [l, c]), I = Ie(() => ln(l, c) ? ti(l) : /* @__PURE__ */ new Map(), [l, c]), m = Ie(() => {
8197
+ }, [l, c]), I = Ie(() => ln(l, c) ? ri(l) : /* @__PURE__ */ new Map(), [l, c]), m = Ie(() => {
8198
8198
  if (!b?.useNestedModelSelection)
8199
8199
  return !1;
8200
8200
  for (const C of I.values())
@@ -8322,80 +8322,80 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8322
8322
  }
8323
8323
  )
8324
8324
  ] }) : /* @__PURE__ */ d("div", { className: e, children: re });
8325
- }, sm = Pe(
8325
+ }, am = Pe(
8326
8326
  () => import(
8327
8327
  /* webpackChunkName: "modal-chunk" */
8328
- "./ProfileEntry.Cq7Qh-4Q.js"
8328
+ "./ProfileEntry.Bxk4Jw5J.js"
8329
8329
  ).then((e) => ({
8330
8330
  default: e.Profile
8331
8331
  }))
8332
- ), am = Pe(
8332
+ ), im = Pe(
8333
8333
  () => import(
8334
8334
  /* webpackChunkName: "modal-chunk" */
8335
- "./SettingsEntry.DltFPOUE.js"
8335
+ "./SettingsEntry.s2mGjfF9.js"
8336
8336
  ).then((e) => ({
8337
8337
  default: e.SettingsPanel
8338
8338
  }))
8339
- ), im = Pe(
8339
+ ), cm = Pe(
8340
8340
  () => import(
8341
8341
  /* webpackChunkName: "modal-chunk" */
8342
- "./HistoryEntry.BOTMN57U.js"
8342
+ "./HistoryEntry.DHffDGPT.js"
8343
8343
  ).then((e) => ({
8344
8344
  default: e.HistoryPanel
8345
8345
  }))
8346
- ), cm = Pe(
8346
+ ), lm = Pe(
8347
8347
  () => import(
8348
8348
  /* webpackChunkName: "modal-chunk" */
8349
- "./AboutEntry.DZHyKc1k.js"
8349
+ "./AboutEntry.BWcnQ5VD.js"
8350
8350
  ).then((e) => ({ default: e.About }))
8351
- ), lm = Pe(
8351
+ ), um = Pe(
8352
8352
  () => import(
8353
8353
  /* webpackChunkName: "modal-chunk" */
8354
- "./UsageEntry.DHNMBIRz.js"
8354
+ "./UsageEntry.DYRbKjav.js"
8355
8355
  ).then((e) => ({ default: e.Usage }))
8356
- ), um = Pe(
8356
+ ), dm = Pe(
8357
8357
  () => import(
8358
8358
  /* webpackChunkName: "modal-chunk" */
8359
- "./UserMemoriesPanel.DmehGDV5.js"
8359
+ "./UserMemoriesPanel.WITflZ_0.js"
8360
8360
  ).then(
8361
8361
  (e) => ({ default: e.default })
8362
8362
  )
8363
- ), dm = ({
8363
+ ), pm = ({
8364
8364
  open: e,
8365
8365
  onOpenChange: t
8366
8366
  }) => {
8367
8367
  const { user: r } = ge();
8368
8368
  return /* @__PURE__ */ d(
8369
- um,
8369
+ dm,
8370
8370
  {
8371
8371
  open: e,
8372
8372
  onOpenChange: t,
8373
8373
  user: r?.username
8374
8374
  }
8375
8375
  );
8376
- }, pm = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ d(Jt, { fallback: /* @__PURE__ */ d("div", {}), children: (() => {
8376
+ }, fm = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ d(Jt, { fallback: /* @__PURE__ */ d("div", {}), children: (() => {
8377
8377
  switch (e) {
8378
8378
  case "profile":
8379
- return /* @__PURE__ */ d(sm, { open: t, onOpenChange: r });
8380
- case "settings":
8381
8379
  return /* @__PURE__ */ d(am, { open: t, onOpenChange: r });
8382
- case "history":
8380
+ case "settings":
8383
8381
  return /* @__PURE__ */ d(im, { open: t, onOpenChange: r });
8384
- case "about":
8382
+ case "history":
8385
8383
  return /* @__PURE__ */ d(cm, { open: t, onOpenChange: r });
8386
- case "usage":
8384
+ case "about":
8387
8385
  return /* @__PURE__ */ d(lm, { open: t, onOpenChange: r });
8386
+ case "usage":
8387
+ return /* @__PURE__ */ d(um, { open: t, onOpenChange: r });
8388
8388
  case "memories":
8389
- return /* @__PURE__ */ d(dm, { open: t, onOpenChange: r });
8389
+ return /* @__PURE__ */ d(pm, { open: t, onOpenChange: r });
8390
8390
  default:
8391
8391
  return null;
8392
8392
  }
8393
- })() }) : null, fm = ({
8393
+ })() }) : null, hm = ({
8394
8394
  isComponent: e = !1
8395
8395
  }) => {
8396
8396
  const {
8397
8397
  state: { oledMode: t }
8398
- } = q(kt), { logout: r, getAccessToken: n, user: o } = ge(), s = ri(), [i, a] = Ee(), { data: l, isSuccess: c } = Be({
8398
+ } = q(kt), { logout: r, getAccessToken: n, user: o } = ge(), s = ni(), [i, a] = Ee(), { data: l, isSuccess: c } = Be({
8399
8399
  user: o?.username,
8400
8400
  getAccessToken: n
8401
8401
  }), [p, u] = z(null), [y, g] = z(!1), [f, h] = z(!1), [v, b] = z(!1), w = tr(Gt.TOOL.MEMORIES);
@@ -8406,23 +8406,23 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8406
8406
  f || Promise.all([
8407
8407
  import(
8408
8408
  /* webpackChunkName: "modal-chunk" */
8409
- "./ProfileEntry.Cq7Qh-4Q.js"
8409
+ "./ProfileEntry.Bxk4Jw5J.js"
8410
8410
  ),
8411
8411
  import(
8412
8412
  /* webpackChunkName: "modal-chunk" */
8413
- "./SettingsEntry.DltFPOUE.js"
8413
+ "./SettingsEntry.s2mGjfF9.js"
8414
8414
  ),
8415
8415
  import(
8416
8416
  /* webpackChunkName: "modal-chunk" */
8417
- "./HistoryEntry.BOTMN57U.js"
8417
+ "./HistoryEntry.DHffDGPT.js"
8418
8418
  ),
8419
8419
  import(
8420
8420
  /* webpackChunkName: "modal-chunk" */
8421
- "./AboutEntry.DZHyKc1k.js"
8421
+ "./AboutEntry.BWcnQ5VD.js"
8422
8422
  ),
8423
8423
  import(
8424
8424
  /* webpackChunkName: "modal-chunk" */
8425
- "./UsageEntry.DHNMBIRz.js"
8425
+ "./UsageEntry.DYRbKjav.js"
8426
8426
  )
8427
8427
  ]).finally(() => h(!0));
8428
8428
  }, [f]), m = Y(($) => {
@@ -8469,7 +8469,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8469
8469
  }
8470
8470
  ),
8471
8471
  /* @__PURE__ */ d(
8472
- pm,
8472
+ fm,
8473
8473
  {
8474
8474
  type: p,
8475
8475
  open: p !== null,
@@ -8491,7 +8491,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8491
8491
  rowGap: 0,
8492
8492
  columnGap: 0,
8493
8493
  children: [
8494
- /* @__PURE__ */ d(at, { children: /* @__PURE__ */ d(om, { className: "mr-2" }) }),
8494
+ /* @__PURE__ */ d(at, { children: /* @__PURE__ */ d(sm, { className: "mr-2" }) }),
8495
8495
  /* @__PURE__ */ d(at, { children: /* @__PURE__ */ d(
8496
8496
  Re,
8497
8497
  {
@@ -8511,7 +8511,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8511
8511
  label: "Settings",
8512
8512
  onMouseEnter: I,
8513
8513
  onFocus: I,
8514
- children: /* @__PURE__ */ d(ui, { className: i(a.Header) })
8514
+ children: /* @__PURE__ */ d(di, { className: i(a.Header) })
8515
8515
  }
8516
8516
  ),
8517
8517
  defaultPlacement: "bottom-end",
@@ -8521,7 +8521,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8521
8521
  {
8522
8522
  label: "Profile",
8523
8523
  onClick: () => m("profile"),
8524
- icon: /* @__PURE__ */ d(ni, {})
8524
+ icon: /* @__PURE__ */ d(oi, {})
8525
8525
  }
8526
8526
  ),
8527
8527
  /* @__PURE__ */ d(
@@ -8529,7 +8529,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8529
8529
  {
8530
8530
  label: "Settings",
8531
8531
  onClick: () => m("settings"),
8532
- icon: /* @__PURE__ */ d(oi, {})
8532
+ icon: /* @__PURE__ */ d(si, {})
8533
8533
  }
8534
8534
  ),
8535
8535
  /* @__PURE__ */ d(
@@ -8537,7 +8537,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8537
8537
  {
8538
8538
  label: "History",
8539
8539
  onClick: () => m("history"),
8540
- icon: /* @__PURE__ */ d(si, {})
8540
+ icon: /* @__PURE__ */ d(ai, {})
8541
8541
  }
8542
8542
  ),
8543
8543
  v && /* @__PURE__ */ d(
@@ -8545,7 +8545,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8545
8545
  {
8546
8546
  label: "Memories",
8547
8547
  onClick: () => m("memories"),
8548
- icon: /* @__PURE__ */ d(ai, {})
8548
+ icon: /* @__PURE__ */ d(ii, {})
8549
8549
  }
8550
8550
  ),
8551
8551
  !e && /* @__PURE__ */ d(
@@ -8553,7 +8553,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8553
8553
  {
8554
8554
  label: "Usage",
8555
8555
  onClick: () => m("usage"),
8556
- icon: /* @__PURE__ */ d(ii, {})
8556
+ icon: /* @__PURE__ */ d(ci, {})
8557
8557
  }
8558
8558
  ),
8559
8559
  /* @__PURE__ */ d(
@@ -8561,17 +8561,17 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8561
8561
  {
8562
8562
  label: "About",
8563
8563
  onClick: () => m("about"),
8564
- icon: /* @__PURE__ */ d(ci, {})
8564
+ icon: /* @__PURE__ */ d(li, {})
8565
8565
  }
8566
8566
  ),
8567
8567
  !e && /* @__PURE__ */ x(Ne, { children: [
8568
- /* @__PURE__ */ d(Nh, {}),
8568
+ /* @__PURE__ */ d(Oh, {}),
8569
8569
  /* @__PURE__ */ d(
8570
8570
  we,
8571
8571
  {
8572
8572
  label: "Log out",
8573
8573
  onClick: S,
8574
- icon: /* @__PURE__ */ d("div", { className: "text-red-700", children: /* @__PURE__ */ d(li, { monotone: !0 }) })
8574
+ icon: /* @__PURE__ */ d("div", { className: "text-red-700", children: /* @__PURE__ */ d(ui, { monotone: !0 }) })
8575
8575
  }
8576
8576
  )
8577
8577
  ] })
@@ -8586,7 +8586,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8586
8586
  }
8587
8587
  )
8588
8588
  ] });
8589
- }, hm = ({
8589
+ }, mm = ({
8590
8590
  show: e,
8591
8591
  bottom: t,
8592
8592
  onClick: r,
@@ -8597,7 +8597,7 @@ const Zh = [".png", ".jpg", ".jpeg", ".webp"], Dh = [".pdf", ".txt"], Lh = [
8597
8597
  {
8598
8598
  style: { bottom: `${t}px` },
8599
8599
  className: n || R(
8600
- Xf,
8600
+ Kf,
8601
8601
  "fixed left-1/2 transform -translate-x-1/2 isolate"
8602
8602
  ),
8603
8603
  children: /* @__PURE__ */ d(
@@ -8691,21 +8691,21 @@ const io = "av-spinner", Xs = ({ spinnerRef: e, mode: t = "system", type: r = "c
8691
8691
  })
8692
8692
  ]
8693
8693
  });
8694
- }, mm = Pe(
8695
- () => import("./index.CgF3a0dP.js").then((e) => ({ default: e.Bubble }))
8696
- ), tn = (e) => /* @__PURE__ */ d(Jt, { fallback: /* @__PURE__ */ d("span", { className: "inline-block" }), children: /* @__PURE__ */ d(mm, { ...e }) });
8694
+ }, gm = Pe(
8695
+ () => import("./index.DbLUR666.js").then((e) => ({ default: e.Bubble }))
8696
+ ), tn = (e) => /* @__PURE__ */ d(Jt, { fallback: /* @__PURE__ */ d("span", { className: "inline-block" }), children: /* @__PURE__ */ d(gm, { ...e }) });
8697
8697
  tn.displayName = "AsyncBubble";
8698
- const co = 1, gm = 150, vm = Pe(
8698
+ const co = 1, vm = 150, ym = Pe(
8699
8699
  () => import(
8700
8700
  /* webpackChunkName: "LazyMessageAssistant" */
8701
- "./ChatBubbleAssistant.BOi4Bwy2.js"
8701
+ "./ChatBubbleAssistant.BTqSD26w.js"
8702
8702
  )
8703
- ), ym = Pe(
8703
+ ), _m = Pe(
8704
8704
  () => import(
8705
8705
  /* webpackChunkName: "LazyMessageUser" */
8706
- "./ChatBubbleUser.CCECeH9j.js"
8706
+ "./ChatBubbleUser.Dh3_Mt0e.js"
8707
8707
  )
8708
- ), _m = Eo.memo(
8708
+ ), bm = Eo.memo(
8709
8709
  ({
8710
8710
  role: e,
8711
8711
  content: t,
@@ -8719,7 +8719,7 @@ const co = 1, gm = 150, vm = Pe(
8719
8719
  );
8720
8720
  return M(() => {
8721
8721
  if (o && i && t && t.trim().length >= co) {
8722
- const u = Date.now() - l.current, y = gm - u;
8722
+ const u = Date.now() - l.current, y = vm - u;
8723
8723
  if (y > 0) {
8724
8724
  const g = setTimeout(
8725
8725
  () => a(!1),
@@ -8729,8 +8729,8 @@ const co = 1, gm = 150, vm = Pe(
8729
8729
  }
8730
8730
  a(!1);
8731
8731
  }
8732
- }, [t, i, o]), e === wo && t ? /* @__PURE__ */ d(Jt, { fallback: /* @__PURE__ */ d("span", {}), children: /* @__PURE__ */ d(ym, { content: t }) }) : (e === bt || e === fn) && o && (s === "submitted" || s === "streaming") && i ? /* @__PURE__ */ d(tn, { tail: !0, children: /* @__PURE__ */ d(Xs, { type: "dots" }) }) : (e === bt || e === fn) && t && t.trim().length >= co ? /* @__PURE__ */ d(Jt, { fallback: /* @__PURE__ */ d("span", {}), children: /* @__PURE__ */ d(
8733
- vm,
8732
+ }, [t, i, o]), e === wo && t ? /* @__PURE__ */ d(Jt, { fallback: /* @__PURE__ */ d("span", {}), children: /* @__PURE__ */ d(_m, { content: t }) }) : (e === bt || e === fn) && o && (s === "submitted" || s === "streaming") && i ? /* @__PURE__ */ d(tn, { tail: !0, children: /* @__PURE__ */ d(Xs, { type: "dots" }) }) : (e === bt || e === fn) && t && t.trim().length >= co ? /* @__PURE__ */ d(Jt, { fallback: /* @__PURE__ */ d("span", {}), children: /* @__PURE__ */ d(
8733
+ ym,
8734
8734
  {
8735
8735
  role: e,
8736
8736
  content: t,
@@ -8741,7 +8741,7 @@ const co = 1, gm = 150, vm = Pe(
8741
8741
  }
8742
8742
  ) }) : null;
8743
8743
  }
8744
- ), bm = (e) => {
8744
+ ), wm = (e) => {
8745
8745
  if (e.parts && Array.isArray(e.parts)) {
8746
8746
  const t = e.parts.filter((r) => r.type === "text").map((r) => r.text).filter(Boolean);
8747
8747
  return t.length > 0 ? t.join(`
@@ -8750,7 +8750,7 @@ const co = 1, gm = 150, vm = Pe(
8750
8750
  if ("content" in e && typeof e.content == "string")
8751
8751
  return e.content;
8752
8752
  };
8753
- function wm(e) {
8753
+ function Im(e) {
8754
8754
  const t = e.metadata;
8755
8755
  if (t?.model)
8756
8756
  return { model: String(t.model) };
@@ -8764,14 +8764,14 @@ function wm(e) {
8764
8764
  }
8765
8765
  }
8766
8766
  }
8767
- const Im = () => {
8767
+ const Em = () => {
8768
8768
  const { messages: e, status: t } = Ve(), r = e ? e.map((s, i) => s.role === bt ? i : -1).filter((s) => s !== -1).pop() : -1, n = e && e.length > 0 ? e[e.length - 1] : null, o = (t === "submitted" || t === "streaming") && n?.role === wo;
8769
8769
  return e && e.length > 0 ? /* @__PURE__ */ x("div", { className: "space-y-6 mt-2 @container", children: [
8770
8770
  e?.map((s, i) => {
8771
8771
  let a;
8772
- const l = `${i}-${s.role}`, c = bm(s), p = wm(s), u = s.role === bt && i === r;
8772
+ const l = `${i}-${s.role}`, c = wm(s), p = Im(s), u = s.role === bt && i === r;
8773
8773
  return /* @__PURE__ */ d(
8774
- _m,
8774
+ bm,
8775
8775
  {
8776
8776
  role: s.role,
8777
8777
  content: c,
@@ -8785,16 +8785,16 @@ const Im = () => {
8785
8785
  }),
8786
8786
  o && /* @__PURE__ */ d(tn, { tail: !0, children: /* @__PURE__ */ d(Xs, { type: "dots" }) })
8787
8787
  ] }) : null;
8788
- }, Em = () => {
8789
- const { isAuthenticated: e } = ge(), { ref: t, inViewport: r } = di(), n = J(null), o = J(null), {
8788
+ }, Tm = () => {
8789
+ const { isAuthenticated: e } = ge(), { ref: t, inViewport: r } = pi(), n = J(null), o = J(null), {
8790
8790
  state: { footerPosition: s, footerHeight: i, footerOffset: a, oledMode: l }
8791
8791
  } = q(kt), {
8792
8792
  state: { loading: c }
8793
- } = q(Se), { messages: p } = Ve(), u = J(0), { data: y, isSuccess: g } = pi(), f = fi({
8793
+ } = q(Se), { messages: p } = Ve(), u = J(0), { data: y, isSuccess: g } = fi(), f = hi({
8794
8794
  isAuthenticated: e,
8795
8795
  oledMode: l,
8796
8796
  extraClass: "rounded-b-md relative border-b-16 border-transparent"
8797
- }), h = gi() ? "mt-4" : "", v = Y(() => {
8797
+ }), h = vi() ? "mt-4" : "", v = Y(() => {
8798
8798
  o.current && o.current.scrollIntoView({
8799
8799
  behavior: "smooth",
8800
8800
  block: "end"
@@ -8803,18 +8803,18 @@ const Im = () => {
8803
8803
  return M(() => {
8804
8804
  c && v();
8805
8805
  }, [c, v]), M(() => {
8806
- u.current = s === vt ? i + a + Io + hi + 15 : 0;
8806
+ u.current = s === vt ? i + a + Io + mi + 15 : 0;
8807
8807
  }, [s, i, a]), /* @__PURE__ */ x(Ne, { children: [
8808
8808
  /* @__PURE__ */ x("div", { className: f, ref: n, children: [
8809
8809
  /* @__PURE__ */ d(
8810
- mi,
8810
+ gi,
8811
8811
  {
8812
8812
  className: h,
8813
8813
  isCapabilitiesSuccess: g,
8814
8814
  capabilities: y
8815
8815
  }
8816
8816
  ),
8817
- /* @__PURE__ */ d(Im, {}),
8817
+ /* @__PURE__ */ d(Em, {}),
8818
8818
  /* @__PURE__ */ d("div", { ref: t, className: "scroll-marker" }),
8819
8819
  /* @__PURE__ */ d(
8820
8820
  "div",
@@ -8827,7 +8827,7 @@ const Im = () => {
8827
8827
  )
8828
8828
  ] }),
8829
8829
  /* @__PURE__ */ d(
8830
- hm,
8830
+ mm,
8831
8831
  {
8832
8832
  show: !r && s === vt,
8833
8833
  bottom: u.current,
@@ -8841,22 +8841,22 @@ function Ks({
8841
8841
  headerHeight: t = 0
8842
8842
  }) {
8843
8843
  const { user: r, getAccessToken: n } = ge(), [o, s] = z(`${hn}px`), [i, a] = _o(), [l, c] = z(Oe()), [p, u] = z([]), [y] = xe({
8844
- key: $e + xi,
8844
+ key: $e + Ai,
8845
8845
  initialValue: ""
8846
8846
  }), [g] = xe({
8847
- key: $e + Ci,
8847
+ key: $e + xi,
8848
8848
  initialValue: mn
8849
8849
  }), [f] = xe({
8850
- key: $e + Oi,
8850
+ key: $e + Pi,
8851
8851
  initialValue: gt.DESC
8852
8852
  }), [h] = xe({
8853
- key: $e + Pi,
8853
+ key: $e + Ri,
8854
8854
  initialValue: gt.ASC
8855
8855
  }), [v] = xe({
8856
- key: Ai,
8856
+ key: Ni,
8857
8857
  initialValue: !1
8858
8858
  }), [b] = xe({
8859
- key: Ni,
8859
+ key: Oi,
8860
8860
  initialValue: !1
8861
8861
  }), w = Ie(() => ({
8862
8862
  footerPosition: Sr,
@@ -8864,8 +8864,8 @@ function Ks({
8864
8864
  footerOffset: Ze() ? bo : 0,
8865
8865
  oledMode: !1,
8866
8866
  fullScreen: !1,
8867
- themeMode: vi
8868
- }), []), [I, m] = Rt(yi, w), E = Ie(() => {
8867
+ themeMode: yi
8868
+ }), []), [I, m] = Rt(_i, w), E = Ie(() => {
8869
8869
  const de = Ze(), He = fo();
8870
8870
  return de && He ? "mt-1" : "mt-5";
8871
8871
  }, []), S = {
@@ -8873,7 +8873,7 @@ function Ks({
8873
8873
  sortedCell: g,
8874
8874
  sortDirection: (() => {
8875
8875
  switch (g) {
8876
- case ki:
8876
+ case Ci:
8877
8877
  return h;
8878
8878
  case mn:
8879
8879
  default:
@@ -8881,12 +8881,12 @@ function Ks({
8881
8881
  }
8882
8882
  })()
8883
8883
  }, [N, $] = Rt(
8884
- Lf,
8884
+ Uf,
8885
8885
  S
8886
- ), [re, C] = Rt(Uf, {
8886
+ ), [re, C] = Rt(jf, {
8887
8887
  prompt: "",
8888
8888
  lastTriggeredTimestamp: 0
8889
- }), [ee, ce] = Rt(Df, {
8889
+ }), [ee, ce] = Rt(Lf, {
8890
8890
  provider: "",
8891
8891
  // OpenAI, Anthropic, etc.
8892
8892
  privateChat: !1,
@@ -8909,7 +8909,7 @@ function Ks({
8909
8909
  username: r?.username
8910
8910
  }
8911
8911
  }), [r?.username]);
8912
- return Yf({
8912
+ return qf({
8913
8913
  currentChatId: l,
8914
8914
  setChatId: c,
8915
8915
  setInitialMessages: u,
@@ -8917,21 +8917,21 @@ function Ks({
8917
8917
  }), M(() => {
8918
8918
  document.getElementById("root")?.classList.replace("app-hidden", "fadeIn");
8919
8919
  }, []), M(() => {
8920
- _i(v), m({
8921
- type: bi,
8920
+ bi(v), m({
8921
+ type: wi,
8922
8922
  payload: { oledMode: v }
8923
8923
  });
8924
8924
  }, [v]), M(() => {
8925
8925
  m({
8926
- type: wi,
8926
+ type: Ii,
8927
8927
  payload: { fullScreen: b }
8928
8928
  });
8929
8929
  }, [b]), M(() => {
8930
8930
  K?.themeMode && m({
8931
- type: Ii,
8931
+ type: Ei,
8932
8932
  payload: { themeMode: K.themeMode }
8933
8933
  }), K?.themePalette && m({
8934
- type: Ei,
8934
+ type: Ti,
8935
8935
  payload: { themePalette: K.themePalette }
8936
8936
  });
8937
8937
  }, [K]), M(() => {
@@ -8944,7 +8944,7 @@ function Ks({
8944
8944
  }, [K]), M(() => {
8945
8945
  try {
8946
8946
  const de = sessionStorage.getItem("sw-toggle-pending");
8947
- de && (de === "enabled" ? Tt(Ri, { containerId: "toggle-save" }) : de === "disabled" && Tt(zi, {
8947
+ de && (de === "enabled" ? Tt(zi, { containerId: "toggle-save" }) : de === "disabled" && Tt(Mi, {
8948
8948
  containerId: "toggle-save"
8949
8949
  }), sessionStorage.removeItem("sw-toggle-pending"));
8950
8950
  } catch {
@@ -8957,7 +8957,7 @@ function Ks({
8957
8957
  );
8958
8958
  } else
8959
8959
  s(
8960
- Ze() ? `${Ti}px` : `${hn}px`
8960
+ Ze() ? `${Si}px` : `${hn}px`
8961
8961
  );
8962
8962
  }, [I, a, t, E]), /* @__PURE__ */ d(
8963
8963
  vo.Provider,
@@ -8980,7 +8980,7 @@ function Ks({
8980
8980
  setInitialMessages: u
8981
8981
  },
8982
8982
  children: /* @__PURE__ */ x(
8983
- Jf,
8983
+ Wf,
8984
8984
  {
8985
8985
  value: {
8986
8986
  id: l,
@@ -8992,8 +8992,8 @@ function Ks({
8992
8992
  }
8993
8993
  },
8994
8994
  children: [
8995
- /* @__PURE__ */ d(Wf, { chatId: l }),
8996
- /* @__PURE__ */ x("div", { className: Si, children: [
8995
+ /* @__PURE__ */ d(Yf, { chatId: l }),
8996
+ /* @__PURE__ */ x("div", { className: ki, children: [
8997
8997
  /* @__PURE__ */ d(eo, { containerId: "toggle-save" }),
8998
8998
  /* @__PURE__ */ d(eo, { containerId: "toggle-provider" })
8999
8999
  ] }),
@@ -9005,7 +9005,7 @@ function Ks({
9005
9005
  extraClass: E,
9006
9006
  fullScreen: b
9007
9007
  }),
9008
- children: /* @__PURE__ */ d(fm, { isComponent: e })
9008
+ children: /* @__PURE__ */ d(hm, { isComponent: e })
9009
9009
  }
9010
9010
  ),
9011
9011
  /* @__PURE__ */ d(
@@ -9015,10 +9015,10 @@ function Ks({
9015
9015
  style: {
9016
9016
  height: o
9017
9017
  },
9018
- children: /* @__PURE__ */ d(Em, {})
9018
+ children: /* @__PURE__ */ d(Tm, {})
9019
9019
  }
9020
9020
  ),
9021
- /* @__PURE__ */ d(nm, { isComponent: e })
9021
+ /* @__PURE__ */ d(om, { isComponent: e })
9022
9022
  ]
9023
9023
  }
9024
9024
  )
@@ -9030,22 +9030,22 @@ function Ks({
9030
9030
  );
9031
9031
  }
9032
9032
  Ks.displayName = "App";
9033
- const Om = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Ks }, Symbol.toStringTag, { value: "Module" }));
9033
+ const Pm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Ks }, Symbol.toStringTag, { value: "Module" }));
9034
9034
  export {
9035
- Om as App,
9035
+ Pm as App,
9036
9036
  tn as AsyncBubble,
9037
- hm as ButtonScroll,
9037
+ mm as ButtonScroll,
9038
9038
  Fe as CHAT_RESET,
9039
9039
  it as CHAT_SET_ATTACHMENTS,
9040
9040
  Xe as CHAT_SET_STATUS,
9041
9041
  Ke as ConfirmationPanel,
9042
9042
  eo as LazyToastContainerWrapper,
9043
- yh as Panel,
9044
- xh as Toggle,
9043
+ _h as Panel,
9044
+ Ah as Toggle,
9045
9045
  Re as Tooltip,
9046
- af as getDefaultExportFromCjs,
9047
- Zf as preloadToast,
9048
- Nm as showErrorToast,
9046
+ cf as getDefaultExportFromCjs,
9047
+ Df as preloadToast,
9048
+ Om as showErrorToast,
9049
9049
  Tt as showSuccessToast,
9050
9050
  Ve as useAiChat,
9051
9051
  tr as useCapability,