@versini/sassysaint 8.107.0 → 8.107.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/chunks/{AboutChangelog.SjeBKoP3.js → AboutChangelog.Bka_dEqx.js} +2 -2
  2. package/dist/chunks/{AboutEntry.Dx70PfSW.js → AboutEntry.DUtXxWlx.js} +7 -7
  3. package/dist/chunks/{App.CRK1D8_p.js → App.BERAIqpH.js} +37 -33
  4. package/dist/chunks/{Bubble.BfOIcmYO.js → Bubble.CMHhu8Uu.js} +1 -1
  5. package/dist/chunks/{Chart.BDkv6_qF.js → Chart.CaVz0BaD.js} +2 -2
  6. package/dist/chunks/{ChatBubbleAssistant.BXp6-ZoJ.js → ChatBubbleAssistant.C2BK2j1e.js} +156 -161
  7. package/dist/chunks/{ChatBubbleUser.BcziRDGl.js → ChatBubbleUser.DiLNCz62.js} +3 -3
  8. package/dist/chunks/{ChatHistoryTable.Dh8i_P43.js → ChatHistoryTable.stVdzUh4.js} +4 -4
  9. package/dist/chunks/{HistoryEntry.CRqDuJuI.js → HistoryEntry.Cfj7zpsO.js} +6 -6
  10. package/dist/chunks/{LoginEntry.MulnQ2ox.js → LoginEntry.NKL57b20.js} +4 -4
  11. package/dist/chunks/{LogoEntry.DYecYZ2Y.js → LogoEntry._hzptl5K.js} +1 -1
  12. package/dist/chunks/{MemoriesEntry.agins9xZ.js → MemoriesEntry.d_q-JhJM.js} +5 -5
  13. package/dist/chunks/{ProfileEntry.DcvJm9lG.js → ProfileEntry.DIQtOnWx.js} +4 -4
  14. package/dist/chunks/{SettingsEntry.CjUNaeTF.js → SettingsEntry.DzdlYRls.js} +5 -5
  15. package/dist/chunks/{Table.CAFliCT0.js → Table.DC7e-PME.js} +1 -1
  16. package/dist/chunks/{UsageEntry._XHUaG2y.js → UsageEntry.BH_ezlOO.js} +5 -5
  17. package/dist/chunks/{index.CGRIKPif.js → index.-n8MsBkX.js} +1 -1
  18. package/dist/chunks/{index.mPjUzcCU.js → index.Bc-tiddM.js} +1 -1
  19. package/dist/chunks/{index.COrehOGK.js → index.BeTlnSxo.js} +2 -2
  20. package/dist/chunks/{index.COvsBKt7.js → index.CBzjyG-A.js} +2 -2
  21. package/dist/chunks/{index.ClDN1LM3.js → index.D2X4dLEq.js} +3 -3
  22. package/dist/chunks/{index.Cvhs29M0.js → index.DAJKVS9Y.js} +1 -1
  23. package/dist/chunks/{index.BxFuyW85.js → index.DvprFu44.js} +1 -1
  24. package/dist/chunks/{index.DnIWTzcM.js → index.NT6ZWB8q.js} +1 -1
  25. package/dist/chunks/{index.D2r8OZJ8.js → index.ogleoHzE.js} +1 -1
  26. package/dist/chunks/{useMarkdown.B8MP9bLa.js → useMarkdown.CUQaOUBB.js} +7 -7
  27. package/dist/components/SassySaint/SassySaint.js +1 -1
  28. package/dist/index.js +4 -4
  29. package/package.json +3 -3
@@ -1,10 +1,10 @@
1
1
  import { jsx as rs } from "react/jsx-runtime";
2
- import { n as as, useUserPreferences as os, formatTimestamp as vt } from "./index.COrehOGK.js";
3
- import { numberFormatter as ls, pluralize as us, AsyncBubble as cs } from "./App.CRK1D8_p.js";
2
+ import { n as as, useUserPreferences as os, formatTimestamp as vt } from "./index.BeTlnSxo.js";
3
+ import { numberFormatter as ls, pluralize as us, AsyncBubble as cs } from "./App.BERAIqpH.js";
4
4
  import Ht from "clsx";
5
5
  import fs, { useState as Ae, useEffect as Zt, useContext as Vt } from "react";
6
- import { useMarkdown as hs } from "./useMarkdown.B8MP9bLa.js";
7
- import { ChatContext as ds, AppContext as ps } from "./LogoEntry.DYecYZ2Y.js";
6
+ import { useMarkdown as hs } from "./useMarkdown.CUQaOUBB.js";
7
+ import { ChatContext as ds, AppContext as ps } from "./LogoEntry._hzptl5K.js";
8
8
  /*!
9
9
  @versini/ui-bubble v10.1.0
10
10
  © 2025 gizmette.com
@@ -84,9 +84,9 @@ const O = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, P = /* @__NO_SIDE_EFFECTS__
84
84
  function nn(e, t) {
85
85
  return t ? e * (1e3 / t) : 0;
86
86
  }
87
- const wt = /* @__PURE__ */ new Set();
87
+ const St = /* @__PURE__ */ new Set();
88
88
  function sn(e, t, n) {
89
- e || wt.has(t) || (console.warn(Pe(t, n)), wt.add(t));
89
+ e || St.has(t) || (console.warn(Pe(t, n)), St.add(t));
90
90
  }
