@versini/sassysaint 8.134.2 → 8.134.4

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 (85) hide show
  1. package/dist/chunks/{AboutChangelog.B1gSTZI0.js → AboutChangelog.DESm_zaS.js} +2 -2
  2. package/dist/chunks/{AboutEntry.Cn86JVde.js → AboutEntry.PNIb9b_J.js} +8 -8
  3. package/dist/chunks/{App.a3Rn157s.js → App.DxJjOPEo.js} +2641 -2595
  4. package/dist/chunks/{BubbleActions.Cq7DCari.js → BubbleActions.DWZywKKf.js} +3 -3
  5. package/dist/chunks/{ButtonIconDelete.BT1t7Ob0.js → ButtonIconDelete.Bd9WCc-n.js} +4 -4
  6. package/dist/chunks/{Chart.B064ohlv.js → Chart.D4McrUHf.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.BdEjgI-N.js → ChatBubbleAssistant.DXr3zP0M.js} +590 -568
  8. package/dist/chunks/{ChatBubbleUser.CR991b4i.js → ChatBubbleUser.Ckp2T75v.js} +4 -4
  9. package/dist/chunks/{GenericPanel.C0HM0OvS.js → GenericPanel.BNdVkNlo.js} +1 -1
  10. package/dist/chunks/{HistoryEntry.D9oMBpMc.js → HistoryEntry.BMs6wRlI.js} +6 -6
  11. package/dist/chunks/{LoginEntry.BUMr7Xf5.js → LoginEntry.F2Eea1Ai.js} +4 -4
  12. package/dist/chunks/{LogoEntry.DIiGZsiy.js → LogoEntry.BrHGam_v.js} +1 -1
  13. package/dist/chunks/{MemoriesEntry.iJcUCYSL.js → MemoriesEntry.Be99TWBa.js} +6 -6
  14. package/dist/chunks/{ProfileEntry.DQCL9mET.js → ProfileEntry.CyBmwMsD.js} +6 -6
  15. package/dist/chunks/{SettingsEntry.BsnEfAR0.js → SettingsEntry.TnxirjHk.js} +6 -6
  16. package/dist/chunks/{UsageEntry.DgqPxmgg.js → UsageEntry.DGGOFDbC.js} +6 -6
  17. package/dist/chunks/{_baseUniq.HSiid2T-.js → _baseUniq.c1Wi6asc.js} +1 -1
  18. package/dist/chunks/{arc.CgowgDoM.js → arc.DbYDlyqC.js} +1 -1
  19. package/dist/chunks/{architecture-U656AL7Q.DxiC3iqd.js → architecture-U656AL7Q.DDsGzCBQ.js} +1 -1
  20. package/dist/chunks/{architectureDiagram-VXUJARFQ.DqvteBya.js → architectureDiagram-VXUJARFQ.B-Ylahzc.js} +4 -4
  21. package/dist/chunks/{blockDiagram-VD42YOAC.CpI_ujTo.js → blockDiagram-VD42YOAC.DB2CSbsF.js} +5 -5
  22. package/dist/chunks/{browser.BhFyCAHz.js → browser.DLL5LKNH.js} +1 -1
  23. package/dist/chunks/{c4Diagram-YG6GDRKO.cY5wGwy-.js → c4Diagram-YG6GDRKO.vEkpo0P1.js} +2 -2
  24. package/dist/chunks/{channel.VaDz6wD4.js → channel.CjuXuK1B.js} +1 -1
  25. package/dist/chunks/{chunk-4BX2VUAB.BO66mfej.js → chunk-4BX2VUAB.DPsxMfy4.js} +1 -1
  26. package/dist/chunks/{chunk-55IACEB6.Dvhoh_Ip.js → chunk-55IACEB6.CcufgCyb.js} +1 -1
  27. package/dist/chunks/{chunk-B4BG7PRW.BWO3zZ-q.js → chunk-B4BG7PRW.CpWFFEk5.js} +4 -4
  28. package/dist/chunks/{chunk-DI55MBZ5.D-suMKS7.js → chunk-DI55MBZ5.DxOnZ5hn.js} +3 -3
  29. package/dist/chunks/{chunk-FMBD7UC4.Czj6mbik.js → chunk-FMBD7UC4.CgVRsIj3.js} +1 -1
  30. package/dist/chunks/{chunk-QN33PNHL.C3WX4DGk.js → chunk-QN33PNHL.CDY72U3p.js} +1 -1
  31. package/dist/chunks/{chunk-QZHKN3VN.DLykXVg6.js → chunk-QZHKN3VN.01ZjYOeq.js} +1 -1
  32. package/dist/chunks/{chunk-TZMSLE5B.CmdkdBvM.js → chunk-TZMSLE5B.CA5wJZJv.js} +1 -1
  33. package/dist/chunks/{classDiagram-2ON5EDUG.BCTJOEXa.js → classDiagram-2ON5EDUG.BnU5JPL3.js} +2 -2
  34. package/dist/chunks/{classDiagram-v2-WZHVMYZB.BCTJOEXa.js → classDiagram-v2-WZHVMYZB.BnU5JPL3.js} +2 -2
  35. package/dist/chunks/{clone.EXDo20Rp.js → clone.BbEicaZt.js} +1 -1
  36. package/dist/chunks/{cose-bilkent-S5V4N54A.D-ml62SS.js → cose-bilkent-S5V4N54A._zYZjE0O.js} +2 -2
  37. package/dist/chunks/{dagre-6UL2VRFP.D8SmW-Oq.js → dagre-6UL2VRFP.B9RdQigc.js} +5 -5
  38. package/dist/chunks/defaultLocale.z12-Hsw2.js +171 -0
  39. package/dist/chunks/{diagram-PSM6KHXK.Qg8qeopF.js → diagram-PSM6KHXK.DEt8sa4j.js} +5 -5
  40. package/dist/chunks/{diagram-QEK2KX5R.Bva3r61A.js → diagram-QEK2KX5R.B17p-9el.js} +3 -3
  41. package/dist/chunks/{diagram-S2PKOQOG.BAB4HvV_.js → diagram-S2PKOQOG.D-CN6sk9.js} +3 -3
  42. package/dist/chunks/{erDiagram-Q2GNP2WA.mpjnnb-e.js → erDiagram-Q2GNP2WA.D--J9Jom.js} +4 -4
  43. package/dist/chunks/{flowDiagram-NV44I4VS.YSRfRM8c.js → flowDiagram-NV44I4VS.Bq_ZVHUc.js} +5 -5
  44. package/dist/chunks/{ganttDiagram-JELNMOA3.CFy0kl5V.js → ganttDiagram-JELNMOA3.BUmp0zYh.js} +3 -3
  45. package/dist/chunks/{gitGraph-F6HP7TQM.BMY8WDYu.js → gitGraph-F6HP7TQM.Cldg6-Gb.js} +1 -1
  46. package/dist/chunks/{gitGraphDiagram-NY62KEGX.BIt4oCah.js → gitGraphDiagram-NY62KEGX.CryIJniq.js} +4 -4
  47. package/dist/chunks/{graph.BXCpglVM.js → graph.p2hC_MwC.js} +2 -2
  48. package/dist/chunks/{index.DPlT94ws.js → index.B31uDURy.js} +1 -1
  49. package/dist/chunks/{index.C4KDd8tb.js → index.BPB3riTE.js} +1 -1
  50. package/dist/chunks/{index.C602CsZu.js → index.CZcINNHA.js} +3 -3
  51. package/dist/chunks/{index.BZAZ8dkB.js → index.Co3ZLCaT.js} +1 -1
  52. package/dist/chunks/{index.C03L2-PJ.js → index.CuH6GlfD.js} +2 -2
  53. package/dist/chunks/{index.Bn2jnPmJ.js → index.D9rDpV8Z.js} +3 -3
  54. package/dist/chunks/{index.CuZXdCdk.js → index.DCG_H3hH.js} +1 -1
  55. package/dist/chunks/{index.Bdn4CH7A.js → index.DbSxtTzg.js} +1 -1
  56. package/dist/chunks/{index.BZup5KRn.js → index.DoaGA2fP.js} +1 -1
  57. package/dist/chunks/{index.Bn_a3Ofc.js → index.xFxfT2H2.js} +1 -1
  58. package/dist/chunks/{info-NVLQJR56.D7of6yGM.js → info-NVLQJR56.Cjlg5N_W.js} +1 -1
  59. package/dist/chunks/{infoDiagram-WHAUD3N6.ZxgoUXWS.js → infoDiagram-WHAUD3N6.By3_MYN2.js} +2 -2
  60. package/dist/chunks/{journeyDiagram-XKPGCS4Q.m4RIUYuA.js → journeyDiagram-XKPGCS4Q.CL6NUluV.js} +4 -4
  61. package/dist/chunks/{kanban-definition-3W4ZIXB7.B1PJOe_2.js → kanban-definition-3W4ZIXB7.3FQ2q1uC.js} +2 -2
  62. package/dist/chunks/{layout.Bjzz7nu0.js → layout.BSFiNrsx.js} +4 -4
  63. package/dist/chunks/{linear.CIDfImUo.js → linear.CQ26fikN.js} +1 -1
  64. package/dist/chunks/{mermaid-parser.core.7rES7Uwv.js → mermaid-parser.core.CC84J-36.js} +10 -10
  65. package/dist/chunks/{min.whw877nQ.js → min.BB3oj0y_.js} +2 -2
  66. package/dist/chunks/{mindmap-definition-VGOIOE7T.QzaAhcU2.js → mindmap-definition-VGOIOE7T._-8W5Vg1.js} +3 -3
  67. package/dist/chunks/{packet-BFZMPI3H.Bu3-2mxi.js → packet-BFZMPI3H.LexUPJ6I.js} +1 -1
  68. package/dist/chunks/{pie-7BOR55EZ.D3DHCDW2.js → pie-7BOR55EZ.Bq4z5AvT.js} +1 -1
  69. package/dist/chunks/{pieDiagram-ADFJNKIX.EiCnn8Wr.js → pieDiagram-ADFJNKIX.oxZ0B7rg.js} +4 -4
  70. package/dist/chunks/{quadrantDiagram-AYHSOK5B.B9o38Ire.js → quadrantDiagram-AYHSOK5B.qdRnCaDt.js} +2 -2
  71. package/dist/chunks/{radar-NHE76QYJ.p7YCfTfz.js → radar-NHE76QYJ.BdIaLmXp.js} +1 -1
  72. package/dist/chunks/{rehype-mermaid.BmoHhgEN.js → rehype-mermaid.OYnkgOB-.js} +227 -227
  73. package/dist/chunks/{requirementDiagram-UZGBJVZJ.Bbpj429w.js → requirementDiagram-UZGBJVZJ.BgzsQhvf.js} +3 -3
  74. package/dist/chunks/{sankeyDiagram-TZEHDZUN.BqSPg87D.js → sankeyDiagram-TZEHDZUN.DWgbiynU.js} +1 -1
  75. package/dist/chunks/{sequenceDiagram-WL72ISMW.BlCEwniG.js → sequenceDiagram-WL72ISMW.xqbpLE21.js} +3 -3
  76. package/dist/chunks/{stateDiagram-FKZM4ZOC.DzriSM8h.js → stateDiagram-FKZM4ZOC.DB8RxtL0.js} +4 -4
  77. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.BOH80iY9.js → stateDiagram-v2-4FDKWEC3.B-vb1oaU.js} +2 -2
  78. package/dist/chunks/{timeline-definition-IT6M3QCI.OszKxS9t.js → timeline-definition-IT6M3QCI.DjimX7cA.js} +2 -2
  79. package/dist/chunks/{treemap-KMMF4GRG.CoJxNbXM.js → treemap-KMMF4GRG.DfRApQWE.js} +1 -1
  80. package/dist/chunks/{useMarkdown.C9vlLR5G.js → useMarkdown.DSuR76T7.js} +10 -14
  81. package/dist/chunks/{xychartDiagram-PRI3JC2R.DvI73n1C.js → xychartDiagram-PRI3JC2R.dwIl0s4S.js} +2 -2
  82. package/dist/components/SassySaint/SassySaint.js +1 -1
  83. package/dist/index.js +3 -3
  84. package/package.json +4 -4
  85. package/dist/chunks/defaultLocale.CPJLP5jg.js +0 -171
@@ -1,15 +1,15 @@
1
1
  import { jsx as St } from "react/jsx-runtime";
2
- import { n as as, useUserPreferences as os, formatTimestamp as Vt } from "./index.C03L2-PJ.js";
3
- import { numberFormatter as ls, pluralize as us, Bubble as cs } from "./App.a3Rn157s.js";
2
+ import { n as os, useUserPreferences as ls, formatTimestamp as Vt } from "./index.CuH6GlfD.js";
3
+ import { numberFormatter as us, pluralize as cs, Bubble as fs } from "./App.DxJjOPEo.js";
4
4
  import Jt from "clsx";
