renderloom 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as ns from "react";
2
- import Dt, { forwardRef as en, createElement as Ut, createContext as Pe, useRef as re, useLayoutEffect as Va, useEffect as Ie, useId as tn, useContext as ne, useInsertionEffect as sn, useMemo as Ke, useCallback as Gt, Children as Ra, isValidElement as Da, useState as O, Fragment as ki, Component as La } from "react";
2
+ import Dt, { forwardRef as en, createElement as Ut, createContext as Ne, useRef as re, useLayoutEffect as Va, useEffect as Ae, useId as tn, useContext as ne, useInsertionEffect as sn, useMemo as Ke, useCallback as Gt, Children as Ra, isValidElement as Da, useState as O, Fragment as ki, Component as La } from "react";
3
3
  import Ia from "react-dom";
4
4
  var Ct = { exports: {} }, ot = {};
5
5
  /**
@@ -618,12 +618,12 @@ const wl = [
618
618
  const kl = [
619
619
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
620
620
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
621
- ], Re = X("x", kl), on = Pe({});
621
+ ], De = X("x", kl), on = Ne({});
622
622
  function an(e) {
623
623
  const t = re(null);
624
624
  return t.current === null && (t.current = e()), t.current;
625
625
  }
626
- const Tl = typeof window < "u", Ai = Tl ? Va : Ie, is = /* @__PURE__ */ Pe(null);
626
+ const Tl = typeof window < "u", Ai = Tl ? Va : Ae, is = /* @__PURE__ */ Ne(null);
627
627
  function ln(e, t) {
628
628
  e.indexOf(t) === -1 && e.push(t);
629
629
  }
