@versini/sassysaint 8.131.2 → 8.132.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/chunks/{AboutChangelog.L-zGUN60.js → AboutChangelog.C60Ph6_V.js} +2 -2
  2. package/dist/chunks/{AboutEntry.BLgIk5xQ.js → AboutEntry.B7kYPqJR.js} +8 -8
  3. package/dist/chunks/{App.DILfZd4b.js → App.CZrm0ud8.js} +15 -15
  4. package/dist/chunks/{BubbleActions.CMdrw_lc.js → BubbleActions.C0ii7w53.js} +3 -3
  5. package/dist/chunks/{ButtonIconDelete.BwG2m-mQ.js → ButtonIconDelete.LG6OHOqt.js} +4 -4
  6. package/dist/chunks/{Chart.BI0lnCcx.js → Chart.BS5oh7sU.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.CK4aXLgA.js → ChatBubbleAssistant.BzbuxLL9.js} +508 -487
  8. package/dist/chunks/{ChatBubbleUser.DrUJw-9x.js → ChatBubbleUser.tKrsTbgL.js} +4 -4
  9. package/dist/chunks/{GenericPanel.BpO94u2K.js → GenericPanel.C2KOWCIj.js} +1 -1
  10. package/dist/chunks/{HistoryEntry.J-zMghIR.js → HistoryEntry.BvfEoUAh.js} +6 -6
  11. package/dist/chunks/{LoginEntry.D3GtFeVz.js → LoginEntry.C6WHdN_x.js} +4 -4
  12. package/dist/chunks/{LogoEntry.VoQPO0Sq.js → LogoEntry.Dqx46dB_.js} +1 -1
  13. package/dist/chunks/{MemoriesEntry.BJB8BtKc.js → MemoriesEntry.BORpqiTc.js} +6 -6
  14. package/dist/chunks/{ProfileEntry.CDStwQCW.js → ProfileEntry.CHIrfOsO.js} +6 -6
  15. package/dist/chunks/{SettingsEntry.DXtE3Df1.js → SettingsEntry.BgHt5LIl.js} +16 -16
  16. package/dist/chunks/{UsageEntry.DGuX3f1y.js → UsageEntry.QL82TzgY.js} +6 -6
  17. package/dist/chunks/{_baseUniq.BeA_MBDj.js → _baseUniq.CDZKWru-.js} +1 -1
  18. package/dist/chunks/{arc.CFkvoVpl.js → arc.D0iQNmp0.js} +1 -1
  19. package/dist/chunks/{architecture-U656AL7Q.DxDH3LqR.js → architecture-U656AL7Q.BzZn5ppt.js} +1 -1
  20. package/dist/chunks/{architectureDiagram-VXUJARFQ.CfE3333l.js → architectureDiagram-VXUJARFQ.hxp3UuL5.js} +4 -4
  21. package/dist/chunks/{blockDiagram-VD42YOAC.1eCjvcMh.js → blockDiagram-VD42YOAC.BpOUQ9hB.js} +5 -5
  22. package/dist/chunks/{browser.gx7XL2vS.js → browser.B_3xenDo.js} +1 -1
  23. package/dist/chunks/{c4Diagram-YG6GDRKO.CQ6LJeZC.js → c4Diagram-YG6GDRKO.DbYP8gBq.js} +2 -2
  24. package/dist/chunks/{channel.B9l5y0mV.js → channel.jnm734mE.js} +1 -1
  25. package/dist/chunks/{chunk-4BX2VUAB.BAixgyZO.js → chunk-4BX2VUAB.DWQFyG9H.js} +1 -1
  26. package/dist/chunks/{chunk-55IACEB6.f-Giypid.js → chunk-55IACEB6.CaETS87Y.js} +1 -1
  27. package/dist/chunks/{chunk-B4BG7PRW.g51ODm75.js → chunk-B4BG7PRW.CwQ99oZc.js} +4 -4
  28. package/dist/chunks/{chunk-DI55MBZ5.BlJT3NP_.js → chunk-DI55MBZ5.6ZeuJMDf.js} +3 -3
  29. package/dist/chunks/{chunk-FMBD7UC4.C1_d_jDk.js → chunk-FMBD7UC4.Dshxykzm.js} +1 -1
  30. package/dist/chunks/{chunk-QN33PNHL.nToSBKLG.js → chunk-QN33PNHL.B7Z4GrlI.js} +1 -1
  31. package/dist/chunks/{chunk-QZHKN3VN.BBkeEdn1.js → chunk-QZHKN3VN.hIH_0kf5.js} +1 -1
  32. package/dist/chunks/{chunk-TZMSLE5B.DyDPWMvm.js → chunk-TZMSLE5B.Dowbj2kZ.js} +1 -1
  33. package/dist/chunks/{classDiagram-2ON5EDUG.BAlV6Hpq.js → classDiagram-2ON5EDUG.mGJFzPhp.js} +2 -2
  34. package/dist/chunks/{classDiagram-v2-WZHVMYZB.BAlV6Hpq.js → classDiagram-v2-WZHVMYZB.mGJFzPhp.js} +2 -2
  35. package/dist/chunks/{clone.n6WySrgY.js → clone.BrqJwr9l.js} +1 -1
  36. package/dist/chunks/{cose-bilkent-S5V4N54A.BM10xjUU.js → cose-bilkent-S5V4N54A.CmHfwqVA.js} +2 -2
  37. package/dist/chunks/{dagre-6UL2VRFP.DtsZqUKB.js → dagre-6UL2VRFP.CJAifrpE.js} +5 -5
  38. package/dist/chunks/{diagram-PSM6KHXK.6E846u0N.js → diagram-PSM6KHXK.DwQHcqS0.js} +4 -4
  39. package/dist/chunks/{diagram-QEK2KX5R.D72THTkV.js → diagram-QEK2KX5R.DT9ZdJW0.js} +3 -3
  40. package/dist/chunks/{diagram-S2PKOQOG.DUI8sskd.js → diagram-S2PKOQOG.I57E34mS.js} +3 -3
  41. package/dist/chunks/{erDiagram-Q2GNP2WA.BhNJILdV.js → erDiagram-Q2GNP2WA.Vzd8tPV-.js} +4 -4
  42. package/dist/chunks/{flowDiagram-NV44I4VS.DTxfT1dj.js → flowDiagram-NV44I4VS.CbQMFQhV.js} +5 -5
  43. package/dist/chunks/{ganttDiagram-JELNMOA3.BSkxDoIn.js → ganttDiagram-JELNMOA3.DHU2G96R.js} +2 -2
  44. package/dist/chunks/{gitGraph-F6HP7TQM.CL_YDnN2.js → gitGraph-F6HP7TQM.CEoPuEGW.js} +1 -1
  45. package/dist/chunks/{gitGraphDiagram-NY62KEGX.CW4Vlfkl.js → gitGraphDiagram-NY62KEGX.25dWL8Nn.js} +4 -4
  46. package/dist/chunks/{graph.DrK7fh5p.js → graph.BUTarhmd.js} +2 -2
  47. package/dist/chunks/{index.C1wJU9H8.js → index.B8dfHV7n.js} +1 -1
  48. package/dist/chunks/{index.DUdDy9zx.js → index.Bpv_4tQe.js} +4 -4
  49. package/dist/chunks/{index.CyaWWU9q.js → index.C1lCP8wv.js} +5 -5
  50. package/dist/chunks/{index.B2bbYpWI.js → index.CIKlK86W.js} +3 -3
  51. package/dist/chunks/{index.DRZNks9Q.js → index.CKTpxXxp.js} +1 -1
  52. package/dist/chunks/{index.F5g7pO5b.js → index.Chfxqeyo.js} +1 -1
  53. package/dist/chunks/{index.CX1X7Cz5.js → index.Cppl8m1V.js} +1 -1
  54. package/dist/chunks/{index.7k08jhmw.js → index.DdjFWZEG.js} +1 -1
  55. package/dist/chunks/{index.C1uY4Pf9.js → index.DkXUbbIc.js} +1 -1
  56. package/dist/chunks/{index.CUvApSBa.js → index.DoB6L9A_.js} +1 -1
  57. package/dist/chunks/{info-NVLQJR56.B5ntH1CE.js → info-NVLQJR56.CtWp93L5.js} +1 -1
  58. package/dist/chunks/{infoDiagram-WHAUD3N6.B_aOMYyU.js → infoDiagram-WHAUD3N6.CK_-Tkvk.js} +2 -2
  59. package/dist/chunks/{journeyDiagram-XKPGCS4Q.OU2jTvw6.js → journeyDiagram-XKPGCS4Q.CMhhTO8R.js} +4 -4
  60. package/dist/chunks/{kanban-definition-3W4ZIXB7.Bf2bSXph.js → kanban-definition-3W4ZIXB7.DMmUVAZn.js} +2 -2
  61. package/dist/chunks/{katex.6qoCFezb.js → katex.Cw9NqA0C.js} +2 -2
  62. package/dist/chunks/{layout.DJkCZSzu.js → layout.BtwspUkI.js} +4 -4
  63. package/dist/chunks/{mermaid-parser.core.BeyUZ0X1.js → mermaid-parser.core.DenSD6Us.js} +10 -10
  64. package/dist/chunks/{min.DKBYnkHo.js → min.Cl4nWAQM.js} +2 -2
  65. package/dist/chunks/{mindmap-definition-VGOIOE7T.D_Ni5_a2.js → mindmap-definition-VGOIOE7T.Deq7oDtS.js} +3 -3
  66. package/dist/chunks/{packet-BFZMPI3H.DUCYhSLR.js → packet-BFZMPI3H.BLZbLgdq.js} +1 -1
  67. package/dist/chunks/{pie-7BOR55EZ.BxIP7S7k.js → pie-7BOR55EZ.B_ISYhoY.js} +1 -1
  68. package/dist/chunks/{pieDiagram-ADFJNKIX.DvDe3OqT.js → pieDiagram-ADFJNKIX.2aaiDVwD.js} +4 -4
  69. package/dist/chunks/{quadrantDiagram-AYHSOK5B.BLPaiS-2.js → quadrantDiagram-AYHSOK5B.BdIjfexh.js} +1 -1
  70. package/dist/chunks/{radar-NHE76QYJ.vVcWy_Ey.js → radar-NHE76QYJ.DY0E0l__.js} +1 -1
  71. package/dist/chunks/{rehype-mermaid.I7epgznD.js → rehype-mermaid.Buv0x1dc.js} +34 -34
  72. package/dist/chunks/{requirementDiagram-UZGBJVZJ.VTrZDqWZ.js → requirementDiagram-UZGBJVZJ.CotSW4tj.js} +3 -3
  73. package/dist/chunks/{sankeyDiagram-TZEHDZUN.D1Ae3Jaw.js → sankeyDiagram-TZEHDZUN.DiYYQbrx.js} +1 -1
  74. package/dist/chunks/{sequenceDiagram-WL72ISMW.Bodx3M0T.js → sequenceDiagram-WL72ISMW.CvrsAwE2.js} +3 -3
  75. package/dist/chunks/{stateDiagram-FKZM4ZOC.JXSPML56.js → stateDiagram-FKZM4ZOC.BQQpxAHz.js} +4 -4
  76. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.JS_Of1vt.js → stateDiagram-v2-4FDKWEC3.BmEXLd-P.js} +2 -2
  77. package/dist/chunks/{timeline-definition-IT6M3QCI.CSs-vDLP.js → timeline-definition-IT6M3QCI.I0uY7KvI.js} +2 -2
  78. package/dist/chunks/{treemap-KMMF4GRG.CnMi3HeU.js → treemap-KMMF4GRG.CE0zWEd2.js} +1 -1
  79. package/dist/chunks/{useMarkdown.DPrJ968h.js → useMarkdown.CoGV_rOq.js} +1988 -1705
  80. package/dist/chunks/{xychartDiagram-PRI3JC2R.Dr5nlEns.js → xychartDiagram-PRI3JC2R.BjKDpCfz.js} +1 -1
  81. package/dist/components/SassySaint/SassySaint.js +1 -1
  82. package/dist/index.js +3 -3
  83. package/dist/style.css +1 -1
  84. package/package.json +3 -3
