@acrool/react-picker 0.0.11-alpha.1 → 0.0.12-alpha.0

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,5 +1,5 @@
1
1
  import * as Ln from "react";
2
- import Fn, { createContext as kt, useContext as G, useLayoutEffect as tr, useEffect as ct, useRef as it, useInsertionEffect as er, useCallback as at, useMemo as Mt, forwardRef as Me, Fragment as nr, createElement as oa, useId as On, Component as aa, Children as la, isValidElement as ca, useState as _t } from "react";
2
+ import Fn, { createContext as kt, useContext as G, useCallback as at, useEffect as ct, useLayoutEffect as tr, useRef as it, useInsertionEffect as er, useMemo as Mt, forwardRef as Me, Fragment as nr, createElement as oa, useId as On, Component as aa, Children as la, isValidElement as ca, useState as _t } from "react";
3
3
  import ua from "react-dom";
4
4
  var st = /* @__PURE__ */ ((t) => (t.bottom = "bottom", t.top = "top", t))(st || {}), gt = /* @__PURE__ */ ((t) => (t.left = "left", t.right = "right", t))(gt || {});
5
5
  const fe = [
@@ -346,8 +346,8 @@ function va() {
346
346
  } finally {
347
347
  Xe = !1, ze.current = L, Fo(), Error.prepareStackTrace = D;
348
348
  }
349
- var jt = h ? h.displayName || h.name : "", At = jt ? ve(jt) : "";
350
- return typeof h == "function" && Pe.set(h, At), At;
349
+ var jt = h ? h.displayName || h.name : "", St = jt ? ve(jt) : "";
350
+ return typeof h == "function" && Pe.set(h, St), St;
351
351
  }
352
352
  function jo(h, g, b) {
353
353
  return vi(h, !1);
@@ -681,17 +681,17 @@ Check the top-level render call using <` + b + ">.");
681
681
  Vi(tt, h);
682
682
  }
683
683
  if (Yt.call(g, "key")) {
684
- var At = J(h), q = Object.keys(g).filter(function(ra) {
684
+ var St = J(h), q = Object.keys(g).filter(function(ra) {
685
685
  return ra !== "key";
686
686
  }), en = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
687
- if (!Di[At + en]) {
687
+ if (!Di[St + en]) {
688
688
  var sa = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
689
689
  y(`A props object containing a "key" prop is being spread into JSX:
690
690
  let props = %s;
691
691
  <%s {...props} />
692
692
  React keys must be passed directly to JSX without using spread:
693
693
  let props = %s;
694
- <%s key={someKey} {...props} />`, en, At, sa, At), Di[At + en] = !0;
694
+ <%s key={someKey} {...props} />`, en, St, sa, St), Di[St + en] = !0;
695
695
  }
696
696
  }
697
697
  return h === i ? Qo(W) : Jo(W), W;
@@ -708,8 +708,45 @@ React keys must be passed directly to JSX without using spread:
708
708
  }()), Zt;
709
709
  }
710
710
  process.env.NODE_ENV === "production" ? yn.exports = ya() : yn.exports = va();