@@ -636,16 +636,16 @@ function Ps(e, t) {
636
636
  return t ? `${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : e;
637
637
  }
638
638
  let st = () => {
639
- }, Ae = () => {
639
+ }, Pe = () => {
640
640
  };
641
641
  var wi;
642
642
  typeof process < "u" && ((wi = process.env) == null ? void 0 : wi.NODE_ENV) !== "production" && (st = (e, t, s) => {
643
643
  !e && typeof console < "u" && console.warn(Ps(t, s));
644
- }, Ae = (e, t, s) => {
644
+ }, Pe = (e, t, s) => {
645
645
  if (!e)
646
646
  throw new Error(Ps(t, s));
647
647
  });
648
- const De = {}, Pi = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
648
+ const Le = {}, Pi = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
649
649
  function Ni(e) {
650
650
  return typeof e == "object" && e !== null;
651
651
  }
@@ -720,11 +720,11 @@ const Di = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Li
720
720
  anticipate: zi
721
721
  }, El = (e) => typeof e == "string", Gn = (e) => {
722
722
  if ($i(e)) {
723
- Ae(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
723
+ Pe(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
724
724
  const [t, s, n, r] = e;
725
725
  return bt(t, s, n, r);
726
726
  } else if (El(e))
727
- return Ae(Un[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), Un[e];
727
+ return Pe(Un[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), Un[e];
728
728
  return e;
729
729
  }, At = [
730
730
  "setup",
@@ -792,7 +792,7 @@ function Wi(e, t) {
792
792
  timestamp: 0,
793
793
  isProcessing: !1
794
794
  }, o = () => s = !0, i = At.reduce((x, T) => (x[T] = Vl(o), x), {}), { setup: a, read: c, resolveKeyframes: u, preUpdate: d, update: f, preRender: h, render: m, postRender: g } = i, p = () => {
795
- const x = De.useManualTiming, T = x ? r.timestamp : performance.now();
795
+ const x = Le.useManualTiming, T = x ? r.timestamp : performance.now();
796
796
  s = !1, x || (r.delta = n ? 1e3 / 60 : Math.max(Math.min(T - r.timestamp, Rl), 1)), r.timestamp = T, r.isProcessing = !0, a.process(r), c.process(r), u.process(r), d.process(r), f.process(r), h.process(r), m.process(r), g.process(r), r.isProcessing = !1, s && t && (n = !1, e(p));
797
797
  }, y = () => {
798
798
  s = !0, n = !0, r.isProcessing || e(p);
@@ -805,13 +805,13 @@ function Wi(e, t) {
805
805
  i[At[T]].cancel(x);
806
806
  }, state: r, steps: i };
807
807
  }
808
- const { schedule: F, cancel: Le, state: ie, steps: ds } = /* @__PURE__ */ Wi(typeof requestAnimationFrame < "u" ? requestAnimationFrame : me, !0);
808
+ const { schedule: F, cancel: Ie, state: ie, steps: ds } = /* @__PURE__ */ Wi(typeof requestAnimationFrame < "u" ? requestAnimationFrame : me, !0);
809
809
  let Lt;
810
810
  function Dl() {
811
811
  Lt = void 0;
812
812
  }
813
813
  const ce = {
814
- now: () => (Lt === void 0 && ce.set(ie.isProcessing || De.useManualTiming ? ie.timestamp : performance.now()), Lt),
814
+ now: () => (Lt === void 0 && ce.set(ie.isProcessing || Le.useManualTiming ? ie.timestamp : performance.now()), Lt),
815
815
  set: (e) => {
816
816
  Lt = e, queueMicrotask(Dl);
817
817
  }
@@ -868,7 +868,7 @@ const Ns = {
868
868
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
869
869
  parse: parseFloat,
870
870
  transform: (t) => `${t}${e}`
871
- }), Me = /* @__PURE__ */ vt("deg"), Te = /* @__PURE__ */ vt("%"), A = /* @__PURE__ */ vt("px"), _l = /* @__PURE__ */ vt("vh"), $l = /* @__PURE__ */ vt("vw"), Yn = {
871
+ }), Ee = /* @__PURE__ */ vt("deg"), Te = /* @__PURE__ */ vt("%"), A = /* @__PURE__ */ vt("px"), _l = /* @__PURE__ */ vt("vh"), $l = /* @__PURE__ */ vt("vw"), Yn = {
872
872
  ...Te,
873
873
  parse: (e) => Te.parse(e) / 100,
874
874
  transform: (e) => Te.transform(e * 100)
@@ -1015,7 +1015,7 @@ const ac = (e) => {
1015
1015
  const t = ({ timestamp: s }) => e(s);
1016
1016
  return {
1017
1017
  start: (s = !0) => F.update(t, s),
1018
- stop: () => Le(t),
1018
+ stop: () => Ie(t),
1019
1019
  /**
1020
1020
  * If we're processing this frame we can use the
1021
1021
  * framelocked timestamp to keep things in sync.
@@ -1252,7 +1252,7 @@ function Vs({ keyframes: e, velocity: t = 0, power: s = 0.8, timeConstant: n = 3
1252
1252
  };
1253
1253
  }
1254
1254
  function gc(e, t, s) {
1255
- const n = [], r = s || De.mix || Zi, o = e.length - 1;
1255
+ const n = [], r = s || Le.mix || Zi, o = e.length - 1;
1256
1256
  for (let i = 0; i < o; i++) {
1257
1257
  let a = r(e[i], e[i + 1]);
1258
1258
  if (t) {
@@ -1265,7 +1265,7 @@ function gc(e, t, s) {
1265
1265
  }
1266
1266
  function yc(e, t, { clamp: s = !0, ease: n, mixer: r } = {}) {
1267
1267
  const o = e.length;
1268
- if (Ae(o === t.length, "Both input and output ranges must be the same length", "range-length"), o === 1)
1268
+ if (Pe(o === t.length, "Both input and output ranges must be the same length", "range-length"), o === 1)
1269
1269
  return () => t[0];
1270
1270
  if (o === 2 && t[0] === t[1])
1271
1271
  return () => t[1];
@@ -1374,7 +1374,7 @@ class Zt extends xn {
1374
1374
  const { type: s = Ze, repeat: n = 0, repeatDelay: r = 0, repeatType: o, velocity: i = 0 } = t;
1375
1375
  let { keyframes: a } = t;
1376
1376
  const c = s || Ze;
1377
- process.env.NODE_ENV !== "production" && c !== Ze && Ae(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), c !== Ze && typeof a[0] != "number" && (this.mixKeyframes = xt(jc, Zi(a[0], a[1])), a = [0, 100]);
1377
+ process.env.NODE_ENV !== "production" && c !== Ze && Pe(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), c !== Ze && typeof a[0] != "number" && (this.mixKeyframes = xt(jc, Zi(a[0], a[1])), a = [0, 100]);
1378
1378
  const u = c({ ...t, keyframes: a });
1379
1379
  o === "mirror" && (this.mirroredGenerator = c({
1380
1380
  ...t,
@@ -1578,7 +1578,7 @@ function Vc(e) {
1578
1578
  n !== void 0 && (t.push([s, n.get()]), n.set(s.startsWith("scale") ? 1 : 0));
1579
1579
  }), t;
1580
1580
  }
1581
- const Ve = {
1581
+ const Re = {
1582
1582
  // Dimensions
1583
1583
  width: ({ x: e }, { paddingLeft: t = "0", paddingRight: s = "0", boxSizing: n }) => {
1584
1584
  const r = e.max - e.min;
@@ -1596,8 +1596,8 @@ const Ve = {
1596
1596
  x: (e, { transform: t }) => Is(t, "x"),
1597
1597
  y: (e, { transform: t }) => Is(t, "y")
1598
1598
  };
1599
- Ve.translateX = Ve.x;
1600
- Ve.translateY = Ve.y;
1599
+ Re.translateX = Re.x;
1600
+ Re.translateY = Re.y;
1601
1601
  const Ue = /* @__PURE__ */ new Set();
1602
1602
  let Os = !1, zs = !1, Fs = !1;
1603
1603
  function to() {
@@ -1725,7 +1725,7 @@ class lo extends xn {
1725
1725
  if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !t)
1726
1726
  return;
1727
1727
  const { element: s, name: n, keyframes: r, pseudoElement: o, allowFlatten: i = !1, finalKeyframe: a, onComplete: c } = t;
1728
- this.isPseudoElement = !!o, this.allowFlatten = i, this.options = t, Ae(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1728
+ this.isPseudoElement = !!o, this.allowFlatten = i, this.options = t, Pe(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1729
1729
  const u = zc(t);
1730
1730
  this.animation = Oc(s, n, r, u, o), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1731
1731
  if (this.finishedTime = this.time, !o) {
@@ -1951,7 +1951,7 @@ class qc extends xn {
1951
1951
  const { name: o, type: i, velocity: a, delay: c, isHandoff: u, onUpdate: d } = n;
1952
1952
  this.resolvedAt = ce.now();
1953
1953
  let f = !0;
1954
- Wc(t, o, i, a) || (f = !1, (De.instantAnimations || !c) && (d == null || d(os(t, n, s))), t[0] = t[t.length - 1], Bs(n), n.repeat = 0);
1954
+ Wc(t, o, i, a) || (f = !1, (Le.instantAnimations || !c) && (d == null || d(os(t, n, s))), t[0] = t[t.length - 1], Bs(n), n.repeat = 0);
1955
1955
  const m = {
1956
1956
  startTime: r ? this.resolvedAt ? this.resolvedAt - this.createdAt > Xc ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1957
1957
  finalKeyframe: s,
@@ -2043,7 +2043,7 @@ function Jc(e) {
2043
2043
  }
2044
2044
  const Qc = 4;
2045
2045
  function ho(e, t, s = 1) {
2046
- Ae(s <= Qc, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
2046
+ Pe(s <= Qc, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
2047
2047
  const [n, r] = Jc(e);
2048
2048
  if (!n)
2049
2049
  return;
@@ -2123,7 +2123,7 @@ const wn = (e, t, s, n = {}, r, o) => (i) => {
2123
2123
  };
2124
2124
  ou(a) || Object.assign(d, ru(e, d)), d.duration && (d.duration = /* @__PURE__ */ de(d.duration)), d.repeatDelay && (d.repeatDelay = /* @__PURE__ */ de(d.repeatDelay)), d.from !== void 0 && (d.keyframes[0] = d.from);
2125
2125
  let f = !1;
2126
- if ((d.type === !1 || d.duration === 0 && !d.repeatDelay) && (Bs(d), d.delay === 0 && (f = !0)), (De.instantAnimations || De.skipAnimations || r != null && r.shouldSkipAnimations) && (f = !0, Bs(d), d.delay = 0), d.allowFlatten = !a.type && !a.ease, f && !o && t.get() !== void 0) {
2126
+ if ((d.type === !1 || d.duration === 0 && !d.repeatDelay) && (Bs(d), d.delay === 0 && (f = !0)), (Le.instantAnimations || Le.skipAnimations || r != null && r.shouldSkipAnimations) && (f = !0, Bs(d), d.delay = 0), d.allowFlatten = !a.type && !a.ease, f && !o && t.get() !== void 0) {
2127
2127
  const h = os(d.keyframes, a);
2128
2128
  if (h !== void 0) {
2129
2129
  F.update(() => {
@@ -2393,8 +2393,8 @@ function $s(e, t) {
2393
2393
  const s = e.getValue("willChange");
2394
2394
  if (fu(s))
2395
2395
  return s.add(t);
2396
- if (!s && De.WillChange) {
2397
- const n = new De.WillChange("auto");
2396
+ if (!s && Le.WillChange) {
2397
+ const n = new Le.WillChange("auto");
2398
2398
  e.addValue("willChange", n), n.add(t);
2399
2399
  }
2400
2400
  }
@@ -2493,7 +2493,7 @@ function gu(e, t, s = {}) {
2493
2493
  const yu = {
2494
2494
  test: (e) => e === "auto",
2495
2495
  parse: (e) => e
2496
- }, bo = (e) => (t) => t.test(e), vo = [nt, A, Te, Me, $l, _l, yu], or = (e) => vo.find(bo(e));
2496
+ }, bo = (e) => (t) => t.test(e), vo = [nt, A, Te, Ee, $l, _l, yu], or = (e) => vo.find(bo(e));
2497
2497
  function xu(e) {
2498
2498
  return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Mi(e) : !0;
2499
2499
  }
@@ -2525,17 +2525,17 @@ const wu = /\b([a-z-]*)\(.*?\)/gu, Us = {
2525
2525
  ...nt,
2526
2526
  transform: Math.round
2527
2527
  }, ku = {
2528
- rotate: Me,
2529
- rotateX: Me,
2530
- rotateY: Me,
2531
- rotateZ: Me,
2528
+ rotate: Ee,
2529
+ rotateX: Ee,
2530
+ rotateY: Ee,
2531
+ rotateZ: Ee,
2532
2532
  scale: Pt,
2533
2533
  scaleX: Pt,
2534
2534
  scaleY: Pt,
2535
2535
  scaleZ: Pt,
2536
- skew: Me,
2537
- skewX: Me,
2538
- skewY: Me,
2536
+ skew: Ee,
2537
+ skewX: Ee,
2538
+ skewY: Ee,
2539
2539
  distance: A,
2540
2540
  translateX: A,
2541
2541
  translateY: A,
@@ -2664,7 +2664,7 @@ class Au extends bn {
2664
2664
  if (this.resolveNoneKeyframes(), !po.has(n) || t.length !== 2)
2665
2665
  return;
2666
2666
  const [r, o] = t, i = or(r), a = or(o), c = Kn(r), u = Kn(o);
2667
- if (c !== u && Ve[n]) {
2667
+ if (c !== u && Re[n]) {
2668
2668
  this.needsMeasurement = !0;
2669
2669
  return;
2670
2670
  }
@@ -2674,7 +2674,7 @@ class Au extends bn {
2674
2674
  const f = t[d];
2675
2675
  typeof f == "string" && (t[d] = parseFloat(f));
2676
2676
  }
2677
- else Ve[n] && (this.needsMeasurement = !0);
2677
+ else Re[n] && (this.needsMeasurement = !0);
2678
2678
  }
2679
2679
  resolveNoneKeyframes() {
2680
2680
  const { unresolvedKeyframes: t, name: s } = this, n = [];
@@ -2686,7 +2686,7 @@ class Au extends bn {
2686
2686
  const { element: t, unresolvedKeyframes: s, name: n } = this;
2687
2687
  if (!t || !t.current)
2688
2688
  return;
2689
- n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Ve[n](t.measureViewportBox(), window.getComputedStyle(t.current)), s[0] = this.measuredOrigin;
2689
+ n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Re[n](t.measureViewportBox(), window.getComputedStyle(t.current)), s[0] = this.measuredOrigin;
2690
2690
  const r = s[s.length - 1];
2691
2691
  r !== void 0 && t.getValue(n, r).jump(r, !1);
2692
2692
  }
@@ -2698,7 +2698,7 @@ class Au extends bn {
2698
2698
  const r = t.getValue(s);
2699
2699
  r && r.jump(this.measuredOrigin, !1);
2700
2700
  const o = n.length - 1, i = n[o];
2701
- n[o] = Ve[s](t.measureViewportBox(), window.getComputedStyle(t.current)), i !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = i), (a = this.removedTransforms) != null && a.length && this.removedTransforms.forEach(([c, u]) => {
2701
+ n[o] = Re[s](t.measureViewportBox(), window.getComputedStyle(t.current)), i !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = i), (a = this.removedTransforms) != null && a.length && this.removedTransforms.forEach(([c, u]) => {
2702
2702
  t.getValue(c).set(u);
2703
2703
  }), this.resolveNoneKeyframes();
2704
2704
  }
@@ -2839,7 +2839,7 @@ function An(e) {
2839
2839
  return Ni(e) && "ownerSVGElement" in e;
2840
2840
  }
2841
2841
  const zt = /* @__PURE__ */ new WeakMap();
2842
- let Ee;
2842
+ let Ve;
2843
2843
  const Po = (e, t, s) => (n, r) => r && r[0] ? r[0][e + "Size"] : An(n) && "getBBox" in n ? n.getBBox()[t] : n[s], Ou = /* @__PURE__ */ Po("inline", "width", "offsetWidth"), zu = /* @__PURE__ */ Po("block", "height", "offsetHeight");
2844
2844
  function Fu({ target: e, borderBoxSize: t }) {
2845
2845
  var s;
@@ -2858,18 +2858,18 @@ function Bu(e) {
2858
2858
  e.forEach(Fu);
2859
2859
  }
2860
2860
  function _u() {
2861
- typeof ResizeObserver > "u" || (Ee = new ResizeObserver(Bu));
2861
+ typeof ResizeObserver > "u" || (Ve = new ResizeObserver(Bu));
2862
2862
  }
2863
2863
  function $u(e, t) {
2864
- Ee || _u();
2864
+ Ve || _u();
2865
2865
  const s = To(e);
2866
2866
  return s.forEach((n) => {
2867
2867
  let r = zt.get(n);
2868
- r || (r = /* @__PURE__ */ new Set(), zt.set(n, r)), r.add(t), Ee == null || Ee.observe(n);
2868
+ r || (r = /* @__PURE__ */ new Set(), zt.set(n, r)), r.add(t), Ve == null || Ve.observe(n);
2869
2869
  }), () => {
2870
2870
  s.forEach((n) => {
2871
2871
  const r = zt.get(n);
2872
- r == null || r.delete(t), r != null && r.size || Ee == null || Ee.unobserve(n);
2872
+ r == null || r.delete(t), r != null && r.size || Ve == null || Ve.unobserve(n);
2873
2873
  });
2874
2874
  };
2875
2875
  }
@@ -3012,7 +3012,7 @@ class Qu {
3012
3012
  }
3013
3013
  unmount() {
3014
3014
  var t;
3015
- this.projection && this.projection.unmount(), Le(this.notifyUpdate), Le(this.render), this.valueSubscriptions.forEach((s) => s()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), (t = this.parent) == null || t.removeChild(this);
3015
+ this.projection && this.projection.unmount(), Ie(this.notifyUpdate), Ie(this.render), this.valueSubscriptions.forEach((s) => s()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), (t = this.parent) == null || t.removeChild(this);
3016
3016
  for (const s in this.events)
3017
3017
  this.events[s].clear();
3018
3018
  for (const s in this.features) {
@@ -3855,9 +3855,9 @@ class Fd {
3855
3855
  function Bd(e, t) {
3856
3856
  const s = ce.now(), n = ({ timestamp: r }) => {
3857
3857
  const o = r - s;
3858
- o >= t && (Le(n), e(o - t));
3858
+ o >= t && (Ie(n), e(o - t));
3859
3859
  };
3860
- return F.setup(n, !0), () => Le(n);
3860
+ return F.setup(n, !0), () => Ie(n);
3861
3861
  }
3862
3862
  function _t(e) {
3863
3863
  return oe(e) ? e.get() : e;
@@ -4008,7 +4008,7 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
4008
4008
  unmount() {
4009
4009
  this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
4010
4010
  const i = this.getStack();
4011
- i && i.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), Le(this.updateProjection);
4011
+ i && i.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), Ie(this.updateProjection);
4012
4012
  }
4013
4013
  // only on the root
4014
4014
  blockUpdate() {
@@ -4262,7 +4262,7 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
4262
4262
  }
4263
4263
  startAnimation(i) {
4264
4264
  var a, c, u;
4265
- this.notifyListeners("animationStart"), (a = this.currentAnimation) == null || a.stop(), (u = (c = this.resumingFrom) == null ? void 0 : c.currentAnimation) == null || u.stop(), this.pendingAnimation && (Le(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = F.update(() => {
4265
+ this.notifyListeners("animationStart"), (a = this.currentAnimation) == null || a.stop(), (u = (c = this.resumingFrom) == null ? void 0 : c.currentAnimation) == null || u.stop(), this.pendingAnimation && (Ie(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = F.update(() => {
4266
4266
  $t.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = tt(0)), this.motionValue.jump(0, !1), this.currentAnimation = Od(this.motionValue, [0, 1e3], {
4267
4267
  ...i,
4268
4268
  velocity: 0,
@@ -4550,7 +4550,7 @@ const lf = Jo({
4550
4550
  e.style.transform = t !== void 0 ? t : "none";
4551
4551
  },
4552
4552
  checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
4553
- }), Vn = Pe({
4553
+ }), Vn = Ne({
4554
4554
  transformPagePoint: (e) => e,
4555
4555
  isStatic: !1,
4556
4556
  reducedMotion: "never"
@@ -4660,7 +4660,7 @@ function ta(e = !0) {
4660
4660
  if (t === null)
4661
4661
  return [!0, null];
4662
4662
  const { isPresent: s, onExitComplete: n, register: r } = t, o = tn();
4663
- Ie(() => {
4663
+ Ae(() => {
4664
4664
  if (e)
4665
4665
  return r(o);
4666
4666
  }, [e]);
@@ -4709,7 +4709,7 @@ const fe = ({ children: e, custom: t, initial: s = !0, onExitComplete: n, presen
4709
4709
  };
4710
4710
  return l.jsx(hf, { isPresent: E, initial: !g.current || s ? void 0 : !1, custom: t, presenceAffectsLayout: r, mode: o, root: u, onExitComplete: E ? void 0 : z, anchorX: a, anchorY: c, children: w }, M);
4711
4711
  }) });
4712
- }, sa = Pe({ strict: !1 }), Hr = {
4712
+ }, sa = Ne({ strict: !1 }), Hr = {
4713
4713
  animation: [
4714
4714
  "animate",
4715
4715
  "variants",
@@ -4803,7 +4803,7 @@ function bf(e, t, s) {
4803
4803
  e.draggable && r.startsWith("onDrag")) && (n[r] = e[r]);
4804
4804
  return n;
4805
4805
  }
4806
- const cs = /* @__PURE__ */ Pe({});
4806
+ const cs = /* @__PURE__ */ Ne({});
4807
4807
  function vf(e, t) {
4808
4808
  if (ls(e)) {
4809
4809
  const { initial: s, animate: n } = e;
@@ -4983,7 +4983,7 @@ function Rf(e, t, s) {
4983
4983
  t && (o ? t.mount(o) : t.unmount());
4984
4984
  }, [t]);
4985
4985
  }
4986
- const la = Pe({});
4986
+ const la = Ne({});
4987
4987
  function Xe(e) {
4988
4988
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
4989
4989
  }
@@ -5009,7 +5009,7 @@ function Df(e, t, s, n, r, o) {
5009
5009
  const k = s[go], v = re(!!k && typeof window < "u" && !((x = window.MotionHandoffIsComplete) != null && x.call(window, k)) && ((T = window.MotionHasOptimisedAnimation) == null ? void 0 : T.call(window, k)));
5010
5010
  return Ai(() => {
5011
5011
  m.current = !0, g && (y.current = !0, window.MotionIsMounted = !0, g.updateFeatures(), g.scheduleRenderMicrotask(), v.current && g.animationState && g.animationState.animateChanges());
5012
- }), Ie(() => {
5012
+ }), Ae(() => {
5013
5013
  g && (!v.current && g.animationState && g.animationState.animateChanges(), v.current && (queueMicrotask(() => {
5014
5014
  var j;
5015
5015
  (j = window.MotionHandoffMarkAsComplete) == null || j.call(window, k);
@@ -5071,7 +5071,7 @@ function Of(e, t) {
5071
5071
  const s = ne(sa).strict;
5072
5072
  if (process.env.NODE_ENV !== "production" && t && s) {
5073
5073
  const n = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
5074
- e.ignoreStrict ? st(!1, n, "lazy-strict-mode") : Ae(!1, n, "lazy-strict-mode");
5074
+ e.ignoreStrict ? st(!1, n, "lazy-strict-mode") : Pe(!1, n, "lazy-strict-mode");
5075
5075
  }
5076
5076
  }
5077
5077
  function zf(e) {
@@ -5272,7 +5272,7 @@ class da {
5272
5272
  this.handlers = t;
5273
5273
  }
5274
5274
  end() {
5275
- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), Le(this.updatePoint);
5275
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), Ie(this.updatePoint);
5276
5276
  }
5277
5277
  }
5278
5278
  function Mt(e, t) {
@@ -5474,7 +5474,7 @@ class sh {
5474
5474
  if (!t || !Xe(t))
5475
5475
  return !1;
5476
5476
  const n = t.current;
5477
- Ae(n !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
5477
+ Pe(n !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
5478
5478
  const { projection: r } = this.visualElement;
5479
5479
  if (!r || !r.layout)
5480
5480
  return !1;
@@ -6177,7 +6177,7 @@ const Th = (e, t) => {
6177
6177
  }, Gh = [], te = (e) => {
6178
6178
  const t = (s) => s[e] || Gh;
6179
6179
  return t.isThemeGetter = !0, t;
6180
- }, ba = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, va = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Kh = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Yh = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Hh = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Xh = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, qh = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zh = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ne = (e) => Kh.test(e), D = (e) => !!e && !Number.isNaN(Number(e)), be = (e) => !!e && Number.isInteger(Number(e)), As = (e) => e.endsWith("%") && D(e.slice(0, -1)), Ce = (e) => Yh.test(e), wa = () => !0, Jh = (e) => (
6180
+ }, ba = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, va = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Kh = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Yh = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Hh = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Xh = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, qh = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zh = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Me = (e) => Kh.test(e), D = (e) => !!e && !Number.isNaN(Number(e)), be = (e) => !!e && Number.isInteger(Number(e)), As = (e) => e.endsWith("%") && D(e.slice(0, -1)), Ce = (e) => Yh.test(e), wa = () => !0, Jh = (e) => (
6181
6181
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
6182
6182
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
6183
6183
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
@@ -6207,9 +6207,9 @@ const Th = (e, t) => {
6207
6207
  "bottom-left",
6208
6208
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
6209
6209
  "left-bottom"
6210
- ], j = () => [...T(), C, S], N = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", "contain", "none"], w = () => [C, S, c], M = () => [Ne, "full", "auto", ...w()], E = () => [be, "none", "subgrid", C, S], z = () => ["auto", {
6210
+ ], j = () => [...T(), C, S], N = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", "contain", "none"], w = () => [C, S, c], M = () => [Me, "full", "auto", ...w()], E = () => [be, "none", "subgrid", C, S], z = () => ["auto", {
6211
6211
  span: ["full", be, C, S]
6212
- }, be, C, S], B = () => [be, "auto", C, S], le = () => ["auto", "min", "max", "fr", C, S], ae = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], _ = () => ["auto", ...w()], pe = () => [Ne, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...w()], U = () => [Ne, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...w()], Q = () => [Ne, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...w()], P = () => [e, C, S], b = () => [...T(), fi, di, {
6212
+ }, be, C, S], B = () => [be, "auto", C, S], le = () => ["auto", "min", "max", "fr", C, S], ae = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], _ = () => ["auto", ...w()], pe = () => [Me, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...w()], U = () => [Me, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...w()], Q = () => [Me, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...w()], P = () => [e, C, S], b = () => [...T(), fi, di, {
6213
6213
  position: [C, S]
6214
6214
  }], R = () => ["no-repeat", {
6215
6215
  repeat: ["", "x", "y", "space", "round"]
@@ -6230,7 +6230,7 @@ const Th = (e, t) => {
6230
6230
  g,
6231
6231
  C,
6232
6232
  S
6233
- ], Tt = () => ["none", D, C, S], jt = () => ["none", D, C, S], us = () => [D, C, S], St = () => [Ne, "full", ...w()];
6233
+ ], Tt = () => ["none", D, C, S], jt = () => ["none", D, C, S], us = () => [D, C, S], St = () => [Me, "full", ...w()];
6234
6234
  return {
6235
6235
  cacheSize: 500,
6236
6236
  theme: {
@@ -6263,7 +6263,7 @@ const Th = (e, t) => {
6263
6263
  * @see https://tailwindcss.com/docs/aspect-ratio
6264
6264
  */
6265
6265
  aspect: [{
6266
- aspect: ["auto", "square", Ne, S, C, y]
6266
+ aspect: ["auto", "square", Me, S, C, y]
6267
6267
  }],
6268
6268
  /**
6269
6269
  * Container
@@ -6524,7 +6524,7 @@ const Th = (e, t) => {
6524
6524
  * @see https://tailwindcss.com/docs/flex-basis
6525
6525
  */
6526
6526
  basis: [{
6527
- basis: [Ne, "full", "auto", a, ...w()]
6527
+ basis: [Me, "full", "auto", a, ...w()]
6528
6528
  }],
6529
6529
  /**
6530
6530
  * Flex Direction
@@ -6545,7 +6545,7 @@ const Th = (e, t) => {
6545
6545
  * @see https://tailwindcss.com/docs/flex
6546
6546
  */
6547
6547
  flex: [{
6548
- flex: [D, Ne, "auto", "initial", "none", S]
6548
+ flex: [D, Me, "auto", "initial", "none", S]
6549
6549
  }],
6550
6550
  /**
6551
6551
  * Flex Grow
@@ -8967,7 +8967,7 @@ const wm = ({
8967
8967
  onClick: () => i(!1),
8968
8968
  style: { color: a.title },
8969
8969
  className: "p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg transition-colors cursor-pointer shrink-0",
8970
- children: /* @__PURE__ */ l.jsx(Re, { size: 14 })
8970
+ children: /* @__PURE__ */ l.jsx(De, { size: 14 })
8971
8971
  }
8972
8972
  )
8973
8973
  ]
@@ -9371,7 +9371,7 @@ const wm = ({
9371
9371
  {
9372
9372
  onClick: t,
9373
9373
  className: "p-2 rounded-xl hover:bg-secondary text-muted-foreground hover:text-foreground transition-all cursor-pointer",
9374
- children: /* @__PURE__ */ l.jsx(Re, { size: 20 })
9374
+ children: /* @__PURE__ */ l.jsx(De, { size: 20 })
9375
9375
  }
9376
9376
  )
9377
9377
  ] }),
@@ -9404,7 +9404,7 @@ const wm = ({
9404
9404
  className: o
9405
9405
  }) => {
9406
9406
  const [i, a] = O(!1), c = re(null), u = t.find((d) => d.value === s);
9407
- return Ie(() => {
9407
+ return Ae(() => {
9408
9408
  const d = (f) => {
9409
9409
  c.current && !c.current.contains(f.target) && a(!1);
9410
9410
  };
@@ -9600,7 +9600,7 @@ const wm = ({
9600
9600
  {
9601
9601
  onClick: () => g(p.id),
9602
9602
  className: "p-1 hover:bg-secondary rounded-lg text-muted-foreground hover:text-foreground cursor-pointer transition-colors",
9603
- children: /* @__PURE__ */ l.jsx(Re, { size: 14 })
9603
+ children: /* @__PURE__ */ l.jsx(De, { size: 14 })
9604
9604
  }
9605
9605
  )
9606
9606
  ]
@@ -9664,7 +9664,7 @@ const wm = ({
9664
9664
  {
9665
9665
  onClick: t,
9666
9666
  className: "p-2 hover:bg-secondary rounded-xl text-muted-foreground hover:text-foreground cursor-pointer transition-colors",
9667
- children: /* @__PURE__ */ l.jsx(Re, { size: 16 })
9667
+ children: /* @__PURE__ */ l.jsx(De, { size: 16 })
9668
9668
  }
9669
9669
  )
9670
9670
  ] })
@@ -9721,7 +9721,7 @@ const wm = ({
9721
9721
  onClick: () => r && r(i.id),
9722
9722
  className: "absolute bottom-3 right-3 p-1 hover:bg-secondary rounded-lg text-muted-foreground hover:text-foreground cursor-pointer transition-colors opacity-0 group-hover:opacity-100",
9723
9723
  title: "Dismiss notification",
9724
- children: /* @__PURE__ */ l.jsx(Re, { size: 12 })
9724
+ children: /* @__PURE__ */ l.jsx(De, { size: 12 })
9725
9725
  }
9726
9726
  )
9727
9727
  ]
@@ -9819,7 +9819,7 @@ const wm = ({
9819
9819
  });
9820
9820
  }
9821
9821
  };
9822
- Ie(() => (s && (a(), window.addEventListener("scroll", a), window.addEventListener("resize", a)), () => {
9822
+ Ae(() => (s && (a(), window.addEventListener("scroll", a), window.addEventListener("resize", a)), () => {
9823
9823
  window.removeEventListener("scroll", a), window.removeEventListener("resize", a);
9824
9824
  }), [s]);
9825
9825
  const c = () => {
@@ -9957,10 +9957,11 @@ const wm = ({
9957
9957
  footer: o,
9958
9958
  className: i,
9959
9959
  showMobileToggle: a = !0
9960
- // 👈 Added prop to disable built-in toggle
9961
9960
  }) => {
9962
- const [c, u] = O(!1), [d, f] = O(!1);
9963
- Ie(() => {
9961
+ const [c, u] = O(!1), [d, f] = O(!e);
9962
+ Ae(() => {
9963
+ f(!e);
9964
+ }, [e]), Ae(() => {
9964
9965
  const p = () => {
9965
9966
  const y = window.innerWidth < 768;
9966
9967
  u(y), y || f(!1);
@@ -9982,7 +9983,7 @@ const wm = ({
9982
9983
  {
9983
9984
  type: "button",
9984
9985
  onClick: h,
9985
- className: "fixed top-4 left-4 z-40 p-2.5 rounded-xl bg-card/85 backdrop-blur-xl border border-border/40 text-foreground shadow-lg hover:bg-secondary/60 cursor-pointer md:hidden transition-colors animate-[fadeIn_0.2s_ease-out]",
9986
+ className: "fixed top-4 left-4 z-30 p-2.5 rounded-xl bg-card/85 backdrop-blur-xl border border-border/40 text-foreground shadow-lg hover:bg-secondary/60 cursor-pointer md:hidden transition-colors animate-[fadeIn_0.2s_ease-out]",
9986
9987
  children: /* @__PURE__ */ l.jsx(pl, { size: 18 })
9987
9988
  }
9988
9989
  ),
@@ -9990,12 +9991,12 @@ const wm = ({
9990
9991
  "div",
9991
9992
  {
9992
9993
  onClick: h,
9993
- className: "fixed inset-0 bg-black/60 backdrop-blur-sm z-35 md:hidden transition-opacity duration-300"
9994
+ className: "fixed inset-0 bg-black/60 backdrop-blur-sm z-40 md:hidden transition-opacity duration-300"
9994
9995
  }
9995
9996
  ),
9996
9997
  /* @__PURE__ */ l.jsxs("aside", { className: V(
9997
- "h-screen bg-card/45 backdrop-blur-xl border-r border-border/40 flex flex-col transition-all duration-300 ease-in-out shrink-0 text-left relative z-30",
9998
- c ? "fixed top-0 bottom-0 left-0" : "",
9998
+ "h-screen bg-card/45 backdrop-blur-xl border-r border-border/40 flex flex-col transition-all duration-300 ease-in-out shrink-0 text-left relative",
9999
+ c ? "fixed top-0 bottom-0 left-0 z-50" : "z-30",
9999
10000
  g ? "w-0 -translate-x-full md:w-20 md:translate-x-0 overflow-hidden border-r-0 md:border-r border-border/20" : "w-64 translate-x-0 border-r border-border/40",
10000
10001
  i
10001
10002
  ), children: [
@@ -10215,7 +10216,7 @@ const wm = ({
10215
10216
  )
10216
10217
  ] }),
10217
10218
  s && /* @__PURE__ */ l.jsx("span", { className: "text-sm font-semibold text-foreground", children: s })
10218
- ] }), Na = Pe(), Fm = ({ children: e }) => {
10219
+ ] }), Na = Ne(), Fm = ({ children: e }) => {
10219
10220
  const [t, s] = O([]), [n, r] = O(-1), [o, i] = O("IDLE"), [a, c] = O(""), [u, d] = O({ success: 0, failed: 0, skipped: 0, noLedger: 0, items: [] }), [f, h] = O(null), m = re(!1), g = (v, x = "", T) => {
10220
10221
  s(v), c(x || "Batch Processing"), r(0), i("SYNCING"), d({ success: 0, failed: 0, skipped: 0, noLedger: 0, items: [] }), h(() => T);
10221
10222
  }, p = () => {
@@ -10254,7 +10255,7 @@ const wm = ({
10254
10255
  m.current = !1, n + 1 < t.length ? r((x) => x + 1) : i("COMPLETED");
10255
10256
  }
10256
10257
  };
10257
- Ie(() => {
10258
+ Ae(() => {
10258
10259
  o === "SYNCING" && y();
10259
10260
  }, [n, o, f]);
10260
10261
  const k = t.length > 0 ? Math.round((n + (o === "COMPLETED" ? 1 : 0)) / t.length * 100) : 0;
@@ -10326,7 +10327,7 @@ const wm = ({
10326
10327
  h.stopPropagation(), i();
10327
10328
  },
10328
10329
  className: "p-1 hover:bg-destructive/10 hover:text-destructive rounded-md text-muted-foreground transition-colors cursor-pointer",
10329
- children: /* @__PURE__ */ l.jsx(Re, { size: 14 })
10330
+ children: /* @__PURE__ */ l.jsx(De, { size: 14 })
10330
10331
  }
10331
10332
  )
10332
10333
  ] })
@@ -10477,7 +10478,7 @@ const wm = ({
10477
10478
  k.stopPropagation(), m(y);
10478
10479
  },
10479
10480
  className: "hover:bg-primary/20 rounded text-primary hover:text-foreground shrink-0 transition-colors p-0.5",
10480
- children: /* @__PURE__ */ l.jsx(Re, { size: 10 })
10481
+ children: /* @__PURE__ */ l.jsx(De, { size: 10 })
10481
10482
  }
10482
10483
  )
10483
10484
  ]
@@ -10609,13 +10610,13 @@ const wm = ({
10609
10610
  {
10610
10611
  onClick: () => t(s.id),
10611
10612
  className: "shrink-0 text-muted-foreground hover:text-foreground transition-colors cursor-pointer",
10612
- children: /* @__PURE__ */ l.jsx(Re, { size: 16 })
10613
+ children: /* @__PURE__ */ l.jsx(De, { size: 16 })
10613
10614
  }
10614
10615
  )
10615
10616
  ]
10616
10617
  },
10617
10618
  s.id
10618
- )) }) }), Ma = Pe(), Km = () => {
10619
+ )) }) }), Ma = Ne(), Km = () => {
10619
10620
  const e = ne(Ma);
10620
10621
  if (!e)
10621
10622
  throw new Error("useToast must be used within a ToastProvider");
@@ -10640,7 +10641,7 @@ const wm = ({
10640
10641
  e,
10641
10642
  /* @__PURE__ */ l.jsx(ym, { toasts: t, removeToast: r })
10642
10643
  ] });
10643
- }, Ea = Pe(), Hm = ({ children: e, defaultTheme: t = "light" }) => {
10644
+ }, Ea = Ne(), Hm = ({ children: e, defaultTheme: t = "light" }) => {
10644
10645
  const [s, n] = O(() => {
10645
10646
  if (typeof window > "u") return !1;
10646
10647
  const i = new URLSearchParams(window.location.search).get("theme");
@@ -10648,7 +10649,7 @@ const wm = ({
10648
10649
  const a = localStorage.getItem("theme");
10649
10650
  return a ? a === "dark" : window.matchMedia("(prefers-color-scheme: dark)").matches;
10650
10651
  });
10651
- Ie(() => {
10652
+ Ae(() => {
10652
10653
  s ? (document.documentElement.classList.add("dark"), localStorage.setItem("theme", "dark")) : (document.documentElement.classList.remove("dark"), localStorage.setItem("theme", "light"));
10653
10654
  }, [s]);
10654
10655
  const r = () => n((o) => !o);