@ukpc-lib/react 0.15.6 → 0.15.7-sandbox.saas-9233.patch-2

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.
@@ -1964,22 +1964,22 @@ en.getAdapter = Fk.getAdapter;
1964
1964
  en.HttpStatusCode = xy;
1965
1965
  en.default = en;
1966
1966
  const {
1967
- Axios: efe,
1968
- AxiosError: tfe,
1969
- CanceledError: nfe,
1970
- isCancel: rfe,
1971
- CancelToken: ife,
1972
- VERSION: sfe,
1973
- all: ofe,
1974
- Cancel: afe,
1975
- isAxiosError: lfe,
1976
- spread: ufe,
1977
- toFormData: cfe,
1978
- AxiosHeaders: ffe,
1979
- HttpStatusCode: dfe,
1980
- formToJSON: hfe,
1981
- getAdapter: pfe,
1982
- mergeConfig: mfe
1967
+ Axios: nfe,
1968
+ AxiosError: rfe,
1969
+ CanceledError: ife,
1970
+ isCancel: sfe,
1971
+ CancelToken: ofe,
1972
+ VERSION: afe,
1973
+ all: lfe,
1974
+ Cancel: ufe,
1975
+ isAxiosError: cfe,
1976
+ spread: ffe,
1977
+ toFormData: dfe,
1978
+ AxiosHeaders: hfe,
1979
+ HttpStatusCode: pfe,
1980
+ formToJSON: mfe,
1981
+ getAdapter: gfe,
1982
+ mergeConfig: vfe
1983
1983
  } = en;
1984
1984
  var Af = /* @__PURE__ */ function() {
1985
1985
  function e() {
@@ -12268,7 +12268,7 @@ function i8({
12268
12268
  }
12269
12269
  ) }) });
12270
12270
  }
