@versini/sassysaint 8.4.2 → 8.4.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.
@@ -1,8 +1,8 @@
1
1
  import { jsx as d, jsxs as N, Fragment as ne } from "react/jsx-runtime";
2
- import { I as q, ACTION_SORT as Qr, ACTION_SEARCH as qo, ACTION_RESET_PROMPT as Zo, ACTION_TOGGLE_PROMPT as Qo, useSWR as Jt, DEFAULT_AI_PROVIDER as $l, isElectron as en, isProbablyiPhone as tn, re as ye, DEFAULT_ICON_ACTION_SIZE as $e, L as gr, j as Le, C as Tt, LOCAL_STORAGE_PREFIX as it, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Ol, un as me, useUserPreferences as yr, serviceCall as Nt, SERVICE_TYPES as St, PROVIDER_ANTHROPIC as Lr, PROVIDER_OPENAI as Ca, setNewProvider as es, TOAST_PROVIDER_CHANGED as ts, toastOptions as rn, PROMPT_CLASSNAME as Vl, PROMPT_EDITABLE_AREA_CLASSNAME as Pl, ROLE_INTERNAL as nn, ERROR_MESSAGE as Bl, CLIPBOARD_PROMPT as Na, INPUT_PLACEHOLDER_TEXT as Sa, FOOTER_DISCLAIMER as Ll, useServerCapabilities as Dl, R as xe, CARDS as Q, renderDataAsList as ir, pluralize as Vn, ABOUT_TITLE as Fl, INFINITE_SCROLL_LIMIT as Aa, INFINITE_SCROLL_THRESHOLD as Ra, LOCAL_STORAGE_SORT as rs, TOAST_CHAT_DELETED as zl, useChatsHistory as Ul, LOCAL_STORAGE_SEARCH as ns, HISTORY_TITLE as Hl, fe as Wl, debounce as Kl, M as jl, l as Ma, durationFormatter as Gl, useUserChatStats as Yl, PROFILE_TITLE as Xl, LOCAL_STORAGE_CHAT_DETAILS as Jl, SETTINGS_TITLE as ql, APP_NAME as Zl, PROMPTS_DESCRIPTION as Ql, getCurrentGeoLocation as ec, LOG_OUT as $a, ROLE_USER as tc, ROLE_ASSISTANT as Oa, getMessageContaintWrapperClass as rc, UI_FOOTER_BUFFER as as, UI_BUTTON_SCROLL_BUFFER as nc, Logo as ac, UI_DEFAULT_MAIN_HEIGHT as Va, usePreloadChatsHistory as oc, serverUrl as sc, getMainPaddingClass as Pa, I$1 as ic } from "./index.NS9IBhFR.js";
2
+ import { I as q, ACTION_SORT as Qr, ACTION_SEARCH as qo, ACTION_RESET_PROMPT as Zo, ACTION_TOGGLE_PROMPT as Qo, useSWR as Jt, DEFAULT_AI_PROVIDER as $l, isElectron as en, isProbablyiPhone as tn, re as ye, DEFAULT_ICON_ACTION_SIZE as $e, L as gr, j as Le, C as Tt, LOCAL_STORAGE_PREFIX as it, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Ol, un as me, useUserPreferences as yr, serviceCall as Nt, SERVICE_TYPES as St, PROVIDER_ANTHROPIC as Lr, PROVIDER_OPENAI as Ca, setNewProvider as es, TOAST_PROVIDER_CHANGED as ts, toastOptions as rn, PROMPT_CLASSNAME as Vl, PROMPT_EDITABLE_AREA_CLASSNAME as Pl, ROLE_INTERNAL as nn, ERROR_MESSAGE as Bl, CLIPBOARD_PROMPT as Na, INPUT_PLACEHOLDER_TEXT as Sa, FOOTER_DISCLAIMER as Ll, useServerCapabilities as Dl, R as xe, CARDS as Q, renderDataAsList as ir, pluralize as Vn, ABOUT_TITLE as Fl, INFINITE_SCROLL_LIMIT as Aa, INFINITE_SCROLL_THRESHOLD as Ra, LOCAL_STORAGE_SORT as rs, TOAST_CHAT_DELETED as zl, useChatsHistory as Ul, LOCAL_STORAGE_SEARCH as ns, HISTORY_TITLE as Hl, fe as Wl, debounce as Kl, M as jl, l as Ma, durationFormatter as Gl, useUserChatStats as Yl, PROFILE_TITLE as Xl, LOCAL_STORAGE_CHAT_DETAILS as Jl, SETTINGS_TITLE as ql, APP_NAME as Zl, PROMPTS_DESCRIPTION as Ql, getCurrentGeoLocation as ec, LOG_OUT as $a, ROLE_USER as tc, ROLE_ASSISTANT as Oa, getMessageContaintWrapperClass as rc, UI_FOOTER_BUFFER as as, UI_BUTTON_SCROLL_BUFFER as nc, Logo as ac, UI_DEFAULT_MAIN_HEIGHT as Va, usePreloadChatsHistory as oc, serverUrl as sc, getMainPaddingClass as Pa, I$1 as ic } from "./index.xDNQI96A.js";
3
3
  import g from "clsx";
4
4
  import * as re from "react";
5
- import D, { useEffect as P, useRef as M, useState as L, useCallback as X, useSyncExternalStore as os, useMemo as pe, useId as br, useLayoutEffect as ie, useContext as Y, createContext as lc, forwardRef as ss, isValidElement as vr, cloneElement as Pn, Fragment as cc, useReducer as xt, lazy as dc, Suspense as Ba } from "react";
5
+ import D, { useEffect as P, useRef as M, useState as L, useCallback as K, useSyncExternalStore as os, useMemo as pe, useId as br, useLayoutEffect as ie, useContext as X, createContext as lc, forwardRef as ss, isValidElement as vr, cloneElement as Pn, Fragment as cc, useReducer as xt, lazy as dc, Suspense as Ba } from "react";
6
6
  import { useMergeRefs as Bn, FloatingPortal as is, FloatingOverlay as uc, FloatingFocusManager as ls, useFloating as cs, useClick as ds, useDismiss as us, useRole as fs, useInteractions as hs, useFloatingTree as ms, useFloatingNodeId as fc, useListItem as ps, offset as hc, flip as mc, shift as pc, autoUpdate as gc, useListNavigation as yc, useTypeahead as bc, FloatingNode as vc, FloatingList as wc, FloatingTree as xc } from "@floating-ui/react";
