react-motion-modal 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +693 -693
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-font-weight:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-semibold:600;--radius-md:.375rem;--radius-xl:.75rem;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.top-0{top:calc(var(--spacing)*0)}.top-1\\/2{top:50%}.right-0{right:calc(var(--spacing)*0)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mt-4{margin-top:calc(var(--spacing)*4)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.flex{display:flex}.max-h-screen{max-height:100vh}.max-w-screen{max-width:100vw}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-end{justify-content:flex-end}.gap-2{gap:calc(var(--spacing)*2)}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in oklab,var(--color-black)40%,transparent)}}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-white{background-color:var(--color-white)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-2{padding-block:calc(var(--spacing)*2)}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-all{word-break:break-all}.text-blue-500{color:var(--color-blue-500)}.text-red-500{color:var(--color-red-500)}.text-white{color:var(--color-white)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-gray-600:hover{background-color:var(--color-gray-600)}.hover\\:opacity-80:hover{opacity:.8}}@media (min-width:64rem){.lg\\:left-1\\/2{left:50%}.lg\\:-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
2
  import * as Vn from "react";
3
- import fe, { createContext as Ot, useRef as ut, useLayoutEffect as Io, useEffect as Re, useId as En, useContext as G, useInsertionEffect as Ni, useMemo as At, useCallback as Ui, Children as _o, isValidElement as Bo, useState as ps, Fragment as zi, createElement as Oo, forwardRef as Fo, Component as jo } from "react";
4
- import { jsx as Q, Fragment as No, jsxs as $i } from "react/jsx-runtime";
5
- import { createPortal as Uo } from "react-dom";
3
+ import fe, { createContext as Ot, useRef as ut, useLayoutEffect as _o, useEffect as Re, useId as En, useContext as G, useInsertionEffect as Ui, useMemo as At, useCallback as zi, Children as Bo, isValidElement as Oo, useState as ps, Fragment as $i, createElement as Fo, forwardRef as jo, Component as No } from "react";
4
+ import { jsx as Q, Fragment as Uo, jsxs as Gi } from "react/jsx-runtime";
5
+ import { createPortal as zo } from "react-dom";
6
6
  const pe = {
7
7
  TOP: "top",
8
8
  CENTER: "center",
@@ -10,28 +10,28 @@ const pe = {
10
10
  }, z = [];
11
11
  for (let t = 0; t < 256; ++t)
12
12
  z.push((t + 256).toString(16).slice(1));
13
- function zo(t, e = 0) {
13
+ function $o(t, e = 0) {
14
14
  return (z[t[e + 0]] + z[t[e + 1]] + z[t[e + 2]] + z[t[e + 3]] + "-" + z[t[e + 4]] + z[t[e + 5]] + "-" + z[t[e + 6]] + z[t[e + 7]] + "-" + z[t[e + 8]] + z[t[e + 9]] + "-" + z[t[e + 10]] + z[t[e + 11]] + z[t[e + 12]] + z[t[e + 13]] + z[t[e + 14]] + z[t[e + 15]]).toLowerCase();
15
15
  }
16
16
  let Fe;
17
- const $o = new Uint8Array(16);
18
- function Go() {
17
+ const Go = new Uint8Array(16);
18
+ function Wo() {
19
19
  if (!Fe) {
20
20
  if (typeof crypto > "u" || !crypto.getRandomValues)
21
21
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
22
22
  Fe = crypto.getRandomValues.bind(crypto);
23
23
  }
24
- return Fe($o);
24
+ return Fe(Go);
25
25
  }
26
- const Wo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ms = { randomUUID: Wo };
27
- function Ho(t, e, n) {
26
+ const Ho = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ms = { randomUUID: Ho };
27
+ function Xo(t, e, n) {
28
28
  if (ms.randomUUID && !t)
29
29
  return ms.randomUUID();
30
30
  t = t || {};
31
- const s = t.random ?? t.rng?.() ?? Go();
31
+ const s = t.random ?? t.rng?.() ?? Wo();
32
32
  if (s.length < 16)
33
33
  throw new Error("Random bytes length must be >= 16");
34
- return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, zo(s);
34
+ return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, $o(s);
35
35
  }
36
36
  const gs = (t) => {
37
37
  let e;
@@ -43,8 +43,8 @@ const gs = (t) => {
43
43
  }
44
44
  }, i = () => e, a = { setState: s, getState: i, getInitialState: () => l, subscribe: (u) => (n.add(u), () => n.delete(u)) }, l = e = t(s, i, a);
45
45
  return a;
46
- }, Xo = (t) => t ? gs(t) : gs, Yo = (t) => t;
47
- function qo(t, e = Yo) {
46
+ }, Yo = (t) => t ? gs(t) : gs, qo = (t) => t;
47
+ function Zo(t, e = qo) {
48
48
  const n = fe.useSyncExternalStore(
49
49
  t.subscribe,
50
50
  fe.useCallback(() => e(t.getState()), [t, e]),
@@ -53,16 +53,16 @@ function qo(t, e = Yo) {
53
53
  return fe.useDebugValue(n), n;
54
54
  }
55
55
  const ys = (t) => {
56
- const e = Xo(t), n = (s) => qo(e, s);
56
+ const e = Yo(t), n = (s) => Zo(e, s);
57
57
  return Object.assign(n, e), n;
58
- }, Zo = (t) => t ? ys(t) : ys, ke = Zo((t, e) => ({
58
+ }, Jo = (t) => t ? ys(t) : ys, ke = Jo((t, e) => ({
59
59
  modals: [],
60
60
  openModal(n, s) {
61
61
  const o = {
62
62
  ...s,
63
63
  closeModal: () => e().closeModal(n)
64
64
  }, r = {
65
- id: Ho(),
65
+ id: Xo(),
66
66
  name: n,
67
67
  params: o
68
68
  }, a = [...e().modals, r];
@@ -89,17 +89,17 @@ const ys = (t) => {
89
89
  }
90
90
  }
91
91
  }));
92
- function Gi(t) {
92
+ function Wi(t) {
93
93
  var e, n, s = "";
94
94
  if (typeof t == "string" || typeof t == "number") s += t;
95
95
  else if (typeof t == "object") if (Array.isArray(t)) {
96
96
  var i = t.length;
97
- for (e = 0; e < i; e++) t[e] && (n = Gi(t[e])) && (s && (s += " "), s += n);
97
+ for (e = 0; e < i; e++) t[e] && (n = Wi(t[e])) && (s && (s += " "), s += n);
98
98
  } else for (n in t) t[n] && (s && (s += " "), s += n);
99
99
  return s;
100
100
  }
101
101
  function bs() {
102
- for (var t, e, n = 0, s = "", i = arguments.length; n < i; n++) (t = arguments[n]) && (e = Gi(t)) && (s && (s += " "), s += e);
102
+ for (var t, e, n = 0, s = "", i = arguments.length; n < i; n++) (t = arguments[n]) && (e = Wi(t)) && (s && (s += " "), s += e);
103
103
  return s;
104
104
  }
105
105
  const Dn = Ot({});
@@ -107,7 +107,7 @@ function Rn(t) {
107
107
  const e = ut(null);
108
108
  return e.current === null && (e.current = t()), e.current;
109
109
  }
110
- const Ln = typeof window < "u", Wi = Ln ? Io : Re, Le = /* @__PURE__ */ Ot(null);
110
+ const Ln = typeof window < "u", Hi = Ln ? _o : Re, Le = /* @__PURE__ */ Ot(null);
111
111
  function Kn(t, e) {
112
112
  t.indexOf(e) === -1 && t.push(e);
113
113
  }
@@ -128,17 +128,17 @@ process.env.NODE_ENV !== "production" && (Ft = (t, e, n) => {
128
128
  if (!t)
129
129
  throw new Error(sn(e, n));
130
130
  });
131
- const ft = {}, Hi = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
132
- function Xi(t) {
131
+ const ft = {}, Xi = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
132
+ function Yi(t) {
133
133
  return typeof t == "object" && t !== null;
134
134
  }
135
- const Yi = (t) => /^0[^.\s]+$/u.test(t);
135
+ const qi = (t) => /^0[^.\s]+$/u.test(t);
136
136
  // @__NO_SIDE_EFFECTS__
137
137
  function _n(t) {
138
138
  let e;
139
139
  return () => (e === void 0 && (e = t()), e);
140
140
  }
141
- const st = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Jo = (t, e) => (n) => e(t(n)), ie = (...t) => t.reduce(Jo), Jt = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
141
+ const st = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Qo = (t, e) => (n) => e(t(n)), ie = (...t) => t.reduce(Qo), Jt = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
142
142
  const s = e - t;
143
143
  return s === 0 ? 1 : (n - t) / s;
144
144
  };
@@ -168,45 +168,45 @@ class Bn {
168
168
  }
169
169
  }
170
170
  const rt = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, ot = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
171
- function qi(t, e) {
171
+ function Zi(t, e) {
172
172
  return e ? t * (1e3 / e) : 0;
173
173
  }
174
174
  const vs = /* @__PURE__ */ new Set();
175
175
  function On(t, e, n) {
176
176
  t || vs.has(e) || (console.warn(sn(e, n)), vs.add(e));
177
177
  }
178
- const Zi = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Qo = 1e-7, ta = 12;
179
- function ea(t, e, n, s, i) {
178
+ const Ji = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, ta = 1e-7, ea = 12;
179
+ function na(t, e, n, s, i) {
180
180
  let o, r, a = 0;
181
181
  do
182
- r = e + (n - e) / 2, o = Zi(r, s, i) - t, o > 0 ? n = r : e = r;
183
- while (Math.abs(o) > Qo && ++a < ta);
182
+ r = e + (n - e) / 2, o = Ji(r, s, i) - t, o > 0 ? n = r : e = r;
183
+ while (Math.abs(o) > ta && ++a < ea);
184
184
  return r;
185
185
  }
186
186
  function re(t, e, n, s) {
187
187
  if (t === e && n === s)
188
188
  return st;
189
- const i = (o) => ea(o, 0, 1, t, n);
190
- return (o) => o === 0 || o === 1 ? o : Zi(i(o), e, s);
189
+ const i = (o) => na(o, 0, 1, t, n);
190
+ return (o) => o === 0 || o === 1 ? o : Ji(i(o), e, s);
191
191
  }
192
- const Ji = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Qi = (t) => (e) => 1 - t(1 - e), tr = /* @__PURE__ */ re(0.33, 1.53, 0.69, 0.99), Fn = /* @__PURE__ */ Qi(tr), er = /* @__PURE__ */ Ji(Fn), nr = (t) => (t *= 2) < 1 ? 0.5 * Fn(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), jn = (t) => 1 - Math.sin(Math.acos(t)), sr = Qi(jn), ir = Ji(jn), na = /* @__PURE__ */ re(0.42, 0, 1, 1), sa = /* @__PURE__ */ re(0, 0, 0.58, 1), rr = /* @__PURE__ */ re(0.42, 0, 0.58, 1), ia = (t) => Array.isArray(t) && typeof t[0] != "number", or = (t) => Array.isArray(t) && typeof t[0] == "number", xs = {
192
+ const Qi = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, tr = (t) => (e) => 1 - t(1 - e), er = /* @__PURE__ */ re(0.33, 1.53, 0.69, 0.99), Fn = /* @__PURE__ */ tr(er), nr = /* @__PURE__ */ Qi(Fn), sr = (t) => (t *= 2) < 1 ? 0.5 * Fn(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), jn = (t) => 1 - Math.sin(Math.acos(t)), ir = tr(jn), rr = Qi(jn), sa = /* @__PURE__ */ re(0.42, 0, 1, 1), ia = /* @__PURE__ */ re(0, 0, 0.58, 1), or = /* @__PURE__ */ re(0.42, 0, 0.58, 1), ra = (t) => Array.isArray(t) && typeof t[0] != "number", ar = (t) => Array.isArray(t) && typeof t[0] == "number", xs = {
193
193
  linear: st,
194
- easeIn: na,
195
- easeInOut: rr,
196
- easeOut: sa,
194
+ easeIn: sa,
195
+ easeInOut: or,
196
+ easeOut: ia,
197
197
  circIn: jn,
198
- circInOut: ir,
199
- circOut: sr,
198
+ circInOut: rr,
199
+ circOut: ir,
200
200
  backIn: Fn,
201
- backInOut: er,
202
- backOut: tr,
203
- anticipate: nr
204
- }, ra = (t) => typeof t == "string", ws = (t) => {
205
- if (or(t)) {
201
+ backInOut: nr,
202
+ backOut: er,
203
+ anticipate: sr
204
+ }, oa = (t) => typeof t == "string", ws = (t) => {
205
+ if (ar(t)) {
206
206
  ht(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
207
207
  const [e, n, s, i] = t;
208
208
  return re(e, n, s, i);
209
- } else if (ra(t))
209
+ } else if (oa(t))
210
210
  return ht(xs[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), xs[t];
211
211
  return t;
212
212
  }, me = [
@@ -227,7 +227,7 @@ const Ji = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Qi
227
227
  "postRender"
228
228
  // Compute
229
229
  ];
230
- function oa(t, e) {
230
+ function aa(t, e) {
231
231
  let n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), i = !1, o = !1;
232
232
  const r = /* @__PURE__ */ new WeakSet();
233
233
  let a = {
@@ -265,16 +265,16 @@ function oa(t, e) {
265
265
  };
266
266
  return u;
267
267
  }
268
- const aa = 40;
269
- function ar(t, e) {
268
+ const la = 40;
269
+ function lr(t, e) {
270
270
  let n = !1, s = !0;
271
271
  const i = {
272
272
  delta: 0,
273
273
  timestamp: 0,
274
274
  isProcessing: !1
275
- }, o = () => n = !0, r = me.reduce((d, p) => (d[p] = oa(o), d), {}), { setup: a, read: l, resolveKeyframes: u, preUpdate: c, update: f, preRender: m, render: v, postRender: w } = r, C = () => {
275
+ }, o = () => n = !0, r = me.reduce((d, p) => (d[p] = aa(o), d), {}), { setup: a, read: l, resolveKeyframes: u, preUpdate: c, update: f, preRender: m, render: v, postRender: w } = r, C = () => {
276
276
  const d = ft.useManualTiming ? i.timestamp : performance.now();
277
- n = !1, ft.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(d - i.timestamp, aa), 1)), i.timestamp = d, i.isProcessing = !0, a.process(i), l.process(i), u.process(i), c.process(i), f.process(i), m.process(i), v.process(i), w.process(i), i.isProcessing = !1, n && e && (s = !1, t(C));
277
+ n = !1, ft.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(d - i.timestamp, la), 1)), i.timestamp = d, i.isProcessing = !0, a.process(i), l.process(i), u.process(i), c.process(i), f.process(i), m.process(i), v.process(i), w.process(i), i.isProcessing = !1, n && e && (s = !1, t(C));
278
278
  }, P = () => {
279
279
  n = !0, s = !0, i.isProcessing || t(C);
280
280
  };
@@ -286,17 +286,17 @@ function ar(t, e) {
286
286
  r[me[p]].cancel(d);
287
287
  }, state: i, steps: r };
288
288
  }
289
- const { schedule: K, cancel: yt, state: $, steps: je } = /* @__PURE__ */ ar(typeof requestAnimationFrame < "u" ? requestAnimationFrame : st, !0);
289
+ const { schedule: K, cancel: yt, state: $, steps: je } = /* @__PURE__ */ lr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : st, !0);
290
290
  let we;
291
- function la() {
291
+ function ca() {
292
292
  we = void 0;
293
293
  }
294
294
  const Y = {
295
295
  now: () => (we === void 0 && Y.set($.isProcessing || ft.useManualTiming ? $.timestamp : performance.now()), we),
296
296
  set: (t) => {
297
- we = t, queueMicrotask(la);
297
+ we = t, queueMicrotask(ca);
298
298
  }
299
- }, lr = (t) => (e) => typeof e == "string" && e.startsWith(t), Nn = /* @__PURE__ */ lr("--"), ca = /* @__PURE__ */ lr("var(--"), Un = (t) => ca(t) ? ua.test(t.split("/*")[0].trim()) : !1, ua = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, jt = {
299
+ }, cr = (t) => (e) => typeof e == "string" && e.startsWith(t), Nn = /* @__PURE__ */ cr("--"), ua = /* @__PURE__ */ cr("var(--"), Un = (t) => ua(t) ? da.test(t.split("/*")[0].trim()) : !1, da = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, jt = {
300
300
  test: (t) => typeof t == "number",
301
301
  parse: parseFloat,
302
302
  transform: (t) => t
@@ -307,10 +307,10 @@ const Y = {
307
307
  ...jt,
308
308
  default: 1
309
309
  }, Xt = (t) => Math.round(t * 1e5) / 1e5, zn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
310
- function da(t) {
310
+ function ha(t) {
311
311
  return t == null;
312
312
  }
313
- const ha = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, $n = (t, e) => (n) => !!(typeof n == "string" && ha.test(n) && n.startsWith(t) || e && !da(n) && Object.prototype.hasOwnProperty.call(n, e)), cr = (t, e, n) => (s) => {
313
+ const fa = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, $n = (t, e) => (n) => !!(typeof n == "string" && fa.test(n) && n.startsWith(t) || e && !ha(n) && Object.prototype.hasOwnProperty.call(n, e)), ur = (t, e, n) => (s) => {
314
314
  if (typeof s != "string")
315
315
  return s;
316
316
  const [i, o, r, a] = s.match(zn);
@@ -320,15 +320,15 @@ const ha = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
320
320
  [n]: parseFloat(r),
321
321
  alpha: a !== void 0 ? parseFloat(a) : 1
322
322
  };
323
- }, fa = (t) => dt(0, 255, t), Ne = {
323
+ }, pa = (t) => dt(0, 255, t), Ne = {
324
324
  ...jt,
325
- transform: (t) => Math.round(fa(t))
325
+ transform: (t) => Math.round(pa(t))
326
326
  }, Ct = {
327
327
  test: /* @__PURE__ */ $n("rgb", "red"),
328
- parse: /* @__PURE__ */ cr("red", "green", "blue"),
328
+ parse: /* @__PURE__ */ ur("red", "green", "blue"),
329
329
  transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + Ne.transform(t) + ", " + Ne.transform(e) + ", " + Ne.transform(n) + ", " + Xt(Qt.transform(s)) + ")"
330
330
  };
331
- function pa(t) {
331
+ function ma(t) {
332
332
  let e = "", n = "", s = "", i = "";
333
333
  return t.length > 5 ? (e = t.substring(1, 3), n = t.substring(3, 5), s = t.substring(5, 7), i = t.substring(7, 9)) : (e = t.substring(1, 2), n = t.substring(2, 3), s = t.substring(3, 4), i = t.substring(4, 5), e += e, n += n, s += s, i += i), {
334
334
  red: parseInt(e, 16),
@@ -339,19 +339,19 @@ function pa(t) {
339
339
  }
340
340
  const rn = {
341
341
  test: /* @__PURE__ */ $n("#"),
342
- parse: pa,
342
+ parse: ma,
343
343
  transform: Ct.transform
344
344
  }, oe = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
345
345
  test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
346
346
  parse: parseFloat,
347
347
  transform: (e) => `${e}${t}`
348
- }), gt = /* @__PURE__ */ oe("deg"), at = /* @__PURE__ */ oe("%"), M = /* @__PURE__ */ oe("px"), ma = /* @__PURE__ */ oe("vh"), ga = /* @__PURE__ */ oe("vw"), Ts = {
348
+ }), gt = /* @__PURE__ */ oe("deg"), at = /* @__PURE__ */ oe("%"), M = /* @__PURE__ */ oe("px"), ga = /* @__PURE__ */ oe("vh"), ya = /* @__PURE__ */ oe("vw"), Ts = {
349
349
  ...at,
350
350
  parse: (t) => at.parse(t) / 100,
351
351
  transform: (t) => at.transform(t * 100)
352
352
  }, Vt = {
353
353
  test: /* @__PURE__ */ $n("hsl", "hue"),
354
- parse: /* @__PURE__ */ cr("hue", "saturation", "lightness"),
354
+ parse: /* @__PURE__ */ ur("hue", "saturation", "lightness"),
355
355
  transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + at.transform(Xt(e)) + ", " + at.transform(Xt(n)) + ", " + Xt(Qt.transform(s)) + ")"
356
356
  }, F = {
357
357
  test: (t) => Ct.test(t) || rn.test(t) || Vt.test(t),
@@ -361,11 +361,11 @@ const rn = {
361
361
  const e = F.parse(t);
362
362
  return e.alpha = 0, F.transform(e);
363
363
  }
364
- }, ya = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
365
- function ba(t) {
366
- return isNaN(t) && typeof t == "string" && (t.match(zn)?.length || 0) + (t.match(ya)?.length || 0) > 0;
364
+ }, ba = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
365
+ function va(t) {
366
+ return isNaN(t) && typeof t == "string" && (t.match(zn)?.length || 0) + (t.match(ba)?.length || 0) > 0;
367
367
  }
368
- const ur = "number", dr = "color", va = "var", xa = "var(", Cs = "${}", wa = /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;
368
+ const dr = "number", hr = "color", xa = "var", wa = "var(", Cs = "${}", Ta = /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;
369
369
  function te(t) {
370
370
  const e = t.toString(), n = [], s = {
371
371
  color: [],
@@ -373,39 +373,39 @@ function te(t) {
373
373
  var: []
374
374
  }, i = [];
375
375
  let o = 0;
376
- const a = e.replace(wa, (l) => (F.test(l) ? (s.color.push(o), i.push(dr), n.push(F.parse(l))) : l.startsWith(xa) ? (s.var.push(o), i.push(va), n.push(l)) : (s.number.push(o), i.push(ur), n.push(parseFloat(l))), ++o, Cs)).split(Cs);
376
+ const a = e.replace(Ta, (l) => (F.test(l) ? (s.color.push(o), i.push(hr), n.push(F.parse(l))) : l.startsWith(wa) ? (s.var.push(o), i.push(xa), n.push(l)) : (s.number.push(o), i.push(dr), n.push(parseFloat(l))), ++o, Cs)).split(Cs);
377
377
  return { values: n, split: a, indexes: s, types: i };
378
378
  }
379
- function hr(t) {
379
+ function fr(t) {
380
380
  return te(t).values;
381
381
  }
382
- function fr(t) {
382
+ function pr(t) {
383
383
  const { split: e, types: n } = te(t), s = e.length;
384
384
  return (i) => {
385
385
  let o = "";
386
386
  for (let r = 0; r < s; r++)
387
387
  if (o += e[r], i[r] !== void 0) {
388
388
  const a = n[r];
389
- a === ur ? o += Xt(i[r]) : a === dr ? o += F.transform(i[r]) : o += i[r];
389
+ a === dr ? o += Xt(i[r]) : a === hr ? o += F.transform(i[r]) : o += i[r];
390
390
  }
391
391
  return o;
392
392
  };
393
393
  }
394
- const Ta = (t) => typeof t == "number" ? 0 : F.test(t) ? F.getAnimatableNone(t) : t;
395
- function Ca(t) {
396
- const e = hr(t);
397
- return fr(t)(e.map(Ta));
394
+ const Ca = (t) => typeof t == "number" ? 0 : F.test(t) ? F.getAnimatableNone(t) : t;
395
+ function Pa(t) {
396
+ const e = fr(t);
397
+ return pr(t)(e.map(Ca));
398
398
  }
399
399
  const bt = {
400
- test: ba,
401
- parse: hr,
402
- createTransformer: fr,
403
- getAnimatableNone: Ca
400
+ test: va,
401
+ parse: fr,
402
+ createTransformer: pr,
403
+ getAnimatableNone: Pa
404
404
  };
405
405
  function Ue(t, e, n) {
406
406
  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;
407
407
  }
408
- function Pa({ hue: t, saturation: e, lightness: n, alpha: s }) {
408
+ function Sa({ hue: t, saturation: e, lightness: n, alpha: s }) {
409
409
  t /= 360, e /= 100, n /= 100;
410
410
  let i = 0, o = 0, r = 0;
411
411
  if (!e)
@@ -427,13 +427,13 @@ function Ae(t, e) {
427
427
  const _ = (t, e, n) => t + (e - t) * n, ze = (t, e, n) => {
428
428
  const s = t * t, i = n * (e * e - s) + s;
429
429
  return i < 0 ? 0 : Math.sqrt(i);
430
- }, Sa = [rn, Ct, Vt], ka = (t) => Sa.find((e) => e.test(t));
430
+ }, ka = [rn, Ct, Vt], Aa = (t) => ka.find((e) => e.test(t));
431
431
  function Ps(t) {
432
- const e = ka(t);
432
+ const e = Aa(t);
433
433
  if (Ft(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !e)
434
434
  return !1;
435
435
  let n = e.parse(t);
436
- return e === Vt && (n = Pa(n)), n;
436
+ return e === Vt && (n = Sa(n)), n;
437
437
  }
438
438
  const Ss = (t, e) => {
439
439
  const n = Ps(t), s = Ps(e);
@@ -442,16 +442,16 @@ const Ss = (t, e) => {
442
442
  const i = { ...n };
443
443
  return (o) => (i.red = ze(n.red, s.red, o), i.green = ze(n.green, s.green, o), i.blue = ze(n.blue, s.blue, o), i.alpha = _(n.alpha, s.alpha, o), Ct.transform(i));
444
444
  }, on = /* @__PURE__ */ new Set(["none", "hidden"]);
445
- function Aa(t, e) {
445
+ function Ma(t, e) {
446
446
  return on.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
447
447
  }
448
- function Ma(t, e) {
448
+ function Va(t, e) {
449
449
  return (n) => _(t, e, n);
450
450
  }
451
451
  function Gn(t) {
452
- return typeof t == "number" ? Ma : typeof t == "string" ? Un(t) ? Ae : F.test(t) ? Ss : Da : Array.isArray(t) ? pr : typeof t == "object" ? F.test(t) ? Ss : Va : Ae;
452
+ return typeof t == "number" ? Va : typeof t == "string" ? Un(t) ? Ae : F.test(t) ? Ss : Ra : Array.isArray(t) ? mr : typeof t == "object" ? F.test(t) ? Ss : Ea : Ae;
453
453
  }
454
- function pr(t, e) {
454
+ function mr(t, e) {
455
455
  const n = [...t], s = n.length, i = t.map((o, r) => Gn(o)(o, e[r]));
456
456
  return (o) => {
457
457
  for (let r = 0; r < s; r++)
@@ -459,7 +459,7 @@ function pr(t, e) {
459
459
  return n;
460
460
  };
461
461
  }
462
- function Va(t, e) {
462
+ function Ea(t, e) {
463
463
  const n = { ...t, ...e }, s = {};
464
464
  for (const i in n)
465
465
  t[i] !== void 0 && e[i] !== void 0 && (s[i] = Gn(t[i])(t[i], e[i]));
@@ -469,7 +469,7 @@ function Va(t, e) {
469
469
  return n;
470
470
  };
471
471
  }
472
- function Ea(t, e) {
472
+ function Da(t, e) {
473
473
  const n = [], s = { color: 0, var: 0, number: 0 };
474
474
  for (let i = 0; i < e.values.length; i++) {
475
475
  const o = e.types[i], r = t.indexes[o][s[o]], a = t.values[r] ?? 0;
@@ -477,14 +477,14 @@ function Ea(t, e) {
477
477
  }
478
478
  return n;
479
479
  }
480
- const Da = (t, e) => {
480
+ const Ra = (t, e) => {
481
481
  const n = bt.createTransformer(e), s = te(t), i = te(e);
482
- return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? on.has(t) && !i.values.length || on.has(e) && !s.values.length ? Aa(t, e) : ie(pr(Ea(s, i), i.values), n) : (Ft(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Ae(t, e));
482
+ return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? on.has(t) && !i.values.length || on.has(e) && !s.values.length ? Ma(t, e) : ie(mr(Da(s, i), i.values), n) : (Ft(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Ae(t, e));
483
483
  };
484
- function mr(t, e, n) {
484
+ function gr(t, e, n) {
485
485
  return typeof t == "number" && typeof e == "number" && typeof n == "number" ? _(t, e, n) : Gn(t)(t, e);
486
486
  }
487
- const Ra = (t) => {
487
+ const La = (t) => {
488
488
  const e = ({ timestamp: n }) => t(n);
489
489
  return {
490
490
  start: (n = !0) => K.update(e, n),
@@ -495,7 +495,7 @@ const Ra = (t) => {
495
495
  */
496
496
  now: () => $.isProcessing ? $.timestamp : Y.now()
497
497
  };
498
- }, gr = (t, e, n = 10) => {
498
+ }, yr = (t, e, n = 10) => {
499
499
  let s = "";
500
500
  const i = Math.max(Math.round(e / n), 2);
501
501
  for (let o = 0; o < i; o++)
@@ -510,7 +510,7 @@ function Wn(t) {
510
510
  e += n, s = t.next(e);
511
511
  return e >= Me ? 1 / 0 : e;
512
512
  }
513
- function La(t, e = 100, n) {
513
+ function Ka(t, e = 100, n) {
514
514
  const s = n({ ...t, keyframes: [0, e] }), i = Math.min(Wn(s), Me);
515
515
  return {
516
516
  type: "keyframes",
@@ -518,10 +518,10 @@ function La(t, e = 100, n) {
518
518
  duration: /* @__PURE__ */ ot(i)
519
519
  };
520
520
  }
521
- const Ka = 5;
522
- function yr(t, e, n) {
523
- const s = Math.max(e - Ka, 0);
524
- return qi(n - t(s), e - s);
521
+ const Ia = 5;
522
+ function br(t, e, n) {
523
+ const s = Math.max(e - Ia, 0);
524
+ return Zi(n - t(s), e - s);
525
525
  }
526
526
  const I = {
527
527
  // Default spring physics
@@ -552,7 +552,7 @@ const I = {
552
552
  minDamping: 0.05,
553
553
  maxDamping: 1
554
554
  }, $e = 1e-3;
555
- function Ia({ duration: t = I.duration, bounce: e = I.bounce, velocity: n = I.velocity, mass: s = I.mass }) {
555
+ function _a({ duration: t = I.duration, bounce: e = I.bounce, velocity: n = I.velocity, mass: s = I.mass }) {
556
556
  let i, o;
557
557
  Ft(t <= /* @__PURE__ */ rt(I.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
558
558
  let r = 1 - e;
@@ -569,7 +569,7 @@ function Ia({ duration: t = I.duration, bounce: e = I.bounce, velocity: n = I.ve
569
569
  const c = Math.exp(-u * t), f = (n - u) * (t * t);
570
570
  return c * f;
571
571
  });
572
- const a = 5 / t, l = Ba(i, o, a);
572
+ const a = 5 / t, l = Oa(i, o, a);
573
573
  if (t = /* @__PURE__ */ rt(t), isNaN(l))
574
574
  return {
575
575
  stiffness: I.stiffness,
@@ -585,21 +585,21 @@ function Ia({ duration: t = I.duration, bounce: e = I.bounce, velocity: n = I.ve
585
585
  };
586
586
  }
587
587
  }
588
- const _a = 12;
589
- function Ba(t, e, n) {
588
+ const Ba = 12;
589
+ function Oa(t, e, n) {
590
590
  let s = n;
591
- for (let i = 1; i < _a; i++)
591
+ for (let i = 1; i < Ba; i++)
592
592
  s = s - t(s) / e(s);
593
593
  return s;
594
594
  }
595
595
  function an(t, e) {
596
596
  return t * Math.sqrt(1 - e * e);
597
597
  }
598
- const Oa = ["duration", "bounce"], Fa = ["stiffness", "damping", "mass"];
598
+ const Fa = ["duration", "bounce"], ja = ["stiffness", "damping", "mass"];
599
599
  function ks(t, e) {
600
600
  return e.some((n) => t[n] !== void 0);
601
601
  }
602
- function ja(t) {
602
+ function Na(t) {
603
603
  let e = {
604
604
  velocity: I.velocity,
605
605
  stiffness: I.stiffness,
@@ -608,7 +608,7 @@ function ja(t) {
608
608
  isResolvedFromDuration: !1,
609
609
  ...t
610
610
  };
611
- if (!ks(t, Fa) && ks(t, Oa))
611
+ if (!ks(t, ja) && ks(t, Fa))
612
612
  if (t.visualDuration) {
613
613
  const n = t.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, o = 2 * dt(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
614
614
  e = {
@@ -618,7 +618,7 @@ function ja(t) {
618
618
  damping: o
619
619
  };
620
620
  } else {
621
- const n = Ia(t);
621
+ const n = _a(t);
622
622
  e = {
623
623
  ...e,
624
624
  ...n,
@@ -634,7 +634,7 @@ function Ve(t = I.visualDuration, e = I.bounce) {
634
634
  bounce: e
635
635
  } : t;
636
636
  let { restSpeed: s, restDelta: i } = n;
637
- const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: u, mass: c, duration: f, velocity: m, isResolvedFromDuration: v } = ja({
637
+ const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: u, mass: c, duration: f, velocity: m, isResolvedFromDuration: v } = Na({
638
638
  ...n,
639
639
  velocity: -/* @__PURE__ */ ot(n.velocity || 0)
640
640
  }), w = m || 0, C = u / (2 * Math.sqrt(l * c)), P = r - o, h = /* @__PURE__ */ ot(Math.sqrt(l / c)), y = Math.abs(P) < 5;
@@ -663,14 +663,14 @@ function Ve(t = I.visualDuration, e = I.bounce) {
663
663
  a.done = g >= f;
664
664
  else {
665
665
  let T = g === 0 ? w : 0;
666
- C < 1 && (T = g === 0 ? /* @__PURE__ */ rt(w) : yr(d, g, x));
666
+ C < 1 && (T = g === 0 ? /* @__PURE__ */ rt(w) : br(d, g, x));
667
667
  const b = Math.abs(T) <= s, V = Math.abs(r - x) <= i;
668
668
  a.done = b && V;
669
669
  }
670
670
  return a.value = a.done ? r : x, a;
671
671
  },
672
672
  toString: () => {
673
- const g = Math.min(Wn(p), Me), x = gr((T) => p.next(g * T).value, g, 30);
673
+ const g = Math.min(Wn(p), Me), x = yr((T) => p.next(g * T).value, g, 30);
674
674
  return g + "ms " + x;
675
675
  },
676
676
  toTransition: () => {
@@ -679,7 +679,7 @@ function Ve(t = I.visualDuration, e = I.bounce) {
679
679
  return p;
680
680
  }
681
681
  Ve.applyToOptions = (t) => {
682
- const e = La(t, 100, Ve);
682
+ const e = Ka(t, 100, Ve);
683
683
  return t.ease = e.ease, t.duration = /* @__PURE__ */ rt(e.duration), t.type = "keyframes", t;
684
684
  };
685
685
  function ln({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: u = 0.5, restSpeed: c }) {
@@ -698,7 +698,7 @@ function ln({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
698
698
  const T = (b) => {
699
699
  v(m.value) && (g = b, x = Ve({
700
700
  keyframes: [m.value, w(m.value)],
701
- velocity: yr(d, b, m.value),
701
+ velocity: br(d, b, m.value),
702
702
  // TODO: This should be passing * 1000
703
703
  damping: i,
704
704
  stiffness: o,
@@ -714,8 +714,8 @@ function ln({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
714
714
  }
715
715
  };
716
716
  }
717
- function Na(t, e, n) {
718
- const s = [], i = n || ft.mix || mr, o = t.length - 1;
717
+ function Ua(t, e, n) {
718
+ const s = [], i = n || ft.mix || gr, o = t.length - 1;
719
719
  for (let r = 0; r < o; r++) {
720
720
  let a = i(t[r], t[r + 1]);
721
721
  if (e) {
@@ -726,7 +726,7 @@ function Na(t, e, n) {
726
726
  }
727
727
  return s;
728
728
  }
729
- function Ua(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
729
+ function za(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
730
730
  const o = t.length;
731
731
  if (ht(o === e.length, "Both input and output ranges must be the same length", "range-length"), o === 1)
732
732
  return () => e[0];
@@ -734,7 +734,7 @@ function Ua(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
734
734
  return () => e[1];
735
735
  const r = t[0] === t[1];
736
736
  t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
737
- const a = Na(e, s, i), l = a.length, u = (c) => {
737
+ const a = Ua(e, s, i), l = a.length, u = (c) => {
738
738
  if (r && c < t[0])
739
739
  return e[0];
740
740
  let f = 0;
@@ -746,54 +746,54 @@ function Ua(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
746
746
  };
747
747
  return n ? (c) => u(dt(t[0], t[o - 1], c)) : u;
748
748
  }
749
- function za(t, e) {
749
+ function $a(t, e) {
750
750
  const n = t[t.length - 1];
751
751
  for (let s = 1; s <= e; s++) {
752
752
  const i = /* @__PURE__ */ Jt(0, e, s);
753
753
  t.push(_(n, 1, i));
754
754
  }
755
755
  }
756
- function $a(t) {
756
+ function Ga(t) {
757
757
  const e = [0];
758
- return za(e, t.length - 1), e;
758
+ return $a(e, t.length - 1), e;
759
759
  }
760
- function Ga(t, e) {
760
+ function Wa(t, e) {
761
761
  return t.map((n) => n * e);
762
762
  }
763
- function Wa(t, e) {
764
- return t.map(() => e || rr).splice(0, t.length - 1);
763
+ function Ha(t, e) {
764
+ return t.map(() => e || or).splice(0, t.length - 1);
765
765
  }
766
766
  function Et({ duration: t = 300, keyframes: e, times: n, ease: s = "easeInOut" }) {
767
- const i = ia(s) ? s.map(ws) : ws(s), o = {
767
+ const i = ra(s) ? s.map(ws) : ws(s), o = {
768
768
  done: !1,
769
769
  value: e[0]
770
- }, r = Ga(
770
+ }, r = Wa(
771
771
  // Only use the provided offsets if they're the correct length
772
772
  // TODO Maybe we should warn here if there's a length mismatch
773
- n && n.length === e.length ? n : $a(e),
773
+ n && n.length === e.length ? n : Ga(e),
774
774
  t
775
- ), a = Ua(r, e, {
776
- ease: Array.isArray(i) ? i : Wa(e, i)
775
+ ), a = za(r, e, {
776
+ ease: Array.isArray(i) ? i : Ha(e, i)
777
777
  });
778
778
  return {
779
779
  calculatedDuration: t,
780
780
  next: (l) => (o.value = a(l), o.done = l >= t, o)
781
781
  };
782
782
  }
783
- const Ha = (t) => t !== null;
783
+ const Xa = (t) => t !== null;
784
784
  function Hn(t, { repeat: e, repeatType: n = "loop" }, s, i = 1) {
785
- const o = t.filter(Ha), a = i < 0 || e && n !== "loop" && e % 2 === 1 ? 0 : o.length - 1;
785
+ const o = t.filter(Xa), a = i < 0 || e && n !== "loop" && e % 2 === 1 ? 0 : o.length - 1;
786
786
  return !a || s === void 0 ? o[a] : s;
787
787
  }
788
- const Xa = {
788
+ const Ya = {
789
789
  decay: ln,
790
790
  inertia: ln,
791
791
  tween: Et,
792
792
  keyframes: Et,
793
793
  spring: Ve
794
794
  };
795
- function br(t) {
796
- typeof t.type == "string" && (t.type = Xa[t.type]);
795
+ function vr(t) {
796
+ typeof t.type == "string" && (t.type = Ya[t.type]);
797
797
  }
798
798
  class Xn {
799
799
  constructor() {
@@ -819,7 +819,7 @@ class Xn {
819
819
  return this.finished.then(e, n);
820
820
  }
821
821
  }
822
- const Ya = (t) => t / 100;
822
+ const qa = (t) => t / 100;
823
823
  class Yn extends Xn {
824
824
  constructor(e) {
825
825
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
@@ -829,11 +829,11 @@ class Yn extends Xn {
829
829
  }
830
830
  initAnimation() {
831
831
  const { options: e } = this;
832
- br(e);
832
+ vr(e);
833
833
  const { type: n = Et, repeat: s = 0, repeatDelay: i = 0, repeatType: o, velocity: r = 0 } = e;
834
834
  let { keyframes: a } = e;
835
835
  const l = n || Et;
836
- process.env.NODE_ENV !== "production" && l !== Et && ht(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== Et && typeof a[0] != "number" && (this.mixKeyframes = ie(Ya, mr(a[0], a[1])), a = [0, 100]);
836
+ process.env.NODE_ENV !== "production" && l !== Et && ht(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== Et && typeof a[0] != "number" && (this.mixKeyframes = ie(qa, gr(a[0], a[1])), a = [0, 100]);
837
837
  const u = l({ ...e, keyframes: a });
838
838
  o === "mirror" && (this.mirroredGenerator = l({
839
839
  ...e,
@@ -896,7 +896,7 @@ class Yn extends Xn {
896
896
  play() {
897
897
  if (this.isStopped)
898
898
  return;
899
- const { driver: e = Ra, startTime: n } = this.options;
899
+ const { driver: e = La, startTime: n } = this.options;
900
900
  this.driver || (this.driver = e((i) => this.tick(i))), this.options.onPlay?.();
901
901
  const s = this.driver.now();
902
902
  this.state === "finished" ? (this.updateFinished(), this.startTime = s) : this.holdTime !== null ? this.startTime = s - this.holdTime : this.startTime || (this.startTime = n ?? s), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -926,14 +926,14 @@ class Yn extends Xn {
926
926
  return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
927
927
  }
928
928
  }
929
- function qa(t) {
929
+ function Za(t) {
930
930
  for (let e = 1; e < t.length; e++)
931
931
  t[e] ?? (t[e] = t[e - 1]);
932
932
  }
933
933
  const Pt = (t) => t * 180 / Math.PI, cn = (t) => {
934
934
  const e = Pt(Math.atan2(t[1], t[0]));
935
935
  return un(e);
936
- }, Za = {
936
+ }, Ja = {
937
937
  x: 4,
938
938
  y: 5,
939
939
  translateX: 4,
@@ -946,7 +946,7 @@ const Pt = (t) => t * 180 / Math.PI, cn = (t) => {
946
946
  skewX: (t) => Pt(Math.atan(t[1])),
947
947
  skewY: (t) => Pt(Math.atan(t[2])),
948
948
  skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
949
- }, un = (t) => (t = t % 360, t < 0 && (t += 360), t), As = cn, Ms = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Vs = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), Ja = {
949
+ }, un = (t) => (t = t % 360, t < 0 && (t += 360), t), As = cn, Ms = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Vs = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), Qa = {
950
950
  x: 12,
951
951
  y: 13,
952
952
  z: 14,
@@ -973,21 +973,21 @@ function hn(t, e) {
973
973
  const n = t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
974
974
  let s, i;
975
975
  if (n)
976
- s = Ja, i = n;
976
+ s = Qa, i = n;
977
977
  else {
978
978
  const a = t.match(/^matrix\(([-\d.e\s,]+)\)$/u);
979
- s = Za, i = a;
979
+ s = Ja, i = a;
980
980
  }
981
981
  if (!i)
982
982
  return dn(e);
983
- const o = s[e], r = i[1].split(",").map(tl);
983
+ const o = s[e], r = i[1].split(",").map(el);
984
984
  return typeof o == "function" ? o(r) : r[o];
985
985
  }
986
- const Qa = (t, e) => {
986
+ const tl = (t, e) => {
987
987
  const { transform: n = "none" } = getComputedStyle(t);
988
988
  return hn(n, e);
989
989
  };
990
- function tl(t) {
990
+ function el(t) {
991
991
  return parseFloat(t.trim());
992
992
  }
993
993
  const Nt = [
@@ -1008,10 +1008,10 @@ const Nt = [
1008
1008
  "skew",
1009
1009
  "skewX",
1010
1010
  "skewY"
1011
- ], Ut = new Set(Nt), Es = (t) => t === jt || t === M, el = /* @__PURE__ */ new Set(["x", "y", "z"]), nl = Nt.filter((t) => !el.has(t));
1012
- function sl(t) {
1011
+ ], Ut = new Set(Nt), Es = (t) => t === jt || t === M, nl = /* @__PURE__ */ new Set(["x", "y", "z"]), sl = Nt.filter((t) => !nl.has(t));
1012
+ function il(t) {
1013
1013
  const e = [];
1014
- return nl.forEach((n) => {
1014
+ return sl.forEach((n) => {
1015
1015
  const s = t.getValue(n);
1016
1016
  s !== void 0 && (e.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
1017
1017
  }), e;
@@ -1032,11 +1032,11 @@ St.translateX = St.x;
1032
1032
  St.translateY = St.y;
1033
1033
  const kt = /* @__PURE__ */ new Set();
1034
1034
  let fn = !1, pn = !1, mn = !1;
1035
- function vr() {
1035
+ function xr() {
1036
1036
  if (pn) {
1037
1037
  const t = Array.from(kt).filter((s) => s.needsMeasurement), e = new Set(t.map((s) => s.element)), n = /* @__PURE__ */ new Map();
1038
1038
  e.forEach((s) => {
1039
- const i = sl(s);
1039
+ const i = il(s);
1040
1040
  i.length && (n.set(s, i), s.render());
1041
1041
  }), t.forEach((s) => s.measureInitialState()), e.forEach((s) => {
1042
1042
  s.render();
@@ -1050,20 +1050,20 @@ function vr() {
1050
1050
  }
1051
1051
  pn = !1, fn = !1, kt.forEach((t) => t.complete(mn)), kt.clear();
1052
1052
  }
1053
- function xr() {
1053
+ function wr() {
1054
1054
  kt.forEach((t) => {
1055
1055
  t.readKeyframes(), t.needsMeasurement && (pn = !0);
1056
1056
  });
1057
1057
  }
1058
- function il() {
1059
- mn = !0, xr(), vr(), mn = !1;
1058
+ function rl() {
1059
+ mn = !0, wr(), xr(), mn = !1;
1060
1060
  }
1061
1061
  class qn {
1062
1062
  constructor(e, n, s, i, o, r = !1) {
1063
1063
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = s, this.motionValue = i, this.element = o, this.isAsync = r;
1064
1064
  }
1065
1065
  scheduleResolve() {
1066
- this.state = "scheduled", this.isAsync ? (kt.add(this), fn || (fn = !0, K.read(xr), K.resolveKeyframes(vr))) : (this.readKeyframes(), this.complete());
1066
+ this.state = "scheduled", this.isAsync ? (kt.add(this), fn || (fn = !0, K.read(wr), K.resolveKeyframes(xr))) : (this.readKeyframes(), this.complete());
1067
1067
  }
1068
1068
  readKeyframes() {
1069
1069
  const { unresolvedKeyframes: e, name: n, element: s, motionValue: i } = this;
@@ -1077,7 +1077,7 @@ class qn {
1077
1077
  }
1078
1078
  e[0] === void 0 && (e[0] = r), i && o === void 0 && i.set(e[0]);
1079
1079
  }
1080
- qa(e);
1080
+ Za(e);
1081
1081
  }
1082
1082
  setFinalKeyframe() {
1083
1083
  }
@@ -1097,16 +1097,16 @@ class qn {
1097
1097
  this.state === "pending" && this.scheduleResolve();
1098
1098
  }
1099
1099
  }
1100
- const rl = (t) => t.startsWith("--");
1101
- function ol(t, e, n) {
1102
- rl(e) ? t.style.setProperty(e, n) : t.style[e] = n;
1100
+ const ol = (t) => t.startsWith("--");
1101
+ function al(t, e, n) {
1102
+ ol(e) ? t.style.setProperty(e, n) : t.style[e] = n;
1103
1103
  }
1104
- const al = /* @__PURE__ */ _n(() => window.ScrollTimeline !== void 0), ll = {};
1105
- function cl(t, e) {
1104
+ const ll = /* @__PURE__ */ _n(() => window.ScrollTimeline !== void 0), cl = {};
1105
+ function ul(t, e) {
1106
1106
  const n = /* @__PURE__ */ _n(t);
1107
- return () => ll[e] ?? n();
1107
+ return () => cl[e] ?? n();
1108
1108
  }
1109
- const wr = /* @__PURE__ */ cl(() => {
1109
+ const Tr = /* @__PURE__ */ ul(() => {
1110
1110
  try {
1111
1111
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1112
1112
  } catch {
@@ -1124,16 +1124,16 @@ const wr = /* @__PURE__ */ cl(() => {
1124
1124
  backIn: /* @__PURE__ */ Ht([0.31, 0.01, 0.66, -0.59]),
1125
1125
  backOut: /* @__PURE__ */ Ht([0.33, 1.53, 0.69, 0.99])
1126
1126
  };
1127
- function Tr(t, e) {
1127
+ function Cr(t, e) {
1128
1128
  if (t)
1129
- return typeof t == "function" ? wr() ? gr(t, e) : "ease-out" : or(t) ? Ht(t) : Array.isArray(t) ? t.map((n) => Tr(n, e) || Ds.easeOut) : Ds[t];
1129
+ return typeof t == "function" ? Tr() ? yr(t, e) : "ease-out" : ar(t) ? Ht(t) : Array.isArray(t) ? t.map((n) => Cr(n, e) || Ds.easeOut) : Ds[t];
1130
1130
  }
1131
- function ul(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, u = void 0) {
1131
+ function dl(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, u = void 0) {
1132
1132
  const c = {
1133
1133
  [e]: n
1134
1134
  };
1135
1135
  l && (c.offset = l);
1136
- const f = Tr(a, i);
1136
+ const f = Cr(a, i);
1137
1137
  Array.isArray(f) && (c.easing = f);
1138
1138
  const m = {
1139
1139
  delay: s,
@@ -1145,23 +1145,23 @@ function ul(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatTyp
1145
1145
  };
1146
1146
  return u && (m.pseudoElement = u), t.animate(c, m);
1147
1147
  }
1148
- function Cr(t) {
1148
+ function Pr(t) {
1149
1149
  return typeof t == "function" && "applyToOptions" in t;
1150
1150
  }
1151
- function dl({ type: t, ...e }) {
1152
- return Cr(t) && wr() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
1151
+ function hl({ type: t, ...e }) {
1152
+ return Pr(t) && Tr() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
1153
1153
  }
1154
- class hl extends Xn {
1154
+ class fl extends Xn {
1155
1155
  constructor(e) {
1156
1156
  if (super(), this.finishedTime = null, this.isStopped = !1, !e)
1157
1157
  return;
1158
1158
  const { element: n, name: s, keyframes: i, pseudoElement: o, allowFlatten: r = !1, finalKeyframe: a, onComplete: l } = e;
1159
1159
  this.isPseudoElement = !!o, this.allowFlatten = r, this.options = e, ht(typeof e.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1160
- const u = dl(e);
1161
- this.animation = ul(n, s, i, u, o), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1160
+ const u = hl(e);
1161
+ this.animation = dl(n, s, i, u, o), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1162
1162
  if (this.finishedTime = this.time, !o) {
1163
1163
  const c = Hn(i, this.options, a, this.speed);
1164
- this.updateMotionValue ? this.updateMotionValue(c) : ol(n, s, c), this.animation.cancel();
1164
+ this.updateMotionValue ? this.updateMotionValue(c) : al(n, s, c), this.animation.cancel();
1165
1165
  }
1166
1166
  l?.(), this.notifyFinished();
1167
1167
  };
@@ -1236,24 +1236,24 @@ class hl extends Xn {
1236
1236
  * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
1237
1237
  */
1238
1238
  attachTimeline({ timeline: e, observe: n }) {
1239
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && al() ? (this.animation.timeline = e, st) : n(this);
1239
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && ll() ? (this.animation.timeline = e, st) : n(this);
1240
1240
  }
1241
1241
  }
1242
- const Pr = {
1243
- anticipate: nr,
1244
- backInOut: er,
1245
- circInOut: ir
1242
+ const Sr = {
1243
+ anticipate: sr,
1244
+ backInOut: nr,
1245
+ circInOut: rr
1246
1246
  };
1247
- function fl(t) {
1248
- return t in Pr;
1249
- }
1250
1247
  function pl(t) {
1251
- typeof t.ease == "string" && fl(t.ease) && (t.ease = Pr[t.ease]);
1248
+ return t in Sr;
1249
+ }
1250
+ function ml(t) {
1251
+ typeof t.ease == "string" && pl(t.ease) && (t.ease = Sr[t.ease]);
1252
1252
  }
1253
1253
  const Rs = 10;
1254
- class ml extends hl {
1254
+ class gl extends fl {
1255
1255
  constructor(e) {
1256
- pl(e), br(e), super(e), e.startTime && (this.startTime = e.startTime), this.options = e;
1256
+ ml(e), vr(e), super(e), e.startTime && (this.startTime = e.startTime), this.options = e;
1257
1257
  }
1258
1258
  /**
1259
1259
  * WAAPI doesn't natively have any interruption capabilities.
@@ -1281,7 +1281,7 @@ class ml extends hl {
1281
1281
  const Ls = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
1282
1282
  (bt.test(t) || t === "0") && // And it contains numbers and/or colors
1283
1283
  !t.startsWith("url("));
1284
- function gl(t) {
1284
+ function yl(t) {
1285
1285
  const e = t[0];
1286
1286
  if (t.length === 1)
1287
1287
  return !0;
@@ -1289,39 +1289,39 @@ function gl(t) {
1289
1289
  if (t[n] !== e)
1290
1290
  return !0;
1291
1291
  }
1292
- function yl(t, e, n, s) {
1292
+ function bl(t, e, n, s) {
1293
1293
  const i = t[0];
1294
1294
  if (i === null)
1295
1295
  return !1;
1296
1296
  if (e === "display" || e === "visibility")
1297
1297
  return !0;
1298
1298
  const o = t[t.length - 1], r = Ls(i, e), a = Ls(o, e);
1299
- return Ft(r === a, `You are trying to animate ${e} from "${i}" to "${o}". "${r ? o : i}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : gl(t) || (n === "spring" || Cr(n)) && s;
1299
+ return Ft(r === a, `You are trying to animate ${e} from "${i}" to "${o}". "${r ? o : i}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : yl(t) || (n === "spring" || Pr(n)) && s;
1300
1300
  }
1301
1301
  function gn(t) {
1302
1302
  t.duration = 0, t.type;
1303
1303
  }
1304
- const bl = /* @__PURE__ */ new Set([
1304
+ const vl = /* @__PURE__ */ new Set([
1305
1305
  "opacity",
1306
1306
  "clipPath",
1307
1307
  "filter",
1308
1308
  "transform"
1309
1309
  // TODO: Could be re-enabled now we have support for linear() easing
1310
1310
  // "background-color"
1311
- ]), vl = /* @__PURE__ */ _n(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1312
- function xl(t) {
1311
+ ]), xl = /* @__PURE__ */ _n(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1312
+ function wl(t) {
1313
1313
  const { motionValue: e, name: n, repeatDelay: s, repeatType: i, damping: o, type: r } = t;
1314
1314
  if (!(e?.owner?.current instanceof HTMLElement))
1315
1315
  return !1;
1316
1316
  const { onUpdate: l, transformTemplate: u } = e.owner.getProps();
1317
- return vl() && n && bl.has(n) && (n !== "transform" || !u) && /**
1317
+ return xl() && n && vl.has(n) && (n !== "transform" || !u) && /**
1318
1318
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
1319
1319
  * no way to read the value from WAAPI every frame.
1320
1320
  */
1321
1321
  !l && !s && i !== "mirror" && o !== 0 && r !== "inertia";
1322
1322
  }
1323
- const wl = 40;
1324
- class Tl extends Xn {
1323
+ const Tl = 40;
1324
+ class Cl extends Xn {
1325
1325
  constructor({ autoplay: e = !0, delay: n = 0, type: s = "keyframes", repeat: i = 0, repeatDelay: o = 0, repeatType: r = "loop", keyframes: a, name: l, motionValue: u, element: c, ...f }) {
1326
1326
  super(), this.stop = () => {
1327
1327
  this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
@@ -1343,13 +1343,13 @@ class Tl extends Xn {
1343
1343
  onKeyframesResolved(e, n, s, i) {
1344
1344
  this.keyframeResolver = void 0;
1345
1345
  const { name: o, type: r, velocity: a, delay: l, isHandoff: u, onUpdate: c } = s;
1346
- this.resolvedAt = Y.now(), yl(e, o, r, a) || ((ft.instantAnimations || !l) && c?.(Hn(e, s, n)), e[0] = e[e.length - 1], gn(s), s.repeat = 0);
1346
+ this.resolvedAt = Y.now(), bl(e, o, r, a) || ((ft.instantAnimations || !l) && c?.(Hn(e, s, n)), e[0] = e[e.length - 1], gn(s), s.repeat = 0);
1347
1347
  const m = {
1348
- startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > wl ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1348
+ startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > Tl ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1349
1349
  finalKeyframe: n,
1350
1350
  ...s,
1351
1351
  keyframes: e
1352
- }, v = !u && xl(m) ? new ml({
1352
+ }, v = !u && wl(m) ? new gl({
1353
1353
  ...m,
1354
1354
  element: m.motionValue.owner.current
1355
1355
  }) : new Yn(m);
@@ -1363,7 +1363,7 @@ class Tl extends Xn {
1363
1363
  });
1364
1364
  }
1365
1365
  get animation() {
1366
- return this._animation || (this.keyframeResolver?.resume(), il()), this._animation;
1366
+ return this._animation || (this.keyframeResolver?.resume(), rl()), this._animation;
1367
1367
  }
1368
1368
  get duration() {
1369
1369
  return this.animation.duration;
@@ -1402,34 +1402,34 @@ class Tl extends Xn {
1402
1402
  this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
1403
1403
  }
1404
1404
  }
1405
- const Cl = (
1405
+ const Pl = (
1406
1406
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
1407
1407
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
1408
1408
  );
1409
- function Pl(t) {
1410
- const e = Cl.exec(t);
1409
+ function Sl(t) {
1410
+ const e = Pl.exec(t);
1411
1411
  if (!e)
1412
1412
  return [,];
1413
1413
  const [, n, s, i] = e;
1414
1414
  return [`--${n ?? s}`, i];
1415
1415
  }
1416
- const Sl = 4;
1417
- function Sr(t, e, n = 1) {
1418
- ht(n <= Sl, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1419
- const [s, i] = Pl(t);
1416
+ const kl = 4;
1417
+ function kr(t, e, n = 1) {
1418
+ ht(n <= kl, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1419
+ const [s, i] = Sl(t);
1420
1420
  if (!s)
1421
1421
  return;
1422
1422
  const o = window.getComputedStyle(e).getPropertyValue(s);
1423
1423
  if (o) {
1424
1424
  const r = o.trim();
1425
- return Hi(r) ? parseFloat(r) : r;
1425
+ return Xi(r) ? parseFloat(r) : r;
1426
1426
  }
1427
- return Un(i) ? Sr(i, e, n + 1) : i;
1427
+ return Un(i) ? kr(i, e, n + 1) : i;
1428
1428
  }
1429
1429
  function Zn(t, e) {
1430
1430
  return t?.[e] ?? t?.default ?? t;
1431
1431
  }
1432
- const kr = /* @__PURE__ */ new Set([
1432
+ const Ar = /* @__PURE__ */ new Set([
1433
1433
  "width",
1434
1434
  "height",
1435
1435
  "top",
@@ -1437,15 +1437,15 @@ const kr = /* @__PURE__ */ new Set([
1437
1437
  "right",
1438
1438
  "bottom",
1439
1439
  ...Nt
1440
- ]), kl = {
1440
+ ]), Al = {
1441
1441
  test: (t) => t === "auto",
1442
1442
  parse: (t) => t
1443
- }, Ar = (t) => (e) => e.test(t), Mr = [jt, M, at, gt, ga, ma, kl], Ks = (t) => Mr.find(Ar(t));
1444
- function Al(t) {
1445
- return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Yi(t) : !0;
1443
+ }, Mr = (t) => (e) => e.test(t), Vr = [jt, M, at, gt, ya, ga, Al], Ks = (t) => Vr.find(Mr(t));
1444
+ function Ml(t) {
1445
+ return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || qi(t) : !0;
1446
1446
  }
1447
- const Ml = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1448
- function Vl(t) {
1447
+ const Vl = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1448
+ function El(t) {
1449
1449
  const [e, n] = t.slice(0, -1).split("(");
1450
1450
  if (e === "drop-shadow")
1451
1451
  return t;
@@ -1453,19 +1453,19 @@ function Vl(t) {
1453
1453
  if (!s)
1454
1454
  return t;
1455
1455
  const i = n.replace(s, "");
1456
- let o = Ml.has(e) ? 1 : 0;
1456
+ let o = Vl.has(e) ? 1 : 0;
1457
1457
  return s !== n && (o *= 100), e + "(" + o + i + ")";
1458
1458
  }
1459
- const El = /\b([a-z-]*)\(.*?\)/gu, yn = {
1459
+ const Dl = /\b([a-z-]*)\(.*?\)/gu, yn = {
1460
1460
  ...bt,
1461
1461
  getAnimatableNone: (t) => {
1462
- const e = t.match(El);
1463
- return e ? e.map(Vl).join(" ") : t;
1462
+ const e = t.match(Dl);
1463
+ return e ? e.map(El).join(" ") : t;
1464
1464
  }
1465
1465
  }, Is = {
1466
1466
  ...jt,
1467
1467
  transform: Math.round
1468
- }, Dl = {
1468
+ }, Rl = {
1469
1469
  rotate: gt,
1470
1470
  rotateX: gt,
1471
1471
  rotateY: gt,
@@ -1526,13 +1526,13 @@ const El = /\b([a-z-]*)\(.*?\)/gu, yn = {
1526
1526
  // Misc
1527
1527
  backgroundPositionX: M,
1528
1528
  backgroundPositionY: M,
1529
- ...Dl,
1529
+ ...Rl,
1530
1530
  zIndex: Is,
1531
1531
  // SVG
1532
1532
  fillOpacity: Qt,
1533
1533
  strokeOpacity: Qt,
1534
1534
  numOctaves: Is
1535
- }, Rl = {
1535
+ }, Ll = {
1536
1536
  ...Jn,
1537
1537
  // Color props
1538
1538
  color: F,
@@ -1548,23 +1548,23 @@ const El = /\b([a-z-]*)\(.*?\)/gu, yn = {
1548
1548
  borderLeftColor: F,
1549
1549
  filter: yn,
1550
1550
  WebkitFilter: yn
1551
- }, Vr = (t) => Rl[t];
1552
- function Er(t, e) {
1553
- let n = Vr(t);
1551
+ }, Er = (t) => Ll[t];
1552
+ function Dr(t, e) {
1553
+ let n = Er(t);
1554
1554
  return n !== yn && (n = bt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
1555
1555
  }
1556
- const Ll = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1557
- function Kl(t, e, n) {
1556
+ const Kl = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1557
+ function Il(t, e, n) {
1558
1558
  let s = 0, i;
1559
1559
  for (; s < t.length && !i; ) {
1560
1560
  const o = t[s];
1561
- typeof o == "string" && !Ll.has(o) && te(o).values.length && (i = t[s]), s++;
1561
+ typeof o == "string" && !Kl.has(o) && te(o).values.length && (i = t[s]), s++;
1562
1562
  }
1563
1563
  if (i && n)
1564
1564
  for (const o of e)
1565
- t[o] = Er(n, i);
1565
+ t[o] = Dr(n, i);
1566
1566
  }
1567
- class Il extends qn {
1567
+ class _l extends qn {
1568
1568
  constructor(e, n, s, i, o) {
1569
1569
  super(e, n, s, i, o, !0);
1570
1570
  }
@@ -1576,11 +1576,11 @@ class Il extends qn {
1576
1576
  for (let l = 0; l < e.length; l++) {
1577
1577
  let u = e[l];
1578
1578
  if (typeof u == "string" && (u = u.trim(), Un(u))) {
1579
- const c = Sr(u, n.current);
1579
+ const c = kr(u, n.current);
1580
1580
  c !== void 0 && (e[l] = c), l === e.length - 1 && (this.finalKeyframe = u);
1581
1581
  }
1582
1582
  }
1583
- if (this.resolveNoneKeyframes(), !kr.has(s) || e.length !== 2)
1583
+ if (this.resolveNoneKeyframes(), !Ar.has(s) || e.length !== 2)
1584
1584
  return;
1585
1585
  const [i, o] = e, r = Ks(i), a = Ks(o);
1586
1586
  if (r !== a)
@@ -1594,8 +1594,8 @@ class Il extends qn {
1594
1594
  resolveNoneKeyframes() {
1595
1595
  const { unresolvedKeyframes: e, name: n } = this, s = [];
1596
1596
  for (let i = 0; i < e.length; i++)
1597
- (e[i] === null || Al(e[i])) && s.push(i);
1598
- s.length && Kl(e, s, n);
1597
+ (e[i] === null || Ml(e[i])) && s.push(i);
1598
+ s.length && Il(e, s, n);
1599
1599
  }
1600
1600
  measureInitialState() {
1601
1601
  const { element: e, unresolvedKeyframes: n, name: s } = this;
@@ -1617,7 +1617,7 @@ class Il extends qn {
1617
1617
  }), this.resolveNoneKeyframes();
1618
1618
  }
1619
1619
  }
1620
- function _l(t, e, n) {
1620
+ function Bl(t, e, n) {
1621
1621
  if (t instanceof EventTarget)
1622
1622
  return [t];
1623
1623
  if (typeof t == "string") {
@@ -1627,12 +1627,12 @@ function _l(t, e, n) {
1627
1627
  }
1628
1628
  return Array.from(t);
1629
1629
  }
1630
- const Dr = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
1631
- function Rr(t) {
1632
- return Xi(t) && "offsetHeight" in t;
1630
+ const Rr = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
1631
+ function Lr(t) {
1632
+ return Yi(t) && "offsetHeight" in t;
1633
1633
  }
1634
- const _s = 30, Bl = (t) => !isNaN(parseFloat(t));
1635
- class Ol {
1634
+ const _s = 30, Ol = (t) => !isNaN(parseFloat(t));
1635
+ class Fl {
1636
1636
  /**
1637
1637
  * @param init - The initiating value
1638
1638
  * @param config - Optional configuration options
@@ -1648,7 +1648,7 @@ class Ol {
1648
1648
  }, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
1649
1649
  }
1650
1650
  setCurrent(e) {
1651
- this.current = e, this.updatedAt = Y.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Bl(this.current));
1651
+ this.current = e, this.updatedAt = Y.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Ol(this.current));
1652
1652
  }
1653
1653
  setPrevFrameValue(e = this.current) {
1654
1654
  this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -1780,7 +1780,7 @@ class Ol {
1780
1780
  if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > _s)
1781
1781
  return 0;
1782
1782
  const n = Math.min(this.updatedAt - this.prevUpdatedAt, _s);
1783
- return qi(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1783
+ return Zi(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1784
1784
  }
1785
1785
  /**
1786
1786
  * Registers a new animation to control this `MotionValue`. Only one
@@ -1832,24 +1832,24 @@ class Ol {
1832
1832
  }
1833
1833
  }
1834
1834
  function _t(t, e) {
1835
- return new Ol(t, e);
1835
+ return new Fl(t, e);
1836
1836
  }
1837
- const { schedule: Qn } = /* @__PURE__ */ ar(queueMicrotask, !1), it = {
1837
+ const { schedule: Qn } = /* @__PURE__ */ lr(queueMicrotask, !1), it = {
1838
1838
  x: !1,
1839
1839
  y: !1
1840
1840
  };
1841
- function Lr() {
1841
+ function Kr() {
1842
1842
  return it.x || it.y;
1843
1843
  }
1844
- function Fl(t) {
1844
+ function jl(t) {
1845
1845
  return t === "x" || t === "y" ? it[t] ? null : (it[t] = !0, () => {
1846
1846
  it[t] = !1;
1847
1847
  }) : it.x || it.y ? null : (it.x = it.y = !0, () => {
1848
1848
  it.x = it.y = !1;
1849
1849
  });
1850
1850
  }
1851
- function Kr(t, e) {
1852
- const n = _l(t), s = new AbortController(), i = {
1851
+ function Ir(t, e) {
1852
+ const n = Bl(t), s = new AbortController(), i = {
1853
1853
  passive: !0,
1854
1854
  ...e,
1855
1855
  signal: s.signal
@@ -1857,10 +1857,10 @@ function Kr(t, e) {
1857
1857
  return [n, i, () => s.abort()];
1858
1858
  }
1859
1859
  function Bs(t) {
1860
- return !(t.pointerType === "touch" || Lr());
1860
+ return !(t.pointerType === "touch" || Kr());
1861
1861
  }
1862
- function jl(t, e, n = {}) {
1863
- const [s, i, o] = Kr(t, n), r = (a) => {
1862
+ function Nl(t, e, n = {}) {
1863
+ const [s, i, o] = Ir(t, n), r = (a) => {
1864
1864
  if (!Bs(a))
1865
1865
  return;
1866
1866
  const { target: l } = a, u = e(l, a);
@@ -1875,15 +1875,15 @@ function jl(t, e, n = {}) {
1875
1875
  a.addEventListener("pointerenter", r, i);
1876
1876
  }), o;
1877
1877
  }
1878
- const Ir = (t, e) => e ? t === e ? !0 : Ir(t, e.parentElement) : !1, ts = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, Nl = /* @__PURE__ */ new Set([
1878
+ const _r = (t, e) => e ? t === e ? !0 : _r(t, e.parentElement) : !1, ts = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, Ul = /* @__PURE__ */ new Set([
1879
1879
  "BUTTON",
1880
1880
  "INPUT",
1881
1881
  "SELECT",
1882
1882
  "TEXTAREA",
1883
1883
  "A"
1884
1884
  ]);
1885
- function Ul(t) {
1886
- return Nl.has(t.tagName) || t.tabIndex !== -1;
1885
+ function zl(t) {
1886
+ return Ul.has(t.tagName) || t.tabIndex !== -1;
1887
1887
  }
1888
1888
  const Te = /* @__PURE__ */ new WeakSet();
1889
1889
  function Os(t) {
@@ -1894,7 +1894,7 @@ function Os(t) {
1894
1894
  function Ge(t, e) {
1895
1895
  t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
1896
1896
  }
1897
- const zl = (t, e) => {
1897
+ const $l = (t, e) => {
1898
1898
  const n = t.currentTarget;
1899
1899
  if (!n)
1900
1900
  return;
@@ -1910,10 +1910,10 @@ const zl = (t, e) => {
1910
1910
  n.addEventListener("keydown", s, e), n.addEventListener("blur", () => n.removeEventListener("keydown", s), e);
1911
1911
  };
1912
1912
  function Fs(t) {
1913
- return ts(t) && !Lr();
1913
+ return ts(t) && !Kr();
1914
1914
  }
1915
- function $l(t, e, n = {}) {
1916
- const [s, i, o] = Kr(t, n), r = (a) => {
1915
+ function Gl(t, e, n = {}) {
1916
+ const [s, i, o] = Ir(t, n), r = (a) => {
1917
1917
  const l = a.currentTarget;
1918
1918
  if (!Fs(a))
1919
1919
  return;
@@ -1921,32 +1921,32 @@ function $l(t, e, n = {}) {
1921
1921
  const u = e(l, a), c = (v, w) => {
1922
1922
  window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", m), Te.has(l) && Te.delete(l), Fs(v) && typeof u == "function" && u(v, { success: w });
1923
1923
  }, f = (v) => {
1924
- c(v, l === window || l === document || n.useGlobalTarget || Ir(l, v.target));
1924
+ c(v, l === window || l === document || n.useGlobalTarget || _r(l, v.target));
1925
1925
  }, m = (v) => {
1926
1926
  c(v, !1);
1927
1927
  };
1928
1928
  window.addEventListener("pointerup", f, i), window.addEventListener("pointercancel", m, i);
1929
1929
  };
1930
1930
  return s.forEach((a) => {
1931
- (n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, i), Rr(a) && (a.addEventListener("focus", (u) => zl(u, i)), !Ul(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
1931
+ (n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, i), Lr(a) && (a.addEventListener("focus", (u) => $l(u, i)), !zl(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
1932
1932
  }), o;
1933
1933
  }
1934
- function _r(t) {
1935
- return Xi(t) && "ownerSVGElement" in t;
1934
+ function Br(t) {
1935
+ return Yi(t) && "ownerSVGElement" in t;
1936
1936
  }
1937
- function Gl(t) {
1938
- return _r(t) && t.tagName === "svg";
1937
+ function Wl(t) {
1938
+ return Br(t) && t.tagName === "svg";
1939
1939
  }
1940
- const W = (t) => !!(t && t.getVelocity), Wl = [...Mr, F, bt], Hl = (t) => Wl.find(Ar(t)), es = Ot({
1940
+ const W = (t) => !!(t && t.getVelocity), Hl = [...Vr, F, bt], Xl = (t) => Hl.find(Mr(t)), es = Ot({
1941
1941
  transformPagePoint: (t) => t,
1942
1942
  isStatic: !1,
1943
1943
  reducedMotion: "never"
1944
1944
  });
1945
- class Xl extends Vn.Component {
1945
+ class Yl extends Vn.Component {
1946
1946
  getSnapshotBeforeUpdate(e) {
1947
1947
  const n = this.props.childRef.current;
1948
1948
  if (n && e.isPresent && !this.props.isPresent) {
1949
- const s = n.offsetParent, i = Rr(s) && s.offsetWidth || 0, o = this.props.sizeRef.current;
1949
+ const s = n.offsetParent, i = Lr(s) && s.offsetWidth || 0, o = this.props.sizeRef.current;
1950
1950
  o.height = n.offsetHeight || 0, o.width = n.offsetWidth || 0, o.top = n.offsetTop, o.left = n.offsetLeft, o.right = i - o.width - o.left;
1951
1951
  }
1952
1952
  return null;
@@ -1960,7 +1960,7 @@ class Xl extends Vn.Component {
1960
1960
  return this.props.children;
1961
1961
  }
1962
1962
  }
1963
- function Yl({ children: t, isPresent: e, anchorX: n, root: s }) {
1963
+ function ql({ children: t, isPresent: e, anchorX: n, root: s }) {
1964
1964
  const i = En(), o = ut(null), r = ut({
1965
1965
  width: 0,
1966
1966
  height: 0,
@@ -1968,7 +1968,7 @@ function Yl({ children: t, isPresent: e, anchorX: n, root: s }) {
1968
1968
  left: 0,
1969
1969
  right: 0
1970
1970
  }), { nonce: a } = G(es);
1971
- return Ni(() => {
1971
+ return Ui(() => {
1972
1972
  const { width: l, height: u, top: c, left: f, right: m } = r.current;
1973
1973
  if (e || !o.current || !l || !u)
1974
1974
  return;
@@ -1988,10 +1988,10 @@ function Yl({ children: t, isPresent: e, anchorX: n, root: s }) {
1988
1988
  `), () => {
1989
1989
  C.contains(w) && C.removeChild(w);
1990
1990
  };
1991
- }, [e]), Q(Xl, { isPresent: e, childRef: o, sizeRef: r, children: Vn.cloneElement(t, { ref: o }) });
1991
+ }, [e]), Q(Yl, { isPresent: e, childRef: o, sizeRef: r, children: Vn.cloneElement(t, { ref: o }) });
1992
1992
  }
1993
- const ql = ({ children: t, initial: e, isPresent: n, onExitComplete: s, custom: i, presenceAffectsLayout: o, mode: r, anchorX: a, root: l }) => {
1994
- const u = Rn(Zl), c = En();
1993
+ const Zl = ({ children: t, initial: e, isPresent: n, onExitComplete: s, custom: i, presenceAffectsLayout: o, mode: r, anchorX: a, root: l }) => {
1994
+ const u = Rn(Jl), c = En();
1995
1995
  let f = !0, m = At(() => (f = !1, {
1996
1996
  id: c,
1997
1997
  initial: e,
@@ -2010,12 +2010,12 @@ const ql = ({ children: t, initial: e, isPresent: n, onExitComplete: s, custom:
2010
2010
  u.forEach((v, w) => u.set(w, !1));
2011
2011
  }, [n]), Vn.useEffect(() => {
2012
2012
  !n && !u.size && s && s();
2013
- }, [n]), r === "popLayout" && (t = Q(Yl, { isPresent: n, anchorX: a, root: l, children: t })), Q(Le.Provider, { value: m, children: t });
2013
+ }, [n]), r === "popLayout" && (t = Q(ql, { isPresent: n, anchorX: a, root: l, children: t })), Q(Le.Provider, { value: m, children: t });
2014
2014
  };
2015
- function Zl() {
2015
+ function Jl() {
2016
2016
  return /* @__PURE__ */ new Map();
2017
2017
  }
2018
- function Br(t = !0) {
2018
+ function Or(t = !0) {
2019
2019
  const e = G(Le);
2020
2020
  if (e === null)
2021
2021
  return [!0, null];
@@ -2024,19 +2024,19 @@ function Br(t = !0) {
2024
2024
  if (t)
2025
2025
  return i(o);
2026
2026
  }, [t]);
2027
- const r = Ui(() => t && s && s(o), [o, s, t]);
2027
+ const r = zi(() => t && s && s(o), [o, s, t]);
2028
2028
  return !n && s ? [!1, r] : [!0];
2029
2029
  }
2030
2030
  const ye = (t) => t.key || "";
2031
2031
  function js(t) {
2032
2032
  const e = [];
2033
- return _o.forEach(t, (n) => {
2034
- Bo(n) && e.push(n);
2033
+ return Bo.forEach(t, (n) => {
2034
+ Oo(n) && e.push(n);
2035
2035
  }), e;
2036
2036
  }
2037
- const Jl = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presenceAffectsLayout: i = !0, mode: o = "sync", propagate: r = !1, anchorX: a = "left", root: l }) => {
2038
- const [u, c] = Br(r), f = At(() => js(t), [t]), m = r && !u ? [] : f.map(ye), v = ut(!0), w = ut(f), C = Rn(() => /* @__PURE__ */ new Map()), [P, h] = ps(f), [y, d] = ps(f);
2039
- Wi(() => {
2037
+ const Ql = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presenceAffectsLayout: i = !0, mode: o = "sync", propagate: r = !1, anchorX: a = "left", root: l }) => {
2038
+ const [u, c] = Or(r), f = At(() => js(t), [t]), m = r && !u ? [] : f.map(ye), v = ut(!0), w = ut(f), C = Rn(() => /* @__PURE__ */ new Map()), [P, h] = ps(f), [y, d] = ps(f);
2039
+ Hi(() => {
2040
2040
  v.current = !1, w.current = f;
2041
2041
  for (let x = 0; x < y.length; x++) {
2042
2042
  const T = ye(y[x]);
@@ -2054,7 +2054,7 @@ const Jl = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presen
2054
2054
  }
2055
2055
  process.env.NODE_ENV !== "production" && o === "wait" && y.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.`);
2056
2056
  const { forceRender: g } = G(Dn);
2057
- return Q(No, { children: y.map((x) => {
2057
+ return Q(Uo, { children: y.map((x) => {
2058
2058
  const T = ye(x), b = r && !u ? !1 : f === y || m.includes(T), V = () => {
2059
2059
  if (C.has(T))
2060
2060
  C.set(T, !0);
@@ -2065,9 +2065,9 @@ const Jl = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presen
2065
2065
  L || (E = !1);
2066
2066
  }), E && (g?.(), d(w.current), r && c?.(), s && s());
2067
2067
  };
2068
- return Q(ql, { isPresent: b, initial: !v.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: i, mode: o, root: l, onExitComplete: b ? void 0 : V, anchorX: a, children: x }, T);
2068
+ return Q(Zl, { isPresent: b, initial: !v.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: i, mode: o, root: l, onExitComplete: b ? void 0 : V, anchorX: a, children: x }, T);
2069
2069
  }) });
2070
- }, Or = Ot({ strict: !1 }), Ns = {
2070
+ }, Fr = Ot({ strict: !1 }), Ns = {
2071
2071
  animation: [
2072
2072
  "animate",
2073
2073
  "variants",
@@ -2091,14 +2091,14 @@ for (const t in Ns)
2091
2091
  Bt[t] = {
2092
2092
  isEnabled: (e) => Ns[t].some((n) => !!e[n])
2093
2093
  };
2094
- function Ql(t) {
2094
+ function tc(t) {
2095
2095
  for (const e in t)
2096
2096
  Bt[e] = {
2097
2097
  ...Bt[e],
2098
2098
  ...t[e]
2099
2099
  };
2100
2100
  }
2101
- const tc = /* @__PURE__ */ new Set([
2101
+ const ec = /* @__PURE__ */ new Set([
2102
2102
  "animate",
2103
2103
  "exit",
2104
2104
  "variants",
@@ -2131,20 +2131,20 @@ const tc = /* @__PURE__ */ new Set([
2131
2131
  "viewport"
2132
2132
  ]);
2133
2133
  function Ee(t) {
2134
- return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || tc.has(t);
2134
+ return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || ec.has(t);
2135
2135
  }
2136
- let Fr = (t) => !Ee(t);
2137
- function ec(t) {
2138
- typeof t == "function" && (Fr = (e) => e.startsWith("on") ? !Ee(e) : t(e));
2136
+ let jr = (t) => !Ee(t);
2137
+ function nc(t) {
2138
+ typeof t == "function" && (jr = (e) => e.startsWith("on") ? !Ee(e) : t(e));
2139
2139
  }
2140
2140
  try {
2141
- ec(require("@emotion/is-prop-valid").default);
2141
+ nc(require("@emotion/is-prop-valid").default);
2142
2142
  } catch {
2143
2143
  }
2144
- function nc(t, e, n) {
2144
+ function sc(t, e, n) {
2145
2145
  const s = {};
2146
2146
  for (const i in t)
2147
- i === "values" && typeof t.values == "object" || (Fr(i) || n === !0 && Ee(i) || !e && !Ee(i) || // If trying to use native HTML drag events, forward drag listeners
2147
+ i === "values" && typeof t.values == "object" || (jr(i) || n === !0 && Ee(i) || !e && !Ee(i) || // If trying to use native HTML drag events, forward drag listeners
2148
2148
  t.draggable && i.startsWith("onDrag")) && (s[i] = t[i]);
2149
2149
  return s;
2150
2150
  }
@@ -2167,10 +2167,10 @@ const ns = [
2167
2167
  function _e(t) {
2168
2168
  return Ie(t.animate) || ss.some((e) => ee(t[e]));
2169
2169
  }
2170
- function jr(t) {
2170
+ function Nr(t) {
2171
2171
  return !!(_e(t) || t.variants);
2172
2172
  }
2173
- function sc(t, e) {
2173
+ function ic(t, e) {
2174
2174
  if (_e(t)) {
2175
2175
  const { initial: n, animate: s } = t;
2176
2176
  return {
@@ -2180,39 +2180,39 @@ function sc(t, e) {
2180
2180
  }
2181
2181
  return t.inherit !== !1 ? e : {};
2182
2182
  }
2183
- function ic(t) {
2184
- const { initial: e, animate: n } = sc(t, G(Ke));
2183
+ function rc(t) {
2184
+ const { initial: e, animate: n } = ic(t, G(Ke));
2185
2185
  return At(() => ({ initial: e, animate: n }), [Us(e), Us(n)]);
2186
2186
  }
2187
2187
  function Us(t) {
2188
2188
  return Array.isArray(t) ? t.join(" ") : t;
2189
2189
  }
2190
2190
  const ne = {};
2191
- function rc(t) {
2191
+ function oc(t) {
2192
2192
  for (const e in t)
2193
2193
  ne[e] = t[e], Nn(e) && (ne[e].isCSSVariable = !0);
2194
2194
  }
2195
- function Nr(t, { layout: e, layoutId: n }) {
2195
+ function Ur(t, { layout: e, layoutId: n }) {
2196
2196
  return Ut.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!ne[t] || t === "opacity");
2197
2197
  }
2198
- const oc = {
2198
+ const ac = {
2199
2199
  x: "translateX",
2200
2200
  y: "translateY",
2201
2201
  z: "translateZ",
2202
2202
  transformPerspective: "perspective"
2203
- }, ac = Nt.length;
2204
- function lc(t, e, n) {
2203
+ }, lc = Nt.length;
2204
+ function cc(t, e, n) {
2205
2205
  let s = "", i = !0;
2206
- for (let o = 0; o < ac; o++) {
2206
+ for (let o = 0; o < lc; o++) {
2207
2207
  const r = Nt[o], a = t[r];
2208
2208
  if (a === void 0)
2209
2209
  continue;
2210
2210
  let l = !0;
2211
2211
  if (typeof a == "number" ? l = a === (r.startsWith("scale") ? 1 : 0) : l = parseFloat(a) === 0, !l || n) {
2212
- const u = Dr(a, Jn[r]);
2212
+ const u = Rr(a, Jn[r]);
2213
2213
  if (!l) {
2214
2214
  i = !1;
2215
- const c = oc[r] || r;
2215
+ const c = ac[r] || r;
2216
2216
  s += `${c}(${u}) `;
2217
2217
  }
2218
2218
  n && (e[r] = u);
@@ -2232,11 +2232,11 @@ function is(t, e, n) {
2232
2232
  i[l] = u;
2233
2233
  continue;
2234
2234
  } else {
2235
- const c = Dr(u, Jn[l]);
2235
+ const c = Rr(u, Jn[l]);
2236
2236
  l.startsWith("origin") ? (a = !0, o[l] = c) : s[l] = c;
2237
2237
  }
2238
2238
  }
2239
- if (e.transform || (r || n ? s.transform = lc(e, t.transform, n) : s.transform && (s.transform = "none")), a) {
2239
+ if (e.transform || (r || n ? s.transform = cc(e, t.transform, n) : s.transform && (s.transform = "none")), a) {
2240
2240
  const { originX: l = "50%", originY: u = "50%", originZ: c = 0 } = o;
2241
2241
  s.transformOrigin = `${l} ${u} ${c}`;
2242
2242
  }
@@ -2247,39 +2247,39 @@ const rs = () => ({
2247
2247
  transformOrigin: {},
2248
2248
  vars: {}
2249
2249
  });
2250
- function Ur(t, e, n) {
2250
+ function zr(t, e, n) {
2251
2251
  for (const s in e)
2252
- !W(e[s]) && !Nr(s, n) && (t[s] = e[s]);
2252
+ !W(e[s]) && !Ur(s, n) && (t[s] = e[s]);
2253
2253
  }
2254
- function cc({ transformTemplate: t }, e) {
2254
+ function uc({ transformTemplate: t }, e) {
2255
2255
  return At(() => {
2256
2256
  const n = rs();
2257
2257
  return is(n, e, t), Object.assign({}, n.vars, n.style);
2258
2258
  }, [e]);
2259
2259
  }
2260
- function uc(t, e) {
2260
+ function dc(t, e) {
2261
2261
  const n = t.style || {}, s = {};
2262
- return Ur(s, n, t), Object.assign(s, cc(t, e)), s;
2262
+ return zr(s, n, t), Object.assign(s, uc(t, e)), s;
2263
2263
  }
2264
- function dc(t, e) {
2265
- const n = {}, s = uc(t, e);
2264
+ function hc(t, e) {
2265
+ const n = {}, s = dc(t, e);
2266
2266
  return t.drag && t.dragListener !== !1 && (n.draggable = !1, s.userSelect = s.WebkitUserSelect = s.WebkitTouchCallout = "none", s.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (n.tabIndex = 0), n.style = s, n;
2267
2267
  }
2268
- const hc = {
2268
+ const fc = {
2269
2269
  offset: "stroke-dashoffset",
2270
2270
  array: "stroke-dasharray"
2271
- }, fc = {
2271
+ }, pc = {
2272
2272
  offset: "strokeDashoffset",
2273
2273
  array: "strokeDasharray"
2274
2274
  };
2275
- function pc(t, e, n = 1, s = 0, i = !0) {
2275
+ function mc(t, e, n = 1, s = 0, i = !0) {
2276
2276
  t.pathLength = 1;
2277
- const o = i ? hc : fc;
2277
+ const o = i ? fc : pc;
2278
2278
  t[o.offset] = M.transform(-s);
2279
2279
  const r = M.transform(e), a = M.transform(n);
2280
2280
  t[o.array] = `${r} ${a}`;
2281
2281
  }
2282
- function zr(t, {
2282
+ function $r(t, {
2283
2283
  attrX: e,
2284
2284
  attrY: n,
2285
2285
  attrScale: s,
@@ -2295,27 +2295,27 @@ function zr(t, {
2295
2295
  }
2296
2296
  t.attrs = t.style, t.style = {};
2297
2297
  const { attrs: f, style: m } = t;
2298
- f.transform && (m.transform = f.transform, delete f.transform), (m.transform || f.transformOrigin) && (m.transformOrigin = f.transformOrigin ?? "50% 50%", delete f.transformOrigin), m.transform && (m.transformBox = c?.transformBox ?? "fill-box", delete f.transformBox), e !== void 0 && (f.x = e), n !== void 0 && (f.y = n), s !== void 0 && (f.scale = s), i !== void 0 && pc(f, i, o, r, !1);
2298
+ f.transform && (m.transform = f.transform, delete f.transform), (m.transform || f.transformOrigin) && (m.transformOrigin = f.transformOrigin ?? "50% 50%", delete f.transformOrigin), m.transform && (m.transformBox = c?.transformBox ?? "fill-box", delete f.transformBox), e !== void 0 && (f.x = e), n !== void 0 && (f.y = n), s !== void 0 && (f.scale = s), i !== void 0 && mc(f, i, o, r, !1);
2299
2299
  }
2300
- const $r = () => ({
2300
+ const Gr = () => ({
2301
2301
  ...rs(),
2302
2302
  attrs: {}
2303
- }), Gr = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2304
- function mc(t, e, n, s) {
2303
+ }), Wr = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2304
+ function gc(t, e, n, s) {
2305
2305
  const i = At(() => {
2306
- const o = $r();
2307
- return zr(o, e, Gr(s), t.transformTemplate, t.style), {
2306
+ const o = Gr();
2307
+ return $r(o, e, Wr(s), t.transformTemplate, t.style), {
2308
2308
  ...o.attrs,
2309
2309
  style: { ...o.style }
2310
2310
  };
2311
2311
  }, [e]);
2312
2312
  if (t.style) {
2313
2313
  const o = {};
2314
- Ur(o, t.style, t), i.style = { ...o, ...i.style };
2314
+ zr(o, t.style, t), i.style = { ...o, ...i.style };
2315
2315
  }
2316
2316
  return i;
2317
2317
  }
2318
- const gc = [
2318
+ const yc = [
2319
2319
  "animate",
2320
2320
  "circle",
2321
2321
  "defs",
@@ -2355,16 +2355,16 @@ function os(t) {
2355
2355
  /**
2356
2356
  * If it's in our list of lowercase SVG tags, it's an SVG component
2357
2357
  */
2358
- !!(gc.indexOf(t) > -1 || /**
2358
+ !!(yc.indexOf(t) > -1 || /**
2359
2359
  * If it contains a capital letter, it's an SVG component
2360
2360
  */
2361
2361
  /[A-Z]/u.test(t))
2362
2362
  )
2363
2363
  );
2364
2364
  }
2365
- function yc(t, e, n, { latestValues: s }, i, o = !1) {
2366
- const a = (os(t) ? mc : dc)(e, s, i, t), l = nc(e, typeof t == "string", o), u = t !== zi ? { ...l, ...a, ref: n } : {}, { children: c } = e, f = At(() => W(c) ? c.get() : c, [c]);
2367
- return Oo(t, {
2365
+ function bc(t, e, n, { latestValues: s }, i, o = !1) {
2366
+ const a = (os(t) ? gc : hc)(e, s, i, t), l = sc(e, typeof t == "string", o), u = t !== $i ? { ...l, ...a, ref: n } : {}, { children: c } = e, f = At(() => W(c) ? c.get() : c, [c]);
2367
+ return Fo(t, {
2368
2368
  ...u,
2369
2369
  children: f
2370
2370
  });
@@ -2389,18 +2389,18 @@ function as(t, e, n, s) {
2389
2389
  function Ce(t) {
2390
2390
  return W(t) ? t.get() : t;
2391
2391
  }
2392
- function bc({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, s, i) {
2392
+ function vc({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, s, i) {
2393
2393
  return {
2394
- latestValues: vc(n, s, i, t),
2394
+ latestValues: xc(n, s, i, t),
2395
2395
  renderState: e()
2396
2396
  };
2397
2397
  }
2398
- function vc(t, e, n, s) {
2398
+ function xc(t, e, n, s) {
2399
2399
  const i = {}, o = s(t, {});
2400
2400
  for (const m in o)
2401
2401
  i[m] = Ce(o[m]);
2402
2402
  let { initial: r, animate: a } = t;
2403
- const l = _e(t), u = jr(t);
2403
+ const l = _e(t), u = Nr(t);
2404
2404
  e && u && !l && t.inherit !== !1 && (r === void 0 && (r = e.initial), a === void 0 && (a = e.animate));
2405
2405
  let c = n ? n.initial === !1 : !1;
2406
2406
  c = c || r === !1;
@@ -2426,21 +2426,21 @@ function vc(t, e, n, s) {
2426
2426
  }
2427
2427
  return i;
2428
2428
  }
2429
- const Wr = (t) => (e, n) => {
2430
- const s = G(Ke), i = G(Le), o = () => bc(t, e, s, i);
2429
+ const Hr = (t) => (e, n) => {
2430
+ const s = G(Ke), i = G(Le), o = () => vc(t, e, s, i);
2431
2431
  return n ? o() : Rn(o);
2432
2432
  };
2433
2433
  function ls(t, e, n) {
2434
2434
  const { style: s } = t, i = {};
2435
2435
  for (const o in s)
2436
- (W(s[o]) || e.style && W(e.style[o]) || Nr(o, t) || n?.getValue(o)?.liveStyle !== void 0) && (i[o] = s[o]);
2436
+ (W(s[o]) || e.style && W(e.style[o]) || Ur(o, t) || n?.getValue(o)?.liveStyle !== void 0) && (i[o] = s[o]);
2437
2437
  return i;
2438
2438
  }
2439
- const xc = /* @__PURE__ */ Wr({
2439
+ const wc = /* @__PURE__ */ Hr({
2440
2440
  scrapeMotionValuesFromProps: ls,
2441
2441
  createRenderState: rs
2442
2442
  });
2443
- function Hr(t, e, n) {
2443
+ function Xr(t, e, n) {
2444
2444
  const s = ls(t, e, n);
2445
2445
  for (const i in t)
2446
2446
  if (W(t[i]) || W(e[i])) {
@@ -2449,15 +2449,15 @@ function Hr(t, e, n) {
2449
2449
  }
2450
2450
  return s;
2451
2451
  }
2452
- const wc = /* @__PURE__ */ Wr({
2453
- scrapeMotionValuesFromProps: Hr,
2454
- createRenderState: $r
2455
- }), Tc = Symbol.for("motionComponentSymbol");
2452
+ const Tc = /* @__PURE__ */ Hr({
2453
+ scrapeMotionValuesFromProps: Xr,
2454
+ createRenderState: Gr
2455
+ }), Cc = Symbol.for("motionComponentSymbol");
2456
2456
  function Dt(t) {
2457
2457
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
2458
2458
  }
2459
- function Cc(t, e, n) {
2460
- return Ui(
2459
+ function Pc(t, e, n) {
2460
+ return zi(
2461
2461
  (s) => {
2462
2462
  s && t.onMount && t.onMount(s), e && (s ? e.mount(s) : e.unmount()), n && (typeof n == "function" ? n(s) : Dt(n) && (n.current = s));
2463
2463
  },
@@ -2469,9 +2469,9 @@ function Cc(t, e, n) {
2469
2469
  [e]
2470
2470
  );
2471
2471
  }
2472
- const cs = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Pc = "framerAppearId", Xr = "data-" + cs(Pc), Yr = Ot({});
2473
- function Sc(t, e, n, s, i) {
2474
- const { visualElement: o } = G(Ke), r = G(Or), a = G(Le), l = G(es).reducedMotion, u = ut(null);
2472
+ const cs = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Sc = "framerAppearId", Yr = "data-" + cs(Sc), qr = Ot({});
2473
+ function kc(t, e, n, s, i) {
2474
+ const { visualElement: o } = G(Ke), r = G(Fr), a = G(Le), l = G(es).reducedMotion, u = ut(null);
2475
2475
  s = s || r.renderer, !u.current && s && (u.current = s(t, {
2476
2476
  visualState: e,
2477
2477
  parent: o,
@@ -2480,14 +2480,14 @@ function Sc(t, e, n, s, i) {
2480
2480
  blockInitialAnimation: a ? a.initial === !1 : !1,
2481
2481
  reducedMotionConfig: l
2482
2482
  }));
2483
- const c = u.current, f = G(Yr);
2484
- c && !c.projection && i && (c.type === "html" || c.type === "svg") && kc(u.current, n, i, f);
2483
+ const c = u.current, f = G(qr);
2484
+ c && !c.projection && i && (c.type === "html" || c.type === "svg") && Ac(u.current, n, i, f);
2485
2485
  const m = ut(!1);
2486
- Ni(() => {
2486
+ Ui(() => {
2487
2487
  c && m.current && c.update(n, a);
2488
2488
  });
2489
- const v = n[Xr], w = ut(!!v && !window.MotionHandoffIsComplete?.(v) && window.MotionHasOptimisedAnimation?.(v));
2490
- return Wi(() => {
2489
+ const v = n[Yr], w = ut(!!v && !window.MotionHandoffIsComplete?.(v) && window.MotionHasOptimisedAnimation?.(v));
2490
+ return Hi(() => {
2491
2491
  c && (m.current = !0, window.MotionIsMounted = !0, c.updateFeatures(), c.scheduleRenderMicrotask(), w.current && c.animationState && c.animationState.animateChanges());
2492
2492
  }), Re(() => {
2493
2493
  c && (!w.current && c.animationState && c.animationState.animateChanges(), w.current && (queueMicrotask(() => {
@@ -2495,9 +2495,9 @@ function Sc(t, e, n, s, i) {
2495
2495
  }), w.current = !1), c.enteringChildren = void 0);
2496
2496
  }), c;
2497
2497
  }
2498
- function kc(t, e, n, s) {
2498
+ function Ac(t, e, n, s) {
2499
2499
  const { layoutId: i, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: u, layoutCrossfade: c } = e;
2500
- t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : qr(t.parent)), t.projection.setOptions({
2500
+ t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : Zr(t.parent)), t.projection.setOptions({
2501
2501
  layoutId: i,
2502
2502
  layout: o,
2503
2503
  alwaysMeasureLayout: !!r || a && Dt(a),
@@ -2516,43 +2516,43 @@ function kc(t, e, n, s) {
2516
2516
  layoutRoot: u
2517
2517
  });
2518
2518
  }
2519
- function qr(t) {
2519
+ function Zr(t) {
2520
2520
  if (t)
2521
- return t.options.allowProjection !== !1 ? t.projection : qr(t.parent);
2521
+ return t.options.allowProjection !== !1 ? t.projection : Zr(t.parent);
2522
2522
  }
2523
2523
  function We(t, { forwardMotionProps: e = !1 } = {}, n, s) {
2524
- n && Ql(n);
2525
- const i = os(t) ? wc : xc;
2524
+ n && tc(n);
2525
+ const i = os(t) ? Tc : wc;
2526
2526
  function o(a, l) {
2527
2527
  let u;
2528
2528
  const c = {
2529
2529
  ...G(es),
2530
2530
  ...a,
2531
- layoutId: Ac(a)
2532
- }, { isStatic: f } = c, m = ic(a), v = i(a, f);
2531
+ layoutId: Mc(a)
2532
+ }, { isStatic: f } = c, m = rc(a), v = i(a, f);
2533
2533
  if (!f && Ln) {
2534
- Mc(c, n);
2535
- const w = Vc(c);
2536
- u = w.MeasureLayout, m.visualElement = Sc(t, v, c, s, w.ProjectionNode);
2534
+ Vc(c, n);
2535
+ const w = Ec(c);
2536
+ u = w.MeasureLayout, m.visualElement = kc(t, v, c, s, w.ProjectionNode);
2537
2537
  }
2538
- return $i(Ke.Provider, { value: m, children: [u && m.visualElement ? Q(u, { visualElement: m.visualElement, ...c }) : null, yc(t, a, Cc(v, m.visualElement, l), v, f, e)] });
2538
+ return Gi(Ke.Provider, { value: m, children: [u && m.visualElement ? Q(u, { visualElement: m.visualElement, ...c }) : null, bc(t, a, Pc(v, m.visualElement, l), v, f, e)] });
2539
2539
  }
2540
2540
  o.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
2541
- const r = Fo(o);
2542
- return r[Tc] = t, r;
2541
+ const r = jo(o);
2542
+ return r[Cc] = t, r;
2543
2543
  }
2544
- function Ac({ layoutId: t }) {
2544
+ function Mc({ layoutId: t }) {
2545
2545
  const e = G(Dn).id;
2546
2546
  return e && t !== void 0 ? e + "-" + t : t;
2547
2547
  }
2548
- function Mc(t, e) {
2549
- const n = G(Or).strict;
2548
+ function Vc(t, e) {
2549
+ const n = G(Fr).strict;
2550
2550
  if (process.env.NODE_ENV !== "production" && e && n) {
2551
2551
  const s = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
2552
2552
  t.ignoreStrict ? Ft(!1, s, "lazy-strict-mode") : ht(!1, s, "lazy-strict-mode");
2553
2553
  }
2554
2554
  }
2555
- function Vc(t) {
2555
+ function Ec(t) {
2556
2556
  const { drag: e, layout: n } = Bt;
2557
2557
  if (!e && !n)
2558
2558
  return {};
@@ -2562,7 +2562,7 @@ function Vc(t) {
2562
2562
  ProjectionNode: s.ProjectionNode
2563
2563
  };
2564
2564
  }
2565
- function Ec(t, e) {
2565
+ function Dc(t, e) {
2566
2566
  if (typeof Proxy > "u")
2567
2567
  return We;
2568
2568
  const n = /* @__PURE__ */ new Map(), s = (o, r) => We(o, r, t, e), i = (o, r) => (process.env.NODE_ENV !== "production" && On(!1, "motion() is deprecated. Use motion.create() instead."), s(o, r));
@@ -2575,16 +2575,16 @@ function Ec(t, e) {
2575
2575
  get: (o, r) => r === "create" ? s : (n.has(r) || n.set(r, We(r, void 0, t, e)), n.get(r))
2576
2576
  });
2577
2577
  }
2578
- function Zr({ top: t, left: e, right: n, bottom: s }) {
2578
+ function Jr({ top: t, left: e, right: n, bottom: s }) {
2579
2579
  return {
2580
2580
  x: { min: e, max: n },
2581
2581
  y: { min: t, max: s }
2582
2582
  };
2583
2583
  }
2584
- function Dc({ x: t, y: e }) {
2584
+ function Rc({ x: t, y: e }) {
2585
2585
  return { top: e.min, right: t.max, bottom: e.max, left: t.min };
2586
2586
  }
2587
- function Rc(t, e) {
2587
+ function Lc(t, e) {
2588
2588
  if (!e)
2589
2589
  return t;
2590
2590
  const n = e({ x: t.left, y: t.top }), s = e({ x: t.right, y: t.bottom });
@@ -2602,9 +2602,9 @@ function bn({ scale: t, scaleX: e, scaleY: n }) {
2602
2602
  return !He(t) || !He(e) || !He(n);
2603
2603
  }
2604
2604
  function Tt(t) {
2605
- return bn(t) || Jr(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
2605
+ return bn(t) || Qr(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
2606
2606
  }
2607
- function Jr(t) {
2607
+ function Qr(t) {
2608
2608
  return $s(t.x) || $s(t.y);
2609
2609
  }
2610
2610
  function $s(t) {
@@ -2620,11 +2620,11 @@ function Gs(t, e, n, s, i) {
2620
2620
  function vn(t, e = 0, n = 1, s, i) {
2621
2621
  t.min = Gs(t.min, e, n, s, i), t.max = Gs(t.max, e, n, s, i);
2622
2622
  }
2623
- function Qr(t, { x: e, y: n }) {
2623
+ function to(t, { x: e, y: n }) {
2624
2624
  vn(t.x, e.translate, e.scale, e.originPoint), vn(t.y, n.translate, n.scale, n.originPoint);
2625
2625
  }
2626
2626
  const Ws = 0.999999999999, Hs = 1.0000000000001;
2627
- function Lc(t, e, n, s = !1) {
2627
+ function Kc(t, e, n, s = !1) {
2628
2628
  const i = n.length;
2629
2629
  if (!i)
2630
2630
  return;
@@ -2636,7 +2636,7 @@ function Lc(t, e, n, s = !1) {
2636
2636
  l && l.props.style && l.props.style.display === "contents" || (s && o.options.layoutScroll && o.scroll && o !== o.root && Lt(t, {
2637
2637
  x: -o.scroll.offset.x,
2638
2638
  y: -o.scroll.offset.y
2639
- }), r && (e.x *= r.x.scale, e.y *= r.y.scale, Qr(t, r)), s && Tt(o.latestValues) && Lt(t, o.latestValues));
2639
+ }), r && (e.x *= r.x.scale, e.y *= r.y.scale, to(t, r)), s && Tt(o.latestValues) && Lt(t, o.latestValues));
2640
2640
  }
2641
2641
  e.x < Hs && e.x > Ws && (e.x = 1), e.y < Hs && e.y > Ws && (e.y = 1);
2642
2642
  }
@@ -2650,11 +2650,11 @@ function Xs(t, e, n, s, i = 0.5) {
2650
2650
  function Lt(t, e) {
2651
2651
  Xs(t.x, e.x, e.scaleX, e.scale, e.originX), Xs(t.y, e.y, e.scaleY, e.scale, e.originY);
2652
2652
  }
2653
- function to(t, e) {
2654
- return Zr(Rc(t.getBoundingClientRect(), e));
2653
+ function eo(t, e) {
2654
+ return Jr(Lc(t.getBoundingClientRect(), e));
2655
2655
  }
2656
- function Kc(t, e, n) {
2657
- const s = to(t, n), { scroll: i } = e;
2656
+ function Ic(t, e, n) {
2657
+ const s = eo(t, n), { scroll: i } = e;
2658
2658
  return i && (Rt(s.x, i.offset.x), Rt(s.y, i.offset.y)), s;
2659
2659
  }
2660
2660
  const Ys = () => ({
@@ -2668,17 +2668,17 @@ const Ys = () => ({
2668
2668
  }), qs = () => ({ min: 0, max: 0 }), O = () => ({
2669
2669
  x: qs(),
2670
2670
  y: qs()
2671
- }), xn = { current: null }, eo = { current: !1 };
2672
- function Ic() {
2673
- if (eo.current = !0, !!Ln)
2671
+ }), xn = { current: null }, no = { current: !1 };
2672
+ function _c() {
2673
+ if (no.current = !0, !!Ln)
2674
2674
  if (window.matchMedia) {
2675
2675
  const t = window.matchMedia("(prefers-reduced-motion)"), e = () => xn.current = t.matches;
2676
2676
  t.addEventListener("change", e), e();
2677
2677
  } else
2678
2678
  xn.current = !1;
2679
2679
  }
2680
- const _c = /* @__PURE__ */ new WeakMap();
2681
- function Bc(t, e, n) {
2680
+ const Bc = /* @__PURE__ */ new WeakMap();
2681
+ function Oc(t, e, n) {
2682
2682
  for (const s in e) {
2683
2683
  const i = e[s], o = n[s];
2684
2684
  if (W(i))
@@ -2707,7 +2707,7 @@ const Zs = [
2707
2707
  "LayoutAnimationStart",
2708
2708
  "LayoutAnimationComplete"
2709
2709
  ];
2710
- class Oc {
2710
+ class Fc {
2711
2711
  /**
2712
2712
  * This method takes React props and returns found MotionValues. For example, HTML
2713
2713
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -2726,7 +2726,7 @@ class Oc {
2726
2726
  this.renderScheduledAt < m && (this.renderScheduledAt = m, K.render(this.render, !1, !0));
2727
2727
  };
2728
2728
  const { latestValues: l, renderState: u } = r;
2729
- this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = u, this.parent = e, this.props = n, this.presenceContext = s, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = _e(n), this.isVariantNode = jr(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2729
+ this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = u, this.parent = e, this.props = n, this.presenceContext = s, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = _e(n), this.isVariantNode = Nr(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2730
2730
  const { willChange: c, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
2731
2731
  for (const m in f) {
2732
2732
  const v = f[m];
@@ -2734,7 +2734,7 @@ class Oc {
2734
2734
  }
2735
2735
  }
2736
2736
  mount(e) {
2737
- this.current = e, _c.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), eo.current || Ic(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : xn.current, process.env.NODE_ENV !== "production" && On(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
2737
+ this.current = e, Bc.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), no.current || _c(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : xn.current, process.env.NODE_ENV !== "production" && On(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
2738
2738
  }
2739
2739
  unmount() {
2740
2740
  this.projection && this.projection.unmount(), yt(this.notifyUpdate), yt(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
@@ -2809,7 +2809,7 @@ class Oc {
2809
2809
  const o = "on" + i, r = e[o];
2810
2810
  r && (this.propEventSubscriptions[i] = this.on(i, r));
2811
2811
  }
2812
- this.prevMotionValues = Bc(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2812
+ this.prevMotionValues = Oc(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2813
2813
  }
2814
2814
  getProps() {
2815
2815
  return this.props;
@@ -2874,7 +2874,7 @@ class Oc {
2874
2874
  */
2875
2875
  readValue(e, n) {
2876
2876
  let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
2877
- return s != null && (typeof s == "string" && (Hi(s) || Yi(s)) ? s = parseFloat(s) : !Hl(s) && bt.test(n) && (s = Er(e, n)), this.setBaseTarget(e, W(s) ? s.get() : s)), W(s) ? s.get() : s;
2877
+ return s != null && (typeof s == "string" && (Xi(s) || qi(s)) ? s = parseFloat(s) : !Xl(s) && bt.test(n) && (s = Dr(e, n)), this.setBaseTarget(e, W(s) ? s.get() : s)), W(s) ? s.get() : s;
2878
2878
  }
2879
2879
  /**
2880
2880
  * Set the base target to later animate back to. This is currently
@@ -2909,9 +2909,9 @@ class Oc {
2909
2909
  Qn.render(this.render);
2910
2910
  }
2911
2911
  }
2912
- class no extends Oc {
2912
+ class so extends Fc {
2913
2913
  constructor() {
2914
- super(...arguments), this.KeyframeResolver = Il;
2914
+ super(...arguments), this.KeyframeResolver = _l;
2915
2915
  }
2916
2916
  sortInstanceNodePosition(e, n) {
2917
2917
  return e.compareDocumentPosition(n) & 2 ? 1 : -1;
@@ -2930,7 +2930,7 @@ class no extends Oc {
2930
2930
  }));
2931
2931
  }
2932
2932
  }
2933
- function so(t, { style: e, vars: n }, s, i) {
2933
+ function io(t, { style: e, vars: n }, s, i) {
2934
2934
  const o = t.style;
2935
2935
  let r;
2936
2936
  for (r in e)
@@ -2939,23 +2939,23 @@ function so(t, { style: e, vars: n }, s, i) {
2939
2939
  for (r in n)
2940
2940
  o.setProperty(r, n[r]);
2941
2941
  }
2942
- function Fc(t) {
2942
+ function jc(t) {
2943
2943
  return window.getComputedStyle(t);
2944
2944
  }
2945
- class jc extends no {
2945
+ class Nc extends so {
2946
2946
  constructor() {
2947
- super(...arguments), this.type = "html", this.renderInstance = so;
2947
+ super(...arguments), this.type = "html", this.renderInstance = io;
2948
2948
  }
2949
2949
  readValueFromInstance(e, n) {
2950
2950
  if (Ut.has(n))
2951
- return this.projection?.isProjecting ? dn(n) : Qa(e, n);
2951
+ return this.projection?.isProjecting ? dn(n) : tl(e, n);
2952
2952
  {
2953
- const s = Fc(e), i = (Nn(n) ? s.getPropertyValue(n) : s[n]) || 0;
2953
+ const s = jc(e), i = (Nn(n) ? s.getPropertyValue(n) : s[n]) || 0;
2954
2954
  return typeof i == "string" ? i.trim() : i;
2955
2955
  }
2956
2956
  }
2957
2957
  measureInstanceViewportBox(e, { transformPagePoint: n }) {
2958
- return to(e, n);
2958
+ return eo(e, n);
2959
2959
  }
2960
2960
  build(e, n, s) {
2961
2961
  is(e, n, s.transformTemplate);
@@ -2964,7 +2964,7 @@ class jc extends no {
2964
2964
  return ls(e, n, s);
2965
2965
  }
2966
2966
  }
2967
- const io = /* @__PURE__ */ new Set([
2967
+ const ro = /* @__PURE__ */ new Set([
2968
2968
  "baseFrequency",
2969
2969
  "diffuseConstant",
2970
2970
  "kernelMatrix",
@@ -2989,12 +2989,12 @@ const io = /* @__PURE__ */ new Set([
2989
2989
  "textLength",
2990
2990
  "lengthAdjust"
2991
2991
  ]);
2992
- function Nc(t, e, n, s) {
2993
- so(t, e, void 0, s);
2992
+ function Uc(t, e, n, s) {
2993
+ io(t, e, void 0, s);
2994
2994
  for (const i in e.attrs)
2995
- t.setAttribute(io.has(i) ? i : cs(i), e.attrs[i]);
2995
+ t.setAttribute(ro.has(i) ? i : cs(i), e.attrs[i]);
2996
2996
  }
2997
- class Uc extends no {
2997
+ class zc extends so {
2998
2998
  constructor() {
2999
2999
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = O;
3000
3000
  }
@@ -3003,86 +3003,86 @@ class Uc extends no {
3003
3003
  }
3004
3004
  readValueFromInstance(e, n) {
3005
3005
  if (Ut.has(n)) {
3006
- const s = Vr(n);
3006
+ const s = Er(n);
3007
3007
  return s && s.default || 0;
3008
3008
  }
3009
- return n = io.has(n) ? n : cs(n), e.getAttribute(n);
3009
+ return n = ro.has(n) ? n : cs(n), e.getAttribute(n);
3010
3010
  }
3011
3011
  scrapeMotionValuesFromProps(e, n, s) {
3012
- return Hr(e, n, s);
3012
+ return Xr(e, n, s);
3013
3013
  }
3014
3014
  build(e, n, s) {
3015
- zr(e, n, this.isSVGTag, s.transformTemplate, s.style);
3015
+ $r(e, n, this.isSVGTag, s.transformTemplate, s.style);
3016
3016
  }
3017
3017
  renderInstance(e, n, s, i) {
3018
- Nc(e, n, s, i);
3018
+ Uc(e, n, s, i);
3019
3019
  }
3020
3020
  mount(e) {
3021
- this.isSVGTag = Gr(e.tagName), super.mount(e);
3021
+ this.isSVGTag = Wr(e.tagName), super.mount(e);
3022
3022
  }
3023
3023
  }
3024
- const zc = (t, e) => os(t) ? new Uc(e) : new jc(e, {
3025
- allowProjection: t !== zi
3024
+ const $c = (t, e) => os(t) ? new zc(e) : new Nc(e, {
3025
+ allowProjection: t !== $i
3026
3026
  });
3027
3027
  function It(t, e, n) {
3028
3028
  const s = t.getProps();
3029
3029
  return as(s, e, n !== void 0 ? n : s.custom, t);
3030
3030
  }
3031
3031
  const wn = (t) => Array.isArray(t);
3032
- function $c(t, e, n) {
3032
+ function Gc(t, e, n) {
3033
3033
  t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, _t(n));
3034
3034
  }
3035
- function Gc(t) {
3035
+ function Wc(t) {
3036
3036
  return wn(t) ? t[t.length - 1] || 0 : t;
3037
3037
  }
3038
- function Wc(t, e) {
3038
+ function Hc(t, e) {
3039
3039
  const n = It(t, e);
3040
3040
  let { transitionEnd: s = {}, transition: i = {}, ...o } = n || {};
3041
3041
  o = { ...o, ...s };
3042
3042
  for (const r in o) {
3043
- const a = Gc(o[r]);
3044
- $c(t, r, a);
3043
+ const a = Wc(o[r]);
3044
+ Gc(t, r, a);
3045
3045
  }
3046
3046
  }
3047
- function Hc(t) {
3047
+ function Xc(t) {
3048
3048
  return !!(W(t) && t.add);
3049
3049
  }
3050
3050
  function Tn(t, e) {
3051
3051
  const n = t.getValue("willChange");
3052
- if (Hc(n))
3052
+ if (Xc(n))
3053
3053
  return n.add(e);
3054
3054
  if (!n && ft.WillChange) {
3055
3055
  const s = new ft.WillChange("auto");
3056
3056
  t.addValue("willChange", s), s.add(e);
3057
3057
  }
3058
3058
  }
3059
- function ro(t) {
3060
- return t.props[Xr];
3059
+ function oo(t) {
3060
+ return t.props[Yr];
3061
3061
  }
3062
- const Xc = (t) => t !== null;
3063
- function Yc(t, { repeat: e, repeatType: n = "loop" }, s) {
3064
- const i = t.filter(Xc), o = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
3062
+ const Yc = (t) => t !== null;
3063
+ function qc(t, { repeat: e, repeatType: n = "loop" }, s) {
3064
+ const i = t.filter(Yc), o = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
3065
3065
  return i[o];
3066
3066
  }
3067
- const qc = {
3067
+ const Zc = {
3068
3068
  type: "spring",
3069
3069
  stiffness: 500,
3070
3070
  damping: 25,
3071
3071
  restSpeed: 10
3072
- }, Zc = (t) => ({
3072
+ }, Jc = (t) => ({
3073
3073
  type: "spring",
3074
3074
  stiffness: 550,
3075
3075
  damping: t === 0 ? 2 * Math.sqrt(550) : 30,
3076
3076
  restSpeed: 10
3077
- }), Jc = {
3077
+ }), Qc = {
3078
3078
  type: "keyframes",
3079
3079
  duration: 0.8
3080
- }, Qc = {
3080
+ }, tu = {
3081
3081
  type: "keyframes",
3082
3082
  ease: [0.25, 0.1, 0.35, 1],
3083
3083
  duration: 0.3
3084
- }, tu = (t, { keyframes: e }) => e.length > 2 ? Jc : Ut.has(t) ? t.startsWith("scale") ? Zc(e[1]) : qc : Qc;
3085
- function eu({ when: t, delay: e, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: u, ...c }) {
3084
+ }, eu = (t, { keyframes: e }) => e.length > 2 ? Qc : Ut.has(t) ? t.startsWith("scale") ? Jc(e[1]) : Zc : tu;
3085
+ function nu({ when: t, delay: e, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: u, ...c }) {
3086
3086
  return !!Object.keys(c).length;
3087
3087
  }
3088
3088
  const us = (t, e, n, s = {}, i, o) => (r) => {
@@ -3105,10 +3105,10 @@ const us = (t, e, n, s = {}, i, o) => (r) => {
3105
3105
  motionValue: e,
3106
3106
  element: o ? void 0 : i
3107
3107
  };
3108
- eu(a) || Object.assign(c, tu(t, c)), c.duration && (c.duration = /* @__PURE__ */ rt(c.duration)), c.repeatDelay && (c.repeatDelay = /* @__PURE__ */ rt(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
3108
+ nu(a) || Object.assign(c, eu(t, c)), c.duration && (c.duration = /* @__PURE__ */ rt(c.duration)), c.repeatDelay && (c.repeatDelay = /* @__PURE__ */ rt(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
3109
3109
  let f = !1;
3110
3110
  if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (gn(c), c.delay === 0 && (f = !0)), (ft.instantAnimations || ft.skipAnimations) && (f = !0, gn(c), c.delay = 0), c.allowFlatten = !a.type && !a.ease, f && !o && e.get() !== void 0) {
3111
- const m = Yc(c.keyframes, a);
3111
+ const m = qc(c.keyframes, a);
3112
3112
  if (m !== void 0) {
3113
3113
  K.update(() => {
3114
3114
  c.onUpdate(m), c.onComplete();
@@ -3116,19 +3116,19 @@ const us = (t, e, n, s = {}, i, o) => (r) => {
3116
3116
  return;
3117
3117
  }
3118
3118
  }
3119
- return a.isSync ? new Yn(c) : new Tl(c);
3119
+ return a.isSync ? new Yn(c) : new Cl(c);
3120
3120
  };
3121
- function nu({ protectedKeys: t, needsAnimating: e }, n) {
3121
+ function su({ protectedKeys: t, needsAnimating: e }, n) {
3122
3122
  const s = t.hasOwnProperty(n) && e[n] !== !0;
3123
3123
  return e[n] = !1, s;
3124
3124
  }
3125
- function oo(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
3125
+ function ao(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
3126
3126
  let { transition: o = t.getDefaultTransition(), transitionEnd: r, ...a } = e;
3127
3127
  s && (o = s);
3128
3128
  const l = [], u = i && t.animationState && t.animationState.getState()[i];
3129
3129
  for (const c in a) {
3130
3130
  const f = t.getValue(c, t.latestValues[c] ?? null), m = a[c];
3131
- if (m === void 0 || u && nu(u, c))
3131
+ if (m === void 0 || u && su(u, c))
3132
3132
  continue;
3133
3133
  const v = {
3134
3134
  delay: n,
@@ -3138,23 +3138,23 @@ function oo(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
3138
3138
  continue;
3139
3139
  let C = !1;
3140
3140
  if (window.MotionHandoffAnimation) {
3141
- const h = ro(t);
3141
+ const h = oo(t);
3142
3142
  if (h) {
3143
3143
  const y = window.MotionHandoffAnimation(h, c, K);
3144
3144
  y !== null && (v.startTime = y, C = !0);
3145
3145
  }
3146
3146
  }
3147
- Tn(t, c), f.start(us(c, f, m, t.shouldReduceMotion && kr.has(c) ? { type: !1 } : v, t, C));
3147
+ Tn(t, c), f.start(us(c, f, m, t.shouldReduceMotion && Ar.has(c) ? { type: !1 } : v, t, C));
3148
3148
  const P = f.animation;
3149
3149
  P && l.push(P);
3150
3150
  }
3151
3151
  return r && Promise.all(l).then(() => {
3152
3152
  K.update(() => {
3153
- r && Wc(t, r);
3153
+ r && Hc(t, r);
3154
3154
  });
3155
3155
  }), l;
3156
3156
  }
3157
- function ao(t, e, n, s = 0, i = 1) {
3157
+ function lo(t, e, n, s = 0, i = 1) {
3158
3158
  const o = Array.from(t).sort((u, c) => u.sortNodePosition(c)).indexOf(e), r = t.size, a = (r - 1) * s;
3159
3159
  return typeof n == "function" ? n(o, r) : i === 1 ? o * s : a - o * s;
3160
3160
  }
@@ -3162,9 +3162,9 @@ function Cn(t, e, n = {}) {
3162
3162
  const s = It(t, e, n.type === "exit" ? t.presenceContext?.custom : void 0);
3163
3163
  let { transition: i = t.getDefaultTransition() || {} } = s || {};
3164
3164
  n.transitionOverride && (i = n.transitionOverride);
3165
- const o = s ? () => Promise.all(oo(t, s, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
3165
+ const o = s ? () => Promise.all(ao(t, s, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
3166
3166
  const { delayChildren: u = 0, staggerChildren: c, staggerDirection: f } = i;
3167
- return su(t, e, l, u, c, f, n);
3167
+ return iu(t, e, l, u, c, f, n);
3168
3168
  } : () => Promise.resolve(), { when: a } = i;
3169
3169
  if (a) {
3170
3170
  const [l, u] = a === "beforeChildren" ? [o, r] : [r, o];
@@ -3172,16 +3172,16 @@ function Cn(t, e, n = {}) {
3172
3172
  } else
3173
3173
  return Promise.all([o(), r(n.delay)]);
3174
3174
  }
3175
- function su(t, e, n = 0, s = 0, i = 0, o = 1, r) {
3175
+ function iu(t, e, n = 0, s = 0, i = 0, o = 1, r) {
3176
3176
  const a = [];
3177
3177
  for (const l of t.variantChildren)
3178
3178
  l.notify("AnimationStart", e), a.push(Cn(l, e, {
3179
3179
  ...r,
3180
- delay: n + (typeof s == "function" ? 0 : s) + ao(t.variantChildren, l, s, i, o)
3180
+ delay: n + (typeof s == "function" ? 0 : s) + lo(t.variantChildren, l, s, i, o)
3181
3181
  }).then(() => l.notify("AnimationComplete", e)));
3182
3182
  return Promise.all(a);
3183
3183
  }
3184
- function iu(t, e, n = {}) {
3184
+ function ru(t, e, n = {}) {
3185
3185
  t.notify("AnimationStart", e);
3186
3186
  let s;
3187
3187
  if (Array.isArray(e)) {
@@ -3191,13 +3191,13 @@ function iu(t, e, n = {}) {
3191
3191
  s = Cn(t, e, n);
3192
3192
  else {
3193
3193
  const i = typeof e == "function" ? It(t, e, n.custom) : e;
3194
- s = Promise.all(oo(t, i, n));
3194
+ s = Promise.all(ao(t, i, n));
3195
3195
  }
3196
3196
  return s.then(() => {
3197
3197
  t.notify("AnimationComplete", e);
3198
3198
  });
3199
3199
  }
3200
- function lo(t, e) {
3200
+ function co(t, e) {
3201
3201
  if (!Array.isArray(e))
3202
3202
  return !1;
3203
3203
  const n = e.length;
@@ -3208,27 +3208,27 @@ function lo(t, e) {
3208
3208
  return !1;
3209
3209
  return !0;
3210
3210
  }
3211
- const ru = ss.length;
3212
- function co(t) {
3211
+ const ou = ss.length;
3212
+ function uo(t) {
3213
3213
  if (!t)
3214
3214
  return;
3215
3215
  if (!t.isControllingVariants) {
3216
- const n = t.parent ? co(t.parent) || {} : {};
3216
+ const n = t.parent ? uo(t.parent) || {} : {};
3217
3217
  return t.props.initial !== void 0 && (n.initial = t.props.initial), n;
3218
3218
  }
3219
3219
  const e = {};
3220
- for (let n = 0; n < ru; n++) {
3220
+ for (let n = 0; n < ou; n++) {
3221
3221
  const s = ss[n], i = t.props[s];
3222
3222
  (ee(i) || i === !1) && (e[s] = i);
3223
3223
  }
3224
3224
  return e;
3225
3225
  }
3226
- const ou = [...ns].reverse(), au = ns.length;
3227
- function lu(t) {
3228
- return (e) => Promise.all(e.map(({ animation: n, options: s }) => iu(t, n, s)));
3229
- }
3226
+ const au = [...ns].reverse(), lu = ns.length;
3230
3227
  function cu(t) {
3231
- let e = lu(t), n = Js(), s = !0;
3228
+ return (e) => Promise.all(e.map(({ animation: n, options: s }) => ru(t, n, s)));
3229
+ }
3230
+ function uu(t) {
3231
+ let e = cu(t), n = Js(), s = !0;
3232
3232
  const i = (l) => (u, c) => {
3233
3233
  const f = It(t, c, l === "exit" ? t.presenceContext?.custom : void 0);
3234
3234
  if (f) {
@@ -3241,10 +3241,10 @@ function cu(t) {
3241
3241
  e = l(t);
3242
3242
  }
3243
3243
  function r(l) {
3244
- const { props: u } = t, c = co(t.parent) || {}, f = [], m = /* @__PURE__ */ new Set();
3244
+ const { props: u } = t, c = uo(t.parent) || {}, f = [], m = /* @__PURE__ */ new Set();
3245
3245
  let v = {}, w = 1 / 0;
3246
- for (let P = 0; P < au; P++) {
3247
- const h = ou[P], y = n[h], d = u[h] !== void 0 ? u[h] : c[h], p = ee(d), g = h === l ? y.isActive : null;
3246
+ for (let P = 0; P < lu; P++) {
3247
+ const h = au[P], y = n[h], d = u[h] !== void 0 ? u[h] : c[h], p = ee(d), g = h === l ? y.isActive : null;
3248
3248
  g === !1 && (w = P);
3249
3249
  let x = d === c[h] && d !== u[h] && p;
3250
3250
  if (x && s && t.manuallyAnimateOnMount && (x = !1), y.protectedKeys = { ...v }, // If it isn't active and hasn't *just* been set as inactive
@@ -3252,7 +3252,7 @@ function cu(t) {
3252
3252
  !d && !y.prevProp || // Or if the prop doesn't define an animation
3253
3253
  Ie(d) || typeof d == "boolean")
3254
3254
  continue;
3255
- const T = uu(y.prevProp, d);
3255
+ const T = du(y.prevProp, d);
3256
3256
  let b = T || // If we're making this variant active, we want to always make it active
3257
3257
  h === l && y.isActive && !x && p || // If we removed a higher-priority variant (i is in reverse order)
3258
3258
  P > w && p, V = !1;
@@ -3272,7 +3272,7 @@ function cu(t) {
3272
3272
  if (v.hasOwnProperty(R))
3273
3273
  continue;
3274
3274
  let lt = !1;
3275
- wn(A) && wn(tt) ? lt = !lo(A, tt) : lt = A !== tt, lt ? A != null ? q(R) : m.add(R) : A !== void 0 && m.has(R) ? q(R) : y.protectedKeys[R] = !0;
3275
+ wn(A) && wn(tt) ? lt = !co(A, tt) : lt = A !== tt, lt ? A != null ? q(R) : m.add(R) : A !== void 0 && m.has(R) ? q(R) : y.protectedKeys[R] = !0;
3276
3276
  }
3277
3277
  y.prevProp = d, y.prevResolvedValues = L, y.isActive && (v = { ...v, ...L }), s && t.blockInitialAnimation && (b = !1);
3278
3278
  const Z = x && T;
@@ -3282,7 +3282,7 @@ function cu(t) {
3282
3282
  const { parent: tt } = t, lt = It(tt, R);
3283
3283
  if (tt.enteringChildren && lt) {
3284
3284
  const { delayChildren: le } = lt.transition || {};
3285
- A.delay = ao(tt.enteringChildren, t, le);
3285
+ A.delay = lo(tt.enteringChildren, t, le);
3286
3286
  }
3287
3287
  }
3288
3288
  return {
@@ -3324,8 +3324,8 @@ function cu(t) {
3324
3324
  }
3325
3325
  };
3326
3326
  }
3327
- function uu(t, e) {
3328
- return typeof e == "string" ? e !== t : Array.isArray(e) ? !lo(e, t) : !1;
3327
+ function du(t, e) {
3328
+ return typeof e == "string" ? e !== t : Array.isArray(e) ? !co(e, t) : !1;
3329
3329
  }
3330
3330
  function xt(t = !1) {
3331
3331
  return {
@@ -3353,14 +3353,14 @@ class vt {
3353
3353
  update() {
3354
3354
  }
3355
3355
  }
3356
- class du extends vt {
3356
+ class hu extends vt {
3357
3357
  /**
3358
3358
  * We dynamically generate the AnimationState manager as it contains a reference
3359
3359
  * to the underlying animation library. We only want to load that if we load this,
3360
3360
  * so people can optionally code split it out using the `m` component.
3361
3361
  */
3362
3362
  constructor(e) {
3363
- super(e), e.animationState || (e.animationState = cu(e));
3363
+ super(e), e.animationState || (e.animationState = uu(e));
3364
3364
  }
3365
3365
  updateAnimationControlsSubscription() {
3366
3366
  const { animate: e } = this.node.getProps();
@@ -3380,10 +3380,10 @@ class du extends vt {
3380
3380
  this.node.animationState.reset(), this.unmountControls?.();
3381
3381
  }
3382
3382
  }
3383
- let hu = 0;
3384
- class fu extends vt {
3383
+ let fu = 0;
3384
+ class pu extends vt {
3385
3385
  constructor() {
3386
- super(...arguments), this.id = hu++;
3386
+ super(...arguments), this.id = fu++;
3387
3387
  }
3388
3388
  update() {
3389
3389
  if (!this.node.presenceContext)
@@ -3403,12 +3403,12 @@ class fu extends vt {
3403
3403
  unmount() {
3404
3404
  }
3405
3405
  }
3406
- const pu = {
3406
+ const mu = {
3407
3407
  animation: {
3408
- Feature: du
3408
+ Feature: hu
3409
3409
  },
3410
3410
  exit: {
3411
- Feature: fu
3411
+ Feature: pu
3412
3412
  }
3413
3413
  };
3414
3414
  function se(t, e, n, s = { passive: !0 }) {
@@ -3422,19 +3422,19 @@ function ae(t) {
3422
3422
  }
3423
3423
  };
3424
3424
  }
3425
- const mu = (t) => (e) => ts(e) && t(e, ae(e));
3425
+ const gu = (t) => (e) => ts(e) && t(e, ae(e));
3426
3426
  function Yt(t, e, n, s) {
3427
- return se(t, e, mu(n), s);
3427
+ return se(t, e, gu(n), s);
3428
3428
  }
3429
- const uo = 1e-4, gu = 1 - uo, yu = 1 + uo, ho = 0.01, bu = 0 - ho, vu = 0 + ho;
3429
+ const ho = 1e-4, yu = 1 - ho, bu = 1 + ho, fo = 0.01, vu = 0 - fo, xu = 0 + fo;
3430
3430
  function X(t) {
3431
3431
  return t.max - t.min;
3432
3432
  }
3433
- function xu(t, e, n) {
3433
+ function wu(t, e, n) {
3434
3434
  return Math.abs(t - e) <= n;
3435
3435
  }
3436
3436
  function Qs(t, e, n, s = 0.5) {
3437
- t.origin = s, t.originPoint = _(e.min, e.max, t.origin), t.scale = X(n) / X(e), t.translate = _(n.min, n.max, t.origin) - t.originPoint, (t.scale >= gu && t.scale <= yu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= bu && t.translate <= vu || isNaN(t.translate)) && (t.translate = 0);
3437
+ t.origin = s, t.originPoint = _(e.min, e.max, t.origin), t.scale = X(n) / X(e), t.translate = _(n.min, n.max, t.origin) - t.originPoint, (t.scale >= yu && t.scale <= bu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= vu && t.translate <= xu || isNaN(t.translate)) && (t.translate = 0);
3438
3438
  }
3439
3439
  function qt(t, e, n, s) {
3440
3440
  Qs(t.x, e.x, n.x, s ? s.originX : void 0), Qs(t.y, e.y, n.y, s ? s.originY : void 0);
@@ -3442,7 +3442,7 @@ function qt(t, e, n, s) {
3442
3442
  function ti(t, e, n) {
3443
3443
  t.min = n.min + e.min, t.max = t.min + X(e);
3444
3444
  }
3445
- function wu(t, e, n) {
3445
+ function Tu(t, e, n) {
3446
3446
  ti(t.x, e.x, n.x), ti(t.y, e.y, n.y);
3447
3447
  }
3448
3448
  function ei(t, e, n) {
@@ -3454,17 +3454,17 @@ function Zt(t, e, n) {
3454
3454
  function nt(t) {
3455
3455
  return [t("x"), t("y")];
3456
3456
  }
3457
- const fo = ({ current: t }) => t ? t.ownerDocument.defaultView : null, ni = (t, e) => Math.abs(t - e);
3458
- function Tu(t, e) {
3457
+ const po = ({ current: t }) => t ? t.ownerDocument.defaultView : null, ni = (t, e) => Math.abs(t - e);
3458
+ function Cu(t, e) {
3459
3459
  const n = ni(t.x, e.x), s = ni(t.y, e.y);
3460
3460
  return Math.sqrt(n ** 2 + s ** 2);
3461
3461
  }
3462
- class po {
3462
+ class mo {
3463
3463
  constructor(e, n, { transformPagePoint: s, contextWindow: i = window, dragSnapToOrigin: o = !1, distanceThreshold: r = 3 } = {}) {
3464
3464
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
3465
3465
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
3466
3466
  return;
3467
- const m = Ye(this.lastMoveEventInfo, this.history), v = this.startEvent !== null, w = Tu(m.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
3467
+ const m = Ye(this.lastMoveEventInfo, this.history), v = this.startEvent !== null, w = Cu(m.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
3468
3468
  if (!v && !w)
3469
3469
  return;
3470
3470
  const { point: C } = m, { timestamp: P } = $;
@@ -3504,22 +3504,22 @@ function si(t, e) {
3504
3504
  function Ye({ point: t }, e) {
3505
3505
  return {
3506
3506
  point: t,
3507
- delta: si(t, mo(e)),
3508
- offset: si(t, Cu(e)),
3509
- velocity: Pu(e, 0.1)
3507
+ delta: si(t, go(e)),
3508
+ offset: si(t, Pu(e)),
3509
+ velocity: Su(e, 0.1)
3510
3510
  };
3511
3511
  }
3512
- function Cu(t) {
3512
+ function Pu(t) {
3513
3513
  return t[0];
3514
3514
  }
3515
- function mo(t) {
3515
+ function go(t) {
3516
3516
  return t[t.length - 1];
3517
3517
  }
3518
- function Pu(t, e) {
3518
+ function Su(t, e) {
3519
3519
  if (t.length < 2)
3520
3520
  return { x: 0, y: 0 };
3521
3521
  let n = t.length - 1, s = null;
3522
- const i = mo(t);
3522
+ const i = go(t);
3523
3523
  for (; n >= 0 && (s = t[n], !(i.timestamp - s.timestamp > /* @__PURE__ */ rt(e))); )
3524
3524
  n--;
3525
3525
  if (!s)
@@ -3533,7 +3533,7 @@ function Pu(t, e) {
3533
3533
  };
3534
3534
  return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
3535
3535
  }
3536
- function Su(t, { min: e, max: n }, s) {
3536
+ function ku(t, { min: e, max: n }, s) {
3537
3537
  return e !== void 0 && t < e ? t = s ? _(e, t, s.min) : Math.max(t, e) : n !== void 0 && t > n && (t = s ? _(n, t, s.max) : Math.min(t, n)), t;
3538
3538
  }
3539
3539
  function ii(t, e, n) {
@@ -3542,7 +3542,7 @@ function ii(t, e, n) {
3542
3542
  max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
3543
3543
  };
3544
3544
  }
3545
- function ku(t, { top: e, left: n, bottom: s, right: i }) {
3545
+ function Au(t, { top: e, left: n, bottom: s, right: i }) {
3546
3546
  return {
3547
3547
  x: ii(t.x, n, i),
3548
3548
  y: ii(t.y, e, s)
@@ -3552,23 +3552,23 @@ function ri(t, e) {
3552
3552
  let n = e.min - t.min, s = e.max - t.max;
3553
3553
  return e.max - e.min < t.max - t.min && ([n, s] = [s, n]), { min: n, max: s };
3554
3554
  }
3555
- function Au(t, e) {
3555
+ function Mu(t, e) {
3556
3556
  return {
3557
3557
  x: ri(t.x, e.x),
3558
3558
  y: ri(t.y, e.y)
3559
3559
  };
3560
3560
  }
3561
- function Mu(t, e) {
3561
+ function Vu(t, e) {
3562
3562
  let n = 0.5;
3563
3563
  const s = X(t), i = X(e);
3564
3564
  return i > s ? n = /* @__PURE__ */ Jt(e.min, e.max - s, t.min) : s > i && (n = /* @__PURE__ */ Jt(t.min, t.max - i, e.min)), dt(0, 1, n);
3565
3565
  }
3566
- function Vu(t, e) {
3566
+ function Eu(t, e) {
3567
3567
  const n = {};
3568
3568
  return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
3569
3569
  }
3570
3570
  const Pn = 0.35;
3571
- function Eu(t = Pn) {
3571
+ function Du(t = Pn) {
3572
3572
  return t === !1 ? t = 0 : t === !0 && (t = Pn), {
3573
3573
  x: oi(t, "left", "right"),
3574
3574
  y: oi(t, "top", "bottom")
@@ -3583,8 +3583,8 @@ function oi(t, e, n) {
3583
3583
  function ai(t, e) {
3584
3584
  return typeof t == "number" ? t : t[e] || 0;
3585
3585
  }
3586
- const Du = /* @__PURE__ */ new WeakMap();
3587
- class Ru {
3586
+ const Ru = /* @__PURE__ */ new WeakMap();
3587
+ class Lu {
3588
3588
  constructor(e) {
3589
3589
  this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = O(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
3590
3590
  }
@@ -3597,7 +3597,7 @@ class Ru {
3597
3597
  m ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(ae(f).point);
3598
3598
  }, r = (f, m) => {
3599
3599
  const { drag: v, dragPropagation: w, onDragStart: C } = this.getProps();
3600
- if (v && !w && (this.openDragLock && this.openDragLock(), this.openDragLock = Fl(v), !this.openDragLock))
3600
+ if (v && !w && (this.openDragLock && this.openDragLock(), this.openDragLock = jl(v), !this.openDragLock))
3601
3601
  return;
3602
3602
  this.latestPointerEvent = f, this.latestPanInfo = m, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), nt((h) => {
3603
3603
  let y = this.getAxisMotionValue(h).get() || 0;
@@ -3619,14 +3619,14 @@ class Ru {
3619
3619
  return;
3620
3620
  const { offset: h } = m;
3621
3621
  if (w && this.currentDirection === null) {
3622
- this.currentDirection = Lu(h), this.currentDirection !== null && C && C(this.currentDirection);
3622
+ this.currentDirection = Ku(h), this.currentDirection !== null && C && C(this.currentDirection);
3623
3623
  return;
3624
3624
  }
3625
3625
  this.updateAxis("x", m.point, h), this.updateAxis("y", m.point, h), this.visualElement.render(), P && P(f, m);
3626
3626
  }, l = (f, m) => {
3627
3627
  this.latestPointerEvent = f, this.latestPanInfo = m, this.stop(f, m), this.latestPointerEvent = null, this.latestPanInfo = null;
3628
3628
  }, u = () => nt((f) => this.getAnimationState(f) === "paused" && this.getAxisMotionValue(f).animation?.play()), { dragSnapToOrigin: c } = this.getProps();
3629
- this.panSession = new po(e, {
3629
+ this.panSession = new mo(e, {
3630
3630
  onSessionStart: o,
3631
3631
  onStart: r,
3632
3632
  onMove: a,
@@ -3636,7 +3636,7 @@ class Ru {
3636
3636
  transformPagePoint: this.visualElement.getTransformPagePoint(),
3637
3637
  dragSnapToOrigin: c,
3638
3638
  distanceThreshold: s,
3639
- contextWindow: fo(this.visualElement)
3639
+ contextWindow: po(this.visualElement)
3640
3640
  });
3641
3641
  }
3642
3642
  /**
@@ -3667,12 +3667,12 @@ class Ru {
3667
3667
  return;
3668
3668
  const o = this.getAxisMotionValue(e);
3669
3669
  let r = this.originPoint[e] + s[e];
3670
- this.constraints && this.constraints[e] && (r = Su(r, this.constraints[e], this.elastic[e])), o.set(r);
3670
+ this.constraints && this.constraints[e] && (r = ku(r, this.constraints[e], this.elastic[e])), o.set(r);
3671
3671
  }
3672
3672
  resolveConstraints() {
3673
3673
  const { dragConstraints: e, dragElastic: n } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, i = this.constraints;
3674
- e && Dt(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && s ? this.constraints = ku(s.layoutBox, e) : this.constraints = !1, this.elastic = Eu(n), i !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && nt((o) => {
3675
- this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = Vu(s.layoutBox[o], this.constraints[o]));
3674
+ e && Dt(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && s ? this.constraints = Au(s.layoutBox, e) : this.constraints = !1, this.elastic = Du(n), i !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && nt((o) => {
3675
+ this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = Eu(s.layoutBox[o], this.constraints[o]));
3676
3676
  });
3677
3677
  }
3678
3678
  resolveRefConstraints() {
@@ -3684,11 +3684,11 @@ class Ru {
3684
3684
  const { projection: i } = this.visualElement;
3685
3685
  if (!i || !i.layout)
3686
3686
  return !1;
3687
- const o = Kc(s, i.root, this.visualElement.getTransformPagePoint());
3688
- let r = Au(i.layout.layoutBox, o);
3687
+ const o = Ic(s, i.root, this.visualElement.getTransformPagePoint());
3688
+ let r = Mu(i.layout.layoutBox, o);
3689
3689
  if (n) {
3690
- const a = n(Dc(r));
3691
- this.hasMutatedConstraints = !!a, a && (r = Zr(a));
3690
+ const a = n(Rc(r));
3691
+ this.hasMutatedConstraints = !!a, a && (r = Jr(a));
3692
3692
  }
3693
3693
  return r;
3694
3694
  }
@@ -3765,7 +3765,7 @@ class Ru {
3765
3765
  const a = this.getAxisMotionValue(r);
3766
3766
  if (a && this.constraints !== !1) {
3767
3767
  const l = a.get();
3768
- i[r] = Mu({ min: l, max: l }, this.constraints[r]);
3768
+ i[r] = Vu({ min: l, max: l }, this.constraints[r]);
3769
3769
  }
3770
3770
  });
3771
3771
  const { transformTemplate: o } = this.visualElement.getProps();
@@ -3779,7 +3779,7 @@ class Ru {
3779
3779
  addListeners() {
3780
3780
  if (!this.visualElement.current)
3781
3781
  return;
3782
- Du.set(this.visualElement, this);
3782
+ Ru.set(this.visualElement, this);
3783
3783
  const e = this.visualElement.current, n = Yt(e, "pointerdown", (l) => {
3784
3784
  const { drag: u, dragListener: c = !0 } = this.getProps();
3785
3785
  u && c && this.start(l);
@@ -3814,13 +3814,13 @@ class Ru {
3814
3814
  function be(t, e, n) {
3815
3815
  return (e === !0 || e === t) && (n === null || n === t);
3816
3816
  }
3817
- function Lu(t, e = 10) {
3817
+ function Ku(t, e = 10) {
3818
3818
  let n = null;
3819
3819
  return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
3820
3820
  }
3821
- class Ku extends vt {
3821
+ class Iu extends vt {
3822
3822
  constructor(e) {
3823
- super(e), this.removeGroupControls = st, this.removeListeners = st, this.controls = new Ru(e);
3823
+ super(e), this.removeGroupControls = st, this.removeListeners = st, this.controls = new Lu(e);
3824
3824
  }
3825
3825
  mount() {
3826
3826
  const { dragControls: e } = this.node.getProps();
@@ -3833,14 +3833,14 @@ class Ku extends vt {
3833
3833
  const li = (t) => (e, n) => {
3834
3834
  t && K.postRender(() => t(e, n));
3835
3835
  };
3836
- class Iu extends vt {
3836
+ class _u extends vt {
3837
3837
  constructor() {
3838
3838
  super(...arguments), this.removePointerDownListener = st;
3839
3839
  }
3840
3840
  onPointerDown(e) {
3841
- this.session = new po(e, this.createPanHandlers(), {
3841
+ this.session = new mo(e, this.createPanHandlers(), {
3842
3842
  transformPagePoint: this.node.getTransformPagePoint(),
3843
- contextWindow: fo(this.node)
3843
+ contextWindow: po(this.node)
3844
3844
  });
3845
3845
  }
3846
3846
  createPanHandlers() {
@@ -3891,7 +3891,7 @@ const Gt = {
3891
3891
  const n = ci(t, e.target.x), s = ci(t, e.target.y);
3892
3892
  return `${n}% ${s}%`;
3893
3893
  }
3894
- }, _u = {
3894
+ }, Bu = {
3895
3895
  correct: (t, { treeScale: e, projectionDelta: n }) => {
3896
3896
  const s = t, i = bt.parse(t);
3897
3897
  if (i.length > 5)
@@ -3903,7 +3903,7 @@ const Gt = {
3903
3903
  }
3904
3904
  };
3905
3905
  let qe = !1;
3906
- class Bu extends jo {
3906
+ class Ou extends No {
3907
3907
  /**
3908
3908
  * This only mounts projection nodes for components that
3909
3909
  * need measuring, we might want to do it for all components
@@ -3911,7 +3911,7 @@ class Bu extends jo {
3911
3911
  */
3912
3912
  componentDidMount() {
3913
3913
  const { visualElement: e, layoutGroup: n, switchLayoutGroup: s, layoutId: i } = this.props, { projection: o } = e;
3914
- rc(Ou), o && (n.group && n.group.add(o), s && s.register && i && s.register(o), qe && o.root.didUpdate(), o.addEventListener("animationComplete", () => {
3914
+ oc(Fu), o && (n.group && n.group.add(o), s && s.register && i && s.register(o), qe && o.root.didUpdate(), o.addEventListener("animationComplete", () => {
3915
3915
  this.safeToRemove();
3916
3916
  }), o.setOptions({
3917
3917
  ...o.options,
@@ -3943,11 +3943,11 @@ class Bu extends jo {
3943
3943
  return null;
3944
3944
  }
3945
3945
  }
3946
- function go(t) {
3947
- const [e, n] = Br(), s = G(Dn);
3948
- return Q(Bu, { ...t, layoutGroup: s, switchLayoutGroup: G(Yr), isPresent: e, safeToRemove: n });
3946
+ function yo(t) {
3947
+ const [e, n] = Or(), s = G(Dn);
3948
+ return Q(Ou, { ...t, layoutGroup: s, switchLayoutGroup: G(qr), isPresent: e, safeToRemove: n });
3949
3949
  }
3950
- const Ou = {
3950
+ const Fu = {
3951
3951
  borderRadius: {
3952
3952
  ...Gt,
3953
3953
  applyTo: [
@@ -3961,14 +3961,14 @@ const Ou = {
3961
3961
  borderTopRightRadius: Gt,
3962
3962
  borderBottomLeftRadius: Gt,
3963
3963
  borderBottomRightRadius: Gt,
3964
- boxShadow: _u
3964
+ boxShadow: Bu
3965
3965
  };
3966
- function Fu(t, e, n) {
3966
+ function ju(t, e, n) {
3967
3967
  const s = W(t) ? t : _t(t);
3968
3968
  return s.start(us("", s, e, n)), s.animation;
3969
3969
  }
3970
- const ju = (t, e) => t.depth - e.depth;
3971
- class Nu {
3970
+ const Nu = (t, e) => t.depth - e.depth;
3971
+ class Uu {
3972
3972
  constructor() {
3973
3973
  this.children = [], this.isDirty = !1;
3974
3974
  }
@@ -3979,21 +3979,21 @@ class Nu {
3979
3979
  In(this.children, e), this.isDirty = !0;
3980
3980
  }
3981
3981
  forEach(e) {
3982
- this.isDirty && this.children.sort(ju), this.isDirty = !1, this.children.forEach(e);
3982
+ this.isDirty && this.children.sort(Nu), this.isDirty = !1, this.children.forEach(e);
3983
3983
  }
3984
3984
  }
3985
- function Uu(t, e) {
3985
+ function zu(t, e) {
3986
3986
  const n = Y.now(), s = ({ timestamp: i }) => {
3987
3987
  const o = i - n;
3988
3988
  o >= e && (yt(s), t(o - e));
3989
3989
  };
3990
3990
  return K.setup(s, !0), () => yt(s);
3991
3991
  }
3992
- const yo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], zu = yo.length, ui = (t) => typeof t == "string" ? parseFloat(t) : t, di = (t) => typeof t == "number" || M.test(t);
3993
- function $u(t, e, n, s, i, o) {
3994
- i ? (t.opacity = _(0, n.opacity ?? 1, Gu(s)), t.opacityExit = _(e.opacity ?? 1, 0, Wu(s))) : o && (t.opacity = _(e.opacity ?? 1, n.opacity ?? 1, s));
3995
- for (let r = 0; r < zu; r++) {
3996
- const a = `border${yo[r]}Radius`;
3992
+ const bo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], $u = bo.length, ui = (t) => typeof t == "string" ? parseFloat(t) : t, di = (t) => typeof t == "number" || M.test(t);
3993
+ function Gu(t, e, n, s, i, o) {
3994
+ i ? (t.opacity = _(0, n.opacity ?? 1, Wu(s)), t.opacityExit = _(e.opacity ?? 1, 0, Hu(s))) : o && (t.opacity = _(e.opacity ?? 1, n.opacity ?? 1, s));
3995
+ for (let r = 0; r < $u; r++) {
3996
+ const a = `border${bo[r]}Radius`;
3997
3997
  let l = hi(e, a), u = hi(n, a);
3998
3998
  if (l === void 0 && u === void 0)
3999
3999
  continue;
@@ -4004,8 +4004,8 @@ function $u(t, e, n, s, i, o) {
4004
4004
  function hi(t, e) {
4005
4005
  return t[e] !== void 0 ? t[e] : t.borderRadius;
4006
4006
  }
4007
- const Gu = /* @__PURE__ */ bo(0, 0.5, sr), Wu = /* @__PURE__ */ bo(0.5, 0.95, st);
4008
- function bo(t, e, n) {
4007
+ const Wu = /* @__PURE__ */ vo(0, 0.5, ir), Hu = /* @__PURE__ */ vo(0.5, 0.95, st);
4008
+ function vo(t, e, n) {
4009
4009
  return (s) => s < t ? 0 : s > e ? 1 : n(/* @__PURE__ */ Jt(t, e, s));
4010
4010
  }
4011
4011
  function fi(t, e) {
@@ -4020,35 +4020,35 @@ function pi(t, e) {
4020
4020
  function mi(t, e, n, s, i) {
4021
4021
  return t -= e, t = De(t, 1 / n, s), i !== void 0 && (t = De(t, 1 / i, s)), t;
4022
4022
  }
4023
- function Hu(t, e = 0, n = 1, s = 0.5, i, o = t, r = t) {
4023
+ function Xu(t, e = 0, n = 1, s = 0.5, i, o = t, r = t) {
4024
4024
  if (at.test(e) && (e = parseFloat(e), e = _(r.min, r.max, e / 100) - r.min), typeof e != "number")
4025
4025
  return;
4026
4026
  let a = _(o.min, o.max, s);
4027
4027
  t === o && (a -= e), t.min = mi(t.min, e, n, a, i), t.max = mi(t.max, e, n, a, i);
4028
4028
  }
4029
4029
  function gi(t, e, [n, s, i], o, r) {
4030
- Hu(t, e[n], e[s], e[i], e.scale, o, r);
4030
+ Xu(t, e[n], e[s], e[i], e.scale, o, r);
4031
4031
  }
4032
- const Xu = ["x", "scaleX", "originX"], Yu = ["y", "scaleY", "originY"];
4032
+ const Yu = ["x", "scaleX", "originX"], qu = ["y", "scaleY", "originY"];
4033
4033
  function yi(t, e, n, s) {
4034
- gi(t.x, e, Xu, n ? n.x : void 0, s ? s.x : void 0), gi(t.y, e, Yu, n ? n.y : void 0, s ? s.y : void 0);
4034
+ gi(t.x, e, Yu, n ? n.x : void 0, s ? s.x : void 0), gi(t.y, e, qu, n ? n.y : void 0, s ? s.y : void 0);
4035
4035
  }
4036
4036
  function bi(t) {
4037
4037
  return t.translate === 0 && t.scale === 1;
4038
4038
  }
4039
- function vo(t) {
4039
+ function xo(t) {
4040
4040
  return bi(t.x) && bi(t.y);
4041
4041
  }
4042
4042
  function vi(t, e) {
4043
4043
  return t.min === e.min && t.max === e.max;
4044
4044
  }
4045
- function qu(t, e) {
4045
+ function Zu(t, e) {
4046
4046
  return vi(t.x, e.x) && vi(t.y, e.y);
4047
4047
  }
4048
4048
  function xi(t, e) {
4049
4049
  return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
4050
4050
  }
4051
- function xo(t, e) {
4051
+ function wo(t, e) {
4052
4052
  return xi(t.x, e.x) && xi(t.y, e.y);
4053
4053
  }
4054
4054
  function wi(t) {
@@ -4057,7 +4057,7 @@ function wi(t) {
4057
4057
  function Ti(t, e) {
4058
4058
  return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
4059
4059
  }
4060
- class Zu {
4060
+ class Ju {
4061
4061
  constructor() {
4062
4062
  this.members = [];
4063
4063
  }
@@ -4111,7 +4111,7 @@ class Zu {
4111
4111
  this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
4112
4112
  }
4113
4113
  }
4114
- function Ju(t, e, n) {
4114
+ function Qu(t, e, n) {
4115
4115
  let s = "";
4116
4116
  const i = t.x.translate / e.x, o = t.y.translate / e.y, r = n?.z || 0;
4117
4117
  if ((i || o || r) && (s = `translate3d(${i}px, ${o}px, ${r}px) `), (e.x !== 1 || e.y !== 1) && (s += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
@@ -4121,37 +4121,37 @@ function Ju(t, e, n) {
4121
4121
  const a = t.x.scale * e.x, l = t.y.scale * e.y;
4122
4122
  return (a !== 1 || l !== 1) && (s += `scale(${a}, ${l})`), s || "none";
4123
4123
  }
4124
- const Ze = ["", "X", "Y", "Z"], Qu = 1e3;
4125
- let td = 0;
4124
+ const Ze = ["", "X", "Y", "Z"], td = 1e3;
4125
+ let ed = 0;
4126
4126
  function Je(t, e, n, s) {
4127
4127
  const { latestValues: i } = e;
4128
4128
  i[t] && (n[t] = i[t], e.setStaticValue(t, 0), s && (s[t] = 0));
4129
4129
  }
4130
- function wo(t) {
4130
+ function To(t) {
4131
4131
  if (t.hasCheckedOptimisedAppear = !0, t.root === t)
4132
4132
  return;
4133
4133
  const { visualElement: e } = t.options;
4134
4134
  if (!e)
4135
4135
  return;
4136
- const n = ro(e);
4136
+ const n = oo(e);
4137
4137
  if (window.MotionHasOptimisedAnimation(n, "transform")) {
4138
4138
  const { layout: i, layoutId: o } = t.options;
4139
4139
  window.MotionCancelOptimisedAnimation(n, "transform", K, !(i || o));
4140
4140
  }
4141
4141
  const { parent: s } = t;
4142
- s && !s.hasCheckedOptimisedAppear && wo(s);
4142
+ s && !s.hasCheckedOptimisedAppear && To(s);
4143
4143
  }
4144
- function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: s, resetTransform: i }) {
4144
+ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: s, resetTransform: i }) {
4145
4145
  return class {
4146
4146
  constructor(r = {}, a = e?.()) {
4147
- this.id = td++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
4147
+ this.id = ed++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
4148
4148
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
4149
4149
  }, this.updateProjection = () => {
4150
- this.projectionUpdateScheduled = !1, this.nodes.forEach(sd), this.nodes.forEach(ad), this.nodes.forEach(ld), this.nodes.forEach(id);
4150
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(id), this.nodes.forEach(ld), this.nodes.forEach(cd), this.nodes.forEach(rd);
4151
4151
  }, 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;
4152
4152
  for (let l = 0; l < this.path.length; l++)
4153
4153
  this.path[l].shouldResetTransform = !0;
4154
- this.root === this && (this.nodes = new Nu());
4154
+ this.root === this && (this.nodes = new Uu());
4155
4155
  }
4156
4156
  addEventListener(r, a) {
4157
4157
  return this.eventHandlers.has(r) || this.eventHandlers.set(r, new Bn()), this.eventHandlers.get(r).add(a);
@@ -4169,7 +4169,7 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4169
4169
  mount(r) {
4170
4170
  if (this.instance)
4171
4171
  return;
4172
- this.isSVG = _r(r) && !Gl(r), this.instance = r;
4172
+ this.isSVG = Br(r) && !Wl(r), this.instance = r;
4173
4173
  const { layoutId: a, layout: l, visualElement: u } = this.options;
4174
4174
  if (u && !u.current && u.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || a) && (this.isLayoutDirty = !0), t) {
4175
4175
  let c, f = 0;
@@ -4178,7 +4178,7 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4178
4178
  f = window.innerWidth;
4179
4179
  }), t(r, () => {
4180
4180
  const v = window.innerWidth;
4181
- v !== f && (f = v, this.root.updateBlockedByResize = !0, c && c(), c = Uu(m, 250), Pe.hasAnimatedSinceResize && (Pe.hasAnimatedSinceResize = !1, this.nodes.forEach(Si)));
4181
+ v !== f && (f = v, this.root.updateBlockedByResize = !0, c && c(), c = zu(m, 250), Pe.hasAnimatedSinceResize && (Pe.hasAnimatedSinceResize = !1, this.nodes.forEach(Si)));
4182
4182
  });
4183
4183
  }
4184
4184
  a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && u && (a || l) && this.addEventListener("didUpdate", ({ delta: c, hasLayoutChanged: f, hasRelativeLayoutChanged: m, layout: v }) => {
@@ -4186,7 +4186,7 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4186
4186
  this.target = void 0, this.relativeTarget = void 0;
4187
4187
  return;
4188
4188
  }
4189
- const w = this.options.transition || u.getDefaultTransition() || fd, { onLayoutAnimationStart: C, onLayoutAnimationComplete: P } = u.getProps(), h = !this.targetLayout || !xo(this.targetLayout, v), y = !f && m;
4189
+ const w = this.options.transition || u.getDefaultTransition() || pd, { onLayoutAnimationStart: C, onLayoutAnimationComplete: P } = u.getProps(), h = !this.targetLayout || !wo(this.targetLayout, v), y = !f && m;
4190
4190
  if (this.options.layoutRoot || this.resumeFrom || y || f && (h || !this.currentAnimation)) {
4191
4191
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
4192
4192
  const d = {
@@ -4220,7 +4220,7 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4220
4220
  }
4221
4221
  // Note: currently only running on root node
4222
4222
  startUpdate() {
4223
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(cd), this.animationId++);
4223
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(ud), this.animationId++);
4224
4224
  }
4225
4225
  getTransformTemplate() {
4226
4226
  const { visualElement: r } = this.options;
@@ -4231,7 +4231,7 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4231
4231
  this.options.onExitComplete && this.options.onExitComplete();
4232
4232
  return;
4233
4233
  }
4234
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && wo(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
4234
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && To(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
4235
4235
  return;
4236
4236
  this.isLayoutDirty = !0;
4237
4237
  for (let c = 0; c < this.path.length; c++) {
@@ -4253,7 +4253,7 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4253
4253
  this.nodes.forEach(Pi);
4254
4254
  return;
4255
4255
  }
4256
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(od), this.nodes.forEach(ed), this.nodes.forEach(nd)) : this.nodes.forEach(Pi), this.clearAllSnapshots();
4256
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(ad), this.nodes.forEach(nd), this.nodes.forEach(sd)) : this.nodes.forEach(Pi), this.clearAllSnapshots();
4257
4257
  const a = Y.now();
4258
4258
  $.delta = dt(0, 1e3 / 60, a - $.timestamp), $.timestamp = a, $.isProcessing = !0, je.update.process($), je.preRender.process($), je.render.process($), $.isProcessing = !1;
4259
4259
  }
@@ -4261,7 +4261,7 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4261
4261
  this.updateScheduled || (this.updateScheduled = !0, Qn.read(this.scheduleUpdate));
4262
4262
  }
4263
4263
  clearAllSnapshots() {
4264
- this.nodes.forEach(rd), this.sharedNodes.forEach(ud);
4264
+ this.nodes.forEach(od), this.sharedNodes.forEach(dd);
4265
4265
  }
4266
4266
  scheduleUpdateProjection() {
4267
4267
  this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, K.preRender(this.updateProjection, !1, !0));
@@ -4304,13 +4304,13 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4304
4304
  resetTransform() {
4305
4305
  if (!i)
4306
4306
  return;
4307
- const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !vo(this.projectionDelta), l = this.getTransformTemplate(), u = l ? l(this.latestValues, "") : void 0, c = u !== this.prevTransformTemplateValue;
4307
+ const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !xo(this.projectionDelta), l = this.getTransformTemplate(), u = l ? l(this.latestValues, "") : void 0, c = u !== this.prevTransformTemplateValue;
4308
4308
  r && this.instance && (a || Tt(this.latestValues) || c) && (i(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
4309
4309
  }
4310
4310
  measure(r = !0) {
4311
4311
  const a = this.measurePageBox();
4312
4312
  let l = this.removeElementScroll(a);
4313
- return r && (l = this.removeTransform(l)), pd(l), {
4313
+ return r && (l = this.removeTransform(l)), md(l), {
4314
4314
  animationId: this.root.animationId,
4315
4315
  measuredBox: a,
4316
4316
  layoutBox: l,
@@ -4323,7 +4323,7 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4323
4323
  if (!r)
4324
4324
  return O();
4325
4325
  const a = r.measureViewportBox();
4326
- if (!(this.scroll?.wasRoot || this.path.some(md))) {
4326
+ if (!(this.scroll?.wasRoot || this.path.some(gd))) {
4327
4327
  const { scroll: u } = this.root;
4328
4328
  u && (Rt(a.x, u.offset.x), Rt(a.y, u.offset.y));
4329
4329
  }
@@ -4392,7 +4392,7 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4392
4392
  const m = this.getClosestProjectingParent();
4393
4393
  m && m.layout && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = O(), this.relativeTargetOrigin = O(), Zt(this.relativeTargetOrigin, this.layout.layoutBox, m.layout.layoutBox), et(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4394
4394
  }
4395
- if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = O(), this.targetWithTransforms = O()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), wu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : et(this.target, this.layout.layoutBox), Qr(this.target, this.targetDelta)) : et(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
4395
+ if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = O(), this.targetWithTransforms = O()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Tu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : et(this.target, this.layout.layoutBox), to(this.target, this.targetDelta)) : et(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
4396
4396
  this.attemptToResolveRelativeTarget = !1;
4397
4397
  const m = this.getClosestProjectingParent();
4398
4398
  m && !!m.resumingFrom == !!this.resumingFrom && !m.options.layoutScroll && m.target && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = O(), this.relativeTargetOrigin = O(), Zt(this.relativeTargetOrigin, this.target, m.target), et(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
@@ -4400,7 +4400,7 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4400
4400
  }
4401
4401
  }
4402
4402
  getClosestProjectingParent() {
4403
- if (!(!this.parent || bn(this.parent.latestValues) || Jr(this.parent.latestValues)))
4403
+ if (!(!this.parent || bn(this.parent.latestValues) || Qr(this.parent.latestValues)))
4404
4404
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
4405
4405
  }
4406
4406
  isProjecting() {
@@ -4416,7 +4416,7 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4416
4416
  return;
4417
4417
  et(this.layoutCorrected, this.layout.layoutBox);
4418
4418
  const f = this.treeScale.x, m = this.treeScale.y;
4419
- Lc(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = O());
4419
+ Kc(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = O());
4420
4420
  const { target: v } = r;
4421
4421
  if (!v) {
4422
4422
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
@@ -4443,17 +4443,17 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4443
4443
  setAnimationOrigin(r, a = !1) {
4444
4444
  const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, f = Kt();
4445
4445
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
4446
- const m = O(), v = l ? l.source : void 0, w = this.layout ? this.layout.source : void 0, C = v !== w, P = this.getStack(), h = !P || P.members.length <= 1, y = !!(C && !h && this.options.crossfade === !0 && !this.path.some(hd));
4446
+ const m = O(), v = l ? l.source : void 0, w = this.layout ? this.layout.source : void 0, C = v !== w, P = this.getStack(), h = !P || P.members.length <= 1, y = !!(C && !h && this.options.crossfade === !0 && !this.path.some(fd));
4447
4447
  this.animationProgress = 0;
4448
4448
  let d;
4449
4449
  this.mixTargetDelta = (p) => {
4450
4450
  const g = p / 1e3;
4451
- ki(f.x, r.x, g), ki(f.y, r.y, g), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Zt(m, this.layout.layoutBox, this.relativeParent.layout.layoutBox), dd(this.relativeTarget, this.relativeTargetOrigin, m, g), d && qu(this.relativeTarget, d) && (this.isProjectionDirty = !1), d || (d = O()), et(d, this.relativeTarget)), C && (this.animationValues = c, $u(c, u, this.latestValues, g, y, h)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = g;
4451
+ ki(f.x, r.x, g), ki(f.y, r.y, g), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Zt(m, this.layout.layoutBox, this.relativeParent.layout.layoutBox), hd(this.relativeTarget, this.relativeTargetOrigin, m, g), d && Zu(this.relativeTarget, d) && (this.isProjectionDirty = !1), d || (d = O()), et(d, this.relativeTarget)), C && (this.animationValues = c, Gu(c, u, this.latestValues, g, y, h)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = g;
4452
4452
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4453
4453
  }
4454
4454
  startAnimation(r) {
4455
4455
  this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (yt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = K.update(() => {
4456
- Pe.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = _t(0)), this.currentAnimation = Fu(this.motionValue, [0, 1e3], {
4456
+ Pe.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = _t(0)), this.currentAnimation = ju(this.motionValue, [0, 1e3], {
4457
4457
  ...r,
4458
4458
  velocity: 0,
4459
4459
  isSync: !0,
@@ -4474,13 +4474,13 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4474
4474
  r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
4475
4475
  }
4476
4476
  finishAnimation() {
4477
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Qu), this.currentAnimation.stop()), this.completeAnimation();
4477
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(td), this.currentAnimation.stop()), this.completeAnimation();
4478
4478
  }
4479
4479
  applyTransformsToTarget() {
4480
4480
  const r = this.getLead();
4481
4481
  let { targetWithTransforms: a, target: l, layout: u, latestValues: c } = r;
4482
4482
  if (!(!a || !l || !u)) {
4483
- if (this !== r && this.layout && u && Co(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
4483
+ if (this !== r && this.layout && u && Po(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
4484
4484
  l = this.target || O();
4485
4485
  const f = X(this.layout.layoutBox.x);
4486
4486
  l.x.min = r.target.x.min, l.x.max = l.x.min + f;
@@ -4491,7 +4491,7 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4491
4491
  }
4492
4492
  }
4493
4493
  registerSharedNode(r, a) {
4494
- this.sharedNodes.has(r) || this.sharedNodes.set(r, new Zu()), this.sharedNodes.get(r).add(a);
4494
+ this.sharedNodes.has(r) || this.sharedNodes.set(r, new Ju()), this.sharedNodes.get(r).add(a);
4495
4495
  const u = a.options.initialPromotionConfig;
4496
4496
  a.promote({
4497
4497
  transition: u ? u.transition : void 0,
@@ -4560,7 +4560,7 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4560
4560
  r.visibility = "";
4561
4561
  const c = u.animationValues || u.latestValues;
4562
4562
  this.applyTransformsToTarget();
4563
- let f = Ju(this.projectionDeltaWithTransform, this.treeScale, c);
4563
+ let f = Qu(this.projectionDeltaWithTransform, this.treeScale, c);
4564
4564
  l && (f = l(c, f)), r.transform = f;
4565
4565
  const { x: m, y: v } = this.projectionDelta;
4566
4566
  r.transformOrigin = `${m.origin * 100}% ${v.origin * 100}% 0`, u.animationValues ? r.opacity = u === this ? c.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : c.opacityExit : r.opacity = u === this ? c.opacity !== void 0 ? c.opacity : "" : c.opacityExit !== void 0 ? c.opacityExit : 0;
@@ -4586,17 +4586,17 @@ function To({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4586
4586
  }
4587
4587
  };
4588
4588
  }
4589
- function ed(t) {
4589
+ function nd(t) {
4590
4590
  t.updateLayout();
4591
4591
  }
4592
- function nd(t) {
4592
+ function sd(t) {
4593
4593
  const e = t.resumeFrom?.snapshot || t.snapshot;
4594
4594
  if (t.isLead() && t.layout && e && t.hasListeners("didUpdate")) {
4595
4595
  const { layoutBox: n, measuredBox: s } = t.layout, { animationType: i } = t.options, o = e.source !== t.layout.source;
4596
4596
  i === "size" ? nt((c) => {
4597
4597
  const f = o ? e.measuredBox[c] : e.layoutBox[c], m = X(f);
4598
4598
  f.min = n[c].min, f.max = f.min + m;
4599
- }) : Co(i, e.layoutBox, n) && nt((c) => {
4599
+ }) : Po(i, e.layoutBox, n) && nt((c) => {
4600
4600
  const f = o ? e.measuredBox[c] : e.layoutBox[c], m = X(n[c]);
4601
4601
  f.max = f.min + m, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[c].max = t.relativeTarget[c].min + m);
4602
4602
  });
@@ -4604,7 +4604,7 @@ function nd(t) {
4604
4604
  qt(r, n, e.layoutBox);
4605
4605
  const a = Kt();
4606
4606
  o ? qt(a, t.applyTransform(s, !0), e.measuredBox) : qt(a, n, e.layoutBox);
4607
- const l = !vo(r);
4607
+ const l = !xo(r);
4608
4608
  let u = !1;
4609
4609
  if (!t.resumeFrom) {
4610
4610
  const c = t.getClosestProjectingParent();
@@ -4614,7 +4614,7 @@ function nd(t) {
4614
4614
  const v = O();
4615
4615
  Zt(v, e.layoutBox, f.layoutBox);
4616
4616
  const w = O();
4617
- Zt(w, n, m.layoutBox), xo(v, w) || (u = !0), c.options.layoutRoot && (t.relativeTarget = w, t.relativeTargetOrigin = v, t.relativeParent = c);
4617
+ Zt(w, n, m.layoutBox), wo(v, w) || (u = !0), c.options.layoutRoot && (t.relativeTarget = w, t.relativeTargetOrigin = v, t.relativeParent = c);
4618
4618
  }
4619
4619
  }
4620
4620
  }
@@ -4632,13 +4632,13 @@ function nd(t) {
4632
4632
  }
4633
4633
  t.options.transition = void 0;
4634
4634
  }
4635
- function sd(t) {
4635
+ function id(t) {
4636
4636
  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));
4637
4637
  }
4638
- function id(t) {
4638
+ function rd(t) {
4639
4639
  t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
4640
4640
  }
4641
- function rd(t) {
4641
+ function od(t) {
4642
4642
  t.clearSnapshot();
4643
4643
  }
4644
4644
  function Ci(t) {
@@ -4647,23 +4647,23 @@ function Ci(t) {
4647
4647
  function Pi(t) {
4648
4648
  t.isLayoutDirty = !1;
4649
4649
  }
4650
- function od(t) {
4650
+ function ad(t) {
4651
4651
  const { visualElement: e } = t.options;
4652
4652
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
4653
4653
  }
4654
4654
  function Si(t) {
4655
4655
  t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
4656
4656
  }
4657
- function ad(t) {
4657
+ function ld(t) {
4658
4658
  t.resolveTargetDelta();
4659
4659
  }
4660
- function ld(t) {
4660
+ function cd(t) {
4661
4661
  t.calcProjection();
4662
4662
  }
4663
- function cd(t) {
4663
+ function ud(t) {
4664
4664
  t.resetSkewAndRotation();
4665
4665
  }
4666
- function ud(t) {
4666
+ function dd(t) {
4667
4667
  t.removeLeadSnapshot();
4668
4668
  }
4669
4669
  function ki(t, e, n) {
@@ -4672,29 +4672,29 @@ function ki(t, e, n) {
4672
4672
  function Ai(t, e, n, s) {
4673
4673
  t.min = _(e.min, n.min, s), t.max = _(e.max, n.max, s);
4674
4674
  }
4675
- function dd(t, e, n, s) {
4675
+ function hd(t, e, n, s) {
4676
4676
  Ai(t.x, e.x, n.x, s), Ai(t.y, e.y, n.y, s);
4677
4677
  }
4678
- function hd(t) {
4678
+ function fd(t) {
4679
4679
  return t.animationValues && t.animationValues.opacityExit !== void 0;
4680
4680
  }
4681
- const fd = {
4681
+ const pd = {
4682
4682
  duration: 0.45,
4683
4683
  ease: [0.4, 0, 0.1, 1]
4684
4684
  }, Mi = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Vi = Mi("applewebkit/") && !Mi("chrome/") ? Math.round : st;
4685
4685
  function Ei(t) {
4686
4686
  t.min = Vi(t.min), t.max = Vi(t.max);
4687
4687
  }
4688
- function pd(t) {
4688
+ function md(t) {
4689
4689
  Ei(t.x), Ei(t.y);
4690
4690
  }
4691
- function Co(t, e, n) {
4692
- return t === "position" || t === "preserve-aspect" && !xu(wi(e), wi(n), 0.2);
4691
+ function Po(t, e, n) {
4692
+ return t === "position" || t === "preserve-aspect" && !wu(wi(e), wi(n), 0.2);
4693
4693
  }
4694
- function md(t) {
4694
+ function gd(t) {
4695
4695
  return t !== t.root && t.scroll?.wasRoot;
4696
4696
  }
4697
- const gd = To({
4697
+ const yd = Co({
4698
4698
  attachResizeListener: (t, e) => se(t, "resize", e),
4699
4699
  measureScroll: () => ({
4700
4700
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
@@ -4703,14 +4703,14 @@ const gd = To({
4703
4703
  checkIsScrollRoot: () => !0
4704
4704
  }), Qe = {
4705
4705
  current: void 0
4706
- }, Po = To({
4706
+ }, So = Co({
4707
4707
  measureScroll: (t) => ({
4708
4708
  x: t.scrollLeft,
4709
4709
  y: t.scrollTop
4710
4710
  }),
4711
4711
  defaultParent: () => {
4712
4712
  if (!Qe.current) {
4713
- const t = new gd({});
4713
+ const t = new yd({});
4714
4714
  t.mount(window), t.setOptions({ layoutScroll: !0 }), Qe.current = t;
4715
4715
  }
4716
4716
  return Qe.current;
@@ -4719,14 +4719,14 @@ const gd = To({
4719
4719
  t.style.transform = e !== void 0 ? e : "none";
4720
4720
  },
4721
4721
  checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
4722
- }), yd = {
4722
+ }), bd = {
4723
4723
  pan: {
4724
- Feature: Iu
4724
+ Feature: _u
4725
4725
  },
4726
4726
  drag: {
4727
- Feature: Ku,
4728
- ProjectionNode: Po,
4729
- MeasureLayout: go
4727
+ Feature: Iu,
4728
+ ProjectionNode: So,
4729
+ MeasureLayout: yo
4730
4730
  }
4731
4731
  };
4732
4732
  function Di(t, e, n) {
@@ -4735,15 +4735,15 @@ function Di(t, e, n) {
4735
4735
  const i = "onHover" + n, o = s[i];
4736
4736
  o && K.postRender(() => o(e, ae(e)));
4737
4737
  }
4738
- class bd extends vt {
4738
+ class vd extends vt {
4739
4739
  mount() {
4740
4740
  const { current: e } = this.node;
4741
- e && (this.unmount = jl(e, (n, s) => (Di(this.node, s, "Start"), (i) => Di(this.node, i, "End"))));
4741
+ e && (this.unmount = Nl(e, (n, s) => (Di(this.node, s, "Start"), (i) => Di(this.node, i, "End"))));
4742
4742
  }
4743
4743
  unmount() {
4744
4744
  }
4745
4745
  }
4746
- class vd extends vt {
4746
+ class xd extends vt {
4747
4747
  constructor() {
4748
4748
  super(...arguments), this.isActive = !1;
4749
4749
  }
@@ -4773,37 +4773,37 @@ function Ri(t, e, n) {
4773
4773
  const i = "onTap" + (n === "End" ? "" : n), o = s[i];
4774
4774
  o && K.postRender(() => o(e, ae(e)));
4775
4775
  }
4776
- class xd extends vt {
4776
+ class wd extends vt {
4777
4777
  mount() {
4778
4778
  const { current: e } = this.node;
4779
- e && (this.unmount = $l(e, (n, s) => (Ri(this.node, s, "Start"), (i, { success: o }) => Ri(this.node, i, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
4779
+ e && (this.unmount = Gl(e, (n, s) => (Ri(this.node, s, "Start"), (i, { success: o }) => Ri(this.node, i, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
4780
4780
  }
4781
4781
  unmount() {
4782
4782
  }
4783
4783
  }
4784
- const Sn = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), wd = (t) => {
4784
+ const Sn = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), Td = (t) => {
4785
4785
  const e = Sn.get(t.target);
4786
4786
  e && e(t);
4787
- }, Td = (t) => {
4788
- t.forEach(wd);
4787
+ }, Cd = (t) => {
4788
+ t.forEach(Td);
4789
4789
  };
4790
- function Cd({ root: t, ...e }) {
4790
+ function Pd({ root: t, ...e }) {
4791
4791
  const n = t || document;
4792
4792
  tn.has(n) || tn.set(n, {});
4793
4793
  const s = tn.get(n), i = JSON.stringify(e);
4794
- return s[i] || (s[i] = new IntersectionObserver(Td, { root: t, ...e })), s[i];
4794
+ return s[i] || (s[i] = new IntersectionObserver(Cd, { root: t, ...e })), s[i];
4795
4795
  }
4796
- function Pd(t, e, n) {
4797
- const s = Cd(e);
4796
+ function Sd(t, e, n) {
4797
+ const s = Pd(e);
4798
4798
  return Sn.set(t, n), s.observe(t), () => {
4799
4799
  Sn.delete(t), s.unobserve(t);
4800
4800
  };
4801
4801
  }
4802
- const Sd = {
4802
+ const kd = {
4803
4803
  some: 0,
4804
4804
  all: 1
4805
4805
  };
4806
- class kd extends vt {
4806
+ class Ad extends vt {
4807
4807
  constructor() {
4808
4808
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
4809
4809
  }
@@ -4812,7 +4812,7 @@ class kd extends vt {
4812
4812
  const { viewport: e = {} } = this.node.getProps(), { root: n, margin: s, amount: i = "some", once: o } = e, r = {
4813
4813
  root: n ? n.current : void 0,
4814
4814
  rootMargin: s,
4815
- threshold: typeof i == "number" ? i : Sd[i]
4815
+ threshold: typeof i == "number" ? i : kd[i]
4816
4816
  }, a = (l) => {
4817
4817
  const { isIntersecting: u } = l;
4818
4818
  if (this.isInView === u || (this.isInView = u, o && !u && this.hasEnteredView))
@@ -4821,7 +4821,7 @@ class kd extends vt {
4821
4821
  const { onViewportEnter: c, onViewportLeave: f } = this.node.getProps(), m = u ? c : f;
4822
4822
  m && m(l);
4823
4823
  };
4824
- return Pd(this.node.current, r, a);
4824
+ return Sd(this.node.current, r, a);
4825
4825
  }
4826
4826
  mount() {
4827
4827
  this.startObserver();
@@ -4830,56 +4830,56 @@ class kd extends vt {
4830
4830
  if (typeof IntersectionObserver > "u")
4831
4831
  return;
4832
4832
  const { props: e, prevProps: n } = this.node;
4833
- ["amount", "margin", "root"].some(Ad(e, n)) && this.startObserver();
4833
+ ["amount", "margin", "root"].some(Md(e, n)) && this.startObserver();
4834
4834
  }
4835
4835
  unmount() {
4836
4836
  }
4837
4837
  }
4838
- function Ad({ viewport: t = {} }, { viewport: e = {} } = {}) {
4838
+ function Md({ viewport: t = {} }, { viewport: e = {} } = {}) {
4839
4839
  return (n) => t[n] !== e[n];
4840
4840
  }
4841
- const Md = {
4841
+ const Vd = {
4842
4842
  inView: {
4843
- Feature: kd
4843
+ Feature: Ad
4844
4844
  },
4845
4845
  tap: {
4846
- Feature: xd
4846
+ Feature: wd
4847
4847
  },
4848
4848
  focus: {
4849
- Feature: vd
4849
+ Feature: xd
4850
4850
  },
4851
4851
  hover: {
4852
- Feature: bd
4853
- }
4854
- }, Vd = {
4855
- layout: {
4856
- ProjectionNode: Po,
4857
- MeasureLayout: go
4852
+ Feature: vd
4858
4853
  }
4859
4854
  }, Ed = {
4860
- ...pu,
4861
- ...Md,
4862
- ...yd,
4863
- ...Vd
4864
- }, Dd = /* @__PURE__ */ Ec(Ed, zc), ds = "-", Rd = (t) => {
4865
- const e = Kd(t), {
4855
+ layout: {
4856
+ ProjectionNode: So,
4857
+ MeasureLayout: yo
4858
+ }
4859
+ }, Dd = {
4860
+ ...mu,
4861
+ ...Vd,
4862
+ ...bd,
4863
+ ...Ed
4864
+ }, Rd = /* @__PURE__ */ Dc(Dd, $c), ds = "-", Ld = (t) => {
4865
+ const e = Id(t), {
4866
4866
  conflictingClassGroups: n,
4867
4867
  conflictingClassGroupModifiers: s
4868
4868
  } = t;
4869
4869
  return {
4870
4870
  getClassGroupId: (r) => {
4871
4871
  const a = r.split(ds);
4872
- return a[0] === "" && a.length !== 1 && a.shift(), So(a, e) || Ld(r);
4872
+ return a[0] === "" && a.length !== 1 && a.shift(), ko(a, e) || Kd(r);
4873
4873
  },
4874
4874
  getConflictingClassGroupIds: (r, a) => {
4875
4875
  const l = n[r] || [];
4876
4876
  return a && s[r] ? [...l, ...s[r]] : l;
4877
4877
  }
4878
4878
  };
4879
- }, So = (t, e) => {
4879
+ }, ko = (t, e) => {
4880
4880
  if (t.length === 0)
4881
4881
  return e.classGroupId;
4882
- const n = t[0], s = e.nextPart.get(n), i = s ? So(t.slice(1), s) : void 0;
4882
+ const n = t[0], s = e.nextPart.get(n), i = s ? ko(t.slice(1), s) : void 0;
4883
4883
  if (i)
4884
4884
  return i;
4885
4885
  if (e.validators.length === 0)
@@ -4888,13 +4888,13 @@ const Md = {
4888
4888
  return e.validators.find(({
4889
4889
  validator: r
4890
4890
  }) => r(o))?.classGroupId;
4891
- }, Li = /^\[(.+)\]$/, Ld = (t) => {
4891
+ }, Li = /^\[(.+)\]$/, Kd = (t) => {
4892
4892
  if (Li.test(t)) {
4893
4893
  const e = Li.exec(t)[1], n = e?.substring(0, e.indexOf(":"));
4894
4894
  if (n)
4895
4895
  return "arbitrary.." + n;
4896
4896
  }
4897
- }, Kd = (t) => {
4897
+ }, Id = (t) => {
4898
4898
  const {
4899
4899
  theme: e,
4900
4900
  classGroups: n
@@ -4913,7 +4913,7 @@ const Md = {
4913
4913
  return;
4914
4914
  }
4915
4915
  if (typeof i == "function") {
4916
- if (Id(i)) {
4916
+ if (_d(i)) {
4917
4917
  kn(i(s), e, n, s);
4918
4918
  return;
4919
4919
  }
@@ -4935,7 +4935,7 @@ const Md = {
4935
4935
  validators: []
4936
4936
  }), n = n.nextPart.get(s);
4937
4937
  }), n;
4938
- }, Id = (t) => t.isThemeGetter, _d = (t) => {
4938
+ }, _d = (t) => t.isThemeGetter, Bd = (t) => {
4939
4939
  if (t < 1)
4940
4940
  return {
4941
4941
  get: () => {
@@ -4959,7 +4959,7 @@ const Md = {
4959
4959
  n.has(o) ? n.set(o, r) : i(o, r);
4960
4960
  }
4961
4961
  };
4962
- }, An = "!", Mn = ":", Bd = Mn.length, Od = (t) => {
4962
+ }, An = "!", Mn = ":", Od = Mn.length, Fd = (t) => {
4963
4963
  const {
4964
4964
  prefix: e,
4965
4965
  experimentalParseClassName: n
@@ -4971,7 +4971,7 @@ const Md = {
4971
4971
  let C = i[w];
4972
4972
  if (r === 0 && a === 0) {
4973
4973
  if (C === Mn) {
4974
- o.push(i.slice(l, w)), l = w + Bd;
4974
+ o.push(i.slice(l, w)), l = w + Od;
4975
4975
  continue;
4976
4976
  }
4977
4977
  if (C === "/") {
@@ -4981,7 +4981,7 @@ const Md = {
4981
4981
  }
4982
4982
  C === "[" ? r++ : C === "]" ? r-- : C === "(" ? a++ : C === ")" && a--;
4983
4983
  }
4984
- const c = o.length === 0 ? i : i.substring(l), f = Fd(c), m = f !== c, v = u && u > l ? u - l : void 0;
4984
+ const c = o.length === 0 ? i : i.substring(l), f = jd(c), m = f !== c, v = u && u > l ? u - l : void 0;
4985
4985
  return {
4986
4986
  modifiers: o,
4987
4987
  hasImportantModifier: m,
@@ -5007,7 +5007,7 @@ const Md = {
5007
5007
  });
5008
5008
  }
5009
5009
  return s;
5010
- }, Fd = (t) => t.endsWith(An) ? t.substring(0, t.length - 1) : t.startsWith(An) ? t.substring(1) : t, jd = (t) => {
5010
+ }, jd = (t) => t.endsWith(An) ? t.substring(0, t.length - 1) : t.startsWith(An) ? t.substring(1) : t, Nd = (t) => {
5011
5011
  const e = Object.fromEntries(t.orderSensitiveModifiers.map((s) => [s, !0]));
5012
5012
  return (s) => {
5013
5013
  if (s.length <= 1)
@@ -5018,18 +5018,18 @@ const Md = {
5018
5018
  r[0] === "[" || e[r] ? (i.push(...o.sort(), r), o = []) : o.push(r);
5019
5019
  }), i.push(...o.sort()), i;
5020
5020
  };
5021
- }, Nd = (t) => ({
5022
- cache: _d(t.cacheSize),
5023
- parseClassName: Od(t),
5024
- sortModifiers: jd(t),
5025
- ...Rd(t)
5026
- }), Ud = /\s+/, zd = (t, e) => {
5021
+ }, Ud = (t) => ({
5022
+ cache: Bd(t.cacheSize),
5023
+ parseClassName: Fd(t),
5024
+ sortModifiers: Nd(t),
5025
+ ...Ld(t)
5026
+ }), zd = /\s+/, $d = (t, e) => {
5027
5027
  const {
5028
5028
  parseClassName: n,
5029
5029
  getClassGroupId: s,
5030
5030
  getConflictingClassGroupIds: i,
5031
5031
  sortModifiers: o
5032
- } = e, r = [], a = t.trim().split(Ud);
5032
+ } = e, r = [], a = t.trim().split(zd);
5033
5033
  let l = "";
5034
5034
  for (let u = a.length - 1; u >= 0; u -= 1) {
5035
5035
  const c = a[u], {
@@ -5068,52 +5068,52 @@ const Md = {
5068
5068
  }
5069
5069
  return l;
5070
5070
  };
5071
- function $d() {
5071
+ function Gd() {
5072
5072
  let t = 0, e, n, s = "";
5073
5073
  for (; t < arguments.length; )
5074
- (e = arguments[t++]) && (n = ko(e)) && (s && (s += " "), s += n);
5074
+ (e = arguments[t++]) && (n = Ao(e)) && (s && (s += " "), s += n);
5075
5075
  return s;
5076
5076
  }
5077
- const ko = (t) => {
5077
+ const Ao = (t) => {
5078
5078
  if (typeof t == "string")
5079
5079
  return t;
5080
5080
  let e, n = "";
5081
5081
  for (let s = 0; s < t.length; s++)
5082
- t[s] && (e = ko(t[s])) && (n && (n += " "), n += e);
5082
+ t[s] && (e = Ao(t[s])) && (n && (n += " "), n += e);
5083
5083
  return n;
5084
5084
  };
5085
- function Gd(t, ...e) {
5085
+ function Wd(t, ...e) {
5086
5086
  let n, s, i, o = r;
5087
5087
  function r(l) {
5088
5088
  const u = e.reduce((c, f) => f(c), t());
5089
- return n = Nd(u), s = n.cache.get, i = n.cache.set, o = a, a(l);
5089
+ return n = Ud(u), s = n.cache.get, i = n.cache.set, o = a, a(l);
5090
5090
  }
5091
5091
  function a(l) {
5092
5092
  const u = s(l);
5093
5093
  if (u)
5094
5094
  return u;
5095
- const c = zd(l, n);
5095
+ const c = $d(l, n);
5096
5096
  return i(l, c), c;
5097
5097
  }
5098
5098
  return function() {
5099
- return o($d.apply(null, arguments));
5099
+ return o(Gd.apply(null, arguments));
5100
5100
  };
5101
5101
  }
5102
5102
  const j = (t) => {
5103
5103
  const e = (n) => n[t] || [];
5104
5104
  return e.isThemeGetter = !0, e;
5105
- }, Ao = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Mo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Wd = /^\d+\/\d+$/, Hd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Xd = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Yd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, qd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Mt = (t) => Wd.test(t), D = (t) => !!t && !Number.isNaN(Number(t)), mt = (t) => !!t && Number.isInteger(Number(t)), en = (t) => t.endsWith("%") && D(t.slice(0, -1)), ct = (t) => Hd.test(t), Jd = () => !0, Qd = (t) => (
5105
+ }, Mo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Vo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Hd = /^\d+\/\d+$/, Xd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yd = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, qd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Zd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Jd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Mt = (t) => Hd.test(t), D = (t) => !!t && !Number.isNaN(Number(t)), mt = (t) => !!t && Number.isInteger(Number(t)), en = (t) => t.endsWith("%") && D(t.slice(0, -1)), ct = (t) => Xd.test(t), Qd = () => !0, th = (t) => (
5106
5106
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
5107
5107
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
5108
5108
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
5109
- Xd.test(t) && !Yd.test(t)
5110
- ), Vo = () => !1, th = (t) => qd.test(t), eh = (t) => Zd.test(t), nh = (t) => !S(t) && !k(t), sh = (t) => zt(t, Ro, Vo), S = (t) => Ao.test(t), wt = (t) => zt(t, Lo, Qd), nn = (t) => zt(t, lh, D), Ii = (t) => zt(t, Eo, Vo), ih = (t) => zt(t, Do, eh), ve = (t) => zt(t, Ko, th), k = (t) => Mo.test(t), Wt = (t) => $t(t, Lo), rh = (t) => $t(t, ch), _i = (t) => $t(t, Eo), oh = (t) => $t(t, Ro), ah = (t) => $t(t, Do), xe = (t) => $t(t, Ko, !0), zt = (t, e, n) => {
5111
- const s = Ao.exec(t);
5109
+ Yd.test(t) && !qd.test(t)
5110
+ ), Eo = () => !1, eh = (t) => Zd.test(t), nh = (t) => Jd.test(t), sh = (t) => !S(t) && !k(t), ih = (t) => zt(t, Lo, Eo), S = (t) => Mo.test(t), wt = (t) => zt(t, Ko, th), nn = (t) => zt(t, ch, D), Ii = (t) => zt(t, Do, Eo), rh = (t) => zt(t, Ro, nh), ve = (t) => zt(t, Io, eh), k = (t) => Vo.test(t), Wt = (t) => $t(t, Ko), oh = (t) => $t(t, uh), _i = (t) => $t(t, Do), ah = (t) => $t(t, Lo), lh = (t) => $t(t, Ro), xe = (t) => $t(t, Io, !0), zt = (t, e, n) => {
5111
+ const s = Mo.exec(t);
5112
5112
  return s ? s[1] ? e(s[1]) : n(s[2]) : !1;
5113
5113
  }, $t = (t, e, n = !1) => {
5114
- const s = Mo.exec(t);
5114
+ const s = Vo.exec(t);
5115
5115
  return s ? s[1] ? e(s[1]) : n : !1;
5116
- }, Eo = (t) => t === "position" || t === "percentage", Do = (t) => t === "image" || t === "url", Ro = (t) => t === "length" || t === "size" || t === "bg-size", Lo = (t) => t === "length", lh = (t) => t === "number", ch = (t) => t === "family-name", Ko = (t) => t === "shadow", uh = () => {
5116
+ }, Do = (t) => t === "position" || t === "percentage", Ro = (t) => t === "image" || t === "url", Lo = (t) => t === "length" || t === "size" || t === "bg-size", Ko = (t) => t === "length", ch = (t) => t === "number", uh = (t) => t === "family-name", Io = (t) => t === "shadow", dh = () => {
5117
5117
  const t = j("color"), e = j("font"), n = j("text"), s = j("font-weight"), i = j("tracking"), o = j("leading"), r = j("breakpoint"), a = j("container"), l = j("spacing"), u = j("radius"), c = j("shadow"), f = j("inset-shadow"), m = j("text-shadow"), v = j("drop-shadow"), w = j("blur"), C = j("perspective"), P = j("aspect"), h = j("ease"), y = j("animate"), d = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], p = () => [
5118
5118
  "center",
5119
5119
  "top",
@@ -5138,7 +5138,7 @@ const j = (t) => {
5138
5138
  position: [k, S]
5139
5139
  }], lt = () => ["no-repeat", {
5140
5140
  repeat: ["", "x", "y", "space", "round"]
5141
- }], le = () => ["auto", "cover", "contain", oh, sh, {
5141
+ }], le = () => ["auto", "cover", "contain", ah, ih, {
5142
5142
  size: [k, S]
5143
5143
  }], Be = () => [en, Wt, wt], H = () => [
5144
5144
  // Deprecated since Tailwind CSS v4.0.0
@@ -5163,11 +5163,11 @@ const j = (t) => {
5163
5163
  aspect: ["video"],
5164
5164
  blur: [ct],
5165
5165
  breakpoint: [ct],
5166
- color: [Jd],
5166
+ color: [Qd],
5167
5167
  container: [ct],
5168
5168
  "drop-shadow": [ct],
5169
5169
  ease: ["in", "out", "in-out"],
5170
- font: [nh],
5170
+ font: [sh],
5171
5171
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
5172
5172
  "inset-shadow": [ct],
5173
5173
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
@@ -5879,7 +5879,7 @@ const j = (t) => {
5879
5879
  * @see https://tailwindcss.com/docs/font-family
5880
5880
  */
5881
5881
  "font-family": [{
5882
- font: [rh, S, e]
5882
+ font: [oh, S, e]
5883
5883
  }],
5884
5884
  /**
5885
5885
  * Font Variant Numeric
@@ -6134,7 +6134,7 @@ const j = (t) => {
6134
6134
  }, mt, k, S],
6135
6135
  radial: ["", k, S],
6136
6136
  conic: [mt, k, S]
6137
- }, ah, ih]
6137
+ }, lh, rh]
6138
6138
  }],
6139
6139
  /**
6140
6140
  * Background Color
@@ -7583,10 +7583,10 @@ const j = (t) => {
7583
7583
  },
7584
7584
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
7585
7585
  };
7586
- }, Bi = /* @__PURE__ */ Gd(uh), dh = ({ data: t, modals: e, index: n, initialParams: s }) => {
7586
+ }, Bi = /* @__PURE__ */ Wd(dh), Oi = 1e3, hh = ({ data: t, modals: e, index: n, initialParams: s }) => {
7587
7587
  const i = e[t.name], o = t.params || s, r = o?.animate || s?.animate, a = o?.onClose || s?.onClose, l = o?.backdrop || s?.backdrop, u = o?.body || s?.body, c = o?.position || s?.position || pe.CENTER, f = o?.closeOnClickOutside || s?.closeOnClickOutside, m = ke((w) => w.active), v = ke((w) => w.closeModal);
7588
- return /* @__PURE__ */ $i(
7589
- Dd.div,
7588
+ return /* @__PURE__ */ Gi(
7589
+ Rd.div,
7590
7590
  {
7591
7591
  exit: r?.exit ?? { opacity: 0 },
7592
7592
  initial: r?.exit ?? { opacity: 0 },
@@ -7606,7 +7606,7 @@ const j = (t) => {
7606
7606
  l?.className
7607
7607
  ),
7608
7608
  style: {
7609
- zIndex: n
7609
+ zIndex: Oi + n
7610
7610
  },
7611
7611
  onClick: () => {
7612
7612
  f && (v(), a?.());
@@ -7629,7 +7629,7 @@ const j = (t) => {
7629
7629
  u?.className
7630
7630
  ),
7631
7631
  style: {
7632
- zIndex: n + 1
7632
+ zIndex: Oi + n + 1
7633
7633
  },
7634
7634
  onClick: (w) => w.stopPropagation(),
7635
7635
  children: /* @__PURE__ */ Q(i, { ...o })
@@ -7639,16 +7639,16 @@ const j = (t) => {
7639
7639
  }
7640
7640
  );
7641
7641
  };
7642
- var Oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7643
- function hh(t) {
7642
+ var Fi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7643
+ function fh(t) {
7644
7644
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
7645
7645
  }
7646
- var Se = { exports: {} }, fh = Se.exports, Fi;
7647
- function ph() {
7648
- return Fi || (Fi = 1, function(t, e) {
7646
+ var Se = { exports: {} }, ph = Se.exports, ji;
7647
+ function mh() {
7648
+ return ji || (ji = 1, function(t, e) {
7649
7649
  (function(n, s) {
7650
7650
  t.exports = s();
7651
- })(fh, function() {
7651
+ })(ph, function() {
7652
7652
  function n(h) {
7653
7653
  "@babel/helpers - typeof";
7654
7654
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? n = function(y) {
@@ -7975,7 +7975,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7975
7975
  value: function(d, p, g, x) {
7976
7976
  var T = this;
7977
7977
  this.stop();
7978
- var b = typeof globalThis < "u" ? globalThis : typeof Oi < "u" ? Oi : typeof window < "u" ? window : {};
7978
+ var b = typeof globalThis < "u" ? globalThis : typeof Fi < "u" ? Fi : typeof window < "u" ? window : {};
7979
7979
  if (!d) {
7980
7980
  if (!b.addEventListener && !b.attachEvent) {
7981
7981
  if (this._currentContext === "global")
@@ -8124,8 +8124,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8124
8124
  });
8125
8125
  }(Se)), Se.exports;
8126
8126
  }
8127
- var mh = ph();
8128
- const ji = /* @__PURE__ */ hh(mh), xh = ({ modals: t, initialParams: e }) => {
8127
+ var gh = mh();
8128
+ const Ni = /* @__PURE__ */ fh(gh), wh = ({ modals: t, initialParams: e }) => {
8129
8129
  const n = ke((o) => o.modals), s = ke((o) => o.closeModal), i = ut(null);
8130
8130
  return Re(() => {
8131
8131
  if (i.current = document.body, n?.length === 0 || !n[n.length - 1].params?.closeOnPressEsc && !e?.closeOnPressEsc)
@@ -8133,10 +8133,10 @@ const ji = /* @__PURE__ */ hh(mh), xh = ({ modals: t, initialParams: e }) => {
8133
8133
  const o = () => {
8134
8134
  s();
8135
8135
  };
8136
- return ji.bind(["escape"], o), () => ji.unbind(["escape"], o);
8137
- }, [n, s, e?.closeOnPressEsc]), i.current && Uo(
8138
- /* @__PURE__ */ Q("div", { className: "react-motion-modal", children: /* @__PURE__ */ Q(Jl, { initial: !0, mode: "sync", children: n?.map((o, r) => /* @__PURE__ */ Q(
8139
- dh,
8136
+ return Ni.bind(["escape"], o), () => Ni.unbind(["escape"], o);
8137
+ }, [n, s, e?.closeOnPressEsc]), i.current && zo(
8138
+ /* @__PURE__ */ Q("div", { className: "react-motion-modal", children: /* @__PURE__ */ Q(Ql, { initial: !0, mode: "sync", children: n?.map((o, r) => /* @__PURE__ */ Q(
8139
+ hh,
8140
8140
  {
8141
8141
  data: o,
8142
8142
  index: r,
@@ -8150,6 +8150,6 @@ const ji = /* @__PURE__ */ hh(mh), xh = ({ modals: t, initialParams: e }) => {
8150
8150
  };
8151
8151
  export {
8152
8152
  pe as MODAL_POSITIONS,
8153
- xh as ModalProvider,
8153
+ wh as ModalProvider,
8154
8154
  ke as useModal
8155
8155
  };