lizaui 3.0.18 → 3.0.19

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,19 +1,19 @@
1
1
  import { j as P } from "./jsx-runtime-BYq8_R6m.js";
2
- import * as yt from "react";
3
- import { useState as Ce, useCallback as se, useId as Ee, useMemo as W, cloneElement as Ws, isValidElement as An, createContext as ie, useRef as j, useLayoutEffect as Gs, useEffect as ke, useContext as E, useInsertionEffect as Mn, Children as zs, forwardRef as Cn, Fragment as Pn, createElement as _s } from "react";
4
- import { u as Us, d as _t } from "./refs-DcCOPvdv.js";
5
- import { t as Hs } from "./tv-ButAo3dF.js";
6
- import { d as Ys, c as Q } from "./classes-7MXTIFwM.js";
2
+ import * as xt from "react";
3
+ import { useState as Pe, useCallback as se, useId as ke, useMemo as W, cloneElement as rr, isValidElement as jn, createContext as ie, useRef as j, useLayoutEffect as ir, useEffect as Ne, useContext as O, useInsertionEffect as $n, Children as or, forwardRef as Wn, Fragment as Gn, createElement as ar } from "react";
4
+ import { u as lr, d as Zt } from "./refs-DcCOPvdv.js";
5
+ import { t as cr } from "./tv-ButAo3dF.js";
6
+ import { d as ur, c as Q } from "./classes-7MXTIFwM.js";
7
7
  import { c as V } from "./variants-DhZQjbsQ.js";
