@versini/sassysaint 8.76.1 → 8.77.0

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 (27) hide show
  1. package/dist/chunks/{AboutChangelog.Bi_-dpeZ.js → AboutChangelog.tVLL6MtY.js} +3 -3
  2. package/dist/chunks/{AboutEntry.CTwezLPC.js → AboutEntry.D9MonPwL.js} +5 -5
  3. package/dist/chunks/{App.CV0Bjlae.js → App.CusyBC2e.js} +145 -145
  4. package/dist/chunks/{Chart.uzxgAiX2.js → Chart.bKur3H71.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.BVlp2GoO.js → ChatBubbleAssistant.CEZZn7AD.js} +23 -21
  6. package/dist/chunks/{ChatBubbleUser.BrWZttfQ.js → ChatBubbleUser.BYLIgaHX.js} +29 -28
  7. package/dist/chunks/{ChatHistoryTable.uFTyBF2A.js → ChatHistoryTable.D9mUtUwJ.js} +91 -90
  8. package/dist/chunks/HistoryEntry.DarYFRIp.js +316 -0
  9. package/dist/chunks/{ProfileEntry.CyBWFkHS.js → ProfileEntry.C_Y--pVY.js} +2 -2
  10. package/dist/chunks/{SettingsEntry.QaYvHkdk.js → SettingsEntry.DffchAfB.js} +3 -3
  11. package/dist/chunks/{Table.Ckql2SnG.js → Table.DBfFG7qO.js} +2 -2
  12. package/dist/chunks/{UsageEntry.CDzDYeHf.js → UsageEntry.C73mIvmD.js} +3 -3
  13. package/dist/chunks/{UserMemoriesPanel.B6egCowo.js → UserMemoriesPanel.DXx_9ifJ.js} +4 -4
  14. package/dist/chunks/{index.BXdpJpQs.js → index.AVBqcs3f.js} +1 -1
  15. package/dist/chunks/{index.A4p6x5_T.js → index.B4-jvDi6.js} +1 -1
  16. package/dist/chunks/{index.CgUGA3LA.js → index.BVMzTtBw.js} +1 -1
  17. package/dist/chunks/{index.rzw7MU5J.js → index.BcYESdDV.js} +1 -1
  18. package/dist/chunks/{index.C4Rma01G.js → index.ClJfV5zs.js} +3 -3
  19. package/dist/chunks/{index.C6T0AZQ_.js → index.Hv_qeE7S.js} +2 -2
  20. package/dist/chunks/{index.BdPmgM6G.js → index.Ly8CrT48.js} +1 -1
  21. package/dist/chunks/index.bx7cnejn.js +153 -0
  22. package/dist/chunks/{useMarkdown.B4NWSGJz.js → useMarkdown.KipSXqDZ.js} +6 -6
  23. package/dist/components/SassySaint/SassySaint.js +1 -1
  24. package/dist/index.js +4 -4
  25. package/package.json +4 -4
  26. package/dist/chunks/HistoryEntry.ThaD-b5r.js +0 -307
  27. package/dist/chunks/index.C3aZ0rB_.js +0 -142
@@ -1,6 +1,6 @@
1
1
  import { jsx as d, jsxs as N, Fragment as Ae } from "react/jsx-runtime";
2
- import { ACTION_SORT as ra, ACTION_SEARCH as na, ACTION_RESET_PROMPT as co, ACTION_TOGGLE_PROMPT as lo, useLocalStorage as ke, LOCAL_STORAGE_PREFIX as $e, LOCAL_STORAGE_CHAT_ID as uo, n as he, isDev as oa, isPWAMode as po, useChat as sa, W as aa, useClickOutside as ia, useInterval as ca, ButtonIcon as Ie, IconAddLight as la, DEFAULT_ICON_ACTION_SIZE as Ce, isTauri as Ht, useUserPreferences as Fe, useHotkeys as Lr, isProbablyiPhone as Ze, IconCloseLight as ua, IconEditLight as da, serverUrl as fo, useEntitlements as Ur, IconClose as ho, useHaptic as pa, L as Er, j as st, Button as nn, LOCAL_STORAGE_PRIVATE_DISCLOSURE as fa, C as Gt, IconLockedLight as ha, IconUnlockedLight as ma, IconSelected as ga, IconUnSelected as va, IconNext as ya, IconBookSparklesLight as _a, IconRewrite as ba, IconProofread as wa, IconMagic as Ia, LOCAL_STORAGE_REASONING_DISCLOSURE as Ea, IconLightBulbLight as Ta, useSaveChat as Sa, IconDownload as ka, TOAST_CHAT_SAVED as Ca, IconSendLight as xa, PROMPT_CLASSNAME as Aa, PROMPT_EDITABLE_AREA_CLASSNAME as Na, useChatsHistory as Oa, useUniqueId as Pa, Y as mo, ERROR_MESSAGE as Ra, t as _t, CLIPBOARD_PROMPT as on, INPUT_PLACEHOLDER_TEXT_MOBILE as sn, INPUT_PLACEHOLDER_TEXT_ENTER as an, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as cn, isProbablyMobile as Tr, getHotkeyHandler as za, m as Ma, FOOTER_DISCLAIMERS as ln, useViewportSize as $a, useVisualViewportSize as Za, useResizeObserver as go, isProbablyiPad as Da, INPUT_BOTTOM_OFFSET_EXTRA as un, INPUT_BOTTOM_OFFSET_IPHONE as La, INPUT_BOTTOM_OFFSET_IPAD as Ua, INPUT_BOTTOM_OFFSET as vo, getLayoutPaddingClass as Sr, canEvaluateModels as dn, w as ja, IconOpenAI as Fa, Z as Ba, IconAnthropic as Va, E as Ha, IconGoogleGemini as Ga, z as Ja, x as Wa, N as ur, setNewProvider as pn, TOAST_PROVIDER_CHANGED as fn, useQueryClient as Ya, LOG_OUT as hn, IconProfile as qa, IconSliders as Xa, IconHistory as Ka, IconEditUser as Qa, IconChart as ei, IconInfo as ti, IconBack as ri, IconSettings as ni, $ as yo, J as mn, useInViewport as oi, useServerCapabilities as si, getMessageContaintWrapperClass as ai, UI_FOOTER_BUFFER as _o, UI_BUTTON_SCROLL_BUFFER as ii, Logo as ci, UI_DEFAULT_MAIN_HEIGHT as gn, applyOledMode as li, UI_DEFAULT_MAIN_HEIGHT_IPHONE as ui, APP_CLASSNAME as di, f as vn, h as pi, LOCAL_STORAGE_SORT as fi, LOCAL_STORAGE_SEARCH as hi, LOCAL_STORAGE_OLED_MODE as mi, LOCAL_STORAGE_FULL_SCREEN as gi, LOCAL_STORAGE_SORT_TIMESTAMP as vi, LOCAL_STORAGE_SORT_TOKEN_USAGE as yi, TOAST_CACHE_ENABLED as _i, TOAST_CACHE_DISABLED as bi } from "./index.rzw7MU5J.js";
3
- import ct, { useRef as J, useCallback as Y, useSyncExternalStore as dr, useEffect as $, useState as z, createContext as jr, useContext as q, forwardRef as Ke, cloneElement as wi, useId as bo, useLayoutEffect as Fr, useMemo as we, Suspense as Jt, lazy as Oe, useReducer as Ot } from "react";
2
+ import { ACTION_SORT as ra, ACTION_SEARCH as na, ACTION_RESET_PROMPT as co, ACTION_TOGGLE_PROMPT as lo, useLocalStorage as ke, LOCAL_STORAGE_PREFIX as $e, LOCAL_STORAGE_CHAT_ID as uo, n as he, isDev as oa, isPWAMode as po, isTauri as _t, useChat as sa, W as aa, useClickOutside as ia, useInterval as ca, ButtonIcon as Ie, IconAddLight as la, DEFAULT_ICON_ACTION_SIZE as Ce, useUserPreferences as Fe, useHotkeys as Lr, isProbablyiPhone as Ze, IconCloseLight as ua, IconEditLight as da, serverUrl as fo, useEntitlements as Ur, IconClose as ho, useHaptic as pa, L as Er, j as st, Button as nn, LOCAL_STORAGE_PRIVATE_DISCLOSURE as fa, C as Gt, IconLockedLight as ha, IconUnlockedLight as ma, IconSelected as ga, IconUnSelected as va, IconNext as ya, IconBookSparklesLight as _a, IconRewrite as ba, IconProofread as wa, IconMagic as Ia, LOCAL_STORAGE_REASONING_DISCLOSURE as Ea, IconLightBulbLight as Ta, useSaveChat as Sa, IconDownload as ka, TOAST_CHAT_SAVED as Ca, IconSendLight as xa, PROMPT_CLASSNAME as Aa, PROMPT_EDITABLE_AREA_CLASSNAME as Na, useChatsHistory as Oa, useUniqueId as Pa, Y as mo, ERROR_MESSAGE as Ra, t as bt, CLIPBOARD_PROMPT as on, INPUT_PLACEHOLDER_TEXT_MOBILE as sn, INPUT_PLACEHOLDER_TEXT_ENTER as an, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as cn, isProbablyMobile as Tr, getHotkeyHandler as za, m as Ma, FOOTER_DISCLAIMERS as ln, useViewportSize as $a, useVisualViewportSize as Za, useResizeObserver as go, isProbablyiPad as Da, INPUT_BOTTOM_OFFSET_EXTRA as un, INPUT_BOTTOM_OFFSET_IPHONE as La, INPUT_BOTTOM_OFFSET_IPAD as Ua, INPUT_BOTTOM_OFFSET as vo, getLayoutPaddingClass as Sr, canEvaluateModels as dn, w as ja, IconOpenAI as Fa, Z as Ba, IconAnthropic as Va, E as Ha, IconGoogleGemini as Ga, z as Ja, x as Wa, N as ur, setNewProvider as pn, TOAST_PROVIDER_CHANGED as fn, useQueryClient as Ya, LOG_OUT as hn, IconProfile as qa, IconSliders as Xa, IconHistory as Ka, IconEditUser as Qa, IconChart as ei, IconInfo as ti, IconBack as ri, IconSettings as ni, $ as yo, J as mn, useInViewport as oi, useServerCapabilities as si, getMessageContaintWrapperClass as ai, UI_FOOTER_BUFFER as _o, UI_BUTTON_SCROLL_BUFFER as ii, Logo as ci, UI_DEFAULT_MAIN_HEIGHT as gn, applyOledMode as li, UI_DEFAULT_MAIN_HEIGHT_IPHONE as ui, APP_CLASSNAME as di, f as vn, h as pi, LOCAL_STORAGE_SORT as fi, LOCAL_STORAGE_SEARCH as hi, LOCAL_STORAGE_OLED_MODE as mi, LOCAL_STORAGE_FULL_SCREEN as gi, LOCAL_STORAGE_SORT_TIMESTAMP as vi, LOCAL_STORAGE_SORT_TOKEN_USAGE as yi, TOAST_CACHE_ENABLED as _i, TOAST_CACHE_DISABLED as bi } from "./index.BcYESdDV.js";
3
+ import ct, { useRef as J, useCallback as Y, useSyncExternalStore as dr, useEffect as $, useState as z, createContext as jr, useContext as q, forwardRef as Ke, cloneElement as wi, useId as bo, useLayoutEffect as Fr, useMemo as we, Suspense as Jt, lazy as Oe, useReducer as Pt } from "react";
4
4
  import O from "clsx";