91
91
  const bs = (e, t, n) => {
92
92
  const s = t - e;
@@ -105,18 +105,18 @@ function pe(e, t, n, s) {
105
105
  const i = (r) => Vs(r, 0, 1, e, n);
106
106
  return (r) => r === 0 || r === 1 ? r : rn(i(r), t, s);
107
107
  }
108
- const an = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, on = (e) => (t) => 1 - e(1 - t), ln = /* @__PURE__ */ pe(0.33, 1.53, 0.69, 0.99), Je = /* @__PURE__ */ on(ln), un = /* @__PURE__ */ an(Je), cn = (e) => (e *= 2) < 1 ? 0.5 * Je(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Qe = (e) => 1 - Math.sin(Math.acos(e)), ws = on(Qe), fn = an(Qe), Ss = /* @__PURE__ */ pe(0.42, 0, 1, 1), xs = /* @__PURE__ */ pe(0, 0, 0.58, 1), hn = /* @__PURE__ */ pe(0.42, 0, 0.58, 1), dn = (e) => Array.isArray(e) && typeof e[0] != "number";
108
+ const an = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, on = (e) => (t) => 1 - e(1 - t), ln = /* @__PURE__ */ pe(0.33, 1.53, 0.69, 0.99), Je = /* @__PURE__ */ on(ln), un = /* @__PURE__ */ an(Je), cn = (e) => (e *= 2) < 1 ? 0.5 * Je(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Qe = (e) => 1 - Math.sin(Math.acos(e)), Ss = on(Qe), fn = an(Qe), ws = /* @__PURE__ */ pe(0.42, 0, 1, 1), xs = /* @__PURE__ */ pe(0, 0, 0.58, 1), hn = /* @__PURE__ */ pe(0.42, 0, 0.58, 1), dn = (e) => Array.isArray(e) && typeof e[0] != "number";
109
109
  function pn(e, t) {
110
110
  return dn(e) ? e[bs(0, e.length, t)] : e;
111
111
  }
112
- const mn = (e) => Array.isArray(e) && typeof e[0] == "number", St = {
112
+ const mn = (e) => Array.isArray(e) && typeof e[0] == "number", wt = {
113
113
  linear: H,
114
- easeIn: Ss,
114
+ easeIn: ws,
115
115
  easeInOut: hn,
116
116
  easeOut: xs,
117
117
  circIn: Qe,
118
118
  circInOut: fn,
119
- circOut: ws,
119
+ circOut: Ss,
120
120
  backIn: Je,
121
121
  backInOut: un,
122
122
  backOut: ln,
@@ -127,7 +127,7 @@ const mn = (e) => Array.isArray(e) && typeof e[0] == "number", St = {
127
127
  const [t, n, s, i] = e;
128
128
  return pe(t, n, s, i);
129
129
  } else if (As(e))
130
- return I(St[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), St[e];
130
+ return I(wt[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), wt[e];
131
131
  return e;
132
132
  }, be = [
133
133
  "setup",
@@ -192,18 +192,18 @@ function gn(e, t) {
192
192
  delta: 0,
193
193
  timestamp: 0,
194
194
  isProcessing: !1
195
- }, r = () => n = !0, a = be.reduce((w, V) => (w[V] = Ms(r), w), {}), { setup: o, read: l, resolveKeyframes: c, preUpdate: u, update: f, preRender: h, render: g, postRender: y } = a, b = () => {
196
- const w = k.useManualTiming ? i.timestamp : performance.now();
197
- n = !1, k.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(w - i.timestamp, Cs), 1)), i.timestamp = w, i.isProcessing = !0, o.process(i), l.process(i), c.process(i), u.process(i), f.process(i), h.process(i), g.process(i), y.process(i), i.isProcessing = !1, n && t && (s = !1, e(b));
198
- }, v = () => {
195
+ }, r = () => n = !0, a = be.reduce((S, v) => (S[v] = Ms(r), S), {}), { setup: o, read: l, resolveKeyframes: c, preUpdate: u, update: f, preRender: h, render: g, postRender: y } = a, b = () => {
196
+ const S = k.useManualTiming ? i.timestamp : performance.now();
197
+ n = !1, k.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(S - i.timestamp, Cs), 1)), i.timestamp = S, i.isProcessing = !0, o.process(i), l.process(i), c.process(i), u.process(i), f.process(i), h.process(i), g.process(i), y.process(i), i.isProcessing = !1, n && t && (s = !1, e(b));
198
+ }, V = () => {
199
199
  n = !0, s = !0, i.isProcessing || e(b);
200
200
  };
201
- return { schedule: be.reduce((w, V) => {
202
- const p = a[V];
203
- return w[V] = (S, C = !1, m = !1) => (n || v(), p.schedule(S, C, m)), w;
204
- }, {}), cancel: (w) => {
205
- for (let V = 0; V < be.length; V++)
206
- a[be[V]].cancel(w);
201
+ return { schedule: be.reduce((S, v) => {
202
+ const p = a[v];
203
+ return S[v] = (w, C = !1, m = !1) => (n || V(), p.schedule(w, C, m)), S;
204
+ }, {}), cancel: (S) => {
205
+ for (let v = 0; v < be.length; v++)
206
+ a[be[v]].cancel(S);
207
207
  }, state: i, steps: a };
208
208
  }
209
209
  const { schedule: K, cancel: Oe, state: Ve } = /* @__PURE__ */ gn(typeof requestAnimationFrame < "u" ? requestAnimationFrame : H, !0);
@@ -265,7 +265,7 @@ const Be = {
265
265
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
266
266
  parse: parseFloat,
267
267
  transform: (t) => `${t}${e}`
268
- }), L = /* @__PURE__ */ me("deg"), q = /* @__PURE__ */ me("%"), d = /* @__PURE__ */ me("px"), Is = /* @__PURE__ */ me("vh"), Ns = /* @__PURE__ */ me("vw"), At = {
268
+ }), $ = /* @__PURE__ */ me("deg"), q = /* @__PURE__ */ me("%"), d = /* @__PURE__ */ me("px"), Is = /* @__PURE__ */ me("vh"), Ns = /* @__PURE__ */ me("vw"), At = {
269
269
  ...q,
270
270
  parse: (e) => q.parse(e) / 100,
271
271
  transform: (e) => q.transform(e * 100)
@@ -285,7 +285,7 @@ const Be = {
285
285
  function Ks(e) {
286
286
  return isNaN(e) && typeof e == "string" && (e.match(tt)?.length || 0) + (e.match(ks)?.length || 0) > 0;
287
287
  }
288
- const vn = "number", Vn = "color", _s = "var", Ls = "var(", Mt = "${}", $s = /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;
288
+ const vn = "number", Vn = "color", _s = "var", $s = "var(", Mt = "${}", Ls = /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;
289
289
  function ue(e) {
290
290
  const t = e.toString(), n = [], s = {
291
291
  color: [],
@@ -293,13 +293,13 @@ function ue(e) {
293
293
  var: []
294
294
  }, i = [];
295
295
  let r = 0;
296
- const o = t.replace($s, (l) => (F.test(l) ? (s.color.push(r), i.push(Vn), n.push(F.parse(l))) : l.startsWith(Ls) ? (s.var.push(r), i.push(_s), n.push(l)) : (s.number.push(r), i.push(vn), n.push(parseFloat(l))), ++r, Mt)).split(Mt);
296
+ const o = t.replace(Ls, (l) => (F.test(l) ? (s.color.push(r), i.push(Vn), n.push(F.parse(l))) : l.startsWith($s) ? (s.var.push(r), i.push(_s), n.push(l)) : (s.number.push(r), i.push(vn), n.push(parseFloat(l))), ++r, Mt)).split(Mt);
297
297
  return { values: n, split: o, indexes: s, types: i };
298
298
  }
299
- function wn(e) {
299
+ function Sn(e) {
300
300
  return ue(e).values;
301
301
  }
302
- function Sn(e) {
302
+ function wn(e) {
303
303
  const { split: t, types: n } = ue(e), s = t.length;
304
304
  return (i) => {
305
305
  let r = "";
@@ -313,13 +313,13 @@ function Sn(e) {
313
313
  }
314
314
  const Ws = (e) => typeof e == "number" ? 0 : F.test(e) ? F.getAnimatableNone(e) : e;
315
315
  function Us(e) {
316
- const t = wn(e);
317
- return Sn(e)(t.map(Ws));
316
+ const t = Sn(e);
317
+ return wn(e)(t.map(Ws));
318
318
  }
319
- const $ = {
319
+ const L = {
320
320
  test: Ks,
321
- parse: wn,
322
- createTransformer: Sn,
321
+ parse: Sn,
322
+ createTransformer: wn,
323
323
  getAnimatableNone: Us
324
324
  };
325
325
  function Fe(e, t, n) {
@@ -341,7 +341,7 @@ function js({ hue: e, saturation: t, lightness: n, alpha: s }) {
341
341
  alpha: s
342
342
  };
343
343
  }
344
- function we(e, t) {
344
+ function Se(e, t) {
345
345
  return (n) => n > 0 ? t : e;
346
346
  }
347
347
  const J = (e, t, n) => e + (t - e) * n, De = (e, t, n) => {
@@ -358,7 +358,7 @@ function Ct(e) {
358
358
  const Ft = (e, t) => {
359
359
  const n = Ct(e), s = Ct(t);
360
360
  if (!n || !s)
361
- return we(e, t);
361
+ return Se(e, t);
362
362
  const i = { ...n };
363
363
  return (r) => (i.red = De(n.red, s.red, r), i.green = De(n.green, s.green, r), i.blue = De(n.blue, s.blue, r), i.alpha = J(n.alpha, s.alpha, r), W.transform(i));
364
364
  }, Ie = /* @__PURE__ */ new Set(["none", "hidden"]);
@@ -369,7 +369,7 @@ function Xs(e, t) {
369
369
  return (n) => J(e, t, n);
370
370
  }
371
371
  function st(e) {
372
- return typeof e == "number" ? Xs : typeof e == "string" ? et(e) ? we : F.test(e) ? Ft : Zs : Array.isArray(e) ? xn : typeof e == "object" ? F.test(e) ? Ft : qs : we;
372
+ return typeof e == "number" ? Xs : typeof e == "string" ? et(e) ? Se : F.test(e) ? Ft : Zs : Array.isArray(e) ? xn : typeof e == "object" ? F.test(e) ? Ft : qs : Se;
373
373
  }
374
374
  function xn(e, t) {
375
375
  const n = [...e], s = n.length, i = e.map((r, a) => st(r)(r, t[a]));
@@ -398,8 +398,8 @@ function Hs(e, t) {
398
398
  return n;
399
399
  }
400
400
  const Zs = (e, t) => {
401
- const n = $.createTransformer(t), s = ue(e), i = ue(t);
402
- return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? Ie.has(e) && !i.values.length || Ie.has(t) && !s.values.length ? zs(e, t) : He(xn(Hs(s, i), i.values), n) : (de(!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.`, "complex-values-different"), we(e, t));
401
+ const n = L.createTransformer(t), s = ue(e), i = ue(t);
402
+ return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? Ie.has(e) && !i.values.length || Ie.has(t) && !s.values.length ? zs(e, t) : He(xn(Hs(s, i), i.values), n) : (de(!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.`, "complex-values-different"), Se(e, t));
403
403
  };
404
404
  function An(e, t, n) {
405
405
  return typeof e == "number" && typeof t == "number" && typeof n == "number" ? J(e, t, n) : st(e)(e, t);
@@ -421,17 +421,17 @@ const Js = (e) => {
421
421
  for (let r = 0; r < i; r++)
422
422
  s += Math.round(e(r / (i - 1)) * 1e4) / 1e4 + ", ";
423
423
  return `linear(${s.substring(0, s.length - 2)})`;
424
- }, Se = 2e4;
424
+ }, we = 2e4;
425
425
  function it(e) {
426
426
  let t = 0;
427
427
  const n = 50;
428
428
  let s = e.next(t);
429
- for (; !s.done && t < Se; )
429
+ for (; !s.done && t < we; )
430
430
  t += n, s = e.next(t);
431
- return t >= Se ? 1 / 0 : t;
431
+ return t >= we ? 1 / 0 : t;
432
432
  }
433
433
  function Cn(e, t = 100, n) {
434
- const s = n({ ...e, keyframes: [0, t] }), i = Math.min(it(s), Se);
434
+ const s = n({ ...e, keyframes: [0, t] }), i = Math.min(it(s), we);
435
435
  return {
436
436
  type: "keyframes",
437
437
  ease: (r) => s.next(i * r).value / t,
@@ -557,46 +557,46 @@ function ce(e = M.visualDuration, t = M.bounce) {
557
557
  const r = n.keyframes[0], a = n.keyframes[n.keyframes.length - 1], o = { done: !1, value: r }, { stiffness: l, damping: c, mass: u, duration: f, velocity: h, isResolvedFromDuration: g } = ri({
558
558
  ...n,
559
559
  velocity: -/* @__PURE__ */ P(n.velocity || 0)
560
- }), y = h || 0, b = c / (2 * Math.sqrt(l * u)), v = a - r, T = /* @__PURE__ */ P(Math.sqrt(l / u)), A = Math.abs(v) < 5;
560
+ }), y = h || 0, b = c / (2 * Math.sqrt(l * u)), V = a - r, T = /* @__PURE__ */ P(Math.sqrt(l / u)), A = Math.abs(V) < 5;
561
561
  s || (s = A ? M.restSpeed.granular : M.restSpeed.default), i || (i = A ? M.restDelta.granular : M.restDelta.default);
562
- let w;
562
+ let S;
563
563
  if (b < 1) {
564
564
  const p = Ne(T, b);
565
- w = (S) => {
566
- const C = Math.exp(-b * T * S);
567
- return a - C * ((y + b * T * v) / p * Math.sin(p * S) + v * Math.cos(p * S));
565
+ S = (w) => {
566
+ const C = Math.exp(-b * T * w);
567
+ return a - C * ((y + b * T * V) / p * Math.sin(p * w) + V * Math.cos(p * w));
568
568
  };
569
569
  } else if (b === 1)
570
- w = (p) => a - Math.exp(-T * p) * (v + (y + T * v) * p);
570
+ S = (p) => a - Math.exp(-T * p) * (V + (y + T * V) * p);
571
571
  else {
572
572
  const p = T * Math.sqrt(b * b - 1);
573
- w = (S) => {
574
- const C = Math.exp(-b * T * S), m = Math.min(p * S, 300);
575
- return a - C * ((y + b * T * v) * Math.sinh(m) + p * v * Math.cosh(m)) / p;
573
+ S = (w) => {
574
+ const C = Math.exp(-b * T * w), m = Math.min(p * w, 300);
575
+ return a - C * ((y + b * T * V) * Math.sinh(m) + p * V * Math.cosh(m)) / p;
576
576
  };
577
577
  }
578
- const V = {
578
+ const v = {
579
579
  calculatedDuration: g && f || null,
580
580
  next: (p) => {
581
- const S = w(p);
581
+ const w = S(p);
582
582
  if (g)
583
583
  o.done = p >= f;
584
584
  else {
585
585
  let C = p === 0 ? y : 0;
586
- b < 1 && (C = p === 0 ? /* @__PURE__ */ O(y) : Fn(w, p, S));
587
- const m = Math.abs(C) <= s, x = Math.abs(a - S) <= i;
586
+ b < 1 && (C = p === 0 ? /* @__PURE__ */ O(y) : Fn(S, p, w));
587
+ const m = Math.abs(C) <= s, x = Math.abs(a - w) <= i;
588
588
  o.done = m && x;
589
589
  }
590
- return o.value = o.done ? a : S, o;
590
+ return o.value = o.done ? a : w, o;
591
591
  },
592
592
  toString: () => {
593
- const p = Math.min(it(V), Se), S = Mn((C) => V.next(p * C).value, p, 30);
594
- return p + "ms " + S;
593
+ const p = Math.min(it(v), we), w = Mn((C) => v.next(p * C).value, p, 30);
594
+ return p + "ms " + w;
595
595
  },
596
596
  toTransition: () => {
597
597
  }
598
598
  };
599
- return V;
599
+ return v;
600
600
  }
601
601
  ce.applyToOptions = (e) => {
602
602
  const t = Cn(e, 100, ce);
@@ -608,17 +608,17 @@ function ke({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
608
608
  value: f
609
609
  }, g = (m) => o !== void 0 && m < o || l !== void 0 && m > l, y = (m) => o === void 0 ? l : l === void 0 || Math.abs(o - m) < Math.abs(l - m) ? o : l;
610
610
  let b = n * t;
611
- const v = f + b, T = a === void 0 ? v : a(v);
612
- T !== v && (b = T - f);
613
- const A = (m) => -b * Math.exp(-m / s), w = (m) => T + A(m), V = (m) => {
614
- const x = A(m), E = w(m);
611
+ const V = f + b, T = a === void 0 ? V : a(V);
612
+ T !== V && (b = T - f);
613
+ const A = (m) => -b * Math.exp(-m / s), S = (m) => T + A(m), v = (m) => {
614
+ const x = A(m), E = S(m);
615
615
  h.done = Math.abs(x) <= c, h.value = h.done ? T : E;
616
616
  };
617
- let p, S;
617
+ let p, w;
618
618
  const C = (m) => {
619
- g(h.value) && (p = m, S = ce({
619
+ g(h.value) && (p = m, w = ce({
620
620
  keyframes: [h.value, y(h.value)],
621
- velocity: Fn(w, m, h.value),
621
+ velocity: Fn(S, m, h.value),
622
622
  // TODO: This should be passing * 1000
623
623
  damping: i,
624
624
  stiffness: r,
@@ -630,7 +630,7 @@ function ke({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
630
630
  calculatedDuration: null,
631
631
  next: (m) => {
632
632
  let x = !1;
633
- return !S && p === void 0 && (x = !0, V(m), C(m)), p !== void 0 && m >= p ? S.next(m - p) : (!x && V(m), h);
633
+ return !w && p === void 0 && (x = !0, v(m), C(m)), p !== void 0 && m >= p ? w.next(m - p) : (!x && v(m), h);
634
634
  }
635
635
  };
636
636
  }
@@ -771,22 +771,22 @@ class ot extends at {
771
771
  const { generator: s, totalDuration: i, mixKeyframes: r, mirroredGenerator: a, resolvedDuration: o, calculatedDuration: l } = this;
772
772
  if (this.startTime === null)
773
773
  return s.next(0);
774
- const { delay: c = 0, keyframes: u, repeat: f, repeatType: h, repeatDelay: g, type: y, onUpdate: b, finalKeyframe: v } = this.options;
774
+ const { delay: c = 0, keyframes: u, repeat: f, repeatType: h, repeatDelay: g, type: y, onUpdate: b, finalKeyframe: V } = this.options;
775
775
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - i / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
776
776
  const T = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), A = this.playbackSpeed >= 0 ? T < 0 : T > i;
777
777
  this.currentTime = Math.max(T, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
778
- let w = this.currentTime, V = s;
778
+ let S = this.currentTime, v = s;
779
779
  if (f) {
780
780
  const m = Math.min(this.currentTime, i) / o;
781
781
  let x = Math.floor(m), E = m % 1;
782
- !E && m >= 1 && (E = 1), E === 1 && x--, x = Math.min(x, f + 1), !!(x % 2) && (h === "reverse" ? (E = 1 - E, g && (E -= g / o)) : h === "mirror" && (V = a)), w = Y(0, 1, E) * o;
782
+ !E && m >= 1 && (E = 1), E === 1 && x--, x = Math.min(x, f + 1), !!(x % 2) && (h === "reverse" ? (E = 1 - E, g && (E -= g / o)) : h === "mirror" && (v = a)), S = Y(0, 1, E) * o;
783
783
  }
784
- const p = A ? { done: !1, value: u[0] } : V.next(w);
784
+ const p = A ? { done: !1, value: u[0] } : v.next(S);
785
785
  r && (p.value = r(p.value));
786
- let { done: S } = p;
787
- !A && l !== null && (S = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
788
- const C = this.holdTime === null && (this.state === "finished" || this.state === "running" && S);
789
- return C && y !== ke && (p.value = rt(u, this.options, v, this.speed)), b && b(p.value), C && this.finish(), p;
786
+ let { done: w } = p;
787
+ !A && l !== null && (w = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
788
+ const C = this.holdTime === null && (this.state === "finished" || this.state === "running" && w);
789
+ return C && y !== ke && (p.value = rt(u, this.options, V, this.speed)), b && b(p.value), C && this.finish(), p;
790
790
  }
791
791
  /**
792
792
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -888,12 +888,12 @@ const U = (e) => e * 180 / Math.PI, Ke = (e) => {
888
888
  skewY: (e) => U(Math.atan(e[1])),
889
889
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
890
890
  };
891
- function Le(e) {
891
+ function $e(e) {
892
892
  return e.includes("scale") ? 1 : 0;
893
893
  }
894
- function $e(e, t) {
894
+ function Le(e, t) {
895
895
  if (!e || e === "none")
896
- return Le(t);
896
+ return $e(t);
897
897
  const n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
898
898
  let s, i;
899
899
  if (n)
@@ -903,13 +903,13 @@ function $e(e, t) {
903
903
  s = pi, i = o;
904
904
  }
905
905
  if (!i)
906
- return Le(t);
906
+ return $e(t);
907
907
  const r = s[t], a = i[1].split(",").map(yi);
908
908
  return typeof r == "function" ? r(a) : a[r];
909
909
  }
910
910
  const gi = (e, t) => {
911
911
  const { transform: n = "none" } = getComputedStyle(e);
912
- return $e(n, t);
912
+ return Le(n, t);
913
913
  };
914
914
  function yi(e) {
915
915
  return parseFloat(e.trim());
@@ -949,8 +949,8 @@ const j = {
949
949
  bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
950
950
  right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
951
951
  // Transform
952
- x: (e, { transform: t }) => $e(t, "x"),
953
- y: (e, { transform: t }) => $e(t, "y")
952
+ x: (e, { transform: t }) => Le(t, "x"),
953
+ y: (e, { transform: t }) => Le(t, "y")
954
954
  };
955
955
  j.translateX = j.x;
956
956
  j.translateY = j.y;
@@ -1021,9 +1021,9 @@ class lt {
1021
1021
  this.state === "pending" && this.scheduleResolve();
1022
1022
  }
1023
1023
  }
1024
- const wi = (e) => e.startsWith("--");
1025
- function Si(e, t, n) {
1026
- wi(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1024
+ const Si = (e) => e.startsWith("--");
1025
+ function wi(e, t, n) {
1026
+ Si(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1027
1027
  }
1028
1028
  const xi = /* @__PURE__ */ qe(() => window.ScrollTimeline !== void 0), Ai = {};
1029
1029
  function Mi(e, t) {
@@ -1085,7 +1085,7 @@ class Di extends at {
1085
1085
  this.animation = Ci(n, s, i, c, r), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1086
1086
  if (this.finishedTime = this.time, !r) {
1087
1087
  const u = rt(i, this.options, o, this.speed);
1088
- this.updateMotionValue ? this.updateMotionValue(u) : Si(n, s, u), this.animation.cancel();
1088
+ this.updateMotionValue ? this.updateMotionValue(u) : wi(n, s, u), this.animation.cancel();
1089
1089
  }
1090
1090
  l?.(), this.notifyFinished();
1091
1091
  };
@@ -1207,7 +1207,7 @@ class Pi extends Di {
1207
1207
  }
1208
1208
  }
1209
1209
  const Nt = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1210
- ($.test(e) || e === "0") && // And it contains numbers and/or colors
1210
+ (L.test(e) || e === "0") && // And it contains numbers and/or colors
1211
1211
  !e.startsWith("url("));
1212
1212
  function Oi(e) {
1213
1213
  const t = e[0];
@@ -1266,7 +1266,7 @@ class _i extends at {
1266
1266
  element: u,
1267
1267
  ...f
1268
1268
  }, g = u?.KeyframeResolver || lt;
1269
- this.keyframeResolver = new g(o, (y, b, v) => this.onKeyframesResolved(y, b, h, !v), l, c, u), this.keyframeResolver?.scheduleResolve();
1269
+ this.keyframeResolver = new g(o, (y, b, V) => this.onKeyframesResolved(y, b, h, !V), l, c, u), this.keyframeResolver?.scheduleResolve();
1270
1270
  }
1271
1271
  onKeyframesResolved(t, n, s, i) {
1272
1272
  this.keyframeResolver = void 0;
@@ -1333,7 +1333,7 @@ class _i extends at {
1333
1333
  this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
1334
1334
  }
1335
1335
  }
1336
- class Li {
1336
+ class $i {
1337
1337
  constructor(t) {
1338
1338
  this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
1339
1339
  }
@@ -1406,7 +1406,7 @@ function kt(e, t) {
1406
1406
  }
1407
1407
  return n;
1408
1408
  }
1409
- class $i extends Li {
1409
+ class Li extends $i {
1410
1410
  then(t, n) {
1411
1411
  return this.finished.finally(t).then(() => {
1412
1412
  });
@@ -1450,7 +1450,7 @@ const _n = /* @__PURE__ */ new Set([
1450
1450
  ]), Gi = {
1451
1451
  test: (e) => e === "auto",
1452
1452
  parse: (e) => e
1453
- }, Ln = (e) => (t) => t.test(e), $n = [Z, d, q, L, Ns, Is, Gi], Kt = (e) => $n.find(Ln(e));
1453
+ }, $n = (e) => (t) => t.test(e), Ln = [Z, d, q, $, Ns, Is, Gi], Kt = (e) => Ln.find($n(e));
1454
1454
  function Yi(e) {
1455
1455
  return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || en(e) : !0;
1456
1456
  }
@@ -1467,7 +1467,7 @@ function Xi(e) {
1467
1467
  return s !== n && (r *= 100), t + "(" + r + i + ")";
1468
1468
  }
1469
1469
  const qi = /\b([a-z-]*)\(.*?\)/gu, Ye = {
1470
- ...$,
1470
+ ...L,
1471
1471
  getAnimatableNone: (e) => {
1472
1472
  const t = e.match(qi);
1473
1473
  return t ? t.map(Xi).join(" ") : e;
@@ -1476,17 +1476,17 @@ const qi = /\b([a-z-]*)\(.*?\)/gu, Ye = {
1476
1476
  ...Z,
1477
1477
  transform: Math.round
1478
1478
  }, Hi = {
1479
- rotate: L,
1480
- rotateX: L,
1481
- rotateY: L,
1482
- rotateZ: L,
1479
+ rotate: $,
1480
+ rotateX: $,
1481
+ rotateY: $,
1482
+ rotateZ: $,
1483
1483
  scale: Te,
1484
1484
  scaleX: Te,
1485
1485
  scaleY: Te,
1486
1486
  scaleZ: Te,
1487
- skew: L,
1488
- skewX: L,
1489
- skewY: L,
1487
+ skew: $,
1488
+ skewX: $,
1489
+ skewY: $,
1490
1490
  distance: d,
1491
1491
  translateX: d,
1492
1492
  translateY: d,
@@ -1561,7 +1561,7 @@ const qi = /\b([a-z-]*)\(.*?\)/gu, Ye = {
1561
1561
  }, Wn = (e) => Zi[e];
1562
1562
  function Un(e, t) {
1563
1563
  let n = Wn(e);
1564
- return n !== Ye && (n = $), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1564
+ return n !== Ye && (n = L), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1565
1565
  }
1566
1566
  const Ji = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1567
1567
  function Qi(e, t, n) {
@@ -1637,7 +1637,7 @@ function tr(e, t, n) {
1637
1637
  }
1638
1638
  return Array.from(e);
1639
1639
  }
1640
- const jn = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Lt = 30, nr = (e) => !isNaN(parseFloat(e));
1640
+ const jn = (e, t) => t && typeof e == "number" ? t.transform(e) : e, $t = 30, nr = (e) => !isNaN(parseFloat(e));
1641
1641
  class sr {
1642
1642
  /**
1643
1643
  * @param init - The initiating value
@@ -1783,9 +1783,9 @@ class sr {
1783
1783
  */
1784
1784
  getVelocity() {
1785
1785
  const t = R.now();
1786
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > Lt)
1786
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > $t)
1787
1787
  return 0;
1788
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, Lt);
1788
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, $t);
1789
1789
  return nn(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1790
1790
  }
1791
1791
  /**
@@ -1847,7 +1847,7 @@ function Gn(e) {
1847
1847
  function rr(e) {
1848
1848
  return Gn(e) && e.tagName === "svg";
1849
1849
  }
1850
- const D = (e) => !!(e && e.getVelocity), ar = [...$n, F, $], or = (e) => ar.find(Ln(e));
1850
+ const D = (e) => !!(e && e.getVelocity), ar = [...Ln, F, L], or = (e) => ar.find($n(e));
1851
1851
  function ft(e) {
1852
1852
  return typeof e == "object" && !Array.isArray(e);
1853
1853
  }
@@ -1857,7 +1857,7 @@ function Yn(e, t, n, s) {
1857
1857
  function lr(e, t, n) {
1858
1858
  return e * (t + 1);
1859
1859
  }
1860
- function $t(e, t, n, s) {
1860
+ function Lt(e, t, n, s) {
1861
1861
  return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : s.get(t) ?? e;
1862
1862
  }
1863
1863
  function ur(e, t, n) {
@@ -1892,14 +1892,14 @@ function mr(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
1892
1892
  c.set(y, f);
1893
1893
  continue;
1894
1894
  } else if (!Array.isArray(y)) {
1895
- c.set(y.name, $t(f, y.at, u, c));
1895
+ c.set(y.name, Lt(f, y.at, u, c));
1896
1896
  continue;
1897
1897
  }
1898
- let [b, v, T = {}] = y;
1899
- T.at !== void 0 && (f = $t(f, T.at, u, c));
1898
+ let [b, V, T = {}] = y;
1899
+ T.at !== void 0 && (f = Lt(f, T.at, u, c));
1900
1900
  let A = 0;
1901
- const w = (V, p, S, C = 0, m = 0) => {
1902
- const x = gr(V), { delay: E = 0, times: B = En(x), type: xe = "keyframes", repeat: te, repeatType: Aa, repeatDelay: Ma = 0, ...is } = p;
1901
+ const S = (v, p, w, C = 0, m = 0) => {
1902
+ const x = gr(v), { delay: E = 0, times: B = En(x), type: xe = "keyframes", repeat: te, repeatType: Aa, repeatDelay: Ma = 0, ...is } = p;
1903
1903
  let { ease: _ = t.ease || "easeOut", duration: N } = p;
1904
1904
  const pt = typeof E == "function" ? E(C, m) : E, mt = x.length, gt = ut(xe) ? xe : i?.[xe || "keyframes"];
1905
1905
  if (mt <= 2 && gt) {
@@ -1930,40 +1930,40 @@ function mr(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
1930
1930
  fr(B, te);
1931
1931
  }
1932
1932
  const Tt = yt + N;
1933
- cr(S, x, _, B, yt, Tt), A = Math.max(pt + N, A), h = Math.max(Tt, h);
1933
+ cr(w, x, _, B, yt, Tt), A = Math.max(pt + N, A), h = Math.max(Tt, h);
1934
1934
  };
1935
1935
  if (D(b)) {
1936
- const V = Wt(b, o);
1937
- w(v, T, Ut("default", V));
1936
+ const v = Wt(b, o);
1937
+ S(V, T, Ut("default", v));
1938
1938
  } else {
1939
- const V = Yn(b, v, s, l), p = V.length;
1940
- for (let S = 0; S < p; S++) {
1941
- v = v, T = T;
1942
- const C = V[S], m = Wt(C, o);
1943
- for (const x in v)
1944
- w(v[x], yr(T, x), Ut(x, m), S, p);
1939
+ const v = Yn(b, V, s, l), p = v.length;
1940
+ for (let w = 0; w < p; w++) {
1941
+ V = V, T = T;
1942
+ const C = v[w], m = Wt(C, o);
1943
+ for (const x in V)
1944
+ S(V[x], yr(T, x), Ut(x, m), w, p);
1945
1945
  }
1946
1946
  }
1947
1947
  u = f, f += A;
1948
1948
  }
1949
1949
  return o.forEach((g, y) => {
1950
1950
  for (const b in g) {
1951
- const v = g[b];
1952
- v.sort(hr);
1953
- const T = [], A = [], w = [];
1954
- for (let p = 0; p < v.length; p++) {
1955
- const { at: S, value: C, easing: m } = v[p];
1956
- T.push(C), A.push(/* @__PURE__ */ Ze(0, h, S)), w.push(m || "easeOut");
1951
+ const V = g[b];
1952
+ V.sort(hr);
1953
+ const T = [], A = [], S = [];
1954
+ for (let p = 0; p < V.length; p++) {
1955
+ const { at: w, value: C, easing: m } = V[p];
1956
+ T.push(C), A.push(/* @__PURE__ */ Ze(0, h, w)), S.push(m || "easeOut");
1957
1957
  }
1958
- A[0] !== 0 && (A.unshift(0), T.unshift(T[0]), w.unshift(dr)), A[A.length - 1] !== 1 && (A.push(1), T.push(null)), a.has(y) || a.set(y, {
1958
+ A[0] !== 0 && (A.unshift(0), T.unshift(T[0]), S.unshift(dr)), A[A.length - 1] !== 1 && (A.push(1), T.push(null)), a.has(y) || a.set(y, {
1959
1959
  keyframes: {},
1960
1960
  transition: {}
1961
1961
  });
1962
- const V = a.get(y);
1963
- V.keyframes[b] = T, V.transition[b] = {
1962
+ const v = a.get(y);
1963
+ v.keyframes[b] = T, v.transition[b] = {
1964
1964
  ...t,
1965
1965
  duration: h,
1966
- ease: w,
1966
+ ease: S,
1967
1967
  times: A,
1968
1968
  ...n
1969
1969
  };
@@ -2007,10 +2007,10 @@ function Vr(e, t, n) {
2007
2007
  const s = e.getProps();
2008
2008
  return zn(s, t, s.custom, e);
2009
2009
  }
2010
- function wr(e, t, n) {
2010
+ function Sr(e, t, n) {
2011
2011
  e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, fe(n));
2012
2012
  }
2013
- function Sr(e) {
2013
+ function wr(e) {
2014
2014
  return vr(e) ? e[e.length - 1] || 0 : e;
2015
2015
  }
2016
2016
  function xr(e, t) {
@@ -2018,8 +2018,8 @@ function xr(e, t) {
2018
2018
  let { transitionEnd: s = {}, transition: i = {}, ...r } = n || {};
2019
2019
  r = { ...r, ...s };
2020
2020
  for (const a in r) {
2021
- const o = Sr(r[a]);
2022
- wr(e, a, o);
2021
+ const o = wr(r[a]);
2022
+ Sr(e, a, o);
2023
2023
  }
2024
2024
  }
2025
2025
  function Ar(e) {
@@ -2124,8 +2124,8 @@ function _r(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
2124
2124
  }
2125
2125
  }
2126
2126
  Mr(e, u), f.start(Xn(u, f, h, e.shouldReduceMotion && _n.has(u) ? { type: !1 } : g, e, b));
2127
- const v = f.animation;
2128
- v && l.push(v);
2127
+ const V = f.animation;
2128
+ V && l.push(V);
2129
2129
  }
2130
2130
  return a && Promise.all(l).then(() => {
2131
2131
  K.update(() => {
@@ -2133,13 +2133,13 @@ function _r(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
2133
2133
  });
2134
2134
  }), l;
2135
2135
  }
2136
- function Lr({ top: e, left: t, right: n, bottom: s }) {
2136
+ function $r({ top: e, left: t, right: n, bottom: s }) {
2137
2137
  return {
2138
2138
  x: { min: t, max: n },
2139
2139
  y: { min: e, max: s }
2140
2140
  };
2141
2141
  }
2142
- function $r(e, t) {
2142
+ function Lr(e, t) {
2143
2143
  if (!t)
2144
2144
  return e;
2145
2145
  const n = t({ x: e.left, y: e.top }), s = t({ x: e.right, y: e.bottom });
@@ -2151,7 +2151,7 @@ function $r(e, t) {
2151
2151
  };
2152
2152
  }
2153
2153
  function Wr(e, t) {
2154
- return Lr($r(e.getBoundingClientRect(), t));
2154
+ return $r(Lr(e.getBoundingClientRect(), t));
2155
2155
  }
2156
2156
  const Gt = {
2157
2157
  animation: [
@@ -2406,7 +2406,7 @@ class Zn {
2406
2406
  */
2407
2407
  readValue(t, n) {
2408
2408
  let s = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
2409
- return s != null && (typeof s == "string" && (Qt(s) || en(s)) ? s = parseFloat(s) : !or(s) && $.test(n) && (s = Un(t, n)), this.setBaseTarget(t, D(s) ? s.get() : s)), D(s) ? s.get() : s;
2409
+ return s != null && (typeof s == "string" && (Qt(s) || en(s)) ? s = parseFloat(s) : !or(s) && L.test(n) && (s = Un(t, n)), this.setBaseTarget(t, D(s) ? s.get() : s)), D(s) ? s.get() : s;
2410
2410
  }
2411
2411
  /**
2412
2412
  * Set the base target to later animate back to. This is currently
@@ -2534,10 +2534,10 @@ const re = {
2534
2534
  }
2535
2535
  }, ea = {
2536
2536
  correct: (e, { treeScale: t, projectionDelta: n }) => {
2537
- const s = e, i = $.parse(e);
2537
+ const s = e, i = L.parse(e);
2538
2538
  if (i.length > 5)
2539
2539
  return s;
2540
- const r = $.createTransformer(e), a = typeof i[0] != "number" ? 1 : 0, o = n.x.scale * t.x, l = n.y.scale * t.y;
2540
+ const r = L.createTransformer(e), a = typeof i[0] != "number" ? 1 : 0, o = n.x.scale * t.x, l = n.y.scale * t.y;
2541
2541
  i[0 + a] /= o, i[1 + a] /= l;
2542
2542
  const c = J(o, l, 0.5);
2543
2543
  return typeof i[2 + a] == "number" && (i[2 + a] /= c), typeof i[3 + a] == "number" && (i[3 + a] /= c), r(i);
@@ -2576,7 +2576,7 @@ class ia extends Jn {
2576
2576
  }
2577
2577
  readValueFromInstance(t, n) {
2578
2578
  if (ee.has(n))
2579
- return this.projection?.isProjecting ? Le(n) : gi(t, n);
2579
+ return this.projection?.isProjecting ? $e(n) : gi(t, n);
2580
2580
  {
2581
2581
  const s = sa(t), i = (bn(n) ? s.getPropertyValue(n) : s[n]) || 0;
2582
2582
  return typeof i == "string" ? i.trim() : i;
@@ -2795,18 +2795,18 @@ function Va(e) {
2795
2795
  const { onComplete: l, ...c } = i || {};
2796
2796
  typeof l == "function" && (a = l), r = ss(n, s, c, e);
2797
2797
  }
2798
- const o = new $i(r);
2798
+ const o = new Li(r);
2799
2799
  return a && o.finished.then(a), o;
2800
2800
  }
2801
2801
  return t;
2802
2802
  }
2803
- const wa = Va(), Re = "";
2804
- function Sa(e, t = !0) {
2803
+ const Sa = Va(), Re = "";
2804
+ function wa(e, t = !0) {
2805
2805
  const [n, s] = Ae(0), [i, r] = Ae(0), [a, o] = Ae(e);
2806
2806
  return a !== e && (o(e), r(e.startsWith(a) ? n : 0)), Zt(() => {
2807
2807
  if (!t)
2808
2808
  return;
2809
- const l = wa(
2809
+ const l = Sa(
2810
2810
  // The starting value for the animation (current cursor position).
2811
2811
  i,
2812
2812
  // The target value: total number of characters.
@@ -2835,7 +2835,7 @@ const qt = {
2835
2835
  smooth: n = !1,
2836
2836
  isLastAssistantMessage: s = !1
2837
2837
  }) => {
2838
- const i = Sa(e, n), {
2838
+ const i = wa(e, n), {
2839
2839
  state: {
2840
2840
  streaming: r,
2841
2841
  restoredModel: a,
@@ -2845,29 +2845,24 @@ const qt = {
2845
2845
  }
2846
2846
  } = Vt(ds), {
2847
2847
  state: { fullScreen: u }
2848
- } = Vt(ps), f = t?.model || a, h = l, [g, y] = hs(), { user: b, getAccessToken: v } = as(), { data: T } = os({
2848
+ } = Vt(ps), f = t?.model || a, h = l, [g, y] = hs(), { user: b, getAccessToken: V } = as(), { data: T } = os({
2849
2849
  user: b?.username,
2850
- getAccessToken: v
2851
- }), A = T?.showDetails || !1, w = Ht("prose-li:ps-3", {
2850
+ getAccessToken: V
2851
+ }), A = T?.showDetails || !1, S = Ht("prose-li:ps-3", {
2852
2852
  "max-w-xs sm:max-w-3xl": !u
2853
- });
2854
- let V = [];
2855
- return A && (s ? (V.push({
2853
+ }), v = [];
2854
+ return A && (f && (s ? v.push({
2856
2855
  key: qt.MODEL,
2857
- value: f || "Unknown model"
2858
- }), h && V.push({
2856
+ value: f
2857
+ }) : v.push(Me)), h && (s ? v.push({
2859
2858
  key: qt.USAGE,
2860
2859
  value: `${ls.format(h)} ${us(
2861
2860
  "token",
2862
2861
  h
2863
2862
  )}`
2864
- }), (c || o) && V.push({
2863
+ }) : v.push(Me)), (c || o) && (s ? v.push({
2865
2864
  value: c ? vt(c) : vt(o || "")
2866
- })) : V = [
2867
- Me,
2868
- Me,
2869
- Me
2870
- ]), Zt(() => {
2865
+ }) : v.push(Me))), Zt(() => {
2871
2866
  i && y(i);
2872
2867
  }, [i, y]), /* @__PURE__ */ rs(
2873
2868
  cs,
@@ -2876,10 +2871,10 @@ const qt = {
2876
2871
  copyToClipboardMode: "light",
2877
2872
  copyToClipboardFocusMode: "light",
2878
2873
  copyToClipboard: r ? "loading..." : e,
2879
- footer: V,
2874
+ footer: v,
2880
2875
  className: xa,
2881
2876
  footerClassName: "text-copy-medium",
2882
- contentClassName: w,
2877
+ contentClassName: S,
2883
2878
  noMaxWidth: !0,
2884
2879
  children: g
2885
2880
  }