@fileverse-dev/ddoc 2.0.0-beta-2 → 2.0.0-patch

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.es.js CHANGED
@@ -60082,7 +60082,7 @@ const Mz = {
60082
60082
  editor: t,
60083
60083
  onError: e
60084
60084
  });
60085
- return /* @__PURE__ */ j.jsxs("div", { className: "w-full bg-transparent py-2 px-6 items-center h-9 flex justify-between relative", children: [
60085
+ return /* @__PURE__ */ j.jsxs("div", { className: "w-full bg-transparent py-2 px-4 items-center h-9 flex justify-between relative", children: [
60086
60086
  /* @__PURE__ */ j.jsxs("div", { className: "flex h-9 items-center gap-2 justify-center", children: [
60087
60087
  /* @__PURE__ */ j.jsx("div", { className: "flex gap-2 justify-center items-center", children: l.map((u, d) => u ? /* @__PURE__ */ j.jsx(ju, { text: u.title, children: /* @__PURE__ */ j.jsx(
60088
60088
  Ih,
@@ -60202,7 +60202,7 @@ const Mz = {
60202
60202
  ] }),
60203
60203
  /* @__PURE__ */ j.jsxs("div", { className: "flex h-9 gap-[10px]", children: [
60204
60204
  /* @__PURE__ */ j.jsx(M9, { direction: "vertical" }),
60205
- /* @__PURE__ */ j.jsx("div", { className: "w-9 h-9 flex justify-center items-center", children: /* @__PURE__ */ j.jsx(
60205
+ /* @__PURE__ */ j.jsx("div", { className: "w-9 h-9 flex justify-center items-center cursor-pointer", children: /* @__PURE__ */ j.jsx(
60206
60206
  ar,
60207
60207
  {
60208
60208
  size: "md",
@@ -99848,178 +99848,11 @@ const Tet = Ut.create({
99848
99848
  connect: T,
99849
99849
  ydoc: p
99850
99850
  };
99851
- }, _et = ({
99852
- editor: t,
99853
- onError: e,
99854
- isKeyboardVisible: n,
99855
- isNavbarVisible: r,
99856
- setIsNavbarVisible: i
99857
- }) => {
99858
- const { toolVisibilty: s, setToolVisibility: o, bottomToolbar: a } = N9({
99859
- editor: t,
99860
- onError: e
99861
- }), l = O9("(max-width: 1023px)"), [c, u] = Ye(""), [d, h] = Ye(""), [f, p] = Ye(!0), [m, g] = Ye(!0), k = Ge(null), x = () => {
99862
- if (c === null) {
99863
- g(!1), o(Qe.NONE);
99864
- return;
99865
- }
99866
- if (d === "" && c === "") {
99867
- o(Qe.NONE), p(!0), g(!0);
99868
- return;
99869
- }
99870
- if (c === "") {
99871
- t.chain().focus().extendMarkRange("link").unsetLink().run(), o(Qe.NONE);
99872
- return;
99873
- }
99874
- let w = c;
99875
- !c.startsWith("http://") || !c.startsWith("https://") ? w = "https://" + c : w = c;
99876
- try {
99877
- w.match(
99878
- /^((http|https):\/\/)?([w|W]{3}\.)+[a-zA-Z0-9\-\.]{3,}\.[a-zA-Z]{2,}(\.[a-zA-Z]{2,})?$/
99879
- ) && g(!0);
99880
- } catch {
99881
- console.error("Invalid URL"), g(!1);
99882
- }
99883
- const { from: M, to: T } = t.state.selection;
99884
- t.state.doc.textBetween(M, T) ? t.chain().focus().extendMarkRange("link").setLink({ href: w }).run() : t.chain().focus().command(({ tr: R, dispatch: P }) => {
99885
- const { from: L, to: I } = t.state.selection, V = d, H = { href: w };
99886
- return R.insertText(V, L, I), R.addMark(
99887
- L,
99888
- V.length + L,
99889
- t.schema.marks.link.create(H)
99890
- ), P && P(R), !0;
99891
- }).run(), g(!0), p(!0), h(""), u(""), o(Qe.NONE);
99892
- }, v = (w) => {
99893
- const { from: M, to: T } = w.state.selection;
99894
- return w.state.doc.textBetween(M, T);
99895
- }, b = (w) => w.getAttributes("link").href;
99896
- return Ve(() => {
99897
- let w = 0;
99898
- const M = () => {
99899
- w = Date.now();
99900
- }, T = () => {
99901
- var P, L, I;
99902
- if (Date.now() - w > 500) {
99903
- const { selection: V } = t.state, H = V.from !== V.to, F = ((P = t.state.doc.nodeAt(V.from)) == null ? void 0 : P.type.name) === "resizableMedia", W = ((L = t.state.doc.nodeAt(V.from)) == null ? void 0 : L.type.name) === "iframe";
99904
- H && !F && !W && ((I = k.current) == null || I.click());
99905
- }
99906
- }, S = () => {
99907
- var L;
99908
- if (!l) return;
99909
- const { selection: R } = t.state;
99910
- R.from !== R.to && ((L = k.current) == null || L.click());
99911
- };
99912
- return l ? (document.addEventListener("touchstart", M), document.addEventListener("touchend", T)) : document.addEventListener("mouseup", S), () => {
99913
- l ? (document.removeEventListener("touchstart", M), document.removeEventListener("touchend", T)) : document.removeEventListener("mouseup", S);
99914
- };
99915
- }, [t, l]), Ve(() => {
99916
- if (!t) return;
99917
- const w = (M) => {
99918
- M.key === "k" && (M.metaKey || M.ctrlKey) && (M.preventDefault(), s !== Qe.LINK_POPUP ? o(Qe.LINK_POPUP) : o(Qe.NONE));
99919
- };
99920
- return document.addEventListener("keydown", w), () => {
99921
- document.removeEventListener("keydown", w);
99922
- };
99923
- }, [t, s]), Ve(() => {
99924
- n && o(Qe.NONE);
99925
- }, [n, o]), /* @__PURE__ */ j.jsxs(u9, { children: [
99926
- /* @__PURE__ */ j.jsxs("div", { className: "flex w-full justify-between sm:justify-evenly items-center select-none", children: [
99927
- a.map((w, M) => w ? /* @__PURE__ */ j.jsx("div", { className: "flex items-center", children: w.title === "Text formating" ? /* @__PURE__ */ j.jsx(ST, { asChild: !0, children: /* @__PURE__ */ j.jsx(
99928
- bs,
99929
- {
99930
- ref: k,
99931
- onClick: w.onClick,
99932
- isActive: w.isActive,
99933
- icon: w.icon
99934
- }
99935
- ) }) : w.title === "Text color" ? /* @__PURE__ */ j.jsx(ST, { asChild: !0, children: /* @__PURE__ */ j.jsx(
99936
- bs,
99937
- {
99938
- onClick: w.onClick,
99939
- icon: w.icon,
99940
- isActive: !1
99941
- }
99942
- ) }) : /* @__PURE__ */ j.jsx(
99943
- bs,
99944
- {
99945
- onClick: w.onClick,
99946
- icon: w.icon,
99947
- isActive: !1
99948
- }
99949
- ) }, w.title) : /* @__PURE__ */ j.jsx("div", { className: "w-[2px] h-4 bg-gray-200 mx-2" }, M)),
99950
- /* @__PURE__ */ j.jsx("div", { className: "w-[2px] h-4 bg-gray-200 mx-2" }),
99951
- /* @__PURE__ */ j.jsx("div", { className: "w-9 h-9 flex justify-center items-center", children: /* @__PURE__ */ j.jsx(
99952
- ar,
99953
- {
99954
- size: "md",
99955
- name: r ? "ChevronUp" : "ChevronDown",
99956
- onClick: () => i((w) => !w)
99957
- }
99958
- ) })
99959
- ] }),
99960
- s === Qe.TEXT_FORMATING && /* @__PURE__ */ j.jsx(
99961
- CLe,
99962
- {
99963
- editor: t,
99964
- setToolVisibility: o
99965
- }
99966
- ),
99967
- /* @__PURE__ */ j.jsx(
99968
- gDe,
99969
- {
99970
- open: s === Qe.LINK_POPUP,
99971
- onOpenChange: (w) => !w && o(Qe.NONE),
99972
- title: "Link",
99973
- content: /* @__PURE__ */ j.jsxs("div", { className: "flex flex-col gap-4 w-full h-full px-4", children: [
99974
- /* @__PURE__ */ j.jsx(
99975
- Dg,
99976
- {
99977
- label: "Text",
99978
- placeholder: "Link text",
99979
- className: "w-full",
99980
- defaultValue: v(t),
99981
- onChange: (w) => {
99982
- w.preventDefault(), h(w.target.value);
99983
- },
99984
- isValid: f,
99985
- message: f ? "" : "Invalid text"
99986
- }
99987
- ),
99988
- /* @__PURE__ */ j.jsx(
99989
- Dg,
99990
- {
99991
- label: "Link",
99992
- placeholder: "Paste URL",
99993
- className: "w-full",
99994
- defaultValue: b(t),
99995
- onChange: (w) => {
99996
- w.preventDefault(), u(w.target.value);
99997
- },
99998
- isValid: m,
99999
- message: m ? "" : "Invalid URL"
100000
- }
100001
- )
100002
- ] }),
100003
- primaryAction: {
100004
- label: "Save",
100005
- onClick: () => x(),
100006
- isLoading: !1,
100007
- className: "w-auto min-w-[80px]"
100008
- },
100009
- secondaryAction: {
100010
- label: "Cancel",
100011
- variant: "secondary",
100012
- onClick: () => o(Qe.NONE),
100013
- className: "w-auto min-w-[80px]"
100014
- }
100015
- }
100016
- )
100017
- ] });
100018
99851
  }, fC = jn({
100019
99852
  transformPagePoint: (t) => t,
100020
99853
  isStatic: !1,
100021
99854
  reducedMotion: "never"
100022
- }), a5 = jn({}), l5 = jn(null), pC = typeof document < "u", mC = pC ? So : Ve, nK = jn({ strict: !1 }), yC = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Iet = "framerAppearId", rK = "data-" + yC(Iet), jet = {
99855
+ }), a5 = jn({}), l5 = jn(null), pC = typeof document < "u", mC = pC ? So : Ve, nK = jn({ strict: !1 }), yC = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), _et = "framerAppearId", rK = "data-" + yC(_et), Iet = {
100023
99856
  skipAnimations: !1,
100024
99857
  useManualTiming: !1
100025
99858
  };
@@ -100039,7 +99872,7 @@ class TO {
100039
99872
  this.order.length = 0, this.scheduled.clear();
100040
99873
  }
100041
99874
  }
100042
- function Fet(t) {
99875
+ function jet(t) {
100043
99876
  let e = new TO(), n = new TO(), r = 0, i = !1, s = !1;
100044
99877
  const o = /* @__PURE__ */ new WeakSet(), a = {
100045
99878
  /**
@@ -100086,18 +99919,18 @@ const Sy = [
100086
99919
  // Write
100087
99920
  "postRender"
100088
99921
  // Compute
100089
- ], Bet = 40;
99922
+ ], Fet = 40;
100090
99923
  function iK(t, e) {
100091
99924
  let n = !1, r = !0;
100092
99925
  const i = {
100093
99926
  delta: 0,
100094
99927
  timestamp: 0,
100095
99928
  isProcessing: !1
100096
- }, s = Sy.reduce((d, h) => (d[h] = Fet(() => n = !0), d), {}), o = (d) => {
99929
+ }, s = Sy.reduce((d, h) => (d[h] = jet(() => n = !0), d), {}), o = (d) => {
100097
99930
  s[d].process(i);
100098
99931
  }, a = () => {
100099
99932
  const d = performance.now();
100100
- n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(d - i.timestamp, Bet), 1), i.timestamp = d, i.isProcessing = !0, Sy.forEach(o), i.isProcessing = !1, n && e && (r = !1, t(a));
99933
+ n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(d - i.timestamp, Fet), 1), i.timestamp = d, i.isProcessing = !0, Sy.forEach(o), i.isProcessing = !1, n && e && (r = !1, t(a));
100101
99934
  }, l = () => {
100102
99935
  n = !0, r = !0, i.isProcessing || t(a);
100103
99936
  };
@@ -100112,7 +99945,7 @@ function f1(t) {
100112
99945
  }
100113
99946
  const sK = jn({});
100114
99947
  let RO = !1;
100115
- function Vet(t, e, n, r, i) {
99948
+ function Bet(t, e, n, r, i) {
100116
99949
  const { visualElement: s } = Mt(a5), o = Mt(nK), a = Mt(l5), l = Mt(fC).reducedMotion, c = Ge();
100117
99950
  r = r || o.renderer, !c.current && r && (c.current = r(t, {
100118
99951
  visualState: e,
@@ -100123,20 +99956,20 @@ function Vet(t, e, n, r, i) {
100123
99956
  reducedMotionConfig: l
100124
99957
  }));
100125
99958
  const u = c.current, d = Mt(sK);
100126
- u && !u.projection && i && (u.type === "html" || u.type === "svg") && zet(c.current, n, i, d), M3(() => {
99959
+ u && !u.projection && i && (u.type === "html" || u.type === "svg") && Het(c.current, n, i, d), M3(() => {
100127
99960
  u && u.update(n, a);
100128
99961
  });
100129
99962
  const h = Ge(!!(n[rK] && !window.HandoffComplete));
100130
99963
  return mC(() => {
100131
99964
  u && (u.updateFeatures(), gC.render(u.render), h.current && u.animationState && u.animationState.animateChanges());
100132
99965
  }), Ve(() => {
100133
- u && (!h.current && u.animationState && u.animationState.animateChanges(), h.current && (h.current = !1, RO || (RO = !0, queueMicrotask(Het))));
99966
+ u && (!h.current && u.animationState && u.animationState.animateChanges(), h.current && (h.current = !1, RO || (RO = !0, queueMicrotask(Vet))));
100134
99967
  }), u;
100135
99968
  }
100136
- function Het() {
99969
+ function Vet() {
100137
99970
  window.HandoffComplete = !0;
100138
99971
  }
100139
- function zet(t, e, n, r) {
99972
+ function Het(t, e, n, r) {
100140
99973
  const { layoutId: i, layout: s, drag: o, dragConstraints: a, layoutScroll: l, layoutRoot: c } = e;
100141
99974
  t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : oK(t.parent)), t.projection.setOptions({
100142
99975
  layoutId: i,
@@ -100161,7 +99994,7 @@ function oK(t) {
100161
99994
  if (t)
100162
99995
  return t.options.allowProjection !== !1 ? t.projection : oK(t.parent);
100163
99996
  }
100164
- function Uet(t, e, n) {
99997
+ function zet(t, e, n) {
100165
99998
  return Rt(
100166
99999
  (r) => {
100167
100000
  r && t.mount && t.mount(r), e && (r ? e.mount(r) : e.unmount()), n && (typeof n == "function" ? n(r) : f1(n) && (n.current = r));
@@ -100195,7 +100028,7 @@ function u5(t) {
100195
100028
  function aK(t) {
100196
100029
  return !!(u5(t) || t.variants);
100197
100030
  }
100198
- function qet(t, e) {
100031
+ function Uet(t, e) {
100199
100032
  if (u5(t)) {
100200
100033
  const { initial: n, animate: r } = t;
100201
100034
  return {
@@ -100205,8 +100038,8 @@ function qet(t, e) {
100205
100038
  }
100206
100039
  return t.inherit !== !1 ? e : {};
100207
100040
  }
100208
- function Wet(t) {
100209
- const { initial: e, animate: n } = qet(t, Mt(a5));
100041
+ function qet(t) {
100042
+ const { initial: e, animate: n } = Uet(t, Mt(a5));
100210
100043
  return Rn(() => ({ initial: e, animate: n }), [PO(e), PO(n)]);
100211
100044
  }
100212
100045
  function PO(t) {
@@ -100236,14 +100069,14 @@ for (const t in DO)
100236
100069
  hf[t] = {
100237
100070
  isEnabled: (e) => DO[t].some((n) => !!e[n])
100238
100071
  };
100239
- function Get(t) {
100072
+ function Wet(t) {
100240
100073
  for (const e in t)
100241
100074
  hf[e] = {
100242
100075
  ...hf[e],
100243
100076
  ...t[e]
100244
100077
  };
100245
100078
  }
100246
- const bC = jn({}), Zet = Symbol.for("motionComponentSymbol"), dr = (t) => t;
100079
+ const bC = jn({}), Get = Symbol.for("motionComponentSymbol"), dr = (t) => t;
100247
100080
  let jf = dr, Ia = dr;
100248
100081
  process.env.NODE_ENV !== "production" && (jf = (t, e) => {
100249
100082
  !t && typeof console < "u" && console.warn(e);
@@ -100251,37 +100084,37 @@ process.env.NODE_ENV !== "production" && (jf = (t, e) => {
100251
100084
  if (!t)
100252
100085
  throw new Error(e);
100253
100086
  });
100254
- function Ket({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: r, Component: i }) {
100255
- t && Get(t);
100087
+ function Zet({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: r, Component: i }) {
100088
+ t && Wet(t);
100256
100089
  function s(a, l) {
100257
100090
  let c;
100258
100091
  const u = {
100259
100092
  ...Mt(fC),
100260
100093
  ...a,
100261
- layoutId: $et(a)
100262
- }, { isStatic: d } = u, h = Wet(a), f = r(a, d);
100094
+ layoutId: Ket(a)
100095
+ }, { isStatic: d } = u, h = qet(a), f = r(a, d);
100263
100096
  if (!d && pC) {
100264
- Qet(u, t);
100265
- const p = Xet(u);
100266
- c = p.MeasureLayout, h.visualElement = Vet(i, f, u, e, p.ProjectionNode);
100097
+ $et(u, t);
100098
+ const p = Qet(u);
100099
+ c = p.MeasureLayout, h.visualElement = Bet(i, f, u, e, p.ProjectionNode);
100267
100100
  }
100268
- return j.jsxs(a5.Provider, { value: h, children: [c && h.visualElement ? j.jsx(c, { visualElement: h.visualElement, ...u }) : null, n(i, a, Uet(f, h.visualElement, l), f, d, h.visualElement)] });
100101
+ return j.jsxs(a5.Provider, { value: h, children: [c && h.visualElement ? j.jsx(c, { visualElement: h.visualElement, ...u }) : null, n(i, a, zet(f, h.visualElement, l), f, d, h.visualElement)] });
100269
100102
  }
100270
100103
  const o = Bt(s);
100271
- return o[Zet] = i, o;
100104
+ return o[Get] = i, o;
100272
100105
  }
100273
- function $et({ layoutId: t }) {
100106
+ function Ket({ layoutId: t }) {
100274
100107
  const e = Mt(bC).id;
100275
100108
  return e && t !== void 0 ? e + "-" + t : t;
100276
100109
  }
100277
- function Qet(t, e) {
100110
+ function $et(t, e) {
100278
100111
  const n = Mt(nK).strict;
100279
100112
  if (process.env.NODE_ENV !== "production" && e && n) {
100280
100113
  const r = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
100281
100114
  t.ignoreStrict ? jf(!1, r) : Ia(!1, r);
100282
100115
  }
100283
100116
  }
100284
- function Xet(t) {
100117
+ function Qet(t) {
100285
100118
  const { drag: e, layout: n } = hf;
100286
100119
  if (!e && !n)
100287
100120
  return {};
@@ -100291,9 +100124,9 @@ function Xet(t) {
100291
100124
  ProjectionNode: r.ProjectionNode
100292
100125
  };
100293
100126
  }
100294
- function Jet(t) {
100127
+ function Xet(t) {
100295
100128
  function e(r, i = {}) {
100296
- return Ket(t(r, i));
100129
+ return Zet(t(r, i));
100297
100130
  }
100298
100131
  if (typeof Proxy > "u")
100299
100132
  return e;
@@ -100307,7 +100140,7 @@ function Jet(t) {
100307
100140
  get: (r, i) => (n.has(i) || n.set(i, e(i)), n.get(i))
100308
100141
  });
100309
100142
  }
100310
- const Yet = [
100143
+ const Jet = [
100311
100144
  "animate",
100312
100145
  "circle",
100313
100146
  "defs",
@@ -100347,7 +100180,7 @@ function xC(t) {
100347
100180
  /**
100348
100181
  * If it's in our list of lowercase SVG tags, it's an SVG component
100349
100182
  */
100350
- !!(Yet.indexOf(t) > -1 || /**
100183
+ !!(Jet.indexOf(t) > -1 || /**
100351
100184
  * If it contains a capital letter, it's an SVG component
100352
100185
  */
100353
100186
  /[A-Z]/u.test(t))
@@ -100355,7 +100188,7 @@ function xC(t) {
100355
100188
  );
100356
100189
  }
100357
100190
  const u3 = {};
100358
- function ett(t) {
100191
+ function Yet(t) {
100359
100192
  Object.assign(u3, t);
100360
100193
  }
100361
100194
  const um = [
@@ -100380,24 +100213,24 @@ const um = [
100380
100213
  function lK(t, { layout: e, layoutId: n }) {
100381
100214
  return Md.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!u3[t] || t === "opacity");
100382
100215
  }
100383
- const Cr = (t) => !!(t && t.getVelocity), ttt = {
100216
+ const Cr = (t) => !!(t && t.getVelocity), ett = {
100384
100217
  x: "translateX",
100385
100218
  y: "translateY",
100386
100219
  z: "translateZ",
100387
100220
  transformPerspective: "perspective"
100388
- }, ntt = um.length;
100389
- function rtt(t, { enableHardwareAcceleration: e = !0, allowTransformNone: n = !0 }, r, i) {
100221
+ }, ttt = um.length;
100222
+ function ntt(t, { enableHardwareAcceleration: e = !0, allowTransformNone: n = !0 }, r, i) {
100390
100223
  let s = "";
100391
- for (let o = 0; o < ntt; o++) {
100224
+ for (let o = 0; o < ttt; o++) {
100392
100225
  const a = um[o];
100393
100226
  if (t[a] !== void 0) {
100394
- const l = ttt[a] || a;
100227
+ const l = ett[a] || a;
100395
100228
  s += `${l}(${t[a]}) `;
100396
100229
  }
100397
100230
  }
100398
100231
  return e && !t.z && (s += "translateZ(0)"), s = s.trim(), i ? s = i(t, r ? "" : s) : n && r && (s = "none"), s;
100399
100232
  }
100400
- const cK = (t) => (e) => typeof e == "string" && e.startsWith(t), uK = cK("--"), itt = cK("var(--"), wC = (t) => itt(t) ? stt.test(t.split("/*")[0].trim()) : !1, stt = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, ott = (t, e) => e && typeof t == "number" ? e.transform(t) : t, ac = (t, e, n) => n > e ? e : n < t ? t : n, Ff = {
100233
+ const cK = (t) => (e) => typeof e == "string" && e.startsWith(t), uK = cK("--"), rtt = cK("var(--"), wC = (t) => rtt(t) ? itt.test(t.split("/*")[0].trim()) : !1, itt = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, stt = (t, e) => e && typeof t == "number" ? e.transform(t) : t, ac = (t, e, n) => n > e ? e : n < t ? t : n, Ff = {
100401
100234
  test: (t) => typeof t == "number",
100402
100235
  parse: parseFloat,
100403
100236
  transform: (t) => t
@@ -100407,7 +100240,7 @@ const cK = (t) => (e) => typeof e == "string" && e.startsWith(t), uK = cK("--"),
100407
100240
  }, Ty = {
100408
100241
  ...Ff,
100409
100242
  default: 1
100410
- }, Z0 = (t) => Math.round(t * 1e5) / 1e5, AC = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, att = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, ltt = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
100243
+ }, Z0 = (t) => Math.round(t * 1e5) / 1e5, AC = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, ott = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, att = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
100411
100244
  function dm(t) {
100412
100245
  return typeof t == "string";
100413
100246
  }
@@ -100415,7 +100248,7 @@ const hm = (t) => ({
100415
100248
  test: (e) => dm(e) && e.endsWith(t) && e.split(" ").length === 1,
100416
100249
  parse: parseFloat,
100417
100250
  transform: (e) => `${e}${t}`
100418
- }), rl = hm("deg"), po = hm("%"), at = hm("px"), ctt = hm("vh"), utt = hm("vw"), OO = {
100251
+ }), rl = hm("deg"), po = hm("%"), at = hm("px"), ltt = hm("vh"), ctt = hm("vw"), OO = {
100419
100252
  ...po,
100420
100253
  parse: (t) => po.parse(t) / 100,
100421
100254
  transform: (t) => po.transform(t * 100)
@@ -100499,14 +100332,14 @@ function CC(t, e, n, r) {
100499
100332
  s[d] = h;
100500
100333
  continue;
100501
100334
  }
100502
- const f = dK[d], p = ott(h, f);
100335
+ const f = dK[d], p = stt(h, f);
100503
100336
  if (Md.has(d)) {
100504
100337
  if (l = !0, o[d] = p, !u)
100505
100338
  continue;
100506
100339
  h !== (f.default || 0) && (u = !1);
100507
100340
  } else d.startsWith("origin") ? (c = !0, a[d] = p) : i[d] = p;
100508
100341
  }
100509
- if (e.transform || (l || r ? i.transform = rtt(t.transform, n, u, r) : i.transform && (i.transform = "none")), c) {
100342
+ if (e.transform || (l || r ? i.transform = ntt(t.transform, n, u, r) : i.transform && (i.transform = "none")), c) {
100510
100343
  const { originX: d = "50%", originY: h = "50%", originZ: f = 0 } = a;
100511
100344
  i.transformOrigin = `${d} ${h} ${f}`;
100512
100345
  }
@@ -100521,21 +100354,21 @@ function hK(t, e, n) {
100521
100354
  for (const r in e)
100522
100355
  !Cr(e[r]) && !lK(r, n) && (t[r] = e[r]);
100523
100356
  }
100524
- function dtt({ transformTemplate: t }, e, n) {
100357
+ function utt({ transformTemplate: t }, e, n) {
100525
100358
  return Rn(() => {
100526
100359
  const r = MC();
100527
100360
  return CC(r, e, { enableHardwareAcceleration: !n }, t), Object.assign({}, r.vars, r.style);
100528
100361
  }, [e]);
100529
100362
  }
100530
- function htt(t, e, n) {
100363
+ function dtt(t, e, n) {
100531
100364
  const r = t.style || {}, i = {};
100532
- return hK(i, r, t), Object.assign(i, dtt(t, e, n)), i;
100365
+ return hK(i, r, t), Object.assign(i, utt(t, e, n)), i;
100533
100366
  }
100534
- function ftt(t, e, n) {
100535
- const r = {}, i = htt(t, e, n);
100367
+ function htt(t, e, n) {
100368
+ const r = {}, i = dtt(t, e, n);
100536
100369
  return t.drag && t.dragListener !== !1 && (r.draggable = !1, i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = "none", i.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (r.tabIndex = 0), r.style = i, r;
100537
100370
  }
100538
- const ptt = /* @__PURE__ */ new Set([
100371
+ const ftt = /* @__PURE__ */ new Set([
100539
100372
  "animate",
100540
100373
  "exit",
100541
100374
  "variants",
@@ -100568,17 +100401,17 @@ const ptt = /* @__PURE__ */ new Set([
100568
100401
  "viewport"
100569
100402
  ]);
100570
100403
  function d3(t) {
100571
- return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || ptt.has(t);
100404
+ return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || ftt.has(t);
100572
100405
  }
100573
100406
  let fK = (t) => !d3(t);
100574
- function mtt(t) {
100407
+ function ptt(t) {
100575
100408
  t && (fK = (e) => e.startsWith("on") ? !d3(e) : t(e));
100576
100409
  }
100577
100410
  try {
100578
- mtt(require("@emotion/is-prop-valid").default);
100411
+ ptt(require("@emotion/is-prop-valid").default);
100579
100412
  } catch {
100580
100413
  }
100581
- function ytt(t, e, n) {
100414
+ function mtt(t, e, n) {
100582
100415
  const r = {};
100583
100416
  for (const i in t)
100584
100417
  i === "values" && typeof t.values == "object" || (fK(i) || n === !0 && d3(i) || !e && !d3(i) || // If trying to use native HTML drag events, forward drag listeners
@@ -100588,20 +100421,20 @@ function ytt(t, e, n) {
100588
100421
  function LO(t, e, n) {
100589
100422
  return typeof t == "string" ? t : at.transform(e + n * t);
100590
100423
  }
100591
- function gtt(t, e, n) {
100424
+ function ytt(t, e, n) {
100592
100425
  const r = LO(e, t.x, t.width), i = LO(n, t.y, t.height);
100593
100426
  return `${r} ${i}`;
100594
100427
  }
100595
- const ktt = {
100428
+ const gtt = {
100596
100429
  offset: "stroke-dashoffset",
100597
100430
  array: "stroke-dasharray"
100598
- }, vtt = {
100431
+ }, ktt = {
100599
100432
  offset: "strokeDashoffset",
100600
100433
  array: "strokeDasharray"
100601
100434
  };
100602
- function btt(t, e, n = 1, r = 0, i = !0) {
100435
+ function vtt(t, e, n = 1, r = 0, i = !0) {
100603
100436
  t.pathLength = 1;
100604
- const s = i ? ktt : vtt;
100437
+ const s = i ? gtt : ktt;
100605
100438
  t[s.offset] = at.transform(-r);
100606
100439
  const o = at.transform(e), a = at.transform(n);
100607
100440
  t[s.array] = `${o} ${a}`;
@@ -100624,13 +100457,13 @@ function EC(t, {
100624
100457
  }
100625
100458
  t.attrs = t.style, t.style = {};
100626
100459
  const { attrs: f, style: p, dimensions: m } = t;
100627
- f.transform && (m && (p.transform = f.transform), delete f.transform), m && (i !== void 0 || s !== void 0 || p.transform) && (p.transformOrigin = gtt(m, i !== void 0 ? i : 0.5, s !== void 0 ? s : 0.5)), e !== void 0 && (f.x = e), n !== void 0 && (f.y = n), r !== void 0 && (f.scale = r), o !== void 0 && btt(f, o, a, l, !1);
100460
+ f.transform && (m && (p.transform = f.transform), delete f.transform), m && (i !== void 0 || s !== void 0 || p.transform) && (p.transformOrigin = ytt(m, i !== void 0 ? i : 0.5, s !== void 0 ? s : 0.5)), e !== void 0 && (f.x = e), n !== void 0 && (f.y = n), r !== void 0 && (f.scale = r), o !== void 0 && vtt(f, o, a, l, !1);
100628
100461
  }
100629
100462
  const pK = () => ({
100630
100463
  ...MC(),
100631
100464
  attrs: {}
100632
100465
  }), SC = (t) => typeof t == "string" && t.toLowerCase() === "svg";
100633
- function xtt(t, e, n, r) {
100466
+ function btt(t, e, n, r) {
100634
100467
  const i = Rn(() => {
100635
100468
  const s = pK();
100636
100469
  return EC(s, e, { enableHardwareAcceleration: !1 }, SC(r), t.transformTemplate), {
@@ -100644,9 +100477,9 @@ function xtt(t, e, n, r) {
100644
100477
  }
100645
100478
  return i;
100646
100479
  }
100647
- function wtt(t = !1) {
100480
+ function xtt(t = !1) {
100648
100481
  return (n, r, i, { latestValues: s }, o) => {
100649
- const l = (xC(n) ? xtt : ftt)(r, s, o, n), c = ytt(r, typeof n == "string", t), u = n !== pf ? { ...c, ...l, ref: i } : {}, { children: d } = r, h = Rn(() => Cr(d) ? d.get() : d, [d]);
100482
+ const l = (xC(n) ? btt : htt)(r, s, o, n), c = mtt(r, typeof n == "string", t), u = n !== pf ? { ...c, ...l, ref: i } : {}, { children: d } = r, h = Rn(() => Cr(d) ? d.get() : d, [d]);
100650
100483
  return Ft(n, {
100651
100484
  ...u,
100652
100485
  children: h
@@ -100725,23 +100558,23 @@ function vK(t) {
100725
100558
  const e = Ge(null);
100726
100559
  return e.current === null && (e.current = t()), e.current;
100727
100560
  }
100728
- const Jx = (t) => Array.isArray(t), Att = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), Ctt = (t) => Jx(t) ? t[t.length - 1] || 0 : t;
100561
+ const Jx = (t) => Array.isArray(t), wtt = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), Att = (t) => Jx(t) ? t[t.length - 1] || 0 : t;
100729
100562
  function ug(t) {
100730
100563
  const e = Cr(t) ? t.get() : t;
100731
- return Att(e) ? e.toValue() : e;
100564
+ return wtt(e) ? e.toValue() : e;
100732
100565
  }
100733
- function Mtt({ scrapeMotionValuesFromProps: t, createRenderState: e, onMount: n }, r, i, s) {
100566
+ function Ctt({ scrapeMotionValuesFromProps: t, createRenderState: e, onMount: n }, r, i, s) {
100734
100567
  const o = {
100735
- latestValues: Ett(r, i, s, t),
100568
+ latestValues: Mtt(r, i, s, t),
100736
100569
  renderState: e()
100737
100570
  };
100738
100571
  return n && (o.mount = (a) => n(r, a, o)), o;
100739
100572
  }
100740
100573
  const bK = (t) => (e, n) => {
100741
- const r = Mt(a5), i = Mt(l5), s = () => Mtt(t, e, r, i);
100574
+ const r = Mt(a5), i = Mt(l5), s = () => Ctt(t, e, r, i);
100742
100575
  return n ? s() : vK(s);
100743
100576
  };
100744
- function Ett(t, e, n, r) {
100577
+ function Mtt(t, e, n, r) {
100745
100578
  const i = {}, s = r(t, {});
100746
100579
  for (const h in s)
100747
100580
  i[h] = ug(s[h]);
@@ -100768,7 +100601,7 @@ function Ett(t, e, n, r) {
100768
100601
  i[x] = m[x];
100769
100602
  }), i;
100770
100603
  }
100771
- const { schedule: zt, cancel: ja, state: nr, steps: Fb } = iK(typeof requestAnimationFrame < "u" ? requestAnimationFrame : dr, !0), Stt = {
100604
+ const { schedule: zt, cancel: ja, state: nr, steps: Fb } = iK(typeof requestAnimationFrame < "u" ? requestAnimationFrame : dr, !0), Ett = {
100772
100605
  useVisualState: bK({
100773
100606
  scrapeMotionValuesFromProps: kK,
100774
100607
  createRenderState: pK,
@@ -100789,17 +100622,17 @@ const { schedule: zt, cancel: ja, state: nr, steps: Fb } = iK(typeof requestAnim
100789
100622
  });
100790
100623
  }
100791
100624
  })
100792
- }, Ttt = {
100625
+ }, Stt = {
100793
100626
  useVisualState: bK({
100794
100627
  scrapeMotionValuesFromProps: TC,
100795
100628
  createRenderState: MC
100796
100629
  })
100797
100630
  };
100798
- function Rtt(t, { forwardMotionProps: e = !1 }, n, r) {
100631
+ function Ttt(t, { forwardMotionProps: e = !1 }, n, r) {
100799
100632
  return {
100800
- ...xC(t) ? Stt : Ttt,
100633
+ ...xC(t) ? Ett : Stt,
100801
100634
  preloadedFeatures: n,
100802
- useRender: wtt(e),
100635
+ useRender: xtt(e),
100803
100636
  createVisualElement: r,
100804
100637
  Component: t
100805
100638
  };
@@ -100816,11 +100649,11 @@ function d5(t, e = "page") {
100816
100649
  }
100817
100650
  };
100818
100651
  }
100819
- const Ptt = (t) => (e) => xK(e) && t(e, d5(e));
100652
+ const Rtt = (t) => (e) => xK(e) && t(e, d5(e));
100820
100653
  function xa(t, e, n, r) {
100821
- return la(t, e, Ptt(n), r);
100654
+ return la(t, e, Rtt(n), r);
100822
100655
  }
100823
- const Dtt = (t, e) => (n) => e(t(n)), wa = (...t) => t.reduce(Dtt);
100656
+ const Ptt = (t, e) => (n) => e(t(n)), wa = (...t) => t.reduce(Ptt);
100824
100657
  function wK(t) {
100825
100658
  let e = null;
100826
100659
  return () => {
@@ -100869,14 +100702,14 @@ function FO(t, e) {
100869
100702
  passive: !t.getProps()[r]
100870
100703
  });
100871
100704
  }
100872
- class Ott extends Mc {
100705
+ class Dtt extends Mc {
100873
100706
  mount() {
100874
100707
  this.unmount = wa(FO(this.node, !0), FO(this.node, !1));
100875
100708
  }
100876
100709
  unmount() {
100877
100710
  }
100878
100711
  }
100879
- class Ntt extends Mc {
100712
+ class Ott extends Mc {
100880
100713
  constructor() {
100881
100714
  super(...arguments), this.isActive = !1;
100882
100715
  }
@@ -100905,7 +100738,7 @@ function Bb(t, e) {
100905
100738
  const n = new PointerEvent("pointer" + t);
100906
100739
  e(n, d5(n));
100907
100740
  }
100908
- class Ltt extends Mc {
100741
+ class Ntt extends Mc {
100909
100742
  constructor() {
100910
100743
  super(...arguments), this.removeStartListeners = dr, this.removeEndListeners = dr, this.removeAccessibleListeners = dr, this.startPointerPress = (e, n) => {
100911
100744
  if (this.isPressing)
@@ -100965,29 +100798,29 @@ class Ltt extends Mc {
100965
100798
  this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
100966
100799
  }
100967
100800
  }
100968
- const Yx = /* @__PURE__ */ new WeakMap(), Vb = /* @__PURE__ */ new WeakMap(), _tt = (t) => {
100801
+ const Yx = /* @__PURE__ */ new WeakMap(), Vb = /* @__PURE__ */ new WeakMap(), Ltt = (t) => {
100969
100802
  const e = Yx.get(t.target);
100970
100803
  e && e(t);
100971
- }, Itt = (t) => {
100972
- t.forEach(_tt);
100804
+ }, _tt = (t) => {
100805
+ t.forEach(Ltt);
100973
100806
  };
100974
- function jtt({ root: t, ...e }) {
100807
+ function Itt({ root: t, ...e }) {
100975
100808
  const n = t || document;
100976
100809
  Vb.has(n) || Vb.set(n, {});
100977
100810
  const r = Vb.get(n), i = JSON.stringify(e);
100978
- return r[i] || (r[i] = new IntersectionObserver(Itt, { root: t, ...e })), r[i];
100811
+ return r[i] || (r[i] = new IntersectionObserver(_tt, { root: t, ...e })), r[i];
100979
100812
  }
100980
- function Ftt(t, e, n) {
100981
- const r = jtt(e);
100813
+ function jtt(t, e, n) {
100814
+ const r = Itt(e);
100982
100815
  return Yx.set(t, n), r.observe(t), () => {
100983
100816
  Yx.delete(t), r.unobserve(t);
100984
100817
  };
100985
100818
  }
100986
- const Btt = {
100819
+ const Ftt = {
100987
100820
  some: 0,
100988
100821
  all: 1
100989
100822
  };
100990
- class Vtt extends Mc {
100823
+ class Btt extends Mc {
100991
100824
  constructor() {
100992
100825
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
100993
100826
  }
@@ -100996,7 +100829,7 @@ class Vtt extends Mc {
100996
100829
  const { viewport: e = {} } = this.node.getProps(), { root: n, margin: r, amount: i = "some", once: s } = e, o = {
100997
100830
  root: n ? n.current : void 0,
100998
100831
  rootMargin: r,
100999
- threshold: typeof i == "number" ? i : Btt[i]
100832
+ threshold: typeof i == "number" ? i : Ftt[i]
101000
100833
  }, a = (l) => {
101001
100834
  const { isIntersecting: c } = l;
101002
100835
  if (this.isInView === c || (this.isInView = c, s && !c && this.hasEnteredView))
@@ -101005,7 +100838,7 @@ class Vtt extends Mc {
101005
100838
  const { onViewportEnter: u, onViewportLeave: d } = this.node.getProps(), h = c ? u : d;
101006
100839
  h && h(l);
101007
100840
  };
101008
- return Ftt(this.node.current, o, a);
100841
+ return jtt(this.node.current, o, a);
101009
100842
  }
101010
100843
  mount() {
101011
100844
  this.startObserver();
@@ -101014,26 +100847,26 @@ class Vtt extends Mc {
101014
100847
  if (typeof IntersectionObserver > "u")
101015
100848
  return;
101016
100849
  const { props: e, prevProps: n } = this.node;
101017
- ["amount", "margin", "root"].some(Htt(e, n)) && this.startObserver();
100850
+ ["amount", "margin", "root"].some(Vtt(e, n)) && this.startObserver();
101018
100851
  }
101019
100852
  unmount() {
101020
100853
  }
101021
100854
  }
101022
- function Htt({ viewport: t = {} }, { viewport: e = {} } = {}) {
100855
+ function Vtt({ viewport: t = {} }, { viewport: e = {} } = {}) {
101023
100856
  return (n) => t[n] !== e[n];
101024
100857
  }
101025
- const ztt = {
100858
+ const Htt = {
101026
100859
  inView: {
101027
- Feature: Vtt
100860
+ Feature: Btt
101028
100861
  },
101029
100862
  tap: {
101030
- Feature: Ltt
100863
+ Feature: Ntt
101031
100864
  },
101032
100865
  focus: {
101033
- Feature: Ntt
100866
+ Feature: Ott
101034
100867
  },
101035
100868
  hover: {
101036
- Feature: Ott
100869
+ Feature: Dtt
101037
100870
  }
101038
100871
  };
101039
100872
  function EK(t, e) {
@@ -101051,63 +100884,63 @@ function h5(t, e, n) {
101051
100884
  const r = t.getProps();
101052
100885
  return RC(r, e, n !== void 0 ? n : r.custom, t);
101053
100886
  }
101054
- const Aa = (t) => t * 1e3, Ca = (t) => t / 1e3, Utt = {
100887
+ const Aa = (t) => t * 1e3, Ca = (t) => t / 1e3, ztt = {
101055
100888
  type: "spring",
101056
100889
  stiffness: 500,
101057
100890
  damping: 25,
101058
100891
  restSpeed: 10
101059
- }, qtt = (t) => ({
100892
+ }, Utt = (t) => ({
101060
100893
  type: "spring",
101061
100894
  stiffness: 550,
101062
100895
  damping: t === 0 ? 2 * Math.sqrt(550) : 30,
101063
100896
  restSpeed: 10
101064
- }), Wtt = {
100897
+ }), qtt = {
101065
100898
  type: "keyframes",
101066
100899
  duration: 0.8
101067
- }, Gtt = {
100900
+ }, Wtt = {
101068
100901
  type: "keyframes",
101069
100902
  ease: [0.25, 0.1, 0.35, 1],
101070
100903
  duration: 0.3
101071
- }, Ztt = (t, { keyframes: e }) => e.length > 2 ? Wtt : Md.has(t) ? t.startsWith("scale") ? qtt(e[1]) : Utt : Gtt;
101072
- function Ktt({ when: t, delay: e, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: s, repeatType: o, repeatDelay: a, from: l, elapsed: c, ...u }) {
100904
+ }, Gtt = (t, { keyframes: e }) => e.length > 2 ? qtt : Md.has(t) ? t.startsWith("scale") ? Utt(e[1]) : ztt : Wtt;
100905
+ function Ztt({ when: t, delay: e, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: s, repeatType: o, repeatDelay: a, from: l, elapsed: c, ...u }) {
101073
100906
  return !!Object.keys(u).length;
101074
100907
  }
101075
100908
  function PC(t, e) {
101076
100909
  return t[e] || t.default || t;
101077
100910
  }
101078
- const $tt = (t) => t !== null;
100911
+ const Ktt = (t) => t !== null;
101079
100912
  function f5(t, { repeat: e, repeatType: n = "loop" }, r) {
101080
- const i = t.filter($tt), s = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
100913
+ const i = t.filter(Ktt), s = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
101081
100914
  return !s || r === void 0 ? i[s] : r;
101082
100915
  }
101083
100916
  let dg;
101084
- function Qtt() {
100917
+ function $tt() {
101085
100918
  dg = void 0;
101086
100919
  }
101087
100920
  const Zl = {
101088
- now: () => (dg === void 0 && Zl.set(nr.isProcessing || jet.useManualTiming ? nr.timestamp : performance.now()), dg),
100921
+ now: () => (dg === void 0 && Zl.set(nr.isProcessing || Iet.useManualTiming ? nr.timestamp : performance.now()), dg),
101089
100922
  set: (t) => {
101090
- dg = t, queueMicrotask(Qtt);
100923
+ dg = t, queueMicrotask($tt);
101091
100924
  }
101092
100925
  }, SK = (t) => /^0[^.\s]+$/u.test(t);
101093
- function Xtt(t) {
100926
+ function Qtt(t) {
101094
100927
  return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || SK(t) : !0;
101095
100928
  }
101096
- const TK = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), Jtt = (
100929
+ const TK = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), Xtt = (
101097
100930
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
101098
100931
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
101099
100932
  );
101100
- function Ytt(t) {
101101
- const e = Jtt.exec(t);
100933
+ function Jtt(t) {
100934
+ const e = Xtt.exec(t);
101102
100935
  if (!e)
101103
100936
  return [,];
101104
100937
  const [, n, r, i] = e;
101105
100938
  return [`--${n ?? r}`, i];
101106
100939
  }
101107
- const ent = 4;
100940
+ const Ytt = 4;
101108
100941
  function RK(t, e, n = 1) {
101109
- Ia(n <= ent, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
101110
- const [r, i] = Ytt(t);
100942
+ Ia(n <= Ytt, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
100943
+ const [r, i] = Jtt(t);
101111
100944
  if (!r)
101112
100945
  return;
101113
100946
  const s = window.getComputedStyle(e).getPropertyValue(r);
@@ -101117,7 +100950,7 @@ function RK(t, e, n = 1) {
101117
100950
  }
101118
100951
  return wC(i) ? RK(i, e, n + 1) : i;
101119
100952
  }
101120
- const tnt = /* @__PURE__ */ new Set([
100953
+ const ent = /* @__PURE__ */ new Set([
101121
100954
  "width",
101122
100955
  "height",
101123
100956
  "top",
@@ -101138,10 +100971,10 @@ const tnt = /* @__PURE__ */ new Set([
101138
100971
  const s = r.match(/^matrix\((.+)\)$/u);
101139
100972
  return s ? VO(s[1], t) : 0;
101140
100973
  }
101141
- }, nnt = /* @__PURE__ */ new Set(["x", "y", "z"]), rnt = um.filter((t) => !nnt.has(t));
101142
- function int(t) {
100974
+ }, tnt = /* @__PURE__ */ new Set(["x", "y", "z"]), nnt = um.filter((t) => !tnt.has(t));
100975
+ function rnt(t) {
101143
100976
  const e = [];
101144
- return rnt.forEach((n) => {
100977
+ return nnt.forEach((n) => {
101145
100978
  const r = t.getValue(n);
101146
100979
  r !== void 0 && (e.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0));
101147
100980
  }), e;
@@ -101160,16 +100993,16 @@ const ff = {
101160
100993
  };
101161
100994
  ff.translateX = ff.x;
101162
100995
  ff.translateY = ff.y;
101163
- const PK = (t) => (e) => e.test(t), snt = {
100996
+ const PK = (t) => (e) => e.test(t), int = {
101164
100997
  test: (t) => t === "auto",
101165
100998
  parse: (t) => t
101166
- }, DK = [Ff, at, po, rl, utt, ctt, snt], zO = (t) => DK.find(PK(t)), Uu = /* @__PURE__ */ new Set();
100999
+ }, DK = [Ff, at, po, rl, ctt, ltt, int], zO = (t) => DK.find(PK(t)), Uu = /* @__PURE__ */ new Set();
101167
101000
  let ew = !1, tw = !1;
101168
101001
  function OK() {
101169
101002
  if (tw) {
101170
101003
  const t = Array.from(Uu).filter((r) => r.needsMeasurement), e = new Set(t.map((r) => r.element)), n = /* @__PURE__ */ new Map();
101171
101004
  e.forEach((r) => {
101172
- const i = int(r);
101005
+ const i = rnt(r);
101173
101006
  i.length && (n.set(r, i), r.render());
101174
101007
  }), t.forEach((r) => r.measureInitialState()), e.forEach((r) => {
101175
101008
  r.render();
@@ -101189,7 +101022,7 @@ function NK() {
101189
101022
  t.readKeyframes(), t.needsMeasurement && (tw = !0);
101190
101023
  });
101191
101024
  }
101192
- function ont() {
101025
+ function snt() {
101193
101026
  NK(), OK();
101194
101027
  }
101195
101028
  class DC {
@@ -101233,7 +101066,7 @@ class DC {
101233
101066
  this.isComplete || this.scheduleResolve();
101234
101067
  }
101235
101068
  }
101236
- const OC = (t, e) => (n) => !!(dm(n) && ltt.test(n) && n.startsWith(t) || e && Object.prototype.hasOwnProperty.call(n, e)), LK = (t, e, n) => (r) => {
101069
+ const OC = (t, e) => (n) => !!(dm(n) && att.test(n) && n.startsWith(t) || e && Object.prototype.hasOwnProperty.call(n, e)), LK = (t, e, n) => (r) => {
101237
101070
  if (!dm(r))
101238
101071
  return r;
101239
101072
  const [i, s, o, a] = r.match(AC);
@@ -101243,15 +101076,15 @@ const OC = (t, e) => (n) => !!(dm(n) && ltt.test(n) && n.startsWith(t) || e && O
101243
101076
  [n]: parseFloat(o),
101244
101077
  alpha: a !== void 0 ? parseFloat(a) : 1
101245
101078
  };
101246
- }, ant = (t) => ac(0, 255, t), Hb = {
101079
+ }, ont = (t) => ac(0, 255, t), Hb = {
101247
101080
  ...Ff,
101248
- transform: (t) => Math.round(ant(t))
101081
+ transform: (t) => Math.round(ont(t))
101249
101082
  }, ou = {
101250
101083
  test: OC("rgb", "red"),
101251
101084
  parse: LK("red", "green", "blue"),
101252
101085
  transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" + Hb.transform(t) + ", " + Hb.transform(e) + ", " + Hb.transform(n) + ", " + Z0(G0.transform(r)) + ")"
101253
101086
  };
101254
- function lnt(t) {
101087
+ function ant(t) {
101255
101088
  let e = "", n = "", r = "", i = "";
101256
101089
  return t.length > 5 ? (e = t.substring(1, 3), n = t.substring(3, 5), r = t.substring(5, 7), i = t.substring(7, 9)) : (e = t.substring(1, 2), n = t.substring(2, 3), r = t.substring(3, 4), i = t.substring(4, 5), e += e, n += n, r += r, i += i), {
101257
101090
  red: parseInt(e, 16),
@@ -101262,7 +101095,7 @@ function lnt(t) {
101262
101095
  }
101263
101096
  const nw = {
101264
101097
  test: OC("#"),
101265
- parse: lnt,
101098
+ parse: ant,
101266
101099
  transform: ou.transform
101267
101100
  }, p1 = {
101268
101101
  test: OC("hsl", "hue"),
@@ -101273,11 +101106,11 @@ const nw = {
101273
101106
  parse: (t) => ou.test(t) ? ou.parse(t) : p1.test(t) ? p1.parse(t) : nw.parse(t),
101274
101107
  transform: (t) => dm(t) ? t : t.hasOwnProperty("red") ? ou.transform(t) : p1.transform(t)
101275
101108
  };
101276
- function cnt(t) {
101109
+ function lnt(t) {
101277
101110
  var e, n;
101278
- return isNaN(t) && dm(t) && (((e = t.match(AC)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(att)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
101111
+ return isNaN(t) && dm(t) && (((e = t.match(AC)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(ott)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
101279
101112
  }
101280
- const _K = "number", IK = "color", unt = "var", dnt = "var(", UO = "${}", hnt = /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;
101113
+ const _K = "number", IK = "color", cnt = "var", unt = "var(", UO = "${}", dnt = /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;
101281
101114
  function n2(t) {
101282
101115
  const e = t.toString(), n = [], r = {
101283
101116
  color: [],
@@ -101285,7 +101118,7 @@ function n2(t) {
101285
101118
  var: []
101286
101119
  }, i = [];
101287
101120
  let s = 0;
101288
- const a = e.replace(hnt, (l) => (vr.test(l) ? (r.color.push(s), i.push(IK), n.push(vr.parse(l))) : l.startsWith(dnt) ? (r.var.push(s), i.push(unt), n.push(l)) : (r.number.push(s), i.push(_K), n.push(parseFloat(l))), ++s, UO)).split(UO);
101121
+ const a = e.replace(dnt, (l) => (vr.test(l) ? (r.color.push(s), i.push(IK), n.push(vr.parse(l))) : l.startsWith(unt) ? (r.var.push(s), i.push(cnt), n.push(l)) : (r.number.push(s), i.push(_K), n.push(parseFloat(l))), ++s, UO)).split(UO);
101289
101122
  return { values: n, split: a, indexes: r, types: i };
101290
101123
  }
101291
101124
  function jK(t) {
@@ -101303,18 +101136,18 @@ function FK(t) {
101303
101136
  return s;
101304
101137
  };
101305
101138
  }
101306
- const fnt = (t) => typeof t == "number" ? 0 : t;
101307
- function pnt(t) {
101139
+ const hnt = (t) => typeof t == "number" ? 0 : t;
101140
+ function fnt(t) {
101308
101141
  const e = jK(t);
101309
- return FK(t)(e.map(fnt));
101142
+ return FK(t)(e.map(hnt));
101310
101143
  }
101311
101144
  const lc = {
101312
- test: cnt,
101145
+ test: lnt,
101313
101146
  parse: jK,
101314
101147
  createTransformer: FK,
101315
- getAnimatableNone: pnt
101316
- }, mnt = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
101317
- function ynt(t) {
101148
+ getAnimatableNone: fnt
101149
+ }, pnt = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
101150
+ function mnt(t) {
101318
101151
  const [e, n] = t.slice(0, -1).split("(");
101319
101152
  if (e === "drop-shadow")
101320
101153
  return t;
@@ -101322,16 +101155,16 @@ function ynt(t) {
101322
101155
  if (!r)
101323
101156
  return t;
101324
101157
  const i = n.replace(r, "");
101325
- let s = mnt.has(e) ? 1 : 0;
101158
+ let s = pnt.has(e) ? 1 : 0;
101326
101159
  return r !== n && (s *= 100), e + "(" + s + i + ")";
101327
101160
  }
101328
- const gnt = /\b([a-z-]*)\(.*?\)/gu, rw = {
101161
+ const ynt = /\b([a-z-]*)\(.*?\)/gu, rw = {
101329
101162
  ...lc,
101330
101163
  getAnimatableNone: (t) => {
101331
- const e = t.match(gnt);
101332
- return e ? e.map(ynt).join(" ") : t;
101164
+ const e = t.match(ynt);
101165
+ return e ? e.map(mnt).join(" ") : t;
101333
101166
  }
101334
- }, knt = {
101167
+ }, gnt = {
101335
101168
  ...dK,
101336
101169
  // Color props
101337
101170
  color: vr,
@@ -101347,17 +101180,17 @@ const gnt = /\b([a-z-]*)\(.*?\)/gu, rw = {
101347
101180
  borderLeftColor: vr,
101348
101181
  filter: rw,
101349
101182
  WebkitFilter: rw
101350
- }, NC = (t) => knt[t];
101183
+ }, NC = (t) => gnt[t];
101351
101184
  function BK(t, e) {
101352
101185
  let n = NC(t);
101353
101186
  return n !== rw && (n = lc), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
101354
101187
  }
101355
- const vnt = /* @__PURE__ */ new Set(["auto", "none", "0"]);
101356
- function bnt(t, e, n) {
101188
+ const knt = /* @__PURE__ */ new Set(["auto", "none", "0"]);
101189
+ function vnt(t, e, n) {
101357
101190
  let r = 0, i;
101358
101191
  for (; r < t.length && !i; ) {
101359
101192
  const s = t[r];
101360
- typeof s == "string" && !vnt.has(s) && n2(s).values.length && (i = t[r]), r++;
101193
+ typeof s == "string" && !knt.has(s) && n2(s).values.length && (i = t[r]), r++;
101361
101194
  }
101362
101195
  if (i && n)
101363
101196
  for (const s of e)
@@ -101379,7 +101212,7 @@ class VK extends DC {
101379
101212
  u !== void 0 && (e[l] = u), l === e.length - 1 && (this.finalKeyframe = c);
101380
101213
  }
101381
101214
  }
101382
- if (this.resolveNoneKeyframes(), !tnt.has(r) || e.length !== 2)
101215
+ if (this.resolveNoneKeyframes(), !ent.has(r) || e.length !== 2)
101383
101216
  return;
101384
101217
  const [i, s] = e, o = zO(i), a = zO(s);
101385
101218
  if (o !== a)
@@ -101394,8 +101227,8 @@ class VK extends DC {
101394
101227
  resolveNoneKeyframes() {
101395
101228
  const { unresolvedKeyframes: e, name: n } = this, r = [];
101396
101229
  for (let i = 0; i < e.length; i++)
101397
- Xtt(e[i]) && r.push(i);
101398
- r.length && bnt(e, r, n);
101230
+ Qtt(e[i]) && r.push(i);
101231
+ r.length && vnt(e, r, n);
101399
101232
  }
101400
101233
  measureInitialState() {
101401
101234
  const { element: e, unresolvedKeyframes: n, name: r } = this;
@@ -101425,7 +101258,7 @@ function HK(t) {
101425
101258
  const qO = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
101426
101259
  (lc.test(t) || t === "0") && // And it contains numbers and/or colors
101427
101260
  !t.startsWith("url("));
101428
- function xnt(t) {
101261
+ function bnt(t) {
101429
101262
  const e = t[0];
101430
101263
  if (t.length === 1)
101431
101264
  return !0;
@@ -101433,14 +101266,14 @@ function xnt(t) {
101433
101266
  if (t[n] !== e)
101434
101267
  return !0;
101435
101268
  }
101436
- function wnt(t, e, n, r) {
101269
+ function xnt(t, e, n, r) {
101437
101270
  const i = t[0];
101438
101271
  if (i === null)
101439
101272
  return !1;
101440
101273
  if (e === "display" || e === "visibility")
101441
101274
  return !0;
101442
101275
  const s = t[t.length - 1], o = qO(i, e), a = qO(s, e);
101443
- return jf(o === a, `You are trying to animate ${e} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`), !o || !a ? !1 : xnt(t) || n === "spring" && r;
101276
+ return jf(o === a, `You are trying to animate ${e} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`), !o || !a ? !1 : bnt(t) || n === "spring" && r;
101444
101277
  }
101445
101278
  class zK {
101446
101279
  constructor({ autoplay: e = !0, delay: n = 0, type: r = "keyframes", repeat: i = 0, repeatDelay: s = 0, repeatType: o = "loop", ...a }) {
@@ -101460,7 +101293,7 @@ class zK {
101460
101293
  * This is a deoptimisation, but at its worst still batches read/writes.
101461
101294
  */
101462
101295
  get resolved() {
101463
- return !this._resolved && !this.hasAttemptedResolve && ont(), this._resolved;
101296
+ return !this._resolved && !this.hasAttemptedResolve && snt(), this._resolved;
101464
101297
  }
101465
101298
  /**
101466
101299
  * A method to be called when the keyframes resolver completes. This method
@@ -101470,7 +101303,7 @@ class zK {
101470
101303
  onKeyframesResolved(e, n) {
101471
101304
  this.hasAttemptedResolve = !0;
101472
101305
  const { name: r, type: i, velocity: s, delay: o, onComplete: a, onUpdate: l, isGenerator: c } = this.options;
101473
- if (!c && !wnt(e, r, i, s))
101306
+ if (!c && !xnt(e, r, i, s))
101474
101307
  if (o)
101475
101308
  this.options.duration = 0;
101476
101309
  else {
@@ -101503,17 +101336,17 @@ class zK {
101503
101336
  function UK(t, e) {
101504
101337
  return e ? t * (1e3 / e) : 0;
101505
101338
  }
101506
- const Ant = 5;
101339
+ const wnt = 5;
101507
101340
  function qK(t, e, n) {
101508
- const r = Math.max(e - Ant, 0);
101341
+ const r = Math.max(e - wnt, 0);
101509
101342
  return UK(n - t(r), e - r);
101510
101343
  }
101511
- const zb = 1e-3, Cnt = 0.01, WO = 10, Mnt = 0.05, Ent = 1;
101512
- function Snt({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: r = 1 }) {
101344
+ const zb = 1e-3, Ant = 0.01, WO = 10, Cnt = 0.05, Mnt = 1;
101345
+ function Ent({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: r = 1 }) {
101513
101346
  let i, s;
101514
101347
  jf(t <= Aa(WO), "Spring duration must be 10 seconds or less");
101515
101348
  let o = 1 - e;
101516
- o = ac(Mnt, Ent, o), t = ac(Cnt, WO, Ca(t)), o < 1 ? (i = (c) => {
101349
+ o = ac(Cnt, Mnt, o), t = ac(Ant, WO, Ca(t)), o < 1 ? (i = (c) => {
101517
101350
  const u = c * o, d = u * t, h = u - n, f = iw(c, o), p = Math.exp(-d);
101518
101351
  return zb - h / f * p;
101519
101352
  }, s = (c) => {
@@ -101526,7 +101359,7 @@ function Snt({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: r = 1
101526
101359
  const u = Math.exp(-c * t), d = (n - c) * (t * t);
101527
101360
  return u * d;
101528
101361
  });
101529
- const a = 5 / t, l = Rnt(i, s, a);
101362
+ const a = 5 / t, l = Tnt(i, s, a);
101530
101363
  if (t = Aa(t), isNaN(l))
101531
101364
  return {
101532
101365
  stiffness: 100,
@@ -101542,21 +101375,21 @@ function Snt({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: r = 1
101542
101375
  };
101543
101376
  }
101544
101377
  }
101545
- const Tnt = 12;
101546
- function Rnt(t, e, n) {
101378
+ const Snt = 12;
101379
+ function Tnt(t, e, n) {
101547
101380
  let r = n;
101548
- for (let i = 1; i < Tnt; i++)
101381
+ for (let i = 1; i < Snt; i++)
101549
101382
  r = r - t(r) / e(r);
101550
101383
  return r;
101551
101384
  }
101552
101385
  function iw(t, e) {
101553
101386
  return t * Math.sqrt(1 - e * e);
101554
101387
  }
101555
- const Pnt = ["duration", "bounce"], Dnt = ["stiffness", "damping", "mass"];
101388
+ const Rnt = ["duration", "bounce"], Pnt = ["stiffness", "damping", "mass"];
101556
101389
  function GO(t, e) {
101557
101390
  return e.some((n) => t[n] !== void 0);
101558
101391
  }
101559
- function Ont(t) {
101392
+ function Dnt(t) {
101560
101393
  let e = {
101561
101394
  velocity: 0,
101562
101395
  stiffness: 100,
@@ -101565,8 +101398,8 @@ function Ont(t) {
101565
101398
  isResolvedFromDuration: !1,
101566
101399
  ...t
101567
101400
  };
101568
- if (!GO(t, Dnt) && GO(t, Pnt)) {
101569
- const n = Snt(t);
101401
+ if (!GO(t, Pnt) && GO(t, Rnt)) {
101402
+ const n = Ent(t);
101570
101403
  e = {
101571
101404
  ...e,
101572
101405
  ...n,
@@ -101576,7 +101409,7 @@ function Ont(t) {
101576
101409
  return e;
101577
101410
  }
101578
101411
  function WK({ keyframes: t, restDelta: e, restSpeed: n, ...r }) {
101579
- const i = t[0], s = t[t.length - 1], o = { done: !1, value: i }, { stiffness: a, damping: l, mass: c, duration: u, velocity: d, isResolvedFromDuration: h } = Ont({
101412
+ const i = t[0], s = t[t.length - 1], o = { done: !1, value: i }, { stiffness: a, damping: l, mass: c, duration: u, velocity: d, isResolvedFromDuration: h } = Dnt({
101580
101413
  ...r,
101581
101414
  velocity: -Ca(r.velocity || 0)
101582
101415
  }), f = d || 0, p = l / (2 * Math.sqrt(a * c)), m = s - i, g = Ca(Math.sqrt(a / c)), k = Math.abs(m) < 5;
@@ -101645,32 +101478,32 @@ function ZO({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: r = 3
101645
101478
  }
101646
101479
  };
101647
101480
  }
101648
- const GK = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Nnt = 1e-7, Lnt = 12;
101649
- function _nt(t, e, n, r, i) {
101481
+ const GK = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Ont = 1e-7, Nnt = 12;
101482
+ function Lnt(t, e, n, r, i) {
101650
101483
  let s, o, a = 0;
101651
101484
  do
101652
101485
  o = e + (n - e) / 2, s = GK(o, r, i) - t, s > 0 ? n = o : e = o;
101653
- while (Math.abs(s) > Nnt && ++a < Lnt);
101486
+ while (Math.abs(s) > Ont && ++a < Nnt);
101654
101487
  return o;
101655
101488
  }
101656
101489
  function fm(t, e, n, r) {
101657
101490
  if (t === e && n === r)
101658
101491
  return dr;
101659
- const i = (s) => _nt(s, 0, 1, t, n);
101492
+ const i = (s) => Lnt(s, 0, 1, t, n);
101660
101493
  return (s) => s === 0 || s === 1 ? s : GK(i(s), e, r);
101661
101494
  }
101662
- const Int = fm(0.42, 0, 1, 1), jnt = fm(0, 0, 0.58, 1), ZK = fm(0.42, 0, 0.58, 1), Fnt = (t) => Array.isArray(t) && typeof t[0] != "number", KK = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, $K = (t) => (e) => 1 - t(1 - e), LC = (t) => 1 - Math.sin(Math.acos(t)), QK = $K(LC), Bnt = KK(LC), XK = fm(0.33, 1.53, 0.69, 0.99), _C = $K(XK), Vnt = KK(_C), Hnt = (t) => (t *= 2) < 1 ? 0.5 * _C(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), KO = {
101495
+ const _nt = fm(0.42, 0, 1, 1), Int = fm(0, 0, 0.58, 1), ZK = fm(0.42, 0, 0.58, 1), jnt = (t) => Array.isArray(t) && typeof t[0] != "number", KK = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, $K = (t) => (e) => 1 - t(1 - e), LC = (t) => 1 - Math.sin(Math.acos(t)), QK = $K(LC), Fnt = KK(LC), XK = fm(0.33, 1.53, 0.69, 0.99), _C = $K(XK), Bnt = KK(_C), Vnt = (t) => (t *= 2) < 1 ? 0.5 * _C(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), KO = {
101663
101496
  linear: dr,
101664
- easeIn: Int,
101497
+ easeIn: _nt,
101665
101498
  easeInOut: ZK,
101666
- easeOut: jnt,
101499
+ easeOut: Int,
101667
101500
  circIn: LC,
101668
- circInOut: Bnt,
101501
+ circInOut: Fnt,
101669
101502
  circOut: QK,
101670
101503
  backIn: _C,
101671
- backInOut: Vnt,
101504
+ backInOut: Bnt,
101672
101505
  backOut: XK,
101673
- anticipate: Hnt
101506
+ anticipate: Vnt
101674
101507
  }, $O = (t) => {
101675
101508
  if (Array.isArray(t)) {
101676
101509
  Ia(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
@@ -101686,7 +101519,7 @@ const Int = fm(0.42, 0, 1, 1), jnt = fm(0, 0, 0.58, 1), ZK = fm(0.42, 0, 0.58, 1
101686
101519
  function Ub(t, e, n) {
101687
101520
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
101688
101521
  }
101689
- function znt({ hue: t, saturation: e, lightness: n, alpha: r }) {
101522
+ function Hnt({ hue: t, saturation: e, lightness: n, alpha: r }) {
101690
101523
  t /= 360, e /= 100, n /= 100;
101691
101524
  let i = 0, s = 0, o = 0;
101692
101525
  if (!e)
@@ -101708,13 +101541,13 @@ function h3(t, e) {
101708
101541
  const qb = (t, e, n) => {
101709
101542
  const r = t * t, i = n * (e * e - r) + r;
101710
101543
  return i < 0 ? 0 : Math.sqrt(i);
101711
- }, Unt = [nw, ou, p1], qnt = (t) => Unt.find((e) => e.test(t));
101544
+ }, znt = [nw, ou, p1], Unt = (t) => znt.find((e) => e.test(t));
101712
101545
  function QO(t) {
101713
- const e = qnt(t);
101546
+ const e = Unt(t);
101714
101547
  if (jf(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
101715
101548
  return !1;
101716
101549
  let n = e.parse(t);
101717
- return e === p1 && (n = znt(n)), n;
101550
+ return e === p1 && (n = Hnt(n)), n;
101718
101551
  }
101719
101552
  const XO = (t, e) => {
101720
101553
  const n = QO(t), r = QO(e);
@@ -101723,14 +101556,14 @@ const XO = (t, e) => {
101723
101556
  const i = { ...n };
101724
101557
  return (s) => (i.red = qb(n.red, r.red, s), i.green = qb(n.green, r.green, s), i.blue = qb(n.blue, r.blue, s), i.alpha = dn(n.alpha, r.alpha, s), ou.transform(i));
101725
101558
  }, sw = /* @__PURE__ */ new Set(["none", "hidden"]);
101726
- function Wnt(t, e) {
101559
+ function qnt(t, e) {
101727
101560
  return sw.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
101728
101561
  }
101729
- function Gnt(t, e) {
101562
+ function Wnt(t, e) {
101730
101563
  return (n) => dn(t, e, n);
101731
101564
  }
101732
101565
  function IC(t) {
101733
- return typeof t == "number" ? Gnt : typeof t == "string" ? wC(t) ? h3 : vr.test(t) ? XO : $nt : Array.isArray(t) ? JK : typeof t == "object" ? vr.test(t) ? XO : Znt : h3;
101566
+ return typeof t == "number" ? Wnt : typeof t == "string" ? wC(t) ? h3 : vr.test(t) ? XO : Knt : Array.isArray(t) ? JK : typeof t == "object" ? vr.test(t) ? XO : Gnt : h3;
101734
101567
  }
101735
101568
  function JK(t, e) {
101736
101569
  const n = [...t], r = n.length, i = t.map((s, o) => IC(s)(s, e[o]));
@@ -101740,7 +101573,7 @@ function JK(t, e) {
101740
101573
  return n;
101741
101574
  };
101742
101575
  }
101743
- function Znt(t, e) {
101576
+ function Gnt(t, e) {
101744
101577
  const n = { ...t, ...e }, r = {};
101745
101578
  for (const i in n)
101746
101579
  t[i] !== void 0 && e[i] !== void 0 && (r[i] = IC(t[i])(t[i], e[i]));
@@ -101750,7 +101583,7 @@ function Znt(t, e) {
101750
101583
  return n;
101751
101584
  };
101752
101585
  }
101753
- function Knt(t, e) {
101586
+ function Znt(t, e) {
101754
101587
  var n;
101755
101588
  const r = [], i = { color: 0, var: 0, number: 0 };
101756
101589
  for (let s = 0; s < e.values.length; s++) {
@@ -101759,14 +101592,14 @@ function Knt(t, e) {
101759
101592
  }
101760
101593
  return r;
101761
101594
  }
101762
- const $nt = (t, e) => {
101595
+ const Knt = (t, e) => {
101763
101596
  const n = lc.createTransformer(e), r = n2(t), i = n2(e);
101764
- 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 ? sw.has(t) && !i.values.length || sw.has(e) && !r.values.length ? Wnt(t, e) : wa(JK(Knt(r, i), i.values), n) : (jf(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), h3(t, e));
101597
+ 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 ? sw.has(t) && !i.values.length || sw.has(e) && !r.values.length ? qnt(t, e) : wa(JK(Znt(r, i), i.values), n) : (jf(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), h3(t, e));
101765
101598
  };
101766
101599
  function YK(t, e, n) {
101767
101600
  return typeof t == "number" && typeof e == "number" && typeof n == "number" ? dn(t, e, n) : IC(t)(t, e);
101768
101601
  }
101769
- function Qnt(t, e, n) {
101602
+ function $nt(t, e, n) {
101770
101603
  const r = [], i = n || YK, s = t.length - 1;
101771
101604
  for (let o = 0; o < s; o++) {
101772
101605
  let a = i(t[o], t[o + 1]);
@@ -101778,14 +101611,14 @@ function Qnt(t, e, n) {
101778
101611
  }
101779
101612
  return r;
101780
101613
  }
101781
- function Xnt(t, e, { clamp: n = !0, ease: r, mixer: i } = {}) {
101614
+ function Qnt(t, e, { clamp: n = !0, ease: r, mixer: i } = {}) {
101782
101615
  const s = t.length;
101783
101616
  if (Ia(s === e.length, "Both input and output ranges must be the same length"), s === 1)
101784
101617
  return () => e[0];
101785
101618
  if (s === 2 && t[0] === t[1])
101786
101619
  return () => e[1];
101787
101620
  t[0] > t[s - 1] && (t = [...t].reverse(), e = [...e].reverse());
101788
- const o = Qnt(e, r, i), a = o.length, l = (c) => {
101621
+ const o = $nt(e, r, i), a = o.length, l = (c) => {
101789
101622
  let u = 0;
101790
101623
  if (a > 1)
101791
101624
  for (; u < t.length - 2 && !(c < t[u + 1]); u++)
@@ -101795,34 +101628,34 @@ function Xnt(t, e, { clamp: n = !0, ease: r, mixer: i } = {}) {
101795
101628
  };
101796
101629
  return n ? (c) => l(ac(t[0], t[s - 1], c)) : l;
101797
101630
  }
101798
- function Jnt(t, e) {
101631
+ function Xnt(t, e) {
101799
101632
  const n = t[t.length - 1];
101800
101633
  for (let r = 1; r <= e; r++) {
101801
101634
  const i = r2(0, e, r);
101802
101635
  t.push(dn(n, 1, i));
101803
101636
  }
101804
101637
  }
101805
- function Ynt(t) {
101638
+ function Jnt(t) {
101806
101639
  const e = [0];
101807
- return Jnt(e, t.length - 1), e;
101640
+ return Xnt(e, t.length - 1), e;
101808
101641
  }
101809
- function ert(t, e) {
101642
+ function Ynt(t, e) {
101810
101643
  return t.map((n) => n * e);
101811
101644
  }
101812
- function trt(t, e) {
101645
+ function ert(t, e) {
101813
101646
  return t.map(() => e || ZK).splice(0, t.length - 1);
101814
101647
  }
101815
101648
  function f3({ duration: t = 300, keyframes: e, times: n, ease: r = "easeInOut" }) {
101816
- const i = Fnt(r) ? r.map($O) : $O(r), s = {
101649
+ const i = jnt(r) ? r.map($O) : $O(r), s = {
101817
101650
  done: !1,
101818
101651
  value: e[0]
101819
- }, o = ert(
101652
+ }, o = Ynt(
101820
101653
  // Only use the provided offsets if they're the correct length
101821
101654
  // TODO Maybe we should warn here if there's a length mismatch
101822
- n && n.length === e.length ? n : Ynt(e),
101655
+ n && n.length === e.length ? n : Jnt(e),
101823
101656
  t
101824
- ), a = Xnt(o, e, {
101825
- ease: Array.isArray(i) ? i : trt(e, i)
101657
+ ), a = Qnt(o, e, {
101658
+ ease: Array.isArray(i) ? i : ert(e, i)
101826
101659
  });
101827
101660
  return {
101828
101661
  calculatedDuration: t,
@@ -101830,7 +101663,7 @@ function f3({ duration: t = 300, keyframes: e, times: n, ease: r = "easeInOut" }
101830
101663
  };
101831
101664
  }
101832
101665
  const JO = 2e4;
101833
- function nrt(t) {
101666
+ function trt(t) {
101834
101667
  let e = 0;
101835
101668
  const n = 50;
101836
101669
  let r = t.next(e);
@@ -101838,7 +101671,7 @@ function nrt(t) {
101838
101671
  e += n, r = t.next(e);
101839
101672
  return e >= JO ? 1 / 0 : e;
101840
101673
  }
101841
- const rrt = (t) => {
101674
+ const nrt = (t) => {
101842
101675
  const e = ({ timestamp: n }) => t(n);
101843
101676
  return {
101844
101677
  start: () => zt.update(e, !0),
@@ -101849,13 +101682,13 @@ const rrt = (t) => {
101849
101682
  */
101850
101683
  now: () => nr.isProcessing ? nr.timestamp : Zl.now()
101851
101684
  };
101852
- }, irt = {
101685
+ }, rrt = {
101853
101686
  decay: ZO,
101854
101687
  inertia: ZO,
101855
101688
  tween: f3,
101856
101689
  keyframes: f3,
101857
101690
  spring: WK
101858
- }, srt = (t) => t / 100;
101691
+ }, irt = (t) => t / 100;
101859
101692
  class jC extends zK {
101860
101693
  constructor({ KeyframeResolver: e = DC, ...n }) {
101861
101694
  super(n), this.holdTime = null, this.startTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.state = "idle", this.stop = () => {
@@ -101869,15 +101702,15 @@ class jC extends zK {
101869
101702
  r && i && i.owner ? this.resolver = i.owner.resolveKeyframes(s, o, r, i) : this.resolver = new e(s, o, r, i), this.resolver.scheduleResolve();
101870
101703
  }
101871
101704
  initPlayback(e) {
101872
- const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: o = 0 } = this.options, a = irt[n] || f3;
101705
+ const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: o = 0 } = this.options, a = rrt[n] || f3;
101873
101706
  let l, c;
101874
- a !== f3 && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && Ia(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = wa(srt, YK(e[0], e[1])), e = [0, 100]);
101707
+ a !== f3 && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && Ia(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = wa(irt, YK(e[0], e[1])), e = [0, 100]);
101875
101708
  const u = a({ ...this.options, keyframes: e });
101876
101709
  s === "mirror" && (c = a({
101877
101710
  ...this.options,
101878
101711
  keyframes: [...e].reverse(),
101879
101712
  velocity: -o
101880
- })), u.calculatedDuration === null && (u.calculatedDuration = nrt(u));
101713
+ })), u.calculatedDuration === null && (u.calculatedDuration = trt(u));
101881
101714
  const { calculatedDuration: d } = u, h = d + i, f = h * (r + 1) - i;
101882
101715
  return {
101883
101716
  generator: u,
@@ -101942,7 +101775,7 @@ class jC extends zK {
101942
101775
  }
101943
101776
  if (this.isStopped)
101944
101777
  return;
101945
- const { driver: e = rrt, onPlay: n } = this.options;
101778
+ const { driver: e = nrt, onPlay: n } = this.options;
101946
101779
  this.driver || (this.driver = e((i) => this.tick(i))), n && n();
101947
101780
  const r = this.driver.now();
101948
101781
  this.holdTime !== null ? this.startTime = r - this.holdTime : (!this.startTime || this.state === "finished") && (this.startTime = r), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
@@ -101991,14 +101824,14 @@ const b0 = ([t, e, n, r]) => `cubic-bezier(${t}, ${e}, ${n}, ${r})`, FC = {
101991
101824
  backIn: b0([0.31, 0.01, 0.66, -0.59]),
101992
101825
  backOut: b0([0.33, 1.53, 0.69, 0.99])
101993
101826
  };
101994
- function ort(t) {
101827
+ function srt(t) {
101995
101828
  return n$(t) || FC.easeOut;
101996
101829
  }
101997
101830
  function n$(t) {
101998
101831
  if (t)
101999
- return e$(t) ? b0(t) : Array.isArray(t) ? t.map(ort) : FC[t];
101832
+ return e$(t) ? b0(t) : Array.isArray(t) ? t.map(srt) : FC[t];
102000
101833
  }
102001
- function art(t, e, n, { delay: r = 0, duration: i = 300, repeat: s = 0, repeatType: o = "loop", ease: a, times: l } = {}) {
101834
+ function ort(t, e, n, { delay: r = 0, duration: i = 300, repeat: s = 0, repeatType: o = "loop", ease: a, times: l } = {}) {
102002
101835
  const c = { [e]: n };
102003
101836
  l && (c.offset = l);
102004
101837
  const u = n$(a);
@@ -102011,7 +101844,7 @@ function art(t, e, n, { delay: r = 0, duration: i = 300, repeat: s = 0, repeatTy
102011
101844
  direction: o === "reverse" ? "alternate" : "normal"
102012
101845
  });
102013
101846
  }
102014
- const lrt = HK(() => Object.hasOwnProperty.call(Element.prototype, "animate")), crt = /* @__PURE__ */ new Set([
101847
+ const art = HK(() => Object.hasOwnProperty.call(Element.prototype, "animate")), lrt = /* @__PURE__ */ new Set([
102015
101848
  "opacity",
102016
101849
  "clipPath",
102017
101850
  "filter",
@@ -102019,11 +101852,11 @@ const lrt = HK(() => Object.hasOwnProperty.call(Element.prototype, "animate")),
102019
101852
  // TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
102020
101853
  // or until we implement support for linear() easing.
102021
101854
  // "background-color"
102022
- ]), p3 = 10, urt = 2e4;
102023
- function drt(t) {
101855
+ ]), p3 = 10, crt = 2e4;
101856
+ function urt(t) {
102024
101857
  return t.type === "spring" || t.name === "backgroundColor" || !t$(t.ease);
102025
101858
  }
102026
- function hrt(t, e) {
101859
+ function drt(t, e) {
102027
101860
  const n = new jC({
102028
101861
  ...e,
102029
101862
  keyframes: t,
@@ -102034,7 +101867,7 @@ function hrt(t, e) {
102034
101867
  let r = { done: !1, value: t[0] };
102035
101868
  const i = [];
102036
101869
  let s = 0;
102037
- for (; !r.done && s < urt; )
101870
+ for (; !r.done && s < crt; )
102038
101871
  r = n.sample(s), i.push(r.value), s += p3;
102039
101872
  return {
102040
101873
  times: void 0,
@@ -102054,11 +101887,11 @@ class YO extends zK {
102054
101887
  let { duration: i = 300, times: s, ease: o, type: a, motionValue: l, name: c } = this.options;
102055
101888
  if (!(!((r = l.owner) === null || r === void 0) && r.current))
102056
101889
  return !1;
102057
- if (drt(this.options)) {
102058
- const { onComplete: d, onUpdate: h, motionValue: f, ...p } = this.options, m = hrt(e, p);
101890
+ if (urt(this.options)) {
101891
+ const { onComplete: d, onUpdate: h, motionValue: f, ...p } = this.options, m = drt(e, p);
102059
101892
  e = m.keyframes, e.length === 1 && (e[1] = e[0]), i = m.duration, s = m.times, o = m.ease, a = "keyframes";
102060
101893
  }
102061
- const u = art(l.owner.current, c, e, { ...this.options, duration: i, times: s, ease: o });
101894
+ const u = ort(l.owner.current, c, e, { ...this.options, duration: i, times: s, ease: o });
102062
101895
  return u.startTime = Zl.now(), this.pendingTimeline ? (u.timeline = this.pendingTimeline, this.pendingTimeline = void 0) : u.onfinish = () => {
102063
101896
  const { onComplete: d } = this.options;
102064
101897
  l.set(f5(e, this.options, n)), d && d(), this.cancel(), this.resolveFinishedPromise();
@@ -102178,14 +102011,14 @@ class YO extends zK {
102178
102011
  }
102179
102012
  static supports(e) {
102180
102013
  const { motionValue: n, name: r, repeatDelay: i, repeatType: s, damping: o, type: a } = e;
102181
- return lrt() && r && crt.has(r) && n && n.owner && n.owner.current instanceof HTMLElement && /**
102014
+ return art() && r && lrt.has(r) && n && n.owner && n.owner.current instanceof HTMLElement && /**
102182
102015
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
102183
102016
  * no way to read the value from WAAPI every frame.
102184
102017
  */
102185
102018
  !n.owner.getProps().onUpdate && !i && s !== "mirror" && o !== 0 && a !== "inertia";
102186
102019
  }
102187
102020
  }
102188
- function frt(t, e) {
102021
+ function hrt(t, e) {
102189
102022
  let n;
102190
102023
  const r = () => {
102191
102024
  const { currentTime: i } = e, o = (i === null ? 0 : i.value) / 100;
@@ -102193,8 +102026,8 @@ function frt(t, e) {
102193
102026
  };
102194
102027
  return zt.update(r, !0), () => ja(r);
102195
102028
  }
102196
- const prt = HK(() => window.ScrollTimeline !== void 0);
102197
- class mrt {
102029
+ const frt = HK(() => window.ScrollTimeline !== void 0);
102030
+ class prt {
102198
102031
  constructor(e) {
102199
102032
  this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
102200
102033
  }
@@ -102213,10 +102046,10 @@ class mrt {
102213
102046
  }
102214
102047
  attachTimeline(e) {
102215
102048
  const n = this.animations.map((r) => {
102216
- if (prt() && r.attachTimeline)
102049
+ if (frt() && r.attachTimeline)
102217
102050
  r.attachTimeline(e);
102218
102051
  else
102219
- return r.pause(), frt((i) => {
102052
+ return r.pause(), hrt((i) => {
102220
102053
  r.time = r.duration * i;
102221
102054
  }, e);
102222
102055
  });
@@ -102280,9 +102113,9 @@ const BC = (t, e, n, r = {}, i, s) => (o) => {
102280
102113
  motionValue: e,
102281
102114
  element: s ? void 0 : i
102282
102115
  };
102283
- Ktt(a) || (u = {
102116
+ Ztt(a) || (u = {
102284
102117
  ...u,
102285
- ...Ztt(t, u)
102118
+ ...Gtt(t, u)
102286
102119
  }), u.duration && (u.duration = Aa(u.duration)), u.repeatDelay && (u.repeatDelay = Aa(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
102287
102120
  let d = !1;
102288
102121
  if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (d = !0)), d && !s && e.get() !== void 0) {
@@ -102290,7 +102123,7 @@ const BC = (t, e, n, r = {}, i, s) => (o) => {
102290
102123
  if (h !== void 0)
102291
102124
  return zt.update(() => {
102292
102125
  u.onUpdate(h), u.onComplete();
102293
- }), new mrt([]);
102126
+ }), new prt([]);
102294
102127
  }
102295
102128
  return !s && YO.supports(u) ? new YO(u) : new jC(u);
102296
102129
  };
@@ -102333,8 +102166,8 @@ const eN = /* @__PURE__ */ new Set();
102333
102166
  function UC(t, e, n) {
102334
102167
  t || eN.has(e) || (console.warn(e), eN.add(e));
102335
102168
  }
102336
- const tN = 30, yrt = (t) => !isNaN(parseFloat(t));
102337
- class grt {
102169
+ const tN = 30, mrt = (t) => !isNaN(parseFloat(t));
102170
+ class yrt {
102338
102171
  /**
102339
102172
  * @param init - The initiating value
102340
102173
  * @param config - Optional configuration options
@@ -102350,7 +102183,7 @@ class grt {
102350
102183
  }, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
102351
102184
  }
102352
102185
  setCurrent(e) {
102353
- this.current = e, this.updatedAt = Zl.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = yrt(this.current));
102186
+ this.current = e, this.updatedAt = Zl.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = mrt(this.current));
102354
102187
  }
102355
102188
  setPrevFrameValue(e = this.current) {
102356
102189
  this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -102529,24 +102362,24 @@ class grt {
102529
102362
  }
102530
102363
  }
102531
102364
  function i2(t, e) {
102532
- return new grt(t, e);
102365
+ return new yrt(t, e);
102533
102366
  }
102534
- function krt(t, e, n) {
102367
+ function grt(t, e, n) {
102535
102368
  t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, i2(n));
102536
102369
  }
102537
- function vrt(t, e) {
102370
+ function krt(t, e) {
102538
102371
  const n = h5(t, e);
102539
102372
  let { transitionEnd: r = {}, transition: i = {}, ...s } = n || {};
102540
102373
  s = { ...s, ...r };
102541
102374
  for (const o in s) {
102542
- const a = Ctt(s[o]);
102543
- krt(t, o, a);
102375
+ const a = Att(s[o]);
102376
+ grt(t, o, a);
102544
102377
  }
102545
102378
  }
102546
102379
  function r$(t) {
102547
102380
  return t.getProps()[rK];
102548
102381
  }
102549
- function brt({ protectedKeys: t, needsAnimating: e }, n) {
102382
+ function vrt({ protectedKeys: t, needsAnimating: e }, n) {
102550
102383
  const r = t.hasOwnProperty(n) && e[n] !== !0;
102551
102384
  return e[n] = !1, r;
102552
102385
  }
@@ -102558,7 +102391,7 @@ function i$(t, e, { delay: n = 0, transitionOverride: r, type: i } = {}) {
102558
102391
  const u = [], d = i && t.animationState && t.animationState.getState()[i];
102559
102392
  for (const h in l) {
102560
102393
  const f = t.getValue(h, (s = t.latestValues[h]) !== null && s !== void 0 ? s : null), p = l[h];
102561
- if (p === void 0 || d && brt(d, h))
102394
+ if (p === void 0 || d && vrt(d, h))
102562
102395
  continue;
102563
102396
  const m = {
102564
102397
  delay: n,
@@ -102579,7 +102412,7 @@ function i$(t, e, { delay: n = 0, transitionOverride: r, type: i } = {}) {
102579
102412
  }
102580
102413
  return a && Promise.all(u).then(() => {
102581
102414
  zt.update(() => {
102582
- a && vrt(t, a);
102415
+ a && krt(t, a);
102583
102416
  });
102584
102417
  }), u;
102585
102418
  }
@@ -102590,7 +102423,7 @@ function ow(t, e, n = {}) {
102590
102423
  n.transitionOverride && (s = n.transitionOverride);
102591
102424
  const o = i ? () => Promise.all(i$(t, i, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
102592
102425
  const { delayChildren: u = 0, staggerChildren: d, staggerDirection: h } = s;
102593
- return xrt(t, e, u + c, d, h, n);
102426
+ return brt(t, e, u + c, d, h, n);
102594
102427
  } : () => Promise.resolve(), { when: l } = s;
102595
102428
  if (l) {
102596
102429
  const [c, u] = l === "beforeChildren" ? [o, a] : [a, o];
@@ -102598,19 +102431,19 @@ function ow(t, e, n = {}) {
102598
102431
  } else
102599
102432
  return Promise.all([o(), a(n.delay)]);
102600
102433
  }
102601
- function xrt(t, e, n = 0, r = 0, i = 1, s) {
102434
+ function brt(t, e, n = 0, r = 0, i = 1, s) {
102602
102435
  const o = [], a = (t.variantChildren.size - 1) * r, l = i === 1 ? (c = 0) => c * r : (c = 0) => a - c * r;
102603
- return Array.from(t.variantChildren).sort(wrt).forEach((c, u) => {
102436
+ return Array.from(t.variantChildren).sort(xrt).forEach((c, u) => {
102604
102437
  c.notify("AnimationStart", e), o.push(ow(c, e, {
102605
102438
  ...s,
102606
102439
  delay: n + l(u)
102607
102440
  }).then(() => c.notify("AnimationComplete", e)));
102608
102441
  }), Promise.all(o);
102609
102442
  }
102610
- function wrt(t, e) {
102443
+ function xrt(t, e) {
102611
102444
  return t.sortNodePosition(e);
102612
102445
  }
102613
- function Art(t, e, n = {}) {
102446
+ function wrt(t, e, n = {}) {
102614
102447
  t.notify("AnimationStart", e);
102615
102448
  let r;
102616
102449
  if (Array.isArray(e)) {
@@ -102628,12 +102461,12 @@ function Art(t, e, n = {}) {
102628
102461
  });
102629
102462
  });
102630
102463
  }
102631
- const Crt = [...kC].reverse(), Mrt = kC.length;
102632
- function Ert(t) {
102633
- return (e) => Promise.all(e.map(({ animation: n, options: r }) => Art(t, n, r)));
102464
+ const Art = [...kC].reverse(), Crt = kC.length;
102465
+ function Mrt(t) {
102466
+ return (e) => Promise.all(e.map(({ animation: n, options: r }) => wrt(t, n, r)));
102634
102467
  }
102635
- function Srt(t) {
102636
- let e = Ert(t), n = nN(), r = !0;
102468
+ function Ert(t) {
102469
+ let e = Mrt(t), n = nN(), r = !0;
102637
102470
  const i = (l) => (c, u) => {
102638
102471
  var d;
102639
102472
  const h = h5(t, u, l === "exit" ? (d = t.presenceContext) === null || d === void 0 ? void 0 : d.custom : void 0);
@@ -102649,8 +102482,8 @@ function Srt(t) {
102649
102482
  function o(l) {
102650
102483
  const c = t.getProps(), u = t.getVariantContext(!0) || {}, d = [], h = /* @__PURE__ */ new Set();
102651
102484
  let f = {}, p = 1 / 0;
102652
- for (let g = 0; g < Mrt; g++) {
102653
- const k = Crt[g], x = n[k], v = c[k] !== void 0 ? c[k] : u[k], b = t2(v), w = k === l ? x.isActive : null;
102485
+ for (let g = 0; g < Crt; g++) {
102486
+ const k = Art[g], x = n[k], v = c[k] !== void 0 ? c[k] : u[k], b = t2(v), w = k === l ? x.isActive : null;
102654
102487
  w === !1 && (p = g);
102655
102488
  let M = v === u[k] && v !== c[k] && b;
102656
102489
  if (M && r && t.manuallyAnimateOnMount && (M = !1), x.protectedKeys = { ...f }, // If it isn't active and hasn't *just* been set as inactive
@@ -102658,7 +102491,7 @@ function Srt(t) {
102658
102491
  !v && !x.prevProp || // Or if the prop doesn't define an animation
102659
102492
  c5(v) || typeof v == "boolean")
102660
102493
  continue;
102661
- let S = Trt(x.prevProp, v) || // If we're making this variant active, we want to always make it active
102494
+ let S = Srt(x.prevProp, v) || // If we're making this variant active, we want to always make it active
102662
102495
  k === l && x.isActive && !M && b || // If we removed a higher-priority variant (i is in reverse order)
102663
102496
  g > p && b, R = !1;
102664
102497
  const P = Array.isArray(v) ? v : [v];
@@ -102717,7 +102550,7 @@ function Srt(t) {
102717
102550
  }
102718
102551
  };
102719
102552
  }
102720
- function Trt(t, e) {
102553
+ function Srt(t, e) {
102721
102554
  return typeof e == "string" ? e !== t : Array.isArray(e) ? !EK(e, t) : !1;
102722
102555
  }
102723
102556
  function Dc(t = !1) {
@@ -102739,14 +102572,14 @@ function nN() {
102739
102572
  exit: Dc()
102740
102573
  };
102741
102574
  }
102742
- class Rrt extends Mc {
102575
+ class Trt extends Mc {
102743
102576
  /**
102744
102577
  * We dynamically generate the AnimationState manager as it contains a reference
102745
102578
  * to the underlying animation library. We only want to load that if we load this,
102746
102579
  * so people can optionally code split it out using the `m` component.
102747
102580
  */
102748
102581
  constructor(e) {
102749
- super(e), e.animationState || (e.animationState = Srt(e));
102582
+ super(e), e.animationState || (e.animationState = Ert(e));
102750
102583
  }
102751
102584
  updateAnimationControlsSubscription() {
102752
102585
  const { animate: e } = this.node.getProps();
@@ -102767,10 +102600,10 @@ class Rrt extends Mc {
102767
102600
  this.node.animationState.reset(), (e = this.unmountControls) === null || e === void 0 || e.call(this);
102768
102601
  }
102769
102602
  }
102770
- let Prt = 0;
102771
- class Drt extends Mc {
102603
+ let Rrt = 0;
102604
+ class Prt extends Mc {
102772
102605
  constructor() {
102773
- super(...arguments), this.id = Prt++;
102606
+ super(...arguments), this.id = Rrt++;
102774
102607
  }
102775
102608
  update() {
102776
102609
  if (!this.node.presenceContext)
@@ -102788,15 +102621,15 @@ class Drt extends Mc {
102788
102621
  unmount() {
102789
102622
  }
102790
102623
  }
102791
- const Ort = {
102624
+ const Drt = {
102792
102625
  animation: {
102793
- Feature: Rrt
102626
+ Feature: Trt
102794
102627
  },
102795
102628
  exit: {
102796
- Feature: Drt
102629
+ Feature: Prt
102797
102630
  }
102798
102631
  }, rN = (t, e) => Math.abs(t - e);
102799
- function Nrt(t, e) {
102632
+ function Ort(t, e) {
102800
102633
  const n = rN(t.x, e.x), r = rN(t.y, e.y);
102801
102634
  return Math.sqrt(n ** 2 + r ** 2);
102802
102635
  }
@@ -102805,7 +102638,7 @@ class s$ {
102805
102638
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
102806
102639
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
102807
102640
  return;
102808
- const d = Gb(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, f = Nrt(d.offset, { x: 0, y: 0 }) >= 3;
102641
+ const d = Gb(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, f = Ort(d.offset, { x: 0, y: 0 }) >= 3;
102809
102642
  if (!h && !f)
102810
102643
  return;
102811
102644
  const { point: p } = d, { timestamp: m } = nr;
@@ -102846,17 +102679,17 @@ function Gb({ point: t }, e) {
102846
102679
  return {
102847
102680
  point: t,
102848
102681
  delta: iN(t, o$(e)),
102849
- offset: iN(t, Lrt(e)),
102850
- velocity: _rt(e, 0.1)
102682
+ offset: iN(t, Nrt(e)),
102683
+ velocity: Lrt(e, 0.1)
102851
102684
  };
102852
102685
  }
102853
- function Lrt(t) {
102686
+ function Nrt(t) {
102854
102687
  return t[0];
102855
102688
  }
102856
102689
  function o$(t) {
102857
102690
  return t[t.length - 1];
102858
102691
  }
102859
- function _rt(t, e) {
102692
+ function Lrt(t, e) {
102860
102693
  if (t.length < 2)
102861
102694
  return { x: 0, y: 0 };
102862
102695
  let n = t.length - 1, r = null;
@@ -102889,7 +102722,7 @@ function K0(t, e, n, r) {
102889
102722
  function oN(t, e, n) {
102890
102723
  t.min = n.min + e.min, t.max = t.min + Ri(e);
102891
102724
  }
102892
- function Irt(t, e, n) {
102725
+ function _rt(t, e, n) {
102893
102726
  oN(t.x, e.x, n.x), oN(t.y, e.y, n.y);
102894
102727
  }
102895
102728
  function aN(t, e, n) {
@@ -102898,7 +102731,7 @@ function aN(t, e, n) {
102898
102731
  function $0(t, e, n) {
102899
102732
  aN(t.x, e.x, n.x), aN(t.y, e.y, n.y);
102900
102733
  }
102901
- function jrt(t, { min: e, max: n }, r) {
102734
+ function Irt(t, { min: e, max: n }, r) {
102902
102735
  return e !== void 0 && t < e ? t = r ? dn(e, t, r.min) : Math.max(t, e) : n !== void 0 && t > n && (t = r ? dn(n, t, r.max) : Math.min(t, n)), t;
102903
102736
  }
102904
102737
  function lN(t, e, n) {
@@ -102907,7 +102740,7 @@ function lN(t, e, n) {
102907
102740
  max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
102908
102741
  };
102909
102742
  }
102910
- function Frt(t, { top: e, left: n, bottom: r, right: i }) {
102743
+ function jrt(t, { top: e, left: n, bottom: r, right: i }) {
102911
102744
  return {
102912
102745
  x: lN(t.x, n, i),
102913
102746
  y: lN(t.y, e, r)
@@ -102917,23 +102750,23 @@ function cN(t, e) {
102917
102750
  let n = e.min - t.min, r = e.max - t.max;
102918
102751
  return e.max - e.min < t.max - t.min && ([n, r] = [r, n]), { min: n, max: r };
102919
102752
  }
102920
- function Brt(t, e) {
102753
+ function Frt(t, e) {
102921
102754
  return {
102922
102755
  x: cN(t.x, e.x),
102923
102756
  y: cN(t.y, e.y)
102924
102757
  };
102925
102758
  }
102926
- function Vrt(t, e) {
102759
+ function Brt(t, e) {
102927
102760
  let n = 0.5;
102928
102761
  const r = Ri(t), i = Ri(e);
102929
102762
  return i > r ? n = r2(e.min, e.max - r, t.min) : r > i && (n = r2(t.min, t.max - i, e.min)), ac(0, 1, n);
102930
102763
  }
102931
- function Hrt(t, e) {
102764
+ function Vrt(t, e) {
102932
102765
  const n = {};
102933
102766
  return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
102934
102767
  }
102935
102768
  const lw = 0.35;
102936
- function zrt(t = lw) {
102769
+ function Hrt(t = lw) {
102937
102770
  return t === !1 ? t = 0 : t === !0 && (t = lw), {
102938
102771
  x: uN(t, "left", "right"),
102939
102772
  y: uN(t, "top", "bottom")
@@ -102969,10 +102802,10 @@ function a$({ top: t, left: e, right: n, bottom: r }) {
102969
102802
  y: { min: t, max: r }
102970
102803
  };
102971
102804
  }
102972
- function Urt({ x: t, y: e }) {
102805
+ function zrt({ x: t, y: e }) {
102973
102806
  return { top: e.min, right: t.max, bottom: e.max, left: t.min };
102974
102807
  }
102975
- function qrt(t, e) {
102808
+ function Urt(t, e) {
102976
102809
  if (!e)
102977
102810
  return t;
102978
102811
  const n = e({ x: t.left, y: t.top }), r = e({ x: t.right, y: t.bottom });
@@ -103011,7 +102844,7 @@ function uw(t, e = 0, n = 1, r, i) {
103011
102844
  function c$(t, { x: e, y: n }) {
103012
102845
  uw(t.x, e.translate, e.scale, e.originPoint), uw(t.y, n.translate, n.scale, n.originPoint);
103013
102846
  }
103014
- function Wrt(t, e, n, r = !1) {
102847
+ function qrt(t, e, n, r = !1) {
103015
102848
  const i = n.length;
103016
102849
  if (!i)
103017
102850
  return;
@@ -103037,19 +102870,19 @@ function gN(t, e, [n, r, i]) {
103037
102870
  const s = e[i] !== void 0 ? e[i] : 0.5, o = dn(t.min, t.max, s);
103038
102871
  uw(t, e[n], e[r], o, e.scale);
103039
102872
  }
103040
- const Grt = ["x", "scaleX", "originX"], Zrt = ["y", "scaleY", "originY"];
102873
+ const Wrt = ["x", "scaleX", "originX"], Grt = ["y", "scaleY", "originY"];
103041
102874
  function y1(t, e) {
103042
- gN(t.x, e, Grt), gN(t.y, e, Zrt);
102875
+ gN(t.x, e, Wrt), gN(t.y, e, Grt);
103043
102876
  }
103044
102877
  function u$(t, e) {
103045
- return a$(qrt(t.getBoundingClientRect(), e));
102878
+ return a$(Urt(t.getBoundingClientRect(), e));
103046
102879
  }
103047
- function Krt(t, e, n) {
102880
+ function Zrt(t, e, n) {
103048
102881
  const r = u$(t, n), { scroll: i } = e;
103049
102882
  return i && (cl(r.x, i.offset.x), cl(r.y, i.offset.y)), r;
103050
102883
  }
103051
- const d$ = ({ current: t }) => t ? t.ownerDocument.defaultView : null, $rt = /* @__PURE__ */ new WeakMap();
103052
- class Qrt {
102884
+ const d$ = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Krt = /* @__PURE__ */ new WeakMap();
102885
+ class $rt {
103053
102886
  constructor(e) {
103054
102887
  this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = xn(), this.visualElement = e;
103055
102888
  }
@@ -103083,7 +102916,7 @@ class Qrt {
103083
102916
  return;
103084
102917
  const { offset: g } = d;
103085
102918
  if (f && this.currentDirection === null) {
103086
- this.currentDirection = Xrt(g), this.currentDirection !== null && p && p(this.currentDirection);
102919
+ this.currentDirection = Qrt(g), this.currentDirection !== null && p && p(this.currentDirection);
103087
102920
  return;
103088
102921
  }
103089
102922
  this.updateAxis("x", d.point, g), this.updateAxis("y", d.point, g), this.visualElement.render(), m && m(u, d);
@@ -103125,13 +102958,13 @@ class Qrt {
103125
102958
  return;
103126
102959
  const s = this.getAxisMotionValue(e);
103127
102960
  let o = this.originPoint[e] + r[e];
103128
- this.constraints && this.constraints[e] && (o = jrt(o, this.constraints[e], this.elastic[e])), s.set(o);
102961
+ this.constraints && this.constraints[e] && (o = Irt(o, this.constraints[e], this.elastic[e])), s.set(o);
103129
102962
  }
103130
102963
  resolveConstraints() {
103131
102964
  var e;
103132
102965
  const { dragConstraints: n, dragElastic: r } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, s = this.constraints;
103133
- n && f1(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = Frt(i.layoutBox, n) : this.constraints = !1, this.elastic = zrt(r), s !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && Fi((o) => {
103134
- this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = Hrt(i.layoutBox[o], this.constraints[o]));
102966
+ n && f1(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = jrt(i.layoutBox, n) : this.constraints = !1, this.elastic = Hrt(r), s !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && Fi((o) => {
102967
+ this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = Vrt(i.layoutBox[o], this.constraints[o]));
103135
102968
  });
103136
102969
  }
103137
102970
  resolveRefConstraints() {
@@ -103143,10 +102976,10 @@ class Qrt {
103143
102976
  const { projection: i } = this.visualElement;
103144
102977
  if (!i || !i.layout)
103145
102978
  return !1;
103146
- const s = Krt(r, i.root, this.visualElement.getTransformPagePoint());
103147
- let o = Brt(i.layout.layoutBox, s);
102979
+ const s = Zrt(r, i.root, this.visualElement.getTransformPagePoint());
102980
+ let o = Frt(i.layout.layoutBox, s);
103148
102981
  if (n) {
103149
- const a = n(Urt(o));
102982
+ const a = n(zrt(o));
103150
102983
  this.hasMutatedConstraints = !!a, a && (o = a$(a));
103151
102984
  }
103152
102985
  return o;
@@ -103228,7 +103061,7 @@ class Qrt {
103228
103061
  const a = this.getAxisMotionValue(o);
103229
103062
  if (a && this.constraints !== !1) {
103230
103063
  const l = a.get();
103231
- i[o] = Vrt({ min: l, max: l }, this.constraints[o]);
103064
+ i[o] = Brt({ min: l, max: l }, this.constraints[o]);
103232
103065
  }
103233
103066
  });
103234
103067
  const { transformTemplate: s } = this.visualElement.getProps();
@@ -103242,7 +103075,7 @@ class Qrt {
103242
103075
  addListeners() {
103243
103076
  if (!this.visualElement.current)
103244
103077
  return;
103245
- $rt.set(this.visualElement, this);
103078
+ Krt.set(this.visualElement, this);
103246
103079
  const e = this.visualElement.current, n = xa(e, "pointerdown", (l) => {
103247
103080
  const { drag: c, dragListener: u = !0 } = this.getProps();
103248
103081
  c && u && this.start(l);
@@ -103277,13 +103110,13 @@ class Qrt {
103277
103110
  function Ry(t, e, n) {
103278
103111
  return (e === !0 || e === t) && (n === null || n === t);
103279
103112
  }
103280
- function Xrt(t, e = 10) {
103113
+ function Qrt(t, e = 10) {
103281
103114
  let n = null;
103282
103115
  return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
103283
103116
  }
103284
- class Jrt extends Mc {
103117
+ class Xrt extends Mc {
103285
103118
  constructor(e) {
103286
- super(e), this.removeGroupControls = dr, this.removeListeners = dr, this.controls = new Qrt(e);
103119
+ super(e), this.removeGroupControls = dr, this.removeListeners = dr, this.controls = new $rt(e);
103287
103120
  }
103288
103121
  mount() {
103289
103122
  const { dragControls: e } = this.node.getProps();
@@ -103296,7 +103129,7 @@ class Jrt extends Mc {
103296
103129
  const kN = (t) => (e, n) => {
103297
103130
  t && zt.postRender(() => t(e, n));
103298
103131
  };
103299
- class Yrt extends Mc {
103132
+ class Jrt extends Mc {
103300
103133
  constructor() {
103301
103134
  super(...arguments), this.removePointerDownListener = dr;
103302
103135
  }
@@ -103327,7 +103160,7 @@ class Yrt extends Mc {
103327
103160
  this.removePointerDownListener(), this.session && this.session.end();
103328
103161
  }
103329
103162
  }
103330
- function eit() {
103163
+ function Yrt() {
103331
103164
  const t = Mt(l5);
103332
103165
  if (t === null)
103333
103166
  return [!0, null];
@@ -103361,7 +103194,7 @@ const o0 = {
103361
103194
  const n = vN(t, e.target.x), r = vN(t, e.target.y);
103362
103195
  return `${n}% ${r}%`;
103363
103196
  }
103364
- }, tit = {
103197
+ }, eit = {
103365
103198
  correct: (t, { treeScale: e, projectionDelta: n }) => {
103366
103199
  const r = t, i = lc.parse(t);
103367
103200
  if (i.length > 5)
@@ -103372,7 +103205,7 @@ const o0 = {
103372
103205
  return typeof i[2 + o] == "number" && (i[2 + o] /= c), typeof i[3 + o] == "number" && (i[3 + o] /= c), s(i);
103373
103206
  }
103374
103207
  };
103375
- class nit extends zN {
103208
+ class tit extends zN {
103376
103209
  /**
103377
103210
  * This only mounts projection nodes for components that
103378
103211
  * need measuring, we might want to do it for all components
@@ -103380,7 +103213,7 @@ class nit extends zN {
103380
103213
  */
103381
103214
  componentDidMount() {
103382
103215
  const { visualElement: e, layoutGroup: n, switchLayoutGroup: r, layoutId: i } = this.props, { projection: s } = e;
103383
- ett(rit), s && (n.group && n.group.add(s), r && r.register && i && r.register(s), s.root.didUpdate(), s.addEventListener("animationComplete", () => {
103216
+ Yet(nit), s && (n.group && n.group.add(s), r && r.register && i && r.register(s), s.root.didUpdate(), s.addEventListener("animationComplete", () => {
103384
103217
  this.safeToRemove();
103385
103218
  }), s.setOptions({
103386
103219
  ...s.options,
@@ -103413,10 +103246,10 @@ class nit extends zN {
103413
103246
  }
103414
103247
  }
103415
103248
  function h$(t) {
103416
- const [e, n] = eit(), r = Mt(bC);
103417
- return j.jsx(nit, { ...t, layoutGroup: r, switchLayoutGroup: Mt(sK), isPresent: e, safeToRemove: n });
103249
+ const [e, n] = Yrt(), r = Mt(bC);
103250
+ return j.jsx(tit, { ...t, layoutGroup: r, switchLayoutGroup: Mt(sK), isPresent: e, safeToRemove: n });
103418
103251
  }
103419
- const rit = {
103252
+ const nit = {
103420
103253
  borderRadius: {
103421
103254
  ...o0,
103422
103255
  applyTo: [
@@ -103430,16 +103263,16 @@ const rit = {
103430
103263
  borderTopRightRadius: o0,
103431
103264
  borderBottomLeftRadius: o0,
103432
103265
  borderBottomRightRadius: o0,
103433
- boxShadow: tit
103434
- }, f$ = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], iit = f$.length, bN = (t) => typeof t == "string" ? parseFloat(t) : t, xN = (t) => typeof t == "number" || at.test(t);
103435
- function sit(t, e, n, r, i, s) {
103266
+ boxShadow: eit
103267
+ }, f$ = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], rit = f$.length, bN = (t) => typeof t == "string" ? parseFloat(t) : t, xN = (t) => typeof t == "number" || at.test(t);
103268
+ function iit(t, e, n, r, i, s) {
103436
103269
  i ? (t.opacity = dn(
103437
103270
  0,
103438
103271
  // TODO Reinstate this if only child
103439
103272
  n.opacity !== void 0 ? n.opacity : 1,
103440
- oit(r)
103441
- ), t.opacityExit = dn(e.opacity !== void 0 ? e.opacity : 1, 0, ait(r))) : s && (t.opacity = dn(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
103442
- for (let o = 0; o < iit; o++) {
103273
+ sit(r)
103274
+ ), t.opacityExit = dn(e.opacity !== void 0 ? e.opacity : 1, 0, oit(r))) : s && (t.opacity = dn(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
103275
+ for (let o = 0; o < rit; o++) {
103443
103276
  const a = `border${f$[o]}Radius`;
103444
103277
  let l = wN(e, a), c = wN(n, a);
103445
103278
  if (l === void 0 && c === void 0)
@@ -103451,7 +103284,7 @@ function sit(t, e, n, r, i, s) {
103451
103284
  function wN(t, e) {
103452
103285
  return t[e] !== void 0 ? t[e] : t.borderRadius;
103453
103286
  }
103454
- const oit = p$(0, 0.5, QK), ait = p$(0.5, 0.95, dr);
103287
+ const sit = p$(0, 0.5, QK), oit = p$(0.5, 0.95, dr);
103455
103288
  function p$(t, e, n) {
103456
103289
  return (r) => r < t ? 0 : r > e ? 1 : n(r2(t, e, r));
103457
103290
  }
@@ -103464,18 +103297,18 @@ function Ii(t, e) {
103464
103297
  function CN(t, e, n, r, i) {
103465
103298
  return t -= e, t = y3(t, 1 / n, r), i !== void 0 && (t = y3(t, 1 / i, r)), t;
103466
103299
  }
103467
- function lit(t, e = 0, n = 1, r = 0.5, i, s = t, o = t) {
103300
+ function ait(t, e = 0, n = 1, r = 0.5, i, s = t, o = t) {
103468
103301
  if (po.test(e) && (e = parseFloat(e), e = dn(o.min, o.max, e / 100) - o.min), typeof e != "number")
103469
103302
  return;
103470
103303
  let a = dn(s.min, s.max, r);
103471
103304
  t === s && (a -= e), t.min = CN(t.min, e, n, a, i), t.max = CN(t.max, e, n, a, i);
103472
103305
  }
103473
103306
  function MN(t, e, [n, r, i], s, o) {
103474
- lit(t, e[n], e[r], e[i], e.scale, s, o);
103307
+ ait(t, e[n], e[r], e[i], e.scale, s, o);
103475
103308
  }
103476
- const cit = ["x", "scaleX", "originX"], uit = ["y", "scaleY", "originY"];
103309
+ const lit = ["x", "scaleX", "originX"], cit = ["y", "scaleY", "originY"];
103477
103310
  function EN(t, e, n, r) {
103478
- MN(t.x, e, cit, n ? n.x : void 0, r ? r.x : void 0), MN(t.y, e, uit, n ? n.y : void 0, r ? r.y : void 0);
103311
+ MN(t.x, e, lit, n ? n.x : void 0, r ? r.x : void 0), MN(t.y, e, cit, n ? n.y : void 0, r ? r.y : void 0);
103479
103312
  }
103480
103313
  function SN(t) {
103481
103314
  return t.translate === 0 && t.scale === 1;
@@ -103483,7 +103316,7 @@ function SN(t) {
103483
103316
  function m$(t) {
103484
103317
  return SN(t.x) && SN(t.y);
103485
103318
  }
103486
- function dit(t, e) {
103319
+ function uit(t, e) {
103487
103320
  return t.x.min === e.x.min && t.x.max === e.x.max && t.y.min === e.y.min && t.y.max === e.y.max;
103488
103321
  }
103489
103322
  function y$(t, e) {
@@ -103492,7 +103325,7 @@ function y$(t, e) {
103492
103325
  function TN(t) {
103493
103326
  return Ri(t.x) / Ri(t.y);
103494
103327
  }
103495
- class hit {
103328
+ class dit {
103496
103329
  constructor() {
103497
103330
  this.members = [];
103498
103331
  }
@@ -103556,8 +103389,8 @@ function RN(t, e, n) {
103556
103389
  const a = t.x.scale * e.x, l = t.y.scale * e.y;
103557
103390
  return (a !== 1 || l !== 1) && (r += `scale(${a}, ${l})`), r || "none";
103558
103391
  }
103559
- const fit = (t, e) => t.depth - e.depth;
103560
- class pit {
103392
+ const hit = (t, e) => t.depth - e.depth;
103393
+ class fit {
103561
103394
  constructor() {
103562
103395
  this.children = [], this.isDirty = !1;
103563
103396
  }
@@ -103568,28 +103401,28 @@ class pit {
103568
103401
  HC(this.children, e), this.isDirty = !0;
103569
103402
  }
103570
103403
  forEach(e) {
103571
- this.isDirty && this.children.sort(fit), this.isDirty = !1, this.children.forEach(e);
103404
+ this.isDirty && this.children.sort(hit), this.isDirty = !1, this.children.forEach(e);
103572
103405
  }
103573
103406
  }
103574
- function mit(t, e) {
103407
+ function pit(t, e) {
103575
103408
  const n = Zl.now(), r = ({ timestamp: i }) => {
103576
103409
  const s = i - n;
103577
103410
  s >= e && (ja(r), t(s - e));
103578
103411
  };
103579
103412
  return zt.read(r, !0), () => ja(r);
103580
103413
  }
103581
- function yit(t) {
103414
+ function mit(t) {
103582
103415
  window.MotionDebug && window.MotionDebug.record(t);
103583
103416
  }
103584
- function git(t) {
103417
+ function yit(t) {
103585
103418
  return t instanceof SVGElement && t.tagName !== "svg";
103586
103419
  }
103587
- function kit(t, e, n) {
103420
+ function git(t, e, n) {
103588
103421
  const r = Cr(t) ? t : i2(t);
103589
103422
  return r.start(BC("", r, e, n)), r.animation;
103590
103423
  }
103591
- const Kb = ["", "X", "Y", "Z"], vit = { visibility: "hidden" }, PN = 1e3;
103592
- let bit = 0;
103424
+ const Kb = ["", "X", "Y", "Z"], kit = { visibility: "hidden" }, PN = 1e3;
103425
+ let vit = 0;
103593
103426
  const Vc = {
103594
103427
  type: "projectionFrame",
103595
103428
  totalNodes: 0,
@@ -103609,14 +103442,14 @@ function g$(t) {
103609
103442
  function k$({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
103610
103443
  return class {
103611
103444
  constructor(o = {}, a = e == null ? void 0 : e()) {
103612
- this.id = bit++, 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 = () => {
103445
+ this.id = vit++, 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 = () => {
103613
103446
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
103614
103447
  }, this.updateProjection = () => {
103615
- this.projectionUpdateScheduled = !1, Vc.totalNodes = Vc.resolvedTargetDeltas = Vc.recalculatedProjection = 0, this.nodes.forEach(Ait), this.nodes.forEach(Tit), this.nodes.forEach(Rit), this.nodes.forEach(Cit), yit(Vc);
103448
+ this.projectionUpdateScheduled = !1, Vc.totalNodes = Vc.resolvedTargetDeltas = Vc.recalculatedProjection = 0, this.nodes.forEach(wit), this.nodes.forEach(Sit), this.nodes.forEach(Tit), this.nodes.forEach(Ait), mit(Vc);
103616
103449
  }, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = o, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
103617
103450
  for (let l = 0; l < this.path.length; l++)
103618
103451
  this.path[l].shouldResetTransform = !0;
103619
- this.root === this && (this.nodes = new pit());
103452
+ this.root === this && (this.nodes = new fit());
103620
103453
  }
103621
103454
  addEventListener(o, a) {
103622
103455
  return this.eventHandlers.has(o) || this.eventHandlers.set(o, new zC()), this.eventHandlers.get(o).add(a);
@@ -103634,13 +103467,13 @@ function k$({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
103634
103467
  mount(o, a = this.root.hasTreeAnimated) {
103635
103468
  if (this.instance)
103636
103469
  return;
103637
- this.isSVG = git(o), this.instance = o;
103470
+ this.isSVG = yit(o), this.instance = o;
103638
103471
  const { layoutId: l, layout: c, visualElement: u } = this.options;
103639
103472
  if (u && !u.current && u.mount(o), this.root.nodes.add(this), this.parent && this.parent.children.add(this), a && (c || l) && (this.isLayoutDirty = !0), t) {
103640
103473
  let d;
103641
103474
  const h = () => this.root.updateBlockedByResize = !1;
103642
103475
  t(o, () => {
103643
- this.root.updateBlockedByResize = !0, d && d(), d = mit(h, 250), hg.hasAnimatedSinceResize && (hg.hasAnimatedSinceResize = !1, this.nodes.forEach(ON));
103476
+ this.root.updateBlockedByResize = !0, d && d(), d = pit(h, 250), hg.hasAnimatedSinceResize && (hg.hasAnimatedSinceResize = !1, this.nodes.forEach(ON));
103644
103477
  });
103645
103478
  }
103646
103479
  l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: h, hasRelativeTargetChanged: f, layout: p }) => {
@@ -103648,7 +103481,7 @@ function k$({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
103648
103481
  this.target = void 0, this.relativeTarget = void 0;
103649
103482
  return;
103650
103483
  }
103651
- const m = this.options.transition || u.getDefaultTransition() || Lit, { onLayoutAnimationStart: g, onLayoutAnimationComplete: k } = u.getProps(), x = !this.targetLayout || !y$(this.targetLayout, p) || f, v = !h && f;
103484
+ const m = this.options.transition || u.getDefaultTransition() || Nit, { onLayoutAnimationStart: g, onLayoutAnimationComplete: k } = u.getProps(), x = !this.targetLayout || !y$(this.targetLayout, p) || f, v = !h && f;
103652
103485
  if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || v || h && (x || !this.currentAnimation)) {
103653
103486
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d, v);
103654
103487
  const b = {
@@ -103682,7 +103515,7 @@ function k$({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
103682
103515
  }
103683
103516
  // Note: currently only running on root node
103684
103517
  startUpdate() {
103685
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Pit), this.animationId++);
103518
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Rit), this.animationId++);
103686
103519
  }
103687
103520
  getTransformTemplate() {
103688
103521
  const { visualElement: o } = this.options;
@@ -103711,7 +103544,7 @@ function k$({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
103711
103544
  this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(DN);
103712
103545
  return;
103713
103546
  }
103714
- this.isUpdating || this.nodes.forEach(Eit), this.isUpdating = !1, this.nodes.forEach(Sit), this.nodes.forEach(xit), this.nodes.forEach(wit), this.clearAllSnapshots();
103547
+ this.isUpdating || this.nodes.forEach(Mit), this.isUpdating = !1, this.nodes.forEach(Eit), this.nodes.forEach(bit), this.nodes.forEach(xit), this.clearAllSnapshots();
103715
103548
  const a = Zl.now();
103716
103549
  nr.delta = ac(0, 1e3 / 60, a - nr.timestamp), nr.timestamp = a, nr.isProcessing = !0, Fb.update.process(nr), Fb.preRender.process(nr), Fb.render.process(nr), nr.isProcessing = !1;
103717
103550
  }
@@ -103719,7 +103552,7 @@ function k$({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
103719
103552
  this.updateScheduled || (this.updateScheduled = !0, gC.read(this.scheduleUpdate));
103720
103553
  }
103721
103554
  clearAllSnapshots() {
103722
- this.nodes.forEach(Mit), this.sharedNodes.forEach(Dit);
103555
+ this.nodes.forEach(Cit), this.sharedNodes.forEach(Pit);
103723
103556
  }
103724
103557
  scheduleUpdateProjection() {
103725
103558
  this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, zt.preRender(this.updateProjection, !1, !0));
@@ -103764,7 +103597,7 @@ function k$({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
103764
103597
  measure(o = !0) {
103765
103598
  const a = this.measurePageBox();
103766
103599
  let l = this.removeElementScroll(a);
103767
- return o && (l = this.removeTransform(l)), _it(l), {
103600
+ return o && (l = this.removeTransform(l)), Lit(l), {
103768
103601
  animationId: this.root.animationId,
103769
103602
  measuredBox: a,
103770
103603
  layoutBox: l,
@@ -103850,7 +103683,7 @@ function k$({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
103850
103683
  f && f.layout && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = xn(), this.relativeTargetOrigin = xn(), $0(this.relativeTargetOrigin, this.layout.layoutBox, f.layout.layoutBox), Ii(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
103851
103684
  }
103852
103685
  if (!(!this.relativeTarget && !this.targetDelta)) {
103853
- if (this.target || (this.target = xn(), this.targetWithTransforms = xn()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Irt(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Ii(this.target, this.layout.layoutBox), c$(this.target, this.targetDelta)) : Ii(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
103686
+ if (this.target || (this.target = xn(), this.targetWithTransforms = xn()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), _rt(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Ii(this.target, this.layout.layoutBox), c$(this.target, this.targetDelta)) : Ii(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
103854
103687
  this.attemptToResolveRelativeTarget = !1;
103855
103688
  const f = this.getClosestProjectingParent();
103856
103689
  f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = xn(), this.relativeTargetOrigin = xn(), $0(this.relativeTargetOrigin, this.target, f.target), Ii(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
@@ -103877,7 +103710,7 @@ function k$({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
103877
103710
  return;
103878
103711
  Ii(this.layoutCorrected, this.layout.layoutBox);
103879
103712
  const h = this.treeScale.x, f = this.treeScale.y;
103880
- Wrt(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = xn());
103713
+ qrt(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = xn());
103881
103714
  const { target: p } = a;
103882
103715
  if (!p) {
103883
103716
  this.projectionTransform && (this.projectionDelta = m1(), this.projectionTransform = "none", this.scheduleRender());
@@ -103903,17 +103736,17 @@ function k$({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
103903
103736
  setAnimationOrigin(o, a = !1) {
103904
103737
  const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d = m1();
103905
103738
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
103906
- const h = xn(), f = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = f !== p, g = this.getStack(), k = !g || g.members.length <= 1, x = !!(m && !k && this.options.crossfade === !0 && !this.path.some(Nit));
103739
+ const h = xn(), f = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = f !== p, g = this.getStack(), k = !g || g.members.length <= 1, x = !!(m && !k && this.options.crossfade === !0 && !this.path.some(Oit));
103907
103740
  this.animationProgress = 0;
103908
103741
  let v;
103909
103742
  this.mixTargetDelta = (b) => {
103910
103743
  const w = b / 1e3;
103911
- NN(d.x, o.x, w), NN(d.y, o.y, w), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && ($0(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Oit(this.relativeTarget, this.relativeTargetOrigin, h, w), v && dit(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = xn()), Ii(v, this.relativeTarget)), m && (this.animationValues = u, sit(u, c, this.latestValues, w, x, k)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
103744
+ NN(d.x, o.x, w), NN(d.y, o.y, w), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && ($0(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Dit(this.relativeTarget, this.relativeTargetOrigin, h, w), v && uit(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = xn()), Ii(v, this.relativeTarget)), m && (this.animationValues = u, iit(u, c, this.latestValues, w, x, k)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
103912
103745
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
103913
103746
  }
103914
103747
  startAnimation(o) {
103915
103748
  this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (ja(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = zt.update(() => {
103916
- hg.hasAnimatedSinceResize = !0, this.currentAnimation = kit(0, PN, {
103749
+ hg.hasAnimatedSinceResize = !0, this.currentAnimation = git(0, PN, {
103917
103750
  ...o,
103918
103751
  onUpdate: (a) => {
103919
103752
  this.mixTargetDelta(a), o.onUpdate && o.onUpdate(a);
@@ -103947,7 +103780,7 @@ function k$({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
103947
103780
  }
103948
103781
  }
103949
103782
  registerSharedNode(o, a) {
103950
- this.sharedNodes.has(o) || this.sharedNodes.set(o, new hit()), this.sharedNodes.get(o).add(a);
103783
+ this.sharedNodes.has(o) || this.sharedNodes.set(o, new dit()), this.sharedNodes.get(o).add(a);
103951
103784
  const c = a.options.initialPromotionConfig;
103952
103785
  a.promote({
103953
103786
  transition: c ? c.transition : void 0,
@@ -104003,7 +103836,7 @@ function k$({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
104003
103836
  if (!this.instance || this.isSVG)
104004
103837
  return;
104005
103838
  if (!this.isVisible)
104006
- return vit;
103839
+ return kit;
104007
103840
  const c = {
104008
103841
  visibility: ""
104009
103842
  }, u = this.getTransformTemplate();
@@ -104043,10 +103876,10 @@ function k$({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
104043
103876
  }
104044
103877
  };
104045
103878
  }
104046
- function xit(t) {
103879
+ function bit(t) {
104047
103880
  t.updateLayout();
104048
103881
  }
104049
- function wit(t) {
103882
+ function xit(t) {
104050
103883
  var e;
104051
103884
  const n = ((e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) || t.snapshot;
104052
103885
  if (t.isLead() && t.layout && n && t.hasListeners("didUpdate")) {
@@ -104090,38 +103923,38 @@ function wit(t) {
104090
103923
  }
104091
103924
  t.options.transition = void 0;
104092
103925
  }
104093
- function Ait(t) {
103926
+ function wit(t) {
104094
103927
  Vc.totalNodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
104095
103928
  }
104096
- function Cit(t) {
103929
+ function Ait(t) {
104097
103930
  t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
104098
103931
  }
104099
- function Mit(t) {
103932
+ function Cit(t) {
104100
103933
  t.clearSnapshot();
104101
103934
  }
104102
103935
  function DN(t) {
104103
103936
  t.clearMeasurements();
104104
103937
  }
104105
- function Eit(t) {
103938
+ function Mit(t) {
104106
103939
  t.isLayoutDirty = !1;
104107
103940
  }
104108
- function Sit(t) {
103941
+ function Eit(t) {
104109
103942
  const { visualElement: e } = t.options;
104110
103943
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
104111
103944
  }
104112
103945
  function ON(t) {
104113
103946
  t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
104114
103947
  }
104115
- function Tit(t) {
103948
+ function Sit(t) {
104116
103949
  t.resolveTargetDelta();
104117
103950
  }
104118
- function Rit(t) {
103951
+ function Tit(t) {
104119
103952
  t.calcProjection();
104120
103953
  }
104121
- function Pit(t) {
103954
+ function Rit(t) {
104122
103955
  t.resetSkewAndRotation();
104123
103956
  }
104124
- function Dit(t) {
103957
+ function Pit(t) {
104125
103958
  t.removeLeadSnapshot();
104126
103959
  }
104127
103960
  function NN(t, e, n) {
@@ -104130,26 +103963,26 @@ function NN(t, e, n) {
104130
103963
  function LN(t, e, n, r) {
104131
103964
  t.min = dn(e.min, n.min, r), t.max = dn(e.max, n.max, r);
104132
103965
  }
104133
- function Oit(t, e, n, r) {
103966
+ function Dit(t, e, n, r) {
104134
103967
  LN(t.x, e.x, n.x, r), LN(t.y, e.y, n.y, r);
104135
103968
  }
104136
- function Nit(t) {
103969
+ function Oit(t) {
104137
103970
  return t.animationValues && t.animationValues.opacityExit !== void 0;
104138
103971
  }
104139
- const Lit = {
103972
+ const Nit = {
104140
103973
  duration: 0.45,
104141
103974
  ease: [0.4, 0, 0.1, 1]
104142
103975
  }, _N = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), IN = _N("applewebkit/") && !_N("chrome/") ? Math.round : dr;
104143
103976
  function jN(t) {
104144
103977
  t.min = IN(t.min), t.max = IN(t.max);
104145
103978
  }
104146
- function _it(t) {
103979
+ function Lit(t) {
104147
103980
  jN(t.x), jN(t.y);
104148
103981
  }
104149
103982
  function v$(t, e, n) {
104150
103983
  return t === "position" || t === "preserve-aspect" && !aw(TN(e), TN(n), 0.2);
104151
103984
  }
104152
- const Iit = k$({
103985
+ const _it = k$({
104153
103986
  attachResizeListener: (t, e) => la(t, "resize", e),
104154
103987
  measureScroll: () => ({
104155
103988
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
@@ -104165,7 +103998,7 @@ const Iit = k$({
104165
103998
  }),
104166
103999
  defaultParent: () => {
104167
104000
  if (!Qb.current) {
104168
- const t = new Iit({});
104001
+ const t = new _it({});
104169
104002
  t.mount(window), t.setOptions({ layoutScroll: !0 }), Qb.current = t;
104170
104003
  }
104171
104004
  return Qb.current;
@@ -104174,17 +104007,17 @@ const Iit = k$({
104174
104007
  t.style.transform = e !== void 0 ? e : "none";
104175
104008
  },
104176
104009
  checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
104177
- }), jit = {
104010
+ }), Iit = {
104178
104011
  pan: {
104179
- Feature: Yrt
104012
+ Feature: Jrt
104180
104013
  },
104181
104014
  drag: {
104182
- Feature: Jrt,
104015
+ Feature: Xrt,
104183
104016
  ProjectionNode: b$,
104184
104017
  MeasureLayout: h$
104185
104018
  }
104186
104019
  }, dw = { current: null }, x$ = { current: !1 };
104187
- function Fit() {
104020
+ function jit() {
104188
104021
  if (x$.current = !0, !!pC)
104189
104022
  if (window.matchMedia) {
104190
104023
  const t = window.matchMedia("(prefers-reduced-motion)"), e = () => dw.current = t.matches;
@@ -104192,7 +104025,7 @@ function Fit() {
104192
104025
  } else
104193
104026
  dw.current = !1;
104194
104027
  }
104195
- function Bit(t, e, n) {
104028
+ function Fit(t, e, n) {
104196
104029
  const { willChange: r } = e;
104197
104030
  for (const i in e) {
104198
104031
  const s = e[i], o = n[i];
@@ -104213,7 +104046,7 @@ function Bit(t, e, n) {
104213
104046
  e[i] === void 0 && t.removeValue(i);
104214
104047
  return e;
104215
104048
  }
104216
- const FN = /* @__PURE__ */ new WeakMap(), Vit = [...DK, vr, lc], Hit = (t) => Vit.find(PK(t)), BN = [
104049
+ const FN = /* @__PURE__ */ new WeakMap(), Bit = [...DK, vr, lc], Vit = (t) => Bit.find(PK(t)), BN = [
104217
104050
  "AnimationStart",
104218
104051
  "AnimationComplete",
104219
104052
  "Update",
@@ -104221,8 +104054,8 @@ const FN = /* @__PURE__ */ new WeakMap(), Vit = [...DK, vr, lc], Hit = (t) => Vi
104221
104054
  "LayoutMeasure",
104222
104055
  "LayoutAnimationStart",
104223
104056
  "LayoutAnimationComplete"
104224
- ], zit = vC.length;
104225
- class Uit {
104057
+ ], Hit = vC.length;
104058
+ class zit {
104226
104059
  /**
104227
104060
  * This method takes React props and returns found MotionValues. For example, HTML
104228
104061
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -104246,7 +104079,7 @@ class Uit {
104246
104079
  }
104247
104080
  }
104248
104081
  mount(e) {
104249
- this.current = e, FN.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), x$.current || Fit(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : dw.current, process.env.NODE_ENV !== "production" && UC(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
104082
+ this.current = e, FN.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), x$.current || jit(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : dw.current, process.env.NODE_ENV !== "production" && UC(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
104250
104083
  }
104251
104084
  unmount() {
104252
104085
  FN.delete(this.current), this.projection && this.projection.unmount(), ja(this.notifyUpdate), ja(this.render), this.valueSubscriptions.forEach((e) => e()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
@@ -104311,7 +104144,7 @@ class Uit {
104311
104144
  const s = "on" + i, o = e[s];
104312
104145
  o && (this.propEventSubscriptions[i] = this.on(i, o));
104313
104146
  }
104314
- this.prevMotionValues = Bit(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
104147
+ this.prevMotionValues = Fit(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
104315
104148
  }
104316
104149
  getProps() {
104317
104150
  return this.props;
@@ -104342,7 +104175,7 @@ class Uit {
104342
104175
  return this.props.initial !== void 0 && (r.initial = this.props.initial), r;
104343
104176
  }
104344
104177
  const n = {};
104345
- for (let r = 0; r < zit; r++) {
104178
+ for (let r = 0; r < Hit; r++) {
104346
104179
  const i = vC[r], s = this.props[i];
104347
104180
  (t2(s) || s === !1) && (n[i] = s);
104348
104181
  }
@@ -104391,7 +104224,7 @@ class Uit {
104391
104224
  readValue(e, n) {
104392
104225
  var r;
104393
104226
  let i = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (r = this.getBaseTargetFromProps(this.props, e)) !== null && r !== void 0 ? r : this.readValueFromInstance(this.current, e, this.options);
104394
- return i != null && (typeof i == "string" && (TK(i) || SK(i)) ? i = parseFloat(i) : !Hit(i) && lc.test(n) && (i = BK(e, n)), this.setBaseTarget(e, Cr(i) ? i.get() : i)), Cr(i) ? i.get() : i;
104227
+ return i != null && (typeof i == "string" && (TK(i) || SK(i)) ? i = parseFloat(i) : !Vit(i) && lc.test(n) && (i = BK(e, n)), this.setBaseTarget(e, Cr(i) ? i.get() : i)), Cr(i) ? i.get() : i;
104395
104228
  }
104396
104229
  /**
104397
104230
  * Set the base target to later animate back to. This is currently
@@ -104424,7 +104257,7 @@ class Uit {
104424
104257
  this.events[e] && this.events[e].notify(...n);
104425
104258
  }
104426
104259
  }
104427
- class w$ extends Uit {
104260
+ class w$ extends zit {
104428
104261
  constructor() {
104429
104262
  super(...arguments), this.KeyframeResolver = VK;
104430
104263
  }
@@ -104438,10 +104271,10 @@ class w$ extends Uit {
104438
104271
  delete n[e], delete r[e];
104439
104272
  }
104440
104273
  }
104441
- function qit(t) {
104274
+ function Uit(t) {
104442
104275
  return window.getComputedStyle(t);
104443
104276
  }
104444
- class Wit extends w$ {
104277
+ class qit extends w$ {
104445
104278
  constructor() {
104446
104279
  super(...arguments), this.type = "html";
104447
104280
  }
@@ -104450,7 +104283,7 @@ class Wit extends w$ {
104450
104283
  const r = NC(n);
104451
104284
  return r && r.default || 0;
104452
104285
  } else {
104453
- const r = qit(e), i = (uK(n) ? r.getPropertyValue(n) : r[n]) || 0;
104286
+ const r = Uit(e), i = (uK(n) ? r.getPropertyValue(n) : r[n]) || 0;
104454
104287
  return typeof i == "string" ? i.trim() : i;
104455
104288
  }
104456
104289
  }
@@ -104474,7 +104307,7 @@ class Wit extends w$ {
104474
104307
  mK(e, n, r, i);
104475
104308
  }
104476
104309
  }
104477
- class Git extends w$ {
104310
+ class Wit extends w$ {
104478
104311
  constructor() {
104479
104312
  super(...arguments), this.type = "svg", this.isSVGTag = !1;
104480
104313
  }
@@ -104504,33 +104337,33 @@ class Git extends w$ {
104504
104337
  this.isSVGTag = SC(e.tagName), super.mount(e);
104505
104338
  }
104506
104339
  }
104507
- const Zit = (t, e) => xC(t) ? new Git(e, { enableHardwareAcceleration: !1 }) : new Wit(e, {
104340
+ const Git = (t, e) => xC(t) ? new Wit(e, { enableHardwareAcceleration: !1 }) : new qit(e, {
104508
104341
  allowProjection: t !== pf,
104509
104342
  enableHardwareAcceleration: !0
104510
- }), Kit = {
104343
+ }), Zit = {
104511
104344
  layout: {
104512
104345
  ProjectionNode: b$,
104513
104346
  MeasureLayout: h$
104514
104347
  }
104515
- }, $it = {
104516
- ...Ort,
104517
- ...ztt,
104518
- ...jit,
104519
- ...Kit
104520
- }, Qit = /* @__PURE__ */ Jet((t, e) => Rtt(t, e, $it, Zit));
104348
+ }, Kit = {
104349
+ ...Drt,
104350
+ ...Htt,
104351
+ ...Iit,
104352
+ ...Zit
104353
+ }, $it = /* @__PURE__ */ Xet((t, e) => Ttt(t, e, Kit, Git));
104521
104354
  function A$() {
104522
104355
  const t = Ge(!1);
104523
104356
  return mC(() => (t.current = !0, () => {
104524
104357
  t.current = !1;
104525
104358
  }), []), t;
104526
104359
  }
104527
- function Xit() {
104360
+ function Qit() {
104528
104361
  const t = A$(), [e, n] = Ye(0), r = Rt(() => {
104529
104362
  t.current && n(e + 1);
104530
104363
  }, [e]);
104531
104364
  return [Rt(() => zt.postRender(r), [r]), e];
104532
104365
  }
104533
- class Jit extends C.Component {
104366
+ class Xit extends C.Component {
104534
104367
  getSnapshotBeforeUpdate(e) {
104535
104368
  const n = this.props.childRef.current;
104536
104369
  if (n && e.isPresent && !this.props.isPresent) {
@@ -104548,7 +104381,7 @@ class Jit extends C.Component {
104548
104381
  return this.props.children;
104549
104382
  }
104550
104383
  }
104551
- function Yit({ children: t, isPresent: e }) {
104384
+ function Jit({ children: t, isPresent: e }) {
104552
104385
  const n = mf(), r = Ge(null), i = Ge({
104553
104386
  width: 0,
104554
104387
  height: 0,
@@ -104572,10 +104405,10 @@ function Yit({ children: t, isPresent: e }) {
104572
104405
  `), () => {
104573
104406
  document.head.removeChild(u);
104574
104407
  };
104575
- }, [e]), j.jsx(Jit, { isPresent: e, childRef: r, sizeRef: i, children: C.cloneElement(t, { ref: r }) });
104408
+ }, [e]), j.jsx(Xit, { isPresent: e, childRef: r, sizeRef: i, children: C.cloneElement(t, { ref: r }) });
104576
104409
  }
104577
104410
  const Xb = ({ children: t, initial: e, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: s, mode: o }) => {
104578
- const a = vK(est), l = mf(), c = Rn(
104411
+ const a = vK(Yit), l = mf(), c = Rn(
104579
104412
  () => ({
104580
104413
  id: l,
104581
104414
  initial: e,
@@ -104601,35 +104434,35 @@ const Xb = ({ children: t, initial: e, isPresent: n, onExitComplete: r, custom:
104601
104434
  a.forEach((u, d) => a.set(d, !1));
104602
104435
  }, [n]), C.useEffect(() => {
104603
104436
  !n && !a.size && r && r();
104604
- }, [n]), o === "popLayout" && (t = j.jsx(Yit, { isPresent: n, children: t })), j.jsx(l5.Provider, { value: c, children: t });
104437
+ }, [n]), o === "popLayout" && (t = j.jsx(Jit, { isPresent: n, children: t })), j.jsx(l5.Provider, { value: c, children: t });
104605
104438
  };
104606
- function est() {
104439
+ function Yit() {
104607
104440
  return /* @__PURE__ */ new Map();
104608
104441
  }
104609
- function tst(t) {
104442
+ function est(t) {
104610
104443
  return Ve(() => () => t(), []);
104611
104444
  }
104612
104445
  const Hc = (t) => t.key || "";
104613
- function nst(t, e) {
104446
+ function tst(t, e) {
104614
104447
  t.forEach((n) => {
104615
104448
  const r = Hc(n);
104616
104449
  e.set(r, n);
104617
104450
  });
104618
104451
  }
104619
- function rst(t) {
104452
+ function nst(t) {
104620
104453
  const e = [];
104621
104454
  return ca.forEach(t, (n) => {
104622
104455
  Eh(n) && e.push(n);
104623
104456
  }), e;
104624
104457
  }
104625
- const ist = ({ children: t, custom: e, initial: n = !0, onExitComplete: r, exitBeforeEnter: i, presenceAffectsLayout: s = !0, mode: o = "sync" }) => {
104458
+ const rst = ({ children: t, custom: e, initial: n = !0, onExitComplete: r, exitBeforeEnter: i, presenceAffectsLayout: s = !0, mode: o = "sync" }) => {
104626
104459
  Ia(!i, "Replace exitBeforeEnter with mode='wait'");
104627
- const a = Mt(bC).forceRender || Xit()[0], l = A$(), c = rst(t);
104460
+ const a = Mt(bC).forceRender || Qit()[0], l = A$(), c = nst(t);
104628
104461
  let u = c;
104629
104462
  const d = Ge(/* @__PURE__ */ new Map()).current, h = Ge(u), f = Ge(/* @__PURE__ */ new Map()).current, p = Ge(!0);
104630
104463
  if (mC(() => {
104631
- p.current = !1, nst(c, f), h.current = u;
104632
- }), tst(() => {
104464
+ p.current = !1, tst(c, f), h.current = u;
104465
+ }), est(() => {
104633
104466
  p.current = !0, f.clear(), d.clear();
104634
104467
  }), p.current)
104635
104468
  return j.jsx(j.Fragment, { children: u.map((x) => j.jsx(Xb, { isPresent: !0, initial: n ? void 0 : !1, presenceAffectsLayout: s, mode: o, children: x }, Hc(x))) });
@@ -105019,10 +104852,177 @@ g3.exports;
105019
104852
  }) : r.platform = T;
105020
104853
  }).call(rr);
105021
104854
  })(g3, g3.exports);
105022
- var sst = g3.exports;
105023
- const ost = /* @__PURE__ */ v2(sst), Jb = () => {
104855
+ var ist = g3.exports;
104856
+ const sst = /* @__PURE__ */ v2(ist), ost = ({
104857
+ editor: t,
104858
+ onError: e,
104859
+ isKeyboardVisible: n,
104860
+ isNavbarVisible: r,
104861
+ setIsNavbarVisible: i
104862
+ }) => {
104863
+ const { toolVisibilty: s, setToolVisibility: o, bottomToolbar: a } = N9({
104864
+ editor: t,
104865
+ onError: e
104866
+ }), l = O9("(max-width: 1023px)"), [c, u] = Ye(""), [d, h] = Ye(""), [f, p] = Ye(!0), [m, g] = Ye(!0), k = Ge(null), x = () => {
104867
+ if (c === null) {
104868
+ g(!1), o(Qe.NONE);
104869
+ return;
104870
+ }
104871
+ if (d === "" && c === "") {
104872
+ o(Qe.NONE), p(!0), g(!0);
104873
+ return;
104874
+ }
104875
+ if (c === "") {
104876
+ t.chain().focus().extendMarkRange("link").unsetLink().run(), o(Qe.NONE);
104877
+ return;
104878
+ }
104879
+ let w = c;
104880
+ !c.startsWith("http://") || !c.startsWith("https://") ? w = "https://" + c : w = c;
104881
+ try {
104882
+ w.match(
104883
+ /^((http|https):\/\/)?([w|W]{3}\.)+[a-zA-Z0-9\-\.]{3,}\.[a-zA-Z]{2,}(\.[a-zA-Z]{2,})?$/
104884
+ ) && g(!0);
104885
+ } catch {
104886
+ console.error("Invalid URL"), g(!1);
104887
+ }
104888
+ const { from: M, to: T } = t.state.selection;
104889
+ t.state.doc.textBetween(M, T) ? t.chain().focus().extendMarkRange("link").setLink({ href: w }).run() : t.chain().focus().command(({ tr: R, dispatch: P }) => {
104890
+ const { from: L, to: I } = t.state.selection, V = d, H = { href: w };
104891
+ return R.insertText(V, L, I), R.addMark(
104892
+ L,
104893
+ V.length + L,
104894
+ t.schema.marks.link.create(H)
104895
+ ), P && P(R), !0;
104896
+ }).run(), g(!0), p(!0), h(""), u(""), o(Qe.NONE);
104897
+ }, v = (w) => {
104898
+ const { from: M, to: T } = w.state.selection;
104899
+ return w.state.doc.textBetween(M, T);
104900
+ }, b = (w) => w.getAttributes("link").href;
104901
+ return Ve(() => {
104902
+ let w = 0;
104903
+ const M = () => {
104904
+ w = Date.now();
104905
+ }, T = () => {
104906
+ var P, L, I;
104907
+ if (Date.now() - w > 500) {
104908
+ const { selection: V } = t.state, H = V.from !== V.to, F = ((P = t.state.doc.nodeAt(V.from)) == null ? void 0 : P.type.name) === "resizableMedia", W = ((L = t.state.doc.nodeAt(V.from)) == null ? void 0 : L.type.name) === "iframe";
104909
+ H && !F && !W && ((I = k.current) == null || I.click());
104910
+ }
104911
+ }, S = () => {
104912
+ var L;
104913
+ if (!l) return;
104914
+ const { selection: R } = t.state;
104915
+ R.from !== R.to && ((L = k.current) == null || L.click());
104916
+ };
104917
+ return l ? (document.addEventListener("touchstart", M), document.addEventListener("touchend", T)) : document.addEventListener("mouseup", S), () => {
104918
+ l ? (document.removeEventListener("touchstart", M), document.removeEventListener("touchend", T)) : document.removeEventListener("mouseup", S);
104919
+ };
104920
+ }, [t, l]), Ve(() => {
104921
+ if (!t) return;
104922
+ const w = (M) => {
104923
+ M.key === "k" && (M.metaKey || M.ctrlKey) && (M.preventDefault(), s !== Qe.LINK_POPUP ? o(Qe.LINK_POPUP) : o(Qe.NONE));
104924
+ };
104925
+ return document.addEventListener("keydown", w), () => {
104926
+ document.removeEventListener("keydown", w);
104927
+ };
104928
+ }, [t, s]), Ve(() => {
104929
+ n && o(Qe.NONE);
104930
+ }, [n, o]), /* @__PURE__ */ j.jsxs(u9, { children: [
104931
+ /* @__PURE__ */ j.jsxs("div", { className: "flex w-full justify-between sm:justify-evenly items-center select-none", children: [
104932
+ a.map((w, M) => w ? /* @__PURE__ */ j.jsx("div", { className: "flex items-center", children: w.title === "Text formating" ? /* @__PURE__ */ j.jsx(ST, { asChild: !0, children: /* @__PURE__ */ j.jsx(
104933
+ bs,
104934
+ {
104935
+ ref: k,
104936
+ onClick: w.onClick,
104937
+ isActive: w.isActive,
104938
+ icon: w.icon
104939
+ }
104940
+ ) }) : w.title === "Text color" ? /* @__PURE__ */ j.jsx(ST, { asChild: !0, children: /* @__PURE__ */ j.jsx(
104941
+ bs,
104942
+ {
104943
+ onClick: w.onClick,
104944
+ icon: w.icon,
104945
+ isActive: !1
104946
+ }
104947
+ ) }) : /* @__PURE__ */ j.jsx(
104948
+ bs,
104949
+ {
104950
+ onClick: w.onClick,
104951
+ icon: w.icon,
104952
+ isActive: !1
104953
+ }
104954
+ ) }, w.title) : /* @__PURE__ */ j.jsx("div", { className: "w-[2px] h-4 bg-gray-200 mx-2" }, M)),
104955
+ /* @__PURE__ */ j.jsx("div", { className: "w-[2px] h-4 bg-gray-200 mx-2" }),
104956
+ /* @__PURE__ */ j.jsx("div", { className: "w-9 h-9 flex justify-center items-center", children: /* @__PURE__ */ j.jsx(
104957
+ ar,
104958
+ {
104959
+ size: "md",
104960
+ name: r ? "ChevronUp" : "ChevronDown",
104961
+ onClick: () => i((w) => !w)
104962
+ }
104963
+ ) })
104964
+ ] }),
104965
+ s === Qe.TEXT_FORMATING && /* @__PURE__ */ j.jsx(
104966
+ CLe,
104967
+ {
104968
+ editor: t,
104969
+ setToolVisibility: o
104970
+ }
104971
+ ),
104972
+ /* @__PURE__ */ j.jsx(
104973
+ gDe,
104974
+ {
104975
+ open: s === Qe.LINK_POPUP,
104976
+ onOpenChange: (w) => !w && o(Qe.NONE),
104977
+ title: "Link",
104978
+ content: /* @__PURE__ */ j.jsxs("div", { className: "flex flex-col gap-4 w-full h-full px-4", children: [
104979
+ /* @__PURE__ */ j.jsx(
104980
+ Dg,
104981
+ {
104982
+ label: "Text",
104983
+ placeholder: "Link text",
104984
+ className: "w-full",
104985
+ defaultValue: v(t),
104986
+ onChange: (w) => {
104987
+ w.preventDefault(), h(w.target.value);
104988
+ },
104989
+ isValid: f,
104990
+ message: f ? "" : "Invalid text"
104991
+ }
104992
+ ),
104993
+ /* @__PURE__ */ j.jsx(
104994
+ Dg,
104995
+ {
104996
+ label: "Link",
104997
+ placeholder: "Paste URL",
104998
+ className: "w-full",
104999
+ defaultValue: b(t),
105000
+ onChange: (w) => {
105001
+ w.preventDefault(), u(w.target.value);
105002
+ },
105003
+ isValid: m,
105004
+ message: m ? "" : "Invalid URL"
105005
+ }
105006
+ )
105007
+ ] }),
105008
+ primaryAction: {
105009
+ label: "Save",
105010
+ onClick: () => x(),
105011
+ isLoading: !1,
105012
+ className: "w-auto min-w-[80px]"
105013
+ },
105014
+ secondaryAction: {
105015
+ label: "Cancel",
105016
+ variant: "secondary",
105017
+ onClick: () => o(Qe.NONE),
105018
+ className: "w-auto min-w-[80px]"
105019
+ }
105020
+ }
105021
+ )
105022
+ ] });
105023
+ }, Jb = () => {
105024
105024
  var t;
105025
- return (t = ost.os) == null ? void 0 : t.family;
105025
+ return (t = sst.os) == null ? void 0 : t.family;
105026
105026
  }, Fst = Bt(
105027
105027
  ({
105028
105028
  isPreviewMode: t = !1,
@@ -105103,7 +105103,7 @@ const ost = /* @__PURE__ */ v2(sst), Jb = () => {
105103
105103
  "nav",
105104
105104
  {
105105
105105
  id: "Navbar",
105106
- className: "h-14 bg-[#ffffff] py-2 px-3 xl:px-6 flex gap-[40px] items-center justify-between w-screen xl:w-full sticky left-0 top-0 border-b color-border-default",
105106
+ className: "h-14 bg-[#ffffff] py-2 px-3 xl:px-4 flex gap-[40px] items-center justify-between w-screen xl:w-full sticky left-0 top-0 border-b color-border-default",
105107
105107
  children: s == null ? void 0 : s({ editor: P.getJSON() })
105108
105108
  }
105109
105109
  ),
@@ -105175,20 +105175,20 @@ const ost = /* @__PURE__ */ v2(sst), Jb = () => {
105175
105175
  ]
105176
105176
  }
105177
105177
  ),
105178
- !t && /* @__PURE__ */ j.jsx(ist, { children: !p && /* @__PURE__ */ j.jsx(
105179
- Qit.div,
105178
+ !t && /* @__PURE__ */ j.jsx(rst, { children: !p && /* @__PURE__ */ j.jsx(
105179
+ $it.div,
105180
105180
  {
105181
105181
  initial: { y: 50, opacity: 0 },
105182
105182
  animate: { y: 0, opacity: 1 },
105183
105183
  exit: { y: 50, opacity: 0 },
105184
105184
  transition: { duration: 0.2 },
105185
105185
  className: ct(
105186
- "flex xl:hidden items-center w-full h-[52px] fixed left-0 z-10 px-4 bg-[#ffffff] transition-all duration-300 ease-in-out border-b border-color-default",
105186
+ "flex xl:hidden items-center w-full h-[52px] absolute left-0 z-10 px-4 bg-[#ffffff] transition-all duration-300 ease-in-out border-b border-color-default",
105187
105187
  w && "hidden",
105188
105188
  { "top-14": v, "top-0": !v }
105189
105189
  ),
105190
105190
  children: /* @__PURE__ */ j.jsx(
105191
- _et,
105191
+ ost,
105192
105192
  {
105193
105193
  onError: m,
105194
105194
  editor: P,