prisma-goat 0.2.5 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { jsx as I, jsxs as f, Fragment as WB } from "react/jsx-runtime";
2
- import IA, { forwardRef as yA, useEffect as eA, useState as S, useRef as wA, createContext as bA, useContext as X, useId as Me, useCallback as aD, useLayoutEffect as De, useMemo as Rg, useInsertionEffect as we, Fragment as cD, createElement as ee, Component as te } from "react";
2
+ import IA, { forwardRef as yA, useEffect as eA, useState as S, useRef as wA, createContext as bA, useContext as X, useId as Me, useCallback as aD, useLayoutEffect as De, useMemo as Kg, useInsertionEffect as we, Fragment as cD, createElement as ee, Component as te } from "react";
3
3
  var YD = {
4
4
  color: void 0,
5
5
  size: void 0,
@@ -27,15 +27,15 @@ function ie(g, A) {
27
27
  }
28
28
  return B;
29
29
  }
30
- function ug() {
31
- return ug = Object.assign ? Object.assign.bind() : function(g) {
30
+ function yg() {
31
+ return yg = Object.assign ? Object.assign.bind() : function(g) {
32
32
  for (var A = 1; A < arguments.length; A++) {
33
33
  var B = arguments[A];
34
34
  for (var M in B)
35
35
  Object.prototype.hasOwnProperty.call(B, M) && (g[M] = B[M]);
36
36
  }
37
37
  return g;
38
- }, ug.apply(this, arguments);
38
+ }, yg.apply(this, arguments);
39
39
  }
40
40
  function _B(g, A) {
41
41
  var B = Object.keys(g);
@@ -47,7 +47,7 @@ function _B(g, A) {
47
47
  }
48
48
  return B;
49
49
  }
50
- function mg(g) {
50
+ function ug(g) {
51
51
  for (var A = 1; A < arguments.length; A++) {
52
52
  var B = arguments[A] != null ? arguments[A] : {};
53
53
  A % 2 ? _B(Object(B), !0).forEach(function(M) {
@@ -76,13 +76,13 @@ function Ie(g, A) {
76
76
  return (A === "string" ? String : Number)(g);
77
77
  }
78
78
  function yD(g) {
79
- return g && g.map((A, B) => /* @__PURE__ */ IA.createElement(A.tag, mg({
79
+ return g && g.map((A, B) => /* @__PURE__ */ IA.createElement(A.tag, ug({
80
80
  key: B
81
81
  }, A.attr), yD(A.child)));
82
82
  }
83
83
  function J(g) {
84
- return (A) => /* @__PURE__ */ IA.createElement(ne, ug({
85
- attr: mg({}, g.attr)
84
+ return (A) => /* @__PURE__ */ IA.createElement(ne, yg({
85
+ attr: ug({}, g.attr)
86
86
  }, A), yD(g.child));
87
87
  }
88
88
  function ne(g) {
@@ -92,13 +92,13 @@ function ne(g) {
92
92
  size: D,
93
93
  title: e
94
94
  } = g, w = Ce(g, Qe), Q = D || B.size || "1em", t;
95
- return B.className && (t = B.className), g.className && (t = (t ? t + " " : "") + g.className), /* @__PURE__ */ IA.createElement("svg", ug({
95
+ return B.className && (t = B.className), g.className && (t = (t ? t + " " : "") + g.className), /* @__PURE__ */ IA.createElement("svg", yg({
96
96
  stroke: "currentColor",
97
97
  fill: "currentColor",
98
98
  strokeWidth: "0"
99
99
  }, B.attr, M, w, {
100
100
  className: t,
101
- style: mg(mg({
101
+ style: ug(ug({
102
102
  color: g.color || B.color
103
103
  }, B.style), g.style),
104
104
  height: Q,
@@ -187,7 +187,7 @@ function F() {
187
187
  for (var g, A, B = 0, M = "", D = arguments.length; B < D; B++) (g = arguments[B]) && (A = uD(g)) && (M && (M += " "), M += A);
188
188
  return M;
189
189
  }
190
- const ag = yA(
190
+ const _g = yA(
191
191
  ({
192
192
  children: g,
193
193
  variant: A = "primary",
@@ -232,16 +232,16 @@ const ag = yA(
232
232
  A === "secondary" ? "border-[#1F2937]" : "border-white"
233
233
  )
234
234
  }
235
- ), V = () => IA.isValidElement(Q) ? IA.cloneElement(Q, { className: "w-5 h-5" }) : a(), y = i || g;
235
+ ), m = () => IA.isValidElement(Q) ? IA.cloneElement(Q, { className: "w-5 h-5" }) : a(), y = i || g;
236
236
  return eA(() => {
237
237
  const u = (q) => {
238
238
  if (w && q.key === "Enter" && !e && o) {
239
- const U = new MouseEvent("click", {
239
+ const V = new MouseEvent("click", {
240
240
  bubbles: !0,
241
241
  cancelable: !0,
242
242
  view: window
243
243
  });
244
- o(U);
244
+ o(V);
245
245
  }
246
246
  };
247
247
  return window.addEventListener("keydown", u), () => {
@@ -267,16 +267,16 @@ const ag = yA(
267
267
  ...n,
268
268
  children: [
269
269
  M && D === "left" && /* @__PURE__ */ I("span", { className: "mr-2", children: c }),
270
- t === "left" && /* @__PURE__ */ I("span", { className: "mr-2", children: V() }),
270
+ t === "left" && /* @__PURE__ */ I("span", { className: "mr-2", children: m() }),
271
271
  y,
272
- t === "right" && /* @__PURE__ */ I("span", { className: "ml-2", children: V() }),
272
+ t === "right" && /* @__PURE__ */ I("span", { className: "ml-2", children: m() }),
273
273
  M && D === "right" && /* @__PURE__ */ I("span", { className: "ml-2", children: c })
274
274
  ]
275
275
  }
276
276
  );
277
277
  }
278
278
  );
279
- ag.displayName = "Button";
279
+ _g.displayName = "Button";
280
280
  const tA = {
281
281
  primary: "bg-[#1F2937]",
282
282
  secondary: "bg-[#ededed]",
@@ -295,7 +295,7 @@ const tA = {
295
295
  danger: "focus:ring-white focus:ring-offset-[#b91c1c]",
296
296
  warning: "focus:ring-white focus:ring-offset-[#f59e0b]",
297
297
  success: "focus:ring-white focus:ring-offset-[#047857]"
298
- }, Ug = {
298
+ }, mg = {
299
299
  primary: "border-2 border-white",
300
300
  secondary: "border-2 border-[#1F2937]",
301
301
  vividPink: "border-2 border-white",
@@ -516,11 +516,11 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
516
516
  backgroundIndicator: r = "black",
517
517
  logoGoatDataIndicator: a = "logoRed",
518
518
  imgLoadingIndicator: c = "",
519
- strokeWidthIndicator: V = "10",
519
+ strokeWidthIndicator: m = "10",
520
520
  ...y
521
521
  }, u) => {
522
522
  var R, oA, O, KA;
523
- const [q, U] = S(!1), [K, P] = S(!1), [gA, mA] = S(!1), [UA, lA] = S(null), [TA, XA] = S(null), z = wA(null), x = () => U(!q), rA = () => P(!K), sA = () => P(!1);
523
+ const [q, V] = S(!1), [K, P] = S(!1), [gA, mA] = S(!1), [UA, lA] = S(null), [TA, XA] = S(null), z = wA(null), x = () => V(!q), rA = () => P(!K), sA = () => P(!1);
524
524
  eA(() => {
525
525
  if (typeof window < "u" && (C != null && C.events)) {
526
526
  const Y = () => {
@@ -535,14 +535,14 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
535
535
  }, [C]);
536
536
  const ng = (Y, k) => {
537
537
  Y.subItems && Y.subItems.length > 0 ? lA((BA) => BA === k ? -1 : k) : Y.link && C && C.push(Y.link);
538
- }, Lg = (Y, k) => {
539
- Y.subItems && Y.subItems.length > 0 ? lA((BA) => BA === k ? -1 : k) : Y.link && C && (C.push(Y.link), U(!1));
538
+ }, Pg = (Y, k) => {
539
+ Y.subItems && Y.subItems.length > 0 ? lA((BA) => BA === k ? -1 : k) : Y.link && C && (C.push(Y.link), V(!1));
540
540
  }, NA = (Y, k) => {
541
541
  lA((BA) => BA === k ? -1 : k), Y.link && C && C.push(Y.link);
542
542
  }, Eg = (Y) => {
543
543
  Y.link && C && (C.push(Y.link), sA());
544
544
  }, Z = (Y) => {
545
- Y.link && C && (C.push(Y.link), U(!1));
545
+ Y.link && C && (C.push(Y.link), V(!1));
546
546
  };
547
547
  return eA(() => {
548
548
  const Y = (k) => {
@@ -627,9 +627,9 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
627
627
  Y.subItems && Y.subItems.length > 0 && UA === k && /* @__PURE__ */ I(
628
628
  "div",
629
629
  {
630
- className: `absolute left-0 mt-2 w-48 ${tA[A]} ${Ug[A]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,
630
+ className: `absolute left-0 mt-2 w-48 ${tA[A]} ${mg[A]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,
631
631
  role: "menu",
632
- children: Y.subItems.map((T, Fg) => /* @__PURE__ */ I(
632
+ children: Y.subItems.map((T, Lg) => /* @__PURE__ */ I(
633
633
  "div",
634
634
  {
635
635
  className: F(
@@ -642,7 +642,7 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
642
642
  onClick: () => NA(T, k),
643
643
  children: T.label
644
644
  },
645
- Fg
645
+ Lg
646
646
  ))
647
647
  }
648
648
  )
@@ -688,7 +688,7 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
688
688
  "div",
689
689
  {
690
690
  ref: z,
691
- className: `absolute right-0 mt-2 w-48 ${tA[A]} ${Ug[A]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,
691
+ className: `absolute right-0 mt-2 w-48 ${tA[A]} ${mg[A]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,
692
692
  role: "menu",
693
693
  children: D.map((Y, k) => /* @__PURE__ */ I(
694
694
  "div",
@@ -744,12 +744,12 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
744
744
  t === Y.link ? "font-semibold" : "font-normal"
745
745
  ),
746
746
  onClick: () => {
747
- Lg(Y, k);
747
+ Pg(Y, k);
748
748
  },
749
749
  children: Y.label
750
750
  }
751
751
  ),
752
- Y.subItems && Y.subItems.length > 0 && UA === k && /* @__PURE__ */ I("div", { className: "pl-4 py-4", children: Y.subItems.map((T, Fg) => /* @__PURE__ */ I(
752
+ Y.subItems && Y.subItems.length > 0 && UA === k && /* @__PURE__ */ I("div", { className: "pl-4 py-4", children: Y.subItems.map((T, Lg) => /* @__PURE__ */ I(
753
753
  "button",
754
754
  {
755
755
  className: F(
@@ -760,11 +760,11 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
760
760
  t === T.link ? "font-semibold" : "font-normal"
761
761
  ),
762
762
  onClick: () => {
763
- NA(Y, k), U(!1);
763
+ NA(Y, k), V(!1);
764
764
  },
765
765
  children: T.label
766
766
  },
767
- Fg
767
+ Lg
768
768
  )) })
769
769
  ] }, k);
770
770
  }),
@@ -828,7 +828,7 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
828
828
  t === "/login" ? "font-semibold" : "font-normal"
829
829
  ),
830
830
  onClick: () => {
831
- C.push("/login"), U(!1);
831
+ C.push("/login"), V(!1);
832
832
  },
833
833
  children: "Login"
834
834
  }
@@ -841,7 +841,7 @@ const PA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
841
841
  background: r,
842
842
  logoGoatData: a,
843
843
  imgLoading: c,
844
- strokeWidth: V
844
+ strokeWidth: m
845
845
  }
846
846
  )
847
847
  ] });
@@ -963,16 +963,16 @@ const Oe = yA(
963
963
  handleLogout: r,
964
964
  toggleTheme: a,
965
965
  toggeInstallApp: c,
966
- ...V
966
+ ...m
967
967
  }, y) => {
968
968
  var NA, Eg;
969
- const [u, q] = S(!0), [U, K] = S(null), [P, gA] = S(!1), [mA, UA] = S(null), [lA, TA] = S(!1), XA = wA(null), z = () => gA(!P), x = () => gA(!1), rA = () => {
969
+ const [u, q] = S(!0), [V, K] = S(null), [P, gA] = S(!1), [mA, UA] = S(null), [lA, TA] = S(!1), XA = wA(null), z = () => gA(!P), x = () => gA(!1), rA = () => {
970
970
  q((Z) => !Z);
971
971
  }, sA = (Z, R) => {
972
972
  Z.subItems && Z.subItems.length > 0 ? K((oA) => oA === R ? -1 : R) : Z.link && t && t.push(Z.link);
973
973
  }, ng = (Z, R) => {
974
974
  K((oA) => oA === R ? -1 : R), Z.link && t && t.push(Z.link);
975
- }, Lg = (Z) => {
975
+ }, Pg = (Z) => {
976
976
  Z.link && t && (t.push(Z.link), x());
977
977
  };
978
978
  return eA(() => {
@@ -990,7 +990,7 @@ const Oe = yA(
990
990
  "div",
991
991
  {
992
992
  ref: y,
993
- ...V,
993
+ ...m,
994
994
  style: { width: u ? "250px" : "70px" },
995
995
  className: F(
996
996
  `fixed top-0 left-0 h-full ${tA[B]} text-white shadow-lg transition-all z-50`,
@@ -1094,7 +1094,7 @@ const Oe = yA(
1094
1094
  ]
1095
1095
  }
1096
1096
  ),
1097
- Z.subItems && Z.subItems.length > 0 && U === R && (u ? /* @__PURE__ */ I("div", { className: "pl-4 py-4", children: Z.subItems.map((O, KA) => /* @__PURE__ */ I(
1097
+ Z.subItems && Z.subItems.length > 0 && V === R && (u ? /* @__PURE__ */ I("div", { className: "pl-4 py-4", children: Z.subItems.map((O, KA) => /* @__PURE__ */ I(
1098
1098
  "button",
1099
1099
  {
1100
1100
  className: F(
@@ -1114,7 +1114,7 @@ const Oe = yA(
1114
1114
  "div",
1115
1115
  {
1116
1116
  style: { zIndex: "999" },
1117
- className: `absolute left-0 mt-2 w-48 ${tA[B]} ${Ug[B]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,
1117
+ className: `absolute left-0 mt-2 w-48 ${tA[B]} ${mg[B]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,
1118
1118
  role: "menu",
1119
1119
  children: Z.subItems.map((O, KA) => /* @__PURE__ */ I(
1120
1120
  "div",
@@ -1172,7 +1172,7 @@ const Oe = yA(
1172
1172
  "div",
1173
1173
  {
1174
1174
  ref: XA,
1175
- className: `absolute right-0 ${u ? "left-56" : "left-14"} bottom-8 mt-2 w-48 ${tA[B]} ${Ug[B]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,
1175
+ className: `absolute right-0 ${u ? "left-56" : "left-14"} bottom-8 mt-2 w-48 ${tA[B]} ${mg[B]} rounded-md shadow-lg ring-4 ring-black ring-opacity-5`,
1176
1176
  role: "menu",
1177
1177
  children: A.map((Z, R) => /* @__PURE__ */ I(
1178
1178
  "div",
@@ -1185,7 +1185,7 @@ const Oe = yA(
1185
1185
  Q === Z.link ? "font-semibold" : "font-normal"
1186
1186
  ),
1187
1187
  onClick: Z.label === "Cerrar sesion" ? r : () => {
1188
- Lg(Z);
1188
+ Pg(Z);
1189
1189
  },
1190
1190
  children: Z.label
1191
1191
  },
@@ -1365,13 +1365,13 @@ function dD(g, A) {
1365
1365
  };
1366
1366
  return { schedule: lg.reduce((r, a) => {
1367
1367
  const c = w[a];
1368
- return r[a] = (V, y = !1, u = !1) => (B || E(), c.schedule(V, y, u)), r;
1368
+ return r[a] = (m, y = !1, u = !1) => (B || E(), c.schedule(m, y, u)), r;
1369
1369
  }, {}), cancel: (r) => {
1370
1370
  for (let a = 0; a < lg.length; a++)
1371
1371
  w[lg[a]].cancel(r);
1372
1372
  }, state: D, steps: w };
1373
1373
  }
1374
- const { schedule: d, cancel: cA, state: L, steps: Og } = dD(typeof requestAnimationFrame < "u" ? requestAnimationFrame : N, !0), KD = bA({ strict: !1 }), BM = {
1374
+ const { schedule: d, cancel: cA, state: L, steps: Fg } = dD(typeof requestAnimationFrame < "u" ? requestAnimationFrame : N, !0), KD = bA({ strict: !1 }), BM = {
1375
1375
  animation: [
1376
1376
  "animate",
1377
1377
  "variants",
@@ -1434,12 +1434,12 @@ const xe = /* @__PURE__ */ new Set([
1434
1434
  "ignoreStrict",
1435
1435
  "viewport"
1436
1436
  ]);
1437
- function Zg(g) {
1437
+ function Ug(g) {
1438
1438
  return g.startsWith("while") || g.startsWith("drag") && g !== "draggable" || g.startsWith("layout") || g.startsWith("onTap") || g.startsWith("onPan") || g.startsWith("onLayout") || xe.has(g);
1439
1439
  }
1440
- let RD = (g) => !Zg(g);
1440
+ let RD = (g) => !Ug(g);
1441
1441
  function We(g) {
1442
- g && (RD = (A) => A.startsWith("on") ? !Zg(A) : g(A));
1442
+ g && (RD = (A) => A.startsWith("on") ? !Ug(A) : g(A));
1443
1443
  }
1444
1444
  try {
1445
1445
  We(require("@emotion/is-prop-valid").default);
@@ -1448,18 +1448,18 @@ try {
1448
1448
  function $e(g, A, B) {
1449
1449
  const M = {};
1450
1450
  for (const D in g)
1451
- D === "values" && typeof g.values == "object" || (RD(D) || B === !0 && Zg(D) || !A && !Zg(D) || // If trying to use native HTML drag events, forward drag listeners
1451
+ D === "values" && typeof g.values == "object" || (RD(D) || B === !0 && Ug(D) || !A && !Ug(D) || // If trying to use native HTML drag events, forward drag listeners
1452
1452
  g.draggable && D.startsWith("onDrag")) && (M[D] = g[D]);
1453
1453
  return M;
1454
1454
  }
1455
1455
  const MM = /* @__PURE__ */ new Set();
1456
- function pg(g, A, B) {
1456
+ function Rg(g, A, B) {
1457
1457
  g || MM.has(A) || (console.warn(A), MM.add(A));
1458
1458
  }
1459
1459
  function _e(g) {
1460
1460
  if (typeof Proxy > "u")
1461
1461
  return g;
1462
- const A = /* @__PURE__ */ new Map(), B = (...M) => (process.env.NODE_ENV !== "production" && pg(!1, "motion() is deprecated. Use motion.create() instead."), g(...M));
1462
+ const A = /* @__PURE__ */ new Map(), B = (...M) => (process.env.NODE_ENV !== "production" && Rg(!1, "motion() is deprecated. Use motion.create() instead."), g(...M));
1463
1463
  return new Proxy(B, {
1464
1464
  /**
1465
1465
  * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
@@ -1469,11 +1469,11 @@ function _e(g) {
1469
1469
  get: (M, D) => D === "create" ? g : (A.has(D) || A.set(D, g(D)), A.get(D))
1470
1470
  });
1471
1471
  }
1472
- const hg = bA({});
1472
+ const pg = bA({});
1473
1473
  function wg(g) {
1474
1474
  return typeof g == "string" || Array.isArray(g);
1475
1475
  }
1476
- function Jg(g) {
1476
+ function hg(g) {
1477
1477
  return g !== null && typeof g == "object" && typeof g.start == "function";
1478
1478
  }
1479
1479
  const yB = [
@@ -1485,14 +1485,14 @@ const yB = [
1485
1485
  "whileDrag",
1486
1486
  "exit"
1487
1487
  ], uB = ["initial", ...yB];
1488
- function zg(g) {
1489
- return Jg(g.animate) || uB.some((A) => wg(g[A]));
1488
+ function Jg(g) {
1489
+ return hg(g.animate) || uB.some((A) => wg(g[A]));
1490
1490
  }
1491
1491
  function pD(g) {
1492
- return !!(zg(g) || g.variants);
1492
+ return !!(Jg(g) || g.variants);
1493
1493
  }
1494
1494
  function At(g, A) {
1495
- if (zg(g)) {
1495
+ if (Jg(g)) {
1496
1496
  const { initial: B, animate: M } = g;
1497
1497
  return {
1498
1498
  initial: B === !1 || wg(B) ? B : void 0,
@@ -1502,8 +1502,8 @@ function At(g, A) {
1502
1502
  return g.inherit !== !1 ? A : {};
1503
1503
  }
1504
1504
  function gt(g) {
1505
- const { initial: A, animate: B } = At(g, X(hg));
1506
- return Rg(() => ({ initial: A, animate: B }), [DM(A), DM(B)]);
1505
+ const { initial: A, animate: B } = At(g, X(pg));
1506
+ return Kg(() => ({ initial: A, animate: B }), [DM(A), DM(B)]);
1507
1507
  }
1508
1508
  function DM(g) {
1509
1509
  return Array.isArray(g) ? g.join(" ") : g;
@@ -1528,7 +1528,7 @@ function Mt(g, A, B) {
1528
1528
  const mB = (g) => g.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Dt = "framerAppearId", hD = "data-" + mB(Dt), { schedule: UB, cancel: as } = dD(queueMicrotask, !1), JD = bA({});
1529
1529
  function wt(g, A, B, M, D) {
1530
1530
  var e, w;
1531
- const { visualElement: Q } = X(hg), t = X(KD), C = X(aB), i = X(qD).reducedMotion, s = wA(null);
1531
+ const { visualElement: Q } = X(pg), t = X(KD), C = X(aB), i = X(qD).reducedMotion, s = wA(null);
1532
1532
  M = M || t.renderer, !s.current && M && (s.current = M(g, {
1533
1533
  visualState: A,
1534
1534
  parent: Q,
@@ -1592,7 +1592,7 @@ function tt({ preloadedFeatures: g, createVisualElement: A, useRender: B, useVis
1592
1592
  const G = it(o);
1593
1593
  s = G.MeasureLayout, E.visualElement = wt(D, l, o, A, G.ProjectionNode);
1594
1594
  }
1595
- return f(hg.Provider, { value: E, children: [s && E.visualElement ? I(s, { visualElement: E.visualElement, ...o }) : null, B(D, C, Mt(l, E.visualElement, i), l, n, E.visualElement)] });
1595
+ return f(pg.Provider, { value: E, children: [s && E.visualElement ? I(s, { visualElement: E.visualElement, ...o }) : null, B(D, C, Mt(l, E.visualElement, i), l, n, E.visualElement)] });
1596
1596
  }
1597
1597
  Q.displayName = `motion.${typeof D == "string" ? D : `create(${(w = (e = D.displayName) !== null && e !== void 0 ? e : D.name) !== null && w !== void 0 ? w : ""})`}`;
1598
1598
  const t = yA(Q);
@@ -1684,7 +1684,7 @@ function VB(g, A, B, M) {
1684
1684
  return A;
1685
1685
  }
1686
1686
  const AB = (g) => Array.isArray(g), ot = (g) => !!(g && typeof g == "object" && g.mix && g.toValue), It = (g) => AB(g) ? g[g.length - 1] || 0 : g, H = (g) => !!(g && g.getVelocity);
1687
- function cg(g) {
1687
+ function ag(g) {
1688
1688
  const A = H(g) ? g.get() : g;
1689
1689
  return ot(A) ? A.toValue() : A;
1690
1690
  }
@@ -1696,20 +1696,20 @@ function nt({ scrapeMotionValuesFromProps: g, createRenderState: A, onUpdate: B
1696
1696
  return B && (w.onMount = (Q) => B({ props: M, current: Q, ...w }), w.onUpdate = (Q) => B(Q)), w;
1697
1697
  }
1698
1698
  const vD = (g) => (A, B) => {
1699
- const M = X(hg), D = X(aB), e = () => nt(g, A, M, D);
1699
+ const M = X(pg), D = X(aB), e = () => nt(g, A, M, D);
1700
1700
  return B ? e() : be(e);
1701
1701
  };
1702
1702
  function Et(g, A, B, M) {
1703
1703
  const D = {}, e = M(g, {});
1704
1704
  for (const o in e)
1705
- D[o] = cg(e[o]);
1705
+ D[o] = ag(e[o]);
1706
1706
  let { initial: w, animate: Q } = g;
1707
- const t = zg(g), C = pD(g);
1707
+ const t = Jg(g), C = pD(g);
1708
1708
  A && C && !t && g.inherit !== !1 && (w === void 0 && (w = A.initial), Q === void 0 && (Q = A.animate));
1709
1709
  let i = B ? B.initial === !1 : !1;
1710
1710
  i = i || w === !1;
1711
1711
  const s = i ? Q : w;
1712
- if (s && typeof s != "boolean" && !Jg(s)) {
1712
+ if (s && typeof s != "boolean" && !hg(s)) {
1713
1713
  const o = Array.isArray(s) ? s : [s];
1714
1714
  for (let n = 0; n < o.length; n++) {
1715
1715
  const E = VB(g, o[n]);
@@ -1718,8 +1718,8 @@ function Et(g, A, B, M) {
1718
1718
  for (const a in r) {
1719
1719
  let c = r[a];
1720
1720
  if (Array.isArray(c)) {
1721
- const V = i ? c.length - 1 : 0;
1722
- c = c[V];
1721
+ const m = i ? c.length - 1 : 0;
1722
+ c = c[m];
1723
1723
  }
1724
1724
  c !== null && (D[a] = c);
1725
1725
  }
@@ -1762,46 +1762,46 @@ const HA = [
1762
1762
  test: (A) => typeof A == "string" && A.endsWith(g) && A.split(" ").length === 1,
1763
1763
  parse: parseFloat,
1764
1764
  transform: (A) => `${A}${g}`
1765
- }), GA = /* @__PURE__ */ ig("deg"), CA = /* @__PURE__ */ ig("%"), m = /* @__PURE__ */ ig("px"), Gt = /* @__PURE__ */ ig("vh"), at = /* @__PURE__ */ ig("vw"), eM = {
1765
+ }), GA = /* @__PURE__ */ ig("deg"), CA = /* @__PURE__ */ ig("%"), U = /* @__PURE__ */ ig("px"), Gt = /* @__PURE__ */ ig("vh"), at = /* @__PURE__ */ ig("vw"), eM = {
1766
1766
  ...CA,
1767
1767
  parse: (g) => CA.parse(g) / 100,
1768
1768
  transform: (g) => CA.transform(g * 100)
1769
1769
  }, ct = {
1770
1770
  // Border props
1771
- borderWidth: m,
1772
- borderTopWidth: m,
1773
- borderRightWidth: m,
1774
- borderBottomWidth: m,
1775
- borderLeftWidth: m,
1776
- borderRadius: m,
1777
- radius: m,
1778
- borderTopLeftRadius: m,
1779
- borderTopRightRadius: m,
1780
- borderBottomRightRadius: m,
1781
- borderBottomLeftRadius: m,
1771
+ borderWidth: U,
1772
+ borderTopWidth: U,
1773
+ borderRightWidth: U,
1774
+ borderBottomWidth: U,
1775
+ borderLeftWidth: U,
1776
+ borderRadius: U,
1777
+ radius: U,
1778
+ borderTopLeftRadius: U,
1779
+ borderTopRightRadius: U,
1780
+ borderBottomRightRadius: U,
1781
+ borderBottomLeftRadius: U,
1782
1782
  // Positioning props
1783
- width: m,
1784
- maxWidth: m,
1785
- height: m,
1786
- maxHeight: m,
1787
- top: m,
1788
- right: m,
1789
- bottom: m,
1790
- left: m,
1783
+ width: U,
1784
+ maxWidth: U,
1785
+ height: U,
1786
+ maxHeight: U,
1787
+ top: U,
1788
+ right: U,
1789
+ bottom: U,
1790
+ left: U,
1791
1791
  // Spacing props
1792
- padding: m,
1793
- paddingTop: m,
1794
- paddingRight: m,
1795
- paddingBottom: m,
1796
- paddingLeft: m,
1797
- margin: m,
1798
- marginTop: m,
1799
- marginRight: m,
1800
- marginBottom: m,
1801
- marginLeft: m,
1792
+ padding: U,
1793
+ paddingTop: U,
1794
+ paddingRight: U,
1795
+ paddingBottom: U,
1796
+ paddingLeft: U,
1797
+ margin: U,
1798
+ marginTop: U,
1799
+ marginRight: U,
1800
+ marginBottom: U,
1801
+ marginLeft: U,
1802
1802
  // Misc
1803
- backgroundPositionX: m,
1804
- backgroundPositionY: m
1803
+ backgroundPositionX: U,
1804
+ backgroundPositionY: U
1805
1805
  }, Yt = {
1806
1806
  rotate: GA,
1807
1807
  rotateX: GA,
@@ -1814,19 +1814,19 @@ const HA = [
1814
1814
  skew: GA,
1815
1815
  skewX: GA,
1816
1816
  skewY: GA,
1817
- distance: m,
1818
- translateX: m,
1819
- translateY: m,
1820
- translateZ: m,
1821
- x: m,
1822
- y: m,
1823
- z: m,
1824
- perspective: m,
1825
- transformPerspective: m,
1817
+ distance: U,
1818
+ translateX: U,
1819
+ translateY: U,
1820
+ translateZ: U,
1821
+ x: U,
1822
+ y: U,
1823
+ z: U,
1824
+ perspective: U,
1825
+ transformPerspective: U,
1826
1826
  opacity: eg,
1827
1827
  originX: eM,
1828
1828
  originY: eM,
1829
- originZ: m
1829
+ originZ: U
1830
1830
  }, tM = {
1831
1831
  ...SA,
1832
1832
  transform: Math.round
@@ -1834,7 +1834,7 @@ const HA = [
1834
1834
  ...ct,
1835
1835
  ...Yt,
1836
1836
  zIndex: tM,
1837
- size: m,
1837
+ size: U,
1838
1838
  // SVG
1839
1839
  fillOpacity: eg,
1840
1840
  strokeOpacity: eg,
@@ -1895,12 +1895,12 @@ const Ut = {
1895
1895
  function Vt(g, A, B = 1, M = 0, D = !0) {
1896
1896
  g.pathLength = 1;
1897
1897
  const e = D ? Ut : Zt;
1898
- g[e.offset] = m.transform(-M);
1899
- const w = m.transform(A), Q = m.transform(B);
1898
+ g[e.offset] = U.transform(-M);
1899
+ const w = U.transform(A), Q = U.transform(B);
1900
1900
  g[e.array] = `${w} ${Q}`;
1901
1901
  }
1902
1902
  function QM(g, A, B) {
1903
- return typeof g == "string" ? g : m.transform(A + B * g);
1903
+ return typeof g == "string" ? g : U.transform(A + B * g);
1904
1904
  }
1905
1905
  function ft(g, A, B) {
1906
1906
  const M = QM(A, g.x, g.width), D = QM(B, g.y, g.height);
@@ -1970,12 +1970,12 @@ function HD(g, A, B, M) {
1970
1970
  for (const D in A.attrs)
1971
1971
  g.setAttribute(jD.has(D) ? D : mB(D), A.attrs[D]);
1972
1972
  }
1973
- const Vg = {};
1973
+ const Zg = {};
1974
1974
  function kt(g) {
1975
- Object.assign(Vg, g);
1975
+ Object.assign(Zg, g);
1976
1976
  }
1977
1977
  function SD(g, { layout: A, layoutId: B }) {
1978
- return dA.has(g) || g.startsWith("origin") || (A || B !== void 0) && (!!Vg[g] || g === "opacity");
1978
+ return dA.has(g) || g.startsWith("origin") || (A || B !== void 0) && (!!Zg[g] || g === "opacity");
1979
1979
  }
1980
1980
  function pB(g, A, B) {
1981
1981
  var M;
@@ -2046,7 +2046,7 @@ function XD(g, A, B) {
2046
2046
  !H(A[M]) && !SD(M, B) && (g[M] = A[M]);
2047
2047
  }
2048
2048
  function Rt({ transformTemplate: g }, A) {
2049
- return Rg(() => {
2049
+ return Kg(() => {
2050
2050
  const B = KB();
2051
2051
  return qB(B, A, g), Object.assign({}, B.vars, B.style);
2052
2052
  }, [A]);
@@ -2060,7 +2060,7 @@ function ht(g, A) {
2060
2060
  return g.drag && g.dragListener !== !1 && (B.draggable = !1, M.userSelect = M.WebkitUserSelect = M.WebkitTouchCallout = "none", M.touchAction = g.drag === !0 ? "none" : `pan-${g.drag === "x" ? "y" : "x"}`), g.tabIndex === void 0 && (g.onTap || g.onTapStart || g.whileTap) && (B.tabIndex = 0), B.style = M, B;
2061
2061
  }
2062
2062
  function Jt(g, A, B, M) {
2063
- const D = Rg(() => {
2063
+ const D = Kg(() => {
2064
2064
  const e = OD();
2065
2065
  return dB(e, A, RB(M), g.transformTemplate), {
2066
2066
  ...e.attrs,
@@ -2075,7 +2075,7 @@ function Jt(g, A, B, M) {
2075
2075
  }
2076
2076
  function zt(g = !1) {
2077
2077
  return (B, M, D, { latestValues: e }, w) => {
2078
- const t = (ZB(B) ? Jt : ht)(M, e, w, B), C = $e(M, typeof B == "string", g), i = B !== cD ? { ...C, ...t, ref: D } : {}, { children: s } = M, o = Rg(() => H(s) ? s.get() : s, [s]);
2078
+ const t = (ZB(B) ? Jt : ht)(M, e, w, B), C = $e(M, typeof B == "string", g), i = B !== cD ? { ...C, ...t, ref: D } : {}, { children: s } = M, o = Kg(() => H(s) ? s.get() : s, [s]);
2079
2079
  return ee(B, {
2080
2080
  ...i,
2081
2081
  children: o
@@ -2105,7 +2105,7 @@ function ND(g, A) {
2105
2105
  return !1;
2106
2106
  return !0;
2107
2107
  }
2108
- function vg(g, A, B) {
2108
+ function zg(g, A, B) {
2109
2109
  const M = g.getProps();
2110
2110
  return VB(M, A, B !== void 0 ? B : M.custom, g);
2111
2111
  }
@@ -2213,7 +2213,7 @@ function bt(g, A) {
2213
2213
  return (M = Ot[A]) !== null && M !== void 0 ? M : B();
2214
2214
  };
2215
2215
  }
2216
- const fg = /* @__PURE__ */ bt(() => {
2216
+ const Vg = /* @__PURE__ */ bt(() => {
2217
2217
  try {
2218
2218
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
2219
2219
  } catch {
@@ -2228,7 +2228,7 @@ const fg = /* @__PURE__ */ bt(() => {
2228
2228
  return `linear(${M.substring(0, M.length - 2)})`;
2229
2229
  };
2230
2230
  function $D(g) {
2231
- return !!(typeof g == "function" && fg() || !g || typeof g == "string" && (g in BB || fg()) || zB(g) || Array.isArray(g) && g.every($D));
2231
+ return !!(typeof g == "function" && Vg() || !g || typeof g == "string" && (g in BB || Vg()) || zB(g) || Array.isArray(g) && g.every($D));
2232
2232
  }
2233
2233
  const WA = ([g, A, B, M]) => `cubic-bezier(${g}, ${A}, ${B}, ${M})`, BB = {
2234
2234
  linear: "linear",
@@ -2243,7 +2243,7 @@ const WA = ([g, A, B, M]) => `cubic-bezier(${g}, ${A}, ${B}, ${M})`, BB = {
2243
2243
  };
2244
2244
  function _D(g, A) {
2245
2245
  if (g)
2246
- return typeof g == "function" && fg() ? WD(g, A) : zB(g) ? WA(g) : Array.isArray(g) ? g.map((B) => _D(B, A) || BB.easeOut) : BB[g];
2246
+ return typeof g == "function" && Vg() ? WD(g, A) : zB(g) ? WA(g) : Array.isArray(g) ? g.map((B) => _D(B, A) || BB.easeOut) : BB[g];
2247
2247
  }
2248
2248
  const MA = {
2249
2249
  x: !1,
@@ -2306,7 +2306,7 @@ function oM(g) {
2306
2306
  A.key === "Enter" && g(A);
2307
2307
  };
2308
2308
  }
2309
- function bg(g, A) {
2309
+ function Og(g, A) {
2310
2310
  g.dispatchEvent(new PointerEvent("pointer" + A, { isPrimary: !0, bubbles: !0 }));
2311
2311
  }
2312
2312
  const Xt = (g, A) => {
@@ -2316,10 +2316,10 @@ const Xt = (g, A) => {
2316
2316
  const M = oM(() => {
2317
2317
  if ($A.has(B))
2318
2318
  return;
2319
- bg(B, "down");
2319
+ Og(B, "down");
2320
2320
  const D = oM(() => {
2321
- bg(B, "up");
2322
- }), e = () => bg(B, "cancel");
2321
+ Og(B, "up");
2322
+ }), e = () => Og(B, "cancel");
2323
2323
  B.addEventListener("keyup", D, A), B.addEventListener("blur", e, A);
2324
2324
  });
2325
2325
  B.addEventListener("keydown", M, A), B.addEventListener("blur", () => B.removeEventListener("keydown", M), A);
@@ -2362,14 +2362,14 @@ const Mw = /* @__PURE__ */ new Set([
2362
2362
  "bottom",
2363
2363
  ...HA
2364
2364
  ]);
2365
- let Yg;
2365
+ let cg;
2366
2366
  function Wt() {
2367
- Yg = void 0;
2367
+ cg = void 0;
2368
2368
  }
2369
2369
  const iA = {
2370
- now: () => (Yg === void 0 && iA.set(L.isProcessing || Se.useManualTiming ? L.timestamp : performance.now()), Yg),
2370
+ now: () => (cg === void 0 && iA.set(L.isProcessing || Se.useManualTiming ? L.timestamp : performance.now()), cg),
2371
2371
  set: (g) => {
2372
- Yg = g, queueMicrotask(Wt);
2372
+ cg = g, queueMicrotask(Wt);
2373
2373
  }
2374
2374
  };
2375
2375
  function PB(g, A) {
@@ -2470,7 +2470,7 @@ class _t {
2470
2470
  * @deprecated
2471
2471
  */
2472
2472
  onChange(A) {
2473
- return process.env.NODE_ENV !== "production" && pg(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", A);
2473
+ return process.env.NODE_ENV !== "production" && Rg(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", A);
2474
2474
  }
2475
2475
  on(A, B) {
2476
2476
  this.events[A] || (this.events[A] = new FB());
@@ -2609,7 +2609,7 @@ function AQ(g, A, B) {
2609
2609
  g.hasValue(A) ? g.getValue(A).set(B) : g.addValue(A, tg(B));
2610
2610
  }
2611
2611
  function gQ(g, A) {
2612
- const B = vg(g, A);
2612
+ const B = zg(g, A);
2613
2613
  let { transitionEnd: M = {}, transition: D = {}, ...e } = B || {};
2614
2614
  e = { ...e, ...M };
2615
2615
  for (const w in e) {
@@ -2660,13 +2660,13 @@ const QQ = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
2660
2660
  [B]: parseFloat(w),
2661
2661
  alpha: Q !== void 0 ? parseFloat(Q) : 1
2662
2662
  };
2663
- }, CQ = (g) => EA(0, 255, g), jg = {
2663
+ }, CQ = (g) => EA(0, 255, g), bg = {
2664
2664
  ...SA,
2665
2665
  transform: (g) => Math.round(CQ(g))
2666
2666
  }, kA = {
2667
2667
  test: /* @__PURE__ */ HB("rgb", "red"),
2668
2668
  parse: /* @__PURE__ */ Ew("red", "green", "blue"),
2669
- transform: ({ red: g, green: A, blue: B, alpha: M = 1 }) => "rgba(" + jg.transform(g) + ", " + jg.transform(A) + ", " + jg.transform(B) + ", " + gg(eg.transform(M)) + ")"
2669
+ transform: ({ red: g, green: A, blue: B, alpha: M = 1 }) => "rgba(" + bg.transform(g) + ", " + bg.transform(A) + ", " + bg.transform(B) + ", " + gg(eg.transform(M)) + ")"
2670
2670
  };
2671
2671
  function iQ(g) {
2672
2672
  let A = "", B = "", M = "", D = "";
@@ -2780,7 +2780,7 @@ function uQ(g, A, B) {
2780
2780
  for (const e of A)
2781
2781
  g[e] = cw(B, D);
2782
2782
  }
2783
- const lM = (g) => g === SA || g === m, rM = (g, A) => parseFloat(g.split(", ")[A]), GM = (g, A) => (B, { transform: M }) => {
2783
+ const lM = (g) => g === SA || g === U, rM = (g, A) => parseFloat(g.split(", ")[A]), GM = (g, A) => (B, { transform: M }) => {
2784
2784
  if (M === "none" || !M)
2785
2785
  return 0;
2786
2786
  const D = M.match(/^matrix3d\((.+)\)$/u);
@@ -2909,7 +2909,7 @@ function mw(g, A, B = 1) {
2909
2909
  const Uw = (g) => (A) => A.test(g), dQ = {
2910
2910
  test: (g) => g === "auto",
2911
2911
  parse: (g) => g
2912
- }, Zw = [SA, m, CA, GA, at, Gt, dQ], aM = (g) => Zw.find(Uw(g));
2912
+ }, Zw = [SA, U, CA, GA, at, Gt, dQ], aM = (g) => Zw.find(Uw(g));
2913
2913
  class Vw extends TB {
2914
2914
  constructor(A, B, M, D, e) {
2915
2915
  super(A, B, M, D, e, !0);
@@ -2986,7 +2986,7 @@ function RQ(g, A, B, M) {
2986
2986
  return jA(w === Q, `You are trying to animate ${A} from "${D}" to "${e}". ${D} is not an animatable value - to enable this animation set ${D} to a value animatable to ${e} via the \`style\` property.`), !w || !Q ? !1 : KQ(g) || (B === "spring" || JB(B)) && M;
2987
2987
  }
2988
2988
  const pQ = (g) => g !== null;
2989
- function Pg(g, { repeat: A, repeatType: B = "loop" }, M) {
2989
+ function vg(g, { repeat: A, repeatType: B = "loop" }, M) {
2990
2990
  const D = g.filter(pQ), e = A && B !== "loop" && A % 2 === 1 ? 0 : D.length - 1;
2991
2991
  return !e || M === void 0 ? D[e] : M;
2992
2992
  }
@@ -3036,7 +3036,7 @@ class fw {
3036
3036
  if (w)
3037
3037
  this.options.duration = 0;
3038
3038
  else {
3039
- t && t(Pg(A, this.options, B)), Q && Q(), this.resolveFinishedPromise();
3039
+ t && t(vg(A, this.options, B)), Q && Q(), this.resolveFinishedPromise();
3040
3040
  return;
3041
3041
  }
3042
3042
  const i = this.initPlayback(A, B);
@@ -3066,7 +3066,7 @@ class fw {
3066
3066
  }
3067
3067
  }
3068
3068
  const h = (g, A, B) => g + (A - g) * B;
3069
- function Hg(g, A, B) {
3069
+ function jg(g, A, B) {
3070
3070
  return B < 0 && (B += 1), B > 1 && (B -= 1), B < 1 / 6 ? g + (A - g) * 6 * B : B < 1 / 2 ? A : B < 2 / 3 ? g + (A - g) * (2 / 3 - B) * 6 : g;
3071
3071
  }
3072
3072
  function JQ({ hue: g, saturation: A, lightness: B, alpha: M }) {
@@ -3076,7 +3076,7 @@ function JQ({ hue: g, saturation: A, lightness: B, alpha: M }) {
3076
3076
  D = e = w = B;
3077
3077
  else {
3078
3078
  const Q = B < 0.5 ? B * (1 + A) : B + A - B * A, t = 2 * B - Q;
3079
- D = Hg(t, Q, g + 1 / 3), e = Hg(t, Q, g), w = Hg(t, Q, g - 1 / 3);
3079
+ D = jg(t, Q, g + 1 / 3), e = jg(t, Q, g), w = jg(t, Q, g - 1 / 3);
3080
3080
  }
3081
3081
  return {
3082
3082
  red: Math.round(D * 255),
@@ -3085,10 +3085,10 @@ function JQ({ hue: g, saturation: A, lightness: B, alpha: M }) {
3085
3085
  alpha: M
3086
3086
  };
3087
3087
  }
3088
- function kg(g, A) {
3088
+ function fg(g, A) {
3089
3089
  return (B) => B > 0 ? A : g;
3090
3090
  }
3091
- const Sg = (g, A, B) => {
3091
+ const Hg = (g, A, B) => {
3092
3092
  const M = g * g, D = B * (A * A - M) + M;
3093
3093
  return D < 0 ? 0 : Math.sqrt(D);
3094
3094
  }, zQ = [DB, kA, pA], vQ = (g) => zQ.find((A) => A.test(g));
@@ -3102,9 +3102,9 @@ function YM(g) {
3102
3102
  const yM = (g, A) => {
3103
3103
  const B = YM(g), M = YM(A);
3104
3104
  if (!B || !M)
3105
- return kg(g, A);
3105
+ return fg(g, A);
3106
3106
  const D = { ...B };
3107
- return (e) => (D.red = Sg(B.red, M.red, e), D.green = Sg(B.green, M.green, e), D.blue = Sg(B.blue, M.blue, e), D.alpha = h(B.alpha, M.alpha, e), kA.transform(D));
3107
+ return (e) => (D.red = Hg(B.red, M.red, e), D.green = Hg(B.green, M.green, e), D.blue = Hg(B.blue, M.blue, e), D.alpha = h(B.alpha, M.alpha, e), kA.transform(D));
3108
3108
  }, PQ = (g, A) => (B) => A(g(B)), og = (...g) => g.reduce(PQ), QB = /* @__PURE__ */ new Set(["none", "hidden"]);
3109
3109
  function LQ(g, A) {
3110
3110
  return QB.has(g) ? (B) => B <= 0 ? g : A : (B) => B >= 1 ? A : g;
@@ -3113,7 +3113,7 @@ function FQ(g, A) {
3113
3113
  return (B) => h(g, A, B);
3114
3114
  }
3115
3115
  function XB(g) {
3116
- return typeof g == "number" ? FQ : typeof g == "string" ? fB(g) ? kg : j.test(g) ? yM : jQ : Array.isArray(g) ? kw : typeof g == "object" ? j.test(g) ? yM : OQ : kg;
3116
+ return typeof g == "number" ? FQ : typeof g == "string" ? fB(g) ? fg : j.test(g) ? yM : jQ : Array.isArray(g) ? kw : typeof g == "object" ? j.test(g) ? yM : OQ : fg;
3117
3117
  }
3118
3118
  function kw(g, A) {
3119
3119
  const B = [...g], M = B.length, D = g.map((e, w) => XB(e)(e, A[w]));
@@ -3144,7 +3144,7 @@ function bQ(g, A) {
3144
3144
  }
3145
3145
  const jQ = (g, A) => {
3146
3146
  const B = YA.createTransformer(A), M = Qg(g), D = Qg(A);
3147
- return M.indexes.var.length === D.indexes.var.length && M.indexes.color.length === D.indexes.color.length && M.indexes.number.length >= D.indexes.number.length ? QB.has(g) && !D.values.length || QB.has(A) && !M.values.length ? LQ(g, A) : og(kw(bQ(M, D), D.values), B) : (jA(!0, `Complex values '${g}' and '${A}' 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.`), kg(g, A));
3147
+ return M.indexes.var.length === D.indexes.var.length && M.indexes.color.length === D.indexes.color.length && M.indexes.number.length >= D.indexes.number.length ? QB.has(g) && !D.values.length || QB.has(A) && !M.values.length ? LQ(g, A) : og(kw(bQ(M, D), D.values), B) : (jA(!0, `Complex values '${g}' and '${A}' 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.`), fg(g, A));
3148
3148
  };
3149
3149
  function qw(g, A, B) {
3150
3150
  return typeof g == "number" && typeof A == "number" && typeof B == "number" ? h(g, A, B) : XB(g)(g, A);
@@ -3282,11 +3282,11 @@ function Kw(g = p.visualDuration, A = p.bounce) {
3282
3282
  else {
3283
3283
  const y = r * Math.sqrt(l * l - 1);
3284
3284
  c = (u) => {
3285
- const q = Math.exp(-l * r * u), U = Math.min(y * u, 300);
3286
- return w - q * ((E + l * r * G) * Math.sinh(U) + y * G * Math.cosh(U)) / y;
3285
+ const q = Math.exp(-l * r * u), V = Math.min(y * u, 300);
3286
+ return w - q * ((E + l * r * G) * Math.sinh(V) + y * G * Math.cosh(V)) / y;
3287
3287
  };
3288
3288
  }
3289
- const V = {
3289
+ const m = {
3290
3290
  calculatedDuration: n && s || null,
3291
3291
  next: (y) => {
3292
3292
  const u = c(y);
@@ -3295,35 +3295,35 @@ function Kw(g = p.visualDuration, A = p.bounce) {
3295
3295
  else {
3296
3296
  let q = 0;
3297
3297
  l < 1 && (q = y === 0 ? /* @__PURE__ */ QA(E) : dw(c, y, u));
3298
- const U = Math.abs(q) <= M, K = Math.abs(w - u) <= D;
3299
- Q.done = U && K;
3298
+ const V = Math.abs(q) <= M, K = Math.abs(w - u) <= D;
3299
+ Q.done = V && K;
3300
3300
  }
3301
3301
  return Q.value = Q.done ? w : u, Q;
3302
3302
  },
3303
3303
  toString: () => {
3304
- const y = Math.min(xD(V), gB), u = WD((q) => V.next(y * q).value, y, 30);
3304
+ const y = Math.min(xD(m), gB), u = WD((q) => m.next(y * q).value, y, 30);
3305
3305
  return y + "ms " + u;
3306
3306
  }
3307
3307
  };
3308
- return V;
3308
+ return m;
3309
3309
  }
3310
3310
  function UM({ keyframes: g, velocity: A = 0, power: B = 0.8, timeConstant: M = 325, bounceDamping: D = 10, bounceStiffness: e = 500, modifyTarget: w, min: Q, max: t, restDelta: C = 0.5, restSpeed: i }) {
3311
3311
  const s = g[0], o = {
3312
3312
  done: !1,
3313
3313
  value: s
3314
- }, n = (U) => Q !== void 0 && U < Q || t !== void 0 && U > t, E = (U) => Q === void 0 ? t : t === void 0 || Math.abs(Q - U) < Math.abs(t - U) ? Q : t;
3314
+ }, n = (V) => Q !== void 0 && V < Q || t !== void 0 && V > t, E = (V) => Q === void 0 ? t : t === void 0 || Math.abs(Q - V) < Math.abs(t - V) ? Q : t;
3315
3315
  let l = B * A;
3316
3316
  const G = s + l, r = w === void 0 ? G : w(G);
3317
3317
  r !== G && (l = r - s);
3318
- const a = (U) => -l * Math.exp(-U / M), c = (U) => r + a(U), V = (U) => {
3319
- const K = a(U), P = c(U);
3318
+ const a = (V) => -l * Math.exp(-V / M), c = (V) => r + a(V), m = (V) => {
3319
+ const K = a(V), P = c(V);
3320
3320
  o.done = Math.abs(K) <= C, o.value = o.done ? r : P;
3321
3321
  };
3322
3322
  let y, u;
3323
- const q = (U) => {
3324
- n(o.value) && (y = U, u = Kw({
3323
+ const q = (V) => {
3324
+ n(o.value) && (y = V, u = Kw({
3325
3325
  keyframes: [o.value, E(o.value)],
3326
- velocity: dw(c, U, o.value),
3326
+ velocity: dw(c, V, o.value),
3327
3327
  // TODO: This should be passing * 1000
3328
3328
  damping: D,
3329
3329
  stiffness: e,
@@ -3333,9 +3333,9 @@ function UM({ keyframes: g, velocity: A = 0, power: B = 0.8, timeConstant: M = 3
3333
3333
  };
3334
3334
  return q(0), {
3335
3335
  calculatedDuration: null,
3336
- next: (U) => {
3336
+ next: (V) => {
3337
3337
  let K = !1;
3338
- return !u && y === void 0 && (K = !0, V(U), q(U)), y !== void 0 && U >= y ? u.next(U - y) : (!K && V(U), o);
3338
+ return !u && y === void 0 && (K = !0, m(V), q(V)), y !== void 0 && V >= y ? u.next(V - y) : (!K && m(V), o);
3339
3339
  }
3340
3340
  };
3341
3341
  }
@@ -3409,7 +3409,7 @@ function wC(g, A) {
3409
3409
  function eC(g, A) {
3410
3410
  return g.map(() => A || Rw).splice(0, g.length - 1);
3411
3411
  }
3412
- function qg({ duration: g = 300, keyframes: A, times: B, ease: M = "easeInOut" }) {
3412
+ function kg({ duration: g = 300, keyframes: A, times: B, ease: M = "easeInOut" }) {
3413
3413
  const D = AC(M) ? M.map(VM) : VM(M), e = {
3414
3414
  done: !1,
3415
3415
  value: A[0]
@@ -3440,8 +3440,8 @@ const tC = (g) => {
3440
3440
  }, QC = {
3441
3441
  decay: UM,
3442
3442
  inertia: UM,
3443
- tween: qg,
3444
- keyframes: qg,
3443
+ tween: kg,
3444
+ keyframes: kg,
3445
3445
  spring: Kw
3446
3446
  }, CC = (g) => g / 100;
3447
3447
  class NB extends fw {
@@ -3460,9 +3460,9 @@ class NB extends fw {
3460
3460
  super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
3461
3461
  }
3462
3462
  initPlayback(A) {
3463
- const { type: B = "keyframes", repeat: M = 0, repeatDelay: D = 0, repeatType: e, velocity: w = 0 } = this.options, Q = JB(B) ? B : QC[B] || qg;
3463
+ const { type: B = "keyframes", repeat: M = 0, repeatDelay: D = 0, repeatType: e, velocity: w = 0 } = this.options, Q = JB(B) ? B : QC[B] || kg;
3464
3464
  let t, C;
3465
- Q !== qg && typeof A[0] != "number" && (process.env.NODE_ENV !== "production" && aA(A.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${A}`), t = og(CC, qw(A[0], A[1])), A = [0, 100]);
3465
+ Q !== kg && typeof A[0] != "number" && (process.env.NODE_ENV !== "production" && aA(A.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${A}`), t = og(CC, qw(A[0], A[1])), A = [0, 100]);
3466
3466
  const i = Q({ ...this.options, keyframes: A });
3467
3467
  e === "mirror" && (C = Q({
3468
3468
  ...this.options,
@@ -3486,8 +3486,8 @@ class NB extends fw {
3486
3486
  tick(A, B = !1) {
3487
3487
  const { resolved: M } = this;
3488
3488
  if (!M) {
3489
- const { keyframes: U } = this.options;
3490
- return { done: !0, value: U[U.length - 1] };
3489
+ const { keyframes: V } = this.options;
3490
+ return { done: !0, value: V[V.length - 1] };
3491
3491
  }
3492
3492
  const { finalKeyframe: D, generator: e, mirroredGenerator: w, mapPercentToKeyframes: Q, keyframes: t, calculatedDuration: C, totalDuration: i, resolvedDuration: s } = M;
3493
3493
  if (this.startTime === null)
@@ -3496,18 +3496,18 @@ class NB extends fw {
3496
3496
  this.speed > 0 ? this.startTime = Math.min(this.startTime, A) : this.speed < 0 && (this.startTime = Math.min(A - i / this.speed, this.startTime)), B ? this.currentTime = A : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(A - this.startTime) * this.speed;
3497
3497
  const r = this.currentTime - o * (this.speed >= 0 ? 1 : -1), a = this.speed >= 0 ? r < 0 : r > i;
3498
3498
  this.currentTime = Math.max(r, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
3499
- let c = this.currentTime, V = e;
3499
+ let c = this.currentTime, m = e;
3500
3500
  if (n) {
3501
- const U = Math.min(this.currentTime, i) / s;
3502
- let K = Math.floor(U), P = U % 1;
3503
- !P && U >= 1 && (P = 1), P === 1 && K--, K = Math.min(K, n + 1), !!(K % 2) && (E === "reverse" ? (P = 1 - P, l && (P -= l / s)) : E === "mirror" && (V = w)), c = EA(0, 1, P) * s;
3501
+ const V = Math.min(this.currentTime, i) / s;
3502
+ let K = Math.floor(V), P = V % 1;
3503
+ !P && V >= 1 && (P = 1), P === 1 && K--, K = Math.min(K, n + 1), !!(K % 2) && (E === "reverse" ? (P = 1 - P, l && (P -= l / s)) : E === "mirror" && (m = w)), c = EA(0, 1, P) * s;
3504
3504
  }
3505
- const y = a ? { done: !1, value: t[0] } : V.next(c);
3505
+ const y = a ? { done: !1, value: t[0] } : m.next(c);
3506
3506
  Q && (y.value = Q(y.value));
3507
3507
  let { done: u } = y;
3508
3508
  !a && C !== null && (u = this.speed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
3509
3509
  const q = this.holdTime === null && (this.state === "finished" || this.state === "running" && u);
3510
- return q && D !== void 0 && (y.value = Pg(t, this.options, D)), G && G(y.value), q && this.finish(), y;
3510
+ return q && D !== void 0 && (y.value = vg(t, this.options, D)), G && G(y.value), q && this.finish(), y;
3511
3511
  }
3512
3512
  get duration() {
3513
3513
  const { resolved: A } = this;
@@ -3589,7 +3589,7 @@ function sC(g, A, B, { delay: M = 0, duration: D = 300, repeat: e = 0, repeatTyp
3589
3589
  direction: w === "reverse" ? "alternate" : "normal"
3590
3590
  });
3591
3591
  }
3592
- const oC = /* @__PURE__ */ YB(() => Object.hasOwnProperty.call(Element.prototype, "animate")), dg = 10, IC = 2e4;
3592
+ const oC = /* @__PURE__ */ YB(() => Object.hasOwnProperty.call(Element.prototype, "animate")), qg = 10, IC = 2e4;
3593
3593
  function nC(g) {
3594
3594
  return JB(g.type) || g.type === "spring" || !$D(g.ease);
3595
3595
  }
@@ -3605,11 +3605,11 @@ function EC(g, A) {
3605
3605
  const D = [];
3606
3606
  let e = 0;
3607
3607
  for (; !M.done && e < IC; )
3608
- M = B.sample(e), D.push(M.value), e += dg;
3608
+ M = B.sample(e), D.push(M.value), e += qg;
3609
3609
  return {
3610
3610
  times: void 0,
3611
3611
  keyframes: D,
3612
- duration: e - dg,
3612
+ duration: e - qg,
3613
3613
  ease: "linear"
3614
3614
  };
3615
3615
  }
@@ -3631,14 +3631,14 @@ class fM extends fw {
3631
3631
  let { duration: M = 300, times: D, ease: e, type: w, motionValue: Q, name: t, startTime: C } = this.options;
3632
3632
  if (!Q.owner || !Q.owner.current)
3633
3633
  return !1;
3634
- if (typeof e == "string" && fg() && lC(e) && (e = pw[e]), nC(this.options)) {
3634
+ if (typeof e == "string" && Vg() && lC(e) && (e = pw[e]), nC(this.options)) {
3635
3635
  const { onComplete: s, onUpdate: o, motionValue: n, element: E, ...l } = this.options, G = EC(A, l);
3636
3636
  A = G.keyframes, A.length === 1 && (A[1] = A[0]), M = G.duration, D = G.times, e = G.ease, w = "keyframes";
3637
3637
  }
3638
3638
  const i = sC(Q.owner.current, t, A, { ...this.options, duration: M, times: D, ease: e });
3639
3639
  return i.startTime = C ?? this.calcStartTime(), this.pendingTimeline ? (iM(i, this.pendingTimeline), this.pendingTimeline = void 0) : i.onfinish = () => {
3640
3640
  const { onComplete: s } = this.options;
3641
- Q.set(Pg(A, this.options, B)), s && s(), this.cancel(), this.resolveFinishedPromise();
3641
+ Q.set(vg(A, this.options, B)), s && s(), this.cancel(), this.resolveFinishedPromise();
3642
3642
  }, {
3643
3643
  animation: i,
3644
3644
  duration: M,
@@ -3749,7 +3749,7 @@ class fM extends fw {
3749
3749
  times: Q,
3750
3750
  isGenerator: !0
3751
3751
  }), l = /* @__PURE__ */ QA(this.time);
3752
- C.setWithVelocity(E.sample(l - dg).value, E.sample(l).value, dg);
3752
+ C.setWithVelocity(E.sample(l - qg).value, E.sample(l).value, qg);
3753
3753
  }
3754
3754
  const { onStop: t } = this.options;
3755
3755
  t && t(), this.cancel();
@@ -3821,7 +3821,7 @@ const xB = (g, A, B, M = {}, D, e) => (w) => {
3821
3821
  }), i.duration && (i.duration = /* @__PURE__ */ QA(i.duration)), i.repeatDelay && (i.repeatDelay = /* @__PURE__ */ QA(i.repeatDelay)), i.from !== void 0 && (i.keyframes[0] = i.from);
3822
3822
  let s = !1;
3823
3823
  if ((i.type === !1 || i.duration === 0 && !i.repeatDelay) && (i.duration = 0, i.delay === 0 && (s = !0)), s && !e && A.get() !== void 0) {
3824
- const o = Pg(i.keyframes, Q);
3824
+ const o = vg(i.keyframes, Q);
3825
3825
  if (o !== void 0)
3826
3826
  return d.update(() => {
3827
3827
  i.onUpdate(o), i.onComplete();
@@ -3866,7 +3866,7 @@ function hw(g, A, { delay: B = 0, transitionOverride: M, type: D } = {}) {
3866
3866
  }
3867
3867
  function iB(g, A, B = {}) {
3868
3868
  var M;
3869
- const D = vg(g, A, B.type === "exit" ? (M = g.presenceContext) === null || M === void 0 ? void 0 : M.custom : void 0);
3869
+ const D = zg(g, A, B.type === "exit" ? (M = g.presenceContext) === null || M === void 0 ? void 0 : M.custom : void 0);
3870
3870
  let { transition: e = g.getDefaultTransition() || {} } = D || {};
3871
3871
  B.transitionOverride && (e = B.transitionOverride);
3872
3872
  const w = D ? () => Promise.all(hw(g, D, B)) : () => Promise.resolve(), Q = g.variantChildren && g.variantChildren.size ? (C = 0) => {
@@ -3900,7 +3900,7 @@ function ZC(g, A, B = {}) {
3900
3900
  } else if (typeof A == "string")
3901
3901
  M = iB(g, A, B);
3902
3902
  else {
3903
- const D = typeof A == "function" ? vg(g, A, B.custom) : A;
3903
+ const D = typeof A == "function" ? zg(g, A, B.custom) : A;
3904
3904
  M = Promise.all(hw(g, D, B));
3905
3905
  }
3906
3906
  return M.then(() => {
@@ -3930,7 +3930,7 @@ function dC(g) {
3930
3930
  let A = qC(g), B = kM(), M = !0;
3931
3931
  const D = (t) => (C, i) => {
3932
3932
  var s;
3933
- const o = vg(g, i, t === "exit" ? (s = g.presenceContext) === null || s === void 0 ? void 0 : s.custom : void 0);
3933
+ const o = zg(g, i, t === "exit" ? (s = g.presenceContext) === null || s === void 0 ? void 0 : s.custom : void 0);
3934
3934
  if (o) {
3935
3935
  const { transition: n, transitionEnd: E, ...l } = o;
3936
3936
  C = { ...C, ...l, ...E };
@@ -3944,18 +3944,18 @@ function dC(g) {
3944
3944
  const { props: C } = g, i = Jw(g.parent) || {}, s = [], o = /* @__PURE__ */ new Set();
3945
3945
  let n = {}, E = 1 / 0;
3946
3946
  for (let G = 0; G < kC; G++) {
3947
- const r = fC[G], a = B[r], c = C[r] !== void 0 ? C[r] : i[r], V = wg(c), y = r === t ? a.isActive : null;
3947
+ const r = fC[G], a = B[r], c = C[r] !== void 0 ? C[r] : i[r], m = wg(c), y = r === t ? a.isActive : null;
3948
3948
  y === !1 && (E = G);
3949
- let u = c === i[r] && c !== C[r] && V;
3949
+ let u = c === i[r] && c !== C[r] && m;
3950
3950
  if (u && M && g.manuallyAnimateOnMount && (u = !1), a.protectedKeys = { ...n }, // If it isn't active and hasn't *just* been set as inactive
3951
3951
  !a.isActive && y === null || // If we didn't and don't have any defined prop for this animation type
3952
3952
  !c && !a.prevProp || // Or if the prop doesn't define an animation
3953
- Jg(c) || typeof c == "boolean")
3953
+ hg(c) || typeof c == "boolean")
3954
3954
  continue;
3955
3955
  const q = KC(a.prevProp, c);
3956
- let U = q || // If we're making this variant active, we want to always make it active
3957
- r === t && a.isActive && !u && V || // If we removed a higher-priority variant (i is in reverse order)
3958
- G > E && V, K = !1;
3956
+ let V = q || // If we're making this variant active, we want to always make it active
3957
+ r === t && a.isActive && !u && m || // If we removed a higher-priority variant (i is in reverse order)
3958
+ G > E && m, K = !1;
3959
3959
  const P = Array.isArray(c) ? c : [c];
3960
3960
  let gA = P.reduce(D(r), {});
3961
3961
  y === !1 && (gA = {});
@@ -3963,7 +3963,7 @@ function dC(g) {
3963
3963
  ...mA,
3964
3964
  ...gA
3965
3965
  }, lA = (z) => {
3966
- U = !0, o.has(z) && (K = !0, o.delete(z)), a.needsAnimating[z] = !0;
3966
+ V = !0, o.has(z) && (K = !0, o.delete(z)), a.needsAnimating[z] = !0;
3967
3967
  const x = g.getValue(z);
3968
3968
  x && (x.liveStyle = !1);
3969
3969
  };
@@ -3974,7 +3974,7 @@ function dC(g) {
3974
3974
  let sA = !1;
3975
3975
  AB(x) && AB(rA) ? sA = !ND(x, rA) : sA = x !== rA, sA ? x != null ? lA(z) : o.add(z) : x !== void 0 && o.has(z) ? lA(z) : a.protectedKeys[z] = !0;
3976
3976
  }
3977
- a.prevProp = c, a.prevResolvedValues = gA, a.isActive && (n = { ...n, ...gA }), M && g.blockInitialAnimation && (U = !1), U && (!(u && q) || K) && s.push(...P.map((z) => ({
3977
+ a.prevProp = c, a.prevResolvedValues = gA, a.isActive && (n = { ...n, ...gA }), M && g.blockInitialAnimation && (V = !1), V && (!(u && q) || K) && s.push(...P.map((z) => ({
3978
3978
  animation: z,
3979
3979
  options: { type: r }
3980
3980
  })));
@@ -4052,7 +4052,7 @@ class RC extends uA {
4052
4052
  }
4053
4053
  updateAnimationControlsSubscription() {
4054
4054
  const { animate: A } = this.node.getProps();
4055
- Jg(A) && (this.unmountControls = A.subscribe(this.node));
4055
+ hg(A) && (this.unmountControls = A.subscribe(this.node));
4056
4056
  }
4057
4057
  /**
4058
4058
  * Subscribe any provided AnimationControls to the component's VisualElement
@@ -4123,7 +4123,7 @@ class zw {
4123
4123
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
4124
4124
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
4125
4125
  return;
4126
- const s = Xg(this.lastMoveEventInfo, this.history), o = this.startEvent !== null, n = vC(s.offset, { x: 0, y: 0 }) >= 3;
4126
+ const s = Tg(this.lastMoveEventInfo, this.history), o = this.startEvent !== null, n = vC(s.offset, { x: 0, y: 0 }) >= 3;
4127
4127
  if (!o && !n)
4128
4128
  return;
4129
4129
  const { point: E } = s, { timestamp: l } = L;
@@ -4131,21 +4131,21 @@ class zw {
4131
4131
  const { onStart: G, onMove: r } = this.handlers;
4132
4132
  o || (G && G(this.lastMoveEvent, s), this.startEvent = this.lastMoveEvent), r && r(this.lastMoveEvent, s);
4133
4133
  }, this.handlePointerMove = (s, o) => {
4134
- this.lastMoveEvent = s, this.lastMoveEventInfo = Tg(o, this.transformPagePoint), d.update(this.updatePoint, !0);
4134
+ this.lastMoveEvent = s, this.lastMoveEventInfo = Sg(o, this.transformPagePoint), d.update(this.updatePoint, !0);
4135
4135
  }, this.handlePointerUp = (s, o) => {
4136
4136
  this.end();
4137
4137
  const { onEnd: n, onSessionEnd: E, resumeAnimation: l } = this.handlers;
4138
4138
  if (this.dragSnapToOrigin && l && l(), !(this.lastMoveEvent && this.lastMoveEventInfo))
4139
4139
  return;
4140
- const G = Xg(s.type === "pointercancel" ? this.lastMoveEventInfo : Tg(o, this.transformPagePoint), this.history);
4140
+ const G = Tg(s.type === "pointercancel" ? this.lastMoveEventInfo : Sg(o, this.transformPagePoint), this.history);
4141
4141
  this.startEvent && n && n(s, G), E && E(s, G);
4142
4142
  }, !vB(A))
4143
4143
  return;
4144
4144
  this.dragSnapToOrigin = e, this.handlers = B, this.transformPagePoint = M, this.contextWindow = D || window;
4145
- const w = Ig(A), Q = Tg(w, this.transformPagePoint), { point: t } = Q, { timestamp: C } = L;
4145
+ const w = Ig(A), Q = Sg(w, this.transformPagePoint), { point: t } = Q, { timestamp: C } = L;
4146
4146
  this.history = [{ ...t, timestamp: C }];
4147
4147
  const { onSessionStart: i } = B;
4148
- i && i(A, Xg(Q, this.history)), this.removeListeners = og(Bg(this.contextWindow, "pointermove", this.handlePointerMove), Bg(this.contextWindow, "pointerup", this.handlePointerUp), Bg(this.contextWindow, "pointercancel", this.handlePointerUp));
4148
+ i && i(A, Tg(Q, this.history)), this.removeListeners = og(Bg(this.contextWindow, "pointermove", this.handlePointerMove), Bg(this.contextWindow, "pointerup", this.handlePointerUp), Bg(this.contextWindow, "pointercancel", this.handlePointerUp));
4149
4149
  }
4150
4150
  updateHandlers(A) {
4151
4151
  this.handlers = A;
@@ -4154,13 +4154,13 @@ class zw {
4154
4154
  this.removeListeners && this.removeListeners(), cA(this.updatePoint);
4155
4155
  }
4156
4156
  }
4157
- function Tg(g, A) {
4157
+ function Sg(g, A) {
4158
4158
  return A ? { point: A(g.point) } : g;
4159
4159
  }
4160
4160
  function dM(g, A) {
4161
4161
  return { x: g.x - A.x, y: g.y - A.y };
4162
4162
  }
4163
- function Xg({ point: g }, A) {
4163
+ function Tg({ point: g }, A) {
4164
4164
  return {
4165
4165
  point: g,
4166
4166
  delta: dM(g, vw(A)),
@@ -4302,11 +4302,11 @@ function Ai(g, A) {
4302
4302
  right: M.x
4303
4303
  };
4304
4304
  }
4305
- function Ng(g) {
4305
+ function Xg(g) {
4306
4306
  return g === void 0 || g === 1;
4307
4307
  }
4308
4308
  function oB({ scale: g, scaleX: A, scaleY: B }) {
4309
- return !Ng(g) || !Ng(A) || !Ng(B);
4309
+ return !Xg(g) || !Xg(A) || !Xg(B);
4310
4310
  }
4311
4311
  function VA(g) {
4312
4312
  return oB(g) || Ow(g) || g.z || g.rotate || g.rotateX || g.rotateY || g.skewX || g.skewY;
@@ -4317,12 +4317,12 @@ function Ow(g) {
4317
4317
  function FM(g) {
4318
4318
  return g && g !== "0%";
4319
4319
  }
4320
- function Kg(g, A, B) {
4320
+ function dg(g, A, B) {
4321
4321
  const M = g - B, D = A * M;
4322
4322
  return B + D;
4323
4323
  }
4324
4324
  function OM(g, A, B, M, D) {
4325
- return D !== void 0 && (g = Kg(g, D, M)), Kg(g, B, M) + A;
4325
+ return D !== void 0 && (g = dg(g, D, M)), dg(g, B, M) + A;
4326
4326
  }
4327
4327
  function IB(g, A = 0, B = 1, M, D) {
4328
4328
  g.min = OM(g.min, A, B, M, D), g.max = OM(g.max, A, B, M, D);
@@ -4643,7 +4643,7 @@ class ti extends uA {
4643
4643
  this.removePointerDownListener(), this.session && this.session.end();
4644
4644
  }
4645
4645
  }
4646
- const yg = {
4646
+ const Yg = {
4647
4647
  /**
4648
4648
  * Global flag as to whether the tree has animated since the last time
4649
4649
  * we resized the window
@@ -4663,7 +4663,7 @@ const xA = {
4663
4663
  if (!A.target)
4664
4664
  return g;
4665
4665
  if (typeof g == "string")
4666
- if (m.test(g))
4666
+ if (U.test(g))
4667
4667
  g = parseFloat(g);
4668
4668
  else
4669
4669
  return g;
@@ -4694,7 +4694,7 @@ class Ci extends te {
4694
4694
  }), e.setOptions({
4695
4695
  ...e.options,
4696
4696
  onExitComplete: () => this.safeToRemove()
4697
- })), yg.hasEverUpdated = !0;
4697
+ })), Yg.hasEverUpdated = !0;
4698
4698
  }
4699
4699
  getSnapshotBeforeUpdate(A) {
4700
4700
  const { layoutDependency: B, visualElement: M, drag: D, isPresent: e } = this.props, w = M.projection;
@@ -4770,7 +4770,7 @@ function Ei(g, A) {
4770
4770
  };
4771
4771
  return d.read(M, !0), () => cA(M);
4772
4772
  }
4773
- const Tw = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], li = Tw.length, XM = (g) => typeof g == "string" ? parseFloat(g) : g, NM = (g) => typeof g == "number" || m.test(g);
4773
+ const Tw = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], li = Tw.length, XM = (g) => typeof g == "string" ? parseFloat(g) : g, NM = (g) => typeof g == "number" || U.test(g);
4774
4774
  function ri(g, A, B, M, D, e) {
4775
4775
  D ? (g.opacity = h(
4776
4776
  0,
@@ -4804,7 +4804,7 @@ function $M(g, A) {
4804
4804
  g.translate = A.translate, g.scale = A.scale, g.originPoint = A.originPoint, g.origin = A.origin;
4805
4805
  }
4806
4806
  function _M(g, A, B, M, D) {
4807
- return g -= A, g = Kg(g, 1 / B, M), D !== void 0 && (g = Kg(g, 1 / D, M)), g;
4807
+ return g -= A, g = dg(g, 1 / B, M), D !== void 0 && (g = dg(g, 1 / D, M)), g;
4808
4808
  }
4809
4809
  function ci(g, A = 0, B = 1, M = 0.5, D, e = g, w = g) {
4810
4810
  if (CA.test(A) && (A = parseFloat(A), A = h(w.min, w.max, A / 100) - w.min), typeof A != "number")
@@ -4912,9 +4912,9 @@ const fA = {
4912
4912
  totalNodes: 0,
4913
4913
  resolvedTargetDeltas: 0,
4914
4914
  recalculatedProjection: 0
4915
- }, _A = typeof window < "u" && window.MotionDebug !== void 0, xg = ["", "X", "Y", "Z"], Zi = { visibility: "hidden" }, tD = 1e3;
4915
+ }, _A = typeof window < "u" && window.MotionDebug !== void 0, Ng = ["", "X", "Y", "Z"], Zi = { visibility: "hidden" }, tD = 1e3;
4916
4916
  let Vi = 0;
4917
- function Wg(g, A, B, M) {
4917
+ function xg(g, A, B, M) {
4918
4918
  const { latestValues: D } = A;
4919
4919
  D[g] && (B[g] = D[g], A.setStaticValue(g, 0), M && (M[g] = 0));
4920
4920
  }
@@ -4966,7 +4966,7 @@ function $w({ attachResizeListener: g, defaultParent: A, measureScroll: B, check
4966
4966
  let s;
4967
4967
  const o = () => this.root.updateBlockedByResize = !1;
4968
4968
  g(w, () => {
4969
- this.root.updateBlockedByResize = !0, s && s(), s = Ei(o, 250), yg.hasAnimatedSinceResize && (yg.hasAnimatedSinceResize = !1, this.nodes.forEach(CD));
4969
+ this.root.updateBlockedByResize = !0, s && s(), s = Ei(o, 250), Yg.hasAnimatedSinceResize && (Yg.hasAnimatedSinceResize = !1, this.nodes.forEach(CD));
4970
4970
  });
4971
4971
  }
4972
4972
  t && this.root.registerSharedNode(t, this), this.options.animate !== !1 && i && (t || C) && this.addEventListener("didUpdate", ({ delta: s, hasLayoutChanged: o, hasRelativeLayoutChanged: n, layout: E }) => {
@@ -4977,12 +4977,12 @@ function $w({ attachResizeListener: g, defaultParent: A, measureScroll: B, check
4977
4977
  const l = this.options.transition || i.getDefaultTransition() || Fi, { onLayoutAnimationStart: G, onLayoutAnimationComplete: r } = i.getProps(), a = !this.targetLayout || !xw(this.targetLayout, E), c = !o && n;
4978
4978
  if (this.options.layoutRoot || this.resumeFrom || c || o && (a || !this.currentAnimation)) {
4979
4979
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(s, c);
4980
- const V = {
4980
+ const m = {
4981
4981
  ...hB(l, "layout"),
4982
4982
  onPlay: G,
4983
4983
  onComplete: r
4984
4984
  };
4985
- (i.shouldReduceMotion || this.options.layoutRoot) && (V.delay = 0, V.type = !1), this.startAnimation(V);
4985
+ (i.shouldReduceMotion || this.options.layoutRoot) && (m.delay = 0, m.type = !1), this.startAnimation(m);
4986
4986
  } else
4987
4987
  o || CD(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4988
4988
  this.targetLayout = E;
@@ -5039,7 +5039,7 @@ function $w({ attachResizeListener: g, defaultParent: A, measureScroll: B, check
5039
5039
  }
5040
5040
  this.isUpdating || this.nodes.forEach(Ri), this.isUpdating = !1, this.nodes.forEach(pi), this.nodes.forEach(fi), this.nodes.forEach(ki), this.clearAllSnapshots();
5041
5041
  const Q = iA.now();
5042
- L.delta = EA(0, 1e3 / 60, Q - L.timestamp), L.timestamp = Q, L.isProcessing = !0, Og.update.process(L), Og.preRender.process(L), Og.render.process(L), L.isProcessing = !1;
5042
+ L.delta = EA(0, 1e3 / 60, Q - L.timestamp), L.timestamp = Q, L.isProcessing = !0, Fg.update.process(L), Fg.preRender.process(L), Fg.render.process(L), L.isProcessing = !1;
5043
5043
  }
5044
5044
  didUpdate() {
5045
5045
  this.updateScheduled || (this.updateScheduled = !0, UB.read(this.scheduleUpdate));
@@ -5238,14 +5238,14 @@ function $w({ attachResizeListener: g, defaultParent: A, measureScroll: B, check
5238
5238
  const o = v(), n = t ? t.source : void 0, E = this.layout ? this.layout.source : void 0, l = n !== E, G = this.getStack(), r = !G || G.members.length <= 1, a = !!(l && !r && this.options.crossfade === !0 && !this.path.some(Li));
5239
5239
  this.animationProgress = 0;
5240
5240
  let c;
5241
- this.mixTargetDelta = (V) => {
5242
- const y = V / 1e3;
5241
+ this.mixTargetDelta = (m) => {
5242
+ const y = m / 1e3;
5243
5243
  iD(s.x, w.x, y), iD(s.y, w.y, y), this.setTargetDelta(s), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Dg(o, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Pi(this.relativeTarget, this.relativeTargetOrigin, o, y), c && ui(this.relativeTarget, c) && (this.isProjectionDirty = !1), c || (c = v()), $(c, this.relativeTarget)), l && (this.animationValues = i, ri(i, C, this.latestValues, y, a, r)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = y;
5244
5244
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
5245
5245
  }
5246
5246
  startAnimation(w) {
5247
5247
  this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (cA(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = d.update(() => {
5248
- yg.hasAnimatedSinceResize = !0, this.currentAnimation = si(0, tD, {
5248
+ Yg.hasAnimatedSinceResize = !0, this.currentAnimation = si(0, tD, {
5249
5249
  ...w,
5250
5250
  onUpdate: (Q) => {
5251
5251
  this.mixTargetDelta(Q), w.onUpdate && w.onUpdate(Q);
@@ -5322,9 +5322,9 @@ function $w({ attachResizeListener: g, defaultParent: A, measureScroll: B, check
5322
5322
  if ((t.z || t.rotate || t.rotateX || t.rotateY || t.rotateZ || t.skewX || t.skewY) && (Q = !0), !Q)
5323
5323
  return;
5324
5324
  const C = {};
5325
- t.z && Wg("z", w, C, this.animationValues);
5326
- for (let i = 0; i < xg.length; i++)
5327
- Wg(`rotate${xg[i]}`, w, C, this.animationValues), Wg(`skew${xg[i]}`, w, C, this.animationValues);
5325
+ t.z && xg("z", w, C, this.animationValues);
5326
+ for (let i = 0; i < Ng.length; i++)
5327
+ xg(`rotate${Ng[i]}`, w, C, this.animationValues), xg(`skew${Ng[i]}`, w, C, this.animationValues);
5328
5328
  w.render();
5329
5329
  for (const i in C)
5330
5330
  w.setStaticValue(i, C[i]), this.animationValues && (this.animationValues[i] = C[i]);
@@ -5340,28 +5340,28 @@ function $w({ attachResizeListener: g, defaultParent: A, measureScroll: B, check
5340
5340
  visibility: ""
5341
5341
  }, i = this.getTransformTemplate();
5342
5342
  if (this.needsReset)
5343
- return this.needsReset = !1, C.opacity = "", C.pointerEvents = cg(w == null ? void 0 : w.pointerEvents) || "", C.transform = i ? i(this.latestValues, "") : "none", C;
5343
+ return this.needsReset = !1, C.opacity = "", C.pointerEvents = ag(w == null ? void 0 : w.pointerEvents) || "", C.transform = i ? i(this.latestValues, "") : "none", C;
5344
5344
  const s = this.getLead();
5345
5345
  if (!this.projectionDelta || !this.layout || !s.target) {
5346
5346
  const l = {};
5347
- return this.options.layoutId && (l.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, l.pointerEvents = cg(w == null ? void 0 : w.pointerEvents) || ""), this.hasProjected && !VA(this.latestValues) && (l.transform = i ? i({}, "") : "none", this.hasProjected = !1), l;
5347
+ return this.options.layoutId && (l.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, l.pointerEvents = ag(w == null ? void 0 : w.pointerEvents) || ""), this.hasProjected && !VA(this.latestValues) && (l.transform = i ? i({}, "") : "none", this.hasProjected = !1), l;
5348
5348
  }
5349
5349
  const o = s.animationValues || s.latestValues;
5350
5350
  this.applyTransformsToTarget(), C.transform = Ui(this.projectionDeltaWithTransform, this.treeScale, o), i && (C.transform = i(o, C.transform));
5351
5351
  const { x: n, y: E } = this.projectionDelta;
5352
5352
  C.transformOrigin = `${n.origin * 100}% ${E.origin * 100}% 0`, s.animationValues ? C.opacity = s === this ? (t = (Q = o.opacity) !== null && Q !== void 0 ? Q : this.latestValues.opacity) !== null && t !== void 0 ? t : 1 : this.preserveOpacity ? this.latestValues.opacity : o.opacityExit : C.opacity = s === this ? o.opacity !== void 0 ? o.opacity : "" : o.opacityExit !== void 0 ? o.opacityExit : 0;
5353
- for (const l in Vg) {
5353
+ for (const l in Zg) {
5354
5354
  if (o[l] === void 0)
5355
5355
  continue;
5356
- const { correct: G, applyTo: r } = Vg[l], a = C.transform === "none" ? o[l] : G(o[l], s);
5356
+ const { correct: G, applyTo: r } = Zg[l], a = C.transform === "none" ? o[l] : G(o[l], s);
5357
5357
  if (r) {
5358
5358
  const c = r.length;
5359
- for (let V = 0; V < c; V++)
5360
- C[r[V]] = a;
5359
+ for (let m = 0; m < c; m++)
5360
+ C[r[m]] = a;
5361
5361
  } else
5362
5362
  C[l] = a;
5363
5363
  }
5364
- return this.options.layoutId && (C.pointerEvents = s === this ? cg(w == null ? void 0 : w.pointerEvents) || "" : "none"), C;
5364
+ return this.options.layoutId && (C.pointerEvents = s === this ? ag(w == null ? void 0 : w.pointerEvents) || "" : "none"), C;
5365
5365
  }
5366
5366
  clearSnapshot() {
5367
5367
  this.resumeFrom = this.snapshot = void 0;
@@ -5492,7 +5492,7 @@ const ji = $w({
5492
5492
  y: document.documentElement.scrollTop || document.body.scrollTop
5493
5493
  }),
5494
5494
  checkIsScrollRoot: () => !0
5495
- }), $g = {
5495
+ }), Wg = {
5496
5496
  current: void 0
5497
5497
  }, Ae = $w({
5498
5498
  measureScroll: (g) => ({
@@ -5500,11 +5500,11 @@ const ji = $w({
5500
5500
  y: g.scrollTop
5501
5501
  }),
5502
5502
  defaultParent: () => {
5503
- if (!$g.current) {
5503
+ if (!Wg.current) {
5504
5504
  const g = new ji({});
5505
- g.mount(window), g.setOptions({ layoutScroll: !0 }), $g.current = g;
5505
+ g.mount(window), g.setOptions({ layoutScroll: !0 }), Wg.current = g;
5506
5506
  }
5507
- return $g.current;
5507
+ return Wg.current;
5508
5508
  },
5509
5509
  resetTransform: (g, A) => {
5510
5510
  g.style.transform = A !== void 0 ? A : "none";
@@ -5570,7 +5570,7 @@ class Xi extends uA {
5570
5570
  unmount() {
5571
5571
  }
5572
5572
  }
5573
- const nB = /* @__PURE__ */ new WeakMap(), _g = /* @__PURE__ */ new WeakMap(), Ni = (g) => {
5573
+ const nB = /* @__PURE__ */ new WeakMap(), $g = /* @__PURE__ */ new WeakMap(), Ni = (g) => {
5574
5574
  const A = nB.get(g.target);
5575
5575
  A && A(g);
5576
5576
  }, xi = (g) => {
@@ -5578,8 +5578,8 @@ const nB = /* @__PURE__ */ new WeakMap(), _g = /* @__PURE__ */ new WeakMap(), Ni
5578
5578
  };
5579
5579
  function Wi({ root: g, ...A }) {
5580
5580
  const B = g || document;
5581
- _g.has(B) || _g.set(B, {});
5582
- const M = _g.get(B), D = JSON.stringify(A);
5581
+ $g.has(B) || $g.set(B, {});
5582
+ const M = $g.get(B), D = JSON.stringify(A);
5583
5583
  return M[D] || (M[D] = new IntersectionObserver(xi, { root: g, ...A })), M[D];
5584
5584
  }
5585
5585
  function $i(g, A, B) {
@@ -5659,7 +5659,7 @@ function ts(g, A, B) {
5659
5659
  for (const M in A) {
5660
5660
  const D = A[M], e = B[M];
5661
5661
  if (H(D))
5662
- g.addValue(M, D), process.env.NODE_ENV === "development" && pg(D.version === "12.0.3", `Attempting to mix Motion versions ${D.version} with 12.0.3 may not work as expected.`);
5662
+ g.addValue(M, D), process.env.NODE_ENV === "development" && Rg(D.version === "12.0.3", `Attempting to mix Motion versions ${D.version} with 12.0.3 may not work as expected.`);
5663
5663
  else if (H(e))
5664
5664
  g.addValue(M, tg(D, { owner: g }));
5665
5665
  else if (e !== D)
@@ -5703,7 +5703,7 @@ class Qs {
5703
5703
  this.renderScheduledAt < n && (this.renderScheduledAt = n, d.render(this.render, !1, !0));
5704
5704
  };
5705
5705
  const { latestValues: t, renderState: C, onUpdate: i } = w;
5706
- this.onUpdate = i, this.latestValues = t, this.baseTarget = { ...t }, this.initialValues = B.initial ? { ...t } : {}, this.renderState = C, this.parent = A, this.props = B, this.presenceContext = M, this.depth = A ? A.depth + 1 : 0, this.reducedMotionConfig = D, this.options = Q, this.blockInitialAnimation = !!e, this.isControllingVariants = zg(B), this.isVariantNode = pD(B), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(A && A.current);
5706
+ this.onUpdate = i, this.latestValues = t, this.baseTarget = { ...t }, this.initialValues = B.initial ? { ...t } : {}, this.renderState = C, this.parent = A, this.props = B, this.presenceContext = M, this.depth = A ? A.depth + 1 : 0, this.reducedMotionConfig = D, this.options = Q, this.blockInitialAnimation = !!e, this.isControllingVariants = Jg(B), this.isVariantNode = pD(B), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(A && A.current);
5707
5707
  const { willChange: s, ...o } = this.scrapeMotionValuesFromProps(B, {}, this);
5708
5708
  for (const n in o) {
5709
5709
  const E = o[n];
@@ -5711,7 +5711,7 @@ class Qs {
5711
5711
  }
5712
5712
  }
5713
5713
  mount(A) {
5714
- this.current = A, rD.set(A, this), this.projection && !this.projection.instance && this.projection.mount(A), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((B, M) => this.bindToMotionValue(M, B)), ge.current || Ds(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : EB.current, process.env.NODE_ENV !== "production" && pg(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);
5714
+ this.current = A, rD.set(A, this), this.projection && !this.projection.instance && this.projection.mount(A), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((B, M) => this.bindToMotionValue(M, B)), ge.current || Ds(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : EB.current, process.env.NODE_ENV !== "production" && Rg(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);
5715
5715
  }
5716
5716
  unmount() {
5717
5717
  rD.delete(this.current), this.projection && this.projection.unmount(), cA(this.notifyUpdate), cA(this.render), this.valueSubscriptions.forEach((A) => A()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
@@ -5981,8 +5981,8 @@ const os = (g, A) => ZB(g) ? new ss(A) : new is(A, {
5981
5981
  eA(() => {
5982
5982
  A.forEach((a) => {
5983
5983
  const c = C.current.get(a.refId || "");
5984
- c && c.addEventListener("mouseenter", (V) => {
5985
- const y = V.target;
5984
+ c && c.addEventListener("mouseenter", (m) => {
5985
+ const y = m.target;
5986
5986
  o(y.getBoundingClientRect());
5987
5987
  });
5988
5988
  });
@@ -6015,7 +6015,7 @@ const os = (g, A) => ZB(g) ? new ss(A) : new is(A, {
6015
6015
  secondary: "text-[#1F2937]",
6016
6016
  experiences: "text-[#1F2937]"
6017
6017
  };
6018
- return /* @__PURE__ */ f("nav", { ref: w, ...e, className: `fixed top-0 left-0 right-0 z-10 ${n[g]} bg-opacity-75`, children: [
6018
+ return /* @__PURE__ */ f("nav", { style: { zIndex: 9999 }, ref: w, ...e, className: `fixed top-0 left-0 right-0 z-10 ${n[g]} bg-opacity-75`, children: [
6019
6019
  /* @__PURE__ */ f("div", { className: "mx-auto max-w-7xl px-2 sm:px-6 lg:px-8", children: [
6020
6020
  /* @__PURE__ */ I(
6021
6021
  ns.div,
@@ -6058,11 +6058,11 @@ const os = (g, A) => ZB(g) ? new ss(A) : new is(A, {
6058
6058
  ),
6059
6059
  (!B || B.trim() === "") && /* @__PURE__ */ I("div", { className: `text-[10px] ${r[g]} tracking-[4px]`, children: "DATA" })
6060
6060
  ] }) }),
6061
- /* @__PURE__ */ I("div", { className: "hidden sm:ml-6 sm:block flex-grow", children: /* @__PURE__ */ I("nav", { className: "flex justify-end", children: /* @__PURE__ */ I("ul", { className: "flex space-x-4", children: A.map(({ label: a, href: c, refId: V }) => /* @__PURE__ */ I("li", { children: /* @__PURE__ */ I(gM, { href: c, Viewport: l[g], colorButton: G[g], children: /* @__PURE__ */ I(
6061
+ /* @__PURE__ */ I("div", { className: "hidden sm:ml-6 sm:block flex-grow", children: /* @__PURE__ */ I("nav", { className: "flex justify-end", children: /* @__PURE__ */ I("ul", { className: "flex space-x-4", children: A.map(({ label: a, href: c, refId: m }) => /* @__PURE__ */ I("li", { children: /* @__PURE__ */ I(gM, { href: c, Viewport: l[g], colorButton: G[g], children: /* @__PURE__ */ I(
6062
6062
  "div",
6063
6063
  {
6064
- ref: (y) => y && V && C.current.set(V, y),
6065
- id: V,
6064
+ ref: (y) => y && m && C.current.set(m, y),
6065
+ id: m,
6066
6066
  style: { padding: "6px", color: G[g] },
6067
6067
  children: a
6068
6068
  }
@@ -6080,48 +6080,50 @@ const ls = yA(
6080
6080
  images: g = [],
6081
6081
  autoPlaySpeed: A = 3e3,
6082
6082
  height: B = "400px",
6083
- hero: M = {},
6084
- explore: D = {},
6085
- overlap: e = {},
6086
- nameImages: w = !1,
6087
- nameImagesBotton: Q = !1,
6088
- ...t
6089
- }, C) => {
6090
- var c, V;
6091
- const [i, s] = S(0), o = wA(null), n = wA(null), E = wA(null), l = (y) => {
6092
- n.current = y.touches[0].clientX;
6093
- }, G = (y) => {
6094
- E.current = y.touches[0].clientX;
6083
+ explore: M = {},
6084
+ overlap: D = {},
6085
+ nameImages: e = !1,
6086
+ nameImagesBotton: w = !1,
6087
+ ...Q
6088
+ }, t) => {
6089
+ var a, c;
6090
+ const [C, i] = S(0), s = wA(null), o = wA(null), n = wA(null), E = (m) => {
6091
+ o.current = m.touches[0].clientX;
6092
+ }, l = (m) => {
6093
+ n.current = m.touches[0].clientX;
6094
+ }, G = () => {
6095
+ if (!o.current || !n.current) return;
6096
+ const m = o.current - n.current;
6097
+ m > 50 ? C < g.length - 1 && i(C + 1) : m < -50 && C > 0 && i(C - 1), o.current = null, n.current = null;
6095
6098
  }, r = () => {
6096
- if (!n.current || !E.current) return;
6097
- const y = n.current - E.current;
6098
- y > 50 ? i < g.length - 1 && s(i + 1) : y < -50 && i > 0 && s(i - 1), n.current = null, E.current = null;
6099
- }, a = () => {
6100
- s((y) => (y + 1) % g.length);
6099
+ i((m) => (m + 1) % g.length);
6101
6100
  };
6102
- return eA(() => (g.length > 0 && (o.current = setInterval(a, A)), () => {
6103
- o.current && clearInterval(o.current);
6104
- }), [A, g.length]), !g || g.length === 0 ? /* @__PURE__ */ I("header", { ref: C, ...t, className: "relative w-full overflow-hidden", style: { height: B }, children: /* @__PURE__ */ I("p", { className: "text-center text-gray-500", children: "No hay imágenes para mostrar" }) }) : /* @__PURE__ */ f(
6101
+ return eA(() => (g.length > 0 && (s.current = setInterval(r, A)), () => {
6102
+ s.current && clearInterval(s.current);
6103
+ }), [A, g.length]), !g || g.length === 0 ? /* @__PURE__ */ I("header", { ref: t, ...Q, className: "relative w-full overflow-hidden", style: { height: B }, children: /* @__PURE__ */ I("p", { className: "text-center text-gray-500", children: "No hay imágenes para mostrar" }) }) : /* @__PURE__ */ f(
6105
6104
  "header",
6106
6105
  {
6107
- ref: C,
6108
- ...t,
6106
+ ref: t,
6107
+ ...Q,
6109
6108
  style: { height: B },
6110
6109
  className: "relative w-full overflow-hidden",
6111
- onTouchStart: l,
6112
- onTouchMove: G,
6113
- onTouchEnd: r,
6110
+ onTouchStart: E,
6111
+ onTouchMove: l,
6112
+ onTouchEnd: G,
6114
6113
  children: [
6115
- M && /* @__PURE__ */ f("div", { className: "absolute inset-0 flex flex-col justify-center items-center z-20 text-center text-white", children: [
6114
+ D && /* @__PURE__ */ f("div", { className: "absolute inset-0 flex flex-col items-center justify-center text-center z-20 text-white", children: [
6116
6115
  /* @__PURE__ */ f("h1", { className: "text-3xl md:text-5xl font-bold animate-fade-in-up", children: [
6117
- M.text1,
6116
+ D.text1,
6118
6117
  " ",
6119
- /* @__PURE__ */ I("span", { className: "text-red-400", children: M.text2 })
6118
+ /* @__PURE__ */ I("span", { className: "text-red-400", children: D.text2 })
6120
6119
  ] }),
6121
- /* @__PURE__ */ I("p", { className: "mt-4 text-lg md:text-2xl animate-fade-in", children: M.text3 }),
6122
- /* @__PURE__ */ I("div", { className: "mt-6 pointer-events-auto", children: M.text4 && /* @__PURE__ */ I(ag, { variant: "vividPink", size: "small", label: M.text4 }) })
6120
+ /* @__PURE__ */ I("p", { className: "text-sm md:text-lg mb-6", children: D.text3 }),
6121
+ /* @__PURE__ */ f("div", { className: "flex gap-4", children: [
6122
+ D.text4 && /* @__PURE__ */ I(_g, { variant: "vividPink", size: "small", label: D.text4 }),
6123
+ D.text5 && /* @__PURE__ */ I(_g, { variant: "tertiary", size: "small", label: D.text5 })
6124
+ ] })
6123
6125
  ] }),
6124
- (D == null ? void 0 : D.content) && /* @__PURE__ */ I("div", { className: "absolute z-20 bottom-8 left-1/2 transform -translate-x-1/2 pointer-events-auto", children: /* @__PURE__ */ f("a", { href: D.content, className: "flex flex-col items-center text-white", children: [
6126
+ (M == null ? void 0 : M.content) && /* @__PURE__ */ I("div", { className: "absolute z-20 bottom-8 left-1/2 transform -translate-x-1/2 pointer-events-auto", children: /* @__PURE__ */ f("a", { href: M.content, className: "flex flex-col items-center text-white", children: [
6125
6127
  /* @__PURE__ */ I("span", { className: "mb-2 text-lg font-medium", children: "Explora más" }),
6126
6128
  /* @__PURE__ */ I(
6127
6129
  "svg",
@@ -6143,38 +6145,30 @@ const ls = yA(
6143
6145
  }
6144
6146
  )
6145
6147
  ] }) }),
6146
- e && /* @__PURE__ */ f("div", { className: "absolute inset-0 flex flex-col items-center justify-center text-center z-20 text-white", children: [
6147
- /* @__PURE__ */ I("h1", { className: "text-3xl md:text-5xl font-extrabold mb-4", children: e.text1 }),
6148
- /* @__PURE__ */ I("p", { className: "text-sm md:text-lg mb-6", children: e.text2 }),
6149
- /* @__PURE__ */ f("div", { className: "flex gap-4", children: [
6150
- e.text3 && /* @__PURE__ */ I(ag, { variant: "vividPink", size: "small", label: e.text3 }),
6151
- e.text4 && /* @__PURE__ */ I(ag, { variant: "tertiary", size: "small", label: e.text4 })
6152
- ] })
6153
- ] }),
6154
- w && /* @__PURE__ */ I("div", { className: "absolute inset-0 flex flex-col justify-center items-center text-white z-10 transition-opacity duration-700 ease-in-out", children: /* @__PURE__ */ I("h1", { className: "text-4xl font-bold", children: ((c = g[i]) == null ? void 0 : c.alt) || "Título dinámico" }, i) }),
6155
- Q && /* @__PURE__ */ I("div", { className: "absolute bottom-8 left-1/2 transform -translate-x-1/2 text-center z-10", children: /* @__PURE__ */ I("p", { className: "text-lg font-medium text-white", children: (V = g[i]) == null ? void 0 : V.alt }) }),
6148
+ e && /* @__PURE__ */ I("div", { className: "absolute inset-0 flex flex-col justify-center items-center text-white z-10 transition-opacity duration-700 ease-in-out", children: /* @__PURE__ */ I("h1", { className: "text-4xl font-bold", children: ((a = g[C]) == null ? void 0 : a.alt) || "Título dinámico" }, C) }),
6149
+ w && /* @__PURE__ */ I("div", { className: "absolute bottom-8 left-1/2 transform -translate-x-1/2 text-center z-10", children: /* @__PURE__ */ I("p", { className: "text-lg font-medium text-white", children: (c = g[C]) == null ? void 0 : c.alt }) }),
6156
6150
  /* @__PURE__ */ I(
6157
6151
  "div",
6158
6152
  {
6159
6153
  className: "flex transition-transform duration-700 ease-in-out",
6160
6154
  style: {
6161
- transform: `translateX(-${i * 100}%)`,
6155
+ transform: `translateX(-${C * 100}%)`,
6162
6156
  height: B
6163
6157
  },
6164
- children: g.map(({ src: y, alt: u, href: q }, U) => /* @__PURE__ */ f("div", { id: "large-header", className: "relative w-full flex-shrink-0 large-header", children: [
6165
- q ? /* @__PURE__ */ I("a", { href: q, children: /* @__PURE__ */ I(
6158
+ children: g.map(({ src: m, alt: y, href: u }, q) => /* @__PURE__ */ f("div", { id: "large-header", className: "relative w-full flex-shrink-0 large-header", children: [
6159
+ u ? /* @__PURE__ */ I("a", { href: u, children: /* @__PURE__ */ I(
6166
6160
  "img",
6167
6161
  {
6168
- src: y,
6169
- alt: u,
6162
+ src: m,
6163
+ alt: y,
6170
6164
  className: "w-full h-full object-cover",
6171
6165
  style: { height: B }
6172
6166
  }
6173
6167
  ) }) : /* @__PURE__ */ I(
6174
6168
  "img",
6175
6169
  {
6176
- src: y,
6177
- alt: u,
6170
+ src: m,
6171
+ alt: y,
6178
6172
  className: "w-full h-full object-cover",
6179
6173
  style: { height: B }
6180
6174
  }
@@ -6186,17 +6180,16 @@ const ls = yA(
6186
6180
  style: { height: B }
6187
6181
  }
6188
6182
  )
6189
- ] }, U))
6183
+ ] }, q))
6190
6184
  }
6191
6185
  ),
6192
- /* @__PURE__ */ I("div", { className: "absolute bottom-4 left-1/2 transform -translate-x-1/2 flex gap-2 z-30", children: g.map((y, u) => /* @__PURE__ */ I(
6186
+ /* @__PURE__ */ I("div", { className: "absolute bottom-4 left-1/2 transform -translate-x-1/2 flex gap-2 z-30", children: g.map((m, y) => /* @__PURE__ */ I(
6193
6187
  "button",
6194
6188
  {
6195
- style: { zIndex: 999 },
6196
- onClick: () => s(u),
6197
- className: `w-3 h-3 rounded-full ${i === u ? "bg-white" : "bg-gray-400"}`
6189
+ onClick: () => i(y),
6190
+ className: `w-3 h-3 rounded-full ${C === y ? "bg-white" : "bg-gray-400"}`
6198
6191
  },
6199
- u
6192
+ y
6200
6193
  )) })
6201
6194
  ]
6202
6195
  }
@@ -6205,7 +6198,7 @@ const ls = yA(
6205
6198
  );
6206
6199
  ls.displayName = "Header";
6207
6200
  export {
6208
- ag as Button,
6201
+ _g as Button,
6209
6202
  Fe as CircularProgress,
6210
6203
  ls as Header,
6211
6204
  GB as LoadingIndicator,