@versini/sassysaint 8.0.4 → 8.0.5

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,5 +1,5 @@
1
1
  import { jsx as c, jsxs as C, Fragment as ae } from "react/jsx-runtime";
2
- import { f as J, ACTION_SORT as Dr, ACTION_SEARCH as Ns, ACTION_RESET_PROMPT as Ss, ACTION_TOGGLE_PROMPT as As, useSWR as Ht, DEFAULT_AI_PROVIDER as qi, isProbablyiPhone as Fr, re as Te, DEFAULT_ICON_ACTION_SIZE as Re, L as ir, j as Oe, C as Qe, LOCAL_STORAGE_PREFIX as nt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Xi, un as de, useUserPreferences as lr, serviceCall as _t, SERVICE_TYPES as It, PROVIDER_ANTHROPIC as _r, PROVIDER_OPENAI as aa, setNewProvider as Rs, PROMPT_CLASSNAME as Zi, PROMPT_EDITABLE_AREA_CLASSNAME as Qi, ROLE_INTERNAL as zr, ERROR_MESSAGE as el, CLIPBOARD_PROMPT as sa, INPUT_PLACEHOLDER_TEXT as oa, FOOTER_DISCLAIMER as tl, useServerCapabilities as rl, R as ve, CARDS as X, renderDataAsList as Zt, pluralize as mn, ABOUT_TITLE as nl, INFINITE_SCROLL_LIMIT as ia, INFINITE_SCROLL_THRESHOLD as la, LOCAL_STORAGE_SORT as Ms, useChatsHistory as al, LOCAL_STORAGE_SEARCH as Vs, HISTORY_TITLE as sl, fe as ol, debounce as il, M as ll, isElectron as cl, l as ca, durationFormatter as dl, useUserChatStats as ul, PROFILE_TITLE as hl, LOCAL_STORAGE_CHAT_DETAILS as fl, SETTINGS_TITLE as ml, APP_NAME as pl, PROMPTS_DESCRIPTION as gl, getCurrentGeoLocation as yl, LOG_OUT as da, ROLE_ASSISTANT as bl, ROLE_USER as vl, getMessageContaintWrapperClass as wl, UI_FOOTER_BUFFER as Ps, UI_BUTTON_SCROLL_BUFFER as kl, Logo as xl, UI_DEFAULT_MAIN_HEIGHT as ua, usePreloadChatsHistory as Tl, serverUrl as _l, getMainPaddingClass as ha, I as Il } from "./index.-n1AV6sA.js";
2
+ import { f as J, ACTION_SORT as Dr, ACTION_SEARCH as Ns, ACTION_RESET_PROMPT as Ss, ACTION_TOGGLE_PROMPT as As, useSWR as Ht, DEFAULT_AI_PROVIDER as qi, isProbablyiPhone as Fr, re as Te, DEFAULT_ICON_ACTION_SIZE as Re, L as ir, j as Oe, C as Qe, LOCAL_STORAGE_PREFIX as nt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Xi, un as de, useUserPreferences as lr, serviceCall as _t, SERVICE_TYPES as It, PROVIDER_ANTHROPIC as _r, PROVIDER_OPENAI as aa, setNewProvider as Rs, PROMPT_CLASSNAME as Zi, PROMPT_EDITABLE_AREA_CLASSNAME as Qi, ROLE_INTERNAL as zr, ERROR_MESSAGE as el, CLIPBOARD_PROMPT as sa, INPUT_PLACEHOLDER_TEXT as oa, FOOTER_DISCLAIMER as tl, useServerCapabilities as rl, R as ve, CARDS as X, renderDataAsList as Zt, pluralize as mn, ABOUT_TITLE as nl, INFINITE_SCROLL_LIMIT as ia, INFINITE_SCROLL_THRESHOLD as la, LOCAL_STORAGE_SORT as Ms, useChatsHistory as al, LOCAL_STORAGE_SEARCH as Vs, HISTORY_TITLE as sl, fe as ol, debounce as il, M as ll, isElectron as cl, l as ca, durationFormatter as dl, useUserChatStats as ul, PROFILE_TITLE as hl, LOCAL_STORAGE_CHAT_DETAILS as fl, SETTINGS_TITLE as ml, APP_NAME as pl, PROMPTS_DESCRIPTION as gl, getCurrentGeoLocation as yl, LOG_OUT as da, ROLE_ASSISTANT as bl, ROLE_USER as vl, getMessageContaintWrapperClass as wl, UI_FOOTER_BUFFER as Ps, UI_BUTTON_SCROLL_BUFFER as kl, Logo as xl, UI_DEFAULT_MAIN_HEIGHT as ua, usePreloadChatsHistory as Tl, serverUrl as _l, getMainPaddingClass as ha, I as Il } from "./index.BWKilSZX.js";
3
3
  import p from "clsx";
4
4
  import * as ee from "react";
5
5
  import Y, { useEffect as L, useRef as M, useState as $, useCallback as K, useSyncExternalStore as El, useMemo as ye, useId as cr, useLayoutEffect as le, useContext as W, createContext as Cl, forwardRef as Bs, Fragment as Nl, useReducer as bt, lazy as Sl, Suspense as fa } from "react";
@@ -1694,14 +1694,9 @@ const rd = (e, t) => {
1694
1694
  default:
1695
1695
  return e;
1696
1696
  }
1697
- }, Pe = "CHAT_SET_STATUS", bn = "CHAT_SET_PROVIDER", Vt = "CHAT_RESET", sd = "CHAT_LOADING", od = (e, t) => {
1697
+ }, Pe = "CHAT_SET_STATUS", bn = "CHAT_SET_PROVIDER", Vt = "CHAT_RESET", sd = (e, t) => {
1698
1698
  var r, n, a, s;
1699
1699
  switch (t.type) {
1700
- case sd:
1701
- return {
1702
- ...e,
1703
- lastLoadingTimestamp: Date.now()
1704
- };
1705
1700
  case Pe: {
1706
1701
  let o = !1, i = !1, l = !1;
1707
1702
  return typeof ((r = t == null ? void 0 : t.payload) == null ? void 0 : r.loading) == "boolean" ? l = t.payload.loading : typeof e.loading == "boolean" && (l = e.loading), typeof ((n = t == null ? void 0 : t.payload) == null ? void 0 : n.streaming) == "boolean" ? i = t.payload.streaming : typeof e.streaming == "boolean" && (i = e.streaming), typeof ((a = t == null ? void 0 : t.payload) == null ? void 0 : a.restoring) == "boolean" ? o = t.payload.restoring : typeof e.restoring == "boolean" && (o = e.restoring), (i || l) && (o = !1), {
@@ -1710,7 +1705,8 @@ const rd = (e, t) => {
1710
1705
  streaming: i,
1711
1706
  loading: l,
1712
1707
  restoring: o,
1713
- usage: t.payload.usage || e.usage
1708
+ usage: t.payload.usage || e.usage,
1709
+ lastStreamingTimestamp: i ? Date.now() : e.lastStreamingTimestamp
1714
1710
  };
1715
1711
  }
1716
1712
  case bn:
@@ -1728,14 +1724,14 @@ const rd = (e, t) => {
1728
1724
  loading: !1,
1729
1725
  restoring: !1,
1730
1726
  lastResetTimestamp: Date.now(),
1731
- lastTriggeredTimestamp: 0
1727
+ lastStreamingTimestamp: 0
1732
1728
  };
1733
1729
  }
1734
1730
  default:
1735
1731
  return e;
1736
1732
  }
1737
1733
  };
