@versini/sassysaint 8.59.0 → 8.59.2

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 (25) hide show
  1. package/dist/chunks/{AboutChangelog.VIMWfrJ2.js → AboutChangelog.A7bXFMMy.js} +2 -2
  2. package/dist/chunks/{AboutEntry.HhBVaghX.js → AboutEntry.b_kqTZCs.js} +5 -5
  3. package/dist/chunks/{App.DFkumxrG.js → App.D0aOgtFn.js} +248 -241
  4. package/dist/chunks/{Chart.DyiU5Qev.js → Chart.BPcC00zA.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.a1OalMkY.js → ChatBubbleAssistant.C1BFw-DK.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.DP50erQL.js → ChatBubbleUser.YKrCcbAs.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.9NfCFVTm.js → ChatHistoryTable.Be4ifAuB.js} +3 -3
  8. package/dist/chunks/{HistoryEntry.Dz-6Alzn.js → HistoryEntry.B9VTJmQc.js} +3 -3
  9. package/dist/chunks/{ProfileEntry.DJ4q6KoG.js → ProfileEntry.BdZ3Nw-T.js} +2 -2
  10. package/dist/chunks/{SettingsEntry.Cc0vofff.js → SettingsEntry.DoUYaXXF.js} +3 -3
  11. package/dist/chunks/{Table.CGJz3l0P.js → Table.DJKlNFMW.js} +2 -2
  12. package/dist/chunks/{UsageEntry.B6zt1DS_.js → UsageEntry.zOyDZDbJ.js} +3 -3
  13. package/dist/chunks/{UserMemoriesPanel.C2262GRv.js → UserMemoriesPanel.Htx88Kv8.js} +5 -4
  14. package/dist/chunks/{index.en8Vui5r.js → index.B-QAEEBf.js} +1 -1
  15. package/dist/chunks/{index.DXesyWpt.js → index.CdpJUQCj.js} +1 -1
  16. package/dist/chunks/{index.CGcokH1z.js → index.DFOpvjvm.js} +3 -3
  17. package/dist/chunks/{index.6QVNoWZY.js → index.DJyjGvYW.js} +7 -7
  18. package/dist/chunks/{index.D69nnw0C.js → index.DttonLOB.js} +1 -1
  19. package/dist/chunks/{index.CV96FPnP.js → index.F_LYr1tN.js} +1 -1
  20. package/dist/chunks/{index.BlzmTlvN.js → index.yvorDOrO.js} +2 -2
  21. package/dist/chunks/{useMarkdown.DRQL-Q_k.js → useMarkdown.CctWVKT9.js} +6 -6
  22. package/dist/components/SassySaint/SassySaint.js +1 -1
  23. package/dist/index.js +4 -4
  24. package/dist/style.css +1 -1
  25. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  import { jsx as l, jsxs as x, Fragment as Oe } from "react/jsx-runtime";
2
- import { I as G, ACTION_SORT as Xa, ACTION_SEARCH as Qa, ACTION_RESET_PROMPT as eo, ACTION_TOGGLE_PROMPT as to, oe as Ka, te as ve, DEFAULT_ICON_ACTION_SIZE as we, isTauri as Ut, n as Ee, isProbablyiPhone as Ae, serverUrl as ro, useEntitlements as es, L as wr, j as Xe, C as Kr, LOCAL_STORAGE_PREFIX as Qe, LOCAL_STORAGE_PRIVATE_DISCLOSURE as ts, Re as Bt, useUserPreferences as Kt, LOCAL_STORAGE_REASONING_DISCLOSURE as rs, useChatsHistory as no, mutateCall as ns, SERVICE_TYPES as os, TOAST_CHAT_SAVED as as, PROMPT_CLASSNAME as ss, PROMPT_EDITABLE_AREA_CLASSNAME as is, i as cs, ERROR_MESSAGE as ls, c as mt, CLIPBOARD_PROMPT as en, INPUT_PLACEHOLDER_TEXT_MOBILE as tn, INPUT_PLACEHOLDER_TEXT_ENTER as rn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as nn, isProbablyMobile as Ir, Ae as us, FOOTER_DISCLAIMERS as on, h as oo, isProbablyiPad as ds, INPUT_BOTTOM_OFFSET_EXTRA as an, INPUT_BOTTOM_OFFSET_IPHONE as ps, INPUT_BOTTOM_OFFSET_IPAD as ms, INPUT_BOTTOM_OFFSET as ao, getLayoutPaddingClass as Er, i$1 as hs, E as fs, y as gs, setNewProvider as vs, TOAST_PROVIDER_CHANGED as ys, LOG_OUT as sn, a as so, ne as cn, useServerCapabilities as _s, getMessageContaintWrapperClass as bs, UI_FOOTER_BUFFER as io, UI_BUTTON_SCROLL_BUFFER as ws, Logo as Is, UI_DEFAULT_MAIN_HEIGHT as ln, isPWAMode as Es, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Ts, APP_CLASSNAME as Ss, de as un, Oe as xs, LOCAL_STORAGE_SORT as ks, LOCAL_STORAGE_SEARCH as Cs, LOCAL_STORAGE_SORT_TIMESTAMP as Ns, LOCAL_STORAGE_SORT_TOKEN_USAGE as zs, TOAST_CACHE_ENABLED as As, TOAST_CACHE_DISABLED as Os } from "./index.6QVNoWZY.js";
2
+ import { I as G, ACTION_SORT as Xa, ACTION_SEARCH as Qa, ACTION_RESET_PROMPT as eo, ACTION_TOGGLE_PROMPT as to, oe as Ka, te as ve, DEFAULT_ICON_ACTION_SIZE as we, isTauri as Bt, n as Ee, isProbablyiPhone as Ae, serverUrl as ro, useEntitlements as es, L as wr, j as Xe, C as Kr, LOCAL_STORAGE_PREFIX as Qe, LOCAL_STORAGE_PRIVATE_DISCLOSURE as ts, fe as jt, useUserPreferences as _t, LOCAL_STORAGE_REASONING_DISCLOSURE as rs, useChatsHistory as no, mutateCall as ns, SERVICE_TYPES as os, TOAST_CHAT_SAVED as as, PROMPT_CLASSNAME as ss, PROMPT_EDITABLE_AREA_CLASSNAME as is, i as cs, ERROR_MESSAGE as ls, c as mt, CLIPBOARD_PROMPT as en, INPUT_PLACEHOLDER_TEXT_MOBILE as tn, INPUT_PLACEHOLDER_TEXT_ENTER as rn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as nn, isProbablyMobile as Ir, ue as us, FOOTER_DISCLAIMERS as on, h as oo, isProbablyiPad as ds, INPUT_BOTTOM_OFFSET_EXTRA as an, INPUT_BOTTOM_OFFSET_IPHONE as ps, INPUT_BOTTOM_OFFSET_IPAD as ms, INPUT_BOTTOM_OFFSET as ao, getLayoutPaddingClass as Er, i$1 as hs, E as fs, y as gs, setNewProvider as vs, TOAST_PROVIDER_CHANGED as ys, LOG_OUT as sn, a as so, ne as cn, useServerCapabilities as _s, getMessageContaintWrapperClass as bs, UI_FOOTER_BUFFER as io, UI_BUTTON_SCROLL_BUFFER as ws, Logo as Is, UI_DEFAULT_MAIN_HEIGHT as ln, isPWAMode as Es, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Ts, APP_CLASSNAME as Ss, Oe as un, le as xs, LOCAL_STORAGE_SORT as ks, LOCAL_STORAGE_SEARCH as Cs, LOCAL_STORAGE_SORT_TIMESTAMP as Ns, LOCAL_STORAGE_SORT_TOKEN_USAGE as zs, TOAST_CACHE_ENABLED as As, TOAST_CACHE_DISABLED as Os } from "./index.DJyjGvYW.js";
3
3
  import * as ae from "react";
4
- import at, { useRef as J, useEffect as M, useState as P, useCallback as B, useSyncExternalStore as $t, createContext as Ms, useContext as te, useId as co, forwardRef as lo, useMemo as rt, Suspense as jt, lazy as Te, useReducer as St, useLayoutEffect as $s } from "react";
4
+ import at, { useRef as J, useEffect as M, useState as $, useCallback as B, useSyncExternalStore as Pt, createContext as Ms, useContext as te, useId as co, forwardRef as lo, useMemo as rt, Suspense as Vt, lazy as Te, useReducer as xt, useLayoutEffect as $s } from "react";
5
5
  import O from "clsx";
6
6
  import { computePosition as Ps, offset as uo, flip as po, shift as mo, arrow as Rs, useMergeRefs as $r, FloatingPortal as ho, FloatingOverlay as Zs, FloatingFocusManager as fo, useFloating as go, useClick as vo, useDismiss as yo, useRole as _o, useInteractions as bo, FloatingTree as Ds, useFloatingTree as wo, useFloatingNodeId as Ls, useListItem as Io, autoUpdate as Us, useListNavigation as Bs, useTypeahead as js, FloatingNode as Vs, FloatingList as Fs } from "@floating-ui/react";
7
7
  const dn = ["mousedown", "touchstart"];
@@ -77,7 +77,7 @@ function Pr(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
77
77
  }, [e, t, r]);
78
78
  }