8
- import { c as Xs } from "./clsx-OuTLNxxd.js";
9
- import { S as qs } from "./index-ctnzfHek.js";
10
- function Zs(e, t, n) {
8
+ import { c as dr } from "./clsx-OuTLNxxd.js";
9
+ import { S as fr } from "./index-ctnzfHek.js";
10
+ function hr(e, t, n) {
11
11
  return Math.min(Math.max(e, t), n);
12
12
  }
13
- function Js(e) {
13
+ function pr(e) {
14
14
  return `${e}-${Math.floor(Math.random() * 1e6)}`;
15
15
  }
16
- const Qs = Hs({
16
+ const mr = cr({
17
17
  base: [
18
18
  "z-0",
19
19
  "cursor-pointer",
@@ -34,7 +34,7 @@ const Qs = Hs({
34
34
  "tap-highlight-transparent",
35
35
  "transform-gpu data-[pressed=true]:scale-[0.97]",
36
36
  // focus ring
37
- ...Ys
37
+ ...ur
38
38
  ],
39
39
  variants: {
40
40
  variant: {
@@ -420,13 +420,13 @@ const Qs = Hs({
420
420
  }
421
421
  ]
422
422
  });
423
- function er(e = {}) {
424
- const [t, n] = Ce([]), s = se((i) => {
423
+ function gr(e = {}) {
424
+ const [t, n] = Pe([]), s = se((i) => {
425
425
  const o = i.target, a = Math.max(o.clientWidth, o.clientHeight);
426
426
  n((c) => [
427
427
  ...c,
428
428
  {
429
- key: Js(c.length.toString()),
429
+ key: pr(c.length.toString()),
430
430
  size: a,
431
431
  x: i.x - a / 2,
432
432
  y: i.y - a / 2
@@ -437,7 +437,7 @@ function er(e = {}) {
437
437
  }, []);
438
438
  return { ripples: t, onClear: r, onPress: s, ...e };
439
439
  }
440
- function tr(e) {
440
+ function yr(e) {
441
441
  const {
442
442
  id: t,
443
443
  classNames: n,
@@ -454,8 +454,8 @@ function tr(e) {
454
454
  spinnerPlacement: h = "start",
455
455
  type: m = "button",
456
456
  ...v
457
- } = e, x = Us(e.ref), p = Ee(), S = t || p, { onPress: y, onClear: A, ripples: g } = er(), w = W(
458
- () => Qs({
457
+ } = e, T = lr(e.ref), p = ke(), S = t || p, { onPress: y, onClear: A, ripples: g } = gr(), w = W(
458
+ () => mr({
459
459
  size: e.size,
460
460
  color: e.color,
461
461
  variant: e.variant,
@@ -477,20 +477,20 @@ function tr(e) {
477
477
  u == null || u(N);
478
478
  },
479
479
  [u, a]
480
- ), T = (N) => An(N) ? Ws(N, {
480
+ ), x = (N) => jn(N) ? rr(N, {
481
481
  // "aria-hidden": true,
482
482
  // "focusable": false,
483
- }) : null, I = T(l), R = T(d), z = (N) => {
484
- const ze = N.currentTarget.getBoundingClientRect(), D = {
483
+ }) : null, I = x(l), R = x(d), z = (N) => {
484
+ const ze = N.currentTarget.getBoundingClientRect(), F = {
485
485
  target: N.currentTarget,
486
486
  x: N.clientX - ze.left,
487
487
  y: N.clientY - ze.top
488
488
  };
489
- y(D);
489
+ y(F);
490
490
  }, Te = () => ({
491
- className: Xs(w, n == null ? void 0 : n.base),
492
- "data-disabled": _t(a),
493
- "data-loading": _t(o),
491
+ className: dr(w, n == null ? void 0 : n.base),
492
+ "data-disabled": Zt(a),
493
+ "data-loading": Zt(o),
494
494
  onClick: M,
495
495
  onPointerDown: z,
496
496
  "data-slot": "button",
@@ -500,9 +500,9 @@ function tr(e) {
500
500
  ...v
501
501
  }), We = se(() => ({ ripples: g, onClear: A }), [g, A]);
502
502
  return {
503
- domRef: x,
503
+ domRef: T,
504
504
  isIconOnly: c,
505
- Component: r ? qs : "button",
505
+ Component: r ? fr : "button",
506
506
  children: i,
507
507
  isLoading: o,
508
508
  spinner: f,
@@ -513,48 +513,48 @@ function tr(e) {
513
513
  getRippleProps: We
514
514
  };
515
515
  }
516
- const Fn = ie({});
517
- function bt(e) {
516
+ const zn = ie({});
517
+ function Tt(e) {
518
518
  const t = j(null);
519
519
  return t.current === null && (t.current = e()), t.current;
520
520
  }
521
- const vt = typeof window < "u", In = vt ? Gs : ke, Ne = /* @__PURE__ */ ie(null);
522
- function nr(e, t) {
521
+ const Vt = typeof window < "u", _n = Vt ? ir : Ne, Le = /* @__PURE__ */ ie(null);
522
+ function br(e, t) {
523
523
  e.indexOf(t) === -1 && e.push(t);
524
524
  }
525
- function sr(e, t) {
525
+ function vr(e, t) {
526
526
  const n = e.indexOf(t);
527
527
  n > -1 && e.splice(n, 1);
528
528
  }
529
- const Z = (e, t, n) => n > t ? t : n < e ? e : n;
530
- let be = () => {
531
- }, J = () => {
529
+ const J = (e, t, n) => n > t ? t : n < e ? e : n;
530
+ let oe = () => {
531
+ }, U = () => {
532
532
  };
533
- process.env.NODE_ENV !== "production" && (be = (e, t) => {
534
- }, J = (e, t) => {
533
+ process.env.NODE_ENV !== "production" && (oe = (e, t) => {
534
+ }, U = (e, t) => {
535
535
  if (!e)
536
536
  throw new Error(t);
537
537
  });
538
- const G = {}, Dn = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
539
- function rr(e) {
538
+ const G = {}, Un = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
539
+ function wr(e) {
540
540
  return typeof e == "object" && e !== null;
541
541
  }
542
- const Rn = (e) => /^0[^.\s]+$/u.test(e);
542
+ const Hn = (e) => /^0[^.\s]+$/u.test(e);
543
543
  // @__NO_SIDE_EFFECTS__
544
- function wt(e) {
544
+ function St(e) {
545
545
  let t;
546
546
  return () => (t === void 0 && (t = e()), t);
547
547
  }
548
- const oe = /* @__NO_SIDE_EFFECTS__ */ (e) => e, ir = (e, t) => (n) => t(e(n)), Le = (...e) => e.reduce(ir), On = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
548
+ const ae = /* @__NO_SIDE_EFFECTS__ */ (e) => e, xr = (e, t) => (n) => t(e(n)), Be = (...e) => e.reduce(xr), Yn = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
549
549
  const s = t - e;
550
550
  return s === 0 ? 1 : (n - e) / s;
551
551
  };
552
- class En {
552
+ class Xn {
553
553
  constructor() {
554
554
  this.subscriptions = [];
555
555
  }
556
556
  add(t) {
557
- return nr(this.subscriptions, t), () => sr(this.subscriptions, t);
557
+ return br(this.subscriptions, t), () => vr(this.subscriptions, t);
558
558
  }
559
559
  notify(t, n, s) {
560
560
  const r = this.subscriptions.length;
@@ -575,48 +575,48 @@ class En {
575
575
  }
576
576
  }
577
577
  const B = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, $ = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
578
- function kn(e, t) {
578
+ function qn(e, t) {
579
579
  return t ? e * (1e3 / t) : 0;
580
580
  }
581
- const Ut = /* @__PURE__ */ new Set();
582
- function Tt(e, t, n) {
583
- e || Ut.has(t) || Ut.add(t);
581
+ const Jt = /* @__PURE__ */ new Set();
582
+ function At(e, t, n) {
583
+ e || Jt.has(t) || Jt.add(t);
584
584
  }
585
- const Nn = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, or = 1e-7, ar = 12;
586
- function lr(e, t, n, s, r) {
585
+ const Zn = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Tr = 1e-7, Vr = 12;
586
+ function Sr(e, t, n, s, r) {
587
587
  let i, o, a = 0;
588
588
  do
589
- o = t + (n - t) / 2, i = Nn(o, s, r) - e, i > 0 ? n = o : t = o;
590
- while (Math.abs(i) > or && ++a < ar);
589
+ o = t + (n - t) / 2, i = Zn(o, s, r) - e, i > 0 ? n = o : t = o;
590
+ while (Math.abs(i) > Tr && ++a < Vr);
591
591
  return o;
592
592
  }
593
593
  function ve(e, t, n, s) {
594
594
  if (e === t && n === s)
595
- return oe;
596
- const r = (i) => lr(i, 0, 1, e, n);
597
- return (i) => i === 0 || i === 1 ? i : Nn(r(i), t, s);
598
- }
599
- const Ln = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Bn = (e) => (t) => 1 - e(1 - t), Kn = /* @__PURE__ */ ve(0.33, 1.53, 0.69, 0.99), xt = /* @__PURE__ */ Bn(Kn), jn = /* @__PURE__ */ Ln(xt), $n = (e) => (e *= 2) < 1 ? 0.5 * xt(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Vt = (e) => 1 - Math.sin(Math.acos(e)), cr = Bn(Vt), Wn = Ln(Vt), ur = /* @__PURE__ */ ve(0.42, 0, 1, 1), dr = /* @__PURE__ */ ve(0, 0, 0.58, 1), Gn = /* @__PURE__ */ ve(0.42, 0, 0.58, 1), fr = (e) => Array.isArray(e) && typeof e[0] != "number", zn = (e) => Array.isArray(e) && typeof e[0] == "number", Ht = {
600
- linear: oe,
601
- easeIn: ur,
602
- easeInOut: Gn,
603
- easeOut: dr,
604
- circIn: Vt,
605
- circInOut: Wn,
606
- circOut: cr,
607
- backIn: xt,
608
- backInOut: jn,
609
- backOut: Kn,
610
- anticipate: $n
611
- }, hr = (e) => typeof e == "string", Yt = (e) => {
612
- if (zn(e)) {
613
- J(e.length === 4, "Cubic bezier arrays must contain four numerical values.");
595
+ return ae;
596
+ const r = (i) => Sr(i, 0, 1, e, n);
597
+ return (i) => i === 0 || i === 1 ? i : Zn(r(i), t, s);
598
+ }
599
+ const Jn = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Qn = (e) => (t) => 1 - e(1 - t), es = /* @__PURE__ */ ve(0.33, 1.53, 0.69, 0.99), Mt = /* @__PURE__ */ Qn(es), ts = /* @__PURE__ */ Jn(Mt), ns = (e) => (e *= 2) < 1 ? 0.5 * Mt(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Ct = (e) => 1 - Math.sin(Math.acos(e)), Ar = Qn(Ct), ss = Jn(Ct), Mr = /* @__PURE__ */ ve(0.42, 0, 1, 1), Cr = /* @__PURE__ */ ve(0, 0, 0.58, 1), rs = /* @__PURE__ */ ve(0.42, 0, 0.58, 1), Pr = (e) => Array.isArray(e) && typeof e[0] != "number", is = (e) => Array.isArray(e) && typeof e[0] == "number", Qt = {
600
+ linear: ae,
601
+ easeIn: Mr,
602
+ easeInOut: rs,
603
+ easeOut: Cr,
604
+ circIn: Ct,
605
+ circInOut: ss,
606
+ circOut: Ar,
607
+ backIn: Mt,
608
+ backInOut: ts,
609
+ backOut: es,
610
+ anticipate: ns
611
+ }, Dr = (e) => typeof e == "string", en = (e) => {
612
+ if (is(e)) {
613
+ U(e.length === 4, "Cubic bezier arrays must contain four numerical values.");
614
614
  const [t, n, s, r] = e;
615
615
  return ve(t, n, s, r);
616
- } else if (hr(e))
617
- return J(Ht[e] !== void 0, `Invalid easing type '${e}'`), Ht[e];
616
+ } else if (Dr(e))
617
+ return U(Qt[e] !== void 0, `Invalid easing type '${e}'`), Qt[e];
618
618
  return e;
619
- }, xe = [
619
+ }, Ve = [
620
620
  "setup",
621
621
  // Compute
622
622
  "read",
@@ -634,7 +634,7 @@ const Ln = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Bn
634
634
  "postRender"
635
635
  // Compute
636
636
  ];
637
- function pr(e, t) {
637
+ function Ir(e, t) {
638
638
  let n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), r = !1, i = !1;
639
639
  const o = /* @__PURE__ */ new WeakSet();
640
640
  let a = {
@@ -672,70 +672,70 @@ function pr(e, t) {
672
672
  };
673
673
  return u;
674
674
  }
675
- const mr = 40;
676
- function _n(e, t) {
675
+ const Fr = 40;
676
+ function os(e, t) {
677
677
  let n = !1, s = !0;
678
678
  const r = {
679
679
  delta: 0,
680
680
  timestamp: 0,
681
681
  isProcessing: !1
682
- }, i = () => n = !0, o = xe.reduce((y, A) => (y[A] = pr(i), y), {}), { setup: a, read: c, resolveKeyframes: u, preUpdate: l, update: d, preRender: f, render: h, postRender: m } = o, v = () => {
682
+ }, i = () => n = !0, o = Ve.reduce((y, A) => (y[A] = Ir(i), y), {}), { setup: a, read: c, resolveKeyframes: u, preUpdate: l, update: d, preRender: f, render: h, postRender: m } = o, v = () => {
683
683
  const y = G.useManualTiming ? r.timestamp : performance.now();
684
- n = !1, G.useManualTiming || (r.delta = s ? 1e3 / 60 : Math.max(Math.min(y - r.timestamp, mr), 1)), r.timestamp = y, r.isProcessing = !0, a.process(r), c.process(r), u.process(r), l.process(r), d.process(r), f.process(r), h.process(r), m.process(r), r.isProcessing = !1, n && t && (s = !1, e(v));
685
- }, x = () => {
684
+ n = !1, G.useManualTiming || (r.delta = s ? 1e3 / 60 : Math.max(Math.min(y - r.timestamp, Fr), 1)), r.timestamp = y, r.isProcessing = !0, a.process(r), c.process(r), u.process(r), l.process(r), d.process(r), f.process(r), h.process(r), m.process(r), r.isProcessing = !1, n && t && (s = !1, e(v));
685
+ }, T = () => {
686
686
  n = !0, s = !0, r.isProcessing || e(v);
687
687
  };
688
- return { schedule: xe.reduce((y, A) => {
688
+ return { schedule: Ve.reduce((y, A) => {
689
689
  const g = o[A];
690
- return y[A] = (w, M = !1, T = !1) => (n || x(), g.schedule(w, M, T)), y;
690
+ return y[A] = (w, M = !1, x = !1) => (n || T(), g.schedule(w, M, x)), y;
691
691
  }, {}), cancel: (y) => {
692
- for (let A = 0; A < xe.length; A++)
693
- o[xe[A]].cancel(y);
692
+ for (let A = 0; A < Ve.length; A++)
693
+ o[Ve[A]].cancel(y);
694
694
  }, state: r, steps: o };
695
695
  }
696
- const { schedule: L, cancel: et, state: Pe } = /* @__PURE__ */ _n(typeof requestAnimationFrame < "u" ? requestAnimationFrame : oe, !0);
697
- let Ae;
698
- function gr() {
699
- Ae = void 0;
696
+ const { schedule: L, cancel: tt, state: De, steps: vl } = /* @__PURE__ */ os(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ae, !0);
697
+ let Me;
698
+ function Rr() {
699
+ Me = void 0;
700
700
  }
701
701
  const k = {
702
- now: () => (Ae === void 0 && k.set(Pe.isProcessing || G.useManualTiming ? Pe.timestamp : performance.now()), Ae),
702
+ now: () => (Me === void 0 && k.set(De.isProcessing || G.useManualTiming ? De.timestamp : performance.now()), Me),
703
703
  set: (e) => {
704
- Ae = e, queueMicrotask(gr);
704
+ Me = e, queueMicrotask(Rr);
705
705
  }
706
- }, Un = (e) => (t) => typeof t == "string" && t.startsWith(e), Hn = /* @__PURE__ */ Un("--"), yr = /* @__PURE__ */ Un("var(--"), St = (e) => yr(e) ? br.test(e.split("/*")[0].trim()) : !1, br = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, ae = {
706
+ }, as = (e) => (t) => typeof t == "string" && t.startsWith(e), Pt = /* @__PURE__ */ as("--"), Er = /* @__PURE__ */ as("var(--"), Dt = (e) => Er(e) ? Or.test(e.split("/*")[0].trim()) : !1, Or = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, le = {
707
707
  test: (e) => typeof e == "number",
708
708
  parse: parseFloat,
709
709
  transform: (e) => e
710
- }, pe = {
711
- ...ae,
712
- transform: (e) => Z(0, 1, e)
713
- }, Ve = {
714
- ...ae,
710
+ }, me = {
711
+ ...le,
712
+ transform: (e) => J(0, 1, e)
713
+ }, Se = {
714
+ ...le,
715
715
  default: 1
716
- }, he = (e) => Math.round(e * 1e5) / 1e5, At = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
717
- function vr(e) {
716
+ }, pe = (e) => Math.round(e * 1e5) / 1e5, It = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
717
+ function kr(e) {
718
718
  return e == null;
719
719
  }
720
- const wr = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Mt = (e, t) => (n) => !!(typeof n == "string" && wr.test(n) && n.startsWith(e) || t && !vr(n) && Object.prototype.hasOwnProperty.call(n, t)), Yn = (e, t, n) => (s) => {
720
+ const Nr = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Ft = (e, t) => (n) => !!(typeof n == "string" && Nr.test(n) && n.startsWith(e) || t && !kr(n) && Object.prototype.hasOwnProperty.call(n, t)), ls = (e, t, n) => (s) => {
721
721
  if (typeof s != "string")
722
722
  return s;
723
- const [r, i, o, a] = s.match(At);
723
+ const [r, i, o, a] = s.match(It);
724
724
  return {
725
725
  [e]: parseFloat(r),
726
726
  [t]: parseFloat(i),
727
727
  [n]: parseFloat(o),
728
728
  alpha: a !== void 0 ? parseFloat(a) : 1
729
729
  };
730
- }, Tr = (e) => Z(0, 255, e), He = {
731
- ...ae,
732
- transform: (e) => Math.round(Tr(e))
733
- }, H = {
734
- test: /* @__PURE__ */ Mt("rgb", "red"),
735
- parse: /* @__PURE__ */ Yn("red", "green", "blue"),
736
- transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + He.transform(e) + ", " + He.transform(t) + ", " + He.transform(n) + ", " + he(pe.transform(s)) + ")"
730
+ }, Lr = (e) => J(0, 255, e), He = {
731
+ ...le,
732
+ transform: (e) => Math.round(Lr(e))
733
+ }, Y = {
734
+ test: /* @__PURE__ */ Ft("rgb", "red"),
735
+ parse: /* @__PURE__ */ ls("red", "green", "blue"),
736
+ transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + He.transform(e) + ", " + He.transform(t) + ", " + He.transform(n) + ", " + pe(me.transform(s)) + ")"
737
737
  };
738
- function xr(e) {
738
+ function Br(e) {
739
739
  let t = "", n = "", s = "", r = "";
740
740
  return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), s = e.substring(5, 7), r = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), s = e.substring(3, 4), r = e.substring(4, 5), t += t, n += n, s += s, r += r), {
741
741
  red: parseInt(t, 16),
@@ -744,76 +744,76 @@ function xr(e) {
744
744
  alpha: r ? parseInt(r, 16) / 255 : 1
745
745
  };
746
746
  }
747
- const tt = {
748
- test: /* @__PURE__ */ Mt("#"),
749
- parse: xr,
750
- transform: H.transform
747
+ const nt = {
748
+ test: /* @__PURE__ */ Ft("#"),
749
+ parse: Br,
750
+ transform: Y.transform
751
751
  }, we = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
752
752
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
753
753
  parse: parseFloat,
754
754
  transform: (t) => `${t}${e}`
755
- }), _ = /* @__PURE__ */ we("deg"), ne = /* @__PURE__ */ we("%"), b = /* @__PURE__ */ we("px"), Vr = /* @__PURE__ */ we("vh"), Sr = /* @__PURE__ */ we("vw"), Xt = {
755
+ }), _ = /* @__PURE__ */ we("deg"), ne = /* @__PURE__ */ we("%"), b = /* @__PURE__ */ we("px"), Kr = /* @__PURE__ */ we("vh"), jr = /* @__PURE__ */ we("vw"), tn = {
756
756
  ...ne,
757
757
  parse: (e) => ne.parse(e) / 100,
758
758
  transform: (e) => ne.transform(e * 100)
759
759
  }, ee = {
760
- test: /* @__PURE__ */ Mt("hsl", "hue"),
761
- parse: /* @__PURE__ */ Yn("hue", "saturation", "lightness"),
762
- 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)) + ")"
763
- }, F = {
764
- test: (e) => H.test(e) || tt.test(e) || ee.test(e),
765
- parse: (e) => H.test(e) ? H.parse(e) : ee.test(e) ? ee.parse(e) : tt.parse(e),
766
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? H.transform(e) : ee.transform(e),
760
+ test: /* @__PURE__ */ Ft("hsl", "hue"),
761
+ parse: /* @__PURE__ */ ls("hue", "saturation", "lightness"),
762
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " + ne.transform(pe(t)) + ", " + ne.transform(pe(n)) + ", " + pe(me.transform(s)) + ")"
763
+ }, D = {
764
+ test: (e) => Y.test(e) || nt.test(e) || ee.test(e),
765
+ parse: (e) => Y.test(e) ? Y.parse(e) : ee.test(e) ? ee.parse(e) : nt.parse(e),
766
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Y.transform(e) : ee.transform(e),
767
767
  getAnimatableNone: (e) => {
768
- const t = F.parse(e);
769
- return t.alpha = 0, F.transform(t);
768
+ const t = D.parse(e);
769
+ return t.alpha = 0, D.transform(t);
770
770
  }
771
- }, Ar = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
772
- function Mr(e) {
771
+ }, $r = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
772
+ function Wr(e) {
773
773
  var t, n;
774
- return isNaN(e) && typeof e == "string" && (((t = e.match(At)) == null ? void 0 : t.length) || 0) + (((n = e.match(Ar)) == null ? void 0 : n.length) || 0) > 0;
774
+ return isNaN(e) && typeof e == "string" && (((t = e.match(It)) == null ? void 0 : t.length) || 0) + (((n = e.match($r)) == null ? void 0 : n.length) || 0) > 0;
775
775
  }
776
- const Xn = "number", qn = "color", Cr = "var", Pr = "var(", qt = "${}", Fr = /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;
777
- function me(e) {
776
+ const cs = "number", us = "color", Gr = "var", zr = "var(", nn = "${}", _r = /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;
777
+ function ge(e) {
778
778
  const t = e.toString(), n = [], s = {
779
779
  color: [],
780
780
  number: [],
781
781
  var: []
782
782
  }, r = [];
783
783
  let i = 0;
784
- const a = t.replace(Fr, (c) => (F.test(c) ? (s.color.push(i), r.push(qn), n.push(F.parse(c))) : c.startsWith(Pr) ? (s.var.push(i), r.push(Cr), n.push(c)) : (s.number.push(i), r.push(Xn), n.push(parseFloat(c))), ++i, qt)).split(qt);
784
+ const a = t.replace(_r, (c) => (D.test(c) ? (s.color.push(i), r.push(us), n.push(D.parse(c))) : c.startsWith(zr) ? (s.var.push(i), r.push(Gr), n.push(c)) : (s.number.push(i), r.push(cs), n.push(parseFloat(c))), ++i, nn)).split(nn);
785
785
  return { values: n, split: a, indexes: s, types: r };
786
786
  }
787
- function Zn(e) {
788
- return me(e).values;
787
+ function ds(e) {
788
+ return ge(e).values;
789
789
  }
790
- function Jn(e) {
791
- const { split: t, types: n } = me(e), s = t.length;
790
+ function fs(e) {
791
+ const { split: t, types: n } = ge(e), s = t.length;
792
792
  return (r) => {
793
793
  let i = "";
794
794
  for (let o = 0; o < s; o++)
795
795
  if (i += t[o], r[o] !== void 0) {
796
796
  const a = n[o];
797
- a === Xn ? i += he(r[o]) : a === qn ? i += F.transform(r[o]) : i += r[o];
797
+ a === cs ? i += pe(r[o]) : a === us ? i += D.transform(r[o]) : i += r[o];
798
798
  }
799
799
  return i;
800
800
  };
801
801
  }
802
- const Ir = (e) => typeof e == "number" ? 0 : F.test(e) ? F.getAnimatableNone(e) : e;
803
- function Dr(e) {
804
- const t = Zn(e);
805
- return Jn(e)(t.map(Ir));
802
+ const Ur = (e) => typeof e == "number" ? 0 : D.test(e) ? D.getAnimatableNone(e) : e;
803
+ function Hr(e) {
804
+ const t = ds(e);
805
+ return fs(e)(t.map(Ur));
806
806
  }
807
- const le = {
808
- test: Mr,
809
- parse: Zn,
810
- createTransformer: Jn,
811
- getAnimatableNone: Dr
807
+ const ce = {
808
+ test: Wr,
809
+ parse: ds,
810
+ createTransformer: fs,
811
+ getAnimatableNone: Hr
812
812
  };
813
813
  function Ye(e, t, n) {
814
814
  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;
815
815
  }
816
- function Rr({ hue: e, saturation: t, lightness: n, alpha: s }) {
816
+ function Yr({ hue: e, saturation: t, lightness: n, alpha: s }) {
817
817
  e /= 360, t /= 100, n /= 100;
818
818
  let r = 0, i = 0, o = 0;
819
819
  if (!t)
@@ -829,55 +829,55 @@ function Rr({ hue: e, saturation: t, lightness: n, alpha: s }) {
829
829
  alpha: s
830
830
  };
831
831
  }
832
- function Fe(e, t) {
832
+ function Ie(e, t) {
833
833
  return (n) => n > 0 ? t : e;
834
834
  }
835
- const Be = (e, t, n) => e + (t - e) * n, Xe = (e, t, n) => {
835
+ const xe = (e, t, n) => e + (t - e) * n, Xe = (e, t, n) => {
836
836
  const s = e * e, r = n * (t * t - s) + s;
837
837
  return r < 0 ? 0 : Math.sqrt(r);
838
- }, Or = [tt, H, ee], Er = (e) => Or.find((t) => t.test(e));
839
- function Zt(e) {
840
- const t = Er(e);
841
- if (be(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`), !t)
838
+ }, Xr = [nt, Y, ee], qr = (e) => Xr.find((t) => t.test(e));
839
+ function sn(e) {
840
+ const t = qr(e);
841
+ if (oe(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`), !t)
842
842
  return !1;
843
843
  let n = t.parse(e);
844
- return t === ee && (n = Rr(n)), n;
844
+ return t === ee && (n = Yr(n)), n;
845
845
  }
846
- const Jt = (e, t) => {
847
- const n = Zt(e), s = Zt(t);
846
+ const rn = (e, t) => {
847
+ const n = sn(e), s = sn(t);
848
848
  if (!n || !s)
849
- return Fe(e, t);
849
+ return Ie(e, t);
850
850
  const r = { ...n };
851
- return (i) => (r.red = Xe(n.red, s.red, i), r.green = Xe(n.green, s.green, i), r.blue = Xe(n.blue, s.blue, i), r.alpha = Be(n.alpha, s.alpha, i), H.transform(r));
852
- }, nt = /* @__PURE__ */ new Set(["none", "hidden"]);
853
- function kr(e, t) {
854
- return nt.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
851
+ return (i) => (r.red = Xe(n.red, s.red, i), r.green = Xe(n.green, s.green, i), r.blue = Xe(n.blue, s.blue, i), r.alpha = xe(n.alpha, s.alpha, i), Y.transform(r));
852
+ }, st = /* @__PURE__ */ new Set(["none", "hidden"]);
853
+ function Zr(e, t) {
854
+ return st.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
855
855
  }
856
- function Nr(e, t) {
857
- return (n) => Be(e, t, n);
856
+ function Jr(e, t) {
857
+ return (n) => xe(e, t, n);
858
858
  }
859
- function Ct(e) {
860
- return typeof e == "number" ? Nr : typeof e == "string" ? St(e) ? Fe : F.test(e) ? Jt : Kr : Array.isArray(e) ? Qn : typeof e == "object" ? F.test(e) ? Jt : Lr : Fe;
859
+ function Rt(e) {
860
+ return typeof e == "number" ? Jr : typeof e == "string" ? Dt(e) ? Ie : D.test(e) ? rn : ti : Array.isArray(e) ? hs : typeof e == "object" ? D.test(e) ? rn : Qr : Ie;
861
861
  }
862
- function Qn(e, t) {
863
- const n = [...e], s = n.length, r = e.map((i, o) => Ct(i)(i, t[o]));
862
+ function hs(e, t) {
863
+ const n = [...e], s = n.length, r = e.map((i, o) => Rt(i)(i, t[o]));
864
864
  return (i) => {
865
865
  for (let o = 0; o < s; o++)
866
866
  n[o] = r[o](i);
867
867
  return n;
868
868
  };
869
869
  }
870
- function Lr(e, t) {
870
+ function Qr(e, t) {
871
871
  const n = { ...e, ...t }, s = {};
872
872
  for (const r in n)
873
- e[r] !== void 0 && t[r] !== void 0 && (s[r] = Ct(e[r])(e[r], t[r]));
873
+ e[r] !== void 0 && t[r] !== void 0 && (s[r] = Rt(e[r])(e[r], t[r]));
874
874
  return (r) => {
875
875
  for (const i in s)
876
876
  n[i] = s[i](r);
877
877
  return n;
878
878
  };
879
879
  }
880
- function Br(e, t) {
880
+ function ei(e, t) {
881
881
  const n = [], s = { color: 0, var: 0, number: 0 };
882
882
  for (let r = 0; r < t.values.length; r++) {
883
883
  const i = t.types[r], o = e.indexes[i][s[i]], a = e.values[o] ?? 0;
@@ -885,51 +885,51 @@ function Br(e, t) {
885
885
  }
886
886
  return n;
887
887
  }
888
- const Kr = (e, t) => {
889
- const n = le.createTransformer(t), s = me(e), r = me(t);
890
- return s.indexes.var.length === r.indexes.var.length && s.indexes.color.length === r.indexes.color.length && s.indexes.number.length >= r.indexes.number.length ? nt.has(e) && !r.values.length || nt.has(t) && !s.values.length ? kr(e, t) : Le(Qn(Br(s, r), r.values), n) : (be(!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.`), Fe(e, t));
888
+ const ti = (e, t) => {
889
+ const n = ce.createTransformer(t), s = ge(e), r = ge(t);
890
+ return s.indexes.var.length === r.indexes.var.length && s.indexes.color.length === r.indexes.color.length && s.indexes.number.length >= r.indexes.number.length ? st.has(e) && !r.values.length || st.has(t) && !s.values.length ? Zr(e, t) : Be(hs(ei(s, r), r.values), n) : (oe(!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.`), Ie(e, t));
891
891
  };
892
- function es(e, t, n) {
893
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Be(e, t, n) : Ct(e)(e, t);
892
+ function ps(e, t, n) {
893
+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? xe(e, t, n) : Rt(e)(e, t);
894
894
  }
895
- const jr = (e) => {
895
+ const ni = (e) => {
896
896
  const t = ({ timestamp: n }) => e(n);
897
897
  return {
898
898
  start: (n = !0) => L.update(t, n),
899
- stop: () => et(t),
899
+ stop: () => tt(t),
900
900
  /**
901
901
  * If we're processing this frame we can use the
902
902
  * framelocked timestamp to keep things in sync.
903
903
  */
904
- now: () => Pe.isProcessing ? Pe.timestamp : k.now()
904
+ now: () => De.isProcessing ? De.timestamp : k.now()
905
905
  };
906
- }, ts = (e, t, n = 10) => {
906
+ }, ms = (e, t, n = 10) => {
907
907
  let s = "";
908
908
  const r = Math.max(Math.round(t / n), 2);
909
909
  for (let i = 0; i < r; i++)
910
910
  s += Math.round(e(i / (r - 1)) * 1e4) / 1e4 + ", ";
911
911
  return `linear(${s.substring(0, s.length - 2)})`;
912
- }, Ie = 2e4;
913
- function Pt(e) {
912
+ }, Fe = 2e4;
913
+ function Et(e) {
914
914
  let t = 0;
915
915
  const n = 50;
916
916
  let s = e.next(t);
917
- for (; !s.done && t < Ie; )
917
+ for (; !s.done && t < Fe; )
918
918
  t += n, s = e.next(t);
919
- return t >= Ie ? 1 / 0 : t;
919
+ return t >= Fe ? 1 / 0 : t;
920
920
  }
921
- function $r(e, t = 100, n) {
922
- const s = n({ ...e, keyframes: [0, t] }), r = Math.min(Pt(s), Ie);
921
+ function si(e, t = 100, n) {
922
+ const s = n({ ...e, keyframes: [0, t] }), r = Math.min(Et(s), Fe);
923
923
  return {
924
924
  type: "keyframes",
925
925
  ease: (i) => s.next(r * i).value / t,
926
926
  duration: /* @__PURE__ */ $(r)
927
927
  };
928
928
  }
929
- const Wr = 5;
930
- function ns(e, t, n) {
931
- const s = Math.max(t - Wr, 0);
932
- return kn(n - e(s), t - s);
929
+ const ri = 5;
930
+ function gs(e, t, n) {
931
+ const s = Math.max(t - ri, 0);
932
+ return qn(n - e(s), t - s);
933
933
  }
934
934
  const C = {
935
935
  // Default spring physics
@@ -960,15 +960,15 @@ const C = {
960
960
  minDamping: 0.05,
961
961
  maxDamping: 1
962
962
  }, qe = 1e-3;
963
- function Gr({ duration: e = C.duration, bounce: t = C.bounce, velocity: n = C.velocity, mass: s = C.mass }) {
963
+ function ii({ duration: e = C.duration, bounce: t = C.bounce, velocity: n = C.velocity, mass: s = C.mass }) {
964
964
  let r, i;
965
- be(e <= /* @__PURE__ */ B(C.maxDuration), "Spring duration must be 10 seconds or less");
965
+ oe(e <= /* @__PURE__ */ B(C.maxDuration), "Spring duration must be 10 seconds or less");
966
966
  let o = 1 - t;
967
- o = Z(C.minDamping, C.maxDamping, o), e = Z(C.minDuration, C.maxDuration, /* @__PURE__ */ $(e)), o < 1 ? (r = (u) => {
968
- const l = u * o, d = l * e, f = l - n, h = st(u, o), m = Math.exp(-d);
967
+ o = J(C.minDamping, C.maxDamping, o), e = J(C.minDuration, C.maxDuration, /* @__PURE__ */ $(e)), o < 1 ? (r = (u) => {
968
+ const l = u * o, d = l * e, f = l - n, h = rt(u, o), m = Math.exp(-d);
969
969
  return qe - f / h * m;
970
970
  }, i = (u) => {
971
- const d = u * o * e, f = d * n + n, h = Math.pow(o, 2) * Math.pow(u, 2) * e, m = Math.exp(-d), v = st(Math.pow(u, 2), o);
971
+ const d = u * o * e, f = d * n + n, h = Math.pow(o, 2) * Math.pow(u, 2) * e, m = Math.exp(-d), v = rt(Math.pow(u, 2), o);
972
972
  return (-r(u) + qe > 0 ? -1 : 1) * ((f - h) * m) / v;
973
973
  }) : (r = (u) => {
974
974
  const l = Math.exp(-u * e), d = (u - n) * e + 1;
@@ -977,7 +977,7 @@ function Gr({ duration: e = C.duration, bounce: t = C.bounce, velocity: n = C.ve
977
977
  const l = Math.exp(-u * e), d = (n - u) * (e * e);
978
978
  return l * d;
979
979
  });
980
- const a = 5 / e, c = _r(r, i, a);
980
+ const a = 5 / e, c = ai(r, i, a);
981
981
  if (e = /* @__PURE__ */ B(e), isNaN(c))
982
982
  return {
983
983
  stiffness: C.stiffness,
@@ -993,21 +993,21 @@ function Gr({ duration: e = C.duration, bounce: t = C.bounce, velocity: n = C.ve
993
993
  };
994
994
  }
995
995
  }
996
- const zr = 12;
997
- function _r(e, t, n) {
996
+ const oi = 12;
997
+ function ai(e, t, n) {
998
998
  let s = n;
999
- for (let r = 1; r < zr; r++)
999
+ for (let r = 1; r < oi; r++)
1000
1000
  s = s - e(s) / t(s);
1001
1001
  return s;
1002
1002
  }
1003
- function st(e, t) {
1003
+ function rt(e, t) {
1004
1004
  return e * Math.sqrt(1 - t * t);
1005
1005
  }
1006
- const Ur = ["duration", "bounce"], Hr = ["stiffness", "damping", "mass"];
1007
- function Qt(e, t) {
1006
+ const li = ["duration", "bounce"], ci = ["stiffness", "damping", "mass"];
1007
+ function on(e, t) {
1008
1008
  return t.some((n) => e[n] !== void 0);
1009
1009
  }
1010
- function Yr(e) {
1010
+ function ui(e) {
1011
1011
  let t = {
1012
1012
  velocity: C.velocity,
1013
1013
  stiffness: C.stiffness,
@@ -1016,9 +1016,9 @@ function Yr(e) {
1016
1016
  isResolvedFromDuration: !1,
1017
1017
  ...e
1018
1018
  };
1019
- if (!Qt(e, Hr) && Qt(e, Ur))
1019
+ if (!on(e, ci) && on(e, li))
1020
1020
  if (e.visualDuration) {
1021
- const n = e.visualDuration, s = 2 * Math.PI / (n * 1.2), r = s * s, i = 2 * Z(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(r);
1021
+ const n = e.visualDuration, s = 2 * Math.PI / (n * 1.2), r = s * s, i = 2 * J(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(r);
1022
1022
  t = {
1023
1023
  ...t,
1024
1024
  mass: C.mass,
@@ -1026,7 +1026,7 @@ function Yr(e) {
1026
1026
  damping: i
1027
1027
  };
1028
1028
  } else {
1029
- const n = Gr(e);
1029
+ const n = ii(e);
1030
1030
  t = {
1031
1031
  ...t,
1032
1032
  ...n,
@@ -1035,32 +1035,32 @@ function Yr(e) {
1035
1035
  }
1036
1036
  return t;
1037
1037
  }
1038
- function De(e = C.visualDuration, t = C.bounce) {
1038
+ function Re(e = C.visualDuration, t = C.bounce) {
1039
1039
  const n = typeof e != "object" ? {
1040
1040
  visualDuration: e,
1041
1041
  keyframes: [0, 1],
1042
1042
  bounce: t
1043
1043
  } : e;
1044
1044
  let { restSpeed: s, restDelta: r } = n;
1045
- const i = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: i }, { stiffness: c, damping: u, mass: l, duration: d, velocity: f, isResolvedFromDuration: h } = Yr({
1045
+ const i = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: i }, { stiffness: c, damping: u, mass: l, duration: d, velocity: f, isResolvedFromDuration: h } = ui({
1046
1046
  ...n,
1047
1047
  velocity: -/* @__PURE__ */ $(n.velocity || 0)
1048
- }), m = f || 0, v = u / (2 * Math.sqrt(c * l)), x = o - i, p = /* @__PURE__ */ $(Math.sqrt(c / l)), S = Math.abs(x) < 5;
1048
+ }), m = f || 0, v = u / (2 * Math.sqrt(c * l)), T = o - i, p = /* @__PURE__ */ $(Math.sqrt(c / l)), S = Math.abs(T) < 5;
1049
1049
  s || (s = S ? C.restSpeed.granular : C.restSpeed.default), r || (r = S ? C.restDelta.granular : C.restDelta.default);
1050
1050
  let y;
1051
1051
  if (v < 1) {
1052
- const g = st(p, v);
1052
+ const g = rt(p, v);
1053
1053
  y = (w) => {
1054
1054
  const M = Math.exp(-v * p * w);
1055
- return o - M * ((m + v * p * x) / g * Math.sin(g * w) + x * Math.cos(g * w));
1055
+ return o - M * ((m + v * p * T) / g * Math.sin(g * w) + T * Math.cos(g * w));
1056
1056
  };
1057
1057
  } else if (v === 1)
1058
- y = (g) => o - Math.exp(-p * g) * (x + (m + p * x) * g);
1058
+ y = (g) => o - Math.exp(-p * g) * (T + (m + p * T) * g);
1059
1059
  else {
1060
1060
  const g = p * Math.sqrt(v * v - 1);
1061
1061
  y = (w) => {
1062
- const M = Math.exp(-v * p * w), T = Math.min(g * w, 300);
1063
- return o - M * ((m + v * p * x) * Math.sinh(T) + g * x * Math.cosh(T)) / g;
1062
+ const M = Math.exp(-v * p * w), x = Math.min(g * w, 300);
1063
+ return o - M * ((m + v * p * T) * Math.sinh(x) + g * T * Math.cosh(x)) / g;
1064
1064
  };
1065
1065
  }
1066
1066
  const A = {
@@ -1071,14 +1071,14 @@ function De(e = C.visualDuration, t = C.bounce) {
1071
1071
  a.done = g >= d;
1072
1072
  else {
1073
1073
  let M = g === 0 ? m : 0;
1074
- v < 1 && (M = g === 0 ? /* @__PURE__ */ B(m) : ns(y, g, w));
1075
- const T = Math.abs(M) <= s, I = Math.abs(o - w) <= r;
1076
- a.done = T && I;
1074
+ v < 1 && (M = g === 0 ? /* @__PURE__ */ B(m) : gs(y, g, w));
1075
+ const x = Math.abs(M) <= s, I = Math.abs(o - w) <= r;
1076
+ a.done = x && I;
1077
1077
  }
1078
1078
  return a.value = a.done ? o : w, a;
1079
1079
  },
1080
1080
  toString: () => {
1081
- const g = Math.min(Pt(A), Ie), w = ts((M) => A.next(g * M).value, g, 30);
1081
+ const g = Math.min(Et(A), Fe), w = ms((M) => A.next(g * M).value, g, 30);
1082
1082
  return g + "ms " + w;
1083
1083
  },
1084
1084
  toTransition: () => {
@@ -1086,27 +1086,27 @@ function De(e = C.visualDuration, t = C.bounce) {
1086
1086
  };
1087
1087
  return A;
1088
1088
  }
1089
- De.applyToOptions = (e) => {
1090
- const t = $r(e, 100, De);
1089
+ Re.applyToOptions = (e) => {
1090
+ const t = si(e, 100, Re);
1091
1091
  return e.ease = t.ease, e.duration = /* @__PURE__ */ B(t.duration), e.type = "keyframes", e;
1092
1092
  };
1093
- function rt({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: r = 10, bounceStiffness: i = 500, modifyTarget: o, min: a, max: c, restDelta: u = 0.5, restSpeed: l }) {
1093
+ function it({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: r = 10, bounceStiffness: i = 500, modifyTarget: o, min: a, max: c, restDelta: u = 0.5, restSpeed: l }) {
1094
1094
  const d = e[0], f = {
1095
1095
  done: !1,
1096
1096
  value: d
1097
- }, h = (T) => a !== void 0 && T < a || c !== void 0 && T > c, m = (T) => a === void 0 ? c : c === void 0 || Math.abs(a - T) < Math.abs(c - T) ? a : c;
1097
+ }, h = (x) => a !== void 0 && x < a || c !== void 0 && x > c, m = (x) => a === void 0 ? c : c === void 0 || Math.abs(a - x) < Math.abs(c - x) ? a : c;
1098
1098
  let v = n * t;
1099
- const x = d + v, p = o === void 0 ? x : o(x);
1100
- p !== x && (v = p - d);
1101
- const S = (T) => -v * Math.exp(-T / s), y = (T) => p + S(T), A = (T) => {
1102
- const I = S(T), R = y(T);
1099
+ const T = d + v, p = o === void 0 ? T : o(T);
1100
+ p !== T && (v = p - d);
1101
+ const S = (x) => -v * Math.exp(-x / s), y = (x) => p + S(x), A = (x) => {
1102
+ const I = S(x), R = y(x);
1103
1103
  f.done = Math.abs(I) <= u, f.value = f.done ? p : R;
1104
1104
  };
1105
1105
  let g, w;
1106
- const M = (T) => {
1107
- h(f.value) && (g = T, w = De({
1106
+ const M = (x) => {
1107
+ h(f.value) && (g = x, w = Re({
1108
1108
  keyframes: [f.value, m(f.value)],
1109
- velocity: ns(y, T, f.value),
1109
+ velocity: gs(y, x, f.value),
1110
1110
  // TODO: This should be passing * 1000
1111
1111
  damping: r,
1112
1112
  stiffness: i,
@@ -1116,94 +1116,94 @@ function rt({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
1116
1116
  };
1117
1117
  return M(0), {
1118
1118
  calculatedDuration: null,
1119
- next: (T) => {
1119
+ next: (x) => {
1120
1120
  let I = !1;
1121
- return !w && g === void 0 && (I = !0, A(T), M(T)), g !== void 0 && T >= g ? w.next(T - g) : (!I && A(T), f);
1121
+ return !w && g === void 0 && (I = !0, A(x), M(x)), g !== void 0 && x >= g ? w.next(x - g) : (!I && A(x), f);
1122
1122
  }
1123
1123
  };
1124
1124
  }
1125
- function Xr(e, t, n) {
1126
- const s = [], r = n || G.mix || es, i = e.length - 1;
1125
+ function di(e, t, n) {
1126
+ const s = [], r = n || G.mix || ps, i = e.length - 1;
1127
1127
  for (let o = 0; o < i; o++) {
1128
1128
  let a = r(e[o], e[o + 1]);
1129
1129
  if (t) {
1130
- const c = Array.isArray(t) ? t[o] || oe : t;
1131
- a = Le(c, a);
1130
+ const c = Array.isArray(t) ? t[o] || ae : t;
1131
+ a = Be(c, a);
1132
1132
  }
1133
1133
  s.push(a);
1134
1134
  }
1135
1135
  return s;
1136
1136
  }
1137
- function qr(e, t, { clamp: n = !0, ease: s, mixer: r } = {}) {
1137
+ function fi(e, t, { clamp: n = !0, ease: s, mixer: r } = {}) {
1138
1138
  const i = e.length;
1139
- if (J(i === t.length, "Both input and output ranges must be the same length"), i === 1)
1139
+ if (U(i === t.length, "Both input and output ranges must be the same length"), i === 1)
1140
1140
  return () => t[0];
1141
1141
  if (i === 2 && t[0] === t[1])
1142
1142
  return () => t[1];
1143
1143
  const o = e[0] === e[1];
1144
1144
  e[0] > e[i - 1] && (e = [...e].reverse(), t = [...t].reverse());
1145
- const a = Xr(t, s, r), c = a.length, u = (l) => {
1145
+ const a = di(t, s, r), c = a.length, u = (l) => {
1146
1146
  if (o && l < e[0])
1147
1147
  return t[0];
1148
1148
  let d = 0;
1149
1149
  if (c > 1)
1150
1150
  for (; d < e.length - 2 && !(l < e[d + 1]); d++)
1151
1151
  ;
1152
- const f = /* @__PURE__ */ On(e[d], e[d + 1], l);
1152
+ const f = /* @__PURE__ */ Yn(e[d], e[d + 1], l);
1153
1153
  return a[d](f);
1154
1154
  };
1155
- return n ? (l) => u(Z(e[0], e[i - 1], l)) : u;
1155
+ return n ? (l) => u(J(e[0], e[i - 1], l)) : u;
1156
1156
  }
1157
- function Zr(e, t) {
1157
+ function hi(e, t) {
1158
1158
  const n = e[e.length - 1];
1159
1159
  for (let s = 1; s <= t; s++) {
1160
- const r = /* @__PURE__ */ On(0, t, s);
1161
- e.push(Be(n, 1, r));
1160
+ const r = /* @__PURE__ */ Yn(0, t, s);
1161
+ e.push(xe(n, 1, r));
1162
1162
  }
1163
1163
  }
1164
- function Jr(e) {
1164
+ function pi(e) {
1165
1165
  const t = [0];
1166
- return Zr(t, e.length - 1), t;
1166
+ return hi(t, e.length - 1), t;
1167
1167
  }
1168
- function Qr(e, t) {
1168
+ function mi(e, t) {
1169
1169
  return e.map((n) => n * t);
1170
1170
  }
1171
- function ei(e, t) {
1172
- return e.map(() => t || Gn).splice(0, e.length - 1);
1171
+ function gi(e, t) {
1172
+ return e.map(() => t || rs).splice(0, e.length - 1);
1173
1173
  }
1174
1174
  function te({ duration: e = 300, keyframes: t, times: n, ease: s = "easeInOut" }) {
1175
- const r = fr(s) ? s.map(Yt) : Yt(s), i = {
1175
+ const r = Pr(s) ? s.map(en) : en(s), i = {
1176
1176
  done: !1,
1177
1177
  value: t[0]
1178
- }, o = Qr(
1178
+ }, o = mi(
1179
1179
  // Only use the provided offsets if they're the correct length
1180
1180
  // TODO Maybe we should warn here if there's a length mismatch
1181
- n && n.length === t.length ? n : Jr(t),
1181
+ n && n.length === t.length ? n : pi(t),
1182
1182
  e
1183
- ), a = qr(o, t, {
1184
- ease: Array.isArray(r) ? r : ei(t, r)
1183
+ ), a = fi(o, t, {
1184
+ ease: Array.isArray(r) ? r : gi(t, r)
1185
1185
  });
1186
1186
  return {
1187
1187
  calculatedDuration: e,
1188
1188
  next: (c) => (i.value = a(c), i.done = c >= e, i)
1189
1189
  };
1190
1190
  }
1191
- const ti = (e) => e !== null;
1192
- function Ft(e, { repeat: t, repeatType: n = "loop" }, s, r = 1) {
1193
- const i = e.filter(ti), a = r < 0 || t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
1191
+ const yi = (e) => e !== null;
1192
+ function Ot(e, { repeat: t, repeatType: n = "loop" }, s, r = 1) {
1193
+ const i = e.filter(yi), a = r < 0 || t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
1194
1194
  return !a || s === void 0 ? i[a] : s;
1195
1195
  }
1196
- const ni = {
1197
- decay: rt,
1198
- inertia: rt,
1196
+ const bi = {
1197
+ decay: it,
1198
+ inertia: it,
1199
1199
  tween: te,
1200
1200
  keyframes: te,
1201
- spring: De
1201
+ spring: Re
1202
1202
  };
1203
- function ss(e) {
1204
- typeof e.type == "string" && (e.type = ni[e.type]);
1203
+ function ys(e) {
1204
+ typeof e.type == "string" && (e.type = bi[e.type]);
1205
1205
  }
1206
- class It {
1206
+ class kt {
1207
1207
  constructor() {
1208
1208
  this.updateFinished();
1209
1209
  }
@@ -1227,8 +1227,8 @@ class It {
1227
1227
  return this.finished.then(t, n);
1228
1228
  }
1229
1229
  }
1230
- const si = (e) => e / 100;
1231
- class Dt extends It {
1230
+ const vi = (e) => e / 100;
1231
+ class Nt extends kt {
1232
1232
  constructor(t) {
1233
1233
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
1234
1234
  var s, r;
@@ -1238,17 +1238,17 @@ class Dt extends It {
1238
1238
  }
1239
1239
  initAnimation() {
1240
1240
  const { options: t } = this;
1241
- ss(t);
1241
+ ys(t);
1242
1242
  const { type: n = te, repeat: s = 0, repeatDelay: r = 0, repeatType: i, velocity: o = 0 } = t;
1243
1243
  let { keyframes: a } = t;
1244
1244
  const c = n || te;
1245
- process.env.NODE_ENV !== "production" && c !== te && J(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`), c !== te && typeof a[0] != "number" && (this.mixKeyframes = Le(si, es(a[0], a[1])), a = [0, 100]);
1245
+ process.env.NODE_ENV !== "production" && c !== te && U(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`), c !== te && typeof a[0] != "number" && (this.mixKeyframes = Be(vi, ps(a[0], a[1])), a = [0, 100]);
1246
1246
  const u = c({ ...t, keyframes: a });
1247
1247
  i === "mirror" && (this.mirroredGenerator = c({
1248
1248
  ...t,
1249
1249
  keyframes: [...a].reverse(),
1250
1250
  velocity: -o
1251
- })), u.calculatedDuration === null && (u.calculatedDuration = Pt(u));
1251
+ })), u.calculatedDuration === null && (u.calculatedDuration = Et(u));
1252
1252
  const { calculatedDuration: l } = u;
1253
1253
  this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (s + 1) - r, this.generator = u;
1254
1254
  }
@@ -1260,22 +1260,22 @@ class Dt extends It {
1260
1260
  const { generator: s, totalDuration: r, mixKeyframes: i, mirroredGenerator: o, resolvedDuration: a, calculatedDuration: c } = this;
1261
1261
  if (this.startTime === null)
1262
1262
  return s.next(0);
1263
- const { delay: u = 0, keyframes: l, repeat: d, repeatType: f, repeatDelay: h, type: m, onUpdate: v, finalKeyframe: x } = this.options;
1263
+ const { delay: u = 0, keyframes: l, repeat: d, repeatType: f, repeatDelay: h, type: m, onUpdate: v, finalKeyframe: T } = this.options;
1264
1264
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - r / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
1265
1265
  const p = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), S = this.playbackSpeed >= 0 ? p < 0 : p > r;
1266
1266
  this.currentTime = Math.max(p, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
1267
1267
  let y = this.currentTime, A = s;
1268
1268
  if (d) {
1269
- const T = Math.min(this.currentTime, r) / a;
1270
- let I = Math.floor(T), R = T % 1;
1271
- !R && T >= 1 && (R = 1), R === 1 && I--, I = Math.min(I, d + 1), !!(I % 2) && (f === "reverse" ? (R = 1 - R, h && (R -= h / a)) : f === "mirror" && (A = o)), y = Z(0, 1, R) * a;
1269
+ const x = Math.min(this.currentTime, r) / a;
1270
+ let I = Math.floor(x), R = x % 1;
1271
+ !R && x >= 1 && (R = 1), R === 1 && I--, I = Math.min(I, d + 1), !!(I % 2) && (f === "reverse" ? (R = 1 - R, h && (R -= h / a)) : f === "mirror" && (A = o)), y = J(0, 1, R) * a;
1272
1272
  }
1273
1273
  const g = S ? { done: !1, value: l[0] } : A.next(y);
1274
1274
  i && (g.value = i(g.value));
1275
1275
  let { done: w } = g;
1276
1276
  !S && c !== null && (w = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
1277
1277
  const M = this.holdTime === null && (this.state === "finished" || this.state === "running" && w);
1278
- return M && m !== rt && (g.value = Ft(l, this.options, x, this.speed)), v && v(g.value), M && this.finish(), g;
1278
+ return M && m !== it && (g.value = Ot(l, this.options, T, this.speed)), v && v(g.value), M && this.finish(), g;
1279
1279
  }
1280
1280
  /**
1281
1281
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -1307,7 +1307,7 @@ class Dt extends It {
1307
1307
  var r, i;
1308
1308
  if (this.isStopped)
1309
1309
  return;
1310
- const { driver: t = jr, startTime: n } = this.options;
1310
+ const { driver: t = ni, startTime: n } = this.options;
1311
1311
  this.driver || (this.driver = t((o) => this.tick(o))), (i = (r = this.options).onPlay) == null || i.call(r);
1312
1312
  const s = this.driver.now();
1313
1313
  this.state === "finished" ? (this.updateFinished(), this.startTime = s) : this.holdTime !== null ? this.startTime = s - this.holdTime : this.startTime || (this.startTime = n ?? s), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -1340,14 +1340,14 @@ class Dt extends It {
1340
1340
  return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), (n = this.driver) == null || n.stop(), t.observe(this);
1341
1341
  }
1342
1342
  }
1343
- function ri(e) {
1343
+ function wi(e) {
1344
1344
  for (let t = 1; t < e.length; t++)
1345
1345
  e[t] ?? (e[t] = e[t - 1]);
1346
1346
  }
1347
- const Y = (e) => e * 180 / Math.PI, it = (e) => {
1348
- const t = Y(Math.atan2(e[1], e[0]));
1349
- return ot(t);
1350
- }, ii = {
1347
+ const X = (e) => e * 180 / Math.PI, ot = (e) => {
1348
+ const t = X(Math.atan2(e[1], e[0]));
1349
+ return at(t);
1350
+ }, xi = {
1351
1351
  x: 4,
1352
1352
  y: 5,
1353
1353
  translateX: 4,
@@ -1355,56 +1355,56 @@ const Y = (e) => e * 180 / Math.PI, it = (e) => {
1355
1355
  scaleX: 0,
1356
1356
  scaleY: 3,
1357
1357
  scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
1358
- rotate: it,
1359
- rotateZ: it,
1360
- skewX: (e) => Y(Math.atan(e[1])),
1361
- skewY: (e) => Y(Math.atan(e[2])),
1358
+ rotate: ot,
1359
+ rotateZ: ot,
1360
+ skewX: (e) => X(Math.atan(e[1])),
1361
+ skewY: (e) => X(Math.atan(e[2])),
1362
1362
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
1363
- }, ot = (e) => (e = e % 360, e < 0 && (e += 360), e), en = it, tn = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), nn = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), oi = {
1363
+ }, at = (e) => (e = e % 360, e < 0 && (e += 360), e), an = ot, ln = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), cn = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), Ti = {
1364
1364
  x: 12,
1365
1365
  y: 13,
1366
1366
  z: 14,
1367
1367
  translateX: 12,
1368
1368
  translateY: 13,
1369
1369
  translateZ: 14,
1370
- scaleX: tn,
1371
- scaleY: nn,
1372
- scale: (e) => (tn(e) + nn(e)) / 2,
1373
- rotateX: (e) => ot(Y(Math.atan2(e[6], e[5]))),
1374
- rotateY: (e) => ot(Y(Math.atan2(-e[2], e[0]))),
1375
- rotateZ: en,
1376
- rotate: en,
1377
- skewX: (e) => Y(Math.atan(e[4])),
1378
- skewY: (e) => Y(Math.atan(e[1])),
1370
+ scaleX: ln,
1371
+ scaleY: cn,
1372
+ scale: (e) => (ln(e) + cn(e)) / 2,
1373
+ rotateX: (e) => at(X(Math.atan2(e[6], e[5]))),
1374
+ rotateY: (e) => at(X(Math.atan2(-e[2], e[0]))),
1375
+ rotateZ: an,
1376
+ rotate: an,
1377
+ skewX: (e) => X(Math.atan(e[4])),
1378
+ skewY: (e) => X(Math.atan(e[1])),
1379
1379
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
1380
1380
  };
1381
- function at(e) {
1381
+ function lt(e) {
1382
1382
  return e.includes("scale") ? 1 : 0;
1383
1383
  }
1384
- function lt(e, t) {
1384
+ function ct(e, t) {
1385
1385
  if (!e || e === "none")
1386
- return at(t);
1386
+ return lt(t);
1387
1387
  const n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
1388
1388
  let s, r;
1389
1389
  if (n)
1390
- s = oi, r = n;
1390
+ s = Ti, r = n;
1391
1391
  else {
1392
1392
  const a = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
1393
- s = ii, r = a;
1393
+ s = xi, r = a;
1394
1394
  }
1395
1395
  if (!r)
1396
- return at(t);
1397
- const i = s[t], o = r[1].split(",").map(li);
1396
+ return lt(t);
1397
+ const i = s[t], o = r[1].split(",").map(Si);
1398
1398
  return typeof i == "function" ? i(o) : o[i];
1399
1399
  }
1400
- const ai = (e, t) => {
1400
+ const Vi = (e, t) => {
1401
1401
  const { transform: n = "none" } = getComputedStyle(e);
1402
- return lt(n, t);
1402
+ return ct(n, t);
1403
1403
  };
1404
- function li(e) {
1404
+ function Si(e) {
1405
1405
  return parseFloat(e.trim());
1406
1406
  }
1407
- const ce = [
1407
+ const ue = [
1408
1408
  "transformPerspective",
1409
1409
  "x",
1410
1410
  "y",
@@ -1422,15 +1422,15 @@ const ce = [
1422
1422
  "skew",
1423
1423
  "skewX",
1424
1424
  "skewY"
1425
- ], ue = new Set(ce), sn = (e) => e === ae || e === b, ci = /* @__PURE__ */ new Set(["x", "y", "z"]), ui = ce.filter((e) => !ci.has(e));
1426
- function di(e) {
1425
+ ], de = new Set(ue), un = (e) => e === le || e === b, Ai = /* @__PURE__ */ new Set(["x", "y", "z"]), Mi = ue.filter((e) => !Ai.has(e));
1426
+ function Ci(e) {
1427
1427
  const t = [];
1428
- return ui.forEach((n) => {
1428
+ return Mi.forEach((n) => {
1429
1429
  const s = e.getValue(n);
1430
1430
  s !== void 0 && (t.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
1431
1431
  }), t;
1432
1432
  }
1433
- const X = {
1433
+ const q = {
1434
1434
  // Dimensions
1435
1435
  width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
1436
1436
  height: ({ y: e }, { paddingTop: t = "0", paddingBottom: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
@@ -1439,18 +1439,18 @@ const X = {
1439
1439
  bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
1440
1440
  right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
1441
1441
  // Transform
1442
- x: (e, { transform: t }) => lt(t, "x"),
1443
- y: (e, { transform: t }) => lt(t, "y")
1442
+ x: (e, { transform: t }) => ct(t, "x"),
1443
+ y: (e, { transform: t }) => ct(t, "y")
1444
1444
  };
1445
- X.translateX = X.x;
1446
- X.translateY = X.y;
1447
- const q = /* @__PURE__ */ new Set();
1448
- let ct = !1, ut = !1, dt = !1;
1449
- function rs() {
1450
- if (ut) {
1451
- const e = Array.from(q).filter((s) => s.needsMeasurement), t = new Set(e.map((s) => s.element)), n = /* @__PURE__ */ new Map();
1445
+ q.translateX = q.x;
1446
+ q.translateY = q.y;
1447
+ const Z = /* @__PURE__ */ new Set();
1448
+ let ut = !1, dt = !1, ft = !1;
1449
+ function bs() {
1450
+ if (dt) {
1451
+ const e = Array.from(Z).filter((s) => s.needsMeasurement), t = new Set(e.map((s) => s.element)), n = /* @__PURE__ */ new Map();
1452
1452
  t.forEach((s) => {
1453
- const r = di(s);
1453
+ const r = Ci(s);
1454
1454
  r.length && (n.set(s, r), s.render());
1455
1455
  }), e.forEach((s) => s.measureInitialState()), t.forEach((s) => {
1456
1456
  s.render();
@@ -1463,22 +1463,22 @@ function rs() {
1463
1463
  s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
1464
1464
  });
1465
1465
  }
1466
- ut = !1, ct = !1, q.forEach((e) => e.complete(dt)), q.clear();
1466
+ dt = !1, ut = !1, Z.forEach((e) => e.complete(ft)), Z.clear();
1467
1467
  }
1468
- function is() {
1469
- q.forEach((e) => {
1470
- e.readKeyframes(), e.needsMeasurement && (ut = !0);
1468
+ function vs() {
1469
+ Z.forEach((e) => {
1470
+ e.readKeyframes(), e.needsMeasurement && (dt = !0);
1471
1471
  });
1472
1472
  }
1473
- function fi() {
1474
- dt = !0, is(), rs(), dt = !1;
1473
+ function Pi() {
1474
+ ft = !0, vs(), bs(), ft = !1;
1475
1475
  }
1476
- class Rt {
1476
+ class Lt {
1477
1477
  constructor(t, n, s, r, i, o = !1) {
1478
1478
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = s, this.motionValue = r, this.element = i, this.isAsync = o;
1479
1479
  }
1480
1480
  scheduleResolve() {
1481
- this.state = "scheduled", this.isAsync ? (q.add(this), ct || (ct = !0, L.read(is), L.resolveKeyframes(rs))) : (this.readKeyframes(), this.complete());
1481
+ this.state = "scheduled", this.isAsync ? (Z.add(this), ut || (ut = !0, L.read(vs), L.resolveKeyframes(bs))) : (this.readKeyframes(), this.complete());
1482
1482
  }
1483
1483
  readKeyframes() {
1484
1484
  const { unresolvedKeyframes: t, name: n, element: s, motionValue: r } = this;
@@ -1492,7 +1492,7 @@ class Rt {
1492
1492
  }
1493
1493
  t[0] === void 0 && (t[0] = o), r && i === void 0 && r.set(t[0]);
1494
1494
  }
1495
- ri(t);
1495
+ wi(t);
1496
1496
  }
1497
1497
  setFinalKeyframe() {
1498
1498
  }
@@ -1503,52 +1503,52 @@ class Rt {
1503
1503
  measureEndState() {
1504
1504
  }
1505
1505
  complete(t = !1) {
1506
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), q.delete(this);
1506
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), Z.delete(this);
1507
1507
  }
1508
1508
  cancel() {
1509
- this.state === "scheduled" && (q.delete(this), this.state = "pending");
1509
+ this.state === "scheduled" && (Z.delete(this), this.state = "pending");
1510
1510
  }
1511
1511
  resume() {
1512
1512
  this.state === "pending" && this.scheduleResolve();
1513
1513
  }
1514
1514
  }
1515
- const hi = (e) => e.startsWith("--");
1516
- function pi(e, t, n) {
1517
- hi(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1515
+ const Di = (e) => e.startsWith("--");
1516
+ function Ii(e, t, n) {
1517
+ Di(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1518
1518
  }
1519
- const mi = /* @__PURE__ */ wt(() => window.ScrollTimeline !== void 0), gi = {};
1520
- function yi(e, t) {
1521
- const n = /* @__PURE__ */ wt(e);
1522
- return () => gi[t] ?? n();
1519
+ const Fi = /* @__PURE__ */ St(() => window.ScrollTimeline !== void 0), Ri = {};
1520
+ function Ei(e, t) {
1521
+ const n = /* @__PURE__ */ St(e);
1522
+ return () => Ri[t] ?? n();
1523
1523
  }
1524
- const os = /* @__PURE__ */ yi(() => {
1524
+ const ws = /* @__PURE__ */ Ei(() => {
1525
1525
  try {
1526
1526
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1527
1527
  } catch {
1528
1528
  return !1;
1529
1529
  }
1530
1530
  return !0;
1531
- }, "linearEasing"), fe = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, rn = {
1531
+ }, "linearEasing"), he = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, dn = {
1532
1532
  linear: "linear",
1533
1533
  ease: "ease",
1534
1534
  easeIn: "ease-in",
1535
1535
  easeOut: "ease-out",
1536
1536
  easeInOut: "ease-in-out",
1537
- circIn: /* @__PURE__ */ fe([0, 0.65, 0.55, 1]),
1538
- circOut: /* @__PURE__ */ fe([0.55, 0, 1, 0.45]),
1539
- backIn: /* @__PURE__ */ fe([0.31, 0.01, 0.66, -0.59]),
1540
- backOut: /* @__PURE__ */ fe([0.33, 1.53, 0.69, 0.99])
1537
+ circIn: /* @__PURE__ */ he([0, 0.65, 0.55, 1]),
1538
+ circOut: /* @__PURE__ */ he([0.55, 0, 1, 0.45]),
1539
+ backIn: /* @__PURE__ */ he([0.31, 0.01, 0.66, -0.59]),
1540
+ backOut: /* @__PURE__ */ he([0.33, 1.53, 0.69, 0.99])
1541
1541
  };
1542
- function as(e, t) {
1542
+ function xs(e, t) {
1543
1543
  if (e)
1544
- return typeof e == "function" ? os() ? ts(e, t) : "ease-out" : zn(e) ? fe(e) : Array.isArray(e) ? e.map((n) => as(n, t) || rn.easeOut) : rn[e];
1544
+ return typeof e == "function" ? ws() ? ms(e, t) : "ease-out" : is(e) ? he(e) : Array.isArray(e) ? e.map((n) => xs(n, t) || dn.easeOut) : dn[e];
1545
1545
  }
1546
- function bi(e, t, n, { delay: s = 0, duration: r = 300, repeat: i = 0, repeatType: o = "loop", ease: a = "easeOut", times: c } = {}, u = void 0) {
1546
+ function Oi(e, t, n, { delay: s = 0, duration: r = 300, repeat: i = 0, repeatType: o = "loop", ease: a = "easeOut", times: c } = {}, u = void 0) {
1547
1547
  const l = {
1548
1548
  [t]: n
1549
1549
  };
1550
1550
  c && (l.offset = c);
1551
- const d = as(a, r);
1551
+ const d = xs(a, r);
1552
1552
  Array.isArray(d) && (l.easing = d);
1553
1553
  const f = {
1554
1554
  delay: s,
@@ -1560,23 +1560,23 @@ function bi(e, t, n, { delay: s = 0, duration: r = 300, repeat: i = 0, repeatTyp
1560
1560
  };
1561
1561
  return u && (f.pseudoElement = u), e.animate(l, f);
1562
1562
  }
1563
- function ls(e) {
1563
+ function Ts(e) {
1564
1564
  return typeof e == "function" && "applyToOptions" in e;
1565
1565
  }
1566
- function vi({ type: e, ...t }) {
1567
- return ls(e) && os() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
1566
+ function ki({ type: e, ...t }) {
1567
+ return Ts(e) && ws() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
1568
1568
  }
1569
- class wi extends It {
1569
+ class Ni extends kt {
1570
1570
  constructor(t) {
1571
1571
  if (super(), this.finishedTime = null, this.isStopped = !1, !t)
1572
1572
  return;
1573
1573
  const { element: n, name: s, keyframes: r, pseudoElement: i, allowFlatten: o = !1, finalKeyframe: a, onComplete: c } = t;
1574
- this.isPseudoElement = !!i, this.allowFlatten = o, this.options = t, J(typeof t.type != "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);
1575
- const u = vi(t);
1576
- this.animation = bi(n, s, r, u, i), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1574
+ this.isPseudoElement = !!i, this.allowFlatten = o, this.options = t, U(typeof t.type != "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);
1575
+ const u = ki(t);
1576
+ this.animation = Oi(n, s, r, u, i), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1577
1577
  if (this.finishedTime = this.time, !i) {
1578
- const l = Ft(r, this.options, a, this.speed);
1579
- this.updateMotionValue ? this.updateMotionValue(l) : pi(n, s, l), this.animation.cancel();
1578
+ const l = Ot(r, this.options, a, this.speed);
1579
+ this.updateMotionValue ? this.updateMotionValue(l) : Ii(n, s, l), this.animation.cancel();
1580
1580
  }
1581
1581
  c == null || c(), this.notifyFinished();
1582
1582
  };
@@ -1655,24 +1655,24 @@ class wi extends It {
1655
1655
  */
1656
1656
  attachTimeline({ timeline: t, observe: n }) {
1657
1657
  var s;
1658
- return this.allowFlatten && ((s = this.animation.effect) == null || s.updateTiming({ easing: "linear" })), this.animation.onfinish = null, t && mi() ? (this.animation.timeline = t, oe) : n(this);
1658
+ return this.allowFlatten && ((s = this.animation.effect) == null || s.updateTiming({ easing: "linear" })), this.animation.onfinish = null, t && Fi() ? (this.animation.timeline = t, ae) : n(this);
1659
1659
  }
1660
1660
  }
1661
- const cs = {
1662
- anticipate: $n,
1663
- backInOut: jn,
1664
- circInOut: Wn
1661
+ const Vs = {
1662
+ anticipate: ns,
1663
+ backInOut: ts,
1664
+ circInOut: ss
1665
1665
  };
1666
- function Ti(e) {
1667
- return e in cs;
1666
+ function Li(e) {
1667
+ return e in Vs;
1668
1668
  }
1669
- function xi(e) {
1670
- typeof e.ease == "string" && Ti(e.ease) && (e.ease = cs[e.ease]);
1669
+ function Bi(e) {
1670
+ typeof e.ease == "string" && Li(e.ease) && (e.ease = Vs[e.ease]);
1671
1671
  }
1672
- const on = 10;
1673
- class Vi extends wi {
1672
+ const fn = 10;
1673
+ class Ki extends Ni {
1674
1674
  constructor(t) {
1675
- xi(t), ss(t), super(t), t.startTime && (this.startTime = t.startTime), this.options = t;
1675
+ Bi(t), ys(t), super(t), t.startTime && (this.startTime = t.startTime), this.options = t;
1676
1676
  }
1677
1677
  /**
1678
1678
  * WAAPI doesn't natively have any interruption capabilities.
@@ -1690,17 +1690,17 @@ class Vi extends wi {
1690
1690
  n.set(t);
1691
1691
  return;
1692
1692
  }
1693
- const a = new Dt({
1693
+ const a = new Nt({
1694
1694
  ...o,
1695
1695
  autoplay: !1
1696
1696
  }), c = /* @__PURE__ */ B(this.finishedTime ?? this.time);
1697
- n.setWithVelocity(a.sample(c - on).value, a.sample(c).value, on), a.stop();
1697
+ n.setWithVelocity(a.sample(c - fn).value, a.sample(c).value, fn), a.stop();
1698
1698
  }
1699
1699
  }
1700
- const an = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1701
- (le.test(e) || e === "0") && // And it contains numbers and/or colors
1700
+ const hn = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1701
+ (ce.test(e) || e === "0") && // And it contains numbers and/or colors
1702
1702
  !e.startsWith("url("));
1703
- function Si(e) {
1703
+ function ji(e) {
1704
1704
  const t = e[0];
1705
1705
  if (e.length === 1)
1706
1706
  return !0;
@@ -1708,45 +1708,45 @@ function Si(e) {
1708
1708
  if (e[n] !== t)
1709
1709
  return !0;
1710
1710
  }
1711
- function Ai(e, t, n, s) {
1711
+ function $i(e, t, n, s) {
1712
1712
  const r = e[0];
1713
1713
  if (r === null)
1714
1714
  return !1;
1715
1715
  if (t === "display" || t === "visibility")
1716
1716
  return !0;
1717
- const i = e[e.length - 1], o = an(r, t), a = an(i, t);
1718
- return be(o === a, `You are trying to animate ${t} from "${r}" to "${i}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${i} via the \`style\` property.`), !o || !a ? !1 : Si(e) || (n === "spring" || ls(n)) && s;
1717
+ const i = e[e.length - 1], o = hn(r, t), a = hn(i, t);
1718
+ return oe(o === a, `You are trying to animate ${t} from "${r}" to "${i}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${i} via the \`style\` property.`), !o || !a ? !1 : ji(e) || (n === "spring" || Ts(n)) && s;
1719
1719
  }
1720
- function Ot(e) {
1721
- return rr(e) && "offsetHeight" in e;
1720
+ function Bt(e) {
1721
+ return wr(e) && "offsetHeight" in e;
1722
1722
  }
1723
- const Mi = /* @__PURE__ */ new Set([
1723
+ const Wi = /* @__PURE__ */ new Set([
1724
1724
  "opacity",
1725
1725
  "clipPath",
1726
1726
  "filter",
1727
1727
  "transform"
1728
1728
  // TODO: Could be re-enabled now we have support for linear() easing
1729
1729
  // "background-color"
1730
- ]), Ci = /* @__PURE__ */ wt(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1731
- function Pi(e) {
1730
+ ]), Gi = /* @__PURE__ */ St(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1731
+ function zi(e) {
1732
1732
  var u;
1733
1733
  const { motionValue: t, name: n, repeatDelay: s, repeatType: r, damping: i, type: o } = e;
1734
- if (!Ot((u = t == null ? void 0 : t.owner) == null ? void 0 : u.current))
1734
+ if (!Bt((u = t == null ? void 0 : t.owner) == null ? void 0 : u.current))
1735
1735
  return !1;
1736
1736
  const { onUpdate: a, transformTemplate: c } = t.owner.getProps();
1737
- return Ci() && n && Mi.has(n) && (n !== "transform" || !c) && /**
1737
+ return Gi() && n && Wi.has(n) && (n !== "transform" || !c) && /**
1738
1738
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
1739
1739
  * no way to read the value from WAAPI every frame.
1740
1740
  */
1741
1741
  !a && !s && r !== "mirror" && i !== 0 && o !== "inertia";
1742
1742
  }
1743
- const Fi = 40;
1744
- class Ii extends It {
1743
+ const _i = 40;
1744
+ class Ui extends kt {
1745
1745
  constructor({ autoplay: t = !0, delay: n = 0, type: s = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: o = "loop", keyframes: a, name: c, motionValue: u, element: l, ...d }) {
1746
1746
  var m;
1747
1747
  super(), this.stop = () => {
1748
- var v, x;
1749
- this._animation && (this._animation.stop(), (v = this.stopTimeline) == null || v.call(this)), (x = this.keyframeResolver) == null || x.cancel();
1748
+ var v, T;
1749
+ this._animation && (this._animation.stop(), (v = this.stopTimeline) == null || v.call(this)), (T = this.keyframeResolver) == null || T.cancel();
1750
1750
  }, this.createdAt = k.now();
1751
1751
  const f = {
1752
1752
  autoplay: t,
@@ -1759,23 +1759,23 @@ class Ii extends It {
1759
1759
  motionValue: u,
1760
1760
  element: l,
1761
1761
  ...d
1762
- }, h = (l == null ? void 0 : l.KeyframeResolver) || Rt;
1763
- this.keyframeResolver = new h(a, (v, x, p) => this.onKeyframesResolved(v, x, f, !p), c, u, l), (m = this.keyframeResolver) == null || m.scheduleResolve();
1762
+ }, h = (l == null ? void 0 : l.KeyframeResolver) || Lt;
1763
+ this.keyframeResolver = new h(a, (v, T, p) => this.onKeyframesResolved(v, T, f, !p), c, u, l), (m = this.keyframeResolver) == null || m.scheduleResolve();
1764
1764
  }
1765
1765
  onKeyframesResolved(t, n, s, r) {
1766
1766
  this.keyframeResolver = void 0;
1767
1767
  const { name: i, type: o, velocity: a, delay: c, isHandoff: u, onUpdate: l } = s;
1768
- this.resolvedAt = k.now(), Ai(t, i, o, a) || ((G.instantAnimations || !c) && (l == null || l(Ft(t, s, n))), t[0] = t[t.length - 1], s.duration = 0, s.repeat = 0);
1768
+ this.resolvedAt = k.now(), $i(t, i, o, a) || ((G.instantAnimations || !c) && (l == null || l(Ot(t, s, n))), t[0] = t[t.length - 1], s.duration = 0, s.repeat = 0);
1769
1769
  const f = {
1770
- startTime: r ? this.resolvedAt ? this.resolvedAt - this.createdAt > Fi ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1770
+ startTime: r ? this.resolvedAt ? this.resolvedAt - this.createdAt > _i ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1771
1771
  finalKeyframe: n,
1772
1772
  ...s,
1773
1773
  keyframes: t
1774
- }, h = !u && Pi(f) ? new Vi({
1774
+ }, h = !u && zi(f) ? new Ki({
1775
1775
  ...f,
1776
1776
  element: f.motionValue.owner.current
1777
- }) : new Dt(f);
1778
- h.finished.then(() => this.notifyFinished()).catch(oe), this.pendingTimeline && (this.stopTimeline = h.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = h;
1777
+ }) : new Nt(f);
1778
+ h.finished.then(() => this.notifyFinished()).catch(ae), this.pendingTimeline && (this.stopTimeline = h.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = h;
1779
1779
  }
1780
1780
  get finished() {
1781
1781
  return this._animation ? this.animation.finished : this._finished;
@@ -1786,7 +1786,7 @@ class Ii extends It {
1786
1786
  }
1787
1787
  get animation() {
1788
1788
  var t;
1789
- return this._animation || ((t = this.keyframeResolver) == null || t.resume(), fi()), this._animation;
1789
+ return this._animation || ((t = this.keyframeResolver) == null || t.resume(), Pi()), this._animation;
1790
1790
  }
1791
1791
  get duration() {
1792
1792
  return this.animation.duration;
@@ -1826,78 +1826,78 @@ class Ii extends It {
1826
1826
  this._animation && this.animation.cancel(), (t = this.keyframeResolver) == null || t.cancel();
1827
1827
  }
1828
1828
  }
1829
- const Di = (
1829
+ const Hi = (
1830
1830
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
1831
1831
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
1832
1832
  );
1833
- function Ri(e) {
1834
- const t = Di.exec(e);
1833
+ function Yi(e) {
1834
+ const t = Hi.exec(e);
1835
1835
  if (!t)
1836
1836
  return [,];
1837
1837
  const [, n, s, r] = t;
1838
1838
  return [`--${n ?? s}`, r];
1839
1839
  }
1840
- const Oi = 4;
1841
- function us(e, t, n = 1) {
1842
- J(n <= Oi, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
1843
- const [s, r] = Ri(e);
1840
+ const Xi = 4;
1841
+ function Ss(e, t, n = 1) {
1842
+ U(n <= Xi, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
1843
+ const [s, r] = Yi(e);
1844
1844
  if (!s)
1845
1845
  return;
1846
1846
  const i = window.getComputedStyle(t).getPropertyValue(s);
1847
1847
  if (i) {
1848
1848
  const o = i.trim();
1849
- return Dn(o) ? parseFloat(o) : o;
1849
+ return Un(o) ? parseFloat(o) : o;
1850
1850
  }
1851
- return St(r) ? us(r, t, n + 1) : r;
1851
+ return Dt(r) ? Ss(r, t, n + 1) : r;
1852
1852
  }
1853
- function ds(e, t) {
1853
+ function As(e, t) {
1854
1854
  return (e == null ? void 0 : e[t]) ?? (e == null ? void 0 : e.default) ?? e;
1855
1855
  }
1856
- const fs = /* @__PURE__ */ new Set([
1856
+ const Ms = /* @__PURE__ */ new Set([
1857
1857
  "width",
1858
1858
  "height",
1859
1859
  "top",
1860
1860
  "left",
1861
1861
  "right",
1862
1862
  "bottom",
1863
- ...ce
1864
- ]), Ei = {
1863
+ ...ue
1864
+ ]), qi = {
1865
1865
  test: (e) => e === "auto",
1866
1866
  parse: (e) => e
1867
- }, hs = (e) => (t) => t.test(e), ps = [ae, b, ne, _, Sr, Vr, Ei], ln = (e) => ps.find(hs(e));
1868
- function ki(e) {
1869
- return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Rn(e) : !0;
1867
+ }, Cs = (e) => (t) => t.test(e), Ps = [le, b, ne, _, jr, Kr, qi], pn = (e) => Ps.find(Cs(e));
1868
+ function Zi(e) {
1869
+ return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Hn(e) : !0;
1870
1870
  }
1871
- const Ni = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1872
- function Li(e) {
1871
+ const Ji = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1872
+ function Qi(e) {
1873
1873
  const [t, n] = e.slice(0, -1).split("(");
1874
1874
  if (t === "drop-shadow")
1875
1875
  return e;
1876
- const [s] = n.match(At) || [];
1876
+ const [s] = n.match(It) || [];
1877
1877
  if (!s)
1878
1878
  return e;
1879
1879
  const r = n.replace(s, "");
1880
- let i = Ni.has(t) ? 1 : 0;
1880
+ let i = Ji.has(t) ? 1 : 0;
1881
1881
  return s !== n && (i *= 100), t + "(" + i + r + ")";
1882
1882
  }
1883
- const Bi = /\b([a-z-]*)\(.*?\)/gu, ft = {
1884
- ...le,
1883
+ const eo = /\b([a-z-]*)\(.*?\)/gu, ht = {
1884
+ ...ce,
1885
1885
  getAnimatableNone: (e) => {
1886
- const t = e.match(Bi);
1887
- return t ? t.map(Li).join(" ") : e;
1886
+ const t = e.match(eo);
1887
+ return t ? t.map(Qi).join(" ") : e;
1888
1888
  }
1889
- }, cn = {
1890
- ...ae,
1889
+ }, mn = {
1890
+ ...le,
1891
1891
  transform: Math.round
1892
- }, Ki = {
1892
+ }, to = {
1893
1893
  rotate: _,
1894
1894
  rotateX: _,
1895
1895
  rotateY: _,
1896
1896
  rotateZ: _,
1897
- scale: Ve,
1898
- scaleX: Ve,
1899
- scaleY: Ve,
1900
- scaleZ: Ve,
1897
+ scale: Se,
1898
+ scaleX: Se,
1899
+ scaleY: Se,
1900
+ scaleZ: Se,
1901
1901
  skew: _,
1902
1902
  skewX: _,
1903
1903
  skewY: _,
@@ -1910,11 +1910,11 @@ const Bi = /\b([a-z-]*)\(.*?\)/gu, ft = {
1910
1910
  z: b,
1911
1911
  perspective: b,
1912
1912
  transformPerspective: b,
1913
- opacity: pe,
1914
- originX: Xt,
1915
- originY: Xt,
1913
+ opacity: me,
1914
+ originX: tn,
1915
+ originY: tn,
1916
1916
  originZ: b
1917
- }, Et = {
1917
+ }, Kt = {
1918
1918
  // Border props
1919
1919
  borderWidth: b,
1920
1920
  borderTopWidth: b,
@@ -1950,45 +1950,45 @@ const Bi = /\b([a-z-]*)\(.*?\)/gu, ft = {
1950
1950
  // Misc
1951
1951
  backgroundPositionX: b,
1952
1952
  backgroundPositionY: b,
1953
- ...Ki,
1954
- zIndex: cn,
1953
+ ...to,
1954
+ zIndex: mn,
1955
1955
  // SVG
1956
- fillOpacity: pe,
1957
- strokeOpacity: pe,
1958
- numOctaves: cn
1959
- }, ji = {
1960
- ...Et,
1956
+ fillOpacity: me,
1957
+ strokeOpacity: me,
1958
+ numOctaves: mn
1959
+ }, no = {
1960
+ ...Kt,
1961
1961
  // Color props
1962
- color: F,
1963
- backgroundColor: F,
1964
- outlineColor: F,
1965
- fill: F,
1966
- stroke: F,
1962
+ color: D,
1963
+ backgroundColor: D,
1964
+ outlineColor: D,
1965
+ fill: D,
1966
+ stroke: D,
1967
1967
  // Border props
1968
- borderColor: F,
1969
- borderTopColor: F,
1970
- borderRightColor: F,
1971
- borderBottomColor: F,
1972
- borderLeftColor: F,
1973
- filter: ft,
1974
- WebkitFilter: ft
1975
- }, ms = (e) => ji[e];
1976
- function gs(e, t) {
1977
- let n = ms(e);
1978
- return n !== ft && (n = le), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1979
- }
1980
- const $i = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1981
- function Wi(e, t, n) {
1968
+ borderColor: D,
1969
+ borderTopColor: D,
1970
+ borderRightColor: D,
1971
+ borderBottomColor: D,
1972
+ borderLeftColor: D,
1973
+ filter: ht,
1974
+ WebkitFilter: ht
1975
+ }, Ds = (e) => no[e];
1976
+ function Is(e, t) {
1977
+ let n = Ds(e);
1978
+ return n !== ht && (n = ce), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1979
+ }
1980
+ const so = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1981
+ function ro(e, t, n) {
1982
1982
  let s = 0, r;
1983
1983
  for (; s < e.length && !r; ) {
1984
1984
  const i = e[s];
1985
- typeof i == "string" && !$i.has(i) && me(i).values.length && (r = e[s]), s++;
1985
+ typeof i == "string" && !so.has(i) && ge(i).values.length && (r = e[s]), s++;
1986
1986
  }
1987
1987
  if (r && n)
1988
1988
  for (const i of t)
1989
- e[i] = gs(n, r);
1989
+ e[i] = Is(n, r);
1990
1990
  }
1991
- class Gi extends Rt {
1991
+ class io extends Lt {
1992
1992
  constructor(t, n, s, r, i) {
1993
1993
  super(t, n, s, r, i, !0);
1994
1994
  }
@@ -1999,33 +1999,33 @@ class Gi extends Rt {
1999
1999
  super.readKeyframes();
2000
2000
  for (let c = 0; c < t.length; c++) {
2001
2001
  let u = t[c];
2002
- if (typeof u == "string" && (u = u.trim(), St(u))) {
2003
- const l = us(u, n.current);
2002
+ if (typeof u == "string" && (u = u.trim(), Dt(u))) {
2003
+ const l = Ss(u, n.current);
2004
2004
  l !== void 0 && (t[c] = l), c === t.length - 1 && (this.finalKeyframe = u);
2005
2005
  }
2006
2006
  }
2007
- if (this.resolveNoneKeyframes(), !fs.has(s) || t.length !== 2)
2007
+ if (this.resolveNoneKeyframes(), !Ms.has(s) || t.length !== 2)
2008
2008
  return;
2009
- const [r, i] = t, o = ln(r), a = ln(i);
2009
+ const [r, i] = t, o = pn(r), a = pn(i);
2010
2010
  if (o !== a)
2011
- if (sn(o) && sn(a))
2011
+ if (un(o) && un(a))
2012
2012
  for (let c = 0; c < t.length; c++) {
2013
2013
  const u = t[c];
2014
2014
  typeof u == "string" && (t[c] = parseFloat(u));
2015
2015
  }
2016
- else X[s] && (this.needsMeasurement = !0);
2016
+ else q[s] && (this.needsMeasurement = !0);
2017
2017
  }
2018
2018
  resolveNoneKeyframes() {
2019
2019
  const { unresolvedKeyframes: t, name: n } = this, s = [];
2020
2020
  for (let r = 0; r < t.length; r++)
2021
- (t[r] === null || ki(t[r])) && s.push(r);
2022
- s.length && Wi(t, s, n);
2021
+ (t[r] === null || Zi(t[r])) && s.push(r);
2022
+ s.length && ro(t, s, n);
2023
2023
  }
2024
2024
  measureInitialState() {
2025
2025
  const { element: t, unresolvedKeyframes: n, name: s } = this;
2026
2026
  if (!t || !t.current)
2027
2027
  return;
2028
- s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = X[s](t.measureViewportBox(), window.getComputedStyle(t.current)), n[0] = this.measuredOrigin;
2028
+ s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = q[s](t.measureViewportBox(), window.getComputedStyle(t.current)), n[0] = this.measuredOrigin;
2029
2029
  const r = n[n.length - 1];
2030
2030
  r !== void 0 && t.getValue(s, r).jump(r, !1);
2031
2031
  }
@@ -2037,12 +2037,12 @@ class Gi extends Rt {
2037
2037
  const r = t.getValue(n);
2038
2038
  r && r.jump(this.measuredOrigin, !1);
2039
2039
  const i = s.length - 1, o = s[i];
2040
- s[i] = X[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, u]) => {
2040
+ s[i] = q[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, u]) => {
2041
2041
  t.getValue(c).set(u);
2042
2042
  }), this.resolveNoneKeyframes();
2043
2043
  }
2044
2044
  }
2045
- function zi(e, t, n) {
2045
+ function oo(e, t, n) {
2046
2046
  if (e instanceof EventTarget)
2047
2047
  return [e];
2048
2048
  if (typeof e == "string") {
@@ -2052,8 +2052,8 @@ function zi(e, t, n) {
2052
2052
  }
2053
2053
  return Array.from(e);
2054
2054
  }
2055
- const ys = (e, t) => t && typeof e == "number" ? t.transform(e) : e, un = 30, _i = (e) => !isNaN(parseFloat(e));
2056
- class Ui {
2055
+ const Fs = (e, t) => t && typeof e == "number" ? t.transform(e) : e, gn = 30, ao = (e) => !isNaN(parseFloat(e));
2056
+ class lo {
2057
2057
  /**
2058
2058
  * @param init - The initiating value
2059
2059
  * @param config - Optional configuration options
@@ -2071,7 +2071,7 @@ class Ui {
2071
2071
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
2072
2072
  }
2073
2073
  setCurrent(t) {
2074
- this.current = t, this.updatedAt = k.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = _i(this.current));
2074
+ this.current = t, this.updatedAt = k.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = ao(this.current));
2075
2075
  }
2076
2076
  setPrevFrameValue(t = this.current) {
2077
2077
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -2117,10 +2117,10 @@ class Ui {
2117
2117
  * @deprecated
2118
2118
  */
2119
2119
  onChange(t) {
2120
- return process.env.NODE_ENV !== "production" && Tt(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
2120
+ return process.env.NODE_ENV !== "production" && At(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
2121
2121
  }
2122
2122
  on(t, n) {
2123
- this.events[t] || (this.events[t] = new En());
2123
+ this.events[t] || (this.events[t] = new Xn());
2124
2124
  const s = this.events[t].add(n);
2125
2125
  return t === "change" ? () => {
2126
2126
  s(), L.read(() => {
@@ -2201,10 +2201,10 @@ class Ui {
2201
2201
  */
2202
2202
  getVelocity() {
2203
2203
  const t = k.now();
2204
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > un)
2204
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > gn)
2205
2205
  return 0;
2206
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, un);
2207
- return kn(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
2206
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, gn);
2207
+ return qn(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
2208
2208
  }
2209
2209
  /**
2210
2210
  * Registers a new animation to control this `MotionValue`. Only one
@@ -2256,35 +2256,36 @@ class Ui {
2256
2256
  (t = this.dependents) == null || t.clear(), (n = this.events.destroy) == null || n.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
2257
2257
  }
2258
2258
  }
2259
- function Re(e, t) {
2260
- return new Ui(e, t);
2259
+ function Ee(e, t) {
2260
+ return new lo(e, t);
2261
2261
  }
2262
- const { schedule: Hi } = /* @__PURE__ */ _n(queueMicrotask, !1), Yi = {
2262
+ const { schedule: co } = /* @__PURE__ */ os(queueMicrotask, !1), yn = {
2263
+ x: !1,
2263
2264
  y: !1
2264
2265
  };
2265
- function Xi() {
2266
- return Yi.y;
2266
+ function Rs() {
2267
+ return yn.x || yn.y;
2267
2268
  }
2268
- function bs(e, t) {
2269
- const n = zi(e), s = new AbortController(), r = {
2269
+ function Es(e, t) {
2270
+ const n = oo(e), s = new AbortController(), r = {
2270
2271
  passive: !0,
2271
2272
  ...t,
2272
2273
  signal: s.signal
2273
2274
  };
2274
2275
  return [n, r, () => s.abort()];
2275
2276
  }
2276
- function dn(e) {
2277
- return !(e.pointerType === "touch" || Xi());
2277
+ function bn(e) {
2278
+ return !(e.pointerType === "touch" || Rs());
2278
2279
  }
2279
- function qi(e, t, n = {}) {
2280
- const [s, r, i] = bs(e, n), o = (a) => {
2281
- if (!dn(a))
2280
+ function uo(e, t, n = {}) {
2281
+ const [s, r, i] = Es(e, n), o = (a) => {
2282
+ if (!bn(a))
2282
2283
  return;
2283
2284
  const { target: c } = a, u = t(c, a);
2284
2285
  if (typeof u != "function" || !c)
2285
2286
  return;
2286
2287
  const l = (d) => {
2287
- dn(d) && (u(d), c.removeEventListener("pointerleave", l));
2288
+ bn(d) && (u(d), c.removeEventListener("pointerleave", l));
2288
2289
  };
2289
2290
  c.addEventListener("pointerleave", l, r);
2290
2291
  };
@@ -2292,18 +2293,18 @@ function qi(e, t, n = {}) {
2292
2293
  a.addEventListener("pointerenter", o, r);
2293
2294
  }), i;
2294
2295
  }
2295
- const vs = (e, t) => t ? e === t ? !0 : vs(e, t.parentElement) : !1, Zi = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Ji = /* @__PURE__ */ new Set([
2296
+ const Os = (e, t) => t ? e === t ? !0 : Os(e, t.parentElement) : !1, ks = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, fo = /* @__PURE__ */ new Set([
2296
2297
  "BUTTON",
2297
2298
  "INPUT",
2298
2299
  "SELECT",
2299
2300
  "TEXTAREA",
2300
2301
  "A"
2301
2302
  ]);
2302
- function Qi(e) {
2303
- return Ji.has(e.tagName) || e.tabIndex !== -1;
2303
+ function ho(e) {
2304
+ return fo.has(e.tagName) || e.tabIndex !== -1;
2304
2305
  }
2305
- const Me = /* @__PURE__ */ new WeakSet();
2306
- function fn(e) {
2306
+ const Ce = /* @__PURE__ */ new WeakSet();
2307
+ function vn(e) {
2307
2308
  return (t) => {
2308
2309
  t.key === "Enter" && e(t);
2309
2310
  };
@@ -2311,53 +2312,53 @@ function fn(e) {
2311
2312
  function Ze(e, t) {
2312
2313
  e.dispatchEvent(new PointerEvent("pointer" + t, { isPrimary: !0, bubbles: !0 }));
2313
2314
  }
2314
- const eo = (e, t) => {
2315
+ const po = (e, t) => {
2315
2316
  const n = e.currentTarget;
2316
2317
  if (!n)
2317
2318
  return;
2318
- const s = fn(() => {
2319
- if (Me.has(n))
2319
+ const s = vn(() => {
2320
+ if (Ce.has(n))
2320
2321
  return;
2321
2322
  Ze(n, "down");
2322
- const r = fn(() => {
2323
+ const r = vn(() => {
2323
2324
  Ze(n, "up");
2324
2325
  }), i = () => Ze(n, "cancel");
2325
2326
  n.addEventListener("keyup", r, t), n.addEventListener("blur", i, t);
2326
2327
  });
2327
2328
  n.addEventListener("keydown", s, t), n.addEventListener("blur", () => n.removeEventListener("keydown", s), t);
2328
2329
  };
2329
- function hn(e) {
2330
- return Zi(e) && !0;
2330
+ function wn(e) {
2331
+ return ks(e) && !Rs();
2331
2332
  }
2332
- function to(e, t, n = {}) {
2333
- const [s, r, i] = bs(e, n), o = (a) => {
2333
+ function mo(e, t, n = {}) {
2334
+ const [s, r, i] = Es(e, n), o = (a) => {
2334
2335
  const c = a.currentTarget;
2335
- if (!hn(a))
2336
+ if (!wn(a))
2336
2337
  return;
2337
- Me.add(c);
2338
+ Ce.add(c);
2338
2339
  const u = t(c, a), l = (h, m) => {
2339
- window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", f), Me.has(c) && Me.delete(c), hn(h) && typeof u == "function" && u(h, { success: m });
2340
+ window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", f), Ce.has(c) && Ce.delete(c), wn(h) && typeof u == "function" && u(h, { success: m });
2340
2341
  }, d = (h) => {
2341
- l(h, c === window || c === document || n.useGlobalTarget || vs(c, h.target));
2342
+ l(h, c === window || c === document || n.useGlobalTarget || Os(c, h.target));
2342
2343
  }, f = (h) => {
2343
2344
  l(h, !1);
2344
2345
  };
2345
2346
  window.addEventListener("pointerup", d, r), window.addEventListener("pointercancel", f, r);
2346
2347
  };
2347
2348
  return s.forEach((a) => {
2348
- (n.useGlobalTarget ? window : a).addEventListener("pointerdown", o, r), Ot(a) && (a.addEventListener("focus", (u) => eo(u, r)), !Qi(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
2349
+ (n.useGlobalTarget ? window : a).addEventListener("pointerdown", o, r), Bt(a) && (a.addEventListener("focus", (u) => po(u, r)), !ho(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
2349
2350
  }), i;
2350
2351
  }
2351
- const O = (e) => !!(e && e.getVelocity), no = [...ps, F, le], so = (e) => no.find(hs(e)), kt = ie({
2352
+ const E = (e) => !!(e && e.getVelocity), go = [...Ps, D, ce], yo = (e) => go.find(Cs(e)), jt = ie({
2352
2353
  transformPagePoint: (e) => e,
2353
2354
  isStatic: !1,
2354
2355
  reducedMotion: "never"
2355
2356
  });
2356
- class ro extends yt.Component {
2357
+ class bo extends xt.Component {
2357
2358
  getSnapshotBeforeUpdate(t) {
2358
2359
  const n = this.props.childRef.current;
2359
2360
  if (n && t.isPresent && !this.props.isPresent) {
2360
- const s = n.offsetParent, r = Ot(s) && s.offsetWidth || 0, i = this.props.sizeRef.current;
2361
+ const s = n.offsetParent, r = Bt(s) && s.offsetWidth || 0, i = this.props.sizeRef.current;
2361
2362
  i.height = n.offsetHeight || 0, i.width = n.offsetWidth || 0, i.top = n.offsetTop, i.left = n.offsetLeft, i.right = r - i.width - i.left;
2362
2363
  }
2363
2364
  return null;
@@ -2371,15 +2372,15 @@ class ro extends yt.Component {
2371
2372
  return this.props.children;
2372
2373
  }
2373
2374
  }
2374
- function io({ children: e, isPresent: t, anchorX: n }) {
2375
- const s = Ee(), r = j(null), i = j({
2375
+ function vo({ children: e, isPresent: t, anchorX: n }) {
2376
+ const s = ke(), r = j(null), i = j({
2376
2377
  width: 0,
2377
2378
  height: 0,
2378
2379
  top: 0,
2379
2380
  left: 0,
2380
2381
  right: 0
2381
- }), { nonce: o } = E(kt);
2382
- return Mn(() => {
2382
+ }), { nonce: o } = O(jt);
2383
+ return $n(() => {
2383
2384
  const { width: a, height: c, top: u, left: l, right: d } = i.current;
2384
2385
  if (t || !r.current || !a || !c)
2385
2386
  return;
@@ -2397,10 +2398,10 @@ function io({ children: e, isPresent: t, anchorX: n }) {
2397
2398
  `), () => {
2398
2399
  document.head.contains(h) && document.head.removeChild(h);
2399
2400
  };
2400
- }, [t]), P.jsx(ro, { isPresent: t, childRef: r, sizeRef: i, children: yt.cloneElement(e, { ref: r }) });
2401
+ }, [t]), P.jsx(bo, { isPresent: t, childRef: r, sizeRef: i, children: xt.cloneElement(e, { ref: r }) });
2401
2402
  }
2402
- const oo = ({ children: e, initial: t, isPresent: n, onExitComplete: s, custom: r, presenceAffectsLayout: i, mode: o, anchorX: a }) => {
2403
- const c = bt(ao), u = Ee();
2403
+ const wo = ({ children: e, initial: t, isPresent: n, onExitComplete: s, custom: r, presenceAffectsLayout: i, mode: o, anchorX: a }) => {
2404
+ const c = Tt(xo), u = ke();
2404
2405
  let l = !0, d = W(() => (l = !1, {
2405
2406
  id: u,
2406
2407
  initial: t,
@@ -2417,38 +2418,38 @@ const oo = ({ children: e, initial: t, isPresent: n, onExitComplete: s, custom:
2417
2418
  }), [n, c, s]);
2418
2419
  return i && l && (d = { ...d }), W(() => {
2419
2420
  c.forEach((f, h) => c.set(h, !1));
2420
- }, [n]), yt.useEffect(() => {
2421
+ }, [n]), xt.useEffect(() => {
2421
2422
  !n && !c.size && s && s();
2422
- }, [n]), o === "popLayout" && (e = P.jsx(io, { isPresent: n, anchorX: a, children: e })), P.jsx(Ne.Provider, { value: d, children: e });
2423
+ }, [n]), o === "popLayout" && (e = P.jsx(vo, { isPresent: n, anchorX: a, children: e })), P.jsx(Le.Provider, { value: d, children: e });
2423
2424
  };
2424
- function ao() {
2425
+ function xo() {
2425
2426
  return /* @__PURE__ */ new Map();
2426
2427
  }
2427
- function lo(e = !0) {
2428
- const t = E(Ne);
2428
+ function To(e = !0) {
2429
+ const t = O(Le);
2429
2430
  if (t === null)
2430
2431
  return [!0, null];
2431
- const { isPresent: n, onExitComplete: s, register: r } = t, i = Ee();
2432
- ke(() => {
2432
+ const { isPresent: n, onExitComplete: s, register: r } = t, i = ke();
2433
+ Ne(() => {
2433
2434
  if (e)
2434
2435
  return r(i);
2435
2436
  }, [e]);
2436
2437
  const o = se(() => e && s && s(i), [i, s, e]);
2437
2438
  return !n && s ? [!1, o] : [!0];
2438
2439
  }
2439
- const Se = (e) => e.key || "";
2440
- function pn(e) {
2440
+ const Ae = (e) => e.key || "";
2441
+ function xn(e) {
2441
2442
  const t = [];
2442
- return zs.forEach(e, (n) => {
2443
- An(n) && t.push(n);
2443
+ return or.forEach(e, (n) => {
2444
+ jn(n) && t.push(n);
2444
2445
  }), t;
2445
2446
  }
2446
- const co = ({ children: e, custom: t, initial: n = !0, onExitComplete: s, presenceAffectsLayout: r = !0, mode: i = "sync", propagate: o = !1, anchorX: a = "left" }) => {
2447
- const [c, u] = lo(o), l = W(() => pn(e), [e]), d = o && !c ? [] : l.map(Se), f = j(!0), h = j(l), m = bt(() => /* @__PURE__ */ new Map()), [v, x] = Ce(l), [p, S] = Ce(l);
2448
- In(() => {
2447
+ const Vo = ({ children: e, custom: t, initial: n = !0, onExitComplete: s, presenceAffectsLayout: r = !0, mode: i = "sync", propagate: o = !1, anchorX: a = "left" }) => {
2448
+ const [c, u] = To(o), l = W(() => xn(e), [e]), d = o && !c ? [] : l.map(Ae), f = j(!0), h = j(l), m = Tt(() => /* @__PURE__ */ new Map()), [v, T] = Pe(l), [p, S] = Pe(l);
2449
+ _n(() => {
2449
2450
  f.current = !1, h.current = l;
2450
2451
  for (let g = 0; g < p.length; g++) {
2451
- const w = Se(p[g]);
2452
+ const w = Ae(p[g]);
2452
2453
  d.includes(w) ? m.delete(w) : m.get(w) !== !0 && m.set(w, !1);
2453
2454
  }
2454
2455
  }, [p, d.length, d.join("-")]);
@@ -2456,15 +2457,15 @@ const co = ({ children: e, custom: t, initial: n = !0, onExitComplete: s, presen
2456
2457
  if (l !== v) {
2457
2458
  let g = [...l];
2458
2459
  for (let w = 0; w < p.length; w++) {
2459
- const M = p[w], T = Se(M);
2460
- d.includes(T) || (g.splice(w, 0, M), y.push(M));
2460
+ const M = p[w], x = Ae(M);
2461
+ d.includes(x) || (g.splice(w, 0, M), y.push(M));
2461
2462
  }
2462
- return i === "wait" && y.length && (g = y), S(pn(g)), x(l), null;
2463
+ return i === "wait" && y.length && (g = y), S(xn(g)), T(l), null;
2463
2464
  }
2464
2465
  process.env.NODE_ENV !== "production" && i === "wait" && p.length > 1;
2465
- const { forceRender: A } = E(Fn);
2466
+ const { forceRender: A } = O(zn);
2466
2467
  return P.jsx(P.Fragment, { children: p.map((g) => {
2467
- const w = Se(g), M = o && !c ? !1 : l === p || d.includes(w), T = () => {
2468
+ const w = Ae(g), M = o && !c ? !1 : l === p || d.includes(w), x = () => {
2468
2469
  if (m.has(w))
2469
2470
  m.set(w, !0);
2470
2471
  else
@@ -2474,9 +2475,9 @@ const co = ({ children: e, custom: t, initial: n = !0, onExitComplete: s, presen
2474
2475
  R || (I = !1);
2475
2476
  }), I && (A == null || A(), S(h.current), o && (u == null || u()), s && s());
2476
2477
  };
2477
- return P.jsx(oo, { isPresent: M, initial: !f.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: r, mode: i, onExitComplete: M ? void 0 : T, anchorX: a, children: g }, w);
2478
+ return P.jsx(wo, { isPresent: M, initial: !f.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: r, mode: i, onExitComplete: M ? void 0 : x, anchorX: a, children: g }, w);
2478
2479
  }) });
2479
- }, Nt = ie({ strict: !1 }), mn = {
2480
+ }, $t = ie({ strict: !1 }), Tn = {
2480
2481
  animation: [
2481
2482
  "animate",
2482
2483
  "variants",
@@ -2496,33 +2497,33 @@ const co = ({ children: e, custom: t, initial: n = !0, onExitComplete: s, presen
2496
2497
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
2497
2498
  layout: ["layout", "layoutId"]
2498
2499
  }, re = {};
2499
- for (const e in mn)
2500
+ for (const e in Tn)
2500
2501
  re[e] = {
2501
- isEnabled: (t) => mn[e].some((n) => !!t[n])
2502
+ isEnabled: (t) => Tn[e].some((n) => !!t[n])
2502
2503
  };
2503
- function gn(e) {
2504
+ function pt(e) {
2504
2505
  for (const t in e)
2505
2506
  re[t] = {
2506
2507
  ...re[t],
2507
2508
  ...e[t]
2508
2509
  };
2509
2510
  }
2510
- function uo({ children: e, features: t, strict: n = !1 }) {
2511
- const [, s] = Ce(!Je(t)), r = j(void 0);
2511
+ function So({ children: e, features: t, strict: n = !1 }) {
2512
+ const [, s] = Pe(!Je(t)), r = j(void 0);
2512
2513
  if (!Je(t)) {
2513
2514
  const { renderer: i, ...o } = t;
2514
- r.current = i, gn(o);
2515
+ r.current = i, pt(o);
2515
2516
  }
2516
- return ke(() => {
2517
+ return Ne(() => {
2517
2518
  Je(t) && t().then(({ renderer: i, ...o }) => {
2518
- gn(o), r.current = i, s(!0);
2519
+ pt(o), r.current = i, s(!0);
2519
2520
  });
2520
- }, []), P.jsx(Nt.Provider, { value: { renderer: r.current, strict: n }, children: e });
2521
+ }, []), P.jsx($t.Provider, { value: { renderer: r.current, strict: n }, children: e });
2521
2522
  }
2522
2523
  function Je(e) {
2523
2524
  return typeof e == "function";
2524
2525
  }
2525
- const fo = /* @__PURE__ */ new Set([
2526
+ const Ao = /* @__PURE__ */ new Set([
2526
2527
  "animate",
2527
2528
  "exit",
2528
2529
  "variants",
@@ -2555,27 +2556,27 @@ const fo = /* @__PURE__ */ new Set([
2555
2556
  "viewport"
2556
2557
  ]);
2557
2558
  function Oe(e) {
2558
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || fo.has(e);
2559
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Ao.has(e);
2559
2560
  }
2560
- let ws = (e) => !Oe(e);
2561
- function ho(e) {
2562
- typeof e == "function" && (ws = (t) => t.startsWith("on") ? !Oe(t) : e(t));
2561
+ let Ns = (e) => !Oe(e);
2562
+ function Mo(e) {
2563
+ typeof e == "function" && (Ns = (t) => t.startsWith("on") ? !Oe(t) : e(t));
2563
2564
  }
2564
2565
  try {
2565
- ho(require("@emotion/is-prop-valid").default);
2566
+ Mo(require("@emotion/is-prop-valid").default);
2566
2567
  } catch {
2567
2568
  }
2568
- function po(e, t, n) {
2569
+ function Co(e, t, n) {
2569
2570
  const s = {};
2570
2571
  for (const r in e)
2571
- r === "values" && typeof e.values == "object" || (ws(r) || n === !0 && Oe(r) || !t && !Oe(r) || // If trying to use native HTML drag events, forward drag listeners
2572
+ r === "values" && typeof e.values == "object" || (Ns(r) || n === !0 && Oe(r) || !t && !Oe(r) || // If trying to use native HTML drag events, forward drag listeners
2572
2573
  e.draggable && r.startsWith("onDrag")) && (s[r] = e[r]);
2573
2574
  return s;
2574
2575
  }
2575
- function mo(e) {
2576
+ function Po(e) {
2576
2577
  if (typeof Proxy > "u")
2577
2578
  return e;
2578
- const t = /* @__PURE__ */ new Map(), n = (...s) => (process.env.NODE_ENV !== "production" && Tt(!1, "motion() is deprecated. Use motion.create() instead."), e(...s));
2579
+ const t = /* @__PURE__ */ new Map(), n = (...s) => (process.env.NODE_ENV !== "production" && At(!1, "motion() is deprecated. Use motion.create() instead."), e(...s));
2579
2580
  return new Proxy(n, {
2580
2581
  /**
2581
2582
  * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
@@ -2589,10 +2590,10 @@ const Ke = /* @__PURE__ */ ie({});
2589
2590
  function je(e) {
2590
2591
  return e !== null && typeof e == "object" && typeof e.start == "function";
2591
2592
  }
2592
- function ge(e) {
2593
+ function ye(e) {
2593
2594
  return typeof e == "string" || Array.isArray(e);
2594
2595
  }
2595
- const Lt = [
2596
+ const Wt = [
2596
2597
  "animate",
2597
2598
  "whileInView",
2598
2599
  "whileFocus",
@@ -2600,38 +2601,38 @@ const Lt = [
2600
2601
  "whileTap",
2601
2602
  "whileDrag",
2602
2603
  "exit"
2603
- ], Bt = ["initial", ...Lt];
2604
+ ], Gt = ["initial", ...Wt];
2604
2605
  function $e(e) {
2605
- return je(e.animate) || Bt.some((t) => ge(e[t]));
2606
+ return je(e.animate) || Gt.some((t) => ye(e[t]));
2606
2607
  }
2607
- function Ts(e) {
2608
+ function Ls(e) {
2608
2609
  return !!($e(e) || e.variants);
2609
2610
  }
2610
- function go(e, t) {
2611
+ function Do(e, t) {
2611
2612
  if ($e(e)) {
2612
2613
  const { initial: n, animate: s } = e;
2613
2614
  return {
2614
- initial: n === !1 || ge(n) ? n : void 0,
2615
- animate: ge(s) ? s : void 0
2615
+ initial: n === !1 || ye(n) ? n : void 0,
2616
+ animate: ye(s) ? s : void 0
2616
2617
  };
2617
2618
  }
2618
2619
  return e.inherit !== !1 ? t : {};
2619
2620
  }
2620
- function yo(e) {
2621
- const { initial: t, animate: n } = go(e, E(Ke));
2622
- return W(() => ({ initial: t, animate: n }), [yn(t), yn(n)]);
2621
+ function Io(e) {
2622
+ const { initial: t, animate: n } = Do(e, O(Ke));
2623
+ return W(() => ({ initial: t, animate: n }), [Vn(t), Vn(n)]);
2623
2624
  }
2624
- function yn(e) {
2625
+ function Vn(e) {
2625
2626
  return Array.isArray(e) ? e.join(" ") : e;
2626
2627
  }
2627
- const bo = Symbol.for("motionComponentSymbol");
2628
- function xs(e) {
2628
+ const Fo = Symbol.for("motionComponentSymbol");
2629
+ function Bs(e) {
2629
2630
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
2630
2631
  }
2631
- function vo(e, t, n) {
2632
+ function Ro(e, t, n) {
2632
2633
  return se(
2633
2634
  (s) => {
2634
- s && e.onMount && e.onMount(s), t && (s ? t.mount(s) : t.unmount()), n && (typeof n == "function" ? n(s) : xs(n) && (n.current = s));
2635
+ s && e.onMount && e.onMount(s), t && (s ? t.mount(s) : t.unmount()), n && (typeof n == "function" ? n(s) : Bs(n) && (n.current = s));
2635
2636
  },
2636
2637
  /**
2637
2638
  * Only pass a new ref callback to React if we've received a visual element
@@ -2641,10 +2642,10 @@ function vo(e, t, n) {
2641
2642
  [t]
2642
2643
  );
2643
2644
  }
2644
- const Kt = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), wo = "framerAppearId", Vs = "data-" + Kt(wo), To = ie({});
2645
- function xo(e, t, n, s, r) {
2646
- var v, x;
2647
- const { visualElement: i } = E(Ke), o = E(Nt), a = E(Ne), c = E(kt).reducedMotion, u = j(null);
2645
+ const zt = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Eo = "framerAppearId", Ks = "data-" + zt(Eo), Oo = ie({});
2646
+ function ko(e, t, n, s, r) {
2647
+ var v, T;
2648
+ const { visualElement: i } = O(Ke), o = O($t), a = O(Le), c = O(jt).reducedMotion, u = j(null);
2648
2649
  s = s || o.renderer, !u.current && s && (u.current = s(e, {
2649
2650
  visualState: t,
2650
2651
  parent: i,
@@ -2653,28 +2654,28 @@ function xo(e, t, n, s, r) {
2653
2654
  blockInitialAnimation: a ? a.initial === !1 : !1,
2654
2655
  reducedMotionConfig: c
2655
2656
  }));
2656
- const l = u.current, d = E(To);
2657
- l && !l.projection && r && (l.type === "html" || l.type === "svg") && Vo(u.current, n, r, d);
2657
+ const l = u.current, d = O(Oo);
2658
+ l && !l.projection && r && (l.type === "html" || l.type === "svg") && No(u.current, n, r, d);
2658
2659
  const f = j(!1);
2659
- Mn(() => {
2660
+ $n(() => {
2660
2661
  l && f.current && l.update(n, a);
2661
2662
  });
2662
- const h = n[Vs], m = j(!!h && !((v = window.MotionHandoffIsComplete) != null && v.call(window, h)) && ((x = window.MotionHasOptimisedAnimation) == null ? void 0 : x.call(window, h)));
2663
- return In(() => {
2664
- l && (f.current = !0, window.MotionIsMounted = !0, l.updateFeatures(), Hi.render(l.render), m.current && l.animationState && l.animationState.animateChanges());
2665
- }), ke(() => {
2663
+ const h = n[Ks], m = j(!!h && !((v = window.MotionHandoffIsComplete) != null && v.call(window, h)) && ((T = window.MotionHasOptimisedAnimation) == null ? void 0 : T.call(window, h)));
2664
+ return _n(() => {
2665
+ l && (f.current = !0, window.MotionIsMounted = !0, l.updateFeatures(), co.render(l.render), m.current && l.animationState && l.animationState.animateChanges());
2666
+ }), Ne(() => {
2666
2667
  l && (!m.current && l.animationState && l.animationState.animateChanges(), m.current && (queueMicrotask(() => {
2667
2668
  var p;
2668
2669
  (p = window.MotionHandoffMarkAsComplete) == null || p.call(window, h);
2669
2670
  }), m.current = !1));
2670
2671
  }), l;
2671
2672
  }
2672
- function Vo(e, t, n, s) {
2673
+ function No(e, t, n, s) {
2673
2674
  const { layoutId: r, layout: i, drag: o, dragConstraints: a, layoutScroll: c, layoutRoot: u, layoutCrossfade: l } = t;
2674
- e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Ss(e.parent)), e.projection.setOptions({
2675
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : js(e.parent)), e.projection.setOptions({
2675
2676
  layoutId: r,
2676
2677
  layout: i,
2677
- alwaysMeasureLayout: !!o || a && xs(a),
2678
+ alwaysMeasureLayout: !!o || a && Bs(a),
2678
2679
  visualElement: e,
2679
2680
  /**
2680
2681
  * TODO: Update options in an effect. This could be tricky as it'll be too late
@@ -2690,37 +2691,42 @@ function Vo(e, t, n, s) {
2690
2691
  layoutRoot: u
2691
2692
  });
2692
2693
  }
2693
- function Ss(e) {
2694
+ function js(e) {
2694
2695
  if (e)
2695
- return e.options.allowProjection !== !1 ? e.projection : Ss(e.parent);
2696
+ return e.options.allowProjection !== !1 ? e.projection : js(e.parent);
2696
2697
  }
2697
- function So({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: s, Component: r }) {
2698
+ function Lo({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: s, Component: r }) {
2699
+ e && pt(e);
2698
2700
  function i(a, c) {
2699
2701
  let u;
2700
2702
  const l = {
2701
- ...E(kt),
2703
+ ...O(jt),
2702
2704
  ...a,
2703
- layoutId: Ao(a)
2704
- }, { isStatic: d } = l, f = yo(a), h = s(a, d);
2705
- if (!d && vt) {
2706
- Mo(l, e);
2707
- const m = Co(l);
2708
- u = m.MeasureLayout, f.visualElement = xo(r, h, l, t, m.ProjectionNode);
2705
+ layoutId: Bo(a)
2706
+ }, { isStatic: d } = l, f = Io(a), h = s(a, d);
2707
+ if (!d && Vt) {
2708
+ Ko(l, e);
2709
+ const m = jo(l);
2710
+ u = m.MeasureLayout, f.visualElement = ko(r, h, l, t, m.ProjectionNode);
2709
2711
  }
2710
- return P.jsxs(Ke.Provider, { value: f, children: [u && f.visualElement ? P.jsx(u, { visualElement: f.visualElement, ...l }) : null, n(r, a, vo(h, f.visualElement, c), h, d, f.visualElement)] });
2712
+ return P.jsxs(Ke.Provider, { value: f, children: [u && f.visualElement ? P.jsx(u, { visualElement: f.visualElement, ...l }) : null, n(r, a, Ro(h, f.visualElement, c), h, d, f.visualElement)] });
2711
2713
  }
2712
2714
  i.displayName = `motion.${typeof r == "string" ? r : `create(${r.displayName ?? r.name ?? ""})`}`;
2713
- const o = Cn(i);
2714
- return o[bo] = r, o;
2715
+ const o = Wn(i);
2716
+ return o[Fo] = r, o;
2715
2717
  }
2716
- function Ao({ layoutId: e }) {
2717
- const t = E(Fn).id;
2718
+ function Bo({ layoutId: e }) {
2719
+ const t = O(zn).id;
2718
2720
  return t && e !== void 0 ? t + "-" + e : e;
2719
2721
  }
2720
- function Mo(e, t) {
2721
- E(Nt).strict, process.env.NODE_ENV;
2722
+ function Ko(e, t) {
2723
+ const n = O($t).strict;
2724
+ if (process.env.NODE_ENV !== "production" && t && n) {
2725
+ const s = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
2726
+ e.ignoreStrict ? oe(!1, s) : U(!1, s);
2727
+ }
2722
2728
  }
2723
- function Co(e) {
2729
+ function jo(e) {
2724
2730
  const { drag: t, layout: n } = re;
2725
2731
  if (!t && !n)
2726
2732
  return {};
@@ -2730,28 +2736,32 @@ function Co(e) {
2730
2736
  ProjectionNode: s.ProjectionNode
2731
2737
  };
2732
2738
  }
2733
- const Po = {};
2734
- function As(e, { layout: t, layoutId: n }) {
2735
- return ue.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Po[e] || e === "opacity");
2739
+ const mt = {};
2740
+ function wl(e) {
2741
+ for (const t in e)
2742
+ mt[t] = e[t], Pt(t) && (mt[t].isCSSVariable = !0);
2743
+ }
2744
+ function $s(e, { layout: t, layoutId: n }) {
2745
+ return de.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!mt[e] || e === "opacity");
2736
2746
  }
2737
- const Fo = {
2747
+ const $o = {
2738
2748
  x: "translateX",
2739
2749
  y: "translateY",
2740
2750
  z: "translateZ",
2741
2751
  transformPerspective: "perspective"
2742
- }, Io = ce.length;
2743
- function Do(e, t, n) {
2752
+ }, Wo = ue.length;
2753
+ function Go(e, t, n) {
2744
2754
  let s = "", r = !0;
2745
- for (let i = 0; i < Io; i++) {
2746
- const o = ce[i], a = e[o];
2755
+ for (let i = 0; i < Wo; i++) {
2756
+ const o = ue[i], a = e[o];
2747
2757
  if (a === void 0)
2748
2758
  continue;
2749
2759
  let c = !0;
2750
2760
  if (typeof a == "number" ? c = a === (o.startsWith("scale") ? 1 : 0) : c = parseFloat(a) === 0, !c || n) {
2751
- const u = ys(a, Et[o]);
2761
+ const u = Fs(a, Kt[o]);
2752
2762
  if (!c) {
2753
2763
  r = !1;
2754
- const l = Fo[o] || o;
2764
+ const l = $o[o] || o;
2755
2765
  s += `${l}(${u}) `;
2756
2766
  }
2757
2767
  n && (t[o] = u);
@@ -2759,66 +2769,66 @@ function Do(e, t, n) {
2759
2769
  }
2760
2770
  return s = s.trim(), n ? s = n(t, r ? "" : s) : r && (s = "none"), s;
2761
2771
  }
2762
- function jt(e, t, n) {
2772
+ function _t(e, t, n) {
2763
2773
  const { style: s, vars: r, transformOrigin: i } = e;
2764
2774
  let o = !1, a = !1;
2765
2775
  for (const c in t) {
2766
2776
  const u = t[c];
2767
- if (ue.has(c)) {
2777
+ if (de.has(c)) {
2768
2778
  o = !0;
2769
2779
  continue;
2770
- } else if (Hn(c)) {
2780
+ } else if (Pt(c)) {
2771
2781
  r[c] = u;
2772
2782
  continue;
2773
2783
  } else {
2774
- const l = ys(u, Et[c]);
2784
+ const l = Fs(u, Kt[c]);
2775
2785
  c.startsWith("origin") ? (a = !0, i[c] = l) : s[c] = l;
2776
2786
  }
2777
2787
  }
2778
- if (t.transform || (o || n ? s.transform = Do(t, e.transform, n) : s.transform && (s.transform = "none")), a) {
2788
+ if (t.transform || (o || n ? s.transform = Go(t, e.transform, n) : s.transform && (s.transform = "none")), a) {
2779
2789
  const { originX: c = "50%", originY: u = "50%", originZ: l = 0 } = i;
2780
2790
  s.transformOrigin = `${c} ${u} ${l}`;
2781
2791
  }
2782
2792
  }
2783
- const $t = () => ({
2793
+ const Ut = () => ({
2784
2794
  style: {},
2785
2795
  transform: {},
2786
2796
  transformOrigin: {},
2787
2797
  vars: {}
2788
2798
  });
2789
- function Ms(e, t, n) {
2799
+ function Ws(e, t, n) {
2790
2800
  for (const s in t)
2791
- !O(t[s]) && !As(s, n) && (e[s] = t[s]);
2801
+ !E(t[s]) && !$s(s, n) && (e[s] = t[s]);
2792
2802
  }
2793
- function Ro({ transformTemplate: e }, t) {
2803
+ function zo({ transformTemplate: e }, t) {
2794
2804
  return W(() => {
2795
- const n = $t();
2796
- return jt(n, t, e), Object.assign({}, n.vars, n.style);
2805
+ const n = Ut();
2806
+ return _t(n, t, e), Object.assign({}, n.vars, n.style);
2797
2807
  }, [t]);
2798
2808
  }
2799
- function Oo(e, t) {
2809
+ function _o(e, t) {
2800
2810
  const n = e.style || {}, s = {};
2801
- return Ms(s, n, e), Object.assign(s, Ro(e, t)), s;
2811
+ return Ws(s, n, e), Object.assign(s, zo(e, t)), s;
2802
2812
  }
2803
- function Eo(e, t) {
2804
- const n = {}, s = Oo(e, t);
2813
+ function Uo(e, t) {
2814
+ const n = {}, s = _o(e, t);
2805
2815
  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;
2806
2816
  }
2807
- const ko = {
2817
+ const Ho = {
2808
2818
  offset: "stroke-dashoffset",
2809
2819
  array: "stroke-dasharray"
2810
- }, No = {
2820
+ }, Yo = {
2811
2821
  offset: "strokeDashoffset",
2812
2822
  array: "strokeDasharray"
2813
2823
  };
2814
- function Lo(e, t, n = 1, s = 0, r = !0) {
2824
+ function Xo(e, t, n = 1, s = 0, r = !0) {
2815
2825
  e.pathLength = 1;
2816
- const i = r ? ko : No;
2826
+ const i = r ? Ho : Yo;
2817
2827
  e[i.offset] = b.transform(-s);
2818
2828
  const o = b.transform(t), a = b.transform(n);
2819
2829
  e[i.array] = `${o} ${a}`;
2820
2830
  }
2821
- function Cs(e, {
2831
+ function Gs(e, {
2822
2832
  attrX: t,
2823
2833
  attrY: n,
2824
2834
  attrScale: s,
@@ -2828,33 +2838,33 @@ function Cs(e, {
2828
2838
  // This is object creation, which we try to avoid per-frame.
2829
2839
  ...a
2830
2840
  }, c, u, l) {
2831
- if (jt(e, a, u), c) {
2841
+ if (_t(e, a, u), c) {
2832
2842
  e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
2833
2843
  return;
2834
2844
  }
2835
2845
  e.attrs = e.style, e.style = {};
2836
2846
  const { attrs: d, style: f } = e;
2837
- 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 = (l == null ? void 0 : l.transformBox) ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), s !== void 0 && (d.scale = s), r !== void 0 && Lo(d, r, i, o, !1);
2847
+ 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 = (l == null ? void 0 : l.transformBox) ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), s !== void 0 && (d.scale = s), r !== void 0 && Xo(d, r, i, o, !1);
2838
2848
  }
2839
- const Ps = () => ({
2840
- ...$t(),
2849
+ const zs = () => ({
2850
+ ...Ut(),
2841
2851
  attrs: {}
2842
- }), Fs = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2843
- function Bo(e, t, n, s) {
2852
+ }), _s = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2853
+ function qo(e, t, n, s) {
2844
2854
  const r = W(() => {
2845
- const i = Ps();
2846
- return Cs(i, t, Fs(s), e.transformTemplate, e.style), {
2855
+ const i = zs();
2856
+ return Gs(i, t, _s(s), e.transformTemplate, e.style), {
2847
2857
  ...i.attrs,
2848
2858
  style: { ...i.style }
2849
2859
  };
2850
2860
  }, [t]);
2851
2861
  if (e.style) {
2852
2862
  const i = {};
2853
- Ms(i, e.style, e), r.style = { ...i, ...r.style };
2863
+ Ws(i, e.style, e), r.style = { ...i, ...r.style };
2854
2864
  }
2855
2865
  return r;
2856
2866
  }
2857
- const Ko = [
2867
+ const Zo = [
2858
2868
  "animate",
2859
2869
  "circle",
2860
2870
  "defs",
@@ -2881,7 +2891,7 @@ const Ko = [
2881
2891
  "use",
2882
2892
  "view"
2883
2893
  ];
2884
- function Wt(e) {
2894
+ function Ht(e) {
2885
2895
  return (
2886
2896
  /**
2887
2897
  * If it's not a string, it's a custom React component. Currently we only support
@@ -2894,58 +2904,58 @@ function Wt(e) {
2894
2904
  /**
2895
2905
  * If it's in our list of lowercase SVG tags, it's an SVG component
2896
2906
  */
2897
- !!(Ko.indexOf(e) > -1 || /**
2907
+ !!(Zo.indexOf(e) > -1 || /**
2898
2908
  * If it contains a capital letter, it's an SVG component
2899
2909
  */
2900
2910
  /[A-Z]/u.test(e))
2901
2911
  )
2902
2912
  );
2903
2913
  }
2904
- function jo(e = !1) {
2914
+ function Jo(e = !1) {
2905
2915
  return (n, s, r, { latestValues: i }, o) => {
2906
- const c = (Wt(n) ? Bo : Eo)(s, i, o, n), u = po(s, typeof n == "string", e), l = n !== Pn ? { ...u, ...c, ref: r } : {}, { children: d } = s, f = W(() => O(d) ? d.get() : d, [d]);
2907
- return _s(n, {
2916
+ const c = (Ht(n) ? qo : Uo)(s, i, o, n), u = Co(s, typeof n == "string", e), l = n !== Gn ? { ...u, ...c, ref: r } : {}, { children: d } = s, f = W(() => E(d) ? d.get() : d, [d]);
2917
+ return ar(n, {
2908
2918
  ...l,
2909
2919
  children: f
2910
2920
  });
2911
2921
  };
2912
2922
  }
2913
- function bn(e) {
2923
+ function Sn(e) {
2914
2924
  const t = [{}, {}];
2915
2925
  return e == null || e.values.forEach((n, s) => {
2916
2926
  t[0][s] = n.get(), t[1][s] = n.getVelocity();
2917
2927
  }), t;
2918
2928
  }
2919
- function Gt(e, t, n, s) {
2929
+ function Yt(e, t, n, s) {
2920
2930
  if (typeof t == "function") {
2921
- const [r, i] = bn(s);
2931
+ const [r, i] = Sn(s);
2922
2932
  t = t(n !== void 0 ? n : e.custom, r, i);
2923
2933
  }
2924
2934
  if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
2925
- const [r, i] = bn(s);
2935
+ const [r, i] = Sn(s);
2926
2936
  t = t(n !== void 0 ? n : e.custom, r, i);
2927
2937
  }
2928
2938
  return t;
2929
2939
  }
2930
- function $o(e) {
2931
- return O(e) ? e.get() : e;
2940
+ function Qo(e) {
2941
+ return E(e) ? e.get() : e;
2932
2942
  }
2933
- function Wo({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, s, r) {
2943
+ function ea({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, s, r) {
2934
2944
  return {
2935
- latestValues: Go(n, s, r, e),
2945
+ latestValues: ta(n, s, r, e),
2936
2946
  renderState: t()
2937
2947
  };
2938
2948
  }
2939
- const Is = (e) => (t, n) => {
2940
- const s = E(Ke), r = E(Ne), i = () => Wo(e, t, s, r);
2941
- return n ? i() : bt(i);
2949
+ const Us = (e) => (t, n) => {
2950
+ const s = O(Ke), r = O(Le), i = () => ea(e, t, s, r);
2951
+ return n ? i() : Tt(i);
2942
2952
  };
2943
- function Go(e, t, n, s) {
2953
+ function ta(e, t, n, s) {
2944
2954
  const r = {}, i = s(e, {});
2945
2955
  for (const f in i)
2946
- r[f] = $o(i[f]);
2956
+ r[f] = Qo(i[f]);
2947
2957
  let { initial: o, animate: a } = e;
2948
- const c = $e(e), u = Ts(e);
2958
+ const c = $e(e), u = Ls(e);
2949
2959
  t && u && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), a === void 0 && (a = t.animate));
2950
2960
  let l = n ? n.initial === !1 : !1;
2951
2961
  l = l || o === !1;
@@ -2953,9 +2963,9 @@ function Go(e, t, n, s) {
2953
2963
  if (d && typeof d != "boolean" && !je(d)) {
2954
2964
  const f = Array.isArray(d) ? d : [d];
2955
2965
  for (let h = 0; h < f.length; h++) {
2956
- const m = Gt(e, f[h]);
2966
+ const m = Yt(e, f[h]);
2957
2967
  if (m) {
2958
- const { transitionEnd: v, transition: x, ...p } = m;
2968
+ const { transitionEnd: v, transition: T, ...p } = m;
2959
2969
  for (const S in p) {
2960
2970
  let y = p[S];
2961
2971
  if (Array.isArray(y)) {
@@ -2971,110 +2981,110 @@ function Go(e, t, n, s) {
2971
2981
  }
2972
2982
  return r;
2973
2983
  }
2974
- function zt(e, t, n) {
2984
+ function Xt(e, t, n) {
2975
2985
  var i;
2976
2986
  const { style: s } = e, r = {};
2977
2987
  for (const o in s)
2978
- (O(s[o]) || t.style && O(t.style[o]) || As(o, e) || ((i = n == null ? void 0 : n.getValue(o)) == null ? void 0 : i.liveStyle) !== void 0) && (r[o] = s[o]);
2988
+ (E(s[o]) || t.style && E(t.style[o]) || $s(o, e) || ((i = n == null ? void 0 : n.getValue(o)) == null ? void 0 : i.liveStyle) !== void 0) && (r[o] = s[o]);
2979
2989
  return r;
2980
2990
  }
2981
- const zo = {
2982
- useVisualState: Is({
2983
- scrapeMotionValuesFromProps: zt,
2984
- createRenderState: $t
2991
+ const na = {
2992
+ useVisualState: Us({
2993
+ scrapeMotionValuesFromProps: Xt,
2994
+ createRenderState: Ut
2985
2995
  })
2986
2996
  };
2987
- function Ds(e, t, n) {
2988
- const s = zt(e, t, n);
2997
+ function Hs(e, t, n) {
2998
+ const s = Xt(e, t, n);
2989
2999
  for (const r in e)
2990
- if (O(e[r]) || O(t[r])) {
2991
- const i = ce.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
3000
+ if (E(e[r]) || E(t[r])) {
3001
+ const i = ue.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
2992
3002
  s[i] = e[r];
2993
3003
  }
2994
3004
  return s;
2995
3005
  }
2996
- const _o = {
2997
- useVisualState: Is({
2998
- scrapeMotionValuesFromProps: Ds,
2999
- createRenderState: Ps
3006
+ const sa = {
3007
+ useVisualState: Us({
3008
+ scrapeMotionValuesFromProps: Hs,
3009
+ createRenderState: zs
3000
3010
  })
3001
3011
  };
3002
- function Uo(e, t) {
3012
+ function ra(e, t) {
3003
3013
  return function(s, { forwardMotionProps: r } = { forwardMotionProps: !1 }) {
3004
3014
  const o = {
3005
- ...Wt(s) ? _o : zo,
3015
+ ...Ht(s) ? sa : na,
3006
3016
  preloadedFeatures: e,
3007
- useRender: jo(r),
3017
+ useRender: Jo(r),
3008
3018
  createVisualElement: t,
3009
3019
  Component: s
3010
3020
  };
3011
- return So(o);
3021
+ return Lo(o);
3012
3022
  };
3013
3023
  }
3014
- const Ho = /* @__PURE__ */ Uo(), Yo = /* @__PURE__ */ mo(Ho);
3015
- function ye(e, t, n) {
3024
+ const ia = /* @__PURE__ */ ra(), oa = /* @__PURE__ */ Po(ia);
3025
+ function be(e, t, n) {
3016
3026
  const s = e.getProps();
3017
- return Gt(s, t, n !== void 0 ? n : s.custom, e);
3027
+ return Yt(s, t, n !== void 0 ? n : s.custom, e);
3018
3028
  }
3019
- const ht = (e) => Array.isArray(e);
3020
- function Xo(e, t, n) {
3021
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Re(n));
3029
+ const gt = (e) => Array.isArray(e);
3030
+ function aa(e, t, n) {
3031
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Ee(n));
3022
3032
  }
3023
- function qo(e) {
3024
- return ht(e) ? e[e.length - 1] || 0 : e;
3033
+ function la(e) {
3034
+ return gt(e) ? e[e.length - 1] || 0 : e;
3025
3035
  }
3026
- function Zo(e, t) {
3027
- const n = ye(e, t);
3036
+ function ca(e, t) {
3037
+ const n = be(e, t);
3028
3038
  let { transitionEnd: s = {}, transition: r = {}, ...i } = n || {};
3029
3039
  i = { ...i, ...s };
3030
3040
  for (const o in i) {
3031
- const a = qo(i[o]);
3032
- Xo(e, o, a);
3041
+ const a = la(i[o]);
3042
+ aa(e, o, a);
3033
3043
  }
3034
3044
  }
3035
- function Jo(e) {
3036
- return !!(O(e) && e.add);
3045
+ function ua(e) {
3046
+ return !!(E(e) && e.add);
3037
3047
  }
3038
- function Qo(e, t) {
3048
+ function da(e, t) {
3039
3049
  const n = e.getValue("willChange");
3040
- if (Jo(n))
3050
+ if (ua(n))
3041
3051
  return n.add(t);
3042
3052
  if (!n && G.WillChange) {
3043
3053
  const s = new G.WillChange("auto");
3044
3054
  e.addValue("willChange", s), s.add(t);
3045
3055
  }
3046
3056
  }
3047
- function ea(e) {
3048
- return e.props[Vs];
3057
+ function fa(e) {
3058
+ return e.props[Ks];
3049
3059
  }
3050
- const ta = (e) => e !== null;
3051
- function na(e, { repeat: t, repeatType: n = "loop" }, s) {
3052
- const r = e.filter(ta), i = t && n !== "loop" && t % 2 === 1 ? 0 : r.length - 1;
3060
+ const ha = (e) => e !== null;
3061
+ function pa(e, { repeat: t, repeatType: n = "loop" }, s) {
3062
+ const r = e.filter(ha), i = t && n !== "loop" && t % 2 === 1 ? 0 : r.length - 1;
3053
3063
  return r[i];
3054
3064
  }
3055
- const sa = {
3065
+ const ma = {
3056
3066
  type: "spring",
3057
3067
  stiffness: 500,
3058
3068
  damping: 25,
3059
3069
  restSpeed: 10
3060
- }, ra = (e) => ({
3070
+ }, ga = (e) => ({
3061
3071
  type: "spring",
3062
3072
  stiffness: 550,
3063
3073
  damping: e === 0 ? 2 * Math.sqrt(550) : 30,
3064
3074
  restSpeed: 10
3065
- }), ia = {
3075
+ }), ya = {
3066
3076
  type: "keyframes",
3067
3077
  duration: 0.8
3068
- }, oa = {
3078
+ }, ba = {
3069
3079
  type: "keyframes",
3070
3080
  ease: [0.25, 0.1, 0.35, 1],
3071
3081
  duration: 0.3
3072
- }, aa = (e, { keyframes: t }) => t.length > 2 ? ia : ue.has(e) ? e.startsWith("scale") ? ra(t[1]) : sa : oa;
3073
- function la({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: r, repeat: i, repeatType: o, repeatDelay: a, from: c, elapsed: u, ...l }) {
3082
+ }, va = (e, { keyframes: t }) => t.length > 2 ? ya : de.has(e) ? e.startsWith("scale") ? ga(t[1]) : ma : ba;
3083
+ function wa({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: r, repeat: i, repeatType: o, repeatDelay: a, from: c, elapsed: u, ...l }) {
3074
3084
  return !!Object.keys(l).length;
3075
3085
  }
3076
- const ca = (e, t, n, s = {}, r, i) => (o) => {
3077
- const a = ds(s, e) || {}, c = a.delay || s.delay || 0;
3086
+ const xa = (e, t, n, s = {}, r, i) => (o) => {
3087
+ const a = As(s, e) || {}, c = a.delay || s.delay || 0;
3078
3088
  let { elapsed: u = 0 } = s;
3079
3089
  u = u - /* @__PURE__ */ B(c);
3080
3090
  const l = {
@@ -3093,10 +3103,10 @@ const ca = (e, t, n, s = {}, r, i) => (o) => {
3093
3103
  motionValue: t,
3094
3104
  element: i ? void 0 : r
3095
3105
  };
3096
- la(a) || Object.assign(l, aa(e, l)), l.duration && (l.duration = /* @__PURE__ */ B(l.duration)), l.repeatDelay && (l.repeatDelay = /* @__PURE__ */ B(l.repeatDelay)), l.from !== void 0 && (l.keyframes[0] = l.from);
3106
+ wa(a) || Object.assign(l, va(e, l)), l.duration && (l.duration = /* @__PURE__ */ B(l.duration)), l.repeatDelay && (l.repeatDelay = /* @__PURE__ */ B(l.repeatDelay)), l.from !== void 0 && (l.keyframes[0] = l.from);
3097
3107
  let d = !1;
3098
3108
  if ((l.type === !1 || l.duration === 0 && !l.repeatDelay) && (l.duration = 0, l.delay === 0 && (d = !0)), (G.instantAnimations || G.skipAnimations) && (d = !0, l.duration = 0, l.delay = 0), l.allowFlatten = !a.type && !a.ease, d && !i && t.get() !== void 0) {
3099
- const f = na(l.keyframes, a);
3109
+ const f = pa(l.keyframes, a);
3100
3110
  if (f !== void 0) {
3101
3111
  L.update(() => {
3102
3112
  l.onUpdate(f), l.onComplete();
@@ -3104,52 +3114,52 @@ const ca = (e, t, n, s = {}, r, i) => (o) => {
3104
3114
  return;
3105
3115
  }
3106
3116
  }
3107
- return a.isSync ? new Dt(l) : new Ii(l);
3117
+ return a.isSync ? new Nt(l) : new Ui(l);
3108
3118
  };
3109
- function ua({ protectedKeys: e, needsAnimating: t }, n) {
3119
+ function Ta({ protectedKeys: e, needsAnimating: t }, n) {
3110
3120
  const s = e.hasOwnProperty(n) && t[n] !== !0;
3111
3121
  return t[n] = !1, s;
3112
3122
  }
3113
- function Rs(e, t, { delay: n = 0, transitionOverride: s, type: r } = {}) {
3123
+ function Ys(e, t, { delay: n = 0, transitionOverride: s, type: r } = {}) {
3114
3124
  let { transition: i = e.getDefaultTransition(), transitionEnd: o, ...a } = t;
3115
3125
  s && (i = s);
3116
3126
  const c = [], u = r && e.animationState && e.animationState.getState()[r];
3117
3127
  for (const l in a) {
3118
3128
  const d = e.getValue(l, e.latestValues[l] ?? null), f = a[l];
3119
- if (f === void 0 || u && ua(u, l))
3129
+ if (f === void 0 || u && Ta(u, l))
3120
3130
  continue;
3121
3131
  const h = {
3122
3132
  delay: n,
3123
- ...ds(i || {}, l)
3133
+ ...As(i || {}, l)
3124
3134
  }, m = d.get();
3125
3135
  if (m !== void 0 && !d.isAnimating && !Array.isArray(f) && f === m && !h.velocity)
3126
3136
  continue;
3127
3137
  let v = !1;
3128
3138
  if (window.MotionHandoffAnimation) {
3129
- const p = ea(e);
3139
+ const p = fa(e);
3130
3140
  if (p) {
3131
3141
  const S = window.MotionHandoffAnimation(p, l, L);
3132
3142
  S !== null && (h.startTime = S, v = !0);
3133
3143
  }
3134
3144
  }
3135
- Qo(e, l), d.start(ca(l, d, f, e.shouldReduceMotion && fs.has(l) ? { type: !1 } : h, e, v));
3136
- const x = d.animation;
3137
- x && c.push(x);
3145
+ da(e, l), d.start(xa(l, d, f, e.shouldReduceMotion && Ms.has(l) ? { type: !1 } : h, e, v));
3146
+ const T = d.animation;
3147
+ T && c.push(T);
3138
3148
  }
3139
3149
  return o && Promise.all(c).then(() => {
3140
3150
  L.update(() => {
3141
- o && Zo(e, o);
3151
+ o && ca(e, o);
3142
3152
  });
3143
3153
  }), c;
3144
3154
  }
3145
- function pt(e, t, n = {}) {
3155
+ function yt(e, t, n = {}) {
3146
3156
  var c;
3147
- const s = ye(e, t, n.type === "exit" ? (c = e.presenceContext) == null ? void 0 : c.custom : void 0);
3157
+ const s = be(e, t, n.type === "exit" ? (c = e.presenceContext) == null ? void 0 : c.custom : void 0);
3148
3158
  let { transition: r = e.getDefaultTransition() || {} } = s || {};
3149
3159
  n.transitionOverride && (r = n.transitionOverride);
3150
- const i = s ? () => Promise.all(Rs(e, s, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (u = 0) => {
3160
+ const i = s ? () => Promise.all(Ys(e, s, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (u = 0) => {
3151
3161
  const { delayChildren: l = 0, staggerChildren: d, staggerDirection: f } = r;
3152
- return da(e, t, l + u, d, f, n);
3162
+ return Va(e, t, l + u, d, f, n);
3153
3163
  } : () => Promise.resolve(), { when: a } = r;
3154
3164
  if (a) {
3155
3165
  const [u, l] = a === "beforeChildren" ? [i, o] : [o, i];
@@ -3157,35 +3167,35 @@ function pt(e, t, n = {}) {
3157
3167
  } else
3158
3168
  return Promise.all([i(), o(n.delay)]);
3159
3169
  }
3160
- function da(e, t, n = 0, s = 0, r = 1, i) {
3170
+ function Va(e, t, n = 0, s = 0, r = 1, i) {
3161
3171
  const o = [], a = (e.variantChildren.size - 1) * s, c = r === 1 ? (u = 0) => u * s : (u = 0) => a - u * s;
3162
- return Array.from(e.variantChildren).sort(fa).forEach((u, l) => {
3163
- u.notify("AnimationStart", t), o.push(pt(u, t, {
3172
+ return Array.from(e.variantChildren).sort(Sa).forEach((u, l) => {
3173
+ u.notify("AnimationStart", t), o.push(yt(u, t, {
3164
3174
  ...i,
3165
3175
  delay: n + c(l)
3166
3176
  }).then(() => u.notify("AnimationComplete", t)));
3167
3177
  }), Promise.all(o);
3168
3178
  }
3169
- function fa(e, t) {
3179
+ function Sa(e, t) {
3170
3180
  return e.sortNodePosition(t);
3171
3181
  }
3172
- function ha(e, t, n = {}) {
3182
+ function Aa(e, t, n = {}) {
3173
3183
  e.notify("AnimationStart", t);
3174
3184
  let s;
3175
3185
  if (Array.isArray(t)) {
3176
- const r = t.map((i) => pt(e, i, n));
3186
+ const r = t.map((i) => yt(e, i, n));
3177
3187
  s = Promise.all(r);
3178
3188
  } else if (typeof t == "string")
3179
- s = pt(e, t, n);
3189
+ s = yt(e, t, n);
3180
3190
  else {
3181
- const r = typeof t == "function" ? ye(e, t, n.custom) : t;
3182
- s = Promise.all(Rs(e, r, n));
3191
+ const r = typeof t == "function" ? be(e, t, n.custom) : t;
3192
+ s = Promise.all(Ys(e, r, n));
3183
3193
  }
3184
3194
  return s.then(() => {
3185
3195
  e.notify("AnimationComplete", t);
3186
3196
  });
3187
3197
  }
3188
- function Os(e, t) {
3198
+ function Xs(e, t) {
3189
3199
  if (!Array.isArray(t))
3190
3200
  return !1;
3191
3201
  const n = t.length;
@@ -3196,30 +3206,30 @@ function Os(e, t) {
3196
3206
  return !1;
3197
3207
  return !0;
3198
3208
  }
3199
- const pa = Bt.length;
3200
- function Es(e) {
3209
+ const Ma = Gt.length;
3210
+ function qs(e) {
3201
3211
  if (!e)
3202
3212
  return;
3203
3213
  if (!e.isControllingVariants) {
3204
- const n = e.parent ? Es(e.parent) || {} : {};
3214
+ const n = e.parent ? qs(e.parent) || {} : {};
3205
3215
  return e.props.initial !== void 0 && (n.initial = e.props.initial), n;
3206
3216
  }
3207
3217
  const t = {};
3208
- for (let n = 0; n < pa; n++) {
3209
- const s = Bt[n], r = e.props[s];
3210
- (ge(r) || r === !1) && (t[s] = r);
3218
+ for (let n = 0; n < Ma; n++) {
3219
+ const s = Gt[n], r = e.props[s];
3220
+ (ye(r) || r === !1) && (t[s] = r);
3211
3221
  }
3212
3222
  return t;
3213
3223
  }
3214
- const ma = [...Lt].reverse(), ga = Lt.length;
3215
- function ya(e) {
3216
- return (t) => Promise.all(t.map(({ animation: n, options: s }) => ha(e, n, s)));
3224
+ const Ca = [...Wt].reverse(), Pa = Wt.length;
3225
+ function Da(e) {
3226
+ return (t) => Promise.all(t.map(({ animation: n, options: s }) => Aa(e, n, s)));
3217
3227
  }
3218
- function ba(e) {
3219
- let t = ya(e), n = vn(), s = !0;
3228
+ function Ia(e) {
3229
+ let t = Da(e), n = An(), s = !0;
3220
3230
  const r = (c) => (u, l) => {
3221
3231
  var f;
3222
- const d = ye(e, l, c === "exit" ? (f = e.presenceContext) == null ? void 0 : f.custom : void 0);
3232
+ const d = be(e, l, c === "exit" ? (f = e.presenceContext) == null ? void 0 : f.custom : void 0);
3223
3233
  if (d) {
3224
3234
  const { transition: h, transitionEnd: m, ...v } = d;
3225
3235
  u = { ...u, ...v, ...m };
@@ -3230,54 +3240,54 @@ function ba(e) {
3230
3240
  t = c(e);
3231
3241
  }
3232
3242
  function o(c) {
3233
- const { props: u } = e, l = Es(e.parent) || {}, d = [], f = /* @__PURE__ */ new Set();
3243
+ const { props: u } = e, l = qs(e.parent) || {}, d = [], f = /* @__PURE__ */ new Set();
3234
3244
  let h = {}, m = 1 / 0;
3235
- for (let x = 0; x < ga; x++) {
3236
- const p = ma[x], S = n[p], y = u[p] !== void 0 ? u[p] : l[p], A = ge(y), g = p === c ? S.isActive : null;
3237
- g === !1 && (m = x);
3245
+ for (let T = 0; T < Pa; T++) {
3246
+ const p = Ca[T], S = n[p], y = u[p] !== void 0 ? u[p] : l[p], A = ye(y), g = p === c ? S.isActive : null;
3247
+ g === !1 && (m = T);
3238
3248
  let w = y === l[p] && y !== u[p] && A;
3239
3249
  if (w && s && e.manuallyAnimateOnMount && (w = !1), S.protectedKeys = { ...h }, // If it isn't active and hasn't *just* been set as inactive
3240
3250
  !S.isActive && g === null || // If we didn't and don't have any defined prop for this animation type
3241
3251
  !y && !S.prevProp || // Or if the prop doesn't define an animation
3242
3252
  je(y) || typeof y == "boolean")
3243
3253
  continue;
3244
- const M = va(S.prevProp, y);
3245
- let T = M || // If we're making this variant active, we want to always make it active
3254
+ const M = Fa(S.prevProp, y);
3255
+ let x = M || // If we're making this variant active, we want to always make it active
3246
3256
  p === c && S.isActive && !w && A || // If we removed a higher-priority variant (i is in reverse order)
3247
- x > m && A, I = !1;
3257
+ T > m && A, I = !1;
3248
3258
  const R = Array.isArray(y) ? y : [y];
3249
3259
  let z = R.reduce(r(p), {});
3250
3260
  g === !1 && (z = {});
3251
3261
  const { prevResolvedValues: Te = {} } = S, We = {
3252
3262
  ...Te,
3253
3263
  ...z
3254
- }, Ge = (D) => {
3255
- T = !0, f.has(D) && (I = !0, f.delete(D)), S.needsAnimating[D] = !0;
3256
- const K = e.getValue(D);
3264
+ }, Ge = (F) => {
3265
+ x = !0, f.has(F) && (I = !0, f.delete(F)), S.needsAnimating[F] = !0;
3266
+ const K = e.getValue(F);
3257
3267
  K && (K.liveStyle = !1);
3258
3268
  };
3259
- for (const D in We) {
3260
- const K = z[D], _e = Te[D];
3261
- if (h.hasOwnProperty(D))
3269
+ for (const F in We) {
3270
+ const K = z[F], _e = Te[F];
3271
+ if (h.hasOwnProperty(F))
3262
3272
  continue;
3263
3273
  let Ue = !1;
3264
- ht(K) && ht(_e) ? Ue = !Os(K, _e) : Ue = K !== _e, Ue ? K != null ? Ge(D) : f.add(D) : K !== void 0 && f.has(D) ? Ge(D) : S.protectedKeys[D] = !0;
3274
+ gt(K) && gt(_e) ? Ue = !Xs(K, _e) : Ue = K !== _e, Ue ? K != null ? Ge(F) : f.add(F) : K !== void 0 && f.has(F) ? Ge(F) : S.protectedKeys[F] = !0;
3265
3275
  }
3266
- S.prevProp = y, S.prevResolvedValues = z, S.isActive && (h = { ...h, ...z }), s && e.blockInitialAnimation && (T = !1), T && (!(w && M) || I) && d.push(...R.map((D) => ({
3267
- animation: D,
3276
+ S.prevProp = y, S.prevResolvedValues = z, S.isActive && (h = { ...h, ...z }), s && e.blockInitialAnimation && (x = !1), x && (!(w && M) || I) && d.push(...R.map((F) => ({
3277
+ animation: F,
3268
3278
  options: { type: p }
3269
3279
  })));
3270
3280
  }
3271
3281
  if (f.size) {
3272
- const x = {};
3282
+ const T = {};
3273
3283
  if (typeof u.initial != "boolean") {
3274
- const p = ye(e, Array.isArray(u.initial) ? u.initial[0] : u.initial);
3275
- p && p.transition && (x.transition = p.transition);
3284
+ const p = be(e, Array.isArray(u.initial) ? u.initial[0] : u.initial);
3285
+ p && p.transition && (T.transition = p.transition);
3276
3286
  }
3277
3287
  f.forEach((p) => {
3278
3288
  const S = e.getBaseTarget(p), y = e.getValue(p);
3279
- y && (y.liveStyle = !0), x[p] = S ?? null;
3280
- }), d.push({ animation: x });
3289
+ y && (y.liveStyle = !0), T[p] = S ?? null;
3290
+ }), d.push({ animation: T });
3281
3291
  }
3282
3292
  let v = !!d.length;
3283
3293
  return s && (u.initial === !1 || u.initial === u.animate) && !e.manuallyAnimateOnMount && (v = !1), s = !1, v ? t(d) : Promise.resolve();
@@ -3301,14 +3311,14 @@ function ba(e) {
3301
3311
  setAnimateFunction: i,
3302
3312
  getState: () => n,
3303
3313
  reset: () => {
3304
- n = vn(), s = !0;
3314
+ n = An(), s = !0;
3305
3315
  }
3306
3316
  };
3307
3317
  }
3308
- function va(e, t) {
3309
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !Os(t, e) : !1;
3318
+ function Fa(e, t) {
3319
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !Xs(t, e) : !1;
3310
3320
  }
3311
- function U(e = !1) {
3321
+ function H(e = !1) {
3312
3322
  return {
3313
3323
  isActive: e,
3314
3324
  protectedKeys: {},
@@ -3316,32 +3326,32 @@ function U(e = !1) {
3316
3326
  prevResolvedValues: {}
3317
3327
  };
3318
3328
  }
3319
- function vn() {
3329
+ function An() {
3320
3330
  return {
3321
- animate: U(!0),
3322
- whileInView: U(),
3323
- whileHover: U(),
3324
- whileTap: U(),
3325
- whileDrag: U(),
3326
- whileFocus: U(),
3327
- exit: U()
3331
+ animate: H(!0),
3332
+ whileInView: H(),
3333
+ whileHover: H(),
3334
+ whileTap: H(),
3335
+ whileDrag: H(),
3336
+ whileFocus: H(),
3337
+ exit: H()
3328
3338
  };
3329
3339
  }
3330
- class de {
3340
+ class fe {
3331
3341
  constructor(t) {
3332
3342
  this.isMounted = !1, this.node = t;
3333
3343
  }
3334
3344
  update() {
3335
3345
  }
3336
3346
  }
3337
- class wa extends de {
3347
+ class Ra extends fe {
3338
3348
  /**
3339
3349
  * We dynamically generate the AnimationState manager as it contains a reference
3340
3350
  * to the underlying animation library. We only want to load that if we load this,
3341
3351
  * so people can optionally code split it out using the `m` component.
3342
3352
  */
3343
3353
  constructor(t) {
3344
- super(t), t.animationState || (t.animationState = ba(t));
3354
+ super(t), t.animationState || (t.animationState = Ia(t));
3345
3355
  }
3346
3356
  updateAnimationControlsSubscription() {
3347
3357
  const { animate: t } = this.node.getProps();
@@ -3362,10 +3372,10 @@ class wa extends de {
3362
3372
  this.node.animationState.reset(), (t = this.unmountControls) == null || t.call(this);
3363
3373
  }
3364
3374
  }
3365
- let Ta = 0;
3366
- class xa extends de {
3375
+ let Ea = 0;
3376
+ class Oa extends fe {
3367
3377
  constructor() {
3368
- super(...arguments), this.id = Ta++;
3378
+ super(...arguments), this.id = Ea++;
3369
3379
  }
3370
3380
  update() {
3371
3381
  if (!this.node.presenceContext)
@@ -3385,18 +3395,18 @@ class xa extends de {
3385
3395
  unmount() {
3386
3396
  }
3387
3397
  }
3388
- const Va = {
3398
+ const ka = {
3389
3399
  animation: {
3390
- Feature: wa
3400
+ Feature: Ra
3391
3401
  },
3392
3402
  exit: {
3393
- Feature: xa
3403
+ Feature: Oa
3394
3404
  }
3395
3405
  };
3396
- function wn(e, t, n, s = { passive: !0 }) {
3406
+ function Mn(e, t, n, s = { passive: !0 }) {
3397
3407
  return e.addEventListener(t, n, s), () => e.removeEventListener(t, n);
3398
3408
  }
3399
- function ks(e) {
3409
+ function qt(e) {
3400
3410
  return {
3401
3411
  point: {
3402
3412
  x: e.pageX,
@@ -3404,13 +3414,17 @@ function ks(e) {
3404
3414
  }
3405
3415
  };
3406
3416
  }
3407
- function Sa({ top: e, left: t, right: n, bottom: s }) {
3417
+ const xl = (e) => (t) => ks(t) && e(t, qt(t));
3418
+ function Na({ top: e, left: t, right: n, bottom: s }) {
3408
3419
  return {
3409
3420
  x: { min: t, max: n },
3410
3421
  y: { min: e, max: s }
3411
3422
  };
3412
3423
  }
3413
- function Aa(e, t) {
3424
+ function Tl({ x: e, y: t }) {
3425
+ return { top: t.min, right: e.max, bottom: t.max, left: e.min };
3426
+ }
3427
+ function La(e, t) {
3414
3428
  if (!t)
3415
3429
  return e;
3416
3430
  const n = t({ x: e.left, y: e.top }), s = t({ x: e.right, y: e.bottom });
@@ -3421,28 +3435,95 @@ function Aa(e, t) {
3421
3435
  right: s.x
3422
3436
  };
3423
3437
  }
3424
- const Tn = () => ({ min: 0, max: 0 }), Ns = () => ({
3425
- x: Tn(),
3426
- y: Tn()
3438
+ const Cn = () => ({
3439
+ translate: 0,
3440
+ scale: 1,
3441
+ origin: 0,
3442
+ originPoint: 0
3443
+ }), Vl = () => ({
3444
+ x: Cn(),
3445
+ y: Cn()
3446
+ }), Pn = () => ({ min: 0, max: 0 }), Zs = () => ({
3447
+ x: Pn(),
3448
+ y: Pn()
3427
3449
  });
3428
- function Ma(e, t) {
3429
- return Sa(Aa(e.getBoundingClientRect(), t));
3450
+ function Qe(e) {
3451
+ return e === void 0 || e === 1;
3452
+ }
3453
+ function Ba({ scale: e, scaleX: t, scaleY: n }) {
3454
+ return !Qe(e) || !Qe(t) || !Qe(n);
3455
+ }
3456
+ function Ka(e) {
3457
+ return Ba(e) || ja(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
3458
+ }
3459
+ function ja(e) {
3460
+ return Dn(e.x) || Dn(e.y);
3461
+ }
3462
+ function Dn(e) {
3463
+ return e && e !== "0%";
3464
+ }
3465
+ function In(e, t, n) {
3466
+ const s = e - n, r = t * s;
3467
+ return n + r;
3468
+ }
3469
+ function Fn(e, t, n, s, r) {
3470
+ return r !== void 0 && (e = In(e, r, s)), In(e, n, s) + t;
3471
+ }
3472
+ function bt(e, t = 0, n = 1, s, r) {
3473
+ e.min = Fn(e.min, t, n, s, r), e.max = Fn(e.max, t, n, s, r);
3474
+ }
3475
+ function $a(e, { x: t, y: n }) {
3476
+ bt(e.x, t.translate, t.scale, t.originPoint), bt(e.y, n.translate, n.scale, n.originPoint);
3477
+ }
3478
+ const Rn = 0.999999999999, En = 1.0000000000001;
3479
+ function Sl(e, t, n, s = !1) {
3480
+ const r = n.length;
3481
+ if (!r)
3482
+ return;
3483
+ t.x = t.y = 1;
3484
+ let i, o;
3485
+ for (let a = 0; a < r; a++) {
3486
+ i = n[a], o = i.projectionDelta;
3487
+ const { visualElement: c } = i.options;
3488
+ c && c.props.style && c.props.style.display === "contents" || (s && i.options.layoutScroll && i.scroll && i !== i.root && Nn(e, {
3489
+ x: -i.scroll.offset.x,
3490
+ y: -i.scroll.offset.y
3491
+ }), o && (t.x *= o.x.scale, t.y *= o.y.scale, $a(e, o)), s && Ka(i.latestValues) && Nn(e, i.latestValues));
3492
+ }
3493
+ t.x < En && t.x > Rn && (t.x = 1), t.y < En && t.y > Rn && (t.y = 1);
3494
+ }
3495
+ function On(e, t) {
3496
+ e.min = e.min + t, e.max = e.max + t;
3497
+ }
3498
+ function kn(e, t, n, s, r = 0.5) {
3499
+ const i = xe(e.min, e.max, r);
3500
+ bt(e, t, n, i, s);
3501
+ }
3502
+ function Nn(e, t) {
3503
+ kn(e.x, t.x, t.scaleX, t.scale, t.originX), kn(e.y, t.y, t.scaleY, t.scale, t.originY);
3504
+ }
3505
+ function Js(e, t) {
3506
+ return Na(La(e.getBoundingClientRect(), t));
3507
+ }
3508
+ function Al(e, t, n) {
3509
+ const s = Js(e, n), { scroll: r } = t;
3510
+ return r && (On(s.x, r.offset.x), On(s.y, r.offset.y)), s;
3430
3511
  }
3431
- function xn(e, t, n) {
3512
+ function Ln(e, t, n) {
3432
3513
  const { props: s } = e;
3433
3514
  e.animationState && s.whileHover && e.animationState.setActive("whileHover", n === "Start");
3434
3515
  const r = "onHover" + n, i = s[r];
3435
- i && L.postRender(() => i(t, ks(t)));
3516
+ i && L.postRender(() => i(t, qt(t)));
3436
3517
  }
3437
- class Ca extends de {
3518
+ class Wa extends fe {
3438
3519
  mount() {
3439
3520
  const { current: t } = this.node;
3440
- t && (this.unmount = qi(t, (n, s) => (xn(this.node, s, "Start"), (r) => xn(this.node, r, "End"))));
3521
+ t && (this.unmount = uo(t, (n, s) => (Ln(this.node, s, "Start"), (r) => Ln(this.node, r, "End"))));
3441
3522
  }
3442
3523
  unmount() {
3443
3524
  }
3444
3525
  }
3445
- class Pa extends de {
3526
+ class Ga extends fe {
3446
3527
  constructor() {
3447
3528
  super(...arguments), this.isActive = !1;
3448
3529
  }
@@ -3459,50 +3540,50 @@ class Pa extends de {
3459
3540
  !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
3460
3541
  }
3461
3542
  mount() {
3462
- this.unmount = Le(wn(this.node.current, "focus", () => this.onFocus()), wn(this.node.current, "blur", () => this.onBlur()));
3543
+ this.unmount = Be(Mn(this.node.current, "focus", () => this.onFocus()), Mn(this.node.current, "blur", () => this.onBlur()));
3463
3544
  }
3464
3545
  unmount() {
3465
3546
  }
3466
3547
  }
3467
- function Vn(e, t, n) {
3548
+ function Bn(e, t, n) {
3468
3549
  const { props: s } = e;
3469
3550
  if (e.current instanceof HTMLButtonElement && e.current.disabled)
3470
3551
  return;
3471
3552
  e.animationState && s.whileTap && e.animationState.setActive("whileTap", n === "Start");
3472
3553
  const r = "onTap" + (n === "End" ? "" : n), i = s[r];
3473
- i && L.postRender(() => i(t, ks(t)));
3554
+ i && L.postRender(() => i(t, qt(t)));
3474
3555
  }
3475
- class Fa extends de {
3556
+ class za extends fe {
3476
3557
  mount() {
3477
3558
  const { current: t } = this.node;
3478
- t && (this.unmount = to(t, (n, s) => (Vn(this.node, s, "Start"), (r, { success: i }) => Vn(this.node, r, i ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
3559
+ t && (this.unmount = mo(t, (n, s) => (Bn(this.node, s, "Start"), (r, { success: i }) => Bn(this.node, r, i ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
3479
3560
  }
3480
3561
  unmount() {
3481
3562
  }
3482
3563
  }
3483
- const mt = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), Ia = (e) => {
3484
- const t = mt.get(e.target);
3564
+ const vt = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), _a = (e) => {
3565
+ const t = vt.get(e.target);
3485
3566
  t && t(e);
3486
- }, Da = (e) => {
3487
- e.forEach(Ia);
3567
+ }, Ua = (e) => {
3568
+ e.forEach(_a);
3488
3569
  };
3489
- function Ra({ root: e, ...t }) {
3570
+ function Ha({ root: e, ...t }) {
3490
3571
  const n = e || document;
3491
- Qe.has(n) || Qe.set(n, {});
3492
- const s = Qe.get(n), r = JSON.stringify(t);
3493
- return s[r] || (s[r] = new IntersectionObserver(Da, { root: e, ...t })), s[r];
3494
- }
3495
- function Oa(e, t, n) {
3496
- const s = Ra(t);
3497
- return mt.set(e, n), s.observe(e), () => {
3498
- mt.delete(e), s.unobserve(e);
3572
+ et.has(n) || et.set(n, {});
3573
+ const s = et.get(n), r = JSON.stringify(t);
3574
+ return s[r] || (s[r] = new IntersectionObserver(Ua, { root: e, ...t })), s[r];
3575
+ }
3576
+ function Ya(e, t, n) {
3577
+ const s = Ha(t);
3578
+ return vt.set(e, n), s.observe(e), () => {
3579
+ vt.delete(e), s.unobserve(e);
3499
3580
  };
3500
3581
  }
3501
- const Ea = {
3582
+ const Xa = {
3502
3583
  some: 0,
3503
3584
  all: 1
3504
3585
  };
3505
- class ka extends de {
3586
+ class qa extends fe {
3506
3587
  constructor() {
3507
3588
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
3508
3589
  }
@@ -3511,7 +3592,7 @@ class ka extends de {
3511
3592
  const { viewport: t = {} } = this.node.getProps(), { root: n, margin: s, amount: r = "some", once: i } = t, o = {
3512
3593
  root: n ? n.current : void 0,
3513
3594
  rootMargin: s,
3514
- threshold: typeof r == "number" ? r : Ea[r]
3595
+ threshold: typeof r == "number" ? r : Xa[r]
3515
3596
  }, a = (c) => {
3516
3597
  const { isIntersecting: u } = c;
3517
3598
  if (this.isInView === u || (this.isInView = u, i && !u && this.hasEnteredView))
@@ -3520,7 +3601,7 @@ class ka extends de {
3520
3601
  const { onViewportEnter: l, onViewportLeave: d } = this.node.getProps(), f = u ? l : d;
3521
3602
  f && f(c);
3522
3603
  };
3523
- return Oa(this.node.current, o, a);
3604
+ return Ya(this.node.current, o, a);
3524
3605
  }
3525
3606
  mount() {
3526
3607
  this.startObserver();
@@ -3529,58 +3610,58 @@ class ka extends de {
3529
3610
  if (typeof IntersectionObserver > "u")
3530
3611
  return;
3531
3612
  const { props: t, prevProps: n } = this.node;
3532
- ["amount", "margin", "root"].some(Na(t, n)) && this.startObserver();
3613
+ ["amount", "margin", "root"].some(Za(t, n)) && this.startObserver();
3533
3614
  }
3534
3615
  unmount() {
3535
3616
  }
3536
3617
  }
3537
- function Na({ viewport: e = {} }, { viewport: t = {} } = {}) {
3618
+ function Za({ viewport: e = {} }, { viewport: t = {} } = {}) {
3538
3619
  return (n) => e[n] !== t[n];
3539
3620
  }
3540
- const La = {
3621
+ const Ja = {
3541
3622
  inView: {
3542
- Feature: ka
3623
+ Feature: qa
3543
3624
  },
3544
3625
  tap: {
3545
- Feature: Fa
3626
+ Feature: za
3546
3627
  },
3547
3628
  focus: {
3548
- Feature: Pa
3629
+ Feature: Ga
3549
3630
  },
3550
3631
  hover: {
3551
- Feature: Ca
3632
+ Feature: Wa
3552
3633
  }
3553
- }, gt = { current: null }, Ls = { current: !1 };
3554
- function Ba() {
3555
- if (Ls.current = !0, !!vt)
3634
+ }, wt = { current: null }, Qs = { current: !1 };
3635
+ function Qa() {
3636
+ if (Qs.current = !0, !!Vt)
3556
3637
  if (window.matchMedia) {
3557
- const e = window.matchMedia("(prefers-reduced-motion)"), t = () => gt.current = e.matches;
3638
+ const e = window.matchMedia("(prefers-reduced-motion)"), t = () => wt.current = e.matches;
3558
3639
  e.addListener(t), t();
3559
3640
  } else
3560
- gt.current = !1;
3641
+ wt.current = !1;
3561
3642
  }
3562
- const Ka = /* @__PURE__ */ new WeakMap();
3563
- function ja(e, t, n) {
3643
+ const el = /* @__PURE__ */ new WeakMap();
3644
+ function tl(e, t, n) {
3564
3645
  for (const s in t) {
3565
3646
  const r = t[s], i = n[s];
3566
- if (O(r))
3647
+ if (E(r))
3567
3648
  e.addValue(s, r);
3568
- else if (O(i))
3569
- e.addValue(s, Re(r, { owner: e }));
3649
+ else if (E(i))
3650
+ e.addValue(s, Ee(r, { owner: e }));
3570
3651
  else if (i !== r)
3571
3652
  if (e.hasValue(s)) {
3572
3653
  const o = e.getValue(s);
3573
3654
  o.liveStyle === !0 ? o.jump(r) : o.hasAnimated || o.set(r);
3574
3655
  } else {
3575
3656
  const o = e.getStaticValue(s);
3576
- e.addValue(s, Re(o !== void 0 ? o : r, { owner: e }));
3657
+ e.addValue(s, Ee(o !== void 0 ? o : r, { owner: e }));
3577
3658
  }
3578
3659
  }
3579
3660
  for (const s in n)
3580
3661
  t[s] === void 0 && e.removeValue(s);
3581
3662
  return t;
3582
3663
  }
3583
- const Sn = [
3664
+ const Kn = [
3584
3665
  "AnimationStart",
3585
3666
  "AnimationComplete",
3586
3667
  "Update",
@@ -3589,7 +3670,7 @@ const Sn = [
3589
3670
  "LayoutAnimationStart",
3590
3671
  "LayoutAnimationComplete"
3591
3672
  ];
3592
- class $a {
3673
+ class nl {
3593
3674
  /**
3594
3675
  * This method takes React props and returns found MotionValues. For example, HTML
3595
3676
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -3601,25 +3682,25 @@ class $a {
3601
3682
  return {};
3602
3683
  }
3603
3684
  constructor({ parent: t, props: n, presenceContext: s, reducedMotionConfig: r, blockInitialAnimation: i, visualState: o }, a = {}) {
3604
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Rt, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
3685
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Lt, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
3605
3686
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
3606
3687
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
3607
3688
  const f = k.now();
3608
3689
  this.renderScheduledAt < f && (this.renderScheduledAt = f, L.render(this.render, !1, !0));
3609
3690
  };
3610
3691
  const { latestValues: c, renderState: u } = o;
3611
- 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 = r, this.options = a, this.blockInitialAnimation = !!i, this.isControllingVariants = $e(n), this.isVariantNode = Ts(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
3692
+ 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 = r, this.options = a, this.blockInitialAnimation = !!i, this.isControllingVariants = $e(n), this.isVariantNode = Ls(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
3612
3693
  const { willChange: l, ...d } = this.scrapeMotionValuesFromProps(n, {}, this);
3613
3694
  for (const f in d) {
3614
3695
  const h = d[f];
3615
- c[f] !== void 0 && O(h) && h.set(c[f], !1);
3696
+ c[f] !== void 0 && E(h) && h.set(c[f], !1);
3616
3697
  }
3617
3698
  }
3618
3699
  mount(t) {
3619
- this.current = t, Ka.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), Ls.current || Ba(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : gt.current, process.env.NODE_ENV !== "production" && Tt(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
3700
+ this.current = t, el.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), Qs.current || Qa(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : wt.current, process.env.NODE_ENV !== "production" && At(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
3620
3701
  }
3621
3702
  unmount() {
3622
- this.projection && this.projection.unmount(), et(this.notifyUpdate), et(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
3703
+ this.projection && this.projection.unmount(), tt(this.notifyUpdate), tt(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
3623
3704
  for (const t in this.events)
3624
3705
  this.events[t].clear();
3625
3706
  for (const t in this.features) {
@@ -3630,7 +3711,7 @@ class $a {
3630
3711
  }
3631
3712
  bindToMotionValue(t, n) {
3632
3713
  this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)();
3633
- const s = ue.has(t);
3714
+ const s = de.has(t);
3634
3715
  s && this.onBindTransform && this.onBindTransform();
3635
3716
  const r = n.on("change", (a) => {
3636
3717
  this.latestValues[t] = a, this.props.onUpdate && L.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0);
@@ -3665,7 +3746,7 @@ class $a {
3665
3746
  * removed with a re-render to work.
3666
3747
  */
3667
3748
  measureViewportBox() {
3668
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Ns();
3749
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Zs();
3669
3750
  }
3670
3751
  getStaticValue(t) {
3671
3752
  return this.latestValues[t];
@@ -3679,13 +3760,13 @@ class $a {
3679
3760
  */
3680
3761
  update(t, n) {
3681
3762
  (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
3682
- for (let s = 0; s < Sn.length; s++) {
3683
- const r = Sn[s];
3763
+ for (let s = 0; s < Kn.length; s++) {
3764
+ const r = Kn[s];
3684
3765
  this.propEventSubscriptions[r] && (this.propEventSubscriptions[r](), delete this.propEventSubscriptions[r]);
3685
3766
  const i = "on" + r, o = t[i];
3686
3767
  o && (this.propEventSubscriptions[r] = this.on(r, o));
3687
3768
  }
3688
- this.prevMotionValues = ja(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
3769
+ this.prevMotionValues = tl(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
3689
3770
  }
3690
3771
  getProps() {
3691
3772
  return this.props;
@@ -3741,7 +3822,7 @@ class $a {
3741
3822
  if (this.props.values && this.props.values[t])
3742
3823
  return this.props.values[t];
3743
3824
  let s = this.values.get(t);
3744
- return s === void 0 && n !== void 0 && (s = Re(n === null ? void 0 : n, { owner: this }), this.addValue(t, s)), s;
3825
+ return s === void 0 && n !== void 0 && (s = Ee(n === null ? void 0 : n, { owner: this }), this.addValue(t, s)), s;
3745
3826
  }
3746
3827
  /**
3747
3828
  * If we're trying to animate to a previously unencountered value,
@@ -3750,7 +3831,7 @@ class $a {
3750
3831
  */
3751
3832
  readValue(t, n) {
3752
3833
  let s = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
3753
- return s != null && (typeof s == "string" && (Dn(s) || Rn(s)) ? s = parseFloat(s) : !so(s) && le.test(n) && (s = gs(t, n)), this.setBaseTarget(t, O(s) ? s.get() : s)), O(s) ? s.get() : s;
3834
+ return s != null && (typeof s == "string" && (Un(s) || Hn(s)) ? s = parseFloat(s) : !yo(s) && ce.test(n) && (s = Is(t, n)), this.setBaseTarget(t, E(s) ? s.get() : s)), E(s) ? s.get() : s;
3754
3835
  }
3755
3836
  /**
3756
3837
  * Set the base target to later animate back to. This is currently
@@ -3768,24 +3849,24 @@ class $a {
3768
3849
  const { initial: n } = this.props;
3769
3850
  let s;
3770
3851
  if (typeof n == "string" || typeof n == "object") {
3771
- const o = Gt(this.props, n, (i = this.presenceContext) == null ? void 0 : i.custom);
3852
+ const o = Yt(this.props, n, (i = this.presenceContext) == null ? void 0 : i.custom);
3772
3853
  o && (s = o[t]);
3773
3854
  }
3774
3855
  if (n && s !== void 0)
3775
3856
  return s;
3776
3857
  const r = this.getBaseTargetFromProps(this.props, t);
3777
- return r !== void 0 && !O(r) ? r : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
3858
+ return r !== void 0 && !E(r) ? r : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
3778
3859
  }
3779
3860
  on(t, n) {
3780
- return this.events[t] || (this.events[t] = new En()), this.events[t].add(n);
3861
+ return this.events[t] || (this.events[t] = new Xn()), this.events[t].add(n);
3781
3862
  }
3782
3863
  notify(t, ...n) {
3783
3864
  this.events[t] && this.events[t].notify(...n);
3784
3865
  }
3785
3866
  }
3786
- class Bs extends $a {
3867
+ class er extends nl {
3787
3868
  constructor() {
3788
- super(...arguments), this.KeyframeResolver = Gi;
3869
+ super(...arguments), this.KeyframeResolver = io;
3789
3870
  }
3790
3871
  sortInstanceNodePosition(t, n) {
3791
3872
  return t.compareDocumentPosition(n) & 2 ? 1 : -1;
@@ -3799,43 +3880,43 @@ class Bs extends $a {
3799
3880
  handleChildMotionValue() {
3800
3881
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
3801
3882
  const { children: t } = this.props;
3802
- O(t) && (this.childSubscription = t.on("change", (n) => {
3883
+ E(t) && (this.childSubscription = t.on("change", (n) => {
3803
3884
  this.current && (this.current.textContent = `${n}`);
3804
3885
  }));
3805
3886
  }
3806
3887
  }
3807
- function Ks(e, { style: t, vars: n }, s, r) {
3888
+ function tr(e, { style: t, vars: n }, s, r) {
3808
3889
  Object.assign(e.style, t, r && r.getProjectionStyles(s));
3809
3890
  for (const i in n)
3810
3891
  e.style.setProperty(i, n[i]);
3811
3892
  }
3812
- function Wa(e) {
3893
+ function sl(e) {
3813
3894
  return window.getComputedStyle(e);
3814
3895
  }
3815
- class Ga extends Bs {
3896
+ class rl extends er {
3816
3897
  constructor() {
3817
- super(...arguments), this.type = "html", this.renderInstance = Ks;
3898
+ super(...arguments), this.type = "html", this.renderInstance = tr;
3818
3899
  }
3819
3900
  readValueFromInstance(t, n) {
3820
3901
  var s;
3821
- if (ue.has(n))
3822
- return (s = this.projection) != null && s.isProjecting ? at(n) : ai(t, n);
3902
+ if (de.has(n))
3903
+ return (s = this.projection) != null && s.isProjecting ? lt(n) : Vi(t, n);
3823
3904
  {
3824
- const r = Wa(t), i = (Hn(n) ? r.getPropertyValue(n) : r[n]) || 0;
3905
+ const r = sl(t), i = (Pt(n) ? r.getPropertyValue(n) : r[n]) || 0;
3825
3906
  return typeof i == "string" ? i.trim() : i;
3826
3907
  }
3827
3908
  }
3828
3909
  measureInstanceViewportBox(t, { transformPagePoint: n }) {
3829
- return Ma(t, n);
3910
+ return Js(t, n);
3830
3911
  }
3831
3912
  build(t, n, s) {
3832
- jt(t, n, s.transformTemplate);
3913
+ _t(t, n, s.transformTemplate);
3833
3914
  }
3834
3915
  scrapeMotionValuesFromProps(t, n, s) {
3835
- return zt(t, n, s);
3916
+ return Xt(t, n, s);
3836
3917
  }
3837
3918
  }
3838
- const js = /* @__PURE__ */ new Set([
3919
+ const nr = /* @__PURE__ */ new Set([
3839
3920
  "baseFrequency",
3840
3921
  "diffuseConstant",
3841
3922
  "kernelMatrix",
@@ -3860,50 +3941,50 @@ const js = /* @__PURE__ */ new Set([
3860
3941
  "textLength",
3861
3942
  "lengthAdjust"
3862
3943
  ]);
3863
- function za(e, t, n, s) {
3864
- Ks(e, t, void 0, s);
3944
+ function il(e, t, n, s) {
3945
+ tr(e, t, void 0, s);
3865
3946
  for (const r in t.attrs)
3866
- e.setAttribute(js.has(r) ? r : Kt(r), t.attrs[r]);
3947
+ e.setAttribute(nr.has(r) ? r : zt(r), t.attrs[r]);
3867
3948
  }
3868
- class _a extends Bs {
3949
+ class ol extends er {
3869
3950
  constructor() {
3870
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Ns;
3951
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Zs;
3871
3952
  }
3872
3953
  getBaseTargetFromProps(t, n) {
3873
3954
  return t[n];
3874
3955
  }
3875
3956
  readValueFromInstance(t, n) {
3876
- if (ue.has(n)) {
3877
- const s = ms(n);
3957
+ if (de.has(n)) {
3958
+ const s = Ds(n);
3878
3959
  return s && s.default || 0;
3879
3960
  }
3880
- return n = js.has(n) ? n : Kt(n), t.getAttribute(n);
3961
+ return n = nr.has(n) ? n : zt(n), t.getAttribute(n);
3881
3962
  }
3882
3963
  scrapeMotionValuesFromProps(t, n, s) {
3883
- return Ds(t, n, s);
3964
+ return Hs(t, n, s);
3884
3965
  }
3885
3966
  build(t, n, s) {
3886
- Cs(t, n, this.isSVGTag, s.transformTemplate, s.style);
3967
+ Gs(t, n, this.isSVGTag, s.transformTemplate, s.style);
3887
3968
  }
3888
3969
  renderInstance(t, n, s, r) {
3889
- za(t, n, s, r);
3970
+ il(t, n, s, r);
3890
3971
  }
3891
3972
  mount(t) {
3892
- this.isSVGTag = Fs(t.tagName), super.mount(t);
3973
+ this.isSVGTag = _s(t.tagName), super.mount(t);
3893
3974
  }
3894
3975
  }
3895
- const Ua = (e, t) => Wt(e) ? new _a(t) : new Ga(t, {
3896
- allowProjection: e !== Pn
3897
- }), Ha = {
3898
- renderer: Ua,
3899
- ...Va,
3900
- ...La
3901
- }, $s = (e) => {
3976
+ const al = (e, t) => Ht(e) ? new ol(t) : new rl(t, {
3977
+ allowProjection: e !== Gn
3978
+ }), ll = {
3979
+ renderer: al,
3980
+ ...ka,
3981
+ ...Ja
3982
+ }, sr = (e) => {
3902
3983
  const { ripples: t = [], motionProps: n, color: s = "currentColor", style: r, onClear: i } = e;
3903
3984
  return /* @__PURE__ */ P.jsx(P.Fragment, { children: t.map((o) => {
3904
- const a = Zs(0.01 * o.size, 0.2, o.size > 100 ? 0.75 : 0.5);
3905
- return /* @__PURE__ */ P.jsx(uo, { features: Ha, children: /* @__PURE__ */ P.jsx(co, { mode: "popLayout", children: /* @__PURE__ */ P.jsx(
3906
- Yo.span,
3985
+ const a = hr(0.01 * o.size, 0.2, o.size > 100 ? 0.75 : 0.5);
3986
+ return /* @__PURE__ */ P.jsx(So, { features: ll, children: /* @__PURE__ */ P.jsx(Vo, { mode: "popLayout", children: /* @__PURE__ */ P.jsx(
3987
+ oa.span,
3907
3988
  {
3908
3989
  animate: { transform: "scale(2)", opacity: 0 },
3909
3990
  className: "ripple-item-span",
@@ -3933,11 +4014,11 @@ const Ua = (e, t) => Wt(e) ? new _a(t) : new Ga(t, {
3933
4014
  ) }) }, o.key);
3934
4015
  }) });
3935
4016
  };
3936
- $s.displayName = "LizaUI.Ripple";
3937
- const Ya = () => /* @__PURE__ */ P.jsx("div", { "aria-label": "Loading", className: "relative inline-flex flex-col gap-2 items-center justify-center", children: /* @__PURE__ */ P.jsxs("div", { className: "relative flex w-5 h-5", children: [
4017
+ sr.displayName = "LizaUI.Ripple";
4018
+ const cl = () => /* @__PURE__ */ P.jsx("div", { "aria-label": "Loading", className: "relative inline-flex flex-col gap-2 items-center justify-center", children: /* @__PURE__ */ P.jsxs("div", { className: "relative flex w-5 h-5", children: [
3938
4019
  /* @__PURE__ */ P.jsx("i", { className: "absolute w-full h-full rounded-full border-2 border-b-current animate-spinner-ease-spin border-solid border-t-transparent border-l-transparent border-r-transparent" }),
3939
4020
  /* @__PURE__ */ P.jsx("i", { className: "absolute w-full h-full rounded-full border-2 border-b-current opacity-75 animate-spinner-linear-spin border-dotted border-t-transparent border-l-transparent border-r-transparent" })
3940
- ] }) }), Xa = Cn((e, t) => {
4021
+ ] }) }), ul = Wn((e, t) => {
3941
4022
  const {
3942
4023
  Component: n,
3943
4024
  domRef: s,
@@ -3950,23 +4031,82 @@ const Ya = () => /* @__PURE__ */ P.jsx("div", { "aria-label": "Loading", classNa
3950
4031
  endContent: l,
3951
4032
  getButtonProps: d,
3952
4033
  getRippleProps: f
3953
- } = tr({
4034
+ } = yr({
3954
4035
  ...e,
3955
4036
  ref: t
3956
- }), h = W(() => /* @__PURE__ */ P.jsx(Ya, {}), []), m = a ?? h;
4037
+ }), h = W(() => /* @__PURE__ */ P.jsx(cl, {}), []), m = a ?? h;
3957
4038
  return /* @__PURE__ */ P.jsxs(n, { ...d(), ref: s, children: [
3958
4039
  u,
3959
4040
  o && c === "start" && m,
3960
4041
  o && i ? null : r,
3961
4042
  o && c === "end" && m,
3962
4043
  l,
3963
- /* @__PURE__ */ P.jsx($s, { ...f() })
4044
+ /* @__PURE__ */ P.jsx(sr, { ...f() })
3964
4045
  ] });
3965
4046
  });
3966
- Xa.displayName = "Custom.Button";
4047
+ ul.displayName = "Custom.Button";
3967
4048
  export {
3968
- co as A,
3969
- Xa as B,
3970
- Qs as b
4049
+ Qo as $,
4050
+ b as A,
4051
+ ul as B,
4052
+ ce as C,
4053
+ To as D,
4054
+ wl as E,
4055
+ fe as F,
4056
+ co as G,
4057
+ E as H,
4058
+ Ee as I,
4059
+ br as J,
4060
+ vr as K,
4061
+ zn as L,
4062
+ k as M,
4063
+ Ar as N,
4064
+ In as O,
4065
+ Xn as P,
4066
+ As as Q,
4067
+ vl as R,
4068
+ Oo as S,
4069
+ Ka as T,
4070
+ On as U,
4071
+ Nn as V,
4072
+ Ba as W,
4073
+ $a as X,
4074
+ ja as Y,
4075
+ Sl as Z,
4076
+ Vl as _,
4077
+ wr as a,
4078
+ mt as a0,
4079
+ fa as a1,
4080
+ ra as a2,
4081
+ al as a3,
4082
+ Ja as a4,
4083
+ ka as a5,
4084
+ Po as a6,
4085
+ Vo as a7,
4086
+ mr as b,
4087
+ Mn as c,
4088
+ xl as d,
4089
+ L as e,
4090
+ De as f,
4091
+ ks as g,
4092
+ qt as h,
4093
+ yn as i,
4094
+ tt as j,
4095
+ $ as k,
4096
+ Yn as l,
4097
+ xe as m,
4098
+ J as n,
4099
+ Zs as o,
4100
+ Be as p,
4101
+ Bs as q,
4102
+ U as r,
4103
+ B as s,
4104
+ Al as t,
4105
+ Tl as u,
4106
+ Na as v,
4107
+ da as w,
4108
+ xa as x,
4109
+ ne as y,
4110
+ ae as z
3971
4111
  };
3972
- //# sourceMappingURL=button-BFiQhp-f.js.map
4112
+ //# sourceMappingURL=button-DY6HAc8R.js.map