5
5
  import { computePosition as Ii, offset as wo, flip as Io, shift as Eo, arrow as Ei, useMergeRefs as Br, FloatingPortal as kr, FloatingOverlay as Ti, FloatingFocusManager as Cr, useFloating as To, useClick as So, useDismiss as ko, useRole as Co, useInteractions as xo, useFloatingParentNodeId as Ao, FloatingTree as Si, useListItem as No, useFloatingTree as Oo, useFloatingNodeId as ki, autoUpdate as Ci, useHover as xi, safePolygon as Ai, useListNavigation as Ni, useTypeahead as Oi, FloatingNode as yn, FloatingList as _n } from "@floating-ui/react";
6
6
  const at = {
@@ -262,7 +262,7 @@ function _(e, t, r) {
262
262
  value: (a) => r?.Parent && a instanceof r.Parent ? !0 : a?._zod?.traits?.has(e)
263
263
  }), Object.defineProperty(i, "name", { value: e }), i;
264
264
  }
265
- class bt extends Error {
265
+ class wt extends Error {
266
266
  constructor() {
267
267
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
268
268
  }
@@ -352,7 +352,7 @@ function qt(e) {
352
352
  return !(Yt(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
353
353
  }
354
354
  const Hi = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
355
- function St(e) {
355
+ function kt(e) {
356
356
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
357
357
  }
358
358
  function Qe(e, t, r) {
@@ -493,13 +493,13 @@ function Ye(e, t) {
493
493
  return (n = r).path ?? (n.path = []), r.path.unshift(e), r;
494
494
  });
495
495
  }
496
- function Pt(e) {
496
+ function Rt(e) {
497
497
  return typeof e == "string" ? e : e?.message;
498
498
  }
499
499
  function Ue(e, t, r) {
500
500
  const n = { ...e, path: e.path ?? [] };
501
501
  if (!e.message) {
502
- const o = Pt(e.inst?._zod.def?.error?.(e)) ?? Pt(t?.error?.(e)) ?? Pt(r.customError?.(e)) ?? Pt(r.localeError?.(e)) ?? "Invalid input";
502
+ const o = Rt(e.inst?._zod.def?.error?.(e)) ?? Rt(t?.error?.(e)) ?? Rt(r.customError?.(e)) ?? Rt(r.localeError?.(e)) ?? "Invalid input";
503
503
  n.message = o;
504
504
  }
505
505
  return delete n.inst, delete n.continue, t?.reportInput || delete n.input, n;
@@ -507,7 +507,7 @@ function Ue(e, t, r) {
507
507
  function Jr(e) {
508
508
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
509
509
  }
510
- function wt(...e) {
510
+ function It(...e) {
511
511
  const [t, r, n] = e;
512
512
  return typeof t == "string" ? {
513
513
  message: t,
@@ -566,7 +566,7 @@ function tc(e, t) {
566
566
  const rc = (e) => (t, r, n, o) => {
567
567
  const s = n ? Object.assign(n, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: r, issues: [] }, s);
568
568
  if (i instanceof Promise)
569
- throw new bt();
569
+ throw new wt();
570
570
  if (i.issues.length) {
571
571
  const a = new (o?.Err ?? e)(i.issues.map((l) => Ue(l, s, Le())));
572
572
  throw Jo(a, o?.callee), a;
@@ -583,7 +583,7 @@ const rc = (e) => (t, r, n, o) => {
583
583
  }, Xo = (e) => (t, r, n) => {
584
584
  const o = n ? { ...n, async: !1 } : { async: !1 }, s = t._zod.run({ value: r, issues: [] }, o);
585
585
  if (s instanceof Promise)
586
- throw new bt();
586
+ throw new wt();
587
587
  return s.issues.length ? {
588
588
  success: !1,
589
589
  error: new (e ?? Yo)(s.issues.map((i) => Ue(i, o, Le())))
@@ -833,7 +833,7 @@ const Cc = (e) => {
833
833
  t.pattern ?? (t.pattern = Rc), or.init(e, t);
834
834
  }), Fc = /* @__PURE__ */ _("$ZodCheckIncludes", (e, t) => {
835
835
  ae.init(e, t);
836
- const r = St(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
836
+ const r = kt(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
837
837
  t.pattern = n, e._zod.onattach.push((o) => {
838
838
  const s = o._zod.bag;
839
839
  s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(n);
@@ -850,7 +850,7 @@ const Cc = (e) => {
850
850
  };
851
851
  }), Bc = /* @__PURE__ */ _("$ZodCheckStartsWith", (e, t) => {
852
852
  ae.init(e, t);
853
- const r = new RegExp(`^${St(t.prefix)}.*`);
853
+ const r = new RegExp(`^${kt(t.prefix)}.*`);
854
854
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
855
855
  const o = n._zod.bag;
856
856
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(r);
@@ -867,7 +867,7 @@ const Cc = (e) => {
867
867
  };
868
868
  }), Vc = /* @__PURE__ */ _("$ZodCheckEndsWith", (e, t) => {
869
869
  ae.init(e, t);
870
- const r = new RegExp(`.*${St(t.suffix)}$`);
870
+ const r = new RegExp(`.*${kt(t.suffix)}$`);
871
871
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
872
872
  const o = n._zod.bag;
873
873
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(r);
@@ -937,7 +937,7 @@ const Jc = {
937
937
  continue;
938
938
  const u = s.issues.length, m = f._zod.check(s);
939
939
  if (m instanceof Promise && a?.async === !1)
940
- throw new bt();
940
+ throw new wt();
941
941
  if (c || m instanceof Promise)
942
942
  c = (c ?? Promise.resolve()).then(async () => {
943
943
  await m, s.issues.length !== u && (l || (l = vt(s, u)));
@@ -954,7 +954,7 @@ const Jc = {
954
954
  const a = e._zod.parse(s, i);
955
955
  if (a instanceof Promise) {
956
956
  if (i.async === !1)
957
- throw new bt();
957
+ throw new wt();
958
958
  return a.then((l) => o(l, n, i));
959
959
  }
960
960
  return o(a, n, i);
@@ -1261,7 +1261,7 @@ const Tl = /* @__PURE__ */ _("$ZodArray", (e, t) => {
1261
1261
  return s.length ? Promise.all(s).then(() => r) : r;
1262
1262
  };
1263
1263
  });
1264
- function Rt(e, t, r) {
1264
+ function zt(e, t, r) {
1265
1265
  e.issues.length && t.issues.push(...Ye(r, e.issues)), t.value[r] = e.value;
1266
1266
  }
1267
1267
  function Tn(e, t, r, n) {
@@ -1364,7 +1364,7 @@ const Sl = /* @__PURE__ */ _("$ZodObject", (e, t) => {
1364
1364
  const w = f.shape;
1365
1365
  for (const v of f.keys) {
1366
1366
  const T = w[v], R = T._zod.run({ value: g[v], issues: [] }, m), x = T._zod.optin === "optional" && T._zod.optout === "optional";
1367
- R instanceof Promise ? h.push(R.then((k) => x ? Tn(k, u, v, g) : Rt(k, u, v))) : x ? Tn(R, u, v, g) : Rt(R, u, v);
1367
+ R instanceof Promise ? h.push(R.then((k) => x ? Tn(k, u, v, g) : zt(k, u, v))) : x ? Tn(R, u, v, g) : zt(R, u, v);
1368
1368
  }
1369
1369
  }
1370
1370
  if (!c)
@@ -1378,7 +1378,7 @@ const Sl = /* @__PURE__ */ _("$ZodObject", (e, t) => {
1378
1378
  continue;
1379
1379
  }
1380
1380
  const v = I.run({ value: g[w], issues: [] }, m);
1381
- v instanceof Promise ? h.push(v.then((T) => Rt(T, u, w))) : Rt(v, u, w);
1381
+ v instanceof Promise ? h.push(v.then((T) => zt(T, u, w))) : zt(v, u, w);
1382
1382
  }
1383
1383
  return p.length && u.issues.push({
1384
1384
  code: "unrecognized_keys",
@@ -1585,7 +1585,7 @@ const xl = /* @__PURE__ */ _("$ZodRecord", (e, t) => {
1585
1585
  }), Al = /* @__PURE__ */ _("$ZodEnum", (e, t) => {
1586
1586
  j.init(e, t);
1587
1587
  const r = Go(t.entries);
1588
- e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) => Hi.has(typeof n)).map((n) => typeof n == "string" ? St(n) : n.toString()).join("|")})$`), e._zod.parse = (n, o) => {
1588
+ e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) => Hi.has(typeof n)).map((n) => typeof n == "string" ? kt(n) : n.toString()).join("|")})$`), e._zod.parse = (n, o) => {
1589
1589
  const s = n.value;
1590
1590
  return e._zod.values.has(s) || n.issues.push({
1591
1591
  code: "invalid_value",
@@ -1595,7 +1595,7 @@ const xl = /* @__PURE__ */ _("$ZodRecord", (e, t) => {
1595
1595
  }), n;
1596
1596
  };
1597
1597
  }), Nl = /* @__PURE__ */ _("$ZodLiteral", (e, t) => {
1598
- j.init(e, t), e._zod.values = new Set(t.values), e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? St(r) : r ? r.toString() : String(r)).join("|")})$`), e._zod.parse = (r, n) => {
1598
+ j.init(e, t), e._zod.values = new Set(t.values), e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? kt(r) : r ? r.toString() : String(r)).join("|")})$`), e._zod.parse = (r, n) => {
1599
1599
  const o = r.value;
1600
1600
  return e._zod.values.has(o) || r.issues.push({
1601
1601
  code: "invalid_value",
@@ -1610,7 +1610,7 @@ const xl = /* @__PURE__ */ _("$ZodRecord", (e, t) => {
1610
1610
  if (n.async)
1611
1611
  return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (r.value = i, r));
1612
1612
  if (o instanceof Promise)
1613
- throw new bt();
1613
+ throw new wt();
1614
1614
  return r.value = o, r;
1615
1615
  };
1616
1616
  }), Pl = /* @__PURE__ */ _("$ZodOptional", (e, t) => {
@@ -1710,7 +1710,7 @@ function On(e, t, r, n) {
1710
1710
  continue: !n._zod.def.abort
1711
1711
  // params: inst._zod.def.params,
1712
1712
  };
1713
- n._zod.def.params && (o.params = n._zod.def.params), t.issues.push(wt(o));
1713
+ n._zod.def.params && (o.params = n._zod.def.params), t.issues.push(It(o));
1714
1714
  }
1715
1715
  }
1716
1716
  class cs {
@@ -2137,23 +2137,23 @@ function ku(e, t) {
2137
2137
  suffix: e
2138
2138
  });
2139
2139
  }
2140
- function kt(e) {
2140
+ function Ct(e) {
2141
2141
  return new Hc({
2142
2142
  check: "overwrite",
2143
2143
  tx: e
2144
2144
  });
2145
2145
  }
2146
2146
  function Cu(e) {
2147
- return kt((t) => t.normalize(e));
2147
+ return Ct((t) => t.normalize(e));
2148
2148
  }
2149
2149
  function xu() {
2150
- return kt((e) => e.trim());
2150
+ return Ct((e) => e.trim());
2151
2151
  }
2152
2152
  function Au() {
2153
- return kt((e) => e.toLowerCase());
2153
+ return Ct((e) => e.toLowerCase());
2154
2154
  }
2155
2155
  function Nu() {
2156
- return kt((e) => e.toUpperCase());
2156
+ return Ct((e) => e.toUpperCase());
2157
2157
  }
2158
2158
  function Ou(e, t, r) {
2159
2159
  return new e({
@@ -2752,7 +2752,7 @@ const Bu = (e, t) => {
2752
2752
  ]
2753
2753
  }
2754
2754
  // { parent: true }
2755
- ), e.clone = (r, n) => Qe(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => Vu(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Gu(e, r, n), e.parseAsync = async (r, n) => Hu(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => ds(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(Fd(r, n)), e.superRefine = (r) => e.check(Bd(r)), e.overwrite = (r) => e.check(kt(r)), e.optional = () => Ln(e), e.nullable = () => Un(e), e.nullish = () => Ln(Un(e)), e.nonoptional = (r) => Rd(e, r), e.array = () => lt(e), e.or = (r) => fe([e, r]), e.and = (r) => Id(e, r), e.transform = (r) => jn(e, Cd(r)), e.default = (r) => Nd(e, r), e.prefault = (r) => Pd(e, r), e.catch = (r) => Md(e, r), e.pipe = (r) => jn(e, r), e.readonly = () => Dd(e), e.describe = (r) => {
2755
+ ), e.clone = (r, n) => Qe(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => Vu(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Gu(e, r, n), e.parseAsync = async (r, n) => Hu(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => ds(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(Fd(r, n)), e.superRefine = (r) => e.check(Bd(r)), e.overwrite = (r) => e.check(Ct(r)), e.optional = () => Ln(e), e.nullable = () => Un(e), e.nullish = () => Ln(Un(e)), e.nonoptional = (r) => Rd(e, r), e.array = () => lt(e), e.or = (r) => fe([e, r]), e.and = (r) => Id(e, r), e.transform = (r) => jn(e, Cd(r)), e.default = (r) => Nd(e, r), e.prefault = (r) => Pd(e, r), e.catch = (r) => Md(e, r), e.pipe = (r) => jn(e, r), e.readonly = () => Dd(e), e.describe = (r) => {
2756
2756
  const n = e.clone();
2757
2757
  return ft.add(n, { description: r }), n;
2758
2758
  }, Object.defineProperty(e, "description", {
@@ -2770,7 +2770,7 @@ const Bu = (e, t) => {
2770
2770
  const r = e._zod.bag;
2771
2771
  e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(wu(...n)), e.includes = (...n) => e.check(Tu(...n)), e.startsWith = (...n) => e.check(Su(...n)), e.endsWith = (...n) => e.check(ku(...n)), e.min = (...n) => e.check(Xt(...n)), e.max = (...n) => e.check(ls(...n)), e.length = (...n) => e.check(us(...n)), e.nonempty = (...n) => e.check(Xt(1, ...n)), e.lowercase = (n) => e.check(Iu(n)), e.uppercase = (n) => e.check(Eu(n)), e.trim = () => e.check(xu()), e.normalize = (...n) => e.check(Cu(...n)), e.toLowerCase = () => e.check(Au()), e.toUpperCase = () => e.check(Nu());
2772
2772
  }), Ju = /* @__PURE__ */ _("ZodString", (e, t) => {
2773
- Wr.init(e, t), ps.init(e, t), e.email = (r) => e.check(Vl(Wu, r)), e.url = (r) => e.check(Yl(Yu, r)), e.jwt = (r) => e.check(uu(ud, r)), e.emoji = (r) => e.check(ql(qu, r)), e.guid = (r) => e.check(Pn(Zn, r)), e.uuid = (r) => e.check(Hl(zt, r)), e.uuidv4 = (r) => e.check(Gl(zt, r)), e.uuidv6 = (r) => e.check(Jl(zt, r)), e.uuidv7 = (r) => e.check(Wl(zt, r)), e.nanoid = (r) => e.check(Xl(Xu, r)), e.guid = (r) => e.check(Pn(Zn, r)), e.cuid = (r) => e.check(Kl(Ku, r)), e.cuid2 = (r) => e.check(Ql(Qu, r)), e.ulid = (r) => e.check(eu(ed, r)), e.base64 = (r) => e.check(iu(id, r)), e.base64url = (r) => e.check(cu(cd, r)), e.xid = (r) => e.check(tu(td, r)), e.ksuid = (r) => e.check(ru(rd, r)), e.ipv4 = (r) => e.check(nu(nd, r)), e.ipv6 = (r) => e.check(ou(od, r)), e.cidrv4 = (r) => e.check(su(sd, r)), e.cidrv6 = (r) => e.check(au(ad, r)), e.e164 = (r) => e.check(lu(ld, r)), e.datetime = (r) => e.check($u(r)), e.date = (r) => e.check(Du(r)), e.time = (r) => e.check(Uu(r)), e.duration = (r) => e.check(Fu(r));
2773
+ Wr.init(e, t), ps.init(e, t), e.email = (r) => e.check(Vl(Wu, r)), e.url = (r) => e.check(Yl(Yu, r)), e.jwt = (r) => e.check(uu(ud, r)), e.emoji = (r) => e.check(ql(qu, r)), e.guid = (r) => e.check(Pn(Zn, r)), e.uuid = (r) => e.check(Hl(Mt, r)), e.uuidv4 = (r) => e.check(Gl(Mt, r)), e.uuidv6 = (r) => e.check(Jl(Mt, r)), e.uuidv7 = (r) => e.check(Wl(Mt, r)), e.nanoid = (r) => e.check(Xl(Xu, r)), e.guid = (r) => e.check(Pn(Zn, r)), e.cuid = (r) => e.check(Kl(Ku, r)), e.cuid2 = (r) => e.check(Ql(Qu, r)), e.ulid = (r) => e.check(eu(ed, r)), e.base64 = (r) => e.check(iu(id, r)), e.base64url = (r) => e.check(cu(cd, r)), e.xid = (r) => e.check(tu(td, r)), e.ksuid = (r) => e.check(ru(rd, r)), e.ipv4 = (r) => e.check(nu(nd, r)), e.ipv6 = (r) => e.check(ou(od, r)), e.cidrv4 = (r) => e.check(su(sd, r)), e.cidrv6 = (r) => e.check(au(ad, r)), e.e164 = (r) => e.check(lu(ld, r)), e.datetime = (r) => e.check($u(r)), e.date = (r) => e.check(Du(r)), e.time = (r) => e.check(Uu(r)), e.duration = (r) => e.check(Fu(r));
2774
2774
  });
2775
2775
  function S(e) {
2776
2776
  return Bl(Ju, e);
@@ -2781,7 +2781,7 @@ const G = /* @__PURE__ */ _("ZodStringFormat", (e, t) => {
2781
2781
  qc.init(e, t), G.init(e, t);
2782
2782
  }), Zn = /* @__PURE__ */ _("ZodGUID", (e, t) => {
2783
2783
  Wc.init(e, t), G.init(e, t);
2784
- }), zt = /* @__PURE__ */ _("ZodUUID", (e, t) => {
2784
+ }), Mt = /* @__PURE__ */ _("ZodUUID", (e, t) => {
2785
2785
  Yc.init(e, t), G.init(e, t);
2786
2786
  }), Yu = /* @__PURE__ */ _("ZodURL", (e, t) => {
2787
2787
  Xc.init(e, t), G.init(e, t);
@@ -2983,10 +2983,10 @@ const kd = /* @__PURE__ */ _("ZodTransform", (e, t) => {
2983
2983
  Ol.init(e, t), V.init(e, t), e._zod.parse = (r, n) => {
2984
2984
  r.addIssue = (s) => {
2985
2985
  if (typeof s == "string")
2986
- r.issues.push(wt(s, r.value, t));
2986
+ r.issues.push(It(s, r.value, t));
2987
2987
  else {
2988
2988
  const i = s;
2989
- i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = r.value), i.inst ?? (i.inst = e), i.continue ?? (i.continue = !0), r.issues.push(wt(i));
2989
+ i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = r.value), i.inst ?? (i.inst = e), i.continue ?? (i.continue = !0), r.issues.push(It(i));
2990
2990
  }
2991
2991
  };
2992
2992
  const o = t.transform(r.value, r);
@@ -3109,10 +3109,10 @@ function Fd(e, t = {}) {
3109
3109
  function Bd(e) {
3110
3110
  const t = jd((r) => (r.addIssue = (n) => {
3111
3111
  if (typeof n == "string")
3112
- r.issues.push(wt(n, r.value, t._zod.def));
3112
+ r.issues.push(It(n, r.value, t._zod.def));
3113
3113
  else {
3114
3114
  const o = n;
3115
- o.fatal && (o.continue = !1), o.code ?? (o.code = "custom"), o.input ?? (o.input = r.value), o.inst ?? (o.inst = t), o.continue ?? (o.continue = !t._zod.def.abort), r.issues.push(wt(o));
3115
+ o.fatal && (o.continue = !1), o.code ?? (o.code = "custom"), o.input ?? (o.input = r.value), o.inst ?? (o.inst = t), o.continue ?? (o.continue = !t._zod.def.abort), r.issues.push(It(o));
3116
3116
  }
3117
3117
  }, e(r.value, r)));
3118
3118
  return t;
@@ -3133,7 +3133,7 @@ var A;
3133
3133
  (function(e) {
3134
3134
  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";
3135
3135
  })(A || (A = {}));
3136
- var Ct = ({
3136
+ var xt = ({
3137
3137
  prefix: e,
3138
3138
  size: t = 16,
3139
3139
  alphabet: r = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
@@ -3153,7 +3153,7 @@ var Ct = ({
3153
3153
  message: `The separator "${n}" must not be part of the alphabet "${r}".`
3154
3154
  });
3155
3155
  return () => `${e}${n}${o()}`;
3156
- }, Vd = Ct();
3156
+ }, Vd = xt();
3157
3157
  function Fn(e = globalThis) {
3158
3158
  var t, r, n;
3159
3159
  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";
@@ -4295,18 +4295,18 @@ var Wn = "5.0.86", xs = fe([
4295
4295
  },
4296
4296
  { message: "Must be a Buffer" }
4297
4297
  )
4298
- ]), It = Ud(
4298
+ ]), Et = Ud(
4299
4299
  () => fe([
4300
4300
  md(),
4301
4301
  S(),
4302
4302
  dd(),
4303
4303
  se(),
4304
- Nr(S(), It),
4305
- lt(It)
4304
+ Nr(S(), Et),
4305
+ lt(Et)
4306
4306
  ])
4307
4307
  ), W = Nr(
4308
4308
  S(),
4309
- Nr(S(), It)
4309
+ Nr(S(), Et)
4310
4310
  ), As = re({
4311
4311
  type: P("text"),
4312
4312
  text: S(),
@@ -4340,7 +4340,7 @@ var Wn = "5.0.86", xs = fe([
4340
4340
  }),
4341
4341
  re({
4342
4342
  type: P("json"),
4343
- value: It
4343
+ value: Et
4344
4344
  }),
4345
4345
  re({
4346
4346
  type: P("error-text"),
@@ -4348,7 +4348,7 @@ var Wn = "5.0.86", xs = fe([
4348
4348
  }),
4349
4349
  re({
4350
4350
  type: P("error-json"),
4351
- value: It
4351
+ value: Et
4352
4352
  }),
4353
4353
  re({
4354
4354
  type: P("content"),
@@ -4411,7 +4411,7 @@ fe([
4411
4411
  of,
4412
4412
  sf
4413
4413
  ]);
4414
- Ct({
4414
+ xt({
4415
4415
  prefix: "aitxt",
4416
4416
  size: 24
4417
4417
  });
@@ -4833,14 +4833,14 @@ async function Rs(e) {
4833
4833
  let t = await er({ text: e });
4834
4834
  return t.success ? { value: t.value, state: "successful-parse" } : (t = await er({ text: lf(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
4835
4835
  }
4836
- function Lt(e) {
4836
+ function Ut(e) {
4837
4837
  return e.type.startsWith("tool-");
4838
4838
  }
4839
4839
  function uf(e) {
4840
4840
  return e.type === "dynamic-tool";
4841
4841
  }
4842
4842
  function Yn(e) {
4843
- return Lt(e) || uf(e);
4843
+ return Ut(e) || uf(e);
4844
4844
  }
4845
4845
  function qn(e) {
4846
4846
  return e.type.split("-").slice(1).join("-");
@@ -4876,7 +4876,7 @@ function pf({
4876
4876
  await n(async ({ state: c, write: f }) => {
4877
4877
  var u, m, g, h;
4878
4878
  function p(v) {
4879
- const R = c.message.parts.filter(Lt).find(
4879
+ const R = c.message.parts.filter(Ut).find(
4880
4880
  (x) => x.toolCallId === v
4881
4881
  );
4882
4882
  if (R == null)
@@ -4900,7 +4900,7 @@ function pf({
4900
4900
  function I(v) {
4901
4901
  var T;
4902
4902
  const R = c.message.parts.find(
4903
- (C) => Lt(C) && C.toolCallId === v.toolCallId
4903
+ (C) => Ut(C) && C.toolCallId === v.toolCallId
4904
4904
  ), x = v, k = R;
4905
4905
  R != null ? (R.state = v.state, k.input = x.input, k.output = x.output, k.errorText = x.errorText, k.rawInput = x.rawInput, k.preliminary = x.preliminary, k.providerExecuted = (T = x.providerExecuted) != null ? T : R.providerExecuted, x.providerMetadata != null && R.state === "input-available" && (R.callProviderMetadata = x.providerMetadata)) : c.message.parts.push({
4906
4906
  type: `tool-${v.toolName}`,
@@ -5013,7 +5013,7 @@ function pf({
5013
5013
  break;
5014
5014
  }
5015
5015
  case "tool-input-start": {
5016
- const v = c.message.parts.filter(Lt);
5016
+ const v = c.message.parts.filter(Ut);
5017
5017
  c.partialToolCalls[a.toolCallId] = {
5018
5018
  text: "",
5019
5019
  toolName: a.toolName,
@@ -5214,11 +5214,11 @@ async function ff({
5214
5214
  r.releaseLock();
5215
5215
  }
5216
5216
  }
5217
- Ct({
5217
+ xt({
5218
5218
  prefix: "aitxt",
5219
5219
  size: 24
5220
5220
  });
5221
- Ct({ prefix: "aiobj", size: 24 });
5221
+ xt({ prefix: "aiobj", size: 24 });
5222
5222
  var hf = class {
5223
5223
  constructor() {
5224
5224
  this.queue = [], this.isProcessing = !1;
@@ -5242,7 +5242,7 @@ var hf = class {
5242
5242
  });
5243
5243
  }
5244
5244
  };
5245
- Ct({ prefix: "aiobj", size: 24 });
5245
+ xt({ prefix: "aiobj", size: 24 });
5246
5246
  var mf = {};
5247
5247
  qp(mf, {
5248
5248
  object: () => vf,
@@ -5717,7 +5717,7 @@ const zs = async () => (yr || (yr = import(
5717
5717
  "./index.790ujKXR.js"
5718
5718
  )), yr), Ms = async () => (_r || (_r = import(
5719
5719
  /* webpackChunkName: "toast-utilities" */
5720
- "./index.rzw7MU5J.js"
5720
+ "./index.BcYESdDV.js"
5721
5721
  ).then((e) => e.utilities)), _r), Sf = async () => {
5722
5722
  try {
5723
5723
  await Promise.all([zs(), Ms()]);
@@ -5739,9 +5739,9 @@ const zs = async () => (yr || (yr = import(
5739
5739
  }, 100);
5740
5740
  } catch {
5741
5741
  }
5742
- }, Et = (e, t) => $s(e, "success", t), ym = (e, t) => $s(e, "error", t), yt = "FOOTER_BOTTOM", tr = "FOOTER_TOP", Ut = "APP_SET_FOOTER_POSITION", Zs = "APP_SET_FOOTER_HEIGHT", Ds = "APP_SET_OLED_MODE", Ls = "APP_SET_FULL_SCREEN", kf = (e, t) => {
5742
+ }, Tt = (e, t) => $s(e, "success", t), ym = (e, t) => $s(e, "error", t), yt = "FOOTER_BOTTOM", tr = "FOOTER_TOP", jt = "APP_SET_FOOTER_POSITION", Zs = "APP_SET_FOOTER_HEIGHT", Ds = "APP_SET_OLED_MODE", Ls = "APP_SET_FULL_SCREEN", kf = (e, t) => {
5743
5743
  switch (t.type) {
5744
- case Ut:
5744
+ case jt:
5745
5745
  return {
5746
5746
  ...e,
5747
5747
  footerPosition: t.payload.footerPosition,
@@ -5883,9 +5883,9 @@ var js = (e, t, r) => {
5883
5883
  function Rf(e, t) {
5884
5884
  return t != null ? Pf(e, t) : e;
5885
5885
  }
5886
- var pe, jt, Ft, ht, mt, gt, nt, zr, Mr, zf = class {
5886
+ var pe, Ft, Bt, ht, mt, gt, nt, zr, Mr, zf = class {
5887
5887
  constructor(e = []) {
5888
- Te(this, pe, void 0), Te(this, jt, "ready"), Te(this, Ft, void 0), Te(this, ht, /* @__PURE__ */ new Set()), Te(this, mt, /* @__PURE__ */ new Set()), Te(this, gt, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
5888
+ Te(this, pe, void 0), Te(this, Ft, "ready"), Te(this, Bt, void 0), Te(this, ht, /* @__PURE__ */ new Set()), Te(this, mt, /* @__PURE__ */ new Set()), Te(this, gt, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
5889
5889
  Me(this, pe, F(this, pe).concat(t)), F(this, nt).call(this);
5890
5890
  }, this.popMessage = () => {
5891
5891
  Me(this, pe, F(this, pe).slice(0, -1)), F(this, nt).call(this);
@@ -5914,16 +5914,16 @@ var pe, jt, Ft, ht, mt, gt, nt, zr, Mr, zf = class {
5914
5914
  }), Me(this, pe, e);
5915
5915
  }
5916
5916
  get status() {
5917
- return F(this, jt);
5917
+ return F(this, Ft);
5918
5918
  }
5919
5919
  set status(e) {
5920
- Me(this, jt, e), F(this, zr).call(this);
5920
+ Me(this, Ft, e), F(this, zr).call(this);
5921
5921
  }
5922
5922
  get error() {
5923
- return F(this, Ft);
5923
+ return F(this, Bt);
5924
5924
  }
5925
5925
  set error(e) {
5926
- Me(this, Ft, e), F(this, Mr).call(this);
5926
+ Me(this, Bt, e), F(this, Mr).call(this);
5927
5927
  }
5928
5928
  get messages() {
5929
5929
  return F(this, pe);
@@ -5933,8 +5933,8 @@ var pe, jt, Ft, ht, mt, gt, nt, zr, Mr, zf = class {
5933
5933
  }
5934
5934
  };
5935
5935
  pe = /* @__PURE__ */ new WeakMap();
5936
- jt = /* @__PURE__ */ new WeakMap();
5937
5936
  Ft = /* @__PURE__ */ new WeakMap();
5937
+ Bt = /* @__PURE__ */ new WeakMap();
5938
5938
  ht = /* @__PURE__ */ new WeakMap();
5939
5939
  mt = /* @__PURE__ */ new WeakMap();
5940
5940
  gt = /* @__PURE__ */ new WeakMap();
@@ -6076,26 +6076,26 @@ const Zf = ({ chatId: e }) => {
6076
6076
  t.length > 0 ? (n(e), s.current = !0) : i && s.current && (n(""), s.current = !1), o.current = e;
6077
6077
  }, [e, t.length, n]), null;
6078
6078
  };
6079
- let Mt = !1, wr = null;
6079
+ let $t = !1, wr = null;
6080
6080
  const to = ({
6081
6081
  containerId: e,
6082
6082
  ...t
6083
6083
  }) => {
6084
- const [r, n] = z(Mt);
6084
+ const [r, n] = z($t);
6085
6085
  return $(() => {
6086
- if (!Mt) {
6086
+ if (!$t) {
6087
6087
  const o = async () => {
6088
6088
  try {
6089
6089
  const { ToastContainer: i } = await import(
6090
6090
  /* webpackChunkName: "toast-react-toastify" */
6091
6091
  "./index.790ujKXR.js"
6092
6092
  );
6093
- wr = i, Mt = !0, n(!0);
6093
+ wr = i, $t = !0, n(!0);
6094
6094
  } catch (i) {
6095
6095
  console.error("Failed to load ToastContainer:", i);
6096
6096
  }
6097
6097
  }, s = () => {
6098
- Mt || o();
6098
+ $t || o();
6099
6099
  };
6100
6100
  return window.addEventListener("toast-request", s), () => {
6101
6101
  window.removeEventListener("toast-request", s);
@@ -6112,7 +6112,7 @@ const to = ({
6112
6112
  const { user: s, getAccessToken: i } = he(), [a, l] = z(!1), [c] = ke({
6113
6113
  key: $e + uo,
6114
6114
  initialValue: ""
6115
- }), u = (oa || po()) && !!c && !a && !!s?.username && c !== e, { data: m } = sa({
6115
+ }), u = (oa || po() || _t()) && !!c && !a && !!s?.username && c !== e, { data: m } = sa({
6116
6116
  chatId: u ? c : void 0,
6117
6117
  getAccessToken: i,
6118
6118
  enabled: u
@@ -6175,7 +6175,7 @@ const to = ({
6175
6175
  },
6176
6176
  setInitialMessages: () => {
6177
6177
  }
6178
- }), xt = ct.createContext({
6178
+ }), At = ct.createContext({
6179
6179
  state: {
6180
6180
  footerPosition: tr,
6181
6181
  footerHeight: 0,
@@ -6199,7 +6199,7 @@ try {
6199
6199
  });
6200
6200
  } catch {
6201
6201
  }
6202
- const jf = "av-tooltip", Ff = "av-tooltip-arrow", $t = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Bf = () => O("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), ro = ({ mode: e }) => O({
6202
+ const jf = "av-tooltip", Ff = "av-tooltip-arrow", Zt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Bf = () => O("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), ro = ({ mode: e }) => O({
6203
6203
  "bg-surface-darker": e === "dark" || e === "system",
6204
6204
  "bg-surface-light": e === "light" || e === "alt-system",
6205
6205
  "dark:bg-surface-light": e === "system",
@@ -6255,8 +6255,8 @@ const jf = "av-tooltip", Ff = "av-tooltip-arrow", $t = (e, t = "px") => typeof e
6255
6255
  ]
6256
6256
  });
6257
6257
  c?.current?.style && Object.assign(c.current.style, {
6258
- left: $t(R),
6259
- top: $t(x),
6258
+ left: Zt(R),
6259
+ top: Zt(x),
6260
6260
  ...I
6261
6261
  });
6262
6262
  const M = {
@@ -6266,8 +6266,8 @@ const jf = "av-tooltip", Ff = "av-tooltip-arrow", $t = (e, t = "px") => typeof e
6266
6266
  left: "right"
6267
6267
  }[C.split("-")[0]];
6268
6268
  f?.current?.style && Object.assign(f.current.style, {
6269
- left: $t(k.arrow?.x),
6270
- top: $t(k.arrow?.y),
6269
+ left: Zt(k.arrow?.x),
6270
+ top: Zt(k.arrow?.y),
6271
6271
  right: "",
6272
6272
  bottom: "",
6273
6273
  [M]: "-4px"
@@ -6339,7 +6339,7 @@ const jf = "av-tooltip", Ff = "av-tooltip-arrow", $t = (e, t = "px") => typeof e
6339
6339
  );
6340
6340
  function Vs(e, t) {
6341
6341
  $(() => {
6342
- if (Ht() && typeof window < "u")
6342
+ if (_t() && typeof window < "u")
6343
6343
  return window.__VERSINI_DIGGIDY_TAURI_EVENTS__ && (window.__VERSINI_DIGGIDY_TAURI_EVENTS__[e] = t), () => {
6344
6344
  window.__VERSINI_DIGGIDY_TAURI_EVENTS__ && (window.__VERSINI_DIGGIDY_TAURI_EVENTS__[e] = null);
6345
6345
  };
@@ -6375,13 +6375,13 @@ const qf = ({
6375
6375
  [
6376
6376
  "mod+N",
6377
6377
  () => {
6378
- Ht() && p();
6378
+ _t() && p();
6379
6379
  }
6380
6380
  ],
6381
6381
  [
6382
6382
  "mod+T",
6383
6383
  () => {
6384
- Ht() && p();
6384
+ _t() && p();
6385
6385
  }
6386
6386
  ]
6387
6387
  ],
@@ -6995,7 +6995,7 @@ try {
6995
6995
  });
6996
6996
  } catch {
6997
6997
  }
6998
- const Bt = /* @__PURE__ */ jr({
6998
+ const Vt = /* @__PURE__ */ jr({
6999
6999
  getItemProps: () => ({}),
7000
7000
  activeIndex: null,
7001
7001
  /* v8 ignore next 2 */
@@ -7018,7 +7018,7 @@ const Bt = /* @__PURE__ */ jr({
7018
7018
  }
7019
7019
  return "Element";
7020
7020
  }, $r = /* @__PURE__ */ Ke(({ trigger: e, children: t, label: r = "Open menu", defaultPlacement: n = "bottom-start", onOpenChange: o, mode: s = "system", focusMode: i = "system", ...a }, l) => {
7021
- const [c, f] = z(!1), [u, m] = z(!1), [g, h] = z(null), [p, y] = z(!1), I = J([]), b = J([]), w = q(Bt), v = Oo(), T = ki(), R = Ao(), x = No({
7021
+ const [c, f] = z(!1), [u, m] = z(!1), [g, h] = z(null), [p, y] = z(!1), I = J([]), b = J([]), w = q(Vt), v = Oo(), T = ki(), R = Ao(), x = No({
7022
7022
  label: r !== "Open menu" ? r : null
7023
7023
  }), k = R != null, { floatingStyles: C, refs: M, context: X } = To({
7024
7024
  nodeId: T,
@@ -7066,7 +7066,7 @@ const Bt = /* @__PURE__ */ jr({
7066
7066
  listRef: b,
7067
7067
  onMatch: c ? h : void 0,
7068
7068
  activeIndex: g
7069
- }), { getReferenceProps: ut, getFloatingProps: tt, getItemProps: At } = xo([
7069
+ }), { getReferenceProps: ut, getFloatingProps: tt, getItemProps: Nt } = xo([
7070
7070
  ie,
7071
7071
  Ve,
7072
7072
  U,
@@ -7157,11 +7157,11 @@ const Bt = /* @__PURE__ */ jr({
7157
7157
  })
7158
7158
  ]
7159
7159
  }),
7160
- /* @__PURE__ */ d(Bt.Provider, {
7160
+ /* @__PURE__ */ d(Vt.Provider, {
7161
7161
  value: {
7162
7162
  activeIndex: g,
7163
7163
  setActiveIndex: h,
7164
- getItemProps: At,
7164
+ getItemProps: Nt,
7165
7165
  setHasFocusInside: m,
7166
7166
  isOpen: c,
7167
7167
  allowHover: p,
@@ -7204,11 +7204,11 @@ const Bt = /* @__PURE__ */ jr({
7204
7204
  id: T,
7205
7205
  children: [
7206
7206
  ir,
7207
- /* @__PURE__ */ d(Bt.Provider, {
7207
+ /* @__PURE__ */ d(Vt.Provider, {
7208
7208
  value: {
7209
7209
  activeIndex: g,
7210
7210
  setActiveIndex: h,
7211
- getItemProps: At,
7211
+ getItemProps: Nt,
7212
7212
  setHasFocusInside: m,
7213
7213
  isOpen: c,
7214
7214
  allowHover: p,
@@ -7236,7 +7236,7 @@ const Bt = /* @__PURE__ */ jr({
7236
7236
  })
7237
7237
  ]
7238
7238
  });
7239
- }), Tt = /* @__PURE__ */ Ke((e, t) => Ao() === null ? /* @__PURE__ */ d(Si, {
7239
+ }), St = /* @__PURE__ */ Ke((e, t) => Ao() === null ? /* @__PURE__ */ d(Si, {
7240
7240
  children: /* @__PURE__ */ d($r, {
7241
7241
  ...e,
7242
7242
  ref: t
@@ -7245,11 +7245,11 @@ const Bt = /* @__PURE__ */ jr({
7245
7245
  ...e,
7246
7246
  ref: t
7247
7247
  }));
7248
- Tt.displayName = "Menu";
7248
+ St.displayName = "Menu";
7249
7249
  $r.displayName = "MenuComponent";
7250
7250
  const be = /* @__PURE__ */ Ke(({ label: e, disabled: t, icon: r, raw: n = !1, children: o, ignoreClick: s = !1, selected: i, ...a }, l) => {
7251
7251
  let c = "";
7252
- const f = q(Bt), u = No({
7252
+ const f = q(Vt), u = No({
7253
7253
  label: t ? null : e
7254
7254
  }), m = Oo(), g = Br([
7255
7255
  u.ref,
@@ -7339,7 +7339,7 @@ const _h = ({ className: e, ...t }) => {
7339
7339
  }
7340
7340
  });
7341
7341
  }, u = c && l && l.tags && bh(l.tags), m = /* @__PURE__ */ N(
7342
- Tt,
7342
+ St,
7343
7343
  {
7344
7344
  mode: "dark",
7345
7345
  focusMode: "light",
@@ -7513,7 +7513,7 @@ const _h = ({ className: e, ...t }) => {
7513
7513
  privateChat: !1,
7514
7514
  preserveTokenUsage: !0
7515
7515
  }
7516
- }), await Et(Ca, {
7516
+ }), await Tt(Ca, {
7517
7517
  containerId: "toggle-save"
7518
7518
  });
7519
7519
  }
@@ -7650,7 +7650,7 @@ const _h = ({ className: e, ...t }) => {
7650
7650
  wrapper: r,
7651
7651
  textArea: n
7652
7652
  };
7653
- }, Vt = (e) => {
7653
+ }, Ht = (e) => {
7654
7654
  if (e === 0)
7655
7655
  return "0 Bytes";
7656
7656
  const t = 1024, r = ["Bytes", "KB", "MB", "GB"], n = Math.floor(Math.log(e) / Math.log(t));
@@ -7675,7 +7675,7 @@ const _h = ({ className: e, ...t }) => {
7675
7675
  /* @__PURE__ */ d("span", { className: "max-w-[150px] truncate", children: r.name }),
7676
7676
  /* @__PURE__ */ N("span", { className: "mx-1 text-gray-400", children: [
7677
7677
  "(",
7678
- Vt(r.size),
7678
+ Ht(r.size),
7679
7679
  ")"
7680
7680
  ] }),
7681
7681
  /* @__PURE__ */ d(
@@ -7697,12 +7697,12 @@ const _h = ({ className: e, ...t }) => {
7697
7697
  )) }),
7698
7698
  /* @__PURE__ */ N("div", { className: "text-xs text-gray-400 mt-1 pl-1", children: [
7699
7699
  "Total: ",
7700
- Vt(Gs(Array.from(e))),
7700
+ Ht(Gs(Array.from(e))),
7701
7701
  " /",
7702
7702
  " ",
7703
- Vt(Dr)
7703
+ Ht(Dr)
7704
7704
  ] })
7705
- ] }), Js = 24, Zh = 500, Ws = 2, Dh = 5, Lh = Js * Ws, so = Dh * Js, Uh = "ready", jh = "streaming", Fh = "error", Bh = "submitted", Zt = (e) => {
7705
+ ] }), Js = 24, Zh = 500, Ws = 2, Dh = 5, Lh = Js * Ws, so = Dh * Js, Uh = "ready", jh = "streaming", Fh = "error", Bh = "submitted", Dt = (e) => {
7706
7706
  e.current && (e.current.style.height = `${Lh}px`);
7707
7707
  }, Vh = () => {
7708
7708
  const { user: e, getAccessToken: t } = he(), r = rr(Gt.ADDON.ATTACHMENTS), n = rr(Gt.ADDON.REASONING), { allowedModels: o } = Ur(), [s, i] = z(null), [a, l] = z(!1), [c, f] = z(!1), {
@@ -7718,7 +7718,7 @@ const _h = ({ className: e, ...t }) => {
7718
7718
  }
7719
7719
  } = q(Ee), { state: w, dispatch: v } = q(en), { state: T } = q(Bs), {
7720
7720
  state: { oledMode: R }
7721
- } = q(xt), { refetch: x } = Oa({
7721
+ } = q(At), { refetch: x } = Oa({
7722
7722
  enabled: !1,
7723
7723
  user: e?.username || "",
7724
7724
  searchString: T.searchString,
@@ -7731,7 +7731,7 @@ const _h = ({ className: e, ...t }) => {
7731
7731
  }), C = J(null), M = J(null), X = J(!1), ie = J(0), Ve = J(null), U = J(null), et = Pa(), ce = zh({
7732
7732
  oledMode: R,
7733
7733
  className: ""
7734
- }), ne = n && k?.showReasoningButton, { setMessages: ut, status: tt, id: At, sendMessage: dt, input: me, setInput: xe } = Be({
7734
+ }), ne = n && k?.showReasoningButton, { setMessages: ut, status: tt, id: Nt, sendMessage: dt, input: me, setInput: xe } = Be({
7735
7735
  onFinish: (D) => {
7736
7736
  x();
7737
7737
  const Q = D.message?.metadata;
@@ -7813,7 +7813,7 @@ const _h = ({ className: e, ...t }) => {
7813
7813
  ...ee,
7814
7814
  {
7815
7815
  id: Ne(),
7816
- role: _t,
7816
+ role: bt,
7817
7817
  parts: [{ type: "text", text: Ra }]
7818
7818
  }
7819
7819
  ]));
@@ -7847,7 +7847,7 @@ const _h = ({ className: e, ...t }) => {
7847
7847
  ) || ze.push(ge) : He = !0;
7848
7848
  }
7849
7849
  if (M.current && (M.current.value = ""), Gs(ze) > Dr) {
7850
- C.current = `Total file size exceeds the limit of ${Vt(
7850
+ C.current = `Total file size exceeds the limit of ${Ht(
7851
7851
  Dr
7852
7852
  )}.`, l(!0);
7853
7853
  return;
@@ -7884,20 +7884,20 @@ const _h = ({ className: e, ...t }) => {
7884
7884
  }, ea = Y(() => {
7885
7885
  M.current && (M.current.value = ""), i(null);
7886
7886
  }, []), rn = async (D) => {
7887
- D.preventDefault(), Zt(U);
7887
+ D.preventDefault(), Dt(U);
7888
7888
  const ee = await t();
7889
7889
  let Q;
7890
7890
  if (s && s.length > 0) {
7891
7891
  const ze = Array.from(s).map(
7892
- (Nt) => Mh(Nt)
7892
+ (Ot) => Mh(Ot)
7893
7893
  ), He = new DataTransfer();
7894
- ze.forEach((Nt) => He.items.add(Nt)), Q = He.files;
7894
+ ze.forEach((Ot) => He.items.add(Ot)), Q = He.files;
7895
7895
  }
7896
7896
  le(D, {
7897
7897
  headers: {
7898
7898
  "Content-Type": "application/json",
7899
7899
  authorization: `Bearer ${ee}`,
7900
- [Ma]: At
7900
+ [Ma]: Nt
7901
7901
  },
7902
7902
  body: {
7903
7903
  reasoning: m
@@ -7926,12 +7926,12 @@ const _h = ({ className: e, ...t }) => {
7926
7926
  }
7927
7927
  }, [w, v, xe]), $(() => {
7928
7928
  if (X.current === !1) {
7929
- X.current = !0, !me && Zt(U);
7929
+ X.current = !0, !me && Dt(U);
7930
7930
  return;
7931
7931
  }
7932
7932
  p > 0 && p !== ie.current ? (ie.current = p, setTimeout(() => {
7933
- U.current && (!me && Zt(U), U.current.focus());
7934
- }, Zh)) : g === !1 && !me && (Zt(U), !Ze() && U.current && U.current.focus());
7933
+ U.current && (!me && Dt(U), U.current.focus());
7934
+ }, Zh)) : g === !1 && !me && (Dt(U), !Ze() && U.current && U.current.focus());
7935
7935
  }, [p, g, me]), $(() => {
7936
7936
  w.lastTriggeredTimestamp && setTimeout(() => {
7937
7937
  Re();
@@ -8033,13 +8033,13 @@ const _h = ({ className: e, ...t }) => {
8033
8033
  ] })
8034
8034
  ] }) })
8035
8035
  ] });
8036
- }, Dt = "--sassy-bottom", Hh = ({ isComponent: e }) => {
8036
+ }, Lt = "--sassy-bottom", Hh = ({ isComponent: e }) => {
8037
8037
  const {
8038
8038
  state: { loading: t, streaming: r, restoring: n }
8039
8039
  } = q(Ee), {
8040
8040
  state: { footerHeight: o, footerPosition: s, fullScreen: i, oledMode: a },
8041
8041
  dispatch: l
8042
- } = q(xt), [c] = z(
8042
+ } = q(At), [c] = z(
8043
8043
  () => ln[Math.floor(Math.random() * ln.length)]
8044
8044
  ), { messages: f } = Be(), { height: u } = $a(), { height: m } = Za(), [g, h] = go(), p = we(() => Ze(), []), y = we(() => Da(), []), I = u - m, b = we(() => {
8045
8045
  const w = p ? La : y ? Ua : vo;
@@ -8055,35 +8055,35 @@ const _h = ({ className: e, ...t }) => {
8055
8055
  }, [h.height, o, l]), $(() => {
8056
8056
  if (!g || !g.current)
8057
8057
  return;
8058
- const w = g?.current?.style.getPropertyValue(Dt);
8058
+ const w = g?.current?.style.getPropertyValue(Lt);
8059
8059
  if (s === tr && (t && !r || n) && w !== `${b}px` && (l({
8060
- type: Ut,
8060
+ type: jt,
8061
8061
  payload: {
8062
8062
  footerPosition: yt,
8063
8063
  footerOffset: b
8064
8064
  }
8065
8065
  }), g.current.style.setProperty(
8066
- Dt,
8066
+ Lt,
8067
8067
  `${b}px`
8068
8068
  )), s === yt && w !== `${b}px` && (l({
8069
- type: Ut,
8069
+ type: jt,
8070
8070
  payload: {
8071
8071
  footerPosition: yt,
8072
8072
  footerOffset: b
8073
8073
  }
8074
8074
  }), g.current.style.setProperty(
8075
- Dt,
8075
+ Lt,
8076
8076
  `${b}px`
8077
8077
  )), !t && !r && !n && f.length === 0 && u > 0 && h.height > 0) {
8078
8078
  const v = `${u - h.height - (e ? 300 : 245)}`;
8079
8079
  w !== `${v}px` && Number(v) > 0 && (l({
8080
- type: Ut,
8080
+ type: jt,
8081
8081
  payload: {
8082
8082
  footerPosition: tr,
8083
8083
  footerOffset: Number(v)
8084
8084
  }
8085
8085
  }), g?.current?.style.setProperty(
8086
- Dt,
8086
+ Lt,
8087
8087
  `${v}px`
8088
8088
  ));
8089
8089
  }
@@ -8177,7 +8177,7 @@ const _h = ({ className: e, ...t }) => {
8177
8177
  provider: C,
8178
8178
  accessToken: await s(),
8179
8179
  username: i?.username || ""
8180
- }), h(), await Et(`${fn} ${C}`, {
8180
+ }), h(), await Tt(`${fn} ${C}`, {
8181
8181
  containerId: "toggle-provider"
8182
8182
  })), t({
8183
8183
  type: je,
@@ -8197,7 +8197,7 @@ const _h = ({ className: e, ...t }) => {
8197
8197
  username: i?.username || ""
8198
8198
  }), h();
8199
8199
  const X = ur[M] || M;
8200
- await Et(
8200
+ await Tt(
8201
8201
  `${fn} ${C} (${X})`,
8202
8202
  {
8203
8203
  containerId: "toggle-provider"
@@ -8215,7 +8215,7 @@ const _h = ({ className: e, ...t }) => {
8215
8215
  }, T = p && g, R = T && y.find(
8216
8216
  (C) => p.provider === C.id
8217
8217
  )?.icon || y[0]?.icon, x = we(() => !p?.useNestedModelSelection || !p?.model || !l || !mo(p.model, l) ? null : ur[p.model] || p.model, [p?.useNestedModelSelection, p?.model, l]), k = /* @__PURE__ */ d(Ae, { children: /* @__PURE__ */ N(
8218
- Tt,
8218
+ St,
8219
8219
  {
8220
8220
  mode: "dark",
8221
8221
  focusMode: "light",
@@ -8242,7 +8242,7 @@ const _h = ({ className: e, ...t }) => {
8242
8242
  /* @__PURE__ */ d(Zr, { children: "Providers" }),
8243
8243
  T && y.map((C) => {
8244
8244
  const M = I.get(C.id) || [];
8245
- return b && M.length > 1 ? /* @__PURE__ */ N(Tt, { label: C.label, children: [
8245
+ return b && M.length > 1 ? /* @__PURE__ */ N(St, { label: C.label, children: [
8246
8246
  /* @__PURE__ */ N(Zr, { children: [
8247
8247
  C.label,
8248
8248
  " Models"
@@ -8286,38 +8286,38 @@ const _h = ({ className: e, ...t }) => {
8286
8286
  }, Jh = Oe(
8287
8287
  () => import(
8288
8288
  /* webpackChunkName: "modal-chunk" */
8289
- "./ProfileEntry.CyBWFkHS.js"
8289
+ "./ProfileEntry.C_Y--pVY.js"
8290
8290
  ).then((e) => ({
8291
8291
  default: e.Profile
8292
8292
  }))
8293
8293
  ), Wh = Oe(
8294
8294
  () => import(
8295
8295
  /* webpackChunkName: "modal-chunk" */
8296
- "./SettingsEntry.QaYvHkdk.js"
8296
+ "./SettingsEntry.DffchAfB.js"
8297
8297
  ).then((e) => ({
8298
8298
  default: e.SettingsPanel
8299
8299
  }))
8300
8300
  ), Yh = Oe(
8301
8301
  () => import(
8302
8302
  /* webpackChunkName: "modal-chunk" */
8303
- "./HistoryEntry.ThaD-b5r.js"
8303
+ "./HistoryEntry.DarYFRIp.js"
8304
8304
  ).then((e) => ({
8305
8305
  default: e.HistoryPanel
8306
8306
  }))
8307
8307
  ), qh = Oe(
8308
8308
  () => import(
8309
8309
  /* webpackChunkName: "modal-chunk" */
8310
- "./AboutEntry.CTwezLPC.js"
8310
+ "./AboutEntry.D9MonPwL.js"
8311
8311
  ).then((e) => ({ default: e.About }))
8312
8312
  ), Xh = Oe(
8313
8313
  () => import(
8314
8314
  /* webpackChunkName: "modal-chunk" */
8315
- "./UsageEntry.CDzDYeHf.js"
8315
+ "./UsageEntry.C73mIvmD.js"
8316
8316
  ).then((e) => ({ default: e.Usage }))
8317
8317
  ), Kh = Oe(
8318
8318
  () => import(
8319
8319
  /* webpackChunkName: "modal-chunk" */
8320
- "./UserMemoriesPanel.B6egCowo.js"
8320
+ "./UserMemoriesPanel.DXx_9ifJ.js"
8321
8321
  ).then(
8322
8322
  (e) => ({ default: e.default })
8323
8323
  )
@@ -8356,7 +8356,7 @@ const _h = ({ className: e, ...t }) => {
8356
8356
  }) => {
8357
8357
  const {
8358
8358
  state: { oledMode: t }
8359
- } = q(xt), { logout: r, getAccessToken: n, user: o } = he(), s = Ya(), { data: i, isSuccess: a } = Fe({
8359
+ } = q(At), { logout: r, getAccessToken: n, user: o } = he(), s = Ya(), { data: i, isSuccess: a } = Fe({
8360
8360
  user: o?.username,
8361
8361
  getAccessToken: n
8362
8362
  }), [l, c] = z(null), [f, u] = z(!1), [m, g] = z(!1), [h, p] = z(!1), y = rr(Gt.TOOL.MEMORIES);
@@ -8367,23 +8367,23 @@ const _h = ({ className: e, ...t }) => {
8367
8367
  m || Promise.all([
8368
8368
  import(
8369
8369
  /* webpackChunkName: "modal-chunk" */
8370
- "./ProfileEntry.CyBWFkHS.js"
8370
+ "./ProfileEntry.C_Y--pVY.js"
8371
8371
  ),
8372
8372
  import(
8373
8373
  /* webpackChunkName: "modal-chunk" */
8374
- "./SettingsEntry.QaYvHkdk.js"
8374
+ "./SettingsEntry.DffchAfB.js"
8375
8375
  ),
8376
8376
  import(
8377
8377
  /* webpackChunkName: "modal-chunk" */
8378
- "./HistoryEntry.ThaD-b5r.js"
8378
+ "./HistoryEntry.DarYFRIp.js"
8379
8379
  ),
8380
8380
  import(
8381
8381
  /* webpackChunkName: "modal-chunk" */
8382
- "./AboutEntry.CTwezLPC.js"
8382
+ "./AboutEntry.D9MonPwL.js"
8383
8383
  ),
8384
8384
  import(
8385
8385
  /* webpackChunkName: "modal-chunk" */
8386
- "./UsageEntry.CDzDYeHf.js"
8386
+ "./UsageEntry.C73mIvmD.js"
8387
8387
  )
8388
8388
  ]).finally(() => g(!0));
8389
8389
  }, [m]), b = Y((x) => {
@@ -8404,7 +8404,7 @@ const _h = ({ className: e, ...t }) => {
8404
8404
  [
8405
8405
  "mod+,",
8406
8406
  () => {
8407
- Ht() && b("settings");
8407
+ _t() && b("settings");
8408
8408
  }
8409
8409
  ]
8410
8410
  ],
@@ -8460,7 +8460,7 @@ const _h = ({ className: e, ...t }) => {
8460
8460
  mode: "light",
8461
8461
  placement: "left",
8462
8462
  trigger: /* @__PURE__ */ N(
8463
- Tt,
8463
+ St,
8464
8464
  {
8465
8465
  mode: "dark",
8466
8466
  focusMode: "light",
@@ -8653,18 +8653,18 @@ const ao = "av-spinner", Ys = ({ spinnerRef: e, mode: t = "system", type: r = "c
8653
8653
  ]
8654
8654
  });
8655
8655
  }, nm = Oe(
8656
- () => import("./index.C3aZ0rB_.js").then((e) => ({ default: e.Bubble }))
8656
+ () => import("./index.bx7cnejn.js").then((e) => ({ default: e.Bubble }))
8657
8657
  ), tn = (e) => /* @__PURE__ */ d(Jt, { fallback: /* @__PURE__ */ d("span", { className: "inline-block" }), children: /* @__PURE__ */ d(nm, { ...e }) });
8658
8658
  tn.displayName = "AsyncBubble";
8659
8659
  const io = 1, om = 150, sm = Oe(
8660
8660
  () => import(
8661
8661
  /* webpackChunkName: "LazyMessageAssistant" */
8662
- "./ChatBubbleAssistant.BVlp2GoO.js"
8662
+ "./ChatBubbleAssistant.CEZZn7AD.js"
8663
8663
  )
8664
8664
  ), am = Oe(
8665
8665
  () => import(
8666
8666
  /* webpackChunkName: "LazyMessageUser" */
8667
- "./ChatBubbleUser.BrWZttfQ.js"
8667
+ "./ChatBubbleUser.BYLIgaHX.js"
8668
8668
  )
8669
8669
  ), im = ct.memo(
8670
8670
  ({
@@ -8690,7 +8690,7 @@ const io = 1, om = 150, sm = Oe(
8690
8690
  }
8691
8691
  a(!1);
8692
8692
  }
8693
- }, [t, i, o]), e === yo && t ? /* @__PURE__ */ d(Jt, { fallback: /* @__PURE__ */ d("span", {}), children: /* @__PURE__ */ d(am, { content: t }) }) : (e === _t || e === mn) && o && (s === "submitted" || s === "streaming") && i ? /* @__PURE__ */ d(tn, { tail: !0, children: /* @__PURE__ */ d(Ys, { type: "dots" }) }) : (e === _t || e === mn) && t && t.trim().length >= io ? /* @__PURE__ */ d(Jt, { fallback: /* @__PURE__ */ d("span", {}), children: /* @__PURE__ */ d(
8693
+ }, [t, i, o]), e === yo && t ? /* @__PURE__ */ d(Jt, { fallback: /* @__PURE__ */ d("span", {}), children: /* @__PURE__ */ d(am, { content: t }) }) : (e === bt || e === mn) && o && (s === "submitted" || s === "streaming") && i ? /* @__PURE__ */ d(tn, { tail: !0, children: /* @__PURE__ */ d(Ys, { type: "dots" }) }) : (e === bt || e === mn) && t && t.trim().length >= io ? /* @__PURE__ */ d(Jt, { fallback: /* @__PURE__ */ d("span", {}), children: /* @__PURE__ */ d(
8694
8694
  sm,
8695
8695
  {
8696
8696
  role: e,
@@ -8726,11 +8726,11 @@ function lm(e) {
8726
8726
  }
8727
8727
  }
8728
8728
  const um = () => {
8729
- const { messages: e, status: t } = Be(), r = e ? e.map((s, i) => s.role === _t ? 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 === yo;
8729
+ const { messages: e, status: t } = Be(), 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 === yo;
8730
8730
  return e && e.length > 0 ? /* @__PURE__ */ N("div", { className: "space-y-6 mt-2 @container", children: [
8731
8731
  e?.map((s, i) => {
8732
8732
  let a;
8733
- const l = `${i}-${s.role}`, c = cm(s), f = lm(s), u = s.role === _t && i === r;
8733
+ const l = `${i}-${s.role}`, c = cm(s), f = lm(s), u = s.role === bt && i === r;
8734
8734
  return /* @__PURE__ */ d(
8735
8735
  im,
8736
8736
  {
@@ -8749,7 +8749,7 @@ const um = () => {
8749
8749
  }, dm = () => {
8750
8750
  const { isAuthenticated: e } = he(), { ref: t, inViewport: r } = oi(), n = J(null), o = J(null), {
8751
8751
  state: { footerPosition: s, footerHeight: i, footerOffset: a, oledMode: l }
8752
- } = q(xt), {
8752
+ } = q(At), {
8753
8753
  state: { loading: c }
8754
8754
  } = q(Ee), { messages: f } = Be(), u = J(0), { data: m, isSuccess: g } = si(), h = ai({
8755
8755
  isAuthenticated: e,
@@ -8826,7 +8826,7 @@ function qs({
8826
8826
  footerOffset: Ze() ? vo : 0,
8827
8827
  oledMode: !1,
8828
8828
  fullScreen: !1
8829
- }), []), [w, v] = Ot(kf, b), T = we(() => {
8829
+ }), []), [w, v] = Pt(kf, b), T = we(() => {
8830
8830
  const ce = Ze(), ne = po();
8831
8831
  return ce && ne ? "mt-1" : "mt-5";
8832
8832
  }, []), x = {
@@ -8841,13 +8841,13 @@ function qs({
8841
8841
  return h;
8842
8842
  }
8843
8843
  })()
8844
- }, [k, C] = Ot(
8844
+ }, [k, C] = Pt(
8845
8845
  xf,
8846
8846
  x
8847
- ), [M, X] = Ot(Af, {
8847
+ ), [M, X] = Pt(Af, {
8848
8848
  prompt: "",
8849
8849
  lastTriggeredTimestamp: 0
8850
- }), [ie, Ve] = Ot(Cf, {
8850
+ }), [ie, Ve] = Pt(Cf, {
8851
8851
  provider: "",
8852
8852
  // OpenAI, Anthropic, etc.
8853
8853
  privateChat: !1,
@@ -8898,7 +8898,7 @@ function qs({
8898
8898
  }, [U]), $(() => {
8899
8899
  try {
8900
8900
  const ce = sessionStorage.getItem("sw-toggle-pending");
8901
- ce && (ce === "enabled" ? Et(_i, { containerId: "toggle-save" }) : ce === "disabled" && Et(bi, {
8901
+ ce && (ce === "enabled" ? Tt(_i, { containerId: "toggle-save" }) : ce === "disabled" && Tt(bi, {
8902
8902
  containerId: "toggle-save"
8903
8903
  }), sessionStorage.removeItem("sw-toggle-pending"));
8904
8904
  } catch {
@@ -8920,7 +8920,7 @@ function qs({
8920
8920
  state: k,
8921
8921
  dispatch: C
8922
8922
  },
8923
- children: /* @__PURE__ */ d(xt.Provider, { value: { state: w, dispatch: v }, children: /* @__PURE__ */ d(
8923
+ children: /* @__PURE__ */ d(At.Provider, { value: { state: w, dispatch: v }, children: /* @__PURE__ */ d(
8924
8924
  en.Provider,
8925
8925
  {
8926
8926
  value: { state: M, dispatch: X },
@@ -8989,7 +8989,7 @@ export {
8989
8989
  Ls as APP_SET_FULL_SCREEN,
8990
8990
  Ds as APP_SET_OLED_MODE,
8991
8991
  _m as App,
8992
- xt as AppContext,
8992
+ At as AppContext,
8993
8993
  tn as AsyncBubble,
8994
8994
  rm as ButtonScroll,
8995
8995
  Qr as CHAT_SET_PROVIDER,
@@ -9005,7 +9005,7 @@ export {
9005
9005
  Wp as getDefaultExportFromCjs,
9006
9006
  Sf as preloadToast,
9007
9007
  ym as showErrorToast,
9008
- Et as showSuccessToast,
9008
+ Tt as showSuccessToast,
9009
9009
  Be as useAiChat,
9010
9010
  rr as useCapability
9011
9011
  };