@@ -1,18 +1,18 @@
1
- import { jsx as vt } from "react/jsx-runtime";
2
- import { n as as, useUserPreferences as os, formatTimestamp as St } from "./index.CyaWWU9q.js";
3
- import { numberFormatter as ls, pluralize as us, Bubble as cs } from "./App.DILfZd4b.js";
4
- import Ht from "clsx";
5
- import fs, { useState as Ae, useEffect as Jt, useContext as Vt } from "react";
6
- import { useMarkdown as hs } from "./useMarkdown.DPrJ968h.js";
7
- import { ChatContext as ds, AppContext as ms } from "./LogoEntry.VoQPO0Sq.js";
8
- import { BubbleActions as ps } from "./BubbleActions.CMdrw_lc.js";
9
- const Me = {
1
+ import { jsx as St } from "react/jsx-runtime";
2
+ import { n as as, useUserPreferences as os, formatTimestamp as Vt } from "./index.C1lCP8wv.js";
3
+ import { numberFormatter as ls, pluralize as us, Bubble as cs } from "./App.CZrm0ud8.js";
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.CoGV_rOq.js";
7
+ import { ChatContext as ds, AppContext as ps } from "./LogoEntry.Dqx46dB_.js";
8
+ import { BubbleActions as ms } from "./BubbleActions.C0ii7w53.js";
9
+ const Ae = {
10
10
  isEmpty: !0
11
11
  };
12
12
  function gs(e, t) {
13
13
  e.indexOf(t) === -1 && e.push(t);
14
14
  }
15
- function Qt(e, t) {
15
+ function qe(e, t) {
16
16
  const n = e.indexOf(t);
17
17
  n > -1 && e.splice(n, 1);
18
18
  }
@@ -21,11 +21,11 @@ function Oe(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
- }, B = () => {
24
+ }, I = () => {
25
25
  };
26
26
  typeof process < "u" && process.env?.NODE_ENV !== "production" && (de = (e, t, n) => {
27
27
  !e && typeof console < "u" && console.warn(Oe(t, n));
28
- }, B = (e, t, n) => {
28
+ }, I = (e, t, n) => {
29
29
  if (!e)
30
30
  throw new Error(Oe(t, n));
31
31
  });
@@ -35,11 +35,11 @@ function ys(e) {
35
35
  }
36
36
  const tn = (e) => /^0[^.\s]+$/u.test(e);
37
37
  // @__NO_SIDE_EFFECTS__
38
- function qe(e) {
38
+ 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)), Ze = (...e) => e.reduce(bs), He = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
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) => {
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), () => Qt(this.subscriptions, t);
51
+ return gs(this.subscriptions, t), () => qe(this.subscriptions, t);
52
52
  }