711
- var O = yn.exports, Pa = Object.defineProperty, Ta = (t, e, n) => e in t ? Pa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, vn = (t, e, n) => (Ta(t, typeof e != "symbol" ? e + "" : e, n), n);
712
- class ir extends Fn.Component {
711
+ var O = yn.exports, Ct = /* @__PURE__ */ ((t) => (t.Escape = "Escape", t.Enter = "Enter", t.Space = "Space", t.Tab = "Tab", t.ShiftAndTab = "Shift+Tab", t.ArrowUp = "ArrowUp", t.ArrowDown = "ArrowDown", t.ArrowLeft = "ArrowLeft", t.ArrowRight = "ArrowRight", t))(Ct || {}), Ce = /* @__PURE__ */ ((t) => (t.Input = "INPUT", t.Textarea = "TEXTAREA", t.Select = "SELECT", t.Button = "BUTTON", t))(Ce || {});
712
+ const ir = [
713
+ Ce.Input,
714
+ Ce.Textarea,
715
+ Ce.Select
716
+ ], Pa = (t) => (t == null ? void 0 : t.split("+").map((e) => e.trim().toLowerCase())) ?? [], Ta = (t) => ({
717
+ formFieldTags: (t == null ? void 0 : t.formFieldTags) ?? ir,
718
+ ignoreFormField: (t == null ? void 0 : t.ignoreFormField) ?? !0,
719
+ preventDefault: (t == null ? void 0 : t.preventDefault) ?? !0,
720
+ stopPropagation: (t == null ? void 0 : t.stopPropagation) ?? !0
721
+ }), ba = (t, e, n) => (i) => {
722
+ const s = Array.isArray(t) ? t : [t];
723
+ for (const o of s) {
724
+ const r = Ta(n), a = Pa(o), l = i.key.toLowerCase(), c = i.code.toLowerCase(), u = document.activeElement;
725
+ if (i.repeat)
726
+ continue;
727
+ const f = a.includes("ctrl"), d = a.includes("cmd"), p = a.includes("shift"), m = f === i.ctrlKey, v = d === i.metaKey, x = p === i.shiftKey;
728
+ if (!(!(a.includes(l) || a.includes(c)) || !m || !v || !x) && !(!r.ignoreFormField && u && ir.includes(u.tagName)) && (r.preventDefault && i.preventDefault(), r.stopPropagation && i.stopPropagation(), !!e)) {
729
+ e(i);
730
+ break;
731
+ }
732
+ }
733
+ }, Fi = ({
734
+ onKeyDown: t,
735
+ hotKey: e,
736
+ stopPropagation: n = !0,
737
+ preventDefault: i = !0,
738
+ ignoreFormField: s = !1,
739
+ formFieldTags: o
740
+ }) => {
741
+ const r = at((a) => {
742
+ t && ba(e, t, { stopPropagation: n, preventDefault: i, ignoreFormField: s, formFieldTags: o })(a);
743
+ }, [e, t]);
744
+ return ct(() => (document.addEventListener("keydown", r), () => {
745
+ document.removeEventListener("keydown", r);
746
+ }), [r]), null;
747
+ };
748
+ var xa = Object.defineProperty, wa = (t, e, n) => e in t ? xa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, vn = (t, e, n) => (wa(t, typeof e != "symbol" ? e + "" : e, n), n);
749
+ class sr extends Fn.Component {
713
750
  constructor(e) {
714
751
  super(e), vn(this, "_el"), vn(this, "renderPortal", () => ua.createPortal(
715
752
  this.props.children,
@@ -733,18 +770,18 @@ class ir extends Fn.Component {
733
770
  return this.renderPortal();
734
771
  }
735
772
  }
736
- vn(ir, "defaultProps", {
773
+ vn(sr, "defaultProps", {
737
774
  containerSelector: () => document.body
738
775
  });
739
776
  const _n = kt({
740
777
  transformPagePoint: (t) => t,
741
778
  isStatic: !1,
742
779
  reducedMotion: "never"
743
- }), Be = kt({}), Ie = kt(null), Bn = typeof window < "u", sr = Bn ? tr : ct, rr = kt({ strict: !1 }), Ne = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), ba = "framerAppearId", or = "data-" + Ne(ba), xa = {
780
+ }), Be = kt({}), Ie = kt(null), Bn = typeof window < "u", rr = Bn ? tr : ct, or = kt({ strict: !1 }), Ne = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Sa = "framerAppearId", ar = "data-" + Ne(Sa), Aa = {
744
781
  skipAnimations: !1,
745
782
  useManualTiming: !1
746
783
  };
747
- function wa(t) {
784
+ function Ca(t) {
748
785
  let e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = !1, s = !1;
749
786
  const o = /* @__PURE__ */ new WeakSet();
750
787
  let r = {
@@ -795,16 +832,16 @@ const xe = [
795
832
  // Write
796
833
  "postRender"
797
834
  // Compute
798
- ], Sa = 40;
799
- function ar(t, e) {
835
+ ], Ra = 40;
836
+ function lr(t, e) {
800
837
  let n = !1, i = !0;
801
838
  const s = {
802
839
  delta: 0,
803
840
  timestamp: 0,
804
841
  isProcessing: !1
805
- }, o = () => n = !0, r = xe.reduce((P, y) => (P[y] = wa(o), P), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = r, p = () => {
842
+ }, o = () => n = !0, r = xe.reduce((P, y) => (P[y] = Ca(o), P), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = r, p = () => {
806
843
  const P = performance.now();
807
- n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(P - s.timestamp, Sa), 1), s.timestamp = P, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), f.process(s), d.process(s), s.isProcessing = !1, n && e && (i = !1, t(p));
844
+ n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(P - s.timestamp, Ra), 1), s.timestamp = P, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), f.process(s), d.process(s), s.isProcessing = !1, n && e && (i = !1, t(p));
808
845
  }, m = () => {
809
846
  n = !0, i = !0, s.isProcessing || t(p);
810
847
  };
@@ -816,14 +853,14 @@ function ar(t, e) {
816
853
  r[xe[y]].cancel(P);
817
854
  }, state: s, steps: r };
818
855
  }
819
- const { schedule: In, cancel: gh } = ar(queueMicrotask, !1);
856
+ const { schedule: In, cancel: gh } = lr(queueMicrotask, !1);
820
857
  function Bt(t) {
821
858
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
822
859
  }
823
- const lr = kt({});
824
- let Fi = !1;
825
- function Aa(t, e, n, i, s) {
826
- const { visualElement: o } = G(Be), r = G(rr), a = G(Ie), l = G(_n).reducedMotion, c = it();
860
+ const cr = kt({});
861
+ let Oi = !1;
862
+ function Ea(t, e, n, i, s) {
863
+ const { visualElement: o } = G(Be), r = G(or), a = G(Ie), l = G(_n).reducedMotion, c = it();
827
864
  i = i || r.renderer, !c.current && i && (c.current = i(t, {
828
865
  visualState: e,
829
866
  parent: o,
@@ -832,23 +869,23 @@ function Aa(t, e, n, i, s) {
832
869
  blockInitialAnimation: a ? a.initial === !1 : !1,
833
870
  reducedMotionConfig: l
834
871
  }));
835
- const u = c.current, f = G(lr);
836
- u && !u.projection && s && (u.type === "html" || u.type === "svg") && Ra(c.current, n, s, f), er(() => {
872
+ const u = c.current, f = G(cr);
873
+ u && !u.projection && s && (u.type === "html" || u.type === "svg") && Da(c.current, n, s, f), er(() => {
837
874
  u && u.update(n, a);
838
875
  });
839
- const d = it(!!(n[or] && !window.HandoffComplete));
840
- return sr(() => {
876
+ const d = it(!!(n[ar] && !window.HandoffComplete));
877
+ return rr(() => {
841
878
  u && (u.updateFeatures(), In.render(u.render), d.current && u.animationState && u.animationState.animateChanges());
842
879
  }), ct(() => {
843
- u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1, Fi || (Fi = !0, queueMicrotask(Ca))));
880
+ u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1, Oi || (Oi = !0, queueMicrotask(Va))));
844
881
  }), u;
845
882
  }
846
- function Ca() {
883
+ function Va() {
847
884
  window.HandoffComplete = !0;
848
885
  }
849
- function Ra(t, e, n, i) {
886
+ function Da(t, e, n, i) {
850
887
  const { layoutId: s, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: c } = e;
851
- t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : cr(t.parent)), t.projection.setOptions({
888
+ t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : ur(t.parent)), t.projection.setOptions({
852
889
  layoutId: s,
853
890
  layout: o,
854
891
  alwaysMeasureLayout: !!r || a && Bt(a),
@@ -866,11 +903,11 @@ function Ra(t, e, n, i) {
866
903
  layoutRoot: c
867
904
  });
868
905
  }
869
- function cr(t) {
906
+ function ur(t) {
870
907
  if (t)
871
- return t.options.allowProjection !== !1 ? t.projection : cr(t.parent);
908
+ return t.options.allowProjection !== !1 ? t.projection : ur(t.parent);
872
909
  }
873
- function Ea(t, e, n) {
910
+ function Ma(t, e, n) {
874
911
  return at(
875
912
  (i) => {
876
913
  i && t.mount && t.mount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) : Bt(n) && (n.current = i));
@@ -901,10 +938,10 @@ const Nn = [
901
938
  function Ue(t) {
902
939
  return ae(t.animate) || Un.some((e) => oe(t[e]));
903
940
  }
904
- function ur(t) {
941
+ function fr(t) {
905
942
  return !!(Ue(t) || t.variants);
906
943
  }
907
- function Va(t, e) {
944
+ function ka(t, e) {
908
945
  if (Ue(t)) {
909
946
  const { initial: n, animate: i } = t;
910
947
  return {
@@ -914,14 +951,14 @@ function Va(t, e) {
914
951
  }
915
952
  return t.inherit !== !1 ? e : {};
916
953
  }
917
- function Da(t) {
918
- const { initial: e, animate: n } = Va(t, G(Be));
919
- return Mt(() => ({ initial: e, animate: n }), [Oi(e), Oi(n)]);
954
+ function La(t) {
955
+ const { initial: e, animate: n } = ka(t, G(Be));
956
+ return Mt(() => ({ initial: e, animate: n }), [ji(e), ji(n)]);
920
957
  }
921
- function Oi(t) {
958
+ function ji(t) {
922
959
  return Array.isArray(t) ? t.join(" ") : t;
923
960
  }
924
- const ji = {
961
+ const _i = {
925
962
  animation: [
926
963
  "animate",
927
964
  "variants",
@@ -941,18 +978,18 @@ const ji = {
941
978
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
942
979
  layout: ["layout", "layoutId"]
943
980
  }, $t = {};
944
- for (const t in ji)
981
+ for (const t in _i)
945
982
  $t[t] = {
946
- isEnabled: (e) => ji[t].some((n) => !!e[n])
983
+ isEnabled: (e) => _i[t].some((n) => !!e[n])
947
984
  };
948
- function Ma(t) {
985
+ function Fa(t) {
949
986
  for (const e in t)
950
987
  $t[e] = {
951
988
  ...$t[e],
952
989
  ...t[e]
953
990
  };
954
991
  }
955
- const Wn = kt({}), ka = Symbol.for("motionComponentSymbol"), H = (t) => t;
992
+ const Wn = kt({}), Oa = Symbol.for("motionComponentSymbol"), H = (t) => t;
956
993
  let Gt = H, pt = H;
957
994
  process.env.NODE_ENV !== "production" && (Gt = (t, e) => {
958
995
  !t && typeof console < "u" && console.warn(e);
@@ -960,37 +997,37 @@ process.env.NODE_ENV !== "production" && (Gt = (t, e) => {
960
997
  if (!t)
961
998
  throw new Error(e);
962
999
  });
963
- function La({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: i, Component: s }) {
964
- t && Ma(t);
1000
+ function ja({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: i, Component: s }) {
1001
+ t && Fa(t);
965
1002
  function o(a, l) {
966
1003
  let c;
967
1004
  const u = {
968
1005
  ...G(_n),
969
1006
  ...a,
970
- layoutId: Fa(a)
971
- }, { isStatic: f } = u, d = Da(a), p = i(a, f);
1007
+ layoutId: _a(a)
1008
+ }, { isStatic: f } = u, d = La(a), p = i(a, f);
972
1009
  if (!f && Bn) {
973
- Oa(u, t);
974
- const m = ja(u);
975
- c = m.MeasureLayout, d.visualElement = Aa(s, p, u, e, m.ProjectionNode);
1010
+ Ba(u, t);
1011
+ const m = Ia(u);
1012
+ c = m.MeasureLayout, d.visualElement = Ea(s, p, u, e, m.ProjectionNode);
976
1013
  }
977
- return O.jsxs(Be.Provider, { value: d, children: [c && d.visualElement ? O.jsx(c, { visualElement: d.visualElement, ...u }) : null, n(s, a, Ea(p, d.visualElement, l), p, f, d.visualElement)] });
1014
+ return O.jsxs(Be.Provider, { value: d, children: [c && d.visualElement ? O.jsx(c, { visualElement: d.visualElement, ...u }) : null, n(s, a, Ma(p, d.visualElement, l), p, f, d.visualElement)] });
978
1015
  }
979
1016
  const r = Me(o);
980
- return r[ka] = s, r;
1017
+ return r[Oa] = s, r;
981
1018
  }
982
- function Fa({ layoutId: t }) {
1019
+ function _a({ layoutId: t }) {
983
1020
  const e = G(Wn).id;
984
1021
  return e && t !== void 0 ? e + "-" + t : t;
985
1022
  }
986
- function Oa(t, e) {
987
- const n = G(rr).strict;
1023
+ function Ba(t, e) {
1024
+ const n = G(or).strict;
988
1025
  if (process.env.NODE_ENV !== "production" && e && n) {
989
1026
  const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
990
1027
  t.ignoreStrict ? Gt(!1, i) : pt(!1, i);
991
1028
  }
992
1029
  }
993
- function ja(t) {
1030
+ function Ia(t) {
994
1031
  const { drag: e, layout: n } = $t;
995
1032
  if (!e && !n)
996
1033
  return {};
@@ -1000,9 +1037,9 @@ function ja(t) {
1000
1037
  ProjectionNode: i.ProjectionNode
1001
1038
  };
1002
1039
  }
1003
- function _a(t) {
1040
+ function Na(t) {
1004
1041
  function e(i, s = {}) {
1005
- return La(t(i, s));
1042
+ return ja(t(i, s));
1006
1043
  }
1007
1044
  if (typeof Proxy > "u")
1008
1045
  return e;
@@ -1016,7 +1053,7 @@ function _a(t) {
1016
1053
  get: (i, s) => (n.has(s) || n.set(s, e(s)), n.get(s))
1017
1054
  });
1018
1055
  }
1019
- const Ba = [
1056
+ const Ua = [
1020
1057
  "animate",
1021
1058
  "circle",
1022
1059
  "defs",
@@ -1056,7 +1093,7 @@ function $n(t) {
1056
1093
  /**
1057
1094
  * If it's in our list of lowercase SVG tags, it's an SVG component
1058
1095
  */
1059
- !!(Ba.indexOf(t) > -1 || /**
1096
+ !!(Ua.indexOf(t) > -1 || /**
1060
1097
  * If it contains a capital letter, it's an SVG component
1061
1098
  */
1062
1099
  /[A-Z]/u.test(t))
@@ -1064,7 +1101,7 @@ function $n(t) {
1064
1101
  );
1065
1102
  }
1066
1103
  const ke = {};
1067
- function Ia(t) {
1104
+ function Wa(t) {
1068
1105
  Object.assign(ke, t);
1069
1106
  }
1070
1107
  const pe = [
@@ -1085,36 +1122,36 @@ const pe = [
1085
1122
  "skew",
1086
1123
  "skewX",
1087
1124
  "skewY"
1088
- ], wt = new Set(pe);
1089
- function fr(t, { layout: e, layoutId: n }) {
1090
- return wt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!ke[t] || t === "opacity");
1125
+ ], xt = new Set(pe);
1126
+ function hr(t, { layout: e, layoutId: n }) {
1127
+ return xt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!ke[t] || t === "opacity");
1091
1128
  }
1092
- const Y = (t) => !!(t && t.getVelocity), hr = (t, e) => e && typeof t == "number" ? e.transform(t) : t, bt = (t, e, n) => n > e ? e : n < t ? t : n, Ht = {
1129
+ const Y = (t) => !!(t && t.getVelocity), dr = (t, e) => e && typeof t == "number" ? e.transform(t) : t, Tt = (t, e, n) => n > e ? e : n < t ? t : n, Ht = {
1093
1130
  test: (t) => typeof t == "number",
1094
1131
  parse: parseFloat,
1095
1132
  transform: (t) => t
1096
1133
  }, ee = {
1097
1134
  ...Ht,
1098
- transform: (t) => bt(0, 1, t)
1135
+ transform: (t) => Tt(0, 1, t)
1099
1136
  }, we = {
1100
1137
  ...Ht,
1101
1138
  default: 1
1102
- }, ne = (t) => Math.round(t * 1e5) / 1e5, Kn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, Na = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Ua = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
1139
+ }, ne = (t) => Math.round(t * 1e5) / 1e5, Kn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, $a = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Ka = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
1103
1140
  function me(t) {
1104
1141
  return typeof t == "string";
1105
1142
  }
1106
- function Wa(t) {
1143
+ function Ga(t) {
1107
1144
  return t == null;
1108
1145
  }
1109
1146
  const ge = (t) => ({
1110
1147
  test: (e) => me(e) && e.endsWith(t) && e.split(" ").length === 1,
1111
1148
  parse: parseFloat,
1112
1149
  transform: (e) => `${e}${t}`
1113
- }), vt = ge("deg"), ot = ge("%"), S = ge("px"), $a = ge("vh"), Ka = ge("vw"), _i = {
1150
+ }), vt = ge("deg"), ot = ge("%"), S = ge("px"), Ha = ge("vh"), za = ge("vw"), Bi = {
1114
1151
  ...ot,
1115
1152
  parse: (t) => ot.parse(t) / 100,
1116
1153
  transform: (t) => ot.transform(t * 100)
1117
- }, Bi = {
1154
+ }, Ii = {
1118
1155
  ...Ht,
1119
1156
  transform: Math.round
1120
1157
  }, Gn = {
@@ -1173,35 +1210,35 @@ const ge = (t) => ({
1173
1210
  perspective: S,
1174
1211
  transformPerspective: S,
1175
1212
  opacity: ee,
1176
- originX: _i,
1177
- originY: _i,
1213
+ originX: Bi,
1214
+ originY: Bi,
1178
1215
  originZ: S,
1179
1216
  // Misc
1180
- zIndex: Bi,
1217
+ zIndex: Ii,
1181
1218
  backgroundPositionX: S,
1182
1219
  backgroundPositionY: S,
1183
1220
  // SVG
1184
1221
  fillOpacity: ee,
1185
1222
  strokeOpacity: ee,
1186
- numOctaves: Bi
1187
- }, Ga = {
1223
+ numOctaves: Ii
1224
+ }, Ya = {
1188
1225
  x: "translateX",
1189
1226
  y: "translateY",
1190
1227
  z: "translateZ",
1191
1228
  transformPerspective: "perspective"
1192
- }, Ha = pe.length;
1193
- function za(t, e, n) {
1229
+ }, Xa = pe.length;
1230
+ function qa(t, e, n) {
1194
1231
  let i = "", s = !0;
1195
- for (let o = 0; o < Ha; o++) {
1232
+ for (let o = 0; o < Xa; o++) {
1196
1233
  const r = pe[o], a = t[r];
1197
1234
  if (a === void 0)
1198
1235
  continue;
1199
1236
  let l = !0;
1200
1237
  if (typeof a == "number" ? l = a === (r.startsWith("scale") ? 1 : 0) : l = parseFloat(a) === 0, !l || n) {
1201
- const c = hr(a, Gn[r]);
1238
+ const c = dr(a, Gn[r]);
1202
1239
  if (!l) {
1203
1240
  s = !1;
1204
- const u = Ga[r] || r;
1241
+ const u = Ya[r] || r;
1205
1242
  i += `${u}(${c}) `;
1206
1243
  }
1207
1244
  n && (e[r] = c);
@@ -1209,24 +1246,24 @@ function za(t, e, n) {
1209
1246
  }
1210
1247
  return i = i.trim(), n ? i = n(e, s ? "" : i) : s && (i = "none"), i;
1211
1248
  }
1212
- const dr = (t) => (e) => typeof e == "string" && e.startsWith(t), pr = dr("--"), Ya = dr("var(--"), Hn = (t) => Ya(t) ? Xa.test(t.split("/*")[0].trim()) : !1, Xa = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
1249
+ const pr = (t) => (e) => typeof e == "string" && e.startsWith(t), mr = pr("--"), Za = pr("var(--"), Hn = (t) => Za(t) ? Ja.test(t.split("/*")[0].trim()) : !1, Ja = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
1213
1250
  function zn(t, e, n) {
1214
1251
  const { style: i, vars: s, transformOrigin: o } = t;
1215
1252
  let r = !1, a = !1;
1216
1253
  for (const l in e) {
1217
1254
  const c = e[l];
1218
- if (wt.has(l)) {
1255
+ if (xt.has(l)) {
1219
1256
  r = !0;
1220
1257
  continue;
1221
- } else if (pr(l)) {
1258
+ } else if (mr(l)) {
1222
1259
  s[l] = c;
1223
1260
  continue;
1224
1261
  } else {
1225
- const u = hr(c, Gn[l]);
1262
+ const u = dr(c, Gn[l]);
1226
1263
  l.startsWith("origin") ? (a = !0, o[l] = u) : i[l] = u;
1227
1264
  }
1228
1265
  }
1229
- if (e.transform || (r || n ? i.transform = za(e, t.transform, n) : i.transform && (i.transform = "none")), a) {
1266
+ if (e.transform || (r || n ? i.transform = qa(e, t.transform, n) : i.transform && (i.transform = "none")), a) {
1230
1267
  const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
1231
1268
  i.transformOrigin = `${l} ${c} ${u}`;
1232
1269
  }
@@ -1237,25 +1274,25 @@ const Yn = () => ({
1237
1274
  transformOrigin: {},
1238
1275
  vars: {}
1239
1276
  });
1240
- function mr(t, e, n) {
1277
+ function gr(t, e, n) {
1241
1278
  for (const i in e)
1242
- !Y(e[i]) && !fr(i, n) && (t[i] = e[i]);
1279
+ !Y(e[i]) && !hr(i, n) && (t[i] = e[i]);
1243
1280
  }
1244
- function qa({ transformTemplate: t }, e) {
1281
+ function Qa({ transformTemplate: t }, e) {
1245
1282
  return Mt(() => {
1246
1283
  const n = Yn();
1247
1284
  return zn(n, e, t), Object.assign({}, n.vars, n.style);
1248
1285
  }, [e]);
1249
1286
  }
1250
- function Za(t, e) {
1287
+ function tl(t, e) {
1251
1288
  const n = t.style || {}, i = {};
1252
- return mr(i, n, t), Object.assign(i, qa(t, e)), i;
1289
+ return gr(i, n, t), Object.assign(i, Qa(t, e)), i;
1253
1290
  }
1254
- function Ja(t, e) {
1255
- const n = {}, i = Za(t, e);
1291
+ function el(t, e) {
1292
+ const n = {}, i = tl(t, e);
1256
1293
  return t.drag && t.dragListener !== !1 && (n.draggable = !1, i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = "none", i.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (n.tabIndex = 0), n.style = i, n;
1257
1294
  }
1258
- const Qa = /* @__PURE__ */ new Set([
1295
+ const nl = /* @__PURE__ */ new Set([
1259
1296
  "animate",
1260
1297
  "exit",
1261
1298
  "variants",
@@ -1288,40 +1325,40 @@ const Qa = /* @__PURE__ */ new Set([
1288
1325
  "viewport"
1289
1326
  ]);
1290
1327
  function Le(t) {
1291
- return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Qa.has(t);
1328
+ return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || nl.has(t);
1292
1329
  }
1293
- let gr = (t) => !Le(t);
1294
- function tl(t) {
1295
- t && (gr = (e) => e.startsWith("on") ? !Le(e) : t(e));
1330
+ let yr = (t) => !Le(t);
1331
+ function il(t) {
1332
+ t && (yr = (e) => e.startsWith("on") ? !Le(e) : t(e));
1296
1333
  }
1297
1334
  try {
1298
- tl(require("@emotion/is-prop-valid").default);
1335
+ il(require("@emotion/is-prop-valid").default);
1299
1336
  } catch {
1300
1337
  }
1301
- function el(t, e, n) {
1338
+ function sl(t, e, n) {
1302
1339
  const i = {};
1303
1340
  for (const s in t)
1304
- s === "values" && typeof t.values == "object" || (gr(s) || n === !0 && Le(s) || !e && !Le(s) || // If trying to use native HTML drag events, forward drag listeners
1341
+ s === "values" && typeof t.values == "object" || (yr(s) || n === !0 && Le(s) || !e && !Le(s) || // If trying to use native HTML drag events, forward drag listeners
1305
1342
  t.draggable && s.startsWith("onDrag")) && (i[s] = t[s]);
1306
1343
  return i;
1307
1344
  }
1308
- function Ii(t, e, n) {
1345
+ function Ni(t, e, n) {
1309
1346
  return typeof t == "string" ? t : S.transform(e + n * t);
1310
1347
  }
1311
- function nl(t, e, n) {
1312
- const i = Ii(e, t.x, t.width), s = Ii(n, t.y, t.height);
1348
+ function rl(t, e, n) {
1349
+ const i = Ni(e, t.x, t.width), s = Ni(n, t.y, t.height);
1313
1350
  return `${i} ${s}`;
1314
1351
  }
1315
- const il = {
1352
+ const ol = {
1316
1353
  offset: "stroke-dashoffset",
1317
1354
  array: "stroke-dasharray"
1318
- }, sl = {
1355
+ }, al = {
1319
1356
  offset: "strokeDashoffset",
1320
1357
  array: "strokeDasharray"
1321
1358
  };
1322
- function rl(t, e, n = 1, i = 0, s = !0) {
1359
+ function ll(t, e, n = 1, i = 0, s = !0) {
1323
1360
  t.pathLength = 1;
1324
- const o = s ? il : sl;
1361
+ const o = s ? ol : al;
1325
1362
  t[o.offset] = S.transform(-i);
1326
1363
  const r = S.transform(e), a = S.transform(n);
1327
1364
  t[o.array] = `${r} ${a}`;
@@ -1344,15 +1381,15 @@ function Xn(t, {
1344
1381
  }
1345
1382
  t.attrs = t.style, t.style = {};
1346
1383
  const { attrs: d, style: p, dimensions: m } = t;
1347
- d.transform && (m && (p.transform = d.transform), delete d.transform), m && (s !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = nl(m, s !== void 0 ? s : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), r !== void 0 && rl(d, r, a, l, !1);
1384
+ d.transform && (m && (p.transform = d.transform), delete d.transform), m && (s !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = rl(m, s !== void 0 ? s : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), r !== void 0 && ll(d, r, a, l, !1);
1348
1385
  }
1349
- const yr = () => ({
1386
+ const vr = () => ({
1350
1387
  ...Yn(),
1351
1388
  attrs: {}
1352
1389
  }), qn = (t) => typeof t == "string" && t.toLowerCase() === "svg";
1353
- function ol(t, e, n, i) {
1390
+ function cl(t, e, n, i) {
1354
1391
  const s = Mt(() => {
1355
- const o = yr();
1392
+ const o = vr();
1356
1393
  return Xn(o, e, qn(i), t.transformTemplate), {
1357
1394
  ...o.attrs,
1358
1395
  style: { ...o.style }
@@ -1360,25 +1397,25 @@ function ol(t, e, n, i) {
1360
1397
  }, [e]);
1361
1398
  if (t.style) {
1362
1399
  const o = {};
1363
- mr(o, t.style, t), s.style = { ...o, ...s.style };
1400
+ gr(o, t.style, t), s.style = { ...o, ...s.style };
1364
1401
  }
1365
1402
  return s;
1366
1403
  }
1367
- function al(t = !1) {
1404
+ function ul(t = !1) {
1368
1405
  return (n, i, s, { latestValues: o }, r) => {
1369
- const l = ($n(n) ? ol : Ja)(i, o, r, n), c = el(i, typeof n == "string", t), u = n !== nr ? { ...c, ...l, ref: s } : {}, { children: f } = i, d = Mt(() => Y(f) ? f.get() : f, [f]);
1406
+ const l = ($n(n) ? cl : el)(i, o, r, n), c = sl(i, typeof n == "string", t), u = n !== nr ? { ...c, ...l, ref: s } : {}, { children: f } = i, d = Mt(() => Y(f) ? f.get() : f, [f]);
1370
1407
  return oa(n, {
1371
1408
  ...u,
1372
1409
  children: d
1373
1410
  });
1374
1411
  };
1375
1412
  }
1376
- function vr(t, { style: e, vars: n }, i, s) {
1413
+ function Pr(t, { style: e, vars: n }, i, s) {
1377
1414
  Object.assign(t.style, e, s && s.getProjectionStyles(i));
1378
1415
  for (const o in n)
1379
1416
  t.style.setProperty(o, n[o]);
1380
1417
  }
1381
- const Pr = /* @__PURE__ */ new Set([
1418
+ const Tr = /* @__PURE__ */ new Set([
1382
1419
  "baseFrequency",
1383
1420
  "diffuseConstant",
1384
1421
  "kernelMatrix",
@@ -1403,19 +1440,19 @@ const Pr = /* @__PURE__ */ new Set([
1403
1440
  "textLength",
1404
1441
  "lengthAdjust"
1405
1442
  ]);
1406
- function Tr(t, e, n, i) {
1407
- vr(t, e, void 0, i);
1443
+ function br(t, e, n, i) {
1444
+ Pr(t, e, void 0, i);
1408
1445
  for (const s in e.attrs)
1409
- t.setAttribute(Pr.has(s) ? s : Ne(s), e.attrs[s]);
1446
+ t.setAttribute(Tr.has(s) ? s : Ne(s), e.attrs[s]);
1410
1447
  }
1411
1448
  function Zn(t, e, n) {
1412
1449
  var i;
1413
1450
  const { style: s } = t, o = {};
1414
1451
  for (const r in s)
1415
- (Y(s[r]) || e.style && Y(e.style[r]) || fr(r, t) || ((i = n == null ? void 0 : n.getValue(r)) === null || i === void 0 ? void 0 : i.liveStyle) !== void 0) && (o[r] = s[r]);
1452
+ (Y(s[r]) || e.style && Y(e.style[r]) || hr(r, t) || ((i = n == null ? void 0 : n.getValue(r)) === null || i === void 0 ? void 0 : i.liveStyle) !== void 0) && (o[r] = s[r]);
1416
1453
  return n && s && typeof s.willChange == "string" && (n.applyWillChange = !1), o;
1417
1454
  }
1418
- function br(t, e, n) {
1455
+ function xr(t, e, n) {
1419
1456
  const i = Zn(t, e, n);
1420
1457
  for (const s in t)
1421
1458
  if (Y(t[s]) || Y(e[s])) {
@@ -1424,7 +1461,7 @@ function br(t, e, n) {
1424
1461
  }
1425
1462
  return i;
1426
1463
  }
1427
- function Ni(t) {
1464
+ function Ui(t) {
1428
1465
  const e = [{}, {}];
1429
1466
  return t == null || t.values.forEach((n, i) => {
1430
1467
  e[0][i] = n.get(), e[1][i] = n.getVelocity();
@@ -1432,11 +1469,11 @@ function Ni(t) {
1432
1469
  }
1433
1470
  function Jn(t, e, n, i) {
1434
1471
  if (typeof e == "function") {
1435
- const [s, o] = Ni(i);
1472
+ const [s, o] = Ui(i);
1436
1473
  e = e(n !== void 0 ? n : t.custom, s, o);
1437
1474
  }
1438
1475
  if (typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function") {
1439
- const [s, o] = Ni(i);
1476
+ const [s, o] = Ui(i);
1440
1477
  e = e(n !== void 0 ? n : t.custom, s, o);
1441
1478
  }
1442
1479
  return e;
@@ -1445,12 +1482,12 @@ function Qn(t) {
1445
1482
  const e = it(null);
1446
1483
  return e.current === null && (e.current = t()), e.current;
1447
1484
  }
1448
- const Pn = (t) => Array.isArray(t), ll = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), cl = (t) => Pn(t) ? t[t.length - 1] || 0 : t;
1449
- function Ce(t) {
1485
+ const Pn = (t) => Array.isArray(t), fl = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), hl = (t) => Pn(t) ? t[t.length - 1] || 0 : t;
1486
+ function Re(t) {
1450
1487
  const e = Y(t) ? t.get() : t;
1451
- return ll(e) ? e.toValue() : e;
1488
+ return fl(e) ? e.toValue() : e;
1452
1489
  }
1453
- const xr = /* @__PURE__ */ new Set([
1490
+ const wr = /* @__PURE__ */ new Set([
1454
1491
  "opacity",
1455
1492
  "clipPath",
1456
1493
  "filter",
@@ -1459,10 +1496,10 @@ const xr = /* @__PURE__ */ new Set([
1459
1496
  // or until we implement support for linear() easing.
1460
1497
  // "background-color"
1461
1498
  ]);
1462
- function wr(t) {
1463
- if (wt.has(t))
1499
+ function Sr(t) {
1500
+ if (xt.has(t))
1464
1501
  return "transform";
1465
- if (xr.has(t))
1502
+ if (wr.has(t))
1466
1503
  return Ne(t);
1467
1504
  }
1468
1505
  function We(t, e) {
@@ -1472,22 +1509,22 @@ function $e(t, e) {
1472
1509
  const n = t.indexOf(e);
1473
1510
  n > -1 && t.splice(n, 1);
1474
1511
  }
1475
- function ul({ applyWillChange: t = !1, scrapeMotionValuesFromProps: e, createRenderState: n, onMount: i }, s, o, r, a) {
1512
+ function dl({ applyWillChange: t = !1, scrapeMotionValuesFromProps: e, createRenderState: n, onMount: i }, s, o, r, a) {
1476
1513
  const l = {
1477
- latestValues: hl(s, o, r, a ? !1 : t, e),
1514
+ latestValues: ml(s, o, r, a ? !1 : t, e),
1478
1515
  renderState: n()
1479
1516
  };
1480
1517
  return i && (l.mount = (c) => i(s, c, l)), l;
1481
1518
  }
1482
- const Sr = (t) => (e, n) => {
1483
- const i = G(Be), s = G(Ie), o = () => ul(t, e, i, s, n);
1519
+ const Ar = (t) => (e, n) => {
1520
+ const i = G(Be), s = G(Ie), o = () => dl(t, e, i, s, n);
1484
1521
  return n ? o() : Qn(o);
1485
1522
  };
1486
- function fl(t, e) {
1487
- const n = wr(e);
1523
+ function pl(t, e) {
1524
+ const n = Sr(e);
1488
1525
  n && We(t, n);
1489
1526
  }
1490
- function Ui(t, e, n) {
1527
+ function Wi(t, e, n) {
1491
1528
  const i = Array.isArray(e) ? e : [e];
1492
1529
  for (let s = 0; s < i.length; s++) {
1493
1530
  const o = Jn(t, i[s]);
@@ -1497,18 +1534,18 @@ function Ui(t, e, n) {
1497
1534
  }
1498
1535
  }
1499
1536
  }
1500
- function hl(t, e, n, i, s) {
1537
+ function ml(t, e, n, i, s) {
1501
1538
  var o;
1502
1539
  const r = {}, a = [], l = i && ((o = t.style) === null || o === void 0 ? void 0 : o.willChange) === void 0, c = s(t, {});
1503
1540
  for (const x in c)
1504
- r[x] = Ce(c[x]);
1541
+ r[x] = Re(c[x]);
1505
1542
  let { initial: u, animate: f } = t;
1506
- const d = Ue(t), p = ur(t);
1543
+ const d = Ue(t), p = fr(t);
1507
1544
  e && p && !d && t.inherit !== !1 && (u === void 0 && (u = e.initial), f === void 0 && (f = e.animate));
1508
1545
  let m = n ? n.initial === !1 : !1;
1509
1546
  m = m || u === !1;
1510
1547
  const v = m ? f : u;
1511
- return v && typeof v != "boolean" && !ae(v) && Ui(t, v, (x, P) => {
1548
+ return v && typeof v != "boolean" && !ae(v) && Wi(t, v, (x, P) => {
1512
1549
  for (const y in x) {
1513
1550
  let T = x[y];
1514
1551
  if (Array.isArray(T)) {
@@ -1519,15 +1556,15 @@ function hl(t, e, n, i, s) {
1519
1556
  }
1520
1557
  for (const y in P)
1521
1558
  r[y] = P[y];
1522
- }), l && (f && u !== !1 && !ae(f) && Ui(t, f, (x) => {
1559
+ }), l && (f && u !== !1 && !ae(f) && Wi(t, f, (x) => {
1523
1560
  for (const P in x)
1524
- fl(a, P);
1561
+ pl(a, P);
1525
1562
  }), a.length && (r.willChange = a.join(","))), r;
1526
1563
  }
1527
- const { schedule: M, cancel: mt, state: K, steps: nn } = ar(typeof requestAnimationFrame < "u" ? requestAnimationFrame : H, !0), dl = {
1528
- useVisualState: Sr({
1529
- scrapeMotionValuesFromProps: br,
1530
- createRenderState: yr,
1564
+ const { schedule: M, cancel: mt, state: K, steps: nn } = lr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : H, !0), gl = {
1565
+ useVisualState: Ar({
1566
+ scrapeMotionValuesFromProps: xr,
1567
+ createRenderState: vr,
1531
1568
  onMount: (t, e, { renderState: n, latestValues: i }) => {
1532
1569
  M.read(() => {
1533
1570
  try {
@@ -1541,22 +1578,22 @@ const { schedule: M, cancel: mt, state: K, steps: nn } = ar(typeof requestAnimat
1541
1578
  };
1542
1579
  }
1543
1580
  }), M.render(() => {
1544
- Xn(n, i, qn(e.tagName), t.transformTemplate), Tr(e, n);
1581
+ Xn(n, i, qn(e.tagName), t.transformTemplate), br(e, n);
1545
1582
  });
1546
1583
  }
1547
1584
  })
1548
- }, pl = {
1549
- useVisualState: Sr({
1585
+ }, yl = {
1586
+ useVisualState: Ar({
1550
1587
  applyWillChange: !0,
1551
1588
  scrapeMotionValuesFromProps: Zn,
1552
1589
  createRenderState: Yn
1553
1590
  })
1554
1591
  };
1555
- function ml(t, { forwardMotionProps: e = !1 }, n, i) {
1592
+ function vl(t, { forwardMotionProps: e = !1 }, n, i) {
1556
1593
  return {
1557
- ...$n(t) ? dl : pl,
1594
+ ...$n(t) ? gl : yl,
1558
1595
  preloadedFeatures: n,
1559
- useRender: al(e),
1596
+ useRender: ul(e),
1560
1597
  createVisualElement: i,
1561
1598
  Component: t
1562
1599
  };
@@ -1564,7 +1601,7 @@ function ml(t, { forwardMotionProps: e = !1 }, n, i) {
1564
1601
  function lt(t, e, n, i = { passive: !0 }) {
1565
1602
  return t.addEventListener(e, n, i), () => t.removeEventListener(e, n);
1566
1603
  }
1567
- const Ar = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
1604
+ const Cr = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
1568
1605
  function Ke(t, e = "page") {
1569
1606
  return {
1570
1607
  point: {
@@ -1573,12 +1610,12 @@ function Ke(t, e = "page") {
1573
1610
  }
1574
1611
  };
1575
1612
  }
1576
- const gl = (t) => (e) => Ar(e) && t(e, Ke(e));
1613
+ const Pl = (t) => (e) => Cr(e) && t(e, Ke(e));
1577
1614
  function ut(t, e, n, i) {
1578
- return lt(t, e, gl(n), i);
1615
+ return lt(t, e, Pl(n), i);
1579
1616
  }
1580
- const yl = (t, e) => (n) => e(t(n)), ft = (...t) => t.reduce(yl);
1581
- function Cr(t) {
1617
+ const Tl = (t, e) => (n) => e(t(n)), ft = (...t) => t.reduce(Tl);
1618
+ function Rr(t) {
1582
1619
  let e = null;
1583
1620
  return () => {
1584
1621
  const n = () => {
@@ -1587,35 +1624,35 @@ function Cr(t) {
1587
1624
  return e === null ? (e = t, n) : !1;
1588
1625
  };
1589
1626
  }
1590
- const Wi = Cr("dragHorizontal"), $i = Cr("dragVertical");
1591
- function Rr(t) {
1627
+ const $i = Rr("dragHorizontal"), Ki = Rr("dragVertical");
1628
+ function Er(t) {
1592
1629
  let e = !1;
1593
1630
  if (t === "y")
1594
- e = $i();
1631
+ e = Ki();
1595
1632
  else if (t === "x")
1596
- e = Wi();
1633
+ e = $i();
1597
1634
  else {
1598
- const n = Wi(), i = $i();
1635
+ const n = $i(), i = Ki();
1599
1636
  n && i ? e = () => {
1600
1637
  n(), i();
1601
1638
  } : (n && n(), i && i());
1602
1639
  }
1603
1640
  return e;
1604
1641
  }
1605
- function Er() {
1606
- const t = Rr(!0);
1642
+ function Vr() {
1643
+ const t = Er(!0);
1607
1644
  return t ? (t(), !1) : !0;
1608
1645
  }
1609
- class St {
1646
+ class wt {
1610
1647
  constructor(e) {
1611
1648
  this.isMounted = !1, this.node = e;
1612
1649
  }
1613
1650
  update() {
1614
1651
  }
1615
1652
  }
1616
- function Ki(t, e) {
1653
+ function Gi(t, e) {
1617
1654
  const n = e ? "pointerenter" : "pointerleave", i = e ? "onHoverStart" : "onHoverEnd", s = (o, r) => {
1618
- if (o.pointerType === "touch" || Er())
1655
+ if (o.pointerType === "touch" || Vr())
1619
1656
  return;
1620
1657
  const a = t.getProps();
1621
1658
  t.animationState && a.whileHover && t.animationState.setActive("whileHover", e);
@@ -1626,14 +1663,14 @@ function Ki(t, e) {
1626
1663
  passive: !t.getProps()[i]
1627
1664
  });
1628
1665
  }
1629
- class vl extends St {
1666
+ class bl extends wt {
1630
1667
  mount() {
1631
- this.unmount = ft(Ki(this.node, !0), Ki(this.node, !1));
1668
+ this.unmount = ft(Gi(this.node, !0), Gi(this.node, !1));
1632
1669
  }
1633
1670
  unmount() {
1634
1671
  }
1635
1672
  }
1636
- class Pl extends St {
1673
+ class xl extends wt {
1637
1674
  constructor() {
1638
1675
  super(...arguments), this.isActive = !1;
1639
1676
  }
@@ -1655,14 +1692,14 @@ class Pl extends St {
1655
1692
  unmount() {
1656
1693
  }
1657
1694
  }
1658
- const Vr = (t, e) => e ? t === e ? !0 : Vr(t, e.parentElement) : !1;
1695
+ const Dr = (t, e) => e ? t === e ? !0 : Dr(t, e.parentElement) : !1;
1659
1696
  function sn(t, e) {
1660
1697
  if (!e)
1661
1698
  return;
1662
1699
  const n = new PointerEvent("pointer" + t);
1663
1700
  e(n, Ke(n));
1664
1701
  }
1665
- class Tl extends St {
1702
+ class wl extends wt {
1666
1703
  constructor() {
1667
1704
  super(...arguments), this.removeStartListeners = H, this.removeEndListeners = H, this.removeAccessibleListeners = H, this.startPointerPress = (e, n) => {
1668
1705
  if (this.isPressing)
@@ -1671,7 +1708,7 @@ class Tl extends St {
1671
1708
  const i = this.node.getProps(), o = ut(window, "pointerup", (a, l) => {
1672
1709
  if (!this.checkPressEnd())
1673
1710
  return;
1674
- const { onTap: c, onTapCancel: u, globalTapTarget: f } = this.node.getProps(), d = !f && !Vr(this.node.current, a.target) ? u : c;
1711
+ const { onTap: c, onTapCancel: u, globalTapTarget: f } = this.node.getProps(), d = !f && !Dr(this.node.current, a.target) ? u : c;
1675
1712
  d && M.update(() => d(a, l));
1676
1713
  }, {
1677
1714
  passive: !(i.onTap || i.onPointerUp)
@@ -1704,7 +1741,7 @@ class Tl extends St {
1704
1741
  s && this.node.animationState && this.node.animationState.setActive("whileTap", !0), i && M.postRender(() => i(e, n));
1705
1742
  }
1706
1743
  checkPressEnd() {
1707
- return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Er();
1744
+ return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Vr();
1708
1745
  }
1709
1746
  cancelPress(e, n) {
1710
1747
  if (!this.checkPressEnd())
@@ -1722,29 +1759,29 @@ class Tl extends St {
1722
1759
  this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
1723
1760
  }
1724
1761
  }
1725
- const Tn = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), bl = (t) => {
1762
+ const Tn = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), Sl = (t) => {
1726
1763
  const e = Tn.get(t.target);
1727
1764
  e && e(t);
1728
- }, xl = (t) => {
1729
- t.forEach(bl);
1765
+ }, Al = (t) => {
1766
+ t.forEach(Sl);
1730
1767
  };
1731
- function wl({ root: t, ...e }) {
1768
+ function Cl({ root: t, ...e }) {
1732
1769
  const n = t || document;
1733
1770
  rn.has(n) || rn.set(n, {});
1734
1771
  const i = rn.get(n), s = JSON.stringify(e);
1735
- return i[s] || (i[s] = new IntersectionObserver(xl, { root: t, ...e })), i[s];
1772
+ return i[s] || (i[s] = new IntersectionObserver(Al, { root: t, ...e })), i[s];
1736
1773
  }
1737
- function Sl(t, e, n) {
1738
- const i = wl(e);
1774
+ function Rl(t, e, n) {
1775
+ const i = Cl(e);
1739
1776
  return Tn.set(t, n), i.observe(t), () => {
1740
1777
  Tn.delete(t), i.unobserve(t);
1741
1778
  };
1742
1779
  }
1743
- const Al = {
1780
+ const El = {
1744
1781
  some: 0,
1745
1782
  all: 1
1746
1783
  };
1747
- class Cl extends St {
1784
+ class Vl extends wt {
1748
1785
  constructor() {
1749
1786
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
1750
1787
  }
@@ -1753,7 +1790,7 @@ class Cl extends St {
1753
1790
  const { viewport: e = {} } = this.node.getProps(), { root: n, margin: i, amount: s = "some", once: o } = e, r = {
1754
1791
  root: n ? n.current : void 0,
1755
1792
  rootMargin: i,
1756
- threshold: typeof s == "number" ? s : Al[s]
1793
+ threshold: typeof s == "number" ? s : El[s]
1757
1794
  }, a = (l) => {
1758
1795
  const { isIntersecting: c } = l;
1759
1796
  if (this.isInView === c || (this.isInView = c, o && !c && this.hasEnteredView))
@@ -1762,7 +1799,7 @@ class Cl extends St {
1762
1799
  const { onViewportEnter: u, onViewportLeave: f } = this.node.getProps(), d = c ? u : f;
1763
1800
  d && d(l);
1764
1801
  };
1765
- return Sl(this.node.current, r, a);
1802
+ return Rl(this.node.current, r, a);
1766
1803
  }
1767
1804
  mount() {
1768
1805
  this.startObserver();
@@ -1771,29 +1808,29 @@ class Cl extends St {
1771
1808
  if (typeof IntersectionObserver > "u")
1772
1809
  return;
1773
1810
  const { props: e, prevProps: n } = this.node;
1774
- ["amount", "margin", "root"].some(Rl(e, n)) && this.startObserver();
1811
+ ["amount", "margin", "root"].some(Dl(e, n)) && this.startObserver();
1775
1812
  }
1776
1813
  unmount() {
1777
1814
  }
1778
1815
  }
1779
- function Rl({ viewport: t = {} }, { viewport: e = {} } = {}) {
1816
+ function Dl({ viewport: t = {} }, { viewport: e = {} } = {}) {
1780
1817
  return (n) => t[n] !== e[n];
1781
1818
  }
1782
- const El = {
1819
+ const Ml = {
1783
1820
  inView: {
1784
- Feature: Cl
1821
+ Feature: Vl
1785
1822
  },
1786
1823
  tap: {
1787
- Feature: Tl
1824
+ Feature: wl
1788
1825
  },
1789
1826
  focus: {
1790
- Feature: Pl
1827
+ Feature: xl
1791
1828
  },
1792
1829
  hover: {
1793
- Feature: vl
1830
+ Feature: bl
1794
1831
  }
1795
1832
  };
1796
- function Dr(t, e) {
1833
+ function Mr(t, e) {
1797
1834
  if (!Array.isArray(e))
1798
1835
  return !1;
1799
1836
  const n = e.length;
@@ -1808,73 +1845,73 @@ function Ge(t, e, n) {
1808
1845
  const i = t.getProps();
1809
1846
  return Jn(i, e, n !== void 0 ? n : i.custom, t);
1810
1847
  }
1811
- const ht = (t) => t * 1e3, dt = (t) => t / 1e3, Vl = {
1848
+ const ht = (t) => t * 1e3, dt = (t) => t / 1e3, kl = {
1812
1849
  type: "spring",
1813
1850
  stiffness: 500,
1814
1851
  damping: 25,
1815
1852
  restSpeed: 10
1816
- }, Dl = (t) => ({
1853
+ }, Ll = (t) => ({
1817
1854
  type: "spring",
1818
1855
  stiffness: 550,
1819
1856
  damping: t === 0 ? 2 * Math.sqrt(550) : 30,
1820
1857
  restSpeed: 10
1821
- }), Ml = {
1858
+ }), Fl = {
1822
1859
  type: "keyframes",
1823
1860
  duration: 0.8
1824
- }, kl = {
1861
+ }, Ol = {
1825
1862
  type: "keyframes",
1826
1863
  ease: [0.25, 0.1, 0.35, 1],
1827
1864
  duration: 0.3
1828
- }, Ll = (t, { keyframes: e }) => e.length > 2 ? Ml : wt.has(t) ? t.startsWith("scale") ? Dl(e[1]) : Vl : kl;
1829
- function Fl({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
1865
+ }, jl = (t, { keyframes: e }) => e.length > 2 ? Fl : xt.has(t) ? t.startsWith("scale") ? Ll(e[1]) : kl : Ol;
1866
+ function _l({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
1830
1867
  return !!Object.keys(u).length;
1831
1868
  }
1832
1869
  function ti(t, e) {
1833
1870
  return t[e] || t.default || t;
1834
1871
  }
1835
- const Ol = (t) => t !== null;
1872
+ const Bl = (t) => t !== null;
1836
1873
  function He(t, { repeat: e, repeatType: n = "loop" }, i) {
1837
- const s = t.filter(Ol), o = e && n !== "loop" && e % 2 === 1 ? 0 : s.length - 1;
1874
+ const s = t.filter(Bl), o = e && n !== "loop" && e % 2 === 1 ? 0 : s.length - 1;
1838
1875
  return !o || i === void 0 ? s[o] : i;
1839
1876
  }
1840
- let Re;
1841
- function jl() {
1842
- Re = void 0;
1877
+ let Ee;
1878
+ function Il() {
1879
+ Ee = void 0;
1843
1880
  }
1844
- const Tt = {
1845
- now: () => (Re === void 0 && Tt.set(K.isProcessing || xa.useManualTiming ? K.timestamp : performance.now()), Re),
1881
+ const Pt = {
1882
+ now: () => (Ee === void 0 && Pt.set(K.isProcessing || Aa.useManualTiming ? K.timestamp : performance.now()), Ee),
1846
1883
  set: (t) => {
1847
- Re = t, queueMicrotask(jl);
1884
+ Ee = t, queueMicrotask(Il);
1848
1885
  }
1849
- }, Mr = (t) => /^0[^.\s]+$/u.test(t);
1850
- function _l(t) {
1851
- return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Mr(t) : !0;
1886
+ }, kr = (t) => /^0[^.\s]+$/u.test(t);
1887
+ function Nl(t) {
1888
+ return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || kr(t) : !0;
1852
1889
  }
1853
- const kr = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), Bl = (
1890
+ const Lr = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), Ul = (
1854
1891
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
1855
1892
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
1856
1893
  );
1857
- function Il(t) {
1858
- const e = Bl.exec(t);
1894
+ function Wl(t) {
1895
+ const e = Ul.exec(t);
1859
1896
  if (!e)
1860
1897
  return [,];
1861
1898
  const [, n, i, s] = e;
1862
1899
  return [`--${n ?? i}`, s];
1863
1900
  }
1864
- const Nl = 4;
1865
- function Lr(t, e, n = 1) {
1866
- pt(n <= Nl, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
1867
- const [i, s] = Il(t);
1901
+ const $l = 4;
1902
+ function Fr(t, e, n = 1) {
1903
+ pt(n <= $l, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
1904
+ const [i, s] = Wl(t);
1868
1905
  if (!i)
1869
1906
  return;
1870
1907
  const o = window.getComputedStyle(e).getPropertyValue(i);
1871
1908
  if (o) {
1872
1909
  const r = o.trim();
1873
- return kr(r) ? parseFloat(r) : r;
1910
+ return Lr(r) ? parseFloat(r) : r;
1874
1911
  }
1875
- return Hn(s) ? Lr(s, e, n + 1) : s;
1912
+ return Hn(s) ? Fr(s, e, n + 1) : s;
1876
1913
  }
1877
- const Ul = /* @__PURE__ */ new Set([
1914
+ const Kl = /* @__PURE__ */ new Set([
1878
1915
  "width",
1879
1916
  "height",
1880
1917
  "top",
@@ -1885,20 +1922,20 @@ const Ul = /* @__PURE__ */ new Set([
1885
1922
  "y",
1886
1923
  "translateX",
1887
1924
  "translateY"
1888
- ]), Gi = (t) => t === Ht || t === S, Hi = (t, e) => parseFloat(t.split(", ")[e]), zi = (t, e) => (n, { transform: i }) => {
1925
+ ]), Hi = (t) => t === Ht || t === S, zi = (t, e) => parseFloat(t.split(", ")[e]), Yi = (t, e) => (n, { transform: i }) => {
1889
1926
  if (i === "none" || !i)
1890
1927
  return 0;
1891
1928
  const s = i.match(/^matrix3d\((.+)\)$/u);
1892
1929
  if (s)
1893
- return Hi(s[1], e);
1930
+ return zi(s[1], e);
1894
1931
  {
1895
1932
  const o = i.match(/^matrix\((.+)\)$/u);
1896
- return o ? Hi(o[1], t) : 0;
1933
+ return o ? zi(o[1], t) : 0;
1897
1934
  }
1898
- }, Wl = /* @__PURE__ */ new Set(["x", "y", "z"]), $l = pe.filter((t) => !Wl.has(t));
1899
- function Kl(t) {
1935
+ }, Gl = /* @__PURE__ */ new Set(["x", "y", "z"]), Hl = pe.filter((t) => !Gl.has(t));
1936
+ function zl(t) {
1900
1937
  const e = [];
1901
- return $l.forEach((n) => {
1938
+ return Hl.forEach((n) => {
1902
1939
  const i = t.getValue(n);
1903
1940
  i !== void 0 && (e.push([n, i.get()]), i.set(n.startsWith("scale") ? 1 : 0));
1904
1941
  }), e;
@@ -1912,21 +1949,21 @@ const Kt = {
1912
1949
  bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
1913
1950
  right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
1914
1951
  // Transform
1915
- x: zi(4, 13),
1916
- y: zi(5, 14)
1952
+ x: Yi(4, 13),
1953
+ y: Yi(5, 14)
1917
1954
  };
1918
1955
  Kt.translateX = Kt.x;
1919
1956
  Kt.translateY = Kt.y;
1920
- const Fr = (t) => (e) => e.test(t), Gl = {
1957
+ const Or = (t) => (e) => e.test(t), Yl = {
1921
1958
  test: (t) => t === "auto",
1922
1959
  parse: (t) => t
1923
- }, Or = [Ht, S, ot, vt, Ka, $a, Gl], Yi = (t) => Or.find(Fr(t)), Dt = /* @__PURE__ */ new Set();
1960
+ }, jr = [Ht, S, ot, vt, za, Ha, Yl], Xi = (t) => jr.find(Or(t)), Dt = /* @__PURE__ */ new Set();
1924
1961
  let bn = !1, xn = !1;
1925
- function jr() {
1962
+ function _r() {
1926
1963
  if (xn) {
1927
1964
  const t = Array.from(Dt).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
1928
1965
  e.forEach((i) => {
1929
- const s = Kl(i);
1966
+ const s = zl(i);
1930
1967
  s.length && (n.set(i, s), i.render());
1931
1968
  }), t.forEach((i) => i.measureInitialState()), e.forEach((i) => {
1932
1969
  i.render();
@@ -1941,20 +1978,20 @@ function jr() {
1941
1978
  }
1942
1979
  xn = !1, bn = !1, Dt.forEach((t) => t.complete()), Dt.clear();
1943
1980
  }
1944
- function _r() {
1981
+ function Br() {
1945
1982
  Dt.forEach((t) => {
1946
1983
  t.readKeyframes(), t.needsMeasurement && (xn = !0);
1947
1984
  });
1948
1985
  }
1949
- function Hl() {
1950
- _r(), jr();
1986
+ function Xl() {
1987
+ Br(), _r();
1951
1988
  }
1952
1989
  class ei {
1953
1990
  constructor(e, n, i, s, o, r = !1) {
1954
1991
  this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = i, this.motionValue = s, this.element = o, this.isAsync = r;
1955
1992
  }
1956
1993
  scheduleResolve() {
1957
- this.isScheduled = !0, this.isAsync ? (Dt.add(this), bn || (bn = !0, M.read(_r), M.resolveKeyframes(jr))) : (this.readKeyframes(), this.complete());
1994
+ this.isScheduled = !0, this.isAsync ? (Dt.add(this), bn || (bn = !0, M.read(Br), M.resolveKeyframes(_r))) : (this.readKeyframes(), this.complete());
1958
1995
  }
1959
1996
  readKeyframes() {
1960
1997
  const { unresolvedKeyframes: e, name: n, element: i, motionValue: s } = this;
@@ -1990,7 +2027,7 @@ class ei {
1990
2027
  this.isComplete || this.scheduleResolve();
1991
2028
  }
1992
2029
  }
1993
- const ni = (t, e) => (n) => !!(me(n) && Ua.test(n) && n.startsWith(t) || e && !Wa(n) && Object.prototype.hasOwnProperty.call(n, e)), Br = (t, e, n) => (i) => {
2030
+ const ni = (t, e) => (n) => !!(me(n) && Ka.test(n) && n.startsWith(t) || e && !Ga(n) && Object.prototype.hasOwnProperty.call(n, e)), Ir = (t, e, n) => (i) => {
1994
2031
  if (!me(i))
1995
2032
  return i;
1996
2033
  const [s, o, r, a] = i.match(Kn);
@@ -2000,15 +2037,15 @@ const ni = (t, e) => (n) => !!(me(n) && Ua.test(n) && n.startsWith(t) || e && !W
2000
2037
  [n]: parseFloat(r),
2001
2038
  alpha: a !== void 0 ? parseFloat(a) : 1
2002
2039
  };
2003
- }, zl = (t) => bt(0, 255, t), on = {
2040
+ }, ql = (t) => Tt(0, 255, t), on = {
2004
2041
  ...Ht,
2005
- transform: (t) => Math.round(zl(t))
2042
+ transform: (t) => Math.round(ql(t))
2006
2043
  }, Vt = {
2007
2044
  test: ni("rgb", "red"),
2008
- parse: Br("red", "green", "blue"),
2045
+ parse: Ir("red", "green", "blue"),
2009
2046
  transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + on.transform(t) + ", " + on.transform(e) + ", " + on.transform(n) + ", " + ne(ee.transform(i)) + ")"
2010
2047
  };
2011
- function Yl(t) {
2048
+ function Zl(t) {
2012
2049
  let e = "", n = "", i = "", s = "";
2013
2050
  return t.length > 5 ? (e = t.substring(1, 3), n = t.substring(3, 5), i = t.substring(5, 7), s = t.substring(7, 9)) : (e = t.substring(1, 2), n = t.substring(2, 3), i = t.substring(3, 4), s = t.substring(4, 5), e += e, n += n, i += i, s += s), {
2014
2051
  red: parseInt(e, 16),
@@ -2019,22 +2056,22 @@ function Yl(t) {
2019
2056
  }
2020
2057
  const wn = {
2021
2058
  test: ni("#"),
2022
- parse: Yl,
2059
+ parse: Zl,
2023
2060
  transform: Vt.transform
2024
2061
  }, It = {
2025
2062
  test: ni("hsl", "hue"),
2026
- parse: Br("hue", "saturation", "lightness"),
2063
+ parse: Ir("hue", "saturation", "lightness"),
2027
2064
  transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + ot.transform(ne(e)) + ", " + ot.transform(ne(n)) + ", " + ne(ee.transform(i)) + ")"
2028
2065
  }, z = {
2029
2066
  test: (t) => Vt.test(t) || wn.test(t) || It.test(t),
2030
2067
  parse: (t) => Vt.test(t) ? Vt.parse(t) : It.test(t) ? It.parse(t) : wn.parse(t),
2031
2068
  transform: (t) => me(t) ? t : t.hasOwnProperty("red") ? Vt.transform(t) : It.transform(t)
2032
2069
  };
2033
- function Xl(t) {
2070
+ function Jl(t) {
2034
2071
  var e, n;
2035
- return isNaN(t) && me(t) && (((e = t.match(Kn)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(Na)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
2072
+ return isNaN(t) && me(t) && (((e = t.match(Kn)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match($a)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
2036
2073
  }
2037
- const Ir = "number", Nr = "color", ql = "var", Zl = "var(", Xi = "${}", Jl = /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;
2074
+ const Nr = "number", Ur = "color", Ql = "var", tc = "var(", qi = "${}", ec = /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;
2038
2075
  function le(t) {
2039
2076
  const e = t.toString(), n = [], i = {
2040
2077
  color: [],
@@ -2042,36 +2079,36 @@ function le(t) {
2042
2079
  var: []
2043
2080
  }, s = [];
2044
2081
  let o = 0;
2045
- const a = e.replace(Jl, (l) => (z.test(l) ? (i.color.push(o), s.push(Nr), n.push(z.parse(l))) : l.startsWith(Zl) ? (i.var.push(o), s.push(ql), n.push(l)) : (i.number.push(o), s.push(Ir), n.push(parseFloat(l))), ++o, Xi)).split(Xi);
2082
+ const a = e.replace(ec, (l) => (z.test(l) ? (i.color.push(o), s.push(Ur), n.push(z.parse(l))) : l.startsWith(tc) ? (i.var.push(o), s.push(Ql), n.push(l)) : (i.number.push(o), s.push(Nr), n.push(parseFloat(l))), ++o, qi)).split(qi);
2046
2083
  return { values: n, split: a, indexes: i, types: s };
2047
2084
  }
2048
- function Ur(t) {
2085
+ function Wr(t) {
2049
2086
  return le(t).values;
2050
2087
  }
2051
- function Wr(t) {
2088
+ function $r(t) {
2052
2089
  const { split: e, types: n } = le(t), i = e.length;
2053
2090
  return (s) => {
2054
2091
  let o = "";
2055
2092
  for (let r = 0; r < i; r++)
2056
2093
  if (o += e[r], s[r] !== void 0) {
2057
2094
  const a = n[r];
2058
- a === Ir ? o += ne(s[r]) : a === Nr ? o += z.transform(s[r]) : o += s[r];
2095
+ a === Nr ? o += ne(s[r]) : a === Ur ? o += z.transform(s[r]) : o += s[r];
2059
2096
  }
2060
2097
  return o;
2061
2098
  };
2062
2099
  }
2063
- const Ql = (t) => typeof t == "number" ? 0 : t;
2064
- function tc(t) {
2065
- const e = Ur(t);
2066
- return Wr(t)(e.map(Ql));
2067
- }
2068
- const xt = {
2069
- test: Xl,
2070
- parse: Ur,
2071
- createTransformer: Wr,
2072
- getAnimatableNone: tc
2073
- }, ec = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2074
- function nc(t) {
2100
+ const nc = (t) => typeof t == "number" ? 0 : t;
2101
+ function ic(t) {
2102
+ const e = Wr(t);
2103
+ return $r(t)(e.map(nc));
2104
+ }
2105
+ const bt = {
2106
+ test: Jl,
2107
+ parse: Wr,
2108
+ createTransformer: $r,
2109
+ getAnimatableNone: ic
2110
+ }, sc = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2111
+ function rc(t) {
2075
2112
  const [e, n] = t.slice(0, -1).split("(");
2076
2113
  if (e === "drop-shadow")
2077
2114
  return t;
@@ -2079,16 +2116,16 @@ function nc(t) {
2079
2116
  if (!i)
2080
2117
  return t;
2081
2118
  const s = n.replace(i, "");
2082
- let o = ec.has(e) ? 1 : 0;
2119
+ let o = sc.has(e) ? 1 : 0;
2083
2120
  return i !== n && (o *= 100), e + "(" + o + s + ")";
2084
2121
  }
2085
- const ic = /\b([a-z-]*)\(.*?\)/gu, Sn = {
2086
- ...xt,
2122
+ const oc = /\b([a-z-]*)\(.*?\)/gu, Sn = {
2123
+ ...bt,
2087
2124
  getAnimatableNone: (t) => {
2088
- const e = t.match(ic);
2089
- return e ? e.map(nc).join(" ") : t;
2125
+ const e = t.match(oc);
2126
+ return e ? e.map(rc).join(" ") : t;
2090
2127
  }
2091
- }, sc = {
2128
+ }, ac = {
2092
2129
  ...Gn,
2093
2130
  // Color props
2094
2131
  color: z,
@@ -2104,23 +2141,23 @@ const ic = /\b([a-z-]*)\(.*?\)/gu, Sn = {
2104
2141
  borderLeftColor: z,
2105
2142
  filter: Sn,
2106
2143
  WebkitFilter: Sn
2107
- }, ii = (t) => sc[t];
2108
- function $r(t, e) {
2144
+ }, ii = (t) => ac[t];
2145
+ function Kr(t, e) {
2109
2146
  let n = ii(t);
2110
- return n !== Sn && (n = xt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2147
+ return n !== Sn && (n = bt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2111
2148
  }
2112
- const rc = /* @__PURE__ */ new Set(["auto", "none", "0"]);
2113
- function oc(t, e, n) {
2149
+ const lc = /* @__PURE__ */ new Set(["auto", "none", "0"]);
2150
+ function cc(t, e, n) {
2114
2151
  let i = 0, s;
2115
2152
  for (; i < t.length && !s; ) {
2116
2153
  const o = t[i];
2117
- typeof o == "string" && !rc.has(o) && le(o).values.length && (s = t[i]), i++;
2154
+ typeof o == "string" && !lc.has(o) && le(o).values.length && (s = t[i]), i++;
2118
2155
  }
2119
2156
  if (s && n)
2120
2157
  for (const o of e)
2121
- t[o] = $r(n, s);
2158
+ t[o] = Kr(n, s);
2122
2159
  }
2123
- class Kr extends ei {
2160
+ class Gr extends ei {
2124
2161
  constructor(e, n, i, s) {
2125
2162
  super(e, n, i, s, s == null ? void 0 : s.owner, !0);
2126
2163
  }
@@ -2132,15 +2169,15 @@ class Kr extends ei {
2132
2169
  for (let l = 0; l < e.length; l++) {
2133
2170
  let c = e[l];
2134
2171
  if (typeof c == "string" && (c = c.trim(), Hn(c))) {
2135
- const u = Lr(c, n.current);
2172
+ const u = Fr(c, n.current);
2136
2173
  u !== void 0 && (e[l] = u), l === e.length - 1 && (this.finalKeyframe = c);
2137
2174
  }
2138
2175
  }
2139
- if (this.resolveNoneKeyframes(), !Ul.has(i) || e.length !== 2)
2176
+ if (this.resolveNoneKeyframes(), !Kl.has(i) || e.length !== 2)
2140
2177
  return;
2141
- const [s, o] = e, r = Yi(s), a = Yi(o);
2178
+ const [s, o] = e, r = Xi(s), a = Xi(o);
2142
2179
  if (r !== a)
2143
- if (Gi(r) && Gi(a))
2180
+ if (Hi(r) && Hi(a))
2144
2181
  for (let l = 0; l < e.length; l++) {
2145
2182
  const c = e[l];
2146
2183
  typeof c == "string" && (e[l] = parseFloat(c));
@@ -2151,8 +2188,8 @@ class Kr extends ei {
2151
2188
  resolveNoneKeyframes() {
2152
2189
  const { unresolvedKeyframes: e, name: n } = this, i = [];
2153
2190
  for (let s = 0; s < e.length; s++)
2154
- _l(e[s]) && i.push(s);
2155
- i.length && oc(e, i, n);
2191
+ Nl(e[s]) && i.push(s);
2192
+ i.length && cc(e, i, n);
2156
2193
  }
2157
2194
  measureInitialState() {
2158
2195
  const { element: e, unresolvedKeyframes: n, name: i } = this;
@@ -2175,14 +2212,14 @@ class Kr extends ei {
2175
2212
  }), this.resolveNoneKeyframes();
2176
2213
  }
2177
2214
  }
2178
- function Gr(t) {
2215
+ function Hr(t) {
2179
2216
  let e;
2180
2217
  return () => (e === void 0 && (e = t()), e);
2181
2218
  }
2182
- const qi = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
2183
- (xt.test(t) || t === "0") && // And it contains numbers and/or colors
2219
+ const Zi = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
2220
+ (bt.test(t) || t === "0") && // And it contains numbers and/or colors
2184
2221
  !t.startsWith("url("));
2185
- function ac(t) {
2222
+ function uc(t) {
2186
2223
  const e = t[0];
2187
2224
  if (t.length === 1)
2188
2225
  return !0;
@@ -2190,16 +2227,16 @@ function ac(t) {
2190
2227
  if (t[n] !== e)
2191
2228
  return !0;
2192
2229
  }
2193
- function lc(t, e, n, i) {
2230
+ function fc(t, e, n, i) {
2194
2231
  const s = t[0];
2195
2232
  if (s === null)
2196
2233
  return !1;
2197
2234
  if (e === "display" || e === "visibility")
2198
2235
  return !0;
2199
- const o = t[t.length - 1], r = qi(s, e), a = qi(o, e);
2200
- return Gt(r === a, `You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`), !r || !a ? !1 : ac(t) || n === "spring" && i;
2236
+ const o = t[t.length - 1], r = Zi(s, e), a = Zi(o, e);
2237
+ return Gt(r === a, `You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`), !r || !a ? !1 : uc(t) || n === "spring" && i;
2201
2238
  }
2202
- class Hr {
2239
+ class zr {
2203
2240
  constructor({ autoplay: e = !0, delay: n = 0, type: i = "keyframes", repeat: s = 0, repeatDelay: o = 0, repeatType: r = "loop", ...a }) {
2204
2241
  this.isStopped = !1, this.hasAttemptedResolve = !1, this.options = {
2205
2242
  autoplay: e,
@@ -2217,7 +2254,7 @@ class Hr {
2217
2254
  * This is a deoptimisation, but at its worst still batches read/writes.
2218
2255
  */
2219
2256
  get resolved() {
2220
- return !this._resolved && !this.hasAttemptedResolve && Hl(), this._resolved;
2257
+ return !this._resolved && !this.hasAttemptedResolve && Xl(), this._resolved;
2221
2258
  }
2222
2259
  /**
2223
2260
  * A method to be called when the keyframes resolver completes. This method
@@ -2227,7 +2264,7 @@ class Hr {
2227
2264
  onKeyframesResolved(e, n) {
2228
2265
  this.hasAttemptedResolve = !0;
2229
2266
  const { name: i, type: s, velocity: o, delay: r, onComplete: a, onUpdate: l, isGenerator: c } = this.options;
2230
- if (!c && !lc(e, i, s, o))
2267
+ if (!c && !fc(e, i, s, o))
2231
2268
  if (r)
2232
2269
  this.options.duration = 0;
2233
2270
  else {
@@ -2257,20 +2294,20 @@ class Hr {
2257
2294
  });
2258
2295
  }
2259
2296
  }
2260
- function zr(t, e) {
2297
+ function Yr(t, e) {
2261
2298
  return e ? t * (1e3 / e) : 0;
2262
2299
  }
2263
- const cc = 5;
2264
- function Yr(t, e, n) {
2265
- const i = Math.max(e - cc, 0);
2266
- return zr(n - t(i), e - i);
2300
+ const hc = 5;
2301
+ function Xr(t, e, n) {
2302
+ const i = Math.max(e - hc, 0);
2303
+ return Yr(n - t(i), e - i);
2267
2304
  }
2268
- const an = 1e-3, uc = 0.01, Zi = 10, fc = 0.05, hc = 1;
2269
- function dc({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1 }) {
2305
+ const an = 1e-3, dc = 0.01, Ji = 10, pc = 0.05, mc = 1;
2306
+ function gc({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1 }) {
2270
2307
  let s, o;
2271
- Gt(t <= ht(Zi), "Spring duration must be 10 seconds or less");
2308
+ Gt(t <= ht(Ji), "Spring duration must be 10 seconds or less");
2272
2309
  let r = 1 - e;
2273
- r = bt(fc, hc, r), t = bt(uc, Zi, dt(t)), r < 1 ? (s = (c) => {
2310
+ r = Tt(pc, mc, r), t = Tt(dc, Ji, dt(t)), r < 1 ? (s = (c) => {
2274
2311
  const u = c * r, f = u * t, d = u - n, p = An(c, r), m = Math.exp(-f);
2275
2312
  return an - d / p * m;
2276
2313
  }, o = (c) => {
@@ -2283,7 +2320,7 @@ function dc({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1
2283
2320
  const u = Math.exp(-c * t), f = (n - c) * (t * t);
2284
2321
  return u * f;
2285
2322
  });
2286
- const a = 5 / t, l = mc(s, o, a);
2323
+ const a = 5 / t, l = vc(s, o, a);
2287
2324
  if (t = ht(t), isNaN(l))
2288
2325
  return {
2289
2326
  stiffness: 100,
@@ -2299,21 +2336,21 @@ function dc({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1
2299
2336
  };
2300
2337
  }
2301
2338
  }
2302
- const pc = 12;
2303
- function mc(t, e, n) {
2339
+ const yc = 12;
2340
+ function vc(t, e, n) {
2304
2341
  let i = n;
2305
- for (let s = 1; s < pc; s++)
2342
+ for (let s = 1; s < yc; s++)
2306
2343
  i = i - t(i) / e(i);
2307
2344
  return i;
2308
2345
  }
2309
2346
  function An(t, e) {
2310
2347
  return t * Math.sqrt(1 - e * e);
2311
2348
  }
2312
- const gc = ["duration", "bounce"], yc = ["stiffness", "damping", "mass"];
2313
- function Ji(t, e) {
2349
+ const Pc = ["duration", "bounce"], Tc = ["stiffness", "damping", "mass"];
2350
+ function Qi(t, e) {
2314
2351
  return e.some((n) => t[n] !== void 0);
2315
2352
  }
2316
- function vc(t) {
2353
+ function bc(t) {
2317
2354
  let e = {
2318
2355
  velocity: 0,
2319
2356
  stiffness: 100,
@@ -2322,8 +2359,8 @@ function vc(t) {
2322
2359
  isResolvedFromDuration: !1,
2323
2360
  ...t
2324
2361
  };
2325
- if (!Ji(t, yc) && Ji(t, gc)) {
2326
- const n = dc(t);
2362
+ if (!Qi(t, Tc) && Qi(t, Pc)) {
2363
+ const n = gc(t);
2327
2364
  e = {
2328
2365
  ...e,
2329
2366
  ...n,
@@ -2332,8 +2369,8 @@ function vc(t) {
2332
2369
  }
2333
2370
  return e;
2334
2371
  }
2335
- function Xr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2336
- const s = t[0], o = t[t.length - 1], r = { done: !1, value: s }, { stiffness: a, damping: l, mass: c, duration: u, velocity: f, isResolvedFromDuration: d } = vc({
2372
+ function qr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2373
+ const s = t[0], o = t[t.length - 1], r = { done: !1, value: s }, { stiffness: a, damping: l, mass: c, duration: u, velocity: f, isResolvedFromDuration: d } = bc({
2337
2374
  ...i,
2338
2375
  velocity: -dt(i.velocity || 0)
2339
2376
  }), p = f || 0, m = l / (2 * Math.sqrt(a * c)), v = o - s, x = dt(Math.sqrt(a / c)), P = Math.abs(v) < 5;
@@ -2362,7 +2399,7 @@ function Xr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2362
2399
  r.done = T >= u;
2363
2400
  else {
2364
2401
  let C = p;
2365
- T !== 0 && (m < 1 ? C = Yr(y, T, w) : C = 0);
2402
+ T !== 0 && (m < 1 ? C = Xr(y, T, w) : C = 0);
2366
2403
  const k = Math.abs(C) <= n, $ = Math.abs(o - w) <= e;
2367
2404
  r.done = k && $;
2368
2405
  }
@@ -2370,7 +2407,7 @@ function Xr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2370
2407
  }
2371
2408
  };
2372
2409
  }
2373
- function Qi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
2410
+ function ts({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
2374
2411
  const f = t[0], d = {
2375
2412
  done: !1,
2376
2413
  value: f
@@ -2384,9 +2421,9 @@ function Qi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2384
2421
  };
2385
2422
  let C, k;
2386
2423
  const $ = (R) => {
2387
- p(d.value) && (C = R, k = Xr({
2424
+ p(d.value) && (C = R, k = qr({
2388
2425
  keyframes: [d.value, m(d.value)],
2389
- velocity: Yr(T, R, d.value),
2426
+ velocity: Xr(T, R, d.value),
2390
2427
  // TODO: This should be passing * 1000
2391
2428
  damping: s,
2392
2429
  stiffness: o,
@@ -2402,39 +2439,39 @@ function Qi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2402
2439
  }
2403
2440
  };
2404
2441
  }
2405
- const qr = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Pc = 1e-7, Tc = 12;
2406
- function bc(t, e, n, i, s) {
2442
+ const Zr = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, xc = 1e-7, wc = 12;
2443
+ function Sc(t, e, n, i, s) {
2407
2444
  let o, r, a = 0;
2408
2445
  do
2409
- r = e + (n - e) / 2, o = qr(r, i, s) - t, o > 0 ? n = r : e = r;
2410
- while (Math.abs(o) > Pc && ++a < Tc);
2446
+ r = e + (n - e) / 2, o = Zr(r, i, s) - t, o > 0 ? n = r : e = r;
2447
+ while (Math.abs(o) > xc && ++a < wc);
2411
2448
  return r;
2412
2449
  }
2413
2450
  function ye(t, e, n, i) {
2414
2451
  if (t === e && n === i)
2415
2452
  return H;
2416
- const s = (o) => bc(o, 0, 1, t, n);
2417
- return (o) => o === 0 || o === 1 ? o : qr(s(o), e, i);
2453
+ const s = (o) => Sc(o, 0, 1, t, n);
2454
+ return (o) => o === 0 || o === 1 ? o : Zr(s(o), e, i);
2418
2455
  }
2419
- const xc = ye(0.42, 0, 1, 1), wc = ye(0, 0, 0.58, 1), Zr = ye(0.42, 0, 0.58, 1), Sc = (t) => Array.isArray(t) && typeof t[0] != "number", Jr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Qr = (t) => (e) => 1 - t(1 - e), si = (t) => 1 - Math.sin(Math.acos(t)), to = Qr(si), Ac = Jr(si), eo = ye(0.33, 1.53, 0.69, 0.99), ri = Qr(eo), Cc = Jr(ri), Rc = (t) => (t *= 2) < 1 ? 0.5 * ri(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), ts = {
2456
+ const Ac = ye(0.42, 0, 1, 1), Cc = ye(0, 0, 0.58, 1), Jr = ye(0.42, 0, 0.58, 1), Rc = (t) => Array.isArray(t) && typeof t[0] != "number", Qr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, to = (t) => (e) => 1 - t(1 - e), si = (t) => 1 - Math.sin(Math.acos(t)), eo = to(si), Ec = Qr(si), no = ye(0.33, 1.53, 0.69, 0.99), ri = to(no), Vc = Qr(ri), Dc = (t) => (t *= 2) < 1 ? 0.5 * ri(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), es = {
2420
2457
  linear: H,
2421
- easeIn: xc,
2422
- easeInOut: Zr,
2423
- easeOut: wc,
2458
+ easeIn: Ac,
2459
+ easeInOut: Jr,
2460
+ easeOut: Cc,
2424
2461
  circIn: si,
2425
- circInOut: Ac,
2426
- circOut: to,
2462
+ circInOut: Ec,
2463
+ circOut: eo,
2427
2464
  backIn: ri,
2428
- backInOut: Cc,
2429
- backOut: eo,
2430
- anticipate: Rc
2431
- }, es = (t) => {
2465
+ backInOut: Vc,
2466
+ backOut: no,
2467
+ anticipate: Dc
2468
+ }, ns = (t) => {
2432
2469
  if (Array.isArray(t)) {
2433
2470
  pt(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
2434
2471
  const [e, n, i, s] = t;
2435
2472
  return ye(e, n, i, s);
2436
2473
  } else if (typeof t == "string")
2437
- return pt(ts[t] !== void 0, `Invalid easing type '${t}'`), ts[t];
2474
+ return pt(es[t] !== void 0, `Invalid easing type '${t}'`), es[t];
2438
2475
  return t;
2439
2476
  }, ce = (t, e, n) => {
2440
2477
  const i = e - t;
@@ -2443,7 +2480,7 @@ const xc = ye(0.42, 0, 1, 1), wc = ye(0, 0, 0.58, 1), Zr = ye(0.42, 0, 0.58, 1),
2443
2480
  function ln(t, e, n) {
2444
2481
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
2445
2482
  }
2446
- function Ec({ hue: t, saturation: e, lightness: n, alpha: i }) {
2483
+ function Mc({ hue: t, saturation: e, lightness: n, alpha: i }) {
2447
2484
  t /= 360, e /= 100, n /= 100;
2448
2485
  let s = 0, o = 0, r = 0;
2449
2486
  if (!e)
@@ -2465,31 +2502,31 @@ function Fe(t, e) {
2465
2502
  const cn = (t, e, n) => {
2466
2503
  const i = t * t, s = n * (e * e - i) + i;
2467
2504
  return s < 0 ? 0 : Math.sqrt(s);
2468
- }, Vc = [wn, Vt, It], Dc = (t) => Vc.find((e) => e.test(t));
2469
- function ns(t) {
2470
- const e = Dc(t);
2505
+ }, kc = [wn, Vt, It], Lc = (t) => kc.find((e) => e.test(t));
2506
+ function is(t) {
2507
+ const e = Lc(t);
2471
2508
  if (Gt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
2472
2509
  return !1;
2473
2510
  let n = e.parse(t);
2474
- return e === It && (n = Ec(n)), n;
2511
+ return e === It && (n = Mc(n)), n;
2475
2512
  }
2476
- const is = (t, e) => {
2477
- const n = ns(t), i = ns(e);
2513
+ const ss = (t, e) => {
2514
+ const n = is(t), i = is(e);
2478
2515
  if (!n || !i)
2479
2516
  return Fe(t, e);
2480
2517
  const s = { ...n };
2481
2518
  return (o) => (s.red = cn(n.red, i.red, o), s.green = cn(n.green, i.green, o), s.blue = cn(n.blue, i.blue, o), s.alpha = j(n.alpha, i.alpha, o), Vt.transform(s));
2482
2519
  }, Cn = /* @__PURE__ */ new Set(["none", "hidden"]);
2483
- function Mc(t, e) {
2520
+ function Fc(t, e) {
2484
2521
  return Cn.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
2485
2522
  }
2486
- function kc(t, e) {
2523
+ function Oc(t, e) {
2487
2524
  return (n) => j(t, e, n);
2488
2525
  }
2489
2526
  function oi(t) {
2490
- return typeof t == "number" ? kc : typeof t == "string" ? Hn(t) ? Fe : z.test(t) ? is : Oc : Array.isArray(t) ? no : typeof t == "object" ? z.test(t) ? is : Lc : Fe;
2527
+ return typeof t == "number" ? Oc : typeof t == "string" ? Hn(t) ? Fe : z.test(t) ? ss : Bc : Array.isArray(t) ? io : typeof t == "object" ? z.test(t) ? ss : jc : Fe;
2491
2528
  }
2492
- function no(t, e) {
2529
+ function io(t, e) {
2493
2530
  const n = [...t], i = n.length, s = t.map((o, r) => oi(o)(o, e[r]));
2494
2531
  return (o) => {
2495
2532
  for (let r = 0; r < i; r++)
@@ -2497,7 +2534,7 @@ function no(t, e) {
2497
2534
  return n;
2498
2535
  };
2499
2536
  }
2500
- function Lc(t, e) {
2537
+ function jc(t, e) {
2501
2538
  const n = { ...t, ...e }, i = {};
2502
2539
  for (const s in n)
2503
2540
  t[s] !== void 0 && e[s] !== void 0 && (i[s] = oi(t[s])(t[s], e[s]));
@@ -2507,7 +2544,7 @@ function Lc(t, e) {
2507
2544
  return n;
2508
2545
  };
2509
2546
  }
2510
- function Fc(t, e) {
2547
+ function _c(t, e) {
2511
2548
  var n;
2512
2549
  const i = [], s = { color: 0, var: 0, number: 0 };
2513
2550
  for (let o = 0; o < e.values.length; o++) {
@@ -2516,15 +2553,15 @@ function Fc(t, e) {
2516
2553
  }
2517
2554
  return i;
2518
2555
  }
2519
- const Oc = (t, e) => {
2520
- const n = xt.createTransformer(e), i = le(t), s = le(e);
2521
- return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? Cn.has(t) && !s.values.length || Cn.has(e) && !i.values.length ? Mc(t, e) : ft(no(Fc(i, s), s.values), n) : (Gt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Fe(t, e));
2556
+ const Bc = (t, e) => {
2557
+ const n = bt.createTransformer(e), i = le(t), s = le(e);
2558
+ return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? Cn.has(t) && !s.values.length || Cn.has(e) && !i.values.length ? Fc(t, e) : ft(io(_c(i, s), s.values), n) : (Gt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Fe(t, e));
2522
2559
  };
2523
- function io(t, e, n) {
2560
+ function so(t, e, n) {
2524
2561
  return typeof t == "number" && typeof e == "number" && typeof n == "number" ? j(t, e, n) : oi(t)(t, e);
2525
2562
  }
2526
- function jc(t, e, n) {
2527
- const i = [], s = n || io, o = t.length - 1;
2563
+ function Ic(t, e, n) {
2564
+ const i = [], s = n || so, o = t.length - 1;
2528
2565
  for (let r = 0; r < o; r++) {
2529
2566
  let a = s(t[r], t[r + 1]);
2530
2567
  if (e) {
@@ -2535,14 +2572,14 @@ function jc(t, e, n) {
2535
2572
  }
2536
2573
  return i;
2537
2574
  }
2538
- function _c(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
2575
+ function Nc(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
2539
2576
  const o = t.length;
2540
2577
  if (pt(o === e.length, "Both input and output ranges must be the same length"), o === 1)
2541
2578
  return () => e[0];
2542
2579
  if (o === 2 && t[0] === t[1])
2543
2580
  return () => e[1];
2544
2581
  t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
2545
- const r = jc(e, i, s), a = r.length, l = (c) => {
2582
+ const r = Ic(e, i, s), a = r.length, l = (c) => {
2546
2583
  let u = 0;
2547
2584
  if (a > 1)
2548
2585
  for (; u < t.length - 2 && !(c < t[u + 1]); u++)
@@ -2550,52 +2587,52 @@ function _c(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
2550
2587
  const f = ce(t[u], t[u + 1], c);
2551
2588
  return r[u](f);
2552
2589
  };
2553
- return n ? (c) => l(bt(t[0], t[o - 1], c)) : l;
2590
+ return n ? (c) => l(Tt(t[0], t[o - 1], c)) : l;
2554
2591
  }
2555
- function Bc(t, e) {
2592
+ function Uc(t, e) {
2556
2593
  const n = t[t.length - 1];
2557
2594
  for (let i = 1; i <= e; i++) {
2558
2595
  const s = ce(0, e, i);
2559
2596
  t.push(j(n, 1, s));
2560
2597
  }
2561
2598
  }
2562
- function Ic(t) {
2599
+ function Wc(t) {
2563
2600
  const e = [0];
2564
- return Bc(e, t.length - 1), e;
2601
+ return Uc(e, t.length - 1), e;
2565
2602
  }
2566
- function Nc(t, e) {
2603
+ function $c(t, e) {
2567
2604
  return t.map((n) => n * e);
2568
2605
  }
2569
- function Uc(t, e) {
2570
- return t.map(() => e || Zr).splice(0, t.length - 1);
2606
+ function Kc(t, e) {
2607
+ return t.map(() => e || Jr).splice(0, t.length - 1);
2571
2608
  }
2572
2609
  function Oe({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
2573
- const s = Sc(i) ? i.map(es) : es(i), o = {
2610
+ const s = Rc(i) ? i.map(ns) : ns(i), o = {
2574
2611
  done: !1,
2575
2612
  value: e[0]
2576
- }, r = Nc(
2613
+ }, r = $c(
2577
2614
  // Only use the provided offsets if they're the correct length
2578
2615
  // TODO Maybe we should warn here if there's a length mismatch
2579
- n && n.length === e.length ? n : Ic(e),
2616
+ n && n.length === e.length ? n : Wc(e),
2580
2617
  t
2581
- ), a = _c(r, e, {
2582
- ease: Array.isArray(s) ? s : Uc(e, s)
2618
+ ), a = Nc(r, e, {
2619
+ ease: Array.isArray(s) ? s : Kc(e, s)
2583
2620
  });
2584
2621
  return {
2585
2622
  calculatedDuration: t,
2586
2623
  next: (l) => (o.value = a(l), o.done = l >= t, o)
2587
2624
  };
2588
2625
  }
2589
- const ss = 2e4;
2590
- function Wc(t) {
2626
+ const rs = 2e4;
2627
+ function Gc(t) {
2591
2628
  let e = 0;
2592
2629
  const n = 50;
2593
2630
  let i = t.next(e);
2594
- for (; !i.done && e < ss; )
2631
+ for (; !i.done && e < rs; )
2595
2632
  e += n, i = t.next(e);
2596
- return e >= ss ? 1 / 0 : e;
2633
+ return e >= rs ? 1 / 0 : e;
2597
2634
  }
2598
- const $c = (t) => {
2635
+ const Hc = (t) => {
2599
2636
  const e = ({ timestamp: n }) => t(n);
2600
2637
  return {
2601
2638
  start: () => M.update(e, !0),
@@ -2604,16 +2641,16 @@ const $c = (t) => {
2604
2641
  * If we're processing this frame we can use the
2605
2642
  * framelocked timestamp to keep things in sync.
2606
2643
  */
2607
- now: () => K.isProcessing ? K.timestamp : Tt.now()
2644
+ now: () => K.isProcessing ? K.timestamp : Pt.now()
2608
2645
  };
2609
- }, Kc = {
2610
- decay: Qi,
2611
- inertia: Qi,
2646
+ }, zc = {
2647
+ decay: ts,
2648
+ inertia: ts,
2612
2649
  tween: Oe,
2613
2650
  keyframes: Oe,
2614
- spring: Xr
2615
- }, Gc = (t) => t / 100;
2616
- class ai extends Hr {
2651
+ spring: qr
2652
+ }, Yc = (t) => t / 100;
2653
+ class ai extends zr {
2617
2654
  constructor({ KeyframeResolver: e = ei, ...n }) {
2618
2655
  super(n), this.holdTime = null, this.startTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.state = "idle", this.stop = () => {
2619
2656
  if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
@@ -2626,15 +2663,15 @@ class ai extends Hr {
2626
2663
  i && s && s.owner ? this.resolver = s.owner.resolveKeyframes(o, r, i, s) : this.resolver = new e(o, r, i, s), this.resolver.scheduleResolve();
2627
2664
  }
2628
2665
  initPlayback(e) {
2629
- const { type: n = "keyframes", repeat: i = 0, repeatDelay: s = 0, repeatType: o, velocity: r = 0 } = this.options, a = Kc[n] || Oe;
2666
+ const { type: n = "keyframes", repeat: i = 0, repeatDelay: s = 0, repeatType: o, velocity: r = 0 } = this.options, a = zc[n] || Oe;
2630
2667
  let l, c;
2631
- a !== Oe && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && pt(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = ft(Gc, io(e[0], e[1])), e = [0, 100]);
2668
+ a !== Oe && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && pt(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = ft(Yc, so(e[0], e[1])), e = [0, 100]);
2632
2669
  const u = a({ ...this.options, keyframes: e });
2633
2670
  o === "mirror" && (c = a({
2634
2671
  ...this.options,
2635
2672
  keyframes: [...e].reverse(),
2636
2673
  velocity: -r
2637
- })), u.calculatedDuration === null && (u.calculatedDuration = Wc(u));
2674
+ })), u.calculatedDuration === null && (u.calculatedDuration = Gc(u));
2638
2675
  const { calculatedDuration: f } = u, d = f + s, p = d * (i + 1) - s;
2639
2676
  return {
2640
2677
  generator: u,
@@ -2666,7 +2703,7 @@ class ai extends Hr {
2666
2703
  if (p) {
2667
2704
  const R = Math.min(this.currentTime, u) / f;
2668
2705
  let _ = Math.floor(R), U = R % 1;
2669
- !U && R >= 1 && (U = 1), U === 1 && _--, _ = Math.min(_, p + 1), !!(_ % 2) && (m === "reverse" ? (U = 1 - U, v && (U -= v / f)) : m === "mirror" && (w = r)), T = bt(0, 1, U) * f;
2706
+ !U && R >= 1 && (U = 1), U === 1 && _--, _ = Math.min(_, p + 1), !!(_ % 2) && (m === "reverse" ? (U = 1 - U, v && (U -= v / f)) : m === "mirror" && (w = r)), T = Tt(0, 1, U) * f;
2670
2707
  }
2671
2708
  const C = y ? { done: !1, value: l[0] } : w.next(T);
2672
2709
  a && (C.value = a(C.value));
@@ -2699,7 +2736,7 @@ class ai extends Hr {
2699
2736
  }
2700
2737
  if (this.isStopped)
2701
2738
  return;
2702
- const { driver: e = $c, onPlay: n } = this.options;
2739
+ const { driver: e = Hc, onPlay: n } = this.options;
2703
2740
  this.driver || (this.driver = e((s) => this.tick(s))), n && n();
2704
2741
  const i = this.driver.now();
2705
2742
  this.holdTime !== null ? this.startTime = i - this.holdTime : (!this.startTime || this.state === "finished") && (this.startTime = i), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
@@ -2733,9 +2770,9 @@ class ai extends Hr {
2733
2770
  return this.startTime = 0, this.tick(e, !0);
2734
2771
  }
2735
2772
  }
2736
- const so = (t) => Array.isArray(t) && typeof t[0] == "number";
2737
- function ro(t) {
2738
- return !!(!t || typeof t == "string" && t in li || so(t) || Array.isArray(t) && t.every(ro));
2773
+ const ro = (t) => Array.isArray(t) && typeof t[0] == "number";
2774
+ function oo(t) {
2775
+ return !!(!t || typeof t == "string" && t in li || ro(t) || Array.isArray(t) && t.every(oo));
2739
2776
  }
2740
2777
  const Qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, li = {
2741
2778
  linear: "linear",
@@ -2748,17 +2785,17 @@ const Qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, li = {
2748
2785
  backIn: Qt([0.31, 0.01, 0.66, -0.59]),
2749
2786
  backOut: Qt([0.33, 1.53, 0.69, 0.99])
2750
2787
  };
2751
- function Hc(t) {
2752
- return oo(t) || li.easeOut;
2788
+ function Xc(t) {
2789
+ return ao(t) || li.easeOut;
2753
2790
  }
2754
- function oo(t) {
2791
+ function ao(t) {
2755
2792
  if (t)
2756
- return so(t) ? Qt(t) : Array.isArray(t) ? t.map(Hc) : li[t];
2793
+ return ro(t) ? Qt(t) : Array.isArray(t) ? t.map(Xc) : li[t];
2757
2794
  }
2758
- function zc(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatType: r = "loop", ease: a, times: l } = {}) {
2795
+ function qc(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatType: r = "loop", ease: a, times: l } = {}) {
2759
2796
  const c = { [e]: n };
2760
2797
  l && (c.offset = l);
2761
- const u = oo(a);
2798
+ const u = ao(a);
2762
2799
  return Array.isArray(u) && (c.easing = u), t.animate(c, {
2763
2800
  delay: i,
2764
2801
  duration: s,
@@ -2768,11 +2805,11 @@ function zc(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatTyp
2768
2805
  direction: r === "reverse" ? "alternate" : "normal"
2769
2806
  });
2770
2807
  }
2771
- const Yc = Gr(() => Object.hasOwnProperty.call(Element.prototype, "animate")), je = 10, Xc = 2e4;
2772
- function qc(t) {
2773
- return t.type === "spring" || !ro(t.ease);
2808
+ const Zc = Hr(() => Object.hasOwnProperty.call(Element.prototype, "animate")), je = 10, Jc = 2e4;
2809
+ function Qc(t) {
2810
+ return t.type === "spring" || !oo(t.ease);
2774
2811
  }
2775
- function Zc(t, e) {
2812
+ function tu(t, e) {
2776
2813
  const n = new ai({
2777
2814
  ...e,
2778
2815
  keyframes: t,
@@ -2783,7 +2820,7 @@ function Zc(t, e) {
2783
2820
  let i = { done: !1, value: t[0] };
2784
2821
  const s = [];
2785
2822
  let o = 0;
2786
- for (; !i.done && o < Xc; )
2823
+ for (; !i.done && o < Jc; )
2787
2824
  i = n.sample(o), s.push(i.value), o += je;
2788
2825
  return {
2789
2826
  times: void 0,
@@ -2792,23 +2829,23 @@ function Zc(t, e) {
2792
2829
  ease: "linear"
2793
2830
  };
2794
2831
  }
2795
- class rs extends Hr {
2832
+ class os extends zr {
2796
2833
  constructor(e) {
2797
2834
  super(e);
2798
2835
  const { name: n, motionValue: i, keyframes: s } = this.options;
2799
- this.resolver = new Kr(s, (o, r) => this.onKeyframesResolved(o, r), n, i), this.resolver.scheduleResolve();
2836
+ this.resolver = new Gr(s, (o, r) => this.onKeyframesResolved(o, r), n, i), this.resolver.scheduleResolve();
2800
2837
  }
2801
2838
  initPlayback(e, n) {
2802
2839
  var i;
2803
2840
  let { duration: s = 300, times: o, ease: r, type: a, motionValue: l, name: c } = this.options;
2804
2841
  if (!(!((i = l.owner) === null || i === void 0) && i.current))
2805
2842
  return !1;
2806
- if (qc(this.options)) {
2807
- const { onComplete: f, onUpdate: d, motionValue: p, ...m } = this.options, v = Zc(e, m);
2843
+ if (Qc(this.options)) {
2844
+ const { onComplete: f, onUpdate: d, motionValue: p, ...m } = this.options, v = tu(e, m);
2808
2845
  e = v.keyframes, e.length === 1 && (e[1] = e[0]), s = v.duration, o = v.times, r = v.ease, a = "keyframes";
2809
2846
  }
2810
- const u = zc(l.owner.current, c, e, { ...this.options, duration: s, times: o, ease: r });
2811
- return u.startTime = Tt.now(), this.pendingTimeline ? (u.timeline = this.pendingTimeline, this.pendingTimeline = void 0) : u.onfinish = () => {
2847
+ const u = qc(l.owner.current, c, e, { ...this.options, duration: s, times: o, ease: r });
2848
+ return u.startTime = Pt.now(), this.pendingTimeline ? (u.timeline = this.pendingTimeline, this.pendingTimeline = void 0) : u.onfinish = () => {
2812
2849
  const { onComplete: f } = this.options;
2813
2850
  l.set(He(e, this.options, n)), f && f(), this.cancel(), this.resolveFinishedPromise();
2814
2851
  }, {
@@ -2929,14 +2966,14 @@ class rs extends Hr {
2929
2966
  }
2930
2967
  static supports(e) {
2931
2968
  const { motionValue: n, name: i, repeatDelay: s, repeatType: o, damping: r, type: a } = e;
2932
- return Yc() && i && xr.has(i) && n && n.owner && n.owner.current instanceof HTMLElement && /**
2969
+ return Zc() && i && wr.has(i) && n && n.owner && n.owner.current instanceof HTMLElement && /**
2933
2970
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
2934
2971
  * no way to read the value from WAAPI every frame.
2935
2972
  */
2936
2973
  !n.owner.getProps().onUpdate && !s && o !== "mirror" && r !== 0 && a !== "inertia";
2937
2974
  }
2938
2975
  }
2939
- function Jc(t, e) {
2976
+ function eu(t, e) {
2940
2977
  let n;
2941
2978
  const i = () => {
2942
2979
  const { currentTime: s } = e, r = (s === null ? 0 : s.value) / 100;
@@ -2944,8 +2981,8 @@ function Jc(t, e) {
2944
2981
  };
2945
2982
  return M.update(i, !0), () => mt(i);
2946
2983
  }
2947
- const Qc = Gr(() => window.ScrollTimeline !== void 0);
2948
- class tu {
2984
+ const nu = Hr(() => window.ScrollTimeline !== void 0);
2985
+ class iu {
2949
2986
  constructor(e) {
2950
2987
  this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
2951
2988
  }
@@ -2964,10 +3001,10 @@ class tu {
2964
3001
  }
2965
3002
  attachTimeline(e) {
2966
3003
  const n = this.animations.map((i) => {
2967
- if (Qc() && i.attachTimeline)
3004
+ if (nu() && i.attachTimeline)
2968
3005
  i.attachTimeline(e);
2969
3006
  else
2970
- return i.pause(), Jc((s) => {
3007
+ return i.pause(), eu((s) => {
2971
3008
  i.time = i.duration * s;
2972
3009
  }, e);
2973
3010
  });
@@ -3032,9 +3069,9 @@ const ci = (t, e, n, i = {}, s, o, r) => (a) => {
3032
3069
  motionValue: e,
3033
3070
  element: o ? void 0 : s
3034
3071
  };
3035
- Fl(l) || (f = {
3072
+ _l(l) || (f = {
3036
3073
  ...f,
3037
- ...Ll(t, f)
3074
+ ...jl(t, f)
3038
3075
  }), f.duration && (f.duration = ht(f.duration)), f.repeatDelay && (f.repeatDelay = ht(f.repeatDelay)), f.from !== void 0 && (f.keyframes[0] = f.from);
3039
3076
  let d = !1;
3040
3077
  if ((f.type === !1 || f.duration === 0 && !f.repeatDelay) && (f.duration = 0, f.delay === 0 && (d = !0)), d && !o && e.get() !== void 0) {
@@ -3042,9 +3079,9 @@ const ci = (t, e, n, i = {}, s, o, r) => (a) => {
3042
3079
  if (p !== void 0)
3043
3080
  return M.update(() => {
3044
3081
  f.onUpdate(p), f.onComplete();
3045
- }), new tu([]);
3082
+ }), new iu([]);
3046
3083
  }
3047
- return !o && rs.supports(f) ? new rs(f) : new ai(f);
3084
+ return !o && os.supports(f) ? new os(f) : new ai(f);
3048
3085
  };
3049
3086
  class ui {
3050
3087
  constructor() {
@@ -3071,12 +3108,12 @@ class ui {
3071
3108
  this.subscriptions.length = 0;
3072
3109
  }
3073
3110
  }
3074
- const os = /* @__PURE__ */ new Set();
3111
+ const as = /* @__PURE__ */ new Set();
3075
3112
  function fi(t, e, n) {
3076
- t || os.has(e) || (console.warn(e), n && console.warn(n), os.add(e));
3113
+ t || as.has(e) || (console.warn(e), n && console.warn(n), as.add(e));
3077
3114
  }
3078
- const as = 30, eu = (t) => !isNaN(parseFloat(t));
3079
- class ao {
3115
+ const ls = 30, su = (t) => !isNaN(parseFloat(t));
3116
+ class lo {
3080
3117
  /**
3081
3118
  * @param init - The initiating value
3082
3119
  * @param config - Optional configuration options
@@ -3087,12 +3124,12 @@ class ao {
3087
3124
  */
3088
3125
  constructor(e, n = {}) {
3089
3126
  this.version = "11.3.21", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i, s = !0) => {
3090
- const o = Tt.now();
3127
+ const o = Pt.now();
3091
3128
  this.updatedAt !== o && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), s && this.events.renderRequest && this.events.renderRequest.notify(this.current);
3092
3129
  }, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
3093
3130
  }
3094
3131
  setCurrent(e) {
3095
- this.current = e, this.updatedAt = Tt.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = eu(this.current));
3132
+ this.current = e, this.updatedAt = Pt.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = su(this.current));
3096
3133
  }
3097
3134
  setPrevFrameValue(e = this.current) {
3098
3135
  this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -3213,11 +3250,11 @@ class ao {
3213
3250
  * @public
3214
3251
  */
3215
3252
  getVelocity() {
3216
- const e = Tt.now();
3217
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > as)
3253
+ const e = Pt.now();
3254
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > ls)
3218
3255
  return 0;
3219
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, as);
3220
- return zr(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
3256
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, ls);
3257
+ return Yr(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
3221
3258
  }
3222
3259
  /**
3223
3260
  * Registers a new animation to control this `MotionValue`. Only one
@@ -3271,29 +3308,29 @@ class ao {
3271
3308
  }
3272
3309
  }
3273
3310
  function ue(t, e) {
3274
- return new ao(t, e);
3311
+ return new lo(t, e);
3275
3312
  }
3276
- function nu(t, e, n) {
3313
+ function ru(t, e, n) {
3277
3314
  t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, ue(n));
3278
3315
  }
3279
- function iu(t, e) {
3316
+ function ou(t, e) {
3280
3317
  const n = Ge(t, e);
3281
3318
  let { transitionEnd: i = {}, transition: s = {}, ...o } = n || {};
3282
3319
  o = { ...o, ...i };
3283
3320
  for (const r in o) {
3284
- const a = cl(o[r]);
3285
- nu(t, r, a);
3321
+ const a = hl(o[r]);
3322
+ ru(t, r, a);
3286
3323
  }
3287
3324
  }
3288
- function lo(t) {
3289
- return t.getProps()[or];
3325
+ function co(t) {
3326
+ return t.getProps()[ar];
3290
3327
  }
3291
- class su extends ao {
3328
+ class au extends lo {
3292
3329
  constructor() {
3293
3330
  super(...arguments), this.output = [], this.counts = /* @__PURE__ */ new Map();
3294
3331
  }
3295
3332
  add(e) {
3296
- const n = wr(e);
3333
+ const n = Sr(e);
3297
3334
  if (!n)
3298
3335
  return;
3299
3336
  const i = this.counts.get(n) || 0;
@@ -3311,7 +3348,7 @@ class su extends ao {
3311
3348
  this.set(this.output.length ? this.output.join(", ") : "auto");
3312
3349
  }
3313
3350
  }
3314
- function ru(t) {
3351
+ function lu(t) {
3315
3352
  return !!(Y(t) && t.add);
3316
3353
  }
3317
3354
  function Rn(t, e) {
@@ -3319,21 +3356,21 @@ function Rn(t, e) {
3319
3356
  if (!t.applyWillChange)
3320
3357
  return;
3321
3358
  let i = t.getValue("willChange");
3322
- if (!i && !(!((n = t.props.style) === null || n === void 0) && n.willChange) && (i = new su("auto"), t.addValue("willChange", i)), ru(i))
3359
+ if (!i && !(!((n = t.props.style) === null || n === void 0) && n.willChange) && (i = new au("auto"), t.addValue("willChange", i)), lu(i))
3323
3360
  return i.add(e);
3324
3361
  }
3325
- function ou({ protectedKeys: t, needsAnimating: e }, n) {
3362
+ function cu({ protectedKeys: t, needsAnimating: e }, n) {
3326
3363
  const i = t.hasOwnProperty(n) && e[n] !== !0;
3327
3364
  return e[n] = !1, i;
3328
3365
  }
3329
- function co(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3366
+ function uo(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3330
3367
  var o;
3331
3368
  let { transition: r = t.getDefaultTransition(), transitionEnd: a, ...l } = e;
3332
3369
  i && (r = i);
3333
3370
  const c = [], u = s && t.animationState && t.animationState.getState()[s];
3334
3371
  for (const f in l) {
3335
3372
  const d = t.getValue(f, (o = t.latestValues[f]) !== null && o !== void 0 ? o : null), p = l[f];
3336
- if (p === void 0 || u && ou(u, f))
3373
+ if (p === void 0 || u && cu(u, f))
3337
3374
  continue;
3338
3375
  const m = {
3339
3376
  delay: n,
@@ -3342,19 +3379,19 @@ function co(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3342
3379
  };
3343
3380
  let v = !1;
3344
3381
  if (window.HandoffAppearAnimations) {
3345
- const P = lo(t);
3382
+ const P = co(t);
3346
3383
  if (P) {
3347
3384
  const y = window.HandoffAppearAnimations(P, f, d, M);
3348
3385
  y !== null && (m.elapsed = y, v = !0);
3349
3386
  }
3350
3387
  }
3351
- d.start(ci(f, d, p, t.shouldReduceMotion && wt.has(f) ? { type: !1 } : m, t, v, Rn(t, f)));
3388
+ d.start(ci(f, d, p, t.shouldReduceMotion && xt.has(f) ? { type: !1 } : m, t, v, Rn(t, f)));
3352
3389
  const x = d.animation;
3353
3390
  x && c.push(x);
3354
3391
  }
3355
3392
  return a && Promise.all(c).then(() => {
3356
3393
  M.update(() => {
3357
- a && iu(t, a);
3394
+ a && ou(t, a);
3358
3395
  });
3359
3396
  }), c;
3360
3397
  }
@@ -3363,9 +3400,9 @@ function En(t, e, n = {}) {
3363
3400
  const s = Ge(t, e, n.type === "exit" ? (i = t.presenceContext) === null || i === void 0 ? void 0 : i.custom : void 0);
3364
3401
  let { transition: o = t.getDefaultTransition() || {} } = s || {};
3365
3402
  n.transitionOverride && (o = n.transitionOverride);
3366
- const r = s ? () => Promise.all(co(t, s, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
3403
+ const r = s ? () => Promise.all(uo(t, s, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
3367
3404
  const { delayChildren: u = 0, staggerChildren: f, staggerDirection: d } = o;
3368
- return au(t, e, u + c, f, d, n);
3405
+ return uu(t, e, u + c, f, d, n);
3369
3406
  } : () => Promise.resolve(), { when: l } = o;
3370
3407
  if (l) {
3371
3408
  const [c, u] = l === "beforeChildren" ? [r, a] : [a, r];
@@ -3373,19 +3410,19 @@ function En(t, e, n = {}) {
3373
3410
  } else
3374
3411
  return Promise.all([r(), a(n.delay)]);
3375
3412
  }
3376
- function au(t, e, n = 0, i = 0, s = 1, o) {
3413
+ function uu(t, e, n = 0, i = 0, s = 1, o) {
3377
3414
  const r = [], a = (t.variantChildren.size - 1) * i, l = s === 1 ? (c = 0) => c * i : (c = 0) => a - c * i;
3378
- return Array.from(t.variantChildren).sort(lu).forEach((c, u) => {
3415
+ return Array.from(t.variantChildren).sort(fu).forEach((c, u) => {
3379
3416
  c.notify("AnimationStart", e), r.push(En(c, e, {
3380
3417
  ...o,
3381
3418
  delay: n + l(u)
3382
3419
  }).then(() => c.notify("AnimationComplete", e)));
3383
3420
  }), Promise.all(r);
3384
3421
  }
3385
- function lu(t, e) {
3422
+ function fu(t, e) {
3386
3423
  return t.sortNodePosition(e);
3387
3424
  }
3388
- function cu(t, e, n = {}) {
3425
+ function hu(t, e, n = {}) {
3389
3426
  t.notify("AnimationStart", e);
3390
3427
  let i;
3391
3428
  if (Array.isArray(e)) {
@@ -3395,18 +3432,18 @@ function cu(t, e, n = {}) {
3395
3432
  i = En(t, e, n);
3396
3433
  else {
3397
3434
  const s = typeof e == "function" ? Ge(t, e, n.custom) : e;
3398
- i = Promise.all(co(t, s, n));
3435
+ i = Promise.all(uo(t, s, n));
3399
3436
  }
3400
3437
  return i.then(() => {
3401
3438
  t.notify("AnimationComplete", e);
3402
3439
  });
3403
3440
  }
3404
- const uu = [...Nn].reverse(), fu = Nn.length;
3405
- function hu(t) {
3406
- return (e) => Promise.all(e.map(({ animation: n, options: i }) => cu(t, n, i)));
3441
+ const du = [...Nn].reverse(), pu = Nn.length;
3442
+ function mu(t) {
3443
+ return (e) => Promise.all(e.map(({ animation: n, options: i }) => hu(t, n, i)));
3407
3444
  }
3408
- function du(t) {
3409
- let e = hu(t), n = ls(), i = !0;
3445
+ function gu(t) {
3446
+ let e = mu(t), n = cs(), i = !0;
3410
3447
  const s = (l) => (c, u) => {
3411
3448
  var f;
3412
3449
  const d = Ge(t, u, l === "exit" ? (f = t.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
@@ -3422,8 +3459,8 @@ function du(t) {
3422
3459
  function r(l) {
3423
3460
  const c = t.getProps(), u = t.getVariantContext(!0) || {}, f = [], d = /* @__PURE__ */ new Set();
3424
3461
  let p = {}, m = 1 / 0;
3425
- for (let x = 0; x < fu; x++) {
3426
- const P = uu[x], y = n[P], T = c[P] !== void 0 ? c[P] : u[P], w = oe(T), C = P === l ? y.isActive : null;
3462
+ for (let x = 0; x < pu; x++) {
3463
+ const P = du[x], y = n[P], T = c[P] !== void 0 ? c[P] : u[P], w = oe(T), C = P === l ? y.isActive : null;
3427
3464
  C === !1 && (m = x);
3428
3465
  let k = T === u[P] && T !== c[P] && w;
3429
3466
  if (k && i && t.manuallyAnimateOnMount && (k = !1), y.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
@@ -3431,7 +3468,7 @@ function du(t) {
3431
3468
  !T && !y.prevProp || // Or if the prop doesn't define an animation
3432
3469
  ae(T) || typeof T == "boolean")
3433
3470
  continue;
3434
- let R = pu(y.prevProp, T) || // If we're making this variant active, we want to always make it active
3471
+ let R = yu(y.prevProp, T) || // If we're making this variant active, we want to always make it active
3435
3472
  P === l && y.isActive && !k && w || // If we removed a higher-priority variant (i is in reverse order)
3436
3473
  x > m && w, _ = !1;
3437
3474
  const U = Array.isArray(T) ? T : [T];
@@ -3450,7 +3487,7 @@ function du(t) {
3450
3487
  if (p.hasOwnProperty(B))
3451
3488
  continue;
3452
3489
  let Ft = !1;
3453
- Pn(Q) && Pn(Lt) ? Ft = !Dr(Q, Lt) : Ft = Q !== Lt, Ft ? Q != null ? rt(B) : d.add(B) : Q !== void 0 && d.has(B) ? rt(B) : y.protectedKeys[B] = !0;
3490
+ Pn(Q) && Pn(Lt) ? Ft = !Mr(Q, Lt) : Ft = Q !== Lt, Ft ? Q != null ? rt(B) : d.add(B) : Q !== void 0 && d.has(B) ? rt(B) : y.protectedKeys[B] = !0;
3454
3491
  }
3455
3492
  y.prevProp = T, y.prevResolvedValues = F, y.isActive && (p = { ...p, ...F }), i && t.blockInitialAnimation && (R = !1), R && (!k || _) && f.push(...U.map((B) => ({
3456
3493
  animation: B,
@@ -3486,14 +3523,14 @@ function du(t) {
3486
3523
  setAnimateFunction: o,
3487
3524
  getState: () => n,
3488
3525
  reset: () => {
3489
- n = ls(), i = !0;
3526
+ n = cs(), i = !0;
3490
3527
  }
3491
3528
  };
3492
3529
  }
3493
- function pu(t, e) {
3494
- return typeof e == "string" ? e !== t : Array.isArray(e) ? !Dr(e, t) : !1;
3530
+ function yu(t, e) {
3531
+ return typeof e == "string" ? e !== t : Array.isArray(e) ? !Mr(e, t) : !1;
3495
3532
  }
3496
- function Ct(t = !1) {
3533
+ function At(t = !1) {
3497
3534
  return {
3498
3535
  isActive: t,
3499
3536
  protectedKeys: {},
@@ -3501,25 +3538,25 @@ function Ct(t = !1) {
3501
3538
  prevResolvedValues: {}
3502
3539
  };
3503
3540
  }
3504
- function ls() {
3541
+ function cs() {
3505
3542
  return {
3506
- animate: Ct(!0),
3507
- whileInView: Ct(),
3508
- whileHover: Ct(),
3509
- whileTap: Ct(),
3510
- whileDrag: Ct(),
3511
- whileFocus: Ct(),
3512
- exit: Ct()
3543
+ animate: At(!0),
3544
+ whileInView: At(),
3545
+ whileHover: At(),
3546
+ whileTap: At(),
3547
+ whileDrag: At(),
3548
+ whileFocus: At(),
3549
+ exit: At()
3513
3550
  };
3514
3551
  }
3515
- class mu extends St {
3552
+ class vu extends wt {
3516
3553
  /**
3517
3554
  * We dynamically generate the AnimationState manager as it contains a reference
3518
3555
  * to the underlying animation library. We only want to load that if we load this,
3519
3556
  * so people can optionally code split it out using the `m` component.
3520
3557
  */
3521
3558
  constructor(e) {
3522
- super(e), e.animationState || (e.animationState = du(e));
3559
+ super(e), e.animationState || (e.animationState = gu(e));
3523
3560
  }
3524
3561
  updateAnimationControlsSubscription() {
3525
3562
  const { animate: e } = this.node.getProps();
@@ -3540,10 +3577,10 @@ class mu extends St {
3540
3577
  this.node.animationState.reset(), (e = this.unmountControls) === null || e === void 0 || e.call(this);
3541
3578
  }
3542
3579
  }
3543
- let gu = 0;
3544
- class yu extends St {
3580
+ let Pu = 0;
3581
+ class Tu extends wt {
3545
3582
  constructor() {
3546
- super(...arguments), this.id = gu++;
3583
+ super(...arguments), this.id = Pu++;
3547
3584
  }
3548
3585
  update() {
3549
3586
  if (!this.node.presenceContext)
@@ -3561,24 +3598,24 @@ class yu extends St {
3561
3598
  unmount() {
3562
3599
  }
3563
3600
  }
3564
- const vu = {
3601
+ const bu = {
3565
3602
  animation: {
3566
- Feature: mu
3603
+ Feature: vu
3567
3604
  },
3568
3605
  exit: {
3569
- Feature: yu
3606
+ Feature: Tu
3570
3607
  }
3571
- }, cs = (t, e) => Math.abs(t - e);
3572
- function Pu(t, e) {
3573
- const n = cs(t.x, e.x), i = cs(t.y, e.y);
3608
+ }, us = (t, e) => Math.abs(t - e);
3609
+ function xu(t, e) {
3610
+ const n = us(t.x, e.x), i = us(t.y, e.y);
3574
3611
  return Math.sqrt(n ** 2 + i ** 2);
3575
3612
  }
3576
- class uo {
3613
+ class fo {
3577
3614
  constructor(e, n, { transformPagePoint: i, contextWindow: s, dragSnapToOrigin: o = !1 } = {}) {
3578
3615
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
3579
3616
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
3580
3617
  return;
3581
- const f = fn(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, p = Pu(f.offset, { x: 0, y: 0 }) >= 3;
3618
+ const f = fn(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, p = xu(f.offset, { x: 0, y: 0 }) >= 3;
3582
3619
  if (!d && !p)
3583
3620
  return;
3584
3621
  const { point: m } = f, { timestamp: v } = K;
@@ -3594,7 +3631,7 @@ class uo {
3594
3631
  return;
3595
3632
  const x = fn(f.type === "pointercancel" ? this.lastMoveEventInfo : un(d, this.transformPagePoint), this.history);
3596
3633
  this.startEvent && p && p(f, x), m && m(f, x);
3597
- }, !Ar(e))
3634
+ }, !Cr(e))
3598
3635
  return;
3599
3636
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.contextWindow = s || window;
3600
3637
  const r = Ke(e), a = un(r, this.transformPagePoint), { point: l } = a, { timestamp: c } = K;
@@ -3612,28 +3649,28 @@ class uo {
3612
3649
  function un(t, e) {
3613
3650
  return e ? { point: e(t.point) } : t;
3614
3651
  }
3615
- function us(t, e) {
3652
+ function fs(t, e) {
3616
3653
  return { x: t.x - e.x, y: t.y - e.y };
3617
3654
  }
3618
3655
  function fn({ point: t }, e) {
3619
3656
  return {
3620
3657
  point: t,
3621
- delta: us(t, fo(e)),
3622
- offset: us(t, Tu(e)),
3623
- velocity: bu(e, 0.1)
3658
+ delta: fs(t, ho(e)),
3659
+ offset: fs(t, wu(e)),
3660
+ velocity: Su(e, 0.1)
3624
3661
  };
3625
3662
  }
3626
- function Tu(t) {
3663
+ function wu(t) {
3627
3664
  return t[0];
3628
3665
  }
3629
- function fo(t) {
3666
+ function ho(t) {
3630
3667
  return t[t.length - 1];
3631
3668
  }
3632
- function bu(t, e) {
3669
+ function Su(t, e) {
3633
3670
  if (t.length < 2)
3634
3671
  return { x: 0, y: 0 };
3635
3672
  let n = t.length - 1, i = null;
3636
- const s = fo(t);
3673
+ const s = ho(t);
3637
3674
  for (; n >= 0 && (i = t[n], !(s.timestamp - i.timestamp > ht(e))); )
3638
3675
  n--;
3639
3676
  if (!i)
@@ -3647,106 +3684,106 @@ function bu(t, e) {
3647
3684
  };
3648
3685
  return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
3649
3686
  }
3650
- const ho = 1e-4, xu = 1 - ho, wu = 1 + ho, po = 0.01, Su = 0 - po, Au = 0 + po;
3687
+ const po = 1e-4, Au = 1 - po, Cu = 1 + po, mo = 0.01, Ru = 0 - mo, Eu = 0 + mo;
3651
3688
  function Z(t) {
3652
3689
  return t.max - t.min;
3653
3690
  }
3654
- function Cu(t, e, n) {
3691
+ function Vu(t, e, n) {
3655
3692
  return Math.abs(t - e) <= n;
3656
3693
  }
3657
- function fs(t, e, n, i = 0.5) {
3658
- t.origin = i, t.originPoint = j(e.min, e.max, t.origin), t.scale = Z(n) / Z(e), t.translate = j(n.min, n.max, t.origin) - t.originPoint, (t.scale >= xu && t.scale <= wu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Su && t.translate <= Au || isNaN(t.translate)) && (t.translate = 0);
3694
+ function hs(t, e, n, i = 0.5) {
3695
+ t.origin = i, t.originPoint = j(e.min, e.max, t.origin), t.scale = Z(n) / Z(e), t.translate = j(n.min, n.max, t.origin) - t.originPoint, (t.scale >= Au && t.scale <= Cu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Ru && t.translate <= Eu || isNaN(t.translate)) && (t.translate = 0);
3659
3696
  }
3660
3697
  function ie(t, e, n, i) {
3661
- fs(t.x, e.x, n.x, i ? i.originX : void 0), fs(t.y, e.y, n.y, i ? i.originY : void 0);
3698
+ hs(t.x, e.x, n.x, i ? i.originX : void 0), hs(t.y, e.y, n.y, i ? i.originY : void 0);
3662
3699
  }
3663
- function hs(t, e, n) {
3700
+ function ds(t, e, n) {
3664
3701
  t.min = n.min + e.min, t.max = t.min + Z(e);
3665
3702
  }
3666
- function Ru(t, e, n) {
3667
- hs(t.x, e.x, n.x), hs(t.y, e.y, n.y);
3703
+ function Du(t, e, n) {
3704
+ ds(t.x, e.x, n.x), ds(t.y, e.y, n.y);
3668
3705
  }
3669
- function ds(t, e, n) {
3706
+ function ps(t, e, n) {
3670
3707
  t.min = e.min - n.min, t.max = t.min + Z(e);
3671
3708
  }
3672
3709
  function se(t, e, n) {
3673
- ds(t.x, e.x, n.x), ds(t.y, e.y, n.y);
3710
+ ps(t.x, e.x, n.x), ps(t.y, e.y, n.y);
3674
3711
  }
3675
- function Eu(t, { min: e, max: n }, i) {
3712
+ function Mu(t, { min: e, max: n }, i) {
3676
3713
  return e !== void 0 && t < e ? t = i ? j(e, t, i.min) : Math.max(t, e) : n !== void 0 && t > n && (t = i ? j(n, t, i.max) : Math.min(t, n)), t;
3677
3714
  }
3678
- function ps(t, e, n) {
3715
+ function ms(t, e, n) {
3679
3716
  return {
3680
3717
  min: e !== void 0 ? t.min + e : void 0,
3681
3718
  max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
3682
3719
  };
3683
3720
  }
3684
- function Vu(t, { top: e, left: n, bottom: i, right: s }) {
3721
+ function ku(t, { top: e, left: n, bottom: i, right: s }) {
3685
3722
  return {
3686
- x: ps(t.x, n, s),
3687
- y: ps(t.y, e, i)
3723
+ x: ms(t.x, n, s),
3724
+ y: ms(t.y, e, i)
3688
3725
  };
3689
3726
  }
3690
- function ms(t, e) {
3727
+ function gs(t, e) {
3691
3728
  let n = e.min - t.min, i = e.max - t.max;
3692
3729
  return e.max - e.min < t.max - t.min && ([n, i] = [i, n]), { min: n, max: i };
3693
3730
  }
3694
- function Du(t, e) {
3731
+ function Lu(t, e) {
3695
3732
  return {
3696
- x: ms(t.x, e.x),
3697
- y: ms(t.y, e.y)
3733
+ x: gs(t.x, e.x),
3734
+ y: gs(t.y, e.y)
3698
3735
  };
3699
3736
  }
3700
- function Mu(t, e) {
3737
+ function Fu(t, e) {
3701
3738
  let n = 0.5;
3702
3739
  const i = Z(t), s = Z(e);
3703
- return s > i ? n = ce(e.min, e.max - i, t.min) : i > s && (n = ce(t.min, t.max - s, e.min)), bt(0, 1, n);
3740
+ return s > i ? n = ce(e.min, e.max - i, t.min) : i > s && (n = ce(t.min, t.max - s, e.min)), Tt(0, 1, n);
3704
3741
  }
3705
- function ku(t, e) {
3742
+ function Ou(t, e) {
3706
3743
  const n = {};
3707
3744
  return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
3708
3745
  }
3709
3746
  const Vn = 0.35;
3710
- function Lu(t = Vn) {
3747
+ function ju(t = Vn) {
3711
3748
  return t === !1 ? t = 0 : t === !0 && (t = Vn), {
3712
- x: gs(t, "left", "right"),
3713
- y: gs(t, "top", "bottom")
3749
+ x: ys(t, "left", "right"),
3750
+ y: ys(t, "top", "bottom")
3714
3751
  };
3715
3752
  }
3716
- function gs(t, e, n) {
3753
+ function ys(t, e, n) {
3717
3754
  return {
3718
- min: ys(t, e),
3719
- max: ys(t, n)
3755
+ min: vs(t, e),
3756
+ max: vs(t, n)
3720
3757
  };
3721
3758
  }
3722
- function ys(t, e) {
3759
+ function vs(t, e) {
3723
3760
  return typeof t == "number" ? t : t[e] || 0;
3724
3761
  }
3725
- const vs = () => ({
3762
+ const Ps = () => ({
3726
3763
  translate: 0,
3727
3764
  scale: 1,
3728
3765
  origin: 0,
3729
3766
  originPoint: 0
3730
3767
  }), Nt = () => ({
3731
- x: vs(),
3732
- y: vs()
3733
- }), Ps = () => ({ min: 0, max: 0 }), N = () => ({
3734
3768
  x: Ps(),
3735
3769
  y: Ps()
3770
+ }), Ts = () => ({ min: 0, max: 0 }), N = () => ({
3771
+ x: Ts(),
3772
+ y: Ts()
3736
3773
  });
3737
3774
  function nt(t) {
3738
3775
  return [t("x"), t("y")];
3739
3776
  }
3740
- function mo({ top: t, left: e, right: n, bottom: i }) {
3777
+ function go({ top: t, left: e, right: n, bottom: i }) {
3741
3778
  return {
3742
3779
  x: { min: e, max: n },
3743
3780
  y: { min: t, max: i }
3744
3781
  };
3745
3782
  }
3746
- function Fu({ x: t, y: e }) {
3783
+ function _u({ x: t, y: e }) {
3747
3784
  return { top: e.min, right: t.max, bottom: e.max, left: t.min };
3748
3785
  }
3749
- function Ou(t, e) {
3786
+ function Bu(t, e) {
3750
3787
  if (!e)
3751
3788
  return t;
3752
3789
  const n = e({ x: t.left, y: t.top }), i = e({ x: t.right, y: t.bottom });
@@ -3764,29 +3801,29 @@ function Dn({ scale: t, scaleX: e, scaleY: n }) {
3764
3801
  return !hn(t) || !hn(e) || !hn(n);
3765
3802
  }
3766
3803
  function Rt(t) {
3767
- return Dn(t) || go(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
3804
+ return Dn(t) || yo(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
3768
3805
  }
3769
- function go(t) {
3770
- return Ts(t.x) || Ts(t.y);
3806
+ function yo(t) {
3807
+ return bs(t.x) || bs(t.y);
3771
3808
  }
3772
- function Ts(t) {
3809
+ function bs(t) {
3773
3810
  return t && t !== "0%";
3774
3811
  }
3775
3812
  function _e(t, e, n) {
3776
3813
  const i = t - n, s = e * i;
3777
3814
  return n + s;
3778
3815
  }
3779
- function bs(t, e, n, i, s) {
3816
+ function xs(t, e, n, i, s) {
3780
3817
  return s !== void 0 && (t = _e(t, s, i)), _e(t, n, i) + e;
3781
3818
  }
3782
3819
  function Mn(t, e = 0, n = 1, i, s) {
3783
- t.min = bs(t.min, e, n, i, s), t.max = bs(t.max, e, n, i, s);
3820
+ t.min = xs(t.min, e, n, i, s), t.max = xs(t.max, e, n, i, s);
3784
3821
  }
3785
- function yo(t, { x: e, y: n }) {
3822
+ function vo(t, { x: e, y: n }) {
3786
3823
  Mn(t.x, e.translate, e.scale, e.originPoint), Mn(t.y, n.translate, n.scale, n.originPoint);
3787
3824
  }
3788
- const xs = 0.999999999999, ws = 1.0000000000001;
3789
- function ju(t, e, n, i = !1) {
3825
+ const ws = 0.999999999999, Ss = 1.0000000000001;
3826
+ function Iu(t, e, n, i = !1) {
3790
3827
  const s = n.length;
3791
3828
  if (!s)
3792
3829
  return;
@@ -3798,29 +3835,29 @@ function ju(t, e, n, i = !1) {
3798
3835
  l && l.props.style && l.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root && Wt(t, {
3799
3836
  x: -o.scroll.offset.x,
3800
3837
  y: -o.scroll.offset.y
3801
- }), r && (e.x *= r.x.scale, e.y *= r.y.scale, yo(t, r)), i && Rt(o.latestValues) && Wt(t, o.latestValues));
3838
+ }), r && (e.x *= r.x.scale, e.y *= r.y.scale, vo(t, r)), i && Rt(o.latestValues) && Wt(t, o.latestValues));
3802
3839
  }
3803
- e.x < ws && e.x > xs && (e.x = 1), e.y < ws && e.y > xs && (e.y = 1);
3840
+ e.x < Ss && e.x > ws && (e.x = 1), e.y < Ss && e.y > ws && (e.y = 1);
3804
3841
  }
3805
3842
  function Ut(t, e) {
3806
3843
  t.min = t.min + e, t.max = t.max + e;
3807
3844
  }
3808
- function Ss(t, e, n, i, s = 0.5) {
3845
+ function As(t, e, n, i, s = 0.5) {
3809
3846
  const o = j(t.min, t.max, s);
3810
3847
  Mn(t, e, n, o, i);
3811
3848
  }
3812
3849
  function Wt(t, e) {
3813
- Ss(t.x, e.x, e.scaleX, e.scale, e.originX), Ss(t.y, e.y, e.scaleY, e.scale, e.originY);
3850
+ As(t.x, e.x, e.scaleX, e.scale, e.originX), As(t.y, e.y, e.scaleY, e.scale, e.originY);
3814
3851
  }
3815
- function vo(t, e) {
3816
- return mo(Ou(t.getBoundingClientRect(), e));
3852
+ function Po(t, e) {
3853
+ return go(Bu(t.getBoundingClientRect(), e));
3817
3854
  }
3818
- function _u(t, e, n) {
3819
- const i = vo(t, n), { scroll: s } = e;
3855
+ function Nu(t, e, n) {
3856
+ const i = Po(t, n), { scroll: s } = e;
3820
3857
  return s && (Ut(i.x, s.offset.x), Ut(i.y, s.offset.y)), i;
3821
3858
  }
3822
- const Po = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Bu = /* @__PURE__ */ new WeakMap();
3823
- class Iu {
3859
+ const To = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Uu = /* @__PURE__ */ new WeakMap();
3860
+ class Wu {
3824
3861
  constructor(e) {
3825
3862
  this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = N(), this.visualElement = e;
3826
3863
  }
@@ -3834,7 +3871,7 @@ class Iu {
3834
3871
  }, o = (u, f) => {
3835
3872
  var d;
3836
3873
  const { drag: p, dragPropagation: m, onDragStart: v } = this.getProps();
3837
- if (p && !m && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Rr(p), !this.openGlobalLock))
3874
+ if (p && !m && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Er(p), !this.openGlobalLock))
3838
3875
  return;
3839
3876
  this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), nt((P) => {
3840
3877
  let y = this.getAxisMotionValue(P).get() || 0;
@@ -3855,7 +3892,7 @@ class Iu {
3855
3892
  return;
3856
3893
  const { offset: x } = f;
3857
3894
  if (p && this.currentDirection === null) {
3858
- this.currentDirection = Nu(x), this.currentDirection !== null && m && m(this.currentDirection);
3895
+ this.currentDirection = $u(x), this.currentDirection !== null && m && m(this.currentDirection);
3859
3896
  return;
3860
3897
  }
3861
3898
  this.updateAxis("x", f.point, x), this.updateAxis("y", f.point, x), this.visualElement.render(), v && v(u, f);
@@ -3863,7 +3900,7 @@ class Iu {
3863
3900
  var f;
3864
3901
  return this.getAnimationState(u) === "paused" && ((f = this.getAxisMotionValue(u).animation) === null || f === void 0 ? void 0 : f.play());
3865
3902
  }), { dragSnapToOrigin: c } = this.getProps();
3866
- this.panSession = new uo(e, {
3903
+ this.panSession = new fo(e, {
3867
3904
  onSessionStart: s,
3868
3905
  onStart: o,
3869
3906
  onMove: r,
@@ -3872,7 +3909,7 @@ class Iu {
3872
3909
  }, {
3873
3910
  transformPagePoint: this.visualElement.getTransformPagePoint(),
3874
3911
  dragSnapToOrigin: c,
3875
- contextWindow: Po(this.visualElement)
3912
+ contextWindow: To(this.visualElement)
3876
3913
  });
3877
3914
  }
3878
3915
  stop(e, n) {
@@ -3899,13 +3936,13 @@ class Iu {
3899
3936
  return;
3900
3937
  const o = this.getAxisMotionValue(e);
3901
3938
  let r = this.originPoint[e] + i[e];
3902
- this.constraints && this.constraints[e] && (r = Eu(r, this.constraints[e], this.elastic[e])), o.set(r);
3939
+ this.constraints && this.constraints[e] && (r = Mu(r, this.constraints[e], this.elastic[e])), o.set(r);
3903
3940
  }
3904
3941
  resolveConstraints() {
3905
3942
  var e;
3906
3943
  const { dragConstraints: n, dragElastic: i } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, o = this.constraints;
3907
- n && Bt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints = Vu(s.layoutBox, n) : this.constraints = !1, this.elastic = Lu(i), o !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && nt((r) => {
3908
- this.constraints !== !1 && this.getAxisMotionValue(r) && (this.constraints[r] = ku(s.layoutBox[r], this.constraints[r]));
3944
+ n && Bt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints = ku(s.layoutBox, n) : this.constraints = !1, this.elastic = ju(i), o !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && nt((r) => {
3945
+ this.constraints !== !1 && this.getAxisMotionValue(r) && (this.constraints[r] = Ou(s.layoutBox[r], this.constraints[r]));
3909
3946
  });
3910
3947
  }
3911
3948
  resolveRefConstraints() {
@@ -3917,11 +3954,11 @@ class Iu {
3917
3954
  const { projection: s } = this.visualElement;
3918
3955
  if (!s || !s.layout)
3919
3956
  return !1;
3920
- const o = _u(i, s.root, this.visualElement.getTransformPagePoint());
3921
- let r = Du(s.layout.layoutBox, o);
3957
+ const o = Nu(i, s.root, this.visualElement.getTransformPagePoint());
3958
+ let r = Lu(s.layout.layoutBox, o);
3922
3959
  if (n) {
3923
- const a = n(Fu(r));
3924
- this.hasMutatedConstraints = !!a, a && (r = mo(a));
3960
+ const a = n(_u(r));
3961
+ this.hasMutatedConstraints = !!a, a && (r = go(a));
3925
3962
  }
3926
3963
  return r;
3927
3964
  }
@@ -4002,7 +4039,7 @@ class Iu {
4002
4039
  const a = this.getAxisMotionValue(r);
4003
4040
  if (a && this.constraints !== !1) {
4004
4041
  const l = a.get();
4005
- s[r] = Mu({ min: l, max: l }, this.constraints[r]);
4042
+ s[r] = Fu({ min: l, max: l }, this.constraints[r]);
4006
4043
  }
4007
4044
  });
4008
4045
  const { transformTemplate: o } = this.visualElement.getProps();
@@ -4016,7 +4053,7 @@ class Iu {
4016
4053
  addListeners() {
4017
4054
  if (!this.visualElement.current)
4018
4055
  return;
4019
- Bu.set(this.visualElement, this);
4056
+ Uu.set(this.visualElement, this);
4020
4057
  const e = this.visualElement.current, n = ut(e, "pointerdown", (l) => {
4021
4058
  const { drag: c, dragListener: u = !0 } = this.getProps();
4022
4059
  c && u && this.start(l);
@@ -4051,13 +4088,13 @@ class Iu {
4051
4088
  function Se(t, e, n) {
4052
4089
  return (e === !0 || e === t) && (n === null || n === t);
4053
4090
  }
4054
- function Nu(t, e = 10) {
4091
+ function $u(t, e = 10) {
4055
4092
  let n = null;
4056
4093
  return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
4057
4094
  }
4058
- class Uu extends St {
4095
+ class Ku extends wt {
4059
4096
  constructor(e) {
4060
- super(e), this.removeGroupControls = H, this.removeListeners = H, this.controls = new Iu(e);
4097
+ super(e), this.removeGroupControls = H, this.removeListeners = H, this.controls = new Wu(e);
4061
4098
  }
4062
4099
  mount() {
4063
4100
  const { dragControls: e } = this.node.getProps();
@@ -4067,24 +4104,24 @@ class Uu extends St {
4067
4104
  this.removeGroupControls(), this.removeListeners();
4068
4105
  }
4069
4106
  }
4070
- const As = (t) => (e, n) => {
4107
+ const Cs = (t) => (e, n) => {
4071
4108
  t && M.postRender(() => t(e, n));
4072
4109
  };
4073
- class Wu extends St {
4110
+ class Gu extends wt {
4074
4111
  constructor() {
4075
4112
  super(...arguments), this.removePointerDownListener = H;
4076
4113
  }
4077
4114
  onPointerDown(e) {
4078
- this.session = new uo(e, this.createPanHandlers(), {
4115
+ this.session = new fo(e, this.createPanHandlers(), {
4079
4116
  transformPagePoint: this.node.getTransformPagePoint(),
4080
- contextWindow: Po(this.node)
4117
+ contextWindow: To(this.node)
4081
4118
  });
4082
4119
  }
4083
4120
  createPanHandlers() {
4084
4121
  const { onPanSessionStart: e, onPanStart: n, onPan: i, onPanEnd: s } = this.node.getProps();
4085
4122
  return {
4086
- onSessionStart: As(e),
4087
- onStart: As(n),
4123
+ onSessionStart: Cs(e),
4124
+ onStart: Cs(n),
4088
4125
  onMove: i,
4089
4126
  onEnd: (o, r) => {
4090
4127
  delete this.session, s && M.postRender(() => s(o, r));
@@ -4101,7 +4138,7 @@ class Wu extends St {
4101
4138
  this.removePointerDownListener(), this.session && this.session.end();
4102
4139
  }
4103
4140
  }
4104
- function $u() {
4141
+ function Hu() {
4105
4142
  const t = G(Ie);
4106
4143
  if (t === null)
4107
4144
  return [!0, null];
@@ -4110,7 +4147,7 @@ function $u() {
4110
4147
  const o = at(() => n && n(s), [s, n]);
4111
4148
  return !e && n ? [!1, o] : [!0];
4112
4149
  }
4113
- const Ee = {
4150
+ const Ve = {
4114
4151
  /**
4115
4152
  * Global flag as to whether the tree has animated since the last time
4116
4153
  * we resized the window
@@ -4122,7 +4159,7 @@ const Ee = {
4122
4159
  */
4123
4160
  hasEverUpdated: !1
4124
4161
  };
4125
- function Cs(t, e) {
4162
+ function Rs(t, e) {
4126
4163
  return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
4127
4164
  }
4128
4165
  const Jt = {
@@ -4134,21 +4171,21 @@ const Jt = {
4134
4171
  t = parseFloat(t);
4135
4172
  else
4136
4173
  return t;
4137
- const n = Cs(t, e.target.x), i = Cs(t, e.target.y);
4174
+ const n = Rs(t, e.target.x), i = Rs(t, e.target.y);
4138
4175
  return `${n}% ${i}%`;
4139
4176
  }
4140
- }, Ku = {
4177
+ }, zu = {
4141
4178
  correct: (t, { treeScale: e, projectionDelta: n }) => {
4142
- const i = t, s = xt.parse(t);
4179
+ const i = t, s = bt.parse(t);
4143
4180
  if (s.length > 5)
4144
4181
  return i;
4145
- const o = xt.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
4182
+ const o = bt.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
4146
4183
  s[0 + r] /= a, s[1 + r] /= l;
4147
4184
  const c = j(a, l, 0.5);
4148
4185
  return typeof s[2 + r] == "number" && (s[2 + r] /= c), typeof s[3 + r] == "number" && (s[3 + r] /= c), o(s);
4149
4186
  }
4150
4187
  };
4151
- class Gu extends aa {
4188
+ class Yu extends aa {
4152
4189
  /**
4153
4190
  * This only mounts projection nodes for components that
4154
4191
  * need measuring, we might want to do it for all components
@@ -4156,12 +4193,12 @@ class Gu extends aa {
4156
4193
  */
4157
4194
  componentDidMount() {
4158
4195
  const { visualElement: e, layoutGroup: n, switchLayoutGroup: i, layoutId: s } = this.props, { projection: o } = e;
4159
- Ia(Hu), o && (n.group && n.group.add(o), i && i.register && s && i.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
4196
+ Wa(Xu), o && (n.group && n.group.add(o), i && i.register && s && i.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
4160
4197
  this.safeToRemove();
4161
4198
  }), o.setOptions({
4162
4199
  ...o.options,
4163
4200
  onExitComplete: () => this.safeToRemove()
4164
- })), Ee.hasEverUpdated = !0;
4201
+ })), Ve.hasEverUpdated = !0;
4165
4202
  }
4166
4203
  getSnapshotBeforeUpdate(e) {
4167
4204
  const { layoutDependency: n, visualElement: i, drag: s, isPresent: o } = this.props, r = i.projection;
@@ -4188,11 +4225,11 @@ class Gu extends aa {
4188
4225
  return null;
4189
4226
  }
4190
4227
  }
4191
- function To(t) {
4192
- const [e, n] = $u(), i = G(Wn);
4193
- return O.jsx(Gu, { ...t, layoutGroup: i, switchLayoutGroup: G(lr), isPresent: e, safeToRemove: n });
4228
+ function bo(t) {
4229
+ const [e, n] = Hu(), i = G(Wn);
4230
+ return O.jsx(Yu, { ...t, layoutGroup: i, switchLayoutGroup: G(cr), isPresent: e, safeToRemove: n });
4194
4231
  }
4195
- const Hu = {
4232
+ const Xu = {
4196
4233
  borderRadius: {
4197
4234
  ...Jt,
4198
4235
  applyTo: [
@@ -4206,81 +4243,81 @@ const Hu = {
4206
4243
  borderTopRightRadius: Jt,
4207
4244
  borderBottomLeftRadius: Jt,
4208
4245
  borderBottomRightRadius: Jt,
4209
- boxShadow: Ku
4210
- }, bo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], zu = bo.length, Rs = (t) => typeof t == "string" ? parseFloat(t) : t, Es = (t) => typeof t == "number" || S.test(t);
4211
- function Yu(t, e, n, i, s, o) {
4246
+ boxShadow: zu
4247
+ }, xo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], qu = xo.length, Es = (t) => typeof t == "string" ? parseFloat(t) : t, Vs = (t) => typeof t == "number" || S.test(t);
4248
+ function Zu(t, e, n, i, s, o) {
4212
4249
  s ? (t.opacity = j(
4213
4250
  0,
4214
4251
  // TODO Reinstate this if only child
4215
4252
  n.opacity !== void 0 ? n.opacity : 1,
4216
- Xu(i)
4217
- ), t.opacityExit = j(e.opacity !== void 0 ? e.opacity : 1, 0, qu(i))) : o && (t.opacity = j(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, i));
4218
- for (let r = 0; r < zu; r++) {
4219
- const a = `border${bo[r]}Radius`;
4220
- let l = Vs(e, a), c = Vs(n, a);
4253
+ Ju(i)
4254
+ ), t.opacityExit = j(e.opacity !== void 0 ? e.opacity : 1, 0, Qu(i))) : o && (t.opacity = j(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, i));
4255
+ for (let r = 0; r < qu; r++) {
4256
+ const a = `border${xo[r]}Radius`;
4257
+ let l = Ds(e, a), c = Ds(n, a);
4221
4258
  if (l === void 0 && c === void 0)
4222
4259
  continue;
4223
- l || (l = 0), c || (c = 0), l === 0 || c === 0 || Es(l) === Es(c) ? (t[a] = Math.max(j(Rs(l), Rs(c), i), 0), (ot.test(c) || ot.test(l)) && (t[a] += "%")) : t[a] = c;
4260
+ l || (l = 0), c || (c = 0), l === 0 || c === 0 || Vs(l) === Vs(c) ? (t[a] = Math.max(j(Es(l), Es(c), i), 0), (ot.test(c) || ot.test(l)) && (t[a] += "%")) : t[a] = c;
4224
4261
  }
4225
4262
  (e.rotate || n.rotate) && (t.rotate = j(e.rotate || 0, n.rotate || 0, i));
4226
4263
  }
4227
- function Vs(t, e) {
4264
+ function Ds(t, e) {
4228
4265
  return t[e] !== void 0 ? t[e] : t.borderRadius;
4229
4266
  }
4230
- const Xu = xo(0, 0.5, to), qu = xo(0.5, 0.95, H);
4231
- function xo(t, e, n) {
4267
+ const Ju = wo(0, 0.5, eo), Qu = wo(0.5, 0.95, H);
4268
+ function wo(t, e, n) {
4232
4269
  return (i) => i < t ? 0 : i > e ? 1 : n(ce(t, e, i));
4233
4270
  }
4234
- function Ds(t, e) {
4271
+ function Ms(t, e) {
4235
4272
  t.min = e.min, t.max = e.max;
4236
4273
  }
4237
4274
  function et(t, e) {
4238
- Ds(t.x, e.x), Ds(t.y, e.y);
4275
+ Ms(t.x, e.x), Ms(t.y, e.y);
4239
4276
  }
4240
- function Ms(t, e) {
4277
+ function ks(t, e) {
4241
4278
  t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
4242
4279
  }
4243
- function ks(t, e, n, i, s) {
4280
+ function Ls(t, e, n, i, s) {
4244
4281
  return t -= e, t = _e(t, 1 / n, i), s !== void 0 && (t = _e(t, 1 / s, i)), t;
4245
4282
  }
4246
- function Zu(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
4283
+ function tf(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
4247
4284
  if (ot.test(e) && (e = parseFloat(e), e = j(r.min, r.max, e / 100) - r.min), typeof e != "number")
4248
4285
  return;
4249
4286
  let a = j(o.min, o.max, i);
4250
- t === o && (a -= e), t.min = ks(t.min, e, n, a, s), t.max = ks(t.max, e, n, a, s);
4287
+ t === o && (a -= e), t.min = Ls(t.min, e, n, a, s), t.max = Ls(t.max, e, n, a, s);
4251
4288
  }
4252
- function Ls(t, e, [n, i, s], o, r) {
4253
- Zu(t, e[n], e[i], e[s], e.scale, o, r);
4289
+ function Fs(t, e, [n, i, s], o, r) {
4290
+ tf(t, e[n], e[i], e[s], e.scale, o, r);
4254
4291
  }
4255
- const Ju = ["x", "scaleX", "originX"], Qu = ["y", "scaleY", "originY"];
4256
- function Fs(t, e, n, i) {
4257
- Ls(t.x, e, Ju, n ? n.x : void 0, i ? i.x : void 0), Ls(t.y, e, Qu, n ? n.y : void 0, i ? i.y : void 0);
4292
+ const ef = ["x", "scaleX", "originX"], nf = ["y", "scaleY", "originY"];
4293
+ function Os(t, e, n, i) {
4294
+ Fs(t.x, e, ef, n ? n.x : void 0, i ? i.x : void 0), Fs(t.y, e, nf, n ? n.y : void 0, i ? i.y : void 0);
4258
4295
  }
4259
- function Os(t) {
4296
+ function js(t) {
4260
4297
  return t.translate === 0 && t.scale === 1;
4261
4298
  }
4262
- function wo(t) {
4263
- return Os(t.x) && Os(t.y);
4299
+ function So(t) {
4300
+ return js(t.x) && js(t.y);
4264
4301
  }
4265
- function js(t, e) {
4302
+ function _s(t, e) {
4266
4303
  return t.min === e.min && t.max === e.max;
4267
4304
  }
4268
- function tf(t, e) {
4269
- return js(t.x, e.x) && js(t.y, e.y);
4305
+ function sf(t, e) {
4306
+ return _s(t.x, e.x) && _s(t.y, e.y);
4270
4307
  }
4271
- function _s(t, e) {
4308
+ function Bs(t, e) {
4272
4309
  return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
4273
4310
  }
4274
- function So(t, e) {
4275
- return _s(t.x, e.x) && _s(t.y, e.y);
4311
+ function Ao(t, e) {
4312
+ return Bs(t.x, e.x) && Bs(t.y, e.y);
4276
4313
  }
4277
- function Bs(t) {
4314
+ function Is(t) {
4278
4315
  return Z(t.x) / Z(t.y);
4279
4316
  }
4280
- function Is(t, e) {
4317
+ function Ns(t, e) {
4281
4318
  return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
4282
4319
  }
4283
- class ef {
4320
+ class rf {
4284
4321
  constructor() {
4285
4322
  this.members = [];
4286
4323
  }
@@ -4334,7 +4371,7 @@ class ef {
4334
4371
  this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
4335
4372
  }
4336
4373
  }
4337
- function nf(t, e, n) {
4374
+ function of(t, e, n) {
4338
4375
  let i = "";
4339
4376
  const s = t.x.translate / e.x, o = t.y.translate / e.y, r = (n == null ? void 0 : n.z) || 0;
4340
4377
  if ((s || o || r) && (i = `translate3d(${s}px, ${o}px, ${r}px) `), (e.x !== 1 || e.y !== 1) && (i += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
@@ -4344,8 +4381,8 @@ function nf(t, e, n) {
4344
4381
  const a = t.x.scale * e.x, l = t.y.scale * e.y;
4345
4382
  return (a !== 1 || l !== 1) && (i += `scale(${a}, ${l})`), i || "none";
4346
4383
  }
4347
- const sf = (t, e) => t.depth - e.depth;
4348
- class rf {
4384
+ const af = (t, e) => t.depth - e.depth;
4385
+ class lf {
4349
4386
  constructor() {
4350
4387
  this.children = [], this.isDirty = !1;
4351
4388
  }
@@ -4356,20 +4393,20 @@ class rf {
4356
4393
  $e(this.children, e), this.isDirty = !0;
4357
4394
  }
4358
4395
  forEach(e) {
4359
- this.isDirty && this.children.sort(sf), this.isDirty = !1, this.children.forEach(e);
4396
+ this.isDirty && this.children.sort(af), this.isDirty = !1, this.children.forEach(e);
4360
4397
  }
4361
4398
  }
4362
- function of(t, e) {
4363
- const n = Tt.now(), i = ({ timestamp: s }) => {
4399
+ function cf(t, e) {
4400
+ const n = Pt.now(), i = ({ timestamp: s }) => {
4364
4401
  const o = s - n;
4365
4402
  o >= e && (mt(i), t(o - e));
4366
4403
  };
4367
4404
  return M.read(i, !0), () => mt(i);
4368
4405
  }
4369
- function af(t) {
4406
+ function uf(t) {
4370
4407
  return t instanceof SVGElement && t.tagName !== "svg";
4371
4408
  }
4372
- function lf(t, e, n) {
4409
+ function ff(t, e, n) {
4373
4410
  const i = Y(t) ? t : ue(t);
4374
4411
  return i.start(ci("", i, e, n)), i.animation;
4375
4412
  }
@@ -4378,29 +4415,29 @@ const Et = {
4378
4415
  totalNodes: 0,
4379
4416
  resolvedTargetDeltas: 0,
4380
4417
  recalculatedProjection: 0
4381
- }, te = typeof window < "u" && window.MotionDebug !== void 0, dn = ["", "X", "Y", "Z"], cf = { visibility: "hidden" }, Ns = 1e3;
4382
- let uf = 0;
4418
+ }, te = typeof window < "u" && window.MotionDebug !== void 0, dn = ["", "X", "Y", "Z"], hf = { visibility: "hidden" }, Us = 1e3;
4419
+ let df = 0;
4383
4420
  function pn(t, e, n, i) {
4384
4421
  const { latestValues: s } = e;
4385
4422
  s[t] && (n[t] = s[t], e.setStaticValue(t, 0), i && (i[t] = 0));
4386
4423
  }
4387
- function Ao(t) {
4424
+ function Co(t) {
4388
4425
  if (t.hasCheckedOptimisedAppear = !0, t.root === t)
4389
4426
  return !1;
4390
4427
  const { visualElement: e } = t.options;
4391
- return e ? lo(e) ? !0 : t.parent && !t.parent.hasCheckedOptimisedAppear ? Ao(t.parent) : !1 : !1;
4428
+ return e ? co(e) ? !0 : t.parent && !t.parent.hasCheckedOptimisedAppear ? Co(t.parent) : !1 : !1;
4392
4429
  }
4393
- function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: s }) {
4430
+ function Ro({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: s }) {
4394
4431
  return class {
4395
4432
  constructor(r = {}, a = e == null ? void 0 : e()) {
4396
- this.id = uf++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
4433
+ this.id = df++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
4397
4434
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
4398
4435
  }, this.updateProjection = () => {
4399
- this.projectionUpdateScheduled = !1, te && (Et.totalNodes = Et.resolvedTargetDeltas = Et.recalculatedProjection = 0), this.nodes.forEach(df), this.nodes.forEach(vf), this.nodes.forEach(Pf), this.nodes.forEach(pf), te && window.MotionDebug.record(Et);
4436
+ this.projectionUpdateScheduled = !1, te && (Et.totalNodes = Et.resolvedTargetDeltas = Et.recalculatedProjection = 0), this.nodes.forEach(gf), this.nodes.forEach(bf), this.nodes.forEach(xf), this.nodes.forEach(yf), te && window.MotionDebug.record(Et);
4400
4437
  }, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = r, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
4401
4438
  for (let l = 0; l < this.path.length; l++)
4402
4439
  this.path[l].shouldResetTransform = !0;
4403
- this.root === this && (this.nodes = new rf());
4440
+ this.root === this && (this.nodes = new lf());
4404
4441
  }
4405
4442
  addEventListener(r, a) {
4406
4443
  return this.eventHandlers.has(r) || this.eventHandlers.set(r, new ui()), this.eventHandlers.get(r).add(a);
@@ -4418,13 +4455,13 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4418
4455
  mount(r, a = this.root.hasTreeAnimated) {
4419
4456
  if (this.instance)
4420
4457
  return;
4421
- this.isSVG = af(r), this.instance = r;
4458
+ this.isSVG = uf(r), this.instance = r;
4422
4459
  const { layoutId: l, layout: c, visualElement: u } = this.options;
4423
4460
  if (u && !u.current && u.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), a && (c || l) && (this.isLayoutDirty = !0), t) {
4424
4461
  let f;
4425
4462
  const d = () => this.root.updateBlockedByResize = !1;
4426
4463
  t(r, () => {
4427
- this.root.updateBlockedByResize = !0, f && f(), f = of(d, 250), Ee.hasAnimatedSinceResize && (Ee.hasAnimatedSinceResize = !1, this.nodes.forEach(Ws));
4464
+ this.root.updateBlockedByResize = !0, f && f(), f = cf(d, 250), Ve.hasAnimatedSinceResize && (Ve.hasAnimatedSinceResize = !1, this.nodes.forEach($s));
4428
4465
  });
4429
4466
  }
4430
4467
  l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: d, hasRelativeTargetChanged: p, layout: m }) => {
@@ -4432,7 +4469,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4432
4469
  this.target = void 0, this.relativeTarget = void 0;
4433
4470
  return;
4434
4471
  }
4435
- const v = this.options.transition || u.getDefaultTransition() || Sf, { onLayoutAnimationStart: x, onLayoutAnimationComplete: P } = u.getProps(), y = !this.targetLayout || !So(this.targetLayout, m) || p, T = !d && p;
4472
+ const v = this.options.transition || u.getDefaultTransition() || Rf, { onLayoutAnimationStart: x, onLayoutAnimationComplete: P } = u.getProps(), y = !this.targetLayout || !Ao(this.targetLayout, m) || p, T = !d && p;
4436
4473
  if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || T || d && (y || !this.currentAnimation)) {
4437
4474
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, T);
4438
4475
  const w = {
@@ -4442,7 +4479,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4442
4479
  };
4443
4480
  (u.shouldReduceMotion || this.options.layoutRoot) && (w.delay = 0, w.type = !1), this.startAnimation(w);
4444
4481
  } else
4445
- d || Ws(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4482
+ d || $s(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4446
4483
  this.targetLayout = m;
4447
4484
  });
4448
4485
  }
@@ -4466,7 +4503,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4466
4503
  }
4467
4504
  // Note: currently only running on root node
4468
4505
  startUpdate() {
4469
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Tf), this.animationId++);
4506
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(wf), this.animationId++);
4470
4507
  }
4471
4508
  getTransformTemplate() {
4472
4509
  const { visualElement: r } = this.options;
@@ -4477,7 +4514,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4477
4514
  this.options.onExitComplete && this.options.onExitComplete();
4478
4515
  return;
4479
4516
  }
4480
- if (window.HandoffCancelAllAnimations && Ao(this) && window.HandoffCancelAllAnimations(), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
4517
+ if (window.HandoffCancelAllAnimations && Co(this) && window.HandoffCancelAllAnimations(), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
4481
4518
  return;
4482
4519
  this.isLayoutDirty = !0;
4483
4520
  for (let u = 0; u < this.path.length; u++) {
@@ -4492,18 +4529,18 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4492
4529
  }
4493
4530
  update() {
4494
4531
  if (this.updateScheduled = !1, this.isUpdateBlocked()) {
4495
- this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Us);
4532
+ this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Ws);
4496
4533
  return;
4497
4534
  }
4498
- this.isUpdating || this.nodes.forEach(gf), this.isUpdating = !1, this.nodes.forEach(yf), this.nodes.forEach(ff), this.nodes.forEach(hf), this.clearAllSnapshots();
4499
- const a = Tt.now();
4500
- K.delta = bt(0, 1e3 / 60, a - K.timestamp), K.timestamp = a, K.isProcessing = !0, nn.update.process(K), nn.preRender.process(K), nn.render.process(K), K.isProcessing = !1;
4535
+ this.isUpdating || this.nodes.forEach(Pf), this.isUpdating = !1, this.nodes.forEach(Tf), this.nodes.forEach(pf), this.nodes.forEach(mf), this.clearAllSnapshots();
4536
+ const a = Pt.now();
4537
+ K.delta = Tt(0, 1e3 / 60, a - K.timestamp), K.timestamp = a, K.isProcessing = !0, nn.update.process(K), nn.preRender.process(K), nn.render.process(K), K.isProcessing = !1;
4501
4538
  }
4502
4539
  didUpdate() {
4503
4540
  this.updateScheduled || (this.updateScheduled = !0, In.read(this.scheduleUpdate));
4504
4541
  }
4505
4542
  clearAllSnapshots() {
4506
- this.nodes.forEach(mf), this.sharedNodes.forEach(bf);
4543
+ this.nodes.forEach(vf), this.sharedNodes.forEach(Sf);
4507
4544
  }
4508
4545
  scheduleUpdateProjection() {
4509
4546
  this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, M.preRender(this.updateProjection, !1, !0));
@@ -4546,13 +4583,13 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4546
4583
  resetTransform() {
4547
4584
  if (!s)
4548
4585
  return;
4549
- const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !wo(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
4586
+ const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !So(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
4550
4587
  r && (a || Rt(this.latestValues) || u) && (s(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
4551
4588
  }
4552
4589
  measure(r = !0) {
4553
4590
  const a = this.measurePageBox();
4554
4591
  let l = this.removeElementScroll(a);
4555
- return r && (l = this.removeTransform(l)), Af(l), {
4592
+ return r && (l = this.removeTransform(l)), Ef(l), {
4556
4593
  animationId: this.root.animationId,
4557
4594
  measuredBox: a,
4558
4595
  layoutBox: l,
@@ -4566,7 +4603,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4566
4603
  if (!a)
4567
4604
  return N();
4568
4605
  const l = a.measureViewportBox();
4569
- if (!(((r = this.scroll) === null || r === void 0 ? void 0 : r.wasRoot) || this.path.some(Cf))) {
4606
+ if (!(((r = this.scroll) === null || r === void 0 ? void 0 : r.wasRoot) || this.path.some(Vf))) {
4570
4607
  const { scroll: u } = this.root;
4571
4608
  u && (Ut(l.x, u.offset.x), Ut(l.y, u.offset.y));
4572
4609
  }
@@ -4604,9 +4641,9 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4604
4641
  continue;
4605
4642
  Dn(c.latestValues) && c.updateSnapshot();
4606
4643
  const u = N(), f = c.measurePageBox();
4607
- et(u, f), Fs(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
4644
+ et(u, f), Os(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
4608
4645
  }
4609
- return Rt(this.latestValues) && Fs(a, this.latestValues), a;
4646
+ return Rt(this.latestValues) && Os(a, this.latestValues), a;
4610
4647
  }
4611
4648
  setTargetDelta(r) {
4612
4649
  this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -4638,7 +4675,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4638
4675
  p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = N(), this.relativeTargetOrigin = N(), se(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), et(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4639
4676
  }
4640
4677
  if (!(!this.relativeTarget && !this.targetDelta)) {
4641
- if (this.target || (this.target = N(), this.targetWithTransforms = N()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ru(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : et(this.target, this.layout.layoutBox), yo(this.target, this.targetDelta)) : et(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4678
+ if (this.target || (this.target = N(), this.targetWithTransforms = N()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Du(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : et(this.target, this.layout.layoutBox), vo(this.target, this.targetDelta)) : et(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4642
4679
  this.attemptToResolveRelativeTarget = !1;
4643
4680
  const p = this.getClosestProjectingParent();
4644
4681
  p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = N(), this.relativeTargetOrigin = N(), se(this.relativeTargetOrigin, this.target, p.target), et(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
@@ -4648,7 +4685,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4648
4685
  }
4649
4686
  }
4650
4687
  getClosestProjectingParent() {
4651
- if (!(!this.parent || Dn(this.parent.latestValues) || go(this.parent.latestValues)))
4688
+ if (!(!this.parent || Dn(this.parent.latestValues) || yo(this.parent.latestValues)))
4652
4689
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
4653
4690
  }
4654
4691
  isProjecting() {
@@ -4665,13 +4702,13 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4665
4702
  return;
4666
4703
  et(this.layoutCorrected, this.layout.layoutBox);
4667
4704
  const d = this.treeScale.x, p = this.treeScale.y;
4668
- ju(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = N());
4705
+ Iu(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = N());
4669
4706
  const { target: m } = a;
4670
4707
  if (!m) {
4671
4708
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
4672
4709
  return;
4673
4710
  }
4674
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ms(this.prevProjectionDelta.x, this.projectionDelta.x), Ms(this.prevProjectionDelta.y, this.projectionDelta.y)), ie(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !Is(this.projectionDelta.x, this.prevProjectionDelta.x) || !Is(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), te && Et.recalculatedProjection++;
4711
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (ks(this.prevProjectionDelta.x, this.projectionDelta.x), ks(this.prevProjectionDelta.y, this.projectionDelta.y)), ie(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !Ns(this.projectionDelta.x, this.prevProjectionDelta.x) || !Ns(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), te && Et.recalculatedProjection++;
4675
4712
  }
4676
4713
  hide() {
4677
4714
  this.isVisible = !1;
@@ -4693,17 +4730,17 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4693
4730
  setAnimationOrigin(r, a = !1) {
4694
4731
  const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f = Nt();
4695
4732
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
4696
- const d = N(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, v = p !== m, x = this.getStack(), P = !x || x.members.length <= 1, y = !!(v && !P && this.options.crossfade === !0 && !this.path.some(wf));
4733
+ const d = N(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, v = p !== m, x = this.getStack(), P = !x || x.members.length <= 1, y = !!(v && !P && this.options.crossfade === !0 && !this.path.some(Cf));
4697
4734
  this.animationProgress = 0;
4698
4735
  let T;
4699
4736
  this.mixTargetDelta = (w) => {
4700
4737
  const C = w / 1e3;
4701
- $s(f.x, r.x, C), $s(f.y, r.y, C), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (se(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), xf(this.relativeTarget, this.relativeTargetOrigin, d, C), T && tf(this.relativeTarget, T) && (this.isProjectionDirty = !1), T || (T = N()), et(T, this.relativeTarget)), v && (this.animationValues = u, Yu(u, c, this.latestValues, C, y, P)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = C;
4738
+ Ks(f.x, r.x, C), Ks(f.y, r.y, C), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (se(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Af(this.relativeTarget, this.relativeTargetOrigin, d, C), T && sf(this.relativeTarget, T) && (this.isProjectionDirty = !1), T || (T = N()), et(T, this.relativeTarget)), v && (this.animationValues = u, Zu(u, c, this.latestValues, C, y, P)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = C;
4702
4739
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4703
4740
  }
4704
4741
  startAnimation(r) {
4705
4742
  this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (mt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = M.update(() => {
4706
- Ee.hasAnimatedSinceResize = !0, this.currentAnimation = lf(0, Ns, {
4743
+ Ve.hasAnimatedSinceResize = !0, this.currentAnimation = ff(0, Us, {
4707
4744
  ...r,
4708
4745
  onUpdate: (a) => {
4709
4746
  this.mixTargetDelta(a), r.onUpdate && r.onUpdate(a);
@@ -4720,13 +4757,13 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4720
4757
  r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
4721
4758
  }
4722
4759
  finishAnimation() {
4723
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Ns), this.currentAnimation.stop()), this.completeAnimation();
4760
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Us), this.currentAnimation.stop()), this.completeAnimation();
4724
4761
  }
4725
4762
  applyTransformsToTarget() {
4726
4763
  const r = this.getLead();
4727
4764
  let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = r;
4728
4765
  if (!(!a || !l || !c)) {
4729
- if (this !== r && this.layout && c && Ro(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
4766
+ if (this !== r && this.layout && c && Eo(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
4730
4767
  l = this.target || N();
4731
4768
  const f = Z(this.layout.layoutBox.x);
4732
4769
  l.x.min = r.target.x.min, l.x.max = l.x.min + f;
@@ -4737,7 +4774,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4737
4774
  }
4738
4775
  }
4739
4776
  registerSharedNode(r, a) {
4740
- this.sharedNodes.has(r) || this.sharedNodes.set(r, new ef()), this.sharedNodes.get(r).add(a);
4777
+ this.sharedNodes.has(r) || this.sharedNodes.set(r, new rf()), this.sharedNodes.get(r).add(a);
4741
4778
  const c = a.options.initialPromotionConfig;
4742
4779
  a.promote({
4743
4780
  transition: c ? c.transition : void 0,
@@ -4793,19 +4830,19 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4793
4830
  if (!this.instance || this.isSVG)
4794
4831
  return;
4795
4832
  if (!this.isVisible)
4796
- return cf;
4833
+ return hf;
4797
4834
  const c = {
4798
4835
  visibility: ""
4799
4836
  }, u = this.getTransformTemplate();
4800
4837
  if (this.needsReset)
4801
- return this.needsReset = !1, c.opacity = "", c.pointerEvents = Ce(r == null ? void 0 : r.pointerEvents) || "", c.transform = u ? u(this.latestValues, "") : "none", c;
4838
+ return this.needsReset = !1, c.opacity = "", c.pointerEvents = Re(r == null ? void 0 : r.pointerEvents) || "", c.transform = u ? u(this.latestValues, "") : "none", c;
4802
4839
  const f = this.getLead();
4803
4840
  if (!this.projectionDelta || !this.layout || !f.target) {
4804
4841
  const v = {};
4805
- return this.options.layoutId && (v.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, v.pointerEvents = Ce(r == null ? void 0 : r.pointerEvents) || ""), this.hasProjected && !Rt(this.latestValues) && (v.transform = u ? u({}, "") : "none", this.hasProjected = !1), v;
4842
+ return this.options.layoutId && (v.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, v.pointerEvents = Re(r == null ? void 0 : r.pointerEvents) || ""), this.hasProjected && !Rt(this.latestValues) && (v.transform = u ? u({}, "") : "none", this.hasProjected = !1), v;
4806
4843
  }
4807
4844
  const d = f.animationValues || f.latestValues;
4808
- this.applyTransformsToTarget(), c.transform = nf(this.projectionDeltaWithTransform, this.treeScale, d), u && (c.transform = u(d, c.transform));
4845
+ this.applyTransformsToTarget(), c.transform = of(this.projectionDeltaWithTransform, this.treeScale, d), u && (c.transform = u(d, c.transform));
4809
4846
  const { x: p, y: m } = this.projectionDelta;
4810
4847
  c.transformOrigin = `${p.origin * 100}% ${m.origin * 100}% 0`, f.animationValues ? c.opacity = f === this ? (l = (a = d.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : d.opacityExit : c.opacity = f === this ? d.opacity !== void 0 ? d.opacity : "" : d.opacityExit !== void 0 ? d.opacityExit : 0;
4811
4848
  for (const v in ke) {
@@ -4819,7 +4856,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4819
4856
  } else
4820
4857
  c[v] = y;
4821
4858
  }
4822
- return this.options.layoutId && (c.pointerEvents = f === this ? Ce(r == null ? void 0 : r.pointerEvents) || "" : "none"), c;
4859
+ return this.options.layoutId && (c.pointerEvents = f === this ? Re(r == null ? void 0 : r.pointerEvents) || "" : "none"), c;
4823
4860
  }
4824
4861
  clearSnapshot() {
4825
4862
  this.resumeFrom = this.snapshot = void 0;
@@ -4829,14 +4866,14 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4829
4866
  this.root.nodes.forEach((r) => {
4830
4867
  var a;
4831
4868
  return (a = r.currentAnimation) === null || a === void 0 ? void 0 : a.stop();
4832
- }), this.root.nodes.forEach(Us), this.root.sharedNodes.clear();
4869
+ }), this.root.nodes.forEach(Ws), this.root.sharedNodes.clear();
4833
4870
  }
4834
4871
  };
4835
4872
  }
4836
- function ff(t) {
4873
+ function pf(t) {
4837
4874
  t.updateLayout();
4838
4875
  }
4839
- function hf(t) {
4876
+ function mf(t) {
4840
4877
  var e;
4841
4878
  const n = ((e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) || t.snapshot;
4842
4879
  if (t.isLead() && t.layout && n && t.hasListeners("didUpdate")) {
@@ -4844,7 +4881,7 @@ function hf(t) {
4844
4881
  o === "size" ? nt((f) => {
4845
4882
  const d = r ? n.measuredBox[f] : n.layoutBox[f], p = Z(d);
4846
4883
  d.min = i[f].min, d.max = d.min + p;
4847
- }) : Ro(o, n.layoutBox, i) && nt((f) => {
4884
+ }) : Eo(o, n.layoutBox, i) && nt((f) => {
4848
4885
  const d = r ? n.measuredBox[f] : n.layoutBox[f], p = Z(i[f]);
4849
4886
  d.max = d.min + p, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[f].max = t.relativeTarget[f].min + p);
4850
4887
  });
@@ -4852,7 +4889,7 @@ function hf(t) {
4852
4889
  ie(a, i, n.layoutBox);
4853
4890
  const l = Nt();
4854
4891
  r ? ie(l, t.applyTransform(s, !0), n.measuredBox) : ie(l, i, n.layoutBox);
4855
- const c = !wo(a);
4892
+ const c = !So(a);
4856
4893
  let u = !1;
4857
4894
  if (!t.resumeFrom) {
4858
4895
  const f = t.getClosestProjectingParent();
@@ -4862,7 +4899,7 @@ function hf(t) {
4862
4899
  const m = N();
4863
4900
  se(m, n.layoutBox, d.layoutBox);
4864
4901
  const v = N();
4865
- se(v, i, p.layoutBox), So(m, v) || (u = !0), f.options.layoutRoot && (t.relativeTarget = v, t.relativeTargetOrigin = m, t.relativeParent = f);
4902
+ se(v, i, p.layoutBox), Ao(m, v) || (u = !0), f.options.layoutRoot && (t.relativeTarget = v, t.relativeTargetOrigin = m, t.relativeParent = f);
4866
4903
  }
4867
4904
  }
4868
4905
  }
@@ -4880,70 +4917,70 @@ function hf(t) {
4880
4917
  }
4881
4918
  t.options.transition = void 0;
4882
4919
  }
4883
- function df(t) {
4920
+ function gf(t) {
4884
4921
  te && Et.totalNodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
4885
4922
  }
4886
- function pf(t) {
4923
+ function yf(t) {
4887
4924
  t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
4888
4925
  }
4889
- function mf(t) {
4926
+ function vf(t) {
4890
4927
  t.clearSnapshot();
4891
4928
  }
4892
- function Us(t) {
4929
+ function Ws(t) {
4893
4930
  t.clearMeasurements();
4894
4931
  }
4895
- function gf(t) {
4932
+ function Pf(t) {
4896
4933
  t.isLayoutDirty = !1;
4897
4934
  }
4898
- function yf(t) {
4935
+ function Tf(t) {
4899
4936
  const { visualElement: e } = t.options;
4900
4937
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
4901
4938
  }
4902
- function Ws(t) {
4939
+ function $s(t) {
4903
4940
  t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
4904
4941
  }
4905
- function vf(t) {
4942
+ function bf(t) {
4906
4943
  t.resolveTargetDelta();
4907
4944
  }
4908
- function Pf(t) {
4945
+ function xf(t) {
4909
4946
  t.calcProjection();
4910
4947
  }
4911
- function Tf(t) {
4948
+ function wf(t) {
4912
4949
  t.resetSkewAndRotation();
4913
4950
  }
4914
- function bf(t) {
4951
+ function Sf(t) {
4915
4952
  t.removeLeadSnapshot();
4916
4953
  }
4917
- function $s(t, e, n) {
4954
+ function Ks(t, e, n) {
4918
4955
  t.translate = j(e.translate, 0, n), t.scale = j(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
4919
4956
  }
4920
- function Ks(t, e, n, i) {
4957
+ function Gs(t, e, n, i) {
4921
4958
  t.min = j(e.min, n.min, i), t.max = j(e.max, n.max, i);
4922
4959
  }
4923
- function xf(t, e, n, i) {
4924
- Ks(t.x, e.x, n.x, i), Ks(t.y, e.y, n.y, i);
4960
+ function Af(t, e, n, i) {
4961
+ Gs(t.x, e.x, n.x, i), Gs(t.y, e.y, n.y, i);
4925
4962
  }
4926
- function wf(t) {
4963
+ function Cf(t) {
4927
4964
  return t.animationValues && t.animationValues.opacityExit !== void 0;
4928
4965
  }
4929
- const Sf = {
4966
+ const Rf = {
4930
4967
  duration: 0.45,
4931
4968
  ease: [0.4, 0, 0.1, 1]
4932
- }, Gs = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Hs = Gs("applewebkit/") && !Gs("chrome/") ? Math.round : H;
4933
- function zs(t) {
4934
- t.min = Hs(t.min), t.max = Hs(t.max);
4969
+ }, Hs = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), zs = Hs("applewebkit/") && !Hs("chrome/") ? Math.round : H;
4970
+ function Ys(t) {
4971
+ t.min = zs(t.min), t.max = zs(t.max);
4935
4972
  }
4936
- function Af(t) {
4937
- zs(t.x), zs(t.y);
4973
+ function Ef(t) {
4974
+ Ys(t.x), Ys(t.y);
4938
4975
  }
4939
- function Ro(t, e, n) {
4940
- return t === "position" || t === "preserve-aspect" && !Cu(Bs(e), Bs(n), 0.2);
4976
+ function Eo(t, e, n) {
4977
+ return t === "position" || t === "preserve-aspect" && !Vu(Is(e), Is(n), 0.2);
4941
4978
  }
4942
- function Cf(t) {
4979
+ function Vf(t) {
4943
4980
  var e;
4944
4981
  return t !== t.root && ((e = t.scroll) === null || e === void 0 ? void 0 : e.wasRoot);
4945
4982
  }
4946
- const Rf = Co({
4983
+ const Df = Ro({
4947
4984
  attachResizeListener: (t, e) => lt(t, "resize", e),
4948
4985
  measureScroll: () => ({
4949
4986
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
@@ -4952,14 +4989,14 @@ const Rf = Co({
4952
4989
  checkIsScrollRoot: () => !0
4953
4990
  }), mn = {
4954
4991
  current: void 0
4955
- }, Eo = Co({
4992
+ }, Vo = Ro({
4956
4993
  measureScroll: (t) => ({
4957
4994
  x: t.scrollLeft,
4958
4995
  y: t.scrollTop
4959
4996
  }),
4960
4997
  defaultParent: () => {
4961
4998
  if (!mn.current) {
4962
- const t = new Rf({});
4999
+ const t = new Df({});
4963
5000
  t.mount(window), t.setOptions({ layoutScroll: !0 }), mn.current = t;
4964
5001
  }
4965
5002
  return mn.current;
@@ -4968,25 +5005,25 @@ const Rf = Co({
4968
5005
  t.style.transform = e !== void 0 ? e : "none";
4969
5006
  },
4970
5007
  checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
4971
- }), Ef = {
5008
+ }), Mf = {
4972
5009
  pan: {
4973
- Feature: Wu
5010
+ Feature: Gu
4974
5011
  },
4975
5012
  drag: {
4976
- Feature: Uu,
4977
- ProjectionNode: Eo,
4978
- MeasureLayout: To
5013
+ Feature: Ku,
5014
+ ProjectionNode: Vo,
5015
+ MeasureLayout: bo
4979
5016
  }
4980
- }, kn = { current: null }, Vo = { current: !1 };
4981
- function Vf() {
4982
- if (Vo.current = !0, !!Bn)
5017
+ }, kn = { current: null }, Do = { current: !1 };
5018
+ function kf() {
5019
+ if (Do.current = !0, !!Bn)
4983
5020
  if (window.matchMedia) {
4984
5021
  const t = window.matchMedia("(prefers-reduced-motion)"), e = () => kn.current = t.matches;
4985
5022
  t.addListener(e), e();
4986
5023
  } else
4987
5024
  kn.current = !1;
4988
5025
  }
4989
- function Df(t, e, n) {
5026
+ function Lf(t, e, n) {
4990
5027
  for (const i in e) {
4991
5028
  const s = e[i], o = n[i];
4992
5029
  if (Y(s))
@@ -5006,7 +5043,7 @@ function Df(t, e, n) {
5006
5043
  e[i] === void 0 && t.removeValue(i);
5007
5044
  return e;
5008
5045
  }
5009
- const Ys = /* @__PURE__ */ new WeakMap(), Mf = [...Or, z, xt], kf = (t) => Mf.find(Fr(t)), Xs = [
5046
+ const Xs = /* @__PURE__ */ new WeakMap(), Ff = [...jr, z, bt], Of = (t) => Ff.find(Or(t)), qs = [
5010
5047
  "AnimationStart",
5011
5048
  "AnimationComplete",
5012
5049
  "Update",
@@ -5014,8 +5051,8 @@ const Ys = /* @__PURE__ */ new WeakMap(), Mf = [...Or, z, xt], kf = (t) => Mf.fi
5014
5051
  "LayoutMeasure",
5015
5052
  "LayoutAnimationStart",
5016
5053
  "LayoutAnimationComplete"
5017
- ], Lf = Un.length;
5018
- class Ff {
5054
+ ], jf = Un.length;
5055
+ class _f {
5019
5056
  /**
5020
5057
  * This method takes React props and returns found MotionValues. For example, HTML
5021
5058
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -5033,7 +5070,7 @@ class Ff {
5033
5070
  this.isRenderScheduled || (this.isRenderScheduled = !0, M.render(this.render, !1, !0));
5034
5071
  };
5035
5072
  const { latestValues: l, renderState: c } = r;
5036
- this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Ue(n), this.isVariantNode = ur(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
5073
+ this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Ue(n), this.isVariantNode = fr(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
5037
5074
  const { willChange: u, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
5038
5075
  for (const d in f) {
5039
5076
  const p = f[d];
@@ -5041,10 +5078,10 @@ class Ff {
5041
5078
  }
5042
5079
  }
5043
5080
  mount(e) {
5044
- this.current = e, Ys.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, i) => this.bindToMotionValue(i, n)), Vo.current || Vf(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : kn.current, process.env.NODE_ENV !== "production" && fi(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);
5081
+ this.current = e, Xs.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, i) => this.bindToMotionValue(i, n)), Do.current || kf(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : kn.current, process.env.NODE_ENV !== "production" && fi(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);
5045
5082
  }
5046
5083
  unmount() {
5047
- Ys.delete(this.current), this.projection && this.projection.unmount(), mt(this.notifyUpdate), mt(this.render), this.valueSubscriptions.forEach((e) => e()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
5084
+ Xs.delete(this.current), this.projection && this.projection.unmount(), mt(this.notifyUpdate), mt(this.render), this.valueSubscriptions.forEach((e) => e()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
5048
5085
  for (const e in this.events)
5049
5086
  this.events[e].clear();
5050
5087
  for (const e in this.features) {
@@ -5054,7 +5091,7 @@ class Ff {
5054
5091
  this.current = null;
5055
5092
  }
5056
5093
  bindToMotionValue(e, n) {
5057
- const i = wt.has(e), s = n.on("change", (r) => {
5094
+ const i = xt.has(e), s = n.on("change", (r) => {
5058
5095
  this.latestValues[e] = r, this.props.onUpdate && M.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0);
5059
5096
  }), o = n.on("renderRequest", this.scheduleRender);
5060
5097
  this.valueSubscriptions.set(e, () => {
@@ -5100,13 +5137,13 @@ class Ff {
5100
5137
  */
5101
5138
  update(e, n) {
5102
5139
  (e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
5103
- for (let i = 0; i < Xs.length; i++) {
5104
- const s = Xs[i];
5140
+ for (let i = 0; i < qs.length; i++) {
5141
+ const s = qs[i];
5105
5142
  this.propEventSubscriptions[s] && (this.propEventSubscriptions[s](), delete this.propEventSubscriptions[s]);
5106
5143
  const o = "on" + s, r = e[o];
5107
5144
  r && (this.propEventSubscriptions[s] = this.on(s, r));
5108
5145
  }
5109
- this.prevMotionValues = Df(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
5146
+ this.prevMotionValues = Lf(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
5110
5147
  }
5111
5148
  getProps() {
5112
5149
  return this.props;
@@ -5137,7 +5174,7 @@ class Ff {
5137
5174
  return this.props.initial !== void 0 && (i.initial = this.props.initial), i;
5138
5175
  }
5139
5176
  const n = {};
5140
- for (let i = 0; i < Lf; i++) {
5177
+ for (let i = 0; i < jf; i++) {
5141
5178
  const s = Un[i], o = this.props[s];
5142
5179
  (oe(o) || o === !1) && (n[s] = o);
5143
5180
  }
@@ -5186,7 +5223,7 @@ class Ff {
5186
5223
  readValue(e, n) {
5187
5224
  var i;
5188
5225
  let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (i = this.getBaseTargetFromProps(this.props, e)) !== null && i !== void 0 ? i : this.readValueFromInstance(this.current, e, this.options);
5189
- return s != null && (typeof s == "string" && (kr(s) || Mr(s)) ? s = parseFloat(s) : !kf(s) && xt.test(n) && (s = $r(e, n)), this.setBaseTarget(e, Y(s) ? s.get() : s)), Y(s) ? s.get() : s;
5226
+ return s != null && (typeof s == "string" && (Lr(s) || kr(s)) ? s = parseFloat(s) : !Of(s) && bt.test(n) && (s = Kr(e, n)), this.setBaseTarget(e, Y(s) ? s.get() : s)), Y(s) ? s.get() : s;
5190
5227
  }
5191
5228
  /**
5192
5229
  * Set the base target to later animate back to. This is currently
@@ -5219,9 +5256,9 @@ class Ff {
5219
5256
  this.events[e] && this.events[e].notify(...n);
5220
5257
  }
5221
5258
  }
5222
- class Do extends Ff {
5259
+ class Mo extends _f {
5223
5260
  constructor() {
5224
- super(...arguments), this.KeyframeResolver = Kr;
5261
+ super(...arguments), this.KeyframeResolver = Gr;
5225
5262
  }
5226
5263
  sortInstanceNodePosition(e, n) {
5227
5264
  return e.compareDocumentPosition(n) & 2 ? 1 : -1;
@@ -5233,24 +5270,24 @@ class Do extends Ff {
5233
5270
  delete n[e], delete i[e];
5234
5271
  }
5235
5272
  }
5236
- function Of(t) {
5273
+ function Bf(t) {
5237
5274
  return window.getComputedStyle(t);
5238
5275
  }
5239
- class jf extends Do {
5276
+ class If extends Mo {
5240
5277
  constructor() {
5241
- super(...arguments), this.type = "html", this.applyWillChange = !0, this.renderInstance = vr;
5278
+ super(...arguments), this.type = "html", this.applyWillChange = !0, this.renderInstance = Pr;
5242
5279
  }
5243
5280
  readValueFromInstance(e, n) {
5244
- if (wt.has(n)) {
5281
+ if (xt.has(n)) {
5245
5282
  const i = ii(n);
5246
5283
  return i && i.default || 0;
5247
5284
  } else {
5248
- const i = Of(e), s = (pr(n) ? i.getPropertyValue(n) : i[n]) || 0;
5285
+ const i = Bf(e), s = (mr(n) ? i.getPropertyValue(n) : i[n]) || 0;
5249
5286
  return typeof s == "string" ? s.trim() : s;
5250
5287
  }
5251
5288
  }
5252
5289
  measureInstanceViewportBox(e, { transformPagePoint: n }) {
5253
- return vo(e, n);
5290
+ return Po(e, n);
5254
5291
  }
5255
5292
  build(e, n, i) {
5256
5293
  zn(e, n, i.transformTemplate);
@@ -5266,7 +5303,7 @@ class jf extends Do {
5266
5303
  }));
5267
5304
  }
5268
5305
  }
5269
- class _f extends Do {
5306
+ class Nf extends Mo {
5270
5307
  constructor() {
5271
5308
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = N;
5272
5309
  }
@@ -5274,39 +5311,39 @@ class _f extends Do {
5274
5311
  return e[n];
5275
5312
  }
5276
5313
  readValueFromInstance(e, n) {
5277
- if (wt.has(n)) {
5314
+ if (xt.has(n)) {
5278
5315
  const i = ii(n);
5279
5316
  return i && i.default || 0;
5280
5317
  }
5281
- return n = Pr.has(n) ? n : Ne(n), e.getAttribute(n);
5318
+ return n = Tr.has(n) ? n : Ne(n), e.getAttribute(n);
5282
5319
  }
5283
5320
  scrapeMotionValuesFromProps(e, n, i) {
5284
- return br(e, n, i);
5321
+ return xr(e, n, i);
5285
5322
  }
5286
5323
  build(e, n, i) {
5287
5324
  Xn(e, n, this.isSVGTag, i.transformTemplate);
5288
5325
  }
5289
5326
  renderInstance(e, n, i, s) {
5290
- Tr(e, n, i, s);
5327
+ br(e, n, i, s);
5291
5328
  }
5292
5329
  mount(e) {
5293
5330
  this.isSVGTag = qn(e.tagName), super.mount(e);
5294
5331
  }
5295
5332
  }
5296
- const Bf = (t, e) => $n(t) ? new _f(e) : new jf(e, {
5333
+ const Uf = (t, e) => $n(t) ? new Nf(e) : new If(e, {
5297
5334
  allowProjection: t !== nr
5298
- }), If = {
5335
+ }), Wf = {
5299
5336
  layout: {
5300
- ProjectionNode: Eo,
5301
- MeasureLayout: To
5302
- }
5303
- }, Nf = {
5304
- ...vu,
5305
- ...El,
5306
- ...Ef,
5307
- ...If
5308
- }, Uf = /* @__PURE__ */ _a((t, e) => ml(t, e, Nf, Bf));
5309
- class Wf extends Ln.Component {
5337
+ ProjectionNode: Vo,
5338
+ MeasureLayout: bo
5339
+ }
5340
+ }, $f = {
5341
+ ...bu,
5342
+ ...Ml,
5343
+ ...Mf,
5344
+ ...Wf
5345
+ }, Kf = /* @__PURE__ */ Na((t, e) => vl(t, e, $f, Uf));
5346
+ class Gf extends Ln.Component {
5310
5347
  getSnapshotBeforeUpdate(e) {
5311
5348
  const n = this.props.childRef.current;
5312
5349
  if (n && e.isPresent && !this.props.isPresent) {
@@ -5324,7 +5361,7 @@ class Wf extends Ln.Component {
5324
5361
  return this.props.children;
5325
5362
  }
5326
5363
  }
5327
- function $f({ children: t, isPresent: e }) {
5364
+ function Hf({ children: t, isPresent: e }) {
5328
5365
  const n = On(), i = it(null), s = it({
5329
5366
  width: 0,
5330
5367
  height: 0,
@@ -5348,10 +5385,10 @@ function $f({ children: t, isPresent: e }) {
5348
5385
  `), () => {
5349
5386
  document.head.removeChild(u);
5350
5387
  };
5351
- }, [e]), O.jsx(Wf, { isPresent: e, childRef: i, sizeRef: s, children: Ln.cloneElement(t, { ref: i }) });
5388
+ }, [e]), O.jsx(Gf, { isPresent: e, childRef: i, sizeRef: s, children: Ln.cloneElement(t, { ref: i }) });
5352
5389
  }
5353
- const Kf = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: s, presenceAffectsLayout: o, mode: r }) => {
5354
- const a = Qn(Gf), l = On(), c = Mt(
5390
+ const zf = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: s, presenceAffectsLayout: o, mode: r }) => {
5391
+ const a = Qn(Yf), l = On(), c = Mt(
5355
5392
  () => ({
5356
5393
  id: l,
5357
5394
  initial: e,
@@ -5377,22 +5414,22 @@ const Kf = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom:
5377
5414
  a.forEach((u, f) => a.set(f, !1));
5378
5415
  }, [n]), Ln.useEffect(() => {
5379
5416
  !n && !a.size && i && i();
5380
- }, [n]), r === "popLayout" && (t = O.jsx($f, { isPresent: n, children: t })), O.jsx(Ie.Provider, { value: c, children: t });
5417
+ }, [n]), r === "popLayout" && (t = O.jsx(Hf, { isPresent: n, children: t })), O.jsx(Ie.Provider, { value: c, children: t });
5381
5418
  };
5382
- function Gf() {
5419
+ function Yf() {
5383
5420
  return /* @__PURE__ */ new Map();
5384
5421
  }
5385
5422
  const Ae = (t) => t.key || "";
5386
- function qs(t) {
5423
+ function Zs(t) {
5387
5424
  const e = [];
5388
5425
  return la.forEach(t, (n) => {
5389
5426
  ca(n) && e.push(n);
5390
5427
  }), e;
5391
5428
  }
5392
- const Hf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExitComplete: s, presenceAffectsLayout: o = !0, mode: r = "sync" }) => {
5429
+ const Xf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExitComplete: s, presenceAffectsLayout: o = !0, mode: r = "sync" }) => {
5393
5430
  pt(!e, "Replace exitBeforeEnter with mode='wait'");
5394
- const a = Mt(() => qs(t), [t]), l = a.map(Ae), c = it(!0), u = it(a), f = Qn(() => /* @__PURE__ */ new Map()), [d, p] = _t(a), [m, v] = _t(a);
5395
- sr(() => {
5431
+ const a = Mt(() => Zs(t), [t]), l = a.map(Ae), c = it(!0), u = it(a), f = Qn(() => /* @__PURE__ */ new Map()), [d, p] = _t(a), [m, v] = _t(a);
5432
+ rr(() => {
5396
5433
  c.current = !1, u.current = a;
5397
5434
  for (let y = 0; y < m.length; y++) {
5398
5435
  const T = Ae(m[y]);
@@ -5406,7 +5443,7 @@ const Hf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
5406
5443
  const w = m[T], C = Ae(w);
5407
5444
  l.includes(C) || (y.splice(T, 0, w), x.push(w));
5408
5445
  }
5409
- r === "wait" && x.length && (y = x), v(qs(y)), p(a);
5446
+ r === "wait" && x.length && (y = x), v(Zs(y)), p(a);
5410
5447
  return;
5411
5448
  }
5412
5449
  process.env.NODE_ENV !== "production" && r === "wait" && m.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
@@ -5422,37 +5459,37 @@ const Hf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
5422
5459
  $ || (k = !1);
5423
5460
  }), k && (P == null || P(), v(u.current), s && s());
5424
5461
  };
5425
- return O.jsx(Kf, { isPresent: w, initial: !c.current || i ? void 0 : !1, custom: w ? void 0 : n, presenceAffectsLayout: o, mode: r, onExitComplete: w ? void 0 : C, children: y }, T);
5462
+ return O.jsx(zf, { isPresent: w, initial: !c.current || i ? void 0 : !1, custom: w ? void 0 : n, presenceAffectsLayout: o, mode: r, onExitComplete: w ? void 0 : C, children: y }, T);
5426
5463
  }) });
5427
5464
  };
5428
- function Ve(t) {
5465
+ function De(t) {
5429
5466
  var e = new Error(t);
5430
5467
  return e.source = "ulid", e;
5431
5468
  }
5432
- var hi = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", re = hi.length, Zs = Math.pow(2, 48) - 1, zf = 10, Yf = 16;
5433
- function Xf(t) {
5469
+ var hi = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", re = hi.length, Js = Math.pow(2, 48) - 1, qf = 10, Zf = 16;
5470
+ function Jf(t) {
5434
5471
  var e = Math.floor(t() * re);
5435
5472
  return e === re && (e = re - 1), hi.charAt(e);
5436
5473
  }
5437
- function qf(t, e) {
5474
+ function Qf(t, e) {
5438
5475
  if (isNaN(t))
5439
5476
  throw new Error(t + " must be a number");
5440
- if (t > Zs)
5441
- throw Ve("cannot encode time greater than " + Zs);
5477
+ if (t > Js)
5478
+ throw De("cannot encode time greater than " + Js);
5442
5479
  if (t < 0)
5443
- throw Ve("time must be positive");
5480
+ throw De("time must be positive");
5444
5481
  if (Number.isInteger(t) === !1)
5445
- throw Ve("time must be an integer");
5482
+ throw De("time must be an integer");
5446
5483
  for (var n = void 0, i = ""; e > 0; e--)
5447
5484
  n = t % re, i = hi.charAt(n) + i, t = (t - n) / re;
5448
5485
  return i;
5449
5486
  }
5450
- function Zf(t, e) {
5487
+ function th(t, e) {
5451
5488
  for (var n = ""; t > 0; t--)
5452
- n = Xf(e) + n;
5489
+ n = Jf(e) + n;
5453
5490
  return n;
5454
5491
  }
5455
- function Jf() {
5492
+ function eh() {
5456
5493
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, e = arguments[1];
5457
5494
  e || (e = typeof window < "u" ? window : null);
5458
5495
  var n = e && (e.crypto || e.msCrypto);
@@ -5477,50 +5514,15 @@ function Jf() {
5477
5514
  return Math.random();
5478
5515
  };
5479
5516
  }
5480
- throw Ve("secure crypto unusable, insecure Math.random not allowed");
5517
+ throw De("secure crypto unusable, insecure Math.random not allowed");
5481
5518
  }
5482
- function Qf(t) {
5483
- return t || (t = Jf()), function(n) {
5484
- return isNaN(n) && (n = Date.now()), qf(n, zf) + Zf(Yf, t);
5519
+ function nh(t) {
5520
+ return t || (t = eh()), function(n) {
5521
+ return isNaN(n) && (n = Date.now()), Qf(n, qf) + th(Zf, t);
5485
5522
  };
5486
5523
  }
5487
- var th = Qf(), Pt = /* @__PURE__ */ ((t) => (t.Escape = "Escape", t.Enter = "Enter", t.Space = "Space", t.Tab = "Tab", t.ShiftAndTab = "Shift+Tab", t.ArrowUp = "ArrowUp", t.ArrowDown = "ArrowDown", t.ArrowLeft = "ArrowLeft", t.ArrowRight = "ArrowRight", t))(Pt || {}), De = /* @__PURE__ */ ((t) => (t.Input = "INPUT", t.Textarea = "TEXTAREA", t.Select = "SELECT", t.Button = "BUTTON", t))(De || {});
5488
- const Mo = [
5489
- De.Input,
5490
- De.Textarea,
5491
- De.Select
5492
- ], eh = (t) => (t == null ? void 0 : t.split("+").map((e) => e.trim().toLowerCase())) ?? [], nh = (t) => ({
5493
- ignoreFormField: (t == null ? void 0 : t.ignoreFormField) ?? !0,
5494
- formFieldTags: (t == null ? void 0 : t.formFieldTags) ?? Mo,
5495
- preventDefault: (t == null ? void 0 : t.preventDefault) ?? !1,
5496
- stopPropagation: (t == null ? void 0 : t.stopPropagation) ?? !1
5497
- }), ih = (t, e, n) => (i) => {
5498
- const s = Array.isArray(t) ? t : [t];
5499
- for (const o of s) {
5500
- const r = nh(n), a = eh(o), l = i.key.toLowerCase(), c = i.code.toLowerCase(), u = document.activeElement;
5501
- if (i.repeat)
5502
- continue;
5503
- const f = a.includes("ctrl"), d = a.includes("cmd"), p = a.includes("shift"), m = f === i.ctrlKey, v = d === i.metaKey, x = p === i.shiftKey;
5504
- if (!(!(a.includes(l) || a.includes(c)) || !m || !v || !x) && !(!r.ignoreFormField && u && Mo.includes(u.tagName)) && e) {
5505
- r.preventDefault && i.preventDefault(), r.stopPropagation && i.stopPropagation(), e(i);
5506
- break;
5507
- }
5508
- }
5509
- }, Js = ({
5510
- onKeyDown: t,
5511
- hotKey: e,
5512
- stopPropagation: n,
5513
- preventDefault: i,
5514
- ignoreFormField: s,
5515
- formFieldTags: o
5516
- }) => {
5517
- const r = at((a) => {
5518
- t && ih(e, t, { stopPropagation: n, preventDefault: i, ignoreFormField: s, formFieldTags: o })(a);
5519
- }, [e, t]);
5520
- return ct(() => (document.addEventListener("keydown", r), () => {
5521
- document.removeEventListener("keydown", r);
5522
- }), [r]), null;
5523
- }, Qs = ({
5524
+ var ih = nh();
5525
+ const Qs = ({
5524
5526
  onMousedown: t
5525
5527
  }) => (ct(() => (document.addEventListener("mousedown", t), () => {
5526
5528
  document.removeEventListener("mousedown", t);
@@ -5581,7 +5583,7 @@ const Mo = [
5581
5583
  };
5582
5584
  }
5583
5585
  }, [s.isVisible]), /* @__PURE__ */ O.jsx(O.Fragment, { children: /* @__PURE__ */ O.jsx(
5584
- Uf.div,
5586
+ Kf.div,
5585
5587
  {
5586
5588
  ref: ko(n, i),
5587
5589
  transition: { type: "spring", duration: 0.2 },
@@ -5607,7 +5609,7 @@ function vh(t, e, n) {
5607
5609
  a && m(o.value);
5608
5610
  }, [a, o.value]);
5609
5611
  const C = at((F) => {
5610
- console.log("xxx"), l(!1), x.current.focus(), u(!1);
5612
+ l(!1), x.current.focus(), u(!1);
5611
5613
  }, []), k = at((F) => {
5612
5614
  l(!0);
5613
5615
  }, []), $ = at((F) => {
@@ -5621,7 +5623,7 @@ function vh(t, e, n) {
5621
5623
  }
5622
5624
  typeof y.current < "u" && w && JSON.stringify(p) !== JSON.stringify(y.current) && o.onChange(y.current);
5623
5625
  }, [p, o.onChange, w]), U = at((F) => {
5624
- [Pt.Escape].includes(F.key) && a && (F.stopPropagation(), l(!1));
5626
+ [Ct.Escape].includes(F.key) && a && (F.stopPropagation(), l(!1));
5625
5627
  }, [a]);
5626
5628
  return /* @__PURE__ */ O.jsx(
5627
5629
  jn.Provider,
@@ -5647,10 +5649,10 @@ function vh(t, e, n) {
5647
5649
  ref: ko(r, x)
5648
5650
  }
5649
5651
  ) }),
5650
- /* @__PURE__ */ O.jsx(Hf, { children: a && /* @__PURE__ */ O.jsx(
5651
- ir,
5652
+ /* @__PURE__ */ O.jsx(Xf, { children: a && /* @__PURE__ */ O.jsx(
5653
+ sr,
5652
5654
  {
5653
- id: `acrool-react-picker-${th().toLowerCase()}`,
5655
+ id: `acrool-react-picker-${ih().toLowerCase()}`,
5654
5656
  className: gn.pickerEl,
5655
5657
  children: /* @__PURE__ */ O.jsx(
5656
5658
  hh,
@@ -5666,27 +5668,25 @@ function vh(t, e, n) {
5666
5668
  T && a && /* @__PURE__ */ O.jsx(Qs, { onMousedown: R }),
5667
5669
  c && /* @__PURE__ */ O.jsx(Qs, { onMousedown: $ }),
5668
5670
  c && /* @__PURE__ */ O.jsx(
5669
- Js,
5671
+ Fi,
5670
5672
  {
5671
5673
  hotKey: [
5672
- Pt.ArrowUp,
5673
- Pt.ArrowDown,
5674
- Pt.Enter,
5675
- Pt.Space
5674
+ Ct.ArrowUp,
5675
+ Ct.ArrowDown,
5676
+ Ct.Space
5676
5677
  ],
5677
- onKeyDown: k,
5678
- stopPropagation: !0,
5679
- preventDefault: !0
5678
+ onKeyDown: k
5680
5679
  }
5681
5680
  ),
5682
5681
  c && /* @__PURE__ */ O.jsx(
5683
- Js,
5682
+ Fi,
5684
5683
  {
5685
5684
  hotKey: [
5686
- Pt.Tab,
5687
- Pt.ShiftAndTab
5685
+ Ct.Tab,
5686
+ Ct.ShiftAndTab
5688
5687
  ],
5689
- onKeyDown: C
5688
+ onKeyDown: C,
5689
+ preventDefault: !1
5690
5690
  }
5691
5691
  )
5692
5692
  ] })