@devtron-labs/devtron-fe-common-lib 1.9.1-beta-3 → 1.9.1-beta-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/{@code-editor-Dzax8A__.js → @code-editor-BcdvXLUs.js} +6933 -6657
  2. package/dist/{@common-rjsf-BONehXbG.js → @common-rjsf-Dtdmx6jk.js} +2 -2
  3. package/dist/{@framer-motion-DHFT2Onf.js → @framer-motion-B1qa0yMz.js} +114 -114
  4. package/dist/{@react-dates-H99Kf-Gu.js → @react-dates-B1uoPc_Q.js} +1 -1
  5. package/dist/{@react-select-DaoN_kK0.js → @react-select-CIub7ipj.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-BSYoHRT0.js → @react-virtualized-sticky-tree-CzHL2GVC.js} +1 -1
  7. package/dist/{@vendor-CmKnC58P.js → @vendor-ihgcJgmv.js} +30618 -24451
  8. package/dist/Common/Constants.d.ts +94 -88
  9. package/dist/Common/GenericDescription/utils.d.ts +1 -0
  10. package/dist/Common/Tooltip/constants.d.ts +1 -0
  11. package/dist/Common/Types.d.ts +4 -0
  12. package/dist/Common/index.d.ts +0 -1
  13. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +38 -0
  14. package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +1 -1
  15. package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +3 -1
  16. package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +2 -1
  17. package/dist/Shared/Components/GenericInfoCard/GenericInfoCard.component.d.ts +3 -0
  18. package/dist/Shared/Components/GenericInfoCard/index.d.ts +2 -0
  19. package/dist/Shared/Components/GenericInfoCard/types.d.ts +26 -0
  20. package/dist/Shared/Components/GenericInfoCard/utils.d.ts +2 -0
  21. package/dist/Shared/Components/GitProviderIcon/GitProviderIcon.d.ts +1 -1
  22. package/dist/Shared/Components/GitProviderIcon/types.d.ts +8 -3
  23. package/dist/Shared/Components/GitProviderIcon/utils.d.ts +2 -0
  24. package/dist/Shared/Components/GraphVisualizer/GraphVisualizer.d.ts +2 -0
  25. package/dist/Shared/Components/GraphVisualizer/components/BaseNode.d.ts +2 -0
  26. package/dist/Shared/Components/GraphVisualizer/components/DropdownNode.d.ts +3 -0
  27. package/dist/Shared/Components/GraphVisualizer/components/IconNode.d.ts +3 -0
  28. package/dist/Shared/Components/GraphVisualizer/components/TextNode.d.ts +3 -0
  29. package/dist/Shared/Components/GraphVisualizer/components/index.d.ts +4 -0
  30. package/dist/Shared/Components/GraphVisualizer/components/types.d.ts +19 -0
  31. package/dist/Shared/Components/GraphVisualizer/constants.d.ts +15 -0
  32. package/dist/Shared/Components/GraphVisualizer/index.d.ts +2 -0
  33. package/dist/Shared/Components/GraphVisualizer/types.d.ts +12 -0
  34. package/dist/Shared/Components/GraphVisualizer/utils.d.ts +17 -0
  35. package/dist/Shared/Components/Icon/Icon.d.ts +3 -2
  36. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -1
  37. package/dist/Shared/Components/ReactSelect/constants.d.ts +7 -15
  38. package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
  39. package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
  40. package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +2 -1
  41. package/dist/Shared/Components/index.d.ts +2 -0
  42. package/dist/Shared/Services/app.service.d.ts +4 -1
  43. package/dist/Shared/Services/common.service.d.ts +2 -1
  44. package/dist/Shared/Services/index.d.ts +1 -0
  45. package/dist/Shared/Services/template.service.d.ts +2 -0
  46. package/dist/Shared/constants.d.ts +0 -10
  47. package/dist/Shared/validations.d.ts +1 -0
  48. package/dist/assets/@code-editor.css +1 -1
  49. package/dist/assets/@vendor.css +1 -1
  50. package/dist/assets/ic-card-stack.efd37c91.svg +3 -0
  51. package/dist/assets/ic-copy.416d85f3.svg +3 -0
  52. package/dist/assets/ic-new.2c179139.svg +3 -0
  53. package/dist/index.d.ts +6 -0
  54. package/dist/index.js +804 -800
  55. package/package.json +2 -1
  56. package/dist/Common/DeleteCINodeButton/DeleteCINodeButton.d.ts +0 -2
  57. package/dist/Common/DeleteCINodeButton/index.d.ts +0 -3
  58. package/dist/Common/DeleteCINodeButton/types.d.ts +0 -17
  59. package/dist/Common/DeleteCINodeButton/utils.d.ts +0 -2
  60. package/dist/assets/ic-add.18a93616.svg +0 -19
  61. package/dist/assets/ic-delete.a6e8d3ad.svg +0 -19
@@ -1,7 +1,7 @@
1
- import { j as n, ae as y, ag as k, af as W } from "./@vendor-CmKnC58P.js";
1
+ import { j as n, an as y, ap as k, ao as W } from "./@vendor-ihgcJgmv.js";
2
2
  import V, { forwardRef as J, useMemo as P } from "react";
3
3
  import K, { getDefaultRegistry as q } from "@rjsf/core";
4
- import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-Dzax8A__.js";
4
+ import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-BcdvXLUs.js";
5
5
  import Q, { components as D } from "react-select";
6
6
  import { ReactComponent as X } from "./assets/ic-chevron-down.fc70d7a7.svg";
7
7
  import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as Z, ADDITIONAL_PROPERTY_FLAG as L, errorId as ee, englishStringTranslator as te, TranslatableString as ne, titleId as re, canExpand as se, deepEquals as ae } from "@rjsf/utils";
@@ -1,6 +1,6 @@
1
- import { aj as ct, ak as m, al as I, am as Yr, an as we, ao as T, ap as at, aq as zt, ar as ae, as as Xe, at as J, au as kr, av as Qn, aw as Xr, ax as ti, ay as ei, az as ri, aA as ni, aB as ii, aC as Wr, aD as ai, aE as oi, aF as si, aG as ui, aH as li, aI as fi, aJ as ci, aK as yt, aL as k, aM as pe, aN as Zr, aO as vi, aP as di, aQ as W, aR as $, aS as pi, aT as he, aU as Dt, aV as hi, aW as mi, aX as $r, aY as Mt, aZ as O, a_ as me, a$ as gi, b0 as oe, b1 as yi } from "./@vendor-CmKnC58P.js";
1
+ import { as as ct, at as m, au as I, av as Yr, aw as we, ax as T, ay as at, az as zt, aA as ae, aB as Xe, aC as J, aD as kr, aE as Qn, aF as Xr, aG as ti, aH as ei, aI as ri, aJ as ni, aK as ii, aL as Wr, aM as ai, aN as oi, aO as si, aP as ui, aQ as li, aR as fi, aS as ci, aT as yt, aU as k, aV as pe, aW as Zr, aX as vi, aY as di, aZ as W, a_ as $, a$ as pi, b0 as he, b1 as Dt, b2 as hi, b3 as mi, b4 as $r, b5 as Mt, b6 as O, b7 as me, b8 as gi, b9 as oe, ba as yi } from "./@vendor-ihgcJgmv.js";
2
2
  import * as K from "react";
