@versini/sassysaint 8.15.1 → 8.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,9 +4,9 @@ var $o = (e) => {
4
4
  var qr = (e, t, r) => t.has(e) || $o("Cannot " + r);
5
5
  var O = (e, t, r) => (qr(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ge = (e, t, r) => t.has(e) ? $o("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), le = (e, t, r, a) => (qr(e, t, "write to private field"), a ? a.call(e, r) : t.set(e, r), r), fe = (e, t, r) => (qr(e, t, "access private method"), r);
6
6
  import { jsx as c, jsxs as N, Fragment as de } from "react/jsx-runtime";
7
- import { Subscribable as Gi, pendingThenable as Lo, resolveEnabled as He, shallowEqualObjects as ha, resolveStaleTime as xr, noop as ji, isServer as ma, isValidTimeout as Mo, focusManager as Wi, fetchState as qi, replaceData as Do, notifyManager as qn, timeUntilStale as Yi, useQueryClient as Ji, I as ne, ACTION_SORT as pa, ACTION_SEARCH as Yn, ACTION_RESET_PROMPT as Jn, ACTION_TOGGLE_PROMPT as Kn, re as Ne, DEFAULT_ICON_ACTION_SIZE as Ye, Qr as Oe, isElectron as ga, isProbablyiPhone as ya, L as ar, j as We, C as yt, LOCAL_STORAGE_PREFIX as bt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Ki, LOCAL_STORAGE_REASONING_DISCLOSURE as Qi, TOAST_CHAT_SAVED as Xi, toastOptions as Ir, TOAST_PROVIDER_CHANGED as Qn, PROMPT_CLASSNAME as Zi, PROMPT_EDITABLE_AREA_CLASSNAME as el, ERROR_MESSAGE as tl, ROLE_INTERNAL as ba, CLIPBOARD_PROMPT as Bo, isProbablyMobile as st, qr as Xn, GRANTS as Zn, INPUT_PLACEHOLDER_TEXT as Po, FOOTER_DISCLAIMER as rl, S as Me, renderDataAsList as Sr, CARDS as ce, pluralize as Yt, ABOUT_TITLE as al, INFINITE_SCROLL_LIMIT as zo, INFINITE_SCROLL_THRESHOLD as Vo, LOCAL_STORAGE_SORT as es, APP_CLASSNAME as ts, TOAST_CHAT_DELETED as ol, LOCAL_STORAGE_SEARCH as rs, HISTORY_TITLE as nl, fe as sl, debounce as il, x as ll, l as Fo, PROFILE_TITLE as cl, LOCAL_STORAGE_CHAT_DETAILS as dl, SETTINGS_TITLE as ul, APP_NAME as fl, PROMPTS_DESCRIPTION as hl, getCurrentGeoLocation as ml, USAGE_TITLE as pl, LOG_OUT as Uo, getMessageContaintWrapperClass as gl, UI_FOOTER_BUFFER as as, UI_BUTTON_SCROLL_BUFFER as yl, Logo as bl, UI_DEFAULT_MAIN_HEIGHT as Ho, getMainPaddingClass as Go, r as vl } from "./index.BYjX-jmw.js";
7
+ import { Subscribable as Gi, pendingThenable as Lo, resolveEnabled as He, shallowEqualObjects as ha, resolveStaleTime as xr, noop as ji, isServer as ma, isValidTimeout as Mo, focusManager as Wi, fetchState as qi, replaceData as Do, notifyManager as qn, timeUntilStale as Yi, useQueryClient as Ji, I as ne, ACTION_SORT as pa, ACTION_SEARCH as Yn, ACTION_RESET_PROMPT as Jn, ACTION_TOGGLE_PROMPT as Kn, re as Ne, DEFAULT_ICON_ACTION_SIZE as Ye, Qr as Oe, isElectron as ga, isProbablyiPhone as ya, L as ar, j as We, C as yt, LOCAL_STORAGE_PREFIX as bt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Ki, LOCAL_STORAGE_REASONING_DISCLOSURE as Qi, TOAST_CHAT_SAVED as Xi, toastOptions as Ir, TOAST_PROVIDER_CHANGED as Qn, PROMPT_CLASSNAME as Zi, PROMPT_EDITABLE_AREA_CLASSNAME as el, ERROR_MESSAGE as tl, ROLE_INTERNAL as ba, CLIPBOARD_PROMPT as Bo, isProbablyMobile as st, qr as Xn, GRANTS as Zn, INPUT_PLACEHOLDER_TEXT as Po, FOOTER_DISCLAIMER as rl, S as Me, renderDataAsList as Sr, CARDS as ce, pluralize as Yt, ABOUT_TITLE as al, INFINITE_SCROLL_LIMIT as zo, INFINITE_SCROLL_THRESHOLD as Vo, LOCAL_STORAGE_SORT as es, APP_CLASSNAME as ts, TOAST_CHAT_DELETED as ol, LOCAL_STORAGE_SEARCH as rs, HISTORY_TITLE as nl, fe as sl, debounce as il, x as ll, l as Fo, PROFILE_TITLE as cl, LOCAL_STORAGE_CHAT_DETAILS as dl, SETTINGS_TITLE as ul, APP_NAME as fl, PROMPTS_DESCRIPTION as hl, getCurrentGeoLocation as ml, USAGE_TITLE as pl, LOG_OUT as Uo, getMessageContaintWrapperClass as gl, UI_FOOTER_BUFFER as as, UI_BUTTON_SCROLL_BUFFER as yl, Logo as bl, UI_DEFAULT_MAIN_HEIGHT as Ho, getMainPaddingClass as Go, r as vl } from "./index.6_64ziFG.js";
8
8
  import * as oe from "react";
9
- import U, { useEffect as z, useRef as L, useState as V, useCallback as Y, useSyncExternalStore as os, useMemo as $e, useId as Lr, useContext as re, useLayoutEffect as we, isValidElement as Mr, cloneElement as eo, createContext as ns, useDebugValue as _l, forwardRef as ss, Suspense as to, lazy as ro, Fragment as wl, useReducer as jt } from "react";
9
+ import U, { useEffect as P, useRef as L, useState as z, useCallback as Y, useSyncExternalStore as os, useMemo as $e, useId as Lr, useContext as re, useLayoutEffect as we, isValidElement as Mr, cloneElement as eo, createContext as ns, useDebugValue as _l, forwardRef as ss, Suspense as to, lazy as ro, Fragment as wl, useReducer as jt } from "react";
10
10
  import g from "clsx";
11
11
  import { useMergeRefs as ao, FloatingPortal as is, FloatingOverlay as kl, FloatingFocusManager as ls, useFloating as cs, useClick as ds, useDismiss as us, useRole as fs, useInteractions as hs, FloatingTree as xl, useFloatingTree as ms, useFloatingNodeId as Tl, useListItem as ps, autoUpdate as El, offset as Cl, flip as Il, shift as Sl, useListNavigation as Nl, useTypeahead as Rl, FloatingNode as Al, FloatingList as Ol } from "@floating-ui/react";
12
12
  var Se, q, tr, ke, mt, Rt, rt, at, rr, At, Ot, pt, gt, ot, $t, te, Wt, va, _a, wa, ka, xa, Ta, Ea, gs, Wn, $l = (Wn = class extends Gi {
@@ -1083,7 +1083,7 @@ function wc(e, t, r = !1) {
1083
1083
  return e.target instanceof HTMLElement ? (r || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
1084
1084
  }
1085
1085
  function ws(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
1086
- z(() => {
1086
+ P(() => {
1087
1087
  const a = (o) => {
1088
1088
  e.forEach(
1089
1089
  ([n, s, l = { preventDefault: !0 }]) => {
@@ -1095,7 +1095,7 @@ function ws(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
1095
1095
  }, [e, t, r]);
1096
1096
  }
1097
1097
  function kc() {
1098
- const e = L(null), [t, r] = V(!1);
1098
+ const e = L(null), [t, r] = z(!1);
1099
1099
  return { ref: Y((a) => {
1100
1100
  var o, n;
1101
1101
  typeof IntersectionObserver < "u" && (a && !e.current ? e.current = new IntersectionObserver(
@@ -1105,7 +1105,7 @@ function kc() {
1105
1105
  }
1106
1106
  function xc() {
1107
1107
  const e = L(!1);
1108
- return z(() => (e.current = !0, () => {
1108
+ return P(() => (e.current = !0, () => {
1109
1109
  e.current = !1;
1110
1110
  }), []), Y(() => e.current, []);
1111
1111
  }
@@ -1139,7 +1139,7 @@ function vt({
1139
1139
  }, [t, a]), n = Y(() => {
1140
1140
  a(null);
1141
1141
  }, [a]);
1142
- return z(() => {
1142
+ return P(() => {
1143
1143
  try {
1144
1144
  Ko(e) === null && typeof t < "u" && Jo(e, t);
1145
1145
  } catch (s) {
@@ -1158,13 +1158,13 @@ const Cc = {
1158
1158
  right: 0
1159
1159
  };
1160
1160
  function xs(e) {
1161
- const t = xc(), r = L(0), a = L(null), [o, n] = V(Cc), s = $e(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
1161
+ const t = xc(), r = L(0), a = L(null), [o, n] = z(Cc), s = $e(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
1162
1162
  const i = l[0];
1163
1163
  i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
1164
1164
  a.current && t() && n(i.contentRect);
1165
1165
  }));
1166
1166
  }), [t]);
1167
- return z(() => (a.current && (s == null || s.observe(a.current, e)), () => {
1167
+ return P(() => (a.current && (s == null || s.observe(a.current, e)), () => {
1168
1168
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
1169
1169
  }), [s, e]), [a, o];
1170
1170
  }
@@ -1172,12 +1172,12 @@ function Kt(e) {
1172
1172
  return Lr();
1173
1173
  }
1174
1174
  function Qo(e, t) {
1175
- z(() => (window.addEventListener(e, t, {
1175
+ P(() => (window.addEventListener(e, t, {
1176
1176
  passive: !0
1177
1177
  }), () => window.removeEventListener(e, t)), [e, t]);
1178
1178
  }
1179
1179
  function Ic() {
1180
- const [e, t] = V({
1180
+ const [e, t] = z({
1181
1181
  width: 0,
1182
1182
  height: 0
1183
1183
  }), r = Y(() => {
@@ -1186,10 +1186,10 @@ function Ic() {
1186
1186
  height: window.innerHeight || 0
1187
1187
  });
1188
1188
  }, []);
1189
- return Qo("resize", r), Qo("orientationchange", r), z(r, []), e;
1189
+ return Qo("resize", r), Qo("orientationchange", r), P(r, []), e;
1190
1190
  }
1191
1191
  function Sc() {
1192
- const [e, t] = V({
1192
+ const [e, t] = z({
1193
1193
  width: 0,
1194
1194
  height: 0
1195
1195
  }), r = Y(() => {
@@ -1199,7 +1199,7 @@ function Sc() {
1199
1199
  height: ((o = window == null ? void 0 : window.visualViewport) == null ? void 0 : o.height) || window.innerHeight || 0
1200
1200
  });
1201
1201
  }, []);
1202
- return z(() => (r(), window.visualViewport && (window.visualViewport.addEventListener("resize", r, {
1202
+ return P(() => (r(), window.visualViewport && (window.visualViewport.addEventListener("resize", r, {
1203
1203
  passive: !0
1204
1204
  }), window.visualViewport.addEventListener("orientationchange", r, {
1205
1205
  passive: !0
@@ -1634,7 +1634,7 @@ const Dr = "thead", so = "tfoot", It = "tbody", Ge = {
1634
1634
  Es.displayName = "BaseButton";
1635
1635
  function Yc() {
1636
1636
  const e = L(!1);
1637
- return z(() => (e.current = !0, () => {
1637
+ return P(() => (e.current = !0, () => {
1638
1638
  e.current = !1;
1639
1639
  }), []), Y(() => e.current, []);
1640
1640
  }
@@ -1657,13 +1657,13 @@ const Kc = {
1657
1657
  right: 0
1658
1658
  };
1659
1659
  function Yr(e) {
1660
- const t = Yc(), r = L(0), a = L(null), [o, n] = V(Kc), s = $e(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
1660
+ const t = Yc(), r = L(0), a = L(null), [o, n] = z(Kc), s = $e(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
1661
1661
  const i = l[0];
1662
1662
  i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
1663
1663
  a.current && t() && n(i.contentRect);
1664
1664
  }));
1665
1665
  }), [t]);
1666
- return z(() => (a.current && (s == null || s.observe(a.current, e)), () => {
1666
+ return P(() => (a.current && (s == null || s.observe(a.current, e)), () => {
1667
1667
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
1668
1668
  }), [s, e]), [a, o];
1669
1669
  }
@@ -1722,11 +1722,11 @@ const Qc = {
1722
1722
  radius: b,
1723
1723
  variant: v,
1724
1724
  animated: k
1725
- }), x = Gc({ mode: r, raw: l, iconClassName: w }), E = jc({ animated: k }), [T, S] = Yr(), [R, $] = Yr(), [A, M] = Yr(), P = L(0), D = L(null), j = Jc([I, D]);
1725
+ }), x = Gc({ mode: r, raw: l, iconClassName: w }), E = jc({ animated: k }), [T, S] = Yr(), [R, $] = Yr(), [A, D] = Yr(), F = L(0), M = L(null), j = Jc([I, M]);
1726
1726
  return we(() => {
1727
- A && A.current && k && (P.current = M.width + Xc[u] + (i ? 0 : Zc));
1728
- }, [M, A, u, i, k]), we(() => {
1729
- D && D.current && k && (h && T && S.width > 0 ? (T.current && (T.current.style.opacity = "100"), D.current.style.width = `${S.width + P.current}px`) : m && $.width > 0 ? (R.current && (R.current.style.opacity = "100"), D.current.style.width = `${$.width + P.current}px`) : (T.current && (T.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), D.current.style.width = `${Qc[u]}px`));
1727
+ A && A.current && k && (F.current = D.width + Xc[u] + (i ? 0 : Zc));
1728
+ }, [D, A, u, i, k]), we(() => {
1729
+ M && M.current && k && (h && T && S.width > 0 ? (T.current && (T.current.style.opacity = "100"), M.current.style.width = `${S.width + F.current}px`) : m && $.width > 0 ? (R.current && (R.current.style.opacity = "100"), M.current.style.width = `${$.width + F.current}px`) : (T.current && (T.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), M.current.style.width = `${Qc[u]}px`));
1730
1730
  }, [
1731
1731
  S,
1732
1732
  h,
@@ -2168,7 +2168,7 @@ function Ss({ enter: e, exit: t, appendPosition: r = !1, collapse: a = !0, colla
2168
2168
  w.target === d.current && (u(), y.removeEventListener("animationend", v), y.removeEventListener("animationcancel", v), p.current === 0 && w.type !== "animationcancel" && y.classList.remove(...b));
2169
2169
  };
2170
2170
  y.classList.add(...b), y.addEventListener("animationend", v), y.addEventListener("animationcancel", v);
2171
- }, []), z(() => {
2171
+ }, []), P(() => {
2172
2172
  let y = d.current, b = () => {
2173
2173
  y.removeEventListener("animationend", b), a ? pd(y, i, o) : i();
2174
2174
  };
@@ -2400,8 +2400,8 @@ function Ad(e) {
2400
2400
  return { getToastToRender: s, isToastActive: Os, count: n == null ? void 0 : n.length };
2401
2401
  }
2402
2402
  function Od(e) {
2403
- let [t, r] = V(!1), [a, o] = V(!1), n = L(null), s = L({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: l, pauseOnHover: i, closeToast: d, onClick: f, closeOnClick: u } = e;
2404
- Ed({ id: e.toastId, containerId: e.containerId, fn: r }), z(() => {
2403
+ let [t, r] = z(!1), [a, o] = z(!1), n = L(null), s = L({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: l, pauseOnHover: i, closeToast: d, onClick: f, closeOnClick: u } = e;
2404
+ Ed({ id: e.toastId, containerId: e.containerId, fn: r }), P(() => {
2405
2405
  if (e.pauseOnFocusLoss) return h(), () => {
2406
2406
  m();
2407
2407
  };
@@ -2459,7 +2459,7 @@ function Od(e) {
2459
2459
  f && f(x), s.canCloseOnClick && d(!0);
2460
2460
  }), { playToast: b, pauseToast: v, isRunning: t, preventExitTransition: a, toastRef: n, eventHandlers: _ };
2461
2461
  }
2462
- var $d = typeof window < "u" ? we : z, zr = ({ theme: e, type: t, isLoading: r, ...a }) => U.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: e === "colored" ? "currentColor" : `var(--toastify-icon-color-${t})`, ...a });
2462
+ var $d = typeof window < "u" ? we : P, zr = ({ theme: e, type: t, isLoading: r, ...a }) => U.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: e === "colored" ? "currentColor" : `var(--toastify-icon-color-${t})`, ...a });
2463
2463
  function Ld(e) {
2464
2464
  return U.createElement(zr, { ...e }, U.createElement("path", { d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z" }));
2465
2465
  }
@@ -2481,11 +2481,11 @@ function Vd({ theme: e, type: t, isLoading: r, icon: a }) {
2481
2481
  return a === !1 || (Ze(a) ? o = a({ ...n, isLoading: r }) : Mr(a) ? o = eo(a, n) : r ? o = Aa.spinner() : zd(t) && (o = Aa[t](n))), o;
2482
2482
  }
2483
2483
  var Fd = (e) => {
2484
- let { isRunning: t, preventExitTransition: r, toastRef: a, eventHandlers: o, playToast: n } = Od(e), { closeButton: s, children: l, autoClose: i, onClick: d, type: f, hideProgressBar: u, closeToast: h, transition: m, position: p, className: y, style: b, progressClassName: v, updateId: w, role: k, progress: C, rtl: I, toastId: _, deleteToast: x, isIn: E, isLoading: T, closeOnClick: S, theme: R, ariaLabel: $ } = e, A = g("Toastify__toast", `Toastify__toast-theme--${R}`, `Toastify__toast--${f}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": S }), M = Ze(y) ? y({ rtl: I, position: p, type: f, defaultClassName: A }) : g(A, y), P = Vd(e), D = !!C || !i, j = { closeToast: h, type: f, theme: R }, H = null;
2485
- return s === !1 || (Ze(s) ? H = s(j) : Mr(s) ? H = eo(s, j) : H = gd(j)), U.createElement(m, { isIn: E, done: x, position: p, preventExitTransition: r, nodeRef: a, playToast: n }, U.createElement("div", { id: _, tabIndex: 0, onClick: d, "data-in": E, className: M, ...o, style: b, ref: a, ...E && { role: k, "aria-label": $ } }, P != null && U.createElement("div", { className: g("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !T }) }, P), Ns(l, e, !t), H, !e.customProgressBar && U.createElement(yd, { ...w && !D ? { key: `p-${w}` } : {}, rtl: I, theme: R, delay: i, isRunning: t, isIn: E, closeToast: h, hide: u, type: f, className: v, controlledProgress: D, progress: C || 0 })));
2484
+ let { isRunning: t, preventExitTransition: r, toastRef: a, eventHandlers: o, playToast: n } = Od(e), { closeButton: s, children: l, autoClose: i, onClick: d, type: f, hideProgressBar: u, closeToast: h, transition: m, position: p, className: y, style: b, progressClassName: v, updateId: w, role: k, progress: C, rtl: I, toastId: _, deleteToast: x, isIn: E, isLoading: T, closeOnClick: S, theme: R, ariaLabel: $ } = e, A = g("Toastify__toast", `Toastify__toast-theme--${R}`, `Toastify__toast--${f}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": S }), D = Ze(y) ? y({ rtl: I, position: p, type: f, defaultClassName: A }) : g(A, y), F = Vd(e), M = !!C || !i, j = { closeToast: h, type: f, theme: R }, H = null;
2485
+ return s === !1 || (Ze(s) ? H = s(j) : Mr(s) ? H = eo(s, j) : H = gd(j)), U.createElement(m, { isIn: E, done: x, position: p, preventExitTransition: r, nodeRef: a, playToast: n }, U.createElement("div", { id: _, tabIndex: 0, onClick: d, "data-in": E, className: D, ...o, style: b, ref: a, ...E && { role: k, "aria-label": $ } }, F != null && U.createElement("div", { className: g("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !T }) }, F), Ns(l, e, !t), H, !e.customProgressBar && U.createElement(yd, { ...w && !M ? { key: `p-${w}` } : {}, rtl: I, theme: R, delay: i, isRunning: t, isIn: E, closeToast: h, hide: u, type: f, className: v, controlledProgress: M, progress: C || 0 })));
2486
2486
  }, Ms = (e, t = !1) => ({ enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t }), Ud = Ss(Ms("bounce", !0)), Nr = Ss(Ms("slide", !0)), Hd = { position: "top-right", transition: Ud, 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" };
2487
2487
  function Oa(e) {
2488
- let t = { ...Hd, ...e }, r = e.stacked, [a, o] = V(!0), n = L(null), { getToastToRender: s, isToastActive: l, count: i } = Ad(t), { className: d, style: f, rtl: u, containerId: h, hotKeys: m } = t;
2488
+ let t = { ...Hd, ...e }, r = e.stacked, [a, o] = z(!0), n = L(null), { getToastToRender: s, isToastActive: l, count: i } = Ad(t), { className: d, style: f, rtl: u, containerId: h, hotKeys: m } = t;
2489
2489
  function p(b) {
2490
2490
  let v = g("Toastify__toast-container", `Toastify__toast-container--${b}`, { "Toastify__toast-container--rtl": u });
2491
2491
  return Ze(d) ? d({ position: b, rtl: u, defaultClassName: v }) : g(v, Sa(d));
@@ -2504,7 +2504,7 @@ function Oa(e) {
2504
2504
  E.style.setProperty("--y", `${k ? T : T * -1}px`), E.style.setProperty("--g", `${w}`), E.style.setProperty("--s", `${1 - (a ? I : 0)}`), C += E.offsetHeight, I += 0.025;
2505
2505
  });
2506
2506
  }
2507
- }, [a, i, r]), z(() => {
2507
+ }, [a, i, r]), P(() => {
2508
2508
  function b(v) {
2509
2509
  var w;
2510
2510
  let k = n.current;
@@ -2550,13 +2550,14 @@ const Jt = "FOOTER_BOTTOM", $a = "FOOTER_TOP", Tr = "APP_SET_FOOTER_POSITION", D
2550
2550
  attachments: t.payload.attachments
2551
2551
  };
2552
2552
  case ht: {
2553
- let i = !1, d = !1, f = !1, u = !1;
2554
- return typeof ((r = t == null ? void 0 : t.payload) == null ? void 0 : r.loading) == "boolean" ? f = t.payload.loading : typeof e.loading == "boolean" && (f = e.loading), typeof ((a = t == null ? void 0 : t.payload) == null ? void 0 : a.streaming) == "boolean" ? d = t.payload.streaming : typeof e.streaming == "boolean" && (d = e.streaming), typeof ((o = t == null ? void 0 : t.payload) == null ? void 0 : o.restoring) == "boolean" ? i = t.payload.restoring : typeof e.restoring == "boolean" && (i = e.restoring), typeof ((n = t == null ? void 0 : t.payload) == null ? void 0 : n.aborted) == "boolean" ? u = t.payload.aborted : typeof e.aborted == "boolean" && (u = e.aborted), (d || f) && (i = !1, u = !1), {
2553
+ let i = !1, d = !1, f = !1, u = !1, h = "";
2554
+ return typeof ((r = t == null ? void 0 : t.payload) == null ? void 0 : r.loading) == "boolean" ? f = t.payload.loading : typeof e.loading == "boolean" && (f = e.loading), typeof ((a = t == null ? void 0 : t.payload) == null ? void 0 : a.streaming) == "boolean" ? d = t.payload.streaming : typeof e.streaming == "boolean" && (d = e.streaming), typeof ((o = t == null ? void 0 : t.payload) == null ? void 0 : o.restoring) == "boolean" ? (i = t.payload.restoring, h = t.payload.restoredModel || "") : typeof e.restoring == "boolean" && (i = e.restoring, h = e.restoredModel || ""), typeof ((n = t == null ? void 0 : t.payload) == null ? void 0 : n.aborted) == "boolean" ? u = t.payload.aborted : typeof e.aborted == "boolean" && (u = e.aborted), (d || f) && (i = !1, h = "", u = !1), {
2555
2555
  ...e,
2556
2556
  reseting: !1,
2557
2557
  streaming: d,
2558
2558
  loading: f,
2559
2559
  restoring: i,
2560
+ restoredModel: h,
2560
2561
  aborted: u,
2561
2562
  usage: t.payload.usage || e.usage,
2562
2563
  attachments: t.payload.attachments !== void 0 ? t.payload.attachments : e.attachments,
@@ -4418,7 +4419,7 @@ const Zu = () => Fa, [Ua, Ha] = ir && window.addEventListener ? [
4418
4419
  }, of = {
4419
4420
  initFocus: tf,
4420
4421
  initReconnect: rf
4421
- }, hn = !U.useId, Xt = !ir || Qu, nf = (e) => Xu() ? window.requestAnimationFrame(e) : setTimeout(e, 1), ta = Xt ? z : we, ra = typeof navigator < "u" && navigator.connection, mn = !Xt && ra && ([
4422
+ }, hn = !U.useId, Xt = !ir || Qu, nf = (e) => Xu() ? window.requestAnimationFrame(e) : setTimeout(e, 1), ta = Xt ? P : we, ra = typeof navigator < "u" && navigator.connection, mn = !Xt && ra && ([
4422
4423
  "slow-2g",
4423
4424
  "2g"
4424
4425
  ].includes(ra.effectiveType) || ra.saveData), gr = /* @__PURE__ */ new WeakMap(), aa = (e, t) => za.prototype.toString.call(e) === `[object ${t}]`;
@@ -4670,30 +4671,30 @@ const oa = U.use || // This extra generic is to avoid TypeScript mixing up the g
4670
4671
  }), na = {
4671
4672
  dedupe: !0
4672
4673
  }, Ef = (e, t, r) => {
4673
- const { cache: a, compare: o, suspense: n, fallbackData: s, revalidateOnMount: l, revalidateIfStale: i, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, p, y, b] = Xe.get(a), [v, w] = go(e), k = L(!1), C = L(!1), I = L(v), _ = L(t), x = L(r), E = () => x.current, T = () => E().isVisible() && E().isOnline(), [S, R, $, A] = ni(a, v), M = L({}).current, P = Q(s) ? Q(r.fallback) ? xe : r.fallback[v] : s, D = (B, F) => {
4674
- for (const K in M) {
4674
+ const { cache: a, compare: o, suspense: n, fallbackData: s, revalidateOnMount: l, revalidateIfStale: i, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, p, y, b] = Xe.get(a), [v, w] = go(e), k = L(!1), C = L(!1), I = L(v), _ = L(t), x = L(r), E = () => x.current, T = () => E().isVisible() && E().isOnline(), [S, R, $, A] = ni(a, v), D = L({}).current, F = Q(s) ? Q(r.fallback) ? xe : r.fallback[v] : s, M = (B, V) => {
4675
+ for (const K in D) {
4675
4676
  const X = K;
4676
4677
  if (X === "data") {
4677
- if (!o(B[X], F[X]) && (!Q(B[X]) || !o(W, F[X])))
4678
+ if (!o(B[X], V[X]) && (!Q(B[X]) || !o(W, V[X])))
4678
4679
  return !1;
4679
- } else if (F[X] !== B[X])
4680
+ } else if (V[X] !== B[X])
4680
4681
  return !1;
4681
4682
  }
4682
4683
  return !0;
4683
4684
  }, j = $e(() => {
4684
- const B = !v || !t ? !1 : Q(l) ? E().isPaused() || n ? !1 : i !== !1 : l, F = (pe) => {
4685
+ const B = !v || !t ? !1 : Q(l) ? E().isPaused() || n ? !1 : i !== !1 : l, V = (pe) => {
4685
4686
  const Pe = lt(pe);
4686
4687
  return delete Pe._k, B ? {
4687
4688
  isValidating: !0,
4688
4689
  isLoading: !0,
4689
4690
  ...Pe
4690
4691
  } : Pe;
4691
- }, K = S(), X = A(), ue = F(K), _e = K === X ? ue : F(X);
4692
+ }, K = S(), X = A(), ue = V(K), _e = K === X ? ue : V(X);
4692
4693
  let ie = ue;
4693
4694
  return [
4694
4695
  () => {
4695
- const pe = F(S());
4696
- return D(pe, ie) ? (ie.data = pe.data, ie.isLoading = pe.isLoading, ie.isValidating = pe.isValidating, ie.error = pe.error, ie) : (ie = pe, pe);
4696
+ const pe = V(S());
4697
+ return M(pe, ie) ? (ie.data = pe.data, ie.isLoading = pe.isLoading, ie.isValidating = pe.isValidating, ie.error = pe.error, ie) : (ie = pe, pe);
4697
4698
  },
4698
4699
  () => _e
4699
4700
  ];
@@ -4701,18 +4702,18 @@ const oa = U.use || // This extra generic is to avoid TypeScript mixing up the g
4701
4702
  a,
4702
4703
  v
4703
4704
  ]), H = Ku.useSyncExternalStore(Y(
4704
- (B) => $(v, (F, K) => {
4705
- D(K, F) || B();
4705
+ (B) => $(v, (V, K) => {
4706
+ M(K, V) || B();
4706
4707
  }),
4707
4708
  // eslint-disable-next-line react-hooks/exhaustive-deps
4708
4709
  [
4709
4710
  a,
4710
4711
  v
4711
4712
  ]
4712
- ), j[0], j[1]), J = !k.current, he = m[v] && m[v].length > 0, Le = H.data, Ee = Q(Le) ? P && oi(P) ? oa(P) : P : Le, Be = H.error, Ke = L(Ee), W = h ? Q(Le) ? Q(Ke.current) ? Ee : Ke.current : Le : Ee, ae = he && !Q(Be) ? !1 : J && !Q(l) ? l : E().isPaused() ? !1 : n ? Q(Ee) ? !1 : i : Q(Ee) || i, se = !!(v && t && J && ae), be = Q(H.isValidating) ? se : H.isValidating, Ce = Q(H.isLoading) ? se : H.isLoading, ve = Y(
4713
+ ), j[0], j[1]), J = !k.current, he = m[v] && m[v].length > 0, Le = H.data, Ee = Q(Le) ? F && oi(F) ? oa(F) : F : Le, Be = H.error, Ke = L(Ee), W = h ? Q(Le) ? Q(Ke.current) ? Ee : Ke.current : Le : Ee, ae = he && !Q(Be) ? !1 : J && !Q(l) ? l : E().isPaused() ? !1 : n ? Q(Ee) ? !1 : i : Q(Ee) || i, se = !!(v && t && J && ae), be = Q(H.isValidating) ? se : H.isValidating, Ce = Q(H.isLoading) ? se : H.isLoading, ve = Y(
4713
4714
  async (B) => {
4714
- const F = _.current;
4715
- if (!v || !F || C.current || E().isPaused())
4715
+ const V = _.current;
4716
+ if (!v || !V || C.current || E().isPaused())
4716
4717
  return !1;
4717
4718
  let K, X, ue = !0;
4718
4719
  const _e = B || {}, ie = !y[v] || !_e.dedupe, pe = () => hn ? !C.current && v === I.current && k.current : v === I.current, Pe = {
@@ -4731,7 +4732,7 @@ const oa = U.use || // This extra generic is to avoid TypeScript mixing up the g
4731
4732
  if (ie && (R(Tt), r.loadingTimeout && Q(S().data) && setTimeout(() => {
4732
4733
  ue && pe() && E().onLoadingSlow(v, r);
4733
4734
  }, r.loadingTimeout), y[v] = [
4734
- F(w),
4735
+ V(w),
4735
4736
  ja()
4736
4737
  ]), [K, X] = y[v], K = await K, ie && setTimeout(Gt, r.dedupingInterval), !y[v] || y[v][1] !== X)
4737
4738
  return ie && pe() && E().onDiscarded(v), !1;
@@ -4783,11 +4784,11 @@ const oa = U.use || // This extra generic is to avoid TypeScript mixing up the g
4783
4784
  }), ta(() => {
4784
4785
  if (!v) return;
4785
4786
  const B = ve.bind(xe, na);
4786
- let F = 0;
4787
+ let V = 0;
4787
4788
  const X = Tf(v, m, (ue, _e = {}) => {
4788
4789
  if (ue == ti) {
4789
4790
  const ie = Date.now();
4790
- E().revalidateOnFocus && ie > F && T() && (F = ie + E().focusThrottleInterval, B());
4791
+ E().revalidateOnFocus && ie > V && T() && (V = ie + E().focusThrottleInterval, B());
4791
4792
  } else if (ue == ri)
4792
4793
  E().revalidateOnReconnect && T() && B();
4793
4794
  else {
@@ -4806,14 +4807,14 @@ const oa = U.use || // This extra generic is to avoid TypeScript mixing up the g
4806
4807
  v
4807
4808
  ]), ta(() => {
4808
4809
  let B;
4809
- function F() {
4810
+ function V() {
4810
4811
  const X = je(d) ? d(S().data) : d;
4811
4812
  X && B !== -1 && (B = setTimeout(K, X));
4812
4813
  }
4813
4814
  function K() {
4814
- !S().error && (f || E().isVisible()) && (u || E().isOnline()) ? ve(na).then(F) : F();
4815
+ !S().error && (f || E().isVisible()) && (u || E().isOnline()) ? ve(na).then(V) : V();
4815
4816
  }
4816
- return F(), () => {
4817
+ return V(), () => {
4817
4818
  B && (clearTimeout(B), B = -1);
4818
4819
  };
4819
4820
  }, [
@@ -4827,28 +4828,28 @@ const oa = U.use || // This extra generic is to avoid TypeScript mixing up the g
4827
4828
  _.current = t, x.current = r, C.current = !1;
4828
4829
  const B = b[v];
4829
4830
  if (!Q(B)) {
4830
- const F = G(B);
4831
- oa(F);
4831
+ const V = G(B);
4832
+ oa(V);
4832
4833
  }
4833
4834
  if (Q(Be)) {
4834
- const F = ve(na);
4835
- Q(W) || (F.status = "fulfilled", F.value = !0), oa(F);
4835
+ const V = ve(na);
4836
+ Q(W) || (V.status = "fulfilled", V.value = !0), oa(V);
4836
4837
  } else
4837
4838
  throw Be;
4838
4839
  }
4839
4840
  return {
4840
4841
  mutate: G,
4841
4842
  get data() {
4842
- return M.data = !0, W;
4843
+ return D.data = !0, W;
4843
4844
  },
4844
4845
  get error() {
4845
- return M.error = !0, Be;
4846
+ return D.error = !0, Be;
4846
4847
  },
4847
4848
  get isValidating() {
4848
- return M.isValidating = !0, be;
4849
+ return D.isValidating = !0, be;
4849
4850
  },
4850
4851
  get isLoading() {
4851
- return M.isLoading = !0, Ce;
4852
+ return D.isLoading = !0, Ce;
4852
4853
  }
4853
4854
  };
4854
4855
  }, yr = xf(Ef);
@@ -4876,8 +4877,8 @@ function yn(e, t) {
4876
4877
  return t != null ? Sf(e, t) : e;
4877
4878
  }
4878
4879
  function Nf(e) {
4879
- const [t, r] = V(e);
4880
- return z(() => {
4880
+ const [t, r] = z(e);
4881
+ return P(() => {
4881
4882
  Ba(e, t) || r(e);
4882
4883
  }, [e, t]), t;
4883
4884
  }
@@ -4902,7 +4903,7 @@ function Rf({
4902
4903
  keepLastMessageOnError: v = !0,
4903
4904
  experimental_throttle: w
4904
4905
  } = {}) {
4905
- const [k] = V(y), C = t ?? k, I = typeof e == "string" ? [e, C] : C, _ = Nf(r ?? []), x = $e(
4906
+ const [k] = z(y), C = t ?? k, I = typeof e == "string" ? [e, C] : C, _ = Nf(r ?? []), x = $e(
4906
4907
  () => Qr(_),
4907
4908
  [_]
4908
4909
  ), { data: E, mutate: T } = yr(
@@ -4910,19 +4911,19 @@ function Rf({
4910
4911
  null,
4911
4912
  { fallbackData: x }
4912
4913
  ), S = L(E || []);
4913
- z(() => {
4914
+ P(() => {
4914
4915
  S.current = E || [];
4915
4916
  }, [E]);
4916
4917
  const { data: R, mutate: $ } = yr([I, "streamData"], null), A = L(R);
4917
- z(() => {
4918
+ P(() => {
4918
4919
  A.current = R;
4919
4920
  }, [R]);
4920
- const { data: M = "ready", mutate: P } = yr([I, "status"], null), { data: D = void 0, mutate: j } = yr([I, "error"], null), H = L(null), J = L({
4921
+ const { data: D = "ready", mutate: F } = yr([I, "status"], null), { data: M = void 0, mutate: j } = yr([I, "error"], null), H = L(null), J = L({
4921
4922
  credentials: h,
4922
4923
  headers: m,
4923
4924
  body: p
4924
4925
  });
4925
- z(() => {
4926
+ P(() => {
4926
4927
  J.current = {
4927
4928
  credentials: h,
4928
4929
  headers: m,
@@ -4932,9 +4933,9 @@ function Rf({
4932
4933
  const he = Y(
4933
4934
  async (G) => {
4934
4935
  var ee, B;
4935
- P("submitted"), j(void 0);
4936
- const F = Qr(G.messages), K = F.length, X = Da(
4937
- (ee = F[F.length - 1]) == null ? void 0 : ee.toolInvocations
4936
+ F("submitted"), j(void 0);
4937
+ const V = Qr(G.messages), K = V.length, X = Da(
4938
+ (ee = V[V.length - 1]) == null ? void 0 : ee.toolInvocations
4938
4939
  );
4939
4940
  try {
4940
4941
  const _e = new AbortController();
@@ -4943,8 +4944,8 @@ function Rf({
4943
4944
  $,
4944
4945
  w
4945
4946
  ), Pe = S.current;
4946
- ie(F, !1);
4947
- const fr = o ? F : F.map(
4947
+ ie(V, !1);
4948
+ const fr = o ? V : V.map(
4948
4949
  ({
4949
4950
  role: Tt,
4950
4951
  content: me,
@@ -4969,7 +4970,7 @@ function Rf({
4969
4970
  api: e,
4970
4971
  body: (B = s == null ? void 0 : s({
4971
4972
  id: C,
4972
- messages: F,
4973
+ messages: V,
4973
4974
  requestData: G.data,
4974
4975
  requestBody: G.body
4975
4976
  })) != null ? B : {
@@ -4991,9 +4992,9 @@ function Rf({
4991
4992
  },
4992
4993
  onResponse: d,
4993
4994
  onUpdate({ message: Tt, data: me, replaceLastMessage: Ie }) {
4994
- P("streaming"), ie(
4995
+ F("streaming"), ie(
4995
4996
  [
4996
- ...Ie ? F.slice(0, F.length - 1) : F,
4997
+ ...Ie ? V.slice(0, V.length - 1) : V,
4997
4998
  Tt
4998
4999
  ],
4999
5000
  !1
@@ -5006,12 +5007,12 @@ function Rf({
5006
5007
  onFinish: f,
5007
5008
  generateId: y,
5008
5009
  fetch: b,
5009
- lastMessage: F[F.length - 1]
5010
- }), H.current = null, P("ready");
5010
+ lastMessage: V[V.length - 1]
5011
+ }), H.current = null, F("ready");
5011
5012
  } catch (_e) {
5012
5013
  if (_e.name === "AbortError")
5013
- return H.current = null, P("ready"), null;
5014
- u && _e instanceof Error && u(_e), j(_e), P("error");
5014
+ return H.current = null, F("ready"), null;
5015
+ u && _e instanceof Error && u(_e), j(_e), F("error");
5015
5016
  }
5016
5017
  const ue = S.current;
5017
5018
  ju({
@@ -5023,7 +5024,7 @@ function Rf({
5023
5024
  },
5024
5025
  [
5025
5026
  T,
5026
- P,
5027
+ F,
5027
5028
  e,
5028
5029
  J,
5029
5030
  d,
@@ -5049,7 +5050,7 @@ function Rf({
5049
5050
  async (G, {
5050
5051
  data: ee,
5051
5052
  headers: B,
5052
- body: F,
5053
+ body: V,
5053
5054
  experimental_attachments: K
5054
5055
  } = {}) => {
5055
5056
  var X, ue;
@@ -5062,17 +5063,17 @@ function Rf({
5062
5063
  experimental_attachments: _e.length > 0 ? _e : void 0,
5063
5064
  parts: Zs(G)
5064
5065
  });
5065
- return he({ messages: ie, headers: B, body: F, data: ee });
5066
+ return he({ messages: ie, headers: B, body: V, data: ee });
5066
5067
  },
5067
5068
  [he, y]
5068
5069
  ), Ee = Y(
5069
5070
  async ({ data: G, headers: ee, body: B } = {}) => {
5070
- const F = S.current;
5071
- if (F.length === 0)
5071
+ const V = S.current;
5072
+ if (V.length === 0)
5072
5073
  return null;
5073
- const K = F[F.length - 1];
5074
+ const K = V[V.length - 1];
5074
5075
  return he({
5075
- messages: K.role === "assistant" ? F.slice(0, -1) : F,
5076
+ messages: K.role === "assistant" ? V.slice(0, -1) : V,
5076
5077
  headers: ee,
5077
5078
  body: B,
5078
5079
  data: G
@@ -5093,10 +5094,10 @@ function Rf({
5093
5094
  typeof G == "function" && (G = G(A.current)), $(G, !1), A.current = G;
5094
5095
  },
5095
5096
  [$]
5096
- ), [ae, se] = V(a), be = Y(
5097
+ ), [ae, se] = z(a), be = Y(
5097
5098
  async (G, ee = {}, B) => {
5098
- var F;
5099
- if ((F = G == null ? void 0 : G.preventDefault) == null || F.call(G), !ae && !ee.allowEmptySubmit)
5099
+ var V;
5100
+ if ((V = G == null ? void 0 : G.preventDefault) == null || V.call(G), !ae && !ee.allowEmptySubmit)
5100
5101
  return;
5101
5102
  B && (J.current = {
5102
5103
  ...J.current,
@@ -5135,12 +5136,12 @@ function Rf({
5135
5136
  { ...B[B.length - 1] }
5136
5137
  ],
5137
5138
  !1
5138
- ), M === "submitted" || M === "streaming")
5139
+ ), D === "submitted" || D === "streaming")
5139
5140
  return;
5140
- const F = B[B.length - 1];
5141
- ei(F) && he({ messages: B });
5141
+ const V = B[B.length - 1];
5142
+ ei(V) && he({ messages: B });
5142
5143
  },
5143
- [T, M, he]
5144
+ [T, D, he]
5144
5145
  );
5145
5146
  return {
5146
5147
  messages: E ?? [],
@@ -5148,7 +5149,7 @@ function Rf({
5148
5149
  setMessages: Ke,
5149
5150
  data: R,
5150
5151
  setData: W,
5151
- error: D,
5152
+ error: M,
5152
5153
  append: Le,
5153
5154
  reload: Ee,
5154
5155
  stop: Be,
@@ -5156,8 +5157,8 @@ function Rf({
5156
5157
  setInput: se,
5157
5158
  handleInputChange: Ce,
5158
5159
  handleSubmit: be,
5159
- isLoading: M === "submitted" || M === "streaming",
5160
- status: M,
5160
+ isLoading: D === "submitted" || D === "streaming",
5161
+ status: D,
5161
5162
  addToolResult: ve
5162
5163
  };
5163
5164
  }
@@ -5172,9 +5173,9 @@ function xt(e = {}) {
5172
5173
  if (!t)
5173
5174
  throw new Error("useAiChat must be used within a AiChatProvider");
5174
5175
  const r = L(e);
5175
- return z(() => {
5176
+ return P(() => {
5176
5177
  r.current = e;
5177
- }, [e]), z(() => {
5178
+ }, [e]), P(() => {
5178
5179
  const { onFinish: a, onError: o, onResponse: n, onToolCall: s } = r.current;
5179
5180
  return a && t.handlers.onFinish.add(a), o && t.handlers.onError.add(o), n && t.handlers.onResponse.add(n), s && t.handlers.onToolCall.add(s), () => {
5180
5181
  a && t.handlers.onFinish.delete(a), o && t.handlers.onError.delete(o), n && t.handlers.onResponse.delete(n), s && t.handlers.onToolCall.delete(s);
@@ -5186,7 +5187,7 @@ function Af({
5186
5187
  value: t
5187
5188
  }) {
5188
5189
  const r = L(bn());
5189
- z(() => {
5190
+ P(() => {
5190
5191
  r.current = bn();
5191
5192
  }, [t]);
5192
5193
  const a = Y(
@@ -5565,17 +5566,17 @@ const eh = (e) => ({
5565
5566
  }, m = ko(o), p = wo(m), y = await s.getDimensions(d), b = m === "y", v = b ? "top" : "left", w = 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], _ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
5566
5567
  let x = _ ? _[k] : 0;
5567
5568
  (!x || !await (s.isElement == null ? void 0 : s.isElement(_))) && (x = l.floating[k] || n.floating[p]);
5568
- const E = C / 2 - I / 2, T = x / 2 - y[p] / 2 - 1, S = Zt(u[v], T), R = Zt(u[w], T), $ = S, A = x - y[p] - R, M = x / 2 - y[p] / 2 + E, P = Wa($, M, A), D = !i.arrow && dr(o) != null && M !== P && n.reference[p] / 2 - (M < $ ? S : R) - y[p] / 2 < 0, j = D ? M < $ ? M - $ : M - A : 0;
5569
+ const E = C / 2 - I / 2, T = x / 2 - y[p] / 2 - 1, S = Zt(u[v], T), R = Zt(u[w], T), $ = S, A = x - y[p] - R, D = x / 2 - y[p] / 2 + E, F = Wa($, D, A), M = !i.arrow && dr(o) != null && D !== F && n.reference[p] / 2 - (D < $ ? S : R) - y[p] / 2 < 0, j = M ? D < $ ? D - $ : D - A : 0;
5569
5570
  return {
5570
5571
  [m]: h[m] + j,
5571
5572
  data: {
5572
- [m]: P,
5573
- centerOffset: M - P - j,
5574
- ...D && {
5573
+ [m]: F,
5574
+ centerOffset: D - F - j,
5575
+ ...M && {
5575
5576
  alignmentOffset: j
5576
5577
  }
5577
5578
  },
5578
- reset: D
5579
+ reset: M
5579
5580
  };
5580
5581
  }
5581
5582
  }), th = function(e) {
@@ -5607,27 +5608,27 @@ const eh = (e) => ({
5607
5608
  const x = [l, ...I], E = await fi(t, b), T = [];
5608
5609
  let S = ((a = n.flip) == null ? void 0 : a.overflows) || [];
5609
5610
  if (f && T.push(E[v]), u) {
5610
- const M = Yf(o, s, C);
5611
- T.push(E[M[0]], E[M[1]]);
5611
+ const D = Yf(o, s, C);
5612
+ T.push(E[D[0]], E[D[1]]);
5612
5613
  }
5613
5614
  if (S = [...S, {
5614
5615
  placement: o,
5615
5616
  overflows: T
5616
- }], !T.every((M) => M <= 0)) {
5617
+ }], !T.every((D) => D <= 0)) {
5617
5618
  var R, $;
5618
- const M = (((R = n.flip) == null ? void 0 : R.index) || 0) + 1, P = x[M];
5619
- if (P)
5619
+ const D = (((R = n.flip) == null ? void 0 : R.index) || 0) + 1, F = x[D];
5620
+ if (F)
5620
5621
  return {
5621
5622
  data: {
5622
- index: M,
5623
+ index: D,
5623
5624
  overflows: S
5624
5625
  },
5625
5626
  reset: {
5626
- placement: P
5627
+ placement: F
5627
5628
  }
5628
5629
  };
5629
- let D = ($ = S.filter((j) => j.overflows[0] <= 0).sort((j, H) => j.overflows[1] - H.overflows[1])[0]) == null ? void 0 : $.placement;
5630
- if (!D)
5630
+ let M = ($ = S.filter((j) => j.overflows[0] <= 0).sort((j, H) => j.overflows[1] - H.overflows[1])[0]) == null ? void 0 : $.placement;
5631
+ if (!M)
5631
5632
  switch (m) {
5632
5633
  case "bestFit": {
5633
5634
  var A;
@@ -5640,17 +5641,17 @@ const eh = (e) => ({
5640
5641
  }
5641
5642
  return !0;
5642
5643
  }).map((H) => [H.placement, H.overflows.filter((J) => J > 0).reduce((J, he) => J + he, 0)]).sort((H, J) => H[1] - J[1])[0]) == null ? void 0 : A[0];
5643
- j && (D = j);
5644
+ j && (M = j);
5644
5645
  break;
5645
5646
  }
5646
5647
  case "initialPlacement":
5647
- D = l;
5648
+ M = l;
5648
5649
  break;
5649
5650
  }
5650
- if (o !== D)
5651
+ if (o !== M)
5651
5652
  return {
5652
5653
  reset: {
5653
- placement: D
5654
+ placement: M
5654
5655
  }
5655
5656
  };
5656
5657
  }
@@ -6164,7 +6165,7 @@ const _h = {
6164
6165
  }, En = ["mousedown", "touchstart"];
6165
6166
  function Ch(e, t, r) {
6166
6167
  const a = L(null);
6167
- return z(() => {
6168
+ return P(() => {
6168
6169
  const o = (n) => {
6169
6170
  const s = n ? n.target : void 0;
6170
6171
  if (Array.isArray(r)) {
@@ -6184,12 +6185,12 @@ function Ch(e, t, r) {
6184
6185
  }, [e, r, t]), a;
6185
6186
  }
6186
6187
  function Ih(e, t) {
6187
- const [r, a] = V(!1), o = L(null), n = L(null), s = Y(() => {
6188
+ const [r, a] = z(!1), o = L(null), n = L(null), s = Y(() => {
6188
6189
  a((i) => (!i && (!o.current || o.current === -1) && (o.current = window.setInterval(n.current, t)), !0));
6189
6190
  }, [t]), l = Y(() => {
6190
6191
  a(!1), window.clearInterval(o.current || -1), o.current = -1;
6191
6192
  }, []);
6192
- return z(() => (n.current = e, r && s(), l), [e, r, s, l]), { start: s, stop: l, active: r };
6193
+ return P(() => (n.current = e, r && s(), l), [e, r, s, l]), { start: s, stop: l, active: r };
6193
6194
  }
6194
6195
  const br = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Sh = () => g("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), Cn = ({
6195
6196
  mode: e
@@ -6238,7 +6239,7 @@ const br = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Sh = (
6238
6239
  }) => {
6239
6240
  const i = Ch(() => {
6240
6241
  y.stop(), p(!1);
6241
- }), d = L(null), f = L(null), [u, h] = V(!1), [m, p] = V(!1), y = Ih(() => {
6242
+ }), d = L(null), f = L(null), [u, h] = z(!1), [m, p] = z(!1), y = Ih(() => {
6242
6243
  p(!1);
6243
6244
  }, $h), b = Ah({
6244
6245
  mode: a,
@@ -6270,7 +6271,7 @@ const br = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Sh = (
6270
6271
  top: br(R),
6271
6272
  ...v
6272
6273
  });
6273
- const M = {
6274
+ const D = {
6274
6275
  top: "bottom",
6275
6276
  right: "left",
6276
6277
  bottom: "top",
@@ -6281,11 +6282,11 @@ const br = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Sh = (
6281
6282
  top: br((T = $.arrow) == null ? void 0 : T.y),
6282
6283
  right: "",
6283
6284
  bottom: "",
6284
- [M]: "-4px"
6285
+ [D]: "-4px"
6285
6286
  });
6286
6287
  }
6287
6288
  }, [r, v, i]);
6288
- z(() => {
6289
+ P(() => {
6289
6290
  (async () => u && await w())();
6290
6291
  }, [w, u]);
6291
6292
  const k = () => {
@@ -6425,7 +6426,7 @@ const Lh = ({
6425
6426
  }, p = (y) => {
6426
6427
  y.preventDefault(), h();
6427
6428
  };
6428
- return z(() => {
6429
+ return P(() => {
6429
6430
  ya() || ((r === !0 || a === !0) && !u.current && f.current && (u.current = !0, f.current.focus()), r === !1 && u.current && (u.current = !1));
6430
6431
  }, [r, a]), /* @__PURE__ */ c(
6431
6432
  tt,
@@ -6760,7 +6761,7 @@ const Lh = ({
6760
6761
  xi.displayName = "BaseButton";
6761
6762
  function Jh() {
6762
6763
  const e = L(!1);
6763
- return z(() => (e.current = !0, () => {
6764
+ return P(() => (e.current = !0, () => {
6764
6765
  e.current = !1;
6765
6766
  }), []), Y(() => e.current, []);
6766
6767
  }
@@ -6783,13 +6784,13 @@ const Qh = {
6783
6784
  right: 0
6784
6785
  };
6785
6786
  function la(e) {
6786
- const t = Jh(), r = L(0), a = L(null), [o, n] = V(Qh), s = $e(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
6787
+ const t = Jh(), r = L(0), a = L(null), [o, n] = z(Qh), s = $e(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
6787
6788
  const i = l[0];
6788
6789
  i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
6789
6790
  a.current && t() && n(i.contentRect);
6790
6791
  }));
6791
6792
  }), [t]);
6792
- return z(() => (a.current && (s == null || s.observe(a.current, e)), () => {
6793
+ return P(() => (a.current && (s == null || s.observe(a.current, e)), () => {
6793
6794
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
6794
6795
  }), [s, e]), [a, o];
6795
6796
  }
@@ -6848,11 +6849,11 @@ const Xh = {
6848
6849
  radius: b,
6849
6850
  variant: v,
6850
6851
  animated: k
6851
- }), x = jh({ mode: r, raw: l, iconClassName: w }), E = Wh({ animated: k }), [T, S] = la(), [R, $] = la(), [A, M] = la(), P = L(0), D = L(null), j = Kh([I, D]);
6852
+ }), x = jh({ mode: r, raw: l, iconClassName: w }), E = Wh({ animated: k }), [T, S] = la(), [R, $] = la(), [A, D] = la(), F = L(0), M = L(null), j = Kh([I, M]);
6852
6853
  return we(() => {
6853
- A && A.current && k && (P.current = M.width + Zh[u] + (i ? 0 : em));
6854
- }, [M, A, u, i, k]), we(() => {
6855
- D && D.current && k && (h && T && S.width > 0 ? (T.current && (T.current.style.opacity = "100"), D.current.style.width = `${S.width + P.current}px`) : m && $.width > 0 ? (R.current && (R.current.style.opacity = "100"), D.current.style.width = `${$.width + P.current}px`) : (T.current && (T.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), D.current.style.width = `${Xh[u]}px`));
6854
+ A && A.current && k && (F.current = D.width + Zh[u] + (i ? 0 : em));
6855
+ }, [D, A, u, i, k]), we(() => {
6856
+ M && M.current && k && (h && T && S.width > 0 ? (T.current && (T.current.style.opacity = "100"), M.current.style.width = `${S.width + F.current}px`) : m && $.width > 0 ? (R.current && (R.current.style.opacity = "100"), M.current.style.width = `${$.width + F.current}px`) : (T.current && (T.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), M.current.style.width = `${Xh[u]}px`));
6856
6857
  }, [
6857
6858
  S,
6858
6859
  h,
@@ -7155,7 +7156,7 @@ const qt = "panel", vr = "messagebox", dm = ({
7155
7156
  animation: i = !1,
7156
7157
  animationType: d = um
7157
7158
  }) => {
7158
- const f = L(""), [u, h] = V(
7159
+ const f = L(""), [u, h] = z(
7159
7160
  i ? d === An ? { opacity: 0 } : {
7160
7161
  transform: "translateY(-100vh)"
7161
7162
  } : {}
@@ -7165,9 +7166,9 @@ const qt = "panel", vr = "messagebox", dm = ({
7165
7166
  borderMode: n,
7166
7167
  animation: i
7167
7168
  });
7168
- return z(() => (e && (f.current = document.title, document.title = `${r} | ${f.current}`), () => {
7169
+ return P(() => (e && (f.current = document.title, document.title = `${r} | ${f.current}`), () => {
7169
7170
  e && (document.title = f.current);
7170
- }), [r, e]), z(() => {
7171
+ }), [r, e]), P(() => {
7171
7172
  if (i && e) {
7172
7173
  h(
7173
7174
  i ? d === An ? { opacity: 0 } : {
@@ -7273,7 +7274,7 @@ const dt = ({
7273
7274
  dispatch: a,
7274
7275
  setChatId: o,
7275
7276
  setInitialMessages: n
7276
- } = re(Re), [s, l] = V(!1), [i, d] = V(!1), [f, u] = vt({
7277
+ } = re(Re), [s, l] = z(!1), [i, d] = z(!1), [f, u] = vt({
7277
7278
  key: bt + Ki,
7278
7279
  initialValue: ""
7279
7280
  }), h = (p) => {
@@ -7379,7 +7380,7 @@ const dt = ({
7379
7380
  focusMode: s = "system",
7380
7381
  ...l
7381
7382
  }, i) => {
7382
- const [d, f] = V(!1), [u, h] = V(!1), [m, p] = V(null), y = L([]), b = L([]), v = re(Ja), w = ms(), k = Tl(), C = ps(), { floatingStyles: I, refs: _, context: x } = cs({
7383
+ const [d, f] = z(!1), [u, h] = z(!1), [m, p] = z(null), y = L([]), b = L([]), v = re(Ja), w = ms(), k = Tl(), C = ps(), { floatingStyles: I, refs: _, context: x } = cs({
7383
7384
  nodeId: k,
7384
7385
  open: d,
7385
7386
  onOpenChange: (J) => {
@@ -7403,8 +7404,8 @@ const dt = ({
7403
7404
  listRef: b,
7404
7405
  onMatch: d ? p : void 0,
7405
7406
  activeIndex: m
7406
- }), { getReferenceProps: A, getFloatingProps: M, getItemProps: P } = hs([E, T, S, R, $]), D = On(e) === "Button" || On(e) === "ButtonIcon", j = D ? {
7407
- noInternalClick: D,
7407
+ }), { getReferenceProps: A, getFloatingProps: D, getItemProps: F } = hs([E, T, S, R, $]), M = On(e) === "Button" || On(e) === "ButtonIcon", j = M ? {
7408
+ noInternalClick: M,
7408
7409
  focusMode: s,
7409
7410
  mode: n
7410
7411
  } : {}, H = U.cloneElement(
@@ -7422,7 +7423,7 @@ const dt = ({
7422
7423
  )
7423
7424
  }
7424
7425
  );
7425
- return z(() => {
7426
+ return P(() => {
7426
7427
  if (!w)
7427
7428
  return;
7428
7429
  function J() {
@@ -7431,7 +7432,7 @@ const dt = ({
7431
7432
  return w.events.on("click", J), () => {
7432
7433
  w.events.off("click", J);
7433
7434
  };
7434
- }, [w, o]), z(() => {
7435
+ }, [w, o]), P(() => {
7435
7436
  d && w && w.events.emit("menuopen", { nodeId: k });
7436
7437
  }, [w, d, k]), /* @__PURE__ */ N(Al, { id: k, children: [
7437
7438
  H,
@@ -7441,7 +7442,7 @@ const dt = ({
7441
7442
  value: {
7442
7443
  activeIndex: m,
7443
7444
  setActiveIndex: p,
7444
- getItemProps: P,
7445
+ getItemProps: F,
7445
7446
  setHasFocusInside: h,
7446
7447
  isOpen: d
7447
7448
  },
@@ -7458,7 +7459,7 @@ const dt = ({
7458
7459
  ref: _.setFloating,
7459
7460
  className: "rounded-md bg-surface-light shadow-sm shadow-border-dark outline-hidden p-4 sm:p-2",
7460
7461
  style: I,
7461
- ...M(),
7462
+ ...D(),
7462
7463
  children: t
7463
7464
  }
7464
7465
  )
@@ -7727,7 +7728,7 @@ const pm = (e) => {
7727
7728
  dispatch: a,
7728
7729
  setChatId: o,
7729
7730
  setInitialMessages: n
7730
- } = re(Re), [s, l] = V(!1), [i, d] = V(!1), [f, u] = vt({
7731
+ } = re(Re), [s, l] = z(!1), [i, d] = z(!1), [f, u] = vt({
7731
7732
  key: bt + Qi,
7732
7733
  initialValue: ""
7733
7734
  }), h = (p) => {
@@ -7814,7 +7815,7 @@ const pm = (e) => {
7814
7815
  searchString: d.searchString,
7815
7816
  sortDirection: d.sortDirection,
7816
7817
  getAccessToken: r
7817
- }), [u, h] = V(!1), [m, p] = V(!1), y = async () => {
7818
+ }), [u, h] = z(!1), [m, p] = z(!1), y = async () => {
7818
7819
  try {
7819
7820
  if (i && l && n) {
7820
7821
  const v = l.filter(({ content: w }) => w).map(({ role: w, content: k, id: C }) => ({
@@ -7850,7 +7851,7 @@ const pm = (e) => {
7850
7851
  }, b = (v) => {
7851
7852
  v && v.preventDefault(), o > 0 ? p(!m) : y();
7852
7853
  };
7853
- return z(() => {
7854
+ return P(() => {
7854
7855
  s && (l == null ? void 0 : l.length) > 0 ? h(!0) : h(!1);
7855
7856
  }, [s, l]), /* @__PURE__ */ N(de, { children: [
7856
7857
  m && /* @__PURE__ */ c(
@@ -8147,7 +8148,7 @@ const pm = (e) => {
8147
8148
  ] }), Ai = 24, Rm = 500, Oi = 2, Am = 5, Om = Ai * Oi, Mn = Am * Ai, $m = "ready", Lm = "streaming", Mm = "error", Dm = "submitted", _r = (e) => {
8148
8149
  e.current && (e.current.style.height = `${Om}px`);
8149
8150
  }, Bm = () => {
8150
- const { user: e, getAccessToken: t } = Oe(), [r, a] = V(!1), [o, n] = V(null), [s, l] = V(!1), {
8151
+ const { user: e, getAccessToken: t } = Oe(), [r, a] = z(!1), [o, n] = z(null), [s, l] = z(!1), {
8151
8152
  dispatch: i,
8152
8153
  state: { reasoning: d, streaming: f, aborted: u, lastResetTimestamp: h, attachments: m }
8153
8154
  } = re(Re), { state: p, dispatch: y } = re(vo), { state: b } = re(lr), { refetch: v } = fo({
@@ -8163,9 +8164,9 @@ const pm = (e) => {
8163
8164
  setInput: R,
8164
8165
  handleInputChange: $,
8165
8166
  handleSubmit: A,
8166
- setMessages: M,
8167
- status: P,
8168
- id: D
8167
+ setMessages: D,
8168
+ status: F,
8169
+ id: M
8169
8170
  } = xt({
8170
8171
  onFinish: (W, { usage: ae }) => {
8171
8172
  v(), i({
@@ -8202,7 +8203,7 @@ const pm = (e) => {
8202
8203
  loading: !1,
8203
8204
  streaming: !1
8204
8205
  }
8205
- }), M((ae) => [
8206
+ }), D((ae) => [
8206
8207
  ...ae,
8207
8208
  {
8208
8209
  id: it(),
@@ -8212,11 +8213,11 @@ const pm = (e) => {
8212
8213
  ]));
8213
8214
  }, 1e3);
8214
8215
  },
8215
- [i, M, u]
8216
+ [i, D, u]
8216
8217
  );
8217
- z(() => {
8218
- P && j(P);
8219
- }, [P, j]);
8218
+ P(() => {
8219
+ F && j(F);
8220
+ }, [F, j]);
8220
8221
  const H = Y(() => {
8221
8222
  if (!x.current)
8222
8223
  return;
@@ -8290,7 +8291,7 @@ const pm = (e) => {
8290
8291
  headers: {
8291
8292
  "Content-Type": "application/json",
8292
8293
  authorization: `Bearer ${ae}`,
8293
- [Uf]: D
8294
+ [Uf]: M
8294
8295
  },
8295
8296
  body: {
8296
8297
  reasoning: d
@@ -8307,7 +8308,7 @@ const pm = (e) => {
8307
8308
  x && x.current && !ya() && x.current.focus();
8308
8309
  }
8309
8310
  ]
8310
- ]), z(() => {
8311
+ ]), P(() => {
8311
8312
  if (p.prompt !== "") {
8312
8313
  const W = p.prompt.endsWith(":") && !p.prompt.endsWith(": ") ? p.prompt + " " : p.prompt;
8313
8314
  W.indexOf(Bo) !== -1 ? navigator.clipboard.readText().then((se) => {
@@ -8316,7 +8317,7 @@ const pm = (e) => {
8316
8317
  type: Jn
8317
8318
  });
8318
8319
  }
8319
- }, [p, y, R]), z(() => {
8320
+ }, [p, y, R]), P(() => {
8320
8321
  if (C.current === !1) {
8321
8322
  C.current = !0, !S && _r(x);
8322
8323
  return;
@@ -8324,18 +8325,18 @@ const pm = (e) => {
8324
8325
  h > 0 && h !== I.current ? (I.current = h, setTimeout(() => {
8325
8326
  x.current && (!S && _r(x), x.current.focus());
8326
8327
  }, Rm)) : f === !1 && !S && (_r(x), x.current && x.current.focus());
8327
- }, [h, f, S]), z(() => {
8328
+ }, [h, f, S]), P(() => {
8328
8329
  p.lastTriggeredTimestamp && setTimeout(() => {
8329
8330
  H();
8330
8331
  }, 100);
8331
- }, [p.lastTriggeredTimestamp, H]), z(() => {
8332
+ }, [p.lastTriggeredTimestamp, H]), P(() => {
8332
8333
  (async () => {
8333
8334
  if (st())
8334
8335
  return;
8335
8336
  const W = await t(), ae = await Xn(W, [Zn.REASONING]);
8336
8337
  a(ae);
8337
8338
  })();
8338
- }, [t]), z(() => {
8339
+ }, [t]), P(() => {
8339
8340
  m === 0 && (k.current && (k.current.value = ""), n(null));
8340
8341
  }, [m]), /* @__PURE__ */ N(de, { children: [
8341
8342
  /* @__PURE__ */ c(
@@ -8412,14 +8413,14 @@ const pm = (e) => {
8412
8413
  state: { footerHeight: o, footerPosition: n },
8413
8414
  dispatch: s
8414
8415
  } = re(_o), { messages: l } = xt(), { height: i } = Ic(), { height: d } = Sc(), [f, u] = xs();
8415
- return z(() => {
8416
+ return P(() => {
8416
8417
  o !== u.height && s({
8417
8418
  type: Ds,
8418
8419
  payload: {
8419
8420
  footerHeight: u.height
8420
8421
  }
8421
8422
  });
8422
- }, [u.height, o, s]), z(() => {
8423
+ }, [u.height, o, s]), P(() => {
8423
8424
  var p, y, b, v;
8424
8425
  if (!f || !f.current)
8425
8426
  return;
@@ -8489,7 +8490,7 @@ const pm = (e) => {
8489
8490
  }, zm = ro(
8490
8491
  () => import(
8491
8492
  /* webpackChunkName: "LazyAboutChangelog" */
8492
- "./AboutChangelog.CmDBx6P4.js"
8493
+ "./AboutChangelog.q-yAYt9e.js"
8493
8494
  )
8494
8495
  ), Vm = () => {
8495
8496
  const e = Kt(), t = Kt(), { data: r, isSuccess: a } = Yd(), { data: o, isSuccess: n } = Jd(), s = (r == null ? void 0 : r.version) || "", l = (r == null ? void 0 : r.models) || [];
@@ -8500,8 +8501,8 @@ const pm = (e) => {
8500
8501
  header: ce.ABOUT.TITLE_CLIENT,
8501
8502
  className: "prose-dark dark:prose-lighter mb-4",
8502
8503
  children: Sr(e, {
8503
- [ce.ABOUT.VERSION]: "8.15.1",
8504
- [ce.ABOUT.BUILD_TIMESTAMP]: "04/24/2025 10:33 AM EDT"
8504
+ [ce.ABOUT.VERSION]: "8.15.3",
8505
+ [ce.ABOUT.BUILD_TIMESTAMP]: "04/24/2025 06:52 PM EDT"
8505
8506
  })
8506
8507
  }
8507
8508
  ),
@@ -8545,7 +8546,7 @@ const pm = (e) => {
8545
8546
  id: "",
8546
8547
  timestamp: "",
8547
8548
  message: ""
8548
- }), [i, d] = V(!1), [f, u] = V(
8549
+ }), [i, d] = z(!1), [f, u] = z(
8549
8550
  zo + Vo
8550
8551
  ), { state: h, dispatch: m } = re(lr), {
8551
8552
  state: { provider: p },
@@ -8598,26 +8599,27 @@ const pm = (e) => {
8598
8599
  );
8599
8600
  } catch {
8600
8601
  }
8601
- }, _ = async (T, S, R, $, A, M) => {
8602
+ }, _ = async (T, S, R, $, A, D) => {
8603
+ var F;
8602
8604
  try {
8603
- const P = await Mt({
8605
+ const M = await Mt({
8604
8606
  accessToken: $,
8605
8607
  type: De.GET_CHAT,
8606
8608
  params: {
8607
8609
  id: T.id
8608
8610
  }
8609
8611
  });
8610
- P.status === 200 && (P.data.provider !== M && (await Ps({
8611
- provider: P.data.provider,
8612
+ M.status === 200 && (M.data.provider !== D && (await Ps({
8613
+ provider: M.data.provider,
8612
8614
  accessToken: $,
8613
8615
  username: A
8614
8616
  }), S({
8615
8617
  type: co,
8616
8618
  payload: {
8617
- provider: P.data.provider
8619
+ provider: M.data.provider
8618
8620
  }
8619
8621
  }), k(), Z.success(
8620
- `${Qn} ${P.data.provider}`,
8622
+ `${Qn} ${M.data.provider}`,
8621
8623
  Ir({
8622
8624
  containerId: "toggle-provider",
8623
8625
  transition: Nr
@@ -8625,15 +8627,16 @@ const pm = (e) => {
8625
8627
  )), S({
8626
8628
  type: ht,
8627
8629
  payload: {
8628
- restoring: !0
8630
+ restoring: !0,
8631
+ restoredModel: ((F = M.data) == null ? void 0 : F.model) || ""
8629
8632
  }
8630
- }), v(""), y(T.id), b(P.data.messages), R(!1));
8633
+ }), v(""), y(T.id), b(M.data.messages), R(!1));
8631
8634
  } catch {
8632
8635
  }
8633
8636
  }, x = Y((T) => {
8634
8637
  T[0].isIntersecting && u((R) => R + zo);
8635
8638
  }, []);
8636
- return z(() => {
8639
+ return P(() => {
8637
8640
  const T = {
8638
8641
  // root: null,
8639
8642
  rootMargin: "20px"
@@ -8691,9 +8694,9 @@ const pm = (e) => {
8691
8694
  /* @__PURE__ */ c(Ve, { className: "text-xs sm:text-sm text-right", children: "Actions" })
8692
8695
  ] }) }),
8693
8696
  /* @__PURE__ */ c(sd, { children: e.slice(0, f).map((T, S) => {
8694
- var M, P;
8695
- const R = T.summary || (T.messages.length > 0 ? (M = T.messages[0]) == null ? void 0 : M.content : ""), $ = T.model ? Hf(T.model) : null, A = $ ? Um[$] : null;
8696
- return ((P = T == null ? void 0 : T.messages) == null ? void 0 : P.length) > 0 ? /* @__PURE__ */ N(wl, { children: [
8697
+ var D, F;
8698
+ const R = T.summary || (T.messages.length > 0 ? (D = T.messages[0]) == null ? void 0 : D.content : ""), $ = T.model ? Hf(T.model) : null, A = $ ? Um[$] : null;
8699
+ return ((F = T == null ? void 0 : T.messages) == null ? void 0 : F.length) > 0 ? /* @__PURE__ */ N(wl, { children: [
8697
8700
  S === f - Vo && /* @__PURE__ */ c("tr", { ref: s }),
8698
8701
  /* @__PURE__ */ N(Jr, { children: [
8699
8702
  /* @__PURE__ */ c(Ve, { children: S + 1 }),
@@ -8735,12 +8738,12 @@ const pm = (e) => {
8735
8738
  noBorder: !0,
8736
8739
  label: "Restore chat",
8737
8740
  onClick: async () => {
8738
- const D = await n();
8741
+ const M = await n();
8739
8742
  _(
8740
8743
  T,
8741
8744
  t,
8742
8745
  r,
8743
- D,
8746
+ M,
8744
8747
  (o == null ? void 0 : o.username) || "",
8745
8748
  p
8746
8749
  );
@@ -8755,11 +8758,11 @@ const pm = (e) => {
8755
8758
  noBorder: !0,
8756
8759
  label: "Delete chat",
8757
8760
  onClick: () => {
8758
- var D;
8761
+ var M;
8759
8762
  l.current = {
8760
8763
  id: T.id,
8761
8764
  timestamp: T.timestamp,
8762
- message: T.messages.length > 0 ? (D = T.messages[0]) == null ? void 0 : D.content : ""
8765
+ message: T.messages.length > 0 ? (M = T.messages[0]) == null ? void 0 : M.content : ""
8763
8766
  }, d(!i);
8764
8767
  },
8765
8768
  children: /* @__PURE__ */ c("div", { className: "text-red-400", children: /* @__PURE__ */ c(Zl, { size: "size-3", monotone: !0 }) })
@@ -8779,7 +8782,7 @@ const pm = (e) => {
8779
8782
  open: e,
8780
8783
  onOpenChange: t
8781
8784
  }) => {
8782
- const { getAccessToken: r, user: a } = Oe(), { dispatch: o } = re(Re), [n, s] = V([]), l = L(null), { state: i, dispatch: d } = re(lr), [f, u] = V(
8785
+ const { getAccessToken: r, user: a } = Oe(), { dispatch: o } = re(Re), [n, s] = z([]), l = L(null), { state: i, dispatch: d } = re(lr), [f, u] = z(
8783
8786
  i.sortDirection
8784
8787
  ), { data: h, refetch: m } = fo({
8785
8788
  enabled: e,
@@ -8791,9 +8794,9 @@ const pm = (e) => {
8791
8794
  key: bt + rs,
8792
8795
  initialValue: i.searchString
8793
8796
  });
8794
- z(() => {
8797
+ P(() => {
8795
8798
  i.sortDirection !== f && u(i.sortDirection);
8796
- }, [i, f]), z(() => {
8799
+ }, [i, f]), P(() => {
8797
8800
  h && s(h);
8798
8801
  }, [h]);
8799
8802
  const y = async (w) => {
@@ -8913,7 +8916,7 @@ const pm = (e) => {
8913
8916
  ), $i = "av-text-area", qm = "av-text-area-wrapper", da = "av-text-area-helper-text", Ym = "av-text-area__control--right", Jm = "av-text-area__control--left";
8914
8917
  function Km() {
8915
8918
  const e = L(!1);
8916
- return z(() => (e.current = !0, () => {
8919
+ return P(() => (e.current = !0, () => {
8917
8920
  e.current = !1;
8918
8921
  }), []), Y(() => e.current, []);
8919
8922
  }
@@ -8936,13 +8939,13 @@ const Xm = {
8936
8939
  right: 0
8937
8940
  };
8938
8941
  function Pn(e) {
8939
- const t = Km(), r = L(0), a = L(null), [o, n] = V(Xm), s = $e(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
8942
+ const t = Km(), r = L(0), a = L(null), [o, n] = z(Xm), s = $e(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
8940
8943
  const i = l[0];
8941
8944
  i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
8942
8945
  a.current && t() && n(i.contentRect);
8943
8946
  }));
8944
8947
  }), [t]);
8945
- return z(() => (a.current && (s == null || s.observe(a.current, e)), () => {
8948
+ return P(() => (a.current && (s == null || s.observe(a.current, e)), () => {
8946
8949
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
8947
8950
  }), [s, e]), [a, o];
8948
8951
  }
@@ -8954,12 +8957,12 @@ function Zm({
8954
8957
  },
8955
8958
  initialControlledDelay: o = 0
8956
8959
  }) {
8957
- const [n, s] = V(!1), [l, i] = V(
8960
+ const [n, s] = z(!1), [l, i] = z(
8958
8961
  t !== void 0 ? t : r
8959
8962
  ), d = (f) => {
8960
8963
  i(f), a == null || a(f);
8961
8964
  };
8962
- return z(() => {
8965
+ return P(() => {
8963
8966
  (async () => e !== void 0 && !n && o > 0 && (await new Promise(
8964
8967
  (f) => setTimeout(f, o)
8965
8968
  ), s(!0)))();
@@ -9061,7 +9064,7 @@ function np({
9061
9064
  announcement: null
9062
9065
  });
9063
9066
  let m = r;
9064
- typeof m > "u" && (m = a ? tp[a] : "assertive"), z(() => {
9067
+ typeof m > "u" && (m = a ? tp[a] : "assertive"), P(() => {
9065
9068
  op({
9066
9069
  announcementTimeoutRef: d,
9067
9070
  announcementDelay: o,
@@ -9283,7 +9286,7 @@ const sp = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
9283
9286
  ...I
9284
9287
  }, _) => {
9285
9288
  var x;
9286
- const E = L(null), T = Qm([_, E]), [S, R] = Pn(), [$, A] = Pn(), M = L(80), P = L(-25), D = L(null), j = L(30), H = L(null), J = ep({ id: e, prefix: `${$i}-` }), [he, Le] = V(0), [Ee, Be] = V(0), [Ke, W] = V(
9289
+ const E = L(null), T = Qm([_, E]), [S, R] = Pn(), [$, A] = Pn(), D = L(80), F = L(-25), M = L(null), j = L(30), H = L(null), J = ep({ id: e, prefix: `${$i}-` }), [he, Le] = z(0), [Ee, Be] = z(0), [Ke, W] = z(
9287
9290
  !!(!y && p)
9288
9291
  ), ae = `${t} error, ${p}`, se = fp({
9289
9292
  className: n,
@@ -9323,29 +9326,29 @@ const sp = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
9323
9326
  }, [be, o]), we(() => {
9324
9327
  o || setTimeout(() => {
9325
9328
  var B;
9326
- (B = D == null ? void 0 : D.current) == null || B.style.setProperty(
9329
+ (B = M == null ? void 0 : M.current) == null || B.style.setProperty(
9327
9330
  "--av-text-area-wrapper-transition",
9328
9331
  be ? "none" : "all 0.2s ease-out"
9329
9332
  );
9330
9333
  }, 0);
9331
9334
  }, [be, o]), we(() => {
9332
- var B, F;
9335
+ var B, V;
9333
9336
  if (!o && E && E.current && be !== void 0) {
9334
9337
  const { labelOffset: K, helperTextOffset: X, scrollHeight: ue } = hp({
9335
9338
  scrollHeight: E.current.scrollHeight,
9336
- currentHeight: M.current,
9337
- currentLabelOffset: P.current,
9339
+ currentHeight: D.current,
9340
+ currentLabelOffset: F.current,
9338
9341
  currentHelperTextOffset: j.current
9339
9342
  });
9340
- K && (P.current = K, (B = D == null ? void 0 : D.current) == null || B.style.setProperty(
9343
+ K && (F.current = K, (B = M == null ? void 0 : M.current) == null || B.style.setProperty(
9341
9344
  "--av-text-area-label",
9342
9345
  `${K}px`
9343
- )), X && (j.current = X, (F = H == null ? void 0 : H.current) == null || F.style.setProperty(
9346
+ )), X && (j.current = X, (V = H == null ? void 0 : H.current) == null || V.style.setProperty(
9344
9347
  "--av-text-area-helper-text",
9345
9348
  `${X}px`
9346
- )), M.current = ue || M.current;
9349
+ )), D.current = ue || D.current;
9347
9350
  }
9348
- }, [be, o]), A.width > 0 && ((x = D == null ? void 0 : D.current) == null || x.style.setProperty(
9351
+ }, [be, o]), A.width > 0 && ((x = M == null ? void 0 : M.current) == null || x.style.setProperty(
9349
9352
  "--tw-translate-x",
9350
9353
  `${12 + A.width + 5}px`
9351
9354
  )), /* @__PURE__ */ N("div", { className: se.wrapper, children: [
@@ -9396,7 +9399,7 @@ const sp = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
9396
9399
  !o && /* @__PURE__ */ c(
9397
9400
  "label",
9398
9401
  {
9399
- ref: D,
9402
+ ref: M,
9400
9403
  "aria-hidden": !0,
9401
9404
  htmlFor: J,
9402
9405
  className: `${se.visibleLabel}`,
@@ -9566,11 +9569,11 @@ const xp = ({
9566
9569
  } = sr({
9567
9570
  user: a == null ? void 0 : a.username,
9568
9571
  getAccessToken: r
9569
- }), [l, i] = V({
9572
+ }), [l, i] = z({
9570
9573
  loadingLocation: !1
9571
- }), [d, f] = V({
9574
+ }), [d, f] = z({
9572
9575
  prompts: []
9573
- }), [u, h] = V(""), [m, p] = V(""), [y, b] = vt({
9576
+ }), [u, h] = z(""), [m, p] = z(""), [y, b] = vt({
9574
9577
  key: bt + dl,
9575
9578
  initialValue: !1
9576
9579
  }), v = (_) => {
@@ -9607,10 +9610,10 @@ const xp = ({
9607
9610
  }
9608
9611
  }), S = Date.now() - _;
9609
9612
  if (S < 2e3 && await new Promise((R) => setTimeout(R, 2e3 - S)), E.status === 200) {
9610
- const { city: R, state: $, country: A, displayName: M } = E.data, P = R && $ && A ? `${R}, ${$}, ${A}` : M;
9613
+ const { city: R, state: $, country: A, displayName: D } = E.data, F = R && $ && A ? `${R}, ${$}, ${A}` : D;
9611
9614
  i({
9612
9615
  loadingLocation: !1
9613
- }), p(P);
9616
+ }), p(F);
9614
9617
  } else
9615
9618
  i({
9616
9619
  loadingLocation: !1
@@ -9633,7 +9636,7 @@ const xp = ({
9633
9636
  clipboardAccess: E
9634
9637
  };
9635
9638
  E ? $.content = $.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : $.content = $.content.replace(/{{clipboard}}/g, "");
9636
- const A = R.findIndex((M) => M.slot === T.slot);
9639
+ const A = R.findIndex((D) => D.slot === T.slot);
9637
9640
  return A === -1 ? {
9638
9641
  ...S,
9639
9642
  prompts: [...R, { ...$ }]
@@ -9643,7 +9646,7 @@ const xp = ({
9643
9646
  });
9644
9647
  });
9645
9648
  };
9646
- return z(() => {
9649
+ return P(() => {
9647
9650
  o != null && o.instructions && h(o.instructions), o != null && o.location && p(o.location), o != null && o.tags && f({ prompts: o.tags });
9648
9651
  }, [o]), n ? /* @__PURE__ */ c(
9649
9652
  Ht,
@@ -9849,7 +9852,7 @@ const xp = ({
9849
9852
  ) : null;
9850
9853
  }, ft = [0, 3, 6, 9], Tp = ro(() => import(
9851
9854
  /* webpackChunkName: "LazyChart" */
9852
- "./Chart.CvtIc1e3.js"
9855
+ "./Chart.CMuZJeUs.js"
9853
9856
  )), Ep = ({
9854
9857
  open: e,
9855
9858
  onOpenChange: t
@@ -9860,7 +9863,7 @@ const xp = ({
9860
9863
  }), { data: l, isSuccess: i } = Qd({
9861
9864
  user: a == null ? void 0 : a.username,
9862
9865
  getAccessToken: r
9863
- }), d = Math.floor((/* @__PURE__ */ new Date()).getMonth() / 3) * 3, [f, u] = V(d), h = (p) => {
9866
+ }), d = Math.floor((/* @__PURE__ */ new Date()).getMonth() / 3) * 3, [f, u] = z(d), h = (p) => {
9864
9867
  p.preventDefault();
9865
9868
  const b = (ft.indexOf(f) + 1) % ft.length;
9866
9869
  u(ft[b]);
@@ -9938,7 +9941,7 @@ const xp = ({
9938
9941
  }, Cp = ({
9939
9942
  isComponent: e = !1
9940
9943
  }) => {
9941
- const { logout: t, getAccessToken: r } = Oe(), [a, o] = V(!1), [n, s] = V(!1), [l, i] = V(!1), [d, f] = V(!1), [u, h] = V(!1), [m, p] = V(!1), [y, b] = V(!1), v = () => {
9944
+ const { logout: t, getAccessToken: r } = Oe(), [a, o] = z(!1), [n, s] = z(!1), [l, i] = z(!1), [d, f] = z(!1), [u, h] = z(!1), [m, p] = z(!1), [y, b] = z(!1), v = () => {
9942
9945
  o(!a);
9943
9946
  }, w = () => {
9944
9947
  s(!n);
@@ -9951,7 +9954,7 @@ const xp = ({
9951
9954
  }, _ = () => {
9952
9955
  b(!y);
9953
9956
  };
9954
- return z(() => {
9957
+ return P(() => {
9955
9958
  (async () => {
9956
9959
  if (!st())
9957
9960
  return;
@@ -10378,7 +10381,7 @@ const xp = ({
10378
10381
  Bi.displayName = "BaseButton";
10379
10382
  function Vp() {
10380
10383
  const e = L(!1);
10381
- return z(() => (e.current = !0, () => {
10384
+ return P(() => (e.current = !0, () => {
10382
10385
  e.current = !1;
10383
10386
  }), []), Y(() => e.current, []);
10384
10387
  }
@@ -10401,13 +10404,13 @@ const Up = {
10401
10404
  right: 0
10402
10405
  };
10403
10406
  function ua(e) {
10404
- const t = Vp(), r = L(0), a = L(null), [o, n] = V(Up), s = $e(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
10407
+ const t = Vp(), r = L(0), a = L(null), [o, n] = z(Up), s = $e(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
10405
10408
  const i = l[0];
10406
10409
  i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
10407
10410
  a.current && t() && n(i.contentRect);
10408
10411
  }));
10409
10412
  }), [t]);
10410
- return z(() => (a.current && (s == null || s.observe(a.current, e)), () => {
10413
+ return P(() => (a.current && (s == null || s.observe(a.current, e)), () => {
10411
10414
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
10412
10415
  }), [s, e]), [a, o];
10413
10416
  }
@@ -10466,11 +10469,11 @@ const Hp = {
10466
10469
  radius: b,
10467
10470
  variant: v,
10468
10471
  animated: k
10469
- }), x = Dp({ mode: r, raw: l, iconClassName: w }), E = Bp({ animated: k }), [T, S] = ua(), [R, $] = ua(), [A, M] = ua(), P = L(0), D = L(null), j = Fp([I, D]);
10472
+ }), x = Dp({ mode: r, raw: l, iconClassName: w }), E = Bp({ animated: k }), [T, S] = ua(), [R, $] = ua(), [A, D] = ua(), F = L(0), M = L(null), j = Fp([I, M]);
10470
10473
  return we(() => {
10471
- A && A.current && k && (P.current = M.width + Gp[u] + (i ? 0 : jp));
10472
- }, [M, A, u, i, k]), we(() => {
10473
- D && D.current && k && (h && T && S.width > 0 ? (T.current && (T.current.style.opacity = "100"), D.current.style.width = `${S.width + P.current}px`) : m && $.width > 0 ? (R.current && (R.current.style.opacity = "100"), D.current.style.width = `${$.width + P.current}px`) : (T.current && (T.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), D.current.style.width = `${Hp[u]}px`));
10474
+ A && A.current && k && (F.current = D.width + Gp[u] + (i ? 0 : jp));
10475
+ }, [D, A, u, i, k]), we(() => {
10476
+ M && M.current && k && (h && T && S.width > 0 ? (T.current && (T.current.style.opacity = "100"), M.current.style.width = `${S.width + F.current}px`) : m && $.width > 0 ? (R.current && (R.current.style.opacity = "100"), M.current.style.width = `${$.width + F.current}px`) : (T.current && (T.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), M.current.style.width = `${Hp[u]}px`));
10474
10477
  }, [
10475
10478
  S,
10476
10479
  h,
@@ -10754,7 +10757,7 @@ const Jp = ({ kind: e, noMaxWidth: t }) => g("px-4 py-2", {
10754
10757
  noMaxWidth: d = !1,
10755
10758
  tail: f = !1
10756
10759
  }) => {
10757
- const [u, h] = V(!1), m = Zp({
10760
+ const [u, h] = z(!1), m = Zp({
10758
10761
  kind: t,
10759
10762
  className: r,
10760
10763
  contentClassName: a,
@@ -10763,7 +10766,7 @@ const Jp = ({ kind: e, noMaxWidth: t }) => g("px-4 py-2", {
10763
10766
  }), p = !!s && (typeof s == "function" || typeof s == "string" || typeof e == "string"), y = () => {
10764
10767
  h(!0), typeof s == "function" ? s(e) : typeof s == "string" ? navigator.clipboard.writeText(s) : typeof e == "string" && navigator.clipboard.writeText(e);
10765
10768
  };
10766
- return z(() => {
10769
+ return P(() => {
10767
10770
  let b;
10768
10771
  return u && (b = window.setTimeout(() => {
10769
10772
  h(!1);
@@ -11211,7 +11214,7 @@ const Fi = U.forwardRef(
11211
11214
  Fi.displayName = "Button";
11212
11215
  function hg() {
11213
11216
  const e = L(!1);
11214
- return z(() => (e.current = !0, () => {
11217
+ return P(() => (e.current = !0, () => {
11215
11218
  e.current = !1;
11216
11219
  }), []), Y(() => e.current, []);
11217
11220
  }
@@ -11234,13 +11237,13 @@ const pg = {
11234
11237
  right: 0
11235
11238
  };
11236
11239
  function fa(e) {
11237
- const t = hg(), r = L(0), a = L(null), [o, n] = V(pg), s = $e(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
11240
+ const t = hg(), r = L(0), a = L(null), [o, n] = z(pg), s = $e(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
11238
11241
  const i = l[0];
11239
11242
  i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
11240
11243
  a.current && t() && n(i.contentRect);
11241
11244
  }));
11242
11245
  }), [t]);
11243
- return z(() => (a.current && (s == null || s.observe(a.current, e)), () => {
11246
+ return P(() => (a.current && (s == null || s.observe(a.current, e)), () => {
11244
11247
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
11245
11248
  }), [s, e]), [a, o];
11246
11249
  }
@@ -11299,11 +11302,11 @@ const gg = {
11299
11302
  radius: b,
11300
11303
  variant: v,
11301
11304
  animated: k
11302
- }), x = dg({ mode: r, raw: l, iconClassName: w }), E = ug({ animated: k }), [T, S] = fa(), [R, $] = fa(), [A, M] = fa(), P = L(0), D = L(null), j = mg([I, D]);
11305
+ }), x = dg({ mode: r, raw: l, iconClassName: w }), E = ug({ animated: k }), [T, S] = fa(), [R, $] = fa(), [A, D] = fa(), F = L(0), M = L(null), j = mg([I, M]);
11303
11306
  return we(() => {
11304
- A && A.current && k && (P.current = M.width + yg[u] + (i ? 0 : bg));
11305
- }, [M, A, u, i, k]), we(() => {
11306
- D && D.current && k && (h && T && S.width > 0 ? (T.current && (T.current.style.opacity = "100"), D.current.style.width = `${S.width + P.current}px`) : m && $.width > 0 ? (R.current && (R.current.style.opacity = "100"), D.current.style.width = `${$.width + P.current}px`) : (T.current && (T.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), D.current.style.width = `${gg[u]}px`));
11307
+ A && A.current && k && (F.current = D.width + yg[u] + (i ? 0 : bg));
11308
+ }, [D, A, u, i, k]), we(() => {
11309
+ M && M.current && k && (h && T && S.width > 0 ? (T.current && (T.current.style.opacity = "100"), M.current.style.width = `${S.width + F.current}px`) : m && $.width > 0 ? (R.current && (R.current.style.opacity = "100"), M.current.style.width = `${$.width + F.current}px`) : (T.current && (T.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), M.current.style.width = `${gg[u]}px`));
11307
11310
  }, [
11308
11311
  S,
11309
11312
  h,
@@ -11424,7 +11427,7 @@ const _g = 200, wg = ({
11424
11427
  mode: r = "system",
11425
11428
  focusMode: a = "system"
11426
11429
  }) => {
11427
- const [o, n] = V(!1);
11430
+ const [o, n] = z(!1);
11428
11431
  if (typeof e != "string")
11429
11432
  return e;
11430
11433
  const { string: s, isTruncated: l } = wg({
@@ -11474,7 +11477,7 @@ const xg = ({ content: e }) => /* @__PURE__ */ c(
11474
11477
  ), jn = 2, Tg = ro(
11475
11478
  () => import(
11476
11479
  /* webpackChunkName: "LazyMessageAssistant" */
11477
- "./ChatBubbleAssistant.DFqip4ex.js"
11480
+ "./ChatBubbleAssistant.W-AOlkCg.js"
11478
11481
  )
11479
11482
  ), Eg = U.memo(
11480
11483
  ({
@@ -11538,9 +11541,9 @@ const xg = ({ content: e }) => /* @__PURE__ */ c(
11538
11541
  block: "end"
11539
11542
  });
11540
11543
  }, []);
11541
- return z(() => {
11544
+ return P(() => {
11542
11545
  i && u();
11543
- }, [i, u]), z(() => {
11546
+ }, [i, u]), P(() => {
11544
11547
  d.current = n === Jt ? s + l + as + yl : 0;
11545
11548
  }, [n, s, l]), /* @__PURE__ */ N(de, { children: [
11546
11549
  /* @__PURE__ */ N("div", { className: f, ref: a, children: [
@@ -11563,7 +11566,7 @@ function Hi({
11563
11566
  isComponent: e = !1,
11564
11567
  headerHeight: t = 0
11565
11568
  }) {
11566
- const { user: r, getAccessToken: a } = Oe(), [o, n] = V(`${Ho}px`), [s, l] = xs(), [i, d] = V(it()), [f, u] = V([]), [h] = vt({
11569
+ const { user: r, getAccessToken: a } = Oe(), [o, n] = z(`${Ho}px`), [s, l] = xs(), [i, d] = z(it()), [f, u] = z([]), [h] = vt({
11567
11570
  key: bt + rs,
11568
11571
  initialValue: ""
11569
11572
  }), [m] = vt({
@@ -11597,20 +11600,20 @@ function Hi({
11597
11600
  user: r == null ? void 0 : r.username,
11598
11601
  getAccessToken: a
11599
11602
  });
11600
- return z(() => {
11603
+ return P(() => {
11601
11604
  var x;
11602
11605
  (x = document.getElementById("logo")) == null || x.classList.add("fadeOut"), setTimeout(() => {
11603
11606
  var E;
11604
11607
  (E = document.getElementById("root")) == null || E.classList.replace("app-hidden", "fadeIn");
11605
11608
  }, 500);
11606
- }), z(() => {
11609
+ }), P(() => {
11607
11610
  _ && _.provider && I({
11608
11611
  type: co,
11609
11612
  payload: {
11610
11613
  provider: _.provider
11611
11614
  }
11612
11615
  });
11613
- }, [_]), z(() => {
11616
+ }, [_]), P(() => {
11614
11617
  if (p.footerPosition === "FOOTER_BOTTOM") {
11615
11618
  const x = `calc(${l.height}px + 20px)`;
11616
11619
  n(