react-motion-modal 1.0.8 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,17 +1,97 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-font-weight:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-semibold:600;--radius-md:.375rem;--radius-xl:.75rem;--blur-sm:8px;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.top-0{top:calc(var(--spacing)*0)}.top-1\\/2{top:50%}.right-0{right:calc(var(--spacing)*0)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mt-4{margin-top:calc(var(--spacing)*4)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.flex{display:flex}.h-screen{height:100vh}.max-h-screen{max-height:100vh}.w-screen{width:100vw}.max-w-screen{max-width:100vw}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-2{gap:calc(var(--spacing)*2)}.overflow-auto{overflow:auto}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.bg-black{background-color:var(--color-black)}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in oklab,var(--color-black)40%,transparent)}}.bg-blue-400{background-color:var(--color-blue-400)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-white{background-color:var(--color-white)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-2{padding-block:calc(var(--spacing)*2)}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-all{word-break:break-all}.text-blue-500{color:var(--color-blue-500)}.text-red-500{color:var(--color-red-500)}.text-white{color:var(--color-white)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}@media (hover:hover){.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-gray-600:hover{background-color:var(--color-gray-600)}.hover\\:opacity-80:hover{opacity:.8}}@media (min-width:64rem){.lg\\:left-1\\/2{left:50%}.lg\\:-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import { jsx as re, Fragment as Oo, jsxs as Lo } from "react/jsx-runtime";
3
2
  import * as Pn from "react";
4
- import Mt, { createContext as Fe, useRef as ue, useLayoutEffect as Ko, useEffect as Rt, useId as Mn, useContext as H, useInsertionEffect as Gi, useMemo as Ae, useCallback as $i, Children as Io, isValidElement as Bo, useState as fs, forwardRef as Fo, Fragment as Wi, createElement as jo, Component as No } from "react";
5
- var hs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6
- function Uo(e) {
7
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
+ import Mt, { createContext as Fe, useRef as ue, useLayoutEffect as Oo, useEffect as Rt, useId as Mn, useContext as H, useInsertionEffect as Gi, useMemo as ke, useCallback as $i, Children as Lo, isValidElement as Ko, useState as fs, forwardRef as Io, Fragment as Wi, createElement as Bo, Component as Fo } from "react";
4
+ import { jsx as re, Fragment as jo, jsxs as No } from "react/jsx-runtime";
5
+ const z = [];
6
+ for (let e = 0; e < 256; ++e)
7
+ z.push((e + 256).toString(16).slice(1));
8
+ function Uo(e, t = 0) {
9
+ return (z[e[t + 0]] + z[e[t + 1]] + z[e[t + 2]] + z[e[t + 3]] + "-" + z[e[t + 4]] + z[e[t + 5]] + "-" + z[e[t + 6]] + z[e[t + 7]] + "-" + z[e[t + 8]] + z[e[t + 9]] + "-" + z[e[t + 10]] + z[e[t + 11]] + z[e[t + 12]] + z[e[t + 13]] + z[e[t + 14]] + z[e[t + 15]]).toLowerCase();
8
10
  }
9
- var wt = { exports: {} }, zo = wt.exports, ps;
11
+ let Ft;
12
+ const zo = new Uint8Array(16);
10
13
  function Go() {
11
- return ps || (ps = 1, function(e, t) {
14
+ if (!Ft) {
15
+ if (typeof crypto > "u" || !crypto.getRandomValues)
16
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
17
+ Ft = crypto.getRandomValues.bind(crypto);
18
+ }
19
+ return Ft(zo);
20
+ }
21
+ const $o = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), hs = { randomUUID: $o };
22
+ function Wo(e, t, n) {
23
+ if (hs.randomUUID && !e)
24
+ return hs.randomUUID();
25
+ e = e || {};
26
+ const s = e.random ?? e.rng?.() ?? Go();
27
+ if (s.length < 16)
28
+ throw new Error("Random bytes length must be >= 16");
29
+ return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Uo(s);
30
+ }
31
+ const ps = (e) => {
32
+ let t;
33
+ const n = /* @__PURE__ */ new Set(), s = (l, f) => {
34
+ const d = typeof l == "function" ? l(t) : l;
35
+ if (!Object.is(d, t)) {
36
+ const u = t;
37
+ t = f ?? (typeof d != "object" || d === null) ? d : Object.assign({}, t, d), n.forEach((y) => y(t, u));
38
+ }
39
+ }, i = () => t, c = { setState: s, getState: i, getInitialState: () => a, subscribe: (l) => (n.add(l), () => n.delete(l)) }, a = t = e(s, i, c);
40
+ return c;
41
+ }, Ho = (e) => e ? ps(e) : ps, Yo = (e) => e;
42
+ function qo(e, t = Yo) {
43
+ const n = Mt.useSyncExternalStore(
44
+ e.subscribe,
45
+ () => t(e.getState()),
46
+ () => t(e.getInitialState())
47
+ );
48
+ return Mt.useDebugValue(n), n;
49
+ }
50
+ const ms = (e) => {
51
+ const t = Ho(e), n = (s) => qo(t, s);
52
+ return Object.assign(n, t), n;
53
+ }, Xo = (e) => e ? ms(e) : ms, gs = Xo((e, t) => ({
54
+ activeModals: [],
55
+ openModal(n, s) {
56
+ const o = {
57
+ ...s,
58
+ closeModal: () => t().closeModal(n)
59
+ }, r = {
60
+ id: Wo(),
61
+ name: n,
62
+ params: o
63
+ }, c = [...t().activeModals, r];
64
+ e({
65
+ activeModals: c
66
+ });
67
+ },
68
+ closeAllModal() {
69
+ e({
70
+ activeModals: []
71
+ });
72
+ },
73
+ closeModal(n) {
74
+ const s = [...t().activeModals];
75
+ if (n) {
76
+ const i = s.findIndex((c) => c.name === n), r = s[i].params;
77
+ i !== -1 && (r?.onClose?.(), s.splice(i, 1));
78
+ } else
79
+ s[s.length - 1].params?.onClose?.(), s.pop();
80
+ e({
81
+ activeModals: s
82
+ });
83
+ }
84
+ }));
85
+ var ys = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
86
+ function Zo(e) {
87
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
88
+ }
89
+ var wt = { exports: {} }, Jo = wt.exports, bs;
90
+ function Qo() {
91
+ return bs || (bs = 1, function(e, t) {
12
92
  (function(n, s) {
13
93
  e.exports = s();
14
- })(zo, function() {
94
+ })(Jo, function() {
15
95
  function n(p) {
16
96
  "@babel/helpers - typeof";
17
97
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? n = function(b) {
@@ -338,7 +418,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
338
418
  value: function(h, m, g, w) {
339
419
  var T = this;
340
420
  this.stop();
341
- var v = typeof globalThis < "u" ? globalThis : typeof hs < "u" ? hs : typeof window < "u" ? window : {};
421
+ var v = typeof globalThis < "u" ? globalThis : typeof ys < "u" ? ys : typeof window < "u" ? window : {};
342
422
  if (!h) {
343
423
  if (!v.addEventListener && !v.attachEvent) {
344
424
  if (this._currentContext === "global")
@@ -449,8 +529,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
449
529
  }
450
530
  if (J)
451
531
  for (var R = 0; R < J.keyNames.length; R += 1) {
452
- var k = T.indexOf(J.keyNames[R]);
453
- k !== -1 && (T.splice(k, 1), R -= 1);
532
+ var A = T.indexOf(J.keyNames[R]);
533
+ A !== -1 && (T.splice(A, 1), R -= 1);
454
534
  }
455
535
  }
456
536
  }, D = 0; D < v.length; D += 1)
@@ -487,13 +567,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
487
567
  });
488
568
  }(wt)), wt.exports;
489
569
  }
490
- var $o = Go();
491
- const ms = /* @__PURE__ */ Uo($o), kn = Fe({});
492
- function An(e) {
570
+ var ea = Qo();
571
+ const vs = /* @__PURE__ */ Zo(ea), An = Fe({});
572
+ function kn(e) {
493
573
  const t = ue(null);
494
574
  return t.current === null && (t.current = e()), t.current;
495
575
  }
496
- const En = typeof window < "u", Hi = En ? Ko : Rt, _t = /* @__PURE__ */ Fe(null);
576
+ const En = typeof window < "u", Hi = En ? Oo : Rt, _t = /* @__PURE__ */ Fe(null);
497
577
  function Dn(e, t) {
498
578
  e.indexOf(t) === -1 && e.push(t);
499
579
  }
@@ -524,7 +604,7 @@ function Rn(e) {
524
604
  let t;
525
605
  return () => (t === void 0 && (t = e()), t);
526
606
  }
527
- const ne = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Wo = (e, t) => (n) => t(e(n)), ot = (...e) => e.reduce(Wo), Qe = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
607
+ const ne = /* @__NO_SIDE_EFFECTS__ */ (e) => e, ta = (e, t) => (n) => t(e(n)), ot = (...e) => e.reduce(ta), Qe = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
528
608
  const s = t - e;
529
609
  return s === 0 ? 1 : (n - e) / s;
530
610
  };
@@ -557,29 +637,29 @@ const oe = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, ae = /* @__NO_SIDE_EFFECTS
557
637
  function Zi(e, t) {
558
638
  return t ? e * (1e3 / t) : 0;
559
639
  }
560
- const gs = /* @__PURE__ */ new Set();
640
+ const xs = /* @__PURE__ */ new Set();
561
641
  function On(e, t, n) {
562
- e || gs.has(t) || (console.warn(t), gs.add(t));
642
+ e || xs.has(t) || (console.warn(t), xs.add(t));
563
643
  }
564
- const Ji = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Ho = 1e-7, Yo = 12;
565
- function qo(e, t, n, s, i) {
644
+ const Ji = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, na = 1e-7, sa = 12;
645
+ function ia(e, t, n, s, i) {
566
646
  let o, r, c = 0;
567
647
  do
568
648
  r = t + (n - t) / 2, o = Ji(r, s, i) - e, o > 0 ? n = r : t = r;
569
- while (Math.abs(o) > Ho && ++c < Yo);
649
+ while (Math.abs(o) > na && ++c < sa);
570
650
  return r;
571
651
  }
572
652
  function at(e, t, n, s) {
573
653
  if (e === t && n === s)
574
654
  return ne;
575
- const i = (o) => qo(o, 0, 1, e, n);
655
+ const i = (o) => ia(o, 0, 1, e, n);
576
656
  return (o) => o === 0 || o === 1 ? o : Ji(i(o), t, s);
577
657
  }
578
- const Qi = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, er = (e) => (t) => 1 - e(1 - t), tr = /* @__PURE__ */ at(0.33, 1.53, 0.69, 0.99), Ln = /* @__PURE__ */ er(tr), nr = /* @__PURE__ */ Qi(Ln), sr = (e) => (e *= 2) < 1 ? 0.5 * Ln(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Kn = (e) => 1 - Math.sin(Math.acos(e)), ir = er(Kn), rr = Qi(Kn), Xo = /* @__PURE__ */ at(0.42, 0, 1, 1), Zo = /* @__PURE__ */ at(0, 0, 0.58, 1), or = /* @__PURE__ */ at(0.42, 0, 0.58, 1), Jo = (e) => Array.isArray(e) && typeof e[0] != "number", ar = (e) => Array.isArray(e) && typeof e[0] == "number", ys = {
658
+ const Qi = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, er = (e) => (t) => 1 - e(1 - t), tr = /* @__PURE__ */ at(0.33, 1.53, 0.69, 0.99), Ln = /* @__PURE__ */ er(tr), nr = /* @__PURE__ */ Qi(Ln), sr = (e) => (e *= 2) < 1 ? 0.5 * Ln(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Kn = (e) => 1 - Math.sin(Math.acos(e)), ir = er(Kn), rr = Qi(Kn), ra = /* @__PURE__ */ at(0.42, 0, 1, 1), oa = /* @__PURE__ */ at(0, 0, 0.58, 1), or = /* @__PURE__ */ at(0.42, 0, 0.58, 1), aa = (e) => Array.isArray(e) && typeof e[0] != "number", ar = (e) => Array.isArray(e) && typeof e[0] == "number", ws = {
579
659
  linear: ne,
580
- easeIn: Xo,
660
+ easeIn: ra,
581
661
  easeInOut: or,
582
- easeOut: Zo,
662
+ easeOut: oa,
583
663
  circIn: Kn,
584
664
  circInOut: rr,
585
665
  circOut: ir,
@@ -587,13 +667,13 @@ const Qi = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, er
587
667
  backInOut: nr,
588
668
  backOut: tr,
589
669
  anticipate: sr
590
- }, Qo = (e) => typeof e == "string", bs = (e) => {
670
+ }, la = (e) => typeof e == "string", Ts = (e) => {
591
671
  if (ar(e)) {
592
672
  fe(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
593
673
  const [t, n, s, i] = e;
594
674
  return at(t, n, s, i);
595
- } else if (Qo(e))
596
- return fe(ys[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), ys[e];
675
+ } else if (la(e))
676
+ return fe(ws[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), ws[e];
597
677
  return e;
598
678
  }, pt = [
599
679
  "setup",
@@ -612,10 +692,10 @@ const Qi = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, er
612
692
  // Write
613
693
  "postRender"
614
694
  // Compute
615
- ], vs = {
695
+ ], Ss = {
616
696
  value: null
617
697
  };
618
- function ea(e, t) {
698
+ function ca(e, t) {
619
699
  let n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), i = !1, o = !1;
620
700
  const r = /* @__PURE__ */ new WeakSet();
621
701
  let c = {
@@ -648,21 +728,21 @@ function ea(e, t) {
648
728
  o = !0;
649
729
  return;
650
730
  }
651
- i = !0, [n, s] = [s, n], n.forEach(l), t && vs.value && vs.value.frameloop[t].push(a), a = 0, n.clear(), i = !1, o && (o = !1, f.process(d));
731
+ i = !0, [n, s] = [s, n], n.forEach(l), t && Ss.value && Ss.value.frameloop[t].push(a), a = 0, n.clear(), i = !1, o && (o = !1, f.process(d));
652
732
  }
653
733
  };
654
734
  return f;
655
735
  }
656
- const ta = 40;
736
+ const ua = 40;
657
737
  function lr(e, t) {
658
738
  let n = !1, s = !0;
659
739
  const i = {
660
740
  delta: 0,
661
741
  timestamp: 0,
662
742
  isProcessing: !1
663
- }, o = () => n = !0, r = pt.reduce((h, m) => (h[m] = ea(o, t ? m : void 0), h), {}), { setup: c, read: a, resolveKeyframes: l, preUpdate: f, update: d, preRender: u, render: y, postRender: x } = r, S = () => {
743
+ }, o = () => n = !0, r = pt.reduce((h, m) => (h[m] = ca(o, t ? m : void 0), h), {}), { setup: c, read: a, resolveKeyframes: l, preUpdate: f, update: d, preRender: u, render: y, postRender: x } = r, S = () => {
664
744
  const h = he.useManualTiming ? i.timestamp : performance.now();
665
- n = !1, he.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(h - i.timestamp, ta), 1)), i.timestamp = h, i.isProcessing = !0, c.process(i), a.process(i), l.process(i), f.process(i), d.process(i), u.process(i), y.process(i), x.process(i), i.isProcessing = !1, n && t && (s = !1, e(S));
745
+ n = !1, he.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(h - i.timestamp, ua), 1)), i.timestamp = h, i.isProcessing = !0, c.process(i), a.process(i), l.process(i), f.process(i), d.process(i), u.process(i), y.process(i), x.process(i), i.isProcessing = !1, n && t && (s = !1, e(S));
666
746
  }, C = () => {
667
747
  n = !0, s = !0, i.isProcessing || e(S);
668
748
  };
@@ -674,17 +754,17 @@ function lr(e, t) {
674
754
  r[pt[m]].cancel(h);
675
755
  }, state: i, steps: r };
676
756
  }
677
- const { schedule: O, cancel: be, state: G, steps: Ft } = /* @__PURE__ */ lr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ne, !0);
757
+ const { schedule: O, cancel: be, state: G, steps: jt } = /* @__PURE__ */ lr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ne, !0);
678
758
  let Tt;
679
- function na() {
759
+ function da() {
680
760
  Tt = void 0;
681
761
  }
682
762
  const Z = {
683
763
  now: () => (Tt === void 0 && Z.set(G.isProcessing || he.useManualTiming ? G.timestamp : performance.now()), Tt),
684
764
  set: (e) => {
685
- Tt = e, queueMicrotask(na);
765
+ Tt = e, queueMicrotask(da);
686
766
  }
687
- }, cr = (e) => (t) => typeof t == "string" && t.startsWith(e), In = /* @__PURE__ */ cr("--"), sa = /* @__PURE__ */ cr("var(--"), Bn = (e) => sa(e) ? ia.test(e.split("/*")[0].trim()) : !1, ia = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Ne = {
767
+ }, cr = (e) => (t) => typeof t == "string" && t.startsWith(e), In = /* @__PURE__ */ cr("--"), fa = /* @__PURE__ */ cr("var(--"), Bn = (e) => fa(e) ? ha.test(e.split("/*")[0].trim()) : !1, ha = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Ne = {
688
768
  test: (e) => typeof e == "number",
689
769
  parse: parseFloat,
690
770
  transform: (e) => e
@@ -695,10 +775,10 @@ const Z = {
695
775
  ...Ne,
696
776
  default: 1
697
777
  }, qe = (e) => Math.round(e * 1e5) / 1e5, Fn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
698
- function ra(e) {
778
+ function pa(e) {
699
779
  return e == null;
700
780
  }
701
- const oa = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, jn = (e, t) => (n) => !!(typeof n == "string" && oa.test(n) && n.startsWith(e) || t && !ra(n) && Object.prototype.hasOwnProperty.call(n, t)), ur = (e, t, n) => (s) => {
781
+ const ma = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, jn = (e, t) => (n) => !!(typeof n == "string" && ma.test(n) && n.startsWith(e) || t && !pa(n) && Object.prototype.hasOwnProperty.call(n, t)), ur = (e, t, n) => (s) => {
702
782
  if (typeof s != "string")
703
783
  return s;
704
784
  const [i, o, r, c] = s.match(Fn);
@@ -708,15 +788,15 @@ const oa = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
708
788
  [n]: parseFloat(r),
709
789
  alpha: c !== void 0 ? parseFloat(c) : 1
710
790
  };
711
- }, aa = (e) => de(0, 255, e), jt = {
791
+ }, ga = (e) => de(0, 255, e), Nt = {
712
792
  ...Ne,
713
- transform: (e) => Math.round(aa(e))
793
+ transform: (e) => Math.round(ga(e))
714
794
  }, Ce = {
715
795
  test: /* @__PURE__ */ jn("rgb", "red"),
716
796
  parse: /* @__PURE__ */ ur("red", "green", "blue"),
717
- transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + jt.transform(e) + ", " + jt.transform(t) + ", " + jt.transform(n) + ", " + qe(et.transform(s)) + ")"
797
+ transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + Nt.transform(e) + ", " + Nt.transform(t) + ", " + Nt.transform(n) + ", " + qe(et.transform(s)) + ")"
718
798
  };
719
- function la(e) {
799
+ function ya(e) {
720
800
  let t = "", n = "", s = "", i = "";
721
801
  return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), s = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), s = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, s += s, i += i), {
722
802
  red: parseInt(t, 16),
@@ -727,13 +807,13 @@ function la(e) {
727
807
  }
728
808
  const tn = {
729
809
  test: /* @__PURE__ */ jn("#"),
730
- parse: la,
810
+ parse: ya,
731
811
  transform: Ce.transform
732
812
  }, lt = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
733
813
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
734
814
  parse: parseFloat,
735
815
  transform: (t) => `${t}${e}`
736
- }), ye = /* @__PURE__ */ lt("deg"), le = /* @__PURE__ */ lt("%"), A = /* @__PURE__ */ lt("px"), ca = /* @__PURE__ */ lt("vh"), ua = /* @__PURE__ */ lt("vw"), xs = {
816
+ }), ye = /* @__PURE__ */ lt("deg"), le = /* @__PURE__ */ lt("%"), k = /* @__PURE__ */ lt("px"), ba = /* @__PURE__ */ lt("vh"), va = /* @__PURE__ */ lt("vw"), Cs = {
737
817
  ...le,
738
818
  parse: (e) => le.parse(e) / 100,
739
819
  transform: (e) => le.transform(e * 100)
@@ -749,11 +829,11 @@ const tn = {
749
829
  const t = F.parse(e);
750
830
  return t.alpha = 0, F.transform(t);
751
831
  }
752
- }, da = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
753
- function fa(e) {
754
- return isNaN(e) && typeof e == "string" && (e.match(Fn)?.length || 0) + (e.match(da)?.length || 0) > 0;
832
+ }, xa = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
833
+ function wa(e) {
834
+ return isNaN(e) && typeof e == "string" && (e.match(Fn)?.length || 0) + (e.match(xa)?.length || 0) > 0;
755
835
  }
756
- const dr = "number", fr = "color", ha = "var", pa = "var(", ws = "${}", ma = /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;
836
+ const dr = "number", fr = "color", Ta = "var", Sa = "var(", Ps = "${}", Ca = /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;
757
837
  function tt(e) {
758
838
  const t = e.toString(), n = [], s = {
759
839
  color: [],
@@ -761,7 +841,7 @@ function tt(e) {
761
841
  var: []
762
842
  }, i = [];
763
843
  let o = 0;
764
- const c = t.replace(ma, (a) => (F.test(a) ? (s.color.push(o), i.push(fr), n.push(F.parse(a))) : a.startsWith(pa) ? (s.var.push(o), i.push(ha), n.push(a)) : (s.number.push(o), i.push(dr), n.push(parseFloat(a))), ++o, ws)).split(ws);
844
+ const c = t.replace(Ca, (a) => (F.test(a) ? (s.color.push(o), i.push(fr), n.push(F.parse(a))) : a.startsWith(Sa) ? (s.var.push(o), i.push(Ta), n.push(a)) : (s.number.push(o), i.push(dr), n.push(parseFloat(a))), ++o, Ps)).split(Ps);
765
845
  return { values: n, split: c, indexes: s, types: i };
766
846
  }
767
847
  function hr(e) {
@@ -779,28 +859,28 @@ function pr(e) {
779
859
  return o;
780
860
  };
781
861
  }
782
- const ga = (e) => typeof e == "number" ? 0 : F.test(e) ? F.getAnimatableNone(e) : e;
783
- function ya(e) {
862
+ const Pa = (e) => typeof e == "number" ? 0 : F.test(e) ? F.getAnimatableNone(e) : e;
863
+ function Ma(e) {
784
864
  const t = hr(e);
785
- return pr(e)(t.map(ga));
865
+ return pr(e)(t.map(Pa));
786
866
  }
787
867
  const ve = {
788
- test: fa,
868
+ test: wa,
789
869
  parse: hr,
790
870
  createTransformer: pr,
791
- getAnimatableNone: ya
871
+ getAnimatableNone: Ma
792
872
  };
793
- function Nt(e, t, n) {
873
+ function Ut(e, t, n) {
794
874
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
795
875
  }
796
- function ba({ hue: e, saturation: t, lightness: n, alpha: s }) {
876
+ function Aa({ hue: e, saturation: t, lightness: n, alpha: s }) {
797
877
  e /= 360, t /= 100, n /= 100;
798
878
  let i = 0, o = 0, r = 0;
799
879
  if (!t)
800
880
  i = o = r = n;
801
881
  else {
802
882
  const c = n < 0.5 ? n * (1 + t) : n + t - n * t, a = 2 * n - c;
803
- i = Nt(a, c, e + 1 / 3), o = Nt(a, c, e), r = Nt(a, c, e - 1 / 3);
883
+ i = Ut(a, c, e + 1 / 3), o = Ut(a, c, e), r = Ut(a, c, e - 1 / 3);
804
884
  }
805
885
  return {
806
886
  red: Math.round(i * 255),
@@ -809,35 +889,35 @@ function ba({ hue: e, saturation: t, lightness: n, alpha: s }) {
809
889
  alpha: s
810
890
  };
811
891
  }
812
- function kt(e, t) {
892
+ function At(e, t) {
813
893
  return (n) => n > 0 ? t : e;
814
894
  }
815
- const K = (e, t, n) => e + (t - e) * n, Ut = (e, t, n) => {
895
+ const K = (e, t, n) => e + (t - e) * n, zt = (e, t, n) => {
816
896
  const s = e * e, i = n * (t * t - s) + s;
817
897
  return i < 0 ? 0 : Math.sqrt(i);
818
- }, va = [tn, Ce, Ve], xa = (e) => va.find((t) => t.test(e));
819
- function Ts(e) {
820
- const t = xa(e);
898
+ }, ka = [tn, Ce, Ve], Ea = (e) => ka.find((t) => t.test(e));
899
+ function Ms(e) {
900
+ const t = Ea(e);
821
901
  if (je(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t)
822
902
  return !1;
823
903
  let n = t.parse(e);
824
- return t === Ve && (n = ba(n)), n;
904
+ return t === Ve && (n = Aa(n)), n;
825
905
  }
826
- const Ss = (e, t) => {
827
- const n = Ts(e), s = Ts(t);
906
+ const As = (e, t) => {
907
+ const n = Ms(e), s = Ms(t);
828
908
  if (!n || !s)
829
- return kt(e, t);
909
+ return At(e, t);
830
910
  const i = { ...n };
831
- return (o) => (i.red = Ut(n.red, s.red, o), i.green = Ut(n.green, s.green, o), i.blue = Ut(n.blue, s.blue, o), i.alpha = K(n.alpha, s.alpha, o), Ce.transform(i));
911
+ return (o) => (i.red = zt(n.red, s.red, o), i.green = zt(n.green, s.green, o), i.blue = zt(n.blue, s.blue, o), i.alpha = K(n.alpha, s.alpha, o), Ce.transform(i));
832
912
  }, nn = /* @__PURE__ */ new Set(["none", "hidden"]);
833
- function wa(e, t) {
913
+ function Da(e, t) {
834
914
  return nn.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
835
915
  }
836
- function Ta(e, t) {
916
+ function Va(e, t) {
837
917
  return (n) => K(e, t, n);
838
918
  }
839
919
  function Nn(e) {
840
- return typeof e == "number" ? Ta : typeof e == "string" ? Bn(e) ? kt : F.test(e) ? Ss : Pa : Array.isArray(e) ? mr : typeof e == "object" ? F.test(e) ? Ss : Sa : kt;
920
+ return typeof e == "number" ? Va : typeof e == "string" ? Bn(e) ? At : F.test(e) ? As : Oa : Array.isArray(e) ? mr : typeof e == "object" ? F.test(e) ? As : Ra : At;
841
921
  }
842
922
  function mr(e, t) {
843
923
  const n = [...e], s = n.length, i = e.map((o, r) => Nn(o)(o, t[r]));
@@ -847,7 +927,7 @@ function mr(e, t) {
847
927
  return n;
848
928
  };
849
929
  }
850
- function Sa(e, t) {
930
+ function Ra(e, t) {
851
931
  const n = { ...e, ...t }, s = {};
852
932
  for (const i in n)
853
933
  e[i] !== void 0 && t[i] !== void 0 && (s[i] = Nn(e[i])(e[i], t[i]));
@@ -857,7 +937,7 @@ function Sa(e, t) {
857
937
  return n;
858
938
  };
859
939
  }
860
- function Ca(e, t) {
940
+ function _a(e, t) {
861
941
  const n = [], s = { color: 0, var: 0, number: 0 };
862
942
  for (let i = 0; i < t.values.length; i++) {
863
943
  const o = t.types[i], r = e.indexes[o][s[o]], c = e.values[r] ?? 0;
@@ -865,14 +945,14 @@ function Ca(e, t) {
865
945
  }
866
946
  return n;
867
947
  }
868
- const Pa = (e, t) => {
948
+ const Oa = (e, t) => {
869
949
  const n = ve.createTransformer(t), s = tt(e), i = tt(t);
870
- return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? nn.has(e) && !i.values.length || nn.has(t) && !s.values.length ? wa(e, t) : ot(mr(Ca(s, i), i.values), n) : (je(!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"), kt(e, t));
950
+ return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? nn.has(e) && !i.values.length || nn.has(t) && !s.values.length ? Da(e, t) : ot(mr(_a(s, i), i.values), n) : (je(!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"), At(e, t));
871
951
  };
872
952
  function gr(e, t, n) {
873
953
  return typeof e == "number" && typeof t == "number" && typeof n == "number" ? K(e, t, n) : Nn(e)(e, t);
874
954
  }
875
- const Ma = (e) => {
955
+ const La = (e) => {
876
956
  const t = ({ timestamp: n }) => e(n);
877
957
  return {
878
958
  start: (n = !0) => O.update(t, n),
@@ -889,26 +969,26 @@ const Ma = (e) => {
889
969
  for (let o = 0; o < i; o++)
890
970
  s += Math.round(e(o / (i - 1)) * 1e4) / 1e4 + ", ";
891
971
  return `linear(${s.substring(0, s.length - 2)})`;
892
- }, At = 2e4;
972
+ }, kt = 2e4;
893
973
  function Un(e) {
894
974
  let t = 0;
895
975
  const n = 50;
896
976
  let s = e.next(t);
897
- for (; !s.done && t < At; )
977
+ for (; !s.done && t < kt; )
898
978
  t += n, s = e.next(t);
899
- return t >= At ? 1 / 0 : t;
979
+ return t >= kt ? 1 / 0 : t;
900
980
  }
901
- function ka(e, t = 100, n) {
902
- const s = n({ ...e, keyframes: [0, t] }), i = Math.min(Un(s), At);
981
+ function Ka(e, t = 100, n) {
982
+ const s = n({ ...e, keyframes: [0, t] }), i = Math.min(Un(s), kt);
903
983
  return {
904
984
  type: "keyframes",
905
985
  ease: (o) => s.next(i * o).value / t,
906
986
  duration: /* @__PURE__ */ ae(i)
907
987
  };
908
988
  }
909
- const Aa = 5;
989
+ const Ia = 5;
910
990
  function br(e, t, n) {
911
- const s = Math.max(t - Aa, 0);
991
+ const s = Math.max(t - Ia, 0);
912
992
  return Zi(n - e(s), t - s);
913
993
  }
914
994
  const L = {
@@ -939,25 +1019,25 @@ const L = {
939
1019
  // in seconds
940
1020
  minDamping: 0.05,
941
1021
  maxDamping: 1
942
- }, zt = 1e-3;
943
- function Ea({ duration: e = L.duration, bounce: t = L.bounce, velocity: n = L.velocity, mass: s = L.mass }) {
1022
+ }, Gt = 1e-3;
1023
+ function Ba({ duration: e = L.duration, bounce: t = L.bounce, velocity: n = L.velocity, mass: s = L.mass }) {
944
1024
  let i, o;
945
1025
  je(e <= /* @__PURE__ */ oe(L.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
946
1026
  let r = 1 - t;
947
1027
  r = de(L.minDamping, L.maxDamping, r), e = de(L.minDuration, L.maxDuration, /* @__PURE__ */ ae(e)), r < 1 ? (i = (l) => {
948
1028
  const f = l * r, d = f * e, u = f - n, y = sn(l, r), x = Math.exp(-d);
949
- return zt - u / y * x;
1029
+ return Gt - u / y * x;
950
1030
  }, o = (l) => {
951
1031
  const d = l * r * e, u = d * n + n, y = Math.pow(r, 2) * Math.pow(l, 2) * e, x = Math.exp(-d), S = sn(Math.pow(l, 2), r);
952
- return (-i(l) + zt > 0 ? -1 : 1) * ((u - y) * x) / S;
1032
+ return (-i(l) + Gt > 0 ? -1 : 1) * ((u - y) * x) / S;
953
1033
  }) : (i = (l) => {
954
1034
  const f = Math.exp(-l * e), d = (l - n) * e + 1;
955
- return -zt + f * d;
1035
+ return -Gt + f * d;
956
1036
  }, o = (l) => {
957
1037
  const f = Math.exp(-l * e), d = (n - l) * (e * e);
958
1038
  return f * d;
959
1039
  });
960
- const c = 5 / e, a = Va(i, o, c);
1040
+ const c = 5 / e, a = ja(i, o, c);
961
1041
  if (e = /* @__PURE__ */ oe(e), isNaN(a))
962
1042
  return {
963
1043
  stiffness: L.stiffness,
@@ -973,21 +1053,21 @@ function Ea({ duration: e = L.duration, bounce: t = L.bounce, velocity: n = L.ve
973
1053
  };
974
1054
  }
975
1055
  }
976
- const Da = 12;
977
- function Va(e, t, n) {
1056
+ const Fa = 12;
1057
+ function ja(e, t, n) {
978
1058
  let s = n;
979
- for (let i = 1; i < Da; i++)
1059
+ for (let i = 1; i < Fa; i++)
980
1060
  s = s - e(s) / t(s);
981
1061
  return s;
982
1062
  }
983
1063
  function sn(e, t) {
984
1064
  return e * Math.sqrt(1 - t * t);
985
1065
  }
986
- const Ra = ["duration", "bounce"], _a = ["stiffness", "damping", "mass"];
987
- function Cs(e, t) {
1066
+ const Na = ["duration", "bounce"], Ua = ["stiffness", "damping", "mass"];
1067
+ function ks(e, t) {
988
1068
  return t.some((n) => e[n] !== void 0);
989
1069
  }
990
- function Oa(e) {
1070
+ function za(e) {
991
1071
  let t = {
992
1072
  velocity: L.velocity,
993
1073
  stiffness: L.stiffness,
@@ -996,7 +1076,7 @@ function Oa(e) {
996
1076
  isResolvedFromDuration: !1,
997
1077
  ...e
998
1078
  };
999
- if (!Cs(e, _a) && Cs(e, Ra))
1079
+ if (!ks(e, Ua) && ks(e, Na))
1000
1080
  if (e.visualDuration) {
1001
1081
  const n = e.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, o = 2 * de(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
1002
1082
  t = {
@@ -1006,7 +1086,7 @@ function Oa(e) {
1006
1086
  damping: o
1007
1087
  };
1008
1088
  } else {
1009
- const n = Ea(e);
1089
+ const n = Ba(e);
1010
1090
  t = {
1011
1091
  ...t,
1012
1092
  ...n,
@@ -1022,7 +1102,7 @@ function Et(e = L.visualDuration, t = L.bounce) {
1022
1102
  bounce: t
1023
1103
  } : e;
1024
1104
  let { restSpeed: s, restDelta: i } = n;
1025
- const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], c = { done: !1, value: o }, { stiffness: a, damping: l, mass: f, duration: d, velocity: u, isResolvedFromDuration: y } = Oa({
1105
+ const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], c = { done: !1, value: o }, { stiffness: a, damping: l, mass: f, duration: d, velocity: u, isResolvedFromDuration: y } = za({
1026
1106
  ...n,
1027
1107
  velocity: -/* @__PURE__ */ ae(n.velocity || 0)
1028
1108
  }), x = u || 0, S = l / (2 * Math.sqrt(a * f)), C = r - o, p = /* @__PURE__ */ ae(Math.sqrt(a / f)), b = Math.abs(C) < 5;
@@ -1058,7 +1138,7 @@ function Et(e = L.visualDuration, t = L.bounce) {
1058
1138
  return c.value = c.done ? r : w, c;
1059
1139
  },
1060
1140
  toString: () => {
1061
- const g = Math.min(Un(m), At), w = yr((T) => m.next(g * T).value, g, 30);
1141
+ const g = Math.min(Un(m), kt), w = yr((T) => m.next(g * T).value, g, 30);
1062
1142
  return g + "ms " + w;
1063
1143
  },
1064
1144
  toTransition: () => {
@@ -1067,7 +1147,7 @@ function Et(e = L.visualDuration, t = L.bounce) {
1067
1147
  return m;
1068
1148
  }
1069
1149
  Et.applyToOptions = (e) => {
1070
- const t = ka(e, 100, Et);
1150
+ const t = Ka(e, 100, Et);
1071
1151
  return e.ease = t.ease, e.duration = /* @__PURE__ */ oe(t.duration), e.type = "keyframes", e;
1072
1152
  };
1073
1153
  function rn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: o = 500, modifyTarget: r, min: c, max: a, restDelta: l = 0.5, restSpeed: f }) {
@@ -1102,7 +1182,7 @@ function rn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
1102
1182
  }
1103
1183
  };
1104
1184
  }
1105
- function La(e, t, n) {
1185
+ function Ga(e, t, n) {
1106
1186
  const s = [], i = n || he.mix || gr, o = e.length - 1;
1107
1187
  for (let r = 0; r < o; r++) {
1108
1188
  let c = i(e[r], e[r + 1]);
@@ -1114,7 +1194,7 @@ function La(e, t, n) {
1114
1194
  }
1115
1195
  return s;
1116
1196
  }
1117
- function Ka(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
1197
+ function $a(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
1118
1198
  const o = e.length;
1119
1199
  if (fe(o === t.length, "Both input and output ranges must be the same length", "range-length"), o === 1)
1120
1200
  return () => t[0];
@@ -1122,7 +1202,7 @@ function Ka(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
1122
1202
  return () => t[1];
1123
1203
  const r = e[0] === e[1];
1124
1204
  e[0] > e[o - 1] && (e = [...e].reverse(), t = [...t].reverse());
1125
- const c = La(t, s, i), a = c.length, l = (f) => {
1205
+ const c = Ga(t, s, i), a = c.length, l = (f) => {
1126
1206
  if (r && f < e[0])
1127
1207
  return t[0];
1128
1208
  let d = 0;
@@ -1134,46 +1214,46 @@ function Ka(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
1134
1214
  };
1135
1215
  return n ? (f) => l(de(e[0], e[o - 1], f)) : l;
1136
1216
  }
1137
- function Ia(e, t) {
1217
+ function Wa(e, t) {
1138
1218
  const n = e[e.length - 1];
1139
1219
  for (let s = 1; s <= t; s++) {
1140
1220
  const i = /* @__PURE__ */ Qe(0, t, s);
1141
1221
  e.push(K(n, 1, i));
1142
1222
  }
1143
1223
  }
1144
- function Ba(e) {
1224
+ function Ha(e) {
1145
1225
  const t = [0];
1146
- return Ia(t, e.length - 1), t;
1226
+ return Wa(t, e.length - 1), t;
1147
1227
  }
1148
- function Fa(e, t) {
1228
+ function Ya(e, t) {
1149
1229
  return e.map((n) => n * t);
1150
1230
  }
1151
- function ja(e, t) {
1231
+ function qa(e, t) {
1152
1232
  return e.map(() => t || or).splice(0, e.length - 1);
1153
1233
  }
1154
1234
  function Re({ duration: e = 300, keyframes: t, times: n, ease: s = "easeInOut" }) {
1155
- const i = Jo(s) ? s.map(bs) : bs(s), o = {
1235
+ const i = aa(s) ? s.map(Ts) : Ts(s), o = {
1156
1236
  done: !1,
1157
1237
  value: t[0]
1158
- }, r = Fa(
1238
+ }, r = Ya(
1159
1239
  // Only use the provided offsets if they're the correct length
1160
1240
  // TODO Maybe we should warn here if there's a length mismatch
1161
- n && n.length === t.length ? n : Ba(t),
1241
+ n && n.length === t.length ? n : Ha(t),
1162
1242
  e
1163
- ), c = Ka(r, t, {
1164
- ease: Array.isArray(i) ? i : ja(t, i)
1243
+ ), c = $a(r, t, {
1244
+ ease: Array.isArray(i) ? i : qa(t, i)
1165
1245
  });
1166
1246
  return {
1167
1247
  calculatedDuration: e,
1168
1248
  next: (a) => (o.value = c(a), o.done = a >= e, o)
1169
1249
  };
1170
1250
  }
1171
- const Na = (e) => e !== null;
1251
+ const Xa = (e) => e !== null;
1172
1252
  function zn(e, { repeat: t, repeatType: n = "loop" }, s, i = 1) {
1173
- const o = e.filter(Na), c = i < 0 || t && n !== "loop" && t % 2 === 1 ? 0 : o.length - 1;
1253
+ const o = e.filter(Xa), c = i < 0 || t && n !== "loop" && t % 2 === 1 ? 0 : o.length - 1;
1174
1254
  return !c || s === void 0 ? o[c] : s;
1175
1255
  }
1176
- const Ua = {
1256
+ const Za = {
1177
1257
  decay: rn,
1178
1258
  inertia: rn,
1179
1259
  tween: Re,
@@ -1181,7 +1261,7 @@ const Ua = {
1181
1261
  spring: Et
1182
1262
  };
1183
1263
  function vr(e) {
1184
- typeof e.type == "string" && (e.type = Ua[e.type]);
1264
+ typeof e.type == "string" && (e.type = Za[e.type]);
1185
1265
  }
1186
1266
  class Gn {
1187
1267
  constructor() {
@@ -1207,7 +1287,7 @@ class Gn {
1207
1287
  return this.finished.then(t, n);
1208
1288
  }
1209
1289
  }
1210
- const za = (e) => e / 100;
1290
+ const Ja = (e) => e / 100;
1211
1291
  class $n extends Gn {
1212
1292
  constructor(t) {
1213
1293
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
@@ -1221,7 +1301,7 @@ class $n extends Gn {
1221
1301
  const { type: n = Re, repeat: s = 0, repeatDelay: i = 0, repeatType: o, velocity: r = 0 } = t;
1222
1302
  let { keyframes: c } = t;
1223
1303
  const a = n || Re;
1224
- process.env.NODE_ENV !== "production" && a !== Re && fe(c.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${c}`, "spring-two-frames"), a !== Re && typeof c[0] != "number" && (this.mixKeyframes = ot(za, gr(c[0], c[1])), c = [0, 100]);
1304
+ process.env.NODE_ENV !== "production" && a !== Re && fe(c.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${c}`, "spring-two-frames"), a !== Re && typeof c[0] != "number" && (this.mixKeyframes = ot(Ja, gr(c[0], c[1])), c = [0, 100]);
1225
1305
  const l = a({ ...t, keyframes: c });
1226
1306
  o === "mirror" && (this.mirroredGenerator = a({
1227
1307
  ...t,
@@ -1284,7 +1364,7 @@ class $n extends Gn {
1284
1364
  play() {
1285
1365
  if (this.isStopped)
1286
1366
  return;
1287
- const { driver: t = Ma, startTime: n } = this.options;
1367
+ const { driver: t = La, startTime: n } = this.options;
1288
1368
  this.driver || (this.driver = t((i) => this.tick(i))), this.options.onPlay?.();
1289
1369
  const s = this.driver.now();
1290
1370
  this.state === "finished" ? (this.updateFinished(), this.startTime = s) : this.holdTime !== null ? this.startTime = s - this.holdTime : this.startTime || (this.startTime = n ?? s), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -1314,14 +1394,14 @@ class $n extends Gn {
1314
1394
  return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), t.observe(this);
1315
1395
  }
1316
1396
  }
1317
- function Ga(e) {
1397
+ function Qa(e) {
1318
1398
  for (let t = 1; t < e.length; t++)
1319
1399
  e[t] ?? (e[t] = e[t - 1]);
1320
1400
  }
1321
1401
  const Pe = (e) => e * 180 / Math.PI, on = (e) => {
1322
1402
  const t = Pe(Math.atan2(e[1], e[0]));
1323
1403
  return an(t);
1324
- }, $a = {
1404
+ }, el = {
1325
1405
  x: 4,
1326
1406
  y: 5,
1327
1407
  translateX: 4,
@@ -1334,20 +1414,20 @@ const Pe = (e) => e * 180 / Math.PI, on = (e) => {
1334
1414
  skewX: (e) => Pe(Math.atan(e[1])),
1335
1415
  skewY: (e) => Pe(Math.atan(e[2])),
1336
1416
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
1337
- }, an = (e) => (e = e % 360, e < 0 && (e += 360), e), Ps = on, Ms = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), ks = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), Wa = {
1417
+ }, an = (e) => (e = e % 360, e < 0 && (e += 360), e), Es = on, Ds = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Vs = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), tl = {
1338
1418
  x: 12,
1339
1419
  y: 13,
1340
1420
  z: 14,
1341
1421
  translateX: 12,
1342
1422
  translateY: 13,
1343
1423
  translateZ: 14,
1344
- scaleX: Ms,
1345
- scaleY: ks,
1346
- scale: (e) => (Ms(e) + ks(e)) / 2,
1424
+ scaleX: Ds,
1425
+ scaleY: Vs,
1426
+ scale: (e) => (Ds(e) + Vs(e)) / 2,
1347
1427
  rotateX: (e) => an(Pe(Math.atan2(e[6], e[5]))),
1348
1428
  rotateY: (e) => an(Pe(Math.atan2(-e[2], e[0]))),
1349
- rotateZ: Ps,
1350
- rotate: Ps,
1429
+ rotateZ: Es,
1430
+ rotate: Es,
1351
1431
  skewX: (e) => Pe(Math.atan(e[4])),
1352
1432
  skewY: (e) => Pe(Math.atan(e[1])),
1353
1433
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
@@ -1361,21 +1441,21 @@ function cn(e, t) {
1361
1441
  const n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
1362
1442
  let s, i;
1363
1443
  if (n)
1364
- s = Wa, i = n;
1444
+ s = tl, i = n;
1365
1445
  else {
1366
1446
  const c = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
1367
- s = $a, i = c;
1447
+ s = el, i = c;
1368
1448
  }
1369
1449
  if (!i)
1370
1450
  return ln(t);
1371
- const o = s[t], r = i[1].split(",").map(Ya);
1451
+ const o = s[t], r = i[1].split(",").map(sl);
1372
1452
  return typeof o == "function" ? o(r) : r[o];
1373
1453
  }
1374
- const Ha = (e, t) => {
1454
+ const nl = (e, t) => {
1375
1455
  const { transform: n = "none" } = getComputedStyle(e);
1376
1456
  return cn(n, t);
1377
1457
  };
1378
- function Ya(e) {
1458
+ function sl(e) {
1379
1459
  return parseFloat(e.trim());
1380
1460
  }
1381
1461
  const Ue = [
@@ -1396,10 +1476,10 @@ const Ue = [
1396
1476
  "skew",
1397
1477
  "skewX",
1398
1478
  "skewY"
1399
- ], ze = new Set(Ue), As = (e) => e === Ne || e === A, qa = /* @__PURE__ */ new Set(["x", "y", "z"]), Xa = Ue.filter((e) => !qa.has(e));
1400
- function Za(e) {
1479
+ ], ze = new Set(Ue), Rs = (e) => e === Ne || e === k, il = /* @__PURE__ */ new Set(["x", "y", "z"]), rl = Ue.filter((e) => !il.has(e));
1480
+ function ol(e) {
1401
1481
  const t = [];
1402
- return Xa.forEach((n) => {
1482
+ return rl.forEach((n) => {
1403
1483
  const s = e.getValue(n);
1404
1484
  s !== void 0 && (t.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
1405
1485
  }), t;
@@ -1418,13 +1498,13 @@ const Me = {
1418
1498
  };
1419
1499
  Me.translateX = Me.x;
1420
1500
  Me.translateY = Me.y;
1421
- const ke = /* @__PURE__ */ new Set();
1501
+ const Ae = /* @__PURE__ */ new Set();
1422
1502
  let un = !1, dn = !1, fn = !1;
1423
1503
  function xr() {
1424
1504
  if (dn) {
1425
- const e = Array.from(ke).filter((s) => s.needsMeasurement), t = new Set(e.map((s) => s.element)), n = /* @__PURE__ */ new Map();
1505
+ const e = Array.from(Ae).filter((s) => s.needsMeasurement), t = new Set(e.map((s) => s.element)), n = /* @__PURE__ */ new Map();
1426
1506
  t.forEach((s) => {
1427
- const i = Za(s);
1507
+ const i = ol(s);
1428
1508
  i.length && (n.set(s, i), s.render());
1429
1509
  }), e.forEach((s) => s.measureInitialState()), t.forEach((s) => {
1430
1510
  s.render();
@@ -1436,14 +1516,14 @@ function xr() {
1436
1516
  s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
1437
1517
  });
1438
1518
  }
1439
- dn = !1, un = !1, ke.forEach((e) => e.complete(fn)), ke.clear();
1519
+ dn = !1, un = !1, Ae.forEach((e) => e.complete(fn)), Ae.clear();
1440
1520
  }
1441
1521
  function wr() {
1442
- ke.forEach((e) => {
1522
+ Ae.forEach((e) => {
1443
1523
  e.readKeyframes(), e.needsMeasurement && (dn = !0);
1444
1524
  });
1445
1525
  }
1446
- function Ja() {
1526
+ function al() {
1447
1527
  fn = !0, wr(), xr(), fn = !1;
1448
1528
  }
1449
1529
  class Wn {
@@ -1451,7 +1531,7 @@ class Wn {
1451
1531
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = s, this.motionValue = i, this.element = o, this.isAsync = r;
1452
1532
  }
1453
1533
  scheduleResolve() {
1454
- this.state = "scheduled", this.isAsync ? (ke.add(this), un || (un = !0, O.read(wr), O.resolveKeyframes(xr))) : (this.readKeyframes(), this.complete());
1534
+ this.state = "scheduled", this.isAsync ? (Ae.add(this), un || (un = !0, O.read(wr), O.resolveKeyframes(xr))) : (this.readKeyframes(), this.complete());
1455
1535
  }
1456
1536
  readKeyframes() {
1457
1537
  const { unresolvedKeyframes: t, name: n, element: s, motionValue: i } = this;
@@ -1465,7 +1545,7 @@ class Wn {
1465
1545
  }
1466
1546
  t[0] === void 0 && (t[0] = r), i && o === void 0 && i.set(t[0]);
1467
1547
  }
1468
- Ga(t);
1548
+ Qa(t);
1469
1549
  }
1470
1550
  setFinalKeyframe() {
1471
1551
  }
@@ -1476,32 +1556,32 @@ class Wn {
1476
1556
  measureEndState() {
1477
1557
  }
1478
1558
  complete(t = !1) {
1479
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), ke.delete(this);
1559
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), Ae.delete(this);
1480
1560
  }
1481
1561
  cancel() {
1482
- this.state === "scheduled" && (ke.delete(this), this.state = "pending");
1562
+ this.state === "scheduled" && (Ae.delete(this), this.state = "pending");
1483
1563
  }
1484
1564
  resume() {
1485
1565
  this.state === "pending" && this.scheduleResolve();
1486
1566
  }
1487
1567
  }
1488
- const Qa = (e) => e.startsWith("--");
1489
- function el(e, t, n) {
1490
- Qa(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1568
+ const ll = (e) => e.startsWith("--");
1569
+ function cl(e, t, n) {
1570
+ ll(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1491
1571
  }
1492
- const tl = /* @__PURE__ */ Rn(() => window.ScrollTimeline !== void 0), nl = {};
1493
- function sl(e, t) {
1572
+ const ul = /* @__PURE__ */ Rn(() => window.ScrollTimeline !== void 0), dl = {};
1573
+ function fl(e, t) {
1494
1574
  const n = /* @__PURE__ */ Rn(e);
1495
- return () => nl[t] ?? n();
1575
+ return () => dl[t] ?? n();
1496
1576
  }
1497
- const Tr = /* @__PURE__ */ sl(() => {
1577
+ const Tr = /* @__PURE__ */ fl(() => {
1498
1578
  try {
1499
1579
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1500
1580
  } catch {
1501
1581
  return !1;
1502
1582
  }
1503
1583
  return !0;
1504
- }, "linearEasing"), Ye = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, Es = {
1584
+ }, "linearEasing"), Ye = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, _s = {
1505
1585
  linear: "linear",
1506
1586
  ease: "ease",
1507
1587
  easeIn: "ease-in",
@@ -1514,9 +1594,9 @@ const Tr = /* @__PURE__ */ sl(() => {
1514
1594
  };
1515
1595
  function Sr(e, t) {
1516
1596
  if (e)
1517
- return typeof e == "function" ? Tr() ? yr(e, t) : "ease-out" : ar(e) ? Ye(e) : Array.isArray(e) ? e.map((n) => Sr(n, t) || Es.easeOut) : Es[e];
1597
+ return typeof e == "function" ? Tr() ? yr(e, t) : "ease-out" : ar(e) ? Ye(e) : Array.isArray(e) ? e.map((n) => Sr(n, t) || _s.easeOut) : _s[e];
1518
1598
  }
1519
- function il(e, t, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatType: r = "loop", ease: c = "easeOut", times: a } = {}, l = void 0) {
1599
+ function hl(e, t, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatType: r = "loop", ease: c = "easeOut", times: a } = {}, l = void 0) {
1520
1600
  const f = {
1521
1601
  [t]: n
1522
1602
  };
@@ -1536,20 +1616,20 @@ function il(e, t, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatTyp
1536
1616
  function Cr(e) {
1537
1617
  return typeof e == "function" && "applyToOptions" in e;
1538
1618
  }
1539
- function rl({ type: e, ...t }) {
1619
+ function pl({ type: e, ...t }) {
1540
1620
  return Cr(e) && Tr() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
1541
1621
  }
1542
- class ol extends Gn {
1622
+ class ml extends Gn {
1543
1623
  constructor(t) {
1544
1624
  if (super(), this.finishedTime = null, this.isStopped = !1, !t)
1545
1625
  return;
1546
1626
  const { element: n, name: s, keyframes: i, pseudoElement: o, allowFlatten: r = !1, finalKeyframe: c, onComplete: a } = t;
1547
1627
  this.isPseudoElement = !!o, this.allowFlatten = r, this.options = t, fe(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1548
- const l = rl(t);
1549
- this.animation = il(n, s, i, l, o), l.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1628
+ const l = pl(t);
1629
+ this.animation = hl(n, s, i, l, o), l.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1550
1630
  if (this.finishedTime = this.time, !o) {
1551
1631
  const f = zn(i, this.options, c, this.speed);
1552
- this.updateMotionValue ? this.updateMotionValue(f) : el(n, s, f), this.animation.cancel();
1632
+ this.updateMotionValue ? this.updateMotionValue(f) : cl(n, s, f), this.animation.cancel();
1553
1633
  }
1554
1634
  a?.(), this.notifyFinished();
1555
1635
  };
@@ -1624,7 +1704,7 @@ class ol extends Gn {
1624
1704
  * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
1625
1705
  */
1626
1706
  attachTimeline({ timeline: t, observe: n }) {
1627
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && tl() ? (this.animation.timeline = t, ne) : n(this);
1707
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && ul() ? (this.animation.timeline = t, ne) : n(this);
1628
1708
  }
1629
1709
  }
1630
1710
  const Pr = {
@@ -1632,16 +1712,16 @@ const Pr = {
1632
1712
  backInOut: nr,
1633
1713
  circInOut: rr
1634
1714
  };
1635
- function al(e) {
1715
+ function gl(e) {
1636
1716
  return e in Pr;
1637
1717
  }
1638
- function ll(e) {
1639
- typeof e.ease == "string" && al(e.ease) && (e.ease = Pr[e.ease]);
1718
+ function yl(e) {
1719
+ typeof e.ease == "string" && gl(e.ease) && (e.ease = Pr[e.ease]);
1640
1720
  }
1641
- const Ds = 10;
1642
- class cl extends ol {
1721
+ const Os = 10;
1722
+ class bl extends ml {
1643
1723
  constructor(t) {
1644
- ll(t), vr(t), super(t), t.startTime && (this.startTime = t.startTime), this.options = t;
1724
+ yl(t), vr(t), super(t), t.startTime && (this.startTime = t.startTime), this.options = t;
1645
1725
  }
1646
1726
  /**
1647
1727
  * WAAPI doesn't natively have any interruption capabilities.
@@ -1663,13 +1743,13 @@ class cl extends ol {
1663
1743
  ...r,
1664
1744
  autoplay: !1
1665
1745
  }), a = /* @__PURE__ */ oe(this.finishedTime ?? this.time);
1666
- n.setWithVelocity(c.sample(a - Ds).value, c.sample(a).value, Ds), c.stop();
1746
+ n.setWithVelocity(c.sample(a - Os).value, c.sample(a).value, Os), c.stop();
1667
1747
  }
1668
1748
  }
1669
- const Vs = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1749
+ const Ls = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1670
1750
  (ve.test(e) || e === "0") && // And it contains numbers and/or colors
1671
1751
  !e.startsWith("url("));
1672
- function ul(e) {
1752
+ function vl(e) {
1673
1753
  const t = e[0];
1674
1754
  if (e.length === 1)
1675
1755
  return !0;
@@ -1677,39 +1757,39 @@ function ul(e) {
1677
1757
  if (e[n] !== t)
1678
1758
  return !0;
1679
1759
  }
1680
- function dl(e, t, n, s) {
1760
+ function xl(e, t, n, s) {
1681
1761
  const i = e[0];
1682
1762
  if (i === null)
1683
1763
  return !1;
1684
1764
  if (t === "display" || t === "visibility")
1685
1765
  return !0;
1686
- const o = e[e.length - 1], r = Vs(i, t), c = Vs(o, t);
1687
- return je(r === c, `You are trying to animate ${t} from "${i}" to "${o}". "${r ? o : i}" is not an animatable value.`, "value-not-animatable"), !r || !c ? !1 : ul(e) || (n === "spring" || Cr(n)) && s;
1766
+ const o = e[e.length - 1], r = Ls(i, t), c = Ls(o, t);
1767
+ return je(r === c, `You are trying to animate ${t} from "${i}" to "${o}". "${r ? o : i}" is not an animatable value.`, "value-not-animatable"), !r || !c ? !1 : vl(e) || (n === "spring" || Cr(n)) && s;
1688
1768
  }
1689
1769
  function Hn(e) {
1690
1770
  return qi(e) && "offsetHeight" in e;
1691
1771
  }
1692
- const fl = /* @__PURE__ */ new Set([
1772
+ const wl = /* @__PURE__ */ new Set([
1693
1773
  "opacity",
1694
1774
  "clipPath",
1695
1775
  "filter",
1696
1776
  "transform"
1697
1777
  // TODO: Could be re-enabled now we have support for linear() easing
1698
1778
  // "background-color"
1699
- ]), hl = /* @__PURE__ */ Rn(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1700
- function pl(e) {
1779
+ ]), Tl = /* @__PURE__ */ Rn(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1780
+ function Sl(e) {
1701
1781
  const { motionValue: t, name: n, repeatDelay: s, repeatType: i, damping: o, type: r } = e;
1702
1782
  if (!Hn(t?.owner?.current))
1703
1783
  return !1;
1704
1784
  const { onUpdate: c, transformTemplate: a } = t.owner.getProps();
1705
- return hl() && n && fl.has(n) && (n !== "transform" || !a) && /**
1785
+ return Tl() && n && wl.has(n) && (n !== "transform" || !a) && /**
1706
1786
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
1707
1787
  * no way to read the value from WAAPI every frame.
1708
1788
  */
1709
1789
  !c && !s && i !== "mirror" && o !== 0 && r !== "inertia";
1710
1790
  }
1711
- const ml = 40;
1712
- class gl extends Gn {
1791
+ const Cl = 40;
1792
+ class Pl extends Gn {
1713
1793
  constructor({ autoplay: t = !0, delay: n = 0, type: s = "keyframes", repeat: i = 0, repeatDelay: o = 0, repeatType: r = "loop", keyframes: c, name: a, motionValue: l, element: f, ...d }) {
1714
1794
  super(), this.stop = () => {
1715
1795
  this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
@@ -1731,13 +1811,13 @@ class gl extends Gn {
1731
1811
  onKeyframesResolved(t, n, s, i) {
1732
1812
  this.keyframeResolver = void 0;
1733
1813
  const { name: o, type: r, velocity: c, delay: a, isHandoff: l, onUpdate: f } = s;
1734
- this.resolvedAt = Z.now(), dl(t, o, r, c) || ((he.instantAnimations || !a) && f?.(zn(t, s, n)), t[0] = t[t.length - 1], s.duration = 0, s.repeat = 0);
1814
+ this.resolvedAt = Z.now(), xl(t, o, r, c) || ((he.instantAnimations || !a) && f?.(zn(t, s, n)), t[0] = t[t.length - 1], s.duration = 0, s.repeat = 0);
1735
1815
  const u = {
1736
- startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > ml ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1816
+ startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > Cl ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1737
1817
  finalKeyframe: n,
1738
1818
  ...s,
1739
1819
  keyframes: t
1740
- }, y = !l && pl(u) ? new cl({
1820
+ }, y = !l && Sl(u) ? new bl({
1741
1821
  ...u,
1742
1822
  element: u.motionValue.owner.current
1743
1823
  }) : new $n(u);
@@ -1751,7 +1831,7 @@ class gl extends Gn {
1751
1831
  });
1752
1832
  }
1753
1833
  get animation() {
1754
- return this._animation || (this.keyframeResolver?.resume(), Ja()), this._animation;
1834
+ return this._animation || (this.keyframeResolver?.resume(), al()), this._animation;
1755
1835
  }
1756
1836
  get duration() {
1757
1837
  return this.animation.duration;
@@ -1790,21 +1870,21 @@ class gl extends Gn {
1790
1870
  this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
1791
1871
  }
1792
1872
  }
1793
- const yl = (
1873
+ const Ml = (
1794
1874
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
1795
1875
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
1796
1876
  );
1797
- function bl(e) {
1798
- const t = yl.exec(e);
1877
+ function Al(e) {
1878
+ const t = Ml.exec(e);
1799
1879
  if (!t)
1800
1880
  return [,];
1801
1881
  const [, n, s, i] = t;
1802
1882
  return [`--${n ?? s}`, i];
1803
1883
  }
1804
- const vl = 4;
1884
+ const kl = 4;
1805
1885
  function Mr(e, t, n = 1) {
1806
- fe(n <= vl, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1807
- const [s, i] = bl(e);
1886
+ fe(n <= kl, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1887
+ const [s, i] = Al(e);
1808
1888
  if (!s)
1809
1889
  return;
1810
1890
  const o = window.getComputedStyle(t).getPropertyValue(s);
@@ -1817,7 +1897,7 @@ function Mr(e, t, n = 1) {
1817
1897
  function Yn(e, t) {
1818
1898
  return e?.[t] ?? e?.default ?? e;
1819
1899
  }
1820
- const kr = /* @__PURE__ */ new Set([
1900
+ const Ar = /* @__PURE__ */ new Set([
1821
1901
  "width",
1822
1902
  "height",
1823
1903
  "top",
@@ -1825,15 +1905,15 @@ const kr = /* @__PURE__ */ new Set([
1825
1905
  "right",
1826
1906
  "bottom",
1827
1907
  ...Ue
1828
- ]), xl = {
1908
+ ]), El = {
1829
1909
  test: (e) => e === "auto",
1830
1910
  parse: (e) => e
1831
- }, Ar = (e) => (t) => t.test(e), Er = [Ne, A, le, ye, ua, ca, xl], Rs = (e) => Er.find(Ar(e));
1832
- function wl(e) {
1911
+ }, kr = (e) => (t) => t.test(e), Er = [Ne, k, le, ye, va, ba, El], Ks = (e) => Er.find(kr(e));
1912
+ function Dl(e) {
1833
1913
  return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Xi(e) : !0;
1834
1914
  }
1835
- const Tl = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1836
- function Sl(e) {
1915
+ const Vl = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1916
+ function Rl(e) {
1837
1917
  const [t, n] = e.slice(0, -1).split("(");
1838
1918
  if (t === "drop-shadow")
1839
1919
  return e;
@@ -1841,19 +1921,19 @@ function Sl(e) {
1841
1921
  if (!s)
1842
1922
  return e;
1843
1923
  const i = n.replace(s, "");
1844
- let o = Tl.has(t) ? 1 : 0;
1924
+ let o = Vl.has(t) ? 1 : 0;
1845
1925
  return s !== n && (o *= 100), t + "(" + o + i + ")";
1846
1926
  }
1847
- const Cl = /\b([a-z-]*)\(.*?\)/gu, hn = {
1927
+ const _l = /\b([a-z-]*)\(.*?\)/gu, hn = {
1848
1928
  ...ve,
1849
1929
  getAnimatableNone: (e) => {
1850
- const t = e.match(Cl);
1851
- return t ? t.map(Sl).join(" ") : e;
1930
+ const t = e.match(_l);
1931
+ return t ? t.map(Rl).join(" ") : e;
1852
1932
  }
1853
- }, _s = {
1933
+ }, Is = {
1854
1934
  ...Ne,
1855
1935
  transform: Math.round
1856
- }, Pl = {
1936
+ }, Ol = {
1857
1937
  rotate: ye,
1858
1938
  rotateX: ye,
1859
1939
  rotateY: ye,
@@ -1865,62 +1945,62 @@ const Cl = /\b([a-z-]*)\(.*?\)/gu, hn = {
1865
1945
  skew: ye,
1866
1946
  skewX: ye,
1867
1947
  skewY: ye,
1868
- distance: A,
1869
- translateX: A,
1870
- translateY: A,
1871
- translateZ: A,
1872
- x: A,
1873
- y: A,
1874
- z: A,
1875
- perspective: A,
1876
- transformPerspective: A,
1948
+ distance: k,
1949
+ translateX: k,
1950
+ translateY: k,
1951
+ translateZ: k,
1952
+ x: k,
1953
+ y: k,
1954
+ z: k,
1955
+ perspective: k,
1956
+ transformPerspective: k,
1877
1957
  opacity: et,
1878
- originX: xs,
1879
- originY: xs,
1880
- originZ: A
1958
+ originX: Cs,
1959
+ originY: Cs,
1960
+ originZ: k
1881
1961
  }, qn = {
1882
1962
  // Border props
1883
- borderWidth: A,
1884
- borderTopWidth: A,
1885
- borderRightWidth: A,
1886
- borderBottomWidth: A,
1887
- borderLeftWidth: A,
1888
- borderRadius: A,
1889
- radius: A,
1890
- borderTopLeftRadius: A,
1891
- borderTopRightRadius: A,
1892
- borderBottomRightRadius: A,
1893
- borderBottomLeftRadius: A,
1963
+ borderWidth: k,
1964
+ borderTopWidth: k,
1965
+ borderRightWidth: k,
1966
+ borderBottomWidth: k,
1967
+ borderLeftWidth: k,
1968
+ borderRadius: k,
1969
+ radius: k,
1970
+ borderTopLeftRadius: k,
1971
+ borderTopRightRadius: k,
1972
+ borderBottomRightRadius: k,
1973
+ borderBottomLeftRadius: k,
1894
1974
  // Positioning props
1895
- width: A,
1896
- maxWidth: A,
1897
- height: A,
1898
- maxHeight: A,
1899
- top: A,
1900
- right: A,
1901
- bottom: A,
1902
- left: A,
1975
+ width: k,
1976
+ maxWidth: k,
1977
+ height: k,
1978
+ maxHeight: k,
1979
+ top: k,
1980
+ right: k,
1981
+ bottom: k,
1982
+ left: k,
1903
1983
  // Spacing props
1904
- padding: A,
1905
- paddingTop: A,
1906
- paddingRight: A,
1907
- paddingBottom: A,
1908
- paddingLeft: A,
1909
- margin: A,
1910
- marginTop: A,
1911
- marginRight: A,
1912
- marginBottom: A,
1913
- marginLeft: A,
1984
+ padding: k,
1985
+ paddingTop: k,
1986
+ paddingRight: k,
1987
+ paddingBottom: k,
1988
+ paddingLeft: k,
1989
+ margin: k,
1990
+ marginTop: k,
1991
+ marginRight: k,
1992
+ marginBottom: k,
1993
+ marginLeft: k,
1914
1994
  // Misc
1915
- backgroundPositionX: A,
1916
- backgroundPositionY: A,
1917
- ...Pl,
1918
- zIndex: _s,
1995
+ backgroundPositionX: k,
1996
+ backgroundPositionY: k,
1997
+ ...Ol,
1998
+ zIndex: Is,
1919
1999
  // SVG
1920
2000
  fillOpacity: et,
1921
2001
  strokeOpacity: et,
1922
- numOctaves: _s
1923
- }, Ml = {
2002
+ numOctaves: Is
2003
+ }, Ll = {
1924
2004
  ...qn,
1925
2005
  // Color props
1926
2006
  color: F,
@@ -1936,23 +2016,23 @@ const Cl = /\b([a-z-]*)\(.*?\)/gu, hn = {
1936
2016
  borderLeftColor: F,
1937
2017
  filter: hn,
1938
2018
  WebkitFilter: hn
1939
- }, Dr = (e) => Ml[e];
2019
+ }, Dr = (e) => Ll[e];
1940
2020
  function Vr(e, t) {
1941
2021
  let n = Dr(e);
1942
2022
  return n !== hn && (n = ve), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1943
2023
  }
1944
- const kl = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1945
- function Al(e, t, n) {
2024
+ const Kl = /* @__PURE__ */ new Set(["auto", "none", "0"]);
2025
+ function Il(e, t, n) {
1946
2026
  let s = 0, i;
1947
2027
  for (; s < e.length && !i; ) {
1948
2028
  const o = e[s];
1949
- typeof o == "string" && !kl.has(o) && tt(o).values.length && (i = e[s]), s++;
2029
+ typeof o == "string" && !Kl.has(o) && tt(o).values.length && (i = e[s]), s++;
1950
2030
  }
1951
2031
  if (i && n)
1952
2032
  for (const o of t)
1953
2033
  e[o] = Vr(n, i);
1954
2034
  }
1955
- class El extends Wn {
2035
+ class Bl extends Wn {
1956
2036
  constructor(t, n, s, i, o) {
1957
2037
  super(t, n, s, i, o, !0);
1958
2038
  }
@@ -1968,11 +2048,11 @@ class El extends Wn {
1968
2048
  f !== void 0 && (t[a] = f), a === t.length - 1 && (this.finalKeyframe = l);
1969
2049
  }
1970
2050
  }
1971
- if (this.resolveNoneKeyframes(), !kr.has(s) || t.length !== 2)
2051
+ if (this.resolveNoneKeyframes(), !Ar.has(s) || t.length !== 2)
1972
2052
  return;
1973
- const [i, o] = t, r = Rs(i), c = Rs(o);
2053
+ const [i, o] = t, r = Ks(i), c = Ks(o);
1974
2054
  if (r !== c)
1975
- if (As(r) && As(c))
2055
+ if (Rs(r) && Rs(c))
1976
2056
  for (let a = 0; a < t.length; a++) {
1977
2057
  const l = t[a];
1978
2058
  typeof l == "string" && (t[a] = parseFloat(l));
@@ -1982,8 +2062,8 @@ class El extends Wn {
1982
2062
  resolveNoneKeyframes() {
1983
2063
  const { unresolvedKeyframes: t, name: n } = this, s = [];
1984
2064
  for (let i = 0; i < t.length; i++)
1985
- (t[i] === null || wl(t[i])) && s.push(i);
1986
- s.length && Al(t, s, n);
2065
+ (t[i] === null || Dl(t[i])) && s.push(i);
2066
+ s.length && Il(t, s, n);
1987
2067
  }
1988
2068
  measureInitialState() {
1989
2069
  const { element: t, unresolvedKeyframes: n, name: s } = this;
@@ -2005,7 +2085,7 @@ class El extends Wn {
2005
2085
  }), this.resolveNoneKeyframes();
2006
2086
  }
2007
2087
  }
2008
- function Dl(e, t, n) {
2088
+ function Fl(e, t, n) {
2009
2089
  if (e instanceof EventTarget)
2010
2090
  return [e];
2011
2091
  if (typeof e == "string") {
@@ -2015,8 +2095,8 @@ function Dl(e, t, n) {
2015
2095
  }
2016
2096
  return Array.from(e);
2017
2097
  }
2018
- const Rr = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Os = 30, Vl = (e) => !isNaN(parseFloat(e));
2019
- class Rl {
2098
+ const Rr = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Bs = 30, jl = (e) => !isNaN(parseFloat(e));
2099
+ class Nl {
2020
2100
  /**
2021
2101
  * @param init - The initiating value
2022
2102
  * @param config - Optional configuration options
@@ -2033,7 +2113,7 @@ class Rl {
2033
2113
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
2034
2114
  }
2035
2115
  setCurrent(t) {
2036
- this.current = t, this.updatedAt = Z.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = Vl(this.current));
2116
+ this.current = t, this.updatedAt = Z.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = jl(this.current));
2037
2117
  }
2038
2118
  setPrevFrameValue(t = this.current) {
2039
2119
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -2162,9 +2242,9 @@ class Rl {
2162
2242
  */
2163
2243
  getVelocity() {
2164
2244
  const t = Z.now();
2165
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > Os)
2245
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > Bs)
2166
2246
  return 0;
2167
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, Os);
2247
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, Bs);
2168
2248
  return Zi(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
2169
2249
  }
2170
2250
  /**
@@ -2217,7 +2297,7 @@ class Rl {
2217
2297
  }
2218
2298
  }
2219
2299
  function Ie(e, t) {
2220
- return new Rl(e, t);
2300
+ return new Nl(e, t);
2221
2301
  }
2222
2302
  const { schedule: Xn } = /* @__PURE__ */ lr(queueMicrotask, !1), ie = {
2223
2303
  x: !1,
@@ -2226,7 +2306,7 @@ const { schedule: Xn } = /* @__PURE__ */ lr(queueMicrotask, !1), ie = {
2226
2306
  function _r() {
2227
2307
  return ie.x || ie.y;
2228
2308
  }
2229
- function _l(e) {
2309
+ function Ul(e) {
2230
2310
  return e === "x" || e === "y" ? ie[e] ? null : (ie[e] = !0, () => {
2231
2311
  ie[e] = !1;
2232
2312
  }) : ie.x || ie.y ? null : (ie.x = ie.y = !0, () => {
@@ -2234,25 +2314,25 @@ function _l(e) {
2234
2314
  });
2235
2315
  }
2236
2316
  function Or(e, t) {
2237
- const n = Dl(e), s = new AbortController(), i = {
2317
+ const n = Fl(e), s = new AbortController(), i = {
2238
2318
  passive: !0,
2239
2319
  ...t,
2240
2320
  signal: s.signal
2241
2321
  };
2242
2322
  return [n, i, () => s.abort()];
2243
2323
  }
2244
- function Ls(e) {
2324
+ function Fs(e) {
2245
2325
  return !(e.pointerType === "touch" || _r());
2246
2326
  }
2247
- function Ol(e, t, n = {}) {
2327
+ function zl(e, t, n = {}) {
2248
2328
  const [s, i, o] = Or(e, n), r = (c) => {
2249
- if (!Ls(c))
2329
+ if (!Fs(c))
2250
2330
  return;
2251
2331
  const { target: a } = c, l = t(a, c);
2252
2332
  if (typeof l != "function" || !a)
2253
2333
  return;
2254
2334
  const f = (d) => {
2255
- Ls(d) && (l(d), a.removeEventListener("pointerleave", f));
2335
+ Fs(d) && (l(d), a.removeEventListener("pointerleave", f));
2256
2336
  };
2257
2337
  a.addEventListener("pointerleave", f, i);
2258
2338
  };
@@ -2260,51 +2340,51 @@ function Ol(e, t, n = {}) {
2260
2340
  c.addEventListener("pointerenter", r, i);
2261
2341
  }), o;
2262
2342
  }
2263
- const Lr = (e, t) => t ? e === t ? !0 : Lr(e, t.parentElement) : !1, Zn = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Ll = /* @__PURE__ */ new Set([
2343
+ const Lr = (e, t) => t ? e === t ? !0 : Lr(e, t.parentElement) : !1, Zn = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Gl = /* @__PURE__ */ new Set([
2264
2344
  "BUTTON",
2265
2345
  "INPUT",
2266
2346
  "SELECT",
2267
2347
  "TEXTAREA",
2268
2348
  "A"
2269
2349
  ]);
2270
- function Kl(e) {
2271
- return Ll.has(e.tagName) || e.tabIndex !== -1;
2350
+ function $l(e) {
2351
+ return Gl.has(e.tagName) || e.tabIndex !== -1;
2272
2352
  }
2273
2353
  const St = /* @__PURE__ */ new WeakSet();
2274
- function Ks(e) {
2354
+ function js(e) {
2275
2355
  return (t) => {
2276
2356
  t.key === "Enter" && e(t);
2277
2357
  };
2278
2358
  }
2279
- function Gt(e, t) {
2359
+ function $t(e, t) {
2280
2360
  e.dispatchEvent(new PointerEvent("pointer" + t, { isPrimary: !0, bubbles: !0 }));
2281
2361
  }
2282
- const Il = (e, t) => {
2362
+ const Wl = (e, t) => {
2283
2363
  const n = e.currentTarget;
2284
2364
  if (!n)
2285
2365
  return;
2286
- const s = Ks(() => {
2366
+ const s = js(() => {
2287
2367
  if (St.has(n))
2288
2368
  return;
2289
- Gt(n, "down");
2290
- const i = Ks(() => {
2291
- Gt(n, "up");
2292
- }), o = () => Gt(n, "cancel");
2369
+ $t(n, "down");
2370
+ const i = js(() => {
2371
+ $t(n, "up");
2372
+ }), o = () => $t(n, "cancel");
2293
2373
  n.addEventListener("keyup", i, t), n.addEventListener("blur", o, t);
2294
2374
  });
2295
2375
  n.addEventListener("keydown", s, t), n.addEventListener("blur", () => n.removeEventListener("keydown", s), t);
2296
2376
  };
2297
- function Is(e) {
2377
+ function Ns(e) {
2298
2378
  return Zn(e) && !_r();
2299
2379
  }
2300
- function Bl(e, t, n = {}) {
2380
+ function Hl(e, t, n = {}) {
2301
2381
  const [s, i, o] = Or(e, n), r = (c) => {
2302
2382
  const a = c.currentTarget;
2303
- if (!Is(c))
2383
+ if (!Ns(c))
2304
2384
  return;
2305
2385
  St.add(a);
2306
2386
  const l = t(a, c), f = (y, x) => {
2307
- window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", u), St.has(a) && St.delete(a), Is(y) && typeof l == "function" && l(y, { success: x });
2387
+ window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", u), St.has(a) && St.delete(a), Ns(y) && typeof l == "function" && l(y, { success: x });
2308
2388
  }, d = (y) => {
2309
2389
  f(y, a === window || a === document || n.useGlobalTarget || Lr(a, y.target));
2310
2390
  }, u = (y) => {
@@ -2313,21 +2393,21 @@ function Bl(e, t, n = {}) {
2313
2393
  window.addEventListener("pointerup", d, i), window.addEventListener("pointercancel", u, i);
2314
2394
  };
2315
2395
  return s.forEach((c) => {
2316
- (n.useGlobalTarget ? window : c).addEventListener("pointerdown", r, i), Hn(c) && (c.addEventListener("focus", (l) => Il(l, i)), !Kl(c) && !c.hasAttribute("tabindex") && (c.tabIndex = 0));
2396
+ (n.useGlobalTarget ? window : c).addEventListener("pointerdown", r, i), Hn(c) && (c.addEventListener("focus", (l) => Wl(l, i)), !$l(c) && !c.hasAttribute("tabindex") && (c.tabIndex = 0));
2317
2397
  }), o;
2318
2398
  }
2319
2399
  function Kr(e) {
2320
2400
  return qi(e) && "ownerSVGElement" in e;
2321
2401
  }
2322
- function Fl(e) {
2402
+ function Yl(e) {
2323
2403
  return Kr(e) && e.tagName === "svg";
2324
2404
  }
2325
- const Y = (e) => !!(e && e.getVelocity), jl = [...Er, F, ve], Nl = (e) => jl.find(Ar(e)), Jn = Fe({
2405
+ const Y = (e) => !!(e && e.getVelocity), ql = [...Er, F, ve], Xl = (e) => ql.find(kr(e)), Jn = Fe({
2326
2406
  transformPagePoint: (e) => e,
2327
2407
  isStatic: !1,
2328
2408
  reducedMotion: "never"
2329
2409
  });
2330
- class Ul extends Pn.Component {
2410
+ class Zl extends Pn.Component {
2331
2411
  getSnapshotBeforeUpdate(t) {
2332
2412
  const n = this.props.childRef.current;
2333
2413
  if (n && t.isPresent && !this.props.isPresent) {
@@ -2345,7 +2425,7 @@ class Ul extends Pn.Component {
2345
2425
  return this.props.children;
2346
2426
  }
2347
2427
  }
2348
- function zl({ children: e, isPresent: t, anchorX: n, root: s }) {
2428
+ function Jl({ children: e, isPresent: t, anchorX: n, root: s }) {
2349
2429
  const i = Mn(), o = ue(null), r = ue({
2350
2430
  width: 0,
2351
2431
  height: 0,
@@ -2373,11 +2453,11 @@ function zl({ children: e, isPresent: t, anchorX: n, root: s }) {
2373
2453
  `), () => {
2374
2454
  S.removeChild(x), S.contains(x) && S.removeChild(x);
2375
2455
  };
2376
- }, [t]), re(Ul, { isPresent: t, childRef: o, sizeRef: r, children: Pn.cloneElement(e, { ref: o }) });
2456
+ }, [t]), re(Zl, { isPresent: t, childRef: o, sizeRef: r, children: Pn.cloneElement(e, { ref: o }) });
2377
2457
  }
2378
- const Gl = ({ children: e, initial: t, isPresent: n, onExitComplete: s, custom: i, presenceAffectsLayout: o, mode: r, anchorX: c, root: a }) => {
2379
- const l = An($l), f = Mn();
2380
- let d = !0, u = Ae(() => (d = !1, {
2458
+ const Ql = ({ children: e, initial: t, isPresent: n, onExitComplete: s, custom: i, presenceAffectsLayout: o, mode: r, anchorX: c, root: a }) => {
2459
+ const l = kn(ec), f = Mn();
2460
+ let d = !0, u = ke(() => (d = !1, {
2381
2461
  id: f,
2382
2462
  initial: t,
2383
2463
  isPresent: n,
@@ -2391,13 +2471,13 @@ const Gl = ({ children: e, initial: t, isPresent: n, onExitComplete: s, custom:
2391
2471
  },
2392
2472
  register: (y) => (l.set(y, !1), () => l.delete(y))
2393
2473
  }), [n, l, s]);
2394
- return o && d && (u = { ...u }), Ae(() => {
2474
+ return o && d && (u = { ...u }), ke(() => {
2395
2475
  l.forEach((y, x) => l.set(x, !1));
2396
2476
  }, [n]), Pn.useEffect(() => {
2397
2477
  !n && !l.size && s && s();
2398
- }, [n]), r === "popLayout" && (e = re(zl, { isPresent: n, anchorX: c, root: a, children: e })), re(_t.Provider, { value: u, children: e });
2478
+ }, [n]), r === "popLayout" && (e = re(Jl, { isPresent: n, anchorX: c, root: a, children: e })), re(_t.Provider, { value: u, children: e });
2399
2479
  };
2400
- function $l() {
2480
+ function ec() {
2401
2481
  return /* @__PURE__ */ new Map();
2402
2482
  }
2403
2483
  function Ir(e = !0) {
@@ -2413,14 +2493,14 @@ function Ir(e = !0) {
2413
2493
  return !n && s ? [!1, r] : [!0];
2414
2494
  }
2415
2495
  const gt = (e) => e.key || "";
2416
- function Bs(e) {
2496
+ function Us(e) {
2417
2497
  const t = [];
2418
- return Io.forEach(e, (n) => {
2419
- Bo(n) && t.push(n);
2498
+ return Lo.forEach(e, (n) => {
2499
+ Ko(n) && t.push(n);
2420
2500
  }), t;
2421
2501
  }
2422
- const Wl = ({ children: e, custom: t, initial: n = !0, onExitComplete: s, presenceAffectsLayout: i = !0, mode: o = "sync", propagate: r = !1, anchorX: c = "left", root: a }) => {
2423
- const [l, f] = Ir(r), d = Ae(() => Bs(e), [e]), u = r && !l ? [] : d.map(gt), y = ue(!0), x = ue(d), S = An(() => /* @__PURE__ */ new Map()), [C, p] = fs(d), [b, h] = fs(d);
2502
+ const tc = ({ children: e, custom: t, initial: n = !0, onExitComplete: s, presenceAffectsLayout: i = !0, mode: o = "sync", propagate: r = !1, anchorX: c = "left", root: a }) => {
2503
+ const [l, f] = Ir(r), d = ke(() => Us(e), [e]), u = r && !l ? [] : d.map(gt), y = ue(!0), x = ue(d), S = kn(() => /* @__PURE__ */ new Map()), [C, p] = fs(d), [b, h] = fs(d);
2424
2504
  Hi(() => {
2425
2505
  y.current = !1, x.current = d;
2426
2506
  for (let w = 0; w < b.length; w++) {
@@ -2435,11 +2515,11 @@ const Wl = ({ children: e, custom: t, initial: n = !0, onExitComplete: s, presen
2435
2515
  const v = b[T], E = gt(v);
2436
2516
  u.includes(E) || (w.splice(T, 0, v), m.push(v));
2437
2517
  }
2438
- return o === "wait" && m.length && (w = m), h(Bs(w)), p(d), null;
2518
+ return o === "wait" && m.length && (w = m), h(Us(w)), p(d), null;
2439
2519
  }
2440
2520
  process.env.NODE_ENV !== "production" && o === "wait" && b.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
2441
- const { forceRender: g } = H(kn);
2442
- return re(Oo, { children: b.map((w) => {
2521
+ const { forceRender: g } = H(An);
2522
+ return re(jo, { children: b.map((w) => {
2443
2523
  const T = gt(w), v = r && !l ? !1 : d === b || u.includes(T), E = () => {
2444
2524
  if (S.has(T))
2445
2525
  S.set(T, !0);
@@ -2450,9 +2530,9 @@ const Wl = ({ children: e, custom: t, initial: n = !0, onExitComplete: s, presen
2450
2530
  _ || (D = !1);
2451
2531
  }), D && (g?.(), h(x.current), r && f?.(), s && s());
2452
2532
  };
2453
- return re(Gl, { isPresent: v, initial: !y.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: o, root: a, onExitComplete: v ? void 0 : E, anchorX: c, children: w }, T);
2533
+ return re(Ql, { isPresent: v, initial: !y.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: o, root: a, onExitComplete: v ? void 0 : E, anchorX: c, children: w }, T);
2454
2534
  }) });
2455
- }, Br = Fe({ strict: !1 }), Fs = {
2535
+ }, Br = Fe({ strict: !1 }), zs = {
2456
2536
  animation: [
2457
2537
  "animate",
2458
2538
  "variants",
@@ -2472,18 +2552,18 @@ const Wl = ({ children: e, custom: t, initial: n = !0, onExitComplete: s, presen
2472
2552
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
2473
2553
  layout: ["layout", "layoutId"]
2474
2554
  }, Be = {};
2475
- for (const e in Fs)
2555
+ for (const e in zs)
2476
2556
  Be[e] = {
2477
- isEnabled: (t) => Fs[e].some((n) => !!t[n])
2557
+ isEnabled: (t) => zs[e].some((n) => !!t[n])
2478
2558
  };
2479
- function Hl(e) {
2559
+ function nc(e) {
2480
2560
  for (const t in e)
2481
2561
  Be[t] = {
2482
2562
  ...Be[t],
2483
2563
  ...e[t]
2484
2564
  };
2485
2565
  }
2486
- const Yl = /* @__PURE__ */ new Set([
2566
+ const sc = /* @__PURE__ */ new Set([
2487
2567
  "animate",
2488
2568
  "exit",
2489
2569
  "variants",
@@ -2516,24 +2596,24 @@ const Yl = /* @__PURE__ */ new Set([
2516
2596
  "viewport"
2517
2597
  ]);
2518
2598
  function Dt(e) {
2519
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Yl.has(e);
2599
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || sc.has(e);
2520
2600
  }
2521
2601
  let Fr = (e) => !Dt(e);
2522
- function ql(e) {
2602
+ function ic(e) {
2523
2603
  typeof e == "function" && (Fr = (t) => t.startsWith("on") ? !Dt(t) : e(t));
2524
2604
  }
2525
2605
  try {
2526
- ql(require("@emotion/is-prop-valid").default);
2606
+ ic(require("@emotion/is-prop-valid").default);
2527
2607
  } catch {
2528
2608
  }
2529
- function Xl(e, t, n) {
2609
+ function rc(e, t, n) {
2530
2610
  const s = {};
2531
2611
  for (const i in e)
2532
2612
  i === "values" && typeof e.values == "object" || (Fr(i) || n === !0 && Dt(i) || !t && !Dt(i) || // If trying to use native HTML drag events, forward drag listeners
2533
2613
  e.draggable && i.startsWith("onDrag")) && (s[i] = e[i]);
2534
2614
  return s;
2535
2615
  }
2536
- function Zl(e) {
2616
+ function oc(e) {
2537
2617
  if (typeof Proxy > "u")
2538
2618
  return e;
2539
2619
  const t = /* @__PURE__ */ new Map(), n = (...s) => (process.env.NODE_ENV !== "production" && On(!1, "motion() is deprecated. Use motion.create() instead."), e(...s));
@@ -2568,7 +2648,7 @@ function Kt(e) {
2568
2648
  function jr(e) {
2569
2649
  return !!(Kt(e) || e.variants);
2570
2650
  }
2571
- function Jl(e, t) {
2651
+ function ac(e, t) {
2572
2652
  if (Kt(e)) {
2573
2653
  const { initial: n, animate: s } = e;
2574
2654
  return {
@@ -2578,18 +2658,18 @@ function Jl(e, t) {
2578
2658
  }
2579
2659
  return e.inherit !== !1 ? t : {};
2580
2660
  }
2581
- function Ql(e) {
2582
- const { initial: t, animate: n } = Jl(e, H(Ot));
2583
- return Ae(() => ({ initial: t, animate: n }), [js(t), js(n)]);
2661
+ function lc(e) {
2662
+ const { initial: t, animate: n } = ac(e, H(Ot));
2663
+ return ke(() => ({ initial: t, animate: n }), [Gs(t), Gs(n)]);
2584
2664
  }
2585
- function js(e) {
2665
+ function Gs(e) {
2586
2666
  return Array.isArray(e) ? e.join(" ") : e;
2587
2667
  }
2588
- const ec = Symbol.for("motionComponentSymbol");
2668
+ const cc = Symbol.for("motionComponentSymbol");
2589
2669
  function _e(e) {
2590
2670
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
2591
2671
  }
2592
- function tc(e, t, n) {
2672
+ function uc(e, t, n) {
2593
2673
  return $i(
2594
2674
  (s) => {
2595
2675
  s && e.onMount && e.onMount(s), t && (s ? t.mount(s) : t.unmount()), n && (typeof n == "function" ? n(s) : _e(n) && (n.current = s));
@@ -2602,8 +2682,8 @@ function tc(e, t, n) {
2602
2682
  [t]
2603
2683
  );
2604
2684
  }
2605
- const ts = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), nc = "framerAppearId", Nr = "data-" + ts(nc), Ur = Fe({});
2606
- function sc(e, t, n, s, i) {
2685
+ const ts = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), dc = "framerAppearId", Nr = "data-" + ts(dc), Ur = Fe({});
2686
+ function fc(e, t, n, s, i) {
2607
2687
  const { visualElement: o } = H(Ot), r = H(Br), c = H(_t), a = H(Jn).reducedMotion, l = ue(null);
2608
2688
  s = s || r.renderer, !l.current && s && (l.current = s(e, {
2609
2689
  visualState: t,
@@ -2614,7 +2694,7 @@ function sc(e, t, n, s, i) {
2614
2694
  reducedMotionConfig: a
2615
2695
  }));
2616
2696
  const f = l.current, d = H(Ur);
2617
- f && !f.projection && i && (f.type === "html" || f.type === "svg") && ic(l.current, n, i, d);
2697
+ f && !f.projection && i && (f.type === "html" || f.type === "svg") && hc(l.current, n, i, d);
2618
2698
  const u = ue(!1);
2619
2699
  Gi(() => {
2620
2700
  f && u.current && f.update(n, c);
@@ -2628,7 +2708,7 @@ function sc(e, t, n, s, i) {
2628
2708
  }), x.current = !1));
2629
2709
  }), f;
2630
2710
  }
2631
- function ic(e, t, n, s) {
2711
+ function hc(e, t, n, s) {
2632
2712
  const { layoutId: i, layout: o, drag: r, dragConstraints: c, layoutScroll: a, layoutRoot: l, layoutCrossfade: f } = t;
2633
2713
  e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : zr(e.parent)), e.projection.setOptions({
2634
2714
  layoutId: i,
@@ -2653,38 +2733,38 @@ function zr(e) {
2653
2733
  if (e)
2654
2734
  return e.options.allowProjection !== !1 ? e.projection : zr(e.parent);
2655
2735
  }
2656
- function rc({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: s, Component: i }) {
2657
- e && Hl(e);
2736
+ function pc({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: s, Component: i }) {
2737
+ e && nc(e);
2658
2738
  function o(c, a) {
2659
2739
  let l;
2660
2740
  const f = {
2661
2741
  ...H(Jn),
2662
2742
  ...c,
2663
- layoutId: oc(c)
2664
- }, { isStatic: d } = f, u = Ql(c), y = s(c, d);
2743
+ layoutId: mc(c)
2744
+ }, { isStatic: d } = f, u = lc(c), y = s(c, d);
2665
2745
  if (!d && En) {
2666
- ac(f, e);
2667
- const x = lc(f);
2668
- l = x.MeasureLayout, u.visualElement = sc(i, y, f, t, x.ProjectionNode);
2746
+ gc(f, e);
2747
+ const x = yc(f);
2748
+ l = x.MeasureLayout, u.visualElement = fc(i, y, f, t, x.ProjectionNode);
2669
2749
  }
2670
- return Lo(Ot.Provider, { value: u, children: [l && u.visualElement ? re(l, { visualElement: u.visualElement, ...f }) : null, n(i, c, tc(y, u.visualElement, a), y, d, u.visualElement)] });
2750
+ return No(Ot.Provider, { value: u, children: [l && u.visualElement ? re(l, { visualElement: u.visualElement, ...f }) : null, n(i, c, uc(y, u.visualElement, a), y, d, u.visualElement)] });
2671
2751
  }
2672
2752
  o.displayName = `motion.${typeof i == "string" ? i : `create(${i.displayName ?? i.name ?? ""})`}`;
2673
- const r = Fo(o);
2674
- return r[ec] = i, r;
2753
+ const r = Io(o);
2754
+ return r[cc] = i, r;
2675
2755
  }
2676
- function oc({ layoutId: e }) {
2677
- const t = H(kn).id;
2756
+ function mc({ layoutId: e }) {
2757
+ const t = H(An).id;
2678
2758
  return t && e !== void 0 ? t + "-" + e : e;
2679
2759
  }
2680
- function ac(e, t) {
2760
+ function gc(e, t) {
2681
2761
  const n = H(Br).strict;
2682
2762
  if (process.env.NODE_ENV !== "production" && t && n) {
2683
2763
  const s = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
2684
2764
  e.ignoreStrict ? je(!1, s, "lazy-strict-mode") : fe(!1, s, "lazy-strict-mode");
2685
2765
  }
2686
2766
  }
2687
- function lc(e) {
2767
+ function yc(e) {
2688
2768
  const { drag: t, layout: n } = Be;
2689
2769
  if (!t && !n)
2690
2770
  return {};
@@ -2695,22 +2775,22 @@ function lc(e) {
2695
2775
  };
2696
2776
  }
2697
2777
  const st = {};
2698
- function cc(e) {
2778
+ function bc(e) {
2699
2779
  for (const t in e)
2700
2780
  st[t] = e[t], In(t) && (st[t].isCSSVariable = !0);
2701
2781
  }
2702
2782
  function Gr(e, { layout: t, layoutId: n }) {
2703
2783
  return ze.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!st[e] || e === "opacity");
2704
2784
  }
2705
- const uc = {
2785
+ const vc = {
2706
2786
  x: "translateX",
2707
2787
  y: "translateY",
2708
2788
  z: "translateZ",
2709
2789
  transformPerspective: "perspective"
2710
- }, dc = Ue.length;
2711
- function fc(e, t, n) {
2790
+ }, xc = Ue.length;
2791
+ function wc(e, t, n) {
2712
2792
  let s = "", i = !0;
2713
- for (let o = 0; o < dc; o++) {
2793
+ for (let o = 0; o < xc; o++) {
2714
2794
  const r = Ue[o], c = e[r];
2715
2795
  if (c === void 0)
2716
2796
  continue;
@@ -2719,7 +2799,7 @@ function fc(e, t, n) {
2719
2799
  const l = Rr(c, qn[r]);
2720
2800
  if (!a) {
2721
2801
  i = !1;
2722
- const f = uc[r] || r;
2802
+ const f = vc[r] || r;
2723
2803
  s += `${f}(${l}) `;
2724
2804
  }
2725
2805
  n && (t[r] = l);
@@ -2743,7 +2823,7 @@ function ns(e, t, n) {
2743
2823
  a.startsWith("origin") ? (c = !0, o[a] = f) : s[a] = f;
2744
2824
  }
2745
2825
  }
2746
- if (t.transform || (r || n ? s.transform = fc(t, e.transform, n) : s.transform && (s.transform = "none")), c) {
2826
+ if (t.transform || (r || n ? s.transform = wc(t, e.transform, n) : s.transform && (s.transform = "none")), c) {
2747
2827
  const { originX: a = "50%", originY: l = "50%", originZ: f = 0 } = o;
2748
2828
  s.transformOrigin = `${a} ${l} ${f}`;
2749
2829
  }
@@ -2758,32 +2838,32 @@ function $r(e, t, n) {
2758
2838
  for (const s in t)
2759
2839
  !Y(t[s]) && !Gr(s, n) && (e[s] = t[s]);
2760
2840
  }
2761
- function hc({ transformTemplate: e }, t) {
2762
- return Ae(() => {
2841
+ function Tc({ transformTemplate: e }, t) {
2842
+ return ke(() => {
2763
2843
  const n = ss();
2764
2844
  return ns(n, t, e), Object.assign({}, n.vars, n.style);
2765
2845
  }, [t]);
2766
2846
  }
2767
- function pc(e, t) {
2847
+ function Sc(e, t) {
2768
2848
  const n = e.style || {}, s = {};
2769
- return $r(s, n, e), Object.assign(s, hc(e, t)), s;
2849
+ return $r(s, n, e), Object.assign(s, Tc(e, t)), s;
2770
2850
  }
2771
- function mc(e, t) {
2772
- const n = {}, s = pc(e, t);
2851
+ function Cc(e, t) {
2852
+ const n = {}, s = Sc(e, t);
2773
2853
  return e.drag && e.dragListener !== !1 && (n.draggable = !1, s.userSelect = s.WebkitUserSelect = s.WebkitTouchCallout = "none", s.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = s, n;
2774
2854
  }
2775
- const gc = {
2855
+ const Pc = {
2776
2856
  offset: "stroke-dashoffset",
2777
2857
  array: "stroke-dasharray"
2778
- }, yc = {
2858
+ }, Mc = {
2779
2859
  offset: "strokeDashoffset",
2780
2860
  array: "strokeDasharray"
2781
2861
  };
2782
- function bc(e, t, n = 1, s = 0, i = !0) {
2862
+ function Ac(e, t, n = 1, s = 0, i = !0) {
2783
2863
  e.pathLength = 1;
2784
- const o = i ? gc : yc;
2785
- e[o.offset] = A.transform(-s);
2786
- const r = A.transform(t), c = A.transform(n);
2864
+ const o = i ? Pc : Mc;
2865
+ e[o.offset] = k.transform(-s);
2866
+ const r = k.transform(t), c = k.transform(n);
2787
2867
  e[o.array] = `${r} ${c}`;
2788
2868
  }
2789
2869
  function Wr(e, {
@@ -2802,14 +2882,14 @@ function Wr(e, {
2802
2882
  }
2803
2883
  e.attrs = e.style, e.style = {};
2804
2884
  const { attrs: d, style: u } = e;
2805
- d.transform && (u.transform = d.transform, delete d.transform), (u.transform || d.transformOrigin) && (u.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), u.transform && (u.transformBox = f?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), s !== void 0 && (d.scale = s), i !== void 0 && bc(d, i, o, r, !1);
2885
+ d.transform && (u.transform = d.transform, delete d.transform), (u.transform || d.transformOrigin) && (u.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), u.transform && (u.transformBox = f?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), s !== void 0 && (d.scale = s), i !== void 0 && Ac(d, i, o, r, !1);
2806
2886
  }
2807
2887
  const Hr = () => ({
2808
2888
  ...ss(),
2809
2889
  attrs: {}
2810
2890
  }), Yr = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2811
- function vc(e, t, n, s) {
2812
- const i = Ae(() => {
2891
+ function kc(e, t, n, s) {
2892
+ const i = ke(() => {
2813
2893
  const o = Hr();
2814
2894
  return Wr(o, t, Yr(s), e.transformTemplate, e.style), {
2815
2895
  ...o.attrs,
@@ -2822,7 +2902,7 @@ function vc(e, t, n, s) {
2822
2902
  }
2823
2903
  return i;
2824
2904
  }
2825
- const xc = [
2905
+ const Ec = [
2826
2906
  "animate",
2827
2907
  "circle",
2828
2908
  "defs",
@@ -2862,23 +2942,23 @@ function is(e) {
2862
2942
  /**
2863
2943
  * If it's in our list of lowercase SVG tags, it's an SVG component
2864
2944
  */
2865
- !!(xc.indexOf(e) > -1 || /**
2945
+ !!(Ec.indexOf(e) > -1 || /**
2866
2946
  * If it contains a capital letter, it's an SVG component
2867
2947
  */
2868
2948
  /[A-Z]/u.test(e))
2869
2949
  )
2870
2950
  );
2871
2951
  }
2872
- function wc(e = !1) {
2952
+ function Dc(e = !1) {
2873
2953
  return (n, s, i, { latestValues: o }, r) => {
2874
- const a = (is(n) ? vc : mc)(s, o, r, n), l = Xl(s, typeof n == "string", e), f = n !== Wi ? { ...l, ...a, ref: i } : {}, { children: d } = s, u = Ae(() => Y(d) ? d.get() : d, [d]);
2875
- return jo(n, {
2954
+ const a = (is(n) ? kc : Cc)(s, o, r, n), l = rc(s, typeof n == "string", e), f = n !== Wi ? { ...l, ...a, ref: i } : {}, { children: d } = s, u = ke(() => Y(d) ? d.get() : d, [d]);
2955
+ return Bo(n, {
2876
2956
  ...f,
2877
2957
  children: u
2878
2958
  });
2879
2959
  };
2880
2960
  }
2881
- function Ns(e) {
2961
+ function $s(e) {
2882
2962
  const t = [{}, {}];
2883
2963
  return e?.values.forEach((n, s) => {
2884
2964
  t[0][s] = n.get(), t[1][s] = n.getVelocity();
@@ -2886,11 +2966,11 @@ function Ns(e) {
2886
2966
  }
2887
2967
  function rs(e, t, n, s) {
2888
2968
  if (typeof t == "function") {
2889
- const [i, o] = Ns(s);
2969
+ const [i, o] = $s(s);
2890
2970
  t = t(n !== void 0 ? n : e.custom, i, o);
2891
2971
  }
2892
2972
  if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
2893
- const [i, o] = Ns(s);
2973
+ const [i, o] = $s(s);
2894
2974
  t = t(n !== void 0 ? n : e.custom, i, o);
2895
2975
  }
2896
2976
  return t;
@@ -2898,17 +2978,17 @@ function rs(e, t, n, s) {
2898
2978
  function Ct(e) {
2899
2979
  return Y(e) ? e.get() : e;
2900
2980
  }
2901
- function Tc({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, s, i) {
2981
+ function Vc({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, s, i) {
2902
2982
  return {
2903
- latestValues: Sc(n, s, i, e),
2983
+ latestValues: Rc(n, s, i, e),
2904
2984
  renderState: t()
2905
2985
  };
2906
2986
  }
2907
2987
  const qr = (e) => (t, n) => {
2908
- const s = H(Ot), i = H(_t), o = () => Tc(e, t, s, i);
2909
- return n ? o() : An(o);
2988
+ const s = H(Ot), i = H(_t), o = () => Vc(e, t, s, i);
2989
+ return n ? o() : kn(o);
2910
2990
  };
2911
- function Sc(e, t, n, s) {
2991
+ function Rc(e, t, n, s) {
2912
2992
  const i = {}, o = s(e, {});
2913
2993
  for (const u in o)
2914
2994
  i[u] = Ct(o[u]);
@@ -2945,7 +3025,7 @@ function os(e, t, n) {
2945
3025
  (Y(s[o]) || t.style && Y(t.style[o]) || Gr(o, e) || n?.getValue(o)?.liveStyle !== void 0) && (i[o] = s[o]);
2946
3026
  return i;
2947
3027
  }
2948
- const Cc = {
3028
+ const _c = {
2949
3029
  useVisualState: qr({
2950
3030
  scrapeMotionValuesFromProps: os,
2951
3031
  createRenderState: ss
@@ -2960,22 +3040,22 @@ function Xr(e, t, n) {
2960
3040
  }
2961
3041
  return s;
2962
3042
  }
2963
- const Pc = {
3043
+ const Oc = {
2964
3044
  useVisualState: qr({
2965
3045
  scrapeMotionValuesFromProps: Xr,
2966
3046
  createRenderState: Hr
2967
3047
  })
2968
3048
  };
2969
- function Mc(e, t) {
3049
+ function Lc(e, t) {
2970
3050
  return function(s, { forwardMotionProps: i } = { forwardMotionProps: !1 }) {
2971
3051
  const r = {
2972
- ...is(s) ? Pc : Cc,
3052
+ ...is(s) ? Oc : _c,
2973
3053
  preloadedFeatures: e,
2974
- useRender: wc(i),
3054
+ useRender: Dc(i),
2975
3055
  createVisualElement: t,
2976
3056
  Component: s
2977
3057
  };
2978
- return rc(r);
3058
+ return pc(r);
2979
3059
  };
2980
3060
  }
2981
3061
  function it(e, t, n) {
@@ -2983,27 +3063,27 @@ function it(e, t, n) {
2983
3063
  return rs(s, t, n !== void 0 ? n : s.custom, e);
2984
3064
  }
2985
3065
  const pn = (e) => Array.isArray(e);
2986
- function kc(e, t, n) {
3066
+ function Kc(e, t, n) {
2987
3067
  e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Ie(n));
2988
3068
  }
2989
- function Ac(e) {
3069
+ function Ic(e) {
2990
3070
  return pn(e) ? e[e.length - 1] || 0 : e;
2991
3071
  }
2992
- function Ec(e, t) {
3072
+ function Bc(e, t) {
2993
3073
  const n = it(e, t);
2994
3074
  let { transitionEnd: s = {}, transition: i = {}, ...o } = n || {};
2995
3075
  o = { ...o, ...s };
2996
3076
  for (const r in o) {
2997
- const c = Ac(o[r]);
2998
- kc(e, r, c);
3077
+ const c = Ic(o[r]);
3078
+ Kc(e, r, c);
2999
3079
  }
3000
3080
  }
3001
- function Dc(e) {
3081
+ function Fc(e) {
3002
3082
  return !!(Y(e) && e.add);
3003
3083
  }
3004
3084
  function mn(e, t) {
3005
3085
  const n = e.getValue("willChange");
3006
- if (Dc(n))
3086
+ if (Fc(n))
3007
3087
  return n.add(t);
3008
3088
  if (!n && he.WillChange) {
3009
3089
  const s = new he.WillChange("auto");
@@ -3013,30 +3093,30 @@ function mn(e, t) {
3013
3093
  function Zr(e) {
3014
3094
  return e.props[Nr];
3015
3095
  }
3016
- const Vc = (e) => e !== null;
3017
- function Rc(e, { repeat: t, repeatType: n = "loop" }, s) {
3018
- const i = e.filter(Vc), o = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
3096
+ const jc = (e) => e !== null;
3097
+ function Nc(e, { repeat: t, repeatType: n = "loop" }, s) {
3098
+ const i = e.filter(jc), o = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
3019
3099
  return i[o];
3020
3100
  }
3021
- const _c = {
3101
+ const Uc = {
3022
3102
  type: "spring",
3023
3103
  stiffness: 500,
3024
3104
  damping: 25,
3025
3105
  restSpeed: 10
3026
- }, Oc = (e) => ({
3106
+ }, zc = (e) => ({
3027
3107
  type: "spring",
3028
3108
  stiffness: 550,
3029
3109
  damping: e === 0 ? 2 * Math.sqrt(550) : 30,
3030
3110
  restSpeed: 10
3031
- }), Lc = {
3111
+ }), Gc = {
3032
3112
  type: "keyframes",
3033
3113
  duration: 0.8
3034
- }, Kc = {
3114
+ }, $c = {
3035
3115
  type: "keyframes",
3036
3116
  ease: [0.25, 0.1, 0.35, 1],
3037
3117
  duration: 0.3
3038
- }, Ic = (e, { keyframes: t }) => t.length > 2 ? Lc : ze.has(e) ? e.startsWith("scale") ? Oc(t[1]) : _c : Kc;
3039
- function Bc({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: o, repeatType: r, repeatDelay: c, from: a, elapsed: l, ...f }) {
3118
+ }, Wc = (e, { keyframes: t }) => t.length > 2 ? Gc : ze.has(e) ? e.startsWith("scale") ? zc(t[1]) : Uc : $c;
3119
+ function Hc({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: o, repeatType: r, repeatDelay: c, from: a, elapsed: l, ...f }) {
3040
3120
  return !!Object.keys(f).length;
3041
3121
  }
3042
3122
  const as = (e, t, n, s = {}, i, o) => (r) => {
@@ -3059,10 +3139,10 @@ const as = (e, t, n, s = {}, i, o) => (r) => {
3059
3139
  motionValue: t,
3060
3140
  element: o ? void 0 : i
3061
3141
  };
3062
- Bc(c) || Object.assign(f, Ic(e, f)), f.duration && (f.duration = /* @__PURE__ */ oe(f.duration)), f.repeatDelay && (f.repeatDelay = /* @__PURE__ */ oe(f.repeatDelay)), f.from !== void 0 && (f.keyframes[0] = f.from);
3142
+ Hc(c) || Object.assign(f, Wc(e, f)), f.duration && (f.duration = /* @__PURE__ */ oe(f.duration)), f.repeatDelay && (f.repeatDelay = /* @__PURE__ */ oe(f.repeatDelay)), f.from !== void 0 && (f.keyframes[0] = f.from);
3063
3143
  let d = !1;
3064
3144
  if ((f.type === !1 || f.duration === 0 && !f.repeatDelay) && (f.duration = 0, f.delay === 0 && (d = !0)), (he.instantAnimations || he.skipAnimations) && (d = !0, f.duration = 0, f.delay = 0), f.allowFlatten = !c.type && !c.ease, d && !o && t.get() !== void 0) {
3065
- const u = Rc(f.keyframes, c);
3145
+ const u = Nc(f.keyframes, c);
3066
3146
  if (u !== void 0) {
3067
3147
  O.update(() => {
3068
3148
  f.onUpdate(u), f.onComplete();
@@ -3070,9 +3150,9 @@ const as = (e, t, n, s = {}, i, o) => (r) => {
3070
3150
  return;
3071
3151
  }
3072
3152
  }
3073
- return c.isSync ? new $n(f) : new gl(f);
3153
+ return c.isSync ? new $n(f) : new Pl(f);
3074
3154
  };
3075
- function Fc({ protectedKeys: e, needsAnimating: t }, n) {
3155
+ function Yc({ protectedKeys: e, needsAnimating: t }, n) {
3076
3156
  const s = e.hasOwnProperty(n) && t[n] !== !0;
3077
3157
  return t[n] = !1, s;
3078
3158
  }
@@ -3082,7 +3162,7 @@ function Jr(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
3082
3162
  const a = [], l = i && e.animationState && e.animationState.getState()[i];
3083
3163
  for (const f in c) {
3084
3164
  const d = e.getValue(f, e.latestValues[f] ?? null), u = c[f];
3085
- if (u === void 0 || l && Fc(l, f))
3165
+ if (u === void 0 || l && Yc(l, f))
3086
3166
  continue;
3087
3167
  const y = {
3088
3168
  delay: n,
@@ -3098,13 +3178,13 @@ function Jr(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
3098
3178
  b !== null && (y.startTime = b, S = !0);
3099
3179
  }
3100
3180
  }
3101
- mn(e, f), d.start(as(f, d, u, e.shouldReduceMotion && kr.has(f) ? { type: !1 } : y, e, S));
3181
+ mn(e, f), d.start(as(f, d, u, e.shouldReduceMotion && Ar.has(f) ? { type: !1 } : y, e, S));
3102
3182
  const C = d.animation;
3103
3183
  C && a.push(C);
3104
3184
  }
3105
3185
  return r && Promise.all(a).then(() => {
3106
3186
  O.update(() => {
3107
- r && Ec(e, r);
3187
+ r && Bc(e, r);
3108
3188
  });
3109
3189
  }), a;
3110
3190
  }
@@ -3114,7 +3194,7 @@ function gn(e, t, n = {}) {
3114
3194
  n.transitionOverride && (i = n.transitionOverride);
3115
3195
  const o = s ? () => Promise.all(Jr(e, s, n)) : () => Promise.resolve(), r = e.variantChildren && e.variantChildren.size ? (a = 0) => {
3116
3196
  const { delayChildren: l = 0, staggerChildren: f, staggerDirection: d } = i;
3117
- return jc(e, t, a, l, f, d, n);
3197
+ return qc(e, t, a, l, f, d, n);
3118
3198
  } : () => Promise.resolve(), { when: c } = i;
3119
3199
  if (c) {
3120
3200
  const [a, l] = c === "beforeChildren" ? [o, r] : [r, o];
@@ -3122,22 +3202,22 @@ function gn(e, t, n = {}) {
3122
3202
  } else
3123
3203
  return Promise.all([o(), r(n.delay)]);
3124
3204
  }
3125
- function jc(e, t, n = 0, s = 0, i = 0, o = 1, r) {
3205
+ function qc(e, t, n = 0, s = 0, i = 0, o = 1, r) {
3126
3206
  const c = [], a = e.variantChildren.size, l = (a - 1) * i, f = typeof s == "function", d = f ? (u) => s(u, a) : (
3127
3207
  // Support deprecated staggerChildren
3128
3208
  o === 1 ? (u = 0) => u * i : (u = 0) => l - u * i
3129
3209
  );
3130
- return Array.from(e.variantChildren).sort(Nc).forEach((u, y) => {
3210
+ return Array.from(e.variantChildren).sort(Xc).forEach((u, y) => {
3131
3211
  u.notify("AnimationStart", t), c.push(gn(u, t, {
3132
3212
  ...r,
3133
3213
  delay: n + (f ? 0 : s) + d(y)
3134
3214
  }).then(() => u.notify("AnimationComplete", t)));
3135
3215
  }), Promise.all(c);
3136
3216
  }
3137
- function Nc(e, t) {
3217
+ function Xc(e, t) {
3138
3218
  return e.sortNodePosition(t);
3139
3219
  }
3140
- function Uc(e, t, n = {}) {
3220
+ function Zc(e, t, n = {}) {
3141
3221
  e.notify("AnimationStart", t);
3142
3222
  let s;
3143
3223
  if (Array.isArray(t)) {
@@ -3164,7 +3244,7 @@ function Qr(e, t) {
3164
3244
  return !1;
3165
3245
  return !0;
3166
3246
  }
3167
- const zc = es.length;
3247
+ const Jc = es.length;
3168
3248
  function eo(e) {
3169
3249
  if (!e)
3170
3250
  return;
@@ -3173,18 +3253,18 @@ function eo(e) {
3173
3253
  return e.props.initial !== void 0 && (n.initial = e.props.initial), n;
3174
3254
  }
3175
3255
  const t = {};
3176
- for (let n = 0; n < zc; n++) {
3256
+ for (let n = 0; n < Jc; n++) {
3177
3257
  const s = es[n], i = e.props[s];
3178
3258
  (nt(i) || i === !1) && (t[s] = i);
3179
3259
  }
3180
3260
  return t;
3181
3261
  }
3182
- const Gc = [...Qn].reverse(), $c = Qn.length;
3183
- function Wc(e) {
3184
- return (t) => Promise.all(t.map(({ animation: n, options: s }) => Uc(e, n, s)));
3262
+ const Qc = [...Qn].reverse(), eu = Qn.length;
3263
+ function tu(e) {
3264
+ return (t) => Promise.all(t.map(({ animation: n, options: s }) => Zc(e, n, s)));
3185
3265
  }
3186
- function Hc(e) {
3187
- let t = Wc(e), n = Us(), s = !0;
3266
+ function nu(e) {
3267
+ let t = tu(e), n = Ws(), s = !0;
3188
3268
  const i = (a) => (l, f) => {
3189
3269
  const d = it(e, f, a === "exit" ? e.presenceContext?.custom : void 0);
3190
3270
  if (d) {
@@ -3199,8 +3279,8 @@ function Hc(e) {
3199
3279
  function r(a) {
3200
3280
  const { props: l } = e, f = eo(e.parent) || {}, d = [], u = /* @__PURE__ */ new Set();
3201
3281
  let y = {}, x = 1 / 0;
3202
- for (let C = 0; C < $c; C++) {
3203
- const p = Gc[C], b = n[p], h = l[p] !== void 0 ? l[p] : f[p], m = nt(h), g = p === a ? b.isActive : null;
3282
+ for (let C = 0; C < eu; C++) {
3283
+ const p = Qc[C], b = n[p], h = l[p] !== void 0 ? l[p] : f[p], m = nt(h), g = p === a ? b.isActive : null;
3204
3284
  g === !1 && (x = C);
3205
3285
  let w = h === f[p] && h !== l[p] && m;
3206
3286
  if (w && s && e.manuallyAnimateOnMount && (w = !1), b.protectedKeys = { ...y }, // If it isn't active and hasn't *just* been set as inactive
@@ -3208,7 +3288,7 @@ function Hc(e) {
3208
3288
  !h && !b.prevProp || // Or if the prop doesn't define an animation
3209
3289
  Lt(h) || typeof h == "boolean")
3210
3290
  continue;
3211
- const T = Yc(b.prevProp, h);
3291
+ const T = su(b.prevProp, h);
3212
3292
  let v = T || // If we're making this variant active, we want to always make it active
3213
3293
  p === a && b.isActive && !w && m || // If we removed a higher-priority variant (i is in reverse order)
3214
3294
  C > x && m, E = !1;
@@ -3220,15 +3300,15 @@ function Hc(e) {
3220
3300
  ..._
3221
3301
  }, J = (R) => {
3222
3302
  v = !0, u.has(R) && (E = !0, u.delete(R)), b.needsAnimating[R] = !0;
3223
- const k = e.getValue(R);
3224
- k && (k.liveStyle = !1);
3303
+ const A = e.getValue(R);
3304
+ A && (A.liveStyle = !1);
3225
3305
  };
3226
3306
  for (const R in pe) {
3227
- const k = _[R], me = N[R];
3307
+ const A = _[R], me = N[R];
3228
3308
  if (y.hasOwnProperty(R))
3229
3309
  continue;
3230
3310
  let Ee = !1;
3231
- pn(k) && pn(me) ? Ee = !Qr(k, me) : Ee = k !== me, Ee ? k != null ? J(R) : u.add(R) : k !== void 0 && u.has(R) ? J(R) : b.protectedKeys[R] = !0;
3311
+ pn(A) && pn(me) ? Ee = !Qr(A, me) : Ee = A !== me, Ee ? A != null ? J(R) : u.add(R) : A !== void 0 && u.has(R) ? J(R) : b.protectedKeys[R] = !0;
3232
3312
  }
3233
3313
  b.prevProp = h, b.prevResolvedValues = _, b.isActive && (y = { ...y, ..._ }), s && e.blockInitialAnimation && (v = !1), v && (!(w && T) || E) && d.push(...D.map((R) => ({
3234
3314
  animation: R,
@@ -3264,11 +3344,11 @@ function Hc(e) {
3264
3344
  setAnimateFunction: o,
3265
3345
  getState: () => n,
3266
3346
  reset: () => {
3267
- n = Us(), s = !0;
3347
+ n = Ws(), s = !0;
3268
3348
  }
3269
3349
  };
3270
3350
  }
3271
- function Yc(e, t) {
3351
+ function su(e, t) {
3272
3352
  return typeof t == "string" ? t !== e : Array.isArray(t) ? !Qr(t, e) : !1;
3273
3353
  }
3274
3354
  function we(e = !1) {
@@ -3279,7 +3359,7 @@ function we(e = !1) {
3279
3359
  prevResolvedValues: {}
3280
3360
  };
3281
3361
  }
3282
- function Us() {
3362
+ function Ws() {
3283
3363
  return {
3284
3364
  animate: we(!0),
3285
3365
  whileInView: we(),
@@ -3297,14 +3377,14 @@ class xe {
3297
3377
  update() {
3298
3378
  }
3299
3379
  }
3300
- class qc extends xe {
3380
+ class iu extends xe {
3301
3381
  /**
3302
3382
  * We dynamically generate the AnimationState manager as it contains a reference
3303
3383
  * to the underlying animation library. We only want to load that if we load this,
3304
3384
  * so people can optionally code split it out using the `m` component.
3305
3385
  */
3306
3386
  constructor(t) {
3307
- super(t), t.animationState || (t.animationState = Hc(t));
3387
+ super(t), t.animationState || (t.animationState = nu(t));
3308
3388
  }
3309
3389
  updateAnimationControlsSubscription() {
3310
3390
  const { animate: t } = this.node.getProps();
@@ -3324,10 +3404,10 @@ class qc extends xe {
3324
3404
  this.node.animationState.reset(), this.unmountControls?.();
3325
3405
  }
3326
3406
  }
3327
- let Xc = 0;
3328
- class Zc extends xe {
3407
+ let ru = 0;
3408
+ class ou extends xe {
3329
3409
  constructor() {
3330
- super(...arguments), this.id = Xc++;
3410
+ super(...arguments), this.id = ru++;
3331
3411
  }
3332
3412
  update() {
3333
3413
  if (!this.node.presenceContext)
@@ -3347,12 +3427,12 @@ class Zc extends xe {
3347
3427
  unmount() {
3348
3428
  }
3349
3429
  }
3350
- const Jc = {
3430
+ const au = {
3351
3431
  animation: {
3352
- Feature: qc
3432
+ Feature: iu
3353
3433
  },
3354
3434
  exit: {
3355
- Feature: Zc
3435
+ Feature: ou
3356
3436
  }
3357
3437
  };
3358
3438
  function rt(e, t, n, s = { passive: !0 }) {
@@ -3366,9 +3446,9 @@ function ct(e) {
3366
3446
  }
3367
3447
  };
3368
3448
  }
3369
- const Qc = (e) => (t) => Zn(t) && e(t, ct(t));
3449
+ const lu = (e) => (t) => Zn(t) && e(t, ct(t));
3370
3450
  function Xe(e, t, n, s) {
3371
- return rt(e, t, Qc(n), s);
3451
+ return rt(e, t, lu(n), s);
3372
3452
  }
3373
3453
  function to({ top: e, left: t, right: n, bottom: s }) {
3374
3454
  return {
@@ -3376,10 +3456,10 @@ function to({ top: e, left: t, right: n, bottom: s }) {
3376
3456
  y: { min: e, max: s }
3377
3457
  };
3378
3458
  }
3379
- function eu({ x: e, y: t }) {
3459
+ function cu({ x: e, y: t }) {
3380
3460
  return { top: t.min, right: e.max, bottom: t.max, left: e.min };
3381
3461
  }
3382
- function tu(e, t) {
3462
+ function uu(e, t) {
3383
3463
  if (!t)
3384
3464
  return e;
3385
3465
  const n = t({ x: e.left, y: e.top }), s = t({ x: e.right, y: e.bottom });
@@ -3390,76 +3470,76 @@ function tu(e, t) {
3390
3470
  right: s.x
3391
3471
  };
3392
3472
  }
3393
- const no = 1e-4, nu = 1 - no, su = 1 + no, so = 0.01, iu = 0 - so, ru = 0 + so;
3473
+ const no = 1e-4, du = 1 - no, fu = 1 + no, so = 0.01, hu = 0 - so, pu = 0 + so;
3394
3474
  function X(e) {
3395
3475
  return e.max - e.min;
3396
3476
  }
3397
- function ou(e, t, n) {
3477
+ function mu(e, t, n) {
3398
3478
  return Math.abs(e - t) <= n;
3399
3479
  }
3400
- function zs(e, t, n, s = 0.5) {
3401
- e.origin = s, e.originPoint = K(t.min, t.max, e.origin), e.scale = X(n) / X(t), e.translate = K(n.min, n.max, e.origin) - e.originPoint, (e.scale >= nu && e.scale <= su || isNaN(e.scale)) && (e.scale = 1), (e.translate >= iu && e.translate <= ru || isNaN(e.translate)) && (e.translate = 0);
3480
+ function Hs(e, t, n, s = 0.5) {
3481
+ e.origin = s, e.originPoint = K(t.min, t.max, e.origin), e.scale = X(n) / X(t), e.translate = K(n.min, n.max, e.origin) - e.originPoint, (e.scale >= du && e.scale <= fu || isNaN(e.scale)) && (e.scale = 1), (e.translate >= hu && e.translate <= pu || isNaN(e.translate)) && (e.translate = 0);
3402
3482
  }
3403
3483
  function Ze(e, t, n, s) {
3404
- zs(e.x, t.x, n.x, s ? s.originX : void 0), zs(e.y, t.y, n.y, s ? s.originY : void 0);
3484
+ Hs(e.x, t.x, n.x, s ? s.originX : void 0), Hs(e.y, t.y, n.y, s ? s.originY : void 0);
3405
3485
  }
3406
- function Gs(e, t, n) {
3486
+ function Ys(e, t, n) {
3407
3487
  e.min = n.min + t.min, e.max = e.min + X(t);
3408
3488
  }
3409
- function au(e, t, n) {
3410
- Gs(e.x, t.x, n.x), Gs(e.y, t.y, n.y);
3489
+ function gu(e, t, n) {
3490
+ Ys(e.x, t.x, n.x), Ys(e.y, t.y, n.y);
3411
3491
  }
3412
- function $s(e, t, n) {
3492
+ function qs(e, t, n) {
3413
3493
  e.min = t.min - n.min, e.max = e.min + X(t);
3414
3494
  }
3415
3495
  function Je(e, t, n) {
3416
- $s(e.x, t.x, n.x), $s(e.y, t.y, n.y);
3496
+ qs(e.x, t.x, n.x), qs(e.y, t.y, n.y);
3417
3497
  }
3418
- const Ws = () => ({
3498
+ const Xs = () => ({
3419
3499
  translate: 0,
3420
3500
  scale: 1,
3421
3501
  origin: 0,
3422
3502
  originPoint: 0
3423
3503
  }), Oe = () => ({
3424
- x: Ws(),
3425
- y: Ws()
3426
- }), Hs = () => ({ min: 0, max: 0 }), B = () => ({
3427
- x: Hs(),
3428
- y: Hs()
3504
+ x: Xs(),
3505
+ y: Xs()
3506
+ }), Zs = () => ({ min: 0, max: 0 }), B = () => ({
3507
+ x: Zs(),
3508
+ y: Zs()
3429
3509
  });
3430
3510
  function te(e) {
3431
3511
  return [e("x"), e("y")];
3432
3512
  }
3433
- function $t(e) {
3513
+ function Wt(e) {
3434
3514
  return e === void 0 || e === 1;
3435
3515
  }
3436
3516
  function yn({ scale: e, scaleX: t, scaleY: n }) {
3437
- return !$t(e) || !$t(t) || !$t(n);
3517
+ return !Wt(e) || !Wt(t) || !Wt(n);
3438
3518
  }
3439
3519
  function Se(e) {
3440
3520
  return yn(e) || io(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
3441
3521
  }
3442
3522
  function io(e) {
3443
- return Ys(e.x) || Ys(e.y);
3523
+ return Js(e.x) || Js(e.y);
3444
3524
  }
3445
- function Ys(e) {
3525
+ function Js(e) {
3446
3526
  return e && e !== "0%";
3447
3527
  }
3448
3528
  function Vt(e, t, n) {
3449
3529
  const s = e - n, i = t * s;
3450
3530
  return n + i;
3451
3531
  }
3452
- function qs(e, t, n, s, i) {
3532
+ function Qs(e, t, n, s, i) {
3453
3533
  return i !== void 0 && (e = Vt(e, i, s)), Vt(e, n, s) + t;
3454
3534
  }
3455
3535
  function bn(e, t = 0, n = 1, s, i) {
3456
- e.min = qs(e.min, t, n, s, i), e.max = qs(e.max, t, n, s, i);
3536
+ e.min = Qs(e.min, t, n, s, i), e.max = Qs(e.max, t, n, s, i);
3457
3537
  }
3458
3538
  function ro(e, { x: t, y: n }) {
3459
3539
  bn(e.x, t.translate, t.scale, t.originPoint), bn(e.y, n.translate, n.scale, n.originPoint);
3460
3540
  }
3461
- const Xs = 0.999999999999, Zs = 1.0000000000001;
3462
- function lu(e, t, n, s = !1) {
3541
+ const ei = 0.999999999999, ti = 1.0000000000001;
3542
+ function yu(e, t, n, s = !1) {
3463
3543
  const i = n.length;
3464
3544
  if (!i)
3465
3545
  return;
@@ -3473,28 +3553,28 @@ function lu(e, t, n, s = !1) {
3473
3553
  y: -o.scroll.offset.y
3474
3554
  }), r && (t.x *= r.x.scale, t.y *= r.y.scale, ro(e, r)), s && Se(o.latestValues) && Ke(e, o.latestValues));
3475
3555
  }
3476
- t.x < Zs && t.x > Xs && (t.x = 1), t.y < Zs && t.y > Xs && (t.y = 1);
3556
+ t.x < ti && t.x > ei && (t.x = 1), t.y < ti && t.y > ei && (t.y = 1);
3477
3557
  }
3478
3558
  function Le(e, t) {
3479
3559
  e.min = e.min + t, e.max = e.max + t;
3480
3560
  }
3481
- function Js(e, t, n, s, i = 0.5) {
3561
+ function ni(e, t, n, s, i = 0.5) {
3482
3562
  const o = K(e.min, e.max, i);
3483
3563
  bn(e, t, n, o, s);
3484
3564
  }
3485
3565
  function Ke(e, t) {
3486
- Js(e.x, t.x, t.scaleX, t.scale, t.originX), Js(e.y, t.y, t.scaleY, t.scale, t.originY);
3566
+ ni(e.x, t.x, t.scaleX, t.scale, t.originX), ni(e.y, t.y, t.scaleY, t.scale, t.originY);
3487
3567
  }
3488
3568
  function oo(e, t) {
3489
- return to(tu(e.getBoundingClientRect(), t));
3569
+ return to(uu(e.getBoundingClientRect(), t));
3490
3570
  }
3491
- function cu(e, t, n) {
3571
+ function bu(e, t, n) {
3492
3572
  const s = oo(e, n), { scroll: i } = t;
3493
3573
  return i && (Le(s.x, i.offset.x), Le(s.y, i.offset.y)), s;
3494
3574
  }
3495
- const ao = ({ current: e }) => e ? e.ownerDocument.defaultView : null, Qs = (e, t) => Math.abs(e - t);
3496
- function uu(e, t) {
3497
- const n = Qs(e.x, t.x), s = Qs(e.y, t.y);
3575
+ const ao = ({ current: e }) => e ? e.ownerDocument.defaultView : null, si = (e, t) => Math.abs(e - t);
3576
+ function vu(e, t) {
3577
+ const n = si(e.x, t.x), s = si(e.y, t.y);
3498
3578
  return Math.sqrt(n ** 2 + s ** 2);
3499
3579
  }
3500
3580
  class lo {
@@ -3502,7 +3582,7 @@ class lo {
3502
3582
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
3503
3583
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
3504
3584
  return;
3505
- const u = Ht(this.lastMoveEventInfo, this.history), y = this.startEvent !== null, x = uu(u.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
3585
+ const u = Yt(this.lastMoveEventInfo, this.history), y = this.startEvent !== null, x = vu(u.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
3506
3586
  if (!y && !x)
3507
3587
  return;
3508
3588
  const { point: S } = u, { timestamp: C } = G;
@@ -3510,21 +3590,21 @@ class lo {
3510
3590
  const { onStart: p, onMove: b } = this.handlers;
3511
3591
  y || (p && p(this.lastMoveEvent, u), this.startEvent = this.lastMoveEvent), b && b(this.lastMoveEvent, u);
3512
3592
  }, this.handlePointerMove = (u, y) => {
3513
- this.lastMoveEvent = u, this.lastMoveEventInfo = Wt(y, this.transformPagePoint), O.update(this.updatePoint, !0);
3593
+ this.lastMoveEvent = u, this.lastMoveEventInfo = Ht(y, this.transformPagePoint), O.update(this.updatePoint, !0);
3514
3594
  }, this.handlePointerUp = (u, y) => {
3515
3595
  this.end();
3516
3596
  const { onEnd: x, onSessionEnd: S, resumeAnimation: C } = this.handlers;
3517
3597
  if (this.dragSnapToOrigin && C && C(), !(this.lastMoveEvent && this.lastMoveEventInfo))
3518
3598
  return;
3519
- const p = Ht(u.type === "pointercancel" ? this.lastMoveEventInfo : Wt(y, this.transformPagePoint), this.history);
3599
+ const p = Yt(u.type === "pointercancel" ? this.lastMoveEventInfo : Ht(y, this.transformPagePoint), this.history);
3520
3600
  this.startEvent && x && x(u, p), S && S(u, p);
3521
3601
  }, !Zn(t))
3522
3602
  return;
3523
3603
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = s, this.distanceThreshold = r, this.contextWindow = i || window;
3524
- const c = ct(t), a = Wt(c, this.transformPagePoint), { point: l } = a, { timestamp: f } = G;
3604
+ const c = ct(t), a = Ht(c, this.transformPagePoint), { point: l } = a, { timestamp: f } = G;
3525
3605
  this.history = [{ ...l, timestamp: f }];
3526
3606
  const { onSessionStart: d } = n;
3527
- d && d(t, Ht(a, this.history)), this.removeListeners = ot(Xe(this.contextWindow, "pointermove", this.handlePointerMove), Xe(this.contextWindow, "pointerup", this.handlePointerUp), Xe(this.contextWindow, "pointercancel", this.handlePointerUp));
3607
+ d && d(t, Yt(a, this.history)), this.removeListeners = ot(Xe(this.contextWindow, "pointermove", this.handlePointerMove), Xe(this.contextWindow, "pointerup", this.handlePointerUp), Xe(this.contextWindow, "pointercancel", this.handlePointerUp));
3528
3608
  }
3529
3609
  updateHandlers(t) {
3530
3610
  this.handlers = t;
@@ -3533,27 +3613,27 @@ class lo {
3533
3613
  this.removeListeners && this.removeListeners(), be(this.updatePoint);
3534
3614
  }
3535
3615
  }
3536
- function Wt(e, t) {
3616
+ function Ht(e, t) {
3537
3617
  return t ? { point: t(e.point) } : e;
3538
3618
  }
3539
- function ei(e, t) {
3619
+ function ii(e, t) {
3540
3620
  return { x: e.x - t.x, y: e.y - t.y };
3541
3621
  }
3542
- function Ht({ point: e }, t) {
3622
+ function Yt({ point: e }, t) {
3543
3623
  return {
3544
3624
  point: e,
3545
- delta: ei(e, co(t)),
3546
- offset: ei(e, du(t)),
3547
- velocity: fu(t, 0.1)
3625
+ delta: ii(e, co(t)),
3626
+ offset: ii(e, xu(t)),
3627
+ velocity: wu(t, 0.1)
3548
3628
  };
3549
3629
  }
3550
- function du(e) {
3630
+ function xu(e) {
3551
3631
  return e[0];
3552
3632
  }
3553
3633
  function co(e) {
3554
3634
  return e[e.length - 1];
3555
3635
  }
3556
- function fu(e, t) {
3636
+ function wu(e, t) {
3557
3637
  if (e.length < 2)
3558
3638
  return { x: 0, y: 0 };
3559
3639
  let n = e.length - 1, s = null;
@@ -3571,58 +3651,58 @@ function fu(e, t) {
3571
3651
  };
3572
3652
  return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
3573
3653
  }
3574
- function hu(e, { min: t, max: n }, s) {
3654
+ function Tu(e, { min: t, max: n }, s) {
3575
3655
  return t !== void 0 && e < t ? e = s ? K(t, e, s.min) : Math.max(e, t) : n !== void 0 && e > n && (e = s ? K(n, e, s.max) : Math.min(e, n)), e;
3576
3656
  }
3577
- function ti(e, t, n) {
3657
+ function ri(e, t, n) {
3578
3658
  return {
3579
3659
  min: t !== void 0 ? e.min + t : void 0,
3580
3660
  max: n !== void 0 ? e.max + n - (e.max - e.min) : void 0
3581
3661
  };
3582
3662
  }
3583
- function pu(e, { top: t, left: n, bottom: s, right: i }) {
3663
+ function Su(e, { top: t, left: n, bottom: s, right: i }) {
3584
3664
  return {
3585
- x: ti(e.x, n, i),
3586
- y: ti(e.y, t, s)
3665
+ x: ri(e.x, n, i),
3666
+ y: ri(e.y, t, s)
3587
3667
  };
3588
3668
  }
3589
- function ni(e, t) {
3669
+ function oi(e, t) {
3590
3670
  let n = t.min - e.min, s = t.max - e.max;
3591
3671
  return t.max - t.min < e.max - e.min && ([n, s] = [s, n]), { min: n, max: s };
3592
3672
  }
3593
- function mu(e, t) {
3673
+ function Cu(e, t) {
3594
3674
  return {
3595
- x: ni(e.x, t.x),
3596
- y: ni(e.y, t.y)
3675
+ x: oi(e.x, t.x),
3676
+ y: oi(e.y, t.y)
3597
3677
  };
3598
3678
  }
3599
- function gu(e, t) {
3679
+ function Pu(e, t) {
3600
3680
  let n = 0.5;
3601
3681
  const s = X(e), i = X(t);
3602
3682
  return i > s ? n = /* @__PURE__ */ Qe(t.min, t.max - s, e.min) : s > i && (n = /* @__PURE__ */ Qe(e.min, e.max - i, t.min)), de(0, 1, n);
3603
3683
  }
3604
- function yu(e, t) {
3684
+ function Mu(e, t) {
3605
3685
  const n = {};
3606
3686
  return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
3607
3687
  }
3608
3688
  const vn = 0.35;
3609
- function bu(e = vn) {
3689
+ function Au(e = vn) {
3610
3690
  return e === !1 ? e = 0 : e === !0 && (e = vn), {
3611
- x: si(e, "left", "right"),
3612
- y: si(e, "top", "bottom")
3691
+ x: ai(e, "left", "right"),
3692
+ y: ai(e, "top", "bottom")
3613
3693
  };
3614
3694
  }
3615
- function si(e, t, n) {
3695
+ function ai(e, t, n) {
3616
3696
  return {
3617
- min: ii(e, t),
3618
- max: ii(e, n)
3697
+ min: li(e, t),
3698
+ max: li(e, n)
3619
3699
  };
3620
3700
  }
3621
- function ii(e, t) {
3701
+ function li(e, t) {
3622
3702
  return typeof e == "number" ? e : e[t] || 0;
3623
3703
  }
3624
- const vu = /* @__PURE__ */ new WeakMap();
3625
- class xu {
3704
+ const ku = /* @__PURE__ */ new WeakMap();
3705
+ class Eu {
3626
3706
  constructor(t) {
3627
3707
  this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = B(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = t;
3628
3708
  }
@@ -3635,7 +3715,7 @@ class xu {
3635
3715
  u ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(ct(d).point);
3636
3716
  }, r = (d, u) => {
3637
3717
  const { drag: y, dragPropagation: x, onDragStart: S } = this.getProps();
3638
- if (y && !x && (this.openDragLock && this.openDragLock(), this.openDragLock = _l(y), !this.openDragLock))
3718
+ if (y && !x && (this.openDragLock && this.openDragLock(), this.openDragLock = Ul(y), !this.openDragLock))
3639
3719
  return;
3640
3720
  this.latestPointerEvent = d, this.latestPanInfo = u, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), te((p) => {
3641
3721
  let b = this.getAxisMotionValue(p).get() || 0;
@@ -3657,7 +3737,7 @@ class xu {
3657
3737
  return;
3658
3738
  const { offset: p } = u;
3659
3739
  if (x && this.currentDirection === null) {
3660
- this.currentDirection = wu(p), this.currentDirection !== null && S && S(this.currentDirection);
3740
+ this.currentDirection = Du(p), this.currentDirection !== null && S && S(this.currentDirection);
3661
3741
  return;
3662
3742
  }
3663
3743
  this.updateAxis("x", u.point, p), this.updateAxis("y", u.point, p), this.visualElement.render(), C && C(d, u);
@@ -3705,12 +3785,12 @@ class xu {
3705
3785
  return;
3706
3786
  const o = this.getAxisMotionValue(t);
3707
3787
  let r = this.originPoint[t] + s[t];
3708
- this.constraints && this.constraints[t] && (r = hu(r, this.constraints[t], this.elastic[t])), o.set(r);
3788
+ this.constraints && this.constraints[t] && (r = Tu(r, this.constraints[t], this.elastic[t])), o.set(r);
3709
3789
  }
3710
3790
  resolveConstraints() {
3711
3791
  const { dragConstraints: t, dragElastic: n } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, i = this.constraints;
3712
- t && _e(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && s ? this.constraints = pu(s.layoutBox, t) : this.constraints = !1, this.elastic = bu(n), i !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && te((o) => {
3713
- this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = yu(s.layoutBox[o], this.constraints[o]));
3792
+ t && _e(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && s ? this.constraints = Su(s.layoutBox, t) : this.constraints = !1, this.elastic = Au(n), i !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && te((o) => {
3793
+ this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = Mu(s.layoutBox[o], this.constraints[o]));
3714
3794
  });
3715
3795
  }
3716
3796
  resolveRefConstraints() {
@@ -3722,10 +3802,10 @@ class xu {
3722
3802
  const { projection: i } = this.visualElement;
3723
3803
  if (!i || !i.layout)
3724
3804
  return !1;
3725
- const o = cu(s, i.root, this.visualElement.getTransformPagePoint());
3726
- let r = mu(i.layout.layoutBox, o);
3805
+ const o = bu(s, i.root, this.visualElement.getTransformPagePoint());
3806
+ let r = Cu(i.layout.layoutBox, o);
3727
3807
  if (n) {
3728
- const c = n(eu(r));
3808
+ const c = n(cu(r));
3729
3809
  this.hasMutatedConstraints = !!c, c && (r = to(c));
3730
3810
  }
3731
3811
  return r;
@@ -3803,7 +3883,7 @@ class xu {
3803
3883
  const c = this.getAxisMotionValue(r);
3804
3884
  if (c && this.constraints !== !1) {
3805
3885
  const a = c.get();
3806
- i[r] = gu({ min: a, max: a }, this.constraints[r]);
3886
+ i[r] = Pu({ min: a, max: a }, this.constraints[r]);
3807
3887
  }
3808
3888
  });
3809
3889
  const { transformTemplate: o } = this.visualElement.getProps();
@@ -3817,7 +3897,7 @@ class xu {
3817
3897
  addListeners() {
3818
3898
  if (!this.visualElement.current)
3819
3899
  return;
3820
- vu.set(this.visualElement, this);
3900
+ ku.set(this.visualElement, this);
3821
3901
  const t = this.visualElement.current, n = Xe(t, "pointerdown", (a) => {
3822
3902
  const { drag: l, dragListener: f = !0 } = this.getProps();
3823
3903
  l && f && this.start(a);
@@ -3852,13 +3932,13 @@ class xu {
3852
3932
  function yt(e, t, n) {
3853
3933
  return (t === !0 || t === e) && (n === null || n === e);
3854
3934
  }
3855
- function wu(e, t = 10) {
3935
+ function Du(e, t = 10) {
3856
3936
  let n = null;
3857
3937
  return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
3858
3938
  }
3859
- class Tu extends xe {
3939
+ class Vu extends xe {
3860
3940
  constructor(t) {
3861
- super(t), this.removeGroupControls = ne, this.removeListeners = ne, this.controls = new xu(t);
3941
+ super(t), this.removeGroupControls = ne, this.removeListeners = ne, this.controls = new Eu(t);
3862
3942
  }
3863
3943
  mount() {
3864
3944
  const { dragControls: t } = this.node.getProps();
@@ -3868,10 +3948,10 @@ class Tu extends xe {
3868
3948
  this.removeGroupControls(), this.removeListeners();
3869
3949
  }
3870
3950
  }
3871
- const ri = (e) => (t, n) => {
3951
+ const ci = (e) => (t, n) => {
3872
3952
  e && O.postRender(() => e(t, n));
3873
3953
  };
3874
- class Su extends xe {
3954
+ class Ru extends xe {
3875
3955
  constructor() {
3876
3956
  super(...arguments), this.removePointerDownListener = ne;
3877
3957
  }
@@ -3884,8 +3964,8 @@ class Su extends xe {
3884
3964
  createPanHandlers() {
3885
3965
  const { onPanSessionStart: t, onPanStart: n, onPan: s, onPanEnd: i } = this.node.getProps();
3886
3966
  return {
3887
- onSessionStart: ri(t),
3888
- onStart: ri(n),
3967
+ onSessionStart: ci(t),
3968
+ onStart: ci(n),
3889
3969
  onMove: s,
3890
3970
  onEnd: (o, r) => {
3891
3971
  delete this.session, i && O.postRender(() => i(o, r));
@@ -3914,7 +3994,7 @@ const Pt = {
3914
3994
  */
3915
3995
  hasEverUpdated: !1
3916
3996
  };
3917
- function oi(e, t) {
3997
+ function ui(e, t) {
3918
3998
  return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
3919
3999
  }
3920
4000
  const We = {
@@ -3922,14 +4002,14 @@ const We = {
3922
4002
  if (!t.target)
3923
4003
  return e;
3924
4004
  if (typeof e == "string")
3925
- if (A.test(e))
4005
+ if (k.test(e))
3926
4006
  e = parseFloat(e);
3927
4007
  else
3928
4008
  return e;
3929
- const n = oi(e, t.target.x), s = oi(e, t.target.y);
4009
+ const n = ui(e, t.target.x), s = ui(e, t.target.y);
3930
4010
  return `${n}% ${s}%`;
3931
4011
  }
3932
- }, Cu = {
4012
+ }, _u = {
3933
4013
  correct: (e, { treeScale: t, projectionDelta: n }) => {
3934
4014
  const s = e, i = ve.parse(e);
3935
4015
  if (i.length > 5)
@@ -3940,8 +4020,8 @@ const We = {
3940
4020
  return typeof i[2 + r] == "number" && (i[2 + r] /= l), typeof i[3 + r] == "number" && (i[3 + r] /= l), o(i);
3941
4021
  }
3942
4022
  };
3943
- let ai = !1;
3944
- class Pu extends No {
4023
+ let di = !1;
4024
+ class Ou extends Fo {
3945
4025
  /**
3946
4026
  * This only mounts projection nodes for components that
3947
4027
  * need measuring, we might want to do it for all components
@@ -3949,7 +4029,7 @@ class Pu extends No {
3949
4029
  */
3950
4030
  componentDidMount() {
3951
4031
  const { visualElement: t, layoutGroup: n, switchLayoutGroup: s, layoutId: i } = this.props, { projection: o } = t;
3952
- cc(Mu), o && (n.group && n.group.add(o), s && s.register && i && s.register(o), ai && o.root.didUpdate(), o.addEventListener("animationComplete", () => {
4032
+ bc(Lu), o && (n.group && n.group.add(o), s && s.register && i && s.register(o), di && o.root.didUpdate(), o.addEventListener("animationComplete", () => {
3953
4033
  this.safeToRemove();
3954
4034
  }), o.setOptions({
3955
4035
  ...o.options,
@@ -3958,7 +4038,7 @@ class Pu extends No {
3958
4038
  }
3959
4039
  getSnapshotBeforeUpdate(t) {
3960
4040
  const { layoutDependency: n, visualElement: s, drag: i, isPresent: o } = this.props, { projection: r } = s;
3961
- return r && (r.isPresent = o, ai = !0, i || t.layoutDependency !== n || n === void 0 || t.isPresent !== o ? r.willUpdate() : this.safeToRemove(), t.isPresent !== o && (o ? r.promote() : r.relegate() || O.postRender(() => {
4041
+ return r && (r.isPresent = o, di = !0, i || t.layoutDependency !== n || n === void 0 || t.isPresent !== o ? r.willUpdate() : this.safeToRemove(), t.isPresent !== o && (o ? r.promote() : r.relegate() || O.postRender(() => {
3962
4042
  const c = r.getStack();
3963
4043
  (!c || !c.members.length) && this.safeToRemove();
3964
4044
  }))), null;
@@ -3982,10 +4062,10 @@ class Pu extends No {
3982
4062
  }
3983
4063
  }
3984
4064
  function uo(e) {
3985
- const [t, n] = Ir(), s = H(kn);
3986
- return re(Pu, { ...e, layoutGroup: s, switchLayoutGroup: H(Ur), isPresent: t, safeToRemove: n });
4065
+ const [t, n] = Ir(), s = H(An);
4066
+ return re(Ou, { ...e, layoutGroup: s, switchLayoutGroup: H(Ur), isPresent: t, safeToRemove: n });
3987
4067
  }
3988
- const Mu = {
4068
+ const Lu = {
3989
4069
  borderRadius: {
3990
4070
  ...We,
3991
4071
  applyTo: [
@@ -3999,14 +4079,14 @@ const Mu = {
3999
4079
  borderTopRightRadius: We,
4000
4080
  borderBottomLeftRadius: We,
4001
4081
  borderBottomRightRadius: We,
4002
- boxShadow: Cu
4082
+ boxShadow: _u
4003
4083
  };
4004
- function ku(e, t, n) {
4084
+ function Ku(e, t, n) {
4005
4085
  const s = Y(e) ? e : Ie(e);
4006
4086
  return s.start(as("", s, t, n)), s.animation;
4007
4087
  }
4008
- const Au = (e, t) => e.depth - t.depth;
4009
- class Eu {
4088
+ const Iu = (e, t) => e.depth - t.depth;
4089
+ class Bu {
4010
4090
  constructor() {
4011
4091
  this.children = [], this.isDirty = !1;
4012
4092
  }
@@ -4017,85 +4097,85 @@ class Eu {
4017
4097
  Vn(this.children, t), this.isDirty = !0;
4018
4098
  }
4019
4099
  forEach(t) {
4020
- this.isDirty && this.children.sort(Au), this.isDirty = !1, this.children.forEach(t);
4100
+ this.isDirty && this.children.sort(Iu), this.isDirty = !1, this.children.forEach(t);
4021
4101
  }
4022
4102
  }
4023
- function Du(e, t) {
4103
+ function Fu(e, t) {
4024
4104
  const n = Z.now(), s = ({ timestamp: i }) => {
4025
4105
  const o = i - n;
4026
4106
  o >= t && (be(s), e(o - t));
4027
4107
  };
4028
4108
  return O.setup(s, !0), () => be(s);
4029
4109
  }
4030
- const fo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Vu = fo.length, li = (e) => typeof e == "string" ? parseFloat(e) : e, ci = (e) => typeof e == "number" || A.test(e);
4031
- function Ru(e, t, n, s, i, o) {
4032
- i ? (e.opacity = K(0, n.opacity ?? 1, _u(s)), e.opacityExit = K(t.opacity ?? 1, 0, Ou(s))) : o && (e.opacity = K(t.opacity ?? 1, n.opacity ?? 1, s));
4033
- for (let r = 0; r < Vu; r++) {
4110
+ const fo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], ju = fo.length, fi = (e) => typeof e == "string" ? parseFloat(e) : e, hi = (e) => typeof e == "number" || k.test(e);
4111
+ function Nu(e, t, n, s, i, o) {
4112
+ i ? (e.opacity = K(0, n.opacity ?? 1, Uu(s)), e.opacityExit = K(t.opacity ?? 1, 0, zu(s))) : o && (e.opacity = K(t.opacity ?? 1, n.opacity ?? 1, s));
4113
+ for (let r = 0; r < ju; r++) {
4034
4114
  const c = `border${fo[r]}Radius`;
4035
- let a = ui(t, c), l = ui(n, c);
4115
+ let a = pi(t, c), l = pi(n, c);
4036
4116
  if (a === void 0 && l === void 0)
4037
4117
  continue;
4038
- a || (a = 0), l || (l = 0), a === 0 || l === 0 || ci(a) === ci(l) ? (e[c] = Math.max(K(li(a), li(l), s), 0), (le.test(l) || le.test(a)) && (e[c] += "%")) : e[c] = l;
4118
+ a || (a = 0), l || (l = 0), a === 0 || l === 0 || hi(a) === hi(l) ? (e[c] = Math.max(K(fi(a), fi(l), s), 0), (le.test(l) || le.test(a)) && (e[c] += "%")) : e[c] = l;
4039
4119
  }
4040
4120
  (t.rotate || n.rotate) && (e.rotate = K(t.rotate || 0, n.rotate || 0, s));
4041
4121
  }
4042
- function ui(e, t) {
4122
+ function pi(e, t) {
4043
4123
  return e[t] !== void 0 ? e[t] : e.borderRadius;
4044
4124
  }
4045
- const _u = /* @__PURE__ */ ho(0, 0.5, ir), Ou = /* @__PURE__ */ ho(0.5, 0.95, ne);
4125
+ const Uu = /* @__PURE__ */ ho(0, 0.5, ir), zu = /* @__PURE__ */ ho(0.5, 0.95, ne);
4046
4126
  function ho(e, t, n) {
4047
4127
  return (s) => s < e ? 0 : s > t ? 1 : n(/* @__PURE__ */ Qe(e, t, s));
4048
4128
  }
4049
- function di(e, t) {
4129
+ function mi(e, t) {
4050
4130
  e.min = t.min, e.max = t.max;
4051
4131
  }
4052
4132
  function ee(e, t) {
4053
- di(e.x, t.x), di(e.y, t.y);
4133
+ mi(e.x, t.x), mi(e.y, t.y);
4054
4134
  }
4055
- function fi(e, t) {
4135
+ function gi(e, t) {
4056
4136
  e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
4057
4137
  }
4058
- function hi(e, t, n, s, i) {
4138
+ function yi(e, t, n, s, i) {
4059
4139
  return e -= t, e = Vt(e, 1 / n, s), i !== void 0 && (e = Vt(e, 1 / i, s)), e;
4060
4140
  }
4061
- function Lu(e, t = 0, n = 1, s = 0.5, i, o = e, r = e) {
4141
+ function Gu(e, t = 0, n = 1, s = 0.5, i, o = e, r = e) {
4062
4142
  if (le.test(t) && (t = parseFloat(t), t = K(r.min, r.max, t / 100) - r.min), typeof t != "number")
4063
4143
  return;
4064
4144
  let c = K(o.min, o.max, s);
4065
- e === o && (c -= t), e.min = hi(e.min, t, n, c, i), e.max = hi(e.max, t, n, c, i);
4145
+ e === o && (c -= t), e.min = yi(e.min, t, n, c, i), e.max = yi(e.max, t, n, c, i);
4066
4146
  }
4067
- function pi(e, t, [n, s, i], o, r) {
4068
- Lu(e, t[n], t[s], t[i], t.scale, o, r);
4147
+ function bi(e, t, [n, s, i], o, r) {
4148
+ Gu(e, t[n], t[s], t[i], t.scale, o, r);
4069
4149
  }
4070
- const Ku = ["x", "scaleX", "originX"], Iu = ["y", "scaleY", "originY"];
4071
- function mi(e, t, n, s) {
4072
- pi(e.x, t, Ku, n ? n.x : void 0, s ? s.x : void 0), pi(e.y, t, Iu, n ? n.y : void 0, s ? s.y : void 0);
4150
+ const $u = ["x", "scaleX", "originX"], Wu = ["y", "scaleY", "originY"];
4151
+ function vi(e, t, n, s) {
4152
+ bi(e.x, t, $u, n ? n.x : void 0, s ? s.x : void 0), bi(e.y, t, Wu, n ? n.y : void 0, s ? s.y : void 0);
4073
4153
  }
4074
- function gi(e) {
4154
+ function xi(e) {
4075
4155
  return e.translate === 0 && e.scale === 1;
4076
4156
  }
4077
4157
  function po(e) {
4078
- return gi(e.x) && gi(e.y);
4158
+ return xi(e.x) && xi(e.y);
4079
4159
  }
4080
- function yi(e, t) {
4160
+ function wi(e, t) {
4081
4161
  return e.min === t.min && e.max === t.max;
4082
4162
  }
4083
- function Bu(e, t) {
4084
- return yi(e.x, t.x) && yi(e.y, t.y);
4163
+ function Hu(e, t) {
4164
+ return wi(e.x, t.x) && wi(e.y, t.y);
4085
4165
  }
4086
- function bi(e, t) {
4166
+ function Ti(e, t) {
4087
4167
  return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
4088
4168
  }
4089
4169
  function mo(e, t) {
4090
- return bi(e.x, t.x) && bi(e.y, t.y);
4170
+ return Ti(e.x, t.x) && Ti(e.y, t.y);
4091
4171
  }
4092
- function vi(e) {
4172
+ function Si(e) {
4093
4173
  return X(e.x) / X(e.y);
4094
4174
  }
4095
- function xi(e, t) {
4175
+ function Ci(e, t) {
4096
4176
  return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
4097
4177
  }
4098
- class Fu {
4178
+ class Yu {
4099
4179
  constructor() {
4100
4180
  this.members = [];
4101
4181
  }
@@ -4149,7 +4229,7 @@ class Fu {
4149
4229
  this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
4150
4230
  }
4151
4231
  }
4152
- function ju(e, t, n) {
4232
+ function qu(e, t, n) {
4153
4233
  let s = "";
4154
4234
  const i = e.x.translate / t.x, o = e.y.translate / t.y, r = n?.z || 0;
4155
4235
  if ((i || o || r) && (s = `translate3d(${i}px, ${o}px, ${r}px) `), (t.x !== 1 || t.y !== 1) && (s += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
@@ -4159,9 +4239,9 @@ function ju(e, t, n) {
4159
4239
  const c = e.x.scale * t.x, a = e.y.scale * t.y;
4160
4240
  return (c !== 1 || a !== 1) && (s += `scale(${c}, ${a})`), s || "none";
4161
4241
  }
4162
- const Yt = ["", "X", "Y", "Z"], Nu = 1e3;
4163
- let Uu = 0;
4164
- function qt(e, t, n, s) {
4242
+ const qt = ["", "X", "Y", "Z"], Xu = 1e3;
4243
+ let Zu = 0;
4244
+ function Xt(e, t, n, s) {
4165
4245
  const { latestValues: i } = t;
4166
4246
  i[e] && (n[e] = i[e], t.setStaticValue(e, 0), s && (s[e] = 0));
4167
4247
  }
@@ -4182,14 +4262,14 @@ function go(e) {
4182
4262
  function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: s, resetTransform: i }) {
4183
4263
  return class {
4184
4264
  constructor(r = {}, c = t?.()) {
4185
- this.id = Uu++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
4265
+ this.id = Zu++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
4186
4266
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
4187
4267
  }, this.updateProjection = () => {
4188
- this.projectionUpdateScheduled = !1, this.nodes.forEach($u), this.nodes.forEach(qu), this.nodes.forEach(Xu), this.nodes.forEach(Wu);
4268
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(ed), this.nodes.forEach(id), this.nodes.forEach(rd), this.nodes.forEach(td);
4189
4269
  }, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = r, this.root = c ? c.root || c : this, this.path = c ? [...c.path, c] : [], this.parent = c, this.depth = c ? c.depth + 1 : 0;
4190
4270
  for (let a = 0; a < this.path.length; a++)
4191
4271
  this.path[a].shouldResetTransform = !0;
4192
- this.root === this && (this.nodes = new Eu());
4272
+ this.root === this && (this.nodes = new Bu());
4193
4273
  }
4194
4274
  addEventListener(r, c) {
4195
4275
  return this.eventHandlers.has(r) || this.eventHandlers.set(r, new _n()), this.eventHandlers.get(r).add(c);
@@ -4207,7 +4287,7 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4207
4287
  mount(r) {
4208
4288
  if (this.instance)
4209
4289
  return;
4210
- this.isSVG = Kr(r) && !Fl(r), this.instance = r;
4290
+ this.isSVG = Kr(r) && !Yl(r), this.instance = r;
4211
4291
  const { layoutId: c, layout: a, visualElement: l } = this.options;
4212
4292
  if (l && !l.current && l.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (a || c) && (this.isLayoutDirty = !0), e) {
4213
4293
  let f, d = 0;
@@ -4216,7 +4296,7 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4216
4296
  d = window.innerWidth;
4217
4297
  }), e(r, () => {
4218
4298
  const y = window.innerWidth;
4219
- y !== d && (d = y, this.root.updateBlockedByResize = !0, f && f(), f = Du(u, 250), Pt.hasAnimatedSinceResize && (Pt.hasAnimatedSinceResize = !1, this.nodes.forEach(Si)));
4299
+ y !== d && (d = y, this.root.updateBlockedByResize = !0, f && f(), f = Fu(u, 250), Pt.hasAnimatedSinceResize && (Pt.hasAnimatedSinceResize = !1, this.nodes.forEach(Ai)));
4220
4300
  });
4221
4301
  }
4222
4302
  c && this.root.registerSharedNode(c, this), this.options.animate !== !1 && l && (c || a) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: d, hasRelativeLayoutChanged: u, layout: y }) => {
@@ -4224,7 +4304,7 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4224
4304
  this.target = void 0, this.relativeTarget = void 0;
4225
4305
  return;
4226
4306
  }
4227
- const x = this.options.transition || l.getDefaultTransition() || td, { onLayoutAnimationStart: S, onLayoutAnimationComplete: C } = l.getProps(), p = !this.targetLayout || !mo(this.targetLayout, y), b = !d && u;
4307
+ const x = this.options.transition || l.getDefaultTransition() || ud, { onLayoutAnimationStart: S, onLayoutAnimationComplete: C } = l.getProps(), p = !this.targetLayout || !mo(this.targetLayout, y), b = !d && u;
4228
4308
  if (this.options.layoutRoot || this.resumeFrom || b || d && (p || !this.currentAnimation)) {
4229
4309
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
4230
4310
  const h = {
@@ -4234,7 +4314,7 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4234
4314
  };
4235
4315
  (l.shouldReduceMotion || this.options.layoutRoot) && (h.delay = 0, h.type = !1), this.startAnimation(h), this.setAnimationOrigin(f, b);
4236
4316
  } else
4237
- d || Si(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4317
+ d || Ai(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4238
4318
  this.targetLayout = y;
4239
4319
  });
4240
4320
  }
@@ -4258,7 +4338,7 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4258
4338
  }
4259
4339
  // Note: currently only running on root node
4260
4340
  startUpdate() {
4261
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Zu), this.animationId++);
4341
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(od), this.animationId++);
4262
4342
  }
4263
4343
  getTransformTemplate() {
4264
4344
  const { visualElement: r } = this.options;
@@ -4284,22 +4364,22 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4284
4364
  }
4285
4365
  update() {
4286
4366
  if (this.updateScheduled = !1, this.isUpdateBlocked()) {
4287
- this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(wi);
4367
+ this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Pi);
4288
4368
  return;
4289
4369
  }
4290
4370
  if (this.animationId <= this.animationCommitId) {
4291
- this.nodes.forEach(Ti);
4371
+ this.nodes.forEach(Mi);
4292
4372
  return;
4293
4373
  }
4294
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Yu), this.nodes.forEach(zu), this.nodes.forEach(Gu)) : this.nodes.forEach(Ti), this.clearAllSnapshots();
4374
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(sd), this.nodes.forEach(Ju), this.nodes.forEach(Qu)) : this.nodes.forEach(Mi), this.clearAllSnapshots();
4295
4375
  const c = Z.now();
4296
- G.delta = de(0, 1e3 / 60, c - G.timestamp), G.timestamp = c, G.isProcessing = !0, Ft.update.process(G), Ft.preRender.process(G), Ft.render.process(G), G.isProcessing = !1;
4376
+ G.delta = de(0, 1e3 / 60, c - G.timestamp), G.timestamp = c, G.isProcessing = !0, jt.update.process(G), jt.preRender.process(G), jt.render.process(G), G.isProcessing = !1;
4297
4377
  }
4298
4378
  didUpdate() {
4299
4379
  this.updateScheduled || (this.updateScheduled = !0, Xn.read(this.scheduleUpdate));
4300
4380
  }
4301
4381
  clearAllSnapshots() {
4302
- this.nodes.forEach(Hu), this.sharedNodes.forEach(Ju);
4382
+ this.nodes.forEach(nd), this.sharedNodes.forEach(ad);
4303
4383
  }
4304
4384
  scheduleUpdateProjection() {
4305
4385
  this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, O.preRender(this.updateProjection, !1, !0));
@@ -4348,7 +4428,7 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4348
4428
  measure(r = !0) {
4349
4429
  const c = this.measurePageBox();
4350
4430
  let a = this.removeElementScroll(c);
4351
- return r && (a = this.removeTransform(a)), nd(a), {
4431
+ return r && (a = this.removeTransform(a)), dd(a), {
4352
4432
  animationId: this.root.animationId,
4353
4433
  measuredBox: c,
4354
4434
  layoutBox: a,
@@ -4361,7 +4441,7 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4361
4441
  if (!r)
4362
4442
  return B();
4363
4443
  const c = r.measureViewportBox();
4364
- if (!(this.scroll?.wasRoot || this.path.some(sd))) {
4444
+ if (!(this.scroll?.wasRoot || this.path.some(fd))) {
4365
4445
  const { scroll: l } = this.root;
4366
4446
  l && (Le(c.x, l.offset.x), Le(c.y, l.offset.y));
4367
4447
  }
@@ -4398,9 +4478,9 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4398
4478
  continue;
4399
4479
  yn(l.latestValues) && l.updateSnapshot();
4400
4480
  const f = B(), d = l.measurePageBox();
4401
- ee(f, d), mi(c, l.latestValues, l.snapshot ? l.snapshot.layoutBox : void 0, f);
4481
+ ee(f, d), vi(c, l.latestValues, l.snapshot ? l.snapshot.layoutBox : void 0, f);
4402
4482
  }
4403
- return Se(this.latestValues) && mi(c, this.latestValues), c;
4483
+ return Se(this.latestValues) && vi(c, this.latestValues), c;
4404
4484
  }
4405
4485
  setTargetDelta(r) {
4406
4486
  this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -4430,7 +4510,7 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4430
4510
  const u = this.getClosestProjectingParent();
4431
4511
  u && u.layout && this.animationProgress !== 1 ? (this.relativeParent = u, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), Je(this.relativeTargetOrigin, this.layout.layoutBox, u.layout.layoutBox), ee(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4432
4512
  }
4433
- if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = B(), this.targetWithTransforms = B()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), au(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : ee(this.target, this.layout.layoutBox), ro(this.target, this.targetDelta)) : ee(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
4513
+ if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = B(), this.targetWithTransforms = B()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), gu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : ee(this.target, this.layout.layoutBox), ro(this.target, this.targetDelta)) : ee(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
4434
4514
  this.attemptToResolveRelativeTarget = !1;
4435
4515
  const u = this.getClosestProjectingParent();
4436
4516
  u && !!u.resumingFrom == !!this.resumingFrom && !u.options.layoutScroll && u.target && this.animationProgress !== 1 ? (this.relativeParent = u, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), Je(this.relativeTargetOrigin, this.target, u.target), ee(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
@@ -4454,13 +4534,13 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4454
4534
  return;
4455
4535
  ee(this.layoutCorrected, this.layout.layoutBox);
4456
4536
  const d = this.treeScale.x, u = this.treeScale.y;
4457
- lu(this.layoutCorrected, this.treeScale, this.path, c), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = B());
4537
+ yu(this.layoutCorrected, this.treeScale, this.path, c), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = B());
4458
4538
  const { target: y } = r;
4459
4539
  if (!y) {
4460
4540
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
4461
4541
  return;
4462
4542
  }
4463
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (fi(this.prevProjectionDelta.x, this.projectionDelta.x), fi(this.prevProjectionDelta.y, this.projectionDelta.y)), Ze(this.projectionDelta, this.layoutCorrected, y, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== u || !xi(this.projectionDelta.x, this.prevProjectionDelta.x) || !xi(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", y));
4543
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (gi(this.prevProjectionDelta.x, this.projectionDelta.x), gi(this.prevProjectionDelta.y, this.projectionDelta.y)), Ze(this.projectionDelta, this.layoutCorrected, y, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== u || !Ci(this.projectionDelta.x, this.prevProjectionDelta.x) || !Ci(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", y));
4464
4544
  }
4465
4545
  hide() {
4466
4546
  this.isVisible = !1;
@@ -4481,17 +4561,17 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4481
4561
  setAnimationOrigin(r, c = !1) {
4482
4562
  const a = this.snapshot, l = a ? a.latestValues : {}, f = { ...this.latestValues }, d = Oe();
4483
4563
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !c;
4484
- const u = B(), y = a ? a.source : void 0, x = this.layout ? this.layout.source : void 0, S = y !== x, C = this.getStack(), p = !C || C.members.length <= 1, b = !!(S && !p && this.options.crossfade === !0 && !this.path.some(ed));
4564
+ const u = B(), y = a ? a.source : void 0, x = this.layout ? this.layout.source : void 0, S = y !== x, C = this.getStack(), p = !C || C.members.length <= 1, b = !!(S && !p && this.options.crossfade === !0 && !this.path.some(cd));
4485
4565
  this.animationProgress = 0;
4486
4566
  let h;
4487
4567
  this.mixTargetDelta = (m) => {
4488
4568
  const g = m / 1e3;
4489
- Ci(d.x, r.x, g), Ci(d.y, r.y, g), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Je(u, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Qu(this.relativeTarget, this.relativeTargetOrigin, u, g), h && Bu(this.relativeTarget, h) && (this.isProjectionDirty = !1), h || (h = B()), ee(h, this.relativeTarget)), S && (this.animationValues = f, Ru(f, l, this.latestValues, g, b, p)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = g;
4569
+ ki(d.x, r.x, g), ki(d.y, r.y, g), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Je(u, this.layout.layoutBox, this.relativeParent.layout.layoutBox), ld(this.relativeTarget, this.relativeTargetOrigin, u, g), h && Hu(this.relativeTarget, h) && (this.isProjectionDirty = !1), h || (h = B()), ee(h, this.relativeTarget)), S && (this.animationValues = f, Nu(f, l, this.latestValues, g, b, p)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = g;
4490
4570
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4491
4571
  }
4492
4572
  startAnimation(r) {
4493
4573
  this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (be(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = O.update(() => {
4494
- Pt.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = Ie(0)), this.currentAnimation = ku(this.motionValue, [0, 1e3], {
4574
+ Pt.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = Ie(0)), this.currentAnimation = Ku(this.motionValue, [0, 1e3], {
4495
4575
  ...r,
4496
4576
  velocity: 0,
4497
4577
  isSync: !0,
@@ -4512,7 +4592,7 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4512
4592
  r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
4513
4593
  }
4514
4594
  finishAnimation() {
4515
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Nu), this.currentAnimation.stop()), this.completeAnimation();
4595
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Xu), this.currentAnimation.stop()), this.completeAnimation();
4516
4596
  }
4517
4597
  applyTransformsToTarget() {
4518
4598
  const r = this.getLead();
@@ -4529,7 +4609,7 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4529
4609
  }
4530
4610
  }
4531
4611
  registerSharedNode(r, c) {
4532
- this.sharedNodes.has(r) || this.sharedNodes.set(r, new Fu()), this.sharedNodes.get(r).add(c);
4612
+ this.sharedNodes.has(r) || this.sharedNodes.set(r, new Yu()), this.sharedNodes.get(r).add(c);
4533
4613
  const l = c.options.initialPromotionConfig;
4534
4614
  c.promote({
4535
4615
  transition: l ? l.transition : void 0,
@@ -4570,9 +4650,9 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4570
4650
  if ((a.z || a.rotate || a.rotateX || a.rotateY || a.rotateZ || a.skewX || a.skewY) && (c = !0), !c)
4571
4651
  return;
4572
4652
  const l = {};
4573
- a.z && qt("z", r, l, this.animationValues);
4574
- for (let f = 0; f < Yt.length; f++)
4575
- qt(`rotate${Yt[f]}`, r, l, this.animationValues), qt(`skew${Yt[f]}`, r, l, this.animationValues);
4653
+ a.z && Xt("z", r, l, this.animationValues);
4654
+ for (let f = 0; f < qt.length; f++)
4655
+ Xt(`rotate${qt[f]}`, r, l, this.animationValues), Xt(`skew${qt[f]}`, r, l, this.animationValues);
4576
4656
  r.render();
4577
4657
  for (const f in l)
4578
4658
  r.setStaticValue(f, l[f]), this.animationValues && (this.animationValues[f] = l[f]);
@@ -4598,7 +4678,7 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4598
4678
  r.visibility = "";
4599
4679
  const f = l.animationValues || l.latestValues;
4600
4680
  this.applyTransformsToTarget();
4601
- let d = ju(this.projectionDeltaWithTransform, this.treeScale, f);
4681
+ let d = qu(this.projectionDeltaWithTransform, this.treeScale, f);
4602
4682
  a && (d = a(f, d)), r.transform = d;
4603
4683
  const { x: u, y } = this.projectionDelta;
4604
4684
  r.transformOrigin = `${u.origin * 100}% ${y.origin * 100}% 0`, l.animationValues ? r.opacity = l === this ? f.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : f.opacityExit : r.opacity = l === this ? f.opacity !== void 0 ? f.opacity : "" : f.opacityExit !== void 0 ? f.opacityExit : 0;
@@ -4620,14 +4700,14 @@ function yo({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4620
4700
  }
4621
4701
  // Only run on root
4622
4702
  resetTree() {
4623
- this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach(wi), this.root.sharedNodes.clear();
4703
+ this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach(Pi), this.root.sharedNodes.clear();
4624
4704
  }
4625
4705
  };
4626
4706
  }
4627
- function zu(e) {
4707
+ function Ju(e) {
4628
4708
  e.updateLayout();
4629
4709
  }
4630
- function Gu(e) {
4710
+ function Qu(e) {
4631
4711
  const t = e.resumeFrom?.snapshot || e.snapshot;
4632
4712
  if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
4633
4713
  const { layoutBox: n, measuredBox: s } = e.layout, { animationType: i } = e.options, o = t.source !== e.layout.source;
@@ -4670,76 +4750,76 @@ function Gu(e) {
4670
4750
  }
4671
4751
  e.options.transition = void 0;
4672
4752
  }
4673
- function $u(e) {
4753
+ function ed(e) {
4674
4754
  e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
4675
4755
  }
4676
- function Wu(e) {
4756
+ function td(e) {
4677
4757
  e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
4678
4758
  }
4679
- function Hu(e) {
4759
+ function nd(e) {
4680
4760
  e.clearSnapshot();
4681
4761
  }
4682
- function wi(e) {
4762
+ function Pi(e) {
4683
4763
  e.clearMeasurements();
4684
4764
  }
4685
- function Ti(e) {
4765
+ function Mi(e) {
4686
4766
  e.isLayoutDirty = !1;
4687
4767
  }
4688
- function Yu(e) {
4768
+ function sd(e) {
4689
4769
  const { visualElement: t } = e.options;
4690
4770
  t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
4691
4771
  }
4692
- function Si(e) {
4772
+ function Ai(e) {
4693
4773
  e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
4694
4774
  }
4695
- function qu(e) {
4775
+ function id(e) {
4696
4776
  e.resolveTargetDelta();
4697
4777
  }
4698
- function Xu(e) {
4778
+ function rd(e) {
4699
4779
  e.calcProjection();
4700
4780
  }
4701
- function Zu(e) {
4781
+ function od(e) {
4702
4782
  e.resetSkewAndRotation();
4703
4783
  }
4704
- function Ju(e) {
4784
+ function ad(e) {
4705
4785
  e.removeLeadSnapshot();
4706
4786
  }
4707
- function Ci(e, t, n) {
4787
+ function ki(e, t, n) {
4708
4788
  e.translate = K(t.translate, 0, n), e.scale = K(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
4709
4789
  }
4710
- function Pi(e, t, n, s) {
4790
+ function Ei(e, t, n, s) {
4711
4791
  e.min = K(t.min, n.min, s), e.max = K(t.max, n.max, s);
4712
4792
  }
4713
- function Qu(e, t, n, s) {
4714
- Pi(e.x, t.x, n.x, s), Pi(e.y, t.y, n.y, s);
4793
+ function ld(e, t, n, s) {
4794
+ Ei(e.x, t.x, n.x, s), Ei(e.y, t.y, n.y, s);
4715
4795
  }
4716
- function ed(e) {
4796
+ function cd(e) {
4717
4797
  return e.animationValues && e.animationValues.opacityExit !== void 0;
4718
4798
  }
4719
- const td = {
4799
+ const ud = {
4720
4800
  duration: 0.45,
4721
4801
  ease: [0.4, 0, 0.1, 1]
4722
- }, Mi = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), ki = Mi("applewebkit/") && !Mi("chrome/") ? Math.round : ne;
4723
- function Ai(e) {
4724
- e.min = ki(e.min), e.max = ki(e.max);
4802
+ }, Di = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Vi = Di("applewebkit/") && !Di("chrome/") ? Math.round : ne;
4803
+ function Ri(e) {
4804
+ e.min = Vi(e.min), e.max = Vi(e.max);
4725
4805
  }
4726
- function nd(e) {
4727
- Ai(e.x), Ai(e.y);
4806
+ function dd(e) {
4807
+ Ri(e.x), Ri(e.y);
4728
4808
  }
4729
4809
  function bo(e, t, n) {
4730
- return e === "position" || e === "preserve-aspect" && !ou(vi(t), vi(n), 0.2);
4810
+ return e === "position" || e === "preserve-aspect" && !mu(Si(t), Si(n), 0.2);
4731
4811
  }
4732
- function sd(e) {
4812
+ function fd(e) {
4733
4813
  return e !== e.root && e.scroll?.wasRoot;
4734
4814
  }
4735
- const id = yo({
4815
+ const hd = yo({
4736
4816
  attachResizeListener: (e, t) => rt(e, "resize", t),
4737
4817
  measureScroll: () => ({
4738
4818
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
4739
4819
  y: document.documentElement.scrollTop || document.body.scrollTop
4740
4820
  }),
4741
4821
  checkIsScrollRoot: () => !0
4742
- }), Xt = {
4822
+ }), Zt = {
4743
4823
  current: void 0
4744
4824
  }, vo = yo({
4745
4825
  measureScroll: (e) => ({
@@ -4747,41 +4827,41 @@ const id = yo({
4747
4827
  y: e.scrollTop
4748
4828
  }),
4749
4829
  defaultParent: () => {
4750
- if (!Xt.current) {
4751
- const e = new id({});
4752
- e.mount(window), e.setOptions({ layoutScroll: !0 }), Xt.current = e;
4830
+ if (!Zt.current) {
4831
+ const e = new hd({});
4832
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), Zt.current = e;
4753
4833
  }
4754
- return Xt.current;
4834
+ return Zt.current;
4755
4835
  },
4756
4836
  resetTransform: (e, t) => {
4757
4837
  e.style.transform = t !== void 0 ? t : "none";
4758
4838
  },
4759
4839
  checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
4760
- }), rd = {
4840
+ }), pd = {
4761
4841
  pan: {
4762
- Feature: Su
4842
+ Feature: Ru
4763
4843
  },
4764
4844
  drag: {
4765
- Feature: Tu,
4845
+ Feature: Vu,
4766
4846
  ProjectionNode: vo,
4767
4847
  MeasureLayout: uo
4768
4848
  }
4769
4849
  };
4770
- function Ei(e, t, n) {
4850
+ function _i(e, t, n) {
4771
4851
  const { props: s } = e;
4772
4852
  e.animationState && s.whileHover && e.animationState.setActive("whileHover", n === "Start");
4773
4853
  const i = "onHover" + n, o = s[i];
4774
4854
  o && O.postRender(() => o(t, ct(t)));
4775
4855
  }
4776
- class od extends xe {
4856
+ class md extends xe {
4777
4857
  mount() {
4778
4858
  const { current: t } = this.node;
4779
- t && (this.unmount = Ol(t, (n, s) => (Ei(this.node, s, "Start"), (i) => Ei(this.node, i, "End"))));
4859
+ t && (this.unmount = zl(t, (n, s) => (_i(this.node, s, "Start"), (i) => _i(this.node, i, "End"))));
4780
4860
  }
4781
4861
  unmount() {
4782
4862
  }
4783
4863
  }
4784
- class ad extends xe {
4864
+ class gd extends xe {
4785
4865
  constructor() {
4786
4866
  super(...arguments), this.isActive = !1;
4787
4867
  }
@@ -4803,7 +4883,7 @@ class ad extends xe {
4803
4883
  unmount() {
4804
4884
  }
4805
4885
  }
4806
- function Di(e, t, n) {
4886
+ function Oi(e, t, n) {
4807
4887
  const { props: s } = e;
4808
4888
  if (e.current instanceof HTMLButtonElement && e.current.disabled)
4809
4889
  return;
@@ -4811,37 +4891,37 @@ function Di(e, t, n) {
4811
4891
  const i = "onTap" + (n === "End" ? "" : n), o = s[i];
4812
4892
  o && O.postRender(() => o(t, ct(t)));
4813
4893
  }
4814
- class ld extends xe {
4894
+ class yd extends xe {
4815
4895
  mount() {
4816
4896
  const { current: t } = this.node;
4817
- t && (this.unmount = Bl(t, (n, s) => (Di(this.node, s, "Start"), (i, { success: o }) => Di(this.node, i, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
4897
+ t && (this.unmount = Hl(t, (n, s) => (Oi(this.node, s, "Start"), (i, { success: o }) => Oi(this.node, i, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
4818
4898
  }
4819
4899
  unmount() {
4820
4900
  }
4821
4901
  }
4822
- const xn = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), cd = (e) => {
4902
+ const xn = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), bd = (e) => {
4823
4903
  const t = xn.get(e.target);
4824
4904
  t && t(e);
4825
- }, ud = (e) => {
4826
- e.forEach(cd);
4905
+ }, vd = (e) => {
4906
+ e.forEach(bd);
4827
4907
  };
4828
- function dd({ root: e, ...t }) {
4908
+ function xd({ root: e, ...t }) {
4829
4909
  const n = e || document;
4830
- Zt.has(n) || Zt.set(n, {});
4831
- const s = Zt.get(n), i = JSON.stringify(t);
4832
- return s[i] || (s[i] = new IntersectionObserver(ud, { root: e, ...t })), s[i];
4910
+ Jt.has(n) || Jt.set(n, {});
4911
+ const s = Jt.get(n), i = JSON.stringify(t);
4912
+ return s[i] || (s[i] = new IntersectionObserver(vd, { root: e, ...t })), s[i];
4833
4913
  }
4834
- function fd(e, t, n) {
4835
- const s = dd(t);
4914
+ function wd(e, t, n) {
4915
+ const s = xd(t);
4836
4916
  return xn.set(e, n), s.observe(e), () => {
4837
4917
  xn.delete(e), s.unobserve(e);
4838
4918
  };
4839
4919
  }
4840
- const hd = {
4920
+ const Td = {
4841
4921
  some: 0,
4842
4922
  all: 1
4843
4923
  };
4844
- class pd extends xe {
4924
+ class Sd extends xe {
4845
4925
  constructor() {
4846
4926
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
4847
4927
  }
@@ -4850,7 +4930,7 @@ class pd extends xe {
4850
4930
  const { viewport: t = {} } = this.node.getProps(), { root: n, margin: s, amount: i = "some", once: o } = t, r = {
4851
4931
  root: n ? n.current : void 0,
4852
4932
  rootMargin: s,
4853
- threshold: typeof i == "number" ? i : hd[i]
4933
+ threshold: typeof i == "number" ? i : Td[i]
4854
4934
  }, c = (a) => {
4855
4935
  const { isIntersecting: l } = a;
4856
4936
  if (this.isInView === l || (this.isInView = l, o && !l && this.hasEnteredView))
@@ -4859,7 +4939,7 @@ class pd extends xe {
4859
4939
  const { onViewportEnter: f, onViewportLeave: d } = this.node.getProps(), u = l ? f : d;
4860
4940
  u && u(a);
4861
4941
  };
4862
- return fd(this.node.current, r, c);
4942
+ return wd(this.node.current, r, c);
4863
4943
  }
4864
4944
  mount() {
4865
4945
  this.startObserver();
@@ -4868,34 +4948,34 @@ class pd extends xe {
4868
4948
  if (typeof IntersectionObserver > "u")
4869
4949
  return;
4870
4950
  const { props: t, prevProps: n } = this.node;
4871
- ["amount", "margin", "root"].some(md(t, n)) && this.startObserver();
4951
+ ["amount", "margin", "root"].some(Cd(t, n)) && this.startObserver();
4872
4952
  }
4873
4953
  unmount() {
4874
4954
  }
4875
4955
  }
4876
- function md({ viewport: e = {} }, { viewport: t = {} } = {}) {
4956
+ function Cd({ viewport: e = {} }, { viewport: t = {} } = {}) {
4877
4957
  return (n) => e[n] !== t[n];
4878
4958
  }
4879
- const gd = {
4959
+ const Pd = {
4880
4960
  inView: {
4881
- Feature: pd
4961
+ Feature: Sd
4882
4962
  },
4883
4963
  tap: {
4884
- Feature: ld
4964
+ Feature: yd
4885
4965
  },
4886
4966
  focus: {
4887
- Feature: ad
4967
+ Feature: gd
4888
4968
  },
4889
4969
  hover: {
4890
- Feature: od
4970
+ Feature: md
4891
4971
  }
4892
- }, yd = {
4972
+ }, Md = {
4893
4973
  layout: {
4894
4974
  ProjectionNode: vo,
4895
4975
  MeasureLayout: uo
4896
4976
  }
4897
4977
  }, wn = { current: null }, xo = { current: !1 };
4898
- function bd() {
4978
+ function Ad() {
4899
4979
  if (xo.current = !0, !!En)
4900
4980
  if (window.matchMedia) {
4901
4981
  const e = window.matchMedia("(prefers-reduced-motion)"), t = () => wn.current = e.matches;
@@ -4903,8 +4983,8 @@ function bd() {
4903
4983
  } else
4904
4984
  wn.current = !1;
4905
4985
  }
4906
- const vd = /* @__PURE__ */ new WeakMap();
4907
- function xd(e, t, n) {
4986
+ const kd = /* @__PURE__ */ new WeakMap();
4987
+ function Ed(e, t, n) {
4908
4988
  for (const s in t) {
4909
4989
  const i = t[s], o = n[s];
4910
4990
  if (Y(i))
@@ -4924,7 +5004,7 @@ function xd(e, t, n) {
4924
5004
  t[s] === void 0 && e.removeValue(s);
4925
5005
  return t;
4926
5006
  }
4927
- const Vi = [
5007
+ const Li = [
4928
5008
  "AnimationStart",
4929
5009
  "AnimationComplete",
4930
5010
  "Update",
@@ -4933,7 +5013,7 @@ const Vi = [
4933
5013
  "LayoutAnimationStart",
4934
5014
  "LayoutAnimationComplete"
4935
5015
  ];
4936
- class wd {
5016
+ class Dd {
4937
5017
  /**
4938
5018
  * This method takes React props and returns found MotionValues. For example, HTML
4939
5019
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -4960,7 +5040,7 @@ class wd {
4960
5040
  }
4961
5041
  }
4962
5042
  mount(t) {
4963
- this.current = t, vd.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), xo.current || bd(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : wn.current, process.env.NODE_ENV !== "production" && On(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
5043
+ this.current = t, kd.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), xo.current || Ad(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : wn.current, process.env.NODE_ENV !== "production" && On(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
4964
5044
  }
4965
5045
  unmount() {
4966
5046
  this.projection && this.projection.unmount(), be(this.notifyUpdate), be(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
@@ -5023,13 +5103,13 @@ class wd {
5023
5103
  */
5024
5104
  update(t, n) {
5025
5105
  (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
5026
- for (let s = 0; s < Vi.length; s++) {
5027
- const i = Vi[s];
5106
+ for (let s = 0; s < Li.length; s++) {
5107
+ const i = Li[s];
5028
5108
  this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), delete this.propEventSubscriptions[i]);
5029
5109
  const o = "on" + i, r = t[o];
5030
5110
  r && (this.propEventSubscriptions[i] = this.on(i, r));
5031
5111
  }
5032
- this.prevMotionValues = xd(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
5112
+ this.prevMotionValues = Ed(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
5033
5113
  }
5034
5114
  getProps() {
5035
5115
  return this.props;
@@ -5094,7 +5174,7 @@ class wd {
5094
5174
  */
5095
5175
  readValue(t, n) {
5096
5176
  let s = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
5097
- return s != null && (typeof s == "string" && (Yi(s) || Xi(s)) ? s = parseFloat(s) : !Nl(s) && ve.test(n) && (s = Vr(t, n)), this.setBaseTarget(t, Y(s) ? s.get() : s)), Y(s) ? s.get() : s;
5177
+ return s != null && (typeof s == "string" && (Yi(s) || Xi(s)) ? s = parseFloat(s) : !Xl(s) && ve.test(n) && (s = Vr(t, n)), this.setBaseTarget(t, Y(s) ? s.get() : s)), Y(s) ? s.get() : s;
5098
5178
  }
5099
5179
  /**
5100
5180
  * Set the base target to later animate back to. This is currently
@@ -5126,9 +5206,9 @@ class wd {
5126
5206
  this.events[t] && this.events[t].notify(...n);
5127
5207
  }
5128
5208
  }
5129
- class wo extends wd {
5209
+ class wo extends Dd {
5130
5210
  constructor() {
5131
- super(...arguments), this.KeyframeResolver = El;
5211
+ super(...arguments), this.KeyframeResolver = Bl;
5132
5212
  }
5133
5213
  sortInstanceNodePosition(t, n) {
5134
5214
  return t.compareDocumentPosition(n) & 2 ? 1 : -1;
@@ -5156,18 +5236,18 @@ function To(e, { style: t, vars: n }, s, i) {
5156
5236
  for (r in n)
5157
5237
  o.setProperty(r, n[r]);
5158
5238
  }
5159
- function Td(e) {
5239
+ function Vd(e) {
5160
5240
  return window.getComputedStyle(e);
5161
5241
  }
5162
- class Sd extends wo {
5242
+ class Rd extends wo {
5163
5243
  constructor() {
5164
5244
  super(...arguments), this.type = "html", this.renderInstance = To;
5165
5245
  }
5166
5246
  readValueFromInstance(t, n) {
5167
5247
  if (ze.has(n))
5168
- return this.projection?.isProjecting ? ln(n) : Ha(t, n);
5248
+ return this.projection?.isProjecting ? ln(n) : nl(t, n);
5169
5249
  {
5170
- const s = Td(t), i = (In(n) ? s.getPropertyValue(n) : s[n]) || 0;
5250
+ const s = Vd(t), i = (In(n) ? s.getPropertyValue(n) : s[n]) || 0;
5171
5251
  return typeof i == "string" ? i.trim() : i;
5172
5252
  }
5173
5253
  }
@@ -5206,12 +5286,12 @@ const So = /* @__PURE__ */ new Set([
5206
5286
  "textLength",
5207
5287
  "lengthAdjust"
5208
5288
  ]);
5209
- function Cd(e, t, n, s) {
5289
+ function _d(e, t, n, s) {
5210
5290
  To(e, t, void 0, s);
5211
5291
  for (const i in t.attrs)
5212
5292
  e.setAttribute(So.has(i) ? i : ts(i), t.attrs[i]);
5213
5293
  }
5214
- class Pd extends wo {
5294
+ class Od extends wo {
5215
5295
  constructor() {
5216
5296
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = B;
5217
5297
  }
@@ -5232,20 +5312,20 @@ class Pd extends wo {
5232
5312
  Wr(t, n, this.isSVGTag, s.transformTemplate, s.style);
5233
5313
  }
5234
5314
  renderInstance(t, n, s, i) {
5235
- Cd(t, n, s, i);
5315
+ _d(t, n, s, i);
5236
5316
  }
5237
5317
  mount(t) {
5238
5318
  this.isSVGTag = Yr(t.tagName), super.mount(t);
5239
5319
  }
5240
5320
  }
5241
- const Md = (e, t) => is(e) ? new Pd(t) : new Sd(t, {
5321
+ const Ld = (e, t) => is(e) ? new Od(t) : new Rd(t, {
5242
5322
  allowProjection: e !== Wi
5243
- }), kd = /* @__PURE__ */ Mc({
5244
- ...Jc,
5245
- ...gd,
5246
- ...rd,
5247
- ...yd
5248
- }, Md), Ad = /* @__PURE__ */ Zl(kd);
5323
+ }), Kd = /* @__PURE__ */ Lc({
5324
+ ...au,
5325
+ ...Pd,
5326
+ ...pd,
5327
+ ...Md
5328
+ }, Ld), Id = /* @__PURE__ */ oc(Kd);
5249
5329
  var bt = { exports: {} }, $ = {};
5250
5330
  /**
5251
5331
  * @license React
@@ -5256,10 +5336,10 @@ var bt = { exports: {} }, $ = {};
5256
5336
  * This source code is licensed under the MIT license found in the
5257
5337
  * LICENSE file in the root directory of this source tree.
5258
5338
  */
5259
- var Ri;
5260
- function Ed() {
5261
- if (Ri) return $;
5262
- Ri = 1;
5339
+ var Ki;
5340
+ function Bd() {
5341
+ if (Ki) return $;
5342
+ Ki = 1;
5263
5343
  var e = Mt;
5264
5344
  function t(a) {
5265
5345
  var l = "https://react.dev/errors/" + a;
@@ -5399,9 +5479,9 @@ var W = {};
5399
5479
  * This source code is licensed under the MIT license found in the
5400
5480
  * LICENSE file in the root directory of this source tree.
5401
5481
  */
5402
- var _i;
5403
- function Dd() {
5404
- return _i || (_i = 1, process.env.NODE_ENV !== "production" && function() {
5482
+ var Ii;
5483
+ function Fd() {
5484
+ return Ii || (Ii = 1, process.env.NODE_ENV !== "production" && function() {
5405
5485
  function e() {
5406
5486
  }
5407
5487
  function t(d) {
@@ -5612,10 +5692,10 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
5612
5692
  }, W.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
5613
5693
  }()), W;
5614
5694
  }
5615
- var Oi;
5616
- function Vd() {
5617
- if (Oi) return bt.exports;
5618
- Oi = 1;
5695
+ var Bi;
5696
+ function jd() {
5697
+ if (Bi) return bt.exports;
5698
+ Bi = 1;
5619
5699
  function e() {
5620
5700
  if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
5621
5701
  if (process.env.NODE_ENV !== "production")
@@ -5627,18 +5707,18 @@ function Vd() {
5627
5707
  }
5628
5708
  }
5629
5709
  }
5630
- return process.env.NODE_ENV === "production" ? (e(), bt.exports = Ed()) : bt.exports = Dd(), bt.exports;
5710
+ return process.env.NODE_ENV === "production" ? (e(), bt.exports = Bd()) : bt.exports = Fd(), bt.exports;
5631
5711
  }
5632
- var Rd = Vd();
5633
- const ls = "-", _d = (e) => {
5634
- const t = Ld(e), {
5712
+ var Nd = jd();
5713
+ const ls = "-", Ud = (e) => {
5714
+ const t = Gd(e), {
5635
5715
  conflictingClassGroups: n,
5636
5716
  conflictingClassGroupModifiers: s
5637
5717
  } = e;
5638
5718
  return {
5639
5719
  getClassGroupId: (r) => {
5640
5720
  const c = r.split(ls);
5641
- return c[0] === "" && c.length !== 1 && c.shift(), Co(c, t) || Od(r);
5721
+ return c[0] === "" && c.length !== 1 && c.shift(), Co(c, t) || zd(r);
5642
5722
  },
5643
5723
  getConflictingClassGroupIds: (r, c) => {
5644
5724
  const a = n[r] || [];
@@ -5657,13 +5737,13 @@ const ls = "-", _d = (e) => {
5657
5737
  return t.validators.find(({
5658
5738
  validator: r
5659
5739
  }) => r(o))?.classGroupId;
5660
- }, Li = /^\[(.+)\]$/, Od = (e) => {
5661
- if (Li.test(e)) {
5662
- const t = Li.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
5740
+ }, Fi = /^\[(.+)\]$/, zd = (e) => {
5741
+ if (Fi.test(e)) {
5742
+ const t = Fi.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
5663
5743
  if (n)
5664
5744
  return "arbitrary.." + n;
5665
5745
  }
5666
- }, Ld = (e) => {
5746
+ }, Gd = (e) => {
5667
5747
  const {
5668
5748
  theme: t,
5669
5749
  classGroups: n
@@ -5677,12 +5757,12 @@ const ls = "-", _d = (e) => {
5677
5757
  }, Tn = (e, t, n, s) => {
5678
5758
  e.forEach((i) => {
5679
5759
  if (typeof i == "string") {
5680
- const o = i === "" ? t : Ki(t, i);
5760
+ const o = i === "" ? t : ji(t, i);
5681
5761
  o.classGroupId = n;
5682
5762
  return;
5683
5763
  }
5684
5764
  if (typeof i == "function") {
5685
- if (Kd(i)) {
5765
+ if ($d(i)) {
5686
5766
  Tn(i(s), t, n, s);
5687
5767
  return;
5688
5768
  }
@@ -5693,10 +5773,10 @@ const ls = "-", _d = (e) => {
5693
5773
  return;
5694
5774
  }
5695
5775
  Object.entries(i).forEach(([o, r]) => {
5696
- Tn(r, Ki(t, o), n, s);
5776
+ Tn(r, ji(t, o), n, s);
5697
5777
  });
5698
5778
  });
5699
- }, Ki = (e, t) => {
5779
+ }, ji = (e, t) => {
5700
5780
  let n = e;
5701
5781
  return t.split(ls).forEach((s) => {
5702
5782
  n.nextPart.has(s) || n.nextPart.set(s, {
@@ -5704,7 +5784,7 @@ const ls = "-", _d = (e) => {
5704
5784
  validators: []
5705
5785
  }), n = n.nextPart.get(s);
5706
5786
  }), n;
5707
- }, Kd = (e) => e.isThemeGetter, Id = (e) => {
5787
+ }, $d = (e) => e.isThemeGetter, Wd = (e) => {
5708
5788
  if (e < 1)
5709
5789
  return {
5710
5790
  get: () => {
@@ -5728,7 +5808,7 @@ const ls = "-", _d = (e) => {
5728
5808
  n.has(o) ? n.set(o, r) : i(o, r);
5729
5809
  }
5730
5810
  };
5731
- }, Sn = "!", Cn = ":", Bd = Cn.length, Fd = (e) => {
5811
+ }, Sn = "!", Cn = ":", Hd = Cn.length, Yd = (e) => {
5732
5812
  const {
5733
5813
  prefix: t,
5734
5814
  experimentalParseClassName: n
@@ -5740,7 +5820,7 @@ const ls = "-", _d = (e) => {
5740
5820
  let S = i[x];
5741
5821
  if (r === 0 && c === 0) {
5742
5822
  if (S === Cn) {
5743
- o.push(i.slice(a, x)), a = x + Bd;
5823
+ o.push(i.slice(a, x)), a = x + Hd;
5744
5824
  continue;
5745
5825
  }
5746
5826
  if (S === "/") {
@@ -5750,7 +5830,7 @@ const ls = "-", _d = (e) => {
5750
5830
  }
5751
5831
  S === "[" ? r++ : S === "]" ? r-- : S === "(" ? c++ : S === ")" && c--;
5752
5832
  }
5753
- const f = o.length === 0 ? i : i.substring(a), d = jd(f), u = d !== f, y = l && l > a ? l - a : void 0;
5833
+ const f = o.length === 0 ? i : i.substring(a), d = qd(f), u = d !== f, y = l && l > a ? l - a : void 0;
5754
5834
  return {
5755
5835
  modifiers: o,
5756
5836
  hasImportantModifier: u,
@@ -5776,7 +5856,7 @@ const ls = "-", _d = (e) => {
5776
5856
  });
5777
5857
  }
5778
5858
  return s;
5779
- }, jd = (e) => e.endsWith(Sn) ? e.substring(0, e.length - 1) : e.startsWith(Sn) ? e.substring(1) : e, Nd = (e) => {
5859
+ }, qd = (e) => e.endsWith(Sn) ? e.substring(0, e.length - 1) : e.startsWith(Sn) ? e.substring(1) : e, Xd = (e) => {
5780
5860
  const t = Object.fromEntries(e.orderSensitiveModifiers.map((s) => [s, !0]));
5781
5861
  return (s) => {
5782
5862
  if (s.length <= 1)
@@ -5787,18 +5867,18 @@ const ls = "-", _d = (e) => {
5787
5867
  r[0] === "[" || t[r] ? (i.push(...o.sort(), r), o = []) : o.push(r);
5788
5868
  }), i.push(...o.sort()), i;
5789
5869
  };
5790
- }, Ud = (e) => ({
5791
- cache: Id(e.cacheSize),
5792
- parseClassName: Fd(e),
5793
- sortModifiers: Nd(e),
5794
- ..._d(e)
5795
- }), zd = /\s+/, Gd = (e, t) => {
5870
+ }, Zd = (e) => ({
5871
+ cache: Wd(e.cacheSize),
5872
+ parseClassName: Yd(e),
5873
+ sortModifiers: Xd(e),
5874
+ ...Ud(e)
5875
+ }), Jd = /\s+/, Qd = (e, t) => {
5796
5876
  const {
5797
5877
  parseClassName: n,
5798
5878
  getClassGroupId: s,
5799
5879
  getConflictingClassGroupIds: i,
5800
5880
  sortModifiers: o
5801
- } = t, r = [], c = e.trim().split(zd);
5881
+ } = t, r = [], c = e.trim().split(Jd);
5802
5882
  let a = "";
5803
5883
  for (let l = c.length - 1; l >= 0; l -= 1) {
5804
5884
  const f = c[l], {
@@ -5837,7 +5917,7 @@ const ls = "-", _d = (e) => {
5837
5917
  }
5838
5918
  return a;
5839
5919
  };
5840
- function $d() {
5920
+ function ef() {
5841
5921
  let e = 0, t, n, s = "";
5842
5922
  for (; e < arguments.length; )
5843
5923
  (t = arguments[e++]) && (n = Po(t)) && (s && (s += " "), s += n);
@@ -5851,38 +5931,38 @@ const Po = (e) => {
5851
5931
  e[s] && (t = Po(e[s])) && (n && (n += " "), n += t);
5852
5932
  return n;
5853
5933
  };
5854
- function Wd(e, ...t) {
5934
+ function tf(e, ...t) {
5855
5935
  let n, s, i, o = r;
5856
5936
  function r(a) {
5857
5937
  const l = t.reduce((f, d) => d(f), e());
5858
- return n = Ud(l), s = n.cache.get, i = n.cache.set, o = c, c(a);
5938
+ return n = Zd(l), s = n.cache.get, i = n.cache.set, o = c, c(a);
5859
5939
  }
5860
5940
  function c(a) {
5861
5941
  const l = s(a);
5862
5942
  if (l)
5863
5943
  return l;
5864
- const f = Gd(a, n);
5944
+ const f = Qd(a, n);
5865
5945
  return i(a, f), f;
5866
5946
  }
5867
5947
  return function() {
5868
- return o($d.apply(null, arguments));
5948
+ return o(ef.apply(null, arguments));
5869
5949
  };
5870
5950
  }
5871
5951
  const j = (e) => {
5872
5952
  const t = (n) => n[e] || [];
5873
5953
  return t.isThemeGetter = !0, t;
5874
- }, Mo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ko = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Hd = /^\d+\/\d+$/, Yd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qd = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Xd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Zd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Jd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, De = (e) => Hd.test(e), V = (e) => !!e && !Number.isNaN(Number(e)), ge = (e) => !!e && Number.isInteger(Number(e)), Jt = (e) => e.endsWith("%") && V(e.slice(0, -1)), ce = (e) => Yd.test(e), Qd = () => !0, ef = (e) => (
5954
+ }, Mo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ao = /^\((?:(\w[\w-]*):)?(.+)\)$/i, nf = /^\d+\/\d+$/, sf = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rf = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, of = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, af = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, lf = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, De = (e) => nf.test(e), V = (e) => !!e && !Number.isNaN(Number(e)), ge = (e) => !!e && Number.isInteger(Number(e)), Qt = (e) => e.endsWith("%") && V(e.slice(0, -1)), ce = (e) => sf.test(e), cf = () => !0, uf = (e) => (
5875
5955
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
5876
5956
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
5877
5957
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
5878
- qd.test(e) && !Xd.test(e)
5879
- ), Ao = () => !1, tf = (e) => Zd.test(e), nf = (e) => Jd.test(e), sf = (e) => !P(e) && !M(e), rf = (e) => Ge(e, Vo, Ao), P = (e) => Mo.test(e), Te = (e) => Ge(e, Ro, ef), Qt = (e) => Ge(e, uf, V), Ii = (e) => Ge(e, Eo, Ao), of = (e) => Ge(e, Do, nf), vt = (e) => Ge(e, _o, tf), M = (e) => ko.test(e), He = (e) => $e(e, Ro), af = (e) => $e(e, df), Bi = (e) => $e(e, Eo), lf = (e) => $e(e, Vo), cf = (e) => $e(e, Do), xt = (e) => $e(e, _o, !0), Ge = (e, t, n) => {
5958
+ rf.test(e) && !of.test(e)
5959
+ ), ko = () => !1, df = (e) => af.test(e), ff = (e) => lf.test(e), hf = (e) => !P(e) && !M(e), pf = (e) => Ge(e, Vo, ko), P = (e) => Mo.test(e), Te = (e) => Ge(e, Ro, uf), en = (e) => Ge(e, vf, V), Ni = (e) => Ge(e, Eo, ko), mf = (e) => Ge(e, Do, ff), vt = (e) => Ge(e, _o, df), M = (e) => Ao.test(e), He = (e) => $e(e, Ro), gf = (e) => $e(e, xf), Ui = (e) => $e(e, Eo), yf = (e) => $e(e, Vo), bf = (e) => $e(e, Do), xt = (e) => $e(e, _o, !0), Ge = (e, t, n) => {
5880
5960
  const s = Mo.exec(e);
5881
5961
  return s ? s[1] ? t(s[1]) : n(s[2]) : !1;
5882
5962
  }, $e = (e, t, n = !1) => {
5883
- const s = ko.exec(e);
5963
+ const s = Ao.exec(e);
5884
5964
  return s ? s[1] ? t(s[1]) : n : !1;
5885
- }, Eo = (e) => e === "position" || e === "percentage", Do = (e) => e === "image" || e === "url", Vo = (e) => e === "length" || e === "size" || e === "bg-size", Ro = (e) => e === "length", uf = (e) => e === "number", df = (e) => e === "family-name", _o = (e) => e === "shadow", ff = () => {
5965
+ }, Eo = (e) => e === "position" || e === "percentage", Do = (e) => e === "image" || e === "url", Vo = (e) => e === "length" || e === "size" || e === "bg-size", Ro = (e) => e === "length", vf = (e) => e === "number", xf = (e) => e === "family-name", _o = (e) => e === "shadow", wf = () => {
5886
5966
  const e = j("color"), t = j("font"), n = j("text"), s = j("font-weight"), i = j("tracking"), o = j("leading"), r = j("breakpoint"), c = j("container"), a = j("spacing"), l = j("radius"), f = j("shadow"), d = j("inset-shadow"), u = j("text-shadow"), y = j("drop-shadow"), x = j("blur"), S = j("perspective"), C = j("aspect"), p = j("ease"), b = j("animate"), h = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], m = () => [
5887
5967
  "center",
5888
5968
  "top",
@@ -5903,13 +5983,13 @@ const j = (e) => {
5903
5983
  "left-bottom"
5904
5984
  ], g = () => [...m(), M, P], w = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], v = () => [M, P, a], E = () => [De, "full", "auto", ...v()], D = () => [ge, "none", "subgrid", M, P], _ = () => ["auto", {
5905
5985
  span: ["full", ge, M, P]
5906
- }, ge, M, P], N = () => [ge, "auto", M, P], pe = () => ["auto", "min", "max", "fr", M, P], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], se = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], I = () => ["auto", ...v()], R = () => [De, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...v()], k = () => [e, M, P], me = () => [...m(), Bi, Ii, {
5986
+ }, ge, M, P], N = () => [ge, "auto", M, P], pe = () => ["auto", "min", "max", "fr", M, P], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], se = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], I = () => ["auto", ...v()], R = () => [De, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...v()], A = () => [e, M, P], me = () => [...m(), Ui, Ni, {
5907
5987
  position: [M, P]
5908
5988
  }], Ee = () => ["no-repeat", {
5909
5989
  repeat: ["", "x", "y", "space", "round"]
5910
- }], cs = () => ["auto", "cover", "contain", lf, rf, {
5990
+ }], cs = () => ["auto", "cover", "contain", yf, pf, {
5911
5991
  size: [M, P]
5912
- }], It = () => [Jt, He, Te], q = () => [
5992
+ }], It = () => [Qt, He, Te], q = () => [
5913
5993
  // Deprecated since Tailwind CSS v4.0.0
5914
5994
  "",
5915
5995
  "none",
@@ -5917,7 +5997,7 @@ const j = (e) => {
5917
5997
  l,
5918
5998
  M,
5919
5999
  P
5920
- ], Q = () => ["", V, He, Te], ut = () => ["solid", "dashed", "dotted", "double"], us = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => [V, Jt, Bi, Ii], ds = () => [
6000
+ ], Q = () => ["", V, He, Te], ut = () => ["solid", "dashed", "dotted", "double"], us = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => [V, Qt, Ui, Ni], ds = () => [
5921
6001
  // Deprecated since Tailwind CSS v4.0.0
5922
6002
  "",
5923
6003
  "none",
@@ -5932,11 +6012,11 @@ const j = (e) => {
5932
6012
  aspect: ["video"],
5933
6013
  blur: [ce],
5934
6014
  breakpoint: [ce],
5935
- color: [Qd],
6015
+ color: [cf],
5936
6016
  container: [ce],
5937
6017
  "drop-shadow": [ce],
5938
6018
  ease: ["in", "out", "in-out"],
5939
- font: [sf],
6019
+ font: [hf],
5940
6020
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
5941
6021
  "inset-shadow": [ce],
5942
6022
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
@@ -6634,21 +6714,21 @@ const j = (e) => {
6634
6714
  * @see https://tailwindcss.com/docs/font-weight
6635
6715
  */
6636
6716
  "font-weight": [{
6637
- font: [s, M, Qt]
6717
+ font: [s, M, en]
6638
6718
  }],
6639
6719
  /**
6640
6720
  * Font Stretch
6641
6721
  * @see https://tailwindcss.com/docs/font-stretch
6642
6722
  */
6643
6723
  "font-stretch": [{
6644
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Jt, P]
6724
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Qt, P]
6645
6725
  }],
6646
6726
  /**
6647
6727
  * Font Family
6648
6728
  * @see https://tailwindcss.com/docs/font-family
6649
6729
  */
6650
6730
  "font-family": [{
6651
- font: [af, P, t]
6731
+ font: [gf, P, t]
6652
6732
  }],
6653
6733
  /**
6654
6734
  * Font Variant Numeric
@@ -6692,7 +6772,7 @@ const j = (e) => {
6692
6772
  * @see https://tailwindcss.com/docs/line-clamp
6693
6773
  */
6694
6774
  "line-clamp": [{
6695
- "line-clamp": [V, "none", M, Qt]
6775
+ "line-clamp": [V, "none", M, en]
6696
6776
  }],
6697
6777
  /**
6698
6778
  * Line Height
@@ -6739,14 +6819,14 @@ const j = (e) => {
6739
6819
  * @see https://v3.tailwindcss.com/docs/placeholder-color
6740
6820
  */
6741
6821
  "placeholder-color": [{
6742
- placeholder: k()
6822
+ placeholder: A()
6743
6823
  }],
6744
6824
  /**
6745
6825
  * Text Color
6746
6826
  * @see https://tailwindcss.com/docs/text-color
6747
6827
  */
6748
6828
  "text-color": [{
6749
- text: k()
6829
+ text: A()
6750
6830
  }],
6751
6831
  /**
6752
6832
  * Text Decoration
@@ -6772,7 +6852,7 @@ const j = (e) => {
6772
6852
  * @see https://tailwindcss.com/docs/text-decoration-color
6773
6853
  */
6774
6854
  "text-decoration-color": [{
6775
- decoration: k()
6855
+ decoration: A()
6776
6856
  }],
6777
6857
  /**
6778
6858
  * Text Underline Offset
@@ -6903,14 +6983,14 @@ const j = (e) => {
6903
6983
  }, ge, M, P],
6904
6984
  radial: ["", M, P],
6905
6985
  conic: [ge, M, P]
6906
- }, cf, of]
6986
+ }, bf, mf]
6907
6987
  }],
6908
6988
  /**
6909
6989
  * Background Color
6910
6990
  * @see https://tailwindcss.com/docs/background-color
6911
6991
  */
6912
6992
  "bg-color": [{
6913
- bg: k()
6993
+ bg: A()
6914
6994
  }],
6915
6995
  /**
6916
6996
  * Gradient Color Stops From Position
@@ -6938,21 +7018,21 @@ const j = (e) => {
6938
7018
  * @see https://tailwindcss.com/docs/gradient-color-stops
6939
7019
  */
6940
7020
  "gradient-from": [{
6941
- from: k()
7021
+ from: A()
6942
7022
  }],
6943
7023
  /**
6944
7024
  * Gradient Color Stops Via
6945
7025
  * @see https://tailwindcss.com/docs/gradient-color-stops
6946
7026
  */
6947
7027
  "gradient-via": [{
6948
- via: k()
7028
+ via: A()
6949
7029
  }],
6950
7030
  /**
6951
7031
  * Gradient Color Stops To
6952
7032
  * @see https://tailwindcss.com/docs/gradient-color-stops
6953
7033
  */
6954
7034
  "gradient-to": [{
6955
- to: k()
7035
+ to: A()
6956
7036
  }],
6957
7037
  // ---------------
6958
7038
  // --- Borders ---
@@ -7168,70 +7248,70 @@ const j = (e) => {
7168
7248
  * @see https://tailwindcss.com/docs/border-color
7169
7249
  */
7170
7250
  "border-color": [{
7171
- border: k()
7251
+ border: A()
7172
7252
  }],
7173
7253
  /**
7174
7254
  * Border Color X
7175
7255
  * @see https://tailwindcss.com/docs/border-color
7176
7256
  */
7177
7257
  "border-color-x": [{
7178
- "border-x": k()
7258
+ "border-x": A()
7179
7259
  }],
7180
7260
  /**
7181
7261
  * Border Color Y
7182
7262
  * @see https://tailwindcss.com/docs/border-color
7183
7263
  */
7184
7264
  "border-color-y": [{
7185
- "border-y": k()
7265
+ "border-y": A()
7186
7266
  }],
7187
7267
  /**
7188
7268
  * Border Color S
7189
7269
  * @see https://tailwindcss.com/docs/border-color
7190
7270
  */
7191
7271
  "border-color-s": [{
7192
- "border-s": k()
7272
+ "border-s": A()
7193
7273
  }],
7194
7274
  /**
7195
7275
  * Border Color E
7196
7276
  * @see https://tailwindcss.com/docs/border-color
7197
7277
  */
7198
7278
  "border-color-e": [{
7199
- "border-e": k()
7279
+ "border-e": A()
7200
7280
  }],
7201
7281
  /**
7202
7282
  * Border Color Top
7203
7283
  * @see https://tailwindcss.com/docs/border-color
7204
7284
  */
7205
7285
  "border-color-t": [{
7206
- "border-t": k()
7286
+ "border-t": A()
7207
7287
  }],
7208
7288
  /**
7209
7289
  * Border Color Right
7210
7290
  * @see https://tailwindcss.com/docs/border-color
7211
7291
  */
7212
7292
  "border-color-r": [{
7213
- "border-r": k()
7293
+ "border-r": A()
7214
7294
  }],
7215
7295
  /**
7216
7296
  * Border Color Bottom
7217
7297
  * @see https://tailwindcss.com/docs/border-color
7218
7298
  */
7219
7299
  "border-color-b": [{
7220
- "border-b": k()
7300
+ "border-b": A()
7221
7301
  }],
7222
7302
  /**
7223
7303
  * Border Color Left
7224
7304
  * @see https://tailwindcss.com/docs/border-color
7225
7305
  */
7226
7306
  "border-color-l": [{
7227
- "border-l": k()
7307
+ "border-l": A()
7228
7308
  }],
7229
7309
  /**
7230
7310
  * Divide Color
7231
7311
  * @see https://tailwindcss.com/docs/divide-color
7232
7312
  */
7233
7313
  "divide-color": [{
7234
- divide: k()
7314
+ divide: A()
7235
7315
  }],
7236
7316
  /**
7237
7317
  * Outline Style
@@ -7259,7 +7339,7 @@ const j = (e) => {
7259
7339
  * @see https://tailwindcss.com/docs/outline-color
7260
7340
  */
7261
7341
  "outline-color": [{
7262
- outline: k()
7342
+ outline: A()
7263
7343
  }],
7264
7344
  // ---------------
7265
7345
  // --- Effects ---
@@ -7283,7 +7363,7 @@ const j = (e) => {
7283
7363
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
7284
7364
  */
7285
7365
  "shadow-color": [{
7286
- shadow: k()
7366
+ shadow: A()
7287
7367
  }],
7288
7368
  /**
7289
7369
  * Inset Box Shadow
@@ -7297,7 +7377,7 @@ const j = (e) => {
7297
7377
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
7298
7378
  */
7299
7379
  "inset-shadow-color": [{
7300
- "inset-shadow": k()
7380
+ "inset-shadow": A()
7301
7381
  }],
7302
7382
  /**
7303
7383
  * Ring Width
@@ -7318,7 +7398,7 @@ const j = (e) => {
7318
7398
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
7319
7399
  */
7320
7400
  "ring-color": [{
7321
- ring: k()
7401
+ ring: A()
7322
7402
  }],
7323
7403
  /**
7324
7404
  * Ring Offset Width
@@ -7336,7 +7416,7 @@ const j = (e) => {
7336
7416
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
7337
7417
  */
7338
7418
  "ring-offset-color": [{
7339
- "ring-offset": k()
7419
+ "ring-offset": A()
7340
7420
  }],
7341
7421
  /**
7342
7422
  * Inset Ring Width
@@ -7350,7 +7430,7 @@ const j = (e) => {
7350
7430
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
7351
7431
  */
7352
7432
  "inset-ring-color": [{
7353
- "inset-ring": k()
7433
+ "inset-ring": A()
7354
7434
  }],
7355
7435
  /**
7356
7436
  * Text Shadow
@@ -7364,7 +7444,7 @@ const j = (e) => {
7364
7444
  * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
7365
7445
  */
7366
7446
  "text-shadow-color": [{
7367
- "text-shadow": k()
7447
+ "text-shadow": A()
7368
7448
  }],
7369
7449
  /**
7370
7450
  * Opacity
@@ -7415,10 +7495,10 @@ const j = (e) => {
7415
7495
  "mask-linear-to": U()
7416
7496
  }],
7417
7497
  "mask-image-linear-from-color": [{
7418
- "mask-linear-from": k()
7498
+ "mask-linear-from": A()
7419
7499
  }],
7420
7500
  "mask-image-linear-to-color": [{
7421
- "mask-linear-to": k()
7501
+ "mask-linear-to": A()
7422
7502
  }],
7423
7503
  "mask-image-t-from-pos": [{
7424
7504
  "mask-t-from": U()
@@ -7427,10 +7507,10 @@ const j = (e) => {
7427
7507
  "mask-t-to": U()
7428
7508
  }],
7429
7509
  "mask-image-t-from-color": [{
7430
- "mask-t-from": k()
7510
+ "mask-t-from": A()
7431
7511
  }],
7432
7512
  "mask-image-t-to-color": [{
7433
- "mask-t-to": k()
7513
+ "mask-t-to": A()
7434
7514
  }],
7435
7515
  "mask-image-r-from-pos": [{
7436
7516
  "mask-r-from": U()
@@ -7439,10 +7519,10 @@ const j = (e) => {
7439
7519
  "mask-r-to": U()
7440
7520
  }],
7441
7521
  "mask-image-r-from-color": [{
7442
- "mask-r-from": k()
7522
+ "mask-r-from": A()
7443
7523
  }],
7444
7524
  "mask-image-r-to-color": [{
7445
- "mask-r-to": k()
7525
+ "mask-r-to": A()
7446
7526
  }],
7447
7527
  "mask-image-b-from-pos": [{
7448
7528
  "mask-b-from": U()
@@ -7451,10 +7531,10 @@ const j = (e) => {
7451
7531
  "mask-b-to": U()
7452
7532
  }],
7453
7533
  "mask-image-b-from-color": [{
7454
- "mask-b-from": k()
7534
+ "mask-b-from": A()
7455
7535
  }],
7456
7536
  "mask-image-b-to-color": [{
7457
- "mask-b-to": k()
7537
+ "mask-b-to": A()
7458
7538
  }],
7459
7539
  "mask-image-l-from-pos": [{
7460
7540
  "mask-l-from": U()
@@ -7463,10 +7543,10 @@ const j = (e) => {
7463
7543
  "mask-l-to": U()
7464
7544
  }],
7465
7545
  "mask-image-l-from-color": [{
7466
- "mask-l-from": k()
7546
+ "mask-l-from": A()
7467
7547
  }],
7468
7548
  "mask-image-l-to-color": [{
7469
- "mask-l-to": k()
7549
+ "mask-l-to": A()
7470
7550
  }],
7471
7551
  "mask-image-x-from-pos": [{
7472
7552
  "mask-x-from": U()
@@ -7475,10 +7555,10 @@ const j = (e) => {
7475
7555
  "mask-x-to": U()
7476
7556
  }],
7477
7557
  "mask-image-x-from-color": [{
7478
- "mask-x-from": k()
7558
+ "mask-x-from": A()
7479
7559
  }],
7480
7560
  "mask-image-x-to-color": [{
7481
- "mask-x-to": k()
7561
+ "mask-x-to": A()
7482
7562
  }],
7483
7563
  "mask-image-y-from-pos": [{
7484
7564
  "mask-y-from": U()
@@ -7487,10 +7567,10 @@ const j = (e) => {
7487
7567
  "mask-y-to": U()
7488
7568
  }],
7489
7569
  "mask-image-y-from-color": [{
7490
- "mask-y-from": k()
7570
+ "mask-y-from": A()
7491
7571
  }],
7492
7572
  "mask-image-y-to-color": [{
7493
- "mask-y-to": k()
7573
+ "mask-y-to": A()
7494
7574
  }],
7495
7575
  "mask-image-radial": [{
7496
7576
  "mask-radial": [M, P]
@@ -7502,10 +7582,10 @@ const j = (e) => {
7502
7582
  "mask-radial-to": U()
7503
7583
  }],
7504
7584
  "mask-image-radial-from-color": [{
7505
- "mask-radial-from": k()
7585
+ "mask-radial-from": A()
7506
7586
  }],
7507
7587
  "mask-image-radial-to-color": [{
7508
- "mask-radial-to": k()
7588
+ "mask-radial-to": A()
7509
7589
  }],
7510
7590
  "mask-image-radial-shape": [{
7511
7591
  "mask-radial": ["circle", "ellipse"]
@@ -7529,10 +7609,10 @@ const j = (e) => {
7529
7609
  "mask-conic-to": U()
7530
7610
  }],
7531
7611
  "mask-image-conic-from-color": [{
7532
- "mask-conic-from": k()
7612
+ "mask-conic-from": A()
7533
7613
  }],
7534
7614
  "mask-image-conic-to-color": [{
7535
- "mask-conic-to": k()
7615
+ "mask-conic-to": A()
7536
7616
  }],
7537
7617
  /**
7538
7618
  * Mask Mode
@@ -7639,7 +7719,7 @@ const j = (e) => {
7639
7719
  * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
7640
7720
  */
7641
7721
  "drop-shadow-color": [{
7642
- "drop-shadow": k()
7722
+ "drop-shadow": A()
7643
7723
  }],
7644
7724
  /**
7645
7725
  * Grayscale
@@ -8010,7 +8090,7 @@ const j = (e) => {
8010
8090
  * @see https://tailwindcss.com/docs/accent-color
8011
8091
  */
8012
8092
  accent: [{
8013
- accent: k()
8093
+ accent: A()
8014
8094
  }],
8015
8095
  /**
8016
8096
  * Appearance
@@ -8024,7 +8104,7 @@ const j = (e) => {
8024
8104
  * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
8025
8105
  */
8026
8106
  "caret-color": [{
8027
- caret: k()
8107
+ caret: A()
8028
8108
  }],
8029
8109
  /**
8030
8110
  * Color Scheme
@@ -8270,21 +8350,21 @@ const j = (e) => {
8270
8350
  * @see https://tailwindcss.com/docs/fill
8271
8351
  */
8272
8352
  fill: [{
8273
- fill: ["none", ...k()]
8353
+ fill: ["none", ...A()]
8274
8354
  }],
8275
8355
  /**
8276
8356
  * Stroke Width
8277
8357
  * @see https://tailwindcss.com/docs/stroke-width
8278
8358
  */
8279
8359
  "stroke-w": [{
8280
- stroke: [V, He, Te, Qt]
8360
+ stroke: [V, He, Te, en]
8281
8361
  }],
8282
8362
  /**
8283
8363
  * Stroke
8284
8364
  * @see https://tailwindcss.com/docs/stroke
8285
8365
  */
8286
8366
  stroke: [{
8287
- stroke: ["none", ...k()]
8367
+ stroke: ["none", ...A()]
8288
8368
  }],
8289
8369
  // ---------------------
8290
8370
  // --- Accessibility ---
@@ -8352,94 +8432,20 @@ const j = (e) => {
8352
8432
  },
8353
8433
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
8354
8434
  };
8355
- }, Fi = /* @__PURE__ */ Wd(ff), z = [];
8356
- for (let e = 0; e < 256; ++e)
8357
- z.push((e + 256).toString(16).slice(1));
8358
- function hf(e, t = 0) {
8359
- return (z[e[t + 0]] + z[e[t + 1]] + z[e[t + 2]] + z[e[t + 3]] + "-" + z[e[t + 4]] + z[e[t + 5]] + "-" + z[e[t + 6]] + z[e[t + 7]] + "-" + z[e[t + 8]] + z[e[t + 9]] + "-" + z[e[t + 10]] + z[e[t + 11]] + z[e[t + 12]] + z[e[t + 13]] + z[e[t + 14]] + z[e[t + 15]]).toLowerCase();
8360
- }
8361
- let en;
8362
- const pf = new Uint8Array(16);
8363
- function mf() {
8364
- if (!en) {
8365
- if (typeof crypto > "u" || !crypto.getRandomValues)
8366
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
8367
- en = crypto.getRandomValues.bind(crypto);
8368
- }
8369
- return en(pf);
8370
- }
8371
- const gf = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ji = { randomUUID: gf };
8372
- function yf(e, t, n) {
8373
- if (ji.randomUUID && !e)
8374
- return ji.randomUUID();
8375
- e = e || {};
8376
- const s = e.random ?? e.rng?.() ?? mf();
8377
- if (s.length < 16)
8378
- throw new Error("Random bytes length must be >= 16");
8379
- return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, hf(s);
8380
- }
8381
- const Ni = (e) => {
8382
- let t;
8383
- const n = /* @__PURE__ */ new Set(), s = (l, f) => {
8384
- const d = typeof l == "function" ? l(t) : l;
8385
- if (!Object.is(d, t)) {
8386
- const u = t;
8387
- t = f ?? (typeof d != "object" || d === null) ? d : Object.assign({}, t, d), n.forEach((y) => y(t, u));
8388
- }
8389
- }, i = () => t, c = { setState: s, getState: i, getInitialState: () => a, subscribe: (l) => (n.add(l), () => n.delete(l)) }, a = t = e(s, i, c);
8390
- return c;
8391
- }, bf = (e) => e ? Ni(e) : Ni, vf = (e) => e;
8392
- function xf(e, t = vf) {
8393
- const n = Mt.useSyncExternalStore(
8394
- e.subscribe,
8395
- () => t(e.getState()),
8396
- () => t(e.getInitialState())
8397
- );
8398
- return Mt.useDebugValue(n), n;
8399
- }
8400
- const Ui = (e) => {
8401
- const t = bf(e), n = (s) => xf(t, s);
8402
- return Object.assign(n, t), n;
8403
- }, wf = (e) => e ? Ui(e) : Ui, zi = wf((e, t) => ({
8404
- activeModals: [],
8405
- openModal(n, s) {
8406
- const o = {
8407
- ...s,
8408
- closeModal: () => t().closeModal(n)
8409
- }, r = {
8410
- id: yf(),
8411
- name: n,
8412
- params: o
8413
- }, c = [...t().activeModals, r];
8414
- e({
8415
- activeModals: c
8416
- });
8417
- },
8418
- closeModal(n) {
8419
- const s = [...t().activeModals];
8420
- if (n) {
8421
- const i = s.findIndex((r) => r.name === n), o = s[i];
8422
- i !== -1 && (o.params?.onClose?.(), s.splice(i, 1));
8423
- } else
8424
- s[s.length - 1].params?.onClose?.(), s.pop();
8425
- e({
8426
- activeModals: s
8427
- });
8428
- }
8429
- })), Pf = ({ modals: e, initialParams: t }) => {
8430
- const n = zi((o) => o.activeModals), s = zi((o) => o.closeModal), i = ue(null);
8435
+ }, zi = /* @__PURE__ */ tf(wf), Pf = ({ modals: e, initialParams: t }) => {
8436
+ const n = gs((o) => o.activeModals), s = gs((o) => o.closeModal), i = ue(null);
8431
8437
  return Rt(() => {
8432
8438
  if (i.current = document.body, n?.length === 0 || !n[n.length - 1].params?.closeOnPressEsc && !t?.closeOnPressEsc)
8433
8439
  return;
8434
8440
  const o = () => {
8435
8441
  s();
8436
8442
  };
8437
- return ms.bind(["escape"], o), () => ms.unbind(["escape"], o);
8438
- }, [n, s, t?.closeOnPressEsc]), i.current && Rd.createPortal(
8439
- /* @__PURE__ */ re(Wl, { initial: !0, mode: "popLayout", children: n?.map((o, r) => {
8443
+ return vs.bind(["escape"], o), () => vs.unbind(["escape"], o);
8444
+ }, [n, s, t?.closeOnPressEsc]), i.current && Nd.createPortal(
8445
+ /* @__PURE__ */ re(tc, { initial: !0, mode: "popLayout", children: n?.map((o, r) => {
8440
8446
  const c = e[o.name], a = o.params || t, l = a?.animate || t?.animate, f = a?.onClose || t?.onClose, d = a?.container || t?.container, u = a?.body || t?.body, y = a?.closeOnClickOutside || t?.closeOnClickOutside;
8441
8447
  return /* @__PURE__ */ re(
8442
- Ad.div,
8448
+ Id.div,
8443
8449
  {
8444
8450
  exit: l?.exit ?? { opacity: 0 },
8445
8451
  initial: l?.exit ?? { opacity: 0 },
@@ -8448,7 +8454,7 @@ const Ui = (e) => {
8448
8454
  style: {
8449
8455
  zIndex: 100 + r
8450
8456
  },
8451
- className: Fi(
8457
+ className: zi(
8452
8458
  "fixed top-0 left-0 right-0 bottom-0 bg-black/40 backdrop-blur-sm",
8453
8459
  d?.className
8454
8460
  ),
@@ -8458,7 +8464,7 @@ const Ui = (e) => {
8458
8464
  children: /* @__PURE__ */ re(
8459
8465
  "div",
8460
8466
  {
8461
- className: Fi(
8467
+ className: zi(
8462
8468
  "p-5 absolute max-h-screen max-w-screen overflow-auto top-1/2 -translate-y-1/2",
8463
8469
  "lg:left-1/2 lg:-translate-x-1/2",
8464
8470
  u?.className
@@ -8476,5 +8482,5 @@ const Ui = (e) => {
8476
8482
  };
8477
8483
  export {
8478
8484
  Pf as ModalProvider,
8479
- zi as useModal
8485
+ gs as useModal
8480
8486
  };