5
- import fs, { useState as we, useEffect as Qt, useContext as xt } from "react";
6
- import { useMarkdown as hs } from "./useMarkdown.C9vlLR5G.js";
7
- import { ChatContext as ds, AppContext as ps } from "./LogoEntry.DIiGZsiy.js";
8
- import { BubbleActions as ms } from "./BubbleActions.Cq7DCari.js";
9
- const Ae = {
5
+ import hs, { useState as xe, useEffect as Qt, useContext as At } from "react";
6
+ import { useMarkdown as ds } from "./useMarkdown.DSuR76T7.js";
7
+ import { ChatContext as ps, AppContext as ms } from "./LogoEntry.BrHGam_v.js";
8
+ import { BubbleActions as gs } from "./BubbleActions.DWZywKKf.js";
9
+ const we = {
10
10
  isEmpty: !0
11
11
  };
12
- function gs(e, t) {
12
+ function ys(e, t) {
13
13
  e.indexOf(t) === -1 && e.push(t);
14
14
  }
15
15
  function qe(e, t) {
@@ -17,20 +17,20 @@ function qe(e, t) {
17
17
  n > -1 && e.splice(n, 1);
18
18
  }
19
19
  const _ = (e, t, n) => n > t ? t : n < e ? e : n;
20
- function Oe(e, t) {
20
+ function ke(e, t) {
21
21
  return t ? `${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : e;
22
22
  }
23
23
  let de = () => {
24
24
  }, I = () => {
25
25
  };
26
26
  typeof process < "u" && process.env?.NODE_ENV !== "production" && (de = (e, t, n) => {
27
- !e && typeof console < "u" && console.warn(Oe(t, n));
27
+ !e && typeof console < "u" && console.warn(ke(t, n));
28
28
  }, I = (e, t, n) => {
29
29
  if (!e)
30
- throw new Error(Oe(t, n));
30
+ throw new Error(ke(t, n));
31
31
  });
32
32
  const N = {}, en = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
33
- function ys(e) {
33
+ function bs(e) {
34
34
  return typeof e == "object" && e !== null;
35
35
  }
36
36
  const tn = (e) => /^0[^.\s]+$/u.test(e);
@@ -39,7 +39,7 @@ function Ze(e) {
39
39
  let t;
40
40
  return () => (t === void 0 && (t = e()), t);
41
41
  }
42
- const Z = /* @__NO_SIDE_EFFECTS__ */ (e) => e, bs = (e, t) => (n) => t(e(n)), He = (...e) => e.reduce(bs), Je = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
42
+ const H = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Ts = (e, t) => (n) => t(e(n)), He = (...e) => e.reduce(Ts), Je = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
43
43
  const s = t - e;
44
44
  return s === 0 ? 1 : (n - e) / s;
45
45
  };
@@ -48,7 +48,7 @@ class nn {
48
48
  this.subscriptions = [];
49
49
  }
50
50
  add(t) {
51
- return gs(this.subscriptions, t), () => qe(this.subscriptions, t);
51
+ return ys(this.subscriptions, t), () => qe(this.subscriptions, t);
52
52
  }
53
53
  notify(t, n, s) {
54
54
  const i = this.subscriptions.length;
@@ -68,54 +68,54 @@ class nn {
68
68
  this.subscriptions.length = 0;
69
69
  }
70
70
  }
71
- const k = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, P = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
71
+ const O = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, P = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
72
72
  function sn(e, t) {
73
73
  return t ? e * (1e3 / t) : 0;
74
74
  }
75
75
  const Mt = /* @__PURE__ */ new Set();
76
76
  function rn(e, t, n) {
77
- e || Mt.has(t) || (console.warn(Oe(t, n)), Mt.add(t));
77
+ e || Mt.has(t) || (console.warn(ke(t, n)), Mt.add(t));
78
78
  }
79
- const Ts = (e, t, n) => {
79
+ const vs = (e, t, n) => {
80
80
  const s = t - e;
81
81
  return ((n - e) % s + s) % s + e;
82
- }, an = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, vs = 1e-7, Ss = 12;
83
- function Vs(e, t, n, s, i) {
82
+ }, an = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Ss = 1e-7, Vs = 12;
83
+ function As(e, t, n, s, i) {
84
84
  let r, a, o = 0;
85
85
  do
86
86
  a = t + (n - t) / 2, r = an(a, s, i) - e, r > 0 ? n = a : t = a;
87
- while (Math.abs(r) > vs && ++o < Ss);
87
+ while (Math.abs(r) > Ss && ++o < Vs);
88
88
  return a;
89
89
  }
90
90
  function pe(e, t, n, s) {
91
91
  if (e === t && n === s)
92
- return Z;
93
- const i = (r) => Vs(r, 0, 1, e, n);
92
+ return H;
93
+ const i = (r) => As(r, 0, 1, e, n);
94
94
  return (r) => r === 0 || r === 1 ? r : an(i(r), t, s);
95
95
  }
96
- const on = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, ln = (e) => (t) => 1 - e(1 - t), un = /* @__PURE__ */ pe(0.33, 1.53, 0.69, 0.99), Qe = /* @__PURE__ */ ln(un), cn = /* @__PURE__ */ on(Qe), fn = (e) => (e *= 2) < 1 ? 0.5 * Qe(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), et = (e) => 1 - Math.sin(Math.acos(e)), xs = ln(et), hn = on(et), Ms = /* @__PURE__ */ pe(0.42, 0, 1, 1), ws = /* @__PURE__ */ pe(0, 0, 0.58, 1), dn = /* @__PURE__ */ pe(0.42, 0, 0.58, 1), pn = (e) => Array.isArray(e) && typeof e[0] != "number";
96
+ const on = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, ln = (e) => (t) => 1 - e(1 - t), un = /* @__PURE__ */ pe(0.33, 1.53, 0.69, 0.99), Qe = /* @__PURE__ */ ln(un), cn = /* @__PURE__ */ on(Qe), fn = (e) => (e *= 2) < 1 ? 0.5 * Qe(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), et = (e) => 1 - Math.sin(Math.acos(e)), Ms = ln(et), hn = on(et), xs = /* @__PURE__ */ pe(0.42, 0, 1, 1), ws = /* @__PURE__ */ pe(0, 0, 0.58, 1), dn = /* @__PURE__ */ pe(0.42, 0, 0.58, 1), pn = (e) => Array.isArray(e) && typeof e[0] != "number";
97
97
  function mn(e, t) {
98
- return pn(e) ? e[Ts(0, e.length, t)] : e;
98
+ return pn(e) ? e[vs(0, e.length, t)] : e;
99
99
  }
100
- const gn = (e) => Array.isArray(e) && typeof e[0] == "number", wt = {
101
- linear: Z,
102
- easeIn: Ms,
100
+ const gn = (e) => Array.isArray(e) && typeof e[0] == "number", xt = {
101
+ linear: H,
102
+ easeIn: xs,
103
103
  easeInOut: dn,
104
104
  easeOut: ws,
105
105
  circIn: et,
106
106
  circInOut: hn,
107
- circOut: xs,
107
+ circOut: Ms,
108
108
  backIn: Qe,
109
109
  backInOut: cn,
110
110
  backOut: un,
111
111
  anticipate: fn
112
- }, As = (e) => typeof e == "string", At = (e) => {
112
+ }, Cs = (e) => typeof e == "string", wt = (e) => {
113
113
  if (gn(e)) {
114
114
  I(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
115
115
  const [t, n, s, i] = e;
116
116
  return pe(t, n, s, i);
117
- } else if (As(e))
118
- return I(wt[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), wt[e];
117
+ } else if (Cs(e))
118
+ return I(xt[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), xt[e];
119
119
  return e;
120
120
  }, be = [
121
121
  "setup",
@@ -135,7 +135,7 @@ const gn = (e) => Array.isArray(e) && typeof e[0] == "number", wt = {
135
135
  "postRender"
136
136
  // Compute
137
137
  ];
138
- function Cs(e, t) {
138
+ function Ds(e, t) {
139
139
  let n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), i = !1, r = !1;
140
140
  const a = /* @__PURE__ */ new WeakSet();
141
141
  let o = {
@@ -173,56 +173,56 @@ function Cs(e, t) {
173
173
  };
174
174
  return c;
175
175
  }
176
- const Ds = 40;
176
+ const Fs = 40;
177
177
  function yn(e, t) {
178
178
  let n = !1, s = !0;
179
179
  const i = {
180
180
  delta: 0,
181
181
  timestamp: 0,
182
182
  isProcessing: !1
183
- }, r = () => n = !0, a = be.reduce((V, x) => (V[x] = Cs(r), V), {}), { setup: o, read: u, resolveKeyframes: c, preUpdate: l, update: f, preRender: h, render: m, postRender: g } = a, y = () => {
183
+ }, r = () => n = !0, a = be.reduce((V, A) => (V[A] = Ds(r), V), {}), { setup: o, read: u, resolveKeyframes: c, preUpdate: l, update: f, preRender: h, render: p, postRender: g } = a, y = () => {
184
184
  const V = N.useManualTiming ? i.timestamp : performance.now();
185
- n = !1, N.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(V - i.timestamp, Ds), 1)), i.timestamp = V, i.isProcessing = !0, o.process(i), u.process(i), c.process(i), l.process(i), f.process(i), h.process(i), m.process(i), g.process(i), i.isProcessing = !1, n && t && (s = !1, e(y));
186
- }, v = () => {
185
+ n = !1, N.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(V - i.timestamp, Fs), 1)), i.timestamp = V, i.isProcessing = !0, o.process(i), u.process(i), c.process(i), l.process(i), f.process(i), h.process(i), p.process(i), g.process(i), i.isProcessing = !1, n && t && (s = !1, e(y));
186
+ }, S = () => {
187
187
  n = !0, s = !0, i.isProcessing || e(y);
188
188
  };
189
- return { schedule: be.reduce((V, x) => {
190
- const p = a[x];
191
- return V[x] = (b, A = !1, T = !1) => (n || v(), p.schedule(b, A, T)), V;
189
+ return { schedule: be.reduce((V, A) => {
190
+ const m = a[A];
191
+ return V[A] = (b, x = !1, T = !1) => (n || S(), m.schedule(b, x, T)), V;
192
192
  }, {}), cancel: (V) => {
193
- for (let x = 0; x < be.length; x++)
194
- a[be[x]].cancel(V);
193
+ for (let A = 0; A < be.length; A++)
194
+ a[be[A]].cancel(V);
195
195
  }, state: i, steps: a };
196
196
  }
197
- const { schedule: K, cancel: ke, state: Se } = /* @__PURE__ */ yn(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Z, !0);
197
+ const { schedule: K, cancel: Oe, state: Se } = /* @__PURE__ */ yn(typeof requestAnimationFrame < "u" ? requestAnimationFrame : H, !0);
198
198
  let ve;
199
- function Fs() {
199
+ function Es() {
200
200
  ve = void 0;
201
201
  }
202
202
  const R = {
203
203
  now: () => (ve === void 0 && R.set(Se.isProcessing || N.useManualTiming ? Se.timestamp : performance.now()), ve),
204
204
  set: (e) => {
205
- ve = e, queueMicrotask(Fs);
205
+ ve = e, queueMicrotask(Es);
206
206
  }
207
- }, bn = (e) => (t) => typeof t == "string" && t.startsWith(e), Tn = /* @__PURE__ */ bn("--"), Es = /* @__PURE__ */ bn("var(--"), tt = (e) => Es(e) ? Rs.test(e.split("/*")[0].trim()) : !1, Rs = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
207
+ }, bn = (e) => (t) => typeof t == "string" && t.startsWith(e), Tn = /* @__PURE__ */ bn("--"), Rs = /* @__PURE__ */ bn("var(--"), tt = (e) => Rs(e) ? Ps.test(e.split("/*")[0].trim()) : !1, Ps = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
208
208
  function Ct(e) {
209
209
  return typeof e != "string" ? !1 : e.split("/*")[0].includes("var(--");
210
210
  }
211
- const H = {
211
+ const J = {
212
212
  test: (e) => typeof e == "number",
213
213
  parse: parseFloat,
214
214
  transform: (e) => e
215
- }, le = {
216
- ...H,
215
+ }, ue = {
216
+ ...J,
217
217
  transform: (e) => _(0, 1, e)
218
218
  }, Te = {
219
- ...H,
219
+ ...J,
220
220
  default: 1
221
- }, oe = (e) => Math.round(e * 1e5) / 1e5, nt = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
222
- function Ps(e) {
221
+ }, le = (e) => Math.round(e * 1e5) / 1e5, nt = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
222
+ function ks(e) {
223
223
  return e == null;
224
224
  }
225
- const Os = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, st = (e, t) => (n) => !!(typeof n == "string" && Os.test(n) && n.startsWith(e) || t && !Ps(n) && Object.prototype.hasOwnProperty.call(n, t)), vn = (e, t, n) => (s) => {
225
+ const Os = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, st = (e, t) => (n) => !!(typeof n == "string" && Os.test(n) && n.startsWith(e) || t && !ks(n) && Object.prototype.hasOwnProperty.call(n, t)), vn = (e, t, n) => (s) => {
226
226
  if (typeof s != "string")
227
227
  return s;
228
228
  const [i, r, a, o] = s.match(nt);
@@ -232,15 +232,15 @@ const Os = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
232
232
  [n]: parseFloat(a),
233
233
  alpha: o !== void 0 ? parseFloat(o) : 1
234
234
  };
235
- }, ks = (e) => _(0, 255, e), Ce = {
236
- ...H,
237
- transform: (e) => Math.round(ks(e))
235
+ }, Bs = (e) => _(0, 255, e), Ce = {
236
+ ...J,
237
+ transform: (e) => Math.round(Bs(e))
238
238
  }, j = {
239
239
  test: /* @__PURE__ */ st("rgb", "red"),
240
240
  parse: /* @__PURE__ */ vn("red", "green", "blue"),
241
- transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + Ce.transform(e) + ", " + Ce.transform(t) + ", " + Ce.transform(n) + ", " + oe(le.transform(s)) + ")"
241
+ transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + Ce.transform(e) + ", " + Ce.transform(t) + ", " + Ce.transform(n) + ", " + le(ue.transform(s)) + ")"
242
242
  };
243
- function Bs(e) {
243
+ function Is(e) {
244
244
  let t = "", n = "", s = "", i = "";
245
245
  return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), s = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), s = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, s += s, i += i), {
246
246
  red: parseInt(t, 16),
@@ -251,20 +251,20 @@ function Bs(e) {
251
251
  }
252
252
  const Be = {
253
253
  test: /* @__PURE__ */ st("#"),
254
- parse: Bs,
254
+ parse: Is,
255
255
  transform: j.transform
256
256
  }, me = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
257
257
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
258
258
  parse: parseFloat,
259
259
  transform: (t) => `${t}${e}`
260
- }), L = /* @__PURE__ */ me("deg"), q = /* @__PURE__ */ me("%"), d = /* @__PURE__ */ me("px"), Is = /* @__PURE__ */ me("vh"), Ns = /* @__PURE__ */ me("vw"), Dt = {
260
+ }), L = /* @__PURE__ */ me("deg"), q = /* @__PURE__ */ me("%"), d = /* @__PURE__ */ me("px"), Ns = /* @__PURE__ */ me("vh"), Ks = /* @__PURE__ */ me("vw"), Dt = {
261
261
  ...q,
262
262
  parse: (e) => q.parse(e) / 100,
263
263
  transform: (e) => q.transform(e * 100)
264
264
  }, z = {
265
265
  test: /* @__PURE__ */ st("hsl", "hue"),
266
266
  parse: /* @__PURE__ */ vn("hue", "saturation", "lightness"),
267
- transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " + q.transform(oe(t)) + ", " + q.transform(oe(n)) + ", " + oe(le.transform(s)) + ")"
267
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " + q.transform(le(t)) + ", " + q.transform(le(n)) + ", " + le(ue.transform(s)) + ")"
268
268
  }, D = {
269
269
  test: (e) => j.test(e) || Be.test(e) || z.test(e),
270
270
  parse: (e) => j.test(e) ? j.parse(e) : z.test(e) ? z.parse(e) : Be.parse(e),
@@ -273,51 +273,51 @@ const Be = {
273
273
  const t = D.parse(e);
274
274
  return t.alpha = 0, D.transform(t);
275
275
  }
276
- }, Ks = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
277
- function $s(e) {
278
- return isNaN(e) && typeof e == "string" && (e.match(nt)?.length || 0) + (e.match(Ks)?.length || 0) > 0;
276
+ }, $s = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
277
+ function Ls(e) {
278
+ return isNaN(e) && typeof e == "string" && (e.match(nt)?.length || 0) + (e.match($s)?.length || 0) > 0;
279
279
  }
280
- const Sn = "number", Vn = "color", Ls = "var", Ws = "var(", Ft = "${}", _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;
281
- function ue(e) {
280
+ const Sn = "number", Vn = "color", Ws = "var", _s = "var(", Ft = "${}", Us = /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;
281
+ function ce(e) {
282
282
  const t = e.toString(), n = [], s = {
283
283
  color: [],
284
284
  number: [],
285
285
  var: []
286
286
  }, i = [];
287
287
  let r = 0;
288
- const o = t.replace(_s, (u) => (D.test(u) ? (s.color.push(r), i.push(Vn), n.push(D.parse(u))) : u.startsWith(Ws) ? (s.var.push(r), i.push(Ls), n.push(u)) : (s.number.push(r), i.push(Sn), n.push(parseFloat(u))), ++r, Ft)).split(Ft);
288
+ const o = t.replace(Us, (u) => (D.test(u) ? (s.color.push(r), i.push(Vn), n.push(D.parse(u))) : u.startsWith(_s) ? (s.var.push(r), i.push(Ws), n.push(u)) : (s.number.push(r), i.push(Sn), n.push(parseFloat(u))), ++r, Ft)).split(Ft);
289
289
  return { values: n, split: o, indexes: s, types: i };
290
290
  }
291
- function xn(e) {
292
- return ue(e).values;
291
+ function An(e) {
292
+ return ce(e).values;
293
293
  }
294
294
  function Mn(e) {
295
- const { split: t, types: n } = ue(e), s = t.length;
295
+ const { split: t, types: n } = ce(e), s = t.length;
296
296
  return (i) => {
297
297
  let r = "";
298
298
  for (let a = 0; a < s; a++)
299
299
  if (r += t[a], i[a] !== void 0) {
300
300
  const o = n[a];
301
- o === Sn ? r += oe(i[a]) : o === Vn ? r += D.transform(i[a]) : r += i[a];
301
+ o === Sn ? r += le(i[a]) : o === Vn ? r += D.transform(i[a]) : r += i[a];
302
302
  }
303
303
  return r;
304
304
  };
305
305
  }
306
- const Us = (e) => typeof e == "number" ? 0 : D.test(e) ? D.getAnimatableNone(e) : e;
307
- function js(e) {
308
- const t = xn(e);
309
- return Mn(e)(t.map(Us));
306
+ const js = (e) => typeof e == "number" ? 0 : D.test(e) ? D.getAnimatableNone(e) : e;
307
+ function Gs(e) {
308
+ const t = An(e);
309
+ return Mn(e)(t.map(js));
310
310
  }
311
311
  const U = {
312
- test: $s,
313
- parse: xn,
312
+ test: Ls,
313
+ parse: An,
314
314
  createTransformer: Mn,
315
- getAnimatableNone: js
315
+ getAnimatableNone: Gs
316
316
  };
317
317
  function De(e, t, n) {
318
318
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
319
319
  }
320
- function Gs({ hue: e, saturation: t, lightness: n, alpha: s }) {
320
+ function Ys({ hue: e, saturation: t, lightness: n, alpha: s }) {
321
321
  e /= 360, t /= 100, n /= 100;
322
322
  let i = 0, r = 0, a = 0;
323
323
  if (!t)
@@ -336,34 +336,34 @@ function Gs({ hue: e, saturation: t, lightness: n, alpha: s }) {
336
336
  function Ve(e, t) {
337
337
  return (n) => n > 0 ? t : e;
338
338
  }
339
- const J = (e, t, n) => e + (t - e) * n, Fe = (e, t, n) => {
339
+ const Q = (e, t, n) => e + (t - e) * n, Fe = (e, t, n) => {
340
340
  const s = e * e, i = n * (t * t - s) + s;
341
341
  return i < 0 ? 0 : Math.sqrt(i);
342
- }, Ys = [Be, j, z], zs = (e) => Ys.find((t) => t.test(e));
342
+ }, zs = [Be, j, z], Xs = (e) => zs.find((t) => t.test(e));
343
343
  function Et(e) {
344
- const t = zs(e);
344
+ const t = Xs(e);
345
345
  if (de(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t)
346
346
  return !1;
347
347
  let n = t.parse(e);
348
- return t === z && (n = Gs(n)), n;
348
+ return t === z && (n = Ys(n)), n;
349
349
  }
350
350
  const Rt = (e, t) => {
351
351
  const n = Et(e), s = Et(t);
352
352
  if (!n || !s)
353
353
  return Ve(e, t);
354
354
  const i = { ...n };
355
- return (r) => (i.red = Fe(n.red, s.red, r), i.green = Fe(n.green, s.green, r), i.blue = Fe(n.blue, s.blue, r), i.alpha = J(n.alpha, s.alpha, r), j.transform(i));
355
+ return (r) => (i.red = Fe(n.red, s.red, r), i.green = Fe(n.green, s.green, r), i.blue = Fe(n.blue, s.blue, r), i.alpha = Q(n.alpha, s.alpha, r), j.transform(i));
356
356
  }, Ie = /* @__PURE__ */ new Set(["none", "hidden"]);
357
- function Xs(e, t) {
357
+ function qs(e, t) {
358
358
  return Ie.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
359
359
  }
360
- function qs(e, t) {
361
- return (n) => J(e, t, n);
360
+ function Zs(e, t) {
361
+ return (n) => Q(e, t, n);
362
362
  }
363
363
  function it(e) {
364
- return typeof e == "number" ? qs : typeof e == "string" ? tt(e) ? Ve : D.test(e) ? Rt : Js : Array.isArray(e) ? wn : typeof e == "object" ? D.test(e) ? Rt : Zs : Ve;
364
+ return typeof e == "number" ? Zs : typeof e == "string" ? tt(e) ? Ve : D.test(e) ? Rt : Qs : Array.isArray(e) ? xn : typeof e == "object" ? D.test(e) ? Rt : Hs : Ve;
365
365
  }
366
- function wn(e, t) {
366
+ function xn(e, t) {
367
367
  const n = [...e], s = n.length, i = e.map((r, a) => it(r)(r, t[a]));
368
368
  return (r) => {
369
369
  for (let a = 0; a < s; a++)
@@ -371,7 +371,7 @@ function wn(e, t) {
371
371
  return n;
372
372
  };
373
373
  }
374
- function Zs(e, t) {
374
+ function Hs(e, t) {
375
375
  const n = { ...e, ...t }, s = {};
376
376
  for (const i in n)
377
377
  e[i] !== void 0 && t[i] !== void 0 && (s[i] = it(e[i])(e[i], t[i]));
@@ -381,7 +381,7 @@ function Zs(e, t) {
381
381
  return n;
382
382
  };
383
383
  }
384
- function Hs(e, t) {
384
+ function Js(e, t) {
385
385
  const n = [], s = { color: 0, var: 0, number: 0 };
386
386
  for (let i = 0; i < t.values.length; i++) {
387
387
  const r = t.types[i], a = e.indexes[r][s[r]], o = e.values[a] ?? 0;
@@ -389,18 +389,18 @@ function Hs(e, t) {
389
389
  }
390
390
  return n;
391
391
  }
392
- const Js = (e, t) => {
393
- const n = U.createTransformer(t), s = ue(e), i = ue(t);
394
- 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 ? Xs(e, t) : He(wn(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"), Ve(e, t));
392
+ const Qs = (e, t) => {
393
+ const n = U.createTransformer(t), s = ce(e), i = ce(t);
394
+ 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 ? qs(e, t) : He(xn(Js(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"), Ve(e, t));
395
395
  };
396
- function An(e, t, n) {
397
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? J(e, t, n) : it(e)(e, t);
396
+ function wn(e, t, n) {
397
+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Q(e, t, n) : it(e)(e, t);
398
398
  }
399
- const Qs = (e) => {
399
+ const ei = (e) => {
400
400
  const t = ({ timestamp: n }) => e(n);
401
401
  return {
402
402
  start: (n = !0) => K.update(t, n),
403
- stop: () => ke(t),
403
+ stop: () => Oe(t),
404
404
  /**
405
405
  * If we're processing this frame we can use the
406
406
  * framelocked timestamp to keep things in sync.
@@ -413,26 +413,26 @@ const Qs = (e) => {
413
413
  for (let r = 0; r < i; r++)
414
414
  s += Math.round(e(r / (i - 1)) * 1e4) / 1e4 + ", ";
415
415
  return `linear(${s.substring(0, s.length - 2)})`;
416
- }, xe = 2e4;
416
+ }, Ae = 2e4;
417
417
  function rt(e) {
418
418
  let t = 0;
419
419
  const n = 50;
420
420
  let s = e.next(t);
421
- for (; !s.done && t < xe; )
421
+ for (; !s.done && t < Ae; )
422
422
  t += n, s = e.next(t);
423
- return t >= xe ? 1 / 0 : t;
423
+ return t >= Ae ? 1 / 0 : t;
424
424
  }
425
425
  function Dn(e, t = 100, n) {
426
- const s = n({ ...e, keyframes: [0, t] }), i = Math.min(rt(s), xe);
426
+ const s = n({ ...e, keyframes: [0, t] }), i = Math.min(rt(s), Ae);
427
427
  return {
428
428
  type: "keyframes",
429
429
  ease: (r) => s.next(i * r).value / t,
430
430
  duration: /* @__PURE__ */ P(i)
431
431
  };
432
432
  }
433
- const ei = 5;
433
+ const ti = 5;
434
434
  function Fn(e, t, n) {
435
- const s = Math.max(t - ei, 0);
435
+ const s = Math.max(t - ti, 0);
436
436
  return sn(n - e(s), t - s);
437
437
  }
438
438
  const C = {
@@ -464,16 +464,16 @@ const C = {
464
464
  minDamping: 0.05,
465
465
  maxDamping: 1
466
466
  }, Ee = 1e-3;
467
- function ti({ duration: e = C.duration, bounce: t = C.bounce, velocity: n = C.velocity, mass: s = C.mass }) {
467
+ function ni({ duration: e = C.duration, bounce: t = C.bounce, velocity: n = C.velocity, mass: s = C.mass }) {
468
468
  let i, r;
469
- de(e <= /* @__PURE__ */ k(C.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
469
+ de(e <= /* @__PURE__ */ O(C.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
470
470
  let a = 1 - t;
471
471
  a = _(C.minDamping, C.maxDamping, a), e = _(C.minDuration, C.maxDuration, /* @__PURE__ */ P(e)), a < 1 ? (i = (c) => {
472
- const l = c * a, f = l * e, h = l - n, m = Ne(c, a), g = Math.exp(-f);
473
- return Ee - h / m * g;
472
+ const l = c * a, f = l * e, h = l - n, p = Ne(c, a), g = Math.exp(-f);
473
+ return Ee - h / p * g;
474
474
  }, r = (c) => {
475
- const f = c * a * e, h = f * n + n, m = Math.pow(a, 2) * Math.pow(c, 2) * e, g = Math.exp(-f), y = Ne(Math.pow(c, 2), a);
476
- return (-i(c) + Ee > 0 ? -1 : 1) * ((h - m) * g) / y;
475
+ const f = c * a * e, h = f * n + n, p = Math.pow(a, 2) * Math.pow(c, 2) * e, g = Math.exp(-f), y = Ne(Math.pow(c, 2), a);
476
+ return (-i(c) + Ee > 0 ? -1 : 1) * ((h - p) * g) / y;
477
477
  }) : (i = (c) => {
478
478
  const l = Math.exp(-c * e), f = (c - n) * e + 1;
479
479
  return -Ee + l * f;
@@ -481,8 +481,8 @@ function ti({ duration: e = C.duration, bounce: t = C.bounce, velocity: n = C.ve
481
481
  const l = Math.exp(-c * e), f = (n - c) * (e * e);
482
482
  return l * f;
483
483
  });
484
- const o = 5 / e, u = si(i, r, o);
485
- if (e = /* @__PURE__ */ k(e), isNaN(u))
484
+ const o = 5 / e, u = ii(i, r, o);
485
+ if (e = /* @__PURE__ */ O(e), isNaN(u))
486
486
  return {
487
487
  stiffness: C.stiffness,
488
488
  damping: C.damping,
@@ -497,21 +497,21 @@ function ti({ duration: e = C.duration, bounce: t = C.bounce, velocity: n = C.ve
497
497
  };
498
498
  }
499
499
  }
500
- const ni = 12;
501
- function si(e, t, n) {
500
+ const si = 12;
501
+ function ii(e, t, n) {
502
502
  let s = n;
503
- for (let i = 1; i < ni; i++)
503
+ for (let i = 1; i < si; i++)
504
504
  s = s - e(s) / t(s);
505
505
  return s;
506
506
  }
507
507
  function Ne(e, t) {
508
508
  return e * Math.sqrt(1 - t * t);
509
509
  }
510
- const ii = ["duration", "bounce"], ri = ["stiffness", "damping", "mass"];
510
+ const ri = ["duration", "bounce"], ai = ["stiffness", "damping", "mass"];
511
511
  function Pt(e, t) {
512
512
  return t.some((n) => e[n] !== void 0);
513
513
  }
514
- function ai(e) {
514
+ function oi(e) {
515
515
  let t = {
516
516
  velocity: C.velocity,
517
517
  stiffness: C.stiffness,
@@ -520,7 +520,7 @@ function ai(e) {
520
520
  isResolvedFromDuration: !1,
521
521
  ...e
522
522
  };
523
- if (!Pt(e, ri) && Pt(e, ii))
523
+ if (!Pt(e, ai) && Pt(e, ri))
524
524
  if (e.visualDuration) {
525
525
  const n = e.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, r = 2 * _(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
526
526
  t = {
@@ -530,7 +530,7 @@ function ai(e) {
530
530
  damping: r
531
531
  };
532
532
  } else {
533
- const n = ti(e);
533
+ const n = ni(e);
534
534
  t = {
535
535
  ...t,
536
536
  ...n,
@@ -539,76 +539,76 @@ function ai(e) {
539
539
  }
540
540
  return t;
541
541
  }
542
- function ce(e = C.visualDuration, t = C.bounce) {
542
+ function fe(e = C.visualDuration, t = C.bounce) {
543
543
  const n = typeof e != "object" ? {
544
544
  visualDuration: e,
545
545
  keyframes: [0, 1],
546
546
  bounce: t
547
547
  } : e;
548
548
  let { restSpeed: s, restDelta: i } = n;
549
- const r = n.keyframes[0], a = n.keyframes[n.keyframes.length - 1], o = { done: !1, value: r }, { stiffness: u, damping: c, mass: l, duration: f, velocity: h, isResolvedFromDuration: m } = ai({
549
+ const r = n.keyframes[0], a = n.keyframes[n.keyframes.length - 1], o = { done: !1, value: r }, { stiffness: u, damping: c, mass: l, duration: f, velocity: h, isResolvedFromDuration: p } = oi({
550
550
  ...n,
551
551
  velocity: -/* @__PURE__ */ P(n.velocity || 0)
552
- }), g = h || 0, y = c / (2 * Math.sqrt(u * l)), v = a - r, S = /* @__PURE__ */ P(Math.sqrt(u / l)), w = Math.abs(v) < 5;
552
+ }), g = h || 0, y = c / (2 * Math.sqrt(u * l)), S = a - r, v = /* @__PURE__ */ P(Math.sqrt(u / l)), w = Math.abs(S) < 5;
553
553
  s || (s = w ? C.restSpeed.granular : C.restSpeed.default), i || (i = w ? C.restDelta.granular : C.restDelta.default);
554
554
  let V;
555
555
  if (y < 1) {
556
- const p = Ne(S, y);
556
+ const m = Ne(v, y);
557
557
  V = (b) => {
558
- const A = Math.exp(-y * S * b);
559
- return a - A * ((g + y * S * v) / p * Math.sin(p * b) + v * Math.cos(p * b));
558
+ const x = Math.exp(-y * v * b);
559
+ return a - x * ((g + y * v * S) / m * Math.sin(m * b) + S * Math.cos(m * b));
560
560
  };
561
561
  } else if (y === 1)
562
- V = (p) => a - Math.exp(-S * p) * (v + (g + S * v) * p);
562
+ V = (m) => a - Math.exp(-v * m) * (S + (g + v * S) * m);
563
563
  else {
564
- const p = S * Math.sqrt(y * y - 1);
564
+ const m = v * Math.sqrt(y * y - 1);
565
565
  V = (b) => {
566
- const A = Math.exp(-y * S * b), T = Math.min(p * b, 300);
567
- return a - A * ((g + y * S * v) * Math.sinh(T) + p * v * Math.cosh(T)) / p;
566
+ const x = Math.exp(-y * v * b), T = Math.min(m * b, 300);
567
+ return a - x * ((g + y * v * S) * Math.sinh(T) + m * S * Math.cosh(T)) / m;
568
568
  };
569
569
  }
570
- const x = {
571
- calculatedDuration: m && f || null,
572
- next: (p) => {
573
- const b = V(p);
574
- if (m)
575
- o.done = p >= f;
570
+ const A = {
571
+ calculatedDuration: p && f || null,
572
+ next: (m) => {
573
+ const b = V(m);
574
+ if (p)
575
+ o.done = m >= f;
576
576
  else {
577
- let A = p === 0 ? g : 0;
578
- y < 1 && (A = p === 0 ? /* @__PURE__ */ k(g) : Fn(V, p, b));
579
- const T = Math.abs(A) <= s, M = Math.abs(a - b) <= i;
577
+ let x = m === 0 ? g : 0;
578
+ y < 1 && (x = m === 0 ? /* @__PURE__ */ O(g) : Fn(V, m, b));
579
+ const T = Math.abs(x) <= s, M = Math.abs(a - b) <= i;
580
580
  o.done = T && M;
581
581
  }
582
582
  return o.value = o.done ? a : b, o;
583
583
  },
584
584
  toString: () => {
585
- const p = Math.min(rt(x), xe), b = Cn((A) => x.next(p * A).value, p, 30);
586
- return p + "ms " + b;
585
+ const m = Math.min(rt(A), Ae), b = Cn((x) => A.next(m * x).value, m, 30);
586
+ return m + "ms " + b;
587
587
  },
588
588
  toTransition: () => {
589
589
  }
590
590
  };
591
- return x;
591
+ return A;
592
592
  }
593
- ce.applyToOptions = (e) => {
594
- const t = Dn(e, 100, ce);
595
- return e.ease = t.ease, e.duration = /* @__PURE__ */ k(t.duration), e.type = "keyframes", e;
593
+ fe.applyToOptions = (e) => {
594
+ const t = Dn(e, 100, fe);
595
+ return e.ease = t.ease, e.duration = /* @__PURE__ */ O(t.duration), e.type = "keyframes", e;
596
596
  };
597
597
  function Ke({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: r = 500, modifyTarget: a, min: o, max: u, restDelta: c = 0.5, restSpeed: l }) {
598
598
  const f = e[0], h = {
599
599
  done: !1,
600
600
  value: f
601
- }, m = (T) => o !== void 0 && T < o || u !== void 0 && T > u, g = (T) => o === void 0 ? u : u === void 0 || Math.abs(o - T) < Math.abs(u - T) ? o : u;
601
+ }, p = (T) => o !== void 0 && T < o || u !== void 0 && T > u, g = (T) => o === void 0 ? u : u === void 0 || Math.abs(o - T) < Math.abs(u - T) ? o : u;
602
602
  let y = n * t;
603
- const v = f + y, S = a === void 0 ? v : a(v);
604
- S !== v && (y = S - f);
605
- const w = (T) => -y * Math.exp(-T / s), V = (T) => S + w(T), x = (T) => {
603
+ const S = f + y, v = a === void 0 ? S : a(S);
604
+ v !== S && (y = v - f);
605
+ const w = (T) => -y * Math.exp(-T / s), V = (T) => v + w(T), A = (T) => {
606
606
  const M = w(T), F = V(T);
607
- h.done = Math.abs(M) <= c, h.value = h.done ? S : F;
607
+ h.done = Math.abs(M) <= c, h.value = h.done ? v : F;
608
608
  };
609
- let p, b;
610
- const A = (T) => {
611
- m(h.value) && (p = T, b = ce({
609
+ let m, b;
610
+ const x = (T) => {
611
+ p(h.value) && (m = T, b = fe({
612
612
  keyframes: [h.value, g(h.value)],
613
613
  velocity: Fn(V, T, h.value),
614
614
  // TODO: This should be passing * 1000
@@ -618,27 +618,27 @@ function Ke({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
618
618
  restSpeed: l
619
619
  }));
620
620
  };
621
- return A(0), {
621
+ return x(0), {
622
622
  calculatedDuration: null,
623
623
  next: (T) => {
624
624
  let M = !1;
625
- return !b && p === void 0 && (M = !0, x(T), A(T)), p !== void 0 && T >= p ? b.next(T - p) : (!M && x(T), h);
625
+ return !b && m === void 0 && (M = !0, A(T), x(T)), m !== void 0 && T >= m ? b.next(T - m) : (!M && A(T), h);
626
626
  }
627
627
  };
628
628
  }
629
- function oi(e, t, n) {
630
- const s = [], i = n || N.mix || An, r = e.length - 1;
629
+ function li(e, t, n) {
630
+ const s = [], i = n || N.mix || wn, r = e.length - 1;
631
631
  for (let a = 0; a < r; a++) {
632
632
  let o = i(e[a], e[a + 1]);
633
633
  if (t) {
634
- const u = Array.isArray(t) ? t[a] || Z : t;
634
+ const u = Array.isArray(t) ? t[a] || H : t;
635
635
  o = He(u, o);
636
636
  }
637
637
  s.push(o);
638
638
  }
639
639
  return s;
640
640
  }
641
- function li(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
641
+ function ui(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
642
642
  const r = e.length;
643
643
  if (I(r === t.length, "Both input and output ranges must be the same length", "range-length"), r === 1)
644
644
  return () => t[0];
@@ -646,7 +646,7 @@ function li(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
646
646
  return () => t[1];
647
647
  const a = e[0] === e[1];
648
648
  e[0] > e[r - 1] && (e = [...e].reverse(), t = [...t].reverse());
649
- const o = oi(t, s, i), u = o.length, c = (l) => {
649
+ const o = li(t, s, i), u = o.length, c = (l) => {
650
650
  if (a && l < e[0])
651
651
  return t[0];
652
652
  let f = 0;
@@ -662,50 +662,50 @@ function En(e, t) {
662
662
  const n = e[e.length - 1];
663
663
  for (let s = 1; s <= t; s++) {
664
664
  const i = /* @__PURE__ */ Je(0, t, s);
665
- e.push(J(n, 1, i));
665
+ e.push(Q(n, 1, i));
666
666
  }
667
667
  }
668
668
  function Rn(e) {
669
669
  const t = [0];
670
670
  return En(t, e.length - 1), t;
671
671
  }
672
- function ui(e, t) {
672
+ function ci(e, t) {
673
673
  return e.map((n) => n * t);
674
674
  }
675
- function ci(e, t) {
675
+ function fi(e, t) {
676
676
  return e.map(() => t || dn).splice(0, e.length - 1);
677
677
  }
678
678
  function X({ duration: e = 300, keyframes: t, times: n, ease: s = "easeInOut" }) {
679
- const i = pn(s) ? s.map(At) : At(s), r = {
679
+ const i = pn(s) ? s.map(wt) : wt(s), r = {
680
680
  done: !1,
681
681
  value: t[0]
682
- }, a = ui(
682
+ }, a = ci(
683
683
  // Only use the provided offsets if they're the correct length
684
684
  // TODO Maybe we should warn here if there's a length mismatch
685
685
  n && n.length === t.length ? n : Rn(t),
686
686
  e
687
- ), o = li(a, t, {
688
- ease: Array.isArray(i) ? i : ci(t, i)
687
+ ), o = ui(a, t, {
688
+ ease: Array.isArray(i) ? i : fi(t, i)
689
689
  });
690
690
  return {
691
691
  calculatedDuration: e,
692
692
  next: (u) => (r.value = o(u), r.done = u >= e, r)
693
693
  };
694
694
  }
695
- const fi = (e) => e !== null;
695
+ const hi = (e) => e !== null;
696
696
  function at(e, { repeat: t, repeatType: n = "loop" }, s, i = 1) {
697
- const r = e.filter(fi), o = i < 0 || t && n !== "loop" && t % 2 === 1 ? 0 : r.length - 1;
697
+ const r = e.filter(hi), o = i < 0 || t && n !== "loop" && t % 2 === 1 ? 0 : r.length - 1;
698
698
  return !o || s === void 0 ? r[o] : s;
699
699
  }
700
- const hi = {
700
+ const di = {
701
701
  decay: Ke,
702
702
  inertia: Ke,
703
703
  tween: X,
704
704
  keyframes: X,
705
- spring: ce
705
+ spring: fe
706
706
  };
707
707
  function Pn(e) {
708
- typeof e.type == "string" && (e.type = hi[e.type]);
708
+ typeof e.type == "string" && (e.type = di[e.type]);
709
709
  }
710
710
  class ot {
711
711
  constructor() {
@@ -731,7 +731,7 @@ class ot {
731
731
  return this.finished.then(t, n);
732
732
  }
733
733
  }
734
- const di = (e) => e / 100;
734
+ const pi = (e) => e / 100;
735
735
  class lt extends ot {
736
736
  constructor(t) {
737
737
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
@@ -745,7 +745,7 @@ class lt extends ot {
745
745
  const { type: n = X, repeat: s = 0, repeatDelay: i = 0, repeatType: r, velocity: a = 0 } = t;
746
746
  let { keyframes: o } = t;
747
747
  const u = n || X;
748
- process.env.NODE_ENV !== "production" && u !== X && I(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`, "spring-two-frames"), u !== X && typeof o[0] != "number" && (this.mixKeyframes = He(di, An(o[0], o[1])), o = [0, 100]);
748
+ process.env.NODE_ENV !== "production" && u !== X && I(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`, "spring-two-frames"), u !== X && typeof o[0] != "number" && (this.mixKeyframes = He(pi, wn(o[0], o[1])), o = [0, 100]);
749
749
  const c = u({ ...t, keyframes: o });
750
750
  r === "mirror" && (this.mirroredGenerator = u({
751
751
  ...t,
@@ -763,22 +763,22 @@ class lt extends ot {
763
763
  const { generator: s, totalDuration: i, mixKeyframes: r, mirroredGenerator: a, resolvedDuration: o, calculatedDuration: u } = this;
764
764
  if (this.startTime === null)
765
765
  return s.next(0);
766
- const { delay: c = 0, keyframes: l, repeat: f, repeatType: h, repeatDelay: m, type: g, onUpdate: y, finalKeyframe: v } = this.options;
766
+ const { delay: c = 0, keyframes: l, repeat: f, repeatType: h, repeatDelay: p, type: g, onUpdate: y, finalKeyframe: S } = this.options;
767
767
  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);
768
- const S = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), w = this.playbackSpeed >= 0 ? S < 0 : S > i;
769
- this.currentTime = Math.max(S, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
770
- let V = this.currentTime, x = s;
768
+ const v = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), w = this.playbackSpeed >= 0 ? v < 0 : v > i;
769
+ this.currentTime = Math.max(v, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
770
+ let V = this.currentTime, A = s;
771
771
  if (f) {
772
772
  const T = Math.min(this.currentTime, i) / o;
773
773
  let M = Math.floor(T), F = T % 1;
774
- !F && T >= 1 && (F = 1), F === 1 && M--, M = Math.min(M, f + 1), M % 2 && (h === "reverse" ? (F = 1 - F, m && (F -= m / o)) : h === "mirror" && (x = a)), V = _(0, 1, F) * o;
774
+ !F && T >= 1 && (F = 1), F === 1 && M--, M = Math.min(M, f + 1), M % 2 && (h === "reverse" ? (F = 1 - F, p && (F -= p / o)) : h === "mirror" && (A = a)), V = _(0, 1, F) * o;
775
775
  }
776
- const p = w ? { done: !1, value: l[0] } : x.next(V);
777
- r && (p.value = r(p.value));
778
- let { done: b } = p;
776
+ const m = w ? { done: !1, value: l[0] } : A.next(V);
777
+ r && (m.value = r(m.value));
778
+ let { done: b } = m;
779
779
  !w && u !== null && (b = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
780
- const A = this.holdTime === null && (this.state === "finished" || this.state === "running" && b);
781
- return A && g !== Ke && (p.value = at(l, this.options, v, this.speed)), y && y(p.value), A && this.finish(), p;
780
+ const x = this.holdTime === null && (this.state === "finished" || this.state === "running" && b);
781
+ return x && g !== Ke && (m.value = at(l, this.options, S, this.speed)), y && y(m.value), x && this.finish(), m;
782
782
  }
783
783
  /**
784
784
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -799,7 +799,7 @@ class lt extends ot {
799
799
  return /* @__PURE__ */ P(this.currentTime);
800
800
  }
801
801
  set time(t) {
802
- t = /* @__PURE__ */ k(t), this.currentTime = t, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.playbackSpeed), this.driver?.start(!1);
802
+ t = /* @__PURE__ */ O(t), this.currentTime = t, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.playbackSpeed), this.driver?.start(!1);
803
803
  }
804
804
  get speed() {
805
805
  return this.playbackSpeed;
@@ -812,7 +812,7 @@ class lt extends ot {
812
812
  play() {
813
813
  if (this.isStopped)
814
814
  return;
815
- const { driver: t = Qs, startTime: n } = this.options;
815
+ const { driver: t = ei, startTime: n } = this.options;
816
816
  this.driver || (this.driver = t((i) => this.tick(i))), this.options.onPlay?.();
817
817
  const s = this.driver.now();
818
818
  this.state === "finished" ? (this.updateFinished(), this.startTime = s) : this.holdTime !== null ? this.startTime = s - this.holdTime : this.startTime || (this.startTime = n ?? s), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -842,14 +842,14 @@ class lt extends ot {
842
842
  return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), t.observe(this);
843
843
  }
844
844
  }
845
- function pi(e) {
845
+ function mi(e) {
846
846
  for (let t = 1; t < e.length; t++)
847
847
  e[t] ?? (e[t] = e[t - 1]);
848
848
  }
849
849
  const G = (e) => e * 180 / Math.PI, $e = (e) => {
850
850
  const t = G(Math.atan2(e[1], e[0]));
851
851
  return Le(t);
852
- }, mi = {
852
+ }, gi = {
853
853
  x: 4,
854
854
  y: 5,
855
855
  translateX: 4,
@@ -862,20 +862,20 @@ const G = (e) => e * 180 / Math.PI, $e = (e) => {
862
862
  skewX: (e) => G(Math.atan(e[1])),
863
863
  skewY: (e) => G(Math.atan(e[2])),
864
864
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
865
- }, Le = (e) => (e = e % 360, e < 0 && (e += 360), e), Ot = $e, kt = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Bt = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), gi = {
865
+ }, Le = (e) => (e = e % 360, e < 0 && (e += 360), e), kt = $e, Ot = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Bt = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), yi = {
866
866
  x: 12,
867
867
  y: 13,
868
868
  z: 14,
869
869
  translateX: 12,
870
870
  translateY: 13,
871
871
  translateZ: 14,
872
- scaleX: kt,
872
+ scaleX: Ot,
873
873
  scaleY: Bt,
874
- scale: (e) => (kt(e) + Bt(e)) / 2,
874
+ scale: (e) => (Ot(e) + Bt(e)) / 2,
875
875
  rotateX: (e) => Le(G(Math.atan2(e[6], e[5]))),
876
876
  rotateY: (e) => Le(G(Math.atan2(-e[2], e[0]))),
877
- rotateZ: Ot,
878
- rotate: Ot,
877
+ rotateZ: kt,
878
+ rotate: kt,
879
879
  skewX: (e) => G(Math.atan(e[4])),
880
880
  skewY: (e) => G(Math.atan(e[1])),
881
881
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
@@ -889,24 +889,24 @@ function _e(e, t) {
889
889
  const n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
890
890
  let s, i;
891
891
  if (n)
892
- s = gi, i = n;
892
+ s = yi, i = n;
893
893
  else {
894
894
  const o = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
895
- s = mi, i = o;
895
+ s = gi, i = o;
896
896
  }
897
897
  if (!i)
898
898
  return We(t);
899
- const r = s[t], a = i[1].split(",").map(bi);
899
+ const r = s[t], a = i[1].split(",").map(Ti);
900
900
  return typeof r == "function" ? r(a) : a[r];
901
901
  }
902
- const yi = (e, t) => {
902
+ const bi = (e, t) => {
903
903
  const { transform: n = "none" } = getComputedStyle(e);
904
904
  return _e(n, t);
905
905
  };
906
- function bi(e) {
906
+ function Ti(e) {
907
907
  return parseFloat(e.trim());
908
908
  }
909
- const Q = [
909
+ const ee = [
910
910
  "transformPerspective",
911
911
  "x",
912
912
  "y",
@@ -924,10 +924,10 @@ const Q = [
924
924
  "skew",
925
925
  "skewX",
926
926
  "skewY"
927
- ], ee = new Set(Q), It = (e) => e === H || e === d, Ti = /* @__PURE__ */ new Set(["x", "y", "z"]), vi = Q.filter((e) => !Ti.has(e));
928
- function Si(e) {
927
+ ], te = new Set(ee), It = (e) => e === J || e === d, vi = /* @__PURE__ */ new Set(["x", "y", "z"]), Si = ee.filter((e) => !vi.has(e));
928
+ function Vi(e) {
929
929
  const t = [];
930
- return vi.forEach((n) => {
930
+ return Si.forEach((n) => {
931
931
  const s = e.getValue(n);
932
932
  s !== void 0 && (t.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
933
933
  }), t;
@@ -948,11 +948,11 @@ W.translateX = W.x;
948
948
  W.translateY = W.y;
949
949
  const Y = /* @__PURE__ */ new Set();
950
950
  let Ue = !1, je = !1, Ge = !1;
951
- function On() {
951
+ function kn() {
952
952
  if (je) {
953
953
  const e = Array.from(Y).filter((s) => s.needsMeasurement), t = new Set(e.map((s) => s.element)), n = /* @__PURE__ */ new Map();
954
954
  t.forEach((s) => {
955
- const i = Si(s);
955
+ const i = Vi(s);
956
956
  i.length && (n.set(s, i), s.render());
957
957
  }), e.forEach((s) => s.measureInitialState()), t.forEach((s) => {
958
958
  s.render();
@@ -966,20 +966,20 @@ function On() {
966
966
  }
967
967
  je = !1, Ue = !1, Y.forEach((e) => e.complete(Ge)), Y.clear();
968
968
  }
969
- function kn() {
969
+ function On() {
970
970
  Y.forEach((e) => {
971
971
  e.readKeyframes(), e.needsMeasurement && (je = !0);
972
972
  });
973
973
  }
974
- function Vi() {
975
- Ge = !0, kn(), On(), Ge = !1;
974
+ function Ai() {
975
+ Ge = !0, On(), kn(), Ge = !1;
976
976
  }
977
977
  class ut {
978
978
  constructor(t, n, s, i, r, a = !1) {
979
979
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = s, this.motionValue = i, this.element = r, this.isAsync = a;
980
980
  }
981
981
  scheduleResolve() {
982
- this.state = "scheduled", this.isAsync ? (Y.add(this), Ue || (Ue = !0, K.read(kn), K.resolveKeyframes(On))) : (this.readKeyframes(), this.complete());
982
+ this.state = "scheduled", this.isAsync ? (Y.add(this), Ue || (Ue = !0, K.read(On), K.resolveKeyframes(kn))) : (this.readKeyframes(), this.complete());
983
983
  }
984
984
  readKeyframes() {
985
985
  const { unresolvedKeyframes: t, name: n, element: s, motionValue: i } = this;
@@ -993,7 +993,7 @@ class ut {
993
993
  }
994
994
  t[0] === void 0 && (t[0] = a), i && r === void 0 && i.set(t[0]);
995
995
  }
996
- pi(t);
996
+ mi(t);
997
997
  }
998
998
  setFinalKeyframe() {
999
999
  }
@@ -1013,38 +1013,38 @@ class ut {
1013
1013
  this.state === "pending" && this.scheduleResolve();
1014
1014
  }
1015
1015
  }
1016
- const xi = (e) => e.startsWith("--");
1017
- function Mi(e, t, n) {
1018
- xi(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1016
+ const Mi = (e) => e.startsWith("--");
1017
+ function xi(e, t, n) {
1018
+ Mi(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1019
1019
  }
1020
- const wi = /* @__PURE__ */ Ze(() => window.ScrollTimeline !== void 0), Ai = {};
1021
- function Ci(e, t) {
1020
+ const wi = /* @__PURE__ */ Ze(() => window.ScrollTimeline !== void 0), Ci = {};
1021
+ function Di(e, t) {
1022
1022
  const n = /* @__PURE__ */ Ze(e);
1023
- return () => Ai[t] ?? n();
1023
+ return () => Ci[t] ?? n();
1024
1024
  }
1025
- const Bn = /* @__PURE__ */ Ci(() => {
1025
+ const Bn = /* @__PURE__ */ Di(() => {
1026
1026
  try {
1027
1027
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1028
1028
  } catch {
1029
1029
  return !1;
1030
1030
  }
1031
1031
  return !0;
1032
- }, "linearEasing"), ae = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, Nt = {
1032
+ }, "linearEasing"), oe = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, Nt = {
1033
1033
  linear: "linear",
1034
1034
  ease: "ease",
1035
1035
  easeIn: "ease-in",
1036
1036
  easeOut: "ease-out",
1037
1037
  easeInOut: "ease-in-out",
1038
- circIn: /* @__PURE__ */ ae([0, 0.65, 0.55, 1]),
1039
- circOut: /* @__PURE__ */ ae([0.55, 0, 1, 0.45]),
1040
- backIn: /* @__PURE__ */ ae([0.31, 0.01, 0.66, -0.59]),
1041
- backOut: /* @__PURE__ */ ae([0.33, 1.53, 0.69, 0.99])
1038
+ circIn: /* @__PURE__ */ oe([0, 0.65, 0.55, 1]),
1039
+ circOut: /* @__PURE__ */ oe([0.55, 0, 1, 0.45]),
1040
+ backIn: /* @__PURE__ */ oe([0.31, 0.01, 0.66, -0.59]),
1041
+ backOut: /* @__PURE__ */ oe([0.33, 1.53, 0.69, 0.99])
1042
1042
  };
1043
1043
  function In(e, t) {
1044
1044
  if (e)
1045
- return typeof e == "function" ? Bn() ? Cn(e, t) : "ease-out" : gn(e) ? ae(e) : Array.isArray(e) ? e.map((n) => In(n, t) || Nt.easeOut) : Nt[e];
1045
+ return typeof e == "function" ? Bn() ? Cn(e, t) : "ease-out" : gn(e) ? oe(e) : Array.isArray(e) ? e.map((n) => In(n, t) || Nt.easeOut) : Nt[e];
1046
1046
  }
1047
- function Di(e, t, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatType: a = "loop", ease: o = "easeOut", times: u } = {}, c = void 0) {
1047
+ function Fi(e, t, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatType: a = "loop", ease: o = "easeOut", times: u } = {}, c = void 0) {
1048
1048
  const l = {
1049
1049
  [t]: n
1050
1050
  };
@@ -1064,20 +1064,20 @@ function Di(e, t, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatTyp
1064
1064
  function ct(e) {
1065
1065
  return typeof e == "function" && "applyToOptions" in e;
1066
1066
  }
1067
- function Fi({ type: e, ...t }) {
1067
+ function Ei({ type: e, ...t }) {
1068
1068
  return ct(e) && Bn() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
1069
1069
  }
1070
- class Ei extends ot {
1070
+ class Ri extends ot {
1071
1071
  constructor(t) {
1072
1072
  if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !t)
1073
1073
  return;
1074
1074
  const { element: n, name: s, keyframes: i, pseudoElement: r, allowFlatten: a = !1, finalKeyframe: o, onComplete: u } = t;
1075
1075
  this.isPseudoElement = !!r, this.allowFlatten = a, this.options = t, I(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1076
- const c = Fi(t);
1077
- this.animation = Di(n, s, i, c, r), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1076
+ const c = Ei(t);
1077
+ this.animation = Fi(n, s, i, c, r), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1078
1078
  if (this.finishedTime = this.time, !r) {
1079
1079
  const l = at(i, this.options, o, this.speed);
1080
- this.updateMotionValue ? this.updateMotionValue(l) : Mi(n, s, l), this.animation.cancel();
1080
+ this.updateMotionValue ? this.updateMotionValue(l) : xi(n, s, l), this.animation.cancel();
1081
1081
  }
1082
1082
  u?.(), this.notifyFinished();
1083
1083
  };
@@ -1117,7 +1117,8 @@ class Ei extends ot {
1117
1117
  * while deferring the commit until the next animation frame.
1118
1118
  */
1119
1119
  commitStyles() {
1120
- this.isPseudoElement || this.animation.commitStyles?.();
1120
+ const t = this.options?.element;
1121
+ !this.isPseudoElement && t?.isConnected && this.animation.commitStyles?.();
1121
1122
  }
1122
1123
  get duration() {
1123
1124
  const t = this.animation.effect?.getComputedTiming?.().duration || 0;
@@ -1131,7 +1132,7 @@ class Ei extends ot {
1131
1132
  return /* @__PURE__ */ P(Number(this.animation.currentTime) || 0);
1132
1133
  }
1133
1134
  set time(t) {
1134
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ k(t);
1135
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ O(t);
1135
1136
  }
1136
1137
  /**
1137
1138
  * The playback speed of the animation.
@@ -1156,7 +1157,7 @@ class Ei extends ot {
1156
1157
  * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
1157
1158
  */
1158
1159
  attachTimeline({ timeline: t, observe: n }) {
1159
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && wi() ? (this.animation.timeline = t, Z) : n(this);
1160
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && wi() ? (this.animation.timeline = t, H) : n(this);
1160
1161
  }
1161
1162
  }
1162
1163
  const Nn = {
@@ -1164,16 +1165,16 @@ const Nn = {
1164
1165
  backInOut: cn,
1165
1166
  circInOut: hn
1166
1167
  };
1167
- function Ri(e) {
1168
+ function Pi(e) {
1168
1169
  return e in Nn;
1169
1170
  }
1170
- function Pi(e) {
1171
- typeof e.ease == "string" && Ri(e.ease) && (e.ease = Nn[e.ease]);
1171
+ function ki(e) {
1172
+ typeof e.ease == "string" && Pi(e.ease) && (e.ease = Nn[e.ease]);
1172
1173
  }
1173
1174
  const Re = 10;
1174
- class Oi extends Ei {
1175
+ class Oi extends Ri {
1175
1176
  constructor(t) {
1176
- Pi(t), Pn(t), super(t), t.startTime !== void 0 && (this.startTime = t.startTime), this.options = t;
1177
+ ki(t), Pn(t), super(t), t.startTime !== void 0 && (this.startTime = t.startTime), this.options = t;
1177
1178
  }
1178
1179
  /**
1179
1180
  * WAAPI doesn't natively have any interruption capabilities.
@@ -1201,7 +1202,7 @@ class Oi extends Ei {
1201
1202
  const Kt = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1202
1203
  (U.test(e) || e === "0") && // And it contains numbers and/or colors
1203
1204
  !e.startsWith("url("));
1204
- function ki(e) {
1205
+ function Bi(e) {
1205
1206
  const t = e[0];
1206
1207
  if (e.length === 1)
1207
1208
  return !0;
@@ -1209,39 +1210,39 @@ function ki(e) {
1209
1210
  if (e[n] !== t)
1210
1211
  return !0;
1211
1212
  }
1212
- function Bi(e, t, n, s) {
1213
+ function Ii(e, t, n, s) {
1213
1214
  const i = e[0];
1214
1215
  if (i === null)
1215
1216
  return !1;
1216
1217
  if (t === "display" || t === "visibility")
1217
1218
  return !0;
1218
1219
  const r = e[e.length - 1], a = Kt(i, t), o = Kt(r, t);
1219
- return de(a === o, `You are trying to animate ${t} from "${i}" to "${r}". "${a ? r : i}" is not an animatable value.`, "value-not-animatable"), !a || !o ? !1 : ki(e) || (n === "spring" || ct(n)) && s;
1220
+ return de(a === o, `You are trying to animate ${t} from "${i}" to "${r}". "${a ? r : i}" is not an animatable value.`, "value-not-animatable"), !a || !o ? !1 : Bi(e) || (n === "spring" || ct(n)) && s;
1220
1221
  }
1221
1222
  function Ye(e) {
1222
1223
  e.duration = 0, e.type = "keyframes";
1223
1224
  }
1224
- const Ii = /* @__PURE__ */ new Set([
1225
+ const Ni = /* @__PURE__ */ new Set([
1225
1226
  "opacity",
1226
1227
  "clipPath",
1227
1228
  "filter",
1228
1229
  "transform"
1229
1230
  // TODO: Could be re-enabled now we have support for linear() easing
1230
1231
  // "background-color"
1231
- ]), Ni = /* @__PURE__ */ Ze(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1232
- function Ki(e) {
1232
+ ]), Ki = /* @__PURE__ */ Ze(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1233
+ function $i(e) {
1233
1234
  const { motionValue: t, name: n, repeatDelay: s, repeatType: i, damping: r, type: a } = e;
1234
1235
  if (!(t?.owner?.current instanceof HTMLElement))
1235
1236
  return !1;
1236
1237
  const { onUpdate: u, transformTemplate: c } = t.owner.getProps();
1237
- return Ni() && n && Ii.has(n) && (n !== "transform" || !c) && /**
1238
+ return Ki() && n && Ni.has(n) && (n !== "transform" || !c) && /**
1238
1239
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
1239
1240
  * no way to read the value from WAAPI every frame.
1240
1241
  */
1241
1242
  !u && !s && i !== "mirror" && r !== 0 && a !== "inertia";
1242
1243
  }
1243
- const $i = 40;
1244
- class Li extends ot {
1244
+ const Li = 40;
1245
+ class Wi extends ot {
1245
1246
  constructor({ autoplay: t = !0, delay: n = 0, type: s = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: a = "loop", keyframes: o, name: u, motionValue: c, element: l, ...f }) {
1246
1247
  super(), this.stop = () => {
1247
1248
  this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
@@ -1257,25 +1258,25 @@ class Li extends ot {
1257
1258
  motionValue: c,
1258
1259
  element: l,
1259
1260
  ...f
1260
- }, m = l?.KeyframeResolver || ut;
1261
- this.keyframeResolver = new m(o, (g, y, v) => this.onKeyframesResolved(g, y, h, !v), u, c, l), this.keyframeResolver?.scheduleResolve();
1261
+ }, p = l?.KeyframeResolver || ut;
1262
+ this.keyframeResolver = new p(o, (g, y, S) => this.onKeyframesResolved(g, y, h, !S), u, c, l), this.keyframeResolver?.scheduleResolve();
1262
1263
  }
1263
1264
  onKeyframesResolved(t, n, s, i) {
1264
1265
  this.keyframeResolver = void 0;
1265
1266
  const { name: r, type: a, velocity: o, delay: u, isHandoff: c, onUpdate: l } = s;
1266
- this.resolvedAt = R.now(), Bi(t, r, a, o) || ((N.instantAnimations || !u) && l?.(at(t, s, n)), t[0] = t[t.length - 1], Ye(s), s.repeat = 0);
1267
+ this.resolvedAt = R.now(), Ii(t, r, a, o) || ((N.instantAnimations || !u) && l?.(at(t, s, n)), t[0] = t[t.length - 1], Ye(s), s.repeat = 0);
1267
1268
  const h = {
1268
- startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > $i ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1269
+ startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > Li ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1269
1270
  finalKeyframe: n,
1270
1271
  ...s,
1271
1272
  keyframes: t
1272
- }, m = !c && Ki(h), g = h.motionValue?.owner?.current, y = m ? new Oi({
1273
+ }, p = !c && $i(h), g = h.motionValue?.owner?.current, y = p ? new Oi({
1273
1274
  ...h,
1274
1275
  element: g
1275
1276
  }) : new lt(h);
1276
1277
  y.finished.then(() => {
1277
1278
  this.notifyFinished();
1278
- }).catch(Z), this.pendingTimeline && (this.stopTimeline = y.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = y;
1279
+ }).catch(H), this.pendingTimeline && (this.stopTimeline = y.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = y;
1279
1280
  }
1280
1281
  get finished() {
1281
1282
  return this._animation ? this.animation.finished : this._finished;
@@ -1285,7 +1286,7 @@ class Li extends ot {
1285
1286
  });
1286
1287
  }
1287
1288
  get animation() {
1288
- return this._animation || (this.keyframeResolver?.resume(), Vi()), this._animation;
1289
+ return this._animation || (this.keyframeResolver?.resume(), Ai()), this._animation;
1289
1290
  }
1290
1291
  get duration() {
1291
1292
  return this.animation.duration;
@@ -1327,7 +1328,7 @@ class Li extends ot {
1327
1328
  this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
1328
1329
  }
1329
1330
  }
1330
- class Wi {
1331
+ class _i {
1331
1332
  constructor(t) {
1332
1333
  this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
1333
1334
  }
@@ -1400,27 +1401,27 @@ function $t(e, t) {
1400
1401
  }
1401
1402
  return n;
1402
1403
  }
1403
- class _i extends Wi {
1404
+ class Ui extends _i {
1404
1405
  then(t, n) {
1405
1406
  return this.finished.finally(t).then(() => {
1406
1407
  });
1407
1408
  }
1408
1409
  }
1409
- const Ui = (
1410
+ const ji = (
1410
1411
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
1411
1412
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
1412
1413
  );
1413
- function ji(e) {
1414
- const t = Ui.exec(e);
1414
+ function Gi(e) {
1415
+ const t = ji.exec(e);
1415
1416
  if (!t)
1416
1417
  return [,];
1417
1418
  const [, n, s, i] = t;
1418
1419
  return [`--${n ?? s}`, i];
1419
1420
  }
1420
- const Gi = 4;
1421
+ const Yi = 4;
1421
1422
  function Kn(e, t, n = 1) {
1422
- I(n <= Gi, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1423
- const [s, i] = ji(e);
1423
+ I(n <= Yi, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1424
+ const [s, i] = Gi(e);
1424
1425
  if (!s)
1425
1426
  return;
1426
1427
  const r = window.getComputedStyle(t).getPropertyValue(s);
@@ -1430,38 +1431,46 @@ function Kn(e, t, n = 1) {
1430
1431
  }
1431
1432
  return tt(i) ? Kn(i, t, n + 1) : i;
1432
1433
  }
1433
- const Yi = {
1434
+ const zi = {
1434
1435
  type: "spring",
1435
1436
  stiffness: 500,
1436
1437
  damping: 25,
1437
1438
  restSpeed: 10
1438
- }, zi = (e) => ({
1439
+ }, Xi = (e) => ({
1439
1440
  type: "spring",
1440
1441
  stiffness: 550,
1441
1442
  damping: e === 0 ? 2 * Math.sqrt(550) : 30,
1442
1443
  restSpeed: 10
1443
- }), Xi = {
1444
+ }), qi = {
1444
1445
  type: "keyframes",
1445
1446
  duration: 0.8
1446
- }, qi = {
1447
+ }, Zi = {
1447
1448
  type: "keyframes",
1448
1449
  ease: [0.25, 0.1, 0.35, 1],
1449
1450
  duration: 0.3
1450
- }, Zi = (e, { keyframes: t }) => t.length > 2 ? Xi : ee.has(e) ? e.startsWith("scale") ? zi(t[1]) : Yi : qi, Hi = (e) => e !== null;
1451
- function Ji(e, { repeat: t, repeatType: n = "loop" }, s) {
1452
- const i = e.filter(Hi), r = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
1451
+ }, Hi = (e, { keyframes: t }) => t.length > 2 ? qi : te.has(e) ? e.startsWith("scale") ? Xi(t[1]) : zi : Zi, Ji = (e) => e !== null;
1452
+ function Qi(e, { repeat: t, repeatType: n = "loop" }, s) {
1453
+ const i = e.filter(Ji), r = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
1453
1454
  return i[r];
1454
1455
  }
1455
1456
  function $n(e, t) {
1456
- return e?.[t] ?? e?.default ?? e;
1457
+ if (e?.inherit && t) {
1458
+ const { inherit: n, ...s } = e;
1459
+ return { ...t, ...s };
1460
+ }
1461
+ return e;
1457
1462
  }
1458
- function Qi({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: a, repeatDelay: o, from: u, elapsed: c, ...l }) {
1463
+ function Ln(e, t) {
1464
+ const n = e?.[t] ?? e?.default ?? e;
1465
+ return n !== e ? $n(n, e) : n;
1466
+ }
1467
+ function er({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: a, repeatDelay: o, from: u, elapsed: c, ...l }) {
1459
1468
  return !!Object.keys(l).length;
1460
1469
  }
1461
- const Ln = (e, t, n, s = {}, i, r) => (a) => {
1462
- const o = $n(s, e) || {}, u = o.delay || s.delay || 0;
1470
+ const Wn = (e, t, n, s = {}, i, r) => (a) => {
1471
+ const o = Ln(s, e) || {}, u = o.delay || s.delay || 0;
1463
1472
  let { elapsed: c = 0 } = s;
1464
- c = c - /* @__PURE__ */ k(u);
1473
+ c = c - /* @__PURE__ */ O(u);
1465
1474
  const l = {
1466
1475
  keyframes: Array.isArray(n) ? n : [null, n],
1467
1476
  ease: "easeOut",
@@ -1478,10 +1487,10 @@ const Ln = (e, t, n, s = {}, i, r) => (a) => {
1478
1487
  motionValue: t,
1479
1488
  element: r ? void 0 : i
1480
1489
  };
1481
- Qi(o) || Object.assign(l, Zi(e, l)), l.duration && (l.duration = /* @__PURE__ */ k(l.duration)), l.repeatDelay && (l.repeatDelay = /* @__PURE__ */ k(l.repeatDelay)), l.from !== void 0 && (l.keyframes[0] = l.from);
1490
+ er(o) || Object.assign(l, Hi(e, l)), l.duration && (l.duration = /* @__PURE__ */ O(l.duration)), l.repeatDelay && (l.repeatDelay = /* @__PURE__ */ O(l.repeatDelay)), l.from !== void 0 && (l.keyframes[0] = l.from);
1482
1491
  let f = !1;
1483
- if ((l.type === !1 || l.duration === 0 && !l.repeatDelay) && (Ye(l), l.delay === 0 && (f = !0)), (N.instantAnimations || N.skipAnimations) && (f = !0, Ye(l), l.delay = 0), l.allowFlatten = !o.type && !o.ease, f && !r && t.get() !== void 0) {
1484
- const h = Ji(l.keyframes, o);
1492
+ if ((l.type === !1 || l.duration === 0 && !l.repeatDelay) && (Ye(l), l.delay === 0 && (f = !0)), (N.instantAnimations || N.skipAnimations || i?.shouldSkipAnimations) && (f = !0, Ye(l), l.delay = 0), l.allowFlatten = !o.type && !o.ease, f && !r && t.get() !== void 0) {
1493
+ const h = Qi(l.keyframes, o);
1485
1494
  if (h !== void 0) {
1486
1495
  K.update(() => {
1487
1496
  l.onUpdate(h), l.onComplete();
@@ -1489,7 +1498,7 @@ const Ln = (e, t, n, s = {}, i, r) => (a) => {
1489
1498
  return;
1490
1499
  }
1491
1500
  }
1492
- return o.isSync ? new lt(l) : new Li(l);
1501
+ return o.isSync ? new lt(l) : new Wi(l);
1493
1502
  };
1494
1503
  function Lt(e) {
1495
1504
  const t = [{}, {}];
@@ -1497,7 +1506,7 @@ function Lt(e) {
1497
1506
  t[0][s] = n.get(), t[1][s] = n.getVelocity();
1498
1507
  }), t;
1499
1508
  }
1500
- function Wn(e, t, n, s) {
1509
+ function _n(e, t, n, s) {
1501
1510
  if (typeof t == "function") {
1502
1511
  const [i, r] = Lt(s);
1503
1512
  t = t(n !== void 0 ? n : e.custom, i, r);
@@ -1508,20 +1517,20 @@ function Wn(e, t, n, s) {
1508
1517
  }
1509
1518
  return t;
1510
1519
  }
1511
- function er(e, t, n) {
1520
+ function tr(e, t, n) {
1512
1521
  const s = e.getProps();
1513
- return Wn(s, t, s.custom, e);
1522
+ return _n(s, t, s.custom, e);
1514
1523
  }
1515
- const _n = /* @__PURE__ */ new Set([
1524
+ const Un = /* @__PURE__ */ new Set([
1516
1525
  "width",
1517
1526
  "height",
1518
1527
  "top",
1519
1528
  "left",
1520
1529
  "right",
1521
1530
  "bottom",
1522
- ...Q
1523
- ]), Wt = 30, tr = (e) => !isNaN(parseFloat(e));
1524
- class nr {
1531
+ ...ee
1532
+ ]), Wt = 30, nr = (e) => !isNaN(parseFloat(e));
1533
+ class sr {
1525
1534
  /**
1526
1535
  * @param init - The initiating value
1527
1536
  * @param config - Optional configuration options
@@ -1537,7 +1546,7 @@ class nr {
1537
1546
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
1538
1547
  }
1539
1548
  setCurrent(t) {
1540
- this.current = t, this.updatedAt = R.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = tr(this.current));
1549
+ this.current = t, this.updatedAt = R.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = nr(this.current));
1541
1550
  }
1542
1551
  setPrevFrameValue(t = this.current) {
1543
1552
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -1720,32 +1729,32 @@ class nr {
1720
1729
  this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
1721
1730
  }
1722
1731
  }
1723
- function fe(e, t) {
1724
- return new nr(e, t);
1732
+ function Z(e, t) {
1733
+ return new sr(e, t);
1725
1734
  }
1726
- const sr = (e) => Array.isArray(e);
1727
- function ir(e, t, n) {
1728
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, fe(n));
1735
+ const ir = (e) => Array.isArray(e);
1736
+ function rr(e, t, n) {
1737
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Z(n));
1729
1738
  }
1730
- function rr(e) {
1731
- return sr(e) ? e[e.length - 1] || 0 : e;
1739
+ function ar(e) {
1740
+ return ir(e) ? e[e.length - 1] || 0 : e;
1732
1741
  }
1733
- function ar(e, t) {
1734
- const n = er(e, t);
1742
+ function or(e, t) {
1743
+ const n = tr(e, t);
1735
1744
  let { transitionEnd: s = {}, transition: i = {}, ...r } = n || {};
1736
1745
  r = { ...r, ...s };
1737
1746
  for (const a in r) {
1738
- const o = rr(r[a]);
1739
- ir(e, a, o);
1747
+ const o = ar(r[a]);
1748
+ rr(e, a, o);
1740
1749
  }
1741
1750
  }
1742
1751
  const E = (e) => !!(e && e.getVelocity);
1743
- function or(e) {
1752
+ function lr(e) {
1744
1753
  return !!(E(e) && e.add);
1745
1754
  }
1746
- function lr(e, t) {
1755
+ function ur(e, t) {
1747
1756
  const n = e.getValue("willChange");
1748
- if (or(n))
1757
+ if (lr(n))
1749
1758
  return n.add(t);
1750
1759
  if (!n && N.WillChange) {
1751
1760
  const s = new N.WillChange("auto");
@@ -1755,58 +1764,62 @@ function lr(e, t) {
1755
1764
  function ft(e) {
1756
1765
  return e.replace(/([A-Z])/g, (t) => `-${t.toLowerCase()}`);
1757
1766
  }
1758
- const ur = "framerAppearId", cr = "data-" + ft(ur);
1759
- function fr(e) {
1760
- return e.props[cr];
1767
+ const cr = "framerAppearId", fr = "data-" + ft(cr);
1768
+ function hr(e) {
1769
+ return e.props[fr];
1761
1770
  }
1762
- function hr({ protectedKeys: e, needsAnimating: t }, n) {
1771
+ function dr({ protectedKeys: e, needsAnimating: t }, n) {
1763
1772
  const s = e.hasOwnProperty(n) && t[n] !== !0;
1764
1773
  return t[n] = !1, s;
1765
1774
  }
1766
- function dr(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1767
- let { transition: r = e.getDefaultTransition(), transitionEnd: a, ...o } = t;
1768
- const u = r?.reduceMotion;
1775
+ function pr(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1776
+ let { transition: r, transitionEnd: a, ...o } = t;
1777
+ const u = e.getDefaultTransition();
1778
+ r = r ? $n(r, u) : u;
1779
+ const c = r?.reduceMotion;
1769
1780
  s && (r = s);
1770
- const c = [], l = i && e.animationState && e.animationState.getState()[i];
1771
- for (const f in o) {
1772
- const h = e.getValue(f, e.latestValues[f] ?? null), m = o[f];
1773
- if (m === void 0 || l && hr(l, f))
1781
+ const l = [], f = i && e.animationState && e.animationState.getState()[i];
1782
+ for (const h in o) {
1783
+ const p = e.getValue(h, e.latestValues[h] ?? null), g = o[h];
1784
+ if (g === void 0 || f && dr(f, h))
1774
1785
  continue;
1775
- const g = {
1786
+ const y = {
1776
1787
  delay: n,
1777
- ...$n(r || {}, f)
1778
- }, y = h.get();
1779
- if (y !== void 0 && !h.isAnimating && !Array.isArray(m) && m === y && !g.velocity)
1788
+ ...Ln(r || {}, h)
1789
+ }, S = p.get();
1790
+ if (S !== void 0 && !p.isAnimating && !Array.isArray(g) && g === S && !y.velocity)
1780
1791
  continue;
1781
1792
  let v = !1;
1782
1793
  if (window.MotionHandoffAnimation) {
1783
- const V = fr(e);
1784
- if (V) {
1785
- const x = window.MotionHandoffAnimation(V, f, K);
1786
- x !== null && (g.startTime = x, v = !0);
1794
+ const A = hr(e);
1795
+ if (A) {
1796
+ const m = window.MotionHandoffAnimation(A, h, K);
1797
+ m !== null && (y.startTime = m, v = !0);
1787
1798
  }
1788
1799
  }
1789
- lr(e, f);
1790
- const S = u ?? e.shouldReduceMotion;
1791
- h.start(Ln(f, h, m, S && _n.has(f) ? { type: !1 } : g, e, v));
1792
- const w = h.animation;
1793
- w && c.push(w);
1794
- }
1795
- return a && Promise.all(c).then(() => {
1796
- K.update(() => {
1797
- a && ar(e, a);
1800
+ ur(e, h);
1801
+ const w = c ?? e.shouldReduceMotion;
1802
+ p.start(Wn(h, p, g, w && Un.has(h) ? { type: !1 } : y, e, v));
1803
+ const V = p.animation;
1804
+ V && l.push(V);
1805
+ }
1806
+ if (a) {
1807
+ const h = () => K.update(() => {
1808
+ a && or(e, a);
1798
1809
  });
1799
- }), c;
1810
+ l.length ? Promise.all(l).then(h) : h();
1811
+ }
1812
+ return l;
1800
1813
  }
1801
- const pr = {
1814
+ const mr = {
1802
1815
  test: (e) => e === "auto",
1803
1816
  parse: (e) => e
1804
- }, Un = (e) => (t) => t.test(e), jn = [H, d, q, L, Ns, Is, pr], _t = (e) => jn.find(Un(e));
1805
- function mr(e) {
1817
+ }, jn = (e) => (t) => t.test(e), Gn = [J, d, q, L, Ks, Ns, mr], _t = (e) => Gn.find(jn(e));
1818
+ function gr(e) {
1806
1819
  return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || tn(e) : !0;
1807
1820
  }
1808
- const gr = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1809
- function yr(e) {
1821
+ const yr = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1822
+ function br(e) {
1810
1823
  const [t, n] = e.slice(0, -1).split("(");
1811
1824
  if (t === "drop-shadow")
1812
1825
  return e;
@@ -1814,19 +1827,19 @@ function yr(e) {
1814
1827
  if (!s)
1815
1828
  return e;
1816
1829
  const i = n.replace(s, "");
1817
- let r = gr.has(t) ? 1 : 0;
1830
+ let r = yr.has(t) ? 1 : 0;
1818
1831
  return s !== n && (r *= 100), t + "(" + r + i + ")";
1819
1832
  }
1820
- const br = /\b([a-z-]*)\(.*?\)/gu, ze = {
1833
+ const Tr = /\b([a-z-]*)\(.*?\)/gu, ze = {
1821
1834
  ...U,
1822
1835
  getAnimatableNone: (e) => {
1823
- const t = e.match(br);
1824
- return t ? t.map(yr).join(" ") : e;
1836
+ const t = e.match(Tr);
1837
+ return t ? t.map(br).join(" ") : e;
1825
1838
  }
1826
1839
  }, Ut = {
1827
- ...H,
1840
+ ...J,
1828
1841
  transform: Math.round
1829
- }, Tr = {
1842
+ }, vr = {
1830
1843
  rotate: L,
1831
1844
  rotateX: L,
1832
1845
  rotateY: L,
@@ -1847,7 +1860,7 @@ const br = /\b([a-z-]*)\(.*?\)/gu, ze = {
1847
1860
  z: d,
1848
1861
  perspective: d,
1849
1862
  transformPerspective: d,
1850
- opacity: le,
1863
+ opacity: ue,
1851
1864
  originX: Dt,
1852
1865
  originY: Dt,
1853
1866
  originZ: d
@@ -1907,13 +1920,13 @@ const br = /\b([a-z-]*)\(.*?\)/gu, ze = {
1907
1920
  // Misc
1908
1921
  backgroundPositionX: d,
1909
1922
  backgroundPositionY: d,
1910
- ...Tr,
1923
+ ...vr,
1911
1924
  zIndex: Ut,
1912
1925
  // SVG
1913
- fillOpacity: le,
1914
- strokeOpacity: le,
1926
+ fillOpacity: ue,
1927
+ strokeOpacity: ue,
1915
1928
  numOctaves: Ut
1916
- }, vr = {
1929
+ }, Sr = {
1917
1930
  ...ht,
1918
1931
  // Color props
1919
1932
  color: D,
@@ -1929,23 +1942,23 @@ const br = /\b([a-z-]*)\(.*?\)/gu, ze = {
1929
1942
  borderLeftColor: D,
1930
1943
  filter: ze,
1931
1944
  WebkitFilter: ze
1932
- }, Gn = (e) => vr[e];
1933
- function Yn(e, t) {
1934
- let n = Gn(e);
1945
+ }, Yn = (e) => Sr[e];
1946
+ function zn(e, t) {
1947
+ let n = Yn(e);
1935
1948
  return n !== ze && (n = U), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1936
1949
  }
1937
- const Sr = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1938
- function Vr(e, t, n) {
1950
+ const Vr = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1951
+ function Ar(e, t, n) {
1939
1952
  let s = 0, i;
1940
1953
  for (; s < e.length && !i; ) {
1941
1954
  const r = e[s];
1942
- typeof r == "string" && !Sr.has(r) && ue(r).values.length && (i = e[s]), s++;
1955
+ typeof r == "string" && !Vr.has(r) && ce(r).values.length && (i = e[s]), s++;
1943
1956
  }
1944
1957
  if (i && n)
1945
1958
  for (const r of t)
1946
- e[r] = Yn(n, i);
1959
+ e[r] = zn(n, i);
1947
1960
  }
1948
- class xr extends ut {
1961
+ class Mr extends ut {
1949
1962
  constructor(t, n, s, i, r) {
1950
1963
  super(t, n, s, i, r, !0);
1951
1964
  }
@@ -1961,7 +1974,7 @@ class xr extends ut {
1961
1974
  h !== void 0 && (t[l] = h), l === t.length - 1 && (this.finalKeyframe = f);
1962
1975
  }
1963
1976
  }
1964
- if (this.resolveNoneKeyframes(), !_n.has(s) || t.length !== 2)
1977
+ if (this.resolveNoneKeyframes(), !Un.has(s) || t.length !== 2)
1965
1978
  return;
1966
1979
  const [i, r] = t, a = _t(i), o = _t(r), u = Ct(i), c = Ct(r);
1967
1980
  if (u !== c && W[s]) {
@@ -1979,8 +1992,8 @@ class xr extends ut {
1979
1992
  resolveNoneKeyframes() {
1980
1993
  const { unresolvedKeyframes: t, name: n } = this, s = [];
1981
1994
  for (let i = 0; i < t.length; i++)
1982
- (t[i] === null || mr(t[i])) && s.push(i);
1983
- s.length && Vr(t, s, n);
1995
+ (t[i] === null || gr(t[i])) && s.push(i);
1996
+ s.length && Ar(t, s, n);
1984
1997
  }
1985
1998
  measureInitialState() {
1986
1999
  const { element: t, unresolvedKeyframes: n, name: s } = this;
@@ -2002,7 +2015,7 @@ class xr extends ut {
2002
2015
  }), this.resolveNoneKeyframes();
2003
2016
  }
2004
2017
  }
2005
- function Mr(e, t, n) {
2018
+ function xr(e, t, n) {
2006
2019
  if (e == null)
2007
2020
  return [];
2008
2021
  if (e instanceof EventTarget)
@@ -2015,19 +2028,19 @@ function Mr(e, t, n) {
2015
2028
  }
2016
2029
  return Array.from(e).filter((s) => s != null);
2017
2030
  }
2018
- const zn = (e, t) => t && typeof e == "number" ? t.transform(e) : e, { schedule: wr } = /* @__PURE__ */ yn(queueMicrotask, !1);
2019
- function Xn(e) {
2020
- return ys(e) && "ownerSVGElement" in e;
2031
+ const Xn = (e, t) => t && typeof e == "number" ? t.transform(e) : e, { schedule: wr } = /* @__PURE__ */ yn(queueMicrotask, !1);
2032
+ function qn(e) {
2033
+ return bs(e) && "ownerSVGElement" in e;
2021
2034
  }
2022
- function Ar(e) {
2023
- return Xn(e) && e.tagName === "svg";
2035
+ function Cr(e) {
2036
+ return qn(e) && e.tagName === "svg";
2024
2037
  }
2025
- const Cr = [...jn, D, U], Dr = (e) => Cr.find(Un(e)), jt = () => ({ min: 0, max: 0 }), dt = () => ({
2038
+ const Dr = [...Gn, D, U], Fr = (e) => Dr.find(jn(e)), jt = () => ({ min: 0, max: 0 }), dt = () => ({
2026
2039
  x: jt(),
2027
2040
  y: jt()
2028
- }), Xe = { current: null }, qn = { current: !1 }, Fr = typeof window < "u";
2029
- function Er() {
2030
- if (qn.current = !0, !!Fr)
2041
+ }), Xe = { current: null }, Zn = { current: !1 }, Er = typeof window < "u";
2042
+ function Rr() {
2043
+ if (Zn.current = !0, !!Er)
2031
2044
  if (window.matchMedia) {
2032
2045
  const e = window.matchMedia("(prefers-reduced-motion)"), t = () => Xe.current = e.matches;
2033
2046
  e.addEventListener("change", t), t();
@@ -2035,10 +2048,10 @@ function Er() {
2035
2048
  Xe.current = !1;
2036
2049
  }
2037
2050
  const he = /* @__PURE__ */ new WeakMap();
2038
- function Rr(e) {
2051
+ function Pr(e) {
2039
2052
  return e !== null && typeof e == "object" && typeof e.start == "function";
2040
2053
  }
2041
- function Pr(e) {
2054
+ function kr(e) {
2042
2055
  return typeof e == "string" || Array.isArray(e);
2043
2056
  }
2044
2057
  const Or = [
@@ -2049,27 +2062,27 @@ const Or = [
2049
2062
  "whileTap",
2050
2063
  "whileDrag",
2051
2064
  "exit"
2052
- ], kr = ["initial", ...Or];
2053
- function Zn(e) {
2054
- return Rr(e.animate) || kr.some((t) => Pr(e[t]));
2065
+ ], Br = ["initial", ...Or];
2066
+ function Hn(e) {
2067
+ return Pr(e.animate) || Br.some((t) => kr(e[t]));
2055
2068
  }
2056
- function Br(e) {
2057
- return !!(Zn(e) || e.variants);
2069
+ function Ir(e) {
2070
+ return !!(Hn(e) || e.variants);
2058
2071
  }
2059
- function Ir(e, t, n) {
2072
+ function Nr(e, t, n) {
2060
2073
  for (const s in t) {
2061
2074
  const i = t[s], r = n[s];
2062
2075
  if (E(i))
2063
2076
  e.addValue(s, i);
2064
2077
  else if (E(r))
2065
- e.addValue(s, fe(i, { owner: e }));
2078
+ e.addValue(s, Z(i, { owner: e }));
2066
2079
  else if (r !== i)
2067
2080
  if (e.hasValue(s)) {
2068
2081
  const a = e.getValue(s);
2069
2082
  a.liveStyle === !0 ? a.jump(i) : a.hasAnimated || a.set(i);
2070
2083
  } else {
2071
2084
  const a = e.getStaticValue(s);
2072
- e.addValue(s, fe(a !== void 0 ? a : i, { owner: e }));
2085
+ e.addValue(s, Z(a !== void 0 ? a : i, { owner: e }));
2073
2086
  }
2074
2087
  }
2075
2088
  for (const s in n)
@@ -2086,7 +2099,7 @@ const Gt = [
2086
2099
  "LayoutAnimationComplete"
2087
2100
  ];
2088
2101
  let Yt = {};
2089
- class Hn {
2102
+ class Jn {
2090
2103
  /**
2091
2104
  * This method takes React props and returns found MotionValues. For example, HTML
2092
2105
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -2097,26 +2110,29 @@ class Hn {
2097
2110
  scrapeMotionValuesFromProps(t, n, s) {
2098
2111
  return {};
2099
2112
  }
2100
- constructor({ parent: t, props: n, presenceContext: s, reducedMotionConfig: i, blockInitialAnimation: r, visualState: a }, o = {}) {
2101
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = ut, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
2113
+ constructor({ parent: t, props: n, presenceContext: s, reducedMotionConfig: i, skipAnimations: r, blockInitialAnimation: a, visualState: o }, u = {}) {
2114
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = ut, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
2102
2115
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
2103
2116
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
2104
- const h = R.now();
2105
- this.renderScheduledAt < h && (this.renderScheduledAt = h, K.render(this.render, !1, !0));
2117
+ const p = R.now();
2118
+ this.renderScheduledAt < p && (this.renderScheduledAt = p, K.render(this.render, !1, !0));
2106
2119
  };
2107
- const { latestValues: u, renderState: c } = a;
2108
- this.latestValues = u, this.baseTarget = { ...u }, this.initialValues = n.initial ? { ...u } : {}, this.renderState = c, this.parent = t, this.props = n, this.presenceContext = s, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = o, this.blockInitialAnimation = !!r, this.isControllingVariants = Zn(n), this.isVariantNode = Br(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
2109
- const { willChange: l, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
2110
- for (const h in f) {
2111
- const m = f[h];
2112
- u[h] !== void 0 && E(m) && m.set(u[h]);
2120
+ const { latestValues: c, renderState: l } = o;
2121
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = l, this.parent = t, this.props = n, this.presenceContext = s, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.skipAnimationsConfig = r, this.options = u, this.blockInitialAnimation = !!a, this.isControllingVariants = Hn(n), this.isVariantNode = Ir(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
2122
+ const { willChange: f, ...h } = this.scrapeMotionValuesFromProps(n, {}, this);
2123
+ for (const p in h) {
2124
+ const g = h[p];
2125
+ c[p] !== void 0 && E(g) && g.set(c[p]);
2113
2126
  }
2114
2127
  }
2115
2128
  mount(t) {
2116
- this.current = t, he.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((n, s) => this.bindToMotionValue(s, n)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (qn.current || Er(), this.shouldReduceMotion = Xe.current), process.env.NODE_ENV !== "production" && rn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
2129
+ if (this.hasBeenMounted)
2130
+ for (const n in this.initialValues)
2131
+ this.values.get(n)?.jump(this.initialValues[n]), this.latestValues[n] = this.initialValues[n];
2132
+ this.current = t, he.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((n, s) => this.bindToMotionValue(s, n)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Zn.current || Rr(), this.shouldReduceMotion = Xe.current), process.env.NODE_ENV !== "production" && rn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
2117
2133
  }
2118
2134
  unmount() {
2119
- this.projection && this.projection.unmount(), ke(this.notifyUpdate), ke(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
2135
+ this.projection && this.projection.unmount(), Oe(this.notifyUpdate), Oe(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
2120
2136
  for (const t in this.events)
2121
2137
  this.events[t].clear();
2122
2138
  for (const t in this.features) {
@@ -2133,7 +2149,7 @@ class Hn {
2133
2149
  }
2134
2150
  bindToMotionValue(t, n) {
2135
2151
  this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)();
2136
- const s = ee.has(t);
2152
+ const s = te.has(t);
2137
2153
  s && this.onBindTransform && this.onBindTransform();
2138
2154
  const i = n.on("change", (a) => {
2139
2155
  this.latestValues[t] = a, this.props.onUpdate && K.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
@@ -2188,7 +2204,7 @@ class Hn {
2188
2204
  const r = "on" + i, a = t[r];
2189
2205
  a && (this.propEventSubscriptions[i] = this.on(i, a));
2190
2206
  }
2191
- this.prevMotionValues = Ir(this, this.scrapeMotionValuesFromProps(t, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2207
+ this.prevMotionValues = Nr(this, this.scrapeMotionValuesFromProps(t, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2192
2208
  }
2193
2209
  getProps() {
2194
2210
  return this.props;
@@ -2244,7 +2260,7 @@ class Hn {
2244
2260
  if (this.props.values && this.props.values[t])
2245
2261
  return this.props.values[t];
2246
2262
  let s = this.values.get(t);
2247
- return s === void 0 && n !== void 0 && (s = fe(n === null ? void 0 : n, { owner: this }), this.addValue(t, s)), s;
2263
+ return s === void 0 && n !== void 0 && (s = Z(n === null ? void 0 : n, { owner: this }), this.addValue(t, s)), s;
2248
2264
  }
2249
2265
  /**
2250
2266
  * If we're trying to animate to a previously unencountered value,
@@ -2253,7 +2269,7 @@ class Hn {
2253
2269
  */
2254
2270
  readValue(t, n) {
2255
2271
  let s = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
2256
- return s != null && (typeof s == "string" && (en(s) || tn(s)) ? s = parseFloat(s) : !Dr(s) && U.test(n) && (s = Yn(t, n)), this.setBaseTarget(t, E(s) ? s.get() : s)), E(s) ? s.get() : s;
2272
+ return s != null && (typeof s == "string" && (en(s) || tn(s)) ? s = parseFloat(s) : !Fr(s) && U.test(n) && (s = zn(t, n)), this.setBaseTarget(t, E(s) ? s.get() : s)), E(s) ? s.get() : s;
2257
2273
  }
2258
2274
  /**
2259
2275
  * Set the base target to later animate back to. This is currently
@@ -2270,7 +2286,7 @@ class Hn {
2270
2286
  const { initial: n } = this.props;
2271
2287
  let s;
2272
2288
  if (typeof n == "string" || typeof n == "object") {
2273
- const r = Wn(this.props, n, this.presenceContext?.custom);
2289
+ const r = _n(this.props, n, this.presenceContext?.custom);
2274
2290
  r && (s = r[t]);
2275
2291
  }
2276
2292
  if (n && s !== void 0)
@@ -2288,9 +2304,9 @@ class Hn {
2288
2304
  wr.render(this.render);
2289
2305
  }
2290
2306
  }
2291
- class Jn extends Hn {
2307
+ class Qn extends Jn {
2292
2308
  constructor() {
2293
- super(...arguments), this.KeyframeResolver = xr;
2309
+ super(...arguments), this.KeyframeResolver = Mr;
2294
2310
  }
2295
2311
  sortInstanceNodePosition(t, n) {
2296
2312
  return t.compareDocumentPosition(n) & 2 ? 1 : -1;
@@ -2310,13 +2326,13 @@ class Jn extends Hn {
2310
2326
  }));
2311
2327
  }
2312
2328
  }
2313
- function Nr({ top: e, left: t, right: n, bottom: s }) {
2329
+ function Kr({ top: e, left: t, right: n, bottom: s }) {
2314
2330
  return {
2315
2331
  x: { min: t, max: n },
2316
2332
  y: { min: e, max: s }
2317
2333
  };
2318
2334
  }
2319
- function Kr(e, t) {
2335
+ function $r(e, t) {
2320
2336
  if (!t)
2321
2337
  return e;
2322
2338
  const n = t({ x: e.left, y: e.top }), s = t({ x: e.right, y: e.bottom });
@@ -2327,19 +2343,19 @@ function Kr(e, t) {
2327
2343
  right: s.x
2328
2344
  };
2329
2345
  }
2330
- function $r(e, t) {
2331
- return Nr(Kr(e.getBoundingClientRect(), t));
2346
+ function Lr(e, t) {
2347
+ return Kr($r(e.getBoundingClientRect(), t));
2332
2348
  }
2333
- const Lr = {
2349
+ const Wr = {
2334
2350
  x: "translateX",
2335
2351
  y: "translateY",
2336
2352
  z: "translateZ",
2337
2353
  transformPerspective: "perspective"
2338
- }, Wr = Q.length;
2339
- function _r(e, t, n) {
2354
+ }, _r = ee.length;
2355
+ function Ur(e, t, n) {
2340
2356
  let s = "", i = !0;
2341
- for (let r = 0; r < Wr; r++) {
2342
- const a = Q[r], o = e[a];
2357
+ for (let r = 0; r < _r; r++) {
2358
+ const a = ee[r], o = e[a];
2343
2359
  if (o === void 0)
2344
2360
  continue;
2345
2361
  let u = !0;
@@ -2350,10 +2366,10 @@ function _r(e, t, n) {
2350
2366
  u = a.startsWith("scale") ? c === 1 : c === 0;
2351
2367
  }
2352
2368
  if (!u || n) {
2353
- const c = zn(o, ht[a]);
2369
+ const c = Xn(o, ht[a]);
2354
2370
  if (!u) {
2355
2371
  i = !1;
2356
- const l = Lr[a] || a;
2372
+ const l = Wr[a] || a;
2357
2373
  s += `${l}(${c}) `;
2358
2374
  }
2359
2375
  n && (t[a] = c);
@@ -2361,28 +2377,28 @@ function _r(e, t, n) {
2361
2377
  }
2362
2378
  return s = s.trim(), n ? s = n(t, i ? "" : s) : i && (s = "none"), s;
2363
2379
  }
2364
- function Qn(e, t, n) {
2380
+ function es(e, t, n) {
2365
2381
  const { style: s, vars: i, transformOrigin: r } = e;
2366
2382
  let a = !1, o = !1;
2367
2383
  for (const u in t) {
2368
2384
  const c = t[u];
2369
- if (ee.has(u)) {
2385
+ if (te.has(u)) {
2370
2386
  a = !0;
2371
2387
  continue;
2372
2388
  } else if (Tn(u)) {
2373
2389
  i[u] = c;
2374
2390
  continue;
2375
2391
  } else {
2376
- const l = zn(c, ht[u]);
2392
+ const l = Xn(c, ht[u]);
2377
2393
  u.startsWith("origin") ? (o = !0, r[u] = l) : s[u] = l;
2378
2394
  }
2379
2395
  }
2380
- if (t.transform || (a || n ? s.transform = _r(t, e.transform, n) : s.transform && (s.transform = "none")), o) {
2396
+ if (t.transform || (a || n ? s.transform = Ur(t, e.transform, n) : s.transform && (s.transform = "none")), o) {
2381
2397
  const { originX: u = "50%", originY: c = "50%", originZ: l = 0 } = r;
2382
2398
  s.transformOrigin = `${u} ${c} ${l}`;
2383
2399
  }
2384
2400
  }
2385
- function es(e, { style: t, vars: n }, s, i) {
2401
+ function ts(e, { style: t, vars: n }, s, i) {
2386
2402
  const r = e.style;
2387
2403
  let a;
2388
2404
  for (a in t)
@@ -2394,7 +2410,7 @@ function es(e, { style: t, vars: n }, s, i) {
2394
2410
  function zt(e, t) {
2395
2411
  return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
2396
2412
  }
2397
- const re = {
2413
+ const ae = {
2398
2414
  correct: (e, t) => {
2399
2415
  if (!t.target)
2400
2416
  return e;
@@ -2406,19 +2422,19 @@ const re = {
2406
2422
  const n = zt(e, t.target.x), s = zt(e, t.target.y);
2407
2423
  return `${n}% ${s}%`;
2408
2424
  }
2409
- }, Ur = {
2425
+ }, jr = {
2410
2426
  correct: (e, { treeScale: t, projectionDelta: n }) => {
2411
2427
  const s = e, i = U.parse(e);
2412
2428
  if (i.length > 5)
2413
2429
  return s;
2414
2430
  const r = U.createTransformer(e), a = typeof i[0] != "number" ? 1 : 0, o = n.x.scale * t.x, u = n.y.scale * t.y;
2415
2431
  i[0 + a] /= o, i[1 + a] /= u;
2416
- const c = J(o, u, 0.5);
2432
+ const c = Q(o, u, 0.5);
2417
2433
  return typeof i[2 + a] == "number" && (i[2 + a] /= c), typeof i[3 + a] == "number" && (i[3 + a] /= c), r(i);
2418
2434
  }
2419
- }, jr = {
2435
+ }, Gr = {
2420
2436
  borderRadius: {
2421
- ...re,
2437
+ ...ae,
2422
2438
  applyTo: [
2423
2439
  "borderTopLeftRadius",
2424
2440
  "borderTopRightRadius",
@@ -2426,57 +2442,57 @@ const re = {
2426
2442
  "borderBottomRightRadius"
2427
2443
  ]
2428
2444
  },
2429
- borderTopLeftRadius: re,
2430
- borderTopRightRadius: re,
2431
- borderBottomLeftRadius: re,
2432
- borderBottomRightRadius: re,
2433
- boxShadow: Ur
2445
+ borderTopLeftRadius: ae,
2446
+ borderTopRightRadius: ae,
2447
+ borderBottomLeftRadius: ae,
2448
+ borderBottomRightRadius: ae,
2449
+ boxShadow: jr
2434
2450
  };
2435
- function Gr(e, { layout: t, layoutId: n }) {
2436
- return ee.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!jr[e] || e === "opacity");
2451
+ function Yr(e, { layout: t, layoutId: n }) {
2452
+ return te.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Gr[e] || e === "opacity");
2437
2453
  }
2438
- function ts(e, t, n) {
2454
+ function ns(e, t, n) {
2439
2455
  const s = e.style, i = t?.style, r = {};
2440
2456
  if (!s)
2441
2457
  return r;
2442
2458
  for (const a in s)
2443
- (E(s[a]) || i && E(i[a]) || Gr(a, e) || n?.getValue(a)?.liveStyle !== void 0) && (r[a] = s[a]);
2459
+ (E(s[a]) || i && E(i[a]) || Yr(a, e) || n?.getValue(a)?.liveStyle !== void 0) && (r[a] = s[a]);
2444
2460
  return r;
2445
2461
  }
2446
- function Yr(e) {
2462
+ function zr(e) {
2447
2463
  return window.getComputedStyle(e);
2448
2464
  }
2449
- class zr extends Jn {
2465
+ class Xr extends Qn {
2450
2466
  constructor() {
2451
- super(...arguments), this.type = "html", this.renderInstance = es;
2467
+ super(...arguments), this.type = "html", this.renderInstance = ts;
2452
2468
  }
2453
2469
  readValueFromInstance(t, n) {
2454
- if (ee.has(n))
2455
- return this.projection?.isProjecting ? We(n) : yi(t, n);
2470
+ if (te.has(n))
2471
+ return this.projection?.isProjecting ? We(n) : bi(t, n);
2456
2472
  {
2457
- const s = Yr(t), i = (Tn(n) ? s.getPropertyValue(n) : s[n]) || 0;
2473
+ const s = zr(t), i = (Tn(n) ? s.getPropertyValue(n) : s[n]) || 0;
2458
2474
  return typeof i == "string" ? i.trim() : i;
2459
2475
  }
2460
2476
  }
2461
2477
  measureInstanceViewportBox(t, { transformPagePoint: n }) {
2462
- return $r(t, n);
2478
+ return Lr(t, n);
2463
2479
  }
2464
2480
  build(t, n, s) {
2465
- Qn(t, n, s.transformTemplate);
2481
+ es(t, n, s.transformTemplate);
2466
2482
  }
2467
2483
  scrapeMotionValuesFromProps(t, n, s) {
2468
- return ts(t, n, s);
2484
+ return ns(t, n, s);
2469
2485
  }
2470
2486
  }
2471
- function Xr(e, t) {
2487
+ function qr(e, t) {
2472
2488
  return e in t;
2473
2489
  }
2474
- class qr extends Hn {
2490
+ class Zr extends Jn {
2475
2491
  constructor() {
2476
2492
  super(...arguments), this.type = "object";
2477
2493
  }
2478
2494
  readValueFromInstance(t, n) {
2479
- if (Xr(n, t)) {
2495
+ if (qr(n, t)) {
2480
2496
  const s = t[n];
2481
2497
  if (typeof s == "string" || typeof s == "number")
2482
2498
  return s;
@@ -2500,25 +2516,25 @@ class qr extends Hn {
2500
2516
  return 0;
2501
2517
  }
2502
2518
  }
2503
- const Zr = {
2519
+ const Hr = {
2504
2520
  offset: "stroke-dashoffset",
2505
2521
  array: "stroke-dasharray"
2506
- }, Hr = {
2522
+ }, Jr = {
2507
2523
  offset: "strokeDashoffset",
2508
2524
  array: "strokeDasharray"
2509
2525
  };
2510
- function Jr(e, t, n = 1, s = 0, i = !0) {
2526
+ function Qr(e, t, n = 1, s = 0, i = !0) {
2511
2527
  e.pathLength = 1;
2512
- const r = i ? Zr : Hr;
2528
+ const r = i ? Hr : Jr;
2513
2529
  e[r.offset] = `${-s}`, e[r.array] = `${t} ${n}`;
2514
2530
  }
2515
- const Qr = [
2531
+ const ea = [
2516
2532
  "offsetDistance",
2517
2533
  "offsetPath",
2518
2534
  "offsetRotate",
2519
2535
  "offsetAnchor"
2520
2536
  ];
2521
- function ea(e, {
2537
+ function ta(e, {
2522
2538
  attrX: t,
2523
2539
  attrY: n,
2524
2540
  attrScale: s,
@@ -2528,18 +2544,18 @@ function ea(e, {
2528
2544
  // This is object creation, which we try to avoid per-frame.
2529
2545
  ...o
2530
2546
  }, u, c, l) {
2531
- if (Qn(e, o, c), u) {
2547
+ if (es(e, o, c), u) {
2532
2548
  e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
2533
2549
  return;
2534
2550
  }
2535
2551
  e.attrs = e.style, e.style = {};
2536
2552
  const { attrs: f, style: h } = e;
2537
2553
  f.transform && (h.transform = f.transform, delete f.transform), (h.transform || f.transformOrigin) && (h.transformOrigin = f.transformOrigin ?? "50% 50%", delete f.transformOrigin), h.transform && (h.transformBox = l?.transformBox ?? "fill-box", delete f.transformBox);
2538
- for (const m of Qr)
2539
- f[m] !== void 0 && (h[m] = f[m], delete f[m]);
2540
- t !== void 0 && (f.x = t), n !== void 0 && (f.y = n), s !== void 0 && (f.scale = s), i !== void 0 && Jr(f, i, r, a, !1);
2554
+ for (const p of ea)
2555
+ f[p] !== void 0 && (h[p] = f[p], delete f[p]);
2556
+ t !== void 0 && (f.x = t), n !== void 0 && (f.y = n), s !== void 0 && (f.scale = s), i !== void 0 && Qr(f, i, r, a, !1);
2541
2557
  }
2542
- const ns = /* @__PURE__ */ new Set([
2558
+ const ss = /* @__PURE__ */ new Set([
2543
2559
  "baseFrequency",
2544
2560
  "diffuseConstant",
2545
2561
  "kernelMatrix",
@@ -2563,22 +2579,22 @@ const ns = /* @__PURE__ */ new Set([
2563
2579
  "startOffset",
2564
2580
  "textLength",
2565
2581
  "lengthAdjust"
2566
- ]), ta = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2567
- function na(e, t, n, s) {
2568
- es(e, t, void 0, s);
2582
+ ]), na = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2583
+ function sa(e, t, n, s) {
2584
+ ts(e, t, void 0, s);
2569
2585
  for (const i in t.attrs)
2570
- e.setAttribute(ns.has(i) ? i : ft(i), t.attrs[i]);
2586
+ e.setAttribute(ss.has(i) ? i : ft(i), t.attrs[i]);
2571
2587
  }
2572
- function sa(e, t, n) {
2573
- const s = ts(e, t, n);
2588
+ function ia(e, t, n) {
2589
+ const s = ns(e, t, n);
2574
2590
  for (const i in e)
2575
2591
  if (E(e[i]) || E(t[i])) {
2576
- const r = Q.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2592
+ const r = ee.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2577
2593
  s[r] = e[i];
2578
2594
  }
2579
2595
  return s;
2580
2596
  }
2581
- class ia extends Jn {
2597
+ class ra extends Qn {
2582
2598
  constructor() {
2583
2599
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = dt;
2584
2600
  }
@@ -2586,69 +2602,69 @@ class ia extends Jn {
2586
2602
  return t[n];
2587
2603
  }
2588
2604
  readValueFromInstance(t, n) {
2589
- if (ee.has(n)) {
2590
- const s = Gn(n);
2605
+ if (te.has(n)) {
2606
+ const s = Yn(n);
2591
2607
  return s && s.default || 0;
2592
2608
  }
2593
- return n = ns.has(n) ? n : ft(n), t.getAttribute(n);
2609
+ return n = ss.has(n) ? n : ft(n), t.getAttribute(n);
2594
2610
  }
2595
2611
  scrapeMotionValuesFromProps(t, n, s) {
2596
- return sa(t, n, s);
2612
+ return ia(t, n, s);
2597
2613
  }
2598
2614
  build(t, n, s) {
2599
- ea(t, n, this.isSVGTag, s.transformTemplate, s.style);
2615
+ ta(t, n, this.isSVGTag, s.transformTemplate, s.style);
2600
2616
  }
2601
2617
  renderInstance(t, n, s, i) {
2602
- na(t, n, s, i);
2618
+ sa(t, n, s, i);
2603
2619
  }
2604
2620
  mount(t) {
2605
- this.isSVGTag = ta(t.tagName), super.mount(t);
2621
+ this.isSVGTag = na(t.tagName), super.mount(t);
2606
2622
  }
2607
2623
  }
2608
- function ra(e, t, n) {
2609
- const s = E(e) ? e : fe(e);
2610
- return s.start(Ln("", s, t, n)), s.animation;
2624
+ function aa(e, t, n) {
2625
+ const s = E(e) ? e : Z(e);
2626
+ return s.start(Wn("", s, t, n)), s.animation;
2611
2627
  }
2612
2628
  function pt(e) {
2613
2629
  return typeof e == "object" && !Array.isArray(e);
2614
2630
  }
2615
- function ss(e, t, n, s) {
2616
- return e == null ? [] : typeof e == "string" && pt(t) ? Mr(e, n, s) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((i) => i != null) : [e];
2631
+ function is(e, t, n, s) {
2632
+ return e == null ? [] : typeof e == "string" && pt(t) ? xr(e, n, s) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((i) => i != null) : [e];
2617
2633
  }
2618
- function aa(e, t, n) {
2634
+ function oa(e, t, n) {
2619
2635
  return e * (t + 1);
2620
2636
  }
2621
2637
  function Xt(e, t, n, s) {
2622
2638
  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;
2623
2639
  }
2624
- function oa(e, t, n) {
2640
+ function la(e, t, n) {
2625
2641
  for (let s = 0; s < e.length; s++) {
2626
2642
  const i = e[s];
2627
2643
  i.at > t && i.at < n && (qe(e, i), s--);
2628
2644
  }
2629
2645
  }
2630
- function la(e, t, n, s, i, r) {
2631
- oa(e, i, r);
2646
+ function ua(e, t, n, s, i, r) {
2647
+ la(e, i, r);
2632
2648
  for (let a = 0; a < t.length; a++)
2633
2649
  e.push({
2634
2650
  value: t[a],
2635
- at: J(i, r, s[a]),
2651
+ at: Q(i, r, s[a]),
2636
2652
  easing: mn(n, a)
2637
2653
  });
2638
2654
  }
2639
- function ua(e, t) {
2655
+ function ca(e, t) {
2640
2656
  for (let n = 0; n < e.length; n++)
2641
2657
  e[n] = e[n] / (t + 1);
2642
2658
  }
2643
- function ca(e, t) {
2659
+ function fa(e, t) {
2644
2660
  return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
2645
2661
  }
2646
- const fa = "easeInOut", ha = 20;
2647
- function da(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
2662
+ const ha = "easeInOut", da = 20;
2663
+ function pa(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
2648
2664
  const r = t.duration || 0.3, a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), u = {}, c = /* @__PURE__ */ new Map();
2649
2665
  let l = 0, f = 0, h = 0;
2650
- for (let m = 0; m < e.length; m++) {
2651
- const g = e[m];
2666
+ for (let p = 0; p < e.length; p++) {
2667
+ const g = e[p];
2652
2668
  if (typeof g == "string") {
2653
2669
  c.set(g, f);
2654
2670
  continue;
@@ -2656,77 +2672,77 @@ function da(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
2656
2672
  c.set(g.name, Xt(f, g.at, l, c));
2657
2673
  continue;
2658
2674
  }
2659
- let [y, v, S = {}] = g;
2660
- S.at !== void 0 && (f = Xt(f, S.at, l, c));
2675
+ let [y, S, v = {}] = g;
2676
+ v.at !== void 0 && (f = Xt(f, v.at, l, c));
2661
2677
  let w = 0;
2662
- const V = (x, p, b, A = 0, T = 0) => {
2663
- const M = pa(x), { delay: F = 0, times: O = Rn(M), type: Me = t.type || "keyframes", repeat: te, repeatType: Ca, repeatDelay: Da = 0, ...rs } = p;
2664
- let { ease: $ = t.ease || "easeOut", duration: B } = p;
2665
- const mt = typeof F == "function" ? F(A, T) : F, gt = M.length, yt = ct(Me) ? Me : i?.[Me || "keyframes"];
2678
+ const V = (A, m, b, x = 0, T = 0) => {
2679
+ const M = ma(A), { delay: F = 0, times: k = Rn(M), type: Me = t.type || "keyframes", repeat: ne, repeatType: Da, repeatDelay: Fa = 0, ...as } = m;
2680
+ let { ease: $ = t.ease || "easeOut", duration: B } = m;
2681
+ const mt = typeof F == "function" ? F(x, T) : F, gt = M.length, yt = ct(Me) ? Me : i?.[Me || "keyframes"];
2666
2682
  if (gt <= 2 && yt) {
2667
- let ne = 100;
2668
- if (gt === 2 && ya(M)) {
2669
- const se = M[1] - M[0];
2670
- ne = Math.abs(se);
2683
+ let se = 100;
2684
+ if (gt === 2 && ba(M)) {
2685
+ const ie = M[1] - M[0];
2686
+ se = Math.abs(ie);
2671
2687
  }
2672
2688
  const ge = {
2673
2689
  ...t,
2674
- ...rs
2690
+ ...as
2675
2691
  };
2676
- B !== void 0 && (ge.duration = /* @__PURE__ */ k(B));
2677
- const ye = Dn(ge, ne, yt);
2692
+ B !== void 0 && (ge.duration = /* @__PURE__ */ O(B));
2693
+ const ye = Dn(ge, se, yt);
2678
2694
  $ = ye.ease, B = ye.duration;
2679
2695
  }
2680
2696
  B ?? (B = r);
2681
2697
  const bt = f + mt;
2682
- O.length === 1 && O[0] === 0 && (O[1] = 1);
2683
- const Tt = O.length - M.length;
2684
- if (Tt > 0 && En(O, Tt), M.length === 1 && M.unshift(null), te) {
2685
- I(te < ha, "Repeat count too high, must be less than 20", "repeat-count-high"), B = aa(B, te);
2686
- const ne = [...M], ge = [...O];
2698
+ k.length === 1 && k[0] === 0 && (k[1] = 1);
2699
+ const Tt = k.length - M.length;
2700
+ if (Tt > 0 && En(k, Tt), M.length === 1 && M.unshift(null), ne) {
2701
+ I(ne < da, "Repeat count too high, must be less than 20", "repeat-count-high"), B = oa(B, ne);
2702
+ const se = [...M], ge = [...k];
2687
2703
  $ = Array.isArray($) ? [...$] : [$];
2688
2704
  const ye = [...$];
2689
- for (let se = 0; se < te; se++) {
2690
- M.push(...ne);
2691
- for (let ie = 0; ie < ne.length; ie++)
2692
- O.push(ge[ie] + (se + 1)), $.push(ie === 0 ? "linear" : mn(ye, ie - 1));
2705
+ for (let ie = 0; ie < ne; ie++) {
2706
+ M.push(...se);
2707
+ for (let re = 0; re < se.length; re++)
2708
+ k.push(ge[re] + (ie + 1)), $.push(re === 0 ? "linear" : mn(ye, re - 1));
2693
2709
  }
2694
- ua(O, te);
2710
+ ca(k, ne);
2695
2711
  }
2696
2712
  const vt = bt + B;
2697
- la(b, M, $, O, bt, vt), w = Math.max(mt + B, w), h = Math.max(vt, h);
2713
+ ua(b, M, $, k, bt, vt), w = Math.max(mt + B, w), h = Math.max(vt, h);
2698
2714
  };
2699
2715
  if (E(y)) {
2700
- const x = qt(y, o);
2701
- V(v, S, Zt("default", x));
2716
+ const A = qt(y, o);
2717
+ V(S, v, Zt("default", A));
2702
2718
  } else {
2703
- const x = ss(y, v, s, u), p = x.length;
2704
- for (let b = 0; b < p; b++) {
2705
- v = v, S = S;
2706
- const A = x[b], T = qt(A, o);
2707
- for (const M in v)
2708
- V(v[M], ma(S, M), Zt(M, T), b, p);
2719
+ const A = is(y, S, s, u), m = A.length;
2720
+ for (let b = 0; b < m; b++) {
2721
+ S = S, v = v;
2722
+ const x = A[b], T = qt(x, o);
2723
+ for (const M in S)
2724
+ V(S[M], ga(v, M), Zt(M, T), b, m);
2709
2725
  }
2710
2726
  }
2711
2727
  l = f, f += w;
2712
2728
  }
2713
- return o.forEach((m, g) => {
2714
- for (const y in m) {
2715
- const v = m[y];
2716
- v.sort(ca);
2717
- const S = [], w = [], V = [];
2718
- for (let A = 0; A < v.length; A++) {
2719
- const { at: T, value: M, easing: F } = v[A];
2720
- S.push(M), w.push(/* @__PURE__ */ Je(0, h, T)), V.push(F || "easeOut");
2729
+ return o.forEach((p, g) => {
2730
+ for (const y in p) {
2731
+ const S = p[y];
2732
+ S.sort(fa);
2733
+ const v = [], w = [], V = [];
2734
+ for (let x = 0; x < S.length; x++) {
2735
+ const { at: T, value: M, easing: F } = S[x];
2736
+ v.push(M), w.push(/* @__PURE__ */ Je(0, h, T)), V.push(F || "easeOut");
2721
2737
  }
2722
- w[0] !== 0 && (w.unshift(0), S.unshift(S[0]), V.unshift(fa)), w[w.length - 1] !== 1 && (w.push(1), S.push(null)), a.has(g) || a.set(g, {
2738
+ w[0] !== 0 && (w.unshift(0), v.unshift(v[0]), V.unshift(ha)), w[w.length - 1] !== 1 && (w.push(1), v.push(null)), a.has(g) || a.set(g, {
2723
2739
  keyframes: {},
2724
2740
  transition: {}
2725
2741
  });
2726
- const x = a.get(g);
2727
- x.keyframes[y] = S;
2728
- const { type: p, ...b } = t;
2729
- x.transition[y] = {
2742
+ const A = a.get(g);
2743
+ A.keyframes[y] = v;
2744
+ const { type: m, ...b } = t;
2745
+ A.transition[y] = {
2730
2746
  ...b,
2731
2747
  duration: h,
2732
2748
  ease: V,
@@ -2742,17 +2758,17 @@ function qt(e, t) {
2742
2758
  function Zt(e, t) {
2743
2759
  return t[e] || (t[e] = []), t[e];
2744
2760
  }
2745
- function pa(e) {
2761
+ function ma(e) {
2746
2762
  return Array.isArray(e) ? e : [e];
2747
2763
  }
2748
- function ma(e, t) {
2764
+ function ga(e, t) {
2749
2765
  return e && e[t] ? {
2750
2766
  ...e,
2751
2767
  ...e[t]
2752
2768
  } : { ...e };
2753
2769
  }
2754
- const ga = (e) => typeof e == "number", ya = (e) => e.every(ga);
2755
- function ba(e) {
2770
+ const ya = (e) => typeof e == "number", ba = (e) => e.every(ya);
2771
+ function Ta(e) {
2756
2772
  const t = {
2757
2773
  presenceContext: null,
2758
2774
  props: {},
@@ -2766,10 +2782,10 @@ function ba(e) {
2766
2782
  },
2767
2783
  latestValues: {}
2768
2784
  }
2769
- }, n = Xn(e) && !Ar(e) ? new ia(t) : new zr(t);
2785
+ }, n = qn(e) && !Cr(e) ? new ra(t) : new Xr(t);
2770
2786
  n.mount(e), he.set(e, n);
2771
2787
  }
2772
- function Ta(e) {
2788
+ function va(e) {
2773
2789
  const t = {
2774
2790
  presenceContext: null,
2775
2791
  props: {},
@@ -2779,63 +2795,69 @@ function Ta(e) {
2779
2795
  },
2780
2796
  latestValues: {}
2781
2797
  }
2782
- }, n = new qr(t);
2798
+ }, n = new Zr(t);
2783
2799
  n.mount(e), he.set(e, n);
2784
2800
  }
2785
- function va(e, t) {
2801
+ function Sa(e, t) {
2786
2802
  return E(e) || typeof e == "number" || typeof e == "string" && !pt(t);
2787
2803
  }
2788
- function is(e, t, n, s) {
2804
+ function rs(e, t, n, s) {
2789
2805
  const i = [];
2790
- if (va(e, t))
2791
- i.push(ra(e, pt(t) && t.default || t, n && (n.default || n)));
2806
+ if (Sa(e, t))
2807
+ i.push(aa(e, pt(t) && t.default || t, n && (n.default || n)));
2792
2808
  else {
2793
2809
  if (e == null)
2794
2810
  return i;
2795
- const r = ss(e, t, s), a = r.length;
2811
+ const r = is(e, t, s), a = r.length;
2796
2812
  I(!!a, "No valid elements provided.", "no-valid-elements");
2797
2813
  for (let o = 0; o < a; o++) {
2798
- const u = r[o], c = u instanceof Element ? ba : Ta;
2814
+ const u = r[o], c = u instanceof Element ? Ta : va;
2799
2815
  he.has(u) || c(u);
2800
2816
  const l = he.get(u), f = { ...n };
2801
- "delay" in f && typeof f.delay == "function" && (f.delay = f.delay(o, a)), i.push(...dr(l, { ...t, transition: f }, {}));
2817
+ "delay" in f && typeof f.delay == "function" && (f.delay = f.delay(o, a)), i.push(...pr(l, { ...t, transition: f }, {}));
2802
2818
  }
2803
2819
  }
2804
2820
  return i;
2805
2821
  }
2806
- function Sa(e, t, n) {
2807
- const s = [];
2808
- return da(e, t, n, { spring: ce }).forEach(({ keyframes: r, transition: a }, o) => {
2809
- s.push(...is(o, r, a));
2822
+ function Va(e, t, n) {
2823
+ const s = [], i = e.map((a) => {
2824
+ if (Array.isArray(a) && typeof a[0] == "function") {
2825
+ const o = a[0], u = Z(0);
2826
+ return u.on("change", o), a.length === 1 ? [u, [0, 1]] : a.length === 2 ? [u, [0, 1], a[1]] : [u, a[1], a[2]];
2827
+ }
2828
+ return a;
2829
+ });
2830
+ return pa(i, t, n, { spring: fe }).forEach(({ keyframes: a, transition: o }, u) => {
2831
+ s.push(...rs(u, a, o));
2810
2832
  }), s;
2811
2833
  }
2812
- function Va(e) {
2834
+ function Aa(e) {
2813
2835
  return Array.isArray(e) && e.some(Array.isArray);
2814
2836
  }
2815
- function xa(e = {}) {
2837
+ function Ma(e = {}) {
2816
2838
  const { scope: t, reduceMotion: n } = e;
2817
2839
  function s(i, r, a) {
2818
2840
  let o = [], u;
2819
- if (Va(i))
2820
- o = Sa(i, n !== void 0 ? { reduceMotion: n, ...r } : r, t);
2841
+ if (Aa(i))
2842
+ o = Va(i, n !== void 0 ? { reduceMotion: n, ...r } : r, t);
2821
2843
  else {
2822
2844
  const { onComplete: l, ...f } = a || {};
2823
- typeof l == "function" && (u = l), o = is(i, r, n !== void 0 ? { reduceMotion: n, ...f } : f, t);
2845
+ typeof l == "function" && (u = l), o = rs(i, r, n !== void 0 ? { reduceMotion: n, ...f } : f, t);
2824
2846
  }
2825
- const c = new _i(o);
2847
+ const c = new Ui(o);
2826
2848
  return u && c.finished.then(u), t && (t.animations.push(c), c.finished.then(() => {
2827
2849
  qe(t.animations, c);
2828
2850
  })), c;
2829
2851
  }
2830
2852
  return s;
2831
2853
  }
2832
- const Ma = xa(), Pe = "";
2854
+ const xa = Ma(), Pe = "";
2833
2855
  function wa(e, t = !0) {
2834
- const [n, s] = we(0), [i, r] = we(0), [a, o] = we(e);
2856
+ const [n, s] = xe(0), [i, r] = xe(0), [a, o] = xe(e);
2835
2857
  return a !== e && (o(e), r(e.startsWith(a) ? n : 0)), Qt(() => {
2836
2858
  if (!t)
2837
2859
  return;
2838
- const u = Ma(
2860
+ const u = xa(
2839
2861
  // The starting value for the animation (current cursor position).
2840
2862
  i,
2841
2863
  // The target value: total number of characters.
@@ -2860,7 +2882,7 @@ function wa(e, t = !0) {
2860
2882
  const Ht = {
2861
2883
  MODEL: "Model",
2862
2884
  USAGE: "Session usage"
2863
- }, Aa = Jt("max-w-[99cqw]", "mt-3"), Na = fs.memo(
2885
+ }, Ca = Jt("max-w-[99cqw]", "mt-3"), Ka = hs.memo(
2864
2886
  ({
2865
2887
  content: e,
2866
2888
  annotations: t,
@@ -2877,47 +2899,47 @@ const Ht = {
2877
2899
  tokenUsage: l,
2878
2900
  lastStreamingTimestamp: f
2879
2901
  }
2880
- } = xt(ds), {
2902
+ } = At(ps), {
2881
2903
  state: { fullScreen: h }
2882
- } = xt(ps), m = t?.model || u, g = l, [y, v] = hs(), { user: S, getAccessToken: w } = as(), { data: V } = os({
2883
- user: S?.username,
2904
+ } = At(ms), p = t?.model || u, g = l, [y, S] = ds(), { user: v, getAccessToken: w } = os(), { data: V } = ls({
2905
+ user: v?.username,
2884
2906
  getAccessToken: w
2885
- }), x = V?.showDetails || !1, p = Jt({
2907
+ }), A = V?.showDetails || !1, m = Jt({
2886
2908
  "max-w-xs sm:max-w-3xl": !h
2887
2909
  }), b = [];
2888
- if (x) {
2889
- if (m && (s ? b.push({
2910
+ if (A) {
2911
+ if (p && (s ? b.push({
2890
2912
  key: Ht.MODEL,
2891
- value: m
2892
- }) : b.push(Ae)), g)
2913
+ value: p
2914
+ }) : b.push(we)), g)
2893
2915
  if (s) {
2894
- const A = g === -1 ? "N/A" : `${ls.format(g)} ${us(
2916
+ const x = g === -1 ? "N/A" : `${us.format(g)} ${cs(
2895
2917
  "token",
2896
2918
  g
2897
2919
  )}`;
2898
2920
  b.push({
2899
2921
  key: Ht.USAGE,
2900
- value: A
2922
+ value: x
2901
2923
  });
2902
2924
  } else
2903
- b.push(Ae);
2925
+ b.push(we);
2904
2926
  (f || c) && (s ? b.push({
2905
2927
  value: f ? Vt(f) : Vt(c || "")
2906
- }) : b.push(Ae));
2928
+ }) : b.push(we));
2907
2929
  }
2908
2930
  return Qt(() => {
2909
- a && v(a);
2910
- }, [a, v]), /* @__PURE__ */ St(
2911
- cs,
2931
+ a && S(a);
2932
+ }, [a, S]), /* @__PURE__ */ St(
2933
+ fs,
2912
2934
  {
2913
2935
  tail: !0,
2914
2936
  footer: b,
2915
- className: Aa,
2937
+ className: Ca,
2916
2938
  footerClassName: "text-copy-medium",
2917
- contentClassName: p,
2939
+ contentClassName: m,
2918
2940
  noMaxWidth: !0,
2919
2941
  action: /* @__PURE__ */ St(
2920
- ms,
2942
+ gs,
2921
2943
  {
2922
2944
  streaming: o,
2923
2945
  content: e,
@@ -2932,5 +2954,5 @@ const Ht = {
2932
2954
  }
2933
2955
  );
2934
2956
  export {
2935
- Na as default
2957
+ Ka as default
2936
2958
  };