7
7
  function gs(e) {
8
8
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -24,7 +24,7 @@ const an = ({
24
24
  ...a,
25
25
  children: /* @__PURE__ */ d("path", { d: "M17.304 3.541h-3.672l6.696 16.918H24Zm-10.608 0L0 20.459h3.744l1.37-3.553h7.005l1.369 3.553h3.744L10.536 3.541Zm-.371 10.223L8.616 7.82l2.291 5.945Z" })
26
26
  }
27
- ), _c = ({
27
+ ), kc = ({
28
28
  className: e,
29
29
  viewBox: t,
30
30
  title: r,
@@ -50,7 +50,7 @@ const an = ({
50
50
  /* @__PURE__ */ d("path", { d: "M32 0h160c17.7 0 32 14.3 32 32s-14.3 32-32 32h-82.7l233.3 233.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L64 109.3V192c0 17.7-14.3 32-32 32S0 209.7 0 192V32C0 14.3 14.3 0 32 0" })
51
51
  ]
52
52
  }
53
- ), kc = ({
53
+ ), _c = ({
54
54
  className: e,
55
55
  viewBox: t,
56
56
  title: r,
@@ -624,7 +624,7 @@ function vs(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
624
624
  }
625
625
  function jc() {
626
626
  const e = M(null), [t, r] = L(!1);
627
- return { ref: X((n) => {
627
+ return { ref: K((n) => {
628
628
  var a, o;
629
629
  typeof IntersectionObserver < "u" && (n && !e.current ? e.current = new IntersectionObserver(
630
630
  (s) => r(s.some((i) => i.isIntersecting))
@@ -635,7 +635,7 @@ function Gc() {
635
635
  const e = M(!1);
636
636
  return P(() => (e.current = !0, () => {
637
637
  e.current = !1;
638
- }), []), X(() => e.current, []);
638
+ }), []), K(() => e.current, []);
639
639
  }
640
640
  function ws(e, t) {
641
641
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
@@ -652,7 +652,7 @@ function lt({
652
652
  key: e,
653
653
  initialValue: t
654
654
  }) {
655
- const r = os(Xc, () => Da(e)), n = X(
655
+ const r = os(Xc, () => Da(e)), n = K(
656
656
  (s) => {
657
657
  try {
658
658
  const i = typeof s == "function" ? s(JSON.parse(r)) : s;
@@ -662,9 +662,9 @@ function lt({
662
662
  }
663
663
  },
664
664
  [e, r]
665
- ), a = X(() => {
665
+ ), a = K(() => {
666
666
  n(t);
667
- }, [t, n]), o = X(() => {
667
+ }, [t, n]), o = K(() => {
668
668
  n(null);
669
669
  }, [n]);
670
670
  return P(() => {
@@ -708,7 +708,7 @@ function qc() {
708
708
  const [e, t] = L({
709
709
  width: 0,
710
710
  height: 0
711
- }), r = X(() => {
711
+ }), r = K(() => {
712
712
  t({
713
713
  width: window.innerWidth || 0,
714
714
  height: window.innerHeight || 0
@@ -720,7 +720,7 @@ function Zc() {
720
720
  const [e, t] = L({
721
721
  width: 0,
722
722
  height: 0
723
- }), r = X(() => {
723
+ }), r = K(() => {
724
724
  var n, a;
725
725
  t({
726
726
  width: ((n = window == null ? void 0 : window.visualViewport) == null ? void 0 : n.width) || window.innerWidth || 0,
@@ -748,7 +748,7 @@ try {
748
748
  });
749
749
  } catch {
750
750
  }
751
- const wr = "thead", Ln = "tfoot", tt = "tbody", _e = {
751
+ const wr = "thead", Ln = "tfoot", tt = "tbody", ke = {
752
752
  ASC: "asc",
753
753
  DESC: "desc"
754
754
  }, Qc = ({
@@ -863,7 +863,7 @@ const wr = "thead", Ln = "tfoot", tt = "tbody", _e = {
863
863
  )
864
864
  }), ad = ({
865
865
  buttonClassName: e
866
- }) => g("rounded-none text-sm", e), za = "av-button", xr = "icon", _s = "button", sn = "link", od = ({
866
+ }) => g("rounded-none text-sm", e), za = "av-button", xr = "icon", ks = "button", sn = "link", od = ({
867
867
  type: e,
868
868
  size: t,
869
869
  labelRight: r,
@@ -873,7 +873,7 @@ const wr = "thead", Ln = "tfoot", tt = "tbody", _e = {
873
873
  }) => {
874
874
  const s = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
875
875
  switch (e) {
876
- case _s:
876
+ case ks:
877
877
  case sn:
878
878
  return g({
879
879
  [s]: t === "small",
@@ -907,7 +907,7 @@ const wr = "thead", Ln = "tfoot", tt = "tbody", _e = {
907
907
  }) => {
908
908
  const a = "text-sm font-medium", o = "text-base font-medium", s = "text-lg font-medium";
909
909
  switch (e) {
910
- case _s:
910
+ case ks:
911
911
  case sn:
912
912
  return g({
913
913
  "text-center": e === sn,
@@ -1159,7 +1159,7 @@ const wr = "thead", Ln = "tfoot", tt = "tbody", _e = {
1159
1159
  )), yd = (e, t, r) => {
1160
1160
  var n;
1161
1161
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
1162
- }, ks = D.forwardRef((e, t) => {
1162
+ }, _s = D.forwardRef((e, t) => {
1163
1163
  const { onClick: r, noInternalClick: n = !1, ...a } = e;
1164
1164
  return /* @__PURE__ */ d(
1165
1165
  "button",
@@ -1172,12 +1172,12 @@ const wr = "thead", Ln = "tfoot", tt = "tbody", _e = {
1172
1172
  }
1173
1173
  );
1174
1174
  });
1175
- ks.displayName = "BaseButton";
1175
+ _s.displayName = "BaseButton";
1176
1176
  function bd() {
1177
1177
  const e = M(!1);
1178
1178
  return P(() => (e.current = !0, () => {
1179
1179
  e.current = !1;
1180
- }), []), X(() => e.current, []);
1180
+ }), []), K(() => e.current, []);
1181
1181
  }
1182
1182
  function vd(e) {
1183
1183
  return pe(() => e.every((t) => t == null) ? () => {
@@ -1215,14 +1215,14 @@ const xd = {
1215
1215
  // w-8
1216
1216
  large: 48
1217
1217
  // w-12
1218
- }, _d = {
1218
+ }, kd = {
1219
1219
  small: 8 * 2,
1220
1220
  // px-2 x 2
1221
1221
  medium: 12 * 2,
1222
1222
  // px-3 x 2
1223
1223
  large: 16 * 2
1224
1224
  // px-4 x 2
1225
- }, kd = 2, Ts = D.forwardRef(
1225
+ }, _d = 2, Ts = D.forwardRef(
1226
1226
  ({
1227
1227
  children: e,
1228
1228
  disabled: t = !1,
@@ -1246,7 +1246,7 @@ const xd = {
1246
1246
  animated: T = !1,
1247
1247
  ...C
1248
1248
  }, I) => {
1249
- const k = gd({
1249
+ const _ = gd({
1250
1250
  type: xr,
1251
1251
  mode: r,
1252
1252
  focusMode: n,
@@ -1263,9 +1263,9 @@ const xd = {
1263
1263
  radius: v,
1264
1264
  variant: x,
1265
1265
  animated: T
1266
- }), _ = md({ mode: r, raw: i, iconClassName: w }), b = pd({ animated: T }), [E, A] = Dr(), [S, $] = Dr(), [R, V] = Dr(), F = M(0), O = M(null), z = vd([I, O]);
1266
+ }), k = md({ mode: r, raw: i, iconClassName: w }), b = pd({ animated: T }), [E, A] = Dr(), [S, $] = Dr(), [R, V] = Dr(), F = M(0), O = M(null), z = vd([I, O]);
1267
1267
  return ie(() => {
1268
- R && R.current && T && (F.current = V.width + _d[f] + (l ? 0 : kd));
1268
+ R && R.current && T && (F.current = V.width + kd[f] + (l ? 0 : _d));
1269
1269
  }, [V, R, f, l, T]), ie(() => {
1270
1270
  O && O.current && T && (h && E && A.width > 0 ? (E.current && (E.current.style.opacity = "100"), O.current.style.width = `${A.width + F.current}px`) : m && $.width > 0 ? (S.current && (S.current.style.opacity = "100"), O.current.style.width = `${$.width + F.current}px`) : (E.current && (E.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), O.current.style.width = `${xd[f]}px`));
1271
1271
  }, [
@@ -1278,10 +1278,10 @@ const xd = {
1278
1278
  f,
1279
1279
  T
1280
1280
  ]), /* @__PURE__ */ N(
1281
- ks,
1281
+ _s,
1282
1282
  {
1283
1283
  ref: z,
1284
- className: k,
1284
+ className: _,
1285
1285
  disabled: t,
1286
1286
  type: s,
1287
1287
  "aria-label": c || u,
@@ -1296,7 +1296,7 @@ const xd = {
1296
1296
  labelInnerClass: "pr-2"
1297
1297
  }
1298
1298
  ),
1299
- /* @__PURE__ */ d("span", { ref: R, className: _, children: e }),
1299
+ /* @__PURE__ */ d("span", { ref: R, className: k, children: e }),
1300
1300
  /* @__PURE__ */ d(
1301
1301
  Ua,
1302
1302
  {
@@ -1554,7 +1554,7 @@ const ht = D.createContext({
1554
1554
  className: t,
1555
1555
  ...r
1556
1556
  }) => {
1557
- const n = Y(ht);
1557
+ const n = X(ht);
1558
1558
  n.cellWrapper = wr;
1559
1559
  const a = ed({
1560
1560
  className: t,
@@ -1567,7 +1567,7 @@ const ht = D.createContext({
1567
1567
  className: t,
1568
1568
  ...r
1569
1569
  }) => {
1570
- const n = Y(ht);
1570
+ const n = X(ht);
1571
1571
  n.cellWrapper = Ln;
1572
1572
  const a = td({
1573
1573
  className: t,
@@ -1576,14 +1576,14 @@ const ht = D.createContext({
1576
1576
  });
1577
1577
  return /* @__PURE__ */ d("tfoot", { className: a, ...r, children: e });
1578
1578
  }, Ad = ({ children: e, ...t }) => {
1579
- const r = Y(ht);
1579
+ const r = X(ht);
1580
1580
  return r.cellWrapper = tt, /* @__PURE__ */ d("tbody", { ...t, children: e });
1581
1581
  }, Fr = ({
1582
1582
  children: e,
1583
1583
  className: t,
1584
1584
  ...r
1585
1585
  }) => {
1586
- const n = Y(ht), a = rd({
1586
+ const n = X(ht), a = rd({
1587
1587
  mode: n.mode,
1588
1588
  cellWrapper: n.cellWrapper,
1589
1589
  className: t
@@ -1596,7 +1596,7 @@ const ht = D.createContext({
1596
1596
  align: n,
1597
1597
  ...a
1598
1598
  }) => {
1599
- const o = Y(ht), s = t || (o.cellWrapper === wr ? "th" : "td"), { mainClasses: i, alignClasses: l } = nd({
1599
+ const o = X(ht), s = t || (o.cellWrapper === wr ? "th" : "td"), { mainClasses: i, alignClasses: l } = nd({
1600
1600
  cellWrapper: o.cellWrapper,
1601
1601
  className: r,
1602
1602
  mode: o.mode,
@@ -1625,7 +1625,7 @@ const ht = D.createContext({
1625
1625
  component: a,
1626
1626
  className: n,
1627
1627
  role: "columnheader",
1628
- "aria-sort": l === _e.ASC && c === u ? "ascending" : l === _e.DESC && c === u ? "descending" : "other",
1628
+ "aria-sort": l === ke.ASC && c === u ? "ascending" : l === ke.DESC && c === u ? "descending" : "other",
1629
1629
  ...f,
1630
1630
  children: /* @__PURE__ */ d(
1631
1631
  Is,
@@ -1639,7 +1639,7 @@ const ht = D.createContext({
1639
1639
  mode: s,
1640
1640
  fullWidth: !0,
1641
1641
  labelRight: t,
1642
- children: l === _e.ASC && c === u ? /* @__PURE__ */ d(Ed, { className: "size-4", monotone: !0 }) : l === _e.DESC && c === u ? /* @__PURE__ */ d(Id, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ d(Td, { className: "size-4", monotone: !0 })
1642
+ children: l === ke.ASC && c === u ? /* @__PURE__ */ d(Ed, { className: "size-4", monotone: !0 }) : l === ke.DESC && c === u ? /* @__PURE__ */ d(Id, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ d(Td, { className: "size-4", monotone: !0 })
1643
1643
  }
1644
1644
  )
1645
1645
  }
@@ -2468,12 +2468,12 @@ var su = {
2468
2468
  Object.fromEntries(
2469
2469
  Un.map((e) => [e.name, e.code])
2470
2470
  );
2471
- var _u = Un.map((e) => e.code), ku = (e) => {
2471
+ var ku = Un.map((e) => e.code), _u = (e) => {
2472
2472
  const t = e.indexOf(":");
2473
2473
  if (t === -1)
2474
2474
  throw new Error("Failed to parse stream string. No separator found.");
2475
2475
  const r = e.slice(0, t);
2476
- if (!_u.includes(r))
2476
+ if (!ku.includes(r))
2477
2477
  throw new Error(`Failed to parse stream string. Invalid code ${r}.`);
2478
2478
  const n = r, a = e.slice(t + 1), o = JSON.parse(a);
2479
2479
  return xu[n].parse(o);
@@ -2513,10 +2513,10 @@ async function Eu({
2513
2513
  break;
2514
2514
  const I = Iu(w, T);
2515
2515
  T = 0;
2516
- const k = x.decode(I, { stream: !0 }).split(`
2517
- `).filter((_) => _ !== "").map(ku);
2518
- for (const { type: _, value: b } of k)
2519
- switch (_) {
2516
+ const _ = x.decode(I, { stream: !0 }).split(`
2517
+ `).filter((k) => k !== "").map(_u);
2518
+ for (const { type: k, value: b } of _)
2519
+ switch (k) {
2520
2520
  case "text":
2521
2521
  await (t == null ? void 0 : t(b));
2522
2522
  break;
@@ -2563,7 +2563,7 @@ async function Eu({
2563
2563
  await (p == null ? void 0 : p(b));
2564
2564
  break;
2565
2565
  default: {
2566
- const E = _;
2566
+ const E = k;
2567
2567
  throw new Error(`Unknown stream part type: ${E}`);
2568
2568
  }
2569
2569
  }
@@ -2581,9 +2581,9 @@ async function Cu({
2581
2581
  var i, l;
2582
2582
  const c = (s == null ? void 0 : s.role) === "assistant";
2583
2583
  let u = c ? 1 + // find max step in existing tool invocations:
2584
- ((l = (i = s.toolInvocations) == null ? void 0 : i.reduce((k, _) => {
2584
+ ((l = (i = s.toolInvocations) == null ? void 0 : i.reduce((_, k) => {
2585
2585
  var b;
2586
- return Math.max(k, (b = _.step) != null ? b : 0);
2586
+ return Math.max(_, (b = k.step) != null ? b : 0);
2587
2587
  }, 0)) != null ? l : 0) : 0;
2588
2588
  const f = c ? structuredClone(s) : {
2589
2589
  id: a(),
@@ -2593,13 +2593,13 @@ async function Cu({
2593
2593
  parts: []
2594
2594
  };
2595
2595
  let h, m, y;
2596
- function p(k, _) {
2596
+ function p(_, k) {
2597
2597
  const b = f.parts.find(
2598
- (E) => E.type === "tool-invocation" && E.toolInvocation.toolCallId === k
2598
+ (E) => E.type === "tool-invocation" && E.toolInvocation.toolCallId === _
2599
2599
  );
2600
- b != null ? b.toolInvocation = _ : f.parts.push({
2600
+ b != null ? b.toolInvocation = k : f.parts.push({
2601
2601
  type: "tool-invocation",
2602
- toolInvocation: _
2602
+ toolInvocation: k
2603
2603
  });
2604
2604
  }
2605
2605
  const v = [];
@@ -2611,9 +2611,9 @@ async function Cu({
2611
2611
  totalTokens: NaN
2612
2612
  }, C = "unknown";
2613
2613
  function I() {
2614
- const k = [...v];
2614
+ const _ = [...v];
2615
2615
  x != null && x.length && (f.annotations = x);
2616
- const _ = {
2616
+ const k = {
2617
2617
  // deep copy the message to ensure that deep changes (msg attachments) are updated
2618
2618
  // with SolidJS. SolidJS uses referential integration of sub-objects to detect changes.
2619
2619
  ...structuredClone(f),
@@ -2625,128 +2625,128 @@ async function Cu({
2625
2625
  revisionId: a()
2626
2626
  };
2627
2627
  t({
2628
- message: _,
2629
- data: k,
2628
+ message: k,
2629
+ data: _,
2630
2630
  replaceLastMessage: c
2631
2631
  });
2632
2632
  }
2633
2633
  await Eu({
2634
2634
  stream: e,
2635
- onTextPart(k) {
2635
+ onTextPart(_) {
2636
2636
  h == null ? (h = {
2637
2637
  type: "text",
2638
- text: k
2639
- }, f.parts.push(h)) : h.text += k, f.content += k, I();
2638
+ text: _
2639
+ }, f.parts.push(h)) : h.text += _, f.content += _, I();
2640
2640
  },
2641
- onReasoningPart(k) {
2642
- var _;
2643
- y == null ? (y = { type: "text", text: k }, m != null && m.details.push(y)) : y.text += k, m == null ? (m = {
2641
+ onReasoningPart(_) {
2642
+ var k;
2643
+ y == null ? (y = { type: "text", text: _ }, m != null && m.details.push(y)) : y.text += _, m == null ? (m = {
2644
2644
  type: "reasoning",
2645
- reasoning: k,
2645
+ reasoning: _,
2646
2646
  details: [y]
2647
- }, f.parts.push(m)) : m.reasoning += k, f.reasoning = ((_ = f.reasoning) != null ? _ : "") + k, I();
2647
+ }, f.parts.push(m)) : m.reasoning += _, f.reasoning = ((k = f.reasoning) != null ? k : "") + _, I();
2648
2648
  },
2649
- onReasoningSignaturePart(k) {
2650
- y != null && (y.signature = k.signature);
2649
+ onReasoningSignaturePart(_) {
2650
+ y != null && (y.signature = _.signature);
2651
2651
  },
2652
- onRedactedReasoningPart(k) {
2652
+ onRedactedReasoningPart(_) {
2653
2653
  m == null && (m = {
2654
2654
  type: "reasoning",
2655
2655
  reasoning: "",
2656
2656
  details: []
2657
2657
  }, f.parts.push(m)), m.details.push({
2658
2658
  type: "redacted",
2659
- data: k.data
2659
+ data: _.data
2660
2660
  }), y = void 0, I();
2661
2661
  },
2662
- onSourcePart(k) {
2662
+ onSourcePart(_) {
2663
2663
  f.parts.push({
2664
2664
  type: "source",
2665
- source: k
2665
+ source: _
2666
2666
  }), I();
2667
2667
  },
2668
- onToolCallStreamingStartPart(k) {
2669
- f.toolInvocations == null && (f.toolInvocations = []), w[k.toolCallId] = {
2668
+ onToolCallStreamingStartPart(_) {
2669
+ f.toolInvocations == null && (f.toolInvocations = []), w[_.toolCallId] = {
2670
2670
  text: "",
2671
2671
  step: u,
2672
- toolName: k.toolName,
2672
+ toolName: _.toolName,
2673
2673
  index: f.toolInvocations.length
2674
2674
  };
2675
- const _ = {
2675
+ const k = {
2676
2676
  state: "partial-call",
2677
2677
  step: u,
2678
- toolCallId: k.toolCallId,
2679
- toolName: k.toolName,
2678
+ toolCallId: _.toolCallId,
2679
+ toolName: _.toolName,
2680
2680
  args: void 0
2681
2681
  };
2682
- f.toolInvocations.push(_), p(k.toolCallId, _), I();
2682
+ f.toolInvocations.push(k), p(_.toolCallId, k), I();
2683
2683
  },
2684
- onToolCallDeltaPart(k) {
2685
- const _ = w[k.toolCallId];
2686
- _.text += k.argsTextDelta;
2687
- const { value: b } = ou(_.text), E = {
2684
+ onToolCallDeltaPart(_) {
2685
+ const k = w[_.toolCallId];
2686
+ k.text += _.argsTextDelta;
2687
+ const { value: b } = ou(k.text), E = {
2688
2688
  state: "partial-call",
2689
- step: _.step,
2690
- toolCallId: k.toolCallId,
2691
- toolName: _.toolName,
2689
+ step: k.step,
2690
+ toolCallId: _.toolCallId,
2691
+ toolName: k.toolName,
2692
2692
  args: b
2693
2693
  };
2694
- f.toolInvocations[_.index] = E, p(k.toolCallId, E), I();
2694
+ f.toolInvocations[k.index] = E, p(_.toolCallId, E), I();
2695
2695
  },
2696
- async onToolCallPart(k) {
2697
- const _ = {
2696
+ async onToolCallPart(_) {
2697
+ const k = {
2698
2698
  state: "call",
2699
2699
  step: u,
2700
- ...k
2700
+ ..._
2701
2701
  };
2702
- if (w[k.toolCallId] != null ? f.toolInvocations[w[k.toolCallId].index] = _ : (f.toolInvocations == null && (f.toolInvocations = []), f.toolInvocations.push(_)), p(k.toolCallId, _), I(), r) {
2703
- const b = await r({ toolCall: k });
2702
+ if (w[_.toolCallId] != null ? f.toolInvocations[w[_.toolCallId].index] = k : (f.toolInvocations == null && (f.toolInvocations = []), f.toolInvocations.push(k)), p(_.toolCallId, k), I(), r) {
2703
+ const b = await r({ toolCall: _ });
2704
2704
  if (b != null) {
2705
2705
  const E = {
2706
2706
  state: "result",
2707
2707
  step: u,
2708
- ...k,
2708
+ ..._,
2709
2709
  result: b
2710
2710
  };
2711
- f.toolInvocations[f.toolInvocations.length - 1] = E, p(k.toolCallId, E), I();
2711
+ f.toolInvocations[f.toolInvocations.length - 1] = E, p(_.toolCallId, E), I();
2712
2712
  }
2713
2713
  }
2714
2714
  },
2715
- onToolResultPart(k) {
2716
- const _ = f.toolInvocations;
2717
- if (_ == null)
2715
+ onToolResultPart(_) {
2716
+ const k = f.toolInvocations;
2717
+ if (k == null)
2718
2718
  throw new Error("tool_result must be preceded by a tool_call");
2719
- const b = _.findIndex(
2720
- (A) => A.toolCallId === k.toolCallId
2719
+ const b = k.findIndex(
2720
+ (A) => A.toolCallId === _.toolCallId
2721
2721
  );
2722
2722
  if (b === -1)
2723
2723
  throw new Error(
2724
2724
  "tool_result must be preceded by a tool_call with the same toolCallId"
2725
2725
  );
2726
2726
  const E = {
2727
- ..._[b],
2727
+ ...k[b],
2728
2728
  state: "result",
2729
- ...k
2729
+ ..._
2730
2730
  };
2731
- _[b] = E, p(k.toolCallId, E), I();
2731
+ k[b] = E, p(_.toolCallId, E), I();
2732
2732
  },
2733
- onDataPart(k) {
2734
- v.push(...k), I();
2733
+ onDataPart(_) {
2734
+ v.push(..._), I();
2735
2735
  },
2736
- onMessageAnnotationsPart(k) {
2737
- x == null ? x = [...k] : x.push(...k), I();
2736
+ onMessageAnnotationsPart(_) {
2737
+ x == null ? x = [..._] : x.push(..._), I();
2738
2738
  },
2739
- onFinishStepPart(k) {
2740
- u += 1, h = k.isContinued ? h : void 0, m = void 0, y = void 0;
2739
+ onFinishStepPart(_) {
2740
+ u += 1, h = _.isContinued ? h : void 0, m = void 0, y = void 0;
2741
2741
  },
2742
- onStartStepPart(k) {
2743
- c || (f.id = k.messageId);
2742
+ onStartStepPart(_) {
2743
+ c || (f.id = _.messageId);
2744
2744
  },
2745
- onFinishMessagePart(k) {
2746
- C = k.finishReason, k.usage != null && (T = nu(k.usage));
2745
+ onFinishMessagePart(_) {
2746
+ C = _.finishReason, _.usage != null && (T = nu(_.usage));
2747
2747
  },
2748
- onErrorPart(k) {
2749
- throw new Error(k);
2748
+ onErrorPart(_) {
2749
+ throw new Error(_);
2750
2750
  }
2751
2751
  }), n == null || n({ message: f, finishReason: C, usage: T });
2752
2752
  }
@@ -3038,13 +3038,13 @@ function Du({
3038
3038
  keepLastMessageOnError: x = !0,
3039
3039
  experimental_throttle: w
3040
3040
  } = {}) {
3041
- const [T] = L(p), C = t ?? T, I = typeof e == "string" ? [e, C] : C, k = Lu(r ?? []), _ = pe(
3042
- () => Ur(k),
3043
- [k]
3041
+ const [T] = L(p), C = t ?? T, I = typeof e == "string" ? [e, C] : C, _ = Lu(r ?? []), k = pe(
3042
+ () => Ur(_),
3043
+ [_]
3044
3044
  ), { data: b, mutate: E } = Jt(
3045
3045
  [I, "messages"],
3046
3046
  null,
3047
- { fallbackData: _ }
3047
+ { fallbackData: k }
3048
3048
  ), A = M(b || []);
3049
3049
  P(() => {
3050
3050
  A.current = b || [];
@@ -3065,12 +3065,12 @@ function Du({
3065
3065
  body: y
3066
3066
  };
3067
3067
  }, [h, m, y]);
3068
- const ee = X(
3068
+ const ee = K(
3069
3069
  async (H) => {
3070
- var Z, j;
3070
+ var Z, G;
3071
3071
  F("submitted"), z(void 0);
3072
- const G = Ur(H.messages), he = G.length, Ne = un(
3073
- (Z = G[G.length - 1]) == null ? void 0 : Z.toolInvocations
3072
+ const Y = Ur(H.messages), he = Y.length, Ne = un(
3073
+ (Z = Y[Y.length - 1]) == null ? void 0 : Z.toolInvocations
3074
3074
  );
3075
3075
  try {
3076
3076
  const Ae = new AbortController();
@@ -3079,13 +3079,13 @@ function Du({
3079
3079
  $,
3080
3080
  w
3081
3081
  ), Rl = A.current;
3082
- vt(G, !1);
3083
- const Ml = a ? G : G.map(
3082
+ vt(Y, !1);
3083
+ const Ml = a ? Y : Y.map(
3084
3084
  ({
3085
3085
  role: Br,
3086
3086
  content: wt,
3087
3087
  experimental_attachments: Xt,
3088
- data: ka,
3088
+ data: _a,
3089
3089
  annotations: Ta,
3090
3090
  toolInvocations: Ia,
3091
3091
  parts: Ea
@@ -3095,20 +3095,20 @@ function Du({
3095
3095
  ...Xt !== void 0 && {
3096
3096
  experimental_attachments: Xt
3097
3097
  },
3098
- ...ka !== void 0 && { data: ka },
3098
+ ..._a !== void 0 && { data: _a },
3099
3099
  ...Ta !== void 0 && { annotations: Ta },
3100
3100
  ...Ia !== void 0 && { toolInvocations: Ia },
3101
3101
  ...Ea !== void 0 && { parts: Ea }
3102
3102
  })
3103
- ), _a = R.current;
3103
+ ), ka = R.current;
3104
3104
  await Ru({
3105
3105
  api: e,
3106
- body: (j = s == null ? void 0 : s({
3106
+ body: (G = s == null ? void 0 : s({
3107
3107
  id: C,
3108
- messages: G,
3108
+ messages: Y,
3109
3109
  requestData: H.data,
3110
3110
  requestBody: H.body
3111
- })) != null ? j : {
3111
+ })) != null ? G : {
3112
3112
  id: C,
3113
3113
  messages: Ml,
3114
3114
  data: H.data,
@@ -3129,12 +3129,12 @@ function Du({
3129
3129
  onUpdate({ message: Br, data: wt, replaceLastMessage: Xt }) {
3130
3130
  F("streaming"), vt(
3131
3131
  [
3132
- ...Xt ? G.slice(0, G.length - 1) : G,
3132
+ ...Xt ? Y.slice(0, Y.length - 1) : Y,
3133
3133
  Br
3134
3134
  ],
3135
3135
  !1
3136
3136
  ), wt != null && wt.length && Al(
3137
- [..._a ?? [], ...wt],
3137
+ [...ka ?? [], ...wt],
3138
3138
  !1
3139
3139
  );
3140
3140
  },
@@ -3142,7 +3142,7 @@ function Du({
3142
3142
  onFinish: u,
3143
3143
  generateId: p,
3144
3144
  fetch: v,
3145
- lastMessage: G[G.length - 1]
3145
+ lastMessage: Y[Y.length - 1]
3146
3146
  }), U.current = null, F("ready");
3147
3147
  } catch (Ae) {
3148
3148
  if (Ae.name === "AbortError")
@@ -3181,11 +3181,11 @@ function Du({
3181
3181
  w,
3182
3182
  C
3183
3183
  ]
3184
- ), Ze = X(
3184
+ ), Ze = K(
3185
3185
  async (H, {
3186
3186
  data: Z,
3187
- headers: j,
3188
- body: G,
3187
+ headers: G,
3188
+ body: Y,
3189
3189
  experimental_attachments: he
3190
3190
  } = {}) => {
3191
3191
  var Ne, Se;
@@ -3198,45 +3198,45 @@ function Du({
3198
3198
  experimental_attachments: Ae.length > 0 ? Ae : void 0,
3199
3199
  parts: zs(H)
3200
3200
  });
3201
- return ee({ messages: vt, headers: j, body: G, data: Z });
3201
+ return ee({ messages: vt, headers: G, body: Y, data: Z });
3202
3202
  },
3203
3203
  [ee, p]
3204
- ), Ue = X(
3205
- async ({ data: H, headers: Z, body: j } = {}) => {
3206
- const G = A.current;
3207
- if (G.length === 0)
3204
+ ), Ue = K(
3205
+ async ({ data: H, headers: Z, body: G } = {}) => {
3206
+ const Y = A.current;
3207
+ if (Y.length === 0)
3208
3208
  return null;
3209
- const he = G[G.length - 1];
3209
+ const he = Y[Y.length - 1];
3210
3210
  return ee({
3211
- messages: he.role === "assistant" ? G.slice(0, -1) : G,
3211
+ messages: he.role === "assistant" ? Y.slice(0, -1) : Y,
3212
3212
  headers: Z,
3213
- body: j,
3213
+ body: G,
3214
3214
  data: H
3215
3215
  });
3216
3216
  },
3217
3217
  [ee]
3218
- ), Qe = X(() => {
3218
+ ), Qe = K(() => {
3219
3219
  U.current && (U.current.abort(), U.current = null);
3220
- }, []), et = X(
3220
+ }, []), et = K(
3221
3221
  (H) => {
3222
3222
  typeof H == "function" && (H = H(A.current));
3223
3223
  const Z = Ur(H);
3224
3224
  E(Z, !1), A.current = Z;
3225
3225
  },
3226
3226
  [E]
3227
- ), we = X(
3227
+ ), we = K(
3228
3228
  (H) => {
3229
3229
  typeof H == "function" && (H = H(R.current)), $(H, !1), R.current = H;
3230
3230
  },
3231
3231
  [$]
3232
- ), [fe, ae] = L(n), oe = X(
3233
- async (H, Z = {}, j) => {
3234
- var G;
3235
- if ((G = H == null ? void 0 : H.preventDefault) == null || G.call(H), !fe && !Z.allowEmptySubmit)
3232
+ ), [fe, ae] = L(n), oe = K(
3233
+ async (H, Z = {}, G) => {
3234
+ var Y;
3235
+ if ((Y = H == null ? void 0 : H.preventDefault) == null || Y.call(H), !fe && !Z.allowEmptySubmit)
3236
3236
  return;
3237
- j && (W.current = {
3237
+ G && (W.current = {
3238
3238
  ...W.current,
3239
- ...j
3239
+ ...G
3240
3240
  });
3241
3241
  const he = await Ya(
3242
3242
  Z.experimental_attachments
@@ -3258,16 +3258,16 @@ function Du({
3258
3258
  [fe, p, ee]
3259
3259
  ), Ce = (H) => {
3260
3260
  ae(H.target.value);
3261
- }, Pr = X(
3261
+ }, Pr = K(
3262
3262
  ({ toolCallId: H, result: Z }) => {
3263
- const j = A.current;
3263
+ const G = A.current;
3264
3264
  Ou({
3265
- messages: j,
3265
+ messages: G,
3266
3266
  toolCallId: H,
3267
3267
  toolResult: Z
3268
- }), E(j, !1);
3269
- const G = j[j.length - 1];
3270
- Us(G) && ee({ messages: j });
3268
+ }), E(G, !1);
3269
+ const Y = G[G.length - 1];
3270
+ Us(Y) && ee({ messages: G });
3271
3271
  },
3272
3272
  [E, ee]
3273
3273
  );
@@ -3290,59 +3290,70 @@ function Du({
3290
3290
  addToolResult: Pr
3291
3291
  };
3292
3292
  }
3293
- const qa = {
3293
+ const qa = () => ({
3294
3294
  onFinish: /* @__PURE__ */ new Set(),
3295
3295
  onError: /* @__PURE__ */ new Set(),
3296
3296
  onResponse: /* @__PURE__ */ new Set(),
3297
3297
  onToolCall: /* @__PURE__ */ new Set()
3298
- }, Hs = lc(null);
3298
+ }), Hs = lc(null);
3299
3299
  function Je(e = {}) {
3300
- const t = Y(Hs);
3300
+ const t = X(Hs);
3301
3301
  if (!t)
3302
3302
  throw new Error("useAiChat must be used within a AiChatProvider");
3303
- return P(() => (e.onFinish && t.handlers.onFinish.add(e.onFinish), e.onError && t.handlers.onError.add(e.onError), e.onResponse && t.handlers.onResponse.add(e.onResponse), e.onToolCall && t.handlers.onToolCall.add(e.onToolCall), () => {
3304
- e.onFinish && t.handlers.onFinish.delete(e.onFinish), e.onError && t.handlers.onError.delete(e.onError), e.onResponse && t.handlers.onResponse.delete(e.onResponse), e.onToolCall && t.handlers.onToolCall.delete(e.onToolCall);
3305
- }), [e.onFinish, e.onError, e.onResponse, e.onToolCall]), t.chat;
3303
+ const r = M(e);
3304
+ return P(() => {
3305
+ r.current = e;
3306
+ }, [e]), P(() => {
3307
+ const { onFinish: n, onError: a, onResponse: o, onToolCall: s } = r.current;
3308
+ return n && t.handlers.onFinish.add(n), a && t.handlers.onError.add(a), o && t.handlers.onResponse.add(o), s && t.handlers.onToolCall.add(s), () => {
3309
+ n && t.handlers.onFinish.delete(n), a && t.handlers.onError.delete(a), o && t.handlers.onResponse.delete(o), s && t.handlers.onToolCall.delete(s);
3310
+ };
3311
+ }, [t.handlers]), t.chat;
3306
3312
  }
3307
3313
  function Fu({
3308
3314
  children: e,
3309
3315
  value: t
3310
3316
  }) {
3311
- const r = M(qa);
3317
+ const r = M(qa());
3312
3318
  P(() => {
3313
- r.current = qa;
3319
+ r.current = qa();
3314
3320
  }, [t]);
3315
- const n = Du({
3316
- ...t,
3317
- onError(...a) {
3318
- for (const o of r.current.onError)
3319
- o(...a);
3321
+ const n = K(
3322
+ (...l) => {
3323
+ for (const c of r.current.onError)
3324
+ c(...l);
3325
+ },
3326
+ []
3327
+ ), a = K(
3328
+ (...l) => {
3329
+ for (const c of r.current.onFinish)
3330
+ c(...l);
3320
3331
  },
3321
- onFinish(...a) {
3322
- for (const o of r.current.onFinish)
3323
- o(...a);
3332
+ []
3333
+ ), o = K(
3334
+ async (...l) => {
3335
+ for (const c of r.current.onResponse)
3336
+ await c(...l);
3324
3337
  },
3325
- async onResponse(...a) {
3326
- for (const o of r.current.onResponse)
3327
- await o(...a);
3338
+ []
3339
+ ), s = K(
3340
+ async (...l) => {
3341
+ for (const c of r.current.onToolCall)
3342
+ await c(...l);
3328
3343
  },
3329
- async onToolCall(...a) {
3330
- for (const o of r.current.onToolCall)
3331
- await o(...a);
3332
- }
3333
- // async onToolCall({ toolCall, ...args }) {
3334
- // const handler = handlers.current.onToolCall.get(toolCall.toolName);
3335
- // if (handler) {
3336
- // return handler({ toolCall, ...args });
3337
- // }
3338
- // console.warn(`No handler for tool call ${toolCall.toolName}`);
3339
- // },
3344
+ []
3345
+ ), i = Du({
3346
+ ...t,
3347
+ onError: n,
3348
+ onFinish: a,
3349
+ onResponse: o,
3350
+ onToolCall: s
3340
3351
  });
3341
3352
  return /* @__PURE__ */ d(
3342
3353
  Hs.Provider,
3343
3354
  {
3344
3355
  value: {
3345
- chat: n,
3356
+ chat: i,
3346
3357
  handlers: r.current
3347
3358
  },
3348
3359
  children: e
@@ -3396,7 +3407,7 @@ try {
3396
3407
  });
3397
3408
  } catch {
3398
3409
  }
3399
- const Hu = "av-tooltip", Wu = "av-tooltip-arrow", Rt = Math.min, at = Math.max, lr = Math.round, ke = (e) => ({
3410
+ const Hu = "av-tooltip", Wu = "av-tooltip-arrow", Rt = Math.min, at = Math.max, lr = Math.round, _e = (e) => ({
3400
3411
  x: e,
3401
3412
  y: e
3402
3413
  }), Ku = {
@@ -3676,10 +3687,10 @@ const Qu = (e) => ({
3676
3687
  const f = Ks(u), h = {
3677
3688
  x: r,
3678
3689
  y: n
3679
- }, m = Gn(a), y = jn(m), p = await s.getDimensions(c), v = m === "y", x = v ? "top" : "left", w = v ? "bottom" : "right", T = v ? "clientHeight" : "clientWidth", C = o.reference[y] + o.reference[m] - h[m] - o.floating[y], I = h[m] - o.reference[m], k = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
3680
- let _ = k ? k[T] : 0;
3681
- (!_ || !await (s.isElement == null ? void 0 : s.isElement(k))) && (_ = i.floating[T] || o.floating[y]);
3682
- const b = C / 2 - I / 2, E = _ / 2 - p[y] / 2 - 1, A = Rt(f[x], E), S = Rt(f[w], E), $ = A, R = _ - p[y] - S, V = _ / 2 - p[y] / 2 + b, F = hn($, V, R), O = !l.arrow && Ft(a) != null && V !== F && o.reference[y] / 2 - (V < $ ? A : S) - p[y] / 2 < 0, z = O ? V < $ ? V - $ : V - R : 0;
3690
+ }, m = Gn(a), y = jn(m), p = await s.getDimensions(c), v = m === "y", x = v ? "top" : "left", w = v ? "bottom" : "right", T = v ? "clientHeight" : "clientWidth", C = o.reference[y] + o.reference[m] - h[m] - o.floating[y], I = h[m] - o.reference[m], _ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
3691
+ let k = _ ? _[T] : 0;
3692
+ (!k || !await (s.isElement == null ? void 0 : s.isElement(_))) && (k = i.floating[T] || o.floating[y]);
3693
+ const b = C / 2 - I / 2, E = k / 2 - p[y] / 2 - 1, A = Rt(f[x], E), S = Rt(f[w], E), $ = A, R = k - p[y] - S, V = k / 2 - p[y] / 2 + b, F = hn($, V, R), O = !l.arrow && Ft(a) != null && V !== F && o.reference[y] / 2 - (V < $ ? A : S) - p[y] / 2 < 0, z = O ? V < $ ? V - $ : V - R : 0;
3683
3694
  return {
3684
3695
  [m]: h[m] + z,
3685
3696
  data: {
@@ -3716,9 +3727,9 @@ const Qu = (e) => ({
3716
3727
  } = Dt(e, t);
3717
3728
  if ((r = o.arrow) != null && r.alignmentOffset)
3718
3729
  return {};
3719
- const x = Ge(a), w = dt(i), T = Ge(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), I = h || (T || !p ? [cr(i)] : Yu(i)), k = y !== "none";
3720
- !h && k && I.push(...Ju(i, p, y, C));
3721
- const _ = [i, ...I], b = await js(t, v), E = [];
3730
+ const x = Ge(a), w = dt(i), T = Ge(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), I = h || (T || !p ? [cr(i)] : Yu(i)), _ = y !== "none";
3731
+ !h && _ && I.push(...Ju(i, p, y, C));
3732
+ const k = [i, ...I], b = await js(t, v), E = [];
3722
3733
  let A = ((n = o.flip) == null ? void 0 : n.overflows) || [];
3723
3734
  if (u && E.push(b[x]), f) {
3724
3735
  const V = Gu(a, s, C);
@@ -3729,7 +3740,7 @@ const Qu = (e) => ({
3729
3740
  overflows: E
3730
3741
  }], !E.every((V) => V <= 0)) {
3731
3742
  var S, $;
3732
- const V = (((S = o.flip) == null ? void 0 : S.index) || 0) + 1, F = _[V];
3743
+ const V = (((S = o.flip) == null ? void 0 : S.index) || 0) + 1, F = k[V];
3733
3744
  if (F)
3734
3745
  return {
3735
3746
  data: {
@@ -3746,7 +3757,7 @@ const Qu = (e) => ({
3746
3757
  case "bestFit": {
3747
3758
  var R;
3748
3759
  const z = (R = A.filter((U) => {
3749
- if (k) {
3760
+ if (_) {
3750
3761
  const W = dt(U.placement);
3751
3762
  return W === w || // Create a bias to the `y` side axis due to horizontal
3752
3763
  // reading directions favoring greater width.
@@ -3878,7 +3889,7 @@ const rf = function(e) {
3878
3889
  }
3879
3890
  };
3880
3891
  };
3881
- function _r() {
3892
+ function kr() {
3882
3893
  return typeof window < "u";
3883
3894
  }
3884
3895
  function mt(e) {
@@ -3893,16 +3904,16 @@ function Ve(e) {
3893
3904
  return (t = (Gs(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
3894
3905
  }
3895
3906
  function Gs(e) {
3896
- return _r() ? e instanceof Node || e instanceof ue(e).Node : !1;
3907
+ return kr() ? e instanceof Node || e instanceof ue(e).Node : !1;
3897
3908
  }
3898
3909
  function be(e) {
3899
- return _r() ? e instanceof Element || e instanceof ue(e).Element : !1;
3910
+ return kr() ? e instanceof Element || e instanceof ue(e).Element : !1;
3900
3911
  }
3901
3912
  function Ie(e) {
3902
- return _r() ? e instanceof HTMLElement || e instanceof ue(e).HTMLElement : !1;
3913
+ return kr() ? e instanceof HTMLElement || e instanceof ue(e).HTMLElement : !1;
3903
3914
  }
3904
3915
  function Qa(e) {
3905
- return !_r() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ue(e).ShadowRoot;
3916
+ return !kr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ue(e).ShadowRoot;
3906
3917
  }
3907
3918
  function zt(e) {
3908
3919
  const {
@@ -3916,7 +3927,7 @@ function zt(e) {
3916
3927
  function af(e) {
3917
3928
  return ["table", "td", "th"].includes(mt(e));
3918
3929
  }
3919
- function kr(e) {
3930
+ function _r(e) {
3920
3931
  return [":popover-open", ":modal"].some((t) => {
3921
3932
  try {
3922
3933
  return e.matches(t);
@@ -3934,7 +3945,7 @@ function of(e) {
3934
3945
  for (; Ie(t) && !ut(t); ) {
3935
3946
  if (Yn(t))
3936
3947
  return t;
3937
- if (kr(t))
3948
+ if (_r(t))
3938
3949
  return null;
3939
3950
  t = De(t);
3940
3951
  }
@@ -3999,7 +4010,7 @@ function qs(e) {
3999
4010
  function ot(e) {
4000
4011
  const t = qs(e);
4001
4012
  if (!Ie(t))
4002
- return ke(1);
4013
+ return _e(1);
4003
4014
  const r = t.getBoundingClientRect(), {
4004
4015
  width: n,
4005
4016
  height: a,
@@ -4011,7 +4022,7 @@ function ot(e) {
4011
4022
  y: i
4012
4023
  };
4013
4024
  }
4014
- const sf = /* @__PURE__ */ ke(0);
4025
+ const sf = /* @__PURE__ */ _e(0);
4015
4026
  function Zs(e) {
4016
4027
  const t = ue(e);
4017
4028
  return !Xn() || !t.visualViewport ? sf : {
@@ -4025,9 +4036,9 @@ function lf(e, t, r) {
4025
4036
  function Mt(e, t, r, n) {
4026
4037
  t === void 0 && (t = !1), r === void 0 && (r = !1);
4027
4038
  const a = e.getBoundingClientRect(), o = qs(e);
4028
- let s = ke(1);
4039
+ let s = _e(1);
4029
4040
  t && (n ? be(n) && (s = ot(n)) : s = ot(e));
4030
- const i = lf(o, r, n) ? Zs(o) : ke(0);
4041
+ const i = lf(o, r, n) ? Zs(o) : _e(0);
4031
4042
  let l = (a.left + i.x) / s.x, c = (a.top + i.y) / s.y, u = a.width / s.x, f = a.height / s.y;
4032
4043
  if (o) {
4033
4044
  const h = ue(o), m = n && be(n) ? ue(n) : n;
@@ -4066,19 +4077,19 @@ function cf(e) {
4066
4077
  offsetParent: n,
4067
4078
  strategy: a
4068
4079
  } = e;
4069
- const o = a === "fixed", s = Ve(n), i = t ? kr(t.floating) : !1;
4080
+ const o = a === "fixed", s = Ve(n), i = t ? _r(t.floating) : !1;
4070
4081
  if (n === s || i && o)
4071
4082
  return r;
4072
4083
  let l = {
4073
4084
  scrollLeft: 0,
4074
4085
  scrollTop: 0
4075
- }, c = ke(1);
4076
- const u = ke(0), f = Ie(n);
4086
+ }, c = _e(1);
4087
+ const u = _e(0), f = Ie(n);
4077
4088
  if ((f || !f && !o) && ((mt(n) !== "body" || zt(s)) && (l = Tr(n)), Ie(n))) {
4078
4089
  const m = Mt(n);
4079
4090
  c = ot(n), u.x = m.x + n.clientLeft, u.y = m.y + n.clientTop;
4080
4091
  }
4081
- const h = s && !f && !o ? Qs(s, l, !0) : ke(0);
4092
+ const h = s && !f && !o ? Qs(s, l, !0) : _e(0);
4082
4093
  return {
4083
4094
  width: r.width * c.x,
4084
4095
  height: r.height * c.y,
@@ -4116,7 +4127,7 @@ function ff(e, t) {
4116
4127
  };
4117
4128
  }
4118
4129
  function hf(e, t) {
4119
- const r = Mt(e, !0, t === "fixed"), n = r.top + e.clientTop, a = r.left + e.clientLeft, o = Ie(e) ? ot(e) : ke(1), s = e.clientWidth * o.x, i = e.clientHeight * o.y, l = a * o.x, c = n * o.y;
4130
+ const r = Mt(e, !0, t === "fixed"), n = r.top + e.clientTop, a = r.left + e.clientLeft, o = Ie(e) ? ot(e) : _e(1), s = e.clientWidth * o.x, i = e.clientHeight * o.y, l = a * o.x, c = n * o.y;
4120
4131
  return {
4121
4132
  width: s,
4122
4133
  height: i,
@@ -4167,7 +4178,7 @@ function pf(e) {
4167
4178
  rootBoundary: n,
4168
4179
  strategy: a
4169
4180
  } = e;
4170
- const o = [...r === "clippingAncestors" ? kr(t) ? [] : mf(t, this._c) : [].concat(r), n], s = o[0], i = o.reduce((l, c) => {
4181
+ const o = [...r === "clippingAncestors" ? _r(t) ? [] : mf(t, this._c) : [].concat(r), n], s = o[0], i = o.reduce((l, c) => {
4171
4182
  const u = to(t, c, a);
4172
4183
  return l.top = at(u.top, l.top), l.right = Rt(u.right, l.right), l.bottom = Rt(u.bottom, l.bottom), l.left = at(u.left, l.left), l;
4173
4184
  }, to(t, s, a));
@@ -4194,13 +4205,13 @@ function yf(e, t, r) {
4194
4205
  scrollLeft: 0,
4195
4206
  scrollTop: 0
4196
4207
  };
4197
- const l = ke(0);
4208
+ const l = _e(0);
4198
4209
  if (n || !n && !o)
4199
4210
  if ((mt(t) !== "body" || zt(a)) && (i = Tr(t)), n) {
4200
4211
  const h = Mt(t, !0, o, t);
4201
4212
  l.x = h.x + t.clientLeft, l.y = h.y + t.clientTop;
4202
4213
  } else a && (l.x = Jn(a));
4203
- const c = a && !n && !o ? Qs(a, i) : ke(0), u = s.left + i.scrollLeft - l.x - c.x, f = s.top + i.scrollTop - l.y - c.y;
4214
+ const c = a && !n && !o ? Qs(a, i) : _e(0), u = s.left + i.scrollLeft - l.x - c.x, f = s.top + i.scrollTop - l.y - c.y;
4204
4215
  return {
4205
4216
  x: u,
4206
4217
  y: f,
@@ -4221,7 +4232,7 @@ function ro(e, t) {
4221
4232
  }
4222
4233
  function ti(e, t) {
4223
4234
  const r = ue(e);
4224
- if (kr(e))
4235
+ if (_r(e))
4225
4236
  return r;
4226
4237
  if (!Ie(e)) {
4227
4238
  let a = De(e);
@@ -4263,7 +4274,7 @@ const wf = {
4263
4274
  getScale: ot,
4264
4275
  isElement: be,
4265
4276
  isRTL: vf
4266
- }, xf = rf, _f = nf, kf = ef, Tf = Qu, If = (e, t, r) => {
4277
+ }, xf = rf, kf = nf, _f = ef, Tf = Qu, If = (e, t, r) => {
4267
4278
  const n = /* @__PURE__ */ new Map(), a = {
4268
4279
  platform: wf,
4269
4280
  ...r
@@ -4298,9 +4309,9 @@ function Ef(e, t, r) {
4298
4309
  }, [e, r, t]), n;
4299
4310
  }
4300
4311
  function Cf(e, t) {
4301
- const [r, n] = L(!1), a = M(null), o = M(null), s = X(() => {
4312
+ const [r, n] = L(!1), a = M(null), o = M(null), s = K(() => {
4302
4313
  n((l) => (!l && (!a.current || a.current === -1) && (a.current = window.setInterval(o.current, t)), !0));
4303
- }, [t]), i = X(() => {
4314
+ }, [t]), i = K(() => {
4304
4315
  n(!1), window.clearInterval(a.current || -1), a.current = -1;
4305
4316
  }, []);
4306
4317
  return P(() => (o.current = e, r && s(), i), [e, r, s, i]), { start: s, stop: i, active: r };
@@ -4359,8 +4370,8 @@ const qt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Nf = (
4359
4370
  className: o,
4360
4371
  tooltipClassName: s,
4361
4372
  arrowClassName: i
4362
- }), x = Mf({ delay: a }), w = X(async () => {
4363
- var k, _, b, E;
4373
+ }), x = Mf({ delay: a }), w = K(async () => {
4374
+ var _, k, b, E;
4364
4375
  if (l.current && c.current && u.current) {
4365
4376
  const {
4366
4377
  x: A,
@@ -4371,15 +4382,15 @@ const qt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Nf = (
4371
4382
  placement: r,
4372
4383
  middleware: [
4373
4384
  xf(10),
4374
- kf({
4385
+ _f({
4375
4386
  crossAxis: r.includes("-"),
4376
4387
  fallbackAxisSideDirection: "start"
4377
4388
  }),
4378
- _f({ padding: 5 }),
4389
+ kf({ padding: 5 }),
4379
4390
  Tf({ element: u.current })
4380
4391
  ]
4381
4392
  });
4382
- (k = c == null ? void 0 : c.current) != null && k.style && Object.assign(c.current.style, {
4393
+ (_ = c == null ? void 0 : c.current) != null && _.style && Object.assign(c.current.style, {
4383
4394
  left: qt(A),
4384
4395
  top: qt(S),
4385
4396
  ...x
@@ -4390,7 +4401,7 @@ const qt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Nf = (
4390
4401
  bottom: "top",
4391
4402
  left: "right"
4392
4403
  }[R.split("-")[0]];
4393
- (_ = u == null ? void 0 : u.current) != null && _.style && Object.assign(u.current.style, {
4404
+ (k = u == null ? void 0 : u.current) != null && k.style && Object.assign(u.current.style, {
4394
4405
  left: qt((b = $.arrow) == null ? void 0 : b.x),
4395
4406
  top: qt((E = $.arrow) == null ? void 0 : E.y),
4396
4407
  right: "",
@@ -4442,7 +4453,7 @@ const qt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Nf = (
4442
4453
  dispatch: n,
4443
4454
  setChatId: a,
4444
4455
  setInitialMessages: o
4445
- } = Y(de), { setInput: s, stop: i } = Je(), l = M(null), c = M(!1), u = () => {
4456
+ } = X(de), { setInput: s, stop: i } = Je(), l = M(null), c = M(!1), u = () => {
4446
4457
  a(je()), o([]), s(""), n({
4447
4458
  type: Lt,
4448
4459
  payload: {
@@ -4828,7 +4839,7 @@ function Yf() {
4828
4839
  const e = M(!1);
4829
4840
  return P(() => (e.current = !0, () => {
4830
4841
  e.current = !1;
4831
- }), []), X(() => e.current, []);
4842
+ }), []), K(() => e.current, []);
4832
4843
  }
4833
4844
  function Xf(e) {
4834
4845
  return pe(() => e.every((t) => t == null) ? () => {
@@ -4897,7 +4908,7 @@ const qf = {
4897
4908
  animated: T = !1,
4898
4909
  ...C
4899
4910
  }, I) => {
4900
- const k = jf({
4911
+ const _ = jf({
4901
4912
  type: Ir,
4902
4913
  mode: r,
4903
4914
  focusMode: n,
@@ -4914,7 +4925,7 @@ const qf = {
4914
4925
  radius: v,
4915
4926
  variant: x,
4916
4927
  animated: T
4917
- }), _ = Wf({ mode: r, raw: i, iconClassName: w }), b = Kf({ animated: T }), [E, A] = Kr(), [S, $] = Kr(), [R, V] = Kr(), F = M(0), O = M(null), z = Xf([I, O]);
4928
+ }), k = Wf({ mode: r, raw: i, iconClassName: w }), b = Kf({ animated: T }), [E, A] = Kr(), [S, $] = Kr(), [R, V] = Kr(), F = M(0), O = M(null), z = Xf([I, O]);
4918
4929
  return ie(() => {
4919
4930
  R && R.current && T && (F.current = V.width + Zf[f] + (l ? 0 : Qf));
4920
4931
  }, [V, R, f, l, T]), ie(() => {
@@ -4932,7 +4943,7 @@ const qf = {
4932
4943
  ni,
4933
4944
  {
4934
4945
  ref: z,
4935
- className: k,
4946
+ className: _,
4936
4947
  disabled: t,
4937
4948
  type: s,
4938
4949
  "aria-label": c || u,
@@ -4947,7 +4958,7 @@ const qf = {
4947
4958
  labelInnerClass: "pr-2"
4948
4959
  }
4949
4960
  ),
4950
- /* @__PURE__ */ d("span", { ref: R, className: _, children: e }),
4961
+ /* @__PURE__ */ d("span", { ref: R, className: k, children: e }),
4951
4962
  /* @__PURE__ */ d(
4952
4963
  lo,
4953
4964
  {
@@ -5187,19 +5198,19 @@ try {
5187
5198
  });
5188
5199
  } catch {
5189
5200
  }
5190
- const _t = "panel", Zt = "messagebox", ch = ({
5201
+ const kt = "panel", Zt = "messagebox", ch = ({
5191
5202
  className: e,
5192
5203
  kind: t,
5193
5204
  borderMode: r
5194
5205
  }) => ({
5195
5206
  main: g("prose prose-lighter flex flex-col bg-surface-medium", {
5196
- [`${so} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === _t,
5197
- [`${so} w-full sm:w-[95%] md:max-w-2xl`]: t === _t && !e,
5207
+ [`${so} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === kt,
5208
+ [`${so} w-full sm:w-[95%] md:max-w-2xl`]: t === kt && !e,
5198
5209
  [`${oo} rounded-lg border-2`]: t === Zt,
5199
5210
  [`${oo} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === Zt && !e,
5200
5211
  [`${e}`]: !!e,
5201
- "sm:border-border-dark": r === "dark" && t === _t,
5202
- "sm:border-border-accent": r === "light" && t === _t,
5212
+ "sm:border-border-dark": r === "dark" && t === kt,
5213
+ "sm:border-border-accent": r === "light" && t === kt,
5203
5214
  "border-border-dark": r === "dark" && t === Zt,
5204
5215
  "border-border-accent": r === "light" && t === Zt
5205
5216
  }),
@@ -5214,7 +5225,7 @@ const _t = "panel", Zt = "messagebox", ch = ({
5214
5225
  children: n,
5215
5226
  footer: a,
5216
5227
  borderMode: o = "light",
5217
- kind: s = _t,
5228
+ kind: s = kt,
5218
5229
  className: i
5219
5230
  }) => {
5220
5231
  const l = M(""), c = ch({ className: i, kind: s, borderMode: o });
@@ -5292,7 +5303,7 @@ const _t = "panel", Zt = "messagebox", ch = ({
5292
5303
  dispatch: r,
5293
5304
  setChatId: n,
5294
5305
  setInitialMessages: a
5295
- } = Y(de), [o, s] = L(!1), [i, l] = lt({
5306
+ } = X(de), [o, s] = L(!1), [i, l] = lt({
5296
5307
  key: it + Ol,
5297
5308
  initialValue: ""
5298
5309
  }), c = () => {
@@ -5379,7 +5390,7 @@ const _t = "panel", Zt = "messagebox", ch = ({
5379
5390
  focusMode: s = "system",
5380
5391
  ...i
5381
5392
  }, l) => {
5382
- const [c, u] = L(!1), [f, h] = L(!1), [m, y] = L(null), p = M([]), v = M([]), x = Y(gn), w = ms(), T = fc(), C = ps(), { floatingStyles: I, refs: k, context: _ } = cs({
5393
+ const [c, u] = L(!1), [f, h] = L(!1), [m, y] = L(null), p = M([]), v = M([]), x = X(gn), w = ms(), T = fc(), C = ps(), { floatingStyles: I, refs: _, context: k } = cs({
5383
5394
  nodeId: T,
5384
5395
  open: c,
5385
5396
  onOpenChange: (W) => {
@@ -5389,17 +5400,17 @@ const _t = "panel", Zt = "messagebox", ch = ({
5389
5400
  strategy: "fixed",
5390
5401
  middleware: [hc({ mainAxis: 10 }), mc(), pc()],
5391
5402
  whileElementsMounted: gc
5392
- }), b = ds(_, {
5403
+ }), b = ds(k, {
5393
5404
  event: "mousedown",
5394
5405
  toggle: !0,
5395
5406
  ignoreMouse: !1
5396
- }), E = fs(_, { role: "menu" }), A = us(_, { bubbles: !0 }), S = yc(_, {
5407
+ }), E = fs(k, { role: "menu" }), A = us(k, { bubbles: !0 }), S = yc(k, {
5397
5408
  listRef: p,
5398
5409
  activeIndex: m,
5399
5410
  nested: !1,
5400
5411
  onNavigate: y,
5401
5412
  loop: !0
5402
- }), $ = bc(_, {
5413
+ }), $ = bc(k, {
5403
5414
  listRef: v,
5404
5415
  onMatch: c ? y : void 0,
5405
5416
  activeIndex: m
@@ -5414,7 +5425,7 @@ const _t = "panel", Zt = "messagebox", ch = ({
5414
5425
  "aria-label": r,
5415
5426
  "data-open": c ? "" : void 0,
5416
5427
  "data-focus-inside": f ? "" : void 0,
5417
- ref: Bn([k.setReference, C.ref, l]),
5428
+ ref: Bn([_.setReference, C.ref, l]),
5418
5429
  ...R(
5419
5430
  x.getItemProps({
5420
5431
  ...i
@@ -5448,14 +5459,14 @@ const _t = "panel", Zt = "messagebox", ch = ({
5448
5459
  children: /* @__PURE__ */ d(wc, { elementsRef: p, labelsRef: v, children: c && /* @__PURE__ */ d(is, { children: /* @__PURE__ */ d(
5449
5460
  ls,
5450
5461
  {
5451
- context: _,
5462
+ context: k,
5452
5463
  modal: !1,
5453
5464
  initialFocus: 0,
5454
5465
  returnFocus: !0,
5455
5466
  children: /* @__PURE__ */ d(
5456
5467
  "div",
5457
5468
  {
5458
- ref: k.setFloating,
5469
+ ref: _.setFloating,
5459
5470
  className: "rounded-md bg-surface-light shadow-sm shadow-border-dark outline-none p-4 sm:p-2",
5460
5471
  style: I,
5461
5472
  ...V(),
@@ -5653,7 +5664,7 @@ const mh = (e) => {
5653
5664
  className: e,
5654
5665
  defaultPlacement: t = "top-start"
5655
5666
  }) => {
5656
- const { dispatch: r, setChatId: n, setInitialMessages: a } = Y(de), { dispatch: o } = Y(Wn), { getAccessToken: s, user: i } = me(), {
5667
+ const { dispatch: r, setChatId: n, setInitialMessages: a } = X(de), { dispatch: o } = X(Wn), { getAccessToken: s, user: i } = me(), {
5657
5668
  data: l,
5658
5669
  error: c,
5659
5670
  isLoading: u
@@ -5684,7 +5695,7 @@ const mh = (e) => {
5684
5695
  {
5685
5696
  mode: "dark",
5686
5697
  focusMode: "light",
5687
- trigger: /* @__PURE__ */ d(ye, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ d(kc, { size: $e }) }),
5698
+ trigger: /* @__PURE__ */ d(ye, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ d(_c, { size: $e }) }),
5688
5699
  defaultPlacement: t,
5689
5700
  children: [
5690
5701
  /* @__PURE__ */ d(si, { children: "Prompts" }),
@@ -5728,7 +5739,7 @@ const mh = (e) => {
5728
5739
  }) => {
5729
5740
  const { user: t, getAccessToken: r } = me(), {
5730
5741
  state: { usage: n, provider: a, privateChat: o }
5731
- } = Y(de), { messages: s, id: i } = Je(), [l, c] = L(!1), u = async (f) => {
5742
+ } = X(de), { messages: s, id: i } = Je(), [l, c] = L(!1), u = async (f) => {
5732
5743
  f.preventDefault();
5733
5744
  try {
5734
5745
  if (i && s && a) {
@@ -5810,7 +5821,7 @@ const mh = (e) => {
5810
5821
  }) => {
5811
5822
  const {
5812
5823
  state: { loading: t, streaming: r }
5813
- } = Y(de);
5824
+ } = X(de);
5814
5825
  return /* @__PURE__ */ d(
5815
5826
  qe,
5816
5827
  {
@@ -5842,7 +5853,7 @@ function vh(e) {
5842
5853
  vh(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
5843
5854
  `);
5844
5855
  var Ht = (e) => typeof e == "number" && !isNaN(e), Ye = (e) => typeof e == "string", Oe = (e) => typeof e == "function", wh = (e) => Ye(e) || Ht(e), yn = (e) => Ye(e) || Oe(e) ? e : null, xh = (e, t) => e === !1 || Ht(e) && e > 0 ? e : t, bn = (e) => vr(e) || Ye(e) || Oe(e) || Ht(e);
5845
- function _h(e, t, r = 300) {
5856
+ function kh(e, t, r = 300) {
5846
5857
  let { scrollHeight: n, style: a } = e;
5847
5858
  requestAnimationFrame(() => {
5848
5859
  a.minHeight = "initial", a.height = n + "px", a.transition = `all ${r}ms`, requestAnimationFrame(() => {
@@ -5860,7 +5871,7 @@ function ii({ enter: e, exit: t, appendPosition: r = !1, collapse: n = !0, colla
5860
5871
  p.classList.add(...v), p.addEventListener("animationend", x), p.addEventListener("animationcancel", x);
5861
5872
  }, []), P(() => {
5862
5873
  let p = c.current, v = () => {
5863
- p.removeEventListener("animationend", v), n ? _h(p, l, a) : l();
5874
+ p.removeEventListener("animationend", v), n ? kh(p, l, a) : l();
5864
5875
  };
5865
5876
  u || (i ? v() : (y.current = 1, p.className += ` ${m}`, p.addEventListener("animationend", v)));
5866
5877
  }, [u]), D.createElement(D.Fragment, null, o);
@@ -5872,7 +5883,7 @@ function uo(e, t) {
5872
5883
  function li(e, t, r = !1) {
5873
5884
  return vr(e) && !Ye(e.type) ? Pn(e, { closeToast: t.closeToast, toastProps: t, data: t.data, isPaused: r }) : Oe(e) ? e({ closeToast: t.closeToast, toastProps: t, data: t.data, isPaused: r }) : e;
5874
5885
  }
5875
- function kh({ closeToast: e, theme: t, ariaLabel: r = "close" }) {
5886
+ function _h({ closeToast: e, theme: t, ariaLabel: r = "close" }) {
5876
5887
  return D.createElement("button", { className: `Toastify__close-button Toastify__close-button--${t}`, type: "button", onClick: (n) => {
5877
5888
  n.stopPropagation(), e(!0);
5878
5889
  }, "aria-label": r }, D.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, D.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
@@ -5890,8 +5901,8 @@ function Eh(e, t, r) {
5890
5901
  let n = 1, a = 0, o = [], s = [], i = t, l = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Set(), u = (w) => (c.add(w), () => c.delete(w)), f = () => {
5891
5902
  s = Array.from(l.values()), c.forEach((w) => w());
5892
5903
  }, h = ({ containerId: w, toastId: T, updateId: C }) => {
5893
- let I = w ? w !== e : e !== 1, k = l.has(T) && C == null;
5894
- return I || k;
5904
+ let I = w ? w !== e : e !== 1, _ = l.has(T) && C == null;
5905
+ return I || _;
5895
5906
  }, m = (w, T) => {
5896
5907
  l.forEach((C) => {
5897
5908
  var I;
@@ -5911,14 +5922,14 @@ function Eh(e, t, r) {
5911
5922
  a -= o.length, o = [];
5912
5923
  }, x = (w) => {
5913
5924
  var T, C;
5914
- let { toastId: I, updateId: k } = w.props, _ = k == null;
5915
- w.staleId && l.delete(w.staleId), w.isActive = !0, l.set(I, w), f(), r(uo(w, _ ? "added" : "updated")), _ && ((C = (T = w.props).onOpen) == null || C.call(T));
5925
+ let { toastId: I, updateId: _ } = w.props, k = _ == null;
5926
+ w.staleId && l.delete(w.staleId), w.isActive = !0, l.set(I, w), f(), r(uo(w, k ? "added" : "updated")), k && ((C = (T = w.props).onOpen) == null || C.call(T));
5916
5927
  };
5917
5928
  return { id: e, props: i, observe: u, toggle: m, removeToast: p, toasts: l, clearQueue: v, buildToast: (w, T) => {
5918
5929
  if (h(T)) return;
5919
- let { toastId: C, updateId: I, data: k, staleId: _, delay: b } = T, E = I == null;
5930
+ let { toastId: C, updateId: I, data: _, staleId: k, delay: b } = T, E = I == null;
5920
5931
  E && a++;
5921
- let A = { ...i, style: i.toastStyle, key: n++, ...Object.fromEntries(Object.entries(T).filter(([$, R]) => R != null)), toastId: C, updateId: I, data: k, isIn: !1, className: yn(T.className || i.toastClassName), progressClassName: yn(T.progressClassName || i.progressClassName), autoClose: T.isLoading ? !1 : xh(T.autoClose, i.autoClose), closeToast($) {
5932
+ let A = { ...i, style: i.toastStyle, key: n++, ...Object.fromEntries(Object.entries(T).filter(([$, R]) => R != null)), toastId: C, updateId: I, data: _, isIn: !1, className: yn(T.className || i.toastClassName), progressClassName: yn(T.progressClassName || i.progressClassName), autoClose: T.isLoading ? !1 : xh(T.autoClose, i.autoClose), closeToast($) {
5922
5933
  l.get(C).removalReason = $, p(C);
5923
5934
  }, deleteToast() {
5924
5935
  let $ = l.get(C);
@@ -5931,7 +5942,7 @@ function Eh(e, t, r) {
5931
5942
  }
5932
5943
  } };
5933
5944
  A.closeButton = i.closeButton, T.closeButton === !1 || bn(T.closeButton) ? A.closeButton = T.closeButton : T.closeButton === !0 && (A.closeButton = bn(i.closeButton) ? i.closeButton : !0);
5934
- let S = { content: w, props: A, staleId: _ };
5945
+ let S = { content: w, props: A, staleId: k };
5935
5946
  i.limit && i.limit > 0 && a > i.limit && E ? o.push(S) : Ht(b) ? setTimeout(() => {
5936
5947
  x(S);
5937
5948
  }, b) : x(S);
@@ -6029,37 +6040,37 @@ function Nr(e, t) {
6029
6040
  function Sr(e) {
6030
6041
  return (t, r) => Wt(t, Nr(e, r));
6031
6042
  }
6032
- function K(e, t) {
6043
+ function j(e, t) {
6033
6044
  return Wt(e, Nr("default", t));
6034
6045
  }
6035
- K.loading = (e, t) => Wt(e, Nr("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t }));
6046
+ j.loading = (e, t) => Wt(e, Nr("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t }));
6036
6047
  function Ph(e, { pending: t, error: r, success: n }, a) {
6037
6048
  let o;
6038
- t && (o = Ye(t) ? K.loading(t, a) : K.loading(t.render, { ...a, ...t }));
6049
+ t && (o = Ye(t) ? j.loading(t, a) : j.loading(t.render, { ...a, ...t }));
6039
6050
  let s = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, i = (c, u, f) => {
6040
6051
  if (u == null) {
6041
- K.dismiss(o);
6052
+ j.dismiss(o);
6042
6053
  return;
6043
6054
  }
6044
6055
  let h = { type: c, ...s, ...a, data: f }, m = Ye(u) ? { render: u } : u;
6045
- return o ? K.update(o, { ...h, ...m }) : K(m.render, { ...h, ...m }), f;
6056
+ return o ? j.update(o, { ...h, ...m }) : j(m.render, { ...h, ...m }), f;
6046
6057
  }, l = Oe(e) ? e() : e;
6047
6058
  return l.then((c) => i("success", n, c)).catch((c) => i("error", r, c)), l;
6048
6059
  }
6049
- K.promise = Ph;
6050
- K.success = Sr("success");
6051
- K.info = Sr("info");
6052
- K.error = Sr("error");
6053
- K.warning = Sr("warning");
6054
- K.warn = K.warning;
6055
- K.dark = (e, t) => Wt(e, Nr("default", { theme: "dark", ...t }));
6060
+ j.promise = Ph;
6061
+ j.success = Sr("success");
6062
+ j.info = Sr("info");
6063
+ j.error = Sr("error");
6064
+ j.warning = Sr("warning");
6065
+ j.warn = j.warning;
6066
+ j.dark = (e, t) => Wt(e, Nr("default", { theme: "dark", ...t }));
6056
6067
  function Bh(e) {
6057
6068
  Ah(e);
6058
6069
  }
6059
- K.dismiss = Bh;
6060
- K.clearWaitingQueue = Rh;
6061
- K.isActive = ui;
6062
- K.update = (e, t = {}) => {
6070
+ j.dismiss = Bh;
6071
+ j.clearWaitingQueue = Rh;
6072
+ j.isActive = ui;
6073
+ j.update = (e, t = {}) => {
6063
6074
  let r = Sh(e, t);
6064
6075
  if (r) {
6065
6076
  let { props: n, content: a } = r, o = { delay: 100, ...n, ...t, toastId: t.toastId || e, updateId: ci() };
@@ -6068,12 +6079,12 @@ K.update = (e, t = {}) => {
6068
6079
  delete o.render, Wt(s, o);
6069
6080
  }
6070
6081
  };
6071
- K.done = (e) => {
6072
- K.update(e, { progress: 1 });
6082
+ j.done = (e) => {
6083
+ j.update(e, { progress: 1 });
6073
6084
  };
6074
- K.onChange = Oh;
6075
- K.play = (e) => hi(!0, e);
6076
- K.pause = (e) => hi(!1, e);
6085
+ j.onChange = Oh;
6086
+ j.play = (e) => hi(!0, e);
6087
+ j.pause = (e) => hi(!1, e);
6077
6088
  function Lh(e) {
6078
6089
  var t;
6079
6090
  let { subscribe: r, getSnapshot: n, setProps: a } = M($h(e)).current;
@@ -6102,16 +6113,16 @@ function Dh(e) {
6102
6113
  function m() {
6103
6114
  window.removeEventListener("focus", v), window.removeEventListener("blur", x);
6104
6115
  }
6105
- function y(_) {
6106
- if (e.draggable === !0 || e.draggable === _.pointerType) {
6116
+ function y(k) {
6117
+ if (e.draggable === !0 || e.draggable === k.pointerType) {
6107
6118
  w();
6108
6119
  let b = o.current;
6109
- s.canCloseOnClick = !0, s.canDrag = !0, b.style.transition = "none", e.draggableDirection === "x" ? (s.start = _.clientX, s.removalDistance = b.offsetWidth * (e.draggablePercent / 100)) : (s.start = _.clientY, s.removalDistance = b.offsetHeight * (e.draggablePercent === 80 ? e.draggablePercent * 1.5 : e.draggablePercent) / 100);
6120
+ s.canCloseOnClick = !0, s.canDrag = !0, b.style.transition = "none", e.draggableDirection === "x" ? (s.start = k.clientX, s.removalDistance = b.offsetWidth * (e.draggablePercent / 100)) : (s.start = k.clientY, s.removalDistance = b.offsetHeight * (e.draggablePercent === 80 ? e.draggablePercent * 1.5 : e.draggablePercent) / 100);
6110
6121
  }
6111
6122
  }
6112
- function p(_) {
6123
+ function p(k) {
6113
6124
  let { top: b, bottom: E, left: A, right: S } = o.current.getBoundingClientRect();
6114
- _.nativeEvent.type !== "touchend" && e.pauseOnHover && _.clientX >= A && _.clientX <= S && _.clientY >= b && _.clientY <= E ? x() : v();
6125
+ k.nativeEvent.type !== "touchend" && e.pauseOnHover && k.clientX >= A && k.clientX <= S && k.clientY >= b && k.clientY <= E ? x() : v();
6115
6126
  }
6116
6127
  function v() {
6117
6128
  r(!0);
@@ -6125,29 +6136,29 @@ function Dh(e) {
6125
6136
  function T() {
6126
6137
  document.removeEventListener("pointermove", C), document.removeEventListener("pointerup", I);
6127
6138
  }
6128
- function C(_) {
6139
+ function C(k) {
6129
6140
  let b = o.current;
6130
6141
  if (s.canDrag && b) {
6131
- s.didMove = !0, t && x(), e.draggableDirection === "x" ? s.delta = _.clientX - s.start : s.delta = _.clientY - s.start, s.start !== _.clientX && (s.canCloseOnClick = !1);
6142
+ s.didMove = !0, t && x(), e.draggableDirection === "x" ? s.delta = k.clientX - s.start : s.delta = k.clientY - s.start, s.start !== k.clientX && (s.canCloseOnClick = !1);
6132
6143
  let E = e.draggableDirection === "x" ? `${s.delta}px, var(--y)` : `0, calc(${s.delta}px + var(--y))`;
6133
6144
  b.style.transform = `translate3d(${E},0)`, b.style.opacity = `${1 - Math.abs(s.delta / s.removalDistance)}`;
6134
6145
  }
6135
6146
  }
6136
6147
  function I() {
6137
6148
  T();
6138
- let _ = o.current;
6139
- if (s.canDrag && s.didMove && _) {
6149
+ let k = o.current;
6150
+ if (s.canDrag && s.didMove && k) {
6140
6151
  if (s.canDrag = !1, Math.abs(s.delta) > s.removalDistance) {
6141
6152
  a(!0), e.closeToast(!0), e.collapseAll();
6142
6153
  return;
6143
6154
  }
6144
- _.style.transition = "transform 0.2s, opacity 0.2s", _.style.removeProperty("transform"), _.style.removeProperty("opacity");
6155
+ k.style.transition = "transform 0.2s, opacity 0.2s", k.style.removeProperty("transform"), k.style.removeProperty("opacity");
6145
6156
  }
6146
6157
  }
6147
- let k = { onPointerDown: y, onPointerUp: p };
6148
- return i && l && (k.onMouseEnter = x, e.stacked || (k.onMouseLeave = v)), f && (k.onClick = (_) => {
6149
- u && u(_), s.canCloseOnClick && c(!0);
6150
- }), { playToast: v, pauseToast: x, isRunning: t, preventExitTransition: n, toastRef: o, eventHandlers: k };
6158
+ let _ = { onPointerDown: y, onPointerUp: p };
6159
+ return i && l && (_.onMouseEnter = x, e.stacked || (_.onMouseLeave = v)), f && (_.onClick = (k) => {
6160
+ u && u(k), s.canCloseOnClick && c(!0);
6161
+ }), { playToast: v, pauseToast: x, isRunning: t, preventExitTransition: n, toastRef: o, eventHandlers: _ };
6151
6162
  }
6152
6163
  var Fh = typeof window < "u" ? ie : P, Ar = ({ theme: e, type: t, isLoading: r, ...n }) => D.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: e === "colored" ? "currentColor" : `var(--toastify-icon-color-${t})`, ...n });
6153
6164
  function zh(e) {
@@ -6171,8 +6182,8 @@ function Gh({ theme: e, type: t, isLoading: r, icon: n }) {
6171
6182
  return n === !1 || (Oe(n) ? a = n({ ...o, isLoading: r }) : vr(n) ? a = Pn(n, o) : r ? a = wn.spinner() : jh(t) && (a = wn[t](o))), a;
6172
6183
  }
6173
6184
  var Yh = (e) => {
6174
- let { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: a, playToast: o } = Dh(e), { closeButton: s, children: i, autoClose: l, onClick: c, type: u, hideProgressBar: f, closeToast: h, transition: m, position: y, className: p, style: v, progressClassName: x, updateId: w, role: T, progress: C, rtl: I, toastId: k, deleteToast: _, isIn: b, isLoading: E, closeOnClick: A, theme: S, ariaLabel: $ } = e, R = g("Toastify__toast", `Toastify__toast-theme--${S}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": A }), V = Oe(p) ? p({ rtl: I, position: y, type: u, defaultClassName: R }) : g(R, p), F = Gh(e), O = !!C || !l, z = { closeToast: h, type: u, theme: S }, U = null;
6175
- return s === !1 || (Oe(s) ? U = s(z) : vr(s) ? U = Pn(s, z) : U = kh(z)), D.createElement(m, { isIn: b, done: _, position: y, preventExitTransition: r, nodeRef: n, playToast: o }, D.createElement("div", { id: k, tabIndex: 0, onClick: c, "data-in": b, className: V, ...a, style: v, ref: n, ...b && { role: T, "aria-label": $ } }, F != null && D.createElement("div", { className: g("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !E }) }, F), li(i, e, !t), U, !e.customProgressBar && D.createElement(Th, { ...w && !O ? { key: `p-${w}` } : {}, rtl: I, theme: S, delay: l, isRunning: t, isIn: b, closeToast: h, hide: f, type: u, className: x, controlledProgress: O, progress: C || 0 })));
6185
+ let { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: a, playToast: o } = Dh(e), { closeButton: s, children: i, autoClose: l, onClick: c, type: u, hideProgressBar: f, closeToast: h, transition: m, position: y, className: p, style: v, progressClassName: x, updateId: w, role: T, progress: C, rtl: I, toastId: _, deleteToast: k, isIn: b, isLoading: E, closeOnClick: A, theme: S, ariaLabel: $ } = e, R = g("Toastify__toast", `Toastify__toast-theme--${S}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": A }), V = Oe(p) ? p({ rtl: I, position: y, type: u, defaultClassName: R }) : g(R, p), F = Gh(e), O = !!C || !l, z = { closeToast: h, type: u, theme: S }, U = null;
6186
+ return s === !1 || (Oe(s) ? U = s(z) : vr(s) ? U = Pn(s, z) : U = _h(z)), D.createElement(m, { isIn: b, done: k, position: y, preventExitTransition: r, nodeRef: n, playToast: o }, D.createElement("div", { id: _, tabIndex: 0, onClick: c, "data-in": b, className: V, ...a, style: v, ref: n, ...b && { role: T, "aria-label": $ } }, F != null && D.createElement("div", { className: g("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !E }) }, F), li(i, e, !t), U, !e.customProgressBar && D.createElement(Th, { ...w && !O ? { key: `p-${w}` } : {}, rtl: I, theme: S, delay: l, isRunning: t, isIn: b, closeToast: h, hide: f, type: u, className: x, controlledProgress: O, progress: C || 0 })));
6176
6187
  }, mi = (e, t = !1) => ({ enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t }), Xh = ii(mi("bounce", !0)), xn = ii(mi("slide", !0)), Jh = { position: "top-right", transition: Xh, 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" };
6177
6188
  function pi(e) {
6178
6189
  let t = { ...Jh, ...e }, r = e.stacked, [n, a] = L(!0), o = M(null), { getToastToRender: s, isToastActive: i, count: l } = Lh(t), { className: c, style: u, rtl: f, containerId: h, hotKeys: m } = t;
@@ -6181,16 +6192,16 @@ function pi(e) {
6181
6192
  return Oe(c) ? c({ position: v, rtl: f, defaultClassName: x }) : g(x, yn(c));
6182
6193
  }
6183
6194
  function p() {
6184
- r && (a(!0), K.play());
6195
+ r && (a(!0), j.play());
6185
6196
  }
6186
6197
  return Fh(() => {
6187
6198
  var v;
6188
6199
  if (r) {
6189
6200
  let x = o.current.querySelectorAll('[data-in="true"]'), w = 12, T = (v = t.position) == null ? void 0 : v.includes("top"), C = 0, I = 0;
6190
- Array.from(x).reverse().forEach((k, _) => {
6191
- let b = k;
6192
- b.classList.add("Toastify__toast--stacked"), _ > 0 && (b.dataset.collapsed = `${n}`), b.dataset.pos || (b.dataset.pos = T ? "top" : "bot");
6193
- let E = C * (n ? 0.2 : 1) + (n ? 0 : w * _);
6201
+ Array.from(x).reverse().forEach((_, k) => {
6202
+ let b = _;
6203
+ b.classList.add("Toastify__toast--stacked"), k > 0 && (b.dataset.collapsed = `${n}`), b.dataset.pos || (b.dataset.pos = T ? "top" : "bot");
6204
+ let E = C * (n ? 0.2 : 1) + (n ? 0 : w * k);
6194
6205
  b.style.setProperty("--y", `${T ? E : E * -1}px`), b.style.setProperty("--g", `${w}`), b.style.setProperty("--s", `${1 - (n ? I : 0)}`), C += b.offsetHeight, I += 0.025;
6195
6206
  });
6196
6207
  }
@@ -6198,13 +6209,13 @@ function pi(e) {
6198
6209
  function v(x) {
6199
6210
  var w;
6200
6211
  let T = o.current;
6201
- m(x) && ((w = T.querySelector('[tabIndex="0"]')) == null || w.focus(), a(!1), K.pause()), x.key === "Escape" && (document.activeElement === T || T != null && T.contains(document.activeElement)) && (a(!0), K.play());
6212
+ m(x) && ((w = T.querySelector('[tabIndex="0"]')) == null || w.focus(), a(!1), j.pause()), x.key === "Escape" && (document.activeElement === T || T != null && T.contains(document.activeElement)) && (a(!0), j.play());
6202
6213
  }
6203
6214
  return document.addEventListener("keydown", v), () => {
6204
6215
  document.removeEventListener("keydown", v);
6205
6216
  };
6206
6217
  }, [m]), D.createElement("section", { ref: o, className: "Toastify", id: h, onMouseEnter: () => {
6207
- r && (a(!1), K.pause());
6218
+ r && (a(!1), j.pause());
6208
6219
  }, onMouseLeave: p, "aria-live": "polite", "aria-atomic": "false", "aria-relevant": "additions text", "aria-label": t["aria-label"] }, s((v, x) => {
6209
6220
  let w = x.length ? { ...u } : { ...u, pointerEvents: "none" };
6210
6221
  return D.createElement("div", { tabIndex: -1, className: y(v), "data-stacked": r, style: w, key: `c-${v}` }, x.map(({ content: T, props: C }) => D.createElement(Yh, { ...C, stacked: r, collapseAll: p, isIn: i(C.toastId, C.containerId), key: `t-${C.key}` }, T)));
@@ -6218,7 +6229,7 @@ const qh = ({
6218
6229
  state: { provider: r, privateChat: n },
6219
6230
  setChatId: a,
6220
6231
  setInitialMessages: o
6221
- } = Y(de), { getAccessToken: s, user: i } = me(), { status: l } = Je(), {
6232
+ } = X(de), { getAccessToken: s, user: i } = me(), { status: l } = Je(), {
6222
6233
  data: c,
6223
6234
  error: u,
6224
6235
  isLoading: f,
@@ -6232,7 +6243,7 @@ const qh = ({
6232
6243
  provider: y,
6233
6244
  accessToken: await s(),
6234
6245
  username: (i == null ? void 0 : i.username) || ""
6235
- }), h({ ...c }), K.success(
6246
+ }), h({ ...c }), j.success(
6236
6247
  `${ts} ${y}`,
6237
6248
  rn({
6238
6249
  containerId: "toggle-provider",
@@ -6334,7 +6345,7 @@ const qh = ({
6334
6345
  }, sm = () => {
6335
6346
  const { getAccessToken: e } = me(), {
6336
6347
  state: { streaming: t, lastResetTimestamp: r }
6337
- } = Y(de), { state: n, dispatch: a } = Y(Wn), {
6348
+ } = X(de), { state: n, dispatch: a } = X(Wn), {
6338
6349
  input: o,
6339
6350
  setInput: s,
6340
6351
  handleInputChange: i,
@@ -6342,11 +6353,11 @@ const qh = ({
6342
6353
  setMessages: c,
6343
6354
  status: u
6344
6355
  } = Je({
6345
- onFinish: (I, { usage: k }) => {
6356
+ onFinish: (I, { usage: _ }) => {
6346
6357
  f({
6347
6358
  type: Cs,
6348
6359
  payload: {
6349
- usage: k.totalTokens
6360
+ usage: _.totalTokens
6350
6361
  }
6351
6362
  });
6352
6363
  },
@@ -6401,9 +6412,9 @@ const qh = ({
6401
6412
  break;
6402
6413
  }
6403
6414
  }, [u]);
6404
- const { dispatch: f } = Y(de), h = M(!1), m = M(0), y = M(null), p = M(null), v = At(), x = rm({
6415
+ const { dispatch: f } = X(de), h = M(!1), m = M(0), y = M(null), p = M(null), v = At(), x = rm({
6405
6416
  className: ""
6406
- }), w = X(() => {
6417
+ }), w = K(() => {
6407
6418
  if (!p.current)
6408
6419
  return;
6409
6420
  p.current.style.height = "auto";
@@ -6415,11 +6426,11 @@ const qh = ({
6415
6426
  p.current.style.height = `${I}px`, p.current.style.overflowY = "hidden";
6416
6427
  }, []), T = async (I) => {
6417
6428
  I.preventDefault(), Qt(p);
6418
- const k = await e();
6429
+ const _ = await e();
6419
6430
  l(I, {
6420
6431
  headers: {
6421
6432
  "Content-Type": "application/json",
6422
- authorization: `Bearer ${k}`
6433
+ authorization: `Bearer ${_}`
6423
6434
  }
6424
6435
  });
6425
6436
  }, C = (I) => {
@@ -6435,8 +6446,8 @@ const qh = ({
6435
6446
  ]), P(() => {
6436
6447
  if (n.prompt !== "") {
6437
6448
  const I = n.prompt.endsWith(":") && !n.prompt.endsWith(": ") ? n.prompt + " " : n.prompt;
6438
- I.indexOf(Na) !== -1 ? navigator.clipboard.readText().then((_) => {
6439
- s(I.replace(Na, _));
6449
+ I.indexOf(Na) !== -1 ? navigator.clipboard.readText().then((k) => {
6450
+ s(I.replace(Na, k));
6440
6451
  }) : s(I), !tn() && p.current && p.current.focus(), a({
6441
6452
  type: Zo
6442
6453
  });
@@ -6481,10 +6492,10 @@ const qh = ({
6481
6492
  }, er = "--sassy-bottom", mo = 16, po = 76, im = ({ isComponent: e }) => {
6482
6493
  const {
6483
6494
  state: { loading: t, streaming: r, restoring: n }
6484
- } = Y(de), {
6495
+ } = X(de), {
6485
6496
  state: { footerHeight: a, footerPosition: o },
6486
6497
  dispatch: s
6487
- } = Y(Kn), { messages: i } = Je(), { height: l } = qc(), { height: c } = Zc(), [u, f] = xs();
6498
+ } = X(Kn), { messages: i } = Je(), { height: l } = qc(), { height: c } = Zc(), [u, f] = xs();
6488
6499
  return P(() => {
6489
6500
  a !== f.height && s({
6490
6501
  type: Es,
@@ -6568,8 +6579,8 @@ const qh = ({
6568
6579
  header: Q.ABOUT.TITLE_CLIENT,
6569
6580
  className: "prose-dark dark:prose-lighter",
6570
6581
  children: ir(e, {
6571
- [Q.ABOUT.VERSION]: "8.4.2",
6572
- [Q.ABOUT.BUILD_TIMESTAMP]: "03/05/2025 02:02 PM EST"
6582
+ [Q.ABOUT.VERSION]: "8.4.3",
6583
+ [Q.ABOUT.BUILD_TIMESTAMP]: "03/05/2025 04:55 PM EST"
6573
6584
  })
6574
6585
  }
6575
6586
  ) }),
@@ -6594,37 +6605,37 @@ const qh = ({
6594
6605
  onOpenChange: r,
6595
6606
  mutate: n
6596
6607
  }) => {
6597
- var _;
6608
+ var k;
6598
6609
  const { user: a, getAccessToken: o } = me(), s = M(null), i = M({
6599
6610
  id: "",
6600
6611
  timestamp: "",
6601
6612
  message: ""
6602
6613
  }), [l, c] = L(!1), [u, f] = L(
6603
6614
  Aa + Ra
6604
- ), { state: h, dispatch: m } = Y(Hn), {
6615
+ ), { state: h, dispatch: m } = X(Hn), {
6605
6616
  state: { provider: y },
6606
6617
  setChatId: p,
6607
6618
  setInitialMessages: v
6608
- } = Y(de), { setInput: x } = Je(), [, w] = lt({
6619
+ } = X(de), { setInput: x } = Je(), [, w] = lt({
6609
6620
  key: it + rs,
6610
6621
  initialValue: h.sortDirection
6611
6622
  }), T = (b) => {
6612
6623
  switch (h.sortDirection) {
6613
- case _e.ASC:
6614
- w(_e.DESC), m({
6624
+ case ke.ASC:
6625
+ w(ke.DESC), m({
6615
6626
  type: Qr,
6616
6627
  payload: {
6617
6628
  sortedCell: b,
6618
- sortDirection: _e.DESC
6629
+ sortDirection: ke.DESC
6619
6630
  }
6620
6631
  });
6621
6632
  break;
6622
6633
  default:
6623
- w(_e.ASC), m({
6634
+ w(ke.ASC), m({
6624
6635
  type: Qr,
6625
6636
  payload: {
6626
6637
  sortedCell: b,
6627
- sortDirection: _e.ASC
6638
+ sortDirection: ke.ASC
6628
6639
  }
6629
6640
  });
6630
6641
  break;
@@ -6639,7 +6650,7 @@ const qh = ({
6639
6650
  userId: (a == null ? void 0 : a.username) || "",
6640
6651
  id: b.id
6641
6652
  }
6642
- }), n(""), K.error(
6653
+ }), n(""), j.error(
6643
6654
  zl,
6644
6655
  rn({
6645
6656
  autoClose: 2e3,
@@ -6667,7 +6678,7 @@ const qh = ({
6667
6678
  payload: {
6668
6679
  provider: V.data.provider
6669
6680
  }
6670
- }), K.success(
6681
+ }), j.success(
6671
6682
  `${ts} ${V.data.provider}`,
6672
6683
  rn({
6673
6684
  containerId: "toggle-provider",
@@ -6681,14 +6692,14 @@ const qh = ({
6681
6692
  }), x(""), p(b.id), v(V.data.messages), A(!1));
6682
6693
  } catch {
6683
6694
  }
6684
- }, k = X((b) => {
6695
+ }, _ = K((b) => {
6685
6696
  b[0].isIntersecting && f((A) => A + Aa);
6686
6697
  }, []);
6687
6698
  return P(() => {
6688
6699
  const b = {
6689
6700
  // root: null,
6690
6701
  rootMargin: "20px"
6691
- }, E = new IntersectionObserver(k, b);
6702
+ }, E = new IntersectionObserver(_, b);
6692
6703
  s.current && E.observe(s.current);
6693
6704
  }), /* @__PURE__ */ N(ne, { children: [
6694
6705
  /* @__PURE__ */ N(
@@ -6713,7 +6724,7 @@ const qh = ({
6713
6724
  /* @__PURE__ */ N("li", { children: [
6714
6725
  "First message:",
6715
6726
  " ",
6716
- /* @__PURE__ */ d("span", { className: "text-lg", children: (_ = i.current) == null ? void 0 : _.message })
6727
+ /* @__PURE__ */ d("span", { className: "text-lg", children: (k = i.current) == null ? void 0 : k.message })
6717
6728
  ] })
6718
6729
  ] })
6719
6730
  ]
@@ -6836,7 +6847,7 @@ const qh = ({
6836
6847
  const { getAccessToken: r, user: n } = me(), {
6837
6848
  state: { lastStreamingTimestamp: a },
6838
6849
  dispatch: o
6839
- } = Y(de), { state: s, dispatch: i } = Y(Hn), { data: l, mutate: c } = Ul({
6850
+ } = X(de), { state: s, dispatch: i } = X(Hn), { data: l, mutate: c } = Ul({
6840
6851
  keys: [
6841
6852
  n == null ? void 0 : n.username,
6842
6853
  s.searchString,
@@ -6989,7 +7000,7 @@ function ym() {
6989
7000
  const e = M(!1);
6990
7001
  return P(() => (e.current = !0, () => {
6991
7002
  e.current = !1;
6992
- }), []), X(() => e.current, []);
7003
+ }), []), K(() => e.current, []);
6993
7004
  }
6994
7005
  function bm(e) {
6995
7006
  return pe(() => e.every((t) => t == null) ? () => {
@@ -7050,7 +7061,7 @@ function xm(e) {
7050
7061
  return typeof r == "number" || typeof r == "string" ? `${n}${r}` : `${n}${t}`;
7051
7062
  }
7052
7063
  }
7053
- const vi = "SET_ANNOUNCEMENT", wi = "CLEAR_ANNOUNCEMENT", _m = {
7064
+ const vi = "SET_ANNOUNCEMENT", wi = "CLEAR_ANNOUNCEMENT", km = {
7054
7065
  alert: null,
7055
7066
  alertdialog: null,
7056
7067
  log: "polite",
@@ -7058,7 +7069,7 @@ const vi = "SET_ANNOUNCEMENT", wi = "CLEAR_ANNOUNCEMENT", _m = {
7058
7069
  progressbar: null,
7059
7070
  status: "polite",
7060
7071
  timer: "assertive"
7061
- }, km = (e, t) => {
7072
+ }, _m = (e, t) => {
7062
7073
  switch (t == null ? void 0 : t.type) {
7063
7074
  case vi:
7064
7075
  return {
@@ -7131,11 +7142,11 @@ function Em({
7131
7142
  visible: i,
7132
7143
  ...l
7133
7144
  }) {
7134
- const c = M(null), u = M(null), [f, h] = xt(km, {
7145
+ const c = M(null), u = M(null), [f, h] = xt(_m, {
7135
7146
  announcement: null
7136
7147
  });
7137
7148
  let m = r;
7138
- typeof m > "u" && (m = n ? _m[n] : "assertive"), P(() => {
7149
+ typeof m > "u" && (m = n ? km[n] : "assertive"), P(() => {
7139
7150
  Im({
7140
7151
  announcementTimeoutRef: c,
7141
7152
  announcementDelay: a,
@@ -7331,7 +7342,7 @@ const Cm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
7331
7342
  helperTextOffset: o,
7332
7343
  scrollHeight: e
7333
7344
  };
7334
- }, _n = D.forwardRef(
7345
+ }, kn = D.forwardRef(
7335
7346
  ({
7336
7347
  id: e,
7337
7348
  name: t,
@@ -7355,9 +7366,9 @@ const Cm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
7355
7366
  onFocus: T,
7356
7367
  onBlur: C,
7357
7368
  ...I
7358
- }, k) => {
7359
- var _;
7360
- const b = M(null), E = bm([k, b]), [A, S] = go(), [$, R] = go(), V = M(80), F = M(-25), O = M(null), z = M(30), U = M(null), W = xm({ id: e, prefix: `${bi}-` }), [ee, Ze] = L(0), [Ue, Qe] = L(0), [et, we] = L(
7369
+ }, _) => {
7370
+ var k;
7371
+ const b = M(null), E = bm([_, b]), [A, S] = go(), [$, R] = go(), V = M(80), F = M(-25), O = M(null), z = M(30), U = M(null), W = xm({ id: e, prefix: `${bi}-` }), [ee, Ze] = L(0), [Ue, Qe] = L(0), [et, we] = L(
7361
7372
  !!(!p && y)
7362
7373
  ), fe = `${t} error, ${y}`, ae = $m({
7363
7374
  className: o,
@@ -7374,19 +7385,19 @@ const Cm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
7374
7385
  value: c,
7375
7386
  initialControlledDelay: 20,
7376
7387
  defaultValue: u,
7377
- onChange: (j) => {
7388
+ onChange: (G) => {
7378
7389
  w && w({
7379
7390
  target: {
7380
- value: j
7391
+ value: G
7381
7392
  }
7382
7393
  });
7383
7394
  }
7384
- }), Pr = (j) => {
7385
- Ce(j.target.value);
7386
- }, H = (j) => {
7387
- p && y && we(!0), T && T(j);
7388
- }, Z = (j) => {
7389
- p && y && !oe && we(!1), C && C(j);
7395
+ }), Pr = (G) => {
7396
+ Ce(G.target.value);
7397
+ }, H = (G) => {
7398
+ p && y && we(!0), T && T(G);
7399
+ }, Z = (G) => {
7400
+ p && y && !oe && we(!1), C && C(G);
7390
7401
  };
7391
7402
  return ie(() => {
7392
7403
  S && S.width && Ze(S.width + 18 + 10);
@@ -7396,14 +7407,14 @@ const Cm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
7396
7407
  a || b && b.current && oe !== void 0 && (b.current.style.height = "inherit", b.current.style.height = b.current.scrollHeight + "px");
7397
7408
  }, [oe, a]), ie(() => {
7398
7409
  a || setTimeout(() => {
7399
- var j;
7400
- (j = O == null ? void 0 : O.current) == null || j.style.setProperty(
7410
+ var G;
7411
+ (G = O == null ? void 0 : O.current) == null || G.style.setProperty(
7401
7412
  "--av-text-area-wrapper-transition",
7402
7413
  oe ? "none" : "all 0.2s ease-out"
7403
7414
  );
7404
7415
  }, 0);
7405
7416
  }, [oe, a]), ie(() => {
7406
- var j, G;
7417
+ var G, Y;
7407
7418
  if (!a && b && b.current && oe !== void 0) {
7408
7419
  const { labelOffset: he, helperTextOffset: Ne, scrollHeight: Se } = Om({
7409
7420
  scrollHeight: b.current.scrollHeight,
@@ -7411,15 +7422,15 @@ const Cm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
7411
7422
  currentLabelOffset: F.current,
7412
7423
  currentHelperTextOffset: z.current
7413
7424
  });
7414
- he && (F.current = he, (j = O == null ? void 0 : O.current) == null || j.style.setProperty(
7425
+ he && (F.current = he, (G = O == null ? void 0 : O.current) == null || G.style.setProperty(
7415
7426
  "--av-text-area-label",
7416
7427
  `${he}px`
7417
- )), Ne && (z.current = Ne, (G = U == null ? void 0 : U.current) == null || G.style.setProperty(
7428
+ )), Ne && (z.current = Ne, (Y = U == null ? void 0 : U.current) == null || Y.style.setProperty(
7418
7429
  "--av-text-area-helper-text",
7419
7430
  `${Ne}px`
7420
7431
  )), V.current = Se || V.current;
7421
7432
  }
7422
- }, [oe, a]), R.width > 0 && ((_ = O == null ? void 0 : O.current) == null || _.style.setProperty(
7433
+ }, [oe, a]), R.width > 0 && ((k = O == null ? void 0 : O.current) == null || k.style.setProperty(
7423
7434
  "--tw-translate-x",
7424
7435
  `${12 + R.width + 5}px`
7425
7436
  )), /* @__PURE__ */ N("div", { className: ae.wrapper, children: [
@@ -7498,7 +7509,7 @@ const Cm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
7498
7509
  ] });
7499
7510
  }
7500
7511
  );
7501
- _n.displayName = "TextArea";
7512
+ kn.displayName = "TextArea";
7502
7513
  /*!
7503
7514
  @versini/ui-toggle v3.0.11
7504
7515
  © 2025 gizmette.com
@@ -7634,10 +7645,10 @@ const Vm = "av-toggle", Pm = () => g("peer", "h-6", "w-11", "rounded-full"), Bm
7634
7645
  }), [h, m] = L(""), [y, p] = L(""), [v, x] = lt({
7635
7646
  key: it + Jl,
7636
7647
  initialValue: !1
7637
- }), w = (_) => {
7638
- x(_);
7639
- }, T = async (_) => {
7640
- _.preventDefault();
7648
+ }), w = (k) => {
7649
+ x(k);
7650
+ }, T = async (k) => {
7651
+ k.preventDefault();
7641
7652
  try {
7642
7653
  await Nt({
7643
7654
  accessToken: await r(),
@@ -7659,14 +7670,14 @@ const Vm = "av-toggle", Pm = () => g("peer", "h-6", "w-11", "rounded-full"), Bm
7659
7670
  loadingLocation: !0
7660
7671
  }), p("...");
7661
7672
  try {
7662
- const _ = Date.now(), b = await ec(), E = await Nt({
7673
+ const k = Date.now(), b = await ec(), E = await Nt({
7663
7674
  accessToken: await r(),
7664
7675
  type: St.GET_LOCATION,
7665
7676
  params: {
7666
7677
  latitude: b.latitude,
7667
7678
  longitude: b.longitude
7668
7679
  }
7669
- }), S = Date.now() - _;
7680
+ }), S = Date.now() - k;
7670
7681
  if (S < 2e3 && await new Promise(($) => setTimeout($, 2e3 - S)), E.status === 200) {
7671
7682
  const { city: $, state: R, country: V, displayName: F } = E.data, O = $ && R && V ? `${$}, ${R}, ${V}` : F;
7672
7683
  c({
@@ -7680,8 +7691,8 @@ const Vm = "av-toggle", Pm = () => g("peer", "h-6", "w-11", "rounded-full"), Bm
7680
7691
  }
7681
7692
  }, I = () => {
7682
7693
  i({ ...a }), t(!1);
7683
- }, k = ({
7684
- enabled: _ = !1,
7694
+ }, _ = ({
7695
+ enabled: k = !1,
7685
7696
  privateChat: b = !1,
7686
7697
  clipboardAccess: E = !1,
7687
7698
  ...A
@@ -7689,7 +7700,7 @@ const Vm = "av-toggle", Pm = () => g("peer", "h-6", "w-11", "rounded-full"), Bm
7689
7700
  f((S) => {
7690
7701
  const $ = S.prompts, R = {
7691
7702
  ...A,
7692
- enabled: _,
7703
+ enabled: k,
7693
7704
  privateChat: b,
7694
7705
  clipboardAccess: E
7695
7706
  };
@@ -7735,8 +7746,8 @@ const Vm = "av-toggle", Pm = () => g("peer", "h-6", "w-11", "rounded-full"), Bm
7735
7746
  mode: "dark",
7736
7747
  variant: "danger",
7737
7748
  focusMode: "light",
7738
- onClick: async (_) => {
7739
- t(!1), await T(_);
7749
+ onClick: async (k) => {
7750
+ t(!1), await T(k);
7740
7751
  },
7741
7752
  children: "Save"
7742
7753
  }
@@ -7778,7 +7789,7 @@ const Vm = "av-toggle", Pm = () => g("peer", "h-6", "w-11", "rounded-full"), Bm
7778
7789
  " to know about you to provide better responses?"
7779
7790
  ] }),
7780
7791
  /* @__PURE__ */ d(
7781
- _n,
7792
+ kn,
7782
7793
  {
7783
7794
  mode: "alt-system",
7784
7795
  autoCapitalize: "off",
@@ -7787,8 +7798,8 @@ const Vm = "av-toggle", Pm = () => g("peer", "h-6", "w-11", "rounded-full"), Bm
7787
7798
  name: "customInstructions",
7788
7799
  label: "Custom Instructions",
7789
7800
  value: h,
7790
- onChange: (_) => {
7791
- m(_.target.value);
7801
+ onChange: (k) => {
7802
+ m(k.target.value);
7792
7803
  },
7793
7804
  helperText: "Press ENTER to add a new line."
7794
7805
  }
@@ -7804,14 +7815,14 @@ const Vm = "av-toggle", Pm = () => g("peer", "h-6", "w-11", "rounded-full"), Bm
7804
7815
  children: [
7805
7816
  /* @__PURE__ */ d("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
7806
7817
  /* @__PURE__ */ d(
7807
- _n,
7818
+ kn,
7808
7819
  {
7809
7820
  mode: "alt-system",
7810
7821
  name: "location",
7811
7822
  label: "Location",
7812
7823
  value: y,
7813
- onChange: (_) => {
7814
- p(_.target.value);
7824
+ onChange: (k) => {
7825
+ p(k.target.value);
7815
7826
  },
7816
7827
  helperText: "Enter your location or press auto-detect."
7817
7828
  }
@@ -7837,15 +7848,15 @@ const Vm = "av-toggle", Pm = () => g("peer", "h-6", "w-11", "rounded-full"), Bm
7837
7848
  className: "prose-dark dark:prose-lighter mt-4",
7838
7849
  children: [
7839
7850
  /* @__PURE__ */ d("p", { className: "text-sm", children: Ql }),
7840
- u.prompts && u.prompts.slice(0, 3).map((_) => /* @__PURE__ */ N(
7851
+ u.prompts && u.prompts.slice(0, 3).map((k) => /* @__PURE__ */ N(
7841
7852
  xe,
7842
7853
  {
7843
7854
  mode: "dark",
7844
7855
  noBorder: !0,
7845
- header: _.label.replace("...", ""),
7856
+ header: k.label.replace("...", ""),
7846
7857
  className: "prose-light mb-2",
7847
7858
  children: [
7848
- /* @__PURE__ */ d("p", { className: "text-sm", children: _.description }),
7859
+ /* @__PURE__ */ d("p", { className: "text-sm", children: k.description }),
7849
7860
  /* @__PURE__ */ d(
7850
7861
  tr,
7851
7862
  {
@@ -7853,14 +7864,14 @@ const Vm = "av-toggle", Pm = () => g("peer", "h-6", "w-11", "rounded-full"), Bm
7853
7864
  className: "mt-2",
7854
7865
  noBorder: !0,
7855
7866
  label: "Enabled",
7856
- name: _.slot.toString(),
7867
+ name: k.slot.toString(),
7857
7868
  onChange: (b) => {
7858
- k({
7859
- ..._,
7869
+ _({
7870
+ ...k,
7860
7871
  enabled: b
7861
7872
  });
7862
7873
  },
7863
- checked: _.enabled
7874
+ checked: k.enabled
7864
7875
  }
7865
7876
  ),
7866
7877
  /* @__PURE__ */ d(
@@ -7870,14 +7881,14 @@ const Vm = "av-toggle", Pm = () => g("peer", "h-6", "w-11", "rounded-full"), Bm
7870
7881
  className: "mt-2",
7871
7882
  noBorder: !0,
7872
7883
  label: "Temporary Chat (Private)",
7873
- name: `private-${_.slot.toString()}`,
7884
+ name: `private-${k.slot.toString()}`,
7874
7885
  onChange: (b) => {
7875
- k({
7876
- ..._,
7886
+ _({
7887
+ ...k,
7877
7888
  privateChat: b
7878
7889
  });
7879
7890
  },
7880
- checked: _.privateChat
7891
+ checked: k.privateChat
7881
7892
  }
7882
7893
  ),
7883
7894
  /* @__PURE__ */ d(
@@ -7887,19 +7898,19 @@ const Vm = "av-toggle", Pm = () => g("peer", "h-6", "w-11", "rounded-full"), Bm
7887
7898
  className: "mt-2",
7888
7899
  noBorder: !0,
7889
7900
  label: "Use Clipboard",
7890
- name: `clipboard-${_.slot.toString()}`,
7901
+ name: `clipboard-${k.slot.toString()}`,
7891
7902
  onChange: (b) => {
7892
- k({
7893
- ..._,
7903
+ _({
7904
+ ...k,
7894
7905
  clipboardAccess: b
7895
7906
  });
7896
7907
  },
7897
- checked: _.clipboardAccess
7908
+ checked: k.clipboardAccess
7898
7909
  }
7899
7910
  )
7900
7911
  ]
7901
7912
  },
7902
- `prompt-slot-${_.slot}`
7913
+ `prompt-slot-${k.slot}`
7903
7914
  ))
7904
7915
  ]
7905
7916
  }
@@ -7995,7 +8006,7 @@ const Vm = "av-toggle", Pm = () => g("peer", "h-6", "w-11", "rounded-full"), Bm
7995
8006
  onClick: () => {
7996
8007
  f(!u);
7997
8008
  },
7998
- icon: /* @__PURE__ */ d("div", { className: "text-red-700", children: /* @__PURE__ */ d(_c, { monotone: !0 }) })
8009
+ icon: /* @__PURE__ */ d("div", { className: "text-red-700", children: /* @__PURE__ */ d(kc, { monotone: !0 }) })
7999
8010
  }
8000
8011
  )
8001
8012
  ] })
@@ -8020,7 +8031,7 @@ try {
8020
8031
  });
8021
8032
  } catch {
8022
8033
  }
8023
- const or = "av-bubble", bo = "av-button", Rr = "icon", xi = "button", kn = "link", jm = ({
8034
+ const or = "av-bubble", bo = "av-button", Rr = "icon", xi = "button", _n = "link", jm = ({
8024
8035
  type: e,
8025
8036
  size: t,
8026
8037
  labelRight: r,
@@ -8031,7 +8042,7 @@ const or = "av-bubble", bo = "av-button", Rr = "icon", xi = "button", kn = "link
8031
8042
  const s = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
8032
8043
  switch (e) {
8033
8044
  case xi:
8034
- case kn:
8045
+ case _n:
8035
8046
  return g({
8036
8047
  [s]: t === "small",
8037
8048
  [i]: t === "medium",
@@ -8065,9 +8076,9 @@ const or = "av-bubble", bo = "av-button", Rr = "icon", xi = "button", kn = "link
8065
8076
  const a = "text-sm font-medium", o = "text-base font-medium", s = "text-lg font-medium";
8066
8077
  switch (e) {
8067
8078
  case xi:
8068
- case kn:
8079
+ case _n:
8069
8080
  return g({
8070
- "text-center": e === kn,
8081
+ "text-center": e === _n,
8071
8082
  [a]: t === "small",
8072
8083
  [o]: t === "medium",
8073
8084
  [s]: t === "large"
@@ -8316,7 +8327,7 @@ const or = "av-bubble", bo = "av-button", Rr = "icon", xi = "button", kn = "link
8316
8327
  )), ap = (e, t, r) => {
8317
8328
  var n;
8318
8329
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
8319
- }, _i = D.forwardRef((e, t) => {
8330
+ }, ki = D.forwardRef((e, t) => {
8320
8331
  const { onClick: r, noInternalClick: n = !1, ...a } = e;
8321
8332
  return /* @__PURE__ */ d(
8322
8333
  "button",
@@ -8329,12 +8340,12 @@ const or = "av-bubble", bo = "av-button", Rr = "icon", xi = "button", kn = "link
8329
8340
  }
8330
8341
  );
8331
8342
  });
8332
- _i.displayName = "BaseButton";
8343
+ ki.displayName = "BaseButton";
8333
8344
  function op() {
8334
8345
  const e = M(!1);
8335
8346
  return P(() => (e.current = !0, () => {
8336
8347
  e.current = !1;
8337
- }), []), X(() => e.current, []);
8348
+ }), []), K(() => e.current, []);
8338
8349
  }
8339
8350
  function sp(e) {
8340
8351
  return pe(() => e.every((t) => t == null) ? () => {
@@ -8403,7 +8414,7 @@ const lp = {
8403
8414
  animated: T = !1,
8404
8415
  ...C
8405
8416
  }, I) => {
8406
- const k = np({
8417
+ const _ = np({
8407
8418
  type: Rr,
8408
8419
  mode: r,
8409
8420
  focusMode: n,
@@ -8420,7 +8431,7 @@ const lp = {
8420
8431
  radius: v,
8421
8432
  variant: x,
8422
8433
  animated: T
8423
- }), _ = tp({ mode: r, raw: i, iconClassName: w }), b = rp({ animated: T }), [E, A] = Gr(), [S, $] = Gr(), [R, V] = Gr(), F = M(0), O = M(null), z = sp([I, O]);
8434
+ }), k = tp({ mode: r, raw: i, iconClassName: w }), b = rp({ animated: T }), [E, A] = Gr(), [S, $] = Gr(), [R, V] = Gr(), F = M(0), O = M(null), z = sp([I, O]);
8424
8435
  return ie(() => {
8425
8436
  R && R.current && T && (F.current = V.width + cp[f] + (l ? 0 : dp));
8426
8437
  }, [V, R, f, l, T]), ie(() => {
@@ -8435,10 +8446,10 @@ const lp = {
8435
8446
  f,
8436
8447
  T
8437
8448
  ]), /* @__PURE__ */ N(
8438
- _i,
8449
+ ki,
8439
8450
  {
8440
8451
  ref: z,
8441
- className: k,
8452
+ className: _,
8442
8453
  disabled: t,
8443
8454
  type: s,
8444
8455
  "aria-label": c || u,
@@ -8453,7 +8464,7 @@ const lp = {
8453
8464
  labelInnerClass: "pr-2"
8454
8465
  }
8455
8466
  ),
8456
- /* @__PURE__ */ d("span", { ref: R, className: _, children: e }),
8467
+ /* @__PURE__ */ d("span", { ref: R, className: k, children: e }),
8457
8468
  /* @__PURE__ */ d(
8458
8469
  vo,
8459
8470
  {
@@ -8526,7 +8537,7 @@ const up = D.forwardRef(
8526
8537
  }
8527
8538
  );
8528
8539
  up.displayName = "ButtonSort";
8529
- const ki = ({
8540
+ const _i = ({
8530
8541
  children: e,
8531
8542
  fill: t,
8532
8543
  viewBox: r,
@@ -8576,7 +8587,7 @@ const fp = ({
8576
8587
  monotone: n,
8577
8588
  ...a
8578
8589
  }) => /* @__PURE__ */ N(
8579
- ki,
8590
+ _i,
8580
8591
  {
8581
8592
  defaultViewBox: "0 0 448 512",
8582
8593
  size: "size-5",
@@ -8602,7 +8613,7 @@ const fp = ({
8602
8613
  monotone: n,
8603
8614
  ...a
8604
8615
  }) => /* @__PURE__ */ d(
8605
- ki,
8616
+ _i,
8606
8617
  {
8607
8618
  defaultViewBox: "0 0 512 512",
8608
8619
  size: "size-5",
@@ -8892,7 +8903,7 @@ const wo = "av-spinner", Ti = ({
8892
8903
  return g("not-prose text-copy-lighter", {
8893
8904
  truncate: !r
8894
8905
  });
8895
- }, _p = ({
8906
+ }, kp = ({
8896
8907
  mode: e,
8897
8908
  noBackground: t,
8898
8909
  variant: r
@@ -8922,7 +8933,7 @@ const wo = "av-spinner", Ti = ({
8922
8933
  if (r === "selected")
8923
8934
  return "bg-action-selected-dark";
8924
8935
  }
8925
- }, kp = ({
8936
+ }, _p = ({
8926
8937
  radius: e
8927
8938
  }) => g({
8928
8939
  "rounded-full": e === "large",
@@ -9067,8 +9078,8 @@ const wo = "av-spinner", Ti = ({
9067
9078
  noBackground: f,
9068
9079
  noTruncate: m
9069
9080
  }),
9070
- _p({ mode: n, noBackground: f, variant: h }),
9071
- kp({ radius: p }),
9081
+ kp({ mode: n, noBackground: f, variant: h }),
9082
+ _p({ radius: p }),
9072
9083
  vp({
9073
9084
  type: e,
9074
9085
  size: i,
@@ -9154,7 +9165,7 @@ function Rp() {
9154
9165
  const e = M(!1);
9155
9166
  return P(() => (e.current = !0, () => {
9156
9167
  e.current = !1;
9157
- }), []), X(() => e.current, []);
9168
+ }), []), K(() => e.current, []);
9158
9169
  }
9159
9170
  function Mp(e) {
9160
9171
  return pe(() => e.every((t) => t == null) ? () => {
@@ -9223,7 +9234,7 @@ const Op = {
9223
9234
  animated: T = !1,
9224
9235
  ...C
9225
9236
  }, I) => {
9226
- const k = Ii({
9237
+ const _ = Ii({
9227
9238
  type: Mr,
9228
9239
  mode: r,
9229
9240
  focusMode: n,
@@ -9240,7 +9251,7 @@ const Op = {
9240
9251
  radius: v,
9241
9252
  variant: x,
9242
9253
  animated: T
9243
- }), _ = Np({ mode: r, raw: i, iconClassName: w }), b = Sp({ animated: T }), [E, A] = Yr(), [S, $] = Yr(), [R, V] = Yr(), F = M(0), O = M(null), z = Mp([I, O]);
9254
+ }), k = Np({ mode: r, raw: i, iconClassName: w }), b = Sp({ animated: T }), [E, A] = Yr(), [S, $] = Yr(), [R, V] = Yr(), F = M(0), O = M(null), z = Mp([I, O]);
9244
9255
  return ie(() => {
9245
9256
  R && R.current && T && (F.current = V.width + Vp[f] + (l ? 0 : Pp));
9246
9257
  }, [V, R, f, l, T]), ie(() => {
@@ -9258,14 +9269,14 @@ const Op = {
9258
9269
  ra,
9259
9270
  {
9260
9271
  ref: z,
9261
- className: k,
9272
+ className: _,
9262
9273
  disabled: t,
9263
9274
  type: s,
9264
9275
  "aria-label": c || u,
9265
9276
  ...C,
9266
9277
  children: [
9267
9278
  /* @__PURE__ */ d(
9268
- _o,
9279
+ ko,
9269
9280
  {
9270
9281
  label: m,
9271
9282
  labelRef: S,
@@ -9273,9 +9284,9 @@ const Op = {
9273
9284
  labelInnerClass: "pr-2"
9274
9285
  }
9275
9286
  ),
9276
- /* @__PURE__ */ d("span", { ref: R, className: _, children: e }),
9287
+ /* @__PURE__ */ d("span", { ref: R, className: k, children: e }),
9277
9288
  /* @__PURE__ */ d(
9278
- _o,
9289
+ ko,
9279
9290
  {
9280
9291
  label: h,
9281
9292
  labelRef: E,
@@ -9287,7 +9298,7 @@ const Op = {
9287
9298
  }
9288
9299
  );
9289
9300
  }
9290
- ), _o = ({
9301
+ ), ko = ({
9291
9302
  labelRef: e,
9292
9303
  labelClass: t,
9293
9304
  label: r,
@@ -9569,17 +9580,17 @@ const J = {
9569
9580
  // in seconds
9570
9581
  minDamping: 0.05,
9571
9582
  maxDamping: 1
9572
- }, ko = 1e-3;
9583
+ }, _o = 1e-3;
9573
9584
  function jp({ duration: e = J.duration, bounce: t = J.bounce, velocity: r = J.velocity, mass: n = J.mass }) {
9574
9585
  let a, o;
9575
9586
  Kt(e <= /* @__PURE__ */ Te(J.maxDuration), "Spring duration must be 10 seconds or less");
9576
9587
  let s = 1 - t;
9577
9588
  s = Xe(J.minDamping, J.maxDamping, s), e = Xe(J.minDuration, J.maxDuration, /* @__PURE__ */ Me(e)), s < 1 ? (a = (c) => {
9578
9589
  const u = c * s, f = u * e, h = u - r, m = In(c, s), y = Math.exp(-f);
9579
- return ko - h / m * y;
9590
+ return _o - h / m * y;
9580
9591
  }, o = (c) => {
9581
9592
  const f = c * s * e, h = f * r + r, m = Math.pow(s, 2) * Math.pow(c, 2) * e, y = Math.exp(-f), p = In(Math.pow(c, 2), s);
9582
- return (-a(c) + ko > 0 ? -1 : 1) * ((h - m) * y) / p;
9593
+ return (-a(c) + _o > 0 ? -1 : 1) * ((h - m) * y) / p;
9583
9594
  }) : (a = (c) => {
9584
9595
  const u = Math.exp(-c * e), f = (c - r) * e + 1;
9585
9596
  return -1e-3 + u * f;
@@ -9660,36 +9671,36 @@ function oa(e = J.visualDuration, t = J.bounce) {
9660
9671
  let T;
9661
9672
  if (p < 1) {
9662
9673
  const I = In(x, p);
9663
- T = (k) => {
9664
- const _ = Math.exp(-p * x * k);
9665
- return s - _ * ((y + p * x * v) / I * Math.sin(I * k) + v * Math.cos(I * k));
9674
+ T = (_) => {
9675
+ const k = Math.exp(-p * x * _);
9676
+ return s - k * ((y + p * x * v) / I * Math.sin(I * _) + v * Math.cos(I * _));
9666
9677
  };
9667
9678
  } else if (p === 1)
9668
9679
  T = (I) => s - Math.exp(-x * I) * (v + (y + x * v) * I);
9669
9680
  else {
9670
9681
  const I = x * Math.sqrt(p * p - 1);
9671
- T = (k) => {
9672
- const _ = Math.exp(-p * x * k), b = Math.min(I * k, 300);
9673
- return s - _ * ((y + p * x * v) * Math.sinh(b) + I * v * Math.cosh(b)) / I;
9682
+ T = (_) => {
9683
+ const k = Math.exp(-p * x * _), b = Math.min(I * _, 300);
9684
+ return s - k * ((y + p * x * v) * Math.sinh(b) + I * v * Math.cosh(b)) / I;
9674
9685
  };
9675
9686
  }
9676
9687
  const C = {
9677
9688
  calculatedDuration: m && f || null,
9678
9689
  next: (I) => {
9679
- const k = T(I);
9690
+ const _ = T(I);
9680
9691
  if (m)
9681
9692
  i.done = I >= f;
9682
9693
  else {
9683
- let _ = 0;
9684
- p < 1 && (_ = I === 0 ? /* @__PURE__ */ Te(y) : Ri(T, I, k));
9685
- const b = Math.abs(_) <= n, E = Math.abs(s - k) <= a;
9694
+ let k = 0;
9695
+ p < 1 && (k = I === 0 ? /* @__PURE__ */ Te(y) : Ri(T, I, _));
9696
+ const b = Math.abs(k) <= n, E = Math.abs(s - _) <= a;
9686
9697
  i.done = b && E;
9687
9698
  }
9688
- return i.value = i.done ? s : k, i;
9699
+ return i.value = i.done ? s : _, i;
9689
9700
  },
9690
9701
  toString: () => {
9691
- const I = Math.min(aa(C), ur), k = Si((_) => C.next(I * _).value, I, 30);
9692
- return I + "ms " + k;
9702
+ const I = Math.min(aa(C), ur), _ = Si((k) => C.next(I * k).value, I, 30);
9703
+ return I + "ms " + _;
9693
9704
  }
9694
9705
  };
9695
9706
  return C;
@@ -9783,10 +9794,10 @@ function lg(e, { defaultTransition: t = {}, ...r } = {}, n, a) {
9783
9794
  let [p, v, x = {}] = y;
9784
9795
  x.at !== void 0 && (f = Io(f, x.at, u, c));
9785
9796
  let w = 0;
9786
- const T = (C, I, k, _ = 0, b = 0) => {
9797
+ const T = (C, I, _, k = 0, b = 0) => {
9787
9798
  const E = cg(C), { delay: A = 0, times: S = Vi(E), type: $ = "keyframes", repeat: R, repeatType: V, repeatDelay: F = 0, ...O } = I;
9788
9799
  let { ease: z = t.ease || "easeOut", duration: U } = I;
9789
- const W = typeof A == "function" ? A(_, b) : A, ee = E.length, Ze = Or($) ? $ : a == null ? void 0 : a[$];
9800
+ const W = typeof A == "function" ? A(k, b) : A, ee = E.length, Ze = Or($) ? $ : a == null ? void 0 : a[$];
9790
9801
  if (ee <= 2 && Ze) {
9791
9802
  let we = 100;
9792
9803
  if (ee === 2 && fg(E)) {
@@ -9815,18 +9826,18 @@ function lg(e, { defaultTransition: t = {}, ...r } = {}, n, a) {
9815
9826
  ag(S, R);
9816
9827
  }
9817
9828
  const et = Ue + U;
9818
- ng(k, E, z, S, Ue, et), w = Math.max(W + U, w), h = Math.max(et, h);
9829
+ ng(_, E, z, S, Ue, et), w = Math.max(W + U, w), h = Math.max(et, h);
9819
9830
  };
9820
9831
  if (ce(p)) {
9821
9832
  const C = Eo(p, i);
9822
9833
  T(v, x, Co("default", C));
9823
9834
  } else {
9824
9835
  const C = Pi(p, v, n, l), I = C.length;
9825
- for (let k = 0; k < I; k++) {
9836
+ for (let _ = 0; _ < I; _++) {
9826
9837
  v = v, x = x;
9827
- const _ = C[k], b = Eo(_, i);
9838
+ const k = C[_], b = Eo(k, i);
9828
9839
  for (const E in v)
9829
- T(v[E], dg(x, E), Co(E, b), k, I);
9840
+ T(v[E], dg(x, E), Co(E, b), _, I);
9830
9841
  }
9831
9842
  }
9832
9843
  u = f, f += w;
@@ -9837,8 +9848,8 @@ function lg(e, { defaultTransition: t = {}, ...r } = {}, n, a) {
9837
9848
  v.sort(og);
9838
9849
  const x = [], w = [], T = [];
9839
9850
  for (let I = 0; I < v.length; I++) {
9840
- const { at: k, value: _, easing: b } = v[I];
9841
- x.push(_), w.push(/* @__PURE__ */ $r(0, h, k)), T.push(b || "easeOut");
9851
+ const { at: _, value: k, easing: b } = v[I];
9852
+ x.push(k), w.push(/* @__PURE__ */ $r(0, h, _)), T.push(b || "easeOut");
9842
9853
  }
9843
9854
  w[0] !== 0 && (w.unshift(0), x.unshift(x[0]), T.unshift(sg)), w[w.length - 1] !== 1 && (w.push(1), x.push(null)), s.has(y) || s.set(y, {
9844
9855
  keyframes: {},
@@ -9970,7 +9981,7 @@ function bg(e, t) {
9970
9981
  };
9971
9982
  return { schedule: rr.reduce((x, w) => {
9972
9983
  const T = s[w];
9973
- return x[w] = (C, I = !1, k = !1) => (r || y(), T.schedule(C, I, k)), x;
9984
+ return x[w] = (C, I = !1, _ = !1) => (r || y(), T.schedule(C, I, _)), x;
9974
9985
  }, {}), cancel: (x) => {
9975
9986
  for (let w = 0; w < rr.length; w++)
9976
9987
  s[rr[w]].cancel(x);
@@ -10231,20 +10242,20 @@ function zi(e, t, r, n) {
10231
10242
  }
10232
10243
  return t;
10233
10244
  }
10234
- function _g(e, t, r) {
10245
+ function kg(e, t, r) {
10235
10246
  const n = e.getProps();
10236
10247
  return zi(n, t, n.custom, e);
10237
10248
  }
10238
- function kg(e, t, r) {
10249
+ function _g(e, t, r) {
10239
10250
  e.hasValue(t) ? e.getValue(t).set(r) : e.addValue(t, Vt(r));
10240
10251
  }
10241
10252
  function Tg(e, t) {
10242
- const r = _g(e, t);
10253
+ const r = kg(e, t);
10243
10254
  let { transitionEnd: n = {}, transition: a = {}, ...o } = r || {};
10244
10255
  o = { ...o, ...n };
10245
10256
  for (const s in o) {
10246
10257
  const i = mg(o[s]);
10247
- kg(e, s, i);
10258
+ _g(e, s, i);
10248
10259
  }
10249
10260
  }
10250
10261
  function Ig(e) {
@@ -10283,20 +10294,20 @@ const hr = /* @__PURE__ */ Rg(() => {
10283
10294
  function Ui(e) {
10284
10295
  return !!(typeof e == "function" && hr() || !e || typeof e == "string" && (e in Cn || hr()) || ca(e) || Array.isArray(e) && e.every(Ui));
10285
10296
  }
10286
- const kt = ([e, t, r, n]) => `cubic-bezier(${e}, ${t}, ${r}, ${n})`, Cn = {
10297
+ const _t = ([e, t, r, n]) => `cubic-bezier(${e}, ${t}, ${r}, ${n})`, Cn = {
10287
10298
  linear: "linear",
10288
10299
  ease: "ease",
10289
10300
  easeIn: "ease-in",
10290
10301
  easeOut: "ease-out",
10291
10302
  easeInOut: "ease-in-out",
10292
- circIn: /* @__PURE__ */ kt([0, 0.65, 0.55, 1]),
10293
- circOut: /* @__PURE__ */ kt([0.55, 0, 1, 0.45]),
10294
- backIn: /* @__PURE__ */ kt([0.31, 0.01, 0.66, -0.59]),
10295
- backOut: /* @__PURE__ */ kt([0.33, 1.53, 0.69, 0.99])
10303
+ circIn: /* @__PURE__ */ _t([0, 0.65, 0.55, 1]),
10304
+ circOut: /* @__PURE__ */ _t([0.55, 0, 1, 0.45]),
10305
+ backIn: /* @__PURE__ */ _t([0.31, 0.01, 0.66, -0.59]),
10306
+ backOut: /* @__PURE__ */ _t([0.33, 1.53, 0.69, 0.99])
10296
10307
  };
10297
10308
  function Hi(e, t) {
10298
10309
  if (e)
10299
- return typeof e == "function" && hr() ? Si(e, t) : ca(e) ? kt(e) : Array.isArray(e) ? e.map((r) => Hi(r, t) || Cn.easeOut) : Cn[e];
10310
+ return typeof e == "function" && hr() ? Si(e, t) : ca(e) ? _t(e) : Array.isArray(e) ? e.map((r) => Hi(r, t) || Cn.easeOut) : Cn[e];
10300
10311
  }
10301
10312
  const Wi = (e, t, r) => (((1 - 3 * r + 3 * t) * e + (3 * r - 6 * t)) * e + 3 * t) * e, Mg = 1e-7, $g = 12;
10302
10313
  function Og(e, t, r, n, a) {
@@ -10866,14 +10877,14 @@ const zo = (e, t) => {
10866
10877
  const a = { ...r };
10867
10878
  return (o) => (a.red = qr(r.red, n.red, o), a.green = qr(r.green, n.green, o), a.blue = qr(r.blue, n.blue, o), a.alpha = jt(r.alpha, n.alpha, o), We.transform(a));
10868
10879
  }, x0 = (e, t) => (r) => t(e(r)), ba = (...e) => e.reduce(x0), Mn = /* @__PURE__ */ new Set(["none", "hidden"]);
10869
- function _0(e, t) {
10880
+ function k0(e, t) {
10870
10881
  return Mn.has(e) ? (r) => r <= 0 ? e : t : (r) => r >= 1 ? t : e;
10871
10882
  }
10872
- function k0(e, t) {
10883
+ function _0(e, t) {
10873
10884
  return (r) => jt(e, t, r);
10874
10885
  }
10875
10886
  function va(e) {
10876
- return typeof e == "number" ? k0 : typeof e == "string" ? ya(e) ? mr : se.test(e) ? zo : E0 : Array.isArray(e) ? ml : typeof e == "object" ? se.test(e) ? zo : T0 : mr;
10887
+ return typeof e == "number" ? _0 : typeof e == "string" ? ya(e) ? mr : se.test(e) ? zo : E0 : Array.isArray(e) ? ml : typeof e == "object" ? se.test(e) ? zo : T0 : mr;
10877
10888
  }
10878
10889
  function ml(e, t) {
10879
10890
  const r = [...e], n = r.length, a = e.map((o, s) => va(o)(o, t[s]));
@@ -10904,7 +10915,7 @@ function I0(e, t) {
10904
10915
  }
10905
10916
  const E0 = (e, t) => {
10906
10917
  const r = bt.createTransformer(t), n = Bt(e), a = Bt(t);
10907
- return n.indexes.var.length === a.indexes.var.length && n.indexes.color.length === a.indexes.color.length && n.indexes.number.length >= a.indexes.number.length ? Mn.has(e) && !a.values.length || Mn.has(t) && !n.values.length ? _0(e, t) : ba(ml(I0(n, a), a.values), r) : (Kt(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), mr(e, t));
10918
+ return n.indexes.var.length === a.indexes.var.length && n.indexes.color.length === a.indexes.color.length && n.indexes.number.length >= a.indexes.number.length ? Mn.has(e) && !a.values.length || Mn.has(t) && !n.values.length ? k0(e, t) : ba(ml(I0(n, a), a.values), r) : (Kt(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), mr(e, t));
10908
10919
  };
10909
10920
  function pl(e, t, r) {
10910
10921
  return typeof e == "number" && typeof t == "number" && typeof r == "number" ? jt(e, t, r) : va(e)(e, t);
@@ -10921,9 +10932,9 @@ function Uo({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 3
10921
10932
  const E = w(b), A = T(b);
10922
10933
  h.done = Math.abs(E) <= c, h.value = h.done ? x : A;
10923
10934
  };
10924
- let I, k;
10925
- const _ = (b) => {
10926
- m(h.value) && (I = b, k = oa({
10935
+ let I, _;
10936
+ const k = (b) => {
10937
+ m(h.value) && (I = b, _ = oa({
10927
10938
  keyframes: [h.value, y(h.value)],
10928
10939
  velocity: Ri(T, b, h.value),
10929
10940
  // TODO: This should be passing * 1000
@@ -10933,11 +10944,11 @@ function Uo({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 3
10933
10944
  restSpeed: u
10934
10945
  }));
10935
10946
  };
10936
- return _(0), {
10947
+ return k(0), {
10937
10948
  calculatedDuration: null,
10938
10949
  next: (b) => {
10939
10950
  let E = !1;
10940
- return !k && I === void 0 && (E = !0, C(b), _(b)), I !== void 0 && b >= I ? k.next(b - I) : (!E && C(b), h);
10951
+ return !_ && I === void 0 && (E = !0, C(b), k(b)), I !== void 0 && b >= I ? _.next(b - I) : (!E && C(b), h);
10941
10952
  }
10942
10953
  };
10943
10954
  }
@@ -11095,10 +11106,10 @@ class wa extends hl {
11095
11106
  }
11096
11107
  const I = w ? { done: !1, value: l[0] } : C.next(T);
11097
11108
  i && (I.value = i(I.value));
11098
- let { done: k } = I;
11099
- !w && c !== null && (k = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
11100
- const _ = this.holdTime === null && (this.state === "finished" || this.state === "running" && k);
11101
- return _ && a !== void 0 && (I.value = Vr(l, this.options, a)), v && v(I.value), _ && this.finish(), I;
11109
+ let { done: _ } = I;
11110
+ !w && c !== null && (_ = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
11111
+ const k = this.holdTime === null && (this.state === "finished" || this.state === "running" && _);
11112
+ return k && a !== void 0 && (I.value = Vr(l, this.options, a)), v && v(I.value), k && this.finish(), I;
11102
11113
  }
11103
11114
  get duration() {
11104
11115
  const { resolved: t } = this;
@@ -11740,7 +11751,7 @@ class xl {
11740
11751
  this.events[t] && this.events[t].notify(...r);
11741
11752
  }
11742
11753
  }
11743
- class _l extends xl {
11754
+ class kl extends xl {
11744
11755
  constructor() {
11745
11756
  super(...arguments), this.KeyframeResolver = fl;
11746
11757
  }
@@ -11761,7 +11772,7 @@ class _l extends xl {
11761
11772
  }));
11762
11773
  }
11763
11774
  }
11764
- const kl = (e, t) => t && typeof e == "number" ? t.transform(e) : e, ly = {
11775
+ const _l = (e, t) => t && typeof e == "number" ? t.transform(e) : e, ly = {
11765
11776
  x: "translateX",
11766
11777
  y: "translateY",
11767
11778
  z: "translateZ",
@@ -11775,7 +11786,7 @@ function dy(e, t, r) {
11775
11786
  continue;
11776
11787
  let l = !0;
11777
11788
  if (typeof i == "number" ? l = i === (s.startsWith("scale") ? 1 : 0) : l = parseFloat(i) === 0, !l || r) {
11778
- const c = kl(i, ma[s]);
11789
+ const c = _l(i, ma[s]);
11779
11790
  if (!l) {
11780
11791
  a = !1;
11781
11792
  const u = ly[s] || s;
@@ -11798,7 +11809,7 @@ function Tl(e, t, r) {
11798
11809
  a[l] = c;
11799
11810
  continue;
11800
11811
  } else {
11801
- const u = kl(c, ma[l]);
11812
+ const u = _l(c, ma[l]);
11802
11813
  l.startsWith("origin") ? (i = !0, o[l] = u) : n[l] = u;
11803
11814
  }
11804
11815
  }
@@ -11915,7 +11926,7 @@ function xy(e, t, r) {
11915
11926
  }
11916
11927
  return n;
11917
11928
  }
11918
- class _y extends _l {
11929
+ class ky extends kl {
11919
11930
  constructor() {
11920
11931
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = xa, this.updateDimensions = () => {
11921
11932
  this.current && !this.renderState.dimensions && yy(this.current, this.renderState);
@@ -11947,7 +11958,7 @@ class _y extends _l {
11947
11958
  this.isSVGTag = gy(t.tagName), super.mount(t);
11948
11959
  }
11949
11960
  }
11950
- function ky({ top: e, left: t, right: r, bottom: n }) {
11961
+ function _y({ top: e, left: t, right: r, bottom: n }) {
11951
11962
  return {
11952
11963
  x: { min: t, max: r },
11953
11964
  y: { min: e, max: n }
@@ -11965,12 +11976,12 @@ function Ty(e, t) {
11965
11976
  };
11966
11977
  }
11967
11978
  function Iy(e, t) {
11968
- return ky(Ty(e.getBoundingClientRect(), t));
11979
+ return _y(Ty(e.getBoundingClientRect(), t));
11969
11980
  }
11970
11981
  function Ey(e) {
11971
11982
  return window.getComputedStyle(e);
11972
11983
  }
11973
- class Cy extends _l {
11984
+ class Cy extends kl {
11974
11985
  constructor() {
11975
11986
  super(...arguments), this.type = "html", this.renderInstance = El;
11976
11987
  }
@@ -12039,7 +12050,7 @@ function Ay(e) {
12039
12050
  },
12040
12051
  latestValues: {}
12041
12052
  }
12042
- }, r = q0(e) ? new _y(t) : new Cy(t);
12053
+ }, r = q0(e) ? new ky(t) : new Cy(t);
12043
12054
  r.mount(e), Ot.set(e, r);
12044
12055
  }
12045
12056
  function Ry(e) {
@@ -12111,7 +12122,7 @@ function Ly(e) {
12111
12122
  const Jo = dc(
12112
12123
  () => import(
12113
12124
  /* webpackChunkName: "LazyMessageAssistant" */
12114
- "./ChatBubbleAssistant.VMnok_BP.js"
12125
+ "./ChatBubbleAssistant.B6M3eq9e.js"
12115
12126
  ).then((e) => e.ChatBubbleAssistant)
12116
12127
  ), Dy = D.memo(
12117
12128
  ({
@@ -12122,7 +12133,7 @@ const Jo = dc(
12122
12133
  }) => {
12123
12134
  const {
12124
12135
  state: { restoring: a }
12125
- } = Y(de), o = Ly(t || "");
12136
+ } = X(de), o = Ly(t || "");
12126
12137
  return e === tc && t ? /* @__PURE__ */ d(zp, { content: t }) : e === nn && t ? /* @__PURE__ */ d(Ba, { fallback: /* @__PURE__ */ d("span", {}), children: /* @__PURE__ */ d(Jo, { content: t, role: nn }) }) : e === Oa && t ? /* @__PURE__ */ d(Ba, { fallback: /* @__PURE__ */ d("span", {}), children: /* @__PURE__ */ d(
12127
12138
  Jo,
12128
12139
  {
@@ -12135,7 +12146,7 @@ const Jo = dc(
12135
12146
  ), Fy = () => {
12136
12147
  const {
12137
12148
  state: { loading: e }
12138
- } = Y(de), { messages: t } = Je();
12149
+ } = X(de), { messages: t } = Je();
12139
12150
  return t && t.length > 0 ? /* @__PURE__ */ N("div", { className: "space-y-6 mt-2 @container", children: [
12140
12151
  t && t.length > 0 && t.map((r, n) => {
12141
12152
  let a = null;
@@ -12156,12 +12167,12 @@ const Jo = dc(
12156
12167
  }, zy = () => {
12157
12168
  const { isAuthenticated: e } = me(), { ref: t, inViewport: r } = jc(), n = M(null), a = M(null), {
12158
12169
  state: { footerPosition: o, footerHeight: s, footerOffset: i }
12159
- } = Y(Kn), {
12170
+ } = X(Kn), {
12160
12171
  state: { loading: l }
12161
- } = Y(de), c = M(0), u = rc({
12172
+ } = X(de), c = M(0), u = rc({
12162
12173
  isAuthenticated: e,
12163
12174
  extraClass: "rounded-b-md relative"
12164
- }), f = X(() => {
12175
+ }), f = K(() => {
12165
12176
  a.current && a.current.scrollIntoView({
12166
12177
  behavior: "smooth",
12167
12178
  block: "end"
@@ -12197,7 +12208,7 @@ function Sl({
12197
12208
  initialValue: ""
12198
12209
  }), [m] = lt({
12199
12210
  key: it + rs,
12200
- initialValue: _e.ASC
12211
+ initialValue: ke.ASC
12201
12212
  }), [y, p] = xt(Ld, {
12202
12213
  footerPosition: "FOOTER_TOP",
12203
12214
  footerHeight: 0,
@@ -12229,28 +12240,28 @@ function Sl({
12229
12240
  ],
12230
12241
  getAccessToken: n
12231
12242
  });
12232
- const { data: k } = yr({
12243
+ const { data: _ } = yr({
12233
12244
  keys: [r == null ? void 0 : r.username],
12234
12245
  getAccessToken: n
12235
12246
  });
12236
12247
  return P(() => {
12237
- var _;
12238
- (_ = document.getElementById("logo")) == null || _.classList.add("fadeOut"), setTimeout(() => {
12248
+ var k;
12249
+ (k = document.getElementById("logo")) == null || k.classList.add("fadeOut"), setTimeout(() => {
12239
12250
  var b;
12240
12251
  (b = document.getElementById("root")) == null || b.classList.replace("app-hidden", "fadeIn");
12241
12252
  }, 500);
12242
12253
  }), P(() => {
12243
- k && k.provider && I({
12254
+ _ && _.provider && I({
12244
12255
  type: Fn,
12245
12256
  payload: {
12246
- provider: k.provider
12257
+ provider: _.provider
12247
12258
  }
12248
12259
  });
12249
- }, [k]), P(() => {
12260
+ }, [_]), P(() => {
12250
12261
  if (y.footerPosition === "FOOTER_BOTTOM") {
12251
- const _ = `calc(${i.height}px + 20px)`;
12262
+ const k = `calc(${i.height}px + 20px)`;
12252
12263
  o(
12253
- `calc(100svh - ${t}px - ${_} - ${y.footerHeight}px - ${y.footerOffset}px - ${as}px)`
12264
+ `calc(100svh - ${t}px - ${k} - ${y.footerHeight}px - ${y.footerOffset}px - ${as}px)`
12254
12265
  );
12255
12266
  } else
12256
12267
  o(`${Va}px`);