@konstructio/ui 0.1.2-alpha.70 → 0.1.2-alpha.72

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 (83) hide show
  1. package/dist/{Modal-BGcucTHv.js → Modal-CXRo8f-h.js} +1 -1
  2. package/dist/assets/icons/components/CheckCircleFilled.d.ts +3 -0
  3. package/dist/assets/icons/components/CheckCircleFilled.js +31 -0
  4. package/dist/assets/icons/components/CheckCircleOutline.d.ts +3 -0
  5. package/dist/assets/icons/components/{CheckCircle.js → CheckCircleOutline.js} +8 -8
  6. package/dist/assets/icons/components/CheckboxMarkedCircleOutline.d.ts +3 -0
  7. package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +26 -0
  8. package/dist/assets/icons/components/InfoCircle.d.ts +3 -0
  9. package/dist/assets/icons/components/InfoCircle.js +31 -0
  10. package/dist/assets/icons/components/WarningTriangle.d.ts +3 -0
  11. package/dist/assets/icons/components/WarningTriangle.js +28 -0
  12. package/dist/assets/icons/components/index.d.ts +5 -1
  13. package/dist/assets/icons/components/index.js +124 -116
  14. package/dist/assets/icons/index.js +124 -116
  15. package/dist/components/Alert/Alert.d.ts +5 -16
  16. package/dist/components/Alert/Alert.js +46 -32
  17. package/dist/components/Alert/Alert.types.d.ts +8 -8
  18. package/dist/components/Alert/Alert.variants.d.ts +11 -2
  19. package/dist/components/Alert/Alert.variants.js +77 -32
  20. package/dist/components/Badge/Badge.variants.d.ts +2 -2
  21. package/dist/components/Button/Button.variants.d.ts +1 -1
  22. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  23. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
  24. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
  25. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
  26. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.d.ts +1 -1
  27. package/dist/components/Filter/Filter.d.ts +2 -2
  28. package/dist/components/Filter/Filter.js +20 -14
  29. package/dist/components/Filter/Filter.types.d.ts +3 -1
  30. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.d.ts +3 -0
  31. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +122 -0
  32. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.types.d.ts +7 -0
  33. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.d.ts +3 -0
  34. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts +14 -0
  35. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +74 -0
  36. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +155 -0
  37. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.types.d.ts +13 -0
  38. package/dist/components/Filter/components/index.d.ts +4 -0
  39. package/dist/components/Filter/components/index.js +8 -4
  40. package/dist/components/LineChart/LineChart.d.ts +17 -0
  41. package/dist/components/LineChart/LineChart.js +154 -0
  42. package/dist/components/LineChart/LineChart.types.d.ts +54 -0
  43. package/dist/components/Modal/Modal.js +1 -1
  44. package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -2
  45. package/dist/components/Modal/components/index.js +1 -1
  46. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
  47. package/dist/components/PieChart/PieChart.js +51 -5095
  48. package/dist/components/ProgressBar/ProgressBar.variants.d.ts +1 -1
  49. package/dist/components/RadioCardGroup/RadioCardGroup.variants.d.ts +1 -1
  50. package/dist/components/RadioGroup/RadioGroup.variants.d.ts +1 -1
  51. package/dist/components/Tabs/Tabs.variants.d.ts +1 -1
  52. package/dist/components/Toast/Toast.variants.d.ts +1 -1
  53. package/dist/components/Tooltip/Tooltip.d.ts +4 -9
  54. package/dist/components/Tooltip/Tooltip.js +35 -33
  55. package/dist/components/Tooltip/Tooltip.types.d.ts +22 -11
  56. package/dist/components/Typography/Typography.variants.d.ts +1 -1
  57. package/dist/components/VirtualizedTable/VirtualizedTable.js +61 -59
  58. package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +93 -8
  59. package/dist/components/VirtualizedTable/components/Filter/Filter.js +153 -71
  60. package/dist/components/VirtualizedTable/components/Filter/Filter.types.d.ts +7 -8
  61. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
  62. package/dist/components/VirtualizedTable/contexts/table.context.d.ts +12 -0
  63. package/dist/components/VirtualizedTable/contexts/table.context.js +9 -0
  64. package/dist/components/VirtualizedTable/contexts/table.provider.js +198 -162
  65. package/dist/components/index.d.ts +2 -1
  66. package/dist/components/index.js +124 -118
  67. package/dist/icons.d.ts +1 -1
  68. package/dist/icons.js +124 -116
  69. package/dist/{index-DPcwqB8q.js → index-B7-5g1Sm.js} +169 -168
  70. package/dist/index-qDQP8rW4.js +7281 -0
  71. package/dist/index.d.ts +1 -1
  72. package/dist/index.js +142 -135
  73. package/dist/package.json +8 -8
  74. package/dist/{proxy-CngVm5qA.js → proxy-0sbyKj-k.js} +732 -728
  75. package/dist/styles.css +1 -1
  76. package/dist/utils/index.d.ts +1 -0
  77. package/dist/utils/index.js +16 -15
  78. package/package.json +8 -8
  79. package/dist/assets/icons/components/CheckCircle.d.ts +0 -3
  80. package/dist/components/Tooltip/Tooltip.variants.d.ts +0 -6
  81. package/dist/components/Tooltip/Tooltip.variants.js +0 -86
  82. package/dist/components/Tooltip/hooks/useTooltip.d.ts +0 -4
  83. package/dist/components/Tooltip/hooks/useTooltip.js +0 -24
