@telegraph/tooltip 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,41 +1,40 @@
1
1
  import * as e from "@radix-ui/react-tooltip";
2
2
  import { useControllableState as t } from "@radix-ui/react-use-controllable-state";
3
- import { OverrideAppearance as n } from "@telegraph/appearance";
4
- import { RefToTgphRef as r } from "@telegraph/helpers";
5
- import { Stack as i } from "@telegraph/layout";
6
- import { Text as a } from "@telegraph/typography";
7
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
- import c, { Fragment as l, createContext as u, createElement as d, forwardRef as f, useCallback as p, useContext as m, useEffect as h, useInsertionEffect as g, useLayoutEffect as _, useMemo as v, useRef as y, useState as b } from "react";
3
+ import { RefToTgphRef as n } from "@telegraph/helpers";
4
+ import { Stack as r } from "@telegraph/layout";
5
+ import { Text as i } from "@telegraph/typography";
6
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
+ import s, { Fragment as c, createContext as l, createElement as u, forwardRef as d, useCallback as f, useContext as p, useEffect as m, useInsertionEffect as h, useLayoutEffect as g, useMemo as _, useRef as v, useState as y } from "react";
9
8
  //#region \0rolldown/runtime.js
10
- var x = Object.defineProperty, S = Object.getOwnPropertyDescriptor, C = Object.getOwnPropertyNames, w = Object.prototype.hasOwnProperty, T = (e, t) => () => (e && (t = e(e = 0)), t), ee = (e, t) => {
9
+ var b = Object.defineProperty, x = Object.getOwnPropertyDescriptor, S = Object.getOwnPropertyNames, C = Object.prototype.hasOwnProperty, w = (e, t) => () => (e && (t = e(e = 0)), t), T = (e, t) => {
11
10
  let n = {};
12
- for (var r in e) x(n, r, {
11
+ for (var r in e) b(n, r, {
13
12
  get: e[r],
14
13
  enumerable: !0
15
14
  });
16
- return t || x(n, Symbol.toStringTag, { value: "Module" }), n;
17
- }, te = (e, t, n, r) => {
18
- if (t && typeof t == "object" || typeof t == "function") for (var i = C(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !w.call(e, s) && s !== n && x(e, s, {
15
+ return t || b(n, Symbol.toStringTag, { value: "Module" }), n;
16
+ }, ee = (e, t, n, r) => {
17
+ if (t && typeof t == "object" || typeof t == "function") for (var i = S(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !C.call(e, s) && s !== n && b(e, s, {
19
18
  get: ((e) => t[e]).bind(null, s),
20
- enumerable: !(r = S(t, s)) || r.enumerable
19
+ enumerable: !(r = x(t, s)) || r.enumerable
21
20
  });
22
21
  return e;
23
- }, ne = (e) => w.call(e, "module.exports") ? e["module.exports"] : te(x({}, "__esModule", { value: !0 }), e), re = u({});
22
+ }, te = (e) => C.call(e, "module.exports") ? e["module.exports"] : ee(b({}, "__esModule", { value: !0 }), e), ne = l({});
24
23
  //#endregion
25
24
  //#region ../../node_modules/framer-motion/dist/es/utils/use-constant.mjs
26
- function ie(e) {
27
- let t = y(null);
25
+ function re(e) {
26
+ let t = v(null);
28
27
  return t.current === null && (t.current = e()), t.current;
29
28
  }
30
29
  //#endregion
31
30
  //#region ../../node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
32
- var ae = typeof window < "u" ? _ : h, oe = /* @__PURE__ */ u(null);
31
+ var ie = typeof window < "u" ? g : m, ae = /* @__PURE__ */ l(null);
33
32
  //#endregion
34
33
  //#region ../../node_modules/motion-utils/dist/es/array.mjs
35
- function se(e, t) {
34
+ function oe(e, t) {
36
35
  e.indexOf(t) === -1 && e.push(t);
37
36
  }
38
- function ce(e, t) {
37
+ function se(e, t) {
39
38
  let n = e.indexOf(t);
40
39
  n > -1 && e.splice(n, 1);
41
40
  }
@@ -44,46 +43,46 @@ function ce(e, t) {
44
43
  var E = (e, t, n) => n > t ? t : n < e ? e : n;
45
44
  //#endregion
46
45
  //#region ../../node_modules/motion-utils/dist/es/format-error-message.mjs
47
- function le(e, t) {
46
+ function ce(e, t) {
48
47
  return t ? `${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : e;
49
48
  }
50
49
  //#endregion
51
50
  //#region ../../node_modules/motion-utils/dist/es/errors.mjs
52
51
  var D = () => {}, O = () => {};
53
52
  typeof process < "u" && process.env.NODE_ENV !== "production" && (D = (e, t, n) => {
54
- !e && typeof console < "u" && console.warn(le(t, n));
53
+ !e && typeof console < "u" && console.warn(ce(t, n));
55
54
  }, O = (e, t, n) => {
56
- if (!e) throw Error(le(t, n));
55
+ if (!e) throw Error(ce(t, n));
57
56
  });
58
57
  //#endregion
59
58
  //#region ../../node_modules/motion-utils/dist/es/global-config.mjs
60
- var k = {}, ue = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
59
+ var k = {}, le = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
61
60
  //#endregion
62
61
  //#region ../../node_modules/motion-utils/dist/es/is-object.mjs
63
- function de(e) {
62
+ function ue(e) {
64
63
  return typeof e == "object" && !!e;
65
64
  }
66
65
  //#endregion
67
66
  //#region ../../node_modules/motion-utils/dist/es/is-zero-value-string.mjs
68
- var fe = (e) => /^0[^.\s]+$/u.test(e);
67
+ var de = (e) => /^0[^.\s]+$/u.test(e);
69
68
  //#endregion
70
69
  //#region ../../node_modules/motion-utils/dist/es/memo.mjs
71
70
  /* @__NO_SIDE_EFFECTS__ */
72
- function pe(e) {
71
+ function fe(e) {
73
72
  let t;
74
73
  return () => (t === void 0 && (t = e()), t);
75
74
  }
76
75
  //#endregion
77
76
  //#region ../../node_modules/motion-utils/dist/es/noop.mjs
78
- var A = /* @__NO_SIDE_EFFECTS__ */ (e) => e, me = (e, t) => (n) => t(e(n)), he = (...e) => e.reduce(me), ge = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
77
+ var A = /* @__NO_SIDE_EFFECTS__ */ (e) => e, pe = (e, t) => (n) => t(e(n)), me = (...e) => e.reduce(pe), he = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
79
78
  let r = t - e;
80
79
  return r === 0 ? 1 : (n - e) / r;
81
- }, _e = class {
80
+ }, ge = class {
82
81
  constructor() {
83
82
  this.subscriptions = [];
84
83
  }
85
84
  add(e) {
86
- return se(this.subscriptions, e), () => ce(this.subscriptions, e);
85
+ return oe(this.subscriptions, e), () => se(this.subscriptions, e);
87
86
  }
88
87
  notify(e, t, n) {
89
88
  let r = this.subscriptions.length;
@@ -102,52 +101,52 @@ var A = /* @__NO_SIDE_EFFECTS__ */ (e) => e, me = (e, t) => (n) => t(e(n)), he =
102
101
  }, j = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, M = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
103
102
  //#endregion
104
103
  //#region ../../node_modules/motion-utils/dist/es/velocity-per-second.mjs
105
- function ve(e, t) {
104
+ function _e(e, t) {
106
105
  return t ? 1e3 / t * e : 0;
107
106
  }
108
107
  //#endregion
109
108
  //#region ../../node_modules/motion-utils/dist/es/warn-once.mjs
110
- var ye = /* @__PURE__ */ new Set();
111
- function be(e, t, n) {
112
- e || ye.has(t) || (console.warn(le(t, n)), ye.add(t));
109
+ var ve = /* @__PURE__ */ new Set();
110
+ function ye(e, t, n) {
111
+ e || ve.has(t) || (console.warn(ce(t, n)), ve.add(t));
113
112
  }
114
113
  //#endregion
115
114
  //#region ../../node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs
116
- var xe = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Se = 1e-7, Ce = 12;
117
- function we(e, t, n, r, i) {
115
+ var be = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, xe = 1e-7, Se = 12;
116
+ function Ce(e, t, n, r, i) {
118
117
  let a, o, s = 0;
119
118
  do
120
- o = t + (n - t) / 2, a = xe(o, r, i) - e, a > 0 ? n = o : t = o;
121
- while (Math.abs(a) > Se && ++s < Ce);
119
+ o = t + (n - t) / 2, a = be(o, r, i) - e, a > 0 ? n = o : t = o;
120
+ while (Math.abs(a) > xe && ++s < Se);
122
121
  return o;
123
122
  }
124
- function Te(e, t, n, r) {
123
+ function we(e, t, n, r) {
125
124
  if (e === t && n === r) return A;
126
- let i = (t) => we(t, 0, 1, e, n);
127
- return (e) => e === 0 || e === 1 ? e : xe(i(e), t, r);
125
+ let i = (t) => Ce(t, 0, 1, e, n);
126
+ return (e) => e === 0 || e === 1 ? e : be(i(e), t, r);
128
127
  }
129
128
  //#endregion
130
129
  //#region ../../node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
131
- var Ee = (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, De = (e) => (t) => 1 - e(1 - t), Oe = /* @__PURE__ */ Te(.33, 1.53, .69, .99), ke = /* @__PURE__ */ De(Oe), Ae = /* @__PURE__ */ Ee(ke), je = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * ke(e) : .5 * (2 - 2 ** (-10 * (e - 1))), Me = (e) => 1 - Math.sin(Math.acos(e)), Ne = De(Me), Pe = Ee(Me), Fe = /* @__PURE__ */ Te(.42, 0, 1, 1), Ie = /* @__PURE__ */ Te(0, 0, .58, 1), Le = /* @__PURE__ */ Te(.42, 0, .58, 1), Re = (e) => Array.isArray(e) && typeof e[0] != "number", ze = (e) => Array.isArray(e) && typeof e[0] == "number", Be = {
130
+ var Te = (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Ee = (e) => (t) => 1 - e(1 - t), De = /* @__PURE__ */ we(.33, 1.53, .69, .99), Oe = /* @__PURE__ */ Ee(De), ke = /* @__PURE__ */ Te(Oe), Ae = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * Oe(e) : .5 * (2 - 2 ** (-10 * (e - 1))), je = (e) => 1 - Math.sin(Math.acos(e)), Me = Ee(je), Ne = Te(je), Pe = /* @__PURE__ */ we(.42, 0, 1, 1), Fe = /* @__PURE__ */ we(0, 0, .58, 1), Ie = /* @__PURE__ */ we(.42, 0, .58, 1), Le = (e) => Array.isArray(e) && typeof e[0] != "number", Re = (e) => Array.isArray(e) && typeof e[0] == "number", ze = {
132
131
  linear: A,
133
- easeIn: Fe,
134
- easeInOut: Le,
135
- easeOut: Ie,
136
- circIn: Me,
137
- circInOut: Pe,
138
- circOut: Ne,
139
- backIn: ke,
140
- backInOut: Ae,
141
- backOut: Oe,
142
- anticipate: je
143
- }, Ve = (e) => typeof e == "string", He = (e) => {
144
- if (ze(e)) {
132
+ easeIn: Pe,
133
+ easeInOut: Ie,
134
+ easeOut: Fe,
135
+ circIn: je,
136
+ circInOut: Ne,
137
+ circOut: Me,
138
+ backIn: Oe,
139
+ backInOut: ke,
140
+ backOut: De,
141
+ anticipate: Ae
142
+ }, Be = (e) => typeof e == "string", Ve = (e) => {
143
+ if (Re(e)) {
145
144
  O(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
146
145
  let [t, n, r, i] = e;
147
- return Te(t, n, r, i);
148
- } else if (Ve(e)) return O(Be[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), Be[e];
146
+ return we(t, n, r, i);
147
+ } else if (Be(e)) return O(ze[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), ze[e];
149
148
  return e;
150
- }, Ue = [
149
+ }, He = [
151
150
  "setup",
152
151
  "read",
153
152
  "resolveKeyframes",
@@ -156,13 +155,13 @@ var Ee = (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, De = (
156
155
  "preRender",
157
156
  "render",
158
157
  "postRender"
159
- ], We = {
158
+ ], Ue = {
160
159
  value: null,
161
160
  addProjectionMetrics: null
162
161
  };
163
162
  //#endregion
164
163
  //#region ../../node_modules/motion-dom/dist/es/frameloop/render-step.mjs
165
- function Ge(e, t) {
164
+ function We(e, t) {
166
165
  let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = !1, a = !1, o = /* @__PURE__ */ new WeakSet(), s = {
167
166
  delta: 0,
168
167
  timestamp: 0,
@@ -186,32 +185,32 @@ function Ge(e, t) {
186
185
  }
187
186
  i = !0;
188
187
  let o = n;
189
- n = r, r = o, n.forEach(l), t && We.value && We.value.frameloop[t].push(c), c = 0, n.clear(), i = !1, a && (a = !1, u.process(e));
188
+ n = r, r = o, n.forEach(l), t && Ue.value && Ue.value.frameloop[t].push(c), c = 0, n.clear(), i = !1, a && (a = !1, u.process(e));
190
189
  }
191
190
  };
192
191
  return u;
193
192
  }
194
193
  //#endregion
195
194
  //#region ../../node_modules/motion-dom/dist/es/frameloop/batcher.mjs
196
- var Ke = 40;
197
- function qe(e, t) {
195
+ var Ge = 40;
196
+ function Ke(e, t) {
198
197
  let n = !1, r = !0, i = {
199
198
  delta: 0,
200
199
  timestamp: 0,
201
200
  isProcessing: !1
202
- }, a = () => n = !0, o = Ue.reduce((e, n) => (e[n] = Ge(a, t ? n : void 0), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
201
+ }, a = () => n = !0, o = He.reduce((e, n) => (e[n] = We(a, t ? n : void 0), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
203
202
  let a = k.useManualTiming, o = a ? i.timestamp : performance.now();
204
- n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, Ke), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
203
+ n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, Ge), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
205
204
  }, g = () => {
206
205
  n = !0, r = !0, i.isProcessing || e(h);
207
206
  };
208
207
  return {
209
- schedule: Ue.reduce((e, t) => {
208
+ schedule: He.reduce((e, t) => {
210
209
  let r = o[t];
211
210
  return e[t] = (e, t = !1, i = !1) => (n || g(), r.schedule(e, t, i)), e;
212
211
  }, {}),
213
212
  cancel: (e) => {
214
- for (let t = 0; t < Ue.length; t++) o[Ue[t]].cancel(e);
213
+ for (let t = 0; t < He.length; t++) o[He[t]].cancel(e);
215
214
  },
216
215
  state: i,
217
216
  steps: o
@@ -219,21 +218,21 @@ function qe(e, t) {
219
218
  }
220
219
  //#endregion
221
220
  //#region ../../node_modules/motion-dom/dist/es/frameloop/frame.mjs
222
- var { schedule: N, cancel: Je, state: Ye, steps: Xe } = /* @__PURE__ */ qe(typeof requestAnimationFrame < "u" ? requestAnimationFrame : A, !0), Ze;
223
- function Qe() {
224
- Ze = void 0;
221
+ var { schedule: N, cancel: qe, state: Je, steps: Ye } = /* @__PURE__ */ Ke(typeof requestAnimationFrame < "u" ? requestAnimationFrame : A, !0), Xe;
222
+ function Ze() {
223
+ Xe = void 0;
225
224
  }
226
225
  var P = {
227
- now: () => (Ze === void 0 && P.set(Ye.isProcessing || k.useManualTiming ? Ye.timestamp : performance.now()), Ze),
226
+ now: () => (Xe === void 0 && P.set(Je.isProcessing || k.useManualTiming ? Je.timestamp : performance.now()), Xe),
228
227
  set: (e) => {
229
- Ze = e, queueMicrotask(Qe);
228
+ Xe = e, queueMicrotask(Ze);
230
229
  }
231
- }, $e = {
230
+ }, Qe = {
232
231
  layout: 0,
233
232
  mainThread: 0,
234
233
  waapi: 0
235
- }, et = (e) => (t) => typeof t == "string" && t.startsWith(e), tt = /* @__PURE__ */ et("--"), nt = /* @__PURE__ */ et("var(--"), rt = (e) => nt(e) ? it.test(e.split("/*")[0].trim()) : !1, it = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
236
- function at(e) {
234
+ }, $e = (e) => (t) => typeof t == "string" && t.startsWith(e), et = /* @__PURE__ */ $e("--"), tt = /* @__PURE__ */ $e("var(--"), nt = (e) => tt(e) ? rt.test(e.split("/*")[0].trim()) : !1, rt = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
235
+ function it(e) {
237
236
  return typeof e == "string" ? e.split("/*")[0].includes("var(--") : !1;
238
237
  }
239
238
  //#endregion
@@ -242,40 +241,40 @@ var F = {
242
241
  test: (e) => typeof e == "number",
243
242
  parse: parseFloat,
244
243
  transform: (e) => e
245
- }, ot = {
244
+ }, at = {
246
245
  ...F,
247
246
  transform: (e) => E(0, 1, e)
248
- }, st = {
247
+ }, ot = {
249
248
  ...F,
250
249
  default: 1
251
- }, ct = (e) => Math.round(e * 1e5) / 1e5, lt = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
250
+ }, st = (e) => Math.round(e * 1e5) / 1e5, ct = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
252
251
  //#endregion
253
252
  //#region ../../node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
254
- function ut(e) {
253
+ function lt(e) {
255
254
  return e == null;
256
255
  }
257
256
  //#endregion
258
257
  //#region ../../node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
259
- var dt = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, ft = (e, t) => (n) => !!(typeof n == "string" && dt.test(n) && n.startsWith(e) || t && !ut(n) && Object.prototype.hasOwnProperty.call(n, t)), pt = (e, t, n) => (r) => {
258
+ var ut = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, dt = (e, t) => (n) => !!(typeof n == "string" && ut.test(n) && n.startsWith(e) || t && !lt(n) && Object.prototype.hasOwnProperty.call(n, t)), ft = (e, t, n) => (r) => {
260
259
  if (typeof r != "string") return r;
261
- let [i, a, o, s] = r.match(lt);
260
+ let [i, a, o, s] = r.match(ct);
262
261
  return {
263
262
  [e]: parseFloat(i),
264
263
  [t]: parseFloat(a),
265
264
  [n]: parseFloat(o),
266
265
  alpha: s === void 0 ? 1 : parseFloat(s)
267
266
  };
268
- }, mt = (e) => E(0, 255, e), ht = {
267
+ }, pt = (e) => E(0, 255, e), mt = {
269
268
  ...F,
270
- transform: (e) => Math.round(mt(e))
269
+ transform: (e) => Math.round(pt(e))
271
270
  }, I = {
272
- test: /* @__PURE__ */ ft("rgb", "red"),
273
- parse: /* @__PURE__ */ pt("red", "green", "blue"),
274
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + ht.transform(e) + ", " + ht.transform(t) + ", " + ht.transform(n) + ", " + ct(ot.transform(r)) + ")"
271
+ test: /* @__PURE__ */ dt("rgb", "red"),
272
+ parse: /* @__PURE__ */ ft("red", "green", "blue"),
273
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + mt.transform(e) + ", " + mt.transform(t) + ", " + mt.transform(n) + ", " + st(at.transform(r)) + ")"
275
274
  };
276
275
  //#endregion
277
276
  //#region ../../node_modules/motion-dom/dist/es/value/types/color/hex.mjs
278
- function gt(e) {
277
+ function ht(e) {
279
278
  let t = "", n = "", r = "", i = "";
280
279
  return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
281
280
  red: parseInt(t, 16),
@@ -284,37 +283,37 @@ function gt(e) {
284
283
  alpha: i ? parseInt(i, 16) / 255 : 1
285
284
  };
286
285
  }
287
- var _t = {
288
- test: /* @__PURE__ */ ft("#"),
289
- parse: gt,
286
+ var gt = {
287
+ test: /* @__PURE__ */ dt("#"),
288
+ parse: ht,
290
289
  transform: I.transform
291
- }, vt = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
290
+ }, _t = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
292
291
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
293
292
  parse: parseFloat,
294
293
  transform: (t) => `${t}${e}`
295
- }), L = /* @__PURE__ */ vt("deg"), R = /* @__PURE__ */ vt("%"), z = /* @__PURE__ */ vt("px"), yt = /* @__PURE__ */ vt("vh"), bt = /* @__PURE__ */ vt("vw"), xt = {
294
+ }), L = /* @__PURE__ */ _t("deg"), R = /* @__PURE__ */ _t("%"), z = /* @__PURE__ */ _t("px"), vt = /* @__PURE__ */ _t("vh"), yt = /* @__PURE__ */ _t("vw"), bt = {
296
295
  ...R,
297
296
  parse: (e) => R.parse(e) / 100,
298
297
  transform: (e) => R.transform(e * 100)
299
298
  }, B = {
300
- test: /* @__PURE__ */ ft("hsl", "hue"),
301
- parse: /* @__PURE__ */ pt("hue", "saturation", "lightness"),
302
- transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + R.transform(ct(t)) + ", " + R.transform(ct(n)) + ", " + ct(ot.transform(r)) + ")"
299
+ test: /* @__PURE__ */ dt("hsl", "hue"),
300
+ parse: /* @__PURE__ */ ft("hue", "saturation", "lightness"),
301
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + R.transform(st(t)) + ", " + R.transform(st(n)) + ", " + st(at.transform(r)) + ")"
303
302
  }, V = {
304
- test: (e) => I.test(e) || _t.test(e) || B.test(e),
305
- parse: (e) => I.test(e) ? I.parse(e) : B.test(e) ? B.parse(e) : _t.parse(e),
303
+ test: (e) => I.test(e) || gt.test(e) || B.test(e),
304
+ parse: (e) => I.test(e) ? I.parse(e) : B.test(e) ? B.parse(e) : gt.parse(e),
306
305
  transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? I.transform(e) : B.transform(e),
307
306
  getAnimatableNone: (e) => {
308
307
  let t = V.parse(e);
309
308
  return t.alpha = 0, V.transform(t);
310
309
  }
311
- }, St = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
310
+ }, xt = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
312
311
  //#endregion
313
312
  //#region ../../node_modules/motion-dom/dist/es/value/types/complex/index.mjs
314
- function Ct(e) {
315
- return isNaN(e) && typeof e == "string" && (e.match(lt)?.length || 0) + (e.match(St)?.length || 0) > 0;
313
+ function St(e) {
314
+ return isNaN(e) && typeof e == "string" && (e.match(ct)?.length || 0) + (e.match(xt)?.length || 0) > 0;
316
315
  }
317
- var wt = "number", Tt = "color", Et = "var", Dt = "var(", Ot = "${}", kt = /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;
316
+ var Ct = "number", wt = "color", Tt = "var", Et = "var(", Dt = "${}", Ot = /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;
318
317
  function H(e) {
319
318
  let t = e.toString(), n = [], r = {
320
319
  color: [],
@@ -323,51 +322,51 @@ function H(e) {
323
322
  }, i = [], a = 0;
324
323
  return {
325
324
  values: n,
326
- split: t.replace(kt, (e) => (V.test(e) ? (r.color.push(a), i.push(Tt), n.push(V.parse(e))) : e.startsWith(Dt) ? (r.var.push(a), i.push(Et), n.push(e)) : (r.number.push(a), i.push(wt), n.push(parseFloat(e))), ++a, Ot)).split(Ot),
325
+ split: t.replace(Ot, (e) => (V.test(e) ? (r.color.push(a), i.push(wt), n.push(V.parse(e))) : e.startsWith(Et) ? (r.var.push(a), i.push(Tt), n.push(e)) : (r.number.push(a), i.push(Ct), n.push(parseFloat(e))), ++a, Dt)).split(Dt),
327
326
  indexes: r,
328
327
  types: i
329
328
  };
330
329
  }
331
- function At(e) {
330
+ function kt(e) {
332
331
  return H(e).values;
333
332
  }
334
- function jt({ split: e, types: t }) {
333
+ function At({ split: e, types: t }) {
335
334
  let n = e.length;
336
335
  return (r) => {
337
336
  let i = "";
338
337
  for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
339
338
  let e = t[a];
340
- e === wt ? i += ct(r[a]) : e === Tt ? i += V.transform(r[a]) : i += r[a];
339
+ e === Ct ? i += st(r[a]) : e === wt ? i += V.transform(r[a]) : i += r[a];
341
340
  }
342
341
  return i;
343
342
  };
344
343
  }
345
- function Mt(e) {
346
- return jt(H(e));
344
+ function jt(e) {
345
+ return At(H(e));
347
346
  }
348
- var Nt = (e) => typeof e == "number" ? 0 : V.test(e) ? V.getAnimatableNone(e) : e, Pt = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Nt(e);
349
- function Ft(e) {
347
+ var Mt = (e) => typeof e == "number" ? 0 : V.test(e) ? V.getAnimatableNone(e) : e, Nt = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Mt(e);
348
+ function Pt(e) {
350
349
  let t = H(e);
351
- return jt(t)(t.values.map((e, n) => Pt(e, t.split[n])));
350
+ return At(t)(t.values.map((e, n) => Nt(e, t.split[n])));
352
351
  }
353
352
  var U = {
354
- test: Ct,
355
- parse: At,
356
- createTransformer: Mt,
357
- getAnimatableNone: Ft
353
+ test: St,
354
+ parse: kt,
355
+ createTransformer: jt,
356
+ getAnimatableNone: Pt
358
357
  };
359
358
  //#endregion
360
359
  //#region ../../node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
361
- function It(e, t, n) {
360
+ function Ft(e, t, n) {
362
361
  return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
363
362
  }
364
- function Lt({ hue: e, saturation: t, lightness: n, alpha: r }) {
363
+ function It({ hue: e, saturation: t, lightness: n, alpha: r }) {
365
364
  e /= 360, t /= 100, n /= 100;
366
365
  let i = 0, a = 0, o = 0;
367
366
  if (!t) i = a = o = n;
368
367
  else {
369
368
  let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
370
- i = It(s, r, e + 1 / 3), a = It(s, r, e), o = It(s, r, e - 1 / 3);
369
+ i = Ft(s, r, e + 1 / 3), a = Ft(s, r, e), o = Ft(s, r, e - 1 / 3);
371
370
  }
372
371
  return {
373
372
  red: Math.round(i * 255),
@@ -378,61 +377,61 @@ function Lt({ hue: e, saturation: t, lightness: n, alpha: r }) {
378
377
  }
379
378
  //#endregion
380
379
  //#region ../../node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
381
- function Rt(e, t) {
380
+ function Lt(e, t) {
382
381
  return (n) => n > 0 ? t : e;
383
382
  }
384
383
  //#endregion
385
384
  //#region ../../node_modules/motion-dom/dist/es/utils/mix/number.mjs
386
- var zt = (e, t, n) => e + (t - e) * n, Bt = (e, t, n) => {
385
+ var Rt = (e, t, n) => e + (t - e) * n, zt = (e, t, n) => {
387
386
  let r = e * e, i = n * (t * t - r) + r;
388
387
  return i < 0 ? 0 : Math.sqrt(i);
389
- }, Vt = [
390
- _t,
388
+ }, Bt = [
389
+ gt,
391
390
  I,
392
391
  B
393
- ], Ht = (e) => Vt.find((t) => t.test(e));
394
- function Ut(e) {
395
- let t = Ht(e);
392
+ ], Vt = (e) => Bt.find((t) => t.test(e));
393
+ function Ht(e) {
394
+ let t = Vt(e);
396
395
  if (D(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t) return !1;
397
396
  let n = t.parse(e);
398
- return t === B && (n = Lt(n)), n;
397
+ return t === B && (n = It(n)), n;
399
398
  }
400
- var Wt = (e, t) => {
401
- let n = Ut(e), r = Ut(t);
402
- if (!n || !r) return Rt(e, t);
399
+ var Ut = (e, t) => {
400
+ let n = Ht(e), r = Ht(t);
401
+ if (!n || !r) return Lt(e, t);
403
402
  let i = { ...n };
404
- return (e) => (i.red = Bt(n.red, r.red, e), i.green = Bt(n.green, r.green, e), i.blue = Bt(n.blue, r.blue, e), i.alpha = zt(n.alpha, r.alpha, e), I.transform(i));
405
- }, Gt = new Set(["none", "hidden"]);
406
- function Kt(e, t) {
407
- return Gt.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
403
+ return (e) => (i.red = zt(n.red, r.red, e), i.green = zt(n.green, r.green, e), i.blue = zt(n.blue, r.blue, e), i.alpha = Rt(n.alpha, r.alpha, e), I.transform(i));
404
+ }, Wt = new Set(["none", "hidden"]);
405
+ function Gt(e, t) {
406
+ return Wt.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
408
407
  }
409
408
  //#endregion
410
409
  //#region ../../node_modules/motion-dom/dist/es/utils/mix/complex.mjs
411
- function qt(e, t) {
412
- return (n) => zt(e, t, n);
410
+ function Kt(e, t) {
411
+ return (n) => Rt(e, t, n);
413
412
  }
414
- function Jt(e) {
415
- return typeof e == "number" ? qt : typeof e == "string" ? rt(e) ? Rt : V.test(e) ? Wt : Qt : Array.isArray(e) ? Yt : typeof e == "object" ? V.test(e) ? Wt : Xt : Rt;
413
+ function qt(e) {
414
+ return typeof e == "number" ? Kt : typeof e == "string" ? nt(e) ? Lt : V.test(e) ? Ut : Zt : Array.isArray(e) ? Jt : typeof e == "object" ? V.test(e) ? Ut : Yt : Lt;
416
415
  }
417
- function Yt(e, t) {
418
- let n = [...e], r = n.length, i = e.map((e, n) => Jt(e)(e, t[n]));
416
+ function Jt(e, t) {
417
+ let n = [...e], r = n.length, i = e.map((e, n) => qt(e)(e, t[n]));
419
418
  return (e) => {
420
419
  for (let t = 0; t < r; t++) n[t] = i[t](e);
421
420
  return n;
422
421
  };
423
422
  }
424
- function Xt(e, t) {
423
+ function Yt(e, t) {
425
424
  let n = {
426
425
  ...e,
427
426
  ...t
428
427
  }, r = {};
429
- for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = Jt(e[i])(e[i], t[i]));
428
+ for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = qt(e[i])(e[i], t[i]));
430
429
  return (e) => {
431
430
  for (let t in r) n[t] = r[t](e);
432
431
  return n;
433
432
  };
434
433
  }
435
- function Zt(e, t) {
434
+ function Xt(e, t) {
436
435
  let n = [], r = {
437
436
  color: 0,
438
437
  var: 0,
@@ -444,41 +443,41 @@ function Zt(e, t) {
444
443
  }
445
444
  return n;
446
445
  }
447
- var Qt = (e, t) => {
446
+ var Zt = (e, t) => {
448
447
  let n = U.createTransformer(t), r = H(e), i = H(t);
449
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Gt.has(e) && !i.values.length || Gt.has(t) && !r.values.length ? Kt(e, t) : he(Yt(Zt(r, i), i.values), n) : (D(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Rt(e, t));
448
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Wt.has(e) && !i.values.length || Wt.has(t) && !r.values.length ? Gt(e, t) : me(Jt(Xt(r, i), i.values), n) : (D(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Lt(e, t));
450
449
  };
451
450
  //#endregion
452
451
  //#region ../../node_modules/motion-dom/dist/es/utils/mix/index.mjs
453
- function $t(e, t, n) {
454
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? zt(e, t, n) : Jt(e)(e, t);
452
+ function Qt(e, t, n) {
453
+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Rt(e, t, n) : qt(e)(e, t);
455
454
  }
456
455
  //#endregion
457
456
  //#region ../../node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
458
- var en = (e) => {
457
+ var $t = (e) => {
459
458
  let t = ({ timestamp: t }) => e(t);
460
459
  return {
461
460
  start: (e = !0) => N.update(t, e),
462
- stop: () => Je(t),
463
- now: () => Ye.isProcessing ? Ye.timestamp : P.now()
461
+ stop: () => qe(t),
462
+ now: () => Je.isProcessing ? Je.timestamp : P.now()
464
463
  };
465
- }, tn = (e, t, n = 10) => {
464
+ }, en = (e, t, n = 10) => {
466
465
  let r = "", i = Math.max(Math.round(t / n), 2);
467
466
  for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
468
467
  return `linear(${r.substring(0, r.length - 2)})`;
469
- }, nn = 2e4;
470
- function rn(e) {
468
+ }, tn = 2e4;
469
+ function nn(e) {
471
470
  let t = 0, n = e.next(t);
472
471
  for (; !n.done && t < 2e4;) t += 50, n = e.next(t);
473
472
  return t >= 2e4 ? Infinity : t;
474
473
  }
475
474
  //#endregion
476
475
  //#region ../../node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
477
- function an(e, t = 100, n) {
476
+ function rn(e, t = 100, n) {
478
477
  let r = n({
479
478
  ...e,
480
479
  keyframes: [0, t]
481
- }), i = Math.min(rn(r), nn);
480
+ }), i = Math.min(nn(r), tn);
482
481
  return {
483
482
  type: "keyframes",
484
483
  ease: (e) => r.next(i * e).value / t,
@@ -508,31 +507,31 @@ var W = {
508
507
  minDamping: .05,
509
508
  maxDamping: 1
510
509
  };
511
- function on(e, t) {
510
+ function an(e, t) {
512
511
  return e * Math.sqrt(1 - t * t);
513
512
  }
514
- var sn = 12;
515
- function cn(e, t, n) {
513
+ var on = 12;
514
+ function sn(e, t, n) {
516
515
  let r = n;
517
- for (let n = 1; n < sn; n++) r -= e(r) / t(r);
516
+ for (let n = 1; n < on; n++) r -= e(r) / t(r);
518
517
  return r;
519
518
  }
520
- var ln = .001;
521
- function un({ duration: e = W.duration, bounce: t = W.bounce, velocity: n = W.velocity, mass: r = W.mass }) {
519
+ var cn = .001;
520
+ function ln({ duration: e = W.duration, bounce: t = W.bounce, velocity: n = W.velocity, mass: r = W.mass }) {
522
521
  let i, a;
523
522
  D(e <= /* @__PURE__ */ j(W.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
524
523
  let o = 1 - t;
525
524
  o = E(W.minDamping, W.maxDamping, o), e = E(W.minDuration, W.maxDuration, /* @__PURE__ */ M(e)), o < 1 ? (i = (t) => {
526
- let r = t * o, i = r * e, a = r - n, s = on(t, o), c = Math.exp(-i);
527
- return ln - a / s * c;
525
+ let r = t * o, i = r * e, a = r - n, s = an(t, o), c = Math.exp(-i);
526
+ return cn - a / s * c;
528
527
  }, a = (t) => {
529
- let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = on(t ** 2, o);
530
- return (-i(t) + ln > 0 ? -1 : 1) * ((a - s) * c) / l;
528
+ let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = an(t ** 2, o);
529
+ return (-i(t) + cn > 0 ? -1 : 1) * ((a - s) * c) / l;
531
530
  }) : (i = (t) => {
532
531
  let r = Math.exp(-t * e), i = (t - n) * e + 1;
533
- return -ln + r * i;
532
+ return -cn + r * i;
534
533
  }, a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));
535
- let s = 5 / e, c = cn(i, a, s);
534
+ let s = 5 / e, c = sn(i, a, s);
536
535
  if (e = /* @__PURE__ */ j(e), isNaN(c)) return {
537
536
  stiffness: W.stiffness,
538
537
  damping: W.damping,
@@ -547,15 +546,15 @@ function un({ duration: e = W.duration, bounce: t = W.bounce, velocity: n = W.ve
547
546
  };
548
547
  }
549
548
  }
550
- var dn = ["duration", "bounce"], fn = [
549
+ var un = ["duration", "bounce"], dn = [
551
550
  "stiffness",
552
551
  "damping",
553
552
  "mass"
554
553
  ];
555
- function pn(e, t) {
554
+ function fn(e, t) {
556
555
  return t.some((t) => e[t] !== void 0);
557
556
  }
558
- function mn(e) {
557
+ function pn(e) {
559
558
  let t = {
560
559
  velocity: W.velocity,
561
560
  stiffness: W.stiffness,
@@ -564,7 +563,7 @@ function mn(e) {
564
563
  isResolvedFromDuration: !1,
565
564
  ...e
566
565
  };
567
- if (!pn(e, fn) && pn(e, dn)) if (t.velocity = 0, e.visualDuration) {
566
+ if (!fn(e, dn) && fn(e, un)) if (t.velocity = 0, e.visualDuration) {
568
567
  let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * E(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
569
568
  t = {
570
569
  ...t,
@@ -573,7 +572,7 @@ function mn(e) {
573
572
  damping: a
574
573
  };
575
574
  } else {
576
- let n = un({
575
+ let n = ln({
577
576
  ...e,
578
577
  velocity: 0
579
578
  });
@@ -585,7 +584,7 @@ function mn(e) {
585
584
  }
586
585
  return t;
587
586
  }
588
- function hn(e = W.visualDuration, t = W.bounce) {
587
+ function mn(e = W.visualDuration, t = W.bounce) {
589
588
  let n = typeof e == "object" ? e : {
590
589
  visualDuration: e,
591
590
  keyframes: [0, 1],
@@ -593,13 +592,13 @@ function hn(e = W.visualDuration, t = W.bounce) {
593
592
  }, { restSpeed: r, restDelta: i } = n, a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], s = {
594
593
  done: !1,
595
594
  value: a
596
- }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = mn({
595
+ }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = pn({
597
596
  ...n,
598
597
  velocity: -/* @__PURE__ */ M(n.velocity || 0)
599
598
  }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ M(Math.sqrt(c / u)), v = Math.abs(g) < 5;
600
599
  r ||= v ? W.restSpeed.granular : W.restSpeed.default, i ||= v ? W.restDelta.granular : W.restDelta.default;
601
600
  let y, b, x, S, C, w;
602
- if (h < 1) x = on(_, h), S = (m + h * _ * g) / x, y = (e) => o - Math.exp(-h * _ * e) * (S * Math.sin(x * e) + g * Math.cos(x * e)), C = h * _ * S + g * x, w = h * _ * g - S * x, b = (e) => Math.exp(-h * _ * e) * (C * Math.sin(x * e) + w * Math.cos(x * e));
601
+ if (h < 1) x = an(_, h), S = (m + h * _ * g) / x, y = (e) => o - Math.exp(-h * _ * e) * (S * Math.sin(x * e) + g * Math.cos(x * e)), C = h * _ * S + g * x, w = h * _ * g - S * x, b = (e) => Math.exp(-h * _ * e) * (C * Math.sin(x * e) + w * Math.cos(x * e));
603
602
  else if (h === 1) {
604
603
  y = (e) => o - Math.exp(-_ * e) * (g + (m + _ * g) * e);
605
604
  let e = m + _ * g;
@@ -633,27 +632,27 @@ function hn(e = W.visualDuration, t = W.bounce) {
633
632
  return s.value = s.done ? o : t, s;
634
633
  },
635
634
  toString: () => {
636
- let e = Math.min(rn(T), nn), t = tn((t) => T.next(e * t).value, e, 30);
635
+ let e = Math.min(nn(T), tn), t = en((t) => T.next(e * t).value, e, 30);
637
636
  return e + "ms " + t;
638
637
  },
639
638
  toTransition: () => {}
640
639
  };
641
640
  return T;
642
641
  }
643
- hn.applyToOptions = (e) => {
644
- let t = an(e, 100, hn);
642
+ mn.applyToOptions = (e) => {
643
+ let t = rn(e, 100, mn);
645
644
  return e.ease = t.ease, e.duration = /* @__PURE__ */ j(t.duration), e.type = "keyframes", e;
646
645
  };
647
646
  //#endregion
648
647
  //#region ../../node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
649
- var gn = 5;
650
- function _n(e, t, n) {
651
- let r = Math.max(t - gn, 0);
652
- return ve(n - e(r), t - r);
648
+ var hn = 5;
649
+ function gn(e, t, n) {
650
+ let r = Math.max(t - hn, 0);
651
+ return _e(n - e(r), t - r);
653
652
  }
654
653
  //#endregion
655
654
  //#region ../../node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
656
- function vn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
655
+ function _n({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
657
656
  let d = e[0], f = {
658
657
  done: !1,
659
658
  value: d
@@ -663,9 +662,9 @@ function vn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
663
662
  let t = v(e), n = y(e);
664
663
  f.done = Math.abs(t) <= l, f.value = f.done ? _ : n;
665
664
  }, x, S, C = (e) => {
666
- p(f.value) && (x = e, S = hn({
665
+ p(f.value) && (x = e, S = mn({
667
666
  keyframes: [f.value, m(f.value)],
668
- velocity: _n(y, e, f.value),
667
+ velocity: gn(y, e, f.value),
669
668
  damping: i,
670
669
  stiffness: a,
671
670
  restDelta: l,
@@ -682,59 +681,59 @@ function vn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
682
681
  }
683
682
  //#endregion
684
683
  //#region ../../node_modules/motion-dom/dist/es/utils/interpolate.mjs
685
- function yn(e, t, n) {
686
- let r = [], i = n || k.mix || $t, a = e.length - 1;
684
+ function vn(e, t, n) {
685
+ let r = [], i = n || k.mix || Qt, a = e.length - 1;
687
686
  for (let n = 0; n < a; n++) {
688
687
  let a = i(e[n], e[n + 1]);
689
- t && (a = he(Array.isArray(t) ? t[n] || A : t, a)), r.push(a);
688
+ t && (a = me(Array.isArray(t) ? t[n] || A : t, a)), r.push(a);
690
689
  }
691
690
  return r;
692
691
  }
693
- function bn(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
692
+ function yn(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
694
693
  let a = e.length;
695
694
  if (O(a === t.length, "Both input and output ranges must be the same length", "range-length"), a === 1) return () => t[0];
696
695
  if (a === 2 && t[0] === t[1]) return () => t[1];
697
696
  let o = e[0] === e[1];
698
697
  e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
699
- let s = yn(t, r, i), c = s.length, l = (n) => {
698
+ let s = vn(t, r, i), c = s.length, l = (n) => {
700
699
  if (o && n < e[0]) return t[0];
701
700
  let r = 0;
702
701
  if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
703
- let i = /* @__PURE__ */ ge(e[r], e[r + 1], n);
702
+ let i = /* @__PURE__ */ he(e[r], e[r + 1], n);
704
703
  return s[r](i);
705
704
  };
706
705
  return n ? (t) => l(E(e[0], e[a - 1], t)) : l;
707
706
  }
708
707
  //#endregion
709
708
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
710
- function xn(e, t) {
709
+ function bn(e, t) {
711
710
  let n = e[e.length - 1];
712
711
  for (let r = 1; r <= t; r++) {
713
- let i = /* @__PURE__ */ ge(0, t, r);
714
- e.push(zt(n, 1, i));
712
+ let i = /* @__PURE__ */ he(0, t, r);
713
+ e.push(Rt(n, 1, i));
715
714
  }
716
715
  }
717
716
  //#endregion
718
717
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
719
- function Sn(e) {
718
+ function xn(e) {
720
719
  let t = [0];
721
- return xn(t, e.length - 1), t;
720
+ return bn(t, e.length - 1), t;
722
721
  }
723
722
  //#endregion
724
723
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
725
- function Cn(e, t) {
724
+ function Sn(e, t) {
726
725
  return e.map((e) => e * t);
727
726
  }
728
727
  //#endregion
729
728
  //#region ../../node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
730
- function wn(e, t) {
731
- return e.map(() => t || Le).splice(0, e.length - 1);
729
+ function Cn(e, t) {
730
+ return e.map(() => t || Ie).splice(0, e.length - 1);
732
731
  }
733
732
  function G({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
734
- let i = Re(r) ? r.map(He) : He(r), a = {
733
+ let i = Le(r) ? r.map(Ve) : Ve(r), a = {
735
734
  done: !1,
736
735
  value: t[0]
737
- }, o = bn(Cn(n && n.length === t.length ? n : Sn(t), e), t, { ease: Array.isArray(i) ? i : wn(t, i) });
736
+ }, o = yn(Sn(n && n.length === t.length ? n : xn(t), e), t, { ease: Array.isArray(i) ? i : Cn(t, i) });
738
737
  return {
739
738
  calculatedDuration: e,
740
739
  next: (t) => (a.value = o(t), a.done = t >= e, a)
@@ -742,26 +741,26 @@ function G({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" })
742
741
  }
743
742
  //#endregion
744
743
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
745
- var Tn = (e) => e !== null;
746
- function En(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
747
- let a = e.filter(Tn), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
744
+ var wn = (e) => e !== null;
745
+ function Tn(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
746
+ let a = e.filter(wn), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
748
747
  return !o || r === void 0 ? a[o] : r;
749
748
  }
750
749
  //#endregion
751
750
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
752
- var Dn = {
753
- decay: vn,
754
- inertia: vn,
751
+ var En = {
752
+ decay: _n,
753
+ inertia: _n,
755
754
  tween: G,
756
755
  keyframes: G,
757
- spring: hn
756
+ spring: mn
758
757
  };
759
- function On(e) {
760
- typeof e.type == "string" && (e.type = Dn[e.type]);
758
+ function Dn(e) {
759
+ typeof e.type == "string" && (e.type = En[e.type]);
761
760
  }
762
761
  //#endregion
763
762
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
764
- var kn = class {
763
+ var On = class {
765
764
  constructor() {
766
765
  this.updateFinished();
767
766
  }
@@ -779,7 +778,7 @@ var kn = class {
779
778
  then(e, t) {
780
779
  return this.finished.then(e, t);
781
780
  }
782
- }, An = (e) => e / 100, jn = class extends kn {
781
+ }, kn = (e) => e / 100, An = class extends On {
783
782
  constructor(e) {
784
783
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
785
784
  done: !1,
@@ -787,13 +786,13 @@ var kn = class {
787
786
  }, this.stop = () => {
788
787
  let { motionValue: e } = this.options;
789
788
  e && e.updatedAt !== P.now() && this.tick(P.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
790
- }, $e.mainThread++, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
789
+ }, Qe.mainThread++, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
791
790
  }
792
791
  initAnimation() {
793
792
  let { options: e } = this;
794
- On(e);
793
+ Dn(e);
795
794
  let { type: t = G, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || G;
796
- process.env.NODE_ENV !== "production" && s !== G && O(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`, "spring-two-frames"), s !== G && typeof o[0] != "number" && (this.mixKeyframes = he(An, $t(o[0], o[1])), o = [0, 100]);
795
+ process.env.NODE_ENV !== "production" && s !== G && O(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`, "spring-two-frames"), s !== G && typeof o[0] != "number" && (this.mixKeyframes = me(kn, Qt(o[0], o[1])), o = [0, 100]);
797
796
  let c = s({
798
797
  ...e,
799
798
  keyframes: o
@@ -802,7 +801,7 @@ var kn = class {
802
801
  ...e,
803
802
  keyframes: [...o].reverse(),
804
803
  velocity: -a
805
- })), c.calculatedDuration === null && (c.calculatedDuration = rn(c));
804
+ })), c.calculatedDuration === null && (c.calculatedDuration = nn(c));
806
805
  let { calculatedDuration: l } = c;
807
806
  this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
808
807
  }
@@ -827,7 +826,7 @@ var kn = class {
827
826
  let { done: x } = b;
828
827
  !_ && s !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
829
828
  let S = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
830
- return S && p !== vn && (b.value = En(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
829
+ return S && p !== _n && (b.value = Tn(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
831
830
  }
832
831
  then(e, t) {
833
832
  return this.finished.then(e, t);
@@ -850,7 +849,7 @@ var kn = class {
850
849
  if (e <= 0) return this.options.velocity || 0;
851
850
  if (this.generator.velocity) return this.generator.velocity(e);
852
851
  let t = this.generator.next(e).value;
853
- return _n((e) => this.generator.next(e).value, e, t);
852
+ return gn((e) => this.generator.next(e).value, e, t);
854
853
  }
855
854
  get speed() {
856
855
  return this.playbackSpeed;
@@ -861,7 +860,7 @@ var kn = class {
861
860
  }
862
861
  play() {
863
862
  if (this.isStopped) return;
864
- let { driver: e = en, startTime: t } = this.options;
863
+ let { driver: e = $t, startTime: t } = this.options;
865
864
  this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
866
865
  let n = this.driver.now();
867
866
  this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? n : this.startTime = n - this.holdTime, this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -879,7 +878,7 @@ var kn = class {
879
878
  this.holdTime = null, this.startTime = 0, this.tick(0), this.teardown(), this.options.onCancel?.();
880
879
  }
881
880
  teardown() {
882
- this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null, $e.mainThread--;
881
+ this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null, Qe.mainThread--;
883
882
  }
884
883
  stopDriver() {
885
884
  this.driver &&= (this.driver.stop(), void 0);
@@ -893,12 +892,12 @@ var kn = class {
893
892
  };
894
893
  //#endregion
895
894
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
896
- function Mn(e) {
895
+ function jn(e) {
897
896
  for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
898
897
  }
899
898
  //#endregion
900
899
  //#region ../../node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
901
- var K = (e) => e * 180 / Math.PI, Nn = (e) => Fn(K(Math.atan2(e[1], e[0]))), Pn = {
900
+ var K = (e) => e * 180 / Math.PI, Mn = (e) => Pn(K(Math.atan2(e[1], e[0]))), Nn = {
902
901
  x: 4,
903
902
  y: 5,
904
903
  translateX: 4,
@@ -906,49 +905,49 @@ var K = (e) => e * 180 / Math.PI, Nn = (e) => Fn(K(Math.atan2(e[1], e[0]))), Pn
906
905
  scaleX: 0,
907
906
  scaleY: 3,
908
907
  scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
909
- rotate: Nn,
910
- rotateZ: Nn,
908
+ rotate: Mn,
909
+ rotateZ: Mn,
911
910
  skewX: (e) => K(Math.atan(e[1])),
912
911
  skewY: (e) => K(Math.atan(e[2])),
913
912
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
914
- }, Fn = (e) => (e %= 360, e < 0 && (e += 360), e), In = Nn, Ln = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Rn = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), zn = {
913
+ }, Pn = (e) => (e %= 360, e < 0 && (e += 360), e), Fn = Mn, In = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Ln = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), Rn = {
915
914
  x: 12,
916
915
  y: 13,
917
916
  z: 14,
918
917
  translateX: 12,
919
918
  translateY: 13,
920
919
  translateZ: 14,
921
- scaleX: Ln,
922
- scaleY: Rn,
923
- scale: (e) => (Ln(e) + Rn(e)) / 2,
924
- rotateX: (e) => Fn(K(Math.atan2(e[6], e[5]))),
925
- rotateY: (e) => Fn(K(Math.atan2(-e[2], e[0]))),
926
- rotateZ: In,
927
- rotate: In,
920
+ scaleX: In,
921
+ scaleY: Ln,
922
+ scale: (e) => (In(e) + Ln(e)) / 2,
923
+ rotateX: (e) => Pn(K(Math.atan2(e[6], e[5]))),
924
+ rotateY: (e) => Pn(K(Math.atan2(-e[2], e[0]))),
925
+ rotateZ: Fn,
926
+ rotate: Fn,
928
927
  skewX: (e) => K(Math.atan(e[4])),
929
928
  skewY: (e) => K(Math.atan(e[1])),
930
929
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
931
930
  };
932
- function Bn(e) {
931
+ function zn(e) {
933
932
  return +!!e.includes("scale");
934
933
  }
935
- function Vn(e, t) {
936
- if (!e || e === "none") return Bn(t);
934
+ function Bn(e, t) {
935
+ if (!e || e === "none") return zn(t);
937
936
  let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;
938
- if (n) r = zn, i = n;
937
+ if (n) r = Rn, i = n;
939
938
  else {
940
939
  let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
941
- r = Pn, i = t;
940
+ r = Nn, i = t;
942
941
  }
943
- if (!i) return Bn(t);
944
- let a = r[t], o = i[1].split(",").map(Un);
942
+ if (!i) return zn(t);
943
+ let a = r[t], o = i[1].split(",").map(Hn);
945
944
  return typeof a == "function" ? a(o) : o[a];
946
945
  }
947
- var Hn = (e, t) => {
946
+ var Vn = (e, t) => {
948
947
  let { transform: n = "none" } = getComputedStyle(e);
949
- return Vn(n, t);
948
+ return Bn(n, t);
950
949
  };
951
- function Un(e) {
950
+ function Hn(e) {
952
951
  return parseFloat(e.trim());
953
952
  }
954
953
  //#endregion
@@ -971,14 +970,14 @@ var q = [
971
970
  "skew",
972
971
  "skewX",
973
972
  "skewY"
974
- ], J = new Set(q), Wn = (e) => e === F || e === z, Gn = new Set([
973
+ ], J = new Set(q), Un = (e) => e === F || e === z, Wn = new Set([
975
974
  "x",
976
975
  "y",
977
976
  "z"
978
- ]), Kn = q.filter((e) => !Gn.has(e));
979
- function qn(e) {
977
+ ]), Gn = q.filter((e) => !Wn.has(e));
978
+ function Kn(e) {
980
979
  let t = [];
981
- return Kn.forEach((n) => {
980
+ return Gn.forEach((n) => {
982
981
  let r = e.getValue(n);
983
982
  r !== void 0 && (t.push([n, r.get()]), r.set(+!!n.startsWith("scale")));
984
983
  }), t;
@@ -996,18 +995,18 @@ var Y = {
996
995
  left: (e, { left: t }) => parseFloat(t),
997
996
  bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
998
997
  right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
999
- x: (e, { transform: t }) => Vn(t, "x"),
1000
- y: (e, { transform: t }) => Vn(t, "y")
998
+ x: (e, { transform: t }) => Bn(t, "x"),
999
+ y: (e, { transform: t }) => Bn(t, "y")
1001
1000
  };
1002
1001
  Y.translateX = Y.x, Y.translateY = Y.y;
1003
1002
  //#endregion
1004
1003
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs
1005
- var X = /* @__PURE__ */ new Set(), Jn = !1, Yn = !1, Xn = !1;
1006
- function Zn() {
1007
- if (Yn) {
1004
+ var X = /* @__PURE__ */ new Set(), qn = !1, Jn = !1, Yn = !1;
1005
+ function Xn() {
1006
+ if (Jn) {
1008
1007
  let e = Array.from(X).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
1009
1008
  t.forEach((e) => {
1010
- let t = qn(e);
1009
+ let t = Kn(e);
1011
1010
  t.length && (n.set(e, t), e.render());
1012
1011
  }), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
1013
1012
  e.render();
@@ -1019,22 +1018,22 @@ function Zn() {
1019
1018
  e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
1020
1019
  });
1021
1020
  }
1022
- Yn = !1, Jn = !1, X.forEach((e) => e.complete(Xn)), X.clear();
1021
+ Jn = !1, qn = !1, X.forEach((e) => e.complete(Yn)), X.clear();
1023
1022
  }
1024
- function Qn() {
1023
+ function Zn() {
1025
1024
  X.forEach((e) => {
1026
- e.readKeyframes(), e.needsMeasurement && (Yn = !0);
1025
+ e.readKeyframes(), e.needsMeasurement && (Jn = !0);
1027
1026
  });
1028
1027
  }
1029
- function $n() {
1030
- Xn = !0, Qn(), Zn(), Xn = !1;
1028
+ function Qn() {
1029
+ Yn = !0, Zn(), Xn(), Yn = !1;
1031
1030
  }
1032
- var er = class {
1031
+ var $n = class {
1033
1032
  constructor(e, t, n, r, i, a = !1) {
1034
1033
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
1035
1034
  }
1036
1035
  scheduleResolve() {
1037
- this.state = "scheduled", this.isAsync ? (X.add(this), Jn || (Jn = !0, N.read(Qn), N.resolveKeyframes(Zn))) : (this.readKeyframes(), this.complete());
1036
+ this.state = "scheduled", this.isAsync ? (X.add(this), qn || (qn = !0, N.read(Zn), N.resolveKeyframes(Xn))) : (this.readKeyframes(), this.complete());
1038
1037
  }
1039
1038
  readKeyframes() {
1040
1039
  let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -1047,7 +1046,7 @@ var er = class {
1047
1046
  }
1048
1047
  e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
1049
1048
  }
1050
- Mn(e);
1049
+ jn(e);
1051
1050
  }
1052
1051
  setFinalKeyframe() {}
1053
1052
  measureInitialState() {}
@@ -1062,55 +1061,55 @@ var er = class {
1062
1061
  resume() {
1063
1062
  this.state === "pending" && this.scheduleResolve();
1064
1063
  }
1065
- }, tr = (e) => e.startsWith("--");
1064
+ }, er = (e) => e.startsWith("--");
1066
1065
  //#endregion
1067
1066
  //#region ../../node_modules/motion-dom/dist/es/render/dom/style-set.mjs
1068
- function nr(e, t, n) {
1069
- tr(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1067
+ function tr(e, t, n) {
1068
+ er(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1070
1069
  }
1071
1070
  //#endregion
1072
1071
  //#region ../../node_modules/motion-dom/dist/es/utils/supports/flags.mjs
1073
- var rr = {};
1072
+ var nr = {};
1074
1073
  //#endregion
1075
1074
  //#region ../../node_modules/motion-dom/dist/es/utils/supports/memo.mjs
1076
- function ir(e, t) {
1077
- let n = /* @__PURE__ */ pe(e);
1078
- return () => rr[t] ?? n();
1075
+ function rr(e, t) {
1076
+ let n = /* @__PURE__ */ fe(e);
1077
+ return () => nr[t] ?? n();
1079
1078
  }
1080
1079
  //#endregion
1081
1080
  //#region ../../node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
1082
- var ar = /* @__PURE__ */ ir(() => window.ScrollTimeline !== void 0, "scrollTimeline"), or = /* @__PURE__ */ ir(() => {
1081
+ var ir = /* @__PURE__ */ rr(() => window.ScrollTimeline !== void 0, "scrollTimeline"), ar = /* @__PURE__ */ rr(() => {
1083
1082
  try {
1084
1083
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1085
1084
  } catch {
1086
1085
  return !1;
1087
1086
  }
1088
1087
  return !0;
1089
- }, "linearEasing"), sr = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, cr = {
1088
+ }, "linearEasing"), or = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, sr = {
1090
1089
  linear: "linear",
1091
1090
  ease: "ease",
1092
1091
  easeIn: "ease-in",
1093
1092
  easeOut: "ease-out",
1094
1093
  easeInOut: "ease-in-out",
1095
- circIn: /* @__PURE__ */ sr([
1094
+ circIn: /* @__PURE__ */ or([
1096
1095
  0,
1097
1096
  .65,
1098
1097
  .55,
1099
1098
  1
1100
1099
  ]),
1101
- circOut: /* @__PURE__ */ sr([
1100
+ circOut: /* @__PURE__ */ or([
1102
1101
  .55,
1103
1102
  0,
1104
1103
  1,
1105
1104
  .45
1106
1105
  ]),
1107
- backIn: /* @__PURE__ */ sr([
1106
+ backIn: /* @__PURE__ */ or([
1108
1107
  .31,
1109
1108
  .01,
1110
1109
  .66,
1111
1110
  -.59
1112
1111
  ]),
1113
- backOut: /* @__PURE__ */ sr([
1112
+ backOut: /* @__PURE__ */ or([
1114
1113
  .33,
1115
1114
  1.53,
1116
1115
  .69,
@@ -1119,16 +1118,16 @@ var ar = /* @__PURE__ */ ir(() => window.ScrollTimeline !== void 0, "scrollTimel
1119
1118
  };
1120
1119
  //#endregion
1121
1120
  //#region ../../node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
1122
- function lr(e, t) {
1123
- if (e) return typeof e == "function" ? or() ? tn(e, t) : "ease-out" : ze(e) ? sr(e) : Array.isArray(e) ? e.map((e) => lr(e, t) || cr.easeOut) : cr[e];
1121
+ function cr(e, t) {
1122
+ if (e) return typeof e == "function" ? ar() ? en(e, t) : "ease-out" : Re(e) ? or(e) : Array.isArray(e) ? e.map((e) => cr(e, t) || sr.easeOut) : sr[e];
1124
1123
  }
1125
1124
  //#endregion
1126
1125
  //#region ../../node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
1127
- function ur(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
1126
+ function lr(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
1128
1127
  let u = { [t]: n };
1129
1128
  c && (u.offset = c);
1130
- let d = lr(s, i);
1131
- Array.isArray(d) && (u.easing = d), We.value && $e.waapi++;
1129
+ let d = cr(s, i);
1130
+ Array.isArray(d) && (u.easing = d), Ue.value && Qe.waapi++;
1132
1131
  let f = {
1133
1132
  delay: r,
1134
1133
  duration: i,
@@ -1139,32 +1138,32 @@ function ur(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTyp
1139
1138
  };
1140
1139
  l && (f.pseudoElement = l);
1141
1140
  let p = e.animate(u, f);
1142
- return We.value && p.finished.finally(() => {
1143
- $e.waapi--;
1141
+ return Ue.value && p.finished.finally(() => {
1142
+ Qe.waapi--;
1144
1143
  }), p;
1145
1144
  }
1146
1145
  //#endregion
1147
1146
  //#region ../../node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
1148
- function dr(e) {
1147
+ function ur(e) {
1149
1148
  return typeof e == "function" && "applyToOptions" in e;
1150
1149
  }
1151
1150
  //#endregion
1152
1151
  //#region ../../node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
1153
- function fr({ type: e, ...t }) {
1154
- return dr(e) && or() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
1152
+ function dr({ type: e, ...t }) {
1153
+ return ur(e) && ar() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
1155
1154
  }
1156
1155
  //#endregion
1157
1156
  //#region ../../node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
1158
- var pr = class extends kn {
1157
+ var fr = class extends On {
1159
1158
  constructor(e) {
1160
1159
  if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
1161
1160
  let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
1162
1161
  this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, O(typeof e.type != "string", "Mini animate() doesn't support \"type\" as a string.", "mini-spring");
1163
- let c = fr(e);
1164
- this.animation = ur(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1162
+ let c = dr(e);
1163
+ this.animation = lr(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1165
1164
  if (this.finishedTime = this.time, !i) {
1166
- let e = En(r, this.options, o, this.speed);
1167
- this.updateMotionValue && this.updateMotionValue(e), nr(t, n, e), this.animation.cancel();
1165
+ let e = Tn(r, this.options, o, this.speed);
1166
+ this.updateMotionValue && this.updateMotionValue(e), tr(t, n, e), this.animation.cancel();
1168
1167
  }
1169
1168
  s?.(), this.notifyFinished();
1170
1169
  };
@@ -1224,24 +1223,24 @@ var pr = class extends kn {
1224
1223
  this.manualStartTime = this.animation.startTime = e;
1225
1224
  }
1226
1225
  attachTimeline({ timeline: e, rangeStart: t, rangeEnd: n, observe: r }) {
1227
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && ar() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), A) : r(this);
1226
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && ir() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), A) : r(this);
1228
1227
  }
1229
- }, mr = {
1230
- anticipate: je,
1231
- backInOut: Ae,
1232
- circInOut: Pe
1228
+ }, pr = {
1229
+ anticipate: Ae,
1230
+ backInOut: ke,
1231
+ circInOut: Ne
1233
1232
  };
1234
- function hr(e) {
1235
- return e in mr;
1233
+ function mr(e) {
1234
+ return e in pr;
1236
1235
  }
1237
- function gr(e) {
1238
- typeof e.ease == "string" && hr(e.ease) && (e.ease = mr[e.ease]);
1236
+ function hr(e) {
1237
+ typeof e.ease == "string" && mr(e.ease) && (e.ease = pr[e.ease]);
1239
1238
  }
1240
1239
  //#endregion
1241
1240
  //#region ../../node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs
1242
- var _r = 10, vr = class extends pr {
1241
+ var gr = 10, _r = class extends fr {
1243
1242
  constructor(e) {
1244
- gr(e), On(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
1243
+ hr(e), Dn(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
1245
1244
  }
1246
1245
  updateMotionValue(e) {
1247
1246
  let { motionValue: t, onUpdate: n, onComplete: r, element: i, ...a } = this.options;
@@ -1250,47 +1249,47 @@ var _r = 10, vr = class extends pr {
1250
1249
  t.set(e);
1251
1250
  return;
1252
1251
  }
1253
- let o = new jn({
1252
+ let o = new An({
1254
1253
  ...a,
1255
1254
  autoplay: !1
1256
- }), s = Math.max(_r, P.now() - this.startTime), c = E(0, _r, s - _r), l = o.sample(s).value, { name: u } = this.options;
1257
- i && u && nr(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
1255
+ }), s = Math.max(gr, P.now() - this.startTime), c = E(0, gr, s - gr), l = o.sample(s).value, { name: u } = this.options;
1256
+ i && u && tr(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
1258
1257
  }
1259
- }, yr = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (U.test(e) || e === "0") && !e.startsWith("url("));
1258
+ }, vr = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (U.test(e) || e === "0") && !e.startsWith("url("));
1260
1259
  //#endregion
1261
1260
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
1262
- function br(e) {
1261
+ function yr(e) {
1263
1262
  let t = e[0];
1264
1263
  if (e.length === 1) return !0;
1265
1264
  for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
1266
1265
  }
1267
- function xr(e, t, n, r) {
1266
+ function br(e, t, n, r) {
1268
1267
  let i = e[0];
1269
1268
  if (i === null) return !1;
1270
1269
  if (t === "display" || t === "visibility") return !0;
1271
- let a = e[e.length - 1], o = yr(i, t), s = yr(a, t);
1272
- return D(o === s, `You are trying to animate ${t} from "${i}" to "${a}". "${o ? a : i}" is not an animatable value.`, "value-not-animatable"), !o || !s ? !1 : br(e) || (n === "spring" || dr(n)) && r;
1270
+ let a = e[e.length - 1], o = vr(i, t), s = vr(a, t);
1271
+ return D(o === s, `You are trying to animate ${t} from "${i}" to "${a}". "${o ? a : i}" is not an animatable value.`, "value-not-animatable"), !o || !s ? !1 : yr(e) || (n === "spring" || ur(n)) && r;
1273
1272
  }
1274
1273
  //#endregion
1275
1274
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
1276
- function Sr(e) {
1275
+ function xr(e) {
1277
1276
  e.duration = 0, e.type = "keyframes";
1278
1277
  }
1279
1278
  //#endregion
1280
1279
  //#region ../../node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
1281
- var Cr = new Set([
1280
+ var Sr = new Set([
1282
1281
  "opacity",
1283
1282
  "clipPath",
1284
1283
  "filter",
1285
1284
  "transform"
1286
- ]), wr = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
1287
- function Tr(e) {
1288
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && wr.test(e[t])) return !0;
1285
+ ]), Cr = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
1286
+ function wr(e) {
1287
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Cr.test(e[t])) return !0;
1289
1288
  return !1;
1290
1289
  }
1291
1290
  //#endregion
1292
1291
  //#region ../../node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
1293
- var Er = new Set([
1292
+ var Tr = new Set([
1294
1293
  "color",
1295
1294
  "backgroundColor",
1296
1295
  "outlineColor",
@@ -1301,16 +1300,16 @@ var Er = new Set([
1301
1300
  "borderRightColor",
1302
1301
  "borderBottomColor",
1303
1302
  "borderLeftColor"
1304
- ]), Dr = /* @__PURE__ */ pe(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1305
- function Or(e) {
1303
+ ]), Er = /* @__PURE__ */ fe(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1304
+ function Dr(e) {
1306
1305
  let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
1307
1306
  if (!(t?.owner?.current instanceof HTMLElement)) return !1;
1308
1307
  let { onUpdate: c, transformTemplate: l } = t.owner.getProps();
1309
- return Dr() && n && (Cr.has(n) || Er.has(n) && Tr(s)) && (n !== "transform" || !l) && !c && !r && i !== "mirror" && a !== 0 && o !== "inertia";
1308
+ return Er() && n && (Sr.has(n) || Tr.has(n) && wr(s)) && (n !== "transform" || !l) && !c && !r && i !== "mirror" && a !== 0 && o !== "inertia";
1310
1309
  }
1311
1310
  //#endregion
1312
1311
  //#region ../../node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
1313
- var kr = 40, Ar = class extends kn {
1312
+ var Or = 40, kr = class extends On {
1314
1313
  constructor({ autoplay: e = !0, delay: t = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: a = "loop", keyframes: o, name: s, motionValue: c, element: l, ...u }) {
1315
1314
  super(), this.stop = () => {
1316
1315
  this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
@@ -1327,29 +1326,29 @@ var kr = 40, Ar = class extends kn {
1327
1326
  element: l,
1328
1327
  ...u
1329
1328
  };
1330
- this.keyframeResolver = new (l?.KeyframeResolver || er)(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
1329
+ this.keyframeResolver = new (l?.KeyframeResolver || $n)(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
1331
1330
  }
1332
1331
  onKeyframesResolved(e, t, n, r) {
1333
1332
  this.keyframeResolver = void 0;
1334
1333
  let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
1335
1334
  this.resolvedAt = P.now();
1336
1335
  let u = !0;
1337
- xr(e, i, a, o) || (u = !1, (k.instantAnimations || !s) && l?.(En(e, n, t)), e[0] = e[e.length - 1], Sr(n), n.repeat = 0);
1336
+ br(e, i, a, o) || (u = !1, (k.instantAnimations || !s) && l?.(Tn(e, n, t)), e[0] = e[e.length - 1], xr(n), n.repeat = 0);
1338
1337
  let d = {
1339
- startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > kr ? this.resolvedAt : this.createdAt : void 0,
1338
+ startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > Or ? this.resolvedAt : this.createdAt : void 0,
1340
1339
  finalKeyframe: t,
1341
1340
  ...n,
1342
1341
  keyframes: e
1343
- }, f = u && !c && Or(d), p = d.motionValue?.owner?.current, m;
1342
+ }, f = u && !c && Dr(d), p = d.motionValue?.owner?.current, m;
1344
1343
  if (f) try {
1345
- m = new vr({
1344
+ m = new _r({
1346
1345
  ...d,
1347
1346
  element: p
1348
1347
  });
1349
1348
  } catch {
1350
- m = new jn(d);
1349
+ m = new An(d);
1351
1350
  }
1352
- else m = new jn(d);
1351
+ else m = new An(d);
1353
1352
  m.finished.then(() => {
1354
1353
  this.notifyFinished();
1355
1354
  }).catch(A), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
@@ -1361,7 +1360,7 @@ var kr = 40, Ar = class extends kn {
1361
1360
  return this.finished.finally(e).then(() => {});
1362
1361
  }
1363
1362
  get animation() {
1364
- return this._animation || (this.keyframeResolver?.resume(), $n()), this._animation;
1363
+ return this._animation || (this.keyframeResolver?.resume(), Qn()), this._animation;
1365
1364
  }
1366
1365
  get duration() {
1367
1366
  return this.animation.duration;
@@ -1405,47 +1404,47 @@ var kr = 40, Ar = class extends kn {
1405
1404
  };
1406
1405
  //#endregion
1407
1406
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
1408
- function jr(e, t, n, r = 0, i = 1) {
1407
+ function Ar(e, t, n, r = 0, i = 1) {
1409
1408
  let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
1410
1409
  return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
1411
1410
  }
1412
1411
  //#endregion
1413
1412
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs
1414
- var Mr = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
1415
- function Nr(e) {
1416
- let t = Mr.exec(e);
1413
+ var jr = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
1414
+ function Mr(e) {
1415
+ let t = jr.exec(e);
1417
1416
  if (!t) return [,];
1418
1417
  let [, n, r, i] = t;
1419
1418
  return [`--${n ?? r}`, i];
1420
1419
  }
1421
- var Pr = 4;
1422
- function Fr(e, t, n = 1) {
1423
- O(n <= Pr, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1424
- let [r, i] = Nr(e);
1420
+ var Nr = 4;
1421
+ function Pr(e, t, n = 1) {
1422
+ O(n <= Nr, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1423
+ let [r, i] = Mr(e);
1425
1424
  if (!r) return;
1426
1425
  let a = window.getComputedStyle(t).getPropertyValue(r);
1427
1426
  if (a) {
1428
1427
  let e = a.trim();
1429
- return ue(e) ? parseFloat(e) : e;
1428
+ return le(e) ? parseFloat(e) : e;
1430
1429
  }
1431
- return rt(i) ? Fr(i, t, n + 1) : i;
1430
+ return nt(i) ? Pr(i, t, n + 1) : i;
1432
1431
  }
1433
1432
  //#endregion
1434
1433
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
1435
- var Ir = {
1434
+ var Fr = {
1436
1435
  type: "spring",
1437
1436
  stiffness: 500,
1438
1437
  damping: 25,
1439
1438
  restSpeed: 10
1440
- }, Lr = (e) => ({
1439
+ }, Ir = (e) => ({
1441
1440
  type: "spring",
1442
1441
  stiffness: 550,
1443
1442
  damping: e === 0 ? 2 * Math.sqrt(550) : 30,
1444
1443
  restSpeed: 10
1445
- }), Rr = {
1444
+ }), Lr = {
1446
1445
  type: "keyframes",
1447
1446
  duration: .8
1448
- }, zr = {
1447
+ }, Rr = {
1449
1448
  type: "keyframes",
1450
1449
  ease: [
1451
1450
  .25,
@@ -1454,10 +1453,10 @@ var Ir = {
1454
1453
  1
1455
1454
  ],
1456
1455
  duration: .3
1457
- }, Br = (e, { keyframes: t }) => t.length > 2 ? Rr : J.has(e) ? e.startsWith("scale") ? Lr(t[1]) : Ir : zr;
1456
+ }, zr = (e, { keyframes: t }) => t.length > 2 ? Lr : J.has(e) ? e.startsWith("scale") ? Ir(t[1]) : Fr : Rr;
1458
1457
  //#endregion
1459
1458
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
1460
- function Vr(e, t) {
1459
+ function Br(e, t) {
1461
1460
  if (e?.inherit && t) {
1462
1461
  let { inherit: n, ...r } = e;
1463
1462
  return {
@@ -1469,13 +1468,13 @@ function Vr(e, t) {
1469
1468
  }
1470
1469
  //#endregion
1471
1470
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
1472
- function Hr(e, t) {
1471
+ function Vr(e, t) {
1473
1472
  let n = e?.[t] ?? e?.default ?? e;
1474
- return n === e ? n : Vr(n, e);
1473
+ return n === e ? n : Br(n, e);
1475
1474
  }
1476
1475
  //#endregion
1477
1476
  //#region ../../node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.mjs
1478
- var Ur = new Set([
1477
+ var Hr = new Set([
1479
1478
  "when",
1480
1479
  "delay",
1481
1480
  "delayChildren",
@@ -1487,14 +1486,14 @@ var Ur = new Set([
1487
1486
  "from",
1488
1487
  "elapsed"
1489
1488
  ]);
1490
- function Wr(e) {
1491
- for (let t in e) if (!Ur.has(t)) return !0;
1489
+ function Ur(e) {
1490
+ for (let t in e) if (!Hr.has(t)) return !0;
1492
1491
  return !1;
1493
1492
  }
1494
1493
  //#endregion
1495
1494
  //#region ../../node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
1496
- var Gr = (e, t, n, r = {}, i, a) => (o) => {
1497
- let s = Hr(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
1495
+ var Wr = (e, t, n, r = {}, i, a) => (o) => {
1496
+ let s = Vr(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
1498
1497
  l -= /* @__PURE__ */ j(c);
1499
1498
  let u = {
1500
1499
  keyframes: Array.isArray(n) ? n : [null, n],
@@ -1512,10 +1511,10 @@ var Gr = (e, t, n, r = {}, i, a) => (o) => {
1512
1511
  motionValue: t,
1513
1512
  element: a ? void 0 : i
1514
1513
  };
1515
- Wr(s) || Object.assign(u, Br(e, u)), u.duration &&= /* @__PURE__ */ j(u.duration), u.repeatDelay &&= /* @__PURE__ */ j(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
1514
+ Ur(s) || Object.assign(u, zr(e, u)), u.duration &&= /* @__PURE__ */ j(u.duration), u.repeatDelay &&= /* @__PURE__ */ j(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
1516
1515
  let d = !1;
1517
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Sr(u), u.delay === 0 && (d = !0)), (k.instantAnimations || k.skipAnimations || i?.shouldSkipAnimations) && (d = !0, Sr(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
1518
- let e = En(u.keyframes, s);
1516
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (xr(u), u.delay === 0 && (d = !0)), (k.instantAnimations || k.skipAnimations || i?.shouldSkipAnimations) && (d = !0, xr(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
1517
+ let e = Tn(u.keyframes, s);
1519
1518
  if (e !== void 0) {
1520
1519
  N.update(() => {
1521
1520
  u.onUpdate(e), u.onComplete();
@@ -1523,23 +1522,23 @@ var Gr = (e, t, n, r = {}, i, a) => (o) => {
1523
1522
  return;
1524
1523
  }
1525
1524
  }
1526
- return s.isSync ? new jn(u) : new Ar(u);
1525
+ return s.isSync ? new An(u) : new kr(u);
1527
1526
  };
1528
1527
  //#endregion
1529
1528
  //#region ../../node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
1530
- function Kr(e) {
1529
+ function Gr(e) {
1531
1530
  let t = [{}, {}];
1532
1531
  return e?.values.forEach((e, n) => {
1533
1532
  t[0][n] = e.get(), t[1][n] = e.getVelocity();
1534
1533
  }), t;
1535
1534
  }
1536
- function qr(e, t, n, r) {
1535
+ function Kr(e, t, n, r) {
1537
1536
  if (typeof t == "function") {
1538
- let [i, a] = Kr(r);
1537
+ let [i, a] = Gr(r);
1539
1538
  t = t(n === void 0 ? e.custom : n, i, a);
1540
1539
  }
1541
1540
  if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
1542
- let [i, a] = Kr(r);
1541
+ let [i, a] = Gr(r);
1543
1542
  t = t(n === void 0 ? e.custom : n, i, a);
1544
1543
  }
1545
1544
  return t;
@@ -1548,11 +1547,11 @@ function qr(e, t, n, r) {
1548
1547
  //#region ../../node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
1549
1548
  function Z(e, t, n) {
1550
1549
  let r = e.getProps();
1551
- return qr(r, t, n === void 0 ? r.custom : n, e);
1550
+ return Kr(r, t, n === void 0 ? r.custom : n, e);
1552
1551
  }
1553
1552
  //#endregion
1554
1553
  //#region ../../node_modules/motion-dom/dist/es/render/utils/keys-position.mjs
1555
- var Jr = new Set([
1554
+ var qr = new Set([
1556
1555
  "width",
1557
1556
  "height",
1558
1557
  "top",
@@ -1560,7 +1559,7 @@ var Jr = new Set([
1560
1559
  "right",
1561
1560
  "bottom",
1562
1561
  ...q
1563
- ]), Yr = 30, Xr = (e) => !isNaN(parseFloat(e)), Zr = { current: void 0 }, Qr = class {
1562
+ ]), Jr = 30, Yr = (e) => !isNaN(parseFloat(e)), Xr = { current: void 0 }, Zr = class {
1564
1563
  constructor(e, t = {}) {
1565
1564
  this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
1566
1565
  let t = P.now();
@@ -1568,16 +1567,16 @@ var Jr = new Set([
1568
1567
  }, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
1569
1568
  }
1570
1569
  setCurrent(e) {
1571
- this.current = e, this.updatedAt = P.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Xr(this.current));
1570
+ this.current = e, this.updatedAt = P.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Yr(this.current));
1572
1571
  }
1573
1572
  setPrevFrameValue(e = this.current) {
1574
1573
  this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
1575
1574
  }
1576
1575
  onChange(e) {
1577
- return process.env.NODE_ENV !== "production" && be(!1, "value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback)."), this.on("change", e);
1576
+ return process.env.NODE_ENV !== "production" && ye(!1, "value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback)."), this.on("change", e);
1578
1577
  }
1579
1578
  on(e, t) {
1580
- this.events[e] || (this.events[e] = new _e());
1579
+ this.events[e] || (this.events[e] = new ge());
1581
1580
  let n = this.events[e].add(t);
1582
1581
  return e === "change" ? () => {
1583
1582
  n(), N.read(() => {
@@ -1610,16 +1609,16 @@ var Jr = new Set([
1610
1609
  this.dependents && this.dependents.delete(e);
1611
1610
  }
1612
1611
  get() {
1613
- return Zr.current && Zr.current.push(this), this.current;
1612
+ return Xr.current && Xr.current.push(this), this.current;
1614
1613
  }
1615
1614
  getPrevious() {
1616
1615
  return this.prev;
1617
1616
  }
1618
1617
  getVelocity() {
1619
1618
  let e = P.now();
1620
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Yr) return 0;
1621
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, Yr);
1622
- return ve(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
1619
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Jr) return 0;
1620
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, Jr);
1621
+ return _e(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
1623
1622
  }
1624
1623
  start(e) {
1625
1624
  return this.stop(), new Promise((t) => {
@@ -1641,41 +1640,41 @@ var Jr = new Set([
1641
1640
  this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
1642
1641
  }
1643
1642
  };
1644
- function $r(e, t) {
1645
- return new Qr(e, t);
1643
+ function Qr(e, t) {
1644
+ return new Zr(e, t);
1646
1645
  }
1647
1646
  //#endregion
1648
1647
  //#region ../../node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.mjs
1649
- var ei = (e) => Array.isArray(e);
1648
+ var $r = (e) => Array.isArray(e);
1650
1649
  //#endregion
1651
1650
  //#region ../../node_modules/motion-dom/dist/es/render/utils/setters.mjs
1652
- function ti(e, t, n) {
1653
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, $r(n));
1651
+ function ei(e, t, n) {
1652
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Qr(n));
1654
1653
  }
1655
- function ni(e) {
1656
- return ei(e) ? e[e.length - 1] || 0 : e;
1654
+ function ti(e) {
1655
+ return $r(e) ? e[e.length - 1] || 0 : e;
1657
1656
  }
1658
- function ri(e, t) {
1657
+ function ni(e, t) {
1659
1658
  let { transitionEnd: n = {}, transition: r = {}, ...i } = Z(e, t) || {};
1660
1659
  i = {
1661
1660
  ...i,
1662
1661
  ...n
1663
1662
  };
1664
- for (let t in i) ti(e, t, ni(i[t]));
1663
+ for (let t in i) ei(e, t, ti(i[t]));
1665
1664
  }
1666
1665
  //#endregion
1667
1666
  //#region ../../node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
1668
1667
  var Q = (e) => !!(e && e.getVelocity);
1669
1668
  //#endregion
1670
1669
  //#region ../../node_modules/motion-dom/dist/es/value/will-change/is.mjs
1671
- function ii(e) {
1670
+ function ri(e) {
1672
1671
  return !!(Q(e) && e.add);
1673
1672
  }
1674
1673
  //#endregion
1675
1674
  //#region ../../node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
1676
- function ai(e, t) {
1675
+ function ii(e, t) {
1677
1676
  let n = e.getValue("willChange");
1678
- if (ii(n)) return n.add(t);
1677
+ if (ri(n)) return n.add(t);
1679
1678
  if (!n && k.WillChange) {
1680
1679
  let n = new k.WillChange("auto");
1681
1680
  e.addValue("willChange", n), n.add(t);
@@ -1683,33 +1682,33 @@ function ai(e, t) {
1683
1682
  }
1684
1683
  //#endregion
1685
1684
  //#region ../../node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
1686
- function oi(e) {
1685
+ function ai(e) {
1687
1686
  return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1688
1687
  }
1689
- var si = "data-" + oi("framerAppearId");
1688
+ var oi = "data-" + ai("framerAppearId");
1690
1689
  //#endregion
1691
1690
  //#region ../../node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
1692
- function ci(e) {
1693
- return e.props[si];
1691
+ function si(e) {
1692
+ return e.props[oi];
1694
1693
  }
1695
1694
  //#endregion
1696
1695
  //#region ../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
1697
- function li({ protectedKeys: e, needsAnimating: t }, n) {
1696
+ function ci({ protectedKeys: e, needsAnimating: t }, n) {
1698
1697
  let r = e.hasOwnProperty(n) && t[n] !== !0;
1699
1698
  return t[n] = !1, r;
1700
1699
  }
1701
- function ui(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
1700
+ function li(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
1702
1701
  let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
1703
- a = a ? Vr(a, c) : c;
1702
+ a = a ? Br(a, c) : c;
1704
1703
  let l = a?.reduceMotion;
1705
1704
  r && (a = r);
1706
1705
  let u = [], d = i && e.animationState && e.animationState.getState()[i];
1707
1706
  for (let t in s) {
1708
1707
  let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
1709
- if (i === void 0 || d && li(d, t)) continue;
1708
+ if (i === void 0 || d && ci(d, t)) continue;
1710
1709
  let o = {
1711
1710
  delay: n,
1712
- ...Hr(a || {}, t)
1711
+ ...Vr(a || {}, t)
1713
1712
  }, c = r.get();
1714
1713
  if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
1715
1714
  N.update(() => r.set(i));
@@ -1717,21 +1716,21 @@ function ui(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
1717
1716
  }
1718
1717
  let f = !1;
1719
1718
  if (window.MotionHandoffAnimation) {
1720
- let n = ci(e);
1719
+ let n = si(e);
1721
1720
  if (n) {
1722
1721
  let e = window.MotionHandoffAnimation(n, t, N);
1723
1722
  e !== null && (o.startTime = e, f = !0);
1724
1723
  }
1725
1724
  }
1726
- ai(e, t);
1725
+ ii(e, t);
1727
1726
  let p = l ?? e.shouldReduceMotion;
1728
- r.start(Gr(t, r, i, p && Jr.has(t) ? { type: !1 } : o, e, f));
1727
+ r.start(Wr(t, r, i, p && qr.has(t) ? { type: !1 } : o, e, f));
1729
1728
  let m = r.animation;
1730
1729
  m && u.push(m);
1731
1730
  }
1732
1731
  if (o) {
1733
1732
  let t = () => N.update(() => {
1734
- o && ri(e, o);
1733
+ o && ni(e, o);
1735
1734
  });
1736
1735
  u.length ? Promise.all(u).then(t) : t();
1737
1736
  }
@@ -1739,38 +1738,38 @@ function ui(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
1739
1738
  }
1740
1739
  //#endregion
1741
1740
  //#region ../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
1742
- function di(e, t, n = {}) {
1741
+ function ui(e, t, n = {}) {
1743
1742
  let r = Z(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
1744
1743
  n.transitionOverride && (i = n.transitionOverride);
1745
- let a = r ? () => Promise.all(ui(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
1744
+ let a = r ? () => Promise.all(li(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
1746
1745
  let { delayChildren: a = 0, staggerChildren: o, staggerDirection: s } = i;
1747
- return fi(e, t, r, a, o, s, n);
1746
+ return di(e, t, r, a, o, s, n);
1748
1747
  } : () => Promise.resolve(), { when: s } = i;
1749
1748
  if (s) {
1750
1749
  let [e, t] = s === "beforeChildren" ? [a, o] : [o, a];
1751
1750
  return e().then(() => t());
1752
1751
  } else return Promise.all([a(), o(n.delay)]);
1753
1752
  }
1754
- function fi(e, t, n = 0, r = 0, i = 0, a = 1, o) {
1753
+ function di(e, t, n = 0, r = 0, i = 0, a = 1, o) {
1755
1754
  let s = [];
1756
- for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(di(c, t, {
1755
+ for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(ui(c, t, {
1757
1756
  ...o,
1758
- delay: n + (typeof r == "function" ? 0 : r) + jr(e.variantChildren, c, r, i, a)
1757
+ delay: n + (typeof r == "function" ? 0 : r) + Ar(e.variantChildren, c, r, i, a)
1759
1758
  }).then(() => c.notify("AnimationComplete", t)));
1760
1759
  return Promise.all(s);
1761
1760
  }
1762
1761
  //#endregion
1763
1762
  //#region ../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
1764
- function pi(e, t, n = {}) {
1763
+ function fi(e, t, n = {}) {
1765
1764
  e.notify("AnimationStart", t);
1766
1765
  let r;
1767
1766
  if (Array.isArray(t)) {
1768
- let i = t.map((t) => di(e, t, n));
1767
+ let i = t.map((t) => ui(e, t, n));
1769
1768
  r = Promise.all(i);
1770
- } else if (typeof t == "string") r = di(e, t, n);
1769
+ } else if (typeof t == "string") r = ui(e, t, n);
1771
1770
  else {
1772
1771
  let i = typeof t == "function" ? Z(e, t, n.custom) : t;
1773
- r = Promise.all(ui(e, i, n));
1772
+ r = Promise.all(li(e, i, n));
1774
1773
  }
1775
1774
  return r.then(() => {
1776
1775
  e.notify("AnimationComplete", t);
@@ -1778,46 +1777,46 @@ function pi(e, t, n = {}) {
1778
1777
  }
1779
1778
  //#endregion
1780
1779
  //#region ../../node_modules/motion-dom/dist/es/value/types/auto.mjs
1781
- var mi = {
1780
+ var pi = {
1782
1781
  test: (e) => e === "auto",
1783
1782
  parse: (e) => e
1784
- }, hi = (e) => (t) => t.test(e), gi = [
1783
+ }, mi = (e) => (t) => t.test(e), hi = [
1785
1784
  F,
1786
1785
  z,
1787
1786
  R,
1788
1787
  L,
1789
- bt,
1790
1788
  yt,
1791
- mi
1792
- ], _i = (e) => gi.find(hi(e));
1789
+ vt,
1790
+ pi
1791
+ ], gi = (e) => hi.find(mi(e));
1793
1792
  //#endregion
1794
1793
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
1795
- function vi(e) {
1796
- return typeof e == "number" ? e === 0 : e === null ? !0 : e === "none" || e === "0" || fe(e);
1794
+ function _i(e) {
1795
+ return typeof e == "number" ? e === 0 : e === null ? !0 : e === "none" || e === "0" || de(e);
1797
1796
  }
1798
1797
  //#endregion
1799
1798
  //#region ../../node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
1800
- var yi = new Set([
1799
+ var vi = new Set([
1801
1800
  "brightness",
1802
1801
  "contrast",
1803
1802
  "saturate",
1804
1803
  "opacity"
1805
1804
  ]);
1806
- function bi(e) {
1805
+ function yi(e) {
1807
1806
  let [t, n] = e.slice(0, -1).split("(");
1808
1807
  if (t === "drop-shadow") return e;
1809
- let [r] = n.match(lt) || [];
1808
+ let [r] = n.match(ct) || [];
1810
1809
  if (!r) return e;
1811
- let i = n.replace(r, ""), a = +!!yi.has(t);
1810
+ let i = n.replace(r, ""), a = +!!vi.has(t);
1812
1811
  return r !== n && (a *= 100), t + "(" + a + i + ")";
1813
1812
  }
1814
- var xi = /\b([a-z-]*)\(.*?\)/gu, Si = {
1813
+ var bi = /\b([a-z-]*)\(.*?\)/gu, xi = {
1815
1814
  ...U,
1816
1815
  getAnimatableNone: (e) => {
1817
- let t = e.match(xi);
1818
- return t ? t.map(bi).join(" ") : e;
1816
+ let t = e.match(bi);
1817
+ return t ? t.map(yi).join(" ") : e;
1819
1818
  }
1820
- }, Ci = {
1819
+ }, Si = {
1821
1820
  ...U,
1822
1821
  getAnimatableNone: (e) => {
1823
1822
  let t = U.parse(e);
@@ -1826,10 +1825,10 @@ var xi = /\b([a-z-]*)\(.*?\)/gu, Si = {
1826
1825
  alpha: 1
1827
1826
  } : e));
1828
1827
  }
1829
- }, wi = {
1828
+ }, Ci = {
1830
1829
  ...F,
1831
1830
  transform: Math.round
1832
- }, Ti = {
1831
+ }, wi = {
1833
1832
  borderWidth: z,
1834
1833
  borderTopWidth: z,
1835
1834
  borderRightWidth: z,
@@ -1884,10 +1883,10 @@ var xi = /\b([a-z-]*)\(.*?\)/gu, Si = {
1884
1883
  rotateX: L,
1885
1884
  rotateY: L,
1886
1885
  rotateZ: L,
1887
- scale: st,
1888
- scaleX: st,
1889
- scaleY: st,
1890
- scaleZ: st,
1886
+ scale: ot,
1887
+ scaleX: ot,
1888
+ scaleY: ot,
1889
+ scaleZ: ot,
1891
1890
  skew: L,
1892
1891
  skewX: L,
1893
1892
  skewY: L,
@@ -1900,16 +1899,16 @@ var xi = /\b([a-z-]*)\(.*?\)/gu, Si = {
1900
1899
  z,
1901
1900
  perspective: z,
1902
1901
  transformPerspective: z,
1903
- opacity: ot,
1904
- originX: xt,
1905
- originY: xt,
1902
+ opacity: at,
1903
+ originX: bt,
1904
+ originY: bt,
1906
1905
  originZ: z,
1907
- zIndex: wi,
1908
- fillOpacity: ot,
1909
- strokeOpacity: ot,
1910
- numOctaves: wi
1911
- }, Ei = {
1912
- ...Ti,
1906
+ zIndex: Ci,
1907
+ fillOpacity: at,
1908
+ strokeOpacity: at,
1909
+ numOctaves: Ci
1910
+ }, Ti = {
1911
+ ...wi,
1913
1912
  color: V,
1914
1913
  backgroundColor: V,
1915
1914
  outlineColor: V,
@@ -1920,33 +1919,33 @@ var xi = /\b([a-z-]*)\(.*?\)/gu, Si = {
1920
1919
  borderRightColor: V,
1921
1920
  borderBottomColor: V,
1922
1921
  borderLeftColor: V,
1923
- filter: Si,
1924
- WebkitFilter: Si,
1925
- mask: Ci,
1926
- WebkitMask: Ci
1927
- }, Di = (e) => Ei[e], Oi = /* @__PURE__ */ new Set([Si, Ci]);
1928
- function ki(e, t) {
1929
- let n = Di(e);
1930
- return Oi.has(n) || (n = U), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1922
+ filter: xi,
1923
+ WebkitFilter: xi,
1924
+ mask: Si,
1925
+ WebkitMask: Si
1926
+ }, Ei = (e) => Ti[e], Di = /* @__PURE__ */ new Set([xi, Si]);
1927
+ function Oi(e, t) {
1928
+ let n = Ei(e);
1929
+ return Di.has(n) || (n = U), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1931
1930
  }
1932
1931
  //#endregion
1933
1932
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
1934
- var Ai = new Set([
1933
+ var ki = new Set([
1935
1934
  "auto",
1936
1935
  "none",
1937
1936
  "0"
1938
1937
  ]);
1939
- function ji(e, t, n) {
1938
+ function Ai(e, t, n) {
1940
1939
  let r = 0, i;
1941
1940
  for (; r < e.length && !i;) {
1942
1941
  let t = e[r];
1943
- typeof t == "string" && !Ai.has(t) && H(t).values.length && (i = e[r]), r++;
1942
+ typeof t == "string" && !ki.has(t) && H(t).values.length && (i = e[r]), r++;
1944
1943
  }
1945
- if (i && n) for (let r of t) e[r] = ki(n, i);
1944
+ if (i && n) for (let r of t) e[r] = Oi(n, i);
1946
1945
  }
1947
1946
  //#endregion
1948
1947
  //#region ../../node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
1949
- var Mi = class extends er {
1948
+ var ji = class extends $n {
1950
1949
  constructor(e, t, n, r, i) {
1951
1950
  super(e, t, n, r, i, !0);
1952
1951
  }
@@ -1956,18 +1955,18 @@ var Mi = class extends er {
1956
1955
  super.readKeyframes();
1957
1956
  for (let n = 0; n < e.length; n++) {
1958
1957
  let r = e[n];
1959
- if (typeof r == "string" && (r = r.trim(), rt(r))) {
1960
- let i = Fr(r, t.current);
1958
+ if (typeof r == "string" && (r = r.trim(), nt(r))) {
1959
+ let i = Pr(r, t.current);
1961
1960
  i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
1962
1961
  }
1963
1962
  }
1964
- if (this.resolveNoneKeyframes(), !Jr.has(n) || e.length !== 2) return;
1965
- let [r, i] = e, a = _i(r), o = _i(i);
1966
- if (at(r) !== at(i) && Y[n]) {
1963
+ if (this.resolveNoneKeyframes(), !qr.has(n) || e.length !== 2) return;
1964
+ let [r, i] = e, a = gi(r), o = gi(i);
1965
+ if (it(r) !== it(i) && Y[n]) {
1967
1966
  this.needsMeasurement = !0;
1968
1967
  return;
1969
1968
  }
1970
- if (a !== o) if (Wn(a) && Wn(o)) for (let t = 0; t < e.length; t++) {
1969
+ if (a !== o) if (Un(a) && Un(o)) for (let t = 0; t < e.length; t++) {
1971
1970
  let n = e[t];
1972
1971
  typeof n == "string" && (e[t] = parseFloat(n));
1973
1972
  }
@@ -1975,8 +1974,8 @@ var Mi = class extends er {
1975
1974
  }
1976
1975
  resolveNoneKeyframes() {
1977
1976
  let { unresolvedKeyframes: e, name: t } = this, n = [];
1978
- for (let t = 0; t < e.length; t++) (e[t] === null || vi(e[t])) && n.push(t);
1979
- n.length && ji(e, n, t);
1977
+ for (let t = 0; t < e.length; t++) (e[t] === null || _i(e[t])) && n.push(t);
1978
+ n.length && Ai(e, n, t);
1980
1979
  }
1981
1980
  measureInitialState() {
1982
1981
  let { element: e, unresolvedKeyframes: t, name: n } = this;
@@ -1998,7 +1997,7 @@ var Mi = class extends er {
1998
1997
  };
1999
1998
  //#endregion
2000
1999
  //#region ../../node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
2001
- function Ni(e, t, n) {
2000
+ function Mi(e, t, n) {
2002
2001
  if (e == null) return [];
2003
2002
  if (e instanceof EventTarget) return [e];
2004
2003
  if (typeof e == "string") {
@@ -2011,25 +2010,25 @@ function Ni(e, t, n) {
2011
2010
  }
2012
2011
  //#endregion
2013
2012
  //#region ../../node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
2014
- var Pi = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
2013
+ var Ni = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
2015
2014
  //#endregion
2016
2015
  //#region ../../node_modules/motion-dom/dist/es/utils/is-html-element.mjs
2017
- function Fi(e) {
2018
- return de(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
2016
+ function Pi(e) {
2017
+ return ue(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
2019
2018
  }
2020
2019
  //#endregion
2021
2020
  //#region ../../node_modules/motion-dom/dist/es/frameloop/microtask.mjs
2022
- var { schedule: Ii, cancel: Li } = /* @__PURE__ */ qe(queueMicrotask, !1), Ri = {
2021
+ var { schedule: Fi, cancel: Ii } = /* @__PURE__ */ Ke(queueMicrotask, !1), Li = {
2023
2022
  x: !1,
2024
2023
  y: !1
2025
2024
  };
2026
- function zi() {
2027
- return Ri.x || Ri.y;
2025
+ function Ri() {
2026
+ return Li.x || Li.y;
2028
2027
  }
2029
2028
  //#endregion
2030
2029
  //#region ../../node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
2031
- function Bi(e, t) {
2032
- let n = Ni(e), r = new AbortController();
2030
+ function zi(e, t) {
2031
+ let n = Mi(e), r = new AbortController();
2033
2032
  return [
2034
2033
  n,
2035
2034
  {
@@ -2042,11 +2041,11 @@ function Bi(e, t) {
2042
2041
  }
2043
2042
  //#endregion
2044
2043
  //#region ../../node_modules/motion-dom/dist/es/gestures/hover.mjs
2045
- function Vi(e) {
2046
- return !(e.pointerType === "touch" || zi());
2044
+ function Bi(e) {
2045
+ return !(e.pointerType === "touch" || Ri());
2047
2046
  }
2048
- function Hi(e, t, n = {}) {
2049
- let [r, i, a] = Bi(e, n);
2047
+ function Vi(e, t, n = {}) {
2048
+ let [r, i, a] = zi(e, n);
2050
2049
  return r.forEach((e) => {
2051
2050
  let n = !1, r = !1, a, o = () => {
2052
2051
  e.removeEventListener("pointerleave", u);
@@ -2066,7 +2065,7 @@ function Hi(e, t, n = {}) {
2066
2065
  }
2067
2066
  };
2068
2067
  e.addEventListener("pointerenter", (n) => {
2069
- if (!Vi(n)) return;
2068
+ if (!Bi(n)) return;
2070
2069
  r = !1;
2071
2070
  let o = t(e, n);
2072
2071
  typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -2075,95 +2074,95 @@ function Hi(e, t, n = {}) {
2075
2074
  }
2076
2075
  //#endregion
2077
2076
  //#region ../../node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
2078
- var Ui = (e, t) => t ? e === t ? !0 : Ui(e, t.parentElement) : !1, Wi = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Gi = new Set([
2077
+ var Hi = (e, t) => t ? e === t ? !0 : Hi(e, t.parentElement) : !1, Ui = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Wi = new Set([
2079
2078
  "BUTTON",
2080
2079
  "INPUT",
2081
2080
  "SELECT",
2082
2081
  "TEXTAREA",
2083
2082
  "A"
2084
2083
  ]);
2085
- function Ki(e) {
2086
- return Gi.has(e.tagName) || e.isContentEditable === !0;
2084
+ function Gi(e) {
2085
+ return Wi.has(e.tagName) || e.isContentEditable === !0;
2087
2086
  }
2088
2087
  //#endregion
2089
2088
  //#region ../../node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs
2090
- var qi = /* @__PURE__ */ new WeakSet();
2089
+ var Ki = /* @__PURE__ */ new WeakSet();
2091
2090
  //#endregion
2092
2091
  //#region ../../node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
2093
- function Ji(e) {
2092
+ function qi(e) {
2094
2093
  return (t) => {
2095
2094
  t.key === "Enter" && e(t);
2096
2095
  };
2097
2096
  }
2098
- function Yi(e, t) {
2097
+ function Ji(e, t) {
2099
2098
  e.dispatchEvent(new PointerEvent("pointer" + t, {
2100
2099
  isPrimary: !0,
2101
2100
  bubbles: !0
2102
2101
  }));
2103
2102
  }
2104
- var Xi = (e, t) => {
2103
+ var Yi = (e, t) => {
2105
2104
  let n = e.currentTarget;
2106
2105
  if (!n) return;
2107
- let r = Ji(() => {
2108
- if (qi.has(n)) return;
2109
- Yi(n, "down");
2110
- let e = Ji(() => {
2111
- Yi(n, "up");
2106
+ let r = qi(() => {
2107
+ if (Ki.has(n)) return;
2108
+ Ji(n, "down");
2109
+ let e = qi(() => {
2110
+ Ji(n, "up");
2112
2111
  });
2113
- n.addEventListener("keyup", e, t), n.addEventListener("blur", () => Yi(n, "cancel"), t);
2112
+ n.addEventListener("keyup", e, t), n.addEventListener("blur", () => Ji(n, "cancel"), t);
2114
2113
  });
2115
2114
  n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
2116
2115
  };
2117
2116
  //#endregion
2118
2117
  //#region ../../node_modules/motion-dom/dist/es/gestures/press/index.mjs
2119
- function Zi(e) {
2120
- return Wi(e) && !zi();
2118
+ function Xi(e) {
2119
+ return Ui(e) && !Ri();
2121
2120
  }
2122
- var Qi = /* @__PURE__ */ new WeakSet();
2123
- function $i(e, t, n = {}) {
2124
- let [r, i, a] = Bi(e, n), o = (e) => {
2121
+ var Zi = /* @__PURE__ */ new WeakSet();
2122
+ function Qi(e, t, n = {}) {
2123
+ let [r, i, a] = zi(e, n), o = (e) => {
2125
2124
  let r = e.currentTarget;
2126
- if (!Zi(e) || Qi.has(e)) return;
2127
- qi.add(r), n.stopPropagation && Qi.add(e);
2125
+ if (!Xi(e) || Zi.has(e)) return;
2126
+ Ki.add(r), n.stopPropagation && Zi.add(e);
2128
2127
  let a = t(r, e), o = (e, t) => {
2129
- window.removeEventListener("pointerup", s), window.removeEventListener("pointercancel", c), qi.has(r) && qi.delete(r), Zi(e) && typeof a == "function" && a(e, { success: t });
2128
+ window.removeEventListener("pointerup", s), window.removeEventListener("pointercancel", c), Ki.has(r) && Ki.delete(r), Xi(e) && typeof a == "function" && a(e, { success: t });
2130
2129
  }, s = (e) => {
2131
- o(e, r === window || r === document || n.useGlobalTarget || Ui(r, e.target));
2130
+ o(e, r === window || r === document || n.useGlobalTarget || Hi(r, e.target));
2132
2131
  }, c = (e) => {
2133
2132
  o(e, !1);
2134
2133
  };
2135
2134
  window.addEventListener("pointerup", s, i), window.addEventListener("pointercancel", c, i);
2136
2135
  };
2137
2136
  return r.forEach((e) => {
2138
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Fi(e) && (e.addEventListener("focus", (e) => Xi(e, i)), !Ki(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
2137
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Pi(e) && (e.addEventListener("focus", (e) => Yi(e, i)), !Gi(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
2139
2138
  }), a;
2140
2139
  }
2141
2140
  //#endregion
2142
2141
  //#region ../../node_modules/motion-dom/dist/es/value/types/utils/find.mjs
2143
- var ea = [
2144
- ...gi,
2142
+ var $i = [
2143
+ ...hi,
2145
2144
  V,
2146
2145
  U
2147
- ], ta = (e) => ea.find(hi(e)), na = () => ({
2146
+ ], ea = (e) => $i.find(mi(e)), ta = () => ({
2148
2147
  min: 0,
2149
2148
  max: 0
2150
- }), ra = () => ({
2151
- x: na(),
2152
- y: na()
2153
- }), ia = /* @__PURE__ */ new WeakMap();
2149
+ }), na = () => ({
2150
+ x: ta(),
2151
+ y: ta()
2152
+ }), ra = /* @__PURE__ */ new WeakMap();
2154
2153
  //#endregion
2155
2154
  //#region ../../node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
2156
- function aa(e) {
2155
+ function ia(e) {
2157
2156
  return typeof e == "object" && !!e && typeof e.start == "function";
2158
2157
  }
2159
2158
  //#endregion
2160
2159
  //#region ../../node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
2161
- function oa(e) {
2160
+ function aa(e) {
2162
2161
  return typeof e == "string" || Array.isArray(e);
2163
2162
  }
2164
2163
  //#endregion
2165
2164
  //#region ../../node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
2166
- var sa = [
2165
+ var oa = [
2167
2166
  "animate",
2168
2167
  "whileInView",
2169
2168
  "whileFocus",
@@ -2171,28 +2170,28 @@ var sa = [
2171
2170
  "whileTap",
2172
2171
  "whileDrag",
2173
2172
  "exit"
2174
- ], ca = ["initial", ...sa];
2173
+ ], sa = ["initial", ...oa];
2175
2174
  //#endregion
2176
2175
  //#region ../../node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
2177
- function la(e) {
2178
- return aa(e.animate) || ca.some((t) => oa(e[t]));
2176
+ function ca(e) {
2177
+ return ia(e.animate) || sa.some((t) => aa(e[t]));
2179
2178
  }
2180
- function ua(e) {
2181
- return !!(la(e) || e.variants);
2179
+ function la(e) {
2180
+ return !!(ca(e) || e.variants);
2182
2181
  }
2183
2182
  //#endregion
2184
2183
  //#region ../../node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
2185
- function da(e, t, n) {
2184
+ function ua(e, t, n) {
2186
2185
  for (let r in t) {
2187
2186
  let i = t[r], a = n[r];
2188
2187
  if (Q(i)) e.addValue(r, i);
2189
- else if (Q(a)) e.addValue(r, $r(i, { owner: e }));
2188
+ else if (Q(a)) e.addValue(r, Qr(i, { owner: e }));
2190
2189
  else if (a !== i) if (e.hasValue(r)) {
2191
2190
  let t = e.getValue(r);
2192
2191
  t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
2193
2192
  } else {
2194
2193
  let t = e.getStaticValue(r);
2195
- e.addValue(r, $r(t === void 0 ? i : t, { owner: e }));
2194
+ e.addValue(r, Qr(t === void 0 ? i : t, { owner: e }));
2196
2195
  }
2197
2196
  }
2198
2197
  for (let r in n) t[r] === void 0 && e.removeValue(r);
@@ -2200,16 +2199,16 @@ function da(e, t, n) {
2200
2199
  }
2201
2200
  //#endregion
2202
2201
  //#region ../../node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
2203
- var fa = { current: null }, pa = { current: !1 }, ma = typeof window < "u";
2204
- function ha() {
2205
- if (pa.current = !0, ma) if (window.matchMedia) {
2206
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => fa.current = e.matches;
2202
+ var da = { current: null }, fa = { current: !1 }, pa = typeof window < "u";
2203
+ function ma() {
2204
+ if (fa.current = !0, pa) if (window.matchMedia) {
2205
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => da.current = e.matches;
2207
2206
  e.addEventListener("change", t), t();
2208
- } else fa.current = !1;
2207
+ } else da.current = !1;
2209
2208
  }
2210
2209
  //#endregion
2211
2210
  //#region ../../node_modules/motion-dom/dist/es/render/VisualElement.mjs
2212
- var ga = [
2211
+ var ha = [
2213
2212
  "AnimationStart",
2214
2213
  "AnimationComplete",
2215
2214
  "Update",
@@ -2217,26 +2216,26 @@ var ga = [
2217
2216
  "LayoutMeasure",
2218
2217
  "LayoutAnimationStart",
2219
2218
  "LayoutAnimationComplete"
2220
- ], _a = {};
2221
- function va(e) {
2222
- _a = e;
2219
+ ], ga = {};
2220
+ function _a(e) {
2221
+ ga = e;
2223
2222
  }
2224
- function ya() {
2225
- return _a;
2223
+ function va() {
2224
+ return ga;
2226
2225
  }
2227
- var ba = class {
2226
+ var ya = class {
2228
2227
  scrapeMotionValuesFromProps(e, t, n) {
2229
2228
  return {};
2230
2229
  }
2231
2230
  constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
2232
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = er, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
2231
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = $n, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
2233
2232
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
2234
2233
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
2235
2234
  let e = P.now();
2236
2235
  this.renderScheduledAt < e && (this.renderScheduledAt = e, N.render(this.render, !1, !0));
2237
2236
  };
2238
2237
  let { latestValues: c, renderState: l } = o;
2239
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = la(t), this.isVariantNode = ua(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2238
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = ca(t), this.isVariantNode = la(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2240
2239
  let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
2241
2240
  for (let e in d) {
2242
2241
  let t = d[e];
@@ -2245,10 +2244,10 @@ var ba = class {
2245
2244
  }
2246
2245
  mount(e) {
2247
2246
  if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
2248
- this.current = e, ia.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((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (pa.current || ha(), this.shouldReduceMotion = fa.current), process.env.NODE_ENV !== "production" && be(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
2247
+ this.current = e, ra.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((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (fa.current || ma(), this.shouldReduceMotion = da.current), process.env.NODE_ENV !== "production" && ye(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
2249
2248
  }
2250
2249
  unmount() {
2251
- this.projection && this.projection.unmount(), Je(this.notifyUpdate), Je(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
2250
+ this.projection && this.projection.unmount(), qe(this.notifyUpdate), qe(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
2252
2251
  for (let e in this.events) this.events[e].clear();
2253
2252
  for (let e in this.features) {
2254
2253
  let t = this.features[e];
@@ -2263,8 +2262,8 @@ var ba = class {
2263
2262
  this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
2264
2263
  }
2265
2264
  bindToMotionValue(e, t) {
2266
- if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && Cr.has(e) && this.current instanceof HTMLElement) {
2267
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new pr({
2265
+ if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && Sr.has(e) && this.current instanceof HTMLElement) {
2266
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new fr({
2268
2267
  element: this.current,
2269
2268
  name: e,
2270
2269
  keyframes: r,
@@ -2291,8 +2290,8 @@ var ba = class {
2291
2290
  }
2292
2291
  updateFeatures() {
2293
2292
  let e = "animation";
2294
- for (e in _a) {
2295
- let t = _a[e];
2293
+ for (e in ga) {
2294
+ let t = ga[e];
2296
2295
  if (!t) continue;
2297
2296
  let { isEnabled: n, Feature: r } = t;
2298
2297
  if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -2305,7 +2304,7 @@ var ba = class {
2305
2304
  this.build(this.renderState, this.latestValues, this.props);
2306
2305
  }
2307
2306
  measureViewportBox() {
2308
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : ra();
2307
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : na();
2309
2308
  }
2310
2309
  getStaticValue(e) {
2311
2310
  return this.latestValues[e];
@@ -2315,13 +2314,13 @@ var ba = class {
2315
2314
  }
2316
2315
  update(e, t) {
2317
2316
  (e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
2318
- for (let t = 0; t < ga.length; t++) {
2319
- let n = ga[t];
2317
+ for (let t = 0; t < ha.length; t++) {
2318
+ let n = ha[t];
2320
2319
  this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
2321
2320
  let r = e["on" + n];
2322
2321
  r && (this.propEventSubscriptions[n] = this.on(n, r));
2323
2322
  }
2324
- this.prevMotionValues = da(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2323
+ this.prevMotionValues = ua(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2325
2324
  }
2326
2325
  getProps() {
2327
2326
  return this.props;
@@ -2357,11 +2356,11 @@ var ba = class {
2357
2356
  getValue(e, t) {
2358
2357
  if (this.props.values && this.props.values[e]) return this.props.values[e];
2359
2358
  let n = this.values.get(e);
2360
- return n === void 0 && t !== void 0 && (n = $r(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
2359
+ return n === void 0 && t !== void 0 && (n = Qr(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
2361
2360
  }
2362
2361
  readValue(e, t) {
2363
2362
  let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
2364
- return n != null && (typeof n == "string" && (ue(n) || fe(n)) ? n = parseFloat(n) : !ta(n) && U.test(t) && (n = ki(e, t)), this.setBaseTarget(e, Q(n) ? n.get() : n)), Q(n) ? n.get() : n;
2363
+ return n != null && (typeof n == "string" && (le(n) || de(n)) ? n = parseFloat(n) : !ea(n) && U.test(t) && (n = Oi(e, t)), this.setBaseTarget(e, Q(n) ? n.get() : n)), Q(n) ? n.get() : n;
2365
2364
  }
2366
2365
  setBaseTarget(e, t) {
2367
2366
  this.baseTarget[e] = t;
@@ -2369,7 +2368,7 @@ var ba = class {
2369
2368
  getBaseTarget(e) {
2370
2369
  let { initial: t } = this.props, n;
2371
2370
  if (typeof t == "string" || typeof t == "object") {
2372
- let r = qr(this.props, t, this.presenceContext?.custom);
2371
+ let r = Kr(this.props, t, this.presenceContext?.custom);
2373
2372
  r && (n = r[e]);
2374
2373
  }
2375
2374
  if (t && n !== void 0) return n;
@@ -2377,17 +2376,17 @@ var ba = class {
2377
2376
  return r !== void 0 && !Q(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
2378
2377
  }
2379
2378
  on(e, t) {
2380
- return this.events[e] || (this.events[e] = new _e()), this.events[e].add(t);
2379
+ return this.events[e] || (this.events[e] = new ge()), this.events[e].add(t);
2381
2380
  }
2382
2381
  notify(e, ...t) {
2383
2382
  this.events[e] && this.events[e].notify(...t);
2384
2383
  }
2385
2384
  scheduleRenderMicrotask() {
2386
- Ii.render(this.render);
2385
+ Fi.render(this.render);
2387
2386
  }
2388
- }, xa = class extends ba {
2387
+ }, ba = class extends ya {
2389
2388
  constructor() {
2390
- super(...arguments), this.KeyframeResolver = Mi;
2389
+ super(...arguments), this.KeyframeResolver = ji;
2391
2390
  }
2392
2391
  sortInstanceNodePosition(e, t) {
2393
2392
  return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -2406,7 +2405,7 @@ var ba = class {
2406
2405
  this.current && (this.current.textContent = `${e}`);
2407
2406
  }));
2408
2407
  }
2409
- }, Sa = class {
2408
+ }, xa = class {
2410
2409
  constructor(e) {
2411
2410
  this.isMounted = !1, this.node = e;
2412
2411
  }
@@ -2414,7 +2413,7 @@ var ba = class {
2414
2413
  };
2415
2414
  //#endregion
2416
2415
  //#region ../../node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
2417
- function Ca({ top: e, left: t, right: n, bottom: r }) {
2416
+ function Sa({ top: e, left: t, right: n, bottom: r }) {
2418
2417
  return {
2419
2418
  x: {
2420
2419
  min: t,
@@ -2426,7 +2425,7 @@ function Ca({ top: e, left: t, right: n, bottom: r }) {
2426
2425
  }
2427
2426
  };
2428
2427
  }
2429
- function wa(e, t) {
2428
+ function Ca(e, t) {
2430
2429
  if (!t) return e;
2431
2430
  let n = t({
2432
2431
  x: e.left,
@@ -2444,20 +2443,20 @@ function wa(e, t) {
2444
2443
  }
2445
2444
  //#endregion
2446
2445
  //#region ../../node_modules/motion-dom/dist/es/projection/utils/measure.mjs
2447
- function Ta(e, t) {
2448
- return Ca(wa(e.getBoundingClientRect(), t));
2446
+ function wa(e, t) {
2447
+ return Sa(Ca(e.getBoundingClientRect(), t));
2449
2448
  }
2450
2449
  //#endregion
2451
2450
  //#region ../../node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs
2452
- var Ea = {
2451
+ var Ta = {
2453
2452
  x: "translateX",
2454
2453
  y: "translateY",
2455
2454
  z: "translateZ",
2456
2455
  transformPerspective: "perspective"
2457
- }, Da = q.length;
2458
- function Oa(e, t, n) {
2456
+ }, Ea = q.length;
2457
+ function Da(e, t, n) {
2459
2458
  let r = "", i = !0;
2460
- for (let a = 0; a < Da; a++) {
2459
+ for (let a = 0; a < Ea; a++) {
2461
2460
  let o = q[a], s = e[o];
2462
2461
  if (s === void 0) continue;
2463
2462
  let c = !0;
@@ -2467,10 +2466,10 @@ function Oa(e, t, n) {
2467
2466
  c = o.startsWith("scale") ? e === 1 : e === 0;
2468
2467
  }
2469
2468
  if (!c || n) {
2470
- let e = Pi(s, Ti[o]);
2469
+ let e = Ni(s, wi[o]);
2471
2470
  if (!c) {
2472
2471
  i = !1;
2473
- let t = Ea[o] || o;
2472
+ let t = Ta[o] || o;
2474
2473
  r += `${t}(${e}) `;
2475
2474
  }
2476
2475
  n && (t[o] = e);
@@ -2480,53 +2479,53 @@ function Oa(e, t, n) {
2480
2479
  }
2481
2480
  //#endregion
2482
2481
  //#region ../../node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
2483
- function ka(e, t, n) {
2482
+ function Oa(e, t, n) {
2484
2483
  let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
2485
2484
  for (let e in t) {
2486
2485
  let n = t[e];
2487
2486
  if (J.has(e)) {
2488
2487
  o = !0;
2489
2488
  continue;
2490
- } else if (tt(e)) {
2489
+ } else if (et(e)) {
2491
2490
  i[e] = n;
2492
2491
  continue;
2493
2492
  } else {
2494
- let t = Pi(n, Ti[e]);
2493
+ let t = Ni(n, wi[e]);
2495
2494
  e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
2496
2495
  }
2497
2496
  }
2498
- if (t.transform || (o || n ? r.transform = Oa(t, e.transform, n) : r.transform &&= "none"), s) {
2497
+ if (t.transform || (o || n ? r.transform = Da(t, e.transform, n) : r.transform &&= "none"), s) {
2499
2498
  let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
2500
2499
  r.transformOrigin = `${e} ${t} ${n}`;
2501
2500
  }
2502
2501
  }
2503
2502
  //#endregion
2504
2503
  //#region ../../node_modules/motion-dom/dist/es/render/html/utils/render.mjs
2505
- function Aa(e, { style: t, vars: n }, r, i) {
2504
+ function ka(e, { style: t, vars: n }, r, i) {
2506
2505
  let a = e.style, o;
2507
2506
  for (o in t) a[o] = t[o];
2508
2507
  for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
2509
2508
  }
2510
2509
  //#endregion
2511
2510
  //#region ../../node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
2512
- function ja(e, t) {
2511
+ function Aa(e, t) {
2513
2512
  return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
2514
2513
  }
2515
- var Ma = { correct: (e, t) => {
2514
+ var ja = { correct: (e, t) => {
2516
2515
  if (!t.target) return e;
2517
2516
  if (typeof e == "string") if (z.test(e)) e = parseFloat(e);
2518
2517
  else return e;
2519
- return `${ja(e, t.target.x)}% ${ja(e, t.target.y)}%`;
2520
- } }, Na = { correct: (e, { treeScale: t, projectionDelta: n }) => {
2518
+ return `${Aa(e, t.target.x)}% ${Aa(e, t.target.y)}%`;
2519
+ } }, Ma = { correct: (e, { treeScale: t, projectionDelta: n }) => {
2521
2520
  let r = e, i = U.parse(e);
2522
2521
  if (i.length > 5) return r;
2523
2522
  let a = U.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
2524
2523
  i[0 + o] /= s, i[1 + o] /= c;
2525
- let l = zt(s, c, .5);
2524
+ let l = Rt(s, c, .5);
2526
2525
  return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
2527
- } }, Pa = {
2526
+ } }, Na = {
2528
2527
  borderRadius: {
2529
- ...Ma,
2528
+ ...ja,
2530
2529
  applyTo: [
2531
2530
  "borderTopLeftRadius",
2532
2531
  "borderTopRightRadius",
@@ -2534,84 +2533,84 @@ var Ma = { correct: (e, t) => {
2534
2533
  "borderBottomRightRadius"
2535
2534
  ]
2536
2535
  },
2537
- borderTopLeftRadius: Ma,
2538
- borderTopRightRadius: Ma,
2539
- borderBottomLeftRadius: Ma,
2540
- borderBottomRightRadius: Ma,
2541
- boxShadow: Na
2536
+ borderTopLeftRadius: ja,
2537
+ borderTopRightRadius: ja,
2538
+ borderBottomLeftRadius: ja,
2539
+ borderBottomRightRadius: ja,
2540
+ boxShadow: Ma
2542
2541
  };
2543
2542
  //#endregion
2544
2543
  //#region ../../node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
2545
- function Fa(e, { layout: t, layoutId: n }) {
2546
- return J.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Pa[e] || e === "opacity");
2544
+ function Pa(e, { layout: t, layoutId: n }) {
2545
+ return J.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Na[e] || e === "opacity");
2547
2546
  }
2548
2547
  //#endregion
2549
2548
  //#region ../../node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
2550
- function Ia(e, t, n) {
2549
+ function Fa(e, t, n) {
2551
2550
  let r = e.style, i = t?.style, a = {};
2552
2551
  if (!r) return a;
2553
- for (let t in r) (Q(r[t]) || i && Q(i[t]) || Fa(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
2552
+ for (let t in r) (Q(r[t]) || i && Q(i[t]) || Pa(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
2554
2553
  return a;
2555
2554
  }
2556
2555
  //#endregion
2557
2556
  //#region ../../node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
2558
- function La(e) {
2557
+ function Ia(e) {
2559
2558
  return window.getComputedStyle(e);
2560
2559
  }
2561
- var Ra = class extends xa {
2560
+ var La = class extends ba {
2562
2561
  constructor() {
2563
- super(...arguments), this.type = "html", this.renderInstance = Aa;
2562
+ super(...arguments), this.type = "html", this.renderInstance = ka;
2564
2563
  }
2565
2564
  readValueFromInstance(e, t) {
2566
- if (J.has(t)) return this.projection?.isProjecting ? Bn(t) : Hn(e, t);
2565
+ if (J.has(t)) return this.projection?.isProjecting ? zn(t) : Vn(e, t);
2567
2566
  {
2568
- let n = La(e), r = (tt(t) ? n.getPropertyValue(t) : n[t]) || 0;
2567
+ let n = Ia(e), r = (et(t) ? n.getPropertyValue(t) : n[t]) || 0;
2569
2568
  return typeof r == "string" ? r.trim() : r;
2570
2569
  }
2571
2570
  }
2572
2571
  measureInstanceViewportBox(e, { transformPagePoint: t }) {
2573
- return Ta(e, t);
2572
+ return wa(e, t);
2574
2573
  }
2575
2574
  build(e, t, n) {
2576
- ka(e, t, n.transformTemplate);
2575
+ Oa(e, t, n.transformTemplate);
2577
2576
  }
2578
2577
  scrapeMotionValuesFromProps(e, t, n) {
2579
- return Ia(e, t, n);
2578
+ return Fa(e, t, n);
2580
2579
  }
2581
- }, za = {
2580
+ }, Ra = {
2582
2581
  offset: "stroke-dashoffset",
2583
2582
  array: "stroke-dasharray"
2584
- }, Ba = {
2583
+ }, za = {
2585
2584
  offset: "strokeDashoffset",
2586
2585
  array: "strokeDasharray"
2587
2586
  };
2588
- function Va(e, t, n = 1, r = 0, i = !0) {
2587
+ function Ba(e, t, n = 1, r = 0, i = !0) {
2589
2588
  e.pathLength = 1;
2590
- let a = i ? za : Ba;
2589
+ let a = i ? Ra : za;
2591
2590
  e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
2592
2591
  }
2593
2592
  //#endregion
2594
2593
  //#region ../../node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
2595
- var Ha = [
2594
+ var Va = [
2596
2595
  "offsetDistance",
2597
2596
  "offsetPath",
2598
2597
  "offsetRotate",
2599
2598
  "offsetAnchor"
2600
2599
  ];
2601
- function Ua(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
2602
- if (ka(e, s, l), c) {
2600
+ function Ha(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
2601
+ if (Oa(e, s, l), c) {
2603
2602
  e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
2604
2603
  return;
2605
2604
  }
2606
2605
  e.attrs = e.style, e.style = {};
2607
2606
  let { attrs: d, style: f } = e;
2608
2607
  d.transform && (f.transform = d.transform, delete d.transform), (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox);
2609
- for (let e of Ha) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
2610
- t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && Va(d, i, a, o, !1);
2608
+ for (let e of Va) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
2609
+ t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && Ba(d, i, a, o, !1);
2611
2610
  }
2612
2611
  //#endregion
2613
2612
  //#region ../../node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs
2614
- var Wa = new Set([
2613
+ var Ua = new Set([
2615
2614
  "baseFrequency",
2616
2615
  "diffuseConstant",
2617
2616
  "kernelMatrix",
@@ -2635,17 +2634,17 @@ var Wa = new Set([
2635
2634
  "startOffset",
2636
2635
  "textLength",
2637
2636
  "lengthAdjust"
2638
- ]), Ga = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2637
+ ]), Wa = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2639
2638
  //#endregion
2640
2639
  //#region ../../node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
2641
- function Ka(e, t, n, r) {
2642
- Aa(e, t, void 0, r);
2643
- for (let n in t.attrs) e.setAttribute(Wa.has(n) ? n : oi(n), t.attrs[n]);
2640
+ function Ga(e, t, n, r) {
2641
+ ka(e, t, void 0, r);
2642
+ for (let n in t.attrs) e.setAttribute(Ua.has(n) ? n : ai(n), t.attrs[n]);
2644
2643
  }
2645
2644
  //#endregion
2646
2645
  //#region ../../node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
2647
- function qa(e, t, n) {
2648
- let r = Ia(e, t, n);
2646
+ function Ka(e, t, n) {
2647
+ let r = Fa(e, t, n);
2649
2648
  for (let n in e) if (Q(e[n]) || Q(t[n])) {
2650
2649
  let t = q.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
2651
2650
  r[t] = e[n];
@@ -2654,49 +2653,49 @@ function qa(e, t, n) {
2654
2653
  }
2655
2654
  //#endregion
2656
2655
  //#region ../../node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
2657
- var Ja = class extends xa {
2656
+ var qa = class extends ba {
2658
2657
  constructor() {
2659
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = ra;
2658
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = na;
2660
2659
  }
2661
2660
  getBaseTargetFromProps(e, t) {
2662
2661
  return e[t];
2663
2662
  }
2664
2663
  readValueFromInstance(e, t) {
2665
2664
  if (J.has(t)) {
2666
- let e = Di(t);
2665
+ let e = Ei(t);
2667
2666
  return e && e.default || 0;
2668
2667
  }
2669
- return t = Wa.has(t) ? t : oi(t), e.getAttribute(t);
2668
+ return t = Ua.has(t) ? t : ai(t), e.getAttribute(t);
2670
2669
  }
2671
2670
  scrapeMotionValuesFromProps(e, t, n) {
2672
- return qa(e, t, n);
2671
+ return Ka(e, t, n);
2673
2672
  }
2674
2673
  build(e, t, n) {
2675
- Ua(e, t, this.isSVGTag, n.transformTemplate, n.style);
2674
+ Ha(e, t, this.isSVGTag, n.transformTemplate, n.style);
2676
2675
  }
2677
2676
  renderInstance(e, t, n, r) {
2678
- Ka(e, t, n, r);
2677
+ Ga(e, t, n, r);
2679
2678
  }
2680
2679
  mount(e) {
2681
- this.isSVGTag = Ga(e.tagName), super.mount(e);
2680
+ this.isSVGTag = Wa(e.tagName), super.mount(e);
2682
2681
  }
2683
- }, Ya = ca.length;
2684
- function Xa(e) {
2682
+ }, Ja = sa.length;
2683
+ function Ya(e) {
2685
2684
  if (!e) return;
2686
2685
  if (!e.isControllingVariants) {
2687
- let t = e.parent && Xa(e.parent) || {};
2686
+ let t = e.parent && Ya(e.parent) || {};
2688
2687
  return e.props.initial !== void 0 && (t.initial = e.props.initial), t;
2689
2688
  }
2690
2689
  let t = {};
2691
- for (let n = 0; n < Ya; n++) {
2692
- let r = ca[n], i = e.props[r];
2693
- (oa(i) || i === !1) && (t[r] = i);
2690
+ for (let n = 0; n < Ja; n++) {
2691
+ let r = sa[n], i = e.props[r];
2692
+ (aa(i) || i === !1) && (t[r] = i);
2694
2693
  }
2695
2694
  return t;
2696
2695
  }
2697
2696
  //#endregion
2698
2697
  //#region ../../node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
2699
- function Za(e, t) {
2698
+ function Xa(e, t) {
2700
2699
  if (!Array.isArray(t)) return !1;
2701
2700
  let n = t.length;
2702
2701
  if (n !== e.length) return !1;
@@ -2705,12 +2704,12 @@ function Za(e, t) {
2705
2704
  }
2706
2705
  //#endregion
2707
2706
  //#region ../../node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
2708
- var Qa = [...sa].reverse(), $a = sa.length;
2709
- function eo(e) {
2710
- return (t) => Promise.all(t.map(({ animation: t, options: n }) => pi(e, t, n)));
2707
+ var Za = [...oa].reverse(), Qa = oa.length;
2708
+ function $a(e) {
2709
+ return (t) => Promise.all(t.map(({ animation: t, options: n }) => fi(e, t, n)));
2711
2710
  }
2712
- function to(e) {
2713
- let t = eo(e), n = ro(), r = !0, i = !1, a = (t) => (n, r) => {
2711
+ function eo(e) {
2712
+ let t = $a(e), n = no(), r = !0, i = !1, a = (t) => (n, r) => {
2714
2713
  let i = Z(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
2715
2714
  if (i) {
2716
2715
  let { transition: e, transitionEnd: t, ...r } = i;
@@ -2726,12 +2725,12 @@ function to(e) {
2726
2725
  t = n(e);
2727
2726
  }
2728
2727
  function s(o) {
2729
- let { props: s } = e, c = Xa(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
2730
- for (let t = 0; t < $a; t++) {
2731
- let p = Qa[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = oa(h), _ = p === o ? m.isActive : null;
2728
+ let { props: s } = e, c = Ya(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
2729
+ for (let t = 0; t < Qa; t++) {
2730
+ let p = Za[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = aa(h), _ = p === o ? m.isActive : null;
2732
2731
  _ === !1 && (f = t);
2733
2732
  let v = h === c[p] && h !== s[p] && g;
2734
- if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || aa(h) || typeof h == "boolean") continue;
2733
+ if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || ia(h) || typeof h == "boolean") continue;
2735
2734
  if (p === "exit" && m.isActive && _ !== !0) {
2736
2735
  m.prevResolvedValues && (d = {
2737
2736
  ...d,
@@ -2739,7 +2738,7 @@ function to(e) {
2739
2738
  });
2740
2739
  continue;
2741
2740
  }
2742
- let y = no(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});
2741
+ let y = to(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});
2743
2742
  _ === !1 && (C = {});
2744
2743
  let { prevResolvedValues: w = {} } = m, T = {
2745
2744
  ...w,
@@ -2753,7 +2752,7 @@ function to(e) {
2753
2752
  let t = C[e], n = w[e];
2754
2753
  if (d.hasOwnProperty(e)) continue;
2755
2754
  let r = !1;
2756
- r = ei(t) && ei(n) ? !Za(t, n) : t !== n, r ? t == null ? u.add(e) : ee(e) : t !== void 0 && u.has(e) ? ee(e) : m.protectedKeys[e] = !0;
2755
+ r = $r(t) && $r(n) ? !Xa(t, n) : t !== n, r ? t == null ? u.add(e) : ee(e) : t !== void 0 && u.has(e) ? ee(e) : m.protectedKeys[e] = !0;
2757
2756
  }
2758
2757
  m.prevProp = h, m.prevResolvedValues = C, m.isActive && (d = {
2759
2758
  ...d,
@@ -2766,7 +2765,7 @@ function to(e) {
2766
2765
  let { parent: r } = e, i = Z(r, t);
2767
2766
  if (r.enteringChildren && i) {
2768
2767
  let { delayChildren: t } = i.transition || {};
2769
- n.delay = jr(r.enteringChildren, e, t);
2768
+ n.delay = Ar(r.enteringChildren, e, t);
2770
2769
  }
2771
2770
  }
2772
2771
  return {
@@ -2802,12 +2801,12 @@ function to(e) {
2802
2801
  setAnimateFunction: o,
2803
2802
  getState: () => n,
2804
2803
  reset: () => {
2805
- n = ro(), i = !0;
2804
+ n = no(), i = !0;
2806
2805
  }
2807
2806
  };
2808
2807
  }
2809
- function no(e, t) {
2810
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !Za(t, e) : !1;
2808
+ function to(e, t) {
2809
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !Xa(t, e) : !1;
2811
2810
  }
2812
2811
  function $(e = !1) {
2813
2812
  return {
@@ -2817,7 +2816,7 @@ function $(e = !1) {
2817
2816
  prevResolvedValues: {}
2818
2817
  };
2819
2818
  }
2820
- function ro() {
2819
+ function no() {
2821
2820
  return {
2822
2821
  animate: $(!0),
2823
2822
  whileInView: $(),
@@ -2830,21 +2829,21 @@ function ro() {
2830
2829
  }
2831
2830
  //#endregion
2832
2831
  //#region ../../node_modules/motion-dom/dist/es/events/add-dom-event.mjs
2833
- function io(e, t, n, r = { passive: !0 }) {
2832
+ function ro(e, t, n, r = { passive: !0 }) {
2834
2833
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n);
2835
2834
  }
2836
2835
  //#endregion
2837
2836
  //#region ../../node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
2838
- function ao(e) {
2837
+ function io(e) {
2839
2838
  return Q(e) ? e.get() : e;
2840
2839
  }
2841
2840
  //#endregion
2842
2841
  //#region ../../node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
2843
- var oo = u({
2842
+ var ao = l({
2844
2843
  transformPagePoint: (e) => e,
2845
2844
  isStatic: !1,
2846
2845
  reducedMotion: "never"
2847
- }), so = u({ strict: !1 }), co = {
2846
+ }), oo = l({ strict: !1 }), so = {
2848
2847
  animation: [
2849
2848
  "animate",
2850
2849
  "variants",
@@ -2881,39 +2880,39 @@ var oo = u({
2881
2880
  "onViewportLeave"
2882
2881
  ],
2883
2882
  layout: ["layout", "layoutId"]
2884
- }, lo = !1;
2885
- function uo() {
2886
- if (lo) return;
2883
+ }, co = !1;
2884
+ function lo() {
2885
+ if (co) return;
2887
2886
  let e = {};
2888
- for (let t in co) e[t] = { isEnabled: (e) => co[t].some((t) => !!e[t]) };
2889
- va(e), lo = !0;
2887
+ for (let t in so) e[t] = { isEnabled: (e) => so[t].some((t) => !!e[t]) };
2888
+ _a(e), co = !0;
2890
2889
  }
2891
- function fo() {
2892
- return uo(), ya();
2890
+ function uo() {
2891
+ return lo(), va();
2893
2892
  }
2894
2893
  //#endregion
2895
2894
  //#region ../../node_modules/framer-motion/dist/es/motion/features/load-features.mjs
2896
- function po(e) {
2897
- let t = fo();
2895
+ function fo(e) {
2896
+ let t = uo();
2898
2897
  for (let n in e) t[n] = {
2899
2898
  ...t[n],
2900
2899
  ...e[n]
2901
2900
  };
2902
- va(t);
2901
+ _a(t);
2903
2902
  }
2904
2903
  //#endregion
2905
2904
  //#region ../../node_modules/framer-motion/dist/es/components/LazyMotion/index.mjs
2906
- function mo({ children: e, features: t, strict: n = !1 }) {
2907
- let [, r] = b(!ho(t)), i = y(void 0);
2908
- if (!ho(t)) {
2905
+ function po({ children: e, features: t, strict: n = !1 }) {
2906
+ let [, r] = y(!mo(t)), i = v(void 0);
2907
+ if (!mo(t)) {
2909
2908
  let { renderer: e, ...n } = t;
2910
- i.current = e, po(n);
2909
+ i.current = e, fo(n);
2911
2910
  }
2912
- return h(() => {
2913
- ho(t) && t().then(({ renderer: e, ...t }) => {
2914
- po(t), i.current = e, r(!0);
2911
+ return m(() => {
2912
+ mo(t) && t().then(({ renderer: e, ...t }) => {
2913
+ fo(t), i.current = e, r(!0);
2915
2914
  });
2916
- }, []), o(so.Provider, {
2915
+ }, []), a(oo.Provider, {
2917
2916
  value: {
2918
2917
  renderer: i.current,
2919
2918
  strict: n
@@ -2921,61 +2920,61 @@ function mo({ children: e, features: t, strict: n = !1 }) {
2921
2920
  children: e
2922
2921
  });
2923
2922
  }
2924
- function ho(e) {
2923
+ function mo(e) {
2925
2924
  return typeof e == "function";
2926
2925
  }
2927
2926
  //#endregion
2928
2927
  //#region ../../node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
2929
- var go = new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
2930
- function _o(e) {
2931
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || go.has(e);
2928
+ var ho = new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
2929
+ function go(e) {
2930
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || ho.has(e);
2932
2931
  }
2933
2932
  //#endregion
2934
2933
  //#region __vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion
2935
- var vo = /* @__PURE__ */ ee({ default: () => yo }), yo, bo = T((() => {
2936
- throw yo = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
2937
- })), xo = (e) => !_o(e);
2938
- function So(e) {
2939
- typeof e == "function" && (xo = (t) => t.startsWith("on") ? !_o(t) : e(t));
2934
+ var _o = /* @__PURE__ */ T({ default: () => vo }), vo, yo = w((() => {
2935
+ throw vo = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
2936
+ })), bo = (e) => !go(e);
2937
+ function xo(e) {
2938
+ typeof e == "function" && (bo = (t) => t.startsWith("on") ? !go(t) : e(t));
2940
2939
  }
2941
2940
  try {
2942
- So((bo(), ne(vo)).default);
2941
+ xo((yo(), te(_o)).default);
2943
2942
  } catch {}
2944
- function Co(e, t, n) {
2943
+ function So(e, t, n) {
2945
2944
  let r = {};
2946
- for (let i in e) i === "values" && typeof e.values == "object" || Q(e[i]) || (xo(i) || n === !0 && _o(i) || !t && !_o(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]);
2945
+ for (let i in e) i === "values" && typeof e.values == "object" || Q(e[i]) || (bo(i) || n === !0 && go(i) || !t && !go(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]);
2947
2946
  return r;
2948
2947
  }
2949
2948
  //#endregion
2950
2949
  //#region ../../node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
2951
- var wo = /* @__PURE__ */ u({});
2950
+ var Co = /* @__PURE__ */ l({});
2952
2951
  //#endregion
2953
2952
  //#region ../../node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
2954
- function To(e, t) {
2955
- if (la(e)) {
2953
+ function wo(e, t) {
2954
+ if (ca(e)) {
2956
2955
  let { initial: t, animate: n } = e;
2957
2956
  return {
2958
- initial: t === !1 || oa(t) ? t : void 0,
2959
- animate: oa(n) ? n : void 0
2957
+ initial: t === !1 || aa(t) ? t : void 0,
2958
+ animate: aa(n) ? n : void 0
2960
2959
  };
2961
2960
  }
2962
2961
  return e.inherit === !1 ? {} : t;
2963
2962
  }
2964
2963
  //#endregion
2965
2964
  //#region ../../node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
2966
- function Eo(e) {
2967
- let { initial: t, animate: n } = To(e, m(wo));
2968
- return v(() => ({
2965
+ function To(e) {
2966
+ let { initial: t, animate: n } = wo(e, p(Co));
2967
+ return _(() => ({
2969
2968
  initial: t,
2970
2969
  animate: n
2971
- }), [Do(t), Do(n)]);
2970
+ }), [Eo(t), Eo(n)]);
2972
2971
  }
2973
- function Do(e) {
2972
+ function Eo(e) {
2974
2973
  return Array.isArray(e) ? e.join(" ") : e;
2975
2974
  }
2976
2975
  //#endregion
2977
2976
  //#region ../../node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
2978
- var Oo = () => ({
2977
+ var Do = () => ({
2979
2978
  style: {},
2980
2979
  transform: {},
2981
2980
  transformOrigin: {},
@@ -2983,42 +2982,42 @@ var Oo = () => ({
2983
2982
  });
2984
2983
  //#endregion
2985
2984
  //#region ../../node_modules/framer-motion/dist/es/render/html/use-props.mjs
2986
- function ko(e, t, n) {
2987
- for (let r in t) !Q(t[r]) && !Fa(r, n) && (e[r] = t[r]);
2985
+ function Oo(e, t, n) {
2986
+ for (let r in t) !Q(t[r]) && !Pa(r, n) && (e[r] = t[r]);
2988
2987
  }
2989
- function Ao({ transformTemplate: e }, t) {
2990
- return v(() => {
2991
- let n = Oo();
2992
- return ka(n, t, e), Object.assign({}, n.vars, n.style);
2988
+ function ko({ transformTemplate: e }, t) {
2989
+ return _(() => {
2990
+ let n = Do();
2991
+ return Oa(n, t, e), Object.assign({}, n.vars, n.style);
2993
2992
  }, [t]);
2994
2993
  }
2995
- function jo(e, t) {
2994
+ function Ao(e, t) {
2996
2995
  let n = e.style || {}, r = {};
2997
- return ko(r, n, e), Object.assign(r, Ao(e, t)), r;
2996
+ return Oo(r, n, e), Object.assign(r, ko(e, t)), r;
2998
2997
  }
2999
- function Mo(e, t) {
3000
- let n = {}, r = jo(e, t);
2998
+ function jo(e, t) {
2999
+ let n = {}, r = Ao(e, t);
3001
3000
  return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
3002
3001
  }
3003
3002
  //#endregion
3004
3003
  //#region ../../node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
3005
- var No = () => ({
3006
- ...Oo(),
3004
+ var Mo = () => ({
3005
+ ...Do(),
3007
3006
  attrs: {}
3008
3007
  });
3009
3008
  //#endregion
3010
3009
  //#region ../../node_modules/framer-motion/dist/es/render/svg/use-props.mjs
3011
- function Po(e, t, n, r) {
3012
- let i = v(() => {
3013
- let n = No();
3014
- return Ua(n, t, Ga(r), e.transformTemplate, e.style), {
3010
+ function No(e, t, n, r) {
3011
+ let i = _(() => {
3012
+ let n = Mo();
3013
+ return Ha(n, t, Wa(r), e.transformTemplate, e.style), {
3015
3014
  ...n.attrs,
3016
3015
  style: { ...n.style }
3017
3016
  };
3018
3017
  }, [t]);
3019
3018
  if (e.style) {
3020
3019
  let t = {};
3021
- ko(t, e.style, e), i.style = {
3020
+ Oo(t, e.style, e), i.style = {
3022
3021
  ...t,
3023
3022
  ...i.style
3024
3023
  };
@@ -3027,7 +3026,7 @@ function Po(e, t, n, r) {
3027
3026
  }
3028
3027
  //#endregion
3029
3028
  //#region ../../node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
3030
- var Fo = [
3029
+ var Po = [
3031
3030
  "animate",
3032
3031
  "circle",
3033
3032
  "defs",
@@ -3056,42 +3055,42 @@ var Fo = [
3056
3055
  ];
3057
3056
  //#endregion
3058
3057
  //#region ../../node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
3059
- function Io(e) {
3060
- return typeof e != "string" || e.includes("-") ? !1 : !!(Fo.indexOf(e) > -1 || /[A-Z]/u.test(e));
3058
+ function Fo(e) {
3059
+ return typeof e != "string" || e.includes("-") ? !1 : !!(Po.indexOf(e) > -1 || /[A-Z]/u.test(e));
3061
3060
  }
3062
3061
  //#endregion
3063
3062
  //#region ../../node_modules/framer-motion/dist/es/render/dom/use-render.mjs
3064
- function Lo(e, t, n, { latestValues: r }, i, a = !1, o) {
3065
- let s = (o ?? Io(e) ? Po : Mo)(t, r, i, e), c = Co(t, typeof e == "string", a), u = e === l ? {} : {
3066
- ...c,
3063
+ function Io(e, t, n, { latestValues: r }, i, a = !1, o) {
3064
+ let s = (o ?? Fo(e) ? No : jo)(t, r, i, e), l = So(t, typeof e == "string", a), d = e === c ? {} : {
3065
+ ...l,
3067
3066
  ...s,
3068
3067
  ref: n
3069
- }, { children: f } = t, p = v(() => Q(f) ? f.get() : f, [f]);
3070
- return d(e, {
3071
- ...u,
3068
+ }, { children: f } = t, p = _(() => Q(f) ? f.get() : f, [f]);
3069
+ return u(e, {
3070
+ ...d,
3072
3071
  children: p
3073
3072
  });
3074
3073
  }
3075
3074
  //#endregion
3076
3075
  //#region ../../node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
3077
- function Ro({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
3076
+ function Lo({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
3078
3077
  return {
3079
- latestValues: zo(n, r, i, e),
3078
+ latestValues: Ro(n, r, i, e),
3080
3079
  renderState: t()
3081
3080
  };
3082
3081
  }
3083
- function zo(e, t, n, r) {
3082
+ function Ro(e, t, n, r) {
3084
3083
  let i = {}, a = r(e, {});
3085
- for (let e in a) i[e] = ao(a[e]);
3086
- let { initial: o, animate: s } = e, c = la(e), l = ua(e);
3084
+ for (let e in a) i[e] = io(a[e]);
3085
+ let { initial: o, animate: s } = e, c = ca(e), l = la(e);
3087
3086
  t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
3088
3087
  let u = n ? n.initial === !1 : !1;
3089
3088
  u ||= o === !1;
3090
3089
  let d = u ? s : o;
3091
- if (d && typeof d != "boolean" && !aa(d)) {
3090
+ if (d && typeof d != "boolean" && !ia(d)) {
3092
3091
  let t = Array.isArray(d) ? d : [d];
3093
3092
  for (let n = 0; n < t.length; n++) {
3094
- let r = qr(e, t[n]);
3093
+ let r = Kr(e, t[n]);
3095
3094
  if (r) {
3096
3095
  let { transitionEnd: e, transition: t, ...n } = r;
3097
3096
  for (let e in n) {
@@ -3108,25 +3107,25 @@ function zo(e, t, n, r) {
3108
3107
  }
3109
3108
  return i;
3110
3109
  }
3111
- var Bo = (e) => (t, n) => {
3112
- let r = m(wo), i = m(oe), a = () => Ro(e, t, r, i);
3113
- return n ? a() : ie(a);
3114
- }, Vo = /* @__PURE__ */ Bo({
3115
- scrapeMotionValuesFromProps: Ia,
3116
- createRenderState: Oo
3117
- }), Ho = /* @__PURE__ */ Bo({
3118
- scrapeMotionValuesFromProps: qa,
3119
- createRenderState: No
3120
- }), Uo = Symbol.for("motionComponentSymbol");
3110
+ var zo = (e) => (t, n) => {
3111
+ let r = p(Co), i = p(ae), a = () => Lo(e, t, r, i);
3112
+ return n ? a() : re(a);
3113
+ }, Bo = /* @__PURE__ */ zo({
3114
+ scrapeMotionValuesFromProps: Fa,
3115
+ createRenderState: Do
3116
+ }), Vo = /* @__PURE__ */ zo({
3117
+ scrapeMotionValuesFromProps: Ka,
3118
+ createRenderState: Mo
3119
+ }), Ho = Symbol.for("motionComponentSymbol");
3121
3120
  //#endregion
3122
3121
  //#region ../../node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
3123
- function Wo(e, t, n) {
3124
- let r = y(n);
3125
- g(() => {
3122
+ function Uo(e, t, n) {
3123
+ let r = v(n);
3124
+ h(() => {
3126
3125
  r.current = n;
3127
3126
  });
3128
- let i = y(null);
3129
- return p((n) => {
3127
+ let i = v(null);
3128
+ return f((n) => {
3130
3129
  n && e.onMount?.(n);
3131
3130
  let a = r.current;
3132
3131
  if (typeof a == "function") if (n) {
@@ -3139,16 +3138,16 @@ function Wo(e, t, n) {
3139
3138
  }
3140
3139
  //#endregion
3141
3140
  //#region ../../node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
3142
- var Go = u({});
3141
+ var Wo = l({});
3143
3142
  //#endregion
3144
3143
  //#region ../../node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
3145
- function Ko(e) {
3144
+ function Go(e) {
3146
3145
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
3147
3146
  }
3148
3147
  //#endregion
3149
3148
  //#region ../../node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
3150
- function qo(e, t, n, r, i, a) {
3151
- let { visualElement: o } = m(wo), s = m(so), c = m(oe), l = m(oo), u = l.reducedMotion, d = l.skipAnimations, f = y(null), p = y(!1);
3149
+ function Ko(e, t, n, r, i, a) {
3150
+ let { visualElement: o } = p(Co), s = p(oo), c = p(ae), l = p(ao), u = l.reducedMotion, d = l.skipAnimations, f = v(null), g = v(!1);
3152
3151
  r ||= s.renderer, !f.current && r && (f.current = r(e, {
3153
3152
  visualState: t,
3154
3153
  parent: o,
@@ -3158,28 +3157,28 @@ function qo(e, t, n, r, i, a) {
3158
3157
  reducedMotionConfig: u,
3159
3158
  skipAnimations: d,
3160
3159
  isSVG: a
3161
- }), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
3162
- let _ = f.current, v = m(Go);
3163
- _ && !_.projection && i && (_.type === "html" || _.type === "svg") && Jo(f.current, n, i, v);
3164
- let b = y(!1);
3165
- g(() => {
3160
+ }), g.current && f.current && (f.current.manuallyAnimateOnMount = !0));
3161
+ let _ = f.current, y = p(Wo);
3162
+ _ && !_.projection && i && (_.type === "html" || _.type === "svg") && qo(f.current, n, i, y);
3163
+ let b = v(!1);
3164
+ h(() => {
3166
3165
  _ && b.current && _.update(n, c);
3167
3166
  });
3168
- let x = n[si], S = y(!!x && typeof window < "u" && !window.MotionHandoffIsComplete?.(x) && window.MotionHasOptimisedAnimation?.(x));
3169
- return ae(() => {
3170
- p.current = !0, _ && (b.current = !0, window.MotionIsMounted = !0, _.updateFeatures(), _.scheduleRenderMicrotask(), S.current && _.animationState && _.animationState.animateChanges());
3171
- }), h(() => {
3167
+ let x = n[oi], S = v(!!x && typeof window < "u" && !window.MotionHandoffIsComplete?.(x) && window.MotionHasOptimisedAnimation?.(x));
3168
+ return ie(() => {
3169
+ g.current = !0, _ && (b.current = !0, window.MotionIsMounted = !0, _.updateFeatures(), _.scheduleRenderMicrotask(), S.current && _.animationState && _.animationState.animateChanges());
3170
+ }), m(() => {
3172
3171
  _ && (!S.current && _.animationState && _.animationState.animateChanges(), S.current &&= (queueMicrotask(() => {
3173
3172
  window.MotionHandoffMarkAsComplete?.(x);
3174
3173
  }), !1), _.enteringChildren = void 0);
3175
3174
  }), _;
3176
3175
  }
3177
- function Jo(e, t, n, r) {
3176
+ function qo(e, t, n, r) {
3178
3177
  let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t;
3179
- e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Yo(e.parent)), e.projection.setOptions({
3178
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Jo(e.parent)), e.projection.setOptions({
3180
3179
  layoutId: i,
3181
3180
  layout: a,
3182
- alwaysMeasureLayout: !!o || s && Ko(s),
3181
+ alwaysMeasureLayout: !!o || s && Go(s),
3183
3182
  visualElement: e,
3184
3183
  animationType: typeof a == "string" ? a : "both",
3185
3184
  initialPromotionConfig: r,
@@ -3189,50 +3188,50 @@ function Jo(e, t, n, r) {
3189
3188
  layoutAnchor: u
3190
3189
  });
3191
3190
  }
3192
- function Yo(e) {
3193
- if (e) return e.options.allowProjection === !1 ? Yo(e.parent) : e.projection;
3191
+ function Jo(e) {
3192
+ if (e) return e.options.allowProjection === !1 ? Jo(e.parent) : e.projection;
3194
3193
  }
3195
3194
  //#endregion
3196
3195
  //#region ../../node_modules/framer-motion/dist/es/motion/index.mjs
3197
- function Xo(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
3198
- r && po(r);
3199
- let a = n ? n === "svg" : Io(e), c = a ? Ho : Vo;
3196
+ function Yo(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
3197
+ r && fo(r);
3198
+ let s = n ? n === "svg" : Fo(e), c = s ? Vo : Bo;
3200
3199
  function l(n, l) {
3201
3200
  let u, d = {
3202
- ...m(oo),
3201
+ ...p(ao),
3203
3202
  ...n,
3204
- layoutId: Zo(n)
3205
- }, { isStatic: f } = d, p = Eo(n), h = c(n, f);
3203
+ layoutId: Xo(n)
3204
+ }, { isStatic: f } = d, m = To(n), h = c(n, f);
3206
3205
  if (!f && typeof window < "u") {
3207
- Qo(d, r);
3208
- let t = $o(d);
3209
- u = t.MeasureLayout, p.visualElement = qo(e, h, d, i, t.ProjectionNode, a);
3206
+ Zo(d, r);
3207
+ let t = Qo(d);
3208
+ u = t.MeasureLayout, m.visualElement = Ko(e, h, d, i, t.ProjectionNode, s);
3210
3209
  }
3211
- return s(wo.Provider, {
3212
- value: p,
3213
- children: [u && p.visualElement ? o(u, {
3214
- visualElement: p.visualElement,
3210
+ return o(Co.Provider, {
3211
+ value: m,
3212
+ children: [u && m.visualElement ? a(u, {
3213
+ visualElement: m.visualElement,
3215
3214
  ...d
3216
- }) : null, Lo(e, n, Wo(h, p.visualElement, l), h, f, t, a)]
3215
+ }) : null, Io(e, n, Uo(h, m.visualElement, l), h, f, t, s)]
3217
3216
  });
3218
3217
  }
3219
3218
  l.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
3220
- let u = f(l);
3221
- return u[Uo] = e, u;
3219
+ let u = d(l);
3220
+ return u[Ho] = e, u;
3222
3221
  }
3223
- function Zo({ layoutId: e }) {
3224
- let t = m(re).id;
3222
+ function Xo({ layoutId: e }) {
3223
+ let t = p(ne).id;
3225
3224
  return t && e !== void 0 ? t + "-" + e : e;
3226
3225
  }
3227
- function Qo(e, t) {
3228
- let n = m(so).strict;
3226
+ function Zo(e, t) {
3227
+ let n = p(oo).strict;
3229
3228
  if (process.env.NODE_ENV !== "production" && t && n) {
3230
3229
  let t = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
3231
3230
  e.ignoreStrict ? D(!1, t, "lazy-strict-mode") : O(!1, t, "lazy-strict-mode");
3232
3231
  }
3233
3232
  }
3234
- function $o(e) {
3235
- let { drag: t, layout: n } = fo();
3233
+ function Qo(e) {
3234
+ let { drag: t, layout: n } = uo();
3236
3235
  if (!t && !n) return {};
3237
3236
  let r = {
3238
3237
  ...t,
@@ -3245,13 +3244,13 @@ function $o(e) {
3245
3244
  }
3246
3245
  //#endregion
3247
3246
  //#region ../../node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
3248
- var es = (e, t) => t.isSVG ?? Io(e) ? new Ja(t) : new Ra(t, { allowProjection: e !== l }), ts = class extends Sa {
3247
+ var $o = (e, t) => t.isSVG ?? Fo(e) ? new qa(t) : new La(t, { allowProjection: e !== c }), es = class extends xa {
3249
3248
  constructor(e) {
3250
- super(e), e.animationState ||= to(e);
3249
+ super(e), e.animationState ||= eo(e);
3251
3250
  }
3252
3251
  updateAnimationControlsSubscription() {
3253
3252
  let { animate: e } = this.node.getProps();
3254
- aa(e) && (this.unmountControls = e.subscribe(this.node));
3253
+ ia(e) && (this.unmountControls = e.subscribe(this.node));
3255
3254
  }
3256
3255
  mount() {
3257
3256
  this.updateAnimationControlsSubscription();
@@ -3263,11 +3262,11 @@ var es = (e, t) => t.isSVG ?? Io(e) ? new Ja(t) : new Ra(t, { allowProjection: e
3263
3262
  unmount() {
3264
3263
  this.node.animationState.reset(), this.unmountControls?.();
3265
3264
  }
3266
- }, ns = 0, rs = {
3267
- animation: { Feature: ts },
3268
- exit: { Feature: class extends Sa {
3265
+ }, ts = 0, ns = {
3266
+ animation: { Feature: es },
3267
+ exit: { Feature: class extends xa {
3269
3268
  constructor() {
3270
- super(...arguments), this.id = ns++, this.isExitComplete = !1;
3269
+ super(...arguments), this.id = ts++, this.isExitComplete = !1;
3271
3270
  }
3272
3271
  update() {
3273
3272
  if (!this.node.presenceContext) return;
@@ -3302,7 +3301,7 @@ var es = (e, t) => t.isSVG ?? Io(e) ? new Ja(t) : new Ra(t, { allowProjection: e
3302
3301
  };
3303
3302
  //#endregion
3304
3303
  //#region ../../node_modules/framer-motion/dist/es/events/event-info.mjs
3305
- function is(e) {
3304
+ function rs(e) {
3306
3305
  return { point: {
3307
3306
  x: e.pageX,
3308
3307
  y: e.pageY
@@ -3310,19 +3309,19 @@ function is(e) {
3310
3309
  }
3311
3310
  //#endregion
3312
3311
  //#region ../../node_modules/framer-motion/dist/es/gestures/hover.mjs
3313
- function as(e, t, n) {
3312
+ function is(e, t, n) {
3314
3313
  let { props: r } = e;
3315
3314
  e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
3316
3315
  let i = r["onHover" + n];
3317
- i && N.postRender(() => i(t, is(t)));
3316
+ i && N.postRender(() => i(t, rs(t)));
3318
3317
  }
3319
- var os = class extends Sa {
3318
+ var as = class extends xa {
3320
3319
  mount() {
3321
3320
  let { current: e } = this.node;
3322
- e && (this.unmount = Hi(e, (e, t) => (as(this.node, t, "Start"), (e) => as(this.node, e, "End"))));
3321
+ e && (this.unmount = Vi(e, (e, t) => (is(this.node, t, "Start"), (e) => is(this.node, e, "End"))));
3323
3322
  }
3324
3323
  unmount() {}
3325
- }, ss = class extends Sa {
3324
+ }, os = class extends xa {
3326
3325
  constructor() {
3327
3326
  super(...arguments), this.isActive = !1;
3328
3327
  }
@@ -3339,57 +3338,57 @@ var os = class extends Sa {
3339
3338
  !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
3340
3339
  }
3341
3340
  mount() {
3342
- this.unmount = he(io(this.node.current, "focus", () => this.onFocus()), io(this.node.current, "blur", () => this.onBlur()));
3341
+ this.unmount = me(ro(this.node.current, "focus", () => this.onFocus()), ro(this.node.current, "blur", () => this.onBlur()));
3343
3342
  }
3344
3343
  unmount() {}
3345
3344
  };
3346
3345
  //#endregion
3347
3346
  //#region ../../node_modules/framer-motion/dist/es/gestures/press.mjs
3348
- function cs(e, t, n) {
3347
+ function ss(e, t, n) {
3349
3348
  let { props: r } = e;
3350
3349
  if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
3351
3350
  e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
3352
3351
  let i = r["onTap" + (n === "End" ? "" : n)];
3353
- i && N.postRender(() => i(t, is(t)));
3352
+ i && N.postRender(() => i(t, rs(t)));
3354
3353
  }
3355
- var ls = class extends Sa {
3354
+ var cs = class extends xa {
3356
3355
  mount() {
3357
3356
  let { current: e } = this.node;
3358
3357
  if (!e) return;
3359
3358
  let { globalTapTarget: t, propagate: n } = this.node.props;
3360
- this.unmount = $i(e, (e, t) => (cs(this.node, t, "Start"), (e, { success: t }) => cs(this.node, e, t ? "End" : "Cancel")), {
3359
+ this.unmount = Qi(e, (e, t) => (ss(this.node, t, "Start"), (e, { success: t }) => ss(this.node, e, t ? "End" : "Cancel")), {
3361
3360
  useGlobalTarget: t,
3362
3361
  stopPropagation: n?.tap === !1
3363
3362
  });
3364
3363
  }
3365
3364
  unmount() {}
3366
- }, us = /* @__PURE__ */ new WeakMap(), ds = /* @__PURE__ */ new WeakMap(), fs = (e) => {
3367
- let t = us.get(e.target);
3365
+ }, ls = /* @__PURE__ */ new WeakMap(), us = /* @__PURE__ */ new WeakMap(), ds = (e) => {
3366
+ let t = ls.get(e.target);
3368
3367
  t && t(e);
3369
- }, ps = (e) => {
3370
- e.forEach(fs);
3368
+ }, fs = (e) => {
3369
+ e.forEach(ds);
3371
3370
  };
3372
- function ms({ root: e, ...t }) {
3371
+ function ps({ root: e, ...t }) {
3373
3372
  let n = e || document;
3374
- ds.has(n) || ds.set(n, {});
3375
- let r = ds.get(n), i = JSON.stringify(t);
3376
- return r[i] || (r[i] = new IntersectionObserver(ps, {
3373
+ us.has(n) || us.set(n, {});
3374
+ let r = us.get(n), i = JSON.stringify(t);
3375
+ return r[i] || (r[i] = new IntersectionObserver(fs, {
3377
3376
  root: e,
3378
3377
  ...t
3379
3378
  })), r[i];
3380
3379
  }
3381
- function hs(e, t, n) {
3382
- let r = ms(t);
3383
- return us.set(e, n), r.observe(e), () => {
3384
- us.delete(e), r.unobserve(e);
3380
+ function ms(e, t, n) {
3381
+ let r = ps(t);
3382
+ return ls.set(e, n), r.observe(e), () => {
3383
+ ls.delete(e), r.unobserve(e);
3385
3384
  };
3386
3385
  }
3387
3386
  //#endregion
3388
3387
  //#region ../../node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
3389
- var gs = {
3388
+ var hs = {
3390
3389
  some: 0,
3391
3390
  all: 1
3392
- }, _s = class extends Sa {
3391
+ }, gs = class extends xa {
3393
3392
  constructor() {
3394
3393
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
3395
3394
  }
@@ -3398,9 +3397,9 @@ var gs = {
3398
3397
  let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
3399
3398
  root: t ? t.current : void 0,
3400
3399
  rootMargin: n,
3401
- threshold: typeof r == "number" ? r : gs[r]
3400
+ threshold: typeof r == "number" ? r : hs[r]
3402
3401
  };
3403
- this.stopObserver = hs(this.node.current, a, (e) => {
3402
+ this.stopObserver = ms(this.node.current, a, (e) => {
3404
3403
  let { isIntersecting: t } = e;
3405
3404
  if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
3406
3405
  t && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", t);
@@ -3418,43 +3417,40 @@ var gs = {
3418
3417
  "amount",
3419
3418
  "margin",
3420
3419
  "root"
3421
- ].some(vs(e, t)) && this.startObserver();
3420
+ ].some(_s(e, t)) && this.startObserver();
3422
3421
  }
3423
3422
  unmount() {
3424
3423
  this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
3425
3424
  }
3426
3425
  };
3427
- function vs({ viewport: e = {} }, { viewport: t = {} } = {}) {
3426
+ function _s({ viewport: e = {} }, { viewport: t = {} } = {}) {
3428
3427
  return (n) => e[n] !== t[n];
3429
3428
  }
3430
3429
  //#endregion
3431
3430
  //#region ../../node_modules/framer-motion/dist/es/motion/features/gestures.mjs
3432
- var ys = {
3433
- inView: { Feature: _s },
3434
- tap: { Feature: ls },
3435
- focus: { Feature: ss },
3436
- hover: { Feature: os }
3437
- }, bs = {
3438
- renderer: es,
3439
- ...rs,
3440
- ...ys
3431
+ var vs = {
3432
+ inView: { Feature: gs },
3433
+ tap: { Feature: cs },
3434
+ focus: { Feature: os },
3435
+ hover: { Feature: as }
3436
+ }, ys = {
3437
+ renderer: $o,
3438
+ ...ns,
3439
+ ...vs
3441
3440
  };
3442
3441
  //#endregion
3443
3442
  //#region ../../node_modules/framer-motion/dist/es/render/components/m/create.mjs
3444
- function xs(e, t) {
3445
- return Xo(e, t);
3443
+ function bs(e, t) {
3444
+ return Yo(e, t);
3446
3445
  }
3447
3446
  //#endregion
3448
3447
  //#region ../../node_modules/framer-motion/dist/es/render/components/m/elements.mjs
3449
- var Ss = /* @__PURE__ */ xs("div"), Cs = {
3450
- light: { shadow: "2" },
3451
- dark: {}
3452
- }, ws = c.createContext({
3448
+ var xs = /* @__PURE__ */ bs("div"), Ss = s.createContext({
3453
3449
  groupOpen: !1,
3454
3450
  setGroupOpen: () => {}
3455
- }), Ts = ({ open: e, delay: t = 600 }) => {
3456
- let n = c.useContext(ws);
3457
- return c.useEffect(() => {
3451
+ }), Cs = ({ open: e, delay: t = 600 }) => {
3452
+ let n = s.useContext(Ss);
3453
+ return s.useEffect(() => {
3458
3454
  let r = null;
3459
3455
  return n.setGroupOpen && (e === !0 && n.setGroupOpen(!0), e === !1 && (r = setTimeout(() => {
3460
3456
  n.setGroupOpen && n.setGroupOpen(!1);
@@ -3466,95 +3462,91 @@ var Ss = /* @__PURE__ */ xs("div"), Cs = {
3466
3462
  n,
3467
3463
  t
3468
3464
  ]), { groupOpen: n.groupOpen };
3469
- }, Es = ({ children: e }) => {
3470
- let [t, n] = c.useState(!1);
3471
- return /* @__PURE__ */ o(ws.Provider, {
3465
+ }, ws = ({ children: e }) => {
3466
+ let [t, n] = s.useState(!1);
3467
+ return /* @__PURE__ */ a(Ss.Provider, {
3472
3468
  value: {
3473
3469
  groupOpen: t,
3474
3470
  setGroupOpen: n
3475
3471
  },
3476
3472
  children: e
3477
3473
  });
3478
- }, Ds = ({ delayDuration: l = 400, skipDelayDuration: u, disableHoverableContent: d, defaultOpen: f, open: p, onOpenChange: m, "aria-label": h, onEscapeKeyDown: g, onPointerDownOutside: _, forceMount: v, side: y = "bottom", sideOffset: b = 4, align: x = "center", alignOffset: S, avoidCollisions: C, collisionBoundary: w, collisionPadding: T, arrowPadding: ee, sticky: te, hideWhenDetached: ne, skipAnimation: re, label: ie, labelProps: ae, enabled: oe = !0, appearance: se = "dark", triggerRef: ce, children: E }) => {
3479
- let [le, D] = t({
3480
- prop: p,
3481
- onChange: m,
3482
- defaultProp: f ?? !1
3483
- }), { groupOpen: O } = Ts({
3484
- open: !!le,
3485
- delay: l
3486
- }), k = c.Children.toArray(E).some((e) => c.isValidElement(e) ? e.props.disabled : !1), ue = O || k ? 0 : l, de = !O;
3487
- return /* @__PURE__ */ o(mo, {
3488
- features: bs,
3489
- children: /* @__PURE__ */ o(e.Provider, {
3490
- delayDuration: ue,
3491
- skipDelayDuration: u,
3492
- disableHoverableContent: d,
3493
- children: /* @__PURE__ */ s(e.Root, {
3494
- open: oe === !1 ? !1 : le,
3495
- onOpenChange: D,
3496
- children: [/* @__PURE__ */ o(e.Trigger, {
3474
+ }, Ts = ({ delayDuration: c = 400, skipDelayDuration: l, disableHoverableContent: u, defaultOpen: d, open: f, onOpenChange: p, "aria-label": m, onEscapeKeyDown: h, onPointerDownOutside: g, forceMount: _, side: v = "bottom", sideOffset: y = 4, align: b = "center", alignOffset: x, avoidCollisions: S, collisionBoundary: C, collisionPadding: w, arrowPadding: T, sticky: ee, hideWhenDetached: te, skipAnimation: ne, label: re, labelProps: ie, enabled: ae = !0, triggerRef: oe, children: se }) => {
3475
+ let [E, ce] = t({
3476
+ prop: f,
3477
+ onChange: p,
3478
+ defaultProp: d ?? !1
3479
+ }), { groupOpen: D } = Cs({
3480
+ open: !!E,
3481
+ delay: c
3482
+ }), O = s.Children.toArray(se).some((e) => s.isValidElement(e) ? e.props.disabled : !1), k = D || O ? 0 : c, le = !D;
3483
+ return /* @__PURE__ */ a(po, {
3484
+ features: ys,
3485
+ children: /* @__PURE__ */ a(e.Provider, {
3486
+ delayDuration: k,
3487
+ skipDelayDuration: l,
3488
+ disableHoverableContent: u,
3489
+ children: /* @__PURE__ */ o(e.Root, {
3490
+ open: ae === !1 ? !1 : E,
3491
+ onOpenChange: ce,
3492
+ children: [/* @__PURE__ */ a(e.Trigger, {
3497
3493
  asChild: !0,
3498
- ref: ce,
3499
- children: /* @__PURE__ */ o(r, { children: E })
3500
- }), /* @__PURE__ */ o(e.Portal, { children: /* @__PURE__ */ o(e.Content, {
3501
- "aria-label": h,
3502
- onEscapeKeyDown: g,
3503
- onPointerDownOutside: _,
3504
- forceMount: v,
3505
- side: y,
3506
- sideOffset: b,
3507
- align: x,
3508
- alignOffset: S,
3509
- avoidCollisions: C,
3510
- collisionBoundary: w,
3511
- collisionPadding: T,
3512
- arrowPadding: ee,
3513
- sticky: te,
3514
- hideWhenDetached: ne,
3494
+ ref: oe,
3495
+ children: /* @__PURE__ */ a(n, { children: se })
3496
+ }), /* @__PURE__ */ a(e.Portal, { children: /* @__PURE__ */ a(e.Content, {
3497
+ "aria-label": m,
3498
+ onEscapeKeyDown: h,
3499
+ onPointerDownOutside: g,
3500
+ forceMount: _,
3501
+ side: v,
3502
+ sideOffset: y,
3503
+ align: b,
3504
+ alignOffset: x,
3505
+ avoidCollisions: S,
3506
+ collisionBoundary: C,
3507
+ collisionPadding: w,
3508
+ arrowPadding: T,
3509
+ sticky: ee,
3510
+ hideWhenDetached: te,
3515
3511
  style: { zIndex: "var(--tgph-zIndex-tooltip)" },
3516
- children: /* @__PURE__ */ o(n, {
3517
- appearance: se,
3518
- asChild: !0,
3519
- children: /* @__PURE__ */ o(i, {
3520
- as: Ss,
3521
- className: "tgph",
3522
- initial: de && !re ? {
3523
- opacity: 0,
3524
- scale: .5,
3525
- ...((e) => {
3526
- if (e === "top") return { y: -5 };
3527
- if (e === "bottom") return { y: 5 };
3528
- if (e === "left") return { x: -5 };
3529
- if (e === "right") return { x: 5 };
3530
- })(y)
3531
- } : {},
3532
- animate: {
3533
- opacity: 1,
3534
- scale: 1,
3535
- x: 0,
3536
- y: 0
3537
- },
3538
- transition: {
3539
- duration: .1,
3540
- type: "spring",
3541
- bounce: 0
3542
- },
3543
- bg: "gray-1",
3544
- rounded: "3",
3545
- py: "2",
3546
- px: "3",
3547
- align: "center",
3548
- justify: "center",
3549
- style: { transformOrigin: "var(--radix-tooltip-content-transform-origin)" },
3550
- ...ae ? { labelProps: ae } : {},
3551
- ...Cs[se],
3552
- children: typeof ie == "string" ? /* @__PURE__ */ o(a, {
3553
- as: "span",
3554
- size: "1",
3555
- children: ie
3556
- }) : ie
3557
- })
3512
+ children: /* @__PURE__ */ a(r, {
3513
+ as: xs,
3514
+ className: "tgph",
3515
+ initial: le && !ne ? {
3516
+ opacity: 0,
3517
+ scale: .8,
3518
+ ...((e) => {
3519
+ if (e === "top") return { y: -5 };
3520
+ if (e === "bottom") return { y: 5 };
3521
+ if (e === "left") return { x: -5 };
3522
+ if (e === "right") return { x: 5 };
3523
+ })(v)
3524
+ } : {},
3525
+ animate: {
3526
+ opacity: 1,
3527
+ scale: 1,
3528
+ x: 0,
3529
+ y: 0
3530
+ },
3531
+ transition: {
3532
+ duration: .1,
3533
+ type: "spring",
3534
+ bounce: 0
3535
+ },
3536
+ bg: "surface-1",
3537
+ shadow: "2",
3538
+ rounded: "3",
3539
+ py: "1_5",
3540
+ px: "2",
3541
+ align: "center",
3542
+ justify: "center",
3543
+ style: { transformOrigin: "var(--radix-tooltip-content-transform-origin)" },
3544
+ ...ie ? { labelProps: ie } : {},
3545
+ children: typeof re == "string" ? /* @__PURE__ */ a(i, {
3546
+ as: "span",
3547
+ size: "1",
3548
+ children: re
3549
+ }) : re
3558
3550
  })
3559
3551
  }) })]
3560
3552
  })
@@ -3562,6 +3554,6 @@ var Ss = /* @__PURE__ */ xs("div"), Cs = {
3562
3554
  });
3563
3555
  };
3564
3556
  //#endregion
3565
- export { Ds as Tooltip, Es as TooltipGroupProvider };
3557
+ export { Ts as Tooltip, ws as TooltipGroupProvider };
3566
3558
 
3567
3559
  //# sourceMappingURL=index.mjs.map