@telegraph/tag 0.1.2 → 0.1.3

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.
@@ -1,12 +1,12 @@
1
- import { jsx as F, jsxs as ht } from "react/jsx-runtime";
1
+ import { jsx as R, jsxs as pt } from "react/jsx-runtime";
2
2
  import { Button as xe } from "@telegraph/button";
3
3
  import { Icon as ei } from "@telegraph/icon";
4
4
  import { Stack as ti } from "@telegraph/layout";
5
- import G, { createContext as re, useRef as W, useLayoutEffect as ni, useEffect as pt, useState as si, useContext as E, useMemo as Oe, Fragment as Tn, createElement as ii, useInsertionEffect as Vn, useCallback as ri, forwardRef as oi } from "react";
5
+ import G, { createContext as re, useRef as W, useLayoutEffect as ni, useEffect as mt, useState as si, useContext as E, useMemo as Oe, Fragment as Vn, createElement as ii, useInsertionEffect as Sn, useCallback as ri, forwardRef as oi } from "react";
6
6
  import { Tooltip as ai } from "@telegraph/tooltip";
7
7
  import { Text as ui } from "@telegraph/typography";
8
- import { clsx as ci } from "clsx";
9
- import { X as Sn, Check as li, Copy as fi } from "lucide-react";
8
+ import { clsx as li } from "clsx";
9
+ import { X as xn, Check as ci, Copy as fi } from "lucide-react";
10
10
  const di = (e) => {
11
11
  const t = [];
12
12
  let n = "", s = 0;
@@ -50,14 +50,14 @@ const di = (e) => {
50
50
  const r = {};
51
51
  let o = !1;
52
52
  return Object.keys(s).forEach((a) => {
53
- const c = a, l = c, u = t == null ? void 0 : t[l];
53
+ const l = a, c = l, u = t == null ? void 0 : t[c];
54
54
  if (!u) {
55
- Object.assign(r, { [c]: s[c] });
55
+ Object.assign(r, { [l]: s[l] });
56
56
  return;
57
57
  }
58
- const d = s == null ? void 0 : s[c];
58
+ const d = s == null ? void 0 : s[l];
59
59
  if (!d) {
60
- Object.assign(i, { [c]: s[c] });
60
+ Object.assign(i, { [l]: s[l] });
61
61
  return;
62
62
  }
63
63
  let f;
@@ -107,7 +107,7 @@ function bi(e) {
107
107
  const t = W(null);
108
108
  return t.current === null && (t.current = e()), t.current;
109
109
  }
110
- const xn = typeof window < "u", vi = xn ? ni : pt, An = /* @__PURE__ */ re(null);
110
+ const An = typeof window < "u", vi = An ? ni : mt, Mn = /* @__PURE__ */ re(null);
111
111
  function wi(e, t) {
112
112
  e.indexOf(t) === -1 && e.push(t);
113
113
  }
@@ -115,27 +115,27 @@ function Ti(e, t) {
115
115
  const n = e.indexOf(t);
116
116
  n > -1 && e.splice(n, 1);
117
117
  }
118
- const H = (e, t, n) => n > t ? t : n < e ? e : n;
119
- function Ue(e, t) {
118
+ const z = (e, t, n) => n > t ? t : n < e ? e : n;
119
+ function Ye(e, t) {
120
120
  return t ? `${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : e;
121
121
  }
122
122
  let ye = () => {
123
123
  }, Z = () => {
124
124
  };
125
- var wn;
126
- typeof process < "u" && ((wn = process.env) == null ? void 0 : wn.NODE_ENV) !== "production" && (ye = (e, t, n) => {
127
- !e && typeof console < "u" && console.warn(Ue(t, n));
125
+ var Tn;
126
+ typeof process < "u" && ((Tn = process.env) == null ? void 0 : Tn.NODE_ENV) !== "production" && (ye = (e, t, n) => {
127
+ !e && typeof console < "u" && console.warn(Ye(t, n));
128
128
  }, Z = (e, t, n) => {
129
129
  if (!e)
130
- throw new Error(Ue(t, n));
130
+ throw new Error(Ye(t, n));
131
131
  });
132
- const $ = {}, Mn = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
132
+ const $ = {}, Cn = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
133
133
  function Vi(e) {
134
134
  return typeof e == "object" && e !== null;
135
135
  }
136
- const Cn = (e) => /^0[^.\s]+$/u.test(e);
136
+ const Pn = (e) => /^0[^.\s]+$/u.test(e);
137
137
  // @__NO_SIDE_EFFECTS__
138
- function Pn(e) {
138
+ function Rn(e) {
139
139
  let t;
140
140
  return () => (t === void 0 && (t = e()), t);
141
141
  }
@@ -143,7 +143,7 @@ const oe = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Si = (e, t) => (n) => t(e(n)), E
143
143
  const s = t - e;
144
144
  return s === 0 ? 1 : (n - e) / s;
145
145
  };
146
- class Rn {
146
+ class Dn {
147
147
  constructor() {
148
148
  this.subscriptions = [];
149
149
  }
@@ -169,18 +169,18 @@ class Rn {
169
169
  }
170
170
  }
171
171
  const K = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, B = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
172
- function Dn(e, t) {
172
+ function In(e, t) {
173
173
  return t ? e * (1e3 / t) : 0;
174
174
  }
175
- const Kt = /* @__PURE__ */ new Set();
176
- function In(e, t, n) {
177
- e || Kt.has(t) || (console.warn(Ue(t, n)), Kt.add(t));
175
+ const $t = /* @__PURE__ */ new Set();
176
+ function kn(e, t, n) {
177
+ e || $t.has(t) || (console.warn(Ye(t, n)), $t.add(t));
178
178
  }
179
- const kn = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, xi = 1e-7, Ai = 12;
179
+ const On = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, xi = 1e-7, Ai = 12;
180
180
  function Mi(e, t, n, s, i) {
181
181
  let r, o, a = 0;
182
182
  do
183
- o = t + (n - t) / 2, r = kn(o, s, i) - e, r > 0 ? n = o : t = o;
183
+ o = t + (n - t) / 2, r = On(o, s, i) - e, r > 0 ? n = o : t = o;
184
184
  while (Math.abs(r) > xi && ++a < Ai);
185
185
  return o;
186
186
  }
@@ -188,27 +188,27 @@ function be(e, t, n, s) {
188
188
  if (e === t && n === s)
189
189
  return oe;
190
190
  const i = (r) => Mi(r, 0, 1, e, n);
191
- return (r) => r === 0 || r === 1 ? r : kn(i(r), t, s);
191
+ return (r) => r === 0 || r === 1 ? r : On(i(r), t, s);
192
192
  }
193
- const On = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, En = (e) => (t) => 1 - e(1 - t), Bn = /* @__PURE__ */ be(0.33, 1.53, 0.69, 0.99), mt = /* @__PURE__ */ En(Bn), Ln = /* @__PURE__ */ On(mt), Nn = (e) => (e *= 2) < 1 ? 0.5 * mt(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), gt = (e) => 1 - Math.sin(Math.acos(e)), Ci = En(gt), Kn = On(gt), Pi = /* @__PURE__ */ be(0.42, 0, 1, 1), Fi = /* @__PURE__ */ be(0, 0, 0.58, 1), $n = /* @__PURE__ */ be(0.42, 0, 0.58, 1), Ri = (e) => Array.isArray(e) && typeof e[0] != "number", jn = (e) => Array.isArray(e) && typeof e[0] == "number", $t = {
193
+ const En = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Bn = (e) => (t) => 1 - e(1 - t), Ln = /* @__PURE__ */ be(0.33, 1.53, 0.69, 0.99), gt = /* @__PURE__ */ Bn(Ln), Nn = /* @__PURE__ */ En(gt), Kn = (e) => (e *= 2) < 1 ? 0.5 * gt(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), yt = (e) => 1 - Math.sin(Math.acos(e)), Ci = Bn(yt), $n = En(yt), Pi = /* @__PURE__ */ be(0.42, 0, 1, 1), Ri = /* @__PURE__ */ be(0, 0, 0.58, 1), jn = /* @__PURE__ */ be(0.42, 0, 0.58, 1), Fi = (e) => Array.isArray(e) && typeof e[0] != "number", Wn = (e) => Array.isArray(e) && typeof e[0] == "number", jt = {
194
194
  linear: oe,
195
195
  easeIn: Pi,
196
- easeInOut: $n,
197
- easeOut: Fi,
198
- circIn: gt,
199
- circInOut: Kn,
196
+ easeInOut: jn,
197
+ easeOut: Ri,
198
+ circIn: yt,
199
+ circInOut: $n,
200
200
  circOut: Ci,
201
- backIn: mt,
202
- backInOut: Ln,
203
- backOut: Bn,
204
- anticipate: Nn
205
- }, Di = (e) => typeof e == "string", jt = (e) => {
206
- if (jn(e)) {
201
+ backIn: gt,
202
+ backInOut: Nn,
203
+ backOut: Ln,
204
+ anticipate: Kn
205
+ }, Di = (e) => typeof e == "string", Wt = (e) => {
206
+ if (Wn(e)) {
207
207
  Z(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
208
208
  const [t, n, s, i] = e;
209
209
  return be(t, n, s, i);
210
210
  } else if (Di(e))
211
- return Z($t[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), $t[e];
211
+ return Z(jt[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), jt[e];
212
212
  return e;
213
213
  }, Ve = [
214
214
  "setup",
@@ -236,10 +236,10 @@ function Ii(e, t) {
236
236
  timestamp: 0,
237
237
  isProcessing: !1
238
238
  };
239
- function c(u) {
240
- o.has(u) && (l.schedule(u), e()), u(a);
239
+ function l(u) {
240
+ o.has(u) && (c.schedule(u), e()), u(a);
241
241
  }
242
- const l = {
242
+ const c = {
243
243
  /**
244
244
  * Schedule a process to run on the next frame.
245
245
  */
@@ -261,21 +261,21 @@ function Ii(e, t) {
261
261
  r = !0;
262
262
  return;
263
263
  }
264
- i = !0, [n, s] = [s, n], n.forEach(c), n.clear(), i = !1, r && (r = !1, l.process(u));
264
+ i = !0, [n, s] = [s, n], n.forEach(l), n.clear(), i = !1, r && (r = !1, c.process(u));
265
265
  }
266
266
  };
267
- return l;
267
+ return c;
268
268
  }
269
269
  const ki = 40;
270
- function Wn(e, t) {
270
+ function _n(e, t) {
271
271
  let n = !1, s = !0;
272
272
  const i = {
273
273
  delta: 0,
274
274
  timestamp: 0,
275
275
  isProcessing: !1
276
- }, r = () => n = !0, o = Ve.reduce((v, S) => (v[S] = Ii(r), v), {}), { setup: a, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: h, postRender: p } = o, y = () => {
276
+ }, r = () => n = !0, o = Ve.reduce((v, S) => (v[S] = Ii(r), v), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: d, preRender: f, render: h, postRender: p } = o, y = () => {
277
277
  const v = $.useManualTiming ? i.timestamp : performance.now();
278
- n = !1, $.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(v - i.timestamp, ki), 1)), i.timestamp = v, i.isProcessing = !0, a.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), h.process(i), p.process(i), i.isProcessing = !1, n && t && (s = !1, e(y));
278
+ n = !1, $.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(v - i.timestamp, ki), 1)), i.timestamp = v, i.isProcessing = !0, a.process(i), l.process(i), c.process(i), u.process(i), d.process(i), f.process(i), h.process(i), p.process(i), i.isProcessing = !1, n && t && (s = !1, e(y));
279
279
  }, b = () => {
280
280
  n = !0, s = !0, i.isProcessing || e(y);
281
281
  };
@@ -287,7 +287,7 @@ function Wn(e, t) {
287
287
  o[Ve[S]].cancel(v);
288
288
  }, state: i, steps: o };
289
289
  }
290
- const { schedule: N, cancel: Ye, state: Ce } = /* @__PURE__ */ Wn(typeof requestAnimationFrame < "u" ? requestAnimationFrame : oe, !0);
290
+ const { schedule: N, cancel: Xe, state: Ce } = /* @__PURE__ */ _n(typeof requestAnimationFrame < "u" ? requestAnimationFrame : oe, !0);
291
291
  let Ae;
292
292
  function Oi() {
293
293
  Ae = void 0;
@@ -297,8 +297,8 @@ const I = {
297
297
  set: (e) => {
298
298
  Ae = e, queueMicrotask(Oi);
299
299
  }
300
- }, _n = (e) => (t) => typeof t == "string" && t.startsWith(e), Gn = /* @__PURE__ */ _n("--"), Ei = /* @__PURE__ */ _n("var(--"), yt = (e) => Ei(e) ? Bi.test(e.split("/*")[0].trim()) : !1, Bi = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
301
- function Wt(e) {
300
+ }, Gn = (e) => (t) => typeof t == "string" && t.startsWith(e), zn = /* @__PURE__ */ Gn("--"), Ei = /* @__PURE__ */ Gn("var(--"), bt = (e) => Ei(e) ? Bi.test(e.split("/*")[0].trim()) : !1, Bi = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
301
+ function _t(e) {
302
302
  return typeof e != "string" ? !1 : e.split("/*")[0].includes("var(--");
303
303
  }
304
304
  const ae = {
@@ -307,31 +307,31 @@ const ae = {
307
307
  transform: (e) => e
308
308
  }, pe = {
309
309
  ...ae,
310
- transform: (e) => H(0, 1, e)
310
+ transform: (e) => z(0, 1, e)
311
311
  }, Se = {
312
312
  ...ae,
313
313
  default: 1
314
- }, he = (e) => Math.round(e * 1e5) / 1e5, bt = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
314
+ }, he = (e) => Math.round(e * 1e5) / 1e5, vt = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
315
315
  function Li(e) {
316
316
  return e == null;
317
317
  }
318
- const Ni = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, vt = (e, t) => (n) => !!(typeof n == "string" && Ni.test(n) && n.startsWith(e) || t && !Li(n) && Object.prototype.hasOwnProperty.call(n, t)), Hn = (e, t, n) => (s) => {
318
+ const Ni = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, wt = (e, t) => (n) => !!(typeof n == "string" && Ni.test(n) && n.startsWith(e) || t && !Li(n) && Object.prototype.hasOwnProperty.call(n, t)), Hn = (e, t, n) => (s) => {
319
319
  if (typeof s != "string")
320
320
  return s;
321
- const [i, r, o, a] = s.match(bt);
321
+ const [i, r, o, a] = s.match(vt);
322
322
  return {
323
323
  [e]: parseFloat(i),
324
324
  [t]: parseFloat(r),
325
325
  [n]: parseFloat(o),
326
326
  alpha: a !== void 0 ? parseFloat(a) : 1
327
327
  };
328
- }, Ki = (e) => H(0, 255, e), Ke = {
328
+ }, Ki = (e) => z(0, 255, e), $e = {
329
329
  ...ae,
330
330
  transform: (e) => Math.round(Ki(e))
331
331
  }, Y = {
332
- test: /* @__PURE__ */ vt("rgb", "red"),
332
+ test: /* @__PURE__ */ wt("rgb", "red"),
333
333
  parse: /* @__PURE__ */ Hn("red", "green", "blue"),
334
- transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + Ke.transform(e) + ", " + Ke.transform(t) + ", " + Ke.transform(n) + ", " + he(pe.transform(s)) + ")"
334
+ transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + $e.transform(e) + ", " + $e.transform(t) + ", " + $e.transform(n) + ", " + he(pe.transform(s)) + ")"
335
335
  };
336
336
  function $i(e) {
337
337
  let t = "", n = "", s = "", i = "";
@@ -342,25 +342,25 @@ function $i(e) {
342
342
  alpha: i ? parseInt(i, 16) / 255 : 1
343
343
  };
344
344
  }
345
- const Xe = {
346
- test: /* @__PURE__ */ vt("#"),
345
+ const qe = {
346
+ test: /* @__PURE__ */ wt("#"),
347
347
  parse: $i,
348
348
  transform: Y.transform
349
349
  }, ve = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
350
350
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
351
351
  parse: parseFloat,
352
352
  transform: (t) => `${t}${e}`
353
- }), j = /* @__PURE__ */ ve("deg"), ne = /* @__PURE__ */ ve("%"), m = /* @__PURE__ */ ve("px"), ji = /* @__PURE__ */ ve("vh"), Wi = /* @__PURE__ */ ve("vw"), _t = {
353
+ }), j = /* @__PURE__ */ ve("deg"), ne = /* @__PURE__ */ ve("%"), m = /* @__PURE__ */ ve("px"), ji = /* @__PURE__ */ ve("vh"), Wi = /* @__PURE__ */ ve("vw"), Gt = {
354
354
  ...ne,
355
355
  parse: (e) => ne.parse(e) / 100,
356
356
  transform: (e) => ne.transform(e * 100)
357
357
  }, ee = {
358
- test: /* @__PURE__ */ vt("hsl", "hue"),
358
+ test: /* @__PURE__ */ wt("hsl", "hue"),
359
359
  parse: /* @__PURE__ */ Hn("hue", "saturation", "lightness"),
360
360
  transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " + ne.transform(he(t)) + ", " + ne.transform(he(n)) + ", " + he(pe.transform(s)) + ")"
361
361
  }, M = {
362
- test: (e) => Y.test(e) || Xe.test(e) || ee.test(e),
363
- parse: (e) => Y.test(e) ? Y.parse(e) : ee.test(e) ? ee.parse(e) : Xe.parse(e),
362
+ test: (e) => Y.test(e) || qe.test(e) || ee.test(e),
363
+ parse: (e) => Y.test(e) ? Y.parse(e) : ee.test(e) ? ee.parse(e) : qe.parse(e),
364
364
  transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Y.transform(e) : ee.transform(e),
365
365
  getAnimatableNone: (e) => {
366
366
  const t = M.parse(e);
@@ -369,9 +369,9 @@ const Xe = {
369
369
  }, _i = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
370
370
  function Gi(e) {
371
371
  var t, n;
372
- return isNaN(e) && typeof e == "string" && (((t = e.match(bt)) == null ? void 0 : t.length) || 0) + (((n = e.match(_i)) == null ? void 0 : n.length) || 0) > 0;
372
+ return isNaN(e) && typeof e == "string" && (((t = e.match(vt)) == null ? void 0 : t.length) || 0) + (((n = e.match(_i)) == null ? void 0 : n.length) || 0) > 0;
373
373
  }
374
- const zn = "number", Un = "color", Hi = "var", zi = "var(", Gt = "${}", Ui = /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;
374
+ const Un = "number", Yn = "color", zi = "var", Hi = "var(", zt = "${}", Ui = /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;
375
375
  function me(e) {
376
376
  const t = e.toString(), n = [], s = {
377
377
  color: [],
@@ -379,36 +379,36 @@ function me(e) {
379
379
  var: []
380
380
  }, i = [];
381
381
  let r = 0;
382
- const a = t.replace(Ui, (c) => (M.test(c) ? (s.color.push(r), i.push(Un), n.push(M.parse(c))) : c.startsWith(zi) ? (s.var.push(r), i.push(Hi), n.push(c)) : (s.number.push(r), i.push(zn), n.push(parseFloat(c))), ++r, Gt)).split(Gt);
382
+ const a = t.replace(Ui, (l) => (M.test(l) ? (s.color.push(r), i.push(Yn), n.push(M.parse(l))) : l.startsWith(Hi) ? (s.var.push(r), i.push(zi), n.push(l)) : (s.number.push(r), i.push(Un), n.push(parseFloat(l))), ++r, zt)).split(zt);
383
383
  return { values: n, split: a, indexes: s, types: i };
384
384
  }
385
- function Yn(e) {
385
+ function Xn(e) {
386
386
  return me(e).values;
387
387
  }
388
- function Xn(e) {
388
+ function qn(e) {
389
389
  const { split: t, types: n } = me(e), s = t.length;
390
390
  return (i) => {
391
391
  let r = "";
392
392
  for (let o = 0; o < s; o++)
393
393
  if (r += t[o], i[o] !== void 0) {
394
394
  const a = n[o];
395
- a === zn ? r += he(i[o]) : a === Un ? r += M.transform(i[o]) : r += i[o];
395
+ a === Un ? r += he(i[o]) : a === Yn ? r += M.transform(i[o]) : r += i[o];
396
396
  }
397
397
  return r;
398
398
  };
399
399
  }
400
400
  const Yi = (e) => typeof e == "number" ? 0 : M.test(e) ? M.getAnimatableNone(e) : e;
401
401
  function Xi(e) {
402
- const t = Yn(e);
403
- return Xn(e)(t.map(Yi));
402
+ const t = Xn(e);
403
+ return qn(e)(t.map(Yi));
404
404
  }
405
405
  const L = {
406
406
  test: Gi,
407
- parse: Yn,
408
- createTransformer: Xn,
407
+ parse: Xn,
408
+ createTransformer: qn,
409
409
  getAnimatableNone: Xi
410
410
  };
411
- function $e(e, t, n) {
411
+ function je(e, t, n) {
412
412
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
413
413
  }
414
414
  function qi({ hue: e, saturation: t, lightness: n, alpha: s }) {
@@ -417,8 +417,8 @@ function qi({ hue: e, saturation: t, lightness: n, alpha: s }) {
417
417
  if (!t)
418
418
  i = r = o = n;
419
419
  else {
420
- const a = n < 0.5 ? n * (1 + t) : n + t - n * t, c = 2 * n - a;
421
- i = $e(c, a, e + 1 / 3), r = $e(c, a, e), o = $e(c, a, e - 1 / 3);
420
+ const a = n < 0.5 ? n * (1 + t) : n + t - n * t, l = 2 * n - a;
421
+ i = je(l, a, e + 1 / 3), r = je(l, a, e), o = je(l, a, e - 1 / 3);
422
422
  }
423
423
  return {
424
424
  red: Math.round(i * 255),
@@ -430,10 +430,10 @@ function qi({ hue: e, saturation: t, lightness: n, alpha: s }) {
430
430
  function Pe(e, t) {
431
431
  return (n) => n > 0 ? t : e;
432
432
  }
433
- const we = (e, t, n) => e + (t - e) * n, je = (e, t, n) => {
433
+ const we = (e, t, n) => e + (t - e) * n, We = (e, t, n) => {
434
434
  const s = e * e, i = n * (t * t - s) + s;
435
435
  return i < 0 ? 0 : Math.sqrt(i);
436
- }, Zi = [Xe, Y, ee], Ji = (e) => Zi.find((t) => t.test(e));
436
+ }, Zi = [qe, Y, ee], Ji = (e) => Zi.find((t) => t.test(e));
437
437
  function Ht(e) {
438
438
  const t = Ji(e);
439
439
  if (ye(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t)
@@ -441,24 +441,24 @@ function Ht(e) {
441
441
  let n = t.parse(e);
442
442
  return t === ee && (n = qi(n)), n;
443
443
  }
444
- const zt = (e, t) => {
444
+ const Ut = (e, t) => {
445
445
  const n = Ht(e), s = Ht(t);
446
446
  if (!n || !s)
447
447
  return Pe(e, t);
448
448
  const i = { ...n };
449
- return (r) => (i.red = je(n.red, s.red, r), i.green = je(n.green, s.green, r), i.blue = je(n.blue, s.blue, r), i.alpha = we(n.alpha, s.alpha, r), Y.transform(i));
450
- }, qe = /* @__PURE__ */ new Set(["none", "hidden"]);
449
+ return (r) => (i.red = We(n.red, s.red, r), i.green = We(n.green, s.green, r), i.blue = We(n.blue, s.blue, r), i.alpha = we(n.alpha, s.alpha, r), Y.transform(i));
450
+ }, Ze = /* @__PURE__ */ new Set(["none", "hidden"]);
451
451
  function Qi(e, t) {
452
- return qe.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
452
+ return Ze.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
453
453
  }
454
454
  function er(e, t) {
455
455
  return (n) => we(e, t, n);
456
456
  }
457
- function wt(e) {
458
- return typeof e == "number" ? er : typeof e == "string" ? yt(e) ? Pe : M.test(e) ? zt : sr : Array.isArray(e) ? qn : typeof e == "object" ? M.test(e) ? zt : tr : Pe;
457
+ function Tt(e) {
458
+ return typeof e == "number" ? er : typeof e == "string" ? bt(e) ? Pe : M.test(e) ? Ut : sr : Array.isArray(e) ? Zn : typeof e == "object" ? M.test(e) ? Ut : tr : Pe;
459
459
  }
460
- function qn(e, t) {
461
- const n = [...e], s = n.length, i = e.map((r, o) => wt(r)(r, t[o]));
460
+ function Zn(e, t) {
461
+ const n = [...e], s = n.length, i = e.map((r, o) => Tt(r)(r, t[o]));
462
462
  return (r) => {
463
463
  for (let o = 0; o < s; o++)
464
464
  n[o] = i[o](r);
@@ -468,7 +468,7 @@ function qn(e, t) {
468
468
  function tr(e, t) {
469
469
  const n = { ...e, ...t }, s = {};
470
470
  for (const i in n)
471
- e[i] !== void 0 && t[i] !== void 0 && (s[i] = wt(e[i])(e[i], t[i]));
471
+ e[i] !== void 0 && t[i] !== void 0 && (s[i] = Tt(e[i])(e[i], t[i]));
472
472
  return (i) => {
473
473
  for (const r in s)
474
474
  n[r] = s[r](i);
@@ -485,39 +485,39 @@ function nr(e, t) {
485
485
  }
486
486
  const sr = (e, t) => {
487
487
  const n = L.createTransformer(t), s = me(e), i = me(t);
488
- return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? qe.has(e) && !i.values.length || qe.has(t) && !s.values.length ? Qi(e, t) : Ee(qn(nr(s, i), i.values), n) : (ye(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Pe(e, t));
488
+ return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? Ze.has(e) && !i.values.length || Ze.has(t) && !s.values.length ? Qi(e, t) : Ee(Zn(nr(s, i), i.values), n) : (ye(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Pe(e, t));
489
489
  };
490
- function Zn(e, t, n) {
491
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? we(e, t, n) : wt(e)(e, t);
490
+ function Jn(e, t, n) {
491
+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? we(e, t, n) : Tt(e)(e, t);
492
492
  }
493
493
  const ir = (e) => {
494
494
  const t = ({ timestamp: n }) => e(n);
495
495
  return {
496
496
  start: (n = !0) => N.update(t, n),
497
- stop: () => Ye(t),
497
+ stop: () => Xe(t),
498
498
  /**
499
499
  * If we're processing this frame we can use the
500
500
  * framelocked timestamp to keep things in sync.
501
501
  */
502
502
  now: () => Ce.isProcessing ? Ce.timestamp : I.now()
503
503
  };
504
- }, Jn = (e, t, n = 10) => {
504
+ }, Qn = (e, t, n = 10) => {
505
505
  let s = "";
506
506
  const i = Math.max(Math.round(t / n), 2);
507
507
  for (let r = 0; r < i; r++)
508
508
  s += Math.round(e(r / (i - 1)) * 1e4) / 1e4 + ", ";
509
509
  return `linear(${s.substring(0, s.length - 2)})`;
510
- }, Fe = 2e4;
511
- function Tt(e) {
510
+ }, Re = 2e4;
511
+ function Vt(e) {
512
512
  let t = 0;
513
513
  const n = 50;
514
514
  let s = e.next(t);
515
- for (; !s.done && t < Fe; )
515
+ for (; !s.done && t < Re; )
516
516
  t += n, s = e.next(t);
517
- return t >= Fe ? 1 / 0 : t;
517
+ return t >= Re ? 1 / 0 : t;
518
518
  }
519
519
  function rr(e, t = 100, n) {
520
- const s = n({ ...e, keyframes: [0, t] }), i = Math.min(Tt(s), Fe);
520
+ const s = n({ ...e, keyframes: [0, t] }), i = Math.min(Vt(s), Re);
521
521
  return {
522
522
  type: "keyframes",
523
523
  ease: (r) => s.next(i * r).value / t,
@@ -525,9 +525,9 @@ function rr(e, t = 100, n) {
525
525
  };
526
526
  }
527
527
  const or = 5;
528
- function Qn(e, t, n) {
528
+ function es(e, t, n) {
529
529
  const s = Math.max(t - or, 0);
530
- return Dn(n - e(s), t - s);
530
+ return In(n - e(s), t - s);
531
531
  }
532
532
  const A = {
533
533
  // Default spring physics
@@ -557,52 +557,52 @@ const A = {
557
557
  // in seconds
558
558
  minDamping: 0.05,
559
559
  maxDamping: 1
560
- }, We = 1e-3;
560
+ }, _e = 1e-3;
561
561
  function ar({ duration: e = A.duration, bounce: t = A.bounce, velocity: n = A.velocity, mass: s = A.mass }) {
562
562
  let i, r;
563
563
  ye(e <= /* @__PURE__ */ K(A.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
564
564
  let o = 1 - t;
565
- o = H(A.minDamping, A.maxDamping, o), e = H(A.minDuration, A.maxDuration, /* @__PURE__ */ B(e)), o < 1 ? (i = (l) => {
566
- const u = l * o, d = u * e, f = u - n, h = Ze(l, o), p = Math.exp(-d);
567
- return We - f / h * p;
568
- }, r = (l) => {
569
- const d = l * o * e, f = d * n + n, h = Math.pow(o, 2) * Math.pow(l, 2) * e, p = Math.exp(-d), y = Ze(Math.pow(l, 2), o);
570
- return (-i(l) + We > 0 ? -1 : 1) * ((f - h) * p) / y;
571
- }) : (i = (l) => {
572
- const u = Math.exp(-l * e), d = (l - n) * e + 1;
573
- return -We + u * d;
574
- }, r = (l) => {
575
- const u = Math.exp(-l * e), d = (n - l) * (e * e);
565
+ o = z(A.minDamping, A.maxDamping, o), e = z(A.minDuration, A.maxDuration, /* @__PURE__ */ B(e)), o < 1 ? (i = (c) => {
566
+ const u = c * o, d = u * e, f = u - n, h = Je(c, o), p = Math.exp(-d);
567
+ return _e - f / h * p;
568
+ }, r = (c) => {
569
+ const d = c * o * e, f = d * n + n, h = Math.pow(o, 2) * Math.pow(c, 2) * e, p = Math.exp(-d), y = Je(Math.pow(c, 2), o);
570
+ return (-i(c) + _e > 0 ? -1 : 1) * ((f - h) * p) / y;
571
+ }) : (i = (c) => {
572
+ const u = Math.exp(-c * e), d = (c - n) * e + 1;
573
+ return -_e + u * d;
574
+ }, r = (c) => {
575
+ const u = Math.exp(-c * e), d = (n - c) * (e * e);
576
576
  return u * d;
577
577
  });
578
- const a = 5 / e, c = cr(i, r, a);
579
- if (e = /* @__PURE__ */ K(e), isNaN(c))
578
+ const a = 5 / e, l = lr(i, r, a);
579
+ if (e = /* @__PURE__ */ K(e), isNaN(l))
580
580
  return {
581
581
  stiffness: A.stiffness,
582
582
  damping: A.damping,
583
583
  duration: e
584
584
  };
585
585
  {
586
- const l = Math.pow(c, 2) * s;
586
+ const c = Math.pow(l, 2) * s;
587
587
  return {
588
- stiffness: l,
589
- damping: o * 2 * Math.sqrt(s * l),
588
+ stiffness: c,
589
+ damping: o * 2 * Math.sqrt(s * c),
590
590
  duration: e
591
591
  };
592
592
  }
593
593
  }
594
594
  const ur = 12;
595
- function cr(e, t, n) {
595
+ function lr(e, t, n) {
596
596
  let s = n;
597
597
  for (let i = 1; i < ur; i++)
598
598
  s = s - e(s) / t(s);
599
599
  return s;
600
600
  }
601
- function Ze(e, t) {
601
+ function Je(e, t) {
602
602
  return e * Math.sqrt(1 - t * t);
603
603
  }
604
- const lr = ["duration", "bounce"], fr = ["stiffness", "damping", "mass"];
605
- function Ut(e, t) {
604
+ const cr = ["duration", "bounce"], fr = ["stiffness", "damping", "mass"];
605
+ function Yt(e, t) {
606
606
  return t.some((n) => e[n] !== void 0);
607
607
  }
608
608
  function dr(e) {
@@ -614,9 +614,9 @@ function dr(e) {
614
614
  isResolvedFromDuration: !1,
615
615
  ...e
616
616
  };
617
- if (!Ut(e, fr) && Ut(e, lr))
617
+ if (!Yt(e, fr) && Yt(e, cr))
618
618
  if (t.velocity = 0, e.visualDuration) {
619
- const n = e.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, r = 2 * H(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
619
+ const n = e.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, r = 2 * z(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
620
620
  t = {
621
621
  ...t,
622
622
  mass: A.mass,
@@ -633,21 +633,21 @@ function dr(e) {
633
633
  }
634
634
  return t;
635
635
  }
636
- function Re(e = A.visualDuration, t = A.bounce) {
636
+ function Fe(e = A.visualDuration, t = A.bounce) {
637
637
  const n = typeof e != "object" ? {
638
638
  visualDuration: e,
639
639
  keyframes: [0, 1],
640
640
  bounce: t
641
641
  } : e;
642
642
  let { restSpeed: s, restDelta: i } = n;
643
- const r = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: r }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: h } = dr({
643
+ const r = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: r }, { stiffness: l, damping: c, mass: u, duration: d, velocity: f, isResolvedFromDuration: h } = dr({
644
644
  ...n,
645
645
  velocity: -/* @__PURE__ */ B(n.velocity || 0)
646
- }), p = f || 0, y = l / (2 * Math.sqrt(c * u)), b = o - r, g = /* @__PURE__ */ B(Math.sqrt(c / u)), T = Math.abs(b) < 5;
646
+ }), p = f || 0, y = c / (2 * Math.sqrt(l * u)), b = o - r, g = /* @__PURE__ */ B(Math.sqrt(l / u)), T = Math.abs(b) < 5;
647
647
  s || (s = T ? A.restSpeed.granular : A.restSpeed.default), i || (i = T ? A.restDelta.granular : A.restDelta.default);
648
648
  let v;
649
649
  if (y < 1) {
650
- const w = Ze(g, y);
650
+ const w = Je(g, y);
651
651
  v = (x) => {
652
652
  const C = Math.exp(-y * g * x);
653
653
  return o - C * ((p + y * g * b) / w * Math.sin(w * x) + b * Math.cos(w * x));
@@ -669,14 +669,14 @@ function Re(e = A.visualDuration, t = A.bounce) {
669
669
  a.done = w >= d;
670
670
  else {
671
671
  let C = w === 0 ? p : 0;
672
- y < 1 && (C = w === 0 ? /* @__PURE__ */ K(p) : Qn(v, w, x));
672
+ y < 1 && (C = w === 0 ? /* @__PURE__ */ K(p) : es(v, w, x));
673
673
  const V = Math.abs(C) <= s, D = Math.abs(o - x) <= i;
674
674
  a.done = V && D;
675
675
  }
676
676
  return a.value = a.done ? o : x, a;
677
677
  },
678
678
  toString: () => {
679
- const w = Math.min(Tt(S), Fe), x = Jn((C) => S.next(w * C).value, w, 30);
679
+ const w = Math.min(Vt(S), Re), x = Qn((C) => S.next(w * C).value, w, 30);
680
680
  return w + "ms " + x;
681
681
  },
682
682
  toTransition: () => {
@@ -684,31 +684,31 @@ function Re(e = A.visualDuration, t = A.bounce) {
684
684
  };
685
685
  return S;
686
686
  }
687
- Re.applyToOptions = (e) => {
688
- const t = rr(e, 100, Re);
687
+ Fe.applyToOptions = (e) => {
688
+ const t = rr(e, 100, Fe);
689
689
  return e.ease = t.ease, e.duration = /* @__PURE__ */ K(t.duration), e.type = "keyframes", e;
690
690
  };
691
- function Je({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: r = 500, modifyTarget: o, min: a, max: c, restDelta: l = 0.5, restSpeed: u }) {
691
+ function Qe({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: r = 500, modifyTarget: o, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
692
692
  const d = e[0], f = {
693
693
  done: !1,
694
694
  value: d
695
- }, h = (V) => a !== void 0 && V < a || c !== void 0 && V > c, p = (V) => a === void 0 ? c : c === void 0 || Math.abs(a - V) < Math.abs(c - V) ? a : c;
695
+ }, h = (V) => a !== void 0 && V < a || l !== void 0 && V > l, p = (V) => a === void 0 ? l : l === void 0 || Math.abs(a - V) < Math.abs(l - V) ? a : l;
696
696
  let y = n * t;
697
697
  const b = d + y, g = o === void 0 ? b : o(b);
698
698
  g !== b && (y = g - d);
699
699
  const T = (V) => -y * Math.exp(-V / s), v = (V) => g + T(V), S = (V) => {
700
700
  const D = T(V), k = v(V);
701
- f.done = Math.abs(D) <= l, f.value = f.done ? g : k;
701
+ f.done = Math.abs(D) <= c, f.value = f.done ? g : k;
702
702
  };
703
703
  let w, x;
704
704
  const C = (V) => {
705
- h(f.value) && (w = V, x = Re({
705
+ h(f.value) && (w = V, x = Fe({
706
706
  keyframes: [f.value, p(f.value)],
707
- velocity: Qn(v, V, f.value),
707
+ velocity: es(v, V, f.value),
708
708
  // TODO: This should be passing * 1000
709
709
  damping: i,
710
710
  stiffness: r,
711
- restDelta: l,
711
+ restDelta: c,
712
712
  restSpeed: u
713
713
  }));
714
714
  };
@@ -721,12 +721,12 @@ function Je({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
721
721
  };
722
722
  }
723
723
  function hr(e, t, n) {
724
- const s = [], i = n || $.mix || Zn, r = e.length - 1;
724
+ const s = [], i = n || $.mix || Jn, r = e.length - 1;
725
725
  for (let o = 0; o < r; o++) {
726
726
  let a = i(e[o], e[o + 1]);
727
727
  if (t) {
728
- const c = Array.isArray(t) ? t[o] || oe : t;
729
- a = Ee(c, a);
728
+ const l = Array.isArray(t) ? t[o] || oe : t;
729
+ a = Ee(l, a);
730
730
  }
731
731
  s.push(a);
732
732
  }
@@ -740,17 +740,17 @@ function pr(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
740
740
  return () => t[1];
741
741
  const o = e[0] === e[1];
742
742
  e[0] > e[r - 1] && (e = [...e].reverse(), t = [...t].reverse());
743
- const a = hr(t, s, i), c = a.length, l = (u) => {
743
+ const a = hr(t, s, i), l = a.length, c = (u) => {
744
744
  if (o && u < e[0])
745
745
  return t[0];
746
746
  let d = 0;
747
- if (c > 1)
747
+ if (l > 1)
748
748
  for (; d < e.length - 2 && !(u < e[d + 1]); d++)
749
749
  ;
750
750
  const f = /* @__PURE__ */ Fn(e[d], e[d + 1], u);
751
751
  return a[d](f);
752
752
  };
753
- return n ? (u) => l(H(e[0], e[r - 1], u)) : l;
753
+ return n ? (u) => c(z(e[0], e[r - 1], u)) : c;
754
754
  }
755
755
  function mr(e, t) {
756
756
  const n = e[e.length - 1];
@@ -767,10 +767,10 @@ function yr(e, t) {
767
767
  return e.map((n) => n * t);
768
768
  }
769
769
  function br(e, t) {
770
- return e.map(() => t || $n).splice(0, e.length - 1);
770
+ return e.map(() => t || jn).splice(0, e.length - 1);
771
771
  }
772
772
  function te({ duration: e = 300, keyframes: t, times: n, ease: s = "easeInOut" }) {
773
- const i = Ri(s) ? s.map(jt) : jt(s), r = {
773
+ const i = Fi(s) ? s.map(Wt) : Wt(s), r = {
774
774
  done: !1,
775
775
  value: t[0]
776
776
  }, o = yr(
@@ -783,25 +783,25 @@ function te({ duration: e = 300, keyframes: t, times: n, ease: s = "easeInOut" }
783
783
  });
784
784
  return {
785
785
  calculatedDuration: e,
786
- next: (c) => (r.value = a(c), r.done = c >= e, r)
786
+ next: (l) => (r.value = a(l), r.done = l >= e, r)
787
787
  };
788
788
  }
789
789
  const vr = (e) => e !== null;
790
- function Vt(e, { repeat: t, repeatType: n = "loop" }, s, i = 1) {
790
+ function St(e, { repeat: t, repeatType: n = "loop" }, s, i = 1) {
791
791
  const r = e.filter(vr), a = i < 0 || t && n !== "loop" && t % 2 === 1 ? 0 : r.length - 1;
792
792
  return !a || s === void 0 ? r[a] : s;
793
793
  }
794
794
  const wr = {
795
- decay: Je,
796
- inertia: Je,
795
+ decay: Qe,
796
+ inertia: Qe,
797
797
  tween: te,
798
798
  keyframes: te,
799
- spring: Re
799
+ spring: Fe
800
800
  };
801
- function es(e) {
801
+ function ts(e) {
802
802
  typeof e.type == "string" && (e.type = wr[e.type]);
803
803
  }
804
- class St {
804
+ class xt {
805
805
  constructor() {
806
806
  this.updateFinished();
807
807
  }
@@ -826,7 +826,7 @@ class St {
826
826
  }
827
827
  }
828
828
  const Tr = (e) => e / 100;
829
- class xt extends St {
829
+ class At extends xt {
830
830
  constructor(t) {
831
831
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
832
832
  var s, i;
@@ -836,44 +836,44 @@ class xt extends St {
836
836
  }
837
837
  initAnimation() {
838
838
  const { options: t } = this;
839
- es(t);
839
+ ts(t);
840
840
  const { type: n = te, repeat: s = 0, repeatDelay: i = 0, repeatType: r, velocity: o = 0 } = t;
841
841
  let { keyframes: a } = t;
842
- const c = n || te;
843
- process.env.NODE_ENV !== "production" && c !== te && Z(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), c !== te && typeof a[0] != "number" && (this.mixKeyframes = Ee(Tr, Zn(a[0], a[1])), a = [0, 100]);
844
- const l = c({ ...t, keyframes: a });
845
- r === "mirror" && (this.mirroredGenerator = c({
842
+ const l = n || te;
843
+ process.env.NODE_ENV !== "production" && l !== te && Z(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== te && typeof a[0] != "number" && (this.mixKeyframes = Ee(Tr, Jn(a[0], a[1])), a = [0, 100]);
844
+ const c = l({ ...t, keyframes: a });
845
+ r === "mirror" && (this.mirroredGenerator = l({
846
846
  ...t,
847
847
  keyframes: [...a].reverse(),
848
848
  velocity: -o
849
- })), l.calculatedDuration === null && (l.calculatedDuration = Tt(l));
850
- const { calculatedDuration: u } = l;
851
- this.calculatedDuration = u, this.resolvedDuration = u + i, this.totalDuration = this.resolvedDuration * (s + 1) - i, this.generator = l;
849
+ })), c.calculatedDuration === null && (c.calculatedDuration = Vt(c));
850
+ const { calculatedDuration: u } = c;
851
+ this.calculatedDuration = u, this.resolvedDuration = u + i, this.totalDuration = this.resolvedDuration * (s + 1) - i, this.generator = c;
852
852
  }
853
853
  updateTime(t) {
854
854
  const n = Math.round(t - this.startTime) * this.playbackSpeed;
855
855
  this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = n;
856
856
  }
857
857
  tick(t, n = !1) {
858
- const { generator: s, totalDuration: i, mixKeyframes: r, mirroredGenerator: o, resolvedDuration: a, calculatedDuration: c } = this;
858
+ const { generator: s, totalDuration: i, mixKeyframes: r, mirroredGenerator: o, resolvedDuration: a, calculatedDuration: l } = this;
859
859
  if (this.startTime === null)
860
860
  return s.next(0);
861
- const { delay: l = 0, keyframes: u, repeat: d, repeatType: f, repeatDelay: h, type: p, onUpdate: y, finalKeyframe: b } = this.options;
861
+ const { delay: c = 0, keyframes: u, repeat: d, repeatType: f, repeatDelay: h, type: p, onUpdate: y, finalKeyframe: b } = this.options;
862
862
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - i / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
863
- const g = this.currentTime - l * (this.playbackSpeed >= 0 ? 1 : -1), T = this.playbackSpeed >= 0 ? g < 0 : g > i;
863
+ const g = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), T = this.playbackSpeed >= 0 ? g < 0 : g > i;
864
864
  this.currentTime = Math.max(g, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
865
865
  let v = this.currentTime, S = s;
866
866
  if (d) {
867
867
  const V = Math.min(this.currentTime, i) / a;
868
868
  let D = Math.floor(V), k = V % 1;
869
- !k && V >= 1 && (k = 1), k === 1 && D--, D = Math.min(D, d + 1), !!(D % 2) && (f === "reverse" ? (k = 1 - k, h && (k -= h / a)) : f === "mirror" && (S = o)), v = H(0, 1, k) * a;
869
+ !k && V >= 1 && (k = 1), k === 1 && D--, D = Math.min(D, d + 1), !!(D % 2) && (f === "reverse" ? (k = 1 - k, h && (k -= h / a)) : f === "mirror" && (S = o)), v = z(0, 1, k) * a;
870
870
  }
871
871
  const w = T ? { done: !1, value: u[0] } : S.next(v);
872
872
  r && (w.value = r(w.value));
873
873
  let { done: x } = w;
874
- !T && c !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
874
+ !T && l !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
875
875
  const C = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
876
- return C && p !== Je && (w.value = Vt(u, this.options, b, this.speed)), y && y(w.value), C && this.finish(), w;
876
+ return C && p !== Qe && (w.value = St(u, this.options, b, this.speed)), y && y(w.value), C && this.finish(), w;
877
877
  }
878
878
  /**
879
879
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -946,9 +946,9 @@ function Vr(e) {
946
946
  for (let t = 1; t < e.length; t++)
947
947
  e[t] ?? (e[t] = e[t - 1]);
948
948
  }
949
- const X = (e) => e * 180 / Math.PI, Qe = (e) => {
949
+ const X = (e) => e * 180 / Math.PI, et = (e) => {
950
950
  const t = X(Math.atan2(e[1], e[0]));
951
- return et(t);
951
+ return tt(t);
952
952
  }, Sr = {
953
953
  x: 4,
954
954
  y: 5,
@@ -957,35 +957,35 @@ const X = (e) => e * 180 / Math.PI, Qe = (e) => {
957
957
  scaleX: 0,
958
958
  scaleY: 3,
959
959
  scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
960
- rotate: Qe,
961
- rotateZ: Qe,
960
+ rotate: et,
961
+ rotateZ: et,
962
962
  skewX: (e) => X(Math.atan(e[1])),
963
963
  skewY: (e) => X(Math.atan(e[2])),
964
964
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
965
- }, et = (e) => (e = e % 360, e < 0 && (e += 360), e), Yt = Qe, Xt = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), qt = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), xr = {
965
+ }, tt = (e) => (e = e % 360, e < 0 && (e += 360), e), Xt = et, qt = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Zt = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), xr = {
966
966
  x: 12,
967
967
  y: 13,
968
968
  z: 14,
969
969
  translateX: 12,
970
970
  translateY: 13,
971
971
  translateZ: 14,
972
- scaleX: Xt,
973
- scaleY: qt,
974
- scale: (e) => (Xt(e) + qt(e)) / 2,
975
- rotateX: (e) => et(X(Math.atan2(e[6], e[5]))),
976
- rotateY: (e) => et(X(Math.atan2(-e[2], e[0]))),
977
- rotateZ: Yt,
978
- rotate: Yt,
972
+ scaleX: qt,
973
+ scaleY: Zt,
974
+ scale: (e) => (qt(e) + Zt(e)) / 2,
975
+ rotateX: (e) => tt(X(Math.atan2(e[6], e[5]))),
976
+ rotateY: (e) => tt(X(Math.atan2(-e[2], e[0]))),
977
+ rotateZ: Xt,
978
+ rotate: Xt,
979
979
  skewX: (e) => X(Math.atan(e[4])),
980
980
  skewY: (e) => X(Math.atan(e[1])),
981
981
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
982
982
  };
983
- function tt(e) {
983
+ function nt(e) {
984
984
  return e.includes("scale") ? 1 : 0;
985
985
  }
986
- function nt(e, t) {
986
+ function st(e, t) {
987
987
  if (!e || e === "none")
988
- return tt(t);
988
+ return nt(t);
989
989
  const n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
990
990
  let s, i;
991
991
  if (n)
@@ -995,13 +995,13 @@ function nt(e, t) {
995
995
  s = Sr, i = a;
996
996
  }
997
997
  if (!i)
998
- return tt(t);
998
+ return nt(t);
999
999
  const r = s[t], o = i[1].split(",").map(Mr);
1000
1000
  return typeof r == "function" ? r(o) : o[r];
1001
1001
  }
1002
1002
  const Ar = (e, t) => {
1003
1003
  const { transform: n = "none" } = getComputedStyle(e);
1004
- return nt(n, t);
1004
+ return st(n, t);
1005
1005
  };
1006
1006
  function Mr(e) {
1007
1007
  return parseFloat(e.trim());
@@ -1024,8 +1024,8 @@ const ue = [
1024
1024
  "skew",
1025
1025
  "skewX",
1026
1026
  "skewY"
1027
- ], ce = new Set(ue), Zt = (e) => e === ae || e === m, Cr = /* @__PURE__ */ new Set(["x", "y", "z"]), Pr = ue.filter((e) => !Cr.has(e));
1028
- function Fr(e) {
1027
+ ], le = new Set(ue), Jt = (e) => e === ae || e === m, Cr = /* @__PURE__ */ new Set(["x", "y", "z"]), Pr = ue.filter((e) => !Cr.has(e));
1028
+ function Rr(e) {
1029
1029
  const t = [];
1030
1030
  return Pr.forEach((n) => {
1031
1031
  const s = e.getValue(n);
@@ -1041,18 +1041,18 @@ const _ = {
1041
1041
  bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
1042
1042
  right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
1043
1043
  // Transform
1044
- x: (e, { transform: t }) => nt(t, "x"),
1045
- y: (e, { transform: t }) => nt(t, "y")
1044
+ x: (e, { transform: t }) => st(t, "x"),
1045
+ y: (e, { transform: t }) => st(t, "y")
1046
1046
  };
1047
1047
  _.translateX = _.x;
1048
1048
  _.translateY = _.y;
1049
1049
  const q = /* @__PURE__ */ new Set();
1050
- let st = !1, it = !1, rt = !1;
1051
- function ts() {
1052
- if (it) {
1050
+ let it = !1, rt = !1, ot = !1;
1051
+ function ns() {
1052
+ if (rt) {
1053
1053
  const e = Array.from(q).filter((s) => s.needsMeasurement), t = new Set(e.map((s) => s.element)), n = /* @__PURE__ */ new Map();
1054
1054
  t.forEach((s) => {
1055
- const i = Fr(s);
1055
+ const i = Rr(s);
1056
1056
  i.length && (n.set(s, i), s.render());
1057
1057
  }), e.forEach((s) => s.measureInitialState()), t.forEach((s) => {
1058
1058
  s.render();
@@ -1065,22 +1065,22 @@ function ts() {
1065
1065
  s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
1066
1066
  });
1067
1067
  }
1068
- it = !1, st = !1, q.forEach((e) => e.complete(rt)), q.clear();
1068
+ rt = !1, it = !1, q.forEach((e) => e.complete(ot)), q.clear();
1069
1069
  }
1070
- function ns() {
1070
+ function ss() {
1071
1071
  q.forEach((e) => {
1072
- e.readKeyframes(), e.needsMeasurement && (it = !0);
1072
+ e.readKeyframes(), e.needsMeasurement && (rt = !0);
1073
1073
  });
1074
1074
  }
1075
- function Rr() {
1076
- rt = !0, ns(), ts(), rt = !1;
1075
+ function Fr() {
1076
+ ot = !0, ss(), ns(), ot = !1;
1077
1077
  }
1078
- class At {
1078
+ class Mt {
1079
1079
  constructor(t, n, s, i, r, o = !1) {
1080
1080
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = s, this.motionValue = i, this.element = r, this.isAsync = o;
1081
1081
  }
1082
1082
  scheduleResolve() {
1083
- this.state = "scheduled", this.isAsync ? (q.add(this), st || (st = !0, N.read(ns), N.resolveKeyframes(ts))) : (this.readKeyframes(), this.complete());
1083
+ this.state = "scheduled", this.isAsync ? (q.add(this), it || (it = !0, N.read(ss), N.resolveKeyframes(ns))) : (this.readKeyframes(), this.complete());
1084
1084
  }
1085
1085
  readKeyframes() {
1086
1086
  const { unresolvedKeyframes: t, name: n, element: s, motionValue: i } = this;
@@ -1119,18 +1119,18 @@ function Ir(e, t, n) {
1119
1119
  Dr(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1120
1120
  }
1121
1121
  const kr = {};
1122
- function ss(e, t) {
1123
- const n = /* @__PURE__ */ Pn(e);
1122
+ function is(e, t) {
1123
+ const n = /* @__PURE__ */ Rn(e);
1124
1124
  return () => kr[t] ?? n();
1125
1125
  }
1126
- const Or = /* @__PURE__ */ ss(() => window.ScrollTimeline !== void 0, "scrollTimeline"), is = /* @__PURE__ */ ss(() => {
1126
+ const Or = /* @__PURE__ */ is(() => window.ScrollTimeline !== void 0, "scrollTimeline"), rs = /* @__PURE__ */ is(() => {
1127
1127
  try {
1128
1128
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1129
1129
  } catch {
1130
1130
  return !1;
1131
1131
  }
1132
1132
  return !0;
1133
- }, "linearEasing"), de = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, Jt = {
1133
+ }, "linearEasing"), de = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, Qt = {
1134
1134
  linear: "linear",
1135
1135
  ease: "ease",
1136
1136
  easeIn: "ease-in",
@@ -1141,16 +1141,16 @@ const Or = /* @__PURE__ */ ss(() => window.ScrollTimeline !== void 0, "scrollTim
1141
1141
  backIn: /* @__PURE__ */ de([0.31, 0.01, 0.66, -0.59]),
1142
1142
  backOut: /* @__PURE__ */ de([0.33, 1.53, 0.69, 0.99])
1143
1143
  };
1144
- function rs(e, t) {
1144
+ function os(e, t) {
1145
1145
  if (e)
1146
- return typeof e == "function" ? is() ? Jn(e, t) : "ease-out" : jn(e) ? de(e) : Array.isArray(e) ? e.map((n) => rs(n, t) || Jt.easeOut) : Jt[e];
1146
+ return typeof e == "function" ? rs() ? Qn(e, t) : "ease-out" : Wn(e) ? de(e) : Array.isArray(e) ? e.map((n) => os(n, t) || Qt.easeOut) : Qt[e];
1147
1147
  }
1148
- function Er(e, t, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatType: o = "loop", ease: a = "easeOut", times: c } = {}, l = void 0) {
1148
+ function Er(e, t, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatType: o = "loop", ease: a = "easeOut", times: l } = {}, c = void 0) {
1149
1149
  const u = {
1150
1150
  [t]: n
1151
1151
  };
1152
- c && (u.offset = c);
1153
- const d = rs(a, i);
1152
+ l && (u.offset = l);
1153
+ const d = os(a, i);
1154
1154
  Array.isArray(d) && (u.easing = d);
1155
1155
  const f = {
1156
1156
  delay: s,
@@ -1160,27 +1160,27 @@ function Er(e, t, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatTyp
1160
1160
  iterations: r + 1,
1161
1161
  direction: o === "reverse" ? "alternate" : "normal"
1162
1162
  };
1163
- return l && (f.pseudoElement = l), e.animate(u, f);
1163
+ return c && (f.pseudoElement = c), e.animate(u, f);
1164
1164
  }
1165
- function os(e) {
1165
+ function as(e) {
1166
1166
  return typeof e == "function" && "applyToOptions" in e;
1167
1167
  }
1168
1168
  function Br({ type: e, ...t }) {
1169
- return os(e) && is() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
1169
+ return as(e) && rs() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
1170
1170
  }
1171
- class as extends St {
1171
+ class us extends xt {
1172
1172
  constructor(t) {
1173
1173
  if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !t)
1174
1174
  return;
1175
- const { element: n, name: s, keyframes: i, pseudoElement: r, allowFlatten: o = !1, finalKeyframe: a, onComplete: c } = t;
1175
+ const { element: n, name: s, keyframes: i, pseudoElement: r, allowFlatten: o = !1, finalKeyframe: a, onComplete: l } = t;
1176
1176
  this.isPseudoElement = !!r, this.allowFlatten = o, this.options = t, Z(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1177
- const l = Br(t);
1178
- this.animation = Er(n, s, i, l, r), l.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1177
+ const c = Br(t);
1178
+ this.animation = Er(n, s, i, c, r), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1179
1179
  if (this.finishedTime = this.time, !r) {
1180
- const u = Vt(i, this.options, a, this.speed);
1180
+ const u = St(i, this.options, a, this.speed);
1181
1181
  this.updateMotionValue ? this.updateMotionValue(u) : Ir(n, s, u), this.animation.cancel();
1182
1182
  }
1183
- c == null || c(), this.notifyFinished();
1183
+ l == null || l(), this.notifyFinished();
1184
1184
  };
1185
1185
  }
1186
1186
  play() {
@@ -1265,21 +1265,21 @@ class as extends St {
1265
1265
  return this.allowFlatten && ((s = this.animation.effect) == null || s.updateTiming({ easing: "linear" })), this.animation.onfinish = null, t && Or() ? (this.animation.timeline = t, oe) : n(this);
1266
1266
  }
1267
1267
  }
1268
- const us = {
1269
- anticipate: Nn,
1270
- backInOut: Ln,
1271
- circInOut: Kn
1268
+ const ls = {
1269
+ anticipate: Kn,
1270
+ backInOut: Nn,
1271
+ circInOut: $n
1272
1272
  };
1273
1273
  function Lr(e) {
1274
- return e in us;
1274
+ return e in ls;
1275
1275
  }
1276
1276
  function Nr(e) {
1277
- typeof e.ease == "string" && Lr(e.ease) && (e.ease = us[e.ease]);
1277
+ typeof e.ease == "string" && Lr(e.ease) && (e.ease = ls[e.ease]);
1278
1278
  }
1279
- const _e = 10;
1280
- class Kr extends as {
1279
+ const Ge = 10;
1280
+ class Kr extends us {
1281
1281
  constructor(t) {
1282
- Nr(t), es(t), super(t), t.startTime !== void 0 && (this.startTime = t.startTime), this.options = t;
1282
+ Nr(t), ts(t), super(t), t.startTime !== void 0 && (this.startTime = t.startTime), this.options = t;
1283
1283
  }
1284
1284
  /**
1285
1285
  * WAAPI doesn't natively have any interruption capabilities.
@@ -1297,14 +1297,14 @@ class Kr extends as {
1297
1297
  n.set(t);
1298
1298
  return;
1299
1299
  }
1300
- const a = new xt({
1300
+ const a = new At({
1301
1301
  ...o,
1302
1302
  autoplay: !1
1303
- }), c = Math.max(_e, I.now() - this.startTime), l = H(0, _e, c - _e);
1304
- n.setWithVelocity(a.sample(Math.max(0, c - l)).value, a.sample(c).value, l), a.stop();
1303
+ }), l = Math.max(Ge, I.now() - this.startTime), c = z(0, Ge, l - Ge);
1304
+ n.setWithVelocity(a.sample(Math.max(0, l - c)).value, a.sample(l).value, c), a.stop();
1305
1305
  }
1306
1306
  }
1307
- const Qt = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1307
+ const en = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1308
1308
  (L.test(e) || e === "0") && // And it contains numbers and/or colors
1309
1309
  !e.startsWith("url("));
1310
1310
  function $r(e) {
@@ -1321,10 +1321,10 @@ function jr(e, t, n, s) {
1321
1321
  return !1;
1322
1322
  if (t === "display" || t === "visibility")
1323
1323
  return !0;
1324
- const r = e[e.length - 1], o = Qt(i, t), a = Qt(r, t);
1325
- return ye(o === a, `You are trying to animate ${t} from "${i}" to "${r}". "${o ? r : i}" is not an animatable value.`, "value-not-animatable"), !o || !a ? !1 : $r(e) || (n === "spring" || os(n)) && s;
1324
+ const r = e[e.length - 1], o = en(i, t), a = en(r, t);
1325
+ return ye(o === a, `You are trying to animate ${t} from "${i}" to "${r}". "${o ? r : i}" is not an animatable value.`, "value-not-animatable"), !o || !a ? !1 : $r(e) || (n === "spring" || as(n)) && s;
1326
1326
  }
1327
- function ot(e) {
1327
+ function at(e) {
1328
1328
  e.duration = 0, e.type = "keyframes";
1329
1329
  }
1330
1330
  const Wr = /* @__PURE__ */ new Set([
@@ -1334,22 +1334,22 @@ const Wr = /* @__PURE__ */ new Set([
1334
1334
  "transform"
1335
1335
  // TODO: Could be re-enabled now we have support for linear() easing
1336
1336
  // "background-color"
1337
- ]), _r = /* @__PURE__ */ Pn(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1337
+ ]), _r = /* @__PURE__ */ Rn(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1338
1338
  function Gr(e) {
1339
1339
  var u;
1340
1340
  const { motionValue: t, name: n, repeatDelay: s, repeatType: i, damping: r, type: o } = e;
1341
1341
  if (!(((u = t == null ? void 0 : t.owner) == null ? void 0 : u.current) instanceof HTMLElement))
1342
1342
  return !1;
1343
- const { onUpdate: c, transformTemplate: l } = t.owner.getProps();
1344
- return _r() && n && Wr.has(n) && (n !== "transform" || !l) && /**
1343
+ const { onUpdate: l, transformTemplate: c } = t.owner.getProps();
1344
+ return _r() && n && Wr.has(n) && (n !== "transform" || !c) && /**
1345
1345
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
1346
1346
  * no way to read the value from WAAPI every frame.
1347
1347
  */
1348
- !c && !s && i !== "mirror" && r !== 0 && o !== "inertia";
1348
+ !l && !s && i !== "mirror" && r !== 0 && o !== "inertia";
1349
1349
  }
1350
- const Hr = 40;
1351
- class zr extends St {
1352
- constructor({ autoplay: t = !0, delay: n = 0, type: s = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: o = "loop", keyframes: a, name: c, motionValue: l, element: u, ...d }) {
1350
+ const zr = 40;
1351
+ class Hr extends xt {
1352
+ constructor({ autoplay: t = !0, delay: n = 0, type: s = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: o = "loop", keyframes: a, name: l, motionValue: c, element: u, ...d }) {
1353
1353
  var p;
1354
1354
  super(), this.stop = () => {
1355
1355
  var y, b;
@@ -1362,27 +1362,27 @@ class zr extends St {
1362
1362
  repeat: i,
1363
1363
  repeatDelay: r,
1364
1364
  repeatType: o,
1365
- name: c,
1366
- motionValue: l,
1365
+ name: l,
1366
+ motionValue: c,
1367
1367
  element: u,
1368
1368
  ...d
1369
- }, h = (u == null ? void 0 : u.KeyframeResolver) || At;
1370
- this.keyframeResolver = new h(a, (y, b, g) => this.onKeyframesResolved(y, b, f, !g), c, l, u), (p = this.keyframeResolver) == null || p.scheduleResolve();
1369
+ }, h = (u == null ? void 0 : u.KeyframeResolver) || Mt;
1370
+ this.keyframeResolver = new h(a, (y, b, g) => this.onKeyframesResolved(y, b, f, !g), l, c, u), (p = this.keyframeResolver) == null || p.scheduleResolve();
1371
1371
  }
1372
1372
  onKeyframesResolved(t, n, s, i) {
1373
1373
  var b, g;
1374
1374
  this.keyframeResolver = void 0;
1375
- const { name: r, type: o, velocity: a, delay: c, isHandoff: l, onUpdate: u } = s;
1376
- this.resolvedAt = I.now(), jr(t, r, o, a) || (($.instantAnimations || !c) && (u == null || u(Vt(t, s, n))), t[0] = t[t.length - 1], ot(s), s.repeat = 0);
1375
+ const { name: r, type: o, velocity: a, delay: l, isHandoff: c, onUpdate: u } = s;
1376
+ this.resolvedAt = I.now(), jr(t, r, o, a) || (($.instantAnimations || !l) && (u == null || u(St(t, s, n))), t[0] = t[t.length - 1], at(s), s.repeat = 0);
1377
1377
  const f = {
1378
- startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > Hr ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1378
+ startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > zr ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1379
1379
  finalKeyframe: n,
1380
1380
  ...s,
1381
1381
  keyframes: t
1382
- }, h = !l && Gr(f), p = (g = (b = f.motionValue) == null ? void 0 : b.owner) == null ? void 0 : g.current, y = h ? new Kr({
1382
+ }, h = !c && Gr(f), p = (g = (b = f.motionValue) == null ? void 0 : b.owner) == null ? void 0 : g.current, y = h ? new Kr({
1383
1383
  ...f,
1384
1384
  element: p
1385
- }) : new xt(f);
1385
+ }) : new At(f);
1386
1386
  y.finished.then(() => {
1387
1387
  this.notifyFinished();
1388
1388
  }).catch(oe), this.pendingTimeline && (this.stopTimeline = y.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = y;
@@ -1396,7 +1396,7 @@ class zr extends St {
1396
1396
  }
1397
1397
  get animation() {
1398
1398
  var t;
1399
- return this._animation || ((t = this.keyframeResolver) == null || t.resume(), Rr()), this._animation;
1399
+ return this._animation || ((t = this.keyframeResolver) == null || t.resume(), Fr()), this._animation;
1400
1400
  }
1401
1401
  get duration() {
1402
1402
  return this.animation.duration;
@@ -1440,7 +1440,7 @@ class zr extends St {
1440
1440
  }
1441
1441
  }
1442
1442
  function cs(e, t, n, s = 0, i = 1) {
1443
- const r = Array.from(e).sort((l, u) => l.sortNodePosition(u)).indexOf(t), o = e.size, a = (o - 1) * s;
1443
+ const r = Array.from(e).sort((c, u) => c.sortNodePosition(u)).indexOf(t), o = e.size, a = (o - 1) * s;
1444
1444
  return typeof n == "function" ? n(r, o) : i === 1 ? r * s : a - r * s;
1445
1445
  }
1446
1446
  const Ur = (
@@ -1455,7 +1455,7 @@ function Yr(e) {
1455
1455
  return [`--${n ?? s}`, i];
1456
1456
  }
1457
1457
  const Xr = 4;
1458
- function ls(e, t, n = 1) {
1458
+ function fs(e, t, n = 1) {
1459
1459
  Z(n <= Xr, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1460
1460
  const [s, i] = Yr(e);
1461
1461
  if (!s)
@@ -1463,9 +1463,9 @@ function ls(e, t, n = 1) {
1463
1463
  const r = window.getComputedStyle(t).getPropertyValue(s);
1464
1464
  if (r) {
1465
1465
  const o = r.trim();
1466
- return Mn(o) ? parseFloat(o) : o;
1466
+ return Cn(o) ? parseFloat(o) : o;
1467
1467
  }
1468
- return yt(i) ? ls(i, t, n + 1) : i;
1468
+ return bt(i) ? fs(i, t, n + 1) : i;
1469
1469
  }
1470
1470
  const qr = {
1471
1471
  type: "spring",
@@ -1484,35 +1484,35 @@ const qr = {
1484
1484
  type: "keyframes",
1485
1485
  ease: [0.25, 0.1, 0.35, 1],
1486
1486
  duration: 0.3
1487
- }, eo = (e, { keyframes: t }) => t.length > 2 ? Jr : ce.has(e) ? e.startsWith("scale") ? Zr(t[1]) : qr : Qr, to = (e) => e !== null;
1487
+ }, eo = (e, { keyframes: t }) => t.length > 2 ? Jr : le.has(e) ? e.startsWith("scale") ? Zr(t[1]) : qr : Qr, to = (e) => e !== null;
1488
1488
  function no(e, { repeat: t, repeatType: n = "loop" }, s) {
1489
1489
  const i = e.filter(to), r = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
1490
1490
  return i[r];
1491
1491
  }
1492
- function fs(e, t) {
1492
+ function ds(e, t) {
1493
1493
  if (e != null && e.inherit && t) {
1494
1494
  const { inherit: n, ...s } = e;
1495
1495
  return { ...t, ...s };
1496
1496
  }
1497
1497
  return e;
1498
1498
  }
1499
- function ds(e, t) {
1499
+ function hs(e, t) {
1500
1500
  const n = (e == null ? void 0 : e[t]) ?? (e == null ? void 0 : e.default) ?? e;
1501
- return n !== e ? fs(n, e) : n;
1501
+ return n !== e ? ds(n, e) : n;
1502
1502
  }
1503
- function so({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: o, repeatDelay: a, from: c, elapsed: l, ...u }) {
1503
+ function so({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: o, repeatDelay: a, from: l, elapsed: c, ...u }) {
1504
1504
  return !!Object.keys(u).length;
1505
1505
  }
1506
1506
  const io = (e, t, n, s = {}, i, r) => (o) => {
1507
- const a = ds(s, e) || {}, c = a.delay || s.delay || 0;
1508
- let { elapsed: l = 0 } = s;
1509
- l = l - /* @__PURE__ */ K(c);
1507
+ const a = hs(s, e) || {}, l = a.delay || s.delay || 0;
1508
+ let { elapsed: c = 0 } = s;
1509
+ c = c - /* @__PURE__ */ K(l);
1510
1510
  const u = {
1511
1511
  keyframes: Array.isArray(n) ? n : [null, n],
1512
1512
  ease: "easeOut",
1513
1513
  velocity: t.getVelocity(),
1514
1514
  ...a,
1515
- delay: -l,
1515
+ delay: -c,
1516
1516
  onUpdate: (f) => {
1517
1517
  t.set(f), a.onUpdate && a.onUpdate(f);
1518
1518
  },
@@ -1525,7 +1525,7 @@ const io = (e, t, n, s = {}, i, r) => (o) => {
1525
1525
  };
1526
1526
  so(a) || Object.assign(u, eo(e, u)), u.duration && (u.duration = /* @__PURE__ */ K(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ K(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
1527
1527
  let d = !1;
1528
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (ot(u), u.delay === 0 && (d = !0)), ($.instantAnimations || $.skipAnimations || i != null && i.shouldSkipAnimations) && (d = !0, ot(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, d && !r && t.get() !== void 0) {
1528
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (at(u), u.delay === 0 && (d = !0)), ($.instantAnimations || $.skipAnimations || i != null && i.shouldSkipAnimations) && (d = !0, at(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, d && !r && t.get() !== void 0) {
1529
1529
  const f = no(u.keyframes, a);
1530
1530
  if (f !== void 0) {
1531
1531
  N.update(() => {
@@ -1534,30 +1534,30 @@ const io = (e, t, n, s = {}, i, r) => (o) => {
1534
1534
  return;
1535
1535
  }
1536
1536
  }
1537
- return a.isSync ? new xt(u) : new zr(u);
1537
+ return a.isSync ? new At(u) : new Hr(u);
1538
1538
  };
1539
- function en(e) {
1539
+ function tn(e) {
1540
1540
  const t = [{}, {}];
1541
1541
  return e == null || e.values.forEach((n, s) => {
1542
1542
  t[0][s] = n.get(), t[1][s] = n.getVelocity();
1543
1543
  }), t;
1544
1544
  }
1545
- function Mt(e, t, n, s) {
1545
+ function Ct(e, t, n, s) {
1546
1546
  if (typeof t == "function") {
1547
- const [i, r] = en(s);
1547
+ const [i, r] = tn(s);
1548
1548
  t = t(n !== void 0 ? n : e.custom, i, r);
1549
1549
  }
1550
1550
  if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
1551
- const [i, r] = en(s);
1551
+ const [i, r] = tn(s);
1552
1552
  t = t(n !== void 0 ? n : e.custom, i, r);
1553
1553
  }
1554
1554
  return t;
1555
1555
  }
1556
1556
  function se(e, t, n) {
1557
1557
  const s = e.getProps();
1558
- return Mt(s, t, n !== void 0 ? n : s.custom, e);
1558
+ return Ct(s, t, n !== void 0 ? n : s.custom, e);
1559
1559
  }
1560
- const hs = /* @__PURE__ */ new Set([
1560
+ const ps = /* @__PURE__ */ new Set([
1561
1561
  "width",
1562
1562
  "height",
1563
1563
  "top",
@@ -1565,7 +1565,7 @@ const hs = /* @__PURE__ */ new Set([
1565
1565
  "right",
1566
1566
  "bottom",
1567
1567
  ...ue
1568
- ]), tn = 30, ro = (e) => !isNaN(parseFloat(e));
1568
+ ]), nn = 30, ro = (e) => !isNaN(parseFloat(e));
1569
1569
  class oo {
1570
1570
  /**
1571
1571
  * @param init - The initiating value
@@ -1629,10 +1629,10 @@ class oo {
1629
1629
  * @deprecated
1630
1630
  */
1631
1631
  onChange(t) {
1632
- return process.env.NODE_ENV !== "production" && In(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
1632
+ return process.env.NODE_ENV !== "production" && kn(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
1633
1633
  }
1634
1634
  on(t, n) {
1635
- this.events[t] || (this.events[t] = new Rn());
1635
+ this.events[t] || (this.events[t] = new Dn());
1636
1636
  const s = this.events[t].add(n);
1637
1637
  return t === "change" ? () => {
1638
1638
  s(), N.read(() => {
@@ -1713,10 +1713,10 @@ class oo {
1713
1713
  */
1714
1714
  getVelocity() {
1715
1715
  const t = I.now();
1716
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > tn)
1716
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > nn)
1717
1717
  return 0;
1718
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, tn);
1719
- return Dn(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1718
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, nn);
1719
+ return In(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1720
1720
  }
1721
1721
  /**
1722
1722
  * Registers a new animation to control this `MotionValue`. Only one
@@ -1771,14 +1771,14 @@ class oo {
1771
1771
  function De(e, t) {
1772
1772
  return new oo(e, t);
1773
1773
  }
1774
- const at = (e) => Array.isArray(e);
1774
+ const ut = (e) => Array.isArray(e);
1775
1775
  function ao(e, t, n) {
1776
1776
  e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, De(n));
1777
1777
  }
1778
1778
  function uo(e) {
1779
- return at(e) ? e[e.length - 1] || 0 : e;
1779
+ return ut(e) ? e[e.length - 1] || 0 : e;
1780
1780
  }
1781
- function co(e, t) {
1781
+ function lo(e, t) {
1782
1782
  const n = se(e, t);
1783
1783
  let { transitionEnd: s = {}, transition: i = {}, ...r } = n || {};
1784
1784
  r = { ...r, ...s };
@@ -1787,35 +1787,35 @@ function co(e, t) {
1787
1787
  ao(e, o, a);
1788
1788
  }
1789
1789
  }
1790
- const R = (e) => !!(e && e.getVelocity);
1791
- function lo(e) {
1792
- return !!(R(e) && e.add);
1790
+ const F = (e) => !!(e && e.getVelocity);
1791
+ function co(e) {
1792
+ return !!(F(e) && e.add);
1793
1793
  }
1794
1794
  function fo(e, t) {
1795
1795
  const n = e.getValue("willChange");
1796
- if (lo(n))
1796
+ if (co(n))
1797
1797
  return n.add(t);
1798
1798
  if (!n && $.WillChange) {
1799
1799
  const s = new $.WillChange("auto");
1800
1800
  e.addValue("willChange", s), s.add(t);
1801
1801
  }
1802
1802
  }
1803
- function Ct(e) {
1803
+ function Pt(e) {
1804
1804
  return e.replace(/([A-Z])/g, (t) => `-${t.toLowerCase()}`);
1805
1805
  }
1806
- const ho = "framerAppearId", ps = "data-" + Ct(ho);
1806
+ const ho = "framerAppearId", ms = "data-" + Pt(ho);
1807
1807
  function po(e) {
1808
- return e.props[ps];
1808
+ return e.props[ms];
1809
1809
  }
1810
1810
  function mo({ protectedKeys: e, needsAnimating: t }, n) {
1811
1811
  const s = e.hasOwnProperty(n) && t[n] !== !0;
1812
1812
  return t[n] = !1, s;
1813
1813
  }
1814
- function ms(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1814
+ function gs(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1815
1815
  let { transition: r, transitionEnd: o, ...a } = t;
1816
- const c = e.getDefaultTransition();
1817
- r = r ? fs(r, c) : c;
1818
- const l = r == null ? void 0 : r.reduceMotion;
1816
+ const l = e.getDefaultTransition();
1817
+ r = r ? ds(r, l) : l;
1818
+ const c = r == null ? void 0 : r.reduceMotion;
1819
1819
  s && (r = s);
1820
1820
  const u = [], d = i && e.animationState && e.animationState.getState()[i];
1821
1821
  for (const f in a) {
@@ -1824,7 +1824,7 @@ function ms(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1824
1824
  continue;
1825
1825
  const y = {
1826
1826
  delay: n,
1827
- ...ds(r || {}, f)
1827
+ ...hs(r || {}, f)
1828
1828
  }, b = h.get();
1829
1829
  if (b !== void 0 && !h.isAnimating && !Array.isArray(p) && p === b && !y.velocity)
1830
1830
  continue;
@@ -1837,54 +1837,54 @@ function ms(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1837
1837
  }
1838
1838
  }
1839
1839
  fo(e, f);
1840
- const T = l ?? e.shouldReduceMotion;
1841
- h.start(io(f, h, p, T && hs.has(f) ? { type: !1 } : y, e, g));
1840
+ const T = c ?? e.shouldReduceMotion;
1841
+ h.start(io(f, h, p, T && ps.has(f) ? { type: !1 } : y, e, g));
1842
1842
  const v = h.animation;
1843
1843
  v && u.push(v);
1844
1844
  }
1845
1845
  if (o) {
1846
1846
  const f = () => N.update(() => {
1847
- o && co(e, o);
1847
+ o && lo(e, o);
1848
1848
  });
1849
1849
  u.length ? Promise.all(u).then(f) : f();
1850
1850
  }
1851
1851
  return u;
1852
1852
  }
1853
- function ut(e, t, n = {}) {
1854
- var c;
1855
- const s = se(e, t, n.type === "exit" ? (c = e.presenceContext) == null ? void 0 : c.custom : void 0);
1853
+ function lt(e, t, n = {}) {
1854
+ var l;
1855
+ const s = se(e, t, n.type === "exit" ? (l = e.presenceContext) == null ? void 0 : l.custom : void 0);
1856
1856
  let { transition: i = e.getDefaultTransition() || {} } = s || {};
1857
1857
  n.transitionOverride && (i = n.transitionOverride);
1858
- const r = s ? () => Promise.all(ms(e, s, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (l = 0) => {
1858
+ const r = s ? () => Promise.all(gs(e, s, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (c = 0) => {
1859
1859
  const { delayChildren: u = 0, staggerChildren: d, staggerDirection: f } = i;
1860
- return go(e, t, l, u, d, f, n);
1860
+ return go(e, t, c, u, d, f, n);
1861
1861
  } : () => Promise.resolve(), { when: a } = i;
1862
1862
  if (a) {
1863
- const [l, u] = a === "beforeChildren" ? [r, o] : [o, r];
1864
- return l().then(() => u());
1863
+ const [c, u] = a === "beforeChildren" ? [r, o] : [o, r];
1864
+ return c().then(() => u());
1865
1865
  } else
1866
1866
  return Promise.all([r(), o(n.delay)]);
1867
1867
  }
1868
1868
  function go(e, t, n = 0, s = 0, i = 0, r = 1, o) {
1869
1869
  const a = [];
1870
- for (const c of e.variantChildren)
1871
- c.notify("AnimationStart", t), a.push(ut(c, t, {
1870
+ for (const l of e.variantChildren)
1871
+ l.notify("AnimationStart", t), a.push(lt(l, t, {
1872
1872
  ...o,
1873
- delay: n + (typeof s == "function" ? 0 : s) + cs(e.variantChildren, c, s, i, r)
1874
- }).then(() => c.notify("AnimationComplete", t)));
1873
+ delay: n + (typeof s == "function" ? 0 : s) + cs(e.variantChildren, l, s, i, r)
1874
+ }).then(() => l.notify("AnimationComplete", t)));
1875
1875
  return Promise.all(a);
1876
1876
  }
1877
1877
  function yo(e, t, n = {}) {
1878
1878
  e.notify("AnimationStart", t);
1879
1879
  let s;
1880
1880
  if (Array.isArray(t)) {
1881
- const i = t.map((r) => ut(e, r, n));
1881
+ const i = t.map((r) => lt(e, r, n));
1882
1882
  s = Promise.all(i);
1883
1883
  } else if (typeof t == "string")
1884
- s = ut(e, t, n);
1884
+ s = lt(e, t, n);
1885
1885
  else {
1886
1886
  const i = typeof t == "function" ? se(e, t, n.custom) : t;
1887
- s = Promise.all(ms(e, i, n));
1887
+ s = Promise.all(gs(e, i, n));
1888
1888
  }
1889
1889
  return s.then(() => {
1890
1890
  e.notify("AnimationComplete", t);
@@ -1893,16 +1893,16 @@ function yo(e, t, n = {}) {
1893
1893
  const bo = {
1894
1894
  test: (e) => e === "auto",
1895
1895
  parse: (e) => e
1896
- }, gs = (e) => (t) => t.test(e), ys = [ae, m, ne, j, Wi, ji, bo], nn = (e) => ys.find(gs(e));
1896
+ }, ys = (e) => (t) => t.test(e), bs = [ae, m, ne, j, Wi, ji, bo], sn = (e) => bs.find(ys(e));
1897
1897
  function vo(e) {
1898
- return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Cn(e) : !0;
1898
+ return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Pn(e) : !0;
1899
1899
  }
1900
1900
  const wo = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1901
1901
  function To(e) {
1902
1902
  const [t, n] = e.slice(0, -1).split("(");
1903
1903
  if (t === "drop-shadow")
1904
1904
  return e;
1905
- const [s] = n.match(bt) || [];
1905
+ const [s] = n.match(vt) || [];
1906
1906
  if (!s)
1907
1907
  return e;
1908
1908
  const i = n.replace(s, "");
@@ -1915,13 +1915,13 @@ const Vo = /\b([a-z-]*)\(.*?\)/gu, ct = {
1915
1915
  const t = e.match(Vo);
1916
1916
  return t ? t.map(To).join(" ") : e;
1917
1917
  }
1918
- }, lt = {
1918
+ }, ft = {
1919
1919
  ...L,
1920
1920
  getAnimatableNone: (e) => {
1921
1921
  const t = L.parse(e);
1922
1922
  return L.createTransformer(e)(t.map((s) => typeof s == "number" ? 0 : typeof s == "object" ? { ...s, alpha: 1 } : s));
1923
1923
  }
1924
- }, sn = {
1924
+ }, rn = {
1925
1925
  ...ae,
1926
1926
  transform: Math.round
1927
1927
  }, So = {
@@ -1946,10 +1946,10 @@ const Vo = /\b([a-z-]*)\(.*?\)/gu, ct = {
1946
1946
  perspective: m,
1947
1947
  transformPerspective: m,
1948
1948
  opacity: pe,
1949
- originX: _t,
1950
- originY: _t,
1949
+ originX: Gt,
1950
+ originY: Gt,
1951
1951
  originZ: m
1952
- }, Pt = {
1952
+ }, Rt = {
1953
1953
  // Border props
1954
1954
  borderWidth: m,
1955
1955
  borderTopWidth: m,
@@ -2006,13 +2006,13 @@ const Vo = /\b([a-z-]*)\(.*?\)/gu, ct = {
2006
2006
  backgroundPositionX: m,
2007
2007
  backgroundPositionY: m,
2008
2008
  ...So,
2009
- zIndex: sn,
2009
+ zIndex: rn,
2010
2010
  // SVG
2011
2011
  fillOpacity: pe,
2012
2012
  strokeOpacity: pe,
2013
- numOctaves: sn
2013
+ numOctaves: rn
2014
2014
  }, xo = {
2015
- ...Pt,
2015
+ ...Rt,
2016
2016
  // Color props
2017
2017
  color: M,
2018
2018
  backgroundColor: M,
@@ -2027,11 +2027,11 @@ const Vo = /\b([a-z-]*)\(.*?\)/gu, ct = {
2027
2027
  borderLeftColor: M,
2028
2028
  filter: ct,
2029
2029
  WebkitFilter: ct,
2030
- mask: lt,
2031
- WebkitMask: lt
2032
- }, bs = (e) => xo[e], Ao = /* @__PURE__ */ new Set([ct, lt]);
2033
- function vs(e, t) {
2034
- let n = bs(e);
2030
+ mask: ft,
2031
+ WebkitMask: ft
2032
+ }, vs = (e) => xo[e], Ao = /* @__PURE__ */ new Set([ct, ft]);
2033
+ function ws(e, t) {
2034
+ let n = vs(e);
2035
2035
  return Ao.has(n) || (n = L), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
2036
2036
  }
2037
2037
  const Mo = /* @__PURE__ */ new Set(["auto", "none", "0"]);
@@ -2043,9 +2043,9 @@ function Co(e, t, n) {
2043
2043
  }
2044
2044
  if (i && n)
2045
2045
  for (const r of t)
2046
- e[r] = vs(n, i);
2046
+ e[r] = ws(n, i);
2047
2047
  }
2048
- class Po extends At {
2048
+ class Po extends Mt {
2049
2049
  constructor(t, n, s, i, r) {
2050
2050
  super(t, n, s, i, r, !0);
2051
2051
  }
@@ -2056,20 +2056,20 @@ class Po extends At {
2056
2056
  super.readKeyframes();
2057
2057
  for (let u = 0; u < t.length; u++) {
2058
2058
  let d = t[u];
2059
- if (typeof d == "string" && (d = d.trim(), yt(d))) {
2060
- const f = ls(d, n.current);
2059
+ if (typeof d == "string" && (d = d.trim(), bt(d))) {
2060
+ const f = fs(d, n.current);
2061
2061
  f !== void 0 && (t[u] = f), u === t.length - 1 && (this.finalKeyframe = d);
2062
2062
  }
2063
2063
  }
2064
- if (this.resolveNoneKeyframes(), !hs.has(s) || t.length !== 2)
2064
+ if (this.resolveNoneKeyframes(), !ps.has(s) || t.length !== 2)
2065
2065
  return;
2066
- const [i, r] = t, o = nn(i), a = nn(r), c = Wt(i), l = Wt(r);
2067
- if (c !== l && _[s]) {
2066
+ const [i, r] = t, o = sn(i), a = sn(r), l = _t(i), c = _t(r);
2067
+ if (l !== c && _[s]) {
2068
2068
  this.needsMeasurement = !0;
2069
2069
  return;
2070
2070
  }
2071
2071
  if (o !== a)
2072
- if (Zt(o) && Zt(a))
2072
+ if (Jt(o) && Jt(a))
2073
2073
  for (let u = 0; u < t.length; u++) {
2074
2074
  const d = t[u];
2075
2075
  typeof d == "string" && (t[u] = parseFloat(d));
@@ -2098,12 +2098,12 @@ class Po extends At {
2098
2098
  const i = t.getValue(n);
2099
2099
  i && i.jump(this.measuredOrigin, !1);
2100
2100
  const r = s.length - 1, o = s[r];
2101
- s[r] = _[n](t.measureViewportBox(), window.getComputedStyle(t.current)), o !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = o), (a = this.removedTransforms) != null && a.length && this.removedTransforms.forEach(([c, l]) => {
2102
- t.getValue(c).set(l);
2101
+ s[r] = _[n](t.measureViewportBox(), window.getComputedStyle(t.current)), o !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = o), (a = this.removedTransforms) != null && a.length && this.removedTransforms.forEach(([l, c]) => {
2102
+ t.getValue(l).set(c);
2103
2103
  }), this.resolveNoneKeyframes();
2104
2104
  }
2105
2105
  }
2106
- const Fo = /* @__PURE__ */ new Set([
2106
+ const Ro = /* @__PURE__ */ new Set([
2107
2107
  "opacity",
2108
2108
  "clipPath",
2109
2109
  "filter",
@@ -2112,7 +2112,7 @@ const Fo = /* @__PURE__ */ new Set([
2112
2112
  // or until we implement support for linear() easing.
2113
2113
  // "background-color"
2114
2114
  ]);
2115
- function Ro(e, t, n) {
2115
+ function Fo(e, t, n) {
2116
2116
  if (e == null)
2117
2117
  return [];
2118
2118
  if (e instanceof EventTarget)
@@ -2124,18 +2124,18 @@ function Ro(e, t, n) {
2124
2124
  }
2125
2125
  return Array.from(e).filter((s) => s != null);
2126
2126
  }
2127
- const ws = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
2127
+ const Ts = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
2128
2128
  function Do(e) {
2129
2129
  return Vi(e) && "offsetHeight" in e;
2130
2130
  }
2131
- const { schedule: Io } = /* @__PURE__ */ Wn(queueMicrotask, !1), ko = {
2131
+ const { schedule: Io } = /* @__PURE__ */ _n(queueMicrotask, !1), ko = {
2132
2132
  y: !1
2133
2133
  };
2134
2134
  function Oo() {
2135
2135
  return ko.y;
2136
2136
  }
2137
- function Ts(e, t) {
2138
- const n = Ro(e), s = new AbortController(), i = {
2137
+ function Vs(e, t) {
2138
+ const n = Fo(e), s = new AbortController(), i = {
2139
2139
  passive: !0,
2140
2140
  ...t,
2141
2141
  signal: s.signal
@@ -2146,21 +2146,21 @@ function Eo(e) {
2146
2146
  return !(e.pointerType === "touch" || Oo());
2147
2147
  }
2148
2148
  function Bo(e, t, n = {}) {
2149
- const [s, i, r] = Ts(e, n);
2149
+ const [s, i, r] = Vs(e, n);
2150
2150
  return s.forEach((o) => {
2151
- let a = !1, c = !1, l;
2151
+ let a = !1, l = !1, c;
2152
2152
  const u = () => {
2153
2153
  o.removeEventListener("pointerleave", p);
2154
2154
  }, d = (b) => {
2155
- l && (l(b), l = void 0), u();
2155
+ c && (c(b), c = void 0), u();
2156
2156
  }, f = (b) => {
2157
- a = !1, window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", f), c && (c = !1, d(b));
2157
+ a = !1, window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", f), l && (l = !1, d(b));
2158
2158
  }, h = () => {
2159
2159
  a = !0, window.addEventListener("pointerup", f, i), window.addEventListener("pointercancel", f, i);
2160
2160
  }, p = (b) => {
2161
2161
  if (b.pointerType !== "touch") {
2162
2162
  if (a) {
2163
- c = !0;
2163
+ l = !0;
2164
2164
  return;
2165
2165
  }
2166
2166
  d(b);
@@ -2168,14 +2168,14 @@ function Bo(e, t, n = {}) {
2168
2168
  }, y = (b) => {
2169
2169
  if (!Eo(b))
2170
2170
  return;
2171
- c = !1;
2171
+ l = !1;
2172
2172
  const g = t(o, b);
2173
- typeof g == "function" && (l = g, o.addEventListener("pointerleave", p, i));
2173
+ typeof g == "function" && (c = g, o.addEventListener("pointerleave", p, i));
2174
2174
  };
2175
2175
  o.addEventListener("pointerenter", y, i), o.addEventListener("pointerdown", h, i);
2176
2176
  }), r;
2177
2177
  }
2178
- const Vs = (e, t) => t ? e === t ? !0 : Vs(e, t.parentElement) : !1, Lo = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, No = /* @__PURE__ */ new Set([
2178
+ const Ss = (e, t) => t ? e === t ? !0 : Ss(e, t.parentElement) : !1, Lo = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, No = /* @__PURE__ */ new Set([
2179
2179
  "BUTTON",
2180
2180
  "INPUT",
2181
2181
  "SELECT",
@@ -2186,55 +2186,55 @@ function Ko(e) {
2186
2186
  return No.has(e.tagName) || e.isContentEditable === !0;
2187
2187
  }
2188
2188
  const Me = /* @__PURE__ */ new WeakSet();
2189
- function rn(e) {
2189
+ function on(e) {
2190
2190
  return (t) => {
2191
2191
  t.key === "Enter" && e(t);
2192
2192
  };
2193
2193
  }
2194
- function Ge(e, t) {
2194
+ function ze(e, t) {
2195
2195
  e.dispatchEvent(new PointerEvent("pointer" + t, { isPrimary: !0, bubbles: !0 }));
2196
2196
  }
2197
2197
  const $o = (e, t) => {
2198
2198
  const n = e.currentTarget;
2199
2199
  if (!n)
2200
2200
  return;
2201
- const s = rn(() => {
2201
+ const s = on(() => {
2202
2202
  if (Me.has(n))
2203
2203
  return;
2204
- Ge(n, "down");
2205
- const i = rn(() => {
2206
- Ge(n, "up");
2207
- }), r = () => Ge(n, "cancel");
2204
+ ze(n, "down");
2205
+ const i = on(() => {
2206
+ ze(n, "up");
2207
+ }), r = () => ze(n, "cancel");
2208
2208
  n.addEventListener("keyup", i, t), n.addEventListener("blur", r, t);
2209
2209
  });
2210
2210
  n.addEventListener("keydown", s, t), n.addEventListener("blur", () => n.removeEventListener("keydown", s), t);
2211
2211
  };
2212
- function on(e) {
2212
+ function an(e) {
2213
2213
  return Lo(e) && !0;
2214
2214
  }
2215
- const an = /* @__PURE__ */ new WeakSet();
2215
+ const un = /* @__PURE__ */ new WeakSet();
2216
2216
  function jo(e, t, n = {}) {
2217
- const [s, i, r] = Ts(e, n), o = (a) => {
2218
- const c = a.currentTarget;
2219
- if (!on(a) || an.has(a))
2217
+ const [s, i, r] = Vs(e, n), o = (a) => {
2218
+ const l = a.currentTarget;
2219
+ if (!an(a) || un.has(a))
2220
2220
  return;
2221
- Me.add(c), n.stopPropagation && an.add(a);
2222
- const l = t(c, a), u = (h, p) => {
2223
- window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", f), Me.has(c) && Me.delete(c), on(h) && typeof l == "function" && l(h, { success: p });
2221
+ Me.add(l), n.stopPropagation && un.add(a);
2222
+ const c = t(l, a), u = (h, p) => {
2223
+ window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", f), Me.has(l) && Me.delete(l), an(h) && typeof c == "function" && c(h, { success: p });
2224
2224
  }, d = (h) => {
2225
- u(h, c === window || c === document || n.useGlobalTarget || Vs(c, h.target));
2225
+ u(h, l === window || l === document || n.useGlobalTarget || Ss(l, h.target));
2226
2226
  }, f = (h) => {
2227
2227
  u(h, !1);
2228
2228
  };
2229
2229
  window.addEventListener("pointerup", d, i), window.addEventListener("pointercancel", f, i);
2230
2230
  };
2231
2231
  return s.forEach((a) => {
2232
- (n.useGlobalTarget ? window : a).addEventListener("pointerdown", o, i), Do(a) && (a.addEventListener("focus", (l) => $o(l, i)), !Ko(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
2232
+ (n.useGlobalTarget ? window : a).addEventListener("pointerdown", o, i), Do(a) && (a.addEventListener("focus", (c) => $o(c, i)), !Ko(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
2233
2233
  }), r;
2234
2234
  }
2235
- const Wo = [...ys, M, L], _o = (e) => Wo.find(gs(e)), un = () => ({ min: 0, max: 0 }), Ss = () => ({
2236
- x: un(),
2237
- y: un()
2235
+ const Wo = [...bs, M, L], _o = (e) => Wo.find(ys(e)), ln = () => ({ min: 0, max: 0 }), xs = () => ({
2236
+ x: ln(),
2237
+ y: ln()
2238
2238
  }), Go = /* @__PURE__ */ new WeakMap();
2239
2239
  function Be(e) {
2240
2240
  return e !== null && typeof e == "object" && typeof e.start == "function";
@@ -2250,19 +2250,19 @@ const Ft = [
2250
2250
  "whileTap",
2251
2251
  "whileDrag",
2252
2252
  "exit"
2253
- ], Rt = ["initial", ...Ft];
2253
+ ], Dt = ["initial", ...Ft];
2254
2254
  function Le(e) {
2255
- return Be(e.animate) || Rt.some((t) => ge(e[t]));
2255
+ return Be(e.animate) || Dt.some((t) => ge(e[t]));
2256
2256
  }
2257
- function xs(e) {
2257
+ function As(e) {
2258
2258
  return !!(Le(e) || e.variants);
2259
2259
  }
2260
- function Ho(e, t, n) {
2260
+ function zo(e, t, n) {
2261
2261
  for (const s in t) {
2262
2262
  const i = t[s], r = n[s];
2263
- if (R(i))
2263
+ if (F(i))
2264
2264
  e.addValue(s, i);
2265
- else if (R(r))
2265
+ else if (F(r))
2266
2266
  e.addValue(s, De(i, { owner: e }));
2267
2267
  else if (r !== i)
2268
2268
  if (e.hasValue(s)) {
@@ -2277,14 +2277,14 @@ function Ho(e, t, n) {
2277
2277
  t[s] === void 0 && e.removeValue(s);
2278
2278
  return t;
2279
2279
  }
2280
- const ft = { current: null }, As = { current: !1 }, zo = typeof window < "u";
2280
+ const dt = { current: null }, Ms = { current: !1 }, Ho = typeof window < "u";
2281
2281
  function Uo() {
2282
- if (As.current = !0, !!zo)
2282
+ if (Ms.current = !0, !!Ho)
2283
2283
  if (window.matchMedia) {
2284
- const e = window.matchMedia("(prefers-reduced-motion)"), t = () => ft.current = e.matches;
2284
+ const e = window.matchMedia("(prefers-reduced-motion)"), t = () => dt.current = e.matches;
2285
2285
  e.addEventListener("change", t), t();
2286
2286
  } else
2287
- ft.current = !1;
2287
+ dt.current = !1;
2288
2288
  }
2289
2289
  const cn = [
2290
2290
  "AnimationStart",
@@ -2296,7 +2296,7 @@ const cn = [
2296
2296
  "LayoutAnimationComplete"
2297
2297
  ];
2298
2298
  let Ie = {};
2299
- function Ms(e) {
2299
+ function Cs(e) {
2300
2300
  Ie = e;
2301
2301
  }
2302
2302
  function Yo() {
@@ -2313,19 +2313,19 @@ class Xo {
2313
2313
  scrapeMotionValuesFromProps(t, n, s) {
2314
2314
  return {};
2315
2315
  }
2316
- constructor({ parent: t, props: n, presenceContext: s, reducedMotionConfig: i, skipAnimations: r, blockInitialAnimation: o, visualState: a }, c = {}) {
2317
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = At, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
2316
+ constructor({ parent: t, props: n, presenceContext: s, reducedMotionConfig: i, skipAnimations: r, blockInitialAnimation: o, visualState: a }, l = {}) {
2317
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Mt, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
2318
2318
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
2319
2319
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
2320
2320
  const h = I.now();
2321
2321
  this.renderScheduledAt < h && (this.renderScheduledAt = h, N.render(this.render, !1, !0));
2322
2322
  };
2323
- const { latestValues: l, renderState: u } = a;
2324
- this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = u, this.parent = t, this.props = n, this.presenceContext = s, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.skipAnimationsConfig = r, this.options = c, this.blockInitialAnimation = !!o, this.isControllingVariants = Le(n), this.isVariantNode = xs(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
2323
+ const { latestValues: c, renderState: u } = a;
2324
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = u, this.parent = t, this.props = n, this.presenceContext = s, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.skipAnimationsConfig = r, this.options = l, this.blockInitialAnimation = !!o, this.isControllingVariants = Le(n), this.isVariantNode = As(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
2325
2325
  const { willChange: d, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
2326
2326
  for (const h in f) {
2327
2327
  const p = f[h];
2328
- l[h] !== void 0 && R(p) && p.set(l[h]);
2328
+ c[h] !== void 0 && F(p) && p.set(c[h]);
2329
2329
  }
2330
2330
  }
2331
2331
  mount(t) {
@@ -2333,11 +2333,11 @@ class Xo {
2333
2333
  if (this.hasBeenMounted)
2334
2334
  for (const i in this.initialValues)
2335
2335
  (n = this.values.get(i)) == null || n.jump(this.initialValues[i]), this.latestValues[i] = this.initialValues[i];
2336
- this.current = t, Go.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((i, r) => this.bindToMotionValue(r, i)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (As.current || Uo(), this.shouldReduceMotion = ft.current), process.env.NODE_ENV !== "production" && In(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, (s = this.parent) == null || s.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
2336
+ this.current = t, Go.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((i, r) => this.bindToMotionValue(r, i)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Ms.current || Uo(), this.shouldReduceMotion = dt.current), process.env.NODE_ENV !== "production" && kn(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, (s = this.parent) == null || s.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
2337
2337
  }
2338
2338
  unmount() {
2339
2339
  var t;
2340
- this.projection && this.projection.unmount(), Ye(this.notifyUpdate), Ye(this.render), this.valueSubscriptions.forEach((n) => n()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), (t = this.parent) == null || t.removeChild(this);
2340
+ this.projection && this.projection.unmount(), Xe(this.notifyUpdate), Xe(this.render), this.valueSubscriptions.forEach((n) => n()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), (t = this.parent) == null || t.removeChild(this);
2341
2341
  for (const n in this.events)
2342
2342
  this.events[n].clear();
2343
2343
  for (const n in this.features) {
@@ -2353,13 +2353,13 @@ class Xo {
2353
2353
  this.children.delete(t), this.enteringChildren && this.enteringChildren.delete(t);
2354
2354
  }
2355
2355
  bindToMotionValue(t, n) {
2356
- if (this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)(), n.accelerate && Fo.has(t) && this.current instanceof HTMLElement) {
2357
- const { factory: o, keyframes: a, times: c, ease: l, duration: u } = n.accelerate, d = new as({
2356
+ if (this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)(), n.accelerate && Ro.has(t) && this.current instanceof HTMLElement) {
2357
+ const { factory: o, keyframes: a, times: l, ease: c, duration: u } = n.accelerate, d = new us({
2358
2358
  element: this.current,
2359
2359
  name: t,
2360
2360
  keyframes: a,
2361
- times: c,
2362
- ease: l,
2361
+ times: l,
2362
+ ease: c,
2363
2363
  duration: /* @__PURE__ */ K(u)
2364
2364
  }), f = o(d);
2365
2365
  this.valueSubscriptions.set(t, () => {
@@ -2367,7 +2367,7 @@ class Xo {
2367
2367
  });
2368
2368
  return;
2369
2369
  }
2370
- const s = ce.has(t);
2370
+ const s = le.has(t);
2371
2371
  s && this.onBindTransform && this.onBindTransform();
2372
2372
  const i = n.on("change", (o) => {
2373
2373
  this.latestValues[t] = o, this.props.onUpdate && N.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
@@ -2402,7 +2402,7 @@ class Xo {
2402
2402
  * removed with a re-render to work.
2403
2403
  */
2404
2404
  measureViewportBox() {
2405
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Ss();
2405
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : xs();
2406
2406
  }
2407
2407
  getStaticValue(t) {
2408
2408
  return this.latestValues[t];
@@ -2422,7 +2422,7 @@ class Xo {
2422
2422
  const r = "on" + i, o = t[r];
2423
2423
  o && (this.propEventSubscriptions[i] = this.on(i, o));
2424
2424
  }
2425
- this.prevMotionValues = Ho(this, this.scrapeMotionValuesFromProps(t, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2425
+ this.prevMotionValues = zo(this, this.scrapeMotionValuesFromProps(t, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2426
2426
  }
2427
2427
  getProps() {
2428
2428
  return this.props;
@@ -2487,7 +2487,7 @@ class Xo {
2487
2487
  */
2488
2488
  readValue(t, n) {
2489
2489
  let s = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
2490
- return s != null && (typeof s == "string" && (Mn(s) || Cn(s)) ? s = parseFloat(s) : !_o(s) && L.test(n) && (s = vs(t, n)), this.setBaseTarget(t, R(s) ? s.get() : s)), R(s) ? s.get() : s;
2490
+ return s != null && (typeof s == "string" && (Cn(s) || Pn(s)) ? s = parseFloat(s) : !_o(s) && L.test(n) && (s = ws(t, n)), this.setBaseTarget(t, F(s) ? s.get() : s)), F(s) ? s.get() : s;
2491
2491
  }
2492
2492
  /**
2493
2493
  * Set the base target to later animate back to. This is currently
@@ -2505,16 +2505,16 @@ class Xo {
2505
2505
  const { initial: n } = this.props;
2506
2506
  let s;
2507
2507
  if (typeof n == "string" || typeof n == "object") {
2508
- const o = Mt(this.props, n, (r = this.presenceContext) == null ? void 0 : r.custom);
2508
+ const o = Ct(this.props, n, (r = this.presenceContext) == null ? void 0 : r.custom);
2509
2509
  o && (s = o[t]);
2510
2510
  }
2511
2511
  if (n && s !== void 0)
2512
2512
  return s;
2513
2513
  const i = this.getBaseTargetFromProps(this.props, t);
2514
- return i !== void 0 && !R(i) ? i : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
2514
+ return i !== void 0 && !F(i) ? i : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
2515
2515
  }
2516
2516
  on(t, n) {
2517
- return this.events[t] || (this.events[t] = new Rn()), this.events[t].add(n);
2517
+ return this.events[t] || (this.events[t] = new Dn()), this.events[t].add(n);
2518
2518
  }
2519
2519
  notify(t, ...n) {
2520
2520
  this.events[t] && this.events[t].notify(...n);
@@ -2523,7 +2523,7 @@ class Xo {
2523
2523
  Io.render(this.render);
2524
2524
  }
2525
2525
  }
2526
- class Cs extends Xo {
2526
+ class Ps extends Xo {
2527
2527
  constructor() {
2528
2528
  super(...arguments), this.KeyframeResolver = Po;
2529
2529
  }
@@ -2540,12 +2540,12 @@ class Cs extends Xo {
2540
2540
  handleChildMotionValue() {
2541
2541
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
2542
2542
  const { children: t } = this.props;
2543
- R(t) && (this.childSubscription = t.on("change", (n) => {
2543
+ F(t) && (this.childSubscription = t.on("change", (n) => {
2544
2544
  this.current && (this.current.textContent = `${n}`);
2545
2545
  }));
2546
2546
  }
2547
2547
  }
2548
- class le {
2548
+ class ce {
2549
2549
  constructor(t) {
2550
2550
  this.isMounted = !1, this.node = t;
2551
2551
  }
@@ -2584,47 +2584,47 @@ function ta(e, t, n) {
2584
2584
  const o = ue[r], a = e[o];
2585
2585
  if (a === void 0)
2586
2586
  continue;
2587
- let c = !0;
2587
+ let l = !0;
2588
2588
  if (typeof a == "number")
2589
- c = a === (o.startsWith("scale") ? 1 : 0);
2589
+ l = a === (o.startsWith("scale") ? 1 : 0);
2590
2590
  else {
2591
- const l = parseFloat(a);
2592
- c = o.startsWith("scale") ? l === 1 : l === 0;
2591
+ const c = parseFloat(a);
2592
+ l = o.startsWith("scale") ? c === 1 : c === 0;
2593
2593
  }
2594
- if (!c || n) {
2595
- const l = ws(a, Pt[o]);
2596
- if (!c) {
2594
+ if (!l || n) {
2595
+ const c = Ts(a, Rt[o]);
2596
+ if (!l) {
2597
2597
  i = !1;
2598
2598
  const u = Qo[o] || o;
2599
- s += `${u}(${l}) `;
2599
+ s += `${u}(${c}) `;
2600
2600
  }
2601
- n && (t[o] = l);
2601
+ n && (t[o] = c);
2602
2602
  }
2603
2603
  }
2604
2604
  return s = s.trim(), n ? s = n(t, i ? "" : s) : i && (s = "none"), s;
2605
2605
  }
2606
- function Dt(e, t, n) {
2606
+ function It(e, t, n) {
2607
2607
  const { style: s, vars: i, transformOrigin: r } = e;
2608
2608
  let o = !1, a = !1;
2609
- for (const c in t) {
2610
- const l = t[c];
2611
- if (ce.has(c)) {
2609
+ for (const l in t) {
2610
+ const c = t[l];
2611
+ if (le.has(l)) {
2612
2612
  o = !0;
2613
2613
  continue;
2614
- } else if (Gn(c)) {
2615
- i[c] = l;
2614
+ } else if (zn(l)) {
2615
+ i[l] = c;
2616
2616
  continue;
2617
2617
  } else {
2618
- const u = ws(l, Pt[c]);
2619
- c.startsWith("origin") ? (a = !0, r[c] = u) : s[c] = u;
2618
+ const u = Ts(c, Rt[l]);
2619
+ l.startsWith("origin") ? (a = !0, r[l] = u) : s[l] = u;
2620
2620
  }
2621
2621
  }
2622
2622
  if (t.transform || (o || n ? s.transform = ta(t, e.transform, n) : s.transform && (s.transform = "none")), a) {
2623
- const { originX: c = "50%", originY: l = "50%", originZ: u = 0 } = r;
2624
- s.transformOrigin = `${c} ${l} ${u}`;
2623
+ const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = r;
2624
+ s.transformOrigin = `${l} ${c} ${u}`;
2625
2625
  }
2626
2626
  }
2627
- function Ps(e, { style: t, vars: n }, s, i) {
2627
+ function Rs(e, { style: t, vars: n }, s, i) {
2628
2628
  const r = e.style;
2629
2629
  let o;
2630
2630
  for (o in t)
@@ -2633,7 +2633,7 @@ function Ps(e, { style: t, vars: n }, s, i) {
2633
2633
  for (o in n)
2634
2634
  r.setProperty(o, n[o]);
2635
2635
  }
2636
- function ln(e, t) {
2636
+ function fn(e, t) {
2637
2637
  return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
2638
2638
  }
2639
2639
  const fe = {
@@ -2645,7 +2645,7 @@ const fe = {
2645
2645
  e = parseFloat(e);
2646
2646
  else
2647
2647
  return e;
2648
- const n = ln(e, t.target.x), s = ln(e, t.target.y);
2648
+ const n = fn(e, t.target.x), s = fn(e, t.target.y);
2649
2649
  return `${n}% ${s}%`;
2650
2650
  }
2651
2651
  }, na = {
@@ -2653,10 +2653,10 @@ const fe = {
2653
2653
  const s = e, i = L.parse(e);
2654
2654
  if (i.length > 5)
2655
2655
  return s;
2656
- const r = L.createTransformer(e), o = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * t.x, c = n.y.scale * t.y;
2657
- i[0 + o] /= a, i[1 + o] /= c;
2658
- const l = we(a, c, 0.5);
2659
- return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), r(i);
2656
+ const r = L.createTransformer(e), o = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * t.x, l = n.y.scale * t.y;
2657
+ i[0 + o] /= a, i[1 + o] /= l;
2658
+ const c = we(a, l, 0.5);
2659
+ return typeof i[2 + o] == "number" && (i[2 + o] /= c), typeof i[3 + o] == "number" && (i[3 + o] /= c), r(i);
2660
2660
  }
2661
2661
  }, sa = {
2662
2662
  borderRadius: {
@@ -2675,30 +2675,30 @@ const fe = {
2675
2675
  boxShadow: na
2676
2676
  };
2677
2677
  function Fs(e, { layout: t, layoutId: n }) {
2678
- return ce.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!sa[e] || e === "opacity");
2678
+ return le.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!sa[e] || e === "opacity");
2679
2679
  }
2680
- function It(e, t, n) {
2680
+ function kt(e, t, n) {
2681
2681
  var o;
2682
2682
  const s = e.style, i = t == null ? void 0 : t.style, r = {};
2683
2683
  if (!s)
2684
2684
  return r;
2685
2685
  for (const a in s)
2686
- (R(s[a]) || i && R(i[a]) || Fs(a, e) || ((o = n == null ? void 0 : n.getValue(a)) == null ? void 0 : o.liveStyle) !== void 0) && (r[a] = s[a]);
2686
+ (F(s[a]) || i && F(i[a]) || Fs(a, e) || ((o = n == null ? void 0 : n.getValue(a)) == null ? void 0 : o.liveStyle) !== void 0) && (r[a] = s[a]);
2687
2687
  return r;
2688
2688
  }
2689
2689
  function ia(e) {
2690
2690
  return window.getComputedStyle(e);
2691
2691
  }
2692
- class ra extends Cs {
2692
+ class ra extends Ps {
2693
2693
  constructor() {
2694
- super(...arguments), this.type = "html", this.renderInstance = Ps;
2694
+ super(...arguments), this.type = "html", this.renderInstance = Rs;
2695
2695
  }
2696
2696
  readValueFromInstance(t, n) {
2697
2697
  var s;
2698
- if (ce.has(n))
2699
- return (s = this.projection) != null && s.isProjecting ? tt(n) : Ar(t, n);
2698
+ if (le.has(n))
2699
+ return (s = this.projection) != null && s.isProjecting ? nt(n) : Ar(t, n);
2700
2700
  {
2701
- const i = ia(t), r = (Gn(n) ? i.getPropertyValue(n) : i[n]) || 0;
2701
+ const i = ia(t), r = (zn(n) ? i.getPropertyValue(n) : i[n]) || 0;
2702
2702
  return typeof r == "string" ? r.trim() : r;
2703
2703
  }
2704
2704
  }
@@ -2706,10 +2706,10 @@ class ra extends Cs {
2706
2706
  return Jo(t, n);
2707
2707
  }
2708
2708
  build(t, n, s) {
2709
- Dt(t, n, s.transformTemplate);
2709
+ It(t, n, s.transformTemplate);
2710
2710
  }
2711
2711
  scrapeMotionValuesFromProps(t, n, s) {
2712
- return It(t, n, s);
2712
+ return kt(t, n, s);
2713
2713
  }
2714
2714
  }
2715
2715
  const oa = {
@@ -2724,13 +2724,13 @@ function ua(e, t, n = 1, s = 0, i = !0) {
2724
2724
  const r = i ? oa : aa;
2725
2725
  e[r.offset] = `${-s}`, e[r.array] = `${t} ${n}`;
2726
2726
  }
2727
- const ca = [
2727
+ const la = [
2728
2728
  "offsetDistance",
2729
2729
  "offsetPath",
2730
2730
  "offsetRotate",
2731
2731
  "offsetAnchor"
2732
2732
  ];
2733
- function Rs(e, {
2733
+ function Ds(e, {
2734
2734
  attrX: t,
2735
2735
  attrY: n,
2736
2736
  attrScale: s,
@@ -2739,19 +2739,19 @@ function Rs(e, {
2739
2739
  pathOffset: o = 0,
2740
2740
  // This is object creation, which we try to avoid per-frame.
2741
2741
  ...a
2742
- }, c, l, u) {
2743
- if (Dt(e, a, l), c) {
2742
+ }, l, c, u) {
2743
+ if (It(e, a, c), l) {
2744
2744
  e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
2745
2745
  return;
2746
2746
  }
2747
2747
  e.attrs = e.style, e.style = {};
2748
2748
  const { attrs: d, style: f } = e;
2749
2749
  d.transform && (f.transform = d.transform, delete d.transform), (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = (u == null ? void 0 : u.transformBox) ?? "fill-box", delete d.transformBox);
2750
- for (const h of ca)
2750
+ for (const h of la)
2751
2751
  d[h] !== void 0 && (f[h] = d[h], delete d[h]);
2752
2752
  t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), s !== void 0 && (d.scale = s), i !== void 0 && ua(d, i, r, o, !1);
2753
2753
  }
2754
- const Ds = /* @__PURE__ */ new Set([
2754
+ const Is = /* @__PURE__ */ new Set([
2755
2755
  "baseFrequency",
2756
2756
  "diffuseConstant",
2757
2757
  "kernelMatrix",
@@ -2775,64 +2775,64 @@ const Ds = /* @__PURE__ */ new Set([
2775
2775
  "startOffset",
2776
2776
  "textLength",
2777
2777
  "lengthAdjust"
2778
- ]), Is = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2779
- function la(e, t, n, s) {
2780
- Ps(e, t, void 0, s);
2778
+ ]), ks = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2779
+ function ca(e, t, n, s) {
2780
+ Rs(e, t, void 0, s);
2781
2781
  for (const i in t.attrs)
2782
- e.setAttribute(Ds.has(i) ? i : Ct(i), t.attrs[i]);
2782
+ e.setAttribute(Is.has(i) ? i : Pt(i), t.attrs[i]);
2783
2783
  }
2784
- function ks(e, t, n) {
2785
- const s = It(e, t, n);
2784
+ function Os(e, t, n) {
2785
+ const s = kt(e, t, n);
2786
2786
  for (const i in e)
2787
- if (R(e[i]) || R(t[i])) {
2787
+ if (F(e[i]) || F(t[i])) {
2788
2788
  const r = ue.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2789
2789
  s[r] = e[i];
2790
2790
  }
2791
2791
  return s;
2792
2792
  }
2793
- class fa extends Cs {
2793
+ class fa extends Ps {
2794
2794
  constructor() {
2795
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Ss;
2795
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = xs;
2796
2796
  }
2797
2797
  getBaseTargetFromProps(t, n) {
2798
2798
  return t[n];
2799
2799
  }
2800
2800
  readValueFromInstance(t, n) {
2801
- if (ce.has(n)) {
2802
- const s = bs(n);
2801
+ if (le.has(n)) {
2802
+ const s = vs(n);
2803
2803
  return s && s.default || 0;
2804
2804
  }
2805
- return n = Ds.has(n) ? n : Ct(n), t.getAttribute(n);
2805
+ return n = Is.has(n) ? n : Pt(n), t.getAttribute(n);
2806
2806
  }
2807
2807
  scrapeMotionValuesFromProps(t, n, s) {
2808
- return ks(t, n, s);
2808
+ return Os(t, n, s);
2809
2809
  }
2810
2810
  build(t, n, s) {
2811
- Rs(t, n, this.isSVGTag, s.transformTemplate, s.style);
2811
+ Ds(t, n, this.isSVGTag, s.transformTemplate, s.style);
2812
2812
  }
2813
2813
  renderInstance(t, n, s, i) {
2814
- la(t, n, s, i);
2814
+ ca(t, n, s, i);
2815
2815
  }
2816
2816
  mount(t) {
2817
- this.isSVGTag = Is(t.tagName), super.mount(t);
2817
+ this.isSVGTag = ks(t.tagName), super.mount(t);
2818
2818
  }
2819
2819
  }
2820
- const da = Rt.length;
2821
- function Os(e) {
2820
+ const da = Dt.length;
2821
+ function Es(e) {
2822
2822
  if (!e)
2823
2823
  return;
2824
2824
  if (!e.isControllingVariants) {
2825
- const n = e.parent ? Os(e.parent) || {} : {};
2825
+ const n = e.parent ? Es(e.parent) || {} : {};
2826
2826
  return e.props.initial !== void 0 && (n.initial = e.props.initial), n;
2827
2827
  }
2828
2828
  const t = {};
2829
2829
  for (let n = 0; n < da; n++) {
2830
- const s = Rt[n], i = e.props[s];
2830
+ const s = Dt[n], i = e.props[s];
2831
2831
  (ge(i) || i === !1) && (t[s] = i);
2832
2832
  }
2833
2833
  return t;
2834
2834
  }
2835
- function Es(e, t) {
2835
+ function Bs(e, t) {
2836
2836
  if (!Array.isArray(t))
2837
2837
  return !1;
2838
2838
  const n = t.length;
@@ -2848,26 +2848,26 @@ function ma(e) {
2848
2848
  return (t) => Promise.all(t.map(({ animation: n, options: s }) => yo(e, n, s)));
2849
2849
  }
2850
2850
  function ga(e) {
2851
- let t = ma(e), n = fn(), s = !0;
2852
- const i = (c) => (l, u) => {
2851
+ let t = ma(e), n = dn(), s = !0;
2852
+ const i = (l) => (c, u) => {
2853
2853
  var f;
2854
- const d = se(e, u, c === "exit" ? (f = e.presenceContext) == null ? void 0 : f.custom : void 0);
2854
+ const d = se(e, u, l === "exit" ? (f = e.presenceContext) == null ? void 0 : f.custom : void 0);
2855
2855
  if (d) {
2856
2856
  const { transition: h, transitionEnd: p, ...y } = d;
2857
- l = { ...l, ...y, ...p };
2857
+ c = { ...c, ...y, ...p };
2858
2858
  }
2859
- return l;
2859
+ return c;
2860
2860
  };
2861
- function r(c) {
2862
- t = c(e);
2861
+ function r(l) {
2862
+ t = l(e);
2863
2863
  }
2864
- function o(c) {
2865
- const { props: l } = e, u = Os(e.parent) || {}, d = [], f = /* @__PURE__ */ new Set();
2864
+ function o(l) {
2865
+ const { props: c } = e, u = Es(e.parent) || {}, d = [], f = /* @__PURE__ */ new Set();
2866
2866
  let h = {}, p = 1 / 0;
2867
2867
  for (let b = 0; b < pa; b++) {
2868
- const g = ha[b], T = n[g], v = l[g] !== void 0 ? l[g] : u[g], S = ge(v), w = g === c ? T.isActive : null;
2868
+ const g = ha[b], T = n[g], v = c[g] !== void 0 ? c[g] : u[g], S = ge(v), w = g === l ? T.isActive : null;
2869
2869
  w === !1 && (p = b);
2870
- let x = v === u[g] && v !== l[g] && S;
2870
+ let x = v === u[g] && v !== c[g] && S;
2871
2871
  if (x && s && e.manuallyAnimateOnMount && (x = !1), T.protectedKeys = { ...h }, // If it isn't active and hasn't *just* been set as inactive
2872
2872
  !T.isActive && w === null || // If we didn't and don't have any defined prop for this animation type
2873
2873
  !v && !T.prevProp || // Or if the prop doesn't define an animation
@@ -2882,35 +2882,35 @@ function ga(e) {
2882
2882
  }
2883
2883
  const C = ya(T.prevProp, v);
2884
2884
  let V = C || // If we're making this variant active, we want to always make it active
2885
- g === c && T.isActive && !x && S || // If we removed a higher-priority variant (i is in reverse order)
2885
+ g === l && T.isActive && !x && S || // If we removed a higher-priority variant (i is in reverse order)
2886
2886
  b > p && S, D = !1;
2887
2887
  const k = Array.isArray(v) ? v : [v];
2888
2888
  let J = k.reduce(i(g), {});
2889
2889
  w === !1 && (J = {});
2890
- const { prevResolvedValues: Bt = {} } = T, Js = {
2891
- ...Bt,
2890
+ const { prevResolvedValues: Lt = {} } = T, Js = {
2891
+ ...Lt,
2892
2892
  ...J
2893
- }, Lt = (P) => {
2893
+ }, Nt = (P) => {
2894
2894
  V = !0, f.has(P) && (D = !0, f.delete(P)), T.needsAnimating[P] = !0;
2895
2895
  const O = e.getValue(P);
2896
2896
  O && (O.liveStyle = !1);
2897
2897
  };
2898
2898
  for (const P in Js) {
2899
- const O = J[P], z = Bt[P];
2899
+ const O = J[P], H = Lt[P];
2900
2900
  if (h.hasOwnProperty(P))
2901
2901
  continue;
2902
2902
  let Q = !1;
2903
- at(O) && at(z) ? Q = !Es(O, z) : Q = O !== z, Q ? O != null ? Lt(P) : f.add(P) : O !== void 0 && f.has(P) ? Lt(P) : T.protectedKeys[P] = !0;
2903
+ ut(O) && ut(H) ? Q = !Bs(O, H) : Q = O !== H, Q ? O != null ? Nt(P) : f.add(P) : O !== void 0 && f.has(P) ? Nt(P) : T.protectedKeys[P] = !0;
2904
2904
  }
2905
2905
  T.prevProp = v, T.prevResolvedValues = J, T.isActive && (h = { ...h, ...J }), s && e.blockInitialAnimation && (V = !1);
2906
- const Nt = x && C;
2907
- V && (!Nt || D) && d.push(...k.map((P) => {
2906
+ const Kt = x && C;
2907
+ V && (!Kt || D) && d.push(...k.map((P) => {
2908
2908
  const O = { type: g };
2909
- if (typeof P == "string" && s && !Nt && e.manuallyAnimateOnMount && e.parent) {
2910
- const { parent: z } = e, Q = se(z, P);
2911
- if (z.enteringChildren && Q) {
2909
+ if (typeof P == "string" && s && !Kt && e.manuallyAnimateOnMount && e.parent) {
2910
+ const { parent: H } = e, Q = se(H, P);
2911
+ if (H.enteringChildren && Q) {
2912
2912
  const { delayChildren: Qs } = Q.transition || {};
2913
- O.delay = cs(z.enteringChildren, e, Qs);
2913
+ O.delay = cs(H.enteringChildren, e, Qs);
2914
2914
  }
2915
2915
  }
2916
2916
  return {
@@ -2921,8 +2921,8 @@ function ga(e) {
2921
2921
  }
2922
2922
  if (f.size) {
2923
2923
  const b = {};
2924
- if (typeof l.initial != "boolean") {
2925
- const g = se(e, Array.isArray(l.initial) ? l.initial[0] : l.initial);
2924
+ if (typeof c.initial != "boolean") {
2925
+ const g = se(e, Array.isArray(c.initial) ? c.initial[0] : c.initial);
2926
2926
  g && g.transition && (b.transition = g.transition);
2927
2927
  }
2928
2928
  f.forEach((g) => {
@@ -2931,17 +2931,17 @@ function ga(e) {
2931
2931
  }), d.push({ animation: b });
2932
2932
  }
2933
2933
  let y = !!d.length;
2934
- return s && (l.initial === !1 || l.initial === l.animate) && !e.manuallyAnimateOnMount && (y = !1), s = !1, y ? t(d) : Promise.resolve();
2934
+ return s && (c.initial === !1 || c.initial === c.animate) && !e.manuallyAnimateOnMount && (y = !1), s = !1, y ? t(d) : Promise.resolve();
2935
2935
  }
2936
- function a(c, l) {
2936
+ function a(l, c) {
2937
2937
  var d;
2938
- if (n[c].isActive === l)
2938
+ if (n[l].isActive === c)
2939
2939
  return Promise.resolve();
2940
2940
  (d = e.variantChildren) == null || d.forEach((f) => {
2941
2941
  var h;
2942
- return (h = f.animationState) == null ? void 0 : h.setActive(c, l);
2943
- }), n[c].isActive = l;
2944
- const u = o(c);
2942
+ return (h = f.animationState) == null ? void 0 : h.setActive(l, c);
2943
+ }), n[l].isActive = c;
2944
+ const u = o(l);
2945
2945
  for (const f in n)
2946
2946
  n[f].protectedKeys = {};
2947
2947
  return u;
@@ -2952,12 +2952,12 @@ function ga(e) {
2952
2952
  setAnimateFunction: r,
2953
2953
  getState: () => n,
2954
2954
  reset: () => {
2955
- n = fn();
2955
+ n = dn();
2956
2956
  }
2957
2957
  };
2958
2958
  }
2959
2959
  function ya(e, t) {
2960
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !Es(t, e) : !1;
2960
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !Bs(t, e) : !1;
2961
2961
  }
2962
2962
  function U(e = !1) {
2963
2963
  return {
@@ -2967,7 +2967,7 @@ function U(e = !1) {
2967
2967
  prevResolvedValues: {}
2968
2968
  };
2969
2969
  }
2970
- function fn() {
2970
+ function dn() {
2971
2971
  return {
2972
2972
  animate: U(!0),
2973
2973
  whileInView: U(),
@@ -2978,17 +2978,17 @@ function fn() {
2978
2978
  exit: U()
2979
2979
  };
2980
2980
  }
2981
- function dn(e, t, n, s = { passive: !0 }) {
2981
+ function hn(e, t, n, s = { passive: !0 }) {
2982
2982
  return e.addEventListener(t, n, s), () => e.removeEventListener(t, n);
2983
2983
  }
2984
2984
  function ba(e) {
2985
- return R(e) ? e.get() : e;
2985
+ return F(e) ? e.get() : e;
2986
2986
  }
2987
- const Bs = re({
2987
+ const Ls = re({
2988
2988
  transformPagePoint: (e) => e,
2989
2989
  isStatic: !1,
2990
2990
  reducedMotion: "never"
2991
- }), kt = re({ strict: !1 }), hn = {
2991
+ }), Ot = re({ strict: !1 }), pn = {
2992
2992
  animation: [
2993
2993
  "animate",
2994
2994
  "variants",
@@ -3008,40 +3008,40 @@ const Bs = re({
3008
3008
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
3009
3009
  layout: ["layout", "layoutId"]
3010
3010
  };
3011
- let pn = !1;
3011
+ let mn = !1;
3012
3012
  function va() {
3013
- if (pn)
3013
+ if (mn)
3014
3014
  return;
3015
3015
  const e = {};
3016
- for (const t in hn)
3016
+ for (const t in pn)
3017
3017
  e[t] = {
3018
- isEnabled: (n) => hn[t].some((s) => !!n[s])
3018
+ isEnabled: (n) => pn[t].some((s) => !!n[s])
3019
3019
  };
3020
- Ms(e), pn = !0;
3020
+ Cs(e), mn = !0;
3021
3021
  }
3022
- function Ls() {
3022
+ function Ns() {
3023
3023
  return va(), Yo();
3024
3024
  }
3025
- function mn(e) {
3026
- const t = Ls();
3025
+ function gn(e) {
3026
+ const t = Ns();
3027
3027
  for (const n in e)
3028
3028
  t[n] = {
3029
3029
  ...t[n],
3030
3030
  ...e[n]
3031
3031
  };
3032
- Ms(t);
3032
+ Cs(t);
3033
3033
  }
3034
3034
  function wa({ children: e, features: t, strict: n = !1 }) {
3035
3035
  const [, s] = si(!He(t)), i = W(void 0);
3036
3036
  if (!He(t)) {
3037
3037
  const { renderer: r, ...o } = t;
3038
- i.current = r, mn(o);
3038
+ i.current = r, gn(o);
3039
3039
  }
3040
- return pt(() => {
3040
+ return mt(() => {
3041
3041
  He(t) && t().then(({ renderer: r, ...o }) => {
3042
- mn(o), i.current = r, s(!0);
3042
+ gn(o), i.current = r, s(!0);
3043
3043
  });
3044
- }, []), F(kt.Provider, { value: { renderer: i.current, strict: n }, children: e });
3044
+ }, []), R(Ot.Provider, { value: { renderer: i.current, strict: n }, children: e });
3045
3045
  }
3046
3046
  function He(e) {
3047
3047
  return typeof e == "function";
@@ -3082,9 +3082,9 @@ const Ta = /* @__PURE__ */ new Set([
3082
3082
  function ke(e) {
3083
3083
  return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Ta.has(e);
3084
3084
  }
3085
- let Ns = (e) => !ke(e);
3085
+ let Ks = (e) => !ke(e);
3086
3086
  function Va(e) {
3087
- typeof e == "function" && (Ns = (t) => t.startsWith("on") ? !ke(t) : e(t));
3087
+ typeof e == "function" && (Ks = (t) => t.startsWith("on") ? !ke(t) : e(t));
3088
3088
  }
3089
3089
  try {
3090
3090
  Va(require("@emotion/is-prop-valid").default);
@@ -3093,7 +3093,7 @@ try {
3093
3093
  function Sa(e, t, n) {
3094
3094
  const s = {};
3095
3095
  for (const i in e)
3096
- i === "values" && typeof e.values == "object" || (Ns(i) || n === !0 && ke(i) || !t && !ke(i) || // If trying to use native HTML drag events, forward drag listeners
3096
+ i === "values" && typeof e.values == "object" || (Ks(i) || n === !0 && ke(i) || !t && !ke(i) || // If trying to use native HTML drag events, forward drag listeners
3097
3097
  e.draggable && i.startsWith("onDrag")) && (s[i] = e[i]);
3098
3098
  return s;
3099
3099
  }
@@ -3110,54 +3110,54 @@ function xa(e, t) {
3110
3110
  }
3111
3111
  function Aa(e) {
3112
3112
  const { initial: t, animate: n } = xa(e, E(Ne));
3113
- return Oe(() => ({ initial: t, animate: n }), [gn(t), gn(n)]);
3113
+ return Oe(() => ({ initial: t, animate: n }), [yn(t), yn(n)]);
3114
3114
  }
3115
- function gn(e) {
3115
+ function yn(e) {
3116
3116
  return Array.isArray(e) ? e.join(" ") : e;
3117
3117
  }
3118
- const Ot = () => ({
3118
+ const Et = () => ({
3119
3119
  style: {},
3120
3120
  transform: {},
3121
3121
  transformOrigin: {},
3122
3122
  vars: {}
3123
3123
  });
3124
- function Ks(e, t, n) {
3124
+ function $s(e, t, n) {
3125
3125
  for (const s in t)
3126
- !R(t[s]) && !Fs(s, n) && (e[s] = t[s]);
3126
+ !F(t[s]) && !Fs(s, n) && (e[s] = t[s]);
3127
3127
  }
3128
3128
  function Ma({ transformTemplate: e }, t) {
3129
3129
  return Oe(() => {
3130
- const n = Ot();
3131
- return Dt(n, t, e), Object.assign({}, n.vars, n.style);
3130
+ const n = Et();
3131
+ return It(n, t, e), Object.assign({}, n.vars, n.style);
3132
3132
  }, [t]);
3133
3133
  }
3134
3134
  function Ca(e, t) {
3135
3135
  const n = e.style || {}, s = {};
3136
- return Ks(s, n, e), Object.assign(s, Ma(e, t)), s;
3136
+ return $s(s, n, e), Object.assign(s, Ma(e, t)), s;
3137
3137
  }
3138
3138
  function Pa(e, t) {
3139
3139
  const n = {}, s = Ca(e, t);
3140
3140
  return e.drag && e.dragListener !== !1 && (n.draggable = !1, s.userSelect = s.WebkitUserSelect = s.WebkitTouchCallout = "none", s.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = s, n;
3141
3141
  }
3142
- const $s = () => ({
3143
- ...Ot(),
3142
+ const js = () => ({
3143
+ ...Et(),
3144
3144
  attrs: {}
3145
3145
  });
3146
- function Fa(e, t, n, s) {
3146
+ function Ra(e, t, n, s) {
3147
3147
  const i = Oe(() => {
3148
- const r = $s();
3149
- return Rs(r, t, Is(s), e.transformTemplate, e.style), {
3148
+ const r = js();
3149
+ return Ds(r, t, ks(s), e.transformTemplate, e.style), {
3150
3150
  ...r.attrs,
3151
3151
  style: { ...r.style }
3152
3152
  };
3153
3153
  }, [t]);
3154
3154
  if (e.style) {
3155
3155
  const r = {};
3156
- Ks(r, e.style, e), i.style = { ...r, ...i.style };
3156
+ $s(r, e.style, e), i.style = { ...r, ...i.style };
3157
3157
  }
3158
3158
  return i;
3159
3159
  }
3160
- const Ra = [
3160
+ const Fa = [
3161
3161
  "animate",
3162
3162
  "circle",
3163
3163
  "defs",
@@ -3184,7 +3184,7 @@ const Ra = [
3184
3184
  "use",
3185
3185
  "view"
3186
3186
  ];
3187
- function Et(e) {
3187
+ function Bt(e) {
3188
3188
  return (
3189
3189
  /**
3190
3190
  * If it's not a string, it's a custom React component. Currently we only support
@@ -3197,7 +3197,7 @@ function Et(e) {
3197
3197
  /**
3198
3198
  * If it's in our list of lowercase SVG tags, it's an SVG component
3199
3199
  */
3200
- !!(Ra.indexOf(e) > -1 || /**
3200
+ !!(Fa.indexOf(e) > -1 || /**
3201
3201
  * If it contains a capital letter, it's an SVG component
3202
3202
  */
3203
3203
  /[A-Z]/u.test(e))
@@ -3205,7 +3205,7 @@ function Et(e) {
3205
3205
  );
3206
3206
  }
3207
3207
  function Da(e, t, n, { latestValues: s }, i, r = !1, o) {
3208
- const c = (o ?? Et(e) ? Fa : Pa)(t, s, i, e), l = Sa(t, typeof e == "string", r), u = e !== Tn ? { ...l, ...c, ref: n } : {}, { children: d } = t, f = Oe(() => R(d) ? d.get() : d, [d]);
3208
+ const l = (o ?? Bt(e) ? Ra : Pa)(t, s, i, e), c = Sa(t, typeof e == "string", r), u = e !== Vn ? { ...c, ...l, ref: n } : {}, { children: d } = t, f = Oe(() => F(d) ? d.get() : d, [d]);
3209
3209
  return ii(e, {
3210
3210
  ...u,
3211
3211
  children: f
@@ -3222,15 +3222,15 @@ function ka(e, t, n, s) {
3222
3222
  for (const f in r)
3223
3223
  i[f] = ba(r[f]);
3224
3224
  let { initial: o, animate: a } = e;
3225
- const c = Le(e), l = xs(e);
3226
- t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), a === void 0 && (a = t.animate));
3225
+ const l = Le(e), c = As(e);
3226
+ t && c && !l && e.inherit !== !1 && (o === void 0 && (o = t.initial), a === void 0 && (a = t.animate));
3227
3227
  let u = n ? n.initial === !1 : !1;
3228
3228
  u = u || o === !1;
3229
3229
  const d = u ? a : o;
3230
3230
  if (d && typeof d != "boolean" && !Be(d)) {
3231
3231
  const f = Array.isArray(d) ? d : [d];
3232
3232
  for (let h = 0; h < f.length; h++) {
3233
- const p = Mt(e, f[h]);
3233
+ const p = Ct(e, f[h]);
3234
3234
  if (p) {
3235
3235
  const { transitionEnd: y, transition: b, ...g } = p;
3236
3236
  for (const T in g) {
@@ -3248,19 +3248,19 @@ function ka(e, t, n, s) {
3248
3248
  }
3249
3249
  return i;
3250
3250
  }
3251
- const js = (e) => (t, n) => {
3252
- const s = E(Ne), i = E(An), r = () => Ia(e, t, s, i);
3251
+ const Ws = (e) => (t, n) => {
3252
+ const s = E(Ne), i = E(Mn), r = () => Ia(e, t, s, i);
3253
3253
  return n ? r() : bi(r);
3254
- }, Oa = /* @__PURE__ */ js({
3255
- scrapeMotionValuesFromProps: It,
3256
- createRenderState: Ot
3257
- }), Ea = /* @__PURE__ */ js({
3258
- scrapeMotionValuesFromProps: ks,
3259
- createRenderState: $s
3254
+ }, Oa = /* @__PURE__ */ Ws({
3255
+ scrapeMotionValuesFromProps: kt,
3256
+ createRenderState: Et
3257
+ }), Ea = /* @__PURE__ */ Ws({
3258
+ scrapeMotionValuesFromProps: Os,
3259
+ createRenderState: js
3260
3260
  }), Ba = Symbol.for("motionComponentSymbol");
3261
3261
  function La(e, t, n) {
3262
3262
  const s = W(n);
3263
- Vn(() => {
3263
+ Sn(() => {
3264
3264
  s.current = n;
3265
3265
  });
3266
3266
  const i = W(null);
@@ -3270,8 +3270,8 @@ function La(e, t, n) {
3270
3270
  const o = s.current;
3271
3271
  if (typeof o == "function")
3272
3272
  if (r) {
3273
- const c = o(r);
3274
- typeof c == "function" && (i.current = c);
3273
+ const l = o(r);
3274
+ typeof l == "function" && (i.current = l);
3275
3275
  } else i.current ? (i.current(), i.current = null) : o(r);
3276
3276
  else o && (o.current = r);
3277
3277
  }, [t]);
@@ -3282,13 +3282,13 @@ function Ka(e) {
3282
3282
  }
3283
3283
  function $a(e, t, n, s, i, r) {
3284
3284
  var v, S;
3285
- const { visualElement: o } = E(Ne), a = E(kt), c = E(An), l = E(Bs), u = l.reducedMotion, d = l.skipAnimations, f = W(null), h = W(!1);
3285
+ const { visualElement: o } = E(Ne), a = E(Ot), l = E(Mn), c = E(Ls), u = c.reducedMotion, d = c.skipAnimations, f = W(null), h = W(!1);
3286
3286
  s = s || a.renderer, !f.current && s && (f.current = s(e, {
3287
3287
  visualState: t,
3288
3288
  parent: o,
3289
3289
  props: n,
3290
- presenceContext: c,
3291
- blockInitialAnimation: c ? c.initial === !1 : !1,
3290
+ presenceContext: l,
3291
+ blockInitialAnimation: l ? l.initial === !1 : !1,
3292
3292
  reducedMotionConfig: u,
3293
3293
  skipAnimations: d,
3294
3294
  isSVG: r
@@ -3296,13 +3296,13 @@ function $a(e, t, n, s, i, r) {
3296
3296
  const p = f.current, y = E(Na);
3297
3297
  p && !p.projection && i && (p.type === "html" || p.type === "svg") && ja(f.current, n, i, y);
3298
3298
  const b = W(!1);
3299
- Vn(() => {
3300
- p && b.current && p.update(n, c);
3299
+ Sn(() => {
3300
+ p && b.current && p.update(n, l);
3301
3301
  });
3302
- const g = n[ps], T = W(!!g && !((v = window.MotionHandoffIsComplete) != null && v.call(window, g)) && ((S = window.MotionHasOptimisedAnimation) == null ? void 0 : S.call(window, g)));
3302
+ const g = n[ms], T = W(!!g && !((v = window.MotionHandoffIsComplete) != null && v.call(window, g)) && ((S = window.MotionHasOptimisedAnimation) == null ? void 0 : S.call(window, g)));
3303
3303
  return vi(() => {
3304
3304
  h.current = !0, p && (b.current = !0, window.MotionIsMounted = !0, p.updateFeatures(), p.scheduleRenderMicrotask(), T.current && p.animationState && p.animationState.animateChanges());
3305
- }), pt(() => {
3305
+ }), mt(() => {
3306
3306
  p && (!T.current && p.animationState && p.animationState.animateChanges(), T.current && (queueMicrotask(() => {
3307
3307
  var w;
3308
3308
  (w = window.MotionHandoffMarkAsComplete) == null || w.call(window, g);
@@ -3310,8 +3310,8 @@ function $a(e, t, n, s, i, r) {
3310
3310
  }), p;
3311
3311
  }
3312
3312
  function ja(e, t, n, s) {
3313
- const { layoutId: i, layout: r, drag: o, dragConstraints: a, layoutScroll: c, layoutRoot: l, layoutCrossfade: u } = t;
3314
- e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Ws(e.parent)), e.projection.setOptions({
3313
+ const { layoutId: i, layout: r, drag: o, dragConstraints: a, layoutScroll: l, layoutRoot: c, layoutCrossfade: u } = t;
3314
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : _s(e.parent)), e.projection.setOptions({
3315
3315
  layoutId: i,
3316
3316
  layout: r,
3317
3317
  alwaysMeasureLayout: !!o || a && Ka(a),
@@ -3326,43 +3326,43 @@ function ja(e, t, n, s) {
3326
3326
  animationType: typeof r == "string" ? r : "both",
3327
3327
  initialPromotionConfig: s,
3328
3328
  crossfade: u,
3329
- layoutScroll: c,
3330
- layoutRoot: l
3329
+ layoutScroll: l,
3330
+ layoutRoot: c
3331
3331
  });
3332
3332
  }
3333
- function Ws(e) {
3333
+ function _s(e) {
3334
3334
  if (e)
3335
- return e.options.allowProjection !== !1 ? e.projection : Ws(e.parent);
3335
+ return e.options.allowProjection !== !1 ? e.projection : _s(e.parent);
3336
3336
  }
3337
3337
  function Wa(e, { forwardMotionProps: t = !1, type: n } = {}, s, i) {
3338
- const r = n ? n === "svg" : Et(e), o = r ? Ea : Oa;
3339
- function a(l, u) {
3338
+ const r = n ? n === "svg" : Bt(e), o = r ? Ea : Oa;
3339
+ function a(c, u) {
3340
3340
  let d;
3341
3341
  const f = {
3342
- ...E(Bs),
3343
- ...l,
3344
- layoutId: _a(l)
3345
- }, { isStatic: h } = f, p = Aa(l), y = o(l, h);
3346
- if (!h && xn) {
3342
+ ...E(Ls),
3343
+ ...c,
3344
+ layoutId: _a(c)
3345
+ }, { isStatic: h } = f, p = Aa(c), y = o(c, h);
3346
+ if (!h && An) {
3347
3347
  Ga(f, s);
3348
- const b = Ha(f);
3348
+ const b = za(f);
3349
3349
  d = b.MeasureLayout, p.visualElement = $a(e, y, f, i, b.ProjectionNode, r);
3350
3350
  }
3351
- return ht(Ne.Provider, { value: p, children: [d && p.visualElement ? F(d, { visualElement: p.visualElement, ...f }) : null, Da(e, l, La(y, p.visualElement, u), y, h, t, r)] });
3351
+ return pt(Ne.Provider, { value: p, children: [d && p.visualElement ? R(d, { visualElement: p.visualElement, ...f }) : null, Da(e, c, La(y, p.visualElement, u), y, h, t, r)] });
3352
3352
  }
3353
3353
  a.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
3354
- const c = oi(a);
3355
- return c[Ba] = e, c;
3354
+ const l = oi(a);
3355
+ return l[Ba] = e, l;
3356
3356
  }
3357
3357
  function _a({ layoutId: e }) {
3358
3358
  const t = E(yi).id;
3359
3359
  return t && e !== void 0 ? t + "-" + e : e;
3360
3360
  }
3361
3361
  function Ga(e, t) {
3362
- E(kt).strict, process.env.NODE_ENV;
3362
+ E(Ot).strict, process.env.NODE_ENV;
3363
3363
  }
3364
- function Ha(e) {
3365
- const t = Ls(), { drag: n, layout: s } = t;
3364
+ function za(e) {
3365
+ const t = Ns(), { drag: n, layout: s } = t;
3366
3366
  if (!n && !s)
3367
3367
  return {};
3368
3368
  const i = { ...n, ...s };
@@ -3371,10 +3371,10 @@ function Ha(e) {
3371
3371
  ProjectionNode: i.ProjectionNode
3372
3372
  };
3373
3373
  }
3374
- const za = (e, t) => t.isSVG ?? Et(e) ? new fa(t) : new ra(t, {
3375
- allowProjection: e !== Tn
3374
+ const Ha = (e, t) => t.isSVG ?? Bt(e) ? new fa(t) : new ra(t, {
3375
+ allowProjection: e !== Vn
3376
3376
  });
3377
- class Ua extends le {
3377
+ class Ua extends ce {
3378
3378
  /**
3379
3379
  * We dynamically generate the AnimationState manager as it contains a reference
3380
3380
  * to the underlying animation library. We only want to load that if we load this,
@@ -3403,7 +3403,7 @@ class Ua extends le {
3403
3403
  }
3404
3404
  }
3405
3405
  let Ya = 0;
3406
- class Xa extends le {
3406
+ class Xa extends ce {
3407
3407
  constructor() {
3408
3408
  super(...arguments), this.id = Ya++;
3409
3409
  }
@@ -3433,7 +3433,7 @@ const qa = {
3433
3433
  Feature: Xa
3434
3434
  }
3435
3435
  };
3436
- function _s(e) {
3436
+ function Gs(e) {
3437
3437
  return {
3438
3438
  point: {
3439
3439
  x: e.pageX,
@@ -3441,21 +3441,21 @@ function _s(e) {
3441
3441
  }
3442
3442
  };
3443
3443
  }
3444
- function yn(e, t, n) {
3444
+ function bn(e, t, n) {
3445
3445
  const { props: s } = e;
3446
3446
  e.animationState && s.whileHover && e.animationState.setActive("whileHover", n === "Start");
3447
3447
  const i = "onHover" + n, r = s[i];
3448
- r && N.postRender(() => r(t, _s(t)));
3448
+ r && N.postRender(() => r(t, Gs(t)));
3449
3449
  }
3450
- class Za extends le {
3450
+ class Za extends ce {
3451
3451
  mount() {
3452
3452
  const { current: t } = this.node;
3453
- t && (this.unmount = Bo(t, (n, s) => (yn(this.node, s, "Start"), (i) => yn(this.node, i, "End"))));
3453
+ t && (this.unmount = Bo(t, (n, s) => (bn(this.node, s, "Start"), (i) => bn(this.node, i, "End"))));
3454
3454
  }
3455
3455
  unmount() {
3456
3456
  }
3457
3457
  }
3458
- class Ja extends le {
3458
+ class Ja extends ce {
3459
3459
  constructor() {
3460
3460
  super(...arguments), this.isActive = !1;
3461
3461
  }
@@ -3472,26 +3472,26 @@ class Ja extends le {
3472
3472
  !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
3473
3473
  }
3474
3474
  mount() {
3475
- this.unmount = Ee(dn(this.node.current, "focus", () => this.onFocus()), dn(this.node.current, "blur", () => this.onBlur()));
3475
+ this.unmount = Ee(hn(this.node.current, "focus", () => this.onFocus()), hn(this.node.current, "blur", () => this.onBlur()));
3476
3476
  }
3477
3477
  unmount() {
3478
3478
  }
3479
3479
  }
3480
- function bn(e, t, n) {
3480
+ function vn(e, t, n) {
3481
3481
  const { props: s } = e;
3482
3482
  if (e.current instanceof HTMLButtonElement && e.current.disabled)
3483
3483
  return;
3484
3484
  e.animationState && s.whileTap && e.animationState.setActive("whileTap", n === "Start");
3485
3485
  const i = "onTap" + (n === "End" ? "" : n), r = s[i];
3486
- r && N.postRender(() => r(t, _s(t)));
3486
+ r && N.postRender(() => r(t, Gs(t)));
3487
3487
  }
3488
- class Qa extends le {
3488
+ class Qa extends ce {
3489
3489
  mount() {
3490
3490
  const { current: t } = this.node;
3491
3491
  if (!t)
3492
3492
  return;
3493
3493
  const { globalTapTarget: n, propagate: s } = this.node.props;
3494
- this.unmount = jo(t, (i, r) => (bn(this.node, r, "Start"), (o, { success: a }) => bn(this.node, o, a ? "End" : "Cancel")), {
3494
+ this.unmount = jo(t, (i, r) => (vn(this.node, r, "Start"), (o, { success: a }) => vn(this.node, o, a ? "End" : "Cancel")), {
3495
3495
  useGlobalTarget: n,
3496
3496
  stopPropagation: (s == null ? void 0 : s.tap) === !1
3497
3497
  });
@@ -3499,29 +3499,29 @@ class Qa extends le {
3499
3499
  unmount() {
3500
3500
  }
3501
3501
  }
3502
- const dt = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), eu = (e) => {
3503
- const t = dt.get(e.target);
3502
+ const ht = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), eu = (e) => {
3503
+ const t = ht.get(e.target);
3504
3504
  t && t(e);
3505
3505
  }, tu = (e) => {
3506
3506
  e.forEach(eu);
3507
3507
  };
3508
3508
  function nu({ root: e, ...t }) {
3509
3509
  const n = e || document;
3510
- ze.has(n) || ze.set(n, {});
3511
- const s = ze.get(n), i = JSON.stringify(t);
3510
+ Ue.has(n) || Ue.set(n, {});
3511
+ const s = Ue.get(n), i = JSON.stringify(t);
3512
3512
  return s[i] || (s[i] = new IntersectionObserver(tu, { root: e, ...t })), s[i];
3513
3513
  }
3514
3514
  function su(e, t, n) {
3515
3515
  const s = nu(t);
3516
- return dt.set(e, n), s.observe(e), () => {
3517
- dt.delete(e), s.unobserve(e);
3516
+ return ht.set(e, n), s.observe(e), () => {
3517
+ ht.delete(e), s.unobserve(e);
3518
3518
  };
3519
3519
  }
3520
3520
  const iu = {
3521
3521
  some: 0,
3522
3522
  all: 1
3523
3523
  };
3524
- class ru extends le {
3524
+ class ru extends ce {
3525
3525
  constructor() {
3526
3526
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
3527
3527
  }
@@ -3531,13 +3531,13 @@ class ru extends le {
3531
3531
  root: n ? n.current : void 0,
3532
3532
  rootMargin: s,
3533
3533
  threshold: typeof i == "number" ? i : iu[i]
3534
- }, a = (c) => {
3535
- const { isIntersecting: l } = c;
3536
- if (this.isInView === l || (this.isInView = l, r && !l && this.hasEnteredView))
3534
+ }, a = (l) => {
3535
+ const { isIntersecting: c } = l;
3536
+ if (this.isInView === c || (this.isInView = c, r && !c && this.hasEnteredView))
3537
3537
  return;
3538
- l && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", l);
3539
- const { onViewportEnter: u, onViewportLeave: d } = this.node.getProps(), f = l ? u : d;
3540
- f && f(c);
3538
+ c && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", c);
3539
+ const { onViewportEnter: u, onViewportLeave: d } = this.node.getProps(), f = c ? u : d;
3540
+ f && f(l);
3541
3541
  };
3542
3542
  return su(this.node.current, o, a);
3543
3543
  }
@@ -3570,14 +3570,14 @@ const au = {
3570
3570
  Feature: Za
3571
3571
  }
3572
3572
  }, uu = {
3573
- renderer: za,
3573
+ renderer: Ha,
3574
3574
  ...qa,
3575
3575
  ...au
3576
3576
  };
3577
- function cu(e, t) {
3577
+ function lu(e, t) {
3578
3578
  return Wa(e, t);
3579
3579
  }
3580
- const vn = /* @__PURE__ */ cu("span"), lu = {
3580
+ const wn = /* @__PURE__ */ lu("span"), cu = {
3581
3581
  Root: {
3582
3582
  0: {
3583
3583
  h: "5"
@@ -3589,16 +3589,33 @@ const vn = /* @__PURE__ */ cu("span"), lu = {
3589
3589
  h: "8"
3590
3590
  }
3591
3591
  }
3592
- }, Gs = {
3592
+ }, Ke = {
3593
3593
  Root: {
3594
- 0: "1_5",
3595
- 1: "2",
3596
- 2: "2_5"
3594
+ 0: { pl: "1_5" },
3595
+ 1: { pl: "2" },
3596
+ 2: { pl: "2_5" }
3597
3597
  },
3598
3598
  Text: {
3599
- 0: "1_5",
3600
- 1: "2",
3601
- 2: "2_5"
3599
+ 0: {
3600
+ mr: "1_5"
3601
+ },
3602
+ 1: {
3603
+ mr: "2"
3604
+ },
3605
+ 2: {
3606
+ mr: "2_5"
3607
+ }
3608
+ },
3609
+ Button: {
3610
+ 0: {
3611
+ ml: "0_5"
3612
+ },
3613
+ 1: {
3614
+ ml: "1"
3615
+ },
3616
+ 2: {
3617
+ ml: "1"
3618
+ }
3602
3619
  }
3603
3620
  }, ie = {
3604
3621
  Root: {
@@ -3701,7 +3718,7 @@ const vn = /* @__PURE__ */ cu("span"), lu = {
3701
3718
  purple: "purple"
3702
3719
  }
3703
3720
  }
3704
- }, Hs = {
3721
+ }, zs = {
3705
3722
  Button: {
3706
3723
  solid: "solid",
3707
3724
  soft: "ghost"
@@ -3715,7 +3732,7 @@ const vn = /* @__PURE__ */ cu("span"), lu = {
3715
3732
  size: "1",
3716
3733
  color: "default",
3717
3734
  variant: "soft"
3718
- }), zs = ({
3735
+ }), Hs = ({
3719
3736
  as: e = "span",
3720
3737
  size: t = "1",
3721
3738
  color: n = "default",
@@ -3724,27 +3741,26 @@ const vn = /* @__PURE__ */ cu("span"), lu = {
3724
3741
  style: r,
3725
3742
  ...o
3726
3743
  }) => {
3727
- const { styleProp: a, otherProps: c } = gi({
3744
+ const { styleProp: a, otherProps: l } = gi({
3728
3745
  props: {
3729
3746
  ...s === "soft" ? { tagBorderColor: ie.Border.soft[n] } : {},
3730
3747
  style: r
3731
3748
  },
3732
3749
  cssVars: fu
3733
3750
  });
3734
- return /* @__PURE__ */ F(Te.Provider, { value: { size: t, color: n, variant: s }, children: /* @__PURE__ */ F(
3751
+ return /* @__PURE__ */ R(Te.Provider, { value: { size: t, color: n, variant: s }, children: /* @__PURE__ */ R(
3735
3752
  ti,
3736
3753
  {
3737
3754
  as: e,
3738
3755
  align: "center",
3739
3756
  rounded: "full",
3740
- overflow: "hidden",
3741
3757
  display: "inline-flex",
3742
- pl: Gs.Root[t],
3758
+ pl: Ke.Root[t].pl,
3743
3759
  backgroundColor: ie.Root[s][n],
3744
- h: lu.Root[t].h,
3745
- className: ci("tgph-tag", i),
3760
+ h: cu.Root[t].h,
3761
+ className: li("tgph-tag", i),
3746
3762
  style: a,
3747
- ...c,
3763
+ ...l,
3748
3764
  ...o,
3749
3765
  "data-tag": !0
3750
3766
  }
@@ -3757,14 +3773,14 @@ const vn = /* @__PURE__ */ cu("span"), lu = {
3757
3773
  ...i
3758
3774
  }) => {
3759
3775
  const r = G.useContext(Te);
3760
- return /* @__PURE__ */ F(
3776
+ return /* @__PURE__ */ R(
3761
3777
  ui,
3762
3778
  {
3763
3779
  as: e,
3764
3780
  size: r.size,
3765
3781
  color: ie.Text[r.variant][r.color],
3766
3782
  weight: "medium",
3767
- mr: Gs.Text[r.size],
3783
+ mr: Ke.Text[r.size].mr,
3768
3784
  maxW: t,
3769
3785
  overflow: n,
3770
3786
  internal_optionalAs: !0,
@@ -3783,7 +3799,7 @@ const vn = /* @__PURE__ */ cu("span"), lu = {
3783
3799
  const o = setTimeout(() => r(!1), 2e3);
3784
3800
  return () => clearTimeout(o);
3785
3801
  }
3786
- }, [i]), /* @__PURE__ */ F(wa, { features: uu, children: /* @__PURE__ */ F(ai, { label: "Copy text", children: /* @__PURE__ */ ht(
3802
+ }, [i]), /* @__PURE__ */ R(wa, { features: uu, children: /* @__PURE__ */ R(ai, { label: "Copy text", children: /* @__PURE__ */ pt(
3787
3803
  xe.Root,
3788
3804
  {
3789
3805
  onClick: (o) => {
@@ -3792,28 +3808,31 @@ const vn = /* @__PURE__ */ cu("span"), lu = {
3792
3808
  },
3793
3809
  size: s.size,
3794
3810
  color: ie.Button[s.variant][s.color],
3795
- variant: Hs.Button[s.variant],
3811
+ variant: zs.Button[s.variant],
3796
3812
  rounded: "0",
3797
3813
  position: "relative",
3798
3814
  overflow: "hidden",
3815
+ borderTopRightRadius: "full",
3816
+ borderBottomRightRadius: "full",
3817
+ ml: Ke.Button[s.size].ml,
3799
3818
  ...n,
3800
3819
  children: [
3801
- /* @__PURE__ */ F(
3820
+ /* @__PURE__ */ R(
3802
3821
  xe.Icon,
3803
3822
  {
3804
- as: vn,
3823
+ as: wn,
3805
3824
  initial: !1,
3806
3825
  animate: { y: i ? 0 : "150%", opacity: 1 },
3807
3826
  transition: { duration: 0.15, type: "spring", bounce: 0 },
3808
- icon: li,
3827
+ icon: ci,
3809
3828
  alt: "Copied text",
3810
3829
  "aria-hidden": !i
3811
3830
  }
3812
3831
  ),
3813
- /* @__PURE__ */ F(
3832
+ /* @__PURE__ */ R(
3814
3833
  xe.Icon,
3815
3834
  {
3816
- as: vn,
3835
+ as: wn,
3817
3836
  initial: !1,
3818
3837
  animate: { y: i ? "-150%" : 0, opacity: 1 },
3819
3838
  transition: { duration: 0.15, type: "spring", bounce: 0 },
@@ -3828,14 +3847,17 @@ const vn = /* @__PURE__ */ cu("span"), lu = {
3828
3847
  ) }) });
3829
3848
  }, Xs = ({ ...e }) => {
3830
3849
  const t = G.useContext(Te);
3831
- return /* @__PURE__ */ F(
3850
+ return /* @__PURE__ */ R(
3832
3851
  xe,
3833
3852
  {
3834
3853
  size: t.size,
3835
3854
  color: ie.Button[t.variant][t.color],
3836
- variant: Hs.Button[t.variant],
3837
- icon: { icon: Sn, alt: "close" },
3855
+ variant: zs.Button[t.variant],
3856
+ icon: { icon: xn, alt: "close" },
3838
3857
  rounded: "0",
3858
+ borderTopRightRadius: "full",
3859
+ borderBottomRightRadius: "full",
3860
+ ml: Ke.Button[t.size].ml,
3839
3861
  ...e
3840
3862
  }
3841
3863
  );
@@ -3846,7 +3868,7 @@ const vn = /* @__PURE__ */ cu("span"), lu = {
3846
3868
  ...s
3847
3869
  }) => {
3848
3870
  const i = G.useContext(Te), r = t ? { alt: t } : { "aria-hidden": n };
3849
- return /* @__PURE__ */ F(
3871
+ return /* @__PURE__ */ R(
3850
3872
  ei,
3851
3873
  {
3852
3874
  icon: e,
@@ -3866,22 +3888,22 @@ const vn = /* @__PURE__ */ cu("span"), lu = {
3866
3888
  onCopy: r,
3867
3889
  textToCopy: o,
3868
3890
  textProps: a = { maxW: "40" },
3869
- children: c,
3870
- ...l
3891
+ children: l,
3892
+ ...c
3871
3893
  }) => {
3872
3894
  const d = {
3873
3895
  ...a,
3874
3896
  ...!!(i || r) ? { mr: "0" } : {}
3875
3897
  };
3876
- return /* @__PURE__ */ ht(zs, { color: e, size: t, variant: n, ...l, children: [
3877
- s && /* @__PURE__ */ F(qs, { ...s }),
3878
- /* @__PURE__ */ F(Us, { as: "span", ...d, children: c }),
3879
- i && /* @__PURE__ */ F(Xs, { onClick: i, icon: { icon: Sn, alt: "Remove" } }),
3880
- r && /* @__PURE__ */ F(Ys, { onClick: r, textToCopy: o })
3898
+ return /* @__PURE__ */ pt(Hs, { color: e, size: t, variant: n, ...c, children: [
3899
+ s && /* @__PURE__ */ R(qs, { ...s }),
3900
+ /* @__PURE__ */ R(Us, { as: "span", ...d, children: l }),
3901
+ i && /* @__PURE__ */ R(Xs, { onClick: i, icon: { icon: xn, alt: "Remove" } }),
3902
+ r && /* @__PURE__ */ R(Ys, { onClick: r, textToCopy: o })
3881
3903
  ] });
3882
3904
  };
3883
3905
  Object.assign(Zs, {
3884
- Root: zs,
3906
+ Root: Hs,
3885
3907
  Button: Xs,
3886
3908
  Text: Us,
3887
3909
  Icon: qs,