@@ -1,11 +1,11 @@
1
- import { createContext as vt, useRef as st, useLayoutEffect as Fr, useEffect as Xe, useContext as O, useId as Ir, useCallback as zi, useMemo as ne, createElement as Or, Fragment as Hi, useInsertionEffect as Gi, forwardRef as jr, Component as Nr } from "react";
2
- import { jsxs as Ur, jsx as _i } from "react/jsx-runtime";
3
- const Xi = vt({});
4
- function Wr(t) {
1
+ import { createContext as vt, useRef as st, useLayoutEffect as Ir, useEffect as Xe, useContext as O, useId as Or, useCallback as Hi, useMemo as ne, createElement as jr, Fragment as Gi, useInsertionEffect as _i, forwardRef as Nr, Component as Ur } from "react";
2
+ import { jsxs as Wr, jsx as Xi } from "react/jsx-runtime";
3
+ const Yi = vt({});
4
+ function Kr(t) {
5
5
  const e = st(null);
6
6
  return e.current === null && (e.current = t()), e.current;
7
7
  }
8
- const Kr = typeof window < "u", $r = Kr ? Fr : Xe, Ye = /* @__PURE__ */ vt(null);
8
+ const $r = typeof window < "u", zr = $r ? Ir : Xe, Ye = /* @__PURE__ */ vt(null);
9
9
  function qe(t, e) {
10
10
  t.indexOf(e) === -1 && t.push(e);
11
11
  }
@@ -26,17 +26,17 @@ typeof process < "u" && process.env?.NODE_ENV !== "production" && (Tt = (t, e, n
26
26
  if (!t)
27
27
  throw new Error(be(e, n));
28
28
  });
29
- const q = {}, Yi = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
30
- function qi(t) {
29
+ const q = {}, qi = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
30
+ function Zi(t) {
31
31
  return typeof t == "object" && t !== null;
32
32
  }
33
- const Zi = (t) => /^0[^.\s]+$/u.test(t);
33
+ const Ji = (t) => /^0[^.\s]+$/u.test(t);
34
34
  // @__NO_SIDE_EFFECTS__
35
- function Ji(t) {
35
+ function Qi(t) {
36
36
  let e;
37
37
  return () => (e === void 0 && (e = t()), e);
38
38
  }
39
- const W = /* @__NO_SIDE_EFFECTS__ */ (t) => t, zr = (t, e) => (n) => e(t(n)), Bt = (...t) => t.reduce(zr), Ct = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
39
+ const W = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Hr = (t, e) => (n) => e(t(n)), Bt = (...t) => t.reduce(Hr), Ct = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
40
40
  const i = e - t;
41
41
  return i === 0 ? 1 : (n - t) / i;
42
42
  };
@@ -66,45 +66,45 @@ class Ze {
66
66
  }
67
67
  }
68
68
  const K = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, U = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
69
- function Qi(t, e) {
69
+ function ts(t, e) {
70
70
  return e ? t * (1e3 / e) : 0;
71
71
  }
72
72
  const Mn = /* @__PURE__ */ new Set();
73
73
  function Je(t, e, n) {
74
74
  t || Mn.has(e) || (console.warn(be(e, n)), Mn.add(e));
75
75
  }
76
- const ts = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Hr = 1e-7, Gr = 12;
77
- function _r(t, e, n, i, s) {
76
+ const es = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Gr = 1e-7, _r = 12;
77
+ function Xr(t, e, n, i, s) {
78
78
  let o, r, a = 0;
79
79
  do
80
- r = e + (n - e) / 2, o = ts(r, i, s) - t, o > 0 ? n = r : e = r;
81
- while (Math.abs(o) > Hr && ++a < Gr);
80
+ r = e + (n - e) / 2, o = es(r, i, s) - t, o > 0 ? n = r : e = r;
81
+ while (Math.abs(o) > Gr && ++a < _r);
82
82
  return r;
83
83
  }
84
84
  function Ft(t, e, n, i) {
85
85
  if (t === e && n === i)
86
86
  return W;
87
- const s = (o) => _r(o, 0, 1, t, n);
88
- return (o) => o === 0 || o === 1 ? o : ts(s(o), e, i);
87
+ const s = (o) => Xr(o, 0, 1, t, n);
88
+ return (o) => o === 0 || o === 1 ? o : es(s(o), e, i);
89
89
  }
90
- const es = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, ns = (t) => (e) => 1 - t(1 - e), is = /* @__PURE__ */ Ft(0.33, 1.53, 0.69, 0.99), Qe = /* @__PURE__ */ ns(is), ss = /* @__PURE__ */ es(Qe), rs = (t) => (t *= 2) < 1 ? 0.5 * Qe(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), tn = (t) => 1 - Math.sin(Math.acos(t)), os = ns(tn), as = es(tn), Xr = /* @__PURE__ */ Ft(0.42, 0, 1, 1), Yr = /* @__PURE__ */ Ft(0, 0, 0.58, 1), ls = /* @__PURE__ */ Ft(0.42, 0, 0.58, 1), qr = (t) => Array.isArray(t) && typeof t[0] != "number", cs = (t) => Array.isArray(t) && typeof t[0] == "number", Cn = {
90
+ const ns = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, is = (t) => (e) => 1 - t(1 - e), ss = /* @__PURE__ */ Ft(0.33, 1.53, 0.69, 0.99), Qe = /* @__PURE__ */ is(ss), rs = /* @__PURE__ */ ns(Qe), os = (t) => (t *= 2) < 1 ? 0.5 * Qe(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), tn = (t) => 1 - Math.sin(Math.acos(t)), as = is(tn), ls = ns(tn), Yr = /* @__PURE__ */ Ft(0.42, 0, 1, 1), qr = /* @__PURE__ */ Ft(0, 0, 0.58, 1), cs = /* @__PURE__ */ Ft(0.42, 0, 0.58, 1), Zr = (t) => Array.isArray(t) && typeof t[0] != "number", us = (t) => Array.isArray(t) && typeof t[0] == "number", Cn = {
91
91
  linear: W,
92
- easeIn: Xr,
93
- easeInOut: ls,
94
- easeOut: Yr,
92
+ easeIn: Yr,
93
+ easeInOut: cs,
94
+ easeOut: qr,
95
95
  circIn: tn,
96
- circInOut: as,
97
- circOut: os,
96
+ circInOut: ls,
97
+ circOut: as,
98
98
  backIn: Qe,
99
- backInOut: ss,
100
- backOut: is,
101
- anticipate: rs
102
- }, Zr = (t) => typeof t == "string", En = (t) => {
103
- if (cs(t)) {
99
+ backInOut: rs,
100
+ backOut: ss,
101
+ anticipate: os
102
+ }, Jr = (t) => typeof t == "string", En = (t) => {
103
+ if (us(t)) {
104
104
  Y(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
105
105
  const [e, n, i, s] = t;
106
106
  return Ft(e, n, i, s);
107
- } else if (Zr(t))
107
+ } else if (Jr(t))
108
108
  return Y(Cn[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), Cn[t];
109
109
  return t;
110
110
  }, jt = [
@@ -125,7 +125,7 @@ const es = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, ns
125
125
  "postRender"
126
126
  // Compute
127
127
  ];
128
- function Jr(t, e) {
128
+ function Qr(t, e) {
129
129
  let n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), s = !1, o = !1;
130
130
  const r = /* @__PURE__ */ new WeakSet();
131
131
  let a = {
@@ -163,16 +163,16 @@ function Jr(t, e) {
163
163
  };
164
164
  return u;
165
165
  }
166
- const Qr = 40;
167
- function us(t, e) {
166
+ const to = 40;
167
+ function hs(t, e) {
168
168
  let n = !1, i = !0;
169
169
  const s = {
170
170
  delta: 0,
171
171
  timestamp: 0,
172
172
  isProcessing: !1
173
- }, o = () => n = !0, r = jt.reduce((p, P) => (p[P] = Jr(o), p), {}), { setup: a, read: l, resolveKeyframes: u, preUpdate: c, update: h, preRender: f, render: d, postRender: m } = r, g = () => {
173
+ }, o = () => n = !0, r = jt.reduce((p, P) => (p[P] = Qr(o), p), {}), { setup: a, read: l, resolveKeyframes: u, preUpdate: c, update: h, preRender: f, render: d, postRender: m } = r, g = () => {
174
174
  const p = q.useManualTiming ? s.timestamp : performance.now();
175
- n = !1, q.useManualTiming || (s.delta = i ? 1e3 / 60 : Math.max(Math.min(p - s.timestamp, Qr), 1)), s.timestamp = p, s.isProcessing = !0, a.process(s), l.process(s), u.process(s), c.process(s), h.process(s), f.process(s), d.process(s), m.process(s), s.isProcessing = !1, n && e && (i = !1, t(g));
175
+ n = !1, q.useManualTiming || (s.delta = i ? 1e3 / 60 : Math.max(Math.min(p - s.timestamp, to), 1)), s.timestamp = p, s.isProcessing = !0, a.process(s), l.process(s), u.process(s), c.process(s), h.process(s), f.process(s), d.process(s), m.process(s), s.isProcessing = !1, n && e && (i = !1, t(g));
176
176
  }, x = () => {
177
177
  n = !0, i = !0, s.isProcessing || t(g);
178
178
  };
@@ -184,17 +184,17 @@ function us(t, e) {
184
184
  r[jt[P]].cancel(p);
185
185
  }, state: s, steps: r };
186
186
  }
187
- const { schedule: A, cancel: Q, state: L, steps: ae } = /* @__PURE__ */ us(typeof requestAnimationFrame < "u" ? requestAnimationFrame : W, !0);
187
+ const { schedule: A, cancel: Q, state: L, steps: ae } = /* @__PURE__ */ hs(typeof requestAnimationFrame < "u" ? requestAnimationFrame : W, !0);
188
188
  let Wt;
189
- function to() {
189
+ function eo() {
190
190
  Wt = void 0;
191
191
  }
192
192
  const F = {
193
193
  now: () => (Wt === void 0 && F.set(L.isProcessing || q.useManualTiming ? L.timestamp : performance.now()), Wt),
194
194
  set: (t) => {
195
- Wt = t, queueMicrotask(to);
195
+ Wt = t, queueMicrotask(eo);
196
196
  }
197
- }, hs = (t) => (e) => typeof e == "string" && e.startsWith(t), fs = /* @__PURE__ */ hs("--"), eo = /* @__PURE__ */ hs("var(--"), en = (t) => eo(t) ? no.test(t.split("/*")[0].trim()) : !1, no = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
197
+ }, fs = (t) => (e) => typeof e == "string" && e.startsWith(t), ds = /* @__PURE__ */ fs("--"), no = /* @__PURE__ */ fs("var(--"), en = (t) => no(t) ? io.test(t.split("/*")[0].trim()) : !1, io = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
198
198
  function Rn(t) {
199
199
  return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
200
200
  }
@@ -209,10 +209,10 @@ const xt = {
209
209
  ...xt,
210
210
  default: 1
211
211
  }, Vt = (t) => Math.round(t * 1e5) / 1e5, nn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
212
- function io(t) {
212
+ function so(t) {
213
213
  return t == null;
214
214
  }
215
- const so = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, sn = (t, e) => (n) => !!(typeof n == "string" && so.test(n) && n.startsWith(t) || e && !io(n) && Object.prototype.hasOwnProperty.call(n, e)), ds = (t, e, n) => (i) => {
215
+ const ro = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, sn = (t, e) => (n) => !!(typeof n == "string" && ro.test(n) && n.startsWith(t) || e && !so(n) && Object.prototype.hasOwnProperty.call(n, e)), ms = (t, e, n) => (i) => {
216
216
  if (typeof i != "string")
217
217
  return i;
218
218
  const [s, o, r, a] = i.match(nn);
@@ -222,15 +222,15 @@ const so = /^(?:#[\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
- }, ro = (t) => X(0, 255, t), le = {
225
+ }, oo = (t) => X(0, 255, t), le = {
226
226
  ...xt,
227
- transform: (t) => Math.round(ro(t))
227
+ transform: (t) => Math.round(oo(t))
228
228
  }, rt = {
229
229
  test: /* @__PURE__ */ sn("rgb", "red"),
230
- parse: /* @__PURE__ */ ds("red", "green", "blue"),
230
+ parse: /* @__PURE__ */ ms("red", "green", "blue"),
231
231
  transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + le.transform(t) + ", " + le.transform(e) + ", " + le.transform(n) + ", " + Vt(Et.transform(i)) + ")"
232
232
  };
233
- function oo(t) {
233
+ function ao(t) {
234
234
  let e = "", n = "", i = "", s = "";
235
235
  return t.length > 5 ? (e = t.substring(1, 3), n = t.substring(3, 5), i = t.substring(5, 7), s = t.substring(7, 9)) : (e = t.substring(1, 2), n = t.substring(2, 3), i = t.substring(3, 4), s = t.substring(4, 5), e += e, n += n, i += i, s += s), {
236
236
  red: parseInt(e, 16),
@@ -241,19 +241,19 @@ function oo(t) {
241
241
  }
242
242
  const Ae = {
243
243
  test: /* @__PURE__ */ sn("#"),
244
- parse: oo,
244
+ parse: ao,
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
- }), Z = /* @__PURE__ */ It("deg"), _ = /* @__PURE__ */ It("%"), y = /* @__PURE__ */ It("px"), ao = /* @__PURE__ */ It("vh"), lo = /* @__PURE__ */ It("vw"), Ln = {
250
+ }), Z = /* @__PURE__ */ It("deg"), _ = /* @__PURE__ */ It("%"), y = /* @__PURE__ */ It("px"), lo = /* @__PURE__ */ It("vh"), co = /* @__PURE__ */ It("vw"), Ln = {
251
251
  ..._,
252
252
  parse: (t) => _.parse(t) / 100,
253
253
  transform: (t) => _.transform(t * 100)
254
254
  }, ut = {
255
255
  test: /* @__PURE__ */ sn("hsl", "hue"),
256
- parse: /* @__PURE__ */ ds("hue", "saturation", "lightness"),
256
+ parse: /* @__PURE__ */ ms("hue", "saturation", "lightness"),
257
257
  transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + _.transform(Vt(e)) + ", " + _.transform(Vt(n)) + ", " + Vt(Et.transform(i)) + ")"
258
258
  }, C = {
259
259
  test: (t) => rt.test(t) || Ae.test(t) || ut.test(t),
@@ -263,11 +263,11 @@ const Ae = {
263
263
  const e = C.parse(t);
264
264
  return e.alpha = 0, C.transform(e);
265
265
  }
266
- }, co = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
267
- function uo(t) {
268
- return isNaN(t) && typeof t == "string" && (t.match(nn)?.length || 0) + (t.match(co)?.length || 0) > 0;
266
+ }, uo = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
267
+ function ho(t) {
268
+ return isNaN(t) && typeof t == "string" && (t.match(nn)?.length || 0) + (t.match(uo)?.length || 0) > 0;
269
269
  }
270
- const ms = "number", ps = "color", ho = "var", fo = "var(", kn = "${}", mo = /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 ps = "number", gs = "color", fo = "var", mo = "var(", kn = "${}", po = /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 = [], i = {
273
273
  color: [],
@@ -275,39 +275,39 @@ function Rt(t) {
275
275
  var: []
276
276
  }, s = [];
277
277
  let o = 0;
278
- const a = e.replace(mo, (l) => (C.test(l) ? (i.color.push(o), s.push(ps), n.push(C.parse(l))) : l.startsWith(fo) ? (i.var.push(o), s.push(ho), n.push(l)) : (i.number.push(o), s.push(ms), n.push(parseFloat(l))), ++o, kn)).split(kn);
278
+ const a = e.replace(po, (l) => (C.test(l) ? (i.color.push(o), s.push(gs), n.push(C.parse(l))) : l.startsWith(mo) ? (i.var.push(o), s.push(fo), n.push(l)) : (i.number.push(o), s.push(ps), n.push(parseFloat(l))), ++o, kn)).split(kn);
279
279
  return { values: n, split: a, indexes: i, types: s };
280
280
  }
281
- function gs(t) {
281
+ function ys(t) {
282
282
  return Rt(t).values;
283
283
  }
284
- function ys(t) {
284
+ function vs(t) {
285
285
  const { split: e, types: n } = Rt(t), i = e.length;
286
286
  return (s) => {
287
287
  let o = "";
288
288
  for (let r = 0; r < i; r++)
289
289
  if (o += e[r], s[r] !== void 0) {
290
290
  const a = n[r];
291
- a === ms ? o += Vt(s[r]) : a === ps ? o += C.transform(s[r]) : o += s[r];
291
+ a === ps ? o += Vt(s[r]) : a === gs ? o += C.transform(s[r]) : o += s[r];
292
292
  }
293
293
  return o;
294
294
  };
295
295
  }
296
- const po = (t) => typeof t == "number" ? 0 : C.test(t) ? C.getAnimatableNone(t) : t;
297
- function go(t) {
298
- const e = gs(t);
299
- return ys(t)(e.map(po));
296
+ const go = (t) => typeof t == "number" ? 0 : C.test(t) ? C.getAnimatableNone(t) : t;
297
+ function yo(t) {
298
+ const e = ys(t);
299
+ return vs(t)(e.map(go));
300
300
  }
301
301
  const H = {
302
- test: uo,
303
- parse: gs,
304
- createTransformer: ys,
305
- getAnimatableNone: go
302
+ test: ho,
303
+ parse: ys,
304
+ createTransformer: vs,
305
+ getAnimatableNone: yo
306
306
  };
307
307
  function ce(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 yo({ hue: t, saturation: e, lightness: n, alpha: i }) {
310
+ function vo({ hue: t, saturation: e, lightness: n, alpha: i }) {
311
311
  t /= 360, e /= 100, n /= 100;
312
312
  let s = 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, ue = (t, e, n) => {
330
330
  const i = t * t, s = n * (e * e - i) + i;
331
331
  return s < 0 ? 0 : Math.sqrt(s);
332
- }, vo = [Ae, rt, ut], To = (t) => vo.find((e) => e.test(t));
332
+ }, To = [Ae, rt, ut], xo = (t) => To.find((e) => e.test(t));
333
333
  function Bn(t) {
334
- const e = To(t);
334
+ const e = xo(t);
335
335
  if (Tt(!!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 === ut && (n = yo(n)), n;
338
+ return e === ut && (n = vo(n)), n;
339
339
  }
340
340
  const Fn = (t, e) => {
341
341
  const n = Bn(t), i = Bn(e);
@@ -344,16 +344,16 @@ const Fn = (t, e) => {
344
344
  const s = { ...n };
345
345
  return (o) => (s.red = ue(n.red, i.red, o), s.green = ue(n.green, i.green, o), s.blue = ue(n.blue, i.blue, o), s.alpha = D(n.alpha, i.alpha, o), rt.transform(s));
346
346
  }, Ve = /* @__PURE__ */ new Set(["none", "hidden"]);
347
- function xo(t, e) {
347
+ function wo(t, e) {
348
348
  return Ve.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
349
349
  }
350
- function wo(t, e) {
350
+ function Po(t, e) {
351
351
  return (n) => D(t, e, n);
352
352
  }
353
353
  function rn(t) {
354
- return typeof t == "number" ? wo : typeof t == "string" ? en(t) ? Yt : C.test(t) ? Fn : bo : Array.isArray(t) ? vs : typeof t == "object" ? C.test(t) ? Fn : Po : Yt;
354
+ return typeof t == "number" ? Po : typeof t == "string" ? en(t) ? Yt : C.test(t) ? Fn : Ao : Array.isArray(t) ? Ts : typeof t == "object" ? C.test(t) ? Fn : So : Yt;
355
355
  }
356
- function vs(t, e) {
356
+ function Ts(t, e) {
357
357
  const n = [...t], i = n.length, s = t.map((o, r) => rn(o)(o, e[r]));
358
358
  return (o) => {
359
359
  for (let r = 0; r < i; r++)
@@ -361,7 +361,7 @@ function vs(t, e) {
361
361
  return n;
362
362
  };
363
363
  }
364
- function Po(t, e) {
364
+ function So(t, e) {
365
365
  const n = { ...t, ...e }, i = {};
366
366
  for (const s in n)
367
367
  t[s] !== void 0 && e[s] !== void 0 && (i[s] = rn(t[s])(t[s], e[s]));
@@ -371,7 +371,7 @@ function Po(t, e) {
371
371
  return n;
372
372
  };
373
373
  }
374
- function So(t, e) {
374
+ function bo(t, e) {
375
375
  const n = [], i = { color: 0, var: 0, number: 0 };
376
376
  for (let s = 0; s < e.values.length; s++) {
377
377
  const o = e.types[s], r = t.indexes[o][i[o]], a = t.values[r] ?? 0;
@@ -379,14 +379,14 @@ function So(t, e) {
379
379
  }
380
380
  return n;
381
381
  }
382
- const bo = (t, e) => {
382
+ const Ao = (t, e) => {
383
383
  const n = H.createTransformer(e), i = Rt(t), s = Rt(e);
384
- return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? Ve.has(t) && !s.values.length || Ve.has(e) && !i.values.length ? xo(t, e) : Bt(vs(So(i, s), s.values), n) : (Tt(!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));
384
+ return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? Ve.has(t) && !s.values.length || Ve.has(e) && !i.values.length ? wo(t, e) : Bt(Ts(bo(i, s), s.values), n) : (Tt(!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 Ts(t, e, n) {
386
+ function xs(t, e, n) {
387
387
  return typeof t == "number" && typeof e == "number" && typeof n == "number" ? D(t, e, n) : rn(t)(t, e);
388
388
  }
389
- const Ao = (t) => {
389
+ const Vo = (t) => {
390
390
  const e = ({ timestamp: n }) => t(n);
391
391
  return {
392
392
  start: (n = !0) => A.update(e, n),
@@ -397,7 +397,7 @@ const Ao = (t) => {
397
397
  */
398
398
  now: () => L.isProcessing ? L.timestamp : F.now()
399
399
  };
400
- }, xs = (t, e, n = 10) => {
400
+ }, ws = (t, e, n = 10) => {
401
401
  let i = "";
402
402
  const s = Math.max(Math.round(e / n), 2);
403
403
  for (let o = 0; o < s; o++)
@@ -412,7 +412,7 @@ function on(t) {
412
412
  e += n, i = t.next(e);
413
413
  return e >= qt ? 1 / 0 : e;
414
414
  }
415
- function Vo(t, e = 100, n) {
415
+ function Do(t, e = 100, n) {
416
416
  const i = n({ ...t, keyframes: [0, e] }), s = Math.min(on(i), qt);
417
417
  return {
418
418
  type: "keyframes",
@@ -420,10 +420,10 @@ function Vo(t, e = 100, n) {
420
420
  duration: /* @__PURE__ */ U(s)
421
421
  };
422
422
  }
423
- const Do = 5;
424
- function ws(t, e, n) {
425
- const i = Math.max(e - Do, 0);
426
- return Qi(n - t(i), e - i);
423
+ const Mo = 5;
424
+ function Ps(t, e, n) {
425
+ const i = Math.max(e - Mo, 0);
426
+ return ts(n - t(i), e - i);
427
427
  }
428
428
  const V = {
429
429
  // Default spring physics
@@ -454,7 +454,7 @@ const V = {
454
454
  minDamping: 0.05,
455
455
  maxDamping: 1
456
456
  }, he = 1e-3;
457
- function Mo({ duration: t = V.duration, bounce: e = V.bounce, velocity: n = V.velocity, mass: i = V.mass }) {
457
+ function Co({ duration: t = V.duration, bounce: e = V.bounce, velocity: n = V.velocity, mass: i = V.mass }) {
458
458
  let s, o;
459
459
  Tt(t <= /* @__PURE__ */ K(V.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
460
460
  let r = 1 - e;
@@ -471,7 +471,7 @@ function Mo({ duration: t = V.duration, bounce: e = V.bounce, velocity: n = V.ve
471
471
  const c = Math.exp(-u * t), h = (n - u) * (t * t);
472
472
  return c * h;
473
473
  });
474
- const a = 5 / t, l = Eo(s, o, a);
474
+ const a = 5 / t, l = Ro(s, o, a);
475
475
  if (t = /* @__PURE__ */ K(t), isNaN(l))
476
476
  return {
477
477
  stiffness: V.stiffness,
@@ -487,21 +487,21 @@ function Mo({ duration: t = V.duration, bounce: e = V.bounce, velocity: n = V.ve
487
487
  };
488
488
  }
489
489
  }
490
- const Co = 12;
491
- function Eo(t, e, n) {
490
+ const Eo = 12;
491
+ function Ro(t, e, n) {
492
492
  let i = n;
493
- for (let s = 1; s < Co; s++)
493
+ for (let s = 1; s < Eo; s++)
494
494
  i = i - t(i) / e(i);
495
495
  return i;
496
496
  }
497
497
  function De(t, e) {
498
498
  return t * Math.sqrt(1 - e * e);
499
499
  }
500
- const Ro = ["duration", "bounce"], Lo = ["stiffness", "damping", "mass"];
500
+ const Lo = ["duration", "bounce"], ko = ["stiffness", "damping", "mass"];
501
501
  function In(t, e) {
502
502
  return e.some((n) => t[n] !== void 0);
503
503
  }
504
- function ko(t) {
504
+ function Bo(t) {
505
505
  let e = {
506
506
  velocity: V.velocity,
507
507
  stiffness: V.stiffness,
@@ -510,7 +510,7 @@ function ko(t) {
510
510
  isResolvedFromDuration: !1,
511
511
  ...t
512
512
  };
513
- if (!In(t, Lo) && In(t, Ro))
513
+ if (!In(t, ko) && In(t, Lo))
514
514
  if (e.velocity = 0, t.visualDuration) {
515
515
  const n = t.visualDuration, i = 2 * Math.PI / (n * 1.2), s = i * i, o = 2 * X(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(s);
516
516
  e = {
@@ -520,7 +520,7 @@ function ko(t) {
520
520
  damping: o
521
521
  };
522
522
  } else {
523
- const n = Mo({ ...t, velocity: 0 });
523
+ const n = Co({ ...t, velocity: 0 });
524
524
  e = {
525
525
  ...e,
526
526
  ...n,
@@ -536,7 +536,7 @@ function Zt(t = V.visualDuration, e = V.bounce) {
536
536
  bounce: e
537
537
  } : t;
538
538
  let { restSpeed: i, restDelta: s } = n;
539
- const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: u, mass: c, duration: h, velocity: f, isResolvedFromDuration: d } = ko({
539
+ const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: u, mass: c, duration: h, velocity: f, isResolvedFromDuration: d } = Bo({
540
540
  ...n,
541
541
  velocity: -/* @__PURE__ */ U(n.velocity || 0)
542
542
  }), m = f || 0, g = u / (2 * Math.sqrt(l * c)), x = r - o, v = /* @__PURE__ */ U(Math.sqrt(l / c)), T = Math.abs(x) < 5;
@@ -565,14 +565,14 @@ function Zt(t = V.visualDuration, e = V.bounce) {
565
565
  a.done = w >= h;
566
566
  else {
567
567
  let M = w === 0 ? m : 0;
568
- g < 1 && (M = w === 0 ? /* @__PURE__ */ K(m) : ws(p, w, b));
568
+ g < 1 && (M = w === 0 ? /* @__PURE__ */ K(m) : Ps(p, w, b));
569
569
  const S = Math.abs(M) <= i, B = Math.abs(r - b) <= s;
570
570
  a.done = S && B;
571
571
  }
572
572
  return a.value = a.done ? r : b, a;
573
573
  },
574
574
  toString: () => {
575
- const w = Math.min(on(P), qt), b = xs((M) => P.next(w * M).value, w, 30);
575
+ const w = Math.min(on(P), qt), b = ws((M) => P.next(w * M).value, w, 30);
576
576
  return w + "ms " + b;
577
577
  },
578
578
  toTransition: () => {
@@ -581,7 +581,7 @@ function Zt(t = V.visualDuration, e = V.bounce) {
581
581
  return P;
582
582
  }
583
583
  Zt.applyToOptions = (t) => {
584
- const e = Vo(t, 100, Zt);
584
+ const e = Do(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 Me({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: u = 0.5, restSpeed: c }) {
@@ -600,7 +600,7 @@ function Me({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
600
600
  const M = (S) => {
601
601
  d(f.value) && (w = S, b = Zt({
602
602
  keyframes: [f.value, m(f.value)],
603
- velocity: ws(p, S, f.value),
603
+ velocity: Ps(p, S, f.value),
604
604
  // TODO: This should be passing * 1000
605
605
  damping: s,
606
606
  stiffness: o,
@@ -616,8 +616,8 @@ function Me({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
616
616
  }
617
617
  };
618
618
  }
619
- function Bo(t, e, n) {
620
- const i = [], s = n || q.mix || Ts, o = t.length - 1;
619
+ function Fo(t, e, n) {
620
+ const i = [], s = n || q.mix || xs, o = t.length - 1;
621
621
  for (let r = 0; r < o; r++) {
622
622
  let a = s(t[r], t[r + 1]);
623
623
  if (e) {
@@ -628,7 +628,7 @@ function Bo(t, e, n) {
628
628
  }
629
629
  return i;
630
630
  }
631
- function Fo(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
631
+ function Io(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
632
632
  const o = t.length;
633
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];
@@ -636,7 +636,7 @@ function Fo(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
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 = Bo(e, i, s), l = a.length, u = (c) => {
639
+ const a = Fo(e, i, s), l = a.length, u = (c) => {
640
640
  if (r && c < t[0])
641
641
  return e[0];
642
642
  let h = 0;
@@ -648,54 +648,54 @@ function Fo(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
648
648
  };
649
649
  return n ? (c) => u(X(t[0], t[o - 1], c)) : u;
650
650
  }
651
- function Io(t, e) {
651
+ function Oo(t, e) {
652
652
  const n = t[t.length - 1];
653
653
  for (let i = 1; i <= e; i++) {
654
654
  const s = /* @__PURE__ */ Ct(0, e, i);
655
655
  t.push(D(n, 1, s));
656
656
  }
657
657
  }
658
- function Oo(t) {
658
+ function jo(t) {
659
659
  const e = [0];
660
- return Io(e, t.length - 1), e;
660
+ return Oo(e, t.length - 1), e;
661
661
  }
662
- function jo(t, e) {
662
+ function No(t, e) {
663
663
  return t.map((n) => n * e);
664
664
  }
665
- function No(t, e) {
666
- return t.map(() => e || ls).splice(0, t.length - 1);
665
+ function Uo(t, e) {
666
+ return t.map(() => e || cs).splice(0, t.length - 1);
667
667
  }
668
668
  function ht({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
669
- const s = qr(i) ? i.map(En) : En(i), o = {
669
+ const s = Zr(i) ? i.map(En) : En(i), o = {
670
670
  done: !1,
671
671
  value: e[0]
672
- }, r = jo(
672
+ }, r = No(
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 : Oo(e),
675
+ n && n.length === e.length ? n : jo(e),
676
676
  t
677
- ), a = Fo(r, e, {
678
- ease: Array.isArray(s) ? s : No(e, s)
677
+ ), a = Io(r, e, {
678
+ ease: Array.isArray(s) ? s : Uo(e, s)
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 Uo = (t) => t !== null;
685
+ const Wo = (t) => t !== null;
686
686
  function an(t, { repeat: e, repeatType: n = "loop" }, i, s = 1) {
687
- const o = t.filter(Uo), a = s < 0 || e && n !== "loop" && e % 2 === 1 ? 0 : o.length - 1;
687
+ const o = t.filter(Wo), a = s < 0 || e && n !== "loop" && e % 2 === 1 ? 0 : o.length - 1;
688
688
  return !a || i === void 0 ? o[a] : i;
689
689
  }
690
- const Wo = {
690
+ const Ko = {
691
691
  decay: Me,
692
692
  inertia: Me,
693
693
  tween: ht,
694
694
  keyframes: ht,
695
695
  spring: Zt
696
696
  };
697
- function Ps(t) {
698
- typeof t.type == "string" && (t.type = Wo[t.type]);
697
+ function Ss(t) {
698
+ typeof t.type == "string" && (t.type = Ko[t.type]);
699
699
  }
700
700
  class ln {
701
701
  constructor() {
@@ -721,7 +721,7 @@ class ln {
721
721
  return this.finished.then(e, n);
722
722
  }
723
723
  }
724
- const Ko = (t) => t / 100;
724
+ const $o = (t) => t / 100;
725
725
  class cn extends ln {
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 cn extends ln {
731
731
  }
732
732
  initAnimation() {
733
733
  const { options: e } = this;
734
- Ps(e);
734
+ Ss(e);
735
735
  const { type: n = ht, repeat: i = 0, repeatDelay: s = 0, repeatType: o, velocity: r = 0 } = e;
736
736
  let { keyframes: a } = e;
737
737
  const l = n || ht;
738
- process.env.NODE_ENV !== "production" && l !== ht && Y(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== ht && typeof a[0] != "number" && (this.mixKeyframes = Bt(Ko, Ts(a[0], a[1])), a = [0, 100]);
738
+ process.env.NODE_ENV !== "production" && l !== ht && Y(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== ht && typeof a[0] != "number" && (this.mixKeyframes = Bt($o, xs(a[0], a[1])), a = [0, 100]);
739
739
  const u = l({ ...e, keyframes: a });
740
740
  o === "mirror" && (this.mirroredGenerator = l({
741
741
  ...e,
@@ -802,7 +802,7 @@ class cn extends ln {
802
802
  play() {
803
803
  if (this.isStopped)
804
804
  return;
805
- const { driver: e = Ao, startTime: n } = this.options;
805
+ const { driver: e = Vo, startTime: n } = this.options;
806
806
  this.driver || (this.driver = e((s) => this.tick(s))), this.options.onPlay?.();
807
807
  const i = this.driver.now();
808
808
  this.state === "finished" ? (this.updateFinished(), this.startTime = i) : this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime || (this.startTime = n ?? i), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -832,14 +832,14 @@ class cn extends ln {
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 $o(t) {
835
+ function zo(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, Ce = (t) => {
840
840
  const e = ot(Math.atan2(t[1], t[0]));
841
841
  return Ee(e);
842
- }, zo = {
842
+ }, Ho = {
843
843
  x: 4,
844
844
  y: 5,
845
845
  translateX: 4,
@@ -852,7 +852,7 @@ const ot = (t) => t * 180 / Math.PI, Ce = (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
- }, Ee = (t) => (t = t % 360, t < 0 && (t += 360), t), On = Ce, jn = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Nn = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), Ho = {
855
+ }, Ee = (t) => (t = t % 360, t < 0 && (t += 360), t), On = Ce, jn = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Nn = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), Go = {
856
856
  x: 12,
857
857
  y: 13,
858
858
  z: 14,
@@ -879,21 +879,21 @@ function Le(t, e) {
879
879
  const n = t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
880
880
  let i, s;
881
881
  if (n)
882
- i = Ho, s = n;
882
+ i = Go, s = n;
883
883
  else {
884
884
  const a = t.match(/^matrix\(([-\d.e\s,]+)\)$/u);
885
- i = zo, s = a;
885
+ i = Ho, s = a;
886
886
  }
887
887
  if (!s)
888
888
  return Re(e);
889
- const o = i[e], r = s[1].split(",").map(_o);
889
+ const o = i[e], r = s[1].split(",").map(Xo);
890
890
  return typeof o == "function" ? o(r) : r[o];
891
891
  }
892
- const Go = (t, e) => {
892
+ const _o = (t, e) => {
893
893
  const { transform: n = "none" } = getComputedStyle(t);
894
894
  return Le(n, e);
895
895
  };
896
- function _o(t) {
896
+ function Xo(t) {
897
897
  return parseFloat(t.trim());
898
898
  }
899
899
  const wt = [
@@ -914,10 +914,10 @@ const wt = [
914
914
  "skew",
915
915
  "skewX",
916
916
  "skewY"
917
- ], Pt = new Set(wt), Un = (t) => t === xt || t === y, Xo = /* @__PURE__ */ new Set(["x", "y", "z"]), Yo = wt.filter((t) => !Xo.has(t));
918
- function qo(t) {
917
+ ], Pt = new Set(wt), Un = (t) => t === xt || t === y, Yo = /* @__PURE__ */ new Set(["x", "y", "z"]), qo = wt.filter((t) => !Yo.has(t));
918
+ function Zo(t) {
919
919
  const e = [];
920
- return Yo.forEach((n) => {
920
+ return qo.forEach((n) => {
921
921
  const i = t.getValue(n);
922
922
  i !== void 0 && (e.push([n, i.get()]), i.set(n.startsWith("scale") ? 1 : 0));
923
923
  }), e;
@@ -938,11 +938,11 @@ J.translateX = J.x;
938
938
  J.translateY = J.y;
939
939
  const at = /* @__PURE__ */ new Set();
940
940
  let ke = !1, Be = !1, Fe = !1;
941
- function Ss() {
941
+ function bs() {
942
942
  if (Be) {
943
943
  const t = Array.from(at).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
944
944
  e.forEach((i) => {
945
- const s = qo(i);
945
+ const s = Zo(i);
946
946
  s.length && (n.set(i, s), i.render());
947
947
  }), t.forEach((i) => i.measureInitialState()), e.forEach((i) => {
948
948
  i.render();
@@ -956,20 +956,20 @@ function Ss() {
956
956
  }
957
957
  Be = !1, ke = !1, at.forEach((t) => t.complete(Fe)), at.clear();
958
958
  }
959
- function bs() {
959
+ function As() {
960
960
  at.forEach((t) => {
961
961
  t.readKeyframes(), t.needsMeasurement && (Be = !0);
962
962
  });
963
963
  }
964
- function Zo() {
965
- Fe = !0, bs(), Ss(), Fe = !1;
964
+ function Jo() {
965
+ Fe = !0, As(), bs(), Fe = !1;
966
966
  }
967
967
  class un {
968
968
  constructor(e, n, i, s, o, r = !1) {
969
969
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = i, this.motionValue = s, this.element = o, this.isAsync = r;
970
970
  }
971
971
  scheduleResolve() {
972
- this.state = "scheduled", this.isAsync ? (at.add(this), ke || (ke = !0, A.read(bs), A.resolveKeyframes(Ss))) : (this.readKeyframes(), this.complete());
972
+ this.state = "scheduled", this.isAsync ? (at.add(this), ke || (ke = !0, A.read(As), A.resolveKeyframes(bs))) : (this.readKeyframes(), this.complete());
973
973
  }
974
974
  readKeyframes() {
975
975
  const { unresolvedKeyframes: e, name: n, element: i, motionValue: s } = this;
@@ -983,7 +983,7 @@ class un {
983
983
  }
984
984
  e[0] === void 0 && (e[0] = r), s && o === void 0 && s.set(e[0]);
985
985
  }
986
- $o(e);
986
+ zo(e);
987
987
  }
988
988
  setFinalKeyframe() {
989
989
  }
@@ -1003,16 +1003,16 @@ class un {
1003
1003
  this.state === "pending" && this.scheduleResolve();
1004
1004
  }
1005
1005
  }
1006
- const Jo = (t) => t.startsWith("--");
1007
- function Qo(t, e, n) {
1008
- Jo(e) ? t.style.setProperty(e, n) : t.style[e] = n;
1006
+ const Qo = (t) => t.startsWith("--");
1007
+ function ta(t, e, n) {
1008
+ Qo(e) ? t.style.setProperty(e, n) : t.style[e] = n;
1009
1009
  }
1010
- const ta = {};
1011
- function As(t, e) {
1012
- const n = /* @__PURE__ */ Ji(t);
1013
- return () => ta[e] ?? n();
1010
+ const ea = {};
1011
+ function Vs(t, e) {
1012
+ const n = /* @__PURE__ */ Qi(t);
1013
+ return () => ea[e] ?? n();
1014
1014
  }
1015
- const ea = /* @__PURE__ */ As(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Vs = /* @__PURE__ */ As(() => {
1015
+ const na = /* @__PURE__ */ Vs(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Ds = /* @__PURE__ */ Vs(() => {
1016
1016
  try {
1017
1017
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1018
1018
  } catch {
@@ -1030,16 +1030,16 @@ const ea = /* @__PURE__ */ As(() => window.ScrollTimeline !== void 0, "scrollTim
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 Ds(t, e) {
1033
+ function Ms(t, e) {
1034
1034
  if (t)
1035
- return typeof t == "function" ? Vs() ? xs(t, e) : "ease-out" : cs(t) ? At(t) : Array.isArray(t) ? t.map((n) => Ds(n, e) || Wn.easeOut) : Wn[t];
1035
+ return typeof t == "function" ? Ds() ? ws(t, e) : "ease-out" : us(t) ? At(t) : Array.isArray(t) ? t.map((n) => Ms(n, e) || Wn.easeOut) : Wn[t];
1036
1036
  }
1037
- function na(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, u = void 0) {
1037
+ function ia(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, u = void 0) {
1038
1038
  const c = {
1039
1039
  [e]: n
1040
1040
  };
1041
1041
  l && (c.offset = l);
1042
- const h = Ds(a, s);
1042
+ const h = Ms(a, s);
1043
1043
  Array.isArray(h) && (c.easing = h);
1044
1044
  const f = {
1045
1045
  delay: i,
@@ -1051,23 +1051,23 @@ function na(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatTyp
1051
1051
  };
1052
1052
  return u && (f.pseudoElement = u), t.animate(c, f);
1053
1053
  }
1054
- function Ms(t) {
1054
+ function Cs(t) {
1055
1055
  return typeof t == "function" && "applyToOptions" in t;
1056
1056
  }
1057
- function ia({ type: t, ...e }) {
1058
- return Ms(t) && Vs() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
1057
+ function sa({ type: t, ...e }) {
1058
+ return Cs(t) && Ds() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
1059
1059
  }
1060
- class Cs extends ln {
1060
+ class Es extends ln {
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: i, keyframes: s, pseudoElement: o, allowFlatten: r = !1, finalKeyframe: a, onComplete: l } = e;
1065
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 u = ia(e);
1067
- this.animation = na(n, i, s, u, o), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1066
+ const u = sa(e);
1067
+ this.animation = ia(n, i, s, u, o), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1068
1068
  if (this.finishedTime = this.time, !o) {
1069
1069
  const c = an(s, this.options, a, this.speed);
1070
- this.updateMotionValue && this.updateMotionValue(c), Qo(n, i, c), this.animation.cancel();
1070
+ this.updateMotionValue && this.updateMotionValue(c), ta(n, i, c), this.animation.cancel();
1071
1071
  }
1072
1072
  l?.(), this.notifyFinished();
1073
1073
  };
@@ -1146,25 +1146,25 @@ class Cs extends ln {
1146
1146
  /**
1147
1147
  * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
1148
1148
  */
1149
- attachTimeline({ timeline: e, observe: n }) {
1150
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && ea() ? (this.animation.timeline = e, W) : n(this);
1149
+ attachTimeline({ timeline: e, rangeStart: n, rangeEnd: i, observe: s }) {
1150
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && na() ? (this.animation.timeline = e, n && (this.animation.rangeStart = n), i && (this.animation.rangeEnd = i), W) : s(this);
1151
1151
  }
1152
1152
  }
1153
- const Es = {
1154
- anticipate: rs,
1155
- backInOut: ss,
1156
- circInOut: as
1153
+ const Rs = {
1154
+ anticipate: os,
1155
+ backInOut: rs,
1156
+ circInOut: ls
1157
1157
  };
1158
- function sa(t) {
1159
- return t in Es;
1160
- }
1161
1158
  function ra(t) {
1162
- typeof t.ease == "string" && sa(t.ease) && (t.ease = Es[t.ease]);
1159
+ return t in Rs;
1160
+ }
1161
+ function oa(t) {
1162
+ typeof t.ease == "string" && ra(t.ease) && (t.ease = Rs[t.ease]);
1163
1163
  }
1164
1164
  const fe = 10;
1165
- class oa extends Cs {
1165
+ class aa extends Es {
1166
1166
  constructor(e) {
1167
- ra(e), Ps(e), super(e), e.startTime !== void 0 && (this.startTime = e.startTime), this.options = e;
1167
+ oa(e), Ss(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.
@@ -1192,7 +1192,7 @@ class oa extends Cs {
1192
1192
  const Kn = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
1193
1193
  (H.test(t) || t === "0") && // And it contains numbers and/or colors
1194
1194
  !t.startsWith("url("));
1195
- function aa(t) {
1195
+ function la(t) {
1196
1196
  const e = t[0];
1197
1197
  if (t.length === 1)
1198
1198
  return !0;
@@ -1200,39 +1200,39 @@ function aa(t) {
1200
1200
  if (t[n] !== e)
1201
1201
  return !0;
1202
1202
  }
1203
- function la(t, e, n, i) {
1203
+ function ca(t, e, n, i) {
1204
1204
  const s = t[0];
1205
1205
  if (s === 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 = Kn(s, e), a = Kn(o, e);
1210
- return Tt(r === a, `You are trying to animate ${e} from "${s}" to "${o}". "${r ? o : s}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : aa(t) || (n === "spring" || Ms(n)) && i;
1210
+ return Tt(r === a, `You are trying to animate ${e} from "${s}" to "${o}". "${r ? o : s}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : la(t) || (n === "spring" || Cs(n)) && i;
1211
1211
  }
1212
1212
  function Ie(t) {
1213
1213
  t.duration = 0, t.type = "keyframes";
1214
1214
  }
1215
- const ca = /* @__PURE__ */ new Set([
1215
+ const ua = /* @__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
- ]), ua = /* @__PURE__ */ Ji(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1223
- function ha(t) {
1222
+ ]), ha = /* @__PURE__ */ Qi(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1223
+ function fa(t) {
1224
1224
  const { motionValue: e, name: n, repeatDelay: i, repeatType: s, damping: o, type: r } = t;
1225
1225
  if (!(e?.owner?.current instanceof HTMLElement))
1226
1226
  return !1;
1227
1227
  const { onUpdate: l, transformTemplate: u } = e.owner.getProps();
1228
- return ua() && n && ca.has(n) && (n !== "transform" || !u) && /**
1228
+ return ha() && n && ua.has(n) && (n !== "transform" || !u) && /**
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 && !i && s !== "mirror" && o !== 0 && r !== "inertia";
1233
1233
  }
1234
- const fa = 40;
1235
- class da extends ln {
1234
+ const da = 40;
1235
+ class ma extends ln {
1236
1236
  constructor({ autoplay: e = !0, delay: n = 0, type: i = "keyframes", repeat: s = 0, repeatDelay: o = 0, repeatType: r = "loop", keyframes: a, name: l, motionValue: u, element: c, ...h }) {
1237
1237
  super(), this.stop = () => {
1238
1238
  this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
@@ -1254,13 +1254,13 @@ class da extends ln {
1254
1254
  onKeyframesResolved(e, n, i, s) {
1255
1255
  this.keyframeResolver = void 0;
1256
1256
  const { name: o, type: r, velocity: a, delay: l, isHandoff: u, onUpdate: c } = i;
1257
- this.resolvedAt = F.now(), la(e, o, r, a) || ((q.instantAnimations || !l) && c?.(an(e, i, n)), e[0] = e[e.length - 1], Ie(i), i.repeat = 0);
1257
+ this.resolvedAt = F.now(), ca(e, o, r, a) || ((q.instantAnimations || !l) && c?.(an(e, i, n)), e[0] = e[e.length - 1], Ie(i), i.repeat = 0);
1258
1258
  const f = {
1259
- startTime: s ? this.resolvedAt ? this.resolvedAt - this.createdAt > fa ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1259
+ startTime: s ? this.resolvedAt ? this.resolvedAt - this.createdAt > da ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1260
1260
  finalKeyframe: n,
1261
1261
  ...i,
1262
1262
  keyframes: e
1263
- }, d = !u && ha(f), m = f.motionValue?.owner?.current, g = d ? new oa({
1263
+ }, d = !u && fa(f), m = f.motionValue?.owner?.current, g = d ? new aa({
1264
1264
  ...f,
1265
1265
  element: m
1266
1266
  }) : new cn(f);
@@ -1276,7 +1276,7 @@ class da extends ln {
1276
1276
  });
1277
1277
  }
1278
1278
  get animation() {
1279
- return this._animation || (this.keyframeResolver?.resume(), Zo()), this._animation;
1279
+ return this._animation || (this.keyframeResolver?.resume(), Jo()), this._animation;
1280
1280
  }
1281
1281
  get duration() {
1282
1282
  return this.animation.duration;
@@ -1318,57 +1318,57 @@ class da extends ln {
1318
1318
  this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
1319
1319
  }
1320
1320
  }
1321
- function Rs(t, e, n, i = 0, s = 1) {
1321
+ function Ls(t, e, n, i = 0, s = 1) {
1322
1322
  const o = Array.from(t).sort((u, c) => u.sortNodePosition(c)).indexOf(e), r = t.size, a = (r - 1) * i;
1323
1323
  return typeof n == "function" ? n(o, r) : s === 1 ? o * i : a - o * i;
1324
1324
  }
1325
- const ma = (
1325
+ const pa = (
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 pa(t) {
1330
- const e = ma.exec(t);
1329
+ function ga(t) {
1330
+ const e = pa.exec(t);
1331
1331
  if (!e)
1332
1332
  return [,];
1333
1333
  const [, n, i, s] = e;
1334
1334
  return [`--${n ?? i}`, s];
1335
1335
  }
1336
- const ga = 4;
1337
- function Ls(t, e, n = 1) {
1338
- Y(n <= ga, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1339
- const [i, s] = pa(t);
1336
+ const ya = 4;
1337
+ function ks(t, e, n = 1) {
1338
+ Y(n <= ya, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1339
+ const [i, s] = ga(t);
1340
1340
  if (!i)
1341
1341
  return;
1342
1342
  const o = window.getComputedStyle(e).getPropertyValue(i);
1343
1343
  if (o) {
1344
1344
  const r = o.trim();
1345
- return Yi(r) ? parseFloat(r) : r;
1345
+ return qi(r) ? parseFloat(r) : r;
1346
1346
  }
1347
- return en(s) ? Ls(s, e, n + 1) : s;
1347
+ return en(s) ? ks(s, e, n + 1) : s;
1348
1348
  }
1349
- const ya = {
1349
+ const va = {
1350
1350
  type: "spring",
1351
1351
  stiffness: 500,
1352
1352
  damping: 25,
1353
1353
  restSpeed: 10
1354
- }, va = (t) => ({
1354
+ }, Ta = (t) => ({
1355
1355
  type: "spring",
1356
1356
  stiffness: 550,
1357
1357
  damping: t === 0 ? 2 * Math.sqrt(550) : 30,
1358
1358
  restSpeed: 10
1359
- }), Ta = {
1359
+ }), xa = {
1360
1360
  type: "keyframes",
1361
1361
  duration: 0.8
1362
- }, xa = {
1362
+ }, wa = {
1363
1363
  type: "keyframes",
1364
1364
  ease: [0.25, 0.1, 0.35, 1],
1365
1365
  duration: 0.3
1366
- }, wa = (t, { keyframes: e }) => e.length > 2 ? Ta : Pt.has(t) ? t.startsWith("scale") ? va(e[1]) : ya : xa, Pa = (t) => t !== null;
1367
- function Sa(t, { repeat: e, repeatType: n = "loop" }, i) {
1368
- const s = t.filter(Pa), o = e && n !== "loop" && e % 2 === 1 ? 0 : s.length - 1;
1366
+ }, Pa = (t, { keyframes: e }) => e.length > 2 ? xa : Pt.has(t) ? t.startsWith("scale") ? Ta(e[1]) : va : wa, Sa = (t) => t !== null;
1367
+ function ba(t, { repeat: e, repeatType: n = "loop" }, i) {
1368
+ const s = t.filter(Sa), o = e && n !== "loop" && e % 2 === 1 ? 0 : s.length - 1;
1369
1369
  return s[o];
1370
1370
  }
1371
- function ks(t, e) {
1371
+ function Bs(t, e) {
1372
1372
  if (t?.inherit && e) {
1373
1373
  const { inherit: n, ...i } = t;
1374
1374
  return { ...e, ...i };
@@ -1377,9 +1377,9 @@ function ks(t, e) {
1377
1377
  }
1378
1378
  function hn(t, e) {
1379
1379
  const n = t?.[e] ?? t?.default ?? t;
1380
- return n !== t ? ks(n, t) : n;
1380
+ return n !== t ? Bs(n, t) : n;
1381
1381
  }
1382
- function ba({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: u, ...c }) {
1382
+ function Aa({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: u, ...c }) {
1383
1383
  return !!Object.keys(c).length;
1384
1384
  }
1385
1385
  const fn = (t, e, n, i = {}, s, o) => (r) => {
@@ -1402,10 +1402,10 @@ const fn = (t, e, n, i = {}, s, o) => (r) => {
1402
1402
  motionValue: e,
1403
1403
  element: o ? void 0 : s
1404
1404
  };
1405
- ba(a) || Object.assign(c, wa(t, c)), c.duration && (c.duration = /* @__PURE__ */ K(c.duration)), c.repeatDelay && (c.repeatDelay = /* @__PURE__ */ K(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
1405
+ Aa(a) || Object.assign(c, Pa(t, c)), c.duration && (c.duration = /* @__PURE__ */ K(c.duration)), c.repeatDelay && (c.repeatDelay = /* @__PURE__ */ K(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
1406
1406
  let h = !1;
1407
1407
  if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (Ie(c), c.delay === 0 && (h = !0)), (q.instantAnimations || q.skipAnimations || s?.shouldSkipAnimations) && (h = !0, Ie(c), c.delay = 0), c.allowFlatten = !a.type && !a.ease, h && !o && e.get() !== void 0) {
1408
- const f = Sa(c.keyframes, a);
1408
+ const f = ba(c.keyframes, a);
1409
1409
  if (f !== void 0) {
1410
1410
  A.update(() => {
1411
1411
  c.onUpdate(f), c.onComplete();
@@ -1413,7 +1413,7 @@ const fn = (t, e, n, i = {}, s, o) => (r) => {
1413
1413
  return;
1414
1414
  }
1415
1415
  }
1416
- return a.isSync ? new cn(c) : new da(c);
1416
+ return a.isSync ? new cn(c) : new ma(c);
1417
1417
  };
1418
1418
  function $n(t) {
1419
1419
  const e = [{}, {}];
@@ -1436,7 +1436,7 @@ function gt(t, e, n) {
1436
1436
  const i = t.getProps();
1437
1437
  return dn(i, e, n !== void 0 ? n : i.custom, t);
1438
1438
  }
1439
- const Bs = /* @__PURE__ */ new Set([
1439
+ const Fs = /* @__PURE__ */ new Set([
1440
1440
  "width",
1441
1441
  "height",
1442
1442
  "top",
@@ -1444,8 +1444,8 @@ const Bs = /* @__PURE__ */ new Set([
1444
1444
  "right",
1445
1445
  "bottom",
1446
1446
  ...wt
1447
- ]), zn = 30, Aa = (t) => !isNaN(parseFloat(t));
1448
- class Va {
1447
+ ]), zn = 30, Va = (t) => !isNaN(parseFloat(t));
1448
+ class Da {
1449
1449
  /**
1450
1450
  * @param init - The initiating value
1451
1451
  * @param config - Optional configuration options
@@ -1461,7 +1461,7 @@ class Va {
1461
1461
  }, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
1462
1462
  }
1463
1463
  setCurrent(e) {
1464
- this.current = e, this.updatedAt = F.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Aa(this.current));
1464
+ this.current = e, this.updatedAt = F.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Va(this.current));
1465
1465
  }
1466
1466
  setPrevFrameValue(e = this.current) {
1467
1467
  this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -1593,7 +1593,7 @@ class Va {
1593
1593
  if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > zn)
1594
1594
  return 0;
1595
1595
  const n = Math.min(this.updatedAt - this.prevUpdatedAt, zn);
1596
- return Qi(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1596
+ return ts(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1597
1597
  }
1598
1598
  /**
1599
1599
  * Registers a new animation to control this `MotionValue`. Only one
@@ -1645,31 +1645,31 @@ class Va {
1645
1645
  }
1646
1646
  }
1647
1647
  function yt(t, e) {
1648
- return new Va(t, e);
1648
+ return new Da(t, e);
1649
1649
  }
1650
1650
  const Oe = (t) => Array.isArray(t);
1651
- function Da(t, e, n) {
1651
+ function Ma(t, e, n) {
1652
1652
  t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, yt(n));
1653
1653
  }
1654
- function Ma(t) {
1654
+ function Ca(t) {
1655
1655
  return Oe(t) ? t[t.length - 1] || 0 : t;
1656
1656
  }
1657
- function Ca(t, e) {
1657
+ function Ea(t, e) {
1658
1658
  const n = gt(t, e);
1659
1659
  let { transitionEnd: i = {}, transition: s = {}, ...o } = n || {};
1660
1660
  o = { ...o, ...i };
1661
1661
  for (const r in o) {
1662
- const a = Ma(o[r]);
1663
- Da(t, r, a);
1662
+ const a = Ca(o[r]);
1663
+ Ma(t, r, a);
1664
1664
  }
1665
1665
  }
1666
1666
  const k = (t) => !!(t && t.getVelocity);
1667
- function Ea(t) {
1667
+ function Ra(t) {
1668
1668
  return !!(k(t) && t.add);
1669
1669
  }
1670
1670
  function je(t, e) {
1671
1671
  const n = t.getValue("willChange");
1672
- if (Ea(n))
1672
+ if (Ra(n))
1673
1673
  return n.add(e);
1674
1674
  if (!n && q.WillChange) {
1675
1675
  const i = new q.WillChange("auto");
@@ -1679,24 +1679,24 @@ function je(t, e) {
1679
1679
  function mn(t) {
1680
1680
  return t.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1681
1681
  }
1682
- const Ra = "framerAppearId", Fs = "data-" + mn(Ra);
1683
- function Is(t) {
1684
- return t.props[Fs];
1682
+ const La = "framerAppearId", Is = "data-" + mn(La);
1683
+ function Os(t) {
1684
+ return t.props[Is];
1685
1685
  }
1686
- function La({ protectedKeys: t, needsAnimating: e }, n) {
1686
+ function ka({ protectedKeys: t, needsAnimating: e }, n) {
1687
1687
  const i = t.hasOwnProperty(n) && e[n] !== !0;
1688
1688
  return e[n] = !1, i;
1689
1689
  }
1690
- function Os(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
1690
+ function js(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
1691
1691
  let { transition: o, transitionEnd: r, ...a } = e;
1692
1692
  const l = t.getDefaultTransition();
1693
- o = o ? ks(o, l) : l;
1693
+ o = o ? Bs(o, l) : l;
1694
1694
  const u = o?.reduceMotion;
1695
1695
  i && (o = i);
1696
1696
  const c = [], h = s && t.animationState && t.animationState.getState()[s];
1697
1697
  for (const f in a) {
1698
1698
  const d = t.getValue(f, t.latestValues[f] ?? null), m = a[f];
1699
- if (m === void 0 || h && La(h, f))
1699
+ if (m === void 0 || h && ka(h, f))
1700
1700
  continue;
1701
1701
  const g = {
1702
1702
  delay: n,
@@ -1706,7 +1706,7 @@ function Os(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
1706
1706
  continue;
1707
1707
  let v = !1;
1708
1708
  if (window.MotionHandoffAnimation) {
1709
- const P = Is(t);
1709
+ const P = Os(t);
1710
1710
  if (P) {
1711
1711
  const w = window.MotionHandoffAnimation(P, f, A);
1712
1712
  w !== null && (g.startTime = w, v = !0);
@@ -1714,13 +1714,13 @@ function Os(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
1714
1714
  }
1715
1715
  je(t, f);
1716
1716
  const T = u ?? t.shouldReduceMotion;
1717
- d.start(fn(f, d, m, T && Bs.has(f) ? { type: !1 } : g, t, v));
1717
+ d.start(fn(f, d, m, T && Fs.has(f) ? { type: !1 } : g, t, v));
1718
1718
  const p = d.animation;
1719
1719
  p && c.push(p);
1720
1720
  }
1721
1721
  if (r) {
1722
1722
  const f = () => A.update(() => {
1723
- r && Ca(t, r);
1723
+ r && Ea(t, r);
1724
1724
  });
1725
1725
  c.length ? Promise.all(c).then(f) : f();
1726
1726
  }
@@ -1730,9 +1730,9 @@ function Ne(t, e, n = {}) {
1730
1730
  const i = gt(t, e, n.type === "exit" ? t.presenceContext?.custom : void 0);
1731
1731
  let { transition: s = t.getDefaultTransition() || {} } = i || {};
1732
1732
  n.transitionOverride && (s = n.transitionOverride);
1733
- const o = i ? () => Promise.all(Os(t, i, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
1733
+ const o = i ? () => Promise.all(js(t, i, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
1734
1734
  const { delayChildren: u = 0, staggerChildren: c, staggerDirection: h } = s;
1735
- return ka(t, e, l, u, c, h, n);
1735
+ return Ba(t, e, l, u, c, h, n);
1736
1736
  } : () => Promise.resolve(), { when: a } = s;
1737
1737
  if (a) {
1738
1738
  const [l, u] = a === "beforeChildren" ? [o, r] : [r, o];
@@ -1740,16 +1740,16 @@ function Ne(t, e, n = {}) {
1740
1740
  } else
1741
1741
  return Promise.all([o(), r(n.delay)]);
1742
1742
  }
1743
- function ka(t, e, n = 0, i = 0, s = 0, o = 1, r) {
1743
+ function Ba(t, e, n = 0, i = 0, s = 0, o = 1, r) {
1744
1744
  const a = [];
1745
1745
  for (const l of t.variantChildren)
1746
1746
  l.notify("AnimationStart", e), a.push(Ne(l, e, {
1747
1747
  ...r,
1748
- delay: n + (typeof i == "function" ? 0 : i) + Rs(t.variantChildren, l, i, s, o)
1748
+ delay: n + (typeof i == "function" ? 0 : i) + Ls(t.variantChildren, l, i, s, o)
1749
1749
  }).then(() => l.notify("AnimationComplete", e)));
1750
1750
  return Promise.all(a);
1751
1751
  }
1752
- function Ba(t, e, n = {}) {
1752
+ function Fa(t, e, n = {}) {
1753
1753
  t.notify("AnimationStart", e);
1754
1754
  let i;
1755
1755
  if (Array.isArray(e)) {
@@ -1759,21 +1759,21 @@ function Ba(t, e, n = {}) {
1759
1759
  i = Ne(t, e, n);
1760
1760
  else {
1761
1761
  const s = typeof e == "function" ? gt(t, e, n.custom) : e;
1762
- i = Promise.all(Os(t, s, n));
1762
+ i = Promise.all(js(t, s, n));
1763
1763
  }
1764
1764
  return i.then(() => {
1765
1765
  t.notify("AnimationComplete", e);
1766
1766
  });
1767
1767
  }
1768
- const Fa = {
1768
+ const Ia = {
1769
1769
  test: (t) => t === "auto",
1770
1770
  parse: (t) => t
1771
- }, js = (t) => (e) => e.test(t), Ns = [xt, y, _, Z, lo, ao, Fa], Hn = (t) => Ns.find(js(t));
1772
- function Ia(t) {
1773
- return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Zi(t) : !0;
1771
+ }, Ns = (t) => (e) => e.test(t), Us = [xt, y, _, Z, co, lo, Ia], Hn = (t) => Us.find(Ns(t));
1772
+ function Oa(t) {
1773
+ return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Ji(t) : !0;
1774
1774
  }
1775
- const Oa = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1776
- function ja(t) {
1775
+ const ja = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1776
+ function Na(t) {
1777
1777
  const [e, n] = t.slice(0, -1).split("(");
1778
1778
  if (e === "drop-shadow")
1779
1779
  return t;
@@ -1781,14 +1781,14 @@ function ja(t) {
1781
1781
  if (!i)
1782
1782
  return t;
1783
1783
  const s = n.replace(i, "");
1784
- let o = Oa.has(e) ? 1 : 0;
1784
+ let o = ja.has(e) ? 1 : 0;
1785
1785
  return i !== n && (o *= 100), e + "(" + o + s + ")";
1786
1786
  }
1787
- const Na = /\b([a-z-]*)\(.*?\)/gu, Ue = {
1787
+ const Ua = /\b([a-z-]*)\(.*?\)/gu, Ue = {
1788
1788
  ...H,
1789
1789
  getAnimatableNone: (t) => {
1790
- const e = t.match(Na);
1791
- return e ? e.map(ja).join(" ") : t;
1790
+ const e = t.match(Ua);
1791
+ return e ? e.map(Na).join(" ") : t;
1792
1792
  }
1793
1793
  }, We = {
1794
1794
  ...H,
@@ -1799,7 +1799,7 @@ const Na = /\b([a-z-]*)\(.*?\)/gu, Ue = {
1799
1799
  }, Gn = {
1800
1800
  ...xt,
1801
1801
  transform: Math.round
1802
- }, Ua = {
1802
+ }, Wa = {
1803
1803
  rotate: Z,
1804
1804
  rotateX: Z,
1805
1805
  rotateY: Z,
@@ -1880,13 +1880,13 @@ const Na = /\b([a-z-]*)\(.*?\)/gu, Ue = {
1880
1880
  // Misc
1881
1881
  backgroundPositionX: y,
1882
1882
  backgroundPositionY: y,
1883
- ...Ua,
1883
+ ...Wa,
1884
1884
  zIndex: Gn,
1885
1885
  // SVG
1886
1886
  fillOpacity: Et,
1887
1887
  strokeOpacity: Et,
1888
1888
  numOctaves: Gn
1889
- }, Wa = {
1889
+ }, Ka = {
1890
1890
  ...pn,
1891
1891
  // Color props
1892
1892
  color: C,
@@ -1904,23 +1904,23 @@ const Na = /\b([a-z-]*)\(.*?\)/gu, Ue = {
1904
1904
  WebkitFilter: Ue,
1905
1905
  mask: We,
1906
1906
  WebkitMask: We
1907
- }, Us = (t) => Wa[t], Ka = /* @__PURE__ */ new Set([Ue, We]);
1908
- function Ws(t, e) {
1909
- let n = Us(t);
1910
- return Ka.has(n) || (n = H), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
1907
+ }, Ws = (t) => Ka[t], $a = /* @__PURE__ */ new Set([Ue, We]);
1908
+ function Ks(t, e) {
1909
+ let n = Ws(t);
1910
+ return $a.has(n) || (n = H), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
1911
1911
  }
1912
- const $a = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1913
- function za(t, e, n) {
1912
+ const za = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1913
+ function Ha(t, e, n) {
1914
1914
  let i = 0, s;
1915
1915
  for (; i < t.length && !s; ) {
1916
1916
  const o = t[i];
1917
- typeof o == "string" && !$a.has(o) && Rt(o).values.length && (s = t[i]), i++;
1917
+ typeof o == "string" && !za.has(o) && Rt(o).values.length && (s = t[i]), i++;
1918
1918
  }
1919
1919
  if (s && n)
1920
1920
  for (const o of e)
1921
- t[o] = Ws(n, s);
1921
+ t[o] = Ks(n, s);
1922
1922
  }
1923
- class Ha extends un {
1923
+ class Ga extends un {
1924
1924
  constructor(e, n, i, s, o) {
1925
1925
  super(e, n, i, s, o, !0);
1926
1926
  }
@@ -1932,11 +1932,11 @@ class Ha extends un {
1932
1932
  for (let c = 0; c < e.length; c++) {
1933
1933
  let h = e[c];
1934
1934
  if (typeof h == "string" && (h = h.trim(), en(h))) {
1935
- const f = Ls(h, n.current);
1935
+ const f = ks(h, n.current);
1936
1936
  f !== void 0 && (e[c] = f), c === e.length - 1 && (this.finalKeyframe = h);
1937
1937
  }
1938
1938
  }
1939
- if (this.resolveNoneKeyframes(), !Bs.has(i) || e.length !== 2)
1939
+ if (this.resolveNoneKeyframes(), !Fs.has(i) || e.length !== 2)
1940
1940
  return;
1941
1941
  const [s, o] = e, r = Hn(s), a = Hn(o), l = Rn(s), u = Rn(o);
1942
1942
  if (l !== u && J[i]) {
@@ -1954,8 +1954,8 @@ class Ha extends un {
1954
1954
  resolveNoneKeyframes() {
1955
1955
  const { unresolvedKeyframes: e, name: n } = this, i = [];
1956
1956
  for (let s = 0; s < e.length; s++)
1957
- (e[s] === null || Ia(e[s])) && i.push(s);
1958
- i.length && za(e, i, n);
1957
+ (e[s] === null || Oa(e[s])) && i.push(s);
1958
+ i.length && Ha(e, i, n);
1959
1959
  }
1960
1960
  measureInitialState() {
1961
1961
  const { element: e, unresolvedKeyframes: n, name: i } = this;
@@ -1977,7 +1977,7 @@ class Ha extends un {
1977
1977
  }), this.resolveNoneKeyframes();
1978
1978
  }
1979
1979
  }
1980
- const Ga = /* @__PURE__ */ new Set([
1980
+ const _a = /* @__PURE__ */ new Set([
1981
1981
  "opacity",
1982
1982
  "clipPath",
1983
1983
  "filter",
@@ -1986,7 +1986,7 @@ const Ga = /* @__PURE__ */ new Set([
1986
1986
  // or until we implement support for linear() easing.
1987
1987
  // "background-color"
1988
1988
  ]);
1989
- function Ks(t, e, n) {
1989
+ function $s(t, e, n) {
1990
1990
  if (t == null)
1991
1991
  return [];
1992
1992
  if (t instanceof EventTarget)
@@ -1998,37 +1998,37 @@ function Ks(t, e, n) {
1998
1998
  }
1999
1999
  return Array.from(t).filter((i) => i != null);
2000
2000
  }
2001
- const $s = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
2002
- function _a(t) {
2003
- return qi(t) && "offsetHeight" in t;
2001
+ const zs = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
2002
+ function Xa(t) {
2003
+ return Zi(t) && "offsetHeight" in t;
2004
2004
  }
2005
- const { schedule: gn } = /* @__PURE__ */ us(queueMicrotask, !1), z = {
2005
+ const { schedule: gn } = /* @__PURE__ */ hs(queueMicrotask, !1), z = {
2006
2006
  x: !1,
2007
2007
  y: !1
2008
2008
  };
2009
- function zs() {
2009
+ function Hs() {
2010
2010
  return z.x || z.y;
2011
2011
  }
2012
- function Xa(t) {
2012
+ function Ya(t) {
2013
2013
  return t === "x" || t === "y" ? z[t] ? null : (z[t] = !0, () => {
2014
2014
  z[t] = !1;
2015
2015
  }) : z.x || z.y ? null : (z.x = z.y = !0, () => {
2016
2016
  z.x = z.y = !1;
2017
2017
  });
2018
2018
  }
2019
- function Hs(t, e) {
2020
- const n = Ks(t), i = new AbortController(), s = {
2019
+ function Gs(t, e) {
2020
+ const n = $s(t), i = new AbortController(), s = {
2021
2021
  passive: !0,
2022
2022
  ...e,
2023
2023
  signal: i.signal
2024
2024
  };
2025
2025
  return [n, s, () => i.abort()];
2026
2026
  }
2027
- function Ya(t) {
2028
- return !(t.pointerType === "touch" || zs());
2027
+ function qa(t) {
2028
+ return !(t.pointerType === "touch" || Hs());
2029
2029
  }
2030
- function qa(t, e, n = {}) {
2031
- const [i, s, o] = Hs(t, n);
2030
+ function Za(t, e, n = {}) {
2031
+ const [i, s, o] = Gs(t, n);
2032
2032
  return i.forEach((r) => {
2033
2033
  let a = !1, l = !1, u;
2034
2034
  const c = () => {
@@ -2048,7 +2048,7 @@ function qa(t, e, n = {}) {
2048
2048
  h(x);
2049
2049
  }
2050
2050
  }, g = (x) => {
2051
- if (!Ya(x))
2051
+ if (!qa(x))
2052
2052
  return;
2053
2053
  l = !1;
2054
2054
  const v = e(r, x);
@@ -2057,19 +2057,19 @@ function qa(t, e, n = {}) {
2057
2057
  r.addEventListener("pointerenter", g, s), r.addEventListener("pointerdown", d, s);
2058
2058
  }), o;
2059
2059
  }
2060
- const Gs = (t, e) => e ? t === e ? !0 : Gs(t, e.parentElement) : !1, yn = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, Za = /* @__PURE__ */ new Set([
2060
+ const _s = (t, e) => e ? t === e ? !0 : _s(t, e.parentElement) : !1, yn = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, Ja = /* @__PURE__ */ new Set([
2061
2061
  "BUTTON",
2062
2062
  "INPUT",
2063
2063
  "SELECT",
2064
2064
  "TEXTAREA",
2065
2065
  "A"
2066
2066
  ]);
2067
- function Ja(t) {
2068
- return Za.has(t.tagName) || t.isContentEditable === !0;
2067
+ function Qa(t) {
2068
+ return Ja.has(t.tagName) || t.isContentEditable === !0;
2069
2069
  }
2070
- const Qa = /* @__PURE__ */ new Set(["INPUT", "SELECT", "TEXTAREA"]);
2071
- function tl(t) {
2072
- return Qa.has(t.tagName) || t.isContentEditable === !0;
2070
+ const tl = /* @__PURE__ */ new Set(["INPUT", "SELECT", "TEXTAREA"]);
2071
+ function el(t) {
2072
+ return tl.has(t.tagName) || t.isContentEditable === !0;
2073
2073
  }
2074
2074
  const Kt = /* @__PURE__ */ new WeakSet();
2075
2075
  function _n(t) {
@@ -2080,7 +2080,7 @@ function _n(t) {
2080
2080
  function de(t, e) {
2081
2081
  t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
2082
2082
  }
2083
- const el = (t, e) => {
2083
+ const nl = (t, e) => {
2084
2084
  const n = t.currentTarget;
2085
2085
  if (!n)
2086
2086
  return;
@@ -2096,11 +2096,11 @@ const el = (t, e) => {
2096
2096
  n.addEventListener("keydown", i, e), n.addEventListener("blur", () => n.removeEventListener("keydown", i), e);
2097
2097
  };
2098
2098
  function Xn(t) {
2099
- return yn(t) && !zs();
2099
+ return yn(t) && !Hs();
2100
2100
  }
2101
2101
  const Yn = /* @__PURE__ */ new WeakSet();
2102
- function nl(t, e, n = {}) {
2103
- const [i, s, o] = Hs(t, n), r = (a) => {
2102
+ function il(t, e, n = {}) {
2103
+ const [i, s, o] = Gs(t, n), r = (a) => {
2104
2104
  const l = a.currentTarget;
2105
2105
  if (!Xn(a) || Yn.has(a))
2106
2106
  return;
@@ -2108,43 +2108,43 @@ function nl(t, e, n = {}) {
2108
2108
  const u = e(l, a), c = (d, m) => {
2109
2109
  window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", f), Kt.has(l) && Kt.delete(l), Xn(d) && typeof u == "function" && u(d, { success: m });
2110
2110
  }, h = (d) => {
2111
- c(d, l === window || l === document || n.useGlobalTarget || Gs(l, d.target));
2111
+ c(d, l === window || l === document || n.useGlobalTarget || _s(l, d.target));
2112
2112
  }, f = (d) => {
2113
2113
  c(d, !1);
2114
2114
  };
2115
2115
  window.addEventListener("pointerup", h, s), window.addEventListener("pointercancel", f, s);
2116
2116
  };
2117
2117
  return i.forEach((a) => {
2118
- (n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, s), _a(a) && (a.addEventListener("focus", (u) => el(u, s)), !Ja(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
2118
+ (n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, s), Xa(a) && (a.addEventListener("focus", (u) => nl(u, s)), !Qa(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
2119
2119
  }), o;
2120
2120
  }
2121
2121
  function vn(t) {
2122
- return qi(t) && "ownerSVGElement" in t;
2122
+ return Zi(t) && "ownerSVGElement" in t;
2123
2123
  }
2124
2124
  const $t = /* @__PURE__ */ new WeakMap();
2125
2125
  let zt;
2126
- const _s = (t, e, n) => (i, s) => s && s[0] ? s[0][t + "Size"] : vn(i) && "getBBox" in i ? i.getBBox()[e] : i[n], il = /* @__PURE__ */ _s("inline", "width", "offsetWidth"), sl = /* @__PURE__ */ _s("block", "height", "offsetHeight");
2127
- function rl({ target: t, borderBoxSize: e }) {
2126
+ const Xs = (t, e, n) => (i, s) => s && s[0] ? s[0][t + "Size"] : vn(i) && "getBBox" in i ? i.getBBox()[e] : i[n], sl = /* @__PURE__ */ Xs("inline", "width", "offsetWidth"), rl = /* @__PURE__ */ Xs("block", "height", "offsetHeight");
2127
+ function ol({ target: t, borderBoxSize: e }) {
2128
2128
  $t.get(t)?.forEach((n) => {
2129
2129
  n(t, {
2130
2130
  get width() {
2131
- return il(t, e);
2131
+ return sl(t, e);
2132
2132
  },
2133
2133
  get height() {
2134
- return sl(t, e);
2134
+ return rl(t, e);
2135
2135
  }
2136
2136
  });
2137
2137
  });
2138
2138
  }
2139
- function ol(t) {
2140
- t.forEach(rl);
2139
+ function al(t) {
2140
+ t.forEach(ol);
2141
2141
  }
2142
- function al() {
2143
- typeof ResizeObserver > "u" || (zt = new ResizeObserver(ol));
2142
+ function ll() {
2143
+ typeof ResizeObserver > "u" || (zt = new ResizeObserver(al));
2144
2144
  }
2145
- function ll(t, e) {
2146
- zt || al();
2147
- const n = Ks(t);
2145
+ function cl(t, e) {
2146
+ zt || ll();
2147
+ const n = $s(t);
2148
2148
  return n.forEach((i) => {
2149
2149
  let s = $t.get(i);
2150
2150
  s || (s = /* @__PURE__ */ new Set(), $t.set(i, s)), s.add(e), zt?.observe(i);
@@ -2157,7 +2157,7 @@ function ll(t, e) {
2157
2157
  }
2158
2158
  const Ht = /* @__PURE__ */ new Set();
2159
2159
  let ft;
2160
- function cl() {
2160
+ function ul() {
2161
2161
  ft = () => {
2162
2162
  const t = {
2163
2163
  get width() {
@@ -2170,18 +2170,18 @@ function cl() {
2170
2170
  Ht.forEach((e) => e(t));
2171
2171
  }, window.addEventListener("resize", ft);
2172
2172
  }
2173
- function ul(t) {
2174
- return Ht.add(t), ft || cl(), () => {
2173
+ function hl(t) {
2174
+ return Ht.add(t), ft || ul(), () => {
2175
2175
  Ht.delete(t), !Ht.size && typeof ft == "function" && (window.removeEventListener("resize", ft), ft = void 0);
2176
2176
  };
2177
2177
  }
2178
2178
  function qn(t, e) {
2179
- return typeof t == "function" ? ul(t) : ll(t, e);
2179
+ return typeof t == "function" ? hl(t) : cl(t, e);
2180
2180
  }
2181
- function hl(t) {
2181
+ function fl(t) {
2182
2182
  return vn(t) && t.tagName === "svg";
2183
2183
  }
2184
- const fl = [...Ns, C, H], dl = (t) => fl.find(js(t)), Zn = () => ({
2184
+ const dl = [...Us, C, H], ml = (t) => dl.find(Ns(t)), Zn = () => ({
2185
2185
  translate: 0,
2186
2186
  scale: 1,
2187
2187
  origin: 0,
@@ -2192,7 +2192,7 @@ const fl = [...Ns, C, H], dl = (t) => fl.find(js(t)), Zn = () => ({
2192
2192
  }), Jn = () => ({ min: 0, max: 0 }), E = () => ({
2193
2193
  x: Jn(),
2194
2194
  y: Jn()
2195
- }), ml = /* @__PURE__ */ new WeakMap();
2195
+ }), pl = /* @__PURE__ */ new WeakMap();
2196
2196
  function ie(t) {
2197
2197
  return t !== null && typeof t == "object" && typeof t.start == "function";
2198
2198
  }
@@ -2211,10 +2211,10 @@ const Tn = [
2211
2211
  function se(t) {
2212
2212
  return ie(t.animate) || xn.some((e) => Lt(t[e]));
2213
2213
  }
2214
- function Xs(t) {
2214
+ function Ys(t) {
2215
2215
  return !!(se(t) || t.variants);
2216
2216
  }
2217
- function pl(t, e, n) {
2217
+ function gl(t, e, n) {
2218
2218
  for (const i in e) {
2219
2219
  const s = e[i], o = n[i];
2220
2220
  if (k(s))
@@ -2234,9 +2234,9 @@ function pl(t, e, n) {
2234
2234
  e[i] === void 0 && t.removeValue(i);
2235
2235
  return e;
2236
2236
  }
2237
- const Ke = { current: null }, Ys = { current: !1 }, gl = typeof window < "u";
2238
- function yl() {
2239
- if (Ys.current = !0, !!gl)
2237
+ const Ke = { current: null }, qs = { current: !1 }, yl = typeof window < "u";
2238
+ function vl() {
2239
+ if (qs.current = !0, !!yl)
2240
2240
  if (window.matchMedia) {
2241
2241
  const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Ke.current = t.matches;
2242
2242
  t.addEventListener("change", e), e();
@@ -2253,13 +2253,13 @@ const Qn = [
2253
2253
  "LayoutAnimationComplete"
2254
2254
  ];
2255
2255
  let Jt = {};
2256
- function qs(t) {
2256
+ function Zs(t) {
2257
2257
  Jt = t;
2258
2258
  }
2259
- function vl() {
2259
+ function Tl() {
2260
2260
  return Jt;
2261
2261
  }
2262
- class Tl {
2262
+ class xl {
2263
2263
  /**
2264
2264
  * This method takes React props and returns found MotionValues. For example, HTML
2265
2265
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -2278,7 +2278,7 @@ class Tl {
2278
2278
  this.renderScheduledAt < d && (this.renderScheduledAt = d, A.render(this.render, !1, !0));
2279
2279
  };
2280
2280
  const { latestValues: u, renderState: c } = a;
2281
- this.latestValues = u, this.baseTarget = { ...u }, this.initialValues = n.initial ? { ...u } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.skipAnimationsConfig = o, this.options = l, this.blockInitialAnimation = !!r, this.isControllingVariants = se(n), this.isVariantNode = Xs(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2281
+ this.latestValues = u, this.baseTarget = { ...u }, this.initialValues = n.initial ? { ...u } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.skipAnimationsConfig = o, this.options = l, this.blockInitialAnimation = !!r, this.isControllingVariants = se(n), this.isVariantNode = Ys(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2282
2282
  const { willChange: h, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
2283
2283
  for (const d in f) {
2284
2284
  const m = f[d];
@@ -2289,7 +2289,7 @@ class Tl {
2289
2289
  if (this.hasBeenMounted)
2290
2290
  for (const n in this.initialValues)
2291
2291
  this.values.get(n)?.jump(this.initialValues[n]), this.latestValues[n] = this.initialValues[n];
2292
- this.current = e, ml.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, i) => this.bindToMotionValue(i, n)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Ys.current || yl(), this.shouldReduceMotion = Ke.current), process.env.NODE_ENV !== "production" && Je(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, pl.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, i) => this.bindToMotionValue(i, n)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (qs.current || vl(), this.shouldReduceMotion = Ke.current), process.env.NODE_ENV !== "production" && Je(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;
2293
2293
  }
2294
2294
  unmount() {
2295
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);
@@ -2308,8 +2308,8 @@ class Tl {
2308
2308
  this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
2309
2309
  }
2310
2310
  bindToMotionValue(e, n) {
2311
- if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), n.accelerate && Ga.has(e) && this.current instanceof HTMLElement) {
2312
- const { factory: r, keyframes: a, times: l, ease: u, duration: c } = n.accelerate, h = new Cs({
2311
+ if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), n.accelerate && _a.has(e) && this.current instanceof HTMLElement) {
2312
+ const { factory: r, keyframes: a, times: l, ease: u, duration: c } = n.accelerate, h = new Es({
2313
2313
  element: this.current,
2314
2314
  name: e,
2315
2315
  keyframes: a,
@@ -2377,7 +2377,7 @@ class Tl {
2377
2377
  const o = "on" + s, r = e[o];
2378
2378
  r && (this.propEventSubscriptions[s] = this.on(s, r));
2379
2379
  }
2380
- this.prevMotionValues = pl(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2380
+ this.prevMotionValues = gl(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2381
2381
  }
2382
2382
  getProps() {
2383
2383
  return this.props;
@@ -2442,7 +2442,7 @@ class Tl {
2442
2442
  */
2443
2443
  readValue(e, n) {
2444
2444
  let i = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
2445
- return i != null && (typeof i == "string" && (Yi(i) || Zi(i)) ? i = parseFloat(i) : !dl(i) && H.test(n) && (i = Ws(e, n)), this.setBaseTarget(e, k(i) ? i.get() : i)), k(i) ? i.get() : i;
2445
+ return i != null && (typeof i == "string" && (qi(i) || Ji(i)) ? i = parseFloat(i) : !ml(i) && H.test(n) && (i = Ks(e, n)), this.setBaseTarget(e, k(i) ? i.get() : i)), k(i) ? i.get() : i;
2446
2446
  }
2447
2447
  /**
2448
2448
  * Set the base target to later animate back to. This is currently
@@ -2477,9 +2477,9 @@ class Tl {
2477
2477
  gn.render(this.render);
2478
2478
  }
2479
2479
  }
2480
- class Zs extends Tl {
2480
+ class Js extends xl {
2481
2481
  constructor() {
2482
- super(...arguments), this.KeyframeResolver = Ha;
2482
+ super(...arguments), this.KeyframeResolver = Ga;
2483
2483
  }
2484
2484
  sortInstanceNodePosition(e, n) {
2485
2485
  return e.compareDocumentPosition(n) & 2 ? 1 : -1;
@@ -2506,16 +2506,16 @@ class tt {
2506
2506
  update() {
2507
2507
  }
2508
2508
  }
2509
- function Js({ top: t, left: e, right: n, bottom: i }) {
2509
+ function Qs({ top: t, left: e, right: n, bottom: i }) {
2510
2510
  return {
2511
2511
  x: { min: e, max: n },
2512
2512
  y: { min: t, max: i }
2513
2513
  };
2514
2514
  }
2515
- function xl({ x: t, y: e }) {
2515
+ function wl({ x: t, y: e }) {
2516
2516
  return { top: e.min, right: t.max, bottom: e.max, left: t.min };
2517
2517
  }
2518
- function wl(t, e) {
2518
+ function Pl(t, e) {
2519
2519
  if (!e)
2520
2520
  return t;
2521
2521
  const n = e({ x: t.left, y: t.top }), i = e({ x: t.right, y: t.bottom });
@@ -2533,9 +2533,9 @@ function $e({ scale: t, scaleX: e, scaleY: n }) {
2533
2533
  return !me(t) || !me(e) || !me(n);
2534
2534
  }
2535
2535
  function it(t) {
2536
- return $e(t) || Qs(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
2536
+ return $e(t) || tr(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
2537
2537
  }
2538
- function Qs(t) {
2538
+ function tr(t) {
2539
2539
  return ti(t.x) || ti(t.y);
2540
2540
  }
2541
2541
  function ti(t) {
@@ -2551,11 +2551,11 @@ function ei(t, e, n, i, s) {
2551
2551
  function ze(t, e = 0, n = 1, i, s) {
2552
2552
  t.min = ei(t.min, e, n, i, s), t.max = ei(t.max, e, n, i, s);
2553
2553
  }
2554
- function tr(t, { x: e, y: n }) {
2554
+ function er(t, { x: e, y: n }) {
2555
2555
  ze(t.x, e.translate, e.scale, e.originPoint), ze(t.y, n.translate, n.scale, n.originPoint);
2556
2556
  }
2557
2557
  const ni = 0.999999999999, ii = 1.0000000000001;
2558
- function Pl(t, e, n, i = !1) {
2558
+ function Sl(t, e, n, i = !1) {
2559
2559
  const s = n.length;
2560
2560
  if (!s)
2561
2561
  return;
@@ -2567,7 +2567,7 @@ function Pl(t, e, n, i = !1) {
2567
2567
  l && l.props.style && l.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root && pt(t, {
2568
2568
  x: -o.scroll.offset.x,
2569
2569
  y: -o.scroll.offset.y
2570
- }), r && (e.x *= r.x.scale, e.y *= r.y.scale, tr(t, r)), i && it(o.latestValues) && pt(t, o.latestValues));
2570
+ }), r && (e.x *= r.x.scale, e.y *= r.y.scale, er(t, r)), i && it(o.latestValues) && pt(t, o.latestValues));
2571
2571
  }
2572
2572
  e.x < ii && e.x > ni && (e.x = 1), e.y < ii && e.y > ni && (e.y = 1);
2573
2573
  }
@@ -2578,25 +2578,28 @@ function si(t, e, n, i, s = 0.5) {
2578
2578
  const o = D(t.min, t.max, s);
2579
2579
  ze(t, e, n, o, i);
2580
2580
  }
2581
+ function ri(t, e) {
2582
+ return typeof t == "string" ? parseFloat(t) / 100 * (e.max - e.min) : t;
2583
+ }
2581
2584
  function pt(t, e) {
2582
- si(t.x, e.x, e.scaleX, e.scale, e.originX), si(t.y, e.y, e.scaleY, e.scale, e.originY);
2585
+ si(t.x, ri(e.x, t.x), e.scaleX, e.scale, e.originX), si(t.y, ri(e.y, t.y), e.scaleY, e.scale, e.originY);
2583
2586
  }
2584
- function er(t, e) {
2585
- return Js(wl(t.getBoundingClientRect(), e));
2587
+ function nr(t, e) {
2588
+ return Qs(Pl(t.getBoundingClientRect(), e));
2586
2589
  }
2587
- function Sl(t, e, n) {
2588
- const i = er(t, n), { scroll: s } = e;
2590
+ function bl(t, e, n) {
2591
+ const i = nr(t, n), { scroll: s } = e;
2589
2592
  return s && (mt(i.x, s.offset.x), mt(i.y, s.offset.y)), i;
2590
2593
  }
2591
- const bl = {
2594
+ const Al = {
2592
2595
  x: "translateX",
2593
2596
  y: "translateY",
2594
2597
  z: "translateZ",
2595
2598
  transformPerspective: "perspective"
2596
- }, Al = wt.length;
2597
- function Vl(t, e, n) {
2599
+ }, Vl = wt.length;
2600
+ function Dl(t, e, n) {
2598
2601
  let i = "", s = !0;
2599
- for (let o = 0; o < Al; o++) {
2602
+ for (let o = 0; o < Vl; o++) {
2600
2603
  const r = wt[o], a = t[r];
2601
2604
  if (a === void 0)
2602
2605
  continue;
@@ -2608,10 +2611,10 @@ function Vl(t, e, n) {
2608
2611
  l = r.startsWith("scale") ? u === 1 : u === 0;
2609
2612
  }
2610
2613
  if (!l || n) {
2611
- const u = $s(a, pn[r]);
2614
+ const u = zs(a, pn[r]);
2612
2615
  if (!l) {
2613
2616
  s = !1;
2614
- const c = bl[r] || r;
2617
+ const c = Al[r] || r;
2615
2618
  i += `${c}(${u}) `;
2616
2619
  }
2617
2620
  n && (e[r] = u);
@@ -2627,20 +2630,20 @@ function wn(t, e, n) {
2627
2630
  if (Pt.has(l)) {
2628
2631
  r = !0;
2629
2632
  continue;
2630
- } else if (fs(l)) {
2633
+ } else if (ds(l)) {
2631
2634
  s[l] = u;
2632
2635
  continue;
2633
2636
  } else {
2634
- const c = $s(u, pn[l]);
2637
+ const c = zs(u, pn[l]);
2635
2638
  l.startsWith("origin") ? (a = !0, o[l] = c) : i[l] = c;
2636
2639
  }
2637
2640
  }
2638
- if (e.transform || (r || n ? i.transform = Vl(e, t.transform, n) : i.transform && (i.transform = "none")), a) {
2641
+ if (e.transform || (r || n ? i.transform = Dl(e, t.transform, n) : i.transform && (i.transform = "none")), a) {
2639
2642
  const { originX: l = "50%", originY: u = "50%", originZ: c = 0 } = o;
2640
2643
  i.transformOrigin = `${l} ${u} ${c}`;
2641
2644
  }
2642
2645
  }
2643
- function nr(t, { style: e, vars: n }, i, s) {
2646
+ function ir(t, { style: e, vars: n }, i, s) {
2644
2647
  const o = t.style;
2645
2648
  let r;
2646
2649
  for (r in e)
@@ -2649,7 +2652,7 @@ function nr(t, { style: e, vars: n }, i, s) {
2649
2652
  for (r in n)
2650
2653
  o.setProperty(r, n[r]);
2651
2654
  }
2652
- function ri(t, e) {
2655
+ function oi(t, e) {
2653
2656
  return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
2654
2657
  }
2655
2658
  const bt = {
@@ -2661,10 +2664,10 @@ const bt = {
2661
2664
  t = parseFloat(t);
2662
2665
  else
2663
2666
  return t;
2664
- const n = ri(t, e.target.x), i = ri(t, e.target.y);
2667
+ const n = oi(t, e.target.x), i = oi(t, e.target.y);
2665
2668
  return `${n}% ${i}%`;
2666
2669
  }
2667
- }, Dl = {
2670
+ }, Ml = {
2668
2671
  correct: (t, { treeScale: e, projectionDelta: n }) => {
2669
2672
  const i = t, s = H.parse(t);
2670
2673
  if (s.length > 5)
@@ -2688,9 +2691,9 @@ const bt = {
2688
2691
  borderTopRightRadius: bt,
2689
2692
  borderBottomLeftRadius: bt,
2690
2693
  borderBottomRightRadius: bt,
2691
- boxShadow: Dl
2694
+ boxShadow: Ml
2692
2695
  };
2693
- function ir(t, { layout: e, layoutId: n }) {
2696
+ function sr(t, { layout: e, layoutId: n }) {
2694
2697
  return Pt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!He[t] || t === "opacity");
2695
2698
  }
2696
2699
  function Pn(t, e, n) {
@@ -2698,26 +2701,26 @@ function Pn(t, e, n) {
2698
2701
  if (!i)
2699
2702
  return o;
2700
2703
  for (const r in i)
2701
- (k(i[r]) || s && k(s[r]) || ir(r, t) || n?.getValue(r)?.liveStyle !== void 0) && (o[r] = i[r]);
2704
+ (k(i[r]) || s && k(s[r]) || sr(r, t) || n?.getValue(r)?.liveStyle !== void 0) && (o[r] = i[r]);
2702
2705
  return o;
2703
2706
  }
2704
- function Ml(t) {
2707
+ function Cl(t) {
2705
2708
  return window.getComputedStyle(t);
2706
2709
  }
2707
- class Cl extends Zs {
2710
+ class El extends Js {
2708
2711
  constructor() {
2709
- super(...arguments), this.type = "html", this.renderInstance = nr;
2712
+ super(...arguments), this.type = "html", this.renderInstance = ir;
2710
2713
  }
2711
2714
  readValueFromInstance(e, n) {
2712
2715
  if (Pt.has(n))
2713
- return this.projection?.isProjecting ? Re(n) : Go(e, n);
2716
+ return this.projection?.isProjecting ? Re(n) : _o(e, n);
2714
2717
  {
2715
- const i = Ml(e), s = (fs(n) ? i.getPropertyValue(n) : i[n]) || 0;
2718
+ const i = Cl(e), s = (ds(n) ? i.getPropertyValue(n) : i[n]) || 0;
2716
2719
  return typeof s == "string" ? s.trim() : s;
2717
2720
  }
2718
2721
  }
2719
2722
  measureInstanceViewportBox(e, { transformPagePoint: n }) {
2720
- return er(e, n);
2723
+ return nr(e, n);
2721
2724
  }
2722
2725
  build(e, n, i) {
2723
2726
  wn(e, n, i.transformTemplate);
@@ -2726,25 +2729,25 @@ class Cl extends Zs {
2726
2729
  return Pn(e, n, i);
2727
2730
  }
2728
2731
  }
2729
- const El = {
2732
+ const Rl = {
2730
2733
  offset: "stroke-dashoffset",
2731
2734
  array: "stroke-dasharray"
2732
- }, Rl = {
2735
+ }, Ll = {
2733
2736
  offset: "strokeDashoffset",
2734
2737
  array: "strokeDasharray"
2735
2738
  };
2736
- function Ll(t, e, n = 1, i = 0, s = !0) {
2739
+ function kl(t, e, n = 1, i = 0, s = !0) {
2737
2740
  t.pathLength = 1;
2738
- const o = s ? El : Rl;
2741
+ const o = s ? Rl : Ll;
2739
2742
  t[o.offset] = `${-i}`, t[o.array] = `${e} ${n}`;
2740
2743
  }
2741
- const kl = [
2744
+ const Bl = [
2742
2745
  "offsetDistance",
2743
2746
  "offsetPath",
2744
2747
  "offsetRotate",
2745
2748
  "offsetAnchor"
2746
2749
  ];
2747
- function sr(t, {
2750
+ function rr(t, {
2748
2751
  attrX: e,
2749
2752
  attrY: n,
2750
2753
  attrScale: i,
@@ -2761,11 +2764,11 @@ function sr(t, {
2761
2764
  t.attrs = t.style, t.style = {};
2762
2765
  const { attrs: h, style: f } = t;
2763
2766
  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 = c?.transformBox ?? "fill-box", delete h.transformBox);
2764
- for (const d of kl)
2767
+ for (const d of Bl)
2765
2768
  h[d] !== void 0 && (f[d] = h[d], delete h[d]);
2766
- e !== void 0 && (h.x = e), n !== void 0 && (h.y = n), i !== void 0 && (h.scale = i), s !== void 0 && Ll(h, s, o, r, !1);
2769
+ e !== void 0 && (h.x = e), n !== void 0 && (h.y = n), i !== void 0 && (h.scale = i), s !== void 0 && kl(h, s, o, r, !1);
2767
2770
  }
2768
- const rr = /* @__PURE__ */ new Set([
2771
+ const or = /* @__PURE__ */ new Set([
2769
2772
  "baseFrequency",
2770
2773
  "diffuseConstant",
2771
2774
  "kernelMatrix",
@@ -2789,13 +2792,13 @@ const rr = /* @__PURE__ */ new Set([
2789
2792
  "startOffset",
2790
2793
  "textLength",
2791
2794
  "lengthAdjust"
2792
- ]), or = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2793
- function Bl(t, e, n, i) {
2794
- nr(t, e, void 0, i);
2795
+ ]), ar = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2796
+ function Fl(t, e, n, i) {
2797
+ ir(t, e, void 0, i);
2795
2798
  for (const s in e.attrs)
2796
- t.setAttribute(rr.has(s) ? s : mn(s), e.attrs[s]);
2799
+ t.setAttribute(or.has(s) ? s : mn(s), e.attrs[s]);
2797
2800
  }
2798
- function ar(t, e, n) {
2801
+ function lr(t, e, n) {
2799
2802
  const i = Pn(t, e, n);
2800
2803
  for (const s in t)
2801
2804
  if (k(t[s]) || k(e[s])) {
@@ -2804,7 +2807,7 @@ function ar(t, e, n) {
2804
2807
  }
2805
2808
  return i;
2806
2809
  }
2807
- class Fl extends Zs {
2810
+ class Il extends Js {
2808
2811
  constructor() {
2809
2812
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = E;
2810
2813
  }
@@ -2813,40 +2816,40 @@ class Fl extends Zs {
2813
2816
  }
2814
2817
  readValueFromInstance(e, n) {
2815
2818
  if (Pt.has(n)) {
2816
- const i = Us(n);
2819
+ const i = Ws(n);
2817
2820
  return i && i.default || 0;
2818
2821
  }
2819
- return n = rr.has(n) ? n : mn(n), e.getAttribute(n);
2822
+ return n = or.has(n) ? n : mn(n), e.getAttribute(n);
2820
2823
  }
2821
2824
  scrapeMotionValuesFromProps(e, n, i) {
2822
- return ar(e, n, i);
2825
+ return lr(e, n, i);
2823
2826
  }
2824
2827
  build(e, n, i) {
2825
- sr(e, n, this.isSVGTag, i.transformTemplate, i.style);
2828
+ rr(e, n, this.isSVGTag, i.transformTemplate, i.style);
2826
2829
  }
2827
2830
  renderInstance(e, n, i, s) {
2828
- Bl(e, n, i, s);
2831
+ Fl(e, n, i, s);
2829
2832
  }
2830
2833
  mount(e) {
2831
- this.isSVGTag = or(e.tagName), super.mount(e);
2834
+ this.isSVGTag = ar(e.tagName), super.mount(e);
2832
2835
  }
2833
2836
  }
2834
- const Il = xn.length;
2835
- function lr(t) {
2837
+ const Ol = xn.length;
2838
+ function cr(t) {
2836
2839
  if (!t)
2837
2840
  return;
2838
2841
  if (!t.isControllingVariants) {
2839
- const n = t.parent ? lr(t.parent) || {} : {};
2842
+ const n = t.parent ? cr(t.parent) || {} : {};
2840
2843
  return t.props.initial !== void 0 && (n.initial = t.props.initial), n;
2841
2844
  }
2842
2845
  const e = {};
2843
- for (let n = 0; n < Il; n++) {
2846
+ for (let n = 0; n < Ol; n++) {
2844
2847
  const i = xn[n], s = t.props[i];
2845
2848
  (Lt(s) || s === !1) && (e[i] = s);
2846
2849
  }
2847
2850
  return e;
2848
2851
  }
2849
- function cr(t, e) {
2852
+ function ur(t, e) {
2850
2853
  if (!Array.isArray(e))
2851
2854
  return !1;
2852
2855
  const n = e.length;
@@ -2857,12 +2860,12 @@ function cr(t, e) {
2857
2860
  return !1;
2858
2861
  return !0;
2859
2862
  }
2860
- const Ol = [...Tn].reverse(), jl = Tn.length;
2861
- function Nl(t) {
2862
- return (e) => Promise.all(e.map(({ animation: n, options: i }) => Ba(t, n, i)));
2863
- }
2863
+ const jl = [...Tn].reverse(), Nl = Tn.length;
2864
2864
  function Ul(t) {
2865
- let e = Nl(t), n = oi(), i = !0, s = !1;
2865
+ return (e) => Promise.all(e.map(({ animation: n, options: i }) => Fa(t, n, i)));
2866
+ }
2867
+ function Wl(t) {
2868
+ let e = Ul(t), n = ai(), i = !0, s = !1;
2866
2869
  const o = (u) => (c, h) => {
2867
2870
  const f = gt(t, h, u === "exit" ? t.presenceContext?.custom : void 0);
2868
2871
  if (f) {
@@ -2875,10 +2878,10 @@ function Ul(t) {
2875
2878
  e = u(t);
2876
2879
  }
2877
2880
  function a(u) {
2878
- const { props: c } = t, h = lr(t.parent) || {}, f = [], d = /* @__PURE__ */ new Set();
2881
+ const { props: c } = t, h = cr(t.parent) || {}, f = [], d = /* @__PURE__ */ new Set();
2879
2882
  let m = {}, g = 1 / 0;
2880
- for (let v = 0; v < jl; v++) {
2881
- const T = Ol[v], p = n[T], P = c[T] !== void 0 ? c[T] : h[T], w = Lt(P), b = T === u ? p.isActive : null;
2883
+ for (let v = 0; v < Nl; v++) {
2884
+ const T = jl[v], p = n[T], P = c[T] !== void 0 ? c[T] : h[T], w = Lt(P), b = T === u ? p.isActive : null;
2882
2885
  b === !1 && (g = v);
2883
2886
  let M = P === h[T] && P !== c[T] && w;
2884
2887
  if (M && (i || s) && t.manuallyAnimateOnMount && (M = !1), p.protectedKeys = { ...m }, // If it isn't active and hasn't *just* been set as inactive
@@ -2893,14 +2896,14 @@ function Ul(t) {
2893
2896
  });
2894
2897
  continue;
2895
2898
  }
2896
- const S = Wl(p.prevProp, P);
2899
+ const S = Kl(p.prevProp, P);
2897
2900
  let B = S || // If we're making this variant active, we want to always make it active
2898
2901
  T === u && p.isActive && !M && w || // If we removed a higher-priority variant (i is in reverse order)
2899
2902
  v > g && w, j = !1;
2900
2903
  const oe = Array.isArray(P) ? P : [P];
2901
2904
  let St = oe.reduce(o(T), {});
2902
2905
  b === !1 && (St = {});
2903
- const { prevResolvedValues: An = {} } = p, kr = {
2906
+ const { prevResolvedValues: An = {} } = p, Br = {
2904
2907
  ...An,
2905
2908
  ...St
2906
2909
  }, Vn = (R) => {
@@ -2908,12 +2911,12 @@ function Ul(t) {
2908
2911
  const N = t.getValue(R);
2909
2912
  N && (N.liveStyle = !1);
2910
2913
  };
2911
- for (const R in kr) {
2914
+ for (const R in Br) {
2912
2915
  const N = St[R], et = An[R];
2913
2916
  if (m.hasOwnProperty(R))
2914
2917
  continue;
2915
2918
  let lt = !1;
2916
- Oe(N) && Oe(et) ? lt = !cr(N, et) : lt = N !== et, lt ? N != null ? Vn(R) : d.add(R) : N !== void 0 && d.has(R) ? Vn(R) : p.protectedKeys[R] = !0;
2919
+ Oe(N) && Oe(et) ? lt = !ur(N, et) : lt = N !== et, lt ? N != null ? Vn(R) : d.add(R) : N !== void 0 && d.has(R) ? Vn(R) : p.protectedKeys[R] = !0;
2917
2920
  }
2918
2921
  p.prevProp = P, p.prevResolvedValues = St, p.isActive && (m = { ...m, ...St }), (i || s) && t.blockInitialAnimation && (B = !1);
2919
2922
  const Dn = M && S;
@@ -2922,8 +2925,8 @@ function Ul(t) {
2922
2925
  if (typeof R == "string" && (i || s) && !Dn && t.manuallyAnimateOnMount && t.parent) {
2923
2926
  const { parent: et } = t, lt = gt(et, R);
2924
2927
  if (et.enteringChildren && lt) {
2925
- const { delayChildren: Br } = lt.transition || {};
2926
- N.delay = Rs(et.enteringChildren, t, Br);
2928
+ const { delayChildren: Fr } = lt.transition || {};
2929
+ N.delay = Ls(et.enteringChildren, t, Fr);
2927
2930
  }
2928
2931
  }
2929
2932
  return {
@@ -2961,12 +2964,12 @@ function Ul(t) {
2961
2964
  setAnimateFunction: r,
2962
2965
  getState: () => n,
2963
2966
  reset: () => {
2964
- n = oi(), s = !0;
2967
+ n = ai(), s = !0;
2965
2968
  }
2966
2969
  };
2967
2970
  }
2968
- function Wl(t, e) {
2969
- return typeof e == "string" ? e !== t : Array.isArray(e) ? !cr(e, t) : !1;
2971
+ function Kl(t, e) {
2972
+ return typeof e == "string" ? e !== t : Array.isArray(e) ? !ur(e, t) : !1;
2970
2973
  }
2971
2974
  function nt(t = !1) {
2972
2975
  return {
@@ -2976,7 +2979,7 @@ function nt(t = !1) {
2976
2979
  prevResolvedValues: {}
2977
2980
  };
2978
2981
  }
2979
- function oi() {
2982
+ function ai() {
2980
2983
  return {
2981
2984
  animate: nt(!0),
2982
2985
  whileInView: nt(),
@@ -2987,84 +2990,84 @@ function oi() {
2987
2990
  exit: nt()
2988
2991
  };
2989
2992
  }
2990
- function ai(t, e) {
2993
+ function li(t, e) {
2991
2994
  t.min = e.min, t.max = e.max;
2992
2995
  }
2993
2996
  function $(t, e) {
2994
- ai(t.x, e.x), ai(t.y, e.y);
2997
+ li(t.x, e.x), li(t.y, e.y);
2995
2998
  }
2996
- function li(t, e) {
2999
+ function ci(t, e) {
2997
3000
  t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
2998
3001
  }
2999
- const ur = 1e-4, Kl = 1 - ur, $l = 1 + ur, hr = 0.01, zl = 0 - hr, Hl = 0 + hr;
3002
+ const hr = 1e-4, $l = 1 - hr, zl = 1 + hr, fr = 0.01, Hl = 0 - fr, Gl = 0 + fr;
3000
3003
  function I(t) {
3001
3004
  return t.max - t.min;
3002
3005
  }
3003
- function Gl(t, e, n) {
3006
+ function _l(t, e, n) {
3004
3007
  return Math.abs(t - e) <= n;
3005
3008
  }
3006
- function ci(t, e, n, i = 0.5) {
3007
- t.origin = i, t.originPoint = D(e.min, e.max, t.origin), t.scale = I(n) / I(e), t.translate = D(n.min, n.max, t.origin) - t.originPoint, (t.scale >= Kl && t.scale <= $l || isNaN(t.scale)) && (t.scale = 1), (t.translate >= zl && t.translate <= Hl || isNaN(t.translate)) && (t.translate = 0);
3009
+ function ui(t, e, n, i = 0.5) {
3010
+ t.origin = i, t.originPoint = D(e.min, e.max, t.origin), t.scale = I(n) / I(e), t.translate = D(n.min, n.max, t.origin) - t.originPoint, (t.scale >= $l && t.scale <= zl || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Hl && t.translate <= Gl || isNaN(t.translate)) && (t.translate = 0);
3008
3011
  }
3009
3012
  function Dt(t, e, n, i) {
3010
- ci(t.x, e.x, n.x, i ? i.originX : void 0), ci(t.y, e.y, n.y, i ? i.originY : void 0);
3013
+ ui(t.x, e.x, n.x, i ? i.originX : void 0), ui(t.y, e.y, n.y, i ? i.originY : void 0);
3011
3014
  }
3012
- function ui(t, e, n) {
3015
+ function hi(t, e, n) {
3013
3016
  t.min = n.min + e.min, t.max = t.min + I(e);
3014
3017
  }
3015
- function _l(t, e, n) {
3016
- ui(t.x, e.x, n.x), ui(t.y, e.y, n.y);
3018
+ function Xl(t, e, n) {
3019
+ hi(t.x, e.x, n.x), hi(t.y, e.y, n.y);
3017
3020
  }
3018
- function hi(t, e, n) {
3021
+ function fi(t, e, n) {
3019
3022
  t.min = e.min - n.min, t.max = t.min + I(e);
3020
3023
  }
3021
3024
  function te(t, e, n) {
3022
- hi(t.x, e.x, n.x), hi(t.y, e.y, n.y);
3025
+ fi(t.x, e.x, n.x), fi(t.y, e.y, n.y);
3023
3026
  }
3024
- function fi(t, e, n, i, s) {
3027
+ function di(t, e, n, i, s) {
3025
3028
  return t -= e, t = Qt(t, 1 / n, i), s !== void 0 && (t = Qt(t, 1 / s, i)), t;
3026
3029
  }
3027
- function Xl(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
3030
+ function Yl(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
3028
3031
  if (_.test(e) && (e = parseFloat(e), e = D(r.min, r.max, e / 100) - r.min), typeof e != "number")
3029
3032
  return;
3030
3033
  let a = D(o.min, o.max, i);
3031
- t === o && (a -= e), t.min = fi(t.min, e, n, a, s), t.max = fi(t.max, e, n, a, s);
3034
+ t === o && (a -= e), t.min = di(t.min, e, n, a, s), t.max = di(t.max, e, n, a, s);
3032
3035
  }
3033
- function di(t, e, [n, i, s], o, r) {
3034
- Xl(t, e[n], e[i], e[s], e.scale, o, r);
3036
+ function mi(t, e, [n, i, s], o, r) {
3037
+ Yl(t, e[n], e[i], e[s], e.scale, o, r);
3035
3038
  }
3036
- const Yl = ["x", "scaleX", "originX"], ql = ["y", "scaleY", "originY"];
3037
- function mi(t, e, n, i) {
3038
- di(t.x, e, Yl, n ? n.x : void 0, i ? i.x : void 0), di(t.y, e, ql, n ? n.y : void 0, i ? i.y : void 0);
3039
+ const ql = ["x", "scaleX", "originX"], Zl = ["y", "scaleY", "originY"];
3040
+ function pi(t, e, n, i) {
3041
+ mi(t.x, e, ql, n ? n.x : void 0, i ? i.x : void 0), mi(t.y, e, Zl, n ? n.y : void 0, i ? i.y : void 0);
3039
3042
  }
3040
- function pi(t) {
3043
+ function gi(t) {
3041
3044
  return t.translate === 0 && t.scale === 1;
3042
3045
  }
3043
- function fr(t) {
3044
- return pi(t.x) && pi(t.y);
3046
+ function dr(t) {
3047
+ return gi(t.x) && gi(t.y);
3045
3048
  }
3046
- function gi(t, e) {
3049
+ function yi(t, e) {
3047
3050
  return t.min === e.min && t.max === e.max;
3048
3051
  }
3049
- function Zl(t, e) {
3050
- return gi(t.x, e.x) && gi(t.y, e.y);
3052
+ function Jl(t, e) {
3053
+ return yi(t.x, e.x) && yi(t.y, e.y);
3051
3054
  }
3052
- function yi(t, e) {
3055
+ function vi(t, e) {
3053
3056
  return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
3054
3057
  }
3055
- function dr(t, e) {
3056
- return yi(t.x, e.x) && yi(t.y, e.y);
3058
+ function mr(t, e) {
3059
+ return vi(t.x, e.x) && vi(t.y, e.y);
3057
3060
  }
3058
- function vi(t) {
3061
+ function Ti(t) {
3059
3062
  return I(t.x) / I(t.y);
3060
3063
  }
3061
- function Ti(t, e) {
3064
+ function xi(t, e) {
3062
3065
  return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
3063
3066
  }
3064
3067
  function G(t) {
3065
3068
  return [t("x"), t("y")];
3066
3069
  }
3067
- function Jl(t, e, n) {
3070
+ function Ql(t, e, n) {
3068
3071
  let i = "";
3069
3072
  const s = t.x.translate / e.x, o = t.y.translate / e.y, r = n?.z || 0;
3070
3073
  if ((s || o || r) && (i = `translate3d(${s}px, ${o}px, ${r}px) `), (e.x !== 1 || e.y !== 1) && (i += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
@@ -3074,34 +3077,34 @@ function Jl(t, e, n) {
3074
3077
  const a = t.x.scale * e.x, l = t.y.scale * e.y;
3075
3078
  return (a !== 1 || l !== 1) && (i += `scale(${a}, ${l})`), i || "none";
3076
3079
  }
3077
- const mr = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Ql = mr.length, xi = (t) => typeof t == "string" ? parseFloat(t) : t, wi = (t) => typeof t == "number" || y.test(t);
3078
- function tc(t, e, n, i, s, o) {
3079
- s ? (t.opacity = D(0, n.opacity ?? 1, ec(i)), t.opacityExit = D(e.opacity ?? 1, 0, nc(i))) : o && (t.opacity = D(e.opacity ?? 1, n.opacity ?? 1, i));
3080
- for (let r = 0; r < Ql; r++) {
3081
- const a = `border${mr[r]}Radius`;
3082
- let l = Pi(e, a), u = Pi(n, a);
3080
+ const pr = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], tc = pr.length, wi = (t) => typeof t == "string" ? parseFloat(t) : t, Pi = (t) => typeof t == "number" || y.test(t);
3081
+ function ec(t, e, n, i, s, o) {
3082
+ s ? (t.opacity = D(0, n.opacity ?? 1, nc(i)), t.opacityExit = D(e.opacity ?? 1, 0, ic(i))) : o && (t.opacity = D(e.opacity ?? 1, n.opacity ?? 1, i));
3083
+ for (let r = 0; r < tc; r++) {
3084
+ const a = `border${pr[r]}Radius`;
3085
+ let l = Si(e, a), u = Si(n, a);
3083
3086
  if (l === void 0 && u === void 0)
3084
3087
  continue;
3085
- l || (l = 0), u || (u = 0), l === 0 || u === 0 || wi(l) === wi(u) ? (t[a] = Math.max(D(xi(l), xi(u), i), 0), (_.test(u) || _.test(l)) && (t[a] += "%")) : t[a] = u;
3088
+ l || (l = 0), u || (u = 0), l === 0 || u === 0 || Pi(l) === Pi(u) ? (t[a] = Math.max(D(wi(l), wi(u), i), 0), (_.test(u) || _.test(l)) && (t[a] += "%")) : t[a] = u;
3086
3089
  }
3087
3090
  (e.rotate || n.rotate) && (t.rotate = D(e.rotate || 0, n.rotate || 0, i));
3088
3091
  }
3089
- function Pi(t, e) {
3092
+ function Si(t, e) {
3090
3093
  return t[e] !== void 0 ? t[e] : t.borderRadius;
3091
3094
  }
3092
- const ec = /* @__PURE__ */ pr(0, 0.5, os), nc = /* @__PURE__ */ pr(0.5, 0.95, W);
3093
- function pr(t, e, n) {
3095
+ const nc = /* @__PURE__ */ gr(0, 0.5, as), ic = /* @__PURE__ */ gr(0.5, 0.95, W);
3096
+ function gr(t, e, n) {
3094
3097
  return (i) => i < t ? 0 : i > e ? 1 : n(/* @__PURE__ */ Ct(t, e, i));
3095
3098
  }
3096
- function ic(t, e, n) {
3099
+ function sc(t, e, n) {
3097
3100
  const i = k(t) ? t : yt(t);
3098
3101
  return i.start(fn("", i, e, n)), i.animation;
3099
3102
  }
3100
3103
  function kt(t, e, n, i = { passive: !0 }) {
3101
3104
  return t.addEventListener(e, n, i), () => t.removeEventListener(e, n);
3102
3105
  }
3103
- const sc = (t, e) => t.depth - e.depth;
3104
- class rc {
3106
+ const rc = (t, e) => t.depth - e.depth;
3107
+ class oc {
3105
3108
  constructor() {
3106
3109
  this.children = [], this.isDirty = !1;
3107
3110
  }
@@ -3112,10 +3115,10 @@ class rc {
3112
3115
  Xt(this.children, e), this.isDirty = !0;
3113
3116
  }
3114
3117
  forEach(e) {
3115
- this.isDirty && this.children.sort(sc), this.isDirty = !1, this.children.forEach(e);
3118
+ this.isDirty && this.children.sort(rc), this.isDirty = !1, this.children.forEach(e);
3116
3119
  }
3117
3120
  }
3118
- function oc(t, e) {
3121
+ function ac(t, e) {
3119
3122
  const n = F.now(), i = ({ timestamp: s }) => {
3120
3123
  const o = s - n;
3121
3124
  o >= e && (Q(i), t(o - e));
@@ -3125,7 +3128,7 @@ function oc(t, e) {
3125
3128
  function Gt(t) {
3126
3129
  return k(t) ? t.get() : t;
3127
3130
  }
3128
- class ac {
3131
+ class lc {
3129
3132
  constructor() {
3130
3133
  this.members = [];
3131
3134
  }
@@ -3185,37 +3188,37 @@ const _t = {
3185
3188
  * update will be given a `data-projection-id` attribute.
3186
3189
  */
3187
3190
  hasEverUpdated: !1
3188
- }, pe = ["", "X", "Y", "Z"], lc = 1e3;
3189
- let cc = 0;
3191
+ }, pe = ["", "X", "Y", "Z"], cc = 1e3;
3192
+ let uc = 0;
3190
3193
  function ge(t, e, n, i) {
3191
3194
  const { latestValues: s } = e;
3192
3195
  s[t] && (n[t] = s[t], e.setStaticValue(t, 0), i && (i[t] = 0));
3193
3196
  }
3194
- function gr(t) {
3197
+ function yr(t) {
3195
3198
  if (t.hasCheckedOptimisedAppear = !0, t.root === t)
3196
3199
  return;
3197
3200
  const { visualElement: e } = t.options;
3198
3201
  if (!e)
3199
3202
  return;
3200
- const n = Is(e);
3203
+ const n = Os(e);
3201
3204
  if (window.MotionHasOptimisedAnimation(n, "transform")) {
3202
3205
  const { layout: s, layoutId: o } = t.options;
3203
3206
  window.MotionCancelOptimisedAnimation(n, "transform", A, !(s || o));
3204
3207
  }
3205
3208
  const { parent: i } = t;
3206
- i && !i.hasCheckedOptimisedAppear && gr(i);
3209
+ i && !i.hasCheckedOptimisedAppear && yr(i);
3207
3210
  }
3208
- function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: s }) {
3211
+ function vr({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: s }) {
3209
3212
  return class {
3210
3213
  constructor(r = {}, a = e?.()) {
3211
- this.id = cc++, 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 = () => {
3214
+ this.id = uc++, 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 = () => {
3212
3215
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
3213
3216
  }, this.updateProjection = () => {
3214
- this.projectionUpdateScheduled = !1, this.nodes.forEach(fc), this.nodes.forEach(gc), this.nodes.forEach(yc), this.nodes.forEach(dc);
3217
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(dc), this.nodes.forEach(yc), this.nodes.forEach(vc), this.nodes.forEach(mc);
3215
3218
  }, 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;
3216
3219
  for (let l = 0; l < this.path.length; l++)
3217
3220
  this.path[l].shouldResetTransform = !0;
3218
- this.root === this && (this.nodes = new rc());
3221
+ this.root === this && (this.nodes = new oc());
3219
3222
  }
3220
3223
  addEventListener(r, a) {
3221
3224
  return this.eventHandlers.has(r) || this.eventHandlers.set(r, new Ze()), this.eventHandlers.get(r).add(a);
@@ -3233,7 +3236,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3233
3236
  mount(r) {
3234
3237
  if (this.instance)
3235
3238
  return;
3236
- this.isSVG = vn(r) && !hl(r), this.instance = r;
3239
+ this.isSVG = vn(r) && !fl(r), this.instance = r;
3237
3240
  const { layoutId: a, layout: l, visualElement: u } = this.options;
3238
3241
  if (u && !u.current && u.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || a) && (this.isLayoutDirty = !0), t) {
3239
3242
  let c, h = 0;
@@ -3242,7 +3245,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3242
3245
  h = window.innerWidth;
3243
3246
  }), t(r, () => {
3244
3247
  const d = window.innerWidth;
3245
- d !== h && (h = d, this.root.updateBlockedByResize = !0, c && c(), c = oc(f, 250), _t.hasAnimatedSinceResize && (_t.hasAnimatedSinceResize = !1, this.nodes.forEach(Ai)));
3248
+ d !== h && (h = d, this.root.updateBlockedByResize = !0, c && c(), c = ac(f, 250), _t.hasAnimatedSinceResize && (_t.hasAnimatedSinceResize = !1, this.nodes.forEach(Vi)));
3246
3249
  });
3247
3250
  }
3248
3251
  a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && u && (a || l) && this.addEventListener("didUpdate", ({ delta: c, hasLayoutChanged: h, hasRelativeLayoutChanged: f, layout: d }) => {
@@ -3250,7 +3253,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3250
3253
  this.target = void 0, this.relativeTarget = void 0;
3251
3254
  return;
3252
3255
  }
3253
- const m = this.options.transition || u.getDefaultTransition() || Pc, { onLayoutAnimationStart: g, onLayoutAnimationComplete: x } = u.getProps(), v = !this.targetLayout || !dr(this.targetLayout, d), T = !h && f;
3256
+ const m = this.options.transition || u.getDefaultTransition() || Sc, { onLayoutAnimationStart: g, onLayoutAnimationComplete: x } = u.getProps(), v = !this.targetLayout || !mr(this.targetLayout, d), T = !h && f;
3254
3257
  if (this.options.layoutRoot || this.resumeFrom || T || h && (v || !this.currentAnimation)) {
3255
3258
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
3256
3259
  const p = {
@@ -3260,7 +3263,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3260
3263
  };
3261
3264
  (u.shouldReduceMotion || this.options.layoutRoot) && (p.delay = 0, p.type = !1), this.startAnimation(p), this.setAnimationOrigin(c, T);
3262
3265
  } else
3263
- h || Ai(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
3266
+ h || Vi(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
3264
3267
  this.targetLayout = d;
3265
3268
  });
3266
3269
  }
@@ -3284,7 +3287,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3284
3287
  }
3285
3288
  // Note: currently only running on root node
3286
3289
  startUpdate() {
3287
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(vc), this.animationId++);
3290
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Tc), this.animationId++);
3288
3291
  }
3289
3292
  getTransformTemplate() {
3290
3293
  const { visualElement: r } = this.options;
@@ -3295,7 +3298,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3295
3298
  this.options.onExitComplete && this.options.onExitComplete();
3296
3299
  return;
3297
3300
  }
3298
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && gr(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
3301
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && yr(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
3299
3302
  return;
3300
3303
  this.isLayoutDirty = !0;
3301
3304
  for (let c = 0; c < this.path.length; c++) {
@@ -3310,14 +3313,14 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3310
3313
  }
3311
3314
  update() {
3312
3315
  if (this.updateScheduled = !1, this.isUpdateBlocked()) {
3313
- this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Si);
3316
+ this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(bi);
3314
3317
  return;
3315
3318
  }
3316
3319
  if (this.animationId <= this.animationCommitId) {
3317
- this.nodes.forEach(bi);
3320
+ this.nodes.forEach(Ai);
3318
3321
  return;
3319
3322
  }
3320
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(pc), this.nodes.forEach(uc), this.nodes.forEach(hc)) : this.nodes.forEach(bi), this.clearAllSnapshots();
3323
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(gc), this.nodes.forEach(hc), this.nodes.forEach(fc)) : this.nodes.forEach(Ai), this.clearAllSnapshots();
3321
3324
  const a = F.now();
3322
3325
  L.delta = X(0, 1e3 / 60, a - L.timestamp), L.timestamp = a, L.isProcessing = !0, ae.update.process(L), ae.preRender.process(L), ae.render.process(L), L.isProcessing = !1;
3323
3326
  }
@@ -3325,7 +3328,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3325
3328
  this.updateScheduled || (this.updateScheduled = !0, gn.read(this.scheduleUpdate));
3326
3329
  }
3327
3330
  clearAllSnapshots() {
3328
- this.nodes.forEach(mc), this.sharedNodes.forEach(Tc);
3331
+ this.nodes.forEach(pc), this.sharedNodes.forEach(xc);
3329
3332
  }
3330
3333
  scheduleUpdateProjection() {
3331
3334
  this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, A.preRender(this.updateProjection, !1, !0));
@@ -3368,13 +3371,13 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3368
3371
  resetTransform() {
3369
3372
  if (!s)
3370
3373
  return;
3371
- const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !fr(this.projectionDelta), l = this.getTransformTemplate(), u = l ? l(this.latestValues, "") : void 0, c = u !== this.prevTransformTemplateValue;
3374
+ const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !dr(this.projectionDelta), l = this.getTransformTemplate(), u = l ? l(this.latestValues, "") : void 0, c = u !== this.prevTransformTemplateValue;
3372
3375
  r && this.instance && (a || it(this.latestValues) || c) && (s(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
3373
3376
  }
3374
3377
  measure(r = !0) {
3375
3378
  const a = this.measurePageBox();
3376
3379
  let l = this.removeElementScroll(a);
3377
- return r && (l = this.removeTransform(l)), Sc(l), {
3380
+ return r && (l = this.removeTransform(l)), bc(l), {
3378
3381
  animationId: this.root.animationId,
3379
3382
  measuredBox: a,
3380
3383
  layoutBox: l,
@@ -3387,7 +3390,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3387
3390
  if (!r)
3388
3391
  return E();
3389
3392
  const a = r.measureViewportBox();
3390
- if (!(this.scroll?.wasRoot || this.path.some(bc))) {
3393
+ if (!(this.scroll?.wasRoot || this.path.some(Ac))) {
3391
3394
  const { scroll: u } = this.root;
3392
3395
  u && (mt(a.x, u.offset.x), mt(a.y, u.offset.y));
3393
3396
  }
@@ -3424,9 +3427,9 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3424
3427
  continue;
3425
3428
  $e(u.latestValues) && u.updateSnapshot();
3426
3429
  const c = E(), h = u.measurePageBox();
3427
- $(c, h), mi(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
3430
+ $(c, h), pi(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
3428
3431
  }
3429
- return it(this.latestValues) && mi(a, this.latestValues), a;
3432
+ return it(this.latestValues) && pi(a, this.latestValues), a;
3430
3433
  }
3431
3434
  setTargetDelta(r) {
3432
3435
  this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -3455,10 +3458,10 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3455
3458
  return;
3456
3459
  this.resolvedRelativeTargetAt = L.timestamp;
3457
3460
  const f = this.getClosestProjectingParent();
3458
- 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(), _l(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));
3461
+ 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(), Xl(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : $(this.target, this.layout.layoutBox), er(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));
3459
3462
  }
3460
3463
  getClosestProjectingParent() {
3461
- if (!(!this.parent || $e(this.parent.latestValues) || Qs(this.parent.latestValues)))
3464
+ if (!(!this.parent || $e(this.parent.latestValues) || tr(this.parent.latestValues)))
3462
3465
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
3463
3466
  }
3464
3467
  isProjecting() {
@@ -3480,13 +3483,13 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3480
3483
  return;
3481
3484
  $(this.layoutCorrected, this.layout.layoutBox);
3482
3485
  const h = this.treeScale.x, f = this.treeScale.y;
3483
- Pl(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());
3486
+ Sl(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());
3484
3487
  const { target: d } = r;
3485
3488
  if (!d) {
3486
3489
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
3487
3490
  return;
3488
3491
  }
3489
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (li(this.prevProjectionDelta.x, this.projectionDelta.x), li(this.prevProjectionDelta.y, this.projectionDelta.y)), Dt(this.projectionDelta, this.layoutCorrected, d, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== f || !Ti(this.projectionDelta.x, this.prevProjectionDelta.x) || !Ti(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", d));
3492
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (ci(this.prevProjectionDelta.x, this.projectionDelta.x), ci(this.prevProjectionDelta.y, this.projectionDelta.y)), Dt(this.projectionDelta, this.layoutCorrected, d, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== f || !xi(this.projectionDelta.x, this.prevProjectionDelta.x) || !xi(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", d));
3490
3493
  }
3491
3494
  hide() {
3492
3495
  this.isVisible = !1;
@@ -3507,17 +3510,17 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3507
3510
  setAnimationOrigin(r, a = !1) {
3508
3511
  const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, h = dt();
3509
3512
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
3510
- const f = E(), d = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, g = d !== m, x = this.getStack(), v = !x || x.members.length <= 1, T = !!(g && !v && this.options.crossfade === !0 && !this.path.some(wc));
3513
+ const f = E(), d = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, g = d !== m, x = this.getStack(), v = !x || x.members.length <= 1, T = !!(g && !v && this.options.crossfade === !0 && !this.path.some(Pc));
3511
3514
  this.animationProgress = 0;
3512
3515
  let p;
3513
3516
  this.mixTargetDelta = (P) => {
3514
3517
  const w = P / 1e3;
3515
- Vi(h.x, r.x, w), Vi(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), xc(this.relativeTarget, this.relativeTargetOrigin, f, w), p && Zl(this.relativeTarget, p) && (this.isProjectionDirty = !1), p || (p = E()), $(p, this.relativeTarget)), g && (this.animationValues = c, tc(c, u, this.latestValues, w, T, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
3518
+ Di(h.x, r.x, w), Di(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), wc(this.relativeTarget, this.relativeTargetOrigin, f, w), p && Jl(this.relativeTarget, p) && (this.isProjectionDirty = !1), p || (p = E()), $(p, this.relativeTarget)), g && (this.animationValues = c, ec(c, u, this.latestValues, w, T, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
3516
3519
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
3517
3520
  }
3518
3521
  startAnimation(r) {
3519
3522
  this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (Q(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = A.update(() => {
3520
- _t.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = yt(0)), this.motionValue.jump(0, !1), this.currentAnimation = ic(this.motionValue, [0, 1e3], {
3523
+ _t.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = yt(0)), this.motionValue.jump(0, !1), this.currentAnimation = sc(this.motionValue, [0, 1e3], {
3521
3524
  ...r,
3522
3525
  velocity: 0,
3523
3526
  isSync: !0,
@@ -3538,13 +3541,13 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3538
3541
  r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
3539
3542
  }
3540
3543
  finishAnimation() {
3541
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(lc), this.currentAnimation.stop()), this.completeAnimation();
3544
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(cc), this.currentAnimation.stop()), this.completeAnimation();
3542
3545
  }
3543
3546
  applyTransformsToTarget() {
3544
3547
  const r = this.getLead();
3545
3548
  let { targetWithTransforms: a, target: l, layout: u, latestValues: c } = r;
3546
3549
  if (!(!a || !l || !u)) {
3547
- if (this !== r && this.layout && u && vr(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
3550
+ if (this !== r && this.layout && u && Tr(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
3548
3551
  l = this.target || E();
3549
3552
  const h = I(this.layout.layoutBox.x);
3550
3553
  l.x.min = r.target.x.min, l.x.max = l.x.min + h;
@@ -3555,7 +3558,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3555
3558
  }
3556
3559
  }
3557
3560
  registerSharedNode(r, a) {
3558
- this.sharedNodes.has(r) || this.sharedNodes.set(r, new ac()), this.sharedNodes.get(r).add(a);
3561
+ this.sharedNodes.has(r) || this.sharedNodes.set(r, new lc()), this.sharedNodes.get(r).add(a);
3559
3562
  const u = a.options.initialPromotionConfig;
3560
3563
  a.promote({
3561
3564
  transition: u ? u.transition : void 0,
@@ -3624,7 +3627,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3624
3627
  r.visibility = "";
3625
3628
  const c = u.animationValues || u.latestValues;
3626
3629
  this.applyTransformsToTarget();
3627
- let h = Jl(this.projectionDeltaWithTransform, this.treeScale, c);
3630
+ let h = Ql(this.projectionDeltaWithTransform, this.treeScale, c);
3628
3631
  l && (h = l(c, h)), r.transform = h;
3629
3632
  const { x: f, y: d } = this.projectionDelta;
3630
3633
  r.transformOrigin = `${f.origin * 100}% ${d.origin * 100}% 0`, u.animationValues ? r.opacity = u === this ? c.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : c.opacityExit : r.opacity = u === this ? c.opacity !== void 0 ? c.opacity : "" : c.opacityExit !== void 0 ? c.opacityExit : 0;
@@ -3646,21 +3649,21 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3646
3649
  }
3647
3650
  // Only run on root
3648
3651
  resetTree() {
3649
- this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach(Si), this.root.sharedNodes.clear();
3652
+ this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach(bi), this.root.sharedNodes.clear();
3650
3653
  }
3651
3654
  };
3652
3655
  }
3653
- function uc(t) {
3656
+ function hc(t) {
3654
3657
  t.updateLayout();
3655
3658
  }
3656
- function hc(t) {
3659
+ function fc(t) {
3657
3660
  const e = t.resumeFrom?.snapshot || t.snapshot;
3658
3661
  if (t.isLead() && t.layout && e && t.hasListeners("didUpdate")) {
3659
3662
  const { layoutBox: n, measuredBox: i } = t.layout, { animationType: s } = t.options, o = e.source !== t.layout.source;
3660
3663
  s === "size" ? G((c) => {
3661
3664
  const h = o ? e.measuredBox[c] : e.layoutBox[c], f = I(h);
3662
3665
  h.min = n[c].min, h.max = h.min + f;
3663
- }) : vr(s, e.layoutBox, n) && G((c) => {
3666
+ }) : Tr(s, e.layoutBox, n) && G((c) => {
3664
3667
  const h = o ? e.measuredBox[c] : e.layoutBox[c], f = I(n[c]);
3665
3668
  h.max = h.min + f, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[c].max = t.relativeTarget[c].min + f);
3666
3669
  });
@@ -3668,7 +3671,7 @@ function hc(t) {
3668
3671
  Dt(r, n, e.layoutBox);
3669
3672
  const a = dt();
3670
3673
  o ? Dt(a, t.applyTransform(i, !0), e.measuredBox) : Dt(a, n, e.layoutBox);
3671
- const l = !fr(r);
3674
+ const l = !dr(r);
3672
3675
  let u = !1;
3673
3676
  if (!t.resumeFrom) {
3674
3677
  const c = t.getClosestProjectingParent();
@@ -3678,7 +3681,7 @@ function hc(t) {
3678
3681
  const d = E();
3679
3682
  te(d, e.layoutBox, h.layoutBox);
3680
3683
  const m = E();
3681
- te(m, n, f.layoutBox), dr(d, m) || (u = !0), c.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = d, t.relativeParent = c);
3684
+ te(m, n, f.layoutBox), mr(d, m) || (u = !0), c.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = d, t.relativeParent = c);
3682
3685
  }
3683
3686
  }
3684
3687
  }
@@ -3696,69 +3699,69 @@ function hc(t) {
3696
3699
  }
3697
3700
  t.options.transition = void 0;
3698
3701
  }
3699
- function fc(t) {
3702
+ function dc(t) {
3700
3703
  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));
3701
3704
  }
3702
- function dc(t) {
3705
+ function mc(t) {
3703
3706
  t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
3704
3707
  }
3705
- function mc(t) {
3708
+ function pc(t) {
3706
3709
  t.clearSnapshot();
3707
3710
  }
3708
- function Si(t) {
3711
+ function bi(t) {
3709
3712
  t.clearMeasurements();
3710
3713
  }
3711
- function bi(t) {
3714
+ function Ai(t) {
3712
3715
  t.isLayoutDirty = !1;
3713
3716
  }
3714
- function pc(t) {
3717
+ function gc(t) {
3715
3718
  const { visualElement: e } = t.options;
3716
3719
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
3717
3720
  }
3718
- function Ai(t) {
3721
+ function Vi(t) {
3719
3722
  t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
3720
3723
  }
3721
- function gc(t) {
3724
+ function yc(t) {
3722
3725
  t.resolveTargetDelta();
3723
3726
  }
3724
- function yc(t) {
3727
+ function vc(t) {
3725
3728
  t.calcProjection();
3726
3729
  }
3727
- function vc(t) {
3730
+ function Tc(t) {
3728
3731
  t.resetSkewAndRotation();
3729
3732
  }
3730
- function Tc(t) {
3733
+ function xc(t) {
3731
3734
  t.removeLeadSnapshot();
3732
3735
  }
3733
- function Vi(t, e, n) {
3736
+ function Di(t, e, n) {
3734
3737
  t.translate = D(e.translate, 0, n), t.scale = D(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
3735
3738
  }
3736
- function Di(t, e, n, i) {
3739
+ function Mi(t, e, n, i) {
3737
3740
  t.min = D(e.min, n.min, i), t.max = D(e.max, n.max, i);
3738
3741
  }
3739
- function xc(t, e, n, i) {
3740
- Di(t.x, e.x, n.x, i), Di(t.y, e.y, n.y, i);
3742
+ function wc(t, e, n, i) {
3743
+ Mi(t.x, e.x, n.x, i), Mi(t.y, e.y, n.y, i);
3741
3744
  }
3742
- function wc(t) {
3745
+ function Pc(t) {
3743
3746
  return t.animationValues && t.animationValues.opacityExit !== void 0;
3744
3747
  }
3745
- const Pc = {
3748
+ const Sc = {
3746
3749
  duration: 0.45,
3747
3750
  ease: [0.4, 0, 0.1, 1]
3748
- }, Mi = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ci = Mi("applewebkit/") && !Mi("chrome/") ? Math.round : W;
3749
- function Ei(t) {
3750
- t.min = Ci(t.min), t.max = Ci(t.max);
3751
+ }, Ci = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ei = Ci("applewebkit/") && !Ci("chrome/") ? Math.round : W;
3752
+ function Ri(t) {
3753
+ t.min = Ei(t.min), t.max = Ei(t.max);
3751
3754
  }
3752
- function Sc(t) {
3753
- Ei(t.x), Ei(t.y);
3755
+ function bc(t) {
3756
+ Ri(t.x), Ri(t.y);
3754
3757
  }
3755
- function vr(t, e, n) {
3756
- return t === "position" || t === "preserve-aspect" && !Gl(vi(e), vi(n), 0.2);
3758
+ function Tr(t, e, n) {
3759
+ return t === "position" || t === "preserve-aspect" && !_l(Ti(e), Ti(n), 0.2);
3757
3760
  }
3758
- function bc(t) {
3761
+ function Ac(t) {
3759
3762
  return t !== t.root && t.scroll?.wasRoot;
3760
3763
  }
3761
- const Ac = yr({
3764
+ const Vc = vr({
3762
3765
  attachResizeListener: (t, e) => kt(t, "resize", e),
3763
3766
  measureScroll: () => ({
3764
3767
  x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
@@ -3767,14 +3770,14 @@ const Ac = yr({
3767
3770
  checkIsScrollRoot: () => !0
3768
3771
  }), ye = {
3769
3772
  current: void 0
3770
- }, Tr = yr({
3773
+ }, xr = vr({
3771
3774
  measureScroll: (t) => ({
3772
3775
  x: t.scrollLeft,
3773
3776
  y: t.scrollTop
3774
3777
  }),
3775
3778
  defaultParent: () => {
3776
3779
  if (!ye.current) {
3777
- const t = new Ac({});
3780
+ const t = new Vc({});
3778
3781
  t.mount(window), t.setOptions({ layoutScroll: !0 }), ye.current = t;
3779
3782
  }
3780
3783
  return ye.current;
@@ -3783,24 +3786,24 @@ const Ac = yr({
3783
3786
  t.style.transform = e !== void 0 ? e : "none";
3784
3787
  },
3785
3788
  checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
3786
- }), xr = vt({
3789
+ }), wr = vt({
3787
3790
  transformPagePoint: (t) => t,
3788
3791
  isStatic: !1,
3789
3792
  reducedMotion: "never"
3790
3793
  });
3791
- function Vc(t = !0) {
3794
+ function Dc(t = !0) {
3792
3795
  const e = O(Ye);
3793
3796
  if (e === null)
3794
3797
  return [!0, null];
3795
- const { isPresent: n, onExitComplete: i, register: s } = e, o = Ir();
3798
+ const { isPresent: n, onExitComplete: i, register: s } = e, o = Or();
3796
3799
  Xe(() => {
3797
3800
  if (t)
3798
3801
  return s(o);
3799
3802
  }, [t]);
3800
- const r = zi(() => t && i && i(o), [o, i, t]);
3803
+ const r = Hi(() => t && i && i(o), [o, i, t]);
3801
3804
  return !n && i ? [!1, r] : [!0];
3802
3805
  }
3803
- const wr = vt({ strict: !1 }), Ri = {
3806
+ const Pr = vt({ strict: !1 }), Li = {
3804
3807
  animation: [
3805
3808
  "animate",
3806
3809
  "variants",
@@ -3820,30 +3823,30 @@ const wr = vt({ strict: !1 }), Ri = {
3820
3823
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
3821
3824
  layout: ["layout", "layoutId"]
3822
3825
  };
3823
- let Li = !1;
3824
- function Dc() {
3825
- if (Li)
3826
+ let ki = !1;
3827
+ function Mc() {
3828
+ if (ki)
3826
3829
  return;
3827
3830
  const t = {};
3828
- for (const e in Ri)
3831
+ for (const e in Li)
3829
3832
  t[e] = {
3830
- isEnabled: (n) => Ri[e].some((i) => !!n[i])
3833
+ isEnabled: (n) => Li[e].some((i) => !!n[i])
3831
3834
  };
3832
- qs(t), Li = !0;
3835
+ Zs(t), ki = !0;
3833
3836
  }
3834
- function Pr() {
3835
- return Dc(), vl();
3837
+ function Sr() {
3838
+ return Mc(), Tl();
3836
3839
  }
3837
- function Mc(t) {
3838
- const e = Pr();
3840
+ function Cc(t) {
3841
+ const e = Sr();
3839
3842
  for (const n in t)
3840
3843
  e[n] = {
3841
3844
  ...e[n],
3842
3845
  ...t[n]
3843
3846
  };
3844
- qs(e);
3847
+ Zs(e);
3845
3848
  }
3846
- const Cc = /* @__PURE__ */ new Set([
3849
+ const Ec = /* @__PURE__ */ new Set([
3847
3850
  "animate",
3848
3851
  "exit",
3849
3852
  "variants",
@@ -3877,25 +3880,25 @@ const Cc = /* @__PURE__ */ new Set([
3877
3880
  "viewport"
3878
3881
  ]);
3879
3882
  function ee(t) {
3880
- return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Cc.has(t);
3883
+ return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Ec.has(t);
3881
3884
  }
3882
- let Sr = (t) => !ee(t);
3883
- function Ec(t) {
3884
- typeof t == "function" && (Sr = (e) => e.startsWith("on") ? !ee(e) : t(e));
3885
+ let br = (t) => !ee(t);
3886
+ function Rc(t) {
3887
+ typeof t == "function" && (br = (e) => e.startsWith("on") ? !ee(e) : t(e));
3885
3888
  }
3886
3889
  try {
3887
- Ec(require("@emotion/is-prop-valid").default);
3890
+ Rc(require("@emotion/is-prop-valid").default);
3888
3891
  } catch {
3889
3892
  }
3890
- function Rc(t, e, n) {
3893
+ function Lc(t, e, n) {
3891
3894
  const i = {};
3892
3895
  for (const s in t)
3893
- s === "values" && typeof t.values == "object" || (Sr(s) || n === !0 && ee(s) || !e && !ee(s) || // If trying to use native HTML drag events, forward drag listeners
3896
+ s === "values" && typeof t.values == "object" || (br(s) || n === !0 && ee(s) || !e && !ee(s) || // If trying to use native HTML drag events, forward drag listeners
3894
3897
  t.draggable && s.startsWith("onDrag")) && (i[s] = t[s]);
3895
3898
  return i;
3896
3899
  }
3897
3900
  const re = /* @__PURE__ */ vt({});
3898
- function Lc(t, e) {
3901
+ function kc(t, e) {
3899
3902
  if (se(t)) {
3900
3903
  const { initial: n, animate: i } = t;
3901
3904
  return {
@@ -3905,11 +3908,11 @@ function Lc(t, e) {
3905
3908
  }
3906
3909
  return t.inherit !== !1 ? e : {};
3907
3910
  }
3908
- function kc(t) {
3909
- const { initial: e, animate: n } = Lc(t, O(re));
3910
- return ne(() => ({ initial: e, animate: n }), [ki(e), ki(n)]);
3911
+ function Bc(t) {
3912
+ const { initial: e, animate: n } = kc(t, O(re));
3913
+ return ne(() => ({ initial: e, animate: n }), [Bi(e), Bi(n)]);
3911
3914
  }
3912
- function ki(t) {
3915
+ function Bi(t) {
3913
3916
  return Array.isArray(t) ? t.join(" ") : t;
3914
3917
  }
3915
3918
  const Sn = () => ({
@@ -3918,43 +3921,43 @@ const Sn = () => ({
3918
3921
  transformOrigin: {},
3919
3922
  vars: {}
3920
3923
  });
3921
- function br(t, e, n) {
3924
+ function Ar(t, e, n) {
3922
3925
  for (const i in e)
3923
- !k(e[i]) && !ir(i, n) && (t[i] = e[i]);
3926
+ !k(e[i]) && !sr(i, n) && (t[i] = e[i]);
3924
3927
  }
3925
- function Bc({ transformTemplate: t }, e) {
3928
+ function Fc({ transformTemplate: t }, e) {
3926
3929
  return ne(() => {
3927
3930
  const n = Sn();
3928
3931
  return wn(n, e, t), Object.assign({}, n.vars, n.style);
3929
3932
  }, [e]);
3930
3933
  }
3931
- function Fc(t, e) {
3934
+ function Ic(t, e) {
3932
3935
  const n = t.style || {}, i = {};
3933
- return br(i, n, t), Object.assign(i, Bc(t, e)), i;
3936
+ return Ar(i, n, t), Object.assign(i, Fc(t, e)), i;
3934
3937
  }
3935
- function Ic(t, e) {
3936
- const n = {}, i = Fc(t, e);
3938
+ function Oc(t, e) {
3939
+ const n = {}, i = Ic(t, e);
3937
3940
  return t.drag && t.dragListener !== !1 && (n.draggable = !1, i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = "none", i.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 = i, n;
3938
3941
  }
3939
- const Ar = () => ({
3942
+ const Vr = () => ({
3940
3943
  ...Sn(),
3941
3944
  attrs: {}
3942
3945
  });
3943
- function Oc(t, e, n, i) {
3946
+ function jc(t, e, n, i) {
3944
3947
  const s = ne(() => {
3945
- const o = Ar();
3946
- return sr(o, e, or(i), t.transformTemplate, t.style), {
3948
+ const o = Vr();
3949
+ return rr(o, e, ar(i), t.transformTemplate, t.style), {
3947
3950
  ...o.attrs,
3948
3951
  style: { ...o.style }
3949
3952
  };
3950
3953
  }, [e]);
3951
3954
  if (t.style) {
3952
3955
  const o = {};
3953
- br(o, t.style, t), s.style = { ...o, ...s.style };
3956
+ Ar(o, t.style, t), s.style = { ...o, ...s.style };
3954
3957
  }
3955
3958
  return s;
3956
3959
  }
3957
- const jc = [
3960
+ const Nc = [
3958
3961
  "animate",
3959
3962
  "circle",
3960
3963
  "defs",
@@ -3994,32 +3997,32 @@ function bn(t) {
3994
3997
  /**
3995
3998
  * If it's in our list of lowercase SVG tags, it's an SVG component
3996
3999
  */
3997
- !!(jc.indexOf(t) > -1 || /**
4000
+ !!(Nc.indexOf(t) > -1 || /**
3998
4001
  * If it contains a capital letter, it's an SVG component
3999
4002
  */
4000
4003
  /[A-Z]/u.test(t))
4001
4004
  )
4002
4005
  );
4003
4006
  }
4004
- function Nc(t, e, n, { latestValues: i }, s, o = !1, r) {
4005
- const l = (r ?? bn(t) ? Oc : Ic)(e, i, s, t), u = Rc(e, typeof t == "string", o), c = t !== Hi ? { ...u, ...l, ref: n } : {}, { children: h } = e, f = ne(() => k(h) ? h.get() : h, [h]);
4006
- return Or(t, {
4007
+ function Uc(t, e, n, { latestValues: i }, s, o = !1, r) {
4008
+ const l = (r ?? bn(t) ? jc : Oc)(e, i, s, t), u = Lc(e, typeof t == "string", o), c = t !== Gi ? { ...u, ...l, ref: n } : {}, { children: h } = e, f = ne(() => k(h) ? h.get() : h, [h]);
4009
+ return jr(t, {
4007
4010
  ...c,
4008
4011
  children: f
4009
4012
  });
4010
4013
  }
4011
- function Uc({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, i, s) {
4014
+ function Wc({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, i, s) {
4012
4015
  return {
4013
- latestValues: Wc(n, i, s, t),
4016
+ latestValues: Kc(n, i, s, t),
4014
4017
  renderState: e()
4015
4018
  };
4016
4019
  }
4017
- function Wc(t, e, n, i) {
4020
+ function Kc(t, e, n, i) {
4018
4021
  const s = {}, o = i(t, {});
4019
4022
  for (const f in o)
4020
4023
  s[f] = Gt(o[f]);
4021
4024
  let { initial: r, animate: a } = t;
4022
- const l = se(t), u = Xs(t);
4025
+ const l = se(t), u = Ys(t);
4023
4026
  e && u && !l && t.inherit !== !1 && (r === void 0 && (r = e.initial), a === void 0 && (a = e.animate));
4024
4027
  let c = n ? n.initial === !1 : !1;
4025
4028
  c = c || r === !1;
@@ -4045,24 +4048,24 @@ function Wc(t, e, n, i) {
4045
4048
  }
4046
4049
  return s;
4047
4050
  }
4048
- const Vr = (t) => (e, n) => {
4049
- const i = O(re), s = O(Ye), o = () => Uc(t, e, i, s);
4050
- return n ? o() : Wr(o);
4051
- }, Kc = /* @__PURE__ */ Vr({
4051
+ const Dr = (t) => (e, n) => {
4052
+ const i = O(re), s = O(Ye), o = () => Wc(t, e, i, s);
4053
+ return n ? o() : Kr(o);
4054
+ }, $c = /* @__PURE__ */ Dr({
4052
4055
  scrapeMotionValuesFromProps: Pn,
4053
4056
  createRenderState: Sn
4054
- }), $c = /* @__PURE__ */ Vr({
4055
- scrapeMotionValuesFromProps: ar,
4056
- createRenderState: Ar
4057
- }), zc = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
4058
- function Hc(t, e, n) {
4057
+ }), zc = /* @__PURE__ */ Dr({
4058
+ scrapeMotionValuesFromProps: lr,
4059
+ createRenderState: Vr
4060
+ }), Hc = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
4061
+ function Gc(t, e, n) {
4059
4062
  const i = st(n);
4060
- Gi(() => {
4063
+ _i(() => {
4061
4064
  i.current = n;
4062
4065
  });
4063
4066
  const s = st(null);
4064
- return zi((o) => {
4065
- o && t.onMount?.(o), e && (o ? e.mount(o) : e.unmount());
4067
+ return Hi((o) => {
4068
+ o && t.onMount?.(o);
4066
4069
  const r = i.current;
4067
4070
  if (typeof r == "function")
4068
4071
  if (o) {
@@ -4070,14 +4073,15 @@ function Hc(t, e, n) {
4070
4073
  typeof a == "function" && (s.current = a);
4071
4074
  } else s.current ? (s.current(), s.current = null) : r(o);
4072
4075
  else r && (r.current = o);
4076
+ e && (o ? e.mount(o) : e.unmount());
4073
4077
  }, [e]);
4074
4078
  }
4075
- const Dr = vt({});
4079
+ const Mr = vt({});
4076
4080
  function ct(t) {
4077
4081
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
4078
4082
  }
4079
- function Gc(t, e, n, i, s, o) {
4080
- const { visualElement: r } = O(re), a = O(wr), l = O(Ye), u = O(xr), c = u.reducedMotion, h = u.skipAnimations, f = st(null), d = st(!1);
4083
+ function _c(t, e, n, i, s, o) {
4084
+ const { visualElement: r } = O(re), a = O(Pr), l = O(Ye), u = O(wr), c = u.reducedMotion, h = u.skipAnimations, f = st(null), d = st(!1);
4081
4085
  i = i || a.renderer, !f.current && i && (f.current = i(t, {
4082
4086
  visualState: e,
4083
4087
  parent: r,
@@ -4088,14 +4092,14 @@ function Gc(t, e, n, i, s, o) {
4088
4092
  skipAnimations: h,
4089
4093
  isSVG: o
4090
4094
  }), d.current && f.current && (f.current.manuallyAnimateOnMount = !0));
4091
- const m = f.current, g = O(Dr);
4092
- m && !m.projection && s && (m.type === "html" || m.type === "svg") && _c(f.current, n, s, g);
4095
+ const m = f.current, g = O(Mr);
4096
+ m && !m.projection && s && (m.type === "html" || m.type === "svg") && Xc(f.current, n, s, g);
4093
4097
  const x = st(!1);
4094
- Gi(() => {
4098
+ _i(() => {
4095
4099
  m && x.current && m.update(n, l);
4096
4100
  });
4097
- const v = n[Fs], T = st(!!v && typeof window < "u" && !window.MotionHandoffIsComplete?.(v) && window.MotionHasOptimisedAnimation?.(v));
4098
- return $r(() => {
4101
+ const v = n[Is], T = st(!!v && typeof window < "u" && !window.MotionHandoffIsComplete?.(v) && window.MotionHasOptimisedAnimation?.(v));
4102
+ return zr(() => {
4099
4103
  d.current = !0, m && (x.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), T.current && m.animationState && m.animationState.animateChanges());
4100
4104
  }), Xe(() => {
4101
4105
  m && (!T.current && m.animationState && m.animationState.animateChanges(), T.current && (queueMicrotask(() => {
@@ -4103,9 +4107,9 @@ function Gc(t, e, n, i, s, o) {
4103
4107
  }), T.current = !1), m.enteringChildren = void 0);
4104
4108
  }), m;
4105
4109
  }
4106
- function _c(t, e, n, i) {
4110
+ function Xc(t, e, n, i) {
4107
4111
  const { layoutId: s, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: u, layoutCrossfade: c } = e;
4108
- t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : Mr(t.parent)), t.projection.setOptions({
4112
+ t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : Cr(t.parent)), t.projection.setOptions({
4109
4113
  layoutId: s,
4110
4114
  layout: o,
4111
4115
  alwaysMeasureLayout: !!r || a && ct(a),
@@ -4124,44 +4128,44 @@ function _c(t, e, n, i) {
4124
4128
  layoutRoot: u
4125
4129
  });
4126
4130
  }
4127
- function Mr(t) {
4131
+ function Cr(t) {
4128
4132
  if (t)
4129
- return t.options.allowProjection !== !1 ? t.projection : Mr(t.parent);
4133
+ return t.options.allowProjection !== !1 ? t.projection : Cr(t.parent);
4130
4134
  }
4131
4135
  function ve(t, { forwardMotionProps: e = !1, type: n } = {}, i, s) {
4132
- i && Mc(i);
4133
- const o = n ? n === "svg" : bn(t), r = o ? $c : Kc;
4136
+ i && Cc(i);
4137
+ const o = n ? n === "svg" : bn(t), r = o ? zc : $c;
4134
4138
  function a(u, c) {
4135
4139
  let h;
4136
4140
  const f = {
4137
- ...O(xr),
4141
+ ...O(wr),
4138
4142
  ...u,
4139
- layoutId: Xc(u)
4140
- }, { isStatic: d } = f, m = kc(u), g = r(u, d);
4143
+ layoutId: Yc(u)
4144
+ }, { isStatic: d } = f, m = Bc(u), g = r(u, d);
4141
4145
  if (!d && typeof window < "u") {
4142
- Yc(f, i);
4143
- const x = qc(f);
4144
- h = x.MeasureLayout, m.visualElement = Gc(t, g, f, s, x.ProjectionNode, o);
4146
+ qc(f, i);
4147
+ const x = Zc(f);
4148
+ h = x.MeasureLayout, m.visualElement = _c(t, g, f, s, x.ProjectionNode, o);
4145
4149
  }
4146
- return Ur(re.Provider, { value: m, children: [h && m.visualElement ? _i(h, { visualElement: m.visualElement, ...f }) : null, Nc(t, u, Hc(g, m.visualElement, c), g, d, e, o)] });
4150
+ return Wr(re.Provider, { value: m, children: [h && m.visualElement ? Xi(h, { visualElement: m.visualElement, ...f }) : null, Uc(t, u, Gc(g, m.visualElement, c), g, d, e, o)] });
4147
4151
  }
4148
4152
  a.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
4149
- const l = jr(a);
4150
- return l[zc] = t, l;
4153
+ const l = Nr(a);
4154
+ return l[Hc] = t, l;
4151
4155
  }
4152
- function Xc({ layoutId: t }) {
4153
- const e = O(Xi).id;
4156
+ function Yc({ layoutId: t }) {
4157
+ const e = O(Yi).id;
4154
4158
  return e && t !== void 0 ? e + "-" + t : t;
4155
4159
  }
4156
- function Yc(t, e) {
4157
- const n = O(wr).strict;
4160
+ function qc(t, e) {
4161
+ const n = O(Pr).strict;
4158
4162
  if (process.env.NODE_ENV !== "production" && e && n) {
4159
4163
  const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
4160
4164
  t.ignoreStrict ? Tt(!1, i, "lazy-strict-mode") : Y(!1, i, "lazy-strict-mode");
4161
4165
  }
4162
4166
  }
4163
- function qc(t) {
4164
- const e = Pr(), { drag: n, layout: i } = e;
4167
+ function Zc(t) {
4168
+ const e = Sr(), { drag: n, layout: i } = e;
4165
4169
  if (!n && !i)
4166
4170
  return {};
4167
4171
  const s = { ...n, ...i };
@@ -4170,7 +4174,7 @@ function qc(t) {
4170
4174
  ProjectionNode: s.ProjectionNode
4171
4175
  };
4172
4176
  }
4173
- function Zc(t, e) {
4177
+ function Jc(t, e) {
4174
4178
  if (typeof Proxy > "u")
4175
4179
  return ve;
4176
4180
  const n = /* @__PURE__ */ new Map(), i = (o, r) => ve(o, r, t, e), s = (o, r) => (process.env.NODE_ENV !== "production" && Je(!1, "motion() is deprecated. Use motion.create() instead."), i(o, r));
@@ -4183,17 +4187,17 @@ function Zc(t, e) {
4183
4187
  get: (o, r) => r === "create" ? i : (n.has(r) || n.set(r, ve(r, void 0, t, e)), n.get(r))
4184
4188
  });
4185
4189
  }
4186
- const Jc = (t, e) => e.isSVG ?? bn(t) ? new Fl(e) : new Cl(e, {
4187
- allowProjection: t !== Hi
4190
+ const Qc = (t, e) => e.isSVG ?? bn(t) ? new Il(e) : new El(e, {
4191
+ allowProjection: t !== Gi
4188
4192
  });
4189
- class Qc extends tt {
4193
+ class tu extends tt {
4190
4194
  /**
4191
4195
  * We dynamically generate the AnimationState manager as it contains a reference
4192
4196
  * to the underlying animation library. We only want to load that if we load this,
4193
4197
  * so people can optionally code split it out using the `m` component.
4194
4198
  */
4195
4199
  constructor(e) {
4196
- super(e), e.animationState || (e.animationState = Ul(e));
4200
+ super(e), e.animationState || (e.animationState = Wl(e));
4197
4201
  }
4198
4202
  updateAnimationControlsSubscription() {
4199
4203
  const { animate: e } = this.node.getProps();
@@ -4213,10 +4217,10 @@ class Qc extends tt {
4213
4217
  this.node.animationState.reset(), this.unmountControls?.();
4214
4218
  }
4215
4219
  }
4216
- let tu = 0;
4217
- class eu extends tt {
4220
+ let eu = 0;
4221
+ class nu extends tt {
4218
4222
  constructor() {
4219
- super(...arguments), this.id = tu++;
4223
+ super(...arguments), this.id = eu++;
4220
4224
  }
4221
4225
  update() {
4222
4226
  if (!this.node.presenceContext)
@@ -4236,12 +4240,12 @@ class eu extends tt {
4236
4240
  unmount() {
4237
4241
  }
4238
4242
  }
4239
- const nu = {
4243
+ const iu = {
4240
4244
  animation: {
4241
- Feature: Qc
4245
+ Feature: tu
4242
4246
  },
4243
4247
  exit: {
4244
- Feature: eu
4248
+ Feature: nu
4245
4249
  }
4246
4250
  };
4247
4251
  function Ot(t) {
@@ -4252,17 +4256,17 @@ function Ot(t) {
4252
4256
  }
4253
4257
  };
4254
4258
  }
4255
- const iu = (t) => (e) => yn(e) && t(e, Ot(e));
4259
+ const su = (t) => (e) => yn(e) && t(e, Ot(e));
4256
4260
  function Mt(t, e, n, i) {
4257
- return kt(t, e, iu(n), i);
4261
+ return kt(t, e, su(n), i);
4258
4262
  }
4259
- const Cr = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Bi = (t, e) => Math.abs(t - e);
4260
- function su(t, e) {
4261
- const n = Bi(t.x, e.x), i = Bi(t.y, e.y);
4263
+ const Er = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Fi = (t, e) => Math.abs(t - e);
4264
+ function ru(t, e) {
4265
+ const n = Fi(t.x, e.x), i = Fi(t.y, e.y);
4262
4266
  return Math.sqrt(n ** 2 + i ** 2);
4263
4267
  }
4264
- const Fi = /* @__PURE__ */ new Set(["auto", "scroll"]);
4265
- class Er {
4268
+ const Ii = /* @__PURE__ */ new Set(["auto", "scroll"]);
4269
+ class Rr {
4266
4270
  constructor(e, n, { transformPagePoint: i, contextWindow: s = window, dragSnapToOrigin: o = !1, distanceThreshold: r = 3, element: a } = {}) {
4267
4271
  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) => {
4268
4272
  this.handleScroll(d.target);
@@ -4271,7 +4275,7 @@ class Er {
4271
4275
  }, this.updatePoint = () => {
4272
4276
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
4273
4277
  return;
4274
- const d = xe(this.lastMoveEventInfo, this.history), m = this.startEvent !== null, g = su(d.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
4278
+ const d = xe(this.lastMoveEventInfo, this.history), m = this.startEvent !== null, g = ru(d.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
4275
4279
  if (!m && !g)
4276
4280
  return;
4277
4281
  const { point: x } = d, { timestamp: v } = L;
@@ -4302,7 +4306,7 @@ class Er {
4302
4306
  let n = e.parentElement;
4303
4307
  for (; n; ) {
4304
4308
  const i = getComputedStyle(n);
4305
- (Fi.has(i.overflowX) || Fi.has(i.overflowY)) && this.scrollPositions.set(n, {
4309
+ (Ii.has(i.overflowX) || Ii.has(i.overflowY)) && this.scrollPositions.set(n, {
4306
4310
  x: n.scrollLeft,
4307
4311
  y: n.scrollTop
4308
4312
  }), n = n.parentElement;
@@ -4344,28 +4348,28 @@ class Er {
4344
4348
  function Te(t, e) {
4345
4349
  return e ? { point: e(t.point) } : t;
4346
4350
  }
4347
- function Ii(t, e) {
4351
+ function Oi(t, e) {
4348
4352
  return { x: t.x - e.x, y: t.y - e.y };
4349
4353
  }
4350
4354
  function xe({ point: t }, e) {
4351
4355
  return {
4352
4356
  point: t,
4353
- delta: Ii(t, Rr(e)),
4354
- offset: Ii(t, ru(e)),
4355
- velocity: ou(e, 0.1)
4357
+ delta: Oi(t, Lr(e)),
4358
+ offset: Oi(t, ou(e)),
4359
+ velocity: au(e, 0.1)
4356
4360
  };
4357
4361
  }
4358
- function ru(t) {
4362
+ function ou(t) {
4359
4363
  return t[0];
4360
4364
  }
4361
- function Rr(t) {
4365
+ function Lr(t) {
4362
4366
  return t[t.length - 1];
4363
4367
  }
4364
- function ou(t, e) {
4368
+ function au(t, e) {
4365
4369
  if (t.length < 2)
4366
4370
  return { x: 0, y: 0 };
4367
4371
  let n = t.length - 1, i = null;
4368
- const s = Rr(t);
4372
+ const s = Lr(t);
4369
4373
  for (; n >= 0 && (i = t[n], !(s.timestamp - i.timestamp > /* @__PURE__ */ K(e))); )
4370
4374
  n--;
4371
4375
  if (!i)
@@ -4380,58 +4384,58 @@ function ou(t, e) {
4380
4384
  };
4381
4385
  return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
4382
4386
  }
4383
- function au(t, { min: e, max: n }, i) {
4387
+ function lu(t, { min: e, max: n }, i) {
4384
4388
  return e !== void 0 && t < e ? t = i ? D(e, t, i.min) : Math.max(t, e) : n !== void 0 && t > n && (t = i ? D(n, t, i.max) : Math.min(t, n)), t;
4385
4389
  }
4386
- function Oi(t, e, n) {
4390
+ function ji(t, e, n) {
4387
4391
  return {
4388
4392
  min: e !== void 0 ? t.min + e : void 0,
4389
4393
  max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
4390
4394
  };
4391
4395
  }
4392
- function lu(t, { top: e, left: n, bottom: i, right: s }) {
4396
+ function cu(t, { top: e, left: n, bottom: i, right: s }) {
4393
4397
  return {
4394
- x: Oi(t.x, n, s),
4395
- y: Oi(t.y, e, i)
4398
+ x: ji(t.x, n, s),
4399
+ y: ji(t.y, e, i)
4396
4400
  };
4397
4401
  }
4398
- function ji(t, e) {
4402
+ function Ni(t, e) {
4399
4403
  let n = e.min - t.min, i = e.max - t.max;
4400
4404
  return e.max - e.min < t.max - t.min && ([n, i] = [i, n]), { min: n, max: i };
4401
4405
  }
4402
- function cu(t, e) {
4406
+ function uu(t, e) {
4403
4407
  return {
4404
- x: ji(t.x, e.x),
4405
- y: ji(t.y, e.y)
4408
+ x: Ni(t.x, e.x),
4409
+ y: Ni(t.y, e.y)
4406
4410
  };
4407
4411
  }
4408
- function uu(t, e) {
4412
+ function hu(t, e) {
4409
4413
  let n = 0.5;
4410
4414
  const i = I(t), s = I(e);
4411
4415
  return s > i ? n = /* @__PURE__ */ Ct(e.min, e.max - i, t.min) : i > s && (n = /* @__PURE__ */ Ct(t.min, t.max - s, e.min)), X(0, 1, n);
4412
4416
  }
4413
- function hu(t, e) {
4417
+ function fu(t, e) {
4414
4418
  const n = {};
4415
4419
  return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
4416
4420
  }
4417
4421
  const Ge = 0.35;
4418
- function fu(t = Ge) {
4422
+ function du(t = Ge) {
4419
4423
  return t === !1 ? t = 0 : t === !0 && (t = Ge), {
4420
- x: Ni(t, "left", "right"),
4421
- y: Ni(t, "top", "bottom")
4424
+ x: Ui(t, "left", "right"),
4425
+ y: Ui(t, "top", "bottom")
4422
4426
  };
4423
4427
  }
4424
- function Ni(t, e, n) {
4428
+ function Ui(t, e, n) {
4425
4429
  return {
4426
- min: Ui(t, e),
4427
- max: Ui(t, n)
4430
+ min: Wi(t, e),
4431
+ max: Wi(t, n)
4428
4432
  };
4429
4433
  }
4430
- function Ui(t, e) {
4434
+ function Wi(t, e) {
4431
4435
  return typeof t == "number" ? t : t[e] || 0;
4432
4436
  }
4433
- const du = /* @__PURE__ */ new WeakMap();
4434
- class mu {
4437
+ const mu = /* @__PURE__ */ new WeakMap();
4438
+ class pu {
4435
4439
  constructor(e) {
4436
4440
  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;
4437
4441
  }
@@ -4443,7 +4447,7 @@ class mu {
4443
4447
  n && this.snapToCursor(Ot(h).point), this.stopAnimation();
4444
4448
  }, r = (h, f) => {
4445
4449
  const { drag: d, dragPropagation: m, onDragStart: g } = this.getProps();
4446
- if (d && !m && (this.openDragLock && this.openDragLock(), this.openDragLock = Xa(d), !this.openDragLock))
4450
+ if (d && !m && (this.openDragLock && this.openDragLock(), this.openDragLock = Ya(d), !this.openDragLock))
4447
4451
  return;
4448
4452
  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((v) => {
4449
4453
  let T = this.getAxisMotionValue(v).get() || 0;
@@ -4465,7 +4469,7 @@ class mu {
4465
4469
  return;
4466
4470
  const { offset: v } = f;
4467
4471
  if (m && this.currentDirection === null) {
4468
- this.currentDirection = gu(v), this.currentDirection !== null && g && g(this.currentDirection);
4472
+ this.currentDirection = yu(v), this.currentDirection !== null && g && g(this.currentDirection);
4469
4473
  return;
4470
4474
  }
4471
4475
  this.updateAxis("x", f.point, v), this.updateAxis("y", f.point, v), this.visualElement.render(), x && A.update(() => x(h, f), !1, !0);
@@ -4475,7 +4479,7 @@ class mu {
4475
4479
  const { dragSnapToOrigin: h } = this.getProps();
4476
4480
  (h || this.constraints) && this.startAnimation({ x: 0, y: 0 });
4477
4481
  }, { dragSnapToOrigin: c } = this.getProps();
4478
- this.panSession = new Er(e, {
4482
+ this.panSession = new Rr(e, {
4479
4483
  onSessionStart: o,
4480
4484
  onStart: r,
4481
4485
  onMove: a,
@@ -4485,7 +4489,7 @@ class mu {
4485
4489
  transformPagePoint: this.visualElement.getTransformPagePoint(),
4486
4490
  dragSnapToOrigin: c,
4487
4491
  distanceThreshold: i,
4488
- contextWindow: Cr(this.visualElement),
4492
+ contextWindow: Er(this.visualElement),
4489
4493
  element: this.visualElement.current
4490
4494
  });
4491
4495
  }
@@ -4526,12 +4530,12 @@ class mu {
4526
4530
  return;
4527
4531
  const o = this.getAxisMotionValue(e);
4528
4532
  let r = this.originPoint[e] + i[e];
4529
- this.constraints && this.constraints[e] && (r = au(r, this.constraints[e], this.elastic[e])), o.set(r);
4533
+ this.constraints && this.constraints[e] && (r = lu(r, this.constraints[e], this.elastic[e])), o.set(r);
4530
4534
  }
4531
4535
  resolveConstraints() {
4532
4536
  const { dragConstraints: e, dragElastic: n } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, s = this.constraints;
4533
- e && ct(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && i ? this.constraints = lu(i.layoutBox, e) : this.constraints = !1, this.elastic = fu(n), s !== this.constraints && !ct(e) && i && this.constraints && !this.hasMutatedConstraints && G((o) => {
4534
- this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = hu(i.layoutBox[o], this.constraints[o]));
4537
+ e && ct(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && i ? this.constraints = cu(i.layoutBox, e) : this.constraints = !1, this.elastic = du(n), s !== this.constraints && !ct(e) && i && this.constraints && !this.hasMutatedConstraints && G((o) => {
4538
+ this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = fu(i.layoutBox[o], this.constraints[o]));
4535
4539
  });
4536
4540
  }
4537
4541
  resolveRefConstraints() {
@@ -4543,11 +4547,11 @@ class mu {
4543
4547
  const { projection: s } = this.visualElement;
4544
4548
  if (!s || !s.layout)
4545
4549
  return !1;
4546
- const o = Sl(i, s.root, this.visualElement.getTransformPagePoint());
4547
- let r = cu(s.layout.layoutBox, o);
4550
+ const o = bl(i, s.root, this.visualElement.getTransformPagePoint());
4551
+ let r = uu(s.layout.layoutBox, o);
4548
4552
  if (n) {
4549
- const a = n(xl(r));
4550
- this.hasMutatedConstraints = !!a, a && (r = Js(a));
4553
+ const a = n(wl(r));
4554
+ this.hasMutatedConstraints = !!a, a && (r = Qs(a));
4551
4555
  }
4552
4556
  return r;
4553
4557
  }
@@ -4618,7 +4622,7 @@ class mu {
4618
4622
  const a = this.getAxisMotionValue(r);
4619
4623
  if (a && this.constraints !== !1) {
4620
4624
  const l = a.get();
4621
- s[r] = uu({ min: l, max: l }, this.constraints[r]);
4625
+ s[r] = hu({ min: l, max: l }, this.constraints[r]);
4622
4626
  }
4623
4627
  });
4624
4628
  const { transformTemplate: o } = this.visualElement.getProps();
@@ -4632,15 +4636,15 @@ class mu {
4632
4636
  addListeners() {
4633
4637
  if (!this.visualElement.current)
4634
4638
  return;
4635
- du.set(this.visualElement, this);
4639
+ mu.set(this.visualElement, this);
4636
4640
  const e = this.visualElement.current, n = Mt(e, "pointerdown", (u) => {
4637
- const { drag: c, dragListener: h = !0 } = this.getProps(), f = u.target, d = f !== e && tl(f);
4641
+ const { drag: c, dragListener: h = !0 } = this.getProps(), f = u.target, d = f !== e && el(f);
4638
4642
  c && h && !d && this.start(u);
4639
4643
  });
4640
4644
  let i;
4641
4645
  const s = () => {
4642
4646
  const { dragConstraints: u } = this.getProps();
4643
- ct(u) && u.current && (this.constraints = this.resolveRefConstraints(), i || (i = pu(e, u.current, () => this.scalePositionWithinConstraints())));
4647
+ ct(u) && u.current && (this.constraints = this.resolveRefConstraints(), i || (i = gu(e, u.current, () => this.scalePositionWithinConstraints())));
4644
4648
  }, { projection: o } = this.visualElement, r = o.addEventListener("measure", s);
4645
4649
  o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()), A.read(s);
4646
4650
  const a = kt(window, "resize", () => this.scalePositionWithinConstraints()), l = o.addEventListener("didUpdate", (({ delta: u, hasLayoutChanged: c }) => {
@@ -4666,7 +4670,7 @@ class mu {
4666
4670
  };
4667
4671
  }
4668
4672
  }
4669
- function Wi(t) {
4673
+ function Ki(t) {
4670
4674
  let e = !0;
4671
4675
  return () => {
4672
4676
  if (e) {
@@ -4676,8 +4680,8 @@ function Wi(t) {
4676
4680
  t();
4677
4681
  };
4678
4682
  }
4679
- function pu(t, e, n) {
4680
- const i = qn(t, Wi(n)), s = qn(e, Wi(n));
4683
+ function gu(t, e, n) {
4684
+ const i = qn(t, Ki(n)), s = qn(e, Ki(n));
4681
4685
  return () => {
4682
4686
  i(), s();
4683
4687
  };
@@ -4685,13 +4689,13 @@ function pu(t, e, n) {
4685
4689
  function Ut(t, e, n) {
4686
4690
  return (e === !0 || e === t) && (n === null || n === t);
4687
4691
  }
4688
- function gu(t, e = 10) {
4692
+ function yu(t, e = 10) {
4689
4693
  let n = null;
4690
4694
  return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
4691
4695
  }
4692
- class yu extends tt {
4696
+ class vu extends tt {
4693
4697
  constructor(e) {
4694
- super(e), this.removeGroupControls = W, this.removeListeners = W, this.controls = new mu(e);
4698
+ super(e), this.removeGroupControls = W, this.removeListeners = W, this.controls = new pu(e);
4695
4699
  }
4696
4700
  mount() {
4697
4701
  const { dragControls: e } = this.node.getProps();
@@ -4708,14 +4712,14 @@ class yu extends tt {
4708
4712
  const we = (t) => (e, n) => {
4709
4713
  t && A.update(() => t(e, n), !1, !0);
4710
4714
  };
4711
- class vu extends tt {
4715
+ class Tu extends tt {
4712
4716
  constructor() {
4713
4717
  super(...arguments), this.removePointerDownListener = W;
4714
4718
  }
4715
4719
  onPointerDown(e) {
4716
- this.session = new Er(e, this.createPanHandlers(), {
4720
+ this.session = new Rr(e, this.createPanHandlers(), {
4717
4721
  transformPagePoint: this.node.getTransformPagePoint(),
4718
- contextWindow: Cr(this.node)
4722
+ contextWindow: Er(this.node)
4719
4723
  });
4720
4724
  }
4721
4725
  createPanHandlers() {
@@ -4740,7 +4744,7 @@ class vu extends tt {
4740
4744
  }
4741
4745
  }
4742
4746
  let Pe = !1;
4743
- class Tu extends Nr {
4747
+ class xu extends Ur {
4744
4748
  /**
4745
4749
  * This only mounts projection nodes for components that
4746
4750
  * need measuring, we might want to do it for all components
@@ -4784,35 +4788,35 @@ class Tu extends Nr {
4784
4788
  return null;
4785
4789
  }
4786
4790
  }
4787
- function Lr(t) {
4788
- const [e, n] = Vc(), i = O(Xi);
4789
- return _i(Tu, { ...t, layoutGroup: i, switchLayoutGroup: O(Dr), isPresent: e, safeToRemove: n });
4791
+ function kr(t) {
4792
+ const [e, n] = Dc(), i = O(Yi);
4793
+ return Xi(xu, { ...t, layoutGroup: i, switchLayoutGroup: O(Mr), isPresent: e, safeToRemove: n });
4790
4794
  }
4791
- const xu = {
4795
+ const wu = {
4792
4796
  pan: {
4793
- Feature: vu
4797
+ Feature: Tu
4794
4798
  },
4795
4799
  drag: {
4796
- Feature: yu,
4797
- ProjectionNode: Tr,
4798
- MeasureLayout: Lr
4800
+ Feature: vu,
4801
+ ProjectionNode: xr,
4802
+ MeasureLayout: kr
4799
4803
  }
4800
4804
  };
4801
- function Ki(t, e, n) {
4805
+ function $i(t, e, n) {
4802
4806
  const { props: i } = t;
4803
4807
  t.animationState && i.whileHover && t.animationState.setActive("whileHover", n === "Start");
4804
4808
  const s = "onHover" + n, o = i[s];
4805
4809
  o && A.postRender(() => o(e, Ot(e)));
4806
4810
  }
4807
- class wu extends tt {
4811
+ class Pu extends tt {
4808
4812
  mount() {
4809
4813
  const { current: e } = this.node;
4810
- e && (this.unmount = qa(e, (n, i) => (Ki(this.node, i, "Start"), (s) => Ki(this.node, s, "End"))));
4814
+ e && (this.unmount = Za(e, (n, i) => ($i(this.node, i, "Start"), (s) => $i(this.node, s, "End"))));
4811
4815
  }
4812
4816
  unmount() {
4813
4817
  }
4814
4818
  }
4815
- class Pu extends tt {
4819
+ class Su extends tt {
4816
4820
  constructor() {
4817
4821
  super(...arguments), this.isActive = !1;
4818
4822
  }
@@ -4834,7 +4838,7 @@ class Pu extends tt {
4834
4838
  unmount() {
4835
4839
  }
4836
4840
  }
4837
- function $i(t, e, n) {
4841
+ function zi(t, e, n) {
4838
4842
  const { props: i } = t;
4839
4843
  if (t.current instanceof HTMLButtonElement && t.current.disabled)
4840
4844
  return;
@@ -4842,13 +4846,13 @@ function $i(t, e, n) {
4842
4846
  const s = "onTap" + (n === "End" ? "" : n), o = i[s];
4843
4847
  o && A.postRender(() => o(e, Ot(e)));
4844
4848
  }
4845
- class Su extends tt {
4849
+ class bu extends tt {
4846
4850
  mount() {
4847
4851
  const { current: e } = this.node;
4848
4852
  if (!e)
4849
4853
  return;
4850
4854
  const { globalTapTarget: n, propagate: i } = this.node.props;
4851
- this.unmount = nl(e, (s, o) => ($i(this.node, o, "Start"), (r, { success: a }) => $i(this.node, r, a ? "End" : "Cancel")), {
4855
+ this.unmount = il(e, (s, o) => (zi(this.node, o, "Start"), (r, { success: a }) => zi(this.node, r, a ? "End" : "Cancel")), {
4852
4856
  useGlobalTarget: n,
4853
4857
  stopPropagation: i?.tap === !1
4854
4858
  });
@@ -4856,29 +4860,29 @@ class Su extends tt {
4856
4860
  unmount() {
4857
4861
  }
4858
4862
  }
4859
- const _e = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), bu = (t) => {
4863
+ const _e = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Au = (t) => {
4860
4864
  const e = _e.get(t.target);
4861
4865
  e && e(t);
4862
- }, Au = (t) => {
4863
- t.forEach(bu);
4866
+ }, Vu = (t) => {
4867
+ t.forEach(Au);
4864
4868
  };
4865
- function Vu({ root: t, ...e }) {
4869
+ function Du({ root: t, ...e }) {
4866
4870
  const n = t || document;
4867
4871
  Se.has(n) || Se.set(n, {});
4868
4872
  const i = Se.get(n), s = JSON.stringify(e);
4869
- return i[s] || (i[s] = new IntersectionObserver(Au, { root: t, ...e })), i[s];
4873
+ return i[s] || (i[s] = new IntersectionObserver(Vu, { root: t, ...e })), i[s];
4870
4874
  }
4871
- function Du(t, e, n) {
4872
- const i = Vu(e);
4875
+ function Mu(t, e, n) {
4876
+ const i = Du(e);
4873
4877
  return _e.set(t, n), i.observe(t), () => {
4874
4878
  _e.delete(t), i.unobserve(t);
4875
4879
  };
4876
4880
  }
4877
- const Mu = {
4881
+ const Cu = {
4878
4882
  some: 0,
4879
4883
  all: 1
4880
4884
  };
4881
- class Cu extends tt {
4885
+ class Eu extends tt {
4882
4886
  constructor() {
4883
4887
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
4884
4888
  }
@@ -4887,7 +4891,7 @@ class Cu extends tt {
4887
4891
  const { viewport: e = {} } = this.node.getProps(), { root: n, margin: i, amount: s = "some", once: o } = e, r = {
4888
4892
  root: n ? n.current : void 0,
4889
4893
  rootMargin: i,
4890
- threshold: typeof s == "number" ? s : Mu[s]
4894
+ threshold: typeof s == "number" ? s : Cu[s]
4891
4895
  }, a = (l) => {
4892
4896
  const { isIntersecting: u } = l;
4893
4897
  if (this.isInView === u || (this.isInView = u, o && !u && this.hasEnteredView))
@@ -4896,7 +4900,7 @@ class Cu extends tt {
4896
4900
  const { onViewportEnter: c, onViewportLeave: h } = this.node.getProps(), f = u ? c : h;
4897
4901
  f && f(l);
4898
4902
  };
4899
- return Du(this.node.current, r, a);
4903
+ return Mu(this.node.current, r, a);
4900
4904
  }
4901
4905
  mount() {
4902
4906
  this.startObserver();
@@ -4905,38 +4909,38 @@ class Cu extends tt {
4905
4909
  if (typeof IntersectionObserver > "u")
4906
4910
  return;
4907
4911
  const { props: e, prevProps: n } = this.node;
4908
- ["amount", "margin", "root"].some(Eu(e, n)) && this.startObserver();
4912
+ ["amount", "margin", "root"].some(Ru(e, n)) && this.startObserver();
4909
4913
  }
4910
4914
  unmount() {
4911
4915
  }
4912
4916
  }
4913
- function Eu({ viewport: t = {} }, { viewport: e = {} } = {}) {
4917
+ function Ru({ viewport: t = {} }, { viewport: e = {} } = {}) {
4914
4918
  return (n) => t[n] !== e[n];
4915
4919
  }
4916
- const Ru = {
4920
+ const Lu = {
4917
4921
  inView: {
4918
- Feature: Cu
4922
+ Feature: Eu
4919
4923
  },
4920
4924
  tap: {
4921
- Feature: Su
4925
+ Feature: bu
4922
4926
  },
4923
4927
  focus: {
4924
- Feature: Pu
4928
+ Feature: Su
4925
4929
  },
4926
4930
  hover: {
4927
- Feature: wu
4928
- }
4929
- }, Lu = {
4930
- layout: {
4931
- ProjectionNode: Tr,
4932
- MeasureLayout: Lr
4931
+ Feature: Pu
4933
4932
  }
4934
4933
  }, ku = {
4935
- ...nu,
4936
- ...Ru,
4937
- ...xu,
4938
- ...Lu
4939
- }, ju = /* @__PURE__ */ Zc(ku, Jc);
4934
+ layout: {
4935
+ ProjectionNode: xr,
4936
+ MeasureLayout: kr
4937
+ }
4938
+ }, Bu = {
4939
+ ...iu,
4940
+ ...Lu,
4941
+ ...wu,
4942
+ ...ku
4943
+ }, Nu = /* @__PURE__ */ Jc(Bu, Qc);
4940
4944
  export {
4941
- ju as m
4945
+ Nu as m
4942
4946
  };