53
53
  notify(t, n, s) {
54
54
  const i = this.subscriptions.length;
@@ -72,9 +72,9 @@ const k = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, P = /* @__NO_SIDE_EFFECTS__
72
72
  function sn(e, t) {
73
73
  return t ? e * (1e3 / t) : 0;
74
74
  }
75
- const xt = /* @__PURE__ */ new Set();
75
+ const Mt = /* @__PURE__ */ new Set();
76
76
  function rn(e, t, n) {
77
- e || xt.has(t) || (console.warn(Oe(t, n)), xt.add(t));
77
+ e || Mt.has(t) || (console.warn(Oe(t, n)), Mt.add(t));
78
78
  }
79
79
  const Ts = (e, t, n) => {
80
80
  const s = t - e;
@@ -87,35 +87,35 @@ function Vs(e, t, n, s, i) {
87
87
  while (Math.abs(r) > vs && ++o < Ss);
88
88
  return a;
89
89
  }
90
- function me(e, t, n, s) {
90
+ function pe(e, t, n, s) {
91
91
  if (e === t && n === s)
92
92
  return Z;
93
93
  const i = (r) => Vs(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__ */ me(0.33, 1.53, 0.69, 0.99), Je = /* @__PURE__ */ ln(un), cn = /* @__PURE__ */ on(Je), fn = (e) => (e *= 2) < 1 ? 0.5 * Je(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Qe = (e) => 1 - Math.sin(Math.acos(e)), xs = ln(Qe), hn = on(Qe), ws = /* @__PURE__ */ me(0.42, 0, 1, 1), As = /* @__PURE__ */ me(0, 0, 0.58, 1), dn = /* @__PURE__ */ me(0.42, 0, 0.58, 1), mn = (e) => Array.isArray(e) && typeof e[0] != "number";
97
- function pn(e, t) {
98
- return mn(e) ? e[Ts(0, e.length, t)] : e;
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";
97
+ function mn(e, t) {
98
+ return pn(e) ? e[Ts(0, e.length, t)] : e;
99
99
  }
100
100
  const gn = (e) => Array.isArray(e) && typeof e[0] == "number", wt = {
101
101
  linear: Z,
102
- easeIn: ws,
102
+ easeIn: Ms,
103
103
  easeInOut: dn,
104
- easeOut: As,
105
- circIn: Qe,
104
+ easeOut: ws,
105
+ circIn: et,
106
106
  circInOut: hn,
107
107
  circOut: xs,
108
- backIn: Je,
108
+ backIn: Qe,
109
109
  backInOut: cn,
110
110
  backOut: un,
111
111
  anticipate: fn
112
- }, Ms = (e) => typeof e == "string", At = (e) => {
112
+ }, As = (e) => typeof e == "string", At = (e) => {
113
113
  if (gn(e)) {
114
- B(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
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
- return me(t, n, s, i);
117
- } else if (Ms(e))
118
- return B(wt[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), wt[e];
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];
119
119
  return e;
120
120
  }, be = [
121
121
  "setup",
@@ -180,15 +180,15 @@ function yn(e, t) {
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: p, postRender: g } = a, T = () => {
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 = () => {
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), p.process(i), g.process(i), i.isProcessing = !1, n && t && (s = !1, e(T));
186
- }, S = () => {
187
- n = !0, s = !0, i.isProcessing || e(T);
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 = () => {
187
+ n = !0, s = !0, i.isProcessing || e(y);
188
188
  };
189
189
  return { schedule: be.reduce((V, x) => {
190
- const m = a[x];
191
- return V[x] = (y, M = !1, b = !1) => (n || S(), m.schedule(y, M, b)), V;
190
+ const p = a[x];
191
+ return V[x] = (b, A = !1, T = !1) => (n || v(), p.schedule(b, A, T)), V;
192
192
  }, {}), cancel: (V) => {
193
193
  for (let x = 0; x < be.length; x++)
194
194
  a[be[x]].cancel(V);
@@ -204,8 +204,8 @@ const R = {
204
204
  set: (e) => {
205
205
  ve = e, queueMicrotask(Fs);
206
206
  }
207
- }, bn = (e) => (t) => typeof t == "string" && t.startsWith(e), Tn = /* @__PURE__ */ bn("--"), Es = /* @__PURE__ */ bn("var(--"), et = (e) => Es(e) ? Rs.test(e.split("/*")[0].trim()) : !1, Rs = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
208
- function Mt(e) {
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;
208
+ function Ct(e) {
209
209
  return typeof e != "string" ? !1 : e.split("/*")[0].includes("var(--");
210
210
  }
211
211
  const H = {
@@ -218,14 +218,14 @@ const H = {
218
218
  }, Te = {
219
219
  ...H,
220
220
  default: 1
221
- }, oe = (e) => Math.round(e * 1e5) / 1e5, tt = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
221
+ }, oe = (e) => Math.round(e * 1e5) / 1e5, nt = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
222
222
  function Ps(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, nt = (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 && !Ps(n) && Object.prototype.hasOwnProperty.call(n, t)), vn = (e, t, n) => (s) => {
226
226
  if (typeof s != "string")
227
227
  return s;
228
- const [i, r, a, o] = s.match(tt);
228
+ const [i, r, a, o] = s.match(nt);
229
229
  return {
230
230
  [e]: parseFloat(i),
231
231
  [t]: parseFloat(r),
@@ -235,8 +235,8 @@ const Os = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
235
235
  }, ks = (e) => _(0, 255, e), Ce = {
236
236
  ...H,
237
237
  transform: (e) => Math.round(ks(e))
238
- }, U = {
239
- test: /* @__PURE__ */ nt("rgb", "red"),
238
+ }, j = {
239
+ test: /* @__PURE__ */ st("rgb", "red"),
240
240
  parse: /* @__PURE__ */ vn("red", "green", "blue"),
241
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)) + ")"
242
242
  };
@@ -250,34 +250,34 @@ function Bs(e) {
250
250
  };
251
251
  }
252
252
  const Be = {
253
- test: /* @__PURE__ */ nt("#"),
253
+ test: /* @__PURE__ */ st("#"),
254
254
  parse: Bs,
255
- transform: U.transform
256
- }, pe = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
255
+ transform: j.transform
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__ */ pe("deg"), q = /* @__PURE__ */ pe("%"), d = /* @__PURE__ */ pe("px"), Is = /* @__PURE__ */ pe("vh"), Ns = /* @__PURE__ */ pe("vw"), Ct = {
260
+ }), L = /* @__PURE__ */ me("deg"), q = /* @__PURE__ */ me("%"), d = /* @__PURE__ */ me("px"), Is = /* @__PURE__ */ me("vh"), Ns = /* @__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
- test: /* @__PURE__ */ nt("hsl", "hue"),
265
+ test: /* @__PURE__ */ st("hsl", "hue"),
266
266
  parse: /* @__PURE__ */ vn("hue", "saturation", "lightness"),
267
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)) + ")"
268
268
  }, D = {
269
- test: (e) => U.test(e) || Be.test(e) || z.test(e),
270
- parse: (e) => U.test(e) ? U.parse(e) : z.test(e) ? z.parse(e) : Be.parse(e),
271
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? U.transform(e) : z.transform(e),
269
+ test: (e) => j.test(e) || Be.test(e) || z.test(e),
270
+ parse: (e) => j.test(e) ? j.parse(e) : z.test(e) ? z.parse(e) : Be.parse(e),
271
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? j.transform(e) : z.transform(e),
272
272
  getAnimatableNone: (e) => {
273
273
  const t = D.parse(e);
274
274
  return t.alpha = 0, D.transform(t);
275
275
  }
276
276
  }, Ks = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
277
277
  function $s(e) {
278
- return isNaN(e) && typeof e == "string" && (e.match(tt)?.length || 0) + (e.match(Ks)?.length || 0) > 0;
278
+ return isNaN(e) && typeof e == "string" && (e.match(nt)?.length || 0) + (e.match(Ks)?.length || 0) > 0;
279
279
  }
280
- const Sn = "number", Vn = "color", Ls = "var", Ws = "var(", Dt = "${}", _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;
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
281
  function ue(e) {
282
282
  const t = e.toString(), n = [], s = {
283
283
  color: [],
@@ -285,13 +285,13 @@ function ue(e) {
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, Dt)).split(Dt);
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);
289
289
  return { values: n, split: o, indexes: s, types: i };
290
290
  }
291
291
  function xn(e) {
292
292
  return ue(e).values;
293
293
  }
294
- function wn(e) {
294
+ function Mn(e) {
295
295
  const { split: t, types: n } = ue(e), s = t.length;
296
296
  return (i) => {
297
297
  let r = "";
@@ -303,16 +303,16 @@ function wn(e) {
303
303
  return r;
304
304
  };
305
305
  }
306
- const js = (e) => typeof e == "number" ? 0 : D.test(e) ? D.getAnimatableNone(e) : e;
307
- function Us(e) {
306
+ const Us = (e) => typeof e == "number" ? 0 : D.test(e) ? D.getAnimatableNone(e) : e;
307
+ function js(e) {
308
308
  const t = xn(e);
309
- return wn(e)(t.map(js));
309
+ return Mn(e)(t.map(Us));
310
310
  }
311
- const j = {
311
+ const U = {
312
312
  test: $s,
313
313
  parse: xn,
314
- createTransformer: wn,
315
- getAnimatableNone: Us
314
+ createTransformer: Mn,
315
+ getAnimatableNone: js
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;
@@ -339,20 +339,20 @@ function Ve(e, t) {
339
339
  const J = (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, U, z], zs = (e) => Ys.find((t) => t.test(e));
343
- function Ft(e) {
342
+ }, Ys = [Be, j, z], zs = (e) => Ys.find((t) => t.test(e));
343
+ function Et(e) {
344
344
  const t = zs(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
348
  return t === z && (n = Gs(n)), n;
349
349
  }
350
- const Et = (e, t) => {
351
- const n = Ft(e), s = Ft(t);
350
+ const Rt = (e, t) => {
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), U.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 = J(n.alpha, s.alpha, r), j.transform(i));
356
356
  }, Ie = /* @__PURE__ */ new Set(["none", "hidden"]);
357
357
  function Xs(e, t) {
358
358
  return Ie.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
@@ -360,11 +360,11 @@ function Xs(e, t) {
360
360
  function qs(e, t) {
361
361
  return (n) => J(e, t, n);
362
362
  }
363
- function st(e) {
364
- return typeof e == "number" ? qs : typeof e == "string" ? et(e) ? Ve : D.test(e) ? Et : Js : Array.isArray(e) ? An : typeof e == "object" ? D.test(e) ? Et : Zs : Ve;
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;
365
365
  }
366
- function An(e, t) {
367
- const n = [...e], s = n.length, i = e.map((r, a) => st(r)(r, t[a]));
366
+ function wn(e, t) {
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++)
370
370
  n[a] = i[a](r);
@@ -374,7 +374,7 @@ function An(e, t) {
374
374
  function Zs(e, t) {
375
375
  const n = { ...e, ...t }, s = {};
376
376
  for (const i in n)
377
- e[i] !== void 0 && t[i] !== void 0 && (s[i] = st(e[i])(e[i], t[i]));
377
+ e[i] !== void 0 && t[i] !== void 0 && (s[i] = it(e[i])(e[i], t[i]));
378
378
  return (i) => {
379
379
  for (const r in s)
380
380
  n[r] = s[r](i);
@@ -390,11 +390,11 @@ function Hs(e, t) {
390
390
  return n;
391
391
  }
392
392
  const Js = (e, t) => {
393
- const n = j.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) : Ze(An(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));
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));
395
395
  };
396
- function Mn(e, t, n) {
397
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? J(e, t, n) : st(e)(e, t);
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);
398
398
  }
399
399
  const Qs = (e) => {
400
400
  const t = ({ timestamp: n }) => e(n);
@@ -414,7 +414,7 @@ const Qs = (e) => {
414
414
  s += Math.round(e(r / (i - 1)) * 1e4) / 1e4 + ", ";
415
415
  return `linear(${s.substring(0, s.length - 2)})`;
416
416
  }, xe = 2e4;
417
- function it(e) {
417
+ function rt(e) {
418
418
  let t = 0;
419
419
  const n = 50;
420
420
  let s = e.next(t);
@@ -423,7 +423,7 @@ function it(e) {
423
423
  return t >= xe ? 1 / 0 : t;
424
424
  }
425
425
  function Dn(e, t = 100, n) {
426
- const s = n({ ...e, keyframes: [0, t] }), i = Math.min(it(s), xe);
426
+ const s = n({ ...e, keyframes: [0, t] }), i = Math.min(rt(s), xe);
427
427
  return {
428
428
  type: "keyframes",
429
429
  ease: (r) => s.next(i * r).value / t,
@@ -469,11 +469,11 @@ function ti({ duration: e = C.duration, bounce: t = C.bounce, velocity: n = C.ve
469
469
  de(e <= /* @__PURE__ */ k(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, p = Ne(c, a), g = Math.exp(-f);
473
- return Ee - h / p * g;
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;
474
474
  }, r = (c) => {
475
- const f = c * a * e, h = f * n + n, p = Math.pow(a, 2) * Math.pow(c, 2) * e, g = Math.exp(-f), T = Ne(Math.pow(c, 2), a);
476
- return (-i(c) + Ee > 0 ? -1 : 1) * ((h - p) * g) / T;
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;
477
477
  }) : (i = (c) => {
478
478
  const l = Math.exp(-c * e), f = (c - n) * e + 1;
479
479
  return -Ee + l * f;
@@ -508,7 +508,7 @@ function Ne(e, t) {
508
508
  return e * Math.sqrt(1 - t * t);
509
509
  }
510
510
  const ii = ["duration", "bounce"], ri = ["stiffness", "damping", "mass"];
511
- function Rt(e, t) {
511
+ function Pt(e, t) {
512
512
  return t.some((n) => e[n] !== void 0);
513
513
  }
514
514
  function ai(e) {
@@ -520,7 +520,7 @@ function ai(e) {
520
520
  isResolvedFromDuration: !1,
521
521
  ...e
522
522
  };
523
- if (!Rt(e, ri) && Rt(e, ii))
523
+ if (!Pt(e, ri) && Pt(e, ii))
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 = {
@@ -546,44 +546,44 @@ function ce(e = C.visualDuration, t = C.bounce) {
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: p } = 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: m } = ai({
550
550
  ...n,
551
551
  velocity: -/* @__PURE__ */ P(n.velocity || 0)
552
- }), g = h || 0, T = c / (2 * Math.sqrt(u * l)), S = a - r, v = /* @__PURE__ */ P(Math.sqrt(u / l)), A = Math.abs(S) < 5;
553
- s || (s = A ? C.restSpeed.granular : C.restSpeed.default), i || (i = A ? C.restDelta.granular : C.restDelta.default);
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;
553
+ s || (s = w ? C.restSpeed.granular : C.restSpeed.default), i || (i = w ? C.restDelta.granular : C.restDelta.default);
554
554
  let V;
555
- if (T < 1) {
556
- const m = Ne(v, T);
557
- V = (y) => {
558
- const M = Math.exp(-T * v * y);
559
- return a - M * ((g + T * v * S) / m * Math.sin(m * y) + S * Math.cos(m * y));
555
+ if (y < 1) {
556
+ const p = Ne(S, y);
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));
560
560
  };
561
- } else if (T === 1)
562
- V = (m) => a - Math.exp(-v * m) * (S + (g + v * S) * m);
561
+ } else if (y === 1)
562
+ V = (p) => a - Math.exp(-S * p) * (v + (g + S * v) * p);
563
563
  else {
564
- const m = v * Math.sqrt(T * T - 1);
565
- V = (y) => {
566
- const M = Math.exp(-T * v * y), b = Math.min(m * y, 300);
567
- return a - M * ((g + T * v * S) * Math.sinh(b) + m * S * Math.cosh(b)) / m;
564
+ const p = S * Math.sqrt(y * y - 1);
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;
568
568
  };
569
569
  }
570
570
  const x = {
571
- calculatedDuration: p && f || null,
572
- next: (m) => {
573
- const y = V(m);
574
- if (p)
575
- o.done = m >= f;
571
+ calculatedDuration: m && f || null,
572
+ next: (p) => {
573
+ const b = V(p);
574
+ if (m)
575
+ o.done = p >= f;
576
576
  else {
577
- let M = m === 0 ? g : 0;
578
- T < 1 && (M = m === 0 ? /* @__PURE__ */ k(g) : Fn(V, m, y));
579
- const b = Math.abs(M) <= s, w = Math.abs(a - y) <= i;
580
- o.done = b && w;
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;
580
+ o.done = T && M;
581
581
  }
582
- return o.value = o.done ? a : y, o;
582
+ return o.value = o.done ? a : b, o;
583
583
  },
584
584
  toString: () => {
585
- const m = Math.min(it(x), xe), y = Cn((M) => x.next(m * M).value, m, 30);
586
- return m + "ms " + y;
585
+ const p = Math.min(rt(x), xe), b = Cn((A) => x.next(p * A).value, p, 30);
586
+ return p + "ms " + b;
587
587
  },
588
588
  toTransition: () => {
589
589
  }
@@ -598,19 +598,19 @@ function Ke({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
598
598
  const f = e[0], h = {
599
599
  done: !1,
600
600
  value: f
601
- }, p = (b) => o !== void 0 && b < o || u !== void 0 && b > u, g = (b) => o === void 0 ? u : u === void 0 || Math.abs(o - b) < Math.abs(u - b) ? o : u;
602
- let T = n * t;
603
- const S = f + T, v = a === void 0 ? S : a(S);
604
- v !== S && (T = v - f);
605
- const A = (b) => -T * Math.exp(-b / s), V = (b) => v + A(b), x = (b) => {
606
- const w = A(b), E = V(b);
607
- h.done = Math.abs(w) <= c, h.value = h.done ? v : E;
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;
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) => {
606
+ const M = w(T), F = V(T);
607
+ h.done = Math.abs(M) <= c, h.value = h.done ? S : F;
608
608
  };
609
- let m, y;
610
- const M = (b) => {
611
- p(h.value) && (m = b, y = ce({
609
+ let p, b;
610
+ const A = (T) => {
611
+ m(h.value) && (p = T, b = ce({
612
612
  keyframes: [h.value, g(h.value)],
613
- velocity: Fn(V, b, h.value),
613
+ velocity: Fn(V, T, h.value),
614
614
  // TODO: This should be passing * 1000
615
615
  damping: i,
616
616
  stiffness: r,
@@ -618,21 +618,21 @@ function Ke({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
618
618
  restSpeed: l
619
619
  }));
620
620
  };
621
- return M(0), {
621
+ return A(0), {
622
622
  calculatedDuration: null,
623
- next: (b) => {
624
- let w = !1;
625
- return !y && m === void 0 && (w = !0, x(b), M(b)), m !== void 0 && b >= m ? y.next(b - m) : (!w && x(b), h);
623
+ next: (T) => {
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);
626
626
  }
627
627
  };
628
628
  }
629
629
  function oi(e, t, n) {
630
- const s = [], i = n || N.mix || Mn, r = e.length - 1;
630
+ const s = [], i = n || N.mix || An, 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
634
  const u = Array.isArray(t) ? t[a] || Z : t;
635
- o = Ze(u, o);
635
+ o = He(u, o);
636
636
  }
637
637
  s.push(o);
638
638
  }
@@ -640,7 +640,7 @@ function oi(e, t, n) {
640
640
  }
641
641
  function li(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
642
642
  const r = e.length;
643
- if (B(r === t.length, "Both input and output ranges must be the same length", "range-length"), r === 1)
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];
645
645
  if (r === 2 && t[0] === t[1])
646
646
  return () => t[1];
@@ -653,7 +653,7 @@ function li(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
653
653
  if (u > 1)
654
654
  for (; f < e.length - 2 && !(l < e[f + 1]); f++)
655
655
  ;
656
- const h = /* @__PURE__ */ He(e[f], e[f + 1], l);
656
+ const h = /* @__PURE__ */ Je(e[f], e[f + 1], l);
657
657
  return o[f](h);
658
658
  };
659
659
  return n ? (l) => c(_(e[0], e[r - 1], l)) : c;
@@ -661,7 +661,7 @@ function li(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
661
661
  function En(e, t) {
662
662
  const n = e[e.length - 1];
663
663
  for (let s = 1; s <= t; s++) {
664
- const i = /* @__PURE__ */ He(0, t, s);
664
+ const i = /* @__PURE__ */ Je(0, t, s);
665
665
  e.push(J(n, 1, i));
666
666
  }
667
667
  }
@@ -676,7 +676,7 @@ function ci(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 = mn(s) ? s.map(At) : At(s), r = {
679
+ const i = pn(s) ? s.map(At) : At(s), r = {
680
680
  done: !1,
681
681
  value: t[0]
682
682
  }, a = ui(
@@ -693,7 +693,7 @@ function X({ duration: e = 300, keyframes: t, times: n, ease: s = "easeInOut" })
693
693
  };
694
694
  }
695
695
  const fi = (e) => e !== null;
696
- function rt(e, { repeat: t, repeatType: n = "loop" }, s, i = 1) {
696
+ function at(e, { repeat: t, repeatType: n = "loop" }, s, i = 1) {
697
697
  const r = e.filter(fi), 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
  }
@@ -707,7 +707,7 @@ const hi = {
707
707
  function Pn(e) {
708
708
  typeof e.type == "string" && (e.type = hi[e.type]);
709
709
  }
710
- class at {
710
+ class ot {
711
711
  constructor() {
712
712
  this.updateFinished();
713
713
  }
@@ -732,7 +732,7 @@ class at {
732
732
  }
733
733
  }
734
734
  const di = (e) => e / 100;
735
- class ot extends at {
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 = () => {
738
738
  const { motionValue: n } = this.options;
@@ -745,13 +745,13 @@ class ot extends at {
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 && B(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 = Ze(di, Mn(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(di, An(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,
752
752
  keyframes: [...o].reverse(),
753
753
  velocity: -a
754
- })), c.calculatedDuration === null && (c.calculatedDuration = it(c));
754
+ })), c.calculatedDuration === null && (c.calculatedDuration = rt(c));
755
755
  const { calculatedDuration: l } = c;
756
756
  this.calculatedDuration = l, this.resolvedDuration = l + i, this.totalDuration = this.resolvedDuration * (s + 1) - i, this.generator = c;
757
757
  }
@@ -763,22 +763,22 @@ class ot extends at {
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: p, type: g, onUpdate: T, finalKeyframe: S } = this.options;
766
+ const { delay: c = 0, keyframes: l, repeat: f, repeatType: h, repeatDelay: m, type: g, onUpdate: y, finalKeyframe: v } = 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 v = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), A = this.playbackSpeed >= 0 ? v < 0 : v > i;
769
- this.currentTime = Math.max(v, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
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
770
  let V = this.currentTime, x = s;
771
771
  if (f) {
772
- const b = Math.min(this.currentTime, i) / o;
773
- let w = Math.floor(b), E = b % 1;
774
- !E && b >= 1 && (E = 1), E === 1 && w--, w = Math.min(w, f + 1), w % 2 && (h === "reverse" ? (E = 1 - E, p && (E -= p / o)) : h === "mirror" && (x = a)), V = _(0, 1, E) * o;
772
+ const T = Math.min(this.currentTime, i) / o;
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;
775
775
  }
776
- const m = A ? { done: !1, value: l[0] } : x.next(V);
777
- r && (m.value = r(m.value));
778
- let { done: y } = m;
779
- !A && u !== null && (y = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
780
- const M = this.holdTime === null && (this.state === "finished" || this.state === "running" && y);
781
- return M && g !== Ke && (m.value = rt(l, this.options, S, this.speed)), T && T(m.value), M && this.finish(), m;
776
+ const p = w ? { done: !1, value: l[0] } : x.next(V);
777
+ r && (p.value = r(p.value));
778
+ let { done: b } = p;
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;
782
782
  }
783
783
  /**
784
784
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -842,14 +842,14 @@ class ot extends at {
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 mi(e) {
845
+ function pi(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
- }, pi = {
852
+ }, mi = {
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), Pt = $e, Ot = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), kt = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), gi = {
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 = {
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: Ot,
873
- scaleY: kt,
874
- scale: (e) => (Ot(e) + kt(e)) / 2,
872
+ scaleX: kt,
873
+ scaleY: Bt,
874
+ scale: (e) => (kt(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: Pt,
878
- rotate: Pt,
877
+ rotateZ: Ot,
878
+ rotate: Ot,
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
@@ -892,7 +892,7 @@ function _e(e, t) {
892
892
  s = gi, i = n;
893
893
  else {
894
894
  const o = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
895
- s = pi, i = o;
895
+ s = mi, i = o;
896
896
  }
897
897
  if (!i)
898
898
  return We(t);
@@ -924,7 +924,7 @@ const Q = [
924
924
  "skew",
925
925
  "skewX",
926
926
  "skewY"
927
- ], ee = new Set(Q), Bt = (e) => e === H || e === d, Ti = /* @__PURE__ */ new Set(["x", "y", "z"]), vi = Q.filter((e) => !Ti.has(e));
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
928
  function Si(e) {
929
929
  const t = [];
930
930
  return vi.forEach((n) => {
@@ -947,9 +947,9 @@ const W = {
947
947
  W.translateX = W.x;
948
948
  W.translateY = W.y;
949
949
  const Y = /* @__PURE__ */ new Set();
950
- let je = !1, Ue = !1, Ge = !1;
950
+ let Ue = !1, je = !1, Ge = !1;
951
951
  function On() {
952
- if (Ue) {
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
955
  const i = Si(s);
@@ -964,22 +964,22 @@ function On() {
964
964
  s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
965
965
  });
966
966
  }
967
- Ue = !1, je = !1, Y.forEach((e) => e.complete(Ge)), Y.clear();
967
+ je = !1, Ue = !1, Y.forEach((e) => e.complete(Ge)), Y.clear();
968
968
  }
969
969
  function kn() {
970
970
  Y.forEach((e) => {
971
- e.readKeyframes(), e.needsMeasurement && (Ue = !0);
971
+ e.readKeyframes(), e.needsMeasurement && (je = !0);
972
972
  });
973
973
  }
974
974
  function Vi() {
975
975
  Ge = !0, kn(), On(), Ge = !1;
976
976
  }
977
- class lt {
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), je || (je = !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(kn), K.resolveKeyframes(On))) : (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 lt {
993
993
  }
994
994
  t[0] === void 0 && (t[0] = a), i && r === void 0 && i.set(t[0]);
995
995
  }
996
- mi(t);
996
+ pi(t);
997
997
  }
998
998
  setFinalKeyframe() {
999
999
  }
@@ -1014,13 +1014,13 @@ class lt {
1014
1014
  }
1015
1015
  }
1016
1016
  const xi = (e) => e.startsWith("--");
1017
- function wi(e, t, n) {
1017
+ function Mi(e, t, n) {
1018
1018
  xi(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1019
1019
  }
1020
- const Ai = /* @__PURE__ */ qe(() => window.ScrollTimeline !== void 0), Mi = {};
1020
+ const wi = /* @__PURE__ */ Ze(() => window.ScrollTimeline !== void 0), Ai = {};
1021
1021
  function Ci(e, t) {
1022
- const n = /* @__PURE__ */ qe(e);
1023
- return () => Mi[t] ?? n();
1022
+ const n = /* @__PURE__ */ Ze(e);
1023
+ return () => Ai[t] ?? n();
1024
1024
  }
1025
1025
  const Bn = /* @__PURE__ */ Ci(() => {
1026
1026
  try {
@@ -1029,7 +1029,7 @@ const Bn = /* @__PURE__ */ Ci(() => {
1029
1029
  return !1;
1030
1030
  }
1031
1031
  return !0;
1032
- }, "linearEasing"), ae = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, It = {
1032
+ }, "linearEasing"), ae = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, Nt = {
1033
1033
  linear: "linear",
1034
1034
  ease: "ease",
1035
1035
  easeIn: "ease-in",
@@ -1042,7 +1042,7 @@ const Bn = /* @__PURE__ */ Ci(() => {
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) || It.easeOut) : It[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];
1046
1046
  }
1047
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) {
1048
1048
  const l = {
@@ -1061,23 +1061,23 @@ function Di(e, t, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatTyp
1061
1061
  };
1062
1062
  return c && (h.pseudoElement = c), e.animate(l, h);
1063
1063
  }
1064
- function ut(e) {
1064
+ function ct(e) {
1065
1065
  return typeof e == "function" && "applyToOptions" in e;
1066
1066
  }
1067
1067
  function Fi({ type: e, ...t }) {
1068
- return ut(e) && Bn() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
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 at {
1070
+ class Ei 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
- this.isPseudoElement = !!r, this.allowFlatten = a, this.options = t, B(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
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
1076
  const c = Fi(t);
1077
1077
  this.animation = Di(n, s, i, c, r), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1078
1078
  if (this.finishedTime = this.time, !r) {
1079
- const l = rt(i, this.options, o, this.speed);
1080
- this.updateMotionValue ? this.updateMotionValue(l) : wi(n, s, l), this.animation.cancel();
1079
+ const l = at(i, this.options, o, this.speed);
1080
+ this.updateMotionValue ? this.updateMotionValue(l) : Mi(n, s, l), this.animation.cancel();
1081
1081
  }
1082
1082
  u?.(), this.notifyFinished();
1083
1083
  };
@@ -1156,7 +1156,7 @@ class Ei extends at {
1156
1156
  * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
1157
1157
  */
1158
1158
  attachTimeline({ timeline: t, observe: n }) {
1159
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && Ai() ? (this.animation.timeline = t, Z) : n(this);
1159
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && wi() ? (this.animation.timeline = t, Z) : n(this);
1160
1160
  }
1161
1161
  }
1162
1162
  const Nn = {
@@ -1191,15 +1191,15 @@ class Oi extends Ei {
1191
1191
  n.set(t);
1192
1192
  return;
1193
1193
  }
1194
- const o = new ot({
1194
+ const o = new lt({
1195
1195
  ...a,
1196
1196
  autoplay: !1
1197
1197
  }), u = Math.max(Re, R.now() - this.startTime), c = _(0, Re, u - Re);
1198
1198
  n.setWithVelocity(o.sample(Math.max(0, u - c)).value, o.sample(u).value, c), o.stop();
1199
1199
  }
1200
1200
  }
1201
- const Nt = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1202
- (j.test(e) || e === "0") && // And it contains numbers and/or colors
1201
+ 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
+ (U.test(e) || e === "0") && // And it contains numbers and/or colors
1203
1203
  !e.startsWith("url("));
1204
1204
  function ki(e) {
1205
1205
  const t = e[0];
@@ -1215,8 +1215,8 @@ function Bi(e, t, n, s) {
1215
1215
  return !1;
1216
1216
  if (t === "display" || t === "visibility")
1217
1217
  return !0;
1218
- const r = e[e.length - 1], a = Nt(i, t), o = Nt(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" || ut(n)) && s;
1218
+ 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
1220
  }
1221
1221
  function Ye(e) {
1222
1222
  e.duration = 0, e.type = "keyframes";
@@ -1228,7 +1228,7 @@ const Ii = /* @__PURE__ */ new Set([
1228
1228
  "transform"
1229
1229
  // TODO: Could be re-enabled now we have support for linear() easing
1230
1230
  // "background-color"
1231
- ]), Ni = /* @__PURE__ */ qe(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1231
+ ]), Ni = /* @__PURE__ */ Ze(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1232
1232
  function Ki(e) {
1233
1233
  const { motionValue: t, name: n, repeatDelay: s, repeatType: i, damping: r, type: a } = e;
1234
1234
  if (!(t?.owner?.current instanceof HTMLElement))
@@ -1241,7 +1241,7 @@ function Ki(e) {
1241
1241
  !u && !s && i !== "mirror" && r !== 0 && a !== "inertia";
1242
1242
  }
1243
1243
  const $i = 40;
1244
- class Li extends at {
1244
+ class Li extends ot {
1245
1245
  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
1246
  super(), this.stop = () => {
1247
1247
  this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
@@ -1257,23 +1257,25 @@ class Li extends at {
1257
1257
  motionValue: c,
1258
1258
  element: l,
1259
1259
  ...f
1260
- }, p = l?.KeyframeResolver || lt;
1261
- this.keyframeResolver = new p(o, (g, T, S) => this.onKeyframesResolved(g, T, h, !S), u, c, l), this.keyframeResolver?.scheduleResolve();
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();
1262
1262
  }
1263
1263
  onKeyframesResolved(t, n, s, i) {
1264
1264
  this.keyframeResolver = void 0;
1265
1265
  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?.(rt(t, s, n)), t[0] = t[t.length - 1], Ye(s), s.repeat = 0);
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
1267
  const h = {
1268
1268
  startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > $i ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1269
1269
  finalKeyframe: n,
1270
1270
  ...s,
1271
1271
  keyframes: t
1272
- }, p = !c && Ki(h) ? new Oi({
1272
+ }, m = !c && Ki(h), g = h.motionValue?.owner?.current, y = m ? new Oi({
1273
1273
  ...h,
1274
- element: h.motionValue.owner.current
1275
- }) : new ot(h);
1276
- p.finished.then(() => this.notifyFinished()).catch(Z), this.pendingTimeline && (this.stopTimeline = p.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = p;
1274
+ element: g
1275
+ }) : new lt(h);
1276
+ y.finished.then(() => {
1277
+ this.notifyFinished();
1278
+ }).catch(Z), this.pendingTimeline && (this.stopTimeline = y.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = y;
1277
1279
  }
1278
1280
  get finished() {
1279
1281
  return this._animation ? this.animation.finished : this._finished;
@@ -1369,10 +1371,10 @@ class Wi {
1369
1371
  return this.getAll("startTime");
1370
1372
  }
1371
1373
  get duration() {
1372
- return Kt(this.animations, "duration");
1374
+ return $t(this.animations, "duration");
1373
1375
  }
1374
1376
  get iterationDuration() {
1375
- return Kt(this.animations, "iterationDuration");
1377
+ return $t(this.animations, "iterationDuration");
1376
1378
  }
1377
1379
  runAll(t) {
1378
1380
  this.animations.forEach((n) => n[t]());
@@ -1390,7 +1392,7 @@ class Wi {
1390
1392
  this.runAll("complete");
1391
1393
  }
1392
1394
  }
1393
- function Kt(e, t) {
1395
+ function $t(e, t) {
1394
1396
  let n = 0;
1395
1397
  for (let s = 0; s < e.length; s++) {
1396
1398
  const i = e[s][t];
@@ -1404,12 +1406,12 @@ class _i extends Wi {
1404
1406
  });
1405
1407
  }
1406
1408
  }
1407
- const ji = (
1409
+ const Ui = (
1408
1410
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
1409
1411
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
1410
1412
  );
1411
- function Ui(e) {
1412
- const t = ji.exec(e);
1413
+ function ji(e) {
1414
+ const t = Ui.exec(e);
1413
1415
  if (!t)
1414
1416
  return [,];
1415
1417
  const [, n, s, i] = t;
@@ -1417,8 +1419,8 @@ function Ui(e) {
1417
1419
  }
1418
1420
  const Gi = 4;
1419
1421
  function Kn(e, t, n = 1) {
1420
- B(n <= Gi, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1421
- const [s, i] = Ui(e);
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);
1422
1424
  if (!s)
1423
1425
  return;
1424
1426
  const r = window.getComputedStyle(t).getPropertyValue(s);
@@ -1426,10 +1428,7 @@ function Kn(e, t, n = 1) {
1426
1428
  const a = r.trim();
1427
1429
  return en(a) ? parseFloat(a) : a;
1428
1430
  }
1429
- return et(i) ? Kn(i, t, n + 1) : i;
1430
- }
1431
- function $n(e, t) {
1432
- return e?.[t] ?? e?.default ?? e;
1431
+ return tt(i) ? Kn(i, t, n + 1) : i;
1433
1432
  }
1434
1433
  const Yi = {
1435
1434
  type: "spring",
@@ -1448,15 +1447,17 @@ const Yi = {
1448
1447
  type: "keyframes",
1449
1448
  ease: [0.25, 0.1, 0.35, 1],
1450
1449
  duration: 0.3
1451
- }, Zi = (e, { keyframes: t }) => t.length > 2 ? Xi : ee.has(e) ? e.startsWith("scale") ? zi(t[1]) : Yi : qi;
1452
- function Hi({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: a, repeatDelay: o, from: u, elapsed: c, ...l }) {
1453
- return !!Object.keys(l).length;
1454
- }
1455
- const Ji = (e) => e !== null;
1456
- function Qi(e, { repeat: t, repeatType: n = "loop" }, s) {
1457
- const i = e.filter(Ji), r = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
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;
1458
1453
  return i[r];
1459
1454
  }
1455
+ function $n(e, t) {
1456
+ return e?.[t] ?? e?.default ?? e;
1457
+ }
1458
+ function Qi({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: a, repeatDelay: o, from: u, elapsed: c, ...l }) {
1459
+ return !!Object.keys(l).length;
1460
+ }
1460
1461
  const Ln = (e, t, n, s = {}, i, r) => (a) => {
1461
1462
  const o = $n(s, e) || {}, u = o.delay || s.delay || 0;
1462
1463
  let { elapsed: c = 0 } = s;
@@ -1477,10 +1478,10 @@ const Ln = (e, t, n, s = {}, i, r) => (a) => {
1477
1478
  motionValue: t,
1478
1479
  element: r ? void 0 : i
1479
1480
  };
1480
- Hi(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);
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);
1481
1482
  let f = !1;
1482
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) {
1483
- const h = Qi(l.keyframes, o);
1484
+ const h = Ji(l.keyframes, o);
1484
1485
  if (h !== void 0) {
1485
1486
  K.update(() => {
1486
1487
  l.onUpdate(h), l.onComplete();
@@ -1488,8 +1489,30 @@ const Ln = (e, t, n, s = {}, i, r) => (a) => {
1488
1489
  return;
1489
1490
  }
1490
1491
  }
1491
- return o.isSync ? new ot(l) : new Li(l);
1492
- }, Wn = /* @__PURE__ */ new Set([
1492
+ return o.isSync ? new lt(l) : new Li(l);
1493
+ };
1494
+ function Lt(e) {
1495
+ const t = [{}, {}];
1496
+ return e?.values.forEach((n, s) => {
1497
+ t[0][s] = n.get(), t[1][s] = n.getVelocity();
1498
+ }), t;
1499
+ }
1500
+ function Wn(e, t, n, s) {
1501
+ if (typeof t == "function") {
1502
+ const [i, r] = Lt(s);
1503
+ t = t(n !== void 0 ? n : e.custom, i, r);
1504
+ }
1505
+ if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
1506
+ const [i, r] = Lt(s);
1507
+ t = t(n !== void 0 ? n : e.custom, i, r);
1508
+ }
1509
+ return t;
1510
+ }
1511
+ function er(e, t, n) {
1512
+ const s = e.getProps();
1513
+ return Wn(s, t, s.custom, e);
1514
+ }
1515
+ const _n = /* @__PURE__ */ new Set([
1493
1516
  "width",
1494
1517
  "height",
1495
1518
  "top",
@@ -1497,8 +1520,8 @@ const Ln = (e, t, n, s = {}, i, r) => (a) => {
1497
1520
  "right",
1498
1521
  "bottom",
1499
1522
  ...Q
1500
- ]), $t = 30, er = (e) => !isNaN(parseFloat(e));
1501
- class tr {
1523
+ ]), Wt = 30, tr = (e) => !isNaN(parseFloat(e));
1524
+ class nr {
1502
1525
  /**
1503
1526
  * @param init - The initiating value
1504
1527
  * @param config - Optional configuration options
@@ -1514,7 +1537,7 @@ class tr {
1514
1537
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
1515
1538
  }
1516
1539
  setCurrent(t) {
1517
- this.current = t, this.updatedAt = R.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = er(this.current));
1540
+ this.current = t, this.updatedAt = R.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = tr(this.current));
1518
1541
  }
1519
1542
  setPrevFrameValue(t = this.current) {
1520
1543
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -1643,9 +1666,9 @@ class tr {
1643
1666
  */
1644
1667
  getVelocity() {
1645
1668
  const t = R.now();
1646
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > $t)
1669
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > Wt)
1647
1670
  return 0;
1648
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, $t);
1671
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, Wt);
1649
1672
  return sn(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1650
1673
  }
1651
1674
  /**
@@ -1698,28 +1721,7 @@ class tr {
1698
1721
  }
1699
1722
  }
1700
1723
  function fe(e, t) {
1701
- return new tr(e, t);
1702
- }
1703
- function Lt(e) {
1704
- const t = [{}, {}];
1705
- return e?.values.forEach((n, s) => {
1706
- t[0][s] = n.get(), t[1][s] = n.getVelocity();
1707
- }), t;
1708
- }
1709
- function _n(e, t, n, s) {
1710
- if (typeof t == "function") {
1711
- const [i, r] = Lt(s);
1712
- t = t(n !== void 0 ? n : e.custom, i, r);
1713
- }
1714
- if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
1715
- const [i, r] = Lt(s);
1716
- t = t(n !== void 0 ? n : e.custom, i, r);
1717
- }
1718
- return t;
1719
- }
1720
- function nr(e, t, n) {
1721
- const s = e.getProps();
1722
- return _n(s, t, s.custom, e);
1724
+ return new nr(e, t);
1723
1725
  }
1724
1726
  const sr = (e) => Array.isArray(e);
1725
1727
  function ir(e, t, n) {
@@ -1729,7 +1731,7 @@ function rr(e) {
1729
1731
  return sr(e) ? e[e.length - 1] || 0 : e;
1730
1732
  }
1731
1733
  function ar(e, t) {
1732
- const n = nr(e, t);
1734
+ const n = er(e, t);
1733
1735
  let { transitionEnd: s = {}, transition: i = {}, ...r } = n || {};
1734
1736
  r = { ...r, ...s };
1735
1737
  for (const a in r) {
@@ -1737,9 +1739,9 @@ function ar(e, t) {
1737
1739
  ir(e, a, o);
1738
1740
  }
1739
1741
  }
1740
- const F = (e) => !!(e && e.getVelocity);
1742
+ const E = (e) => !!(e && e.getVelocity);
1741
1743
  function or(e) {
1742
- return !!(F(e) && e.add);
1744
+ return !!(E(e) && e.add);
1743
1745
  }
1744
1746
  function lr(e, t) {
1745
1747
  const n = e.getValue("willChange");
@@ -1750,10 +1752,10 @@ function lr(e, t) {
1750
1752
  e.addValue("willChange", s), s.add(t);
1751
1753
  }
1752
1754
  }
1753
- function ct(e) {
1755
+ function ft(e) {
1754
1756
  return e.replace(/([A-Z])/g, (t) => `-${t.toLowerCase()}`);
1755
1757
  }
1756
- const ur = "framerAppearId", cr = "data-" + ct(ur);
1758
+ const ur = "framerAppearId", cr = "data-" + ft(ur);
1757
1759
  function fr(e) {
1758
1760
  return e.props[cr];
1759
1761
  }
@@ -1763,41 +1765,44 @@ function hr({ protectedKeys: e, needsAnimating: t }, n) {
1763
1765
  }
1764
1766
  function dr(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1765
1767
  let { transition: r = e.getDefaultTransition(), transitionEnd: a, ...o } = t;
1768
+ const u = r?.reduceMotion;
1766
1769
  s && (r = s);
1767
- const u = [], c = i && e.animationState && e.animationState.getState()[i];
1768
- for (const l in o) {
1769
- const f = e.getValue(l, e.latestValues[l] ?? null), h = o[l];
1770
- if (h === void 0 || c && hr(c, l))
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))
1771
1774
  continue;
1772
- const p = {
1775
+ const g = {
1773
1776
  delay: n,
1774
- ...$n(r || {}, l)
1775
- }, g = f.get();
1776
- if (g !== void 0 && !f.isAnimating && !Array.isArray(h) && h === g && !p.velocity)
1777
+ ...$n(r || {}, f)
1778
+ }, y = h.get();
1779
+ if (y !== void 0 && !h.isAnimating && !Array.isArray(m) && m === y && !g.velocity)
1777
1780
  continue;
1778
- let T = !1;
1781
+ let v = !1;
1779
1782
  if (window.MotionHandoffAnimation) {
1780
- const v = fr(e);
1781
- if (v) {
1782
- const A = window.MotionHandoffAnimation(v, l, K);
1783
- A !== null && (p.startTime = A, T = !0);
1783
+ const V = fr(e);
1784
+ if (V) {
1785
+ const x = window.MotionHandoffAnimation(V, f, K);
1786
+ x !== null && (g.startTime = x, v = !0);
1784
1787
  }
1785
1788
  }
1786
- lr(e, l), f.start(Ln(l, f, h, e.shouldReduceMotion && Wn.has(l) ? { type: !1 } : p, e, T));
1787
- const S = f.animation;
1788
- S && u.push(S);
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);
1789
1794
  }
1790
- return a && Promise.all(u).then(() => {
1795
+ return a && Promise.all(c).then(() => {
1791
1796
  K.update(() => {
1792
1797
  a && ar(e, a);
1793
1798
  });
1794
- }), u;
1799
+ }), c;
1795
1800
  }
1796
- const mr = {
1801
+ const pr = {
1797
1802
  test: (e) => e === "auto",
1798
1803
  parse: (e) => e
1799
- }, jn = (e) => (t) => t.test(e), Un = [H, d, q, L, Ns, Is, mr], Wt = (e) => Un.find(jn(e));
1800
- function pr(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) {
1801
1806
  return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || tn(e) : !0;
1802
1807
  }
1803
1808
  const gr = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
@@ -1805,7 +1810,7 @@ function yr(e) {
1805
1810
  const [t, n] = e.slice(0, -1).split("(");
1806
1811
  if (t === "drop-shadow")
1807
1812
  return e;
1808
- const [s] = n.match(tt) || [];
1813
+ const [s] = n.match(nt) || [];
1809
1814
  if (!s)
1810
1815
  return e;
1811
1816
  const i = n.replace(s, "");
@@ -1813,12 +1818,12 @@ function yr(e) {
1813
1818
  return s !== n && (r *= 100), t + "(" + r + i + ")";
1814
1819
  }
1815
1820
  const br = /\b([a-z-]*)\(.*?\)/gu, ze = {
1816
- ...j,
1821
+ ...U,
1817
1822
  getAnimatableNone: (e) => {
1818
1823
  const t = e.match(br);
1819
1824
  return t ? t.map(yr).join(" ") : e;
1820
1825
  }
1821
- }, _t = {
1826
+ }, Ut = {
1822
1827
  ...H,
1823
1828
  transform: Math.round
1824
1829
  }, Tr = {
@@ -1843,10 +1848,10 @@ const br = /\b([a-z-]*)\(.*?\)/gu, ze = {
1843
1848
  perspective: d,
1844
1849
  transformPerspective: d,
1845
1850
  opacity: le,
1846
- originX: Ct,
1847
- originY: Ct,
1851
+ originX: Dt,
1852
+ originY: Dt,
1848
1853
  originZ: d
1849
- }, ft = {
1854
+ }, ht = {
1850
1855
  // Border props
1851
1856
  borderWidth: d,
1852
1857
  borderTopWidth: d,
@@ -1854,7 +1859,6 @@ const br = /\b([a-z-]*)\(.*?\)/gu, ze = {
1854
1859
  borderBottomWidth: d,
1855
1860
  borderLeftWidth: d,
1856
1861
  borderRadius: d,
1857
- radius: d,
1858
1862
  borderTopLeftRadius: d,
1859
1863
  borderTopRightRadius: d,
1860
1864
  borderBottomRightRadius: d,
@@ -1898,17 +1902,19 @@ const br = /\b([a-z-]*)\(.*?\)/gu, ze = {
1898
1902
  marginInline: d,
1899
1903
  marginInlineStart: d,
1900
1904
  marginInlineEnd: d,
1905
+ // Typography
1906
+ fontSize: d,
1901
1907
  // Misc
1902
1908
  backgroundPositionX: d,
1903
1909
  backgroundPositionY: d,
1904
1910
  ...Tr,
1905
- zIndex: _t,
1911
+ zIndex: Ut,
1906
1912
  // SVG
1907
1913
  fillOpacity: le,
1908
1914
  strokeOpacity: le,
1909
- numOctaves: _t
1915
+ numOctaves: Ut
1910
1916
  }, vr = {
1911
- ...ft,
1917
+ ...ht,
1912
1918
  // Color props
1913
1919
  color: D,
1914
1920
  backgroundColor: D,
@@ -1926,7 +1932,7 @@ const br = /\b([a-z-]*)\(.*?\)/gu, ze = {
1926
1932
  }, Gn = (e) => vr[e];
1927
1933
  function Yn(e, t) {
1928
1934
  let n = Gn(e);
1929
- return n !== ze && (n = j), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1935
+ return n !== ze && (n = U), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1930
1936
  }
1931
1937
  const Sr = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1932
1938
  function Vr(e, t, n) {
@@ -1939,7 +1945,7 @@ function Vr(e, t, n) {
1939
1945
  for (const r of t)
1940
1946
  e[r] = Yn(n, i);
1941
1947
  }
1942
- class xr extends lt {
1948
+ class xr extends ut {
1943
1949
  constructor(t, n, s, i, r) {
1944
1950
  super(t, n, s, i, r, !0);
1945
1951
  }
@@ -1950,20 +1956,20 @@ class xr extends lt {
1950
1956
  super.readKeyframes();
1951
1957
  for (let l = 0; l < t.length; l++) {
1952
1958
  let f = t[l];
1953
- if (typeof f == "string" && (f = f.trim(), et(f))) {
1959
+ if (typeof f == "string" && (f = f.trim(), tt(f))) {
1954
1960
  const h = Kn(f, n.current);
1955
1961
  h !== void 0 && (t[l] = h), l === t.length - 1 && (this.finalKeyframe = f);
1956
1962
  }
1957
1963
  }
1958
- if (this.resolveNoneKeyframes(), !Wn.has(s) || t.length !== 2)
1964
+ if (this.resolveNoneKeyframes(), !_n.has(s) || t.length !== 2)
1959
1965
  return;
1960
- const [i, r] = t, a = Wt(i), o = Wt(r), u = Mt(i), c = Mt(r);
1966
+ const [i, r] = t, a = _t(i), o = _t(r), u = Ct(i), c = Ct(r);
1961
1967
  if (u !== c && W[s]) {
1962
1968
  this.needsMeasurement = !0;
1963
1969
  return;
1964
1970
  }
1965
1971
  if (a !== o)
1966
- if (Bt(a) && Bt(o))
1972
+ if (It(a) && It(o))
1967
1973
  for (let l = 0; l < t.length; l++) {
1968
1974
  const f = t[l];
1969
1975
  typeof f == "string" && (t[l] = parseFloat(f));
@@ -1973,7 +1979,7 @@ class xr extends lt {
1973
1979
  resolveNoneKeyframes() {
1974
1980
  const { unresolvedKeyframes: t, name: n } = this, s = [];
1975
1981
  for (let i = 0; i < t.length; i++)
1976
- (t[i] === null || pr(t[i])) && s.push(i);
1982
+ (t[i] === null || mr(t[i])) && s.push(i);
1977
1983
  s.length && Vr(t, s, n);
1978
1984
  }
1979
1985
  measureInitialState() {
@@ -1996,24 +2002,27 @@ class xr extends lt {
1996
2002
  }), this.resolveNoneKeyframes();
1997
2003
  }
1998
2004
  }
1999
- function wr(e, t, n) {
2005
+ function Mr(e, t, n) {
2006
+ if (e == null)
2007
+ return [];
2000
2008
  if (e instanceof EventTarget)
2001
2009
  return [e];
2002
2010
  if (typeof e == "string") {
2003
2011
  let s = document;
2012
+ t && (s = t.current);
2004
2013
  const i = n?.[e] ?? s.querySelectorAll(e);
2005
2014
  return i ? Array.from(i) : [];
2006
2015
  }
2007
- return Array.from(e);
2016
+ return Array.from(e).filter((s) => s != null);
2008
2017
  }
2009
- const zn = (e, t) => t && typeof e == "number" ? t.transform(e) : e, { schedule: Ar } = /* @__PURE__ */ yn(queueMicrotask, !1);
2018
+ const zn = (e, t) => t && typeof e == "number" ? t.transform(e) : e, { schedule: wr } = /* @__PURE__ */ yn(queueMicrotask, !1);
2010
2019
  function Xn(e) {
2011
2020
  return ys(e) && "ownerSVGElement" in e;
2012
2021
  }
2013
- function Mr(e) {
2022
+ function Ar(e) {
2014
2023
  return Xn(e) && e.tagName === "svg";
2015
2024
  }
2016
- const Cr = [...Un, D, j], Dr = (e) => Cr.find(jn(e)), jt = () => ({ min: 0, max: 0 }), ht = () => ({
2025
+ const Cr = [...jn, D, U], Dr = (e) => Cr.find(Un(e)), jt = () => ({ min: 0, max: 0 }), dt = () => ({
2017
2026
  x: jt(),
2018
2027
  y: jt()
2019
2028
  }), Xe = { current: null }, qn = { current: !1 }, Fr = typeof window < "u";
@@ -2050,9 +2059,9 @@ function Br(e) {
2050
2059
  function Ir(e, t, n) {
2051
2060
  for (const s in t) {
2052
2061
  const i = t[s], r = n[s];
2053
- if (F(i))
2062
+ if (E(i))
2054
2063
  e.addValue(s, i);
2055
- else if (F(r))
2064
+ else if (E(r))
2056
2065
  e.addValue(s, fe(i, { owner: e }));
2057
2066
  else if (r !== i)
2058
2067
  if (e.hasValue(s)) {
@@ -2067,7 +2076,7 @@ function Ir(e, t, n) {
2067
2076
  t[s] === void 0 && e.removeValue(s);
2068
2077
  return t;
2069
2078
  }
2070
- const Ut = [
2079
+ const Gt = [
2071
2080
  "AnimationStart",
2072
2081
  "AnimationComplete",
2073
2082
  "Update",
@@ -2076,7 +2085,7 @@ const Ut = [
2076
2085
  "LayoutAnimationStart",
2077
2086
  "LayoutAnimationComplete"
2078
2087
  ];
2079
- let Gt = {};
2088
+ let Yt = {};
2080
2089
  class Hn {
2081
2090
  /**
2082
2091
  * This method takes React props and returns found MotionValues. For example, HTML
@@ -2089,7 +2098,7 @@ class Hn {
2089
2098
  return {};
2090
2099
  }
2091
2100
  constructor({ parent: t, props: n, presenceContext: s, reducedMotionConfig: i, blockInitialAnimation: r, visualState: a }, o = {}) {
2092
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = lt, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
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 = () => {
2093
2102
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
2094
2103
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
2095
2104
  const h = R.now();
@@ -2099,8 +2108,8 @@ class Hn {
2099
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);
2100
2109
  const { willChange: l, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
2101
2110
  for (const h in f) {
2102
- const p = f[h];
2103
- u[h] !== void 0 && F(p) && p.set(u[h]);
2111
+ const m = f[h];
2112
+ u[h] !== void 0 && E(m) && m.set(u[h]);
2104
2113
  }
2105
2114
  }
2106
2115
  mount(t) {
@@ -2139,8 +2148,8 @@ class Hn {
2139
2148
  }
2140
2149
  updateFeatures() {
2141
2150
  let t = "animation";
2142
- for (t in Gt) {
2143
- const n = Gt[t];
2151
+ for (t in Yt) {
2152
+ const n = Yt[t];
2144
2153
  if (!n)
2145
2154
  continue;
2146
2155
  const { isEnabled: s, Feature: i } = n;
@@ -2159,7 +2168,7 @@ class Hn {
2159
2168
  * removed with a re-render to work.
2160
2169
  */
2161
2170
  measureViewportBox() {
2162
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : ht();
2171
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : dt();
2163
2172
  }
2164
2173
  getStaticValue(t) {
2165
2174
  return this.latestValues[t];
@@ -2173,8 +2182,8 @@ class Hn {
2173
2182
  */
2174
2183
  update(t, n) {
2175
2184
  (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
2176
- for (let s = 0; s < Ut.length; s++) {
2177
- const i = Ut[s];
2185
+ for (let s = 0; s < Gt.length; s++) {
2186
+ const i = Gt[s];
2178
2187
  this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), delete this.propEventSubscriptions[i]);
2179
2188
  const r = "on" + i, a = t[r];
2180
2189
  a && (this.propEventSubscriptions[i] = this.on(i, a));
@@ -2244,7 +2253,7 @@ class Hn {
2244
2253
  */
2245
2254
  readValue(t, n) {
2246
2255
  let s = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
2247
- return s != null && (typeof s == "string" && (en(s) || tn(s)) ? s = parseFloat(s) : !Dr(s) && j.test(n) && (s = Yn(t, n)), this.setBaseTarget(t, F(s) ? s.get() : s)), F(s) ? s.get() : s;
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;
2248
2257
  }
2249
2258
  /**
2250
2259
  * Set the base target to later animate back to. This is currently
@@ -2261,13 +2270,13 @@ class Hn {
2261
2270
  const { initial: n } = this.props;
2262
2271
  let s;
2263
2272
  if (typeof n == "string" || typeof n == "object") {
2264
- const r = _n(this.props, n, this.presenceContext?.custom);
2273
+ const r = Wn(this.props, n, this.presenceContext?.custom);
2265
2274
  r && (s = r[t]);
2266
2275
  }
2267
2276
  if (n && s !== void 0)
2268
2277
  return s;
2269
2278
  const i = this.getBaseTargetFromProps(this.props, t);
2270
- return i !== void 0 && !F(i) ? i : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
2279
+ return i !== void 0 && !E(i) ? i : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
2271
2280
  }
2272
2281
  on(t, n) {
2273
2282
  return this.events[t] || (this.events[t] = new nn()), this.events[t].add(n);
@@ -2276,7 +2285,7 @@ class Hn {
2276
2285
  this.events[t] && this.events[t].notify(...n);
2277
2286
  }
2278
2287
  scheduleRenderMicrotask() {
2279
- Ar.render(this.render);
2288
+ wr.render(this.render);
2280
2289
  }
2281
2290
  }
2282
2291
  class Jn extends Hn {
@@ -2296,7 +2305,7 @@ class Jn extends Hn {
2296
2305
  handleChildMotionValue() {
2297
2306
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
2298
2307
  const { children: t } = this.props;
2299
- F(t) && (this.childSubscription = t.on("change", (n) => {
2308
+ E(t) && (this.childSubscription = t.on("change", (n) => {
2300
2309
  this.current && (this.current.textContent = `${n}`);
2301
2310
  }));
2302
2311
  }
@@ -2334,8 +2343,14 @@ function _r(e, t, n) {
2334
2343
  if (o === void 0)
2335
2344
  continue;
2336
2345
  let u = !0;
2337
- if (typeof o == "number" ? u = o === (a.startsWith("scale") ? 1 : 0) : u = parseFloat(o) === 0, !u || n) {
2338
- const c = zn(o, ft[a]);
2346
+ if (typeof o == "number")
2347
+ u = o === (a.startsWith("scale") ? 1 : 0);
2348
+ else {
2349
+ const c = parseFloat(o);
2350
+ u = a.startsWith("scale") ? c === 1 : c === 0;
2351
+ }
2352
+ if (!u || n) {
2353
+ const c = zn(o, ht[a]);
2339
2354
  if (!u) {
2340
2355
  i = !1;
2341
2356
  const l = Lr[a] || a;
@@ -2358,7 +2373,7 @@ function Qn(e, t, n) {
2358
2373
  i[u] = c;
2359
2374
  continue;
2360
2375
  } else {
2361
- const l = zn(c, ft[u]);
2376
+ const l = zn(c, ht[u]);
2362
2377
  u.startsWith("origin") ? (o = !0, r[u] = l) : s[u] = l;
2363
2378
  }
2364
2379
  }
@@ -2376,7 +2391,7 @@ function es(e, { style: t, vars: n }, s, i) {
2376
2391
  for (a in n)
2377
2392
  r.setProperty(a, n[a]);
2378
2393
  }
2379
- function Yt(e, t) {
2394
+ function zt(e, t) {
2380
2395
  return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
2381
2396
  }
2382
2397
  const re = {
@@ -2388,20 +2403,20 @@ const re = {
2388
2403
  e = parseFloat(e);
2389
2404
  else
2390
2405
  return e;
2391
- const n = Yt(e, t.target.x), s = Yt(e, t.target.y);
2406
+ const n = zt(e, t.target.x), s = zt(e, t.target.y);
2392
2407
  return `${n}% ${s}%`;
2393
2408
  }
2394
- }, jr = {
2409
+ }, Ur = {
2395
2410
  correct: (e, { treeScale: t, projectionDelta: n }) => {
2396
- const s = e, i = j.parse(e);
2411
+ const s = e, i = U.parse(e);
2397
2412
  if (i.length > 5)
2398
2413
  return s;
2399
- const r = j.createTransformer(e), a = typeof i[0] != "number" ? 1 : 0, o = n.x.scale * t.x, u = n.y.scale * t.y;
2414
+ const r = U.createTransformer(e), a = typeof i[0] != "number" ? 1 : 0, o = n.x.scale * t.x, u = n.y.scale * t.y;
2400
2415
  i[0 + a] /= o, i[1 + a] /= u;
2401
2416
  const c = J(o, u, 0.5);
2402
2417
  return typeof i[2 + a] == "number" && (i[2 + a] /= c), typeof i[3 + a] == "number" && (i[3 + a] /= c), r(i);
2403
2418
  }
2404
- }, Ur = {
2419
+ }, jr = {
2405
2420
  borderRadius: {
2406
2421
  ...re,
2407
2422
  applyTo: [
@@ -2415,17 +2430,17 @@ const re = {
2415
2430
  borderTopRightRadius: re,
2416
2431
  borderBottomLeftRadius: re,
2417
2432
  borderBottomRightRadius: re,
2418
- boxShadow: jr
2433
+ boxShadow: Ur
2419
2434
  };
2420
2435
  function Gr(e, { layout: t, layoutId: n }) {
2421
- return ee.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Ur[e] || e === "opacity");
2436
+ return ee.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!jr[e] || e === "opacity");
2422
2437
  }
2423
2438
  function ts(e, t, n) {
2424
2439
  const s = e.style, i = t?.style, r = {};
2425
2440
  if (!s)
2426
2441
  return r;
2427
2442
  for (const a in s)
2428
- (F(s[a]) || i && F(i[a]) || Gr(a, e) || n?.getValue(a)?.liveStyle !== void 0) && (r[a] = s[a]);
2443
+ (E(s[a]) || i && E(i[a]) || Gr(a, e) || n?.getValue(a)?.liveStyle !== void 0) && (r[a] = s[a]);
2429
2444
  return r;
2430
2445
  }
2431
2446
  function Yr(e) {
@@ -2453,27 +2468,57 @@ class zr extends Jn {
2453
2468
  return ts(t, n, s);
2454
2469
  }
2455
2470
  }
2456
- const Xr = {
2471
+ function Xr(e, t) {
2472
+ return e in t;
2473
+ }
2474
+ class qr extends Hn {
2475
+ constructor() {
2476
+ super(...arguments), this.type = "object";
2477
+ }
2478
+ readValueFromInstance(t, n) {
2479
+ if (Xr(n, t)) {
2480
+ const s = t[n];
2481
+ if (typeof s == "string" || typeof s == "number")
2482
+ return s;
2483
+ }
2484
+ }
2485
+ getBaseTargetFromProps() {
2486
+ }
2487
+ removeValueFromRenderState(t, n) {
2488
+ delete n.output[t];
2489
+ }
2490
+ measureInstanceViewportBox() {
2491
+ return dt();
2492
+ }
2493
+ build(t, n) {
2494
+ Object.assign(t.output, n);
2495
+ }
2496
+ renderInstance(t, { output: n }) {
2497
+ Object.assign(t, n);
2498
+ }
2499
+ sortInstanceNodePosition() {
2500
+ return 0;
2501
+ }
2502
+ }
2503
+ const Zr = {
2457
2504
  offset: "stroke-dashoffset",
2458
2505
  array: "stroke-dasharray"
2459
- }, qr = {
2506
+ }, Hr = {
2460
2507
  offset: "strokeDashoffset",
2461
2508
  array: "strokeDasharray"
2462
2509
  };
2463
- function Zr(e, t, n = 1, s = 0, i = !0) {
2510
+ function Jr(e, t, n = 1, s = 0, i = !0) {
2464
2511
  e.pathLength = 1;
2465
- const r = i ? Xr : qr;
2466
- e[r.offset] = d.transform(-s);
2467
- const a = d.transform(t), o = d.transform(n);
2468
- e[r.array] = `${a} ${o}`;
2512
+ const r = i ? Zr : Hr;
2513
+ e[r.offset] = `${-s}`, e[r.array] = `${t} ${n}`;
2469
2514
  }
2470
- const Hr = [
2515
+ const Qr = [
2471
2516
  "offsetDistance",
2472
2517
  "offsetPath",
2473
2518
  "offsetRotate",
2474
2519
  "offsetAnchor"
2475
2520
  ];
2476
- function Jr(e, {
2521
+ function ea(e, {
2477
2522
  attrX: t,
2478
2523
  attrY: n,
2479
2524
  attrScale: s,
@@ -2490,9 +2535,9 @@ function Jr(e, {
2490
2535
  e.attrs = e.style, e.style = {};
2491
2536
  const { attrs: f, style: h } = e;
2492
2537
  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);
2493
- for (const p of Hr)
2494
- f[p] !== void 0 && (h[p] = f[p], delete f[p]);
2495
- t !== void 0 && (f.x = t), n !== void 0 && (f.y = n), s !== void 0 && (f.scale = s), i !== void 0 && Zr(f, i, r, a, !1);
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);
2496
2541
  }
2497
2542
  const ns = /* @__PURE__ */ new Set([
2498
2543
  "baseFrequency",
@@ -2518,24 +2563,24 @@ const ns = /* @__PURE__ */ new Set([
2518
2563
  "startOffset",
2519
2564
  "textLength",
2520
2565
  "lengthAdjust"
2521
- ]), Qr = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2522
- function ea(e, t, n, s) {
2566
+ ]), ta = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2567
+ function na(e, t, n, s) {
2523
2568
  es(e, t, void 0, s);
2524
2569
  for (const i in t.attrs)
2525
- e.setAttribute(ns.has(i) ? i : ct(i), t.attrs[i]);
2570
+ e.setAttribute(ns.has(i) ? i : ft(i), t.attrs[i]);
2526
2571
  }
2527
- function ta(e, t, n) {
2572
+ function sa(e, t, n) {
2528
2573
  const s = ts(e, t, n);
2529
2574
  for (const i in e)
2530
- if (F(e[i]) || F(t[i])) {
2575
+ if (E(e[i]) || E(t[i])) {
2531
2576
  const r = Q.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2532
2577
  s[r] = e[i];
2533
2578
  }
2534
2579
  return s;
2535
2580
  }
2536
- class na extends Jn {
2581
+ class ia extends Jn {
2537
2582
  constructor() {
2538
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = ht;
2583
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = dt;
2539
2584
  }
2540
2585
  getBaseTargetFromProps(t, n) {
2541
2586
  return t[n];
@@ -2545,73 +2590,41 @@ class na extends Jn {
2545
2590
  const s = Gn(n);
2546
2591
  return s && s.default || 0;
2547
2592
  }
2548
- return n = ns.has(n) ? n : ct(n), t.getAttribute(n);
2593
+ return n = ns.has(n) ? n : ft(n), t.getAttribute(n);
2549
2594
  }
2550
2595
  scrapeMotionValuesFromProps(t, n, s) {
2551
- return ta(t, n, s);
2596
+ return sa(t, n, s);
2552
2597
  }
2553
2598
  build(t, n, s) {
2554
- Jr(t, n, this.isSVGTag, s.transformTemplate, s.style);
2599
+ ea(t, n, this.isSVGTag, s.transformTemplate, s.style);
2555
2600
  }
2556
2601
  renderInstance(t, n, s, i) {
2557
- ea(t, n, s, i);
2602
+ na(t, n, s, i);
2558
2603
  }
2559
2604
  mount(t) {
2560
- this.isSVGTag = Qr(t.tagName), super.mount(t);
2561
- }
2562
- }
2563
- function sa(e, t) {
2564
- return e in t;
2565
- }
2566
- class ia extends Hn {
2567
- constructor() {
2568
- super(...arguments), this.type = "object";
2569
- }
2570
- readValueFromInstance(t, n) {
2571
- if (sa(n, t)) {
2572
- const s = t[n];
2573
- if (typeof s == "string" || typeof s == "number")
2574
- return s;
2575
- }
2576
- }
2577
- getBaseTargetFromProps() {
2578
- }
2579
- removeValueFromRenderState(t, n) {
2580
- delete n.output[t];
2581
- }
2582
- measureInstanceViewportBox() {
2583
- return ht();
2584
- }
2585
- build(t, n) {
2586
- Object.assign(t.output, n);
2587
- }
2588
- renderInstance(t, { output: n }) {
2589
- Object.assign(t, n);
2590
- }
2591
- sortInstanceNodePosition() {
2592
- return 0;
2605
+ this.isSVGTag = ta(t.tagName), super.mount(t);
2593
2606
  }
2594
2607
  }
2595
2608
  function ra(e, t, n) {
2596
- const s = F(e) ? e : fe(e);
2609
+ const s = E(e) ? e : fe(e);
2597
2610
  return s.start(Ln("", s, t, n)), s.animation;
2598
2611
  }
2599
- function dt(e) {
2612
+ function pt(e) {
2600
2613
  return typeof e == "object" && !Array.isArray(e);
2601
2614
  }
2602
2615
  function ss(e, t, n, s) {
2603
- return typeof e == "string" && dt(t) ? wr(e, n, s) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e : [e];
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];
2604
2617
  }
2605
2618
  function aa(e, t, n) {
2606
2619
  return e * (t + 1);
2607
2620
  }
2608
- function zt(e, t, n, s) {
2621
+ function Xt(e, t, n, s) {
2609
2622
  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;
2610
2623
  }
2611
2624
  function oa(e, t, n) {
2612
2625
  for (let s = 0; s < e.length; s++) {
2613
2626
  const i = e[s];
2614
- i.at > t && i.at < n && (Qt(e, i), s--);
2627
+ i.at > t && i.at < n && (qe(e, i), s--);
2615
2628
  }
2616
2629
  }
2617
2630
  function la(e, t, n, s, i, r) {
@@ -2620,7 +2633,7 @@ function la(e, t, n, s, i, r) {
2620
2633
  e.push({
2621
2634
  value: t[a],
2622
2635
  at: J(i, r, s[a]),
2623
- easing: pn(n, a)
2636
+ easing: mn(n, a)
2624
2637
  });
2625
2638
  }
2626
2639
  function ua(e, t) {
@@ -2634,100 +2647,105 @@ const fa = "easeInOut", ha = 20;
2634
2647
  function da(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
2635
2648
  const r = t.duration || 0.3, a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), u = {}, c = /* @__PURE__ */ new Map();
2636
2649
  let l = 0, f = 0, h = 0;
2637
- for (let p = 0; p < e.length; p++) {
2638
- const g = e[p];
2650
+ for (let m = 0; m < e.length; m++) {
2651
+ const g = e[m];
2639
2652
  if (typeof g == "string") {
2640
2653
  c.set(g, f);
2641
2654
  continue;
2642
2655
  } else if (!Array.isArray(g)) {
2643
- c.set(g.name, zt(f, g.at, l, c));
2656
+ c.set(g.name, Xt(f, g.at, l, c));
2644
2657
  continue;
2645
2658
  }
2646
- let [T, S, v = {}] = g;
2647
- v.at !== void 0 && (f = zt(f, v.at, l, c));
2648
- let A = 0;
2649
- const V = (x, m, y, M = 0, b = 0) => {
2650
- const w = ma(x), { delay: E = 0, times: O = Rn(w), type: we = "keyframes", repeat: te, repeatType: Ca, repeatDelay: Da = 0, ...rs } = m;
2651
- let { ease: $ = t.ease || "easeOut", duration: I } = m;
2652
- const mt = typeof E == "function" ? E(M, b) : E, pt = w.length, gt = ut(we) ? we : i?.[we || "keyframes"];
2653
- if (pt <= 2 && gt) {
2659
+ let [y, v, S = {}] = g;
2660
+ S.at !== void 0 && (f = Xt(f, S.at, l, c));
2661
+ 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"];
2666
+ if (gt <= 2 && yt) {
2654
2667
  let ne = 100;
2655
- if (pt === 2 && ya(w)) {
2656
- const se = w[1] - w[0];
2668
+ if (gt === 2 && ya(M)) {
2669
+ const se = M[1] - M[0];
2657
2670
  ne = Math.abs(se);
2658
2671
  }
2659
- const ge = { ...rs };
2660
- I !== void 0 && (ge.duration = /* @__PURE__ */ k(I));
2661
- const ye = Dn(ge, ne, gt);
2662
- $ = ye.ease, I = ye.duration;
2672
+ const ge = {
2673
+ ...t,
2674
+ ...rs
2675
+ };
2676
+ B !== void 0 && (ge.duration = /* @__PURE__ */ k(B));
2677
+ const ye = Dn(ge, ne, yt);
2678
+ $ = ye.ease, B = ye.duration;
2663
2679
  }
2664
- I ?? (I = r);
2665
- const yt = f + mt;
2680
+ B ?? (B = r);
2681
+ const bt = f + mt;
2666
2682
  O.length === 1 && O[0] === 0 && (O[1] = 1);
2667
- const bt = O.length - w.length;
2668
- if (bt > 0 && En(O, bt), w.length === 1 && w.unshift(null), te) {
2669
- B(te < ha, "Repeat count too high, must be less than 20", "repeat-count-high"), I = aa(I, te);
2670
- const ne = [...w], ge = [...O];
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];
2671
2687
  $ = Array.isArray($) ? [...$] : [$];
2672
2688
  const ye = [...$];
2673
2689
  for (let se = 0; se < te; se++) {
2674
- w.push(...ne);
2690
+ M.push(...ne);
2675
2691
  for (let ie = 0; ie < ne.length; ie++)
2676
- O.push(ge[ie] + (se + 1)), $.push(ie === 0 ? "linear" : pn(ye, ie - 1));
2692
+ O.push(ge[ie] + (se + 1)), $.push(ie === 0 ? "linear" : mn(ye, ie - 1));
2677
2693
  }
2678
2694
  ua(O, te);
2679
2695
  }
2680
- const Tt = yt + I;
2681
- la(y, w, $, O, yt, Tt), A = Math.max(mt + I, A), h = Math.max(Tt, h);
2696
+ const vt = bt + B;
2697
+ la(b, M, $, O, bt, vt), w = Math.max(mt + B, w), h = Math.max(vt, h);
2682
2698
  };
2683
- if (F(T)) {
2684
- const x = Xt(T, o);
2685
- V(S, v, qt("default", x));
2699
+ if (E(y)) {
2700
+ const x = qt(y, o);
2701
+ V(v, S, Zt("default", x));
2686
2702
  } else {
2687
- const x = ss(T, S, s, u), m = x.length;
2688
- for (let y = 0; y < m; y++) {
2689
- S = S, v = v;
2690
- const M = x[y], b = Xt(M, o);
2691
- for (const w in S)
2692
- V(S[w], pa(v, w), qt(w, b), y, m);
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);
2693
2709
  }
2694
2710
  }
2695
- l = f, f += A;
2696
- }
2697
- return o.forEach((p, g) => {
2698
- for (const T in p) {
2699
- const S = p[T];
2700
- S.sort(ca);
2701
- const v = [], A = [], V = [];
2702
- for (let m = 0; m < S.length; m++) {
2703
- const { at: y, value: M, easing: b } = S[m];
2704
- v.push(M), A.push(/* @__PURE__ */ He(0, h, y)), V.push(b || "easeOut");
2711
+ l = f, f += w;
2712
+ }
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");
2705
2721
  }
2706
- A[0] !== 0 && (A.unshift(0), v.unshift(v[0]), V.unshift(fa)), A[A.length - 1] !== 1 && (A.push(1), v.push(null)), a.has(g) || a.set(g, {
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, {
2707
2723
  keyframes: {},
2708
2724
  transition: {}
2709
2725
  });
2710
2726
  const x = a.get(g);
2711
- x.keyframes[T] = v, x.transition[T] = {
2712
- ...t,
2727
+ x.keyframes[y] = S;
2728
+ const { type: p, ...b } = t;
2729
+ x.transition[y] = {
2730
+ ...b,
2713
2731
  duration: h,
2714
2732
  ease: V,
2715
- times: A,
2733
+ times: w,
2716
2734
  ...n
2717
2735
  };
2718
2736
  }
2719
2737
  }), a;
2720
2738
  }
2721
- function Xt(e, t) {
2739
+ function qt(e, t) {
2722
2740
  return !t.has(e) && t.set(e, {}), t.get(e);
2723
2741
  }
2724
- function qt(e, t) {
2742
+ function Zt(e, t) {
2725
2743
  return t[e] || (t[e] = []), t[e];
2726
2744
  }
2727
- function ma(e) {
2745
+ function pa(e) {
2728
2746
  return Array.isArray(e) ? e : [e];
2729
2747
  }
2730
- function pa(e, t) {
2748
+ function ma(e, t) {
2731
2749
  return e && e[t] ? {
2732
2750
  ...e,
2733
2751
  ...e[t]
@@ -2748,7 +2766,7 @@ function ba(e) {
2748
2766
  },
2749
2767
  latestValues: {}
2750
2768
  }
2751
- }, n = Xn(e) && !Mr(e) ? new na(t) : new zr(t);
2769
+ }, n = Xn(e) && !Ar(e) ? new ia(t) : new zr(t);
2752
2770
  n.mount(e), he.set(e, n);
2753
2771
  }
2754
2772
  function Ta(e) {
@@ -2761,23 +2779,23 @@ function Ta(e) {
2761
2779
  },
2762
2780
  latestValues: {}
2763
2781
  }
2764
- }, n = new ia(t);
2782
+ }, n = new qr(t);
2765
2783
  n.mount(e), he.set(e, n);
2766
2784
  }
2767
2785
  function va(e, t) {
2768
- return F(e) || typeof e == "number" || typeof e == "string" && !dt(t);
2786
+ return E(e) || typeof e == "number" || typeof e == "string" && !pt(t);
2769
2787
  }
2770
2788
  function is(e, t, n, s) {
2771
2789
  const i = [];
2772
2790
  if (va(e, t))
2773
- i.push(ra(e, dt(t) && t.default || t, n && (n.default || n)));
2791
+ i.push(ra(e, pt(t) && t.default || t, n && (n.default || n)));
2774
2792
  else {
2793
+ if (e == null)
2794
+ return i;
2775
2795
  const r = ss(e, t, s), a = r.length;
2776
- B(!!a, "No valid elements provided.", "no-valid-elements");
2796
+ I(!!a, "No valid elements provided.", "no-valid-elements");
2777
2797
  for (let o = 0; o < a; o++) {
2778
- const u = r[o];
2779
- B(u !== null, "You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.", "animate-null");
2780
- const c = u instanceof Element ? ba : Ta;
2798
+ const u = r[o], c = u instanceof Element ? ba : Ta;
2781
2799
  he.has(u) || c(u);
2782
2800
  const l = he.get(u), f = { ...n };
2783
2801
  "delay" in f && typeof f.delay == "function" && (f.delay = f.delay(o, a)), i.push(...dr(l, { ...t, transition: f }, {}));
@@ -2794,27 +2812,30 @@ function Sa(e, t, n) {
2794
2812
  function Va(e) {
2795
2813
  return Array.isArray(e) && e.some(Array.isArray);
2796
2814
  }
2797
- function xa(e) {
2798
- function t(n, s, i) {
2799
- let r = [], a;
2800
- if (Va(n))
2801
- r = Sa(n, s, e);
2815
+ function xa(e = {}) {
2816
+ const { scope: t, reduceMotion: n } = e;
2817
+ function s(i, r, a) {
2818
+ let o = [], u;
2819
+ if (Va(i))
2820
+ o = Sa(i, n !== void 0 ? { reduceMotion: n, ...r } : r, t);
2802
2821
  else {
2803
- const { onComplete: u, ...c } = i || {};
2804
- typeof u == "function" && (a = u), r = is(n, s, c, e);
2822
+ const { onComplete: l, ...f } = a || {};
2823
+ typeof l == "function" && (u = l), o = is(i, r, n !== void 0 ? { reduceMotion: n, ...f } : f, t);
2805
2824
  }
2806
- const o = new _i(r);
2807
- return a && o.finished.then(a), o;
2825
+ const c = new _i(o);
2826
+ return u && c.finished.then(u), t && (t.animations.push(c), c.finished.then(() => {
2827
+ qe(t.animations, c);
2828
+ })), c;
2808
2829
  }
2809
- return t;
2830
+ return s;
2810
2831
  }
2811
- const wa = xa(), Pe = "";
2812
- function Aa(e, t = !0) {
2813
- const [n, s] = Ae(0), [i, r] = Ae(0), [a, o] = Ae(e);
2814
- return a !== e && (o(e), r(e.startsWith(a) ? n : 0)), Jt(() => {
2832
+ const Ma = xa(), Pe = "";
2833
+ function wa(e, t = !0) {
2834
+ const [n, s] = we(0), [i, r] = we(0), [a, o] = we(e);
2835
+ return a !== e && (o(e), r(e.startsWith(a) ? n : 0)), Qt(() => {
2815
2836
  if (!t)
2816
2837
  return;
2817
- const u = wa(
2838
+ const u = Ma(
2818
2839
  // The starting value for the animation (current cursor position).
2819
2840
  i,
2820
2841
  // The target value: total number of characters.
@@ -2836,10 +2857,10 @@ function Aa(e, t = !0) {
2836
2857
  return () => u.stop();
2837
2858
  }, [i, e, t]), t ? e.split(Pe).slice(0, n).join(Pe) : e;
2838
2859
  }
2839
- const Zt = {
2860
+ const Ht = {
2840
2861
  MODEL: "Model",
2841
2862
  USAGE: "Session usage"
2842
- }, Ma = Ht("max-w-[99cqw]", "mt-3"), Na = fs.memo(
2863
+ }, Aa = Jt("max-w-[99cqw]", "mt-3"), Na = fs.memo(
2843
2864
  ({
2844
2865
  content: e,
2845
2866
  annotations: t,
@@ -2848,7 +2869,7 @@ const Zt = {
2848
2869
  messageIndex: i,
2849
2870
  messages: r
2850
2871
  }) => {
2851
- const a = Aa(e, n), {
2872
+ const a = wa(e, n), {
2852
2873
  state: {
2853
2874
  streaming: o,
2854
2875
  restoredModel: u,
@@ -2856,47 +2877,47 @@ const Zt = {
2856
2877
  tokenUsage: l,
2857
2878
  lastStreamingTimestamp: f
2858
2879
  }
2859
- } = Vt(ds), {
2880
+ } = xt(ds), {
2860
2881
  state: { fullScreen: h }
2861
- } = Vt(ms), p = t?.model || u, g = l, [T, S] = hs(), { user: v, getAccessToken: A } = as(), { data: V } = os({
2862
- user: v?.username,
2863
- getAccessToken: A
2864
- }), x = V?.showDetails || !1, m = Ht({
2882
+ } = xt(ps), m = t?.model || u, g = l, [y, v] = hs(), { user: S, getAccessToken: w } = as(), { data: V } = os({
2883
+ user: S?.username,
2884
+ getAccessToken: w
2885
+ }), x = V?.showDetails || !1, p = Jt({
2865
2886
  "max-w-xs sm:max-w-3xl": !h
2866
- }), y = [];
2887
+ }), b = [];
2867
2888
  if (x) {
2868
- if (p && (s ? y.push({
2869
- key: Zt.MODEL,
2870
- value: p
2871
- }) : y.push(Me)), g)
2889
+ if (m && (s ? b.push({
2890
+ key: Ht.MODEL,
2891
+ value: m
2892
+ }) : b.push(Ae)), g)
2872
2893
  if (s) {
2873
- const M = g === -1 ? "N/A" : `${ls.format(g)} ${us(
2894
+ const A = g === -1 ? "N/A" : `${ls.format(g)} ${us(
2874
2895
  "token",
2875
2896
  g
2876
2897
  )}`;
2877
- y.push({
2878
- key: Zt.USAGE,
2879
- value: M
2898
+ b.push({
2899
+ key: Ht.USAGE,
2900
+ value: A
2880
2901
  });
2881
2902
  } else
2882
- y.push(Me);
2883
- (f || c) && (s ? y.push({
2884
- value: f ? St(f) : St(c || "")
2885
- }) : y.push(Me));
2903
+ b.push(Ae);
2904
+ (f || c) && (s ? b.push({
2905
+ value: f ? Vt(f) : Vt(c || "")
2906
+ }) : b.push(Ae));
2886
2907
  }
2887
- return Jt(() => {
2888
- a && S(a);
2889
- }, [a, S]), /* @__PURE__ */ vt(
2908
+ return Qt(() => {
2909
+ a && v(a);
2910
+ }, [a, v]), /* @__PURE__ */ St(
2890
2911
  cs,
2891
2912
  {
2892
2913
  tail: !0,
2893
- footer: y,
2894
- className: Ma,
2914
+ footer: b,
2915
+ className: Aa,
2895
2916
  footerClassName: "text-copy-medium",
2896
- contentClassName: m,
2917
+ contentClassName: p,
2897
2918
  noMaxWidth: !0,
2898
- action: /* @__PURE__ */ vt(
2899
- ps,
2919
+ action: /* @__PURE__ */ St(
2920
+ ms,
2900
2921
  {
2901
2922
  streaming: o,
2902
2923
  content: e,
@@ -2905,7 +2926,7 @@ const Zt = {
2905
2926
  annotations: t
2906
2927
  }
2907
2928
  ),
2908
- children: T
2929
+ children: y
2909
2930
  }
2910
2931
  );
2911
2932
  }