@konstructio/ui 0.1.2-alpha.65 → 0.1.2-alpha.67

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 (89) hide show
  1. package/dist/{DayPicker-PUEUVAST.js → DayPicker-CaeUXRCF.js} +475 -470
  2. package/dist/assets/icons/components/AlertOutline.d.ts +3 -0
  3. package/dist/assets/icons/components/AlertOutline.js +28 -0
  4. package/dist/assets/icons/components/index.d.ts +1 -0
  5. package/dist/assets/icons/components/index.js +126 -124
  6. package/dist/assets/icons/index.js +122 -120
  7. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  8. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  9. package/dist/components/AlertDialog/components/index.js +1 -1
  10. package/dist/components/Breadcrumb/components/Item/Item.js +1 -1
  11. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  12. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  13. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
  14. package/dist/components/Checkbox/Checkbox.js +51 -51
  15. package/dist/components/Command/Command.js +1 -1
  16. package/dist/components/Command/components/Command.js +1 -1
  17. package/dist/components/Command/components/CommandEmpty.js +1 -1
  18. package/dist/components/Command/components/CommandGroup.js +1 -1
  19. package/dist/components/Command/components/CommandInput.js +1 -1
  20. package/dist/components/Command/components/CommandItem.js +1 -1
  21. package/dist/components/Command/components/CommandList.js +1 -1
  22. package/dist/components/Command/components/CommandSeparator.js +1 -1
  23. package/dist/components/Command/components/DialogContent.js +1 -1
  24. package/dist/components/Command/components/DialogOverlay.js +1 -1
  25. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
  26. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
  27. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
  28. package/dist/components/Datepicker/DatePicker.js +1 -1
  29. package/dist/components/Drawer/components/index.js +6 -6
  30. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -0
  31. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
  32. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
  33. package/dist/components/PhoneNumberInput/utils/index.js +1 -1
  34. package/dist/components/ProgressBar/ProgressBar.d.ts +0 -17
  35. package/dist/components/ProgressBar/ProgressBar.js +38 -59
  36. package/dist/components/ProgressBar/ProgressBar.types.d.ts +12 -28
  37. package/dist/components/ProgressBar/ProgressBar.variants.d.ts +3 -3
  38. package/dist/components/ProgressBar/ProgressBar.variants.js +23 -24
  39. package/dist/components/Range/Range.js +1 -1
  40. package/dist/components/Slider/Slider.js +1 -1
  41. package/dist/components/Spinner/Spinner.d.ts +4 -0
  42. package/dist/components/Spinner/Spinner.js +57 -0
  43. package/dist/components/Spinner/Spinner.types.d.ts +13 -0
  44. package/dist/components/Spinner/Spinner.variants.d.ts +6 -0
  45. package/dist/components/Spinner/Spinner.variants.js +54 -0
  46. package/dist/components/Switch/Switch.js +47 -47
  47. package/dist/components/Tabs/Tabs.js +1 -1
  48. package/dist/components/Tabs/components/Content.js +1 -1
  49. package/dist/components/Tabs/components/List.js +1 -1
  50. package/dist/components/Tabs/components/Trigger.js +1 -1
  51. package/dist/components/Toast/Toast.js +9 -9
  52. package/dist/components/VirtualizedTable/VirtualizedTable.d.ts +5 -0
  53. package/dist/components/VirtualizedTable/VirtualizedTable.js +83 -71
  54. package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +5 -0
  55. package/dist/components/VirtualizedTable/components/Body/Body.js +56 -53
  56. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
  57. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +2 -2
  58. package/dist/components/VirtualizedTable/contexts/table.context.d.ts +4 -1
  59. package/dist/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
  60. package/dist/components/VirtualizedTable/contexts/table.provider.js +192 -108
  61. package/dist/components/VirtualizedTable/contexts/table.types.d.ts +4 -1
  62. package/dist/components/VirtualizedTable/events/index.d.ts +12 -0
  63. package/dist/components/VirtualizedTable/events/index.js +29 -0
  64. package/dist/components/index.d.ts +3 -0
  65. package/dist/components/index.js +98 -91
  66. package/dist/icons.d.ts +1 -1
  67. package/dist/icons.js +122 -120
  68. package/dist/{index-DKfEnhKr.js → index--l0zux8V.js} +2 -2
  69. package/dist/{index-AV6ZtGhy.js → index-3fEdeexs.js} +1 -1
  70. package/dist/{index-CeZcoQDw.js → index-9a-FL_6D.js} +6 -6
  71. package/dist/{index-Dy59FQl5.js → index-BKMaItIC.js} +1 -1
  72. package/dist/{index-DtEcCIrM.js → index-BRXMsxSL.js} +1 -1
  73. package/dist/{index-DMb4KD0b.js → index-CESXsoMn.js} +1 -1
  74. package/dist/{index-BG8O18ZY.js → index-CJnS4BVW.js} +1 -1
  75. package/dist/{index-vcSp8YRZ.js → index-Cmf-IG4l.js} +10 -10
  76. package/dist/{index-Byr10W8m.js → index-DPcwqB8q.js} +618 -613
  77. package/dist/{index-BqhYevy7.js → index-Dd_ZmIqU.js} +19 -19
  78. package/dist/{index-D9SSJ6om.js → index-Dfq4O3b4.js} +3 -3
  79. package/dist/{index-gSPwC-1I.js → index-Jr0cra7i.js} +9 -9
  80. package/dist/{index-BlSRBdPy.js → index-URQGEGX7.js} +1 -1
  81. package/dist/index.js +142 -135
  82. package/dist/{libphonenumber-C9G59k5J.js → libphonenumber-aZ-2KWIf.js} +3 -3
  83. package/dist/package.json +21 -21
  84. package/dist/{proxy-BhEKW5n7.js → proxy-BIRlSMN_.js} +856 -851
  85. package/dist/styles.css +1 -1
  86. package/dist/useBreadcrumb-C_Wb2cXs.js +1435 -0
  87. package/dist/utils/index.js +514 -355
  88. package/package.json +21 -21
  89. package/dist/useBreadcrumb-vSs0pRo3.js +0 -1412
@@ -1,42 +1,42 @@
1
- import { createContext as Tt, useRef as it, useLayoutEffect as kr, useEffect as Ge, useContext as O, useId as Br, useCallback as $s, useMemo as ne, createElement as Fr, Fragment as zs, useInsertionEffect as Hs, forwardRef as Ir, Component as Or } from "react";
2
- import { jsxs as jr, jsx as Gs } from "react/jsx-runtime";
1
+ import { createContext as Tt, useRef as it, useLayoutEffect as Fr, useEffect as _e, useContext as O, useId as Ir, useCallback as $s, useMemo as ne, createElement as Or, Fragment as zs, useInsertionEffect as Hs, forwardRef as jr, Component as Nr } from "react";
2
+ import { jsxs as Ur, jsx as Gs } from "react/jsx-runtime";
3
3
  const _s = Tt({});
