@versini/sassysaint 8.18.3 → 8.19.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.
@@ -4,7 +4,7 @@ var ln = (e) => {
4
4
  var ha = (e, t, r) => t.has(e) || ln("Cannot " + r);
5
5
  var O = (e, t, r) => (ha(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ye = (e, t, r) => t.has(e) ? ln("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), ce = (e, t, r, a) => (ha(e, t, "write to private field"), a ? a.call(e, r) : t.set(e, r), r), he = (e, t, r) => (ha(e, t, "access private method"), r);
6
6
  import { jsx as c, jsxs as A, Fragment as fe } from "react/jsx-runtime";
7
- import { Subscribable as Nl, pendingThenable as cn, resolveEnabled as je, shallowEqualObjects as La, resolveStaleTime as Br, noop as Pa, isServer as Da, isValidTimeout as dn, focusManager as Al, fetchState as Rl, replaceData as un, notifyManager as ks, timeUntilStale as $l, shouldThrowError as Ol, useQueryClient as Ll, I as ne, ACTION_SORT as Ma, ACTION_SEARCH as Es, ACTION_RESET_PROMPT as Ts, ACTION_TOGGLE_PROMPT as xs, le as Ne, DEFAULT_ICON_ACTION_SIZE as Ye, n as Pe, isElectron as Ba, isProbablyiPhone as za, L as fr, j as Je, C as xt, LOCAL_STORAGE_PREFIX as Ct, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Pl, LOCAL_STORAGE_REASONING_DISCLOSURE as Dl, TOAST_CHAT_SAVED as Ml, toastOptions as Wr, TOAST_PROVIDER_CHANGED as Ss, PROMPT_CLASSNAME as Bl, PROMPT_EDITABLE_AREA_CLASSNAME as zl, ERROR_MESSAGE as Hl, ROLE_INTERNAL as Ha, CLIPBOARD_PROMPT as fn, isProbablyMobile as at, INPUT_PLACEHOLDER_TEXT as hn, FOOTER_DISCLAIMER as Vl, S as Me, renderDataAsList as jr, CARDS as de, pluralize as rr, ABOUT_TITLE as Ul, INFINITE_SCROLL_LIMIT as mn, INFINITE_SCROLL_THRESHOLD as pn, LOCAL_STORAGE_SORT as Cs, APP_CLASSNAME as Is, TOAST_CHAT_DELETED as Fl, LOCAL_STORAGE_SEARCH as Ns, HISTORY_TITLE as Wl, fe as jl, debounce as Gl, l as gn, PROFILE_TITLE as Kl, LOCAL_STORAGE_CHAT_DETAILS as Jl, SETTINGS_TITLE as ql, APP_NAME as Yl, PROMPTS_DESCRIPTION as Ql, getCurrentGeoLocation as Xl, USAGE_TITLE as Zl, LOG_OUT as yn, getMessageContaintWrapperClass as ec, UI_FOOTER_BUFFER as As, UI_BUTTON_SCROLL_BUFFER as tc, Logo as rc, UI_DEFAULT_MAIN_HEIGHT as bn, getMainPaddingClass as vn, r as ac } from "./index.BoS6HL4i.js";
7
+ import { Subscribable as Nl, pendingThenable as cn, resolveEnabled as je, shallowEqualObjects as La, resolveStaleTime as Br, noop as Pa, isServer as Da, isValidTimeout as dn, focusManager as Al, fetchState as Rl, replaceData as un, notifyManager as ks, timeUntilStale as $l, shouldThrowError as Ol, useQueryClient as Ll, I as ne, ACTION_SORT as Ma, ACTION_SEARCH as Es, ACTION_RESET_PROMPT as Ts, ACTION_TOGGLE_PROMPT as xs, le as Ne, DEFAULT_ICON_ACTION_SIZE as Ye, n as Pe, isElectron as Ba, isProbablyiPhone as za, L as fr, j as Je, C as xt, LOCAL_STORAGE_PREFIX as Ct, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Pl, LOCAL_STORAGE_REASONING_DISCLOSURE as Dl, TOAST_CHAT_SAVED as Ml, toastOptions as Wr, TOAST_PROVIDER_CHANGED as Ss, PROMPT_CLASSNAME as Bl, PROMPT_EDITABLE_AREA_CLASSNAME as zl, ERROR_MESSAGE as Hl, ROLE_INTERNAL as Ha, CLIPBOARD_PROMPT as fn, isProbablyMobile as at, INPUT_PLACEHOLDER_TEXT as hn, FOOTER_DISCLAIMER as Vl, S as Me, renderDataAsList as jr, CARDS as de, pluralize as rr, ABOUT_TITLE as Ul, INFINITE_SCROLL_LIMIT as mn, INFINITE_SCROLL_THRESHOLD as pn, LOCAL_STORAGE_SORT as Cs, APP_CLASSNAME as Is, TOAST_CHAT_DELETED as Fl, LOCAL_STORAGE_SEARCH as Ns, HISTORY_TITLE as Wl, fe as jl, debounce as Gl, l as gn, PROFILE_TITLE as Kl, LOCAL_STORAGE_CHAT_DETAILS as Jl, SETTINGS_TITLE as ql, APP_NAME as Yl, PROMPTS_DESCRIPTION as Ql, getCurrentGeoLocation as Xl, USAGE_TITLE as Zl, LOG_OUT as yn, getMessageContaintWrapperClass as ec, UI_FOOTER_BUFFER as As, UI_BUTTON_SCROLL_BUFFER as tc, Logo as rc, UI_DEFAULT_MAIN_HEIGHT as bn, getMainPaddingClass as vn, r as ac } from "./index.ClNdn3VB.js";
8
8
  import * as oe from "react";
9
9
  import W, { useEffect as B, useRef as R, useState as H, useCallback as Q, useSyncExternalStore as Rs, useMemo as De, useId as ea, useContext as re, useLayoutEffect as we, isValidElement as ta, cloneElement as xo, createContext as $s, useDebugValue as oc, forwardRef as Os, Suspense as So, lazy as Co, Fragment as nc, useReducer as Zt } from "react";
10
10
  import g from "clsx";
@@ -115,7 +115,7 @@ var Ie, X, dr, ke, kt, zt, it, lt, ur, Ht, Vt, Et, Tt, ct, Ut, te, er, Va, Ua, F
115
115
  }).then(() => (this.updateResult(), O(this, ke)));
116
116
  }
117
117
  createResult(t, r) {
118
- var C;
118
+ var S;
119
119
  const a = O(this, X), o = this.options, n = O(this, ke), s = O(this, kt), i = O(this, zt), d = t !== a ? t.state : O(this, dr), { state: f } = t;
120
120
  let u = { ...f }, h = !1, m;
121
121
  if (r._optimisticResults) {
@@ -131,7 +131,7 @@ var Ie, X, dr, ke, kt, zt, it, lt, ur, Ht, Vt, Et, Tt, ct, Ut, te, er, Va, Ua, F
131
131
  if (r.placeholderData !== void 0 && m === void 0 && b === "pending") {
132
132
  let x;
133
133
  n != null && n.isPlaceholderData && r.placeholderData === (i == null ? void 0 : i.placeholderData) ? (x = n.data, w = !0) : x = typeof r.placeholderData == "function" ? r.placeholderData(
134
- (C = O(this, Vt)) == null ? void 0 : C.state.data,
134
+ (S = O(this, Vt)) == null ? void 0 : S.state.data,
135
135
  O(this, Vt)
136
136
  ) : r.placeholderData, x !== void 0 && (b = "success", m = un(
137
137
  n == null ? void 0 : n.data,
@@ -149,12 +149,12 @@ var Ie, X, dr, ke, kt, zt, it, lt, ur, Ht, Vt, Et, Tt, ct, Ut, te, er, Va, Ua, F
149
149
  ce(this, lt, x);
150
150
  }
151
151
  O(this, lt) && (p = O(this, lt), m = O(this, Ht), y = Date.now(), b = "error");
152
- const _ = u.fetchStatus === "fetching", k = b === "pending", S = b === "error", I = k && _, v = m !== void 0, T = {
152
+ const _ = u.fetchStatus === "fetching", k = b === "pending", C = b === "error", I = k && _, v = m !== void 0, T = {
153
153
  status: b,
154
154
  fetchStatus: u.fetchStatus,
155
155
  isPending: k,
156
156
  isSuccess: b === "success",
157
- isError: S,
157
+ isError: C,
158
158
  isInitialLoading: I,
159
159
  isLoading: I,
160
160
  data: m,
@@ -168,10 +168,10 @@ var Ie, X, dr, ke, kt, zt, it, lt, ur, Ht, Vt, Et, Tt, ct, Ut, te, er, Va, Ua, F
168
168
  isFetchedAfterMount: u.dataUpdateCount > d.dataUpdateCount || u.errorUpdateCount > d.errorUpdateCount,
169
169
  isFetching: _,
170
170
  isRefetching: _ && !k,
171
- isLoadingError: S && !v,
171
+ isLoadingError: C && !v,
172
172
  isPaused: u.fetchStatus === "paused",
173
173
  isPlaceholderData: h,
174
- isRefetchError: S && v,
174
+ isRefetchError: C && v,
175
175
  isStale: No(t, r),
176
176
  refetch: this.refetch,
177
177
  promise: O(this, it)
@@ -1709,7 +1709,7 @@ const Tr = {
1709
1709
  variant: w = "primary",
1710
1710
  iconClassName: _,
1711
1711
  animated: k = !1,
1712
- ...S
1712
+ ...C
1713
1713
  }, I) => {
1714
1714
  const v = Ad({
1715
1715
  type: Ro,
@@ -1728,7 +1728,7 @@ const Tr = {
1728
1728
  radius: b,
1729
1729
  variant: w,
1730
1730
  animated: k
1731
- }), E = Id({ mode: r, raw: i, iconClassName: _ }), T = Nd({ animated: k }), C = "flex items-center justify-center relative w-full h-full overflow-hidden", [x, $] = ma(), [N, P] = ma(), [M, V] = ma(), F = R(0), L = R(null), D = R(null), J = Od([I, L]);
1731
+ }), E = Id({ mode: r, raw: i, iconClassName: _ }), T = Nd({ animated: k }), S = "flex items-center justify-center relative w-full h-full overflow-hidden", [x, $] = ma(), [N, P] = ma(), [M, V] = ma(), F = R(0), L = R(null), D = R(null), J = Od([I, L]);
1732
1732
  return we(() => {
1733
1733
  M && M.current && k && (F.current = V.width + Pd[u] + (l ? 0 : Dd), L.current && !L.current.style.width && (L.current.style.width = `${Tr[u]}px`));
1734
1734
  }, [V, M, u, l, k]), we(() => {
@@ -1757,8 +1757,8 @@ const Tr = {
1757
1757
  disabled: t,
1758
1758
  type: s,
1759
1759
  "aria-label": d || f,
1760
- ...S,
1761
- children: /* @__PURE__ */ A("div", { className: C, children: [
1760
+ ...C,
1761
+ children: /* @__PURE__ */ A("div", { className: S, children: [
1762
1762
  /* @__PURE__ */ c(
1763
1763
  Cn,
1764
1764
  {
@@ -2223,17 +2223,17 @@ var ru = 1, oi = () => `${ru++}`;
2223
2223
  function au(e, t, r) {
2224
2224
  let a = 1, o = 0, n = [], s = [], i = t, l = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set(), f = (_) => (d.add(_), () => d.delete(_)), u = () => {
2225
2225
  s = Array.from(l.values()), d.forEach((_) => _());
2226
- }, h = ({ containerId: _, toastId: k, updateId: S }) => {
2227
- let I = _ ? _ !== e : e !== 1, v = l.has(k) && S == null;
2226
+ }, h = ({ containerId: _, toastId: k, updateId: C }) => {
2227
+ let I = _ ? _ !== e : e !== 1, v = l.has(k) && C == null;
2228
2228
  return I || v;
2229
2229
  }, m = (_, k) => {
2230
- l.forEach((S) => {
2230
+ l.forEach((C) => {
2231
2231
  var I;
2232
- (k == null || k === S.props.toastId) && ((I = S.toggle) == null || I.call(S, _));
2232
+ (k == null || k === C.props.toastId) && ((I = C.toggle) == null || I.call(C, _));
2233
2233
  });
2234
2234
  }, p = (_) => {
2235
- var k, S;
2236
- (S = (k = _.props) == null ? void 0 : k.onClose) == null || S.call(k, _.removalReason), _.isActive = !1;
2235
+ var k, C;
2236
+ (C = (k = _.props) == null ? void 0 : k.onClose) == null || C.call(k, _.removalReason), _.isActive = !1;
2237
2237
  }, y = (_) => {
2238
2238
  if (_ == null) l.forEach(p);
2239
2239
  else {
@@ -2244,20 +2244,20 @@ function au(e, t, r) {
2244
2244
  }, b = () => {
2245
2245
  o -= n.length, n = [];
2246
2246
  }, w = (_) => {
2247
- var k, S;
2247
+ var k, C;
2248
2248
  let { toastId: I, updateId: v } = _.props, E = v == null;
2249
- _.staleId && l.delete(_.staleId), _.isActive = !0, l.set(I, _), u(), r(Nn(_, E ? "added" : "updated")), E && ((S = (k = _.props).onOpen) == null || S.call(k));
2249
+ _.staleId && l.delete(_.staleId), _.isActive = !0, l.set(I, _), u(), r(Nn(_, E ? "added" : "updated")), E && ((C = (k = _.props).onOpen) == null || C.call(k));
2250
2250
  };
2251
2251
  return { id: e, props: i, observe: f, toggle: m, removeToast: y, toasts: l, clearQueue: b, buildToast: (_, k) => {
2252
2252
  if (h(k)) return;
2253
- let { toastId: S, updateId: I, data: v, staleId: E, delay: T } = k, C = I == null;
2254
- C && o++;
2255
- let x = { ...i, style: i.toastStyle, key: a++, ...Object.fromEntries(Object.entries(k).filter(([N, P]) => P != null)), toastId: S, updateId: I, data: v, isIn: !1, className: Ya(k.className || i.toastClassName), progressClassName: Ya(k.progressClassName || i.progressClassName), autoClose: k.isLoading ? !1 : Xd(k.autoClose, i.autoClose), closeToast(N) {
2256
- l.get(S).removalReason = N, y(S);
2253
+ let { toastId: C, updateId: I, data: v, staleId: E, delay: T } = k, S = I == null;
2254
+ S && o++;
2255
+ let x = { ...i, style: i.toastStyle, key: a++, ...Object.fromEntries(Object.entries(k).filter(([N, P]) => P != null)), toastId: C, updateId: I, data: v, isIn: !1, className: Ya(k.className || i.toastClassName), progressClassName: Ya(k.progressClassName || i.progressClassName), autoClose: k.isLoading ? !1 : Xd(k.autoClose, i.autoClose), closeToast(N) {
2256
+ l.get(C).removalReason = N, y(C);
2257
2257
  }, deleteToast() {
2258
- let N = l.get(S);
2258
+ let N = l.get(C);
2259
2259
  if (N != null) {
2260
- if (r(Nn(N, "removed")), l.delete(S), o--, o < 0 && (o = 0), n.length > 0) {
2260
+ if (r(Nn(N, "removed")), l.delete(C), o--, o < 0 && (o = 0), n.length > 0) {
2261
2261
  w(n.shift());
2262
2262
  return;
2263
2263
  }
@@ -2266,14 +2266,14 @@ function au(e, t, r) {
2266
2266
  } };
2267
2267
  x.closeButton = i.closeButton, k.closeButton === !1 || Qa(k.closeButton) ? x.closeButton = k.closeButton : k.closeButton === !0 && (x.closeButton = Qa(i.closeButton) ? i.closeButton : !0);
2268
2268
  let $ = { content: _, props: x, staleId: E };
2269
- i.limit && i.limit > 0 && o > i.limit && C ? n.push($) : hr(T) ? setTimeout(() => {
2269
+ i.limit && i.limit > 0 && o > i.limit && S ? n.push($) : hr(T) ? setTimeout(() => {
2270
2270
  w($);
2271
2271
  }, T) : w($);
2272
2272
  }, setProps(_) {
2273
2273
  i = _;
2274
2274
  }, setToggle: (_, k) => {
2275
- let S = l.get(_);
2276
- S && (S.toggle = k);
2275
+ let C = l.get(_);
2276
+ C && (C.toggle = k);
2277
2277
  }, isToastActive: (_) => {
2278
2278
  var k;
2279
2279
  return (k = l.get(_)) == null ? void 0 : k.isActive;
@@ -2444,8 +2444,8 @@ function gu(e) {
2444
2444
  }
2445
2445
  }
2446
2446
  function y(E) {
2447
- let { top: T, bottom: C, left: x, right: $ } = n.current.getBoundingClientRect();
2448
- E.nativeEvent.type !== "touchend" && e.pauseOnHover && E.clientX >= x && E.clientX <= $ && E.clientY >= T && E.clientY <= C ? w() : b();
2447
+ let { top: T, bottom: S, left: x, right: $ } = n.current.getBoundingClientRect();
2448
+ E.nativeEvent.type !== "touchend" && e.pauseOnHover && E.clientX >= x && E.clientX <= $ && E.clientY >= T && E.clientY <= S ? w() : b();
2449
2449
  }
2450
2450
  function b() {
2451
2451
  r(!0);
@@ -2454,17 +2454,17 @@ function gu(e) {
2454
2454
  r(!1);
2455
2455
  }
2456
2456
  function _() {
2457
- s.didMove = !1, document.addEventListener("pointermove", S), document.addEventListener("pointerup", I);
2457
+ s.didMove = !1, document.addEventListener("pointermove", C), document.addEventListener("pointerup", I);
2458
2458
  }
2459
2459
  function k() {
2460
- document.removeEventListener("pointermove", S), document.removeEventListener("pointerup", I);
2460
+ document.removeEventListener("pointermove", C), document.removeEventListener("pointerup", I);
2461
2461
  }
2462
- function S(E) {
2462
+ function C(E) {
2463
2463
  let T = n.current;
2464
2464
  if (s.canDrag && T) {
2465
2465
  s.didMove = !0, t && w(), e.draggableDirection === "x" ? s.delta = E.clientX - s.start : s.delta = E.clientY - s.start, s.start !== E.clientX && (s.canCloseOnClick = !1);
2466
- let C = e.draggableDirection === "x" ? `${s.delta}px, var(--y)` : `0, calc(${s.delta}px + var(--y))`;
2467
- T.style.transform = `translate3d(${C},0)`, T.style.opacity = `${1 - Math.abs(s.delta / s.removalDistance)}`;
2466
+ let S = e.draggableDirection === "x" ? `${s.delta}px, var(--y)` : `0, calc(${s.delta}px + var(--y))`;
2467
+ T.style.transform = `translate3d(${S},0)`, T.style.opacity = `${1 - Math.abs(s.delta / s.removalDistance)}`;
2468
2468
  }
2469
2469
  }
2470
2470
  function I() {
@@ -2505,8 +2505,8 @@ function Tu({ theme: e, type: t, isLoading: r, icon: a }) {
2505
2505
  return a === !1 || (ot(a) ? o = a({ ...n, isLoading: r }) : ta(a) ? o = xo(a, n) : r ? o = Za.spinner() : Eu(t) && (o = Za[t](n))), o;
2506
2506
  }
2507
2507
  var xu = (e) => {
2508
- let { isRunning: t, preventExitTransition: r, toastRef: a, eventHandlers: o, playToast: n } = gu(e), { closeButton: s, children: i, autoClose: l, onClick: d, type: f, hideProgressBar: u, closeToast: h, transition: m, position: p, className: y, style: b, progressClassName: w, updateId: _, role: k, progress: S, rtl: I, toastId: v, deleteToast: E, isIn: T, isLoading: C, closeOnClick: x, theme: $, ariaLabel: N } = e, P = g("Toastify__toast", `Toastify__toast-theme--${$}`, `Toastify__toast--${f}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": x }), M = ot(y) ? y({ rtl: I, position: p, type: f, defaultClassName: P }) : g(P, y), V = Tu(e), F = !!S || !l, L = { closeToast: h, type: f, theme: $ }, D = null;
2509
- return s === !1 || (ot(s) ? D = s(L) : ta(s) ? D = xo(s, L) : D = eu(L)), W.createElement(m, { isIn: T, done: E, position: p, preventExitTransition: r, nodeRef: a, playToast: n }, W.createElement("div", { id: v, tabIndex: 0, onClick: d, "data-in": T, className: M, ...o, style: b, ref: a, ...T && { role: k, "aria-label": N } }, V != null && W.createElement("div", { className: g("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !C }) }, V), ai(i, e, !t), D, !e.customProgressBar && W.createElement(tu, { ..._ && !F ? { key: `p-${_}` } : {}, rtl: I, theme: $, delay: l, isRunning: t, isIn: T, closeToast: h, hide: u, type: f, className: w, controlledProgress: F, progress: S || 0 })));
2508
+ let { isRunning: t, preventExitTransition: r, toastRef: a, eventHandlers: o, playToast: n } = gu(e), { closeButton: s, children: i, autoClose: l, onClick: d, type: f, hideProgressBar: u, closeToast: h, transition: m, position: p, className: y, style: b, progressClassName: w, updateId: _, role: k, progress: C, rtl: I, toastId: v, deleteToast: E, isIn: T, isLoading: S, closeOnClick: x, theme: $, ariaLabel: N } = e, P = g("Toastify__toast", `Toastify__toast-theme--${$}`, `Toastify__toast--${f}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": x }), M = ot(y) ? y({ rtl: I, position: p, type: f, defaultClassName: P }) : g(P, y), V = Tu(e), F = !!C || !l, L = { closeToast: h, type: f, theme: $ }, D = null;
2509
+ return s === !1 || (ot(s) ? D = s(L) : ta(s) ? D = xo(s, L) : D = eu(L)), W.createElement(m, { isIn: T, done: E, position: p, preventExitTransition: r, nodeRef: a, playToast: n }, W.createElement("div", { id: v, tabIndex: 0, onClick: d, "data-in": T, className: M, ...o, style: b, ref: a, ...T && { role: k, "aria-label": N } }, V != null && W.createElement("div", { className: g("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !S }) }, V), ai(i, e, !t), D, !e.customProgressBar && W.createElement(tu, { ..._ && !F ? { key: `p-${_}` } : {}, rtl: I, theme: $, delay: l, isRunning: t, isIn: T, closeToast: h, hide: u, type: f, className: w, controlledProgress: F, progress: C || 0 })));
2510
2510
  }, ci = (e, t = !1) => ({ enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t }), Su = ri(ci("bounce", !0)), Gr = ri(ci("slide", !0)), Cu = { position: "top-right", transition: Su, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light", "aria-label": "Notifications Alt+T", hotKeys: (e) => e.altKey && e.code === "KeyT" };
2511
2511
  function eo(e) {
2512
2512
  let t = { ...Cu, ...e }, r = e.stacked, [a, o] = H(!0), n = R(null), { getToastToRender: s, isToastActive: i, count: l } = pu(t), { className: d, style: f, rtl: u, containerId: h, hotKeys: m } = t;
@@ -2520,12 +2520,12 @@ function eo(e) {
2520
2520
  return yu(() => {
2521
2521
  var b;
2522
2522
  if (r) {
2523
- let w = n.current.querySelectorAll('[data-in="true"]'), _ = 12, k = (b = t.position) == null ? void 0 : b.includes("top"), S = 0, I = 0;
2523
+ let w = n.current.querySelectorAll('[data-in="true"]'), _ = 12, k = (b = t.position) == null ? void 0 : b.includes("top"), C = 0, I = 0;
2524
2524
  Array.from(w).reverse().forEach((v, E) => {
2525
2525
  let T = v;
2526
2526
  T.classList.add("Toastify__toast--stacked"), E > 0 && (T.dataset.collapsed = `${a}`), T.dataset.pos || (T.dataset.pos = k ? "top" : "bot");
2527
- let C = S * (a ? 0.2 : 1) + (a ? 0 : _ * E);
2528
- T.style.setProperty("--y", `${k ? C : C * -1}px`), T.style.setProperty("--g", `${_}`), T.style.setProperty("--s", `${1 - (a ? I : 0)}`), S += T.offsetHeight, I += 0.025;
2527
+ let S = C * (a ? 0.2 : 1) + (a ? 0 : _ * E);
2528
+ T.style.setProperty("--y", `${k ? S : S * -1}px`), T.style.setProperty("--g", `${_}`), T.style.setProperty("--s", `${1 - (a ? I : 0)}`), C += T.offsetHeight, I += 0.025;
2529
2529
  });
2530
2530
  }
2531
2531
  }, [a, l, r]), B(() => {
@@ -2541,7 +2541,7 @@ function eo(e) {
2541
2541
  r && (o(!1), ee.pause());
2542
2542
  }, onMouseLeave: y, "aria-live": "polite", "aria-atomic": "false", "aria-relevant": "additions text", "aria-label": t["aria-label"] }, s((b, w) => {
2543
2543
  let _ = w.length ? { ...f } : { ...f, pointerEvents: "none" };
2544
- return W.createElement("div", { tabIndex: -1, className: p(b), "data-stacked": r, style: _, key: `c-${b}` }, w.map(({ content: k, props: S }) => W.createElement(xu, { ...S, stacked: r, collapseAll: y, isIn: i(S.toastId, S.containerId), key: `t-${S.key}` }, k)));
2544
+ return W.createElement("div", { tabIndex: -1, className: p(b), "data-stacked": r, style: _, key: `c-${b}` }, w.map(({ content: k, props: C }) => W.createElement(xu, { ...C, stacked: r, collapseAll: y, isIn: i(C.toastId, C.containerId), key: `t-${C.key}` }, k)));
2545
2545
  }));
2546
2546
  }
2547
2547
  const ar = "FOOTER_BOTTOM", to = "FOOTER_TOP", zr = "APP_SET_FOOTER_POSITION", di = "APP_SET_FOOTER_HEIGHT", Iu = (e, t) => {
@@ -3762,66 +3762,66 @@ async function Tf({
3762
3762
  onStartStepPart: b
3763
3763
  }) {
3764
3764
  const w = e.getReader(), _ = new TextDecoder(), k = [];
3765
- let S = 0;
3765
+ let C = 0;
3766
3766
  for (; ; ) {
3767
3767
  const { value: I } = await w.read();
3768
- if (I && (k.push(I), S += I.length, I[I.length - 1] !== kf))
3768
+ if (I && (k.push(I), C += I.length, I[I.length - 1] !== kf))
3769
3769
  continue;
3770
3770
  if (k.length === 0)
3771
3771
  break;
3772
- const v = Ef(k, S);
3773
- S = 0;
3772
+ const v = Ef(k, C);
3773
+ C = 0;
3774
3774
  const E = _.decode(v, { stream: !0 }).split(`
3775
3775
  `).filter((T) => T !== "").map(_f);
3776
- for (const { type: T, value: C } of E)
3776
+ for (const { type: T, value: S } of E)
3777
3777
  switch (T) {
3778
3778
  case "text":
3779
- await (t == null ? void 0 : t(C));
3779
+ await (t == null ? void 0 : t(S));
3780
3780
  break;
3781
3781
  case "reasoning":
3782
- await (r == null ? void 0 : r(C));
3782
+ await (r == null ? void 0 : r(S));
3783
3783
  break;
3784
3784
  case "reasoning_signature":
3785
- await (a == null ? void 0 : a(C));
3785
+ await (a == null ? void 0 : a(S));
3786
3786
  break;
3787
3787
  case "redacted_reasoning":
3788
- await (o == null ? void 0 : o(C));
3788
+ await (o == null ? void 0 : o(S));
3789
3789
  break;
3790
3790
  case "file":
3791
- await (s == null ? void 0 : s(C));
3791
+ await (s == null ? void 0 : s(S));
3792
3792
  break;
3793
3793
  case "source":
3794
- await (n == null ? void 0 : n(C));
3794
+ await (n == null ? void 0 : n(S));
3795
3795
  break;
3796
3796
  case "data":
3797
- await (i == null ? void 0 : i(C));
3797
+ await (i == null ? void 0 : i(S));
3798
3798
  break;
3799
3799
  case "error":
3800
- await (l == null ? void 0 : l(C));
3800
+ await (l == null ? void 0 : l(S));
3801
3801
  break;
3802
3802
  case "message_annotations":
3803
- await (m == null ? void 0 : m(C));
3803
+ await (m == null ? void 0 : m(S));
3804
3804
  break;
3805
3805
  case "tool_call_streaming_start":
3806
- await (d == null ? void 0 : d(C));
3806
+ await (d == null ? void 0 : d(S));
3807
3807
  break;
3808
3808
  case "tool_call_delta":
3809
- await (f == null ? void 0 : f(C));
3809
+ await (f == null ? void 0 : f(S));
3810
3810
  break;
3811
3811
  case "tool_call":
3812
- await (u == null ? void 0 : u(C));
3812
+ await (u == null ? void 0 : u(S));
3813
3813
  break;
3814
3814
  case "tool_result":
3815
- await (h == null ? void 0 : h(C));
3815
+ await (h == null ? void 0 : h(S));
3816
3816
  break;
3817
3817
  case "finish_message":
3818
- await (p == null ? void 0 : p(C));
3818
+ await (p == null ? void 0 : p(S));
3819
3819
  break;
3820
3820
  case "finish_step":
3821
- await (y == null ? void 0 : y(C));
3821
+ await (y == null ? void 0 : y(S));
3822
3822
  break;
3823
3823
  case "start_step":
3824
- await (b == null ? void 0 : b(C));
3824
+ await (b == null ? void 0 : b(S));
3825
3825
  break;
3826
3826
  default: {
3827
3827
  const x = T;
@@ -3856,7 +3856,7 @@ async function xf({
3856
3856
  let h, m, p;
3857
3857
  function y(v, E) {
3858
3858
  const T = u.parts.find(
3859
- (C) => C.type === "tool-invocation" && C.toolInvocation.toolCallId === v
3859
+ (S) => S.type === "tool-invocation" && S.toolInvocation.toolCallId === v
3860
3860
  );
3861
3861
  T != null ? T.toolInvocation = E : u.parts.push({
3862
3862
  type: "tool-invocation",
@@ -3870,7 +3870,7 @@ async function xf({
3870
3870
  completionTokens: NaN,
3871
3871
  promptTokens: NaN,
3872
3872
  totalTokens: NaN
3873
- }, S = "unknown";
3873
+ }, C = "unknown";
3874
3874
  function I() {
3875
3875
  const v = [...b];
3876
3876
  w != null && w.length && (u.annotations = w);
@@ -3952,14 +3952,14 @@ async function xf({
3952
3952
  onToolCallDeltaPart(v) {
3953
3953
  const E = _[v.toolCallId];
3954
3954
  E.text += v.argsTextDelta;
3955
- const { value: T } = tf(E.text), C = {
3955
+ const { value: T } = tf(E.text), S = {
3956
3956
  state: "partial-call",
3957
3957
  step: E.step,
3958
3958
  toolCallId: v.toolCallId,
3959
3959
  toolName: E.toolName,
3960
3960
  args: T
3961
3961
  };
3962
- u.toolInvocations[E.index] = C, y(v.toolCallId, C), I();
3962
+ u.toolInvocations[E.index] = S, y(v.toolCallId, S), I();
3963
3963
  },
3964
3964
  async onToolCallPart(v) {
3965
3965
  const E = {
@@ -3970,13 +3970,13 @@ async function xf({
3970
3970
  if (_[v.toolCallId] != null ? u.toolInvocations[_[v.toolCallId].index] = E : (u.toolInvocations == null && (u.toolInvocations = []), u.toolInvocations.push(E)), y(v.toolCallId, E), I(), r) {
3971
3971
  const T = await r({ toolCall: v });
3972
3972
  if (T != null) {
3973
- const C = {
3973
+ const S = {
3974
3974
  state: "result",
3975
3975
  step: f,
3976
3976
  ...v,
3977
3977
  result: T
3978
3978
  };
3979
- u.toolInvocations[u.toolInvocations.length - 1] = C, y(v.toolCallId, C), I();
3979
+ u.toolInvocations[u.toolInvocations.length - 1] = S, y(v.toolCallId, S), I();
3980
3980
  }
3981
3981
  }
3982
3982
  },
@@ -3991,12 +3991,12 @@ async function xf({
3991
3991
  throw new Error(
3992
3992
  "tool_result must be preceded by a tool_call with the same toolCallId"
3993
3993
  );
3994
- const C = {
3994
+ const S = {
3995
3995
  ...E[T],
3996
3996
  state: "result",
3997
3997
  ...v
3998
3998
  };
3999
- E[T] = C, y(v.toolCallId, C), I();
3999
+ E[T] = S, y(v.toolCallId, S), I();
4000
4000
  },
4001
4001
  onDataPart(v) {
4002
4002
  b.push(...v), I();
@@ -4011,12 +4011,12 @@ async function xf({
4011
4011
  d || (u.id = v.messageId), u.parts.push({ type: "step-start" }), I();
4012
4012
  },
4013
4013
  onFinishMessagePart(v) {
4014
- S = v.finishReason, v.usage != null && (k = Zu(v.usage));
4014
+ C = v.finishReason, v.usage != null && (k = Zu(v.usage));
4015
4015
  },
4016
4016
  onErrorPart(v) {
4017
4017
  throw new Error(v);
4018
4018
  }
4019
- }), a == null || a({ message: u, finishReason: S, usage: k });
4019
+ }), a == null || a({ message: u, finishReason: C, usage: k });
4020
4020
  }
4021
4021
  async function Sf({
4022
4022
  stream: e,
@@ -4094,14 +4094,14 @@ async function Nf({
4094
4094
  },
4095
4095
  signal: (b = n == null ? void 0 : n()) == null ? void 0 : b.signal,
4096
4096
  credentials: a
4097
- })).catch((S) => {
4098
- throw s(), S;
4097
+ })).catch((C) => {
4098
+ throw s(), C;
4099
4099
  });
4100
4100
  if (i)
4101
4101
  try {
4102
4102
  await i(k);
4103
- } catch (S) {
4104
- throw S;
4103
+ } catch (C) {
4104
+ throw C;
4105
4105
  }
4106
4106
  if (!k.ok)
4107
4107
  throw s(), new Error(
@@ -4125,16 +4125,16 @@ async function Nf({
4125
4125
  update: l,
4126
4126
  lastMessage: m,
4127
4127
  onToolCall: f,
4128
- onFinish({ message: S, finishReason: I, usage: v }) {
4129
- d && S != null && d(S, { usage: v, finishReason: I });
4128
+ onFinish({ message: C, finishReason: I, usage: v }) {
4129
+ d && C != null && d(C, { usage: v, finishReason: I });
4130
4130
  },
4131
4131
  generateId: u
4132
4132
  });
4133
4133
  return;
4134
4134
  }
4135
4135
  default: {
4136
- const S = r;
4137
- throw new Error(`Unknown stream protocol: ${S}`);
4136
+ const C = r;
4137
+ throw new Error(`Unknown stream protocol: ${C}`);
4138
4138
  }
4139
4139
  }
4140
4140
  }
@@ -4516,19 +4516,19 @@ async function Li(...e) {
4516
4516
  async function u(h) {
4517
4517
  const [m] = zo(h);
4518
4518
  if (!m) return;
4519
- const [p, y] = Oi(t, m), [b, w, _, k] = rt.get(t), S = () => {
4519
+ const [p, y] = Oi(t, m), [b, w, _, k] = rt.get(t), C = () => {
4520
4520
  const P = b[m];
4521
4521
  return (Ke(n.revalidate) ? n.revalidate(p().data, h) : n.revalidate !== !1) && (delete _[m], delete k[m], P && P[0]) ? P[0](Ri).then(() => p().data) : p().data;
4522
4522
  };
4523
4523
  if (e.length < 3)
4524
- return S();
4524
+ return C();
4525
4525
  let I = a, v;
4526
4526
  const E = mo();
4527
4527
  w[m] = [
4528
4528
  E,
4529
4529
  0
4530
4530
  ];
4531
- const T = !Z(l), C = p(), x = C.data, $ = C._c, N = Z($) ? x : $;
4531
+ const T = !Z(l), S = p(), x = S.data, $ = S._c, N = Z($) ? x : $;
4532
4532
  if (T && (l = Ke(l) ? l(N, x) : l, y({
4533
4533
  data: l,
4534
4534
  _c: N
@@ -4562,7 +4562,7 @@ async function Li(...e) {
4562
4562
  error: Ee,
4563
4563
  _c: Ee
4564
4564
  });
4565
- if (w[m][1] = mo(), Promise.resolve(S()).then(() => {
4565
+ if (w[m][1] = mo(), Promise.resolve(C()).then(() => {
4566
4566
  y({
4567
4567
  _c: Ee
4568
4568
  });
@@ -4706,7 +4706,7 @@ const Ta = W.use || // This extra generic is to avoid TypeScript mixing up the g
4706
4706
  }), xa = {
4707
4707
  dedupe: !0
4708
4708
  }, ch = (e, t, r) => {
4709
- const { cache: a, compare: o, suspense: n, fallbackData: s, revalidateOnMount: i, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, p, y, b] = rt.get(a), [w, _] = zo(e), k = R(!1), S = R(!1), I = R(w), v = R(t), E = R(r), T = () => E.current, C = () => T().isVisible() && T().isOnline(), [x, $, N, P] = Oi(a, w), M = R({}).current, V = Z(s) ? Z(r.fallback) ? Ee : r.fallback[w] : s, F = (z, G) => {
4709
+ const { cache: a, compare: o, suspense: n, fallbackData: s, revalidateOnMount: i, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, p, y, b] = rt.get(a), [w, _] = zo(e), k = R(!1), C = R(!1), I = R(w), v = R(t), E = R(r), T = () => E.current, S = () => T().isVisible() && T().isOnline(), [x, $, N, P] = Oi(a, w), M = R({}).current, V = Z(s) ? Z(r.fallback) ? Ee : r.fallback[w] : s, F = (z, G) => {
4710
4710
  for (const q in M) {
4711
4711
  const K = q;
4712
4712
  if (K === "data") {
@@ -4748,10 +4748,10 @@ const Ta = W.use || // This extra generic is to avoid TypeScript mixing up the g
4748
4748
  ), L[0], L[1]), J = !k.current, U = m[w] && m[w].length > 0, xe = D.data, Se = Z(xe) ? V && $i(V) ? Ta(V) : V : xe, ze = D.error, Xe = R(Se), Y = h ? Z(xe) ? Z(Xe.current) ? Se : Xe.current : xe : Se, ie = U && !Z(ze) ? !1 : J && !Z(i) ? i : T().isPaused() ? !1 : n ? Z(Se) ? !1 : l : Z(Se) || l, ae = !!(w && t && J && ie), me = Z(D.isValidating) ? ae : D.isValidating, Ce = Z(D.isLoading) ? ae : D.isLoading, ve = Q(
4749
4749
  async (z) => {
4750
4750
  const G = v.current;
4751
- if (!w || !G || S.current || T().isPaused())
4751
+ if (!w || !G || C.current || T().isPaused())
4752
4752
  return !1;
4753
4753
  let q, K, pe = !0;
4754
- const Re = z || {}, le = !y[w] || !Re.dedupe, se = () => Hn ? !S.current && w === I.current && k.current : w === I.current, $e = {
4754
+ const Re = z || {}, le = !y[w] || !Re.dedupe, se = () => Hn ? !C.current && w === I.current && k.current : w === I.current, $e = {
4755
4755
  isValidating: !1,
4756
4756
  isLoading: !1
4757
4757
  }, _r = () => {
@@ -4783,7 +4783,7 @@ const Ta = W.use || // This extra generic is to avoid TypeScript mixing up the g
4783
4783
  } catch (_e) {
4784
4784
  kr();
4785
4785
  const Oe = T(), { shouldRetryOnError: Ze } = Oe;
4786
- Oe.isPaused() || ($e.error = _e, le && se() && (Oe.onError(_e, w, Oe), (Ze === !0 || Ke(Ze) && Ze(_e)) && (!T().revalidateOnFocus || !T().revalidateOnReconnect || C()) && Oe.onErrorRetry(_e, w, Oe, (Ot) => {
4786
+ Oe.isPaused() || ($e.error = _e, le && se() && (Oe.onError(_e, w, Oe), (Ze === !0 || Ke(Ze) && Ze(_e)) && (!T().revalidateOnFocus || !T().revalidateOnReconnect || S()) && Oe.onErrorRetry(_e, w, Oe, (Ot) => {
4787
4787
  const Lt = m[w];
4788
4788
  Lt && Lt[0] && Lt[0](Bn, Ot);
4789
4789
  }, {
@@ -4823,9 +4823,9 @@ const Ta = W.use || // This extra generic is to avoid TypeScript mixing up the g
4823
4823
  const K = lh(w, m, (pe, Re = {}) => {
4824
4824
  if (pe == Ni) {
4825
4825
  const le = Date.now();
4826
- T().revalidateOnFocus && le > G && C() && (G = le + T().focusThrottleInterval, z());
4826
+ T().revalidateOnFocus && le > G && S() && (G = le + T().focusThrottleInterval, z());
4827
4827
  } else if (pe == Ai)
4828
- T().revalidateOnReconnect && C() && z();
4828
+ T().revalidateOnReconnect && S() && z();
4829
4829
  else {
4830
4830
  if (pe == Ri)
4831
4831
  return ve();
@@ -4833,10 +4833,10 @@ const Ta = W.use || // This extra generic is to avoid TypeScript mixing up the g
4833
4833
  return ve(Re);
4834
4834
  }
4835
4835
  });
4836
- return S.current = !1, I.current = w, k.current = !0, $({
4836
+ return C.current = !1, I.current = w, k.current = !0, $({
4837
4837
  _k: _
4838
4838
  }), ie && (Z(Se) || sr ? z() : Wf(z)), () => {
4839
- S.current = !0, K();
4839
+ C.current = !0, K();
4840
4840
  };
4841
4841
  }, [
4842
4842
  w
@@ -4860,7 +4860,7 @@ const Ta = W.use || // This extra generic is to avoid TypeScript mixing up the g
4860
4860
  ]), oc(Y), n && Z(Se) && w) {
4861
4861
  if (!Hn && sr)
4862
4862
  throw new Error("Fallback data is required when using Suspense in SSR.");
4863
- v.current = t, E.current = r, S.current = !1;
4863
+ v.current = t, E.current = r, C.current = !1;
4864
4864
  const z = b[w];
4865
4865
  if (!Z(z)) {
4866
4866
  const G = bt(z);
@@ -4938,10 +4938,10 @@ function mh({
4938
4938
  keepLastMessageOnError: w = !0,
4939
4939
  experimental_throttle: _
4940
4940
  } = {}) {
4941
- const [k] = H(y), S = t ?? k, I = typeof e == "string" ? [e, S] : S, v = hh(r ?? []), E = De(
4941
+ const [k] = H(y), C = t ?? k, I = typeof e == "string" ? [e, C] : C, v = hh(r ?? []), E = De(
4942
4942
  () => ya(v),
4943
4943
  [v]
4944
- ), { data: T, mutate: C } = Ir(
4944
+ ), { data: T, mutate: S } = Ir(
4945
4945
  [I, "messages"],
4946
4946
  null,
4947
4947
  { fallbackData: E }
@@ -4975,7 +4975,7 @@ function mh({
4975
4975
  try {
4976
4976
  const se = new AbortController();
4977
4977
  D.current = se;
4978
- const $e = Wn(C, _), _r = Wn(
4978
+ const $e = Wn(S, _), _r = Wn(
4979
4979
  N,
4980
4980
  _
4981
4981
  ), kr = x.current;
@@ -5004,12 +5004,12 @@ function mh({
5004
5004
  await Nf({
5005
5005
  api: e,
5006
5006
  body: (q = s == null ? void 0 : s({
5007
- id: S,
5007
+ id: C,
5008
5008
  messages: K,
5009
5009
  requestData: j.data,
5010
5010
  requestBody: j.body
5011
5011
  })) != null ? q : {
5012
- id: S,
5012
+ id: C,
5013
5013
  messages: Er,
5014
5014
  data: j.data,
5015
5015
  ...J.current.body,
@@ -5059,7 +5059,7 @@ function mh({
5059
5059
  }) && await U({ messages: le });
5060
5060
  },
5061
5061
  [
5062
- C,
5062
+ S,
5063
5063
  V,
5064
5064
  e,
5065
5065
  J,
@@ -5080,7 +5080,7 @@ function mh({
5080
5080
  b,
5081
5081
  w,
5082
5082
  _,
5083
- S
5083
+ C
5084
5084
  ]
5085
5085
  ), xe = Q(
5086
5086
  async (j, {
@@ -5125,9 +5125,9 @@ function mh({
5125
5125
  (j) => {
5126
5126
  typeof j == "function" && (j = j(x.current));
5127
5127
  const z = ya(j);
5128
- C(z, !1), x.current = z;
5128
+ S(z, !1), x.current = z;
5129
5129
  },
5130
- [C]
5130
+ [S]
5131
5131
  ), ie = Q(
5132
5132
  (j) => {
5133
5133
  typeof j == "function" && (j = j(P.current)), N(j, !1), P.current = j;
@@ -5169,7 +5169,7 @@ function mh({
5169
5169
  messages: G,
5170
5170
  toolCallId: j,
5171
5171
  toolResult: z
5172
- }), C(
5172
+ }), S(
5173
5173
  [
5174
5174
  ...G.slice(0, G.length - 1),
5175
5175
  { ...G[G.length - 1] }
@@ -5180,11 +5180,11 @@ function mh({
5180
5180
  const q = G[G.length - 1];
5181
5181
  Ii(q) && U({ messages: G });
5182
5182
  },
5183
- [C, M, U]
5183
+ [S, M, U]
5184
5184
  );
5185
5185
  return {
5186
5186
  messages: T ?? [],
5187
- id: S,
5187
+ id: C,
5188
5188
  setMessages: Y,
5189
5189
  data: $,
5190
5190
  setData: ie,
@@ -6382,7 +6382,7 @@ const Cm = async (e, t, r) => {
6382
6382
  } = i[y], {
6383
6383
  x: _,
6384
6384
  y: k,
6385
- data: S,
6385
+ data: C,
6386
6386
  reset: I
6387
6387
  } = await w({
6388
6388
  x: f,
@@ -6402,7 +6402,7 @@ const Cm = async (e, t, r) => {
6402
6402
  ...m,
6403
6403
  [b]: {
6404
6404
  ...m[b],
6405
- ...S
6405
+ ...C
6406
6406
  }
6407
6407
  }, I && p <= 50 && (p++, typeof I == "object" && (I.placement && (h = I.placement), I.rects && (d = I.rects === !0 ? await s.getElementRects({
6408
6408
  reference: e,
@@ -6453,17 +6453,17 @@ async function Qi(e, t) {
6453
6453
  } : {
6454
6454
  x: 1,
6455
6455
  y: 1
6456
- }, S = Zr(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
6456
+ }, C = Zr(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
6457
6457
  elements: i,
6458
6458
  rect: w,
6459
6459
  offsetParent: _,
6460
6460
  strategy: l
6461
6461
  }) : w);
6462
6462
  return {
6463
- top: (b.top - S.top + p.top) / k.y,
6464
- bottom: (S.bottom - b.bottom + p.bottom) / k.y,
6465
- left: (b.left - S.left + p.left) / k.x,
6466
- right: (S.right - b.right + p.right) / k.x
6463
+ top: (b.top - C.top + p.top) / k.y,
6464
+ bottom: (C.bottom - b.bottom + p.bottom) / k.y,
6465
+ left: (b.left - C.left + p.left) / k.x,
6466
+ right: (C.right - b.right + p.right) / k.x
6467
6467
  };
6468
6468
  }
6469
6469
  const Im = (e) => ({
@@ -6487,10 +6487,10 @@ const Im = (e) => ({
6487
6487
  const u = Yi(f), h = {
6488
6488
  x: r,
6489
6489
  y: a
6490
- }, m = Jo(o), p = Ko(m), y = await s.getDimensions(d), b = m === "y", w = b ? "top" : "left", _ = b ? "bottom" : "right", k = b ? "clientHeight" : "clientWidth", S = n.reference[p] + n.reference[m] - h[m] - n.floating[p], I = h[m] - n.reference[m], v = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
6490
+ }, m = Jo(o), p = Ko(m), y = await s.getDimensions(d), b = m === "y", w = b ? "top" : "left", _ = b ? "bottom" : "right", k = b ? "clientHeight" : "clientWidth", C = n.reference[p] + n.reference[m] - h[m] - n.floating[p], I = h[m] - n.reference[m], v = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
6491
6491
  let E = v ? v[k] : 0;
6492
6492
  (!E || !await (s.isElement == null ? void 0 : s.isElement(v))) && (E = i.floating[k] || n.floating[p]);
6493
- const T = S / 2 - I / 2, C = E / 2 - y[p] / 2 - 1, x = lr(u[w], C), $ = lr(u[_], C), N = x, P = E - y[p] - $, M = E / 2 - y[p] / 2 + T, V = yo(N, M, P), F = !l.arrow && vr(o) != null && M !== V && n.reference[p] / 2 - (M < N ? x : $) - y[p] / 2 < 0, L = F ? M < N ? M - N : M - P : 0;
6493
+ const T = C / 2 - I / 2, S = E / 2 - y[p] / 2 - 1, x = lr(u[w], S), $ = lr(u[_], S), N = x, P = E - y[p] - $, M = E / 2 - y[p] / 2 + T, V = yo(N, M, P), F = !l.arrow && vr(o) != null && M !== V && n.reference[p] / 2 - (M < N ? x : $) - y[p] / 2 < 0, L = F ? M < N ? M - N : M - P : 0;
6494
6494
  return {
6495
6495
  [m]: h[m] + L,
6496
6496
  data: {
@@ -6527,18 +6527,18 @@ const Im = (e) => ({
6527
6527
  } = br(e, t);
6528
6528
  if ((r = n.arrow) != null && r.alignmentOffset)
6529
6529
  return {};
6530
- const w = At(o), _ = St(i), k = At(i) === i, S = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), I = h || (k || !y ? [Xr(i)] : Em(i)), v = p !== "none";
6531
- !h && v && I.push(...xm(i, y, p, S));
6532
- const E = [i, ...I], T = await Qi(t, b), C = [];
6530
+ const w = At(o), _ = St(i), k = At(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), I = h || (k || !y ? [Xr(i)] : Em(i)), v = p !== "none";
6531
+ !h && v && I.push(...xm(i, y, p, C));
6532
+ const E = [i, ...I], T = await Qi(t, b), S = [];
6533
6533
  let x = ((a = n.flip) == null ? void 0 : a.overflows) || [];
6534
- if (f && C.push(T[w]), u) {
6535
- const V = km(o, s, S);
6536
- C.push(T[V[0]], T[V[1]]);
6534
+ if (f && S.push(T[w]), u) {
6535
+ const V = km(o, s, C);
6536
+ S.push(T[V[0]], T[V[1]]);
6537
6537
  }
6538
6538
  if (x = [...x, {
6539
6539
  placement: o,
6540
- overflows: C
6541
- }], !C.every((V) => V <= 0)) {
6540
+ overflows: S
6541
+ }], !S.every((V) => V <= 0)) {
6542
6542
  var $, N;
6543
6543
  const V = ((($ = n.flip) == null ? void 0 : $.index) || 0) + 1, F = E[V];
6544
6544
  if (F) {
@@ -6848,8 +6848,8 @@ function cr(e, t, r, a) {
6848
6848
  const h = Le(n), m = a && Fe(a) ? Le(a) : a;
6849
6849
  let p = h, y = Qn(p);
6850
6850
  for (; y && a && m !== p; ) {
6851
- const b = Bt(y), w = y.getBoundingClientRect(), _ = We(y), k = w.left + (y.clientLeft + parseFloat(_.paddingLeft)) * b.x, S = w.top + (y.clientTop + parseFloat(_.paddingTop)) * b.y;
6852
- l *= b.x, d *= b.y, f *= b.x, u *= b.y, l += k, d += S, p = Le(y), y = Qn(p);
6851
+ const b = Bt(y), w = y.getBoundingClientRect(), _ = We(y), k = w.left + (y.clientLeft + parseFloat(_.paddingLeft)) * b.x, C = w.top + (y.clientTop + parseFloat(_.paddingTop)) * b.y;
6852
+ l *= b.x, d *= b.y, f *= b.x, u *= b.y, l += k, d += C, p = Le(y), y = Qn(p);
6853
6853
  }
6854
6854
  }
6855
6855
  return Zr({
@@ -7179,7 +7179,7 @@ const Ar = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, rp = (
7179
7179
  tooltipClassName: s,
7180
7180
  arrowClassName: i
7181
7181
  }), w = sp({ delay: o }), _ = Q(async () => {
7182
- var v, E, T, C;
7182
+ var v, E, T, S;
7183
7183
  if (l.current && d.current && f.current) {
7184
7184
  const {
7185
7185
  x,
@@ -7211,7 +7211,7 @@ const Ar = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, rp = (
7211
7211
  }[P.split("-")[0]];
7212
7212
  (E = f == null ? void 0 : f.current) != null && E.style && Object.assign(f.current.style, {
7213
7213
  left: Ar((T = N.arrow) == null ? void 0 : T.x),
7214
- top: Ar((C = N.arrow) == null ? void 0 : C.y),
7214
+ top: Ar((S = N.arrow) == null ? void 0 : S.y),
7215
7215
  right: "",
7216
7216
  bottom: "",
7217
7217
  [M]: "-4px"
@@ -7223,7 +7223,7 @@ const Ar = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, rp = (
7223
7223
  }, [_, u]);
7224
7224
  const k = () => {
7225
7225
  h(!1), p(!0), y.start();
7226
- }, S = () => {
7226
+ }, C = () => {
7227
7227
  m || h(!0);
7228
7228
  }, I = () => {
7229
7229
  m || h(!1);
@@ -7233,7 +7233,7 @@ const Ar = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, rp = (
7233
7233
  {
7234
7234
  className: b.wrapper,
7235
7235
  ref: l,
7236
- onMouseEnter: S,
7236
+ onMouseEnter: C,
7237
7237
  onMouseLeave: I,
7238
7238
  onClick: k,
7239
7239
  children: [
@@ -7762,7 +7762,7 @@ const Rr = {
7762
7762
  variant: w = "primary",
7763
7763
  iconClassName: _,
7764
7764
  animated: k = !1,
7765
- ...S
7765
+ ...C
7766
7766
  }, I) => {
7767
7767
  const v = _p({
7768
7768
  type: Xo,
@@ -7781,7 +7781,7 @@ const Rr = {
7781
7781
  radius: b,
7782
7782
  variant: w,
7783
7783
  animated: k
7784
- }), E = vp({ mode: r, raw: i, iconClassName: _ }), T = wp({ animated: k }), C = "flex items-center justify-center relative w-full h-full overflow-hidden", [x, $] = Na(), [N, P] = Na(), [M, V] = Na(), F = R(0), L = R(null), D = R(null), J = Tp([I, L]);
7784
+ }), E = vp({ mode: r, raw: i, iconClassName: _ }), T = wp({ animated: k }), S = "flex items-center justify-center relative w-full h-full overflow-hidden", [x, $] = Na(), [N, P] = Na(), [M, V] = Na(), F = R(0), L = R(null), D = R(null), J = Tp([I, L]);
7785
7785
  return we(() => {
7786
7786
  M && M.current && k && (F.current = V.width + Sp[u] + (l ? 0 : Cp), L.current && !L.current.style.width && (L.current.style.width = `${Rr[u]}px`));
7787
7787
  }, [V, M, u, l, k]), we(() => {
@@ -7810,8 +7810,8 @@ const Rr = {
7810
7810
  disabled: t,
7811
7811
  type: s,
7812
7812
  "aria-label": d || f,
7813
- ...S,
7814
- children: /* @__PURE__ */ A("div", { className: C, children: [
7813
+ ...C,
7814
+ children: /* @__PURE__ */ A("div", { className: S, children: [
7815
7815
  /* @__PURE__ */ c(
7816
7816
  ns,
7817
7817
  {
@@ -8330,7 +8330,7 @@ const gt = ({
8330
8330
  focusMode: s = "system",
8331
8331
  ...i
8332
8332
  }, l) => {
8333
- const [d, f] = H(!1), [u, h] = H(!1), [m, p] = H(null), y = R([]), b = R([]), w = re(wo), _ = Vs(), k = lc(), S = Us(), { floatingStyles: I, refs: v, context: E } = Ds({
8333
+ const [d, f] = H(!1), [u, h] = H(!1), [m, p] = H(null), y = R([]), b = R([]), w = re(wo), _ = Vs(), k = lc(), C = Us(), { floatingStyles: I, refs: v, context: E } = Ds({
8334
8334
  nodeId: k,
8335
8335
  open: d,
8336
8336
  onOpenChange: (J) => {
@@ -8344,7 +8344,7 @@ const gt = ({
8344
8344
  event: "mousedown",
8345
8345
  toggle: !0,
8346
8346
  ignoreMouse: !1
8347
- }), C = zs(E, { role: "menu" }), x = Bs(E, { bubbles: !0 }), $ = hc(E, {
8347
+ }), S = zs(E, { role: "menu" }), x = Bs(E, { bubbles: !0 }), $ = hc(E, {
8348
8348
  listRef: y,
8349
8349
  activeIndex: m,
8350
8350
  nested: !1,
@@ -8354,7 +8354,7 @@ const gt = ({
8354
8354
  listRef: b,
8355
8355
  onMatch: d ? p : void 0,
8356
8356
  activeIndex: m
8357
- }), { getReferenceProps: P, getFloatingProps: M, getItemProps: V } = Hs([T, C, x, $, N]), F = is(e) === "Button" || is(e) === "ButtonIcon", L = F ? {
8357
+ }), { getReferenceProps: P, getFloatingProps: M, getItemProps: V } = Hs([T, S, x, $, N]), F = is(e) === "Button" || is(e) === "ButtonIcon", L = F ? {
8358
8358
  noInternalClick: F,
8359
8359
  focusMode: s,
8360
8360
  mode: n
@@ -8365,7 +8365,7 @@ const gt = ({
8365
8365
  "aria-label": r,
8366
8366
  "data-open": d ? "" : void 0,
8367
8367
  "data-focus-inside": u ? "" : void 0,
8368
- ref: Io([v.setReference, S.ref, l]),
8368
+ ref: Io([v.setReference, C.ref, l]),
8369
8369
  ...P(
8370
8370
  w.getItemProps({
8371
8371
  ...i
@@ -8768,10 +8768,10 @@ const Fp = (e) => {
8768
8768
  }), [u, h] = H(!1), [m, p] = H(!1), y = async () => {
8769
8769
  try {
8770
8770
  if (l && i && n) {
8771
- const w = i.filter(({ content: _ }) => _).map(({ role: _, content: k, id: S }) => ({
8771
+ const w = i.filter(({ content: _ }) => _).map(({ role: _, content: k, id: C }) => ({
8772
8772
  role: _,
8773
8773
  content: k,
8774
- id: S
8774
+ id: C
8775
8775
  }));
8776
8776
  await Wt({
8777
8777
  accessToken: await r(),
@@ -9107,7 +9107,7 @@ const Fp = (e) => {
9107
9107
  searchString: b.searchString,
9108
9108
  sortDirection: b.sortDirection,
9109
9109
  getAccessToken: t
9110
- }), _ = R(null), k = R(null), S = R(!1), I = R(0), v = R(null), E = R(null), T = or(), C = tg({
9110
+ }), _ = R(null), k = R(null), C = R(!1), I = R(0), v = R(null), E = R(null), T = or(), S = tg({
9111
9111
  className: ""
9112
9112
  }), {
9113
9113
  input: x,
@@ -9268,8 +9268,8 @@ const Fp = (e) => {
9268
9268
  });
9269
9269
  }
9270
9270
  }, [p, y, $]), B(() => {
9271
- if (S.current === !1) {
9272
- S.current = !0, !x && Or(E);
9271
+ if (C.current === !1) {
9272
+ C.current = !0, !x && Or(E);
9273
9273
  return;
9274
9274
  }
9275
9275
  h > 0 && h !== I.current ? (I.current = h, setTimeout(() => {
@@ -9305,7 +9305,7 @@ const Fp = (e) => {
9305
9305
  children: /* @__PURE__ */ c("p", { className: "m-0", children: _.current })
9306
9306
  }
9307
9307
  ),
9308
- /* @__PURE__ */ c("div", { className: C.wrapper, ref: v, children: /* @__PURE__ */ A("form", { onSubmit: ze, children: [
9308
+ /* @__PURE__ */ c("div", { className: S.wrapper, ref: v, children: /* @__PURE__ */ A("form", { onSubmit: ze, children: [
9309
9309
  /* @__PURE__ */ c("div", { id: T, className: "sr-only", children: hn }),
9310
9310
  /* @__PURE__ */ A("div", { className: "relative", children: [
9311
9311
  /* @__PURE__ */ c(
@@ -9319,7 +9319,7 @@ const Fp = (e) => {
9319
9319
  onChange: Xe,
9320
9320
  value: x,
9321
9321
  onKeyDown: od([["mod+Enter", ze]]),
9322
- className: C.textArea,
9322
+ className: S.textArea,
9323
9323
  "aria-labelledby": T
9324
9324
  }
9325
9325
  ),
@@ -9440,7 +9440,7 @@ const Fp = (e) => {
9440
9440
  }, hg = Co(
9441
9441
  () => import(
9442
9442
  /* webpackChunkName: "LazyAboutChangelog" */
9443
- "./AboutChangelog.DmasmPOR.js"
9443
+ "./AboutChangelog.CYDx1cBr.js"
9444
9444
  )
9445
9445
  ), mg = () => {
9446
9446
  const e = or(), t = or(), { data: r, isSuccess: a } = $u(), { data: o, isSuccess: n } = Ou(), s = (r == null ? void 0 : r.version) || "", i = (r == null ? void 0 : r.models) || [];
@@ -9451,8 +9451,8 @@ const Fp = (e) => {
9451
9451
  header: de.ABOUT.TITLE_CLIENT,
9452
9452
  className: "prose-dark dark:prose-lighter mb-4",
9453
9453
  children: jr(e, {
9454
- [de.ABOUT.VERSION]: "8.18.3",
9455
- [de.ABOUT.BUILD_TIMESTAMP]: "05/26/2025 04:01 PM EDT"
9454
+ [de.ABOUT.VERSION]: "8.19.0",
9455
+ [de.ABOUT.BUILD_TIMESTAMP]: "05/27/2025 09:57 AM EDT"
9456
9456
  })
9457
9457
  }
9458
9458
  ),
@@ -9510,13 +9510,13 @@ const Fp = (e) => {
9510
9510
  }), { refetch: k } = pr({
9511
9511
  user: o == null ? void 0 : o.username,
9512
9512
  getAccessToken: n
9513
- }), S = (C) => {
9513
+ }), C = (S) => {
9514
9514
  switch (h.sortDirection) {
9515
9515
  case Ge.ASC:
9516
9516
  _(Ge.DESC), m({
9517
9517
  type: Ma,
9518
9518
  payload: {
9519
- sortedCell: C,
9519
+ sortedCell: S,
9520
9520
  sortDirection: Ge.DESC
9521
9521
  }
9522
9522
  });
@@ -9525,21 +9525,21 @@ const Fp = (e) => {
9525
9525
  _(Ge.ASC), m({
9526
9526
  type: Ma,
9527
9527
  payload: {
9528
- sortedCell: C,
9528
+ sortedCell: S,
9529
9529
  sortDirection: Ge.ASC
9530
9530
  }
9531
9531
  });
9532
9532
  break;
9533
9533
  }
9534
9534
  }, I = async () => {
9535
- const C = i.current;
9535
+ const S = i.current;
9536
9536
  try {
9537
9537
  await Wt({
9538
9538
  accessToken: await n(),
9539
9539
  type: Be.DELETE_CHAT,
9540
9540
  params: {
9541
9541
  userId: (o == null ? void 0 : o.username) || "",
9542
- id: C.id
9542
+ id: S.id
9543
9543
  }
9544
9544
  }), a(""), ee.error(
9545
9545
  Fl,
@@ -9551,14 +9551,14 @@ const Fp = (e) => {
9551
9551
  );
9552
9552
  } catch {
9553
9553
  }
9554
- }, v = async (C, x, $, N, P, M) => {
9554
+ }, v = async (S, x, $, N, P, M) => {
9555
9555
  var V, F;
9556
9556
  try {
9557
9557
  const L = await Wt({
9558
9558
  accessToken: N,
9559
9559
  type: Be.GET_CHAT,
9560
9560
  params: {
9561
- id: C.id
9561
+ id: S.id
9562
9562
  }
9563
9563
  });
9564
9564
  L.status === 200 && (L.data.provider !== M && (await fi({
@@ -9583,17 +9583,17 @@ const Fp = (e) => {
9583
9583
  restoredModel: ((V = L.data) == null ? void 0 : V.model) || "",
9584
9584
  restoredUsage: ((F = L.data) == null ? void 0 : F.usage) || 0
9585
9585
  }
9586
- }), w(""), y(C.id), b(L.data.messages), $(!1));
9586
+ }), w(""), y(S.id), b(L.data.messages), $(!1));
9587
9587
  } catch {
9588
9588
  }
9589
- }, E = Q((C) => {
9590
- C[0].isIntersecting && u(($) => $ + mn);
9589
+ }, E = Q((S) => {
9590
+ S[0].isIntersecting && u(($) => $ + mn);
9591
9591
  }, []);
9592
9592
  return B(() => {
9593
- const C = {
9593
+ const S = {
9594
9594
  // root: null,
9595
9595
  rootMargin: "20px"
9596
- }, x = new IntersectionObserver(E, C);
9596
+ }, x = new IntersectionObserver(E, S);
9597
9597
  s.current && x.observe(s.current);
9598
9598
  }), /* @__PURE__ */ A(fe, { children: [
9599
9599
  /* @__PURE__ */ A(
@@ -9637,7 +9637,7 @@ const Fp = (e) => {
9637
9637
  sortDirection: h.sortDirection,
9638
9638
  sortedCell: h.sortedCell,
9639
9639
  onClick: () => {
9640
- S("timestamp");
9640
+ C("timestamp");
9641
9641
  },
9642
9642
  children: "Date"
9643
9643
  }
@@ -9646,10 +9646,10 @@ const Fp = (e) => {
9646
9646
  /* @__PURE__ */ c(Ve, { className: "text-xs sm:text-sm", children: "Provider" }),
9647
9647
  /* @__PURE__ */ c(Ve, { className: "text-xs sm:text-sm text-right", children: "Actions" })
9648
9648
  ] }) }),
9649
- /* @__PURE__ */ c(Wd, { children: e.slice(0, f).map((C, x) => {
9649
+ /* @__PURE__ */ c(Wd, { children: e.slice(0, f).map((S, x) => {
9650
9650
  var M, V;
9651
- const $ = C.summary || (C.messages.length > 0 ? (M = C.messages[0]) == null ? void 0 : M.content : ""), N = C.model ? Ih(C.model) : null, P = N ? gg[N] : null;
9652
- return ((V = C == null ? void 0 : C.messages) == null ? void 0 : V.length) > 0 ? /* @__PURE__ */ A(nc, { children: [
9651
+ const $ = S.summary || (S.messages.length > 0 ? (M = S.messages[0]) == null ? void 0 : M.content : ""), N = S.model ? Ih(S.model) : null, P = N ? gg[N] : null;
9652
+ return ((V = S == null ? void 0 : S.messages) == null ? void 0 : V.length) > 0 ? /* @__PURE__ */ A(nc, { children: [
9653
9653
  x === f - pn && /* @__PURE__ */ c("tr", { ref: s }),
9654
9654
  /* @__PURE__ */ A(pa, { children: [
9655
9655
  /* @__PURE__ */ c(Ve, { children: x + 1 }),
@@ -9659,7 +9659,7 @@ const Fp = (e) => {
9659
9659
  component: "th",
9660
9660
  scope: "row",
9661
9661
  className: "text-gray-400 sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none",
9662
- children: C.timestamp.split(",")[0]
9662
+ children: S.timestamp.split(",")[0]
9663
9663
  }
9664
9664
  ),
9665
9665
  /* @__PURE__ */ c(
@@ -9679,7 +9679,14 @@ const Fp = (e) => {
9679
9679
  scope: "row",
9680
9680
  className: "text-gray-400",
9681
9681
  align: "center",
9682
- children: P ? /* @__PURE__ */ c(P, { size: "size-4 sm:size-5", semantic: !0 }) : null
9682
+ children: P ? /* @__PURE__ */ c(
9683
+ P,
9684
+ {
9685
+ size: "size-4 sm:size-5",
9686
+ semantic: !0,
9687
+ title: S.model || N
9688
+ }
9689
+ ) : null
9683
9690
  }
9684
9691
  ),
9685
9692
  /* @__PURE__ */ A(Ve, { align: "right", children: [
@@ -9693,7 +9700,7 @@ const Fp = (e) => {
9693
9700
  onClick: async () => {
9694
9701
  const F = await n();
9695
9702
  v(
9696
- C,
9703
+ S,
9697
9704
  t,
9698
9705
  r,
9699
9706
  F,
@@ -9713,9 +9720,9 @@ const Fp = (e) => {
9713
9720
  onClick: () => {
9714
9721
  var F;
9715
9722
  i.current = {
9716
- id: C.id,
9717
- timestamp: C.timestamp,
9718
- message: C.messages.length > 0 ? (F = C.messages[0]) == null ? void 0 : F.content : ""
9723
+ id: S.id,
9724
+ timestamp: S.timestamp,
9725
+ message: S.messages.length > 0 ? (F = S.messages[0]) == null ? void 0 : F.content : ""
9719
9726
  }, d(!l);
9720
9727
  },
9721
9728
  children: /* @__PURE__ */ c("div", { className: "text-red-400", children: /* @__PURE__ */ c(Mc, { size: "size-3", monotone: !0 }) })
@@ -9723,7 +9730,7 @@ const Fp = (e) => {
9723
9730
  )
9724
9731
  ] })
9725
9732
  ] })
9726
- ] }, `${de.HISTORY.TITLE}-${C.id}-${x}`) : null;
9733
+ ] }, `${de.HISTORY.TITLE}-${S.id}-${x}`) : null;
9727
9734
  }) }),
9728
9735
  /* @__PURE__ */ c(Fd, { children: /* @__PURE__ */ c(pa, { children: /* @__PURE__ */ c(Ve, { colSpan: 1e3, children: /* @__PURE__ */ c("div", { children: rr(
9729
9736
  `${e.length} chat`,
@@ -10235,11 +10242,11 @@ const Lg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
10235
10242
  leftElement: w,
10236
10243
  onChange: _,
10237
10244
  onFocus: k,
10238
- onBlur: S,
10245
+ onBlur: C,
10239
10246
  ...I
10240
10247
  }, v) => {
10241
10248
  var E;
10242
- const T = R(null), C = xg([v, T]), [x, $] = hs(), [N, P] = hs(), M = R(80), V = R(-25), F = R(null), L = R(30), D = R(null), J = Ig({ id: e, prefix: `${bl}-` }), [U, xe] = H(0), [Se, ze] = H(0), [Xe, Y] = H(
10249
+ const T = R(null), S = xg([v, T]), [x, $] = hs(), [N, P] = hs(), M = R(80), V = R(-25), F = R(null), L = R(30), D = R(null), J = Ig({ id: e, prefix: `${bl}-` }), [U, xe] = H(0), [Se, ze] = H(0), [Xe, Y] = H(
10243
10250
  !!(!y && p)
10244
10251
  ), ie = `${t} error, ${p}`, ae = Hg({
10245
10252
  className: n,
@@ -10268,7 +10275,7 @@ const Lg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
10268
10275
  }, bt = (z) => {
10269
10276
  y && p && Y(!0), k && k(z);
10270
10277
  }, j = (z) => {
10271
- y && p && !me && Y(!1), S && S(z);
10278
+ y && p && !me && Y(!1), C && C(z);
10272
10279
  };
10273
10280
  return we(() => {
10274
10281
  $ && $.width && xe($.width + 18 + 10);
@@ -10325,7 +10332,7 @@ const Lg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
10325
10332
  /* @__PURE__ */ c(
10326
10333
  "textarea",
10327
10334
  {
10328
- ref: C,
10335
+ ref: S,
10329
10336
  id: J,
10330
10337
  name: t,
10331
10338
  disabled: u,
@@ -10573,23 +10580,23 @@ const Qg = ({
10573
10580
  });
10574
10581
  } catch {
10575
10582
  }
10576
- }, S = () => {
10583
+ }, C = () => {
10577
10584
  s(), t(!1);
10578
10585
  }, I = ({
10579
10586
  enabled: v = !1,
10580
10587
  privateChat: E = !1,
10581
10588
  clipboardAccess: T = !1,
10582
- ...C
10589
+ ...S
10583
10590
  }) => {
10584
10591
  f((x) => {
10585
10592
  const $ = x.prompts, N = {
10586
- ...C,
10593
+ ...S,
10587
10594
  enabled: v,
10588
10595
  privateChat: E,
10589
10596
  clipboardAccess: T
10590
10597
  };
10591
10598
  T ? N.content = N.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : N.content = N.content.replace(/{{clipboard}}/g, "");
10592
- const P = $.findIndex((M) => M.slot === C.slot);
10599
+ const P = $.findIndex((M) => M.slot === S.slot);
10593
10600
  return P === -1 ? {
10594
10601
  ...x,
10595
10602
  prompts: [...$, { ...N }]
@@ -10606,7 +10613,7 @@ const Qg = ({
10606
10613
  {
10607
10614
  animation: !at(),
10608
10615
  open: e,
10609
- onOpenChange: S,
10616
+ onOpenChange: C,
10610
10617
  title: ql,
10611
10618
  footer: /* @__PURE__ */ A(
10612
10619
  fr,
@@ -10621,7 +10628,7 @@ const Qg = ({
10621
10628
  mode: "dark",
10622
10629
  variant: "secondary",
10623
10630
  focusMode: "light",
10624
- onClick: S,
10631
+ onClick: C,
10625
10632
  children: "Cancel"
10626
10633
  }
10627
10634
  ) }),
@@ -10805,7 +10812,7 @@ const Qg = ({
10805
10812
  ) : null;
10806
10813
  }, wt = [0, 3, 6, 9], Xg = Co(() => import(
10807
10814
  /* webpackChunkName: "LazyChart" */
10808
- "./Chart.B2Fjll0b.js"
10815
+ "./Chart.CNh_TAwq.js"
10809
10816
  )), Zg = ({
10810
10817
  open: e,
10811
10818
  onOpenChange: t
@@ -10900,7 +10907,7 @@ const Qg = ({
10900
10907
  s(!n);
10901
10908
  }, k = () => {
10902
10909
  l(!i);
10903
- }, S = () => {
10910
+ }, C = () => {
10904
10911
  f(!d);
10905
10912
  }, I = () => {
10906
10913
  h(!u);
@@ -10998,7 +11005,7 @@ const Qg = ({
10998
11005
  tt,
10999
11006
  {
11000
11007
  label: "About",
11001
- onClick: S,
11008
+ onClick: C,
11002
11009
  icon: /* @__PURE__ */ c(Vc, {})
11003
11010
  }
11004
11011
  ),
@@ -11403,7 +11410,7 @@ const Dr = {
11403
11410
  variant: w = "primary",
11404
11411
  iconClassName: _,
11405
11412
  animated: k = !1,
11406
- ...S
11413
+ ...C
11407
11414
  }, I) => {
11408
11415
  const v = f1({
11409
11416
  type: en,
@@ -11422,7 +11429,7 @@ const Dr = {
11422
11429
  radius: b,
11423
11430
  variant: w,
11424
11431
  animated: k
11425
- }), E = d1({ mode: r, raw: i, iconClassName: _ }), T = u1({ animated: k }), C = "flex items-center justify-center relative w-full h-full overflow-hidden", [x, $] = $a(), [N, P] = $a(), [M, V] = $a(), F = R(0), L = R(null), D = R(null), J = p1([I, L]);
11432
+ }), E = d1({ mode: r, raw: i, iconClassName: _ }), T = u1({ animated: k }), S = "flex items-center justify-center relative w-full h-full overflow-hidden", [x, $] = $a(), [N, P] = $a(), [M, V] = $a(), F = R(0), L = R(null), D = R(null), J = p1([I, L]);
11426
11433
  return we(() => {
11427
11434
  M && M.current && k && (F.current = V.width + y1[u] + (l ? 0 : b1), L.current && !L.current.style.width && (L.current.style.width = `${Dr[u]}px`));
11428
11435
  }, [V, M, u, l, k]), we(() => {
@@ -11451,8 +11458,8 @@ const Dr = {
11451
11458
  disabled: t,
11452
11459
  type: s,
11453
11460
  "aria-label": d || f,
11454
- ...S,
11455
- children: /* @__PURE__ */ A("div", { className: C, children: [
11461
+ ...C,
11462
+ children: /* @__PURE__ */ A("div", { className: S, children: [
11456
11463
  /* @__PURE__ */ c(
11457
11464
  gs,
11458
11465
  {
@@ -12257,7 +12264,7 @@ const Mr = {
12257
12264
  variant: w = "primary",
12258
12265
  iconClassName: _,
12259
12266
  animated: k = !1,
12260
- ...S
12267
+ ...C
12261
12268
  }, I) => {
12262
12269
  const v = xl({
12263
12270
  type: fa,
@@ -12276,7 +12283,7 @@ const Mr = {
12276
12283
  radius: b,
12277
12284
  variant: w,
12278
12285
  animated: k
12279
- }), E = z1({ mode: r, raw: i, iconClassName: _ }), T = H1({ animated: k }), C = "flex items-center justify-center relative w-full h-full overflow-hidden", [x, $] = Oa(), [N, P] = Oa(), [M, V] = Oa(), F = R(0), L = R(null), D = R(null), J = F1([I, L]);
12286
+ }), E = z1({ mode: r, raw: i, iconClassName: _ }), T = H1({ animated: k }), S = "flex items-center justify-center relative w-full h-full overflow-hidden", [x, $] = Oa(), [N, P] = Oa(), [M, V] = Oa(), F = R(0), L = R(null), D = R(null), J = F1([I, L]);
12280
12287
  return we(() => {
12281
12288
  M && M.current && k && (F.current = V.width + j1[u] + (l ? 0 : G1), L.current && !L.current.style.width && (L.current.style.width = `${Mr[u]}px`));
12282
12289
  }, [V, M, u, l, k]), we(() => {
@@ -12305,8 +12312,8 @@ const Mr = {
12305
12312
  disabled: t,
12306
12313
  type: s,
12307
12314
  "aria-label": d || f,
12308
- ...S,
12309
- children: /* @__PURE__ */ A("div", { className: C, children: [
12315
+ ...C,
12316
+ children: /* @__PURE__ */ A("div", { className: S, children: [
12310
12317
  /* @__PURE__ */ c(
12311
12318
  vs,
12312
12319
  {
@@ -12469,7 +12476,7 @@ const X1 = ({ content: e }) => /* @__PURE__ */ c(
12469
12476
  ), ws = 2, Z1 = Co(
12470
12477
  () => import(
12471
12478
  /* webpackChunkName: "LazyMessageAssistant" */
12472
- "./ChatBubbleAssistant.CpcYygtw.js"
12479
+ "./ChatBubbleAssistant.Cj_fIOjH.js"
12473
12480
  )
12474
12481
  ), ey = W.memo(
12475
12482
  ({
@@ -12578,7 +12585,7 @@ function Il({
12578
12585
  }), [_, k] = Zt(Ru, {
12579
12586
  prompt: "",
12580
12587
  lastTriggeredTimestamp: 0
12581
- }), [S, I] = Zt(Nu, {
12588
+ }), [C, I] = Zt(Nu, {
12582
12589
  provider: "",
12583
12590
  // OpenAI, Anthropic, etc.
12584
12591
  privateChat: !1,
@@ -12631,7 +12638,7 @@ function Il({
12631
12638
  Ae.Provider,
12632
12639
  {
12633
12640
  value: {
12634
- state: S,
12641
+ state: C,
12635
12642
  dispatch: I,
12636
12643
  setChatId: d,
12637
12644
  setInitialMessages: u
@@ -12646,8 +12653,8 @@ function Il({
12646
12653
  experimental_throttle: 300,
12647
12654
  sendExtraMessageFields: !1,
12648
12655
  body: {
12649
- privateChat: S.privateChat,
12650
- provider: S.provider,
12656
+ privateChat: C.privateChat,
12657
+ provider: C.provider,
12651
12658
  username: r == null ? void 0 : r.username
12652
12659
  },
12653
12660
  generateId() {