12271
- function gfe(e) {
12271
+ function yfe(e) {
12272
12272
  const { user: t, logout: n, isFetching: r } = dU();
12273
12273
  return /* @__PURE__ */ L.jsx(
12274
12274
  TP,
@@ -12424,7 +12424,6 @@ const CP = {
12424
12424
  J0.success(e, {
12425
12425
  icon: /* @__PURE__ */ L.jsx(a8, {}),
12426
12426
  bodyStyle: {},
12427
- position: "bottom-right",
12428
12427
  style: {
12429
12428
  ...CP,
12430
12429
  background: Dn.successLight,
@@ -12436,7 +12435,6 @@ const CP = {
12436
12435
  }, jf = (e, t) => {
12437
12436
  J0.error(e, {
12438
12437
  icon: /* @__PURE__ */ L.jsx(o8, {}),
12439
- position: "bottom-right",
12440
12438
  style: {
12441
12439
  ...CP,
12442
12440
  background: Dn.dangerLight,
@@ -33824,7 +33822,20 @@ const vE = (e) => {
33824
33822
  e ? t.reject(e) : t.resolve();
33825
33823
  }), E0 = [];
33826
33824
  };
33827
- function Lie(e, t) {
33825
+ function Lie(e) {
33826
+ try {
33827
+ const t = e == null ? void 0 : e.url, n = (e == null ? void 0 : e.baseURL) || window.location.origin, i = new URL(t, n).pathname.split("/").filter(Boolean);
33828
+ return i.length <= 3 ? `/${i.join("/")}` || "/" : `/${i[0]}/.../${i[i.length - 1]}`;
33829
+ } catch {
33830
+ return (e == null ? void 0 : e.url) || "";
33831
+ }
33832
+ }
33833
+ function Nie(e, t) {
33834
+ var l, c, d, h, p, y, b, C;
33835
+ const n = (l = e.response) == null ? void 0 : l.status, r = (c = t == null ? void 0 : t.method) == null ? void 0 : c.toUpperCase(), i = Lie(t), s = ((h = (d = e.response) == null ? void 0 : d.data) == null ? void 0 : h.errorMessage) || ((y = (p = e.response) == null ? void 0 : p.data) == null ? void 0 : y.message) || ((C = (b = e.response) == null ? void 0 : b.data) == null ? void 0 : C.title) || e.message || "Unexpected error", o = [n ? `HTTP ${n}` : null, r, i].filter(Boolean);
33836
+ return `${o.join(" ")}${o.length ? " - " : ""}${s}`;
33837
+ }
33838
+ function $ie(e, t) {
33828
33839
  var s, o, l, c, d, h, p;
33829
33840
  const n = e.config, r = ((o = (s = e.response) == null ? void 0 : s.data) == null ? void 0 : o.errorMessage) || ((c = (l = e.response) == null ? void 0 : l.data) == null ? void 0 : c.message), i = r === Aie.TOKEN_EXPIRED;
33830
33841
  if (((d = e.response) == null ? void 0 : d.status) === 401 && i && !n._retry)
@@ -33844,23 +33855,27 @@ function Lie(e, t) {
33844
33855
  }
33845
33856
  return Iie(window.env.AUTHEN_DOMAIN);
33846
33857
  }
33847
- return ((p = e.response) == null ? void 0 : p.status) === 403 || jf(KD(`${r || "Something went wrong!"}`)), r && e.response && e.response.data && (e.response.data.message = r), Promise.reject(e);
33858
+ if (((p = e.response) == null ? void 0 : p.status) !== 403) {
33859
+ const y = Nie(e, n);
33860
+ jf(KD(`${y}`));
33861
+ }
33862
+ return r && e.response && e.response.data && (e.response.data.message = r), Promise.reject(e);
33848
33863
  }
33849
33864
  qn.interceptors.response.use(
33850
33865
  (e) => e,
33851
33866
  // Success handling
33852
- async (e) => Lie(e)
33867
+ async (e) => $ie(e)
33853
33868
  // Error handling
33854
33869
  );
33855
- var Qa = [], Nie = function() {
33870
+ var Qa = [], Fie = function() {
33856
33871
  return Qa.some(function(e) {
33857
33872
  return e.activeTargets.length > 0;
33858
33873
  });
33859
- }, $ie = function() {
33874
+ }, jie = function() {
33860
33875
  return Qa.some(function(e) {
33861
33876
  return e.skippedTargets.length > 0;
33862
33877
  });
33863
- }, yE = "ResizeObserver loop completed with undelivered notifications.", Fie = function() {
33878
+ }, yE = "ResizeObserver loop completed with undelivered notifications.", Bie = function() {
33864
33879
  var e;
33865
33880
  typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
33866
33881
  message: yE
@@ -33871,7 +33886,7 @@ var Qa = [], Nie = function() {
33871
33886
  })(Sf || (Sf = {}));
33872
33887
  var Za = function(e) {
33873
33888
  return Object.freeze(e);
33874
- }, jie = /* @__PURE__ */ function() {
33889
+ }, Vie = /* @__PURE__ */ function() {
33875
33890
  function e(t, n) {
33876
33891
  this.inlineSize = t, this.blockSize = n, Za(this);
33877
33892
  }
@@ -33901,7 +33916,7 @@ var Za = function(e) {
33901
33916
  return !0;
33902
33917
  var n = (t = e == null ? void 0 : e.ownerDocument) === null || t === void 0 ? void 0 : t.defaultView;
33903
33918
  return !!(n && e instanceof n.Element);
33904
- }, Bie = function(e) {
33919
+ }, Wie = function(e) {
33905
33920
  switch (e.tagName) {
33906
33921
  case "INPUT":
33907
33922
  if (e.type !== "image")
@@ -33916,10 +33931,10 @@ var Za = function(e) {
33916
33931
  return !0;
33917
33932
  }
33918
33933
  return !1;
33919
- }, Kc = typeof window < "u" ? window : {}, mh = /* @__PURE__ */ new WeakMap(), xE = /auto|scroll/, Vie = /^tb|vertical/, Wie = /msie|trident/i.test(Kc.navigator && Kc.navigator.userAgent), ns = function(e) {
33934
+ }, Kc = typeof window < "u" ? window : {}, mh = /* @__PURE__ */ new WeakMap(), xE = /auto|scroll/, Hie = /^tb|vertical/, Uie = /msie|trident/i.test(Kc.navigator && Kc.navigator.userAgent), ns = function(e) {
33920
33935
  return parseFloat(e || "0");
33921
33936
  }, su = function(e, t, n) {
33922
- return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new jie((n ? t : e) || 0, (n ? e : t) || 0);
33937
+ return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new Vie((n ? t : e) || 0, (n ? e : t) || 0);
33923
33938
  }, wE = Za({
33924
33939
  devicePixelContentBoxSize: su(),
33925
33940
  borderBoxSize: su(),
@@ -33930,7 +33945,7 @@ var Za = function(e) {
33930
33945
  return mh.get(e);
33931
33946
  if (lR(e))
33932
33947
  return mh.set(e, wE), wE;
33933
- var n = getComputedStyle(e), r = Ux(e) && e.ownerSVGElement && e.getBBox(), i = !Wie && n.boxSizing === "border-box", s = Vie.test(n.writingMode || ""), o = !r && xE.test(n.overflowY || ""), l = !r && xE.test(n.overflowX || ""), c = r ? 0 : ns(n.paddingTop), d = r ? 0 : ns(n.paddingRight), h = r ? 0 : ns(n.paddingBottom), p = r ? 0 : ns(n.paddingLeft), y = r ? 0 : ns(n.borderTopWidth), b = r ? 0 : ns(n.borderRightWidth), C = r ? 0 : ns(n.borderBottomWidth), w = r ? 0 : ns(n.borderLeftWidth), E = p + d, _ = c + h, I = w + b, P = y + C, V = l ? e.offsetHeight - P - e.clientHeight : 0, N = o ? e.offsetWidth - I - e.clientWidth : 0, j = i ? E + I : 0, v = i ? _ + P : 0, Y = r ? r.width : ns(n.width) - j - N, z = r ? r.height : ns(n.height) - v - V, se = Y + E + N + I, ae = z + _ + V + P, ye = Za({
33948
+ var n = getComputedStyle(e), r = Ux(e) && e.ownerSVGElement && e.getBBox(), i = !Uie && n.boxSizing === "border-box", s = Hie.test(n.writingMode || ""), o = !r && xE.test(n.overflowY || ""), l = !r && xE.test(n.overflowX || ""), c = r ? 0 : ns(n.paddingTop), d = r ? 0 : ns(n.paddingRight), h = r ? 0 : ns(n.paddingBottom), p = r ? 0 : ns(n.paddingLeft), y = r ? 0 : ns(n.borderTopWidth), b = r ? 0 : ns(n.borderRightWidth), C = r ? 0 : ns(n.borderBottomWidth), w = r ? 0 : ns(n.borderLeftWidth), E = p + d, _ = c + h, I = w + b, P = y + C, V = l ? e.offsetHeight - P - e.clientHeight : 0, N = o ? e.offsetWidth - I - e.clientWidth : 0, j = i ? E + I : 0, v = i ? _ + P : 0, Y = r ? r.width : ns(n.width) - j - N, z = r ? r.height : ns(n.height) - v - V, se = Y + E + N + I, ae = z + _ + V + P, ye = Za({
33934
33949
  devicePixelContentBoxSize: su(Math.round(Y * devicePixelRatio), Math.round(z * devicePixelRatio), s),
33935
33950
  borderBoxSize: su(se, ae, s),
33936
33951
  contentBoxSize: su(Y, z, s),
@@ -33947,7 +33962,7 @@ var Za = function(e) {
33947
33962
  default:
33948
33963
  return s;
33949
33964
  }
33950
- }, Hie = /* @__PURE__ */ function() {
33965
+ }, zie = /* @__PURE__ */ function() {
33951
33966
  function e(t) {
33952
33967
  var n = uR(t);
33953
33968
  this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = Za([n.borderBoxSize]), this.contentBoxSize = Za([n.contentBoxSize]), this.devicePixelContentBoxSize = Za([n.devicePixelContentBoxSize]);
@@ -33959,13 +33974,13 @@ var Za = function(e) {
33959
33974
  for (var t = 0, n = e.parentNode; n; )
33960
33975
  t += 1, n = n.parentNode;
33961
33976
  return t;
33962
- }, Uie = function() {
33977
+ }, Yie = function() {
33963
33978
  var e = 1 / 0, t = [];
33964
33979
  Qa.forEach(function(o) {
33965
33980
  if (o.activeTargets.length !== 0) {
33966
33981
  var l = [];
33967
33982
  o.activeTargets.forEach(function(d) {
33968
- var h = new Hie(d.target), p = fR(d.target);
33983
+ var h = new zie(d.target), p = fR(d.target);
33969
33984
  l.push(h), d.lastReportedSize = cR(d.target, d.observedBox), p < e && (e = p);
33970
33985
  }), t.push(function() {
33971
33986
  o.callback.call(o.observer, l, o.observer);
@@ -33983,32 +33998,32 @@ var Za = function(e) {
33983
33998
  i.isActive() && (fR(i.target) > e ? n.activeTargets.push(i) : n.skippedTargets.push(i));
33984
33999
  });
33985
34000
  });
33986
- }, zie = function() {
34001
+ }, qie = function() {
33987
34002
  var e = 0;
33988
- for (SE(e); Nie(); )
33989
- e = Uie(), SE(e);
33990
- return $ie() && Fie(), e > 0;
33991
- }, Zv, dR = [], Yie = function() {
34003
+ for (SE(e); Fie(); )
34004
+ e = Yie(), SE(e);
34005
+ return jie() && Bie(), e > 0;
34006
+ }, Zv, dR = [], Gie = function() {
33992
34007
  return dR.splice(0).forEach(function(e) {
33993
34008
  return e();
33994
34009
  });
33995
- }, qie = function(e) {
34010
+ }, Kie = function(e) {
33996
34011
  if (!Zv) {
33997
34012
  var t = 0, n = document.createTextNode(""), r = { characterData: !0 };
33998
34013
  new MutationObserver(function() {
33999
- return Yie();
34014
+ return Gie();
34000
34015
  }).observe(n, r), Zv = function() {
34001
34016
  n.textContent = "".concat(t ? t-- : t++);
34002
34017
  };
34003
34018
  }
34004
34019
  dR.push(e), Zv();
34005
- }, Gie = function(e) {
34006
- qie(function() {
34020
+ }, Xie = function(e) {
34021
+ Kie(function() {
34007
34022
  requestAnimationFrame(e);
34008
34023
  });
34009
- }, Uh = 0, Kie = function() {
34024
+ }, Uh = 0, Qie = function() {
34010
34025
  return !!Uh;
34011
- }, Xie = 250, Qie = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, TE = [
34026
+ }, Zie = 250, Jie = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, TE = [
34012
34027
  "resize",
34013
34028
  "load",
34014
34029
  "transitionend",
@@ -34025,7 +34040,7 @@ var Za = function(e) {
34025
34040
  "focus"
34026
34041
  ], CE = function(e) {
34027
34042
  return e === void 0 && (e = 0), Date.now() + e;
34028
- }, Jv = !1, Zie = function() {
34043
+ }, Jv = !1, ese = function() {
34029
34044
  function e() {
34030
34045
  var t = this;
34031
34046
  this.stopped = !0, this.listener = function() {
@@ -34034,15 +34049,15 @@ var Za = function(e) {
34034
34049
  }
34035
34050
  return e.prototype.run = function(t) {
34036
34051
  var n = this;
34037
- if (t === void 0 && (t = Xie), !Jv) {
34052
+ if (t === void 0 && (t = Zie), !Jv) {
34038
34053
  Jv = !0;
34039
34054
  var r = CE(t);
34040
- Gie(function() {
34055
+ Xie(function() {
34041
34056
  var i = !1;
34042
34057
  try {
34043
- i = zie();
34058
+ i = qie();
34044
34059
  } finally {
34045
- if (Jv = !1, t = r - CE(), !Kie())
34060
+ if (Jv = !1, t = r - CE(), !Qie())
34046
34061
  return;
34047
34062
  i ? n.run(1e3) : t > 0 ? n.run(t) : n.start();
34048
34063
  }
@@ -34052,7 +34067,7 @@ var Za = function(e) {
34052
34067
  this.stop(), this.run();
34053
34068
  }, e.prototype.observe = function() {
34054
34069
  var t = this, n = function() {
34055
- return t.observer && t.observer.observe(document.body, Qie);
34070
+ return t.observer && t.observer.observe(document.body, Jie);
34056
34071
  };
34057
34072
  document.body ? n() : Kc.addEventListener("DOMContentLoaded", n);
34058
34073
  }, e.prototype.start = function() {
@@ -34066,11 +34081,11 @@ var Za = function(e) {
34066
34081
  return Kc.removeEventListener(n, t.listener, !0);
34067
34082
  }), this.stopped = !0);
34068
34083
  }, e;
34069
- }(), D0 = new Zie(), _E = function(e) {
34084
+ }(), D0 = new ese(), _E = function(e) {
34070
34085
  !Uh && e > 0 && D0.start(), Uh += e, !Uh && D0.stop();
34071
- }, Jie = function(e) {
34072
- return !Ux(e) && !Bie(e) && getComputedStyle(e).display === "inline";
34073
- }, ese = function() {
34086
+ }, tse = function(e) {
34087
+ return !Ux(e) && !Wie(e) && getComputedStyle(e).display === "inline";
34088
+ }, nse = function() {
34074
34089
  function e(t, n) {
34075
34090
  this.target = t, this.observedBox = n || Sf.CONTENT_BOX, this.lastReportedSize = {
34076
34091
  inlineSize: 0,
@@ -34079,9 +34094,9 @@ var Za = function(e) {
34079
34094
  }
34080
34095
  return e.prototype.isActive = function() {
34081
34096
  var t = cR(this.target, this.observedBox, !0);
34082
- return Jie(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize;
34097
+ return tse(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize;
34083
34098
  }, e;
34084
- }(), tse = /* @__PURE__ */ function() {
34099
+ }(), rse = /* @__PURE__ */ function() {
34085
34100
  function e(t, n) {
34086
34101
  this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = t, this.callback = n;
34087
34102
  }
@@ -34095,11 +34110,11 @@ var Za = function(e) {
34095
34110
  function e() {
34096
34111
  }
34097
34112
  return e.connect = function(t, n) {
34098
- var r = new tse(t, n);
34113
+ var r = new rse(t, n);
34099
34114
  gh.set(t, r);
34100
34115
  }, e.observe = function(t, n, r) {
34101
34116
  var i = gh.get(t), s = i.observationTargets.length === 0;
34102
- EE(i.observationTargets, n) < 0 && (s && Qa.push(i), i.observationTargets.push(new ese(n, r && r.box)), _E(1), D0.schedule());
34117
+ EE(i.observationTargets, n) < 0 && (s && Qa.push(i), i.observationTargets.push(new nse(n, r && r.box)), _E(1), D0.schedule());
34103
34118
  }, e.unobserve = function(t, n) {
34104
34119
  var r = gh.get(t), i = EE(r.observationTargets, n), s = r.observationTargets.length === 1;
34105
34120
  i >= 0 && (s && Qa.splice(Qa.indexOf(r), 1), r.observationTargets.splice(i, 1), _E(-1));
@@ -34109,7 +34124,7 @@ var Za = function(e) {
34109
34124
  return n.unobserve(t, i.target);
34110
34125
  }), r.activeTargets.splice(0, r.activeTargets.length);
34111
34126
  }, e;
34112
- }(), nse = function() {
34127
+ }(), ise = function() {
34113
34128
  function e(t) {
34114
34129
  if (arguments.length === 0)
34115
34130
  throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
@@ -34136,7 +34151,7 @@ var Za = function(e) {
34136
34151
  }, e;
34137
34152
  }();
34138
34153
  const hR = A.createContext({});
34139
- function rse(e) {
34154
+ function sse(e) {
34140
34155
  const t = A.useRef(null);
34141
34156
  return t.current === null && (t.current = e()), t.current;
34142
34157
  }
@@ -34145,7 +34160,7 @@ const zx = A.createContext(null), pR = A.createContext({
34145
34160
  isStatic: !1,
34146
34161
  reducedMotion: "never"
34147
34162
  });
34148
- function ise(e = !0) {
34163
+ function ose(e = !0) {
34149
34164
  const t = A.useContext(zx);
34150
34165
  if (t === null)
34151
34166
  return [!0, null];
@@ -34156,7 +34171,7 @@ function ise(e = !0) {
34156
34171
  const o = A.useCallback(() => e && r && r(s), [s, r, e]);
34157
34172
  return !n && r ? [!1, o] : [!0];
34158
34173
  }
34159
- const Yx = typeof window < "u", sse = Yx ? A.useLayoutEffect : A.useEffect, Gr = /* @__NO_SIDE_EFFECTS__ */ (e) => e;
34174
+ const Yx = typeof window < "u", ase = Yx ? A.useLayoutEffect : A.useEffect, Gr = /* @__NO_SIDE_EFFECTS__ */ (e) => e;
34160
34175
  let mR = Gr;
34161
34176
  // @__NO_SIDE_EFFECTS__
34162
34177
  function qx(e) {
@@ -34166,10 +34181,10 @@ function qx(e) {
34166
34181
  const mu = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
34167
34182
  const r = t - e;
34168
34183
  return r === 0 ? 1 : (n - e) / r;
34169
- }, Ys = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, qs = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, ose = {
34184
+ }, Ys = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, qs = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, lse = {
34170
34185
  useManualTiming: !1
34171
34186
  };
34172
- function ase(e) {
34187
+ function use(e) {
34173
34188
  let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1;
34174
34189
  const s = /* @__PURE__ */ new WeakSet();
34175
34190
  let o = {
@@ -34220,16 +34235,16 @@ const yh = [
34220
34235
  // Write
34221
34236
  "postRender"
34222
34237
  // Compute
34223
- ], lse = 40;
34238
+ ], cse = 40;
34224
34239
  function gR(e, t) {
34225
34240
  let n = !1, r = !0;
34226
34241
  const i = {
34227
34242
  delta: 0,
34228
34243
  timestamp: 0,
34229
34244
  isProcessing: !1
34230
- }, s = () => n = !0, o = yh.reduce((_, I) => (_[I] = ase(s), _), {}), { read: l, resolveKeyframes: c, update: d, preRender: h, render: p, postRender: y } = o, b = () => {
34245
+ }, s = () => n = !0, o = yh.reduce((_, I) => (_[I] = use(s), _), {}), { read: l, resolveKeyframes: c, update: d, preRender: h, render: p, postRender: y } = o, b = () => {
34231
34246
  const _ = performance.now();
34232
- n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(_ - i.timestamp, lse), 1), i.timestamp = _, i.isProcessing = !0, l.process(i), c.process(i), d.process(i), h.process(i), p.process(i), y.process(i), i.isProcessing = !1, n && t && (r = !1, e(b));
34247
+ n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(_ - i.timestamp, cse), 1), i.timestamp = _, i.isProcessing = !0, l.process(i), c.process(i), d.process(i), h.process(i), p.process(i), y.process(i), i.isProcessing = !1, n && t && (r = !1, e(b));
34233
34248
  }, C = () => {
34234
34249
  n = !0, r = !0, i.isProcessing || e(b);
34235
34250
  };
@@ -34265,14 +34280,14 @@ for (const e in DE)
34265
34280
  gu[e] = {
34266
34281
  isEnabled: (t) => DE[e].some((n) => !!t[n])
34267
34282
  };
34268
- function use(e) {
34283
+ function fse(e) {
34269
34284
  for (const t in e)
34270
34285
  gu[t] = {
34271
34286
  ...gu[t],
34272
34287
  ...e[t]
34273
34288
  };
34274
34289
  }
34275
- const cse = /* @__PURE__ */ new Set([
34290
+ const dse = /* @__PURE__ */ new Set([
34276
34291
  "animate",
34277
34292
  "exit",
34278
34293
  "variants",
@@ -34305,24 +34320,24 @@ const cse = /* @__PURE__ */ new Set([
34305
34320
  "viewport"
34306
34321
  ]);
34307
34322
  function Np(e) {
34308
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || cse.has(e);
34323
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || dse.has(e);
34309
34324
  }
34310
34325
  let yR = (e) => !Np(e);
34311
- function fse(e) {
34326
+ function hse(e) {
34312
34327
  e && (yR = (t) => t.startsWith("on") ? !Np(t) : e(t));
34313
34328
  }
34314
34329
  try {
34315
- fse(require("@emotion/is-prop-valid").default);
34330
+ hse(require("@emotion/is-prop-valid").default);
34316
34331
  } catch {
34317
34332
  }
34318
- function dse(e, t, n) {
34333
+ function pse(e, t, n) {
34319
34334
  const r = {};
34320
34335
  for (const i in e)
34321
34336
  i === "values" && typeof e.values == "object" || (yR(i) || n === !0 && Np(i) || !t && !Np(i) || // If trying to use native HTML drag events, forward drag listeners
34322
34337
  e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]);
34323
34338
  return r;
34324
34339
  }
34325
- function hse(e) {
34340
+ function mse(e) {
34326
34341
  if (typeof Proxy > "u")
34327
34342
  return e;
34328
34343
  const t = /* @__PURE__ */ new Map(), n = (...r) => e(...r);
@@ -34357,7 +34372,7 @@ function Nm(e) {
34357
34372
  function bR(e) {
34358
34373
  return !!(Nm(e) || e.variants);
34359
34374
  }
34360
- function pse(e, t) {
34375
+ function gse(e, t) {
34361
34376
  if (Nm(e)) {
34362
34377
  const { initial: n, animate: r } = e;
34363
34378
  return {
@@ -34367,18 +34382,18 @@ function pse(e, t) {
34367
34382
  }
34368
34383
  return e.inherit !== !1 ? t : {};
34369
34384
  }
34370
- function mse(e) {
34371
- const { initial: t, animate: n } = pse(e, A.useContext(Rm));
34385
+ function vse(e) {
34386
+ const { initial: t, animate: n } = gse(e, A.useContext(Rm));
34372
34387
  return A.useMemo(() => ({ initial: t, animate: n }), [kE(t), kE(n)]);
34373
34388
  }
34374
34389
  function kE(e) {
34375
34390
  return Array.isArray(e) ? e.join(" ") : e;
34376
34391
  }
34377
- const gse = Symbol.for("motionComponentSymbol");
34392
+ const yse = Symbol.for("motionComponentSymbol");
34378
34393
  function Xl(e) {
34379
34394
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
34380
34395
  }
34381
- function vse(e, t, n) {
34396
+ function bse(e, t, n) {
34382
34397
  return A.useCallback(
34383
34398
  (r) => {
34384
34399
  r && e.onMount && e.onMount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : Xl(n) && (n.current = r));
@@ -34391,8 +34406,8 @@ function vse(e, t, n) {
34391
34406
  [t]
34392
34407
  );
34393
34408
  }
34394
- const Xx = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), yse = "framerAppearId", xR = "data-" + Xx(yse), { schedule: Qx } = gR(queueMicrotask, !1), wR = A.createContext({});
34395
- function bse(e, t, n, r, i) {
34409
+ const Xx = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), xse = "framerAppearId", xR = "data-" + Xx(xse), { schedule: Qx } = gR(queueMicrotask, !1), wR = A.createContext({});
34410
+ function wse(e, t, n, r, i) {
34396
34411
  var s, o;
34397
34412
  const { visualElement: l } = A.useContext(Rm), c = A.useContext(vR), d = A.useContext(zx), h = A.useContext(pR).reducedMotion, p = A.useRef(null);
34398
34413
  r = r || c.renderer, !p.current && r && (p.current = r(e, {
@@ -34404,13 +34419,13 @@ function bse(e, t, n, r, i) {
34404
34419
  reducedMotionConfig: h
34405
34420
  }));
34406
34421
  const y = p.current, b = A.useContext(wR);
34407
- y && !y.projection && i && (y.type === "html" || y.type === "svg") && xse(p.current, n, i, b);
34422
+ y && !y.projection && i && (y.type === "html" || y.type === "svg") && Sse(p.current, n, i, b);
34408
34423
  const C = A.useRef(!1);
34409
34424
  A.useInsertionEffect(() => {
34410
34425
  y && C.current && y.update(n, d);
34411
34426
  });
34412
34427
  const w = n[xR], E = A.useRef(!!w && !(!((s = window.MotionHandoffIsComplete) === null || s === void 0) && s.call(window, w)) && ((o = window.MotionHasOptimisedAnimation) === null || o === void 0 ? void 0 : o.call(window, w)));
34413
- return sse(() => {
34428
+ return ase(() => {
34414
34429
  y && (C.current = !0, window.MotionIsMounted = !0, y.updateFeatures(), Qx.render(y.render), E.current && y.animationState && y.animationState.animateChanges());
34415
34430
  }), A.useEffect(() => {
34416
34431
  y && (!E.current && y.animationState && y.animationState.animateChanges(), E.current && (queueMicrotask(() => {
@@ -34419,7 +34434,7 @@ function bse(e, t, n, r, i) {
34419
34434
  }), E.current = !1));
34420
34435
  }), y;
34421
34436
  }
34422
- function xse(e, t, n, r) {
34437
+ function Sse(e, t, n, r) {
34423
34438
  const { layoutId: i, layout: s, drag: o, dragConstraints: l, layoutScroll: c, layoutRoot: d } = t;
34424
34439
  e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : SR(e.parent)), e.projection.setOptions({
34425
34440
  layoutId: i,
@@ -34443,35 +34458,35 @@ function SR(e) {
34443
34458
  if (e)
34444
34459
  return e.options.allowProjection !== !1 ? e.projection : SR(e.parent);
34445
34460
  }
34446
- function wse({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: r, Component: i }) {
34461
+ function Tse({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: r, Component: i }) {
34447
34462
  var s, o;
34448
- e && use(e);
34463
+ e && fse(e);
34449
34464
  function l(d, h) {
34450
34465
  let p;
34451
34466
  const y = {
34452
34467
  ...A.useContext(pR),
34453
34468
  ...d,
34454
- layoutId: Sse(d)
34455
- }, { isStatic: b } = y, C = mse(d), w = r(d, b);
34469
+ layoutId: Cse(d)
34470
+ }, { isStatic: b } = y, C = vse(d), w = r(d, b);
34456
34471
  if (!b && Yx) {
34457
- Tse();
34458
- const E = Cse(y);
34459
- p = E.MeasureLayout, C.visualElement = bse(i, w, y, t, E.ProjectionNode);
34472
+ _se();
34473
+ const E = Ese(y);
34474
+ p = E.MeasureLayout, C.visualElement = wse(i, w, y, t, E.ProjectionNode);
34460
34475
  }
34461
- return L.jsxs(Rm.Provider, { value: C, children: [p && C.visualElement ? L.jsx(p, { visualElement: C.visualElement, ...y }) : null, n(i, d, vse(w, C.visualElement, h), w, b, C.visualElement)] });
34476
+ return L.jsxs(Rm.Provider, { value: C, children: [p && C.visualElement ? L.jsx(p, { visualElement: C.visualElement, ...y }) : null, n(i, d, bse(w, C.visualElement, h), w, b, C.visualElement)] });
34462
34477
  }
34463
34478
  l.displayName = `motion.${typeof i == "string" ? i : `create(${(o = (s = i.displayName) !== null && s !== void 0 ? s : i.name) !== null && o !== void 0 ? o : ""})`}`;
34464
34479
  const c = A.forwardRef(l);
34465
- return c[gse] = i, c;
34480
+ return c[yse] = i, c;
34466
34481
  }
34467
- function Sse({ layoutId: e }) {
34482
+ function Cse({ layoutId: e }) {
34468
34483
  const t = A.useContext(hR).id;
34469
34484
  return t && e !== void 0 ? t + "-" + e : e;
34470
34485
  }
34471
- function Tse(e, t) {
34486
+ function _se(e, t) {
34472
34487
  A.useContext(vR).strict;
34473
34488
  }
34474
- function Cse(e) {
34489
+ function Ese(e) {
34475
34490
  const { drag: t, layout: n } = gu;
34476
34491
  if (!t && !n)
34477
34492
  return {};
@@ -34481,7 +34496,7 @@ function Cse(e) {
34481
34496
  ProjectionNode: r.ProjectionNode
34482
34497
  };
34483
34498
  }
34484
- const _se = [
34499
+ const Dse = [
34485
34500
  "animate",
34486
34501
  "circle",
34487
34502
  "defs",
@@ -34521,7 +34536,7 @@ function Zx(e) {
34521
34536
  /**
34522
34537
  * If it's in our list of lowercase SVG tags, it's an SVG component
34523
34538
  */
34524
- !!(_se.indexOf(e) > -1 || /**
34539
+ !!(Dse.indexOf(e) > -1 || /**
34525
34540
  * If it contains a capital letter, it's an SVG component
34526
34541
  */
34527
34542
  /[A-Z]/u.test(e))
@@ -34545,23 +34560,23 @@ function Jx(e, t, n, r) {
34545
34560
  }
34546
34561
  return t;
34547
34562
  }
34548
- const k0 = (e) => Array.isArray(e), Ese = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), Dse = (e) => k0(e) ? e[e.length - 1] || 0 : e, Un = (e) => !!(e && e.getVelocity);
34563
+ const k0 = (e) => Array.isArray(e), kse = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), Ose = (e) => k0(e) ? e[e.length - 1] || 0 : e, Un = (e) => !!(e && e.getVelocity);
34549
34564
  function zh(e) {
34550
34565
  const t = Un(e) ? e.get() : e;
34551
- return Ese(t) ? t.toValue() : t;
34566
+ return kse(t) ? t.toValue() : t;
34552
34567
  }
34553
- function kse({ scrapeMotionValuesFromProps: e, createRenderState: t, onUpdate: n }, r, i, s) {
34568
+ function Pse({ scrapeMotionValuesFromProps: e, createRenderState: t, onUpdate: n }, r, i, s) {
34554
34569
  const o = {
34555
- latestValues: Ose(r, i, s, e),
34570
+ latestValues: Mse(r, i, s, e),
34556
34571
  renderState: t()
34557
34572
  };
34558
34573
  return n && (o.onMount = (l) => n({ props: r, current: l, ...o }), o.onUpdate = (l) => n(l)), o;
34559
34574
  }
34560
34575
  const TR = (e) => (t, n) => {
34561
- const r = A.useContext(Rm), i = A.useContext(zx), s = () => kse(e, t, r, i);
34562
- return n ? s() : rse(s);
34576
+ const r = A.useContext(Rm), i = A.useContext(zx), s = () => Pse(e, t, r, i);
34577
+ return n ? s() : sse(s);
34563
34578
  };
34564
- function Ose(e, t, n, r) {
34579
+ function Mse(e, t, n, r) {
34565
34580
  const i = {}, s = r(e, {});
34566
34581
  for (const y in s)
34567
34582
  i[y] = zh(s[y]);
@@ -34610,7 +34625,7 @@ const Ou = [
34610
34625
  "skew",
34611
34626
  "skewX",
34612
34627
  "skewY"
34613
- ], cl = new Set(Ou), CR = (e) => (t) => typeof t == "string" && t.startsWith(e), _R = /* @__PURE__ */ CR("--"), Pse = /* @__PURE__ */ CR("var(--"), ew = (e) => Pse(e) ? Mse.test(e.split("/*")[0].trim()) : !1, Mse = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, ER = (e, t) => t && typeof e == "number" ? t.transform(e) : e, to = (e, t, n) => n > t ? t : n < e ? e : n, Pu = {
34628
+ ], cl = new Set(Ou), CR = (e) => (t) => typeof t == "string" && t.startsWith(e), _R = /* @__PURE__ */ CR("--"), Ase = /* @__PURE__ */ CR("var(--"), ew = (e) => Ase(e) ? Ise.test(e.split("/*")[0].trim()) : !1, Ise = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, ER = (e, t) => t && typeof e == "number" ? t.transform(e) : e, to = (e, t, n) => n > t ? t : n < e ? e : n, Pu = {
34614
34629
  test: (e) => typeof e == "number",
34615
34630
  parse: parseFloat,
34616
34631
  transform: (e) => e
@@ -34624,11 +34639,11 @@ const Ou = [
34624
34639
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
34625
34640
  parse: parseFloat,
34626
34641
  transform: (t) => `${t}${e}`
34627
- }), Mo = /* @__PURE__ */ Uf("deg"), fs = /* @__PURE__ */ Uf("%"), Ye = /* @__PURE__ */ Uf("px"), Ase = /* @__PURE__ */ Uf("vh"), Ise = /* @__PURE__ */ Uf("vw"), PE = {
34642
+ }), Mo = /* @__PURE__ */ Uf("deg"), fs = /* @__PURE__ */ Uf("%"), Ye = /* @__PURE__ */ Uf("px"), Rse = /* @__PURE__ */ Uf("vh"), Lse = /* @__PURE__ */ Uf("vw"), PE = {
34628
34643
  ...fs,
34629
34644
  parse: (e) => fs.parse(e) / 100,
34630
34645
  transform: (e) => fs.transform(e * 100)
34631
- }, Rse = {
34646
+ }, Nse = {
34632
34647
  // Border props
34633
34648
  borderWidth: Ye,
34634
34649
  borderTopWidth: Ye,
@@ -34664,7 +34679,7 @@ const Ou = [
34664
34679
  // Misc
34665
34680
  backgroundPositionX: Ye,
34666
34681
  backgroundPositionY: Ye
34667
- }, Lse = {
34682
+ }, $se = {
34668
34683
  rotate: Mo,
34669
34684
  rotateX: Mo,
34670
34685
  rotateY: Mo,
@@ -34693,23 +34708,23 @@ const Ou = [
34693
34708
  ...Pu,
34694
34709
  transform: Math.round
34695
34710
  }, tw = {
34696
- ...Rse,
34697
- ...Lse,
34711
+ ...Nse,
34712
+ ...$se,
34698
34713
  zIndex: ME,
34699
34714
  size: Ye,
34700
34715
  // SVG
34701
34716
  fillOpacity: Cf,
34702
34717
  strokeOpacity: Cf,
34703
34718
  numOctaves: ME
34704
- }, Nse = {
34719
+ }, Fse = {
34705
34720
  x: "translateX",
34706
34721
  y: "translateY",
34707
34722
  z: "translateZ",
34708
34723
  transformPerspective: "perspective"
34709
- }, $se = Ou.length;
34710
- function Fse(e, t, n) {
34724
+ }, jse = Ou.length;
34725
+ function Bse(e, t, n) {
34711
34726
  let r = "", i = !0;
34712
- for (let s = 0; s < $se; s++) {
34727
+ for (let s = 0; s < jse; s++) {
34713
34728
  const o = Ou[s], l = e[o];
34714
34729
  if (l === void 0)
34715
34730
  continue;
@@ -34718,7 +34733,7 @@ function Fse(e, t, n) {
34718
34733
  const d = ER(l, tw[o]);
34719
34734
  if (!c) {
34720
34735
  i = !1;
34721
- const h = Nse[o] || o;
34736
+ const h = Fse[o] || o;
34722
34737
  r += `${h}(${d}) `;
34723
34738
  }
34724
34739
  n && (t[o] = d);
@@ -34742,21 +34757,21 @@ function nw(e, t, n) {
34742
34757
  c.startsWith("origin") ? (l = !0, s[c] = h) : r[c] = h;
34743
34758
  }
34744
34759
  }
34745
- if (t.transform || (o || n ? r.transform = Fse(t, e.transform, n) : r.transform && (r.transform = "none")), l) {
34760
+ if (t.transform || (o || n ? r.transform = Bse(t, e.transform, n) : r.transform && (r.transform = "none")), l) {
34746
34761
  const { originX: c = "50%", originY: d = "50%", originZ: h = 0 } = s;
34747
34762
  r.transformOrigin = `${c} ${d} ${h}`;
34748
34763
  }
34749
34764
  }
34750
- const jse = {
34765
+ const Vse = {
34751
34766
  offset: "stroke-dashoffset",
34752
34767
  array: "stroke-dasharray"
34753
- }, Bse = {
34768
+ }, Wse = {
34754
34769
  offset: "strokeDashoffset",
34755
34770
  array: "strokeDasharray"
34756
34771
  };
34757
- function Vse(e, t, n = 1, r = 0, i = !0) {
34772
+ function Hse(e, t, n = 1, r = 0, i = !0) {
34758
34773
  e.pathLength = 1;
34759
- const s = i ? jse : Bse;
34774
+ const s = i ? Vse : Wse;
34760
34775
  e[s.offset] = Ye.transform(-r);
34761
34776
  const o = Ye.transform(t), l = Ye.transform(n);
34762
34777
  e[s.array] = `${o} ${l}`;
@@ -34764,7 +34779,7 @@ function Vse(e, t, n = 1, r = 0, i = !0) {
34764
34779
  function AE(e, t, n) {
34765
34780
  return typeof e == "string" ? e : Ye.transform(t + n * e);
34766
34781
  }
34767
- function Wse(e, t, n) {
34782
+ function Use(e, t, n) {
34768
34783
  const r = AE(t, e.x, e.width), i = AE(n, e.y, e.height);
34769
34784
  return `${r} ${i}`;
34770
34785
  }
@@ -34786,7 +34801,7 @@ function rw(e, {
34786
34801
  }
34787
34802
  e.attrs = e.style, e.style = {};
34788
34803
  const { attrs: y, style: b, dimensions: C } = e;
34789
- y.transform && (C && (b.transform = y.transform), delete y.transform), C && (i !== void 0 || s !== void 0 || b.transform) && (b.transformOrigin = Wse(C, i !== void 0 ? i : 0.5, s !== void 0 ? s : 0.5)), t !== void 0 && (y.x = t), n !== void 0 && (y.y = n), r !== void 0 && (y.scale = r), o !== void 0 && Vse(y, o, l, c, !1);
34804
+ y.transform && (C && (b.transform = y.transform), delete y.transform), C && (i !== void 0 || s !== void 0 || b.transform) && (b.transformOrigin = Use(C, i !== void 0 ? i : 0.5, s !== void 0 ? s : 0.5)), t !== void 0 && (y.x = t), n !== void 0 && (y.y = n), r !== void 0 && (y.scale = r), o !== void 0 && Hse(y, o, l, c, !1);
34790
34805
  }
34791
34806
  const iw = () => ({
34792
34807
  style: {},
@@ -34833,7 +34848,7 @@ function PR(e, t, n, r) {
34833
34848
  e.setAttribute(OR.has(i) ? i : Xx(i), t.attrs[i]);
34834
34849
  }
34835
34850
  const $p = {};
34836
- function Hse(e) {
34851
+ function zse(e) {
34837
34852
  Object.assign($p, e);
34838
34853
  }
34839
34854
  function MR(e, { layout: t, layoutId: n }) {
@@ -34855,7 +34870,7 @@ function AR(e, t, n) {
34855
34870
  }
34856
34871
  return r;
34857
34872
  }
34858
- function Use(e, t) {
34873
+ function Yse(e, t) {
34859
34874
  try {
34860
34875
  t.dimensions = typeof e.getBBox == "function" ? e.getBBox() : e.getBoundingClientRect();
34861
34876
  } catch {
@@ -34867,7 +34882,7 @@ function Use(e, t) {
34867
34882
  };
34868
34883
  }
34869
34884
  }
34870
- const IE = ["x", "y", "width", "height", "cx", "cy", "r"], zse = {
34885
+ const IE = ["x", "y", "width", "height", "cx", "cy", "r"], qse = {
34871
34886
  useVisualState: TR({
34872
34887
  scrapeMotionValuesFromProps: AR,
34873
34888
  createRenderState: DR,
@@ -34891,13 +34906,13 @@ const IE = ["x", "y", "width", "height", "cx", "cy", "r"], zse = {
34891
34906
  e[c] !== t[c] && (o = !0);
34892
34907
  }
34893
34908
  o && Bt.read(() => {
34894
- Use(n, r), Bt.render(() => {
34909
+ Yse(n, r), Bt.render(() => {
34895
34910
  rw(r, i, sw(n.tagName), e.transformTemplate), PR(n, r);
34896
34911
  });
34897
34912
  });
34898
34913
  }
34899
34914
  })
34900
- }, Yse = {
34915
+ }, Gse = {
34901
34916
  useVisualState: TR({
34902
34917
  scrapeMotionValuesFromProps: ow,
34903
34918
  createRenderState: iw
@@ -34907,21 +34922,21 @@ function IR(e, t, n) {
34907
34922
  for (const r in t)
34908
34923
  !Un(t[r]) && !MR(r, n) && (e[r] = t[r]);
34909
34924
  }
34910
- function qse({ transformTemplate: e }, t) {
34925
+ function Kse({ transformTemplate: e }, t) {
34911
34926
  return A.useMemo(() => {
34912
34927
  const n = iw();
34913
34928
  return nw(n, t, e), Object.assign({}, n.vars, n.style);
34914
34929
  }, [t]);
34915
34930
  }
34916
- function Gse(e, t) {
34931
+ function Xse(e, t) {
34917
34932
  const n = e.style || {}, r = {};
34918
- return IR(r, n, e), Object.assign(r, qse(e, t)), r;
34933
+ return IR(r, n, e), Object.assign(r, Kse(e, t)), r;
34919
34934
  }
34920
- function Kse(e, t) {
34921
- const n = {}, r = Gse(e, t);
34935
+ function Qse(e, t) {
34936
+ const n = {}, r = Xse(e, t);
34922
34937
  return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
34923
34938
  }
34924
- function Xse(e, t, n, r) {
34939
+ function Zse(e, t, n, r) {
34925
34940
  const i = A.useMemo(() => {
34926
34941
  const s = DR();
34927
34942
  return rw(s, t, sw(r), e.transformTemplate), {
@@ -34935,25 +34950,25 @@ function Xse(e, t, n, r) {
34935
34950
  }
34936
34951
  return i;
34937
34952
  }
34938
- function Qse(e = !1) {
34953
+ function Jse(e = !1) {
34939
34954
  return (n, r, i, { latestValues: s }, o) => {
34940
- const c = (Zx(n) ? Xse : Kse)(r, s, o, n), d = dse(r, typeof n == "string", e), h = n !== A.Fragment ? { ...d, ...c, ref: i } : {}, { children: p } = r, y = A.useMemo(() => Un(p) ? p.get() : p, [p]);
34955
+ const c = (Zx(n) ? Zse : Qse)(r, s, o, n), d = pse(r, typeof n == "string", e), h = n !== A.Fragment ? { ...d, ...c, ref: i } : {}, { children: p } = r, y = A.useMemo(() => Un(p) ? p.get() : p, [p]);
34941
34956
  return A.createElement(n, {
34942
34957
  ...h,
34943
34958
  children: y
34944
34959
  });
34945
34960
  };
34946
34961
  }
34947
- function Zse(e, t) {
34962
+ function eoe(e, t) {
34948
34963
  return function(r, { forwardMotionProps: i } = { forwardMotionProps: !1 }) {
34949
34964
  const o = {
34950
- ...Zx(r) ? zse : Yse,
34965
+ ...Zx(r) ? qse : Gse,
34951
34966
  preloadedFeatures: e,
34952
- useRender: Qse(i),
34967
+ useRender: Jse(i),
34953
34968
  createVisualElement: t,
34954
34969
  Component: r
34955
34970
  };
34956
- return wse(o);
34971
+ return Tse(o);
34957
34972
  };
34958
34973
  }
34959
34974
  function RR(e, t) {
@@ -34971,8 +34986,8 @@ function $m(e, t, n) {
34971
34986
  const r = e.getProps();
34972
34987
  return Jx(r, t, n !== void 0 ? n : r.custom, e);
34973
34988
  }
34974
- const Jse = /* @__PURE__ */ qx(() => window.ScrollTimeline !== void 0);
34975
- class eoe {
34989
+ const toe = /* @__PURE__ */ qx(() => window.ScrollTimeline !== void 0);
34990
+ class noe {
34976
34991
  constructor(t) {
34977
34992
  this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
34978
34993
  }
@@ -34991,7 +35006,7 @@ class eoe {
34991
35006
  }
34992
35007
  attachTimeline(t, n) {
34993
35008
  const r = this.animations.map((i) => {
34994
- if (Jse() && i.attachTimeline)
35009
+ if (toe() && i.attachTimeline)
34995
35010
  return i.attachTimeline(t);
34996
35011
  if (typeof n == "function")
34997
35012
  return n(i);
@@ -35042,7 +35057,7 @@ class eoe {
35042
35057
  this.runAll("complete");
35043
35058
  }
35044
35059
  }
35045
- class toe extends eoe {
35060
+ class roe extends noe {
35046
35061
  then(t, n) {
35047
35062
  return Promise.all(this.animations).then(t).catch(n);
35048
35063
  }
@@ -35065,17 +35080,17 @@ function lw(e) {
35065
35080
  function RE(e, t) {
35066
35081
  e.timeline = t, e.onfinish = null;
35067
35082
  }
35068
- const uw = (e) => Array.isArray(e) && typeof e[0] == "number", noe = {
35083
+ const uw = (e) => Array.isArray(e) && typeof e[0] == "number", ioe = {
35069
35084
  linearEasing: void 0
35070
35085
  };
35071
- function roe(e, t) {
35086
+ function soe(e, t) {
35072
35087
  const n = /* @__PURE__ */ qx(e);
35073
35088
  return () => {
35074
35089
  var r;
35075
- return (r = noe[t]) !== null && r !== void 0 ? r : n();
35090
+ return (r = ioe[t]) !== null && r !== void 0 ? r : n();
35076
35091
  };
35077
35092
  }
35078
- const Fp = /* @__PURE__ */ roe(() => {
35093
+ const Fp = /* @__PURE__ */ soe(() => {
35079
35094
  try {
35080
35095
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
35081
35096
  } catch {
@@ -35114,7 +35129,7 @@ const Ni = {
35114
35129
  function jR() {
35115
35130
  return Ni.x || Ni.y;
35116
35131
  }
35117
- function ioe(e, t, n) {
35132
+ function ooe(e, t, n) {
35118
35133
  var r;
35119
35134
  if (e instanceof Element)
35120
35135
  return [e];
@@ -35126,7 +35141,7 @@ function ioe(e, t, n) {
35126
35141
  return Array.from(e);
35127
35142
  }
35128
35143
  function BR(e, t) {
35129
- const n = ioe(e), r = new AbortController(), i = {
35144
+ const n = ooe(e), r = new AbortController(), i = {
35130
35145
  passive: !0,
35131
35146
  ...t,
35132
35147
  signal: r.signal
@@ -35138,7 +35153,7 @@ function LE(e) {
35138
35153
  t.pointerType === "touch" || jR() || e(t);
35139
35154
  };
35140
35155
  }
35141
- function soe(e, t, n = {}) {
35156
+ function aoe(e, t, n = {}) {
35142
35157
  const [r, i, s] = BR(e, n), o = LE((l) => {
35143
35158
  const { target: c } = l, d = t(l);
35144
35159
  if (typeof d != "function" || !c)
@@ -35152,15 +35167,15 @@ function soe(e, t, n = {}) {
35152
35167
  l.addEventListener("pointerenter", o, i);
35153
35168
  }), s;
35154
35169
  }
35155
- const VR = (e, t) => t ? e === t ? !0 : VR(e, t.parentElement) : !1, cw = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, ooe = /* @__PURE__ */ new Set([
35170
+ const VR = (e, t) => t ? e === t ? !0 : VR(e, t.parentElement) : !1, cw = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, loe = /* @__PURE__ */ new Set([
35156
35171
  "BUTTON",
35157
35172
  "INPUT",
35158
35173
  "SELECT",
35159
35174
  "TEXTAREA",
35160
35175
  "A"
35161
35176
  ]);
35162
- function aoe(e) {
35163
- return ooe.has(e.tagName) || e.tabIndex !== -1;
35177
+ function uoe(e) {
35178
+ return loe.has(e.tagName) || e.tabIndex !== -1;
35164
35179
  }
35165
35180
  const Rc = /* @__PURE__ */ new WeakSet();
35166
35181
  function NE(e) {
@@ -35171,7 +35186,7 @@ function NE(e) {
35171
35186
  function ty(e, t) {
35172
35187
  e.dispatchEvent(new PointerEvent("pointer" + t, { isPrimary: !0, bubbles: !0 }));
35173
35188
  }
35174
- const loe = (e, t) => {
35189
+ const coe = (e, t) => {
35175
35190
  const n = e.currentTarget;
35176
35191
  if (!n)
35177
35192
  return;
@@ -35189,7 +35204,7 @@ const loe = (e, t) => {
35189
35204
  function $E(e) {
35190
35205
  return cw(e) && !jR();
35191
35206
  }
35192
- function uoe(e, t, n = {}) {
35207
+ function foe(e, t, n = {}) {
35193
35208
  const [r, i, s] = BR(e, n), o = (l) => {
35194
35209
  const c = l.currentTarget;
35195
35210
  if (!$E(l) || Rc.has(c))
@@ -35205,10 +35220,10 @@ function uoe(e, t, n = {}) {
35205
35220
  window.addEventListener("pointerup", p, i), window.addEventListener("pointercancel", y, i);
35206
35221
  };
35207
35222
  return r.forEach((l) => {
35208
- !aoe(l) && l.getAttribute("tabindex") === null && (l.tabIndex = 0), (n.useGlobalTarget ? window : l).addEventListener("pointerdown", o, i), l.addEventListener("focus", (d) => loe(d, i), i);
35223
+ !uoe(l) && l.getAttribute("tabindex") === null && (l.tabIndex = 0), (n.useGlobalTarget ? window : l).addEventListener("pointerdown", o, i), l.addEventListener("focus", (d) => coe(d, i), i);
35209
35224
  }), s;
35210
35225
  }
35211
- function coe(e) {
35226
+ function doe(e) {
35212
35227
  return e === "x" || e === "y" ? Ni[e] ? null : (Ni[e] = !0, () => {
35213
35228
  Ni[e] = !1;
35214
35229
  }) : Ni.x || Ni.y ? null : (Ni.x = Ni.y = !0, () => {
@@ -35225,13 +35240,13 @@ const WR = /* @__PURE__ */ new Set([
35225
35240
  ...Ou
35226
35241
  ]);
35227
35242
  let Yh;
35228
- function foe() {
35243
+ function hoe() {
35229
35244
  Yh = void 0;
35230
35245
  }
35231
35246
  const ds = {
35232
- now: () => (Yh === void 0 && ds.set(An.isProcessing || ose.useManualTiming ? An.timestamp : performance.now()), Yh),
35247
+ now: () => (Yh === void 0 && ds.set(An.isProcessing || lse.useManualTiming ? An.timestamp : performance.now()), Yh),
35233
35248
  set: (e) => {
35234
- Yh = e, queueMicrotask(foe);
35249
+ Yh = e, queueMicrotask(hoe);
35235
35250
  }
35236
35251
  };
35237
35252
  function fw(e, t) {
@@ -35269,8 +35284,8 @@ class hw {
35269
35284
  function HR(e, t) {
35270
35285
  return t ? e * (1e3 / t) : 0;
35271
35286
  }
35272
- const FE = 30, doe = (e) => !isNaN(parseFloat(e));
35273
- class hoe {
35287
+ const FE = 30, poe = (e) => !isNaN(parseFloat(e));
35288
+ class moe {
35274
35289
  /**
35275
35290
  * @param init - The initiating value
35276
35291
  * @param config - Optional configuration options
@@ -35286,7 +35301,7 @@ class hoe {
35286
35301
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
35287
35302
  }
35288
35303
  setCurrent(t) {
35289
- this.current = t, this.updatedAt = ds.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = doe(this.current));
35304
+ this.current = t, this.updatedAt = ds.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = poe(this.current));
35290
35305
  }
35291
35306
  setPrevFrameValue(t = this.current) {
35292
35307
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -35465,54 +35480,54 @@ class hoe {
35465
35480
  }
35466
35481
  }
35467
35482
  function _f(e, t) {
35468
- return new hoe(e, t);
35483
+ return new moe(e, t);
35469
35484
  }
35470
- function poe(e, t, n) {
35485
+ function goe(e, t, n) {
35471
35486
  e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, _f(n));
35472
35487
  }
35473
- function moe(e, t) {
35488
+ function voe(e, t) {
35474
35489
  const n = $m(e, t);
35475
35490
  let { transitionEnd: r = {}, transition: i = {}, ...s } = n || {};
35476
35491
  s = { ...s, ...r };
35477
35492
  for (const o in s) {
35478
- const l = Dse(s[o]);
35479
- poe(e, o, l);
35493
+ const l = Ose(s[o]);
35494
+ goe(e, o, l);
35480
35495
  }
35481
35496
  }
35482
- function goe(e) {
35497
+ function yoe(e) {
35483
35498
  return !!(Un(e) && e.add);
35484
35499
  }
35485
35500
  function M0(e, t) {
35486
35501
  const n = e.getValue("willChange");
35487
- if (goe(n))
35502
+ if (yoe(n))
35488
35503
  return n.add(t);
35489
35504
  }
35490
35505
  function UR(e) {
35491
35506
  return e.props[xR];
35492
35507
  }
35493
- const zR = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, voe = 1e-7, yoe = 12;
35494
- function boe(e, t, n, r, i) {
35508
+ const zR = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, boe = 1e-7, xoe = 12;
35509
+ function woe(e, t, n, r, i) {
35495
35510
  let s, o, l = 0;
35496
35511
  do
35497
35512
  o = t + (n - t) / 2, s = zR(o, r, i) - e, s > 0 ? n = o : t = o;
35498
- while (Math.abs(s) > voe && ++l < yoe);
35513
+ while (Math.abs(s) > boe && ++l < xoe);
35499
35514
  return o;
35500
35515
  }
35501
35516
  function zf(e, t, n, r) {
35502
35517
  if (e === t && n === r)
35503
35518
  return Gr;
35504
- const i = (s) => boe(s, 0, 1, e, n);
35519
+ const i = (s) => woe(s, 0, 1, e, n);
35505
35520
  return (s) => s === 0 || s === 1 ? s : zR(i(s), t, r);
35506
35521
  }
35507
35522
  const YR = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, qR = (e) => (t) => 1 - e(1 - t), GR = /* @__PURE__ */ zf(0.33, 1.53, 0.69, 0.99), pw = /* @__PURE__ */ qR(GR), KR = /* @__PURE__ */ YR(pw), XR = (e) => (e *= 2) < 1 ? 0.5 * pw(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), mw = (e) => 1 - Math.sin(Math.acos(e)), QR = qR(mw), ZR = YR(mw), JR = (e) => /^0[^.\s]+$/u.test(e);
35508
- function xoe(e) {
35523
+ function Soe(e) {
35509
35524
  return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || JR(e) : !0;
35510
35525
  }
35511
35526
  const Xc = (e) => Math.round(e * 1e5) / 1e5, gw = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
35512
- function woe(e) {
35527
+ function Toe(e) {
35513
35528
  return e == null;
35514
35529
  }
35515
- const Soe = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, vw = (e, t) => (n) => !!(typeof n == "string" && Soe.test(n) && n.startsWith(e) || t && !woe(n) && Object.prototype.hasOwnProperty.call(n, t)), eL = (e, t, n) => (r) => {
35530
+ const Coe = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, vw = (e, t) => (n) => !!(typeof n == "string" && Coe.test(n) && n.startsWith(e) || t && !Toe(n) && Object.prototype.hasOwnProperty.call(n, t)), eL = (e, t, n) => (r) => {
35516
35531
  if (typeof r != "string")
35517
35532
  return r;
35518
35533
  const [i, s, o, l] = r.match(gw);
@@ -35522,15 +35537,15 @@ const Soe = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\
35522
35537
  [n]: parseFloat(o),
35523
35538
  alpha: l !== void 0 ? parseFloat(l) : 1
35524
35539
  };
35525
- }, Toe = (e) => to(0, 255, e), ny = {
35540
+ }, _oe = (e) => to(0, 255, e), ny = {
35526
35541
  ...Pu,
35527
- transform: (e) => Math.round(Toe(e))
35542
+ transform: (e) => Math.round(_oe(e))
35528
35543
  }, Ya = {
35529
35544
  test: /* @__PURE__ */ vw("rgb", "red"),
35530
35545
  parse: /* @__PURE__ */ eL("red", "green", "blue"),
35531
35546
  transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + ny.transform(e) + ", " + ny.transform(t) + ", " + ny.transform(n) + ", " + Xc(Cf.transform(r)) + ")"
35532
35547
  };
35533
- function Coe(e) {
35548
+ function Eoe(e) {
35534
35549
  let t = "", n = "", r = "", i = "";
35535
35550
  return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
35536
35551
  red: parseInt(t, 16),
@@ -35541,7 +35556,7 @@ function Coe(e) {
35541
35556
  }
35542
35557
  const A0 = {
35543
35558
  test: /* @__PURE__ */ vw("#"),
35544
- parse: Coe,
35559
+ parse: Eoe,
35545
35560
  transform: Ya.transform
35546
35561
  }, Ql = {
35547
35562
  test: /* @__PURE__ */ vw("hsl", "hue"),
@@ -35551,12 +35566,12 @@ const A0 = {
35551
35566
  test: (e) => Ya.test(e) || A0.test(e) || Ql.test(e),
35552
35567
  parse: (e) => Ya.test(e) ? Ya.parse(e) : Ql.test(e) ? Ql.parse(e) : A0.parse(e),
35553
35568
  transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Ya.transform(e) : Ql.transform(e)
35554
- }, _oe = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
35555
- function Eoe(e) {
35569
+ }, Doe = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
35570
+ function koe(e) {
35556
35571
  var t, n;
35557
- return isNaN(e) && typeof e == "string" && (((t = e.match(gw)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(_oe)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
35572
+ return isNaN(e) && typeof e == "string" && (((t = e.match(gw)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(Doe)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
35558
35573
  }
35559
- const tL = "number", nL = "color", Doe = "var", koe = "var(", jE = "${}", Ooe = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
35574
+ const tL = "number", nL = "color", Ooe = "var", Poe = "var(", jE = "${}", Moe = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
35560
35575
  function Ef(e) {
35561
35576
  const t = e.toString(), n = [], r = {
35562
35577
  color: [],
@@ -35564,7 +35579,7 @@ function Ef(e) {
35564
35579
  var: []
35565
35580
  }, i = [];
35566
35581
  let s = 0;
35567
- const l = t.replace(Ooe, (c) => (Hn.test(c) ? (r.color.push(s), i.push(nL), n.push(Hn.parse(c))) : c.startsWith(koe) ? (r.var.push(s), i.push(Doe), n.push(c)) : (r.number.push(s), i.push(tL), n.push(parseFloat(c))), ++s, jE)).split(jE);
35582
+ const l = t.replace(Moe, (c) => (Hn.test(c) ? (r.color.push(s), i.push(nL), n.push(Hn.parse(c))) : c.startsWith(Poe) ? (r.var.push(s), i.push(Ooe), n.push(c)) : (r.number.push(s), i.push(tL), n.push(parseFloat(c))), ++s, jE)).split(jE);
35568
35583
  return { values: n, split: l, indexes: r, types: i };
35569
35584
  }
35570
35585
  function rL(e) {
@@ -35582,18 +35597,18 @@ function iL(e) {
35582
35597
  return s;
35583
35598
  };
35584
35599
  }
35585
- const Poe = (e) => typeof e == "number" ? 0 : e;
35586
- function Moe(e) {
35600
+ const Aoe = (e) => typeof e == "number" ? 0 : e;
35601
+ function Ioe(e) {
35587
35602
  const t = rL(e);
35588
- return iL(e)(t.map(Poe));
35603
+ return iL(e)(t.map(Aoe));
35589
35604
  }
35590
35605
  const Xo = {
35591
- test: Eoe,
35606
+ test: koe,
35592
35607
  parse: rL,
35593
35608
  createTransformer: iL,
35594
- getAnimatableNone: Moe
35595
- }, Aoe = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
35596
- function Ioe(e) {
35609
+ getAnimatableNone: Ioe
35610
+ }, Roe = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
35611
+ function Loe(e) {
35597
35612
  const [t, n] = e.slice(0, -1).split("(");
35598
35613
  if (t === "drop-shadow")
35599
35614
  return e;
@@ -35601,16 +35616,16 @@ function Ioe(e) {
35601
35616
  if (!r)
35602
35617
  return e;
35603
35618
  const i = n.replace(r, "");
35604
- let s = Aoe.has(t) ? 1 : 0;
35619
+ let s = Roe.has(t) ? 1 : 0;
35605
35620
  return r !== n && (s *= 100), t + "(" + s + i + ")";
35606
35621
  }
35607
- const Roe = /\b([a-z-]*)\(.*?\)/gu, I0 = {
35622
+ const Noe = /\b([a-z-]*)\(.*?\)/gu, I0 = {
35608
35623
  ...Xo,
35609
35624
  getAnimatableNone: (e) => {
35610
- const t = e.match(Roe);
35611
- return t ? t.map(Ioe).join(" ") : e;
35625
+ const t = e.match(Noe);
35626
+ return t ? t.map(Loe).join(" ") : e;
35612
35627
  }
35613
- }, Loe = {
35628
+ }, $oe = {
35614
35629
  ...tw,
35615
35630
  // Color props
35616
35631
  color: Hn,
@@ -35626,17 +35641,17 @@ const Roe = /\b([a-z-]*)\(.*?\)/gu, I0 = {
35626
35641
  borderLeftColor: Hn,
35627
35642
  filter: I0,
35628
35643
  WebkitFilter: I0
35629
- }, yw = (e) => Loe[e];
35644
+ }, yw = (e) => $oe[e];
35630
35645
  function sL(e, t) {
35631
35646
  let n = yw(e);
35632
35647
  return n !== I0 && (n = Xo), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
35633
35648
  }
35634
- const Noe = /* @__PURE__ */ new Set(["auto", "none", "0"]);
35635
- function $oe(e, t, n) {
35649
+ const Foe = /* @__PURE__ */ new Set(["auto", "none", "0"]);
35650
+ function joe(e, t, n) {
35636
35651
  let r = 0, i;
35637
35652
  for (; r < e.length && !i; ) {
35638
35653
  const s = e[r];
35639
- typeof s == "string" && !Noe.has(s) && Ef(s).values.length && (i = e[r]), r++;
35654
+ typeof s == "string" && !Foe.has(s) && Ef(s).values.length && (i = e[r]), r++;
35640
35655
  }
35641
35656
  if (i && n)
35642
35657
  for (const s of t)
@@ -35652,10 +35667,10 @@ const BE = (e) => e === Pu || e === Ye, VE = (e, t) => parseFloat(e.split(", ")[
35652
35667
  const s = r.match(/^matrix\((.+)\)$/u);
35653
35668
  return s ? VE(s[1], e) : 0;
35654
35669
  }
35655
- }, Foe = /* @__PURE__ */ new Set(["x", "y", "z"]), joe = Ou.filter((e) => !Foe.has(e));
35656
- function Boe(e) {
35670
+ }, Boe = /* @__PURE__ */ new Set(["x", "y", "z"]), Voe = Ou.filter((e) => !Boe.has(e));
35671
+ function Woe(e) {
35657
35672
  const t = [];
35658
- return joe.forEach((n) => {
35673
+ return Voe.forEach((n) => {
35659
35674
  const r = e.getValue(n);
35660
35675
  r !== void 0 && (t.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0));
35661
35676
  }), t;
@@ -35680,7 +35695,7 @@ function oL() {
35680
35695
  if (L0) {
35681
35696
  const e = Array.from(Ja).filter((r) => r.needsMeasurement), t = new Set(e.map((r) => r.element)), n = /* @__PURE__ */ new Map();
35682
35697
  t.forEach((r) => {
35683
- const i = Boe(r);
35698
+ const i = Woe(r);
35684
35699
  i.length && (n.set(r, i), r.render());
35685
35700
  }), e.forEach((r) => r.measureInitialState()), t.forEach((r) => {
35686
35701
  r.render();
@@ -35700,7 +35715,7 @@ function aL() {
35700
35715
  e.readKeyframes(), e.needsMeasurement && (L0 = !0);
35701
35716
  });
35702
35717
  }
35703
- function Voe() {
35718
+ function Hoe() {
35704
35719
  aL(), oL();
35705
35720
  }
35706
35721
  class bw {
@@ -35744,19 +35759,19 @@ class bw {
35744
35759
  this.isComplete || this.scheduleResolve();
35745
35760
  }
35746
35761
  }
35747
- const lL = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Woe = (
35762
+ const lL = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Uoe = (
35748
35763
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
35749
35764
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
35750
35765
  );
35751
- function Hoe(e) {
35752
- const t = Woe.exec(e);
35766
+ function zoe(e) {
35767
+ const t = Uoe.exec(e);
35753
35768
  if (!t)
35754
35769
  return [,];
35755
35770
  const [, n, r, i] = t;
35756
35771
  return [`--${n ?? r}`, i];
35757
35772
  }
35758
35773
  function uL(e, t, n = 1) {
35759
- const [r, i] = Hoe(e);
35774
+ const [r, i] = zoe(e);
35760
35775
  if (!r)
35761
35776
  return;
35762
35777
  const s = window.getComputedStyle(t).getPropertyValue(r);
@@ -35766,10 +35781,10 @@ function uL(e, t, n = 1) {
35766
35781
  }
35767
35782
  return ew(i) ? uL(i, t, n + 1) : i;
35768
35783
  }
35769
- const cL = (e) => (t) => t.test(e), Uoe = {
35784
+ const cL = (e) => (t) => t.test(e), Yoe = {
35770
35785
  test: (e) => e === "auto",
35771
35786
  parse: (e) => e
35772
- }, fL = [Pu, Ye, fs, Mo, Ise, Ase, Uoe], HE = (e) => fL.find(cL(e));
35787
+ }, fL = [Pu, Ye, fs, Mo, Lse, Rse, Yoe], HE = (e) => fL.find(cL(e));
35773
35788
  class dL extends bw {
35774
35789
  constructor(t, n, r, i, s) {
35775
35790
  super(t, n, r, i, s, !0);
@@ -35801,8 +35816,8 @@ class dL extends bw {
35801
35816
  resolveNoneKeyframes() {
35802
35817
  const { unresolvedKeyframes: t, name: n } = this, r = [];
35803
35818
  for (let i = 0; i < t.length; i++)
35804
- xoe(t[i]) && r.push(i);
35805
- r.length && $oe(t, r, n);
35819
+ Soe(t[i]) && r.push(i);
35820
+ r.length && joe(t, r, n);
35806
35821
  }
35807
35822
  measureInitialState() {
35808
35823
  const { element: t, unresolvedKeyframes: n, name: r } = this;
@@ -35828,7 +35843,7 @@ class dL extends bw {
35828
35843
  const UE = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
35829
35844
  (Xo.test(e) || e === "0") && // And it contains numbers and/or colors
35830
35845
  !e.startsWith("url("));
35831
- function zoe(e) {
35846
+ function qoe(e) {
35832
35847
  const t = e[0];
35833
35848
  if (e.length === 1)
35834
35849
  return !0;
@@ -35836,21 +35851,21 @@ function zoe(e) {
35836
35851
  if (e[n] !== t)
35837
35852
  return !0;
35838
35853
  }
35839
- function Yoe(e, t, n, r) {
35854
+ function Goe(e, t, n, r) {
35840
35855
  const i = e[0];
35841
35856
  if (i === null)
35842
35857
  return !1;
35843
35858
  if (t === "display" || t === "visibility")
35844
35859
  return !0;
35845
35860
  const s = e[e.length - 1], o = UE(i, t), l = UE(s, t);
35846
- return !o || !l ? !1 : zoe(e) || (n === "spring" || lw(n)) && r;
35861
+ return !o || !l ? !1 : qoe(e) || (n === "spring" || lw(n)) && r;
35847
35862
  }
35848
- const qoe = (e) => e !== null;
35863
+ const Koe = (e) => e !== null;
35849
35864
  function Fm(e, { repeat: t, repeatType: n = "loop" }, r) {
35850
- const i = e.filter(qoe), s = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
35865
+ const i = e.filter(Koe), s = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
35851
35866
  return !s || r === void 0 ? i[s] : r;
35852
35867
  }
35853
- const Goe = 40;
35868
+ const Xoe = 40;
35854
35869
  class hL {
35855
35870
  constructor({ autoplay: t = !0, delay: n = 0, type: r = "keyframes", repeat: i = 0, repeatDelay: s = 0, repeatType: o = "loop", ...l }) {
35856
35871
  this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = ds.now(), this.options = {
@@ -35874,7 +35889,7 @@ class hL {
35874
35889
  * to avoid a sudden jump into the animation.
35875
35890
  */
35876
35891
  calcStartTime() {
35877
- return this.resolvedAt ? this.resolvedAt - this.createdAt > Goe ? this.resolvedAt : this.createdAt : this.createdAt;
35892
+ return this.resolvedAt ? this.resolvedAt - this.createdAt > Xoe ? this.resolvedAt : this.createdAt : this.createdAt;
35878
35893
  }
35879
35894
  /**
35880
35895
  * A getter for resolved data. If keyframes are not yet resolved, accessing
@@ -35882,7 +35897,7 @@ class hL {
35882
35897
  * This is a deoptimisation, but at its worst still batches read/writes.
35883
35898
  */
35884
35899
  get resolved() {
35885
- return !this._resolved && !this.hasAttemptedResolve && Voe(), this._resolved;
35900
+ return !this._resolved && !this.hasAttemptedResolve && Hoe(), this._resolved;
35886
35901
  }
35887
35902
  /**
35888
35903
  * A method to be called when the keyframes resolver completes. This method
@@ -35892,7 +35907,7 @@ class hL {
35892
35907
  onKeyframesResolved(t, n) {
35893
35908
  this.resolvedAt = ds.now(), this.hasAttemptedResolve = !0;
35894
35909
  const { name: r, type: i, velocity: s, delay: o, onComplete: l, onUpdate: c, isGenerator: d } = this.options;
35895
- if (!d && !Yoe(t, r, i, s))
35910
+ if (!d && !Goe(t, r, i, s))
35896
35911
  if (o)
35897
35912
  this.options.duration = 0;
35898
35913
  else {
@@ -35929,7 +35944,7 @@ const Qt = (e, t, n) => e + (t - e) * n;
35929
35944
  function ry(e, t, n) {
35930
35945
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
35931
35946
  }
35932
- function Koe({ hue: e, saturation: t, lightness: n, alpha: r }) {
35947
+ function Qoe({ hue: e, saturation: t, lightness: n, alpha: r }) {
35933
35948
  e /= 360, t /= 100, n /= 100;
35934
35949
  let i = 0, s = 0, o = 0;
35935
35950
  if (!t)
@@ -35951,13 +35966,13 @@ function jp(e, t) {
35951
35966
  const iy = (e, t, n) => {
35952
35967
  const r = e * e, i = n * (t * t - r) + r;
35953
35968
  return i < 0 ? 0 : Math.sqrt(i);
35954
- }, Xoe = [A0, Ya, Ql], Qoe = (e) => Xoe.find((t) => t.test(e));
35969
+ }, Zoe = [A0, Ya, Ql], Joe = (e) => Zoe.find((t) => t.test(e));
35955
35970
  function zE(e) {
35956
- const t = Qoe(e);
35971
+ const t = Joe(e);
35957
35972
  if (!t)
35958
35973
  return !1;
35959
35974
  let n = t.parse(e);
35960
- return t === Ql && (n = Koe(n)), n;
35975
+ return t === Ql && (n = Qoe(n)), n;
35961
35976
  }
35962
35977
  const YE = (e, t) => {
35963
35978
  const n = zE(e), r = zE(t);
@@ -35965,15 +35980,15 @@ const YE = (e, t) => {
35965
35980
  return jp(e, t);
35966
35981
  const i = { ...n };
35967
35982
  return (s) => (i.red = iy(n.red, r.red, s), i.green = iy(n.green, r.green, s), i.blue = iy(n.blue, r.blue, s), i.alpha = Qt(n.alpha, r.alpha, s), Ya.transform(i));
35968
- }, Zoe = (e, t) => (n) => t(e(n)), Yf = (...e) => e.reduce(Zoe), N0 = /* @__PURE__ */ new Set(["none", "hidden"]);
35969
- function Joe(e, t) {
35983
+ }, eae = (e, t) => (n) => t(e(n)), Yf = (...e) => e.reduce(eae), N0 = /* @__PURE__ */ new Set(["none", "hidden"]);
35984
+ function tae(e, t) {
35970
35985
  return N0.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
35971
35986
  }
35972
- function eae(e, t) {
35987
+ function nae(e, t) {
35973
35988
  return (n) => Qt(e, t, n);
35974
35989
  }
35975
35990
  function xw(e) {
35976
- return typeof e == "number" ? eae : typeof e == "string" ? ew(e) ? jp : Hn.test(e) ? YE : rae : Array.isArray(e) ? pL : typeof e == "object" ? Hn.test(e) ? YE : tae : jp;
35991
+ return typeof e == "number" ? nae : typeof e == "string" ? ew(e) ? jp : Hn.test(e) ? YE : sae : Array.isArray(e) ? pL : typeof e == "object" ? Hn.test(e) ? YE : rae : jp;
35977
35992
  }
35978
35993
  function pL(e, t) {
35979
35994
  const n = [...e], r = n.length, i = e.map((s, o) => xw(s)(s, t[o]));
@@ -35983,7 +35998,7 @@ function pL(e, t) {
35983
35998
  return n;
35984
35999
  };
35985
36000
  }
35986
- function tae(e, t) {
36001
+ function rae(e, t) {
35987
36002
  const n = { ...e, ...t }, r = {};
35988
36003
  for (const i in n)
35989
36004
  e[i] !== void 0 && t[i] !== void 0 && (r[i] = xw(e[i])(e[i], t[i]));
@@ -35993,7 +36008,7 @@ function tae(e, t) {
35993
36008
  return n;
35994
36009
  };
35995
36010
  }
35996
- function nae(e, t) {
36011
+ function iae(e, t) {
35997
36012
  var n;
35998
36013
  const r = [], i = { color: 0, var: 0, number: 0 };
35999
36014
  for (let s = 0; s < t.values.length; s++) {
@@ -36002,16 +36017,16 @@ function nae(e, t) {
36002
36017
  }
36003
36018
  return r;
36004
36019
  }
36005
- const rae = (e, t) => {
36020
+ const sae = (e, t) => {
36006
36021
  const n = Xo.createTransformer(t), r = Ef(e), i = Ef(t);
36007
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? N0.has(e) && !i.values.length || N0.has(t) && !r.values.length ? Joe(e, t) : Yf(pL(nae(r, i), i.values), n) : jp(e, t);
36022
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? N0.has(e) && !i.values.length || N0.has(t) && !r.values.length ? tae(e, t) : Yf(pL(iae(r, i), i.values), n) : jp(e, t);
36008
36023
  };
36009
36024
  function mL(e, t, n) {
36010
36025
  return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Qt(e, t, n) : xw(e)(e, t);
36011
36026
  }
36012
- const iae = 5;
36027
+ const oae = 5;
36013
36028
  function gL(e, t, n) {
36014
- const r = Math.max(t - iae, 0);
36029
+ const r = Math.max(t - oae, 0);
36015
36030
  return HR(n - e(r), t - r);
36016
36031
  }
36017
36032
  const Jt = {
@@ -36043,7 +36058,7 @@ const Jt = {
36043
36058
  minDamping: 0.05,
36044
36059
  maxDamping: 1
36045
36060
  }, qE = 1e-3;
36046
- function sae({ duration: e = Jt.duration, bounce: t = Jt.bounce, velocity: n = Jt.velocity, mass: r = Jt.mass }) {
36061
+ function aae({ duration: e = Jt.duration, bounce: t = Jt.bounce, velocity: n = Jt.velocity, mass: r = Jt.mass }) {
36047
36062
  let i, s, o = 1 - t;
36048
36063
  o = to(Jt.minDamping, Jt.maxDamping, o), e = to(Jt.minDuration, Jt.maxDuration, /* @__PURE__ */ qs(e)), o < 1 ? (i = (d) => {
36049
36064
  const h = d * o, p = h * e, y = h - n, b = $0(d, o), C = Math.exp(-p);
@@ -36058,7 +36073,7 @@ function sae({ duration: e = Jt.duration, bounce: t = Jt.bounce, velocity: n = J
36058
36073
  const h = Math.exp(-d * e), p = (n - d) * (e * e);
36059
36074
  return h * p;
36060
36075
  });
36061
- const l = 5 / e, c = aae(i, s, l);
36076
+ const l = 5 / e, c = uae(i, s, l);
36062
36077
  if (e = /* @__PURE__ */ Ys(e), isNaN(c))
36063
36078
  return {
36064
36079
  stiffness: Jt.stiffness,
@@ -36074,21 +36089,21 @@ function sae({ duration: e = Jt.duration, bounce: t = Jt.bounce, velocity: n = J
36074
36089
  };
36075
36090
  }
36076
36091
  }
36077
- const oae = 12;
36078
- function aae(e, t, n) {
36092
+ const lae = 12;
36093
+ function uae(e, t, n) {
36079
36094
  let r = n;
36080
- for (let i = 1; i < oae; i++)
36095
+ for (let i = 1; i < lae; i++)
36081
36096
  r = r - e(r) / t(r);
36082
36097
  return r;
36083
36098
  }
36084
36099
  function $0(e, t) {
36085
36100
  return e * Math.sqrt(1 - t * t);
36086
36101
  }
36087
- const lae = ["duration", "bounce"], uae = ["stiffness", "damping", "mass"];
36102
+ const cae = ["duration", "bounce"], fae = ["stiffness", "damping", "mass"];
36088
36103
  function GE(e, t) {
36089
36104
  return t.some((n) => e[n] !== void 0);
36090
36105
  }
36091
- function cae(e) {
36106
+ function dae(e) {
36092
36107
  let t = {
36093
36108
  velocity: Jt.velocity,
36094
36109
  stiffness: Jt.stiffness,
@@ -36097,7 +36112,7 @@ function cae(e) {
36097
36112
  isResolvedFromDuration: !1,
36098
36113
  ...e
36099
36114
  };
36100
- if (!GE(e, uae) && GE(e, lae))
36115
+ if (!GE(e, fae) && GE(e, cae))
36101
36116
  if (e.visualDuration) {
36102
36117
  const n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, s = 2 * to(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
36103
36118
  t = {
@@ -36107,7 +36122,7 @@ function cae(e) {
36107
36122
  damping: s
36108
36123
  };
36109
36124
  } else {
36110
- const n = sae(e);
36125
+ const n = aae(e);
36111
36126
  t = {
36112
36127
  ...t,
36113
36128
  ...n,
@@ -36123,7 +36138,7 @@ function vL(e = Jt.visualDuration, t = Jt.bounce) {
36123
36138
  bounce: t
36124
36139
  } : e;
36125
36140
  let { restSpeed: r, restDelta: i } = n;
36126
- const s = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], l = { done: !1, value: s }, { stiffness: c, damping: d, mass: h, duration: p, velocity: y, isResolvedFromDuration: b } = cae({
36141
+ const s = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], l = { done: !1, value: s }, { stiffness: c, damping: d, mass: h, duration: p, velocity: y, isResolvedFromDuration: b } = dae({
36127
36142
  ...n,
36128
36143
  velocity: -/* @__PURE__ */ qs(n.velocity || 0)
36129
36144
  }), C = y || 0, w = d / (2 * Math.sqrt(c * h)), E = o - s, _ = /* @__PURE__ */ qs(Math.sqrt(c / h)), I = Math.abs(E) < 5;
@@ -36197,11 +36212,11 @@ function KE({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
36197
36212
  }
36198
36213
  };
36199
36214
  }
36200
- const fae = /* @__PURE__ */ zf(0.42, 0, 1, 1), dae = /* @__PURE__ */ zf(0, 0, 0.58, 1), yL = /* @__PURE__ */ zf(0.42, 0, 0.58, 1), hae = (e) => Array.isArray(e) && typeof e[0] != "number", pae = {
36215
+ const hae = /* @__PURE__ */ zf(0.42, 0, 1, 1), pae = /* @__PURE__ */ zf(0, 0, 0.58, 1), yL = /* @__PURE__ */ zf(0.42, 0, 0.58, 1), mae = (e) => Array.isArray(e) && typeof e[0] != "number", gae = {
36201
36216
  linear: Gr,
36202
- easeIn: fae,
36217
+ easeIn: hae,
36203
36218
  easeInOut: yL,
36204
- easeOut: dae,
36219
+ easeOut: pae,
36205
36220
  circIn: mw,
36206
36221
  circInOut: ZR,
36207
36222
  circOut: QR,
@@ -36215,10 +36230,10 @@ const fae = /* @__PURE__ */ zf(0.42, 0, 1, 1), dae = /* @__PURE__ */ zf(0, 0, 0.
36215
36230
  const [t, n, r, i] = e;
36216
36231
  return zf(t, n, r, i);
36217
36232
  } else if (typeof e == "string")
36218
- return pae[e];
36233
+ return gae[e];
36219
36234
  return e;
36220
36235
  };
36221
- function mae(e, t, n) {
36236
+ function vae(e, t, n) {
36222
36237
  const r = [], i = n || mL, s = e.length - 1;
36223
36238
  for (let o = 0; o < s; o++) {
36224
36239
  let l = i(e[o], e[o + 1]);
@@ -36230,7 +36245,7 @@ function mae(e, t, n) {
36230
36245
  }
36231
36246
  return r;
36232
36247
  }
36233
- function gae(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
36248
+ function yae(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
36234
36249
  const s = e.length;
36235
36250
  if (mR(s === t.length), s === 1)
36236
36251
  return () => t[0];
@@ -36238,7 +36253,7 @@ function gae(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
36238
36253
  return () => t[1];
36239
36254
  const o = e[0] === e[1];
36240
36255
  e[0] > e[s - 1] && (e = [...e].reverse(), t = [...t].reverse());
36241
- const l = mae(t, r, i), c = l.length, d = (h) => {
36256
+ const l = vae(t, r, i), c = l.length, d = (h) => {
36242
36257
  if (o && h < e[0])
36243
36258
  return t[0];
36244
36259
  let p = 0;
@@ -36250,41 +36265,41 @@ function gae(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
36250
36265
  };
36251
36266
  return n ? (h) => d(to(e[0], e[s - 1], h)) : d;
36252
36267
  }
36253
- function vae(e, t) {
36268
+ function bae(e, t) {
36254
36269
  const n = e[e.length - 1];
36255
36270
  for (let r = 1; r <= t; r++) {
36256
36271
  const i = /* @__PURE__ */ mu(0, t, r);
36257
36272
  e.push(Qt(n, 1, i));
36258
36273
  }
36259
36274
  }
36260
- function yae(e) {
36275
+ function xae(e) {
36261
36276
  const t = [0];
36262
- return vae(t, e.length - 1), t;
36277
+ return bae(t, e.length - 1), t;
36263
36278
  }
36264
- function bae(e, t) {
36279
+ function wae(e, t) {
36265
36280
  return e.map((n) => n * t);
36266
36281
  }
36267
- function xae(e, t) {
36282
+ function Sae(e, t) {
36268
36283
  return e.map(() => t || yL).splice(0, e.length - 1);
36269
36284
  }
36270
36285
  function Bp({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
36271
- const i = hae(r) ? r.map(XE) : XE(r), s = {
36286
+ const i = mae(r) ? r.map(XE) : XE(r), s = {
36272
36287
  done: !1,
36273
36288
  value: t[0]
36274
- }, o = bae(
36289
+ }, o = wae(
36275
36290
  // Only use the provided offsets if they're the correct length
36276
36291
  // TODO Maybe we should warn here if there's a length mismatch
36277
- n && n.length === t.length ? n : yae(t),
36292
+ n && n.length === t.length ? n : xae(t),
36278
36293
  e
36279
- ), l = gae(o, t, {
36280
- ease: Array.isArray(i) ? i : xae(t, i)
36294
+ ), l = yae(o, t, {
36295
+ ease: Array.isArray(i) ? i : Sae(t, i)
36281
36296
  });
36282
36297
  return {
36283
36298
  calculatedDuration: e,
36284
36299
  next: (c) => (s.value = l(c), s.done = c >= e, s)
36285
36300
  };
36286
36301
  }
36287
- const wae = (e) => {
36302
+ const Tae = (e) => {
36288
36303
  const t = ({ timestamp: n }) => e(n);
36289
36304
  return {
36290
36305
  start: () => Bt.update(t, !0),
@@ -36295,13 +36310,13 @@ const wae = (e) => {
36295
36310
  */
36296
36311
  now: () => An.isProcessing ? An.timestamp : ds.now()
36297
36312
  };
36298
- }, Sae = {
36313
+ }, Cae = {
36299
36314
  decay: KE,
36300
36315
  inertia: KE,
36301
36316
  tween: Bp,
36302
36317
  keyframes: Bp,
36303
36318
  spring: vL
36304
- }, Tae = (e) => e / 100;
36319
+ }, _ae = (e) => e / 100;
36305
36320
  class ww extends hL {
36306
36321
  constructor(t) {
36307
36322
  super(t), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
@@ -36318,9 +36333,9 @@ class ww extends hL {
36318
36333
  super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
36319
36334
  }
36320
36335
  initPlayback(t) {
36321
- const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: o = 0 } = this.options, l = lw(n) ? n : Sae[n] || Bp;
36336
+ const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: o = 0 } = this.options, l = lw(n) ? n : Cae[n] || Bp;
36322
36337
  let c, d;
36323
- l !== Bp && typeof t[0] != "number" && (c = Yf(Tae, mL(t[0], t[1])), t = [0, 100]);
36338
+ l !== Bp && typeof t[0] != "number" && (c = Yf(_ae, mL(t[0], t[1])), t = [0, 100]);
36324
36339
  const h = l({ ...this.options, keyframes: t });
36325
36340
  s === "mirror" && (d = l({
36326
36341
  ...this.options,
@@ -36391,7 +36406,7 @@ class ww extends hL {
36391
36406
  }
36392
36407
  if (this.isStopped)
36393
36408
  return;
36394
- const { driver: t = wae, onPlay: n, startTime: r } = this.options;
36409
+ const { driver: t = Tae, onPlay: n, startTime: r } = this.options;
36395
36410
  this.driver || (this.driver = t((s) => this.tick(s))), n && n();
36396
36411
  const i = this.driver.now();
36397
36412
  this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = i) : this.startTime = r ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
@@ -36425,7 +36440,7 @@ class ww extends hL {
36425
36440
  return this.startTime = 0, this.tick(t, !0);
36426
36441
  }
36427
36442
  }
36428
- const Cae = /* @__PURE__ */ new Set([
36443
+ const Eae = /* @__PURE__ */ new Set([
36429
36444
  "opacity",
36430
36445
  "clipPath",
36431
36446
  "filter",
@@ -36434,7 +36449,7 @@ const Cae = /* @__PURE__ */ new Set([
36434
36449
  // or until we implement support for linear() easing.
36435
36450
  // "background-color"
36436
36451
  ]);
36437
- function _ae(e, t, n, { delay: r = 0, duration: i = 300, repeat: s = 0, repeatType: o = "loop", ease: l = "easeInOut", times: c } = {}) {
36452
+ function Dae(e, t, n, { delay: r = 0, duration: i = 300, repeat: s = 0, repeatType: o = "loop", ease: l = "easeInOut", times: c } = {}) {
36438
36453
  const d = { [t]: n };
36439
36454
  c && (d.offset = c);
36440
36455
  const h = FR(l, i);
@@ -36447,11 +36462,11 @@ function _ae(e, t, n, { delay: r = 0, duration: i = 300, repeat: s = 0, repeatTy
36447
36462
  direction: o === "reverse" ? "alternate" : "normal"
36448
36463
  });
36449
36464
  }
36450
- const Eae = /* @__PURE__ */ qx(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Vp = 10, Dae = 2e4;
36451
- function kae(e) {
36465
+ const kae = /* @__PURE__ */ qx(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Vp = 10, Oae = 2e4;
36466
+ function Pae(e) {
36452
36467
  return lw(e.type) || e.type === "spring" || !$R(e.ease);
36453
36468
  }
36454
- function Oae(e, t) {
36469
+ function Mae(e, t) {
36455
36470
  const n = new ww({
36456
36471
  ...t,
36457
36472
  keyframes: e,
@@ -36462,7 +36477,7 @@ function Oae(e, t) {
36462
36477
  let r = { done: !1, value: e[0] };
36463
36478
  const i = [];
36464
36479
  let s = 0;
36465
- for (; !r.done && s < Dae; )
36480
+ for (; !r.done && s < Oae; )
36466
36481
  r = n.sample(s), i.push(r.value), s += Vp;
36467
36482
  return {
36468
36483
  times: void 0,
@@ -36476,7 +36491,7 @@ const bL = {
36476
36491
  backInOut: KR,
36477
36492
  circInOut: ZR
36478
36493
  };
36479
- function Pae(e) {
36494
+ function Aae(e) {
36480
36495
  return e in bL;
36481
36496
  }
36482
36497
  class QE extends hL {
@@ -36489,11 +36504,11 @@ class QE extends hL {
36489
36504
  let { duration: r = 300, times: i, ease: s, type: o, motionValue: l, name: c, startTime: d } = this.options;
36490
36505
  if (!l.owner || !l.owner.current)
36491
36506
  return !1;
36492
- if (typeof s == "string" && Fp() && Pae(s) && (s = bL[s]), kae(this.options)) {
36493
- const { onComplete: p, onUpdate: y, motionValue: b, element: C, ...w } = this.options, E = Oae(t, w);
36507
+ if (typeof s == "string" && Fp() && Aae(s) && (s = bL[s]), Pae(this.options)) {
36508
+ const { onComplete: p, onUpdate: y, motionValue: b, element: C, ...w } = this.options, E = Mae(t, w);
36494
36509
  t = E.keyframes, t.length === 1 && (t[1] = t[0]), r = E.duration, i = E.times, s = E.ease, o = "keyframes";
36495
36510
  }
36496
- const h = _ae(l.owner.current, c, t, { ...this.options, duration: r, times: i, ease: s });
36511
+ const h = Dae(l.owner.current, c, t, { ...this.options, duration: r, times: i, ease: s });
36497
36512
  return h.startTime = d ?? this.calcStartTime(), this.pendingTimeline ? (RE(h, this.pendingTimeline), this.pendingTimeline = void 0) : h.onfinish = () => {
36498
36513
  const { onComplete: p } = this.options;
36499
36514
  l.set(Fm(t, this.options, n)), p && p(), this.cancel(), this.resolveFinishedPromise();
@@ -36625,32 +36640,32 @@ class QE extends hL {
36625
36640
  if (!n || !n.owner || !(n.owner.current instanceof HTMLElement))
36626
36641
  return !1;
36627
36642
  const { onUpdate: c, transformTemplate: d } = n.owner.getProps();
36628
- return Eae() && r && Cae.has(r) && /**
36643
+ return kae() && r && Eae.has(r) && /**
36629
36644
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
36630
36645
  * no way to read the value from WAAPI every frame.
36631
36646
  */
36632
36647
  !c && !d && !i && s !== "mirror" && o !== 0 && l !== "inertia";
36633
36648
  }
36634
36649
  }
36635
- const Mae = {
36650
+ const Iae = {
36636
36651
  type: "spring",
36637
36652
  stiffness: 500,
36638
36653
  damping: 25,
36639
36654
  restSpeed: 10
36640
- }, Aae = (e) => ({
36655
+ }, Rae = (e) => ({
36641
36656
  type: "spring",
36642
36657
  stiffness: 550,
36643
36658
  damping: e === 0 ? 2 * Math.sqrt(550) : 30,
36644
36659
  restSpeed: 10
36645
- }), Iae = {
36660
+ }), Lae = {
36646
36661
  type: "keyframes",
36647
36662
  duration: 0.8
36648
- }, Rae = {
36663
+ }, Nae = {
36649
36664
  type: "keyframes",
36650
36665
  ease: [0.25, 0.1, 0.35, 1],
36651
36666
  duration: 0.3
36652
- }, Lae = (e, { keyframes: t }) => t.length > 2 ? Iae : cl.has(e) ? e.startsWith("scale") ? Aae(t[1]) : Mae : Rae;
36653
- function Nae({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: s, repeatType: o, repeatDelay: l, from: c, elapsed: d, ...h }) {
36667
+ }, $ae = (e, { keyframes: t }) => t.length > 2 ? Lae : cl.has(e) ? e.startsWith("scale") ? Rae(t[1]) : Iae : Nae;
36668
+ function Fae({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: s, repeatType: o, repeatDelay: l, from: c, elapsed: d, ...h }) {
36654
36669
  return !!Object.keys(h).length;
36655
36670
  }
36656
36671
  const Sw = (e, t, n, r = {}, i, s) => (o) => {
@@ -36673,9 +36688,9 @@ const Sw = (e, t, n, r = {}, i, s) => (o) => {
36673
36688
  motionValue: t,
36674
36689
  element: s ? void 0 : i
36675
36690
  };
36676
- Nae(l) || (h = {
36691
+ Fae(l) || (h = {
36677
36692
  ...h,
36678
- ...Lae(e, h)
36693
+ ...$ae(e, h)
36679
36694
  }), h.duration && (h.duration = /* @__PURE__ */ Ys(h.duration)), h.repeatDelay && (h.repeatDelay = /* @__PURE__ */ Ys(h.repeatDelay)), h.from !== void 0 && (h.keyframes[0] = h.from);
36680
36695
  let p = !1;
36681
36696
  if ((h.type === !1 || h.duration === 0 && !h.repeatDelay) && (h.duration = 0, h.delay === 0 && (p = !0)), p && !s && t.get() !== void 0) {
@@ -36683,11 +36698,11 @@ const Sw = (e, t, n, r = {}, i, s) => (o) => {
36683
36698
  if (y !== void 0)
36684
36699
  return Bt.update(() => {
36685
36700
  h.onUpdate(y), h.onComplete();
36686
- }), new toe([]);
36701
+ }), new roe([]);
36687
36702
  }
36688
36703
  return !s && QE.supports(h) ? new QE(h) : new ww(h);
36689
36704
  };
36690
- function $ae({ protectedKeys: e, needsAnimating: t }, n) {
36705
+ function jae({ protectedKeys: e, needsAnimating: t }, n) {
36691
36706
  const r = e.hasOwnProperty(n) && t[n] !== !0;
36692
36707
  return t[n] = !1, r;
36693
36708
  }
@@ -36698,7 +36713,7 @@ function xL(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
36698
36713
  const d = [], h = i && e.animationState && e.animationState.getState()[i];
36699
36714
  for (const p in c) {
36700
36715
  const y = e.getValue(p, (s = e.latestValues[p]) !== null && s !== void 0 ? s : null), b = c[p];
36701
- if (b === void 0 || h && $ae(h, p))
36716
+ if (b === void 0 || h && jae(h, p))
36702
36717
  continue;
36703
36718
  const C = {
36704
36719
  delay: n,
@@ -36718,7 +36733,7 @@ function xL(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
36718
36733
  }
36719
36734
  return l && Promise.all(d).then(() => {
36720
36735
  Bt.update(() => {
36721
- l && moe(e, l);
36736
+ l && voe(e, l);
36722
36737
  });
36723
36738
  }), d;
36724
36739
  }
@@ -36729,7 +36744,7 @@ function F0(e, t, n = {}) {
36729
36744
  n.transitionOverride && (s = n.transitionOverride);
36730
36745
  const o = i ? () => Promise.all(xL(e, i, n)) : () => Promise.resolve(), l = e.variantChildren && e.variantChildren.size ? (d = 0) => {
36731
36746
  const { delayChildren: h = 0, staggerChildren: p, staggerDirection: y } = s;
36732
- return Fae(e, t, h + d, p, y, n);
36747
+ return Bae(e, t, h + d, p, y, n);
36733
36748
  } : () => Promise.resolve(), { when: c } = s;
36734
36749
  if (c) {
36735
36750
  const [d, h] = c === "beforeChildren" ? [o, l] : [l, o];
@@ -36737,19 +36752,19 @@ function F0(e, t, n = {}) {
36737
36752
  } else
36738
36753
  return Promise.all([o(), l(n.delay)]);
36739
36754
  }
36740
- function Fae(e, t, n = 0, r = 0, i = 1, s) {
36755
+ function Bae(e, t, n = 0, r = 0, i = 1, s) {
36741
36756
  const o = [], l = (e.variantChildren.size - 1) * r, c = i === 1 ? (d = 0) => d * r : (d = 0) => l - d * r;
36742
- return Array.from(e.variantChildren).sort(jae).forEach((d, h) => {
36757
+ return Array.from(e.variantChildren).sort(Vae).forEach((d, h) => {
36743
36758
  d.notify("AnimationStart", t), o.push(F0(d, t, {
36744
36759
  ...s,
36745
36760
  delay: n + c(h)
36746
36761
  }).then(() => d.notify("AnimationComplete", t)));
36747
36762
  }), Promise.all(o);
36748
36763
  }
36749
- function jae(e, t) {
36764
+ function Vae(e, t) {
36750
36765
  return e.sortNodePosition(t);
36751
36766
  }
36752
- function Bae(e, t, n = {}) {
36767
+ function Wae(e, t, n = {}) {
36753
36768
  e.notify("AnimationStart", t);
36754
36769
  let r;
36755
36770
  if (Array.isArray(t)) {
@@ -36765,7 +36780,7 @@ function Bae(e, t, n = {}) {
36765
36780
  e.notify("AnimationComplete", t);
36766
36781
  });
36767
36782
  }
36768
- const Vae = Kx.length;
36783
+ const Hae = Kx.length;
36769
36784
  function wL(e) {
36770
36785
  if (!e)
36771
36786
  return;
@@ -36774,18 +36789,18 @@ function wL(e) {
36774
36789
  return e.props.initial !== void 0 && (n.initial = e.props.initial), n;
36775
36790
  }
36776
36791
  const t = {};
36777
- for (let n = 0; n < Vae; n++) {
36792
+ for (let n = 0; n < Hae; n++) {
36778
36793
  const r = Kx[n], i = e.props[r];
36779
36794
  (Tf(i) || i === !1) && (t[r] = i);
36780
36795
  }
36781
36796
  return t;
36782
36797
  }
36783
- const Wae = [...Gx].reverse(), Hae = Gx.length;
36784
- function Uae(e) {
36785
- return (t) => Promise.all(t.map(({ animation: n, options: r }) => Bae(e, n, r)));
36798
+ const Uae = [...Gx].reverse(), zae = Gx.length;
36799
+ function Yae(e) {
36800
+ return (t) => Promise.all(t.map(({ animation: n, options: r }) => Wae(e, n, r)));
36786
36801
  }
36787
- function zae(e) {
36788
- let t = Uae(e), n = ZE(), r = !0;
36802
+ function qae(e) {
36803
+ let t = Yae(e), n = ZE(), r = !0;
36789
36804
  const i = (c) => (d, h) => {
36790
36805
  var p;
36791
36806
  const y = $m(e, h, c === "exit" ? (p = e.presenceContext) === null || p === void 0 ? void 0 : p.custom : void 0);
@@ -36801,8 +36816,8 @@ function zae(e) {
36801
36816
  function o(c) {
36802
36817
  const { props: d } = e, h = wL(e.parent) || {}, p = [], y = /* @__PURE__ */ new Set();
36803
36818
  let b = {}, C = 1 / 0;
36804
- for (let E = 0; E < Hae; E++) {
36805
- const _ = Wae[E], I = n[_], P = d[_] !== void 0 ? d[_] : h[_], V = Tf(P), N = _ === c ? I.isActive : null;
36819
+ for (let E = 0; E < zae; E++) {
36820
+ const _ = Uae[E], I = n[_], P = d[_] !== void 0 ? d[_] : h[_], V = Tf(P), N = _ === c ? I.isActive : null;
36806
36821
  N === !1 && (C = E);
36807
36822
  let j = P === h[_] && P !== d[_] && V;
36808
36823
  if (j && r && e.manuallyAnimateOnMount && (j = !1), I.protectedKeys = { ...b }, // If it isn't active and hasn't *just* been set as inactive
@@ -36810,7 +36825,7 @@ function zae(e) {
36810
36825
  !P && !I.prevProp || // Or if the prop doesn't define an animation
36811
36826
  Lm(P) || typeof P == "boolean")
36812
36827
  continue;
36813
- const v = Yae(I.prevProp, P);
36828
+ const v = Gae(I.prevProp, P);
36814
36829
  let Y = v || // If we're making this variant active, we want to always make it active
36815
36830
  _ === c && I.isActive && !j && V || // If we removed a higher-priority variant (i is in reverse order)
36816
36831
  E > C && V, z = !1;
@@ -36870,7 +36885,7 @@ function zae(e) {
36870
36885
  }
36871
36886
  };
36872
36887
  }
36873
- function Yae(e, t) {
36888
+ function Gae(e, t) {
36874
36889
  return typeof t == "string" ? t !== e : Array.isArray(t) ? !RR(t, e) : !1;
36875
36890
  }
36876
36891
  function Da(e = !1) {
@@ -36899,14 +36914,14 @@ class na {
36899
36914
  update() {
36900
36915
  }
36901
36916
  }
36902
- class qae extends na {
36917
+ class Kae extends na {
36903
36918
  /**
36904
36919
  * We dynamically generate the AnimationState manager as it contains a reference
36905
36920
  * to the underlying animation library. We only want to load that if we load this,
36906
36921
  * so people can optionally code split it out using the `m` component.
36907
36922
  */
36908
36923
  constructor(t) {
36909
- super(t), t.animationState || (t.animationState = zae(t));
36924
+ super(t), t.animationState || (t.animationState = qae(t));
36910
36925
  }
36911
36926
  updateAnimationControlsSubscription() {
36912
36927
  const { animate: t } = this.node.getProps();
@@ -36927,10 +36942,10 @@ class qae extends na {
36927
36942
  this.node.animationState.reset(), (t = this.unmountControls) === null || t === void 0 || t.call(this);
36928
36943
  }
36929
36944
  }
36930
- let Gae = 0;
36931
- class Kae extends na {
36945
+ let Xae = 0;
36946
+ class Qae extends na {
36932
36947
  constructor() {
36933
- super(...arguments), this.id = Gae++;
36948
+ super(...arguments), this.id = Xae++;
36934
36949
  }
36935
36950
  update() {
36936
36951
  if (!this.node.presenceContext)
@@ -36948,12 +36963,12 @@ class Kae extends na {
36948
36963
  unmount() {
36949
36964
  }
36950
36965
  }
36951
- const Xae = {
36966
+ const Zae = {
36952
36967
  animation: {
36953
- Feature: qae
36968
+ Feature: Kae
36954
36969
  },
36955
36970
  exit: {
36956
- Feature: Kae
36971
+ Feature: Qae
36957
36972
  }
36958
36973
  };
36959
36974
  function Df(e, t, n, r = { passive: !0 }) {
@@ -36967,12 +36982,12 @@ function qf(e) {
36967
36982
  }
36968
36983
  };
36969
36984
  }
36970
- const Qae = (e) => (t) => cw(t) && e(t, qf(t));
36985
+ const Jae = (e) => (t) => cw(t) && e(t, qf(t));
36971
36986
  function Qc(e, t, n, r) {
36972
- return Df(e, t, Qae(n), r);
36987
+ return Df(e, t, Jae(n), r);
36973
36988
  }
36974
36989
  const JE = (e, t) => Math.abs(e - t);
36975
- function Zae(e, t) {
36990
+ function ele(e, t) {
36976
36991
  const n = JE(e.x, t.x), r = JE(e.y, t.y);
36977
36992
  return Math.sqrt(n ** 2 + r ** 2);
36978
36993
  }
@@ -36981,7 +36996,7 @@ class SL {
36981
36996
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
36982
36997
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
36983
36998
  return;
36984
- const p = oy(this.lastMoveEventInfo, this.history), y = this.startEvent !== null, b = Zae(p.offset, { x: 0, y: 0 }) >= 3;
36999
+ const p = oy(this.lastMoveEventInfo, this.history), y = this.startEvent !== null, b = ele(p.offset, { x: 0, y: 0 }) >= 3;
36985
37000
  if (!y && !b)
36986
37001
  return;
36987
37002
  const { point: C } = p, { timestamp: w } = An;
@@ -37022,17 +37037,17 @@ function oy({ point: e }, t) {
37022
37037
  return {
37023
37038
  point: e,
37024
37039
  delta: eD(e, TL(t)),
37025
- offset: eD(e, Jae(t)),
37026
- velocity: ele(t, 0.1)
37040
+ offset: eD(e, tle(t)),
37041
+ velocity: nle(t, 0.1)
37027
37042
  };
37028
37043
  }
37029
- function Jae(e) {
37044
+ function tle(e) {
37030
37045
  return e[0];
37031
37046
  }
37032
37047
  function TL(e) {
37033
37048
  return e[e.length - 1];
37034
37049
  }
37035
- function ele(e, t) {
37050
+ function nle(e, t) {
37036
37051
  if (e.length < 2)
37037
37052
  return { x: 0, y: 0 };
37038
37053
  let n = e.length - 1, r = null;
@@ -37050,15 +37065,15 @@ function ele(e, t) {
37050
37065
  };
37051
37066
  return o.x === 1 / 0 && (o.x = 0), o.y === 1 / 0 && (o.y = 0), o;
37052
37067
  }
37053
- const CL = 1e-4, tle = 1 - CL, nle = 1 + CL, _L = 0.01, rle = 0 - _L, ile = 0 + _L;
37068
+ const CL = 1e-4, rle = 1 - CL, ile = 1 + CL, _L = 0.01, sle = 0 - _L, ole = 0 + _L;
37054
37069
  function Qr(e) {
37055
37070
  return e.max - e.min;
37056
37071
  }
37057
- function sle(e, t, n) {
37072
+ function ale(e, t, n) {
37058
37073
  return Math.abs(e - t) <= n;
37059
37074
  }
37060
37075
  function tD(e, t, n, r = 0.5) {
37061
- e.origin = r, e.originPoint = Qt(t.min, t.max, e.origin), e.scale = Qr(n) / Qr(t), e.translate = Qt(n.min, n.max, e.origin) - e.originPoint, (e.scale >= tle && e.scale <= nle || isNaN(e.scale)) && (e.scale = 1), (e.translate >= rle && e.translate <= ile || isNaN(e.translate)) && (e.translate = 0);
37076
+ e.origin = r, e.originPoint = Qt(t.min, t.max, e.origin), e.scale = Qr(n) / Qr(t), e.translate = Qt(n.min, n.max, e.origin) - e.originPoint, (e.scale >= rle && e.scale <= ile || isNaN(e.scale)) && (e.scale = 1), (e.translate >= sle && e.translate <= ole || isNaN(e.translate)) && (e.translate = 0);
37062
37077
  }
37063
37078
  function Zc(e, t, n, r) {
37064
37079
  tD(e.x, t.x, n.x, r ? r.originX : void 0), tD(e.y, t.y, n.y, r ? r.originY : void 0);
@@ -37066,7 +37081,7 @@ function Zc(e, t, n, r) {
37066
37081
  function nD(e, t, n) {
37067
37082
  e.min = n.min + t.min, e.max = e.min + Qr(t);
37068
37083
  }
37069
- function ole(e, t, n) {
37084
+ function lle(e, t, n) {
37070
37085
  nD(e.x, t.x, n.x), nD(e.y, t.y, n.y);
37071
37086
  }
37072
37087
  function rD(e, t, n) {
@@ -37075,7 +37090,7 @@ function rD(e, t, n) {
37075
37090
  function Jc(e, t, n) {
37076
37091
  rD(e.x, t.x, n.x), rD(e.y, t.y, n.y);
37077
37092
  }
37078
- function ale(e, { min: t, max: n }, r) {
37093
+ function ule(e, { min: t, max: n }, r) {
37079
37094
  return t !== void 0 && e < t ? e = r ? Qt(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Qt(n, e, r.max) : Math.min(e, n)), e;
37080
37095
  }
37081
37096
  function iD(e, t, n) {
@@ -37084,7 +37099,7 @@ function iD(e, t, n) {
37084
37099
  max: n !== void 0 ? e.max + n - (e.max - e.min) : void 0
37085
37100
  };
37086
37101
  }
37087
- function lle(e, { top: t, left: n, bottom: r, right: i }) {
37102
+ function cle(e, { top: t, left: n, bottom: r, right: i }) {
37088
37103
  return {
37089
37104
  x: iD(e.x, n, i),
37090
37105
  y: iD(e.y, t, r)
@@ -37094,23 +37109,23 @@ function sD(e, t) {
37094
37109
  let n = t.min - e.min, r = t.max - e.max;
37095
37110
  return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), { min: n, max: r };
37096
37111
  }
37097
- function ule(e, t) {
37112
+ function fle(e, t) {
37098
37113
  return {
37099
37114
  x: sD(e.x, t.x),
37100
37115
  y: sD(e.y, t.y)
37101
37116
  };
37102
37117
  }
37103
- function cle(e, t) {
37118
+ function dle(e, t) {
37104
37119
  let n = 0.5;
37105
37120
  const r = Qr(e), i = Qr(t);
37106
37121
  return i > r ? n = /* @__PURE__ */ mu(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ mu(e.min, e.max - i, t.min)), to(0, 1, n);
37107
37122
  }
37108
- function fle(e, t) {
37123
+ function hle(e, t) {
37109
37124
  const n = {};
37110
37125
  return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
37111
37126
  }
37112
37127
  const j0 = 0.35;
37113
- function dle(e = j0) {
37128
+ function ple(e = j0) {
37114
37129
  return e === !1 ? e = 0 : e === !0 && (e = j0), {
37115
37130
  x: oD(e, "left", "right"),
37116
37131
  y: oD(e, "top", "bottom")
@@ -37146,10 +37161,10 @@ function EL({ top: e, left: t, right: n, bottom: r }) {
37146
37161
  y: { min: e, max: r }
37147
37162
  };
37148
37163
  }
37149
- function hle({ x: e, y: t }) {
37164
+ function mle({ x: e, y: t }) {
37150
37165
  return { top: t.min, right: e.max, bottom: t.max, left: e.min };
37151
37166
  }
37152
- function ple(e, t) {
37167
+ function gle(e, t) {
37153
37168
  if (!t)
37154
37169
  return e;
37155
37170
  const n = t({ x: e.left, y: e.top }), r = t({ x: e.right, y: e.bottom });
@@ -37189,7 +37204,7 @@ function kL(e, { x: t, y: n }) {
37189
37204
  V0(e.x, t.translate, t.scale, t.originPoint), V0(e.y, n.translate, n.scale, n.originPoint);
37190
37205
  }
37191
37206
  const dD = 0.999999999999, hD = 1.0000000000001;
37192
- function mle(e, t, n, r = !1) {
37207
+ function vle(e, t, n, r = !1) {
37193
37208
  const i = n.length;
37194
37209
  if (!i)
37195
37210
  return;
@@ -37216,14 +37231,14 @@ function eu(e, t) {
37216
37231
  pD(e.x, t.x, t.scaleX, t.scale, t.originX), pD(e.y, t.y, t.scaleY, t.scale, t.originY);
37217
37232
  }
37218
37233
  function OL(e, t) {
37219
- return EL(ple(e.getBoundingClientRect(), t));
37234
+ return EL(gle(e.getBoundingClientRect(), t));
37220
37235
  }
37221
- function gle(e, t, n) {
37236
+ function yle(e, t, n) {
37222
37237
  const r = OL(e, n), { scroll: i } = t;
37223
37238
  return i && (Jl(r.x, i.offset.x), Jl(r.y, i.offset.y)), r;
37224
37239
  }
37225
- const PL = ({ current: e }) => e ? e.ownerDocument.defaultView : null, vle = /* @__PURE__ */ new WeakMap();
37226
- class yle {
37240
+ const PL = ({ current: e }) => e ? e.ownerDocument.defaultView : null, ble = /* @__PURE__ */ new WeakMap();
37241
+ class xle {
37227
37242
  constructor(t) {
37228
37243
  this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = sn(), this.visualElement = t;
37229
37244
  }
@@ -37236,7 +37251,7 @@ class yle {
37236
37251
  p ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(qf(h).point);
37237
37252
  }, s = (h, p) => {
37238
37253
  const { drag: y, dragPropagation: b, onDragStart: C } = this.getProps();
37239
- if (y && !b && (this.openDragLock && this.openDragLock(), this.openDragLock = coe(y), !this.openDragLock))
37254
+ if (y && !b && (this.openDragLock && this.openDragLock(), this.openDragLock = doe(y), !this.openDragLock))
37240
37255
  return;
37241
37256
  this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), mi((E) => {
37242
37257
  let _ = this.getAxisMotionValue(E).get() || 0;
@@ -37257,7 +37272,7 @@ class yle {
37257
37272
  return;
37258
37273
  const { offset: E } = p;
37259
37274
  if (b && this.currentDirection === null) {
37260
- this.currentDirection = ble(E), this.currentDirection !== null && C && C(this.currentDirection);
37275
+ this.currentDirection = wle(E), this.currentDirection !== null && C && C(this.currentDirection);
37261
37276
  return;
37262
37277
  }
37263
37278
  this.updateAxis("x", p.point, E), this.updateAxis("y", p.point, E), this.visualElement.render(), w && w(h, p);
@@ -37299,13 +37314,13 @@ class yle {
37299
37314
  return;
37300
37315
  const s = this.getAxisMotionValue(t);
37301
37316
  let o = this.originPoint[t] + r[t];
37302
- this.constraints && this.constraints[t] && (o = ale(o, this.constraints[t], this.elastic[t])), s.set(o);
37317
+ this.constraints && this.constraints[t] && (o = ule(o, this.constraints[t], this.elastic[t])), s.set(o);
37303
37318
  }
37304
37319
  resolveConstraints() {
37305
37320
  var t;
37306
37321
  const { dragConstraints: n, dragElastic: r } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout, s = this.constraints;
37307
- n && Xl(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = lle(i.layoutBox, n) : this.constraints = !1, this.elastic = dle(r), s !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && mi((o) => {
37308
- this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = fle(i.layoutBox[o], this.constraints[o]));
37322
+ n && Xl(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = cle(i.layoutBox, n) : this.constraints = !1, this.elastic = ple(r), s !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && mi((o) => {
37323
+ this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = hle(i.layoutBox[o], this.constraints[o]));
37309
37324
  });
37310
37325
  }
37311
37326
  resolveRefConstraints() {
@@ -37315,10 +37330,10 @@ class yle {
37315
37330
  const r = t.current, { projection: i } = this.visualElement;
37316
37331
  if (!i || !i.layout)
37317
37332
  return !1;
37318
- const s = gle(r, i.root, this.visualElement.getTransformPagePoint());
37319
- let o = ule(i.layout.layoutBox, s);
37333
+ const s = yle(r, i.root, this.visualElement.getTransformPagePoint());
37334
+ let o = fle(i.layout.layoutBox, s);
37320
37335
  if (n) {
37321
- const l = n(hle(o));
37336
+ const l = n(mle(o));
37322
37337
  this.hasMutatedConstraints = !!l, l && (o = EL(l));
37323
37338
  }
37324
37339
  return o;
@@ -37400,7 +37415,7 @@ class yle {
37400
37415
  const l = this.getAxisMotionValue(o);
37401
37416
  if (l && this.constraints !== !1) {
37402
37417
  const c = l.get();
37403
- i[o] = cle({ min: c, max: c }, this.constraints[o]);
37418
+ i[o] = dle({ min: c, max: c }, this.constraints[o]);
37404
37419
  }
37405
37420
  });
37406
37421
  const { transformTemplate: s } = this.visualElement.getProps();
@@ -37414,7 +37429,7 @@ class yle {
37414
37429
  addListeners() {
37415
37430
  if (!this.visualElement.current)
37416
37431
  return;
37417
- vle.set(this.visualElement, this);
37432
+ ble.set(this.visualElement, this);
37418
37433
  const t = this.visualElement.current, n = Qc(t, "pointerdown", (c) => {
37419
37434
  const { drag: d, dragListener: h = !0 } = this.getProps();
37420
37435
  d && h && this.start(c);
@@ -37449,13 +37464,13 @@ class yle {
37449
37464
  function xh(e, t, n) {
37450
37465
  return (t === !0 || t === e) && (n === null || n === e);
37451
37466
  }
37452
- function ble(e, t = 10) {
37467
+ function wle(e, t = 10) {
37453
37468
  let n = null;
37454
37469
  return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
37455
37470
  }
37456
- class xle extends na {
37471
+ class Sle extends na {
37457
37472
  constructor(t) {
37458
- super(t), this.removeGroupControls = Gr, this.removeListeners = Gr, this.controls = new yle(t);
37473
+ super(t), this.removeGroupControls = Gr, this.removeListeners = Gr, this.controls = new xle(t);
37459
37474
  }
37460
37475
  mount() {
37461
37476
  const { dragControls: t } = this.node.getProps();
@@ -37468,7 +37483,7 @@ class xle extends na {
37468
37483
  const mD = (e) => (t, n) => {
37469
37484
  e && Bt.postRender(() => e(t, n));
37470
37485
  };
37471
- class wle extends na {
37486
+ class Tle extends na {
37472
37487
  constructor() {
37473
37488
  super(...arguments), this.removePointerDownListener = Gr;
37474
37489
  }
@@ -37526,7 +37541,7 @@ const Tc = {
37526
37541
  const n = gD(e, t.target.x), r = gD(e, t.target.y);
37527
37542
  return `${n}% ${r}%`;
37528
37543
  }
37529
- }, Sle = {
37544
+ }, Cle = {
37530
37545
  correct: (e, { treeScale: t, projectionDelta: n }) => {
37531
37546
  const r = e, i = Xo.parse(e);
37532
37547
  if (i.length > 5)
@@ -37537,7 +37552,7 @@ const Tc = {
37537
37552
  return typeof i[2 + o] == "number" && (i[2 + o] /= d), typeof i[3 + o] == "number" && (i[3 + o] /= d), s(i);
37538
37553
  }
37539
37554
  };
37540
- class Tle extends A.Component {
37555
+ class _le extends A.Component {
37541
37556
  /**
37542
37557
  * This only mounts projection nodes for components that
37543
37558
  * need measuring, we might want to do it for all components
@@ -37545,7 +37560,7 @@ class Tle extends A.Component {
37545
37560
  */
37546
37561
  componentDidMount() {
37547
37562
  const { visualElement: t, layoutGroup: n, switchLayoutGroup: r, layoutId: i } = this.props, { projection: s } = t;
37548
- Hse(Cle), s && (n.group && n.group.add(s), r && r.register && i && r.register(s), s.root.didUpdate(), s.addEventListener("animationComplete", () => {
37563
+ zse(Ele), s && (n.group && n.group.add(s), r && r.register && i && r.register(s), s.root.didUpdate(), s.addEventListener("animationComplete", () => {
37549
37564
  this.safeToRemove();
37550
37565
  }), s.setOptions({
37551
37566
  ...s.options,
@@ -37578,10 +37593,10 @@ class Tle extends A.Component {
37578
37593
  }
37579
37594
  }
37580
37595
  function ML(e) {
37581
- const [t, n] = ise(), r = A.useContext(hR);
37582
- return L.jsx(Tle, { ...e, layoutGroup: r, switchLayoutGroup: A.useContext(wR), isPresent: t, safeToRemove: n });
37596
+ const [t, n] = ose(), r = A.useContext(hR);
37597
+ return L.jsx(_le, { ...e, layoutGroup: r, switchLayoutGroup: A.useContext(wR), isPresent: t, safeToRemove: n });
37583
37598
  }
37584
- const Cle = {
37599
+ const Ele = {
37585
37600
  borderRadius: {
37586
37601
  ...Tc,
37587
37602
  applyTo: [
@@ -37595,17 +37610,17 @@ const Cle = {
37595
37610
  borderTopRightRadius: Tc,
37596
37611
  borderBottomLeftRadius: Tc,
37597
37612
  borderBottomRightRadius: Tc,
37598
- boxShadow: Sle
37613
+ boxShadow: Cle
37599
37614
  };
37600
- function _le(e, t, n) {
37615
+ function Dle(e, t, n) {
37601
37616
  const r = Un(e) ? e : _f(e);
37602
37617
  return r.start(Sw("", r, t, n)), r.animation;
37603
37618
  }
37604
- function Ele(e) {
37619
+ function kle(e) {
37605
37620
  return e instanceof SVGElement && e.tagName !== "svg";
37606
37621
  }
37607
- const Dle = (e, t) => e.depth - t.depth;
37608
- class kle {
37622
+ const Ole = (e, t) => e.depth - t.depth;
37623
+ class Ple {
37609
37624
  constructor() {
37610
37625
  this.children = [], this.isDirty = !1;
37611
37626
  }
@@ -37616,25 +37631,25 @@ class kle {
37616
37631
  dw(this.children, t), this.isDirty = !0;
37617
37632
  }
37618
37633
  forEach(t) {
37619
- this.isDirty && this.children.sort(Dle), this.isDirty = !1, this.children.forEach(t);
37634
+ this.isDirty && this.children.sort(Ole), this.isDirty = !1, this.children.forEach(t);
37620
37635
  }
37621
37636
  }
37622
- function Ole(e, t) {
37637
+ function Mle(e, t) {
37623
37638
  const n = ds.now(), r = ({ timestamp: i }) => {
37624
37639
  const s = i - n;
37625
37640
  s >= t && (Ko(r), e(s - t));
37626
37641
  };
37627
37642
  return Bt.read(r, !0), () => Ko(r);
37628
37643
  }
37629
- const AL = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Ple = AL.length, vD = (e) => typeof e == "string" ? parseFloat(e) : e, yD = (e) => typeof e == "number" || Ye.test(e);
37630
- function Mle(e, t, n, r, i, s) {
37644
+ const AL = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Ale = AL.length, vD = (e) => typeof e == "string" ? parseFloat(e) : e, yD = (e) => typeof e == "number" || Ye.test(e);
37645
+ function Ile(e, t, n, r, i, s) {
37631
37646
  i ? (e.opacity = Qt(
37632
37647
  0,
37633
37648
  // TODO Reinstate this if only child
37634
37649
  n.opacity !== void 0 ? n.opacity : 1,
37635
- Ale(r)
37636
- ), e.opacityExit = Qt(t.opacity !== void 0 ? t.opacity : 1, 0, Ile(r))) : s && (e.opacity = Qt(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
37637
- for (let o = 0; o < Ple; o++) {
37650
+ Rle(r)
37651
+ ), e.opacityExit = Qt(t.opacity !== void 0 ? t.opacity : 1, 0, Lle(r))) : s && (e.opacity = Qt(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
37652
+ for (let o = 0; o < Ale; o++) {
37638
37653
  const l = `border${AL[o]}Radius`;
37639
37654
  let c = bD(t, l), d = bD(n, l);
37640
37655
  if (c === void 0 && d === void 0)
@@ -37646,7 +37661,7 @@ function Mle(e, t, n, r, i, s) {
37646
37661
  function bD(e, t) {
37647
37662
  return e[t] !== void 0 ? e[t] : e.borderRadius;
37648
37663
  }
37649
- const Ale = /* @__PURE__ */ IL(0, 0.5, QR), Ile = /* @__PURE__ */ IL(0.5, 0.95, Gr);
37664
+ const Rle = /* @__PURE__ */ IL(0, 0.5, QR), Lle = /* @__PURE__ */ IL(0.5, 0.95, Gr);
37650
37665
  function IL(e, t, n) {
37651
37666
  return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ mu(e, t, r));
37652
37667
  }
@@ -37662,18 +37677,18 @@ function wD(e, t) {
37662
37677
  function SD(e, t, n, r, i) {
37663
37678
  return e -= t, e = Wp(e, 1 / n, r), i !== void 0 && (e = Wp(e, 1 / i, r)), e;
37664
37679
  }
37665
- function Rle(e, t = 0, n = 1, r = 0.5, i, s = e, o = e) {
37680
+ function Nle(e, t = 0, n = 1, r = 0.5, i, s = e, o = e) {
37666
37681
  if (fs.test(t) && (t = parseFloat(t), t = Qt(o.min, o.max, t / 100) - o.min), typeof t != "number")
37667
37682
  return;
37668
37683
  let l = Qt(s.min, s.max, r);
37669
37684
  e === s && (l -= t), e.min = SD(e.min, t, n, l, i), e.max = SD(e.max, t, n, l, i);
37670
37685
  }
37671
37686
  function TD(e, t, [n, r, i], s, o) {
37672
- Rle(e, t[n], t[r], t[i], t.scale, s, o);
37687
+ Nle(e, t[n], t[r], t[i], t.scale, s, o);
37673
37688
  }
37674
- const Lle = ["x", "scaleX", "originX"], Nle = ["y", "scaleY", "originY"];
37689
+ const $le = ["x", "scaleX", "originX"], Fle = ["y", "scaleY", "originY"];
37675
37690
  function CD(e, t, n, r) {
37676
- TD(e.x, t, Lle, n ? n.x : void 0, r ? r.x : void 0), TD(e.y, t, Nle, n ? n.y : void 0, r ? r.y : void 0);
37691
+ TD(e.x, t, $le, n ? n.x : void 0, r ? r.x : void 0), TD(e.y, t, Fle, n ? n.y : void 0, r ? r.y : void 0);
37677
37692
  }
37678
37693
  function _D(e) {
37679
37694
  return e.translate === 0 && e.scale === 1;
@@ -37684,7 +37699,7 @@ function RL(e) {
37684
37699
  function ED(e, t) {
37685
37700
  return e.min === t.min && e.max === t.max;
37686
37701
  }
37687
- function $le(e, t) {
37702
+ function jle(e, t) {
37688
37703
  return ED(e.x, t.x) && ED(e.y, t.y);
37689
37704
  }
37690
37705
  function DD(e, t) {
@@ -37699,7 +37714,7 @@ function kD(e) {
37699
37714
  function OD(e, t) {
37700
37715
  return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
37701
37716
  }
37702
- class Fle {
37717
+ class Ble {
37703
37718
  constructor() {
37704
37719
  this.members = [];
37705
37720
  }
@@ -37753,7 +37768,7 @@ class Fle {
37753
37768
  this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
37754
37769
  }
37755
37770
  }
37756
- function jle(e, t, n) {
37771
+ function Vle(e, t, n) {
37757
37772
  let r = "";
37758
37773
  const i = e.x.translate / t.x, s = e.y.translate / t.y, o = (n == null ? void 0 : n.z) || 0;
37759
37774
  if ((i || s || o) && (r = `translate3d(${i}px, ${s}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
@@ -37768,8 +37783,8 @@ const Ra = {
37768
37783
  totalNodes: 0,
37769
37784
  resolvedTargetDeltas: 0,
37770
37785
  recalculatedProjection: 0
37771
- }, Lc = typeof window < "u" && window.MotionDebug !== void 0, ly = ["", "X", "Y", "Z"], Ble = { visibility: "hidden" }, PD = 1e3;
37772
- let Vle = 0;
37786
+ }, Lc = typeof window < "u" && window.MotionDebug !== void 0, ly = ["", "X", "Y", "Z"], Wle = { visibility: "hidden" }, PD = 1e3;
37787
+ let Hle = 0;
37773
37788
  function uy(e, t, n, r) {
37774
37789
  const { latestValues: i } = t;
37775
37790
  i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
@@ -37791,14 +37806,14 @@ function NL(e) {
37791
37806
  function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
37792
37807
  return class {
37793
37808
  constructor(o = {}, l = t == null ? void 0 : t()) {
37794
- this.id = Vle++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
37809
+ this.id = Hle++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
37795
37810
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
37796
37811
  }, this.updateProjection = () => {
37797
- this.projectionUpdateScheduled = !1, Lc && (Ra.totalNodes = Ra.resolvedTargetDeltas = Ra.recalculatedProjection = 0), this.nodes.forEach(Ule), this.nodes.forEach(Kle), this.nodes.forEach(Xle), this.nodes.forEach(zle), Lc && window.MotionDebug.record(Ra);
37812
+ this.projectionUpdateScheduled = !1, Lc && (Ra.totalNodes = Ra.resolvedTargetDeltas = Ra.recalculatedProjection = 0), this.nodes.forEach(Yle), this.nodes.forEach(Qle), this.nodes.forEach(Zle), this.nodes.forEach(qle), Lc && window.MotionDebug.record(Ra);
37798
37813
  }, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = o, this.root = l ? l.root || l : this, this.path = l ? [...l.path, l] : [], this.parent = l, this.depth = l ? l.depth + 1 : 0;
37799
37814
  for (let c = 0; c < this.path.length; c++)
37800
37815
  this.path[c].shouldResetTransform = !0;
37801
- this.root === this && (this.nodes = new kle());
37816
+ this.root === this && (this.nodes = new Ple());
37802
37817
  }
37803
37818
  addEventListener(o, l) {
37804
37819
  return this.eventHandlers.has(o) || this.eventHandlers.set(o, new hw()), this.eventHandlers.get(o).add(l);
@@ -37816,13 +37831,13 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
37816
37831
  mount(o, l = this.root.hasTreeAnimated) {
37817
37832
  if (this.instance)
37818
37833
  return;
37819
- this.isSVG = Ele(o), this.instance = o;
37834
+ this.isSVG = kle(o), this.instance = o;
37820
37835
  const { layoutId: c, layout: d, visualElement: h } = this.options;
37821
37836
  if (h && !h.current && h.mount(o), this.root.nodes.add(this), this.parent && this.parent.children.add(this), l && (d || c) && (this.isLayoutDirty = !0), e) {
37822
37837
  let p;
37823
37838
  const y = () => this.root.updateBlockedByResize = !1;
37824
37839
  e(o, () => {
37825
- this.root.updateBlockedByResize = !0, p && p(), p = Ole(y, 250), qh.hasAnimatedSinceResize && (qh.hasAnimatedSinceResize = !1, this.nodes.forEach(AD));
37840
+ this.root.updateBlockedByResize = !0, p && p(), p = Mle(y, 250), qh.hasAnimatedSinceResize && (qh.hasAnimatedSinceResize = !1, this.nodes.forEach(AD));
37826
37841
  });
37827
37842
  }
37828
37843
  c && this.root.registerSharedNode(c, this), this.options.animate !== !1 && h && (c || d) && this.addEventListener("didUpdate", ({ delta: p, hasLayoutChanged: y, hasRelativeTargetChanged: b, layout: C }) => {
@@ -37830,7 +37845,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
37830
37845
  this.target = void 0, this.relativeTarget = void 0;
37831
37846
  return;
37832
37847
  }
37833
- const w = this.options.transition || h.getDefaultTransition() || tue, { onLayoutAnimationStart: E, onLayoutAnimationComplete: _ } = h.getProps(), I = !this.targetLayout || !LL(this.targetLayout, C) || b, P = !y && b;
37848
+ const w = this.options.transition || h.getDefaultTransition() || rue, { onLayoutAnimationStart: E, onLayoutAnimationComplete: _ } = h.getProps(), I = !this.targetLayout || !LL(this.targetLayout, C) || b, P = !y && b;
37834
37849
  if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || P || y && (I || !this.currentAnimation)) {
37835
37850
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(p, P);
37836
37851
  const V = {
@@ -37864,7 +37879,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
37864
37879
  }
37865
37880
  // Note: currently only running on root node
37866
37881
  startUpdate() {
37867
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Qle), this.animationId++);
37882
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Jle), this.animationId++);
37868
37883
  }
37869
37884
  getTransformTemplate() {
37870
37885
  const { visualElement: o } = this.options;
@@ -37893,7 +37908,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
37893
37908
  this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(MD);
37894
37909
  return;
37895
37910
  }
37896
- this.isUpdating || this.nodes.forEach(qle), this.isUpdating = !1, this.nodes.forEach(Gle), this.nodes.forEach(Wle), this.nodes.forEach(Hle), this.clearAllSnapshots();
37911
+ this.isUpdating || this.nodes.forEach(Kle), this.isUpdating = !1, this.nodes.forEach(Xle), this.nodes.forEach(Ule), this.nodes.forEach(zle), this.clearAllSnapshots();
37897
37912
  const l = ds.now();
37898
37913
  An.delta = to(0, 1e3 / 60, l - An.timestamp), An.timestamp = l, An.isProcessing = !0, ey.update.process(An), ey.preRender.process(An), ey.render.process(An), An.isProcessing = !1;
37899
37914
  }
@@ -37901,7 +37916,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
37901
37916
  this.updateScheduled || (this.updateScheduled = !0, Qx.read(this.scheduleUpdate));
37902
37917
  }
37903
37918
  clearAllSnapshots() {
37904
- this.nodes.forEach(Yle), this.sharedNodes.forEach(Zle);
37919
+ this.nodes.forEach(Gle), this.sharedNodes.forEach(eue);
37905
37920
  }
37906
37921
  scheduleUpdateProjection() {
37907
37922
  this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, Bt.preRender(this.updateProjection, !1, !0));
@@ -37950,7 +37965,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
37950
37965
  measure(o = !0) {
37951
37966
  const l = this.measurePageBox();
37952
37967
  let c = this.removeElementScroll(l);
37953
- return o && (c = this.removeTransform(c)), nue(c), {
37968
+ return o && (c = this.removeTransform(c)), iue(c), {
37954
37969
  animationId: this.root.animationId,
37955
37970
  measuredBox: l,
37956
37971
  layoutBox: c,
@@ -37964,7 +37979,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
37964
37979
  if (!l)
37965
37980
  return sn();
37966
37981
  const c = l.measureViewportBox();
37967
- if (!(((o = this.scroll) === null || o === void 0 ? void 0 : o.wasRoot) || this.path.some(rue))) {
37982
+ if (!(((o = this.scroll) === null || o === void 0 ? void 0 : o.wasRoot) || this.path.some(sue))) {
37968
37983
  const { scroll: h } = this.root;
37969
37984
  h && (Jl(c.x, h.offset.x), Jl(c.y, h.offset.y));
37970
37985
  }
@@ -38036,7 +38051,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
38036
38051
  b && b.layout && this.animationProgress !== 1 ? (this.relativeParent = b, this.forceRelativeParentToResolveTarget(), this.relativeTarget = sn(), this.relativeTargetOrigin = sn(), Jc(this.relativeTargetOrigin, this.layout.layoutBox, b.layout.layoutBox), di(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
38037
38052
  }
38038
38053
  if (!(!this.relativeTarget && !this.targetDelta)) {
38039
- if (this.target || (this.target = sn(), this.targetWithTransforms = sn()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), ole(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : di(this.target, this.layout.layoutBox), kL(this.target, this.targetDelta)) : di(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
38054
+ if (this.target || (this.target = sn(), this.targetWithTransforms = sn()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), lle(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : di(this.target, this.layout.layoutBox), kL(this.target, this.targetDelta)) : di(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
38040
38055
  this.attemptToResolveRelativeTarget = !1;
38041
38056
  const b = this.getClosestProjectingParent();
38042
38057
  b && !!b.resumingFrom == !!this.resumingFrom && !b.options.layoutScroll && b.target && this.animationProgress !== 1 ? (this.relativeParent = b, this.forceRelativeParentToResolveTarget(), this.relativeTarget = sn(), this.relativeTargetOrigin = sn(), Jc(this.relativeTargetOrigin, this.target, b.target), di(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
@@ -38063,7 +38078,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
38063
38078
  return;
38064
38079
  di(this.layoutCorrected, this.layout.layoutBox);
38065
38080
  const y = this.treeScale.x, b = this.treeScale.y;
38066
- mle(this.layoutCorrected, this.treeScale, this.path, c), l.layout && !l.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (l.target = l.layout.layoutBox, l.targetWithTransforms = sn());
38081
+ vle(this.layoutCorrected, this.treeScale, this.path, c), l.layout && !l.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (l.target = l.layout.layoutBox, l.targetWithTransforms = sn());
38067
38082
  const { target: C } = l;
38068
38083
  if (!C) {
38069
38084
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
@@ -38091,17 +38106,17 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
38091
38106
  setAnimationOrigin(o, l = !1) {
38092
38107
  const c = this.snapshot, d = c ? c.latestValues : {}, h = { ...this.latestValues }, p = Zl();
38093
38108
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !l;
38094
- const y = sn(), b = c ? c.source : void 0, C = this.layout ? this.layout.source : void 0, w = b !== C, E = this.getStack(), _ = !E || E.members.length <= 1, I = !!(w && !_ && this.options.crossfade === !0 && !this.path.some(eue));
38109
+ const y = sn(), b = c ? c.source : void 0, C = this.layout ? this.layout.source : void 0, w = b !== C, E = this.getStack(), _ = !E || E.members.length <= 1, I = !!(w && !_ && this.options.crossfade === !0 && !this.path.some(nue));
38095
38110
  this.animationProgress = 0;
38096
38111
  let P;
38097
38112
  this.mixTargetDelta = (V) => {
38098
38113
  const N = V / 1e3;
38099
- ID(p.x, o.x, N), ID(p.y, o.y, N), this.setTargetDelta(p), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Jc(y, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Jle(this.relativeTarget, this.relativeTargetOrigin, y, N), P && $le(this.relativeTarget, P) && (this.isProjectionDirty = !1), P || (P = sn()), di(P, this.relativeTarget)), w && (this.animationValues = h, Mle(h, d, this.latestValues, N, I, _)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = N;
38114
+ ID(p.x, o.x, N), ID(p.y, o.y, N), this.setTargetDelta(p), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Jc(y, this.layout.layoutBox, this.relativeParent.layout.layoutBox), tue(this.relativeTarget, this.relativeTargetOrigin, y, N), P && jle(this.relativeTarget, P) && (this.isProjectionDirty = !1), P || (P = sn()), di(P, this.relativeTarget)), w && (this.animationValues = h, Ile(h, d, this.latestValues, N, I, _)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = N;
38100
38115
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
38101
38116
  }
38102
38117
  startAnimation(o) {
38103
38118
  this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Ko(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = Bt.update(() => {
38104
- qh.hasAnimatedSinceResize = !0, this.currentAnimation = _le(0, PD, {
38119
+ qh.hasAnimatedSinceResize = !0, this.currentAnimation = Dle(0, PD, {
38105
38120
  ...o,
38106
38121
  onUpdate: (l) => {
38107
38122
  this.mixTargetDelta(l), o.onUpdate && o.onUpdate(l);
@@ -38135,7 +38150,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
38135
38150
  }
38136
38151
  }
38137
38152
  registerSharedNode(o, l) {
38138
- this.sharedNodes.has(o) || this.sharedNodes.set(o, new Fle()), this.sharedNodes.get(o).add(l);
38153
+ this.sharedNodes.has(o) || this.sharedNodes.set(o, new Ble()), this.sharedNodes.get(o).add(l);
38139
38154
  const d = l.options.initialPromotionConfig;
38140
38155
  l.promote({
38141
38156
  transition: d ? d.transition : void 0,
@@ -38191,7 +38206,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
38191
38206
  if (!this.instance || this.isSVG)
38192
38207
  return;
38193
38208
  if (!this.isVisible)
38194
- return Ble;
38209
+ return Wle;
38195
38210
  const d = {
38196
38211
  visibility: ""
38197
38212
  }, h = this.getTransformTemplate();
@@ -38203,7 +38218,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
38203
38218
  return this.options.layoutId && (w.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, w.pointerEvents = zh(o == null ? void 0 : o.pointerEvents) || ""), this.hasProjected && !Ia(this.latestValues) && (w.transform = h ? h({}, "") : "none", this.hasProjected = !1), w;
38204
38219
  }
38205
38220
  const y = p.animationValues || p.latestValues;
38206
- this.applyTransformsToTarget(), d.transform = jle(this.projectionDeltaWithTransform, this.treeScale, y), h && (d.transform = h(y, d.transform));
38221
+ this.applyTransformsToTarget(), d.transform = Vle(this.projectionDeltaWithTransform, this.treeScale, y), h && (d.transform = h(y, d.transform));
38207
38222
  const { x: b, y: C } = this.projectionDelta;
38208
38223
  d.transformOrigin = `${b.origin * 100}% ${C.origin * 100}% 0`, p.animationValues ? d.opacity = p === this ? (c = (l = y.opacity) !== null && l !== void 0 ? l : this.latestValues.opacity) !== null && c !== void 0 ? c : 1 : this.preserveOpacity ? this.latestValues.opacity : y.opacityExit : d.opacity = p === this ? y.opacity !== void 0 ? y.opacity : "" : y.opacityExit !== void 0 ? y.opacityExit : 0;
38209
38224
  for (const w in $p) {
@@ -38231,10 +38246,10 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
38231
38246
  }
38232
38247
  };
38233
38248
  }
38234
- function Wle(e) {
38249
+ function Ule(e) {
38235
38250
  e.updateLayout();
38236
38251
  }
38237
- function Hle(e) {
38252
+ function zle(e) {
38238
38253
  var t;
38239
38254
  const n = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot;
38240
38255
  if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) {
@@ -38278,38 +38293,38 @@ function Hle(e) {
38278
38293
  }
38279
38294
  e.options.transition = void 0;
38280
38295
  }
38281
- function Ule(e) {
38296
+ function Yle(e) {
38282
38297
  Lc && Ra.totalNodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
38283
38298
  }
38284
- function zle(e) {
38299
+ function qle(e) {
38285
38300
  e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
38286
38301
  }
38287
- function Yle(e) {
38302
+ function Gle(e) {
38288
38303
  e.clearSnapshot();
38289
38304
  }
38290
38305
  function MD(e) {
38291
38306
  e.clearMeasurements();
38292
38307
  }
38293
- function qle(e) {
38308
+ function Kle(e) {
38294
38309
  e.isLayoutDirty = !1;
38295
38310
  }
38296
- function Gle(e) {
38311
+ function Xle(e) {
38297
38312
  const { visualElement: t } = e.options;
38298
38313
  t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
38299
38314
  }
38300
38315
  function AD(e) {
38301
38316
  e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
38302
38317
  }
38303
- function Kle(e) {
38318
+ function Qle(e) {
38304
38319
  e.resolveTargetDelta();
38305
38320
  }
38306
- function Xle(e) {
38321
+ function Zle(e) {
38307
38322
  e.calcProjection();
38308
38323
  }
38309
- function Qle(e) {
38324
+ function Jle(e) {
38310
38325
  e.resetSkewAndRotation();
38311
38326
  }
38312
- function Zle(e) {
38327
+ function eue(e) {
38313
38328
  e.removeLeadSnapshot();
38314
38329
  }
38315
38330
  function ID(e, t, n) {
@@ -38318,30 +38333,30 @@ function ID(e, t, n) {
38318
38333
  function RD(e, t, n, r) {
38319
38334
  e.min = Qt(t.min, n.min, r), e.max = Qt(t.max, n.max, r);
38320
38335
  }
38321
- function Jle(e, t, n, r) {
38336
+ function tue(e, t, n, r) {
38322
38337
  RD(e.x, t.x, n.x, r), RD(e.y, t.y, n.y, r);
38323
38338
  }
38324
- function eue(e) {
38339
+ function nue(e) {
38325
38340
  return e.animationValues && e.animationValues.opacityExit !== void 0;
38326
38341
  }
38327
- const tue = {
38342
+ const rue = {
38328
38343
  duration: 0.45,
38329
38344
  ease: [0.4, 0, 0.1, 1]
38330
38345
  }, LD = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), ND = LD("applewebkit/") && !LD("chrome/") ? Math.round : Gr;
38331
38346
  function $D(e) {
38332
38347
  e.min = ND(e.min), e.max = ND(e.max);
38333
38348
  }
38334
- function nue(e) {
38349
+ function iue(e) {
38335
38350
  $D(e.x), $D(e.y);
38336
38351
  }
38337
38352
  function FL(e, t, n) {
38338
- return e === "position" || e === "preserve-aspect" && !sle(kD(t), kD(n), 0.2);
38353
+ return e === "position" || e === "preserve-aspect" && !ale(kD(t), kD(n), 0.2);
38339
38354
  }
38340
- function rue(e) {
38355
+ function sue(e) {
38341
38356
  var t;
38342
38357
  return e !== e.root && ((t = e.scroll) === null || t === void 0 ? void 0 : t.wasRoot);
38343
38358
  }
38344
- const iue = $L({
38359
+ const oue = $L({
38345
38360
  attachResizeListener: (e, t) => Df(e, "resize", t),
38346
38361
  measureScroll: () => ({
38347
38362
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
@@ -38357,7 +38372,7 @@ const iue = $L({
38357
38372
  }),
38358
38373
  defaultParent: () => {
38359
38374
  if (!cy.current) {
38360
- const e = new iue({});
38375
+ const e = new oue({});
38361
38376
  e.mount(window), e.setOptions({ layoutScroll: !0 }), cy.current = e;
38362
38377
  }
38363
38378
  return cy.current;
@@ -38366,12 +38381,12 @@ const iue = $L({
38366
38381
  e.style.transform = t !== void 0 ? t : "none";
38367
38382
  },
38368
38383
  checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
38369
- }), sue = {
38384
+ }), aue = {
38370
38385
  pan: {
38371
- Feature: wle
38386
+ Feature: Tle
38372
38387
  },
38373
38388
  drag: {
38374
- Feature: xle,
38389
+ Feature: Sle,
38375
38390
  ProjectionNode: jL,
38376
38391
  MeasureLayout: ML
38377
38392
  }
@@ -38382,15 +38397,15 @@ function FD(e, t, n) {
38382
38397
  const i = "onHover" + n, s = r[i];
38383
38398
  s && Bt.postRender(() => s(t, qf(t)));
38384
38399
  }
38385
- class oue extends na {
38400
+ class lue extends na {
38386
38401
  mount() {
38387
38402
  const { current: t } = this.node;
38388
- t && (this.unmount = soe(t, (n) => (FD(this.node, n, "Start"), (r) => FD(this.node, r, "End"))));
38403
+ t && (this.unmount = aoe(t, (n) => (FD(this.node, n, "Start"), (r) => FD(this.node, r, "End"))));
38389
38404
  }
38390
38405
  unmount() {
38391
38406
  }
38392
38407
  }
38393
- class aue extends na {
38408
+ class uue extends na {
38394
38409
  constructor() {
38395
38410
  super(...arguments), this.isActive = !1;
38396
38411
  }
@@ -38418,37 +38433,37 @@ function jD(e, t, n) {
38418
38433
  const i = "onTap" + (n === "End" ? "" : n), s = r[i];
38419
38434
  s && Bt.postRender(() => s(t, qf(t)));
38420
38435
  }
38421
- class lue extends na {
38436
+ class cue extends na {
38422
38437
  mount() {
38423
38438
  const { current: t } = this.node;
38424
- t && (this.unmount = uoe(t, (n) => (jD(this.node, n, "Start"), (r, { success: i }) => jD(this.node, r, i ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
38439
+ t && (this.unmount = foe(t, (n) => (jD(this.node, n, "Start"), (r, { success: i }) => jD(this.node, r, i ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
38425
38440
  }
38426
38441
  unmount() {
38427
38442
  }
38428
38443
  }
38429
- const W0 = /* @__PURE__ */ new WeakMap(), fy = /* @__PURE__ */ new WeakMap(), uue = (e) => {
38444
+ const W0 = /* @__PURE__ */ new WeakMap(), fy = /* @__PURE__ */ new WeakMap(), fue = (e) => {
38430
38445
  const t = W0.get(e.target);
38431
38446
  t && t(e);
38432
- }, cue = (e) => {
38433
- e.forEach(uue);
38447
+ }, due = (e) => {
38448
+ e.forEach(fue);
38434
38449
  };
38435
- function fue({ root: e, ...t }) {
38450
+ function hue({ root: e, ...t }) {
38436
38451
  const n = e || document;
38437
38452
  fy.has(n) || fy.set(n, {});
38438
38453
  const r = fy.get(n), i = JSON.stringify(t);
38439
- return r[i] || (r[i] = new IntersectionObserver(cue, { root: e, ...t })), r[i];
38454
+ return r[i] || (r[i] = new IntersectionObserver(due, { root: e, ...t })), r[i];
38440
38455
  }
38441
- function due(e, t, n) {
38442
- const r = fue(t);
38456
+ function pue(e, t, n) {
38457
+ const r = hue(t);
38443
38458
  return W0.set(e, n), r.observe(e), () => {
38444
38459
  W0.delete(e), r.unobserve(e);
38445
38460
  };
38446
38461
  }
38447
- const hue = {
38462
+ const mue = {
38448
38463
  some: 0,
38449
38464
  all: 1
38450
38465
  };
38451
- class pue extends na {
38466
+ class gue extends na {
38452
38467
  constructor() {
38453
38468
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
38454
38469
  }
@@ -38457,7 +38472,7 @@ class pue extends na {
38457
38472
  const { viewport: t = {} } = this.node.getProps(), { root: n, margin: r, amount: i = "some", once: s } = t, o = {
38458
38473
  root: n ? n.current : void 0,
38459
38474
  rootMargin: r,
38460
- threshold: typeof i == "number" ? i : hue[i]
38475
+ threshold: typeof i == "number" ? i : mue[i]
38461
38476
  }, l = (c) => {
38462
38477
  const { isIntersecting: d } = c;
38463
38478
  if (this.isInView === d || (this.isInView = d, s && !d && this.hasEnteredView))
@@ -38466,7 +38481,7 @@ class pue extends na {
38466
38481
  const { onViewportEnter: h, onViewportLeave: p } = this.node.getProps(), y = d ? h : p;
38467
38482
  y && y(c);
38468
38483
  };
38469
- return due(this.node.current, o, l);
38484
+ return pue(this.node.current, o, l);
38470
38485
  }
38471
38486
  mount() {
38472
38487
  this.startObserver();
@@ -38475,34 +38490,34 @@ class pue extends na {
38475
38490
  if (typeof IntersectionObserver > "u")
38476
38491
  return;
38477
38492
  const { props: t, prevProps: n } = this.node;
38478
- ["amount", "margin", "root"].some(mue(t, n)) && this.startObserver();
38493
+ ["amount", "margin", "root"].some(vue(t, n)) && this.startObserver();
38479
38494
  }
38480
38495
  unmount() {
38481
38496
  }
38482
38497
  }
38483
- function mue({ viewport: e = {} }, { viewport: t = {} } = {}) {
38498
+ function vue({ viewport: e = {} }, { viewport: t = {} } = {}) {
38484
38499
  return (n) => e[n] !== t[n];
38485
38500
  }
38486
- const gue = {
38501
+ const yue = {
38487
38502
  inView: {
38488
- Feature: pue
38503
+ Feature: gue
38489
38504
  },
38490
38505
  tap: {
38491
- Feature: lue
38506
+ Feature: cue
38492
38507
  },
38493
38508
  focus: {
38494
- Feature: aue
38509
+ Feature: uue
38495
38510
  },
38496
38511
  hover: {
38497
- Feature: oue
38512
+ Feature: lue
38498
38513
  }
38499
- }, vue = {
38514
+ }, bue = {
38500
38515
  layout: {
38501
38516
  ProjectionNode: jL,
38502
38517
  MeasureLayout: ML
38503
38518
  }
38504
38519
  }, H0 = { current: null }, BL = { current: !1 };
38505
- function yue() {
38520
+ function xue() {
38506
38521
  if (BL.current = !0, !!Yx)
38507
38522
  if (window.matchMedia) {
38508
38523
  const e = window.matchMedia("(prefers-reduced-motion)"), t = () => H0.current = e.matches;
@@ -38510,8 +38525,8 @@ function yue() {
38510
38525
  } else
38511
38526
  H0.current = !1;
38512
38527
  }
38513
- const bue = [...fL, Hn, Xo], xue = (e) => bue.find(cL(e)), BD = /* @__PURE__ */ new WeakMap();
38514
- function wue(e, t, n) {
38528
+ const wue = [...fL, Hn, Xo], Sue = (e) => wue.find(cL(e)), BD = /* @__PURE__ */ new WeakMap();
38529
+ function Tue(e, t, n) {
38515
38530
  for (const r in t) {
38516
38531
  const i = t[r], s = n[r];
38517
38532
  if (Un(i))
@@ -38540,7 +38555,7 @@ const VD = [
38540
38555
  "LayoutAnimationStart",
38541
38556
  "LayoutAnimationComplete"
38542
38557
  ];
38543
- class Sue {
38558
+ class Cue {
38544
38559
  /**
38545
38560
  * This method takes React props and returns found MotionValues. For example, HTML
38546
38561
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -38567,7 +38582,7 @@ class Sue {
38567
38582
  }
38568
38583
  }
38569
38584
  mount(t) {
38570
- this.current = t, BD.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), BL.current || yue(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : H0.current, this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
38585
+ this.current = t, BD.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), BL.current || xue(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : H0.current, this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
38571
38586
  }
38572
38587
  unmount() {
38573
38588
  BD.delete(this.current), this.projection && this.projection.unmount(), Ko(this.notifyUpdate), Ko(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
@@ -38634,7 +38649,7 @@ class Sue {
38634
38649
  const s = "on" + i, o = t[s];
38635
38650
  o && (this.propEventSubscriptions[i] = this.on(i, o));
38636
38651
  }
38637
- this.prevMotionValues = wue(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
38652
+ this.prevMotionValues = Tue(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
38638
38653
  }
38639
38654
  getProps() {
38640
38655
  return this.props;
@@ -38700,7 +38715,7 @@ class Sue {
38700
38715
  readValue(t, n) {
38701
38716
  var r;
38702
38717
  let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (r = this.getBaseTargetFromProps(this.props, t)) !== null && r !== void 0 ? r : this.readValueFromInstance(this.current, t, this.options);
38703
- return i != null && (typeof i == "string" && (lL(i) || JR(i)) ? i = parseFloat(i) : !xue(i) && Xo.test(n) && (i = sL(t, n)), this.setBaseTarget(t, Un(i) ? i.get() : i)), Un(i) ? i.get() : i;
38718
+ return i != null && (typeof i == "string" && (lL(i) || JR(i)) ? i = parseFloat(i) : !Sue(i) && Xo.test(n) && (i = sL(t, n)), this.setBaseTarget(t, Un(i) ? i.get() : i)), Un(i) ? i.get() : i;
38704
38719
  }
38705
38720
  /**
38706
38721
  * Set the base target to later animate back to. This is currently
@@ -38733,7 +38748,7 @@ class Sue {
38733
38748
  this.events[t] && this.events[t].notify(...n);
38734
38749
  }
38735
38750
  }
38736
- class VL extends Sue {
38751
+ class VL extends Cue {
38737
38752
  constructor() {
38738
38753
  super(...arguments), this.KeyframeResolver = dL;
38739
38754
  }
@@ -38754,10 +38769,10 @@ class VL extends Sue {
38754
38769
  }));
38755
38770
  }
38756
38771
  }
38757
- function Tue(e) {
38772
+ function _ue(e) {
38758
38773
  return window.getComputedStyle(e);
38759
38774
  }
38760
- class Cue extends VL {
38775
+ class Eue extends VL {
38761
38776
  constructor() {
38762
38777
  super(...arguments), this.type = "html", this.renderInstance = kR;
38763
38778
  }
@@ -38766,7 +38781,7 @@ class Cue extends VL {
38766
38781
  const r = yw(n);
38767
38782
  return r && r.default || 0;
38768
38783
  } else {
38769
- const r = Tue(t), i = (_R(n) ? r.getPropertyValue(n) : r[n]) || 0;
38784
+ const r = _ue(t), i = (_R(n) ? r.getPropertyValue(n) : r[n]) || 0;
38770
38785
  return typeof i == "string" ? i.trim() : i;
38771
38786
  }
38772
38787
  }
@@ -38780,7 +38795,7 @@ class Cue extends VL {
38780
38795
  return ow(t, n, r);
38781
38796
  }
38782
38797
  }
38783
- class _ue extends VL {
38798
+ class Due extends VL {
38784
38799
  constructor() {
38785
38800
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = sn;
38786
38801
  }
@@ -38807,14 +38822,14 @@ class _ue extends VL {
38807
38822
  this.isSVGTag = sw(t.tagName), super.mount(t);
38808
38823
  }
38809
38824
  }
38810
- const Eue = (e, t) => Zx(e) ? new _ue(t) : new Cue(t, {
38825
+ const kue = (e, t) => Zx(e) ? new Due(t) : new Eue(t, {
38811
38826
  allowProjection: e !== A.Fragment
38812
- }), Due = /* @__PURE__ */ Zse({
38813
- ...Xae,
38814
- ...gue,
38815
- ...sue,
38816
- ...vue
38817
- }, Eue), kue = /* @__PURE__ */ hse(Due);
38827
+ }), Oue = /* @__PURE__ */ eoe({
38828
+ ...Zae,
38829
+ ...yue,
38830
+ ...aue,
38831
+ ...bue
38832
+ }, kue), Pue = /* @__PURE__ */ mse(Oue);
38818
38833
  function U0(e, t, n) {
38819
38834
  var r, i, s, o, l;
38820
38835
  t == null && (t = 100);
@@ -38834,9 +38849,9 @@ function U0(e, t, n) {
38834
38849
  }, d;
38835
38850
  }
38836
38851
  U0.debounce = U0;
38837
- var Oue = U0;
38838
- const WD = /* @__PURE__ */ yu(Oue);
38839
- function Pue(e) {
38852
+ var Mue = U0;
38853
+ const WD = /* @__PURE__ */ yu(Mue);
38854
+ function Aue(e) {
38840
38855
  let {
38841
38856
  debounce: t,
38842
38857
  scroll: n,
@@ -38890,7 +38905,7 @@ function Pue(e) {
38890
38905
  x: z,
38891
38906
  y: se
38892
38907
  };
38893
- c.current.element instanceof HTMLElement && i && (ae.height = c.current.element.offsetHeight, ae.width = c.current.element.offsetWidth), Object.freeze(ae), p.current && !Rue(c.current.lastBounds, ae) && l(c.current.lastBounds = ae);
38908
+ c.current.element instanceof HTMLElement && i && (ae.height = c.current.element.offsetHeight, ae.width = c.current.element.offsetWidth), Object.freeze(ae), p.current && !Nue(c.current.lastBounds, ae) && l(c.current.lastBounds = ae);
38894
38909
  };
38895
38910
  return [I, h ? WD(I, h) : I, d ? WD(I, d) : I];
38896
38911
  }, [l, i, d, h]);
@@ -38906,17 +38921,17 @@ function Pue(e) {
38906
38921
  const _ = (I) => {
38907
38922
  !I || I === c.current.element || (w(), c.current.element = I, c.current.scrollContainers = WL(I), E());
38908
38923
  };
38909
- return Aue(C, !!n), Mue(b), A.useEffect(() => {
38924
+ return Rue(C, !!n), Iue(b), A.useEffect(() => {
38910
38925
  w(), E();
38911
38926
  }, [n, C, b]), A.useEffect(() => w, []), [_, o, y];
38912
38927
  }
38913
- function Mue(e) {
38928
+ function Iue(e) {
38914
38929
  A.useEffect(() => {
38915
38930
  const t = e;
38916
38931
  return window.addEventListener("resize", t), () => void window.removeEventListener("resize", t);
38917
38932
  }, [e]);
38918
38933
  }
38919
- function Aue(e, t) {
38934
+ function Rue(e, t) {
38920
38935
  A.useEffect(() => {
38921
38936
  if (t) {
38922
38937
  const n = e;
@@ -38938,10 +38953,10 @@ function WL(e) {
38938
38953
  } = window.getComputedStyle(e);
38939
38954
  return [n, r, i].some((s) => s === "auto" || s === "scroll") && t.push(e), [...t, ...WL(e.parentElement)];
38940
38955
  }
38941
- const Iue = ["x", "y", "top", "bottom", "left", "right", "width", "height"], Rue = (e, t) => Iue.every((n) => e[n] === t[n]);
38956
+ const Lue = ["x", "y", "top", "bottom", "left", "right", "width", "height"], Nue = (e, t) => Lue.every((n) => e[n] === t[n]);
38942
38957
  var HL = (e) => {
38943
38958
  throw TypeError(e);
38944
- }, UL = (e, t, n) => t.has(e) || HL("Cannot " + n), Ke = (e, t, n) => (UL(e, t, "read from private field"), n ? n.call(e) : t.get(e)), hi = (e, t, n) => t.has(e) ? HL("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), La = (e, t, n, r) => (UL(e, t, "write to private field"), t.set(e, n), n), Ao, Lue = class {
38959
+ }, UL = (e, t, n) => t.has(e) || HL("Cannot " + n), Ke = (e, t, n) => (UL(e, t, "read from private field"), n ? n.call(e) : t.get(e)), hi = (e, t, n) => t.has(e) ? HL("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), La = (e, t, n, r) => (UL(e, t, "write to private field"), t.set(e, n), n), Ao, $ue = class {
38945
38960
  constructor() {
38946
38961
  hi(this, Ao), this.register = (e) => {
38947
38962
  Ke(this, Ao).push(e);
@@ -39005,7 +39020,7 @@ var jr, Nc, Br, Rs, Na, z0, Y0, q0, Gh, Kh, $c, zL = class Xh {
39005
39020
  }), !r || !r.backends || r.backends.length < 1)
39006
39021
  throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)
39007
39022
  see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);
39008
- La(this, Nc, new Lue()), La(this, Br, {}), La(this, Rs, []);
39023
+ La(this, Nc, new $ue()), La(this, Br, {}), La(this, Rs, []);
39009
39024
  for (let i of r.backends) {
39010
39025
  let s = Ke(this, z0).call(this, t, n, i);
39011
39026
  Ke(this, Br)[s.id] = s, Ke(this, Rs).push(s);
@@ -39014,14 +39029,14 @@ var jr, Nc, Br, Rs, Na, z0, Y0, q0, Gh, Kh, $c, zL = class Xh {
39014
39029
  }
39015
39030
  };
39016
39031
  jr = /* @__PURE__ */ new WeakMap(), Nc = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), Na = /* @__PURE__ */ new WeakMap(), z0 = /* @__PURE__ */ new WeakMap(), Y0 = /* @__PURE__ */ new WeakMap(), q0 = /* @__PURE__ */ new WeakMap(), Gh = /* @__PURE__ */ new WeakMap(), Kh = /* @__PURE__ */ new WeakMap(), $c = /* @__PURE__ */ new WeakMap(), zL.isSetUp = !1;
39017
- var Nue = zL, $ue = (e, t, n) => new Nue(e, t, n), YL = (e, t) => ({ event: e, check: t }), Fue = YL("touchstart", (e) => {
39032
+ var Fue = zL, jue = (e, t, n) => new Fue(e, t, n), YL = (e, t) => ({ event: e, check: t }), Bue = YL("touchstart", (e) => {
39018
39033
  let t = e;
39019
39034
  return t.touches !== null && t.touches !== void 0;
39020
- }), jue = YL("pointerdown", (e) => e.pointerType === "mouse"), zo;
39035
+ }), Vue = YL("pointerdown", (e) => e.pointerType === "mouse"), zo;
39021
39036
  (function(e) {
39022
39037
  e.mouse = "mouse", e.touch = "touch", e.keyboard = "keyboard";
39023
39038
  })(zo || (zo = {}));
39024
- class Bue {
39039
+ class Wue {
39025
39040
  get delay() {
39026
39041
  var t;
39027
39042
  return (t = this.args.delay) !== null && t !== void 0 ? t : 0;
@@ -39084,10 +39099,10 @@ class Bue {
39084
39099
  this.args = t, this.context = n;
39085
39100
  }
39086
39101
  }
39087
- function Vue(e, t, n, r) {
39102
+ function Hue(e, t, n, r) {
39088
39103
  return Math.sqrt(Math.pow(Math.abs(n - e), 2) + Math.pow(Math.abs(r - t), 2));
39089
39104
  }
39090
- function Wue(e, t, n, r, i) {
39105
+ function Uue(e, t, n, r, i) {
39091
39106
  if (!i)
39092
39107
  return !1;
39093
39108
  const s = Math.atan2(r - t, n - e) * 180 / Math.PI + 180;
@@ -39098,23 +39113,23 @@ function Wue(e, t, n, r, i) {
39098
39113
  }
39099
39114
  return !1;
39100
39115
  }
39101
- const Hue = {
39116
+ const zue = {
39102
39117
  Left: 1
39103
- }, Uue = {
39118
+ }, Yue = {
39104
39119
  Left: 0
39105
39120
  };
39106
39121
  function dy(e) {
39107
- return e.button === void 0 || e.button === Uue.Left;
39122
+ return e.button === void 0 || e.button === Yue.Left;
39108
39123
  }
39109
- function zue(e) {
39110
- return e.buttons === void 0 || (e.buttons & Hue.Left) === 0;
39124
+ function que(e) {
39125
+ return e.buttons === void 0 || (e.buttons & zue.Left) === 0;
39111
39126
  }
39112
39127
  function qL(e) {
39113
39128
  return !!e.targetTouches;
39114
39129
  }
39115
- const Yue = 1;
39116
- function que(e) {
39117
- const t = e.nodeType === Yue ? e : e.parentElement;
39130
+ const Gue = 1;
39131
+ function Kue(e) {
39132
+ const t = e.nodeType === Gue ? e : e.parentElement;
39118
39133
  if (!t)
39119
39134
  return;
39120
39135
  const { top: n, left: r } = t.getBoundingClientRect();
@@ -39123,14 +39138,14 @@ function que(e) {
39123
39138
  y: n
39124
39139
  };
39125
39140
  }
39126
- function Gue(e, t) {
39141
+ function Xue(e, t) {
39127
39142
  if (e.targetTouches.length === 1)
39128
39143
  return Hp(e.targetTouches[0]);
39129
39144
  if (t && e.touches.length === 1 && e.touches[0].target === t.target)
39130
39145
  return Hp(e.touches[0]);
39131
39146
  }
39132
39147
  function Hp(e, t) {
39133
- return qL(e) ? Gue(e, t) : {
39148
+ return qL(e) ? Xue(e, t) : {
39134
39149
  x: e.clientX,
39135
39150
  y: e.clientY
39136
39151
  };
@@ -39271,7 +39286,7 @@ class ef {
39271
39286
  constructor(t, n, r) {
39272
39287
  this.getSourceClientOffset = (i) => {
39273
39288
  const s = this.sourceNodes.get(i);
39274
- return s && que(s);
39289
+ return s && Kue(s);
39275
39290
  }, this.handleTopMoveStartCapture = (i) => {
39276
39291
  dy(i) && (this.moveStartSourceIds = []);
39277
39292
  }, this.handleMoveStart = (i) => {
@@ -39296,12 +39311,12 @@ class ef {
39296
39311
  const { moveStartSourceIds: s, dragOverTargetIds: o } = this, l = this.options.enableHoverOutsideTarget, c = Hp(i, this.lastTargetTouchFallback);
39297
39312
  if (!c)
39298
39313
  return;
39299
- if (this._isScrolling || !this.monitor.isDragging() && Wue(this._mouseClientOffset.x || 0, this._mouseClientOffset.y || 0, c.x, c.y, this.options.scrollAngleRanges)) {
39314
+ if (this._isScrolling || !this.monitor.isDragging() && Uue(this._mouseClientOffset.x || 0, this._mouseClientOffset.y || 0, c.x, c.y, this.options.scrollAngleRanges)) {
39300
39315
  this._isScrolling = !0;
39301
39316
  return;
39302
39317
  }
39303
39318
  if (!this.monitor.isDragging() && // eslint-disable-next-line no-prototype-builtins
39304
- this._mouseClientOffset.hasOwnProperty("x") && s && Vue(this._mouseClientOffset.x || 0, this._mouseClientOffset.y || 0, c.x, c.y) > (this.options.touchSlop ? this.options.touchSlop : 0) && (this.moveStartSourceIds = void 0, this.actions.beginDrag(s, {
39319
+ this._mouseClientOffset.hasOwnProperty("x") && s && Hue(this._mouseClientOffset.x || 0, this._mouseClientOffset.y || 0, c.x, c.y) > (this.options.touchSlop ? this.options.touchSlop : 0) && (this.moveStartSourceIds = void 0, this.actions.beginDrag(s, {
39305
39320
  clientOffset: this._mouseClientOffset,
39306
39321
  getSourceClientOffset: this.getSourceClientOffset,
39307
39322
  publishSource: !1
@@ -39351,7 +39366,7 @@ class ef {
39351
39366
  o = s.next();
39352
39367
  }
39353
39368
  }, this.handleTopMoveEndCapture = (i) => {
39354
- if (this._isScrolling = !1, this.lastTargetTouchFallback = void 0, !!zue(i)) {
39369
+ if (this._isScrolling = !1, this.lastTargetTouchFallback = void 0, !!que(i)) {
39355
39370
  if (!this.monitor.isDragging() || this.monitor.didDrop()) {
39356
39371
  this.moveStartSourceIds = void 0;
39357
39372
  return;
@@ -39360,10 +39375,10 @@ class ef {
39360
39375
  }
39361
39376
  }, this.handleCancelOnEscape = (i) => {
39362
39377
  i.key === "Escape" && this.monitor.isDragging() && (this._mouseClientOffset = {}, this.uninstallSourceNodeRemovalObserver(), this.actions.endDrag());
39363
- }, this.options = new Bue(r, n), this.actions = t.getActions(), this.monitor = t.getMonitor(), this.sourceNodes = /* @__PURE__ */ new Map(), this.sourcePreviewNodes = /* @__PURE__ */ new Map(), this.sourcePreviewNodeOptions = /* @__PURE__ */ new Map(), this.targetNodes = /* @__PURE__ */ new Map(), this.listenerTypes = [], this._mouseClientOffset = {}, this._isScrolling = !1, this.options.enableMouseEvents && this.listenerTypes.push(zo.mouse), this.options.enableTouchEvents && this.listenerTypes.push(zo.touch), this.options.enableKeyboardEvents && this.listenerTypes.push(zo.keyboard);
39378
+ }, this.options = new Wue(r, n), this.actions = t.getActions(), this.monitor = t.getMonitor(), this.sourceNodes = /* @__PURE__ */ new Map(), this.sourcePreviewNodes = /* @__PURE__ */ new Map(), this.sourcePreviewNodeOptions = /* @__PURE__ */ new Map(), this.targetNodes = /* @__PURE__ */ new Map(), this.listenerTypes = [], this._mouseClientOffset = {}, this._isScrolling = !1, this.options.enableMouseEvents && this.listenerTypes.push(zo.mouse), this.options.enableTouchEvents && this.listenerTypes.push(zo.touch), this.options.enableKeyboardEvents && this.listenerTypes.push(zo.keyboard);
39364
39379
  }
39365
39380
  }
39366
- const Kue = function(t, n = {}, r = {}) {
39381
+ const Que = function(t, n = {}, r = {}) {
39367
39382
  return new ef(t, n, r);
39368
39383
  };
39369
39384
  var Ci = function() {
@@ -39382,11 +39397,11 @@ function ir(e, t, n) {
39382
39397
  (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
39383
39398
  return e.concat(s || Array.prototype.slice.call(t));
39384
39399
  }
39385
- function Xue(e) {
39400
+ function Zue(e) {
39386
39401
  var t = e.isVisible, n = e.ease, r = n === void 0 ? "easeIn" : n, i = e.duration, s = e.variants, o = s === void 0 ? {
39387
39402
  open: { opacity: 1, height: "auto" },
39388
39403
  close: { opacity: 0, height: 0 }
39389
- } : s, l = e.children, c = Pue({ polyfill: nse }), d = c[0], h = c[1].height, p = A.useState(t), y = p[0], b = p[1], C = A.useState(t), w = C[0], E = C[1], _ = A.useState(!1), I = _[0], P = _[1], V = function() {
39404
+ } : s, l = e.children, c = Aue({ polyfill: ise }), d = c[0], h = c[1].height, p = A.useState(t), y = p[0], b = p[1], C = A.useState(t), w = C[0], E = C[1], _ = A.useState(!1), I = _[0], P = _[1], V = function() {
39390
39405
  P(!1), t || b(!1);
39391
39406
  };
39392
39407
  A.useEffect(function() {
@@ -39396,12 +39411,12 @@ function Xue(e) {
39396
39411
  return A.useEffect(function() {
39397
39412
  y && E(!0);
39398
39413
  }, [N]), Le.createElement(
39399
- kue.div,
39400
- { style: I ? { overflow: "hidden" } : void 0, onAnimationComplete: V, initial: w ? "open" : "close", animate: w ? "open" : "close", inherit: !1, variants: o, transition: { ease: r, duration: Que(h, i) } },
39414
+ Pue.div,
39415
+ { style: I ? { overflow: "hidden" } : void 0, onAnimationComplete: V, initial: w ? "open" : "close", animate: w ? "open" : "close", inherit: !1, variants: o, transition: { ease: r, duration: Jue(h, i) } },
39401
39416
  Le.createElement("div", { ref: d }, y && l)
39402
39417
  );
39403
39418
  }
39404
- function Que(e, t) {
39419
+ function Jue(e, t) {
39405
39420
  if (t)
39406
39421
  return t;
39407
39422
  if (!e)
@@ -39409,10 +39424,10 @@ function Que(e, t) {
39409
39424
  var n = e / 36;
39410
39425
  return Math.round((4 + 10 * Math.pow(n, 0.25) + n / 5) * 10) / 1500;
39411
39426
  }
39412
- var GL = A.createContext({}), Zue = {
39427
+ var GL = A.createContext({}), ece = {
39413
39428
  isLock: !1
39414
- }, Jue = function(e) {
39415
- var t = A.useState(Zue.isLock), n = t[0], r = t[1];
39429
+ }, tce = function(e) {
39430
+ var t = A.useState(ece.isLock), n = t[0], r = t[1];
39416
39431
  return Le.createElement(GL.Provider, { value: {
39417
39432
  isLock: n,
39418
39433
  lock: function() {
@@ -39425,7 +39440,7 @@ var GL = A.createContext({}), Zue = {
39425
39440
  }, Gf = A.createContext({}), wh = {
39426
39441
  dropTargetId: void 0,
39427
39442
  index: void 0
39428
- }, ece = function(e) {
39443
+ }, nce = function(e) {
39429
39444
  var t = A.useState(wh.dropTargetId), n = t[0], r = t[1], i = A.useState(wh.index), s = i[0], o = i[1], l = function(d, h) {
39430
39445
  r(d), o(h);
39431
39446
  }, c = function() {
@@ -39437,7 +39452,7 @@ var GL = A.createContext({}), Zue = {
39437
39452
  showPlaceholder: l,
39438
39453
  hidePlaceholder: c
39439
39454
  } }, e.children);
39440
- }, tce = function(e, t) {
39455
+ }, rce = function(e, t) {
39441
39456
  return e.text > t.text ? 1 : e.text < t.text ? -1 : 0;
39442
39457
  }, _c = function(e, t) {
39443
39458
  return e.find(function(n) {
@@ -39477,7 +39492,7 @@ var GL = A.createContext({}), Zue = {
39477
39492
  });
39478
39493
  return d === void 0 || l === null ? t === i || !!(o != null && o.droppable) : o === void 0 ? d.parent !== 0 : d.parent === t || !o.droppable ? !1 : !KL(r, l, t);
39479
39494
  }
39480
- }, nce = function(e, t, n) {
39495
+ }, ice = function(e, t, n) {
39481
39496
  return e.map(function(r) {
39482
39497
  return r.id === t ? Ci(Ci({}, r), { parent: n }) : r;
39483
39498
  });
@@ -39492,37 +39507,37 @@ var GL = A.createContext({}), Zue = {
39492
39507
  }) : e.findIndex(function(i) {
39493
39508
  return i.id === r[n - 1].id;
39494
39509
  }) + 1;
39495
- }, rce = function(e, t) {
39510
+ }, sce = function(e, t) {
39496
39511
  return e.findIndex(function(n) {
39497
39512
  return n.id === t;
39498
39513
  });
39499
39514
  }, QL = function(e, t, n, r) {
39500
- var i = rce(e, t), s = XL(e, n, r);
39515
+ var i = sce(e, t), s = XL(e, n, r);
39501
39516
  return s = s > i ? s - 1 : s, [i, s];
39502
- }, ice = function(e, t, n) {
39517
+ }, oce = function(e, t, n) {
39503
39518
  var r = t < 0 ? e.length + t : t;
39504
39519
  if (r >= 0 && r < e.length) {
39505
39520
  var i = n < 0 ? e.length + n : n, s = e.splice(t, 1)[0];
39506
39521
  e.splice(i, 0, s);
39507
39522
  }
39508
- }, sce = function(e, t, n, r) {
39523
+ }, ace = function(e, t, n, r) {
39509
39524
  var i = QL(e, t, n, r), s = i[0], o = i[1], l = ir([], e, !0);
39510
- return ice(l, s, o), l.map(function(c) {
39525
+ return oce(l, s, o), l.map(function(c) {
39511
39526
  return c.id === t ? Ci(Ci({}, c), { parent: n }) : c;
39512
39527
  });
39513
- }, oce = function(e, t) {
39528
+ }, lce = function(e, t) {
39514
39529
  var n = e.getBoundingClientRect(), r = n.top + n.height / 2;
39515
39530
  return t > r ? "down" : "up";
39516
39531
  }, G0 = function(e, t) {
39517
39532
  var n = "", r = 0;
39518
39533
  return e.forEach(function(i, s) {
39519
- var o, l = oce(i, ((o = t.getClientOffset()) === null || o === void 0 ? void 0 : o.y) || 0);
39534
+ var o, l = lce(i, ((o = t.getClientOffset()) === null || o === void 0 ? void 0 : o.y) || 0);
39520
39535
  n === "" ? n = l : n !== l && (n = l, r = s), s === e.length - 1 && l === "down" && (r = s + 1);
39521
39536
  }), r;
39522
39537
  }, UD = function(e, t, n) {
39523
39538
  var r = t.closest('[role="list"]'), i = r == null ? void 0 : r.querySelectorAll(':scope > [role="listitem"]');
39524
39539
  return i ? G0(i, n) : null;
39525
- }, ace = function(e, t, n) {
39540
+ }, uce = function(e, t, n) {
39526
39541
  var r = e.getBoundingClientRect(), i = n.dropTargetOffset, s = r.top + i, o = r.bottom - i;
39527
39542
  return t > o ? "lower" : t < s ? "upper" : "middle";
39528
39543
  }, K0 = function(e, t, n, r) {
@@ -39536,7 +39551,7 @@ var GL = A.createContext({}), Zue = {
39536
39551
  index: G0(s, n)
39537
39552
  };
39538
39553
  }
39539
- var o = n.getItem(), l = t.querySelector('[role="list"]'), c = ace(t, ((i = n.getClientOffset()) === null || i === void 0 ? void 0 : i.y) || 0, r);
39554
+ var o = n.getItem(), l = t.querySelector('[role="list"]'), c = uce(t, ((i = n.getClientOffset()) === null || i === void 0 ? void 0 : i.y) || 0, r);
39540
39555
  if (l) {
39541
39556
  if (c === "upper")
39542
39557
  if (Qo(o, e.parent, r)) {
@@ -39570,21 +39585,21 @@ var GL = A.createContext({}), Zue = {
39570
39585
  }
39571
39586
  return null;
39572
39587
  }
39573
- }, lce = function(e) {
39588
+ }, cce = function(e) {
39574
39589
  return e === void 0 && (e = {}), {
39575
39590
  backends: [
39576
39591
  {
39577
39592
  id: "html5",
39578
39593
  backend: SI,
39579
39594
  options: e.html5,
39580
- transition: jue
39595
+ transition: Vue
39581
39596
  },
39582
39597
  {
39583
39598
  id: "touch",
39584
- backend: Kue,
39599
+ backend: Que,
39585
39600
  options: e.touch || { enableMouseEvents: !0 },
39586
39601
  preview: !0,
39587
- transition: Fue
39602
+ transition: Bue
39588
39603
  }
39589
39604
  ]
39590
39605
  };
@@ -39592,8 +39607,8 @@ var GL = A.createContext({}), Zue = {
39592
39607
  return e.some(function(n) {
39593
39608
  return n.parent === t;
39594
39609
  });
39595
- }, ZL = A.createContext({}), uce = function(e) {
39596
- var t = gce(e.tree, e.initialOpen), n = t[0], r = t[1], i = r.handleToggle, s = r.handleCloseAll, o = r.handleOpenAll, l = r.handleOpen, c = r.handleClose;
39610
+ }, ZL = A.createContext({}), fce = function(e) {
39611
+ var t = yce(e.tree, e.initialOpen), n = t[0], r = t[1], i = r.handleToggle, s = r.handleCloseAll, o = r.handleOpenAll, l = r.handleOpen, c = r.handleClose;
39597
39612
  A.useImperativeHandle(e.treeRef, function() {
39598
39613
  return {
39599
39614
  open: function(b) {
@@ -39621,10 +39636,10 @@ var GL = A.createContext({}), Zue = {
39621
39636
  }, _ = e.tree;
39622
39637
  if (_c(_, b.id) || (_ = ir(ir([], _, !0), [b], !1)), e.sort === !1) {
39623
39638
  var I = QL(_, b.id, C, w), P = I[1];
39624
- E.destinationIndex = P, E.relativeIndex = w, e.onDrop(sce(_, b.id, C, w), E);
39639
+ E.destinationIndex = P, E.relativeIndex = w, e.onDrop(ace(_, b.id, C, w), E);
39625
39640
  return;
39626
39641
  }
39627
- e.onDrop(nce(_, b.id, C), E);
39642
+ e.onDrop(ice(_, b.id, C), E);
39628
39643
  } else {
39629
39644
  var E = {
39630
39645
  dropTargetId: C,
@@ -39648,17 +39663,17 @@ var GL = A.createContext({}), Zue = {
39648
39663
  return i(b, e.onChangeOpen);
39649
39664
  } });
39650
39665
  return Le.createElement(ZL.Provider, { value: y }, e.children);
39651
- }, cce = function(e) {
39666
+ }, dce = function(e) {
39652
39667
  return Le.createElement(
39653
- uce,
39668
+ fce,
39654
39669
  Ci({}, e),
39655
39670
  Le.createElement(
39656
- Jue,
39671
+ tce,
39657
39672
  null,
39658
- Le.createElement(ece, null, e.children)
39673
+ Le.createElement(nce, null, e.children)
39659
39674
  )
39660
39675
  );
39661
- }, fce = function(e) {
39676
+ }, hce = function(e) {
39662
39677
  var t = A.useContext(GL);
39663
39678
  A.useEffect(function() {
39664
39679
  if (e.current) {
@@ -39702,7 +39717,7 @@ var GL = A.createContext({}), Zue = {
39702
39717
  return eN(e);
39703
39718
  }, YD = function(e) {
39704
39719
  return eN(e);
39705
- }, dce = function(e, t) {
39720
+ }, pce = function(e, t) {
39706
39721
  var n = ra();
39707
39722
  A.useEffect(function() {
39708
39723
  var l = t.current;
@@ -39733,7 +39748,7 @@ var GL = A.createContext({}), Zue = {
39733
39748
  }
39734
39749
  }), i = r[0].isDragging, s = r[1], o = r[2];
39735
39750
  return [i, s, o];
39736
- }, hce = function(e, t, n) {
39751
+ }, mce = function(e, t, n) {
39737
39752
  var r = A.useRef(0), i = A.useRef(0), s = function() {
39738
39753
  r.current += 1, r.current === 1 && !t && (i.current = window.setTimeout(function() {
39739
39754
  return n(e);
@@ -39748,7 +39763,7 @@ var GL = A.createContext({}), Zue = {
39748
39763
  onDragLeave: o,
39749
39764
  onDrop: l
39750
39765
  };
39751
- }, pce = function(e) {
39766
+ }, gce = function(e) {
39752
39767
  var t = ra(), n = A.useContext(Gf), r = Ap({
39753
39768
  accept: ir([jm.TREE_ITEM], t.extraAcceptTypes, !0),
39754
39769
  drop: function(c, d) {
@@ -39778,7 +39793,7 @@ var GL = A.createContext({}), Zue = {
39778
39793
  }
39779
39794
  }), i = r[0], s = i.isOver, o = i.dragSource, l = r[1];
39780
39795
  return [s, o, l];
39781
- }, mce = function(e, t) {
39796
+ }, vce = function(e, t) {
39782
39797
  var n = ra(), r = A.useContext(Gf), i = Ap({
39783
39798
  accept: ir([jm.TREE_ITEM], n.extraAcceptTypes, !0),
39784
39799
  drop: function(d, h) {
@@ -39811,7 +39826,7 @@ var GL = A.createContext({}), Zue = {
39811
39826
  }
39812
39827
  }), s = i[0], o = s.isOver, l = s.dragSource, c = i[1];
39813
39828
  return [o, l, c];
39814
- }, gce = function(e, t) {
39829
+ }, yce = function(e, t) {
39815
39830
  var n = A.useMemo(function() {
39816
39831
  return t === !0 ? e.filter(function(p) {
39817
39832
  return Qh(e, p.id);
@@ -39860,7 +39875,7 @@ var GL = A.createContext({}), Zue = {
39860
39875
  i,
39861
39876
  { handleToggle: o, handleCloseAll: l, handleOpenAll: c, handleOpen: d, handleClose: h }
39862
39877
  ];
39863
- }, vce = function() {
39878
+ }, bce = function() {
39864
39879
  return Jee(function(e) {
39865
39880
  var t = e.getItemType();
39866
39881
  return {
@@ -39874,20 +39889,20 @@ var GL = A.createContext({}), Zue = {
39874
39889
  if (!e)
39875
39890
  throw new Error("useTreeContext must be used under TreeProvider");
39876
39891
  return e;
39877
- }, yce = function(e, t) {
39892
+ }, xce = function(e, t) {
39878
39893
  var n = ra(), r = n.rootId, i = n.rootProps, s = n.classes, o = (s == null ? void 0 : s.container) || "";
39879
39894
  return t && (s != null && s.dropTarget) && (o = "".concat(o, " ").concat(s.dropTarget)), e === r && (s != null && s.root) && (o = "".concat(o, " ").concat(s.root)), e === r && (i != null && i.className) && (o = "".concat(o, " ").concat(i.className)), o = o.trim(), o;
39880
- }, bce = function(e, t, n) {
39895
+ }, wce = function(e, t, n) {
39881
39896
  t.current ? n(t) : n(e), A.useEffect(function() {
39882
39897
  t.current ? n(t) : n(e);
39883
39898
  }, [t.current]);
39884
- }, xce = function(e) {
39899
+ }, Sce = function(e) {
39885
39900
  var t = ra(), n = A.useContext(Gf), r = A.useRef(null), i = A.useRef(null), s = t.tree.find(function(Y) {
39886
39901
  return Y.id === e.id;
39887
- }), o = t.openIds, l = t.classes, c = t.enableAnimateExpand, d = o.includes(e.id), h = dce(s, r), p = h[0], y = h[1], b = h[2], C = mce(s, r), w = C[0], E = C[1], _ = C[2];
39888
- bce(r, i, y), Qo(E, e.id, t) && _(r), A.useEffect(function() {
39902
+ }), o = t.openIds, l = t.classes, c = t.enableAnimateExpand, d = o.includes(e.id), h = pce(s, r), p = h[0], y = h[1], b = h[2], C = vce(s, r), w = C[0], E = C[1], _ = C[2];
39903
+ wce(r, i, y), Qo(E, e.id, t) && _(r), A.useEffect(function() {
39889
39904
  t.dragPreviewRender ? b(xte(), { captureDraggingState: !0 }) : i.current && b(r);
39890
- }, [b, t.dragPreviewRender]), fce(r);
39905
+ }, [b, t.dragPreviewRender]), hce(r);
39891
39906
  var I = function() {
39892
39907
  return t.onToggle(s.id);
39893
39908
  }, P = t.listItemComponent, V = t.canDrag ? t.canDrag(e.id) : !0, N = n.dropTargetId === e.id, j = {
@@ -39906,7 +39921,7 @@ var GL = A.createContext({}), Zue = {
39906
39921
  { ref: r, className: v, role: "listitem" },
39907
39922
  t.render(s, j),
39908
39923
  c && j.hasChild && Le.createElement(
39909
- Xue,
39924
+ Zue,
39910
39925
  { isVisible: d },
39911
39926
  Le.createElement(X0, { parentId: e.id, depth: e.depth + 1 })
39912
39927
  ),
@@ -39921,7 +39936,7 @@ var GL = A.createContext({}), Zue = {
39921
39936
  }, X0 = function(e) {
39922
39937
  var t = ra(), n = A.useRef(null), r = t.tree.filter(function(w) {
39923
39938
  return w.parent === e.parentId;
39924
- }), i = r, s = typeof t.sort == "function" ? t.sort : tce;
39939
+ }), i = r, s = typeof t.sort == "function" ? t.sort : rce;
39925
39940
  if (t.insertDroppableFirst) {
39926
39941
  var o = r.filter(function(w) {
39927
39942
  return w.droppable;
@@ -39931,9 +39946,9 @@ var GL = A.createContext({}), Zue = {
39931
39946
  t.sort === !1 ? i = ir(ir([], o, !0), l, !0) : (o = o.sort(s), l = l.sort(s), i = ir(ir([], o, !0), l, !0));
39932
39947
  } else
39933
39948
  t.sort !== !1 && (i = r.sort(s));
39934
- var c = pce(n), d = c[0], h = c[1], p = c[2];
39949
+ var c = gce(n), d = c[0], h = c[1], p = c[2];
39935
39950
  e.parentId === t.rootId && Qo(h, t.rootId, t) && p(n);
39936
- var y = yce(e.parentId, d), b = t.rootProps || {}, C = t.listComponent;
39951
+ var y = xce(e.parentId, d), b = t.rootProps || {}, C = t.listComponent;
39937
39952
  return Le.createElement(
39938
39953
  C,
39939
39954
  Ci({ ref: n, role: "list" }, b, { className: y }),
@@ -39942,12 +39957,12 @@ var GL = A.createContext({}), Zue = {
39942
39957
  Le.Fragment,
39943
39958
  { key: w.id },
39944
39959
  Le.createElement(qD, { depth: e.depth, listCount: i.length, dropTargetId: e.parentId, index: E }),
39945
- Le.createElement(xce, { id: w.id, depth: e.depth })
39960
+ Le.createElement(Sce, { id: w.id, depth: e.depth })
39946
39961
  );
39947
39962
  }),
39948
39963
  Le.createElement(qD, { depth: e.depth, listCount: i.length, dropTargetId: e.parentId })
39949
39964
  );
39950
- }, wce = {
39965
+ }, Tce = {
39951
39966
  height: "100%",
39952
39967
  left: 0,
39953
39968
  pointerEvents: "none",
@@ -39955,7 +39970,7 @@ var GL = A.createContext({}), Zue = {
39955
39970
  top: 0,
39956
39971
  width: "100%",
39957
39972
  zIndex: 100
39958
- }, Sce = function(e) {
39973
+ }, Cce = function(e) {
39959
39974
  var t = e.clientOffset;
39960
39975
  if (!t)
39961
39976
  return {};
@@ -39964,24 +39979,24 @@ var GL = A.createContext({}), Zue = {
39964
39979
  pointerEvents: "none",
39965
39980
  transform: i
39966
39981
  };
39967
- }, Tce = function() {
39968
- var e = ra(), t = vce(), n = t.isDragging, r = t.clientOffset;
39982
+ }, _ce = function() {
39983
+ var e = ra(), t = bce(), n = t.isDragging, r = t.clientOffset;
39969
39984
  return !n || !r ? null : Le.createElement(
39970
39985
  "div",
39971
- { style: wce },
39972
- Le.createElement("div", { style: Sce(t) }, e.dragPreviewRender && e.dragPreviewRender(t))
39986
+ { style: Tce },
39987
+ Le.createElement("div", { style: Cce(t) }, e.dragPreviewRender && e.dragPreviewRender(t))
39973
39988
  );
39974
39989
  };
39975
- function Cce(e, t) {
39990
+ function Ece(e, t) {
39976
39991
  return Le.createElement(
39977
- cce,
39992
+ dce,
39978
39993
  Ci({}, e, { treeRef: t }),
39979
- e.dragPreviewRender && Le.createElement(Tce, null),
39994
+ e.dragPreviewRender && Le.createElement(_ce, null),
39980
39995
  Le.createElement(X0, { parentId: e.rootId, depth: 0 })
39981
39996
  );
39982
39997
  }
39983
- var _ce = A.forwardRef(Cce);
39984
- function Ece(e) {
39998
+ var Dce = A.forwardRef(Ece);
39999
+ function kce(e) {
39985
40000
  return /* @__PURE__ */ L.jsx(
39986
40001
  "svg",
39987
40002
  {
@@ -40001,7 +40016,7 @@ function Ece(e) {
40001
40016
  }
40002
40017
  );
40003
40018
  }
40004
- function Dce(e) {
40019
+ function Oce(e) {
40005
40020
  const { renderChildren: t, parentRef: n, onlyChild: r } = e, [i, s] = A.useState({ top: 0, left: 0 }), o = A.useRef(null), [l, c] = A.useState("auto");
40006
40021
  return A.useLayoutEffect(() => {
40007
40022
  if (n.current && o.current) {
@@ -40046,7 +40061,7 @@ function tN({ ...e }) {
40046
40061
  }, te = () => {
40047
40062
  C(!1);
40048
40063
  }, fe = "/global-menu-config/api/v1/menu-items/user/set-favorite", de = t.serviceKey === "mn_poms";
40049
- e.params.depth * 20, e.params.depth, hce(
40064
+ e.params.depth * 20, e.params.depth, mce(
40050
40065
  t.id,
40051
40066
  e.params.isOpen,
40052
40067
  e.params.onToggle
@@ -40098,10 +40113,10 @@ function tN({ ...e }) {
40098
40113
  ), !s && e.toggleExpand(je));
40099
40114
  },
40100
40115
  children: [
40101
- /* @__PURE__ */ L.jsx(kce, { cls: y, item: t }),
40116
+ /* @__PURE__ */ L.jsx(Pce, { cls: y, item: t }),
40102
40117
  /* @__PURE__ */ L.jsx("span", { className: y("menu-item__label"), ref: I, children: t.name }),
40103
40118
  /* @__PURE__ */ L.jsx(
40104
- Oce,
40119
+ Mce,
40105
40120
  {
40106
40121
  tooltipPosition: re ? "right" : "top",
40107
40122
  menuLevel: n,
@@ -40126,7 +40141,7 @@ function tN({ ...e }) {
40126
40141
  }
40127
40142
  ),
40128
40143
  r && /* @__PURE__ */ L.jsx("div", { className: y("menu-item__icon-arrow__wrapper"), children: /* @__PURE__ */ L.jsx(
40129
- Ece,
40144
+ kce,
40130
40145
  {
40131
40146
  className: y(
40132
40147
  `menu-item__icon-arrow__icon ${e.params.isOpen ? "open" : "close"}`
@@ -40137,7 +40152,7 @@ function tN({ ...e }) {
40137
40152
  }
40138
40153
  ) }),
40139
40154
  ae && /* @__PURE__ */ L.jsx(
40140
- Dce,
40155
+ Oce,
40141
40156
  {
40142
40157
  parentRef: _,
40143
40158
  onlyChild: !s,
@@ -40172,10 +40187,10 @@ function tN({ ...e }) {
40172
40187
  }
40173
40188
  );
40174
40189
  }
40175
- function kce({ item: e, cls: t }) {
40190
+ function Pce({ item: e, cls: t }) {
40176
40191
  return /* @__PURE__ */ L.jsx("div", { className: t("menu-item__icon"), children: /* @__PURE__ */ L.jsx(Mie, { item: e }) });
40177
40192
  }
40178
- function Oce(e) {
40193
+ function Mce(e) {
40179
40194
  const t = {
40180
40195
  marginRight: e.hasChildren ? 10 : 0,
40181
40196
  fontSize: 18,
@@ -40220,7 +40235,7 @@ function Oce(e) {
40220
40235
  )
40221
40236
  ] });
40222
40237
  }
40223
- function Pce() {
40238
+ function Ace() {
40224
40239
  return /* @__PURE__ */ L.jsx(
40225
40240
  "svg",
40226
40241
  {
@@ -40235,7 +40250,7 @@ function Pce() {
40235
40250
  }
40236
40251
  );
40237
40252
  }
40238
- function Mce() {
40253
+ function Ice() {
40239
40254
  return /* @__PURE__ */ L.jsx(
40240
40255
  "svg",
40241
40256
  {
@@ -40250,7 +40265,7 @@ function Mce() {
40250
40265
  }
40251
40266
  );
40252
40267
  }
40253
- function Ace(e) {
40268
+ function Rce(e) {
40254
40269
  return /* @__PURE__ */ L.jsx(
40255
40270
  "svg",
40256
40271
  {
@@ -40272,7 +40287,7 @@ function Ace(e) {
40272
40287
  }
40273
40288
  );
40274
40289
  }
40275
- const Ice = ".flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{position:fixed;top:64px;left:0;height:calc(100vh - 64px);max-width:18rem;display:flex;flex-direction:column;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:5px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;color:#292929}.menu-item__wrapper.collapsed.active,.menu-item__wrapper.expanded.active.parent.isClose,.menu-item__wrapper.expanded.active.child{color:var(--primary400);background-color:var(--primary200)}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer}.menu-item__link.expanded.level-0{padding:.5rem 10px}.isHome{position:sticky;top:0;background-color:#fafafa;z-index:10}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-0,.menu-item__link.active.level-1,.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9{background-color:inherit;color:inherit}.menu-item__link.active.level-1:hover,.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-0:hover{background-color:#919eab14}.menu-item__link.level-0{transition:padding .2s}.menu-item__link.menu-item__link.collapsed.level-0{padding:0}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center;color:#85858a}.menu-item__icon.collapsed.active,.menu-item__icon.expanded.active.parent.isClose,.menu-item__icon.expanded.active.child{color:inherit}.menu-item__icon.collapsed.level-0>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;opacity:1}.menu-item__label.level-0.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{margin-left:8px;font-weight:500;font-size:.951rem}.menu-item__label.level-0.isInternalApp{font-weight:unset!important}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__icon{transition:transform .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-0{height:48px}.menu-item__dropdown.collapsed.level-0{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}", Rce = (e) => {
40290
+ const Lce = ".flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{position:fixed;top:64px;left:0;height:calc(100vh - 64px);max-width:18rem;display:flex;flex-direction:column;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:5px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;color:#292929}.menu-item__wrapper.collapsed.active,.menu-item__wrapper.expanded.active.parent.isClose,.menu-item__wrapper.expanded.active.child{color:var(--primary400);background-color:var(--primary200)}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer}.menu-item__link.expanded.level-0{padding:.5rem 10px}.isHome{position:sticky;top:0;background-color:#fafafa;z-index:10}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-0,.menu-item__link.active.level-1,.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9{background-color:inherit;color:inherit}.menu-item__link.active.level-1:hover,.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-0:hover{background-color:#919eab14}.menu-item__link.level-0{transition:padding .2s}.menu-item__link.menu-item__link.collapsed.level-0{padding:0}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center;color:#85858a}.menu-item__icon.collapsed.active,.menu-item__icon.expanded.active.parent.isClose,.menu-item__icon.expanded.active.child{color:inherit}.menu-item__icon.collapsed.level-0>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;opacity:1}.menu-item__label.level-0.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{margin-left:8px;font-weight:500;font-size:.951rem}.menu-item__label.level-0.isInternalApp{font-weight:unset!important}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__icon{transition:transform .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-0{height:48px}.menu-item__dropdown.collapsed.level-0{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}", Nce = (e) => {
40276
40291
  const t = e.isCollapsed ? 0 : e.depth * 16;
40277
40292
  return /* @__PURE__ */ L.jsx(
40278
40293
  "div",
@@ -40288,7 +40303,7 @@ const Ice = ".flex-col-center{display:flex;flex-direction:column;justify-content
40288
40303
  }
40289
40304
  }
40290
40305
  );
40291
- }, Lce = ".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}", Nce = (e) => {
40306
+ }, $ce = ".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}", Fce = (e) => {
40292
40307
  const [t, n] = A.useState(() => {
40293
40308
  const r = localStorage.getItem("openingMenuIds");
40294
40309
  return r && r !== "[]" ? JSON.parse(r) : (e == null ? void 0 : e.initOpenIds) || [];
@@ -40307,13 +40322,13 @@ function nN(e) {
40307
40322
  }
40308
40323
  const Zh = localStorage.getItem("isCollapsed");
40309
40324
  nN(Zh);
40310
- function $ce(e) {
40325
+ function jce(e) {
40311
40326
  const t = new CustomEvent("favoriteMenusChange", {
40312
40327
  detail: { favoriteMenus: e }
40313
40328
  });
40314
40329
  window.dispatchEvent(t);
40315
40330
  }
40316
- function Fce(e) {
40331
+ function Bce(e) {
40317
40332
  const t = lk(), [n, r] = A.useState([]), i = n.map((te) => te.data), [s, o] = A.useState(!1), [l, c] = A.useState([]), [d, h] = A.useState(
40318
40333
  Zh === null ? !0 : Zh === "true"
40319
40334
  ), [p, y] = A.useState(window.location.href), b = A.useRef(null);
@@ -40323,7 +40338,7 @@ function Fce(e) {
40323
40338
  }, [i, e.handleCallback]), A.useEffect(() => {
40324
40339
  y(window.location.href);
40325
40340
  }, [t]);
40326
- const C = Bce(i, p), [w, E] = Nce({
40341
+ const C = Wce(i, p), [w, E] = Fce({
40327
40342
  initOpenIds: e.initOpenIds
40328
40343
  }), _ = () => {
40329
40344
  var te, fe;
@@ -40413,7 +40428,7 @@ function Fce(e) {
40413
40428
  };
40414
40429
  }
40415
40430
  const de = te.map((le) => fe(le));
40416
- $ce(de);
40431
+ jce(de);
40417
40432
  }, [i]);
40418
40433
  function se(te) {
40419
40434
  const fe = te.detail.menuItem;
@@ -40470,7 +40485,7 @@ function Fce(e) {
40470
40485
  {
40471
40486
  className: "icon-btn side-bar__toggle-btn",
40472
40487
  onClick: _,
40473
- children: d ? /* @__PURE__ */ L.jsx(Mce, {}) : /* @__PURE__ */ L.jsx(Pce, {})
40488
+ children: d ? /* @__PURE__ */ L.jsx(Ice, {}) : /* @__PURE__ */ L.jsx(Ace, {})
40474
40489
  }
40475
40490
  ) }),
40476
40491
  /* @__PURE__ */ L.jsx(
@@ -40485,8 +40500,8 @@ function Fce(e) {
40485
40500
  height: "100%",
40486
40501
  overflowX: "hidden"
40487
40502
  },
40488
- children: /* @__PURE__ */ L.jsx(lI, { backend: $ue, options: lce(), children: /* @__PURE__ */ L.jsx(
40489
- _ce,
40503
+ children: /* @__PURE__ */ L.jsx(lI, { backend: jue, options: cce(), children: /* @__PURE__ */ L.jsx(
40504
+ Dce,
40490
40505
  {
40491
40506
  ref: b,
40492
40507
  classes: {
@@ -40564,7 +40579,7 @@ function Fce(e) {
40564
40579
  placeholderRender: (te, { depth: fe }) => {
40565
40580
  var de;
40566
40581
  return /* @__PURE__ */ L.jsx(
40567
- Rce,
40582
+ Nce,
40568
40583
  {
40569
40584
  node: te,
40570
40585
  depth: fe,
@@ -40598,7 +40613,7 @@ function Fce(e) {
40598
40613
  oe.style.setProperty("z-index", "1304"), oe.classList.remove("backdrop-delay-transition"), P(!0);
40599
40614
  },
40600
40615
  children: [
40601
- /* @__PURE__ */ L.jsx(Ace, { className: N("side-bar__icon-logout") }),
40616
+ /* @__PURE__ */ L.jsx(Rce, { className: N("side-bar__icon-logout") }),
40602
40617
  /* @__PURE__ */ L.jsx("span", { className: N("side-bar__logout-btn__text"), children: "Logout" })
40603
40618
  ]
40604
40619
  }
@@ -40703,14 +40718,14 @@ const GD = {
40703
40718
  "/anpr/page/Issues/Index?status=Closed": ["/anpr/page/Issues"],
40704
40719
  "/anpr/page/Issues/Index": ["/anpr/page/Issues"]
40705
40720
  };
40706
- function jce(e, t) {
40721
+ function Vce(e, t) {
40707
40722
  const r = e.replace(window.origin, "").replace("/app", ""), i = new URL(r, window.location.origin), s = new URL(t.replace("/app", ""), window.origin), o = (localStorage.getItem("latestClickMenuPath") || "").replace("/app", "");
40708
40723
  return r && GD[r] && GD[r].some((l) => t.replace("/app", "").includes(l)) ? o === r ? 5 : 4 : i.pathname === s.pathname && i.search === s.search ? 3 : i.pathname === s.pathname ? 2 : s.pathname.startsWith(i.pathname) ? 1 : 0;
40709
40724
  }
40710
- function Bce(e, t) {
40725
+ function Wce(e, t) {
40711
40726
  const n = e.map((o) => ({
40712
40727
  item: o,
40713
- priority: o.path ? jce(o.path, t) : 0
40728
+ priority: o.path ? Vce(o.path, t) : 0
40714
40729
  })).filter((o) => o.priority > 0);
40715
40730
  console.log(" index.tsx ~ matchedItems:", n);
40716
40731
  const r = n.length > 0 ? n.reduce(
@@ -40733,30 +40748,30 @@ function iN(e) {
40733
40748
  path: window.location.origin + "/app" + n.path
40734
40749
  } : (n.children && (n.children = iN(n.children)), n));
40735
40750
  }
40736
- function Vce(e) {
40751
+ function Hce(e) {
40737
40752
  return (
40738
40753
  // <ShadowDOM.div>
40739
40754
  /* @__PURE__ */ L.jsx(
40740
40755
  Z0,
40741
40756
  {
40742
40757
  id: "global-menu-container",
40743
- styles: [bk, Ice, Lce],
40758
+ styles: [bk, Lce, $ce],
40744
40759
  style: {
40745
40760
  zIndex: "var(--menu-z-index)",
40746
40761
  position: "relative"
40747
40762
  },
40748
40763
  className: "backdrop-delay-transition",
40749
- children: /* @__PURE__ */ L.jsx(Fce, { ...e })
40764
+ children: /* @__PURE__ */ L.jsx(Bce, { ...e })
40750
40765
  }
40751
40766
  )
40752
40767
  );
40753
40768
  }
40754
- function Wce(e) {
40769
+ function Uce(e) {
40755
40770
  const t = { ...Dn, ...e.brandColors };
40756
- return console.log("props.brandColors", t), /* @__PURE__ */ L.jsx(ak, { children: /* @__PURE__ */ L.jsx(W5, { theme: OU({ colors: t }), children: /* @__PURE__ */ L.jsx(Vce, { ...e, ssr: !0 }) }) });
40771
+ return console.log("props.brandColors", t), /* @__PURE__ */ L.jsx(ak, { children: /* @__PURE__ */ L.jsx(W5, { theme: OU({ colors: t }), children: /* @__PURE__ */ L.jsx(Hce, { ...e, ssr: !0 }) }) });
40757
40772
  }
40758
40773
  {
40759
- const e = zp(Wce, {
40774
+ const e = zp(Uce, {
40760
40775
  props: {
40761
40776
  baseUrl: "string",
40762
40777
  menuPath: "string",
@@ -40774,10 +40789,10 @@ function Wce(e) {
40774
40789
  }
40775
40790
  export {
40776
40791
  Cte as F,
40777
- Vce as G,
40792
+ Hce as G,
40778
40793
  mU as H,
40779
40794
  r8 as L,
40780
- gfe as T,
40795
+ yfe as T,
40781
40796
  pU as g,
40782
40797
  TI as u
40783
40798
  };