79
79
  function Ys(e, t) {
80
- const [r, n] = P(!1), o = J(null), a = J(null), i = B(() => {
80
+ const [r, n] = $(!1), o = J(null), a = J(null), i = B(() => {
81
81
  n((u) => (!u && (!o.current || o.current === -1) && (o.current = window.setInterval(a.current, t)), !0));
82
82
  }, [t]), s = B(() => {
83
83
  n(!1), window.clearInterval(o.current || -1), o.current = -1;
@@ -85,7 +85,7 @@ function Ys(e, t) {
85
85
  return M(() => (a.current = e, r && i(), s), [e, r, i, s]), { start: i, stop: s, active: r };
86
86
  }
87
87
  function Xs() {
88
- const e = J(null), [t, r] = P(!1);
88
+ const e = J(null), [t, r] = $(!1);
89
89
  return { ref: B((n) => {
90
90
  typeof IntersectionObserver < "u" && (n && !e.current ? e.current = new IntersectionObserver(
91
91
  (o) => r(o.some((a) => a.isIntersecting))
@@ -107,7 +107,7 @@ function Ke({
107
107
  key: e,
108
108
  initialValue: t
109
109
  }) {
110
- const r = $t(Ks, () => mn(e)), n = B(
110
+ const r = Pt(Ks, () => mn(e)), n = B(
111
111
  (i) => {
112
112
  try {
113
113
  const s = typeof i == "function" ? i(JSON.parse(r)) : i;
@@ -136,7 +136,7 @@ function hn(e, t) {
136
136
  }), () => window.removeEventListener(e, t)), [e, t]);
137
137
  }
138
138
  function ei() {
139
- const [e, t] = P({
139
+ const [e, t] = $({
140
140
  width: 0,
141
141
  height: 0
142
142
  }), r = B(() => {
@@ -148,7 +148,7 @@ function ei() {
148
148
  return hn("resize", r), hn("orientationchange", r), M(r, []), e;
149
149
  }
150
150
  function ti() {
151
- const [e, t] = P({
151
+ const [e, t] = $({
152
152
  width: 0,
153
153
  height: 0
154
154
  }), r = B(() => {
@@ -840,7 +840,7 @@ Error message: ${Co(r)}`,
840
840
  }
841
841
  };
842
842
  Zo = Ai;
843
- var Vt = Oi;
843
+ var Ft = Oi;
844
844
  class gn extends Error {
845
845
  constructor(t, r) {
846
846
  super(t), this.name = "ParseError", this.type = r.type, this.field = r.field, this.value = r.value, this.line = r.line;
@@ -1045,7 +1045,7 @@ function Z(e, t, r) {
1045
1045
  configurable: !0
1046
1046
  });
1047
1047
  }
1048
- function _t(e, t, r) {
1048
+ function bt(e, t, r) {
1049
1049
  Object.defineProperty(e, t, {
1050
1050
  value: r,
1051
1051
  writable: !0,
@@ -1058,7 +1058,7 @@ function st(e) {
1058
1058
  }
1059
1059
  const Uo = Error.captureStackTrace ? Error.captureStackTrace : (...e) => {
1060
1060
  };
1061
- function Ft(e) {
1061
+ function Ht(e) {
1062
1062
  return typeof e == "object" && e !== null && !Array.isArray(e);
1063
1063
  }
1064
1064
  const Di = Rr(() => {
@@ -1071,17 +1071,17 @@ const Di = Rr(() => {
1071
1071
  return !1;
1072
1072
  }
1073
1073
  });
1074
- function Ht(e) {
1075
- if (Ft(e) === !1)
1074
+ function Jt(e) {
1075
+ if (Ht(e) === !1)
1076
1076
  return !1;
1077
1077
  const t = e.constructor;
1078
1078
  if (t === void 0)
1079
1079
  return !0;
1080
1080
  const r = t.prototype;
1081
- return !(Ft(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
1081
+ return !(Ht(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
1082
1082
  }
1083
1083
  const Li = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
1084
- function bt(e) {
1084
+ function wt(e) {
1085
1085
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1086
1086
  }
1087
1087
  function je(e, t, r) {
@@ -1138,13 +1138,13 @@ function Vi(e, t) {
1138
1138
  });
1139
1139
  }
1140
1140
  function Fi(e, t) {
1141
- if (!Ht(t))
1141
+ if (!Jt(t))
1142
1142
  throw new Error("Invalid input to extend: expected a plain object");
1143
1143
  const r = {
1144
1144
  ...e._zod.def,
1145
1145
  get shape() {
1146
1146
  const n = { ...e._zod.def.shape, ...t };
1147
- return _t(this, "shape", n), n;
1147
+ return bt(this, "shape", n), n;
1148
1148
  },
1149
1149
  checks: []
1150
1150
  // delete existing checks
@@ -1156,7 +1156,7 @@ function Hi(e, t) {
1156
1156
  ...e._zod.def,
1157
1157
  get shape() {
1158
1158
  const r = { ...e._zod.def.shape, ...t._zod.def.shape };
1159
- return _t(this, "shape", r), r;
1159
+ return bt(this, "shape", r), r;
1160
1160
  },
1161
1161
  catchall: t._zod.def.catchall,
1162
1162
  checks: []
@@ -1222,13 +1222,13 @@ function Ue(e, t) {
1222
1222
  return (n = r).path ?? (n.path = []), r.path.unshift(e), r;
1223
1223
  });
1224
1224
  }
1225
- function xt(e) {
1225
+ function kt(e) {
1226
1226
  return typeof e == "string" ? e : e?.message;
1227
1227
  }
1228
1228
  function Pe(e, t, r) {
1229
1229
  const n = { ...e, path: e.path ?? [] };
1230
1230
  if (!e.message) {
1231
- const o = xt(e.inst?._zod.def?.error?.(e)) ?? xt(t?.error?.(e)) ?? xt(r.customError?.(e)) ?? xt(r.localeError?.(e)) ?? "Invalid input";
1231
+ const o = kt(e.inst?._zod.def?.error?.(e)) ?? kt(t?.error?.(e)) ?? kt(r.customError?.(e)) ?? kt(r.localeError?.(e)) ?? "Invalid input";
1232
1232
  n.message = o;
1233
1233
  }
1234
1234
  return delete n.inst, delete n.continue, t?.reportInput || delete n.input, n;
@@ -1562,7 +1562,7 @@ const wc = (e) => {
1562
1562
  t.pattern ?? (t.pattern = kc), er.init(e, t);
1563
1563
  }), Rc = /* @__PURE__ */ y("$ZodCheckIncludes", (e, t) => {
1564
1564
  ue.init(e, t);
1565
- const r = bt(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
1565
+ const r = wt(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
1566
1566
  t.pattern = n, e._zod.onattach.push((o) => {
1567
1567
  const a = o._zod.bag;
1568
1568
  a.patterns ?? (a.patterns = /* @__PURE__ */ new Set()), a.patterns.add(n);
@@ -1579,7 +1579,7 @@ const wc = (e) => {
1579
1579
  };
1580
1580
  }), Zc = /* @__PURE__ */ y("$ZodCheckStartsWith", (e, t) => {
1581
1581
  ue.init(e, t);
1582
- const r = new RegExp(`^${bt(t.prefix)}.*`);
1582
+ const r = new RegExp(`^${wt(t.prefix)}.*`);
1583
1583
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
1584
1584
  const o = n._zod.bag;
1585
1585
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(r);
@@ -1596,7 +1596,7 @@ const wc = (e) => {
1596
1596
  };
1597
1597
  }), Dc = /* @__PURE__ */ y("$ZodCheckEndsWith", (e, t) => {
1598
1598
  ue.init(e, t);
1599
- const r = new RegExp(`.*${bt(t.suffix)}$`);
1599
+ const r = new RegExp(`.*${wt(t.suffix)}$`);
1600
1600
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
1601
1601
  const o = n._zod.bag;
1602
1602
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(r);
@@ -1990,7 +1990,7 @@ const yl = /* @__PURE__ */ y("$ZodArray", (e, t) => {
1990
1990
  return a.length ? Promise.all(a).then(() => r) : r;
1991
1991
  };
1992
1992
  });
1993
- function kt(e, t, r) {
1993
+ function Ct(e, t, r) {
1994
1994
  e.issues.length && t.issues.push(...Ue(r, e.issues)), t.value[r] = e.value;
1995
1995
  }
1996
1996
  function _n(e, t, r, n) {
@@ -2073,7 +2073,7 @@ const _l = /* @__PURE__ */ y("$ZodObject", (e, t) => {
2073
2073
  return (_, E) => I(d, _, E);
2074
2074
  };
2075
2075
  let o;
2076
- const a = Ft, i = !Do.jitless, u = i && Di.value, c = t.catchall;
2076
+ const a = Ht, i = !Do.jitless, u = i && Di.value, c = t.catchall;
2077
2077
  let p;
2078
2078
  e._zod.parse = (d, f) => {
2079
2079
  p ?? (p = r.value);
@@ -2093,7 +2093,7 @@ const _l = /* @__PURE__ */ y("$ZodObject", (e, t) => {
2093
2093
  const E = p.shape;
2094
2094
  for (const b of p.keys) {
2095
2095
  const R = E[b], z = R._zod.run({ value: g[b], issues: [] }, f), k = R._zod.optin === "optional" && R._zod.optout === "optional";
2096
- z instanceof Promise ? m.push(z.then((A) => k ? _n(A, d, b, g) : kt(A, d, b))) : k ? _n(z, d, b, g) : kt(z, d, b);
2096
+ z instanceof Promise ? m.push(z.then((A) => k ? _n(A, d, b, g) : Ct(A, d, b))) : k ? _n(z, d, b, g) : Ct(z, d, b);
2097
2097
  }
2098
2098
  }
2099
2099
  if (!c)
@@ -2107,7 +2107,7 @@ const _l = /* @__PURE__ */ y("$ZodObject", (e, t) => {
2107
2107
  continue;
2108
2108
  }
2109
2109
  const b = I.run({ value: g[E], issues: [] }, f);
2110
- b instanceof Promise ? m.push(b.then((R) => kt(R, d, E))) : kt(b, d, E);
2110
+ b instanceof Promise ? m.push(b.then((R) => Ct(R, d, E))) : Ct(b, d, E);
2111
2111
  }
2112
2112
  return h.length && d.issues.push({
2113
2113
  code: "unrecognized_keys",
@@ -2188,7 +2188,7 @@ const ea = /* @__PURE__ */ y("$ZodUnion", (e, t) => {
2188
2188
  });
2189
2189
  e._zod.parse = (o, a) => {
2190
2190
  const i = o.value;
2191
- if (!Ft(i))
2191
+ if (!Ht(i))
2192
2192
  return o.issues.push({
2193
2193
  code: "invalid_type",
2194
2194
  expected: "object",
@@ -2216,7 +2216,7 @@ function Sr(e, t) {
2216
2216
  return { valid: !0, data: e };
2217
2217
  if (e instanceof Date && t instanceof Date && +e == +t)
2218
2218
  return { valid: !0, data: e };
2219
- if (Ht(e) && Ht(t)) {
2219
+ if (Jt(e) && Jt(t)) {
2220
2220
  const r = Object.keys(t), n = Object.keys(e).filter((a) => r.indexOf(a) !== -1), o = { ...e, ...t };
2221
2221
  for (const a of n) {
2222
2222
  const i = Sr(e[a], t[a]);
@@ -2257,7 +2257,7 @@ function wn(e, t, r) {
2257
2257
  const Il = /* @__PURE__ */ y("$ZodRecord", (e, t) => {
2258
2258
  j.init(e, t), e._zod.parse = (r, n) => {
2259
2259
  const o = r.value;
2260
- if (!Ht(o))
2260
+ if (!Jt(o))
2261
2261
  return r.issues.push({
2262
2262
  expected: "record",
2263
2263
  code: "invalid_type",
@@ -2314,7 +2314,7 @@ const Il = /* @__PURE__ */ y("$ZodRecord", (e, t) => {
2314
2314
  }), El = /* @__PURE__ */ y("$ZodEnum", (e, t) => {
2315
2315
  j.init(e, t);
2316
2316
  const r = Lo(t.entries);
2317
- e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) => Li.has(typeof n)).map((n) => typeof n == "string" ? bt(n) : n.toString()).join("|")})$`), e._zod.parse = (n, o) => {
2317
+ e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) => Li.has(typeof n)).map((n) => typeof n == "string" ? wt(n) : n.toString()).join("|")})$`), e._zod.parse = (n, o) => {
2318
2318
  const a = n.value;
2319
2319
  return e._zod.values.has(a) || n.issues.push({
2320
2320
  code: "invalid_value",
@@ -2324,7 +2324,7 @@ const Il = /* @__PURE__ */ y("$ZodRecord", (e, t) => {
2324
2324
  }), n;
2325
2325
  };
2326
2326
  }), Tl = /* @__PURE__ */ y("$ZodLiteral", (e, t) => {
2327
- j.init(e, t), e._zod.values = new Set(t.values), e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? bt(r) : r ? r.toString() : String(r)).join("|")})$`), e._zod.parse = (r, n) => {
2327
+ j.init(e, t), e._zod.values = new Set(t.values), e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? wt(r) : r ? r.toString() : String(r)).join("|")})$`), e._zod.parse = (r, n) => {
2328
2328
  const o = r.value;
2329
2329
  return e._zod.values.has(o) || r.issues.push({
2330
2330
  code: "invalid_value",
@@ -2806,7 +2806,7 @@ function na(e, t) {
2806
2806
  maximum: e
2807
2807
  });
2808
2808
  }
2809
- function Jt(e, t) {
2809
+ function Gt(e, t) {
2810
2810
  return new Ac({
2811
2811
  check: "min_length",
2812
2812
  ...S(t),
@@ -2866,23 +2866,23 @@ function _u(e, t) {
2866
2866
  suffix: e
2867
2867
  });
2868
2868
  }
2869
- function wt(e) {
2869
+ function It(e) {
2870
2870
  return new Lc({
2871
2871
  check: "overwrite",
2872
2872
  tx: e
2873
2873
  });
2874
2874
  }
2875
2875
  function bu(e) {
2876
- return wt((t) => t.normalize(e));
2876
+ return It((t) => t.normalize(e));
2877
2877
  }
2878
2878
  function wu() {
2879
- return wt((e) => e.trim());
2879
+ return It((e) => e.trim());
2880
2880
  }
2881
2881
  function Iu() {
2882
- return wt((e) => e.toLowerCase());
2882
+ return It((e) => e.toLowerCase());
2883
2883
  }
2884
2884
  function Eu() {
2885
- return wt((e) => e.toUpperCase());
2885
+ return It((e) => e.toUpperCase());
2886
2886
  }
2887
2887
  function Tu(e, t, r) {
2888
2888
  return new e({
@@ -3481,7 +3481,7 @@ const Ru = (e, t) => {
3481
3481
  ]
3482
3482
  }
3483
3483
  // { parent: true }
3484
- ), e.clone = (r, n) => je(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => Zu(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Lu(e, r, n), e.parseAsync = async (r, n) => Du(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => aa(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(Md(r, n)), e.superRefine = (r) => e.check($d(r)), e.overwrite = (r) => e.check(wt(r)), e.optional = () => Q(e), e.nullable = () => $n(e), e.nullish = () => Q($n(e)), e.nonoptional = (r) => Ed(e, r), e.array = () => Se(e), e.or = (r) => ee([e, r]), e.and = (r) => md(e, r), e.transform = (r) => Pn(e, vd(r)), e.default = (r) => bd(e, r), e.prefault = (r) => Id(e, r), e.catch = (r) => Sd(e, r), e.pipe = (r) => Pn(e, r), e.readonly = () => Cd(e), e.describe = (r) => {
3484
+ ), e.clone = (r, n) => je(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => Zu(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Lu(e, r, n), e.parseAsync = async (r, n) => Du(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => aa(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(Md(r, n)), e.superRefine = (r) => e.check($d(r)), e.overwrite = (r) => e.check(It(r)), e.optional = () => Q(e), e.nullable = () => $n(e), e.nullish = () => Q($n(e)), e.nonoptional = (r) => Ed(e, r), e.array = () => Se(e), e.or = (r) => ee([e, r]), e.and = (r) => md(e, r), e.transform = (r) => Pn(e, vd(r)), e.default = (r) => bd(e, r), e.prefault = (r) => Id(e, r), e.catch = (r) => Sd(e, r), e.pipe = (r) => Pn(e, r), e.readonly = () => Cd(e), e.describe = (r) => {
3485
3485
  const n = e.clone();
3486
3486
  return it.add(n, { description: r }), n;
3487
3487
  }, Object.defineProperty(e, "description", {
@@ -3497,9 +3497,9 @@ const Ru = (e, t) => {
3497
3497
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), sa = /* @__PURE__ */ y("_ZodString", (e, t) => {
3498
3498
  Ur.init(e, t), q.init(e, t);
3499
3499
  const r = e._zod.bag;
3500
- e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(hu(...n)), e.includes = (...n) => e.check(vu(...n)), e.startsWith = (...n) => e.check(yu(...n)), e.endsWith = (...n) => e.check(_u(...n)), e.min = (...n) => e.check(Jt(...n)), e.max = (...n) => e.check(na(...n)), e.length = (...n) => e.check(oa(...n)), e.nonempty = (...n) => e.check(Jt(1, ...n)), e.lowercase = (n) => e.check(fu(n)), e.uppercase = (n) => e.check(gu(n)), e.trim = () => e.check(wu()), e.normalize = (...n) => e.check(bu(...n)), e.toLowerCase = () => e.check(Iu()), e.toUpperCase = () => e.check(Eu());
3500
+ e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(hu(...n)), e.includes = (...n) => e.check(vu(...n)), e.startsWith = (...n) => e.check(yu(...n)), e.endsWith = (...n) => e.check(_u(...n)), e.min = (...n) => e.check(Gt(...n)), e.max = (...n) => e.check(na(...n)), e.length = (...n) => e.check(oa(...n)), e.nonempty = (...n) => e.check(Gt(1, ...n)), e.lowercase = (n) => e.check(fu(n)), e.uppercase = (n) => e.check(gu(n)), e.trim = () => e.check(wu()), e.normalize = (...n) => e.check(bu(...n)), e.toLowerCase = () => e.check(Iu()), e.toUpperCase = () => e.check(Eu());
3501
3501
  }), Uu = /* @__PURE__ */ y("ZodString", (e, t) => {
3502
- Ur.init(e, t), sa.init(e, t), e.email = (r) => e.check(Dl(Bu, r)), e.url = (r) => e.check(Vl(ju, r)), e.jwt = (r) => e.check(nu(rd, r)), e.emoji = (r) => e.check(Fl(Vu, r)), e.guid = (r) => e.check(kn(On, r)), e.uuid = (r) => e.check(Ll(Ct, r)), e.uuidv4 = (r) => e.check(Ul(Ct, r)), e.uuidv6 = (r) => e.check(Bl(Ct, r)), e.uuidv7 = (r) => e.check(jl(Ct, r)), e.nanoid = (r) => e.check(Hl(Fu, r)), e.guid = (r) => e.check(kn(On, r)), e.cuid = (r) => e.check(Jl(Hu, r)), e.cuid2 = (r) => e.check(Gl(Ju, r)), e.ulid = (r) => e.check(Wl(Gu, r)), e.base64 = (r) => e.check(ra(ia, r)), e.base64url = (r) => e.check(tu(ed, r)), e.xid = (r) => e.check(ql(Wu, r)), e.ksuid = (r) => e.check(Yl(qu, r)), e.ipv4 = (r) => e.check(Xl(Yu, r)), e.ipv6 = (r) => e.check(Ql(Xu, r)), e.cidrv4 = (r) => e.check(Kl(Qu, r)), e.cidrv6 = (r) => e.check(eu(Ku, r)), e.e164 = (r) => e.check(ru(td, r)), e.datetime = (r) => e.check(Nu(r)), e.date = (r) => e.check(Au(r)), e.time = (r) => e.check(Mu(r)), e.duration = (r) => e.check(Pu(r));
3502
+ Ur.init(e, t), sa.init(e, t), e.email = (r) => e.check(Dl(Bu, r)), e.url = (r) => e.check(Vl(ju, r)), e.jwt = (r) => e.check(nu(rd, r)), e.emoji = (r) => e.check(Fl(Vu, r)), e.guid = (r) => e.check(kn(On, r)), e.uuid = (r) => e.check(Ll(Nt, r)), e.uuidv4 = (r) => e.check(Ul(Nt, r)), e.uuidv6 = (r) => e.check(Bl(Nt, r)), e.uuidv7 = (r) => e.check(jl(Nt, r)), e.nanoid = (r) => e.check(Hl(Fu, r)), e.guid = (r) => e.check(kn(On, r)), e.cuid = (r) => e.check(Jl(Hu, r)), e.cuid2 = (r) => e.check(Gl(Ju, r)), e.ulid = (r) => e.check(Wl(Gu, r)), e.base64 = (r) => e.check(ra(ia, r)), e.base64url = (r) => e.check(tu(ed, r)), e.xid = (r) => e.check(ql(Wu, r)), e.ksuid = (r) => e.check(Yl(qu, r)), e.ipv4 = (r) => e.check(Xl(Yu, r)), e.ipv6 = (r) => e.check(Ql(Xu, r)), e.cidrv4 = (r) => e.check(Kl(Qu, r)), e.cidrv6 = (r) => e.check(eu(Ku, r)), e.e164 = (r) => e.check(ru(td, r)), e.datetime = (r) => e.check(Nu(r)), e.date = (r) => e.check(Au(r)), e.time = (r) => e.check(Mu(r)), e.duration = (r) => e.check(Pu(r));
3503
3503
  });
3504
3504
  function w(e) {
3505
3505
  return Zl(Uu, e);
@@ -3510,7 +3510,7 @@ const Y = /* @__PURE__ */ y("ZodStringFormat", (e, t) => {
3510
3510
  Fc.init(e, t), Y.init(e, t);
3511
3511
  }), On = /* @__PURE__ */ y("ZodGUID", (e, t) => {
3512
3512
  jc.init(e, t), Y.init(e, t);
3513
- }), Ct = /* @__PURE__ */ y("ZodUUID", (e, t) => {
3513
+ }), Nt = /* @__PURE__ */ y("ZodUUID", (e, t) => {
3514
3514
  Vc.init(e, t), Y.init(e, t);
3515
3515
  }), ju = /* @__PURE__ */ y("ZodURL", (e, t) => {
3516
3516
  Hc.init(e, t), Y.init(e, t);
@@ -3587,7 +3587,7 @@ function le(e) {
3587
3587
  return mu(cd, e);
3588
3588
  }
3589
3589
  const ld = /* @__PURE__ */ y("ZodArray", (e, t) => {
3590
- yl.init(e, t), q.init(e, t), e.element = t.element, e.min = (r, n) => e.check(Jt(r, n)), e.nonempty = (r) => e.check(Jt(1, r)), e.max = (r, n) => e.check(na(r, n)), e.length = (r, n) => e.check(oa(r, n)), e.unwrap = () => e.element;
3590
+ yl.init(e, t), q.init(e, t), e.element = t.element, e.min = (r, n) => e.check(Gt(r, n)), e.nonempty = (r) => e.check(Gt(1, r)), e.max = (r, n) => e.check(na(r, n)), e.length = (r, n) => e.check(oa(r, n)), e.unwrap = () => e.element;
3591
3591
  });
3592
3592
  function Se(e, t) {
3593
3593
  return Tu(ld, e, t);
@@ -3599,7 +3599,7 @@ function C(e, t) {
3599
3599
  const r = {
3600
3600
  type: "object",
3601
3601
  get shape() {
3602
- return _t(this, "shape", { ...e }), this.shape;
3602
+ return bt(this, "shape", { ...e }), this.shape;
3603
3603
  },
3604
3604
  ...S(t)
3605
3605
  };
@@ -3609,7 +3609,7 @@ function V(e, t) {
3609
3609
  return new Br({
3610
3610
  type: "object",
3611
3611
  get shape() {
3612
- return _t(this, "shape", { ...e }), this.shape;
3612
+ return bt(this, "shape", { ...e }), this.shape;
3613
3613
  },
3614
3614
  catchall: le(),
3615
3615
  ...S(t)
@@ -3619,7 +3619,7 @@ function et(e, t) {
3619
3619
  return new Br({
3620
3620
  type: "object",
3621
3621
  get shape() {
3622
- return _t(this, "shape", { ...e }), this.shape;
3622
+ return bt(this, "shape", { ...e }), this.shape;
3623
3623
  },
3624
3624
  catchall: H(),
3625
3625
  ...S(t)
@@ -3860,7 +3860,7 @@ function $d(e) {
3860
3860
  }, e(r.value, r)));
3861
3861
  return t;
3862
3862
  }
3863
- function Gt(e, t = {
3863
+ function Wt(e, t = {
3864
3864
  error: `Input not instance of ${e.name}`
3865
3865
  }) {
3866
3866
  const r = new jr({
@@ -3876,7 +3876,7 @@ var N;
3876
3876
  (function(e) {
3877
3877
  e.ZodString = "ZodString", e.ZodNumber = "ZodNumber", e.ZodNaN = "ZodNaN", e.ZodBigInt = "ZodBigInt", e.ZodBoolean = "ZodBoolean", e.ZodDate = "ZodDate", e.ZodSymbol = "ZodSymbol", e.ZodUndefined = "ZodUndefined", e.ZodNull = "ZodNull", e.ZodAny = "ZodAny", e.ZodUnknown = "ZodUnknown", e.ZodNever = "ZodNever", e.ZodVoid = "ZodVoid", e.ZodArray = "ZodArray", e.ZodObject = "ZodObject", e.ZodUnion = "ZodUnion", e.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", e.ZodIntersection = "ZodIntersection", e.ZodTuple = "ZodTuple", e.ZodRecord = "ZodRecord", e.ZodMap = "ZodMap", e.ZodSet = "ZodSet", e.ZodFunction = "ZodFunction", e.ZodLazy = "ZodLazy", e.ZodLiteral = "ZodLiteral", e.ZodEnum = "ZodEnum", e.ZodEffects = "ZodEffects", e.ZodNativeEnum = "ZodNativeEnum", e.ZodOptional = "ZodOptional", e.ZodNullable = "ZodNullable", e.ZodDefault = "ZodDefault", e.ZodCatch = "ZodCatch", e.ZodPromise = "ZodPromise", e.ZodBranded = "ZodBranded", e.ZodPipeline = "ZodPipeline", e.ZodReadonly = "ZodReadonly";
3878
3878
  })(N || (N = {}));
3879
- var It = ({
3879
+ var Et = ({
3880
3880
  prefix: e,
3881
3881
  size: t = 16,
3882
3882
  alphabet: r = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
@@ -3896,7 +3896,7 @@ var It = ({
3896
3896
  message: `The separator "${n}" must not be part of the alphabet "${r}".`
3897
3897
  });
3898
3898
  return () => `${e}${n}${o()}`;
3899
- }, Pd = It(), Rd = /"__proto__"\s*:/, Zd = /"constructor"\s*:/;
3899
+ }, Pd = Et(), Rd = /"__proto__"\s*:/, Zd = /"constructor"\s*:/;
3900
3900
  function Dd(e) {
3901
3901
  const t = JSON.parse(e);
3902
3902
  return t === null || typeof t != "object" || Rd.test(e) === !1 && Zd.test(e) === !1 ? t : Ld(t);
@@ -3928,12 +3928,12 @@ function Ud(e) {
3928
3928
  Error.stackTraceLimit = t;
3929
3929
  }
3930
3930
  }
3931
- var Wt = Symbol.for("vercel.ai.validator");
3931
+ var qt = Symbol.for("vercel.ai.validator");
3932
3932
  function Bd(e) {
3933
- return { [Wt]: !0, validate: e };
3933
+ return { [qt]: !0, validate: e };
3934
3934
  }
3935
3935
  function jd(e) {
3936
- return typeof e == "object" && e !== null && Wt in e && e[Wt] === !0 && "validate" in e;
3936
+ return typeof e == "object" && e !== null && qt in e && e[qt] === !0 && "validate" in e;
3937
3937
  }
3938
3938
  function Vd(e) {
3939
3939
  return jd(e) ? e : Fd(e);
@@ -3943,7 +3943,7 @@ function Fd(e) {
3943
3943
  const r = await e["~standard"].validate(t);
3944
3944
  return r.issues == null ? { success: !0, value: r.value } : {
3945
3945
  success: !1,
3946
- error: new Vt({
3946
+ error: new Ft({
3947
3947
  value: t,
3948
3948
  cause: r.issues
3949
3949
  })
@@ -3956,7 +3956,7 @@ async function Rn({
3956
3956
  }) {
3957
3957
  const r = await Vr({ value: e, schema: t });
3958
3958
  if (!r.success)
3959
- throw Vt.wrap({ value: e, cause: r.error });
3959
+ throw Ft.wrap({ value: e, cause: r.error });
3960
3960
  return r.value;
3961
3961
  }
3962
3962
  async function Vr({
@@ -3970,18 +3970,18 @@ async function Vr({
3970
3970
  const n = await r.validate(e);
3971
3971
  return n.success ? { success: !0, value: n.value, rawValue: e } : {
3972
3972
  success: !1,
3973
- error: Vt.wrap({ value: e, cause: n.error }),
3973
+ error: Ft.wrap({ value: e, cause: n.error }),
3974
3974
  rawValue: e
3975
3975
  };
3976
3976
  } catch (n) {
3977
3977
  return {
3978
3978
  success: !1,
3979
- error: Vt.wrap({ value: e, cause: n }),
3979
+ error: Ft.wrap({ value: e, cause: n }),
3980
3980
  rawValue: e
3981
3981
  };
3982
3982
  }
3983
3983
  }
3984
- async function qt({
3984
+ async function Yt({
3985
3985
  text: e,
3986
3986
  schema: t
3987
3987
  }) {
@@ -4003,7 +4003,7 @@ function Hd({
4003
4003
  return e.pipeThrough(new TextDecoderStream()).pipeThrough(new Pi()).pipeThrough(
4004
4004
  new TransformStream({
4005
4005
  async transform({ data: r }, n) {
4006
- r !== "[DONE]" && n.enqueue(await qt({ text: r, schema: t }));
4006
+ r !== "[DONE]" && n.enqueue(await Yt({ text: r, schema: t }));
4007
4007
  }
4008
4008
  })
4009
4009
  );
@@ -4955,7 +4955,7 @@ function Fr(e, {
4955
4955
  [Nr]: !0,
4956
4956
  _type: void 0,
4957
4957
  // should never be used directly
4958
- [Wt]: !0,
4958
+ [qt]: !0,
4959
4959
  jsonSchema: e,
4960
4960
  validate: t
4961
4961
  };
@@ -4990,8 +4990,8 @@ var Lp = Object.defineProperty, Up = (e, t) => {
4990
4990
  _a = Bp;
4991
4991
  var ba = ee([
4992
4992
  w(),
4993
- Gt(Uint8Array),
4994
- Gt(ArrayBuffer),
4993
+ Wt(Uint8Array),
4994
+ Wt(ArrayBuffer),
4995
4995
  Od(
4996
4996
  // Buffer might not be available in some environments such as CloudFlare:
4997
4997
  (e) => {
@@ -5009,34 +5009,34 @@ var ba = ee([
5009
5009
  xr(w(), vt),
5010
5010
  Se(vt)
5011
5011
  ])
5012
- ), $ = xr(
5012
+ ), P = xr(
5013
5013
  w(),
5014
5014
  xr(w(), vt)
5015
5015
  ), wa = C({
5016
5016
  type: T("text"),
5017
5017
  text: w(),
5018
- providerOptions: $.optional()
5018
+ providerOptions: P.optional()
5019
5019
  }), jp = C({
5020
5020
  type: T("image"),
5021
- image: ee([ba, Gt(URL)]),
5021
+ image: ee([ba, Wt(URL)]),
5022
5022
  mediaType: w().optional(),
5023
- providerOptions: $.optional()
5023
+ providerOptions: P.optional()
5024
5024
  }), Ia = C({
5025
5025
  type: T("file"),
5026
- data: ee([ba, Gt(URL)]),
5026
+ data: ee([ba, Wt(URL)]),
5027
5027
  filename: w().optional(),
5028
5028
  mediaType: w(),
5029
- providerOptions: $.optional()
5029
+ providerOptions: P.optional()
5030
5030
  }), Vp = C({
5031
5031
  type: T("reasoning"),
5032
5032
  text: w(),
5033
- providerOptions: $.optional()
5033
+ providerOptions: P.optional()
5034
5034
  }), Fp = C({
5035
5035
  type: T("tool-call"),
5036
5036
  toolCallId: w(),
5037
5037
  toolName: w(),
5038
5038
  input: H(),
5039
- providerOptions: $.optional(),
5039
+ providerOptions: P.optional(),
5040
5040
  providerExecuted: X().optional()
5041
5041
  }), Hp = dd("type", [
5042
5042
  C({
@@ -5076,12 +5076,12 @@ var ba = ee([
5076
5076
  toolCallId: w(),
5077
5077
  toolName: w(),
5078
5078
  output: Hp,
5079
- providerOptions: $.optional()
5079
+ providerOptions: P.optional()
5080
5080
  }), Jp = C(
5081
5081
  {
5082
5082
  role: T("system"),
5083
5083
  content: w(),
5084
- providerOptions: $.optional()
5084
+ providerOptions: P.optional()
5085
5085
  }
5086
5086
  ), Gp = C({
5087
5087
  role: T("user"),
@@ -5089,7 +5089,7 @@ var ba = ee([
5089
5089
  w(),
5090
5090
  Se(ee([wa, jp, Ia]))
5091
5091
  ]),
5092
- providerOptions: $.optional()
5092
+ providerOptions: P.optional()
5093
5093
  }), Wp = C({
5094
5094
  role: T("assistant"),
5095
5095
  content: ee([
@@ -5104,11 +5104,11 @@ var ba = ee([
5104
5104
  ])
5105
5105
  )
5106
5106
  ]),
5107
- providerOptions: $.optional()
5107
+ providerOptions: P.optional()
5108
5108
  }), qp = C({
5109
5109
  role: T("tool"),
5110
5110
  content: Se(Ea),
5111
- providerOptions: $.optional()
5111
+ providerOptions: P.optional()
5112
5112
  });
5113
5113
  ee([
5114
5114
  Jp,
@@ -5116,7 +5116,7 @@ ee([
5116
5116
  Wp,
5117
5117
  qp
5118
5118
  ]);
5119
- It({
5119
+ Et({
5120
5120
  prefix: "aitxt",
5121
5121
  size: 24
5122
5122
  });
@@ -5124,18 +5124,18 @@ var Yp = ee([
5124
5124
  V({
5125
5125
  type: T("text-start"),
5126
5126
  id: w(),
5127
- providerMetadata: $.optional()
5127
+ providerMetadata: P.optional()
5128
5128
  }),
5129
5129
  V({
5130
5130
  type: T("text-delta"),
5131
5131
  id: w(),
5132
5132
  delta: w(),
5133
- providerMetadata: $.optional()
5133
+ providerMetadata: P.optional()
5134
5134
  }),
5135
5135
  V({
5136
5136
  type: T("text-end"),
5137
5137
  id: w(),
5138
- providerMetadata: $.optional()
5138
+ providerMetadata: P.optional()
5139
5139
  }),
5140
5140
  V({
5141
5141
  type: T("error"),
@@ -5159,7 +5159,7 @@ var Yp = ee([
5159
5159
  toolName: w(),
5160
5160
  input: H(),
5161
5161
  providerExecuted: X().optional(),
5162
- providerMetadata: $.optional(),
5162
+ providerMetadata: P.optional(),
5163
5163
  dynamic: X().optional()
5164
5164
  }),
5165
5165
  V({
@@ -5168,7 +5168,7 @@ var Yp = ee([
5168
5168
  toolName: w(),
5169
5169
  input: H(),
5170
5170
  providerExecuted: X().optional(),
5171
- providerMetadata: $.optional(),
5171
+ providerMetadata: P.optional(),
5172
5172
  dynamic: X().optional(),
5173
5173
  errorText: w()
5174
5174
  }),
@@ -5190,23 +5190,23 @@ var Yp = ee([
5190
5190
  V({
5191
5191
  type: T("reasoning"),
5192
5192
  text: w(),
5193
- providerMetadata: $.optional()
5193
+ providerMetadata: P.optional()
5194
5194
  }),
5195
5195
  V({
5196
5196
  type: T("reasoning-start"),
5197
5197
  id: w(),
5198
- providerMetadata: $.optional()
5198
+ providerMetadata: P.optional()
5199
5199
  }),
5200
5200
  V({
5201
5201
  type: T("reasoning-delta"),
5202
5202
  id: w(),
5203
5203
  delta: w(),
5204
- providerMetadata: $.optional()
5204
+ providerMetadata: P.optional()
5205
5205
  }),
5206
5206
  V({
5207
5207
  type: T("reasoning-end"),
5208
5208
  id: w(),
5209
- providerMetadata: $.optional()
5209
+ providerMetadata: P.optional()
5210
5210
  }),
5211
5211
  V({
5212
5212
  type: T("reasoning-part-finish")
@@ -5216,7 +5216,7 @@ var Yp = ee([
5216
5216
  sourceId: w(),
5217
5217
  url: w(),
5218
5218
  title: w().optional(),
5219
- providerMetadata: $.optional()
5219
+ providerMetadata: P.optional()
5220
5220
  }),
5221
5221
  V({
5222
5222
  type: T("source-document"),
@@ -5224,13 +5224,13 @@ var Yp = ee([
5224
5224
  mediaType: w(),
5225
5225
  title: w(),
5226
5226
  filename: w().optional(),
5227
- providerMetadata: $.optional()
5227
+ providerMetadata: P.optional()
5228
5228
  }),
5229
5229
  V({
5230
5230
  type: T("file"),
5231
5231
  url: w(),
5232
5232
  mediaType: w(),
5233
- providerMetadata: $.optional()
5233
+ providerMetadata: P.optional()
5234
5234
  }),
5235
5235
  V({
5236
5236
  type: w().startsWith("data-"),
@@ -5536,17 +5536,17 @@ function Qp(e) {
5536
5536
  async function Sa(e) {
5537
5537
  if (e === void 0)
5538
5538
  return { value: void 0, state: "undefined-input" };
5539
- let t = await qt({ text: e });
5540
- return t.success ? { value: t.value, state: "successful-parse" } : (t = await qt({ text: Qp(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
5539
+ let t = await Yt({ text: e });
5540
+ return t.success ? { value: t.value, state: "successful-parse" } : (t = await Yt({ text: Qp(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
5541
5541
  }
5542
- function Pt(e) {
5542
+ function Rt(e) {
5543
5543
  return e.type.startsWith("tool-");
5544
5544
  }
5545
5545
  function Kp(e) {
5546
5546
  return e.type === "dynamic-tool";
5547
5547
  }
5548
5548
  function Un(e) {
5549
- return Pt(e) || Kp(e);
5549
+ return Rt(e) || Kp(e);
5550
5550
  }
5551
5551
  function Bn(e) {
5552
5552
  return e.type.split("-").slice(1).join("-");
@@ -5582,7 +5582,7 @@ function tm({
5582
5582
  await n(async ({ state: c, write: p }) => {
5583
5583
  var d, f, g, m;
5584
5584
  function h(b) {
5585
- const z = c.message.parts.filter(Pt).find(
5585
+ const z = c.message.parts.filter(Rt).find(
5586
5586
  (k) => k.toolCallId === b
5587
5587
  );
5588
5588
  if (z == null)
@@ -5606,7 +5606,7 @@ function tm({
5606
5606
  function I(b) {
5607
5607
  var R;
5608
5608
  const z = c.message.parts.find(
5609
- (ie) => Pt(ie) && ie.toolCallId === b.toolCallId
5609
+ (ie) => Rt(ie) && ie.toolCallId === b.toolCallId
5610
5610
  ), k = b, A = z;
5611
5611
  z != null ? (z.state = b.state, A.input = k.input, A.output = k.output, A.errorText = k.errorText, A.rawInput = k.rawInput, A.preliminary = k.preliminary, A.providerExecuted = (R = k.providerExecuted) != null ? R : z.providerExecuted, k.providerMetadata != null && z.state === "input-available" && (z.callProviderMetadata = k.providerMetadata)) : c.message.parts.push({
5612
5612
  type: `tool-${b.toolName}`,
@@ -5718,7 +5718,7 @@ function tm({
5718
5718
  break;
5719
5719
  }
5720
5720
  case "tool-input-start": {
5721
- const b = c.message.parts.filter(Pt);
5721
+ const b = c.message.parts.filter(Rt);
5722
5722
  c.partialToolCalls[s.toolCallId] = {
5723
5723
  text: "",
5724
5724
  toolName: s.toolName,
@@ -5914,11 +5914,11 @@ async function rm({
5914
5914
  r.releaseLock();
5915
5915
  }
5916
5916
  }
5917
- It({
5917
+ Et({
5918
5918
  prefix: "aitxt",
5919
5919
  size: 24
5920
5920
  });
5921
- It({ prefix: "aiobj", size: 24 });
5921
+ Et({ prefix: "aiobj", size: 24 });
5922
5922
  var nm = class {
5923
5923
  constructor() {
5924
5924
  this.queue = [], this.isProcessing = !1;
@@ -5942,7 +5942,7 @@ var nm = class {
5942
5942
  });
5943
5943
  }
5944
5944
  };
5945
- It({ prefix: "aiobj", size: 24 });
5945
+ Et({ prefix: "aiobj", size: 24 });
5946
5946
  var om = {};
5947
5947
  Up(om, {
5948
5948
  object: () => sm,
@@ -5986,7 +5986,7 @@ var am = () => ({
5986
5986
  }
5987
5987
  },
5988
5988
  async parseOutput({ text: r }, n) {
5989
- const o = await qt({ text: r });
5989
+ const o = await Yt({ text: r });
5990
5990
  if (!o.success)
5991
5991
  throw new Ln({
5992
5992
  message: "No object generated: could not parse the response.",
@@ -6481,31 +6481,31 @@ var Im = class {
6481
6481
  type: T("text"),
6482
6482
  text: w(),
6483
6483
  state: rr(["streaming", "done"]).optional(),
6484
- providerMetadata: $.optional()
6484
+ providerMetadata: P.optional()
6485
6485
  }), Sm = C({
6486
6486
  type: T("reasoning"),
6487
6487
  text: w(),
6488
6488
  state: rr(["streaming", "done"]).optional(),
6489
- providerMetadata: $.optional()
6489
+ providerMetadata: P.optional()
6490
6490
  }), xm = C({
6491
6491
  type: T("source-url"),
6492
6492
  sourceId: w(),
6493
6493
  url: w(),
6494
6494
  title: w().optional(),
6495
- providerMetadata: $.optional()
6495
+ providerMetadata: P.optional()
6496
6496
  }), km = C({
6497
6497
  type: T("source-document"),
6498
6498
  sourceId: w(),
6499
6499
  mediaType: w(),
6500
6500
  title: w(),
6501
6501
  filename: w().optional(),
6502
- providerMetadata: $.optional()
6502
+ providerMetadata: P.optional()
6503
6503
  }), Cm = C({
6504
6504
  type: T("file"),
6505
6505
  mediaType: w(),
6506
6506
  filename: w().optional(),
6507
6507
  url: w(),
6508
- providerMetadata: $.optional()
6508
+ providerMetadata: P.optional()
6509
6509
  }), Nm = C({
6510
6510
  type: T("step-start")
6511
6511
  }), zm = C({
@@ -6530,7 +6530,7 @@ var Im = class {
6530
6530
  input: H(),
6531
6531
  output: le().optional(),
6532
6532
  errorText: le().optional(),
6533
- callProviderMetadata: $.optional()
6533
+ callProviderMetadata: P.optional()
6534
6534
  }),
6535
6535
  C({
6536
6536
  type: T("dynamic-tool"),
@@ -6540,7 +6540,7 @@ var Im = class {
6540
6540
  input: H(),
6541
6541
  output: H(),
6542
6542
  errorText: le().optional(),
6543
- callProviderMetadata: $.optional(),
6543
+ callProviderMetadata: P.optional(),
6544
6544
  preliminary: X().optional()
6545
6545
  }),
6546
6546
  C({
@@ -6551,7 +6551,7 @@ var Im = class {
6551
6551
  input: H(),
6552
6552
  output: le().optional(),
6553
6553
  errorText: w(),
6554
- callProviderMetadata: $.optional()
6554
+ callProviderMetadata: P.optional()
6555
6555
  })
6556
6556
  ], Om = [
6557
6557
  C({
@@ -6569,7 +6569,7 @@ var Im = class {
6569
6569
  input: H(),
6570
6570
  output: le().optional(),
6571
6571
  errorText: le().optional(),
6572
- callProviderMetadata: $.optional()
6572
+ callProviderMetadata: P.optional()
6573
6573
  }),
6574
6574
  C({
6575
6575
  type: w().startsWith("tool-"),
@@ -6578,7 +6578,7 @@ var Im = class {
6578
6578
  input: H(),
6579
6579
  output: H(),
6580
6580
  errorText: le().optional(),
6581
- callProviderMetadata: $.optional(),
6581
+ callProviderMetadata: P.optional(),
6582
6582
  preliminary: X().optional()
6583
6583
  }),
6584
6584
  C({
@@ -6588,7 +6588,7 @@ var Im = class {
6588
6588
  input: H(),
6589
6589
  output: le().optional(),
6590
6590
  errorText: w(),
6591
- callProviderMetadata: $.optional()
6591
+ callProviderMetadata: P.optional()
6592
6592
  })
6593
6593
  ];
6594
6594
  C({
@@ -6641,7 +6641,7 @@ const ka = async () => (gr || (gr = import(
6641
6641
  "./index.BwP0kG4H.js"
6642
6642
  )), gr), Ca = async () => (vr || (vr = import(
6643
6643
  /* webpackChunkName: "toast-utilities" */
6644
- "./index.6QVNoWZY.js"
6644
+ "./index.DJyjGvYW.js"
6645
6645
  ).then((e) => e.utilities)), vr), Zm = async () => {
6646
6646
  try {
6647
6647
  await Promise.all([ka(), Ca()]);
@@ -6663,9 +6663,9 @@ const ka = async () => (gr || (gr = import(
6663
6663
  }, 100);
6664
6664
  } catch {
6665
6665
  }
6666
- }, Yt = (e, t) => Na(e, "success", t), Of = (e, t) => Na(e, "error", t), pt = "FOOTER_BOTTOM", Xt = "FOOTER_TOP", Rt = "APP_SET_FOOTER_POSITION", za = "APP_SET_FOOTER_HEIGHT", Dm = (e, t) => {
6666
+ }, Xt = (e, t) => Na(e, "success", t), Of = (e, t) => Na(e, "error", t), pt = "FOOTER_BOTTOM", Qt = "FOOTER_TOP", Zt = "APP_SET_FOOTER_POSITION", za = "APP_SET_FOOTER_HEIGHT", Dm = (e, t) => {
6667
6667
  switch (t.type) {
6668
- case Rt:
6668
+ case Zt:
6669
6669
  return {
6670
6670
  ...e,
6671
6671
  footerPosition: t.payload.footerPosition,
@@ -6800,9 +6800,9 @@ var Ma = (e, t, r) => {
6800
6800
  function Jm(e, t) {
6801
6801
  return t != null ? Hm(e, t) : e;
6802
6802
  }
6803
- var me, Zt, Dt, ct, lt, ut, qe, zr, Ar, Gm = class {
6803
+ var me, Dt, Lt, ct, lt, ut, qe, zr, Ar, Gm = class {
6804
6804
  constructor(e = []) {
6805
- _e(this, me, void 0), _e(this, Zt, "ready"), _e(this, Dt, void 0), _e(this, ct, /* @__PURE__ */ new Set()), _e(this, lt, /* @__PURE__ */ new Set()), _e(this, ut, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
6805
+ _e(this, me, void 0), _e(this, Dt, "ready"), _e(this, Lt, void 0), _e(this, ct, /* @__PURE__ */ new Set()), _e(this, lt, /* @__PURE__ */ new Set()), _e(this, ut, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
6806
6806
  ze(this, me, F(this, me).concat(t)), F(this, qe).call(this);
6807
6807
  }, this.popMessage = () => {
6808
6808
  ze(this, me, F(this, me).slice(0, -1)), F(this, qe).call(this);
@@ -6831,16 +6831,16 @@ var me, Zt, Dt, ct, lt, ut, qe, zr, Ar, Gm = class {
6831
6831
  }), ze(this, me, e);
6832
6832
  }
6833
6833
  get status() {
6834
- return F(this, Zt);
6834
+ return F(this, Dt);
6835
6835
  }
6836
6836
  set status(e) {
6837
- ze(this, Zt, e), F(this, zr).call(this);
6837
+ ze(this, Dt, e), F(this, zr).call(this);
6838
6838
  }
6839
6839
  get error() {
6840
- return F(this, Dt);
6840
+ return F(this, Lt);
6841
6841
  }
6842
6842
  set error(e) {
6843
- ze(this, Dt, e), F(this, Ar).call(this);
6843
+ ze(this, Lt, e), F(this, Ar).call(this);
6844
6844
  }
6845
6845
  get messages() {
6846
6846
  return F(this, me);
@@ -6850,8 +6850,8 @@ var me, Zt, Dt, ct, lt, ut, qe, zr, Ar, Gm = class {
6850
6850
  }
6851
6851
  };
6852
6852
  me = /* @__PURE__ */ new WeakMap();
6853
- Zt = /* @__PURE__ */ new WeakMap();
6854
6853
  Dt = /* @__PURE__ */ new WeakMap();
6854
+ Lt = /* @__PURE__ */ new WeakMap();
6855
6855
  ct = /* @__PURE__ */ new WeakMap();
6856
6856
  lt = /* @__PURE__ */ new WeakMap();
6857
6857
  ut = /* @__PURE__ */ new WeakMap();
@@ -6879,15 +6879,15 @@ function Wm({
6879
6879
  // optionsId is required to trigger re-subscription when the chat ID changes
6880
6880
  // eslint-disable-next-line react-hooks/exhaustive-deps
6881
6881
  [e, a]
6882
- ), s = $t(
6882
+ ), s = Pt(
6883
6883
  i,
6884
6884
  () => n.current.messages,
6885
6885
  () => n.current.messages
6886
- ), u = $t(
6886
+ ), u = Pt(
6887
6887
  n.current["~registerStatusCallback"],
6888
6888
  () => n.current.status,
6889
6889
  () => n.current.status
6890
- ), c = $t(
6890
+ ), c = Pt(
6891
6891
  n.current["~registerErrorCallback"],
6892
6892
  () => n.current.error,
6893
6893
  () => n.current.error
@@ -6941,7 +6941,7 @@ function qm({
6941
6941
  children: e,
6942
6942
  value: t
6943
6943
  }) {
6944
- const r = J(Hn()), [n, o] = P("");
6944
+ const r = J(Hn()), [n, o] = $("");
6945
6945
  M(() => {
6946
6946
  r.current = Hn();
6947
6947
  }, [t]);
@@ -6983,26 +6983,26 @@ function qm({
6983
6983
  }
6984
6984
  );
6985
6985
  }
6986
- let Nt = !1, _r = null;
6986
+ let zt = !1, _r = null;
6987
6987
  const Jn = ({
6988
6988
  containerId: e,
6989
6989
  ...t
6990
6990
  }) => {
6991
- const [r, n] = P(Nt);
6991
+ const [r, n] = $(zt);
6992
6992
  return M(() => {
6993
- if (!Nt) {
6993
+ if (!zt) {
6994
6994
  const o = async () => {
6995
6995
  try {
6996
6996
  const { ToastContainer: i } = await import(
6997
6997
  /* webpackChunkName: "toast-react-toastify" */
6998
6998
  "./index.BwP0kG4H.js"
6999
6999
  );
7000
- _r = i, Nt = !0, n(!0);
7000
+ _r = i, zt = !0, n(!0);
7001
7001
  } catch (i) {
7002
7002
  console.error("Failed to load ToastContainer:", i);
7003
7003
  }
7004
7004
  }, a = () => {
7005
- Nt || o();
7005
+ zt || o();
7006
7006
  };
7007
7007
  return window.addEventListener("toast-request", a), () => {
7008
7008
  window.removeEventListener("toast-request", a);
@@ -7043,13 +7043,13 @@ const Jn = ({
7043
7043
  }
7044
7044
  }), qr = at.createContext({
7045
7045
  state: {
7046
- footerPosition: Xt,
7046
+ footerPosition: Qt,
7047
7047
  footerHeight: 0,
7048
7048
  footerOffset: 0
7049
7049
  },
7050
7050
  dispatch: () => {
7051
7051
  }
7052
- }), Qm = "av-tooltip", Km = "av-tooltip-arrow", zt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, eh = () => O("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), Gn = ({
7052
+ }), Qm = "av-tooltip", Km = "av-tooltip-arrow", At = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, eh = () => O("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), Gn = ({
7053
7053
  mode: e
7054
7054
  }) => O({
7055
7055
  "bg-surface-darker": e === "dark" || e === "system",
@@ -7096,7 +7096,7 @@ const Jn = ({
7096
7096
  }) => {
7097
7097
  const u = Hs(() => {
7098
7098
  h.stop(), m(!1);
7099
- }), c = J(null), p = J(null), [d, f] = P(!1), [g, m] = P(!1), h = Ys(() => {
7099
+ }), c = J(null), p = J(null), [d, f] = $(!1), [g, m] = $(!1), h = Ys(() => {
7100
7100
  m(!1);
7101
7101
  }, ah), v = nh({
7102
7102
  mode: n,
@@ -7123,8 +7123,8 @@ const Jn = ({
7123
7123
  ]
7124
7124
  });
7125
7125
  c?.current?.style && Object.assign(c.current.style, {
7126
- left: zt(z),
7127
- top: zt(k),
7126
+ left: At(z),
7127
+ top: At(k),
7128
7128
  ...I
7129
7129
  });
7130
7130
  const ke = {
@@ -7134,8 +7134,8 @@ const Jn = ({
7134
7134
  left: "right"
7135
7135
  }[ie.split("-")[0]];
7136
7136
  p?.current?.style && Object.assign(p.current.style, {
7137
- left: zt(A.arrow?.x),
7138
- top: zt(A.arrow?.y),
7137
+ left: At(A.arrow?.x),
7138
+ top: At(A.arrow?.y),
7139
7139
  right: "",
7140
7140
  bottom: "",
7141
7141
  [ke]: "-4px"
@@ -7217,7 +7217,7 @@ const sh = ({
7217
7217
  );
7218
7218
  function Pa(e, t) {
7219
7219
  M(() => {
7220
- if (Ut() && typeof window < "u")
7220
+ if (Bt() && typeof window < "u")
7221
7221
  return window.__VERSINI_DIGGIDY_TAURI_EVENTS__ && (window.__VERSINI_DIGGIDY_TAURI_EVENTS__[e] = t), () => {
7222
7222
  window.__VERSINI_DIGGIDY_TAURI_EVENTS__ && (window.__VERSINI_DIGGIDY_TAURI_EVENTS__[e] = null);
7223
7223
  };
@@ -7250,13 +7250,13 @@ const ih = ({
7250
7250
  [
7251
7251
  "mod+N",
7252
7252
  () => {
7253
- Ut() && f();
7253
+ Bt() && f();
7254
7254
  }
7255
7255
  ],
7256
7256
  [
7257
7257
  "mod+T",
7258
7258
  () => {
7259
- Ut() && f();
7259
+ Bt() && f();
7260
7260
  }
7261
7261
  ]
7262
7262
  ],
@@ -7316,7 +7316,7 @@ const ih = ({
7316
7316
  )
7317
7317
  }
7318
7318
  );
7319
- }, Qt = (e) => {
7319
+ }, Kt = (e) => {
7320
7320
  const { check: t } = es();
7321
7321
  return t(e);
7322
7322
  }, ch = "av-messagebox", lh = "av-panel", uh = ({
@@ -7541,7 +7541,7 @@ const ge = "panel", Le = "messagebox", yh = ({
7541
7541
  maxWidth: p = "medium",
7542
7542
  maxHeight: d
7543
7543
  }) => {
7544
- const f = J(""), [g, m] = P(
7544
+ const f = J(""), [g, m] = $(
7545
7545
  u ? c === Wn ? { opacity: 0 } : {
7546
7546
  transform: "translateY(-100vh)"
7547
7547
  } : {}
@@ -7837,10 +7837,10 @@ const Be = ({
7837
7837
  dispatch: n,
7838
7838
  setChatId: o,
7839
7839
  setInitialMessages: a
7840
- } = te(ye), [i, s] = P(!1), [u, c] = P(!1), [p, d] = P(!1), [f, g] = Ke({
7840
+ } = te(ye), [i, s] = $(!1), [u, c] = $(!1), [p, d] = $(!1), [f, g] = Ke({
7841
7841
  key: Qe + ts,
7842
7842
  initialValue: ""
7843
- }), m = Qt(Bt.TOOL.MEMORIES), h = (I) => {
7843
+ }), m = Kt(jt.TOOL.MEMORIES), h = (I) => {
7844
7844
  o(Re()), a([]), n({
7845
7845
  type: Ve,
7846
7846
  payload: {
@@ -7957,7 +7957,7 @@ const Be = ({
7957
7957
  focusMode: i = "system",
7958
7958
  ...s
7959
7959
  }, u) => {
7960
- const [c, p] = P(!1), [d, f] = P(!1), [g, m] = P(null), h = J([]), v = J([]), I = te(Or), _ = wo(), E = Ls(), b = Io(), { floatingStyles: R, refs: z, context: k } = go({
7960
+ const [c, p] = $(!1), [d, f] = $(!1), [g, m] = $(null), h = J([]), v = J([]), I = te(Or), _ = wo(), E = Ls(), b = Io(), { floatingStyles: R, refs: z, context: k } = go({
7961
7961
  nodeId: E,
7962
7962
  open: c,
7963
7963
  onOpenChange: (ce) => {
@@ -7985,7 +7985,7 @@ const Be = ({
7985
7985
  noInternalClick: Ge,
7986
7986
  focusMode: i,
7987
7987
  mode: a
7988
- } : {}, Et = at.cloneElement(
7988
+ } : {}, Tt = at.cloneElement(
7989
7989
  e,
7990
7990
  {
7991
7991
  ...sr,
@@ -8012,7 +8012,7 @@ const Be = ({
8012
8012
  }, [_, o]), M(() => {
8013
8013
  c && _ && _.events.emit("menuopen", { nodeId: E });
8014
8014
  }, [_, c, E]), /* @__PURE__ */ x(Vs, { id: E, children: [
8015
- Et,
8015
+ Tt,
8016
8016
  /* @__PURE__ */ l(
8017
8017
  Or.Provider,
8018
8018
  {
@@ -8228,7 +8228,7 @@ const Ph = (e) => {
8228
8228
  className: e,
8229
8229
  defaultPlacement: t = "top-start"
8230
8230
  }) => {
8231
- const { dispatch: r, setChatId: n, setInitialMessages: o } = te(ye), { dispatch: a } = te(Wr), { getAccessToken: i, user: s } = Ee(), { data: u, isSuccess: c } = Kt({
8231
+ const { dispatch: r, setChatId: n, setInitialMessages: o } = te(ye), { dispatch: a } = te(Wr), { getAccessToken: i, user: s } = Ee(), { data: u, isSuccess: c } = _t({
8232
8232
  user: s?.username,
8233
8233
  getAccessToken: i
8234
8234
  }), p = (g, m, h) => {
@@ -8307,10 +8307,10 @@ const Ph = (e) => {
8307
8307
  dispatch: n,
8308
8308
  setChatId: o,
8309
8309
  setInitialMessages: a
8310
- } = te(ye), [i, s] = P(!1), [u, c] = P(!1), [p, d] = Ke({
8310
+ } = te(ye), [i, s] = $(!1), [u, c] = $(!1), [p, d] = Ke({
8311
8311
  key: Qe + rs,
8312
8312
  initialValue: ""
8313
- }), [f, g] = P(!1), m = (v) => {
8313
+ }), [f, g] = $(!1), m = (v) => {
8314
8314
  o(Re()), a([]), n({
8315
8315
  type: Ve,
8316
8316
  payload: {
@@ -8402,7 +8402,7 @@ const Ph = (e) => {
8402
8402
  sortDirection: c.sortDirection,
8403
8403
  sortedCell: c.sortedCell,
8404
8404
  getAccessToken: r
8405
- }), [d, f] = P(!1), [g, m] = P(!1), h = async () => {
8405
+ }), [d, f] = $(!1), [g, m] = $(!1), h = async () => {
8406
8406
  try {
8407
8407
  if (u && s && a) {
8408
8408
  const I = s.filter((_) => _.parts && _.parts.length > 0 ? _.parts.some(
@@ -8429,7 +8429,7 @@ const Ph = (e) => {
8429
8429
  privateChat: !1,
8430
8430
  preserveTokenUsage: !0
8431
8431
  }
8432
- }), p(), await Yt(as, {
8432
+ }), p(), await Xt(as, {
8433
8433
  containerId: "toggle-save"
8434
8434
  });
8435
8435
  }
@@ -8550,7 +8550,7 @@ const Ph = (e) => {
8550
8550
  wrapper: t,
8551
8551
  textArea: r
8552
8552
  };
8553
- }, Lt = (e) => {
8553
+ }, Ut = (e) => {
8554
8554
  if (e === 0)
8555
8555
  return "0 Bytes";
8556
8556
  const t = 1024, r = ["Bytes", "KB", "MB", "GB"], n = Math.floor(Math.log(e) / Math.log(t));
@@ -8575,7 +8575,7 @@ const Ph = (e) => {
8575
8575
  /* @__PURE__ */ l("span", { className: "max-w-[150px] truncate", children: r.name }),
8576
8576
  /* @__PURE__ */ x("span", { className: "mx-1 text-gray-400", children: [
8577
8577
  "(",
8578
- Lt(r.size),
8578
+ Ut(r.size),
8579
8579
  ")"
8580
8580
  ] }),
8581
8581
  /* @__PURE__ */ l(
@@ -8597,15 +8597,15 @@ const Ph = (e) => {
8597
8597
  )) }),
8598
8598
  /* @__PURE__ */ x("div", { className: "text-xs text-gray-400 mt-1 pl-1", children: [
8599
8599
  "Total: ",
8600
- Lt(La(Array.from(e))),
8600
+ Ut(La(Array.from(e))),
8601
8601
  " /",
8602
8602
  " ",
8603
- Lt(Mr)
8603
+ Ut(Mr)
8604
8604
  ] })
8605
- ] }), Ua = 24, Yh = 500, Ba = 2, Xh = 5, Qh = Ua * Ba, Xn = Xh * Ua, Kh = "ready", ef = "streaming", tf = "error", rf = "submitted", At = (e) => {
8605
+ ] }), Ua = 24, Yh = 500, Ba = 2, Xh = 5, Qh = Ua * Ba, Xn = Xh * Ua, Kh = "ready", ef = "streaming", tf = "error", rf = "submitted", Ot = (e) => {
8606
8606
  e.current && (e.current.style.height = `${Qh}px`);
8607
8607
  }, nf = () => {
8608
- const { user: e, getAccessToken: t } = Ee(), r = Qt(Bt.ADDON.ATTACHMENTS), n = Qt(Bt.ADDON.REASONING), [o, a] = P(null), [i, s] = P(!1), [u, c] = P(!1), {
8608
+ const { user: e, getAccessToken: t } = Ee(), r = Kt(jt.ADDON.ATTACHMENTS), n = Kt(jt.ADDON.REASONING), [o, a] = $(null), [i, s] = $(!1), [u, c] = $(!1), {
8609
8609
  dispatch: p,
8610
8610
  state: {
8611
8611
  reasoning: d,
@@ -8623,12 +8623,12 @@ const Ph = (e) => {
8623
8623
  sortDirection: b.sortDirection,
8624
8624
  sortedCell: b.sortedCell,
8625
8625
  getAccessToken: t
8626
- }), { data: z } = Kt({
8626
+ }), { data: z } = _t({
8627
8627
  user: e?.username,
8628
8628
  getAccessToken: t
8629
8629
  }), k = J(null), A = J(null), ie = J(!1), ke = J(0), He = J(null), U = J(null), Je = cs(), de = Gh({
8630
8630
  className: ""
8631
- }), { setMessages: Ce, status: Ge, id: sr, sendMessage: Et, input: ce, setInput: Ze } = Fe({
8631
+ }), { setMessages: Ce, status: Ge, id: sr, sendMessage: Tt, input: ce, setInput: Ze } = Fe({
8632
8632
  onFinish: (D) => {
8633
8633
  R();
8634
8634
  const ne = D.message?.metadata;
@@ -8656,7 +8656,7 @@ const Ph = (e) => {
8656
8656
  privateChat: I,
8657
8657
  ...re?.body
8658
8658
  };
8659
- Et(
8659
+ Tt(
8660
8660
  {
8661
8661
  text: ce,
8662
8662
  ...re?.experimental_attachments && {
@@ -8670,7 +8670,7 @@ const Ph = (e) => {
8670
8670
  ), Ze("");
8671
8671
  }
8672
8672
  },
8673
- [ce, Et, Ze, v, I]
8673
+ [ce, Tt, Ze, v, I]
8674
8674
  ), Xr = B(
8675
8675
  async (D) => {
8676
8676
  D === Kh && p({
@@ -8736,7 +8736,7 @@ const Ph = (e) => {
8736
8736
  ) || Ne.push(Ie) : De = !0;
8737
8737
  }
8738
8738
  if (A.current && (A.current.value = ""), La(Ne) > Mr) {
8739
- k.current = `Total file size exceeds the limit of ${Lt(
8739
+ k.current = `Total file size exceeds the limit of ${Ut(
8740
8740
  Mr
8741
8741
  )}.`, s(!0);
8742
8742
  return;
@@ -8774,14 +8774,14 @@ const Ph = (e) => {
8774
8774
  }, qa = B(() => {
8775
8775
  A.current && (A.current.value = ""), a(null);
8776
8776
  }, []), Qr = async (D) => {
8777
- D.preventDefault(), At(U);
8777
+ D.preventDefault(), Ot(U);
8778
8778
  const re = await t();
8779
8779
  let ne;
8780
8780
  if (o && o.length > 0) {
8781
8781
  const Ne = Array.from(o).map(
8782
- (Tt) => Wh(Tt)
8782
+ (St) => Wh(St)
8783
8783
  ), De = new DataTransfer();
8784
- Ne.forEach((Tt) => De.items.add(Tt)), ne = De.files;
8784
+ Ne.forEach((St) => De.items.add(St)), ne = De.files;
8785
8785
  }
8786
8786
  Ha(D, {
8787
8787
  headers: {
@@ -8816,12 +8816,12 @@ const Ph = (e) => {
8816
8816
  }
8817
8817
  }, [_, E, Ze]), M(() => {
8818
8818
  if (ie.current === !1) {
8819
- ie.current = !0, !ce && At(U);
8819
+ ie.current = !0, !ce && Ot(U);
8820
8820
  return;
8821
8821
  }
8822
8822
  m > 0 && m !== ke.current ? (ke.current = m, setTimeout(() => {
8823
- U.current && (!ce && At(U), U.current.focus());
8824
- }, Yh)) : f === !1 && !ce && (At(U), !Ae() && U.current && U.current.focus());
8823
+ U.current && (!ce && Ot(U), U.current.focus());
8824
+ }, Yh)) : f === !1 && !ce && (Ot(U), !Ae() && U.current && U.current.focus());
8825
8825
  }, [m, f, ce]), M(() => {
8826
8826
  _.lastTriggeredTimestamp && setTimeout(() => {
8827
8827
  ir();
@@ -8896,13 +8896,13 @@ const Ph = (e) => {
8896
8896
  ] })
8897
8897
  ] }) })
8898
8898
  ] });
8899
- }, Ot = "--sassy-bottom", of = ({ isComponent: e }) => {
8899
+ }, Mt = "--sassy-bottom", of = ({ isComponent: e }) => {
8900
8900
  const {
8901
8901
  state: { loading: t, streaming: r, restoring: n }
8902
8902
  } = te(ye), {
8903
8903
  state: { footerHeight: o, footerPosition: a },
8904
8904
  dispatch: i
8905
- } = te(qr), [s] = P(
8905
+ } = te(qr), [s] = $(
8906
8906
  () => on[Math.floor(Math.random() * on.length)]
8907
8907
  ), { messages: u } = Fe(), { height: c } = ei(), { height: p } = ti(), [d, f] = oo(), g = rt(() => Ae(), []), m = rt(() => ds(), []), h = c - p, v = rt(() => {
8908
8908
  const I = g ? ps : m ? ms : ao;
@@ -8918,35 +8918,35 @@ const Ph = (e) => {
8918
8918
  }, [f.height, o, i]), M(() => {
8919
8919
  if (!d || !d.current)
8920
8920
  return;
8921
- const I = d?.current?.style.getPropertyValue(Ot);
8922
- if (a === Xt && (t && !r || n) && I !== `${v}px` && (i({
8923
- type: Rt,
8921
+ const I = d?.current?.style.getPropertyValue(Mt);
8922
+ if (a === Qt && (t && !r || n) && I !== `${v}px` && (i({
8923
+ type: Zt,
8924
8924
  payload: {
8925
8925
  footerPosition: pt,
8926
8926
  footerOffset: v
8927
8927
  }
8928
8928
  }), d.current.style.setProperty(
8929
- Ot,
8929
+ Mt,
8930
8930
  `${v}px`
8931
8931
  )), a === pt && I !== `${v}px` && (i({
8932
- type: Rt,
8932
+ type: Zt,
8933
8933
  payload: {
8934
8934
  footerPosition: pt,
8935
8935
  footerOffset: v
8936
8936
  }
8937
8937
  }), d.current.style.setProperty(
8938
- Ot,
8938
+ Mt,
8939
8939
  `${v}px`
8940
8940
  )), !t && !r && !n && u.length === 0 && c > 0 && f.height > 0) {
8941
8941
  const _ = `${c - f.height - (e ? 300 : 245)}`;
8942
8942
  I !== `${_}px` && Number(_) > 0 && (i({
8943
- type: Rt,
8943
+ type: Zt,
8944
8944
  payload: {
8945
- footerPosition: Xt,
8945
+ footerPosition: Qt,
8946
8946
  footerOffset: Number(_)
8947
8947
  }
8948
8948
  }), d?.current?.style.setProperty(
8949
- Ot,
8949
+ Mt,
8950
8950
  `${_}px`
8951
8951
  ));
8952
8952
  }
@@ -8977,7 +8977,7 @@ const Ph = (e) => {
8977
8977
  ] })
8978
8978
  }
8979
8979
  );
8980
- }, Mt = [
8980
+ }, $t = [
8981
8981
  {
8982
8982
  id: hs,
8983
8983
  label: "OpenAI",
@@ -8999,9 +8999,9 @@ const Ph = (e) => {
8999
8999
  state: { privateChat: r },
9000
9000
  setChatId: n,
9001
9001
  setInitialMessages: o
9002
- } = te(ye), { getAccessToken: a, user: i } = Ee(), { status: s } = Fe(), [u, c] = P(!1), p = B(() => {
9002
+ } = te(ye), { getAccessToken: a, user: i } = Ee(), { status: s } = Fe(), [u, c] = $(!1), p = B(() => {
9003
9003
  u || (Zm(), c(!0));
9004
- }, [u]), { isSuccess: d, refetch: f, data: g } = Kt({
9004
+ }, [u]), { isSuccess: d, refetch: f, data: g } = _t({
9005
9005
  user: i?.username,
9006
9006
  getAccessToken: a
9007
9007
  }), m = async (_) => {
@@ -9010,7 +9010,7 @@ const Ph = (e) => {
9010
9010
  provider: _,
9011
9011
  accessToken: await a(),
9012
9012
  username: i?.username || ""
9013
- }), f(), await Yt(`${ys} ${_}`, {
9013
+ }), f(), await Xt(`${ys} ${_}`, {
9014
9014
  containerId: "toggle-provider"
9015
9015
  })), t({
9016
9016
  type: Ve,
@@ -9020,7 +9020,7 @@ const Ph = (e) => {
9020
9020
  });
9021
9021
  } catch {
9022
9022
  }
9023
- }, h = g && d, v = h && Mt.find((_) => g.provider === _.id)?.icon || Mt[0].icon, I = /* @__PURE__ */ x(
9023
+ }, h = g && d, v = h && $t.find((_) => g.provider === _.id)?.icon || $t[0].icon, I = /* @__PURE__ */ x(
9024
9024
  ar,
9025
9025
  {
9026
9026
  mode: "dark",
@@ -9046,7 +9046,7 @@ const Ph = (e) => {
9046
9046
  defaultPlacement: "top-start",
9047
9047
  children: [
9048
9048
  /* @__PURE__ */ l(Da, { children: "Providers" }),
9049
- h && Mt.map((_) => /* @__PURE__ */ l(
9049
+ h && $t.map((_) => /* @__PURE__ */ l(
9050
9050
  be,
9051
9051
  {
9052
9052
  selected: g.provider === _.id,
@@ -9072,38 +9072,38 @@ const Ph = (e) => {
9072
9072
  }, sf = Te(
9073
9073
  () => import(
9074
9074
  /* webpackChunkName: "modal-chunk" */
9075
- "./ProfileEntry.DJ4q6KoG.js"
9075
+ "./ProfileEntry.BdZ3Nw-T.js"
9076
9076
  ).then((e) => ({
9077
9077
  default: e.Profile
9078
9078
  }))
9079
9079
  ), cf = Te(
9080
9080
  () => import(
9081
9081
  /* webpackChunkName: "modal-chunk" */
9082
- "./SettingsEntry.Cc0vofff.js"
9082
+ "./SettingsEntry.DoUYaXXF.js"
9083
9083
  ).then((e) => ({
9084
9084
  default: e.SettingsPanel
9085
9085
  }))
9086
9086
  ), lf = Te(
9087
9087
  () => import(
9088
9088
  /* webpackChunkName: "modal-chunk" */
9089
- "./HistoryEntry.Dz-6Alzn.js"
9089
+ "./HistoryEntry.B9VTJmQc.js"
9090
9090
  ).then((e) => ({
9091
9091
  default: e.HistoryPanel
9092
9092
  }))
9093
9093
  ), uf = Te(
9094
9094
  () => import(
9095
9095
  /* webpackChunkName: "modal-chunk" */
9096
- "./AboutEntry.HhBVaghX.js"
9096
+ "./AboutEntry.b_kqTZCs.js"
9097
9097
  ).then((e) => ({ default: e.About }))
9098
9098
  ), df = Te(
9099
9099
  () => import(
9100
9100
  /* webpackChunkName: "modal-chunk" */
9101
- "./UsageEntry.B6zt1DS_.js"
9101
+ "./UsageEntry.zOyDZDbJ.js"
9102
9102
  ).then((e) => ({ default: e.Usage }))
9103
9103
  ), pf = Te(
9104
9104
  () => import(
9105
9105
  /* webpackChunkName: "modal-chunk" */
9106
- "./UserMemoriesPanel.C2262GRv.js"
9106
+ "./UserMemoriesPanel.Htx88Kv8.js"
9107
9107
  ).then((e) => e.UserMemoriesPanel$1).then(
9108
9108
  (e) => ({ default: e.default })
9109
9109
  )
@@ -9120,7 +9120,7 @@ const Ph = (e) => {
9120
9120
  user: r?.username
9121
9121
  }
9122
9122
  );
9123
- }, hf = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ l(jt, { fallback: /* @__PURE__ */ l("div", {}), children: (() => {
9123
+ }, hf = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ l(Vt, { fallback: /* @__PURE__ */ l("div", {}), children: (() => {
9124
9124
  switch (e) {
9125
9125
  case "profile":
9126
9126
  return /* @__PURE__ */ l(sf, { open: t, onOpenChange: r });
@@ -9140,46 +9140,53 @@ const Ph = (e) => {
9140
9140
  })() }) : null, ff = ({
9141
9141
  isComponent: e = !1
9142
9142
  }) => {
9143
- const { logout: t } = Ee(), [r, n] = P(null), [o, a] = P(!1), [i, s] = P(!1), u = Qt(Bt.TOOL.MEMORIES), c = B(() => {
9144
- i || Promise.all([
9143
+ const { logout: t, getAccessToken: r, user: n } = Ee(), { data: o, isSuccess: a } = _t({
9144
+ user: n?.username,
9145
+ getAccessToken: r
9146
+ }), [i, s] = $(null), [u, c] = $(!1), [p, d] = $(!1), [f, g] = $(!1), m = Kt(jt.TOOL.MEMORIES);
9147
+ M(() => {
9148
+ a && o && m && g(o?.useMemory ?? !1);
9149
+ }, [a, o, m]);
9150
+ const h = B(() => {
9151
+ p || Promise.all([
9145
9152
  import(
9146
9153
  /* webpackChunkName: "modal-chunk" */
9147
- "./ProfileEntry.DJ4q6KoG.js"
9154
+ "./ProfileEntry.BdZ3Nw-T.js"
9148
9155
  ),
9149
9156
  import(
9150
9157
  /* webpackChunkName: "modal-chunk" */
9151
- "./SettingsEntry.Cc0vofff.js"
9158
+ "./SettingsEntry.DoUYaXXF.js"
9152
9159
  ),
9153
9160
  import(
9154
9161
  /* webpackChunkName: "modal-chunk" */
9155
- "./HistoryEntry.Dz-6Alzn.js"
9162
+ "./HistoryEntry.B9VTJmQc.js"
9156
9163
  ),
9157
9164
  import(
9158
9165
  /* webpackChunkName: "modal-chunk" */
9159
- "./AboutEntry.HhBVaghX.js"
9166
+ "./AboutEntry.b_kqTZCs.js"
9160
9167
  ),
9161
9168
  import(
9162
9169
  /* webpackChunkName: "modal-chunk" */
9163
- "./UsageEntry.B6zt1DS_.js"
9170
+ "./UsageEntry.zOyDZDbJ.js"
9164
9171
  )
9165
- ]).finally(() => s(!0));
9166
- }, [i]), p = B((m) => {
9167
- n(m);
9168
- }, []), d = B(() => {
9169
- n(null);
9170
- }, []), f = B(() => {
9171
- p("settings");
9172
- }, [p]);
9173
- Pa("openSettings", f);
9174
- const g = () => {
9175
- a(!o);
9172
+ ]).finally(() => d(!0));
9173
+ }, [p]), v = B((b) => {
9174
+ s(b);
9175
+ }, []), I = B(() => {
9176
+ s(null);
9177
+ }, []), _ = B(() => {
9178
+ v("settings");
9179
+ }, [v]);
9180
+ Pa("openSettings", _);
9181
+ const E = () => {
9182
+ c(!u);
9176
9183
  };
9177
9184
  return Pr(
9178
9185
  [
9179
9186
  [
9180
9187
  "mod+,",
9181
9188
  () => {
9182
- Ut() && p("settings");
9189
+ Bt() && v("settings");
9183
9190
  }
9184
9191
  ]
9185
9192
  ],
@@ -9193,8 +9200,8 @@ const Ph = (e) => {
9193
9200
  /* @__PURE__ */ l(
9194
9201
  Be,
9195
9202
  {
9196
- showConfirmation: o,
9197
- setShowConfirmation: a,
9203
+ showConfirmation: u,
9204
+ setShowConfirmation: c,
9198
9205
  action: t,
9199
9206
  customStrings: {
9200
9207
  confirmAction: sn,
@@ -9207,9 +9214,9 @@ const Ph = (e) => {
9207
9214
  /* @__PURE__ */ l(
9208
9215
  hf,
9209
9216
  {
9210
- type: r,
9211
- open: r !== null,
9212
- onOpenChange: d
9217
+ type: i,
9218
+ open: i !== null,
9219
+ onOpenChange: I
9213
9220
  }
9214
9221
  ),
9215
9222
  /* @__PURE__ */ l("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ x(
@@ -9238,8 +9245,8 @@ const Ph = (e) => {
9238
9245
  noBorder: !0,
9239
9246
  noBackground: !0,
9240
9247
  label: "Settings",
9241
- onMouseEnter: c,
9242
- onFocus: c,
9248
+ onMouseEnter: h,
9249
+ onFocus: h,
9243
9250
  children: /* @__PURE__ */ l(Ei, {})
9244
9251
  }
9245
9252
  ),
@@ -9249,7 +9256,7 @@ const Ph = (e) => {
9249
9256
  be,
9250
9257
  {
9251
9258
  label: "Profile",
9252
- onClick: () => p("profile"),
9259
+ onClick: () => v("profile"),
9253
9260
  icon: /* @__PURE__ */ l(_i, {})
9254
9261
  }
9255
9262
  ),
@@ -9257,7 +9264,7 @@ const Ph = (e) => {
9257
9264
  be,
9258
9265
  {
9259
9266
  label: "Settings",
9260
- onClick: () => p("settings"),
9267
+ onClick: () => v("settings"),
9261
9268
  icon: /* @__PURE__ */ l(Ti, {})
9262
9269
  }
9263
9270
  ),
@@ -9265,15 +9272,15 @@ const Ph = (e) => {
9265
9272
  be,
9266
9273
  {
9267
9274
  label: "History",
9268
- onClick: () => p("history"),
9275
+ onClick: () => v("history"),
9269
9276
  icon: /* @__PURE__ */ l(mi, {})
9270
9277
  }
9271
9278
  ),
9272
- u && /* @__PURE__ */ l(
9279
+ f && /* @__PURE__ */ l(
9273
9280
  be,
9274
9281
  {
9275
9282
  label: "Memories",
9276
- onClick: () => p("memories"),
9283
+ onClick: () => v("memories"),
9277
9284
  icon: /* @__PURE__ */ l(di, {})
9278
9285
  }
9279
9286
  ),
@@ -9281,7 +9288,7 @@ const Ph = (e) => {
9281
9288
  be,
9282
9289
  {
9283
9290
  label: "Usage",
9284
- onClick: () => p("usage"),
9291
+ onClick: () => v("usage"),
9285
9292
  icon: /* @__PURE__ */ l(si, {})
9286
9293
  }
9287
9294
  ),
@@ -9289,7 +9296,7 @@ const Ph = (e) => {
9289
9296
  be,
9290
9297
  {
9291
9298
  label: "About",
9292
- onClick: () => p("about"),
9299
+ onClick: () => v("about"),
9293
9300
  icon: /* @__PURE__ */ l(hi, {})
9294
9301
  }
9295
9302
  ),
@@ -9299,7 +9306,7 @@ const Ph = (e) => {
9299
9306
  be,
9300
9307
  {
9301
9308
  label: "Log out",
9302
- onClick: g,
9309
+ onClick: E,
9303
9310
  icon: /* @__PURE__ */ l("div", { className: "text-red-700", children: /* @__PURE__ */ l(oi, { monotone: !0 }) })
9304
9311
  }
9305
9312
  )
@@ -9406,18 +9413,18 @@ try {
9406
9413
  } catch {
9407
9414
  }
9408
9415
  const vf = Te(
9409
- () => import("./index.en8Vui5r.js").then((e) => ({ default: e.Bubble }))
9410
- ), Yr = (e) => /* @__PURE__ */ l(jt, { fallback: /* @__PURE__ */ l("span", { className: "inline-block" }), children: /* @__PURE__ */ l(vf, { ...e }) });
9416
+ () => import("./index.B-QAEEBf.js").then((e) => ({ default: e.Bubble }))
9417
+ ), Yr = (e) => /* @__PURE__ */ l(Vt, { fallback: /* @__PURE__ */ l("span", { className: "inline-block" }), children: /* @__PURE__ */ l(vf, { ...e }) });
9411
9418
  Yr.displayName = "AsyncBubble";
9412
9419
  const Kn = 1, yf = 150, _f = Te(
9413
9420
  () => import(
9414
9421
  /* webpackChunkName: "LazyMessageAssistant" */
9415
- "./ChatBubbleAssistant.a1OalMkY.js"
9422
+ "./ChatBubbleAssistant.C1BFw-DK.js"
9416
9423
  )
9417
9424
  ), bf = Te(
9418
9425
  () => import(
9419
9426
  /* webpackChunkName: "LazyMessageUser" */
9420
- "./ChatBubbleUser.DP50erQL.js"
9427
+ "./ChatBubbleUser.YKrCcbAs.js"
9421
9428
  )
9422
9429
  ), wf = at.memo(
9423
9430
  ({
@@ -9428,7 +9435,7 @@ const Kn = 1, yf = 150, _f = Te(
9428
9435
  isLastAssistantMessage: o = !1,
9429
9436
  status: a
9430
9437
  }) => {
9431
- const [i, s] = P(!0), u = J(Date.now()), [c] = P(
9438
+ const [i, s] = $(!0), u = J(Date.now()), [c] = $(
9432
9439
  () => o && (a === "streaming" || a === "submitted")
9433
9440
  );
9434
9441
  return M(() => {
@@ -9443,10 +9450,10 @@ const Kn = 1, yf = 150, _f = Te(
9443
9450
  }
9444
9451
  s(!1);
9445
9452
  }
9446
- }, [t, i, o]), e === so && t ? /* @__PURE__ */ x(jt, { fallback: /* @__PURE__ */ l("span", {}), children: [
9453
+ }, [t, i, o]), e === so && t ? /* @__PURE__ */ x(Vt, { fallback: /* @__PURE__ */ l("span", {}), children: [
9447
9454
  /* @__PURE__ */ l(bf, { content: t }),
9448
9455
  ";"
9449
- ] }) : (e === mt || e === cn) && o && (a === "submitted" || a === "streaming") && i ? /* @__PURE__ */ l(Yr, { tail: !0, children: /* @__PURE__ */ l(ja, { type: "dots" }) }) : (e === mt || e === cn) && t && t.trim().length >= Kn ? /* @__PURE__ */ l(jt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(
9456
+ ] }) : (e === mt || e === cn) && o && (a === "submitted" || a === "streaming") && i ? /* @__PURE__ */ l(Yr, { tail: !0, children: /* @__PURE__ */ l(ja, { type: "dots" }) }) : (e === mt || e === cn) && t && t.trim().length >= Kn ? /* @__PURE__ */ l(Vt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(
9450
9457
  _f,
9451
9458
  {
9452
9459
  role: e,
@@ -9556,7 +9563,7 @@ function Va({
9556
9563
  isComponent: e = !1,
9557
9564
  headerHeight: t = 0
9558
9565
  }) {
9559
- const { user: r, getAccessToken: n } = Ee(), [o, a] = P(`${ln}px`), [i, s] = oo(), [u, c] = P(Re()), [p, d] = P([]), [f] = Ke({
9566
+ const { user: r, getAccessToken: n } = Ee(), [o, a] = $(`${ln}px`), [i, s] = oo(), [u, c] = $(Re()), [p, d] = $([]), [f] = Ke({
9560
9567
  key: Qe + Cs,
9561
9568
  initialValue: ""
9562
9569
  }), [g] = Ke({
@@ -9569,10 +9576,10 @@ function Va({
9569
9576
  key: Qe + zs,
9570
9577
  initialValue: nt.ASC
9571
9578
  }), v = rt(() => ({
9572
- footerPosition: Xt,
9579
+ footerPosition: Qt,
9573
9580
  footerHeight: 0,
9574
9581
  footerOffset: Ae() ? ao : 0
9575
- }), []), [I, _] = St(Dm, v), E = rt(() => {
9582
+ }), []), [I, _] = xt(Dm, v), E = rt(() => {
9576
9583
  const de = Ae(), Ce = Es();
9577
9584
  return de && Ce ? "mt-1" : "mt-5";
9578
9585
  }, []), R = {
@@ -9587,13 +9594,13 @@ function Va({
9587
9594
  return m;
9588
9595
  }
9589
9596
  })()
9590
- }, [z, k] = St(
9597
+ }, [z, k] = xt(
9591
9598
  Um,
9592
9599
  R
9593
- ), [A, ie] = St(Bm, {
9600
+ ), [A, ie] = xt(Bm, {
9594
9601
  prompt: "",
9595
9602
  lastTriggeredTimestamp: 0
9596
- }), [ke, He] = St(Lm, {
9603
+ }), [ke, He] = xt(Lm, {
9597
9604
  provider: "",
9598
9605
  // OpenAI, Anthropic, etc.
9599
9606
  privateChat: !1,
@@ -9606,7 +9613,7 @@ function Va({
9606
9613
  attachments: 0,
9607
9614
  lastStreamingTimestamp: 0,
9608
9615
  lastResetTimestamp: 0
9609
- }), { data: U } = Kt({
9616
+ }), { data: U } = _t({
9610
9617
  user: r?.username,
9611
9618
  getAccessToken: n
9612
9619
  }), Je = rt(() => new Jr({
@@ -9628,7 +9635,7 @@ function Va({
9628
9635
  }, [U]), M(() => {
9629
9636
  try {
9630
9637
  const de = sessionStorage.getItem("sw-toggle-pending");
9631
- de && (de === "enabled" ? Yt(As, { containerId: "toggle-save" }) : de === "disabled" && Yt(Os, {
9638
+ de && (de === "enabled" ? Xt(As, { containerId: "toggle-save" }) : de === "disabled" && Xt(Os, {
9632
9639
  containerId: "toggle-save"
9633
9640
  }), sessionStorage.removeItem("sw-toggle-pending"));
9634
9641
  } catch {
@@ -9732,9 +9739,9 @@ export {
9732
9739
  pi as p$1,
9733
9740
  ni as p$2,
9734
9741
  Of as showErrorToast,
9735
- Yt as showSuccessToast,
9742
+ Xt as showSuccessToast,
9736
9743
  xe as st,
9737
9744
  Fe as useAiChat,
9738
- Qt as useCapability,
9745
+ Kt as useCapability,
9739
9746
  yi as z
9740
9747
  };