3
- import Ee, { createContext as bt, useContext as F, useLayoutEffect as Pi, useEffect as G, useState as qr, useRef as q, useCallback as ge, useMemo as It, forwardRef as bi, createElement as Vi, cloneElement as Ti, Children as Si, isValidElement as xi } from "react";
3
+ import Ee, { createContext as Pt, useContext as F, useLayoutEffect as bi, useEffect as G, useState as qr, useRef as q, useCallback as ge, useMemo as It, forwardRef as Pi, createElement as Vi, cloneElement as Ti, Children as Si, isValidElement as xi } from "react";
4
4
  var We = "production", Le = typeof process > "u" || process.env === void 0 ? We : process.env.NODE_ENV || We, Q = function(t) {
5
5
  return {
6
6
  isEnabled: function(e) {
@@ -42,7 +42,7 @@ function Ci(t) {
42
42
  for (var e in t)
43
43
  t[e] !== null && (e === "projectionNodeConstructor" ? Ot.projectionNodeConstructor = t[e] : Ot[e].Component = t[e]);
44
44
  }
45
- var Jr = bt({ strict: !1 }), Qr = Object.keys(Ot), Ai = Qr.length;
45
+ var Jr = Pt({ strict: !1 }), Qr = Object.keys(Ot), Ai = Qr.length;
46
46
  function wi(t, e, r) {
47
47
  var n = [], i = F(Jr);
48
48
  if (!e)
@@ -54,17 +54,17 @@ function wi(t, e, r) {
54
54
  }
55
55
  return n;
56
56
  }
57
- var Re = bt({
57
+ var Re = Pt({
58
58
  transformPagePoint: function(t) {
59
59
  return t;
60
60
  },
61
61
  isStatic: !1,
62
62
  reducedMotion: "never"
63
- }), te = bt({});
63
+ }), te = Pt({});
64
64
  function Ei() {
65
65
  return F(te).visualElement;
66
66
  }
67
- var Bt = bt(null), Vt = typeof document < "u", Wt = Vt ? Pi : G, ye = { current: null }, tn = !1;
67
+ var Bt = Pt(null), Vt = typeof document < "u", Wt = Vt ? bi : G, ye = { current: null }, tn = !1;
68
68
  function Li() {
69
69
  if (tn = !0, !!Vt)
70
70
  if (window.matchMedia) {
@@ -197,7 +197,7 @@ function Ui() {
197
197
  return _i++;
198
198
  });
199
199
  }
200
- var De = bt({}), an = bt({});
200
+ var De = Pt({}), an = Pt({});
201
201
  function Ni(t, e, r, n) {
202
202
  var i, s = e.layoutId, o = e.layout, a = e.drag, u = e.dragConstraints, l = e.layoutScroll, f = F(an);
203
203
  !n || !r || r?.projection || (r.projection = new n(t, r.getLatestValues(), (i = r.parent) === null || i === void 0 ? void 0 : i.projection), r.projection.setOptions({
@@ -252,7 +252,7 @@ function zi(t) {
252
252
  K.createElement(te.Provider, { value: d }, i(o, u, p, Ii(h, d.visualElement, l), h, v.isStatic, d.visualElement))
253
253
  );
254
254
  }
255
- return bi(a);
255
+ return Pi(a);
256
256
  }
257
257
  function Ki(t) {
258
258
  var e, r = t.layoutId, n = (e = F(De)) === null || e === void 0 ? void 0 : e.id;
@@ -327,9 +327,9 @@ var Zt = {};
327
327
  function ki(t) {
328
328
  Object.assign(Zt, t);
329
329
  }
330
- var Pe = ["", "X", "Y", "Z"], Xi = ["translate", "scale", "rotate", "skew"], Ft = ["transformPerspective", "x", "y", "z"];
330
+ var be = ["", "X", "Y", "Z"], Xi = ["translate", "scale", "rotate", "skew"], Ft = ["transformPerspective", "x", "y", "z"];
331
331
  Xi.forEach(function(t) {
332
- return Pe.forEach(function(e) {
332
+ return be.forEach(function(e) {
333
333
  return Ft.push(t + e);
334
334
  });
335
335
  });
@@ -689,7 +689,7 @@ function Je(t, e, r, n) {
689
689
  return o(e, u, a);
690
690
  }), a;
691
691
  }
692
- var Pn = function(t) {
692
+ var bn = function(t) {
693
693
  return function(e, r) {
694
694
  var n = F(te), i = F(Bt);
695
695
  return r ? Je(t, e, n, i) : _t(function() {
@@ -709,26 +709,26 @@ function ha(t, e, r, n) {
709
709
  p.forEach(function(h) {
710
710
  var g = rn(t, h);
711
711
  if (g) {
712
- var P = g.transitionEnd;
712
+ var b = g.transitionEnd;
713
713
  g.transition;
714
- var b = J(g, ["transitionEnd", "transition"]);
715
- for (var S in b) {
716
- var C = b[S];
714
+ var P = J(g, ["transitionEnd", "transition"]);
715
+ for (var S in P) {
716
+ var C = P[S];
717
717
  if (Array.isArray(C)) {
718
718
  var A = c ? C.length - 1 : 0;
719
719
  C = C[A];
720
720
  }
721
721
  C !== null && (i[S] = C);
722
722
  }
723
- for (var S in P)
724
- i[S] = P[S];
723
+ for (var S in b)
724
+ i[S] = b[S];
725
725
  }
726
726
  });
727
727
  }
728
728
  return i;
729
729
  }
730
730
  var ma = {
731
- useVisualState: Pn({
731
+ useVisualState: bn({
732
732
  scrapeMotionValuesFromProps: gn,
733
733
  createRenderState: vn,
734
734
  onMount: function(t, e, r) {
@@ -747,7 +747,7 @@ var ma = {
747
747
  }
748
748
  })
749
749
  }, ga = {
750
- useVisualState: Pn({
750
+ useVisualState: bn({
751
751
  scrapeMotionValuesFromProps: je,
752
752
  createRenderState: Oe
753
753
  })
@@ -765,14 +765,14 @@ function ne(t, e, r, n) {
765
765
  return t.removeEventListener(e, r);
766
766
  };
767
767
  }
768
- function be(t, e, r, n) {
768
+ function Pe(t, e, r, n) {
769
769
  G(function() {
770
770
  var i = t.current;
771
771
  if (r && i)
772
772
  return ne(i, e, r, n);
773
773
  }, [t, e, r, n]);
774
774
  }
775
- function Pa(t) {
775
+ function ba(t) {
776
776
  var e = t.whileFocus, r = t.visualElement, n = function() {
777
777
  var s;
778
778
  (s = r.animationState) === null || s === void 0 || s.setActive(L.Focus, !0);
@@ -780,16 +780,16 @@ function Pa(t) {
780
780
  var s;
781
781
  (s = r.animationState) === null || s === void 0 || s.setActive(L.Focus, !1);
782
782
  };
783
- be(r, "focus", e ? n : void 0), be(r, "blur", e ? i : void 0);
783
+ Pe(r, "focus", e ? n : void 0), Pe(r, "blur", e ? i : void 0);
784
784
  }
785
- function bn(t) {
785
+ function Pn(t) {
786
786
  return typeof PointerEvent < "u" && t instanceof PointerEvent ? t.pointerType === "mouse" : t instanceof MouseEvent;
787
787
  }
788
788
  function Vn(t) {
789
789
  var e = !!t.touches;
790
790
  return e;
791
791
  }
792
- function ba(t) {
792
+ function Pa(t) {
793
793
  return function(e) {
794
794
  var r = e instanceof MouseEvent, n = !r || r && e.button === 0;
795
795
  n && t(e);
@@ -820,7 +820,7 @@ var Tn = function(t, e) {
820
820
  var r = function(n) {
821
821
  return t(n, _e(n));
822
822
  };
823
- return e ? ba(r) : r;
823
+ return e ? Pa(r) : r;
824
824
  }, xa = function() {
825
825
  return Vt && window.onpointerdown === null;
826
826
  }, Ca = function() {
@@ -849,7 +849,7 @@ function gt(t, e, r, n) {
849
849
  return ne(t, Sn(e), Tn(r, e === "pointerdown"), n);
850
850
  }
851
851
  function qt(t, e, r, n) {
852
- return be(t, Sn(e), r && Tn(r, e === "pointerdown"), n);
852
+ return Pe(t, Sn(e), r && Tn(r, e === "pointerdown"), n);
853
853
  }
854
854
  function xn(t) {
855
855
  var e = null;
@@ -882,7 +882,7 @@ function An() {
882
882
  function er(t, e, r) {
883
883
  return function(n, i) {
884
884
  var s;
885
- !bn(n) || An() || ((s = t.animationState) === null || s === void 0 || s.setActive(L.Hover, e), r?.(n, i));
885
+ !Pn(n) || An() || ((s = t.animationState) === null || s === void 0 || s.setActive(L.Hover, e), r?.(n, i));
886
886
  };
887
887
  }
888
888
  function La(t) {
@@ -918,8 +918,8 @@ function Ra(t) {
918
918
  v() && n?.(h, g);
919
919
  }
920
920
  function p(h, g) {
921
- var P;
922
- f(), !a.current && (a.current = !0, u.current = kr(gt(window, "pointerup", c, l), gt(window, "pointercancel", d, l)), (P = s.animationState) === null || P === void 0 || P.setActive(L.Tap, !0), r?.(h, g));
921
+ var b;
922
+ f(), !a.current && (a.current = !0, u.current = kr(gt(window, "pointerup", c, l), gt(window, "pointercancel", d, l)), (b = s.animationState) === null || b === void 0 || b.setActive(L.Tap, !0), r?.(h, g));
923
923
  }
924
924
  qt(s, "pointerdown", o ? p : void 0, l), Ue(f);
925
925
  }
@@ -996,7 +996,7 @@ var ut = function(t) {
996
996
  }, Ua = {
997
997
  inView: ut(Fa),
998
998
  tap: ut(Ra),
999
- focus: ut(Pa),
999
+ focus: ut(ba),
1000
1000
  hover: ut(La)
1001
1001
  }, Na = 0, Ha = function() {
1002
1002
  return Na++;
@@ -1288,7 +1288,7 @@ var wt = (
1288
1288
  }, t;
1289
1289
  }()
1290
1290
  );
1291
- function Pt(t) {
1291
+ function bt(t) {
1292
1292
  return new eo(t);
1293
1293
  }
1294
1294
  var Mn = function(t) {
@@ -1308,7 +1308,7 @@ var Mn = function(t) {
1308
1308
  return no.find(Mn(t));
1309
1309
  };
1310
1310
  function ao(t, e, r) {
1311
- t.hasValue(e) ? t.getValue(e).set(r) : t.addValue(e, Pt(r));
1311
+ t.hasValue(e) ? t.getValue(e).set(r) : t.addValue(e, bt(r));
1312
1312
  }
1313
1313
  function oo(t, e) {
1314
1314
  var r = ee(t, e), n = r ? t.makeTargetAnimatable(r, !1) : {}, i = n.transitionEnd, s = i === void 0 ? {} : i;
@@ -1327,7 +1327,7 @@ function so(t, e, r) {
1327
1327
  if (u)
1328
1328
  for (var l = 0; l < u; l++) {
1329
1329
  var f = a[l], v = e[f], c = null;
1330
- Array.isArray(v) && (c = v[0]), c === null && (c = (i = (n = r[f]) !== null && n !== void 0 ? n : t.readValue(f)) !== null && i !== void 0 ? i : e[f]), c != null && (typeof c == "string" && (Ja(c) || Qa(c)) ? c = parseFloat(c) : !io(c) && yt.test(v) && (c = He(f, v)), t.addValue(f, Pt(c)), (s = (o = r)[f]) !== null && s !== void 0 || (o[f] = c), t.setBaseTarget(f, c));
1330
+ Array.isArray(v) && (c = v[0]), c === null && (c = (i = (n = r[f]) !== null && n !== void 0 ? n : t.readValue(f)) !== null && i !== void 0 ? i : e[f]), c != null && (typeof c == "string" && (Ja(c) || Qa(c)) ? c = parseFloat(c) : !io(c) && yt.test(v) && (c = He(f, v)), t.addValue(f, bt(c)), (s = (o = r)[f]) !== null && s !== void 0 || (o[f] = c), t.setBaseTarget(f, c));
1331
1331
  }
1332
1332
  }
1333
1333
  function uo(t, e) {
@@ -1371,8 +1371,8 @@ function Te(t, e, r) {
1371
1371
  return Promise.resolve();
1372
1372
  }, u = !((n = t.variantChildren) === null || n === void 0) && n.size ? function(d) {
1373
1373
  d === void 0 && (d = 0);
1374
- var p = o.delayChildren, h = p === void 0 ? 0 : p, g = o.staggerChildren, P = o.staggerDirection;
1375
- return co(t, e, h + d, g, P, r);
1374
+ var p = o.delayChildren, h = p === void 0 ? 0 : p, g = o.staggerChildren, b = o.staggerDirection;
1375
+ return co(t, e, h + d, g, b, r);
1376
1376
  } : function() {
1377
1377
  return Promise.resolve();
1378
1378
  }, l = o.when;
@@ -1387,11 +1387,11 @@ function On(t, e, r) {
1387
1387
  a && (v = a);
1388
1388
  var p = [], h = u && ((n = t.animationState) === null || n === void 0 ? void 0 : n.getState()[u]);
1389
1389
  for (var g in d) {
1390
- var P = t.getValue(g), b = d[g];
1391
- if (!(!P || b === void 0 || h && po(h, g))) {
1390
+ var b = t.getValue(g), P = d[g];
1391
+ if (!(!b || P === void 0 || h && po(h, g))) {
1392
1392
  var S = m({ delay: o }, v);
1393
1393
  t.shouldReduceMotion && Ut(g) && (S = m(m({}, S), { type: !1, delay: 0 }));
1394
- var C = Ke(g, P, b, S);
1394
+ var C = Ke(g, b, P, S);
1395
1395
  p.push(C);
1396
1396
  }
1397
1397
  }
@@ -1437,7 +1437,7 @@ function go(t) {
1437
1437
  };
1438
1438
  }
1439
1439
  function yo(t) {
1440
- var e = go(t), r = bo(), n = {}, i = !0, s = function(f, v) {
1440
+ var e = go(t), r = Po(), n = {}, i = !0, s = function(f, v) {
1441
1441
  var c = ee(t, v);
1442
1442
  if (c) {
1443
1443
  c.transition;
@@ -1453,27 +1453,27 @@ function yo(t) {
1453
1453
  e = f(t);
1454
1454
  }
1455
1455
  function u(f, v) {
1456
- for (var c, d = t.getProps(), p = t.getVariantContext(!0) || {}, h = [], g = /* @__PURE__ */ new Set(), P = {}, b = 1 / 0, S = function(R) {
1456
+ for (var c, d = t.getProps(), p = t.getVariantContext(!0) || {}, h = [], g = /* @__PURE__ */ new Set(), b = {}, P = 1 / 0, S = function(R) {
1457
1457
  var x = ho[R], w = r[x], D = (c = d[x]) !== null && c !== void 0 ? c : p[x], H = X(D), B = x === v ? w.isActive : null;
1458
- B === !1 && (b = R);
1458
+ B === !1 && (P = R);
1459
1459
  var N = D === p[x] && D !== d[x] && H;
1460
- if (N && i && t.manuallyAnimateOnMount && (N = !1), w.protectedKeys = m({}, P), // If it isn't active and hasn't *just* been set as inactive
1460
+ if (N && i && t.manuallyAnimateOnMount && (N = !1), w.protectedKeys = m({}, b), // If it isn't active and hasn't *just* been set as inactive
1461
1461
  !w.isActive && B === null || // If we didn't and don't have any defined prop for this animation type
1462
1462
  !D && !w.prevProp || // Or if the prop doesn't define an animation
1463
1463
  Be(D) || typeof D == "boolean")
1464
1464
  return "continue";
1465
- var rt = Po(w.prevProp, D), nt = rt || // If we're making this variant active, we want to always make it active
1465
+ var rt = bo(w.prevProp, D), nt = rt || // If we're making this variant active, we want to always make it active
1466
1466
  x === v && w.isActive && !N && H || // If we removed a higher-priority variant (i is in reverse order)
1467
- R > b && H, it = Array.isArray(D) ? D : [D], z = it.reduce(s, {});
1467
+ R > P && H, it = Array.isArray(D) ? D : [D], z = it.reduce(s, {});
1468
1468
  B === !1 && (z = {});
1469
1469
  var Tt = w.prevResolvedValues, vt = Tt === void 0 ? {} : Tt, Nt = m(m({}, vt), z), dt = function(V) {
1470
1470
  nt = !0, g.delete(V), w.needsAnimating[V] = !0;
1471
1471
  };
1472
1472
  for (var U in Nt) {
1473
1473
  var E = z[U], y = vt[U];
1474
- P.hasOwnProperty(U) || (E !== y ? jt(E) && jt(y) ? !Dn(E, y) || rt ? dt(U) : w.protectedKeys[U] = !0 : E !== void 0 ? dt(U) : g.add(U) : E !== void 0 && g.has(U) ? dt(U) : w.protectedKeys[U] = !0);
1474
+ b.hasOwnProperty(U) || (E !== y ? jt(E) && jt(y) ? !Dn(E, y) || rt ? dt(U) : w.protectedKeys[U] = !0 : E !== void 0 ? dt(U) : g.add(U) : E !== void 0 && g.has(U) ? dt(U) : w.protectedKeys[U] = !0);
1475
1475
  }
1476
- w.prevProp = D, w.prevResolvedValues = z, w.isActive && (P = m(m({}, P), z)), i && t.blockInitialAnimation && (nt = !1), nt && !N && h.push.apply(h, W([], I(it.map(function(V) {
1476
+ w.prevProp = D, w.prevResolvedValues = z, w.isActive && (b = m(m({}, b), z)), i && t.blockInitialAnimation && (nt = !1), nt && !N && h.push.apply(h, W([], I(it.map(function(V) {
1477
1477
  return {
1478
1478
  animation: V,
1479
1479
  options: m({ type: x }, f)
@@ -1481,7 +1481,7 @@ function yo(t) {
1481
1481
  })), !1));
1482
1482
  }, C = 0; C < mo; C++)
1483
1483
  S(C);
1484
- if (n = m({}, P), g.size) {
1484
+ if (n = m({}, b), g.size) {
1485
1485
  var A = {};
1486
1486
  g.forEach(function(R) {
1487
1487
  var x = t.getBaseTarget(R);
@@ -1496,8 +1496,8 @@ function yo(t) {
1496
1496
  if (r[f].isActive === v)
1497
1497
  return Promise.resolve();
1498
1498
  (d = t.variantChildren) === null || d === void 0 || d.forEach(function(g) {
1499
- var P;
1500
- return (P = g.animationState) === null || P === void 0 ? void 0 : P.setActive(f, v);
1499
+ var b;
1500
+ return (b = g.animationState) === null || b === void 0 ? void 0 : b.setActive(f, v);
1501
1501
  }), r[f].isActive = v;
1502
1502
  var p = u(c, f);
1503
1503
  for (var h in r)
@@ -1514,7 +1514,7 @@ function yo(t) {
1514
1514
  }
1515
1515
  };
1516
1516
  }
1517
- function Po(t, e) {
1517
+ function bo(t, e) {
1518
1518
  return typeof e == "string" ? e !== t : en(e) ? !Dn(e, t) : !1;
1519
1519
  }
1520
1520
  function ft(t) {
@@ -1525,7 +1525,7 @@ function ft(t) {
1525
1525
  prevResolvedValues: {}
1526
1526
  };
1527
1527
  }
1528
- function bo() {
1528
+ function Po() {
1529
1529
  var t;
1530
1530
  return t = {}, t[L.Animate] = ft(!0), t[L.InView] = ft(), t[L.Hover] = ft(), t[L.Tap] = ft(), t[L.Drag] = ft(), t[L.Focus] = ft(), t[L.Exit] = ft(), t;
1531
1531
  }
@@ -1556,20 +1556,20 @@ var Vo = {
1556
1556
  if (!(!d && !p)) {
1557
1557
  var h = c.point, g = he().timestamp;
1558
1558
  i.history.push(m(m({}, h), { timestamp: g }));
1559
- var P = i.handlers, b = P.onStart, S = P.onMove;
1560
- d || (b && b(i.lastMoveEvent, c), i.startEvent = i.lastMoveEvent), S && S(i.lastMoveEvent, c);
1559
+ var b = i.handlers, P = b.onStart, S = b.onMove;
1560
+ d || (P && P(i.lastMoveEvent, c), i.startEvent = i.lastMoveEvent), S && S(i.lastMoveEvent, c);
1561
1561
  }
1562
1562
  }
1563
1563
  }, this.handlePointerMove = function(c, d) {
1564
- if (i.lastMoveEvent = c, i.lastMoveEventInfo = le(d, i.transformPagePoint), bn(c) && c.buttons === 0) {
1564
+ if (i.lastMoveEvent = c, i.lastMoveEventInfo = le(d, i.transformPagePoint), Pn(c) && c.buttons === 0) {
1565
1565
  i.handlePointerUp(c, d);
1566
1566
  return;
1567
1567
  }
1568
1568
  $.update(i.updatePoint, !0);
1569
1569
  }, this.handlePointerUp = function(c, d) {
1570
1570
  i.end();
1571
- var p = i.handlers, h = p.onEnd, g = p.onSessionEnd, P = fe(le(d, i.transformPagePoint), i.history);
1572
- i.startEvent && h && h(c, P), g && g(c, P);
1571
+ var p = i.handlers, h = p.onEnd, g = p.onSessionEnd, b = fe(le(d, i.transformPagePoint), i.history);
1572
+ i.startEvent && h && h(c, b), g && g(c, b);
1573
1573
  }, !(Vn(e) && e.touches.length > 1)) {
1574
1574
  this.handlers = r, this.transformPagePoint = o;
1575
1575
  var a = _e(e), u = le(a, this.transformPagePoint), l = u.point, f = he().timestamp;
@@ -1698,7 +1698,7 @@ function yr(t, e) {
1698
1698
  var r;
1699
1699
  return typeof t == "number" ? t : (r = t[e]) !== null && r !== void 0 ? r : 0;
1700
1700
  }
1701
- var Pr = function() {
1701
+ var br = function() {
1702
1702
  return {
1703
1703
  translate: 0,
1704
1704
  scale: 1,
@@ -1707,15 +1707,15 @@ var Pr = function() {
1707
1707
  };
1708
1708
  }, Rt = function() {
1709
1709
  return {
1710
- x: Pr(),
1711
- y: Pr()
1710
+ x: br(),
1711
+ y: br()
1712
1712
  };
1713
- }, br = function() {
1713
+ }, Pr = function() {
1714
1714
  return { min: 0, max: 0 };
1715
1715
  }, j = function() {
1716
1716
  return {
1717
- x: br(),
1718
- y: br()
1717
+ x: Pr(),
1718
+ y: Pr()
1719
1719
  };
1720
1720
  };
1721
1721
  function Z(t) {
@@ -1810,27 +1810,27 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1810
1810
  var a = function(v) {
1811
1811
  n.stopAnimation(), o && n.snapToCursor(_e(v, "page").point);
1812
1812
  }, u = function(v, c) {
1813
- var d, p = n.getProps(), h = p.drag, g = p.dragPropagation, P = p.onDragStart;
1814
- h && !g && (n.openGlobalLock && n.openGlobalLock(), n.openGlobalLock = Cn(h), !n.openGlobalLock) || (n.isDragging = !0, n.currentDirection = null, n.resolveConstraints(), n.visualElement.projection && (n.visualElement.projection.isAnimationBlocked = !0, n.visualElement.projection.target = void 0), Z(function(b) {
1815
- var S, C, A = n.getAxisMotionValue(b).get() || 0;
1813
+ var d, p = n.getProps(), h = p.drag, g = p.dragPropagation, b = p.onDragStart;
1814
+ h && !g && (n.openGlobalLock && n.openGlobalLock(), n.openGlobalLock = Cn(h), !n.openGlobalLock) || (n.isDragging = !0, n.currentDirection = null, n.resolveConstraints(), n.visualElement.projection && (n.visualElement.projection.isAnimationBlocked = !0, n.visualElement.projection.target = void 0), Z(function(P) {
1815
+ var S, C, A = n.getAxisMotionValue(P).get() || 0;
1816
1816
  if (Dt.test(A)) {
1817
- var M = (C = (S = n.visualElement.projection) === null || S === void 0 ? void 0 : S.layout) === null || C === void 0 ? void 0 : C.actual[b];
1817
+ var M = (C = (S = n.visualElement.projection) === null || S === void 0 ? void 0 : S.layout) === null || C === void 0 ? void 0 : C.actual[P];
1818
1818
  if (M) {
1819
1819
  var R = et(M);
1820
1820
  A = R * (parseFloat(A) / 100);
1821
1821
  }
1822
1822
  }
1823
- n.originPoint[b] = A;
1824
- }), P?.(v, c), (d = n.visualElement.animationState) === null || d === void 0 || d.setActive(L.Drag, !0));
1823
+ n.originPoint[P] = A;
1824
+ }), b?.(v, c), (d = n.visualElement.animationState) === null || d === void 0 || d.setActive(L.Drag, !0));
1825
1825
  }, l = function(v, c) {
1826
- var d = n.getProps(), p = d.dragPropagation, h = d.dragDirectionLock, g = d.onDirectionLock, P = d.onDrag;
1826
+ var d = n.getProps(), p = d.dragPropagation, h = d.dragDirectionLock, g = d.onDirectionLock, b = d.onDrag;
1827
1827
  if (!(!p && !n.openGlobalLock)) {
1828
- var b = c.offset;
1828
+ var P = c.offset;
1829
1829
  if (h && n.currentDirection === null) {
1830
- n.currentDirection = Uo(b), n.currentDirection !== null && g?.(n.currentDirection);
1830
+ n.currentDirection = Uo(P), n.currentDirection !== null && g?.(n.currentDirection);
1831
1831
  return;
1832
1832
  }
1833
- n.updateAxis("x", c.point, b), n.updateAxis("y", c.point, b), n.visualElement.syncRender(), P?.(v, c);
1833
+ n.updateAxis("x", c.point, P), n.updateAxis("y", c.point, P), n.visualElement.syncRender(), b?.(v, c);
1834
1834
  }
1835
1835
  }, f = function(v, c) {
1836
1836
  return n.stop(v, c);
@@ -1887,8 +1887,8 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1887
1887
  if (Gt(c, i, r.currentDirection)) {
1888
1888
  var p = (d = f?.[c]) !== null && d !== void 0 ? d : {};
1889
1889
  u && (p = { min: 0, max: 0 });
1890
- var h = o ? 200 : 1e6, g = o ? 40 : 1e7, P = m(m({ type: "inertia", velocity: s ? e[c] : 0, bounceStiffness: h, bounceDamping: g, timeConstant: 750, restDelta: 1, restSpeed: 10 }, a), p);
1891
- return r.startAxisValueAnimation(c, P);
1890
+ var h = o ? 200 : 1e6, g = o ? 40 : 1e7, b = m(m({ type: "inertia", velocity: s ? e[c] : 0, bounceStiffness: h, bounceDamping: g, timeConstant: 750, restDelta: 1, restSpeed: 10 }, a), p);
1891
+ return r.startAxisValueAnimation(c, b);
1892
1892
  }
1893
1893
  });
1894
1894
  return Promise.all(v).then(l);
@@ -2053,13 +2053,13 @@ function Go(t, e, r) {
2053
2053
  if (tt(s))
2054
2054
  t.addValue(i, s), process.env.NODE_ENV === "development" && En(s.version === "6.5.1", "Attempting to mix Framer Motion versions ".concat(s.version, " with 6.5.1 may not work as expected."));
2055
2055
  else if (tt(o))
2056
- t.addValue(i, Pt(s));
2056
+ t.addValue(i, bt(s));
2057
2057
  else if (o !== s)
2058
2058
  if (t.hasValue(i)) {
2059
2059
  var a = t.getValue(i);
2060
2060
  !a.hasAnimated && a.set(s);
2061
2061
  } else
2062
- t.addValue(i, Pt((n = t.getStaticValue(i)) !== null && n !== void 0 ? n : s));
2062
+ t.addValue(i, bt((n = t.getStaticValue(i)) !== null && n !== void 0 ? n : s));
2063
2063
  }
2064
2064
  for (var i in r)
2065
2065
  e[i] === void 0 && t.removeValue(i);
@@ -2068,9 +2068,9 @@ function Go(t, e, r) {
2068
2068
  var Hn = function(t) {
2069
2069
  var e = t.treeType, r = e === void 0 ? "" : e, n = t.build, i = t.getBaseTarget, s = t.makeTargetAnimatable, o = t.measureViewportBox, a = t.render, u = t.readValueFromInstance, l = t.removeValueFromRenderState, f = t.sortNodePosition, v = t.scrapeMotionValuesFromProps;
2070
2070
  return function(c, d) {
2071
- var p = c.parent, h = c.props, g = c.presenceId, P = c.blockInitialAnimation, b = c.visualState, S = c.shouldReduceMotion;
2071
+ var p = c.parent, h = c.props, g = c.presenceId, b = c.blockInitialAnimation, P = c.visualState, S = c.shouldReduceMotion;
2072
2072
  d === void 0 && (d = {});
2073
- var C = !1, A = b.latestValues, M = b.renderState, R, x = Ko(), w = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), H = {}, B = m({}, A), N;
2073
+ var C = !1, A = P.latestValues, M = P.renderState, R, x = Ko(), w = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), H = {}, B = m({}, A), N;
2074
2074
  function rt() {
2075
2075
  !R || !C || (nt(), a(R, M, h.style, E.projection));
2076
2076
  }
@@ -2137,7 +2137,7 @@ var Hn = function(t) {
2137
2137
  * This can be set by AnimatePresence to force components that mount
2138
2138
  * at the same time as it to mount as if they have initial={false} set.
2139
2139
  */
2140
- blockInitialAnimation: P,
2140
+ blockInitialAnimation: b,
2141
2141
  /**
2142
2142
  * Determine whether this component has mounted yet. This is mostly used
2143
2143
  * by variant children to determine whether they need to trigger their
@@ -2260,7 +2260,7 @@ var Hn = function(t) {
2260
2260
  */
2261
2261
  getValue: function(y, V) {
2262
2262
  var _ = w.get(y);
2263
- return _ === void 0 && V !== void 0 && (_ = Pt(V), E.addValue(y, _)), _;
2263
+ return _ === void 0 && V !== void 0 && (_ = bt(V), E.addValue(y, _)), _;
2264
2264
  },
2265
2265
  /**
2266
2266
  * Iterate over our motion values.
@@ -2494,10 +2494,10 @@ var wr = {
2494
2494
  if (t.hasValue(f)) {
2495
2495
  var c = r[f], d = xt(c), p = e[f], h;
2496
2496
  if (jt(p)) {
2497
- var g = p.length, P = p[0] === null ? 1 : 0;
2498
- c = p[P], d = xt(c);
2499
- for (var b = P; b < g; b++)
2500
- h ? ct(xt(p[b]) === h, "All keyframes must be of the same type") : (h = xt(p[b]), ct(h === d || kt(d) && kt(h), "Keyframes must be of the same dimension as the current value"));
2497
+ var g = p.length, b = p[0] === null ? 1 : 0;
2498
+ c = p[b], d = xt(c);
2499
+ for (var P = b; P < g; P++)
2500
+ h ? ct(xt(p[P]) === h, "All keyframes must be of the same type") : (h = xt(p[P]), ct(h === d || kt(d) && kt(h), "Keyframes must be of the same dimension as the current value"));
2501
2501
  } else
2502
2502
  h = xt(p);
2503
2503
  if (d !== h)
@@ -2688,7 +2688,7 @@ var cs = {
2688
2688
  };
2689
2689
  function ds(t, e, r) {
2690
2690
  r === void 0 && (r = {});
2691
- var n = tt(t) ? t : Pt(t);
2691
+ var n = tt(t) ? t : bt(t);
2692
2692
  return Ke("", n, e, r), {
2693
2693
  stop: function() {
2694
2694
  return n.stop();
@@ -2756,9 +2756,9 @@ function Fr(t, e, r, n, i) {
2756
2756
  var s = I(r, 3), o = s[0], a = s[1], u = s[2];
2757
2757
  ys(t, e[o], e[a], e[u], e.scale, n, i);
2758
2758
  }
2759
- var Ps = ["x", "scaleX", "originX"], bs = ["y", "scaleY", "originY"];
2759
+ var bs = ["x", "scaleX", "originX"], Ps = ["y", "scaleY", "originY"];
2760
2760
  function jr(t, e, r, n) {
2761
- Fr(t.x, e, Ps, r?.x, n?.x), Fr(t.y, e, bs, r?.y, n?.y);
2761
+ Fr(t.x, e, bs, r?.x, n?.x), Fr(t.y, e, Ps, r?.y, n?.y);
2762
2762
  }
2763
2763
  function Br(t) {
2764
2764
  return t.translate === 0 && t.scale === 1;
@@ -2883,13 +2883,13 @@ function qn(t) {
2883
2883
  l.root.updateBlockedByResize = !0, clearTimeout(h), h = window.setTimeout(g, 250), At.hasAnimatedSinceResize && (At.hasAnimatedSinceResize = !1, l.nodes.forEach(Ls));
2884
2884
  });
2885
2885
  }
2886
- c && this.root.registerSharedNode(c, this), this.options.animate !== !1 && p && (c || d) && this.addEventListener("didUpdate", function(P) {
2887
- var b, S, C, A, M, R = P.delta, x = P.hasLayoutChanged, w = P.hasRelativeTargetChanged, D = P.layout;
2886
+ c && this.root.registerSharedNode(c, this), this.options.animate !== !1 && p && (c || d) && this.addEventListener("didUpdate", function(b) {
2887
+ var P, S, C, A, M, R = b.delta, x = b.hasLayoutChanged, w = b.hasRelativeTargetChanged, D = b.layout;
2888
2888
  if (l.isTreeAnimationBlocked()) {
2889
2889
  l.target = void 0, l.relativeTarget = void 0;
2890
2890
  return;
2891
2891
  }
2892
- var H = (S = (b = l.options.transition) !== null && b !== void 0 ? b : p.getDefaultTransition()) !== null && S !== void 0 ? S : js, B = p.getProps(), N = B.onLayoutAnimationStart, rt = B.onLayoutAnimationComplete, nt = !l.targetLayout || !$n(l.targetLayout, D) || w, it = !x && w;
2892
+ var H = (S = (P = l.options.transition) !== null && P !== void 0 ? P : p.getDefaultTransition()) !== null && S !== void 0 ? S : js, B = p.getProps(), N = B.onLayoutAnimationStart, rt = B.onLayoutAnimationComplete, nt = !l.targetLayout || !$n(l.targetLayout, D) || w, it = !x && w;
2893
2893
  if (!((C = l.resumeFrom) === null || C === void 0) && C.instance || it || x && (nt || !l.currentAnimation)) {
2894
2894
  l.resumeFrom && (l.resumingFrom = l.resumeFrom, l.resumingFrom.resumingFrom = void 0), l.setAnimationOrigin(R, it);
2895
2895
  var z = m(m({}, ze(H, "layout")), { onPlay: N, onComplete: rt });
@@ -3063,10 +3063,10 @@ function qn(t) {
3063
3063
  u === void 0 && (u = !1);
3064
3064
  var v = this.snapshot, c = v?.latestValues || {}, d = m({}, this.latestValues), p = Rt();
3065
3065
  this.relativeTarget = this.relativeTargetOrigin = void 0, this.attemptToResolveRelativeTarget = !u;
3066
- var h = j(), g = v?.isShared, P = (((f = this.getStack()) === null || f === void 0 ? void 0 : f.members.length) || 0) <= 1, b = !!(g && !P && this.options.crossfade === !0 && !this.path.some(Fs));
3066
+ var h = j(), g = v?.isShared, b = (((f = this.getStack()) === null || f === void 0 ? void 0 : f.members.length) || 0) <= 1, P = !!(g && !b && this.options.crossfade === !0 && !this.path.some(Fs));
3067
3067
  this.animationProgress = 0, this.mixTargetDelta = function(S) {
3068
3068
  var C, A = S / 1e3;
3069
- Hr(p.x, a.x, A), Hr(p.y, a.y, A), l.setTargetDelta(p), l.relativeTarget && l.relativeTargetOrigin && l.layout && (!((C = l.relativeParent) === null || C === void 0) && C.layout) && (Lt(h, l.layout.actual, l.relativeParent.layout.actual), Os(l.relativeTarget, l.relativeTargetOrigin, h, A)), g && (l.animationValues = d, hs(d, c, l.latestValues, A, b, P)), l.root.scheduleUpdateProjection(), l.scheduleRender(), l.animationProgress = A;
3069
+ Hr(p.x, a.x, A), Hr(p.y, a.y, A), l.setTargetDelta(p), l.relativeTarget && l.relativeTargetOrigin && l.layout && (!((C = l.relativeParent) === null || C === void 0) && C.layout) && (Lt(h, l.layout.actual, l.relativeParent.layout.actual), Os(l.relativeTarget, l.relativeTargetOrigin, h, A)), g && (l.animationValues = d, hs(d, c, l.latestValues, A, P, b)), l.root.scheduleUpdateProjection(), l.scheduleRender(), l.animationProgress = A;
3070
3070
  }, this.mixTargetDelta(0);
3071
3071
  }, o.prototype.startAnimation = function(a) {
3072
3072
  var u = this, l, f;
@@ -3118,8 +3118,8 @@ function qn(t) {
3118
3118
  }, o.prototype.resetRotation = function() {
3119
3119
  var a = this.options.visualElement;
3120
3120
  if (a) {
3121
- for (var u = !1, l = {}, f = 0; f < Pe.length; f++) {
3122
- var v = Pe[f], c = "rotate" + v;
3121
+ for (var u = !1, l = {}, f = 0; f < be.length; f++) {
3122
+ var v = be[f], c = "rotate" + v;
3123
3123
  a.getStaticValue(c) && (u = !0, l[c] = a.getStaticValue(c), a.setStaticValue(c, 0));
3124
3124
  }
3125
3125
  if (u) {
@@ -3144,16 +3144,16 @@ function qn(t) {
3144
3144
  return this.needsReset = !1, p.opacity = "", p.pointerEvents = Xt(a.pointerEvents) || "", p.transform = h ? h(this.latestValues, "") : "none", p;
3145
3145
  var g = this.getLead();
3146
3146
  if (!this.projectionDelta || !this.layout || !g.target) {
3147
- var P = {};
3148
- return this.options.layoutId && (P.opacity = (l = this.latestValues.opacity) !== null && l !== void 0 ? l : 1, P.pointerEvents = Xt(a.pointerEvents) || ""), this.hasProjected && !ot(this.latestValues) && (P.transform = h ? h({}, "") : "none", this.hasProjected = !1), P;
3147
+ var b = {};
3148
+ return this.options.layoutId && (b.opacity = (l = this.latestValues.opacity) !== null && l !== void 0 ? l : 1, b.pointerEvents = Xt(a.pointerEvents) || ""), this.hasProjected && !ot(this.latestValues) && (b.transform = h ? h({}, "") : "none", this.hasProjected = !1), b;
3149
3149
  }
3150
- var b = g.animationValues || g.latestValues;
3151
- this.applyTransformsToTarget(), p.transform = _r(this.projectionDeltaWithTransform, this.treeScale, b), h && (p.transform = h(b, p.transform));
3150
+ var P = g.animationValues || g.latestValues;
3151
+ this.applyTransformsToTarget(), p.transform = _r(this.projectionDeltaWithTransform, this.treeScale, P), h && (p.transform = h(P, p.transform));
3152
3152
  var S = this.projectionDelta, C = S.x, A = S.y;
3153
- p.transformOrigin = "".concat(C.origin * 100, "% ").concat(A.origin * 100, "% 0"), g.animationValues ? p.opacity = g === this ? (v = (f = b.opacity) !== null && f !== void 0 ? f : this.latestValues.opacity) !== null && v !== void 0 ? v : 1 : this.preserveOpacity ? this.latestValues.opacity : b.opacityExit : p.opacity = g === this ? (c = b.opacity) !== null && c !== void 0 ? c : "" : (d = b.opacityExit) !== null && d !== void 0 ? d : 0;
3153
+ p.transformOrigin = "".concat(C.origin * 100, "% ").concat(A.origin * 100, "% 0"), g.animationValues ? p.opacity = g === this ? (v = (f = P.opacity) !== null && f !== void 0 ? f : this.latestValues.opacity) !== null && v !== void 0 ? v : 1 : this.preserveOpacity ? this.latestValues.opacity : P.opacityExit : p.opacity = g === this ? (c = P.opacity) !== null && c !== void 0 ? c : "" : (d = P.opacityExit) !== null && d !== void 0 ? d : 0;
3154
3154
  for (var M in Zt)
3155
- if (b[M] !== void 0) {
3156
- var R = Zt[M], x = R.correct, w = R.applyTo, D = x(b[M], g);
3155
+ if (P[M] !== void 0) {
3156
+ var R = Zt[M], x = R.correct, w = R.applyTo, D = x(P[M], g);
3157
3157
  if (w)
3158
3158
  for (var H = w.length, B = 0; B < H; B++)
3159
3159
  p[w[B]] = D;
@@ -3179,11 +3179,11 @@ function As(t) {
3179
3179
  var e, r, n, i, s = (r = (e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) !== null && r !== void 0 ? r : t.snapshot;
3180
3180
  if (t.isLead() && t.layout && s && t.hasListeners("didUpdate")) {
3181
3181
  var o = t.layout, a = o.actual, u = o.measured;
3182
- t.options.animationType === "size" ? Z(function(b) {
3183
- var S = s.isShared ? s.measured[b] : s.layout[b], C = et(S);
3184
- S.min = a[b].min, S.max = S.min + C;
3185
- }) : t.options.animationType === "position" && Z(function(b) {
3186
- var S = s.isShared ? s.measured[b] : s.layout[b], C = et(a[b]);
3182
+ t.options.animationType === "size" ? Z(function(P) {
3183
+ var S = s.isShared ? s.measured[P] : s.layout[P], C = et(S);
3184
+ S.min = a[P].min, S.max = S.min + C;
3185
+ }) : t.options.animationType === "position" && Z(function(P) {
3186
+ var S = s.isShared ? s.measured[P] : s.layout[P], C = et(a[P]);
3187
3187
  S.max = S.min + C;
3188
3188
  });
3189
3189
  var l = Rt();
@@ -3196,8 +3196,8 @@ function As(t) {
3196
3196
  if (p && h) {
3197
3197
  var g = j();
3198
3198
  Lt(g, s.layout, p.layout);
3199
- var P = j();
3200
- Lt(P, a, h.actual), $n(g, P) || (c = !0);
3199
+ var b = j();
3200
+ Lt(b, a, h.actual), $n(g, b) || (c = !0);
3201
3201
  }
3202
3202
  }
3203
3203
  t.notifyListeners("didUpdate", {
@@ -3392,12 +3392,12 @@ function Gs(t) {
3392
3392
  var Ws = function(t) {
3393
3393
  var e = t.children, r = t.custom, n = t.initial, i = n === void 0 ? !0 : n, s = t.onExitComplete, o = t.exitBeforeEnter, a = t.presenceAffectsLayout, u = a === void 0 ? !0 : a, l = I(Hs(), 1), f = l[0], v = F(De).forceRender;
3394
3394
  v && (f = v);
3395
- var c = Jn(), d = Gs(e), p = d, h = /* @__PURE__ */ new Set(), g = q(p), P = q(/* @__PURE__ */ new Map()).current, b = q(!0);
3395
+ var c = Jn(), d = Gs(e), p = d, h = /* @__PURE__ */ new Set(), g = q(p), b = q(/* @__PURE__ */ new Map()).current, P = q(!0);
3396
3396
  if (Wt(function() {
3397
- b.current = !1, Ks(d, P), g.current = p;
3397
+ P.current = !1, Ks(d, b), g.current = p;
3398
3398
  }), Ue(function() {
3399
- b.current = !0, P.clear(), h.clear();
3400
- }), b.current)
3399
+ P.current = !0, b.clear(), h.clear();
3400
+ }), P.current)
3401
3401
  return K.createElement(K.Fragment, null, p.map(function(x) {
3402
3402
  return K.createElement(de, { key: pt(x), isPresent: !0, initial: i ? void 0 : !1, presenceAffectsLayout: u }, x);
3403
3403
  }));
@@ -3408,10 +3408,10 @@ var Ws = function(t) {
3408
3408
  }
3409
3409
  return o && h.size && (p = []), h.forEach(function(x) {
3410
3410
  if (C.indexOf(x) === -1) {
3411
- var w = P.get(x);
3411
+ var w = b.get(x);
3412
3412
  if (w) {
3413
3413
  var D = S.indexOf(x), H = function() {
3414
- P.delete(x), h.delete(x);
3414
+ b.delete(x), h.delete(x);
3415
3415
  var B = g.current.findIndex(function(N) {
3416
3416
  return N.key === x;
3417
3417
  });