4
- function Nr(t) {
4
+ function Wr(t) {
5
5
  const e = it(null);
6
6
  return e.current === null && (e.current = t()), e.current;
7
7
  }
8
- const Xs = typeof window < "u", Ur = Xs ? kr : Ge, _e = /* @__PURE__ */ Tt(null);
9
- function Xe(t, e) {
8
+ const Xs = typeof window < "u", Kr = Xs ? Fr : _e, Xe = /* @__PURE__ */ Tt(null);
9
+ function Ye(t, e) {
10
10
  t.indexOf(e) === -1 && t.push(e);
11
11
  }
12
12
  function Xt(t, e) {
13
13
  const n = t.indexOf(e);
14
14
  n > -1 && t.splice(n, 1);
15
15
  }
16
- const _ = (t, e, n) => n > e ? e : n < t ? t : n;
16
+ const X = (t, e, n) => n > e ? e : n < t ? t : n;
17
17
  function Se(t, e) {
18
18
  return e ? `${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}` : t;
19
19
  }
20
20
  let xt = () => {
21
- }, X = () => {
21
+ }, Y = () => {
22
22
  };
23
23
  typeof process < "u" && process.env?.NODE_ENV !== "production" && (xt = (t, e, n) => {
24
24
  !t && typeof console < "u" && console.warn(Se(e, n));
25
- }, X = (t, e, n) => {
25
+ }, Y = (t, e, n) => {
26
26
  if (!t)
27
27
  throw new Error(Se(e, n));
28
28
  });
29
- const Y = {}, Ys = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
29
+ const q = {}, Ys = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
30
30
  function qs(t) {
31
31
  return typeof t == "object" && t !== null;
32
32
  }
33
33
  const Zs = (t) => /^0[^.\s]+$/u.test(t);
34
34
  // @__NO_SIDE_EFFECTS__
35
- function Ye(t) {
35
+ function Js(t) {
36
36
  let e;
37
37
  return () => (e === void 0 && (e = t()), e);
38
38
  }
39
- const W = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Wr = (t, e) => (n) => e(t(n)), Bt = (...t) => t.reduce(Wr), Ct = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
39
+ const W = /* @__NO_SIDE_EFFECTS__ */ (t) => t, $r = (t, e) => (n) => e(t(n)), Bt = (...t) => t.reduce($r), Ct = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
40
40
  const s = e - t;
41
41
  return s === 0 ? 1 : (n - t) / s;
42
42
  };
@@ -45,7 +45,7 @@ class qe {
45
45
  this.subscriptions = [];
46
46
  }
47
47
  add(e) {
48
- return Xe(this.subscriptions, e), () => Xt(this.subscriptions, e);
48
+ return Ye(this.subscriptions, e), () => Xt(this.subscriptions, e);
49
49
  }
50
50
  notify(e, n, s) {
51
51
  const i = this.subscriptions.length;
@@ -66,46 +66,46 @@ class qe {
66
66
  }
67
67
  }
68
68
  const K = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, U = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
69
- function Js(t, e) {
69
+ function Qs(t, e) {
70
70
  return e ? t * (1e3 / e) : 0;
71
71
  }
72
72
  const Dn = /* @__PURE__ */ new Set();
73
73
  function Ze(t, e, n) {
74
74
  t || Dn.has(e) || (console.warn(Se(e, n)), Dn.add(e));
75
75
  }
76
- const Qs = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Kr = 1e-7, $r = 12;
77
- function zr(t, e, n, s, i) {
76
+ const ti = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, zr = 1e-7, Hr = 12;
77
+ function Gr(t, e, n, s, i) {
78
78
  let o, r, a = 0;
79
79
  do
80
- r = e + (n - e) / 2, o = Qs(r, s, i) - t, o > 0 ? n = r : e = r;
81
- while (Math.abs(o) > Kr && ++a < $r);
80
+ r = e + (n - e) / 2, o = ti(r, s, i) - t, o > 0 ? n = r : e = r;
81
+ while (Math.abs(o) > zr && ++a < Hr);
82
82
  return r;
83
83
  }
84
84
  function Ft(t, e, n, s) {
85
85
  if (t === e && n === s)
86
86
  return W;
87
- const i = (o) => zr(o, 0, 1, t, n);
88
- return (o) => o === 0 || o === 1 ? o : Qs(i(o), e, s);
87
+ const i = (o) => Gr(o, 0, 1, t, n);
88
+ return (o) => o === 0 || o === 1 ? o : ti(i(o), e, s);
89
89
  }
90
- const ti = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, ei = (t) => (e) => 1 - t(1 - e), ni = /* @__PURE__ */ Ft(0.33, 1.53, 0.69, 0.99), Je = /* @__PURE__ */ ei(ni), si = /* @__PURE__ */ ti(Je), ii = (t) => (t *= 2) < 1 ? 0.5 * Je(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Qe = (t) => 1 - Math.sin(Math.acos(t)), ri = ei(Qe), oi = ti(Qe), Hr = /* @__PURE__ */ Ft(0.42, 0, 1, 1), Gr = /* @__PURE__ */ Ft(0, 0, 0.58, 1), ai = /* @__PURE__ */ Ft(0.42, 0, 0.58, 1), _r = (t) => Array.isArray(t) && typeof t[0] != "number", li = (t) => Array.isArray(t) && typeof t[0] == "number", Mn = {
90
+ const ei = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, ni = (t) => (e) => 1 - t(1 - e), si = /* @__PURE__ */ Ft(0.33, 1.53, 0.69, 0.99), Je = /* @__PURE__ */ ni(si), ii = /* @__PURE__ */ ei(Je), ri = (t) => (t *= 2) < 1 ? 0.5 * Je(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Qe = (t) => 1 - Math.sin(Math.acos(t)), oi = ni(Qe), ai = ei(Qe), _r = /* @__PURE__ */ Ft(0.42, 0, 1, 1), Xr = /* @__PURE__ */ Ft(0, 0, 0.58, 1), li = /* @__PURE__ */ Ft(0.42, 0, 0.58, 1), Yr = (t) => Array.isArray(t) && typeof t[0] != "number", ci = (t) => Array.isArray(t) && typeof t[0] == "number", Mn = {
91
91
  linear: W,
92
- easeIn: Hr,
93
- easeInOut: ai,
94
- easeOut: Gr,
92
+ easeIn: _r,
93
+ easeInOut: li,
94
+ easeOut: Xr,
95
95
  circIn: Qe,
96
- circInOut: oi,
97
- circOut: ri,
96
+ circInOut: ai,
97
+ circOut: oi,
98
98
  backIn: Je,
99
- backInOut: si,
100
- backOut: ni,
101
- anticipate: ii
102
- }, Xr = (t) => typeof t == "string", Cn = (t) => {
103
- if (li(t)) {
104
- X(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
99
+ backInOut: ii,
100
+ backOut: si,
101
+ anticipate: ri
102
+ }, qr = (t) => typeof t == "string", Cn = (t) => {
103
+ if (ci(t)) {
104
+ Y(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
105
105
  const [e, n, s, i] = t;
106
106
  return Ft(e, n, s, i);
107
- } else if (Xr(t))
108
- return X(Mn[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), Mn[t];
107
+ } else if (qr(t))
108
+ return Y(Mn[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), Mn[t];
109
109
  return t;
110
110
  }, jt = [
111
111
  "setup",
@@ -125,7 +125,7 @@ const ti = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, ei
125
125
  "postRender"
126
126
  // Compute
127
127
  ];
128
- function Yr(t, e) {
128
+ function Zr(t, e) {
129
129
  let n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), i = !1, o = !1;
130
130
  const r = /* @__PURE__ */ new WeakSet();
131
131
  let a = {
@@ -141,8 +141,8 @@ function Yr(t, e) {
141
141
  * Schedule a process to run on the next frame.
142
142
  */
143
143
  schedule: (u, h = !1, f = !1) => {
144
- const p = f && i ? n : s;
145
- return h && r.add(u), p.has(u) || p.add(u), u;
144
+ const m = f && i ? n : s;
145
+ return h && r.add(u), m.has(u) || m.add(u), u;
146
146
  },
147
147
  /**
148
148
  * Cancel the provided callback from running on the next frame.
@@ -163,16 +163,16 @@ function Yr(t, e) {
163
163
  };
164
164
  return c;
165
165
  }
166
- const qr = 40;
167
- function ci(t, e) {
166
+ const Jr = 40;
167
+ function ui(t, e) {
168
168
  let n = !1, s = !0;
169
169
  const i = {
170
170
  delta: 0,
171
171
  timestamp: 0,
172
172
  isProcessing: !1
173
- }, o = () => n = !0, r = jt.reduce((y, P) => (y[P] = Yr(o), y), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: h, preRender: f, render: d, postRender: p } = r, v = () => {
174
- const y = Y.useManualTiming ? i.timestamp : performance.now();
175
- n = !1, Y.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(y - i.timestamp, qr), 1)), i.timestamp = y, i.isProcessing = !0, a.process(i), l.process(i), c.process(i), u.process(i), h.process(i), f.process(i), d.process(i), p.process(i), i.isProcessing = !1, n && e && (s = !1, t(v));
173
+ }, o = () => n = !0, r = jt.reduce((y, P) => (y[P] = Zr(o), y), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: h, preRender: f, render: d, postRender: m } = r, v = () => {
174
+ const y = q.useManualTiming ? i.timestamp : performance.now();
175
+ n = !1, q.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(y - i.timestamp, Jr), 1)), i.timestamp = y, i.isProcessing = !0, a.process(i), l.process(i), c.process(i), u.process(i), h.process(i), f.process(i), d.process(i), m.process(i), i.isProcessing = !1, n && e && (s = !1, t(v));
176
176
  }, g = () => {
177
177
  n = !0, s = !0, i.isProcessing || t(v);
178
178
  };
@@ -184,17 +184,17 @@ function ci(t, e) {
184
184
  r[jt[P]].cancel(y);
185
185
  }, state: i, steps: r };
186
186
  }
187
- const { schedule: A, cancel: J, state: L, steps: oe } = /* @__PURE__ */ ci(typeof requestAnimationFrame < "u" ? requestAnimationFrame : W, !0);
187
+ const { schedule: A, cancel: Q, state: L, steps: oe } = /* @__PURE__ */ ui(typeof requestAnimationFrame < "u" ? requestAnimationFrame : W, !0);
188
188
  let Wt;
189
- function Zr() {
189
+ function Qr() {
190
190
  Wt = void 0;
191
191
  }
192
192
  const B = {
193
- now: () => (Wt === void 0 && B.set(L.isProcessing || Y.useManualTiming ? L.timestamp : performance.now()), Wt),
193
+ now: () => (Wt === void 0 && B.set(L.isProcessing || q.useManualTiming ? L.timestamp : performance.now()), Wt),
194
194
  set: (t) => {
195
- Wt = t, queueMicrotask(Zr);
195
+ Wt = t, queueMicrotask(Qr);
196
196
  }
197
- }, ui = (t) => (e) => typeof e == "string" && e.startsWith(t), hi = /* @__PURE__ */ ui("--"), Jr = /* @__PURE__ */ ui("var(--"), tn = (t) => Jr(t) ? Qr.test(t.split("/*")[0].trim()) : !1, Qr = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
197
+ }, hi = (t) => (e) => typeof e == "string" && e.startsWith(t), fi = /* @__PURE__ */ hi("--"), to = /* @__PURE__ */ hi("var(--"), tn = (t) => to(t) ? eo.test(t.split("/*")[0].trim()) : !1, eo = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
198
198
  function En(t) {
199
199
  return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
200
200
  }
@@ -204,15 +204,15 @@ const wt = {
204
204
  transform: (t) => t
205
205
  }, Et = {
206
206
  ...wt,
207
- transform: (t) => _(0, 1, t)
207
+ transform: (t) => X(0, 1, t)
208
208
  }, Nt = {
209
209
  ...wt,
210
210
  default: 1
211
211
  }, Vt = (t) => Math.round(t * 1e5) / 1e5, en = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
212
- function to(t) {
212
+ function no(t) {
213
213
  return t == null;
214
214
  }
215
- const eo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, nn = (t, e) => (n) => !!(typeof n == "string" && eo.test(n) && n.startsWith(t) || e && !to(n) && Object.prototype.hasOwnProperty.call(n, e)), fi = (t, e, n) => (s) => {
215
+ const so = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, nn = (t, e) => (n) => !!(typeof n == "string" && so.test(n) && n.startsWith(t) || e && !no(n) && Object.prototype.hasOwnProperty.call(n, e)), di = (t, e, n) => (s) => {
216
216
  if (typeof s != "string")
217
217
  return s;
218
218
  const [i, o, r, a] = s.match(en);
@@ -222,15 +222,15 @@ const eo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
222
222
  [n]: parseFloat(r),
223
223
  alpha: a !== void 0 ? parseFloat(a) : 1
224
224
  };
225
- }, no = (t) => _(0, 255, t), ae = {
225
+ }, io = (t) => X(0, 255, t), ae = {
226
226
  ...wt,
227
- transform: (t) => Math.round(no(t))
227
+ transform: (t) => Math.round(io(t))
228
228
  }, rt = {
229
229
  test: /* @__PURE__ */ nn("rgb", "red"),
230
- parse: /* @__PURE__ */ fi("red", "green", "blue"),
230
+ parse: /* @__PURE__ */ di("red", "green", "blue"),
231
231
  transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + ae.transform(t) + ", " + ae.transform(e) + ", " + ae.transform(n) + ", " + Vt(Et.transform(s)) + ")"
232
232
  };
233
- function so(t) {
233
+ function ro(t) {
234
234
  let e = "", n = "", s = "", i = "";
235
235
  return t.length > 5 ? (e = t.substring(1, 3), n = t.substring(3, 5), s = t.substring(5, 7), i = t.substring(7, 9)) : (e = t.substring(1, 2), n = t.substring(2, 3), s = t.substring(3, 4), i = t.substring(4, 5), e += e, n += n, s += s, i += i), {
236
236
  red: parseInt(e, 16),
@@ -241,20 +241,20 @@ function so(t) {
241
241
  }
242
242
  const be = {
243
243
  test: /* @__PURE__ */ nn("#"),
244
- parse: so,
244
+ parse: ro,
245
245
  transform: rt.transform
246
246
  }, It = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
247
247
  test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
248
248
  parse: parseFloat,
249
249
  transform: (e) => `${e}${t}`
250
- }), q = /* @__PURE__ */ It("deg"), G = /* @__PURE__ */ It("%"), T = /* @__PURE__ */ It("px"), io = /* @__PURE__ */ It("vh"), ro = /* @__PURE__ */ It("vw"), Rn = {
251
- ...G,
252
- parse: (t) => G.parse(t) / 100,
253
- transform: (t) => G.transform(t * 100)
250
+ }), Z = /* @__PURE__ */ It("deg"), _ = /* @__PURE__ */ It("%"), T = /* @__PURE__ */ It("px"), oo = /* @__PURE__ */ It("vh"), ao = /* @__PURE__ */ It("vw"), Rn = {
251
+ ..._,
252
+ parse: (t) => _.parse(t) / 100,
253
+ transform: (t) => _.transform(t * 100)
254
254
  }, ht = {
255
255
  test: /* @__PURE__ */ nn("hsl", "hue"),
256
- parse: /* @__PURE__ */ fi("hue", "saturation", "lightness"),
257
- transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + G.transform(Vt(e)) + ", " + G.transform(Vt(n)) + ", " + Vt(Et.transform(s)) + ")"
256
+ parse: /* @__PURE__ */ di("hue", "saturation", "lightness"),
257
+ transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + _.transform(Vt(e)) + ", " + _.transform(Vt(n)) + ", " + Vt(Et.transform(s)) + ")"
258
258
  }, M = {
259
259
  test: (t) => rt.test(t) || be.test(t) || ht.test(t),
260
260
  parse: (t) => rt.test(t) ? rt.parse(t) : ht.test(t) ? ht.parse(t) : be.parse(t),
@@ -263,11 +263,11 @@ const be = {
263
263
  const e = M.parse(t);
264
264
  return e.alpha = 0, M.transform(e);
265
265
  }
266
- }, oo = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
267
- function ao(t) {
268
- return isNaN(t) && typeof t == "string" && (t.match(en)?.length || 0) + (t.match(oo)?.length || 0) > 0;
266
+ }, lo = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
267
+ function co(t) {
268
+ return isNaN(t) && typeof t == "string" && (t.match(en)?.length || 0) + (t.match(lo)?.length || 0) > 0;
269
269
  }
270
- const di = "number", pi = "color", lo = "var", co = "var(", Ln = "${}", uo = /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;
270
+ const mi = "number", pi = "color", uo = "var", ho = "var(", Ln = "${}", fo = /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;
271
271
  function Rt(t) {
272
272
  const e = t.toString(), n = [], s = {
273
273
  color: [],
@@ -275,39 +275,39 @@ function Rt(t) {
275
275
  var: []
276
276
  }, i = [];
277
277
  let o = 0;
278
- const a = e.replace(uo, (l) => (M.test(l) ? (s.color.push(o), i.push(pi), n.push(M.parse(l))) : l.startsWith(co) ? (s.var.push(o), i.push(lo), n.push(l)) : (s.number.push(o), i.push(di), n.push(parseFloat(l))), ++o, Ln)).split(Ln);
278
+ const a = e.replace(fo, (l) => (M.test(l) ? (s.color.push(o), i.push(pi), n.push(M.parse(l))) : l.startsWith(ho) ? (s.var.push(o), i.push(uo), n.push(l)) : (s.number.push(o), i.push(mi), n.push(parseFloat(l))), ++o, Ln)).split(Ln);
279
279
  return { values: n, split: a, indexes: s, types: i };
280
280
  }
281
- function mi(t) {
281
+ function gi(t) {
282
282
  return Rt(t).values;
283
283
  }
284
- function gi(t) {
284
+ function yi(t) {
285
285
  const { split: e, types: n } = Rt(t), s = e.length;
286
286
  return (i) => {
287
287
  let o = "";
288
288
  for (let r = 0; r < s; r++)
289
289
  if (o += e[r], i[r] !== void 0) {
290
290
  const a = n[r];
291
- a === di ? o += Vt(i[r]) : a === pi ? o += M.transform(i[r]) : o += i[r];
291
+ a === mi ? o += Vt(i[r]) : a === pi ? o += M.transform(i[r]) : o += i[r];
292
292
  }
293
293
  return o;
294
294
  };
295
295
  }
296
- const ho = (t) => typeof t == "number" ? 0 : M.test(t) ? M.getAnimatableNone(t) : t;
297
- function fo(t) {
298
- const e = mi(t);
299
- return gi(t)(e.map(ho));
296
+ const mo = (t) => typeof t == "number" ? 0 : M.test(t) ? M.getAnimatableNone(t) : t;
297
+ function po(t) {
298
+ const e = gi(t);
299
+ return yi(t)(e.map(mo));
300
300
  }
301
- const Q = {
302
- test: ao,
303
- parse: mi,
304
- createTransformer: gi,
305
- getAnimatableNone: fo
301
+ const H = {
302
+ test: co,
303
+ parse: gi,
304
+ createTransformer: yi,
305
+ getAnimatableNone: po
306
306
  };
307
307
  function le(t, e, n) {
308
308
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
309
309
  }
310
- function po({ hue: t, saturation: e, lightness: n, alpha: s }) {
310
+ function go({ hue: t, saturation: e, lightness: n, alpha: s }) {
311
311
  t /= 360, e /= 100, n /= 100;
312
312
  let i = 0, o = 0, r = 0;
313
313
  if (!e)
@@ -329,13 +329,13 @@ function Yt(t, e) {
329
329
  const D = (t, e, n) => t + (e - t) * n, ce = (t, e, n) => {
330
330
  const s = t * t, i = n * (e * e - s) + s;
331
331
  return i < 0 ? 0 : Math.sqrt(i);
332
- }, mo = [be, rt, ht], go = (t) => mo.find((e) => e.test(t));
332
+ }, yo = [be, rt, ht], vo = (t) => yo.find((e) => e.test(t));
333
333
  function kn(t) {
334
- const e = go(t);
334
+ const e = vo(t);
335
335
  if (xt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !e)
336
336
  return !1;
337
337
  let n = e.parse(t);
338
- return e === ht && (n = po(n)), n;
338
+ return e === ht && (n = go(n)), n;
339
339
  }
340
340
  const Bn = (t, e) => {
341
341
  const n = kn(t), s = kn(e);
@@ -344,16 +344,16 @@ const Bn = (t, e) => {
344
344
  const i = { ...n };
345
345
  return (o) => (i.red = ce(n.red, s.red, o), i.green = ce(n.green, s.green, o), i.blue = ce(n.blue, s.blue, o), i.alpha = D(n.alpha, s.alpha, o), rt.transform(i));
346
346
  }, Ae = /* @__PURE__ */ new Set(["none", "hidden"]);
347
- function yo(t, e) {
347
+ function To(t, e) {
348
348
  return Ae.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
349
349
  }
350
- function vo(t, e) {
350
+ function xo(t, e) {
351
351
  return (n) => D(t, e, n);
352
352
  }
353
353
  function sn(t) {
354
- return typeof t == "number" ? vo : typeof t == "string" ? tn(t) ? Yt : M.test(t) ? Bn : wo : Array.isArray(t) ? yi : typeof t == "object" ? M.test(t) ? Bn : To : Yt;
354
+ return typeof t == "number" ? xo : typeof t == "string" ? tn(t) ? Yt : M.test(t) ? Bn : So : Array.isArray(t) ? vi : typeof t == "object" ? M.test(t) ? Bn : wo : Yt;
355
355
  }
356
- function yi(t, e) {
356
+ function vi(t, e) {
357
357
  const n = [...t], s = n.length, i = t.map((o, r) => sn(o)(o, e[r]));
358
358
  return (o) => {
359
359
  for (let r = 0; r < s; r++)
@@ -361,7 +361,7 @@ function yi(t, e) {
361
361
  return n;
362
362
  };
363
363
  }
364
- function To(t, e) {
364
+ function wo(t, e) {
365
365
  const n = { ...t, ...e }, s = {};
366
366
  for (const i in n)
367
367
  t[i] !== void 0 && e[i] !== void 0 && (s[i] = sn(t[i])(t[i], e[i]));
@@ -371,7 +371,7 @@ function To(t, e) {
371
371
  return n;
372
372
  };
373
373
  }
374
- function xo(t, e) {
374
+ function Po(t, e) {
375
375
  const n = [], s = { color: 0, var: 0, number: 0 };
376
376
  for (let i = 0; i < e.values.length; i++) {
377
377
  const o = e.types[i], r = t.indexes[o][s[o]], a = t.values[r] ?? 0;
@@ -379,25 +379,25 @@ function xo(t, e) {
379
379
  }
380
380
  return n;
381
381
  }
382
- const wo = (t, e) => {
383
- const n = Q.createTransformer(e), s = Rt(t), i = Rt(e);
384
- 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 ? Ae.has(t) && !i.values.length || Ae.has(e) && !s.values.length ? yo(t, e) : Bt(yi(xo(s, i), i.values), n) : (xt(!0, `Complex values '${t}' and '${e}' 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"), Yt(t, e));
382
+ const So = (t, e) => {
383
+ const n = H.createTransformer(e), s = Rt(t), i = Rt(e);
384
+ 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 ? Ae.has(t) && !i.values.length || Ae.has(e) && !s.values.length ? To(t, e) : Bt(vi(Po(s, i), i.values), n) : (xt(!0, `Complex values '${t}' and '${e}' 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"), Yt(t, e));
385
385
  };
386
- function vi(t, e, n) {
386
+ function Ti(t, e, n) {
387
387
  return typeof t == "number" && typeof e == "number" && typeof n == "number" ? D(t, e, n) : sn(t)(t, e);
388
388
  }
389
- const Po = (t) => {
389
+ const bo = (t) => {
390
390
  const e = ({ timestamp: n }) => t(n);
391
391
  return {
392
392
  start: (n = !0) => A.update(e, n),
393
- stop: () => J(e),
393
+ stop: () => Q(e),
394
394
  /**
395
395
  * If we're processing this frame we can use the
396
396
  * framelocked timestamp to keep things in sync.
397
397
  */
398
398
  now: () => L.isProcessing ? L.timestamp : B.now()
399
399
  };
400
- }, Ti = (t, e, n = 10) => {
400
+ }, xi = (t, e, n = 10) => {
401
401
  let s = "";
402
402
  const i = Math.max(Math.round(e / n), 2);
403
403
  for (let o = 0; o < i; o++)
@@ -412,7 +412,7 @@ function rn(t) {
412
412
  e += n, s = t.next(e);
413
413
  return e >= qt ? 1 / 0 : e;
414
414
  }
415
- function So(t, e = 100, n) {
415
+ function Ao(t, e = 100, n) {
416
416
  const s = n({ ...t, keyframes: [0, e] }), i = Math.min(rn(s), qt);
417
417
  return {
418
418
  type: "keyframes",
@@ -420,10 +420,10 @@ function So(t, e = 100, n) {
420
420
  duration: /* @__PURE__ */ U(i)
421
421
  };
422
422
  }
423
- const bo = 5;
424
- function xi(t, e, n) {
425
- const s = Math.max(e - bo, 0);
426
- return Js(n - t(s), e - s);
423
+ const Vo = 5;
424
+ function wi(t, e, n) {
425
+ const s = Math.max(e - Vo, 0);
426
+ return Qs(n - t(s), e - s);
427
427
  }
428
428
  const V = {
429
429
  // Default spring physics
@@ -454,16 +454,16 @@ const V = {
454
454
  minDamping: 0.05,
455
455
  maxDamping: 1
456
456
  }, ue = 1e-3;
457
- function Ao({ duration: t = V.duration, bounce: e = V.bounce, velocity: n = V.velocity, mass: s = V.mass }) {
457
+ function Do({ duration: t = V.duration, bounce: e = V.bounce, velocity: n = V.velocity, mass: s = V.mass }) {
458
458
  let i, o;
459
459
  xt(t <= /* @__PURE__ */ K(V.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
460
460
  let r = 1 - e;
461
- r = _(V.minDamping, V.maxDamping, r), t = _(V.minDuration, V.maxDuration, /* @__PURE__ */ U(t)), r < 1 ? (i = (c) => {
462
- const u = c * r, h = u * t, f = u - n, d = Ve(c, r), p = Math.exp(-h);
463
- return ue - f / d * p;
461
+ r = X(V.minDamping, V.maxDamping, r), t = X(V.minDuration, V.maxDuration, /* @__PURE__ */ U(t)), r < 1 ? (i = (c) => {
462
+ const u = c * r, h = u * t, f = u - n, d = Ve(c, r), m = Math.exp(-h);
463
+ return ue - f / d * m;
464
464
  }, o = (c) => {
465
- const h = c * r * t, f = h * n + n, d = Math.pow(r, 2) * Math.pow(c, 2) * t, p = Math.exp(-h), v = Ve(Math.pow(c, 2), r);
466
- return (-i(c) + ue > 0 ? -1 : 1) * ((f - d) * p) / v;
465
+ const h = c * r * t, f = h * n + n, d = Math.pow(r, 2) * Math.pow(c, 2) * t, m = Math.exp(-h), v = Ve(Math.pow(c, 2), r);
466
+ return (-i(c) + ue > 0 ? -1 : 1) * ((f - d) * m) / v;
467
467
  }) : (i = (c) => {
468
468
  const u = Math.exp(-c * t), h = (c - n) * t + 1;
469
469
  return -ue + u * h;
@@ -471,7 +471,7 @@ function Ao({ duration: t = V.duration, bounce: e = V.bounce, velocity: n = V.ve
471
471
  const u = Math.exp(-c * t), h = (n - c) * (t * t);
472
472
  return u * h;
473
473
  });
474
- const a = 5 / t, l = Do(i, o, a);
474
+ const a = 5 / t, l = Co(i, o, a);
475
475
  if (t = /* @__PURE__ */ K(t), isNaN(l))
476
476
  return {
477
477
  stiffness: V.stiffness,
@@ -487,21 +487,21 @@ function Ao({ duration: t = V.duration, bounce: e = V.bounce, velocity: n = V.ve
487
487
  };
488
488
  }
489
489
  }
490
- const Vo = 12;
491
- function Do(t, e, n) {
490
+ const Mo = 12;
491
+ function Co(t, e, n) {
492
492
  let s = n;
493
- for (let i = 1; i < Vo; i++)
493
+ for (let i = 1; i < Mo; i++)
494
494
  s = s - t(s) / e(s);
495
495
  return s;
496
496
  }
497
497
  function Ve(t, e) {
498
498
  return t * Math.sqrt(1 - e * e);
499
499
  }
500
- const Mo = ["duration", "bounce"], Co = ["stiffness", "damping", "mass"];
500
+ const Eo = ["duration", "bounce"], Ro = ["stiffness", "damping", "mass"];
501
501
  function Fn(t, e) {
502
502
  return e.some((n) => t[n] !== void 0);
503
503
  }
504
- function Eo(t) {
504
+ function Lo(t) {
505
505
  let e = {
506
506
  velocity: V.velocity,
507
507
  stiffness: V.stiffness,
@@ -510,9 +510,9 @@ function Eo(t) {
510
510
  isResolvedFromDuration: !1,
511
511
  ...t
512
512
  };
513
- if (!Fn(t, Co) && Fn(t, Mo))
514
- if (t.visualDuration) {
515
- const n = t.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, o = 2 * _(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
513
+ if (!Fn(t, Ro) && Fn(t, Eo))
514
+ if (e.velocity = 0, t.visualDuration) {
515
+ const n = t.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, o = 2 * X(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
516
516
  e = {
517
517
  ...e,
518
518
  mass: V.mass,
@@ -520,7 +520,7 @@ function Eo(t) {
520
520
  damping: o
521
521
  };
522
522
  } else {
523
- const n = Ao(t);
523
+ const n = Do({ ...t, velocity: 0 });
524
524
  e = {
525
525
  ...e,
526
526
  ...n,
@@ -536,25 +536,25 @@ function Zt(t = V.visualDuration, e = V.bounce) {
536
536
  bounce: e
537
537
  } : t;
538
538
  let { restSpeed: s, restDelta: i } = n;
539
- const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: h, velocity: f, isResolvedFromDuration: d } = Eo({
539
+ const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: h, velocity: f, isResolvedFromDuration: d } = Lo({
540
540
  ...n,
541
541
  velocity: -/* @__PURE__ */ U(n.velocity || 0)
542
- }), p = f || 0, v = c / (2 * Math.sqrt(l * u)), g = r - o, m = /* @__PURE__ */ U(Math.sqrt(l / u)), x = Math.abs(g) < 5;
542
+ }), m = f || 0, v = c / (2 * Math.sqrt(l * u)), g = r - o, p = /* @__PURE__ */ U(Math.sqrt(l / u)), x = Math.abs(g) < 5;
543
543
  s || (s = x ? V.restSpeed.granular : V.restSpeed.default), i || (i = x ? V.restDelta.granular : V.restDelta.default);
544
544
  let y;
545
545
  if (v < 1) {
546
- const w = Ve(m, v);
546
+ const w = Ve(p, v);
547
547
  y = (b) => {
548
- const C = Math.exp(-v * m * b);
549
- return r - C * ((p + v * m * g) / w * Math.sin(w * b) + g * Math.cos(w * b));
548
+ const C = Math.exp(-v * p * b);
549
+ return r - C * ((m + v * p * g) / w * Math.sin(w * b) + g * Math.cos(w * b));
550
550
  };
551
551
  } else if (v === 1)
552
- y = (w) => r - Math.exp(-m * w) * (g + (p + m * g) * w);
552
+ y = (w) => r - Math.exp(-p * w) * (g + (m + p * g) * w);
553
553
  else {
554
- const w = m * Math.sqrt(v * v - 1);
554
+ const w = p * Math.sqrt(v * v - 1);
555
555
  y = (b) => {
556
- const C = Math.exp(-v * m * b), S = Math.min(w * b, 300);
557
- return r - C * ((p + v * m * g) * Math.sinh(S) + w * g * Math.cosh(S)) / w;
556
+ const C = Math.exp(-v * p * b), S = Math.min(w * b, 300);
557
+ return r - C * ((m + v * p * g) * Math.sinh(S) + w * g * Math.cosh(S)) / w;
558
558
  };
559
559
  }
560
560
  const P = {
@@ -564,15 +564,15 @@ function Zt(t = V.visualDuration, e = V.bounce) {
564
564
  if (d)
565
565
  a.done = w >= h;
566
566
  else {
567
- let C = w === 0 ? p : 0;
568
- v < 1 && (C = w === 0 ? /* @__PURE__ */ K(p) : xi(y, w, b));
567
+ let C = w === 0 ? m : 0;
568
+ v < 1 && (C = w === 0 ? /* @__PURE__ */ K(m) : wi(y, w, b));
569
569
  const S = Math.abs(C) <= s, I = Math.abs(r - b) <= i;
570
570
  a.done = S && I;
571
571
  }
572
572
  return a.value = a.done ? r : b, a;
573
573
  },
574
574
  toString: () => {
575
- const w = Math.min(rn(P), qt), b = Ti((C) => P.next(w * C).value, w, 30);
575
+ const w = Math.min(rn(P), qt), b = xi((C) => P.next(w * C).value, w, 30);
576
576
  return w + "ms " + b;
577
577
  },
578
578
  toTransition: () => {
@@ -581,26 +581,26 @@ function Zt(t = V.visualDuration, e = V.bounce) {
581
581
  return P;
582
582
  }
583
583
  Zt.applyToOptions = (t) => {
584
- const e = So(t, 100, Zt);
584
+ const e = Ao(t, 100, Zt);
585
585
  return t.ease = e.ease, t.duration = /* @__PURE__ */ K(e.duration), t.type = "keyframes", t;
586
586
  };
587
587
  function De({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
588
588
  const h = t[0], f = {
589
589
  done: !1,
590
590
  value: h
591
- }, d = (S) => a !== void 0 && S < a || l !== void 0 && S > l, p = (S) => a === void 0 ? l : l === void 0 || Math.abs(a - S) < Math.abs(l - S) ? a : l;
591
+ }, d = (S) => a !== void 0 && S < a || l !== void 0 && S > l, m = (S) => a === void 0 ? l : l === void 0 || Math.abs(a - S) < Math.abs(l - S) ? a : l;
592
592
  let v = n * e;
593
- const g = h + v, m = r === void 0 ? g : r(g);
594
- m !== g && (v = m - h);
595
- const x = (S) => -v * Math.exp(-S / s), y = (S) => m + x(S), P = (S) => {
593
+ const g = h + v, p = r === void 0 ? g : r(g);
594
+ p !== g && (v = p - h);
595
+ const x = (S) => -v * Math.exp(-S / s), y = (S) => p + x(S), P = (S) => {
596
596
  const I = x(S), j = y(S);
597
- f.done = Math.abs(I) <= c, f.value = f.done ? m : j;
597
+ f.done = Math.abs(I) <= c, f.value = f.done ? p : j;
598
598
  };
599
599
  let w, b;
600
600
  const C = (S) => {
601
601
  d(f.value) && (w = S, b = Zt({
602
- keyframes: [f.value, p(f.value)],
603
- velocity: xi(y, S, f.value),
602
+ keyframes: [f.value, m(f.value)],
603
+ velocity: wi(y, S, f.value),
604
604
  // TODO: This should be passing * 1000
605
605
  damping: i,
606
606
  stiffness: o,
@@ -616,8 +616,8 @@ function De({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
616
616
  }
617
617
  };
618
618
  }
619
- function Ro(t, e, n) {
620
- const s = [], i = n || Y.mix || vi, o = t.length - 1;
619
+ function ko(t, e, n) {
620
+ const s = [], i = n || q.mix || Ti, o = t.length - 1;
621
621
  for (let r = 0; r < o; r++) {
622
622
  let a = i(t[r], t[r + 1]);
623
623
  if (e) {
@@ -628,15 +628,15 @@ function Ro(t, e, n) {
628
628
  }
629
629
  return s;
630
630
  }
631
- function Lo(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
631
+ function Bo(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
632
632
  const o = t.length;
633
- if (X(o === e.length, "Both input and output ranges must be the same length", "range-length"), o === 1)
633
+ if (Y(o === e.length, "Both input and output ranges must be the same length", "range-length"), o === 1)
634
634
  return () => e[0];
635
635
  if (o === 2 && e[0] === e[1])
636
636
  return () => e[1];
637
637
  const r = t[0] === t[1];
638
638
  t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
639
- const a = Ro(e, s, i), l = a.length, c = (u) => {
639
+ const a = ko(e, s, i), l = a.length, c = (u) => {
640
640
  if (r && u < t[0])
641
641
  return e[0];
642
642
  let h = 0;
@@ -646,56 +646,56 @@ function Lo(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
646
646
  const f = /* @__PURE__ */ Ct(t[h], t[h + 1], u);
647
647
  return a[h](f);
648
648
  };
649
- return n ? (u) => c(_(t[0], t[o - 1], u)) : c;
649
+ return n ? (u) => c(X(t[0], t[o - 1], u)) : c;
650
650
  }
651
- function ko(t, e) {
651
+ function Fo(t, e) {
652
652
  const n = t[t.length - 1];
653
653
  for (let s = 1; s <= e; s++) {
654
654
  const i = /* @__PURE__ */ Ct(0, e, s);
655
655
  t.push(D(n, 1, i));
656
656
  }
657
657
  }
658
- function Bo(t) {
658
+ function Io(t) {
659
659
  const e = [0];
660
- return ko(e, t.length - 1), e;
660
+ return Fo(e, t.length - 1), e;
661
661
  }
662
- function Fo(t, e) {
662
+ function Oo(t, e) {
663
663
  return t.map((n) => n * e);
664
664
  }
665
- function Io(t, e) {
666
- return t.map(() => e || ai).splice(0, t.length - 1);
665
+ function jo(t, e) {
666
+ return t.map(() => e || li).splice(0, t.length - 1);
667
667
  }
668
668
  function ft({ duration: t = 300, keyframes: e, times: n, ease: s = "easeInOut" }) {
669
- const i = _r(s) ? s.map(Cn) : Cn(s), o = {
669
+ const i = Yr(s) ? s.map(Cn) : Cn(s), o = {
670
670
  done: !1,
671
671
  value: e[0]
672
- }, r = Fo(
672
+ }, r = Oo(
673
673
  // Only use the provided offsets if they're the correct length
674
674
  // TODO Maybe we should warn here if there's a length mismatch
675
- n && n.length === e.length ? n : Bo(e),
675
+ n && n.length === e.length ? n : Io(e),
676
676
  t
677
- ), a = Lo(r, e, {
678
- ease: Array.isArray(i) ? i : Io(e, i)
677
+ ), a = Bo(r, e, {
678
+ ease: Array.isArray(i) ? i : jo(e, i)
679
679
  });
680
680
  return {
681
681
  calculatedDuration: t,
682
682
  next: (l) => (o.value = a(l), o.done = l >= t, o)
683
683
  };
684
684
  }
685
- const Oo = (t) => t !== null;
685
+ const No = (t) => t !== null;
686
686
  function on(t, { repeat: e, repeatType: n = "loop" }, s, i = 1) {
687
- const o = t.filter(Oo), a = i < 0 || e && n !== "loop" && e % 2 === 1 ? 0 : o.length - 1;
687
+ const o = t.filter(No), a = i < 0 || e && n !== "loop" && e % 2 === 1 ? 0 : o.length - 1;
688
688
  return !a || s === void 0 ? o[a] : s;
689
689
  }
690
- const jo = {
690
+ const Uo = {
691
691
  decay: De,
692
692
  inertia: De,
693
693
  tween: ft,
694
694
  keyframes: ft,
695
695
  spring: Zt
696
696
  };
697
- function wi(t) {
698
- typeof t.type == "string" && (t.type = jo[t.type]);
697
+ function Pi(t) {
698
+ typeof t.type == "string" && (t.type = Uo[t.type]);
699
699
  }
700
700
  class an {
701
701
  constructor() {
@@ -721,7 +721,7 @@ class an {
721
721
  return this.finished.then(e, n);
722
722
  }
723
723
  }
724
- const No = (t) => t / 100;
724
+ const Wo = (t) => t / 100;
725
725
  class ln extends an {
726
726
  constructor(e) {
727
727
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
@@ -731,11 +731,11 @@ class ln extends an {
731
731
  }
732
732
  initAnimation() {
733
733
  const { options: e } = this;
734
- wi(e);
734
+ Pi(e);
735
735
  const { type: n = ft, repeat: s = 0, repeatDelay: i = 0, repeatType: o, velocity: r = 0 } = e;
736
736
  let { keyframes: a } = e;
737
737
  const l = n || ft;
738
- process.env.NODE_ENV !== "production" && l !== ft && X(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== ft && typeof a[0] != "number" && (this.mixKeyframes = Bt(No, vi(a[0], a[1])), a = [0, 100]);
738
+ process.env.NODE_ENV !== "production" && l !== ft && Y(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== ft && typeof a[0] != "number" && (this.mixKeyframes = Bt(Wo, Ti(a[0], a[1])), a = [0, 100]);
739
739
  const c = l({ ...e, keyframes: a });
740
740
  o === "mirror" && (this.mirroredGenerator = l({
741
741
  ...e,
@@ -753,22 +753,22 @@ class ln extends an {
753
753
  const { generator: s, totalDuration: i, mixKeyframes: o, mirroredGenerator: r, resolvedDuration: a, calculatedDuration: l } = this;
754
754
  if (this.startTime === null)
755
755
  return s.next(0);
756
- const { delay: c = 0, keyframes: u, repeat: h, repeatType: f, repeatDelay: d, type: p, onUpdate: v, finalKeyframe: g } = this.options;
756
+ const { delay: c = 0, keyframes: u, repeat: h, repeatType: f, repeatDelay: d, type: m, onUpdate: v, finalKeyframe: g } = this.options;
757
757
  this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - i / this.speed, this.startTime)), n ? this.currentTime = e : this.updateTime(e);
758
- const m = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), x = this.playbackSpeed >= 0 ? m < 0 : m > i;
759
- this.currentTime = Math.max(m, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
758
+ const p = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), x = this.playbackSpeed >= 0 ? p < 0 : p > i;
759
+ this.currentTime = Math.max(p, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
760
760
  let y = this.currentTime, P = s;
761
761
  if (h) {
762
762
  const S = Math.min(this.currentTime, i) / a;
763
763
  let I = Math.floor(S), j = S % 1;
764
- !j && S >= 1 && (j = 1), j === 1 && I--, I = Math.min(I, h + 1), I % 2 && (f === "reverse" ? (j = 1 - j, d && (j -= d / a)) : f === "mirror" && (P = r)), y = _(0, 1, j) * a;
764
+ !j && S >= 1 && (j = 1), j === 1 && I--, I = Math.min(I, h + 1), I % 2 && (f === "reverse" ? (j = 1 - j, d && (j -= d / a)) : f === "mirror" && (P = r)), y = X(0, 1, j) * a;
765
765
  }
766
766
  const w = x ? { done: !1, value: u[0] } : P.next(y);
767
767
  o && (w.value = o(w.value));
768
768
  let { done: b } = w;
769
769
  !x && l !== null && (b = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
770
770
  const C = this.holdTime === null && (this.state === "finished" || this.state === "running" && b);
771
- return C && p !== De && (w.value = on(u, this.options, g, this.speed)), v && v(w.value), C && this.finish(), w;
771
+ return C && m !== De && (w.value = on(u, this.options, g, this.speed)), v && v(w.value), C && this.finish(), w;
772
772
  }
773
773
  /**
774
774
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -802,7 +802,7 @@ class ln extends an {
802
802
  play() {
803
803
  if (this.isStopped)
804
804
  return;
805
- const { driver: e = Po, startTime: n } = this.options;
805
+ const { driver: e = bo, startTime: n } = this.options;
806
806
  this.driver || (this.driver = e((i) => this.tick(i))), this.options.onPlay?.();
807
807
  const s = this.driver.now();
808
808
  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();
@@ -832,14 +832,14 @@ class ln extends an {
832
832
  return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
833
833
  }
834
834
  }
835
- function Uo(t) {
835
+ function Ko(t) {
836
836
  for (let e = 1; e < t.length; e++)
837
837
  t[e] ?? (t[e] = t[e - 1]);
838
838
  }
839
839
  const ot = (t) => t * 180 / Math.PI, Me = (t) => {
840
840
  const e = ot(Math.atan2(t[1], t[0]));
841
841
  return Ce(e);
842
- }, Wo = {
842
+ }, $o = {
843
843
  x: 4,
844
844
  y: 5,
845
845
  translateX: 4,
@@ -852,7 +852,7 @@ const ot = (t) => t * 180 / Math.PI, Me = (t) => {
852
852
  skewX: (t) => ot(Math.atan(t[1])),
853
853
  skewY: (t) => ot(Math.atan(t[2])),
854
854
  skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
855
- }, Ce = (t) => (t = t % 360, t < 0 && (t += 360), t), In = Me, On = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), jn = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), Ko = {
855
+ }, Ce = (t) => (t = t % 360, t < 0 && (t += 360), t), In = Me, On = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), jn = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), zo = {
856
856
  x: 12,
857
857
  y: 13,
858
858
  z: 14,
@@ -879,21 +879,21 @@ function Re(t, e) {
879
879
  const n = t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
880
880
  let s, i;
881
881
  if (n)
882
- s = Ko, i = n;
882
+ s = zo, i = n;
883
883
  else {
884
884
  const a = t.match(/^matrix\(([-\d.e\s,]+)\)$/u);
885
- s = Wo, i = a;
885
+ s = $o, i = a;
886
886
  }
887
887
  if (!i)
888
888
  return Ee(e);
889
- const o = s[e], r = i[1].split(",").map(zo);
889
+ const o = s[e], r = i[1].split(",").map(Go);
890
890
  return typeof o == "function" ? o(r) : r[o];
891
891
  }
892
- const $o = (t, e) => {
892
+ const Ho = (t, e) => {
893
893
  const { transform: n = "none" } = getComputedStyle(t);
894
894
  return Re(n, e);
895
895
  };
896
- function zo(t) {
896
+ function Go(t) {
897
897
  return parseFloat(t.trim());
898
898
  }
899
899
  const Pt = [
@@ -914,15 +914,15 @@ const Pt = [
914
914
  "skew",
915
915
  "skewX",
916
916
  "skewY"
917
- ], St = new Set(Pt), Nn = (t) => t === wt || t === T, Ho = /* @__PURE__ */ new Set(["x", "y", "z"]), Go = Pt.filter((t) => !Ho.has(t));
918
- function _o(t) {
917
+ ], St = new Set(Pt), Nn = (t) => t === wt || t === T, _o = /* @__PURE__ */ new Set(["x", "y", "z"]), Xo = Pt.filter((t) => !_o.has(t));
918
+ function Yo(t) {
919
919
  const e = [];
920
- return Go.forEach((n) => {
920
+ return Xo.forEach((n) => {
921
921
  const s = t.getValue(n);
922
922
  s !== void 0 && (e.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
923
923
  }), e;
924
924
  }
925
- const Z = {
925
+ const J = {
926
926
  // Dimensions
927
927
  width: ({ x: t }, { paddingLeft: e = "0", paddingRight: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
928
928
  height: ({ y: t }, { paddingTop: e = "0", paddingBottom: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
@@ -934,15 +934,15 @@ const Z = {
934
934
  x: (t, { transform: e }) => Re(e, "x"),
935
935
  y: (t, { transform: e }) => Re(e, "y")
936
936
  };
937
- Z.translateX = Z.x;
938
- Z.translateY = Z.y;
937
+ J.translateX = J.x;
938
+ J.translateY = J.y;
939
939
  const at = /* @__PURE__ */ new Set();
940
940
  let Le = !1, ke = !1, Be = !1;
941
- function Pi() {
941
+ function Si() {
942
942
  if (ke) {
943
943
  const t = Array.from(at).filter((s) => s.needsMeasurement), e = new Set(t.map((s) => s.element)), n = /* @__PURE__ */ new Map();
944
944
  e.forEach((s) => {
945
- const i = _o(s);
945
+ const i = Yo(s);
946
946
  i.length && (n.set(s, i), s.render());
947
947
  }), t.forEach((s) => s.measureInitialState()), e.forEach((s) => {
948
948
  s.render();
@@ -956,20 +956,20 @@ function Pi() {
956
956
  }
957
957
  ke = !1, Le = !1, at.forEach((t) => t.complete(Be)), at.clear();
958
958
  }
959
- function Si() {
959
+ function bi() {
960
960
  at.forEach((t) => {
961
961
  t.readKeyframes(), t.needsMeasurement && (ke = !0);
962
962
  });
963
963
  }
964
- function Xo() {
965
- Be = !0, Si(), Pi(), Be = !1;
964
+ function qo() {
965
+ Be = !0, bi(), Si(), Be = !1;
966
966
  }
967
967
  class cn {
968
968
  constructor(e, n, s, i, o, r = !1) {
969
969
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = s, this.motionValue = i, this.element = o, this.isAsync = r;
970
970
  }
971
971
  scheduleResolve() {
972
- this.state = "scheduled", this.isAsync ? (at.add(this), Le || (Le = !0, A.read(Si), A.resolveKeyframes(Pi))) : (this.readKeyframes(), this.complete());
972
+ this.state = "scheduled", this.isAsync ? (at.add(this), Le || (Le = !0, A.read(bi), A.resolveKeyframes(Si))) : (this.readKeyframes(), this.complete());
973
973
  }
974
974
  readKeyframes() {
975
975
  const { unresolvedKeyframes: e, name: n, element: s, motionValue: i } = this;
@@ -983,7 +983,7 @@ class cn {
983
983
  }
984
984
  e[0] === void 0 && (e[0] = r), i && o === void 0 && i.set(e[0]);
985
985
  }
986
- Uo(e);
986
+ Ko(e);
987
987
  }
988
988
  setFinalKeyframe() {
989
989
  }
@@ -1003,16 +1003,16 @@ class cn {
1003
1003
  this.state === "pending" && this.scheduleResolve();
1004
1004
  }
1005
1005
  }
1006
- const Yo = (t) => t.startsWith("--");
1007
- function qo(t, e, n) {
1008
- Yo(e) ? t.style.setProperty(e, n) : t.style[e] = n;
1006
+ const Zo = (t) => t.startsWith("--");
1007
+ function Jo(t, e, n) {
1008
+ Zo(e) ? t.style.setProperty(e, n) : t.style[e] = n;
1009
1009
  }
1010
- const Zo = /* @__PURE__ */ Ye(() => window.ScrollTimeline !== void 0), Jo = {};
1011
- function Qo(t, e) {
1012
- const n = /* @__PURE__ */ Ye(t);
1013
- return () => Jo[e] ?? n();
1010
+ const Qo = {};
1011
+ function Ai(t, e) {
1012
+ const n = /* @__PURE__ */ Js(t);
1013
+ return () => Qo[e] ?? n();
1014
1014
  }
1015
- const bi = /* @__PURE__ */ Qo(() => {
1015
+ const ta = /* @__PURE__ */ Ai(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Vi = /* @__PURE__ */ Ai(() => {
1016
1016
  try {
1017
1017
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1018
1018
  } catch {
@@ -1030,16 +1030,16 @@ const bi = /* @__PURE__ */ Qo(() => {
1030
1030
  backIn: /* @__PURE__ */ At([0.31, 0.01, 0.66, -0.59]),
1031
1031
  backOut: /* @__PURE__ */ At([0.33, 1.53, 0.69, 0.99])
1032
1032
  };
1033
- function Ai(t, e) {
1033
+ function Di(t, e) {
1034
1034
  if (t)
1035
- return typeof t == "function" ? bi() ? Ti(t, e) : "ease-out" : li(t) ? At(t) : Array.isArray(t) ? t.map((n) => Ai(n, e) || Un.easeOut) : Un[t];
1035
+ return typeof t == "function" ? Vi() ? xi(t, e) : "ease-out" : ci(t) ? At(t) : Array.isArray(t) ? t.map((n) => Di(n, e) || Un.easeOut) : Un[t];
1036
1036
  }
1037
- function ta(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, c = void 0) {
1037
+ function ea(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, c = void 0) {
1038
1038
  const u = {
1039
1039
  [e]: n
1040
1040
  };
1041
1041
  l && (u.offset = l);
1042
- const h = Ai(a, i);
1042
+ const h = Di(a, i);
1043
1043
  Array.isArray(h) && (u.easing = h);
1044
1044
  const f = {
1045
1045
  delay: s,
@@ -1051,23 +1051,23 @@ function ta(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatTyp
1051
1051
  };
1052
1052
  return c && (f.pseudoElement = c), t.animate(u, f);
1053
1053
  }
1054
- function Vi(t) {
1054
+ function Mi(t) {
1055
1055
  return typeof t == "function" && "applyToOptions" in t;
1056
1056
  }
1057
- function ea({ type: t, ...e }) {
1058
- return Vi(t) && bi() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
1057
+ function na({ type: t, ...e }) {
1058
+ return Mi(t) && Vi() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
1059
1059
  }
1060
- class Di extends an {
1060
+ class Ci extends an {
1061
1061
  constructor(e) {
1062
1062
  if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e)
1063
1063
  return;
1064
1064
  const { element: n, name: s, keyframes: i, pseudoElement: o, allowFlatten: r = !1, finalKeyframe: a, onComplete: l } = e;
1065
- this.isPseudoElement = !!o, this.allowFlatten = r, this.options = e, X(typeof e.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1066
- const c = ea(e);
1067
- this.animation = ta(n, s, i, c, o), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1065
+ this.isPseudoElement = !!o, this.allowFlatten = r, this.options = e, Y(typeof e.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1066
+ const c = na(e);
1067
+ this.animation = ea(n, s, i, c, o), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1068
1068
  if (this.finishedTime = this.time, !o) {
1069
1069
  const u = on(i, this.options, a, this.speed);
1070
- this.updateMotionValue ? this.updateMotionValue(u) : qo(n, s, u), this.animation.cancel();
1070
+ this.updateMotionValue ? this.updateMotionValue(u) : Jo(n, s, u), this.animation.cancel();
1071
1071
  }
1072
1072
  l?.(), this.notifyFinished();
1073
1073
  };
@@ -1147,24 +1147,24 @@ class Di extends an {
1147
1147
  * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
1148
1148
  */
1149
1149
  attachTimeline({ timeline: e, observe: n }) {
1150
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Zo() ? (this.animation.timeline = e, W) : n(this);
1150
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && ta() ? (this.animation.timeline = e, W) : n(this);
1151
1151
  }
1152
1152
  }
1153
- const Mi = {
1154
- anticipate: ii,
1155
- backInOut: si,
1156
- circInOut: oi
1153
+ const Ei = {
1154
+ anticipate: ri,
1155
+ backInOut: ii,
1156
+ circInOut: ai
1157
1157
  };
1158
- function na(t) {
1159
- return t in Mi;
1160
- }
1161
1158
  function sa(t) {
1162
- typeof t.ease == "string" && na(t.ease) && (t.ease = Mi[t.ease]);
1159
+ return t in Ei;
1160
+ }
1161
+ function ia(t) {
1162
+ typeof t.ease == "string" && sa(t.ease) && (t.ease = Ei[t.ease]);
1163
1163
  }
1164
1164
  const he = 10;
1165
- class ia extends Di {
1165
+ class ra extends Ci {
1166
1166
  constructor(e) {
1167
- sa(e), wi(e), super(e), e.startTime !== void 0 && (this.startTime = e.startTime), this.options = e;
1167
+ ia(e), Pi(e), super(e), e.startTime !== void 0 && (this.startTime = e.startTime), this.options = e;
1168
1168
  }
1169
1169
  /**
1170
1170
  * WAAPI doesn't natively have any interruption capabilities.
@@ -1185,14 +1185,14 @@ class ia extends Di {
1185
1185
  const a = new ln({
1186
1186
  ...r,
1187
1187
  autoplay: !1
1188
- }), l = Math.max(he, B.now() - this.startTime), c = _(0, he, l - he);
1188
+ }), l = Math.max(he, B.now() - this.startTime), c = X(0, he, l - he);
1189
1189
  n.setWithVelocity(a.sample(Math.max(0, l - c)).value, a.sample(l).value, c), a.stop();
1190
1190
  }
1191
1191
  }
1192
1192
  const Wn = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
1193
- (Q.test(t) || t === "0") && // And it contains numbers and/or colors
1193
+ (H.test(t) || t === "0") && // And it contains numbers and/or colors
1194
1194
  !t.startsWith("url("));
1195
- function ra(t) {
1195
+ function oa(t) {
1196
1196
  const e = t[0];
1197
1197
  if (t.length === 1)
1198
1198
  return !0;
@@ -1200,39 +1200,39 @@ function ra(t) {
1200
1200
  if (t[n] !== e)
1201
1201
  return !0;
1202
1202
  }
1203
- function oa(t, e, n, s) {
1203
+ function aa(t, e, n, s) {
1204
1204
  const i = t[0];
1205
1205
  if (i === null)
1206
1206
  return !1;
1207
1207
  if (e === "display" || e === "visibility")
1208
1208
  return !0;
1209
1209
  const o = t[t.length - 1], r = Wn(i, e), a = Wn(o, e);
1210
- return xt(r === a, `You are trying to animate ${e} from "${i}" to "${o}". "${r ? o : i}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : ra(t) || (n === "spring" || Vi(n)) && s;
1210
+ return xt(r === a, `You are trying to animate ${e} from "${i}" to "${o}". "${r ? o : i}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : oa(t) || (n === "spring" || Mi(n)) && s;
1211
1211
  }
1212
1212
  function Fe(t) {
1213
1213
  t.duration = 0, t.type = "keyframes";
1214
1214
  }
1215
- const aa = /* @__PURE__ */ new Set([
1215
+ const la = /* @__PURE__ */ new Set([
1216
1216
  "opacity",
1217
1217
  "clipPath",
1218
1218
  "filter",
1219
1219
  "transform"
1220
1220
  // TODO: Could be re-enabled now we have support for linear() easing
1221
1221
  // "background-color"
1222
- ]), la = /* @__PURE__ */ Ye(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1223
- function ca(t) {
1222
+ ]), ca = /* @__PURE__ */ Js(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1223
+ function ua(t) {
1224
1224
  const { motionValue: e, name: n, repeatDelay: s, repeatType: i, damping: o, type: r } = t;
1225
1225
  if (!(e?.owner?.current instanceof HTMLElement))
1226
1226
  return !1;
1227
1227
  const { onUpdate: l, transformTemplate: c } = e.owner.getProps();
1228
- return la() && n && aa.has(n) && (n !== "transform" || !c) && /**
1228
+ return ca() && n && la.has(n) && (n !== "transform" || !c) && /**
1229
1229
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
1230
1230
  * no way to read the value from WAAPI every frame.
1231
1231
  */
1232
1232
  !l && !s && i !== "mirror" && o !== 0 && r !== "inertia";
1233
1233
  }
1234
- const ua = 40;
1235
- class ha extends an {
1234
+ const ha = 40;
1235
+ class fa extends an {
1236
1236
  constructor({ autoplay: e = !0, delay: n = 0, type: s = "keyframes", repeat: i = 0, repeatDelay: o = 0, repeatType: r = "loop", keyframes: a, name: l, motionValue: c, element: u, ...h }) {
1237
1237
  super(), this.stop = () => {
1238
1238
  this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
@@ -1249,20 +1249,20 @@ class ha extends an {
1249
1249
  element: u,
1250
1250
  ...h
1251
1251
  }, d = u?.KeyframeResolver || cn;
1252
- this.keyframeResolver = new d(a, (p, v, g) => this.onKeyframesResolved(p, v, f, !g), l, c, u), this.keyframeResolver?.scheduleResolve();
1252
+ this.keyframeResolver = new d(a, (m, v, g) => this.onKeyframesResolved(m, v, f, !g), l, c, u), this.keyframeResolver?.scheduleResolve();
1253
1253
  }
1254
1254
  onKeyframesResolved(e, n, s, i) {
1255
1255
  this.keyframeResolver = void 0;
1256
1256
  const { name: o, type: r, velocity: a, delay: l, isHandoff: c, onUpdate: u } = s;
1257
- this.resolvedAt = B.now(), oa(e, o, r, a) || ((Y.instantAnimations || !l) && u?.(on(e, s, n)), e[0] = e[e.length - 1], Fe(s), s.repeat = 0);
1257
+ this.resolvedAt = B.now(), aa(e, o, r, a) || ((q.instantAnimations || !l) && u?.(on(e, s, n)), e[0] = e[e.length - 1], Fe(s), s.repeat = 0);
1258
1258
  const f = {
1259
- startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > ua ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1259
+ startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > ha ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1260
1260
  finalKeyframe: n,
1261
1261
  ...s,
1262
1262
  keyframes: e
1263
- }, d = !c && ca(f), p = f.motionValue?.owner?.current, v = d ? new ia({
1263
+ }, d = !c && ua(f), m = f.motionValue?.owner?.current, v = d ? new ra({
1264
1264
  ...f,
1265
- element: p
1265
+ element: m
1266
1266
  }) : new ln(f);
1267
1267
  v.finished.then(() => {
1268
1268
  this.notifyFinished();
@@ -1276,7 +1276,7 @@ class ha extends an {
1276
1276
  });
1277
1277
  }
1278
1278
  get animation() {
1279
- return this._animation || (this.keyframeResolver?.resume(), Xo()), this._animation;
1279
+ return this._animation || (this.keyframeResolver?.resume(), qo()), this._animation;
1280
1280
  }
1281
1281
  get duration() {
1282
1282
  return this.animation.duration;
@@ -1318,25 +1318,25 @@ class ha extends an {
1318
1318
  this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
1319
1319
  }
1320
1320
  }
1321
- function Ci(t, e, n, s = 0, i = 1) {
1321
+ function Ri(t, e, n, s = 0, i = 1) {
1322
1322
  const o = Array.from(t).sort((c, u) => c.sortNodePosition(u)).indexOf(e), r = t.size, a = (r - 1) * s;
1323
1323
  return typeof n == "function" ? n(o, r) : i === 1 ? o * s : a - o * s;
1324
1324
  }
1325
- const fa = (
1325
+ const da = (
1326
1326
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
1327
1327
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
1328
1328
  );
1329
- function da(t) {
1330
- const e = fa.exec(t);
1329
+ function ma(t) {
1330
+ const e = da.exec(t);
1331
1331
  if (!e)
1332
1332
  return [,];
1333
1333
  const [, n, s, i] = e;
1334
1334
  return [`--${n ?? s}`, i];
1335
1335
  }
1336
1336
  const pa = 4;
1337
- function Ei(t, e, n = 1) {
1338
- X(n <= pa, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1339
- const [s, i] = da(t);
1337
+ function Li(t, e, n = 1) {
1338
+ Y(n <= pa, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1339
+ const [s, i] = ma(t);
1340
1340
  if (!s)
1341
1341
  return;
1342
1342
  const o = window.getComputedStyle(e).getPropertyValue(s);
@@ -1344,31 +1344,31 @@ function Ei(t, e, n = 1) {
1344
1344
  const r = o.trim();
1345
1345
  return Ys(r) ? parseFloat(r) : r;
1346
1346
  }
1347
- return tn(i) ? Ei(i, e, n + 1) : i;
1347
+ return tn(i) ? Li(i, e, n + 1) : i;
1348
1348
  }
1349
- const ma = {
1349
+ const ga = {
1350
1350
  type: "spring",
1351
1351
  stiffness: 500,
1352
1352
  damping: 25,
1353
1353
  restSpeed: 10
1354
- }, ga = (t) => ({
1354
+ }, ya = (t) => ({
1355
1355
  type: "spring",
1356
1356
  stiffness: 550,
1357
1357
  damping: t === 0 ? 2 * Math.sqrt(550) : 30,
1358
1358
  restSpeed: 10
1359
- }), ya = {
1359
+ }), va = {
1360
1360
  type: "keyframes",
1361
1361
  duration: 0.8
1362
- }, va = {
1362
+ }, Ta = {
1363
1363
  type: "keyframes",
1364
1364
  ease: [0.25, 0.1, 0.35, 1],
1365
1365
  duration: 0.3
1366
- }, Ta = (t, { keyframes: e }) => e.length > 2 ? ya : St.has(t) ? t.startsWith("scale") ? ga(e[1]) : ma : va, xa = (t) => t !== null;
1367
- function wa(t, { repeat: e, repeatType: n = "loop" }, s) {
1368
- const i = t.filter(xa), o = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
1366
+ }, xa = (t, { keyframes: e }) => e.length > 2 ? va : St.has(t) ? t.startsWith("scale") ? ya(e[1]) : ga : Ta, wa = (t) => t !== null;
1367
+ function Pa(t, { repeat: e, repeatType: n = "loop" }, s) {
1368
+ const i = t.filter(wa), o = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
1369
1369
  return i[o];
1370
1370
  }
1371
- function Ri(t, e) {
1371
+ function ki(t, e) {
1372
1372
  if (t?.inherit && e) {
1373
1373
  const { inherit: n, ...s } = t;
1374
1374
  return { ...e, ...s };
@@ -1377,9 +1377,9 @@ function Ri(t, e) {
1377
1377
  }
1378
1378
  function un(t, e) {
1379
1379
  const n = t?.[e] ?? t?.default ?? t;
1380
- return n !== t ? Ri(n, t) : n;
1380
+ return n !== t ? ki(n, t) : n;
1381
1381
  }
1382
- function Pa({ when: t, delay: e, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
1382
+ function Sa({ when: t, delay: e, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
1383
1383
  return !!Object.keys(u).length;
1384
1384
  }
1385
1385
  const hn = (t, e, n, s = {}, i, o) => (r) => {
@@ -1402,10 +1402,10 @@ const hn = (t, e, n, s = {}, i, o) => (r) => {
1402
1402
  motionValue: e,
1403
1403
  element: o ? void 0 : i
1404
1404
  };
1405
- Pa(a) || Object.assign(u, Ta(t, u)), u.duration && (u.duration = /* @__PURE__ */ K(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ K(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
1405
+ Sa(a) || Object.assign(u, xa(t, u)), u.duration && (u.duration = /* @__PURE__ */ K(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ K(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
1406
1406
  let h = !1;
1407
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Fe(u), u.delay === 0 && (h = !0)), (Y.instantAnimations || Y.skipAnimations || i?.shouldSkipAnimations) && (h = !0, Fe(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, h && !o && e.get() !== void 0) {
1408
- const f = wa(u.keyframes, a);
1407
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Fe(u), u.delay === 0 && (h = !0)), (q.instantAnimations || q.skipAnimations || i?.shouldSkipAnimations) && (h = !0, Fe(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, h && !o && e.get() !== void 0) {
1408
+ const f = Pa(u.keyframes, a);
1409
1409
  if (f !== void 0) {
1410
1410
  A.update(() => {
1411
1411
  u.onUpdate(f), u.onComplete();
@@ -1413,7 +1413,7 @@ const hn = (t, e, n, s = {}, i, o) => (r) => {
1413
1413
  return;
1414
1414
  }
1415
1415
  }
1416
- return a.isSync ? new ln(u) : new ha(u);
1416
+ return a.isSync ? new ln(u) : new fa(u);
1417
1417
  };
1418
1418
  function Kn(t) {
1419
1419
  const e = [{}, {}];
@@ -1436,7 +1436,7 @@ function yt(t, e, n) {
1436
1436
  const s = t.getProps();
1437
1437
  return fn(s, e, n !== void 0 ? n : s.custom, t);
1438
1438
  }
1439
- const Li = /* @__PURE__ */ new Set([
1439
+ const Bi = /* @__PURE__ */ new Set([
1440
1440
  "width",
1441
1441
  "height",
1442
1442
  "top",
@@ -1444,8 +1444,8 @@ const Li = /* @__PURE__ */ new Set([
1444
1444
  "right",
1445
1445
  "bottom",
1446
1446
  ...Pt
1447
- ]), $n = 30, Sa = (t) => !isNaN(parseFloat(t));
1448
- class ba {
1447
+ ]), $n = 30, ba = (t) => !isNaN(parseFloat(t));
1448
+ class Aa {
1449
1449
  /**
1450
1450
  * @param init - The initiating value
1451
1451
  * @param config - Optional configuration options
@@ -1461,7 +1461,7 @@ class ba {
1461
1461
  }, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
1462
1462
  }
1463
1463
  setCurrent(e) {
1464
- this.current = e, this.updatedAt = B.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Sa(this.current));
1464
+ this.current = e, this.updatedAt = B.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = ba(this.current));
1465
1465
  }
1466
1466
  setPrevFrameValue(e = this.current) {
1467
1467
  this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -1593,7 +1593,7 @@ class ba {
1593
1593
  if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > $n)
1594
1594
  return 0;
1595
1595
  const n = Math.min(this.updatedAt - this.prevUpdatedAt, $n);
1596
- return Js(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1596
+ return Qs(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1597
1597
  }
1598
1598
  /**
1599
1599
  * Registers a new animation to control this `MotionValue`. Only one
@@ -1645,82 +1645,82 @@ class ba {
1645
1645
  }
1646
1646
  }
1647
1647
  function vt(t, e) {
1648
- return new ba(t, e);
1648
+ return new Aa(t, e);
1649
1649
  }
1650
1650
  const Ie = (t) => Array.isArray(t);
1651
- function Aa(t, e, n) {
1651
+ function Va(t, e, n) {
1652
1652
  t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, vt(n));
1653
1653
  }
1654
- function Va(t) {
1654
+ function Da(t) {
1655
1655
  return Ie(t) ? t[t.length - 1] || 0 : t;
1656
1656
  }
1657
- function Da(t, e) {
1657
+ function Ma(t, e) {
1658
1658
  const n = yt(t, e);
1659
1659
  let { transitionEnd: s = {}, transition: i = {}, ...o } = n || {};
1660
1660
  o = { ...o, ...s };
1661
1661
  for (const r in o) {
1662
- const a = Va(o[r]);
1663
- Aa(t, r, a);
1662
+ const a = Da(o[r]);
1663
+ Va(t, r, a);
1664
1664
  }
1665
1665
  }
1666
1666
  const k = (t) => !!(t && t.getVelocity);
1667
- function Ma(t) {
1667
+ function Ca(t) {
1668
1668
  return !!(k(t) && t.add);
1669
1669
  }
1670
1670
  function Oe(t, e) {
1671
1671
  const n = t.getValue("willChange");
1672
- if (Ma(n))
1672
+ if (Ca(n))
1673
1673
  return n.add(e);
1674
- if (!n && Y.WillChange) {
1675
- const s = new Y.WillChange("auto");
1674
+ if (!n && q.WillChange) {
1675
+ const s = new q.WillChange("auto");
1676
1676
  t.addValue("willChange", s), s.add(e);
1677
1677
  }
1678
1678
  }
1679
1679
  function dn(t) {
1680
1680
  return t.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1681
1681
  }
1682
- const Ca = "framerAppearId", ki = "data-" + dn(Ca);
1683
- function Bi(t) {
1684
- return t.props[ki];
1682
+ const Ea = "framerAppearId", Fi = "data-" + dn(Ea);
1683
+ function Ii(t) {
1684
+ return t.props[Fi];
1685
1685
  }
1686
- function Ea({ protectedKeys: t, needsAnimating: e }, n) {
1686
+ function Ra({ protectedKeys: t, needsAnimating: e }, n) {
1687
1687
  const s = t.hasOwnProperty(n) && e[n] !== !0;
1688
1688
  return e[n] = !1, s;
1689
1689
  }
1690
- function Fi(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1690
+ function Oi(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1691
1691
  let { transition: o, transitionEnd: r, ...a } = e;
1692
1692
  const l = t.getDefaultTransition();
1693
- o = o ? Ri(o, l) : l;
1693
+ o = o ? ki(o, l) : l;
1694
1694
  const c = o?.reduceMotion;
1695
1695
  s && (o = s);
1696
1696
  const u = [], h = i && t.animationState && t.animationState.getState()[i];
1697
1697
  for (const f in a) {
1698
- const d = t.getValue(f, t.latestValues[f] ?? null), p = a[f];
1699
- if (p === void 0 || h && Ea(h, f))
1698
+ const d = t.getValue(f, t.latestValues[f] ?? null), m = a[f];
1699
+ if (m === void 0 || h && Ra(h, f))
1700
1700
  continue;
1701
1701
  const v = {
1702
1702
  delay: n,
1703
1703
  ...un(o || {}, f)
1704
1704
  }, g = d.get();
1705
- if (g !== void 0 && !d.isAnimating && !Array.isArray(p) && p === g && !v.velocity)
1705
+ if (g !== void 0 && !d.isAnimating && !Array.isArray(m) && m === g && !v.velocity)
1706
1706
  continue;
1707
- let m = !1;
1707
+ let p = !1;
1708
1708
  if (window.MotionHandoffAnimation) {
1709
- const P = Bi(t);
1709
+ const P = Ii(t);
1710
1710
  if (P) {
1711
1711
  const w = window.MotionHandoffAnimation(P, f, A);
1712
- w !== null && (v.startTime = w, m = !0);
1712
+ w !== null && (v.startTime = w, p = !0);
1713
1713
  }
1714
1714
  }
1715
1715
  Oe(t, f);
1716
1716
  const x = c ?? t.shouldReduceMotion;
1717
- d.start(hn(f, d, p, x && Li.has(f) ? { type: !1 } : v, t, m));
1717
+ d.start(hn(f, d, m, x && Bi.has(f) ? { type: !1 } : v, t, p));
1718
1718
  const y = d.animation;
1719
1719
  y && u.push(y);
1720
1720
  }
1721
1721
  if (r) {
1722
1722
  const f = () => A.update(() => {
1723
- r && Da(t, r);
1723
+ r && Ma(t, r);
1724
1724
  });
1725
1725
  u.length ? Promise.all(u).then(f) : f();
1726
1726
  }
@@ -1730,9 +1730,9 @@ function je(t, e, n = {}) {
1730
1730
  const s = yt(t, e, n.type === "exit" ? t.presenceContext?.custom : void 0);
1731
1731
  let { transition: i = t.getDefaultTransition() || {} } = s || {};
1732
1732
  n.transitionOverride && (i = n.transitionOverride);
1733
- const o = s ? () => Promise.all(Fi(t, s, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
1733
+ const o = s ? () => Promise.all(Oi(t, s, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
1734
1734
  const { delayChildren: c = 0, staggerChildren: u, staggerDirection: h } = i;
1735
- return Ra(t, e, l, c, u, h, n);
1735
+ return La(t, e, l, c, u, h, n);
1736
1736
  } : () => Promise.resolve(), { when: a } = i;
1737
1737
  if (a) {
1738
1738
  const [l, c] = a === "beforeChildren" ? [o, r] : [r, o];
@@ -1740,16 +1740,16 @@ function je(t, e, n = {}) {
1740
1740
  } else
1741
1741
  return Promise.all([o(), r(n.delay)]);
1742
1742
  }
1743
- function Ra(t, e, n = 0, s = 0, i = 0, o = 1, r) {
1743
+ function La(t, e, n = 0, s = 0, i = 0, o = 1, r) {
1744
1744
  const a = [];
1745
1745
  for (const l of t.variantChildren)
1746
1746
  l.notify("AnimationStart", e), a.push(je(l, e, {
1747
1747
  ...r,
1748
- delay: n + (typeof s == "function" ? 0 : s) + Ci(t.variantChildren, l, s, i, o)
1748
+ delay: n + (typeof s == "function" ? 0 : s) + Ri(t.variantChildren, l, s, i, o)
1749
1749
  }).then(() => l.notify("AnimationComplete", e)));
1750
1750
  return Promise.all(a);
1751
1751
  }
1752
- function La(t, e, n = {}) {
1752
+ function ka(t, e, n = {}) {
1753
1753
  t.notify("AnimationStart", e);
1754
1754
  let s;
1755
1755
  if (Array.isArray(e)) {
@@ -1759,21 +1759,21 @@ function La(t, e, n = {}) {
1759
1759
  s = je(t, e, n);
1760
1760
  else {
1761
1761
  const i = typeof e == "function" ? yt(t, e, n.custom) : e;
1762
- s = Promise.all(Fi(t, i, n));
1762
+ s = Promise.all(Oi(t, i, n));
1763
1763
  }
1764
1764
  return s.then(() => {
1765
1765
  t.notify("AnimationComplete", e);
1766
1766
  });
1767
1767
  }
1768
- const ka = {
1768
+ const Ba = {
1769
1769
  test: (t) => t === "auto",
1770
1770
  parse: (t) => t
1771
- }, Ii = (t) => (e) => e.test(t), Oi = [wt, T, G, q, ro, io, ka], zn = (t) => Oi.find(Ii(t));
1772
- function Ba(t) {
1771
+ }, ji = (t) => (e) => e.test(t), Ni = [wt, T, _, Z, ao, oo, Ba], zn = (t) => Ni.find(ji(t));
1772
+ function Fa(t) {
1773
1773
  return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Zs(t) : !0;
1774
1774
  }
1775
- const Fa = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1776
- function Ia(t) {
1775
+ const Ia = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1776
+ function Oa(t) {
1777
1777
  const [e, n] = t.slice(0, -1).split("(");
1778
1778
  if (e === "drop-shadow")
1779
1779
  return t;
@@ -1781,30 +1781,36 @@ function Ia(t) {
1781
1781
  if (!s)
1782
1782
  return t;
1783
1783
  const i = n.replace(s, "");
1784
- let o = Fa.has(e) ? 1 : 0;
1784
+ let o = Ia.has(e) ? 1 : 0;
1785
1785
  return s !== n && (o *= 100), e + "(" + o + i + ")";
1786
1786
  }
1787
- const Oa = /\b([a-z-]*)\(.*?\)/gu, Ne = {
1788
- ...Q,
1787
+ const ja = /\b([a-z-]*)\(.*?\)/gu, Ne = {
1788
+ ...H,
1789
+ getAnimatableNone: (t) => {
1790
+ const e = t.match(ja);
1791
+ return e ? e.map(Oa).join(" ") : t;
1792
+ }
1793
+ }, Ue = {
1794
+ ...H,
1789
1795
  getAnimatableNone: (t) => {
1790
- const e = t.match(Oa);
1791
- return e ? e.map(Ia).join(" ") : t;
1796
+ const e = H.parse(t);
1797
+ return H.createTransformer(t)(e.map((s) => typeof s == "number" ? 0 : typeof s == "object" ? { ...s, alpha: 1 } : s));
1792
1798
  }
1793
1799
  }, Hn = {
1794
1800
  ...wt,
1795
1801
  transform: Math.round
1796
- }, ja = {
1797
- rotate: q,
1798
- rotateX: q,
1799
- rotateY: q,
1800
- rotateZ: q,
1802
+ }, Na = {
1803
+ rotate: Z,
1804
+ rotateX: Z,
1805
+ rotateY: Z,
1806
+ rotateZ: Z,
1801
1807
  scale: Nt,
1802
1808
  scaleX: Nt,
1803
1809
  scaleY: Nt,
1804
1810
  scaleZ: Nt,
1805
- skew: q,
1806
- skewX: q,
1807
- skewY: q,
1811
+ skew: Z,
1812
+ skewX: Z,
1813
+ skewY: Z,
1808
1814
  distance: T,
1809
1815
  translateX: T,
1810
1816
  translateY: T,
@@ -1818,7 +1824,7 @@ const Oa = /\b([a-z-]*)\(.*?\)/gu, Ne = {
1818
1824
  originX: Rn,
1819
1825
  originY: Rn,
1820
1826
  originZ: T
1821
- }, pn = {
1827
+ }, mn = {
1822
1828
  // Border props
1823
1829
  borderWidth: T,
1824
1830
  borderTopWidth: T,
@@ -1874,14 +1880,14 @@ const Oa = /\b([a-z-]*)\(.*?\)/gu, Ne = {
1874
1880
  // Misc
1875
1881
  backgroundPositionX: T,
1876
1882
  backgroundPositionY: T,
1877
- ...ja,
1883
+ ...Na,
1878
1884
  zIndex: Hn,
1879
1885
  // SVG
1880
1886
  fillOpacity: Et,
1881
1887
  strokeOpacity: Et,
1882
1888
  numOctaves: Hn
1883
- }, Na = {
1884
- ...pn,
1889
+ }, Ua = {
1890
+ ...mn,
1885
1891
  // Color props
1886
1892
  color: M,
1887
1893
  backgroundColor: M,
@@ -1895,24 +1901,26 @@ const Oa = /\b([a-z-]*)\(.*?\)/gu, Ne = {
1895
1901
  borderBottomColor: M,
1896
1902
  borderLeftColor: M,
1897
1903
  filter: Ne,
1898
- WebkitFilter: Ne
1899
- }, ji = (t) => Na[t];
1900
- function Ni(t, e) {
1901
- let n = ji(t);
1902
- return n !== Ne && (n = Q), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
1903
- }
1904
- const Ua = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1905
- function Wa(t, e, n) {
1904
+ WebkitFilter: Ne,
1905
+ mask: Ue,
1906
+ WebkitMask: Ue
1907
+ }, Ui = (t) => Ua[t], Wa = /* @__PURE__ */ new Set([Ne, Ue]);
1908
+ function Wi(t, e) {
1909
+ let n = Ui(t);
1910
+ return Wa.has(n) || (n = H), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
1911
+ }
1912
+ const Ka = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1913
+ function $a(t, e, n) {
1906
1914
  let s = 0, i;
1907
1915
  for (; s < t.length && !i; ) {
1908
1916
  const o = t[s];
1909
- typeof o == "string" && !Ua.has(o) && Rt(o).values.length && (i = t[s]), s++;
1917
+ typeof o == "string" && !Ka.has(o) && Rt(o).values.length && (i = t[s]), s++;
1910
1918
  }
1911
1919
  if (i && n)
1912
1920
  for (const o of e)
1913
- t[o] = Ni(n, i);
1921
+ t[o] = Wi(n, i);
1914
1922
  }
1915
- class Ka extends cn {
1923
+ class za extends cn {
1916
1924
  constructor(e, n, s, i, o) {
1917
1925
  super(e, n, s, i, o, !0);
1918
1926
  }
@@ -1924,14 +1932,14 @@ class Ka extends cn {
1924
1932
  for (let u = 0; u < e.length; u++) {
1925
1933
  let h = e[u];
1926
1934
  if (typeof h == "string" && (h = h.trim(), tn(h))) {
1927
- const f = Ei(h, n.current);
1935
+ const f = Li(h, n.current);
1928
1936
  f !== void 0 && (e[u] = f), u === e.length - 1 && (this.finalKeyframe = h);
1929
1937
  }
1930
1938
  }
1931
- if (this.resolveNoneKeyframes(), !Li.has(s) || e.length !== 2)
1939
+ if (this.resolveNoneKeyframes(), !Bi.has(s) || e.length !== 2)
1932
1940
  return;
1933
1941
  const [i, o] = e, r = zn(i), a = zn(o), l = En(i), c = En(o);
1934
- if (l !== c && Z[s]) {
1942
+ if (l !== c && J[s]) {
1935
1943
  this.needsMeasurement = !0;
1936
1944
  return;
1937
1945
  }
@@ -1941,19 +1949,19 @@ class Ka extends cn {
1941
1949
  const h = e[u];
1942
1950
  typeof h == "string" && (e[u] = parseFloat(h));
1943
1951
  }
1944
- else Z[s] && (this.needsMeasurement = !0);
1952
+ else J[s] && (this.needsMeasurement = !0);
1945
1953
  }
1946
1954
  resolveNoneKeyframes() {
1947
1955
  const { unresolvedKeyframes: e, name: n } = this, s = [];
1948
1956
  for (let i = 0; i < e.length; i++)
1949
- (e[i] === null || Ba(e[i])) && s.push(i);
1950
- s.length && Wa(e, s, n);
1957
+ (e[i] === null || Fa(e[i])) && s.push(i);
1958
+ s.length && $a(e, s, n);
1951
1959
  }
1952
1960
  measureInitialState() {
1953
1961
  const { element: e, unresolvedKeyframes: n, name: s } = this;
1954
1962
  if (!e || !e.current)
1955
1963
  return;
1956
- s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Z[s](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
1964
+ s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = J[s](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
1957
1965
  const i = n[n.length - 1];
1958
1966
  i !== void 0 && e.getValue(s, i).jump(i, !1);
1959
1967
  }
@@ -1964,12 +1972,12 @@ class Ka extends cn {
1964
1972
  const i = e.getValue(n);
1965
1973
  i && i.jump(this.measuredOrigin, !1);
1966
1974
  const o = s.length - 1, r = s[o];
1967
- s[o] = Z[n](e.measureViewportBox(), window.getComputedStyle(e.current)), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.removedTransforms?.length && this.removedTransforms.forEach(([a, l]) => {
1975
+ s[o] = J[n](e.measureViewportBox(), window.getComputedStyle(e.current)), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.removedTransforms?.length && this.removedTransforms.forEach(([a, l]) => {
1968
1976
  e.getValue(a).set(l);
1969
1977
  }), this.resolveNoneKeyframes();
1970
1978
  }
1971
1979
  }
1972
- const $a = /* @__PURE__ */ new Set([
1980
+ const Ha = /* @__PURE__ */ new Set([
1973
1981
  "opacity",
1974
1982
  "clipPath",
1975
1983
  "filter",
@@ -1978,7 +1986,7 @@ const $a = /* @__PURE__ */ new Set([
1978
1986
  // or until we implement support for linear() easing.
1979
1987
  // "background-color"
1980
1988
  ]);
1981
- function Ui(t, e, n) {
1989
+ function Ki(t, e, n) {
1982
1990
  if (t == null)
1983
1991
  return [];
1984
1992
  if (t instanceof EventTarget)
@@ -1990,48 +1998,48 @@ function Ui(t, e, n) {
1990
1998
  }
1991
1999
  return Array.from(t).filter((s) => s != null);
1992
2000
  }
1993
- const Wi = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
1994
- function za(t) {
2001
+ const $i = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
2002
+ function Ga(t) {
1995
2003
  return qs(t) && "offsetHeight" in t;
1996
2004
  }
1997
- const { schedule: mn } = /* @__PURE__ */ ci(queueMicrotask, !1), z = {
2005
+ const { schedule: pn } = /* @__PURE__ */ ui(queueMicrotask, !1), z = {
1998
2006
  x: !1,
1999
2007
  y: !1
2000
2008
  };
2001
- function Ki() {
2009
+ function zi() {
2002
2010
  return z.x || z.y;
2003
2011
  }
2004
- function Ha(t) {
2012
+ function _a(t) {
2005
2013
  return t === "x" || t === "y" ? z[t] ? null : (z[t] = !0, () => {
2006
2014
  z[t] = !1;
2007
2015
  }) : z.x || z.y ? null : (z.x = z.y = !0, () => {
2008
2016
  z.x = z.y = !1;
2009
2017
  });
2010
2018
  }
2011
- function $i(t, e) {
2012
- const n = Ui(t), s = new AbortController(), i = {
2019
+ function Hi(t, e) {
2020
+ const n = Ki(t), s = new AbortController(), i = {
2013
2021
  passive: !0,
2014
2022
  ...e,
2015
2023
  signal: s.signal
2016
2024
  };
2017
2025
  return [n, i, () => s.abort()];
2018
2026
  }
2019
- function Ga(t) {
2020
- return !(t.pointerType === "touch" || Ki());
2027
+ function Xa(t) {
2028
+ return !(t.pointerType === "touch" || zi());
2021
2029
  }
2022
- function _a(t, e, n = {}) {
2023
- const [s, i, o] = $i(t, n);
2030
+ function Ya(t, e, n = {}) {
2031
+ const [s, i, o] = Hi(t, n);
2024
2032
  return s.forEach((r) => {
2025
2033
  let a = !1, l = !1, c;
2026
2034
  const u = () => {
2027
- r.removeEventListener("pointerleave", p);
2035
+ r.removeEventListener("pointerleave", m);
2028
2036
  }, h = (g) => {
2029
2037
  c && (c(g), c = void 0), u();
2030
2038
  }, f = (g) => {
2031
2039
  a = !1, window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", f), l && (l = !1, h(g));
2032
2040
  }, d = () => {
2033
2041
  a = !0, window.addEventListener("pointerup", f, i), window.addEventListener("pointercancel", f, i);
2034
- }, p = (g) => {
2042
+ }, m = (g) => {
2035
2043
  if (g.pointerType !== "touch") {
2036
2044
  if (a) {
2037
2045
  l = !0;
@@ -2040,29 +2048,29 @@ function _a(t, e, n = {}) {
2040
2048
  h(g);
2041
2049
  }
2042
2050
  }, v = (g) => {
2043
- if (!Ga(g))
2051
+ if (!Xa(g))
2044
2052
  return;
2045
2053
  l = !1;
2046
- const m = e(r, g);
2047
- typeof m == "function" && (c = m, r.addEventListener("pointerleave", p, i));
2054
+ const p = e(r, g);
2055
+ typeof p == "function" && (c = p, r.addEventListener("pointerleave", m, i));
2048
2056
  };
2049
2057
  r.addEventListener("pointerenter", v, i), r.addEventListener("pointerdown", d, i);
2050
2058
  }), o;
2051
2059
  }
2052
- const zi = (t, e) => e ? t === e ? !0 : zi(t, e.parentElement) : !1, gn = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, Xa = /* @__PURE__ */ new Set([
2060
+ const Gi = (t, e) => e ? t === e ? !0 : Gi(t, e.parentElement) : !1, gn = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, qa = /* @__PURE__ */ new Set([
2053
2061
  "BUTTON",
2054
2062
  "INPUT",
2055
2063
  "SELECT",
2056
2064
  "TEXTAREA",
2057
2065
  "A"
2058
2066
  ]);
2059
- function Ya(t) {
2060
- return Xa.has(t.tagName) || t.isContentEditable === !0;
2061
- }
2062
- const qa = /* @__PURE__ */ new Set(["INPUT", "SELECT", "TEXTAREA"]);
2063
2067
  function Za(t) {
2064
2068
  return qa.has(t.tagName) || t.isContentEditable === !0;
2065
2069
  }
2070
+ const Ja = /* @__PURE__ */ new Set(["INPUT", "SELECT", "TEXTAREA"]);
2071
+ function Qa(t) {
2072
+ return Ja.has(t.tagName) || t.isContentEditable === !0;
2073
+ }
2066
2074
  const Kt = /* @__PURE__ */ new WeakSet();
2067
2075
  function Gn(t) {
2068
2076
  return (e) => {
@@ -2072,7 +2080,7 @@ function Gn(t) {
2072
2080
  function fe(t, e) {
2073
2081
  t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
2074
2082
  }
2075
- const Ja = (t, e) => {
2083
+ const tl = (t, e) => {
2076
2084
  const n = t.currentTarget;
2077
2085
  if (!n)
2078
2086
  return;
@@ -2088,26 +2096,26 @@ const Ja = (t, e) => {
2088
2096
  n.addEventListener("keydown", s, e), n.addEventListener("blur", () => n.removeEventListener("keydown", s), e);
2089
2097
  };
2090
2098
  function _n(t) {
2091
- return gn(t) && !Ki();
2099
+ return gn(t) && !zi();
2092
2100
  }
2093
2101
  const Xn = /* @__PURE__ */ new WeakSet();
2094
- function Qa(t, e, n = {}) {
2095
- const [s, i, o] = $i(t, n), r = (a) => {
2102
+ function el(t, e, n = {}) {
2103
+ const [s, i, o] = Hi(t, n), r = (a) => {
2096
2104
  const l = a.currentTarget;
2097
2105
  if (!_n(a) || Xn.has(a))
2098
2106
  return;
2099
2107
  Kt.add(l), n.stopPropagation && Xn.add(a);
2100
- const c = e(l, a), u = (d, p) => {
2101
- window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", f), Kt.has(l) && Kt.delete(l), _n(d) && typeof c == "function" && c(d, { success: p });
2108
+ const c = e(l, a), u = (d, m) => {
2109
+ window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", f), Kt.has(l) && Kt.delete(l), _n(d) && typeof c == "function" && c(d, { success: m });
2102
2110
  }, h = (d) => {
2103
- u(d, l === window || l === document || n.useGlobalTarget || zi(l, d.target));
2111
+ u(d, l === window || l === document || n.useGlobalTarget || Gi(l, d.target));
2104
2112
  }, f = (d) => {
2105
2113
  u(d, !1);
2106
2114
  };
2107
2115
  window.addEventListener("pointerup", h, i), window.addEventListener("pointercancel", f, i);
2108
2116
  };
2109
2117
  return s.forEach((a) => {
2110
- (n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, i), za(a) && (a.addEventListener("focus", (c) => Ja(c, i)), !Ya(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
2118
+ (n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, i), Ga(a) && (a.addEventListener("focus", (c) => tl(c, i)), !Za(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
2111
2119
  }), o;
2112
2120
  }
2113
2121
  function yn(t) {
@@ -2115,28 +2123,28 @@ function yn(t) {
2115
2123
  }
2116
2124
  const $t = /* @__PURE__ */ new WeakMap();
2117
2125
  let zt;
2118
- const Hi = (t, e, n) => (s, i) => i && i[0] ? i[0][t + "Size"] : yn(s) && "getBBox" in s ? s.getBBox()[e] : s[n], tl = /* @__PURE__ */ Hi("inline", "width", "offsetWidth"), el = /* @__PURE__ */ Hi("block", "height", "offsetHeight");
2119
- function nl({ target: t, borderBoxSize: e }) {
2126
+ const _i = (t, e, n) => (s, i) => i && i[0] ? i[0][t + "Size"] : yn(s) && "getBBox" in s ? s.getBBox()[e] : s[n], nl = /* @__PURE__ */ _i("inline", "width", "offsetWidth"), sl = /* @__PURE__ */ _i("block", "height", "offsetHeight");
2127
+ function il({ target: t, borderBoxSize: e }) {
2120
2128
  $t.get(t)?.forEach((n) => {
2121
2129
  n(t, {
2122
2130
  get width() {
2123
- return tl(t, e);
2131
+ return nl(t, e);
2124
2132
  },
2125
2133
  get height() {
2126
- return el(t, e);
2134
+ return sl(t, e);
2127
2135
  }
2128
2136
  });
2129
2137
  });
2130
2138
  }
2131
- function sl(t) {
2132
- t.forEach(nl);
2139
+ function rl(t) {
2140
+ t.forEach(il);
2133
2141
  }
2134
- function il() {
2135
- typeof ResizeObserver > "u" || (zt = new ResizeObserver(sl));
2142
+ function ol() {
2143
+ typeof ResizeObserver > "u" || (zt = new ResizeObserver(rl));
2136
2144
  }
2137
- function rl(t, e) {
2138
- zt || il();
2139
- const n = Ui(t);
2145
+ function al(t, e) {
2146
+ zt || ol();
2147
+ const n = Ki(t);
2140
2148
  return n.forEach((s) => {
2141
2149
  let i = $t.get(s);
2142
2150
  i || (i = /* @__PURE__ */ new Set(), $t.set(s, i)), i.add(e), zt?.observe(s);
@@ -2149,7 +2157,7 @@ function rl(t, e) {
2149
2157
  }
2150
2158
  const Ht = /* @__PURE__ */ new Set();
2151
2159
  let dt;
2152
- function ol() {
2160
+ function ll() {
2153
2161
  dt = () => {
2154
2162
  const t = {
2155
2163
  get width() {
@@ -2162,29 +2170,29 @@ function ol() {
2162
2170
  Ht.forEach((e) => e(t));
2163
2171
  }, window.addEventListener("resize", dt);
2164
2172
  }
2165
- function al(t) {
2166
- return Ht.add(t), dt || ol(), () => {
2173
+ function cl(t) {
2174
+ return Ht.add(t), dt || ll(), () => {
2167
2175
  Ht.delete(t), !Ht.size && typeof dt == "function" && (window.removeEventListener("resize", dt), dt = void 0);
2168
2176
  };
2169
2177
  }
2170
2178
  function Yn(t, e) {
2171
- return typeof t == "function" ? al(t) : rl(t, e);
2179
+ return typeof t == "function" ? cl(t) : al(t, e);
2172
2180
  }
2173
- function ll(t) {
2181
+ function ul(t) {
2174
2182
  return yn(t) && t.tagName === "svg";
2175
2183
  }
2176
- const cl = [...Oi, M, Q], ul = (t) => cl.find(Ii(t)), qn = () => ({
2184
+ const hl = [...Ni, M, H], fl = (t) => hl.find(ji(t)), qn = () => ({
2177
2185
  translate: 0,
2178
2186
  scale: 1,
2179
2187
  origin: 0,
2180
2188
  originPoint: 0
2181
- }), pt = () => ({
2189
+ }), mt = () => ({
2182
2190
  x: qn(),
2183
2191
  y: qn()
2184
2192
  }), Zn = () => ({ min: 0, max: 0 }), E = () => ({
2185
2193
  x: Zn(),
2186
2194
  y: Zn()
2187
- }), hl = /* @__PURE__ */ new WeakMap();
2195
+ }), dl = /* @__PURE__ */ new WeakMap();
2188
2196
  function se(t) {
2189
2197
  return t !== null && typeof t == "object" && typeof t.start == "function";
2190
2198
  }
@@ -2203,10 +2211,10 @@ const vn = [
2203
2211
  function ie(t) {
2204
2212
  return se(t.animate) || Tn.some((e) => Lt(t[e]));
2205
2213
  }
2206
- function Gi(t) {
2214
+ function Xi(t) {
2207
2215
  return !!(ie(t) || t.variants);
2208
2216
  }
2209
- function fl(t, e, n) {
2217
+ function ml(t, e, n) {
2210
2218
  for (const s in e) {
2211
2219
  const i = e[s], o = n[s];
2212
2220
  if (k(i))
@@ -2226,14 +2234,14 @@ function fl(t, e, n) {
2226
2234
  e[s] === void 0 && t.removeValue(s);
2227
2235
  return e;
2228
2236
  }
2229
- const Ue = { current: null }, _i = { current: !1 }, dl = typeof window < "u";
2230
- function pl() {
2231
- if (_i.current = !0, !!dl)
2237
+ const We = { current: null }, Yi = { current: !1 }, pl = typeof window < "u";
2238
+ function gl() {
2239
+ if (Yi.current = !0, !!pl)
2232
2240
  if (window.matchMedia) {
2233
- const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Ue.current = t.matches;
2241
+ const t = window.matchMedia("(prefers-reduced-motion)"), e = () => We.current = t.matches;
2234
2242
  t.addEventListener("change", e), e();
2235
2243
  } else
2236
- Ue.current = !1;
2244
+ We.current = !1;
2237
2245
  }
2238
2246
  const Jn = [
2239
2247
  "AnimationStart",
@@ -2245,13 +2253,13 @@ const Jn = [
2245
2253
  "LayoutAnimationComplete"
2246
2254
  ];
2247
2255
  let Jt = {};
2248
- function Xi(t) {
2256
+ function qi(t) {
2249
2257
  Jt = t;
2250
2258
  }
2251
- function ml() {
2259
+ function yl() {
2252
2260
  return Jt;
2253
2261
  }
2254
- class gl {
2262
+ class vl {
2255
2263
  /**
2256
2264
  * This method takes React props and returns found MotionValues. For example, HTML
2257
2265
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -2270,21 +2278,21 @@ class gl {
2270
2278
  this.renderScheduledAt < d && (this.renderScheduledAt = d, A.render(this.render, !1, !0));
2271
2279
  };
2272
2280
  const { latestValues: c, renderState: u } = a;
2273
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = u, this.parent = e, this.props = n, this.presenceContext = s, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.skipAnimationsConfig = o, this.options = l, this.blockInitialAnimation = !!r, this.isControllingVariants = ie(n), this.isVariantNode = Gi(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2281
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = u, this.parent = e, this.props = n, this.presenceContext = s, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.skipAnimationsConfig = o, this.options = l, this.blockInitialAnimation = !!r, this.isControllingVariants = ie(n), this.isVariantNode = Xi(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2274
2282
  const { willChange: h, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
2275
2283
  for (const d in f) {
2276
- const p = f[d];
2277
- c[d] !== void 0 && k(p) && p.set(c[d]);
2284
+ const m = f[d];
2285
+ c[d] !== void 0 && k(m) && m.set(c[d]);
2278
2286
  }
2279
2287
  }
2280
2288
  mount(e) {
2281
2289
  if (this.hasBeenMounted)
2282
2290
  for (const n in this.initialValues)
2283
2291
  this.values.get(n)?.jump(this.initialValues[n]), this.latestValues[n] = this.initialValues[n];
2284
- this.current = e, hl.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), 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 : (_i.current || pl(), this.shouldReduceMotion = Ue.current), process.env.NODE_ENV !== "production" && Ze(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;
2292
+ this.current = e, dl.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), 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 : (Yi.current || gl(), this.shouldReduceMotion = We.current), process.env.NODE_ENV !== "production" && Ze(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;
2285
2293
  }
2286
2294
  unmount() {
2287
- this.projection && this.projection.unmount(), J(this.notifyUpdate), J(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
2295
+ this.projection && this.projection.unmount(), Q(this.notifyUpdate), Q(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
2288
2296
  for (const e in this.events)
2289
2297
  this.events[e].clear();
2290
2298
  for (const e in this.features) {
@@ -2300,8 +2308,8 @@ class gl {
2300
2308
  this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
2301
2309
  }
2302
2310
  bindToMotionValue(e, n) {
2303
- if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), n.accelerate && $a.has(e) && this.current instanceof HTMLElement) {
2304
- const { factory: r, keyframes: a, times: l, ease: c, duration: u } = n.accelerate, h = new Di({
2311
+ if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), n.accelerate && Ha.has(e) && this.current instanceof HTMLElement) {
2312
+ const { factory: r, keyframes: a, times: l, ease: c, duration: u } = n.accelerate, h = new Ci({
2305
2313
  element: this.current,
2306
2314
  name: e,
2307
2315
  keyframes: a,
@@ -2369,7 +2377,7 @@ class gl {
2369
2377
  const o = "on" + i, r = e[o];
2370
2378
  r && (this.propEventSubscriptions[i] = this.on(i, r));
2371
2379
  }
2372
- this.prevMotionValues = fl(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2380
+ this.prevMotionValues = ml(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2373
2381
  }
2374
2382
  getProps() {
2375
2383
  return this.props;
@@ -2434,7 +2442,7 @@ class gl {
2434
2442
  */
2435
2443
  readValue(e, n) {
2436
2444
  let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
2437
- return s != null && (typeof s == "string" && (Ys(s) || Zs(s)) ? s = parseFloat(s) : !ul(s) && Q.test(n) && (s = Ni(e, n)), this.setBaseTarget(e, k(s) ? s.get() : s)), k(s) ? s.get() : s;
2445
+ return s != null && (typeof s == "string" && (Ys(s) || Zs(s)) ? s = parseFloat(s) : !fl(s) && H.test(n) && (s = Wi(e, n)), this.setBaseTarget(e, k(s) ? s.get() : s)), k(s) ? s.get() : s;
2438
2446
  }
2439
2447
  /**
2440
2448
  * Set the base target to later animate back to. This is currently
@@ -2466,12 +2474,12 @@ class gl {
2466
2474
  this.events[e] && this.events[e].notify(...n);
2467
2475
  }
2468
2476
  scheduleRenderMicrotask() {
2469
- mn.render(this.render);
2477
+ pn.render(this.render);
2470
2478
  }
2471
2479
  }
2472
- class Yi extends gl {
2480
+ class Zi extends vl {
2473
2481
  constructor() {
2474
- super(...arguments), this.KeyframeResolver = Ka;
2482
+ super(...arguments), this.KeyframeResolver = za;
2475
2483
  }
2476
2484
  sortInstanceNodePosition(e, n) {
2477
2485
  return e.compareDocumentPosition(n) & 2 ? 1 : -1;
@@ -2498,16 +2506,16 @@ class tt {
2498
2506
  update() {
2499
2507
  }
2500
2508
  }
2501
- function qi({ top: t, left: e, right: n, bottom: s }) {
2509
+ function Ji({ top: t, left: e, right: n, bottom: s }) {
2502
2510
  return {
2503
2511
  x: { min: e, max: n },
2504
2512
  y: { min: t, max: s }
2505
2513
  };
2506
2514
  }
2507
- function yl({ x: t, y: e }) {
2515
+ function Tl({ x: t, y: e }) {
2508
2516
  return { top: e.min, right: t.max, bottom: e.max, left: t.min };
2509
2517
  }
2510
- function vl(t, e) {
2518
+ function xl(t, e) {
2511
2519
  if (!e)
2512
2520
  return t;
2513
2521
  const n = e({ x: t.left, y: t.top }), s = e({ x: t.right, y: t.bottom });
@@ -2521,13 +2529,13 @@ function vl(t, e) {
2521
2529
  function de(t) {
2522
2530
  return t === void 0 || t === 1;
2523
2531
  }
2524
- function We({ scale: t, scaleX: e, scaleY: n }) {
2532
+ function Ke({ scale: t, scaleX: e, scaleY: n }) {
2525
2533
  return !de(t) || !de(e) || !de(n);
2526
2534
  }
2527
2535
  function st(t) {
2528
- return We(t) || Zi(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
2536
+ return Ke(t) || Qi(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
2529
2537
  }
2530
- function Zi(t) {
2538
+ function Qi(t) {
2531
2539
  return Qn(t.x) || Qn(t.y);
2532
2540
  }
2533
2541
  function Qn(t) {
@@ -2540,14 +2548,14 @@ function Qt(t, e, n) {
2540
2548
  function ts(t, e, n, s, i) {
2541
2549
  return i !== void 0 && (t = Qt(t, i, s)), Qt(t, n, s) + e;
2542
2550
  }
2543
- function Ke(t, e = 0, n = 1, s, i) {
2551
+ function $e(t, e = 0, n = 1, s, i) {
2544
2552
  t.min = ts(t.min, e, n, s, i), t.max = ts(t.max, e, n, s, i);
2545
2553
  }
2546
- function Ji(t, { x: e, y: n }) {
2547
- Ke(t.x, e.translate, e.scale, e.originPoint), Ke(t.y, n.translate, n.scale, n.originPoint);
2554
+ function tr(t, { x: e, y: n }) {
2555
+ $e(t.x, e.translate, e.scale, e.originPoint), $e(t.y, n.translate, n.scale, n.originPoint);
2548
2556
  }
2549
2557
  const es = 0.999999999999, ns = 1.0000000000001;
2550
- function Tl(t, e, n, s = !1) {
2558
+ function wl(t, e, n, s = !1) {
2551
2559
  const i = n.length;
2552
2560
  if (!i)
2553
2561
  return;
@@ -2559,36 +2567,36 @@ function Tl(t, e, n, s = !1) {
2559
2567
  l && l.props.style && l.props.style.display === "contents" || (s && o.options.layoutScroll && o.scroll && o !== o.root && gt(t, {
2560
2568
  x: -o.scroll.offset.x,
2561
2569
  y: -o.scroll.offset.y
2562
- }), r && (e.x *= r.x.scale, e.y *= r.y.scale, Ji(t, r)), s && st(o.latestValues) && gt(t, o.latestValues));
2570
+ }), r && (e.x *= r.x.scale, e.y *= r.y.scale, tr(t, r)), s && st(o.latestValues) && gt(t, o.latestValues));
2563
2571
  }
2564
2572
  e.x < ns && e.x > es && (e.x = 1), e.y < ns && e.y > es && (e.y = 1);
2565
2573
  }
2566
- function mt(t, e) {
2574
+ function pt(t, e) {
2567
2575
  t.min = t.min + e, t.max = t.max + e;
2568
2576
  }
2569
2577
  function ss(t, e, n, s, i = 0.5) {
2570
2578
  const o = D(t.min, t.max, i);
2571
- Ke(t, e, n, o, s);
2579
+ $e(t, e, n, o, s);
2572
2580
  }
2573
2581
  function gt(t, e) {
2574
2582
  ss(t.x, e.x, e.scaleX, e.scale, e.originX), ss(t.y, e.y, e.scaleY, e.scale, e.originY);
2575
2583
  }
2576
- function Qi(t, e) {
2577
- return qi(vl(t.getBoundingClientRect(), e));
2584
+ function er(t, e) {
2585
+ return Ji(xl(t.getBoundingClientRect(), e));
2578
2586
  }
2579
- function xl(t, e, n) {
2580
- const s = Qi(t, n), { scroll: i } = e;
2581
- return i && (mt(s.x, i.offset.x), mt(s.y, i.offset.y)), s;
2587
+ function Pl(t, e, n) {
2588
+ const s = er(t, n), { scroll: i } = e;
2589
+ return i && (pt(s.x, i.offset.x), pt(s.y, i.offset.y)), s;
2582
2590
  }
2583
- const wl = {
2591
+ const Sl = {
2584
2592
  x: "translateX",
2585
2593
  y: "translateY",
2586
2594
  z: "translateZ",
2587
2595
  transformPerspective: "perspective"
2588
- }, Pl = Pt.length;
2589
- function Sl(t, e, n) {
2596
+ }, bl = Pt.length;
2597
+ function Al(t, e, n) {
2590
2598
  let s = "", i = !0;
2591
- for (let o = 0; o < Pl; o++) {
2599
+ for (let o = 0; o < bl; o++) {
2592
2600
  const r = Pt[o], a = t[r];
2593
2601
  if (a === void 0)
2594
2602
  continue;
@@ -2600,10 +2608,10 @@ function Sl(t, e, n) {
2600
2608
  l = r.startsWith("scale") ? c === 1 : c === 0;
2601
2609
  }
2602
2610
  if (!l || n) {
2603
- const c = Wi(a, pn[r]);
2611
+ const c = $i(a, mn[r]);
2604
2612
  if (!l) {
2605
2613
  i = !1;
2606
- const u = wl[r] || r;
2614
+ const u = Sl[r] || r;
2607
2615
  s += `${u}(${c}) `;
2608
2616
  }
2609
2617
  n && (e[r] = c);
@@ -2619,20 +2627,20 @@ function xn(t, e, n) {
2619
2627
  if (St.has(l)) {
2620
2628
  r = !0;
2621
2629
  continue;
2622
- } else if (hi(l)) {
2630
+ } else if (fi(l)) {
2623
2631
  i[l] = c;
2624
2632
  continue;
2625
2633
  } else {
2626
- const u = Wi(c, pn[l]);
2634
+ const u = $i(c, mn[l]);
2627
2635
  l.startsWith("origin") ? (a = !0, o[l] = u) : s[l] = u;
2628
2636
  }
2629
2637
  }
2630
- if (e.transform || (r || n ? s.transform = Sl(e, t.transform, n) : s.transform && (s.transform = "none")), a) {
2638
+ if (e.transform || (r || n ? s.transform = Al(e, t.transform, n) : s.transform && (s.transform = "none")), a) {
2631
2639
  const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
2632
2640
  s.transformOrigin = `${l} ${c} ${u}`;
2633
2641
  }
2634
2642
  }
2635
- function tr(t, { style: e, vars: n }, s, i) {
2643
+ function nr(t, { style: e, vars: n }, s, i) {
2636
2644
  const o = t.style;
2637
2645
  let r;
2638
2646
  for (r in e)
@@ -2656,17 +2664,17 @@ const bt = {
2656
2664
  const n = is(t, e.target.x), s = is(t, e.target.y);
2657
2665
  return `${n}% ${s}%`;
2658
2666
  }
2659
- }, bl = {
2667
+ }, Vl = {
2660
2668
  correct: (t, { treeScale: e, projectionDelta: n }) => {
2661
- const s = t, i = Q.parse(t);
2669
+ const s = t, i = H.parse(t);
2662
2670
  if (i.length > 5)
2663
2671
  return s;
2664
- const o = Q.createTransformer(t), r = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
2672
+ const o = H.createTransformer(t), r = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
2665
2673
  i[0 + r] /= a, i[1 + r] /= l;
2666
2674
  const c = D(a, l, 0.5);
2667
2675
  return typeof i[2 + r] == "number" && (i[2 + r] /= c), typeof i[3 + r] == "number" && (i[3 + r] /= c), o(i);
2668
2676
  }
2669
- }, $e = {
2677
+ }, ze = {
2670
2678
  borderRadius: {
2671
2679
  ...bt,
2672
2680
  applyTo: [
@@ -2680,36 +2688,36 @@ const bt = {
2680
2688
  borderTopRightRadius: bt,
2681
2689
  borderBottomLeftRadius: bt,
2682
2690
  borderBottomRightRadius: bt,
2683
- boxShadow: bl
2691
+ boxShadow: Vl
2684
2692
  };
2685
- function er(t, { layout: e, layoutId: n }) {
2686
- return St.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!$e[t] || t === "opacity");
2693
+ function sr(t, { layout: e, layoutId: n }) {
2694
+ return St.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!ze[t] || t === "opacity");
2687
2695
  }
2688
2696
  function wn(t, e, n) {
2689
2697
  const s = t.style, i = e?.style, o = {};
2690
2698
  if (!s)
2691
2699
  return o;
2692
2700
  for (const r in s)
2693
- (k(s[r]) || i && k(i[r]) || er(r, t) || n?.getValue(r)?.liveStyle !== void 0) && (o[r] = s[r]);
2701
+ (k(s[r]) || i && k(i[r]) || sr(r, t) || n?.getValue(r)?.liveStyle !== void 0) && (o[r] = s[r]);
2694
2702
  return o;
2695
2703
  }
2696
- function Al(t) {
2704
+ function Dl(t) {
2697
2705
  return window.getComputedStyle(t);
2698
2706
  }
2699
- class Vl extends Yi {
2707
+ class Ml extends Zi {
2700
2708
  constructor() {
2701
- super(...arguments), this.type = "html", this.renderInstance = tr;
2709
+ super(...arguments), this.type = "html", this.renderInstance = nr;
2702
2710
  }
2703
2711
  readValueFromInstance(e, n) {
2704
2712
  if (St.has(n))
2705
- return this.projection?.isProjecting ? Ee(n) : $o(e, n);
2713
+ return this.projection?.isProjecting ? Ee(n) : Ho(e, n);
2706
2714
  {
2707
- const s = Al(e), i = (hi(n) ? s.getPropertyValue(n) : s[n]) || 0;
2715
+ const s = Dl(e), i = (fi(n) ? s.getPropertyValue(n) : s[n]) || 0;
2708
2716
  return typeof i == "string" ? i.trim() : i;
2709
2717
  }
2710
2718
  }
2711
2719
  measureInstanceViewportBox(e, { transformPagePoint: n }) {
2712
- return Qi(e, n);
2720
+ return er(e, n);
2713
2721
  }
2714
2722
  build(e, n, s) {
2715
2723
  xn(e, n, s.transformTemplate);
@@ -2718,25 +2726,25 @@ class Vl extends Yi {
2718
2726
  return wn(e, n, s);
2719
2727
  }
2720
2728
  }
2721
- const Dl = {
2729
+ const Cl = {
2722
2730
  offset: "stroke-dashoffset",
2723
2731
  array: "stroke-dasharray"
2724
- }, Ml = {
2732
+ }, El = {
2725
2733
  offset: "strokeDashoffset",
2726
2734
  array: "strokeDasharray"
2727
2735
  };
2728
- function Cl(t, e, n = 1, s = 0, i = !0) {
2736
+ function Rl(t, e, n = 1, s = 0, i = !0) {
2729
2737
  t.pathLength = 1;
2730
- const o = i ? Dl : Ml;
2738
+ const o = i ? Cl : El;
2731
2739
  t[o.offset] = `${-s}`, t[o.array] = `${e} ${n}`;
2732
2740
  }
2733
- const El = [
2741
+ const Ll = [
2734
2742
  "offsetDistance",
2735
2743
  "offsetPath",
2736
2744
  "offsetRotate",
2737
2745
  "offsetAnchor"
2738
2746
  ];
2739
- function nr(t, {
2747
+ function ir(t, {
2740
2748
  attrX: e,
2741
2749
  attrY: n,
2742
2750
  attrScale: s,
@@ -2753,11 +2761,11 @@ function nr(t, {
2753
2761
  t.attrs = t.style, t.style = {};
2754
2762
  const { attrs: h, style: f } = t;
2755
2763
  h.transform && (f.transform = h.transform, delete h.transform), (f.transform || h.transformOrigin) && (f.transformOrigin = h.transformOrigin ?? "50% 50%", delete h.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete h.transformBox);
2756
- for (const d of El)
2764
+ for (const d of Ll)
2757
2765
  h[d] !== void 0 && (f[d] = h[d], delete h[d]);
2758
- e !== void 0 && (h.x = e), n !== void 0 && (h.y = n), s !== void 0 && (h.scale = s), i !== void 0 && Cl(h, i, o, r, !1);
2766
+ e !== void 0 && (h.x = e), n !== void 0 && (h.y = n), s !== void 0 && (h.scale = s), i !== void 0 && Rl(h, i, o, r, !1);
2759
2767
  }
2760
- const sr = /* @__PURE__ */ new Set([
2768
+ const rr = /* @__PURE__ */ new Set([
2761
2769
  "baseFrequency",
2762
2770
  "diffuseConstant",
2763
2771
  "kernelMatrix",
@@ -2781,13 +2789,13 @@ const sr = /* @__PURE__ */ new Set([
2781
2789
  "startOffset",
2782
2790
  "textLength",
2783
2791
  "lengthAdjust"
2784
- ]), ir = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2785
- function Rl(t, e, n, s) {
2786
- tr(t, e, void 0, s);
2792
+ ]), or = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2793
+ function kl(t, e, n, s) {
2794
+ nr(t, e, void 0, s);
2787
2795
  for (const i in e.attrs)
2788
- t.setAttribute(sr.has(i) ? i : dn(i), e.attrs[i]);
2796
+ t.setAttribute(rr.has(i) ? i : dn(i), e.attrs[i]);
2789
2797
  }
2790
- function rr(t, e, n) {
2798
+ function ar(t, e, n) {
2791
2799
  const s = wn(t, e, n);
2792
2800
  for (const i in t)
2793
2801
  if (k(t[i]) || k(e[i])) {
@@ -2796,7 +2804,7 @@ function rr(t, e, n) {
2796
2804
  }
2797
2805
  return s;
2798
2806
  }
2799
- class Ll extends Yi {
2807
+ class Bl extends Zi {
2800
2808
  constructor() {
2801
2809
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = E;
2802
2810
  }
@@ -2805,40 +2813,40 @@ class Ll extends Yi {
2805
2813
  }
2806
2814
  readValueFromInstance(e, n) {
2807
2815
  if (St.has(n)) {
2808
- const s = ji(n);
2816
+ const s = Ui(n);
2809
2817
  return s && s.default || 0;
2810
2818
  }
2811
- return n = sr.has(n) ? n : dn(n), e.getAttribute(n);
2819
+ return n = rr.has(n) ? n : dn(n), e.getAttribute(n);
2812
2820
  }
2813
2821
  scrapeMotionValuesFromProps(e, n, s) {
2814
- return rr(e, n, s);
2822
+ return ar(e, n, s);
2815
2823
  }
2816
2824
  build(e, n, s) {
2817
- nr(e, n, this.isSVGTag, s.transformTemplate, s.style);
2825
+ ir(e, n, this.isSVGTag, s.transformTemplate, s.style);
2818
2826
  }
2819
2827
  renderInstance(e, n, s, i) {
2820
- Rl(e, n, s, i);
2828
+ kl(e, n, s, i);
2821
2829
  }
2822
2830
  mount(e) {
2823
- this.isSVGTag = ir(e.tagName), super.mount(e);
2831
+ this.isSVGTag = or(e.tagName), super.mount(e);
2824
2832
  }
2825
2833
  }
2826
- const kl = Tn.length;
2827
- function or(t) {
2834
+ const Fl = Tn.length;
2835
+ function lr(t) {
2828
2836
  if (!t)
2829
2837
  return;
2830
2838
  if (!t.isControllingVariants) {
2831
- const n = t.parent ? or(t.parent) || {} : {};
2839
+ const n = t.parent ? lr(t.parent) || {} : {};
2832
2840
  return t.props.initial !== void 0 && (n.initial = t.props.initial), n;
2833
2841
  }
2834
2842
  const e = {};
2835
- for (let n = 0; n < kl; n++) {
2843
+ for (let n = 0; n < Fl; n++) {
2836
2844
  const s = Tn[n], i = t.props[s];
2837
2845
  (Lt(i) || i === !1) && (e[s] = i);
2838
2846
  }
2839
2847
  return e;
2840
2848
  }
2841
- function ar(t, e) {
2849
+ function cr(t, e) {
2842
2850
  if (!Array.isArray(e))
2843
2851
  return !1;
2844
2852
  const n = e.length;
@@ -2849,17 +2857,17 @@ function ar(t, e) {
2849
2857
  return !1;
2850
2858
  return !0;
2851
2859
  }
2852
- const Bl = [...vn].reverse(), Fl = vn.length;
2853
- function Il(t) {
2854
- return (e) => Promise.all(e.map(({ animation: n, options: s }) => La(t, n, s)));
2860
+ const Il = [...vn].reverse(), Ol = vn.length;
2861
+ function jl(t) {
2862
+ return (e) => Promise.all(e.map(({ animation: n, options: s }) => ka(t, n, s)));
2855
2863
  }
2856
- function Ol(t) {
2857
- let e = Il(t), n = rs(), s = !0;
2864
+ function Nl(t) {
2865
+ let e = jl(t), n = rs(), s = !0;
2858
2866
  const i = (l) => (c, u) => {
2859
2867
  const h = yt(t, u, l === "exit" ? t.presenceContext?.custom : void 0);
2860
2868
  if (h) {
2861
- const { transition: f, transitionEnd: d, ...p } = h;
2862
- c = { ...c, ...p, ...d };
2869
+ const { transition: f, transitionEnd: d, ...m } = h;
2870
+ c = { ...c, ...m, ...d };
2863
2871
  }
2864
2872
  return c;
2865
2873
  };
@@ -2867,32 +2875,32 @@ function Ol(t) {
2867
2875
  e = l(t);
2868
2876
  }
2869
2877
  function r(l) {
2870
- const { props: c } = t, u = or(t.parent) || {}, h = [], f = /* @__PURE__ */ new Set();
2871
- let d = {}, p = 1 / 0;
2872
- for (let g = 0; g < Fl; g++) {
2873
- const m = Bl[g], x = n[m], y = c[m] !== void 0 ? c[m] : u[m], P = Lt(y), w = m === l ? x.isActive : null;
2874
- w === !1 && (p = g);
2875
- let b = y === u[m] && y !== c[m] && P;
2878
+ const { props: c } = t, u = lr(t.parent) || {}, h = [], f = /* @__PURE__ */ new Set();
2879
+ let d = {}, m = 1 / 0;
2880
+ for (let g = 0; g < Ol; g++) {
2881
+ const p = Il[g], x = n[p], y = c[p] !== void 0 ? c[p] : u[p], P = Lt(y), w = p === l ? x.isActive : null;
2882
+ w === !1 && (m = g);
2883
+ let b = y === u[p] && y !== c[p] && P;
2876
2884
  if (b && s && t.manuallyAnimateOnMount && (b = !1), x.protectedKeys = { ...d }, // If it isn't active and hasn't *just* been set as inactive
2877
2885
  !x.isActive && w === null || // If we didn't and don't have any defined prop for this animation type
2878
2886
  !y && !x.prevProp || // Or if the prop doesn't define an animation
2879
2887
  se(y) || typeof y == "boolean")
2880
2888
  continue;
2881
- if (m === "exit" && x.isActive && w !== !0) {
2889
+ if (p === "exit" && x.isActive && w !== !0) {
2882
2890
  x.prevResolvedValues && (d = {
2883
2891
  ...d,
2884
2892
  ...x.prevResolvedValues
2885
2893
  });
2886
2894
  continue;
2887
2895
  }
2888
- const C = jl(x.prevProp, y);
2896
+ const C = Ul(x.prevProp, y);
2889
2897
  let S = C || // If we're making this variant active, we want to always make it active
2890
- m === l && x.isActive && !b && P || // If we removed a higher-priority variant (i is in reverse order)
2891
- g > p && P, I = !1;
2898
+ p === l && x.isActive && !b && P || // If we removed a higher-priority variant (i is in reverse order)
2899
+ g > m && P, I = !1;
2892
2900
  const j = Array.isArray(y) ? y : [y];
2893
- let lt = j.reduce(i(m), {});
2901
+ let lt = j.reduce(i(p), {});
2894
2902
  w === !1 && (lt = {});
2895
- const { prevResolvedValues: bn = {} } = x, Rr = {
2903
+ const { prevResolvedValues: bn = {} } = x, kr = {
2896
2904
  ...bn,
2897
2905
  ...lt
2898
2906
  }, An = (R) => {
@@ -2900,22 +2908,22 @@ function Ol(t) {
2900
2908
  const N = t.getValue(R);
2901
2909
  N && (N.liveStyle = !1);
2902
2910
  };
2903
- for (const R in Rr) {
2911
+ for (const R in kr) {
2904
2912
  const N = lt[R], et = bn[R];
2905
2913
  if (d.hasOwnProperty(R))
2906
2914
  continue;
2907
2915
  let ct = !1;
2908
- Ie(N) && Ie(et) ? ct = !ar(N, et) : ct = N !== et, ct ? N != null ? An(R) : f.add(R) : N !== void 0 && f.has(R) ? An(R) : x.protectedKeys[R] = !0;
2916
+ Ie(N) && Ie(et) ? ct = !cr(N, et) : ct = N !== et, ct ? N != null ? An(R) : f.add(R) : N !== void 0 && f.has(R) ? An(R) : x.protectedKeys[R] = !0;
2909
2917
  }
2910
2918
  x.prevProp = y, x.prevResolvedValues = lt, x.isActive && (d = { ...d, ...lt }), s && t.blockInitialAnimation && (S = !1);
2911
2919
  const Vn = b && C;
2912
2920
  S && (!Vn || I) && h.push(...j.map((R) => {
2913
- const N = { type: m };
2921
+ const N = { type: p };
2914
2922
  if (typeof R == "string" && s && !Vn && t.manuallyAnimateOnMount && t.parent) {
2915
2923
  const { parent: et } = t, ct = yt(et, R);
2916
2924
  if (et.enteringChildren && ct) {
2917
- const { delayChildren: Lr } = ct.transition || {};
2918
- N.delay = Ci(et.enteringChildren, t, Lr);
2925
+ const { delayChildren: Br } = ct.transition || {};
2926
+ N.delay = Ri(et.enteringChildren, t, Br);
2919
2927
  }
2920
2928
  }
2921
2929
  return {
@@ -2927,12 +2935,12 @@ function Ol(t) {
2927
2935
  if (f.size) {
2928
2936
  const g = {};
2929
2937
  if (typeof c.initial != "boolean") {
2930
- const m = yt(t, Array.isArray(c.initial) ? c.initial[0] : c.initial);
2931
- m && m.transition && (g.transition = m.transition);
2938
+ const p = yt(t, Array.isArray(c.initial) ? c.initial[0] : c.initial);
2939
+ p && p.transition && (g.transition = p.transition);
2932
2940
  }
2933
- f.forEach((m) => {
2934
- const x = t.getBaseTarget(m), y = t.getValue(m);
2935
- y && (y.liveStyle = !0), g[m] = x ?? null;
2941
+ f.forEach((p) => {
2942
+ const x = t.getBaseTarget(p), y = t.getValue(p);
2943
+ y && (y.liveStyle = !0), g[p] = x ?? null;
2936
2944
  }), h.push({ animation: g });
2937
2945
  }
2938
2946
  let v = !!h.length;
@@ -2957,8 +2965,8 @@ function Ol(t) {
2957
2965
  }
2958
2966
  };
2959
2967
  }
2960
- function jl(t, e) {
2961
- return typeof e == "string" ? e !== t : Array.isArray(e) ? !ar(e, t) : !1;
2968
+ function Ul(t, e) {
2969
+ return typeof e == "string" ? e !== t : Array.isArray(e) ? !cr(e, t) : !1;
2962
2970
  }
2963
2971
  function nt(t = !1) {
2964
2972
  return {
@@ -2988,15 +2996,15 @@ function $(t, e) {
2988
2996
  function as(t, e) {
2989
2997
  t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
2990
2998
  }
2991
- const lr = 1e-4, Nl = 1 - lr, Ul = 1 + lr, cr = 0.01, Wl = 0 - cr, Kl = 0 + cr;
2999
+ const ur = 1e-4, Wl = 1 - ur, Kl = 1 + ur, hr = 0.01, $l = 0 - hr, zl = 0 + hr;
2992
3000
  function F(t) {
2993
3001
  return t.max - t.min;
2994
3002
  }
2995
- function $l(t, e, n) {
3003
+ function Hl(t, e, n) {
2996
3004
  return Math.abs(t - e) <= n;
2997
3005
  }
2998
3006
  function ls(t, e, n, s = 0.5) {
2999
- t.origin = s, t.originPoint = D(e.min, e.max, t.origin), t.scale = F(n) / F(e), t.translate = D(n.min, n.max, t.origin) - t.originPoint, (t.scale >= Nl && t.scale <= Ul || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Wl && t.translate <= Kl || isNaN(t.translate)) && (t.translate = 0);
3007
+ t.origin = s, t.originPoint = D(e.min, e.max, t.origin), t.scale = F(n) / F(e), t.translate = D(n.min, n.max, t.origin) - t.originPoint, (t.scale >= Wl && t.scale <= Kl || isNaN(t.scale)) && (t.scale = 1), (t.translate >= $l && t.translate <= zl || isNaN(t.translate)) && (t.translate = 0);
3000
3008
  }
3001
3009
  function Dt(t, e, n, s) {
3002
3010
  ls(t.x, e.x, n.x, s ? s.originX : void 0), ls(t.y, e.y, n.y, s ? s.originY : void 0);
@@ -3004,7 +3012,7 @@ function Dt(t, e, n, s) {
3004
3012
  function cs(t, e, n) {
3005
3013
  t.min = n.min + e.min, t.max = t.min + F(e);
3006
3014
  }
3007
- function zl(t, e, n) {
3015
+ function Gl(t, e, n) {
3008
3016
  cs(t.x, e.x, n.x), cs(t.y, e.y, n.y);
3009
3017
  }
3010
3018
  function us(t, e, n) {
@@ -3016,35 +3024,35 @@ function te(t, e, n) {
3016
3024
  function hs(t, e, n, s, i) {
3017
3025
  return t -= e, t = Qt(t, 1 / n, s), i !== void 0 && (t = Qt(t, 1 / i, s)), t;
3018
3026
  }
3019
- function Hl(t, e = 0, n = 1, s = 0.5, i, o = t, r = t) {
3020
- if (G.test(e) && (e = parseFloat(e), e = D(r.min, r.max, e / 100) - r.min), typeof e != "number")
3027
+ function _l(t, e = 0, n = 1, s = 0.5, i, o = t, r = t) {
3028
+ if (_.test(e) && (e = parseFloat(e), e = D(r.min, r.max, e / 100) - r.min), typeof e != "number")
3021
3029
  return;
3022
3030
  let a = D(o.min, o.max, s);
3023
3031
  t === o && (a -= e), t.min = hs(t.min, e, n, a, i), t.max = hs(t.max, e, n, a, i);
3024
3032
  }
3025
3033
  function fs(t, e, [n, s, i], o, r) {
3026
- Hl(t, e[n], e[s], e[i], e.scale, o, r);
3034
+ _l(t, e[n], e[s], e[i], e.scale, o, r);
3027
3035
  }
3028
- const Gl = ["x", "scaleX", "originX"], _l = ["y", "scaleY", "originY"];
3036
+ const Xl = ["x", "scaleX", "originX"], Yl = ["y", "scaleY", "originY"];
3029
3037
  function ds(t, e, n, s) {
3030
- fs(t.x, e, Gl, n ? n.x : void 0, s ? s.x : void 0), fs(t.y, e, _l, n ? n.y : void 0, s ? s.y : void 0);
3038
+ fs(t.x, e, Xl, n ? n.x : void 0, s ? s.x : void 0), fs(t.y, e, Yl, n ? n.y : void 0, s ? s.y : void 0);
3031
3039
  }
3032
- function ps(t) {
3040
+ function ms(t) {
3033
3041
  return t.translate === 0 && t.scale === 1;
3034
3042
  }
3035
- function ur(t) {
3036
- return ps(t.x) && ps(t.y);
3043
+ function fr(t) {
3044
+ return ms(t.x) && ms(t.y);
3037
3045
  }
3038
- function ms(t, e) {
3046
+ function ps(t, e) {
3039
3047
  return t.min === e.min && t.max === e.max;
3040
3048
  }
3041
- function Xl(t, e) {
3042
- return ms(t.x, e.x) && ms(t.y, e.y);
3049
+ function ql(t, e) {
3050
+ return ps(t.x, e.x) && ps(t.y, e.y);
3043
3051
  }
3044
3052
  function gs(t, e) {
3045
3053
  return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
3046
3054
  }
3047
- function hr(t, e) {
3055
+ function dr(t, e) {
3048
3056
  return gs(t.x, e.x) && gs(t.y, e.y);
3049
3057
  }
3050
3058
  function ys(t) {
@@ -3053,76 +3061,76 @@ function ys(t) {
3053
3061
  function vs(t, e) {
3054
3062
  return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
3055
3063
  }
3056
- function H(t) {
3064
+ function G(t) {
3057
3065
  return [t("x"), t("y")];
3058
3066
  }
3059
- function Yl(t, e, n) {
3067
+ function Zl(t, e, n) {
3060
3068
  let s = "";
3061
3069
  const i = t.x.translate / e.x, o = t.y.translate / e.y, r = n?.z || 0;
3062
3070
  if ((i || o || r) && (s = `translate3d(${i}px, ${o}px, ${r}px) `), (e.x !== 1 || e.y !== 1) && (s += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
3063
- const { transformPerspective: c, rotate: u, rotateX: h, rotateY: f, skewX: d, skewY: p } = n;
3064
- c && (s = `perspective(${c}px) ${s}`), u && (s += `rotate(${u}deg) `), h && (s += `rotateX(${h}deg) `), f && (s += `rotateY(${f}deg) `), d && (s += `skewX(${d}deg) `), p && (s += `skewY(${p}deg) `);
3071
+ const { transformPerspective: c, rotate: u, rotateX: h, rotateY: f, skewX: d, skewY: m } = n;
3072
+ c && (s = `perspective(${c}px) ${s}`), u && (s += `rotate(${u}deg) `), h && (s += `rotateX(${h}deg) `), f && (s += `rotateY(${f}deg) `), d && (s += `skewX(${d}deg) `), m && (s += `skewY(${m}deg) `);
3065
3073
  }
3066
3074
  const a = t.x.scale * e.x, l = t.y.scale * e.y;
3067
3075
  return (a !== 1 || l !== 1) && (s += `scale(${a}, ${l})`), s || "none";
3068
3076
  }
3069
- const fr = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], ql = fr.length, Ts = (t) => typeof t == "string" ? parseFloat(t) : t, xs = (t) => typeof t == "number" || T.test(t);
3070
- function Zl(t, e, n, s, i, o) {
3071
- i ? (t.opacity = D(0, n.opacity ?? 1, Jl(s)), t.opacityExit = D(e.opacity ?? 1, 0, Ql(s))) : o && (t.opacity = D(e.opacity ?? 1, n.opacity ?? 1, s));
3072
- for (let r = 0; r < ql; r++) {
3073
- const a = `border${fr[r]}Radius`;
3077
+ const mr = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Jl = mr.length, Ts = (t) => typeof t == "string" ? parseFloat(t) : t, xs = (t) => typeof t == "number" || T.test(t);
3078
+ function Ql(t, e, n, s, i, o) {
3079
+ i ? (t.opacity = D(0, n.opacity ?? 1, tc(s)), t.opacityExit = D(e.opacity ?? 1, 0, ec(s))) : o && (t.opacity = D(e.opacity ?? 1, n.opacity ?? 1, s));
3080
+ for (let r = 0; r < Jl; r++) {
3081
+ const a = `border${mr[r]}Radius`;
3074
3082
  let l = ws(e, a), c = ws(n, a);
3075
3083
  if (l === void 0 && c === void 0)
3076
3084
  continue;
3077
- l || (l = 0), c || (c = 0), l === 0 || c === 0 || xs(l) === xs(c) ? (t[a] = Math.max(D(Ts(l), Ts(c), s), 0), (G.test(c) || G.test(l)) && (t[a] += "%")) : t[a] = c;
3085
+ l || (l = 0), c || (c = 0), l === 0 || c === 0 || xs(l) === xs(c) ? (t[a] = Math.max(D(Ts(l), Ts(c), s), 0), (_.test(c) || _.test(l)) && (t[a] += "%")) : t[a] = c;
3078
3086
  }
3079
3087
  (e.rotate || n.rotate) && (t.rotate = D(e.rotate || 0, n.rotate || 0, s));
3080
3088
  }
3081
3089
  function ws(t, e) {
3082
3090
  return t[e] !== void 0 ? t[e] : t.borderRadius;
3083
3091
  }
3084
- const Jl = /* @__PURE__ */ dr(0, 0.5, ri), Ql = /* @__PURE__ */ dr(0.5, 0.95, W);
3085
- function dr(t, e, n) {
3092
+ const tc = /* @__PURE__ */ pr(0, 0.5, oi), ec = /* @__PURE__ */ pr(0.5, 0.95, W);
3093
+ function pr(t, e, n) {
3086
3094
  return (s) => s < t ? 0 : s > e ? 1 : n(/* @__PURE__ */ Ct(t, e, s));
3087
3095
  }
3088
- function tc(t, e, n) {
3096
+ function nc(t, e, n) {
3089
3097
  const s = k(t) ? t : vt(t);
3090
3098
  return s.start(hn("", s, e, n)), s.animation;
3091
3099
  }
3092
3100
  function kt(t, e, n, s = { passive: !0 }) {
3093
3101
  return t.addEventListener(e, n, s), () => t.removeEventListener(e, n);
3094
3102
  }
3095
- const ec = (t, e) => t.depth - e.depth;
3096
- class nc {
3103
+ const sc = (t, e) => t.depth - e.depth;
3104
+ class ic {
3097
3105
  constructor() {
3098
3106
  this.children = [], this.isDirty = !1;
3099
3107
  }
3100
3108
  add(e) {
3101
- Xe(this.children, e), this.isDirty = !0;
3109
+ Ye(this.children, e), this.isDirty = !0;
3102
3110
  }
3103
3111
  remove(e) {
3104
3112
  Xt(this.children, e), this.isDirty = !0;
3105
3113
  }
3106
3114
  forEach(e) {
3107
- this.isDirty && this.children.sort(ec), this.isDirty = !1, this.children.forEach(e);
3115
+ this.isDirty && this.children.sort(sc), this.isDirty = !1, this.children.forEach(e);
3108
3116
  }
3109
3117
  }
3110
- function sc(t, e) {
3118
+ function rc(t, e) {
3111
3119
  const n = B.now(), s = ({ timestamp: i }) => {
3112
3120
  const o = i - n;
3113
- o >= e && (J(s), t(o - e));
3121
+ o >= e && (Q(s), t(o - e));
3114
3122
  };
3115
- return A.setup(s, !0), () => J(s);
3123
+ return A.setup(s, !0), () => Q(s);
3116
3124
  }
3117
3125
  function Gt(t) {
3118
3126
  return k(t) ? t.get() : t;
3119
3127
  }
3120
- class ic {
3128
+ class oc {
3121
3129
  constructor() {
3122
3130
  this.members = [];
3123
3131
  }
3124
3132
  add(e) {
3125
- Xe(this.members, e);
3133
+ Ye(this.members, e);
3126
3134
  for (let n = this.members.length - 1; n >= 0; n--) {
3127
3135
  const s = this.members[n];
3128
3136
  if (s === e || s === this.lead || s === this.prevLead)
@@ -3195,37 +3203,37 @@ const _t = {
3195
3203
  * update will be given a `data-projection-id` attribute.
3196
3204
  */
3197
3205
  hasEverUpdated: !1
3198
- }, pe = ["", "X", "Y", "Z"], rc = 1e3;
3199
- let oc = 0;
3200
- function me(t, e, n, s) {
3206
+ }, me = ["", "X", "Y", "Z"], ac = 1e3;
3207
+ let lc = 0;
3208
+ function pe(t, e, n, s) {
3201
3209
  const { latestValues: i } = e;
3202
3210
  i[t] && (n[t] = i[t], e.setStaticValue(t, 0), s && (s[t] = 0));
3203
3211
  }
3204
- function pr(t) {
3212
+ function gr(t) {
3205
3213
  if (t.hasCheckedOptimisedAppear = !0, t.root === t)
3206
3214
  return;
3207
3215
  const { visualElement: e } = t.options;
3208
3216
  if (!e)
3209
3217
  return;
3210
- const n = Bi(e);
3218
+ const n = Ii(e);
3211
3219
  if (window.MotionHasOptimisedAnimation(n, "transform")) {
3212
3220
  const { layout: i, layoutId: o } = t.options;
3213
3221
  window.MotionCancelOptimisedAnimation(n, "transform", A, !(i || o));
3214
3222
  }
3215
3223
  const { parent: s } = t;
3216
- s && !s.hasCheckedOptimisedAppear && pr(s);
3224
+ s && !s.hasCheckedOptimisedAppear && gr(s);
3217
3225
  }
3218
- function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: s, resetTransform: i }) {
3226
+ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: s, resetTransform: i }) {
3219
3227
  return class {
3220
3228
  constructor(r = {}, a = e?.()) {
3221
- this.id = oc++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
3229
+ this.id = lc++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
3222
3230
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
3223
3231
  }, this.updateProjection = () => {
3224
- this.projectionUpdateScheduled = !1, this.nodes.forEach(cc), this.nodes.forEach(dc), this.nodes.forEach(pc), this.nodes.forEach(uc);
3232
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(hc), this.nodes.forEach(pc), this.nodes.forEach(gc), this.nodes.forEach(fc);
3225
3233
  }, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = r, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
3226
3234
  for (let l = 0; l < this.path.length; l++)
3227
3235
  this.path[l].shouldResetTransform = !0;
3228
- this.root === this && (this.nodes = new nc());
3236
+ this.root === this && (this.nodes = new ic());
3229
3237
  }
3230
3238
  addEventListener(r, a) {
3231
3239
  return this.eventHandlers.has(r) || this.eventHandlers.set(r, new qe()), this.eventHandlers.get(r).add(a);
@@ -3243,7 +3251,7 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3243
3251
  mount(r) {
3244
3252
  if (this.instance)
3245
3253
  return;
3246
- this.isSVG = yn(r) && !ll(r), this.instance = r;
3254
+ this.isSVG = yn(r) && !ul(r), this.instance = r;
3247
3255
  const { layoutId: a, layout: l, visualElement: c } = this.options;
3248
3256
  if (c && !c.current && c.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || a) && (this.isLayoutDirty = !0), t) {
3249
3257
  let u, h = 0;
@@ -3252,7 +3260,7 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3252
3260
  h = window.innerWidth;
3253
3261
  }), t(r, () => {
3254
3262
  const d = window.innerWidth;
3255
- d !== h && (h = d, this.root.updateBlockedByResize = !0, u && u(), u = sc(f, 250), _t.hasAnimatedSinceResize && (_t.hasAnimatedSinceResize = !1, this.nodes.forEach(bs)));
3263
+ d !== h && (h = d, this.root.updateBlockedByResize = !0, u && u(), u = rc(f, 250), _t.hasAnimatedSinceResize && (_t.hasAnimatedSinceResize = !1, this.nodes.forEach(bs)));
3256
3264
  });
3257
3265
  }
3258
3266
  a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && c && (a || l) && this.addEventListener("didUpdate", ({ delta: u, hasLayoutChanged: h, hasRelativeLayoutChanged: f, layout: d }) => {
@@ -3260,11 +3268,11 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3260
3268
  this.target = void 0, this.relativeTarget = void 0;
3261
3269
  return;
3262
3270
  }
3263
- const p = this.options.transition || c.getDefaultTransition() || Tc, { onLayoutAnimationStart: v, onLayoutAnimationComplete: g } = c.getProps(), m = !this.targetLayout || !hr(this.targetLayout, d), x = !h && f;
3264
- if (this.options.layoutRoot || this.resumeFrom || x || h && (m || !this.currentAnimation)) {
3271
+ const m = this.options.transition || c.getDefaultTransition() || wc, { onLayoutAnimationStart: v, onLayoutAnimationComplete: g } = c.getProps(), p = !this.targetLayout || !dr(this.targetLayout, d), x = !h && f;
3272
+ if (this.options.layoutRoot || this.resumeFrom || x || h && (p || !this.currentAnimation)) {
3265
3273
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
3266
3274
  const y = {
3267
- ...un(p, "layout"),
3275
+ ...un(m, "layout"),
3268
3276
  onPlay: v,
3269
3277
  onComplete: g
3270
3278
  };
@@ -3277,7 +3285,7 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3277
3285
  unmount() {
3278
3286
  this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
3279
3287
  const r = this.getStack();
3280
- r && r.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), J(this.updateProjection);
3288
+ r && r.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), Q(this.updateProjection);
3281
3289
  }
3282
3290
  // only on the root
3283
3291
  blockUpdate() {
@@ -3294,7 +3302,7 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3294
3302
  }
3295
3303
  // Note: currently only running on root node
3296
3304
  startUpdate() {
3297
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(mc), this.animationId++);
3305
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(yc), this.animationId++);
3298
3306
  }
3299
3307
  getTransformTemplate() {
3300
3308
  const { visualElement: r } = this.options;
@@ -3305,7 +3313,7 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3305
3313
  this.options.onExitComplete && this.options.onExitComplete();
3306
3314
  return;
3307
3315
  }
3308
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && pr(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
3316
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && gr(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
3309
3317
  return;
3310
3318
  this.isLayoutDirty = !0;
3311
3319
  for (let u = 0; u < this.path.length; u++) {
@@ -3327,15 +3335,15 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3327
3335
  this.nodes.forEach(Ss);
3328
3336
  return;
3329
3337
  }
3330
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(fc), this.nodes.forEach(ac), this.nodes.forEach(lc)) : this.nodes.forEach(Ss), this.clearAllSnapshots();
3338
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(mc), this.nodes.forEach(cc), this.nodes.forEach(uc)) : this.nodes.forEach(Ss), this.clearAllSnapshots();
3331
3339
  const a = B.now();
3332
- L.delta = _(0, 1e3 / 60, a - L.timestamp), L.timestamp = a, L.isProcessing = !0, oe.update.process(L), oe.preRender.process(L), oe.render.process(L), L.isProcessing = !1;
3340
+ L.delta = X(0, 1e3 / 60, a - L.timestamp), L.timestamp = a, L.isProcessing = !0, oe.update.process(L), oe.preRender.process(L), oe.render.process(L), L.isProcessing = !1;
3333
3341
  }
3334
3342
  didUpdate() {
3335
- this.updateScheduled || (this.updateScheduled = !0, mn.read(this.scheduleUpdate));
3343
+ this.updateScheduled || (this.updateScheduled = !0, pn.read(this.scheduleUpdate));
3336
3344
  }
3337
3345
  clearAllSnapshots() {
3338
- this.nodes.forEach(hc), this.sharedNodes.forEach(gc);
3346
+ this.nodes.forEach(dc), this.sharedNodes.forEach(vc);
3339
3347
  }
3340
3348
  scheduleUpdateProjection() {
3341
3349
  this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, A.preRender(this.updateProjection, !1, !0));
@@ -3378,13 +3386,13 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3378
3386
  resetTransform() {
3379
3387
  if (!i)
3380
3388
  return;
3381
- const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !ur(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
3389
+ const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !fr(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
3382
3390
  r && this.instance && (a || st(this.latestValues) || u) && (i(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
3383
3391
  }
3384
3392
  measure(r = !0) {
3385
3393
  const a = this.measurePageBox();
3386
3394
  let l = this.removeElementScroll(a);
3387
- return r && (l = this.removeTransform(l)), xc(l), {
3395
+ return r && (l = this.removeTransform(l)), Pc(l), {
3388
3396
  animationId: this.root.animationId,
3389
3397
  measuredBox: a,
3390
3398
  layoutBox: l,
@@ -3397,9 +3405,9 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3397
3405
  if (!r)
3398
3406
  return E();
3399
3407
  const a = r.measureViewportBox();
3400
- if (!(this.scroll?.wasRoot || this.path.some(wc))) {
3408
+ if (!(this.scroll?.wasRoot || this.path.some(Sc))) {
3401
3409
  const { scroll: c } = this.root;
3402
- c && (mt(a.x, c.offset.x), mt(a.y, c.offset.y));
3410
+ c && (pt(a.x, c.offset.x), pt(a.y, c.offset.y));
3403
3411
  }
3404
3412
  return a;
3405
3413
  }
@@ -3409,7 +3417,7 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3409
3417
  return a;
3410
3418
  for (let l = 0; l < this.path.length; l++) {
3411
3419
  const c = this.path[l], { scroll: u, options: h } = c;
3412
- c !== this.root && u && h.layoutScroll && (u.wasRoot && $(a, r), mt(a.x, u.offset.x), mt(a.y, u.offset.y));
3420
+ c !== this.root && u && h.layoutScroll && (u.wasRoot && $(a, r), pt(a.x, u.offset.x), pt(a.y, u.offset.y));
3413
3421
  }
3414
3422
  return a;
3415
3423
  }
@@ -3432,7 +3440,7 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3432
3440
  const c = this.path[l];
3433
3441
  if (!c.instance || !st(c.latestValues))
3434
3442
  continue;
3435
- We(c.latestValues) && c.updateSnapshot();
3443
+ Ke(c.latestValues) && c.updateSnapshot();
3436
3444
  const u = E(), h = c.measurePageBox();
3437
3445
  $(u, h), ds(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
3438
3446
  }
@@ -3465,10 +3473,10 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3465
3473
  return;
3466
3474
  this.resolvedRelativeTargetAt = L.timestamp;
3467
3475
  const f = this.getClosestProjectingParent();
3468
- f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = E(), this.targetWithTransforms = E()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), zl(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : $(this.target, this.layout.layoutBox), Ji(this.target, this.targetDelta)) : $(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
3476
+ f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = E(), this.targetWithTransforms = E()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Gl(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : $(this.target, this.layout.layoutBox), tr(this.target, this.targetDelta)) : $(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
3469
3477
  }
3470
3478
  getClosestProjectingParent() {
3471
- if (!(!this.parent || We(this.parent.latestValues) || Zi(this.parent.latestValues)))
3479
+ if (!(!this.parent || Ke(this.parent.latestValues) || Qi(this.parent.latestValues)))
3472
3480
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
3473
3481
  }
3474
3482
  isProjecting() {
@@ -3490,7 +3498,7 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3490
3498
  return;
3491
3499
  $(this.layoutCorrected, this.layout.layoutBox);
3492
3500
  const h = this.treeScale.x, f = this.treeScale.y;
3493
- Tl(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = E());
3501
+ wl(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = E());
3494
3502
  const { target: d } = r;
3495
3503
  if (!d) {
3496
3504
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
@@ -3512,22 +3520,22 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3512
3520
  this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
3513
3521
  }
3514
3522
  createProjectionDeltas() {
3515
- this.prevProjectionDelta = pt(), this.projectionDelta = pt(), this.projectionDeltaWithTransform = pt();
3523
+ this.prevProjectionDelta = mt(), this.projectionDelta = mt(), this.projectionDeltaWithTransform = mt();
3516
3524
  }
3517
3525
  setAnimationOrigin(r, a = !1) {
3518
- const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, h = pt();
3526
+ const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, h = mt();
3519
3527
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
3520
- const f = E(), d = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, v = d !== p, g = this.getStack(), m = !g || g.members.length <= 1, x = !!(v && !m && this.options.crossfade === !0 && !this.path.some(vc));
3528
+ const f = E(), d = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, v = d !== m, g = this.getStack(), p = !g || g.members.length <= 1, x = !!(v && !p && this.options.crossfade === !0 && !this.path.some(xc));
3521
3529
  this.animationProgress = 0;
3522
3530
  let y;
3523
3531
  this.mixTargetDelta = (P) => {
3524
3532
  const w = P / 1e3;
3525
- As(h.x, r.x, w), As(h.y, r.y, w), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (te(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), yc(this.relativeTarget, this.relativeTargetOrigin, f, w), y && Xl(this.relativeTarget, y) && (this.isProjectionDirty = !1), y || (y = E()), $(y, this.relativeTarget)), v && (this.animationValues = u, Zl(u, c, this.latestValues, w, x, m)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
3533
+ As(h.x, r.x, w), As(h.y, r.y, w), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (te(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Tc(this.relativeTarget, this.relativeTargetOrigin, f, w), y && ql(this.relativeTarget, y) && (this.isProjectionDirty = !1), y || (y = E()), $(y, this.relativeTarget)), v && (this.animationValues = u, Ql(u, c, this.latestValues, w, x, p)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
3526
3534
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
3527
3535
  }
3528
3536
  startAnimation(r) {
3529
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (J(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = A.update(() => {
3530
- _t.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = vt(0)), this.currentAnimation = tc(this.motionValue, [0, 1e3], {
3537
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (Q(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = A.update(() => {
3538
+ _t.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = vt(0)), this.motionValue.jump(0, !1), this.currentAnimation = nc(this.motionValue, [0, 1e3], {
3531
3539
  ...r,
3532
3540
  velocity: 0,
3533
3541
  isSync: !0,
@@ -3548,13 +3556,13 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3548
3556
  r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
3549
3557
  }
3550
3558
  finishAnimation() {
3551
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(rc), this.currentAnimation.stop()), this.completeAnimation();
3559
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(ac), this.currentAnimation.stop()), this.completeAnimation();
3552
3560
  }
3553
3561
  applyTransformsToTarget() {
3554
3562
  const r = this.getLead();
3555
3563
  let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = r;
3556
3564
  if (!(!a || !l || !c)) {
3557
- if (this !== r && this.layout && c && gr(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
3565
+ if (this !== r && this.layout && c && vr(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
3558
3566
  l = this.target || E();
3559
3567
  const h = F(this.layout.layoutBox.x);
3560
3568
  l.x.min = r.target.x.min, l.x.max = l.x.min + h;
@@ -3565,7 +3573,7 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3565
3573
  }
3566
3574
  }
3567
3575
  registerSharedNode(r, a) {
3568
- this.sharedNodes.has(r) || this.sharedNodes.set(r, new ic()), this.sharedNodes.get(r).add(a);
3576
+ this.sharedNodes.has(r) || this.sharedNodes.set(r, new oc()), this.sharedNodes.get(r).add(a);
3569
3577
  const c = a.options.initialPromotionConfig;
3570
3578
  a.promote({
3571
3579
  transition: c ? c.transition : void 0,
@@ -3606,9 +3614,9 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3606
3614
  if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (a = !0), !a)
3607
3615
  return;
3608
3616
  const c = {};
3609
- l.z && me("z", r, c, this.animationValues);
3610
- for (let u = 0; u < pe.length; u++)
3611
- me(`rotate${pe[u]}`, r, c, this.animationValues), me(`skew${pe[u]}`, r, c, this.animationValues);
3617
+ l.z && pe("z", r, c, this.animationValues);
3618
+ for (let u = 0; u < me.length; u++)
3619
+ pe(`rotate${me[u]}`, r, c, this.animationValues), pe(`skew${me[u]}`, r, c, this.animationValues);
3612
3620
  r.render();
3613
3621
  for (const u in c)
3614
3622
  r.setStaticValue(u, c[u]), this.animationValues && (this.animationValues[u] = c[u]);
@@ -3634,20 +3642,20 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3634
3642
  r.visibility = "";
3635
3643
  const u = c.animationValues || c.latestValues;
3636
3644
  this.applyTransformsToTarget();
3637
- let h = Yl(this.projectionDeltaWithTransform, this.treeScale, u);
3645
+ let h = Zl(this.projectionDeltaWithTransform, this.treeScale, u);
3638
3646
  l && (h = l(u, h)), r.transform = h;
3639
3647
  const { x: f, y: d } = this.projectionDelta;
3640
3648
  r.transformOrigin = `${f.origin * 100}% ${d.origin * 100}% 0`, c.animationValues ? r.opacity = c === this ? u.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : u.opacityExit : r.opacity = c === this ? u.opacity !== void 0 ? u.opacity : "" : u.opacityExit !== void 0 ? u.opacityExit : 0;
3641
- for (const p in $e) {
3642
- if (u[p] === void 0)
3649
+ for (const m in ze) {
3650
+ if (u[m] === void 0)
3643
3651
  continue;
3644
- const { correct: v, applyTo: g, isCSSVariable: m } = $e[p], x = h === "none" ? u[p] : v(u[p], c);
3652
+ const { correct: v, applyTo: g, isCSSVariable: p } = ze[m], x = h === "none" ? u[m] : v(u[m], c);
3645
3653
  if (g) {
3646
3654
  const y = g.length;
3647
3655
  for (let P = 0; P < y; P++)
3648
3656
  r[g[P]] = x;
3649
3657
  } else
3650
- m ? this.options.visualElement.renderState.vars[p] = x : r[p] = x;
3658
+ p ? this.options.visualElement.renderState.vars[m] = x : r[m] = x;
3651
3659
  }
3652
3660
  this.options.layoutId && (r.pointerEvents = c === this ? Gt(a?.pointerEvents) || "" : "none");
3653
3661
  }
@@ -3660,25 +3668,25 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3660
3668
  }
3661
3669
  };
3662
3670
  }
3663
- function ac(t) {
3671
+ function cc(t) {
3664
3672
  t.updateLayout();
3665
3673
  }
3666
- function lc(t) {
3674
+ function uc(t) {
3667
3675
  const e = t.resumeFrom?.snapshot || t.snapshot;
3668
3676
  if (t.isLead() && t.layout && e && t.hasListeners("didUpdate")) {
3669
3677
  const { layoutBox: n, measuredBox: s } = t.layout, { animationType: i } = t.options, o = e.source !== t.layout.source;
3670
- i === "size" ? H((u) => {
3678
+ i === "size" ? G((u) => {
3671
3679
  const h = o ? e.measuredBox[u] : e.layoutBox[u], f = F(h);
3672
3680
  h.min = n[u].min, h.max = h.min + f;
3673
- }) : gr(i, e.layoutBox, n) && H((u) => {
3681
+ }) : vr(i, e.layoutBox, n) && G((u) => {
3674
3682
  const h = o ? e.measuredBox[u] : e.layoutBox[u], f = F(n[u]);
3675
3683
  h.max = h.min + f, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[u].max = t.relativeTarget[u].min + f);
3676
3684
  });
3677
- const r = pt();
3685
+ const r = mt();
3678
3686
  Dt(r, n, e.layoutBox);
3679
- const a = pt();
3687
+ const a = mt();
3680
3688
  o ? Dt(a, t.applyTransform(s, !0), e.measuredBox) : Dt(a, n, e.layoutBox);
3681
- const l = !ur(r);
3689
+ const l = !fr(r);
3682
3690
  let c = !1;
3683
3691
  if (!t.resumeFrom) {
3684
3692
  const u = t.getClosestProjectingParent();
@@ -3687,8 +3695,8 @@ function lc(t) {
3687
3695
  if (h && f) {
3688
3696
  const d = E();
3689
3697
  te(d, e.layoutBox, h.layoutBox);
3690
- const p = E();
3691
- te(p, n, f.layoutBox), hr(d, p) || (c = !0), u.options.layoutRoot && (t.relativeTarget = p, t.relativeTargetOrigin = d, t.relativeParent = u);
3698
+ const m = E();
3699
+ te(m, n, f.layoutBox), dr(d, m) || (c = !0), u.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = d, t.relativeParent = u);
3692
3700
  }
3693
3701
  }
3694
3702
  }
@@ -3706,13 +3714,13 @@ function lc(t) {
3706
3714
  }
3707
3715
  t.options.transition = void 0;
3708
3716
  }
3709
- function cc(t) {
3717
+ function hc(t) {
3710
3718
  t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
3711
3719
  }
3712
- function uc(t) {
3720
+ function fc(t) {
3713
3721
  t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
3714
3722
  }
3715
- function hc(t) {
3723
+ function dc(t) {
3716
3724
  t.clearSnapshot();
3717
3725
  }
3718
3726
  function Ps(t) {
@@ -3721,23 +3729,23 @@ function Ps(t) {
3721
3729
  function Ss(t) {
3722
3730
  t.isLayoutDirty = !1;
3723
3731
  }
3724
- function fc(t) {
3732
+ function mc(t) {
3725
3733
  const { visualElement: e } = t.options;
3726
3734
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
3727
3735
  }
3728
3736
  function bs(t) {
3729
3737
  t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
3730
3738
  }
3731
- function dc(t) {
3739
+ function pc(t) {
3732
3740
  t.resolveTargetDelta();
3733
3741
  }
3734
- function pc(t) {
3742
+ function gc(t) {
3735
3743
  t.calcProjection();
3736
3744
  }
3737
- function mc(t) {
3745
+ function yc(t) {
3738
3746
  t.resetSkewAndRotation();
3739
3747
  }
3740
- function gc(t) {
3748
+ function vc(t) {
3741
3749
  t.removeLeadSnapshot();
3742
3750
  }
3743
3751
  function As(t, e, n) {
@@ -3746,29 +3754,29 @@ function As(t, e, n) {
3746
3754
  function Vs(t, e, n, s) {
3747
3755
  t.min = D(e.min, n.min, s), t.max = D(e.max, n.max, s);
3748
3756
  }
3749
- function yc(t, e, n, s) {
3757
+ function Tc(t, e, n, s) {
3750
3758
  Vs(t.x, e.x, n.x, s), Vs(t.y, e.y, n.y, s);
3751
3759
  }
3752
- function vc(t) {
3760
+ function xc(t) {
3753
3761
  return t.animationValues && t.animationValues.opacityExit !== void 0;
3754
3762
  }
3755
- const Tc = {
3763
+ const wc = {
3756
3764
  duration: 0.45,
3757
3765
  ease: [0.4, 0, 0.1, 1]
3758
3766
  }, Ds = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ms = Ds("applewebkit/") && !Ds("chrome/") ? Math.round : W;
3759
3767
  function Cs(t) {
3760
3768
  t.min = Ms(t.min), t.max = Ms(t.max);
3761
3769
  }
3762
- function xc(t) {
3770
+ function Pc(t) {
3763
3771
  Cs(t.x), Cs(t.y);
3764
3772
  }
3765
- function gr(t, e, n) {
3766
- return t === "position" || t === "preserve-aspect" && !$l(ys(e), ys(n), 0.2);
3773
+ function vr(t, e, n) {
3774
+ return t === "position" || t === "preserve-aspect" && !Hl(ys(e), ys(n), 0.2);
3767
3775
  }
3768
- function wc(t) {
3776
+ function Sc(t) {
3769
3777
  return t !== t.root && t.scroll?.wasRoot;
3770
3778
  }
3771
- const Pc = mr({
3779
+ const bc = yr({
3772
3780
  attachResizeListener: (t, e) => kt(t, "resize", e),
3773
3781
  measureScroll: () => ({
3774
3782
  x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
@@ -3777,14 +3785,14 @@ const Pc = mr({
3777
3785
  checkIsScrollRoot: () => !0
3778
3786
  }), ge = {
3779
3787
  current: void 0
3780
- }, yr = mr({
3788
+ }, Tr = yr({
3781
3789
  measureScroll: (t) => ({
3782
3790
  x: t.scrollLeft,
3783
3791
  y: t.scrollTop
3784
3792
  }),
3785
3793
  defaultParent: () => {
3786
3794
  if (!ge.current) {
3787
- const t = new Pc({});
3795
+ const t = new bc({});
3788
3796
  t.mount(window), t.setOptions({ layoutScroll: !0 }), ge.current = t;
3789
3797
  }
3790
3798
  return ge.current;
@@ -3793,24 +3801,24 @@ const Pc = mr({
3793
3801
  t.style.transform = e !== void 0 ? e : "none";
3794
3802
  },
3795
3803
  checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
3796
- }), vr = Tt({
3804
+ }), xr = Tt({
3797
3805
  transformPagePoint: (t) => t,
3798
3806
  isStatic: !1,
3799
3807
  reducedMotion: "never"
3800
3808
  });
3801
- function Sc(t = !0) {
3802
- const e = O(_e);
3809
+ function Ac(t = !0) {
3810
+ const e = O(Xe);
3803
3811
  if (e === null)
3804
3812
  return [!0, null];
3805
- const { isPresent: n, onExitComplete: s, register: i } = e, o = Br();
3806
- Ge(() => {
3813
+ const { isPresent: n, onExitComplete: s, register: i } = e, o = Ir();
3814
+ _e(() => {
3807
3815
  if (t)
3808
3816
  return i(o);
3809
3817
  }, [t]);
3810
3818
  const r = $s(() => t && s && s(o), [o, s, t]);
3811
3819
  return !n && s ? [!1, r] : [!0];
3812
3820
  }
3813
- const Tr = Tt({ strict: !1 }), Es = {
3821
+ const wr = Tt({ strict: !1 }), Es = {
3814
3822
  animation: [
3815
3823
  "animate",
3816
3824
  "variants",
@@ -3831,7 +3839,7 @@ const Tr = Tt({ strict: !1 }), Es = {
3831
3839
  layout: ["layout", "layoutId"]
3832
3840
  };
3833
3841
  let Rs = !1;
3834
- function bc() {
3842
+ function Vc() {
3835
3843
  if (Rs)
3836
3844
  return;
3837
3845
  const t = {};
@@ -3839,21 +3847,21 @@ function bc() {
3839
3847
  t[e] = {
3840
3848
  isEnabled: (n) => Es[e].some((s) => !!n[s])
3841
3849
  };
3842
- Xi(t), Rs = !0;
3850
+ qi(t), Rs = !0;
3843
3851
  }
3844
- function xr() {
3845
- return bc(), ml();
3852
+ function Pr() {
3853
+ return Vc(), yl();
3846
3854
  }
3847
- function Ac(t) {
3848
- const e = xr();
3855
+ function Dc(t) {
3856
+ const e = Pr();
3849
3857
  for (const n in t)
3850
3858
  e[n] = {
3851
3859
  ...e[n],
3852
3860
  ...t[n]
3853
3861
  };
3854
- Xi(e);
3862
+ qi(e);
3855
3863
  }
3856
- const Vc = /* @__PURE__ */ new Set([
3864
+ const Mc = /* @__PURE__ */ new Set([
3857
3865
  "animate",
3858
3866
  "exit",
3859
3867
  "variants",
@@ -3887,25 +3895,25 @@ const Vc = /* @__PURE__ */ new Set([
3887
3895
  "viewport"
3888
3896
  ]);
3889
3897
  function ee(t) {
3890
- return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Vc.has(t);
3898
+ return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Mc.has(t);
3891
3899
  }
3892
- let wr = (t) => !ee(t);
3893
- function Dc(t) {
3894
- typeof t == "function" && (wr = (e) => e.startsWith("on") ? !ee(e) : t(e));
3900
+ let Sr = (t) => !ee(t);
3901
+ function Cc(t) {
3902
+ typeof t == "function" && (Sr = (e) => e.startsWith("on") ? !ee(e) : t(e));
3895
3903
  }
3896
3904
  try {
3897
- Dc(require("@emotion/is-prop-valid").default);
3905
+ Cc(require("@emotion/is-prop-valid").default);
3898
3906
  } catch {
3899
3907
  }
3900
- function Mc(t, e, n) {
3908
+ function Ec(t, e, n) {
3901
3909
  const s = {};
3902
3910
  for (const i in t)
3903
- i === "values" && typeof t.values == "object" || (wr(i) || n === !0 && ee(i) || !e && !ee(i) || // If trying to use native HTML drag events, forward drag listeners
3911
+ i === "values" && typeof t.values == "object" || (Sr(i) || n === !0 && ee(i) || !e && !ee(i) || // If trying to use native HTML drag events, forward drag listeners
3904
3912
  t.draggable && i.startsWith("onDrag")) && (s[i] = t[i]);
3905
3913
  return s;
3906
3914
  }
3907
3915
  const re = /* @__PURE__ */ Tt({});
3908
- function Cc(t, e) {
3916
+ function Rc(t, e) {
3909
3917
  if (ie(t)) {
3910
3918
  const { initial: n, animate: s } = t;
3911
3919
  return {
@@ -3915,8 +3923,8 @@ function Cc(t, e) {
3915
3923
  }
3916
3924
  return t.inherit !== !1 ? e : {};
3917
3925
  }
3918
- function Ec(t) {
3919
- const { initial: e, animate: n } = Cc(t, O(re));
3926
+ function Lc(t) {
3927
+ const { initial: e, animate: n } = Rc(t, O(re));
3920
3928
  return ne(() => ({ initial: e, animate: n }), [Ls(e), Ls(n)]);
3921
3929
  }
3922
3930
  function Ls(t) {
@@ -3928,43 +3936,43 @@ const Pn = () => ({
3928
3936
  transformOrigin: {},
3929
3937
  vars: {}
3930
3938
  });
3931
- function Pr(t, e, n) {
3939
+ function br(t, e, n) {
3932
3940
  for (const s in e)
3933
- !k(e[s]) && !er(s, n) && (t[s] = e[s]);
3941
+ !k(e[s]) && !sr(s, n) && (t[s] = e[s]);
3934
3942
  }
3935
- function Rc({ transformTemplate: t }, e) {
3943
+ function kc({ transformTemplate: t }, e) {
3936
3944
  return ne(() => {
3937
3945
  const n = Pn();
3938
3946
  return xn(n, e, t), Object.assign({}, n.vars, n.style);
3939
3947
  }, [e]);
3940
3948
  }
3941
- function Lc(t, e) {
3949
+ function Bc(t, e) {
3942
3950
  const n = t.style || {}, s = {};
3943
- return Pr(s, n, t), Object.assign(s, Rc(t, e)), s;
3951
+ return br(s, n, t), Object.assign(s, kc(t, e)), s;
3944
3952
  }
3945
- function kc(t, e) {
3946
- const n = {}, s = Lc(t, e);
3953
+ function Fc(t, e) {
3954
+ const n = {}, s = Bc(t, e);
3947
3955
  return t.drag && t.dragListener !== !1 && (n.draggable = !1, s.userSelect = s.WebkitUserSelect = s.WebkitTouchCallout = "none", s.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (n.tabIndex = 0), n.style = s, n;
3948
3956
  }
3949
- const Sr = () => ({
3957
+ const Ar = () => ({
3950
3958
  ...Pn(),
3951
3959
  attrs: {}
3952
3960
  });
3953
- function Bc(t, e, n, s) {
3961
+ function Ic(t, e, n, s) {
3954
3962
  const i = ne(() => {
3955
- const o = Sr();
3956
- return nr(o, e, ir(s), t.transformTemplate, t.style), {
3963
+ const o = Ar();
3964
+ return ir(o, e, or(s), t.transformTemplate, t.style), {
3957
3965
  ...o.attrs,
3958
3966
  style: { ...o.style }
3959
3967
  };
3960
3968
  }, [e]);
3961
3969
  if (t.style) {
3962
3970
  const o = {};
3963
- Pr(o, t.style, t), i.style = { ...o, ...i.style };
3971
+ br(o, t.style, t), i.style = { ...o, ...i.style };
3964
3972
  }
3965
3973
  return i;
3966
3974
  }
3967
- const Fc = [
3975
+ const Oc = [
3968
3976
  "animate",
3969
3977
  "circle",
3970
3978
  "defs",
@@ -4004,32 +4012,32 @@ function Sn(t) {
4004
4012
  /**
4005
4013
  * If it's in our list of lowercase SVG tags, it's an SVG component
4006
4014
  */
4007
- !!(Fc.indexOf(t) > -1 || /**
4015
+ !!(Oc.indexOf(t) > -1 || /**
4008
4016
  * If it contains a capital letter, it's an SVG component
4009
4017
  */
4010
4018
  /[A-Z]/u.test(t))
4011
4019
  )
4012
4020
  );
4013
4021
  }
4014
- function Ic(t, e, n, { latestValues: s }, i, o = !1, r) {
4015
- const l = (r ?? Sn(t) ? Bc : kc)(e, s, i, t), c = Mc(e, typeof t == "string", o), u = t !== zs ? { ...c, ...l, ref: n } : {}, { children: h } = e, f = ne(() => k(h) ? h.get() : h, [h]);
4016
- return Fr(t, {
4022
+ function jc(t, e, n, { latestValues: s }, i, o = !1, r) {
4023
+ const l = (r ?? Sn(t) ? Ic : Fc)(e, s, i, t), c = Ec(e, typeof t == "string", o), u = t !== zs ? { ...c, ...l, ref: n } : {}, { children: h } = e, f = ne(() => k(h) ? h.get() : h, [h]);
4024
+ return Or(t, {
4017
4025
  ...u,
4018
4026
  children: f
4019
4027
  });
4020
4028
  }
4021
- function Oc({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, s, i) {
4029
+ function Nc({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, s, i) {
4022
4030
  return {
4023
- latestValues: jc(n, s, i, t),
4031
+ latestValues: Uc(n, s, i, t),
4024
4032
  renderState: e()
4025
4033
  };
4026
4034
  }
4027
- function jc(t, e, n, s) {
4035
+ function Uc(t, e, n, s) {
4028
4036
  const i = {}, o = s(t, {});
4029
4037
  for (const f in o)
4030
4038
  i[f] = Gt(o[f]);
4031
4039
  let { initial: r, animate: a } = t;
4032
- const l = ie(t), c = Gi(t);
4040
+ const l = ie(t), c = Xi(t);
4033
4041
  e && c && !l && t.inherit !== !1 && (r === void 0 && (r = e.initial), a === void 0 && (a = e.animate));
4034
4042
  let u = n ? n.initial === !1 : !1;
4035
4043
  u = u || r === !1;
@@ -4037,11 +4045,11 @@ function jc(t, e, n, s) {
4037
4045
  if (h && typeof h != "boolean" && !se(h)) {
4038
4046
  const f = Array.isArray(h) ? h : [h];
4039
4047
  for (let d = 0; d < f.length; d++) {
4040
- const p = fn(t, f[d]);
4041
- if (p) {
4042
- const { transitionEnd: v, transition: g, ...m } = p;
4043
- for (const x in m) {
4044
- let y = m[x];
4048
+ const m = fn(t, f[d]);
4049
+ if (m) {
4050
+ const { transitionEnd: v, transition: g, ...p } = m;
4051
+ for (const x in p) {
4052
+ let y = p[x];
4045
4053
  if (Array.isArray(y)) {
4046
4054
  const P = u ? y.length - 1 : 0;
4047
4055
  y = y[P];
@@ -4055,17 +4063,17 @@ function jc(t, e, n, s) {
4055
4063
  }
4056
4064
  return i;
4057
4065
  }
4058
- const br = (t) => (e, n) => {
4059
- const s = O(re), i = O(_e), o = () => Oc(t, e, s, i);
4060
- return n ? o() : Nr(o);
4061
- }, Nc = /* @__PURE__ */ br({
4066
+ const Vr = (t) => (e, n) => {
4067
+ const s = O(re), i = O(Xe), o = () => Nc(t, e, s, i);
4068
+ return n ? o() : Wr(o);
4069
+ }, Wc = /* @__PURE__ */ Vr({
4062
4070
  scrapeMotionValuesFromProps: wn,
4063
4071
  createRenderState: Pn
4064
- }), Uc = /* @__PURE__ */ br({
4065
- scrapeMotionValuesFromProps: rr,
4066
- createRenderState: Sr
4067
- }), Wc = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
4068
- function Kc(t, e, n) {
4072
+ }), Kc = /* @__PURE__ */ Vr({
4073
+ scrapeMotionValuesFromProps: ar,
4074
+ createRenderState: Ar
4075
+ }), $c = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
4076
+ function zc(t, e, n) {
4069
4077
  const s = it(n);
4070
4078
  Hs(() => {
4071
4079
  s.current = n;
@@ -4082,12 +4090,12 @@ function Kc(t, e, n) {
4082
4090
  else r && (r.current = o);
4083
4091
  }, [e]);
4084
4092
  }
4085
- const Ar = Tt({});
4093
+ const Dr = Tt({});
4086
4094
  function ut(t) {
4087
4095
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
4088
4096
  }
4089
- function $c(t, e, n, s, i, o) {
4090
- const { visualElement: r } = O(re), a = O(Tr), l = O(_e), c = O(vr), u = c.reducedMotion, h = c.skipAnimations, f = it(null), d = it(!1);
4097
+ function Hc(t, e, n, s, i, o) {
4098
+ const { visualElement: r } = O(re), a = O(wr), l = O(Xe), c = O(xr), u = c.reducedMotion, h = c.skipAnimations, f = it(null), d = it(!1);
4091
4099
  s = s || a.renderer, !f.current && s && (f.current = s(t, {
4092
4100
  visualState: e,
4093
4101
  parent: r,
@@ -4098,24 +4106,24 @@ function $c(t, e, n, s, i, o) {
4098
4106
  skipAnimations: h,
4099
4107
  isSVG: o
4100
4108
  }), d.current && f.current && (f.current.manuallyAnimateOnMount = !0));
4101
- const p = f.current, v = O(Ar);
4102
- p && !p.projection && i && (p.type === "html" || p.type === "svg") && zc(f.current, n, i, v);
4109
+ const m = f.current, v = O(Dr);
4110
+ m && !m.projection && i && (m.type === "html" || m.type === "svg") && Gc(f.current, n, i, v);
4103
4111
  const g = it(!1);
4104
4112
  Hs(() => {
4105
- p && g.current && p.update(n, l);
4113
+ m && g.current && m.update(n, l);
4106
4114
  });
4107
- const m = n[ki], x = it(!!m && !window.MotionHandoffIsComplete?.(m) && window.MotionHasOptimisedAnimation?.(m));
4108
- return Ur(() => {
4109
- d.current = !0, p && (g.current = !0, window.MotionIsMounted = !0, p.updateFeatures(), p.scheduleRenderMicrotask(), x.current && p.animationState && p.animationState.animateChanges());
4110
- }), Ge(() => {
4111
- p && (!x.current && p.animationState && p.animationState.animateChanges(), x.current && (queueMicrotask(() => {
4112
- window.MotionHandoffMarkAsComplete?.(m);
4113
- }), x.current = !1), p.enteringChildren = void 0);
4114
- }), p;
4115
- }
4116
- function zc(t, e, n, s) {
4115
+ const p = n[Fi], x = it(!!p && !window.MotionHandoffIsComplete?.(p) && window.MotionHasOptimisedAnimation?.(p));
4116
+ return Kr(() => {
4117
+ d.current = !0, m && (g.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), x.current && m.animationState && m.animationState.animateChanges());
4118
+ }), _e(() => {
4119
+ m && (!x.current && m.animationState && m.animationState.animateChanges(), x.current && (queueMicrotask(() => {
4120
+ window.MotionHandoffMarkAsComplete?.(p);
4121
+ }), x.current = !1), m.enteringChildren = void 0);
4122
+ }), m;
4123
+ }
4124
+ function Gc(t, e, n, s) {
4117
4125
  const { layoutId: i, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: c, layoutCrossfade: u } = e;
4118
- t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : Vr(t.parent)), t.projection.setOptions({
4126
+ t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : Mr(t.parent)), t.projection.setOptions({
4119
4127
  layoutId: i,
4120
4128
  layout: o,
4121
4129
  alwaysMeasureLayout: !!r || a && ut(a),
@@ -4134,44 +4142,44 @@ function zc(t, e, n, s) {
4134
4142
  layoutRoot: c
4135
4143
  });
4136
4144
  }
4137
- function Vr(t) {
4145
+ function Mr(t) {
4138
4146
  if (t)
4139
- return t.options.allowProjection !== !1 ? t.projection : Vr(t.parent);
4147
+ return t.options.allowProjection !== !1 ? t.projection : Mr(t.parent);
4140
4148
  }
4141
4149
  function ye(t, { forwardMotionProps: e = !1, type: n } = {}, s, i) {
4142
- s && Ac(s);
4143
- const o = n ? n === "svg" : Sn(t), r = o ? Uc : Nc;
4150
+ s && Dc(s);
4151
+ const o = n ? n === "svg" : Sn(t), r = o ? Kc : Wc;
4144
4152
  function a(c, u) {
4145
4153
  let h;
4146
4154
  const f = {
4147
- ...O(vr),
4155
+ ...O(xr),
4148
4156
  ...c,
4149
- layoutId: Hc(c)
4150
- }, { isStatic: d } = f, p = Ec(c), v = r(c, d);
4157
+ layoutId: _c(c)
4158
+ }, { isStatic: d } = f, m = Lc(c), v = r(c, d);
4151
4159
  if (!d && Xs) {
4152
- Gc(f, s);
4153
- const g = _c(f);
4154
- h = g.MeasureLayout, p.visualElement = $c(t, v, f, i, g.ProjectionNode, o);
4160
+ Xc(f, s);
4161
+ const g = Yc(f);
4162
+ h = g.MeasureLayout, m.visualElement = Hc(t, v, f, i, g.ProjectionNode, o);
4155
4163
  }
4156
- return jr(re.Provider, { value: p, children: [h && p.visualElement ? Gs(h, { visualElement: p.visualElement, ...f }) : null, Ic(t, c, Kc(v, p.visualElement, u), v, d, e, o)] });
4164
+ return Ur(re.Provider, { value: m, children: [h && m.visualElement ? Gs(h, { visualElement: m.visualElement, ...f }) : null, jc(t, c, zc(v, m.visualElement, u), v, d, e, o)] });
4157
4165
  }
4158
4166
  a.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
4159
- const l = Ir(a);
4160
- return l[Wc] = t, l;
4167
+ const l = jr(a);
4168
+ return l[$c] = t, l;
4161
4169
  }
4162
- function Hc({ layoutId: t }) {
4170
+ function _c({ layoutId: t }) {
4163
4171
  const e = O(_s).id;
4164
4172
  return e && t !== void 0 ? e + "-" + t : t;
4165
4173
  }
4166
- function Gc(t, e) {
4167
- const n = O(Tr).strict;
4174
+ function Xc(t, e) {
4175
+ const n = O(wr).strict;
4168
4176
  if (process.env.NODE_ENV !== "production" && e && n) {
4169
4177
  const s = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
4170
- t.ignoreStrict ? xt(!1, s, "lazy-strict-mode") : X(!1, s, "lazy-strict-mode");
4178
+ t.ignoreStrict ? xt(!1, s, "lazy-strict-mode") : Y(!1, s, "lazy-strict-mode");
4171
4179
  }
4172
4180
  }
4173
- function _c(t) {
4174
- const e = xr(), { drag: n, layout: s } = e;
4181
+ function Yc(t) {
4182
+ const e = Pr(), { drag: n, layout: s } = e;
4175
4183
  if (!n && !s)
4176
4184
  return {};
4177
4185
  const i = { ...n, ...s };
@@ -4180,7 +4188,7 @@ function _c(t) {
4180
4188
  ProjectionNode: i.ProjectionNode
4181
4189
  };
4182
4190
  }
4183
- function Xc(t, e) {
4191
+ function qc(t, e) {
4184
4192
  if (typeof Proxy > "u")
4185
4193
  return ye;
4186
4194
  const n = /* @__PURE__ */ new Map(), s = (o, r) => ye(o, r, t, e), i = (o, r) => (process.env.NODE_ENV !== "production" && Ze(!1, "motion() is deprecated. Use motion.create() instead."), s(o, r));
@@ -4193,17 +4201,17 @@ function Xc(t, e) {
4193
4201
  get: (o, r) => r === "create" ? s : (n.has(r) || n.set(r, ye(r, void 0, t, e)), n.get(r))
4194
4202
  });
4195
4203
  }
4196
- const Yc = (t, e) => e.isSVG ?? Sn(t) ? new Ll(e) : new Vl(e, {
4204
+ const Zc = (t, e) => e.isSVG ?? Sn(t) ? new Bl(e) : new Ml(e, {
4197
4205
  allowProjection: t !== zs
4198
4206
  });
4199
- class qc extends tt {
4207
+ class Jc extends tt {
4200
4208
  /**
4201
4209
  * We dynamically generate the AnimationState manager as it contains a reference
4202
4210
  * to the underlying animation library. We only want to load that if we load this,
4203
4211
  * so people can optionally code split it out using the `m` component.
4204
4212
  */
4205
4213
  constructor(e) {
4206
- super(e), e.animationState || (e.animationState = Ol(e));
4214
+ super(e), e.animationState || (e.animationState = Nl(e));
4207
4215
  }
4208
4216
  updateAnimationControlsSubscription() {
4209
4217
  const { animate: e } = this.node.getProps();
@@ -4223,10 +4231,10 @@ class qc extends tt {
4223
4231
  this.node.animationState.reset(), this.unmountControls?.();
4224
4232
  }
4225
4233
  }
4226
- let Zc = 0;
4227
- class Jc extends tt {
4234
+ let Qc = 0;
4235
+ class tu extends tt {
4228
4236
  constructor() {
4229
- super(...arguments), this.id = Zc++;
4237
+ super(...arguments), this.id = Qc++;
4230
4238
  }
4231
4239
  update() {
4232
4240
  if (!this.node.presenceContext)
@@ -4246,12 +4254,12 @@ class Jc extends tt {
4246
4254
  unmount() {
4247
4255
  }
4248
4256
  }
4249
- const Qc = {
4257
+ const eu = {
4250
4258
  animation: {
4251
- Feature: qc
4259
+ Feature: Jc
4252
4260
  },
4253
4261
  exit: {
4254
- Feature: Jc
4262
+ Feature: tu
4255
4263
  }
4256
4264
  };
4257
4265
  function Ot(t) {
@@ -4262,17 +4270,17 @@ function Ot(t) {
4262
4270
  }
4263
4271
  };
4264
4272
  }
4265
- const tu = (t) => (e) => gn(e) && t(e, Ot(e));
4273
+ const nu = (t) => (e) => gn(e) && t(e, Ot(e));
4266
4274
  function Mt(t, e, n, s) {
4267
- return kt(t, e, tu(n), s);
4275
+ return kt(t, e, nu(n), s);
4268
4276
  }
4269
- const Dr = ({ current: t }) => t ? t.ownerDocument.defaultView : null, ks = (t, e) => Math.abs(t - e);
4270
- function eu(t, e) {
4277
+ const Cr = ({ current: t }) => t ? t.ownerDocument.defaultView : null, ks = (t, e) => Math.abs(t - e);
4278
+ function su(t, e) {
4271
4279
  const n = ks(t.x, e.x), s = ks(t.y, e.y);
4272
4280
  return Math.sqrt(n ** 2 + s ** 2);
4273
4281
  }
4274
4282
  const Bs = /* @__PURE__ */ new Set(["auto", "scroll"]);
4275
- class Mr {
4283
+ class Er {
4276
4284
  constructor(e, n, { transformPagePoint: s, contextWindow: i = window, dragSnapToOrigin: o = !1, distanceThreshold: r = 3, element: a } = {}) {
4277
4285
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (d) => {
4278
4286
  this.handleScroll(d.target);
@@ -4281,21 +4289,21 @@ class Mr {
4281
4289
  }, this.updatePoint = () => {
4282
4290
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
4283
4291
  return;
4284
- const d = Te(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, v = eu(d.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
4285
- if (!p && !v)
4292
+ const d = Te(this.lastMoveEventInfo, this.history), m = this.startEvent !== null, v = su(d.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
4293
+ if (!m && !v)
4286
4294
  return;
4287
- const { point: g } = d, { timestamp: m } = L;
4288
- this.history.push({ ...g, timestamp: m });
4295
+ const { point: g } = d, { timestamp: p } = L;
4296
+ this.history.push({ ...g, timestamp: p });
4289
4297
  const { onStart: x, onMove: y } = this.handlers;
4290
- p || (x && x(this.lastMoveEvent, d), this.startEvent = this.lastMoveEvent), y && y(this.lastMoveEvent, d);
4291
- }, this.handlePointerMove = (d, p) => {
4292
- this.lastMoveEvent = d, this.lastMoveEventInfo = ve(p, this.transformPagePoint), A.update(this.updatePoint, !0);
4293
- }, this.handlePointerUp = (d, p) => {
4298
+ m || (x && x(this.lastMoveEvent, d), this.startEvent = this.lastMoveEvent), y && y(this.lastMoveEvent, d);
4299
+ }, this.handlePointerMove = (d, m) => {
4300
+ this.lastMoveEvent = d, this.lastMoveEventInfo = ve(m, this.transformPagePoint), A.update(this.updatePoint, !0);
4301
+ }, this.handlePointerUp = (d, m) => {
4294
4302
  this.end();
4295
- const { onEnd: v, onSessionEnd: g, resumeAnimation: m } = this.handlers;
4296
- if ((this.dragSnapToOrigin || !this.startEvent) && m && m(), !(this.lastMoveEvent && this.lastMoveEventInfo))
4303
+ const { onEnd: v, onSessionEnd: g, resumeAnimation: p } = this.handlers;
4304
+ if ((this.dragSnapToOrigin || !this.startEvent) && p && p(), !(this.lastMoveEvent && this.lastMoveEventInfo))
4297
4305
  return;
4298
- const x = Te(d.type === "pointercancel" ? this.lastMoveEventInfo : ve(p, this.transformPagePoint), this.history);
4306
+ const x = Te(d.type === "pointercancel" ? this.lastMoveEventInfo : ve(m, this.transformPagePoint), this.history);
4299
4307
  this.startEvent && v && v(d, x), g && g(d, x);
4300
4308
  }, !gn(e))
4301
4309
  return;
@@ -4321,11 +4329,8 @@ class Mr {
4321
4329
  x: window.scrollX,
4322
4330
  y: window.scrollY
4323
4331
  }), window.addEventListener("scroll", this.onElementScroll, {
4324
- capture: !0,
4325
- passive: !0
4326
- }), window.addEventListener("scroll", this.onWindowScroll, {
4327
- passive: !0
4328
- }), this.removeScrollListeners = () => {
4332
+ capture: !0
4333
+ }), window.addEventListener("scroll", this.onWindowScroll), this.removeScrollListeners = () => {
4329
4334
  window.removeEventListener("scroll", this.onElementScroll, {
4330
4335
  capture: !0
4331
4336
  }), window.removeEventListener("scroll", this.onWindowScroll);
@@ -4351,7 +4356,7 @@ class Mr {
4351
4356
  this.handlers = e;
4352
4357
  }
4353
4358
  end() {
4354
- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), J(this.updatePoint);
4359
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), Q(this.updatePoint);
4355
4360
  }
4356
4361
  }
4357
4362
  function ve(t, e) {
@@ -4363,22 +4368,22 @@ function Fs(t, e) {
4363
4368
  function Te({ point: t }, e) {
4364
4369
  return {
4365
4370
  point: t,
4366
- delta: Fs(t, Cr(e)),
4367
- offset: Fs(t, nu(e)),
4368
- velocity: su(e, 0.1)
4371
+ delta: Fs(t, Rr(e)),
4372
+ offset: Fs(t, iu(e)),
4373
+ velocity: ru(e, 0.1)
4369
4374
  };
4370
4375
  }
4371
- function nu(t) {
4376
+ function iu(t) {
4372
4377
  return t[0];
4373
4378
  }
4374
- function Cr(t) {
4379
+ function Rr(t) {
4375
4380
  return t[t.length - 1];
4376
4381
  }
4377
- function su(t, e) {
4382
+ function ru(t, e) {
4378
4383
  if (t.length < 2)
4379
4384
  return { x: 0, y: 0 };
4380
4385
  let n = t.length - 1, s = null;
4381
- const i = Cr(t);
4386
+ const i = Rr(t);
4382
4387
  for (; n >= 0 && (s = t[n], !(i.timestamp - s.timestamp > /* @__PURE__ */ K(e))); )
4383
4388
  n--;
4384
4389
  if (!s)
@@ -4393,7 +4398,7 @@ function su(t, e) {
4393
4398
  };
4394
4399
  return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
4395
4400
  }
4396
- function iu(t, { min: e, max: n }, s) {
4401
+ function ou(t, { min: e, max: n }, s) {
4397
4402
  return e !== void 0 && t < e ? t = s ? D(e, t, s.min) : Math.max(t, e) : n !== void 0 && t > n && (t = s ? D(n, t, s.max) : Math.min(t, n)), t;
4398
4403
  }
4399
4404
  function Is(t, e, n) {
@@ -4402,7 +4407,7 @@ function Is(t, e, n) {
4402
4407
  max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
4403
4408
  };
4404
4409
  }
4405
- function ru(t, { top: e, left: n, bottom: s, right: i }) {
4410
+ function au(t, { top: e, left: n, bottom: s, right: i }) {
4406
4411
  return {
4407
4412
  x: Is(t.x, n, i),
4408
4413
  y: Is(t.y, e, s)
@@ -4412,24 +4417,24 @@ function Os(t, e) {
4412
4417
  let n = e.min - t.min, s = e.max - t.max;
4413
4418
  return e.max - e.min < t.max - t.min && ([n, s] = [s, n]), { min: n, max: s };
4414
4419
  }
4415
- function ou(t, e) {
4420
+ function lu(t, e) {
4416
4421
  return {
4417
4422
  x: Os(t.x, e.x),
4418
4423
  y: Os(t.y, e.y)
4419
4424
  };
4420
4425
  }
4421
- function au(t, e) {
4426
+ function cu(t, e) {
4422
4427
  let n = 0.5;
4423
4428
  const s = F(t), i = F(e);
4424
- return i > s ? n = /* @__PURE__ */ Ct(e.min, e.max - s, t.min) : s > i && (n = /* @__PURE__ */ Ct(t.min, t.max - i, e.min)), _(0, 1, n);
4429
+ return i > s ? n = /* @__PURE__ */ Ct(e.min, e.max - s, t.min) : s > i && (n = /* @__PURE__ */ Ct(t.min, t.max - i, e.min)), X(0, 1, n);
4425
4430
  }
4426
- function lu(t, e) {
4431
+ function uu(t, e) {
4427
4432
  const n = {};
4428
4433
  return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
4429
4434
  }
4430
- const ze = 0.35;
4431
- function cu(t = ze) {
4432
- return t === !1 ? t = 0 : t === !0 && (t = ze), {
4435
+ const He = 0.35;
4436
+ function hu(t = He) {
4437
+ return t === !1 ? t = 0 : t === !0 && (t = He), {
4433
4438
  x: js(t, "left", "right"),
4434
4439
  y: js(t, "top", "bottom")
4435
4440
  };
@@ -4443,8 +4448,8 @@ function js(t, e, n) {
4443
4448
  function Ns(t, e) {
4444
4449
  return typeof t == "number" ? t : t[e] || 0;
4445
4450
  }
4446
- const uu = /* @__PURE__ */ new WeakMap();
4447
- class hu {
4451
+ const fu = /* @__PURE__ */ new WeakMap();
4452
+ class du {
4448
4453
  constructor(e) {
4449
4454
  this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = E(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
4450
4455
  }
@@ -4455,40 +4460,40 @@ class hu {
4455
4460
  const o = (h) => {
4456
4461
  n && this.snapToCursor(Ot(h).point), this.stopAnimation();
4457
4462
  }, r = (h, f) => {
4458
- const { drag: d, dragPropagation: p, onDragStart: v } = this.getProps();
4459
- if (d && !p && (this.openDragLock && this.openDragLock(), this.openDragLock = Ha(d), !this.openDragLock))
4463
+ const { drag: d, dragPropagation: m, onDragStart: v } = this.getProps();
4464
+ if (d && !m && (this.openDragLock && this.openDragLock(), this.openDragLock = _a(d), !this.openDragLock))
4460
4465
  return;
4461
- this.latestPointerEvent = h, this.latestPanInfo = f, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), H((m) => {
4462
- let x = this.getAxisMotionValue(m).get() || 0;
4463
- if (G.test(x)) {
4466
+ this.latestPointerEvent = h, this.latestPanInfo = f, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), G((p) => {
4467
+ let x = this.getAxisMotionValue(p).get() || 0;
4468
+ if (_.test(x)) {
4464
4469
  const { projection: y } = this.visualElement;
4465
4470
  if (y && y.layout) {
4466
- const P = y.layout.layoutBox[m];
4471
+ const P = y.layout.layoutBox[p];
4467
4472
  P && (x = F(P) * (parseFloat(x) / 100));
4468
4473
  }
4469
4474
  }
4470
- this.originPoint[m] = x;
4475
+ this.originPoint[p] = x;
4471
4476
  }), v && A.update(() => v(h, f), !1, !0), Oe(this.visualElement, "transform");
4472
4477
  const { animationState: g } = this.visualElement;
4473
4478
  g && g.setActive("whileDrag", !0);
4474
4479
  }, a = (h, f) => {
4475
4480
  this.latestPointerEvent = h, this.latestPanInfo = f;
4476
- const { dragPropagation: d, dragDirectionLock: p, onDirectionLock: v, onDrag: g } = this.getProps();
4481
+ const { dragPropagation: d, dragDirectionLock: m, onDirectionLock: v, onDrag: g } = this.getProps();
4477
4482
  if (!d && !this.openDragLock)
4478
4483
  return;
4479
- const { offset: m } = f;
4480
- if (p && this.currentDirection === null) {
4481
- this.currentDirection = du(m), this.currentDirection !== null && v && v(this.currentDirection);
4484
+ const { offset: p } = f;
4485
+ if (m && this.currentDirection === null) {
4486
+ this.currentDirection = pu(p), this.currentDirection !== null && v && v(this.currentDirection);
4482
4487
  return;
4483
4488
  }
4484
- this.updateAxis("x", f.point, m), this.updateAxis("y", f.point, m), this.visualElement.render(), g && A.update(() => g(h, f), !1, !0);
4489
+ this.updateAxis("x", f.point, p), this.updateAxis("y", f.point, p), this.visualElement.render(), g && A.update(() => g(h, f), !1, !0);
4485
4490
  }, l = (h, f) => {
4486
4491
  this.latestPointerEvent = h, this.latestPanInfo = f, this.stop(h, f), this.latestPointerEvent = null, this.latestPanInfo = null;
4487
4492
  }, c = () => {
4488
4493
  const { dragSnapToOrigin: h } = this.getProps();
4489
4494
  (h || this.constraints) && this.startAnimation({ x: 0, y: 0 });
4490
4495
  }, { dragSnapToOrigin: u } = this.getProps();
4491
- this.panSession = new Mr(e, {
4496
+ this.panSession = new Er(e, {
4492
4497
  onSessionStart: o,
4493
4498
  onStart: r,
4494
4499
  onMove: a,
@@ -4498,7 +4503,7 @@ class hu {
4498
4503
  transformPagePoint: this.visualElement.getTransformPagePoint(),
4499
4504
  dragSnapToOrigin: u,
4500
4505
  distanceThreshold: s,
4501
- contextWindow: Dr(this.visualElement),
4506
+ contextWindow: Cr(this.visualElement),
4502
4507
  element: this.visualElement.current
4503
4508
  });
4504
4509
  }
@@ -4539,12 +4544,12 @@ class hu {
4539
4544
  return;
4540
4545
  const o = this.getAxisMotionValue(e);
4541
4546
  let r = this.originPoint[e] + s[e];
4542
- this.constraints && this.constraints[e] && (r = iu(r, this.constraints[e], this.elastic[e])), o.set(r);
4547
+ this.constraints && this.constraints[e] && (r = ou(r, this.constraints[e], this.elastic[e])), o.set(r);
4543
4548
  }
4544
4549
  resolveConstraints() {
4545
4550
  const { dragConstraints: e, dragElastic: n } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, i = this.constraints;
4546
- e && ut(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && s ? this.constraints = ru(s.layoutBox, e) : this.constraints = !1, this.elastic = cu(n), i !== this.constraints && !ut(e) && s && this.constraints && !this.hasMutatedConstraints && H((o) => {
4547
- this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = lu(s.layoutBox[o], this.constraints[o]));
4551
+ e && ut(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && s ? this.constraints = au(s.layoutBox, e) : this.constraints = !1, this.elastic = hu(n), i !== this.constraints && !ut(e) && s && this.constraints && !this.hasMutatedConstraints && G((o) => {
4552
+ this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = uu(s.layoutBox[o], this.constraints[o]));
4548
4553
  });
4549
4554
  }
4550
4555
  resolveRefConstraints() {
@@ -4552,25 +4557,25 @@ class hu {
4552
4557
  if (!e || !ut(e))
4553
4558
  return !1;
4554
4559
  const s = e.current;
4555
- X(s !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
4560
+ Y(s !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
4556
4561
  const { projection: i } = this.visualElement;
4557
4562
  if (!i || !i.layout)
4558
4563
  return !1;
4559
- const o = xl(s, i.root, this.visualElement.getTransformPagePoint());
4560
- let r = ou(i.layout.layoutBox, o);
4564
+ const o = Pl(s, i.root, this.visualElement.getTransformPagePoint());
4565
+ let r = lu(i.layout.layoutBox, o);
4561
4566
  if (n) {
4562
- const a = n(yl(r));
4563
- this.hasMutatedConstraints = !!a, a && (r = qi(a));
4567
+ const a = n(Tl(r));
4568
+ this.hasMutatedConstraints = !!a, a && (r = Ji(a));
4564
4569
  }
4565
4570
  return r;
4566
4571
  }
4567
4572
  startAnimation(e) {
4568
- const { drag: n, dragMomentum: s, dragElastic: i, dragTransition: o, dragSnapToOrigin: r, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = H((u) => {
4573
+ const { drag: n, dragMomentum: s, dragElastic: i, dragTransition: o, dragSnapToOrigin: r, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = G((u) => {
4569
4574
  if (!Ut(u, n, this.currentDirection))
4570
4575
  return;
4571
4576
  let h = l && l[u] || {};
4572
4577
  r && (h = { min: 0, max: 0 });
4573
- const f = i ? 200 : 1e6, d = i ? 40 : 1e7, p = {
4578
+ const f = i ? 200 : 1e6, d = i ? 40 : 1e7, m = {
4574
4579
  type: "inertia",
4575
4580
  velocity: s ? e[u] : 0,
4576
4581
  bounceStiffness: f,
@@ -4581,7 +4586,7 @@ class hu {
4581
4586
  ...o,
4582
4587
  ...h
4583
4588
  };
4584
- return this.startAxisValueAnimation(u, p);
4589
+ return this.startAxisValueAnimation(u, m);
4585
4590
  });
4586
4591
  return Promise.all(c).then(a);
4587
4592
  }
@@ -4590,7 +4595,7 @@ class hu {
4590
4595
  return Oe(this.visualElement, e), s.start(hn(e, s, 0, n, this.visualElement, !1));
4591
4596
  }
4592
4597
  stopAnimation() {
4593
- H((e) => this.getAxisMotionValue(e).stop());
4598
+ G((e) => this.getAxisMotionValue(e).stop());
4594
4599
  }
4595
4600
  /**
4596
4601
  * Drag works differently depending on which props are provided.
@@ -4603,7 +4608,7 @@ class hu {
4603
4608
  return i || this.visualElement.getValue(e, (s.initial ? s.initial[e] : void 0) || 0);
4604
4609
  }
4605
4610
  snapToCursor(e) {
4606
- H((n) => {
4611
+ G((n) => {
4607
4612
  const { drag: s } = this.getProps();
4608
4613
  if (!Ut(n, s, this.currentDirection))
4609
4614
  return;
@@ -4627,15 +4632,15 @@ class hu {
4627
4632
  return;
4628
4633
  this.stopAnimation();
4629
4634
  const i = { x: 0, y: 0 };
4630
- H((r) => {
4635
+ G((r) => {
4631
4636
  const a = this.getAxisMotionValue(r);
4632
4637
  if (a && this.constraints !== !1) {
4633
4638
  const l = a.get();
4634
- i[r] = au({ min: l, max: l }, this.constraints[r]);
4639
+ i[r] = cu({ min: l, max: l }, this.constraints[r]);
4635
4640
  }
4636
4641
  });
4637
4642
  const { transformTemplate: o } = this.visualElement.getProps();
4638
- this.visualElement.current.style.transform = o ? o({}, "") : "none", s.root && s.root.updateScroll(), s.updateLayout(), this.constraints = !1, this.resolveConstraints(), H((r) => {
4643
+ this.visualElement.current.style.transform = o ? o({}, "") : "none", s.root && s.root.updateScroll(), s.updateLayout(), this.constraints = !1, this.resolveConstraints(), G((r) => {
4639
4644
  if (!Ut(r, e, null))
4640
4645
  return;
4641
4646
  const a = this.getAxisMotionValue(r), { min: l, max: c } = this.constraints[r];
@@ -4645,19 +4650,19 @@ class hu {
4645
4650
  addListeners() {
4646
4651
  if (!this.visualElement.current)
4647
4652
  return;
4648
- uu.set(this.visualElement, this);
4653
+ fu.set(this.visualElement, this);
4649
4654
  const e = this.visualElement.current, n = Mt(e, "pointerdown", (c) => {
4650
- const { drag: u, dragListener: h = !0 } = this.getProps(), f = c.target, d = f !== e && Za(f);
4655
+ const { drag: u, dragListener: h = !0 } = this.getProps(), f = c.target, d = f !== e && Qa(f);
4651
4656
  u && h && !d && this.start(c);
4652
4657
  });
4653
4658
  let s;
4654
4659
  const i = () => {
4655
4660
  const { dragConstraints: c } = this.getProps();
4656
- ut(c) && c.current && (this.constraints = this.resolveRefConstraints(), s || (s = fu(e, c.current, () => this.scalePositionWithinConstraints())));
4661
+ ut(c) && c.current && (this.constraints = this.resolveRefConstraints(), s || (s = mu(e, c.current, () => this.scalePositionWithinConstraints())));
4657
4662
  }, { projection: o } = this.visualElement, r = o.addEventListener("measure", i);
4658
4663
  o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()), A.read(i);
4659
4664
  const a = kt(window, "resize", () => this.scalePositionWithinConstraints()), l = o.addEventListener("didUpdate", (({ delta: c, hasLayoutChanged: u }) => {
4660
- this.isDragging && u && (H((h) => {
4665
+ this.isDragging && u && (G((h) => {
4661
4666
  const f = this.getAxisMotionValue(h);
4662
4667
  f && (this.originPoint[h] += c[h].translate, f.set(f.get() + c[h].translate));
4663
4668
  }), this.visualElement.render());
@@ -4667,7 +4672,7 @@ class hu {
4667
4672
  };
4668
4673
  }
4669
4674
  getProps() {
4670
- const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: s = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: r = ze, dragMomentum: a = !0 } = e;
4675
+ const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: s = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: r = He, dragMomentum: a = !0 } = e;
4671
4676
  return {
4672
4677
  ...e,
4673
4678
  drag: n,
@@ -4689,7 +4694,7 @@ function Us(t) {
4689
4694
  t();
4690
4695
  };
4691
4696
  }
4692
- function fu(t, e, n) {
4697
+ function mu(t, e, n) {
4693
4698
  const s = Yn(t, Us(n)), i = Yn(e, Us(n));
4694
4699
  return () => {
4695
4700
  s(), i();
@@ -4698,13 +4703,13 @@ function fu(t, e, n) {
4698
4703
  function Ut(t, e, n) {
4699
4704
  return (e === !0 || e === t) && (n === null || n === t);
4700
4705
  }
4701
- function du(t, e = 10) {
4706
+ function pu(t, e = 10) {
4702
4707
  let n = null;
4703
4708
  return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
4704
4709
  }
4705
- class pu extends tt {
4710
+ class gu extends tt {
4706
4711
  constructor(e) {
4707
- super(e), this.removeGroupControls = W, this.removeListeners = W, this.controls = new hu(e);
4712
+ super(e), this.removeGroupControls = W, this.removeListeners = W, this.controls = new du(e);
4708
4713
  }
4709
4714
  mount() {
4710
4715
  const { dragControls: e } = this.node.getProps();
@@ -4721,14 +4726,14 @@ class pu extends tt {
4721
4726
  const xe = (t) => (e, n) => {
4722
4727
  t && A.update(() => t(e, n), !1, !0);
4723
4728
  };
4724
- class mu extends tt {
4729
+ class yu extends tt {
4725
4730
  constructor() {
4726
4731
  super(...arguments), this.removePointerDownListener = W;
4727
4732
  }
4728
4733
  onPointerDown(e) {
4729
- this.session = new Mr(e, this.createPanHandlers(), {
4734
+ this.session = new Er(e, this.createPanHandlers(), {
4730
4735
  transformPagePoint: this.node.getTransformPagePoint(),
4731
- contextWindow: Dr(this.node)
4736
+ contextWindow: Cr(this.node)
4732
4737
  });
4733
4738
  }
4734
4739
  createPanHandlers() {
@@ -4753,7 +4758,7 @@ class mu extends tt {
4753
4758
  }
4754
4759
  }
4755
4760
  let we = !1;
4756
- class gu extends Or {
4761
+ class vu extends Nr {
4757
4762
  /**
4758
4763
  * This only mounts projection nodes for components that
4759
4764
  * need measuring, we might want to do it for all components
@@ -4781,7 +4786,7 @@ class gu extends Or {
4781
4786
  }
4782
4787
  componentDidUpdate() {
4783
4788
  const { projection: e } = this.props.visualElement;
4784
- e && (e.root.didUpdate(), mn.postRender(() => {
4789
+ e && (e.root.didUpdate(), pn.postRender(() => {
4785
4790
  !e.currentAnimation && e.isLead() && this.safeToRemove();
4786
4791
  }));
4787
4792
  }
@@ -4797,18 +4802,18 @@ class gu extends Or {
4797
4802
  return null;
4798
4803
  }
4799
4804
  }
4800
- function Er(t) {
4801
- const [e, n] = Sc(), s = O(_s);
4802
- return Gs(gu, { ...t, layoutGroup: s, switchLayoutGroup: O(Ar), isPresent: e, safeToRemove: n });
4805
+ function Lr(t) {
4806
+ const [e, n] = Ac(), s = O(_s);
4807
+ return Gs(vu, { ...t, layoutGroup: s, switchLayoutGroup: O(Dr), isPresent: e, safeToRemove: n });
4803
4808
  }
4804
- const yu = {
4809
+ const Tu = {
4805
4810
  pan: {
4806
- Feature: mu
4811
+ Feature: yu
4807
4812
  },
4808
4813
  drag: {
4809
- Feature: pu,
4810
- ProjectionNode: yr,
4811
- MeasureLayout: Er
4814
+ Feature: gu,
4815
+ ProjectionNode: Tr,
4816
+ MeasureLayout: Lr
4812
4817
  }
4813
4818
  };
4814
4819
  function Ws(t, e, n) {
@@ -4817,15 +4822,15 @@ function Ws(t, e, n) {
4817
4822
  const i = "onHover" + n, o = s[i];
4818
4823
  o && A.postRender(() => o(e, Ot(e)));
4819
4824
  }
4820
- class vu extends tt {
4825
+ class xu extends tt {
4821
4826
  mount() {
4822
4827
  const { current: e } = this.node;
4823
- e && (this.unmount = _a(e, (n, s) => (Ws(this.node, s, "Start"), (i) => Ws(this.node, i, "End"))));
4828
+ e && (this.unmount = Ya(e, (n, s) => (Ws(this.node, s, "Start"), (i) => Ws(this.node, i, "End"))));
4824
4829
  }
4825
4830
  unmount() {
4826
4831
  }
4827
4832
  }
4828
- class Tu extends tt {
4833
+ class wu extends tt {
4829
4834
  constructor() {
4830
4835
  super(...arguments), this.isActive = !1;
4831
4836
  }
@@ -4855,13 +4860,13 @@ function Ks(t, e, n) {
4855
4860
  const i = "onTap" + (n === "End" ? "" : n), o = s[i];
4856
4861
  o && A.postRender(() => o(e, Ot(e)));
4857
4862
  }
4858
- class xu extends tt {
4863
+ class Pu extends tt {
4859
4864
  mount() {
4860
4865
  const { current: e } = this.node;
4861
4866
  if (!e)
4862
4867
  return;
4863
4868
  const { globalTapTarget: n, propagate: s } = this.node.props;
4864
- this.unmount = Qa(e, (i, o) => (Ks(this.node, o, "Start"), (r, { success: a }) => Ks(this.node, r, a ? "End" : "Cancel")), {
4869
+ this.unmount = el(e, (i, o) => (Ks(this.node, o, "Start"), (r, { success: a }) => Ks(this.node, r, a ? "End" : "Cancel")), {
4865
4870
  useGlobalTarget: n,
4866
4871
  stopPropagation: s?.tap === !1
4867
4872
  });
@@ -4869,29 +4874,29 @@ class xu extends tt {
4869
4874
  unmount() {
4870
4875
  }
4871
4876
  }
4872
- const He = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), wu = (t) => {
4873
- const e = He.get(t.target);
4877
+ const Ge = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), Su = (t) => {
4878
+ const e = Ge.get(t.target);
4874
4879
  e && e(t);
4875
- }, Pu = (t) => {
4876
- t.forEach(wu);
4880
+ }, bu = (t) => {
4881
+ t.forEach(Su);
4877
4882
  };
4878
- function Su({ root: t, ...e }) {
4883
+ function Au({ root: t, ...e }) {
4879
4884
  const n = t || document;
4880
4885
  Pe.has(n) || Pe.set(n, {});
4881
4886
  const s = Pe.get(n), i = JSON.stringify(e);
4882
- return s[i] || (s[i] = new IntersectionObserver(Pu, { root: t, ...e })), s[i];
4887
+ return s[i] || (s[i] = new IntersectionObserver(bu, { root: t, ...e })), s[i];
4883
4888
  }
4884
- function bu(t, e, n) {
4885
- const s = Su(e);
4886
- return He.set(t, n), s.observe(t), () => {
4887
- He.delete(t), s.unobserve(t);
4889
+ function Vu(t, e, n) {
4890
+ const s = Au(e);
4891
+ return Ge.set(t, n), s.observe(t), () => {
4892
+ Ge.delete(t), s.unobserve(t);
4888
4893
  };
4889
4894
  }
4890
- const Au = {
4895
+ const Du = {
4891
4896
  some: 0,
4892
4897
  all: 1
4893
4898
  };
4894
- class Vu extends tt {
4899
+ class Mu extends tt {
4895
4900
  constructor() {
4896
4901
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
4897
4902
  }
@@ -4900,7 +4905,7 @@ class Vu extends tt {
4900
4905
  const { viewport: e = {} } = this.node.getProps(), { root: n, margin: s, amount: i = "some", once: o } = e, r = {
4901
4906
  root: n ? n.current : void 0,
4902
4907
  rootMargin: s,
4903
- threshold: typeof i == "number" ? i : Au[i]
4908
+ threshold: typeof i == "number" ? i : Du[i]
4904
4909
  }, a = (l) => {
4905
4910
  const { isIntersecting: c } = l;
4906
4911
  if (this.isInView === c || (this.isInView = c, o && !c && this.hasEnteredView))
@@ -4909,7 +4914,7 @@ class Vu extends tt {
4909
4914
  const { onViewportEnter: u, onViewportLeave: h } = this.node.getProps(), f = c ? u : h;
4910
4915
  f && f(l);
4911
4916
  };
4912
- return bu(this.node.current, r, a);
4917
+ return Vu(this.node.current, r, a);
4913
4918
  }
4914
4919
  mount() {
4915
4920
  this.startObserver();
@@ -4918,38 +4923,38 @@ class Vu extends tt {
4918
4923
  if (typeof IntersectionObserver > "u")
4919
4924
  return;
4920
4925
  const { props: e, prevProps: n } = this.node;
4921
- ["amount", "margin", "root"].some(Du(e, n)) && this.startObserver();
4926
+ ["amount", "margin", "root"].some(Cu(e, n)) && this.startObserver();
4922
4927
  }
4923
4928
  unmount() {
4924
4929
  }
4925
4930
  }
4926
- function Du({ viewport: t = {} }, { viewport: e = {} } = {}) {
4931
+ function Cu({ viewport: t = {} }, { viewport: e = {} } = {}) {
4927
4932
  return (n) => t[n] !== e[n];
4928
4933
  }
4929
- const Mu = {
4934
+ const Eu = {
4930
4935
  inView: {
4931
- Feature: Vu
4936
+ Feature: Mu
4932
4937
  },
4933
4938
  tap: {
4934
- Feature: xu
4939
+ Feature: Pu
4935
4940
  },
4936
4941
  focus: {
4937
- Feature: Tu
4942
+ Feature: wu
4938
4943
  },
4939
4944
  hover: {
4940
- Feature: vu
4945
+ Feature: xu
4941
4946
  }
4942
- }, Cu = {
4947
+ }, Ru = {
4943
4948
  layout: {
4944
- ProjectionNode: yr,
4945
- MeasureLayout: Er
4946
- }
4947
- }, Eu = {
4948
- ...Qc,
4949
- ...Mu,
4950
- ...yu,
4951
- ...Cu
4952
- }, Fu = /* @__PURE__ */ Xc(Eu, Yc);
4949
+ ProjectionNode: Tr,
4950
+ MeasureLayout: Lr
4951
+ }
4952
+ }, Lu = {
4953
+ ...eu,
4954
+ ...Eu,
4955
+ ...Tu,
4956
+ ...Ru
4957
+ }, Ou = /* @__PURE__ */ qc(Lu, Zc);
4953
4958
  export {
4954
- Fu as m
4959
+ Ou as m
4955
4960
  };