@versini/sassysaint 8.134.3 → 8.134.5

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