@versini/sassysaint 8.12.0 → 8.12.1

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,15 +1,15 @@
1
- var ko = (e) => {
1
+ var xo = (e) => {
2
2
  throw TypeError(e);
3
3
  };
4
- var Gr = (e, t, r) => t.has(e) || ko("Cannot " + r);
5
- var O = (e, t, r) => (Gr(e, t, "read from private field"), r ? r.call(e) : t.get(e)), fe = (e, t, r) => t.has(e) ? ko("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), re = (e, t, r, a) => (Gr(e, t, "write to private field"), a ? a.call(e, r) : t.set(e, r), r), ce = (e, t, r) => (Gr(e, t, "access private method"), r);
4
+ var Gr = (e, t, r) => t.has(e) || xo("Cannot " + r);
5
+ var O = (e, t, r) => (Gr(e, t, "read from private field"), r ? r.call(e) : t.get(e)), fe = (e, t, r) => t.has(e) ? xo("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), re = (e, t, r, a) => (Gr(e, t, "write to private field"), a ? a.call(e, r) : t.set(e, r), r), ce = (e, t, r) => (Gr(e, t, "access private method"), r);
6
6
  import { jsx as c, jsxs as R, Fragment as se } from "react/jsx-runtime";
7
- import { Subscribable as zi, pendingThenable as xo, resolveEnabled as Ve, shallowEqualObjects as ca, resolveStaleTime as kr, noop as Vi, isServer as da, isValidTimeout as To, focusManager as Fi, fetchState as Ui, replaceData as Eo, notifyManager as Mn, timeUntilStale as Hi, useQueryClient as Gi, I as ae, ACTION_SORT as ua, ACTION_SEARCH as Bn, ACTION_RESET_PROMPT as Pn, ACTION_TOGGLE_PROMPT as zn, DEFAULT_AI_PROVIDER as ji, isElectron as fa, isProbablyiPhone as ha, re as Se, DEFAULT_ICON_ACTION_SIZE as Ke, L as er, j as He, C as mt, LOCAL_STORAGE_PREFIX as pt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Wi, Qr as Ne, LOCAL_STORAGE_REASONING_DISCLOSURE as qi, TOAST_CHAT_SAVED as Yi, toastOptions as Er, PROVIDER_OPENAI as Vn, PROVIDER_ANTHROPIC as Fn, PROVIDER_GOOGLE as Ji, TOAST_PROVIDER_CHANGED as Un, PROMPT_CLASSNAME as Ki, PROMPT_EDITABLE_AREA_CLASSNAME as Qi, ERROR_MESSAGE as Xi, ROLE_INTERNAL as Hn, CLIPBOARD_PROMPT as Io, isProbablyMobile as Qe, qr as Gn, GRANTS as jn, INPUT_PLACEHOLDER_TEXT as Co, FOOTER_DISCLAIMER as Zi, S as Oe, renderDataAsList as Ir, CARDS as ne, pluralize as jt, ABOUT_TITLE as el, INFINITE_SCROLL_LIMIT as So, INFINITE_SCROLL_THRESHOLD as No, LOCAL_STORAGE_SORT as Wn, APP_CLASSNAME as qn, findProvider as Ro, TOAST_CHAT_DELETED as tl, LOCAL_STORAGE_SEARCH as Yn, HISTORY_TITLE as rl, fe as al, debounce as ol, x as nl, l as Ao, PROFILE_TITLE as sl, LOCAL_STORAGE_CHAT_DETAILS as il, SETTINGS_TITLE as ll, APP_NAME as cl, PROMPTS_DESCRIPTION as dl, getCurrentGeoLocation as ul, USAGE_TITLE as fl, LOG_OUT as Oo, ROLE_USER as hl, ROLE_ASSISTANT as $o, getMessageContaintWrapperClass as ml, UI_FOOTER_BUFFER as Jn, UI_BUTTON_SCROLL_BUFFER as pl, Logo as gl, UI_DEFAULT_MAIN_HEIGHT as Lo, getMainPaddingClass as Do, I$1 as yl } from "./index.DIu2yqB7.js";
7
+ import { Subscribable as zi, pendingThenable as To, resolveEnabled as Ve, shallowEqualObjects as ca, resolveStaleTime as kr, noop as Vi, isServer as da, isValidTimeout as Eo, focusManager as Fi, fetchState as Ui, replaceData as Io, notifyManager as Bn, timeUntilStale as Hi, useQueryClient as Gi, I as ae, ACTION_SORT as ua, ACTION_SEARCH as Pn, ACTION_RESET_PROMPT as zn, ACTION_TOGGLE_PROMPT as Vn, isElectron as fa, isProbablyiPhone as ha, re as Se, DEFAULT_ICON_ACTION_SIZE as Ke, L as er, j as He, C as mt, LOCAL_STORAGE_PREFIX as pt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as ji, Qr as Ne, LOCAL_STORAGE_REASONING_DISCLOSURE as Wi, TOAST_CHAT_SAVED as qi, toastOptions as Er, TOAST_PROVIDER_CHANGED as Fn, PROMPT_CLASSNAME as Yi, PROMPT_EDITABLE_AREA_CLASSNAME as Ji, ERROR_MESSAGE as Ki, ROLE_INTERNAL as Un, CLIPBOARD_PROMPT as Co, isProbablyMobile as Qe, qr as Hn, GRANTS as Gn, INPUT_PLACEHOLDER_TEXT as So, FOOTER_DISCLAIMER as Qi, S as Oe, renderDataAsList as Ir, CARDS as ne, pluralize as jt, ABOUT_TITLE as Xi, INFINITE_SCROLL_LIMIT as No, INFINITE_SCROLL_THRESHOLD as Ro, LOCAL_STORAGE_SORT as jn, APP_CLASSNAME as Wn, findProvider as Ao, TOAST_CHAT_DELETED as Zi, LOCAL_STORAGE_SEARCH as qn, HISTORY_TITLE as el, fe as tl, debounce as rl, x as al, l as Oo, PROFILE_TITLE as ol, LOCAL_STORAGE_CHAT_DETAILS as nl, SETTINGS_TITLE as sl, APP_NAME as il, PROMPTS_DESCRIPTION as ll, getCurrentGeoLocation as cl, USAGE_TITLE as dl, LOG_OUT as $o, getMessageContaintWrapperClass as ul, UI_FOOTER_BUFFER as Yn, UI_BUTTON_SCROLL_BUFFER as fl, Logo as hl, UI_DEFAULT_MAIN_HEIGHT as Lo, getMainPaddingClass as Mo, I$1 as ml } from "./index.scU8UOJV.js";
8
8
  import p from "clsx";
9
9
  import * as te from "react";
10
- import U, { useEffect as P, useRef as L, useState as V, useCallback as Y, useSyncExternalStore as Kn, useMemo as Ee, useId as Or, useContext as X, useLayoutEffect as ge, isValidElement as $r, cloneElement as Ya, createContext as Qn, useDebugValue as bl, forwardRef as Xn, Fragment as vl, useReducer as Ut, Suspense as Zn, lazy as es } from "react";
11
- import { useMergeRefs as Ja, FloatingPortal as ts, FloatingOverlay as _l, FloatingFocusManager as rs, useFloating as as, useClick as os, useDismiss as ns, useRole as ss, useInteractions as is, FloatingTree as wl, useFloatingTree as ls, useFloatingNodeId as kl, useListItem as cs, autoUpdate as xl, offset as Tl, flip as El, shift as Il, useListNavigation as Cl, useTypeahead as Sl, FloatingNode as Nl, FloatingList as Rl } from "@floating-ui/react";
12
- var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, ma, pa, ga, ya, ba, va, _a, ds, Dn, Al = (Dn = class extends zi {
10
+ import U, { useEffect as P, useRef as L, useState as V, useCallback as Y, useSyncExternalStore as Jn, useMemo as Ee, useId as Or, useContext as X, useLayoutEffect as ge, isValidElement as $r, cloneElement as Ya, createContext as Kn, useDebugValue as pl, forwardRef as Qn, Fragment as gl, useReducer as Ut, Suspense as Xn, lazy as Zn } from "react";
11
+ import { useMergeRefs as Ja, FloatingPortal as es, FloatingOverlay as yl, FloatingFocusManager as ts, useFloating as rs, useClick as as, useDismiss as os, useRole as ns, useInteractions as ss, FloatingTree as bl, useFloatingTree as is, useFloatingNodeId as vl, useListItem as ls, autoUpdate as _l, offset as wl, flip as kl, shift as xl, useListNavigation as Tl, useTypeahead as El, FloatingNode as Il, FloatingList as Cl } from "@floating-ui/react";
12
+ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, ma, pa, ga, ya, ba, va, _a, cs, Dn, Sl = (Dn = class extends zi {
13
13
  constructor(t, r) {
14
14
  super();
15
15
  fe(this, Z);
@@ -30,7 +30,7 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, ma, pa, ga
30
30
  fe(this, ht);
31
31
  fe(this, rt);
32
32
  fe(this, At, /* @__PURE__ */ new Set());
33
- this.options = r, re(this, xe, t), re(this, ze, null), re(this, tt, xo()), this.options.experimental_prefetchInRender || O(this, tt).reject(
33
+ this.options = r, re(this, xe, t), re(this, ze, null), re(this, tt, To()), this.options.experimental_prefetchInRender || O(this, tt).reject(
34
34
  new Error("experimental_prefetchInRender feature flag is not enabled")
35
35
  ), this.bindMethods(), this.setOptions(r);
36
36
  }
@@ -38,7 +38,7 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, ma, pa, ga
38
38
  this.refetch = this.refetch.bind(this);
39
39
  }
40
40
  onSubscribe() {
41
- this.listeners.size === 1 && (O(this, j).addObserver(this), Mo(O(this, j), this.options) ? ce(this, Z, Ht).call(this) : this.updateResult(), ce(this, Z, ya).call(this));
41
+ this.listeners.size === 1 && (O(this, j).addObserver(this), Do(O(this, j), this.options) ? ce(this, Z, Ht).call(this) : this.updateResult(), ce(this, Z, ya).call(this));
42
42
  }
43
43
  onUnsubscribe() {
44
44
  this.hasListeners() || this.destroy();
@@ -83,7 +83,7 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, ma, pa, ga
83
83
  }
84
84
  getOptimisticResult(t) {
85
85
  const r = O(this, xe).getQueryCache().build(O(this, xe), t), a = this.createResult(r, t);
86
- return $l(this, a) && (re(this, be, a), re(this, St, this.options), re(this, ut, O(this, j).state)), a;
86
+ return Rl(this, a) && (re(this, be, a), re(this, St, this.options), re(this, ut, O(this, j).state)), a;
87
87
  }
88
88
  getCurrentResult() {
89
89
  return O(this, be);
@@ -124,7 +124,7 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, ma, pa, ga
124
124
  const a = O(this, j), o = this.options, n = O(this, be), s = O(this, ut), l = O(this, St), d = t !== a ? t.state : O(this, Xt), { state: f } = t;
125
125
  let u = { ...f }, h = !1, m;
126
126
  if (r._optimisticResults) {
127
- const T = this.hasListeners(), C = !T && Mo(t, r), S = T && Bo(t, a, r, o);
127
+ const T = this.hasListeners(), C = !T && Do(t, r), S = T && Bo(t, a, r, o);
128
128
  (C || S) && (u = {
129
129
  ...u,
130
130
  ...Ui(f.data, t.options)
@@ -136,7 +136,7 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, ma, pa, ga
136
136
  m = O(this, Nt);
137
137
  else
138
138
  try {
139
- re(this, Zt, r.select), m = r.select(u.data), m = Eo(n == null ? void 0 : n.data, m, r), re(this, Nt, m), re(this, ze, null);
139
+ re(this, Zt, r.select), m = r.select(u.data), m = Io(n == null ? void 0 : n.data, m, r), re(this, Nt, m), re(this, ze, null);
140
140
  } catch (T) {
141
141
  re(this, ze, T);
142
142
  }
@@ -155,7 +155,7 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, ma, pa, ga
155
155
  } catch (C) {
156
156
  re(this, ze, C);
157
157
  }
158
- T !== void 0 && (b = "success", m = Eo(
158
+ T !== void 0 && (b = "success", m = Io(
159
159
  n == null ? void 0 : n.data,
160
160
  T,
161
161
  r
@@ -193,7 +193,7 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, ma, pa, ga
193
193
  const T = (A) => {
194
194
  x.status === "error" ? A.reject(x.error) : x.data !== void 0 && A.resolve(x.data);
195
195
  }, C = () => {
196
- const A = re(this, tt, x.promise = xo());
196
+ const A = re(this, tt, x.promise = To());
197
197
  T(A);
198
198
  }, S = O(this, tt);
199
199
  switch (S.status) {
@@ -229,7 +229,7 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, ma, pa, ga
229
229
  return O(this, be)[i] !== t[i] && s.has(i);
230
230
  });
231
231
  };
232
- ce(this, Z, ds).call(this, { listeners: a() });
232
+ ce(this, Z, cs).call(this, { listeners: a() });
233
233
  }
234
234
  onQueryUpdate() {
235
235
  this.updateResult(), this.hasListeners() && ce(this, Z, ya).call(this);
@@ -247,7 +247,7 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, ma, pa, ga
247
247
  this.options.staleTime,
248
248
  O(this, j)
249
249
  );
250
- if (da || O(this, be).isStale || !To(t))
250
+ if (da || O(this, be).isStale || !Eo(t))
251
251
  return;
252
252
  const a = Hi(O(this, be).dataUpdatedAt, t) + 1;
253
253
  re(this, ft, setTimeout(() => {
@@ -256,7 +256,7 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, ma, pa, ga
256
256
  }, pa = function() {
257
257
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(O(this, j)) : this.options.refetchInterval) ?? !1;
258
258
  }, ga = function(t) {
259
- ce(this, Z, va).call(this), re(this, rt, t), !(da || Ve(this.options.enabled, O(this, j)) === !1 || !To(O(this, rt)) || O(this, rt) === 0) && re(this, ht, setInterval(() => {
259
+ ce(this, Z, va).call(this), re(this, rt, t), !(da || Ve(this.options.enabled, O(this, j)) === !1 || !Eo(O(this, rt)) || O(this, rt) === 0) && re(this, ht, setInterval(() => {
260
260
  (this.options.refetchIntervalInBackground || Fi.isFocused()) && ce(this, Z, Ht).call(this);
261
261
  }, O(this, rt)));
262
262
  }, ya = function() {
@@ -271,8 +271,8 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, ma, pa, ga
271
271
  return;
272
272
  const r = O(this, j);
273
273
  re(this, j, t), re(this, Xt, t.state), this.hasListeners() && (r == null || r.removeObserver(this), t.addObserver(this));
274
- }, ds = function(t) {
275
- Mn.batch(() => {
274
+ }, cs = function(t) {
275
+ Bn.batch(() => {
276
276
  t.listeners && this.listeners.forEach((r) => {
277
277
  r(O(this, be));
278
278
  }), O(this, xe).getQueryCache().notify({
@@ -281,11 +281,11 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, ma, pa, ga
281
281
  });
282
282
  });
283
283
  }, Dn);
284
- function Ol(e, t) {
284
+ function Nl(e, t) {
285
285
  return Ve(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
286
286
  }
287
- function Mo(e, t) {
288
- return Ol(e, t) || e.state.data !== void 0 && wa(e, t, t.refetchOnMount);
287
+ function Do(e, t) {
288
+ return Nl(e, t) || e.state.data !== void 0 && wa(e, t, t.refetchOnMount);
289
289
  }
290
290
  function wa(e, t, r) {
291
291
  if (Ve(t.enabled, e) !== !1) {
@@ -300,11 +300,11 @@ function Bo(e, t, r, a) {
300
300
  function Ka(e, t) {
301
301
  return Ve(t.enabled, e) !== !1 && e.isStaleByTime(kr(t.staleTime, e));
302
302
  }
303
- function $l(e, t) {
303
+ function Rl(e, t) {
304
304
  return !ca(e.getCurrentResult(), t);
305
305
  }
306
- var Ll = te.createContext(!1), Dl = () => te.useContext(Ll);
307
- function Ml() {
306
+ var Al = te.createContext(!1), Ol = () => te.useContext(Al);
307
+ function $l() {
308
308
  let e = !1;
309
309
  return {
310
310
  clearReset: () => {
@@ -316,43 +316,43 @@ function Ml() {
316
316
  isReset: () => e
317
317
  };
318
318
  }
319
- var Bl = te.createContext(Ml()), Pl = () => te.useContext(Bl);
320
- function zl(e, t) {
319
+ var Ll = te.createContext($l()), Ml = () => te.useContext(Ll);
320
+ function Dl(e, t) {
321
321
  return typeof e == "function" ? e(...t) : !!e;
322
322
  }
323
323
  function Po() {
324
324
  }
325
- var Vl = (e, t) => {
325
+ var Bl = (e, t) => {
326
326
  (e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
327
- }, Fl = (e) => {
327
+ }, Pl = (e) => {
328
328
  te.useEffect(() => {
329
329
  e.clearReset();
330
330
  }, [e]);
331
- }, Ul = ({
331
+ }, zl = ({
332
332
  result: e,
333
333
  errorResetBoundary: t,
334
334
  throwOnError: r,
335
335
  query: a,
336
336
  suspense: o
337
- }) => e.isError && !t.isReset() && !e.isFetching && a && (o && e.data === void 0 || zl(r, [e.error, a])), Hl = (e) => {
337
+ }) => e.isError && !t.isReset() && !e.isFetching && a && (o && e.data === void 0 || Dl(r, [e.error, a])), Vl = (e) => {
338
338
  const t = e.staleTime;
339
339
  e.suspense && (e.staleTime = typeof t == "function" ? (...r) => Math.max(t(...r), 1e3) : Math.max(t ?? 1e3, 1e3), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, 1e3)));
340
- }, Gl = (e, t) => e.isLoading && e.isFetching && !t, jl = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending, zo = (e, t, r) => t.fetchOptimistic(e).catch(() => {
340
+ }, Fl = (e, t) => e.isLoading && e.isFetching && !t, Ul = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending, zo = (e, t, r) => t.fetchOptimistic(e).catch(() => {
341
341
  r.clearReset();
342
342
  });
343
- function Wl(e, t, r) {
343
+ function Hl(e, t, r) {
344
344
  var u, h, m, g, y;
345
345
  if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
346
346
  throw new Error(
347
347
  'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
348
348
  );
349
- const a = Gi(r), o = Dl(), n = Pl(), s = a.defaultQueryOptions(e);
349
+ const a = Gi(r), o = Ol(), n = Ml(), s = a.defaultQueryOptions(e);
350
350
  (h = (u = a.getDefaultOptions().queries) == null ? void 0 : u._experimental_beforeQuery) == null || h.call(
351
351
  u,
352
352
  s
353
353
  ), process.env.NODE_ENV !== "production" && (s.queryFn || console.error(
354
354
  `[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
355
- )), s._optimisticResults = o ? "isRestoring" : "optimistic", Hl(s), Vl(s, n), Fl(n);
355
+ )), s._optimisticResults = o ? "isRestoring" : "optimistic", Vl(s), Bl(s, n), Pl(n);
356
356
  const l = !a.getQueryCache().get(s.queryHash), [i] = te.useState(
357
357
  () => new t(
358
358
  a,
@@ -362,7 +362,7 @@ function Wl(e, t, r) {
362
362
  if (te.useSyncExternalStore(
363
363
  te.useCallback(
364
364
  (b) => {
365
- const v = f ? i.subscribe(Mn.batchCalls(b)) : Po;
365
+ const v = f ? i.subscribe(Bn.batchCalls(b)) : Po;
366
366
  return i.updateResult(), v;
367
367
  },
368
368
  [i, f]
@@ -371,9 +371,9 @@ function Wl(e, t, r) {
371
371
  () => i.getCurrentResult()
372
372
  ), te.useEffect(() => {
373
373
  i.setOptions(s);
374
- }, [s, i]), jl(s, d))
374
+ }, [s, i]), Ul(s, d))
375
375
  throw zo(s, i, n);
376
- if (Ul({
376
+ if (zl({
377
377
  result: d,
378
378
  errorResetBoundary: n,
379
379
  throwOnError: s.throwOnError,
@@ -385,7 +385,7 @@ function Wl(e, t, r) {
385
385
  m,
386
386
  s,
387
387
  d
388
- ), s.experimental_prefetchInRender && !da && Gl(d, o)) {
388
+ ), s.experimental_prefetchInRender && !da && Fl(d, o)) {
389
389
  const b = l ? (
390
390
  // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
391
391
  zo(s, i, n)
@@ -400,9 +400,9 @@ function Wl(e, t, r) {
400
400
  return s.notifyOnChangeProps ? d : i.trackResult(d);
401
401
  }
402
402
  function tr(e, t) {
403
- return Wl(e, Al, t);
403
+ return Hl(e, Sl, t);
404
404
  }
405
- const us = ({
405
+ const ds = ({
406
406
  className: e,
407
407
  viewBox: t,
408
408
  title: r,
@@ -419,7 +419,7 @@ const us = ({
419
419
  ...o,
420
420
  children: /* @__PURE__ */ c("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" })
421
421
  }
422
- ), ql = ({
422
+ ), Gl = ({
423
423
  className: e,
424
424
  viewBox: t,
425
425
  title: r,
@@ -445,7 +445,7 @@ const us = ({
445
445
  /* @__PURE__ */ c("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" })
446
446
  ]
447
447
  }
448
- ), Yl = ({
448
+ ), jl = ({
449
449
  className: e,
450
450
  viewBox: t,
451
451
  title: r,
@@ -471,7 +471,7 @@ const us = ({
471
471
  /* @__PURE__ */ c("path", { d: "M0 88C0 39.4 39.4 0 88 0h304c30.9 0 56 25.1 56 56v288c0 22.3-13.1 41.6-32 50.6V464h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H80c-44.2 0-80-35.8-80-80 0-2.7.1-5.4.4-8H0zm80 312c-17.7 0-32 14.3-32 32s14.3 32 32 32h288v-64zm-32-41.3c9.8-4.3 20.6-6.7 32-6.7h312c4.4 0 8-3.6 8-8V56c0-4.4-3.6-8-8-8H88c-22.1 0-40 17.9-40 40zM160 112l8.8-17.7c2.9-5.9 11.4-5.9 14.3 0L192 112l17.7 8.8c5.9 2.9 5.9 11.4 0 14.3L192 144l-8.8 17.7c-2.9 5.9-11.4 5.9-14.3 0L160 144l-17.7-8.8c-5.9-2.9-5.9-11.4 0-14.3zm104 104 16.6-38.8c2.8-6.5 11.9-6.5 14.7 0L312 216l38.8 16.6c6.5 2.8 6.5 11.9 0 14.7L312 264l-16.6 38.8c-2.8 6.5-11.9 6.5-14.7 0L264 264l-38.8-16.6c-6.5-2.8-6.5-11.9 0-14.7z" })
472
472
  ]
473
473
  }
474
- ), Jl = ({
474
+ ), Wl = ({
475
475
  className: e,
476
476
  viewBox: t,
477
477
  title: r,
@@ -497,7 +497,7 @@ const us = ({
497
497
  /* @__PURE__ */ c("path", { d: "M368 96c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V144c0-26.5-21.5-48-48-48zM48 224c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48z" })
498
498
  ]
499
499
  }
500
- ), fs = ({
500
+ ), us = ({
501
501
  className: e,
502
502
  viewBox: t,
503
503
  title: r,
@@ -520,7 +520,7 @@ const us = ({
520
520
  }
521
521
  )
522
522
  }
523
- ), Kl = ({
523
+ ), ql = ({
524
524
  className: e,
525
525
  viewBox: t,
526
526
  title: r,
@@ -546,7 +546,7 @@ const us = ({
546
546
  /* @__PURE__ */ c("path", { d: "M163.8 0c-12.1 0-23.2 6.8-28.6 17.7L128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0z" })
547
547
  ]
548
548
  }
549
- ), Ql = ({
549
+ ), Yl = ({
550
550
  className: e,
551
551
  viewBox: t,
552
552
  title: r,
@@ -572,7 +572,7 @@ const us = ({
572
572
  /* @__PURE__ */ c("path", { d: "M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 402.7 54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z" })
573
573
  ]
574
574
  }
575
- ), Xl = ({
575
+ ), Jl = ({
576
576
  className: e,
577
577
  viewBox: t,
578
578
  title: r,
@@ -598,7 +598,7 @@ const us = ({
598
598
  /* @__PURE__ */ c("path", { d: "m392.4 21.7-30.1 30 97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2l-18.7-18.6c-21.9-21.9-57.3-21.9-79.2 0m-52.7 52.6L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5l167.3-167.4z" })
599
599
  ]
600
600
  }
601
- ), Zl = ({
601
+ ), Kl = ({
602
602
  className: e,
603
603
  viewBox: t,
604
604
  title: r,
@@ -615,7 +615,7 @@ const us = ({
615
615
  ...o,
616
616
  children: /* @__PURE__ */ c("path", { d: "M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81" })
617
617
  }
618
- ), ec = ({
618
+ ), Ql = ({
619
619
  className: e,
620
620
  viewBox: t,
621
621
  title: r,
@@ -641,7 +641,7 @@ const us = ({
641
641
  /* @__PURE__ */ c("path", { d: "M256 128c13.3 0 24 10.7 24 24v94.1l65 65c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-72-72c-4.5-4.5-7-10.6-7-17V152c0-13.3 10.7-24 24-24z" })
642
642
  ]
643
643
  }
644
- ), tc = ({
644
+ ), Xl = ({
645
645
  className: e,
646
646
  viewBox: t,
647
647
  title: r,
@@ -667,7 +667,7 @@ const us = ({
667
667
  /* @__PURE__ */ c("path", { d: "M256 128a32 32 0 1 1 0 64 32 32 0 1 1 0-64m-64 120c0-13.3 10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24h-80c-13.3 0-24-10.7-24-24s10.7-24 24-24h24v-64h-24c-13.3 0-24-10.7-24-24" })
668
668
  ]
669
669
  }
670
- ), rc = ({
670
+ ), Zl = ({
671
671
  className: e,
672
672
  viewBox: t,
673
673
  title: r,
@@ -693,7 +693,7 @@ const us = ({
693
693
  /* @__PURE__ */ c("path", { d: "M310.3 258.1c16.2-23.3 25.7-51.5 25.7-82.1 0-79.5-64.5-144-144-144S48 96.5 48 176c0 30.6 9.5 58.8 25.7 82.1 4.1 5.9 8.8 12.3 13.6 19 12.7 17.5 27.1 37.2 38 57.1 8.9 16.2 13.7 33.3 16.2 49.9L109 384c-2.2-12-5.9-23.7-11.8-34.5-9.9-18-22.2-34.9-34.5-51.8-5.2-7.1-10.4-14.2-15.4-21.4C27.6 247.9 16 213.3 16 176 16 78.8 94.8 0 192 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3-5 7.2-10.2 14.3-15.4 21.4-12.3 16.8-24.6 33.7-34.5 51.8-5.9 10.8-9.6 22.5-11.8 34.5h-32.4c2.5-16.6 7.3-33.7 16.2-49.9 10.9-20 25.3-39.7 38-57.1 4.9-6.7 9.5-13 13.6-19zM192 96c-44.2 0-80 35.8-80 80 0 8.8-7.2 16-16 16s-16-7.2-16-16c0-61.9 50.1-112 112-112 8.8 0 16 7.2 16 16s-7.2 16-16 16m-45.3 352c6.6 18.6 24.4 32 45.3 32s38.7-13.4 45.3-32h-90.5zM112 432v-5.3c0-5.9 4.8-10.7 10.7-10.7h138.7c5.9 0 10.7 4.8 10.7 10.7v5.3c0 44.2-35.8 80-80 80s-80-35.8-80-80z" })
694
694
  ]
695
695
  }
696
- ), ac = ({
696
+ ), ec = ({
697
697
  className: e,
698
698
  viewBox: t,
699
699
  title: r,
@@ -719,7 +719,7 @@ const us = ({
719
719
  /* @__PURE__ */ c("path", { d: "M224 32c53 0 96 43 96 96v64H128v-64c0-53 43-96 96-96M96 128v64H80c-44.2 0-80 35.8-80 80v160c0 44.2 35.8 80 80 80h288c44.2 0 80-35.8 80-80V272c0-44.2-35.8-80-80-80h-16v-64C352 57.3 294.7 0 224 0S96 57.3 96 128m-16 96h288c26.5 0 48 21.5 48 48v160c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48m160 88c0-8.8-7.2-16-16-16s-16 7.2-16 16v80c0 8.8 7.2 16 16 16s16-7.2 16-16z" })
720
720
  ]
721
721
  }
722
- ), oc = ({
722
+ ), tc = ({
723
723
  className: e,
724
724
  viewBox: t,
725
725
  title: r,
@@ -745,7 +745,7 @@ const us = ({
745
745
  /* @__PURE__ */ c("path", { d: "M419.2 227.2 316.7 124.7 46.1 395.4c-18.7 18.7-18.7 49.1 0 67.9l34.6 34.6c18.7 18.7 49.1 18.7 67.9 0z" })
746
746
  ]
747
747
  }
748
- ), hs = ({
748
+ ), fs = ({
749
749
  className: e,
750
750
  viewBox: t,
751
751
  title: r,
@@ -762,7 +762,7 @@ const us = ({
762
762
  ...o,
763
763
  children: /* @__PURE__ */ c("path", { d: "M22.282 9.821a5.99 5.99 0 0 0-.516-4.91 6.05 6.05 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.99 5.99 0 0 0-3.998 2.9 6.05 6.05 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.05 6.05 0 0 0 6.515 2.9A5.99 5.99 0 0 0 13.26 24a6.06 6.06 0 0 0 5.772-4.206 6 6 0 0 0 3.997-2.9 6.06 6.06 0 0 0-.747-7.073zM13.26 22.43a4.48 4.48 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.8.8 0 0 0 .392-.681v-6.737l2.02 1.168a.07.07 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494M3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.77.77 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646M2.34 7.896a4.5 4.5 0 0 1 2.366-1.973V11.6a.77.77 0 0 0 .388.677l5.815 3.354-2.02 1.168a.08.08 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855-5.833-3.387L15.119 7.2a.08.08 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667zm2.01-3.023-.141-.085-4.774-2.782a.78.78 0 0 0-.785 0L9.409 9.23V6.897a.07.07 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08-4.778 2.758a.8.8 0 0 0-.393.681zm1.097-2.365 2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5Z" })
764
764
  }
765
- ), nc = ({
765
+ ), rc = ({
766
766
  className: e,
767
767
  viewBox: t,
768
768
  title: r,
@@ -788,7 +788,7 @@ const us = ({
788
788
  /* @__PURE__ */ c("path", { d: "M176 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128m-32 32c-44.2 0-80 35.8-80 80 0 8.8 7.2 16 16 16h192c8.8 0 16-7.2 16-16 0-44.2-35.8-80-80-80z" })
789
789
  ]
790
790
  }
791
- ), sc = ({
791
+ ), ac = ({
792
792
  className: e,
793
793
  viewBox: t,
794
794
  title: r,
@@ -814,7 +814,7 @@ const us = ({
814
814
  /* @__PURE__ */ c("path", { d: "M566.6 265.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l73.4 73.3 169.4-169.3c12.5-12.5 32.8-12.5 45.3 0z" })
815
815
  ]
816
816
  }
817
- ), ic = ({
817
+ ), oc = ({
818
818
  className: e,
819
819
  viewBox: t,
820
820
  title: r,
@@ -840,7 +840,7 @@ const us = ({
840
840
  /* @__PURE__ */ c("path", { d: "M64 128c-35.3 0-64 28.7-64 64v256c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64zm32 64h192c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32s14.3-32 32-32" })
841
841
  ]
842
842
  }
843
- ), lc = ({
843
+ ), nc = ({
844
844
  className: e,
845
845
  viewBox: t,
846
846
  title: r,
@@ -866,7 +866,7 @@ const us = ({
866
866
  /* @__PURE__ */ c("path", { d: "m406.1 16-39.7 39.7 89.3 89.3 39.8-38.9c19.1-18.7 19.2-49.4.4-68.2l-22-21.9C455.1-2.8 424.7-2.7 406 16zm-62.4 62.4L200.5 221.8c-7 7-12.3 15.6-15.4 25l-23.8 71.3c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l71.5-23.9c9.2-3.1 17.6-8.2 24.5-15l145.1-142.1z" })
867
867
  ]
868
868
  }
869
- ), cc = ({
869
+ ), sc = ({
870
870
  className: e,
871
871
  viewBox: t,
872
872
  title: r,
@@ -892,7 +892,7 @@ const us = ({
892
892
  /* @__PURE__ */ c("path", { d: "m330.7 376 126.7 126.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L376 330.7c-12.7 17.3-28 32.6-45.3 45.3" })
893
893
  ]
894
894
  }
895
- ), dc = ({
895
+ ), ic = ({
896
896
  className: e,
897
897
  viewBox: t,
898
898
  title: r,
@@ -918,7 +918,7 @@ const us = ({
918
918
  /* @__PURE__ */ c("path", { d: "M380.7 185.8c5.1-6.7 4.2-16.2-2.1-21.8s-15.9-5.3-21.9.7l-179 179-13 13c-3 3-4.7 7.1-4.7 11.3v112c0 13.2 8.1 25 20.3 29.8s26.2 1.6 35.2-8.1l68.5-74-60-25v-13.2z" })
919
919
  ]
920
920
  }
921
- ), uc = ({
921
+ ), lc = ({
922
922
  className: e,
923
923
  viewBox: t,
924
924
  title: r,
@@ -935,7 +935,7 @@ const us = ({
935
935
  ...o,
936
936
  children: /* @__PURE__ */ c("path", { d: "M432 256a48 48 0 1 1-96 0 48 48 0 1 1 96 0m-160 0a48 48 0 1 1-96 0 48 48 0 1 1 96 0M64 304a48 48 0 1 1 0-96 48 48 0 1 1 0 96" })
937
937
  }
938
- ), fc = ({
938
+ ), cc = ({
939
939
  className: e,
940
940
  viewBox: t,
941
941
  title: r,
@@ -961,7 +961,7 @@ const us = ({
961
961
  /* @__PURE__ */ c("path", { d: "M128 416a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0m80-160a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0M192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64m0-112a80 80 0 1 0 0 160 80 80 0 1 0 0-160" })
962
962
  ]
963
963
  }
964
- ), hc = ({
964
+ ), dc = ({
965
965
  className: e,
966
966
  viewBox: t,
967
967
  title: r,
@@ -1001,7 +1001,7 @@ try {
1001
1001
  });
1002
1002
  } catch {
1003
1003
  }
1004
- const mc = "av-header", pc = ({
1004
+ const uc = "av-header", fc = ({
1005
1005
  children: e,
1006
1006
  className: t,
1007
1007
  raw: r = !1,
@@ -1014,7 +1014,7 @@ const mc = "av-header", pc = ({
1014
1014
  ...d
1015
1015
  }) => {
1016
1016
  const f = p(
1017
- mc,
1017
+ uc,
1018
1018
  {
1019
1019
  "border-border-accent": a === "dark" && !r && !o && !s,
1020
1020
  "border-border-medium": a === "light" && !r && !o && !s,
@@ -1036,7 +1036,7 @@ const mc = "av-header", pc = ({
1036
1036
  });
1037
1037
  return /* @__PURE__ */ c("header", { className: f, ...d, children: /* @__PURE__ */ c("div", { className: u, children: e }) });
1038
1038
  };
1039
- function gc(e) {
1039
+ function hc(e) {
1040
1040
  const t = e.toLowerCase().split("+").map((n) => n.trim()), r = {
1041
1041
  alt: t.includes("alt"),
1042
1042
  ctrl: t.includes("ctrl"),
@@ -1049,7 +1049,7 @@ function gc(e) {
1049
1049
  key: o
1050
1050
  };
1051
1051
  }
1052
- function yc(e, t) {
1052
+ function mc(e, t) {
1053
1053
  const { alt: r, ctrl: a, meta: o, mod: n, shift: s, key: l } = e, { altKey: i, ctrlKey: d, metaKey: f, shiftKey: u, key: h } = t;
1054
1054
  if (r !== i)
1055
1055
  return !1;
@@ -1060,33 +1060,33 @@ function yc(e, t) {
1060
1060
  return !1;
1061
1061
  return s !== u ? !1 : !!(l && (h.toLowerCase() === l.toLowerCase() || t.code.replace("Key", "").toLowerCase() === l.toLowerCase()));
1062
1062
  }
1063
- function ms(e) {
1064
- return (t) => yc(gc(e), t);
1063
+ function hs(e) {
1064
+ return (t) => mc(hc(e), t);
1065
1065
  }
1066
- function bc(e) {
1066
+ function pc(e) {
1067
1067
  return (t) => {
1068
1068
  const r = "nativeEvent" in t ? t.nativeEvent : t;
1069
1069
  e.forEach(([a, o, n = { preventDefault: !0 }]) => {
1070
- ms(a)(r) && (n.preventDefault && t.preventDefault(), o(r));
1070
+ hs(a)(r) && (n.preventDefault && t.preventDefault(), o(r));
1071
1071
  });
1072
1072
  };
1073
1073
  }
1074
- function vc(e, t, r = !1) {
1074
+ function gc(e, t, r = !1) {
1075
1075
  return e.target instanceof HTMLElement ? (r || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
1076
1076
  }
1077
- function ps(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
1077
+ function ms(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
1078
1078
  P(() => {
1079
1079
  const a = (o) => {
1080
1080
  e.forEach(
1081
1081
  ([n, s, l = { preventDefault: !0 }]) => {
1082
- ms(n)(o) && vc(o, t, r) && (l.preventDefault && o.preventDefault(), s(o));
1082
+ hs(n)(o) && gc(o, t, r) && (l.preventDefault && o.preventDefault(), s(o));
1083
1083
  }
1084
1084
  );
1085
1085
  };
1086
1086
  return document.documentElement.addEventListener("keydown", a), () => document.documentElement.removeEventListener("keydown", a);
1087
1087
  }, [e, t, r]);
1088
1088
  }
1089
- function _c() {
1089
+ function yc() {
1090
1090
  const e = L(null), [t, r] = V(!1);
1091
1091
  return { ref: Y((a) => {
1092
1092
  var o, n;
@@ -1095,32 +1095,32 @@ function _c() {
1095
1095
  ) : (o = e.current) == null || o.disconnect(), a ? (n = e.current) == null || n.observe(a) : r(!1));
1096
1096
  }, []), inViewport: t };
1097
1097
  }
1098
- function wc() {
1098
+ function bc() {
1099
1099
  const e = L(!1);
1100
1100
  return P(() => (e.current = !0, () => {
1101
1101
  e.current = !1;
1102
1102
  }), []), Y(() => e.current, []);
1103
1103
  }
1104
- function gs(e, t) {
1104
+ function ps(e, t) {
1105
1105
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
1106
1106
  }
1107
1107
  const Vo = (e, t) => {
1108
1108
  const r = JSON.stringify(
1109
1109
  typeof t == "function" ? t() : t
1110
1110
  );
1111
- window.localStorage.setItem(e, r), gs(e, r);
1112
- }, kc = (e) => {
1113
- window.localStorage.removeItem(e), gs(e, null);
1114
- }, Fo = (e) => window.localStorage.getItem(e), xc = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1111
+ window.localStorage.setItem(e, r), ps(e, r);
1112
+ }, vc = (e) => {
1113
+ window.localStorage.removeItem(e), ps(e, null);
1114
+ }, Fo = (e) => window.localStorage.getItem(e), _c = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1115
1115
  function gt({
1116
1116
  key: e,
1117
1117
  initialValue: t
1118
1118
  }) {
1119
- const r = Kn(xc, () => Fo(e)), a = Y(
1119
+ const r = Jn(_c, () => Fo(e)), a = Y(
1120
1120
  (s) => {
1121
1121
  try {
1122
1122
  const l = typeof s == "function" ? s(JSON.parse(r)) : s;
1123
- l == null ? kc(e) : Vo(e, l);
1123
+ l == null ? vc(e) : Vo(e, l);
1124
1124
  } catch (l) {
1125
1125
  console.warn(l);
1126
1126
  }
@@ -1139,7 +1139,7 @@ function gt({
1139
1139
  }
1140
1140
  }, [e, t]), [r ? JSON.parse(r) : null, a, o, n];
1141
1141
  }
1142
- const Tc = {
1142
+ const wc = {
1143
1143
  x: 0,
1144
1144
  y: 0,
1145
1145
  width: 0,
@@ -1149,8 +1149,8 @@ const Tc = {
1149
1149
  bottom: 0,
1150
1150
  right: 0
1151
1151
  };
1152
- function ys(e) {
1153
- const t = wc(), r = L(0), a = L(null), [o, n] = V(Tc), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
1152
+ function gs(e) {
1153
+ const t = bc(), r = L(0), a = L(null), [o, n] = V(wc), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
1154
1154
  const i = l[0];
1155
1155
  i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
1156
1156
  a.current && t() && n(i.contentRect);
@@ -1168,7 +1168,7 @@ function Uo(e, t) {
1168
1168
  passive: !0
1169
1169
  }), () => window.removeEventListener(e, t)), [e, t]);
1170
1170
  }
1171
- function Ec() {
1171
+ function kc() {
1172
1172
  const [e, t] = V({
1173
1173
  width: 0,
1174
1174
  height: 0
@@ -1180,7 +1180,7 @@ function Ec() {
1180
1180
  }, []);
1181
1181
  return Uo("resize", r), Uo("orientationchange", r), P(r, []), e;
1182
1182
  }
1183
- function Ic() {
1183
+ function xc() {
1184
1184
  const [e, t] = V({
1185
1185
  width: 0,
1186
1186
  height: 0
@@ -1215,7 +1215,7 @@ try {
1215
1215
  const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1216
1216
  ASC: "asc",
1217
1217
  DESC: "desc"
1218
- }, Cc = ({
1218
+ }, Tc = ({
1219
1219
  mode: e,
1220
1220
  className: t,
1221
1221
  wrapperClassName: r,
@@ -1250,7 +1250,7 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1250
1250
  "text-copy-light dark:text-copy-dark": e === "system",
1251
1251
  "text-copy-dark dark:text-copy-light": e === "alt-system"
1252
1252
  })
1253
- }), Sc = ({
1253
+ }), Ec = ({
1254
1254
  className: e,
1255
1255
  stickyHeader: t,
1256
1256
  mode: r
@@ -1263,7 +1263,7 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1263
1263
  "shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": t && r === "alt-system"
1264
1264
  },
1265
1265
  e
1266
- ), Nc = ({
1266
+ ), Ic = ({
1267
1267
  className: e,
1268
1268
  stickyFooter: t,
1269
1269
  mode: r
@@ -1276,7 +1276,7 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1276
1276
  "shadow-[rgb(65_65_65_/30%)_-0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": t && r === "alt-system"
1277
1277
  },
1278
1278
  e
1279
- ), Rc = ({
1279
+ ), Cc = ({
1280
1280
  mode: e,
1281
1281
  className: t,
1282
1282
  cellWrapper: r
@@ -1301,7 +1301,7 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1301
1301
  "odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": r === Tt && e === "alt-system"
1302
1302
  },
1303
1303
  t
1304
- ), Ac = ({
1304
+ ), Sc = ({
1305
1305
  cellWrapper: e,
1306
1306
  className: t,
1307
1307
  compact: r,
@@ -1325,9 +1325,9 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1325
1325
  },
1326
1326
  t
1327
1327
  )
1328
- }), Oc = ({
1328
+ }), Nc = ({
1329
1329
  buttonClassName: e
1330
- }) => p("rounded-none text-sm", e), Ho = "av-button", Xa = "icon", bs = "button", ka = "link", $c = ({
1330
+ }) => p("rounded-none text-sm", e), Ho = "av-button", Xa = "icon", ys = "button", ka = "link", Rc = ({
1331
1331
  type: e,
1332
1332
  size: t,
1333
1333
  labelRight: r,
@@ -1337,7 +1337,7 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1337
1337
  }) => {
1338
1338
  const s = "max-h-8 py-0 px-2", l = "max-h-9 h-8 px-3", i = "max-h-12 py-2 px-4";
1339
1339
  switch (e) {
1340
- case bs:
1340
+ case ys:
1341
1341
  case ka:
1342
1342
  return p({
1343
1343
  [s]: t === "small",
@@ -1363,7 +1363,7 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1363
1363
  "h-12": t === "large" && n && (r || a)
1364
1364
  });
1365
1365
  }
1366
- }, Lc = ({
1366
+ }, Ac = ({
1367
1367
  type: e,
1368
1368
  size: t,
1369
1369
  labelRight: r,
@@ -1371,7 +1371,7 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1371
1371
  }) => {
1372
1372
  const o = "text-sm font-medium", n = "text-base font-medium", s = "text-lg font-medium";
1373
1373
  switch (e) {
1374
- case bs:
1374
+ case ys:
1375
1375
  case ka:
1376
1376
  return p({
1377
1377
  "text-center": e === ka,
@@ -1386,7 +1386,7 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1386
1386
  [s]: t === "large" && (r || a)
1387
1387
  });
1388
1388
  }
1389
- }, Dc = ({
1389
+ }, Oc = ({
1390
1390
  mode: e,
1391
1391
  noBackground: t,
1392
1392
  truncate: r,
@@ -1422,7 +1422,7 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1422
1422
  return p("not-prose text-copy-lighter", {
1423
1423
  truncate: r
1424
1424
  });
1425
- }, Mc = ({
1425
+ }, $c = ({
1426
1426
  mode: e,
1427
1427
  noBackground: t,
1428
1428
  variant: r
@@ -1452,13 +1452,13 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1452
1452
  if (r === "selected")
1453
1453
  return "bg-action-selected-dark";
1454
1454
  }
1455
- }, Bc = ({
1455
+ }, Lc = ({
1456
1456
  radius: e
1457
1457
  }) => p({
1458
1458
  "rounded-full": e === "large",
1459
1459
  "rounded-md": e === "medium",
1460
1460
  "rounded-xs": e === "small"
1461
- }), Pc = ({
1461
+ }), Mc = ({
1462
1462
  mode: e,
1463
1463
  disabled: t,
1464
1464
  variant: r
@@ -1488,7 +1488,7 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1488
1488
  });
1489
1489
  if (r === "selected")
1490
1490
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
1491
- }, zc = ({
1491
+ }, Dc = ({
1492
1492
  mode: e,
1493
1493
  disabled: t,
1494
1494
  variant: r
@@ -1518,7 +1518,7 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1518
1518
  });
1519
1519
  if (r === "selected")
1520
1520
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
1521
- }, Vc = ({
1521
+ }, Bc = ({
1522
1522
  mode: e,
1523
1523
  noBorder: t,
1524
1524
  variant: r
@@ -1548,14 +1548,14 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1548
1548
  });
1549
1549
  if (r === "selected")
1550
1550
  return "border border-border-selected-dark";
1551
- }, Fc = ({
1551
+ }, Pc = ({
1552
1552
  focusMode: e
1553
1553
  }) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
1554
1554
  "focus:outline-focus-dark": e === "dark",
1555
1555
  "focus:outline-focus-light": e === "light",
1556
1556
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
1557
1557
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
1558
- }), Uc = ({
1558
+ }), zc = ({
1559
1559
  mode: e,
1560
1560
  raw: t,
1561
1561
  iconClassName: r
@@ -1567,11 +1567,11 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1567
1567
  "dark:text-copy-accent-dark": e === "system"
1568
1568
  },
1569
1569
  r
1570
- ), Hc = ({
1570
+ ), Vc = ({
1571
1571
  animated: e
1572
1572
  }) => p({
1573
1573
  "transition-opacity duration-300 ease-in": e
1574
- }), Gc = ({
1574
+ }), Fc = ({
1575
1575
  type: e,
1576
1576
  className: t,
1577
1577
  raw: r,
@@ -1591,15 +1591,15 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1591
1591
  animated: b
1592
1592
  }) => (h || (h = "primary"), r ? p(Ho, t) : p(
1593
1593
  Ho,
1594
- Dc({
1594
+ Oc({
1595
1595
  mode: a,
1596
1596
  variant: h,
1597
1597
  noBackground: u,
1598
1598
  truncate: m
1599
1599
  }),
1600
- Mc({ mode: a, noBackground: u, variant: h }),
1601
- Bc({ radius: y }),
1602
- $c({
1600
+ $c({ mode: a, noBackground: u, variant: h }),
1601
+ Lc({ radius: y }),
1602
+ Rc({
1603
1603
  type: e,
1604
1604
  size: l,
1605
1605
  labelRight: d,
@@ -1607,11 +1607,11 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1607
1607
  align: g,
1608
1608
  animated: b
1609
1609
  }),
1610
- Lc({ type: e, size: l, labelRight: d, labelLeft: f }),
1611
- Vc({ mode: a, variant: h, noBorder: i }),
1612
- Fc({ focusMode: o }),
1613
- Pc({ mode: a, variant: h, disabled: n }),
1614
- zc({ mode: a, variant: h, disabled: n }),
1610
+ Ac({ type: e, size: l, labelRight: d, labelLeft: f }),
1611
+ Bc({ mode: a, variant: h, noBorder: i }),
1612
+ Pc({ focusMode: o }),
1613
+ Mc({ mode: a, variant: h, disabled: n }),
1614
+ Dc({ mode: a, variant: h, disabled: n }),
1615
1615
  {
1616
1616
  "w-full": s,
1617
1617
  "disabled:cursor-not-allowed disabled:opacity-50": n
@@ -1620,30 +1620,30 @@ const Lr = "thead", Qa = "tfoot", Tt = "tbody", Fe = {
1620
1620
  "transition-[width] duration-300 ease-in-out": b
1621
1621
  }),
1622
1622
  t
1623
- )), jc = (e, t, r) => {
1623
+ )), Uc = (e, t, r) => {
1624
1624
  var a;
1625
1625
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
1626
- }, vs = U.forwardRef((e, t) => {
1626
+ }, bs = U.forwardRef((e, t) => {
1627
1627
  const { onClick: r, noInternalClick: a = !1, ...o } = e;
1628
1628
  return /* @__PURE__ */ c(
1629
1629
  "button",
1630
1630
  {
1631
1631
  ref: t,
1632
1632
  onClick: (n) => {
1633
- jc(n, a, r);
1633
+ Uc(n, a, r);
1634
1634
  },
1635
1635
  ...o
1636
1636
  }
1637
1637
  );
1638
1638
  });
1639
- vs.displayName = "BaseButton";
1640
- function Wc() {
1639
+ bs.displayName = "BaseButton";
1640
+ function Hc() {
1641
1641
  const e = L(!1);
1642
1642
  return P(() => (e.current = !0, () => {
1643
1643
  e.current = !1;
1644
1644
  }), []), Y(() => e.current, []);
1645
1645
  }
1646
- function qc(e) {
1646
+ function Gc(e) {
1647
1647
  return Ee(() => e.every((t) => t == null) ? () => {
1648
1648
  } : (t) => {
1649
1649
  e.forEach((r) => {
@@ -1651,7 +1651,7 @@ function qc(e) {
1651
1651
  });
1652
1652
  }, e);
1653
1653
  }
1654
- const Yc = {
1654
+ const jc = {
1655
1655
  x: 0,
1656
1656
  y: 0,
1657
1657
  width: 0,
@@ -1662,7 +1662,7 @@ const Yc = {
1662
1662
  right: 0
1663
1663
  };
1664
1664
  function jr(e) {
1665
- const t = Wc(), r = L(0), a = L(null), [o, n] = V(Yc), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
1665
+ const t = Hc(), r = L(0), a = L(null), [o, n] = V(jc), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
1666
1666
  const i = l[0];
1667
1667
  i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
1668
1668
  a.current && t() && n(i.contentRect);
@@ -1672,21 +1672,21 @@ function jr(e) {
1672
1672
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
1673
1673
  }), [s, e]), [a, o];
1674
1674
  }
1675
- const Jc = {
1675
+ const Wc = {
1676
1676
  small: 24,
1677
1677
  // w-6
1678
1678
  medium: 32,
1679
1679
  // w-8
1680
1680
  large: 48
1681
1681
  // w-12
1682
- }, Kc = {
1682
+ }, qc = {
1683
1683
  small: 8 * 2,
1684
1684
  // px-2 x 2
1685
1685
  medium: 12 * 2,
1686
1686
  // px-3 x 2
1687
1687
  large: 16 * 2
1688
1688
  // px-4 x 2
1689
- }, Qc = 2, _s = U.forwardRef(
1689
+ }, Yc = 2, vs = U.forwardRef(
1690
1690
  ({
1691
1691
  children: e,
1692
1692
  disabled: t = !1,
@@ -1710,7 +1710,7 @@ const Jc = {
1710
1710
  animated: k = !1,
1711
1711
  ...N
1712
1712
  }, I) => {
1713
- const _ = Gc({
1713
+ const _ = Fc({
1714
1714
  type: Xa,
1715
1715
  mode: r,
1716
1716
  focusMode: a,
@@ -1727,11 +1727,11 @@ const Jc = {
1727
1727
  radius: b,
1728
1728
  variant: v,
1729
1729
  animated: k
1730
- }), x = Uc({ mode: r, raw: l, iconClassName: w }), E = Hc({ animated: k }), [T, C] = jr(), [S, A] = jr(), [$, M] = jr(), F = L(0), D = L(null), W = qc([I, D]);
1730
+ }), x = zc({ mode: r, raw: l, iconClassName: w }), E = Vc({ animated: k }), [T, C] = jr(), [S, A] = jr(), [$, D] = jr(), F = L(0), M = L(null), W = Gc([I, M]);
1731
1731
  return ge(() => {
1732
- $ && $.current && k && (F.current = M.width + Kc[u] + (i ? 0 : Qc));
1733
- }, [M, $, u, i, k]), ge(() => {
1734
- D && D.current && k && (h && T && C.width > 0 ? (T.current && (T.current.style.opacity = "100"), D.current.style.width = `${C.width + F.current}px`) : m && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), D.current.style.width = `${A.width + F.current}px`) : (T.current && (T.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), D.current.style.width = `${Jc[u]}px`));
1732
+ $ && $.current && k && (F.current = D.width + qc[u] + (i ? 0 : Yc));
1733
+ }, [D, $, u, i, k]), ge(() => {
1734
+ M && M.current && k && (h && T && C.width > 0 ? (T.current && (T.current.style.opacity = "100"), M.current.style.width = `${C.width + F.current}px`) : m && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), M.current.style.width = `${A.width + F.current}px`) : (T.current && (T.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), M.current.style.width = `${Wc[u]}px`));
1735
1735
  }, [
1736
1736
  C,
1737
1737
  h,
@@ -1742,7 +1742,7 @@ const Jc = {
1742
1742
  u,
1743
1743
  k
1744
1744
  ]), /* @__PURE__ */ R(
1745
- vs,
1745
+ bs,
1746
1746
  {
1747
1747
  ref: W,
1748
1748
  className: _,
@@ -1780,7 +1780,7 @@ const Jc = {
1780
1780
  label: r,
1781
1781
  labelInnerClass: a
1782
1782
  }) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
1783
- _s.displayName = "ButtonIcon";
1783
+ vs.displayName = "ButtonIcon";
1784
1784
  /*!
1785
1785
  @versini/ui-button v6.0.4
1786
1786
  © 2025 gizmette.com
@@ -1794,7 +1794,7 @@ try {
1794
1794
  });
1795
1795
  } catch {
1796
1796
  }
1797
- const ws = U.forwardRef(
1797
+ const _s = U.forwardRef(
1798
1798
  ({
1799
1799
  children: e,
1800
1800
  mode: t = "system",
@@ -1820,7 +1820,7 @@ const ws = U.forwardRef(
1820
1820
  }
1821
1821
  ) : "";
1822
1822
  return /* @__PURE__ */ c("div", { className: s, children: /* @__PURE__ */ c(
1823
- _s,
1823
+ vs,
1824
1824
  {
1825
1825
  className: p("justify-center", r),
1826
1826
  ref: n,
@@ -1832,7 +1832,7 @@ const ws = U.forwardRef(
1832
1832
  ) });
1833
1833
  }
1834
1834
  );
1835
- ws.displayName = "ButtonSort";
1835
+ _s.displayName = "ButtonSort";
1836
1836
  const Za = ({
1837
1837
  children: e,
1838
1838
  fill: t,
@@ -1876,7 +1876,7 @@ try {
1876
1876
  });
1877
1877
  } catch {
1878
1878
  }
1879
- const Xc = ({
1879
+ const Jc = ({
1880
1880
  className: e,
1881
1881
  viewBox: t,
1882
1882
  title: r,
@@ -1902,7 +1902,7 @@ const Xc = ({
1902
1902
  /* @__PURE__ */ c("path", { d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v306.7l-41.4-41.3c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
1903
1903
  ]
1904
1904
  }
1905
- ), Zc = ({
1905
+ ), Kc = ({
1906
1906
  className: e,
1907
1907
  viewBox: t,
1908
1908
  title: r,
@@ -1928,7 +1928,7 @@ const Xc = ({
1928
1928
  /* @__PURE__ */ c("path", { d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7V64c0-17.7-14.3-32-32-32S96 46.3 96 64v301.7l-32.4-35.3c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96c6.1 6.6 14.6 10.4 23.6 10.4" })
1929
1929
  ]
1930
1930
  }
1931
- ), ed = ({
1931
+ ), Qc = ({
1932
1932
  className: e,
1933
1933
  viewBox: t,
1934
1934
  title: r,
@@ -1974,7 +1974,7 @@ const Bt = U.createContext({
1974
1974
  stickyHeader: !1,
1975
1975
  stickyFooter: !1,
1976
1976
  compact: !1
1977
- }), td = ({
1977
+ }), Xc = ({
1978
1978
  children: e,
1979
1979
  mode: t = "system",
1980
1980
  caption: r,
@@ -1987,7 +1987,7 @@ const Bt = U.createContext({
1987
1987
  stickyFooter: d,
1988
1988
  ...f
1989
1989
  }) => {
1990
- const u = Cc({
1990
+ const u = Tc({
1991
1991
  mode: t,
1992
1992
  className: n,
1993
1993
  wrapperClassName: s,
@@ -2013,33 +2013,33 @@ const Bt = U.createContext({
2013
2013
  )
2014
2014
  }
2015
2015
  );
2016
- }, rd = ({
2016
+ }, Zc = ({
2017
2017
  children: e,
2018
2018
  className: t,
2019
2019
  ...r
2020
2020
  }) => {
2021
2021
  const a = X(Bt);
2022
2022
  a.cellWrapper = Lr;
2023
- const o = Sc({
2023
+ const o = Ec({
2024
2024
  className: t,
2025
2025
  mode: a.mode,
2026
2026
  stickyHeader: a.stickyHeader
2027
2027
  });
2028
2028
  return /* @__PURE__ */ c("thead", { className: o, ...r, children: e });
2029
- }, ad = ({
2029
+ }, ed = ({
2030
2030
  children: e,
2031
2031
  className: t,
2032
2032
  ...r
2033
2033
  }) => {
2034
2034
  const a = X(Bt);
2035
2035
  a.cellWrapper = Qa;
2036
- const o = Nc({
2036
+ const o = Ic({
2037
2037
  className: t,
2038
2038
  mode: a.mode,
2039
2039
  stickyFooter: a.stickyFooter
2040
2040
  });
2041
2041
  return /* @__PURE__ */ c("tfoot", { className: o, ...r, children: e });
2042
- }, od = ({ children: e, ...t }) => {
2042
+ }, td = ({ children: e, ...t }) => {
2043
2043
  const r = X(Bt);
2044
2044
  return r.cellWrapper = Tt, /* @__PURE__ */ c("tbody", { ...t, children: e });
2045
2045
  }, Wr = ({
@@ -2047,7 +2047,7 @@ const Bt = U.createContext({
2047
2047
  className: t,
2048
2048
  ...r
2049
2049
  }) => {
2050
- const a = X(Bt), o = Rc({
2050
+ const a = X(Bt), o = Cc({
2051
2051
  mode: a.mode,
2052
2052
  cellWrapper: a.cellWrapper,
2053
2053
  className: t
@@ -2060,7 +2060,7 @@ const Bt = U.createContext({
2060
2060
  align: a,
2061
2061
  ...o
2062
2062
  }) => {
2063
- const n = X(Bt), s = t || (n.cellWrapper === Lr ? "th" : "td"), { mainClasses: l, alignClasses: i } = Ac({
2063
+ const n = X(Bt), s = t || (n.cellWrapper === Lr ? "th" : "td"), { mainClasses: l, alignClasses: i } = Sc({
2064
2064
  cellWrapper: n.cellWrapper,
2065
2065
  className: r,
2066
2066
  mode: n.mode,
@@ -2068,7 +2068,7 @@ const Bt = U.createContext({
2068
2068
  align: a
2069
2069
  });
2070
2070
  return a ? /* @__PURE__ */ c(s, { className: l, ...o, children: /* @__PURE__ */ c("div", { className: i, children: e }) }) : /* @__PURE__ */ c(s, { className: l, ...o, children: e });
2071
- }, nd = ({
2071
+ }, rd = ({
2072
2072
  align: e,
2073
2073
  children: t,
2074
2074
  buttonClassName: r,
@@ -2082,7 +2082,7 @@ const Bt = U.createContext({
2082
2082
  cellId: f,
2083
2083
  ...u
2084
2084
  }) => {
2085
- const h = Oc({ buttonClassName: r });
2085
+ const h = Nc({ buttonClassName: r });
2086
2086
  return /* @__PURE__ */ c(
2087
2087
  Ae,
2088
2088
  {
@@ -2092,7 +2092,7 @@ const Bt = U.createContext({
2092
2092
  "aria-sort": i === Fe.ASC && d === f ? "ascending" : i === Fe.DESC && d === f ? "descending" : "other",
2093
2093
  ...u,
2094
2094
  children: /* @__PURE__ */ c(
2095
- ws,
2095
+ _s,
2096
2096
  {
2097
2097
  active: d === f,
2098
2098
  className: h,
@@ -2103,7 +2103,7 @@ const Bt = U.createContext({
2103
2103
  mode: s,
2104
2104
  fullWidth: !0,
2105
2105
  labelRight: t,
2106
- children: i === Fe.ASC && d === f ? /* @__PURE__ */ c(ed, { className: "size-4", monotone: !0 }) : i === Fe.DESC && d === f ? /* @__PURE__ */ c(Zc, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(Xc, { className: "size-4", monotone: !0 })
2106
+ children: i === Fe.ASC && d === f ? /* @__PURE__ */ c(Qc, { className: "size-4", monotone: !0 }) : i === Fe.DESC && d === f ? /* @__PURE__ */ c(Kc, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(Jc, { className: "size-4", monotone: !0 })
2107
2107
  }
2108
2108
  )
2109
2109
  }
@@ -2111,39 +2111,39 @@ const Bt = U.createContext({
2111
2111
  }, he = [];
2112
2112
  for (let e = 0; e < 256; ++e)
2113
2113
  he.push((e + 256).toString(16).slice(1));
2114
- function sd(e, t = 0) {
2114
+ function ad(e, t = 0) {
2115
2115
  return (he[e[t + 0]] + he[e[t + 1]] + he[e[t + 2]] + he[e[t + 3]] + "-" + he[e[t + 4]] + he[e[t + 5]] + "-" + he[e[t + 6]] + he[e[t + 7]] + "-" + he[e[t + 8]] + he[e[t + 9]] + "-" + he[e[t + 10]] + he[e[t + 11]] + he[e[t + 12]] + he[e[t + 13]] + he[e[t + 14]] + he[e[t + 15]]).toLowerCase();
2116
2116
  }
2117
2117
  let qr;
2118
- const id = new Uint8Array(16);
2119
- function ld() {
2118
+ const od = new Uint8Array(16);
2119
+ function nd() {
2120
2120
  if (!qr) {
2121
2121
  if (typeof crypto > "u" || !crypto.getRandomValues)
2122
2122
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
2123
2123
  qr = crypto.getRandomValues.bind(crypto);
2124
2124
  }
2125
- return qr(id);
2125
+ return qr(od);
2126
2126
  }
2127
- const cd = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), jo = { randomUUID: cd };
2127
+ const sd = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), jo = { randomUUID: sd };
2128
2128
  function ot(e, t, r) {
2129
2129
  var o;
2130
2130
  if (jo.randomUUID && !e)
2131
2131
  return jo.randomUUID();
2132
2132
  e = e || {};
2133
- const a = e.random ?? ((o = e.rng) == null ? void 0 : o.call(e)) ?? ld();
2133
+ const a = e.random ?? ((o = e.rng) == null ? void 0 : o.call(e)) ?? nd();
2134
2134
  if (a.length < 16)
2135
2135
  throw new Error("Random bytes length must be >= 16");
2136
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, sd(a);
2136
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, ad(a);
2137
2137
  }
2138
- function dd(e) {
2138
+ function id(e) {
2139
2139
  if (typeof document > "u") return;
2140
2140
  let t = document.head || document.getElementsByTagName("head")[0], r = document.createElement("style");
2141
2141
  r.type = "text/css", t.firstChild ? t.insertBefore(r, t.firstChild) : t.appendChild(r), r.styleSheet ? r.styleSheet.cssText = e : r.appendChild(document.createTextNode(e));
2142
2142
  }
2143
- dd(`: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)}}
2143
+ id(`: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)}}
2144
2144
  `);
2145
- var rr = (e) => typeof e == "number" && !isNaN(e), yt = (e) => typeof e == "string", Xe = (e) => typeof e == "function", ud = (e) => yt(e) || rr(e), xa = (e) => yt(e) || Xe(e) ? e : null, fd = (e, t) => e === !1 || rr(e) && e > 0 ? e : t, Ta = (e) => $r(e) || yt(e) || Xe(e) || rr(e);
2146
- function hd(e, t, r = 300) {
2145
+ var rr = (e) => typeof e == "number" && !isNaN(e), yt = (e) => typeof e == "string", Xe = (e) => typeof e == "function", ld = (e) => yt(e) || rr(e), xa = (e) => yt(e) || Xe(e) ? e : null, cd = (e, t) => e === !1 || rr(e) && e > 0 ? e : t, Ta = (e) => $r(e) || yt(e) || Xe(e) || rr(e);
2146
+ function dd(e, t, r = 300) {
2147
2147
  let { scrollHeight: a, style: o } = e;
2148
2148
  requestAnimationFrame(() => {
2149
2149
  o.minHeight = "initial", o.height = a + "px", o.transition = `all ${r}ms`, requestAnimationFrame(() => {
@@ -2151,7 +2151,7 @@ function hd(e, t, r = 300) {
2151
2151
  });
2152
2152
  });
2153
2153
  }
2154
- function ks({ enter: e, exit: t, appendPosition: r = !1, collapse: a = !0, collapseDuration: o = 300 }) {
2154
+ function ws({ enter: e, exit: t, appendPosition: r = !1, collapse: a = !0, collapseDuration: o = 300 }) {
2155
2155
  return function({ children: n, position: s, preventExitTransition: l, done: i, nodeRef: d, isIn: f, playToast: u }) {
2156
2156
  let h = r ? `${e}--${s}` : e, m = r ? `${t}--${s}` : t, g = L(0);
2157
2157
  return ge(() => {
@@ -2161,24 +2161,24 @@ function ks({ enter: e, exit: t, appendPosition: r = !1, collapse: a = !0, colla
2161
2161
  y.classList.add(...b), y.addEventListener("animationend", v), y.addEventListener("animationcancel", v);
2162
2162
  }, []), P(() => {
2163
2163
  let y = d.current, b = () => {
2164
- y.removeEventListener("animationend", b), a ? hd(y, i, o) : i();
2164
+ y.removeEventListener("animationend", b), a ? dd(y, i, o) : i();
2165
2165
  };
2166
2166
  f || (l ? b() : (g.current = 1, y.className += ` ${m}`, y.addEventListener("animationend", b)));
2167
2167
  }, [f]), U.createElement(U.Fragment, null, n);
2168
2168
  };
2169
2169
  }
2170
2170
  function Wo(e, t) {
2171
- return { content: xs(e.content, e.props), containerId: e.props.containerId, id: e.props.toastId, theme: e.props.theme, type: e.props.type, data: e.props.data || {}, isLoading: e.props.isLoading, icon: e.props.icon, reason: e.removalReason, status: t };
2171
+ return { content: ks(e.content, e.props), containerId: e.props.containerId, id: e.props.toastId, theme: e.props.theme, type: e.props.type, data: e.props.data || {}, isLoading: e.props.isLoading, icon: e.props.icon, reason: e.removalReason, status: t };
2172
2172
  }
2173
- function xs(e, t, r = !1) {
2173
+ function ks(e, t, r = !1) {
2174
2174
  return $r(e) && !yt(e.type) ? Ya(e, { closeToast: t.closeToast, toastProps: t, data: t.data, isPaused: r }) : Xe(e) ? e({ closeToast: t.closeToast, toastProps: t, data: t.data, isPaused: r }) : e;
2175
2175
  }
2176
- function md({ closeToast: e, theme: t, ariaLabel: r = "close" }) {
2176
+ function ud({ closeToast: e, theme: t, ariaLabel: r = "close" }) {
2177
2177
  return U.createElement("button", { className: `Toastify__close-button Toastify__close-button--${t}`, type: "button", onClick: (a) => {
2178
2178
  a.stopPropagation(), e(!0);
2179
2179
  }, "aria-label": r }, U.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, U.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" })));
2180
2180
  }
2181
- function pd({ delay: e, isRunning: t, closeToast: r, type: a = "default", hide: o, className: n, controlledProgress: s, progress: l, rtl: i, isIn: d, theme: f }) {
2181
+ function fd({ delay: e, isRunning: t, closeToast: r, type: a = "default", hide: o, className: n, controlledProgress: s, progress: l, rtl: i, isIn: d, theme: f }) {
2182
2182
  let u = o || s && l === 0, h = { animationDuration: `${e}ms`, animationPlayState: t ? "running" : "paused" };
2183
2183
  s && (h.transform = `scaleX(${l})`);
2184
2184
  let m = p("Toastify__progress-bar", s ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${f}`, `Toastify__progress-bar--${a}`, { "Toastify__progress-bar--rtl": i }), g = Xe(n) ? n({ rtl: i, type: a, defaultClassName: m }) : p(m, n), y = { [s && l >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: s && l < 1 ? null : () => {
@@ -2186,8 +2186,8 @@ function pd({ delay: e, isRunning: t, closeToast: r, type: a = "default", hide:
2186
2186
  } };
2187
2187
  return U.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": u }, U.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${a}` }), U.createElement("div", { role: "progressbar", "aria-hidden": u ? "true" : "false", "aria-label": "notification timer", className: g, style: h, ...y }));
2188
2188
  }
2189
- var gd = 1, Ts = () => `${gd++}`;
2190
- function yd(e, t, r) {
2189
+ var hd = 1, xs = () => `${hd++}`;
2190
+ function md(e, t, r) {
2191
2191
  let a = 1, o = 0, n = [], s = [], l = t, i = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set(), f = (w) => (d.add(w), () => d.delete(w)), u = () => {
2192
2192
  s = Array.from(i.values()), d.forEach((w) => w());
2193
2193
  }, h = ({ containerId: w, toastId: k, updateId: N }) => {
@@ -2219,7 +2219,7 @@ function yd(e, t, r) {
2219
2219
  if (h(k)) return;
2220
2220
  let { toastId: N, updateId: I, data: _, staleId: x, delay: E } = k, T = I == null;
2221
2221
  T && o++;
2222
- let C = { ...l, style: l.toastStyle, key: a++, ...Object.fromEntries(Object.entries(k).filter(([A, $]) => $ != null)), toastId: N, updateId: I, data: _, isIn: !1, className: xa(k.className || l.toastClassName), progressClassName: xa(k.progressClassName || l.progressClassName), autoClose: k.isLoading ? !1 : fd(k.autoClose, l.autoClose), closeToast(A) {
2222
+ let C = { ...l, style: l.toastStyle, key: a++, ...Object.fromEntries(Object.entries(k).filter(([A, $]) => $ != null)), toastId: N, updateId: I, data: _, isIn: !1, className: xa(k.className || l.toastClassName), progressClassName: xa(k.progressClassName || l.progressClassName), autoClose: k.isLoading ? !1 : cd(k.autoClose, l.autoClose), closeToast(A) {
2223
2223
  i.get(N).removalReason = A, y(N);
2224
2224
  }, deleteToast() {
2225
2225
  let A = i.get(N);
@@ -2246,15 +2246,15 @@ function yd(e, t, r) {
2246
2246
  return (k = i.get(w)) == null ? void 0 : k.isActive;
2247
2247
  }, getSnapshot: () => s };
2248
2248
  }
2249
- var _e = /* @__PURE__ */ new Map(), Yt = [], Ea = /* @__PURE__ */ new Set(), bd = (e) => Ea.forEach((t) => t(e)), Es = () => _e.size > 0;
2250
- function vd() {
2251
- Yt.forEach((e) => Cs(e.content, e.options)), Yt = [];
2249
+ var _e = /* @__PURE__ */ new Map(), Yt = [], Ea = /* @__PURE__ */ new Set(), pd = (e) => Ea.forEach((t) => t(e)), Ts = () => _e.size > 0;
2250
+ function gd() {
2251
+ Yt.forEach((e) => Is(e.content, e.options)), Yt = [];
2252
2252
  }
2253
- var _d = (e, { containerId: t }) => {
2253
+ var yd = (e, { containerId: t }) => {
2254
2254
  var r;
2255
2255
  return (r = _e.get(t || 1)) == null ? void 0 : r.toasts.get(e);
2256
2256
  };
2257
- function Is(e, t) {
2257
+ function Es(e, t) {
2258
2258
  var r;
2259
2259
  if (t) return !!((r = _e.get(t)) != null && r.isToastActive(e));
2260
2260
  let a = !1;
@@ -2262,12 +2262,12 @@ function Is(e, t) {
2262
2262
  o.isToastActive(e) && (a = !0);
2263
2263
  }), a;
2264
2264
  }
2265
- function wd(e) {
2266
- if (!Es()) {
2265
+ function bd(e) {
2266
+ if (!Ts()) {
2267
2267
  Yt = Yt.filter((t) => e != null && t.options.toastId !== e);
2268
2268
  return;
2269
2269
  }
2270
- if (e == null || ud(e)) _e.forEach((t) => {
2270
+ if (e == null || ld(e)) _e.forEach((t) => {
2271
2271
  t.removeToast(e);
2272
2272
  });
2273
2273
  else if (e && ("containerId" in e || "id" in e)) {
@@ -2277,32 +2277,32 @@ function wd(e) {
2277
2277
  });
2278
2278
  }
2279
2279
  }
2280
- var kd = (e = {}) => {
2280
+ var vd = (e = {}) => {
2281
2281
  _e.forEach((t) => {
2282
2282
  t.props.limit && (!e.containerId || t.id === e.containerId) && t.clearQueue();
2283
2283
  });
2284
2284
  };
2285
- function Cs(e, t) {
2286
- Ta(e) && (Es() || Yt.push({ content: e, options: t }), _e.forEach((r) => {
2285
+ function Is(e, t) {
2286
+ Ta(e) && (Ts() || Yt.push({ content: e, options: t }), _e.forEach((r) => {
2287
2287
  r.buildToast(e, t);
2288
2288
  }));
2289
2289
  }
2290
- function xd(e) {
2290
+ function _d(e) {
2291
2291
  var t;
2292
2292
  (t = _e.get(e.containerId || 1)) == null || t.setToggle(e.id, e.fn);
2293
2293
  }
2294
- function Ss(e, t) {
2294
+ function Cs(e, t) {
2295
2295
  _e.forEach((r) => {
2296
2296
  (t == null || !(t != null && t.containerId) || (t == null ? void 0 : t.containerId) === r.id) && r.toggle(e, t == null ? void 0 : t.id);
2297
2297
  });
2298
2298
  }
2299
- function Td(e) {
2299
+ function wd(e) {
2300
2300
  let t = e.containerId || 1;
2301
2301
  return { subscribe(r) {
2302
- let a = yd(t, e, bd);
2302
+ let a = md(t, e, pd);
2303
2303
  _e.set(t, a);
2304
2304
  let o = a.observe(r);
2305
- return vd(), () => {
2305
+ return gd(), () => {
2306
2306
  o(), _e.delete(t);
2307
2307
  };
2308
2308
  }, setProps(r) {
@@ -2313,28 +2313,28 @@ function Td(e) {
2313
2313
  return (r = _e.get(t)) == null ? void 0 : r.getSnapshot();
2314
2314
  } };
2315
2315
  }
2316
- function Ed(e) {
2316
+ function kd(e) {
2317
2317
  return Ea.add(e), () => {
2318
2318
  Ea.delete(e);
2319
2319
  };
2320
2320
  }
2321
- function Id(e) {
2322
- return e && (yt(e.toastId) || rr(e.toastId)) ? e.toastId : Ts();
2321
+ function xd(e) {
2322
+ return e && (yt(e.toastId) || rr(e.toastId)) ? e.toastId : xs();
2323
2323
  }
2324
2324
  function ar(e, t) {
2325
- return Cs(e, t), t.toastId;
2325
+ return Is(e, t), t.toastId;
2326
2326
  }
2327
- function Dr(e, t) {
2328
- return { ...t, type: t && t.type || e, toastId: Id(t) };
2327
+ function Mr(e, t) {
2328
+ return { ...t, type: t && t.type || e, toastId: xd(t) };
2329
2329
  }
2330
- function Mr(e) {
2331
- return (t, r) => ar(t, Dr(e, r));
2330
+ function Dr(e) {
2331
+ return (t, r) => ar(t, Mr(e, r));
2332
2332
  }
2333
2333
  function Q(e, t) {
2334
- return ar(e, Dr("default", t));
2334
+ return ar(e, Mr("default", t));
2335
2335
  }
2336
- Q.loading = (e, t) => ar(e, Dr("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t }));
2337
- function Cd(e, { pending: t, error: r, success: a }, o) {
2336
+ Q.loading = (e, t) => ar(e, Mr("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t }));
2337
+ function Td(e, { pending: t, error: r, success: a }, o) {
2338
2338
  let n;
2339
2339
  t && (n = yt(t) ? Q.loading(t, o) : Q.loading(t.render, { ...o, ...t }));
2340
2340
  let s = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, l = (d, f, u) => {
@@ -2347,23 +2347,23 @@ function Cd(e, { pending: t, error: r, success: a }, o) {
2347
2347
  }, i = Xe(e) ? e() : e;
2348
2348
  return i.then((d) => l("success", a, d)).catch((d) => l("error", r, d)), i;
2349
2349
  }
2350
- Q.promise = Cd;
2351
- Q.success = Mr("success");
2352
- Q.info = Mr("info");
2353
- Q.error = Mr("error");
2354
- Q.warning = Mr("warning");
2350
+ Q.promise = Td;
2351
+ Q.success = Dr("success");
2352
+ Q.info = Dr("info");
2353
+ Q.error = Dr("error");
2354
+ Q.warning = Dr("warning");
2355
2355
  Q.warn = Q.warning;
2356
- Q.dark = (e, t) => ar(e, Dr("default", { theme: "dark", ...t }));
2357
- function Sd(e) {
2358
- wd(e);
2356
+ Q.dark = (e, t) => ar(e, Mr("default", { theme: "dark", ...t }));
2357
+ function Ed(e) {
2358
+ bd(e);
2359
2359
  }
2360
- Q.dismiss = Sd;
2361
- Q.clearWaitingQueue = kd;
2362
- Q.isActive = Is;
2360
+ Q.dismiss = Ed;
2361
+ Q.clearWaitingQueue = vd;
2362
+ Q.isActive = Es;
2363
2363
  Q.update = (e, t = {}) => {
2364
- let r = _d(e, t);
2364
+ let r = yd(e, t);
2365
2365
  if (r) {
2366
- let { props: a, content: o } = r, n = { delay: 100, ...a, ...t, toastId: t.toastId || e, updateId: Ts() };
2366
+ let { props: a, content: o } = r, n = { delay: 100, ...a, ...t, toastId: t.toastId || e, updateId: xs() };
2367
2367
  n.toastId !== e && (n.staleId = e);
2368
2368
  let s = n.render || o;
2369
2369
  delete n.render, ar(s, n);
@@ -2372,14 +2372,14 @@ Q.update = (e, t = {}) => {
2372
2372
  Q.done = (e) => {
2373
2373
  Q.update(e, { progress: 1 });
2374
2374
  };
2375
- Q.onChange = Ed;
2376
- Q.play = (e) => Ss(!0, e);
2377
- Q.pause = (e) => Ss(!1, e);
2378
- function Nd(e) {
2375
+ Q.onChange = kd;
2376
+ Q.play = (e) => Cs(!0, e);
2377
+ Q.pause = (e) => Cs(!1, e);
2378
+ function Id(e) {
2379
2379
  var t;
2380
- let { subscribe: r, getSnapshot: a, setProps: o } = L(Td(e)).current;
2380
+ let { subscribe: r, getSnapshot: a, setProps: o } = L(wd(e)).current;
2381
2381
  o(e);
2382
- let n = (t = Kn(r, a, a)) == null ? void 0 : t.slice();
2382
+ let n = (t = Jn(r, a, a)) == null ? void 0 : t.slice();
2383
2383
  function s(l) {
2384
2384
  if (!n) return [];
2385
2385
  let i = /* @__PURE__ */ new Map();
@@ -2388,11 +2388,11 @@ function Nd(e) {
2388
2388
  i.has(f) || i.set(f, []), i.get(f).push(d);
2389
2389
  }), Array.from(i, (d) => l(d[0], d[1]));
2390
2390
  }
2391
- return { getToastToRender: s, isToastActive: Is, count: n == null ? void 0 : n.length };
2391
+ return { getToastToRender: s, isToastActive: Es, count: n == null ? void 0 : n.length };
2392
2392
  }
2393
- function Rd(e) {
2393
+ function Cd(e) {
2394
2394
  let [t, r] = V(!1), [a, o] = V(!1), n = L(null), s = L({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: l, pauseOnHover: i, closeToast: d, onClick: f, closeOnClick: u } = e;
2395
- xd({ id: e.toastId, containerId: e.containerId, fn: r }), P(() => {
2395
+ _d({ id: e.toastId, containerId: e.containerId, fn: r }), P(() => {
2396
2396
  if (e.pauseOnFocusLoss) return h(), () => {
2397
2397
  m();
2398
2398
  };
@@ -2450,33 +2450,33 @@ function Rd(e) {
2450
2450
  f && f(x), s.canCloseOnClick && d(!0);
2451
2451
  }), { playToast: b, pauseToast: v, isRunning: t, preventExitTransition: a, toastRef: n, eventHandlers: _ };
2452
2452
  }
2453
- var Ad = typeof window < "u" ? ge : P, Br = ({ theme: e, type: t, isLoading: r, ...a }) => U.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: e === "colored" ? "currentColor" : `var(--toastify-icon-color-${t})`, ...a });
2454
- function Od(e) {
2453
+ var Sd = typeof window < "u" ? ge : P, Br = ({ theme: e, type: t, isLoading: r, ...a }) => U.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: e === "colored" ? "currentColor" : `var(--toastify-icon-color-${t})`, ...a });
2454
+ function Nd(e) {
2455
2455
  return U.createElement(Br, { ...e }, U.createElement("path", { d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z" }));
2456
2456
  }
2457
- function $d(e) {
2457
+ function Rd(e) {
2458
2458
  return U.createElement(Br, { ...e }, U.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" }));
2459
2459
  }
2460
- function Ld(e) {
2460
+ function Ad(e) {
2461
2461
  return U.createElement(Br, { ...e }, U.createElement("path", { d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z" }));
2462
2462
  }
2463
- function Dd(e) {
2463
+ function Od(e) {
2464
2464
  return U.createElement(Br, { ...e }, U.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
2465
2465
  }
2466
- function Md() {
2466
+ function $d() {
2467
2467
  return U.createElement("div", { className: "Toastify__spinner" });
2468
2468
  }
2469
- var Ia = { info: $d, warning: Od, success: Ld, error: Dd, spinner: Md }, Bd = (e) => e in Ia;
2470
- function Pd({ theme: e, type: t, isLoading: r, icon: a }) {
2469
+ var Ia = { info: Rd, warning: Nd, success: Ad, error: Od, spinner: $d }, Ld = (e) => e in Ia;
2470
+ function Md({ theme: e, type: t, isLoading: r, icon: a }) {
2471
2471
  let o = null, n = { theme: e, type: t };
2472
- return a === !1 || (Xe(a) ? o = a({ ...n, isLoading: r }) : $r(a) ? o = Ya(a, n) : r ? o = Ia.spinner() : Bd(t) && (o = Ia[t](n))), o;
2472
+ return a === !1 || (Xe(a) ? o = a({ ...n, isLoading: r }) : $r(a) ? o = Ya(a, n) : r ? o = Ia.spinner() : Ld(t) && (o = Ia[t](n))), o;
2473
2473
  }
2474
- var zd = (e) => {
2475
- let { isRunning: t, preventExitTransition: r, toastRef: a, eventHandlers: o, playToast: n } = Rd(e), { closeButton: s, children: l, autoClose: i, onClick: d, type: f, hideProgressBar: u, closeToast: h, transition: m, position: g, className: y, style: b, progressClassName: v, updateId: w, role: k, progress: N, rtl: I, toastId: _, deleteToast: x, isIn: E, isLoading: T, closeOnClick: C, theme: S, ariaLabel: A } = e, $ = p("Toastify__toast", `Toastify__toast-theme--${S}`, `Toastify__toast--${f}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": C }), M = Xe(y) ? y({ rtl: I, position: g, type: f, defaultClassName: $ }) : p($, y), F = Pd(e), D = !!N || !i, W = { closeToast: h, type: f, theme: S }, G = null;
2476
- return s === !1 || (Xe(s) ? G = s(W) : $r(s) ? G = Ya(s, W) : G = md(W)), U.createElement(m, { isIn: E, done: x, position: g, preventExitTransition: r, nodeRef: a, playToast: n }, U.createElement("div", { id: _, tabIndex: 0, onClick: d, "data-in": E, className: M, ...o, style: b, ref: a, ...E && { role: k, "aria-label": A } }, F != null && U.createElement("div", { className: p("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !T }) }, F), xs(l, e, !t), G, !e.customProgressBar && U.createElement(pd, { ...w && !D ? { key: `p-${w}` } : {}, rtl: I, theme: S, delay: i, isRunning: t, isIn: E, closeToast: h, hide: u, type: f, className: v, controlledProgress: D, progress: N || 0 })));
2477
- }, Ns = (e, t = !1) => ({ enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t }), Vd = ks(Ns("bounce", !0)), Cr = ks(Ns("slide", !0)), Fd = { position: "top-right", transition: Vd, 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" };
2474
+ var Dd = (e) => {
2475
+ let { isRunning: t, preventExitTransition: r, toastRef: a, eventHandlers: o, playToast: n } = Cd(e), { closeButton: s, children: l, autoClose: i, onClick: d, type: f, hideProgressBar: u, closeToast: h, transition: m, position: g, className: y, style: b, progressClassName: v, updateId: w, role: k, progress: N, rtl: I, toastId: _, deleteToast: x, isIn: E, isLoading: T, closeOnClick: C, theme: S, ariaLabel: A } = e, $ = p("Toastify__toast", `Toastify__toast-theme--${S}`, `Toastify__toast--${f}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": C }), D = Xe(y) ? y({ rtl: I, position: g, type: f, defaultClassName: $ }) : p($, y), F = Md(e), M = !!N || !i, W = { closeToast: h, type: f, theme: S }, G = null;
2476
+ return s === !1 || (Xe(s) ? G = s(W) : $r(s) ? G = Ya(s, W) : G = ud(W)), U.createElement(m, { isIn: E, done: x, position: g, preventExitTransition: r, nodeRef: a, playToast: n }, U.createElement("div", { id: _, tabIndex: 0, onClick: d, "data-in": E, className: D, ...o, style: b, ref: a, ...E && { role: k, "aria-label": A } }, F != null && U.createElement("div", { className: p("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !T }) }, F), ks(l, e, !t), G, !e.customProgressBar && U.createElement(fd, { ...w && !M ? { key: `p-${w}` } : {}, rtl: I, theme: S, delay: i, isRunning: t, isIn: E, closeToast: h, hide: u, type: f, className: v, controlledProgress: M, progress: N || 0 })));
2477
+ }, Ss = (e, t = !1) => ({ enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t }), Bd = ws(Ss("bounce", !0)), Cr = ws(Ss("slide", !0)), Pd = { position: "top-right", transition: Bd, 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" };
2478
2478
  function Ca(e) {
2479
- let t = { ...Fd, ...e }, r = e.stacked, [a, o] = V(!0), n = L(null), { getToastToRender: s, isToastActive: l, count: i } = Nd(t), { className: d, style: f, rtl: u, containerId: h, hotKeys: m } = t;
2479
+ let t = { ...Pd, ...e }, r = e.stacked, [a, o] = V(!0), n = L(null), { getToastToRender: s, isToastActive: l, count: i } = Id(t), { className: d, style: f, rtl: u, containerId: h, hotKeys: m } = t;
2480
2480
  function g(b) {
2481
2481
  let v = p("Toastify__toast-container", `Toastify__toast-container--${b}`, { "Toastify__toast-container--rtl": u });
2482
2482
  return Xe(d) ? d({ position: b, rtl: u, defaultClassName: v }) : p(v, xa(d));
@@ -2484,7 +2484,7 @@ function Ca(e) {
2484
2484
  function y() {
2485
2485
  r && (o(!0), Q.play());
2486
2486
  }
2487
- return Ad(() => {
2487
+ return Sd(() => {
2488
2488
  var b;
2489
2489
  if (r) {
2490
2490
  let v = n.current.querySelectorAll('[data-in="true"]'), w = 12, k = (b = t.position) == null ? void 0 : b.includes("top"), N = 0, I = 0;
@@ -2508,10 +2508,10 @@ function Ca(e) {
2508
2508
  r && (o(!1), Q.pause());
2509
2509
  }, onMouseLeave: y, "aria-live": "polite", "aria-atomic": "false", "aria-relevant": "additions text", "aria-label": t["aria-label"] }, s((b, v) => {
2510
2510
  let w = v.length ? { ...f } : { ...f, pointerEvents: "none" };
2511
- return U.createElement("div", { tabIndex: -1, className: g(b), "data-stacked": r, style: w, key: `c-${b}` }, v.map(({ content: k, props: N }) => U.createElement(zd, { ...N, stacked: r, collapseAll: y, isIn: l(N.toastId, N.containerId), key: `t-${N.key}` }, k)));
2511
+ return U.createElement("div", { tabIndex: -1, className: g(b), "data-stacked": r, style: w, key: `c-${b}` }, v.map(({ content: k, props: N }) => U.createElement(Dd, { ...N, stacked: r, collapseAll: y, isIn: l(N.toastId, N.containerId), key: `t-${N.key}` }, k)));
2512
2512
  }));
2513
2513
  }
2514
- const Wt = "FOOTER_BOTTOM", Sa = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", Rs = "APP_SET_FOOTER_HEIGHT", Ud = (e, t) => {
2514
+ const Wt = "FOOTER_BOTTOM", Sa = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", Ns = "APP_SET_FOOTER_HEIGHT", zd = (e, t) => {
2515
2515
  switch (t.type) {
2516
2516
  case xr:
2517
2517
  return {
@@ -2519,7 +2519,7 @@ const Wt = "FOOTER_BOTTOM", Sa = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", R
2519
2519
  footerPosition: t.payload.footerPosition,
2520
2520
  footerOffset: t.payload.footerOffset
2521
2521
  };
2522
- case Rs:
2522
+ case Ns:
2523
2523
  return {
2524
2524
  ...e,
2525
2525
  footerHeight: t.payload.footerHeight
@@ -2527,10 +2527,10 @@ const Wt = "FOOTER_BOTTOM", Sa = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", R
2527
2527
  default:
2528
2528
  return e;
2529
2529
  }
2530
- }, Et = "CHAT_SET_STATUS", As = "CHAT_SET_USAGE", eo = "CHAT_SET_PROVIDER", vt = "CHAT_RESET", Hd = (e, t) => {
2530
+ }, Et = "CHAT_SET_STATUS", Rs = "CHAT_SET_USAGE", eo = "CHAT_SET_PROVIDER", vt = "CHAT_RESET", Vd = (e, t) => {
2531
2531
  var r, a, o, n, s;
2532
2532
  switch (t.type) {
2533
- case As:
2533
+ case Rs:
2534
2534
  return {
2535
2535
  ...e,
2536
2536
  usage: t.payload.usage
@@ -2569,9 +2569,9 @@ const Wt = "FOOTER_BOTTOM", Sa = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", R
2569
2569
  default:
2570
2570
  return e;
2571
2571
  }
2572
- }, Gd = (e, t) => {
2572
+ }, Fd = (e, t) => {
2573
2573
  switch (t == null ? void 0 : t.type) {
2574
- case Bn:
2574
+ case Pn:
2575
2575
  return {
2576
2576
  searchString: t.payload.searchString,
2577
2577
  sortedCell: e.sortedCell,
@@ -2586,14 +2586,14 @@ const Wt = "FOOTER_BOTTOM", Sa = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", R
2586
2586
  default:
2587
2587
  return e;
2588
2588
  }
2589
- }, jd = (e, t) => {
2589
+ }, Ud = (e, t) => {
2590
2590
  switch (t == null ? void 0 : t.type) {
2591
- case zn:
2591
+ case Vn:
2592
2592
  return {
2593
2593
  prompt: t.payload.prompt,
2594
2594
  lastTriggeredTimestamp: e.lastTriggeredTimestamp
2595
2595
  };
2596
- case Pn:
2596
+ case zn:
2597
2597
  return {
2598
2598
  prompt: "",
2599
2599
  lastTriggeredTimestamp: (/* @__PURE__ */ new Date()).getTime()
@@ -2769,12 +2769,12 @@ const Wt = "FOOTER_BOTTOM", Sa = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", R
2769
2769
  schema: Pe.GET_USAGE,
2770
2770
  method: "usage"
2771
2771
  }
2772
- }, Os = process.env.PUBLIC_SASSY_API_SERVER_URL, Sr = async ({
2772
+ }, As = process.env.PUBLIC_SASSY_API_SERVER_URL, Sr = async ({
2773
2773
  query: e,
2774
2774
  data: t,
2775
2775
  headers: r = {},
2776
2776
  ...a
2777
- }) => await fetch(`${Os}/graphql`, {
2777
+ }) => await fetch(`${As}/graphql`, {
2778
2778
  method: "POST",
2779
2779
  credentials: "include",
2780
2780
  headers: {
@@ -2818,7 +2818,7 @@ const Wt = "FOOTER_BOTTOM", Sa = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", R
2818
2818
  } catch (a) {
2819
2819
  return console.error(a), { status: 500, data: [] };
2820
2820
  }
2821
- }, $s = async ({
2821
+ }, Os = async ({
2822
2822
  provider: e,
2823
2823
  accessToken: t,
2824
2824
  username: r
@@ -2834,7 +2834,7 @@ const Wt = "FOOTER_BOTTOM", Sa = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", R
2834
2834
  });
2835
2835
  } catch {
2836
2836
  }
2837
- }, Ls = () => tr({
2837
+ }, $s = () => tr({
2838
2838
  queryKey: ["capabilities"],
2839
2839
  queryFn: async () => await nr({
2840
2840
  type: $e.GET_SERVER_CAPABILITIES,
@@ -2852,7 +2852,7 @@ const Wt = "FOOTER_BOTTOM", Sa = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", R
2852
2852
  type: $e.GET_USER_PREFERENCES,
2853
2853
  getAccessToken: t
2854
2854
  })
2855
- }), Wd = ({
2855
+ }), Hd = ({
2856
2856
  user: e,
2857
2857
  getAccessToken: t
2858
2858
  }) => tr({
@@ -2886,7 +2886,7 @@ const Wt = "FOOTER_BOTTOM", Sa = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", R
2886
2886
  type: $e.GET_CHATS,
2887
2887
  getAccessToken: a
2888
2888
  })
2889
- }), qd = ({
2889
+ }), Gd = ({
2890
2890
  user: e,
2891
2891
  month: t,
2892
2892
  year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
@@ -2941,7 +2941,7 @@ const Wt = "FOOTER_BOTTOM", Sa = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", R
2941
2941
  return Promise.reject(o);
2942
2942
  }
2943
2943
  };
2944
- var Ds = "vercel.ai.error", Yd = Symbol.for(Ds), Ms, Jd = class Bs extends Error {
2944
+ var Ls = "vercel.ai.error", jd = Symbol.for(Ls), Ms, Wd = class Ds extends Error {
2945
2945
  /**
2946
2946
  * Creates an AI SDK Error.
2947
2947
  *
@@ -2963,56 +2963,56 @@ var Ds = "vercel.ai.error", Yd = Symbol.for(Ds), Ms, Jd = class Bs extends Error
2963
2963
  * @returns {boolean} True if the error is an AI SDK Error, false otherwise.
2964
2964
  */
2965
2965
  static isInstance(t) {
2966
- return Bs.hasMarker(t, Ds);
2966
+ return Ds.hasMarker(t, Ls);
2967
2967
  }
2968
2968
  static hasMarker(t, r) {
2969
2969
  const a = Symbol.for(r);
2970
2970
  return t != null && typeof t == "object" && a in t && typeof t[a] == "boolean" && t[a] === !0;
2971
2971
  }
2972
2972
  };
2973
- Ms = Yd;
2974
- var $t = Jd;
2975
- function Ps(e) {
2973
+ Ms = jd;
2974
+ var $t = Wd;
2975
+ function Bs(e) {
2976
2976
  return e == null ? "unknown error" : typeof e == "string" ? e : e instanceof Error ? e.message : JSON.stringify(e);
2977
2977
  }
2978
- var zs = "AI_InvalidArgumentError", Vs = `vercel.ai.error.${zs}`, Kd = Symbol.for(Vs), Fs, Qd = class extends $t {
2978
+ var Ps = "AI_InvalidArgumentError", zs = `vercel.ai.error.${Ps}`, qd = Symbol.for(zs), Vs, Yd = class extends $t {
2979
2979
  constructor({
2980
2980
  message: e,
2981
2981
  cause: t,
2982
2982
  argument: r
2983
2983
  }) {
2984
- super({ name: zs, message: e, cause: t }), this[Fs] = !0, this.argument = r;
2984
+ super({ name: Ps, message: e, cause: t }), this[Vs] = !0, this.argument = r;
2985
2985
  }
2986
2986
  static isInstance(e) {
2987
- return $t.hasMarker(e, Vs);
2987
+ return $t.hasMarker(e, zs);
2988
2988
  }
2989
2989
  };
2990
- Fs = Kd;
2991
- var Us = "AI_JSONParseError", Hs = `vercel.ai.error.${Us}`, Xd = Symbol.for(Hs), Gs, qo = class extends $t {
2990
+ Vs = qd;
2991
+ var Fs = "AI_JSONParseError", Us = `vercel.ai.error.${Fs}`, Jd = Symbol.for(Us), Hs, qo = class extends $t {
2992
2992
  constructor({ text: e, cause: t }) {
2993
2993
  super({
2994
- name: Us,
2994
+ name: Fs,
2995
2995
  message: `JSON parsing failed: Text: ${e}.
2996
- Error message: ${Ps(t)}`,
2996
+ Error message: ${Bs(t)}`,
2997
2997
  cause: t
2998
- }), this[Gs] = !0, this.text = e;
2998
+ }), this[Hs] = !0, this.text = e;
2999
2999
  }
3000
3000
  static isInstance(e) {
3001
- return $t.hasMarker(e, Hs);
3001
+ return $t.hasMarker(e, Us);
3002
3002
  }
3003
3003
  };
3004
- Gs = Xd;
3005
- var js = "AI_TypeValidationError", Ws = `vercel.ai.error.${js}`, Zd = Symbol.for(Ws), qs, eu = class Na extends $t {
3004
+ Hs = Jd;
3005
+ var Gs = "AI_TypeValidationError", js = `vercel.ai.error.${Gs}`, Kd = Symbol.for(js), Ws, Qd = class Na extends $t {
3006
3006
  constructor({ value: t, cause: r }) {
3007
3007
  super({
3008
- name: js,
3008
+ name: Gs,
3009
3009
  message: `Type validation failed: Value: ${JSON.stringify(t)}.
3010
- Error message: ${Ps(r)}`,
3010
+ Error message: ${Bs(r)}`,
3011
3011
  cause: r
3012
- }), this[qs] = !0, this.value = t;
3012
+ }), this[Ws] = !0, this.value = t;
3013
3013
  }
3014
3014
  static isInstance(t) {
3015
- return $t.hasMarker(t, Ws);
3015
+ return $t.hasMarker(t, js);
3016
3016
  }
3017
3017
  /**
3018
3018
  * Wraps an error into a TypeValidationError.
@@ -3031,19 +3031,19 @@ Error message: ${Ps(r)}`,
3031
3031
  return Na.isInstance(r) && r.value === t ? r : new Na({ value: t, cause: r });
3032
3032
  }
3033
3033
  };
3034
- qs = Zd;
3035
- var Yo = eu;
3036
- let tu = (e, t = 21) => (r = t) => {
3034
+ Ws = Kd;
3035
+ var Yo = Qd;
3036
+ let Xd = (e, t = 21) => (r = t) => {
3037
3037
  let a = "", o = r | 0;
3038
3038
  for (; o--; )
3039
3039
  a += e[Math.random() * e.length | 0];
3040
3040
  return a;
3041
3041
  };
3042
- function Ys(e) {
3042
+ function qs(e) {
3043
3043
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3044
3044
  }
3045
3045
  var ct = { exports: {} }, Jo;
3046
- function ru() {
3046
+ function Zd() {
3047
3047
  if (Jo) return ct.exports;
3048
3048
  Jo = 1;
3049
3049
  const e = typeof Buffer < "u", t = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/, r = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
@@ -3115,44 +3115,44 @@ function ru() {
3115
3115
  }
3116
3116
  return ct.exports = n, ct.exports.default = n, ct.exports.parse = n, ct.exports.safeParse = s, ct.exports.scan = o, ct.exports;
3117
3117
  }
3118
- var au = /* @__PURE__ */ ru();
3119
- const ou = /* @__PURE__ */ Ys(au);
3120
- var nu = ({
3118
+ var eu = /* @__PURE__ */ Zd();
3119
+ const tu = /* @__PURE__ */ qs(eu);
3120
+ var ru = ({
3121
3121
  prefix: e,
3122
3122
  size: t = 16,
3123
3123
  alphabet: r = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
3124
3124
  separator: a = "-"
3125
3125
  } = {}) => {
3126
- const o = tu(r, t);
3126
+ const o = Xd(r, t);
3127
3127
  if (e == null)
3128
3128
  return o;
3129
3129
  if (r.includes(a))
3130
- throw new Qd({
3130
+ throw new Yd({
3131
3131
  argument: "separator",
3132
3132
  message: `The separator "${a}" must not be part of the alphabet "${r}".`
3133
3133
  });
3134
3134
  return (n) => `${e}${a}${o(n)}`;
3135
- }, ro = nu(), Ra = Symbol.for("vercel.ai.validator");
3136
- function su(e) {
3135
+ }, ro = ru(), Ra = Symbol.for("vercel.ai.validator");
3136
+ function au(e) {
3137
3137
  return { [Ra]: !0, validate: e };
3138
3138
  }
3139
- function iu(e) {
3139
+ function ou(e) {
3140
3140
  return typeof e == "object" && e !== null && Ra in e && e[Ra] === !0 && "validate" in e;
3141
3141
  }
3142
- function lu(e) {
3143
- return iu(e) ? e : cu(e);
3142
+ function nu(e) {
3143
+ return ou(e) ? e : su(e);
3144
3144
  }
3145
- function cu(e) {
3146
- return su((t) => {
3145
+ function su(e) {
3146
+ return au((t) => {
3147
3147
  const r = e.safeParse(t);
3148
3148
  return r.success ? { success: !0, value: r.data } : { success: !1, error: r.error };
3149
3149
  });
3150
3150
  }
3151
- function du({
3151
+ function iu({
3152
3152
  value: e,
3153
3153
  schema: t
3154
3154
  }) {
3155
- const r = lu(t);
3155
+ const r = nu(t);
3156
3156
  try {
3157
3157
  if (r.validate == null)
3158
3158
  return { success: !0, value: e };
@@ -3173,10 +3173,10 @@ function Ko({
3173
3173
  schema: t
3174
3174
  }) {
3175
3175
  try {
3176
- const r = ou.parse(e);
3176
+ const r = tu.parse(e);
3177
3177
  if (t == null)
3178
3178
  return { success: !0, value: r, rawValue: r };
3179
- const a = du({ value: r, schema: t });
3179
+ const a = iu({ value: r, schema: t });
3180
3180
  return a.success ? { ...a, rawValue: r } : a;
3181
3181
  } catch (r) {
3182
3182
  return {
@@ -3185,7 +3185,7 @@ function Ko({
3185
3185
  };
3186
3186
  }
3187
3187
  }
3188
- function uu({
3188
+ function lu({
3189
3189
  promptTokens: e,
3190
3190
  completionTokens: t
3191
3191
  }) {
@@ -3195,7 +3195,7 @@ function uu({
3195
3195
  totalTokens: e + t
3196
3196
  };
3197
3197
  }
3198
- function fu(e) {
3198
+ function cu(e) {
3199
3199
  const t = ["ROOT"];
3200
3200
  let r = -1, a = null;
3201
3201
  function o(i, d, f) {
@@ -3443,13 +3443,13 @@ function fu(e) {
3443
3443
  }
3444
3444
  return l;
3445
3445
  }
3446
- function hu(e) {
3446
+ function du(e) {
3447
3447
  if (e === void 0)
3448
3448
  return { value: void 0, state: "undefined-input" };
3449
3449
  let t = Ko({ text: e });
3450
- return t.success ? { value: t.value, state: "successful-parse" } : (t = Ko({ text: fu(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
3450
+ return t.success ? { value: t.value, state: "successful-parse" } : (t = Ko({ text: cu(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
3451
3451
  }
3452
- var mu = {
3452
+ var uu = {
3453
3453
  code: "0",
3454
3454
  name: "text",
3455
3455
  parse: (e) => {
@@ -3457,7 +3457,7 @@ var mu = {
3457
3457
  throw new Error('"text" parts expect a string value.');
3458
3458
  return { type: "text", value: e };
3459
3459
  }
3460
- }, pu = {
3460
+ }, fu = {
3461
3461
  code: "2",
3462
3462
  name: "data",
3463
3463
  parse: (e) => {
@@ -3465,7 +3465,7 @@ var mu = {
3465
3465
  throw new Error('"data" parts expect an array value.');
3466
3466
  return { type: "data", value: e };
3467
3467
  }
3468
- }, gu = {
3468
+ }, hu = {
3469
3469
  code: "3",
3470
3470
  name: "error",
3471
3471
  parse: (e) => {
@@ -3473,7 +3473,7 @@ var mu = {
3473
3473
  throw new Error('"error" parts expect a string value.');
3474
3474
  return { type: "error", value: e };
3475
3475
  }
3476
- }, yu = {
3476
+ }, mu = {
3477
3477
  code: "8",
3478
3478
  name: "message_annotations",
3479
3479
  parse: (e) => {
@@ -3481,7 +3481,7 @@ var mu = {
3481
3481
  throw new Error('"message_annotations" parts expect an array value.');
3482
3482
  return { type: "message_annotations", value: e };
3483
3483
  }
3484
- }, bu = {
3484
+ }, pu = {
3485
3485
  code: "9",
3486
3486
  name: "tool_call",
3487
3487
  parse: (e) => {
@@ -3494,7 +3494,7 @@ var mu = {
3494
3494
  value: e
3495
3495
  };
3496
3496
  }
3497
- }, vu = {
3497
+ }, gu = {
3498
3498
  code: "a",
3499
3499
  name: "tool_result",
3500
3500
  parse: (e) => {
@@ -3507,7 +3507,7 @@ var mu = {
3507
3507
  value: e
3508
3508
  };
3509
3509
  }
3510
- }, _u = {
3510
+ }, yu = {
3511
3511
  code: "b",
3512
3512
  name: "tool_call_streaming_start",
3513
3513
  parse: (e) => {
@@ -3520,7 +3520,7 @@ var mu = {
3520
3520
  value: e
3521
3521
  };
3522
3522
  }
3523
- }, wu = {
3523
+ }, bu = {
3524
3524
  code: "c",
3525
3525
  name: "tool_call_delta",
3526
3526
  parse: (e) => {
@@ -3533,7 +3533,7 @@ var mu = {
3533
3533
  value: e
3534
3534
  };
3535
3535
  }
3536
- }, ku = {
3536
+ }, vu = {
3537
3537
  code: "d",
3538
3538
  name: "finish_message",
3539
3539
  parse: (e) => {
@@ -3552,7 +3552,7 @@ var mu = {
3552
3552
  value: t
3553
3553
  };
3554
3554
  }
3555
- }, xu = {
3555
+ }, _u = {
3556
3556
  code: "e",
3557
3557
  name: "finish_step",
3558
3558
  parse: (e) => {
@@ -3572,7 +3572,7 @@ var mu = {
3572
3572
  value: t
3573
3573
  };
3574
3574
  }
3575
- }, Tu = {
3575
+ }, wu = {
3576
3576
  code: "f",
3577
3577
  name: "start_step",
3578
3578
  parse: (e) => {
@@ -3587,7 +3587,7 @@ var mu = {
3587
3587
  }
3588
3588
  };
3589
3589
  }
3590
- }, Eu = {
3590
+ }, ku = {
3591
3591
  code: "g",
3592
3592
  name: "reasoning",
3593
3593
  parse: (e) => {
@@ -3595,7 +3595,7 @@ var mu = {
3595
3595
  throw new Error('"reasoning" parts expect a string value.');
3596
3596
  return { type: "reasoning", value: e };
3597
3597
  }
3598
- }, Iu = {
3598
+ }, xu = {
3599
3599
  code: "h",
3600
3600
  name: "source",
3601
3601
  parse: (e) => {
@@ -3606,7 +3606,7 @@ var mu = {
3606
3606
  value: e
3607
3607
  };
3608
3608
  }
3609
- }, Cu = {
3609
+ }, Tu = {
3610
3610
  code: "i",
3611
3611
  name: "redacted_reasoning",
3612
3612
  parse: (e) => {
@@ -3616,7 +3616,7 @@ var mu = {
3616
3616
  );
3617
3617
  return { type: "redacted_reasoning", value: { data: e.data } };
3618
3618
  }
3619
- }, Su = {
3619
+ }, Eu = {
3620
3620
  code: "j",
3621
3621
  name: "reasoning_signature",
3622
3622
  parse: (e) => {
@@ -3629,7 +3629,7 @@ var mu = {
3629
3629
  value: { signature: e.signature }
3630
3630
  };
3631
3631
  }
3632
- }, Nu = {
3632
+ }, Iu = {
3633
3633
  code: "k",
3634
3634
  name: "file",
3635
3635
  parse: (e) => {
@@ -3640,6 +3640,9 @@ var mu = {
3640
3640
  return { type: "file", value: e };
3641
3641
  }
3642
3642
  }, ao = [
3643
+ uu,
3644
+ fu,
3645
+ hu,
3643
3646
  mu,
3644
3647
  pu,
3645
3648
  gu,
@@ -3652,34 +3655,31 @@ var mu = {
3652
3655
  xu,
3653
3656
  Tu,
3654
3657
  Eu,
3655
- Iu,
3656
- Cu,
3657
- Su,
3658
- Nu
3659
- ], Ru = Object.fromEntries(
3658
+ Iu
3659
+ ], Cu = Object.fromEntries(
3660
3660
  ao.map((e) => [e.code, e])
3661
3661
  );
3662
3662
  Object.fromEntries(
3663
3663
  ao.map((e) => [e.name, e.code])
3664
3664
  );
3665
- var Au = ao.map((e) => e.code), Ou = (e) => {
3665
+ var Su = ao.map((e) => e.code), Nu = (e) => {
3666
3666
  const t = e.indexOf(":");
3667
3667
  if (t === -1)
3668
3668
  throw new Error("Failed to parse stream string. No separator found.");
3669
3669
  const r = e.slice(0, t);
3670
- if (!Au.includes(r))
3670
+ if (!Su.includes(r))
3671
3671
  throw new Error(`Failed to parse stream string. Invalid code ${r}.`);
3672
3672
  const a = r, o = e.slice(t + 1), n = JSON.parse(o);
3673
- return Ru[a].parse(n);
3674
- }, $u = 10;
3675
- function Lu(e, t) {
3673
+ return Cu[a].parse(n);
3674
+ }, Ru = 10;
3675
+ function Au(e, t) {
3676
3676
  const r = new Uint8Array(t);
3677
3677
  let a = 0;
3678
3678
  for (const o of e)
3679
3679
  r.set(o, a), a += o.length;
3680
3680
  return e.length = 0, r;
3681
3681
  }
3682
- async function Du({
3682
+ async function Ou({
3683
3683
  stream: e,
3684
3684
  onTextPart: t,
3685
3685
  onReasoningPart: r,
@@ -3702,14 +3702,14 @@ async function Du({
3702
3702
  let N = 0;
3703
3703
  for (; ; ) {
3704
3704
  const { value: I } = await v.read();
3705
- if (I && (k.push(I), N += I.length, I[I.length - 1] !== $u))
3705
+ if (I && (k.push(I), N += I.length, I[I.length - 1] !== Ru))
3706
3706
  continue;
3707
3707
  if (k.length === 0)
3708
3708
  break;
3709
- const _ = Lu(k, N);
3709
+ const _ = Au(k, N);
3710
3710
  N = 0;
3711
3711
  const x = w.decode(_, { stream: !0 }).split(`
3712
- `).filter((E) => E !== "").map(Ou);
3712
+ `).filter((E) => E !== "").map(Nu);
3713
3713
  for (const { type: E, value: T } of x)
3714
3714
  switch (E) {
3715
3715
  case "text":
@@ -3767,7 +3767,7 @@ async function Du({
3767
3767
  }
3768
3768
  }
3769
3769
  }
3770
- async function Mu({
3770
+ async function $u({
3771
3771
  stream: e,
3772
3772
  update: t,
3773
3773
  onToolCall: r,
@@ -3828,7 +3828,7 @@ async function Mu({
3828
3828
  replaceLastMessage: d
3829
3829
  });
3830
3830
  }
3831
- await Du({
3831
+ await Ou({
3832
3832
  stream: e,
3833
3833
  onTextPart(_) {
3834
3834
  h == null ? (h = {
@@ -3889,7 +3889,7 @@ async function Mu({
3889
3889
  onToolCallDeltaPart(_) {
3890
3890
  const x = w[_.toolCallId];
3891
3891
  x.text += _.argsTextDelta;
3892
- const { value: E } = hu(x.text), T = {
3892
+ const { value: E } = du(x.text), T = {
3893
3893
  state: "partial-call",
3894
3894
  step: x.step,
3895
3895
  toolCallId: _.toolCallId,
@@ -3948,14 +3948,14 @@ async function Mu({
3948
3948
  d || (u.id = _.messageId), u.parts.push({ type: "step-start" }), I();
3949
3949
  },
3950
3950
  onFinishMessagePart(_) {
3951
- N = _.finishReason, _.usage != null && (k = uu(_.usage));
3951
+ N = _.finishReason, _.usage != null && (k = lu(_.usage));
3952
3952
  },
3953
3953
  onErrorPart(_) {
3954
3954
  throw new Error(_);
3955
3955
  }
3956
3956
  }), a == null || a({ message: u, finishReason: N, usage: k });
3957
3957
  }
3958
- async function Bu({
3958
+ async function Lu({
3959
3959
  stream: e,
3960
3960
  onTextPart: t
3961
3961
  }) {
@@ -3967,7 +3967,7 @@ async function Bu({
3967
3967
  await t(o);
3968
3968
  }
3969
3969
  }
3970
- async function Pu({
3970
+ async function Mu({
3971
3971
  stream: e,
3972
3972
  update: t,
3973
3973
  onFinish: r,
@@ -3981,7 +3981,7 @@ async function Pu({
3981
3981
  content: "",
3982
3982
  parts: [n]
3983
3983
  };
3984
- await Bu({
3984
+ await Lu({
3985
3985
  stream: e,
3986
3986
  onTextPart: (l) => {
3987
3987
  s.content += l, n.text += l, t({
@@ -3995,8 +3995,8 @@ async function Pu({
3995
3995
  finishReason: "unknown"
3996
3996
  });
3997
3997
  }
3998
- var zu = () => fetch;
3999
- async function Vu({
3998
+ var Du = () => fetch;
3999
+ async function Bu({
4000
4000
  api: e,
4001
4001
  body: t,
4002
4002
  streamProtocol: r = "data",
@@ -4009,7 +4009,7 @@ async function Vu({
4009
4009
  onFinish: d,
4010
4010
  onToolCall: f,
4011
4011
  generateId: u,
4012
- fetch: h = zu(),
4012
+ fetch: h = Du(),
4013
4013
  lastMessage: m
4014
4014
  }) {
4015
4015
  var g, y;
@@ -4039,7 +4039,7 @@ async function Vu({
4039
4039
  throw new Error("The response body is empty.");
4040
4040
  switch (r) {
4041
4041
  case "text": {
4042
- await Pu({
4042
+ await Mu({
4043
4043
  stream: b.body,
4044
4044
  update: i,
4045
4045
  onFinish: d,
@@ -4048,7 +4048,7 @@ async function Vu({
4048
4048
  return;
4049
4049
  }
4050
4050
  case "data": {
4051
- await Mu({
4051
+ await $u({
4052
4052
  stream: b.body,
4053
4053
  update: i,
4054
4054
  lastMessage: m,
@@ -4072,7 +4072,7 @@ function Aa(e) {
4072
4072
  return Math.max(t, (a = r.step) != null ? a : 0);
4073
4073
  }, 0);
4074
4074
  }
4075
- function Js(e) {
4075
+ function Ys(e) {
4076
4076
  var t;
4077
4077
  return (t = e.parts) != null ? t : [
4078
4078
  ...e.toolInvocations ? e.toolInvocations.map((r) => ({
@@ -4092,7 +4092,7 @@ function Js(e) {
4092
4092
  function Yr(e) {
4093
4093
  return e.map((t) => ({
4094
4094
  ...t,
4095
- parts: Js(t)
4095
+ parts: Ys(t)
4096
4096
  }));
4097
4097
  }
4098
4098
  function Oa(e, t) {
@@ -4146,7 +4146,7 @@ async function Qo(e) {
4146
4146
  return e;
4147
4147
  throw new Error("Invalid attachments type");
4148
4148
  }
4149
- function Fu({
4149
+ function Pu({
4150
4150
  originalMaxToolInvocationStep: e,
4151
4151
  originalMessageCount: t,
4152
4152
  maxSteps: r,
@@ -4159,17 +4159,17 @@ function Fu({
4159
4159
  r > 1 && // ensure there is a last message:
4160
4160
  n != null && // ensure we actually have new steps (to prevent infinite loops in case of errors):
4161
4161
  (a.length > t || Aa(n.toolInvocations) !== e) && // check that next step is possible:
4162
- Ks(n) && // limit the number of automatic steps:
4162
+ Js(n) && // limit the number of automatic steps:
4163
4163
  ((o = Aa(n.toolInvocations)) != null ? o : 0) < r
4164
4164
  );
4165
4165
  }
4166
- function Ks(e) {
4166
+ function Js(e) {
4167
4167
  if (e.role !== "assistant")
4168
4168
  return !1;
4169
4169
  const t = e.parts.reduce((a, o, n) => o.type === "step-start" ? n : a, -1), r = e.parts.slice(t + 1).filter((a) => a.type === "tool-invocation");
4170
4170
  return r.length > 0 && r.every((a) => "result" in a.toolInvocation);
4171
4171
  }
4172
- function Uu({
4172
+ function zu({
4173
4173
  messages: e,
4174
4174
  toolCallId: t,
4175
4175
  toolResult: r
@@ -4200,7 +4200,7 @@ var hr = { exports: {} }, Jr = {};
4200
4200
  * LICENSE file in the root directory of this source tree.
4201
4201
  */
4202
4202
  var Xo;
4203
- function Hu() {
4203
+ function Vu() {
4204
4204
  if (Xo) return Jr;
4205
4205
  Xo = 1;
4206
4206
  var e = U;
@@ -4251,7 +4251,7 @@ var Kr = {};
4251
4251
  * LICENSE file in the root directory of this source tree.
4252
4252
  */
4253
4253
  var Zo;
4254
- function Gu() {
4254
+ function Fu() {
4255
4255
  return Zo || (Zo = 1, process.env.NODE_ENV !== "production" && function() {
4256
4256
  function e(m, g) {
4257
4257
  return m === g && (m !== 0 || 1 / m === 1 / g) || m !== m && g !== g;
@@ -4304,11 +4304,11 @@ function Gu() {
4304
4304
  }()), Kr;
4305
4305
  }
4306
4306
  var en;
4307
- function ju() {
4308
- return en || (en = 1, process.env.NODE_ENV === "production" ? hr.exports = /* @__PURE__ */ Hu() : hr.exports = /* @__PURE__ */ Gu()), hr.exports;
4307
+ function Uu() {
4308
+ return en || (en = 1, process.env.NODE_ENV === "production" ? hr.exports = /* @__PURE__ */ Vu() : hr.exports = /* @__PURE__ */ Fu()), hr.exports;
4309
4309
  }
4310
- var Wu = /* @__PURE__ */ ju();
4311
- const Qs = 0, Xs = 1, Zs = 2, tn = 3;
4310
+ var Hu = /* @__PURE__ */ Uu();
4311
+ const Ks = 0, Qs = 1, Xs = 2, tn = 3;
4312
4312
  var rn = Object.prototype.hasOwnProperty;
4313
4313
  function $a(e, t) {
4314
4314
  var r, a;
@@ -4337,7 +4337,7 @@ const Je = /* @__PURE__ */ new WeakMap(), at = () => {
4337
4337
  ), La = Object, q = (e) => e === ve, Ue = (e) => typeof e == "function", nt = (e, t) => ({
4338
4338
  ...e,
4339
4339
  ...t
4340
- }), ei = (e) => Ue(e.then), Qr = {}, mr = {}, oo = "undefined", sr = typeof window != oo, Da = typeof document != oo, qu = sr && "Deno" in window, Yu = () => sr && typeof window.requestAnimationFrame != oo, ti = (e, t) => {
4340
+ }), Zs = (e) => Ue(e.then), Qr = {}, mr = {}, oo = "undefined", sr = typeof window != oo, Ma = typeof document != oo, Gu = sr && "Deno" in window, ju = () => sr && typeof window.requestAnimationFrame != oo, ei = (e, t) => {
4341
4341
  const r = Je.get(e);
4342
4342
  return [
4343
4343
  // Getter
@@ -4355,44 +4355,44 @@ const Je = /* @__PURE__ */ new WeakMap(), at = () => {
4355
4355
  () => !q(t) && t in mr ? mr[t] : !q(t) && e.get(t) || Qr
4356
4356
  ];
4357
4357
  };
4358
- let Ma = !0;
4359
- const Ju = () => Ma, [Ba, Pa] = sr && window.addEventListener ? [
4358
+ let Da = !0;
4359
+ const Wu = () => Da, [Ba, Pa] = sr && window.addEventListener ? [
4360
4360
  window.addEventListener.bind(window),
4361
4361
  window.removeEventListener.bind(window)
4362
4362
  ] : [
4363
4363
  at,
4364
4364
  at
4365
- ], Ku = () => {
4366
- const e = Da && document.visibilityState;
4365
+ ], qu = () => {
4366
+ const e = Ma && document.visibilityState;
4367
4367
  return q(e) || e !== "hidden";
4368
- }, Qu = (e) => (Da && document.addEventListener("visibilitychange", e), Ba("focus", e), () => {
4369
- Da && document.removeEventListener("visibilitychange", e), Pa("focus", e);
4370
- }), Xu = (e) => {
4368
+ }, Yu = (e) => (Ma && document.addEventListener("visibilitychange", e), Ba("focus", e), () => {
4369
+ Ma && document.removeEventListener("visibilitychange", e), Pa("focus", e);
4370
+ }), Ju = (e) => {
4371
4371
  const t = () => {
4372
- Ma = !0, e();
4372
+ Da = !0, e();
4373
4373
  }, r = () => {
4374
- Ma = !1;
4374
+ Da = !1;
4375
4375
  };
4376
4376
  return Ba("online", t), Ba("offline", r), () => {
4377
4377
  Pa("online", t), Pa("offline", r);
4378
4378
  };
4379
- }, Zu = {
4380
- isOnline: Ju,
4381
- isVisible: Ku
4382
- }, ef = {
4383
- initFocus: Qu,
4384
- initReconnect: Xu
4385
- }, an = !U.useId, Jt = !sr || qu, tf = (e) => Yu() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Xr = Jt ? P : ge, Zr = typeof navigator < "u" && navigator.connection, on = !Jt && Zr && ([
4379
+ }, Ku = {
4380
+ isOnline: Wu,
4381
+ isVisible: qu
4382
+ }, Qu = {
4383
+ initFocus: Yu,
4384
+ initReconnect: Ju
4385
+ }, an = !U.useId, Jt = !sr || Gu, Xu = (e) => ju() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Xr = Jt ? P : ge, Zr = typeof navigator < "u" && navigator.connection, on = !Jt && Zr && ([
4386
4386
  "slow-2g",
4387
4387
  "2g"
4388
4388
  ].includes(Zr.effectiveType) || Zr.saveData), pr = /* @__PURE__ */ new WeakMap(), ea = (e, t) => La.prototype.toString.call(e) === `[object ${t}]`;
4389
- let rf = 0;
4389
+ let Zu = 0;
4390
4390
  const za = (e) => {
4391
4391
  const t = typeof e, r = ea(e, "Date"), a = ea(e, "RegExp"), o = ea(e, "Object");
4392
4392
  let n, s;
4393
4393
  if (La(e) === e && !r && !a) {
4394
4394
  if (n = pr.get(e), n) return n;
4395
- if (n = ++rf + "~", pr.set(e, n), Array.isArray(e)) {
4395
+ if (n = ++Zu + "~", pr.set(e, n), Array.isArray(e)) {
4396
4396
  for (n = "@", s = 0; s < e.length; s++)
4397
4397
  n += za(e[s]) + ",";
4398
4398
  pr.set(e, n);
@@ -4420,9 +4420,9 @@ const za = (e) => {
4420
4420
  t
4421
4421
  ];
4422
4422
  };
4423
- let af = 0;
4424
- const Va = () => ++af;
4425
- async function ri(...e) {
4423
+ let ef = 0;
4424
+ const Va = () => ++ef;
4425
+ async function ti(...e) {
4426
4426
  const [t, r, a, o] = e, n = nt({
4427
4427
  populateCache: !0,
4428
4428
  throwOnError: !0
@@ -4444,9 +4444,9 @@ async function ri(...e) {
4444
4444
  async function u(h) {
4445
4445
  const [m] = no(h);
4446
4446
  if (!m) return;
4447
- const [g, y] = ti(t, m), [b, v, w, k] = Je.get(t), N = () => {
4447
+ const [g, y] = ei(t, m), [b, v, w, k] = Je.get(t), N = () => {
4448
4448
  const $ = b[m];
4449
- return (Ue(n.revalidate) ? n.revalidate(g().data, h) : n.revalidate !== !1) && (delete w[m], delete k[m], $ && $[0]) ? $[0](Zs).then(() => g().data) : g().data;
4449
+ return (Ue(n.revalidate) ? n.revalidate(g().data, h) : n.revalidate !== !1) && (delete w[m], delete k[m], $ && $[0]) ? $[0](Xs).then(() => g().data) : g().data;
4450
4450
  };
4451
4451
  if (e.length < 3)
4452
4452
  return N();
@@ -4466,7 +4466,7 @@ async function ri(...e) {
4466
4466
  } catch ($) {
4467
4467
  _ = $;
4468
4468
  }
4469
- if (I && ei(I))
4469
+ if (I && Zs(I))
4470
4470
  if (I = await I.catch(($) => {
4471
4471
  _ = $;
4472
4472
  }), x !== v[m][0]) {
@@ -4504,9 +4504,9 @@ async function ri(...e) {
4504
4504
  const nn = (e, t) => {
4505
4505
  for (const r in e)
4506
4506
  e[r][0] && e[r][0](t);
4507
- }, of = (e, t) => {
4507
+ }, tf = (e, t) => {
4508
4508
  if (!Je.has(e)) {
4509
- const r = nt(ef, t), a = {}, o = ri.bind(ve, e);
4509
+ const r = nt(Qu, t), a = {}, o = ti.bind(ve, e);
4510
4510
  let n = at;
4511
4511
  const s = {}, l = (f, u) => {
4512
4512
  const h = s[f] || [];
@@ -4527,7 +4527,7 @@ const nn = (e, t) => {
4527
4527
  i,
4528
4528
  l
4529
4529
  ]), !Jt)) {
4530
- const f = r.initFocus(setTimeout.bind(ve, nn.bind(ve, a, Qs))), u = r.initReconnect(setTimeout.bind(ve, nn.bind(ve, a, Xs)));
4530
+ const f = r.initFocus(setTimeout.bind(ve, nn.bind(ve, a, Ks))), u = r.initReconnect(setTimeout.bind(ve, nn.bind(ve, a, Qs)));
4531
4531
  n = () => {
4532
4532
  f && f(), u && u(), Je.delete(e);
4533
4533
  };
@@ -4544,16 +4544,16 @@ const nn = (e, t) => {
4544
4544
  e,
4545
4545
  Je.get(e)[4]
4546
4546
  ];
4547
- }, nf = (e, t, r, a, o) => {
4547
+ }, rf = (e, t, r, a, o) => {
4548
4548
  const n = r.errorRetryCount, s = o.retryCount, l = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * r.errorRetryInterval;
4549
4549
  !q(n) && s > n || setTimeout(a, l, o);
4550
- }, sf = $a, [ai, lf] = of(/* @__PURE__ */ new Map()), cf = nt(
4550
+ }, af = $a, [ri, of] = tf(/* @__PURE__ */ new Map()), nf = nt(
4551
4551
  {
4552
4552
  // events
4553
4553
  onLoadingSlow: at,
4554
4554
  onSuccess: at,
4555
4555
  onError: at,
4556
- onErrorRetry: nf,
4556
+ onErrorRetry: rf,
4557
4557
  onDiscarded: at,
4558
4558
  // switches
4559
4559
  revalidateOnFocus: !0,
@@ -4566,24 +4566,24 @@ const nn = (e, t) => {
4566
4566
  dedupingInterval: 2 * 1e3,
4567
4567
  loadingTimeout: on ? 5e3 : 3e3,
4568
4568
  // providers
4569
- compare: sf,
4569
+ compare: af,
4570
4570
  isPaused: () => !1,
4571
- cache: ai,
4572
- mutate: lf,
4571
+ cache: ri,
4572
+ mutate: of,
4573
4573
  fallback: {}
4574
4574
  },
4575
4575
  // use web preset by default
4576
- Zu
4577
- ), df = (e, t) => {
4576
+ Ku
4577
+ ), sf = (e, t) => {
4578
4578
  const r = nt(e, t);
4579
4579
  if (t) {
4580
4580
  const { use: a, fallback: o } = e, { use: n, fallback: s } = t;
4581
4581
  a && n && (r.use = a.concat(n)), o && s && (r.fallback = nt(o, s));
4582
4582
  }
4583
4583
  return r;
4584
- }, uf = Qn({}), ff = "$inf$", oi = sr && window.__SWR_DEVTOOLS_USE__, hf = oi ? window.__SWR_DEVTOOLS_USE__ : [], mf = () => {
4585
- oi && (window.__SWR_DEVTOOLS_REACT__ = U);
4586
- }, pf = (e) => Ue(e[1]) ? [
4584
+ }, lf = Kn({}), cf = "$inf$", ai = sr && window.__SWR_DEVTOOLS_USE__, df = ai ? window.__SWR_DEVTOOLS_USE__ : [], uf = () => {
4585
+ ai && (window.__SWR_DEVTOOLS_REACT__ = U);
4586
+ }, ff = (e) => Ue(e[1]) ? [
4587
4587
  e[0],
4588
4588
  e[1],
4589
4589
  e[2] || {}
@@ -4591,27 +4591,27 @@ const nn = (e, t) => {
4591
4591
  e[0],
4592
4592
  null,
4593
4593
  (e[1] === null ? e[2] : e[1]) || {}
4594
- ], gf = () => nt(cf, X(uf)), yf = (e) => (t, r, a) => e(t, r && ((...n) => {
4595
- const [s] = no(t), [, , , l] = Je.get(ai);
4596
- if (s.startsWith(ff))
4594
+ ], hf = () => nt(nf, X(lf)), mf = (e) => (t, r, a) => e(t, r && ((...n) => {
4595
+ const [s] = no(t), [, , , l] = Je.get(ri);
4596
+ if (s.startsWith(cf))
4597
4597
  return r(...n);
4598
4598
  const i = l[s];
4599
4599
  return q(i) ? r(...n) : (delete l[s], i);
4600
- }), a), bf = hf.concat(yf), vf = (e) => function(...r) {
4601
- const a = gf(), [o, n, s] = pf(r), l = df(a, s);
4600
+ }), a), pf = df.concat(mf), gf = (e) => function(...r) {
4601
+ const a = hf(), [o, n, s] = ff(r), l = sf(a, s);
4602
4602
  let i = e;
4603
- const { use: d } = l, f = (d || []).concat(bf);
4603
+ const { use: d } = l, f = (d || []).concat(pf);
4604
4604
  for (let u = f.length; u--; )
4605
4605
  i = f[u](i);
4606
4606
  return i(o, n || l.fetcher || null, l);
4607
- }, _f = (e, t, r) => {
4607
+ }, yf = (e, t, r) => {
4608
4608
  const a = t[e] || (t[e] = []);
4609
4609
  return a.push(r), () => {
4610
4610
  const o = a.indexOf(r);
4611
4611
  o >= 0 && (a[o] = a[a.length - 1], a.pop());
4612
4612
  };
4613
4613
  };
4614
- mf();
4614
+ uf();
4615
4615
  const ta = U.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
4616
4616
  // and emitting an error.
4617
4617
  // We assume that this is only for the `use(thenable)` case, not `use(context)`.
@@ -4633,9 +4633,9 @@ const ta = U.use || // This extra generic is to avoid TypeScript mixing up the g
4633
4633
  }
4634
4634
  }), ra = {
4635
4635
  dedupe: !0
4636
- }, wf = (e, t, r) => {
4637
- const { cache: a, compare: o, suspense: n, fallbackData: s, revalidateOnMount: l, revalidateIfStale: i, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, g, y, b] = Je.get(a), [v, w] = no(e), k = L(!1), N = L(!1), I = L(v), _ = L(t), x = L(r), E = () => x.current, T = () => E().isVisible() && E().isOnline(), [C, S, A, $] = ti(a, v), M = L({}).current, F = q(s) ? q(r.fallback) ? ve : r.fallback[v] : s, D = (B, z) => {
4638
- for (const ee in M) {
4636
+ }, bf = (e, t, r) => {
4637
+ const { cache: a, compare: o, suspense: n, fallbackData: s, revalidateOnMount: l, revalidateIfStale: i, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, g, y, b] = Je.get(a), [v, w] = no(e), k = L(!1), N = L(!1), I = L(v), _ = L(t), x = L(r), E = () => x.current, T = () => E().isVisible() && E().isOnline(), [C, S, A, $] = ei(a, v), D = L({}).current, F = q(s) ? q(r.fallback) ? ve : r.fallback[v] : s, M = (B, z) => {
4638
+ for (const ee in D) {
4639
4639
  const K = ee;
4640
4640
  if (K === "data") {
4641
4641
  if (!o(B[K], z[K]) && (!q(B[K]) || !o(We, z[K])))
@@ -4657,23 +4657,23 @@ const ta = U.use || // This extra generic is to avoid TypeScript mixing up the g
4657
4657
  return [
4658
4658
  () => {
4659
4659
  const ue = z(C());
4660
- return D(ue, oe) ? (oe.data = ue.data, oe.isLoading = ue.isLoading, oe.isValidating = ue.isValidating, oe.error = ue.error, oe) : (oe = ue, ue);
4660
+ return M(ue, oe) ? (oe.data = ue.data, oe.isLoading = ue.isLoading, oe.isValidating = ue.isValidating, oe.error = ue.error, oe) : (oe = ue, ue);
4661
4661
  },
4662
4662
  () => pe
4663
4663
  ];
4664
4664
  }, [
4665
4665
  a,
4666
4666
  v
4667
- ]), G = Wu.useSyncExternalStore(Y(
4667
+ ]), G = Hu.useSyncExternalStore(Y(
4668
4668
  (B) => A(v, (z, ee) => {
4669
- D(ee, z) || B();
4669
+ M(ee, z) || B();
4670
4670
  }),
4671
4671
  // eslint-disable-next-line react-hooks/exhaustive-deps
4672
4672
  [
4673
4673
  a,
4674
4674
  v
4675
4675
  ]
4676
- ), W[0], W[1]), J = !k.current, me = m[v] && m[v].length > 0, Me = G.data, Ie = q(Me) ? F && ei(F) ? ta(F) : F : Me, et = G.error, lt = L(Ie), We = h ? q(Me) ? q(lt.current) ? Ie : lt.current : Me : Ie, Be = me && !q(et) ? !1 : J && !q(l) ? l : E().isPaused() ? !1 : n ? q(Ie) ? !1 : i : q(Ie) || i, we = !!(v && t && J && Be), Ce = q(G.isValidating) ? we : G.isValidating, Vt = q(G.isLoading) ? we : G.isLoading, qe = Y(
4676
+ ), W[0], W[1]), J = !k.current, me = m[v] && m[v].length > 0, De = G.data, Ie = q(De) ? F && Zs(F) ? ta(F) : F : De, et = G.error, lt = L(Ie), We = h ? q(De) ? q(lt.current) ? Ie : lt.current : De : Ie, Be = me && !q(et) ? !1 : J && !q(l) ? l : E().isPaused() ? !1 : n ? q(Ie) ? !1 : i : q(Ie) || i, we = !!(v && t && J && Be), Ce = q(G.isValidating) ? we : G.isValidating, Vt = q(G.isLoading) ? we : G.isLoading, qe = Y(
4677
4677
  async (B) => {
4678
4678
  const z = _.current;
4679
4679
  if (!v || !z || N.current || E().isPaused())
@@ -4738,24 +4738,24 @@ const ta = U.use || // This extra generic is to avoid TypeScript mixing up the g
4738
4738
  ]
4739
4739
  ), H = Y(
4740
4740
  // Use callback to make sure `keyRef.current` returns latest result every time
4741
- (...B) => ri(a, I.current, ...B),
4741
+ (...B) => ti(a, I.current, ...B),
4742
4742
  // eslint-disable-next-line react-hooks/exhaustive-deps
4743
4743
  []
4744
4744
  );
4745
4745
  if (Xr(() => {
4746
- _.current = t, x.current = r, q(Me) || (lt.current = Me);
4746
+ _.current = t, x.current = r, q(De) || (lt.current = De);
4747
4747
  }), Xr(() => {
4748
4748
  if (!v) return;
4749
4749
  const B = qe.bind(ve, ra);
4750
4750
  let z = 0;
4751
- const K = _f(v, m, (le, pe = {}) => {
4752
- if (le == Qs) {
4751
+ const K = yf(v, m, (le, pe = {}) => {
4752
+ if (le == Ks) {
4753
4753
  const oe = Date.now();
4754
4754
  E().revalidateOnFocus && oe > z && T() && (z = oe + E().focusThrottleInterval, B());
4755
- } else if (le == Xs)
4755
+ } else if (le == Qs)
4756
4756
  E().revalidateOnReconnect && T() && B();
4757
4757
  else {
4758
- if (le == Zs)
4758
+ if (le == Xs)
4759
4759
  return qe();
4760
4760
  if (le == tn)
4761
4761
  return qe(pe);
@@ -4763,7 +4763,7 @@ const ta = U.use || // This extra generic is to avoid TypeScript mixing up the g
4763
4763
  });
4764
4764
  return N.current = !1, I.current = v, k.current = !0, S({
4765
4765
  _k: w
4766
- }), Be && (q(Ie) || Jt ? B() : tf(B)), () => {
4766
+ }), Be && (q(Ie) || Jt ? B() : Xu(B)), () => {
4767
4767
  N.current = !0, K();
4768
4768
  };
4769
4769
  }, [
@@ -4785,7 +4785,7 @@ const ta = U.use || // This extra generic is to avoid TypeScript mixing up the g
4785
4785
  f,
4786
4786
  u,
4787
4787
  v
4788
- ]), bl(We), n && q(Ie) && v) {
4788
+ ]), pl(We), n && q(Ie) && v) {
4789
4789
  if (!an && Jt)
4790
4790
  throw new Error("Fallback data is required when using Suspense in SSR.");
4791
4791
  _.current = t, x.current = r, N.current = !1;
@@ -4803,21 +4803,21 @@ const ta = U.use || // This extra generic is to avoid TypeScript mixing up the g
4803
4803
  return {
4804
4804
  mutate: H,
4805
4805
  get data() {
4806
- return M.data = !0, We;
4806
+ return D.data = !0, We;
4807
4807
  },
4808
4808
  get error() {
4809
- return M.error = !0, et;
4809
+ return D.error = !0, et;
4810
4810
  },
4811
4811
  get isValidating() {
4812
- return M.isValidating = !0, Ce;
4812
+ return D.isValidating = !0, Ce;
4813
4813
  },
4814
4814
  get isLoading() {
4815
- return M.isLoading = !0, Vt;
4815
+ return D.isLoading = !0, Vt;
4816
4816
  }
4817
4817
  };
4818
- }, gr = vf(wf);
4818
+ }, gr = gf(bf);
4819
4819
  var aa, sn;
4820
- function kf() {
4820
+ function vf() {
4821
4821
  if (sn) return aa;
4822
4822
  sn = 1;
4823
4823
  function e(t, r) {
@@ -4834,18 +4834,18 @@ function kf() {
4834
4834
  }
4835
4835
  return aa = e, aa;
4836
4836
  }
4837
- var xf = /* @__PURE__ */ kf();
4838
- const Tf = /* @__PURE__ */ Ys(xf);
4837
+ var _f = /* @__PURE__ */ vf();
4838
+ const wf = /* @__PURE__ */ qs(_f);
4839
4839
  function ln(e, t) {
4840
- return t != null ? Tf(e, t) : e;
4840
+ return t != null ? wf(e, t) : e;
4841
4841
  }
4842
- function Ef(e) {
4842
+ function kf(e) {
4843
4843
  const [t, r] = V(e);
4844
4844
  return P(() => {
4845
4845
  Oa(e, t) || r(e);
4846
4846
  }, [e, t]), t;
4847
4847
  }
4848
- function If({
4848
+ function xf({
4849
4849
  api: e = "/api/chat",
4850
4850
  id: t,
4851
4851
  initialMessages: r,
@@ -4866,7 +4866,7 @@ function If({
4866
4866
  keepLastMessageOnError: v = !0,
4867
4867
  experimental_throttle: w
4868
4868
  } = {}) {
4869
- const [k] = V(y), N = t ?? k, I = typeof e == "string" ? [e, N] : N, _ = Ef(r ?? []), x = Ee(
4869
+ const [k] = V(y), N = t ?? k, I = typeof e == "string" ? [e, N] : N, _ = kf(r ?? []), x = Ee(
4870
4870
  () => Yr(_),
4871
4871
  [_]
4872
4872
  ), { data: E, mutate: T } = gr(
@@ -4881,7 +4881,7 @@ function If({
4881
4881
  P(() => {
4882
4882
  $.current = S;
4883
4883
  }, [S]);
4884
- const { data: M = "ready", mutate: F } = gr([I, "status"], null), { data: D = void 0, mutate: W } = gr([I, "error"], null), G = L(null), J = L({
4884
+ const { data: D = "ready", mutate: F } = gr([I, "status"], null), { data: M = void 0, mutate: W } = gr([I, "error"], null), G = L(null), J = L({
4885
4885
  credentials: h,
4886
4886
  headers: m,
4887
4887
  body: g
@@ -4916,7 +4916,7 @@ function If({
4916
4916
  data: kt,
4917
4917
  annotations: fr,
4918
4918
  toolInvocations: xt,
4919
- parts: wo
4919
+ parts: ko
4920
4920
  }) => ({
4921
4921
  role: wt,
4922
4922
  content: de,
@@ -4926,10 +4926,10 @@ function If({
4926
4926
  ...kt !== void 0 && { data: kt },
4927
4927
  ...fr !== void 0 && { annotations: fr },
4928
4928
  ...xt !== void 0 && { toolInvocations: xt },
4929
- ...wo !== void 0 && { parts: wo }
4929
+ ...ko !== void 0 && { parts: ko }
4930
4930
  })
4931
4931
  ), Ft = $.current;
4932
- await Vu({
4932
+ await Bu({
4933
4933
  api: e,
4934
4934
  body: (B = s == null ? void 0 : s({
4935
4935
  id: N,
@@ -4978,7 +4978,7 @@ function If({
4978
4978
  u && pe instanceof Error && u(pe), W(pe), F("error");
4979
4979
  }
4980
4980
  const le = C.current;
4981
- Fu({
4981
+ Pu({
4982
4982
  originalMaxToolInvocationStep: K,
4983
4983
  originalMessageCount: ee,
4984
4984
  maxSteps: l,
@@ -5009,7 +5009,7 @@ function If({
5009
5009
  w,
5010
5010
  N
5011
5011
  ]
5012
- ), Me = Y(
5012
+ ), De = Y(
5013
5013
  async (H, {
5014
5014
  data: ie,
5015
5015
  headers: B,
@@ -5024,7 +5024,7 @@ function If({
5024
5024
  id: (K = H.id) != null ? K : y(),
5025
5025
  createdAt: (le = H.createdAt) != null ? le : /* @__PURE__ */ new Date(),
5026
5026
  experimental_attachments: pe.length > 0 ? pe : void 0,
5027
- parts: Js(H)
5027
+ parts: Ys(H)
5028
5028
  });
5029
5029
  return me({ messages: oe, headers: B, body: z, data: ie });
5030
5030
  },
@@ -5089,7 +5089,7 @@ function If({
5089
5089
  }, qe = Y(
5090
5090
  ({ toolCallId: H, result: ie }) => {
5091
5091
  const B = C.current;
5092
- if (Uu({
5092
+ if (zu({
5093
5093
  messages: B,
5094
5094
  toolCallId: H,
5095
5095
  toolResult: ie
@@ -5099,12 +5099,12 @@ function If({
5099
5099
  { ...B[B.length - 1] }
5100
5100
  ],
5101
5101
  !1
5102
- ), M === "submitted" || M === "streaming")
5102
+ ), D === "submitted" || D === "streaming")
5103
5103
  return;
5104
5104
  const z = B[B.length - 1];
5105
- Ks(z) && me({ messages: B });
5105
+ Js(z) && me({ messages: B });
5106
5106
  },
5107
- [T, M, me]
5107
+ [T, D, me]
5108
5108
  );
5109
5109
  return {
5110
5110
  messages: E ?? [],
@@ -5112,16 +5112,16 @@ function If({
5112
5112
  setMessages: lt,
5113
5113
  data: S,
5114
5114
  setData: We,
5115
- error: D,
5116
- append: Me,
5115
+ error: M,
5116
+ append: De,
5117
5117
  reload: Ie,
5118
5118
  stop: et,
5119
5119
  input: Be,
5120
5120
  setInput: we,
5121
5121
  handleInputChange: Vt,
5122
5122
  handleSubmit: Ce,
5123
- isLoading: M === "submitted" || M === "streaming",
5124
- status: M,
5123
+ isLoading: D === "submitted" || D === "streaming",
5124
+ status: D,
5125
5125
  addToolResult: qe
5126
5126
  };
5127
5127
  }
@@ -5130,9 +5130,9 @@ const cn = () => ({
5130
5130
  onError: /* @__PURE__ */ new Set(),
5131
5131
  onResponse: /* @__PURE__ */ new Set(),
5132
5132
  onToolCall: /* @__PURE__ */ new Set()
5133
- }), ni = Qn(null);
5133
+ }), oi = Kn(null);
5134
5134
  function _t(e = {}) {
5135
- const t = X(ni);
5135
+ const t = X(oi);
5136
5136
  if (!t)
5137
5137
  throw new Error("useAiChat must be used within a AiChatProvider");
5138
5138
  const r = L(e);
@@ -5145,7 +5145,7 @@ function _t(e = {}) {
5145
5145
  };
5146
5146
  }, [t.handlers]), t.chat;
5147
5147
  }
5148
- function Cf({
5148
+ function Tf({
5149
5149
  children: e,
5150
5150
  value: t
5151
5151
  }) {
@@ -5177,7 +5177,7 @@ function Cf({
5177
5177
  await d(...i);
5178
5178
  },
5179
5179
  []
5180
- ), l = If({
5180
+ ), l = xf({
5181
5181
  ...t,
5182
5182
  onError: a,
5183
5183
  onFinish: o,
@@ -5185,7 +5185,7 @@ function Cf({
5185
5185
  onToolCall: s
5186
5186
  });
5187
5187
  return /* @__PURE__ */ c(
5188
- ni.Provider,
5188
+ oi.Provider,
5189
5189
  {
5190
5190
  value: {
5191
5191
  chat: l,
@@ -5195,17 +5195,17 @@ function Cf({
5195
5195
  }
5196
5196
  );
5197
5197
  }
5198
- const Sf = "z-20", Nf = "z-10", ir = U.createContext({
5198
+ const Ef = "z-20", If = "z-10", Cf = "user", dn = "assistant", so = "OpenAI", ni = "Anthropic", Sf = "Google", Nf = so, ir = U.createContext({
5199
5199
  state: { searchString: "", sortedCell: "", sortDirection: "" },
5200
5200
  dispatch: () => {
5201
5201
  }
5202
- }), so = U.createContext({
5202
+ }), io = U.createContext({
5203
5203
  state: { prompt: "", lastTriggeredTimestamp: 0 },
5204
5204
  dispatch: () => {
5205
5205
  }
5206
5206
  }), ye = U.createContext({
5207
5207
  state: {
5208
- provider: ji,
5208
+ provider: Nf,
5209
5209
  privateChat: !1,
5210
5210
  reasoning: !1,
5211
5211
  streaming: !1,
@@ -5221,7 +5221,7 @@ const Sf = "z-20", Nf = "z-10", ir = U.createContext({
5221
5221
  },
5222
5222
  setInitialMessages: () => {
5223
5223
  }
5224
- }), io = U.createContext({
5224
+ }), lo = U.createContext({
5225
5225
  state: {
5226
5226
  footerPosition: Sa,
5227
5227
  footerHeight: 0,
@@ -5270,29 +5270,29 @@ function cr(e) {
5270
5270
  function si(e) {
5271
5271
  return e === "x" ? "y" : "x";
5272
5272
  }
5273
- function lo(e) {
5273
+ function co(e) {
5274
5274
  return e === "y" ? "height" : "width";
5275
5275
  }
5276
5276
  function Lt(e) {
5277
5277
  return ["top", "bottom"].includes(bt(e)) ? "y" : "x";
5278
5278
  }
5279
- function co(e) {
5279
+ function uo(e) {
5280
5280
  return si(Lt(e));
5281
5281
  }
5282
5282
  function Lf(e, t, r) {
5283
5283
  r === void 0 && (r = !1);
5284
- const a = cr(e), o = co(e), n = lo(o);
5284
+ const a = cr(e), o = uo(e), n = co(o);
5285
5285
  let s = o === "x" ? a === (r ? "end" : "start") ? "right" : "left" : a === "start" ? "bottom" : "top";
5286
5286
  return t.reference[n] > t.floating[n] && (s = Rr(s)), [s, Rr(s)];
5287
5287
  }
5288
- function Df(e) {
5288
+ function Mf(e) {
5289
5289
  const t = Rr(e);
5290
5290
  return [Ua(e), t, Ua(t)];
5291
5291
  }
5292
5292
  function Ua(e) {
5293
5293
  return e.replace(/start|end/g, (t) => $f[t]);
5294
5294
  }
5295
- function Mf(e, t, r) {
5295
+ function Df(e, t, r) {
5296
5296
  const a = ["left", "right"], o = ["right", "left"], n = ["top", "bottom"], s = ["bottom", "top"];
5297
5297
  switch (e) {
5298
5298
  case "top":
@@ -5307,7 +5307,7 @@ function Mf(e, t, r) {
5307
5307
  }
5308
5308
  function Bf(e, t, r, a) {
5309
5309
  const o = cr(e);
5310
- let n = Mf(bt(e), r === "start", a);
5310
+ let n = Df(bt(e), r === "start", a);
5311
5311
  return o && (n = n.map((s) => s + "-" + o), t && (n = n.concat(n.map(Ua)))), n;
5312
5312
  }
5313
5313
  function Rr(e) {
@@ -5348,12 +5348,12 @@ function Ar(e) {
5348
5348
  y: r
5349
5349
  };
5350
5350
  }
5351
- function dn(e, t, r) {
5351
+ function un(e, t, r) {
5352
5352
  let {
5353
5353
  reference: a,
5354
5354
  floating: o
5355
5355
  } = e;
5356
- const n = Lt(t), s = co(t), l = lo(s), i = bt(t), d = n === "y", f = a.x + a.width / 2 - o.width / 2, u = a.y + a.height / 2 - o.height / 2, h = a[l] / 2 - o[l] / 2;
5356
+ const n = Lt(t), s = uo(t), l = co(s), i = bt(t), d = n === "y", f = a.x + a.width / 2 - o.width / 2, u = a.y + a.height / 2 - o.height / 2, h = a[l] / 2 - o[l] / 2;
5357
5357
  let m;
5358
5358
  switch (i) {
5359
5359
  case "top":
@@ -5410,7 +5410,7 @@ const zf = async (e, t, r) => {
5410
5410
  }), {
5411
5411
  x: f,
5412
5412
  y: u
5413
- } = dn(d, a, i), h = a, m = {}, g = 0;
5413
+ } = un(d, a, i), h = a, m = {}, g = 0;
5414
5414
  for (let y = 0; y < l.length; y++) {
5415
5415
  const {
5416
5416
  name: b,
@@ -5447,7 +5447,7 @@ const zf = async (e, t, r) => {
5447
5447
  }) : I.rects), {
5448
5448
  x: f,
5449
5449
  y: u
5450
- } = dn(d, h, i)), y = -1);
5450
+ } = un(d, h, i)), y = -1);
5451
5451
  }
5452
5452
  return {
5453
5453
  x: f,
@@ -5523,20 +5523,20 @@ const Vf = (e) => ({
5523
5523
  const u = ii(f), h = {
5524
5524
  x: r,
5525
5525
  y: a
5526
- }, m = co(o), g = lo(m), y = await s.getDimensions(d), b = m === "y", v = b ? "top" : "left", w = b ? "bottom" : "right", k = b ? "clientHeight" : "clientWidth", N = n.reference[g] + n.reference[m] - h[m] - n.floating[g], I = h[m] - n.reference[m], _ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
5526
+ }, m = uo(o), g = co(m), y = await s.getDimensions(d), b = m === "y", v = b ? "top" : "left", w = b ? "bottom" : "right", k = b ? "clientHeight" : "clientWidth", N = n.reference[g] + n.reference[m] - h[m] - n.floating[g], I = h[m] - n.reference[m], _ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
5527
5527
  let x = _ ? _[k] : 0;
5528
5528
  (!x || !await (s.isElement == null ? void 0 : s.isElement(_))) && (x = l.floating[k] || n.floating[g]);
5529
- const E = N / 2 - I / 2, T = x / 2 - y[g] / 2 - 1, C = Kt(u[v], T), S = Kt(u[w], T), A = C, $ = x - y[g] - S, M = x / 2 - y[g] / 2 + E, F = Fa(A, M, $), D = !i.arrow && cr(o) != null && M !== F && n.reference[g] / 2 - (M < A ? C : S) - y[g] / 2 < 0, W = D ? M < A ? M - A : M - $ : 0;
5529
+ const E = N / 2 - I / 2, T = x / 2 - y[g] / 2 - 1, C = Kt(u[v], T), S = Kt(u[w], T), A = C, $ = x - y[g] - S, D = x / 2 - y[g] / 2 + E, F = Fa(A, D, $), M = !i.arrow && cr(o) != null && D !== F && n.reference[g] / 2 - (D < A ? C : S) - y[g] / 2 < 0, W = M ? D < A ? D - A : D - $ : 0;
5530
5530
  return {
5531
5531
  [m]: h[m] + W,
5532
5532
  data: {
5533
5533
  [m]: F,
5534
- centerOffset: M - F - W,
5535
- ...D && {
5534
+ centerOffset: D - F - W,
5535
+ ...M && {
5536
5536
  alignmentOffset: W
5537
5537
  }
5538
5538
  },
5539
- reset: D
5539
+ reset: M
5540
5540
  };
5541
5541
  }
5542
5542
  }), Ff = function(e) {
@@ -5563,32 +5563,32 @@ const Vf = (e) => ({
5563
5563
  } = lr(e, t);
5564
5564
  if ((r = n.arrow) != null && r.alignmentOffset)
5565
5565
  return {};
5566
- const v = bt(o), w = Lt(l), k = bt(l) === l, N = await (i.isRTL == null ? void 0 : i.isRTL(d.floating)), I = h || (k || !y ? [Rr(l)] : Df(l)), _ = g !== "none";
5566
+ const v = bt(o), w = Lt(l), k = bt(l) === l, N = await (i.isRTL == null ? void 0 : i.isRTL(d.floating)), I = h || (k || !y ? [Rr(l)] : Mf(l)), _ = g !== "none";
5567
5567
  !h && _ && I.push(...Bf(l, y, g, N));
5568
5568
  const x = [l, ...I], E = await li(t, b), T = [];
5569
5569
  let C = ((a = n.flip) == null ? void 0 : a.overflows) || [];
5570
5570
  if (f && T.push(E[v]), u) {
5571
- const M = Lf(o, s, N);
5572
- T.push(E[M[0]], E[M[1]]);
5571
+ const D = Lf(o, s, N);
5572
+ T.push(E[D[0]], E[D[1]]);
5573
5573
  }
5574
5574
  if (C = [...C, {
5575
5575
  placement: o,
5576
5576
  overflows: T
5577
- }], !T.every((M) => M <= 0)) {
5577
+ }], !T.every((D) => D <= 0)) {
5578
5578
  var S, A;
5579
- const M = (((S = n.flip) == null ? void 0 : S.index) || 0) + 1, F = x[M];
5579
+ const D = (((S = n.flip) == null ? void 0 : S.index) || 0) + 1, F = x[D];
5580
5580
  if (F)
5581
5581
  return {
5582
5582
  data: {
5583
- index: M,
5583
+ index: D,
5584
5584
  overflows: C
5585
5585
  },
5586
5586
  reset: {
5587
5587
  placement: F
5588
5588
  }
5589
5589
  };
5590
- let D = (A = C.filter((W) => W.overflows[0] <= 0).sort((W, G) => W.overflows[1] - G.overflows[1])[0]) == null ? void 0 : A.placement;
5591
- if (!D)
5590
+ let M = (A = C.filter((W) => W.overflows[0] <= 0).sort((W, G) => W.overflows[1] - G.overflows[1])[0]) == null ? void 0 : A.placement;
5591
+ if (!M)
5592
5592
  switch (m) {
5593
5593
  case "bestFit": {
5594
5594
  var $;
@@ -5601,17 +5601,17 @@ const Vf = (e) => ({
5601
5601
  }
5602
5602
  return !0;
5603
5603
  }).map((G) => [G.placement, G.overflows.filter((J) => J > 0).reduce((J, me) => J + me, 0)]).sort((G, J) => G[1] - J[1])[0]) == null ? void 0 : $[0];
5604
- W && (D = W);
5604
+ W && (M = W);
5605
5605
  break;
5606
5606
  }
5607
5607
  case "initialPlacement":
5608
- D = l;
5608
+ M = l;
5609
5609
  break;
5610
5610
  }
5611
- if (o !== D)
5611
+ if (o !== M)
5612
5612
  return {
5613
5613
  reset: {
5614
- placement: D
5614
+ placement: M
5615
5615
  }
5616
5616
  };
5617
5617
  }
@@ -5748,7 +5748,7 @@ function Le(e) {
5748
5748
  function je(e) {
5749
5749
  return Pr() ? e instanceof HTMLElement || e instanceof Te(e).HTMLElement : !1;
5750
5750
  }
5751
- function un(e) {
5751
+ function fn(e) {
5752
5752
  return !Pr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Te(e).ShadowRoot;
5753
5753
  }
5754
5754
  function dr(e) {
@@ -5757,7 +5757,7 @@ function dr(e) {
5757
5757
  overflowX: r,
5758
5758
  overflowY: a,
5759
5759
  display: o
5760
- } = De(e);
5760
+ } = Me(e);
5761
5761
  return /auto|scroll|overlay|hidden|clip/.test(t + a + r) && !["inline", "contents"].includes(o);
5762
5762
  }
5763
5763
  function jf(e) {
@@ -5772,14 +5772,14 @@ function zr(e) {
5772
5772
  }
5773
5773
  });
5774
5774
  }
5775
- function uo(e) {
5776
- const t = fo(), r = Le(e) ? De(e) : e;
5775
+ function fo(e) {
5776
+ const t = ho(), r = Le(e) ? Me(e) : e;
5777
5777
  return ["transform", "translate", "scale", "rotate", "perspective"].some((a) => r[a] ? r[a] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((a) => (r.willChange || "").includes(a)) || ["paint", "layout", "strict", "content"].some((a) => (r.contain || "").includes(a));
5778
5778
  }
5779
5779
  function Wf(e) {
5780
5780
  let t = st(e);
5781
- for (; je(t) && !Dt(t); ) {
5782
- if (uo(t))
5781
+ for (; je(t) && !Mt(t); ) {
5782
+ if (fo(t))
5783
5783
  return t;
5784
5784
  if (zr(t))
5785
5785
  return null;
@@ -5787,13 +5787,13 @@ function Wf(e) {
5787
5787
  }
5788
5788
  return null;
5789
5789
  }
5790
- function fo() {
5790
+ function ho() {
5791
5791
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
5792
5792
  }
5793
- function Dt(e) {
5793
+ function Mt(e) {
5794
5794
  return ["html", "body", "#document"].includes(Pt(e));
5795
5795
  }
5796
- function De(e) {
5796
+ function Me(e) {
5797
5797
  return Te(e).getComputedStyle(e);
5798
5798
  }
5799
5799
  function Vr(e) {
@@ -5812,14 +5812,14 @@ function st(e) {
5812
5812
  // Step into the shadow DOM of the parent of a slotted node.
5813
5813
  e.assignedSlot || // DOM Element detected.
5814
5814
  e.parentNode || // ShadowRoot detected.
5815
- un(e) && e.host || // Fallback.
5815
+ fn(e) && e.host || // Fallback.
5816
5816
  Ze(e)
5817
5817
  );
5818
- return un(t) ? t.host : t;
5818
+ return fn(t) ? t.host : t;
5819
5819
  }
5820
5820
  function di(e) {
5821
5821
  const t = st(e);
5822
- return Dt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : je(t) && dr(t) ? t : di(t);
5822
+ return Mt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : je(t) && dr(t) ? t : di(t);
5823
5823
  }
5824
5824
  function ui(e, t, r) {
5825
5825
  var a;
@@ -5827,11 +5827,11 @@ function ui(e, t, r) {
5827
5827
  const o = di(e), n = o === ((a = e.ownerDocument) == null ? void 0 : a.body), s = Te(o);
5828
5828
  return n ? t.concat(s, s.visualViewport || [], dr(o) ? o : [], []) : t.concat(o, ui(o, []));
5829
5829
  }
5830
- function fn(e) {
5830
+ function hn(e) {
5831
5831
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
5832
5832
  }
5833
5833
  function fi(e) {
5834
- const t = De(e);
5834
+ const t = Me(e);
5835
5835
  let r = parseFloat(t.width) || 0, a = parseFloat(t.height) || 0;
5836
5836
  const o = je(e), n = o ? e.offsetWidth : r, s = o ? e.offsetHeight : a, l = Nr(r) !== n || Nr(a) !== s;
5837
5837
  return l && (r = n, a = s), {
@@ -5861,7 +5861,7 @@ function Ct(e) {
5861
5861
  const qf = /* @__PURE__ */ Ge(0);
5862
5862
  function mi(e) {
5863
5863
  const t = Te(e);
5864
- return !fo() || !t.visualViewport ? qf : {
5864
+ return !ho() || !t.visualViewport ? qf : {
5865
5865
  x: t.visualViewport.offsetLeft,
5866
5866
  y: t.visualViewport.offsetTop
5867
5867
  };
@@ -5878,10 +5878,10 @@ function Qt(e, t, r, a) {
5878
5878
  let i = (o.left + l.x) / s.x, d = (o.top + l.y) / s.y, f = o.width / s.x, u = o.height / s.y;
5879
5879
  if (n) {
5880
5880
  const h = Te(n), m = a && Le(a) ? Te(a) : a;
5881
- let g = h, y = fn(g);
5881
+ let g = h, y = hn(g);
5882
5882
  for (; y && a && m !== g; ) {
5883
- const b = Ct(y), v = y.getBoundingClientRect(), w = De(y), k = v.left + (y.clientLeft + parseFloat(w.paddingLeft)) * b.x, N = v.top + (y.clientTop + parseFloat(w.paddingTop)) * b.y;
5884
- i *= b.x, d *= b.y, f *= b.x, u *= b.y, i += k, d += N, g = Te(y), y = fn(g);
5883
+ const b = Ct(y), v = y.getBoundingClientRect(), w = Me(y), k = v.left + (y.clientLeft + parseFloat(w.paddingLeft)) * b.x, N = v.top + (y.clientTop + parseFloat(w.paddingTop)) * b.y;
5884
+ i *= b.x, d *= b.y, f *= b.x, u *= b.y, i += k, d += N, g = Te(y), y = hn(g);
5885
5885
  }
5886
5886
  }
5887
5887
  return Ar({
@@ -5891,7 +5891,7 @@ function Qt(e, t, r, a) {
5891
5891
  y: d
5892
5892
  });
5893
5893
  }
5894
- function ho(e, t) {
5894
+ function mo(e, t) {
5895
5895
  const r = Vr(e).scrollLeft;
5896
5896
  return t ? t.left + r : Qt(Ze(e)).left + r;
5897
5897
  }
@@ -5899,7 +5899,7 @@ function pi(e, t, r) {
5899
5899
  r === void 0 && (r = !1);
5900
5900
  const a = e.getBoundingClientRect(), o = a.left + t.scrollLeft - (r ? 0 : (
5901
5901
  // RTL <body> scrollbar.
5902
- ho(e, a)
5902
+ mo(e, a)
5903
5903
  )), n = a.top + t.scrollTop;
5904
5904
  return {
5905
5905
  x: o,
@@ -5938,9 +5938,9 @@ function Kf(e) {
5938
5938
  }
5939
5939
  function Qf(e) {
5940
5940
  const t = Ze(e), r = Vr(e), a = e.ownerDocument.body, o = It(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), n = It(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
5941
- let s = -r.scrollLeft + ho(e);
5941
+ let s = -r.scrollLeft + mo(e);
5942
5942
  const l = -r.scrollTop;
5943
- return De(a).direction === "rtl" && (s += It(t.clientWidth, a.clientWidth) - o), {
5943
+ return Me(a).direction === "rtl" && (s += It(t.clientWidth, a.clientWidth) - o), {
5944
5944
  width: o,
5945
5945
  height: n,
5946
5946
  x: s,
@@ -5952,7 +5952,7 @@ function Xf(e, t) {
5952
5952
  let n = a.clientWidth, s = a.clientHeight, l = 0, i = 0;
5953
5953
  if (o) {
5954
5954
  n = o.width, s = o.height;
5955
- const d = fo();
5955
+ const d = ho();
5956
5956
  (!d || d && t === "fixed") && (l = o.offsetLeft, i = o.offsetTop);
5957
5957
  }
5958
5958
  return {
@@ -5971,7 +5971,7 @@ function Zf(e, t) {
5971
5971
  y: d
5972
5972
  };
5973
5973
  }
5974
- function hn(e, t, r) {
5974
+ function mn(e, t, r) {
5975
5975
  let a;
5976
5976
  if (t === "viewport")
5977
5977
  a = Xf(e, r);
@@ -5992,17 +5992,17 @@ function hn(e, t, r) {
5992
5992
  }
5993
5993
  function gi(e, t) {
5994
5994
  const r = st(e);
5995
- return r === t || !Le(r) || Dt(r) ? !1 : De(r).position === "fixed" || gi(r, t);
5995
+ return r === t || !Le(r) || Mt(r) ? !1 : Me(r).position === "fixed" || gi(r, t);
5996
5996
  }
5997
5997
  function eh(e, t) {
5998
5998
  const r = t.get(e);
5999
5999
  if (r)
6000
6000
  return r;
6001
6001
  let a = ui(e, []).filter((l) => Le(l) && Pt(l) !== "body"), o = null;
6002
- const n = De(e).position === "fixed";
6002
+ const n = Me(e).position === "fixed";
6003
6003
  let s = n ? st(e) : e;
6004
- for (; Le(s) && !Dt(s); ) {
6005
- const l = De(s), i = uo(s);
6004
+ for (; Le(s) && !Mt(s); ) {
6005
+ const l = Me(s), i = fo(s);
6006
6006
  !i && l.position === "fixed" && (o = null), (n ? !i && !o : !i && l.position === "static" && o && ["absolute", "fixed"].includes(o.position) || dr(s) && !i && gi(e, s)) ? a = a.filter((d) => d !== s) : o = l, s = st(s);
6007
6007
  }
6008
6008
  return t.set(e, a), a;
@@ -6015,9 +6015,9 @@ function th(e) {
6015
6015
  strategy: o
6016
6016
  } = e;
6017
6017
  const n = [...r === "clippingAncestors" ? zr(t) ? [] : eh(t, this._c) : [].concat(r), a], s = n[0], l = n.reduce((i, d) => {
6018
- const f = hn(t, d, o);
6018
+ const f = mn(t, d, o);
6019
6019
  return i.top = It(f.top, i.top), i.right = Kt(f.right, i.right), i.bottom = Kt(f.bottom, i.bottom), i.left = It(f.left, i.left), i;
6020
- }, hn(t, s, o));
6020
+ }, mn(t, s, o));
6021
6021
  return {
6022
6022
  width: l.right - l.left,
6023
6023
  height: l.bottom - l.top,
@@ -6046,7 +6046,7 @@ function ah(e, t, r) {
6046
6046
  if ((Pt(t) !== "body" || dr(o)) && (l = Vr(t)), a) {
6047
6047
  const h = Qt(t, !0, n, t);
6048
6048
  i.x = h.x + t.clientLeft, i.y = h.y + t.clientTop;
6049
- } else o && (i.x = ho(o));
6049
+ } else o && (i.x = mo(o));
6050
6050
  const d = o && !a && !n ? pi(o, l) : Ge(0), f = s.left + l.scrollLeft - i.x - d.x, u = s.top + l.scrollTop - i.y - d.y;
6051
6051
  return {
6052
6052
  x: f,
@@ -6056,10 +6056,10 @@ function ah(e, t, r) {
6056
6056
  };
6057
6057
  }
6058
6058
  function oa(e) {
6059
- return De(e).position === "static";
6059
+ return Me(e).position === "static";
6060
6060
  }
6061
- function mn(e, t) {
6062
- if (!je(e) || De(e).position === "fixed")
6061
+ function pn(e, t) {
6062
+ if (!je(e) || Me(e).position === "fixed")
6063
6063
  return null;
6064
6064
  if (t)
6065
6065
  return t(e);
@@ -6072,17 +6072,17 @@ function yi(e, t) {
6072
6072
  return r;
6073
6073
  if (!je(e)) {
6074
6074
  let o = st(e);
6075
- for (; o && !Dt(o); ) {
6075
+ for (; o && !Mt(o); ) {
6076
6076
  if (Le(o) && !oa(o))
6077
6077
  return o;
6078
6078
  o = st(o);
6079
6079
  }
6080
6080
  return r;
6081
6081
  }
6082
- let a = mn(e, t);
6082
+ let a = pn(e, t);
6083
6083
  for (; a && jf(a) && oa(a); )
6084
- a = mn(a, t);
6085
- return a && Dt(a) && oa(a) && !uo(a) ? r : a || Wf(e) || r;
6084
+ a = pn(a, t);
6085
+ return a && Mt(a) && oa(a) && !fo(a) ? r : a || Wf(e) || r;
6086
6086
  }
6087
6087
  const oh = async function(e) {
6088
6088
  const t = this.getOffsetParent || yi, r = this.getDimensions, a = await r(e.floating);
@@ -6097,7 +6097,7 @@ const oh = async function(e) {
6097
6097
  };
6098
6098
  };
6099
6099
  function nh(e) {
6100
- return De(e).direction === "rtl";
6100
+ return Me(e).direction === "rtl";
6101
6101
  }
6102
6102
  const sh = {
6103
6103
  convertOffsetParentRelativeRectToViewportRelativeRect: Jf,
@@ -6122,7 +6122,7 @@ const sh = {
6122
6122
  ...o,
6123
6123
  platform: n
6124
6124
  });
6125
- }, pn = ["mousedown", "touchstart"];
6125
+ }, gn = ["mousedown", "touchstart"];
6126
6126
  function fh(e, t, r) {
6127
6127
  const a = L(null);
6128
6128
  return P(() => {
@@ -6135,10 +6135,10 @@ function fh(e, t, r) {
6135
6135
  ) && !l && e();
6136
6136
  } else a.current && !a.current.contains(s) && e();
6137
6137
  };
6138
- return pn.forEach(
6138
+ return gn.forEach(
6139
6139
  (n) => document.addEventListener(n, o)
6140
6140
  ), () => {
6141
- pn.forEach(
6141
+ gn.forEach(
6142
6142
  (n) => document.removeEventListener(n, o)
6143
6143
  );
6144
6144
  };
@@ -6152,7 +6152,7 @@ function hh(e, t) {
6152
6152
  }, []);
6153
6153
  return P(() => (n.current = e, r && s(), l), [e, r, s, l]), { start: s, stop: l, active: r };
6154
6154
  }
6155
- const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, mh = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), gn = ({
6155
+ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, mh = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), yn = ({
6156
6156
  mode: e
6157
6157
  }) => p({
6158
6158
  "bg-surface-darker": e === "dark" || e === "system",
@@ -6175,13 +6175,13 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, mh = (
6175
6175
  const o = p("relative inline-block", t), n = p(
6176
6176
  Rf,
6177
6177
  mh(),
6178
- gn({ mode: e }),
6178
+ yn({ mode: e }),
6179
6179
  ph({ mode: e }),
6180
6180
  r
6181
6181
  ), s = p(
6182
6182
  Af,
6183
6183
  gh(),
6184
- gn({ mode: e }),
6184
+ yn({ mode: e }),
6185
6185
  a
6186
6186
  );
6187
6187
  return { tooltip: n, arrow: s, wrapper: o };
@@ -6231,7 +6231,7 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, mh = (
6231
6231
  top: yr(S),
6232
6232
  ...v
6233
6233
  });
6234
- const M = {
6234
+ const D = {
6235
6235
  top: "bottom",
6236
6236
  right: "left",
6237
6237
  bottom: "top",
@@ -6242,7 +6242,7 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, mh = (
6242
6242
  top: yr((T = A.arrow) == null ? void 0 : T.y),
6243
6243
  right: "",
6244
6244
  bottom: "",
6245
- [M]: "-4px"
6245
+ [D]: "-4px"
6246
6246
  });
6247
6247
  }
6248
6248
  }, [r, v, i]);
@@ -6298,7 +6298,7 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, mh = (
6298
6298
  }
6299
6299
  });
6300
6300
  };
6301
- ps(
6301
+ ms(
6302
6302
  [
6303
6303
  [
6304
6304
  "mod+N",
@@ -6343,7 +6343,7 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, mh = (
6343
6343
  label: "New Chat",
6344
6344
  ref: i,
6345
6345
  onClick: t || r ? u : h,
6346
- children: t || r ? /* @__PURE__ */ c(fs, { size: Ke, monotone: !0 }) : /* @__PURE__ */ c(Xl, { size: Ke })
6346
+ children: t || r ? /* @__PURE__ */ c(us, { size: Ke, monotone: !0 }) : /* @__PURE__ */ c(Jl, { size: Ke })
6347
6347
  }
6348
6348
  )
6349
6349
  }
@@ -6362,7 +6362,7 @@ try {
6362
6362
  });
6363
6363
  } catch {
6364
6364
  }
6365
- const yn = "av-messagebox", bn = "av-panel", vn = "av-button", mo = "icon", bi = "button", Ha = "link", wh = ({
6365
+ const bn = "av-messagebox", vn = "av-panel", _n = "av-button", po = "icon", bi = "button", Ha = "link", wh = ({
6366
6366
  type: e,
6367
6367
  size: t,
6368
6368
  labelRight: r,
@@ -6379,7 +6379,7 @@ const yn = "av-messagebox", bn = "av-panel", vn = "av-button", mo = "icon", bi =
6379
6379
  [l]: t === "medium",
6380
6380
  [i]: t === "large"
6381
6381
  });
6382
- case mo:
6382
+ case po:
6383
6383
  return p("flex items-center", {
6384
6384
  "justify-center": o === "center",
6385
6385
  "justify-start": o === "left",
@@ -6414,7 +6414,7 @@ const yn = "av-messagebox", bn = "av-panel", vn = "av-button", mo = "icon", bi =
6414
6414
  [n]: t === "medium",
6415
6415
  [s]: t === "large"
6416
6416
  });
6417
- case mo:
6417
+ case po:
6418
6418
  return p({
6419
6419
  [o]: t === "small" && (r || a),
6420
6420
  [n]: t === "medium" && (r || a),
@@ -6624,8 +6624,8 @@ const yn = "av-messagebox", bn = "av-panel", vn = "av-button", mo = "icon", bi =
6624
6624
  align: g,
6625
6625
  radius: y,
6626
6626
  animated: b
6627
- }) => (h || (h = "primary"), r ? p(vn, t) : p(
6628
- vn,
6627
+ }) => (h || (h = "primary"), r ? p(_n, t) : p(
6628
+ _n,
6629
6629
  xh({
6630
6630
  mode: a,
6631
6631
  variant: h,
@@ -6678,7 +6678,7 @@ function Lh() {
6678
6678
  e.current = !1;
6679
6679
  }), []), Y(() => e.current, []);
6680
6680
  }
6681
- function Dh(e) {
6681
+ function Mh(e) {
6682
6682
  return Ee(() => e.every((t) => t == null) ? () => {
6683
6683
  } : (t) => {
6684
6684
  e.forEach((r) => {
@@ -6686,7 +6686,7 @@ function Dh(e) {
6686
6686
  });
6687
6687
  }, e);
6688
6688
  }
6689
- const Mh = {
6689
+ const Dh = {
6690
6690
  x: 0,
6691
6691
  y: 0,
6692
6692
  width: 0,
@@ -6697,7 +6697,7 @@ const Mh = {
6697
6697
  right: 0
6698
6698
  };
6699
6699
  function na(e) {
6700
- const t = Lh(), r = L(0), a = L(null), [o, n] = V(Mh), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
6700
+ const t = Lh(), r = L(0), a = L(null), [o, n] = V(Dh), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
6701
6701
  const i = l[0];
6702
6702
  i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
6703
6703
  a.current && t() && n(i.contentRect);
@@ -6721,7 +6721,7 @@ const Bh = {
6721
6721
  // px-3 x 2
6722
6722
  large: 16 * 2
6723
6723
  // px-4 x 2
6724
- }, zh = 2, po = U.forwardRef(
6724
+ }, zh = 2, go = U.forwardRef(
6725
6725
  ({
6726
6726
  children: e,
6727
6727
  disabled: t = !1,
@@ -6746,7 +6746,7 @@ const Bh = {
6746
6746
  ...N
6747
6747
  }, I) => {
6748
6748
  const _ = Oh({
6749
- type: mo,
6749
+ type: po,
6750
6750
  mode: r,
6751
6751
  focusMode: a,
6752
6752
  fullWidth: o,
@@ -6762,11 +6762,11 @@ const Bh = {
6762
6762
  radius: b,
6763
6763
  variant: v,
6764
6764
  animated: k
6765
- }), x = Rh({ mode: r, raw: l, iconClassName: w }), E = Ah({ animated: k }), [T, C] = na(), [S, A] = na(), [$, M] = na(), F = L(0), D = L(null), W = Dh([I, D]);
6765
+ }), x = Rh({ mode: r, raw: l, iconClassName: w }), E = Ah({ animated: k }), [T, C] = na(), [S, A] = na(), [$, D] = na(), F = L(0), M = L(null), W = Mh([I, M]);
6766
6766
  return ge(() => {
6767
- $ && $.current && k && (F.current = M.width + Ph[u] + (i ? 0 : zh));
6768
- }, [M, $, u, i, k]), ge(() => {
6769
- D && D.current && k && (h && T && C.width > 0 ? (T.current && (T.current.style.opacity = "100"), D.current.style.width = `${C.width + F.current}px`) : m && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), D.current.style.width = `${A.width + F.current}px`) : (T.current && (T.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), D.current.style.width = `${Bh[u]}px`));
6767
+ $ && $.current && k && (F.current = D.width + Ph[u] + (i ? 0 : zh));
6768
+ }, [D, $, u, i, k]), ge(() => {
6769
+ M && M.current && k && (h && T && C.width > 0 ? (T.current && (T.current.style.opacity = "100"), M.current.style.width = `${C.width + F.current}px`) : m && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), M.current.style.width = `${A.width + F.current}px`) : (T.current && (T.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), M.current.style.width = `${Bh[u]}px`));
6770
6770
  }, [
6771
6771
  C,
6772
6772
  h,
@@ -6787,7 +6787,7 @@ const Bh = {
6787
6787
  ...N,
6788
6788
  children: [
6789
6789
  /* @__PURE__ */ c(
6790
- _n,
6790
+ wn,
6791
6791
  {
6792
6792
  label: m,
6793
6793
  labelRef: S,
@@ -6797,7 +6797,7 @@ const Bh = {
6797
6797
  ),
6798
6798
  /* @__PURE__ */ c("span", { ref: $, className: x, children: e }),
6799
6799
  /* @__PURE__ */ c(
6800
- _n,
6800
+ wn,
6801
6801
  {
6802
6802
  label: h,
6803
6803
  labelRef: T,
@@ -6809,13 +6809,13 @@ const Bh = {
6809
6809
  }
6810
6810
  );
6811
6811
  }
6812
- ), _n = ({
6812
+ ), wn = ({
6813
6813
  labelRef: e,
6814
6814
  labelClass: t,
6815
6815
  label: r,
6816
6816
  labelInnerClass: a
6817
6817
  }) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
6818
- po.displayName = "ButtonIcon";
6818
+ go.displayName = "ButtonIcon";
6819
6819
  /*!
6820
6820
  @versini/ui-button v6.0.4
6821
6821
  © 2025 gizmette.com
@@ -6855,7 +6855,7 @@ const Vh = U.forwardRef(
6855
6855
  }
6856
6856
  ) : "";
6857
6857
  return /* @__PURE__ */ c("div", { className: s, children: /* @__PURE__ */ c(
6858
- po,
6858
+ go,
6859
6859
  {
6860
6860
  className: p("justify-center", r),
6861
6861
  ref: n,
@@ -6954,15 +6954,15 @@ function Hh({
6954
6954
  open: t,
6955
6955
  onOpenChange: r
6956
6956
  } = {}) {
6957
- const [a, o] = te.useState(e), [n, s] = te.useState(), [l, i] = te.useState(), d = t ?? a, f = r ?? o, u = as({
6957
+ const [a, o] = te.useState(e), [n, s] = te.useState(), [l, i] = te.useState(), d = t ?? a, f = r ?? o, u = rs({
6958
6958
  open: d,
6959
6959
  onOpenChange: f
6960
- }), h = u.context, m = os(h, {
6960
+ }), h = u.context, m = as(h, {
6961
6961
  enabled: t == null
6962
- }), g = ns(h, {
6962
+ }), g = os(h, {
6963
6963
  outsidePress: !1,
6964
6964
  outsidePressEvent: "mousedown"
6965
- }), y = ss(h), b = is([m, g, y]);
6965
+ }), y = ns(h), b = ss([m, g, y]);
6966
6966
  return te.useMemo(
6967
6967
  () => ({
6968
6968
  open: d,
@@ -6998,7 +6998,7 @@ const jh = te.forwardRef(function(e, t) {
6998
6998
  [`${n}`]: n,
6999
6999
  "bg-black sm:bg-black/[.8]": !n
7000
7000
  });
7001
- return /* @__PURE__ */ c(ts, { children: /* @__PURE__ */ c(_l, { className: l, lockScroll: !0, children: /* @__PURE__ */ c(rs, { context: r, children: /* @__PURE__ */ c(
7001
+ return /* @__PURE__ */ c(es, { children: /* @__PURE__ */ c(yl, { className: l, lockScroll: !0, children: /* @__PURE__ */ c(ts, { context: r, children: /* @__PURE__ */ c(
7002
7002
  "div",
7003
7003
  {
7004
7004
  ref: o,
@@ -7043,10 +7043,10 @@ const Gt = "panel", br = "messagebox", Jh = ({
7043
7043
  }) => ({
7044
7044
  main: p("prose prose-lighter flex flex-col bg-surface-medium", {
7045
7045
  "duration-200 ease-out": a,
7046
- [`${bn} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === Gt,
7047
- [`${bn} w-full sm:w-[95%] md:max-w-2xl`]: t === Gt && !e,
7048
- [`${yn} rounded-lg border-2`]: t === br,
7049
- [`${yn} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === br && !e,
7046
+ [`${vn} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === Gt,
7047
+ [`${vn} w-full sm:w-[95%] md:max-w-2xl`]: t === Gt && !e,
7048
+ [`${bn} rounded-lg border-2`]: t === br,
7049
+ [`${bn} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === br && !e,
7050
7050
  [`${e}`]: !!e,
7051
7051
  "sm:border-border-dark": r === "dark" && t === Gt,
7052
7052
  "sm:border-border-accent": r === "light" && t === Gt,
@@ -7057,7 +7057,7 @@ const Gt = "panel", br = "messagebox", Jh = ({
7057
7057
  footer: "flex grow flex-col sm:p-4 p-2",
7058
7058
  header: "sm:p-4 mb-0 p-2",
7059
7059
  close: "sm:p-4 p-2"
7060
- }), Kh = "slide", wn = "fade", zt = ({
7060
+ }), Kh = "slide", kn = "fade", zt = ({
7061
7061
  open: e,
7062
7062
  onOpenChange: t,
7063
7063
  title: r,
@@ -7070,7 +7070,7 @@ const Gt = "panel", br = "messagebox", Jh = ({
7070
7070
  animationType: d = Kh
7071
7071
  }) => {
7072
7072
  const f = L(""), [u, h] = V(
7073
- i ? d === wn ? { opacity: 0 } : {
7073
+ i ? d === kn ? { opacity: 0 } : {
7074
7074
  transform: "translateY(-100vh)"
7075
7075
  } : {}
7076
7076
  ), m = Jh({
@@ -7084,7 +7084,7 @@ const Gt = "panel", br = "messagebox", Jh = ({
7084
7084
  }), [r, e]), P(() => {
7085
7085
  if (i && e) {
7086
7086
  h(
7087
- i ? d === wn ? { opacity: 0 } : {
7087
+ i ? d === kn ? { opacity: 0 } : {
7088
7088
  transform: "translateY(-666vh)"
7089
7089
  } : {}
7090
7090
  );
@@ -7104,7 +7104,7 @@ const Gt = "panel", br = "messagebox", Jh = ({
7104
7104
  {
7105
7105
  className: m.close,
7106
7106
  trigger: /* @__PURE__ */ c(
7107
- po,
7107
+ go,
7108
7108
  {
7109
7109
  mode: "dark",
7110
7110
  focusMode: "light",
@@ -7120,7 +7120,7 @@ const Gt = "panel", br = "messagebox", Jh = ({
7120
7120
  /* @__PURE__ */ c(qh, { className: m.content, children: a }),
7121
7121
  o && /* @__PURE__ */ c("div", { className: m.footer, children: o })
7122
7122
  ] }) }) });
7123
- }, Mt = ({
7123
+ }, Dt = ({
7124
7124
  showConfirmation: e,
7125
7125
  setShowConfirmation: t,
7126
7126
  action: r,
@@ -7170,7 +7170,7 @@ const Gt = "panel", br = "messagebox", Jh = ({
7170
7170
  setChatId: a,
7171
7171
  setInitialMessages: o
7172
7172
  } = X(ye), [n, s] = V(!1), [l, i] = gt({
7173
- key: pt + Wi,
7173
+ key: pt + ji,
7174
7174
  initialValue: ""
7175
7175
  }), d = () => {
7176
7176
  a(ot()), o([]), r({
@@ -7182,7 +7182,7 @@ const Gt = "panel", br = "messagebox", Jh = ({
7182
7182
  };
7183
7183
  return /* @__PURE__ */ R(se, { children: [
7184
7184
  /* @__PURE__ */ c(
7185
- Mt,
7185
+ Dt,
7186
7186
  {
7187
7187
  showConfirmation: n,
7188
7188
  setShowConfirmation: s,
@@ -7219,7 +7219,7 @@ const Gt = "panel", br = "messagebox", Jh = ({
7219
7219
  u.preventDefault(), l ? d() : (i("true"), s(!n));
7220
7220
  },
7221
7221
  className: "text-sm",
7222
- children: t ? /* @__PURE__ */ c(ac, { size: Ke }) : /* @__PURE__ */ c(hc, { size: Ke })
7222
+ children: t ? /* @__PURE__ */ c(ec, { size: Ke }) : /* @__PURE__ */ c(dc, { size: Ke })
7223
7223
  }
7224
7224
  )
7225
7225
  }
@@ -7234,7 +7234,7 @@ const Gt = "panel", br = "messagebox", Jh = ({
7234
7234
  setHasFocusInside: () => {
7235
7235
  },
7236
7236
  isOpen: !1
7237
- }), kn = (e) => {
7237
+ }), xn = (e) => {
7238
7238
  if (typeof e == "string")
7239
7239
  return e;
7240
7240
  if (typeof e == "function")
@@ -7245,7 +7245,7 @@ const Gt = "panel", br = "messagebox", Jh = ({
7245
7245
  return t.displayName || t.name || "Component";
7246
7246
  }
7247
7247
  return "Element";
7248
- }, ki = Xn(
7248
+ }, ki = Qn(
7249
7249
  ({
7250
7250
  trigger: e,
7251
7251
  children: t,
@@ -7256,7 +7256,7 @@ const Gt = "panel", br = "messagebox", Jh = ({
7256
7256
  focusMode: s = "system",
7257
7257
  ...l
7258
7258
  }, i) => {
7259
- const [d, f] = V(!1), [u, h] = V(!1), [m, g] = V(null), y = L([]), b = L([]), v = X(Ga), w = ls(), k = kl(), N = cs(), { floatingStyles: I, refs: _, context: x } = as({
7259
+ const [d, f] = V(!1), [u, h] = V(!1), [m, g] = V(null), y = L([]), b = L([]), v = X(Ga), w = is(), k = vl(), N = ls(), { floatingStyles: I, refs: _, context: x } = rs({
7260
7260
  nodeId: k,
7261
7261
  open: d,
7262
7262
  onOpenChange: (J) => {
@@ -7264,24 +7264,24 @@ const Gt = "panel", br = "messagebox", Jh = ({
7264
7264
  },
7265
7265
  placement: a,
7266
7266
  strategy: "fixed",
7267
- middleware: [Tl({ mainAxis: 10 }), El(), Il()],
7268
- whileElementsMounted: xl
7269
- }), E = os(x, {
7267
+ middleware: [wl({ mainAxis: 10 }), kl(), xl()],
7268
+ whileElementsMounted: _l
7269
+ }), E = as(x, {
7270
7270
  event: "mousedown",
7271
7271
  toggle: !0,
7272
7272
  ignoreMouse: !1
7273
- }), T = ss(x, { role: "menu" }), C = ns(x, { bubbles: !0 }), S = Cl(x, {
7273
+ }), T = ns(x, { role: "menu" }), C = os(x, { bubbles: !0 }), S = Tl(x, {
7274
7274
  listRef: y,
7275
7275
  activeIndex: m,
7276
7276
  nested: !1,
7277
7277
  onNavigate: g,
7278
7278
  loop: !0
7279
- }), A = Sl(x, {
7279
+ }), A = El(x, {
7280
7280
  listRef: b,
7281
7281
  onMatch: d ? g : void 0,
7282
7282
  activeIndex: m
7283
- }), { getReferenceProps: $, getFloatingProps: M, getItemProps: F } = is([E, T, C, S, A]), D = kn(e) === "Button" || kn(e) === "ButtonIcon", W = D ? {
7284
- noInternalClick: D,
7283
+ }), { getReferenceProps: $, getFloatingProps: D, getItemProps: F } = ss([E, T, C, S, A]), M = xn(e) === "Button" || xn(e) === "ButtonIcon", W = M ? {
7284
+ noInternalClick: M,
7285
7285
  focusMode: s,
7286
7286
  mode: n
7287
7287
  } : {}, G = U.cloneElement(
@@ -7310,7 +7310,7 @@ const Gt = "panel", br = "messagebox", Jh = ({
7310
7310
  };
7311
7311
  }, [w, o]), P(() => {
7312
7312
  d && w && w.events.emit("menuopen", { nodeId: k });
7313
- }, [w, d, k]), /* @__PURE__ */ R(Nl, { id: k, children: [
7313
+ }, [w, d, k]), /* @__PURE__ */ R(Il, { id: k, children: [
7314
7314
  G,
7315
7315
  /* @__PURE__ */ c(
7316
7316
  Ga.Provider,
@@ -7322,8 +7322,8 @@ const Gt = "panel", br = "messagebox", Jh = ({
7322
7322
  setHasFocusInside: h,
7323
7323
  isOpen: d
7324
7324
  },
7325
- children: /* @__PURE__ */ c(Rl, { elementsRef: y, labelsRef: b, children: d && /* @__PURE__ */ c(ts, { children: /* @__PURE__ */ c(
7326
- rs,
7325
+ children: /* @__PURE__ */ c(Cl, { elementsRef: y, labelsRef: b, children: d && /* @__PURE__ */ c(es, { children: /* @__PURE__ */ c(
7326
+ ts,
7327
7327
  {
7328
7328
  context: x,
7329
7329
  modal: !1,
@@ -7335,7 +7335,7 @@ const Gt = "panel", br = "messagebox", Jh = ({
7335
7335
  ref: _.setFloating,
7336
7336
  className: "rounded-md bg-surface-light shadow-sm shadow-border-dark outline-hidden p-4 sm:p-2",
7337
7337
  style: I,
7338
- ...M(),
7338
+ ...D(),
7339
7339
  children: t
7340
7340
  }
7341
7341
  )
@@ -7345,7 +7345,7 @@ const Gt = "panel", br = "messagebox", Jh = ({
7345
7345
  )
7346
7346
  ] });
7347
7347
  }
7348
- ), Ur = Xn((e, t) => /* @__PURE__ */ c(wl, { children: /* @__PURE__ */ c(ki, { ...e, ref: t }) }));
7348
+ ), Ur = Qn((e, t) => /* @__PURE__ */ c(bl, { children: /* @__PURE__ */ c(ki, { ...e, ref: t }) }));
7349
7349
  Ur.displayName = "Menu";
7350
7350
  ki.displayName = "MenuComponent";
7351
7351
  const Qh = ({
@@ -7443,7 +7443,7 @@ const Ye = te.forwardRef(
7443
7443
  ...l
7444
7444
  }, i) => {
7445
7445
  let d = "";
7446
- const f = te.useContext(Ga), u = cs({ label: t ? null : e }), h = ls(), m = Ja([u.ref, i]);
7446
+ const f = te.useContext(Ga), u = ls({ label: t ? null : e }), h = is(), m = Ja([u.ref, i]);
7447
7447
  if (a && o)
7448
7448
  return /* @__PURE__ */ c(
7449
7449
  "div",
@@ -7530,7 +7530,7 @@ const em = (e) => {
7530
7530
  className: e,
7531
7531
  defaultPlacement: t = "top-start"
7532
7532
  }) => {
7533
- const { dispatch: r, setChatId: a, setInitialMessages: o } = X(ye), { dispatch: n } = X(so), { getAccessToken: s, user: l } = Ne(), { data: i, isSuccess: d } = or({
7533
+ const { dispatch: r, setChatId: a, setInitialMessages: o } = X(ye), { dispatch: n } = X(io), { getAccessToken: s, user: l } = Ne(), { data: i, isSuccess: d } = or({
7534
7534
  user: l == null ? void 0 : l.username,
7535
7535
  getAccessToken: s
7536
7536
  }), f = (u, h, m) => {
@@ -7540,7 +7540,7 @@ const em = (e) => {
7540
7540
  privateChat: m
7541
7541
  }
7542
7542
  }), n({
7543
- type: zn,
7543
+ type: Vn,
7544
7544
  payload: {
7545
7545
  prompt: h
7546
7546
  }
@@ -7557,7 +7557,7 @@ const em = (e) => {
7557
7557
  {
7558
7558
  mode: "dark",
7559
7559
  focusMode: "light",
7560
- trigger: /* @__PURE__ */ c(Se, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ c(Yl, { size: Ke }) }),
7560
+ trigger: /* @__PURE__ */ c(Se, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ c(jl, { size: Ke }) }),
7561
7561
  defaultPlacement: t,
7562
7562
  children: [
7563
7563
  /* @__PURE__ */ c(xi, { children: "Prompts" }),
@@ -7565,13 +7565,13 @@ const em = (e) => {
7565
7565
  let h = null;
7566
7566
  switch (u.slot) {
7567
7567
  case 0:
7568
- h = /* @__PURE__ */ c(oc, {});
7568
+ h = /* @__PURE__ */ c(tc, {});
7569
7569
  break;
7570
7570
  case 1:
7571
- h = /* @__PURE__ */ c(sc, {});
7571
+ h = /* @__PURE__ */ c(ac, {});
7572
7572
  break;
7573
7573
  case 2:
7574
- h = /* @__PURE__ */ c(lc, {});
7574
+ h = /* @__PURE__ */ c(nc, {});
7575
7575
  break;
7576
7576
  default:
7577
7577
  h = null;
@@ -7605,7 +7605,7 @@ const em = (e) => {
7605
7605
  setChatId: o,
7606
7606
  setInitialMessages: n
7607
7607
  } = X(ye), [s, l] = V(!1), [i, d] = V(!1), [f, u] = gt({
7608
- key: pt + qi,
7608
+ key: pt + Wi,
7609
7609
  initialValue: ""
7610
7610
  }), h = () => {
7611
7611
  o(ot()), n([]), a({
@@ -7617,7 +7617,7 @@ const em = (e) => {
7617
7617
  };
7618
7618
  return /* @__PURE__ */ R(se, { children: [
7619
7619
  i && /* @__PURE__ */ c(
7620
- Mt,
7620
+ Dt,
7621
7621
  {
7622
7622
  showConfirmation: i,
7623
7623
  setShowConfirmation: d,
@@ -7631,7 +7631,7 @@ const em = (e) => {
7631
7631
  }
7632
7632
  ),
7633
7633
  s && /* @__PURE__ */ c(
7634
- Mt,
7634
+ Dt,
7635
7635
  {
7636
7636
  showConfirmation: s,
7637
7637
  setShowConfirmation: l,
@@ -7668,7 +7668,7 @@ const em = (e) => {
7668
7668
  g && g.preventDefault(), f ? r > 0 ? d(!i) : h() : (u("true"), l(!s));
7669
7669
  },
7670
7670
  className: "text-sm",
7671
- children: /* @__PURE__ */ c(rc, { size: Ke })
7671
+ children: /* @__PURE__ */ c(Zl, { size: Ke })
7672
7672
  }
7673
7673
  )
7674
7674
  }
@@ -7710,7 +7710,7 @@ const em = (e) => {
7710
7710
  privateChat: !1
7711
7711
  }
7712
7712
  }), f(), Q.success(
7713
- Yi,
7713
+ qi,
7714
7714
  Er({
7715
7715
  containerId: "toggle-save",
7716
7716
  transition: Cr
@@ -7726,7 +7726,7 @@ const em = (e) => {
7726
7726
  s && (l == null ? void 0 : l.length) > 0 ? h(!0) : h(!1);
7727
7727
  }, [s, l]), /* @__PURE__ */ R(se, { children: [
7728
7728
  m && /* @__PURE__ */ c(
7729
- Mt,
7729
+ Dt,
7730
7730
  {
7731
7731
  showConfirmation: m,
7732
7732
  setShowConfirmation: g,
@@ -7754,7 +7754,7 @@ const em = (e) => {
7754
7754
  focusMode: "light",
7755
7755
  label: "Save Private Chat",
7756
7756
  onClick: b,
7757
- children: /* @__PURE__ */ c(Ql, { size: Ke, monotone: !0 })
7757
+ children: /* @__PURE__ */ c(Yl, { size: Ke, monotone: !0 })
7758
7758
  }
7759
7759
  )
7760
7760
  }
@@ -7765,7 +7765,7 @@ const em = (e) => {
7765
7765
  {
7766
7766
  style: { bottom: `${t}px` },
7767
7767
  className: p(
7768
- Nf,
7768
+ If,
7769
7769
  "fixed left-1/2 transform -translate-x-1/2"
7770
7770
  ),
7771
7771
  children: /* @__PURE__ */ c(
@@ -7814,26 +7814,26 @@ const em = (e) => {
7814
7814
  type: "submit",
7815
7815
  mode: "light",
7816
7816
  focusMode: "light",
7817
- children: /* @__PURE__ */ c(dc, { size: Ke })
7817
+ children: /* @__PURE__ */ c(ic, { size: Ke })
7818
7818
  }
7819
7819
  )
7820
7820
  }
7821
7821
  );
7822
- }, xn = [
7822
+ }, Tn = [
7823
7823
  {
7824
- id: Vn,
7824
+ id: so,
7825
7825
  label: "OpenAI",
7826
- icon: hs
7826
+ icon: fs
7827
7827
  },
7828
7828
  {
7829
- id: Fn,
7829
+ id: ni,
7830
7830
  label: "Anthropic",
7831
- icon: us
7831
+ icon: ds
7832
7832
  },
7833
7833
  {
7834
- id: Ji,
7834
+ id: Sf,
7835
7835
  label: "Google Gemini",
7836
- icon: Zl
7836
+ icon: Kl
7837
7837
  }
7838
7838
  ], om = ({ className: e }) => {
7839
7839
  const {
@@ -7846,12 +7846,12 @@ const em = (e) => {
7846
7846
  getAccessToken: n
7847
7847
  }), u = async (h) => {
7848
7848
  try {
7849
- a(ot()), o([]), h !== (f == null ? void 0 : f.provider) && (await $s({
7849
+ a(ot()), o([]), h !== (f == null ? void 0 : f.provider) && (await Os({
7850
7850
  provider: h,
7851
7851
  accessToken: await n(),
7852
7852
  username: (s == null ? void 0 : s.username) || ""
7853
7853
  }), d(), Q.success(
7854
- `${Un} ${h}`,
7854
+ `${Fn} ${h}`,
7855
7855
  Er({
7856
7856
  containerId: "toggle-provider",
7857
7857
  transition: Cr
@@ -7877,7 +7877,7 @@ const em = (e) => {
7877
7877
  {
7878
7878
  mode: "dark",
7879
7879
  focusMode: "light",
7880
- trigger: /* @__PURE__ */ c(Se, { noBorder: !0, label: "Providers", children: xn.map(
7880
+ trigger: /* @__PURE__ */ c(Se, { noBorder: !0, label: "Providers", children: Tn.map(
7881
7881
  (h) => f.provider === h.id ? /* @__PURE__ */ c(
7882
7882
  h.icon,
7883
7883
  {
@@ -7890,7 +7890,7 @@ const em = (e) => {
7890
7890
  defaultPlacement: "top-start",
7891
7891
  children: [
7892
7892
  /* @__PURE__ */ c(xi, { children: "Providers" }),
7893
- xn.map((h) => /* @__PURE__ */ c(
7893
+ Tn.map((h) => /* @__PURE__ */ c(
7894
7894
  Ye,
7895
7895
  {
7896
7896
  selected: f.provider === h.id,
@@ -7907,7 +7907,7 @@ const em = (e) => {
7907
7907
  ) }) : null;
7908
7908
  }, nm = () => p(
7909
7909
  "relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
7910
- ), Tn = () => p("bg-surface-darker"), sm = () => p("text-copy-lighter caret-copy-light"), im = () => p(
7910
+ ), En = () => p("bg-surface-darker"), sm = () => p("text-copy-lighter caret-copy-light"), im = () => p(
7911
7911
  "has-[.av-prompt-editable:focus]:outline",
7912
7912
  "has-[.av-prompt-editable:focus]:outline-2",
7913
7913
  "has-[.av-prompt-editable:focus]:outline-offset-2",
@@ -7918,27 +7918,27 @@ const em = (e) => {
7918
7918
  "h-6 pr-2 pl-4"
7919
7919
  ), cm = ({ className: e }) => {
7920
7920
  const t = p(
7921
- Ki,
7921
+ Yi,
7922
7922
  nm(),
7923
- Tn(),
7923
+ En(),
7924
7924
  sm(),
7925
7925
  im(),
7926
7926
  e
7927
7927
  ), r = p(
7928
- Qi,
7928
+ Ji,
7929
7929
  lm(),
7930
- Tn()
7930
+ En()
7931
7931
  );
7932
7932
  return {
7933
7933
  wrapper: t,
7934
7934
  textArea: r
7935
7935
  };
7936
- }, Ii = 24, dm = 500, Ci = 2, um = 5, fm = Ii * Ci, En = um * Ii, vr = (e) => {
7936
+ }, Ii = 24, dm = 500, Ci = 2, um = 5, fm = Ii * Ci, In = um * Ii, vr = (e) => {
7937
7937
  e.current && (e.current.style.height = `${fm}px`);
7938
7938
  }, hm = () => {
7939
7939
  const { user: e, getAccessToken: t } = Ne(), [r, a] = V(!1), {
7940
7940
  state: { streaming: o, lastResetTimestamp: n }
7941
- } = X(ye), { state: s, dispatch: l } = X(so), { state: i } = X(ir), { refetch: d } = to({
7941
+ } = X(ye), { state: s, dispatch: l } = X(io), { state: i } = X(ir), { refetch: d } = to({
7942
7942
  enabled: !1,
7943
7943
  user: (e == null ? void 0 : e.username) || "",
7944
7944
  searchString: i.searchString,
@@ -7954,7 +7954,7 @@ const em = (e) => {
7954
7954
  } = _t({
7955
7955
  onFinish: (S, { usage: A }) => {
7956
7956
  d(), b({
7957
- type: As,
7957
+ type: Rs,
7958
7958
  payload: {
7959
7959
  usage: A.totalTokens
7960
7960
  }
@@ -8002,8 +8002,8 @@ const em = (e) => {
8002
8002
  ...S,
8003
8003
  {
8004
8004
  id: ot(),
8005
- role: Hn,
8006
- content: Xi
8005
+ role: Un,
8006
+ content: Ki
8007
8007
  }
8008
8008
  ]);
8009
8009
  }, 1e3);
@@ -8020,8 +8020,8 @@ const em = (e) => {
8020
8020
  return;
8021
8021
  I.current.style.height = "auto";
8022
8022
  const S = I.current.scrollHeight;
8023
- if (S > En) {
8024
- I.current.style.height = `${En}px`, I.current.style.overflowY = "scroll";
8023
+ if (S > In) {
8024
+ I.current.style.height = `${In}px`, I.current.style.overflowY = "scroll";
8025
8025
  return;
8026
8026
  }
8027
8027
  I.current.style.height = `${S}px`, I.current.style.overflowY = "hidden";
@@ -8040,7 +8040,7 @@ const em = (e) => {
8040
8040
  }, C = (S) => {
8041
8041
  E(), h(S);
8042
8042
  };
8043
- return ps([
8043
+ return ms([
8044
8044
  [
8045
8045
  "mod+K",
8046
8046
  () => {
@@ -8050,10 +8050,10 @@ const em = (e) => {
8050
8050
  ]), P(() => {
8051
8051
  if (s.prompt !== "") {
8052
8052
  const S = s.prompt.endsWith(":") && !s.prompt.endsWith(": ") ? s.prompt + " " : s.prompt;
8053
- S.indexOf(Io) !== -1 ? navigator.clipboard.readText().then(($) => {
8054
- u(S.replace(Io, $));
8053
+ S.indexOf(Co) !== -1 ? navigator.clipboard.readText().then(($) => {
8054
+ u(S.replace(Co, $));
8055
8055
  }) : u(S), !ha() && I.current && I.current.focus(), l({
8056
- type: Pn
8056
+ type: zn
8057
8057
  });
8058
8058
  }
8059
8059
  }, [s, l, u]), P(() => {
@@ -8072,22 +8072,22 @@ const em = (e) => {
8072
8072
  (async () => {
8073
8073
  if (Qe())
8074
8074
  return;
8075
- const S = await t(), A = await Gn(S, [jn.REASONING]);
8075
+ const S = await t(), A = await Hn(S, [Gn.REASONING]);
8076
8076
  a(A);
8077
8077
  })();
8078
8078
  }, [t]), /* @__PURE__ */ c("div", { className: x.wrapper, ref: N, children: /* @__PURE__ */ R("form", { onSubmit: T, children: [
8079
- /* @__PURE__ */ c("div", { id: _, className: "sr-only", children: Co }),
8079
+ /* @__PURE__ */ c("div", { id: _, className: "sr-only", children: So }),
8080
8080
  /* @__PURE__ */ c("div", { className: "relative", children: /* @__PURE__ */ c(
8081
8081
  "textarea",
8082
8082
  {
8083
8083
  required: !0,
8084
8084
  rows: Ci,
8085
8085
  ref: I,
8086
- placeholder: Co,
8086
+ placeholder: So,
8087
8087
  translate: "no",
8088
8088
  onChange: C,
8089
8089
  value: f,
8090
- onKeyDown: bc([["mod+Enter", T]]),
8090
+ onKeyDown: pc([["mod+Enter", T]]),
8091
8091
  className: x.textArea,
8092
8092
  "aria-labelledby": _
8093
8093
  }
@@ -8103,16 +8103,16 @@ const em = (e) => {
8103
8103
  ] })
8104
8104
  ] })
8105
8105
  ] }) });
8106
- }, _r = "--sassy-bottom", In = 16, Cn = 76, mm = ({ isComponent: e }) => {
8106
+ }, _r = "--sassy-bottom", Cn = 16, Sn = 76, mm = ({ isComponent: e }) => {
8107
8107
  const {
8108
8108
  state: { loading: t, streaming: r, restoring: a }
8109
8109
  } = X(ye), {
8110
8110
  state: { footerHeight: o, footerPosition: n },
8111
8111
  dispatch: s
8112
- } = X(io), { messages: l } = _t(), { height: i } = Ec(), { height: d } = Ic(), [f, u] = ys();
8112
+ } = X(lo), { messages: l } = _t(), { height: i } = kc(), { height: d } = xc(), [f, u] = gs();
8113
8113
  return P(() => {
8114
8114
  o !== u.height && s({
8115
- type: Rs,
8115
+ type: Ns,
8116
8116
  payload: {
8117
8117
  footerHeight: u.height
8118
8118
  }
@@ -8123,7 +8123,7 @@ const em = (e) => {
8123
8123
  return;
8124
8124
  const h = i - d, m = (g = f == null ? void 0 : f.current) == null ? void 0 : g.style.getPropertyValue(_r);
8125
8125
  if (n === Sa && (t && !r || a)) {
8126
- const w = h > 0 && h < 100 ? Cn : In;
8126
+ const w = h > 0 && h < 100 ? Sn : Cn;
8127
8127
  m !== `${w}px` && (s({
8128
8128
  type: xr,
8129
8129
  payload: {
@@ -8133,7 +8133,7 @@ const em = (e) => {
8133
8133
  }), (y = f == null ? void 0 : f.current) == null || y.style.setProperty(_r, `${w}px`));
8134
8134
  }
8135
8135
  if (n === Wt) {
8136
- const w = h > 0 && h < 100 ? Cn : In;
8136
+ const w = h > 0 && h < 100 ? Sn : Cn;
8137
8137
  m !== `${w}px` && (s({
8138
8138
  type: xr,
8139
8139
  payload: {
@@ -8176,16 +8176,16 @@ const em = (e) => {
8176
8176
  "fixed left-1/2 transform -translate-x-1/2",
8177
8177
  "transition-all ease-in-out duration-500",
8178
8178
  "bottom-(--sassy-bottom)",
8179
- Sf
8179
+ Ef
8180
8180
  ),
8181
8181
  children: [
8182
8182
  /* @__PURE__ */ c(hm, {}),
8183
- /* @__PURE__ */ c("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Zi })
8183
+ /* @__PURE__ */ c("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Qi })
8184
8184
  ]
8185
8185
  }
8186
8186
  );
8187
8187
  }, pm = () => {
8188
- const e = qt(), t = qt(), { data: r, isSuccess: a } = Ls(), o = (r == null ? void 0 : r.version) || "", n = (r == null ? void 0 : r.models) || [];
8188
+ const e = qt(), t = qt(), { data: r, isSuccess: a } = $s(), o = (r == null ? void 0 : r.version) || "", n = (r == null ? void 0 : r.models) || [];
8189
8189
  return /* @__PURE__ */ R(se, { children: [
8190
8190
  /* @__PURE__ */ c("div", { className: "mb-4", children: /* @__PURE__ */ c(
8191
8191
  Oe,
@@ -8193,8 +8193,8 @@ const em = (e) => {
8193
8193
  header: ne.ABOUT.TITLE_CLIENT,
8194
8194
  className: "prose-dark dark:prose-lighter",
8195
8195
  children: Ir(e, {
8196
- [ne.ABOUT.VERSION]: "8.12.0",
8197
- [ne.ABOUT.BUILD_TIMESTAMP]: "04/05/2025 08:21 PM EDT"
8196
+ [ne.ABOUT.VERSION]: "8.12.1",
8197
+ [ne.ABOUT.BUILD_TIMESTAMP]: "04/06/2025 12:14 PM EDT"
8198
8198
  })
8199
8199
  }
8200
8200
  ) }),
@@ -8219,7 +8219,7 @@ const em = (e) => {
8219
8219
  animation: !Qe(),
8220
8220
  open: e,
8221
8221
  onOpenChange: t,
8222
- title: el,
8222
+ title: Xi,
8223
8223
  children: /* @__PURE__ */ c(pm, {})
8224
8224
  }
8225
8225
  ), ym = ({
@@ -8229,18 +8229,18 @@ const em = (e) => {
8229
8229
  mutate: a
8230
8230
  }) => {
8231
8231
  var T;
8232
- const { user: o, getAccessToken: n } = Ne(), { data: s } = Ls(), l = L(null), i = L({
8232
+ const { user: o, getAccessToken: n } = Ne(), { data: s } = $s(), l = L(null), i = L({
8233
8233
  id: "",
8234
8234
  timestamp: "",
8235
8235
  message: ""
8236
8236
  }), [d, f] = V(!1), [u, h] = V(
8237
- So + No
8237
+ No + Ro
8238
8238
  ), { state: m, dispatch: g } = X(ir), {
8239
8239
  state: { provider: y },
8240
8240
  setChatId: b,
8241
8241
  setInitialMessages: v
8242
8242
  } = X(ye), { setInput: w } = _t(), [, k] = gt({
8243
- key: pt + Wn,
8243
+ key: pt + jn,
8244
8244
  initialValue: m.sortDirection
8245
8245
  }), { refetch: N } = or({
8246
8246
  user: o == null ? void 0 : o.username,
@@ -8277,7 +8277,7 @@ const em = (e) => {
8277
8277
  id: C.id
8278
8278
  }
8279
8279
  }), a(""), Q.error(
8280
- tl,
8280
+ Zi,
8281
8281
  Er({
8282
8282
  autoClose: 2e3,
8283
8283
  containerId: "history-table",
@@ -8286,26 +8286,26 @@ const em = (e) => {
8286
8286
  );
8287
8287
  } catch {
8288
8288
  }
8289
- }, x = async (C, S, A, $, M, F) => {
8289
+ }, x = async (C, S, A, $, D, F) => {
8290
8290
  try {
8291
- const D = await Ot({
8291
+ const M = await Ot({
8292
8292
  accessToken: $,
8293
8293
  type: $e.GET_CHAT,
8294
8294
  params: {
8295
8295
  id: C.id
8296
8296
  }
8297
8297
  });
8298
- D.status === 200 && (D.data.provider !== F && (await $s({
8299
- provider: D.data.provider,
8298
+ M.status === 200 && (M.data.provider !== F && (await Os({
8299
+ provider: M.data.provider,
8300
8300
  accessToken: $,
8301
- username: M
8301
+ username: D
8302
8302
  }), S({
8303
8303
  type: eo,
8304
8304
  payload: {
8305
- provider: D.data.provider
8305
+ provider: M.data.provider
8306
8306
  }
8307
8307
  }), N(), Q.success(
8308
- `${Un} ${D.data.provider}`,
8308
+ `${Fn} ${M.data.provider}`,
8309
8309
  Er({
8310
8310
  containerId: "toggle-provider",
8311
8311
  transition: Cr
@@ -8315,11 +8315,11 @@ const em = (e) => {
8315
8315
  payload: {
8316
8316
  restoring: !0
8317
8317
  }
8318
- }), w(""), b(C.id), v(D.data.messages), A(!1));
8318
+ }), w(""), b(C.id), v(M.data.messages), A(!1));
8319
8319
  } catch {
8320
8320
  }
8321
8321
  }, E = Y((C) => {
8322
- C[0].isIntersecting && h((A) => A + So);
8322
+ C[0].isIntersecting && h((A) => A + No);
8323
8323
  }, []);
8324
8324
  return P(() => {
8325
8325
  const C = {
@@ -8329,7 +8329,7 @@ const em = (e) => {
8329
8329
  l.current && S.observe(l.current);
8330
8330
  }), /* @__PURE__ */ R(se, { children: [
8331
8331
  /* @__PURE__ */ R(
8332
- Mt,
8332
+ Dt,
8333
8333
  {
8334
8334
  showConfirmation: d,
8335
8335
  setShowConfirmation: f,
@@ -8356,12 +8356,12 @@ const em = (e) => {
8356
8356
  ]
8357
8357
  }
8358
8358
  ),
8359
- /* @__PURE__ */ c("div", { className: qn, children: /* @__PURE__ */ c(Ca, { containerId: "history-table" }) }),
8360
- /* @__PURE__ */ R(td, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
8361
- /* @__PURE__ */ c(rd, { children: /* @__PURE__ */ R(Wr, { children: [
8359
+ /* @__PURE__ */ c("div", { className: Wn, children: /* @__PURE__ */ c(Ca, { containerId: "history-table" }) }),
8360
+ /* @__PURE__ */ R(Xc, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
8361
+ /* @__PURE__ */ c(Zc, { children: /* @__PURE__ */ R(Wr, { children: [
8362
8362
  /* @__PURE__ */ c(Ae, { className: "sr-only", children: "Row" }),
8363
8363
  /* @__PURE__ */ c(
8364
- nd,
8364
+ rd,
8365
8365
  {
8366
8366
  buttonClassName: "text-xs sm:text-sm",
8367
8367
  cellId: "timestamp",
@@ -8378,11 +8378,11 @@ const em = (e) => {
8378
8378
  /* @__PURE__ */ c(Ae, { className: "text-xs sm:text-sm", children: "Provider" }),
8379
8379
  /* @__PURE__ */ c(Ae, { className: "text-xs sm:text-sm text-right", children: "Actions" })
8380
8380
  ] }) }),
8381
- /* @__PURE__ */ c(od, { children: e.slice(0, u).map((C, S) => {
8382
- var $, M;
8381
+ /* @__PURE__ */ c(td, { children: e.slice(0, u).map((C, S) => {
8382
+ var $, D;
8383
8383
  const A = C.summary || (C.messages.length > 0 ? ($ = C.messages[0]) == null ? void 0 : $.content : "");
8384
- return ((M = C == null ? void 0 : C.messages) == null ? void 0 : M.length) > 0 ? /* @__PURE__ */ R(vl, { children: [
8385
- S === u - No && /* @__PURE__ */ c("tr", { ref: l }),
8384
+ return ((D = C == null ? void 0 : C.messages) == null ? void 0 : D.length) > 0 ? /* @__PURE__ */ R(gl, { children: [
8385
+ S === u - Ro && /* @__PURE__ */ c("tr", { ref: l }),
8386
8386
  /* @__PURE__ */ R(Wr, { children: [
8387
8387
  /* @__PURE__ */ c(Ae, { children: S + 1 }),
8388
8388
  /* @__PURE__ */ c(
@@ -8412,14 +8412,14 @@ const em = (e) => {
8412
8412
  className: "text-gray-400",
8413
8413
  align: "center",
8414
8414
  children: [
8415
- C.model && s && Ro(
8415
+ C.model && s && Ao(
8416
8416
  s.modelsPerProvider,
8417
8417
  C.model
8418
- ) === Fn && /* @__PURE__ */ c(us, { size: "size-4 sm:size-5", semantic: !0 }),
8419
- C.model && s && Ro(
8418
+ ) === ni && /* @__PURE__ */ c(ds, { size: "size-4 sm:size-5", semantic: !0 }),
8419
+ C.model && s && Ao(
8420
8420
  s.modelsPerProvider,
8421
8421
  C.model
8422
- ) === Vn && /* @__PURE__ */ c(hs, { size: "size-4 sm:size-5", semantic: !0 })
8422
+ ) === so && /* @__PURE__ */ c(fs, { size: "size-4 sm:size-5", semantic: !0 })
8423
8423
  ]
8424
8424
  }
8425
8425
  ),
@@ -8442,7 +8442,7 @@ const em = (e) => {
8442
8442
  y
8443
8443
  );
8444
8444
  },
8445
- children: /* @__PURE__ */ c(ic, { size: "size-3", monotone: !0 })
8445
+ children: /* @__PURE__ */ c(oc, { size: "size-3", monotone: !0 })
8446
8446
  }
8447
8447
  ),
8448
8448
  /* @__PURE__ */ c(
@@ -8459,14 +8459,14 @@ const em = (e) => {
8459
8459
  message: C.messages.length > 0 ? (F = C.messages[0]) == null ? void 0 : F.content : ""
8460
8460
  }, f(!d);
8461
8461
  },
8462
- children: /* @__PURE__ */ c("div", { className: "text-red-400", children: /* @__PURE__ */ c(Kl, { size: "size-3", monotone: !0 }) })
8462
+ children: /* @__PURE__ */ c("div", { className: "text-red-400", children: /* @__PURE__ */ c(ql, { size: "size-3", monotone: !0 }) })
8463
8463
  }
8464
8464
  )
8465
8465
  ] })
8466
8466
  ] })
8467
8467
  ] }, `${ne.HISTORY.TITLE}-${C.id}-${S}`) : null;
8468
8468
  }) }),
8469
- /* @__PURE__ */ c(ad, { children: /* @__PURE__ */ c(Wr, { children: /* @__PURE__ */ c(Ae, { colSpan: 1e3, children: /* @__PURE__ */ c("div", { children: jt(
8469
+ /* @__PURE__ */ c(ed, { children: /* @__PURE__ */ c(Wr, { children: /* @__PURE__ */ c(Ae, { colSpan: 1e3, children: /* @__PURE__ */ c("div", { children: jt(
8470
8470
  `${e.length} chat`,
8471
8471
  e.length
8472
8472
  ) }) }) }) })
@@ -8485,7 +8485,7 @@ const em = (e) => {
8485
8485
  sortDirection: f,
8486
8486
  getAccessToken: r
8487
8487
  }), [, g] = gt({
8488
- key: pt + Yn,
8488
+ key: pt + qn,
8489
8489
  initialValue: i.searchString
8490
8490
  });
8491
8491
  P(() => {
@@ -8495,10 +8495,10 @@ const em = (e) => {
8495
8495
  }, [h]);
8496
8496
  const y = async (w) => {
8497
8497
  g(w), d({
8498
- type: Bn,
8498
+ type: Pn,
8499
8499
  payload: { searchString: w }
8500
8500
  });
8501
- }, b = ol((w) => {
8501
+ }, b = rl((w) => {
8502
8502
  y(w.target.value.trim());
8503
8503
  }, 500), v = async (w) => {
8504
8504
  w.preventDefault();
@@ -8509,10 +8509,10 @@ const em = (e) => {
8509
8509
  animation: !Qe(),
8510
8510
  open: e,
8511
8511
  onOpenChange: t,
8512
- title: rl,
8512
+ title: el,
8513
8513
  children: /* @__PURE__ */ R(se, { children: [
8514
8514
  /* @__PURE__ */ c("form", { autoComplete: "off", onSubmit: v, children: /* @__PURE__ */ c(
8515
- al,
8515
+ tl,
8516
8516
  {
8517
8517
  placeholder: "Search",
8518
8518
  labelHidden: !0,
@@ -8540,7 +8540,7 @@ const em = (e) => {
8540
8540
  y(""), (w = l.current) != null && w.value && (l.current.value = "", l.current.focus());
8541
8541
  },
8542
8542
  disabled: i.searchString === "",
8543
- children: i.searchString !== "" ? /* @__PURE__ */ c(fs, { monotone: !0, size: "size-3" }) : /* @__PURE__ */ c(cc, { monotone: !0, size: "size-3" })
8543
+ children: i.searchString !== "" ? /* @__PURE__ */ c(us, { monotone: !0, size: "size-3" }) : /* @__PURE__ */ c(sc, { monotone: !0, size: "size-3" })
8544
8544
  }
8545
8545
  ) })
8546
8546
  }
@@ -8571,12 +8571,12 @@ const em = (e) => {
8571
8571
  })
8572
8572
  }
8573
8573
  ),
8574
- a !== nl.PASSKEY && !fa() && /* @__PURE__ */ R(
8574
+ a !== al.PASSKEY && !fa() && /* @__PURE__ */ R(
8575
8575
  Oe,
8576
8576
  {
8577
8577
  className: "prose-dark dark:prose-lighter mt-4",
8578
8578
  header: /* @__PURE__ */ c("h2", { className: "m-0", children: /* @__PURE__ */ R(er, { columnGap: 3, alignVertical: "center", children: [
8579
- /* @__PURE__ */ c(He, { children: /* @__PURE__ */ c(Ao, { size: "size-8" }) }),
8579
+ /* @__PURE__ */ c(He, { children: /* @__PURE__ */ c(Oo, { size: "size-8" }) }),
8580
8580
  /* @__PURE__ */ c(He, { children: /* @__PURE__ */ c("div", { children: ne.PREFERENCES.PASSKEY_TITLE }) })
8581
8581
  ] }) }),
8582
8582
  children: [
@@ -8588,7 +8588,7 @@ const em = (e) => {
8588
8588
  className: "mt-2",
8589
8589
  onClick: r,
8590
8590
  labelLeft: ne.PREFERENCES.PASSKEY_BUTTON,
8591
- children: /* @__PURE__ */ c(Ao, { size: "size-5", monotone: !0 })
8591
+ children: /* @__PURE__ */ c(Oo, { size: "size-5", monotone: !0 })
8592
8592
  }
8593
8593
  )
8594
8594
  ]
@@ -8604,7 +8604,7 @@ const em = (e) => {
8604
8604
  animation: !Qe(),
8605
8605
  open: e,
8606
8606
  onOpenChange: t,
8607
- title: sl,
8607
+ title: ol,
8608
8608
  children: /* @__PURE__ */ c(vm, {})
8609
8609
  }
8610
8610
  );
@@ -8646,7 +8646,7 @@ const Im = {
8646
8646
  bottom: 0,
8647
8647
  right: 0
8648
8648
  };
8649
- function Sn(e) {
8649
+ function Nn(e) {
8650
8650
  const t = Tm(), r = L(0), a = L(null), [o, n] = V(Im), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
8651
8651
  const i = l[0];
8652
8652
  i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
@@ -8717,7 +8717,7 @@ const Ni = "SET_ANNOUNCEMENT", Ri = "CLEAR_ANNOUNCEMENT", Nm = {
8717
8717
  t({
8718
8718
  type: Ri
8719
8719
  }), typeof e == "function" && e();
8720
- }, Nn = ({
8720
+ }, Rn = ({
8721
8721
  children: e,
8722
8722
  clearAnnouncementDelay: t,
8723
8723
  clearAnnouncementTimeoutRef: r,
@@ -8743,13 +8743,13 @@ const Ni = "SET_ANNOUNCEMENT", Ri = "CLEAR_ANNOUNCEMENT", Nm = {
8743
8743
  onAnnouncementClear: n,
8744
8744
  dispatch: s
8745
8745
  }) => {
8746
- clearTimeout(t.current), r ? t.current = setTimeout(Nn, r, {
8746
+ clearTimeout(t.current), r ? t.current = setTimeout(Rn, r, {
8747
8747
  children: e,
8748
8748
  clearAnnouncementDelay: a,
8749
8749
  clearAnnouncementTimeoutRef: o,
8750
8750
  onAnnouncementClear: n,
8751
8751
  dispatch: s
8752
- }) : Nn({
8752
+ }) : Rn({
8753
8753
  children: e,
8754
8754
  clearAnnouncementDelay: a,
8755
8755
  clearAnnouncementTimeoutRef: o,
@@ -8815,12 +8815,12 @@ try {
8815
8815
  });
8816
8816
  } catch {
8817
8817
  }
8818
- const Lm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", Dm = ({ mode: e }) => p({
8818
+ const Lm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", Mm = ({ mode: e }) => p({
8819
8819
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
8820
8820
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
8821
8821
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
8822
8822
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
8823
- }), Mm = ({
8823
+ }), Dm = ({
8824
8824
  focusMode: e
8825
8825
  }) => p("focus:outline focus:outline-2 focus:outline-offset-2", {
8826
8826
  "focus:outline-focus-dark": e === "dark",
@@ -8921,8 +8921,8 @@ const Lm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
8921
8921
  Si,
8922
8922
  t,
8923
8923
  Lm(),
8924
- Dm({ mode: l }),
8925
- Mm({ focusMode: a }),
8924
+ Mm({ mode: l }),
8925
+ Dm({ focusMode: a }),
8926
8926
  Bm({
8927
8927
  noBorder: n,
8928
8928
  error: s
@@ -8994,7 +8994,7 @@ const Lm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
8994
8994
  ...I
8995
8995
  }, _) => {
8996
8996
  var x;
8997
- const E = L(null), T = Em([_, E]), [C, S] = Sn(), [A, $] = Sn(), M = L(80), F = L(-25), D = L(null), W = L(30), G = L(null), J = Sm({ id: e, prefix: `${Si}-` }), [me, Me] = V(0), [Ie, et] = V(0), [lt, We] = V(
8997
+ const E = L(null), T = Em([_, E]), [C, S] = Nn(), [A, $] = Nn(), D = L(80), F = L(-25), M = L(null), W = L(30), G = L(null), J = Sm({ id: e, prefix: `${Si}-` }), [me, De] = V(0), [Ie, et] = V(0), [lt, We] = V(
8998
8998
  !!(!y && g)
8999
8999
  ), Be = `${t} error, ${g}`, we = Vm({
9000
9000
  className: n,
@@ -9026,7 +9026,7 @@ const Lm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
9026
9026
  y && g && !Ce && We(!1), N && N(B);
9027
9027
  };
9028
9028
  return ge(() => {
9029
- S && S.width && Me(S.width + 18 + 10);
9029
+ S && S.width && De(S.width + 18 + 10);
9030
9030
  }, [S]), ge(() => {
9031
9031
  $ && $.width && et($.width + 18 + 10);
9032
9032
  }, [$]), ge(() => {
@@ -9034,7 +9034,7 @@ const Lm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
9034
9034
  }, [Ce, o]), ge(() => {
9035
9035
  o || setTimeout(() => {
9036
9036
  var B;
9037
- (B = D == null ? void 0 : D.current) == null || B.style.setProperty(
9037
+ (B = M == null ? void 0 : M.current) == null || B.style.setProperty(
9038
9038
  "--av-text-area-wrapper-transition",
9039
9039
  Ce ? "none" : "all 0.2s ease-out"
9040
9040
  );
@@ -9044,19 +9044,19 @@ const Lm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
9044
9044
  if (!o && E && E.current && Ce !== void 0) {
9045
9045
  const { labelOffset: ee, helperTextOffset: K, scrollHeight: le } = Fm({
9046
9046
  scrollHeight: E.current.scrollHeight,
9047
- currentHeight: M.current,
9047
+ currentHeight: D.current,
9048
9048
  currentLabelOffset: F.current,
9049
9049
  currentHelperTextOffset: W.current
9050
9050
  });
9051
- ee && (F.current = ee, (B = D == null ? void 0 : D.current) == null || B.style.setProperty(
9051
+ ee && (F.current = ee, (B = M == null ? void 0 : M.current) == null || B.style.setProperty(
9052
9052
  "--av-text-area-label",
9053
9053
  `${ee}px`
9054
9054
  )), K && (W.current = K, (z = G == null ? void 0 : G.current) == null || z.style.setProperty(
9055
9055
  "--av-text-area-helper-text",
9056
9056
  `${K}px`
9057
- )), M.current = le || M.current;
9057
+ )), D.current = le || D.current;
9058
9058
  }
9059
- }, [Ce, o]), $.width > 0 && ((x = D == null ? void 0 : D.current) == null || x.style.setProperty(
9059
+ }, [Ce, o]), $.width > 0 && ((x = M == null ? void 0 : M.current) == null || x.style.setProperty(
9060
9060
  "--tw-translate-x",
9061
9061
  `${12 + $.width + 5}px`
9062
9062
  )), /* @__PURE__ */ R("div", { className: we.wrapper, children: [
@@ -9107,7 +9107,7 @@ const Lm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
9107
9107
  !o && /* @__PURE__ */ c(
9108
9108
  "label",
9109
9109
  {
9110
- ref: D,
9110
+ ref: M,
9111
9111
  "aria-hidden": !0,
9112
9112
  htmlFor: J,
9113
9113
  className: `${we.visibleLabel}`,
@@ -9268,7 +9268,7 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9268
9268
  }), [d, f] = V({
9269
9269
  prompts: []
9270
9270
  }), [u, h] = V(""), [m, g] = V(""), [y, b] = gt({
9271
- key: pt + il,
9271
+ key: pt + nl,
9272
9272
  initialValue: !1
9273
9273
  }), v = (_) => {
9274
9274
  b(_);
@@ -9295,7 +9295,7 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9295
9295
  loadingLocation: !0
9296
9296
  }), g("...");
9297
9297
  try {
9298
- const _ = Date.now(), x = await ul(), E = await Ot({
9298
+ const _ = Date.now(), x = await cl(), E = await Ot({
9299
9299
  accessToken: await r(),
9300
9300
  type: $e.GET_LOCATION,
9301
9301
  params: {
@@ -9304,7 +9304,7 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9304
9304
  }
9305
9305
  }), C = Date.now() - _;
9306
9306
  if (C < 2e3 && await new Promise((S) => setTimeout(S, 2e3 - C)), E.status === 200) {
9307
- const { city: S, state: A, country: $, displayName: M } = E.data, F = S && A && $ ? `${S}, ${A}, ${$}` : M;
9307
+ const { city: S, state: A, country: $, displayName: D } = E.data, F = S && A && $ ? `${S}, ${A}, ${$}` : D;
9308
9308
  i({
9309
9309
  loadingLocation: !1
9310
9310
  }), g(F);
@@ -9330,7 +9330,7 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9330
9330
  clipboardAccess: E
9331
9331
  };
9332
9332
  E ? A.content = A.content + " {{clipboard}}" : A.content = A.content.replace("{{clipboard}}", "");
9333
- const $ = S.findIndex((M) => M.slot === T.slot);
9333
+ const $ = S.findIndex((D) => D.slot === T.slot);
9334
9334
  return $ === -1 ? {
9335
9335
  ...C,
9336
9336
  prompts: [...S, { ...A }]
@@ -9348,7 +9348,7 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9348
9348
  animation: !Qe(),
9349
9349
  open: e,
9350
9350
  onOpenChange: N,
9351
- title: ll,
9351
+ title: sl,
9352
9352
  footer: /* @__PURE__ */ R(
9353
9353
  er,
9354
9354
  {
@@ -9411,7 +9411,7 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9411
9411
  children: [
9412
9412
  /* @__PURE__ */ R("p", { className: "text-sm", children: [
9413
9413
  "What would you like ",
9414
- /* @__PURE__ */ c("em", { children: cl }),
9414
+ /* @__PURE__ */ c("em", { children: il }),
9415
9415
  " to know about you to provide better responses?"
9416
9416
  ] }),
9417
9417
  /* @__PURE__ */ c(
@@ -9473,7 +9473,7 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9473
9473
  header: ne.SETTINGS_PROMPTS.TITLE,
9474
9474
  className: "prose-dark dark:prose-lighter mt-4",
9475
9475
  children: [
9476
- /* @__PURE__ */ c("p", { className: "text-sm", children: dl }),
9476
+ /* @__PURE__ */ c("p", { className: "text-sm", children: ll }),
9477
9477
  d.prompts && d.prompts.slice(0, 3).map((_) => /* @__PURE__ */ R(
9478
9478
  Oe,
9479
9479
  {
@@ -9544,17 +9544,17 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9544
9544
  ] })
9545
9545
  }
9546
9546
  ) : null;
9547
- }, dt = [0, 3, 6, 9], Xm = es(() => import(
9547
+ }, dt = [0, 3, 6, 9], Xm = Zn(() => import(
9548
9548
  /* webpackChunkName: "LazyChart" */
9549
- "./Chart.C5viYOkW.js"
9549
+ "./Chart.CEfZX6lz.js"
9550
9550
  )), Zm = ({
9551
9551
  open: e,
9552
9552
  onOpenChange: t
9553
9553
  }) => {
9554
- const { getAccessToken: r, user: a } = Ne(), o = qt(), { data: n, isSuccess: s } = Wd({
9554
+ const { getAccessToken: r, user: a } = Ne(), o = qt(), { data: n, isSuccess: s } = Hd({
9555
9555
  user: a == null ? void 0 : a.username,
9556
9556
  getAccessToken: r
9557
- }), { data: l, isSuccess: i } = qd({
9557
+ }), { data: l, isSuccess: i } = Gd({
9558
9558
  user: a == null ? void 0 : a.username,
9559
9559
  getAccessToken: r
9560
9560
  }), d = Math.floor((/* @__PURE__ */ new Date()).getMonth() / 3) * 3, [f, u] = V(d), h = (g) => {
@@ -9572,7 +9572,7 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9572
9572
  animation: !Qe(),
9573
9573
  open: e,
9574
9574
  onOpenChange: t,
9575
- title: fl,
9575
+ title: dl,
9576
9576
  children: /* @__PURE__ */ R(se, { children: [
9577
9577
  /* @__PURE__ */ c(
9578
9578
  Oe,
@@ -9597,7 +9597,7 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9597
9597
  {
9598
9598
  header: ne.MAIN_STATISTICS.USAGE,
9599
9599
  className: "prose-dark dark:prose-lighter mt-4 min-h-[535px]",
9600
- children: i && l && l.usage && l.usage.series && l.usage.series.length ? /* @__PURE__ */ R(Zn, { fallback: /* @__PURE__ */ c("div", {}), children: [
9600
+ children: i && l && l.usage && l.usage.series && l.usage.series.length ? /* @__PURE__ */ R(Xn, { fallback: /* @__PURE__ */ c("div", {}), children: [
9601
9601
  /* @__PURE__ */ c("div", { className: "pt-4" }),
9602
9602
  /* @__PURE__ */ c(Xm, { usage: l.usage.series, page: f }),
9603
9603
  /* @__PURE__ */ c(er, { className: "mt-2", alignHorizontal: "center", children: /* @__PURE__ */ R(He, { children: [
@@ -9648,20 +9648,20 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9648
9648
  (async () => {
9649
9649
  if (!Qe())
9650
9650
  return;
9651
- const x = await r(), E = await Gn(x, [jn.REASONING]);
9651
+ const x = await r(), E = await Hn(x, [Gn.REASONING]);
9652
9652
  g(E);
9653
9653
  })();
9654
9654
  }, [r]), /* @__PURE__ */ R(se, { children: [
9655
9655
  /* @__PURE__ */ c(
9656
- Mt,
9656
+ Dt,
9657
9657
  {
9658
9658
  showConfirmation: y,
9659
9659
  setShowConfirmation: b,
9660
9660
  action: t,
9661
9661
  customStrings: {
9662
- confirmAction: Oo,
9662
+ confirmAction: $o,
9663
9663
  cancelAction: "Cancel",
9664
- title: Oo
9664
+ title: $o
9665
9665
  },
9666
9666
  children: /* @__PURE__ */ c("p", { children: "Are you sure you want to log out?" })
9667
9667
  }
@@ -9696,7 +9696,7 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9696
9696
  {
9697
9697
  mode: "dark",
9698
9698
  focusMode: "light",
9699
- trigger: /* @__PURE__ */ c(Se, { label: "Settings", children: /* @__PURE__ */ c(uc, {}) }),
9699
+ trigger: /* @__PURE__ */ c(Se, { label: "Settings", children: /* @__PURE__ */ c(lc, {}) }),
9700
9700
  defaultPlacement: "bottom-end",
9701
9701
  children: [
9702
9702
  /* @__PURE__ */ c(
@@ -9704,7 +9704,7 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9704
9704
  {
9705
9705
  label: "Profile",
9706
9706
  onClick: v,
9707
- icon: /* @__PURE__ */ c(nc, {})
9707
+ icon: /* @__PURE__ */ c(rc, {})
9708
9708
  }
9709
9709
  ),
9710
9710
  /* @__PURE__ */ c(
@@ -9712,7 +9712,7 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9712
9712
  {
9713
9713
  label: "Settings",
9714
9714
  onClick: w,
9715
- icon: /* @__PURE__ */ c(fc, {})
9715
+ icon: /* @__PURE__ */ c(cc, {})
9716
9716
  }
9717
9717
  ),
9718
9718
  /* @__PURE__ */ c(
@@ -9720,7 +9720,7 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9720
9720
  {
9721
9721
  label: "History",
9722
9722
  onClick: k,
9723
- icon: /* @__PURE__ */ c(ec, {})
9723
+ icon: /* @__PURE__ */ c(Ql, {})
9724
9724
  }
9725
9725
  ),
9726
9726
  /* @__PURE__ */ c(
@@ -9728,7 +9728,7 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9728
9728
  {
9729
9729
  label: "Usage",
9730
9730
  onClick: I,
9731
- icon: /* @__PURE__ */ c(Jl, {})
9731
+ icon: /* @__PURE__ */ c(Wl, {})
9732
9732
  }
9733
9733
  ),
9734
9734
  /* @__PURE__ */ c(
@@ -9736,7 +9736,7 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9736
9736
  {
9737
9737
  label: "About",
9738
9738
  onClick: N,
9739
- icon: /* @__PURE__ */ c(tc, {})
9739
+ icon: /* @__PURE__ */ c(Xl, {})
9740
9740
  }
9741
9741
  ),
9742
9742
  !e && /* @__PURE__ */ R(se, { children: [
@@ -9746,7 +9746,7 @@ const Um = "av-toggle", Hm = () => p("peer", "h-6", "w-11", "rounded-full"), Gm
9746
9746
  {
9747
9747
  label: "Log out",
9748
9748
  onClick: _,
9749
- icon: /* @__PURE__ */ c("div", { className: "text-red-700", children: /* @__PURE__ */ c(ql, { monotone: !0 }) })
9749
+ icon: /* @__PURE__ */ c("div", { className: "text-red-700", children: /* @__PURE__ */ c(Gl, { monotone: !0 }) })
9750
9750
  }
9751
9751
  )
9752
9752
  ] })
@@ -9773,7 +9773,7 @@ try {
9773
9773
  });
9774
9774
  } catch {
9775
9775
  }
9776
- const Tr = "av-bubble", Rn = "av-button", go = "icon", Ai = "button", Wa = "link", tp = ({
9776
+ const Tr = "av-bubble", An = "av-button", yo = "icon", Ai = "button", Wa = "link", tp = ({
9777
9777
  type: e,
9778
9778
  size: t,
9779
9779
  labelRight: r,
@@ -9790,7 +9790,7 @@ const Tr = "av-bubble", Rn = "av-button", go = "icon", Ai = "button", Wa = "link
9790
9790
  [l]: t === "medium",
9791
9791
  [i]: t === "large"
9792
9792
  });
9793
- case go:
9793
+ case yo:
9794
9794
  return p("flex items-center", {
9795
9795
  "justify-center": o === "center",
9796
9796
  "justify-start": o === "left",
@@ -9825,7 +9825,7 @@ const Tr = "av-bubble", Rn = "av-button", go = "icon", Ai = "button", Wa = "link
9825
9825
  [n]: t === "medium",
9826
9826
  [s]: t === "large"
9827
9827
  });
9828
- case go:
9828
+ case yo:
9829
9829
  return p({
9830
9830
  [o]: t === "small" && (r || a),
9831
9831
  [n]: t === "medium" && (r || a),
@@ -10035,8 +10035,8 @@ const Tr = "av-bubble", Rn = "av-button", go = "icon", Ai = "button", Wa = "link
10035
10035
  align: g,
10036
10036
  radius: y,
10037
10037
  animated: b
10038
- }) => (h || (h = "primary"), r ? p(Rn, t) : p(
10039
- Rn,
10038
+ }) => (h || (h = "primary"), r ? p(An, t) : p(
10039
+ An,
10040
10040
  ap({
10041
10041
  mode: a,
10042
10042
  variant: h,
@@ -10132,7 +10132,7 @@ const yp = {
10132
10132
  // px-3 x 2
10133
10133
  large: 16 * 2
10134
10134
  // px-4 x 2
10135
- }, vp = 2, yo = U.forwardRef(
10135
+ }, vp = 2, bo = U.forwardRef(
10136
10136
  ({
10137
10137
  children: e,
10138
10138
  disabled: t = !1,
@@ -10157,7 +10157,7 @@ const yp = {
10157
10157
  ...N
10158
10158
  }, I) => {
10159
10159
  const _ = fp({
10160
- type: go,
10160
+ type: yo,
10161
10161
  mode: r,
10162
10162
  focusMode: a,
10163
10163
  fullWidth: o,
@@ -10173,11 +10173,11 @@ const yp = {
10173
10173
  radius: b,
10174
10174
  variant: v,
10175
10175
  animated: k
10176
- }), x = dp({ mode: r, raw: l, iconClassName: w }), E = up({ animated: k }), [T, C] = ia(), [S, A] = ia(), [$, M] = ia(), F = L(0), D = L(null), W = pp([I, D]);
10176
+ }), x = dp({ mode: r, raw: l, iconClassName: w }), E = up({ animated: k }), [T, C] = ia(), [S, A] = ia(), [$, D] = ia(), F = L(0), M = L(null), W = pp([I, M]);
10177
10177
  return ge(() => {
10178
- $ && $.current && k && (F.current = M.width + bp[u] + (i ? 0 : vp));
10179
- }, [M, $, u, i, k]), ge(() => {
10180
- D && D.current && k && (h && T && C.width > 0 ? (T.current && (T.current.style.opacity = "100"), D.current.style.width = `${C.width + F.current}px`) : m && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), D.current.style.width = `${A.width + F.current}px`) : (T.current && (T.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), D.current.style.width = `${yp[u]}px`));
10178
+ $ && $.current && k && (F.current = D.width + bp[u] + (i ? 0 : vp));
10179
+ }, [D, $, u, i, k]), ge(() => {
10180
+ M && M.current && k && (h && T && C.width > 0 ? (T.current && (T.current.style.opacity = "100"), M.current.style.width = `${C.width + F.current}px`) : m && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), M.current.style.width = `${A.width + F.current}px`) : (T.current && (T.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), M.current.style.width = `${yp[u]}px`));
10181
10181
  }, [
10182
10182
  C,
10183
10183
  h,
@@ -10198,7 +10198,7 @@ const yp = {
10198
10198
  ...N,
10199
10199
  children: [
10200
10200
  /* @__PURE__ */ c(
10201
- An,
10201
+ On,
10202
10202
  {
10203
10203
  label: m,
10204
10204
  labelRef: S,
@@ -10208,7 +10208,7 @@ const yp = {
10208
10208
  ),
10209
10209
  /* @__PURE__ */ c("span", { ref: $, className: x, children: e }),
10210
10210
  /* @__PURE__ */ c(
10211
- An,
10211
+ On,
10212
10212
  {
10213
10213
  label: h,
10214
10214
  labelRef: T,
@@ -10220,13 +10220,13 @@ const yp = {
10220
10220
  }
10221
10221
  );
10222
10222
  }
10223
- ), An = ({
10223
+ ), On = ({
10224
10224
  labelRef: e,
10225
10225
  labelClass: t,
10226
10226
  label: r,
10227
10227
  labelInnerClass: a
10228
10228
  }) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
10229
- yo.displayName = "ButtonIcon";
10229
+ bo.displayName = "ButtonIcon";
10230
10230
  /*!
10231
10231
  @versini/ui-button v6.0.4
10232
10232
  © 2025 gizmette.com
@@ -10266,7 +10266,7 @@ const _p = U.forwardRef(
10266
10266
  }
10267
10267
  ) : "";
10268
10268
  return /* @__PURE__ */ c("div", { className: s, children: /* @__PURE__ */ c(
10269
- yo,
10269
+ bo,
10270
10270
  {
10271
10271
  className: p("justify-center", r),
10272
10272
  ref: n,
@@ -10448,7 +10448,7 @@ const xp = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
10448
10448
  footer: l,
10449
10449
  copyButton: i
10450
10450
  };
10451
- }, bo = ({
10451
+ }, vo = ({
10452
10452
  children: e,
10453
10453
  kind: t = "left",
10454
10454
  className: r,
@@ -10488,7 +10488,7 @@ const xp = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
10488
10488
  n && n
10489
10489
  ] }),
10490
10490
  g && /* @__PURE__ */ c("div", { className: m.copyButton, children: /* @__PURE__ */ c(
10491
- yo,
10491
+ bo,
10492
10492
  {
10493
10493
  noBorder: !0,
10494
10494
  noBackground: !0,
@@ -10516,14 +10516,14 @@ try {
10516
10516
  });
10517
10517
  } catch {
10518
10518
  }
10519
- const On = "av-spinner", Li = ({
10519
+ const $n = "av-spinner", Li = ({
10520
10520
  spinnerRef: e,
10521
10521
  mode: t = "system",
10522
10522
  type: r = "circle",
10523
10523
  className: a
10524
10524
  }) => {
10525
10525
  const o = r === "circle" ? p(
10526
- On,
10526
+ $n,
10527
10527
  "h-8 w-8",
10528
10528
  "align-[-0.125em]",
10529
10529
  "border-4",
@@ -10535,7 +10535,7 @@ const On = "av-spinner", Li = ({
10535
10535
  "text-copy-accent dark:text-copy-dark": t === "alt-system"
10536
10536
  },
10537
10537
  a
10538
- ) : p(On, a), n = p("av-spinner__dot", {
10538
+ ) : p($n, a), n = p("av-spinner__dot", {
10539
10539
  "fill-copy-dark": t === "dark",
10540
10540
  "fill-copy-accent": t === "light",
10541
10541
  "fill-copy-dark dark:fill-copy-accent": t === "system",
@@ -10549,7 +10549,7 @@ const On = "av-spinner", Li = ({
10549
10549
  ] }),
10550
10550
  /* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
10551
10551
  ] });
10552
- }, $n = "av-button", Hr = "icon", vo = "button", qa = "link", Sp = ({
10552
+ }, Ln = "av-button", Hr = "icon", _o = "button", qa = "link", Sp = ({
10553
10553
  type: e,
10554
10554
  size: t,
10555
10555
  labelRight: r,
@@ -10559,7 +10559,7 @@ const On = "av-spinner", Li = ({
10559
10559
  }) => {
10560
10560
  const s = "max-h-8 py-0 px-2", l = "max-h-9 h-8 px-3", i = "max-h-12 py-2 px-4";
10561
10561
  switch (e) {
10562
- case vo:
10562
+ case _o:
10563
10563
  case qa:
10564
10564
  return p({
10565
10565
  [s]: t === "small",
@@ -10593,7 +10593,7 @@ const On = "av-spinner", Li = ({
10593
10593
  }) => {
10594
10594
  const o = "text-sm font-medium", n = "text-base font-medium", s = "text-lg font-medium";
10595
10595
  switch (e) {
10596
- case vo:
10596
+ case _o:
10597
10597
  case qa:
10598
10598
  return p({
10599
10599
  "text-center": e === qa,
@@ -10740,7 +10740,7 @@ const On = "av-spinner", Li = ({
10740
10740
  });
10741
10741
  if (r === "selected")
10742
10742
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
10743
- }, Dp = ({
10743
+ }, Mp = ({
10744
10744
  mode: e,
10745
10745
  noBorder: t,
10746
10746
  variant: r
@@ -10770,7 +10770,7 @@ const On = "av-spinner", Li = ({
10770
10770
  });
10771
10771
  if (r === "selected")
10772
10772
  return "border border-border-selected-dark";
10773
- }, Mp = ({
10773
+ }, Dp = ({
10774
10774
  focusMode: e
10775
10775
  }) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
10776
10776
  "focus:outline-focus-dark": e === "dark",
@@ -10793,7 +10793,7 @@ const On = "av-spinner", Li = ({
10793
10793
  animated: e
10794
10794
  }) => p({
10795
10795
  "transition-opacity duration-300 ease-in": e
10796
- }), Di = ({
10796
+ }), Mi = ({
10797
10797
  type: e,
10798
10798
  className: t,
10799
10799
  raw: r,
@@ -10811,8 +10811,8 @@ const On = "av-spinner", Li = ({
10811
10811
  align: g,
10812
10812
  radius: y,
10813
10813
  animated: b
10814
- }) => (h || (h = "primary"), r ? p($n, t) : p(
10815
- $n,
10814
+ }) => (h || (h = "primary"), r ? p(Ln, t) : p(
10815
+ Ln,
10816
10816
  Rp({
10817
10817
  mode: a,
10818
10818
  variant: h,
@@ -10830,8 +10830,8 @@ const On = "av-spinner", Li = ({
10830
10830
  animated: b
10831
10831
  }),
10832
10832
  Np({ type: e, size: l, labelRight: d, labelLeft: f }),
10833
- Dp({ mode: a, variant: h, noBorder: i }),
10834
- Mp({ focusMode: o }),
10833
+ Mp({ mode: a, variant: h, noBorder: i }),
10834
+ Dp({ focusMode: o }),
10835
10835
  $p({ mode: a, variant: h, disabled: n }),
10836
10836
  Lp({ mode: a, variant: h, disabled: n }),
10837
10837
  {
@@ -10845,7 +10845,7 @@ const On = "av-spinner", Li = ({
10845
10845
  )), zp = (e, t, r) => {
10846
10846
  var a;
10847
10847
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
10848
- }, _o = U.forwardRef((e, t) => {
10848
+ }, wo = U.forwardRef((e, t) => {
10849
10849
  const { onClick: r, noInternalClick: a = !1, ...o } = e;
10850
10850
  return /* @__PURE__ */ c(
10851
10851
  "button",
@@ -10858,8 +10858,8 @@ const On = "av-spinner", Li = ({
10858
10858
  }
10859
10859
  );
10860
10860
  });
10861
- _o.displayName = "BaseButton";
10862
- const Mi = U.forwardRef(
10861
+ wo.displayName = "BaseButton";
10862
+ const Di = U.forwardRef(
10863
10863
  ({
10864
10864
  children: e,
10865
10865
  disabled: t = !1,
@@ -10875,8 +10875,8 @@ const Mi = U.forwardRef(
10875
10875
  radius: u = "large",
10876
10876
  ...h
10877
10877
  }, m) => {
10878
- const g = Di({
10879
- type: vo,
10878
+ const g = Mi({
10879
+ type: _o,
10880
10880
  mode: r,
10881
10881
  focusMode: a,
10882
10882
  fullWidth: o,
@@ -10890,7 +10890,7 @@ const Mi = U.forwardRef(
10890
10890
  radius: u
10891
10891
  });
10892
10892
  return /* @__PURE__ */ c(
10893
- _o,
10893
+ wo,
10894
10894
  {
10895
10895
  ref: m,
10896
10896
  className: g,
@@ -10901,7 +10901,7 @@ const Mi = U.forwardRef(
10901
10901
  );
10902
10902
  }
10903
10903
  );
10904
- Mi.displayName = "Button";
10904
+ Di.displayName = "Button";
10905
10905
  function Vp() {
10906
10906
  const e = L(!1);
10907
10907
  return P(() => (e.current = !0, () => {
@@ -10975,7 +10975,7 @@ const Hp = {
10975
10975
  animated: k = !1,
10976
10976
  ...N
10977
10977
  }, I) => {
10978
- const _ = Di({
10978
+ const _ = Mi({
10979
10979
  type: Hr,
10980
10980
  mode: r,
10981
10981
  focusMode: a,
@@ -10992,11 +10992,11 @@ const Hp = {
10992
10992
  radius: b,
10993
10993
  variant: v,
10994
10994
  animated: k
10995
- }), x = Bp({ mode: r, raw: l, iconClassName: w }), E = Pp({ animated: k }), [T, C] = la(), [S, A] = la(), [$, M] = la(), F = L(0), D = L(null), W = Fp([I, D]);
10995
+ }), x = Bp({ mode: r, raw: l, iconClassName: w }), E = Pp({ animated: k }), [T, C] = la(), [S, A] = la(), [$, D] = la(), F = L(0), M = L(null), W = Fp([I, M]);
10996
10996
  return ge(() => {
10997
- $ && $.current && k && (F.current = M.width + Gp[u] + (i ? 0 : jp));
10998
- }, [M, $, u, i, k]), ge(() => {
10999
- D && D.current && k && (h && T && C.width > 0 ? (T.current && (T.current.style.opacity = "100"), D.current.style.width = `${C.width + F.current}px`) : m && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), D.current.style.width = `${A.width + F.current}px`) : (T.current && (T.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), D.current.style.width = `${Hp[u]}px`));
10997
+ $ && $.current && k && (F.current = D.width + Gp[u] + (i ? 0 : jp));
10998
+ }, [D, $, u, i, k]), ge(() => {
10999
+ M && M.current && k && (h && T && C.width > 0 ? (T.current && (T.current.style.opacity = "100"), M.current.style.width = `${C.width + F.current}px`) : m && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), M.current.style.width = `${A.width + F.current}px`) : (T.current && (T.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), M.current.style.width = `${Hp[u]}px`));
11000
11000
  }, [
11001
11001
  C,
11002
11002
  h,
@@ -11007,7 +11007,7 @@ const Hp = {
11007
11007
  u,
11008
11008
  k
11009
11009
  ]), /* @__PURE__ */ R(
11010
- _o,
11010
+ wo,
11011
11011
  {
11012
11012
  ref: W,
11013
11013
  className: _,
@@ -11017,7 +11017,7 @@ const Hp = {
11017
11017
  ...N,
11018
11018
  children: [
11019
11019
  /* @__PURE__ */ c(
11020
- Ln,
11020
+ Mn,
11021
11021
  {
11022
11022
  label: m,
11023
11023
  labelRef: S,
@@ -11027,7 +11027,7 @@ const Hp = {
11027
11027
  ),
11028
11028
  /* @__PURE__ */ c("span", { ref: $, className: x, children: e }),
11029
11029
  /* @__PURE__ */ c(
11030
- Ln,
11030
+ Mn,
11031
11031
  {
11032
11032
  label: h,
11033
11033
  labelRef: T,
@@ -11039,7 +11039,7 @@ const Hp = {
11039
11039
  }
11040
11040
  );
11041
11041
  }
11042
- ), Ln = ({
11042
+ ), Mn = ({
11043
11043
  labelRef: e,
11044
11044
  labelClass: t,
11045
11045
  label: r,
@@ -11127,7 +11127,7 @@ const qp = 200, Yp = ({
11127
11127
  return /* @__PURE__ */ R("span", { style: { wordBreak: "break-word" }, children: [
11128
11128
  o ? e : s,
11129
11129
  l && /* @__PURE__ */ c(
11130
- Mi,
11130
+ Di,
11131
11131
  {
11132
11132
  mode: r,
11133
11133
  focusMode: a,
@@ -11155,7 +11155,7 @@ try {
11155
11155
  } catch {
11156
11156
  }
11157
11157
  const Kp = ({ content: e }) => /* @__PURE__ */ c(
11158
- bo,
11158
+ vo,
11159
11159
  {
11160
11160
  tail: !0,
11161
11161
  kind: "right",
@@ -11164,10 +11164,10 @@ const Kp = ({ content: e }) => /* @__PURE__ */ c(
11164
11164
  className: "mt-3",
11165
11165
  children: /* @__PURE__ */ c(Jp, { mode: "light", focusMode: "light", children: e })
11166
11166
  }
11167
- ), Qp = es(
11167
+ ), Qp = Zn(
11168
11168
  () => import(
11169
11169
  /* webpackChunkName: "LazyMessageAssistant" */
11170
- "./ChatBubbleAssistant.BsDzOeQB.js"
11170
+ "./ChatBubbleAssistant.C8Ug_4e_.js"
11171
11171
  ).then((e) => e.ChatBubbleAssistant)
11172
11172
  ), Xp = U.memo(
11173
11173
  ({
@@ -11179,7 +11179,7 @@ const Kp = ({ content: e }) => /* @__PURE__ */ c(
11179
11179
  const {
11180
11180
  state: { restoring: o }
11181
11181
  } = X(ye);
11182
- return e === hl && t ? /* @__PURE__ */ c(Kp, { content: t }) : (e === $o || e === Hn) && t ? /* @__PURE__ */ c(Zn, { fallback: /* @__PURE__ */ c("span", {}), children: /* @__PURE__ */ c(
11182
+ return e === Cf && t ? /* @__PURE__ */ c(Kp, { content: t }) : (e === dn || e === Un) && t ? /* @__PURE__ */ c(Xn, { fallback: /* @__PURE__ */ c("span", {}), children: /* @__PURE__ */ c(
11183
11183
  Qp,
11184
11184
  {
11185
11185
  role: e,
@@ -11188,7 +11188,7 @@ const Kp = ({ content: e }) => /* @__PURE__ */ c(
11188
11188
  toolName: a,
11189
11189
  smooth: !o
11190
11190
  }
11191
- ) }) : e === $o && !t ? /* @__PURE__ */ c(bo, { tail: !0, children: /* @__PURE__ */ c(Li, { type: "dots" }) }) : null;
11191
+ ) }) : e === dn && !t ? /* @__PURE__ */ c(vo, { tail: !0, children: /* @__PURE__ */ c(Li, { type: "dots" }) }) : null;
11192
11192
  }
11193
11193
  ), Zp = () => {
11194
11194
  const {
@@ -11220,14 +11220,14 @@ const Kp = ({ content: e }) => /* @__PURE__ */ c(
11220
11220
  n
11221
11221
  );
11222
11222
  }),
11223
- e && /* @__PURE__ */ c(bo, { tail: !0, children: /* @__PURE__ */ c(Li, { type: "dots" }) })
11223
+ e && /* @__PURE__ */ c(vo, { tail: !0, children: /* @__PURE__ */ c(Li, { type: "dots" }) })
11224
11224
  ] }) : null;
11225
11225
  }, eg = () => {
11226
- const { isAuthenticated: e } = Ne(), { ref: t, inViewport: r } = _c(), a = L(null), o = L(null), {
11226
+ const { isAuthenticated: e } = Ne(), { ref: t, inViewport: r } = yc(), a = L(null), o = L(null), {
11227
11227
  state: { footerPosition: n, footerHeight: s, footerOffset: l }
11228
- } = X(io), {
11228
+ } = X(lo), {
11229
11229
  state: { loading: i }
11230
- } = X(ye), d = L(0), f = ml({
11230
+ } = X(ye), d = L(0), f = ul({
11231
11231
  isAuthenticated: e,
11232
11232
  extraClass: "rounded-b-md relative"
11233
11233
  }), u = Y(() => {
@@ -11239,10 +11239,10 @@ const Kp = ({ content: e }) => /* @__PURE__ */ c(
11239
11239
  return P(() => {
11240
11240
  i && u();
11241
11241
  }, [i, u]), P(() => {
11242
- d.current = n === Wt ? s + l + Jn + pl : 0;
11242
+ d.current = n === Wt ? s + l + Yn + fl : 0;
11243
11243
  }, [n, s, l]), /* @__PURE__ */ R(se, { children: [
11244
11244
  /* @__PURE__ */ R("div", { className: f, ref: a, children: [
11245
- /* @__PURE__ */ c(gl, {}),
11245
+ /* @__PURE__ */ c(hl, {}),
11246
11246
  /* @__PURE__ */ c(Zp, {}),
11247
11247
  /* @__PURE__ */ c("div", { ref: t, className: "scroll-marker" }),
11248
11248
  /* @__PURE__ */ c("div", { ref: o, className: "pt-20" })
@@ -11261,24 +11261,24 @@ function Pi({
11261
11261
  isComponent: e = !1,
11262
11262
  headerHeight: t = 0
11263
11263
  }) {
11264
- const { user: r, getAccessToken: a } = Ne(), [o, n] = V(`${Lo}px`), [s, l] = ys(), [i, d] = V(ot()), [f, u] = V([]), [h] = gt({
11265
- key: pt + Yn,
11264
+ const { user: r, getAccessToken: a } = Ne(), [o, n] = V(`${Lo}px`), [s, l] = gs(), [i, d] = V(ot()), [f, u] = V([]), [h] = gt({
11265
+ key: pt + qn,
11266
11266
  initialValue: ""
11267
11267
  }), [m] = gt({
11268
- key: pt + Wn,
11268
+ key: pt + jn,
11269
11269
  initialValue: Fe.ASC
11270
- }), [g, y] = Ut(Ud, {
11270
+ }), [g, y] = Ut(zd, {
11271
11271
  footerPosition: "FOOTER_TOP",
11272
11272
  footerHeight: 0,
11273
11273
  footerOffset: 0
11274
- }), [b, v] = Ut(Gd, {
11274
+ }), [b, v] = Ut(Fd, {
11275
11275
  searchString: h,
11276
11276
  sortedCell: "timestamp",
11277
11277
  sortDirection: m
11278
- }), [w, k] = Ut(jd, {
11278
+ }), [w, k] = Ut(Ud, {
11279
11279
  prompt: "",
11280
11280
  lastTriggeredTimestamp: 0
11281
- }), [N, I] = Ut(Hd, {
11281
+ }), [N, I] = Ut(Vd, {
11282
11282
  provider: "",
11283
11283
  // OpenAI, Anthropic, etc.
11284
11284
  privateChat: !1,
@@ -11310,7 +11310,7 @@ function Pi({
11310
11310
  if (g.footerPosition === "FOOTER_BOTTOM") {
11311
11311
  const x = `calc(${l.height}px + 20px)`;
11312
11312
  n(
11313
- `calc(100svh - ${t}px - ${x} - ${g.footerHeight}px - ${g.footerOffset}px - ${Jn}px)`
11313
+ `calc(100svh - ${t}px - ${x} - ${g.footerHeight}px - ${g.footerOffset}px - ${Yn}px)`
11314
11314
  );
11315
11315
  } else
11316
11316
  n(`${Lo}px`);
@@ -11321,8 +11321,8 @@ function Pi({
11321
11321
  state: b,
11322
11322
  dispatch: v
11323
11323
  },
11324
- children: /* @__PURE__ */ c(io.Provider, { value: { state: g, dispatch: y }, children: /* @__PURE__ */ c(
11325
- so.Provider,
11324
+ children: /* @__PURE__ */ c(lo.Provider, { value: { state: g, dispatch: y }, children: /* @__PURE__ */ c(
11325
+ io.Provider,
11326
11326
  {
11327
11327
  value: { state: w, dispatch: k },
11328
11328
  children: /* @__PURE__ */ c(
@@ -11335,11 +11335,11 @@ function Pi({
11335
11335
  setInitialMessages: u
11336
11336
  },
11337
11337
  children: /* @__PURE__ */ R(
11338
- Cf,
11338
+ Tf,
11339
11339
  {
11340
11340
  value: {
11341
11341
  id: i,
11342
- api: `${Os}/api/generate`,
11342
+ api: `${As}/api/generate`,
11343
11343
  initialMessages: f,
11344
11344
  experimental_throttle: 300,
11345
11345
  sendExtraMessageFields: !1,
@@ -11353,28 +11353,28 @@ function Pi({
11353
11353
  }
11354
11354
  },
11355
11355
  children: [
11356
- /* @__PURE__ */ R("div", { className: qn, children: [
11356
+ /* @__PURE__ */ R("div", { className: Wn, children: [
11357
11357
  /* @__PURE__ */ c(Ca, { containerId: "toggle-save" }),
11358
11358
  /* @__PURE__ */ c(Ca, { containerId: "toggle-provider" })
11359
11359
  ] }),
11360
11360
  /* @__PURE__ */ c(
11361
- pc,
11361
+ fc,
11362
11362
  {
11363
11363
  ref: s,
11364
11364
  noColors: !0,
11365
11365
  noMargin: !0,
11366
11366
  noPadding: !0,
11367
11367
  noBorder: !0,
11368
- className: Do({
11368
+ className: Mo({
11369
11369
  extraClass: "mt-5"
11370
11370
  }),
11371
11371
  children: /* @__PURE__ */ c(ep, { isComponent: e })
11372
11372
  }
11373
11373
  ),
11374
11374
  /* @__PURE__ */ c(
11375
- yl,
11375
+ ml,
11376
11376
  {
11377
- className: Do({
11377
+ className: Mo({
11378
11378
  extraClass: "transition-all ease-in-out duration-500"
11379
11379
  }),
11380
11380
  noMargin: !0,
@@ -11402,6 +11402,6 @@ export {
11402
11402
  ig as App,
11403
11403
  ye as ChatContext,
11404
11404
  gt as E,
11405
- bo as Te,
11406
- Ys as getDefaultExportFromCjs
11405
+ vo as Te,
11406
+ qs as getDefaultExportFromCjs
11407
11407
  };