1738
- var eo = "vercel.ai.error", id = Symbol.for(eo), to, ld = class ro extends Error {
1734
+ var eo = "vercel.ai.error", od = Symbol.for(eo), to, id = class ro extends Error {
1739
1735
  /**
1740
1736
  * Creates an AI SDK Error.
1741
1737
  *
@@ -1764,12 +1760,12 @@ var eo = "vercel.ai.error", id = Symbol.for(eo), to, ld = class ro extends Error
1764
1760
  return t != null && typeof t == "object" && n in t && typeof t[n] == "boolean" && t[n] === !0;
1765
1761
  }
1766
1762
  };
1767
- to = id;
1768
- var st = ld;
1763
+ to = od;
1764
+ var st = id;
1769
1765
  function no(e) {
1770
1766
  return e == null ? "unknown error" : typeof e == "string" ? e : e instanceof Error ? e.message : JSON.stringify(e);
1771
1767
  }
1772
- var ao = "AI_InvalidArgumentError", so = `vercel.ai.error.${ao}`, cd = Symbol.for(so), oo, dd = class extends st {
1768
+ var ao = "AI_InvalidArgumentError", so = `vercel.ai.error.${ao}`, ld = Symbol.for(so), oo, cd = class extends st {
1773
1769
  constructor({
1774
1770
  message: e,
1775
1771
  cause: t,
@@ -1781,8 +1777,8 @@ var ao = "AI_InvalidArgumentError", so = `vercel.ai.error.${ao}`, cd = Symbol.fo
1781
1777
  return st.hasMarker(e, so);
1782
1778
  }
1783
1779
  };
1784
- oo = cd;
1785
- var io = "AI_JSONParseError", lo = `vercel.ai.error.${io}`, ud = Symbol.for(lo), co, ka = class extends st {
1780
+ oo = ld;
1781
+ var io = "AI_JSONParseError", lo = `vercel.ai.error.${io}`, dd = Symbol.for(lo), co, ka = class extends st {
1786
1782
  constructor({ text: e, cause: t }) {
1787
1783
  super({
1788
1784
  name: io,
@@ -1795,8 +1791,8 @@ Error message: ${no(t)}`,
1795
1791
  return st.hasMarker(e, lo);
1796
1792
  }
1797
1793
  };
1798
- co = ud;
1799
- var uo = "AI_TypeValidationError", ho = `vercel.ai.error.${uo}`, hd = Symbol.for(ho), fo, fd = class Kr extends st {
1794
+ co = dd;
1795
+ var uo = "AI_TypeValidationError", ho = `vercel.ai.error.${uo}`, ud = Symbol.for(ho), fo, hd = class Kr extends st {
1800
1796
  constructor({ value: t, cause: r }) {
1801
1797
  super({
1802
1798
  name: uo,
@@ -1825,16 +1821,16 @@ Error message: ${no(r)}`,
1825
1821
  return Kr.isInstance(r) && r.value === t ? r : new Kr({ value: t, cause: r });
1826
1822
  }
1827
1823
  };
1828
- fo = hd;
1829
- var xa = fd;
1830
- let md = (e, t = 21) => (r = t) => {
1824
+ fo = ud;
1825
+ var xa = hd;
1826
+ let fd = (e, t = 21) => (r = t) => {
1831
1827
  let n = "", a = r | 0;
1832
1828
  for (; a--; )
1833
1829
  n += e[Math.random() * e.length | 0];
1834
1830
  return n;
1835
1831
  };
1836
1832
  var ze = { exports: {} }, Ta;
1837
- function pd() {
1833
+ function md() {
1838
1834
  if (Ta) return ze.exports;
1839
1835
  Ta = 1;
1840
1836
  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*:/;
@@ -1906,44 +1902,44 @@ function pd() {
1906
1902
  }
1907
1903
  return ze.exports = s, ze.exports.default = s, ze.exports.parse = s, ze.exports.safeParse = o, ze.exports.scan = a, ze.exports;
1908
1904
  }
1909
- var gd = /* @__PURE__ */ pd();
1910
- const yd = /* @__PURE__ */ Ws(gd);
1911
- var bd = ({
1905
+ var pd = /* @__PURE__ */ md();
1906
+ const gd = /* @__PURE__ */ Ws(pd);
1907
+ var yd = ({
1912
1908
  prefix: e,
1913
1909
  size: t = 16,
1914
1910
  alphabet: r = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
1915
1911
  separator: n = "-"
1916
1912
  } = {}) => {
1917
- const a = md(r, t);
1913
+ const a = fd(r, t);
1918
1914
  if (e == null)
1919
1915
  return a;
1920
1916
  if (r.includes(n))
1921
- throw new dd({
1917
+ throw new cd({
1922
1918
  argument: "separator",
1923
1919
  message: `The separator "${n}" must not be part of the alphabet "${r}".`
1924
1920
  });
1925
1921
  return (s) => `${e}${n}${a(s)}`;
1926
- }, vn = bd(), Gr = Symbol.for("vercel.ai.validator");
1927
- function vd(e) {
1922
+ }, vn = yd(), Gr = Symbol.for("vercel.ai.validator");
1923
+ function bd(e) {
1928
1924
  return { [Gr]: !0, validate: e };
1929
1925
  }
1930
- function wd(e) {
1926
+ function vd(e) {
1931
1927
  return typeof e == "object" && e !== null && Gr in e && e[Gr] === !0 && "validate" in e;
1932
1928
  }
1933
- function kd(e) {
1934
- return wd(e) ? e : xd(e);
1929
+ function wd(e) {
1930
+ return vd(e) ? e : kd(e);
1935
1931
  }
1936
- function xd(e) {
1937
- return vd((t) => {
1932
+ function kd(e) {
1933
+ return bd((t) => {
1938
1934
  const r = e.safeParse(t);
1939
1935
  return r.success ? { success: !0, value: r.data } : { success: !1, error: r.error };
1940
1936
  });
1941
1937
  }
1942
- function Td({
1938
+ function xd({
1943
1939
  value: e,
1944
1940
  schema: t
1945
1941
  }) {
1946
- const r = kd(t);
1942
+ const r = wd(t);
1947
1943
  try {
1948
1944
  if (r.validate == null)
1949
1945
  return { success: !0, value: e };
@@ -1964,10 +1960,10 @@ function _a({
1964
1960
  schema: t
1965
1961
  }) {
1966
1962
  try {
1967
- const r = yd.parse(e);
1963
+ const r = gd.parse(e);
1968
1964
  if (t == null)
1969
1965
  return { success: !0, value: r, rawValue: r };
1970
- const n = Td({ value: r, schema: t });
1966
+ const n = xd({ value: r, schema: t });
1971
1967
  return n.success ? { ...n, rawValue: r } : n;
1972
1968
  } catch (r) {
1973
1969
  return {
@@ -1976,7 +1972,7 @@ function _a({
1976
1972
  };
1977
1973
  }
1978
1974
  }
1979
- function _d({
1975
+ function Td({
1980
1976
  promptTokens: e,
1981
1977
  completionTokens: t
1982
1978
  }) {
@@ -1986,7 +1982,7 @@ function _d({
1986
1982
  totalTokens: e + t
1987
1983
  };
1988
1984
  }
1989
- function Id(e) {
1985
+ function _d(e) {
1990
1986
  const t = ["ROOT"];
1991
1987
  let r = -1, n = null;
1992
1988
  function a(l, d, u) {
@@ -2234,13 +2230,13 @@ function Id(e) {
2234
2230
  }
2235
2231
  return i;
2236
2232
  }
2237
- function Ed(e) {
2233
+ function Id(e) {
2238
2234
  if (e === void 0)
2239
2235
  return { value: void 0, state: "undefined-input" };
2240
2236
  let t = _a({ text: e });
2241
- return t.success ? { value: t.value, state: "successful-parse" } : (t = _a({ text: Id(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
2237
+ return t.success ? { value: t.value, state: "successful-parse" } : (t = _a({ text: _d(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
2242
2238
  }
2243
- var Cd = {
2239
+ var Ed = {
2244
2240
  code: "0",
2245
2241
  name: "text",
2246
2242
  parse: (e) => {
@@ -2248,7 +2244,7 @@ var Cd = {
2248
2244
  throw new Error('"text" parts expect a string value.');
2249
2245
  return { type: "text", value: e };
2250
2246
  }
2251
- }, Nd = {
2247
+ }, Cd = {
2252
2248
  code: "2",
2253
2249
  name: "data",
2254
2250
  parse: (e) => {
@@ -2256,7 +2252,7 @@ var Cd = {
2256
2252
  throw new Error('"data" parts expect an array value.');
2257
2253
  return { type: "data", value: e };
2258
2254
  }
2259
- }, Sd = {
2255
+ }, Nd = {
2260
2256
  code: "3",
2261
2257
  name: "error",
2262
2258
  parse: (e) => {
@@ -2264,7 +2260,7 @@ var Cd = {
2264
2260
  throw new Error('"error" parts expect a string value.');
2265
2261
  return { type: "error", value: e };
2266
2262
  }
2267
- }, Ad = {
2263
+ }, Sd = {
2268
2264
  code: "8",
2269
2265
  name: "message_annotations",
2270
2266
  parse: (e) => {
@@ -2272,7 +2268,7 @@ var Cd = {
2272
2268
  throw new Error('"message_annotations" parts expect an array value.');
2273
2269
  return { type: "message_annotations", value: e };
2274
2270
  }
2275
- }, Rd = {
2271
+ }, Ad = {
2276
2272
  code: "9",
2277
2273
  name: "tool_call",
2278
2274
  parse: (e) => {
@@ -2285,7 +2281,7 @@ var Cd = {
2285
2281
  value: e
2286
2282
  };
2287
2283
  }
2288
- }, Md = {
2284
+ }, Rd = {
2289
2285
  code: "a",
2290
2286
  name: "tool_result",
2291
2287
  parse: (e) => {
@@ -2298,7 +2294,7 @@ var Cd = {
2298
2294
  value: e
2299
2295
  };
2300
2296
  }
2301
- }, Vd = {
2297
+ }, Md = {
2302
2298
  code: "b",
2303
2299
  name: "tool_call_streaming_start",
2304
2300
  parse: (e) => {
@@ -2311,7 +2307,7 @@ var Cd = {
2311
2307
  value: e
2312
2308
  };
2313
2309
  }
2314
- }, Pd = {
2310
+ }, Vd = {
2315
2311
  code: "c",
2316
2312
  name: "tool_call_delta",
2317
2313
  parse: (e) => {
@@ -2324,7 +2320,7 @@ var Cd = {
2324
2320
  value: e
2325
2321
  };
2326
2322
  }
2327
- }, Bd = {
2323
+ }, Pd = {
2328
2324
  code: "d",
2329
2325
  name: "finish_message",
2330
2326
  parse: (e) => {
@@ -2343,7 +2339,7 @@ var Cd = {
2343
2339
  value: t
2344
2340
  };
2345
2341
  }
2346
- }, Od = {
2342
+ }, Bd = {
2347
2343
  code: "e",
2348
2344
  name: "finish_step",
2349
2345
  parse: (e) => {
@@ -2363,7 +2359,7 @@ var Cd = {
2363
2359
  value: t
2364
2360
  };
2365
2361
  }
2366
- }, Ld = {
2362
+ }, Od = {
2367
2363
  code: "f",
2368
2364
  name: "start_step",
2369
2365
  parse: (e) => {
@@ -2378,7 +2374,7 @@ var Cd = {
2378
2374
  }
2379
2375
  };
2380
2376
  }
2381
- }, $d = {
2377
+ }, Ld = {
2382
2378
  code: "g",
2383
2379
  name: "reasoning",
2384
2380
  parse: (e) => {
@@ -2386,7 +2382,7 @@ var Cd = {
2386
2382
  throw new Error('"reasoning" parts expect a string value.');
2387
2383
  return { type: "reasoning", value: e };
2388
2384
  }
2389
- }, Dd = {
2385
+ }, $d = {
2390
2386
  code: "h",
2391
2387
  name: "source",
2392
2388
  parse: (e) => {
@@ -2398,6 +2394,7 @@ var Cd = {
2398
2394
  };
2399
2395
  }
2400
2396
  }, wn = [
2397
+ Ed,
2401
2398
  Cd,
2402
2399
  Nd,
2403
2400
  Sd,
@@ -2409,32 +2406,31 @@ var Cd = {
2409
2406
  Bd,
2410
2407
  Od,
2411
2408
  Ld,
2412
- $d,
2413
- Dd
2414
- ], Fd = Object.fromEntries(
2409
+ $d
2410
+ ], Dd = Object.fromEntries(
2415
2411
  wn.map((e) => [e.code, e])
2416
2412
  );
2417
2413
  Object.fromEntries(
2418
2414
  wn.map((e) => [e.name, e.code])
2419
2415
  );
2420
- var zd = wn.map((e) => e.code), Ud = (e) => {
2416
+ var Fd = wn.map((e) => e.code), zd = (e) => {
2421
2417
  const t = e.indexOf(":");
2422
2418
  if (t === -1)
2423
2419
  throw new Error("Failed to parse stream string. No separator found.");
2424
2420
  const r = e.slice(0, t);
2425
- if (!zd.includes(r))
2421
+ if (!Fd.includes(r))
2426
2422
  throw new Error(`Failed to parse stream string. Invalid code ${r}.`);
2427
2423
  const n = r, a = e.slice(t + 1), s = JSON.parse(a);
2428
- return Fd[n].parse(s);
2429
- }, Hd = 10;
2430
- function jd(e, t) {
2424
+ return Dd[n].parse(s);
2425
+ }, Ud = 10;
2426
+ function Hd(e, t) {
2431
2427
  const r = new Uint8Array(t);
2432
2428
  let n = 0;
2433
2429
  for (const a of e)
2434
2430
  r.set(a, n), n += a.length;
2435
2431
  return e.length = 0, r;
2436
2432
  }
2437
- async function Wd({
2433
+ async function jd({
2438
2434
  stream: e,
2439
2435
  onTextPart: t,
2440
2436
  onReasoningPart: r,
@@ -2454,14 +2450,14 @@ async function Wd({
2454
2450
  let k = 0;
2455
2451
  for (; ; ) {
2456
2452
  const { value: T } = await g.read();
2457
- if (T && (v.push(T), k += T.length, T[T.length - 1] !== Hd))
2453
+ if (T && (v.push(T), k += T.length, T[T.length - 1] !== Ud))
2458
2454
  continue;
2459
2455
  if (v.length === 0)
2460
2456
  break;
2461
- const E = jd(v, k);
2457
+ const E = Hd(v, k);
2462
2458
  k = 0;
2463
2459
  const N = y.decode(E, { stream: !0 }).split(`
2464
- `).filter((b) => b !== "").map(Ud);
2460
+ `).filter((b) => b !== "").map(zd);
2465
2461
  for (const { type: b, value: x } of N)
2466
2462
  switch (b) {
2467
2463
  case "text":
@@ -2510,7 +2506,7 @@ async function Wd({
2510
2506
  }
2511
2507
  }
2512
2508
  }
2513
- async function Kd({
2509
+ async function Wd({
2514
2510
  stream: e,
2515
2511
  update: t,
2516
2512
  onToolCall: r,
@@ -2571,7 +2567,7 @@ async function Kd({
2571
2567
  replaceLastMessage: d
2572
2568
  });
2573
2569
  }
2574
- await Wd({
2570
+ await jd({
2575
2571
  stream: e,
2576
2572
  onTextPart(b) {
2577
2573
  f == null ? (f = {
@@ -2611,7 +2607,7 @@ async function Kd({
2611
2607
  onToolCallDeltaPart(b) {
2612
2608
  const x = k[b.toolCallId];
2613
2609
  x.text += b.argsTextDelta;
2614
- const { value: _ } = Ed(x.text), w = {
2610
+ const { value: _ } = Id(x.text), w = {
2615
2611
  state: "partial-call",
2616
2612
  step: x.step,
2617
2613
  toolCallId: b.toolCallId,
@@ -2670,14 +2666,14 @@ async function Kd({
2670
2666
  d || (h.id = b.messageId);
2671
2667
  },
2672
2668
  onFinishMessagePart(b) {
2673
- E = b.finishReason, b.usage != null && (T = _d(b.usage));
2669
+ E = b.finishReason, b.usage != null && (T = Td(b.usage));
2674
2670
  },
2675
2671
  onErrorPart(b) {
2676
2672
  throw new Error(b);
2677
2673
  }
2678
2674
  }), n == null || n({ message: h, finishReason: E, usage: T });
2679
2675
  }
2680
- async function Gd({
2676
+ async function Kd({
2681
2677
  stream: e,
2682
2678
  onTextPart: t
2683
2679
  }) {
@@ -2689,7 +2685,7 @@ async function Gd({
2689
2685
  await t(a);
2690
2686
  }
2691
2687
  }
2692
- async function Yd({
2688
+ async function Gd({
2693
2689
  stream: e,
2694
2690
  update: t,
2695
2691
  onFinish: r,
@@ -2703,7 +2699,7 @@ async function Yd({
2703
2699
  content: "",
2704
2700
  parts: [s]
2705
2701
  };
2706
- await Gd({
2702
+ await Kd({
2707
2703
  stream: e,
2708
2704
  onTextPart: (i) => {
2709
2705
  o.content += i, s.text += i, t({
@@ -2717,8 +2713,8 @@ async function Yd({
2717
2713
  finishReason: "unknown"
2718
2714
  });
2719
2715
  }
2720
- var Jd = () => fetch;
2721
- async function qd({
2716
+ var Yd = () => fetch;
2717
+ async function Jd({
2722
2718
  api: e,
2723
2719
  body: t,
2724
2720
  streamProtocol: r = "data",
@@ -2731,7 +2727,7 @@ async function qd({
2731
2727
  onFinish: d,
2732
2728
  onToolCall: u,
2733
2729
  generateId: h,
2734
- fetch: f = Jd(),
2730
+ fetch: f = Yd(),
2735
2731
  lastMessage: m
2736
2732
  }) {
2737
2733
  var g, y;
@@ -2761,7 +2757,7 @@ async function qd({
2761
2757
  throw new Error("The response body is empty.");
2762
2758
  switch (r) {
2763
2759
  case "text": {
2764
- await Yd({
2760
+ await Gd({
2765
2761
  stream: v.body,
2766
2762
  update: l,
2767
2763
  onFinish: d,
@@ -2770,7 +2766,7 @@ async function qd({
2770
2766
  return;
2771
2767
  }
2772
2768
  case "data": {
2773
- await Kd({
2769
+ await Wd({
2774
2770
  stream: v.body,
2775
2771
  update: l,
2776
2772
  lastMessage: m,
@@ -2835,7 +2831,7 @@ async function Ia(e) {
2835
2831
  return e;
2836
2832
  throw new Error("Invalid attachments type");
2837
2833
  }
2838
- function Xd({
2834
+ function qd({
2839
2835
  originalMaxToolInvocationStep: e,
2840
2836
  originalMessageCount: t,
2841
2837
  maxSteps: r,
@@ -2849,11 +2845,11 @@ function Xd({
2849
2845
  s != null && // ensure we actually have new steps (to prevent infinite loops in case of errors):
2850
2846
  (n.length > t || Yr(s.toolInvocations) !== e) && // check that next step is possible:
2851
2847
  po(s) && // check that assistant has not answered yet:
2852
- !Zd(s) && // limit the number of automatic steps:
2848
+ !Xd(s) && // limit the number of automatic steps:
2853
2849
  ((a = Yr(s.toolInvocations)) != null ? a : 0) < r
2854
2850
  );
2855
2851
  }
2856
- function Zd(e) {
2852
+ function Xd(e) {
2857
2853
  let t = !1;
2858
2854
  return e.parts.forEach((r) => {
2859
2855
  r.type === "text" && (t = !0), r.type === "tool-invocation" && (t = !1);
@@ -2862,7 +2858,7 @@ function Zd(e) {
2862
2858
  function po(e) {
2863
2859
  return e.role === "assistant" && e.parts.filter((t) => t.type === "tool-invocation").every((t) => "result" in t.toolInvocation);
2864
2860
  }
2865
- function Qd({
2861
+ function Zd({
2866
2862
  messages: e,
2867
2863
  toolCallId: t,
2868
2864
  toolResult: r
@@ -2883,7 +2879,7 @@ function Qd({
2883
2879
  );
2884
2880
  }
2885
2881
  var Sr, Ea;
2886
- function eu() {
2882
+ function Qd() {
2887
2883
  if (Ea) return Sr;
2888
2884
  Ea = 1;
2889
2885
  function e(t, r) {
@@ -2900,12 +2896,12 @@ function eu() {
2900
2896
  }
2901
2897
  return Sr = e, Sr;
2902
2898
  }
2903
- var tu = /* @__PURE__ */ eu();
2904
- const ru = /* @__PURE__ */ Ws(tu);
2899
+ var eu = /* @__PURE__ */ Qd();
2900
+ const tu = /* @__PURE__ */ Ws(eu);
2905
2901
  function Ca(e, t) {
2906
- return t != null ? ru(e, t) : e;
2902
+ return t != null ? tu(e, t) : e;
2907
2903
  }
2908
- function nu({
2904
+ function ru({
2909
2905
  api: e = "/api/chat",
2910
2906
  id: t,
2911
2907
  initialMessages: r,
@@ -2988,7 +2984,7 @@ function nu({
2988
2984
  ...na !== void 0 && { parts: na }
2989
2985
  })
2990
2986
  ), Qn = B.current;
2991
- await qd({
2987
+ await Jd({
2992
2988
  api: e,
2993
2989
  body: (Z = o == null ? void 0 : o({
2994
2990
  id: N,
@@ -3037,7 +3033,7 @@ function nu({
3037
3033
  h && fe instanceof Error && h(fe), P(fe), V("error");
3038
3034
  }
3039
3035
  const he = I.current;
3040
- Xd({
3036
+ qd({
3041
3037
  originalMaxToolInvocationStep: Ne,
3042
3038
  originalMessageCount: ue,
3043
3039
  maxSteps: i,
@@ -3148,7 +3144,7 @@ function nu({
3148
3144
  }, Ce = K(
3149
3145
  ({ toolCallId: H, result: q }) => {
3150
3146
  const Z = I.current;
3151
- Qd({
3147
+ Zd({
3152
3148
  messages: Z,
3153
3149
  toolCallId: H,
3154
3150
  toolResult: q
@@ -3191,7 +3187,7 @@ function dt(e = {}) {
3191
3187
  e.onFinish && t.handlers.onFinish.delete(e.onFinish), e.onError && t.handlers.onError.delete(e.onError), e.onResponse && t.handlers.onResponse.delete(e.onResponse), e.onToolCall && t.handlers.onToolCall.delete(e.onToolCall);
3192
3188
  }), [e.onFinish, e.onError, e.onResponse, e.onToolCall]), t.chat;
3193
3189
  }
3194
- function au({
3190
+ function nu({
3195
3191
  children: e,
3196
3192
  value: t
3197
3193
  }) {
@@ -3199,7 +3195,7 @@ function au({
3199
3195
  L(() => {
3200
3196
  r.current = Na;
3201
3197
  }, [t]);
3202
- const n = nu({
3198
+ const n = ru({
3203
3199
  ...t,
3204
3200
  onError(...a) {
3205
3201
  for (const s of r.current.onError)
@@ -3236,7 +3232,7 @@ function au({
3236
3232
  }
3237
3233
  );
3238
3234
  }
3239
- const su = "z-20", ou = "z-10", kn = Y.createContext({
3235
+ const au = "z-20", su = "z-10", kn = Y.createContext({
3240
3236
  state: { searchString: "", sortedCell: "", sortDirection: "" },
3241
3237
  dispatch: () => {
3242
3238
  }
@@ -3252,7 +3248,7 @@ const su = "z-20", ou = "z-10", kn = Y.createContext({
3252
3248
  loading: !1,
3253
3249
  restoring: !1,
3254
3250
  usage: 0,
3255
- lastTriggeredTimestamp: 0,
3251
+ lastStreamingTimestamp: 0,
3256
3252
  lastResetTimestamp: 0
3257
3253
  },
3258
3254
  dispatch: () => {
@@ -3283,15 +3279,15 @@ try {
3283
3279
  });
3284
3280
  } catch {
3285
3281
  }
3286
- const iu = "av-tooltip", lu = "av-tooltip-arrow", Ct = Math.min, et = Math.max, Qt = Math.round, ke = (e) => ({
3282
+ const ou = "av-tooltip", iu = "av-tooltip-arrow", Ct = Math.min, et = Math.max, Qt = Math.round, ke = (e) => ({
3287
3283
  x: e,
3288
3284
  y: e
3289
- }), cu = {
3285
+ }), lu = {
3290
3286
  left: "right",
3291
3287
  right: "left",
3292
3288
  bottom: "top",
3293
3289
  top: "bottom"
3294
- }, du = {
3290
+ }, cu = {
3295
3291
  start: "end",
3296
3292
  end: "start"
3297
3293
  };
@@ -3319,20 +3315,20 @@ function ot(e) {
3319
3315
  function In(e) {
3320
3316
  return yo(ot(e));
3321
3317
  }
3322
- function uu(e, t, r) {
3318
+ function du(e, t, r) {
3323
3319
  r === void 0 && (r = !1);
3324
3320
  const n = Bt(e), a = In(e), s = _n(a);
3325
3321
  let o = a === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
3326
3322
  return t.reference[s] > t.floating[s] && (o = er(o)), [o, er(o)];
3327
3323
  }
3328
- function hu(e) {
3324
+ function uu(e) {
3329
3325
  const t = er(e);
3330
3326
  return [qr(e), t, qr(t)];
3331
3327
  }
3332
3328
  function qr(e) {
3333
- return e.replace(/start|end/g, (t) => du[t]);
3329
+ return e.replace(/start|end/g, (t) => cu[t]);
3334
3330
  }
3335
- function fu(e, t, r) {
3331
+ function hu(e, t, r) {
3336
3332
  const n = ["left", "right"], a = ["right", "left"], s = ["top", "bottom"], o = ["bottom", "top"];
3337
3333
  switch (e) {
3338
3334
  case "top":
@@ -3345,15 +3341,15 @@ function fu(e, t, r) {
3345
3341
  return [];
3346
3342
  }
3347
3343
  }
3348
- function mu(e, t, r, n) {
3344
+ function fu(e, t, r, n) {
3349
3345
  const a = Bt(e);
3350
- let s = fu(We(e), r === "start", n);
3346
+ let s = hu(We(e), r === "start", n);
3351
3347
  return a && (s = s.map((o) => o + "-" + a), t && (s = s.concat(s.map(qr)))), s;
3352
3348
  }
3353
3349
  function er(e) {
3354
- return e.replace(/left|right|bottom|top/g, (t) => cu[t]);
3350
+ return e.replace(/left|right|bottom|top/g, (t) => lu[t]);
3355
3351
  }
3356
- function pu(e) {
3352
+ function mu(e) {
3357
3353
  return {
3358
3354
  top: 0,
3359
3355
  right: 0,
@@ -3363,7 +3359,7 @@ function pu(e) {
3363
3359
  };
3364
3360
  }
3365
3361
  function bo(e) {
3366
- return typeof e != "number" ? pu(e) : {
3362
+ return typeof e != "number" ? mu(e) : {
3367
3363
  top: e,
3368
3364
  right: e,
3369
3365
  bottom: e,
@@ -3436,7 +3432,7 @@ function Sa(e, t, r) {
3436
3432
  }
3437
3433
  return m;
3438
3434
  }
3439
- const gu = async (e, t, r) => {
3435
+ const pu = async (e, t, r) => {
3440
3436
  const {
3441
3437
  placement: n = "bottom",
3442
3438
  strategy: a = "absolute",
@@ -3542,7 +3538,7 @@ async function vo(e, t) {
3542
3538
  right: (N.right - v.right + g.right) / E.x
3543
3539
  };
3544
3540
  }
3545
- const yu = (e) => ({
3541
+ const gu = (e) => ({
3546
3542
  name: "arrow",
3547
3543
  options: e,
3548
3544
  async fn(t) {
@@ -3579,7 +3575,7 @@ const yu = (e) => ({
3579
3575
  reset: P
3580
3576
  };
3581
3577
  }
3582
- }), bu = function(e) {
3578
+ }), yu = function(e) {
3583
3579
  return e === void 0 && (e = {}), {
3584
3580
  name: "flip",
3585
3581
  options: e,
@@ -3603,12 +3599,12 @@ const yu = (e) => ({
3603
3599
  } = Pt(e, t);
3604
3600
  if ((r = s.arrow) != null && r.alignmentOffset)
3605
3601
  return {};
3606
- const k = We(a), T = ot(i), E = We(i) === i, N = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), b = f || (E || !y ? [er(i)] : hu(i)), x = g !== "none";
3607
- !f && x && b.push(...mu(i, y, g, N));
3602
+ const k = We(a), T = ot(i), E = We(i) === i, N = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), b = f || (E || !y ? [er(i)] : uu(i)), x = g !== "none";
3603
+ !f && x && b.push(...fu(i, y, g, N));
3608
3604
  const _ = [i, ...b], w = await vo(t, v), I = [];
3609
3605
  let R = ((n = s.flip) == null ? void 0 : n.overflows) || [];
3610
3606
  if (u && I.push(w[k]), h) {
3611
- const V = uu(a, o, N);
3607
+ const V = du(a, o, N);
3612
3608
  I.push(w[V[0]], w[V[1]]);
3613
3609
  }
3614
3610
  if (R = [...R, {
@@ -3659,7 +3655,7 @@ const yu = (e) => ({
3659
3655
  }
3660
3656
  };
3661
3657
  };
3662
- async function vu(e, t) {
3658
+ async function bu(e, t) {
3663
3659
  const {
3664
3660
  placement: r,
3665
3661
  platform: n,
@@ -3686,7 +3682,7 @@ async function vu(e, t) {
3686
3682
  y: m * u
3687
3683
  };
3688
3684
  }
3689
- const wu = function(e) {
3685
+ const vu = function(e) {
3690
3686
  return e === void 0 && (e = 0), {
3691
3687
  name: "offset",
3692
3688
  options: e,
@@ -3697,7 +3693,7 @@ const wu = function(e) {
3697
3693
  y: s,
3698
3694
  placement: o,
3699
3695
  middlewareData: i
3700
- } = t, l = await vu(t, e);
3696
+ } = t, l = await bu(t, e);
3701
3697
  return o === ((r = i.offset) == null ? void 0 : r.placement) && (n = i.arrow) != null && n.alignmentOffset ? {} : {
3702
3698
  x: a + l.x,
3703
3699
  y: s + l.y,
@@ -3708,7 +3704,7 @@ const wu = function(e) {
3708
3704
  };
3709
3705
  }
3710
3706
  };
3711
- }, ku = function(e) {
3707
+ }, wu = function(e) {
3712
3708
  return e === void 0 && (e = {}), {
3713
3709
  name: "shift",
3714
3710
  options: e,
@@ -3800,7 +3796,7 @@ function Ot(e) {
3800
3796
  } = ge(e);
3801
3797
  return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !["inline", "contents"].includes(a);
3802
3798
  }
3803
- function xu(e) {
3799
+ function ku(e) {
3804
3800
  return ["table", "td", "th"].includes(ut(e));
3805
3801
  }
3806
3802
  function fr(e) {
@@ -3816,7 +3812,7 @@ function En(e) {
3816
3812
  const t = Cn(), r = pe(e) ? ge(e) : e;
3817
3813
  return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => r[n] ? r[n] !== "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((n) => (r.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (r.contain || "").includes(n));
3818
3814
  }
3819
- function Tu(e) {
3815
+ function xu(e) {
3820
3816
  let t = Le(e);
3821
3817
  for (; _e(t) && !it(t); ) {
3822
3818
  if (En(t))
@@ -3898,15 +3894,15 @@ function tt(e) {
3898
3894
  y: i
3899
3895
  };
3900
3896
  }
3901
- const _u = /* @__PURE__ */ ke(0);
3897
+ const Tu = /* @__PURE__ */ ke(0);
3902
3898
  function Io(e) {
3903
3899
  const t = ce(e);
3904
- return !Cn() || !t.visualViewport ? _u : {
3900
+ return !Cn() || !t.visualViewport ? Tu : {
3905
3901
  x: t.visualViewport.offsetLeft,
3906
3902
  y: t.visualViewport.offsetTop
3907
3903
  };
3908
3904
  }
3909
- function Iu(e, t, r) {
3905
+ function _u(e, t, r) {
3910
3906
  return t === void 0 && (t = !1), !r || t && r !== ce(e) ? !1 : t;
3911
3907
  }
3912
3908
  function Nt(e, t, r, n) {
@@ -3914,7 +3910,7 @@ function Nt(e, t, r, n) {
3914
3910
  const a = e.getBoundingClientRect(), s = _o(e);
3915
3911
  let o = ke(1);
3916
3912
  t && (n ? pe(n) && (o = tt(n)) : o = tt(e));
3917
- const i = Iu(s, r, n) ? Io(s) : ke(0);
3913
+ const i = _u(s, r, n) ? Io(s) : ke(0);
3918
3914
  let l = (a.left + i.x) / o.x, d = (a.top + i.y) / o.y, u = a.width / o.x, h = a.height / o.y;
3919
3915
  if (s) {
3920
3916
  const f = ce(s), m = n && pe(n) ? ce(n) : n;
@@ -3946,7 +3942,7 @@ function Eo(e, t, r) {
3946
3942
  y: s
3947
3943
  };
3948
3944
  }
3949
- function Eu(e) {
3945
+ function Iu(e) {
3950
3946
  let {
3951
3947
  elements: t,
3952
3948
  rect: r,
@@ -3973,10 +3969,10 @@ function Eu(e) {
3973
3969
  y: r.y * d.y - l.scrollTop * d.y + u.y + f.y
3974
3970
  };
3975
3971
  }
3976
- function Cu(e) {
3972
+ function Eu(e) {
3977
3973
  return Array.from(e.getClientRects());
3978
3974
  }
3979
- function Nu(e) {
3975
+ function Cu(e) {
3980
3976
  const t = Me(e), r = mr(e), n = e.ownerDocument.body, a = et(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), s = et(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
3981
3977
  let o = -r.scrollLeft + Nn(e);
3982
3978
  const i = -r.scrollTop;
@@ -3987,7 +3983,7 @@ function Nu(e) {
3987
3983
  y: i
3988
3984
  };
3989
3985
  }
3990
- function Su(e, t) {
3986
+ function Nu(e, t) {
3991
3987
  const r = ce(e), n = Me(e), a = r.visualViewport;
3992
3988
  let s = n.clientWidth, o = n.clientHeight, i = 0, l = 0;
3993
3989
  if (a) {
@@ -4002,7 +3998,7 @@ function Su(e, t) {
4002
3998
  y: l
4003
3999
  };
4004
4000
  }
4005
- function Au(e, t) {
4001
+ function Su(e, t) {
4006
4002
  const r = Nt(e, !0, t === "fixed"), n = r.top + e.clientTop, a = r.left + e.clientLeft, s = _e(e) ? tt(e) : ke(1), o = e.clientWidth * s.x, i = e.clientHeight * s.y, l = a * s.x, d = n * s.y;
4007
4003
  return {
4008
4004
  width: o,
@@ -4014,11 +4010,11 @@ function Au(e, t) {
4014
4010
  function Ma(e, t, r) {
4015
4011
  let n;
4016
4012
  if (t === "viewport")
4017
- n = Su(e, r);
4013
+ n = Nu(e, r);
4018
4014
  else if (t === "document")
4019
- n = Nu(Me(e));
4015
+ n = Cu(Me(e));
4020
4016
  else if (pe(t))
4021
- n = Au(t, r);
4017
+ n = Su(t, r);
4022
4018
  else {
4023
4019
  const a = Io(e);
4024
4020
  n = {
@@ -4034,7 +4030,7 @@ function Co(e, t) {
4034
4030
  const r = Le(e);
4035
4031
  return r === t || !pe(r) || it(r) ? !1 : ge(r).position === "fixed" || Co(r, t);
4036
4032
  }
4037
- function Ru(e, t) {
4033
+ function Au(e, t) {
4038
4034
  const r = t.get(e);
4039
4035
  if (r)
4040
4036
  return r;
@@ -4047,14 +4043,14 @@ function Ru(e, t) {
4047
4043
  }
4048
4044
  return t.set(e, n), n;
4049
4045
  }
4050
- function Mu(e) {
4046
+ function Ru(e) {
4051
4047
  let {
4052
4048
  element: t,
4053
4049
  boundary: r,
4054
4050
  rootBoundary: n,
4055
4051
  strategy: a
4056
4052
  } = e;
4057
- const s = [...r === "clippingAncestors" ? fr(t) ? [] : Ru(t, this._c) : [].concat(r), n], o = s[0], i = s.reduce((l, d) => {
4053
+ const s = [...r === "clippingAncestors" ? fr(t) ? [] : Au(t, this._c) : [].concat(r), n], o = s[0], i = s.reduce((l, d) => {
4058
4054
  const u = Ma(t, d, a);
4059
4055
  return l.top = et(u.top, l.top), l.right = Ct(u.right, l.right), l.bottom = Ct(u.bottom, l.bottom), l.left = et(u.left, l.left), l;
4060
4056
  }, Ma(t, o, a));
@@ -4065,7 +4061,7 @@ function Mu(e) {
4065
4061
  y: i.top
4066
4062
  };
4067
4063
  }
4068
- function Vu(e) {
4064
+ function Mu(e) {
4069
4065
  const {
4070
4066
  width: t,
4071
4067
  height: r
@@ -4075,7 +4071,7 @@ function Vu(e) {
4075
4071
  height: r
4076
4072
  };
4077
4073
  }
4078
- function Pu(e, t, r) {
4074
+ function Vu(e, t, r) {
4079
4075
  const n = _e(t), a = Me(t), s = r === "fixed", o = Nt(e, !0, s, t);
4080
4076
  let i = {
4081
4077
  scrollLeft: 0,
@@ -4120,14 +4116,14 @@ function No(e, t) {
4120
4116
  return r;
4121
4117
  }
4122
4118
  let n = Va(e, t);
4123
- for (; n && xu(n) && Ar(n); )
4119
+ for (; n && ku(n) && Ar(n); )
4124
4120
  n = Va(n, t);
4125
- return n && it(n) && Ar(n) && !En(n) ? r : n || Tu(e) || r;
4121
+ return n && it(n) && Ar(n) && !En(n) ? r : n || xu(e) || r;
4126
4122
  }
4127
- const Bu = async function(e) {
4123
+ const Pu = async function(e) {
4128
4124
  const t = this.getOffsetParent || No, r = this.getDimensions, n = await r(e.floating);
4129
4125
  return {
4130
- reference: Pu(e.reference, await t(e.floating), e.strategy),
4126
+ reference: Vu(e.reference, await t(e.floating), e.strategy),
4131
4127
  floating: {
4132
4128
  x: 0,
4133
4129
  y: 0,
@@ -4136,34 +4132,34 @@ const Bu = async function(e) {
4136
4132
  }
4137
4133
  };
4138
4134
  };
4139
- function Ou(e) {
4135
+ function Bu(e) {
4140
4136
  return ge(e).direction === "rtl";
4141
4137
  }
4142
- const Lu = {
4143
- convertOffsetParentRelativeRectToViewportRelativeRect: Eu,
4138
+ const Ou = {
4139
+ convertOffsetParentRelativeRectToViewportRelativeRect: Iu,
4144
4140
  getDocumentElement: Me,
4145
- getClippingRect: Mu,
4141
+ getClippingRect: Ru,
4146
4142
  getOffsetParent: No,
4147
- getElementRects: Bu,
4148
- getClientRects: Cu,
4149
- getDimensions: Vu,
4143
+ getElementRects: Pu,
4144
+ getClientRects: Eu,
4145
+ getDimensions: Mu,
4150
4146
  getScale: tt,
4151
4147
  isElement: pe,
4152
- isRTL: Ou
4153
- }, $u = wu, Du = ku, Fu = bu, zu = yu, Uu = (e, t, r) => {
4148
+ isRTL: Bu
4149
+ }, Lu = vu, $u = wu, Du = yu, Fu = gu, zu = (e, t, r) => {
4154
4150
  const n = /* @__PURE__ */ new Map(), a = {
4155
- platform: Lu,
4151
+ platform: Ou,
4156
4152
  ...r
4157
4153
  }, s = {
4158
4154
  ...a.platform,
4159
4155
  _c: n
4160
4156
  };
4161
- return gu(e, t, {
4157
+ return pu(e, t, {
4162
4158
  ...a,
4163
4159
  platform: s
4164
4160
  });
4165
4161
  }, Pa = ["mousedown", "touchstart"];
4166
- function Hu(e, t, r) {
4162
+ function Uu(e, t, r) {
4167
4163
  const n = M(null);
4168
4164
  return L(() => {
4169
4165
  const a = (s) => {
@@ -4184,7 +4180,7 @@ function Hu(e, t, r) {
4184
4180
  };
4185
4181
  }, [e, r, t]), n;
4186
4182
  }
4187
- function ju(e, t) {
4183
+ function Hu(e, t) {
4188
4184
  const [r, n] = $(!1), a = M(null), s = M(null), o = K(() => {
4189
4185
  n((l) => (!l && (!a.current || a.current === -1) && (a.current = window.setInterval(s.current, t)), !0));
4190
4186
  }, [t]), i = K(() => {
@@ -4192,42 +4188,42 @@ function ju(e, t) {
4192
4188
  }, []);
4193
4189
  return L(() => (s.current = e, r && o(), i), [e, r, o, i]), { start: o, stop: i, active: r };
4194
4190
  }
4195
- const jt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Wu = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), Ba = ({
4191
+ const jt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, ju = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), Ba = ({
4196
4192
  mode: e
4197
4193
  }) => p({
4198
4194
  "bg-surface-darker": e === "dark" || e === "system",
4199
4195
  "bg-surface-light": e === "light" || e === "alt-system",
4200
4196
  "dark:bg-surface-light": e === "system",
4201
4197
  "dark:bg-surface-darker": e === "alt-system"
4202
- }), Ku = ({
4198
+ }), Wu = ({
4203
4199
  mode: e
4204
4200
  }) => p({
4205
4201
  "text-copy-light": e === "dark" || e === "system",
4206
4202
  "text-copy-dark": e === "light" || e === "alt-system",
4207
4203
  "dark:text-copy-dark": e === "system",
4208
4204
  "dark:text-copy-light": e === "alt-system"
4209
- }), Gu = () => p("absolute", "size-2", "transform rotate-45"), Yu = ({
4205
+ }), Ku = () => p("absolute", "size-2", "transform rotate-45"), Gu = ({
4210
4206
  mode: e,
4211
4207
  className: t,
4212
4208
  tooltipClassName: r,
4213
4209
  arrowClassName: n
4214
4210
  }) => {
4215
4211
  const a = p("relative inline-block", t), s = p(
4216
- iu,
4217
- Wu(),
4212
+ ou,
4213
+ ju(),
4218
4214
  Ba({ mode: e }),
4219
- Ku({ mode: e }),
4215
+ Wu({ mode: e }),
4220
4216
  r
4221
4217
  ), o = p(
4222
- lu,
4223
- Gu(),
4218
+ iu,
4219
+ Ku(),
4224
4220
  Ba({ mode: e }),
4225
4221
  n
4226
4222
  );
4227
4223
  return { tooltip: s, arrow: o, wrapper: a };
4228
- }, Ju = ({ delay: e = 300 }) => ({
4224
+ }, Yu = ({ delay: e = 300 }) => ({
4229
4225
  animation: `av-tooltip-fade-in ${e}ms ease-in-out`
4230
- }), qu = 5e3, Ge = ({
4226
+ }), Ju = 5e3, Ge = ({
4231
4227
  trigger: e,
4232
4228
  label: t,
4233
4229
  placement: r = "top",
@@ -4237,16 +4233,16 @@ const jt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Wu = (
4237
4233
  tooltipClassName: o,
4238
4234
  arrowClassName: i
4239
4235
  }) => {
4240
- const l = Hu(() => {
4236
+ const l = Uu(() => {
4241
4237
  y.stop(), g(!1);
4242
- }), d = M(null), u = M(null), [h, f] = $(!1), [m, g] = $(!1), y = ju(() => {
4238
+ }), d = M(null), u = M(null), [h, f] = $(!1), [m, g] = $(!1), y = Hu(() => {
4243
4239
  g(!1);
4244
- }, qu), v = Yu({
4240
+ }, Ju), v = Gu({
4245
4241
  mode: n,
4246
4242
  className: s,
4247
4243
  tooltipClassName: o,
4248
4244
  arrowClassName: i
4249
- }), k = Ju({ delay: a }), T = K(async () => {
4245
+ }), k = Yu({ delay: a }), T = K(async () => {
4250
4246
  var x, _, w, I;
4251
4247
  if (l.current && d.current && u.current) {
4252
4248
  const {
@@ -4254,16 +4250,16 @@ const jt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Wu = (
4254
4250
  y: S,
4255
4251
  middlewareData: B,
4256
4252
  placement: A
4257
- } = await Uu(l.current, d.current, {
4253
+ } = await zu(l.current, d.current, {
4258
4254
  placement: r,
4259
4255
  middleware: [
4260
- $u(10),
4261
- Fu({
4256
+ Lu(10),
4257
+ Du({
4262
4258
  crossAxis: r.includes("-"),
4263
4259
  fallbackAxisSideDirection: "start"
4264
4260
  }),
4265
- Du({ padding: 5 }),
4266
- zu({ element: u.current })
4261
+ $u({ padding: 5 }),
4262
+ Fu({ element: u.current })
4267
4263
  ]
4268
4264
  });
4269
4265
  (x = d == null ? void 0 : d.current) != null && x.style && Object.assign(d.current.style, {
@@ -4321,7 +4317,7 @@ const jt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Wu = (
4321
4317
  ]
4322
4318
  }
4323
4319
  );
4324
- }, Xu = ({
4320
+ }, qu = ({
4325
4321
  className: e
4326
4322
  }) => {
4327
4323
  const {
@@ -4382,7 +4378,7 @@ try {
4382
4378
  });
4383
4379
  } catch {
4384
4380
  }
4385
- const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So = "button", Xr = "link", Zu = ({
4381
+ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So = "button", Xr = "link", Xu = ({
4386
4382
  type: e,
4387
4383
  size: t,
4388
4384
  labelRight: r,
@@ -4418,7 +4414,7 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
4418
4414
  "h-12": t === "large" && s && (r || n)
4419
4415
  });
4420
4416
  }
4421
- }, Qu = ({
4417
+ }, Zu = ({
4422
4418
  type: e,
4423
4419
  size: t,
4424
4420
  labelRight: r,
@@ -4441,7 +4437,7 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
4441
4437
  [o]: t === "large" && (r || n)
4442
4438
  });
4443
4439
  }
4444
- }, eh = ({
4440
+ }, Qu = ({
4445
4441
  mode: e,
4446
4442
  noBackground: t,
4447
4443
  noTruncate: r,
@@ -4477,7 +4473,7 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
4477
4473
  return p("not-prose text-copy-lighter", {
4478
4474
  truncate: !r
4479
4475
  });
4480
- }, th = ({
4476
+ }, eh = ({
4481
4477
  mode: e,
4482
4478
  noBackground: t,
4483
4479
  variant: r
@@ -4507,13 +4503,13 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
4507
4503
  if (r === "selected")
4508
4504
  return "bg-action-selected-dark";
4509
4505
  }
4510
- }, rh = ({
4506
+ }, th = ({
4511
4507
  radius: e
4512
4508
  }) => p({
4513
4509
  "rounded-full": e === "large",
4514
4510
  "rounded-md": e === "medium",
4515
4511
  "rounded-sm": e === "small"
4516
- }), nh = ({
4512
+ }), rh = ({
4517
4513
  mode: e,
4518
4514
  disabled: t,
4519
4515
  variant: r
@@ -4543,7 +4539,7 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
4543
4539
  });
4544
4540
  if (r === "selected")
4545
4541
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
4546
- }, ah = ({
4542
+ }, nh = ({
4547
4543
  mode: e,
4548
4544
  disabled: t,
4549
4545
  variant: r
@@ -4573,7 +4569,7 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
4573
4569
  });
4574
4570
  if (r === "selected")
4575
4571
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
4576
- }, sh = ({
4572
+ }, ah = ({
4577
4573
  mode: e,
4578
4574
  noBorder: t,
4579
4575
  variant: r
@@ -4603,14 +4599,14 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
4603
4599
  });
4604
4600
  if (r === "selected")
4605
4601
  return "border border-border-selected-dark";
4606
- }, oh = ({
4602
+ }, sh = ({
4607
4603
  focusMode: e
4608
4604
  }) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
4609
4605
  "focus:outline-focus-dark": e === "dark",
4610
4606
  "focus:outline-focus-light": e === "light",
4611
4607
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
4612
4608
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
4613
- }), ih = ({
4609
+ }), oh = ({
4614
4610
  mode: e,
4615
4611
  raw: t,
4616
4612
  iconClassName: r
@@ -4622,11 +4618,11 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
4622
4618
  "dark:text-copy-accent-dark": e === "system"
4623
4619
  },
4624
4620
  r
4625
- ), lh = ({
4621
+ ), ih = ({
4626
4622
  animated: e
4627
4623
  }) => p({
4628
4624
  "transition-opacity duration-300 ease-in": e
4629
- }), ch = ({
4625
+ }), lh = ({
4630
4626
  type: e,
4631
4627
  className: t,
4632
4628
  raw: r,
@@ -4646,15 +4642,15 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
4646
4642
  animated: v
4647
4643
  }) => (f || (f = "primary"), r ? p($a, t) : p(
4648
4644
  $a,
4649
- eh({
4645
+ Qu({
4650
4646
  mode: n,
4651
4647
  variant: f,
4652
4648
  noBackground: h,
4653
4649
  noTruncate: m
4654
4650
  }),
4655
- th({ mode: n, noBackground: h, variant: f }),
4656
- rh({ radius: y }),
4657
- Zu({
4651
+ eh({ mode: n, noBackground: h, variant: f }),
4652
+ th({ radius: y }),
4653
+ Xu({
4658
4654
  type: e,
4659
4655
  size: i,
4660
4656
  labelRight: d,
@@ -4662,11 +4658,11 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
4662
4658
  align: g,
4663
4659
  animated: v
4664
4660
  }),
4665
- Qu({ type: e, size: i, labelRight: d, labelLeft: u }),
4666
- sh({ mode: n, variant: f, noBorder: l }),
4667
- oh({ focusMode: a }),
4661
+ Zu({ type: e, size: i, labelRight: d, labelLeft: u }),
4662
+ ah({ mode: n, variant: f, noBorder: l }),
4663
+ sh({ focusMode: a }),
4664
+ rh({ mode: n, variant: f, disabled: s }),
4668
4665
  nh({ mode: n, variant: f, disabled: s }),
4669
- ah({ mode: n, variant: f, disabled: s }),
4670
4666
  {
4671
4667
  "w-full": o,
4672
4668
  "disabled:cursor-not-allowed disabled:opacity-50": s
@@ -4675,7 +4671,7 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
4675
4671
  "transition-[width] duration-300 ease-in-out": e === pr && v
4676
4672
  }),
4677
4673
  t
4678
- )), dh = (e, t, r) => {
4674
+ )), ch = (e, t, r) => {
4679
4675
  var n;
4680
4676
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
4681
4677
  }, Ao = Y.forwardRef((e, t) => {
@@ -4685,20 +4681,20 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
4685
4681
  {
4686
4682
  ref: t,
4687
4683
  onClick: (s) => {
4688
- dh(s, n, r);
4684
+ ch(s, n, r);
4689
4685
  },
4690
4686
  ...a
4691
4687
  }
4692
4688
  );
4693
4689
  });
4694
4690
  Ao.displayName = "BaseButton";
4695
- function uh() {
4691
+ function dh() {
4696
4692
  const e = M(!1);
4697
4693
  return L(() => (e.current = !0, () => {
4698
4694
  e.current = !1;
4699
4695
  }), []), K(() => e.current, []);
4700
4696
  }
4701
- function hh(e) {
4697
+ function uh(e) {
4702
4698
  return ye(() => e.every((t) => t == null) ? () => {
4703
4699
  } : (t) => {
4704
4700
  e.forEach((r) => {
@@ -4706,7 +4702,7 @@ function hh(e) {
4706
4702
  });
4707
4703
  }, e);
4708
4704
  }
4709
- const fh = {
4705
+ const hh = {
4710
4706
  x: 0,
4711
4707
  y: 0,
4712
4708
  width: 0,
@@ -4717,7 +4713,7 @@ const fh = {
4717
4713
  right: 0
4718
4714
  };
4719
4715
  function Rr(e) {
4720
- const t = uh(), r = M(0), n = M(null), [a, s] = $(fh), o = ye(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
4716
+ const t = dh(), r = M(0), n = M(null), [a, s] = $(hh), o = ye(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
4721
4717
  const l = i[0];
4722
4718
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
4723
4719
  n.current && t() && s(l.contentRect);
@@ -4727,21 +4723,21 @@ function Rr(e) {
4727
4723
  o == null || o.disconnect(), r.current && cancelAnimationFrame(r.current);
4728
4724
  }), [o, e]), [n, a];
4729
4725
  }
4730
- const mh = {
4726
+ const fh = {
4731
4727
  small: 24,
4732
4728
  // w-6
4733
4729
  medium: 32,
4734
4730
  // w-8
4735
4731
  large: 48
4736
4732
  // w-12
4737
- }, ph = {
4733
+ }, mh = {
4738
4734
  small: 8 * 2,
4739
4735
  // px-2 x 2
4740
4736
  medium: 12 * 2,
4741
4737
  // px-3 x 2
4742
4738
  large: 16 * 2
4743
4739
  // px-4 x 2
4744
- }, gh = 2, Sn = Y.forwardRef(
4740
+ }, ph = 2, Sn = Y.forwardRef(
4745
4741
  ({
4746
4742
  children: e,
4747
4743
  disabled: t = !1,
@@ -4765,7 +4761,7 @@ const mh = {
4765
4761
  animated: E = !1,
4766
4762
  ...N
4767
4763
  }, b) => {
4768
- const x = ch({
4764
+ const x = lh({
4769
4765
  type: pr,
4770
4766
  mode: r,
4771
4767
  focusMode: n,
@@ -4782,11 +4778,11 @@ const mh = {
4782
4778
  radius: v,
4783
4779
  variant: k,
4784
4780
  animated: E
4785
- }), _ = ih({ mode: r, raw: i, iconClassName: T }), w = lh({ animated: E }), [I, R] = Rr(), [S, B] = Rr(), [A, V] = Rr(), z = M(0), P = M(null), D = hh([b, P]);
4781
+ }), _ = oh({ mode: r, raw: i, iconClassName: T }), w = ih({ animated: E }), [I, R] = Rr(), [S, B] = Rr(), [A, V] = Rr(), z = M(0), P = M(null), D = uh([b, P]);
4786
4782
  return le(() => {
4787
- A && A.current && E && (z.current = V.width + ph[h] + (l ? 0 : gh));
4783
+ A && A.current && E && (z.current = V.width + mh[h] + (l ? 0 : ph));
4788
4784
  }, [V, A, h, l, E]), le(() => {
4789
- P && P.current && E && (f && I && R.width > 0 ? (I.current && (I.current.style.opacity = "100"), P.current.style.width = `${R.width + z.current}px`) : m && B.width > 0 ? (S.current && (S.current.style.opacity = "100"), P.current.style.width = `${B.width + z.current}px`) : (I.current && (I.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), P.current.style.width = `${mh[h]}px`));
4785
+ P && P.current && E && (f && I && R.width > 0 ? (I.current && (I.current.style.opacity = "100"), P.current.style.width = `${R.width + z.current}px`) : m && B.width > 0 ? (S.current && (S.current.style.opacity = "100"), P.current.style.width = `${B.width + z.current}px`) : (I.current && (I.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), P.current.style.width = `${fh[h]}px`));
4790
4786
  }, [
4791
4787
  R,
4792
4788
  f,
@@ -4849,7 +4845,7 @@ try {
4849
4845
  });
4850
4846
  } catch {
4851
4847
  }
4852
- const yh = Y.forwardRef(
4848
+ const gh = Y.forwardRef(
4853
4849
  ({
4854
4850
  children: e,
4855
4851
  mode: t = "system",
@@ -4887,8 +4883,8 @@ const yh = Y.forwardRef(
4887
4883
  ) });
4888
4884
  }
4889
4885
  );
4890
- yh.displayName = "ButtonSort";
4891
- const bh = ({
4886
+ gh.displayName = "ButtonSort";
4887
+ const yh = ({
4892
4888
  children: e,
4893
4889
  fill: t,
4894
4890
  viewBox: r,
@@ -4931,14 +4927,14 @@ try {
4931
4927
  });
4932
4928
  } catch {
4933
4929
  }
4934
- const vh = ({
4930
+ const bh = ({
4935
4931
  className: e,
4936
4932
  viewBox: t,
4937
4933
  title: r,
4938
4934
  monotone: n,
4939
4935
  ...a
4940
4936
  }) => /* @__PURE__ */ c(
4941
- bh,
4937
+ yh,
4942
4938
  {
4943
4939
  defaultViewBox: "0 0 384 512",
4944
4940
  size: "size-5",
@@ -4969,7 +4965,7 @@ try {
4969
4965
  } catch {
4970
4966
  }
4971
4967
  const Ro = ee.createContext(null);
4972
- function wh({
4968
+ function vh({
4973
4969
  initialOpen: e = !1,
4974
4970
  open: t,
4975
4971
  onOpenChange: r
@@ -5003,14 +4999,14 @@ const gr = () => {
5003
4999
  throw new Error("Modal components must be wrapped in <Modal />");
5004
5000
  return e;
5005
5001
  };
5006
- function kh({
5002
+ function wh({
5007
5003
  children: e,
5008
5004
  ...t
5009
5005
  }) {
5010
- const r = wh(t);
5006
+ const r = vh(t);
5011
5007
  return /* @__PURE__ */ c(Ro.Provider, { value: r, children: e });
5012
5008
  }
5013
- const xh = ee.forwardRef(function(e, t) {
5009
+ const kh = ee.forwardRef(function(e, t) {
5014
5010
  const { context: r, ...n } = gr(), a = pn([n.refs.setFloating, t]);
5015
5011
  if (!r.open)
5016
5012
  return null;
@@ -5028,13 +5024,13 @@ const xh = ee.forwardRef(function(e, t) {
5028
5024
  children: o.children
5029
5025
  }
5030
5026
  ) }) }) });
5031
- }), Th = ee.forwardRef(function({ children: e, ...t }, r) {
5027
+ }), xh = ee.forwardRef(function({ children: e, ...t }, r) {
5032
5028
  const { setLabelId: n } = gr(), a = cr();
5033
5029
  return ee.useLayoutEffect(() => (n(a), () => n(void 0)), [a, n]), /* @__PURE__ */ c("h1", { ...t, ref: r, id: a, children: e });
5034
- }), _h = ee.forwardRef(function({ children: e, ...t }, r) {
5030
+ }), Th = ee.forwardRef(function({ children: e, ...t }, r) {
5035
5031
  const { setDescriptionId: n } = gr(), a = cr();
5036
5032
  return ee.useLayoutEffect(() => (n(a), () => n(void 0)), [a, n]), /* @__PURE__ */ c("div", { ...t, ref: r, id: a, children: e });
5037
- }), Ih = ee.forwardRef(function(e, t) {
5033
+ }), _h = ee.forwardRef(function(e, t) {
5038
5034
  const { setOpen: r } = gr(), { trigger: n, className: a, ...s } = e, o = ee.useCallback(() => r(!1), [r]);
5039
5035
  return /* @__PURE__ */ c("div", { className: a, children: ee.cloneElement(n, {
5040
5036
  ref: t,
@@ -5055,7 +5051,7 @@ try {
5055
5051
  });
5056
5052
  } catch {
5057
5053
  }
5058
- const vt = "panel", Wt = "messagebox", Eh = ({
5054
+ const vt = "panel", Wt = "messagebox", Ih = ({
5059
5055
  className: e,
5060
5056
  kind: t,
5061
5057
  borderMode: r
@@ -5085,13 +5081,13 @@ const vt = "panel", Wt = "messagebox", Eh = ({
5085
5081
  kind: o = vt,
5086
5082
  className: i
5087
5083
  }) => {
5088
- const l = M(""), d = Eh({ className: i, kind: o, borderMode: s });
5084
+ const l = M(""), d = Ih({ className: i, kind: o, borderMode: s });
5089
5085
  return L(() => (e && (l.current = document.title, document.title = `${r} | ${l.current}`), () => {
5090
5086
  e && (document.title = l.current);
5091
- }), [r, e]), /* @__PURE__ */ c(ae, { children: e && /* @__PURE__ */ c(kh, { open: e, onOpenChange: t, children: /* @__PURE__ */ C(xh, { className: d.main, children: [
5087
+ }), [r, e]), /* @__PURE__ */ c(ae, { children: e && /* @__PURE__ */ c(wh, { open: e, onOpenChange: t, children: /* @__PURE__ */ C(kh, { className: d.main, children: [
5092
5088
  /* @__PURE__ */ C("div", { className: "flex flex-row-reverse items-center justify-between", children: [
5093
5089
  /* @__PURE__ */ c(
5094
- Ih,
5090
+ _h,
5095
5091
  {
5096
5092
  className: d.close,
5097
5093
  trigger: /* @__PURE__ */ c(
@@ -5101,14 +5097,14 @@ const vt = "panel", Wt = "messagebox", Eh = ({
5101
5097
  focusMode: "light",
5102
5098
  noBorder: !0,
5103
5099
  label: "Close",
5104
- children: /* @__PURE__ */ c(vh, {})
5100
+ children: /* @__PURE__ */ c(bh, {})
5105
5101
  }
5106
5102
  )
5107
5103
  }
5108
5104
  ),
5109
- /* @__PURE__ */ c(Th, { className: d.header, children: r })
5105
+ /* @__PURE__ */ c(xh, { className: d.header, children: r })
5110
5106
  ] }),
5111
- /* @__PURE__ */ c(_h, { className: d.content, children: n }),
5107
+ /* @__PURE__ */ c(Th, { className: d.content, children: n }),
5112
5108
  a && /* @__PURE__ */ c("div", { className: d.footer, children: a })
5113
5109
  ] }) }) });
5114
5110
  }, An = ({
@@ -5152,7 +5148,7 @@ const vt = "panel", Wt = "messagebox", Eh = ({
5152
5148
  ] }),
5153
5149
  children: n
5154
5150
  }
5155
- ), Ch = ({
5151
+ ), Eh = ({
5156
5152
  className: e
5157
5153
  }) => {
5158
5154
  const {
@@ -5339,7 +5335,7 @@ const vt = "panel", Wt = "messagebox", Eh = ({
5339
5335
  ), yr = Bs((e, t) => /* @__PURE__ */ c(Fl, { children: /* @__PURE__ */ c(Mo, { ...e, ref: t }) }));
5340
5336
  yr.displayName = "Menu";
5341
5337
  Mo.displayName = "MenuComponent";
5342
- const Nh = ({
5338
+ const Ch = ({
5343
5339
  children: e,
5344
5340
  fill: t,
5345
5341
  viewBox: r,
@@ -5382,14 +5378,14 @@ try {
5382
5378
  });
5383
5379
  } catch {
5384
5380
  }
5385
- const Sh = ({
5381
+ const Nh = ({
5386
5382
  className: e,
5387
5383
  viewBox: t,
5388
5384
  title: r,
5389
5385
  monotone: n,
5390
5386
  ...a
5391
5387
  }) => /* @__PURE__ */ C(
5392
- Nh,
5388
+ Ch,
5393
5389
  {
5394
5390
  defaultViewBox: "0 0 448 512",
5395
5391
  size: "size-5",
@@ -5477,7 +5473,7 @@ const Se = ee.forwardRef(
5477
5473
  }
5478
5474
  }),
5479
5475
  children: [
5480
- o && /* @__PURE__ */ c(Sh, { className: "mr-2", size: "size-4" }),
5476
+ o && /* @__PURE__ */ c(Nh, { className: "mr-2", size: "size-4" }),
5481
5477
  r,
5482
5478
  e && /* @__PURE__ */ c("span", { className: d, children: e })
5483
5479
  ]
@@ -5486,7 +5482,7 @@ const Se = ee.forwardRef(
5486
5482
  }
5487
5483
  );
5488
5484
  Se.displayName = "MenuItem";
5489
- const Ah = ({ className: e, ...t }) => {
5485
+ const Sh = ({ className: e, ...t }) => {
5490
5486
  const r = p(e, "my-1 border-t border-border-medium");
5491
5487
  return /* @__PURE__ */ c("div", { className: r, ...t });
5492
5488
  }, Vo = ({
@@ -5512,12 +5508,12 @@ try {
5512
5508
  });
5513
5509
  } catch {
5514
5510
  }
5515
- const Rh = (e) => {
5511
+ const Ah = (e) => {
5516
5512
  for (let t = 0; t < e.length; t++)
5517
5513
  if (e[t].enabled)
5518
5514
  return !0;
5519
5515
  return !1;
5520
- }, Mh = ({
5516
+ }, Rh = ({
5521
5517
  className: e,
5522
5518
  defaultPlacement: t = "top-start"
5523
5519
  }) => {
@@ -5541,7 +5537,7 @@ const Rh = (e) => {
5541
5537
  }
5542
5538
  });
5543
5539
  };
5544
- return d || u ? null : l && l.tags && Rh(l.tags) && /* @__PURE__ */ c(
5540
+ return d || u ? null : l && l.tags && Ah(l.tags) && /* @__PURE__ */ c(
5545
5541
  Ge,
5546
5542
  {
5547
5543
  label: "Prompts",
@@ -5591,7 +5587,7 @@ const Rh = (e) => {
5591
5587
  )
5592
5588
  }
5593
5589
  );
5594
- }, Vh = ({
5590
+ }, Mh = ({
5595
5591
  className: e
5596
5592
  }) => {
5597
5593
  const { user: t, getAccessToken: r } = de(), {
@@ -5642,7 +5638,7 @@ const Rh = (e) => {
5642
5638
  )
5643
5639
  }
5644
5640
  );
5645
- }, Ph = ({
5641
+ }, Vh = ({
5646
5642
  show: e,
5647
5643
  bottom: t
5648
5644
  }) => e ? /* @__PURE__ */ c(
@@ -5650,7 +5646,7 @@ const Rh = (e) => {
5650
5646
  {
5651
5647
  style: { bottom: `${t}px` },
5652
5648
  className: p(
5653
- ou,
5649
+ su,
5654
5650
  "fixed left-1/2 transform -translate-x-1/2"
5655
5651
  ),
5656
5652
  children: /* @__PURE__ */ c(
@@ -5676,7 +5672,7 @@ const Rh = (e) => {
5676
5672
  }
5677
5673
  )
5678
5674
  }
5679
- ) : null, Bh = ({
5675
+ ) : null, Ph = ({
5680
5676
  className: e
5681
5677
  }) => {
5682
5678
  const {
@@ -5704,7 +5700,7 @@ const Rh = (e) => {
5704
5700
  )
5705
5701
  }
5706
5702
  );
5707
- }, Oh = ({
5703
+ }, Bh = ({
5708
5704
  className: e
5709
5705
  }) => {
5710
5706
  const {
@@ -5774,35 +5770,35 @@ const Rh = (e) => {
5774
5770
  )
5775
5771
  }
5776
5772
  );
5777
- }, Lh = () => p(
5773
+ }, Oh = () => p(
5778
5774
  "relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
5779
- ), za = () => p("bg-surface-darker"), $h = () => p("text-copy-lighter caret-copy-light"), Dh = () => p(
5775
+ ), za = () => p("bg-surface-darker"), Lh = () => p("text-copy-lighter caret-copy-light"), $h = () => p(
5780
5776
  "has-[.av-prompt-editable:focus]:outline",
5781
5777
  "has-[.av-prompt-editable:focus]:outline-2",
5782
5778
  "has-[.av-prompt-editable:focus]:outline-offset-2",
5783
5779
  "has-[.av-prompt-editable:focus]:outline-focus-light"
5784
- ), Fh = () => p(
5780
+ ), Dh = () => p(
5785
5781
  "peer",
5786
5782
  "text-base resize-none overflow-hidden w-full text-inherit outline-none",
5787
5783
  "h-6 pr-2 pl-4"
5788
- ), zh = ({ className: e }) => {
5784
+ ), Fh = ({ className: e }) => {
5789
5785
  const t = p(
5790
5786
  Zi,
5791
- Lh(),
5787
+ Oh(),
5792
5788
  za(),
5789
+ Lh(),
5793
5790
  $h(),
5794
- Dh(),
5795
5791
  e
5796
5792
  ), r = p(
5797
5793
  Qi,
5798
- Fh(),
5794
+ Dh(),
5799
5795
  za()
5800
5796
  );
5801
5797
  return {
5802
5798
  wrapper: t,
5803
5799
  textArea: r
5804
5800
  };
5805
- }, Po = 24, Uh = 500, Bo = 2, Hh = 5, Ua = Po * Bo, Ha = Hh * Po, jh = () => {
5801
+ }, Po = 24, zh = 500, Bo = 2, Uh = 5, Ua = Po * Bo, Ha = Uh * Po, Hh = () => {
5806
5802
  const { getAccessToken: e } = de(), {
5807
5803
  state: { usage: t, streaming: r, lastResetTimestamp: n }
5808
5804
  } = W(ie), { state: a, dispatch: s } = W(xn), {
@@ -5857,7 +5853,7 @@ const Rh = (e) => {
5857
5853
  }
5858
5854
  });
5859
5855
  }
5860
- }), { dispatch: f } = W(ie), m = M(!1), g = M(null), y = M(null), v = Et(), k = zh({
5856
+ }), { dispatch: f } = W(ie), m = M(!1), g = M(null), y = M(null), v = Et(), k = Fh({
5861
5857
  className: ""
5862
5858
  }), T = K(() => {
5863
5859
  if (!y.current)
@@ -5910,7 +5906,7 @@ const Rh = (e) => {
5910
5906
  }
5911
5907
  n ? setTimeout(() => {
5912
5908
  y.current && y.current.focus();
5913
- }, Uh) : r === !1 && y.current && y.current.focus();
5909
+ }, zh) : r === !1 && y.current && y.current.focus();
5914
5910
  }, [n, r]), L(() => {
5915
5911
  t === 0 && (u == null ? void 0 : u.length) === 0 && y.current && (y.current.style.height = `${Ua}px`);
5916
5912
  }, [t, u]), L(() => {
@@ -5935,14 +5931,14 @@ const Rh = (e) => {
5935
5931
  }
5936
5932
  ) }),
5937
5933
  /* @__PURE__ */ C("div", { className: "p-2 flex items-center", children: [
5938
- /* @__PURE__ */ c(Bh, { className: "order-5 ml-auto" }),
5939
- /* @__PURE__ */ c(Xu, { className: "order-1 mr-4 sm:mr-2" }),
5940
- /* @__PURE__ */ c(Mh, { className: "order-2 mr-4 sm:mr-2" }),
5941
- /* @__PURE__ */ c(Ch, { className: "order-3 mr-4 sm:mr-2" }),
5942
- /* @__PURE__ */ c(Vh, { className: "order-4" })
5934
+ /* @__PURE__ */ c(Ph, { className: "order-5 ml-auto" }),
5935
+ /* @__PURE__ */ c(qu, { className: "order-1 mr-4 sm:mr-2" }),
5936
+ /* @__PURE__ */ c(Rh, { className: "order-2 mr-4 sm:mr-2" }),
5937
+ /* @__PURE__ */ c(Eh, { className: "order-3 mr-4 sm:mr-2" }),
5938
+ /* @__PURE__ */ c(Mh, { className: "order-4" })
5943
5939
  ] })
5944
5940
  ] }) });
5945
- }, Kt = "--sassy-bottom", ja = 16, Wa = 76, Wh = ({ isComponent: e }) => {
5941
+ }, Kt = "--sassy-bottom", ja = 16, Wa = 76, jh = ({ isComponent: e }) => {
5946
5942
  const {
5947
5943
  state: { loading: t, streaming: r, restoring: n }
5948
5944
  } = W(ie), {
@@ -6015,15 +6011,15 @@ const Rh = (e) => {
6015
6011
  "fixed left-1/2 transform -translate-x-1/2",
6016
6012
  "transition-all ease-in-out duration-500",
6017
6013
  "bottom-[--sassy-bottom]",
6018
- su
6014
+ au
6019
6015
  ),
6020
6016
  children: [
6021
- /* @__PURE__ */ c(jh, {}),
6017
+ /* @__PURE__ */ c(Hh, {}),
6022
6018
  /* @__PURE__ */ c("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: tl })
6023
6019
  ]
6024
6020
  }
6025
6021
  );
6026
- }, Kh = () => {
6022
+ }, Wh = () => {
6027
6023
  const e = Et(), t = Et(), { data: r, error: n, isLoading: a } = rl(), s = (r == null ? void 0 : r.version) || "", o = (r == null ? void 0 : r.models) || [];
6028
6024
  return /* @__PURE__ */ C(ae, { children: [
6029
6025
  /* @__PURE__ */ c("div", { className: "mb-4", children: /* @__PURE__ */ c(
@@ -6032,8 +6028,8 @@ const Rh = (e) => {
6032
6028
  header: X.ABOUT.TITLE_CLIENT,
6033
6029
  className: "prose-dark dark:prose-lighter",
6034
6030
  children: Zt(e, {
6035
- [X.ABOUT.VERSION]: "8.0.4",
6036
- [X.ABOUT.BUILD_TIMESTAMP]: "02/26/2025 11:44 AM EST"
6031
+ [X.ABOUT.VERSION]: "8.0.5",
6032
+ [X.ABOUT.BUILD_TIMESTAMP]: "02/26/2025 12:28 PM EST"
6037
6033
  })
6038
6034
  }
6039
6035
  ) }),
@@ -6049,10 +6045,10 @@ const Rh = (e) => {
6049
6045
  }
6050
6046
  )
6051
6047
  ] });
6052
- }, Gh = ({
6048
+ }, Kh = ({
6053
6049
  open: e,
6054
6050
  onOpenChange: t
6055
- }) => /* @__PURE__ */ c(Lt, { open: e, onOpenChange: t, title: nl, children: /* @__PURE__ */ c(Kh, {}) }), Yh = ({
6051
+ }) => /* @__PURE__ */ c(Lt, { open: e, onOpenChange: t, title: nl, children: /* @__PURE__ */ c(Wh, {}) }), Gh = ({
6056
6052
  filteredHistory: e,
6057
6053
  dispatch: t,
6058
6054
  onOpenChange: r,
@@ -6279,12 +6275,12 @@ const Rh = (e) => {
6279
6275
  ) }) }) }) })
6280
6276
  ] })
6281
6277
  ] });
6282
- }, Jh = ({
6278
+ }, Yh = ({
6283
6279
  open: e,
6284
6280
  onOpenChange: t
6285
6281
  }) => {
6286
6282
  const { getAccessToken: r, user: n } = de(), {
6287
- state: { lastTriggeredTimestamp: a },
6283
+ state: { lastStreamingTimestamp: a },
6288
6284
  dispatch: s
6289
6285
  } = W(ie), { state: o, dispatch: i } = W(kn), { data: l, mutate: d } = al({
6290
6286
  keys: [
@@ -6347,7 +6343,7 @@ const Rh = (e) => {
6347
6343
  }
6348
6344
  ) }),
6349
6345
  /* @__PURE__ */ c("div", { className: "flex flex-col gap-2 sm:flex-row max-h-[60vh] min-h-[60vh]", children: /* @__PURE__ */ c(
6350
- Yh,
6346
+ Gh,
6351
6347
  {
6352
6348
  mutate: d,
6353
6349
  filteredHistory: f,
@@ -6356,7 +6352,7 @@ const Rh = (e) => {
6356
6352
  }
6357
6353
  ) })
6358
6354
  ] }) });
6359
- }, qh = ({ stats: e }) => {
6355
+ }, Jh = ({ stats: e }) => {
6360
6356
  const { isAuthenticated: t, user: r, registeringForPasskey: n, authenticationType: a } = de(), s = Et(), o = Et(), i = (r == null ? void 0 : r.username) || "";
6361
6357
  return t && i ? /* @__PURE__ */ C(ae, { children: [
6362
6358
  /* @__PURE__ */ c(
@@ -6407,7 +6403,7 @@ const Rh = (e) => {
6407
6403
  }
6408
6404
  )
6409
6405
  ] }) : null;
6410
- }, Xh = ({
6406
+ }, qh = ({
6411
6407
  open: e,
6412
6408
  onOpenChange: t
6413
6409
  }) => {
@@ -6419,7 +6415,7 @@ const Rh = (e) => {
6419
6415
  keys: [n == null ? void 0 : n.username],
6420
6416
  getAccessToken: r
6421
6417
  });
6422
- return s || o ? null : /* @__PURE__ */ c(Lt, { open: e, onOpenChange: t, title: hl, children: /* @__PURE__ */ c(qh, { stats: a }) });
6418
+ return s || o ? null : /* @__PURE__ */ c(Lt, { open: e, onOpenChange: t, title: hl, children: /* @__PURE__ */ c(Jh, { stats: a }) });
6423
6419
  };
6424
6420
  /*!
6425
6421
  @versini/ui-textarea v3.0.17
@@ -6434,14 +6430,14 @@ try {
6434
6430
  });
6435
6431
  } catch {
6436
6432
  }
6437
- const Oo = "av-text-area", Zh = "av-text-area-wrapper", Mr = "av-text-area-helper-text", Qh = "av-text-area__control--right", ef = "av-text-area__control--left";
6438
- function tf() {
6433
+ const Oo = "av-text-area", Xh = "av-text-area-wrapper", Mr = "av-text-area-helper-text", Zh = "av-text-area__control--right", Qh = "av-text-area__control--left";
6434
+ function ef() {
6439
6435
  const e = M(!1);
6440
6436
  return L(() => (e.current = !0, () => {
6441
6437
  e.current = !1;
6442
6438
  }), []), K(() => e.current, []);
6443
6439
  }
6444
- function rf(e) {
6440
+ function tf(e) {
6445
6441
  return ye(() => e.every((t) => t == null) ? () => {
6446
6442
  } : (t) => {
6447
6443
  e.forEach((r) => {
@@ -6449,7 +6445,7 @@ function rf(e) {
6449
6445
  });
6450
6446
  }, e);
6451
6447
  }
6452
- const nf = {
6448
+ const rf = {
6453
6449
  x: 0,
6454
6450
  y: 0,
6455
6451
  width: 0,
@@ -6460,7 +6456,7 @@ const nf = {
6460
6456
  right: 0
6461
6457
  };
6462
6458
  function Ka(e) {
6463
- const t = tf(), r = M(0), n = M(null), [a, s] = $(nf), o = ye(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
6459
+ const t = ef(), r = M(0), n = M(null), [a, s] = $(rf), o = ye(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
6464
6460
  const l = i[0];
6465
6461
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
6466
6462
  n.current && t() && s(l.contentRect);
@@ -6470,7 +6466,7 @@ function Ka(e) {
6470
6466
  o == null || o.disconnect(), r.current && cancelAnimationFrame(r.current);
6471
6467
  }), [o, e]), [n, a];
6472
6468
  }
6473
- function af({
6469
+ function nf({
6474
6470
  value: e,
6475
6471
  defaultValue: t,
6476
6472
  finalValue: r,
@@ -6489,7 +6485,7 @@ function af({
6489
6485
  ), o(!0)))();
6490
6486
  }, [e, a, s]), e !== void 0 ? !s && a > 0 ? ["", n, !0] : [e, n, !0] : [i, d, !1];
6491
6487
  }
6492
- function sf(e) {
6488
+ function af(e) {
6493
6489
  const t = cr();
6494
6490
  if (!e)
6495
6491
  return t;
@@ -6500,7 +6496,7 @@ function sf(e) {
6500
6496
  return typeof r == "number" || typeof r == "string" ? `${n}${r}` : `${n}${t}`;
6501
6497
  }
6502
6498
  }
6503
- const Lo = "SET_ANNOUNCEMENT", $o = "CLEAR_ANNOUNCEMENT", of = {
6499
+ const Lo = "SET_ANNOUNCEMENT", $o = "CLEAR_ANNOUNCEMENT", sf = {
6504
6500
  alert: null,
6505
6501
  alertdialog: null,
6506
6502
  log: "polite",
@@ -6508,7 +6504,7 @@ const Lo = "SET_ANNOUNCEMENT", $o = "CLEAR_ANNOUNCEMENT", of = {
6508
6504
  progressbar: null,
6509
6505
  status: "polite",
6510
6506
  timer: "assertive"
6511
- }, lf = (e, t) => {
6507
+ }, of = (e, t) => {
6512
6508
  switch (t == null ? void 0 : t.type) {
6513
6509
  case Lo:
6514
6510
  return {
@@ -6523,7 +6519,7 @@ const Lo = "SET_ANNOUNCEMENT", $o = "CLEAR_ANNOUNCEMENT", of = {
6523
6519
  default:
6524
6520
  return e;
6525
6521
  }
6526
- }, cf = ({
6522
+ }, lf = ({
6527
6523
  onAnnouncementClear: e,
6528
6524
  dispatch: t
6529
6525
  }) => {
@@ -6541,13 +6537,13 @@ const Lo = "SET_ANNOUNCEMENT", $o = "CLEAR_ANNOUNCEMENT", of = {
6541
6537
  type: Lo,
6542
6538
  payload: e
6543
6539
  }), t && (r.current = setTimeout(
6544
- () => cf({
6540
+ () => lf({
6545
6541
  onAnnouncementClear: n,
6546
6542
  dispatch: a
6547
6543
  }),
6548
6544
  t
6549
6545
  ));
6550
- }, df = ({
6546
+ }, cf = ({
6551
6547
  children: e,
6552
6548
  announcementTimeoutRef: t,
6553
6549
  announcementDelay: r,
@@ -6570,7 +6566,7 @@ const Lo = "SET_ANNOUNCEMENT", $o = "CLEAR_ANNOUNCEMENT", of = {
6570
6566
  dispatch: o
6571
6567
  });
6572
6568
  };
6573
- function uf({
6569
+ function df({
6574
6570
  children: e,
6575
6571
  className: t,
6576
6572
  politeness: r,
@@ -6581,12 +6577,12 @@ function uf({
6581
6577
  visible: i,
6582
6578
  ...l
6583
6579
  }) {
6584
- const d = M(null), u = M(null), [h, f] = bt(lf, {
6580
+ const d = M(null), u = M(null), [h, f] = bt(of, {
6585
6581
  announcement: null
6586
6582
  });
6587
6583
  let m = r;
6588
- typeof m > "u" && (m = n ? of[n] : "assertive"), L(() => {
6589
- df({
6584
+ typeof m > "u" && (m = n ? sf[n] : "assertive"), L(() => {
6585
+ cf({
6590
6586
  announcementTimeoutRef: d,
6591
6587
  announcementDelay: a,
6592
6588
  children: e,
@@ -6628,19 +6624,19 @@ try {
6628
6624
  });
6629
6625
  } catch {
6630
6626
  }
6631
- const hf = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", ff = ({ mode: e }) => p({
6627
+ const uf = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", hf = ({ mode: e }) => p({
6632
6628
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
6633
6629
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
6634
6630
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
6635
6631
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
6636
- }), mf = ({
6632
+ }), ff = ({
6637
6633
  focusMode: e
6638
6634
  }) => p("focus:outline focus:outline-2 focus:outline-offset-2", {
6639
6635
  "focus:outline-focus-dark": e === "dark",
6640
6636
  "focus:outline-focus-light": e === "light",
6641
6637
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
6642
6638
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
6643
- }), pf = ({
6639
+ }), mf = ({
6644
6640
  noBorder: e,
6645
6641
  error: t
6646
6642
  }) => p("border-2", {
@@ -6648,7 +6644,7 @@ const hf = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6648
6644
  "focus:border-border-dark": !e && t,
6649
6645
  "border-border-error-dark": !e && t,
6650
6646
  "border-transparent": e
6651
- }), gf = ({
6647
+ }), pf = ({
6652
6648
  disabled: e,
6653
6649
  raw: t,
6654
6650
  error: r,
@@ -6687,7 +6683,7 @@ const hf = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6687
6683
  "text-copy-medium dark:text-copy-error-dark": n === "alt-system"
6688
6684
  }
6689
6685
  );
6690
- }, yf = ({
6686
+ }, gf = ({
6691
6687
  error: e,
6692
6688
  raw: t,
6693
6689
  mode: r,
@@ -6714,7 +6710,7 @@ const hf = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6714
6710
  "text-copy-error-dark dark:text-copy-error-light": r === "system",
6715
6711
  "dark:text-copy-error-dark text-copy-error-light": r === "alt-system"
6716
6712
  });
6717
- }, bf = ({
6713
+ }, yf = ({
6718
6714
  className: e,
6719
6715
  textAreaClassName: t,
6720
6716
  raw: r,
@@ -6728,34 +6724,34 @@ const hf = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6728
6724
  }) => {
6729
6725
  const u = r ? e : p(
6730
6726
  "relative flex w-full flex-col justify-center",
6731
- Zh,
6727
+ Xh,
6732
6728
  e
6733
6729
  ), h = r ? p(t) : p(
6734
6730
  Oo,
6735
6731
  t,
6736
- hf(),
6737
- ff({ mode: i }),
6738
- mf({ focusMode: n }),
6739
- pf({
6732
+ uf(),
6733
+ hf({ mode: i }),
6734
+ ff({ focusMode: n }),
6735
+ mf({
6740
6736
  noBorder: s,
6741
6737
  error: o
6742
6738
  }),
6743
6739
  {
6744
6740
  "disabled:cursor-not-allowed disabled:opacity-50": a
6745
6741
  }
6746
- ), f = r ? void 0 : "sr-only", m = gf({
6742
+ ), f = r ? void 0 : "sr-only", m = pf({
6747
6743
  disabled: a,
6748
6744
  raw: r,
6749
6745
  error: o,
6750
6746
  mode: i,
6751
6747
  rightElement: d,
6752
6748
  leftElement: l
6753
- }), g = yf({
6749
+ }), g = gf({
6754
6750
  error: o,
6755
6751
  raw: r,
6756
6752
  mode: i,
6757
6753
  disabled: a
6758
- }), y = r ? void 0 : p(Qh, "absolute"), v = r ? void 0 : p(ef, "absolute");
6754
+ }), y = r ? void 0 : p(Zh, "absolute"), v = r ? void 0 : p(Qh, "absolute");
6759
6755
  return {
6760
6756
  wrapper: u,
6761
6757
  textArea: h,
@@ -6765,7 +6761,7 @@ const hf = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6765
6761
  rightElement: y,
6766
6762
  leftElement: v
6767
6763
  };
6768
- }, vf = ({
6764
+ }, bf = ({
6769
6765
  scrollHeight: e,
6770
6766
  currentHeight: t,
6771
6767
  currentLabelOffset: r = 0,
@@ -6807,9 +6803,9 @@ const hf = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6807
6803
  ...b
6808
6804
  }, x) => {
6809
6805
  var _;
6810
- const w = M(null), I = rf([x, w]), [R, S] = Ka(), [B, A] = Ka(), V = M(80), z = M(-25), P = M(null), D = M(30), U = M(null), j = sf({ id: e, prefix: `${Oo}-` }), [Ee, Ye] = $(0), [Fe, Je] = $(0), [qe, se] = $(
6806
+ const w = M(null), I = tf([x, w]), [R, S] = Ka(), [B, A] = Ka(), V = M(80), z = M(-25), P = M(null), D = M(30), U = M(null), j = af({ id: e, prefix: `${Oo}-` }), [Ee, Ye] = $(0), [Fe, Je] = $(0), [qe, se] = $(
6811
6807
  !!(!y && g)
6812
- ), be = `${t} error, ${g}`, oe = bf({
6808
+ ), be = `${t} error, ${g}`, oe = yf({
6813
6809
  className: s,
6814
6810
  textAreaClassName: o,
6815
6811
  error: n,
@@ -6820,7 +6816,7 @@ const hf = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6820
6816
  mode: i,
6821
6817
  rightElement: !!v,
6822
6818
  leftElement: !!k
6823
- }), [te, Ce] = af({
6819
+ }), [te, Ce] = nf({
6824
6820
  value: d,
6825
6821
  initialControlledDelay: 20,
6826
6822
  defaultValue: u,
@@ -6855,7 +6851,7 @@ const hf = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6855
6851
  }, [te, a]), le(() => {
6856
6852
  var F, ue;
6857
6853
  if (!a && w && w.current && te !== void 0) {
6858
- const { labelOffset: Ne, helperTextOffset: he, scrollHeight: fe } = vf({
6854
+ const { labelOffset: Ne, helperTextOffset: he, scrollHeight: fe } = bf({
6859
6855
  scrollHeight: w.current.scrollHeight,
6860
6856
  currentHeight: V.current,
6861
6857
  currentLabelOffset: z.current,
@@ -6944,7 +6940,7 @@ const hf = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6944
6940
  children: v
6945
6941
  }
6946
6942
  ),
6947
- n && g && /* @__PURE__ */ c(uf, { politeness: "polite", clearAnnouncementDelay: 500, children: be })
6943
+ n && g && /* @__PURE__ */ c(df, { politeness: "polite", clearAnnouncementDelay: 500, children: be })
6948
6944
  ] });
6949
6945
  }
6950
6946
  );
@@ -6962,7 +6958,7 @@ try {
6962
6958
  });
6963
6959
  } catch {
6964
6960
  }
6965
- const wf = "av-toggle", kf = () => p("peer", "h-6", "w-11", "rounded-full"), xf = ({
6961
+ const vf = "av-toggle", wf = () => p("peer", "h-6", "w-11", "rounded-full"), kf = ({
6966
6962
  focusMode: e
6967
6963
  }) => p(
6968
6964
  "peer-focus:outline",
@@ -6974,14 +6970,14 @@ const wf = "av-toggle", kf = () => p("peer", "h-6", "w-11", "rounded-full"), xf
6974
6970
  "peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
6975
6971
  "peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
6976
6972
  }
6977
- ), Tf = () => p(
6973
+ ), xf = () => p(
6978
6974
  "peer-checked:after:translate-x-full",
6979
6975
  // background color when checked
6980
6976
  "peer-checked:bg-violet-500",
6981
6977
  // knob circle and border color when checked
6982
6978
  "peer-checked:after:bg-white",
6983
6979
  "peer-checked:after:border-white"
6984
- ), _f = () => p(
6980
+ ), Tf = () => p(
6985
6981
  "after:left-[2px]",
6986
6982
  "after:top-[2px]",
6987
6983
  "after:border",
@@ -6993,7 +6989,7 @@ const wf = "av-toggle", kf = () => p("peer", "h-6", "w-11", "rounded-full"), xf
6993
6989
  "after:rounded-full",
6994
6990
  "after:transition-all",
6995
6991
  "after:content-['']"
6996
- ), If = ({
6992
+ ), _f = ({
6997
6993
  mode: e,
6998
6994
  noBorder: t
6999
6995
  }) => p({
@@ -7002,7 +6998,7 @@ const wf = "av-toggle", kf = () => p("peer", "h-6", "w-11", "rounded-full"), xf
7002
6998
  "border-border-light bg-surface-darker": e === "dark",
7003
6999
  "border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
7004
7000
  "border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
7005
- }), Ef = ({
7001
+ }), If = ({
7006
7002
  mode: e,
7007
7003
  labelHidden: t
7008
7004
  }) => t ? "sr-only" : p("ml-2 text-sm", {
@@ -7010,11 +7006,11 @@ const wf = "av-toggle", kf = () => p("peer", "h-6", "w-11", "rounded-full"), xf
7010
7006
  "text-copy-lighter": e === "dark",
7011
7007
  "text-copy-lighter dark:text-copy-dark": e === "alt-system",
7012
7008
  "text-copy-dark dark:text-copy-lighter": e === "system"
7013
- }), Cf = ({ className: e }) => p(
7014
- wf,
7009
+ }), Ef = ({ className: e }) => p(
7010
+ vf,
7015
7011
  "relative flex cursor-pointer items-center",
7016
7012
  e
7017
- ), Nf = ({
7013
+ ), Cf = ({
7018
7014
  mode: e,
7019
7015
  focusMode: t,
7020
7016
  labelHidden: r,
@@ -7022,15 +7018,15 @@ const wf = "av-toggle", kf = () => p("peer", "h-6", "w-11", "rounded-full"), xf
7022
7018
  noBorder: a
7023
7019
  }) => ({
7024
7020
  toggle: p(
7025
- kf(),
7026
- If({ mode: e, noBorder: a }),
7027
- xf({ focusMode: t }),
7028
- _f(),
7029
- Tf()
7021
+ wf(),
7022
+ _f({ mode: e, noBorder: a }),
7023
+ kf({ focusMode: t }),
7024
+ Tf(),
7025
+ xf()
7030
7026
  ),
7031
- label: Ef({ mode: e, labelHidden: r }),
7027
+ label: If({ mode: e, labelHidden: r }),
7032
7028
  input: "peer sr-only",
7033
- wrapper: Cf({ className: n })
7029
+ wrapper: Ef({ className: n })
7034
7030
  }), Gt = ({
7035
7031
  checked: e = !1,
7036
7032
  onChange: t,
@@ -7042,7 +7038,7 @@ const wf = "av-toggle", kf = () => p("peer", "h-6", "w-11", "rounded-full"), xf
7042
7038
  className: i,
7043
7039
  noBorder: l = !1
7044
7040
  }) => {
7045
- const d = Nf({
7041
+ const d = Cf({
7046
7042
  mode: s,
7047
7043
  focusMode: o,
7048
7044
  labelHidden: n,
@@ -7065,7 +7061,7 @@ const wf = "av-toggle", kf = () => p("peer", "h-6", "w-11", "rounded-full"), xf
7065
7061
  /* @__PURE__ */ c("div", { className: d.toggle }),
7066
7062
  /* @__PURE__ */ c("span", { className: d.label, children: r })
7067
7063
  ] });
7068
- }, Sf = ({
7064
+ }, Nf = ({
7069
7065
  open: e,
7070
7066
  onOpenChange: t
7071
7067
  }) => {
@@ -7357,7 +7353,7 @@ const wf = "av-toggle", kf = () => p("peer", "h-6", "w-11", "rounded-full"), xf
7357
7353
  ] })
7358
7354
  }
7359
7355
  );
7360
- }, Af = ({
7356
+ }, Sf = ({
7361
7357
  isComponent: e = !1
7362
7358
  }) => {
7363
7359
  const { logout: t } = de(), [r, n] = $(!1), [a, s] = $(!1), [o, i] = $(!1), [l, d] = $(!1), [u, h] = $(!1);
@@ -7376,12 +7372,12 @@ const wf = "av-toggle", kf = () => p("peer", "h-6", "w-11", "rounded-full"), xf
7376
7372
  children: /* @__PURE__ */ c("p", { children: "Are you sure you want to log out?" })
7377
7373
  }
7378
7374
  ),
7379
- /* @__PURE__ */ c(Xh, { open: r, onOpenChange: n }),
7380
- /* @__PURE__ */ c(Sf, { open: a, onOpenChange: s }),
7381
- o && /* @__PURE__ */ c(Jh, { open: o, onOpenChange: i }),
7382
- /* @__PURE__ */ c(Gh, { open: l, onOpenChange: d }),
7375
+ /* @__PURE__ */ c(qh, { open: r, onOpenChange: n }),
7376
+ /* @__PURE__ */ c(Nf, { open: a, onOpenChange: s }),
7377
+ o && /* @__PURE__ */ c(Yh, { open: o, onOpenChange: i }),
7378
+ /* @__PURE__ */ c(Kh, { open: l, onOpenChange: d }),
7383
7379
  /* @__PURE__ */ c("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ C(ir, { alignHorizontal: "space-between", alignVertical: "center", children: [
7384
- /* @__PURE__ */ c(Oe, { children: /* @__PURE__ */ c(Oh, {}) }),
7380
+ /* @__PURE__ */ c(Oe, { children: /* @__PURE__ */ c(Bh, {}) }),
7385
7381
  /* @__PURE__ */ c(Oe, { children: /* @__PURE__ */ c(
7386
7382
  Ge,
7387
7383
  {
@@ -7437,7 +7433,7 @@ const wf = "av-toggle", kf = () => p("peer", "h-6", "w-11", "rounded-full"), xf
7437
7433
  }
7438
7434
  ),
7439
7435
  !e && /* @__PURE__ */ C(ae, { children: [
7440
- /* @__PURE__ */ c(Ah, {}),
7436
+ /* @__PURE__ */ c(Sh, {}),
7441
7437
  /* @__PURE__ */ c(
7442
7438
  Se,
7443
7439
  {
@@ -7470,7 +7466,7 @@ try {
7470
7466
  });
7471
7467
  } catch {
7472
7468
  }
7473
- const Rf = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link", Mf = ({
7469
+ const Af = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link", Rf = ({
7474
7470
  type: e,
7475
7471
  size: t,
7476
7472
  labelRight: r,
@@ -7506,7 +7502,7 @@ const Rf = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
7506
7502
  "h-12": t === "large" && s && (r || n)
7507
7503
  });
7508
7504
  }
7509
- }, Vf = ({
7505
+ }, Mf = ({
7510
7506
  type: e,
7511
7507
  size: t,
7512
7508
  labelRight: r,
@@ -7529,7 +7525,7 @@ const Rf = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
7529
7525
  [o]: t === "large" && (r || n)
7530
7526
  });
7531
7527
  }
7532
- }, Pf = ({
7528
+ }, Vf = ({
7533
7529
  mode: e,
7534
7530
  noBackground: t,
7535
7531
  noTruncate: r,
@@ -7565,7 +7561,7 @@ const Rf = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
7565
7561
  return p("not-prose text-copy-lighter", {
7566
7562
  truncate: !r
7567
7563
  });
7568
- }, Bf = ({
7564
+ }, Pf = ({
7569
7565
  mode: e,
7570
7566
  noBackground: t,
7571
7567
  variant: r
@@ -7595,13 +7591,13 @@ const Rf = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
7595
7591
  if (r === "selected")
7596
7592
  return "bg-action-selected-dark";
7597
7593
  }
7598
- }, Of = ({
7594
+ }, Bf = ({
7599
7595
  radius: e
7600
7596
  }) => p({
7601
7597
  "rounded-full": e === "large",
7602
7598
  "rounded-md": e === "medium",
7603
7599
  "rounded-sm": e === "small"
7604
- }), Lf = ({
7600
+ }), Of = ({
7605
7601
  mode: e,
7606
7602
  disabled: t,
7607
7603
  variant: r
@@ -7631,7 +7627,7 @@ const Rf = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
7631
7627
  });
7632
7628
  if (r === "selected")
7633
7629
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
7634
- }, $f = ({
7630
+ }, Lf = ({
7635
7631
  mode: e,
7636
7632
  disabled: t,
7637
7633
  variant: r
@@ -7661,7 +7657,7 @@ const Rf = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
7661
7657
  });
7662
7658
  if (r === "selected")
7663
7659
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
7664
- }, Df = ({
7660
+ }, $f = ({
7665
7661
  mode: e,
7666
7662
  noBorder: t,
7667
7663
  variant: r
@@ -7691,14 +7687,14 @@ const Rf = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
7691
7687
  });
7692
7688
  if (r === "selected")
7693
7689
  return "border border-border-selected-dark";
7694
- }, Ff = ({
7690
+ }, Df = ({
7695
7691
  focusMode: e
7696
7692
  }) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
7697
7693
  "focus:outline-focus-dark": e === "dark",
7698
7694
  "focus:outline-focus-light": e === "light",
7699
7695
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
7700
7696
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
7701
- }), zf = ({
7697
+ }), Ff = ({
7702
7698
  mode: e,
7703
7699
  raw: t,
7704
7700
  iconClassName: r
@@ -7710,11 +7706,11 @@ const Rf = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
7710
7706
  "dark:text-copy-accent-dark": e === "system"
7711
7707
  },
7712
7708
  r
7713
- ), Uf = ({
7709
+ ), zf = ({
7714
7710
  animated: e
7715
7711
  }) => p({
7716
7712
  "transition-opacity duration-300 ease-in": e
7717
- }), Hf = ({
7713
+ }), Uf = ({
7718
7714
  type: e,
7719
7715
  className: t,
7720
7716
  raw: r,
@@ -7734,15 +7730,15 @@ const Rf = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
7734
7730
  animated: v
7735
7731
  }) => (f || (f = "primary"), r ? p(Ya, t) : p(
7736
7732
  Ya,
7737
- Pf({
7733
+ Vf({
7738
7734
  mode: n,
7739
7735
  variant: f,
7740
7736
  noBackground: h,
7741
7737
  noTruncate: m
7742
7738
  }),
7743
- Bf({ mode: n, noBackground: h, variant: f }),
7744
- Of({ radius: y }),
7745
- Mf({
7739
+ Pf({ mode: n, noBackground: h, variant: f }),
7740
+ Bf({ radius: y }),
7741
+ Rf({
7746
7742
  type: e,
7747
7743
  size: i,
7748
7744
  labelRight: d,
@@ -7750,11 +7746,11 @@ const Rf = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
7750
7746
  align: g,
7751
7747
  animated: v
7752
7748
  }),
7753
- Vf({ type: e, size: i, labelRight: d, labelLeft: u }),
7754
- Df({ mode: n, variant: f, noBorder: l }),
7755
- Ff({ focusMode: a }),
7749
+ Mf({ type: e, size: i, labelRight: d, labelLeft: u }),
7750
+ $f({ mode: n, variant: f, noBorder: l }),
7751
+ Df({ focusMode: a }),
7752
+ Of({ mode: n, variant: f, disabled: s }),
7756
7753
  Lf({ mode: n, variant: f, disabled: s }),
7757
- $f({ mode: n, variant: f, disabled: s }),
7758
7754
  {
7759
7755
  "w-full": o,
7760
7756
  "disabled:cursor-not-allowed disabled:opacity-50": s
@@ -7763,7 +7759,7 @@ const Rf = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
7763
7759
  "transition-[width] duration-300 ease-in-out": e === br && v
7764
7760
  }),
7765
7761
  t
7766
- )), jf = (e, t, r) => {
7762
+ )), Hf = (e, t, r) => {
7767
7763
  var n;
7768
7764
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
7769
7765
  }, Fo = Y.forwardRef((e, t) => {
@@ -7773,20 +7769,20 @@ const Rf = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
7773
7769
  {
7774
7770
  ref: t,
7775
7771
  onClick: (s) => {
7776
- jf(s, n, r);
7772
+ Hf(s, n, r);
7777
7773
  },
7778
7774
  ...a
7779
7775
  }
7780
7776
  );
7781
7777
  });
7782
7778
  Fo.displayName = "BaseButton";
7783
- function Wf() {
7779
+ function jf() {
7784
7780
  const e = M(!1);
7785
7781
  return L(() => (e.current = !0, () => {
7786
7782
  e.current = !1;
7787
7783
  }), []), K(() => e.current, []);
7788
7784
  }
7789
- function Kf(e) {
7785
+ function Wf(e) {
7790
7786
  return ye(() => e.every((t) => t == null) ? () => {
7791
7787
  } : (t) => {
7792
7788
  e.forEach((r) => {
@@ -7794,7 +7790,7 @@ function Kf(e) {
7794
7790
  });
7795
7791
  }, e);
7796
7792
  }
7797
- const Gf = {
7793
+ const Kf = {
7798
7794
  x: 0,
7799
7795
  y: 0,
7800
7796
  width: 0,
@@ -7805,7 +7801,7 @@ const Gf = {
7805
7801
  right: 0
7806
7802
  };
7807
7803
  function Vr(e) {
7808
- const t = Wf(), r = M(0), n = M(null), [a, s] = $(Gf), o = ye(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
7804
+ const t = jf(), r = M(0), n = M(null), [a, s] = $(Kf), o = ye(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
7809
7805
  const l = i[0];
7810
7806
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
7811
7807
  n.current && t() && s(l.contentRect);
@@ -7815,21 +7811,21 @@ function Vr(e) {
7815
7811
  o == null || o.disconnect(), r.current && cancelAnimationFrame(r.current);
7816
7812
  }), [o, e]), [n, a];
7817
7813
  }
7818
- const Yf = {
7814
+ const Gf = {
7819
7815
  small: 24,
7820
7816
  // w-6
7821
7817
  medium: 32,
7822
7818
  // w-8
7823
7819
  large: 48
7824
7820
  // w-12
7825
- }, Jf = {
7821
+ }, Yf = {
7826
7822
  small: 8 * 2,
7827
7823
  // px-2 x 2
7828
7824
  medium: 12 * 2,
7829
7825
  // px-3 x 2
7830
7826
  large: 16 * 2
7831
7827
  // px-4 x 2
7832
- }, qf = 2, Rn = Y.forwardRef(
7828
+ }, Jf = 2, Rn = Y.forwardRef(
7833
7829
  ({
7834
7830
  children: e,
7835
7831
  disabled: t = !1,
@@ -7853,7 +7849,7 @@ const Yf = {
7853
7849
  animated: E = !1,
7854
7850
  ...N
7855
7851
  }, b) => {
7856
- const x = Hf({
7852
+ const x = Uf({
7857
7853
  type: br,
7858
7854
  mode: r,
7859
7855
  focusMode: n,
@@ -7870,11 +7866,11 @@ const Yf = {
7870
7866
  radius: v,
7871
7867
  variant: k,
7872
7868
  animated: E
7873
- }), _ = zf({ mode: r, raw: i, iconClassName: T }), w = Uf({ animated: E }), [I, R] = Vr(), [S, B] = Vr(), [A, V] = Vr(), z = M(0), P = M(null), D = Kf([b, P]);
7869
+ }), _ = Ff({ mode: r, raw: i, iconClassName: T }), w = zf({ animated: E }), [I, R] = Vr(), [S, B] = Vr(), [A, V] = Vr(), z = M(0), P = M(null), D = Wf([b, P]);
7874
7870
  return le(() => {
7875
- A && A.current && E && (z.current = V.width + Jf[h] + (l ? 0 : qf));
7871
+ A && A.current && E && (z.current = V.width + Yf[h] + (l ? 0 : Jf));
7876
7872
  }, [V, A, h, l, E]), le(() => {
7877
- P && P.current && E && (f && I && R.width > 0 ? (I.current && (I.current.style.opacity = "100"), P.current.style.width = `${R.width + z.current}px`) : m && B.width > 0 ? (S.current && (S.current.style.opacity = "100"), P.current.style.width = `${B.width + z.current}px`) : (I.current && (I.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), P.current.style.width = `${Yf[h]}px`));
7873
+ P && P.current && E && (f && I && R.width > 0 ? (I.current && (I.current.style.opacity = "100"), P.current.style.width = `${R.width + z.current}px`) : m && B.width > 0 ? (S.current && (S.current.style.opacity = "100"), P.current.style.width = `${B.width + z.current}px`) : (I.current && (I.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), P.current.style.width = `${Gf[h]}px`));
7878
7874
  }, [
7879
7875
  R,
7880
7876
  f,
@@ -7937,7 +7933,7 @@ try {
7937
7933
  });
7938
7934
  } catch {
7939
7935
  }
7940
- const Xf = Y.forwardRef(
7936
+ const qf = Y.forwardRef(
7941
7937
  ({
7942
7938
  children: e,
7943
7939
  mode: t = "system",
@@ -7975,7 +7971,7 @@ const Xf = Y.forwardRef(
7975
7971
  ) });
7976
7972
  }
7977
7973
  );
7978
- Xf.displayName = "ButtonSort";
7974
+ qf.displayName = "ButtonSort";
7979
7975
  const zo = ({
7980
7976
  children: e,
7981
7977
  fill: t,
@@ -8019,7 +8015,7 @@ try {
8019
8015
  });
8020
8016
  } catch {
8021
8017
  }
8022
- const Zf = ({
8018
+ const Xf = ({
8023
8019
  className: e,
8024
8020
  viewBox: t,
8025
8021
  title: r,
@@ -8045,7 +8041,7 @@ const Zf = ({
8045
8041
  /* @__PURE__ */ c("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
8046
8042
  ]
8047
8043
  }
8048
- ), Qf = ({
8044
+ ), Zf = ({
8049
8045
  className: e,
8050
8046
  viewBox: t,
8051
8047
  title: r,
@@ -8076,30 +8072,30 @@ try {
8076
8072
  });
8077
8073
  } catch {
8078
8074
  }
8079
- const em = ({
8075
+ const Qf = ({
8080
8076
  kind: e,
8081
8077
  noMaxWidth: t
8082
8078
  }) => p("p-4", {
8083
8079
  "max-w-xs sm:max-w-md md:max-w-2xl": !t,
8084
8080
  "lg:max-w-3xl": e === "left" && !t
8085
- }), tm = ({ kind: e }) => p({
8081
+ }), em = ({ kind: e }) => p({
8086
8082
  "bg-surface-lighter dark:bg-surface-dark": e === "left",
8087
8083
  "bg-surface-accent": e === "right"
8088
- }), rm = ({ kind: e }) => p(
8084
+ }), tm = ({ kind: e }) => p(
8089
8085
  "prose prose-dark dark:prose-lighter prose-p:my-3 prose-blockquote:my-3 prose-ol:my-3 prose-ul:my-3 prose-ul:prose-li:marker:text-black",
8090
8086
  {
8091
8087
  "text-copy-lighter": e === "right"
8092
8088
  }
8093
- ), nm = ({ kind: e }) => p("rounded-b-xl", {
8089
+ ), rm = ({ kind: e }) => p("rounded-b-xl", {
8094
8090
  "rounded-tr-xl": e === "left",
8095
8091
  "rounded-tl-xl": e === "right"
8096
- }), am = ({
8092
+ }), nm = ({
8097
8093
  kind: e,
8098
8094
  className: t,
8099
8095
  noMaxWidth: r
8100
8096
  }) => {
8101
8097
  const n = p(
8102
- Rf,
8098
+ Af,
8103
8099
  "flex items-start",
8104
8100
  {
8105
8101
  "flex-row-reverse": e === "right"
@@ -8107,10 +8103,10 @@ const em = ({
8107
8103
  t
8108
8104
  ), a = p(
8109
8105
  "flex flex-col empty:hidden",
8110
- em({ kind: e, noMaxWidth: r }),
8111
- rm({ kind: e }),
8106
+ Qf({ kind: e, noMaxWidth: r }),
8112
8107
  tm({ kind: e }),
8113
- nm({ kind: e })
8108
+ em({ kind: e }),
8109
+ rm({ kind: e })
8114
8110
  ), s = "pr-2 pt-1 text-end text-xs text-copy-light", o = p("flex flex-col-reverse gap-2 sm:flex-row", {
8115
8111
  "ml-2": e === "left",
8116
8112
  "mr-2": e === "right"
@@ -8132,7 +8128,7 @@ const em = ({
8132
8128
  copyToClipboardMode: i = "system",
8133
8129
  noMaxWidth: l = !1
8134
8130
  }) => {
8135
- const [d, u] = $(!1), h = am({ kind: t, className: r, noMaxWidth: l }), f = !!s && (typeof s == "function" || typeof s == "string" || typeof e == "string"), m = () => {
8131
+ const [d, u] = $(!1), h = nm({ kind: t, className: r, noMaxWidth: l }), f = !!s && (typeof s == "function" || typeof s == "string" || typeof e == "string"), m = () => {
8136
8132
  u(!0), typeof s == "function" ? s(e) : typeof s == "string" ? navigator.clipboard.writeText(s) : typeof e == "string" && navigator.clipboard.writeText(e);
8137
8133
  };
8138
8134
  return L(() => {
@@ -8163,7 +8159,7 @@ const em = ({
8163
8159
  label: d ? "Copied to clipboard" : "Copy to clipboard",
8164
8160
  onClick: m,
8165
8161
  disabled: d,
8166
- children: d ? /* @__PURE__ */ c(Zf, { size: "size-3" }) : /* @__PURE__ */ c(Qf, { size: "size-3" })
8162
+ children: d ? /* @__PURE__ */ c(Xf, { size: "size-3" }) : /* @__PURE__ */ c(Zf, { size: "size-3" })
8167
8163
  }
8168
8164
  ) })
8169
8165
  ] });
@@ -8214,7 +8210,7 @@ const qa = "av-spinner", Xa = ({
8214
8210
  ] }),
8215
8211
  /* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
8216
8212
  ] });
8217
- }, Za = "av-button", vr = "icon", Mn = "button", rn = "link", sm = ({
8213
+ }, Za = "av-button", vr = "icon", Mn = "button", rn = "link", am = ({
8218
8214
  type: e,
8219
8215
  size: t,
8220
8216
  labelRight: r,
@@ -8250,7 +8246,7 @@ const qa = "av-spinner", Xa = ({
8250
8246
  "h-12": t === "large" && s && (r || n)
8251
8247
  });
8252
8248
  }
8253
- }, om = ({
8249
+ }, sm = ({
8254
8250
  type: e,
8255
8251
  size: t,
8256
8252
  labelRight: r,
@@ -8273,7 +8269,7 @@ const qa = "av-spinner", Xa = ({
8273
8269
  [o]: t === "large" && (r || n)
8274
8270
  });
8275
8271
  }
8276
- }, im = ({
8272
+ }, om = ({
8277
8273
  mode: e,
8278
8274
  noBackground: t,
8279
8275
  noTruncate: r,
@@ -8309,7 +8305,7 @@ const qa = "av-spinner", Xa = ({
8309
8305
  return p("not-prose text-copy-lighter", {
8310
8306
  truncate: !r
8311
8307
  });
8312
- }, lm = ({
8308
+ }, im = ({
8313
8309
  mode: e,
8314
8310
  noBackground: t,
8315
8311
  variant: r
@@ -8339,13 +8335,13 @@ const qa = "av-spinner", Xa = ({
8339
8335
  if (r === "selected")
8340
8336
  return "bg-action-selected-dark";
8341
8337
  }
8342
- }, cm = ({
8338
+ }, lm = ({
8343
8339
  radius: e
8344
8340
  }) => p({
8345
8341
  "rounded-full": e === "large",
8346
8342
  "rounded-md": e === "medium",
8347
8343
  "rounded-sm": e === "small"
8348
- }), dm = ({
8344
+ }), cm = ({
8349
8345
  mode: e,
8350
8346
  disabled: t,
8351
8347
  variant: r
@@ -8375,7 +8371,7 @@ const qa = "av-spinner", Xa = ({
8375
8371
  });
8376
8372
  if (r === "selected")
8377
8373
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
8378
- }, um = ({
8374
+ }, dm = ({
8379
8375
  mode: e,
8380
8376
  disabled: t,
8381
8377
  variant: r
@@ -8405,7 +8401,7 @@ const qa = "av-spinner", Xa = ({
8405
8401
  });
8406
8402
  if (r === "selected")
8407
8403
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
8408
- }, hm = ({
8404
+ }, um = ({
8409
8405
  mode: e,
8410
8406
  noBorder: t,
8411
8407
  variant: r
@@ -8435,14 +8431,14 @@ const qa = "av-spinner", Xa = ({
8435
8431
  });
8436
8432
  if (r === "selected")
8437
8433
  return "border border-border-selected-dark";
8438
- }, fm = ({
8434
+ }, hm = ({
8439
8435
  focusMode: e
8440
8436
  }) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
8441
8437
  "focus:outline-focus-dark": e === "dark",
8442
8438
  "focus:outline-focus-light": e === "light",
8443
8439
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
8444
8440
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
8445
- }), mm = ({
8441
+ }), fm = ({
8446
8442
  mode: e,
8447
8443
  raw: t,
8448
8444
  iconClassName: r
@@ -8454,7 +8450,7 @@ const qa = "av-spinner", Xa = ({
8454
8450
  "dark:text-copy-accent-dark": e === "system"
8455
8451
  },
8456
8452
  r
8457
- ), pm = ({
8453
+ ), mm = ({
8458
8454
  animated: e
8459
8455
  }) => p({
8460
8456
  "transition-opacity duration-300 ease-in": e
@@ -8478,15 +8474,15 @@ const qa = "av-spinner", Xa = ({
8478
8474
  animated: v
8479
8475
  }) => (f || (f = "primary"), r ? p(Za, t) : p(
8480
8476
  Za,
8481
- im({
8477
+ om({
8482
8478
  mode: n,
8483
8479
  variant: f,
8484
8480
  noBackground: h,
8485
8481
  noTruncate: m
8486
8482
  }),
8487
- lm({ mode: n, noBackground: h, variant: f }),
8488
- cm({ radius: y }),
8489
- sm({
8483
+ im({ mode: n, noBackground: h, variant: f }),
8484
+ lm({ radius: y }),
8485
+ am({
8490
8486
  type: e,
8491
8487
  size: i,
8492
8488
  labelRight: d,
@@ -8494,11 +8490,11 @@ const qa = "av-spinner", Xa = ({
8494
8490
  align: g,
8495
8491
  animated: v
8496
8492
  }),
8497
- om({ type: e, size: i, labelRight: d, labelLeft: u }),
8498
- hm({ mode: n, variant: f, noBorder: l }),
8499
- fm({ focusMode: a }),
8493
+ sm({ type: e, size: i, labelRight: d, labelLeft: u }),
8494
+ um({ mode: n, variant: f, noBorder: l }),
8495
+ hm({ focusMode: a }),
8496
+ cm({ mode: n, variant: f, disabled: s }),
8500
8497
  dm({ mode: n, variant: f, disabled: s }),
8501
- um({ mode: n, variant: f, disabled: s }),
8502
8498
  {
8503
8499
  "w-full": o,
8504
8500
  "disabled:cursor-not-allowed disabled:opacity-50": s
@@ -8507,7 +8503,7 @@ const qa = "av-spinner", Xa = ({
8507
8503
  "transition-[width] duration-300 ease-in-out": e === vr && v
8508
8504
  }),
8509
8505
  t
8510
- )), gm = (e, t, r) => {
8506
+ )), pm = (e, t, r) => {
8511
8507
  var n;
8512
8508
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
8513
8509
  }, Vn = Y.forwardRef((e, t) => {
@@ -8517,7 +8513,7 @@ const qa = "av-spinner", Xa = ({
8517
8513
  {
8518
8514
  ref: t,
8519
8515
  onClick: (s) => {
8520
- gm(s, n, r);
8516
+ pm(s, n, r);
8521
8517
  },
8522
8518
  ...a
8523
8519
  }
@@ -8567,13 +8563,13 @@ const Ho = Y.forwardRef(
8567
8563
  }
8568
8564
  );
8569
8565
  Ho.displayName = "Button";
8570
- function ym() {
8566
+ function gm() {
8571
8567
  const e = M(!1);
8572
8568
  return L(() => (e.current = !0, () => {
8573
8569
  e.current = !1;
8574
8570
  }), []), K(() => e.current, []);
8575
8571
  }
8576
- function bm(e) {
8572
+ function ym(e) {
8577
8573
  return ye(() => e.every((t) => t == null) ? () => {
8578
8574
  } : (t) => {
8579
8575
  e.forEach((r) => {
@@ -8581,7 +8577,7 @@ function bm(e) {
8581
8577
  });
8582
8578
  }, e);
8583
8579
  }
8584
- const vm = {
8580
+ const bm = {
8585
8581
  x: 0,
8586
8582
  y: 0,
8587
8583
  width: 0,
@@ -8592,7 +8588,7 @@ const vm = {
8592
8588
  right: 0
8593
8589
  };
8594
8590
  function Pr(e) {
8595
- const t = ym(), r = M(0), n = M(null), [a, s] = $(vm), o = ye(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
8591
+ const t = gm(), r = M(0), n = M(null), [a, s] = $(bm), o = ye(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
8596
8592
  const l = i[0];
8597
8593
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
8598
8594
  n.current && t() && s(l.contentRect);
@@ -8602,21 +8598,21 @@ function Pr(e) {
8602
8598
  o == null || o.disconnect(), r.current && cancelAnimationFrame(r.current);
8603
8599
  }), [o, e]), [n, a];
8604
8600
  }
8605
- const wm = {
8601
+ const vm = {
8606
8602
  small: 24,
8607
8603
  // w-6
8608
8604
  medium: 32,
8609
8605
  // w-8
8610
8606
  large: 48
8611
8607
  // w-12
8612
- }, km = {
8608
+ }, wm = {
8613
8609
  small: 8 * 2,
8614
8610
  // px-2 x 2
8615
8611
  medium: 12 * 2,
8616
8612
  // px-3 x 2
8617
8613
  large: 16 * 2
8618
8614
  // px-4 x 2
8619
- }, xm = 2, jo = Y.forwardRef(
8615
+ }, km = 2, jo = Y.forwardRef(
8620
8616
  ({
8621
8617
  children: e,
8622
8618
  disabled: t = !1,
@@ -8657,11 +8653,11 @@ const wm = {
8657
8653
  radius: v,
8658
8654
  variant: k,
8659
8655
  animated: E
8660
- }), _ = mm({ mode: r, raw: i, iconClassName: T }), w = pm({ animated: E }), [I, R] = Pr(), [S, B] = Pr(), [A, V] = Pr(), z = M(0), P = M(null), D = bm([b, P]);
8656
+ }), _ = fm({ mode: r, raw: i, iconClassName: T }), w = mm({ animated: E }), [I, R] = Pr(), [S, B] = Pr(), [A, V] = Pr(), z = M(0), P = M(null), D = ym([b, P]);
8661
8657
  return le(() => {
8662
- A && A.current && E && (z.current = V.width + km[h] + (l ? 0 : xm));
8658
+ A && A.current && E && (z.current = V.width + wm[h] + (l ? 0 : km));
8663
8659
  }, [V, A, h, l, E]), le(() => {
8664
- P && P.current && E && (f && I && R.width > 0 ? (I.current && (I.current.style.opacity = "100"), P.current.style.width = `${R.width + z.current}px`) : m && B.width > 0 ? (S.current && (S.current.style.opacity = "100"), P.current.style.width = `${B.width + z.current}px`) : (I.current && (I.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), P.current.style.width = `${wm[h]}px`));
8660
+ P && P.current && E && (f && I && R.width > 0 ? (I.current && (I.current.style.opacity = "100"), P.current.style.width = `${R.width + z.current}px`) : m && B.width > 0 ? (S.current && (S.current.style.opacity = "100"), P.current.style.width = `${B.width + z.current}px`) : (I.current && (I.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), P.current.style.width = `${vm[h]}px`));
8665
8661
  }, [
8666
8662
  R,
8667
8663
  f,
@@ -8724,7 +8720,7 @@ try {
8724
8720
  });
8725
8721
  } catch {
8726
8722
  }
8727
- const Tm = Y.forwardRef(
8723
+ const xm = Y.forwardRef(
8728
8724
  ({
8729
8725
  children: e,
8730
8726
  mode: t = "system",
@@ -8762,10 +8758,10 @@ const Tm = Y.forwardRef(
8762
8758
  ) });
8763
8759
  }
8764
8760
  );
8765
- Tm.displayName = "ButtonSort";
8766
- const _m = 200, Im = ({
8761
+ xm.displayName = "ButtonSort";
8762
+ const Tm = 200, _m = ({
8767
8763
  string: e,
8768
- idealLength: t = _m
8764
+ idealLength: t = Tm
8769
8765
  }) => {
8770
8766
  if (e.length <= t)
8771
8767
  return { string: e, isTruncated: !1 };
@@ -8776,7 +8772,7 @@ const _m = 200, Im = ({
8776
8772
  string: e.slice(0, t + r),
8777
8773
  isTruncated: !0
8778
8774
  };
8779
- }, Em = ({
8775
+ }, Im = ({
8780
8776
  children: e,
8781
8777
  length: t = 200,
8782
8778
  mode: r = "system",
@@ -8785,7 +8781,7 @@ const _m = 200, Im = ({
8785
8781
  const [a, s] = $(!1);
8786
8782
  if (typeof e != "string")
8787
8783
  return e;
8788
- const { string: o, isTruncated: i } = Im({
8784
+ const { string: o, isTruncated: i } = _m({
8789
8785
  string: e,
8790
8786
  idealLength: t
8791
8787
  });
@@ -8819,17 +8815,17 @@ try {
8819
8815
  });
8820
8816
  } catch {
8821
8817
  }
8822
- const Cm = ({ content: e }) => /* @__PURE__ */ c(
8818
+ const Em = ({ content: e }) => /* @__PURE__ */ c(
8823
8819
  tn,
8824
8820
  {
8825
8821
  kind: "right",
8826
8822
  copyToClipboard: e,
8827
8823
  copyToClipboardFocusMode: "light",
8828
8824
  className: "mt-3",
8829
- children: /* @__PURE__ */ c(Em, { mode: "light", focusMode: "light", children: e })
8825
+ children: /* @__PURE__ */ c(Im, { mode: "light", focusMode: "light", children: e })
8830
8826
  }
8831
8827
  );
8832
- function Nm(e, t, r) {
8828
+ function Cm(e, t, r) {
8833
8829
  var n;
8834
8830
  if (e instanceof EventTarget)
8835
8831
  return [e];
@@ -8857,8 +8853,8 @@ function Pn(e) {
8857
8853
  let t;
8858
8854
  return () => (t === void 0 && (t = e()), t);
8859
8855
  }
8860
- const Sm = /* @__PURE__ */ Pn(() => window.ScrollTimeline !== void 0);
8861
- class Am {
8856
+ const Nm = /* @__PURE__ */ Pn(() => window.ScrollTimeline !== void 0);
8857
+ class Sm {
8862
8858
  constructor(t) {
8863
8859
  this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
8864
8860
  }
@@ -8877,7 +8873,7 @@ class Am {
8877
8873
  }
8878
8874
  attachTimeline(t, r) {
8879
8875
  const n = this.animations.map((a) => {
8880
- if (Sm() && a.attachTimeline)
8876
+ if (Nm() && a.attachTimeline)
8881
8877
  return a.attachTimeline(t);
8882
8878
  if (typeof r == "function")
8883
8879
  return r(a);
@@ -8928,7 +8924,7 @@ class Am {
8928
8924
  this.runAll("complete");
8929
8925
  }
8930
8926
  }
8931
- class Wo extends Am {
8927
+ class Wo extends Sm {
8932
8928
  then(t, r) {
8933
8929
  return Promise.all(this.animations).then(t).catch(r);
8934
8930
  }
@@ -8952,9 +8948,9 @@ const Ko = (e, t, r = 10) => {
8952
8948
  function Go(e, t) {
8953
8949
  return t ? e * (1e3 / t) : 0;
8954
8950
  }
8955
- const Rm = 5;
8951
+ const Am = 5;
8956
8952
  function Yo(e, t, r) {
8957
- const n = Math.max(t - Rm, 0);
8953
+ const n = Math.max(t - Am, 0);
8958
8954
  return Go(r - e(n), t - n);
8959
8955
  }
8960
8956
  const G = {
@@ -8986,7 +8982,7 @@ const G = {
8986
8982
  minDamping: 0.05,
8987
8983
  maxDamping: 1
8988
8984
  }, es = 1e-3;
8989
- function Mm({ duration: e = G.duration, bounce: t = G.bounce, velocity: r = G.velocity, mass: n = G.mass }) {
8985
+ function Rm({ duration: e = G.duration, bounce: t = G.bounce, velocity: r = G.velocity, mass: n = G.mass }) {
8990
8986
  let a, s;
8991
8987
  $t(e <= /* @__PURE__ */ xe(G.maxDuration), "Spring duration must be 10 seconds or less");
8992
8988
  let o = 1 - t;
@@ -9003,7 +8999,7 @@ function Mm({ duration: e = G.duration, bounce: t = G.bounce, velocity: r = G.ve
9003
8999
  const u = Math.exp(-d * e), h = (r - d) * (e * e);
9004
9000
  return u * h;
9005
9001
  });
9006
- const i = 5 / e, l = Pm(a, s, i);
9002
+ const i = 5 / e, l = Vm(a, s, i);
9007
9003
  if (e = /* @__PURE__ */ xe(e), isNaN(l))
9008
9004
  return {
9009
9005
  stiffness: G.stiffness,
@@ -9019,21 +9015,21 @@ function Mm({ duration: e = G.duration, bounce: t = G.bounce, velocity: r = G.ve
9019
9015
  };
9020
9016
  }
9021
9017
  }
9022
- const Vm = 12;
9023
- function Pm(e, t, r) {
9018
+ const Mm = 12;
9019
+ function Vm(e, t, r) {
9024
9020
  let n = r;
9025
- for (let a = 1; a < Vm; a++)
9021
+ for (let a = 1; a < Mm; a++)
9026
9022
  n = n - e(n) / t(n);
9027
9023
  return n;
9028
9024
  }
9029
9025
  function nn(e, t) {
9030
9026
  return e * Math.sqrt(1 - t * t);
9031
9027
  }
9032
- const Bm = ["duration", "bounce"], Om = ["stiffness", "damping", "mass"];
9028
+ const Pm = ["duration", "bounce"], Bm = ["stiffness", "damping", "mass"];
9033
9029
  function ts(e, t) {
9034
9030
  return t.some((r) => e[r] !== void 0);
9035
9031
  }
9036
- function Lm(e) {
9032
+ function Om(e) {
9037
9033
  let t = {
9038
9034
  velocity: G.velocity,
9039
9035
  stiffness: G.stiffness,
@@ -9042,7 +9038,7 @@ function Lm(e) {
9042
9038
  isResolvedFromDuration: !1,
9043
9039
  ...e
9044
9040
  };
9045
- if (!ts(e, Om) && ts(e, Bm))
9041
+ if (!ts(e, Bm) && ts(e, Pm))
9046
9042
  if (e.visualDuration) {
9047
9043
  const r = e.visualDuration, n = 2 * Math.PI / (r * 1.2), a = n * n, s = 2 * Ke(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(a);
9048
9044
  t = {
@@ -9052,7 +9048,7 @@ function Lm(e) {
9052
9048
  damping: s
9053
9049
  };
9054
9050
  } else {
9055
- const r = Mm(e);
9051
+ const r = Rm(e);
9056
9052
  t = {
9057
9053
  ...t,
9058
9054
  ...r,
@@ -9068,7 +9064,7 @@ function On(e = G.visualDuration, t = G.bounce) {
9068
9064
  bounce: t
9069
9065
  } : e;
9070
9066
  let { restSpeed: n, restDelta: a } = r;
9071
- const s = r.keyframes[0], o = r.keyframes[r.keyframes.length - 1], i = { done: !1, value: s }, { stiffness: l, damping: d, mass: u, duration: h, velocity: f, isResolvedFromDuration: m } = Lm({
9067
+ const s = r.keyframes[0], o = r.keyframes[r.keyframes.length - 1], i = { done: !1, value: s }, { stiffness: l, damping: d, mass: u, duration: h, velocity: f, isResolvedFromDuration: m } = Om({
9072
9068
  ...r,
9073
9069
  velocity: -/* @__PURE__ */ Ae(r.velocity || 0)
9074
9070
  }), g = f || 0, y = d / (2 * Math.sqrt(l * u)), v = o - s, k = /* @__PURE__ */ Ae(Math.sqrt(l / u)), T = Math.abs(v) < 5;
@@ -9110,7 +9106,7 @@ function On(e = G.visualDuration, t = G.bounce) {
9110
9106
  };
9111
9107
  return N;
9112
9108
  }
9113
- function $m(e, t = 100, r) {
9109
+ function Lm(e, t = 100, r) {
9114
9110
  const n = r({ ...e, keyframes: [0, t] }), a = Math.min(Bn(n), rr);
9115
9111
  return {
9116
9112
  type: "keyframes",
@@ -9121,12 +9117,12 @@ function $m(e, t = 100, r) {
9121
9117
  function kr(e) {
9122
9118
  return typeof e == "function";
9123
9119
  }
9124
- const Dm = (e, t, r) => {
9120
+ const $m = (e, t, r) => {
9125
9121
  const n = t - e;
9126
9122
  return ((r - e) % n + n) % n + e;
9127
9123
  }, Jo = (e) => Array.isArray(e) && typeof e[0] != "number";
9128
9124
  function qo(e, t) {
9129
- return Jo(e) ? e[Dm(0, e.length, t)] : e;
9125
+ return Jo(e) ? e[$m(0, e.length, t)] : e;
9130
9126
  }
9131
9127
  const Dt = (e, t, r) => e + (t - e) * r;
9132
9128
  function Xo(e, t) {
@@ -9145,30 +9141,30 @@ function Ln(e) {
9145
9141
  return typeof e == "object" && !Array.isArray(e);
9146
9142
  }
9147
9143
  function Qo(e, t, r, n) {
9148
- return typeof e == "string" && Ln(t) ? Nm(e, r, n) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e : [e];
9144
+ return typeof e == "string" && Ln(t) ? Cm(e, r, n) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e : [e];
9149
9145
  }
9150
- function Fm(e, t, r) {
9146
+ function Dm(e, t, r) {
9151
9147
  return e * (t + 1);
9152
9148
  }
9153
9149
  function rs(e, t, r, n) {
9154
9150
  var a;
9155
9151
  return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? r : (a = n.get(t)) !== null && a !== void 0 ? a : e;
9156
9152
  }
9157
- function zm(e, t) {
9153
+ function Fm(e, t) {
9158
9154
  e.indexOf(t) === -1 && e.push(t);
9159
9155
  }
9160
9156
  function ei(e, t) {
9161
9157
  const r = e.indexOf(t);
9162
9158
  r > -1 && e.splice(r, 1);
9163
9159
  }
9164
- function Um(e, t, r) {
9160
+ function zm(e, t, r) {
9165
9161
  for (let n = 0; n < e.length; n++) {
9166
9162
  const a = e[n];
9167
9163
  a.at > t && a.at < r && (ei(e, a), n--);
9168
9164
  }
9169
9165
  }
9170
- function Hm(e, t, r, n, a, s) {
9171
- Um(e, a, s);
9166
+ function Um(e, t, r, n, a, s) {
9167
+ zm(e, a, s);
9172
9168
  for (let o = 0; o < t.length; o++)
9173
9169
  e.push({
9174
9170
  value: t[o],
@@ -9176,15 +9172,15 @@ function Hm(e, t, r, n, a, s) {
9176
9172
  easing: qo(r, o)
9177
9173
  });
9178
9174
  }
9179
- function jm(e, t) {
9175
+ function Hm(e, t) {
9180
9176
  for (let r = 0; r < e.length; r++)
9181
9177
  e[r] = e[r] / (t + 1);
9182
9178
  }
9183
- function Wm(e, t) {
9179
+ function jm(e, t) {
9184
9180
  return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
9185
9181
  }
9186
- const Km = "easeInOut", Gm = 20;
9187
- function Ym(e, { defaultTransition: t = {}, ...r } = {}, n, a) {
9182
+ const Wm = "easeInOut", Km = 20;
9183
+ function Gm(e, { defaultTransition: t = {}, ...r } = {}, n, a) {
9188
9184
  const s = t.duration || 0.3, o = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), l = {}, d = /* @__PURE__ */ new Map();
9189
9185
  let u = 0, h = 0, f = 0;
9190
9186
  for (let m = 0; m < e.length; m++) {
@@ -9200,18 +9196,18 @@ function Ym(e, { defaultTransition: t = {}, ...r } = {}, n, a) {
9200
9196
  k.at !== void 0 && (h = rs(h, k.at, u, d));
9201
9197
  let T = 0;
9202
9198
  const E = (N, b, x, _ = 0, w = 0) => {
9203
- const I = Jm(N), { delay: R = 0, times: S = Zo(I), type: B = "keyframes", repeat: A, repeatType: V, repeatDelay: z = 0, ...P } = b;
9199
+ const I = Ym(N), { delay: R = 0, times: S = Zo(I), type: B = "keyframes", repeat: A, repeatType: V, repeatDelay: z = 0, ...P } = b;
9204
9200
  let { ease: D = t.ease || "easeOut", duration: U } = b;
9205
9201
  const j = typeof R == "function" ? R(_, w) : R, Ee = I.length, Ye = kr(B) ? B : a == null ? void 0 : a[B];
9206
9202
  if (Ee <= 2 && Ye) {
9207
9203
  let se = 100;
9208
- if (Ee === 2 && Zm(I)) {
9204
+ if (Ee === 2 && Xm(I)) {
9209
9205
  const te = I[1] - I[0];
9210
9206
  se = Math.abs(te);
9211
9207
  }
9212
9208
  const be = { ...P };
9213
9209
  U !== void 0 && (be.duration = /* @__PURE__ */ xe(U));
9214
- const oe = $m(be, se, Ye);
9210
+ const oe = Lm(be, se, Ye);
9215
9211
  D = oe.ease, U = oe.duration;
9216
9212
  }
9217
9213
  U ?? (U = s);
@@ -9219,7 +9215,7 @@ function Ym(e, { defaultTransition: t = {}, ...r } = {}, n, a) {
9219
9215
  S.length === 1 && S[0] === 0 && (S[1] = 1);
9220
9216
  const Je = S.length - I.length;
9221
9217
  if (Je > 0 && Xo(S, Je), I.length === 1 && I.unshift(null), A) {
9222
- De(A < Gm, "Repeat count too high, must be less than 20"), U = Fm(U, A);
9218
+ De(A < Km, "Repeat count too high, must be less than 20"), U = Dm(U, A);
9223
9219
  const se = [...I], be = [...S];
9224
9220
  D = Array.isArray(D) ? [...D] : [D];
9225
9221
  const oe = [...D];
@@ -9228,10 +9224,10 @@ function Ym(e, { defaultTransition: t = {}, ...r } = {}, n, a) {
9228
9224
  for (let Ce = 0; Ce < se.length; Ce++)
9229
9225
  S.push(be[Ce] + (te + 1)), D.push(Ce === 0 ? "linear" : qo(oe, Ce - 1));
9230
9226
  }
9231
- jm(S, A);
9227
+ Hm(S, A);
9232
9228
  }
9233
9229
  const qe = Fe + U;
9234
- Hm(x, I, D, S, Fe, qe), T = Math.max(j + U, T), f = Math.max(qe, f);
9230
+ Um(x, I, D, S, Fe, qe), T = Math.max(j + U, T), f = Math.max(qe, f);
9235
9231
  };
9236
9232
  if (ne(y)) {
9237
9233
  const N = ns(y, i);
@@ -9242,7 +9238,7 @@ function Ym(e, { defaultTransition: t = {}, ...r } = {}, n, a) {
9242
9238
  v = v, k = k;
9243
9239
  const _ = N[x], w = ns(_, i);
9244
9240
  for (const I in v)
9245
- E(v[I], qm(k, I), as(I, w), x, b);
9241
+ E(v[I], Jm(k, I), as(I, w), x, b);
9246
9242
  }
9247
9243
  }
9248
9244
  u = h, h += T;
@@ -9250,13 +9246,13 @@ function Ym(e, { defaultTransition: t = {}, ...r } = {}, n, a) {
9250
9246
  return i.forEach((m, g) => {
9251
9247
  for (const y in m) {
9252
9248
  const v = m[y];
9253
- v.sort(Wm);
9249
+ v.sort(jm);
9254
9250
  const k = [], T = [], E = [];
9255
9251
  for (let b = 0; b < v.length; b++) {
9256
9252
  const { at: x, value: _, easing: w } = v[b];
9257
9253
  k.push(_), T.push(/* @__PURE__ */ wr(0, f, x)), E.push(w || "easeOut");
9258
9254
  }
9259
- T[0] !== 0 && (T.unshift(0), k.unshift(k[0]), E.unshift(Km)), T[T.length - 1] !== 1 && (T.push(1), k.push(null)), o.has(g) || o.set(g, {
9255
+ T[0] !== 0 && (T.unshift(0), k.unshift(k[0]), E.unshift(Wm)), T[T.length - 1] !== 1 && (T.push(1), k.push(null)), o.has(g) || o.set(g, {
9260
9256
  keyframes: {},
9261
9257
  transition: {}
9262
9258
  });
@@ -9277,16 +9273,16 @@ function ns(e, t) {
9277
9273
  function as(e, t) {
9278
9274
  return t[e] || (t[e] = []), t[e];
9279
9275
  }
9280
- function Jm(e) {
9276
+ function Ym(e) {
9281
9277
  return Array.isArray(e) ? e : [e];
9282
9278
  }
9283
- function qm(e, t) {
9279
+ function Jm(e, t) {
9284
9280
  return e && e[t] ? {
9285
9281
  ...e,
9286
9282
  ...e[t]
9287
9283
  } : { ...e };
9288
9284
  }
9289
- const Xm = (e) => typeof e == "number", Zm = (e) => e.every(Xm), St = /* @__PURE__ */ new WeakMap();
9285
+ const qm = (e) => typeof e == "number", Xm = (e) => e.every(qm), St = /* @__PURE__ */ new WeakMap();
9290
9286
  function ti(e, t) {
9291
9287
  return e ? e[t] || e.default || e : void 0;
9292
9288
  }
@@ -9316,7 +9312,7 @@ const ht = [
9316
9312
  "right",
9317
9313
  "bottom",
9318
9314
  ...ht
9319
- ]), Qm = (e) => Array.isArray(e), ep = (e) => Qm(e) ? e[e.length - 1] || 0 : e, tp = {
9315
+ ]), Zm = (e) => Array.isArray(e), Qm = (e) => Zm(e) ? e[e.length - 1] || 0 : e, ep = {
9320
9316
  skipAnimations: !1,
9321
9317
  useManualTiming: !1
9322
9318
  }, Yt = [
@@ -9333,7 +9329,7 @@ const ht = [
9333
9329
  "postRender"
9334
9330
  // Compute
9335
9331
  ];
9336
- function rp(e, t) {
9332
+ function tp(e, t) {
9337
9333
  let r = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), a = !1, s = !1;
9338
9334
  const o = /* @__PURE__ */ new WeakSet();
9339
9335
  let i = {
@@ -9371,16 +9367,16 @@ function rp(e, t) {
9371
9367
  };
9372
9368
  return d;
9373
9369
  }
9374
- const np = 40;
9375
- function ap(e, t) {
9370
+ const rp = 40;
9371
+ function np(e, t) {
9376
9372
  let r = !1, n = !0;
9377
9373
  const a = {
9378
9374
  delta: 0,
9379
9375
  timestamp: 0,
9380
9376
  isProcessing: !1
9381
- }, s = () => r = !0, o = Yt.reduce((k, T) => (k[T] = rp(s), k), {}), { read: i, resolveKeyframes: l, update: d, preRender: u, render: h, postRender: f } = o, m = () => {
9377
+ }, s = () => r = !0, o = Yt.reduce((k, T) => (k[T] = tp(s), k), {}), { read: i, resolveKeyframes: l, update: d, preRender: u, render: h, postRender: f } = o, m = () => {
9382
9378
  const k = performance.now();
9383
- r = !1, a.delta = n ? 1e3 / 60 : Math.max(Math.min(k - a.timestamp, np), 1), a.timestamp = k, a.isProcessing = !0, i.process(a), l.process(a), d.process(a), u.process(a), h.process(a), f.process(a), a.isProcessing = !1, r && t && (n = !1, e(m));
9379
+ r = !1, a.delta = n ? 1e3 / 60 : Math.max(Math.min(k - a.timestamp, rp), 1), a.timestamp = k, a.isProcessing = !0, i.process(a), l.process(a), d.process(a), u.process(a), h.process(a), f.process(a), a.isProcessing = !1, r && t && (n = !1, e(m));
9384
9380
  }, g = () => {
9385
9381
  r = !0, n = !0, a.isProcessing || e(m);
9386
9382
  };
@@ -9392,15 +9388,15 @@ function ap(e, t) {
9392
9388
  o[Yt[T]].cancel(k);
9393
9389
  }, state: a, steps: o };
9394
9390
  }
9395
- const { schedule: Ie, cancel: an, state: nr, steps: V1 } = ap(typeof requestAnimationFrame < "u" ? requestAnimationFrame : $e, !0);
9391
+ const { schedule: Ie, cancel: an, state: nr, steps: M1 } = np(typeof requestAnimationFrame < "u" ? requestAnimationFrame : $e, !0);
9396
9392
  let Xt;
9397
- function sp() {
9393
+ function ap() {
9398
9394
  Xt = void 0;
9399
9395
  }
9400
9396
  const Be = {
9401
- now: () => (Xt === void 0 && Be.set(nr.isProcessing || tp.useManualTiming ? nr.timestamp : performance.now()), Xt),
9397
+ now: () => (Xt === void 0 && Be.set(nr.isProcessing || ep.useManualTiming ? nr.timestamp : performance.now()), Xt),
9402
9398
  set: (e) => {
9403
- Xt = e, queueMicrotask(sp);
9399
+ Xt = e, queueMicrotask(ap);
9404
9400
  }
9405
9401
  };
9406
9402
  class ni {
@@ -9408,7 +9404,7 @@ class ni {
9408
9404
  this.subscriptions = [];
9409
9405
  }
9410
9406
  add(t) {
9411
- return zm(this.subscriptions, t), () => ei(this.subscriptions, t);
9407
+ return Fm(this.subscriptions, t), () => ei(this.subscriptions, t);
9412
9408
  }
9413
9409
  notify(t, r, n) {
9414
9410
  const a = this.subscriptions.length;
@@ -9432,8 +9428,8 @@ const ss = /* @__PURE__ */ new Set();
9432
9428
  function $n(e, t, r) {
9433
9429
  e || ss.has(t) || (console.warn(t), ss.add(t));
9434
9430
  }
9435
- const os = 30, op = (e) => !isNaN(parseFloat(e));
9436
- class ip {
9431
+ const os = 30, sp = (e) => !isNaN(parseFloat(e));
9432
+ class op {
9437
9433
  /**
9438
9434
  * @param init - The initiating value
9439
9435
  * @param config - Optional configuration options
@@ -9449,7 +9445,7 @@ class ip {
9449
9445
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = r.owner;
9450
9446
  }
9451
9447
  setCurrent(t) {
9452
- this.current = t, this.updatedAt = Be.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = op(this.current));
9448
+ this.current = t, this.updatedAt = Be.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = sp(this.current));
9453
9449
  }
9454
9450
  setPrevFrameValue(t = this.current) {
9455
9451
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -9628,7 +9624,7 @@ class ip {
9628
9624
  }
9629
9625
  }
9630
9626
  function At(e, t) {
9631
- return new ip(e, t);
9627
+ return new op(e, t);
9632
9628
  }
9633
9629
  function is(e) {
9634
9630
  const t = [{}, {}];
@@ -9647,48 +9643,48 @@ function ai(e, t, r, n) {
9647
9643
  }
9648
9644
  return t;
9649
9645
  }
9650
- function lp(e, t, r) {
9646
+ function ip(e, t, r) {
9651
9647
  const n = e.getProps();
9652
9648
  return ai(n, t, n.custom, e);
9653
9649
  }
9654
- function cp(e, t, r) {
9650
+ function lp(e, t, r) {
9655
9651
  e.hasValue(t) ? e.getValue(t).set(r) : e.addValue(t, At(r));
9656
9652
  }
9657
- function dp(e, t) {
9658
- const r = lp(e, t);
9653
+ function cp(e, t) {
9654
+ const r = ip(e, t);
9659
9655
  let { transitionEnd: n = {}, transition: a = {}, ...s } = r || {};
9660
9656
  s = { ...s, ...n };
9661
9657
  for (const o in s) {
9662
- const i = ep(s[o]);
9663
- cp(e, o, i);
9658
+ const i = Qm(s[o]);
9659
+ lp(e, o, i);
9664
9660
  }
9665
9661
  }
9666
- function up(e) {
9662
+ function dp(e) {
9667
9663
  return !!(ne(e) && e.add);
9668
9664
  }
9669
- function hp(e, t) {
9665
+ function up(e, t) {
9670
9666
  const r = e.getValue("willChange");
9671
- if (up(r))
9667
+ if (dp(r))
9672
9668
  return r.add(t);
9673
9669
  }
9674
- const Dn = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), fp = "framerAppearId", mp = "data-" + Dn(fp);
9675
- function pp(e) {
9676
- return e.props[mp];
9670
+ const Dn = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), hp = "framerAppearId", fp = "data-" + Dn(hp);
9671
+ function mp(e) {
9672
+ return e.props[fp];
9677
9673
  }
9678
9674
  function ls(e, t) {
9679
9675
  e.timeline = t, e.onfinish = null;
9680
9676
  }
9681
- const Fn = (e) => Array.isArray(e) && typeof e[0] == "number", gp = {
9677
+ const Fn = (e) => Array.isArray(e) && typeof e[0] == "number", pp = {
9682
9678
  linearEasing: void 0
9683
9679
  };
9684
- function yp(e, t) {
9680
+ function gp(e, t) {
9685
9681
  const r = /* @__PURE__ */ Pn(e);
9686
9682
  return () => {
9687
9683
  var n;
9688
- return (n = gp[t]) !== null && n !== void 0 ? n : r();
9684
+ return (n = pp[t]) !== null && n !== void 0 ? n : r();
9689
9685
  };
9690
9686
  }
9691
- const ar = /* @__PURE__ */ yp(() => {
9687
+ const ar = /* @__PURE__ */ gp(() => {
9692
9688
  try {
9693
9689
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
9694
9690
  } catch {
@@ -9714,22 +9710,22 @@ function oi(e, t) {
9714
9710
  if (e)
9715
9711
  return typeof e == "function" && ar() ? Ko(e, t) : Fn(e) ? wt(e) : Array.isArray(e) ? e.map((r) => oi(r, t) || sn.easeOut) : sn[e];
9716
9712
  }
9717
- const ii = (e, t, r) => (((1 - 3 * r + 3 * t) * e + (3 * r - 6 * t)) * e + 3 * t) * e, bp = 1e-7, vp = 12;
9718
- function wp(e, t, r, n, a) {
9713
+ const ii = (e, t, r) => (((1 - 3 * r + 3 * t) * e + (3 * r - 6 * t)) * e + 3 * t) * e, yp = 1e-7, bp = 12;
9714
+ function vp(e, t, r, n, a) {
9719
9715
  let s, o, i = 0;
9720
9716
  do
9721
9717
  o = t + (r - t) / 2, s = ii(o, n, a) - e, s > 0 ? r = o : t = o;
9722
- while (Math.abs(s) > bp && ++i < vp);
9718
+ while (Math.abs(s) > yp && ++i < bp);
9723
9719
  return o;
9724
9720
  }
9725
9721
  function Ft(e, t, r, n) {
9726
9722
  if (e === t && r === n)
9727
9723
  return $e;
9728
- const a = (s) => wp(s, 0, 1, e, r);
9724
+ const a = (s) => vp(s, 0, 1, e, r);
9729
9725
  return (s) => s === 0 || s === 1 ? s : ii(a(s), t, n);
9730
9726
  }
9731
- const li = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, ci = (e) => (t) => 1 - e(1 - t), di = /* @__PURE__ */ Ft(0.33, 1.53, 0.69, 0.99), zn = /* @__PURE__ */ ci(di), ui = /* @__PURE__ */ li(zn), hi = (e) => (e *= 2) < 1 ? 0.5 * zn(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Un = (e) => 1 - Math.sin(Math.acos(e)), kp = ci(Un), fi = li(Un), mi = (e) => /^0[^.\s]+$/u.test(e);
9732
- function xp(e) {
9727
+ const li = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, ci = (e) => (t) => 1 - e(1 - t), di = /* @__PURE__ */ Ft(0.33, 1.53, 0.69, 0.99), zn = /* @__PURE__ */ ci(di), ui = /* @__PURE__ */ li(zn), hi = (e) => (e *= 2) < 1 ? 0.5 * zn(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Un = (e) => 1 - Math.sin(Math.acos(e)), wp = ci(Un), fi = li(Un), mi = (e) => /^0[^.\s]+$/u.test(e);
9728
+ function kp(e) {
9733
9729
  return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || mi(e) : !0;
9734
9730
  }
9735
9731
  const mt = {
@@ -9743,10 +9739,10 @@ const mt = {
9743
9739
  ...mt,
9744
9740
  default: 1
9745
9741
  }, xt = (e) => Math.round(e * 1e5) / 1e5, Hn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
9746
- function Tp(e) {
9742
+ function xp(e) {
9747
9743
  return e == null;
9748
9744
  }
9749
- const _p = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, jn = (e, t) => (r) => !!(typeof r == "string" && _p.test(r) && r.startsWith(e) || t && !Tp(r) && Object.prototype.hasOwnProperty.call(r, t)), pi = (e, t, r) => (n) => {
9745
+ const Tp = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, jn = (e, t) => (r) => !!(typeof r == "string" && Tp.test(r) && r.startsWith(e) || t && !xp(r) && Object.prototype.hasOwnProperty.call(r, t)), pi = (e, t, r) => (n) => {
9750
9746
  if (typeof n != "string")
9751
9747
  return n;
9752
9748
  const [a, s, o, i] = n.match(Hn);
@@ -9756,15 +9752,15 @@ const _p = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
9756
9752
  [r]: parseFloat(o),
9757
9753
  alpha: i !== void 0 ? parseFloat(i) : 1
9758
9754
  };
9759
- }, Ip = (e) => Ke(0, 255, e), Br = {
9755
+ }, _p = (e) => Ke(0, 255, e), Br = {
9760
9756
  ...mt,
9761
- transform: (e) => Math.round(Ip(e))
9757
+ transform: (e) => Math.round(_p(e))
9762
9758
  }, Ue = {
9763
9759
  test: /* @__PURE__ */ jn("rgb", "red"),
9764
9760
  parse: /* @__PURE__ */ pi("red", "green", "blue"),
9765
9761
  transform: ({ red: e, green: t, blue: r, alpha: n = 1 }) => "rgba(" + Br.transform(e) + ", " + Br.transform(t) + ", " + Br.transform(r) + ", " + xt(Rt.transform(n)) + ")"
9766
9762
  };
9767
- function Ep(e) {
9763
+ function Ip(e) {
9768
9764
  let t = "", r = "", n = "", a = "";
9769
9765
  return e.length > 5 ? (t = e.substring(1, 3), r = e.substring(3, 5), n = e.substring(5, 7), a = e.substring(7, 9)) : (t = e.substring(1, 2), r = e.substring(2, 3), n = e.substring(3, 4), a = e.substring(4, 5), t += t, r += r, n += n, a += a), {
9770
9766
  red: parseInt(t, 16),
@@ -9775,13 +9771,13 @@ function Ep(e) {
9775
9771
  }
9776
9772
  const on = {
9777
9773
  test: /* @__PURE__ */ jn("#"),
9778
- parse: Ep,
9774
+ parse: Ip,
9779
9775
  transform: Ue.transform
9780
9776
  }, zt = (e) => ({
9781
9777
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
9782
9778
  parse: parseFloat,
9783
9779
  transform: (t) => `${t}${e}`
9784
- }), Ve = /* @__PURE__ */ zt("deg"), rt = /* @__PURE__ */ zt("%"), O = /* @__PURE__ */ zt("px"), Cp = /* @__PURE__ */ zt("vh"), Np = /* @__PURE__ */ zt("vw"), cs = {
9780
+ }), Ve = /* @__PURE__ */ zt("deg"), rt = /* @__PURE__ */ zt("%"), O = /* @__PURE__ */ zt("px"), Ep = /* @__PURE__ */ zt("vh"), Cp = /* @__PURE__ */ zt("vw"), cs = {
9785
9781
  ...rt,
9786
9782
  parse: (e) => rt.parse(e) / 100,
9787
9783
  transform: (e) => rt.transform(e * 100)
@@ -9793,12 +9789,12 @@ const on = {
9793
9789
  test: (e) => Ue.test(e) || on.test(e) || Ze.test(e),
9794
9790
  parse: (e) => Ue.test(e) ? Ue.parse(e) : Ze.test(e) ? Ze.parse(e) : on.parse(e),
9795
9791
  transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Ue.transform(e) : Ze.transform(e)
9796
- }, Sp = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
9797
- function Ap(e) {
9792
+ }, Np = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
9793
+ function Sp(e) {
9798
9794
  var t, r;
9799
- return isNaN(e) && typeof e == "string" && (((t = e.match(Hn)) === null || t === void 0 ? void 0 : t.length) || 0) + (((r = e.match(Sp)) === null || r === void 0 ? void 0 : r.length) || 0) > 0;
9795
+ return isNaN(e) && typeof e == "string" && (((t = e.match(Hn)) === null || t === void 0 ? void 0 : t.length) || 0) + (((r = e.match(Np)) === null || r === void 0 ? void 0 : r.length) || 0) > 0;
9800
9796
  }
9801
- const gi = "number", yi = "color", Rp = "var", Mp = "var(", ds = "${}", Vp = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
9797
+ const gi = "number", yi = "color", Ap = "var", Rp = "var(", ds = "${}", Mp = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
9802
9798
  function Mt(e) {
9803
9799
  const t = e.toString(), r = [], n = {
9804
9800
  color: [],
@@ -9806,7 +9802,7 @@ function Mt(e) {
9806
9802
  var: []
9807
9803
  }, a = [];
9808
9804
  let s = 0;
9809
- const i = t.replace(Vp, (l) => (re.test(l) ? (n.color.push(s), a.push(yi), r.push(re.parse(l))) : l.startsWith(Mp) ? (n.var.push(s), a.push(Rp), r.push(l)) : (n.number.push(s), a.push(gi), r.push(parseFloat(l))), ++s, ds)).split(ds);
9805
+ const i = t.replace(Mp, (l) => (re.test(l) ? (n.color.push(s), a.push(yi), r.push(re.parse(l))) : l.startsWith(Rp) ? (n.var.push(s), a.push(Ap), r.push(l)) : (n.number.push(s), a.push(gi), r.push(parseFloat(l))), ++s, ds)).split(ds);
9810
9806
  return { values: r, split: i, indexes: n, types: a };
9811
9807
  }
9812
9808
  function bi(e) {
@@ -9824,18 +9820,18 @@ function vi(e) {
9824
9820
  return s;
9825
9821
  };
9826
9822
  }
9827
- const Pp = (e) => typeof e == "number" ? 0 : e;
9828
- function Bp(e) {
9823
+ const Vp = (e) => typeof e == "number" ? 0 : e;
9824
+ function Pp(e) {
9829
9825
  const t = bi(e);
9830
- return vi(e)(t.map(Pp));
9826
+ return vi(e)(t.map(Vp));
9831
9827
  }
9832
9828
  const pt = {
9833
- test: Ap,
9829
+ test: Sp,
9834
9830
  parse: bi,
9835
9831
  createTransformer: vi,
9836
- getAnimatableNone: Bp
9837
- }, Op = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
9838
- function Lp(e) {
9832
+ getAnimatableNone: Pp
9833
+ }, Bp = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
9834
+ function Op(e) {
9839
9835
  const [t, r] = e.slice(0, -1).split("(");
9840
9836
  if (t === "drop-shadow")
9841
9837
  return e;
@@ -9843,16 +9839,16 @@ function Lp(e) {
9843
9839
  if (!n)
9844
9840
  return e;
9845
9841
  const a = r.replace(n, "");
9846
- let s = Op.has(t) ? 1 : 0;
9842
+ let s = Bp.has(t) ? 1 : 0;
9847
9843
  return n !== r && (s *= 100), t + "(" + s + a + ")";
9848
9844
  }
9849
- const $p = /\b([a-z-]*)\(.*?\)/gu, ln = {
9845
+ const Lp = /\b([a-z-]*)\(.*?\)/gu, ln = {
9850
9846
  ...pt,
9851
9847
  getAnimatableNone: (e) => {
9852
- const t = e.match($p);
9853
- return t ? t.map(Lp).join(" ") : e;
9848
+ const t = e.match(Lp);
9849
+ return t ? t.map(Op).join(" ") : e;
9854
9850
  }
9855
- }, Dp = {
9851
+ }, $p = {
9856
9852
  // Border props
9857
9853
  borderWidth: O,
9858
9854
  borderTopWidth: O,
@@ -9888,7 +9884,7 @@ const $p = /\b([a-z-]*)\(.*?\)/gu, ln = {
9888
9884
  // Misc
9889
9885
  backgroundPositionX: O,
9890
9886
  backgroundPositionY: O
9891
- }, Fp = {
9887
+ }, Dp = {
9892
9888
  rotate: Ve,
9893
9889
  rotateX: Ve,
9894
9890
  rotateY: Ve,
@@ -9917,15 +9913,15 @@ const $p = /\b([a-z-]*)\(.*?\)/gu, ln = {
9917
9913
  ...mt,
9918
9914
  transform: Math.round
9919
9915
  }, Wn = {
9916
+ ...$p,
9920
9917
  ...Dp,
9921
- ...Fp,
9922
9918
  zIndex: us,
9923
9919
  size: O,
9924
9920
  // SVG
9925
9921
  fillOpacity: Rt,
9926
9922
  strokeOpacity: Rt,
9927
9923
  numOctaves: us
9928
- }, zp = {
9924
+ }, Fp = {
9929
9925
  ...Wn,
9930
9926
  // Color props
9931
9927
  color: re,
@@ -9941,17 +9937,17 @@ const $p = /\b([a-z-]*)\(.*?\)/gu, ln = {
9941
9937
  borderLeftColor: re,
9942
9938
  filter: ln,
9943
9939
  WebkitFilter: ln
9944
- }, Kn = (e) => zp[e];
9940
+ }, Kn = (e) => Fp[e];
9945
9941
  function wi(e, t) {
9946
9942
  let r = Kn(e);
9947
9943
  return r !== ln && (r = pt), r.getAnimatableNone ? r.getAnimatableNone(t) : void 0;
9948
9944
  }
9949
- const Up = /* @__PURE__ */ new Set(["auto", "none", "0"]);
9950
- function Hp(e, t, r) {
9945
+ const zp = /* @__PURE__ */ new Set(["auto", "none", "0"]);
9946
+ function Up(e, t, r) {
9951
9947
  let n = 0, a;
9952
9948
  for (; n < e.length && !a; ) {
9953
9949
  const s = e[n];
9954
- typeof s == "string" && !Up.has(s) && Mt(s).values.length && (a = e[n]), n++;
9950
+ typeof s == "string" && !zp.has(s) && Mt(s).values.length && (a = e[n]), n++;
9955
9951
  }
9956
9952
  if (a && r)
9957
9953
  for (const s of t)
@@ -9967,10 +9963,10 @@ const hs = (e) => e === mt || e === O, fs = (e, t) => parseFloat(e.split(", ")[t
9967
9963
  const s = n.match(/^matrix\((.+)\)$/u);
9968
9964
  return s ? fs(s[1], e) : 0;
9969
9965
  }
9970
- }, jp = /* @__PURE__ */ new Set(["x", "y", "z"]), Wp = ht.filter((e) => !jp.has(e));
9971
- function Kp(e) {
9966
+ }, Hp = /* @__PURE__ */ new Set(["x", "y", "z"]), jp = ht.filter((e) => !Hp.has(e));
9967
+ function Wp(e) {
9972
9968
  const t = [];
9973
- return Wp.forEach((r) => {
9969
+ return jp.forEach((r) => {
9974
9970
  const n = e.getValue(r);
9975
9971
  n !== void 0 && (t.push([r, n.get()]), n.set(r.startsWith("scale") ? 1 : 0));
9976
9972
  }), t;
@@ -9995,7 +9991,7 @@ function ki() {
9995
9991
  if (dn) {
9996
9992
  const e = Array.from(He).filter((n) => n.needsMeasurement), t = new Set(e.map((n) => n.element)), r = /* @__PURE__ */ new Map();
9997
9993
  t.forEach((n) => {
9998
- const a = Kp(n);
9994
+ const a = Wp(n);
9999
9995
  a.length && (r.set(n, a), n.render());
10000
9996
  }), e.forEach((n) => n.measureInitialState()), t.forEach((n) => {
10001
9997
  n.render();
@@ -10015,7 +10011,7 @@ function xi() {
10015
10011
  e.readKeyframes(), e.needsMeasurement && (dn = !0);
10016
10012
  });
10017
10013
  }
10018
- function Gp() {
10014
+ function Kp() {
10019
10015
  xi(), ki();
10020
10016
  }
10021
10017
  class Gn {
@@ -10059,21 +10055,21 @@ class Gn {
10059
10055
  this.isComplete || this.scheduleResolve();
10060
10056
  }
10061
10057
  }
10062
- const Ti = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), _i = (e) => (t) => typeof t == "string" && t.startsWith(e), Ii = /* @__PURE__ */ _i("--"), Yp = /* @__PURE__ */ _i("var(--"), Yn = (e) => Yp(e) ? Jp.test(e.split("/*")[0].trim()) : !1, Jp = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, qp = (
10058
+ const Ti = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), _i = (e) => (t) => typeof t == "string" && t.startsWith(e), Ii = /* @__PURE__ */ _i("--"), Gp = /* @__PURE__ */ _i("var(--"), Yn = (e) => Gp(e) ? Yp.test(e.split("/*")[0].trim()) : !1, Yp = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Jp = (
10063
10059
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
10064
10060
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
10065
10061
  );
10066
- function Xp(e) {
10067
- const t = qp.exec(e);
10062
+ function qp(e) {
10063
+ const t = Jp.exec(e);
10068
10064
  if (!t)
10069
10065
  return [,];
10070
10066
  const [, r, n, a] = t;
10071
10067
  return [`--${r ?? n}`, a];
10072
10068
  }
10073
- const Zp = 4;
10069
+ const Xp = 4;
10074
10070
  function Ei(e, t, r = 1) {
10075
- De(r <= Zp, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
10076
- const [n, a] = Xp(e);
10071
+ De(r <= Xp, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
10072
+ const [n, a] = qp(e);
10077
10073
  if (!n)
10078
10074
  return;
10079
10075
  const s = window.getComputedStyle(t).getPropertyValue(n);
@@ -10083,10 +10079,10 @@ function Ei(e, t, r = 1) {
10083
10079
  }
10084
10080
  return Yn(a) ? Ei(a, t, r + 1) : a;
10085
10081
  }
10086
- const Ci = (e) => (t) => t.test(e), Qp = {
10082
+ const Ci = (e) => (t) => t.test(e), Zp = {
10087
10083
  test: (e) => e === "auto",
10088
10084
  parse: (e) => e
10089
- }, Ni = [mt, O, rt, Ve, Np, Cp, Qp], ps = (e) => Ni.find(Ci(e));
10085
+ }, Ni = [mt, O, rt, Ve, Cp, Ep, Zp], ps = (e) => Ni.find(Ci(e));
10090
10086
  class Si extends Gn {
10091
10087
  constructor(t, r, n, a, s) {
10092
10088
  super(t, r, n, a, s, !0);
@@ -10118,8 +10114,8 @@ class Si extends Gn {
10118
10114
  resolveNoneKeyframes() {
10119
10115
  const { unresolvedKeyframes: t, name: r } = this, n = [];
10120
10116
  for (let a = 0; a < t.length; a++)
10121
- xp(t[a]) && n.push(a);
10122
- n.length && Hp(t, n, r);
10117
+ kp(t[a]) && n.push(a);
10118
+ n.length && Up(t, n, r);
10123
10119
  }
10124
10120
  measureInitialState() {
10125
10121
  const { element: t, unresolvedKeyframes: r, name: n } = this;
@@ -10145,7 +10141,7 @@ class Si extends Gn {
10145
10141
  const gs = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
10146
10142
  (pt.test(e) || e === "0") && // And it contains numbers and/or colors
10147
10143
  !e.startsWith("url("));
10148
- function eg(e) {
10144
+ function Qp(e) {
10149
10145
  const t = e[0];
10150
10146
  if (e.length === 1)
10151
10147
  return !0;
@@ -10153,21 +10149,21 @@ function eg(e) {
10153
10149
  if (e[r] !== t)
10154
10150
  return !0;
10155
10151
  }
10156
- function tg(e, t, r, n) {
10152
+ function eg(e, t, r, n) {
10157
10153
  const a = e[0];
10158
10154
  if (a === null)
10159
10155
  return !1;
10160
10156
  if (t === "display" || t === "visibility")
10161
10157
  return !0;
10162
10158
  const s = e[e.length - 1], o = gs(a, t), i = gs(s, t);
10163
- return $t(o === i, `You are trying to animate ${t} from "${a}" to "${s}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${s} via the \`style\` property.`), !o || !i ? !1 : eg(e) || (r === "spring" || kr(r)) && n;
10159
+ return $t(o === i, `You are trying to animate ${t} from "${a}" to "${s}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${s} via the \`style\` property.`), !o || !i ? !1 : Qp(e) || (r === "spring" || kr(r)) && n;
10164
10160
  }
10165
- const rg = (e) => e !== null;
10161
+ const tg = (e) => e !== null;
10166
10162
  function xr(e, { repeat: t, repeatType: r = "loop" }, n) {
10167
- const a = e.filter(rg), s = t && r !== "loop" && t % 2 === 1 ? 0 : a.length - 1;
10163
+ const a = e.filter(tg), s = t && r !== "loop" && t % 2 === 1 ? 0 : a.length - 1;
10168
10164
  return !s || n === void 0 ? a[s] : n;
10169
10165
  }
10170
- const ng = 40;
10166
+ const rg = 40;
10171
10167
  class Ai {
10172
10168
  constructor({ autoplay: t = !0, delay: r = 0, type: n = "keyframes", repeat: a = 0, repeatDelay: s = 0, repeatType: o = "loop", ...i }) {
10173
10169
  this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = Be.now(), this.options = {
@@ -10191,7 +10187,7 @@ class Ai {
10191
10187
  * to avoid a sudden jump into the animation.
10192
10188
  */
10193
10189
  calcStartTime() {
10194
- return this.resolvedAt ? this.resolvedAt - this.createdAt > ng ? this.resolvedAt : this.createdAt : this.createdAt;
10190
+ return this.resolvedAt ? this.resolvedAt - this.createdAt > rg ? this.resolvedAt : this.createdAt : this.createdAt;
10195
10191
  }
10196
10192
  /**
10197
10193
  * A getter for resolved data. If keyframes are not yet resolved, accessing
@@ -10199,7 +10195,7 @@ class Ai {
10199
10195
  * This is a deoptimisation, but at its worst still batches read/writes.
10200
10196
  */
10201
10197
  get resolved() {
10202
- return !this._resolved && !this.hasAttemptedResolve && Gp(), this._resolved;
10198
+ return !this._resolved && !this.hasAttemptedResolve && Kp(), this._resolved;
10203
10199
  }
10204
10200
  /**
10205
10201
  * A method to be called when the keyframes resolver completes. This method
@@ -10209,7 +10205,7 @@ class Ai {
10209
10205
  onKeyframesResolved(t, r) {
10210
10206
  this.resolvedAt = Be.now(), this.hasAttemptedResolve = !0;
10211
10207
  const { name: n, type: a, velocity: s, delay: o, onComplete: i, onUpdate: l, isGenerator: d } = this.options;
10212
- if (!d && !tg(t, n, a, s))
10208
+ if (!d && !eg(t, n, a, s))
10213
10209
  if (o)
10214
10210
  this.options.duration = 0;
10215
10211
  else {
@@ -10245,7 +10241,7 @@ class Ai {
10245
10241
  function Or(e, t, r) {
10246
10242
  return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * 6 * r : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e;
10247
10243
  }
10248
- function ag({ hue: e, saturation: t, lightness: r, alpha: n }) {
10244
+ function ng({ hue: e, saturation: t, lightness: r, alpha: n }) {
10249
10245
  e /= 360, t /= 100, r /= 100;
10250
10246
  let a = 0, s = 0, o = 0;
10251
10247
  if (!t)
@@ -10267,13 +10263,13 @@ function sr(e, t) {
10267
10263
  const Lr = (e, t, r) => {
10268
10264
  const n = e * e, a = r * (t * t - n) + n;
10269
10265
  return a < 0 ? 0 : Math.sqrt(a);
10270
- }, sg = [on, Ue, Ze], og = (e) => sg.find((t) => t.test(e));
10266
+ }, ag = [on, Ue, Ze], sg = (e) => ag.find((t) => t.test(e));
10271
10267
  function ys(e) {
10272
- const t = og(e);
10268
+ const t = sg(e);
10273
10269
  if ($t(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`), !t)
10274
10270
  return !1;
10275
10271
  let r = t.parse(e);
10276
- return t === Ze && (r = ag(r)), r;
10272
+ return t === Ze && (r = ng(r)), r;
10277
10273
  }
10278
10274
  const bs = (e, t) => {
10279
10275
  const r = ys(e), n = ys(t);
@@ -10281,15 +10277,15 @@ const bs = (e, t) => {
10281
10277
  return sr(e, t);
10282
10278
  const a = { ...r };
10283
10279
  return (s) => (a.red = Lr(r.red, n.red, s), a.green = Lr(r.green, n.green, s), a.blue = Lr(r.blue, n.blue, s), a.alpha = Dt(r.alpha, n.alpha, s), Ue.transform(a));
10284
- }, ig = (e, t) => (r) => t(e(r)), Jn = (...e) => e.reduce(ig), un = /* @__PURE__ */ new Set(["none", "hidden"]);
10285
- function lg(e, t) {
10280
+ }, og = (e, t) => (r) => t(e(r)), Jn = (...e) => e.reduce(og), un = /* @__PURE__ */ new Set(["none", "hidden"]);
10281
+ function ig(e, t) {
10286
10282
  return un.has(e) ? (r) => r <= 0 ? e : t : (r) => r >= 1 ? t : e;
10287
10283
  }
10288
- function cg(e, t) {
10284
+ function lg(e, t) {
10289
10285
  return (r) => Dt(e, t, r);
10290
10286
  }
10291
10287
  function qn(e) {
10292
- return typeof e == "number" ? cg : typeof e == "string" ? Yn(e) ? sr : re.test(e) ? bs : hg : Array.isArray(e) ? Ri : typeof e == "object" ? re.test(e) ? bs : dg : sr;
10288
+ return typeof e == "number" ? lg : typeof e == "string" ? Yn(e) ? sr : re.test(e) ? bs : ug : Array.isArray(e) ? Ri : typeof e == "object" ? re.test(e) ? bs : cg : sr;
10293
10289
  }
10294
10290
  function Ri(e, t) {
10295
10291
  const r = [...e], n = r.length, a = e.map((s, o) => qn(s)(s, t[o]));
@@ -10299,7 +10295,7 @@ function Ri(e, t) {
10299
10295
  return r;
10300
10296
  };
10301
10297
  }
10302
- function dg(e, t) {
10298
+ function cg(e, t) {
10303
10299
  const r = { ...e, ...t }, n = {};
10304
10300
  for (const a in r)
10305
10301
  e[a] !== void 0 && t[a] !== void 0 && (n[a] = qn(e[a])(e[a], t[a]));
@@ -10309,7 +10305,7 @@ function dg(e, t) {
10309
10305
  return r;
10310
10306
  };
10311
10307
  }
10312
- function ug(e, t) {
10308
+ function dg(e, t) {
10313
10309
  var r;
10314
10310
  const n = [], a = { color: 0, var: 0, number: 0 };
10315
10311
  for (let s = 0; s < t.values.length; s++) {
@@ -10318,9 +10314,9 @@ function ug(e, t) {
10318
10314
  }
10319
10315
  return n;
10320
10316
  }
10321
- const hg = (e, t) => {
10317
+ const ug = (e, t) => {
10322
10318
  const r = pt.createTransformer(t), n = Mt(e), a = Mt(t);
10323
- return n.indexes.var.length === a.indexes.var.length && n.indexes.color.length === a.indexes.color.length && n.indexes.number.length >= a.indexes.number.length ? un.has(e) && !a.values.length || un.has(t) && !n.values.length ? lg(e, t) : Jn(Ri(ug(n, a), a.values), r) : ($t(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), sr(e, t));
10319
+ return n.indexes.var.length === a.indexes.var.length && n.indexes.color.length === a.indexes.color.length && n.indexes.number.length >= a.indexes.number.length ? un.has(e) && !a.values.length || un.has(t) && !n.values.length ? ig(e, t) : Jn(Ri(dg(n, a), a.values), r) : ($t(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), sr(e, t));
10324
10320
  };
10325
10321
  function Mi(e, t, r) {
10326
10322
  return typeof e == "number" && typeof t == "number" && typeof r == "number" ? Dt(e, t, r) : qn(e)(e, t);
@@ -10357,14 +10353,14 @@ function vs({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 3
10357
10353
  }
10358
10354
  };
10359
10355
  }
10360
- const fg = /* @__PURE__ */ Ft(0.42, 0, 1, 1), mg = /* @__PURE__ */ Ft(0, 0, 0.58, 1), Vi = /* @__PURE__ */ Ft(0.42, 0, 0.58, 1), ws = {
10356
+ const hg = /* @__PURE__ */ Ft(0.42, 0, 1, 1), fg = /* @__PURE__ */ Ft(0, 0, 0.58, 1), Vi = /* @__PURE__ */ Ft(0.42, 0, 0.58, 1), ws = {
10361
10357
  linear: $e,
10362
- easeIn: fg,
10358
+ easeIn: hg,
10363
10359
  easeInOut: Vi,
10364
- easeOut: mg,
10360
+ easeOut: fg,
10365
10361
  circIn: Un,
10366
10362
  circInOut: fi,
10367
- circOut: kp,
10363
+ circOut: wp,
10368
10364
  backIn: zn,
10369
10365
  backInOut: ui,
10370
10366
  backOut: di,
@@ -10378,7 +10374,7 @@ const fg = /* @__PURE__ */ Ft(0.42, 0, 1, 1), mg = /* @__PURE__ */ Ft(0, 0, 0.58
10378
10374
  return De(ws[e] !== void 0, `Invalid easing type '${e}'`), ws[e];
10379
10375
  return e;
10380
10376
  };
10381
- function pg(e, t, r) {
10377
+ function mg(e, t, r) {
10382
10378
  const n = [], a = r || Mi, s = e.length - 1;
10383
10379
  for (let o = 0; o < s; o++) {
10384
10380
  let i = a(e[o], e[o + 1]);
@@ -10390,7 +10386,7 @@ function pg(e, t, r) {
10390
10386
  }
10391
10387
  return n;
10392
10388
  }
10393
- function gg(e, t, { clamp: r = !0, ease: n, mixer: a } = {}) {
10389
+ function pg(e, t, { clamp: r = !0, ease: n, mixer: a } = {}) {
10394
10390
  const s = e.length;
10395
10391
  if (De(s === t.length, "Both input and output ranges must be the same length"), s === 1)
10396
10392
  return () => t[0];
@@ -10398,7 +10394,7 @@ function gg(e, t, { clamp: r = !0, ease: n, mixer: a } = {}) {
10398
10394
  return () => t[1];
10399
10395
  const o = e[0] === e[1];
10400
10396
  e[0] > e[s - 1] && (e = [...e].reverse(), t = [...t].reverse());
10401
- const i = pg(t, n, a), l = i.length, d = (u) => {
10397
+ const i = mg(t, n, a), l = i.length, d = (u) => {
10402
10398
  if (o && u < e[0])
10403
10399
  return t[0];
10404
10400
  let h = 0;
@@ -10410,30 +10406,30 @@ function gg(e, t, { clamp: r = !0, ease: n, mixer: a } = {}) {
10410
10406
  };
10411
10407
  return r ? (u) => d(Ke(e[0], e[s - 1], u)) : d;
10412
10408
  }
10413
- function yg(e, t) {
10409
+ function gg(e, t) {
10414
10410
  return e.map((r) => r * t);
10415
10411
  }
10416
- function bg(e, t) {
10412
+ function yg(e, t) {
10417
10413
  return e.map(() => t || Vi).splice(0, e.length - 1);
10418
10414
  }
10419
10415
  function Tt({ duration: e = 300, keyframes: t, times: r, ease: n = "easeInOut" }) {
10420
10416
  const a = Jo(n) ? n.map(ks) : ks(n), s = {
10421
10417
  done: !1,
10422
10418
  value: t[0]
10423
- }, o = yg(
10419
+ }, o = gg(
10424
10420
  // Only use the provided offsets if they're the correct length
10425
10421
  // TODO Maybe we should warn here if there's a length mismatch
10426
10422
  r && r.length === t.length ? r : Zo(t),
10427
10423
  e
10428
- ), i = gg(o, t, {
10429
- ease: Array.isArray(a) ? a : bg(t, a)
10424
+ ), i = pg(o, t, {
10425
+ ease: Array.isArray(a) ? a : yg(t, a)
10430
10426
  });
10431
10427
  return {
10432
10428
  calculatedDuration: e,
10433
10429
  next: (l) => (s.value = i(l), s.done = l >= e, s)
10434
10430
  };
10435
10431
  }
10436
- const vg = (e) => {
10432
+ const bg = (e) => {
10437
10433
  const t = ({ timestamp: r }) => e(r);
10438
10434
  return {
10439
10435
  start: () => Ie.update(t, !0),
@@ -10444,13 +10440,13 @@ const vg = (e) => {
10444
10440
  */
10445
10441
  now: () => nr.isProcessing ? nr.timestamp : Be.now()
10446
10442
  };
10447
- }, wg = {
10443
+ }, vg = {
10448
10444
  decay: vs,
10449
10445
  inertia: vs,
10450
10446
  tween: Tt,
10451
10447
  keyframes: Tt,
10452
10448
  spring: On
10453
- }, kg = (e) => e / 100;
10449
+ }, wg = (e) => e / 100;
10454
10450
  class Xn extends Ai {
10455
10451
  constructor(t) {
10456
10452
  super(t), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
@@ -10467,9 +10463,9 @@ class Xn extends Ai {
10467
10463
  super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
10468
10464
  }
10469
10465
  initPlayback(t) {
10470
- const { type: r = "keyframes", repeat: n = 0, repeatDelay: a = 0, repeatType: s, velocity: o = 0 } = this.options, i = kr(r) ? r : wg[r] || Tt;
10466
+ const { type: r = "keyframes", repeat: n = 0, repeatDelay: a = 0, repeatType: s, velocity: o = 0 } = this.options, i = kr(r) ? r : vg[r] || Tt;
10471
10467
  let l, d;
10472
- process.env.NODE_ENV !== "production" && i !== Tt && De(t.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), i !== Tt && typeof t[0] != "number" && (l = Jn(kg, Mi(t[0], t[1])), t = [0, 100]);
10468
+ process.env.NODE_ENV !== "production" && i !== Tt && De(t.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), i !== Tt && typeof t[0] != "number" && (l = Jn(wg, Mi(t[0], t[1])), t = [0, 100]);
10473
10469
  const u = i({ ...this.options, keyframes: t });
10474
10470
  s === "mirror" && (d = i({
10475
10471
  ...this.options,
@@ -10540,7 +10536,7 @@ class Xn extends Ai {
10540
10536
  }
10541
10537
  if (this.isStopped)
10542
10538
  return;
10543
- const { driver: t = vg, onPlay: r, startTime: n } = this.options;
10539
+ const { driver: t = bg, onPlay: r, startTime: n } = this.options;
10544
10540
  this.driver || (this.driver = t((s) => this.tick(s))), r && r();
10545
10541
  const a = this.driver.now();
10546
10542
  this.holdTime !== null ? this.startTime = a - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = a) : this.startTime = n ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
@@ -10574,7 +10570,7 @@ class Xn extends Ai {
10574
10570
  return this.startTime = 0, this.tick(t, !0);
10575
10571
  }
10576
10572
  }
10577
- const xg = /* @__PURE__ */ new Set([
10573
+ const kg = /* @__PURE__ */ new Set([
10578
10574
  "opacity",
10579
10575
  "clipPath",
10580
10576
  "filter",
@@ -10583,7 +10579,7 @@ const xg = /* @__PURE__ */ new Set([
10583
10579
  // or until we implement support for linear() easing.
10584
10580
  // "background-color"
10585
10581
  ]);
10586
- function Tg(e, t, r, { delay: n = 0, duration: a = 300, repeat: s = 0, repeatType: o = "loop", ease: i = "easeInOut", times: l } = {}) {
10582
+ function xg(e, t, r, { delay: n = 0, duration: a = 300, repeat: s = 0, repeatType: o = "loop", ease: i = "easeInOut", times: l } = {}) {
10587
10583
  const d = { [t]: r };
10588
10584
  l && (d.offset = l);
10589
10585
  const u = oi(i, a);
@@ -10596,11 +10592,11 @@ function Tg(e, t, r, { delay: n = 0, duration: a = 300, repeat: s = 0, repeatTyp
10596
10592
  direction: o === "reverse" ? "alternate" : "normal"
10597
10593
  });
10598
10594
  }
10599
- const _g = /* @__PURE__ */ Pn(() => Object.hasOwnProperty.call(Element.prototype, "animate")), or = 10, Ig = 2e4;
10600
- function Eg(e) {
10595
+ const Tg = /* @__PURE__ */ Pn(() => Object.hasOwnProperty.call(Element.prototype, "animate")), or = 10, _g = 2e4;
10596
+ function Ig(e) {
10601
10597
  return kr(e.type) || e.type === "spring" || !si(e.ease);
10602
10598
  }
10603
- function Cg(e, t) {
10599
+ function Eg(e, t) {
10604
10600
  const r = new Xn({
10605
10601
  ...t,
10606
10602
  keyframes: e,
@@ -10611,7 +10607,7 @@ function Cg(e, t) {
10611
10607
  let n = { done: !1, value: e[0] };
10612
10608
  const a = [];
10613
10609
  let s = 0;
10614
- for (; !n.done && s < Ig; )
10610
+ for (; !n.done && s < _g; )
10615
10611
  n = r.sample(s), a.push(n.value), s += or;
10616
10612
  return {
10617
10613
  times: void 0,
@@ -10625,7 +10621,7 @@ const Pi = {
10625
10621
  backInOut: ui,
10626
10622
  circInOut: fi
10627
10623
  };
10628
- function Ng(e) {
10624
+ function Cg(e) {
10629
10625
  return e in Pi;
10630
10626
  }
10631
10627
  class xs extends Ai {
@@ -10638,11 +10634,11 @@ class xs extends Ai {
10638
10634
  let { duration: n = 300, times: a, ease: s, type: o, motionValue: i, name: l, startTime: d } = this.options;
10639
10635
  if (!i.owner || !i.owner.current)
10640
10636
  return !1;
10641
- if (typeof s == "string" && ar() && Ng(s) && (s = Pi[s]), Eg(this.options)) {
10642
- const { onComplete: h, onUpdate: f, motionValue: m, element: g, ...y } = this.options, v = Cg(t, y);
10637
+ if (typeof s == "string" && ar() && Cg(s) && (s = Pi[s]), Ig(this.options)) {
10638
+ const { onComplete: h, onUpdate: f, motionValue: m, element: g, ...y } = this.options, v = Eg(t, y);
10643
10639
  t = v.keyframes, t.length === 1 && (t[1] = t[0]), n = v.duration, a = v.times, s = v.ease, o = "keyframes";
10644
10640
  }
10645
- const u = Tg(i.owner.current, l, t, { ...this.options, duration: n, times: a, ease: s });
10641
+ const u = xg(i.owner.current, l, t, { ...this.options, duration: n, times: a, ease: s });
10646
10642
  return u.startTime = d ?? this.calcStartTime(), this.pendingTimeline ? (ls(u, this.pendingTimeline), this.pendingTimeline = void 0) : u.onfinish = () => {
10647
10643
  const { onComplete: h } = this.options;
10648
10644
  i.set(xr(t, this.options, r)), h && h(), this.cancel(), this.resolveFinishedPromise();
@@ -10774,32 +10770,32 @@ class xs extends Ai {
10774
10770
  if (!r || !r.owner || !(r.owner.current instanceof HTMLElement))
10775
10771
  return !1;
10776
10772
  const { onUpdate: l, transformTemplate: d } = r.owner.getProps();
10777
- return _g() && n && xg.has(n) && /**
10773
+ return Tg() && n && kg.has(n) && /**
10778
10774
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
10779
10775
  * no way to read the value from WAAPI every frame.
10780
10776
  */
10781
10777
  !l && !d && !a && s !== "mirror" && o !== 0 && i !== "inertia";
10782
10778
  }
10783
10779
  }
10784
- const Sg = {
10780
+ const Ng = {
10785
10781
  type: "spring",
10786
10782
  stiffness: 500,
10787
10783
  damping: 25,
10788
10784
  restSpeed: 10
10789
- }, Ag = (e) => ({
10785
+ }, Sg = (e) => ({
10790
10786
  type: "spring",
10791
10787
  stiffness: 550,
10792
10788
  damping: e === 0 ? 2 * Math.sqrt(550) : 30,
10793
10789
  restSpeed: 10
10794
- }), Rg = {
10790
+ }), Ag = {
10795
10791
  type: "keyframes",
10796
10792
  duration: 0.8
10797
- }, Mg = {
10793
+ }, Rg = {
10798
10794
  type: "keyframes",
10799
10795
  ease: [0.25, 0.1, 0.35, 1],
10800
10796
  duration: 0.3
10801
- }, Vg = (e, { keyframes: t }) => t.length > 2 ? Rg : ft.has(e) ? e.startsWith("scale") ? Ag(t[1]) : Sg : Mg;
10802
- function Pg({ when: e, delay: t, delayChildren: r, staggerChildren: n, staggerDirection: a, repeat: s, repeatType: o, repeatDelay: i, from: l, elapsed: d, ...u }) {
10797
+ }, Mg = (e, { keyframes: t }) => t.length > 2 ? Ag : ft.has(e) ? e.startsWith("scale") ? Sg(t[1]) : Ng : Rg;
10798
+ function Vg({ when: e, delay: t, delayChildren: r, staggerChildren: n, staggerDirection: a, repeat: s, repeatType: o, repeatDelay: i, from: l, elapsed: d, ...u }) {
10803
10799
  return !!Object.keys(u).length;
10804
10800
  }
10805
10801
  const Bi = (e, t, r, n = {}, a, s) => (o) => {
@@ -10822,9 +10818,9 @@ const Bi = (e, t, r, n = {}, a, s) => (o) => {
10822
10818
  motionValue: t,
10823
10819
  element: s ? void 0 : a
10824
10820
  };
10825
- Pg(i) || (u = {
10821
+ Vg(i) || (u = {
10826
10822
  ...u,
10827
- ...Vg(e, u)
10823
+ ...Mg(e, u)
10828
10824
  }), u.duration && (u.duration = /* @__PURE__ */ xe(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ xe(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
10829
10825
  let h = !1;
10830
10826
  if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (h = !0)), h && !s && t.get() !== void 0) {
@@ -10836,18 +10832,18 @@ const Bi = (e, t, r, n = {}, a, s) => (o) => {
10836
10832
  }
10837
10833
  return !s && xs.supports(u) ? new xs(u) : new Xn(u);
10838
10834
  };
10839
- function Bg({ protectedKeys: e, needsAnimating: t }, r) {
10835
+ function Pg({ protectedKeys: e, needsAnimating: t }, r) {
10840
10836
  const n = e.hasOwnProperty(r) && t[r] !== !0;
10841
10837
  return t[r] = !1, n;
10842
10838
  }
10843
- function Og(e, t, { delay: r = 0, transitionOverride: n, type: a } = {}) {
10839
+ function Bg(e, t, { delay: r = 0, transitionOverride: n, type: a } = {}) {
10844
10840
  var s;
10845
10841
  let { transition: o = e.getDefaultTransition(), transitionEnd: i, ...l } = t;
10846
10842
  n && (o = n);
10847
10843
  const d = [], u = a && e.animationState && e.animationState.getState()[a];
10848
10844
  for (const h in l) {
10849
10845
  const f = e.getValue(h, (s = e.latestValues[h]) !== null && s !== void 0 ? s : null), m = l[h];
10850
- if (m === void 0 || u && Bg(u, h))
10846
+ if (m === void 0 || u && Pg(u, h))
10851
10847
  continue;
10852
10848
  const g = {
10853
10849
  delay: r,
@@ -10855,23 +10851,23 @@ function Og(e, t, { delay: r = 0, transitionOverride: n, type: a } = {}) {
10855
10851
  };
10856
10852
  let y = !1;
10857
10853
  if (window.MotionHandoffAnimation) {
10858
- const k = pp(e);
10854
+ const k = mp(e);
10859
10855
  if (k) {
10860
10856
  const T = window.MotionHandoffAnimation(k, h, Ie);
10861
10857
  T !== null && (g.startTime = T, y = !0);
10862
10858
  }
10863
10859
  }
10864
- hp(e, h), f.start(Bi(h, f, m, e.shouldReduceMotion && ri.has(h) ? { type: !1 } : g, e, y));
10860
+ up(e, h), f.start(Bi(h, f, m, e.shouldReduceMotion && ri.has(h) ? { type: !1 } : g, e, y));
10865
10861
  const v = f.animation;
10866
10862
  v && d.push(v);
10867
10863
  }
10868
10864
  return i && Promise.all(d).then(() => {
10869
10865
  Ie.update(() => {
10870
- i && dp(e, i);
10866
+ i && cp(e, i);
10871
10867
  });
10872
10868
  }), d;
10873
10869
  }
10874
- function Lg(e) {
10870
+ function Og(e) {
10875
10871
  return e instanceof SVGElement && e.tagName !== "svg";
10876
10872
  }
10877
10873
  const Ts = () => ({ min: 0, max: 0 }), Zn = () => ({
@@ -10901,23 +10897,23 @@ for (const e in _s)
10901
10897
  hn[e] = {
10902
10898
  isEnabled: (t) => _s[e].some((r) => !!t[r])
10903
10899
  };
10904
- const $g = typeof window < "u", fn = { current: null }, Oi = { current: !1 };
10905
- function Dg() {
10906
- if (Oi.current = !0, !!$g)
10900
+ const Lg = typeof window < "u", fn = { current: null }, Oi = { current: !1 };
10901
+ function $g() {
10902
+ if (Oi.current = !0, !!Lg)
10907
10903
  if (window.matchMedia) {
10908
10904
  const e = window.matchMedia("(prefers-reduced-motion)"), t = () => fn.current = e.matches;
10909
10905
  e.addListener(t), t();
10910
10906
  } else
10911
10907
  fn.current = !1;
10912
10908
  }
10913
- const Fg = [...Ni, re, pt], zg = (e) => Fg.find(Ci(e));
10914
- function Ug(e) {
10909
+ const Dg = [...Ni, re, pt], Fg = (e) => Dg.find(Ci(e));
10910
+ function zg(e) {
10915
10911
  return e !== null && typeof e == "object" && typeof e.start == "function";
10916
10912
  }
10917
- function Hg(e) {
10913
+ function Ug(e) {
10918
10914
  return typeof e == "string" || Array.isArray(e);
10919
10915
  }
10920
- const jg = [
10916
+ const Hg = [
10921
10917
  "animate",
10922
10918
  "whileInView",
10923
10919
  "whileFocus",
@@ -10925,14 +10921,14 @@ const jg = [
10925
10921
  "whileTap",
10926
10922
  "whileDrag",
10927
10923
  "exit"
10928
- ], Wg = ["initial", ...jg];
10924
+ ], jg = ["initial", ...Hg];
10929
10925
  function Li(e) {
10930
- return Ug(e.animate) || Wg.some((t) => Hg(e[t]));
10926
+ return zg(e.animate) || jg.some((t) => Ug(e[t]));
10931
10927
  }
10932
- function Kg(e) {
10928
+ function Wg(e) {
10933
10929
  return !!(Li(e) || e.variants);
10934
10930
  }
10935
- function Gg(e, t, r) {
10931
+ function Kg(e, t, r) {
10936
10932
  for (const n in t) {
10937
10933
  const a = t[n], s = r[n];
10938
10934
  if (ne(a))
@@ -10980,7 +10976,7 @@ class $i {
10980
10976
  this.renderScheduledAt < m && (this.renderScheduledAt = m, Ie.render(this.render, !1, !0));
10981
10977
  };
10982
10978
  const { latestValues: l, renderState: d, onUpdate: u } = o;
10983
- this.onUpdate = u, this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = r.initial ? { ...l } : {}, this.renderState = d, this.parent = t, this.props = r, this.presenceContext = n, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = a, this.options = i, this.blockInitialAnimation = !!s, this.isControllingVariants = Li(r), this.isVariantNode = Kg(r), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
10979
+ this.onUpdate = u, this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = r.initial ? { ...l } : {}, this.renderState = d, this.parent = t, this.props = r, this.presenceContext = n, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = a, this.options = i, this.blockInitialAnimation = !!s, this.isControllingVariants = Li(r), this.isVariantNode = Wg(r), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
10984
10980
  const { willChange: h, ...f } = this.scrapeMotionValuesFromProps(r, {}, this);
10985
10981
  for (const m in f) {
10986
10982
  const g = f[m];
@@ -10988,7 +10984,7 @@ class $i {
10988
10984
  }
10989
10985
  }
10990
10986
  mount(t) {
10991
- this.current = t, St.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((r, n) => this.bindToMotionValue(n, r)), Oi.current || Dg(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : fn.current, process.env.NODE_ENV !== "production" && $n(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
10987
+ this.current = t, St.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((r, n) => this.bindToMotionValue(n, r)), Oi.current || $g(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : fn.current, process.env.NODE_ENV !== "production" && $n(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
10992
10988
  }
10993
10989
  unmount() {
10994
10990
  this.projection && this.projection.unmount(), an(this.notifyUpdate), an(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
@@ -11057,7 +11053,7 @@ class $i {
11057
11053
  const s = "on" + a, o = t[s];
11058
11054
  o && (this.propEventSubscriptions[a] = this.on(a, o));
11059
11055
  }
11060
- this.prevMotionValues = Gg(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
11056
+ this.prevMotionValues = Kg(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
11061
11057
  }
11062
11058
  getProps() {
11063
11059
  return this.props;
@@ -11123,7 +11119,7 @@ class $i {
11123
11119
  readValue(t, r) {
11124
11120
  var n;
11125
11121
  let a = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (n = this.getBaseTargetFromProps(this.props, t)) !== null && n !== void 0 ? n : this.readValueFromInstance(this.current, t, this.options);
11126
- return a != null && (typeof a == "string" && (Ti(a) || mi(a)) ? a = parseFloat(a) : !zg(a) && pt.test(r) && (a = wi(t, r)), this.setBaseTarget(t, ne(a) ? a.get() : a)), ne(a) ? a.get() : a;
11122
+ return a != null && (typeof a == "string" && (Ti(a) || mi(a)) ? a = parseFloat(a) : !Fg(a) && pt.test(r) && (a = wi(t, r)), this.setBaseTarget(t, ne(a) ? a.get() : a)), ne(a) ? a.get() : a;
11127
11123
  }
11128
11124
  /**
11129
11125
  * Set the base target to later animate back to. This is currently
@@ -11177,15 +11173,15 @@ class Di extends $i {
11177
11173
  }));
11178
11174
  }
11179
11175
  }
11180
- const Fi = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Yg = {
11176
+ const Fi = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Gg = {
11181
11177
  x: "translateX",
11182
11178
  y: "translateY",
11183
11179
  z: "translateZ",
11184
11180
  transformPerspective: "perspective"
11185
- }, Jg = ht.length;
11186
- function qg(e, t, r) {
11181
+ }, Yg = ht.length;
11182
+ function Jg(e, t, r) {
11187
11183
  let n = "", a = !0;
11188
- for (let s = 0; s < Jg; s++) {
11184
+ for (let s = 0; s < Yg; s++) {
11189
11185
  const o = ht[s], i = e[o];
11190
11186
  if (i === void 0)
11191
11187
  continue;
@@ -11194,7 +11190,7 @@ function qg(e, t, r) {
11194
11190
  const d = Fi(i, Wn[o]);
11195
11191
  if (!l) {
11196
11192
  a = !1;
11197
- const u = Yg[o] || o;
11193
+ const u = Gg[o] || o;
11198
11194
  n += `${u}(${d}) `;
11199
11195
  }
11200
11196
  r && (t[o] = d);
@@ -11218,21 +11214,21 @@ function zi(e, t, r) {
11218
11214
  l.startsWith("origin") ? (i = !0, s[l] = u) : n[l] = u;
11219
11215
  }
11220
11216
  }
11221
- if (t.transform || (o || r ? n.transform = qg(t, e.transform, r) : n.transform && (n.transform = "none")), i) {
11217
+ if (t.transform || (o || r ? n.transform = Jg(t, e.transform, r) : n.transform && (n.transform = "none")), i) {
11222
11218
  const { originX: l = "50%", originY: d = "50%", originZ: u = 0 } = s;
11223
11219
  n.transformOrigin = `${l} ${d} ${u}`;
11224
11220
  }
11225
11221
  }
11226
- const Xg = {
11222
+ const qg = {
11227
11223
  offset: "stroke-dashoffset",
11228
11224
  array: "stroke-dasharray"
11229
- }, Zg = {
11225
+ }, Xg = {
11230
11226
  offset: "strokeDashoffset",
11231
11227
  array: "strokeDasharray"
11232
11228
  };
11233
- function Qg(e, t, r = 1, n = 0, a = !0) {
11229
+ function Zg(e, t, r = 1, n = 0, a = !0) {
11234
11230
  e.pathLength = 1;
11235
- const s = a ? Xg : Zg;
11231
+ const s = a ? qg : Xg;
11236
11232
  e[s.offset] = O.transform(-n);
11237
11233
  const o = O.transform(t), i = O.transform(r);
11238
11234
  e[s.array] = `${o} ${i}`;
@@ -11240,11 +11236,11 @@ function Qg(e, t, r = 1, n = 0, a = !0) {
11240
11236
  function Es(e, t, r) {
11241
11237
  return typeof e == "string" ? e : O.transform(t + r * e);
11242
11238
  }
11243
- function e1(e, t, r) {
11239
+ function Qg(e, t, r) {
11244
11240
  const n = Es(t, e.x, e.width), a = Es(r, e.y, e.height);
11245
11241
  return `${n} ${a}`;
11246
11242
  }
11247
- function t1(e, {
11243
+ function e1(e, {
11248
11244
  attrX: t,
11249
11245
  attrY: r,
11250
11246
  attrScale: n,
@@ -11262,7 +11258,7 @@ function t1(e, {
11262
11258
  }
11263
11259
  e.attrs = e.style, e.style = {};
11264
11260
  const { attrs: f, style: m, dimensions: g } = e;
11265
- f.transform && (g && (m.transform = f.transform), delete f.transform), g && (a !== void 0 || s !== void 0 || m.transform) && (m.transformOrigin = e1(g, a !== void 0 ? a : 0.5, s !== void 0 ? s : 0.5)), t !== void 0 && (f.x = t), r !== void 0 && (f.y = r), n !== void 0 && (f.scale = n), o !== void 0 && Qg(f, o, i, l, !1);
11261
+ f.transform && (g && (m.transform = f.transform), delete f.transform), g && (a !== void 0 || s !== void 0 || m.transform) && (m.transformOrigin = Qg(g, a !== void 0 ? a : 0.5, s !== void 0 ? s : 0.5)), t !== void 0 && (f.x = t), r !== void 0 && (f.y = r), n !== void 0 && (f.scale = n), o !== void 0 && Zg(f, o, i, l, !1);
11266
11262
  }
11267
11263
  const Ui = /* @__PURE__ */ new Set([
11268
11264
  "baseFrequency",
@@ -11288,8 +11284,8 @@ const Ui = /* @__PURE__ */ new Set([
11288
11284
  "startOffset",
11289
11285
  "textLength",
11290
11286
  "lengthAdjust"
11291
- ]), r1 = (e) => typeof e == "string" && e.toLowerCase() === "svg";
11292
- function n1(e, t) {
11287
+ ]), t1 = (e) => typeof e == "string" && e.toLowerCase() === "svg";
11288
+ function r1(e, t) {
11293
11289
  try {
11294
11290
  t.dimensions = typeof e.getBBox == "function" ? e.getBBox() : e.getBoundingClientRect();
11295
11291
  } catch {
@@ -11306,23 +11302,23 @@ function Hi(e, { style: t, vars: r }, n, a) {
11306
11302
  for (const s in r)
11307
11303
  e.style.setProperty(s, r[s]);
11308
11304
  }
11309
- function a1(e, t, r, n) {
11305
+ function n1(e, t, r, n) {
11310
11306
  Hi(e, t, void 0, n);
11311
11307
  for (const a in t.attrs)
11312
11308
  e.setAttribute(Ui.has(a) ? a : Dn(a), t.attrs[a]);
11313
11309
  }
11314
- const s1 = {};
11315
- function o1(e, { layout: t, layoutId: r }) {
11316
- return ft.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!s1[e] || e === "opacity");
11310
+ const a1 = {};
11311
+ function s1(e, { layout: t, layoutId: r }) {
11312
+ return ft.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!a1[e] || e === "opacity");
11317
11313
  }
11318
11314
  function ji(e, t, r) {
11319
11315
  var n;
11320
11316
  const { style: a } = e, s = {};
11321
11317
  for (const o in a)
11322
- (ne(a[o]) || t.style && ne(t.style[o]) || o1(o, e) || ((n = r == null ? void 0 : r.getValue(o)) === null || n === void 0 ? void 0 : n.liveStyle) !== void 0) && (s[o] = a[o]);
11318
+ (ne(a[o]) || t.style && ne(t.style[o]) || s1(o, e) || ((n = r == null ? void 0 : r.getValue(o)) === null || n === void 0 ? void 0 : n.liveStyle) !== void 0) && (s[o] = a[o]);
11323
11319
  return s;
11324
11320
  }
11325
- function i1(e, t, r) {
11321
+ function o1(e, t, r) {
11326
11322
  const n = ji(e, t, r);
11327
11323
  for (const a in e)
11328
11324
  if (ne(e[a]) || ne(t[a])) {
@@ -11331,10 +11327,10 @@ function i1(e, t, r) {
11331
11327
  }
11332
11328
  return n;
11333
11329
  }
11334
- class l1 extends Di {
11330
+ class i1 extends Di {
11335
11331
  constructor() {
11336
11332
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Zn, this.updateDimensions = () => {
11337
- this.current && !this.renderState.dimensions && n1(this.current, this.renderState);
11333
+ this.current && !this.renderState.dimensions && r1(this.current, this.renderState);
11338
11334
  };
11339
11335
  }
11340
11336
  getBaseTargetFromProps(t, r) {
@@ -11348,28 +11344,28 @@ class l1 extends Di {
11348
11344
  return r = Ui.has(r) ? r : Dn(r), t.getAttribute(r);
11349
11345
  }
11350
11346
  scrapeMotionValuesFromProps(t, r, n) {
11351
- return i1(t, r, n);
11347
+ return o1(t, r, n);
11352
11348
  }
11353
11349
  onBindTransform() {
11354
11350
  this.current && !this.renderState.dimensions && Ie.postRender(this.updateDimensions);
11355
11351
  }
11356
11352
  build(t, r, n) {
11357
- t1(t, r, this.isSVGTag, n.transformTemplate);
11353
+ e1(t, r, this.isSVGTag, n.transformTemplate);
11358
11354
  }
11359
11355
  renderInstance(t, r, n, a) {
11360
- a1(t, r, n, a);
11356
+ n1(t, r, n, a);
11361
11357
  }
11362
11358
  mount(t) {
11363
- this.isSVGTag = r1(t.tagName), super.mount(t);
11359
+ this.isSVGTag = t1(t.tagName), super.mount(t);
11364
11360
  }
11365
11361
  }
11366
- function c1({ top: e, left: t, right: r, bottom: n }) {
11362
+ function l1({ top: e, left: t, right: r, bottom: n }) {
11367
11363
  return {
11368
11364
  x: { min: t, max: r },
11369
11365
  y: { min: e, max: n }
11370
11366
  };
11371
11367
  }
11372
- function d1(e, t) {
11368
+ function c1(e, t) {
11373
11369
  if (!t)
11374
11370
  return e;
11375
11371
  const r = t({ x: e.left, y: e.top }), n = t({ x: e.right, y: e.bottom });
@@ -11380,13 +11376,13 @@ function d1(e, t) {
11380
11376
  right: n.x
11381
11377
  };
11382
11378
  }
11383
- function u1(e, t) {
11384
- return c1(d1(e.getBoundingClientRect(), t));
11379
+ function d1(e, t) {
11380
+ return l1(c1(e.getBoundingClientRect(), t));
11385
11381
  }
11386
- function h1(e) {
11382
+ function u1(e) {
11387
11383
  return window.getComputedStyle(e);
11388
11384
  }
11389
- class f1 extends Di {
11385
+ class h1 extends Di {
11390
11386
  constructor() {
11391
11387
  super(...arguments), this.type = "html", this.renderInstance = Hi;
11392
11388
  }
@@ -11395,12 +11391,12 @@ class f1 extends Di {
11395
11391
  const n = Kn(r);
11396
11392
  return n && n.default || 0;
11397
11393
  } else {
11398
- const n = h1(t), a = (Ii(r) ? n.getPropertyValue(r) : n[r]) || 0;
11394
+ const n = u1(t), a = (Ii(r) ? n.getPropertyValue(r) : n[r]) || 0;
11399
11395
  return typeof a == "string" ? a.trim() : a;
11400
11396
  }
11401
11397
  }
11402
11398
  measureInstanceViewportBox(t, { transformPagePoint: r }) {
11403
- return u1(t, r);
11399
+ return d1(t, r);
11404
11400
  }
11405
11401
  build(t, r, n) {
11406
11402
  zi(t, r, n.transformTemplate);
@@ -11409,15 +11405,15 @@ class f1 extends Di {
11409
11405
  return ji(t, r, n);
11410
11406
  }
11411
11407
  }
11412
- function m1(e, t) {
11408
+ function f1(e, t) {
11413
11409
  return e in t;
11414
11410
  }
11415
- class p1 extends $i {
11411
+ class m1 extends $i {
11416
11412
  constructor() {
11417
11413
  super(...arguments), this.type = "object";
11418
11414
  }
11419
11415
  readValueFromInstance(t, r) {
11420
- if (m1(r, t)) {
11416
+ if (f1(r, t)) {
11421
11417
  const n = t[r];
11422
11418
  if (typeof n == "string" || typeof n == "number")
11423
11419
  return n;
@@ -11441,7 +11437,7 @@ class p1 extends $i {
11441
11437
  return 0;
11442
11438
  }
11443
11439
  }
11444
- function g1(e) {
11440
+ function p1(e) {
11445
11441
  const t = {
11446
11442
  presenceContext: null,
11447
11443
  props: {},
@@ -11455,10 +11451,10 @@ function g1(e) {
11455
11451
  },
11456
11452
  latestValues: {}
11457
11453
  }
11458
- }, r = Lg(e) ? new l1(t) : new f1(t);
11454
+ }, r = Og(e) ? new i1(t) : new h1(t);
11459
11455
  r.mount(e), St.set(e, r);
11460
11456
  }
11461
- function y1(e) {
11457
+ function g1(e) {
11462
11458
  const t = {
11463
11459
  presenceContext: null,
11464
11460
  props: {},
@@ -11468,53 +11464,53 @@ function y1(e) {
11468
11464
  },
11469
11465
  latestValues: {}
11470
11466
  }
11471
- }, r = new p1(t);
11467
+ }, r = new m1(t);
11472
11468
  r.mount(e), St.set(e, r);
11473
11469
  }
11474
- function b1(e, t, r) {
11470
+ function y1(e, t, r) {
11475
11471
  const n = ne(e) ? e : At(e);
11476
11472
  return n.start(Bi("", n, t, r)), n.animation;
11477
11473
  }
11478
- function v1(e, t) {
11474
+ function b1(e, t) {
11479
11475
  return ne(e) || typeof e == "number" || typeof e == "string" && !Ln(t);
11480
11476
  }
11481
11477
  function Wi(e, t, r, n) {
11482
11478
  const a = [];
11483
- if (v1(e, t))
11484
- a.push(b1(e, Ln(t) && t.default || t, r && (r.default || r)));
11479
+ if (b1(e, t))
11480
+ a.push(y1(e, Ln(t) && t.default || t, r && (r.default || r)));
11485
11481
  else {
11486
11482
  const s = Qo(e, t, n), o = s.length;
11487
11483
  De(!!o, "No valid elements provided.");
11488
11484
  for (let i = 0; i < o; i++) {
11489
- const l = s[i], d = l instanceof Element ? g1 : y1;
11485
+ const l = s[i], d = l instanceof Element ? p1 : g1;
11490
11486
  St.has(l) || d(l);
11491
11487
  const u = St.get(l), h = { ...r };
11492
- "delay" in h && typeof h.delay == "function" && (h.delay = h.delay(i, o)), a.push(...Og(u, { ...t, transition: h }, {}));
11488
+ "delay" in h && typeof h.delay == "function" && (h.delay = h.delay(i, o)), a.push(...Bg(u, { ...t, transition: h }, {}));
11493
11489
  }
11494
11490
  }
11495
11491
  return a;
11496
11492
  }
11497
- function w1(e, t, r) {
11493
+ function v1(e, t, r) {
11498
11494
  const n = [];
11499
- return Ym(e, t, r, { spring: On }).forEach(({ keyframes: s, transition: o }, i) => {
11495
+ return Gm(e, t, r, { spring: On }).forEach(({ keyframes: s, transition: o }, i) => {
11500
11496
  n.push(...Wi(i, s, o));
11501
11497
  }), n;
11502
11498
  }
11503
- function k1(e) {
11499
+ function w1(e) {
11504
11500
  return Array.isArray(e) && e.some(Array.isArray);
11505
11501
  }
11506
- function x1(e) {
11502
+ function k1(e) {
11507
11503
  function t(r, n, a) {
11508
11504
  let s = [];
11509
- return k1(r) ? s = w1(r, n, e) : s = Wi(r, n, a, e), new Wo(s);
11505
+ return w1(r) ? s = v1(r, n, e) : s = Wi(r, n, a, e), new Wo(s);
11510
11506
  }
11511
11507
  return t;
11512
11508
  }
11513
- const T1 = x1(), $r = "";
11514
- function _1(e) {
11509
+ const x1 = k1(), $r = "";
11510
+ function T1(e) {
11515
11511
  const [t, r] = $(0), [n, a] = $(0), [s, o] = $(e);
11516
11512
  return s !== e && (o(e), a(e.startsWith(s) ? t : 0)), L(() => {
11517
- const i = T1(n, e.split($r).length, {
11513
+ const i = x1(n, e.split($r).length, {
11518
11514
  duration: 2,
11519
11515
  ease: "easeOut",
11520
11516
  onUpdate(l) {
@@ -11527,9 +11523,9 @@ function _1(e) {
11527
11523
  const Cs = Sl(
11528
11524
  () => import(
11529
11525
  /* webpackChunkName: "LazyMessageAssistant" */
11530
- "./ChatBubbleAssistant.DmfaaNKi.js"
11526
+ "./ChatBubbleAssistant.DJmgnp6c.js"
11531
11527
  ).then((e) => e.ChatBubbleAssistant)
11532
- ), I1 = Y.memo(
11528
+ ), _1 = Y.memo(
11533
11529
  ({
11534
11530
  role: e,
11535
11531
  content: t,
@@ -11538,7 +11534,7 @@ const Cs = Sl(
11538
11534
  }) => {
11539
11535
  const {
11540
11536
  state: { restoring: a }
11541
- } = W(ie), s = _1(t || "");
11537
+ } = W(ie), s = T1(t || "");
11542
11538
  return e === bl && t ? /* @__PURE__ */ c(fa, { fallback: /* @__PURE__ */ c("span", {}), children: /* @__PURE__ */ c(
11543
11539
  Cs,
11544
11540
  {
@@ -11546,9 +11542,9 @@ const Cs = Sl(
11546
11542
  annotations: r,
11547
11543
  toolName: n
11548
11544
  }
11549
- ) }) : e === zr && t ? /* @__PURE__ */ c(fa, { fallback: /* @__PURE__ */ c("span", {}), children: /* @__PURE__ */ c(Cs, { content: t, role: zr }) }) : e === vl && t ? /* @__PURE__ */ c(Cm, { content: t }) : null;
11545
+ ) }) : e === zr && t ? /* @__PURE__ */ c(fa, { fallback: /* @__PURE__ */ c("span", {}), children: /* @__PURE__ */ c(Cs, { content: t, role: zr }) }) : e === vl && t ? /* @__PURE__ */ c(Em, { content: t }) : null;
11550
11546
  }
11551
- ), E1 = () => {
11547
+ ), I1 = () => {
11552
11548
  const {
11553
11549
  state: { loading: e }
11554
11550
  } = W(ie), { messages: t } = dt();
@@ -11557,7 +11553,7 @@ const Cs = Sl(
11557
11553
  let a = null;
11558
11554
  const { role: s, content: o, messageId: i, annotations: l, toolInvocations: d } = r, u = i ? `${i}-${s}` : `${n}-${s}`;
11559
11555
  return d && d.length > 0 && (a = d[0].toolName), o ? /* @__PURE__ */ c(
11560
- I1,
11556
+ _1,
11561
11557
  {
11562
11558
  role: s,
11563
11559
  content: o,
@@ -11569,7 +11565,7 @@ const Cs = Sl(
11569
11565
  }),
11570
11566
  e && /* @__PURE__ */ c(tn, { children: /* @__PURE__ */ c(Xa, { type: "dots" }) })
11571
11567
  ] }) : null;
11572
- }, C1 = () => {
11568
+ }, E1 = () => {
11573
11569
  const { isAuthenticated: e } = de(), { ref: t, inViewport: r } = hc(), {
11574
11570
  state: { footerPosition: n, footerHeight: a, footerOffset: s }
11575
11571
  } = W(Tn), o = M(0), i = wl({
@@ -11581,11 +11577,11 @@ const Cs = Sl(
11581
11577
  }, [n, a, s]), /* @__PURE__ */ C(ae, { children: [
11582
11578
  /* @__PURE__ */ C("div", { className: i, children: [
11583
11579
  /* @__PURE__ */ c(xl, {}),
11584
- /* @__PURE__ */ c(E1, {}),
11580
+ /* @__PURE__ */ c(I1, {}),
11585
11581
  /* @__PURE__ */ c("div", { ref: t, className: "scroll-marker" })
11586
11582
  ] }),
11587
11583
  /* @__PURE__ */ c(
11588
- Ph,
11584
+ Vh,
11589
11585
  {
11590
11586
  show: !r && n === kt,
11591
11587
  bottom: o.current
@@ -11614,7 +11610,7 @@ function Ki({
11614
11610
  }), [T, E] = bt(nd, {
11615
11611
  prompt: "",
11616
11612
  lastTriggeredTimestamp: 0
11617
- }), [N, b] = bt(od, {
11613
+ }), [N, b] = bt(sd, {
11618
11614
  provider: "",
11619
11615
  // OpenAI, Anthropic, etc.
11620
11616
  privateChat: !1,
@@ -11622,7 +11618,7 @@ function Ki({
11622
11618
  loading: !1,
11623
11619
  restoring: !1,
11624
11620
  usage: 0,
11625
- lastTriggeredTimestamp: 0,
11621
+ lastStreamingTimestamp: 0,
11626
11622
  lastResetTimestamp: 0
11627
11623
  });
11628
11624
  Tl({
@@ -11680,7 +11676,7 @@ function Ki({
11680
11676
  setInitialMessages: h
11681
11677
  },
11682
11678
  children: /* @__PURE__ */ C(
11683
- au,
11679
+ nu,
11684
11680
  {
11685
11681
  value: {
11686
11682
  id: l,
@@ -11709,7 +11705,7 @@ function Ki({
11709
11705
  className: ha({
11710
11706
  extraClass: "mt-5"
11711
11707
  }),
11712
- children: /* @__PURE__ */ c(Af, { isComponent: e })
11708
+ children: /* @__PURE__ */ c(Sf, { isComponent: e })
11713
11709
  }
11714
11710
  ),
11715
11711
  /* @__PURE__ */ c(
@@ -11723,10 +11719,10 @@ function Ki({
11723
11719
  style: {
11724
11720
  height: a
11725
11721
  },
11726
- children: /* @__PURE__ */ c(C1, {})
11722
+ children: /* @__PURE__ */ c(E1, {})
11727
11723
  }
11728
11724
  ),
11729
- /* @__PURE__ */ c(Wh, { isComponent: e })
11725
+ /* @__PURE__ */ c(jh, { isComponent: e })
11730
11726
  ]
11731
11727
  }
11732
11728
  )
@@ -11738,9 +11734,9 @@ function Ki({
11738
11734
  );
11739
11735
  }
11740
11736
  Ki.displayName = "App";
11741
- const P1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Ki }, Symbol.toStringTag, { value: "Module" }));
11737
+ const V1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Ki }, Symbol.toStringTag, { value: "Module" }));
11742
11738
  export {
11743
- P1 as App,
11739
+ V1 as App,
11744
11740
  ie as ChatContext,
11745
11741
  at as E,
11746
11742
  tn as Re,